@mui/x-date-pickers 7.15.0 → 7.16.0
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/AdapterDateFns/AdapterDateFns.js +1 -1
- package/AdapterDateFns/index.js +1 -1
- package/AdapterDateFnsBase/index.js +1 -1
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/AdapterDateFnsJalali/index.js +1 -1
- package/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +1 -1
- package/AdapterDateFnsJalaliV3/index.js +1 -1
- package/AdapterDateFnsV3/AdapterDateFnsV3.js +1 -1
- package/AdapterDateFnsV3/index.js +1 -1
- package/AdapterDayjs/AdapterDayjs.js +5 -6
- package/AdapterDayjs/index.js +1 -1
- package/AdapterLuxon/AdapterLuxon.js +4 -5
- package/AdapterLuxon/index.js +1 -1
- package/AdapterMoment/AdapterMoment.js +4 -5
- package/AdapterMoment/index.js +1 -1
- package/AdapterMomentHijri/AdapterMomentHijri.js +1 -1
- package/AdapterMomentHijri/index.js +1 -1
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -1
- package/AdapterMomentJalaali/index.js +1 -1
- package/CHANGELOG.md +98 -1
- package/DateCalendar/DateCalendar.js +16 -16
- package/DateCalendar/DayCalendar.js +9 -10
- package/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/DateCalendar/PickersSlideTransition.js +1 -1
- package/DateCalendar/index.js +5 -5
- package/DateCalendar/useCalendarState.js +4 -4
- package/DateCalendar/useIsDateDisabled.js +2 -2
- package/DateField/DateField.js +13 -11
- package/DateField/index.js +2 -2
- package/DateField/useDateField.js +5 -5
- package/DatePicker/DatePicker.js +14 -14
- package/DatePicker/DatePickerToolbar.js +5 -5
- package/DatePicker/index.js +3 -3
- package/DatePicker/shared.js +4 -4
- package/DateTimeField/DateTimeField.js +13 -11
- package/DateTimeField/index.js +2 -2
- package/DateTimeField/useDateTimeField.js +5 -5
- package/DateTimePicker/DateTimePicker.js +14 -14
- package/DateTimePicker/DateTimePickerTabs.js +4 -4
- package/DateTimePicker/DateTimePickerToolbar.js +11 -11
- package/DateTimePicker/index.js +5 -5
- package/DateTimePicker/shared.js +5 -5
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -2
- package/DayCalendarSkeleton/index.js +2 -2
- package/DesktopDatePicker/DesktopDatePicker.js +22 -22
- package/DesktopDatePicker/index.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +29 -29
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/DesktopDateTimePicker/index.js +2 -2
- package/DesktopTimePicker/DesktopTimePicker.js +23 -23
- package/DesktopTimePicker/index.js +1 -1
- package/DigitalClock/DigitalClock.js +11 -11
- package/DigitalClock/index.js +2 -2
- package/LocalizationProvider/index.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +21 -21
- package/MobileDatePicker/index.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +22 -22
- package/MobileDateTimePicker/index.js +1 -1
- package/MobileTimePicker/MobileTimePicker.js +21 -21
- package/MobileTimePicker/index.js +1 -1
- package/MonthCalendar/MonthCalendar.js +8 -8
- package/MonthCalendar/PickersMonth.js +1 -1
- package/MonthCalendar/index.js +3 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +17 -17
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -2
- package/MultiSectionDigitalClock/index.js +3 -3
- package/PickersActionBar/PickersActionBar.js +1 -1
- package/PickersActionBar/index.js +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +7 -7
- package/PickersCalendarHeader/index.js +2 -2
- package/PickersDay/PickersDay.js +3 -3
- package/PickersDay/index.js +2 -2
- package/PickersLayout/PickersLayout.js +2 -2
- package/PickersLayout/index.js +3 -3
- package/PickersLayout/usePickerLayout.js +3 -3
- package/PickersSectionList/PickersSectionList.js +1 -1
- package/PickersSectionList/index.js +2 -2
- package/PickersShortcuts/PickersShortcuts.js +1 -1
- package/PickersShortcuts/index.js +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/PickersTextField/PickersFilledInput/index.js +2 -2
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/PickersTextField/PickersInput/index.js +2 -2
- package/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/PickersTextField/PickersInputBase/PickersInputBase.js +2 -2
- package/PickersTextField/PickersInputBase/index.js +2 -2
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +4 -4
- package/PickersTextField/PickersOutlinedInput/index.js +2 -2
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/PickersTextField/PickersTextField.js +4 -4
- package/PickersTextField/index.js +6 -6
- package/StaticDatePicker/StaticDatePicker.js +16 -16
- package/StaticDatePicker/index.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +17 -17
- package/StaticDateTimePicker/index.js +1 -1
- package/StaticTimePicker/StaticTimePicker.js +16 -16
- package/StaticTimePicker/index.js +1 -1
- package/TimeClock/Clock.js +6 -6
- package/TimeClock/ClockNumber.js +2 -2
- package/TimeClock/ClockNumbers.js +2 -2
- package/TimeClock/ClockPointer.js +2 -2
- package/TimeClock/TimeClock.js +14 -14
- package/TimeClock/index.js +5 -5
- package/TimeField/TimeField.js +13 -11
- package/TimeField/index.js +2 -2
- package/TimeField/useTimeField.js +5 -5
- package/TimePicker/TimePicker.js +14 -14
- package/TimePicker/TimePickerToolbar.js +9 -9
- package/TimePicker/index.js +3 -3
- package/TimePicker/shared.js +3 -3
- package/YearCalendar/PickersYear.js +1 -1
- package/YearCalendar/YearCalendar.js +8 -8
- package/YearCalendar/index.js +3 -3
- package/dateViewRenderers/dateViewRenderers.js +2 -2
- package/dateViewRenderers/index.js +1 -1
- package/hooks/index.js +2 -2
- package/hooks/useClearableField.js +2 -2
- package/hooks/usePickersTranslations.js +1 -1
- package/icons/index.js +8 -8
- package/index.js +38 -38
- package/internals/components/PickerViewRoot/PickerViewRoot.js +1 -1
- package/internals/components/PickerViewRoot/index.js +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -2
- package/internals/components/PickersArrowSwitcher/index.js +2 -2
- package/internals/components/PickersModalDialog.js +1 -1
- package/internals/components/PickersPopper.js +3 -3
- package/internals/components/PickersToolbar.js +1 -1
- package/internals/components/PickersToolbarButton.js +2 -2
- package/internals/components/PickersToolbarText.js +1 -1
- package/internals/demo/DemoContainer.js +3 -3
- package/internals/demo/index.js +1 -1
- package/internals/hooks/date-helpers-hooks.js +2 -2
- package/internals/hooks/defaultizedFieldProps.js +2 -2
- package/internals/hooks/useClockReferenceDate.js +3 -3
- package/internals/hooks/useDesktopPicker/index.js +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +16 -6
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +4 -1
- package/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/internals/hooks/useField/index.js +2 -2
- package/internals/hooks/useField/useField.js +7 -7
- package/internals/hooks/useField/useField.types.d.ts +9 -7
- package/internals/hooks/useField/useField.utils.js +1 -1
- package/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/internals/hooks/useField/useFieldState.js +6 -6
- package/internals/hooks/useField/useFieldV6TextField.js +2 -2
- package/internals/hooks/useField/useFieldV7TextField.js +4 -4
- package/internals/hooks/useIsLandscape.js +1 -1
- package/internals/hooks/useMobilePicker/index.js +1 -1
- package/internals/hooks/useMobilePicker/useMobilePicker.js +6 -6
- package/internals/hooks/usePicker/index.js +1 -1
- package/internals/hooks/usePicker/usePicker.js +4 -4
- package/internals/hooks/usePicker/usePickerLayoutProps.js +1 -1
- package/internals/hooks/usePicker/usePickerValue.js +4 -4
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +11 -11
- package/internals/hooks/usePicker/usePickerViews.js +2 -2
- package/internals/hooks/useStaticPicker/index.js +1 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.js +4 -4
- package/internals/hooks/useUtils.js +2 -2
- package/internals/hooks/useValidation.d.ts +8 -8
- package/internals/hooks/useValidation.js +1 -1
- package/internals/hooks/useValueWithTimezone.js +1 -1
- package/internals/hooks/useViews.d.ts +1 -1
- package/internals/index.js +36 -36
- package/internals/models/index.js +2 -2
- package/internals/utils/date-time-utils.js +2 -2
- package/internals/utils/date-utils.js +1 -1
- package/internals/utils/fields.js +1 -1
- package/internals/utils/getDefaultReferenceDate.js +2 -2
- package/internals/utils/time-utils.js +1 -1
- package/internals/utils/validation/validateDate.js +1 -1
- package/internals/utils/validation/validateDateTime.js +2 -2
- package/internals/utils/validation/validateTime.js +1 -1
- package/internals/utils/valueManagers.js +3 -3
- package/locales/beBY.js +1 -1
- package/locales/caES.js +1 -1
- package/locales/csCZ.js +1 -1
- package/locales/daDK.js +1 -1
- package/locales/deDE.js +1 -1
- package/locales/elGR.js +1 -1
- package/locales/enUS.js +1 -1
- package/locales/esES.js +1 -1
- package/locales/eu.js +1 -1
- package/locales/faIR.js +1 -1
- package/locales/fiFI.js +1 -1
- package/locales/frFR.js +1 -1
- package/locales/heIL.js +1 -1
- package/locales/huHU.js +1 -1
- package/locales/index.js +36 -36
- package/locales/isIS.js +1 -1
- package/locales/itIT.js +1 -1
- package/locales/jaJP.js +1 -1
- package/locales/koKR.js +1 -1
- package/locales/kzKZ.js +1 -1
- package/locales/mk.js +1 -1
- package/locales/nbNO.js +1 -1
- package/locales/nlNL.js +1 -1
- package/locales/nnNO.js +1 -1
- package/locales/plPL.js +1 -1
- package/locales/ptBR.js +1 -1
- package/locales/roRO.js +1 -1
- package/locales/ruRU.js +1 -1
- package/locales/skSK.js +1 -1
- package/locales/svSE.js +1 -1
- package/locales/trTR.js +1 -1
- package/locales/ukUA.js +1 -1
- package/locales/urPK.js +1 -1
- package/locales/viVN.js +1 -1
- package/locales/zhCN.js +1 -1
- package/locales/zhHK.js +1 -1
- package/models/index.d.ts +1 -0
- package/models/index.js +10 -7
- package/modern/AdapterDateFns/AdapterDateFns.js +1 -1
- package/modern/AdapterDateFns/index.js +1 -1
- package/modern/AdapterDateFnsBase/index.js +1 -1
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/modern/AdapterDateFnsJalali/index.js +1 -1
- package/modern/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +1 -1
- package/modern/AdapterDateFnsJalaliV3/index.js +1 -1
- package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +1 -1
- package/modern/AdapterDateFnsV3/index.js +1 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +5 -6
- package/modern/AdapterDayjs/index.js +1 -1
- package/modern/AdapterLuxon/AdapterLuxon.js +4 -5
- package/modern/AdapterLuxon/index.js +1 -1
- package/modern/AdapterMoment/AdapterMoment.js +4 -5
- package/modern/AdapterMoment/index.js +1 -1
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -1
- package/modern/AdapterMomentHijri/index.js +1 -1
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -1
- package/modern/AdapterMomentJalaali/index.js +1 -1
- package/modern/DateCalendar/DateCalendar.js +16 -16
- package/modern/DateCalendar/DayCalendar.js +9 -10
- package/modern/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/modern/DateCalendar/PickersSlideTransition.js +1 -1
- package/modern/DateCalendar/index.js +5 -5
- package/modern/DateCalendar/useCalendarState.js +4 -4
- package/modern/DateCalendar/useIsDateDisabled.js +2 -2
- package/modern/DateField/DateField.js +13 -11
- package/modern/DateField/index.js +2 -2
- package/modern/DateField/useDateField.js +5 -5
- package/modern/DatePicker/DatePicker.js +14 -14
- package/modern/DatePicker/DatePickerToolbar.js +5 -5
- package/modern/DatePicker/index.js +3 -3
- package/modern/DatePicker/shared.js +4 -4
- package/modern/DateTimeField/DateTimeField.js +13 -11
- package/modern/DateTimeField/index.js +2 -2
- package/modern/DateTimeField/useDateTimeField.js +5 -5
- package/modern/DateTimePicker/DateTimePicker.js +14 -14
- package/modern/DateTimePicker/DateTimePickerTabs.js +4 -4
- package/modern/DateTimePicker/DateTimePickerToolbar.js +11 -11
- package/modern/DateTimePicker/index.js +5 -5
- package/modern/DateTimePicker/shared.js +5 -5
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -2
- package/modern/DayCalendarSkeleton/index.js +2 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +22 -22
- package/modern/DesktopDatePicker/index.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +29 -29
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/modern/DesktopDateTimePicker/index.js +2 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +23 -23
- package/modern/DesktopTimePicker/index.js +1 -1
- package/modern/DigitalClock/DigitalClock.js +11 -11
- package/modern/DigitalClock/index.js +2 -2
- package/modern/LocalizationProvider/index.js +1 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +21 -21
- package/modern/MobileDatePicker/index.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +22 -22
- package/modern/MobileDateTimePicker/index.js +1 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +21 -21
- package/modern/MobileTimePicker/index.js +1 -1
- package/modern/MonthCalendar/MonthCalendar.js +8 -8
- package/modern/MonthCalendar/PickersMonth.js +1 -1
- package/modern/MonthCalendar/index.js +3 -3
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +17 -17
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -2
- package/modern/MultiSectionDigitalClock/index.js +3 -3
- package/modern/PickersActionBar/PickersActionBar.js +1 -1
- package/modern/PickersActionBar/index.js +1 -1
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +7 -7
- package/modern/PickersCalendarHeader/index.js +2 -2
- package/modern/PickersDay/PickersDay.js +3 -3
- package/modern/PickersDay/index.js +2 -2
- package/modern/PickersLayout/PickersLayout.js +2 -2
- package/modern/PickersLayout/index.js +3 -3
- package/modern/PickersLayout/usePickerLayout.js +3 -3
- package/modern/PickersSectionList/PickersSectionList.js +1 -1
- package/modern/PickersSectionList/index.js +2 -2
- package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
- package/modern/PickersShortcuts/index.js +1 -1
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/modern/PickersTextField/PickersFilledInput/index.js +2 -2
- package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/modern/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/modern/PickersTextField/PickersInput/index.js +2 -2
- package/modern/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +2 -2
- package/modern/PickersTextField/PickersInputBase/index.js +2 -2
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +4 -4
- package/modern/PickersTextField/PickersOutlinedInput/index.js +2 -2
- package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/modern/PickersTextField/PickersTextField.js +4 -4
- package/modern/PickersTextField/index.js +6 -6
- package/modern/StaticDatePicker/StaticDatePicker.js +16 -16
- package/modern/StaticDatePicker/index.js +1 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +17 -17
- package/modern/StaticDateTimePicker/index.js +1 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +16 -16
- package/modern/StaticTimePicker/index.js +1 -1
- package/modern/TimeClock/Clock.js +6 -6
- package/modern/TimeClock/ClockNumber.js +2 -2
- package/modern/TimeClock/ClockNumbers.js +2 -2
- package/modern/TimeClock/ClockPointer.js +2 -2
- package/modern/TimeClock/TimeClock.js +14 -14
- package/modern/TimeClock/index.js +5 -5
- package/modern/TimeField/TimeField.js +13 -11
- package/modern/TimeField/index.js +2 -2
- package/modern/TimeField/useTimeField.js +5 -5
- package/modern/TimePicker/TimePicker.js +14 -14
- package/modern/TimePicker/TimePickerToolbar.js +9 -9
- package/modern/TimePicker/index.js +3 -3
- package/modern/TimePicker/shared.js +3 -3
- package/modern/YearCalendar/PickersYear.js +1 -1
- package/modern/YearCalendar/YearCalendar.js +8 -8
- package/modern/YearCalendar/index.js +3 -3
- package/modern/dateViewRenderers/dateViewRenderers.js +2 -2
- package/modern/dateViewRenderers/index.js +1 -1
- package/modern/hooks/index.js +2 -2
- package/modern/hooks/useClearableField.js +2 -2
- package/modern/hooks/usePickersTranslations.js +1 -1
- package/modern/icons/index.js +8 -8
- package/modern/index.js +38 -38
- package/modern/internals/components/PickerViewRoot/PickerViewRoot.js +1 -1
- package/modern/internals/components/PickerViewRoot/index.js +1 -1
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -2
- package/modern/internals/components/PickersArrowSwitcher/index.js +2 -2
- package/modern/internals/components/PickersModalDialog.js +1 -1
- package/modern/internals/components/PickersPopper.js +3 -3
- package/modern/internals/components/PickersToolbar.js +1 -1
- package/modern/internals/components/PickersToolbarButton.js +2 -2
- package/modern/internals/components/PickersToolbarText.js +1 -1
- package/modern/internals/demo/DemoContainer.js +3 -3
- package/modern/internals/demo/index.js +1 -1
- package/modern/internals/hooks/date-helpers-hooks.js +2 -2
- package/modern/internals/hooks/defaultizedFieldProps.js +2 -2
- package/modern/internals/hooks/useClockReferenceDate.js +3 -3
- package/modern/internals/hooks/useDesktopPicker/index.js +1 -1
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +16 -6
- package/modern/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/modern/internals/hooks/useField/index.js +2 -2
- package/modern/internals/hooks/useField/useField.js +7 -7
- package/modern/internals/hooks/useField/useField.utils.js +1 -1
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/modern/internals/hooks/useField/useFieldState.js +6 -6
- package/modern/internals/hooks/useField/useFieldV6TextField.js +2 -2
- package/modern/internals/hooks/useField/useFieldV7TextField.js +4 -4
- package/modern/internals/hooks/useIsLandscape.js +1 -1
- package/modern/internals/hooks/useMobilePicker/index.js +1 -1
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +6 -6
- package/modern/internals/hooks/usePicker/index.js +1 -1
- package/modern/internals/hooks/usePicker/usePicker.js +4 -4
- package/modern/internals/hooks/usePicker/usePickerLayoutProps.js +1 -1
- package/modern/internals/hooks/usePicker/usePickerValue.js +4 -4
- package/modern/internals/hooks/usePicker/usePickerViews.js +2 -2
- package/modern/internals/hooks/useStaticPicker/index.js +1 -1
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +4 -4
- package/modern/internals/hooks/useUtils.js +2 -2
- package/modern/internals/hooks/useValidation.js +1 -1
- package/modern/internals/hooks/useValueWithTimezone.js +1 -1
- package/modern/internals/index.js +36 -36
- package/modern/internals/models/index.js +2 -2
- package/modern/internals/utils/date-time-utils.js +2 -2
- package/modern/internals/utils/date-utils.js +1 -1
- package/modern/internals/utils/fields.js +1 -1
- package/modern/internals/utils/getDefaultReferenceDate.js +2 -2
- package/modern/internals/utils/time-utils.js +1 -1
- package/modern/internals/utils/validation/validateDate.js +1 -1
- package/modern/internals/utils/validation/validateDateTime.js +2 -2
- package/modern/internals/utils/validation/validateTime.js +1 -1
- package/modern/internals/utils/valueManagers.js +3 -3
- package/modern/locales/beBY.js +1 -1
- package/modern/locales/caES.js +1 -1
- package/modern/locales/csCZ.js +1 -1
- package/modern/locales/daDK.js +1 -1
- package/modern/locales/deDE.js +1 -1
- package/modern/locales/elGR.js +1 -1
- package/modern/locales/enUS.js +1 -1
- package/modern/locales/esES.js +1 -1
- package/modern/locales/eu.js +1 -1
- package/modern/locales/faIR.js +1 -1
- package/modern/locales/fiFI.js +1 -1
- package/modern/locales/frFR.js +1 -1
- package/modern/locales/heIL.js +1 -1
- package/modern/locales/huHU.js +1 -1
- package/modern/locales/index.js +36 -36
- package/modern/locales/isIS.js +1 -1
- package/modern/locales/itIT.js +1 -1
- package/modern/locales/jaJP.js +1 -1
- package/modern/locales/koKR.js +1 -1
- package/modern/locales/kzKZ.js +1 -1
- package/modern/locales/mk.js +1 -1
- package/modern/locales/nbNO.js +1 -1
- package/modern/locales/nlNL.js +1 -1
- package/modern/locales/nnNO.js +1 -1
- package/modern/locales/plPL.js +1 -1
- package/modern/locales/ptBR.js +1 -1
- package/modern/locales/roRO.js +1 -1
- package/modern/locales/ruRU.js +1 -1
- package/modern/locales/skSK.js +1 -1
- package/modern/locales/svSE.js +1 -1
- package/modern/locales/trTR.js +1 -1
- package/modern/locales/ukUA.js +1 -1
- package/modern/locales/urPK.js +1 -1
- package/modern/locales/viVN.js +1 -1
- package/modern/locales/zhCN.js +1 -1
- package/modern/locales/zhHK.js +1 -1
- package/modern/models/index.js +10 -7
- package/modern/themeAugmentation/index.js +0 -3
- package/modern/timeViewRenderers/index.js +1 -1
- package/modern/timeViewRenderers/timeViewRenderers.js +4 -4
- package/node/AdapterDateFns/AdapterDateFns.js +1 -1
- package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +1 -1
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/node/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +1 -1
- package/node/AdapterDayjs/AdapterDayjs.js +5 -6
- package/node/AdapterLuxon/AdapterLuxon.js +5 -6
- package/node/AdapterMoment/AdapterMoment.js +5 -6
- package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -1
- package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -1
- package/node/DateCalendar/DateCalendar.js +3 -4
- package/node/DateCalendar/DayCalendar.js +3 -5
- package/node/DateCalendar/PickersFadeTransitionGroup.js +2 -3
- package/node/DateCalendar/PickersSlideTransition.js +2 -3
- package/node/DateCalendar/useCalendarState.js +2 -3
- package/node/DateCalendar/useIsDateDisabled.js +1 -2
- package/node/DateField/DateField.js +11 -10
- package/node/DatePicker/DatePicker.js +13 -14
- package/node/DatePicker/DatePickerToolbar.js +2 -3
- package/node/DatePicker/shared.js +2 -3
- package/node/DateTimeField/DateTimeField.js +11 -10
- package/node/DateTimePicker/DateTimePicker.js +13 -14
- package/node/DateTimePicker/DateTimePickerTabs.js +2 -3
- package/node/DateTimePicker/DateTimePickerToolbar.js +2 -3
- package/node/DateTimePicker/shared.js +2 -3
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -3
- package/node/DesktopDatePicker/DesktopDatePicker.js +13 -14
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -14
- package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +2 -3
- package/node/DesktopTimePicker/DesktopTimePicker.js +13 -14
- package/node/DigitalClock/DigitalClock.js +3 -4
- package/node/DigitalClock/digitalClockClasses.js +1 -1
- package/node/LocalizationProvider/LocalizationProvider.js +2 -3
- package/node/MobileDatePicker/MobileDatePicker.js +13 -14
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +13 -14
- package/node/MobileTimePicker/MobileTimePicker.js +13 -14
- package/node/MonthCalendar/MonthCalendar.js +2 -3
- package/node/MonthCalendar/PickersMonth.js +2 -3
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +6 -7
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -3
- package/node/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +1 -1
- package/node/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +1 -1
- package/node/PickersActionBar/PickersActionBar.js +2 -3
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +2 -3
- package/node/PickersDay/PickersDay.js +2 -3
- package/node/PickersLayout/PickersLayout.js +2 -3
- package/node/PickersLayout/index.js +1 -1
- package/node/PickersLayout/pickersLayoutClasses.js +1 -1
- package/node/PickersLayout/usePickerLayout.js +2 -3
- package/node/PickersSectionList/PickersSectionList.js +2 -3
- package/node/PickersSectionList/pickersSectionListClasses.js +1 -1
- package/node/PickersShortcuts/PickersShortcuts.js +2 -3
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +2 -3
- package/node/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/node/PickersTextField/PickersInput/PickersInput.js +2 -3
- package/node/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +2 -3
- package/node/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/Outline.js +2 -3
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +2 -3
- package/node/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/node/PickersTextField/PickersTextField.js +2 -3
- package/node/PickersTextField/pickersTextFieldClasses.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +13 -14
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +13 -14
- package/node/StaticTimePicker/StaticTimePicker.js +13 -14
- package/node/TimeClock/Clock.js +2 -3
- package/node/TimeClock/ClockNumber.js +2 -3
- package/node/TimeClock/ClockNumbers.js +2 -3
- package/node/TimeClock/ClockPointer.js +2 -3
- package/node/TimeClock/TimeClock.js +3 -4
- package/node/TimeField/TimeField.js +11 -10
- package/node/TimePicker/TimePicker.js +13 -14
- package/node/TimePicker/TimePickerToolbar.js +2 -3
- package/node/TimePicker/shared.js +2 -3
- package/node/YearCalendar/PickersYear.js +2 -3
- package/node/YearCalendar/YearCalendar.js +2 -3
- package/node/dateViewRenderers/dateViewRenderers.js +1 -2
- package/node/hooks/useClearableField.js +2 -3
- package/node/icons/index.js +9 -10
- package/node/index.js +1 -1
- package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -3
- package/node/internals/components/PickersModalDialog.js +2 -3
- package/node/internals/components/PickersPopper.js +2 -3
- package/node/internals/components/PickersToolbar.js +2 -3
- package/node/internals/components/PickersToolbarButton.js +2 -3
- package/node/internals/components/PickersToolbarText.js +2 -3
- package/node/internals/demo/DemoContainer.js +4 -5
- package/node/internals/hooks/date-helpers-hooks.js +1 -2
- package/node/internals/hooks/defaultizedFieldProps.js +1 -1
- package/node/internals/hooks/useClockReferenceDate.js +1 -2
- package/node/internals/hooks/useDefaultReduceAnimations.js +1 -1
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +13 -4
- package/node/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/node/internals/hooks/useField/useField.js +2 -3
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +2 -3
- package/node/internals/hooks/useField/useFieldState.js +2 -3
- package/node/internals/hooks/useField/useFieldV6TextField.js +2 -3
- package/node/internals/hooks/useField/useFieldV7TextField.js +2 -3
- package/node/internals/hooks/useIsLandscape.js +1 -2
- package/node/internals/hooks/useMobilePicker/useMobilePicker.js +2 -3
- package/node/internals/hooks/useOpenState.js +1 -2
- package/node/internals/hooks/usePicker/usePickerLayoutProps.js +1 -1
- package/node/internals/hooks/usePicker/usePickerValue.js +2 -3
- package/node/internals/hooks/usePicker/usePickerViews.js +2 -3
- package/node/internals/hooks/useStaticPicker/useStaticPicker.js +2 -3
- package/node/internals/hooks/useUtils.js +2 -3
- package/node/internals/hooks/useValidation.js +1 -2
- package/node/internals/hooks/useValueWithTimezone.js +2 -3
- package/node/internals/hooks/useViews.js +2 -3
- package/node/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js +1 -1
- package/node/internals/utils/date-time-utils.js +1 -1
- package/node/internals/utils/fields.js +1 -1
- package/node/internals/utils/valueManagers.js +1 -1
- package/node/locales/utils/getPickersLocalization.js +1 -1
- package/node/themeAugmentation/index.js +1 -38
- package/node/timeViewRenderers/timeViewRenderers.js +1 -2
- package/package.json +4 -3
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/index.js +0 -3
- package/timeViewRenderers/index.js +1 -1
- package/timeViewRenderers/timeViewRenderers.js +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
3
3
|
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
4
|
-
import { pickersInputBaseClasses } from
|
|
4
|
+
import { pickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
5
5
|
export function getPickersOutlinedInputUtilityClass(slot) {
|
|
6
6
|
return generateUtilityClass('MuiPickersOutlinedInput', slot);
|
|
7
7
|
}
|
|
@@ -12,10 +12,10 @@ import useId from '@mui/utils/useId';
|
|
|
12
12
|
import InputLabel from '@mui/material/InputLabel';
|
|
13
13
|
import FormHelperText from '@mui/material/FormHelperText';
|
|
14
14
|
import FormControl from '@mui/material/FormControl';
|
|
15
|
-
import { getPickersTextFieldUtilityClass } from
|
|
16
|
-
import { PickersOutlinedInput } from
|
|
17
|
-
import { PickersFilledInput } from
|
|
18
|
-
import { PickersInput } from
|
|
15
|
+
import { getPickersTextFieldUtilityClass } from "./pickersTextFieldClasses.js";
|
|
16
|
+
import { PickersOutlinedInput } from "./PickersOutlinedInput/index.js";
|
|
17
|
+
import { PickersFilledInput } from "./PickersFilledInput/index.js";
|
|
18
|
+
import { PickersInput } from "./PickersInput/index.js";
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
const VARIANT_COMPONENT = {
|
|
21
21
|
standard: PickersInput,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PickersTextField } from
|
|
2
|
-
export { pickersTextFieldClasses, getPickersTextFieldUtilityClass } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export { PickersTextField } from "./PickersTextField.js";
|
|
2
|
+
export { pickersTextFieldClasses, getPickersTextFieldUtilityClass } from "./pickersTextFieldClasses.js";
|
|
3
|
+
export * from "./PickersInput/index.js";
|
|
4
|
+
export * from "./PickersFilledInput/index.js";
|
|
5
|
+
export * from "./PickersOutlinedInput/index.js";
|
|
6
|
+
export * from "./PickersInputBase/index.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useDatePickerDefaultizedProps } from
|
|
5
|
-
import { renderDateViewCalendar } from
|
|
6
|
-
import { useStaticPicker } from
|
|
7
|
-
import { validateDate } from
|
|
8
|
-
import { singleItemValueManager } from
|
|
4
|
+
import { useDatePickerDefaultizedProps } from "../DatePicker/shared.js";
|
|
5
|
+
import { renderDateViewCalendar } from "../dateViewRenderers/index.js";
|
|
6
|
+
import { useStaticPicker } from "../internals/hooks/useStaticPicker/index.js";
|
|
7
|
+
import { validateDate } from "../internals/utils/validation/validateDate.js";
|
|
8
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
9
9
|
/**
|
|
10
10
|
* Demos:
|
|
11
11
|
*
|
|
@@ -134,16 +134,16 @@ StaticDatePicker.propTypes = {
|
|
|
134
134
|
monthsPerRow: PropTypes.oneOf([3, 4]),
|
|
135
135
|
/**
|
|
136
136
|
* Callback fired when the value is accepted.
|
|
137
|
-
* @template TValue The value type.
|
|
138
|
-
* @template TError The validation error type.
|
|
137
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
138
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
139
139
|
* @param {TValue} value The value that was just accepted.
|
|
140
140
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
141
141
|
*/
|
|
142
142
|
onAccept: PropTypes.func,
|
|
143
143
|
/**
|
|
144
144
|
* Callback fired when the value changes.
|
|
145
|
-
* @template TValue The value type.
|
|
146
|
-
* @template TError The validation error type.
|
|
145
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
146
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
147
147
|
* @param {TValue} value The new value.
|
|
148
148
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
149
149
|
*/
|
|
@@ -155,13 +155,13 @@ StaticDatePicker.propTypes = {
|
|
|
155
155
|
*/
|
|
156
156
|
onClose: PropTypes.func,
|
|
157
157
|
/**
|
|
158
|
-
* Callback fired when the error associated
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* @template
|
|
162
|
-
* @template
|
|
163
|
-
* @param {TError} error The
|
|
164
|
-
* @param {TValue} value The value associated
|
|
158
|
+
* Callback fired when the error associated with the current value changes.
|
|
159
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
160
|
+
* This can be used to render an appropriate form error.
|
|
161
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
162
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
163
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
164
|
+
* @param {TValue} value The value associated with the error.
|
|
165
165
|
*/
|
|
166
166
|
onError: PropTypes.func,
|
|
167
167
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { StaticDatePicker } from
|
|
1
|
+
export { StaticDatePicker } from "./StaticDatePicker.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useDateTimePickerDefaultizedProps } from
|
|
5
|
-
import { renderTimeViewClock } from
|
|
6
|
-
import { renderDateViewCalendar } from
|
|
7
|
-
import { singleItemValueManager } from
|
|
8
|
-
import { useStaticPicker } from
|
|
9
|
-
import { validateDateTime } from
|
|
4
|
+
import { useDateTimePickerDefaultizedProps } from "../DateTimePicker/shared.js";
|
|
5
|
+
import { renderTimeViewClock } from "../timeViewRenderers/index.js";
|
|
6
|
+
import { renderDateViewCalendar } from "../dateViewRenderers/index.js";
|
|
7
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
8
|
+
import { useStaticPicker } from "../internals/hooks/useStaticPicker/index.js";
|
|
9
|
+
import { validateDateTime } from "../internals/utils/validation/validateDateTime.js";
|
|
10
10
|
/**
|
|
11
11
|
* Demos:
|
|
12
12
|
*
|
|
@@ -182,16 +182,16 @@ StaticDateTimePicker.propTypes = {
|
|
|
182
182
|
monthsPerRow: PropTypes.oneOf([3, 4]),
|
|
183
183
|
/**
|
|
184
184
|
* Callback fired when the value is accepted.
|
|
185
|
-
* @template TValue The value type.
|
|
186
|
-
* @template TError The validation error type.
|
|
185
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
186
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
187
187
|
* @param {TValue} value The value that was just accepted.
|
|
188
188
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
189
189
|
*/
|
|
190
190
|
onAccept: PropTypes.func,
|
|
191
191
|
/**
|
|
192
192
|
* Callback fired when the value changes.
|
|
193
|
-
* @template TValue The value type.
|
|
194
|
-
* @template TError The validation error type.
|
|
193
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
194
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
195
195
|
* @param {TValue} value The new value.
|
|
196
196
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
197
197
|
*/
|
|
@@ -203,13 +203,13 @@ StaticDateTimePicker.propTypes = {
|
|
|
203
203
|
*/
|
|
204
204
|
onClose: PropTypes.func,
|
|
205
205
|
/**
|
|
206
|
-
* Callback fired when the error associated
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* @template
|
|
210
|
-
* @template
|
|
211
|
-
* @param {TError} error The
|
|
212
|
-
* @param {TValue} value The value associated
|
|
206
|
+
* Callback fired when the error associated with the current value changes.
|
|
207
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
208
|
+
* This can be used to render an appropriate form error.
|
|
209
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
210
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
211
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
212
|
+
* @param {TValue} value The value associated with the error.
|
|
213
213
|
*/
|
|
214
214
|
onError: PropTypes.func,
|
|
215
215
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { StaticDateTimePicker } from
|
|
1
|
+
export { StaticDateTimePicker } from "./StaticDateTimePicker.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useTimePickerDefaultizedProps } from
|
|
5
|
-
import { renderTimeViewClock } from
|
|
6
|
-
import { singleItemValueManager } from
|
|
7
|
-
import { useStaticPicker } from
|
|
8
|
-
import { validateTime } from
|
|
4
|
+
import { useTimePickerDefaultizedProps } from "../TimePicker/shared.js";
|
|
5
|
+
import { renderTimeViewClock } from "../timeViewRenderers/index.js";
|
|
6
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
7
|
+
import { useStaticPicker } from "../internals/hooks/useStaticPicker/index.js";
|
|
8
|
+
import { validateTime } from "../internals/utils/validation/validateTime.js";
|
|
9
9
|
/**
|
|
10
10
|
* Demos:
|
|
11
11
|
*
|
|
@@ -124,16 +124,16 @@ StaticTimePicker.propTypes = {
|
|
|
124
124
|
minutesStep: PropTypes.number,
|
|
125
125
|
/**
|
|
126
126
|
* Callback fired when the value is accepted.
|
|
127
|
-
* @template TValue The value type.
|
|
128
|
-
* @template TError The validation error type.
|
|
127
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
128
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
129
129
|
* @param {TValue} value The value that was just accepted.
|
|
130
130
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
131
131
|
*/
|
|
132
132
|
onAccept: PropTypes.func,
|
|
133
133
|
/**
|
|
134
134
|
* Callback fired when the value changes.
|
|
135
|
-
* @template TValue The value type.
|
|
136
|
-
* @template TError The validation error type.
|
|
135
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
136
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
137
137
|
* @param {TValue} value The new value.
|
|
138
138
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
139
139
|
*/
|
|
@@ -145,13 +145,13 @@ StaticTimePicker.propTypes = {
|
|
|
145
145
|
*/
|
|
146
146
|
onClose: PropTypes.func,
|
|
147
147
|
/**
|
|
148
|
-
* Callback fired when the error associated
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* @template
|
|
152
|
-
* @template
|
|
153
|
-
* @param {TError} error The
|
|
154
|
-
* @param {TValue} value The value associated
|
|
148
|
+
* Callback fired when the error associated with the current value changes.
|
|
149
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
150
|
+
* This can be used to render an appropriate form error.
|
|
151
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
152
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
153
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
154
|
+
* @param {TValue} value The value associated with the error.
|
|
155
155
|
*/
|
|
156
156
|
onError: PropTypes.func,
|
|
157
157
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { StaticTimePicker } from
|
|
1
|
+
export { StaticTimePicker } from "./StaticTimePicker.js";
|
|
@@ -5,12 +5,12 @@ import IconButton from '@mui/material/IconButton';
|
|
|
5
5
|
import Typography from '@mui/material/Typography';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { unstable_useEnhancedEffect as useEnhancedEffect, unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
8
|
-
import { ClockPointer } from
|
|
9
|
-
import { usePickersTranslations } from
|
|
10
|
-
import { useUtils } from
|
|
11
|
-
import { CLOCK_HOUR_WIDTH, getHours, getMinutes } from
|
|
12
|
-
import { getClockUtilityClass } from
|
|
13
|
-
import { formatMeridiem } from
|
|
8
|
+
import { ClockPointer } from "./ClockPointer.js";
|
|
9
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
10
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
11
|
+
import { CLOCK_HOUR_WIDTH, getHours, getMinutes } from "./shared.js";
|
|
12
|
+
import { getClockUtilityClass } from "./clockClasses.js";
|
|
13
|
+
import { formatMeridiem } from "../internals/utils/date-utils.js";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
@@ -5,8 +5,8 @@ import * as React from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from
|
|
9
|
-
import { getClockNumberUtilityClass, clockNumberClasses } from
|
|
8
|
+
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from "./shared.js";
|
|
9
|
+
import { getClockNumberUtilityClass, clockNumberClasses } from "./clockNumberClasses.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const useUtilityClasses = ownerState => {
|
|
12
12
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ClockNumber } from
|
|
2
|
+
import { ClockNumber } from "./ClockNumber.js";
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
/**
|
|
5
5
|
* @ignore - internal component.
|
|
@@ -36,7 +36,7 @@ export const getHourNumbers = ({
|
|
|
36
36
|
const inner = !ampm && (hour === 0 || hour > 12);
|
|
37
37
|
label = utils.formatNumber(label);
|
|
38
38
|
const selected = isSelected(hour);
|
|
39
|
-
hourNumbers.push(
|
|
39
|
+
hourNumbers.push(/*#__PURE__*/_jsx(ClockNumber, {
|
|
40
40
|
id: selected ? selectedId : undefined,
|
|
41
41
|
index: hour,
|
|
42
42
|
inner: inner,
|
|
@@ -5,8 +5,8 @@ import * as React from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from
|
|
9
|
-
import { getClockPointerUtilityClass } from
|
|
8
|
+
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from "./shared.js";
|
|
9
|
+
import { getClockPointerUtilityClass } from "./clockPointerClasses.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const useUtilityClasses = ownerState => {
|
|
12
12
|
const {
|
|
@@ -6,19 +6,19 @@ import clsx from 'clsx';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import { unstable_composeClasses as composeClasses, unstable_useId as useId } from '@mui/utils';
|
|
9
|
-
import { usePickersTranslations } from
|
|
10
|
-
import { useUtils, useNow } from
|
|
11
|
-
import { PickersArrowSwitcher } from
|
|
12
|
-
import { convertValueToMeridiem, createIsAfterIgnoreDatePart } from
|
|
13
|
-
import { useViews } from
|
|
14
|
-
import { useMeridiemMode } from
|
|
15
|
-
import { PickerViewRoot } from
|
|
16
|
-
import { getTimeClockUtilityClass } from
|
|
17
|
-
import { Clock } from
|
|
18
|
-
import { getHourNumbers, getMinutesNumbers } from
|
|
19
|
-
import { useControlledValueWithTimezone } from
|
|
20
|
-
import { singleItemValueManager } from
|
|
21
|
-
import { useClockReferenceDate } from
|
|
9
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
10
|
+
import { useUtils, useNow } from "../internals/hooks/useUtils.js";
|
|
11
|
+
import { PickersArrowSwitcher } from "../internals/components/PickersArrowSwitcher/index.js";
|
|
12
|
+
import { convertValueToMeridiem, createIsAfterIgnoreDatePart } from "../internals/utils/time-utils.js";
|
|
13
|
+
import { useViews } from "../internals/hooks/useViews.js";
|
|
14
|
+
import { useMeridiemMode } from "../internals/hooks/date-helpers-hooks.js";
|
|
15
|
+
import { PickerViewRoot } from "../internals/components/PickerViewRoot/index.js";
|
|
16
|
+
import { getTimeClockUtilityClass } from "./timeClockClasses.js";
|
|
17
|
+
import { Clock } from "./Clock.js";
|
|
18
|
+
import { getHourNumbers, getMinutesNumbers } from "./ClockNumbers.js";
|
|
19
|
+
import { useControlledValueWithTimezone } from "../internals/hooks/useValueWithTimezone.js";
|
|
20
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
21
|
+
import { useClockReferenceDate } from "../internals/hooks/useClockReferenceDate.js";
|
|
22
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
@@ -383,7 +383,7 @@ process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
|
|
|
383
383
|
minutesStep: PropTypes.number,
|
|
384
384
|
/**
|
|
385
385
|
* Callback fired when the value changes.
|
|
386
|
-
* @template TValue The value type.
|
|
386
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
387
387
|
* @template TView The view type. Will be one of date or time views.
|
|
388
388
|
* @param {TValue} value The new value.
|
|
389
389
|
* @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { TimeClock } from
|
|
2
|
-
export { clockClasses } from
|
|
3
|
-
export { clockNumberClasses } from
|
|
4
|
-
export { timeClockClasses, getTimeClockUtilityClass } from
|
|
5
|
-
export { clockPointerClasses } from
|
|
1
|
+
export { TimeClock } from "./TimeClock.js";
|
|
2
|
+
export { clockClasses } from "./clockClasses.js";
|
|
3
|
+
export { clockNumberClasses } from "./clockNumberClasses.js";
|
|
4
|
+
export { timeClockClasses, getTimeClockUtilityClass } from "./timeClockClasses.js";
|
|
5
|
+
export { clockPointerClasses } from "./clockPointerClasses.js";
|
|
@@ -7,10 +7,10 @@ import MuiTextField from '@mui/material/TextField';
|
|
|
7
7
|
import { useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
9
9
|
import { refType } from '@mui/utils';
|
|
10
|
-
import { useTimeField } from
|
|
11
|
-
import { useClearableField } from
|
|
12
|
-
import { PickersTextField } from
|
|
13
|
-
import { convertFieldResponseIntoMuiTextFieldProps } from
|
|
10
|
+
import { useTimeField } from "./useTimeField.js";
|
|
11
|
+
import { useClearableField } from "../hooks/index.js";
|
|
12
|
+
import { PickersTextField } from "../PickersTextField/index.js";
|
|
13
|
+
import { convertFieldResponseIntoMuiTextFieldProps } from "../internals/utils/convertFieldResponseIntoMuiTextFieldProps.js";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
/**
|
|
16
16
|
* Demos:
|
|
@@ -204,8 +204,8 @@ process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
|
|
|
204
204
|
onBlur: PropTypes.func,
|
|
205
205
|
/**
|
|
206
206
|
* Callback fired when the value changes.
|
|
207
|
-
* @template TValue The value type.
|
|
208
|
-
* @template TError The validation error type.
|
|
207
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
208
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
209
209
|
* @param {TValue} value The new value.
|
|
210
210
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
211
211
|
*/
|
|
@@ -215,11 +215,13 @@ process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
|
|
|
215
215
|
*/
|
|
216
216
|
onClear: PropTypes.func,
|
|
217
217
|
/**
|
|
218
|
-
* Callback fired when the error associated
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* @
|
|
222
|
-
* @
|
|
218
|
+
* Callback fired when the error associated with the current value changes.
|
|
219
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
220
|
+
* This can be used to render an appropriate form error.
|
|
221
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
222
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
223
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
224
|
+
* @param {TValue} value The value associated with the error.
|
|
223
225
|
*/
|
|
224
226
|
onError: PropTypes.func,
|
|
225
227
|
onFocus: PropTypes.func,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TimeField } from
|
|
2
|
-
export { useTimeField as unstable_useTimeField } from
|
|
1
|
+
export { TimeField } from "./TimeField.js";
|
|
2
|
+
export { useTimeField as unstable_useTimeField } from "./useTimeField.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { singleItemFieldValueManager, singleItemValueManager } from
|
|
2
|
-
import { useField } from
|
|
3
|
-
import { validateTime } from
|
|
4
|
-
import { splitFieldInternalAndForwardedProps } from
|
|
5
|
-
import { useDefaultizedTimeField } from
|
|
1
|
+
import { singleItemFieldValueManager, singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
2
|
+
import { useField } from "../internals/hooks/useField/index.js";
|
|
3
|
+
import { validateTime } from "../internals/utils/validation/validateTime.js";
|
|
4
|
+
import { splitFieldInternalAndForwardedProps } from "../internals/utils/fields.js";
|
|
5
|
+
import { useDefaultizedTimeField } from "../internals/hooks/defaultizedFieldProps.js";
|
|
6
6
|
export const useTimeField = inProps => {
|
|
7
7
|
const props = useDefaultizedTimeField(inProps);
|
|
8
8
|
const {
|
|
@@ -6,9 +6,9 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
7
7
|
import { useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import { refType } from '@mui/utils';
|
|
9
|
-
import { DesktopTimePicker } from
|
|
10
|
-
import { MobileTimePicker } from
|
|
11
|
-
import { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from
|
|
9
|
+
import { DesktopTimePicker } from "../DesktopTimePicker/index.js";
|
|
10
|
+
import { MobileTimePicker } from "../MobileTimePicker/index.js";
|
|
11
|
+
import { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from "../internals/utils/utils.js";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
14
14
|
* Demos:
|
|
@@ -156,16 +156,16 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
|
|
|
156
156
|
name: PropTypes.string,
|
|
157
157
|
/**
|
|
158
158
|
* Callback fired when the value is accepted.
|
|
159
|
-
* @template TValue The value type.
|
|
160
|
-
* @template TError The validation error type.
|
|
159
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
160
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
161
161
|
* @param {TValue} value The value that was just accepted.
|
|
162
162
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
163
163
|
*/
|
|
164
164
|
onAccept: PropTypes.func,
|
|
165
165
|
/**
|
|
166
166
|
* Callback fired when the value changes.
|
|
167
|
-
* @template TValue The value type.
|
|
168
|
-
* @template TError The validation error type.
|
|
167
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
168
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
169
169
|
* @param {TValue} value The new value.
|
|
170
170
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
171
171
|
*/
|
|
@@ -176,13 +176,13 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
|
|
|
176
176
|
*/
|
|
177
177
|
onClose: PropTypes.func,
|
|
178
178
|
/**
|
|
179
|
-
* Callback fired when the error associated
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* @template
|
|
183
|
-
* @template
|
|
184
|
-
* @param {TError} error The
|
|
185
|
-
* @param {TValue} value The value associated
|
|
179
|
+
* Callback fired when the error associated with the current value changes.
|
|
180
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
181
|
+
* This can be used to render an appropriate form error.
|
|
182
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
183
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
184
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
185
|
+
* @param {TValue} value The value associated with the error.
|
|
186
186
|
*/
|
|
187
187
|
onError: PropTypes.func,
|
|
188
188
|
/**
|
|
@@ -7,15 +7,15 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import { PickersToolbarText } from
|
|
11
|
-
import { PickersToolbarButton } from
|
|
12
|
-
import { PickersToolbar } from
|
|
13
|
-
import { arrayIncludes } from
|
|
14
|
-
import { usePickersTranslations } from
|
|
15
|
-
import { useUtils } from
|
|
16
|
-
import { useMeridiemMode } from
|
|
17
|
-
import { getTimePickerToolbarUtilityClass, timePickerToolbarClasses } from
|
|
18
|
-
import { formatMeridiem } from
|
|
10
|
+
import { PickersToolbarText } from "../internals/components/PickersToolbarText.js";
|
|
11
|
+
import { PickersToolbarButton } from "../internals/components/PickersToolbarButton.js";
|
|
12
|
+
import { PickersToolbar } from "../internals/components/PickersToolbar.js";
|
|
13
|
+
import { arrayIncludes } from "../internals/utils/utils.js";
|
|
14
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
15
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
16
|
+
import { useMeridiemMode } from "../internals/hooks/date-helpers-hooks.js";
|
|
17
|
+
import { getTimePickerToolbarUtilityClass, timePickerToolbarClasses } from "./timePickerToolbarClasses.js";
|
|
18
|
+
import { formatMeridiem } from "../internals/utils/date-utils.js";
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
const useUtilityClasses = ownerState => {
|
|
21
21
|
const {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TimePicker } from
|
|
2
|
-
export { TimePickerToolbar } from
|
|
3
|
-
export { timePickerToolbarClasses } from
|
|
1
|
+
export { TimePicker } from "./TimePicker.js";
|
|
2
|
+
export { TimePickerToolbar } from "./TimePickerToolbar.js";
|
|
3
|
+
export { timePickerToolbarClasses } from "./timePickerToolbarClasses.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useThemeProps } from '@mui/material/styles';
|
|
4
|
-
import { useUtils } from
|
|
5
|
-
import { TimePickerToolbar } from
|
|
6
|
-
import { applyDefaultViewProps } from
|
|
4
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
5
|
+
import { TimePickerToolbar } from "./TimePickerToolbar.js";
|
|
6
|
+
import { applyDefaultViewProps } from "../internals/utils/views.js";
|
|
7
7
|
export function useTimePickerDefaultizedProps(props, name) {
|
|
8
8
|
const utils = useUtils();
|
|
9
9
|
const themeProps = useThemeProps({
|
|
@@ -7,7 +7,7 @@ import { styled, alpha, useThemeProps } from '@mui/material/styles';
|
|
|
7
7
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
10
|
-
import { getPickersYearUtilityClass, pickersYearClasses } from
|
|
10
|
+
import { getPickersYearUtilityClass, pickersYearClasses } from "./pickersYearClasses.js";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
const useUtilityClasses = ownerState => {
|
|
13
13
|
const {
|
|
@@ -7,14 +7,14 @@ import clsx from 'clsx';
|
|
|
7
7
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { unstable_useForkRef as useForkRef, unstable_composeClasses as composeClasses, unstable_useControlled as useControlled, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
10
|
-
import { PickersYear } from
|
|
11
|
-
import { useUtils, useNow, useDefaultDates } from
|
|
12
|
-
import { getYearCalendarUtilityClass } from
|
|
13
|
-
import { applyDefaultDate } from
|
|
14
|
-
import { singleItemValueManager } from
|
|
15
|
-
import { SECTION_TYPE_GRANULARITY } from
|
|
16
|
-
import { useControlledValueWithTimezone } from
|
|
17
|
-
import { DIALOG_WIDTH, MAX_CALENDAR_HEIGHT } from
|
|
10
|
+
import { PickersYear } from "./PickersYear.js";
|
|
11
|
+
import { useUtils, useNow, useDefaultDates } from "../internals/hooks/useUtils.js";
|
|
12
|
+
import { getYearCalendarUtilityClass } from "./yearCalendarClasses.js";
|
|
13
|
+
import { applyDefaultDate } from "../internals/utils/date-utils.js";
|
|
14
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
15
|
+
import { SECTION_TYPE_GRANULARITY } from "../internals/utils/getDefaultReferenceDate.js";
|
|
16
|
+
import { useControlledValueWithTimezone } from "../internals/hooks/useValueWithTimezone.js";
|
|
17
|
+
import { DIALOG_WIDTH, MAX_CALENDAR_HEIGHT } from "../internals/constants/dimensions.js";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
const useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { YearCalendar } from
|
|
2
|
-
export { yearCalendarClasses, getYearCalendarUtilityClass } from
|
|
3
|
-
export { pickersYearClasses } from
|
|
1
|
+
export { YearCalendar } from "./YearCalendar.js";
|
|
2
|
+
export { yearCalendarClasses, getYearCalendarUtilityClass } from "./yearCalendarClasses.js";
|
|
3
|
+
export { pickersYearClasses } from "./pickersYearClasses.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DateCalendar } from
|
|
3
|
-
import { isDatePickerView } from
|
|
2
|
+
import { DateCalendar } from "../DateCalendar/index.js";
|
|
3
|
+
import { isDatePickerView } from "../internals/utils/date-utils.js";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const renderDateViewCalendar = ({
|
|
6
6
|
view,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { renderDateViewCalendar } from
|
|
1
|
+
export { renderDateViewCalendar } from "./dateViewRenderers.js";
|
package/modern/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useClearableField } from
|
|
2
|
-
export { usePickersTranslations } from
|
|
1
|
+
export { useClearableField } from "./useClearableField.js";
|
|
2
|
+
export { usePickersTranslations } from "./usePickersTranslations.js";
|