@mui/x-date-pickers 8.0.0-beta.3 → 8.0.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/CHANGELOG.md +282 -96
- package/DatePicker/DatePicker.js +1 -1
- package/DateTimePicker/DateTimePicker.js +1 -1
- package/DesktopDatePicker/DesktopDatePicker.js +2 -7
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/LocalizationProvider/LocalizationProvider.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/MobileTimePicker/MobileTimePicker.js +1 -1
- package/PickersLayout/usePickerLayout.js +3 -2
- package/PickersSectionList/PickersSectionList.types.d.ts +3 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -0
- package/PickersTextField/PickersInput/PickersInput.js +1 -0
- package/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -0
- package/PickersTextField/PickersInputBase/PickersInputBase.js +101 -3
- package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +3 -1
- package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +6 -4
- package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -0
- package/PickersTextField/PickersTextField.js +6 -3
- package/TimePicker/TimePicker.js +1 -1
- package/esm/DatePicker/DatePicker.js +1 -1
- package/esm/DateTimePicker/DateTimePicker.js +1 -1
- package/esm/DesktopDatePicker/DesktopDatePicker.js +2 -7
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/esm/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/esm/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/esm/LocalizationProvider/LocalizationProvider.js +1 -1
- package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
- package/esm/PickersLayout/usePickerLayout.js +3 -2
- package/esm/PickersSectionList/PickersSectionList.types.d.ts +3 -1
- package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
- package/esm/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -0
- package/esm/PickersTextField/PickersInput/PickersInput.js +1 -0
- package/esm/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -0
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +101 -3
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +3 -1
- package/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +6 -4
- package/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
- package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
- package/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -0
- package/esm/PickersTextField/PickersTextField.js +6 -3
- package/esm/TimePicker/TimePicker.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.d.ts +2 -2
- package/esm/internals/components/PickerPopper/PickerPopper.js +6 -0
- package/esm/internals/components/PickerProvider.d.ts +9 -0
- package/esm/internals/components/PickerProvider.js +3 -1
- package/esm/internals/hooks/useField/buildSectionsFromFormat.js +1 -0
- package/esm/internals/hooks/useField/useFieldRootProps.js +3 -2
- package/esm/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -0
- package/esm/internals/hooks/useField/useFieldSectionContainerProps.js +4 -1
- package/esm/internals/hooks/useField/useFieldSectionContentProps.d.ts +2 -2
- package/esm/internals/hooks/useField/useFieldSectionContentProps.js +4 -1
- package/esm/internals/hooks/useField/useFieldV7TextField.js +25 -15
- package/esm/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +3 -2
- package/esm/internals/hooks/usePicker/usePicker.d.ts +1 -0
- package/esm/internals/hooks/usePicker/usePicker.js +21 -13
- package/esm/internals/hooks/usePicker/usePicker.types.d.ts +3 -2
- package/esm/internals/hooks/useViews.d.ts +8 -2
- package/esm/internals/hooks/useViews.js +27 -12
- package/esm/internals/utils/createNonRangePickerStepNavigation.js +3 -3
- package/esm/internals/utils/createStepNavigation.d.ts +19 -2
- package/esm/internals/utils/createStepNavigation.js +16 -6
- package/esm/locales/csCZ.js +1 -1
- package/esm/locales/skSK.js +3 -3
- package/esm/models/fields.d.ts +4 -0
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.d.ts +2 -2
- package/internals/components/PickerPopper/PickerPopper.js +6 -0
- package/internals/components/PickerProvider.d.ts +9 -0
- package/internals/components/PickerProvider.js +3 -1
- package/internals/hooks/useField/buildSectionsFromFormat.js +1 -0
- package/internals/hooks/useField/useFieldRootProps.js +3 -2
- package/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -0
- package/internals/hooks/useField/useFieldSectionContainerProps.js +4 -1
- package/internals/hooks/useField/useFieldSectionContentProps.d.ts +2 -2
- package/internals/hooks/useField/useFieldSectionContentProps.js +4 -1
- package/internals/hooks/useField/useFieldV7TextField.js +25 -15
- package/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +3 -2
- package/internals/hooks/usePicker/usePicker.d.ts +1 -0
- package/internals/hooks/usePicker/usePicker.js +21 -13
- package/internals/hooks/usePicker/usePicker.types.d.ts +3 -2
- package/internals/hooks/useViews.d.ts +8 -2
- package/internals/hooks/useViews.js +28 -13
- package/internals/utils/createNonRangePickerStepNavigation.js +3 -3
- package/internals/utils/createStepNavigation.d.ts +19 -2
- package/internals/utils/createStepNavigation.js +17 -6
- package/locales/csCZ.js +1 -1
- package/locales/skSK.js +3 -3
- package/models/fields.d.ts +4 -0
- package/package.json +3 -11
- package/modern/AdapterDateFns/AdapterDateFns.d.ts +0 -88
- package/modern/AdapterDateFns/AdapterDateFns.js +0 -284
- package/modern/AdapterDateFns/index.d.ts +0 -1
- package/modern/AdapterDateFns/index.js +0 -1
- package/modern/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +0 -64
- package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +0 -291
- package/modern/AdapterDateFnsBase/index.d.ts +0 -1
- package/modern/AdapterDateFnsBase/index.js +0 -1
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +0 -89
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -326
- package/modern/AdapterDateFnsJalali/index.d.ts +0 -1
- package/modern/AdapterDateFnsJalali/index.js +0 -1
- package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +0 -89
- package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +0 -326
- package/modern/AdapterDateFnsJalaliV2/index.d.ts +0 -1
- package/modern/AdapterDateFnsJalaliV2/index.js +0 -1
- package/modern/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +0 -88
- package/modern/AdapterDateFnsV2/AdapterDateFnsV2.js +0 -284
- package/modern/AdapterDateFnsV2/index.d.ts +0 -1
- package/modern/AdapterDateFnsV2/index.js +0 -1
- package/modern/AdapterDayjs/AdapterDayjs.d.ts +0 -129
- package/modern/AdapterDayjs/AdapterDayjs.js +0 -557
- package/modern/AdapterDayjs/index.d.ts +0 -1
- package/modern/AdapterDayjs/index.js +0 -1
- package/modern/AdapterLuxon/AdapterLuxon.d.ts +0 -108
- package/modern/AdapterLuxon/AdapterLuxon.js +0 -500
- package/modern/AdapterLuxon/index.d.ts +0 -1
- package/modern/AdapterLuxon/index.js +0 -1
- package/modern/AdapterMoment/AdapterMoment.d.ts +0 -114
- package/modern/AdapterMoment/AdapterMoment.js +0 -472
- package/modern/AdapterMoment/index.d.ts +0 -1
- package/modern/AdapterMoment/index.js +0 -1
- package/modern/AdapterMomentHijri/AdapterMomentHijri.d.ts +0 -62
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +0 -219
- package/modern/AdapterMomentHijri/index.d.ts +0 -1
- package/modern/AdapterMomentHijri/index.js +0 -1
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +0 -66
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -221
- package/modern/AdapterMomentJalaali/index.d.ts +0 -1
- package/modern/AdapterMomentJalaali/index.js +0 -1
- package/modern/DateCalendar/DateCalendar.d.ts +0 -18
- package/modern/DateCalendar/DateCalendar.js +0 -590
- package/modern/DateCalendar/DateCalendar.types.d.ts +0 -87
- package/modern/DateCalendar/DateCalendar.types.js +0 -1
- package/modern/DateCalendar/DayCalendar.d.ts +0 -85
- package/modern/DateCalendar/DayCalendar.js +0 -449
- package/modern/DateCalendar/PickersFadeTransitionGroup.d.ts +0 -16
- package/modern/DateCalendar/PickersFadeTransitionGroup.js +0 -58
- package/modern/DateCalendar/PickersSlideTransition.d.ts +0 -21
- package/modern/DateCalendar/PickersSlideTransition.js +0 -142
- package/modern/DateCalendar/dateCalendarClasses.d.ts +0 -9
- package/modern/DateCalendar/dateCalendarClasses.js +0 -3
- package/modern/DateCalendar/dayCalendarClasses.d.ts +0 -23
- package/modern/DateCalendar/dayCalendarClasses.js +0 -3
- package/modern/DateCalendar/index.d.ts +0 -12
- package/modern/DateCalendar/index.js +0 -5
- package/modern/DateCalendar/pickersFadeTransitionGroupClasses.d.ts +0 -7
- package/modern/DateCalendar/pickersFadeTransitionGroupClasses.js +0 -3
- package/modern/DateCalendar/pickersSlideTransitionClasses.d.ts +0 -19
- package/modern/DateCalendar/pickersSlideTransitionClasses.js +0 -3
- package/modern/DateCalendar/useCalendarState.d.ts +0 -27
- package/modern/DateCalendar/useCalendarState.js +0 -156
- package/modern/DateCalendar/useIsDateDisabled.d.ts +0 -13
- package/modern/DateCalendar/useIsDateDisabled.js +0 -31
- package/modern/DateField/DateField.d.ts +0 -17
- package/modern/DateField/DateField.js +0 -327
- package/modern/DateField/DateField.types.d.ts +0 -22
- package/modern/DateField/DateField.types.js +0 -1
- package/modern/DateField/index.d.ts +0 -3
- package/modern/DateField/index.js +0 -2
- package/modern/DateField/useDateField.d.ts +0 -2
- package/modern/DateField/useDateField.js +0 -11
- package/modern/DatePicker/DatePicker.d.ts +0 -17
- package/modern/DatePicker/DatePicker.js +0 -368
- package/modern/DatePicker/DatePicker.types.d.ts +0 -38
- package/modern/DatePicker/DatePicker.types.js +0 -1
- package/modern/DatePicker/DatePickerToolbar.d.ts +0 -25
- package/modern/DatePicker/DatePickerToolbar.js +0 -130
- package/modern/DatePicker/datePickerToolbarClasses.d.ts +0 -9
- package/modern/DatePicker/datePickerToolbarClasses.js +0 -5
- package/modern/DatePicker/index.d.ts +0 -6
- package/modern/DatePicker/index.js +0 -3
- package/modern/DatePicker/shared.d.ts +0 -43
- package/modern/DatePicker/shared.js +0 -33
- package/modern/DateTimeField/DateTimeField.d.ts +0 -17
- package/modern/DateTimeField/DateTimeField.js +0 -367
- package/modern/DateTimeField/DateTimeField.types.d.ts +0 -22
- package/modern/DateTimeField/DateTimeField.types.js +0 -1
- package/modern/DateTimeField/index.d.ts +0 -3
- package/modern/DateTimeField/index.js +0 -2
- package/modern/DateTimeField/useDateTimeField.d.ts +0 -2
- package/modern/DateTimeField/useDateTimeField.js +0 -11
- package/modern/DateTimePicker/DateTimePicker.d.ts +0 -17
- package/modern/DateTimePicker/DateTimePicker.js +0 -438
- package/modern/DateTimePicker/DateTimePicker.types.d.ts +0 -34
- package/modern/DateTimePicker/DateTimePicker.types.js +0 -1
- package/modern/DateTimePicker/DateTimePickerTabs.d.ts +0 -39
- package/modern/DateTimePicker/DateTimePickerTabs.js +0 -142
- package/modern/DateTimePicker/DateTimePickerToolbar.d.ts +0 -47
- package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -415
- package/modern/DateTimePicker/dateTimePickerTabsClasses.d.ts +0 -7
- package/modern/DateTimePicker/dateTimePickerTabsClasses.js +0 -5
- package/modern/DateTimePicker/dateTimePickerToolbarClasses.d.ts +0 -23
- package/modern/DateTimePicker/dateTimePickerToolbarClasses.js +0 -5
- package/modern/DateTimePicker/index.d.ts +0 -10
- package/modern/DateTimePicker/index.js +0 -5
- package/modern/DateTimePicker/shared.d.ts +0 -72
- package/modern/DateTimePicker/shared.js +0 -65
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +0 -30
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +0 -100
- package/modern/DayCalendarSkeleton/dayCalendarSkeletonClasses.d.ts +0 -11
- package/modern/DayCalendarSkeleton/dayCalendarSkeletonClasses.js +0 -3
- package/modern/DayCalendarSkeleton/index.d.ts +0 -4
- package/modern/DayCalendarSkeleton/index.js +0 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.d.ts +0 -17
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -384
- package/modern/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -28
- package/modern/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
- package/modern/DesktopDatePicker/index.d.ts +0 -2
- package/modern/DesktopDatePicker/index.js +0 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -17
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -528
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -29
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.ts +0 -11
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +0 -83
- package/modern/DesktopDateTimePicker/index.d.ts +0 -3
- package/modern/DesktopDateTimePicker/index.js +0 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.d.ts +0 -17
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -353
- package/modern/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -26
- package/modern/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
- package/modern/DesktopTimePicker/index.d.ts +0 -2
- package/modern/DesktopTimePicker/index.js +0 -1
- package/modern/DigitalClock/DigitalClock.d.ts +0 -18
- package/modern/DigitalClock/DigitalClock.js +0 -481
- package/modern/DigitalClock/DigitalClock.types.d.ts +0 -54
- package/modern/DigitalClock/DigitalClock.types.js +0 -1
- package/modern/DigitalClock/digitalClockClasses.d.ts +0 -11
- package/modern/DigitalClock/digitalClockClasses.js +0 -6
- package/modern/DigitalClock/index.d.ts +0 -4
- package/modern/DigitalClock/index.js +0 -2
- package/modern/LocalizationProvider/LocalizationProvider.d.ts +0 -55
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -143
- package/modern/LocalizationProvider/index.d.ts +0 -2
- package/modern/LocalizationProvider/index.js +0 -1
- package/modern/MobileDatePicker/MobileDatePicker.d.ts +0 -17
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -377
- package/modern/MobileDatePicker/MobileDatePicker.types.d.ts +0 -22
- package/modern/MobileDatePicker/MobileDatePicker.types.js +0 -1
- package/modern/MobileDatePicker/index.d.ts +0 -2
- package/modern/MobileDatePicker/index.js +0 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.d.ts +0 -17
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -497
- package/modern/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +0 -17
- package/modern/MobileDateTimePicker/MobileDateTimePicker.types.js +0 -1
- package/modern/MobileDateTimePicker/index.d.ts +0 -2
- package/modern/MobileDateTimePicker/index.js +0 -1
- package/modern/MobileTimePicker/MobileTimePicker.d.ts +0 -18
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -316
- package/modern/MobileTimePicker/MobileTimePicker.types.d.ts +0 -19
- package/modern/MobileTimePicker/MobileTimePicker.types.js +0 -1
- package/modern/MobileTimePicker/index.d.ts +0 -2
- package/modern/MobileTimePicker/index.js +0 -1
- package/modern/MonthCalendar/MonthCalendar.d.ts +0 -18
- package/modern/MonthCalendar/MonthCalendar.js +0 -360
- package/modern/MonthCalendar/MonthCalendar.types.d.ts +0 -82
- package/modern/MonthCalendar/MonthCalendar.types.js +0 -1
- package/modern/MonthCalendar/MonthCalendarButton.d.ts +0 -24
- package/modern/MonthCalendar/MonthCalendarButton.js +0 -115
- package/modern/MonthCalendar/index.d.ts +0 -4
- package/modern/MonthCalendar/index.js +0 -2
- package/modern/MonthCalendar/monthCalendarClasses.d.ts +0 -13
- package/modern/MonthCalendar/monthCalendarClasses.js +0 -5
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +0 -17
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +0 -513
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +0 -48
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +0 -1
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +0 -41
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +0 -76
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +0 -26
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +0 -210
- package/modern/MultiSectionDigitalClock/index.d.ts +0 -7
- package/modern/MultiSectionDigitalClock/index.js +0 -3
- package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.d.ts +0 -7
- package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +0 -6
- package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.d.ts +0 -9
- package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +0 -6
- package/modern/PickersActionBar/PickersActionBar.d.ts +0 -29
- package/modern/PickersActionBar/PickersActionBar.js +0 -117
- package/modern/PickersActionBar/index.d.ts +0 -2
- package/modern/PickersActionBar/index.js +0 -1
- package/modern/PickersCalendarHeader/PickersCalendarHeader.d.ts +0 -18
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -280
- package/modern/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -60
- package/modern/PickersCalendarHeader/PickersCalendarHeader.types.js +0 -1
- package/modern/PickersCalendarHeader/index.d.ts +0 -4
- package/modern/PickersCalendarHeader/index.js +0 -2
- package/modern/PickersCalendarHeader/pickersCalendarHeaderClasses.d.ts +0 -15
- package/modern/PickersCalendarHeader/pickersCalendarHeaderClasses.js +0 -3
- package/modern/PickersDay/PickersDay.d.ts +0 -15
- package/modern/PickersDay/PickersDay.js +0 -372
- package/modern/PickersDay/PickersDay.types.d.ts +0 -114
- package/modern/PickersDay/PickersDay.types.js +0 -1
- package/modern/PickersDay/index.d.ts +0 -4
- package/modern/PickersDay/index.js +0 -2
- package/modern/PickersDay/pickersDayClasses.d.ts +0 -19
- package/modern/PickersDay/pickersDayClasses.js +0 -5
- package/modern/PickersDay/usePickerDayOwnerState.d.ts +0 -14
- package/modern/PickersDay/usePickerDayOwnerState.js +0 -32
- package/modern/PickersLayout/PickersLayout.d.ts +0 -23
- package/modern/PickersLayout/PickersLayout.js +0 -168
- package/modern/PickersLayout/PickersLayout.types.d.ts +0 -100
- package/modern/PickersLayout/PickersLayout.types.js +0 -1
- package/modern/PickersLayout/index.d.ts +0 -5
- package/modern/PickersLayout/index.js +0 -3
- package/modern/PickersLayout/pickersLayoutClasses.d.ts +0 -19
- package/modern/PickersLayout/pickersLayoutClasses.js +0 -6
- package/modern/PickersLayout/usePickerLayout.d.ts +0 -7
- package/modern/PickersLayout/usePickerLayout.js +0 -104
- package/modern/PickersSectionList/PickersSectionList.d.ts +0 -20
- package/modern/PickersSectionList/PickersSectionList.js +0 -252
- package/modern/PickersSectionList/PickersSectionList.types.d.ts +0 -59
- package/modern/PickersSectionList/PickersSectionList.types.js +0 -1
- package/modern/PickersSectionList/index.d.ts +0 -4
- package/modern/PickersSectionList/index.js +0 -2
- package/modern/PickersSectionList/pickersSectionListClasses.d.ts +0 -11
- package/modern/PickersSectionList/pickersSectionListClasses.js +0 -6
- package/modern/PickersShortcuts/PickersShortcuts.d.ts +0 -47
- package/modern/PickersShortcuts/PickersShortcuts.js +0 -124
- package/modern/PickersShortcuts/index.d.ts +0 -2
- package/modern/PickersShortcuts/index.js +0 -1
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +0 -18
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +0 -305
- package/modern/PickersTextField/PickersFilledInput/index.d.ts +0 -4
- package/modern/PickersTextField/PickersFilledInput/index.js +0 -2
- package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +0 -23
- package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +0 -8
- package/modern/PickersTextField/PickersInput/PickersInput.d.ts +0 -10
- package/modern/PickersTextField/PickersInput/PickersInput.js +0 -220
- package/modern/PickersTextField/PickersInput/index.d.ts +0 -4
- package/modern/PickersTextField/PickersInput/index.js +0 -2
- package/modern/PickersTextField/PickersInput/pickersInputClasses.d.ts +0 -23
- package/modern/PickersTextField/PickersInput/pickersInputClasses.js +0 -8
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.d.ts +0 -14
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +0 -375
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +0 -59
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.types.js +0 -1
- package/modern/PickersTextField/PickersInputBase/index.d.ts +0 -4
- package/modern/PickersTextField/PickersInputBase/index.js +0 -2
- package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +0 -31
- package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +0 -6
- package/modern/PickersTextField/PickersOutlinedInput/Outline.d.ts +0 -11
- package/modern/PickersTextField/PickersOutlinedInput/Outline.js +0 -137
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +0 -10
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +0 -198
- package/modern/PickersTextField/PickersOutlinedInput/index.d.ts +0 -4
- package/modern/PickersTextField/PickersOutlinedInput/index.js +0 -2
- package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +0 -22
- package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +0 -8
- package/modern/PickersTextField/PickersTextField.d.ts +0 -3
- package/modern/PickersTextField/PickersTextField.js +0 -280
- package/modern/PickersTextField/PickersTextField.types.d.ts +0 -106
- package/modern/PickersTextField/PickersTextField.types.js +0 -1
- package/modern/PickersTextField/index.d.ts +0 -8
- package/modern/PickersTextField/index.js +0 -6
- package/modern/PickersTextField/pickersTextFieldClasses.d.ts +0 -15
- package/modern/PickersTextField/pickersTextFieldClasses.js +0 -6
- package/modern/PickersTextField/usePickerTextFieldOwnerState.d.ts +0 -4
- package/modern/PickersTextField/usePickerTextFieldOwnerState.js +0 -11
- package/modern/StaticDatePicker/StaticDatePicker.d.ts +0 -17
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -310
- package/modern/StaticDatePicker/StaticDatePicker.types.d.ts +0 -22
- package/modern/StaticDatePicker/StaticDatePicker.types.js +0 -1
- package/modern/StaticDatePicker/index.d.ts +0 -2
- package/modern/StaticDatePicker/index.js +0 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.d.ts +0 -17
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -429
- package/modern/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +0 -22
- package/modern/StaticDateTimePicker/StaticDateTimePicker.types.js +0 -1
- package/modern/StaticDateTimePicker/index.d.ts +0 -2
- package/modern/StaticDateTimePicker/index.js +0 -1
- package/modern/StaticTimePicker/StaticTimePicker.d.ts +0 -17
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -248
- package/modern/StaticTimePicker/StaticTimePicker.types.d.ts +0 -18
- package/modern/StaticTimePicker/StaticTimePicker.types.js +0 -1
- package/modern/StaticTimePicker/index.d.ts +0 -2
- package/modern/StaticTimePicker/index.js +0 -1
- package/modern/TimeClock/Clock.d.ts +0 -39
- package/modern/TimeClock/Clock.js +0 -354
- package/modern/TimeClock/ClockNumber.d.ts +0 -19
- package/modern/TimeClock/ClockNumber.js +0 -102
- package/modern/TimeClock/ClockNumbers.d.ts +0 -37
- package/modern/TimeClock/ClockNumbers.js +0 -71
- package/modern/TimeClock/ClockPointer.d.ts +0 -19
- package/modern/TimeClock/ClockPointer.js +0 -119
- package/modern/TimeClock/TimeClock.d.ts +0 -17
- package/modern/TimeClock/TimeClock.js +0 -491
- package/modern/TimeClock/TimeClock.types.d.ts +0 -36
- package/modern/TimeClock/TimeClock.types.js +0 -1
- package/modern/TimeClock/clockClasses.d.ts +0 -23
- package/modern/TimeClock/clockClasses.js +0 -5
- package/modern/TimeClock/clockNumberClasses.d.ts +0 -11
- package/modern/TimeClock/clockNumberClasses.js +0 -5
- package/modern/TimeClock/clockPointerClasses.d.ts +0 -9
- package/modern/TimeClock/clockPointerClasses.js +0 -5
- package/modern/TimeClock/index.d.ts +0 -13
- package/modern/TimeClock/index.js +0 -5
- package/modern/TimeClock/shared.d.ts +0 -4
- package/modern/TimeClock/shared.js +0 -52
- package/modern/TimeClock/timeClockClasses.d.ts +0 -9
- package/modern/TimeClock/timeClockClasses.js +0 -5
- package/modern/TimeField/TimeField.d.ts +0 -17
- package/modern/TimeField/TimeField.js +0 -328
- package/modern/TimeField/TimeField.types.d.ts +0 -22
- package/modern/TimeField/TimeField.types.js +0 -1
- package/modern/TimeField/index.d.ts +0 -3
- package/modern/TimeField/index.js +0 -2
- package/modern/TimeField/useTimeField.d.ts +0 -2
- package/modern/TimeField/useTimeField.js +0 -11
- package/modern/TimePicker/TimePicker.d.ts +0 -17
- package/modern/TimePicker/TimePicker.js +0 -326
- package/modern/TimePicker/TimePicker.types.d.ts +0 -28
- package/modern/TimePicker/TimePicker.types.js +0 -1
- package/modern/TimePicker/TimePickerToolbar.d.ts +0 -28
- package/modern/TimePicker/TimePickerToolbar.js +0 -244
- package/modern/TimePicker/index.d.ts +0 -6
- package/modern/TimePicker/index.js +0 -3
- package/modern/TimePicker/shared.d.ts +0 -49
- package/modern/TimePicker/shared.js +0 -43
- package/modern/TimePicker/timePickerToolbarClasses.d.ts +0 -21
- package/modern/TimePicker/timePickerToolbarClasses.js +0 -5
- package/modern/YearCalendar/YearCalendar.d.ts +0 -16
- package/modern/YearCalendar/YearCalendar.js +0 -410
- package/modern/YearCalendar/YearCalendar.types.d.ts +0 -88
- package/modern/YearCalendar/YearCalendar.types.js +0 -1
- package/modern/YearCalendar/YearCalendarButton.d.ts +0 -23
- package/modern/YearCalendar/YearCalendarButton.js +0 -115
- package/modern/YearCalendar/index.d.ts +0 -4
- package/modern/YearCalendar/index.js +0 -2
- package/modern/YearCalendar/yearCalendarClasses.d.ts +0 -13
- package/modern/YearCalendar/yearCalendarClasses.js +0 -5
- package/modern/dateViewRenderers/dateViewRenderers.d.ts +0 -50
- package/modern/dateViewRenderers/dateViewRenderers.js +0 -83
- package/modern/dateViewRenderers/index.d.ts +0 -2
- package/modern/dateViewRenderers/index.js +0 -1
- package/modern/hooks/index.d.ts +0 -6
- package/modern/hooks/index.js +0 -6
- package/modern/hooks/useIsValidValue.d.ts +0 -7
- package/modern/hooks/useIsValidValue.js +0 -11
- package/modern/hooks/useParsedFormat.d.ts +0 -16
- package/modern/hooks/useParsedFormat.js +0 -41
- package/modern/hooks/usePickerActionsContext.d.ts +0 -7
- package/modern/hooks/usePickerActionsContext.js +0 -15
- package/modern/hooks/usePickerContext.d.ts +0 -8
- package/modern/hooks/usePickerContext.js +0 -15
- package/modern/hooks/usePickerTranslations.d.ts +0 -1
- package/modern/hooks/usePickerTranslations.js +0 -4
- package/modern/hooks/useSplitFieldProps.d.ts +0 -24
- package/modern/hooks/useSplitFieldProps.js +0 -48
- package/modern/icons/index.d.ts +0 -48
- package/modern/icons/index.js +0 -67
- package/modern/index.d.ts +0 -39
- package/modern/index.js +0 -61
- package/modern/internals/components/PickerFieldUI.d.ts +0 -143
- package/modern/internals/components/PickerFieldUI.js +0 -321
- package/modern/internals/components/PickerPopper/PickerPopper.d.ts +0 -68
- package/modern/internals/components/PickerPopper/PickerPopper.js +0 -330
- package/modern/internals/components/PickerPopper/index.d.ts +0 -4
- package/modern/internals/components/PickerPopper/index.js +0 -2
- package/modern/internals/components/PickerPopper/pickerPopperClasses.d.ts +0 -9
- package/modern/internals/components/PickerPopper/pickerPopperClasses.js +0 -6
- package/modern/internals/components/PickerProvider.d.ts +0 -284
- package/modern/internals/components/PickerProvider.js +0 -64
- package/modern/internals/components/PickerViewRoot/PickerViewRoot.d.ts +0 -1
- package/modern/internals/components/PickerViewRoot/PickerViewRoot.js +0 -10
- package/modern/internals/components/PickerViewRoot/index.d.ts +0 -1
- package/modern/internals/components/PickerViewRoot/index.js +0 -1
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.ts +0 -3
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +0 -176
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +0 -74
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.js +0 -1
- package/modern/internals/components/PickersArrowSwitcher/index.d.ts +0 -4
- package/modern/internals/components/PickersArrowSwitcher/index.js +0 -2
- package/modern/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.ts +0 -19
- package/modern/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +0 -5
- package/modern/internals/components/PickersModalDialog.d.ts +0 -48
- package/modern/internals/components/PickersModalDialog.js +0 -51
- package/modern/internals/components/PickersToolbar.d.ts +0 -14
- package/modern/internals/components/PickersToolbar.js +0 -116
- package/modern/internals/components/PickersToolbarButton.d.ts +0 -15
- package/modern/internals/components/PickersToolbarButton.js +0 -61
- package/modern/internals/components/PickersToolbarText.d.ts +0 -11
- package/modern/internals/components/PickersToolbarText.js +0 -52
- package/modern/internals/components/pickersToolbarButtonClasses.d.ts +0 -7
- package/modern/internals/components/pickersToolbarButtonClasses.js +0 -5
- package/modern/internals/components/pickersToolbarClasses.d.ts +0 -11
- package/modern/internals/components/pickersToolbarClasses.js +0 -5
- package/modern/internals/components/pickersToolbarTextClasses.d.ts +0 -7
- package/modern/internals/components/pickersToolbarTextClasses.js +0 -5
- package/modern/internals/constants/dimensions.d.ts +0 -7
- package/modern/internals/constants/dimensions.js +0 -7
- package/modern/internals/demo/DemoContainer.d.ts +0 -27
- package/modern/internals/demo/DemoContainer.js +0 -178
- package/modern/internals/demo/index.d.ts +0 -1
- package/modern/internals/demo/index.js +0 -1
- package/modern/internals/hooks/date-helpers-hooks.d.ts +0 -24
- package/modern/internals/hooks/date-helpers-hooks.js +0 -40
- package/modern/internals/hooks/useClockReferenceDate.d.ts +0 -15
- package/modern/internals/hooks/useClockReferenceDate.js +0 -25
- package/modern/internals/hooks/useControlledValue.d.ts +0 -38
- package/modern/internals/hooks/useControlledValue.js +0 -56
- package/modern/internals/hooks/useDesktopPicker/index.d.ts +0 -2
- package/modern/internals/hooks/useDesktopPicker/index.js +0 -1
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +0 -16
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +0 -97
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +0 -48
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.js +0 -1
- package/modern/internals/hooks/useField/buildSectionsFromFormat.d.ts +0 -15
- package/modern/internals/hooks/useField/buildSectionsFromFormat.js +0 -254
- package/modern/internals/hooks/useField/index.d.ts +0 -4
- package/modern/internals/hooks/useField/index.js +0 -3
- package/modern/internals/hooks/useField/syncSelectionToDOM.d.ts +0 -9
- package/modern/internals/hooks/useField/syncSelectionToDOM.js +0 -50
- package/modern/internals/hooks/useField/useField.d.ts +0 -3
- package/modern/internals/hooks/useField/useField.js +0 -9
- package/modern/internals/hooks/useField/useField.types.d.ts +0 -329
- package/modern/internals/hooks/useField/useField.types.js +0 -1
- package/modern/internals/hooks/useField/useField.utils.d.ts +0 -36
- package/modern/internals/hooks/useField/useField.utils.js +0 -496
- package/modern/internals/hooks/useField/useFieldCharacterEditing.d.ts +0 -29
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +0 -240
- package/modern/internals/hooks/useField/useFieldHiddenInputProps.d.ts +0 -20
- package/modern/internals/hooks/useField/useFieldHiddenInputProps.js +0 -31
- package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +0 -17
- package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.js +0 -53
- package/modern/internals/hooks/useField/useFieldRootHandleKeyDown.d.ts +0 -16
- package/modern/internals/hooks/useField/useFieldRootHandleKeyDown.js +0 -205
- package/modern/internals/hooks/useField/useFieldRootProps.d.ts +0 -32
- package/modern/internals/hooks/useField/useFieldRootProps.js +0 -150
- package/modern/internals/hooks/useField/useFieldSectionContainerProps.d.ts +0 -15
- package/modern/internals/hooks/useField/useFieldSectionContainerProps.js +0 -29
- package/modern/internals/hooks/useField/useFieldSectionContentProps.d.ts +0 -23
- package/modern/internals/hooks/useField/useFieldSectionContentProps.js +0 -226
- package/modern/internals/hooks/useField/useFieldState.d.ts +0 -44
- package/modern/internals/hooks/useField/useFieldState.js +0 -392
- package/modern/internals/hooks/useField/useFieldV6TextField.d.ts +0 -26
- package/modern/internals/hooks/useField/useFieldV6TextField.js +0 -409
- package/modern/internals/hooks/useField/useFieldV7TextField.d.ts +0 -3
- package/modern/internals/hooks/useField/useFieldV7TextField.js +0 -243
- package/modern/internals/hooks/useFieldOwnerState.d.ts +0 -6
- package/modern/internals/hooks/useFieldOwnerState.js +0 -16
- package/modern/internals/hooks/useMobilePicker/index.d.ts +0 -2
- package/modern/internals/hooks/useMobilePicker/index.js +0 -1
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.d.ts +0 -16
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +0 -97
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +0 -42
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.js +0 -1
- package/modern/internals/hooks/useNullableFieldPrivateContext.d.ts +0 -9
- package/modern/internals/hooks/useNullableFieldPrivateContext.js +0 -5
- package/modern/internals/hooks/useNullablePickerContext.d.ts +0 -5
- package/modern/internals/hooks/useNullablePickerContext.js +0 -10
- package/modern/internals/hooks/usePicker/hooks/useOrientation.d.ts +0 -2
- package/modern/internals/hooks/usePicker/hooks/useOrientation.js +0 -34
- package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +0 -21
- package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +0 -191
- package/modern/internals/hooks/usePicker/index.d.ts +0 -2
- package/modern/internals/hooks/usePicker/index.js +0 -1
- package/modern/internals/hooks/usePicker/usePicker.d.ts +0 -15
- package/modern/internals/hooks/usePicker/usePicker.js +0 -306
- package/modern/internals/hooks/usePicker/usePicker.types.d.ts +0 -186
- package/modern/internals/hooks/usePicker/usePicker.types.js +0 -1
- package/modern/internals/hooks/usePickerPrivateContext.d.ts +0 -4
- package/modern/internals/hooks/usePickerPrivateContext.js +0 -9
- package/modern/internals/hooks/useReduceAnimations.d.ts +0 -2
- package/modern/internals/hooks/useReduceAnimations.js +0 -17
- package/modern/internals/hooks/useStaticPicker/index.d.ts +0 -2
- package/modern/internals/hooks/useStaticPicker/index.js +0 -1
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.d.ts +0 -16
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +0 -69
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +0 -46
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.js +0 -1
- package/modern/internals/hooks/useToolbarOwnerState.d.ts +0 -10
- package/modern/internals/hooks/useToolbarOwnerState.js +0 -13
- package/modern/internals/hooks/useUtils.d.ts +0 -13
- package/modern/internals/hooks/useUtils.js +0 -27
- package/modern/internals/hooks/useViews.d.ts +0 -79
- package/modern/internals/hooks/useViews.js +0 -113
- package/modern/internals/index.d.ts +0 -72
- package/modern/internals/index.js +0 -40
- package/modern/internals/models/common.d.ts +0 -5
- package/modern/internals/models/common.js +0 -1
- package/modern/internals/models/fields.d.ts +0 -12
- package/modern/internals/models/fields.js +0 -1
- package/modern/internals/models/formProps.d.ts +0 -14
- package/modern/internals/models/formProps.js +0 -1
- package/modern/internals/models/helpers.d.ts +0 -6
- package/modern/internals/models/helpers.js +0 -1
- package/modern/internals/models/index.d.ts +0 -5
- package/modern/internals/models/index.js +0 -5
- package/modern/internals/models/manager.d.ts +0 -119
- package/modern/internals/models/manager.js +0 -1
- package/modern/internals/models/pickers.d.ts +0 -1
- package/modern/internals/models/pickers.js +0 -1
- package/modern/internals/models/props/basePickerProps.d.ts +0 -27
- package/modern/internals/models/props/basePickerProps.js +0 -1
- package/modern/internals/models/props/tabs.d.ts +0 -9
- package/modern/internals/models/props/tabs.js +0 -1
- package/modern/internals/models/props/time.d.ts +0 -77
- package/modern/internals/models/props/time.js +0 -1
- package/modern/internals/models/props/toolbar.d.ts +0 -27
- package/modern/internals/models/props/toolbar.js +0 -1
- package/modern/internals/models/validation.d.ts +0 -116
- package/modern/internals/models/validation.js +0 -1
- package/modern/internals/models/value.d.ts +0 -12
- package/modern/internals/models/value.js +0 -1
- package/modern/internals/utils/createNonRangePickerStepNavigation.d.ts +0 -13
- package/modern/internals/utils/createNonRangePickerStepNavigation.js +0 -24
- package/modern/internals/utils/createStepNavigation.d.ts +0 -32
- package/modern/internals/utils/createStepNavigation.js +0 -34
- package/modern/internals/utils/date-time-utils.d.ts +0 -26
- package/modern/internals/utils/date-time-utils.js +0 -68
- package/modern/internals/utils/date-utils.d.ts +0 -40
- package/modern/internals/utils/date-utils.js +0 -124
- package/modern/internals/utils/getDefaultReferenceDate.d.ts +0 -31
- package/modern/internals/utils/getDefaultReferenceDate.js +0 -59
- package/modern/internals/utils/time-utils.d.ts +0 -21
- package/modern/internals/utils/time-utils.js +0 -59
- package/modern/internals/utils/utils.d.ts +0 -16
- package/modern/internals/utils/utils.js +0 -56
- package/modern/internals/utils/valueManagers.d.ts +0 -7
- package/modern/internals/utils/valueManagers.js +0 -44
- package/modern/internals/utils/views.d.ts +0 -16
- package/modern/internals/utils/views.js +0 -28
- package/modern/locales/beBY.d.ts +0 -83
- package/modern/locales/beBY.js +0 -82
- package/modern/locales/bgBG.d.ts +0 -83
- package/modern/locales/bgBG.js +0 -77
- package/modern/locales/bnBD.d.ts +0 -83
- package/modern/locales/bnBD.js +0 -77
- package/modern/locales/caES.d.ts +0 -83
- package/modern/locales/caES.js +0 -77
- package/modern/locales/csCZ.d.ts +0 -83
- package/modern/locales/csCZ.js +0 -78
- package/modern/locales/daDK.d.ts +0 -83
- package/modern/locales/daDK.js +0 -78
- package/modern/locales/deDE.d.ts +0 -83
- package/modern/locales/deDE.js +0 -77
- package/modern/locales/elGR.d.ts +0 -83
- package/modern/locales/elGR.js +0 -80
- package/modern/locales/enUS.d.ts +0 -84
- package/modern/locales/enUS.js +0 -74
- package/modern/locales/esES.d.ts +0 -83
- package/modern/locales/esES.js +0 -77
- package/modern/locales/eu.d.ts +0 -83
- package/modern/locales/eu.js +0 -80
- package/modern/locales/faIR.d.ts +0 -83
- package/modern/locales/faIR.js +0 -77
- package/modern/locales/fiFI.d.ts +0 -83
- package/modern/locales/fiFI.js +0 -77
- package/modern/locales/frFR.d.ts +0 -83
- package/modern/locales/frFR.js +0 -77
- package/modern/locales/heIL.d.ts +0 -83
- package/modern/locales/heIL.js +0 -77
- package/modern/locales/hrHR.d.ts +0 -83
- package/modern/locales/hrHR.js +0 -94
- package/modern/locales/huHU.d.ts +0 -83
- package/modern/locales/huHU.js +0 -78
- package/modern/locales/index.d.ts +0 -41
- package/modern/locales/index.js +0 -41
- package/modern/locales/isIS.d.ts +0 -83
- package/modern/locales/isIS.js +0 -81
- package/modern/locales/itIT.d.ts +0 -83
- package/modern/locales/itIT.js +0 -77
- package/modern/locales/jaJP.d.ts +0 -83
- package/modern/locales/jaJP.js +0 -78
- package/modern/locales/koKR.d.ts +0 -83
- package/modern/locales/koKR.js +0 -78
- package/modern/locales/kzKZ.d.ts +0 -83
- package/modern/locales/kzKZ.js +0 -82
- package/modern/locales/mk.d.ts +0 -82
- package/modern/locales/mk.js +0 -77
- package/modern/locales/nbNO.d.ts +0 -83
- package/modern/locales/nbNO.js +0 -77
- package/modern/locales/nlNL.d.ts +0 -83
- package/modern/locales/nlNL.js +0 -77
- package/modern/locales/nnNO.d.ts +0 -83
- package/modern/locales/nnNO.js +0 -77
- package/modern/locales/plPL.d.ts +0 -83
- package/modern/locales/plPL.js +0 -79
- package/modern/locales/ptBR.d.ts +0 -83
- package/modern/locales/ptBR.js +0 -79
- package/modern/locales/ptPT.d.ts +0 -83
- package/modern/locales/ptPT.js +0 -77
- package/modern/locales/roRO.d.ts +0 -83
- package/modern/locales/roRO.js +0 -78
- package/modern/locales/ruRU.d.ts +0 -83
- package/modern/locales/ruRU.js +0 -78
- package/modern/locales/skSK.d.ts +0 -83
- package/modern/locales/skSK.js +0 -82
- package/modern/locales/svSE.d.ts +0 -83
- package/modern/locales/svSE.js +0 -77
- package/modern/locales/trTR.d.ts +0 -83
- package/modern/locales/trTR.js +0 -81
- package/modern/locales/ukUA.d.ts +0 -83
- package/modern/locales/ukUA.js +0 -77
- package/modern/locales/urPK.d.ts +0 -83
- package/modern/locales/urPK.js +0 -82
- package/modern/locales/utils/getPickersLocalization.d.ts +0 -83
- package/modern/locales/utils/getPickersLocalization.js +0 -12
- package/modern/locales/utils/pickersLocaleTextApi.d.ts +0 -118
- package/modern/locales/utils/pickersLocaleTextApi.js +0 -1
- package/modern/locales/viVN.d.ts +0 -83
- package/modern/locales/viVN.js +0 -77
- package/modern/locales/zhCN.d.ts +0 -83
- package/modern/locales/zhCN.js +0 -76
- package/modern/locales/zhHK.d.ts +0 -83
- package/modern/locales/zhHK.js +0 -76
- package/modern/locales/zhTW.d.ts +0 -83
- package/modern/locales/zhTW.js +0 -76
- package/modern/managers/index.d.ts +0 -6
- package/modern/managers/index.js +0 -3
- package/modern/managers/useDateManager.d.ts +0 -14
- package/modern/managers/useDateManager.js +0 -48
- package/modern/managers/useDateTimeManager.d.ts +0 -15
- package/modern/managers/useDateTimeManager.js +0 -53
- package/modern/managers/useTimeManager.d.ts +0 -15
- package/modern/managers/useTimeManager.js +0 -48
- package/modern/models/adapters.d.ts +0 -542
- package/modern/models/adapters.js +0 -1
- package/modern/models/common.d.ts +0 -6
- package/modern/models/common.js +0 -1
- package/modern/models/fields.d.ts +0 -139
- package/modern/models/fields.js +0 -1
- package/modern/models/index.d.ts +0 -9
- package/modern/models/index.js +0 -11
- package/modern/models/manager.d.ts +0 -78
- package/modern/models/manager.js +0 -1
- package/modern/models/pickers.d.ts +0 -58
- package/modern/models/pickers.js +0 -1
- package/modern/models/timezone.d.ts +0 -11
- package/modern/models/timezone.js +0 -1
- package/modern/models/validation.d.ts +0 -22
- package/modern/models/validation.js +0 -1
- package/modern/models/views.d.ts +0 -3
- package/modern/models/views.js +0 -1
- package/modern/package.json +0 -1
- package/modern/themeAugmentation/components.d.ts +0 -190
- package/modern/themeAugmentation/index.d.ts +0 -3
- package/modern/themeAugmentation/index.js +0 -0
- package/modern/themeAugmentation/overrides.d.ts +0 -64
- package/modern/themeAugmentation/props.d.ts +0 -102
- package/modern/timeViewRenderers/index.d.ts +0 -2
- package/modern/timeViewRenderers/index.js +0 -1
- package/modern/timeViewRenderers/timeViewRenderers.d.ts +0 -103
- package/modern/timeViewRenderers/timeViewRenderers.js +0 -183
- package/modern/validation/extractValidationProps.d.ts +0 -11
- package/modern/validation/extractValidationProps.js +0 -14
- package/modern/validation/index.d.ts +0 -9
- package/modern/validation/index.js +0 -5
- package/modern/validation/useValidation.d.ts +0 -68
- package/modern/validation/useValidation.js +0 -53
- package/modern/validation/validateDate.d.ts +0 -18
- package/modern/validation/validateDate.js +0 -55
- package/modern/validation/validateDateTime.d.ts +0 -19
- package/modern/validation/validateDateTime.js +0 -39
- package/modern/validation/validateTime.d.ts +0 -18
- package/modern/validation/validateTime.js +0 -59
- package/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FieldSectionType, FieldSection, FieldSelectedSections, MuiPickersAdapter, TimezoneProps, FieldSectionContentType, PickerValidDate, FieldRef, OnErrorProps, InferFieldSection, PickerManager, PickerValueType } from "../../../models/index.js";
|
|
3
|
-
import { InternalPropNames } from "../../../hooks/useSplitFieldProps.js";
|
|
4
|
-
import type { PickersSectionElement, PickersSectionListRef } from '../../../PickersSectionList';
|
|
5
|
-
import { FormProps, InferNonNullablePickerValue, PickerValidValue } from "../../models/index.js";
|
|
6
|
-
export interface UseFieldParameters<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError, TValidationProps extends {}, TProps extends UseFieldProps<TEnableAccessibleFieldDOMStructure>> {
|
|
7
|
-
manager: PickerManager<TValue, TEnableAccessibleFieldDOMStructure, TError, TValidationProps, any>;
|
|
8
|
-
props: TProps;
|
|
9
|
-
skipContextFieldRefAssignment?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface UseFieldInternalProps<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError> extends TimezoneProps, FormProps, OnErrorProps<TValue, TError> {
|
|
12
|
-
/**
|
|
13
|
-
* The selected value.
|
|
14
|
-
* Used when the component is controlled.
|
|
15
|
-
*/
|
|
16
|
-
value?: TValue;
|
|
17
|
-
/**
|
|
18
|
-
* The default value. Use when the component is not controlled.
|
|
19
|
-
*/
|
|
20
|
-
defaultValue?: TValue;
|
|
21
|
-
/**
|
|
22
|
-
* The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.
|
|
23
|
-
* For example, on time fields it will be used to determine the date to set.
|
|
24
|
-
* @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
|
|
25
|
-
*/
|
|
26
|
-
referenceDate?: PickerValidDate;
|
|
27
|
-
/**
|
|
28
|
-
* Callback fired when the value changes.
|
|
29
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
30
|
-
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
31
|
-
* @param {TValue} value The new value.
|
|
32
|
-
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
33
|
-
*/
|
|
34
|
-
onChange?: FieldChangeHandler<TValue, TError>;
|
|
35
|
-
/**
|
|
36
|
-
* Format of the date when rendered in the input(s).
|
|
37
|
-
*/
|
|
38
|
-
format: string;
|
|
39
|
-
/**
|
|
40
|
-
* Density of the format when rendered in the input.
|
|
41
|
-
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
42
|
-
* @default "dense"
|
|
43
|
-
*/
|
|
44
|
-
formatDensity?: 'dense' | 'spacious';
|
|
45
|
-
/**
|
|
46
|
-
* If `true`, the format will respect the leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
|
|
47
|
-
* If `false`, the format will always add leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
|
|
48
|
-
*
|
|
49
|
-
* Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (for example "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
|
|
50
|
-
*
|
|
51
|
-
* Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.
|
|
52
|
-
* If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
|
|
53
|
-
*
|
|
54
|
-
* Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
|
|
55
|
-
* This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
|
|
56
|
-
*
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
shouldRespectLeadingZeros?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* The currently selected sections.
|
|
62
|
-
* This prop accepts four formats:
|
|
63
|
-
* 1. If a number is provided, the section at this index will be selected.
|
|
64
|
-
* 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
|
|
65
|
-
* 3. If `"all"` is provided, all the sections will be selected.
|
|
66
|
-
* 4. If `null` is provided, no section will be selected.
|
|
67
|
-
* If not provided, the selected sections will be handled internally.
|
|
68
|
-
*/
|
|
69
|
-
selectedSections?: FieldSelectedSections;
|
|
70
|
-
/**
|
|
71
|
-
* Callback fired when the selected sections change.
|
|
72
|
-
* @param {FieldSelectedSections} newValue The new selected sections.
|
|
73
|
-
*/
|
|
74
|
-
onSelectedSectionsChange?: (newValue: FieldSelectedSections) => void;
|
|
75
|
-
/**
|
|
76
|
-
* The ref object used to imperatively interact with the field.
|
|
77
|
-
*/
|
|
78
|
-
unstableFieldRef?: React.Ref<FieldRef<TValue>>;
|
|
79
|
-
/**
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
enableAccessibleFieldDOMStructure?: TEnableAccessibleFieldDOMStructure;
|
|
83
|
-
/**
|
|
84
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
|
-
autoFocus?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* If `true`, the component is displayed in focused state.
|
|
90
|
-
*/
|
|
91
|
-
focused?: boolean;
|
|
92
|
-
}
|
|
93
|
-
export type UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure extends boolean> = TEnableAccessibleFieldDOMStructure extends false ? {
|
|
94
|
-
clearable?: boolean;
|
|
95
|
-
error?: boolean;
|
|
96
|
-
placeholder?: string;
|
|
97
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
98
|
-
onClick?: React.MouseEventHandler;
|
|
99
|
-
onFocus?: React.FocusEventHandler;
|
|
100
|
-
onKeyDown?: React.KeyboardEventHandler;
|
|
101
|
-
onBlur?: React.FocusEventHandler;
|
|
102
|
-
onPaste?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
103
|
-
onClear?: React.MouseEventHandler;
|
|
104
|
-
} : {
|
|
105
|
-
clearable?: boolean;
|
|
106
|
-
error?: boolean;
|
|
107
|
-
focused?: boolean;
|
|
108
|
-
sectionListRef?: React.Ref<PickersSectionListRef>;
|
|
109
|
-
onClick?: React.MouseEventHandler;
|
|
110
|
-
onKeyDown?: React.KeyboardEventHandler;
|
|
111
|
-
onFocus?: React.FocusEventHandler;
|
|
112
|
-
onBlur?: React.FocusEventHandler;
|
|
113
|
-
onInput?: React.FormEventHandler<HTMLDivElement>;
|
|
114
|
-
onPaste?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
115
|
-
onClear?: React.MouseEventHandler;
|
|
116
|
-
};
|
|
117
|
-
type UseFieldAdditionalProps<TEnableAccessibleFieldDOMStructure extends boolean> = TEnableAccessibleFieldDOMStructure extends false ? {
|
|
118
|
-
/**
|
|
119
|
-
* The aria label to set on the button that opens the Picker.
|
|
120
|
-
*/
|
|
121
|
-
openPickerAriaLabel: string;
|
|
122
|
-
enableAccessibleFieldDOMStructure: false;
|
|
123
|
-
focused: boolean | undefined;
|
|
124
|
-
inputMode: 'text' | 'numeric';
|
|
125
|
-
placeholder: string;
|
|
126
|
-
value: string;
|
|
127
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
128
|
-
autoComplete: 'off';
|
|
129
|
-
} : {
|
|
130
|
-
/**
|
|
131
|
-
* The aria label to set on the button that opens the Picker.
|
|
132
|
-
*/
|
|
133
|
-
openPickerAriaLabel: string;
|
|
134
|
-
enableAccessibleFieldDOMStructure: true;
|
|
135
|
-
elements: PickersSectionElement[];
|
|
136
|
-
tabIndex: number | undefined;
|
|
137
|
-
contentEditable: boolean;
|
|
138
|
-
value: string;
|
|
139
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
140
|
-
areAllSectionsEmpty: boolean;
|
|
141
|
-
focused: boolean;
|
|
142
|
-
};
|
|
143
|
-
export type UseFieldReturnValue<TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseFieldProps<TEnableAccessibleFieldDOMStructure>> = Required<Pick<UseFieldInternalProps<any, any, any>, 'disabled' | 'readOnly' | 'autoFocus'>> & Required<UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure>> & UseFieldAdditionalProps<TEnableAccessibleFieldDOMStructure> & Omit<TProps, InternalPropNames<PickerValueType>>;
|
|
144
|
-
export type FieldSectionValueBoundaries<SectionType extends FieldSectionType> = {
|
|
145
|
-
minimum: number;
|
|
146
|
-
maximum: number;
|
|
147
|
-
} & (SectionType extends 'day' ? {
|
|
148
|
-
longestMonth: PickerValidDate;
|
|
149
|
-
} : {});
|
|
150
|
-
export type FieldSectionsValueBoundaries = { [SectionType in FieldSectionType]: (params: {
|
|
151
|
-
currentDate: PickerValidDate | null;
|
|
152
|
-
format: string;
|
|
153
|
-
contentType: FieldSectionContentType;
|
|
154
|
-
}) => FieldSectionValueBoundaries<SectionType> };
|
|
155
|
-
export type FieldSectionsBoundaries = { [SectionType in FieldSectionType]: {
|
|
156
|
-
minimum: number;
|
|
157
|
-
maximum: number;
|
|
158
|
-
} };
|
|
159
|
-
export type FieldChangeHandler<TValue extends PickerValidValue, TError> = (value: TValue, context: FieldChangeHandlerContext<TError>) => void;
|
|
160
|
-
export interface FieldChangeHandlerContext<TError> {
|
|
161
|
-
validationError: TError;
|
|
162
|
-
}
|
|
163
|
-
export type FieldParsedSelectedSections = number | 'all' | null;
|
|
164
|
-
export interface FieldValueManager<TValue extends PickerValidValue> {
|
|
165
|
-
/**
|
|
166
|
-
* Creates the section list from the current value.
|
|
167
|
-
* The `prevSections` are used on the range fields to avoid losing the sections of a partially filled date when editing the other date.
|
|
168
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
169
|
-
* @param {TValue} value The current value to generate sections from.
|
|
170
|
-
* @param {(date: PickerValidDate | null) => FieldSection[]} getSectionsFromDate Returns the sections of the given date.
|
|
171
|
-
* @returns {InferFieldSection<TValue>[]} The new section list.
|
|
172
|
-
*/
|
|
173
|
-
getSectionsFromValue: (value: TValue, getSectionsFromDate: (date: PickerValidDate | null) => FieldSection[]) => InferFieldSection<TValue>[];
|
|
174
|
-
/**
|
|
175
|
-
* Creates the string value to render in the input based on the current section list.
|
|
176
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
177
|
-
* @param {InferFieldSection<TValue>[]} sections The current section list.
|
|
178
|
-
* @param {string} localizedDigits The conversion table from localized to 0-9 digits.
|
|
179
|
-
* @param {boolean} isRtl `true` if the current orientation is "right to left"
|
|
180
|
-
* @returns {string} The string value to render in the input.
|
|
181
|
-
*/
|
|
182
|
-
getV6InputValueFromSections: (sections: InferFieldSection<TValue>[], localizedDigits: string[], isRtl: boolean) => string;
|
|
183
|
-
/**
|
|
184
|
-
* Creates the string value to render in the input based on the current section list.
|
|
185
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
186
|
-
* @param {InferFieldSection<TValue>[]} sections The current section list.
|
|
187
|
-
* @returns {string} The string value to render in the input.
|
|
188
|
-
*/
|
|
189
|
-
getV7HiddenInputValueFromSections: (sections: InferFieldSection<TValue>[]) => string;
|
|
190
|
-
/**
|
|
191
|
-
* Parses a string version (most of the time coming from the input).
|
|
192
|
-
* This method should only be used when the change does not come from a single section.
|
|
193
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
194
|
-
* @param {string} valueStr The string value to parse.
|
|
195
|
-
* @param {TValue} referenceValue The reference value currently stored in state.
|
|
196
|
-
* @param {(dateStr: string, referenceDate: PickerValidDate) => PickerValidDate | null} parseDate A method to convert a string date into a parsed one.
|
|
197
|
-
* @returns {TValue} The new parsed value.
|
|
198
|
-
*/
|
|
199
|
-
parseValueStr: (valueStr: string, referenceValue: InferNonNullablePickerValue<TValue>, parseDate: (dateStr: string, referenceDate: PickerValidDate) => PickerValidDate | null) => TValue;
|
|
200
|
-
/**
|
|
201
|
-
* Update the reference value with the new value.
|
|
202
|
-
* This method must make sure that no date inside the returned `referenceValue` is invalid.
|
|
203
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
204
|
-
* @param {MuiPickersAdapter} utils The utils to manipulate the date.
|
|
205
|
-
* @param {TValue} value The new value from which we want to take all valid dates in the `referenceValue` state.
|
|
206
|
-
* @param {TValue} prevReferenceValue The previous reference value. It is used as a fallback for invalid dates in the new value.
|
|
207
|
-
* @returns {TValue} The new reference value with no invalid date.
|
|
208
|
-
*/
|
|
209
|
-
updateReferenceValue: (utils: MuiPickersAdapter, value: TValue, prevReferenceValue: InferNonNullablePickerValue<TValue>) => InferNonNullablePickerValue<TValue>;
|
|
210
|
-
/**
|
|
211
|
-
* Extract from the given value the date that contains the given section.
|
|
212
|
-
* @param {TValue} value The value to extract the date from.
|
|
213
|
-
* @param {InferFieldSection<TValue>} section The section to get the date from.
|
|
214
|
-
* @returns {PickerValidDate | null} The date that contains the section.
|
|
215
|
-
*/
|
|
216
|
-
getDateFromSection: (value: TValue, section: InferFieldSection<TValue>) => PickerValidDate | null;
|
|
217
|
-
/**
|
|
218
|
-
* Get the sections of the date that contains the given section.
|
|
219
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
220
|
-
* @param {InferFieldSection<TValue>[]} sections The sections of the full value.
|
|
221
|
-
* @param {InferFieldSection<TValue>} section A section of the date from which we want to get all the sections.
|
|
222
|
-
* @returns {InferFieldSection<TValue>[]} The sections of the date that contains the section.
|
|
223
|
-
*/
|
|
224
|
-
getDateSectionsFromValue: (sections: InferFieldSection<TValue>[], section: InferFieldSection<TValue>) => InferFieldSection<TValue>[];
|
|
225
|
-
/**
|
|
226
|
-
* Creates a new value based on the provided date and the current value.
|
|
227
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
228
|
-
* @param {TValue} value The value to update the date in.
|
|
229
|
-
* @param {InferFieldSection<TValue>} section A section of the date we want to update in the value.
|
|
230
|
-
* @param {PickerValidDate | null} date The date that contains the section.
|
|
231
|
-
* @returns {TValue} The updated value.
|
|
232
|
-
*/
|
|
233
|
-
updateDateInValue: (value: TValue, section: InferFieldSection<TValue>, date: PickerValidDate | null) => TValue;
|
|
234
|
-
/**
|
|
235
|
-
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
236
|
-
* @param {InferFieldSection<TValue>[]} sections The sections of the full value.
|
|
237
|
-
* @param {InferFieldSection<TValue>} section A section of the date from which we want to clear all the sections.
|
|
238
|
-
* @returns {InferFieldSection<TValue>[]} The sections of the full value with all the sections of the target date cleared.
|
|
239
|
-
*/
|
|
240
|
-
clearDateSections: (sections: InferFieldSection<TValue>[], section: InferFieldSection<TValue>) => InferFieldSection<TValue>[];
|
|
241
|
-
}
|
|
242
|
-
export interface UseFieldState<TValue extends PickerValidValue> {
|
|
243
|
-
/**
|
|
244
|
-
* Last value returned by `useControlledValue`.
|
|
245
|
-
*/
|
|
246
|
-
lastExternalValue: TValue;
|
|
247
|
-
/**
|
|
248
|
-
* Last set of parameters used to generate the sections.
|
|
249
|
-
*/
|
|
250
|
-
lastSectionsDependencies: {
|
|
251
|
-
format: string;
|
|
252
|
-
isRtl: boolean;
|
|
253
|
-
locale: any;
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* Non-nullable value used to keep trace of the timezone and the date parts not present in the format.
|
|
257
|
-
* It is updated whenever we have a valid date (for the Range Pickers we update only the portion of the range that is valid).
|
|
258
|
-
*/
|
|
259
|
-
referenceValue: InferNonNullablePickerValue<TValue>;
|
|
260
|
-
/**
|
|
261
|
-
* Sections currently displayed in the field.
|
|
262
|
-
*/
|
|
263
|
-
sections: InferFieldSection<TValue>[];
|
|
264
|
-
/**
|
|
265
|
-
* Android `onChange` behavior when the input selection is not empty is quite different from a desktop behavior.
|
|
266
|
-
* There are two `onChange` calls:
|
|
267
|
-
* 1. A call with the selected content removed.
|
|
268
|
-
* 2. A call with the key pressed added to the value.
|
|
269
|
-
**
|
|
270
|
-
* For instance, if the input value equals `month / day / year` and `day` is selected.
|
|
271
|
-
* The pressing `1` will have the following behavior:
|
|
272
|
-
* 1. A call with `month / / year`.
|
|
273
|
-
* 2. A call with `month / 1 / year`.
|
|
274
|
-
*
|
|
275
|
-
* But if you don't update the input with the value passed on the first `onChange`.
|
|
276
|
-
* Then the second `onChange` will add the key press at the beginning of the selected value.
|
|
277
|
-
* 1. A call with `month / / year` that we don't set into state.
|
|
278
|
-
* 2. A call with `month / 1day / year`.
|
|
279
|
-
*
|
|
280
|
-
* The property below allows us to set the first `onChange` value into state waiting for the second one.
|
|
281
|
-
*/
|
|
282
|
-
tempValueStrAndroid: string | null;
|
|
283
|
-
/**
|
|
284
|
-
* The current query when editing the field using letters or digits.
|
|
285
|
-
*/
|
|
286
|
-
characterQuery: CharacterEditingQuery | null;
|
|
287
|
-
}
|
|
288
|
-
export type SectionNeighbors = {
|
|
289
|
-
[sectionIndex: number]: {
|
|
290
|
-
/**
|
|
291
|
-
* Index of the next section displayed on the left. `null` if it's the leftmost section.
|
|
292
|
-
*/
|
|
293
|
-
leftIndex: number | null;
|
|
294
|
-
/**
|
|
295
|
-
* Index of the next section displayed on the right. `null` if it's the rightmost section.
|
|
296
|
-
*/
|
|
297
|
-
rightIndex: number | null;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
export type SectionOrdering = {
|
|
301
|
-
/**
|
|
302
|
-
* For each section index provide the index of the section displayed on the left and on the right.
|
|
303
|
-
*/
|
|
304
|
-
neighbors: SectionNeighbors;
|
|
305
|
-
/**
|
|
306
|
-
* Index of the section displayed on the far left
|
|
307
|
-
*/
|
|
308
|
-
startIndex: number;
|
|
309
|
-
/**
|
|
310
|
-
* Index of the section displayed on the far right
|
|
311
|
-
*/
|
|
312
|
-
endIndex: number;
|
|
313
|
-
};
|
|
314
|
-
export interface CharacterEditingQuery {
|
|
315
|
-
value: string;
|
|
316
|
-
sectionIndex: number;
|
|
317
|
-
sectionType: FieldSectionType;
|
|
318
|
-
}
|
|
319
|
-
export type UseFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> = UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure> & {
|
|
320
|
-
enableAccessibleFieldDOMStructure?: boolean;
|
|
321
|
-
};
|
|
322
|
-
export interface UseFieldDOMGetters {
|
|
323
|
-
isReady: () => boolean;
|
|
324
|
-
getRoot: () => HTMLElement;
|
|
325
|
-
getSectionContainer: (sectionIndex: number) => HTMLElement;
|
|
326
|
-
getSectionContent: (sectionIndex: number) => HTMLElement;
|
|
327
|
-
getSectionIndexFromDOMElement: (element: Element | null | undefined) => number | null;
|
|
328
|
-
}
|
|
329
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FieldSectionsValueBoundaries, SectionOrdering, FieldSectionValueBoundaries, FieldParsedSelectedSections } from "./useField.types.js";
|
|
2
|
-
import { FieldSectionType, FieldSection, MuiPickersAdapter, FieldSectionContentType, PickersTimezone, PickerValidDate, FieldSelectedSections, PickerValueType, InferFieldSection } from "../../../models/index.js";
|
|
3
|
-
import { PickerValidValue } from "../../models/index.js";
|
|
4
|
-
export declare const getDateSectionConfigFromFormatToken: (utils: MuiPickersAdapter, formatToken: string) => Pick<FieldSection, "type" | "contentType"> & {
|
|
5
|
-
maxLength: number | undefined;
|
|
6
|
-
};
|
|
7
|
-
export declare const getDaysInWeekStr: (utils: MuiPickersAdapter, format: string) => string[];
|
|
8
|
-
export declare const getLetterEditingOptions: (utils: MuiPickersAdapter, timezone: PickersTimezone, sectionType: FieldSectionType, format: string) => string[];
|
|
9
|
-
export declare const FORMAT_SECONDS_NO_LEADING_ZEROS = "s";
|
|
10
|
-
export declare const getLocalizedDigits: (utils: MuiPickersAdapter) => string[];
|
|
11
|
-
export declare const removeLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string;
|
|
12
|
-
export declare const applyLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string;
|
|
13
|
-
export declare const isStringNumber: (valueStr: string, localizedDigits: string[]) => boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Make sure the value of a digit section have the right amount of leading zeros.
|
|
16
|
-
* E.g.: `03` => `3`
|
|
17
|
-
* Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.
|
|
18
|
-
*/
|
|
19
|
-
export declare const cleanLeadingZeros: (valueStr: string, size: number) => string;
|
|
20
|
-
export declare const cleanDigitSectionValue: (utils: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries<any>, localizedDigits: string[], section: Pick<FieldSection, "format" | "type" | "contentType" | "hasLeadingZerosInFormat" | "hasLeadingZerosInInput" | "maxLength">) => string;
|
|
21
|
-
export declare const getSectionVisibleValue: (section: FieldSection, target: "input-rtl" | "input-ltr" | "non-input", localizedDigits: string[]) => string;
|
|
22
|
-
export declare const changeSectionValueFormat: (utils: MuiPickersAdapter, valueStr: string, currentFormat: string, newFormat: string) => string;
|
|
23
|
-
export declare const doesSectionFormatHaveLeadingZeros: (utils: MuiPickersAdapter, contentType: FieldSectionContentType, sectionType: FieldSectionType, format: string) => boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Some date libraries like `dayjs` don't support parsing from date with escaped characters.
|
|
26
|
-
* To make sure that the parsing works, we are building a format and a date without any separator.
|
|
27
|
-
*/
|
|
28
|
-
export declare const getDateFromDateSections: (utils: MuiPickersAdapter, sections: FieldSection[], localizedDigits: string[]) => PickerValidDate;
|
|
29
|
-
export declare const createDateStrForV7HiddenInputFromSections: (sections: FieldSection[]) => string;
|
|
30
|
-
export declare const createDateStrForV6InputFromSections: (sections: FieldSection[], localizedDigits: string[], isRtl: boolean) => string;
|
|
31
|
-
export declare const getSectionsBoundaries: (utils: MuiPickersAdapter, localizedDigits: string[], timezone: PickersTimezone) => FieldSectionsValueBoundaries;
|
|
32
|
-
export declare const validateSections: <TValue extends PickerValidValue>(sections: InferFieldSection<TValue>[], valueType: PickerValueType) => void;
|
|
33
|
-
export declare const mergeDateIntoReferenceDate: (utils: MuiPickersAdapter, dateToTransferFrom: PickerValidDate, sections: FieldSection[], referenceDate: PickerValidDate, shouldLimitToEditedSections: boolean) => PickerValidDate;
|
|
34
|
-
export declare const isAndroid: () => boolean;
|
|
35
|
-
export declare const getSectionOrder: (sections: FieldSection[], shouldApplyRTL: boolean) => SectionOrdering;
|
|
36
|
-
export declare const parseSelectedSections: (selectedSections: FieldSelectedSections, sections: FieldSection[]) => FieldParsedSelectedSections;
|