@pisell/date-picker 1.0.143 → 1.0.145
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.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.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.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.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/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/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.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.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.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/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
- package/es/DateRangePickerDay/DateRangePickerDay.d.ts +0 -50
- package/es/PisellDateRangePicker/index.d.ts +0 -83
- package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +0 -6
- package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +0 -6
- package/es/themeAugmentation/index.d.ts +0 -3
- package/lib/DateRangePickerDay/DateRangePickerDay.d.ts +0 -50
- package/lib/PisellDateRangePicker/index.d.ts +0 -83
- package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +0 -6
- package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +0 -6
- package/lib/themeAugmentation/index.d.ts +0 -3
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export interface DateRangePickerDayClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `isHighlighting=true`. */
|
|
5
|
-
rangeIntervalDayHighlight: string;
|
|
6
|
-
/** Styles applied to the root element if `isStartOfHighlighting=true`. */
|
|
7
|
-
rangeIntervalDayHighlightStart: string;
|
|
8
|
-
/** Styles applied to the root element if `isEndOfHighlighting=true`. */
|
|
9
|
-
rangeIntervalDayHighlightEnd: string;
|
|
10
|
-
/** Styles applied to the preview element. */
|
|
11
|
-
rangeIntervalPreview: string;
|
|
12
|
-
/** Styles applied to the root element if `isPreviewing=true`. */
|
|
13
|
-
rangeIntervalDayPreview: string;
|
|
14
|
-
/** Styles applied to the root element if `isStartOfPreviewing=true`. */
|
|
15
|
-
rangeIntervalDayPreviewStart: string;
|
|
16
|
-
/** Styles applied to the root element if `isEndOfPreviewing=true`. */
|
|
17
|
-
rangeIntervalDayPreviewEnd: string;
|
|
18
|
-
/** Styles applied to the root element if `outsideCurrentMonth=true` */
|
|
19
|
-
outsideCurrentMonth: string;
|
|
20
|
-
/** Styles applied to the root element if `day` is the start of the month. */
|
|
21
|
-
startOfMonth: string;
|
|
22
|
-
/** Styles applied to the root element if `day` is the end of the month. */
|
|
23
|
-
endOfMonth: string;
|
|
24
|
-
/** Styles applied to the root element if `day` is the first visible cell of the month. */
|
|
25
|
-
firstVisibleCell: string;
|
|
26
|
-
/** Styles applied to the root element if `day` is the last visible cell of the month. */
|
|
27
|
-
lastVisibleCell: string;
|
|
28
|
-
/** Styles applied to the root element if it is an empty cell used to fill the week. */
|
|
29
|
-
hiddenDayFiller: string;
|
|
30
|
-
/** Styles applied to the day element. */
|
|
31
|
-
day: string;
|
|
32
|
-
/** Styles applied to the day element if `isHighlighting=false`. */
|
|
33
|
-
dayOutsideRangeInterval: string;
|
|
34
|
-
/** Styles applied to the day element if `selected=false` and `isHighlighting=true`. */
|
|
35
|
-
dayInsideRangeInterval: string;
|
|
36
|
-
/** Styles applied to the day element if `selected=false`. */
|
|
37
|
-
notSelectedDate: string;
|
|
38
|
-
}
|
|
39
|
-
export declare type DateRangePickerDayClassKey = keyof DateRangePickerDayClasses;
|
|
40
|
-
export declare function getDateRangePickerDayUtilityClass(slot: string): string;
|
|
41
|
-
export declare const dateRangePickerDayClasses: DateRangePickerDayClasses;
|
|
1
|
+
export interface DateRangePickerDayClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `isHighlighting=true`. */
|
|
5
|
+
rangeIntervalDayHighlight: string;
|
|
6
|
+
/** Styles applied to the root element if `isStartOfHighlighting=true`. */
|
|
7
|
+
rangeIntervalDayHighlightStart: string;
|
|
8
|
+
/** Styles applied to the root element if `isEndOfHighlighting=true`. */
|
|
9
|
+
rangeIntervalDayHighlightEnd: string;
|
|
10
|
+
/** Styles applied to the preview element. */
|
|
11
|
+
rangeIntervalPreview: string;
|
|
12
|
+
/** Styles applied to the root element if `isPreviewing=true`. */
|
|
13
|
+
rangeIntervalDayPreview: string;
|
|
14
|
+
/** Styles applied to the root element if `isStartOfPreviewing=true`. */
|
|
15
|
+
rangeIntervalDayPreviewStart: string;
|
|
16
|
+
/** Styles applied to the root element if `isEndOfPreviewing=true`. */
|
|
17
|
+
rangeIntervalDayPreviewEnd: string;
|
|
18
|
+
/** Styles applied to the root element if `outsideCurrentMonth=true` */
|
|
19
|
+
outsideCurrentMonth: string;
|
|
20
|
+
/** Styles applied to the root element if `day` is the start of the month. */
|
|
21
|
+
startOfMonth: string;
|
|
22
|
+
/** Styles applied to the root element if `day` is the end of the month. */
|
|
23
|
+
endOfMonth: string;
|
|
24
|
+
/** Styles applied to the root element if `day` is the first visible cell of the month. */
|
|
25
|
+
firstVisibleCell: string;
|
|
26
|
+
/** Styles applied to the root element if `day` is the last visible cell of the month. */
|
|
27
|
+
lastVisibleCell: string;
|
|
28
|
+
/** Styles applied to the root element if it is an empty cell used to fill the week. */
|
|
29
|
+
hiddenDayFiller: string;
|
|
30
|
+
/** Styles applied to the day element. */
|
|
31
|
+
day: string;
|
|
32
|
+
/** Styles applied to the day element if `isHighlighting=false`. */
|
|
33
|
+
dayOutsideRangeInterval: string;
|
|
34
|
+
/** Styles applied to the day element if `selected=false` and `isHighlighting=true`. */
|
|
35
|
+
dayInsideRangeInterval: string;
|
|
36
|
+
/** Styles applied to the day element if `selected=false`. */
|
|
37
|
+
notSelectedDate: string;
|
|
38
|
+
}
|
|
39
|
+
export declare type DateRangePickerDayClassKey = keyof DateRangePickerDayClasses;
|
|
40
|
+
export declare function getDateRangePickerDayUtilityClass(slot: string): string;
|
|
41
|
+
export declare const dateRangePickerDayClasses: DateRangePickerDayClasses;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DateRangePickerDay } from './DateRangePickerDay';
|
|
2
|
-
export type { DateRangePickerDayProps } from './DateRangePickerDay';
|
|
3
|
-
export { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses, } from './dateRangePickerDayClasses';
|
|
4
|
-
export type { DateRangePickerDayClasses, DateRangePickerDayClassKey, } from './dateRangePickerDayClasses';
|
|
1
|
+
export { DateRangePickerDay } from './DateRangePickerDay';
|
|
2
|
+
export type { DateRangePickerDayProps } from './DateRangePickerDay';
|
|
3
|
+
export { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses, } from './dateRangePickerDayClasses';
|
|
4
|
+
export type { DateRangePickerDayClasses, DateRangePickerDayClassKey, } from './dateRangePickerDayClasses';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DesktopDateRangePickerProps } from './DesktopDateRangePicker.types';
|
|
3
|
-
declare type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
4
|
-
propTypes?: any;
|
|
5
|
-
};
|
|
6
|
-
declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
|
|
7
|
-
export { DesktopDateRangePicker };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DesktopDateRangePickerProps } from './DesktopDateRangePicker.types';
|
|
3
|
+
declare type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
4
|
+
propTypes?: any;
|
|
5
|
+
};
|
|
6
|
+
declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
|
|
7
|
+
export { DesktopDateRangePicker };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { MakeOptional, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
2
|
-
import { UseDesktopRangePickerSlotsComponent, UseDesktopRangePickerSlotsComponentsProps, DesktopRangeOnlyPickerProps } from '../internals/hooks/useDesktopRangePicker';
|
|
3
|
-
import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
|
|
4
|
-
export interface DesktopDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, MakeOptional<UseDesktopRangePickerSlotsComponent<TDate, 'day'>, 'Field'> {
|
|
5
|
-
}
|
|
6
|
-
export interface DesktopDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseDesktopRangePickerSlotsComponentsProps<TDate, 'day'> {
|
|
7
|
-
}
|
|
8
|
-
export interface DesktopDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, DesktopRangeOnlyPickerProps<TDate> {
|
|
9
|
-
/**
|
|
10
|
-
* The number of calendars to render on **desktop**.
|
|
11
|
-
* @default 2
|
|
12
|
-
*/
|
|
13
|
-
calendars?: 1 | 2 | 3;
|
|
14
|
-
/**
|
|
15
|
-
* Overridable components.
|
|
16
|
-
* @default {}
|
|
17
|
-
* @deprecated Please use `slots`.
|
|
18
|
-
*/
|
|
19
|
-
components?: DesktopDateRangePickerSlotsComponent<TDate>;
|
|
20
|
-
/**
|
|
21
|
-
* The props used for each component slot.
|
|
22
|
-
* @default {}
|
|
23
|
-
* @deprecated Please use `slotProps`.
|
|
24
|
-
*/
|
|
25
|
-
componentsProps?: DesktopDateRangePickerSlotsComponentsProps<TDate>;
|
|
26
|
-
/**
|
|
27
|
-
* Overridable component slots.
|
|
28
|
-
* @default {}
|
|
29
|
-
*/
|
|
30
|
-
slots?: UncapitalizeObjectKeys<DesktopDateRangePickerSlotsComponent<TDate>>;
|
|
31
|
-
/**
|
|
32
|
-
* The props used for each component slot.
|
|
33
|
-
* @default {}
|
|
34
|
-
*/
|
|
35
|
-
slotProps?: DesktopDateRangePickerSlotsComponentsProps<TDate>;
|
|
36
|
-
}
|
|
1
|
+
import { MakeOptional, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
2
|
+
import { UseDesktopRangePickerSlotsComponent, UseDesktopRangePickerSlotsComponentsProps, DesktopRangeOnlyPickerProps } from '../internals/hooks/useDesktopRangePicker';
|
|
3
|
+
import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
|
|
4
|
+
export interface DesktopDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, MakeOptional<UseDesktopRangePickerSlotsComponent<TDate, 'day'>, 'Field'> {
|
|
5
|
+
}
|
|
6
|
+
export interface DesktopDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseDesktopRangePickerSlotsComponentsProps<TDate, 'day'> {
|
|
7
|
+
}
|
|
8
|
+
export interface DesktopDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, DesktopRangeOnlyPickerProps<TDate> {
|
|
9
|
+
/**
|
|
10
|
+
* The number of calendars to render on **desktop**.
|
|
11
|
+
* @default 2
|
|
12
|
+
*/
|
|
13
|
+
calendars?: 1 | 2 | 3;
|
|
14
|
+
/**
|
|
15
|
+
* Overridable components.
|
|
16
|
+
* @default {}
|
|
17
|
+
* @deprecated Please use `slots`.
|
|
18
|
+
*/
|
|
19
|
+
components?: DesktopDateRangePickerSlotsComponent<TDate>;
|
|
20
|
+
/**
|
|
21
|
+
* The props used for each component slot.
|
|
22
|
+
* @default {}
|
|
23
|
+
* @deprecated Please use `slotProps`.
|
|
24
|
+
*/
|
|
25
|
+
componentsProps?: DesktopDateRangePickerSlotsComponentsProps<TDate>;
|
|
26
|
+
/**
|
|
27
|
+
* Overridable component slots.
|
|
28
|
+
* @default {}
|
|
29
|
+
*/
|
|
30
|
+
slots?: UncapitalizeObjectKeys<DesktopDateRangePickerSlotsComponent<TDate>>;
|
|
31
|
+
/**
|
|
32
|
+
* The props used for each component slot.
|
|
33
|
+
* @default {}
|
|
34
|
+
*/
|
|
35
|
+
slotProps?: DesktopDateRangePickerSlotsComponentsProps<TDate>;
|
|
36
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DesktopDateRangePicker } from './DesktopDateRangePicker';
|
|
2
|
-
export type { DesktopDateRangePickerProps, DesktopDateRangePickerSlotsComponent, DesktopDateRangePickerSlotsComponentsProps, } from './DesktopDateRangePicker.types';
|
|
1
|
+
export { DesktopDateRangePicker } from './DesktopDateRangePicker';
|
|
2
|
+
export type { DesktopDateRangePickerProps, DesktopDateRangePickerSlotsComponent, DesktopDateRangePickerSlotsComponentsProps, } from './DesktopDateRangePicker.types';
|
package/lib/Dialog/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default Dialog;
|
|
1
|
+
declare const Dialog: (props: any) => JSX.Element;
|
|
2
|
+
export default Dialog;
|
package/lib/Drawer/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.less";
|
|
3
|
-
interface DrawerProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
height?: number;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Drawer: (props: DrawerProps) =>
|
|
11
|
-
export default Drawer;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
interface DrawerProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
height?: number;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Drawer: (props: DrawerProps) => JSX.Element | null;
|
|
11
|
+
export default Drawer;
|
package/lib/Drawer/index.less
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
.date-picker-drawer {
|
|
2
|
-
position: fixed;
|
|
3
|
-
bottom: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
width: 100%;
|
|
6
|
-
background-color: white;
|
|
7
|
-
box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
|
|
8
|
-
transform: translateY(100%);
|
|
9
|
-
transition: transform 0.3s ease-out;
|
|
10
|
-
z-index: 1000;
|
|
11
|
-
border-radius: 8px 8px 0 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.date-picker-drawer-content {
|
|
15
|
-
//transform: translateY(100%);
|
|
16
|
-
//transition: transform 0.3s ease-out;
|
|
17
|
-
//position: absolute;
|
|
18
|
-
//padding: 20px;
|
|
19
|
-
//bottom: 0;
|
|
20
|
-
//width: 100vw;
|
|
21
|
-
//background-color: #fff;
|
|
22
|
-
//z-index: 1000;
|
|
23
|
-
//box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
|
|
24
|
-
//border-radius: 8px 8px 0px 0px;
|
|
25
|
-
//height: 650px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.date-picker-drawer.open {
|
|
29
|
-
transform: translateY(0);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.date-picker-drawer-overlay {
|
|
33
|
-
position: fixed;
|
|
34
|
-
top: 0;
|
|
35
|
-
left: 0;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
39
|
-
z-index: 999;
|
|
1
|
+
.date-picker-drawer {
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background-color: white;
|
|
7
|
+
box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
|
|
8
|
+
transform: translateY(100%);
|
|
9
|
+
transition: transform 0.3s ease-out;
|
|
10
|
+
z-index: 1000;
|
|
11
|
+
border-radius: 8px 8px 0 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.date-picker-drawer-content {
|
|
15
|
+
//transform: translateY(100%);
|
|
16
|
+
//transition: transform 0.3s ease-out;
|
|
17
|
+
//position: absolute;
|
|
18
|
+
//padding: 20px;
|
|
19
|
+
//bottom: 0;
|
|
20
|
+
//width: 100vw;
|
|
21
|
+
//background-color: #fff;
|
|
22
|
+
//z-index: 1000;
|
|
23
|
+
//box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
|
|
24
|
+
//border-radius: 8px 8px 0px 0px;
|
|
25
|
+
//height: 650px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.date-picker-drawer.open {
|
|
29
|
+
transform: translateY(0);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.date-picker-drawer-overlay {
|
|
33
|
+
position: fixed;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
39
|
+
z-index: 999;
|
|
40
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MobileDateRangePickerProps } from './MobileDateRangePicker.types';
|
|
3
|
-
declare type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
4
|
-
propTypes?: any;
|
|
5
|
-
};
|
|
6
|
-
declare const MobileDateRangePicker: MobileDateRangePickerComponent;
|
|
7
|
-
export { MobileDateRangePicker };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MobileDateRangePickerProps } from './MobileDateRangePicker.types';
|
|
3
|
+
declare type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
4
|
+
propTypes?: any;
|
|
5
|
+
};
|
|
6
|
+
declare const MobileDateRangePicker: MobileDateRangePickerComponent;
|
|
7
|
+
export { MobileDateRangePicker };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { MakeOptional, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
2
|
-
import { UseMobileRangePickerSlotsComponent, UseMobileRangePickerSlotsComponentsProps, MobileRangeOnlyPickerProps } from '../internals/hooks/useMobileRangePicker';
|
|
3
|
-
import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
|
|
4
|
-
export interface MobileDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, MakeOptional<UseMobileRangePickerSlotsComponent<TDate, 'day'>, 'Field'> {
|
|
5
|
-
}
|
|
6
|
-
export interface MobileDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseMobileRangePickerSlotsComponentsProps<TDate, 'day'> {
|
|
7
|
-
}
|
|
8
|
-
export interface MobileDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MobileRangeOnlyPickerProps<TDate> {
|
|
9
|
-
/**
|
|
10
|
-
* The number of calendars to render on **desktop**.
|
|
11
|
-
* @default 2
|
|
12
|
-
*/
|
|
13
|
-
calendars?: 1 | 2 | 3;
|
|
14
|
-
/**
|
|
15
|
-
* Overridable components.
|
|
16
|
-
* @default {}
|
|
17
|
-
* @deprecated Please use `slots`.
|
|
18
|
-
*/
|
|
19
|
-
components?: MobileDateRangePickerSlotsComponent<TDate>;
|
|
20
|
-
/**
|
|
21
|
-
* The props used for each component slot.
|
|
22
|
-
* @default {}
|
|
23
|
-
* @deprecated Please use `slotProps`.
|
|
24
|
-
*/
|
|
25
|
-
componentsProps?: MobileDateRangePickerSlotsComponentsProps<TDate>;
|
|
26
|
-
/**
|
|
27
|
-
* Overridable component slots.
|
|
28
|
-
* @default {}
|
|
29
|
-
*/
|
|
30
|
-
slots?: UncapitalizeObjectKeys<MobileDateRangePickerSlotsComponent<TDate>>;
|
|
31
|
-
/**
|
|
32
|
-
* The props used for each component slot.
|
|
33
|
-
* @default {}
|
|
34
|
-
*/
|
|
35
|
-
slotProps?: MobileDateRangePickerSlotsComponentsProps<TDate>;
|
|
36
|
-
}
|
|
1
|
+
import { MakeOptional, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
2
|
+
import { UseMobileRangePickerSlotsComponent, UseMobileRangePickerSlotsComponentsProps, MobileRangeOnlyPickerProps } from '../internals/hooks/useMobileRangePicker';
|
|
3
|
+
import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
|
|
4
|
+
export interface MobileDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, MakeOptional<UseMobileRangePickerSlotsComponent<TDate, 'day'>, 'Field'> {
|
|
5
|
+
}
|
|
6
|
+
export interface MobileDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseMobileRangePickerSlotsComponentsProps<TDate, 'day'> {
|
|
7
|
+
}
|
|
8
|
+
export interface MobileDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MobileRangeOnlyPickerProps<TDate> {
|
|
9
|
+
/**
|
|
10
|
+
* The number of calendars to render on **desktop**.
|
|
11
|
+
* @default 2
|
|
12
|
+
*/
|
|
13
|
+
calendars?: 1 | 2 | 3;
|
|
14
|
+
/**
|
|
15
|
+
* Overridable components.
|
|
16
|
+
* @default {}
|
|
17
|
+
* @deprecated Please use `slots`.
|
|
18
|
+
*/
|
|
19
|
+
components?: MobileDateRangePickerSlotsComponent<TDate>;
|
|
20
|
+
/**
|
|
21
|
+
* The props used for each component slot.
|
|
22
|
+
* @default {}
|
|
23
|
+
* @deprecated Please use `slotProps`.
|
|
24
|
+
*/
|
|
25
|
+
componentsProps?: MobileDateRangePickerSlotsComponentsProps<TDate>;
|
|
26
|
+
/**
|
|
27
|
+
* Overridable component slots.
|
|
28
|
+
* @default {}
|
|
29
|
+
*/
|
|
30
|
+
slots?: UncapitalizeObjectKeys<MobileDateRangePickerSlotsComponent<TDate>>;
|
|
31
|
+
/**
|
|
32
|
+
* The props used for each component slot.
|
|
33
|
+
* @default {}
|
|
34
|
+
*/
|
|
35
|
+
slotProps?: MobileDateRangePickerSlotsComponentsProps<TDate>;
|
|
36
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { MobileDateRangePicker } from './MobileDateRangePicker';
|
|
2
|
-
export type { MobileDateRangePickerProps, MobileDateRangePickerSlotsComponent, MobileDateRangePickerSlotsComponentsProps, } from './MobileDateRangePicker.types';
|
|
1
|
+
export { MobileDateRangePicker } from './MobileDateRangePicker';
|
|
2
|
+
export type { MobileDateRangePickerProps, MobileDateRangePickerSlotsComponent, MobileDateRangePickerSlotsComponentsProps, } from './MobileDateRangePicker.types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MultiInputDateRangeFieldProps } from './MultiInputDateRangeField.types';
|
|
3
|
-
declare type MultiInputDateRangeFieldComponent = (<TDate>(props: MultiInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
|
|
4
|
-
propTypes?: any;
|
|
5
|
-
};
|
|
6
|
-
declare const MultiInputDateRangeField: MultiInputDateRangeFieldComponent;
|
|
7
|
-
export { MultiInputDateRangeField };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MultiInputDateRangeFieldProps } from './MultiInputDateRangeField.types';
|
|
3
|
+
declare type MultiInputDateRangeFieldComponent = (<TDate>(props: MultiInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
|
|
4
|
+
propTypes?: any;
|
|
5
|
+
};
|
|
6
|
+
declare const MultiInputDateRangeField: MultiInputDateRangeFieldComponent;
|
|
7
|
+
export { MultiInputDateRangeField };
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/base/utils';
|
|
3
|
-
import Typography from '@mui/material/Typography';
|
|
4
|
-
import Stack, { StackProps } from '@mui/material/Stack';
|
|
5
|
-
import TextField from '@mui/material/TextField';
|
|
6
|
-
import { FieldRef } from '@mui/x-date-pickers/models';
|
|
7
|
-
import { UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
8
|
-
import { UseDateRangeFieldProps } from '../internals/models/dateRange';
|
|
9
|
-
import { RangePosition } from '../internals/models/range';
|
|
10
|
-
import { UseMultiInputRangeFieldParams } from '../internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types';
|
|
11
|
-
import { RangeFieldSection } from '../internals/models/fields';
|
|
12
|
-
export declare type UseMultiInputDateRangeFieldParams<TDate, TTextFieldSlotProps extends {}> = UseMultiInputRangeFieldParams<UseMultiInputDateRangeFieldProps<TDate>, TTextFieldSlotProps>;
|
|
13
|
-
export interface UseMultiInputDateRangeFieldProps<TDate> extends Omit<UseDateRangeFieldProps<TDate>, 'unstableFieldRef'> {
|
|
14
|
-
unstableStartFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
|
|
15
|
-
unstableEndFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
|
|
16
|
-
}
|
|
17
|
-
export declare type UseMultiInputDateRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseMultiInputDateRangeFieldProps<TDate>> & UseMultiInputDateRangeFieldProps<TDate>;
|
|
18
|
-
export interface MultiInputDateRangeFieldProps<TDate> extends UseMultiInputDateRangeFieldComponentProps<TDate, Omit<StackProps, 'position'>> {
|
|
19
|
-
autoFocus?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Overridable components.
|
|
22
|
-
* @default {}
|
|
23
|
-
* @deprecated Please use `slots`.
|
|
24
|
-
*/
|
|
25
|
-
components?: MultiInputDateRangeFieldSlotsComponent;
|
|
26
|
-
/**
|
|
27
|
-
* The props used for each component slot.
|
|
28
|
-
* @default {}
|
|
29
|
-
* @deprecated Please use `slotProps`.
|
|
30
|
-
*/
|
|
31
|
-
componentsProps?: MultiInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
32
|
-
/**
|
|
33
|
-
* Overridable component slots.
|
|
34
|
-
* @default {}
|
|
35
|
-
*/
|
|
36
|
-
slots?: UncapitalizeObjectKeys<MultiInputDateRangeFieldSlotsComponent>;
|
|
37
|
-
/**
|
|
38
|
-
* The props used for each component slot.
|
|
39
|
-
* @default {}
|
|
40
|
-
*/
|
|
41
|
-
slotProps?: MultiInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
42
|
-
}
|
|
43
|
-
export declare type MultiInputDateRangeFieldOwnerState<TDate> = MultiInputDateRangeFieldProps<TDate>;
|
|
44
|
-
export interface MultiInputDateRangeFieldSlotsComponent {
|
|
45
|
-
/**
|
|
46
|
-
* Element rendered at the root.
|
|
47
|
-
* @default MultiInputDateRangeFieldRoot
|
|
48
|
-
*/
|
|
49
|
-
Root?: React.ElementType;
|
|
50
|
-
/**
|
|
51
|
-
* Form control with an input to render a date.
|
|
52
|
-
* It is rendered twice: once for the start date and once for the end date.
|
|
53
|
-
* Receives the same props as `@mui/material/TextField`.
|
|
54
|
-
* @default TextField from '@mui/material'
|
|
55
|
-
*/
|
|
56
|
-
TextField?: React.ElementType;
|
|
57
|
-
/**
|
|
58
|
-
* Element rendered between the two inputs.
|
|
59
|
-
* @default MultiInputDateRangeFieldSeparator
|
|
60
|
-
*/
|
|
61
|
-
Separator?: React.ElementType;
|
|
62
|
-
}
|
|
63
|
-
export interface MultiInputDateRangeFieldSlotsComponentsProps<TDate> {
|
|
64
|
-
root?: SlotComponentProps<typeof Stack, {}, MultiInputDateRangeFieldOwnerState<TDate>>;
|
|
65
|
-
textField?: SlotComponentProps<typeof TextField, {}, MultiInputDateRangeFieldOwnerState<TDate> & {
|
|
66
|
-
position: RangePosition;
|
|
67
|
-
}>;
|
|
68
|
-
separator?: SlotComponentProps<typeof Typography, {}, MultiInputDateRangeFieldOwnerState<TDate>>;
|
|
69
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SlotComponentProps } from '@mui/base/utils';
|
|
3
|
+
import Typography from '@mui/material/Typography';
|
|
4
|
+
import Stack, { StackProps } from '@mui/material/Stack';
|
|
5
|
+
import TextField from '@mui/material/TextField';
|
|
6
|
+
import { FieldRef } from '@mui/x-date-pickers/models';
|
|
7
|
+
import { UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
|
|
8
|
+
import { UseDateRangeFieldProps } from '../internals/models/dateRange';
|
|
9
|
+
import { RangePosition } from '../internals/models/range';
|
|
10
|
+
import { UseMultiInputRangeFieldParams } from '../internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types';
|
|
11
|
+
import { RangeFieldSection } from '../internals/models/fields';
|
|
12
|
+
export declare type UseMultiInputDateRangeFieldParams<TDate, TTextFieldSlotProps extends {}> = UseMultiInputRangeFieldParams<UseMultiInputDateRangeFieldProps<TDate>, TTextFieldSlotProps>;
|
|
13
|
+
export interface UseMultiInputDateRangeFieldProps<TDate> extends Omit<UseDateRangeFieldProps<TDate>, 'unstableFieldRef'> {
|
|
14
|
+
unstableStartFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
|
|
15
|
+
unstableEndFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
|
|
16
|
+
}
|
|
17
|
+
export declare type UseMultiInputDateRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseMultiInputDateRangeFieldProps<TDate>> & UseMultiInputDateRangeFieldProps<TDate>;
|
|
18
|
+
export interface MultiInputDateRangeFieldProps<TDate> extends UseMultiInputDateRangeFieldComponentProps<TDate, Omit<StackProps, 'position'>> {
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Overridable components.
|
|
22
|
+
* @default {}
|
|
23
|
+
* @deprecated Please use `slots`.
|
|
24
|
+
*/
|
|
25
|
+
components?: MultiInputDateRangeFieldSlotsComponent;
|
|
26
|
+
/**
|
|
27
|
+
* The props used for each component slot.
|
|
28
|
+
* @default {}
|
|
29
|
+
* @deprecated Please use `slotProps`.
|
|
30
|
+
*/
|
|
31
|
+
componentsProps?: MultiInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
32
|
+
/**
|
|
33
|
+
* Overridable component slots.
|
|
34
|
+
* @default {}
|
|
35
|
+
*/
|
|
36
|
+
slots?: UncapitalizeObjectKeys<MultiInputDateRangeFieldSlotsComponent>;
|
|
37
|
+
/**
|
|
38
|
+
* The props used for each component slot.
|
|
39
|
+
* @default {}
|
|
40
|
+
*/
|
|
41
|
+
slotProps?: MultiInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
42
|
+
}
|
|
43
|
+
export declare type MultiInputDateRangeFieldOwnerState<TDate> = MultiInputDateRangeFieldProps<TDate>;
|
|
44
|
+
export interface MultiInputDateRangeFieldSlotsComponent {
|
|
45
|
+
/**
|
|
46
|
+
* Element rendered at the root.
|
|
47
|
+
* @default MultiInputDateRangeFieldRoot
|
|
48
|
+
*/
|
|
49
|
+
Root?: React.ElementType;
|
|
50
|
+
/**
|
|
51
|
+
* Form control with an input to render a date.
|
|
52
|
+
* It is rendered twice: once for the start date and once for the end date.
|
|
53
|
+
* Receives the same props as `@mui/material/TextField`.
|
|
54
|
+
* @default TextField from '@mui/material'
|
|
55
|
+
*/
|
|
56
|
+
TextField?: React.ElementType;
|
|
57
|
+
/**
|
|
58
|
+
* Element rendered between the two inputs.
|
|
59
|
+
* @default MultiInputDateRangeFieldSeparator
|
|
60
|
+
*/
|
|
61
|
+
Separator?: React.ElementType;
|
|
62
|
+
}
|
|
63
|
+
export interface MultiInputDateRangeFieldSlotsComponentsProps<TDate> {
|
|
64
|
+
root?: SlotComponentProps<typeof Stack, {}, MultiInputDateRangeFieldOwnerState<TDate>>;
|
|
65
|
+
textField?: SlotComponentProps<typeof TextField, {}, MultiInputDateRangeFieldOwnerState<TDate> & {
|
|
66
|
+
position: RangePosition;
|
|
67
|
+
}>;
|
|
68
|
+
separator?: SlotComponentProps<typeof Typography, {}, MultiInputDateRangeFieldOwnerState<TDate>>;
|
|
69
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MultiInputDateRangeField } from './MultiInputDateRangeField';
|
|
2
|
-
export { useMultiInputDateRangeField as unstable_useMultiInputDateRangeField } from '../internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField';
|
|
3
|
-
export type { UseMultiInputDateRangeFieldProps, UseMultiInputDateRangeFieldComponentProps, MultiInputDateRangeFieldProps, } from './MultiInputDateRangeField.types';
|
|
1
|
+
export { MultiInputDateRangeField } from './MultiInputDateRangeField';
|
|
2
|
+
export { useMultiInputDateRangeField as unstable_useMultiInputDateRangeField } from '../internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField';
|
|
3
|
+
export type { UseMultiInputDateRangeFieldProps, UseMultiInputDateRangeFieldComponentProps, MultiInputDateRangeFieldProps, } from './MultiInputDateRangeField.types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MultiInputDateTimeRangeFieldProps } from './MultiInputDateTimeRangeField.types';
|
|
3
|
-
declare type MultiInputDateTimeRangeFieldComponent = (<TDate>(props: MultiInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
|
|
4
|
-
propTypes?: any;
|
|
5
|
-
};
|
|
6
|
-
declare const MultiInputDateTimeRangeField: MultiInputDateTimeRangeFieldComponent;
|
|
7
|
-
export { MultiInputDateTimeRangeField };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MultiInputDateTimeRangeFieldProps } from './MultiInputDateTimeRangeField.types';
|
|
3
|
+
declare type MultiInputDateTimeRangeFieldComponent = (<TDate>(props: MultiInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
|
|
4
|
+
propTypes?: any;
|
|
5
|
+
};
|
|
6
|
+
declare const MultiInputDateTimeRangeField: MultiInputDateTimeRangeFieldComponent;
|
|
7
|
+
export { MultiInputDateTimeRangeField };
|