@mui/x-date-pickers 7.0.0-alpha.7 → 7.0.0-alpha.9
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.d.ts +4 -21
- package/AdapterDateFns/AdapterDateFns.js +11 -255
- package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +62 -0
- package/AdapterDateFnsBase/AdapterDateFnsBase.js +291 -0
- package/AdapterDateFnsBase/index.d.ts +1 -0
- package/AdapterDateFnsBase/index.js +1 -0
- package/AdapterDateFnsBase/package.json +6 -0
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -0
- package/AdapterDateFnsV3/AdapterDateFnsV3.d.ts +80 -0
- package/AdapterDateFnsV3/AdapterDateFnsV3.js +287 -0
- package/AdapterDateFnsV3/index.d.ts +1 -0
- package/AdapterDateFnsV3/index.js +1 -0
- package/AdapterDateFnsV3/package.json +6 -0
- package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.js +4 -12
- package/CHANGELOG.md +554 -51
- package/DatePicker/DatePicker.js +0 -3
- package/DatePicker/DatePickerToolbar.d.ts +2 -2
- package/DatePicker/DatePickerToolbar.js +2 -10
- package/DateTimePicker/DateTimePicker.js +0 -3
- package/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/DigitalClock/DigitalClock.js +1 -0
- package/DigitalClock/DigitalClock.types.d.ts +5 -0
- package/LocalizationProvider/LocalizationProvider.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +0 -3
- package/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/MobileTimePicker/MobileTimePicker.js +0 -3
- package/MonthCalendar/MonthCalendar.js +0 -3
- package/MonthCalendar/MonthCalendar.types.d.ts +0 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +5 -0
- package/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -3
- package/PickersSectionList/PickersSectionList.js +7 -2
- package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +11 -0
- package/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
- package/PickersTextField/PickersFilledInput/index.d.ts +4 -0
- package/PickersTextField/PickersFilledInput/index.js +2 -0
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +23 -0
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
- package/PickersTextField/PickersInput/PickersInput.d.ts +10 -0
- package/PickersTextField/PickersInput/PickersInput.js +196 -0
- package/{internals/components → PickersTextField}/PickersInput/index.d.ts +2 -2
- package/PickersTextField/PickersInput/index.js +2 -0
- package/PickersTextField/PickersInput/pickersInputClasses.d.ts +22 -0
- package/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +16 -0
- package/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -28
- package/{internals/components/PickersInput/PickersInput.types.d.ts → PickersTextField/PickersInputBase/PickersInputBase.types.d.ts} +3 -13
- package/PickersTextField/PickersInputBase/index.d.ts +4 -0
- package/PickersTextField/PickersInputBase/index.js +2 -0
- package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +31 -0
- package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
- package/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.d.ts +3 -0
- package/{modern/internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +10 -0
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
- package/PickersTextField/PickersOutlinedInput/index.d.ts +4 -0
- package/PickersTextField/PickersOutlinedInput/index.js +2 -0
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +22 -0
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
- package/PickersTextField/PickersTextField.d.ts +3 -0
- package/PickersTextField/PickersTextField.js +258 -0
- package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.d.ts +5 -2
- package/PickersTextField/index.d.ts +8 -0
- package/PickersTextField/index.js +6 -0
- package/PickersTextField/package.json +6 -0
- package/README.md +1 -1
- package/StaticDatePicker/StaticDatePicker.js +0 -3
- package/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/StaticTimePicker/StaticTimePicker.js +0 -3
- package/TimeClock/TimeClock.js +1 -0
- package/TimeClock/TimeClock.types.d.ts +5 -0
- package/TimePicker/TimePicker.js +0 -3
- package/TimePicker/TimePickerToolbar.js +0 -3
- package/YearCalendar/YearCalendar.js +0 -3
- package/YearCalendar/YearCalendar.types.d.ts +0 -3
- package/hooks/useClearableField.js +3 -3
- package/index.d.ts +2 -1
- package/index.js +3 -2
- package/internals/hooks/useField/useField.js +6 -4
- package/internals/hooks/useField/useField.types.d.ts +4 -2
- package/internals/hooks/useField/useField.utils.d.ts +19 -9
- package/internals/hooks/useField/useField.utils.js +73 -26
- package/internals/hooks/useField/useFieldCharacterEditing.d.ts +2 -1
- package/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
- package/internals/hooks/useField/useFieldState.d.ts +1 -0
- package/internals/hooks/useField/useFieldState.js +9 -7
- package/internals/hooks/usePicker/index.d.ts +1 -1
- package/internals/hooks/usePicker/usePickerValue.js +2 -2
- package/internals/hooks/useUtils.js +2 -2
- package/internals/hooks/useViews.js +2 -2
- package/internals/index.d.ts +9 -3
- package/internals/index.js +6 -2
- package/internals/models/common.d.ts +1 -1
- package/internals/models/helpers.d.ts +1 -0
- package/internals/models/props/basePickerProps.d.ts +0 -3
- package/internals/models/props/toolbar.d.ts +0 -3
- package/internals/utils/valueManagers.js +2 -2
- package/internals/utils/views.js +1 -1
- package/legacy/AdapterDateFns/AdapterDateFns.js +222 -458
- package/legacy/AdapterDateFnsBase/AdapterDateFnsBase.js +293 -0
- package/legacy/AdapterDateFnsBase/index.js +1 -0
- package/legacy/AdapterDateFnsV3/AdapterDateFnsV3.js +306 -0
- package/legacy/AdapterDateFnsV3/index.js +1 -0
- package/legacy/AdapterLuxon/AdapterLuxon.js +4 -12
- package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +5 -6
- package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +5 -6
- package/legacy/DatePicker/DatePicker.js +0 -3
- package/legacy/DatePicker/DatePickerToolbar.js +2 -10
- package/legacy/DateTimePicker/DateTimePicker.js +0 -3
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/legacy/DigitalClock/DigitalClock.js +1 -0
- package/legacy/LocalizationProvider/LocalizationProvider.js +1 -1
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -3
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -3
- package/legacy/MonthCalendar/MonthCalendar.js +0 -3
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
- package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/legacy/PickersSectionList/PickersSectionList.js +7 -2
- package/legacy/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +99 -26
- package/legacy/PickersTextField/PickersFilledInput/index.js +2 -0
- package/legacy/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
- package/legacy/PickersTextField/PickersInput/PickersInput.js +190 -0
- package/legacy/PickersTextField/PickersInput/index.js +2 -0
- package/legacy/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
- package/legacy/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -28
- package/legacy/PickersTextField/PickersInputBase/index.js +2 -0
- package/legacy/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
- package/legacy/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +7 -1
- package/legacy/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +183 -0
- package/legacy/PickersTextField/PickersOutlinedInput/index.js +2 -0
- package/legacy/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
- package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -8
- package/legacy/PickersTextField/index.js +6 -0
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -3
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -3
- package/legacy/TimeClock/TimeClock.js +1 -0
- package/legacy/TimePicker/TimePicker.js +0 -3
- package/legacy/TimePicker/TimePickerToolbar.js +0 -3
- package/legacy/YearCalendar/YearCalendar.js +0 -3
- package/legacy/hooks/useClearableField.js +3 -3
- package/legacy/index.js +3 -2
- package/legacy/internals/hooks/useField/useField.js +6 -4
- package/legacy/internals/hooks/useField/useField.utils.js +76 -25
- package/legacy/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
- package/legacy/internals/hooks/useField/useFieldState.js +15 -11
- package/legacy/internals/hooks/usePicker/usePickerValue.js +2 -2
- package/legacy/internals/hooks/useUtils.js +2 -2
- package/legacy/internals/hooks/useViews.js +2 -2
- package/legacy/internals/index.js +6 -2
- package/legacy/internals/utils/valueManagers.js +2 -2
- package/legacy/internals/utils/views.js +1 -1
- package/legacy/locales/index.js +1 -0
- package/locales/enUS.d.ts +1 -1
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/mk.d.ts +1 -1
- package/locales/utils/getPickersLocalization.d.ts +1 -1
- package/modern/AdapterDateFns/AdapterDateFns.js +11 -254
- package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +290 -0
- package/modern/AdapterDateFnsBase/index.js +1 -0
- package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +287 -0
- package/modern/AdapterDateFnsV3/index.js +1 -0
- package/modern/AdapterLuxon/AdapterLuxon.js +3 -11
- package/modern/DatePicker/DatePicker.js +0 -3
- package/modern/DatePicker/DatePickerToolbar.js +2 -10
- package/modern/DateTimePicker/DateTimePicker.js +0 -3
- package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/modern/DigitalClock/DigitalClock.js +1 -0
- package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -3
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -3
- package/modern/MonthCalendar/MonthCalendar.js +0 -3
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/modern/PickersSectionList/PickersSectionList.js +7 -2
- package/modern/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
- package/modern/PickersTextField/PickersFilledInput/index.js +2 -0
- package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
- package/modern/PickersTextField/PickersInput/PickersInput.js +196 -0
- package/modern/PickersTextField/PickersInput/index.js +2 -0
- package/modern/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
- package/modern/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -28
- package/modern/PickersTextField/PickersInputBase/index.js +2 -0
- package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
- package/{internals/components/PickersInput → modern/PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
- package/modern/PickersTextField/PickersOutlinedInput/index.js +2 -0
- package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
- package/modern/PickersTextField/PickersTextField.js +258 -0
- package/modern/PickersTextField/index.js +6 -0
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -3
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -3
- package/modern/TimeClock/TimeClock.js +1 -0
- package/modern/TimePicker/TimePicker.js +0 -3
- package/modern/TimePicker/TimePickerToolbar.js +0 -3
- package/modern/YearCalendar/YearCalendar.js +0 -3
- package/modern/hooks/useClearableField.js +3 -3
- package/modern/index.js +3 -2
- package/modern/internals/hooks/useField/useField.js +5 -3
- package/modern/internals/hooks/useField/useField.utils.js +73 -26
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
- package/modern/internals/hooks/useField/useFieldState.js +9 -7
- package/modern/internals/hooks/usePicker/usePickerValue.js +2 -2
- package/modern/internals/hooks/useUtils.js +2 -2
- package/modern/internals/hooks/useViews.js +2 -2
- package/modern/internals/index.js +6 -2
- package/modern/internals/utils/valueManagers.js +2 -2
- package/modern/internals/utils/views.js +1 -1
- package/modern/locales/index.js +1 -0
- package/node/AdapterDateFns/AdapterDateFns.js +11 -254
- package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +298 -0
- package/node/AdapterDateFnsBase/index.js +12 -0
- package/node/AdapterDateFnsV3/AdapterDateFnsV3.js +295 -0
- package/node/AdapterDateFnsV3/index.js +12 -0
- package/node/AdapterLuxon/AdapterLuxon.js +3 -11
- package/node/DatePicker/DatePicker.js +0 -3
- package/node/DatePicker/DatePickerToolbar.js +0 -7
- package/node/DateTimePicker/DateTimePicker.js +0 -3
- package/node/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/node/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/node/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/node/DigitalClock/DigitalClock.js +1 -0
- package/node/LocalizationProvider/LocalizationProvider.js +1 -1
- package/node/MobileDatePicker/MobileDatePicker.js +0 -3
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/node/MobileTimePicker/MobileTimePicker.js +0 -3
- package/node/MonthCalendar/MonthCalendar.js +0 -3
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/node/PickersSectionList/PickersSectionList.js +7 -2
- package/node/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +102 -30
- package/node/PickersTextField/PickersFilledInput/index.js +25 -0
- package/node/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +16 -0
- package/node/PickersTextField/PickersInput/PickersInput.js +204 -0
- package/node/{internals/components → PickersTextField}/PickersInput/index.js +0 -7
- package/node/PickersTextField/PickersInput/pickersInputClasses.js +16 -0
- package/node/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +105 -28
- package/node/PickersTextField/PickersInputBase/index.js +25 -0
- package/node/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +14 -0
- package/node/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +197 -0
- package/node/PickersTextField/PickersOutlinedInput/index.js +25 -0
- package/node/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +16 -0
- package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -9
- package/node/PickersTextField/index.js +78 -0
- package/node/StaticDatePicker/StaticDatePicker.js +0 -3
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/node/StaticTimePicker/StaticTimePicker.js +0 -3
- package/node/TimeClock/TimeClock.js +1 -0
- package/node/TimePicker/TimePicker.js +0 -3
- package/node/TimePicker/TimePickerToolbar.js +0 -3
- package/node/YearCalendar/YearCalendar.js +0 -3
- package/node/hooks/useClearableField.js +3 -3
- package/node/index.js +17 -5
- package/node/internals/hooks/useField/useField.js +5 -3
- package/node/internals/hooks/useField/useField.utils.js +78 -27
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +11 -7
- package/node/internals/hooks/useField/useFieldState.js +8 -6
- package/node/internals/hooks/usePicker/usePickerValue.js +2 -2
- package/node/internals/hooks/useUtils.js +2 -2
- package/node/internals/hooks/useViews.js +2 -2
- package/node/internals/index.js +47 -1
- package/node/internals/utils/valueManagers.js +2 -2
- package/node/internals/utils/views.js +1 -1
- package/node/locales/index.js +11 -0
- package/package.json +8 -8
- package/themeAugmentation/components.d.ts +26 -0
- package/themeAugmentation/overrides.d.ts +16 -0
- package/themeAugmentation/props.d.ts +16 -0
- package/internals/components/PickersInput/PickersFilledInput.d.ts +0 -3
- package/internals/components/PickersInput/PickersInput.d.ts +0 -15
- package/internals/components/PickersInput/PickersOutlinedInput.d.ts +0 -3
- package/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
- package/internals/components/PickersInput/PickersStandardInput.d.ts +0 -3
- package/internals/components/PickersInput/PickersStandardInput.js +0 -123
- package/internals/components/PickersInput/index.js +0 -3
- package/internals/components/PickersInput/pickersInputClasses.d.ts +0 -84
- package/internals/components/PickersInput/pickersInputClasses.js +0 -18
- package/internals/components/PickersTextField/PickersTextField.d.ts +0 -2
- package/internals/components/PickersTextField/PickersTextField.js +0 -138
- package/internals/components/PickersTextField/index.d.ts +0 -1
- package/internals/components/PickersTextField/index.js +0 -1
- package/legacy/internals/components/PickersInput/PickersOutlinedInput.js +0 -110
- package/legacy/internals/components/PickersInput/PickersStandardInput.js +0 -117
- package/legacy/internals/components/PickersInput/index.js +0 -3
- package/legacy/internals/components/PickersInput/pickersInputClasses.js +0 -18
- package/legacy/internals/components/PickersTextField/index.js +0 -1
- package/modern/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
- package/modern/internals/components/PickersInput/PickersStandardInput.js +0 -123
- package/modern/internals/components/PickersInput/index.js +0 -3
- package/modern/internals/components/PickersInput/pickersInputClasses.js +0 -18
- package/modern/internals/components/PickersTextField/PickersTextField.js +0 -138
- package/modern/internals/components/PickersTextField/index.js +0 -1
- package/node/internals/components/PickersInput/PickersOutlinedInput.js +0 -125
- package/node/internals/components/PickersInput/PickersStandardInput.js +0 -132
- package/node/internals/components/PickersInput/pickersInputClasses.js +0 -29
- package/node/internals/components/PickersTextField/index.js +0 -12
- /package/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.d.ts +0 -0
- /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
- /package/legacy/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/legacy/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
- /package/modern/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/modern/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/modern/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
- /package/node/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/node/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AdapterDateFns = void 0;
|
|
7
|
+
var _addDays = require("date-fns/addDays");
|
|
8
|
+
var _addSeconds = require("date-fns/addSeconds");
|
|
9
|
+
var _addMinutes = require("date-fns/addMinutes");
|
|
10
|
+
var _addHours = require("date-fns/addHours");
|
|
11
|
+
var _addWeeks = require("date-fns/addWeeks");
|
|
12
|
+
var _addMonths = require("date-fns/addMonths");
|
|
13
|
+
var _addYears = require("date-fns/addYears");
|
|
14
|
+
var _endOfDay = require("date-fns/endOfDay");
|
|
15
|
+
var _endOfWeek = require("date-fns/endOfWeek");
|
|
16
|
+
var _endOfYear = require("date-fns/endOfYear");
|
|
17
|
+
var _format = require("date-fns/format");
|
|
18
|
+
var _getDate = require("date-fns/getDate");
|
|
19
|
+
var _getDaysInMonth = require("date-fns/getDaysInMonth");
|
|
20
|
+
var _getHours = require("date-fns/getHours");
|
|
21
|
+
var _getMinutes = require("date-fns/getMinutes");
|
|
22
|
+
var _getMonth = require("date-fns/getMonth");
|
|
23
|
+
var _getSeconds = require("date-fns/getSeconds");
|
|
24
|
+
var _getMilliseconds = require("date-fns/getMilliseconds");
|
|
25
|
+
var _getWeek = require("date-fns/getWeek");
|
|
26
|
+
var _getYear = require("date-fns/getYear");
|
|
27
|
+
var _isAfter = require("date-fns/isAfter");
|
|
28
|
+
var _isBefore = require("date-fns/isBefore");
|
|
29
|
+
var _isEqual = require("date-fns/isEqual");
|
|
30
|
+
var _isSameDay = require("date-fns/isSameDay");
|
|
31
|
+
var _isSameYear = require("date-fns/isSameYear");
|
|
32
|
+
var _isSameMonth = require("date-fns/isSameMonth");
|
|
33
|
+
var _isSameHour = require("date-fns/isSameHour");
|
|
34
|
+
var _isValid = require("date-fns/isValid");
|
|
35
|
+
var _parse = require("date-fns/parse");
|
|
36
|
+
var _setDate = require("date-fns/setDate");
|
|
37
|
+
var _setHours = require("date-fns/setHours");
|
|
38
|
+
var _setMinutes = require("date-fns/setMinutes");
|
|
39
|
+
var _setMonth = require("date-fns/setMonth");
|
|
40
|
+
var _setSeconds = require("date-fns/setSeconds");
|
|
41
|
+
var _setMilliseconds = require("date-fns/setMilliseconds");
|
|
42
|
+
var _setYear = require("date-fns/setYear");
|
|
43
|
+
var _startOfDay = require("date-fns/startOfDay");
|
|
44
|
+
var _startOfMonth = require("date-fns/startOfMonth");
|
|
45
|
+
var _endOfMonth = require("date-fns/endOfMonth");
|
|
46
|
+
var _startOfWeek = require("date-fns/startOfWeek");
|
|
47
|
+
var _startOfYear = require("date-fns/startOfYear");
|
|
48
|
+
var _isWithinInterval = require("date-fns/isWithinInterval");
|
|
49
|
+
var _enUS = require("date-fns/locale/en-US");
|
|
50
|
+
var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
|
|
51
|
+
/* eslint-disable class-methods-use-this */
|
|
52
|
+
// TODO remove when date-fns-v3 is the default
|
|
53
|
+
// @ts-nocheck
|
|
54
|
+
|
|
55
|
+
// @ts-ignore TODO remove when date-fns-v3 is the default
|
|
56
|
+
|
|
57
|
+
// date-fns v2 does not export types
|
|
58
|
+
// @ts-ignore TODO remove when date-fns-v3 is the default
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Based on `@date-io/date-fns`
|
|
62
|
+
*
|
|
63
|
+
* MIT License
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) 2017 Dmitriy Kovalenko
|
|
66
|
+
*
|
|
67
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
68
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
69
|
+
* in the Software without restriction, including without limitation the rights
|
|
70
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
71
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
72
|
+
* furnished to do so, subject to the following conditions:
|
|
73
|
+
*
|
|
74
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
75
|
+
* copies or substantial portions of the Software.
|
|
76
|
+
*
|
|
77
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
80
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
81
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
82
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
83
|
+
* SOFTWARE.
|
|
84
|
+
*/
|
|
85
|
+
class AdapterDateFns extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
86
|
+
constructor({
|
|
87
|
+
locale,
|
|
88
|
+
formats
|
|
89
|
+
} = {}) {
|
|
90
|
+
if (typeof _addDays.addDays !== 'function') {
|
|
91
|
+
throw new Error([`MUI: The \`date-fns\` package v2.x is not compatible with this adapter.`, 'Please, install v3.x of the package or use the `AdapterDateFns` instead.'].join('\n'));
|
|
92
|
+
}
|
|
93
|
+
if (!_format.longFormatters) {
|
|
94
|
+
throw new Error('MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.');
|
|
95
|
+
}
|
|
96
|
+
super({
|
|
97
|
+
locale: locale ?? _enUS.enUS,
|
|
98
|
+
formats,
|
|
99
|
+
longFormatters: _format.longFormatters
|
|
100
|
+
});
|
|
101
|
+
this.parse = (value, format) => {
|
|
102
|
+
if (value === '') {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return (0, _parse.parse)(value, format, new Date(), {
|
|
106
|
+
locale: this.locale
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
this.isValid = value => {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
return (0, _isValid.isValid)(value);
|
|
114
|
+
};
|
|
115
|
+
this.format = (value, formatKey) => {
|
|
116
|
+
return this.formatByString(value, this.formats[formatKey]);
|
|
117
|
+
};
|
|
118
|
+
this.formatByString = (value, formatString) => {
|
|
119
|
+
return (0, _format.format)(value, formatString, {
|
|
120
|
+
locale: this.locale
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
this.isEqual = (value, comparing) => {
|
|
124
|
+
if (value === null && comparing === null) {
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
if (value === null || comparing === null) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
return (0, _isEqual.isEqual)(value, comparing);
|
|
131
|
+
};
|
|
132
|
+
this.isSameYear = (value, comparing) => {
|
|
133
|
+
return (0, _isSameYear.isSameYear)(value, comparing);
|
|
134
|
+
};
|
|
135
|
+
this.isSameMonth = (value, comparing) => {
|
|
136
|
+
return (0, _isSameMonth.isSameMonth)(value, comparing);
|
|
137
|
+
};
|
|
138
|
+
this.isSameDay = (value, comparing) => {
|
|
139
|
+
return (0, _isSameDay.isSameDay)(value, comparing);
|
|
140
|
+
};
|
|
141
|
+
this.isSameHour = (value, comparing) => {
|
|
142
|
+
return (0, _isSameHour.isSameHour)(value, comparing);
|
|
143
|
+
};
|
|
144
|
+
this.isAfter = (value, comparing) => {
|
|
145
|
+
return (0, _isAfter.isAfter)(value, comparing);
|
|
146
|
+
};
|
|
147
|
+
this.isAfterYear = (value, comparing) => {
|
|
148
|
+
return (0, _isAfter.isAfter)(value, (0, _endOfYear.endOfYear)(comparing));
|
|
149
|
+
};
|
|
150
|
+
this.isAfterDay = (value, comparing) => {
|
|
151
|
+
return (0, _isAfter.isAfter)(value, (0, _endOfDay.endOfDay)(comparing));
|
|
152
|
+
};
|
|
153
|
+
this.isBefore = (value, comparing) => {
|
|
154
|
+
return (0, _isBefore.isBefore)(value, comparing);
|
|
155
|
+
};
|
|
156
|
+
this.isBeforeYear = (value, comparing) => {
|
|
157
|
+
return (0, _isBefore.isBefore)(value, this.startOfYear(comparing));
|
|
158
|
+
};
|
|
159
|
+
this.isBeforeDay = (value, comparing) => {
|
|
160
|
+
return (0, _isBefore.isBefore)(value, this.startOfDay(comparing));
|
|
161
|
+
};
|
|
162
|
+
this.isWithinRange = (value, [start, end]) => {
|
|
163
|
+
return (0, _isWithinInterval.isWithinInterval)(value, {
|
|
164
|
+
start,
|
|
165
|
+
end
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
this.startOfYear = value => {
|
|
169
|
+
return (0, _startOfYear.startOfYear)(value);
|
|
170
|
+
};
|
|
171
|
+
this.startOfMonth = value => {
|
|
172
|
+
return (0, _startOfMonth.startOfMonth)(value);
|
|
173
|
+
};
|
|
174
|
+
this.startOfWeek = value => {
|
|
175
|
+
return (0, _startOfWeek.startOfWeek)(value, {
|
|
176
|
+
locale: this.locale
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
this.startOfDay = value => {
|
|
180
|
+
return (0, _startOfDay.startOfDay)(value);
|
|
181
|
+
};
|
|
182
|
+
this.endOfYear = value => {
|
|
183
|
+
return (0, _endOfYear.endOfYear)(value);
|
|
184
|
+
};
|
|
185
|
+
this.endOfMonth = value => {
|
|
186
|
+
return (0, _endOfMonth.endOfMonth)(value);
|
|
187
|
+
};
|
|
188
|
+
this.endOfWeek = value => {
|
|
189
|
+
return (0, _endOfWeek.endOfWeek)(value, {
|
|
190
|
+
locale: this.locale
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
this.endOfDay = value => {
|
|
194
|
+
return (0, _endOfDay.endOfDay)(value);
|
|
195
|
+
};
|
|
196
|
+
this.addYears = (value, amount) => {
|
|
197
|
+
return (0, _addYears.addYears)(value, amount);
|
|
198
|
+
};
|
|
199
|
+
this.addMonths = (value, amount) => {
|
|
200
|
+
return (0, _addMonths.addMonths)(value, amount);
|
|
201
|
+
};
|
|
202
|
+
this.addWeeks = (value, amount) => {
|
|
203
|
+
return (0, _addWeeks.addWeeks)(value, amount);
|
|
204
|
+
};
|
|
205
|
+
this.addDays = (value, amount) => {
|
|
206
|
+
return (0, _addDays.addDays)(value, amount);
|
|
207
|
+
};
|
|
208
|
+
this.addHours = (value, amount) => {
|
|
209
|
+
return (0, _addHours.addHours)(value, amount);
|
|
210
|
+
};
|
|
211
|
+
this.addMinutes = (value, amount) => {
|
|
212
|
+
return (0, _addMinutes.addMinutes)(value, amount);
|
|
213
|
+
};
|
|
214
|
+
this.addSeconds = (value, amount) => {
|
|
215
|
+
return (0, _addSeconds.addSeconds)(value, amount);
|
|
216
|
+
};
|
|
217
|
+
this.getYear = value => {
|
|
218
|
+
return (0, _getYear.getYear)(value);
|
|
219
|
+
};
|
|
220
|
+
this.getMonth = value => {
|
|
221
|
+
return (0, _getMonth.getMonth)(value);
|
|
222
|
+
};
|
|
223
|
+
this.getDate = value => {
|
|
224
|
+
return (0, _getDate.getDate)(value);
|
|
225
|
+
};
|
|
226
|
+
this.getHours = value => {
|
|
227
|
+
return (0, _getHours.getHours)(value);
|
|
228
|
+
};
|
|
229
|
+
this.getMinutes = value => {
|
|
230
|
+
return (0, _getMinutes.getMinutes)(value);
|
|
231
|
+
};
|
|
232
|
+
this.getSeconds = value => {
|
|
233
|
+
return (0, _getSeconds.getSeconds)(value);
|
|
234
|
+
};
|
|
235
|
+
this.getMilliseconds = value => {
|
|
236
|
+
return (0, _getMilliseconds.getMilliseconds)(value);
|
|
237
|
+
};
|
|
238
|
+
this.setYear = (value, year) => {
|
|
239
|
+
return (0, _setYear.setYear)(value, year);
|
|
240
|
+
};
|
|
241
|
+
this.setMonth = (value, month) => {
|
|
242
|
+
return (0, _setMonth.setMonth)(value, month);
|
|
243
|
+
};
|
|
244
|
+
this.setDate = (value, date) => {
|
|
245
|
+
return (0, _setDate.setDate)(value, date);
|
|
246
|
+
};
|
|
247
|
+
this.setHours = (value, hours) => {
|
|
248
|
+
return (0, _setHours.setHours)(value, hours);
|
|
249
|
+
};
|
|
250
|
+
this.setMinutes = (value, minutes) => {
|
|
251
|
+
return (0, _setMinutes.setMinutes)(value, minutes);
|
|
252
|
+
};
|
|
253
|
+
this.setSeconds = (value, seconds) => {
|
|
254
|
+
return (0, _setSeconds.setSeconds)(value, seconds);
|
|
255
|
+
};
|
|
256
|
+
this.setMilliseconds = (value, milliseconds) => {
|
|
257
|
+
return (0, _setMilliseconds.setMilliseconds)(value, milliseconds);
|
|
258
|
+
};
|
|
259
|
+
this.getDaysInMonth = value => {
|
|
260
|
+
return (0, _getDaysInMonth.getDaysInMonth)(value);
|
|
261
|
+
};
|
|
262
|
+
this.getWeekArray = value => {
|
|
263
|
+
const start = this.startOfWeek(this.startOfMonth(value));
|
|
264
|
+
const end = this.endOfWeek(this.endOfMonth(value));
|
|
265
|
+
let count = 0;
|
|
266
|
+
let current = start;
|
|
267
|
+
const nestedWeeks = [];
|
|
268
|
+
while (this.isBefore(current, end)) {
|
|
269
|
+
const weekNumber = Math.floor(count / 7);
|
|
270
|
+
nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
|
|
271
|
+
nestedWeeks[weekNumber].push(current);
|
|
272
|
+
current = this.addDays(current, 1);
|
|
273
|
+
count += 1;
|
|
274
|
+
}
|
|
275
|
+
return nestedWeeks;
|
|
276
|
+
};
|
|
277
|
+
this.getWeekNumber = value => {
|
|
278
|
+
return (0, _getWeek.getWeek)(value, {
|
|
279
|
+
locale: this.locale
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
this.getYearRange = ([start, end]) => {
|
|
283
|
+
const startDate = this.startOfYear(start);
|
|
284
|
+
const endDate = this.endOfYear(end);
|
|
285
|
+
const years = [];
|
|
286
|
+
let current = startDate;
|
|
287
|
+
while (this.isBefore(current, endDate)) {
|
|
288
|
+
years.push(current);
|
|
289
|
+
current = this.addYears(current, 1);
|
|
290
|
+
}
|
|
291
|
+
return years;
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.AdapterDateFns = AdapterDateFns;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AdapterDateFns", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AdapterDateFnsV.AdapterDateFns;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _AdapterDateFnsV = require("./AdapterDateFnsV3");
|
|
@@ -345,10 +345,7 @@ class AdapterLuxon {
|
|
|
345
345
|
return value.startOf('month');
|
|
346
346
|
};
|
|
347
347
|
this.startOfWeek = value => {
|
|
348
|
-
return value.startOf('week',
|
|
349
|
-
// TODO: remove when `@types/luxon` add support for the parameter.
|
|
350
|
-
// @ts-ignore
|
|
351
|
-
{
|
|
348
|
+
return value.startOf('week', {
|
|
352
349
|
useLocaleWeeks: true
|
|
353
350
|
});
|
|
354
351
|
};
|
|
@@ -362,10 +359,7 @@ class AdapterLuxon {
|
|
|
362
359
|
return value.endOf('month');
|
|
363
360
|
};
|
|
364
361
|
this.endOfWeek = value => {
|
|
365
|
-
return value.endOf('week',
|
|
366
|
-
// TODO: remove when `@types/luxon` add support for the parameter.
|
|
367
|
-
// @ts-ignore
|
|
368
|
-
{
|
|
362
|
+
return value.endOf('week', {
|
|
369
363
|
useLocaleWeeks: true
|
|
370
364
|
});
|
|
371
365
|
};
|
|
@@ -487,9 +481,7 @@ class AdapterLuxon {
|
|
|
487
481
|
return weeks;
|
|
488
482
|
};
|
|
489
483
|
this.getWeekNumber = value => {
|
|
490
|
-
|
|
491
|
-
// @ts-ignore
|
|
492
|
-
return value.localeWeekNumber ?? value.weekNumber;
|
|
484
|
+
return value.localWeekNumber ?? value.weekNumber;
|
|
493
485
|
};
|
|
494
486
|
this.getYearRange = ([start, end]) => {
|
|
495
487
|
const startDate = this.startOfYear(start);
|
|
@@ -64,9 +64,6 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
64
64
|
* - the `input` element if there is a field rendered.
|
|
65
65
|
*/
|
|
66
66
|
autoFocus: _propTypes.default.bool,
|
|
67
|
-
/**
|
|
68
|
-
* Class name applied to the root element.
|
|
69
|
-
*/
|
|
70
67
|
className: _propTypes.default.string,
|
|
71
68
|
/**
|
|
72
69
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -35,10 +35,6 @@ const DatePickerToolbarRoot = (0, _styles.styled)(_PickersToolbar.PickersToolbar
|
|
|
35
35
|
slot: 'Root',
|
|
36
36
|
overridesResolver: (_, styles) => styles.root
|
|
37
37
|
})({});
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @ignore - do not document.
|
|
41
|
-
*/
|
|
42
38
|
const DatePickerToolbarTitle = (0, _styles.styled)(_Typography.default, {
|
|
43
39
|
name: 'MuiDatePickerToolbar',
|
|
44
40
|
slot: 'Title',
|
|
@@ -106,9 +102,6 @@ process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
|
|
|
106
102
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
107
103
|
// ----------------------------------------------------------------------
|
|
108
104
|
classes: _propTypes.default.object,
|
|
109
|
-
/**
|
|
110
|
-
* className applied to the root component.
|
|
111
|
-
*/
|
|
112
105
|
className: _propTypes.default.string,
|
|
113
106
|
disabled: _propTypes.default.bool,
|
|
114
107
|
/**
|
|
@@ -74,9 +74,6 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
74
74
|
* - the `input` element if there is a field rendered.
|
|
75
75
|
*/
|
|
76
76
|
autoFocus: _propTypes.default.bool,
|
|
77
|
-
/**
|
|
78
|
-
* Class name applied to the root element.
|
|
79
|
-
*/
|
|
80
77
|
className: _propTypes.default.string,
|
|
81
78
|
/**
|
|
82
79
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -316,9 +316,6 @@ process.env.NODE_ENV !== "production" ? DateTimePickerToolbar.propTypes = {
|
|
|
316
316
|
* Override or extend the styles applied to the component.
|
|
317
317
|
*/
|
|
318
318
|
classes: _propTypes.default.object,
|
|
319
|
-
/**
|
|
320
|
-
* className applied to the root component.
|
|
321
|
-
*/
|
|
322
319
|
className: _propTypes.default.string,
|
|
323
320
|
disabled: _propTypes.default.bool,
|
|
324
321
|
/**
|
|
@@ -85,9 +85,6 @@ DesktopDatePicker.propTypes = {
|
|
|
85
85
|
* - the `input` element if there is a field rendered.
|
|
86
86
|
*/
|
|
87
87
|
autoFocus: _propTypes.default.bool,
|
|
88
|
-
/**
|
|
89
|
-
* Class name applied to the root element.
|
|
90
|
-
*/
|
|
91
88
|
className: _propTypes.default.string,
|
|
92
89
|
/**
|
|
93
90
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -133,9 +133,6 @@ DesktopDateTimePicker.propTypes = {
|
|
|
133
133
|
* - the `input` element if there is a field rendered.
|
|
134
134
|
*/
|
|
135
135
|
autoFocus: _propTypes.default.bool,
|
|
136
|
-
/**
|
|
137
|
-
* Class name applied to the root element.
|
|
138
|
-
*/
|
|
139
136
|
className: _propTypes.default.string,
|
|
140
137
|
/**
|
|
141
138
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -116,9 +116,6 @@ DesktopTimePicker.propTypes = {
|
|
|
116
116
|
* - the `input` element if there is a field rendered.
|
|
117
117
|
*/
|
|
118
118
|
autoFocus: _propTypes.default.bool,
|
|
119
|
-
/**
|
|
120
|
-
* Class name applied to the root element.
|
|
121
|
-
*/
|
|
122
119
|
className: _propTypes.default.string,
|
|
123
120
|
/**
|
|
124
121
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -426,6 +426,7 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
|
|
|
426
426
|
view: _propTypes.default.oneOf(['hours']),
|
|
427
427
|
/**
|
|
428
428
|
* Available views.
|
|
429
|
+
* @default ['hours']
|
|
429
430
|
*/
|
|
430
431
|
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['hours']))
|
|
431
432
|
} : void 0;
|
|
@@ -70,7 +70,7 @@ const LocalizationProvider = exports.LocalizationProvider = function Localizatio
|
|
|
70
70
|
instance: dateLibInstance
|
|
71
71
|
});
|
|
72
72
|
if (!adapter.isMUIAdapter) {
|
|
73
|
-
throw new Error(['MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation'].join(`\n`));
|
|
73
|
+
throw new Error(['MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation'].join(`\n`));
|
|
74
74
|
}
|
|
75
75
|
return adapter;
|
|
76
76
|
}, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentUtils]);
|
|
@@ -82,9 +82,6 @@ MobileDatePicker.propTypes = {
|
|
|
82
82
|
* - the `input` element if there is a field rendered.
|
|
83
83
|
*/
|
|
84
84
|
autoFocus: _propTypes.default.bool,
|
|
85
|
-
/**
|
|
86
|
-
* Class name applied to the root element.
|
|
87
|
-
*/
|
|
88
85
|
className: _propTypes.default.string,
|
|
89
86
|
/**
|
|
90
87
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -102,9 +102,6 @@ MobileDateTimePicker.propTypes = {
|
|
|
102
102
|
* - the `input` element if there is a field rendered.
|
|
103
103
|
*/
|
|
104
104
|
autoFocus: _propTypes.default.bool,
|
|
105
|
-
/**
|
|
106
|
-
* Class name applied to the root element.
|
|
107
|
-
*/
|
|
108
105
|
className: _propTypes.default.string,
|
|
109
106
|
/**
|
|
110
107
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -95,9 +95,6 @@ MobileTimePicker.propTypes = {
|
|
|
95
95
|
* - the `input` element if there is a field rendered.
|
|
96
96
|
*/
|
|
97
97
|
autoFocus: _propTypes.default.bool,
|
|
98
|
-
/**
|
|
99
|
-
* Class name applied to the root element.
|
|
100
|
-
*/
|
|
101
98
|
className: _propTypes.default.string,
|
|
102
99
|
/**
|
|
103
100
|
* If `true`, the popover or modal will close after submitting the full date.
|
|
@@ -249,9 +249,6 @@ process.env.NODE_ENV !== "production" ? MonthCalendar.propTypes = {
|
|
|
249
249
|
* Override or extend the styles applied to the component.
|
|
250
250
|
*/
|
|
251
251
|
classes: _propTypes.default.object,
|
|
252
|
-
/**
|
|
253
|
-
* className applied to the root element.
|
|
254
|
-
*/
|
|
255
252
|
className: _propTypes.default.string,
|
|
256
253
|
/**
|
|
257
254
|
* The default selected value.
|
|
@@ -495,6 +495,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
|
495
495
|
view: _propTypes.default.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),
|
|
496
496
|
/**
|
|
497
497
|
* Available views.
|
|
498
|
+
* @default ['hours', 'minutes']
|
|
498
499
|
*/
|
|
499
500
|
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['hours', 'meridiem', 'minutes', 'seconds']).isRequired)
|
|
500
501
|
} : void 0;
|
|
@@ -238,9 +238,6 @@ process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
|
|
|
238
238
|
* Override or extend the styles applied to the component.
|
|
239
239
|
*/
|
|
240
240
|
classes: _propTypes.default.object,
|
|
241
|
-
/**
|
|
242
|
-
* className applied to the root element.
|
|
243
|
-
*/
|
|
244
241
|
className: _propTypes.default.string,
|
|
245
242
|
currentMonth: _propTypes.default.any.isRequired,
|
|
246
243
|
disabled: _propTypes.default.bool,
|
|
@@ -13,6 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _utils = require("@mui/base/utils");
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
16
|
+
var _styles = require("@mui/material/styles");
|
|
16
17
|
var _pickersSectionListClasses = require("./pickersSectionListClasses");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const _excluded = ["slots", "slotProps", "elements", "sectionListRef"];
|
|
@@ -112,7 +113,11 @@ function PickersSection(props) {
|
|
|
112
113
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(SectionSeparator, (0, _extends2.default)({}, sectionSeparatorBeforeProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(SectionContent, (0, _extends2.default)({}, sectionContentProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(SectionSeparator, (0, _extends2.default)({}, sectionSeparatorAfterProps))]
|
|
113
114
|
}));
|
|
114
115
|
}
|
|
115
|
-
const PickersSectionList = exports.PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionList(
|
|
116
|
+
const PickersSectionList = exports.PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionList(inProps, ref) {
|
|
117
|
+
const props = (0, _styles.useThemeProps)({
|
|
118
|
+
props: inProps,
|
|
119
|
+
name: 'MuiPickersSectionList'
|
|
120
|
+
});
|
|
116
121
|
const {
|
|
117
122
|
slots,
|
|
118
123
|
slotProps,
|
|
@@ -125,7 +130,7 @@ const PickersSectionList = exports.PickersSectionList = /*#__PURE__*/React.forwa
|
|
|
125
130
|
const handleRootRef = (0, _useForkRef.default)(ref, rootRef);
|
|
126
131
|
const getRoot = methodName => {
|
|
127
132
|
if (!rootRef.current) {
|
|
128
|
-
throw new Error(`MUI: Cannot call sectionListRef.${methodName} before the mount of the component
|
|
133
|
+
throw new Error(`MUI X: Cannot call sectionListRef.${methodName} before the mount of the component.`);
|
|
129
134
|
}
|
|
130
135
|
return rootRef.current;
|
|
131
136
|
};
|