@mui/x-date-pickers 7.0.0-beta.1 → 7.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +6 -0
- package/AdapterDateFnsBase/AdapterDateFnsBase.js +4 -0
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +6 -0
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +4 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +6 -0
- package/AdapterDayjs/AdapterDayjs.js +6 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +6 -0
- package/AdapterLuxon/AdapterLuxon.js +7 -2
- package/AdapterMoment/AdapterMoment.d.ts +6 -0
- package/AdapterMoment/AdapterMoment.js +4 -1
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +5 -0
- package/AdapterMomentHijri/AdapterMomentHijri.js +3 -1
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +5 -0
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +3 -1
- package/CHANGELOG.md +437 -4
- package/DateCalendar/DateCalendar.d.ts +2 -1
- package/DateCalendar/DateCalendar.js +8 -6
- package/DateCalendar/DateCalendar.types.d.ts +9 -6
- package/DateCalendar/DayCalendar.d.ts +9 -7
- package/DateCalendar/DayCalendar.js +1 -1
- package/DateCalendar/PickersFadeTransitionGroup.d.ts +3 -0
- package/DateCalendar/PickersSlideTransition.d.ts +3 -0
- package/DateCalendar/useCalendarState.d.ts +7 -7
- package/DateCalendar/useIsDateDisabled.d.ts +2 -1
- package/DateField/DateField.d.ts +2 -1
- package/DateField/DateField.js +16 -14
- package/DateField/DateField.types.d.ts +12 -15
- package/DateField/index.d.ts +1 -1
- package/DateField/useDateField.d.ts +3 -2
- package/DateField/useDateField.js +1 -15
- package/DatePicker/DatePicker.d.ts +2 -1
- package/DatePicker/DatePicker.js +14 -14
- package/DatePicker/DatePicker.types.d.ts +5 -4
- package/DatePicker/DatePickerToolbar.d.ts +7 -6
- package/DatePicker/DatePickerToolbar.js +12 -4
- package/DatePicker/shared.d.ts +6 -6
- package/DateTimeField/DateTimeField.d.ts +2 -1
- package/DateTimeField/DateTimeField.js +20 -18
- package/DateTimeField/DateTimeField.types.d.ts +12 -15
- package/DateTimeField/index.d.ts +1 -1
- package/DateTimeField/useDateTimeField.d.ts +3 -2
- package/DateTimeField/useDateTimeField.js +1 -20
- package/DateTimePicker/DateTimePicker.d.ts +2 -1
- package/DateTimePicker/DateTimePicker.js +18 -18
- package/DateTimePicker/DateTimePicker.types.d.ts +5 -4
- package/DateTimePicker/DateTimePickerTabs.d.ts +2 -2
- package/DateTimePicker/DateTimePickerTabs.js +7 -1
- package/DateTimePicker/DateTimePickerToolbar.d.ts +4 -3
- package/DateTimePicker/DateTimePickerToolbar.js +4 -1
- package/DateTimePicker/shared.d.ts +6 -6
- package/DesktopDatePicker/DesktopDatePicker.d.ts +2 -1
- package/DesktopDatePicker/DesktopDatePicker.js +14 -14
- package/DesktopDatePicker/DesktopDatePicker.types.d.ts +5 -5
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +2 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +18 -18
- package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +5 -5
- package/DesktopTimePicker/DesktopTimePicker.d.ts +2 -1
- package/DesktopTimePicker/DesktopTimePicker.js +14 -13
- package/DesktopTimePicker/DesktopTimePicker.types.d.ts +5 -5
- package/DigitalClock/DigitalClock.d.ts +2 -1
- package/DigitalClock/DigitalClock.js +5 -5
- package/DigitalClock/DigitalClock.types.d.ts +4 -4
- package/LocalizationProvider/LocalizationProvider.d.ts +5 -5
- package/LocalizationProvider/LocalizationProvider.js +1 -0
- package/MobileDatePicker/MobileDatePicker.d.ts +2 -1
- package/MobileDatePicker/MobileDatePicker.js +14 -14
- package/MobileDatePicker/MobileDatePicker.types.d.ts +5 -5
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +2 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +18 -18
- package/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +5 -5
- package/MobileTimePicker/MobileTimePicker.d.ts +2 -1
- package/MobileTimePicker/MobileTimePicker.js +14 -13
- package/MobileTimePicker/MobileTimePicker.types.d.ts +5 -5
- package/MonthCalendar/MonthCalendar.d.ts +3 -2
- package/MonthCalendar/MonthCalendar.js +5 -5
- package/MonthCalendar/MonthCalendar.types.d.ts +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +2 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +4 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +5 -5
- package/PickersCalendarHeader/PickersCalendarHeader.d.ts +2 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +6 -6
- package/PickersDay/PickersDay.d.ts +3 -2
- package/PickersDay/PickersDay.js +1 -1
- package/PickersLayout/PickersLayout.d.ts +2 -1
- package/PickersLayout/PickersLayout.js +6 -0
- package/PickersLayout/PickersLayout.types.d.ts +13 -6
- package/PickersLayout/usePickerLayout.d.ts +2 -1
- package/PickersSectionList/PickersSectionList.d.ts +4 -4
- package/PickersSectionList/PickersSectionList.js +1 -2
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
- package/PickersTextField/PickersInputBase/PickersInputBase.js +11 -5
- package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +1 -0
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -3
- package/PickersTextField/PickersTextField.d.ts +1 -1
- package/PickersTextField/PickersTextField.js +9 -5
- package/StaticDatePicker/StaticDatePicker.d.ts +2 -1
- package/StaticDatePicker/StaticDatePicker.js +5 -6
- package/StaticDatePicker/StaticDatePicker.types.d.ts +4 -4
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +2 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +9 -10
- package/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +4 -4
- package/StaticTimePicker/StaticTimePicker.d.ts +2 -1
- package/StaticTimePicker/StaticTimePicker.js +5 -5
- package/StaticTimePicker/StaticTimePicker.types.d.ts +4 -4
- package/TimeClock/Clock.d.ts +3 -3
- package/TimeClock/ClockNumbers.d.ts +4 -4
- package/TimeClock/TimeClock.d.ts +2 -1
- package/TimeClock/TimeClock.js +5 -5
- package/TimeClock/TimeClock.types.d.ts +3 -3
- package/TimeField/TimeField.d.ts +2 -1
- package/TimeField/TimeField.js +16 -14
- package/TimeField/TimeField.types.d.ts +12 -15
- package/TimeField/index.d.ts +1 -1
- package/TimeField/useTimeField.d.ts +3 -2
- package/TimeField/useTimeField.js +1 -13
- package/TimePicker/TimePicker.d.ts +2 -1
- package/TimePicker/TimePicker.js +14 -13
- package/TimePicker/TimePicker.types.d.ts +5 -4
- package/TimePicker/TimePickerToolbar.d.ts +7 -5
- package/TimePicker/TimePickerToolbar.js +12 -4
- package/TimePicker/shared.d.ts +5 -5
- package/YearCalendar/YearCalendar.d.ts +2 -1
- package/YearCalendar/YearCalendar.js +5 -5
- package/YearCalendar/YearCalendar.types.d.ts +2 -2
- package/dateTimeViewRenderers/dateTimeViewRenderers.d.ts +3 -2
- package/dateViewRenderers/dateViewRenderers.d.ts +3 -3
- package/hooks/index.d.ts +1 -1
- package/hooks/useClearableField.d.ts +10 -2
- package/index.js +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +3 -0
- package/internals/components/PickersPopper.d.ts +3 -0
- package/internals/components/PickersPopper.js +1 -2
- package/internals/demo/DemoContainer.js +6 -5
- package/internals/hooks/date-helpers-hooks.d.ts +5 -5
- package/internals/hooks/defaultizedFieldProps.d.ts +19 -0
- package/internals/hooks/defaultizedFieldProps.js +43 -0
- package/internals/hooks/useClockReferenceDate.d.ts +3 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +2 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +13 -5
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +16 -15
- package/internals/hooks/useField/buildSectionsFromFormat.d.ts +16 -0
- package/internals/hooks/useField/buildSectionsFromFormat.js +251 -0
- package/internals/hooks/useField/index.d.ts +2 -2
- package/internals/hooks/useField/index.js +1 -1
- package/internals/hooks/useField/useField.d.ts +4 -4
- package/internals/hooks/useField/useField.js +82 -309
- package/internals/hooks/useField/useField.types.d.ts +96 -60
- package/internals/hooks/useField/useField.utils.d.ts +20 -20
- package/internals/hooks/useField/useField.utils.js +78 -228
- package/internals/hooks/useField/useFieldCharacterEditing.d.ts +8 -7
- package/internals/hooks/useField/useFieldCharacterEditing.js +6 -6
- package/internals/hooks/useField/useFieldState.d.ts +13 -11
- package/internals/hooks/useField/useFieldState.js +45 -61
- package/internals/hooks/useField/useFieldV6TextField.d.ts +25 -0
- package/internals/hooks/useField/useFieldV6TextField.js +324 -0
- package/internals/hooks/useField/useFieldV7TextField.d.ts +2 -0
- package/internals/hooks/useField/useFieldV7TextField.js +402 -0
- package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +2 -1
- package/internals/hooks/useMobilePicker/useMobilePicker.js +13 -5
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +14 -14
- package/internals/hooks/usePicker/usePicker.d.ts +2 -2
- package/internals/hooks/usePicker/usePicker.js +3 -3
- package/internals/hooks/usePicker/usePicker.types.d.ts +4 -4
- package/internals/hooks/usePicker/usePickerValue.d.ts +2 -2
- package/internals/hooks/usePicker/usePickerValue.js +2 -18
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +6 -7
- package/internals/hooks/usePicker/usePickerViews.d.ts +6 -6
- package/internals/hooks/usePicker/usePickerViews.js +5 -6
- package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +2 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +7 -6
- package/internals/hooks/useUtils.d.ts +6 -6
- package/internals/hooks/useValidation.d.ts +3 -2
- package/internals/hooks/useValueWithTimezone.d.ts +3 -3
- package/internals/hooks/useViews.d.ts +2 -1
- package/internals/index.d.ts +5 -4
- package/internals/index.js +2 -1
- package/internals/models/fields.d.ts +3 -5
- package/internals/models/helpers.d.ts +1 -0
- package/internals/models/props/basePickerProps.d.ts +5 -9
- package/internals/models/props/clock.d.ts +4 -4
- package/internals/models/props/tabs.d.ts +6 -0
- package/internals/models/props/toolbar.d.ts +3 -0
- package/internals/models/validation.d.ts +7 -7
- package/internals/utils/convertFieldResponseIntoMuiTextFieldProps.d.ts +1 -1
- package/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js +21 -3
- package/internals/utils/date-time-utils.d.ts +5 -5
- package/internals/utils/date-utils.d.ts +12 -12
- package/internals/utils/fields.js +1 -1
- package/internals/utils/getDefaultReferenceDate.d.ts +3 -3
- package/internals/utils/time-utils.d.ts +6 -6
- package/internals/utils/validation/validateDate.d.ts +2 -2
- package/internals/utils/validation/validateDateTime.d.ts +2 -2
- package/internals/utils/validation/validateTime.d.ts +2 -2
- package/internals/utils/valueManagers.d.ts +2 -2
- package/internals/utils/valueManagers.js +5 -4
- package/locales/beBY.d.ts +15 -6
- package/locales/beBY.js +13 -0
- package/locales/caES.d.ts +15 -6
- package/locales/caES.js +13 -0
- package/locales/csCZ.d.ts +15 -6
- package/locales/csCZ.js +13 -0
- package/locales/daDK.d.ts +15 -6
- package/locales/daDK.js +13 -0
- package/locales/deDE.d.ts +15 -6
- package/locales/deDE.js +13 -0
- package/locales/elGR.d.ts +15 -6
- package/locales/elGR.js +13 -0
- package/locales/enUS.d.ts +15 -6
- package/locales/enUS.js +12 -1
- package/locales/esES.d.ts +15 -6
- package/locales/esES.js +13 -0
- package/locales/eu.d.ts +15 -6
- package/locales/eu.js +13 -0
- package/locales/faIR.d.ts +15 -6
- package/locales/faIR.js +13 -0
- package/locales/fiFI.d.ts +15 -6
- package/locales/fiFI.js +13 -0
- package/locales/frFR.d.ts +15 -6
- package/locales/frFR.js +13 -0
- package/locales/heIL.d.ts +15 -6
- package/locales/heIL.js +13 -0
- package/locales/huHU.d.ts +15 -6
- package/locales/huHU.js +13 -0
- package/locales/isIS.d.ts +15 -6
- package/locales/isIS.js +13 -0
- package/locales/itIT.d.ts +15 -6
- package/locales/itIT.js +13 -0
- package/locales/jaJP.d.ts +15 -6
- package/locales/jaJP.js +13 -0
- package/locales/koKR.d.ts +15 -6
- package/locales/koKR.js +13 -0
- package/locales/kzKZ.d.ts +15 -6
- package/locales/kzKZ.js +13 -0
- package/locales/mk.d.ts +15 -6
- package/locales/mk.js +13 -0
- package/locales/nbNO.d.ts +15 -6
- package/locales/nbNO.js +13 -0
- package/locales/nlNL.d.ts +15 -6
- package/locales/nlNL.js +13 -0
- package/locales/plPL.d.ts +15 -6
- package/locales/plPL.js +13 -0
- package/locales/ptBR.d.ts +15 -6
- package/locales/ptBR.js +13 -0
- package/locales/roRO.d.ts +15 -6
- package/locales/roRO.js +13 -0
- package/locales/ruRU.d.ts +15 -6
- package/locales/ruRU.js +13 -0
- package/locales/skSK.d.ts +15 -6
- package/locales/skSK.js +13 -0
- package/locales/svSE.d.ts +15 -6
- package/locales/svSE.js +13 -0
- package/locales/trTR.d.ts +15 -6
- package/locales/trTR.js +13 -0
- package/locales/ukUA.d.ts +15 -6
- package/locales/ukUA.js +13 -0
- package/locales/urPK.d.ts +15 -6
- package/locales/urPK.js +13 -0
- package/locales/utils/getPickersLocalization.d.ts +15 -6
- package/locales/utils/pickersLocaleTextApi.d.ts +15 -6
- package/locales/viVN.d.ts +15 -6
- package/locales/viVN.js +13 -0
- package/locales/zhCN.d.ts +15 -6
- package/locales/zhCN.js +13 -0
- package/locales/zhHK.d.ts +15 -6
- package/locales/zhHK.js +13 -0
- package/models/adapters.d.ts +15 -1
- package/models/fields.d.ts +48 -32
- package/models/pickers.d.ts +3 -0
- package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +4 -0
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +4 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +6 -1
- package/modern/AdapterLuxon/AdapterLuxon.js +7 -2
- package/modern/AdapterMoment/AdapterMoment.js +4 -1
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +3 -1
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +3 -1
- package/modern/DateCalendar/DateCalendar.js +8 -6
- package/modern/DateCalendar/DayCalendar.js +1 -1
- package/modern/DateField/DateField.js +16 -14
- package/modern/DateField/useDateField.js +1 -14
- package/modern/DatePicker/DatePicker.js +14 -14
- package/modern/DatePicker/DatePickerToolbar.js +12 -4
- package/modern/DateTimeField/DateTimeField.js +20 -18
- package/modern/DateTimeField/useDateTimeField.js +1 -19
- package/modern/DateTimePicker/DateTimePicker.js +18 -18
- package/modern/DateTimePicker/DateTimePickerTabs.js +7 -1
- package/modern/DateTimePicker/DateTimePickerToolbar.js +4 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +14 -14
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +18 -18
- package/modern/DesktopTimePicker/DesktopTimePicker.js +14 -13
- package/modern/DigitalClock/DigitalClock.js +5 -5
- package/modern/LocalizationProvider/LocalizationProvider.js +1 -0
- package/modern/MobileDatePicker/MobileDatePicker.js +14 -14
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +18 -18
- package/modern/MobileTimePicker/MobileTimePicker.js +14 -13
- package/modern/MonthCalendar/MonthCalendar.js +5 -5
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/modern/PickersDay/PickersDay.js +1 -1
- package/modern/PickersLayout/PickersLayout.js +6 -0
- package/modern/PickersSectionList/PickersSectionList.js +1 -2
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/modern/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +11 -5
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -3
- package/modern/PickersTextField/PickersTextField.js +9 -5
- package/modern/StaticDatePicker/StaticDatePicker.js +5 -6
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +9 -10
- package/modern/StaticTimePicker/StaticTimePicker.js +5 -5
- package/modern/TimeClock/TimeClock.js +5 -5
- package/modern/TimeField/TimeField.js +16 -14
- package/modern/TimeField/useTimeField.js +1 -12
- package/modern/TimePicker/TimePicker.js +14 -13
- package/modern/TimePicker/TimePickerToolbar.js +12 -4
- package/modern/YearCalendar/YearCalendar.js +5 -5
- package/modern/index.js +1 -1
- package/modern/internals/components/PickersPopper.js +1 -2
- package/modern/internals/demo/DemoContainer.js +6 -5
- package/modern/internals/hooks/defaultizedFieldProps.js +40 -0
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +13 -5
- package/modern/internals/hooks/useField/buildSectionsFromFormat.js +251 -0
- package/modern/internals/hooks/useField/index.js +1 -1
- package/modern/internals/hooks/useField/useField.js +82 -303
- package/modern/internals/hooks/useField/useField.utils.js +78 -228
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +6 -6
- package/modern/internals/hooks/useField/useFieldState.js +45 -61
- package/modern/internals/hooks/useField/useFieldV6TextField.js +318 -0
- package/modern/internals/hooks/useField/useFieldV7TextField.js +400 -0
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +13 -5
- package/modern/internals/hooks/usePicker/usePicker.js +3 -3
- package/modern/internals/hooks/usePicker/usePickerValue.js +2 -18
- package/modern/internals/hooks/usePicker/usePickerViews.js +4 -6
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/modern/internals/index.js +2 -1
- package/modern/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js +21 -3
- package/modern/internals/utils/fields.js +1 -1
- package/modern/internals/utils/valueManagers.js +5 -4
- package/modern/locales/beBY.js +13 -0
- package/modern/locales/caES.js +13 -0
- package/modern/locales/csCZ.js +13 -0
- package/modern/locales/daDK.js +13 -0
- package/modern/locales/deDE.js +13 -0
- package/modern/locales/elGR.js +13 -0
- package/modern/locales/enUS.js +12 -1
- package/modern/locales/esES.js +13 -0
- package/modern/locales/eu.js +13 -0
- package/modern/locales/faIR.js +13 -0
- package/modern/locales/fiFI.js +13 -0
- package/modern/locales/frFR.js +13 -0
- package/modern/locales/heIL.js +13 -0
- package/modern/locales/huHU.js +13 -0
- package/modern/locales/isIS.js +13 -0
- package/modern/locales/itIT.js +13 -0
- package/modern/locales/jaJP.js +13 -0
- package/modern/locales/koKR.js +13 -0
- package/modern/locales/kzKZ.js +13 -0
- package/modern/locales/mk.js +13 -0
- package/modern/locales/nbNO.js +13 -0
- package/modern/locales/nlNL.js +13 -0
- package/modern/locales/plPL.js +13 -0
- package/modern/locales/ptBR.js +13 -0
- package/modern/locales/roRO.js +13 -0
- package/modern/locales/ruRU.js +13 -0
- package/modern/locales/skSK.js +13 -0
- package/modern/locales/svSE.js +13 -0
- package/modern/locales/trTR.js +13 -0
- package/modern/locales/ukUA.js +13 -0
- package/modern/locales/urPK.js +13 -0
- package/modern/locales/viVN.js +13 -0
- package/modern/locales/zhCN.js +13 -0
- package/modern/locales/zhHK.js +13 -0
- package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +4 -0
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +4 -1
- package/node/AdapterDayjs/AdapterDayjs.js +6 -1
- package/node/AdapterLuxon/AdapterLuxon.js +7 -2
- package/node/AdapterMoment/AdapterMoment.js +4 -1
- package/node/AdapterMomentHijri/AdapterMomentHijri.js +3 -1
- package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +3 -1
- package/node/DateCalendar/DateCalendar.js +8 -6
- package/node/DateCalendar/DayCalendar.js +1 -1
- package/node/DateField/DateField.js +16 -14
- package/node/DateField/useDateField.js +2 -16
- package/node/DatePicker/DatePicker.js +14 -14
- package/node/DatePicker/DatePickerToolbar.js +12 -4
- package/node/DateTimeField/DateTimeField.js +20 -18
- package/node/DateTimeField/useDateTimeField.js +2 -21
- package/node/DateTimePicker/DateTimePicker.js +18 -18
- package/node/DateTimePicker/DateTimePickerTabs.js +7 -1
- package/node/DateTimePicker/DateTimePickerToolbar.js +4 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +14 -14
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +18 -18
- package/node/DesktopTimePicker/DesktopTimePicker.js +14 -13
- package/node/DigitalClock/DigitalClock.js +5 -5
- package/node/LocalizationProvider/LocalizationProvider.js +1 -0
- package/node/MobileDatePicker/MobileDatePicker.js +14 -14
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +18 -18
- package/node/MobileTimePicker/MobileTimePicker.js +14 -13
- package/node/MonthCalendar/MonthCalendar.js +5 -5
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/PickersLayout/PickersLayout.js +6 -0
- package/node/PickersSectionList/PickersSectionList.js +4 -5
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/node/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +11 -5
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -3
- package/node/PickersTextField/PickersTextField.js +9 -5
- package/node/StaticDatePicker/StaticDatePicker.js +5 -6
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +9 -10
- package/node/StaticTimePicker/StaticTimePicker.js +5 -5
- package/node/TimeClock/TimeClock.js +5 -5
- package/node/TimeField/TimeField.js +16 -14
- package/node/TimeField/useTimeField.js +2 -14
- package/node/TimePicker/TimePicker.js +14 -13
- package/node/TimePicker/TimePickerToolbar.js +12 -4
- package/node/YearCalendar/YearCalendar.js +5 -5
- package/node/index.js +1 -1
- package/node/internals/components/PickersPopper.js +1 -2
- package/node/internals/demo/DemoContainer.js +6 -5
- package/node/internals/hooks/defaultizedFieldProps.js +50 -0
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +13 -5
- package/node/internals/hooks/useField/buildSectionsFromFormat.js +259 -0
- package/node/internals/hooks/useField/index.js +4 -10
- package/node/internals/hooks/useField/useField.js +81 -302
- package/node/internals/hooks/useField/useField.utils.js +86 -236
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +6 -6
- package/node/internals/hooks/useField/useFieldState.js +44 -60
- package/node/internals/hooks/useField/useFieldV6TextField.js +329 -0
- package/node/internals/hooks/useField/useFieldV7TextField.js +410 -0
- package/node/internals/hooks/useMobilePicker/useMobilePicker.js +13 -5
- package/node/internals/hooks/usePicker/usePicker.js +3 -3
- package/node/internals/hooks/usePicker/usePickerValue.js +2 -18
- package/node/internals/hooks/usePicker/usePickerViews.js +4 -6
- package/node/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/node/internals/index.js +27 -8
- package/node/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js +21 -3
- package/node/internals/utils/fields.js +1 -1
- package/node/internals/utils/valueManagers.js +4 -3
- package/node/locales/beBY.js +13 -0
- package/node/locales/caES.js +13 -0
- package/node/locales/csCZ.js +13 -0
- package/node/locales/daDK.js +13 -0
- package/node/locales/deDE.js +13 -0
- package/node/locales/elGR.js +13 -0
- package/node/locales/enUS.js +12 -1
- package/node/locales/esES.js +13 -0
- package/node/locales/eu.js +13 -0
- package/node/locales/faIR.js +13 -0
- package/node/locales/fiFI.js +13 -0
- package/node/locales/frFR.js +13 -0
- package/node/locales/heIL.js +13 -0
- package/node/locales/huHU.js +13 -0
- package/node/locales/isIS.js +13 -0
- package/node/locales/itIT.js +13 -0
- package/node/locales/jaJP.js +13 -0
- package/node/locales/koKR.js +13 -0
- package/node/locales/kzKZ.js +13 -0
- package/node/locales/mk.js +13 -0
- package/node/locales/nbNO.js +13 -0
- package/node/locales/nlNL.js +13 -0
- package/node/locales/plPL.js +13 -0
- package/node/locales/ptBR.js +13 -0
- package/node/locales/roRO.js +13 -0
- package/node/locales/ruRU.js +13 -0
- package/node/locales/skSK.js +13 -0
- package/node/locales/svSE.js +13 -0
- package/node/locales/trTR.js +13 -0
- package/node/locales/ukUA.js +13 -0
- package/node/locales/urPK.js +13 -0
- package/node/locales/viVN.js +13 -0
- package/node/locales/zhCN.js +13 -0
- package/node/locales/zhHK.js +13 -0
- package/package.json +4 -4
- package/themeAugmentation/props.d.ts +31 -31
- package/timeViewRenderers/timeViewRenderers.d.ts +4 -4
- package/legacy/AdapterDateFns/AdapterDateFns.js +0 -298
- package/legacy/AdapterDateFns/index.js +0 -1
- package/legacy/AdapterDateFnsBase/AdapterDateFnsBase.js +0 -293
- package/legacy/AdapterDateFnsBase/index.js +0 -1
- package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -548
- package/legacy/AdapterDateFnsJalali/index.js +0 -1
- package/legacy/AdapterDateFnsV3/AdapterDateFnsV3.js +0 -306
- package/legacy/AdapterDateFnsV3/index.js +0 -1
- package/legacy/AdapterDayjs/AdapterDayjs.js +0 -569
- package/legacy/AdapterDayjs/index.js +0 -1
- package/legacy/AdapterLuxon/AdapterLuxon.js +0 -509
- package/legacy/AdapterLuxon/index.js +0 -1
- package/legacy/AdapterMoment/AdapterMoment.js +0 -482
- package/legacy/AdapterMoment/index.js +0 -1
- package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +0 -239
- package/legacy/AdapterMomentHijri/index.js +0 -1
- package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -236
- package/legacy/AdapterMomentJalaali/index.js +0 -1
- package/legacy/DateCalendar/DateCalendar.js +0 -573
- package/legacy/DateCalendar/DateCalendar.types.js +0 -1
- package/legacy/DateCalendar/DayCalendar.js +0 -515
- package/legacy/DateCalendar/PickersFadeTransitionGroup.js +0 -58
- package/legacy/DateCalendar/PickersSlideTransition.js +0 -118
- package/legacy/DateCalendar/dateCalendarClasses.js +0 -5
- package/legacy/DateCalendar/dayCalendarClasses.js +0 -5
- package/legacy/DateCalendar/index.js +0 -5
- package/legacy/DateCalendar/pickersFadeTransitionGroupClasses.js +0 -5
- package/legacy/DateCalendar/pickersSlideTransitionClasses.js +0 -5
- package/legacy/DateCalendar/useCalendarState.js +0 -124
- package/legacy/DateCalendar/useIsDateDisabled.js +0 -30
- package/legacy/DateField/DateField.js +0 -319
- package/legacy/DateField/DateField.types.js +0 -1
- package/legacy/DateField/index.js +0 -2
- package/legacy/DateField/useDateField.js +0 -33
- package/legacy/DatePicker/DatePicker.js +0 -353
- package/legacy/DatePicker/DatePicker.types.js +0 -1
- package/legacy/DatePicker/DatePickerToolbar.js +0 -132
- package/legacy/DatePicker/datePickerToolbarClasses.js +0 -5
- package/legacy/DatePicker/index.js +0 -3
- package/legacy/DatePicker/shared.js +0 -41
- package/legacy/DateTimeField/DateTimeField.js +0 -360
- package/legacy/DateTimeField/DateTimeField.types.js +0 -1
- package/legacy/DateTimeField/index.js +0 -2
- package/legacy/DateTimeField/useDateTimeField.js +0 -38
- package/legacy/DateTimePicker/DateTimePicker.js +0 -424
- package/legacy/DateTimePicker/DateTimePicker.types.js +0 -1
- package/legacy/DateTimePicker/DateTimePickerTabs.js +0 -142
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +0 -385
- package/legacy/DateTimePicker/dateTimePickerTabsClasses.js +0 -5
- package/legacy/DateTimePicker/dateTimePickerToolbarClasses.js +0 -5
- package/legacy/DateTimePicker/index.js +0 -5
- package/legacy/DateTimePicker/shared.js +0 -56
- package/legacy/DayCalendarSkeleton/DayCalendarSkeleton.js +0 -119
- package/legacy/DayCalendarSkeleton/dayCalendarSkeletonClasses.js +0 -5
- package/legacy/DayCalendarSkeleton/index.js +0 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -372
- package/legacy/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
- package/legacy/DesktopDatePicker/index.js +0 -1
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -480
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
- package/legacy/DesktopDateTimePicker/index.js +0 -1
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -355
- package/legacy/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
- package/legacy/DesktopTimePicker/index.js +0 -1
- package/legacy/DigitalClock/DigitalClock.js +0 -443
- package/legacy/DigitalClock/DigitalClock.types.js +0 -1
- package/legacy/DigitalClock/digitalClockClasses.js +0 -6
- package/legacy/DigitalClock/index.js +0 -2
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -140
- package/legacy/LocalizationProvider/index.js +0 -1
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -369
- package/legacy/MobileDatePicker/MobileDatePicker.types.js +0 -1
- package/legacy/MobileDatePicker/index.js +0 -1
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -428
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.types.js +0 -1
- package/legacy/MobileDateTimePicker/index.js +0 -1
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -311
- package/legacy/MobileTimePicker/MobileTimePicker.types.js +0 -1
- package/legacy/MobileTimePicker/index.js +0 -1
- package/legacy/MonthCalendar/MonthCalendar.js +0 -338
- package/legacy/MonthCalendar/MonthCalendar.types.js +0 -1
- package/legacy/MonthCalendar/PickersMonth.js +0 -135
- package/legacy/MonthCalendar/index.js +0 -3
- package/legacy/MonthCalendar/monthCalendarClasses.js +0 -5
- package/legacy/MonthCalendar/pickersMonthClasses.js +0 -5
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +0 -521
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +0 -1
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +0 -76
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +0 -173
- package/legacy/MultiSectionDigitalClock/index.js +0 -3
- package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +0 -6
- package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +0 -6
- package/legacy/PickersActionBar/PickersActionBar.js +0 -86
- package/legacy/PickersActionBar/index.js +0 -1
- package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +0 -284
- package/legacy/PickersCalendarHeader/PickersCalendarHeader.types.js +0 -1
- package/legacy/PickersCalendarHeader/index.js +0 -2
- package/legacy/PickersCalendarHeader/pickersCalendarHeaderClasses.js +0 -5
- package/legacy/PickersDay/PickersDay.js +0 -367
- package/legacy/PickersDay/index.js +0 -2
- package/legacy/PickersDay/pickersDayClasses.js +0 -5
- package/legacy/PickersLayout/PickersLayout.js +0 -159
- package/legacy/PickersLayout/PickersLayout.types.js +0 -1
- package/legacy/PickersLayout/index.js +0 -3
- package/legacy/PickersLayout/pickersLayoutClasses.js +0 -6
- package/legacy/PickersLayout/usePickerLayout.js +0 -134
- package/legacy/PickersSectionList/PickersSectionList.js +0 -235
- package/legacy/PickersSectionList/PickersSectionList.types.js +0 -1
- package/legacy/PickersSectionList/index.js +0 -2
- package/legacy/PickersSectionList/pickersSectionListClasses.js +0 -6
- package/legacy/PickersShortcuts/PickersShortcuts.js +0 -110
- package/legacy/PickersShortcuts/index.js +0 -1
- package/legacy/PickersTextField/PickersFilledInput/PickersFilledInput.js +0 -234
- package/legacy/PickersTextField/PickersFilledInput/index.js +0 -2
- package/legacy/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +0 -8
- package/legacy/PickersTextField/PickersInput/PickersInput.js +0 -190
- package/legacy/PickersTextField/PickersInput/index.js +0 -2
- package/legacy/PickersTextField/PickersInput/pickersInputClasses.js +0 -8
- package/legacy/PickersTextField/PickersInputBase/PickersInputBase.js +0 -340
- package/legacy/PickersTextField/PickersInputBase/PickersInputBase.types.js +0 -1
- package/legacy/PickersTextField/PickersInputBase/index.js +0 -2
- package/legacy/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +0 -6
- package/legacy/PickersTextField/PickersOutlinedInput/Outline.js +0 -121
- package/legacy/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +0 -183
- package/legacy/PickersTextField/PickersOutlinedInput/index.js +0 -2
- package/legacy/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +0 -8
- package/legacy/PickersTextField/PickersTextField.js +0 -258
- package/legacy/PickersTextField/PickersTextField.types.js +0 -1
- package/legacy/PickersTextField/index.js +0 -6
- package/legacy/PickersTextField/pickersTextFieldClasses.js +0 -6
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -297
- package/legacy/StaticDatePicker/StaticDatePicker.types.js +0 -1
- package/legacy/StaticDatePicker/index.js +0 -1
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -356
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.types.js +0 -1
- package/legacy/StaticDateTimePicker/index.js +0 -1
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -238
- package/legacy/StaticTimePicker/StaticTimePicker.types.js +0 -1
- package/legacy/StaticTimePicker/index.js +0 -1
- package/legacy/TimeClock/Clock.js +0 -358
- package/legacy/TimeClock/ClockNumber.js +0 -87
- package/legacy/TimeClock/ClockNumbers.js +0 -73
- package/legacy/TimeClock/ClockPointer.js +0 -106
- package/legacy/TimeClock/TimeClock.js +0 -481
- package/legacy/TimeClock/TimeClock.types.js +0 -1
- package/legacy/TimeClock/clockClasses.js +0 -5
- package/legacy/TimeClock/clockNumberClasses.js +0 -5
- package/legacy/TimeClock/clockPointerClasses.js +0 -5
- package/legacy/TimeClock/index.js +0 -5
- package/legacy/TimeClock/shared.js +0 -53
- package/legacy/TimeClock/timeClockClasses.js +0 -5
- package/legacy/TimeField/TimeField.js +0 -320
- package/legacy/TimeField/TimeField.types.js +0 -1
- package/legacy/TimeField/index.js +0 -2
- package/legacy/TimeField/useTimeField.js +0 -31
- package/legacy/TimePicker/TimePicker.js +0 -314
- package/legacy/TimePicker/TimePicker.types.js +0 -1
- package/legacy/TimePicker/TimePickerToolbar.js +0 -260
- package/legacy/TimePicker/index.js +0 -3
- package/legacy/TimePicker/shared.js +0 -45
- package/legacy/TimePicker/timePickerToolbarClasses.js +0 -5
- package/legacy/YearCalendar/PickersYear.js +0 -137
- package/legacy/YearCalendar/YearCalendar.js +0 -362
- package/legacy/YearCalendar/YearCalendar.types.js +0 -1
- package/legacy/YearCalendar/index.js +0 -3
- package/legacy/YearCalendar/pickersYearClasses.js +0 -5
- package/legacy/YearCalendar/yearCalendarClasses.js +0 -5
- package/legacy/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -162
- package/legacy/dateTimeViewRenderers/index.js +0 -1
- package/legacy/dateViewRenderers/dateViewRenderers.js +0 -82
- package/legacy/dateViewRenderers/index.js +0 -1
- package/legacy/hooks/index.js +0 -1
- package/legacy/hooks/useClearableField.js +0 -76
- package/legacy/icons/index.js +0 -68
- package/legacy/index.js +0 -59
- package/legacy/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
- package/legacy/internals/components/DateTimeViewWrapper/index.js +0 -1
- package/legacy/internals/components/PickerViewRoot/PickerViewRoot.js +0 -10
- package/legacy/internals/components/PickerViewRoot/index.js +0 -1
- package/legacy/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +0 -170
- package/legacy/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.js +0 -1
- package/legacy/internals/components/PickersArrowSwitcher/index.js +0 -2
- package/legacy/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +0 -5
- package/legacy/internals/components/PickersModalDialog.js +0 -42
- package/legacy/internals/components/PickersPopper.js +0 -325
- package/legacy/internals/components/PickersToolbar.js +0 -92
- package/legacy/internals/components/PickersToolbarButton.js +0 -61
- package/legacy/internals/components/PickersToolbarText.js +0 -52
- package/legacy/internals/components/pickersPopperClasses.js +0 -5
- package/legacy/internals/components/pickersToolbarButtonClasses.js +0 -5
- package/legacy/internals/components/pickersToolbarClasses.js +0 -5
- package/legacy/internals/components/pickersToolbarTextClasses.js +0 -5
- package/legacy/internals/constants/dimensions.js +0 -7
- package/legacy/internals/demo/DemoContainer.js +0 -163
- package/legacy/internals/demo/index.js +0 -1
- package/legacy/internals/hooks/date-helpers-hooks.js +0 -37
- package/legacy/internals/hooks/useClockReferenceDate.js +0 -28
- package/legacy/internals/hooks/useDefaultReduceAnimations.js +0 -14
- package/legacy/internals/hooks/useDesktopPicker/index.js +0 -1
- package/legacy/internals/hooks/useDesktopPicker/useDesktopPicker.js +0 -174
- package/legacy/internals/hooks/useDesktopPicker/useDesktopPicker.types.js +0 -1
- package/legacy/internals/hooks/useField/index.js +0 -2
- package/legacy/internals/hooks/useField/useField.js +0 -470
- package/legacy/internals/hooks/useField/useField.types.js +0 -1
- package/legacy/internals/hooks/useField/useField.utils.js +0 -828
- package/legacy/internals/hooks/useField/useFieldCharacterEditing.js +0 -277
- package/legacy/internals/hooks/useField/useFieldState.js +0 -321
- package/legacy/internals/hooks/useIsLandscape.js +0 -39
- package/legacy/internals/hooks/useMobilePicker/index.js +0 -1
- package/legacy/internals/hooks/useMobilePicker/useMobilePicker.js +0 -126
- package/legacy/internals/hooks/useMobilePicker/useMobilePicker.types.js +0 -1
- package/legacy/internals/hooks/useOpenState.js +0 -38
- package/legacy/internals/hooks/usePicker/index.js +0 -1
- package/legacy/internals/hooks/usePicker/usePicker.js +0 -54
- package/legacy/internals/hooks/usePicker/usePicker.types.js +0 -1
- package/legacy/internals/hooks/usePicker/usePickerLayoutProps.js +0 -28
- package/legacy/internals/hooks/usePicker/usePickerValue.js +0 -365
- package/legacy/internals/hooks/usePicker/usePickerValue.types.js +0 -1
- package/legacy/internals/hooks/usePicker/usePickerViews.js +0 -172
- package/legacy/internals/hooks/useStaticPicker/index.js +0 -1
- package/legacy/internals/hooks/useStaticPicker/useStaticPicker.js +0 -66
- package/legacy/internals/hooks/useStaticPicker/useStaticPicker.types.js +0 -1
- package/legacy/internals/hooks/useUtils.js +0 -38
- package/legacy/internals/hooks/useValidation.js +0 -20
- package/legacy/internals/hooks/useValueWithTimezone.js +0 -81
- package/legacy/internals/hooks/useViews.js +0 -124
- package/legacy/internals/index.js +0 -35
- package/legacy/internals/models/common.js +0 -1
- package/legacy/internals/models/fields.js +0 -1
- package/legacy/internals/models/helpers.js +0 -1
- package/legacy/internals/models/index.js +0 -2
- package/legacy/internals/models/props/basePickerProps.js +0 -1
- package/legacy/internals/models/props/clock.js +0 -1
- package/legacy/internals/models/props/tabs.js +0 -1
- package/legacy/internals/models/props/toolbar.js +0 -1
- package/legacy/internals/models/validation.js +0 -1
- package/legacy/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js +0 -24
- package/legacy/internals/utils/date-time-utils.js +0 -71
- package/legacy/internals/utils/date-utils.js +0 -129
- package/legacy/internals/utils/fields.js +0 -28
- package/legacy/internals/utils/getDefaultReferenceDate.js +0 -65
- package/legacy/internals/utils/time-utils.js +0 -63
- package/legacy/internals/utils/utils.js +0 -40
- package/legacy/internals/utils/validation/extractValidationProps.js +0 -16
- package/legacy/internals/utils/validation/validateDate.js +0 -38
- package/legacy/internals/utils/validation/validateDateTime.js +0 -20
- package/legacy/internals/utils/validation/validateTime.js +0 -42
- package/legacy/internals/utils/valueManagers.js +0 -67
- package/legacy/internals/utils/views.js +0 -29
- package/legacy/internals/utils/warning.js +0 -39
- package/legacy/locales/beBY.js +0 -99
- package/legacy/locales/caES.js +0 -100
- package/legacy/locales/csCZ.js +0 -100
- package/legacy/locales/daDK.js +0 -102
- package/legacy/locales/deDE.js +0 -101
- package/legacy/locales/elGR.js +0 -100
- package/legacy/locales/enUS.js +0 -96
- package/legacy/locales/esES.js +0 -99
- package/legacy/locales/eu.js +0 -99
- package/legacy/locales/faIR.js +0 -100
- package/legacy/locales/fiFI.js +0 -100
- package/legacy/locales/frFR.js +0 -98
- package/legacy/locales/heIL.js +0 -100
- package/legacy/locales/huHU.js +0 -99
- package/legacy/locales/index.js +0 -35
- package/legacy/locales/isIS.js +0 -100
- package/legacy/locales/itIT.js +0 -98
- package/legacy/locales/jaJP.js +0 -102
- package/legacy/locales/koKR.js +0 -98
- package/legacy/locales/kzKZ.js +0 -99
- package/legacy/locales/mk.js +0 -96
- package/legacy/locales/nbNO.js +0 -100
- package/legacy/locales/nlNL.js +0 -100
- package/legacy/locales/plPL.js +0 -85
- package/legacy/locales/ptBR.js +0 -100
- package/legacy/locales/roRO.js +0 -99
- package/legacy/locales/ruRU.js +0 -98
- package/legacy/locales/skSK.js +0 -100
- package/legacy/locales/svSE.js +0 -85
- package/legacy/locales/trTR.js +0 -100
- package/legacy/locales/ukUA.js +0 -100
- package/legacy/locales/urPK.js +0 -85
- package/legacy/locales/utils/getPickersLocalization.js +0 -12
- package/legacy/locales/utils/pickersLocaleTextApi.js +0 -1
- package/legacy/locales/viVN.js +0 -100
- package/legacy/locales/zhCN.js +0 -100
- package/legacy/locales/zhHK.js +0 -100
- package/legacy/models/adapters.js +0 -1
- package/legacy/models/common.js +0 -1
- package/legacy/models/fields.js +0 -1
- package/legacy/models/index.js +0 -7
- package/legacy/models/pickers.js +0 -1
- package/legacy/models/timezone.js +0 -1
- package/legacy/models/validation.js +0 -1
- package/legacy/models/views.js +0 -1
- package/legacy/themeAugmentation/index.js +0 -3
- package/legacy/timeViewRenderers/index.js +0 -1
- package/legacy/timeViewRenderers/timeViewRenderers.js +0 -186
|
@@ -2,7 +2,7 @@ import { SxProps } from '@mui/system';
|
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
3
|
import { MonthCalendarClasses } from './monthCalendarClasses';
|
|
4
4
|
import { BaseDateValidationProps, MonthValidationProps } from '../internals/models/validation';
|
|
5
|
-
import { TimezoneProps } from '../models';
|
|
5
|
+
import { PickerValidDate, TimezoneProps } from '../models';
|
|
6
6
|
export interface ExportedMonthCalendarProps {
|
|
7
7
|
/**
|
|
8
8
|
* Months rendered per row.
|
|
@@ -10,7 +10,7 @@ export interface ExportedMonthCalendarProps {
|
|
|
10
10
|
*/
|
|
11
11
|
monthsPerRow?: 3 | 4;
|
|
12
12
|
}
|
|
13
|
-
export interface MonthCalendarProps<TDate> extends ExportedMonthCalendarProps, MonthValidationProps<TDate>, BaseDateValidationProps<TDate>, TimezoneProps {
|
|
13
|
+
export interface MonthCalendarProps<TDate extends PickerValidDate> extends ExportedMonthCalendarProps, MonthValidationProps<TDate>, BaseDateValidationProps<TDate>, TimezoneProps {
|
|
14
14
|
autoFocus?: boolean;
|
|
15
15
|
className?: string;
|
|
16
16
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MultiSectionDigitalClockProps } from './MultiSectionDigitalClock.types';
|
|
3
|
-
|
|
3
|
+
import { PickerValidDate } from '../models';
|
|
4
|
+
type MultiSectionDigitalClockComponent = (<TDate extends PickerValidDate>(props: MultiSectionDigitalClockProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
5
|
propTypes?: any;
|
|
5
6
|
};
|
|
6
7
|
/**
|
|
@@ -350,7 +350,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
|
350
350
|
* The default selected value.
|
|
351
351
|
* Used when the component is not controlled.
|
|
352
352
|
*/
|
|
353
|
-
defaultValue: PropTypes.
|
|
353
|
+
defaultValue: PropTypes.object,
|
|
354
354
|
/**
|
|
355
355
|
* If `true`, the picker views and text field are disabled.
|
|
356
356
|
* @default false
|
|
@@ -379,12 +379,12 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
|
379
379
|
* Maximal selectable time.
|
|
380
380
|
* The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
|
|
381
381
|
*/
|
|
382
|
-
maxTime: PropTypes.
|
|
382
|
+
maxTime: PropTypes.object,
|
|
383
383
|
/**
|
|
384
384
|
* Minimal selectable time.
|
|
385
385
|
* The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
|
|
386
386
|
*/
|
|
387
|
-
minTime: PropTypes.
|
|
387
|
+
minTime: PropTypes.object,
|
|
388
388
|
/**
|
|
389
389
|
* Step over minutes.
|
|
390
390
|
* @default 1
|
|
@@ -427,7 +427,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
|
427
427
|
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
428
428
|
* @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.
|
|
429
429
|
*/
|
|
430
|
-
referenceDate: PropTypes.
|
|
430
|
+
referenceDate: PropTypes.object,
|
|
431
431
|
/**
|
|
432
432
|
* Disable specific time.
|
|
433
433
|
* @template TDate
|
|
@@ -477,7 +477,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
|
477
477
|
* The selected value.
|
|
478
478
|
* Used when the component is controlled.
|
|
479
479
|
*/
|
|
480
|
-
value: PropTypes.
|
|
480
|
+
value: PropTypes.object,
|
|
481
481
|
/**
|
|
482
482
|
* The visible view.
|
|
483
483
|
* Used when the component view is controlled.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SlotComponentProps } from '@mui/base/utils';
|
|
3
3
|
import MenuItem from '@mui/material/MenuItem';
|
|
4
4
|
import { MultiSectionDigitalClockClasses } from './multiSectionDigitalClockClasses';
|
|
5
5
|
import { BaseClockProps, ExportedBaseClockProps, MultiSectionDigitalClockOnlyProps } from '../internals/models/props/clock';
|
|
6
6
|
import { MultiSectionDigitalClockSectionProps } from './MultiSectionDigitalClockSection';
|
|
7
7
|
import { TimeViewWithMeridiem } from '../internals/models';
|
|
8
|
+
import { PickerValidDate } from '../models';
|
|
8
9
|
export interface MultiSectionDigitalClockOption<TValue> {
|
|
9
10
|
isDisabled?: (value: TValue) => boolean;
|
|
10
11
|
isSelected: (value: TValue) => boolean;
|
|
@@ -13,7 +14,7 @@ export interface MultiSectionDigitalClockOption<TValue> {
|
|
|
13
14
|
value: TValue;
|
|
14
15
|
ariaLabel: string;
|
|
15
16
|
}
|
|
16
|
-
export interface ExportedMultiSectionDigitalClockProps<TDate> extends ExportedBaseClockProps<TDate>, MultiSectionDigitalClockOnlyProps {
|
|
17
|
+
export interface ExportedMultiSectionDigitalClockProps<TDate extends PickerValidDate> extends ExportedBaseClockProps<TDate>, MultiSectionDigitalClockOnlyProps {
|
|
17
18
|
}
|
|
18
19
|
export interface MultiSectionDigitalClockViewProps<TValue> extends Pick<MultiSectionDigitalClockSectionProps<TValue>, 'onChange' | 'items'> {
|
|
19
20
|
}
|
|
@@ -27,7 +28,7 @@ export interface MultiSectionDigitalClockSlots {
|
|
|
27
28
|
export interface MultiSectionDigitalClockSlotProps {
|
|
28
29
|
digitalClockSectionItem?: SlotComponentProps<typeof MenuItem, {}, Record<string, any>>;
|
|
29
30
|
}
|
|
30
|
-
export interface MultiSectionDigitalClockProps<TDate> extends ExportedMultiSectionDigitalClockProps<TDate>, BaseClockProps<TDate, TimeViewWithMeridiem> {
|
|
31
|
+
export interface MultiSectionDigitalClockProps<TDate extends PickerValidDate> extends ExportedMultiSectionDigitalClockProps<TDate>, BaseClockProps<TDate, TimeViewWithMeridiem> {
|
|
31
32
|
/**
|
|
32
33
|
* Available views.
|
|
33
34
|
* @default ['hours', 'minutes']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MuiPickersAdapter } from '../models';
|
|
1
|
+
import { MuiPickersAdapter, PickerValidDate } from '../models';
|
|
2
2
|
import { MultiSectionDigitalClockOption } from './MultiSectionDigitalClock.types';
|
|
3
|
-
interface IGetHoursSectionOptions<TDate> {
|
|
3
|
+
interface IGetHoursSectionOptions<TDate extends PickerValidDate> {
|
|
4
4
|
now: TDate;
|
|
5
5
|
value: TDate | null;
|
|
6
6
|
utils: MuiPickersAdapter<TDate>;
|
|
@@ -10,8 +10,8 @@ interface IGetHoursSectionOptions<TDate> {
|
|
|
10
10
|
resolveAriaLabel: (value: string) => string;
|
|
11
11
|
valueOrReferenceDate: TDate;
|
|
12
12
|
}
|
|
13
|
-
export declare const getHourSectionOptions: <TDate>({ now, value, utils, ampm, isDisabled, resolveAriaLabel, timeStep, valueOrReferenceDate, }: IGetHoursSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
|
|
14
|
-
interface IGetTimeSectionOptions<TDate> {
|
|
13
|
+
export declare const getHourSectionOptions: <TDate extends PickerValidDate>({ now, value, utils, ampm, isDisabled, resolveAriaLabel, timeStep, valueOrReferenceDate, }: IGetHoursSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
|
|
14
|
+
interface IGetTimeSectionOptions<TDate extends PickerValidDate> {
|
|
15
15
|
value: number | null;
|
|
16
16
|
utils: MuiPickersAdapter<TDate>;
|
|
17
17
|
isDisabled: (value: number) => boolean;
|
|
@@ -20,5 +20,5 @@ interface IGetTimeSectionOptions<TDate> {
|
|
|
20
20
|
hasValue?: boolean;
|
|
21
21
|
resolveAriaLabel: (value: string) => string;
|
|
22
22
|
}
|
|
23
|
-
export declare const getTimeSectionOptions: <TDate>({ value, utils, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
|
|
23
|
+
export declare const getTimeSectionOptions: <TDate extends PickerValidDate>({ value, utils, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
|
|
24
24
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickersCalendarHeaderProps } from './PickersCalendarHeader.types';
|
|
3
|
-
|
|
3
|
+
import { PickerValidDate } from '../models';
|
|
4
|
+
type PickersCalendarHeaderComponent = (<TDate extends PickerValidDate>(props: PickersCalendarHeaderProps<TDate> & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element) & {
|
|
4
5
|
propTypes?: any;
|
|
5
6
|
};
|
|
6
7
|
/**
|
|
@@ -232,7 +232,7 @@ process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
|
|
|
232
232
|
*/
|
|
233
233
|
classes: PropTypes.object,
|
|
234
234
|
className: PropTypes.string,
|
|
235
|
-
currentMonth: PropTypes.
|
|
235
|
+
currentMonth: PropTypes.object.isRequired,
|
|
236
236
|
disabled: PropTypes.bool,
|
|
237
237
|
disableFuture: PropTypes.bool,
|
|
238
238
|
disablePast: PropTypes.bool,
|
|
@@ -242,8 +242,8 @@ process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
|
|
|
242
242
|
*/
|
|
243
243
|
format: PropTypes.string,
|
|
244
244
|
labelId: PropTypes.string,
|
|
245
|
-
maxDate: PropTypes.
|
|
246
|
-
minDate: PropTypes.
|
|
245
|
+
maxDate: PropTypes.object.isRequired,
|
|
246
|
+
minDate: PropTypes.object.isRequired,
|
|
247
247
|
onMonthChange: PropTypes.func.isRequired,
|
|
248
248
|
onViewChange: PropTypes.func,
|
|
249
249
|
reduceAnimations: PropTypes.bool.isRequired,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SlotComponentProps } from '@mui/base/utils';
|
|
3
3
|
import IconButton from '@mui/material/IconButton';
|
|
4
4
|
import SvgIcon from '@mui/material/SvgIcon';
|
|
5
5
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
6
6
|
import { ExportedPickersArrowSwitcherProps, PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps } from '../internals/components/PickersArrowSwitcher';
|
|
7
7
|
import { MonthValidationOptions } from '../internals/hooks/date-helpers-hooks';
|
|
8
|
-
import { DateView } from '../models
|
|
8
|
+
import { PickerValidDate, DateView } from '../models';
|
|
9
9
|
import { SlideDirection } from '../DateCalendar/PickersSlideTransition';
|
|
10
10
|
import { PickersCalendarHeaderClasses } from './pickersCalendarHeaderClasses';
|
|
11
11
|
export interface PickersCalendarHeaderSlots extends PickersArrowSwitcherSlots {
|
|
@@ -22,12 +22,12 @@ export interface PickersCalendarHeaderSlots extends PickersArrowSwitcherSlots {
|
|
|
22
22
|
}
|
|
23
23
|
export interface PickersCalendarHeaderSlotPropsOverrides {
|
|
24
24
|
}
|
|
25
|
-
export type PickersCalendarHeaderOwnerState<TDate> = PickersCalendarHeaderProps<TDate>;
|
|
26
|
-
export interface PickersCalendarHeaderSlotProps<TDate> extends PickersArrowSwitcherSlotProps {
|
|
25
|
+
export type PickersCalendarHeaderOwnerState<TDate extends PickerValidDate> = PickersCalendarHeaderProps<TDate>;
|
|
26
|
+
export interface PickersCalendarHeaderSlotProps<TDate extends PickerValidDate> extends PickersArrowSwitcherSlotProps {
|
|
27
27
|
switchViewButton?: SlotComponentProps<typeof IconButton, PickersCalendarHeaderSlotPropsOverrides, PickersCalendarHeaderOwnerState<TDate>>;
|
|
28
28
|
switchViewIcon?: SlotComponentProps<typeof SvgIcon, PickersCalendarHeaderSlotPropsOverrides, undefined>;
|
|
29
29
|
}
|
|
30
|
-
export interface PickersCalendarHeaderProps<TDate> extends ExportedPickersArrowSwitcherProps, MonthValidationOptions<TDate> {
|
|
30
|
+
export interface PickersCalendarHeaderProps<TDate extends PickerValidDate> extends ExportedPickersArrowSwitcherProps, MonthValidationOptions<TDate> {
|
|
31
31
|
/**
|
|
32
32
|
* Overridable component slots.
|
|
33
33
|
* @default {}
|
|
@@ -56,4 +56,4 @@ export interface PickersCalendarHeaderProps<TDate> extends ExportedPickersArrowS
|
|
|
56
56
|
*/
|
|
57
57
|
sx?: SxProps<Theme>;
|
|
58
58
|
}
|
|
59
|
-
export type ExportedPickersCalendarHeaderProps<TDate> = Pick<PickersCalendarHeaderProps<TDate>, 'classes' | 'slots' | 'slotProps'>;
|
|
59
|
+
export type ExportedPickersCalendarHeaderProps<TDate extends PickerValidDate> = Pick<PickersCalendarHeaderProps<TDate>, 'classes' | 'slots' | 'slotProps'>;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
3
3
|
import { ExtendMui } from '../internals/models/helpers';
|
|
4
4
|
import { PickersDayClasses } from './pickersDayClasses';
|
|
5
|
+
import { PickerValidDate } from '../models';
|
|
5
6
|
export interface ExportedPickersDayProps {
|
|
6
7
|
/**
|
|
7
8
|
* If `true`, today's date is rendering without highlighting with circle.
|
|
@@ -20,7 +21,7 @@ export interface ExportedPickersDayProps {
|
|
|
20
21
|
*/
|
|
21
22
|
showDaysOutsideCurrentMonth?: boolean;
|
|
22
23
|
}
|
|
23
|
-
export interface PickersDayProps<TDate> extends ExportedPickersDayProps, Omit<ExtendMui<ButtonBaseProps>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onMouseEnter' | 'LinkComponent'> {
|
|
24
|
+
export interface PickersDayProps<TDate extends PickerValidDate> extends ExportedPickersDayProps, Omit<ExtendMui<ButtonBaseProps>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onMouseEnter' | 'LinkComponent'> {
|
|
24
25
|
/**
|
|
25
26
|
* Override or extend the styles applied to the component.
|
|
26
27
|
*/
|
|
@@ -70,7 +71,7 @@ export interface PickersDayProps<TDate> extends ExportedPickersDayProps, Omit<Ex
|
|
|
70
71
|
*/
|
|
71
72
|
today?: boolean;
|
|
72
73
|
}
|
|
73
|
-
type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element) & {
|
|
74
|
+
type PickersDayComponent = (<TDate extends PickerValidDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element) & {
|
|
74
75
|
propTypes?: any;
|
|
75
76
|
};
|
|
76
77
|
/**
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickersLayoutProps } from './PickersLayout.types';
|
|
3
3
|
import { DateOrTimeViewWithMeridiem } from '../internals/models';
|
|
4
|
+
import { PickerValidDate } from '../models';
|
|
4
5
|
declare const PickersLayoutRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
6
|
ownerState: {
|
|
6
7
|
isLandscape: boolean;
|
|
@@ -18,7 +19,7 @@ export declare const PickersLayoutContentWrapper: import("@emotion/styled").Styl
|
|
|
18
19
|
* - [PickersLayout API](https://mui.com/x/api/date-pickers/pickers-layout/)
|
|
19
20
|
*/
|
|
20
21
|
declare const PickersLayout: {
|
|
21
|
-
<TValue, TDate, TView extends DateOrTimeViewWithMeridiem>(inProps: PickersLayoutProps<TValue, TDate, TView>): React.JSX.Element;
|
|
22
|
+
<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem>(inProps: PickersLayoutProps<TValue, TDate, TView>): React.JSX.Element;
|
|
22
23
|
propTypes: any;
|
|
23
24
|
};
|
|
24
25
|
export { PickersLayout };
|
|
@@ -122,6 +122,9 @@ process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
|
|
|
122
122
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
123
123
|
// ----------------------------------------------------------------------
|
|
124
124
|
children: PropTypes.node,
|
|
125
|
+
/**
|
|
126
|
+
* Override or extend the styles applied to the component.
|
|
127
|
+
*/
|
|
125
128
|
classes: PropTypes.object,
|
|
126
129
|
className: PropTypes.string,
|
|
127
130
|
disabled: PropTypes.bool,
|
|
@@ -152,6 +155,9 @@ process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
|
|
|
152
155
|
* @default {}
|
|
153
156
|
*/
|
|
154
157
|
slots: PropTypes.object,
|
|
158
|
+
/**
|
|
159
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
160
|
+
*/
|
|
155
161
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
156
162
|
value: PropTypes.any,
|
|
157
163
|
view: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),
|
|
@@ -9,7 +9,8 @@ import { PickersLayoutClasses } from './pickersLayoutClasses';
|
|
|
9
9
|
import { DateOrTimeViewWithMeridiem, WrapperVariant } from '../internals/models/common';
|
|
10
10
|
import { PickersShortcutsProps } from '../PickersShortcuts';
|
|
11
11
|
import { ExportedPickersShortcutProps } from '../PickersShortcuts/PickersShortcuts';
|
|
12
|
-
|
|
12
|
+
import { PickerValidDate } from '../models';
|
|
13
|
+
export interface ExportedPickersLayoutSlots<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem> {
|
|
13
14
|
/**
|
|
14
15
|
* Custom component for the action bar, it is placed below the picker views.
|
|
15
16
|
* @default PickersActionBar
|
|
@@ -26,13 +27,13 @@ export interface ExportedPickersLayoutSlots<TValue, TDate, TView extends DateOrT
|
|
|
26
27
|
*/
|
|
27
28
|
layout?: React.JSXElementConstructor<PickersLayoutProps<TValue, TDate, TView> & React.RefAttributes<HTMLDivElement>>;
|
|
28
29
|
}
|
|
29
|
-
interface PickersLayoutActionBarOwnerState<TValue, TDate, TView extends DateOrTimeViewWithMeridiem> extends PickersLayoutProps<TValue, TDate, TView> {
|
|
30
|
+
interface PickersLayoutActionBarOwnerState<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem> extends PickersLayoutProps<TValue, TDate, TView> {
|
|
30
31
|
wrapperVariant: WrapperVariant;
|
|
31
32
|
}
|
|
32
33
|
interface PickersShortcutsOwnerState<TValue> extends PickersShortcutsProps<TValue> {
|
|
33
34
|
wrapperVariant: WrapperVariant;
|
|
34
35
|
}
|
|
35
|
-
export interface ExportedPickersLayoutSlotProps<TValue, TDate, TView extends DateOrTimeViewWithMeridiem> {
|
|
36
|
+
export interface ExportedPickersLayoutSlotProps<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem> {
|
|
36
37
|
/**
|
|
37
38
|
* Props passed down to the action bar component.
|
|
38
39
|
*/
|
|
@@ -46,7 +47,7 @@ export interface ExportedPickersLayoutSlotProps<TValue, TDate, TView extends Dat
|
|
|
46
47
|
*/
|
|
47
48
|
layout?: Partial<PickersLayoutProps<TValue, TDate, TView>>;
|
|
48
49
|
}
|
|
49
|
-
export interface PickersLayoutSlots<TValue, TDate, TView extends DateOrTimeViewWithMeridiem> extends ExportedPickersLayoutSlots<TValue, TDate, TView> {
|
|
50
|
+
export interface PickersLayoutSlots<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem> extends ExportedPickersLayoutSlots<TValue, TDate, TView> {
|
|
50
51
|
/**
|
|
51
52
|
* Tabs enabling toggling between views.
|
|
52
53
|
*/
|
|
@@ -57,7 +58,7 @@ export interface PickersLayoutSlots<TValue, TDate, TView extends DateOrTimeViewW
|
|
|
57
58
|
*/
|
|
58
59
|
toolbar?: React.JSXElementConstructor<BaseToolbarProps<TValue, TView>>;
|
|
59
60
|
}
|
|
60
|
-
export interface PickersLayoutSlotProps<TValue, TDate, TView extends DateOrTimeViewWithMeridiem> extends ExportedPickersLayoutSlotProps<TValue, TDate, TView> {
|
|
61
|
+
export interface PickersLayoutSlotProps<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem> extends ExportedPickersLayoutSlotProps<TValue, TDate, TView> {
|
|
61
62
|
/**
|
|
62
63
|
* Props passed down to the tabs component.
|
|
63
64
|
*/
|
|
@@ -67,15 +68,21 @@ export interface PickersLayoutSlotProps<TValue, TDate, TView extends DateOrTimeV
|
|
|
67
68
|
*/
|
|
68
69
|
toolbar?: ExportedBaseToolbarProps;
|
|
69
70
|
}
|
|
70
|
-
export interface PickersLayoutProps<TValue, TDate, TView extends DateOrTimeViewWithMeridiem> extends Omit<UsePickerLayoutPropsResponseLayoutProps<TValue, TView>, 'value'> {
|
|
71
|
+
export interface PickersLayoutProps<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem> extends Omit<UsePickerLayoutPropsResponseLayoutProps<TValue, TView>, 'value'> {
|
|
71
72
|
value?: TValue;
|
|
72
73
|
className?: string;
|
|
73
74
|
children?: React.ReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
77
|
+
*/
|
|
74
78
|
sx?: SxProps<Theme>;
|
|
75
79
|
/**
|
|
76
80
|
* Ref to pass to the root element
|
|
77
81
|
*/
|
|
78
82
|
ref?: React.Ref<HTMLDivElement>;
|
|
83
|
+
/**
|
|
84
|
+
* Override or extend the styles applied to the component.
|
|
85
|
+
*/
|
|
79
86
|
classes?: Partial<PickersLayoutClasses>;
|
|
80
87
|
/**
|
|
81
88
|
* Overridable component slots.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PickersLayoutProps, SubComponents } from './PickersLayout.types';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '../internals/models';
|
|
3
|
+
import { PickerValidDate } from '../models';
|
|
3
4
|
interface UsePickerLayoutResponse<TValue> extends SubComponents<TValue> {
|
|
4
5
|
}
|
|
5
|
-
declare const usePickerLayout: <TValue, TDate, TView extends DateOrTimeViewWithMeridiem>(props: PickersLayoutProps<TValue, TDate, TView>) => UsePickerLayoutResponse<TValue>;
|
|
6
|
+
declare const usePickerLayout: <TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem>(props: PickersLayoutProps<TValue, TDate, TView>) => UsePickerLayoutResponse<TValue>;
|
|
6
7
|
export default usePickerLayout;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickersSectionListProps } from './PickersSectionList.types';
|
|
3
|
-
export declare const PickersSectionListRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/
|
|
4
|
-
export declare const PickersSectionListSection: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/
|
|
5
|
-
export declare const PickersSectionListSectionSeparator: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/
|
|
6
|
-
export declare const PickersSectionListSectionContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/
|
|
3
|
+
export declare const PickersSectionListRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const PickersSectionListSection: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
5
|
+
export declare const PickersSectionListSectionSeparator: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
6
|
+
export declare const PickersSectionListSectionContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
7
7
|
type PickersSectionListComponent = ((props: PickersSectionListProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
8
8
|
propTypes?: any;
|
|
9
9
|
};
|
|
@@ -2,12 +2,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["slots", "slotProps", "elements", "sectionListRef"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import styled from '@mui/system/styled';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import { useSlotProps } from '@mui/base/utils';
|
|
8
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
8
|
import useForkRef from '@mui/utils/useForkRef';
|
|
10
|
-
import { useThemeProps } from '@mui/material/styles';
|
|
9
|
+
import { styled, useThemeProps } from '@mui/material/styles';
|
|
11
10
|
import { getPickersSectionListUtilityClass, pickersSectionListClasses } from './pickersSectionListClasses';
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -5,6 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useFormControl } from '@mui/material/FormControl';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
+
import { refType } from '@mui/utils';
|
|
8
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
10
|
import { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from './pickersFilledInputClasses';
|
|
10
11
|
import { PickersInputBase } from '../PickersInputBase';
|
|
@@ -200,11 +201,10 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
|
200
201
|
hiddenLabel: PropTypes.bool,
|
|
201
202
|
id: PropTypes.string,
|
|
202
203
|
inputProps: PropTypes.object,
|
|
203
|
-
inputRef:
|
|
204
|
-
current: PropTypes.object
|
|
205
|
-
})]),
|
|
204
|
+
inputRef: refType,
|
|
206
205
|
label: PropTypes.node,
|
|
207
206
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
207
|
+
name: PropTypes.string,
|
|
208
208
|
onChange: PropTypes.func.isRequired,
|
|
209
209
|
onClick: PropTypes.func.isRequired,
|
|
210
210
|
onInput: PropTypes.func.isRequired,
|
|
@@ -5,6 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useFormControl } from '@mui/material/FormControl';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
+
import { refType } from '@mui/utils';
|
|
8
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
10
|
import { pickersInputClasses, getPickersInputUtilityClass } from './pickersInputClasses';
|
|
10
11
|
import { PickersInputBase } from '../PickersInputBase';
|
|
@@ -157,11 +158,10 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
|
157
158
|
fullWidth: PropTypes.bool,
|
|
158
159
|
id: PropTypes.string,
|
|
159
160
|
inputProps: PropTypes.object,
|
|
160
|
-
inputRef:
|
|
161
|
-
current: PropTypes.object
|
|
162
|
-
})]),
|
|
161
|
+
inputRef: refType,
|
|
163
162
|
label: PropTypes.node,
|
|
164
163
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
164
|
+
name: PropTypes.string,
|
|
165
165
|
onChange: PropTypes.func.isRequired,
|
|
166
166
|
onClick: PropTypes.func.isRequired,
|
|
167
167
|
onInput: PropTypes.func.isRequired,
|
|
@@ -4,7 +4,7 @@ import { PickersInputBaseProps } from './PickersInputBase.types';
|
|
|
4
4
|
export declare const PickersInputBaseRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
5
|
ownerState: OwnerStateType;
|
|
6
6
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
|
-
export declare const PickersInputBaseSectionsContainer: import("@emotion/styled").StyledComponent<Pick<import("@mui/system").MUIStyledCommonProps<import("@mui/
|
|
7
|
+
export declare const PickersInputBaseSectionsContainer: import("@emotion/styled").StyledComponent<Pick<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement> | keyof import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
8
8
|
ownerState: OwnerStateType;
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
interface OwnerStateType extends FormControlState, Omit<PickersInputBaseProps, keyof FormControlState> {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "value", "onChange", "id", "autoFocus", "endAdornment", "startAdornment", "renderSuffix", "slots", "contentEditable", "tabIndex", "onInput", "onPaste", "onKeyDown", "fullWidth", "inputProps", "inputRef", "sectionListRef"];
|
|
3
|
+
const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "value", "onChange", "id", "autoFocus", "endAdornment", "startAdornment", "renderSuffix", "slots", "contentEditable", "tabIndex", "onInput", "onPaste", "onKeyDown", "fullWidth", "name", "readOnly", "inputProps", "inputRef", "sectionListRef"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useFormControl } from '@mui/material/FormControl';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import useForkRef from '@mui/utils/useForkRef';
|
|
9
|
+
import { refType } from '@mui/utils';
|
|
9
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
11
|
import capitalize from '@mui/utils/capitalize';
|
|
11
12
|
import visuallyHidden from '@mui/utils/visuallyHidden';
|
|
@@ -157,6 +158,8 @@ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase
|
|
|
157
158
|
onInput,
|
|
158
159
|
onPaste,
|
|
159
160
|
onKeyDown,
|
|
161
|
+
name,
|
|
162
|
+
readOnly,
|
|
160
163
|
inputProps,
|
|
161
164
|
inputRef,
|
|
162
165
|
sectionListRef
|
|
@@ -234,12 +237,16 @@ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase
|
|
|
234
237
|
})
|
|
235
238
|
}
|
|
236
239
|
}), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputBaseInput, _extends({
|
|
240
|
+
name: name,
|
|
237
241
|
className: classes.input,
|
|
238
242
|
value: value,
|
|
239
243
|
onChange: onChange,
|
|
240
244
|
id: id,
|
|
241
245
|
"aria-hidden": "true",
|
|
242
|
-
tabIndex: -1
|
|
246
|
+
tabIndex: -1,
|
|
247
|
+
readOnly: readOnly,
|
|
248
|
+
required: muiFormControl.required,
|
|
249
|
+
disabled: muiFormControl.disabled
|
|
243
250
|
}, inputProps, {
|
|
244
251
|
ref: handleInputRef
|
|
245
252
|
}))]
|
|
@@ -281,11 +288,10 @@ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
|
281
288
|
fullWidth: PropTypes.bool,
|
|
282
289
|
id: PropTypes.string,
|
|
283
290
|
inputProps: PropTypes.object,
|
|
284
|
-
inputRef:
|
|
285
|
-
current: PropTypes.object
|
|
286
|
-
})]),
|
|
291
|
+
inputRef: refType,
|
|
287
292
|
label: PropTypes.node,
|
|
288
293
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
294
|
+
name: PropTypes.string,
|
|
289
295
|
onChange: PropTypes.func.isRequired,
|
|
290
296
|
onClick: PropTypes.func.isRequired,
|
|
291
297
|
onInput: PropTypes.func.isRequired,
|
|
@@ -20,6 +20,7 @@ export interface PickersInputPropsUsedByField extends Pick<PickersSectionListPro
|
|
|
20
20
|
id?: string;
|
|
21
21
|
fullWidth?: boolean;
|
|
22
22
|
readOnly?: boolean;
|
|
23
|
+
name?: string;
|
|
23
24
|
inputProps?: React.HTMLAttributes<HTMLInputElement> & {
|
|
24
25
|
ref?: React.Ref<HTMLInputElement>;
|
|
25
26
|
};
|
|
@@ -5,6 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useFormControl } from '@mui/material/FormControl';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
+
import { refType } from '@mui/utils';
|
|
8
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
10
|
import { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from './pickersOutlinedInputClasses';
|
|
10
11
|
import Outline from './Outline';
|
|
@@ -150,11 +151,10 @@ process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
|
150
151
|
fullWidth: PropTypes.bool,
|
|
151
152
|
id: PropTypes.string,
|
|
152
153
|
inputProps: PropTypes.object,
|
|
153
|
-
inputRef:
|
|
154
|
-
current: PropTypes.object
|
|
155
|
-
})]),
|
|
154
|
+
inputRef: refType,
|
|
156
155
|
label: PropTypes.node,
|
|
157
156
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
157
|
+
name: PropTypes.string,
|
|
158
158
|
notched: PropTypes.bool,
|
|
159
159
|
onChange: PropTypes.func.isRequired,
|
|
160
160
|
onClick: PropTypes.func.isRequired,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const PickersTextField: React.ForwardRefExoticComponent<(Omit<import("./PickersTextField.types").
|
|
2
|
+
declare const PickersTextField: React.ForwardRefExoticComponent<(Omit<import("./PickersTextField.types").PickersStandardTextFieldProps, "ref"> | Omit<import("./PickersTextField.types").PickersOutlinedTextFieldProps, "ref"> | Omit<import("./PickersTextField.types").PickersFilledTextFieldProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
3
3
|
export { PickersTextField };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["onFocus", "onBlur", "className", "color", "disabled", "error", "variant", "required", "InputProps", "inputProps", "inputRef", "sectionListRef", "elements", "areAllSectionsEmpty", "onClick", "onKeyDown", "onKeyUp", "onPaste", "onInput", "endAdornment", "startAdornment", "tabIndex", "contentEditable", "focused", "value", "onChange", "fullWidth", "id", "helperText", "FormHelperTextProps", "label", "InputLabelProps"];
|
|
3
|
+
const _excluded = ["onFocus", "onBlur", "className", "color", "disabled", "error", "variant", "required", "InputProps", "inputProps", "inputRef", "sectionListRef", "elements", "areAllSectionsEmpty", "onClick", "onKeyDown", "onKeyUp", "onPaste", "onInput", "endAdornment", "startAdornment", "tabIndex", "contentEditable", "focused", "value", "onChange", "fullWidth", "id", "name", "helperText", "FormHelperTextProps", "label", "InputLabelProps"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
+
import { refType } from '@mui/utils';
|
|
8
9
|
import useForkRef from '@mui/utils/useForkRef';
|
|
9
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
11
|
import useId from '@mui/utils/useId';
|
|
@@ -74,6 +75,7 @@ const PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField
|
|
|
74
75
|
onChange,
|
|
75
76
|
fullWidth,
|
|
76
77
|
id: idProp,
|
|
78
|
+
name,
|
|
77
79
|
// Props used by FormHelperText
|
|
78
80
|
helperText,
|
|
79
81
|
FormHelperTextProps,
|
|
@@ -134,7 +136,10 @@ const PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField
|
|
|
134
136
|
inputProps: inputProps,
|
|
135
137
|
inputRef: inputRef,
|
|
136
138
|
sectionListRef: sectionListRef,
|
|
137
|
-
label: label
|
|
139
|
+
label: label,
|
|
140
|
+
name: name,
|
|
141
|
+
role: "group",
|
|
142
|
+
"aria-labelledby": inputLabelId
|
|
138
143
|
}, InputProps)), helperText && /*#__PURE__*/_jsx(FormHelperText, _extends({
|
|
139
144
|
id: helperTextId
|
|
140
145
|
}, FormHelperTextProps, {
|
|
@@ -207,15 +212,14 @@ process.env.NODE_ENV !== "production" ? PickersTextField.propTypes = {
|
|
|
207
212
|
* component depending on the `variant` prop value.
|
|
208
213
|
*/
|
|
209
214
|
InputProps: PropTypes.object,
|
|
210
|
-
inputRef:
|
|
211
|
-
current: PropTypes.object
|
|
212
|
-
})]),
|
|
215
|
+
inputRef: refType,
|
|
213
216
|
label: PropTypes.node,
|
|
214
217
|
/**
|
|
215
218
|
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
216
219
|
* @default 'none'
|
|
217
220
|
*/
|
|
218
221
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
222
|
+
name: PropTypes.string,
|
|
219
223
|
onBlur: PropTypes.func.isRequired,
|
|
220
224
|
onChange: PropTypes.func.isRequired,
|
|
221
225
|
onClick: PropTypes.func.isRequired,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StaticDatePickerProps } from './StaticDatePicker.types';
|
|
3
|
-
|
|
3
|
+
import { PickerValidDate } from '../models';
|
|
4
|
+
type StaticDatePickerComponent = (<TDate extends PickerValidDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
5
|
propTypes?: any;
|
|
5
6
|
};
|
|
6
7
|
/**
|