@mui/lab 5.0.0-alpha.69 → 5.0.0-alpha.72
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 +196 -2
- 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/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/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/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/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/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/LoadingButton.js +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/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
- 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/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
- 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 +44 -44
- 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/LoadingButton/LoadingButton.js +2 -2
- package/legacy/index.js +1 -1
- package/modern/LoadingButton/LoadingButton.js +2 -2
- package/modern/index.js +1 -1
- package/node/LoadingButton/LoadingButton.js +2 -2
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/themeAugmentation/components.d.ts +0 -66
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TimelineConnectorClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
|
|
6
|
-
export declare function getTimelineConnectorUtilityClass(slot: string): string;
|
|
7
|
-
declare const timelineConnectorClasses: TimelineConnectorClasses;
|
|
8
|
-
export default timelineConnectorClasses;
|
|
1
|
+
export interface TimelineConnectorClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
|
|
6
|
+
export declare function getTimelineConnectorUtilityClass(slot: string): string;
|
|
7
|
+
declare const timelineConnectorClasses: TimelineConnectorClasses;
|
|
8
|
+
export default timelineConnectorClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface TimelineContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
-
positionRight: string;
|
|
6
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
-
positionLeft: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type TimelineContentClassKey = keyof TimelineContentClasses;
|
|
12
|
-
export declare function getTimelineContentUtilityClass(slot: string): string;
|
|
13
|
-
declare const timelineContentClasses: TimelineContentClasses;
|
|
14
|
-
export default timelineContentClasses;
|
|
1
|
+
export interface TimelineContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
+
positionRight: string;
|
|
6
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
+
positionLeft: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type TimelineContentClassKey = keyof TimelineContentClasses;
|
|
12
|
+
export declare function getTimelineContentUtilityClass(slot: string): string;
|
|
13
|
+
declare const timelineContentClasses: TimelineContentClasses;
|
|
14
|
+
export default timelineContentClasses;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface TimelineDotClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
-
filled: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
-
outlined: string;
|
|
8
|
-
/** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
|
|
9
|
-
filledGrey: string;
|
|
10
|
-
/** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
|
|
11
|
-
outlinedGrey: string;
|
|
12
|
-
/** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
|
|
13
|
-
filledPrimary: string;
|
|
14
|
-
/** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
|
|
15
|
-
outlinedPrimary: string;
|
|
16
|
-
/** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
|
|
17
|
-
filledSecondary: string;
|
|
18
|
-
/** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
|
|
19
|
-
outlinedSecondary: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type TimelineDotClassKey = keyof TimelineDotClasses;
|
|
22
|
-
export declare function getTimelineDotUtilityClass(slot: string): string;
|
|
23
|
-
declare const timelineDotClasses: TimelineDotClasses;
|
|
24
|
-
export default timelineDotClasses;
|
|
1
|
+
export interface TimelineDotClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
+
filled: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
+
outlined: string;
|
|
8
|
+
/** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
|
|
9
|
+
filledGrey: string;
|
|
10
|
+
/** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
|
|
11
|
+
outlinedGrey: string;
|
|
12
|
+
/** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
|
|
13
|
+
filledPrimary: string;
|
|
14
|
+
/** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
|
|
15
|
+
outlinedPrimary: string;
|
|
16
|
+
/** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
|
|
17
|
+
filledSecondary: string;
|
|
18
|
+
/** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
|
|
19
|
+
outlinedSecondary: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type TimelineDotClassKey = keyof TimelineDotClasses;
|
|
22
|
+
export declare function getTimelineDotUtilityClass(slot: string): string;
|
|
23
|
+
declare const timelineDotClasses: TimelineDotClasses;
|
|
24
|
+
export default timelineDotClasses;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TimelineItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
5
|
-
positionLeft: string;
|
|
6
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
7
|
-
positionRight: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
/** Styles applied to the root element if TimelineOppositeContent isn't provided. */
|
|
11
|
-
missingOppositeContent: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type TimelineItemClassKey = keyof TimelineItemClasses;
|
|
14
|
-
export declare function getTimelineItemUtilityClass(slot: string): string;
|
|
15
|
-
declare const timelineItemClasses: TimelineItemClasses;
|
|
16
|
-
export default timelineItemClasses;
|
|
1
|
+
export interface TimelineItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
5
|
+
positionLeft: string;
|
|
6
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
7
|
+
positionRight: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
/** Styles applied to the root element if TimelineOppositeContent isn't provided. */
|
|
11
|
+
missingOppositeContent: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type TimelineItemClassKey = keyof TimelineItemClasses;
|
|
14
|
+
export declare function getTimelineItemUtilityClass(slot: string): string;
|
|
15
|
+
declare const timelineItemClasses: TimelineItemClasses;
|
|
16
|
+
export default timelineItemClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface TimelineOppositeContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
-
positionRight: string;
|
|
6
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
-
positionLeft: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
|
|
12
|
-
export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
|
|
13
|
-
declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
|
|
14
|
-
export default timelineOppositeContentClasses;
|
|
1
|
+
export interface TimelineOppositeContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
+
positionRight: string;
|
|
6
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
+
positionLeft: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
|
|
12
|
+
export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
|
|
13
|
+
declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
|
|
14
|
+
export default timelineOppositeContentClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TimelineSeparatorClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
|
|
6
|
-
export declare function getTimelineSeparatorUtilityClass(slot: string): string;
|
|
7
|
-
declare const timelineSeparatorClasses: TimelineSeparatorClasses;
|
|
8
|
-
export default timelineSeparatorClasses;
|
|
1
|
+
export interface TimelineSeparatorClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
|
|
6
|
+
export declare function getTimelineSeparatorUtilityClass(slot: string): string;
|
|
7
|
+
declare const timelineSeparatorClasses: TimelineSeparatorClasses;
|
|
8
|
+
export default timelineSeparatorClasses;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface TreeItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the transition component. */
|
|
5
|
-
group: string;
|
|
6
|
-
/** Styles applied to the content element. */
|
|
7
|
-
content: string;
|
|
8
|
-
/** State class applied to the content element when expanded. */
|
|
9
|
-
expanded: string;
|
|
10
|
-
/** State class applied to the content element when selected. */
|
|
11
|
-
selected: string;
|
|
12
|
-
/** State class applied to the content element when focused. */
|
|
13
|
-
focused: string;
|
|
14
|
-
/** State class applied to the element when disabled. */
|
|
15
|
-
disabled: string;
|
|
16
|
-
/** Styles applied to the tree node icon. */
|
|
17
|
-
iconContainer: string;
|
|
18
|
-
/** Styles applied to the label element. */
|
|
19
|
-
label: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type TreeItemClassKey = keyof TreeItemClasses;
|
|
22
|
-
export declare function getTreeItemUtilityClass(slot: string): string;
|
|
23
|
-
declare const treeItemClasses: TreeItemClasses;
|
|
24
|
-
export default treeItemClasses;
|
|
1
|
+
export interface TreeItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the transition component. */
|
|
5
|
+
group: string;
|
|
6
|
+
/** Styles applied to the content element. */
|
|
7
|
+
content: string;
|
|
8
|
+
/** State class applied to the content element when expanded. */
|
|
9
|
+
expanded: string;
|
|
10
|
+
/** State class applied to the content element when selected. */
|
|
11
|
+
selected: string;
|
|
12
|
+
/** State class applied to the content element when focused. */
|
|
13
|
+
focused: string;
|
|
14
|
+
/** State class applied to the element when disabled. */
|
|
15
|
+
disabled: string;
|
|
16
|
+
/** Styles applied to the tree node icon. */
|
|
17
|
+
iconContainer: string;
|
|
18
|
+
/** Styles applied to the label element. */
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type TreeItemClassKey = keyof TreeItemClasses;
|
|
22
|
+
export declare function getTreeItemUtilityClass(slot: string): string;
|
|
23
|
+
declare const treeItemClasses: TreeItemClasses;
|
|
24
|
+
export default treeItemClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TreeViewClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TreeViewClassKey = keyof TreeViewClasses;
|
|
6
|
-
export declare function getTreeViewUtilityClass(slot: string): string;
|
|
7
|
-
declare const treeViewClasses: TreeViewClasses;
|
|
8
|
-
export default treeViewClasses;
|
|
1
|
+
export interface TreeViewClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TreeViewClassKey = keyof TreeViewClasses;
|
|
6
|
+
export declare function getTreeViewUtilityClass(slot: string): string;
|
|
7
|
+
declare const treeViewClasses: TreeViewClasses;
|
|
8
|
+
export default treeViewClasses;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface YearProps {
|
|
3
|
-
autoFocus?: boolean;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
classes?: {
|
|
6
|
-
root?: string;
|
|
7
|
-
modeDesktop?: string;
|
|
8
|
-
modeMobile?: string;
|
|
9
|
-
yearButton?: string;
|
|
10
|
-
disabled?: string;
|
|
11
|
-
selected?: string;
|
|
12
|
-
};
|
|
13
|
-
className?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
forwardedRef?: React.Ref<HTMLButtonElement>;
|
|
16
|
-
onClick: (event: React.MouseEvent, value: number) => void;
|
|
17
|
-
onKeyDown: (event: React.KeyboardEvent, value: number) => void;
|
|
18
|
-
selected: boolean;
|
|
19
|
-
value: number;
|
|
20
|
-
}
|
|
21
|
-
export declare function getPickersYearUtilityClass(slot: string): string;
|
|
22
|
-
export declare type PickersYearClassKey = keyof NonNullable<YearProps['classes']>;
|
|
23
|
-
export declare const pickersYearClasses: Record<"root" | "selected" | "disabled" | "modeDesktop" | "modeMobile" | "yearButton", string>;
|
|
24
|
-
/**
|
|
25
|
-
* @ignore - internal component.
|
|
26
|
-
*/
|
|
27
|
-
declare const PickersYear: React.ForwardRefExoticComponent<YearProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
-
export default PickersYear;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface YearProps {
|
|
3
|
+
autoFocus?: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
classes?: {
|
|
6
|
+
root?: string;
|
|
7
|
+
modeDesktop?: string;
|
|
8
|
+
modeMobile?: string;
|
|
9
|
+
yearButton?: string;
|
|
10
|
+
disabled?: string;
|
|
11
|
+
selected?: string;
|
|
12
|
+
};
|
|
13
|
+
className?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
forwardedRef?: React.Ref<HTMLButtonElement>;
|
|
16
|
+
onClick: (event: React.MouseEvent, value: number) => void;
|
|
17
|
+
onKeyDown: (event: React.KeyboardEvent, value: number) => void;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
value: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function getPickersYearUtilityClass(slot: string): string;
|
|
22
|
+
export declare type PickersYearClassKey = keyof NonNullable<YearProps['classes']>;
|
|
23
|
+
export declare const pickersYearClasses: Record<"root" | "selected" | "disabled" | "modeDesktop" | "modeMobile" | "yearButton", string>;
|
|
24
|
+
/**
|
|
25
|
+
* @ignore - internal component.
|
|
26
|
+
*/
|
|
27
|
+
declare const PickersYear: React.ForwardRefExoticComponent<YearProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
export default PickersYear;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
|
|
3
|
-
export interface ExportedYearPickerProps<TDate> {
|
|
4
|
-
/**
|
|
5
|
-
* Callback firing on year change @DateIOType.
|
|
6
|
-
*/
|
|
7
|
-
onYearChange?: (date: TDate) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Disable specific years dynamically.
|
|
10
|
-
* Works like `shouldDisableDate` but for year selection view @DateIOType.
|
|
11
|
-
*/
|
|
12
|
-
shouldDisableYear?: (day: TDate) => boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare type YearPickerClassKey = keyof NonNullable<YearPickerProps<any>['classes']>;
|
|
15
|
-
export interface YearPickerProps<TDate> extends ExportedYearPickerProps<TDate> {
|
|
16
|
-
autoFocus?: boolean;
|
|
17
|
-
className?: string;
|
|
18
|
-
classes?: {
|
|
19
|
-
/** Styles applied to the root element. */
|
|
20
|
-
root?: string;
|
|
21
|
-
};
|
|
22
|
-
date: TDate | null;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
disableFuture?: boolean | null;
|
|
25
|
-
disablePast?: boolean | null;
|
|
26
|
-
isDateDisabled: (day: TDate) => boolean;
|
|
27
|
-
minDate: TDate;
|
|
28
|
-
maxDate: TDate;
|
|
29
|
-
onChange: PickerOnChangeFn<TDate>;
|
|
30
|
-
onFocusedDayChange?: (day: TDate) => void;
|
|
31
|
-
readOnly?: boolean;
|
|
32
|
-
}
|
|
33
|
-
declare const _default: <TDate>(props: YearPickerProps<TDate>) => JSX.Element;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* Demos:
|
|
37
|
-
*
|
|
38
|
-
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
39
|
-
*
|
|
40
|
-
* API:
|
|
41
|
-
*
|
|
42
|
-
* - [YearPicker API](https://mui.com/api/year-picker/)
|
|
43
|
-
*/
|
|
44
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
|
|
3
|
+
export interface ExportedYearPickerProps<TDate> {
|
|
4
|
+
/**
|
|
5
|
+
* Callback firing on year change @DateIOType.
|
|
6
|
+
*/
|
|
7
|
+
onYearChange?: (date: TDate) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Disable specific years dynamically.
|
|
10
|
+
* Works like `shouldDisableDate` but for year selection view @DateIOType.
|
|
11
|
+
*/
|
|
12
|
+
shouldDisableYear?: (day: TDate) => boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare type YearPickerClassKey = keyof NonNullable<YearPickerProps<any>['classes']>;
|
|
15
|
+
export interface YearPickerProps<TDate> extends ExportedYearPickerProps<TDate> {
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
classes?: {
|
|
19
|
+
/** Styles applied to the root element. */
|
|
20
|
+
root?: string;
|
|
21
|
+
};
|
|
22
|
+
date: TDate | null;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
disableFuture?: boolean | null;
|
|
25
|
+
disablePast?: boolean | null;
|
|
26
|
+
isDateDisabled: (day: TDate) => boolean;
|
|
27
|
+
minDate: TDate;
|
|
28
|
+
maxDate: TDate;
|
|
29
|
+
onChange: PickerOnChangeFn<TDate>;
|
|
30
|
+
onFocusedDayChange?: (day: TDate) => void;
|
|
31
|
+
readOnly?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: <TDate>(props: YearPickerProps<TDate>) => JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* Demos:
|
|
37
|
+
*
|
|
38
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
39
|
+
*
|
|
40
|
+
* API:
|
|
41
|
+
*
|
|
42
|
+
* - [YearPicker API](https://mui.com/api/year-picker/)
|
|
43
|
+
*/
|
|
44
|
+
export default _default;
|
package/YearPicker/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from './YearPicker';
|
|
2
|
-
export declare type YearPickerClassKey = import('./YearPicker').YearPickerClassKey;
|
|
3
|
-
export declare type YearPickerProps<TDate> = import('./YearPicker').YearPickerProps<TDate>;
|
|
4
|
-
export { default as yearPickerClasses } from './yearPickerClasses';
|
|
5
|
-
export * from './yearPickerClasses';
|
|
1
|
+
export { default } from './YearPicker';
|
|
2
|
+
export declare type YearPickerClassKey = import('./YearPicker').YearPickerClassKey;
|
|
3
|
+
export declare type YearPickerProps<TDate> = import('./YearPicker').YearPickerProps<TDate>;
|
|
4
|
+
export { default as yearPickerClasses } from './yearPickerClasses';
|
|
5
|
+
export * from './yearPickerClasses';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getYearPickerUtilityClass(slot: string): string;
|
|
2
|
-
declare const yearPickerClasses: Record<"root", string>;
|
|
3
|
-
export default yearPickerClasses;
|
|
1
|
+
export declare function getYearPickerUtilityClass(slot: string): string;
|
|
2
|
+
declare const yearPickerClasses: Record<"root", string>;
|
|
3
|
+
export default yearPickerClasses;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DateInputProps } from './PureDateInput';
|
|
3
|
-
export declare const KeyboardDateInput: React.ForwardRefExoticComponent<DateInputProps<unknown, unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export default KeyboardDateInput;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DateInputProps } from './PureDateInput';
|
|
3
|
+
export declare const KeyboardDateInput: React.ForwardRefExoticComponent<DateInputProps<unknown, unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default KeyboardDateInput;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WrapperVariant } from '../wrappers/WrapperVariantContext';
|
|
3
|
-
import { DateInputPropsLike } from '../wrappers/WrapperProps';
|
|
4
|
-
import { PickerSelectionState } from '../hooks/usePickerState';
|
|
5
|
-
import { BasePickerProps, CalendarAndClockProps } from '../typings/BasePicker';
|
|
6
|
-
import { AllAvailableViews } from '../typings/Views';
|
|
7
|
-
export interface ExportedPickerProps<View extends AllAvailableViews> extends Omit<BasePickerProps<unknown, unknown>, 'value' | 'onChange'>, Omit<CalendarAndClockProps<unknown>, 'onViewChange' | 'openTo' | 'view'> {
|
|
8
|
-
dateRangeIcon?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Callback fired on view change.
|
|
11
|
-
*/
|
|
12
|
-
onViewChange?: (view: View) => void;
|
|
13
|
-
/**
|
|
14
|
-
* First view to show.
|
|
15
|
-
*/
|
|
16
|
-
openTo: View;
|
|
17
|
-
timeIcon?: React.ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Array of views to show.
|
|
20
|
-
*/
|
|
21
|
-
views: readonly View[];
|
|
22
|
-
}
|
|
23
|
-
export interface PickerProps<View extends AllAvailableViews> extends ExportedPickerProps<View> {
|
|
24
|
-
autoFocus?: boolean;
|
|
25
|
-
date: any;
|
|
26
|
-
DateInputProps: DateInputPropsLike;
|
|
27
|
-
isMobileKeyboardViewOpen: boolean;
|
|
28
|
-
onDateChange: (date: any, currentWrapperVariant: WrapperVariant, isFinish?: PickerSelectionState) => void;
|
|
29
|
-
toggleMobileKeyboardView: () => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const MobileKeyboardInputView: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
-
declare function Picker<View extends AllAvailableViews>(props: PickerProps<View>): JSX.Element;
|
|
33
|
-
export default Picker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WrapperVariant } from '../wrappers/WrapperVariantContext';
|
|
3
|
+
import { DateInputPropsLike } from '../wrappers/WrapperProps';
|
|
4
|
+
import { PickerSelectionState } from '../hooks/usePickerState';
|
|
5
|
+
import { BasePickerProps, CalendarAndClockProps } from '../typings/BasePicker';
|
|
6
|
+
import { AllAvailableViews } from '../typings/Views';
|
|
7
|
+
export interface ExportedPickerProps<View extends AllAvailableViews> extends Omit<BasePickerProps<unknown, unknown>, 'value' | 'onChange'>, Omit<CalendarAndClockProps<unknown>, 'onViewChange' | 'openTo' | 'view'> {
|
|
8
|
+
dateRangeIcon?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Callback fired on view change.
|
|
11
|
+
*/
|
|
12
|
+
onViewChange?: (view: View) => void;
|
|
13
|
+
/**
|
|
14
|
+
* First view to show.
|
|
15
|
+
*/
|
|
16
|
+
openTo: View;
|
|
17
|
+
timeIcon?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Array of views to show.
|
|
20
|
+
*/
|
|
21
|
+
views: readonly View[];
|
|
22
|
+
}
|
|
23
|
+
export interface PickerProps<View extends AllAvailableViews> extends ExportedPickerProps<View> {
|
|
24
|
+
autoFocus?: boolean;
|
|
25
|
+
date: any;
|
|
26
|
+
DateInputProps: DateInputPropsLike;
|
|
27
|
+
isMobileKeyboardViewOpen: boolean;
|
|
28
|
+
onDateChange: (date: any, currentWrapperVariant: WrapperVariant, isFinish?: PickerSelectionState) => void;
|
|
29
|
+
toggleMobileKeyboardView: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const MobileKeyboardInputView: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
+
declare function Picker<View extends AllAvailableViews>(props: PickerProps<View>): JSX.Element;
|
|
33
|
+
export default Picker;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const PickerView: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
-
export default PickerView;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const PickerView: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export default PickerView;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface ExportedArrowSwitcherProps {
|
|
3
|
-
/**
|
|
4
|
-
* The components used for each slot.
|
|
5
|
-
* Either a string to use a HTML element or a component.
|
|
6
|
-
* @default {}
|
|
7
|
-
*/
|
|
8
|
-
components?: {
|
|
9
|
-
LeftArrowButton?: React.ElementType;
|
|
10
|
-
LeftArrowIcon?: React.ElementType;
|
|
11
|
-
RightArrowButton?: React.ElementType;
|
|
12
|
-
RightArrowIcon?: React.ElementType;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* The props used for each slot inside.
|
|
16
|
-
* @default {}
|
|
17
|
-
*/
|
|
18
|
-
componentsProps?: {
|
|
19
|
-
leftArrowButton?: Record<string, any>;
|
|
20
|
-
rightArrowButton?: Record<string, any>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Left arrow icon aria-label text.
|
|
24
|
-
*/
|
|
25
|
-
leftArrowButtonText?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Right arrow icon aria-label text.
|
|
28
|
-
*/
|
|
29
|
-
rightArrowButtonText?: string;
|
|
30
|
-
}
|
|
31
|
-
interface ArrowSwitcherProps extends ExportedArrowSwitcherProps, Omit<React.HTMLProps<HTMLDivElement>, 'ref'> {
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
isLeftDisabled: boolean;
|
|
34
|
-
isLeftHidden?: boolean;
|
|
35
|
-
isRightDisabled: boolean;
|
|
36
|
-
isRightHidden?: boolean;
|
|
37
|
-
onLeftClick: () => void;
|
|
38
|
-
onRightClick: () => void;
|
|
39
|
-
}
|
|
40
|
-
declare const PickersArrowSwitcher: React.ForwardRefExoticComponent<Omit<ArrowSwitcherProps, "as"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export default PickersArrowSwitcher;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ExportedArrowSwitcherProps {
|
|
3
|
+
/**
|
|
4
|
+
* The components used for each slot.
|
|
5
|
+
* Either a string to use a HTML element or a component.
|
|
6
|
+
* @default {}
|
|
7
|
+
*/
|
|
8
|
+
components?: {
|
|
9
|
+
LeftArrowButton?: React.ElementType;
|
|
10
|
+
LeftArrowIcon?: React.ElementType;
|
|
11
|
+
RightArrowButton?: React.ElementType;
|
|
12
|
+
RightArrowIcon?: React.ElementType;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The props used for each slot inside.
|
|
16
|
+
* @default {}
|
|
17
|
+
*/
|
|
18
|
+
componentsProps?: {
|
|
19
|
+
leftArrowButton?: Record<string, any>;
|
|
20
|
+
rightArrowButton?: Record<string, any>;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Left arrow icon aria-label text.
|
|
24
|
+
*/
|
|
25
|
+
leftArrowButtonText?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Right arrow icon aria-label text.
|
|
28
|
+
*/
|
|
29
|
+
rightArrowButtonText?: string;
|
|
30
|
+
}
|
|
31
|
+
interface ArrowSwitcherProps extends ExportedArrowSwitcherProps, Omit<React.HTMLProps<HTMLDivElement>, 'ref'> {
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
isLeftDisabled: boolean;
|
|
34
|
+
isLeftHidden?: boolean;
|
|
35
|
+
isRightDisabled: boolean;
|
|
36
|
+
isRightHidden?: boolean;
|
|
37
|
+
onLeftClick: () => void;
|
|
38
|
+
onRightClick: () => void;
|
|
39
|
+
}
|
|
40
|
+
declare const PickersArrowSwitcher: React.ForwardRefExoticComponent<Omit<ArrowSwitcherProps, "as"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
export default PickersArrowSwitcher;
|