An open source design system that's fully customizable and agent ready
TypeScript
docs: link Calendar changesets to their merged PR (#10100)
Cindy Zhang5748a8b6d443
diff --git a/.changeset/calendar-bottom-sheet.md b/.changeset/calendar-bottom-sheet.mdindex a5f6e1c2f5..c0d8911d71 100644--- a/.changeset/calendar-bottom-sheet.md+++ b/.changeset/calendar-bottom-sheet.md@@ -2,6 +2,6 @@'@astryxdesign/core': patch----[feat] DateInput, DateTimeInput: the bottom sheet shows the calendar. With a `calendar` such as `'persian'`, `'hebrew'`, or `'japanese'`, the bottom sheet shows months of the calendar, with its month names and the locale's digits, in panes of one fixed height, and its closed field writes the date in the calendar. Its month wheel lists the months of the selected calendar year, including leap months such as Adar I and Adar II, and a year change keeps the month or moves to its common counterpart (Adar I becomes Adar). Year labels carry the era, such as `令和8`, and a year in which the era changes is labeled with the era of the shown month, as on iOS: 2019 reads `平成31` in January and `令和元` in July, and the month heading follows the same date, so January 3, 1989 reads `昭和64年1月`. A provider locale with a `-u-ca-` keyword keeps the Gregorian sheet; set `calendar` to choose a calendar. Values stay Gregorian ISO dates.+[feat] DateInput, DateTimeInput: the bottom sheet shows the calendar. With a `calendar` such as `'persian'`, `'hebrew'`, or `'japanese'`, the bottom sheet shows months of the calendar, with its month names and the locale's digits, in panes of one fixed height, and its closed field writes the date in the calendar. Its month wheel lists the months of the selected calendar year, including leap months such as Adar I and Adar II, and a year change keeps the month or moves to its common counterpart (Adar I becomes Adar). Year labels carry the era, such as `令和8`, and a year in which the era changes is labeled with the era of the shown month, as on iOS: 2019 reads `平成31` in January and `令和元` in July, and the month heading follows the same date, so January 3, 1989 reads `昭和64年1月`. A provider locale with a `-u-ca-` keyword keeps the Gregorian sheet; set `calendar` to choose a calendar. Values stay Gregorian ISO dates. (#9842)@nynexman4464diff --git a/.changeset/calendar-inputs-guide.md b/.changeset/calendar-inputs-guide.mdindex 0fc9b1c202..384d1a5c79 100644--- a/.changeset/calendar-inputs-guide.md+++ b/.changeset/calendar-inputs-guide.md@@ -2,6 +2,6 @@'@astryxdesign/cli': patch----[docs] The calendars guide says `Calendar`, `DateInput`, `DateRangeInput`, and `DateTimeInput` show the Gregorian calendar unless the application chooses another one.+[docs] The calendars guide says `Calendar`, `DateInput`, `DateRangeInput`, and `DateTimeInput` show the Gregorian calendar unless the application chooses another one. (#9842)@nynexman4464diff --git a/.changeset/calendar-native-fallback.md b/.changeset/calendar-native-fallback.mdindex 4d24366425..09256c96bd 100644--- a/.changeset/calendar-native-fallback.md+++ b/.changeset/calendar-native-fallback.md@@ -2,6 +2,6 @@'@astryxdesign/core': patch----[feat] DateInput, DateTimeInput: never show the native date control in a calendar it cannot show. With a `calendar` other than `gregory` or `iso8601`, such as `'persian'` or `'hebrew'`, `adaptive-native` (the default), the deprecated `nativePicker` values, and `presentation="native"` use the calendar popover on a mouse and the bottom sheet on a touch screen, because the native date control shows only Gregorian dates. An explicit `presentation="native"` also warns in development. A provider locale with a `-u-ca-` keyword keeps Gregorian dates and the native control; set `calendar` to choose a calendar. Values stay Gregorian ISO dates. Without `Temporal`, calendars other than `gregory`, `iso8601`, `buddhist`, `roc`, and `japanese` show Gregorian dates and the native control as before.+[feat] DateInput, DateTimeInput: never show the native date control in a calendar it cannot show. With a `calendar` other than `gregory` or `iso8601`, such as `'persian'` or `'hebrew'`, `adaptive-native` (the default), the deprecated `nativePicker` values, and `presentation="native"` use the calendar popover on a mouse and the bottom sheet on a touch screen, because the native date control shows only Gregorian dates. An explicit `presentation="native"` also warns in development. A provider locale with a `-u-ca-` keyword keeps Gregorian dates and the native control; set `calendar` to choose a calendar. Values stay Gregorian ISO dates. Without `Temporal`, calendars other than `gregory`, `iso8601`, `buddhist`, `roc`, and `japanese` show Gregorian dates and the native control as before. (#9842)@nynexman4464diff --git a/.changeset/calendar-presentations.md b/.changeset/calendar-presentations.mdindex ad27bd8158..f55e230373 100644--- a/.changeset/calendar-presentations.md+++ b/.changeset/calendar-presentations.md@@ -2,6 +2,6 @@'@astryxdesign/core': patch----[feat] DateRangeInput: show the range in the calendar. DateRangeInput takes a `calendar` prop, such as `'persian'` or `'hebrew'`, defaulting to the `InternationalizationProvider` calendar (a provider locale with a `-u-ca-` keyword keeps Gregorian dates; set `calendar` to choose one), and writes its trigger text and shows its popover calendar in it. Values stay Gregorian ISO dates. Without `Temporal`, calendars other than `gregory`, `iso8601`, `buddhist`, `roc`, and `japanese` show Gregorian dates.+[feat] DateRangeInput: show the range in the calendar. DateRangeInput takes a `calendar` prop, such as `'persian'` or `'hebrew'`, defaulting to the `InternationalizationProvider` calendar (a provider locale with a `-u-ca-` keyword keeps Gregorian dates; set `calendar` to choose one), and writes its trigger text and shows its popover calendar in it. Values stay Gregorian ISO dates. Without `Temporal`, calendars other than `gregory`, `iso8601`, `buddhist`, `roc`, and `japanese` show Gregorian dates. (#9842)@nynexman4464diff --git a/.changeset/calendar-typed-entry.md b/.changeset/calendar-typed-entry.mdindex 8595ef6bbf..e0f92fb0ba 100644--- a/.changeset/calendar-typed-entry.md+++ b/.changeset/calendar-typed-entry.md@@ -2,7 +2,7 @@'@astryxdesign/core': patch----[feat] DateInput, DateTimeInput: type dates in other calendar systems. Both take a `calendar` prop, such as `'persian'`, `'hebrew'`, `'japanese'`, or `'buddhist'`, and otherwise use the `InternationalizationProvider` calendar. A provider locale with a `-u-ca-` keyword keeps Gregorian dates; set `calendar` to choose one. `value`, `onChange`, `min`, and `max` stay Gregorian ISO dates. People type a date the way the locale writes it in that calendar, in any decimal digits, such as `۱۴۰۵/۸/۱۱`, `1 Adar 5784`, or `令和元年5月1日`; the committed text, the popover calendar, and the `date`, `date_long`, and `date_weekday` formats use the calendar, and `system_date` stays the ISO date. Years are years of the calendar, so a Buddhist field reads `2026` as Buddhist year 2026: set `min` and `max` on Buddhist and Minguo calendar fields to catch a Gregorian year typed by mistake. A date the calendar does not have, such as 30 Esfand in a common Persian year, is named and never adjusted. An empty focused field without a `placeholder` shows an example date that the field accepts, and its description names the calendar when it differs from the `InternationalizationProvider` calendar. Calendars other than `gregory`, `iso8601`, `buddhist`, `roc`, and `japanese` need `Temporal`, native or a polyfill you load; without it the field shows Gregorian dates.+[feat] DateInput, DateTimeInput: type dates in other calendar systems. Both take a `calendar` prop, such as `'persian'`, `'hebrew'`, `'japanese'`, or `'buddhist'`, and otherwise use the `InternationalizationProvider` calendar. A provider locale with a `-u-ca-` keyword keeps Gregorian dates; set `calendar` to choose one. `value`, `onChange`, `min`, and `max` stay Gregorian ISO dates. People type a date the way the locale writes it in that calendar, in any decimal digits, such as `۱۴۰۵/۸/۱۱`, `1 Adar 5784`, or `令和元年5月1日`; the committed text, the popover calendar, and the `date`, `date_long`, and `date_weekday` formats use the calendar, and `system_date` stays the ISO date. Years are years of the calendar, so a Buddhist field reads `2026` as Buddhist year 2026: set `min` and `max` on Buddhist and Minguo calendar fields to catch a Gregorian year typed by mistake. A date the calendar does not have, such as 30 Esfand in a common Persian year, is named and never adjusted. An empty focused field without a `placeholder` shows an example date that the field accepts, and its description names the calendar when it differs from the `InternationalizationProvider` calendar. Calendars other than `gregory`, `iso8601`, `buddhist`, `roc`, and `japanese` need `Temporal`, native or a polyfill you load; without it the field shows Gregorian dates. (#9842)Typing changes for Gregorian fields too:diff --git a/.changeset/date-fields-keep-typed-text-while-disabled.md b/.changeset/date-fields-keep-typed-text-while-disabled.mdindex 2eb8f07ce3..cded5b60cd 100644--- a/.changeset/date-fields-keep-typed-text-while-disabled.md+++ b/.changeset/date-fields-keep-typed-text-while-disabled.md@@ -2,6 +2,6 @@'@astryxdesign/core': patch----[fix] DateInput and DateTimeInput keep typed text that has not reported a date, without an error, while disabled or busy, and commit it on the next Enter or blur once editable. A new value still replaces it. Typed text whose date `onChange` already reported gives way to the field's value once the field is editable again, on the next Enter or blur if the field has focus.+[fix] DateInput and DateTimeInput keep typed text that has not reported a date, without an error, while disabled or busy, and commit it on the next Enter or blur once editable. A new value still replaces it. Typed text whose date `onChange` already reported gives way to the field's value once the field is editable again, on the next Enter or blur if the field has focus. (#9842)@nynexman4464diff --git a/.changeset/typed-entry-shared-hook.md b/.changeset/typed-entry-shared-hook.mdindex f957385b50..c6a3b1e10d 100644--- a/.changeset/typed-entry-shared-hook.md+++ b/.changeset/typed-entry-shared-hook.md@@ -2,6 +2,6 @@'@astryxdesign/core': patch----[chore] Internal: DateInput and DateTimeInput keep their typed-entry state, rejection status, and commits in one shared hook instead of two copies. Typing, committing, and rejection messages are unchanged. Not exported from the package entry point.+[chore] Internal: DateInput and DateTimeInput keep their typed-entry state, rejection status, and commits in one shared hook instead of two copies. Typing, committing, and rejection messages are unchanged. Not exported from the package entry point. (#9842)@nynexman4464