@mui/lab 5.0.0-alpha.57 → 5.0.0-alpha.61
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 +279 -1
- package/CalendarPicker/CalendarPicker.d.ts +106 -106
- package/CalendarPicker/CalendarPicker.js +13 -7
- package/CalendarPicker/PickersCalendar.d.ts +47 -47
- package/CalendarPicker/PickersCalendar.js +1 -1
- 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/CalendarPickerSkeleton.js +1 -1
- 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 +1 -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/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/DateRangePickerDay.js +1 -1
- 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.d.ts +2 -0
- package/LoadingButton/LoadingButton.js +20 -10
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/Masonry.js +1 -1
- 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/MonthPicker.js +1 -1
- package/MonthPicker/PickersMonth.d.ts +15 -15
- package/MonthPicker/index.d.ts +3 -3
- package/PickersDay/PickersDay.d.ts +93 -93
- package/PickersDay/PickersDay.js +1 -1
- package/PickersDay/index.d.ts +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
- package/StaticDatePicker/StaticDatePicker.js +2 -2
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
- package/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
- package/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
- package/StaticTimePicker/StaticTimePicker.js +2 -2
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/TabPanel.js +1 -1
- 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/Timeline.js +1 -1
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/TimelineConnector.js +1 -1
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/TimelineContent.js +1 -1
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/TimelineDot.js +1 -1
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/TimelineItem.js +1 -1
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/TimelineSeparator.js +1 -1
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TreeItem/TreeItem.d.ts +1 -1
- package/TreeItem/TreeItem.js +2 -2
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/TreeView.js +1 -1
- 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 -0
- package/internal/pickers/wrappers/PickerStaticWrapper.js +64 -0
- 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/CalendarPicker/CalendarPicker.js +13 -7
- package/legacy/CalendarPicker/PickersCalendar.js +1 -1
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
- package/legacy/ClockPicker/ClockPicker.js +1 -1
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/legacy/LoadingButton/LoadingButton.js +20 -11
- package/legacy/Masonry/Masonry.js +1 -1
- package/legacy/MonthPicker/MonthPicker.js +1 -1
- package/legacy/PickersDay/PickersDay.js +1 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +2 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/legacy/StaticTimePicker/StaticTimePicker.js +2 -2
- package/legacy/TabPanel/TabPanel.js +1 -1
- package/legacy/Timeline/Timeline.js +1 -1
- package/legacy/TimelineConnector/TimelineConnector.js +1 -1
- package/legacy/TimelineContent/TimelineContent.js +1 -1
- package/legacy/TimelineDot/TimelineDot.js +1 -1
- package/legacy/TimelineItem/TimelineItem.js +1 -1
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/legacy/TimelineSeparator/TimelineSeparator.js +1 -1
- package/legacy/TreeItem/TreeItem.js +2 -2
- package/legacy/TreeView/TreeView.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/wrappers/PickerStaticWrapper.js +62 -0
- package/modern/CalendarPicker/CalendarPicker.js +13 -7
- package/modern/CalendarPicker/PickersCalendar.js +1 -1
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
- package/modern/ClockPicker/ClockPicker.js +1 -1
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/modern/LoadingButton/LoadingButton.js +21 -10
- package/modern/Masonry/Masonry.js +1 -1
- package/modern/MonthPicker/MonthPicker.js +1 -1
- package/modern/PickersDay/PickersDay.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +2 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/modern/StaticTimePicker/StaticTimePicker.js +2 -2
- package/modern/TabPanel/TabPanel.js +1 -1
- package/modern/Timeline/Timeline.js +1 -1
- package/modern/TimelineConnector/TimelineConnector.js +1 -1
- package/modern/TimelineContent/TimelineContent.js +1 -1
- package/modern/TimelineDot/TimelineDot.js +1 -1
- package/modern/TimelineItem/TimelineItem.js +1 -1
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/modern/TimelineSeparator/TimelineSeparator.js +1 -1
- package/modern/TreeItem/TreeItem.js +2 -2
- package/modern/TreeView/TreeView.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internal/pickers/wrappers/PickerStaticWrapper.js +64 -0
- package/node/CalendarPicker/CalendarPicker.js +13 -7
- package/node/CalendarPicker/PickersCalendar.js +1 -1
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
- package/node/ClockPicker/ClockPicker.js +1 -1
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/node/LoadingButton/LoadingButton.js +18 -7
- package/node/Masonry/Masonry.js +1 -1
- package/node/MonthPicker/MonthPicker.js +1 -1
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +2 -2
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/node/StaticTimePicker/StaticTimePicker.js +2 -2
- package/node/TabPanel/TabPanel.js +1 -1
- package/node/Timeline/Timeline.js +1 -1
- package/node/TimelineConnector/TimelineConnector.js +1 -1
- package/node/TimelineContent/TimelineContent.js +1 -1
- package/node/TimelineDot/TimelineDot.js +1 -1
- package/node/TimelineItem/TimelineItem.js +1 -1
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/node/TimelineSeparator/TimelineSeparator.js +1 -1
- package/node/TreeItem/TreeItem.js +2 -2
- package/node/TreeView/TreeView.js +1 -1
- package/node/index.js +1 -1
- package/node/internal/pickers/wrappers/{StaticWrapper.js → PickerStaticWrapper.js} +46 -9
- package/package.json +9 -5
- package/themeAugmentation/components.d.ts +5 -0
- package/themeAugmentation/overrides.d.ts +2 -0
- package/themeAugmentation/props.d.ts +1 -1
- package/internal/pickers/wrappers/StaticWrapper.d.ts +0 -10
- package/internal/pickers/wrappers/StaticWrapper.js +0 -35
- package/legacy/internal/pickers/wrappers/StaticWrapper.js +0 -34
- package/modern/internal/pickers/wrappers/StaticWrapper.js +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -150,6 +150,18 @@ var CalendarPicker = /*#__PURE__*/React.forwardRef(function CalendarPicker(inPro
|
|
|
150
150
|
|
|
151
151
|
var ownerState = props;
|
|
152
152
|
var classes = useUtilityClasses(ownerState);
|
|
153
|
+
var monthPickerProps = {
|
|
154
|
+
className: className,
|
|
155
|
+
date: date,
|
|
156
|
+
disabled: other.disabled,
|
|
157
|
+
disablePast: disablePast,
|
|
158
|
+
disableFuture: disableFuture,
|
|
159
|
+
onChange: onChange,
|
|
160
|
+
minDate: minDate,
|
|
161
|
+
maxDate: maxDate,
|
|
162
|
+
onMonthChange: onMonthChange,
|
|
163
|
+
readOnly: other.readOnly
|
|
164
|
+
};
|
|
153
165
|
return /*#__PURE__*/_jsxs(CalendarPickerRoot, {
|
|
154
166
|
ref: ref,
|
|
155
167
|
className: clsx(classes.root, className),
|
|
@@ -187,13 +199,7 @@ var CalendarPicker = /*#__PURE__*/React.forwardRef(function CalendarPicker(inPro
|
|
|
187
199
|
isDateDisabled: isDateDisabled,
|
|
188
200
|
shouldDisableYear: shouldDisableYear,
|
|
189
201
|
onFocusedDayChange: changeFocusedDay
|
|
190
|
-
})), openView === 'month' && /*#__PURE__*/_jsx(MonthPicker, _extends({}, other, {
|
|
191
|
-
date: date,
|
|
192
|
-
onChange: onChange,
|
|
193
|
-
minDate: minDate,
|
|
194
|
-
maxDate: maxDate,
|
|
195
|
-
onMonthChange: onMonthChange
|
|
196
|
-
})), openView === 'day' && /*#__PURE__*/_jsx(PickersCalendar, _extends({}, other, calendarState, {
|
|
202
|
+
})), openView === 'month' && /*#__PURE__*/_jsx(MonthPicker, _extends({}, monthPickerProps)), openView === 'day' && /*#__PURE__*/_jsx(PickersCalendar, _extends({}, other, calendarState, {
|
|
197
203
|
autoFocus: autoFocus,
|
|
198
204
|
onMonthSwitchingAnimationEnd: onMonthSwitchingAnimationEnd,
|
|
199
205
|
onFocusedDayChange: changeFocusedDay,
|
|
@@ -106,7 +106,7 @@ function PickersCalendar(props) {
|
|
|
106
106
|
var currentMonthNumber = utils.getMonth(currentMonth);
|
|
107
107
|
var selectedDates = (Array.isArray(date) ? date : [date]).filter(Boolean).map(function (selectedDateItem) {
|
|
108
108
|
return selectedDateItem && utils.startOfDay(selectedDateItem);
|
|
109
|
-
}); // need a new ref whenever the `key` of the transition changes:
|
|
109
|
+
}); // need a new ref whenever the `key` of the transition changes: http://reactcommunity.org/react-transition-group/transition/#Transition-prop-nodeRef.
|
|
110
110
|
|
|
111
111
|
var transitionKey = currentMonthNumber; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
112
|
|
|
@@ -150,6 +150,6 @@ process.env.NODE_ENV !== "production" ? CalendarPickerSkeleton.propTypes
|
|
|
150
150
|
/**
|
|
151
151
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
152
152
|
*/
|
|
153
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
153
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
154
154
|
} : void 0;
|
|
155
155
|
export default CalendarPickerSkeleton;
|
|
@@ -28,7 +28,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
28
28
|
|
|
29
29
|
var ClockPickerArrowSwitcher = styled(PickersArrowSwitcher, {
|
|
30
30
|
name: 'MuiClockPicker',
|
|
31
|
-
slot: '
|
|
31
|
+
slot: 'ArrowSwitcher',
|
|
32
32
|
overridesResolver: function overridesResolver(props, styles) {
|
|
33
33
|
return styles.arrowSwitcher;
|
|
34
34
|
}
|
|
@@ -233,7 +233,7 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDay.propTypes
|
|
|
233
233
|
/**
|
|
234
234
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
235
235
|
*/
|
|
236
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
236
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
237
237
|
} : void 0;
|
|
238
238
|
/**
|
|
239
239
|
*
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { chainPropTypes } from '@mui/utils';
|
|
7
|
-
import { capitalize } from '@mui/material/utils';
|
|
7
|
+
import { capitalize, unstable_useId as useId } from '@mui/material/utils';
|
|
8
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import Button from '@mui/material/Button';
|
|
@@ -103,12 +103,6 @@ var LoadingButtonLoadingIndicator = styled('div', {
|
|
|
103
103
|
right: -10
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
|
-
|
|
107
|
-
var LoadingIndicator = /*#__PURE__*/_jsx(CircularProgress, {
|
|
108
|
-
color: "inherit",
|
|
109
|
-
size: 16
|
|
110
|
-
});
|
|
111
|
-
|
|
112
106
|
var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
113
107
|
var props = useThemeProps({
|
|
114
108
|
props: inProps,
|
|
@@ -118,15 +112,22 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
118
112
|
var children = props.children,
|
|
119
113
|
_props$disabled = props.disabled,
|
|
120
114
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
115
|
+
idProp = props.id,
|
|
121
116
|
_props$loading = props.loading,
|
|
122
117
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
123
|
-
|
|
124
|
-
loadingIndicator = _props$loadingIndicat === void 0 ? LoadingIndicator : _props$loadingIndicat,
|
|
118
|
+
loadingIndicatorProp = props.loadingIndicator,
|
|
125
119
|
_props$loadingPositio = props.loadingPosition,
|
|
126
120
|
loadingPosition = _props$loadingPositio === void 0 ? 'center' : _props$loadingPositio,
|
|
127
121
|
_props$variant = props.variant,
|
|
128
122
|
variant = _props$variant === void 0 ? 'text' : _props$variant,
|
|
129
|
-
other = _objectWithoutProperties(props, ["children", "disabled", "loading", "loadingIndicator", "loadingPosition", "variant"]);
|
|
123
|
+
other = _objectWithoutProperties(props, ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"]);
|
|
124
|
+
|
|
125
|
+
var id = useId(idProp);
|
|
126
|
+
var loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /*#__PURE__*/_jsx(CircularProgress, {
|
|
127
|
+
"aria-labelledby": id,
|
|
128
|
+
color: "inherit",
|
|
129
|
+
size: 16
|
|
130
|
+
});
|
|
130
131
|
|
|
131
132
|
var ownerState = _extends({}, props, {
|
|
132
133
|
disabled: disabled,
|
|
@@ -139,6 +140,7 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
139
140
|
var classes = useUtilityClasses(ownerState);
|
|
140
141
|
return /*#__PURE__*/_jsx(LoadingButtonRoot, _extends({
|
|
141
142
|
disabled: disabled || loading,
|
|
143
|
+
id: id,
|
|
142
144
|
ref: ref
|
|
143
145
|
}, other, {
|
|
144
146
|
variant: variant,
|
|
@@ -183,6 +185,11 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
183
185
|
*/
|
|
184
186
|
disabled: PropTypes.bool,
|
|
185
187
|
|
|
188
|
+
/**
|
|
189
|
+
* @ignore
|
|
190
|
+
*/
|
|
191
|
+
id: PropTypes.string,
|
|
192
|
+
|
|
186
193
|
/**
|
|
187
194
|
* If `true`, the loading indicator is shown.
|
|
188
195
|
* @default false
|
|
@@ -191,6 +198,8 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
191
198
|
|
|
192
199
|
/**
|
|
193
200
|
* Element placed before the children if the button is in loading state.
|
|
201
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
202
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
194
203
|
* @default <CircularProgress color="inherit" size={16} />
|
|
195
204
|
*/
|
|
196
205
|
loadingIndicator: PropTypes.node,
|
|
@@ -214,7 +223,7 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
214
223
|
/**
|
|
215
224
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
216
225
|
*/
|
|
217
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
226
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
218
227
|
|
|
219
228
|
/**
|
|
220
229
|
* The variant to use.
|
|
@@ -362,6 +362,6 @@ process.env.NODE_ENV !== "production" ? Masonry.propTypes
|
|
|
362
362
|
/**
|
|
363
363
|
* Allows defining system overrides as well as additional CSS styles.
|
|
364
364
|
*/
|
|
365
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
365
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
366
366
|
} : void 0;
|
|
367
367
|
export default Masonry;
|
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
|
|
|
163
163
|
/**
|
|
164
164
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
165
165
|
*/
|
|
166
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
166
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
167
167
|
} : void 0;
|
|
168
168
|
/**
|
|
169
169
|
*
|
|
@@ -377,7 +377,7 @@ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
|
|
|
377
377
|
/**
|
|
378
378
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
379
379
|
*/
|
|
380
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
380
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
381
381
|
|
|
382
382
|
/**
|
|
383
383
|
* If `true`, renders as today date.
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { useDatePickerDefaultizedProps } from '../DatePicker/shared';
|
|
6
6
|
import DatePickerToolbar from '../DatePicker/DatePickerToolbar';
|
|
7
|
-
import
|
|
7
|
+
import PickerStaticWrapper from '../internal/pickers/wrappers/PickerStaticWrapper';
|
|
8
8
|
import Picker from '../internal/pickers/Picker/Picker';
|
|
9
9
|
import { useDateValidation } from '../internal/pickers/hooks/useValidation';
|
|
10
10
|
import { parsePickerInputValue } from '../internal/pickers/date-utils';
|
|
@@ -52,7 +52,7 @@ var StaticDatePicker = /*#__PURE__*/React.forwardRef(function StaticDatePicker(i
|
|
|
52
52
|
validationError: validationError
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
return /*#__PURE__*/_jsx(
|
|
55
|
+
return /*#__PURE__*/_jsx(PickerStaticWrapper, {
|
|
56
56
|
displayStaticWrapperAs: displayStaticWrapperAs,
|
|
57
57
|
children: /*#__PURE__*/_jsx(Picker, _extends({}, pickerProps, {
|
|
58
58
|
toolbarTitle: props.label || props.toolbarTitle,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { useThemeProps } from '@mui/material/styles';
|
|
6
|
-
import
|
|
6
|
+
import PickerStaticWrapper from '../internal/pickers/wrappers/PickerStaticWrapper';
|
|
7
7
|
import { useDefaultDates, useUtils } from '../internal/pickers/hooks/useUtils';
|
|
8
8
|
import { useDateRangeValidation } from '../internal/pickers/hooks/useValidation';
|
|
9
9
|
import { usePickerState } from '../internal/pickers/hooks/usePickerState';
|
|
@@ -88,7 +88,7 @@ var StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function StaticDateRan
|
|
|
88
88
|
ref: ref
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
return /*#__PURE__*/_jsx(
|
|
91
|
+
return /*#__PURE__*/_jsx(PickerStaticWrapper, {
|
|
92
92
|
displayStaticWrapperAs: displayStaticWrapperAs,
|
|
93
93
|
children: /*#__PURE__*/_jsx(DateRangePickerView, _extends({
|
|
94
94
|
open: wrapperProps.open,
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { useDateTimePickerDefaultizedProps } from '../DateTimePicker/shared';
|
|
6
6
|
import DateTimePickerToolbar from '../DateTimePicker/DateTimePickerToolbar';
|
|
7
|
-
import
|
|
7
|
+
import PickerStaticWrapper from '../internal/pickers/wrappers/PickerStaticWrapper';
|
|
8
8
|
import Picker from '../internal/pickers/Picker/Picker';
|
|
9
9
|
import { useDateTimeValidation } from '../internal/pickers/hooks/useValidation';
|
|
10
10
|
import { parsePickerInputValue } from '../internal/pickers/date-utils';
|
|
@@ -52,7 +52,7 @@ var StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function StaticDateTime
|
|
|
52
52
|
validationError: validationError
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
return /*#__PURE__*/_jsx(
|
|
55
|
+
return /*#__PURE__*/_jsx(PickerStaticWrapper, {
|
|
56
56
|
displayStaticWrapperAs: displayStaticWrapperAs,
|
|
57
57
|
children: /*#__PURE__*/_jsx(Picker, _extends({}, pickerProps, {
|
|
58
58
|
toolbarTitle: props.label || props.toolbarTitle,
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { useTimePickerDefaultizedProps } from '../TimePicker/shared';
|
|
6
6
|
import TimePickerToolbar from '../TimePicker/TimePickerToolbar';
|
|
7
|
-
import
|
|
7
|
+
import PickerStaticWrapper from '../internal/pickers/wrappers/PickerStaticWrapper';
|
|
8
8
|
import Picker from '../internal/pickers/Picker/Picker';
|
|
9
9
|
import { useTimeValidation } from '../internal/pickers/hooks/useValidation';
|
|
10
10
|
import { parsePickerInputValue } from '../internal/pickers/date-utils';
|
|
@@ -50,7 +50,7 @@ var StaticTimePicker = /*#__PURE__*/React.forwardRef(function StaticTimePicker(i
|
|
|
50
50
|
validationError: validationError
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
return /*#__PURE__*/_jsx(
|
|
53
|
+
return /*#__PURE__*/_jsx(PickerStaticWrapper, {
|
|
54
54
|
displayStaticWrapperAs: displayStaticWrapperAs,
|
|
55
55
|
children: /*#__PURE__*/_jsx(Picker, _extends({}, pickerProps, {
|
|
56
56
|
toolbarTitle: props.label || props.toolbarTitle,
|
|
@@ -89,7 +89,7 @@ process.env.NODE_ENV !== "production" ? TabPanel.propTypes
|
|
|
89
89
|
/**
|
|
90
90
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
91
91
|
*/
|
|
92
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
92
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
@@ -103,7 +103,7 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
|
103
103
|
/**
|
|
104
104
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
105
105
|
*/
|
|
106
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
106
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
107
107
|
} : void 0;
|
|
108
108
|
/**
|
|
109
109
|
*
|
|
@@ -73,6 +73,6 @@ process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes
|
|
|
73
73
|
/**
|
|
74
74
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
75
75
|
*/
|
|
76
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
76
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
77
77
|
} : void 0;
|
|
78
78
|
export default TimelineConnector;
|
|
@@ -87,6 +87,6 @@ process.env.NODE_ENV !== "production" ? TimelineContent.propTypes
|
|
|
87
87
|
/**
|
|
88
88
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
89
89
|
*/
|
|
90
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
90
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
91
91
|
} : void 0;
|
|
92
92
|
export default TimelineContent;
|
|
@@ -112,7 +112,7 @@ process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
|
|
|
112
112
|
/**
|
|
113
113
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
114
114
|
*/
|
|
115
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
115
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* The dot can appear filled or outlined.
|
|
@@ -125,6 +125,6 @@ process.env.NODE_ENV !== "production" ? TimelineItem.propTypes
|
|
|
125
125
|
/**
|
|
126
126
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
127
127
|
*/
|
|
128
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
128
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
129
129
|
} : void 0;
|
|
130
130
|
export default TimelineItem;
|
|
@@ -88,7 +88,7 @@ process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes
|
|
|
88
88
|
/**
|
|
89
89
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
90
90
|
*/
|
|
91
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
91
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
92
92
|
} : void 0;
|
|
93
93
|
TimelineOppositeContent.muiName = 'TimelineOppositeContent';
|
|
94
94
|
export default TimelineOppositeContent;
|
|
@@ -71,6 +71,6 @@ process.env.NODE_ENV !== "production" ? TimelineSeparator.propTypes
|
|
|
71
71
|
/**
|
|
72
72
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
73
73
|
*/
|
|
74
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
74
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
75
75
|
} : void 0;
|
|
76
76
|
export default TimelineSeparator;
|
|
@@ -407,7 +407,7 @@ process.env.NODE_ENV !== "production" ? TreeItem.propTypes
|
|
|
407
407
|
/**
|
|
408
408
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
409
409
|
*/
|
|
410
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
410
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* The component used for the transition.
|
|
@@ -418,7 +418,7 @@ process.env.NODE_ENV !== "production" ? TreeItem.propTypes
|
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
420
|
* Props applied to the transition element.
|
|
421
|
-
* By default, the element is based on this [`Transition`](
|
|
421
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
422
422
|
*/
|
|
423
423
|
TransitionProps: PropTypes.object
|
|
424
424
|
} : void 0;
|
|
@@ -1036,6 +1036,6 @@ process.env.NODE_ENV !== "production" ? TreeView.propTypes
|
|
|
1036
1036
|
/**
|
|
1037
1037
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1038
1038
|
*/
|
|
1039
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
1039
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
1040
1040
|
} : void 0;
|
|
1041
1041
|
export default TreeView;
|
package/legacy/index.js
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { styled, useThemeProps } from '@mui/material/styles';
|
|
5
|
+
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
6
|
+
import { DIALOG_WIDTH } from '../constants/dimensions';
|
|
7
|
+
import { WrapperVariantContext, IsStaticVariantContext } from './WrapperVariantContext';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export function getStaticWrapperUtilityClass(slot) {
|
|
10
|
+
return generateUtilityClass('MuiPickerStaticWrapper', slot);
|
|
11
|
+
}
|
|
12
|
+
export var pickerStaticWrapperClasses = generateUtilityClasses('MuiPickerStaticWrapper', ['root']);
|
|
13
|
+
|
|
14
|
+
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
15
|
+
var classes = ownerState.classes;
|
|
16
|
+
var slots = {
|
|
17
|
+
root: ['root']
|
|
18
|
+
};
|
|
19
|
+
return composeClasses(slots, getStaticWrapperUtilityClass, classes);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var PickerStaticWrapperRoot = styled('div', {
|
|
23
|
+
name: 'MuiPickerStaticWrapper',
|
|
24
|
+
slot: 'Root',
|
|
25
|
+
overridesResolver: function overridesResolver(props, styles) {
|
|
26
|
+
return styles.root;
|
|
27
|
+
},
|
|
28
|
+
skipSx: true
|
|
29
|
+
})(function (_ref) {
|
|
30
|
+
var theme = _ref.theme;
|
|
31
|
+
return {
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
minWidth: DIALOG_WIDTH,
|
|
34
|
+
display: 'flex',
|
|
35
|
+
flexDirection: 'column',
|
|
36
|
+
backgroundColor: theme.palette.background.paper
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
function PickerStaticWrapper(inProps) {
|
|
41
|
+
var props = useThemeProps({
|
|
42
|
+
props: inProps,
|
|
43
|
+
name: 'MuiPickerStaticWrapper'
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var displayStaticWrapperAs = props.displayStaticWrapperAs,
|
|
47
|
+
other = _objectWithoutProperties(props, ["displayStaticWrapperAs"]);
|
|
48
|
+
|
|
49
|
+
var classes = useUtilityClasses(props);
|
|
50
|
+
var isStatic = true;
|
|
51
|
+
return /*#__PURE__*/_jsx(IsStaticVariantContext.Provider, {
|
|
52
|
+
value: isStatic,
|
|
53
|
+
children: /*#__PURE__*/_jsx(WrapperVariantContext.Provider, {
|
|
54
|
+
value: displayStaticWrapperAs,
|
|
55
|
+
children: /*#__PURE__*/_jsx(PickerStaticWrapperRoot, _extends({
|
|
56
|
+
className: classes.root
|
|
57
|
+
}, other))
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export default PickerStaticWrapper;
|
|
@@ -141,6 +141,18 @@ const CalendarPicker = /*#__PURE__*/React.forwardRef(function CalendarPicker(inP
|
|
|
141
141
|
|
|
142
142
|
const ownerState = props;
|
|
143
143
|
const classes = useUtilityClasses(ownerState);
|
|
144
|
+
const monthPickerProps = {
|
|
145
|
+
className,
|
|
146
|
+
date,
|
|
147
|
+
disabled: other.disabled,
|
|
148
|
+
disablePast,
|
|
149
|
+
disableFuture,
|
|
150
|
+
onChange,
|
|
151
|
+
minDate,
|
|
152
|
+
maxDate,
|
|
153
|
+
onMonthChange,
|
|
154
|
+
readOnly: other.readOnly
|
|
155
|
+
};
|
|
144
156
|
return /*#__PURE__*/_jsxs(CalendarPickerRoot, {
|
|
145
157
|
ref: ref,
|
|
146
158
|
className: clsx(classes.root, className),
|
|
@@ -176,13 +188,7 @@ const CalendarPicker = /*#__PURE__*/React.forwardRef(function CalendarPicker(inP
|
|
|
176
188
|
isDateDisabled: isDateDisabled,
|
|
177
189
|
shouldDisableYear: shouldDisableYear,
|
|
178
190
|
onFocusedDayChange: changeFocusedDay
|
|
179
|
-
})), openView === 'month' && /*#__PURE__*/_jsx(MonthPicker, _extends({}, other, {
|
|
180
|
-
date: date,
|
|
181
|
-
onChange: onChange,
|
|
182
|
-
minDate: minDate,
|
|
183
|
-
maxDate: maxDate,
|
|
184
|
-
onMonthChange: onMonthChange
|
|
185
|
-
})), openView === 'day' && /*#__PURE__*/_jsx(PickersCalendar, _extends({}, other, calendarState, {
|
|
191
|
+
})), openView === 'month' && /*#__PURE__*/_jsx(MonthPicker, _extends({}, monthPickerProps)), openView === 'day' && /*#__PURE__*/_jsx(PickersCalendar, _extends({}, other, calendarState, {
|
|
186
192
|
autoFocus: autoFocus,
|
|
187
193
|
onMonthSwitchingAnimationEnd: onMonthSwitchingAnimationEnd,
|
|
188
194
|
onFocusedDayChange: changeFocusedDay,
|
|
@@ -100,7 +100,7 @@ function PickersCalendar(props) {
|
|
|
100
100
|
onChange(finalDate, isFinish);
|
|
101
101
|
}, [date, now, onChange, readOnly, utils]);
|
|
102
102
|
const currentMonthNumber = utils.getMonth(currentMonth);
|
|
103
|
-
const selectedDates = (Array.isArray(date) ? date : [date]).filter(Boolean).map(selectedDateItem => selectedDateItem && utils.startOfDay(selectedDateItem)); // need a new ref whenever the `key` of the transition changes:
|
|
103
|
+
const selectedDates = (Array.isArray(date) ? date : [date]).filter(Boolean).map(selectedDateItem => selectedDateItem && utils.startOfDay(selectedDateItem)); // need a new ref whenever the `key` of the transition changes: http://reactcommunity.org/react-transition-group/transition/#Transition-prop-nodeRef.
|
|
104
104
|
|
|
105
105
|
const transitionKey = currentMonthNumber; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
106
106
|
|
|
@@ -144,6 +144,6 @@ process.env.NODE_ENV !== "production" ? CalendarPickerSkeleton.propTypes
|
|
|
144
144
|
/**
|
|
145
145
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
146
146
|
*/
|
|
147
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
147
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
148
148
|
} : void 0;
|
|
149
149
|
export default CalendarPickerSkeleton;
|
|
@@ -30,7 +30,7 @@ const useUtilityClasses = ownerState => {
|
|
|
30
30
|
|
|
31
31
|
const ClockPickerArrowSwitcher = styled(PickersArrowSwitcher, {
|
|
32
32
|
name: 'MuiClockPicker',
|
|
33
|
-
slot: '
|
|
33
|
+
slot: 'ArrowSwitcher',
|
|
34
34
|
overridesResolver: (props, styles) => styles.arrowSwitcher
|
|
35
35
|
})({
|
|
36
36
|
position: 'absolute',
|
|
@@ -228,7 +228,7 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDay.propTypes
|
|
|
228
228
|
/**
|
|
229
229
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
230
230
|
*/
|
|
231
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
231
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
232
232
|
} : void 0;
|
|
233
233
|
/**
|
|
234
234
|
*
|