-[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.
0 commit comments