@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
|
@@ -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 { useDateTimeField } from
|
|
11
|
-
import { useClearableField } from
|
|
12
|
-
import { PickersTextField } from
|
|
13
|
-
import { convertFieldResponseIntoMuiTextFieldProps } from
|
|
10
|
+
import { useDateTimeField } from "./useDateTimeField.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:
|
|
@@ -222,8 +222,8 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
222
222
|
onBlur: PropTypes.func,
|
|
223
223
|
/**
|
|
224
224
|
* Callback fired when the value changes.
|
|
225
|
-
* @template TValue The value type.
|
|
226
|
-
* @template TError The validation error type.
|
|
225
|
+
* @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.
|
|
226
|
+
* @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.
|
|
227
227
|
* @param {TValue} value The new value.
|
|
228
228
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
229
229
|
*/
|
|
@@ -233,11 +233,13 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
233
233
|
*/
|
|
234
234
|
onClear: PropTypes.func,
|
|
235
235
|
/**
|
|
236
|
-
* Callback fired when the error associated
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
* @
|
|
240
|
-
* @
|
|
236
|
+
* Callback fired when the error associated with the current value changes.
|
|
237
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
238
|
+
* This can be used to render an appropriate form error.
|
|
239
|
+
* @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.
|
|
240
|
+
* @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.
|
|
241
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
242
|
+
* @param {TValue} value The value associated with the error.
|
|
241
243
|
*/
|
|
242
244
|
onError: PropTypes.func,
|
|
243
245
|
onFocus: PropTypes.func,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DateTimeField } from
|
|
2
|
-
export { useDateTimeField as unstable_useDateTimeField } from
|
|
1
|
+
export { DateTimeField } from "./DateTimeField.js";
|
|
2
|
+
export { useDateTimeField as unstable_useDateTimeField } from "./useDateTimeField.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { singleItemFieldValueManager, singleItemValueManager } from
|
|
2
|
-
import { useField } from
|
|
3
|
-
import { validateDateTime } from
|
|
4
|
-
import { splitFieldInternalAndForwardedProps } from
|
|
5
|
-
import { useDefaultizedDateTimeField } from
|
|
1
|
+
import { singleItemFieldValueManager, singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
2
|
+
import { useField } from "../internals/hooks/useField/index.js";
|
|
3
|
+
import { validateDateTime } from "../internals/utils/validation/validateDateTime.js";
|
|
4
|
+
import { splitFieldInternalAndForwardedProps } from "../internals/utils/fields.js";
|
|
5
|
+
import { useDefaultizedDateTimeField } from "../internals/hooks/defaultizedFieldProps.js";
|
|
6
6
|
export const useDateTimeField = inProps => {
|
|
7
7
|
const props = useDefaultizedDateTimeField(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 { DesktopDateTimePicker } from
|
|
10
|
-
import { MobileDateTimePicker } from
|
|
11
|
-
import { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from
|
|
9
|
+
import { DesktopDateTimePicker } from "../DesktopDateTimePicker/index.js";
|
|
10
|
+
import { MobileDateTimePicker } from "../MobileDateTimePicker/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:
|
|
@@ -206,16 +206,16 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
206
206
|
name: PropTypes.string,
|
|
207
207
|
/**
|
|
208
208
|
* Callback fired when the value is accepted.
|
|
209
|
-
* @template TValue The value type.
|
|
210
|
-
* @template TError The validation error type.
|
|
209
|
+
* @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.
|
|
210
|
+
* @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.
|
|
211
211
|
* @param {TValue} value The value that was just accepted.
|
|
212
212
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
213
213
|
*/
|
|
214
214
|
onAccept: PropTypes.func,
|
|
215
215
|
/**
|
|
216
216
|
* Callback fired when the value changes.
|
|
217
|
-
* @template TValue The value type.
|
|
218
|
-
* @template TError The validation error type.
|
|
217
|
+
* @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.
|
|
218
|
+
* @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.
|
|
219
219
|
* @param {TValue} value The new value.
|
|
220
220
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
221
221
|
*/
|
|
@@ -226,13 +226,13 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
226
226
|
*/
|
|
227
227
|
onClose: PropTypes.func,
|
|
228
228
|
/**
|
|
229
|
-
* Callback fired when the error associated
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
* @template
|
|
233
|
-
* @template
|
|
234
|
-
* @param {TError} error The
|
|
235
|
-
* @param {TValue} value The value associated
|
|
229
|
+
* Callback fired when the error associated with the current value changes.
|
|
230
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
231
|
+
* This can be used to render an appropriate form error.
|
|
232
|
+
* @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.
|
|
233
|
+
* @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.
|
|
234
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
235
|
+
* @param {TValue} value The value associated with the error.
|
|
236
236
|
*/
|
|
237
237
|
onError: PropTypes.func,
|
|
238
238
|
/**
|
|
@@ -5,10 +5,10 @@ import Tab from '@mui/material/Tab';
|
|
|
5
5
|
import Tabs, { tabsClasses } from '@mui/material/Tabs';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { TimeIcon, DateRangeIcon } from
|
|
9
|
-
import { usePickersTranslations } from
|
|
10
|
-
import { getDateTimePickerTabsUtilityClass } from
|
|
11
|
-
import { isDatePickerView } from
|
|
8
|
+
import { TimeIcon, DateRangeIcon } from "../icons/index.js";
|
|
9
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
10
|
+
import { getDateTimePickerTabsUtilityClass } from "./dateTimePickerTabsClasses.js";
|
|
11
|
+
import { isDatePickerView } from "../internals/utils/date-utils.js";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
const viewToTab = view => {
|
|
14
14
|
if (isDatePickerView(view)) {
|
|
@@ -7,17 +7,17 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { PickersToolbarText } from
|
|
11
|
-
import { PickersToolbar } from
|
|
12
|
-
import { PickersToolbarButton } from
|
|
13
|
-
import { usePickersTranslations } from
|
|
14
|
-
import { useUtils } from
|
|
15
|
-
import { dateTimePickerToolbarClasses, getDateTimePickerToolbarUtilityClass } from
|
|
16
|
-
import { useMeridiemMode } from
|
|
17
|
-
import { MULTI_SECTION_CLOCK_SECTION_WIDTH } from
|
|
18
|
-
import { formatMeridiem } from
|
|
19
|
-
import { pickersToolbarTextClasses } from
|
|
20
|
-
import { pickersToolbarClasses } from
|
|
10
|
+
import { PickersToolbarText } from "../internals/components/PickersToolbarText.js";
|
|
11
|
+
import { PickersToolbar } from "../internals/components/PickersToolbar.js";
|
|
12
|
+
import { PickersToolbarButton } from "../internals/components/PickersToolbarButton.js";
|
|
13
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
14
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
15
|
+
import { dateTimePickerToolbarClasses, getDateTimePickerToolbarUtilityClass } from "./dateTimePickerToolbarClasses.js";
|
|
16
|
+
import { useMeridiemMode } from "../internals/hooks/date-helpers-hooks.js";
|
|
17
|
+
import { MULTI_SECTION_CLOCK_SECTION_WIDTH } from "../internals/constants/dimensions.js";
|
|
18
|
+
import { formatMeridiem } from "../internals/utils/date-utils.js";
|
|
19
|
+
import { pickersToolbarTextClasses } from "../internals/components/pickersToolbarTextClasses.js";
|
|
20
|
+
import { pickersToolbarClasses } from "../internals/components/pickersToolbarClasses.js";
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
const useUtilityClasses = ownerState => {
|
|
23
23
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DateTimePicker } from
|
|
2
|
-
export { DateTimePickerTabs } from
|
|
3
|
-
export { dateTimePickerTabsClasses } from
|
|
4
|
-
export { DateTimePickerToolbar } from
|
|
5
|
-
export { dateTimePickerToolbarClasses } from
|
|
1
|
+
export { DateTimePicker } from "./DateTimePicker.js";
|
|
2
|
+
export { DateTimePickerTabs } from "./DateTimePickerTabs.js";
|
|
3
|
+
export { dateTimePickerTabsClasses } from "./dateTimePickerTabsClasses.js";
|
|
4
|
+
export { DateTimePickerToolbar } from "./DateTimePickerToolbar.js";
|
|
5
|
+
export { dateTimePickerToolbarClasses } from "./dateTimePickerToolbarClasses.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 { useThemeProps } from '@mui/material/styles';
|
|
4
|
-
import { useDefaultDates, useUtils } from
|
|
5
|
-
import { applyDefaultDate } from
|
|
6
|
-
import { DateTimePickerTabs } from
|
|
7
|
-
import { DateTimePickerToolbar } from
|
|
8
|
-
import { applyDefaultViewProps } from
|
|
4
|
+
import { useDefaultDates, useUtils } from "../internals/hooks/useUtils.js";
|
|
5
|
+
import { applyDefaultDate } from "../internals/utils/date-utils.js";
|
|
6
|
+
import { DateTimePickerTabs } from "./DateTimePickerTabs.js";
|
|
7
|
+
import { DateTimePickerToolbar } from "./DateTimePickerToolbar.js";
|
|
8
|
+
import { applyDefaultViewProps } from "../internals/utils/views.js";
|
|
9
9
|
export function useDateTimePickerDefaultizedProps(props, name) {
|
|
10
10
|
const utils = useUtils();
|
|
11
11
|
const defaultDates = useDefaultDates();
|
|
@@ -7,8 +7,8 @@ import clsx from 'clsx';
|
|
|
7
7
|
import Skeleton from '@mui/material/Skeleton';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import { DAY_SIZE, DAY_MARGIN } from
|
|
11
|
-
import { getDayCalendarSkeletonUtilityClass } from
|
|
10
|
+
import { DAY_SIZE, DAY_MARGIN } from "../internals/constants/dimensions.js";
|
|
11
|
+
import { getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const useUtilityClasses = ownerState => {
|
|
14
14
|
const {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DayCalendarSkeleton } from
|
|
2
|
-
export { dayCalendarSkeletonClasses, getDayCalendarSkeletonUtilityClass } from
|
|
1
|
+
export { DayCalendarSkeleton } from "./DayCalendarSkeleton.js";
|
|
2
|
+
export { dayCalendarSkeletonClasses, getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
|
|
@@ -3,17 +3,17 @@ import * as React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
5
5
|
import { refType } from '@mui/utils';
|
|
6
|
-
import { singleItemValueManager } from
|
|
7
|
-
import { useDatePickerDefaultizedProps } from
|
|
8
|
-
import { usePickersTranslations } from
|
|
9
|
-
import { useUtils } from
|
|
10
|
-
import { validateDate } from
|
|
11
|
-
import { useDesktopPicker } from
|
|
12
|
-
import { CalendarIcon } from
|
|
13
|
-
import { DateField } from
|
|
14
|
-
import { extractValidationProps } from
|
|
15
|
-
import { renderDateViewCalendar } from
|
|
16
|
-
import { resolveDateFormat } from
|
|
6
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
7
|
+
import { useDatePickerDefaultizedProps } from "../DatePicker/shared.js";
|
|
8
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
9
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
10
|
+
import { validateDate } from "../internals/utils/validation/validateDate.js";
|
|
11
|
+
import { useDesktopPicker } from "../internals/hooks/useDesktopPicker/index.js";
|
|
12
|
+
import { CalendarIcon } from "../icons/index.js";
|
|
13
|
+
import { DateField } from "../DateField/index.js";
|
|
14
|
+
import { extractValidationProps } from "../internals/utils/validation/extractValidationProps.js";
|
|
15
|
+
import { renderDateViewCalendar } from "../dateViewRenderers/index.js";
|
|
16
|
+
import { resolveDateFormat } from "../internals/utils/date-utils.js";
|
|
17
17
|
/**
|
|
18
18
|
* Demos:
|
|
19
19
|
*
|
|
@@ -184,16 +184,16 @@ DesktopDatePicker.propTypes = {
|
|
|
184
184
|
name: PropTypes.string,
|
|
185
185
|
/**
|
|
186
186
|
* Callback fired when the value is accepted.
|
|
187
|
-
* @template TValue The value type.
|
|
188
|
-
* @template TError The validation error type.
|
|
187
|
+
* @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.
|
|
188
|
+
* @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.
|
|
189
189
|
* @param {TValue} value The value that was just accepted.
|
|
190
190
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
191
191
|
*/
|
|
192
192
|
onAccept: PropTypes.func,
|
|
193
193
|
/**
|
|
194
194
|
* Callback fired when the value changes.
|
|
195
|
-
* @template TValue The value type.
|
|
196
|
-
* @template TError The validation error type.
|
|
195
|
+
* @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.
|
|
196
|
+
* @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.
|
|
197
197
|
* @param {TValue} value The new value.
|
|
198
198
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
199
199
|
*/
|
|
@@ -204,13 +204,13 @@ DesktopDatePicker.propTypes = {
|
|
|
204
204
|
*/
|
|
205
205
|
onClose: PropTypes.func,
|
|
206
206
|
/**
|
|
207
|
-
* Callback fired when the error associated
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* @template
|
|
211
|
-
* @template
|
|
212
|
-
* @param {TError} error The
|
|
213
|
-
* @param {TValue} value The value associated
|
|
207
|
+
* Callback fired when the error associated with the current value changes.
|
|
208
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
209
|
+
* This can be used to render an appropriate form error.
|
|
210
|
+
* @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.
|
|
211
|
+
* @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.
|
|
212
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
213
|
+
* @param {TValue} value The value associated with the error.
|
|
214
214
|
*/
|
|
215
215
|
onError: PropTypes.func,
|
|
216
216
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DesktopDatePicker } from
|
|
1
|
+
export { DesktopDatePicker } from "./DesktopDatePicker.js";
|
|
@@ -6,24 +6,24 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
7
7
|
import { refType } from '@mui/utils';
|
|
8
8
|
import Divider from '@mui/material/Divider';
|
|
9
|
-
import { singleItemValueManager } from
|
|
10
|
-
import { DateTimeField } from
|
|
11
|
-
import { useDateTimePickerDefaultizedProps } from
|
|
12
|
-
import { renderDateViewCalendar } from
|
|
13
|
-
import { usePickersTranslations } from
|
|
14
|
-
import { useUtils } from
|
|
15
|
-
import { validateDateTime } from
|
|
16
|
-
import { CalendarIcon } from
|
|
17
|
-
import { useDesktopPicker } from
|
|
18
|
-
import { extractValidationProps } from
|
|
19
|
-
import { resolveDateTimeFormat, resolveTimeViewsResponse } from
|
|
20
|
-
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from
|
|
21
|
-
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from
|
|
22
|
-
import { digitalClockClasses } from
|
|
23
|
-
import { DesktopDateTimePickerLayout } from
|
|
24
|
-
import { VIEW_HEIGHT } from
|
|
25
|
-
import { isInternalTimeView } from
|
|
26
|
-
import { isDatePickerView } from
|
|
9
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
10
|
+
import { DateTimeField } from "../DateTimeField/index.js";
|
|
11
|
+
import { useDateTimePickerDefaultizedProps } from "../DateTimePicker/shared.js";
|
|
12
|
+
import { renderDateViewCalendar } from "../dateViewRenderers/dateViewRenderers.js";
|
|
13
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
14
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
15
|
+
import { validateDateTime } from "../internals/utils/validation/validateDateTime.js";
|
|
16
|
+
import { CalendarIcon } from "../icons/index.js";
|
|
17
|
+
import { useDesktopPicker } from "../internals/hooks/useDesktopPicker/index.js";
|
|
18
|
+
import { extractValidationProps } from "../internals/utils/validation/extractValidationProps.js";
|
|
19
|
+
import { resolveDateTimeFormat, resolveTimeViewsResponse } from "../internals/utils/date-time-utils.js";
|
|
20
|
+
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from "../timeViewRenderers/index.js";
|
|
21
|
+
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from "../MultiSectionDigitalClock/index.js";
|
|
22
|
+
import { digitalClockClasses } from "../DigitalClock/index.js";
|
|
23
|
+
import { DesktopDateTimePickerLayout } from "./DesktopDateTimePickerLayout.js";
|
|
24
|
+
import { VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
25
|
+
import { isInternalTimeView } from "../internals/utils/time-utils.js";
|
|
26
|
+
import { isDatePickerView } from "../internals/utils/date-utils.js";
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
|
|
29
29
|
const {
|
|
@@ -309,16 +309,16 @@ DesktopDateTimePicker.propTypes = {
|
|
|
309
309
|
name: PropTypes.string,
|
|
310
310
|
/**
|
|
311
311
|
* Callback fired when the value is accepted.
|
|
312
|
-
* @template TValue The value type.
|
|
313
|
-
* @template TError The validation error type.
|
|
312
|
+
* @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.
|
|
313
|
+
* @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.
|
|
314
314
|
* @param {TValue} value The value that was just accepted.
|
|
315
315
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
316
316
|
*/
|
|
317
317
|
onAccept: PropTypes.func,
|
|
318
318
|
/**
|
|
319
319
|
* Callback fired when the value changes.
|
|
320
|
-
* @template TValue The value type.
|
|
321
|
-
* @template TError The validation error type.
|
|
320
|
+
* @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.
|
|
321
|
+
* @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.
|
|
322
322
|
* @param {TValue} value The new value.
|
|
323
323
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
324
324
|
*/
|
|
@@ -329,13 +329,13 @@ DesktopDateTimePicker.propTypes = {
|
|
|
329
329
|
*/
|
|
330
330
|
onClose: PropTypes.func,
|
|
331
331
|
/**
|
|
332
|
-
* Callback fired when the error associated
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
* @template
|
|
336
|
-
* @template
|
|
337
|
-
* @param {TError} error The
|
|
338
|
-
* @param {TValue} value The value associated
|
|
332
|
+
* Callback fired when the error associated with the current value changes.
|
|
333
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
334
|
+
* This can be used to render an appropriate form error.
|
|
335
|
+
* @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.
|
|
336
|
+
* @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.
|
|
337
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
338
|
+
* @param {TValue} value The value associated with the error.
|
|
339
339
|
*/
|
|
340
340
|
onError: PropTypes.func,
|
|
341
341
|
/**
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
6
6
|
import Divider from '@mui/material/Divider';
|
|
7
|
-
import { PickersLayoutContentWrapper, PickersLayoutRoot, pickersLayoutClasses, usePickerLayout } from
|
|
7
|
+
import { PickersLayoutContentWrapper, PickersLayoutRoot, pickersLayoutClasses, usePickerLayout } from "../PickersLayout/index.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
/**
|
|
10
10
|
* @ignore - internal component.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DesktopDateTimePicker } from
|
|
2
|
-
export { DesktopDateTimePickerLayout } from
|
|
1
|
+
export { DesktopDateTimePicker } from "./DesktopDateTimePicker.js";
|
|
2
|
+
export { DesktopDateTimePickerLayout } from "./DesktopDateTimePickerLayout.js";
|
|
@@ -3,18 +3,18 @@ import * as React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
5
5
|
import { refType } from '@mui/utils';
|
|
6
|
-
import { singleItemValueManager } from
|
|
7
|
-
import { TimeField } from
|
|
8
|
-
import { useTimePickerDefaultizedProps } from
|
|
9
|
-
import { usePickersTranslations } from
|
|
10
|
-
import { useUtils } from
|
|
11
|
-
import { validateTime } from
|
|
12
|
-
import { ClockIcon } from
|
|
13
|
-
import { useDesktopPicker } from
|
|
14
|
-
import { extractValidationProps } from
|
|
15
|
-
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from
|
|
16
|
-
import { resolveTimeFormat } from
|
|
17
|
-
import { resolveTimeViewsResponse } from
|
|
6
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
7
|
+
import { TimeField } from "../TimeField/index.js";
|
|
8
|
+
import { useTimePickerDefaultizedProps } from "../TimePicker/shared.js";
|
|
9
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
10
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
11
|
+
import { validateTime } from "../internals/utils/validation/validateTime.js";
|
|
12
|
+
import { ClockIcon } from "../icons/index.js";
|
|
13
|
+
import { useDesktopPicker } from "../internals/hooks/useDesktopPicker/index.js";
|
|
14
|
+
import { extractValidationProps } from "../internals/utils/validation/extractValidationProps.js";
|
|
15
|
+
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from "../timeViewRenderers/index.js";
|
|
16
|
+
import { resolveTimeFormat } from "../internals/utils/time-utils.js";
|
|
17
|
+
import { resolveTimeViewsResponse } from "../internals/utils/date-time-utils.js";
|
|
18
18
|
/**
|
|
19
19
|
* Demos:
|
|
20
20
|
*
|
|
@@ -193,16 +193,16 @@ DesktopTimePicker.propTypes = {
|
|
|
193
193
|
name: PropTypes.string,
|
|
194
194
|
/**
|
|
195
195
|
* Callback fired when the value is accepted.
|
|
196
|
-
* @template TValue The value type.
|
|
197
|
-
* @template TError The validation error type.
|
|
196
|
+
* @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.
|
|
197
|
+
* @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.
|
|
198
198
|
* @param {TValue} value The value that was just accepted.
|
|
199
199
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
200
200
|
*/
|
|
201
201
|
onAccept: PropTypes.func,
|
|
202
202
|
/**
|
|
203
203
|
* Callback fired when the value changes.
|
|
204
|
-
* @template TValue The value type.
|
|
205
|
-
* @template TError The validation error type.
|
|
204
|
+
* @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.
|
|
205
|
+
* @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.
|
|
206
206
|
* @param {TValue} value The new value.
|
|
207
207
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
208
208
|
*/
|
|
@@ -213,13 +213,13 @@ DesktopTimePicker.propTypes = {
|
|
|
213
213
|
*/
|
|
214
214
|
onClose: PropTypes.func,
|
|
215
215
|
/**
|
|
216
|
-
* Callback fired when the error associated
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* @template
|
|
220
|
-
* @template
|
|
221
|
-
* @param {TError} error The
|
|
222
|
-
* @param {TValue} value The value associated
|
|
216
|
+
* Callback fired when the error associated with the current value changes.
|
|
217
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
218
|
+
* This can be used to render an appropriate form error.
|
|
219
|
+
* @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.
|
|
220
|
+
* @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.
|
|
221
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
222
|
+
* @param {TValue} value The value associated with the error.
|
|
223
223
|
*/
|
|
224
224
|
onError: PropTypes.func,
|
|
225
225
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DesktopTimePicker } from
|
|
1
|
+
export { DesktopTimePicker } from "./DesktopTimePicker.js";
|
|
@@ -11,16 +11,16 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
11
11
|
import MenuItem from '@mui/material/MenuItem';
|
|
12
12
|
import MenuList from '@mui/material/MenuList';
|
|
13
13
|
import useForkRef from '@mui/utils/useForkRef';
|
|
14
|
-
import { usePickersTranslations } from
|
|
15
|
-
import { useUtils, useNow } from
|
|
16
|
-
import { createIsAfterIgnoreDatePart } from
|
|
17
|
-
import { PickerViewRoot } from
|
|
18
|
-
import { getDigitalClockUtilityClass } from
|
|
19
|
-
import { useViews } from
|
|
20
|
-
import { DIGITAL_CLOCK_VIEW_HEIGHT } from
|
|
21
|
-
import { useControlledValueWithTimezone } from
|
|
22
|
-
import { singleItemValueManager } from
|
|
23
|
-
import { useClockReferenceDate } from
|
|
14
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
15
|
+
import { useUtils, useNow } from "../internals/hooks/useUtils.js";
|
|
16
|
+
import { createIsAfterIgnoreDatePart } from "../internals/utils/time-utils.js";
|
|
17
|
+
import { PickerViewRoot } from "../internals/components/PickerViewRoot/index.js";
|
|
18
|
+
import { getDigitalClockUtilityClass } from "./digitalClockClasses.js";
|
|
19
|
+
import { useViews } from "../internals/hooks/useViews.js";
|
|
20
|
+
import { DIGITAL_CLOCK_VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
21
|
+
import { useControlledValueWithTimezone } from "../internals/hooks/useValueWithTimezone.js";
|
|
22
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
23
|
+
import { useClockReferenceDate } from "../internals/hooks/useClockReferenceDate.js";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
@@ -336,7 +336,7 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
|
|
|
336
336
|
minutesStep: PropTypes.number,
|
|
337
337
|
/**
|
|
338
338
|
* Callback fired when the value changes.
|
|
339
|
-
* @template TValue The value type.
|
|
339
|
+
* @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.
|
|
340
340
|
* @template TView The view type. Will be one of date or time views.
|
|
341
341
|
* @param {TValue} value The new value.
|
|
342
342
|
* @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DigitalClock } from
|
|
2
|
-
export { digitalClockClasses, getDigitalClockUtilityClass } from
|
|
1
|
+
export { DigitalClock } from "./DigitalClock.js";
|
|
2
|
+
export { digitalClockClasses, getDigitalClockUtilityClass } from "./digitalClockClasses.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LocalizationProvider, MuiPickersAdapterContext } from
|
|
1
|
+
export { LocalizationProvider, MuiPickersAdapterContext } from "./LocalizationProvider.js";
|