Skip to content

Commit 64faf5e

Browse files
authored
Remove the Calendar's deprecated calendar prop (#2902)
1 parent cd7ebc1 commit 64faf5e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.changeset/lucky-cheetahs-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sumup-oss/circuit-ui': major
3+
---
4+
5+
Removed the Calendar component's deprecated `calendar` prop. Support for the `gregory` calendar was removed in v9.4 since it never fully worked.

packages/circuit-ui/components/Calendar/Calendar.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,6 @@ interface SharedProps {
9191
* Defaults to `navigator.language` in supported environments.
9292
*/
9393
locale?: Locale;
94-
/**
95-
* @deprecated Support for the `gregory` calendar has been removed since it
96-
* never fully worked. The `calendar` prop will be removed in the next major
97-
* version.
98-
*
99-
* The identifier for the used [calendar](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/calendar). Default: `iso8601`.
100-
*/
101-
calendar?: 'iso8601' | 'gregory';
10294
/**
10395
* An integer indicating the first day of the week. Can be either `1` (Monday)
10496
* or `7` (Sunday). Default: `1`.

0 commit comments

Comments
 (0)