@mui/lab 5.0.0-alpha.63 → 5.0.0-alpha.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdapterDateFns/index.d.ts +1 -1
- package/AdapterDayjs/index.d.ts +1 -1
- package/AdapterLuxon/index.d.ts +1 -1
- package/AdapterMoment/index.d.ts +1 -1
- package/CHANGELOG.md +75 -32
- package/CalendarPicker/CalendarPicker.d.ts +106 -106
- package/CalendarPicker/PickersCalendar.d.ts +47 -47
- package/CalendarPicker/PickersCalendarHeader.d.ts +43 -43
- package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
- package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
- package/CalendarPicker/index.d.ts +5 -5
- package/CalendarPicker/shared.d.ts +1 -1
- package/CalendarPicker/useCalendarState.d.ts +32 -32
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -41
- package/CalendarPickerSkeleton/index.d.ts +3 -3
- package/ClockPicker/Clock.d.ts +28 -28
- package/ClockPicker/ClockNumber.d.ts +19 -19
- package/ClockPicker/ClockNumbers.d.ts +24 -24
- package/ClockPicker/ClockPicker.d.ts +121 -121
- package/ClockPicker/ClockPicker.js +4 -1
- package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
- package/ClockPicker/ClockPointer.d.ts +23 -23
- package/ClockPicker/index.d.ts +5 -5
- package/ClockPicker/shared.d.ts +5 -5
- package/DatePicker/DatePicker.d.ts +27 -27
- package/DatePicker/DatePicker.js +5 -1
- package/DatePicker/DatePickerToolbar.d.ts +23 -23
- package/DatePicker/index.d.ts +2 -2
- package/DatePicker/shared.d.ts +45 -45
- package/DateRangePicker/DateRangePicker.d.ts +65 -65
- package/DateRangePicker/DateRangePicker.js +5 -1
- package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
- package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
- package/DateRangePicker/DateRangePickerView.d.ts +44 -44
- package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
- package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
- package/DateRangePicker/RangeTypes.d.ts +8 -8
- package/DateRangePicker/date-range-manager.d.ts +14 -14
- package/DateRangePicker/index.d.ts +3 -3
- package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +27 -27
- package/DateTimePicker/DateTimePicker.js +5 -1
- package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
- package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
- package/DateTimePicker/index.d.ts +2 -2
- package/DateTimePicker/shared.d.ts +67 -67
- package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
- package/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
- package/MobileDatePicker/MobileDatePicker.js +5 -1
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
- package/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
- package/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +53 -53
- package/MonthPicker/PickersMonth.d.ts +15 -15
- package/MonthPicker/index.d.ts +3 -3
- package/PickersDay/PickersDay.d.ts +93 -93
- package/PickersDay/index.d.ts +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
- package/StaticDatePicker/StaticDatePicker.js +5 -1
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
- package/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
- package/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +27 -27
- package/TimePicker/TimePickerToolbar.d.ts +23 -23
- package/TimePicker/index.d.ts +2 -2
- package/TimePicker/shared.d.ts +36 -36
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/PickersYear.d.ts +28 -28
- package/YearPicker/YearPicker.d.ts +44 -44
- package/YearPicker/index.d.ts +5 -5
- package/YearPicker/yearPickerClasses.d.ts +3 -3
- package/index.js +1 -1
- package/internal/pickers/KeyboardDateInput.d.ts +4 -4
- package/internal/pickers/Picker/Picker.d.ts +33 -33
- package/internal/pickers/Picker/PickerView.d.ts +3 -3
- package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
- package/internal/pickers/PickersModalDialog.d.ts +47 -47
- package/internal/pickers/PickersPopper.d.ts +33 -33
- package/internal/pickers/PickersToolbar.d.ts +14 -14
- package/internal/pickers/PickersToolbarButton.d.ts +13 -13
- package/internal/pickers/PickersToolbarText.d.ts +8 -8
- package/internal/pickers/PureDateInput.d.ts +80 -80
- package/internal/pickers/constants/dimensions.d.ts +4 -4
- package/internal/pickers/constants/prop-types.d.ts +1 -1
- package/internal/pickers/date-time-utils.d.ts +8 -8
- package/internal/pickers/date-utils.d.ts +52 -52
- package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
- package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
- package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
- package/internal/pickers/hooks/useOpenState.d.ts +10 -10
- package/internal/pickers/hooks/usePickerState.d.ts +38 -38
- package/internal/pickers/hooks/useUtils.d.ts +7 -7
- package/internal/pickers/hooks/useValidation.d.ts +23 -23
- package/internal/pickers/hooks/useViews.d.ts +19 -19
- package/internal/pickers/text-field-helper.d.ts +11 -11
- package/internal/pickers/time-utils.d.ts +33 -33
- package/internal/pickers/typings/BasePicker.d.ts +95 -95
- package/internal/pickers/typings/Views.d.ts +1 -1
- package/internal/pickers/typings/helpers.d.ts +9 -9
- package/internal/pickers/utils.d.ts +7 -7
- package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
- package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
- package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
- package/internal/pickers/wrappers/PickerStaticWrapper.d.ts +21 -21
- package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
- package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
- package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Time.d.ts +7 -7
- package/legacy/ClockPicker/ClockPicker.js +4 -1
- package/legacy/DatePicker/DatePicker.js +5 -1
- package/legacy/DateRangePicker/DateRangePicker.js +5 -1
- package/legacy/DateTimePicker/DateTimePicker.js +5 -1
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/legacy/MobileDatePicker/MobileDatePicker.js +5 -1
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +5 -1
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/legacy/index.js +1 -1
- package/modern/ClockPicker/ClockPicker.js +4 -1
- package/modern/DatePicker/DatePicker.js +5 -1
- package/modern/DateRangePicker/DateRangePicker.js +5 -1
- package/modern/DateTimePicker/DateTimePicker.js +5 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +5 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +5 -1
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/modern/index.js +1 -1
- package/node/ClockPicker/ClockPicker.js +4 -1
- package/node/DatePicker/DatePicker.js +5 -1
- package/node/DateRangePicker/DateRangePicker.js +5 -1
- package/node/DateTimePicker/DateTimePicker.js +5 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/node/MobileDatePicker/MobileDatePicker.js +5 -1
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/node/StaticDatePicker/StaticDatePicker.js +5 -1
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/node/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from '@mui/material/styles';
|
|
4
|
-
import { PickersDayProps } from '../PickersDay/PickersDay';
|
|
5
|
-
export interface DateRangePickerDayClasses {
|
|
6
|
-
/** Styles applied to the root element. */
|
|
7
|
-
root: string;
|
|
8
|
-
/** Styles applied to the root element if `isHighlighting=true` and `outsideCurrentMonth=false`. */
|
|
9
|
-
rangeIntervalDayHighlight: string;
|
|
10
|
-
/** Styles applied to the root element if `isStartOfHighlighting=true` or `day` is the start of the month. */
|
|
11
|
-
rangeIntervalDayHighlightStart: string;
|
|
12
|
-
/** Styles applied to the root element if `isEndOfHighlighting=true` or `day` is the end of the month. */
|
|
13
|
-
rangeIntervalDayHighlightEnd: string;
|
|
14
|
-
/** Styles applied to the preview element. */
|
|
15
|
-
rangeIntervalPreview: string;
|
|
16
|
-
/** Styles applied to the root element if `isPreviewing=true` and `outsideCurrentMonth=false`. */
|
|
17
|
-
rangeIntervalDayPreview: string;
|
|
18
|
-
/** Styles applied to the root element if `isStartOfPreviewing=true` or `day` is the start of the month. */
|
|
19
|
-
rangeIntervalDayPreviewStart: string;
|
|
20
|
-
/** Styles applied to the root element if `isEndOfPreviewing=true` or `day` is the end of the month. */
|
|
21
|
-
rangeIntervalDayPreviewEnd: string;
|
|
22
|
-
/** Styles applied to the day element. */
|
|
23
|
-
day: string;
|
|
24
|
-
/** Styles applied to the day element if `isHighlighting=false`. */
|
|
25
|
-
dayOutsideRangeInterval: string;
|
|
26
|
-
/** Styles applied to the day element if `selected=false` and `isHighlighting=true`. */
|
|
27
|
-
dayInsideRangeInterval: string;
|
|
28
|
-
/** Styles applied to the day element if `selected=false`. */
|
|
29
|
-
notSelectedDate: string;
|
|
30
|
-
}
|
|
31
|
-
export declare type DateRangePickerDayClassKey = keyof DateRangePickerDayClasses;
|
|
32
|
-
export interface DateRangePickerDayProps<TDate> extends Omit<PickersDayProps<TDate>, 'classes'> {
|
|
33
|
-
/**
|
|
34
|
-
* Set to `true` if the `day` is in a highlighted date range.
|
|
35
|
-
*/
|
|
36
|
-
isHighlighting: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Set to `true` if the `day` is the end of a highlighted date range.
|
|
39
|
-
*/
|
|
40
|
-
isEndOfHighlighting: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Set to `true` if the `day` is the start of a highlighted date range.
|
|
43
|
-
*/
|
|
44
|
-
isStartOfHighlighting: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Set to `true` if the `day` is in a preview date range.
|
|
47
|
-
*/
|
|
48
|
-
isPreviewing: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Set to `true` if the `day` is the start of a highlighted date range.
|
|
51
|
-
*/
|
|
52
|
-
isEndOfPreviewing: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Set to `true` if the `day` is the end of a highlighted date range.
|
|
55
|
-
*/
|
|
56
|
-
isStartOfPreviewing: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Override or extend the styles applied to the component.
|
|
59
|
-
*/
|
|
60
|
-
classes?: Partial<DateRangePickerDayClasses>;
|
|
61
|
-
/**
|
|
62
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
63
|
-
*/
|
|
64
|
-
sx?: SxProps<Theme>;
|
|
65
|
-
}
|
|
66
|
-
export declare function getDateRangePickerDayUtilityClass(slot: string): string;
|
|
67
|
-
export declare const dateRangePickerDayClasses: DateRangePickerDayClasses;
|
|
68
|
-
declare const _default: <TDate>(props: DateRangePickerDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* Demos:
|
|
72
|
-
*
|
|
73
|
-
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
74
|
-
*
|
|
75
|
-
* API:
|
|
76
|
-
*
|
|
77
|
-
* - [DateRangePickerDay API](https://mui.com/api/date-range-picker-day/)
|
|
78
|
-
*/
|
|
79
|
-
export default _default;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { PickersDayProps } from '../PickersDay/PickersDay';
|
|
5
|
+
export interface DateRangePickerDayClasses {
|
|
6
|
+
/** Styles applied to the root element. */
|
|
7
|
+
root: string;
|
|
8
|
+
/** Styles applied to the root element if `isHighlighting=true` and `outsideCurrentMonth=false`. */
|
|
9
|
+
rangeIntervalDayHighlight: string;
|
|
10
|
+
/** Styles applied to the root element if `isStartOfHighlighting=true` or `day` is the start of the month. */
|
|
11
|
+
rangeIntervalDayHighlightStart: string;
|
|
12
|
+
/** Styles applied to the root element if `isEndOfHighlighting=true` or `day` is the end of the month. */
|
|
13
|
+
rangeIntervalDayHighlightEnd: string;
|
|
14
|
+
/** Styles applied to the preview element. */
|
|
15
|
+
rangeIntervalPreview: string;
|
|
16
|
+
/** Styles applied to the root element if `isPreviewing=true` and `outsideCurrentMonth=false`. */
|
|
17
|
+
rangeIntervalDayPreview: string;
|
|
18
|
+
/** Styles applied to the root element if `isStartOfPreviewing=true` or `day` is the start of the month. */
|
|
19
|
+
rangeIntervalDayPreviewStart: string;
|
|
20
|
+
/** Styles applied to the root element if `isEndOfPreviewing=true` or `day` is the end of the month. */
|
|
21
|
+
rangeIntervalDayPreviewEnd: string;
|
|
22
|
+
/** Styles applied to the day element. */
|
|
23
|
+
day: string;
|
|
24
|
+
/** Styles applied to the day element if `isHighlighting=false`. */
|
|
25
|
+
dayOutsideRangeInterval: string;
|
|
26
|
+
/** Styles applied to the day element if `selected=false` and `isHighlighting=true`. */
|
|
27
|
+
dayInsideRangeInterval: string;
|
|
28
|
+
/** Styles applied to the day element if `selected=false`. */
|
|
29
|
+
notSelectedDate: string;
|
|
30
|
+
}
|
|
31
|
+
export declare type DateRangePickerDayClassKey = keyof DateRangePickerDayClasses;
|
|
32
|
+
export interface DateRangePickerDayProps<TDate> extends Omit<PickersDayProps<TDate>, 'classes'> {
|
|
33
|
+
/**
|
|
34
|
+
* Set to `true` if the `day` is in a highlighted date range.
|
|
35
|
+
*/
|
|
36
|
+
isHighlighting: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Set to `true` if the `day` is the end of a highlighted date range.
|
|
39
|
+
*/
|
|
40
|
+
isEndOfHighlighting: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set to `true` if the `day` is the start of a highlighted date range.
|
|
43
|
+
*/
|
|
44
|
+
isStartOfHighlighting: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Set to `true` if the `day` is in a preview date range.
|
|
47
|
+
*/
|
|
48
|
+
isPreviewing: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Set to `true` if the `day` is the start of a highlighted date range.
|
|
51
|
+
*/
|
|
52
|
+
isEndOfPreviewing: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Set to `true` if the `day` is the end of a highlighted date range.
|
|
55
|
+
*/
|
|
56
|
+
isStartOfPreviewing: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Override or extend the styles applied to the component.
|
|
59
|
+
*/
|
|
60
|
+
classes?: Partial<DateRangePickerDayClasses>;
|
|
61
|
+
/**
|
|
62
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
63
|
+
*/
|
|
64
|
+
sx?: SxProps<Theme>;
|
|
65
|
+
}
|
|
66
|
+
export declare function getDateRangePickerDayUtilityClass(slot: string): string;
|
|
67
|
+
export declare const dateRangePickerDayClasses: DateRangePickerDayClasses;
|
|
68
|
+
declare const _default: <TDate>(props: DateRangePickerDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* Demos:
|
|
72
|
+
*
|
|
73
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
74
|
+
*
|
|
75
|
+
* API:
|
|
76
|
+
*
|
|
77
|
+
* - [DateRangePickerDay API](https://mui.com/api/date-range-picker-day/)
|
|
78
|
+
*/
|
|
79
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DateRangePickerDay';
|
|
2
|
-
export { default } from './DateRangePickerDay';
|
|
1
|
+
export * from './DateRangePickerDay';
|
|
2
|
+
export { default } from './DateRangePickerDay';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DesktopDateTimePickerProps } from '../DesktopDateTimePicker';
|
|
3
|
-
import { MobileDateTimePickerProps } from '../MobileDateTimePicker';
|
|
4
|
-
export interface DateTimePickerProps<TDate = unknown> extends DesktopDateTimePickerProps<TDate>, MobileDateTimePickerProps<TDate> {
|
|
5
|
-
/**
|
|
6
|
-
* CSS media query when `Mobile` mode will be changed to `Desktop`.
|
|
7
|
-
* @default '@media (pointer: fine)'
|
|
8
|
-
* @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
|
|
9
|
-
*/
|
|
10
|
-
desktopModeMediaQuery?: string;
|
|
11
|
-
}
|
|
12
|
-
declare type DateTimePickerComponent = (<TDate>(props: DateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
13
|
-
propTypes?: any;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* Demos:
|
|
18
|
-
*
|
|
19
|
-
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
20
|
-
* - [Pickers](https://mui.com/components/pickers/)
|
|
21
|
-
*
|
|
22
|
-
* API:
|
|
23
|
-
*
|
|
24
|
-
* - [DateTimePicker API](https://mui.com/api/date-time-picker/)
|
|
25
|
-
*/
|
|
26
|
-
declare const DateTimePicker: DateTimePickerComponent;
|
|
27
|
-
export default DateTimePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DesktopDateTimePickerProps } from '../DesktopDateTimePicker';
|
|
3
|
+
import { MobileDateTimePickerProps } from '../MobileDateTimePicker';
|
|
4
|
+
export interface DateTimePickerProps<TDate = unknown> extends DesktopDateTimePickerProps<TDate>, MobileDateTimePickerProps<TDate> {
|
|
5
|
+
/**
|
|
6
|
+
* CSS media query when `Mobile` mode will be changed to `Desktop`.
|
|
7
|
+
* @default '@media (pointer: fine)'
|
|
8
|
+
* @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
|
|
9
|
+
*/
|
|
10
|
+
desktopModeMediaQuery?: string;
|
|
11
|
+
}
|
|
12
|
+
declare type DateTimePickerComponent = (<TDate>(props: DateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
13
|
+
propTypes?: any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* Demos:
|
|
18
|
+
*
|
|
19
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
20
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
21
|
+
*
|
|
22
|
+
* API:
|
|
23
|
+
*
|
|
24
|
+
* - [DateTimePicker API](https://mui.com/api/date-time-picker/)
|
|
25
|
+
*/
|
|
26
|
+
declare const DateTimePicker: DateTimePickerComponent;
|
|
27
|
+
export default DateTimePicker;
|
|
@@ -140,7 +140,11 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
140
140
|
* The props used for each slot inside.
|
|
141
141
|
* @default {}
|
|
142
142
|
*/
|
|
143
|
-
componentsProps: PropTypes.
|
|
143
|
+
componentsProps: PropTypes.shape({
|
|
144
|
+
leftArrowButton: PropTypes.object,
|
|
145
|
+
rightArrowButton: PropTypes.object,
|
|
146
|
+
switchViewButton: PropTypes.object
|
|
147
|
+
}),
|
|
144
148
|
|
|
145
149
|
/**
|
|
146
150
|
* Date tab icon.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DateTimePickerView } from './shared';
|
|
3
|
-
export interface DateTimePickerTabsProps {
|
|
4
|
-
dateRangeIcon?: React.ReactNode;
|
|
5
|
-
onChange: (view: DateTimePickerView) => void;
|
|
6
|
-
timeIcon?: React.ReactNode;
|
|
7
|
-
view: DateTimePickerView;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - internal component.
|
|
11
|
-
*/
|
|
12
|
-
declare const DateTimePickerTabs: (props: DateTimePickerTabsProps) => JSX.Element;
|
|
13
|
-
export default DateTimePickerTabs;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DateTimePickerView } from './shared';
|
|
3
|
+
export interface DateTimePickerTabsProps {
|
|
4
|
+
dateRangeIcon?: React.ReactNode;
|
|
5
|
+
onChange: (view: DateTimePickerView) => void;
|
|
6
|
+
timeIcon?: React.ReactNode;
|
|
7
|
+
view: DateTimePickerView;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @ignore - internal component.
|
|
11
|
+
*/
|
|
12
|
+
declare const DateTimePickerTabs: (props: DateTimePickerTabsProps) => JSX.Element;
|
|
13
|
+
export default DateTimePickerTabs;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
|
|
3
|
-
/**
|
|
4
|
-
* @ignore - internal component.
|
|
5
|
-
*/
|
|
6
|
-
declare const DateTimePickerToolbar: (props: ToolbarComponentProps) => JSX.Element;
|
|
7
|
-
export default DateTimePickerToolbar;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore - internal component.
|
|
5
|
+
*/
|
|
6
|
+
declare const DateTimePickerToolbar: (props: ToolbarComponentProps) => JSX.Element;
|
|
7
|
+
export default DateTimePickerToolbar;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DateTimePicker';
|
|
2
|
-
export { default } from './DateTimePicker';
|
|
1
|
+
export * from './DateTimePicker';
|
|
2
|
+
export { default } from './DateTimePicker';
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ExportedClockPickerProps } from '../ClockPicker/ClockPicker';
|
|
3
|
-
import { ExportedCalendarPickerProps } from '../CalendarPicker/CalendarPicker';
|
|
4
|
-
import { DateTimeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
|
|
5
|
-
import { ParseableDate } from '../internal/pickers/constants/prop-types';
|
|
6
|
-
import { BasePickerProps, ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
|
|
7
|
-
import { ExportedDateInputProps } from '../internal/pickers/PureDateInput';
|
|
8
|
-
export declare type DateTimePickerView = 'year' | 'day' | 'month' | 'hours' | 'minutes' | 'seconds';
|
|
9
|
-
export interface BaseDateTimePickerProps<TDate> extends ExportedClockPickerProps<TDate>, ExportedCalendarPickerProps<TDate>, BasePickerProps<ParseableDate<TDate>, TDate | null>, ValidationProps<DateTimeValidationError, ParseableDate<TDate>>, ExportedDateInputProps<ParseableDate<TDate>, TDate | null> {
|
|
10
|
-
/**
|
|
11
|
-
* The components used for each slot.
|
|
12
|
-
* Either a string to use a HTML element or a component.
|
|
13
|
-
* @default {}
|
|
14
|
-
*/
|
|
15
|
-
components?: ExportedCalendarPickerProps<TDate>['components'] & ExportedDateInputProps<ParseableDate<TDate>, TDate | null>['components'];
|
|
16
|
-
/**
|
|
17
|
-
* To show tabs.
|
|
18
|
-
*/
|
|
19
|
-
hideTabs?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Date tab icon.
|
|
22
|
-
*/
|
|
23
|
-
dateRangeIcon?: React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Time tab icon.
|
|
26
|
-
*/
|
|
27
|
-
timeIcon?: React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.
|
|
30
|
-
*/
|
|
31
|
-
minDateTime?: TDate;
|
|
32
|
-
/**
|
|
33
|
-
* Minimal selectable moment of time with binding to date, to set max time in each day use `maxTime`.
|
|
34
|
-
*/
|
|
35
|
-
maxDateTime?: TDate;
|
|
36
|
-
/**
|
|
37
|
-
* Callback fired on view change.
|
|
38
|
-
*/
|
|
39
|
-
onViewChange?: (view: DateTimePickerView) => void;
|
|
40
|
-
/**
|
|
41
|
-
* First view to show.
|
|
42
|
-
*/
|
|
43
|
-
openTo?: DateTimePickerView;
|
|
44
|
-
/**
|
|
45
|
-
* Component that will replace default toolbar renderer.
|
|
46
|
-
* @default DateTimePickerToolbar
|
|
47
|
-
*/
|
|
48
|
-
ToolbarComponent?: React.JSXElementConstructor<ToolbarComponentProps<TDate | null>>;
|
|
49
|
-
/**
|
|
50
|
-
* Mobile picker title, displaying in the toolbar.
|
|
51
|
-
* @default 'Select date & time'
|
|
52
|
-
*/
|
|
53
|
-
toolbarTitle?: React.ReactNode;
|
|
54
|
-
/**
|
|
55
|
-
* Date format, that is displaying in toolbar.
|
|
56
|
-
*/
|
|
57
|
-
toolbarFormat?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Array of views to show.
|
|
60
|
-
*/
|
|
61
|
-
views?: readonly DateTimePickerView[];
|
|
62
|
-
}
|
|
63
|
-
declare type DefaultizedProps<Props> = Props & {
|
|
64
|
-
inputFormat: string;
|
|
65
|
-
};
|
|
66
|
-
export declare function useDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps<unknown>>({ ampm, inputFormat, maxDate: maxDateProp, maxDateTime, maxTime, minDate: minDateProp, minDateTime, minTime, openTo, orientation, views, ...other }: Props, name: string): DefaultizedProps<Props> & Required<Pick<BaseDateTimePickerProps<unknown>, 'openTo' | 'views'>>;
|
|
67
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ExportedClockPickerProps } from '../ClockPicker/ClockPicker';
|
|
3
|
+
import { ExportedCalendarPickerProps } from '../CalendarPicker/CalendarPicker';
|
|
4
|
+
import { DateTimeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
|
|
5
|
+
import { ParseableDate } from '../internal/pickers/constants/prop-types';
|
|
6
|
+
import { BasePickerProps, ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
|
|
7
|
+
import { ExportedDateInputProps } from '../internal/pickers/PureDateInput';
|
|
8
|
+
export declare type DateTimePickerView = 'year' | 'day' | 'month' | 'hours' | 'minutes' | 'seconds';
|
|
9
|
+
export interface BaseDateTimePickerProps<TDate> extends ExportedClockPickerProps<TDate>, ExportedCalendarPickerProps<TDate>, BasePickerProps<ParseableDate<TDate>, TDate | null>, ValidationProps<DateTimeValidationError, ParseableDate<TDate>>, ExportedDateInputProps<ParseableDate<TDate>, TDate | null> {
|
|
10
|
+
/**
|
|
11
|
+
* The components used for each slot.
|
|
12
|
+
* Either a string to use a HTML element or a component.
|
|
13
|
+
* @default {}
|
|
14
|
+
*/
|
|
15
|
+
components?: ExportedCalendarPickerProps<TDate>['components'] & ExportedDateInputProps<ParseableDate<TDate>, TDate | null>['components'];
|
|
16
|
+
/**
|
|
17
|
+
* To show tabs.
|
|
18
|
+
*/
|
|
19
|
+
hideTabs?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Date tab icon.
|
|
22
|
+
*/
|
|
23
|
+
dateRangeIcon?: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Time tab icon.
|
|
26
|
+
*/
|
|
27
|
+
timeIcon?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.
|
|
30
|
+
*/
|
|
31
|
+
minDateTime?: TDate;
|
|
32
|
+
/**
|
|
33
|
+
* Minimal selectable moment of time with binding to date, to set max time in each day use `maxTime`.
|
|
34
|
+
*/
|
|
35
|
+
maxDateTime?: TDate;
|
|
36
|
+
/**
|
|
37
|
+
* Callback fired on view change.
|
|
38
|
+
*/
|
|
39
|
+
onViewChange?: (view: DateTimePickerView) => void;
|
|
40
|
+
/**
|
|
41
|
+
* First view to show.
|
|
42
|
+
*/
|
|
43
|
+
openTo?: DateTimePickerView;
|
|
44
|
+
/**
|
|
45
|
+
* Component that will replace default toolbar renderer.
|
|
46
|
+
* @default DateTimePickerToolbar
|
|
47
|
+
*/
|
|
48
|
+
ToolbarComponent?: React.JSXElementConstructor<ToolbarComponentProps<TDate | null>>;
|
|
49
|
+
/**
|
|
50
|
+
* Mobile picker title, displaying in the toolbar.
|
|
51
|
+
* @default 'Select date & time'
|
|
52
|
+
*/
|
|
53
|
+
toolbarTitle?: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Date format, that is displaying in toolbar.
|
|
56
|
+
*/
|
|
57
|
+
toolbarFormat?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Array of views to show.
|
|
60
|
+
*/
|
|
61
|
+
views?: readonly DateTimePickerView[];
|
|
62
|
+
}
|
|
63
|
+
declare type DefaultizedProps<Props> = Props & {
|
|
64
|
+
inputFormat: string;
|
|
65
|
+
};
|
|
66
|
+
export declare function useDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps<unknown>>({ ampm, inputFormat, maxDate: maxDateProp, maxDateTime, maxTime, minDate: minDateProp, minDateTime, minTime, openTo, orientation, views, ...other }: Props, name: string): DefaultizedProps<Props> & Required<Pick<BaseDateTimePickerProps<unknown>, 'openTo' | 'views'>>;
|
|
67
|
+
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseDatePickerProps } from '../DatePicker/shared';
|
|
3
|
-
import { DesktopWrapperProps } from '../internal/pickers/wrappers/DesktopWrapper';
|
|
4
|
-
export interface DesktopDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate>, DesktopWrapperProps {
|
|
5
|
-
}
|
|
6
|
-
declare type DesktopDatePickerComponent = (<TDate>(props: DesktopDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
7
|
-
propTypes?: any;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* Demos:
|
|
12
|
-
*
|
|
13
|
-
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
14
|
-
*
|
|
15
|
-
* API:
|
|
16
|
-
*
|
|
17
|
-
* - [DesktopDatePicker API](https://mui.com/api/desktop-date-picker/)
|
|
18
|
-
*/
|
|
19
|
-
declare const DesktopDatePicker: DesktopDatePickerComponent;
|
|
20
|
-
export default DesktopDatePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseDatePickerProps } from '../DatePicker/shared';
|
|
3
|
+
import { DesktopWrapperProps } from '../internal/pickers/wrappers/DesktopWrapper';
|
|
4
|
+
export interface DesktopDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate>, DesktopWrapperProps {
|
|
5
|
+
}
|
|
6
|
+
declare type DesktopDatePickerComponent = (<TDate>(props: DesktopDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
7
|
+
propTypes?: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* Demos:
|
|
12
|
+
*
|
|
13
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
14
|
+
*
|
|
15
|
+
* API:
|
|
16
|
+
*
|
|
17
|
+
* - [DesktopDatePicker API](https://mui.com/api/desktop-date-picker/)
|
|
18
|
+
*/
|
|
19
|
+
declare const DesktopDatePicker: DesktopDatePickerComponent;
|
|
20
|
+
export default DesktopDatePicker;
|
|
@@ -119,7 +119,11 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
119
119
|
* The props used for each slot inside.
|
|
120
120
|
* @default {}
|
|
121
121
|
*/
|
|
122
|
-
componentsProps: PropTypes.
|
|
122
|
+
componentsProps: PropTypes.shape({
|
|
123
|
+
leftArrowButton: PropTypes.object,
|
|
124
|
+
rightArrowButton: PropTypes.object,
|
|
125
|
+
switchViewButton: PropTypes.object
|
|
126
|
+
}),
|
|
123
127
|
|
|
124
128
|
/**
|
|
125
129
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DesktopDatePicker';
|
|
2
|
-
export { default } from './DesktopDatePicker';
|
|
1
|
+
export * from './DesktopDatePicker';
|
|
2
|
+
export { default } from './DesktopDatePicker';
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
|
|
3
|
-
import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
|
|
4
|
-
import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
|
|
5
|
-
import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
|
|
6
|
-
import { DesktopWrapperProps } from '../internal/pickers/wrappers/DesktopWrapper';
|
|
7
|
-
interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
|
|
8
|
-
/**
|
|
9
|
-
* The components used for each slot.
|
|
10
|
-
* Either a string to use a HTML element or a component.
|
|
11
|
-
* @default {}
|
|
12
|
-
*/
|
|
13
|
-
components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
|
|
14
|
-
/**
|
|
15
|
-
* Text for end input label and toolbar placeholder.
|
|
16
|
-
* @default 'End'
|
|
17
|
-
*/
|
|
18
|
-
endText?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
|
|
21
|
-
* @default '__/__/____'
|
|
22
|
-
*/
|
|
23
|
-
mask?: ExportedDateRangePickerInputProps['mask'];
|
|
24
|
-
/**
|
|
25
|
-
* Min selectable date. @DateIOType
|
|
26
|
-
* @default defaultMinDate
|
|
27
|
-
*/
|
|
28
|
-
minDate?: TDate;
|
|
29
|
-
/**
|
|
30
|
-
* Max selectable date. @DateIOType
|
|
31
|
-
* @default defaultMaxDate
|
|
32
|
-
*/
|
|
33
|
-
maxDate?: TDate;
|
|
34
|
-
/**
|
|
35
|
-
* Callback fired when the value (the selected date range) changes @DateIOType.
|
|
36
|
-
*/
|
|
37
|
-
onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Text for start input label and toolbar placeholder.
|
|
40
|
-
* @default 'Start'
|
|
41
|
-
*/
|
|
42
|
-
startText?: React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* The value of the date range picker.
|
|
45
|
-
*/
|
|
46
|
-
value: RangeInput<TDate>;
|
|
47
|
-
}
|
|
48
|
-
export interface DesktopDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate>, DesktopWrapperProps {
|
|
49
|
-
}
|
|
50
|
-
declare type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
51
|
-
propTypes: unknown;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* Demos:
|
|
56
|
-
*
|
|
57
|
-
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
58
|
-
*
|
|
59
|
-
* API:
|
|
60
|
-
*
|
|
61
|
-
* - [DesktopDateRangePicker API](https://mui.com/api/desktop-date-range-picker/)
|
|
62
|
-
*/
|
|
63
|
-
declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
|
|
64
|
-
export default DesktopDateRangePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
|
|
3
|
+
import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
|
|
4
|
+
import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
|
|
5
|
+
import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
|
|
6
|
+
import { DesktopWrapperProps } from '../internal/pickers/wrappers/DesktopWrapper';
|
|
7
|
+
interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
|
|
8
|
+
/**
|
|
9
|
+
* The components used for each slot.
|
|
10
|
+
* Either a string to use a HTML element or a component.
|
|
11
|
+
* @default {}
|
|
12
|
+
*/
|
|
13
|
+
components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
|
|
14
|
+
/**
|
|
15
|
+
* Text for end input label and toolbar placeholder.
|
|
16
|
+
* @default 'End'
|
|
17
|
+
*/
|
|
18
|
+
endText?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
|
|
21
|
+
* @default '__/__/____'
|
|
22
|
+
*/
|
|
23
|
+
mask?: ExportedDateRangePickerInputProps['mask'];
|
|
24
|
+
/**
|
|
25
|
+
* Min selectable date. @DateIOType
|
|
26
|
+
* @default defaultMinDate
|
|
27
|
+
*/
|
|
28
|
+
minDate?: TDate;
|
|
29
|
+
/**
|
|
30
|
+
* Max selectable date. @DateIOType
|
|
31
|
+
* @default defaultMaxDate
|
|
32
|
+
*/
|
|
33
|
+
maxDate?: TDate;
|
|
34
|
+
/**
|
|
35
|
+
* Callback fired when the value (the selected date range) changes @DateIOType.
|
|
36
|
+
*/
|
|
37
|
+
onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Text for start input label and toolbar placeholder.
|
|
40
|
+
* @default 'Start'
|
|
41
|
+
*/
|
|
42
|
+
startText?: React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* The value of the date range picker.
|
|
45
|
+
*/
|
|
46
|
+
value: RangeInput<TDate>;
|
|
47
|
+
}
|
|
48
|
+
export interface DesktopDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate>, DesktopWrapperProps {
|
|
49
|
+
}
|
|
50
|
+
declare type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
51
|
+
propTypes: unknown;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* Demos:
|
|
56
|
+
*
|
|
57
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
58
|
+
*
|
|
59
|
+
* API:
|
|
60
|
+
*
|
|
61
|
+
* - [DesktopDateRangePicker API](https://mui.com/api/desktop-date-range-picker/)
|
|
62
|
+
*/
|
|
63
|
+
declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
|
|
64
|
+
export default DesktopDateRangePicker;
|
|
@@ -160,7 +160,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
160
160
|
* The props used for each slot inside.
|
|
161
161
|
* @default {}
|
|
162
162
|
*/
|
|
163
|
-
componentsProps: PropTypes.
|
|
163
|
+
componentsProps: PropTypes.shape({
|
|
164
|
+
leftArrowButton: PropTypes.object,
|
|
165
|
+
rightArrowButton: PropTypes.object,
|
|
166
|
+
switchViewButton: PropTypes.object
|
|
167
|
+
}),
|
|
164
168
|
|
|
165
169
|
/**
|
|
166
170
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DesktopDateRangePicker';
|
|
2
|
-
export { default } from './DesktopDateRangePicker';
|
|
1
|
+
export * from './DesktopDateRangePicker';
|
|
2
|
+
export { default } from './DesktopDateRangePicker';
|