@mui/lab 5.0.0-alpha.52 → 5.0.0-alpha.56
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 +302 -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/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,93 +1,93 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SxProps } from '@mui/system';
|
|
3
|
-
import { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
4
|
-
import { Theme } from '@mui/material/styles';
|
|
5
|
-
import { ExtendMui } from '../internal/pickers/typings/helpers';
|
|
6
|
-
import { PickerSelectionState } from '../internal/pickers/hooks/usePickerState';
|
|
7
|
-
export interface PickersDayProps<TDate> extends ExtendMui<ButtonBaseProps> {
|
|
8
|
-
/**
|
|
9
|
-
* If `true`, `onChange` is fired on click even if the same date is selected.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
allowSameDateSelection?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Override or extend the styles applied to the component.
|
|
15
|
-
*/
|
|
16
|
-
classes?: {
|
|
17
|
-
/** Styles applied to the root element. */
|
|
18
|
-
root?: string;
|
|
19
|
-
/** Styles applied to the root element if `disableMargin=false`. */
|
|
20
|
-
dayWithMargin?: string;
|
|
21
|
-
/** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
|
|
22
|
-
dayOutsideMonth?: string;
|
|
23
|
-
/** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
|
|
24
|
-
hiddenDaySpacingFiller?: string;
|
|
25
|
-
/** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
|
|
26
|
-
today?: string;
|
|
27
|
-
/** State class applied to the root element if `selected=true`. */
|
|
28
|
-
selected?: string;
|
|
29
|
-
/** State class applied to the root element if `disabled=true`. */
|
|
30
|
-
disabled?: string;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* The date to show.
|
|
34
|
-
*/
|
|
35
|
-
day: TDate;
|
|
36
|
-
/**
|
|
37
|
-
* If `true`, renders as disabled.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* If `true`, todays date is rendering without highlighting with circle.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
disableHighlightToday?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* If `true`, days are rendering without margin. Useful for displaying linked range of days.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
disableMargin?: boolean;
|
|
51
|
-
isAnimating?: boolean;
|
|
52
|
-
onDayFocus?: (day: TDate) => void;
|
|
53
|
-
onDaySelect: (day: TDate, isFinish: PickerSelectionState) => void;
|
|
54
|
-
/**
|
|
55
|
-
* If `true`, day is outside of month and will be hidden.
|
|
56
|
-
*/
|
|
57
|
-
outsideCurrentMonth: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* If `true`, renders as selected.
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
selected?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* If `true`, days that have `outsideCurrentMonth={true}` are displayed.
|
|
65
|
-
* @default false
|
|
66
|
-
*/
|
|
67
|
-
showDaysOutsideCurrentMonth?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* If `true`, renders as today date.
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
today?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
75
|
-
*/
|
|
76
|
-
sx?: SxProps<Theme>;
|
|
77
|
-
}
|
|
78
|
-
export declare type PickersDayClassKey = keyof NonNullable<PickersDayProps<unknown>['classes']>;
|
|
79
|
-
export declare function getPickersDayUtilityClass(slot: string): string;
|
|
80
|
-
export declare const pickersDayClasses: Record<"root" | "selected" | "disabled" | "dayWithMargin" | "dayOutsideMonth" | "hiddenDaySpacingFiller" | "today", string>;
|
|
81
|
-
export declare const areDayPropsEqual: (prevProps: PickersDayProps<any>, nextProps: PickersDayProps<any>) => boolean;
|
|
82
|
-
declare const _default: <TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* Demos:
|
|
86
|
-
*
|
|
87
|
-
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
88
|
-
*
|
|
89
|
-
* API:
|
|
90
|
-
*
|
|
91
|
-
* - [PickersDay API](https://mui.com/api/pickers-day/)
|
|
92
|
-
*/
|
|
93
|
-
export default _default;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
import { ExtendMui } from '../internal/pickers/typings/helpers';
|
|
6
|
+
import { PickerSelectionState } from '../internal/pickers/hooks/usePickerState';
|
|
7
|
+
export interface PickersDayProps<TDate> extends ExtendMui<ButtonBaseProps> {
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, `onChange` is fired on click even if the same date is selected.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
allowSameDateSelection?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Override or extend the styles applied to the component.
|
|
15
|
+
*/
|
|
16
|
+
classes?: {
|
|
17
|
+
/** Styles applied to the root element. */
|
|
18
|
+
root?: string;
|
|
19
|
+
/** Styles applied to the root element if `disableMargin=false`. */
|
|
20
|
+
dayWithMargin?: string;
|
|
21
|
+
/** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
|
|
22
|
+
dayOutsideMonth?: string;
|
|
23
|
+
/** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
|
|
24
|
+
hiddenDaySpacingFiller?: string;
|
|
25
|
+
/** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
|
|
26
|
+
today?: string;
|
|
27
|
+
/** State class applied to the root element if `selected=true`. */
|
|
28
|
+
selected?: string;
|
|
29
|
+
/** State class applied to the root element if `disabled=true`. */
|
|
30
|
+
disabled?: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The date to show.
|
|
34
|
+
*/
|
|
35
|
+
day: TDate;
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, renders as disabled.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If `true`, todays date is rendering without highlighting with circle.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
disableHighlightToday?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* If `true`, days are rendering without margin. Useful for displaying linked range of days.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
disableMargin?: boolean;
|
|
51
|
+
isAnimating?: boolean;
|
|
52
|
+
onDayFocus?: (day: TDate) => void;
|
|
53
|
+
onDaySelect: (day: TDate, isFinish: PickerSelectionState) => void;
|
|
54
|
+
/**
|
|
55
|
+
* If `true`, day is outside of month and will be hidden.
|
|
56
|
+
*/
|
|
57
|
+
outsideCurrentMonth: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* If `true`, renders as selected.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
selected?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* If `true`, days that have `outsideCurrentMonth={true}` are displayed.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
showDaysOutsideCurrentMonth?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* If `true`, renders as today date.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
today?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
75
|
+
*/
|
|
76
|
+
sx?: SxProps<Theme>;
|
|
77
|
+
}
|
|
78
|
+
export declare type PickersDayClassKey = keyof NonNullable<PickersDayProps<unknown>['classes']>;
|
|
79
|
+
export declare function getPickersDayUtilityClass(slot: string): string;
|
|
80
|
+
export declare const pickersDayClasses: Record<"root" | "selected" | "disabled" | "dayWithMargin" | "dayOutsideMonth" | "hiddenDaySpacingFiller" | "today", string>;
|
|
81
|
+
export declare const areDayPropsEqual: (prevProps: PickersDayProps<any>, nextProps: PickersDayProps<any>) => boolean;
|
|
82
|
+
declare const _default: <TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* Demos:
|
|
86
|
+
*
|
|
87
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
88
|
+
*
|
|
89
|
+
* API:
|
|
90
|
+
*
|
|
91
|
+
* - [PickersDay API](https://mui.com/api/pickers-day/)
|
|
92
|
+
*/
|
|
93
|
+
export default _default;
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -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.
|
package/PickersDay/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default } from './PickersDay';
|
|
2
|
-
export { pickersDayClasses, getPickersDayUtilityClass } from './PickersDay';
|
|
3
|
-
export declare type PickersDayClassKey = import('./PickersDay').PickersDayClassKey;
|
|
4
|
-
export declare type PickersDayProps<TDate> = import('./PickersDay').PickersDayProps<TDate>;
|
|
1
|
+
export { default } from './PickersDay';
|
|
2
|
+
export { pickersDayClasses, getPickersDayUtilityClass } from './PickersDay';
|
|
3
|
+
export declare type PickersDayClassKey = import('./PickersDay').PickersDayClassKey;
|
|
4
|
+
export declare type PickersDayProps<TDate> = import('./PickersDay').PickersDayProps<TDate>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseDatePickerProps } from '../DatePicker/shared';
|
|
3
|
-
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
4
|
-
export interface StaticDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate> {
|
|
5
|
-
/**
|
|
6
|
-
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
7
|
-
* @default 'mobile'
|
|
8
|
-
*/
|
|
9
|
-
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
10
|
-
}
|
|
11
|
-
declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
12
|
-
propTypes?: any;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* Demos:
|
|
17
|
-
*
|
|
18
|
-
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
19
|
-
*
|
|
20
|
-
* API:
|
|
21
|
-
*
|
|
22
|
-
* - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
|
|
23
|
-
*/
|
|
24
|
-
declare const StaticDatePicker: StaticDatePickerComponent;
|
|
25
|
-
export default StaticDatePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseDatePickerProps } from '../DatePicker/shared';
|
|
3
|
+
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
4
|
+
export interface StaticDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate> {
|
|
5
|
+
/**
|
|
6
|
+
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
7
|
+
* @default 'mobile'
|
|
8
|
+
*/
|
|
9
|
+
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
10
|
+
}
|
|
11
|
+
declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
12
|
+
propTypes?: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
19
|
+
*
|
|
20
|
+
* API:
|
|
21
|
+
*
|
|
22
|
+
* - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
|
|
23
|
+
*/
|
|
24
|
+
declare const StaticDatePicker: StaticDatePickerComponent;
|
|
25
|
+
export default StaticDatePicker;
|
|
@@ -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
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './StaticDatePicker';
|
|
2
|
-
export { default } from './StaticDatePicker';
|
|
1
|
+
export * from './StaticDatePicker';
|
|
2
|
+
export { default } from './StaticDatePicker';
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
3
|
-
import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
|
|
4
|
-
import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
|
|
5
|
-
import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
|
|
6
|
-
import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
|
|
7
|
-
interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
|
|
8
|
-
/**
|
|
9
|
-
* The components used for each slot.
|
|
10
|
-
* Either a string to use a HTML element or a component.
|
|
11
|
-
* @default {}
|
|
12
|
-
*/
|
|
13
|
-
components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
|
|
14
|
-
/**
|
|
15
|
-
* Text for end input label and toolbar placeholder.
|
|
16
|
-
* @default 'End'
|
|
17
|
-
*/
|
|
18
|
-
endText?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
|
|
21
|
-
* @default '__/__/____'
|
|
22
|
-
*/
|
|
23
|
-
mask?: ExportedDateRangePickerInputProps['mask'];
|
|
24
|
-
/**
|
|
25
|
-
* Min selectable date. @DateIOType
|
|
26
|
-
*/
|
|
27
|
-
minDate?: TDate;
|
|
28
|
-
/**
|
|
29
|
-
* Max selectable date. @DateIOType
|
|
30
|
-
*/
|
|
31
|
-
maxDate?: TDate;
|
|
32
|
-
/**
|
|
33
|
-
* Callback fired when the value (the selected date range) changes @DateIOType.
|
|
34
|
-
*/
|
|
35
|
-
onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Text for start input label and toolbar placeholder.
|
|
38
|
-
* @default 'Start'
|
|
39
|
-
*/
|
|
40
|
-
startText?: React.ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* The value of the date range picker.
|
|
43
|
-
*/
|
|
44
|
-
value: RangeInput<TDate>;
|
|
45
|
-
}
|
|
46
|
-
export interface StaticDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate> {
|
|
47
|
-
/**
|
|
48
|
-
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
49
|
-
* @default 'mobile'
|
|
50
|
-
*/
|
|
51
|
-
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
52
|
-
}
|
|
53
|
-
declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
54
|
-
propTypes: unknown;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* Demos:
|
|
59
|
-
*
|
|
60
|
-
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
61
|
-
*
|
|
62
|
-
* API:
|
|
63
|
-
*
|
|
64
|
-
* - [StaticDateRangePicker API](https://mui.com/api/static-date-range-picker/)
|
|
65
|
-
*/
|
|
66
|
-
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
67
|
-
export default StaticDateRangePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
3
|
+
import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
|
|
4
|
+
import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
|
|
5
|
+
import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
|
|
6
|
+
import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
|
|
7
|
+
interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
|
|
8
|
+
/**
|
|
9
|
+
* The components used for each slot.
|
|
10
|
+
* Either a string to use a HTML element or a component.
|
|
11
|
+
* @default {}
|
|
12
|
+
*/
|
|
13
|
+
components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
|
|
14
|
+
/**
|
|
15
|
+
* Text for end input label and toolbar placeholder.
|
|
16
|
+
* @default 'End'
|
|
17
|
+
*/
|
|
18
|
+
endText?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
|
|
21
|
+
* @default '__/__/____'
|
|
22
|
+
*/
|
|
23
|
+
mask?: ExportedDateRangePickerInputProps['mask'];
|
|
24
|
+
/**
|
|
25
|
+
* Min selectable date. @DateIOType
|
|
26
|
+
*/
|
|
27
|
+
minDate?: TDate;
|
|
28
|
+
/**
|
|
29
|
+
* Max selectable date. @DateIOType
|
|
30
|
+
*/
|
|
31
|
+
maxDate?: TDate;
|
|
32
|
+
/**
|
|
33
|
+
* Callback fired when the value (the selected date range) changes @DateIOType.
|
|
34
|
+
*/
|
|
35
|
+
onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Text for start input label and toolbar placeholder.
|
|
38
|
+
* @default 'Start'
|
|
39
|
+
*/
|
|
40
|
+
startText?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The value of the date range picker.
|
|
43
|
+
*/
|
|
44
|
+
value: RangeInput<TDate>;
|
|
45
|
+
}
|
|
46
|
+
export interface StaticDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate> {
|
|
47
|
+
/**
|
|
48
|
+
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
49
|
+
* @default 'mobile'
|
|
50
|
+
*/
|
|
51
|
+
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
52
|
+
}
|
|
53
|
+
declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
54
|
+
propTypes: unknown;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* Demos:
|
|
59
|
+
*
|
|
60
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
61
|
+
*
|
|
62
|
+
* API:
|
|
63
|
+
*
|
|
64
|
+
* - [StaticDateRangePicker API](https://mui.com/api/static-date-range-picker/)
|
|
65
|
+
*/
|
|
66
|
+
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
67
|
+
export default StaticDateRangePicker;
|
|
@@ -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
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './StaticDateRangePicker';
|
|
2
|
-
export { default } from './StaticDateRangePicker';
|
|
1
|
+
export * from './StaticDateRangePicker';
|
|
2
|
+
export { default } from './StaticDateRangePicker';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseDateTimePickerProps } from '../DateTimePicker/shared';
|
|
3
|
-
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
4
|
-
export interface StaticDateTimePickerProps<TDate = unknown> extends BaseDateTimePickerProps<TDate> {
|
|
5
|
-
/**
|
|
6
|
-
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
7
|
-
* @default 'mobile'
|
|
8
|
-
*/
|
|
9
|
-
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
10
|
-
}
|
|
11
|
-
declare type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
12
|
-
propTypes?: any;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* Demos:
|
|
17
|
-
*
|
|
18
|
-
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
19
|
-
*
|
|
20
|
-
* API:
|
|
21
|
-
*
|
|
22
|
-
* - [StaticDateTimePicker API](https://mui.com/api/static-date-time-picker/)
|
|
23
|
-
*/
|
|
24
|
-
declare const StaticDateTimePicker: StaticDateTimePickerComponent;
|
|
25
|
-
export default StaticDateTimePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseDateTimePickerProps } from '../DateTimePicker/shared';
|
|
3
|
+
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
4
|
+
export interface StaticDateTimePickerProps<TDate = unknown> extends BaseDateTimePickerProps<TDate> {
|
|
5
|
+
/**
|
|
6
|
+
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
7
|
+
* @default 'mobile'
|
|
8
|
+
*/
|
|
9
|
+
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
10
|
+
}
|
|
11
|
+
declare type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
12
|
+
propTypes?: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
19
|
+
*
|
|
20
|
+
* API:
|
|
21
|
+
*
|
|
22
|
+
* - [StaticDateTimePicker API](https://mui.com/api/static-date-time-picker/)
|
|
23
|
+
*/
|
|
24
|
+
declare const StaticDateTimePicker: StaticDateTimePickerComponent;
|
|
25
|
+
export default StaticDateTimePicker;
|
|
@@ -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
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './StaticDateTimePicker';
|
|
2
|
-
export { default } from './StaticDateTimePicker';
|
|
1
|
+
export * from './StaticDateTimePicker';
|
|
2
|
+
export { default } from './StaticDateTimePicker';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseTimePickerProps } from '../TimePicker/shared';
|
|
3
|
-
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
4
|
-
export interface StaticTimePickerProps<TDate = unknown> extends BaseTimePickerProps<TDate> {
|
|
5
|
-
/**
|
|
6
|
-
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
7
|
-
* @default 'mobile'
|
|
8
|
-
*/
|
|
9
|
-
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
10
|
-
}
|
|
11
|
-
declare type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
12
|
-
propTypes?: any;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* Demos:
|
|
17
|
-
*
|
|
18
|
-
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
19
|
-
*
|
|
20
|
-
* API:
|
|
21
|
-
*
|
|
22
|
-
* - [StaticTimePicker API](https://mui.com/api/static-time-picker/)
|
|
23
|
-
*/
|
|
24
|
-
declare const StaticTimePicker: StaticTimePickerComponent;
|
|
25
|
-
export default StaticTimePicker;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseTimePickerProps } from '../TimePicker/shared';
|
|
3
|
+
import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
|
|
4
|
+
export interface StaticTimePickerProps<TDate = unknown> extends BaseTimePickerProps<TDate> {
|
|
5
|
+
/**
|
|
6
|
+
* Force static wrapper inner components to be rendered in mobile or desktop mode.
|
|
7
|
+
* @default 'mobile'
|
|
8
|
+
*/
|
|
9
|
+
displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
|
|
10
|
+
}
|
|
11
|
+
declare type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
12
|
+
propTypes?: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
19
|
+
*
|
|
20
|
+
* API:
|
|
21
|
+
*
|
|
22
|
+
* - [StaticTimePicker API](https://mui.com/api/static-time-picker/)
|
|
23
|
+
*/
|
|
24
|
+
declare const StaticTimePicker: StaticTimePickerComponent;
|
|
25
|
+
export default StaticTimePicker;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './StaticTimePicker';
|
|
2
|
-
export { default } from './StaticTimePicker';
|
|
1
|
+
export * from './StaticTimePicker';
|
|
2
|
+
export { default } from './StaticTimePicker';
|
package/TabPanel/TabPanel.js
CHANGED
|
@@ -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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TabPanelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TabPanelClassKey = keyof TabPanelClasses;
|
|
6
|
-
export declare function getTabPanelUtilityClass(slot: string): string;
|
|
7
|
-
declare const tabPanelClasses: TabPanelClasses;
|
|
8
|
-
export default tabPanelClasses;
|
|
1
|
+
export interface TabPanelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TabPanelClassKey = keyof TabPanelClasses;
|
|
6
|
+
export declare function getTabPanelUtilityClass(slot: string): string;
|
|
7
|
+
declare const tabPanelClasses: TabPanelClasses;
|
|
8
|
+
export default tabPanelClasses;
|