@mui/lab 5.0.0-alpha.53 → 5.0.0-alpha.57
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 +299 -9
- package/CalendarPicker/CalendarPicker.d.ts +106 -96
- package/CalendarPicker/CalendarPicker.js +13 -1
- package/CalendarPicker/PickersCalendar.d.ts +47 -45
- package/CalendarPicker/PickersCalendar.js +9 -3
- package/CalendarPicker/PickersCalendarHeader.d.ts +43 -42
- package/CalendarPicker/PickersCalendarHeader.js +5 -4
- package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
- package/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
- package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
- package/CalendarPicker/PickersSlideTransition.js +1 -1
- 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 +2 -2
- package/CalendarPickerSkeleton/index.d.ts +3 -3
- package/ClockPicker/Clock.d.ts +28 -28
- package/ClockPicker/ClockNumber.d.ts +19 -19
- package/ClockPicker/ClockNumber.js +1 -1
- 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/DatePicker.js +2 -0
- package/DatePicker/DatePickerToolbar.d.ts +23 -23
- package/DatePicker/DatePickerToolbar.js +1 -1
- 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 +2 -0
- package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
- package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
- package/DateRangePicker/DateRangePickerToolbar.js +1 -1
- 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 +2 -2
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +27 -27
- package/DateTimePicker/DateTimePicker.js +2 -0
- package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
- package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
- package/DateTimePicker/DateTimePickerToolbar.js +1 -1
- 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 +2 -0
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LICENSE +21 -21
- package/LoadingButton/LoadingButton.js +20 -7
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LoadingButton/loadingButtonClasses.js +1 -1
- package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/Masonry.js +83 -98
- package/Masonry/masonryClasses.d.ts +8 -8
- package/Masonry/masonryClasses.js +1 -1
- package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
- package/MobileDatePicker/MobileDatePicker.js +2 -0
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
- package/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
- package/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
- 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 -49
- package/MonthPicker/MonthPicker.js +23 -6
- package/MonthPicker/PickersMonth.d.ts +15 -15
- package/MonthPicker/PickersMonth.js +19 -14
- package/MonthPicker/index.d.ts +3 -3
- package/PickersDay/PickersDay.d.ts +93 -93
- package/PickersDay/PickersDay.js +2 -2
- package/PickersDay/index.d.ts +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
- package/StaticDatePicker/StaticDatePicker.js +2 -0
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
- package/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
- package/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/TabPanel.js +2 -2
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TabPanel/tabPanelClasses.js +1 -1
- package/TimePicker/TimePicker.d.ts +27 -27
- package/TimePicker/TimePickerToolbar.d.ts +23 -23
- package/TimePicker/TimePickerToolbar.js +1 -1
- 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 +2 -2
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/Timeline/timelineClasses.js +1 -1
- package/TimelineConnector/TimelineConnector.js +2 -2
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineConnector/timelineConnectorClasses.js +1 -1
- package/TimelineContent/TimelineContent.js +2 -2
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineContent/timelineContentClasses.js +1 -1
- package/TimelineDot/TimelineDot.js +2 -2
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineDot/timelineDotClasses.js +1 -1
- package/TimelineItem/TimelineItem.js +2 -2
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineItem/timelineItemClasses.js +1 -1
- package/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
- package/TimelineSeparator/TimelineSeparator.js +2 -2
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TimelineSeparator/timelineSeparatorClasses.js +1 -1
- package/TreeItem/TreeItem.js +2 -2
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeItem/treeItemClasses.js +1 -1
- package/TreeView/TreeView.js +2 -2
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/TreeView/treeViewClasses.js +1 -1
- package/YearPicker/PickersYear.d.ts +28 -28
- package/YearPicker/PickersYear.js +2 -2
- package/YearPicker/YearPicker.d.ts +44 -42
- package/YearPicker/YearPicker.js +18 -2
- package/YearPicker/index.d.ts +5 -5
- package/YearPicker/yearPickerClasses.d.ts +3 -3
- package/YearPicker/yearPickerClasses.js +1 -1
- package/index.d.ts +3 -0
- package/index.js +4 -2
- 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/PickersToolbar.js +1 -1
- package/internal/pickers/PickersToolbarButton.d.ts +13 -13
- package/internal/pickers/PickersToolbarText.d.ts +8 -8
- package/internal/pickers/PickersToolbarText.js +1 -1
- 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/test-utils.js +17 -7
- 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/ResponsiveWrapper.d.ts +23 -23
- package/internal/pickers/wrappers/StaticWrapper.d.ts +10 -10
- 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 -1
- package/legacy/CalendarPicker/PickersCalendar.js +10 -3
- package/legacy/CalendarPicker/PickersCalendarHeader.js +5 -4
- package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
- package/legacy/CalendarPicker/PickersSlideTransition.js +1 -1
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
- package/legacy/ClockPicker/ClockNumber.js +1 -1
- package/legacy/ClockPicker/ClockPicker.js +1 -1
- package/legacy/DatePicker/DatePicker.js +2 -0
- package/legacy/DatePicker/DatePickerToolbar.js +1 -1
- package/legacy/DateRangePicker/DateRangePicker.js +2 -0
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +1 -1
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/legacy/DateTimePicker/DateTimePicker.js +2 -0
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +2 -0
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/legacy/LoadingButton/LoadingButton.js +20 -6
- package/legacy/LoadingButton/loadingButtonClasses.js +1 -1
- package/legacy/Masonry/Masonry.js +83 -96
- package/legacy/Masonry/masonryClasses.js +1 -1
- package/legacy/MobileDatePicker/MobileDatePicker.js +2 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
- package/legacy/MonthPicker/MonthPicker.js +22 -5
- package/legacy/MonthPicker/PickersMonth.js +20 -15
- package/legacy/PickersDay/PickersDay.js +2 -2
- package/legacy/StaticDatePicker/StaticDatePicker.js +2 -0
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
- package/legacy/TabPanel/TabPanel.js +2 -2
- package/legacy/TabPanel/tabPanelClasses.js +1 -1
- package/legacy/TimePicker/TimePickerToolbar.js +1 -1
- package/legacy/Timeline/Timeline.js +2 -2
- package/legacy/Timeline/timelineClasses.js +1 -1
- package/legacy/TimelineConnector/TimelineConnector.js +2 -2
- package/legacy/TimelineConnector/timelineConnectorClasses.js +1 -1
- package/legacy/TimelineContent/TimelineContent.js +2 -2
- package/legacy/TimelineContent/timelineContentClasses.js +1 -1
- package/legacy/TimelineDot/TimelineDot.js +2 -2
- package/legacy/TimelineDot/timelineDotClasses.js +1 -1
- package/legacy/TimelineItem/TimelineItem.js +2 -2
- package/legacy/TimelineItem/timelineItemClasses.js +1 -1
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
- package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
- package/legacy/TimelineSeparator/TimelineSeparator.js +2 -2
- package/legacy/TimelineSeparator/timelineSeparatorClasses.js +1 -1
- package/legacy/TreeItem/TreeItem.js +2 -2
- package/legacy/TreeItem/treeItemClasses.js +1 -1
- package/legacy/TreeView/TreeView.js +2 -2
- package/legacy/TreeView/treeViewClasses.js +1 -1
- package/legacy/YearPicker/PickersYear.js +2 -2
- package/legacy/YearPicker/YearPicker.js +18 -2
- package/legacy/YearPicker/yearPickerClasses.js +1 -1
- package/legacy/index.js +4 -2
- package/legacy/internal/pickers/PickersToolbar.js +1 -1
- package/legacy/internal/pickers/PickersToolbarText.js +1 -1
- package/legacy/internal/pickers/test-utils.js +13 -8
- package/legacy/useAutocomplete/index.js +1 -1
- package/modern/CalendarPicker/CalendarPicker.js +13 -1
- package/modern/CalendarPicker/PickersCalendar.js +9 -3
- package/modern/CalendarPicker/PickersCalendarHeader.js +5 -4
- package/modern/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
- package/modern/CalendarPicker/PickersSlideTransition.js +1 -1
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
- package/modern/ClockPicker/ClockNumber.js +1 -1
- package/modern/ClockPicker/ClockPicker.js +1 -1
- package/modern/DatePicker/DatePicker.js +2 -0
- package/modern/DatePicker/DatePickerToolbar.js +1 -1
- package/modern/DateRangePicker/DateRangePicker.js +2 -0
- package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
- package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/modern/DateTimePicker/DateTimePicker.js +2 -0
- package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -0
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/modern/LoadingButton/LoadingButton.js +20 -7
- package/modern/LoadingButton/loadingButtonClasses.js +1 -1
- package/modern/Masonry/Masonry.js +79 -98
- package/modern/Masonry/masonryClasses.js +1 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +2 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
- package/modern/MonthPicker/MonthPicker.js +23 -6
- package/modern/MonthPicker/PickersMonth.js +19 -14
- package/modern/PickersDay/PickersDay.js +2 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +2 -0
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
- package/modern/TabPanel/TabPanel.js +2 -2
- package/modern/TabPanel/tabPanelClasses.js +1 -1
- package/modern/TimePicker/TimePickerToolbar.js +1 -1
- package/modern/Timeline/Timeline.js +2 -2
- package/modern/Timeline/timelineClasses.js +1 -1
- package/modern/TimelineConnector/TimelineConnector.js +2 -2
- package/modern/TimelineConnector/timelineConnectorClasses.js +1 -1
- package/modern/TimelineContent/TimelineContent.js +2 -2
- package/modern/TimelineContent/timelineContentClasses.js +1 -1
- package/modern/TimelineDot/TimelineDot.js +2 -2
- package/modern/TimelineDot/timelineDotClasses.js +1 -1
- package/modern/TimelineItem/TimelineItem.js +2 -2
- package/modern/TimelineItem/timelineItemClasses.js +1 -1
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
- package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
- package/modern/TimelineSeparator/TimelineSeparator.js +2 -2
- package/modern/TimelineSeparator/timelineSeparatorClasses.js +1 -1
- package/modern/TreeItem/TreeItem.js +2 -2
- package/modern/TreeItem/treeItemClasses.js +1 -1
- package/modern/TreeView/TreeView.js +2 -2
- package/modern/TreeView/treeViewClasses.js +1 -1
- package/modern/YearPicker/PickersYear.js +2 -2
- package/modern/YearPicker/YearPicker.js +18 -2
- package/modern/YearPicker/yearPickerClasses.js +1 -1
- package/modern/index.js +4 -2
- package/modern/internal/pickers/PickersToolbar.js +1 -1
- package/modern/internal/pickers/PickersToolbarText.js +1 -1
- package/modern/internal/pickers/test-utils.js +17 -7
- package/modern/useAutocomplete/index.js +1 -1
- package/node/CalendarPicker/CalendarPicker.js +16 -4
- package/node/CalendarPicker/PickersCalendar.js +9 -3
- package/node/CalendarPicker/PickersCalendarHeader.js +5 -4
- package/node/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
- package/node/CalendarPicker/PickersSlideTransition.js +2 -2
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +5 -5
- package/node/ClockPicker/ClockNumber.js +2 -2
- package/node/ClockPicker/ClockPicker.js +4 -4
- package/node/DatePicker/DatePicker.js +2 -0
- package/node/DatePicker/DatePickerToolbar.js +2 -2
- package/node/DateRangePicker/DateRangePicker.js +2 -0
- package/node/DateRangePicker/DateRangePickerToolbar.js +2 -2
- package/node/DateRangePickerDay/DateRangePickerDay.js +5 -5
- package/node/DateTimePicker/DateTimePicker.js +2 -0
- package/node/DateTimePicker/DateTimePickerToolbar.js +2 -2
- package/node/DesktopDatePicker/DesktopDatePicker.js +2 -0
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/node/LoadingButton/LoadingButton.js +21 -8
- package/node/LoadingButton/loadingButtonClasses.js +3 -3
- package/node/Masonry/Masonry.js +88 -100
- package/node/Masonry/masonryClasses.js +3 -3
- package/node/MobileDatePicker/MobileDatePicker.js +2 -0
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
- package/node/MonthPicker/MonthPicker.js +26 -9
- package/node/MonthPicker/PickersMonth.js +20 -15
- package/node/PickersDay/PickersDay.js +5 -5
- package/node/StaticDatePicker/StaticDatePicker.js +2 -0
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
- package/node/TabPanel/TabPanel.js +3 -3
- package/node/TabPanel/tabPanelClasses.js +3 -3
- package/node/TimePicker/TimePickerToolbar.js +4 -4
- package/node/Timeline/Timeline.js +3 -3
- package/node/Timeline/timelineClasses.js +3 -3
- package/node/TimelineConnector/TimelineConnector.js +3 -3
- package/node/TimelineConnector/timelineConnectorClasses.js +3 -3
- package/node/TimelineContent/TimelineContent.js +3 -3
- package/node/TimelineContent/timelineContentClasses.js +3 -3
- package/node/TimelineDot/TimelineDot.js +3 -3
- package/node/TimelineDot/timelineDotClasses.js +3 -3
- package/node/TimelineItem/TimelineItem.js +3 -3
- package/node/TimelineItem/timelineItemClasses.js +3 -3
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +3 -3
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -3
- package/node/TimelineSeparator/TimelineSeparator.js +3 -3
- package/node/TimelineSeparator/timelineSeparatorClasses.js +3 -3
- package/node/TreeItem/TreeItem.js +3 -3
- package/node/TreeItem/treeItemClasses.js +3 -3
- package/node/TreeView/TreeView.js +3 -3
- package/node/TreeView/treeViewClasses.js +3 -3
- package/node/YearPicker/PickersYear.js +5 -5
- package/node/YearPicker/YearPicker.js +19 -3
- package/node/YearPicker/yearPickerClasses.js +3 -3
- package/node/index.js +23 -2
- package/node/internal/pickers/PickersToolbar.js +2 -2
- package/node/internal/pickers/PickersToolbarText.js +2 -2
- package/node/internal/pickers/test-utils.js +17 -7
- package/node/useAutocomplete/index.js +3 -3
- package/package.json +7 -6
- package/themeAugmentation/components.d.ts +10 -0
- package/useAutocomplete/index.d.ts +1 -1
- package/useAutocomplete/index.js +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"];
|
|
4
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
4
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
5
5
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
6
6
|
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
7
7
|
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
@@ -11,6 +11,9 @@ import * as React from 'react';
|
|
|
11
11
|
import { getMasonryUtilityClass } from './masonryClasses';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export const parseToNumber = val => {
|
|
15
|
+
return Number(val.replace('px', ''));
|
|
16
|
+
};
|
|
14
17
|
|
|
15
18
|
const useUtilityClasses = ownerState => {
|
|
16
19
|
const {
|
|
@@ -20,44 +23,6 @@ const useUtilityClasses = ownerState => {
|
|
|
20
23
|
root: ['root']
|
|
21
24
|
};
|
|
22
25
|
return composeClasses(slots, getMasonryUtilityClass, classes);
|
|
23
|
-
}; // compute base for responsive values; e.g.,
|
|
24
|
-
// [1,2,3] => {xs: true, sm: true, md: true}
|
|
25
|
-
// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const computeBreakpointsBase = (breakpoints, prop) => {
|
|
29
|
-
const base = {};
|
|
30
|
-
|
|
31
|
-
if (Array.isArray(prop)) {
|
|
32
|
-
Object.keys(breakpoints.values).forEach((breakpoint, i, arr) => {
|
|
33
|
-
if (i < arr.length) {
|
|
34
|
-
base[breakpoint] = true;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
Object.keys(breakpoints.values).forEach(breakpoint => {
|
|
39
|
-
if (prop[breakpoint] != null) {
|
|
40
|
-
base[breakpoint] = true;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return base;
|
|
46
|
-
}; // if prop is an array, convert to object; e.g.,
|
|
47
|
-
// (base: {xs: true, sm: true, md: true}, prop: [1,2,3]) => {xs: 1, sm: 2, md: 3}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const validatePropValues = (base, prop) => {
|
|
51
|
-
const values = {};
|
|
52
|
-
|
|
53
|
-
if (Array.isArray(prop)) {
|
|
54
|
-
Object.keys(base).forEach((breakpoint, i) => {
|
|
55
|
-
values[breakpoint] = prop[i];
|
|
56
|
-
});
|
|
57
|
-
return values;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return prop;
|
|
61
26
|
};
|
|
62
27
|
|
|
63
28
|
export const getStyle = ({
|
|
@@ -95,10 +60,9 @@ export const getStyle = ({
|
|
|
95
60
|
return _extends({}, styles, stylesSSR);
|
|
96
61
|
}
|
|
97
62
|
|
|
98
|
-
const spacingBreakpointsBase = computeBreakpointsBase(theme.breakpoints, ownerState.spacing);
|
|
99
63
|
const spacingValues = resolveBreakpointValues({
|
|
100
|
-
values:
|
|
101
|
-
|
|
64
|
+
values: ownerState.spacing,
|
|
65
|
+
breakpoints: theme.breakpoints.values
|
|
102
66
|
});
|
|
103
67
|
const transformer = createUnarySpacing(theme);
|
|
104
68
|
|
|
@@ -118,10 +82,9 @@ export const getStyle = ({
|
|
|
118
82
|
styles = deepmerge(styles, handleBreakpoints({
|
|
119
83
|
theme
|
|
120
84
|
}, spacingValues, spacingStyleFromPropValue));
|
|
121
|
-
const columnBreakpointsBase = computeBreakpointsBase(theme.breakpoints, ownerState.columns);
|
|
122
85
|
const columnValues = resolveBreakpointValues({
|
|
123
|
-
values:
|
|
124
|
-
|
|
86
|
+
values: ownerState.columns,
|
|
87
|
+
breakpoints: theme.breakpoints.values
|
|
125
88
|
});
|
|
126
89
|
|
|
127
90
|
const columnStyleFromPropValue = propValue => {
|
|
@@ -203,72 +166,92 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
203
166
|
});
|
|
204
167
|
|
|
205
168
|
const classes = useUtilityClasses(ownerState);
|
|
206
|
-
React.useEffect(() => {
|
|
207
|
-
const handleResize = () => {
|
|
208
|
-
const parentWidth = masonryRef.current.clientWidth;
|
|
209
|
-
const childWidth = masonryRef.current.firstChild.clientWidth;
|
|
210
|
-
const firstChildComputedStyle = window.getComputedStyle(masonryRef.current.firstChild);
|
|
211
|
-
const firstChildMarginLeft = Number(firstChildComputedStyle.marginLeft.replace('px', ''));
|
|
212
|
-
const firstChildMarginRight = Number(firstChildComputedStyle.marginRight.replace('px', ''));
|
|
213
|
-
|
|
214
|
-
if (parentWidth === 0 || childWidth === 0) {
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
169
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
170
|
+
const handleResize = elements => {
|
|
171
|
+
if (!elements) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
225
174
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
175
|
+
let masonry;
|
|
176
|
+
let masonryFirstChild;
|
|
177
|
+
let parentWidth;
|
|
178
|
+
let childWidth;
|
|
179
|
+
|
|
180
|
+
if (elements[0].target.className.includes(classes.root)) {
|
|
181
|
+
masonry = elements[0].target;
|
|
182
|
+
parentWidth = elements[0].contentRect.width;
|
|
183
|
+
masonryFirstChild = elements[1]?.target || masonry.firstChild;
|
|
184
|
+
childWidth = masonryFirstChild?.contentRect?.width || masonryFirstChild?.clientWidth || 0;
|
|
185
|
+
} else {
|
|
186
|
+
masonryFirstChild = elements[0].target;
|
|
187
|
+
childWidth = elements[0].contentRect.width;
|
|
188
|
+
masonry = elements[1]?.target || masonryFirstChild.parentElement;
|
|
189
|
+
parentWidth = masonry.contentRect?.width || masonry.clientWidth;
|
|
190
|
+
}
|
|
229
191
|
|
|
230
|
-
|
|
192
|
+
if (parentWidth === 0 || childWidth === 0 || !masonry || !masonryFirstChild) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
231
195
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
196
|
+
const firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
197
|
+
const firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
198
|
+
const firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
199
|
+
const currentNumberOfColumns = Math.round(parentWidth / (childWidth + firstChildMarginLeft + firstChildMarginRight));
|
|
200
|
+
const columnHeights = new Array(currentNumberOfColumns).fill(0);
|
|
201
|
+
let skip = false;
|
|
202
|
+
masonry.childNodes.forEach(child => {
|
|
203
|
+
if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
236
206
|
|
|
207
|
+
const childComputedStyle = window.getComputedStyle(child);
|
|
208
|
+
const childMarginTop = parseToNumber(childComputedStyle.marginTop);
|
|
209
|
+
const childMarginBottom = parseToNumber(childComputedStyle.marginBottom); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
|
|
237
210
|
|
|
238
|
-
|
|
239
|
-
|
|
211
|
+
const childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
|
|
212
|
+
|
|
213
|
+
if (childHeight === 0) {
|
|
214
|
+
skip = true;
|
|
215
|
+
return;
|
|
216
|
+
} // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
|
|
240
217
|
|
|
241
|
-
if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
|
|
242
|
-
skip = true;
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
218
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
219
|
+
for (let i = 0; i < child.childNodes.length; i += 1) {
|
|
220
|
+
const nestedChild = child.childNodes[i];
|
|
221
|
+
|
|
222
|
+
if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
|
|
223
|
+
skip = true;
|
|
224
|
+
break;
|
|
253
225
|
}
|
|
254
|
-
}
|
|
226
|
+
}
|
|
255
227
|
|
|
256
228
|
if (!skip) {
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
|
|
229
|
+
// find the current shortest column (where the current item will be placed)
|
|
230
|
+
const currentMinColumnIndex = columnHeights.indexOf(Math.min(...columnHeights));
|
|
231
|
+
columnHeights[currentMinColumnIndex] += childHeight;
|
|
232
|
+
const order = currentMinColumnIndex + 1;
|
|
233
|
+
child.style.order = order;
|
|
260
234
|
}
|
|
261
|
-
};
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
if (!skip) {
|
|
238
|
+
setMaxColumnHeight(Math.max(...columnHeights));
|
|
239
|
+
const numOfLineBreaks = currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0;
|
|
240
|
+
setNumberOfLineBreaks(numOfLineBreaks);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
262
243
|
|
|
244
|
+
const observer = React.useRef(typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(handleResize));
|
|
245
|
+
React.useEffect(() => {
|
|
246
|
+
const resizeObserver = observer.current; // IE and old browsers are not supported
|
|
263
247
|
|
|
264
|
-
if (
|
|
265
|
-
return
|
|
248
|
+
if (resizeObserver === undefined) {
|
|
249
|
+
return undefined;
|
|
266
250
|
}
|
|
267
251
|
|
|
268
|
-
const resizeObserver = new ResizeObserver(handleResize);
|
|
269
252
|
const container = masonryRef.current;
|
|
270
253
|
|
|
271
|
-
if (container) {
|
|
254
|
+
if (container && resizeObserver) {
|
|
272
255
|
// only the masonry container and its first child are observed for resizing;
|
|
273
256
|
// this might cause unforeseen problems in some use cases;
|
|
274
257
|
resizeObserver.observe(container);
|
|
@@ -278,10 +261,8 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
278
261
|
}
|
|
279
262
|
}
|
|
280
263
|
|
|
281
|
-
return () => {
|
|
282
|
-
|
|
283
|
-
};
|
|
284
|
-
}, [columns, spacing]);
|
|
264
|
+
return () => resizeObserver ? resizeObserver.disconnect() : {};
|
|
265
|
+
}, [columns, spacing, children]);
|
|
285
266
|
const handleRef = useForkRef(ref, masonryRef);
|
|
286
267
|
const lineBreakStyle = {
|
|
287
268
|
flexBasis: '100%',
|
|
@@ -367,6 +348,6 @@ process.env.NODE_ENV !== "production" ? Masonry.propTypes
|
|
|
367
348
|
/**
|
|
368
349
|
* Allows defining system overrides as well as additional CSS styles.
|
|
369
350
|
*/
|
|
370
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
351
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
371
352
|
} : void 0;
|
|
372
353
|
export default Masonry;
|
|
@@ -152,6 +152,7 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* If `true`, the picker and text field are disabled.
|
|
155
|
+
* @default false
|
|
155
156
|
*/
|
|
156
157
|
disabled: PropTypes.bool,
|
|
157
158
|
|
|
@@ -333,6 +334,7 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
333
334
|
|
|
334
335
|
/**
|
|
335
336
|
* Make picker read only.
|
|
337
|
+
* @default false
|
|
336
338
|
*/
|
|
337
339
|
readOnly: PropTypes.bool,
|
|
338
340
|
|
|
@@ -200,6 +200,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* If `true`, the picker and text field are disabled.
|
|
203
|
+
* @default false
|
|
203
204
|
*/
|
|
204
205
|
disabled: PropTypes.bool,
|
|
205
206
|
|
|
@@ -380,6 +381,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
|
380
381
|
|
|
381
382
|
/**
|
|
382
383
|
* Make picker read only.
|
|
384
|
+
* @default false
|
|
383
385
|
*/
|
|
384
386
|
readOnly: PropTypes.bool,
|
|
385
387
|
|
|
@@ -169,6 +169,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* If `true`, the picker and text field are disabled.
|
|
172
|
+
* @default false
|
|
172
173
|
*/
|
|
173
174
|
disabled: PropTypes.bool,
|
|
174
175
|
|
|
@@ -402,6 +403,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
402
403
|
|
|
403
404
|
/**
|
|
404
405
|
* Make picker read only.
|
|
406
|
+
* @default false
|
|
405
407
|
*/
|
|
406
408
|
readOnly: PropTypes.bool,
|
|
407
409
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["className", "date", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "onMonthChange"];
|
|
3
|
+
const _excluded = ["className", "date", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "onMonthChange", "readOnly"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
-
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/
|
|
8
|
+
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
9
9
|
import PickersMonth from './PickersMonth';
|
|
10
10
|
import { useUtils, useNow } from '../internal/pickers/hooks/useUtils';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -32,7 +32,8 @@ const MonthPickerRoot = styled('div', {
|
|
|
32
32
|
width: 310,
|
|
33
33
|
display: 'flex',
|
|
34
34
|
flexWrap: 'wrap',
|
|
35
|
-
alignContent: 'stretch'
|
|
35
|
+
alignContent: 'stretch',
|
|
36
|
+
margin: '0 4px'
|
|
36
37
|
});
|
|
37
38
|
const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps, ref) {
|
|
38
39
|
const props = useThemeProps({
|
|
@@ -43,12 +44,14 @@ const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps,
|
|
|
43
44
|
const {
|
|
44
45
|
className,
|
|
45
46
|
date,
|
|
47
|
+
disabled,
|
|
46
48
|
disableFuture,
|
|
47
49
|
disablePast,
|
|
48
50
|
maxDate,
|
|
49
51
|
minDate,
|
|
50
52
|
onChange,
|
|
51
|
-
onMonthChange
|
|
53
|
+
onMonthChange,
|
|
54
|
+
readOnly
|
|
52
55
|
} = props,
|
|
53
56
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
54
57
|
|
|
@@ -67,6 +70,10 @@ const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps,
|
|
|
67
70
|
};
|
|
68
71
|
|
|
69
72
|
const onMonthSelect = month => {
|
|
73
|
+
if (readOnly) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
70
77
|
const newDate = utils.setMonth(date || now, month);
|
|
71
78
|
onChange(newDate, 'finish');
|
|
72
79
|
|
|
@@ -87,7 +94,7 @@ const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps,
|
|
|
87
94
|
value: monthNumber,
|
|
88
95
|
selected: monthNumber === currentMonth,
|
|
89
96
|
onSelect: onMonthSelect,
|
|
90
|
-
disabled: shouldDisableMonth(month),
|
|
97
|
+
disabled: disabled || shouldDisableMonth(month),
|
|
91
98
|
children: monthText
|
|
92
99
|
}, monthText);
|
|
93
100
|
})
|
|
@@ -116,6 +123,11 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
|
|
|
116
123
|
*/
|
|
117
124
|
date: PropTypes.any,
|
|
118
125
|
|
|
126
|
+
/**
|
|
127
|
+
* If `true` picker is disabled
|
|
128
|
+
*/
|
|
129
|
+
disabled: PropTypes.bool,
|
|
130
|
+
|
|
119
131
|
/**
|
|
120
132
|
* If `true` future days are disabled.
|
|
121
133
|
*/
|
|
@@ -146,10 +158,15 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
|
|
|
146
158
|
*/
|
|
147
159
|
onMonthChange: PropTypes.func,
|
|
148
160
|
|
|
161
|
+
/**
|
|
162
|
+
* If `true` picker is readonly
|
|
163
|
+
*/
|
|
164
|
+
readOnly: PropTypes.bool,
|
|
165
|
+
|
|
149
166
|
/**
|
|
150
167
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
151
168
|
*/
|
|
152
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
169
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
153
170
|
} : void 0;
|
|
154
171
|
/**
|
|
155
172
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["disabled", "onSelect", "selected", "value"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Typography from '@mui/material/Typography';
|
|
7
|
-
import { styled } from '@mui/material/styles';
|
|
8
|
-
import { generateUtilityClasses } from '@mui/
|
|
7
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
8
|
+
import { generateUtilityClasses } from '@mui/base';
|
|
9
9
|
import { onSpaceOrEnter } from '../internal/pickers/utils';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const classes = generateUtilityClasses('PrivatePickersMonth', ['root', 'selected']);
|
|
@@ -13,28 +13,33 @@ const PickersMonthRoot = styled(Typography, {
|
|
|
13
13
|
skipSx: true
|
|
14
14
|
})(({
|
|
15
15
|
theme
|
|
16
|
-
}) => ({
|
|
16
|
+
}) => _extends({
|
|
17
17
|
flex: '1 0 33.33%',
|
|
18
18
|
display: 'flex',
|
|
19
19
|
alignItems: 'center',
|
|
20
20
|
justifyContent: 'center',
|
|
21
|
+
color: 'unset',
|
|
22
|
+
backgroundColor: 'transparent',
|
|
23
|
+
border: 0,
|
|
24
|
+
outline: 0
|
|
25
|
+
}, theme.typography.subtitle1, {
|
|
26
|
+
margin: '8px 0',
|
|
27
|
+
height: 36,
|
|
28
|
+
borderRadius: 18,
|
|
21
29
|
cursor: 'pointer',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
transition: theme.transitions.create('font-size', {
|
|
25
|
-
duration: '100ms'
|
|
26
|
-
}),
|
|
27
|
-
'&:focus': {
|
|
28
|
-
color: theme.palette.primary.main,
|
|
29
|
-
fontWeight: theme.typography.fontWeightMedium
|
|
30
|
+
'&:focus, &:hover': {
|
|
31
|
+
backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)
|
|
30
32
|
},
|
|
31
33
|
'&:disabled': {
|
|
32
34
|
pointerEvents: 'none',
|
|
33
35
|
color: theme.palette.text.secondary
|
|
34
36
|
},
|
|
35
37
|
[`&.${classes.selected}`]: {
|
|
36
|
-
color: theme.palette.primary.
|
|
37
|
-
|
|
38
|
+
color: theme.palette.primary.contrastText,
|
|
39
|
+
backgroundColor: theme.palette.primary.main,
|
|
40
|
+
'&:focus, &:hover': {
|
|
41
|
+
backgroundColor: theme.palette.primary.dark
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
}));
|
|
40
45
|
/**
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import ButtonBase from '@mui/material/ButtonBase';
|
|
8
8
|
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
9
|
-
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/
|
|
9
|
+
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
10
10
|
import { useTheme, alpha, styled, useThemeProps } from '@mui/material/styles';
|
|
11
11
|
import { useForkRef } from '@mui/material/utils';
|
|
12
12
|
import { useUtils } from '../internal/pickers/hooks/useUtils';
|
|
@@ -374,7 +374,7 @@ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
|
|
|
374
374
|
/**
|
|
375
375
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
376
376
|
*/
|
|
377
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
377
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* If `true`, renders as today date.
|
|
@@ -121,6 +121,7 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* If `true`, the picker and text field are disabled.
|
|
124
|
+
* @default false
|
|
124
125
|
*/
|
|
125
126
|
disabled: PropTypes.bool,
|
|
126
127
|
|
|
@@ -302,6 +303,7 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
302
303
|
|
|
303
304
|
/**
|
|
304
305
|
* Make picker read only.
|
|
306
|
+
* @default false
|
|
305
307
|
*/
|
|
306
308
|
readOnly: PropTypes.bool,
|
|
307
309
|
|
|
@@ -170,6 +170,7 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* If `true`, the picker and text field are disabled.
|
|
173
|
+
* @default false
|
|
173
174
|
*/
|
|
174
175
|
disabled: PropTypes.bool,
|
|
175
176
|
|
|
@@ -348,6 +349,7 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
|
348
349
|
|
|
349
350
|
/**
|
|
350
351
|
* Make picker read only.
|
|
352
|
+
* @default false
|
|
351
353
|
*/
|
|
352
354
|
readOnly: PropTypes.bool,
|
|
353
355
|
|
|
@@ -138,6 +138,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* If `true`, the picker and text field are disabled.
|
|
141
|
+
* @default false
|
|
141
142
|
*/
|
|
142
143
|
disabled: PropTypes.bool,
|
|
143
144
|
|
|
@@ -371,6 +372,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
371
372
|
|
|
372
373
|
/**
|
|
373
374
|
* Make picker read only.
|
|
375
|
+
* @default false
|
|
374
376
|
*/
|
|
375
377
|
readOnly: PropTypes.bool,
|
|
376
378
|
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
8
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { getTabPanelUtilityClass } from './tabPanelClasses';
|
|
10
10
|
import { getPanelId, getTabId, useTabContext } from '../TabContext';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -91,7 +91,7 @@ process.env.NODE_ENV !== "production" ? TabPanel.propTypes
|
|
|
91
91
|
/**
|
|
92
92
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
93
93
|
*/
|
|
94
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
94
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
@@ -4,7 +4,7 @@ const _excluded = ["ampm", "ampmInClock", "date", "isLandscape", "isMobileKeyboa
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useTheme, styled } from '@mui/material/styles';
|
|
7
|
-
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/
|
|
7
|
+
import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
8
8
|
import PickersToolbarText from '../internal/pickers/PickersToolbarText';
|
|
9
9
|
import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';
|
|
10
10
|
import PickersToolbar from '../internal/pickers/PickersToolbar';
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { capitalize } from '@mui/material/utils';
|
|
8
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
8
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import TimelineContext from './TimelineContext';
|
|
11
11
|
import { getTimelineUtilityClass } from './timelineClasses';
|
|
@@ -109,7 +109,7 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
|
109
109
|
/**
|
|
110
110
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
111
111
|
*/
|
|
112
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
112
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
113
113
|
} : void 0;
|
|
114
114
|
/**
|
|
115
115
|
*
|
|
@@ -4,7 +4,7 @@ const _excluded = ["className"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
7
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { getTimelineConnectorUtilityClass } from './timelineConnectorClasses';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -77,6 +77,6 @@ process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes
|
|
|
77
77
|
/**
|
|
78
78
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
79
79
|
*/
|
|
80
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
80
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
81
81
|
} : void 0;
|
|
82
82
|
export default TimelineConnector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateUtilityClass, generateUtilityClasses } from '@mui/
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
2
2
|
export function getTimelineConnectorUtilityClass(slot) {
|
|
3
3
|
return generateUtilityClass('MuiTimelineConnector', slot);
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { capitalize } from '@mui/material/utils';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
9
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
10
|
import Typography from '@mui/material/Typography';
|
|
11
11
|
import TimelineContext from '../Timeline/TimelineContext';
|
|
12
12
|
import { getTimelineContentUtilityClass } from './timelineContentClasses';
|
|
@@ -94,6 +94,6 @@ process.env.NODE_ENV !== "production" ? TimelineContent.propTypes
|
|
|
94
94
|
/**
|
|
95
95
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
96
96
|
*/
|
|
97
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
97
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
|
|
98
98
|
} : void 0;
|
|
99
99
|
export default TimelineContent;
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import { capitalize } from '@mui/material/utils';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
9
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
10
|
import { getTimelineDotUtilityClass } from './timelineDotClasses';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
|
|
@@ -116,7 +116,7 @@ process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
|
|
|
116
116
|
/**
|
|
117
117
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
118
118
|
*/
|
|
119
|
-
sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
119
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* The dot can appear filled or outlined.
|