@pisell/date-picker 1.0.141 → 1.0.144
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/README.md +2 -2
- package/es/ActionBar/index.d.ts +19 -20
- package/es/ActionBar/index.less +70 -70
- package/es/AdapterDateFns/index.d.ts +1 -1
- package/es/AdapterDateFnsJalali/index.d.ts +1 -1
- package/es/AdapterDayjs/index.d.ts +1 -1
- package/es/AdapterLuxon/index.d.ts +1 -1
- package/es/AdapterMoment/index.d.ts +1 -1
- package/es/AdapterMomentHijri/index.d.ts +1 -1
- package/es/AdapterMomentJalaali/index.d.ts +1 -1
- package/es/CustomCalendarHeader/index.d.ts +2 -3
- package/es/DatePickerLocales/index.d.ts +1 -1
- package/es/DateRangeCalendar/DateRangeCalendar.d.ts +7 -7
- package/es/DateRangeCalendar/DateRangeCalendar.js +122 -122
- package/es/DateRangeCalendar/DateRangeCalendar.types.d.ts +123 -123
- package/es/DateRangeCalendar/dateRangeCalendarClasses.d.ts +11 -11
- package/es/DateRangeCalendar/index.d.ts +4 -4
- package/es/DateRangeCalendar/useDragRange.d.ts +33 -33
- package/es/DateRangePicker/DateRangePicker.d.ts +7 -7
- package/es/DateRangePicker/DateRangePicker.js +184 -184
- package/es/DateRangePicker/DateRangePicker.types.d.ts +37 -37
- package/es/DateRangePicker/DateRangePickerToolbar.d.ts +12 -12
- package/es/DateRangePicker/DateRangePickerToolbar.js +10 -10
- package/es/DateRangePicker/dateRangePickerToolbarClasses.d.ts +9 -9
- package/es/DateRangePicker/index.d.ts +6 -6
- package/es/DateRangePicker/shared.d.ts +51 -51
- package/es/DateRangePickerDay/DateRangePickerDay.d.ts +50 -50
- package/es/DateRangePickerDay/DateRangePickerDay.js +96 -96
- package/es/DateRangePickerDay/dateRangePickerDayClasses.d.ts +41 -41
- package/es/DateRangePickerDay/index.d.ts +4 -4
- package/es/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +7 -7
- package/es/DesktopDateRangePicker/DesktopDateRangePicker.js +180 -180
- package/es/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +36 -36
- package/es/DesktopDateRangePicker/index.d.ts +2 -2
- package/es/Dialog/index.d.ts +2 -3
- package/es/Drawer/index.d.ts +11 -11
- package/es/Drawer/index.less +39 -39
- package/es/MobileDateRangePicker/MobileDateRangePicker.d.ts +7 -7
- package/es/MobileDateRangePicker/MobileDateRangePicker.js +180 -180
- package/es/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +36 -36
- package/es/MobileDateRangePicker/index.d.ts +2 -2
- package/es/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +7 -7
- package/es/MultiInputDateRangeField/MultiInputDateRangeField.js +113 -113
- package/es/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +69 -69
- package/es/MultiInputDateRangeField/index.d.ts +3 -3
- package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +7 -7
- package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +144 -144
- package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +70 -70
- package/es/MultiInputDateTimeRangeField/index.d.ts +3 -3
- package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +7 -7
- package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.js +130 -130
- package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +70 -70
- package/es/MultiInputTimeRangeField/index.d.ts +3 -3
- package/es/OldActionBar/index.d.ts +18 -19
- package/es/OldActionBar/index.less +17 -17
- package/es/OldPisellDateRangePicker/index.d.ts +79 -79
- package/es/OldPisellDateRangePicker/index.less +102 -102
- package/es/PisellDateRangePicker/LocaleContext.d.ts +7 -7
- package/es/PisellDateRangePicker/index.d.ts +83 -83
- package/es/PisellDateRangePicker/index.less +183 -183
- package/es/PisellDateRangePicker/useCssVariables.d.ts +8 -8
- package/es/Shortcuts/index.d.ts +15 -16
- package/es/Shortcuts/index.less +17 -17
- package/es/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +8 -8
- package/es/SingleInputDateRangeField/SingleInputDateRangeField.js +152 -152
- package/es/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +49 -49
- package/es/SingleInputDateRangeField/index.d.ts +3 -3
- package/es/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
- package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +8 -8
- package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +183 -183
- package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +50 -50
- package/es/SingleInputDateTimeRangeField/index.d.ts +3 -3
- package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
- package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +8 -8
- package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.js +169 -169
- package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +50 -50
- package/es/SingleInputTimeRangeField/index.d.ts +3 -3
- package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
- package/es/StaticDateRangePicker/StaticDateRangePicker.d.ts +7 -7
- package/es/StaticDateRangePicker/StaticDateRangePicker.js +148 -148
- package/es/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +31 -31
- package/es/StaticDateRangePicker/index.d.ts +2 -2
- package/es/Toolbar/index.d.ts +3 -4
- package/es/Toolbar/index.less +34 -34
- package/es/browserSelect/index.d.ts +15 -15
- package/es/browserSelect/index.js +7 -7
- package/es/browserSelect/index.less +17 -17
- package/es/constants.d.ts +58 -58
- package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +12 -13
- package/es/dateRangeViewRenderers/dateRangeViewRenderers.js +3 -3
- package/es/dateRangeViewRenderers/index.d.ts +2 -2
- package/es/hooks/useDocumentVisibility.d.ts +2 -2
- package/es/hooks/useNextDay.d.ts +2 -2
- package/es/hooks/useUpdateEffect.d.ts +2 -2
- package/es/icon/ChevronLeft.d.ts +5 -6
- package/es/icon/ChevronLeftDouble.d.ts +5 -6
- package/es/icon/ChevronRight.d.ts +5 -6
- package/es/icon/ChevronRightDouble.d.ts +5 -6
- package/es/icon/CloseCircle.d.ts +5 -6
- package/es/index.d.ts +26 -26
- package/es/internals/hooks/useDesktopRangePicker/index.d.ts +2 -2
- package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +5 -6
- package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +34 -34
- package/es/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +54 -54
- package/es/internals/hooks/useMobileRangePicker/index.d.ts +2 -2
- package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +5 -6
- package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +30 -30
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +3 -3
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +4 -4
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +17 -17
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +4 -4
- package/es/internals/hooks/useRangePosition.d.ts +28 -28
- package/es/internals/hooks/useStaticRangePicker/index.d.ts +2 -2
- package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +9 -10
- package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
- package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +33 -33
- package/es/internals/models/dateRange.d.ts +30 -30
- package/es/internals/models/dateTimeRange.d.ts +13 -13
- package/es/internals/models/fields.d.ts +43 -43
- package/es/internals/models/index.d.ts +6 -6
- package/es/internals/models/range.d.ts +3 -3
- package/es/internals/models/rangePickerProps.d.ts +17 -17
- package/es/internals/models/timeRange.d.ts +13 -13
- package/es/internals/utils/date-fields-utils.d.ts +25 -25
- package/es/internals/utils/date-range-manager.d.ts +21 -21
- package/es/internals/utils/date-utils.d.ts +6 -6
- package/es/internals/utils/releaseInfo.d.ts +1 -1
- package/es/internals/utils/validation/validateDateRange.d.ts +7 -7
- package/es/internals/utils/validation/validateDateTimeRange.d.ts +8 -8
- package/es/internals/utils/validation/validateTimeRange.d.ts +7 -7
- package/es/internals/utils/valueManagers.d.ts +7 -7
- package/es/locales/en-US.d.ts +26 -26
- package/es/locales/index.d.ts +2 -2
- package/es/locales/ja.d.ts +26 -26
- package/es/locales/pt.d.ts +26 -26
- package/es/locales/zh-CN.d.ts +26 -26
- package/es/locales/zh-TW.d.ts +26 -26
- package/es/models/index.d.ts +1 -1
- package/es/models/validation.d.ts +9 -9
- package/es/themeAugmentation/components.d.ts +66 -66
- package/es/themeAugmentation/index.d.ts +3 -3
- package/es/themeAugmentation/overrides.d.ts +33 -33
- package/es/themeAugmentation/props.d.ts +42 -42
- package/es/typings.d.ts +4 -4
- package/es/utils/index.d.ts +42 -42
- package/es/utils/index.js +19 -19
- package/lib/ActionBar/index.d.ts +19 -20
- package/lib/ActionBar/index.less +70 -70
- package/lib/AdapterDateFns/index.d.ts +1 -1
- package/lib/AdapterDateFnsJalali/index.d.ts +1 -1
- package/lib/AdapterDayjs/index.d.ts +1 -1
- package/lib/AdapterLuxon/index.d.ts +1 -1
- package/lib/AdapterMoment/index.d.ts +1 -1
- package/lib/AdapterMomentHijri/index.d.ts +1 -1
- package/lib/AdapterMomentJalaali/index.d.ts +1 -1
- package/lib/CustomCalendarHeader/index.d.ts +2 -3
- package/lib/DatePickerLocales/index.d.ts +1 -1
- package/lib/DateRangeCalendar/DateRangeCalendar.d.ts +7 -7
- package/lib/DateRangeCalendar/DateRangeCalendar.types.d.ts +123 -123
- package/lib/DateRangeCalendar/dateRangeCalendarClasses.d.ts +11 -11
- package/lib/DateRangeCalendar/index.d.ts +4 -4
- package/lib/DateRangeCalendar/useDragRange.d.ts +33 -33
- package/lib/DateRangePicker/DateRangePicker.d.ts +7 -7
- package/lib/DateRangePicker/DateRangePicker.types.d.ts +37 -37
- package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +12 -12
- package/lib/DateRangePicker/dateRangePickerToolbarClasses.d.ts +9 -9
- package/lib/DateRangePicker/index.d.ts +6 -6
- package/lib/DateRangePicker/shared.d.ts +51 -51
- package/lib/DateRangePickerDay/DateRangePickerDay.d.ts +50 -50
- package/lib/DateRangePickerDay/dateRangePickerDayClasses.d.ts +41 -41
- package/lib/DateRangePickerDay/index.d.ts +4 -4
- package/lib/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +7 -7
- package/lib/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +36 -36
- package/lib/DesktopDateRangePicker/index.d.ts +2 -2
- package/lib/Dialog/index.d.ts +2 -3
- package/lib/Drawer/index.d.ts +11 -11
- package/lib/Drawer/index.less +39 -39
- package/lib/MobileDateRangePicker/MobileDateRangePicker.d.ts +7 -7
- package/lib/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +36 -36
- package/lib/MobileDateRangePicker/index.d.ts +2 -2
- package/lib/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +7 -7
- package/lib/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +69 -69
- package/lib/MultiInputDateRangeField/index.d.ts +3 -3
- package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +7 -7
- package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +70 -70
- package/lib/MultiInputDateTimeRangeField/index.d.ts +3 -3
- package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +7 -7
- package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +70 -70
- package/lib/MultiInputTimeRangeField/index.d.ts +3 -3
- package/lib/OldActionBar/index.d.ts +18 -19
- package/lib/OldActionBar/index.less +17 -17
- package/lib/OldPisellDateRangePicker/index.d.ts +79 -79
- package/lib/OldPisellDateRangePicker/index.less +102 -102
- package/lib/PisellDateRangePicker/LocaleContext.d.ts +7 -7
- package/lib/PisellDateRangePicker/index.d.ts +83 -83
- package/lib/PisellDateRangePicker/index.less +183 -183
- package/lib/PisellDateRangePicker/useCssVariables.d.ts +8 -8
- package/lib/Shortcuts/index.d.ts +15 -16
- package/lib/Shortcuts/index.less +17 -17
- package/lib/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +8 -8
- package/lib/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +49 -49
- package/lib/SingleInputDateRangeField/index.d.ts +3 -3
- package/lib/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
- package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +8 -8
- package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +50 -50
- package/lib/SingleInputDateTimeRangeField/index.d.ts +3 -3
- package/lib/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
- package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +8 -8
- package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +50 -50
- package/lib/SingleInputTimeRangeField/index.d.ts +3 -3
- package/lib/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
- package/lib/StaticDateRangePicker/StaticDateRangePicker.d.ts +7 -7
- package/lib/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +31 -31
- package/lib/StaticDateRangePicker/index.d.ts +2 -2
- package/lib/Toolbar/index.d.ts +3 -4
- package/lib/Toolbar/index.less +34 -34
- package/lib/browserSelect/index.d.ts +15 -15
- package/lib/browserSelect/index.less +17 -17
- package/lib/constants.d.ts +58 -58
- package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +12 -13
- package/lib/dateRangeViewRenderers/index.d.ts +2 -2
- package/lib/hooks/useDocumentVisibility.d.ts +2 -2
- package/lib/hooks/useNextDay.d.ts +2 -2
- package/lib/hooks/useUpdateEffect.d.ts +2 -2
- package/lib/icon/ChevronLeft.d.ts +5 -6
- package/lib/icon/ChevronLeftDouble.d.ts +5 -6
- package/lib/icon/ChevronRight.d.ts +5 -6
- package/lib/icon/ChevronRightDouble.d.ts +5 -6
- package/lib/icon/CloseCircle.d.ts +5 -6
- package/lib/index.d.ts +26 -26
- package/lib/internals/hooks/useDesktopRangePicker/index.d.ts +2 -2
- package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +5 -6
- package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +34 -34
- package/lib/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +54 -54
- package/lib/internals/hooks/useMobileRangePicker/index.d.ts +2 -2
- package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +5 -6
- package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +30 -30
- package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +3 -3
- package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +4 -4
- package/lib/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +17 -17
- package/lib/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +4 -4
- package/lib/internals/hooks/useRangePosition.d.ts +28 -28
- package/lib/internals/hooks/useStaticRangePicker/index.d.ts +2 -2
- package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +9 -10
- package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +33 -33
- package/lib/internals/models/dateRange.d.ts +30 -30
- package/lib/internals/models/dateTimeRange.d.ts +13 -13
- package/lib/internals/models/fields.d.ts +43 -43
- package/lib/internals/models/index.d.ts +6 -6
- package/lib/internals/models/range.d.ts +3 -3
- package/lib/internals/models/rangePickerProps.d.ts +17 -17
- package/lib/internals/models/timeRange.d.ts +13 -13
- package/lib/internals/utils/date-fields-utils.d.ts +25 -25
- package/lib/internals/utils/date-range-manager.d.ts +21 -21
- package/lib/internals/utils/date-utils.d.ts +6 -6
- package/lib/internals/utils/releaseInfo.d.ts +1 -1
- package/lib/internals/utils/validation/validateDateRange.d.ts +7 -7
- package/lib/internals/utils/validation/validateDateTimeRange.d.ts +8 -8
- package/lib/internals/utils/validation/validateTimeRange.d.ts +7 -7
- package/lib/internals/utils/valueManagers.d.ts +7 -7
- package/lib/locales/en-US.d.ts +26 -26
- package/lib/locales/index.d.ts +2 -2
- package/lib/locales/ja.d.ts +26 -26
- package/lib/locales/pt.d.ts +26 -26
- package/lib/locales/zh-CN.d.ts +26 -26
- package/lib/locales/zh-TW.d.ts +26 -26
- package/lib/models/index.d.ts +1 -1
- package/lib/models/validation.d.ts +9 -9
- package/lib/themeAugmentation/components.d.ts +66 -66
- package/lib/themeAugmentation/index.d.ts +3 -3
- package/lib/themeAugmentation/overrides.d.ts +33 -33
- package/lib/themeAugmentation/props.d.ts +42 -42
- package/lib/typings.d.ts +4 -4
- package/lib/utils/index.d.ts +42 -42
- package/package.json +2 -2
|
@@ -73,251 +73,251 @@ SingleInputDateRangeField.propTypes = {
|
|
|
73
73
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
74
74
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
75
75
|
// ----------------------------------------------------------------------
|
|
76
|
-
/**
|
|
77
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
78
|
-
* @default false
|
|
76
|
+
/**
|
|
77
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
78
|
+
* @default false
|
|
79
79
|
*/
|
|
80
80
|
autoFocus: PropTypes.bool,
|
|
81
81
|
className: PropTypes.string,
|
|
82
|
-
/**
|
|
83
|
-
* The color of the component.
|
|
84
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
85
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
86
|
-
* @default 'primary'
|
|
82
|
+
/**
|
|
83
|
+
* The color of the component.
|
|
84
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
85
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
86
|
+
* @default 'primary'
|
|
87
87
|
*/
|
|
88
88
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
89
|
-
/**
|
|
90
|
-
* Overridable components.
|
|
91
|
-
* @default {}
|
|
92
|
-
* @deprecated Please use `slots`.
|
|
89
|
+
/**
|
|
90
|
+
* Overridable components.
|
|
91
|
+
* @default {}
|
|
92
|
+
* @deprecated Please use `slots`.
|
|
93
93
|
*/
|
|
94
94
|
components: PropTypes.object,
|
|
95
|
-
/**
|
|
96
|
-
* The props used for each component slot.
|
|
97
|
-
* @default {}
|
|
98
|
-
* @deprecated Please use `slotProps`.
|
|
95
|
+
/**
|
|
96
|
+
* The props used for each component slot.
|
|
97
|
+
* @default {}
|
|
98
|
+
* @deprecated Please use `slotProps`.
|
|
99
99
|
*/
|
|
100
100
|
componentsProps: PropTypes.object,
|
|
101
|
-
/**
|
|
102
|
-
* The default value. Use when the component is not controlled.
|
|
101
|
+
/**
|
|
102
|
+
* The default value. Use when the component is not controlled.
|
|
103
103
|
*/
|
|
104
104
|
defaultValue: PropTypes.arrayOf(PropTypes.any),
|
|
105
|
-
/**
|
|
106
|
-
* If `true`, the component is disabled.
|
|
107
|
-
* @default false
|
|
105
|
+
/**
|
|
106
|
+
* If `true`, the component is disabled.
|
|
107
|
+
* @default false
|
|
108
108
|
*/
|
|
109
109
|
disabled: PropTypes.bool,
|
|
110
|
-
/**
|
|
111
|
-
* If `true`, disable values after the current date for date components, time for time components and both for date time components.
|
|
112
|
-
* @default false
|
|
110
|
+
/**
|
|
111
|
+
* If `true`, disable values after the current date for date components, time for time components and both for date time components.
|
|
112
|
+
* @default false
|
|
113
113
|
*/
|
|
114
114
|
disableFuture: PropTypes.bool,
|
|
115
|
-
/**
|
|
116
|
-
* If `true`, disable values before the current date for date components, time for time components and both for date time components.
|
|
117
|
-
* @default false
|
|
115
|
+
/**
|
|
116
|
+
* If `true`, disable values before the current date for date components, time for time components and both for date time components.
|
|
117
|
+
* @default false
|
|
118
118
|
*/
|
|
119
119
|
disablePast: PropTypes.bool,
|
|
120
|
-
/**
|
|
121
|
-
* If `true`, the component is displayed in focused state.
|
|
120
|
+
/**
|
|
121
|
+
* If `true`, the component is displayed in focused state.
|
|
122
122
|
*/
|
|
123
123
|
focused: PropTypes.bool,
|
|
124
|
-
/**
|
|
125
|
-
* Format of the date when rendered in the input(s).
|
|
124
|
+
/**
|
|
125
|
+
* Format of the date when rendered in the input(s).
|
|
126
126
|
*/
|
|
127
127
|
format: PropTypes.string,
|
|
128
|
-
/**
|
|
129
|
-
* Density of the format when rendered in the input.
|
|
130
|
-
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
131
|
-
* @default "dense"
|
|
128
|
+
/**
|
|
129
|
+
* Density of the format when rendered in the input.
|
|
130
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
131
|
+
* @default "dense"
|
|
132
132
|
*/
|
|
133
133
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
134
|
-
/**
|
|
135
|
-
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
134
|
+
/**
|
|
135
|
+
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
136
136
|
*/
|
|
137
137
|
FormHelperTextProps: PropTypes.object,
|
|
138
|
-
/**
|
|
139
|
-
* If `true`, the input will take up the full width of its container.
|
|
140
|
-
* @default false
|
|
138
|
+
/**
|
|
139
|
+
* If `true`, the input will take up the full width of its container.
|
|
140
|
+
* @default false
|
|
141
141
|
*/
|
|
142
142
|
fullWidth: PropTypes.bool,
|
|
143
|
-
/**
|
|
144
|
-
* The helper text content.
|
|
143
|
+
/**
|
|
144
|
+
* The helper text content.
|
|
145
145
|
*/
|
|
146
146
|
helperText: PropTypes.node,
|
|
147
|
-
/**
|
|
148
|
-
* If `true`, the label is hidden.
|
|
149
|
-
* This is used to increase density for a `FilledInput`.
|
|
150
|
-
* Be sure to add `aria-label` to the `input` element.
|
|
151
|
-
* @default false
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, the label is hidden.
|
|
149
|
+
* This is used to increase density for a `FilledInput`.
|
|
150
|
+
* Be sure to add `aria-label` to the `input` element.
|
|
151
|
+
* @default false
|
|
152
152
|
*/
|
|
153
153
|
hiddenLabel: PropTypes.bool,
|
|
154
|
-
/**
|
|
155
|
-
* The id of the `input` element.
|
|
156
|
-
* Use this prop to make `label` and `helperText` accessible for screen readers.
|
|
154
|
+
/**
|
|
155
|
+
* The id of the `input` element.
|
|
156
|
+
* Use this prop to make `label` and `helperText` accessible for screen readers.
|
|
157
157
|
*/
|
|
158
158
|
id: PropTypes.string,
|
|
159
|
-
/**
|
|
160
|
-
* Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
|
|
161
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
159
|
+
/**
|
|
160
|
+
* Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
|
|
161
|
+
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
162
162
|
*/
|
|
163
163
|
InputLabelProps: PropTypes.object,
|
|
164
|
-
/**
|
|
165
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
164
|
+
/**
|
|
165
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
166
166
|
*/
|
|
167
167
|
inputProps: PropTypes.object,
|
|
168
|
-
/**
|
|
169
|
-
* Props applied to the Input element.
|
|
170
|
-
* It will be a [`FilledInput`](/material-ui/api/filled-input/),
|
|
171
|
-
* [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
|
|
172
|
-
* component depending on the `variant` prop value.
|
|
168
|
+
/**
|
|
169
|
+
* Props applied to the Input element.
|
|
170
|
+
* It will be a [`FilledInput`](/material-ui/api/filled-input/),
|
|
171
|
+
* [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
|
|
172
|
+
* component depending on the `variant` prop value.
|
|
173
173
|
*/
|
|
174
174
|
InputProps: PropTypes.object,
|
|
175
|
-
/**
|
|
176
|
-
* Pass a ref to the `input` element.
|
|
175
|
+
/**
|
|
176
|
+
* Pass a ref to the `input` element.
|
|
177
177
|
*/
|
|
178
178
|
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
179
179
|
current: PropTypes.any.isRequired
|
|
180
180
|
})]),
|
|
181
|
-
/**
|
|
182
|
-
* The label content.
|
|
181
|
+
/**
|
|
182
|
+
* The label content.
|
|
183
183
|
*/
|
|
184
184
|
label: PropTypes.node,
|
|
185
|
-
/**
|
|
186
|
-
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
187
|
-
* @default 'none'
|
|
185
|
+
/**
|
|
186
|
+
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
187
|
+
* @default 'none'
|
|
188
188
|
*/
|
|
189
189
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
190
|
-
/**
|
|
191
|
-
* Maximal selectable date.
|
|
190
|
+
/**
|
|
191
|
+
* Maximal selectable date.
|
|
192
192
|
*/
|
|
193
193
|
maxDate: PropTypes.any,
|
|
194
|
-
/**
|
|
195
|
-
* Minimal selectable date.
|
|
194
|
+
/**
|
|
195
|
+
* Minimal selectable date.
|
|
196
196
|
*/
|
|
197
197
|
minDate: PropTypes.any,
|
|
198
|
-
/**
|
|
199
|
-
* Name attribute of the `input` element.
|
|
198
|
+
/**
|
|
199
|
+
* Name attribute of the `input` element.
|
|
200
200
|
*/
|
|
201
201
|
name: PropTypes.string,
|
|
202
202
|
onBlur: PropTypes.func,
|
|
203
|
-
/**
|
|
204
|
-
* Callback fired when the value changes.
|
|
205
|
-
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
206
|
-
* @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
|
|
207
|
-
* @param {TValue} value The new value.
|
|
208
|
-
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
203
|
+
/**
|
|
204
|
+
* Callback fired when the value changes.
|
|
205
|
+
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
206
|
+
* @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
|
|
207
|
+
* @param {TValue} value The new value.
|
|
208
|
+
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
209
209
|
*/
|
|
210
210
|
onChange: PropTypes.func,
|
|
211
|
-
/**
|
|
212
|
-
* @ignore
|
|
211
|
+
/**
|
|
212
|
+
* @ignore
|
|
213
213
|
*/
|
|
214
214
|
onClick: PropTypes.func,
|
|
215
|
-
/**
|
|
216
|
-
* Callback fired when the error associated to the current value changes.
|
|
217
|
-
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
218
|
-
* @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
|
|
219
|
-
* @param {TError} error The new error.
|
|
220
|
-
* @param {TValue} value The value associated to the error.
|
|
215
|
+
/**
|
|
216
|
+
* Callback fired when the error associated to the current value changes.
|
|
217
|
+
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
218
|
+
* @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
|
|
219
|
+
* @param {TError} error The new error.
|
|
220
|
+
* @param {TValue} value The value associated to the error.
|
|
221
221
|
*/
|
|
222
222
|
onError: PropTypes.func,
|
|
223
223
|
onFocus: PropTypes.func,
|
|
224
|
-
/**
|
|
225
|
-
* Callback fired when the selected sections change.
|
|
226
|
-
* @param {FieldSelectedSections} newValue The new selected sections.
|
|
224
|
+
/**
|
|
225
|
+
* Callback fired when the selected sections change.
|
|
226
|
+
* @param {FieldSelectedSections} newValue The new selected sections.
|
|
227
227
|
*/
|
|
228
228
|
onSelectedSectionsChange: PropTypes.func,
|
|
229
|
-
/**
|
|
230
|
-
* It prevents the user from changing the value of the field
|
|
231
|
-
* (not from interacting with the field).
|
|
232
|
-
* @default false
|
|
229
|
+
/**
|
|
230
|
+
* It prevents the user from changing the value of the field
|
|
231
|
+
* (not from interacting with the field).
|
|
232
|
+
* @default false
|
|
233
233
|
*/
|
|
234
234
|
readOnly: PropTypes.bool,
|
|
235
|
-
/**
|
|
236
|
-
* 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.
|
|
237
|
-
* For example, on time fields it will be used to determine the date to set.
|
|
238
|
-
* @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
|
|
235
|
+
/**
|
|
236
|
+
* 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.
|
|
237
|
+
* For example, on time fields it will be used to determine the date to set.
|
|
238
|
+
* @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
|
|
239
239
|
*/
|
|
240
240
|
referenceDate: PropTypes.any,
|
|
241
|
-
/**
|
|
242
|
-
* If `true`, the label is displayed as required and the `input` element is required.
|
|
243
|
-
* @default false
|
|
241
|
+
/**
|
|
242
|
+
* If `true`, the label is displayed as required and the `input` element is required.
|
|
243
|
+
* @default false
|
|
244
244
|
*/
|
|
245
245
|
required: PropTypes.bool,
|
|
246
|
-
/**
|
|
247
|
-
* The currently selected sections.
|
|
248
|
-
* This prop accept four formats:
|
|
249
|
-
* 1. If a number is provided, the section at this index will be selected.
|
|
250
|
-
* 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
|
|
251
|
-
* 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
|
|
252
|
-
* 4. If `null` is provided, no section will be selected
|
|
253
|
-
* If not provided, the selected sections will be handled internally.
|
|
246
|
+
/**
|
|
247
|
+
* The currently selected sections.
|
|
248
|
+
* This prop accept four formats:
|
|
249
|
+
* 1. If a number is provided, the section at this index will be selected.
|
|
250
|
+
* 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
|
|
251
|
+
* 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
|
|
252
|
+
* 4. If `null` is provided, no section will be selected
|
|
253
|
+
* If not provided, the selected sections will be handled internally.
|
|
254
254
|
*/
|
|
255
255
|
selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number, PropTypes.shape({
|
|
256
256
|
endIndex: PropTypes.number.isRequired,
|
|
257
257
|
startIndex: PropTypes.number.isRequired
|
|
258
258
|
})]),
|
|
259
|
-
/**
|
|
260
|
-
* Disable specific date.
|
|
261
|
-
* @template TDate
|
|
262
|
-
* @param {TDate} day The date to test.
|
|
263
|
-
* @param {string} position The date to test, 'start' or 'end'.
|
|
264
|
-
* @returns {boolean} Returns `true` if the date should be disabled.
|
|
259
|
+
/**
|
|
260
|
+
* Disable specific date.
|
|
261
|
+
* @template TDate
|
|
262
|
+
* @param {TDate} day The date to test.
|
|
263
|
+
* @param {string} position The date to test, 'start' or 'end'.
|
|
264
|
+
* @returns {boolean} Returns `true` if the date should be disabled.
|
|
265
265
|
*/
|
|
266
266
|
shouldDisableDate: PropTypes.func,
|
|
267
|
-
/**
|
|
268
|
-
* If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
|
|
269
|
-
* If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
|
|
270
|
-
*
|
|
271
|
-
* Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
|
|
272
|
-
*
|
|
273
|
-
* 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.
|
|
274
|
-
* If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
|
|
275
|
-
*
|
|
276
|
-
* Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
|
|
277
|
-
* 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.
|
|
278
|
-
*
|
|
279
|
-
* @default `false`
|
|
267
|
+
/**
|
|
268
|
+
* If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
|
|
269
|
+
* If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
|
|
270
|
+
*
|
|
271
|
+
* Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
|
|
272
|
+
*
|
|
273
|
+
* 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.
|
|
274
|
+
* If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
|
|
275
|
+
*
|
|
276
|
+
* Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
|
|
277
|
+
* 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.
|
|
278
|
+
*
|
|
279
|
+
* @default `false`
|
|
280
280
|
*/
|
|
281
281
|
shouldRespectLeadingZeros: PropTypes.bool,
|
|
282
|
-
/**
|
|
283
|
-
* The size of the component.
|
|
282
|
+
/**
|
|
283
|
+
* The size of the component.
|
|
284
284
|
*/
|
|
285
285
|
size: PropTypes.oneOf(['medium', 'small']),
|
|
286
|
-
/**
|
|
287
|
-
* The props used for each component slot.
|
|
288
|
-
* @default {}
|
|
286
|
+
/**
|
|
287
|
+
* The props used for each component slot.
|
|
288
|
+
* @default {}
|
|
289
289
|
*/
|
|
290
290
|
slotProps: PropTypes.object,
|
|
291
|
-
/**
|
|
292
|
-
* Overridable component slots.
|
|
293
|
-
* @default {}
|
|
291
|
+
/**
|
|
292
|
+
* Overridable component slots.
|
|
293
|
+
* @default {}
|
|
294
294
|
*/
|
|
295
295
|
slots: PropTypes.object,
|
|
296
296
|
style: PropTypes.object,
|
|
297
|
-
/**
|
|
298
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
297
|
+
/**
|
|
298
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
299
299
|
*/
|
|
300
300
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
301
|
-
/**
|
|
302
|
-
* Choose which timezone to use for the value.
|
|
303
|
-
* Example: "default", "system", "UTC", "America/New_York".
|
|
304
|
-
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
305
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
|
|
306
|
-
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
301
|
+
/**
|
|
302
|
+
* Choose which timezone to use for the value.
|
|
303
|
+
* Example: "default", "system", "UTC", "America/New_York".
|
|
304
|
+
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
305
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
|
|
306
|
+
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
307
307
|
*/
|
|
308
308
|
timezone: PropTypes.string,
|
|
309
|
-
/**
|
|
310
|
-
* The ref object used to imperatively interact with the field.
|
|
309
|
+
/**
|
|
310
|
+
* The ref object used to imperatively interact with the field.
|
|
311
311
|
*/
|
|
312
312
|
unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
313
|
-
/**
|
|
314
|
-
* The selected value.
|
|
315
|
-
* Used when the component is controlled.
|
|
313
|
+
/**
|
|
314
|
+
* The selected value.
|
|
315
|
+
* Used when the component is controlled.
|
|
316
316
|
*/
|
|
317
317
|
value: PropTypes.arrayOf(PropTypes.any),
|
|
318
|
-
/**
|
|
319
|
-
* The variant to use.
|
|
320
|
-
* @default 'outlined'
|
|
318
|
+
/**
|
|
319
|
+
* The variant to use.
|
|
320
|
+
* @default 'outlined'
|
|
321
321
|
*/
|
|
322
322
|
variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
|
|
323
323
|
};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/base/utils';
|
|
3
|
-
import TextField from '@mui/material/TextField';
|
|
4
|
-
import { FieldsTextFieldProps, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
5
|
-
import { UseDateRangeFieldDefaultizedProps, UseDateRangeFieldProps } from '../internals/models';
|
|
6
|
-
export interface UseSingleInputDateRangeFieldParams<TDate, TChildProps extends {}> {
|
|
7
|
-
props: UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps>;
|
|
8
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
9
|
-
}
|
|
10
|
-
export interface UseSingleInputDateRangeFieldProps<TDate> extends UseDateRangeFieldProps<TDate> {
|
|
11
|
-
}
|
|
12
|
-
export declare type UseSingleInputDateRangeFieldDefaultizedProps<TDate, AdditionalProps extends {}> = UseDateRangeFieldDefaultizedProps<TDate> & Omit<AdditionalProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
13
|
-
export declare type UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputDateRangeFieldProps<TDate>> & UseSingleInputDateRangeFieldProps<TDate>;
|
|
14
|
-
export declare type SingleInputDateRangeFieldProps<TDate, TChildProps extends {} = FieldsTextFieldProps> = UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps> & {
|
|
15
|
-
/**
|
|
16
|
-
* Overridable components.
|
|
17
|
-
* @default {}
|
|
18
|
-
* @deprecated Please use `slots`.
|
|
19
|
-
*/
|
|
20
|
-
components?: SingleInputDateRangeFieldSlotsComponent;
|
|
21
|
-
/**
|
|
22
|
-
* The props used for each component slot.
|
|
23
|
-
* @default {}
|
|
24
|
-
* @deprecated Please use `slotProps`.
|
|
25
|
-
*/
|
|
26
|
-
componentsProps?: SingleInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
27
|
-
/**
|
|
28
|
-
* Overridable component slots.
|
|
29
|
-
* @default {}
|
|
30
|
-
*/
|
|
31
|
-
slots?: UncapitalizeObjectKeys<SingleInputDateRangeFieldSlotsComponent>;
|
|
32
|
-
/**
|
|
33
|
-
* The props used for each component slot.
|
|
34
|
-
* @default {}
|
|
35
|
-
*/
|
|
36
|
-
slotProps?: SingleInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
37
|
-
};
|
|
38
|
-
export declare type SingleInputDateRangeFieldOwnerState<TDate> = SingleInputDateRangeFieldProps<TDate>;
|
|
39
|
-
export interface SingleInputDateRangeFieldSlotsComponent {
|
|
40
|
-
/**
|
|
41
|
-
* Form control with an input to render the value.
|
|
42
|
-
* Receives the same props as `@mui/material/TextField`.
|
|
43
|
-
* @default TextField from '@mui/material'
|
|
44
|
-
*/
|
|
45
|
-
TextField?: React.ElementType;
|
|
46
|
-
}
|
|
47
|
-
export interface SingleInputDateRangeFieldSlotsComponentsProps<TDate> {
|
|
48
|
-
textField?: SlotComponentProps<typeof TextField, {}, SingleInputDateRangeFieldOwnerState<TDate>>;
|
|
49
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SlotComponentProps } from '@mui/base/utils';
|
|
3
|
+
import TextField from '@mui/material/TextField';
|
|
4
|
+
import { FieldsTextFieldProps, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
5
|
+
import { UseDateRangeFieldDefaultizedProps, UseDateRangeFieldProps } from '../internals/models';
|
|
6
|
+
export interface UseSingleInputDateRangeFieldParams<TDate, TChildProps extends {}> {
|
|
7
|
+
props: UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps>;
|
|
8
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
9
|
+
}
|
|
10
|
+
export interface UseSingleInputDateRangeFieldProps<TDate> extends UseDateRangeFieldProps<TDate> {
|
|
11
|
+
}
|
|
12
|
+
export declare type UseSingleInputDateRangeFieldDefaultizedProps<TDate, AdditionalProps extends {}> = UseDateRangeFieldDefaultizedProps<TDate> & Omit<AdditionalProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
13
|
+
export declare type UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputDateRangeFieldProps<TDate>> & UseSingleInputDateRangeFieldProps<TDate>;
|
|
14
|
+
export declare type SingleInputDateRangeFieldProps<TDate, TChildProps extends {} = FieldsTextFieldProps> = UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps> & {
|
|
15
|
+
/**
|
|
16
|
+
* Overridable components.
|
|
17
|
+
* @default {}
|
|
18
|
+
* @deprecated Please use `slots`.
|
|
19
|
+
*/
|
|
20
|
+
components?: SingleInputDateRangeFieldSlotsComponent;
|
|
21
|
+
/**
|
|
22
|
+
* The props used for each component slot.
|
|
23
|
+
* @default {}
|
|
24
|
+
* @deprecated Please use `slotProps`.
|
|
25
|
+
*/
|
|
26
|
+
componentsProps?: SingleInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
27
|
+
/**
|
|
28
|
+
* Overridable component slots.
|
|
29
|
+
* @default {}
|
|
30
|
+
*/
|
|
31
|
+
slots?: UncapitalizeObjectKeys<SingleInputDateRangeFieldSlotsComponent>;
|
|
32
|
+
/**
|
|
33
|
+
* The props used for each component slot.
|
|
34
|
+
* @default {}
|
|
35
|
+
*/
|
|
36
|
+
slotProps?: SingleInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
37
|
+
};
|
|
38
|
+
export declare type SingleInputDateRangeFieldOwnerState<TDate> = SingleInputDateRangeFieldProps<TDate>;
|
|
39
|
+
export interface SingleInputDateRangeFieldSlotsComponent {
|
|
40
|
+
/**
|
|
41
|
+
* Form control with an input to render the value.
|
|
42
|
+
* Receives the same props as `@mui/material/TextField`.
|
|
43
|
+
* @default TextField from '@mui/material'
|
|
44
|
+
*/
|
|
45
|
+
TextField?: React.ElementType;
|
|
46
|
+
}
|
|
47
|
+
export interface SingleInputDateRangeFieldSlotsComponentsProps<TDate> {
|
|
48
|
+
textField?: SlotComponentProps<typeof TextField, {}, SingleInputDateRangeFieldOwnerState<TDate>>;
|
|
49
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SingleInputDateRangeField } from './SingleInputDateRangeField';
|
|
2
|
-
export { useSingleInputDateRangeField as unstable_useSingleInputDateRangeField } from './useSingleInputDateRangeField';
|
|
3
|
-
export type { UseSingleInputDateRangeFieldProps, UseSingleInputDateRangeFieldComponentProps, SingleInputDateRangeFieldProps, } from './SingleInputDateRangeField.types';
|
|
1
|
+
export { SingleInputDateRangeField } from './SingleInputDateRangeField';
|
|
2
|
+
export { useSingleInputDateRangeField as unstable_useSingleInputDateRangeField } from './useSingleInputDateRangeField';
|
|
3
|
+
export type { UseSingleInputDateRangeFieldProps, UseSingleInputDateRangeFieldComponentProps, SingleInputDateRangeFieldProps, } from './SingleInputDateRangeField.types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UseSingleInputDateRangeFieldDefaultizedProps, UseSingleInputDateRangeFieldParams, UseSingleInputDateRangeFieldProps } from './SingleInputDateRangeField.types';
|
|
2
|
-
export declare const useDefaultizedDateRangeFieldProps: <TDate, AdditionalProps extends {}>(props: UseSingleInputDateRangeFieldProps<TDate>) => UseSingleInputDateRangeFieldDefaultizedProps<TDate, AdditionalProps>;
|
|
3
|
-
export declare const useSingleInputDateRangeField: <TDate, TChildProps extends {}>({ props: inProps, inputRef, }: UseSingleInputDateRangeFieldParams<TDate, TChildProps>) => import("@mui/x-date-pickers/internals").UseFieldResponse<Omit<UseSingleInputDateRangeFieldDefaultizedProps<TDate, TChildProps>, keyof UseSingleInputDateRangeFieldProps<any>>>;
|
|
1
|
+
import { UseSingleInputDateRangeFieldDefaultizedProps, UseSingleInputDateRangeFieldParams, UseSingleInputDateRangeFieldProps } from './SingleInputDateRangeField.types';
|
|
2
|
+
export declare const useDefaultizedDateRangeFieldProps: <TDate, AdditionalProps extends {}>(props: UseSingleInputDateRangeFieldProps<TDate>) => UseSingleInputDateRangeFieldDefaultizedProps<TDate, AdditionalProps>;
|
|
3
|
+
export declare const useSingleInputDateRangeField: <TDate, TChildProps extends {}>({ props: inProps, inputRef, }: UseSingleInputDateRangeFieldParams<TDate, TChildProps>) => import("@mui/x-date-pickers/internals").UseFieldResponse<Omit<UseSingleInputDateRangeFieldDefaultizedProps<TDate, TChildProps>, keyof UseSingleInputDateRangeFieldProps<any>>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SingleInputDateTimeRangeFieldProps } from './SingleInputDateTimeRangeField.types';
|
|
3
|
-
declare type DateRangeFieldComponent = (<TDate>(props: SingleInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
|
|
4
|
-
propTypes?: any;
|
|
5
|
-
fieldType?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const SingleInputDateTimeRangeField: DateRangeFieldComponent;
|
|
8
|
-
export { SingleInputDateTimeRangeField };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SingleInputDateTimeRangeFieldProps } from './SingleInputDateTimeRangeField.types';
|
|
3
|
+
declare type DateRangeFieldComponent = (<TDate>(props: SingleInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
|
|
4
|
+
propTypes?: any;
|
|
5
|
+
fieldType?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const SingleInputDateTimeRangeField: DateRangeFieldComponent;
|
|
8
|
+
export { SingleInputDateTimeRangeField };
|