@mui/x-date-pickers 9.5.0 → 9.7.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.d.mts +2 -2
- package/AdapterDateFns/AdapterDateFns.d.ts +2 -2
- package/AdapterDateFnsBase/AdapterDateFnsBase.d.mts +2 -2
- package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +2 -2
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.mts +2 -2
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +2 -2
- package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.mts +1 -1
- package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +1 -1
- package/AdapterDateFnsV2/AdapterDateFnsV2.d.mts +1 -1
- package/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.mts +29 -29
- package/AdapterDayjs/AdapterDayjs.d.ts +29 -29
- package/AdapterDayjs/AdapterDayjs.mjs +1 -0
- package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.d.mts +4 -4
- package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.d.ts +4 -4
- package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.mjs +1 -0
- package/AdapterLuxon/AdapterLuxon.d.mts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.mts +29 -28
- package/AdapterMoment/AdapterMoment.d.ts +29 -28
- package/AdapterMomentHijri/AdapterMomentHijri.d.mts +15 -13
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +15 -13
- package/AdapterMomentHijri/AdapterMomentHijri.js +3 -0
- package/AdapterMomentHijri/AdapterMomentHijri.mjs +4 -0
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.mts +13 -12
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +13 -12
- package/AdapterMomentJalaali/AdapterMomentJalaali.mjs +1 -0
- package/CHANGELOG.md +261 -0
- package/DateCalendar/DateCalendar.d.mts +1 -1
- package/DateCalendar/DateCalendar.d.ts +1 -1
- package/DateCalendar/DateCalendar.js +1 -1
- package/DateCalendar/DateCalendar.mjs +1 -1
- package/DateCalendar/DateCalendar.types.d.mts +16 -16
- package/DateCalendar/DateCalendar.types.d.ts +16 -16
- package/DateCalendar/DayCalendar.d.mts +9 -9
- package/DateCalendar/DayCalendar.d.ts +9 -9
- package/DateCalendar/PickersFadeTransitionGroup.d.mts +1 -1
- package/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
- package/DateCalendar/PickersSlideTransition.d.mts +3 -3
- package/DateCalendar/PickersSlideTransition.d.ts +3 -3
- package/DateCalendar/useCalendarState.d.mts +3 -3
- package/DateCalendar/useCalendarState.d.ts +3 -3
- package/DateCalendar/useIsDateDisabled.d.mts +3 -3
- package/DateCalendar/useIsDateDisabled.d.ts +3 -3
- package/DateField/DateField.d.mts +1 -1
- package/DateField/DateField.d.ts +1 -1
- package/DateField/DateField.js +2 -1
- package/DateField/DateField.mjs +2 -1
- package/DateField/DateField.types.d.mts +6 -6
- package/DateField/DateField.types.d.ts +6 -6
- package/DateField/useDateField.d.mts +1 -1
- package/DateField/useDateField.d.ts +1 -1
- package/DatePicker/DatePicker.d.mts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DatePicker/DatePicker.js +1 -1
- package/DatePicker/DatePicker.mjs +1 -1
- package/DatePicker/DatePicker.types.d.mts +4 -4
- package/DatePicker/DatePicker.types.d.ts +4 -4
- package/DatePicker/DatePickerToolbar.d.mts +2 -2
- package/DatePicker/DatePickerToolbar.d.ts +2 -2
- package/DatePicker/DatePickerToolbar.js +1 -1
- package/DatePicker/DatePickerToolbar.mjs +1 -1
- package/DatePicker/shared.d.mts +10 -10
- package/DatePicker/shared.d.ts +10 -10
- package/DateTimeField/DateTimeField.d.mts +1 -1
- package/DateTimeField/DateTimeField.d.ts +1 -1
- package/DateTimeField/DateTimeField.js +2 -1
- package/DateTimeField/DateTimeField.mjs +2 -1
- package/DateTimeField/DateTimeField.types.d.mts +7 -7
- package/DateTimeField/DateTimeField.types.d.ts +7 -7
- package/DateTimeField/useDateTimeField.d.mts +1 -1
- package/DateTimeField/useDateTimeField.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.mts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.js +1 -1
- package/DateTimePicker/DateTimePicker.mjs +1 -1
- package/DateTimePicker/DateTimePicker.types.d.mts +5 -5
- package/DateTimePicker/DateTimePicker.types.d.ts +5 -5
- package/DateTimePicker/DateTimePickerTabs.d.mts +2 -2
- package/DateTimePicker/DateTimePickerTabs.d.ts +2 -2
- package/DateTimePicker/DateTimePickerTabs.js +1 -1
- package/DateTimePicker/DateTimePickerTabs.mjs +1 -1
- package/DateTimePicker/DateTimePickerToolbar.d.mts +5 -5
- package/DateTimePicker/DateTimePickerToolbar.d.ts +5 -5
- package/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/DateTimePicker/DateTimePickerToolbar.mjs +1 -1
- package/DateTimePicker/shared.d.mts +15 -15
- package/DateTimePicker/shared.d.ts +15 -15
- package/DayCalendarSkeleton/DayCalendarSkeleton.d.mts +3 -3
- package/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +3 -3
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -1
- package/DayCalendarSkeleton/DayCalendarSkeleton.mjs +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.mts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/DesktopDatePicker/DesktopDatePicker.mjs +2 -2
- package/DesktopDatePicker/DesktopDatePicker.types.d.mts +4 -4
- package/DesktopDatePicker/DesktopDatePicker.types.d.ts +4 -4
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.mts +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.mjs +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.mts +6 -6
- package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +6 -6
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.mts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.mjs +1 -1
- package/DesktopTimePicker/DesktopTimePicker.d.mts +1 -1
- package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
- package/DesktopTimePicker/DesktopTimePicker.js +2 -2
- package/DesktopTimePicker/DesktopTimePicker.mjs +2 -2
- package/DesktopTimePicker/DesktopTimePicker.types.d.mts +8 -8
- package/DesktopTimePicker/DesktopTimePicker.types.d.ts +8 -8
- package/DigitalClock/DigitalClock.d.mts +1 -1
- package/DigitalClock/DigitalClock.d.ts +1 -1
- package/DigitalClock/DigitalClock.js +1 -1
- package/DigitalClock/DigitalClock.mjs +1 -1
- package/DigitalClock/DigitalClock.types.d.mts +6 -6
- package/DigitalClock/DigitalClock.types.d.ts +6 -6
- package/LocalizationProvider/LocalizationProvider.d.mts +2 -2
- package/LocalizationProvider/LocalizationProvider.d.ts +2 -2
- package/LocalizationProvider/LocalizationProvider.js +1 -1
- package/LocalizationProvider/LocalizationProvider.mjs +1 -1
- package/MobileDatePicker/MobileDatePicker.d.mts +1 -1
- package/MobileDatePicker/MobileDatePicker.d.ts +1 -1
- package/MobileDatePicker/MobileDatePicker.js +2 -2
- package/MobileDatePicker/MobileDatePicker.mjs +2 -2
- package/MobileDatePicker/MobileDatePicker.types.d.mts +3 -3
- package/MobileDatePicker/MobileDatePicker.types.d.ts +3 -3
- package/MobileDateTimePicker/MobileDateTimePicker.d.mts +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.mjs +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.types.d.mts +3 -3
- package/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +3 -3
- package/MobileTimePicker/MobileTimePicker.d.mts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.js +2 -2
- package/MobileTimePicker/MobileTimePicker.mjs +2 -2
- package/MobileTimePicker/MobileTimePicker.types.d.mts +5 -5
- package/MobileTimePicker/MobileTimePicker.types.d.ts +5 -5
- package/MonthCalendar/MonthCalendar.d.mts +2 -2
- package/MonthCalendar/MonthCalendar.d.ts +2 -2
- package/MonthCalendar/MonthCalendar.js +1 -1
- package/MonthCalendar/MonthCalendar.mjs +1 -1
- package/MonthCalendar/MonthCalendar.types.d.mts +8 -8
- package/MonthCalendar/MonthCalendar.types.d.ts +8 -8
- package/MonthCalendar/MonthCalendarButton.d.mts +3 -3
- package/MonthCalendar/MonthCalendarButton.d.ts +3 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.mts +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.mjs +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.mts +7 -7
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +7 -7
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.mts +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.mts +3 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +3 -3
- package/PickerDay/PickerDay.d.mts +1 -1
- package/PickerDay/PickerDay.d.ts +1 -1
- package/PickerDay/PickerDay.js +1 -1
- package/PickerDay/PickerDay.mjs +1 -1
- package/PickerDay/PickerDay.types.d.mts +5 -5
- package/PickerDay/PickerDay.types.d.ts +5 -5
- package/PickersActionBar/PickersActionBar.d.mts +1 -1
- package/PickersActionBar/PickersActionBar.d.ts +1 -1
- package/PickersActionBar/PickersActionBar.js +1 -1
- package/PickersActionBar/PickersActionBar.mjs +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.d.mts +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.d.ts +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.mjs +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.mts +9 -9
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +9 -9
- package/PickersLayout/PickersLayout.d.mts +2 -2
- package/PickersLayout/PickersLayout.d.ts +2 -2
- package/PickersLayout/PickersLayout.js +1 -1
- package/PickersLayout/PickersLayout.mjs +1 -1
- package/PickersLayout/PickersLayout.types.d.mts +11 -11
- package/PickersLayout/PickersLayout.types.d.ts +11 -11
- package/PickersLayout/usePickerLayout.d.mts +2 -2
- package/PickersLayout/usePickerLayout.d.ts +2 -2
- package/PickersSectionList/PickersSectionList.js +2 -2
- package/PickersSectionList/PickersSectionList.mjs +2 -2
- package/PickersSectionList/PickersSectionList.types.d.mts +4 -4
- package/PickersSectionList/PickersSectionList.types.d.ts +4 -4
- package/PickersShortcuts/PickersShortcuts.d.mts +3 -3
- package/PickersShortcuts/PickersShortcuts.d.ts +3 -3
- package/PickersShortcuts/PickersShortcuts.js +1 -1
- package/PickersShortcuts/PickersShortcuts.mjs +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.d.mts +2 -2
- package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +2 -2
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +2 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.mjs +2 -1
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.mts +1 -1
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -1
- package/PickersTextField/PickersInput/PickersInput.d.mts +2 -2
- package/PickersTextField/PickersInput/PickersInput.d.ts +2 -2
- package/PickersTextField/PickersInput/PickersInput.js +2 -1
- package/PickersTextField/PickersInput/PickersInput.mjs +2 -1
- package/PickersTextField/PickersInput/pickersInputClasses.d.mts +1 -1
- package/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -1
- package/PickersTextField/PickersInputBase/PickersInputBase.d.mts +2 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +2 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.js +17 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.mjs +17 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.types.d.mts +6 -5
- package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +6 -5
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.mts +1 -1
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +1 -1
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +13 -9
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.mjs +13 -9
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.mts +1 -1
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -1
- package/PickersTextField/PickersTextField.js +5 -2
- package/PickersTextField/PickersTextField.mjs +5 -2
- package/PickersTextField/PickersTextField.types.d.mts +6 -6
- package/PickersTextField/PickersTextField.types.d.ts +6 -6
- package/PickersTextField/usePickerTextFieldOwnerState.d.mts +1 -1
- package/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
- package/StaticDatePicker/StaticDatePicker.d.mts +1 -1
- package/StaticDatePicker/StaticDatePicker.d.ts +1 -1
- package/StaticDatePicker/StaticDatePicker.js +2 -2
- package/StaticDatePicker/StaticDatePicker.mjs +2 -2
- package/StaticDatePicker/StaticDatePicker.types.d.mts +3 -3
- package/StaticDatePicker/StaticDatePicker.types.d.ts +3 -3
- package/StaticDateTimePicker/StaticDateTimePicker.d.mts +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.mjs +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.types.d.mts +3 -3
- package/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +3 -3
- package/StaticTimePicker/StaticTimePicker.d.mts +1 -1
- package/StaticTimePicker/StaticTimePicker.d.ts +1 -1
- package/StaticTimePicker/StaticTimePicker.js +2 -2
- package/StaticTimePicker/StaticTimePicker.mjs +2 -2
- package/StaticTimePicker/StaticTimePicker.types.d.mts +4 -4
- package/StaticTimePicker/StaticTimePicker.types.d.ts +4 -4
- package/TimeClock/Clock.d.mts +5 -5
- package/TimeClock/Clock.d.ts +5 -5
- package/TimeClock/Clock.js +76 -30
- package/TimeClock/Clock.mjs +76 -30
- package/TimeClock/ClockNumber.d.mts +2 -2
- package/TimeClock/ClockNumber.d.ts +2 -2
- package/TimeClock/ClockNumbers.d.mts +1 -1
- package/TimeClock/ClockNumbers.d.ts +1 -1
- package/TimeClock/ClockPointer.d.mts +2 -2
- package/TimeClock/ClockPointer.d.ts +2 -2
- package/TimeClock/TimeClock.d.mts +1 -1
- package/TimeClock/TimeClock.d.ts +1 -1
- package/TimeClock/TimeClock.js +1 -1
- package/TimeClock/TimeClock.mjs +1 -1
- package/TimeClock/TimeClock.types.d.mts +5 -5
- package/TimeClock/TimeClock.types.d.ts +5 -5
- package/TimeField/TimeField.d.mts +1 -1
- package/TimeField/TimeField.d.ts +1 -1
- package/TimeField/TimeField.js +2 -1
- package/TimeField/TimeField.mjs +2 -1
- package/TimeField/TimeField.types.d.mts +7 -7
- package/TimeField/TimeField.types.d.ts +7 -7
- package/TimeField/useTimeField.d.mts +1 -1
- package/TimeField/useTimeField.d.ts +1 -1
- package/TimePicker/TimePicker.d.mts +1 -1
- package/TimePicker/TimePicker.d.ts +1 -1
- package/TimePicker/TimePicker.js +1 -1
- package/TimePicker/TimePicker.mjs +1 -1
- package/TimePicker/TimePicker.types.d.mts +4 -4
- package/TimePicker/TimePicker.types.d.ts +4 -4
- package/TimePicker/TimePickerToolbar.d.mts +2 -2
- package/TimePicker/TimePickerToolbar.d.ts +2 -2
- package/TimePicker/TimePickerToolbar.js +1 -1
- package/TimePicker/TimePickerToolbar.mjs +1 -1
- package/TimePicker/shared.d.mts +11 -11
- package/TimePicker/shared.d.ts +11 -11
- package/YearCalendar/YearCalendar.d.mts +1 -1
- package/YearCalendar/YearCalendar.d.ts +1 -1
- package/YearCalendar/YearCalendar.js +1 -1
- package/YearCalendar/YearCalendar.mjs +1 -1
- package/YearCalendar/YearCalendar.types.d.mts +8 -8
- package/YearCalendar/YearCalendar.types.d.ts +8 -8
- package/YearCalendar/YearCalendarButton.d.mts +3 -3
- package/YearCalendar/YearCalendarButton.d.ts +3 -3
- package/dateViewRenderers/dateViewRenderers.d.mts +3 -3
- package/dateViewRenderers/dateViewRenderers.d.ts +3 -3
- package/hooks/useIsValidValue.d.mts +1 -1
- package/hooks/useIsValidValue.d.ts +1 -1
- package/hooks/usePickerActionsContext.d.mts +2 -2
- package/hooks/usePickerActionsContext.d.ts +2 -2
- package/hooks/usePickerAdapter.d.mts +2 -2
- package/hooks/usePickerAdapter.d.ts +2 -2
- package/hooks/usePickerContext.d.mts +1 -1
- package/hooks/usePickerContext.d.ts +1 -1
- package/hooks/useSplitFieldProps.d.mts +1 -1
- package/hooks/useSplitFieldProps.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/components/PickerFieldUI.d.mts +7 -7
- package/internals/components/PickerFieldUI.d.ts +7 -7
- package/internals/components/PickerPopper/PickerPopper.d.mts +7 -7
- package/internals/components/PickerPopper/PickerPopper.d.ts +7 -7
- package/internals/components/PickerProvider.d.mts +6 -6
- package/internals/components/PickerProvider.d.ts +6 -6
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.mts +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.ts +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.mts +6 -6
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +6 -6
- package/internals/components/PickersModalDialog.d.mts +3 -3
- package/internals/components/PickersModalDialog.d.ts +3 -3
- package/internals/components/PickersToolbar.d.mts +2 -2
- package/internals/components/PickersToolbar.d.ts +2 -2
- package/internals/components/PickersToolbarButton.d.mts +4 -4
- package/internals/components/PickersToolbarButton.d.ts +4 -4
- package/internals/components/PickersToolbarText.d.mts +2 -2
- package/internals/components/PickersToolbarText.d.ts +2 -2
- package/internals/demo/DemoContainer.d.mts +2 -2
- package/internals/demo/DemoContainer.d.ts +2 -2
- package/internals/hooks/PickerDay.types.d.mts +1 -1
- package/internals/hooks/PickerDay.types.d.ts +1 -1
- package/internals/hooks/date-helpers-hooks.d.mts +3 -3
- package/internals/hooks/date-helpers-hooks.d.ts +3 -3
- package/internals/hooks/useClockReferenceDate.d.mts +2 -2
- package/internals/hooks/useClockReferenceDate.d.ts +2 -2
- package/internals/hooks/useControlledValue.d.mts +2 -3
- package/internals/hooks/useControlledValue.d.ts +2 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.mts +2 -2
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +2 -2
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.mts +10 -10
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +10 -10
- package/internals/hooks/useField/buildSectionsFromFormat.d.mts +2 -2
- package/internals/hooks/useField/buildSectionsFromFormat.d.ts +2 -2
- package/internals/hooks/useField/syncSelectionToDOM.d.mts +3 -3
- package/internals/hooks/useField/syncSelectionToDOM.d.ts +3 -3
- package/internals/hooks/useField/useField.d.mts +2 -2
- package/internals/hooks/useField/useField.d.ts +2 -2
- package/internals/hooks/useField/useField.js +18 -0
- package/internals/hooks/useField/useField.mjs +18 -0
- package/internals/hooks/useField/useField.types.d.mts +5 -4
- package/internals/hooks/useField/useField.types.d.ts +5 -4
- package/internals/hooks/useField/useField.utils.d.mts +3 -4
- package/internals/hooks/useField/useField.utils.d.ts +3 -4
- package/internals/hooks/useField/useField.utils.js +1 -3
- package/internals/hooks/useField/useField.utils.mjs +0 -1
- package/internals/hooks/useField/useFieldCharacterEditing.d.mts +2 -2
- package/internals/hooks/useField/useFieldCharacterEditing.d.ts +2 -2
- package/internals/hooks/useField/useFieldHiddenInputProps.d.mts +2 -2
- package/internals/hooks/useField/useFieldHiddenInputProps.d.ts +2 -2
- package/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.mts +1 -1
- package/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +1 -1
- package/internals/hooks/useField/useFieldRootProps.d.mts +5 -4
- package/internals/hooks/useField/useFieldRootProps.d.ts +5 -4
- package/internals/hooks/useField/useFieldRootProps.js +95 -8
- package/internals/hooks/useField/useFieldRootProps.mjs +95 -8
- package/internals/hooks/useField/useFieldSectionContainerProps.d.mts +2 -2
- package/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -2
- package/internals/hooks/useField/useFieldSectionContainerProps.js +35 -4
- package/internals/hooks/useField/useFieldSectionContainerProps.mjs +34 -4
- package/internals/hooks/useField/useFieldSectionContentProps.d.mts +6 -6
- package/internals/hooks/useField/useFieldSectionContentProps.d.ts +6 -6
- package/internals/hooks/useField/useFieldSectionContentProps.js +3 -1
- package/internals/hooks/useField/useFieldSectionContentProps.mjs +3 -1
- package/internals/hooks/useField/useFieldState.d.mts +3 -3
- package/internals/hooks/useField/useFieldState.d.ts +3 -3
- package/internals/hooks/useFieldOwnerState.d.mts +2 -2
- package/internals/hooks/useFieldOwnerState.d.ts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.d.mts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.mts +10 -10
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +10 -10
- package/internals/hooks/useNullableFieldPrivateContext.d.mts +2 -2
- package/internals/hooks/useNullableFieldPrivateContext.d.ts +2 -2
- package/internals/hooks/usePicker/hooks/useOrientation.d.mts +1 -1
- package/internals/hooks/usePicker/hooks/useOrientation.d.ts +1 -1
- package/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.mts +5 -5
- package/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +5 -5
- package/internals/hooks/usePicker/usePicker.d.mts +2 -2
- package/internals/hooks/usePicker/usePicker.d.ts +2 -2
- package/internals/hooks/usePicker/usePicker.types.d.mts +10 -10
- package/internals/hooks/usePicker/usePicker.types.d.ts +10 -10
- package/internals/hooks/usePickerDayOwnerState.d.mts +2 -2
- package/internals/hooks/usePickerDayOwnerState.d.ts +2 -2
- package/internals/hooks/useReduceAnimations.js +4 -1
- package/internals/hooks/useReduceAnimations.mjs +4 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.d.mts +2 -2
- package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +2 -2
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.mts +5 -5
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +5 -5
- package/internals/hooks/useToolbarOwnerState.d.mts +1 -1
- package/internals/hooks/useToolbarOwnerState.d.ts +1 -1
- package/internals/hooks/useUtils.d.mts +1 -1
- package/internals/hooks/useUtils.d.ts +1 -1
- package/internals/hooks/useViews.d.mts +4 -4
- package/internals/hooks/useViews.d.ts +4 -4
- package/internals/models/common.d.mts +1 -1
- package/internals/models/common.d.ts +1 -1
- package/internals/models/fields.d.mts +1 -1
- package/internals/models/fields.d.ts +1 -1
- package/internals/models/helpers.d.mts +2 -2
- package/internals/models/helpers.d.ts +2 -2
- package/internals/models/manager.d.mts +1 -1
- package/internals/models/manager.d.ts +1 -1
- package/internals/models/props/basePickerProps.d.mts +7 -8
- package/internals/models/props/basePickerProps.d.ts +7 -8
- package/internals/models/props/tabs.d.mts +2 -2
- package/internals/models/props/tabs.d.ts +2 -2
- package/internals/models/props/time.d.mts +6 -6
- package/internals/models/props/time.d.ts +6 -6
- package/internals/models/props/toolbar.d.mts +3 -3
- package/internals/models/props/toolbar.d.ts +3 -3
- package/internals/models/value.d.mts +1 -1
- package/internals/models/value.d.ts +1 -1
- package/internals/utils/createNonRangePickerStepNavigation.d.mts +1 -1
- package/internals/utils/createNonRangePickerStepNavigation.d.ts +1 -1
- package/internals/utils/createStepNavigation.d.mts +1 -1
- package/internals/utils/createStepNavigation.d.ts +1 -1
- package/internals/utils/date-time-utils.d.mts +4 -4
- package/internals/utils/date-time-utils.d.ts +4 -4
- package/internals/utils/date-utils.d.mts +2 -2
- package/internals/utils/date-utils.d.ts +2 -2
- package/internals/utils/getDefaultReferenceDate.d.mts +1 -1
- package/internals/utils/getDefaultReferenceDate.d.ts +1 -1
- package/internals/utils/time-utils.d.mts +2 -2
- package/internals/utils/time-utils.d.ts +2 -2
- package/internals/utils/utils.d.mts +3 -3
- package/internals/utils/utils.d.ts +3 -3
- package/internals/utils/valueManagers.d.mts +2 -3
- package/internals/utils/valueManagers.d.ts +2 -3
- package/internals/utils/views.d.mts +1 -1
- package/internals/utils/views.d.ts +1 -1
- package/locales/beBY.d.mts +1 -1
- package/locales/beBY.d.ts +1 -1
- package/locales/bgBG.d.mts +1 -1
- package/locales/bgBG.d.ts +1 -1
- package/locales/bnBD.d.mts +1 -1
- package/locales/bnBD.d.ts +1 -1
- package/locales/caES.d.mts +1 -1
- package/locales/caES.d.ts +1 -1
- package/locales/csCZ.d.mts +1 -1
- package/locales/csCZ.d.ts +1 -1
- package/locales/daDK.d.mts +1 -1
- package/locales/daDK.d.ts +1 -1
- package/locales/deDE.d.mts +1 -1
- package/locales/deDE.d.ts +1 -1
- package/locales/elGR.d.mts +1 -1
- package/locales/elGR.d.ts +1 -1
- package/locales/enUS.d.mts +1 -1
- package/locales/enUS.d.ts +1 -1
- package/locales/esES.d.mts +1 -1
- package/locales/esES.d.ts +1 -1
- package/locales/eu.d.mts +1 -1
- package/locales/eu.d.ts +1 -1
- package/locales/faIR.d.mts +1 -1
- package/locales/faIR.d.ts +1 -1
- package/locales/faIR.js +21 -22
- package/locales/faIR.mjs +21 -22
- package/locales/fiFI.d.mts +1 -1
- package/locales/fiFI.d.ts +1 -1
- package/locales/frFR.d.mts +1 -1
- package/locales/frFR.d.ts +1 -1
- package/locales/heIL.d.mts +1 -1
- package/locales/heIL.d.ts +1 -1
- package/locales/hrHR.d.mts +1 -1
- package/locales/hrHR.d.ts +1 -1
- package/locales/huHU.d.mts +1 -1
- package/locales/huHU.d.ts +1 -1
- package/locales/isIS.d.mts +1 -1
- package/locales/isIS.d.ts +1 -1
- package/locales/itIT.d.mts +1 -1
- package/locales/itIT.d.ts +1 -1
- package/locales/jaJP.d.mts +1 -1
- package/locales/jaJP.d.ts +1 -1
- package/locales/koKR.d.mts +1 -1
- package/locales/koKR.d.ts +1 -1
- package/locales/kzKZ.d.mts +1 -1
- package/locales/kzKZ.d.ts +1 -1
- package/locales/nbNO.d.mts +1 -1
- package/locales/nbNO.d.ts +1 -1
- package/locales/nlNL.d.mts +1 -1
- package/locales/nlNL.d.ts +1 -1
- package/locales/nnNO.d.mts +1 -1
- package/locales/nnNO.d.ts +1 -1
- package/locales/plPL.d.mts +1 -1
- package/locales/plPL.d.ts +1 -1
- package/locales/ptBR.d.mts +1 -1
- package/locales/ptBR.d.ts +1 -1
- package/locales/ptPT.d.mts +1 -1
- package/locales/ptPT.d.ts +1 -1
- package/locales/roRO.d.mts +1 -1
- package/locales/roRO.d.ts +1 -1
- package/locales/ruRU.d.mts +1 -1
- package/locales/ruRU.d.ts +1 -1
- package/locales/skSK.d.mts +1 -1
- package/locales/skSK.d.ts +1 -1
- package/locales/svSE.d.mts +1 -1
- package/locales/svSE.d.ts +1 -1
- package/locales/thTH.d.mts +1 -1
- package/locales/thTH.d.ts +1 -1
- package/locales/trTR.d.mts +1 -1
- package/locales/trTR.d.ts +1 -1
- package/locales/ukUA.d.mts +1 -1
- package/locales/ukUA.d.ts +1 -1
- package/locales/urPK.d.mts +1 -1
- package/locales/urPK.d.ts +1 -1
- package/locales/utils/getPickersLocalization.d.mts +1 -1
- package/locales/utils/getPickersLocalization.d.ts +1 -1
- package/locales/utils/pickersLocaleTextApi.d.mts +2 -2
- package/locales/utils/pickersLocaleTextApi.d.ts +2 -2
- package/locales/viVN.d.mts +1 -1
- package/locales/viVN.d.ts +1 -1
- package/locales/zhCN.d.mts +1 -1
- package/locales/zhCN.d.ts +1 -1
- package/locales/zhHK.d.mts +1 -1
- package/locales/zhHK.d.ts +1 -1
- package/locales/zhTW.d.mts +1 -1
- package/locales/zhTW.d.ts +1 -1
- package/managers/useDateManager.d.mts +4 -4
- package/managers/useDateManager.d.ts +4 -4
- package/managers/useDateTimeManager.d.mts +5 -5
- package/managers/useDateTimeManager.d.ts +5 -5
- package/managers/useTimeManager.d.mts +5 -5
- package/managers/useTimeManager.d.ts +5 -5
- package/models/adapters.d.mts +3 -3
- package/models/adapters.d.ts +3 -3
- package/models/fields.d.mts +4 -4
- package/models/fields.d.ts +4 -4
- package/models/pickers.d.mts +1 -1
- package/models/pickers.d.ts +1 -1
- package/package.json +6 -3
- package/themeAugmentation/components.d.mts +16 -16
- package/themeAugmentation/components.d.ts +16 -16
- package/themeAugmentation/overrides.d.mts +20 -20
- package/themeAugmentation/overrides.d.ts +20 -20
- package/themeAugmentation/props.d.mts +38 -38
- package/themeAugmentation/props.d.ts +38 -38
- package/timeViewRenderers/timeViewRenderers.d.mts +6 -6
- package/timeViewRenderers/timeViewRenderers.d.ts +6 -6
- package/validation/extractValidationProps.d.mts +1 -1
- package/validation/extractValidationProps.d.ts +1 -1
- package/validation/useValidation.d.mts +2 -3
- package/validation/useValidation.d.ts +2 -3
- package/validation/validateDate.d.mts +4 -4
- package/validation/validateDate.d.ts +4 -4
- package/validation/validateDateTime.d.mts +6 -6
- package/validation/validateDateTime.d.ts +6 -6
- package/validation/validateTime.d.mts +4 -4
- package/validation/validateTime.d.ts +4 -4
|
@@ -153,7 +153,7 @@ const PickersLayout = exports.PickersLayout = /*#__PURE__*/React.forwardRef(func
|
|
|
153
153
|
}));
|
|
154
154
|
});
|
|
155
155
|
if (process.env.NODE_ENV !== "production") PickersLayout.displayName = "PickersLayout";
|
|
156
|
-
process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
|
|
156
|
+
process.env.NODE_ENV !== "production" ? PickersLayout.propTypes /* remove-proptypes */ = {
|
|
157
157
|
// ----------------------------- Warning --------------------------------
|
|
158
158
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
159
159
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -146,7 +146,7 @@ const PickersLayout = /*#__PURE__*/React.forwardRef(function PickersLayout(inPro
|
|
|
146
146
|
}));
|
|
147
147
|
});
|
|
148
148
|
if (process.env.NODE_ENV !== "production") PickersLayout.displayName = "PickersLayout";
|
|
149
|
-
process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
|
|
149
|
+
process.env.NODE_ENV !== "production" ? PickersLayout.propTypes /* remove-proptypes */ = {
|
|
150
150
|
// ----------------------------- Warning --------------------------------
|
|
151
151
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
152
152
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
import { SlotComponentProps } from '@mui/utils/types';
|
|
4
|
-
import { PickersActionBar, PickersActionBarProps } from "../PickersActionBar/index.mjs";
|
|
5
|
-
import { BaseToolbarProps, ExportedBaseToolbarProps } from "../internals/models/props/toolbar.mjs";
|
|
6
|
-
import { ExportedBaseTabsProps } from "../internals/models/props/tabs.mjs";
|
|
7
|
-
import { PickersLayoutClasses } from "./pickersLayoutClasses.mjs";
|
|
8
|
-
import { PickersShortcutsProps } from "../PickersShortcuts/index.mjs";
|
|
9
|
-
import { ExportedPickersShortcutProps, PickersShortcuts } from "../PickersShortcuts/PickersShortcuts.mjs";
|
|
10
|
-
import { PickerOwnerState } from "../models/index.mjs";
|
|
11
|
-
import { PickerValidValue } from "../internals/models/index.mjs";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import type { SlotComponentProps } from '@mui/utils/types';
|
|
4
|
+
import type { PickersActionBar, PickersActionBarProps } from "../PickersActionBar/index.mjs";
|
|
5
|
+
import type { BaseToolbarProps, ExportedBaseToolbarProps } from "../internals/models/props/toolbar.mjs";
|
|
6
|
+
import type { ExportedBaseTabsProps } from "../internals/models/props/tabs.mjs";
|
|
7
|
+
import type { PickersLayoutClasses } from "./pickersLayoutClasses.mjs";
|
|
8
|
+
import type { PickersShortcutsProps } from "../PickersShortcuts/index.mjs";
|
|
9
|
+
import type { ExportedPickersShortcutProps, PickersShortcuts } from "../PickersShortcuts/PickersShortcuts.mjs";
|
|
10
|
+
import type { PickerOwnerState } from "../models/index.mjs";
|
|
11
|
+
import type { PickerValidValue } from "../internals/models/index.mjs";
|
|
12
12
|
export interface ExportedPickersLayoutSlots<TValue extends PickerValidValue> {
|
|
13
13
|
/**
|
|
14
14
|
* Custom component for the action bar, it is placed below the Picker views.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
import { SlotComponentProps } from '@mui/utils/types';
|
|
4
|
-
import { PickersActionBar, PickersActionBarProps } from "../PickersActionBar/index.js";
|
|
5
|
-
import { BaseToolbarProps, ExportedBaseToolbarProps } from "../internals/models/props/toolbar.js";
|
|
6
|
-
import { ExportedBaseTabsProps } from "../internals/models/props/tabs.js";
|
|
7
|
-
import { PickersLayoutClasses } from "./pickersLayoutClasses.js";
|
|
8
|
-
import { PickersShortcutsProps } from "../PickersShortcuts/index.js";
|
|
9
|
-
import { ExportedPickersShortcutProps, PickersShortcuts } from "../PickersShortcuts/PickersShortcuts.js";
|
|
10
|
-
import { PickerOwnerState } from "../models/index.js";
|
|
11
|
-
import { PickerValidValue } from "../internals/models/index.js";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import type { SlotComponentProps } from '@mui/utils/types';
|
|
4
|
+
import type { PickersActionBar, PickersActionBarProps } from "../PickersActionBar/index.js";
|
|
5
|
+
import type { BaseToolbarProps, ExportedBaseToolbarProps } from "../internals/models/props/toolbar.js";
|
|
6
|
+
import type { ExportedBaseTabsProps } from "../internals/models/props/tabs.js";
|
|
7
|
+
import type { PickersLayoutClasses } from "./pickersLayoutClasses.js";
|
|
8
|
+
import type { PickersShortcutsProps } from "../PickersShortcuts/index.js";
|
|
9
|
+
import type { ExportedPickersShortcutProps, PickersShortcuts } from "../PickersShortcuts/PickersShortcuts.js";
|
|
10
|
+
import type { PickerOwnerState } from "../models/index.js";
|
|
11
|
+
import type { PickerValidValue } from "../internals/models/index.js";
|
|
12
12
|
export interface ExportedPickersLayoutSlots<TValue extends PickerValidValue> {
|
|
13
13
|
/**
|
|
14
14
|
* Custom component for the action bar, it is placed below the Picker views.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PickerLayoutOwnerState, PickersLayoutProps, SubComponents } from "./PickersLayout.types.mjs";
|
|
2
|
-
import { PickerValidValue } from "../internals/models/index.mjs";
|
|
1
|
+
import type { PickerLayoutOwnerState, PickersLayoutProps, SubComponents } from "./PickersLayout.types.mjs";
|
|
2
|
+
import type { PickerValidValue } from "../internals/models/index.mjs";
|
|
3
3
|
interface UsePickerLayoutResponse<TValue extends PickerValidValue> extends SubComponents<TValue> {
|
|
4
4
|
ownerState: PickerLayoutOwnerState;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PickerLayoutOwnerState, PickersLayoutProps, SubComponents } from "./PickersLayout.types.js";
|
|
2
|
-
import { PickerValidValue } from "../internals/models/index.js";
|
|
1
|
+
import type { PickerLayoutOwnerState, PickersLayoutProps, SubComponents } from "./PickersLayout.types.js";
|
|
2
|
+
import type { PickerValidValue } from "../internals/models/index.js";
|
|
3
3
|
interface UsePickerLayoutResponse<TValue extends PickerValidValue> extends SubComponents<TValue> {
|
|
4
4
|
ownerState: PickerLayoutOwnerState;
|
|
5
5
|
}
|
|
@@ -119,7 +119,7 @@ function PickersSection(props) {
|
|
|
119
119
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(SectionSeparator, (0, _extends2.default)({}, sectionSeparatorAfterProps))]
|
|
120
120
|
}));
|
|
121
121
|
}
|
|
122
|
-
process.env.NODE_ENV !== "production" ? PickersSection.propTypes = {
|
|
122
|
+
process.env.NODE_ENV !== "production" ? PickersSection.propTypes /* remove-proptypes */ = {
|
|
123
123
|
// ----------------------------- Warning --------------------------------
|
|
124
124
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
125
125
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -231,7 +231,7 @@ const PickersSectionList = exports.PickersSectionList = /*#__PURE__*/React.forwa
|
|
|
231
231
|
}));
|
|
232
232
|
});
|
|
233
233
|
if (process.env.NODE_ENV !== "production") PickersSectionList.displayName = "PickersSectionList";
|
|
234
|
-
process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes = {
|
|
234
|
+
process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes /* remove-proptypes */ = {
|
|
235
235
|
// ----------------------------- Warning --------------------------------
|
|
236
236
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
237
237
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -112,7 +112,7 @@ function PickersSection(props) {
|
|
|
112
112
|
})), /*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorAfterProps))]
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
115
|
-
process.env.NODE_ENV !== "production" ? PickersSection.propTypes = {
|
|
115
|
+
process.env.NODE_ENV !== "production" ? PickersSection.propTypes /* remove-proptypes */ = {
|
|
116
116
|
// ----------------------------- Warning --------------------------------
|
|
117
117
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
118
118
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -224,7 +224,7 @@ const PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSection
|
|
|
224
224
|
}));
|
|
225
225
|
});
|
|
226
226
|
if (process.env.NODE_ENV !== "production") PickersSectionList.displayName = "PickersSectionList";
|
|
227
|
-
process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes = {
|
|
227
|
+
process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes /* remove-proptypes */ = {
|
|
228
228
|
// ----------------------------- Warning --------------------------------
|
|
229
229
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
230
230
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
|
-
import { PickersSectionListClasses } from "./pickersSectionListClasses.mjs";
|
|
4
|
-
import { PickerOwnerState } from "../models/index.mjs";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SlotComponentProps } from '@mui/utils/types';
|
|
3
|
+
import type { PickersSectionListClasses } from "./pickersSectionListClasses.mjs";
|
|
4
|
+
import type { PickerOwnerState } from "../models/index.mjs";
|
|
5
5
|
import type { UseFieldDOMGetters } from "../internals/hooks/useField/useField.types.mjs";
|
|
6
6
|
export interface PickersSectionListSlots {
|
|
7
7
|
root: React.ElementType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
|
-
import { PickersSectionListClasses } from "./pickersSectionListClasses.js";
|
|
4
|
-
import { PickerOwnerState } from "../models/index.js";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SlotComponentProps } from '@mui/utils/types';
|
|
3
|
+
import type { PickersSectionListClasses } from "./pickersSectionListClasses.js";
|
|
4
|
+
import type { PickerOwnerState } from "../models/index.js";
|
|
5
5
|
import type { UseFieldDOMGetters } from "../internals/hooks/useField/useField.types.js";
|
|
6
6
|
export interface PickersSectionListSlots {
|
|
7
7
|
root: React.ElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ListProps } from '@mui/material/List';
|
|
2
|
-
import { PickerValidValue } from "../internals/models/index.mjs";
|
|
3
|
-
import { PickerChangeImportance } from "../models/pickers.mjs";
|
|
1
|
+
import type { ListProps } from '@mui/material/List';
|
|
2
|
+
import type { PickerValidValue } from "../internals/models/index.mjs";
|
|
3
|
+
import type { PickerChangeImportance } from "../models/pickers.mjs";
|
|
4
4
|
interface PickersShortcutsItemGetValueParams<TValue extends PickerValidValue> {
|
|
5
5
|
isValid: (value: TValue) => boolean;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ListProps } from '@mui/material/List';
|
|
2
|
-
import { PickerValidValue } from "../internals/models/index.js";
|
|
3
|
-
import { PickerChangeImportance } from "../models/pickers.js";
|
|
1
|
+
import type { ListProps } from '@mui/material/List';
|
|
2
|
+
import type { PickerValidValue } from "../internals/models/index.js";
|
|
3
|
+
import type { PickerChangeImportance } from "../models/pickers.js";
|
|
4
4
|
interface PickersShortcutsItemGetValueParams<TValue extends PickerValidValue> {
|
|
5
5
|
isValid: (value: TValue) => boolean;
|
|
6
6
|
}
|
|
@@ -80,7 +80,7 @@ function PickersShortcuts(props) {
|
|
|
80
80
|
})
|
|
81
81
|
}));
|
|
82
82
|
}
|
|
83
|
-
process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes = {
|
|
83
|
+
process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes /* remove-proptypes */ = {
|
|
84
84
|
// ----------------------------- Warning --------------------------------
|
|
85
85
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
86
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -74,7 +74,7 @@ function PickersShortcuts(props) {
|
|
|
74
74
|
})
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
|
-
process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes = {
|
|
77
|
+
process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes /* remove-proptypes */ = {
|
|
78
78
|
// ----------------------------- Warning --------------------------------
|
|
79
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
80
80
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "../PickersInputBase/index.mjs";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
2
|
+
import type { PickersInputBaseProps } from "../PickersInputBase/index.mjs";
|
|
3
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
4
4
|
export interface PickersFilledInputProps extends PickersInputBaseProps {
|
|
5
5
|
disableUnderline?: boolean;
|
|
6
6
|
hiddenLabel?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
2
|
+
import type { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
4
4
|
export interface PickersFilledInputProps extends PickersInputBaseProps {
|
|
5
5
|
disableUnderline?: boolean;
|
|
6
6
|
hiddenLabel?: boolean;
|
|
@@ -237,7 +237,7 @@ const PickersFilledInput = exports.PickersFilledInput = /*#__PURE__*/React.forwa
|
|
|
237
237
|
}));
|
|
238
238
|
});
|
|
239
239
|
if (process.env.NODE_ENV !== "production") PickersFilledInput.displayName = "PickersFilledInput";
|
|
240
|
-
process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
240
|
+
process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes /* remove-proptypes */ = {
|
|
241
241
|
// ----------------------------- Warning --------------------------------
|
|
242
242
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
243
243
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -298,6 +298,7 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
|
298
298
|
onClick: _propTypes.default.func.isRequired,
|
|
299
299
|
onInput: _propTypes.default.func.isRequired,
|
|
300
300
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
301
|
+
onMouseDown: _propTypes.default.func.isRequired,
|
|
301
302
|
onPaste: _propTypes.default.func.isRequired,
|
|
302
303
|
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
303
304
|
readOnly: _propTypes.default.bool,
|
|
@@ -230,7 +230,7 @@ const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledI
|
|
|
230
230
|
}));
|
|
231
231
|
});
|
|
232
232
|
if (process.env.NODE_ENV !== "production") PickersFilledInput.displayName = "PickersFilledInput";
|
|
233
|
-
process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
233
|
+
process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes /* remove-proptypes */ = {
|
|
234
234
|
// ----------------------------- Warning --------------------------------
|
|
235
235
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
236
236
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -291,6 +291,7 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
|
291
291
|
onClick: PropTypes.func.isRequired,
|
|
292
292
|
onInput: PropTypes.func.isRequired,
|
|
293
293
|
onKeyDown: PropTypes.func.isRequired,
|
|
294
|
+
onMouseDown: PropTypes.func.isRequired,
|
|
294
295
|
onPaste: PropTypes.func.isRequired,
|
|
295
296
|
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
296
297
|
readOnly: PropTypes.bool,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickersInputBaseClasses } from "../PickersInputBase/index.mjs";
|
|
1
|
+
import type { PickersInputBaseClasses } from "../PickersInputBase/index.mjs";
|
|
2
2
|
export interface PickersFilledInputClasses extends PickersInputBaseClasses {
|
|
3
3
|
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
4
4
|
underline: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
1
|
+
import type { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
2
2
|
export interface PickersFilledInputClasses extends PickersInputBaseClasses {
|
|
3
3
|
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
4
4
|
underline: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "../PickersInputBase/index.mjs";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
2
|
+
import type { PickersInputBaseProps } from "../PickersInputBase/index.mjs";
|
|
3
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
4
4
|
export interface PickersInputProps extends PickersInputBaseProps {
|
|
5
5
|
disableUnderline?: boolean;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
2
|
+
import type { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
4
4
|
export interface PickersInputProps extends PickersInputBaseProps {
|
|
5
5
|
disableUnderline?: boolean;
|
|
6
6
|
}
|
|
@@ -156,7 +156,7 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
|
|
|
156
156
|
}));
|
|
157
157
|
});
|
|
158
158
|
if (process.env.NODE_ENV !== "production") PickersInput.displayName = "PickersInput";
|
|
159
|
-
process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
159
|
+
process.env.NODE_ENV !== "production" ? PickersInput.propTypes /* remove-proptypes */ = {
|
|
160
160
|
// ----------------------------- Warning --------------------------------
|
|
161
161
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
162
162
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -216,6 +216,7 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
|
216
216
|
onClick: _propTypes.default.func.isRequired,
|
|
217
217
|
onInput: _propTypes.default.func.isRequired,
|
|
218
218
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
219
|
+
onMouseDown: _propTypes.default.func.isRequired,
|
|
219
220
|
onPaste: _propTypes.default.func.isRequired,
|
|
220
221
|
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
221
222
|
readOnly: _propTypes.default.bool,
|
|
@@ -149,7 +149,7 @@ const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps
|
|
|
149
149
|
}));
|
|
150
150
|
});
|
|
151
151
|
if (process.env.NODE_ENV !== "production") PickersInput.displayName = "PickersInput";
|
|
152
|
-
process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
152
|
+
process.env.NODE_ENV !== "production" ? PickersInput.propTypes /* remove-proptypes */ = {
|
|
153
153
|
// ----------------------------- Warning --------------------------------
|
|
154
154
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
155
155
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -209,6 +209,7 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
|
209
209
|
onClick: PropTypes.func.isRequired,
|
|
210
210
|
onInput: PropTypes.func.isRequired,
|
|
211
211
|
onKeyDown: PropTypes.func.isRequired,
|
|
212
|
+
onMouseDown: PropTypes.func.isRequired,
|
|
212
213
|
onPaste: PropTypes.func.isRequired,
|
|
213
214
|
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
214
215
|
readOnly: PropTypes.bool,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickersInputBaseClasses } from "../PickersInputBase/index.mjs";
|
|
1
|
+
import type { PickersInputBaseClasses } from "../PickersInputBase/index.mjs";
|
|
2
2
|
export interface PickersInputClasses extends PickersInputBaseClasses {
|
|
3
3
|
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
4
4
|
underline: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
1
|
+
import type { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
2
2
|
export interface PickersInputClasses extends PickersInputBaseClasses {
|
|
3
3
|
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
4
4
|
underline: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "./PickersInputBase.types.mjs";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
2
|
+
import type { PickersInputBaseProps } from "./PickersInputBase.types.mjs";
|
|
3
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
4
4
|
export declare const PickersInputBaseRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
5
|
ownerState: PickerTextFieldOwnerState;
|
|
6
6
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | keyof React.ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "./PickersInputBase.types.js";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
2
|
+
import type { PickersInputBaseProps } from "./PickersInputBase.types.js";
|
|
3
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
4
4
|
export declare const PickersInputBaseRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
5
|
ownerState: PickerTextFieldOwnerState;
|
|
6
6
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | keyof React.ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -162,7 +162,21 @@ const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.U
|
|
|
162
162
|
// 23px
|
|
163
163
|
letterSpacing: 'inherit',
|
|
164
164
|
width: 'fit-content',
|
|
165
|
-
outline: 'none'
|
|
165
|
+
outline: 'none',
|
|
166
|
+
// Disables Chromium's focus-delegation onto contenteditable descendants
|
|
167
|
+
// while the field is not focused. The bug is Chromium-only, and applying
|
|
168
|
+
// `WebkitUserModify` on WebKit breaks Playwright's `fill()` editability
|
|
169
|
+
// check, so we gate on a Chromium-only CSS property (`-webkit-app-region`,
|
|
170
|
+
// a Blink/Electron extension WebKit never adopted) via `@supports`.
|
|
171
|
+
// The WebKit exclusion is empirical, not guaranteed across versions: the
|
|
172
|
+
// regression guard is the WebKit `fill()` cases in the browser e2e suite,
|
|
173
|
+
// which would fail if a future WebKit started matching this `@supports`.
|
|
174
|
+
'@supports (-webkit-app-region: drag)': {
|
|
175
|
+
[`.${_pickersInputBaseClasses.pickersInputBaseClasses.root}:not(:focus-within) &`]: {
|
|
176
|
+
WebkitUserModify: 'read-only',
|
|
177
|
+
userSelect: 'none'
|
|
178
|
+
}
|
|
179
|
+
}
|
|
166
180
|
}));
|
|
167
181
|
const PickersInputBaseSectionSeparator = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionSeparator, {
|
|
168
182
|
name: 'MuiPickersInputBase',
|
|
@@ -439,7 +453,7 @@ const PickersInputBase = exports.PickersInputBase = /*#__PURE__*/React.forwardRe
|
|
|
439
453
|
}));
|
|
440
454
|
});
|
|
441
455
|
if (process.env.NODE_ENV !== "production") PickersInputBase.displayName = "PickersInputBase";
|
|
442
|
-
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
456
|
+
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes /* remove-proptypes */ = {
|
|
443
457
|
// ----------------------------- Warning --------------------------------
|
|
444
458
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
445
459
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -498,6 +512,7 @@ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
|
498
512
|
onClick: _propTypes.default.func.isRequired,
|
|
499
513
|
onInput: _propTypes.default.func.isRequired,
|
|
500
514
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
515
|
+
onMouseDown: _propTypes.default.func.isRequired,
|
|
501
516
|
onPaste: _propTypes.default.func.isRequired,
|
|
502
517
|
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
503
518
|
readOnly: _propTypes.default.bool,
|
|
@@ -155,7 +155,21 @@ const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent,
|
|
|
155
155
|
// 23px
|
|
156
156
|
letterSpacing: 'inherit',
|
|
157
157
|
width: 'fit-content',
|
|
158
|
-
outline: 'none'
|
|
158
|
+
outline: 'none',
|
|
159
|
+
// Disables Chromium's focus-delegation onto contenteditable descendants
|
|
160
|
+
// while the field is not focused. The bug is Chromium-only, and applying
|
|
161
|
+
// `WebkitUserModify` on WebKit breaks Playwright's `fill()` editability
|
|
162
|
+
// check, so we gate on a Chromium-only CSS property (`-webkit-app-region`,
|
|
163
|
+
// a Blink/Electron extension WebKit never adopted) via `@supports`.
|
|
164
|
+
// The WebKit exclusion is empirical, not guaranteed across versions: the
|
|
165
|
+
// regression guard is the WebKit `fill()` cases in the browser e2e suite,
|
|
166
|
+
// which would fail if a future WebKit started matching this `@supports`.
|
|
167
|
+
'@supports (-webkit-app-region: drag)': {
|
|
168
|
+
[`.${pickersInputBaseClasses.root}:not(:focus-within) &`]: {
|
|
169
|
+
WebkitUserModify: 'read-only',
|
|
170
|
+
userSelect: 'none'
|
|
171
|
+
}
|
|
172
|
+
}
|
|
159
173
|
}));
|
|
160
174
|
const PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparator, {
|
|
161
175
|
name: 'MuiPickersInputBase',
|
|
@@ -432,7 +446,7 @@ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase
|
|
|
432
446
|
}));
|
|
433
447
|
});
|
|
434
448
|
if (process.env.NODE_ENV !== "production") PickersInputBase.displayName = "PickersInputBase";
|
|
435
|
-
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
449
|
+
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes /* remove-proptypes */ = {
|
|
436
450
|
// ----------------------------- Warning --------------------------------
|
|
437
451
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
438
452
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -491,6 +505,7 @@ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
|
491
505
|
onClick: PropTypes.func.isRequired,
|
|
492
506
|
onInput: PropTypes.func.isRequired,
|
|
493
507
|
onKeyDown: PropTypes.func.isRequired,
|
|
508
|
+
onMouseDown: PropTypes.func.isRequired,
|
|
494
509
|
onPaste: PropTypes.func.isRequired,
|
|
495
510
|
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
496
511
|
readOnly: PropTypes.bool,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
import { MuiEvent } from '@mui/x-internals/types';
|
|
4
|
-
import { PickersSectionListProps, PickersSectionListSlotProps } from "../../PickersSectionList/index.mjs";
|
|
5
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import type { MuiEvent } from '@mui/x-internals/types';
|
|
4
|
+
import type { PickersSectionListProps, PickersSectionListSlotProps } from "../../PickersSectionList/index.mjs";
|
|
5
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.mjs";
|
|
6
6
|
export interface PickersInputPropsUsedByField extends Pick<PickersSectionListProps, 'elements' | 'sectionListRef' | 'contentEditable' | 'tabIndex'> {
|
|
7
7
|
/**
|
|
8
8
|
* Is `true` if the current values equals the empty value.
|
|
@@ -11,6 +11,7 @@ export interface PickersInputPropsUsedByField extends Pick<PickersSectionListPro
|
|
|
11
11
|
*/
|
|
12
12
|
areAllSectionsEmpty: boolean;
|
|
13
13
|
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
14
|
+
onMouseDown: React.MouseEventHandler<HTMLDivElement>;
|
|
14
15
|
onKeyDown: React.EventHandler<MuiEvent<React.KeyboardEvent<HTMLDivElement>>>;
|
|
15
16
|
onInput: React.FormEventHandler<HTMLDivElement>;
|
|
16
17
|
onPaste: React.ClipboardEventHandler<HTMLDivElement>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
import { MuiEvent } from '@mui/x-internals/types';
|
|
4
|
-
import { PickersSectionListProps, PickersSectionListSlotProps } from "../../PickersSectionList/index.js";
|
|
5
|
-
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import type { MuiEvent } from '@mui/x-internals/types';
|
|
4
|
+
import type { PickersSectionListProps, PickersSectionListSlotProps } from "../../PickersSectionList/index.js";
|
|
5
|
+
import type { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
6
6
|
export interface PickersInputPropsUsedByField extends Pick<PickersSectionListProps, 'elements' | 'sectionListRef' | 'contentEditable' | 'tabIndex'> {
|
|
7
7
|
/**
|
|
8
8
|
* Is `true` if the current values equals the empty value.
|
|
@@ -11,6 +11,7 @@ export interface PickersInputPropsUsedByField extends Pick<PickersSectionListPro
|
|
|
11
11
|
*/
|
|
12
12
|
areAllSectionsEmpty: boolean;
|
|
13
13
|
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
14
|
+
onMouseDown: React.MouseEventHandler<HTMLDivElement>;
|
|
14
15
|
onKeyDown: React.EventHandler<MuiEvent<React.KeyboardEvent<HTMLDivElement>>>;
|
|
15
16
|
onInput: React.FormEventHandler<HTMLDivElement>;
|
|
16
17
|
onPaste: React.ClipboardEventHandler<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "../PickersInputBase/index.mjs";
|
|
2
|
+
import type { PickersInputBaseProps } from "../PickersInputBase/index.mjs";
|
|
3
3
|
export interface PickersOutlinedInputProps extends PickersInputBaseProps {
|
|
4
4
|
notched?: boolean;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
2
|
+
import type { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
3
|
export interface PickersOutlinedInputProps extends PickersInputBaseProps {
|
|
4
4
|
notched?: boolean;
|
|
5
5
|
}
|
|
@@ -115,21 +115,24 @@ const PickersOutlinedInput = exports.PickersOutlinedInput = /*#__PURE__*/React.f
|
|
|
115
115
|
input: PickersOutlinedInputSectionsContainer
|
|
116
116
|
}, inSlots),
|
|
117
117
|
slotProps: inSlotProps,
|
|
118
|
-
renderSuffix: state =>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
renderSuffix: state => {
|
|
119
|
+
const isNotched = typeof notched !== 'undefined' ? notched : Boolean(state.adornedStart || state.focused || state.filled);
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Outline.default, {
|
|
121
|
+
shrink: isNotched,
|
|
122
|
+
notched: isNotched,
|
|
123
|
+
className: classes.notchedOutline,
|
|
124
|
+
label: label != null && label !== '' && muiFormControl?.required ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
125
|
+
children: [label, "\u2009", '*']
|
|
126
|
+
}) : label
|
|
127
|
+
});
|
|
128
|
+
},
|
|
126
129
|
label: label,
|
|
127
130
|
classes: classes,
|
|
128
131
|
ref: ref
|
|
129
132
|
}));
|
|
130
133
|
});
|
|
131
134
|
if (process.env.NODE_ENV !== "production") PickersOutlinedInput.displayName = "PickersOutlinedInput";
|
|
132
|
-
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
135
|
+
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes /* remove-proptypes */ = {
|
|
133
136
|
// ----------------------------- Warning --------------------------------
|
|
134
137
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
135
138
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -189,6 +192,7 @@ process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
|
189
192
|
onClick: _propTypes.default.func.isRequired,
|
|
190
193
|
onInput: _propTypes.default.func.isRequired,
|
|
191
194
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
195
|
+
onMouseDown: _propTypes.default.func.isRequired,
|
|
192
196
|
onPaste: _propTypes.default.func.isRequired,
|
|
193
197
|
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
194
198
|
readOnly: _propTypes.default.bool,
|
|
@@ -108,21 +108,24 @@ const PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutli
|
|
|
108
108
|
input: PickersOutlinedInputSectionsContainer
|
|
109
109
|
}, inSlots),
|
|
110
110
|
slotProps: inSlotProps,
|
|
111
|
-
renderSuffix: state =>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
renderSuffix: state => {
|
|
112
|
+
const isNotched = typeof notched !== 'undefined' ? notched : Boolean(state.adornedStart || state.focused || state.filled);
|
|
113
|
+
return /*#__PURE__*/_jsx(Outline, {
|
|
114
|
+
shrink: isNotched,
|
|
115
|
+
notched: isNotched,
|
|
116
|
+
className: classes.notchedOutline,
|
|
117
|
+
label: label != null && label !== '' && muiFormControl?.required ? /*#__PURE__*/_jsxs(React.Fragment, {
|
|
118
|
+
children: [label, "\u2009", '*']
|
|
119
|
+
}) : label
|
|
120
|
+
});
|
|
121
|
+
},
|
|
119
122
|
label: label,
|
|
120
123
|
classes: classes,
|
|
121
124
|
ref: ref
|
|
122
125
|
}));
|
|
123
126
|
});
|
|
124
127
|
if (process.env.NODE_ENV !== "production") PickersOutlinedInput.displayName = "PickersOutlinedInput";
|
|
125
|
-
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
128
|
+
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes /* remove-proptypes */ = {
|
|
126
129
|
// ----------------------------- Warning --------------------------------
|
|
127
130
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
128
131
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -182,6 +185,7 @@ process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
|
182
185
|
onClick: PropTypes.func.isRequired,
|
|
183
186
|
onInput: PropTypes.func.isRequired,
|
|
184
187
|
onKeyDown: PropTypes.func.isRequired,
|
|
188
|
+
onMouseDown: PropTypes.func.isRequired,
|
|
185
189
|
onPaste: PropTypes.func.isRequired,
|
|
186
190
|
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
187
191
|
readOnly: PropTypes.bool,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickersInputBaseClasses } from "../PickersInputBase/index.mjs";
|
|
1
|
+
import type { PickersInputBaseClasses } from "../PickersInputBase/index.mjs";
|
|
2
2
|
export interface PickersOutlinedInputClasses extends PickersInputBaseClasses {
|
|
3
3
|
/** Styles applied to the NotchedOutline element. */
|
|
4
4
|
notchedOutline: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
1
|
+
import type { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
|
2
2
|
export interface PickersOutlinedInputClasses extends PickersInputBaseClasses {
|
|
3
3
|
/** Styles applied to the NotchedOutline element. */
|
|
4
4
|
notchedOutline: string;
|