@mui/lab 5.0.0-alpha.49 → 5.0.0-alpha.53
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 +251 -0
- package/CalendarPicker/CalendarPicker.d.ts +96 -96
- package/CalendarPicker/PickersCalendar.d.ts +45 -45
- package/CalendarPicker/PickersCalendarHeader.d.ts +42 -42
- package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
- package/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
- package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
- package/CalendarPicker/index.d.ts +5 -5
- package/CalendarPicker/shared.d.ts +1 -1
- package/CalendarPicker/useCalendarState.d.ts +32 -32
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -40
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
- package/CalendarPickerSkeleton/index.d.ts +3 -3
- package/ClockPicker/Clock.d.ts +28 -28
- package/ClockPicker/ClockNumber.d.ts +19 -19
- package/ClockPicker/ClockNumbers.d.ts +24 -24
- package/ClockPicker/ClockPicker.d.ts +121 -121
- package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
- package/ClockPicker/ClockPointer.d.ts +23 -23
- package/ClockPicker/index.d.ts +5 -5
- package/ClockPicker/shared.d.ts +5 -5
- package/DatePicker/DatePicker.d.ts +27 -27
- package/DatePicker/DatePicker.js +5 -0
- package/DatePicker/DatePickerToolbar.d.ts +23 -23
- package/DatePicker/index.d.ts +2 -2
- package/DatePicker/shared.d.ts +45 -41
- package/DateRangePicker/DateRangePicker.d.ts +65 -65
- package/DateRangePicker/DateRangePicker.js +5 -0
- package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
- package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
- package/DateRangePicker/DateRangePickerView.d.ts +44 -44
- package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
- package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
- package/DateRangePicker/RangeTypes.d.ts +8 -8
- package/DateRangePicker/date-range-manager.d.ts +14 -14
- package/DateRangePicker/index.d.ts +3 -3
- package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
- package/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +27 -27
- package/DateTimePicker/DateTimePicker.js +5 -0
- package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
- package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
- package/DateTimePicker/index.d.ts +2 -2
- package/DateTimePicker/shared.d.ts +67 -63
- package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
- package/DesktopDatePicker/DesktopDatePicker.js +8 -1
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
- package/DesktopTimePicker/DesktopTimePicker.js +10 -0
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LICENSE +21 -21
- package/LoadingButton/LoadingButton.js +37 -7
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/Masonry.d.ts +13 -1
- package/Masonry/Masonry.js +246 -59
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
- package/MobileTimePicker/MobileTimePicker.js +5 -0
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +49 -49
- package/MonthPicker/MonthPicker.js +1 -1
- package/MonthPicker/PickersMonth.d.ts +15 -15
- package/MonthPicker/index.d.ts +3 -3
- package/PickersDay/PickersDay.d.ts +93 -93
- package/PickersDay/PickersDay.js +1 -1
- package/PickersDay/index.d.ts +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
- package/StaticTimePicker/StaticTimePicker.js +5 -0
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/TabPanel.js +1 -1
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +27 -27
- package/TimePicker/TimePicker.js +10 -0
- package/TimePicker/TimePickerToolbar.d.ts +23 -23
- package/TimePicker/index.d.ts +2 -2
- package/TimePicker/shared.d.ts +36 -32
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/Timeline.js +1 -1
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/TimelineConnector.js +1 -1
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/TimelineContent.js +1 -1
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/TimelineDot.js +1 -1
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/TimelineItem.js +1 -1
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/TimelineSeparator.js +1 -1
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TreeItem/TreeItem.js +1 -1
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/TreeView.js +1 -1
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/PickersYear.d.ts +28 -28
- package/YearPicker/YearPicker.d.ts +42 -42
- package/YearPicker/index.d.ts +5 -5
- package/YearPicker/yearPickerClasses.d.ts +3 -3
- package/index.js +1 -1
- package/internal/pickers/KeyboardDateInput.d.ts +4 -4
- package/internal/pickers/Picker/Picker.d.ts +33 -33
- package/internal/pickers/Picker/Picker.js +12 -6
- package/internal/pickers/Picker/PickerView.d.ts +3 -7
- package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
- package/internal/pickers/PickersArrowSwitcher.js +1 -3
- package/internal/pickers/PickersModalDialog.d.ts +47 -47
- package/internal/pickers/PickersPopper.d.ts +33 -25
- package/internal/pickers/PickersPopper.js +31 -7
- package/internal/pickers/PickersToolbar.d.ts +14 -14
- package/internal/pickers/PickersToolbarButton.d.ts +13 -13
- package/internal/pickers/PickersToolbarText.d.ts +8 -8
- package/internal/pickers/PureDateInput.d.ts +80 -80
- package/internal/pickers/constants/dimensions.d.ts +4 -4
- package/internal/pickers/constants/prop-types.d.ts +1 -1
- package/internal/pickers/date-time-utils.d.ts +8 -8
- package/internal/pickers/date-utils.d.ts +52 -52
- package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
- package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
- package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
- package/internal/pickers/hooks/useOpenState.d.ts +10 -10
- package/internal/pickers/hooks/usePickerState.d.ts +38 -38
- package/internal/pickers/hooks/useUtils.d.ts +7 -7
- package/internal/pickers/hooks/useValidation.d.ts +23 -23
- package/internal/pickers/hooks/useViews.d.ts +19 -19
- package/internal/pickers/test-utils.js +18 -26
- 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/DesktopWrapper.js +2 -0
- 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/PickersFadeTransitionGroup.js +3 -5
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
- package/legacy/DatePicker/DatePicker.js +5 -0
- package/legacy/DateRangePicker/DateRangePicker.js +5 -0
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/legacy/DateTimePicker/DateTimePicker.js +5 -0
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +8 -1
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +10 -0
- package/legacy/LoadingButton/LoadingButton.js +36 -10
- package/legacy/Masonry/Masonry.js +255 -59
- package/legacy/MobileTimePicker/MobileTimePicker.js +5 -0
- package/legacy/MonthPicker/MonthPicker.js +1 -1
- package/legacy/PickersDay/PickersDay.js +1 -1
- package/legacy/StaticTimePicker/StaticTimePicker.js +5 -0
- package/legacy/TabPanel/TabPanel.js +1 -1
- package/legacy/TimePicker/TimePicker.js +10 -0
- package/legacy/Timeline/Timeline.js +1 -1
- package/legacy/TimelineConnector/TimelineConnector.js +1 -1
- package/legacy/TimelineContent/TimelineContent.js +1 -1
- package/legacy/TimelineDot/TimelineDot.js +1 -1
- package/legacy/TimelineItem/TimelineItem.js +1 -1
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/legacy/TimelineSeparator/TimelineSeparator.js +1 -1
- package/legacy/TreeItem/TreeItem.js +1 -1
- package/legacy/TreeView/TreeView.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/Picker/Picker.js +12 -8
- package/legacy/internal/pickers/PickersArrowSwitcher.js +1 -3
- package/legacy/internal/pickers/PickersPopper.js +29 -7
- package/legacy/internal/pickers/test-utils.js +22 -33
- package/legacy/internal/pickers/wrappers/DesktopWrapper.js +2 -0
- package/modern/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
- package/modern/DatePicker/DatePicker.js +5 -0
- package/modern/DateRangePicker/DateRangePicker.js +5 -0
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/modern/DateTimePicker/DateTimePicker.js +5 -0
- package/modern/DesktopDatePicker/DesktopDatePicker.js +8 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/modern/DesktopTimePicker/DesktopTimePicker.js +10 -0
- package/modern/LoadingButton/LoadingButton.js +37 -7
- package/modern/Masonry/Masonry.js +246 -59
- package/modern/MobileTimePicker/MobileTimePicker.js +5 -0
- package/modern/MonthPicker/MonthPicker.js +1 -1
- package/modern/PickersDay/PickersDay.js +1 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +5 -0
- package/modern/TabPanel/TabPanel.js +1 -1
- package/modern/TimePicker/TimePicker.js +10 -0
- package/modern/Timeline/Timeline.js +1 -1
- package/modern/TimelineConnector/TimelineConnector.js +1 -1
- package/modern/TimelineContent/TimelineContent.js +1 -1
- package/modern/TimelineDot/TimelineDot.js +1 -1
- package/modern/TimelineItem/TimelineItem.js +1 -1
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/modern/TimelineSeparator/TimelineSeparator.js +1 -1
- package/modern/TreeItem/TreeItem.js +1 -1
- package/modern/TreeView/TreeView.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internal/pickers/Picker/Picker.js +12 -6
- package/modern/internal/pickers/PickersArrowSwitcher.js +1 -3
- package/modern/internal/pickers/PickersPopper.js +31 -7
- package/modern/internal/pickers/test-utils.js +18 -26
- package/modern/internal/pickers/wrappers/DesktopWrapper.js +2 -0
- package/node/CalendarPicker/CalendarPicker.js +1 -1
- package/node/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
- package/node/CalendarPicker/PickersSlideTransition.js +1 -1
- package/node/CalendarPicker/index.js +4 -4
- package/node/CalendarPicker/useCalendarState.js +1 -1
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
- package/node/CalendarPickerSkeleton/index.js +4 -4
- package/node/ClockPicker/ClockPicker.js +1 -1
- package/node/ClockPicker/index.js +4 -4
- package/node/ClockPicker/shared.js +1 -1
- package/node/DatePicker/DatePicker.js +5 -0
- package/node/DatePicker/shared.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +5 -0
- package/node/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/node/DateTimePicker/DateTimePicker.js +5 -0
- package/node/DesktopDatePicker/DesktopDatePicker.js +8 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/node/DesktopTimePicker/DesktopTimePicker.js +10 -0
- package/node/LoadingButton/LoadingButton.js +37 -7
- package/node/LoadingButton/loadingButtonClasses.js +1 -1
- package/node/Masonry/Masonry.js +247 -63
- package/node/Masonry/masonryClasses.js +1 -1
- package/node/MobileTimePicker/MobileTimePicker.js +5 -0
- package/node/MonthPicker/MonthPicker.js +3 -2
- package/node/PickersDay/PickersDay.js +3 -2
- package/node/PickersDay/index.js +4 -4
- package/node/StaticTimePicker/StaticTimePicker.js +5 -0
- package/node/TabContext/TabContext.js +1 -1
- package/node/TabPanel/TabPanel.js +1 -1
- package/node/TabPanel/tabPanelClasses.js +1 -1
- package/node/TimePicker/TimePicker.js +10 -0
- package/node/TimePicker/TimePickerToolbar.js +2 -1
- package/node/Timeline/Timeline.js +1 -1
- package/node/Timeline/timelineClasses.js +1 -1
- package/node/TimelineConnector/TimelineConnector.js +1 -1
- package/node/TimelineConnector/timelineConnectorClasses.js +1 -1
- package/node/TimelineContent/TimelineContent.js +1 -1
- package/node/TimelineContent/timelineContentClasses.js +1 -1
- package/node/TimelineDot/TimelineDot.js +1 -1
- package/node/TimelineDot/timelineDotClasses.js +1 -1
- package/node/TimelineItem/TimelineItem.js +1 -1
- package/node/TimelineItem/timelineItemClasses.js +1 -1
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
- package/node/TimelineSeparator/TimelineSeparator.js +1 -1
- package/node/TimelineSeparator/timelineSeparatorClasses.js +1 -1
- package/node/TreeItem/TreeItem.js +1 -1
- package/node/TreeItem/index.js +4 -4
- package/node/TreeItem/treeItemClasses.js +1 -1
- package/node/TreeView/TreeView.js +1 -1
- package/node/TreeView/descendants.js +1 -1
- package/node/TreeView/treeViewClasses.js +1 -1
- package/node/YearPicker/PickersYear.js +2 -1
- package/node/YearPicker/yearPickerClasses.js +1 -1
- package/node/index.js +7 -7
- package/node/internal/pickers/Picker/Picker.js +12 -6
- package/node/internal/pickers/PickersArrowSwitcher.js +1 -3
- package/node/internal/pickers/PickersPopper.js +31 -7
- package/node/internal/pickers/constants/dimensions.js +1 -1
- package/node/internal/pickers/date-utils.js +2 -1
- package/node/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/node/internal/pickers/hooks/useIsLandscape.js +1 -1
- package/node/internal/pickers/hooks/useMaskedInput.js +1 -1
- package/node/internal/pickers/hooks/useOpenState.js +1 -1
- package/node/internal/pickers/hooks/useUtils.js +1 -1
- package/node/internal/pickers/hooks/useValidation.js +3 -3
- package/node/internal/pickers/test-utils.js +20 -39
- package/node/internal/pickers/text-field-helper.js +3 -2
- package/node/internal/pickers/time-utils.js +2 -1
- package/node/internal/pickers/utils.js +1 -1
- package/node/internal/pickers/wrappers/DesktopWrapper.js +2 -0
- package/node/internal/pickers/wrappers/WrapperVariantContext.js +1 -1
- package/node/useAutocomplete/index.js +4 -4
- package/package.json +9 -9
- package/Masonry/MasonryContext.js +0 -12
- package/MasonryItem/MasonryItem.d.ts +0 -49
- package/MasonryItem/MasonryItem.js +0 -196
- package/MasonryItem/index.d.ts +0 -5
- package/MasonryItem/index.js +0 -3
- package/MasonryItem/masonryItemClasses.d.ts +0 -8
- package/MasonryItem/masonryItemClasses.js +0 -6
- package/MasonryItem/package.json +0 -6
- package/legacy/Masonry/MasonryContext.js +0 -12
- package/legacy/MasonryItem/MasonryItem.js +0 -201
- package/legacy/MasonryItem/index.js +0 -3
- package/legacy/MasonryItem/masonryItemClasses.js +0 -6
- package/modern/Masonry/MasonryContext.js +0 -12
- package/modern/MasonryItem/MasonryItem.js +0 -196
- package/modern/MasonryItem/index.js +0 -3
- package/modern/MasonryItem/masonryItemClasses.js +0 -6
- package/node/Masonry/MasonryContext.js +0 -24
- package/node/MasonryItem/MasonryItem.js +0 -220
- package/node/MasonryItem/index.js +0 -42
- package/node/MasonryItem/masonryItemClasses.js +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@date-io/date-fns';
|
|
1
|
+
export { default } from '@date-io/date-fns';
|
package/AdapterDayjs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@date-io/dayjs';
|
|
1
|
+
export { default } from '@date-io/dayjs';
|
package/AdapterLuxon/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@date-io/luxon';
|
|
1
|
+
export { default } from '@date-io/luxon';
|
package/AdapterMoment/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@date-io/moment';
|
|
1
|
+
export { default } from '@date-io/moment';
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,256 @@
|
|
|
1
1
|
### [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.0.6
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.0.5..master -->
|
|
6
|
+
|
|
7
|
+
_Oct 27, 2021_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔧 Fix reported TypeScript issues on the `@mui/system` package because some packages were not released
|
|
12
|
+
|
|
13
|
+
### `@mui/material@5.0.6`
|
|
14
|
+
|
|
15
|
+
- ​<!-- 4 -->[Autocomplete] Fix `clearOnBlur` prop (#29208) @hbjORbj
|
|
16
|
+
- ​<!-- 2 -->[Rating] Remove z-index from decimal stars (#29295) @williamhaley
|
|
17
|
+
|
|
18
|
+
### `@mui/system@5.0.6`
|
|
19
|
+
|
|
20
|
+
- ​<!-- 5 -->[system] Fix various issues reported by using @mui/styled-engine-sc (#29035) @mnajdova
|
|
21
|
+
- ​<!-- 1 -->[system] Fix executing server-side Emotion component as function interpolation (#29290) @Andarist
|
|
22
|
+
|
|
23
|
+
### Docs
|
|
24
|
+
|
|
25
|
+
- ​<!-- 3 -->[blog] Q3 2021 Update (#28970) @oliviertassinari
|
|
26
|
+
|
|
27
|
+
All contributors of this release in alphabetical order: @Andarist, @hbjORbj, @oliviertassinari, @williamhaley
|
|
28
|
+
|
|
29
|
+
## 5.0.5
|
|
30
|
+
|
|
31
|
+
<!-- generated comparing v5.0.4..master -->
|
|
32
|
+
|
|
33
|
+
_Oct 26, 2021_
|
|
34
|
+
|
|
35
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
36
|
+
|
|
37
|
+
- 🔧 Implement `Masonry` using Flexbox by @hbjORbj.
|
|
38
|
+
- 🧪 Add three components to `@mui/core` by @rebeccahongsf and @hbjORbj.
|
|
39
|
+
|
|
40
|
+
### `@mui/codemod@5.0.5`
|
|
41
|
+
|
|
42
|
+
- ​<!-- 38 -->[codemod] Support new package name in `link-underline-hover` transformer (#29214) @siriwatknp
|
|
43
|
+
|
|
44
|
+
### `@mui/core@5.0.0-alpha.52`
|
|
45
|
+
|
|
46
|
+
- ​<!-- 39 -->[ClickAwayListener] Move to the core package (#29186) @hbjORbj
|
|
47
|
+
- ​<!-- 13 -->[Popper] Move from mui-material to mui-core (#28923) @rebeccahongsf
|
|
48
|
+
- ​<!-- 04 -->[TextareaAutosize] Move to the core package (#29148) @hbjORbj
|
|
49
|
+
|
|
50
|
+
### `@mui/lab@5.0.0-alpha.52`
|
|
51
|
+
|
|
52
|
+
- ​<!-- 16 -->[Masonry] Improve demo styles (#29218) @hbjORbj
|
|
53
|
+
- ​<!-- 15 -->[Masonry] Implement Masonry using Flexbox (#28059) @hbjORbj
|
|
54
|
+
|
|
55
|
+
### `@mui/icons@5.0.5`
|
|
56
|
+
|
|
57
|
+
- ​<!-- 19 -->[icons] Add TipsAndUpdates icon (#29004) @hbjORbj
|
|
58
|
+
|
|
59
|
+
### `@mui/material@5.0.5`
|
|
60
|
+
|
|
61
|
+
- ​<!-- 40 -->[CardMedia] Apply specified `img` role instead of custom `image` role (#29172) @eps1lon
|
|
62
|
+
- ​<!-- 32 -->[CSSBaseline] Remove incorrect @deprecated annotation (#29069) @adamfitzgibbon
|
|
63
|
+
- ​<!-- 20 -->[Grid] Support custom columns with nested grid (#28743) @Devesh21700Kumar
|
|
64
|
+
- ​<!-- 18 -->[InputBase] Remove wrong theme overriding with MUI's default theme (#29157) @hbjORbj
|
|
65
|
+
- ​<!-- 17 -->[LoadingButton] Fix `fullWidth` styling (#28652) @nikitabobers
|
|
66
|
+
- ​<!-- 16 -->[Popper] make Popper display:none whenever it's closed (#29233) @adamfitzgibbon
|
|
67
|
+
- ​<!-- 14 -->[Menu] Reduce min-height & padding in menu-item with dense property (#29180) @jatinsandilya
|
|
68
|
+
- ​<!-- 07 -->[Tab] `iconPosition` prop added in Tab (#28764) @deepanshu2506
|
|
69
|
+
- ​<!-- 03 -->[Tooltip] Correct inconsistent prop precedence (#29132) @michaldudak
|
|
70
|
+
|
|
71
|
+
### `@mui/system@5.0.5`
|
|
72
|
+
|
|
73
|
+
- ​<!-- 11 -->[system] Allow function type for `sx` prop (#29198) @hbjORbj
|
|
74
|
+
- ​<!-- 10 -->[system] Fix various issues reported by using @mui/styled-engine-sc (#29035) @mnajdova
|
|
75
|
+
- ​<!-- 09 -->[system] Fix `colorScheme` conflict between application (#29139) @siriwatknp
|
|
76
|
+
- ​<!-- 08 -->[system] Add `unstable_createCssVarsProvider` api (#28965) @siriwatknp
|
|
77
|
+
|
|
78
|
+
### Documentation
|
|
79
|
+
|
|
80
|
+
- ​<!-- 31 -->[docs] Fix path to `DataGrid` CSV export options page (#29220) @DanailH
|
|
81
|
+
- ​<!-- 30 -->[docs] Give anonymous components a name (#29189) @eps1lon
|
|
82
|
+
- ​<!-- 29 -->[docs] Add deploy context variables (#29195) @siriwatknp
|
|
83
|
+
- ​<!-- 28 -->[docs] Add MUI packages explanation (#29073) @siriwatknp
|
|
84
|
+
- ​<!-- 27 -->[docs] Fix typo in CSP policy (#29187) @JuliaNeumann
|
|
85
|
+
- ​<!-- 26 -->[docs] Dark mode conditional content rendering (#28665) @michal-perlakowski
|
|
86
|
+
- ​<!-- 25 -->[docs] Fix ClassNameGenerator introduced version #29177 @siriwatknp
|
|
87
|
+
- ​<!-- 24 -->[docs] Add missing `justifyContent` values and update box styling (#29117) @omarmosid
|
|
88
|
+
- ​<!-- 23 -->[docs] Make landing page hero section scrollable (#29141) @waxidiotic
|
|
89
|
+
- ​<!-- 22 -->[docs] Discourage importing different bundles directly (#29133) @eps1lon
|
|
90
|
+
- ​<!-- 21 -->[docs] Update module augmentation reference url (#29064) @gnowland
|
|
91
|
+
- ​<!-- 12 -->[pricing] Add tooltip to pricing icon (#28959) @siriwatknp
|
|
92
|
+
- ​<!-- 07 -->[Team] Add Alexandre in the about page (#29289)
|
|
93
|
+
- ​<!-- 02 -->[website] Fix status label overflow in AdvancedShowcase (#29143) @LorenzHenk
|
|
94
|
+
- ​<!-- 01 -->[website] Update legacy logos (#28908) @michaldudak
|
|
95
|
+
|
|
96
|
+
### Core
|
|
97
|
+
|
|
98
|
+
- ​<!-- 37 -->[core] Order repro methods by preference (#29156) @eps1lon
|
|
99
|
+
- ​<!-- 36 -->[core] Remove unnecessary usages of `useEventCallback` (#28910) @NMinhNguyen
|
|
100
|
+
- ​<!-- 35 -->[core] add `unstable_ClassNameGenerator` API (#29051) @siriwatknp
|
|
101
|
+
- ​<!-- 34 -->[core] Fix issues when using styled-components (#29048) @mnajdova
|
|
102
|
+
- ​<!-- 33 -->[core] replace hard-coded classname with classes (#29070) @siriwatknp
|
|
103
|
+
- ​<!-- 06 -->[test] Add documentation for visual regression tests (#29154) @eps1lon
|
|
104
|
+
- ​<!-- 05 -->[test] Enable "missing act" warnings using new proposal (#29167) @eps1lon
|
|
105
|
+
|
|
106
|
+
All contributors of this release in alphabetical order: @adamfitzgibbon, @DanailH, @deepanshu2506, @Devesh21700Kumar, @eps1lon, @gnowland, @hbjORbj, @jatinsandilya, @JuliaNeumann, @LorenzHenk, @michal-perlakowski, @michaldudak, @mnajdova, @nikitabobers, @NMinhNguyen, @omarmosid, @rebeccahongsf, @siriwatknp, @waxidiotic
|
|
107
|
+
|
|
108
|
+
## 5.0.4
|
|
109
|
+
|
|
110
|
+
<!-- generated comparing v5.0.3..master -->
|
|
111
|
+
|
|
112
|
+
_Oct 14, 2021_
|
|
113
|
+
|
|
114
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
115
|
+
|
|
116
|
+
- 🧪 Added `UnstyledInput` and `useInput` hook in the the first component in @mui/core package @michaldudak (#28053)
|
|
117
|
+
- 🐛 Fixed many bugs and improved the documentation 📚.
|
|
118
|
+
|
|
119
|
+
### `@mui/material@5.0.4`
|
|
120
|
+
|
|
121
|
+
- ​<!-- 31 -->[Chip] disable ripple only if onDelete is present. (#29034) @mottox2
|
|
122
|
+
- ​<!-- 06 -->[Pagination] Fix clicking on `...` triggering `onChange` with page value `null` (#28884) @ZeeshanTamboli
|
|
123
|
+
- ​<!-- 04 -->[Tabs] Alternative way to disable ":first-child is unsafe" error (#28982) @hbjORbj
|
|
124
|
+
- ​<!-- 03 -->[Tabs] Fix ":first-child is potentially unsafe" error (#28890) @hbjORbj
|
|
125
|
+
- ​<!-- 01 -->[transitions] Mark `children` as required where nullish `children` would crash at runtime (#29028) @eps1lon
|
|
126
|
+
|
|
127
|
+
### `@mui/system@5.0.4`
|
|
128
|
+
|
|
129
|
+
- ​<!-- 05 -->[system] Update typing for `style` function (#28744) @hbjORbj
|
|
130
|
+
|
|
131
|
+
### `@mui/core@5.0.0-alpha.51`
|
|
132
|
+
|
|
133
|
+
- ​<!-- 07 -->[InputUnstyled] Create unstyled input and useInput hook (#28053) @michaldudak
|
|
134
|
+
|
|
135
|
+
### `@mui/lab@5.0.0-alpha.51`
|
|
136
|
+
|
|
137
|
+
- ​<!-- 25 -->[DesktopDatePicker] add Paper props to pass down to Paper component (#28865) @amen-souissi
|
|
138
|
+
|
|
139
|
+
### Docs
|
|
140
|
+
|
|
141
|
+
- ​<!-- 24 -->[docs] Add JSDoc to `theme.breakpoints` (#29039) @eps1lon
|
|
142
|
+
- ​<!-- 23 -->[docs] Rename broken package names in docs pointing to `@mui/material` (#29006) @visualfanatic
|
|
143
|
+
- ​<!-- 22 -->[docs] Add troubleshooting guide for unexpected styles (#28907) @mnajdova
|
|
144
|
+
- ​<!-- 21 -->[docs] Fix issues reported by ahref (#28986) @mnajdova
|
|
145
|
+
- ​<!-- 20 -->[docs] Remove json translations for dropped locales (#28987) @mnajdova
|
|
146
|
+
- ​<!-- 19 -->[docs] Fix type signature of renderGroup in Autocomplete (#28876) @tanyabouman
|
|
147
|
+
- ​<!-- 18 -->[docs] Minor typo in v4-v5 migration docs (#28995) @kgregory
|
|
148
|
+
- ​<!-- 17 -->[docs] Add `mui-image` related project (#28621) @benmneb
|
|
149
|
+
- ​<!-- 16 -->[docs] Update Getting Started Templates' Source URIs (#28929) @epodol
|
|
150
|
+
- ​<!-- 15 -->[docs] Improve search experience (#28801) @siriwatknp
|
|
151
|
+
- ​<!-- 14 -->[docs] Fix demo of the responsive drawer (#28226) @goncalovf
|
|
152
|
+
- ​<!-- 13 -->[docs] Fix global theme link demo (#28974) @ZeeshanTamboli
|
|
153
|
+
- ​<!-- 12 -->[docs] Update box example to use 'backgroundColor' rather than 'bgColor' (#28958) @Jareechang
|
|
154
|
+
- ​<!-- 11 -->[docs] corrected `Box` import for `sx-prop` example (#28873) @phudekar
|
|
155
|
+
- ​<!-- 10 -->[docs] Fix footnote ID links in CONTRIBUTING.md (#28849) @officialpiyush
|
|
156
|
+
- ​<!-- 09 -->[docs] Fix color & density playground (#28803) @siriwatknp
|
|
157
|
+
- ​<!-- 08 -->[docs] Improve visibility of styled engine configuration section in installation guide (#28903) @Jareechang
|
|
158
|
+
|
|
159
|
+
### Core
|
|
160
|
+
|
|
161
|
+
- ​<!-- 30 -->[core] Prevent yarn cache growing infinitely (#29040) @eps1lon
|
|
162
|
+
- ​<!-- 29 -->[core] Update browserslist (#29025) @eps1lon
|
|
163
|
+
- ​<!-- 28 -->[core] Update `peerDependencies` to require `latest` instead of `next` (#29007) @eps1lon
|
|
164
|
+
- ​<!-- 27 -->[core] Increase memory limit for size:snapshot (#29005) @eps1lon
|
|
165
|
+
- ​<!-- 26 -->[core] Init `private` Joy package (#28957) @siriwatknp
|
|
166
|
+
- ​<!-- 02 -->[test] Remove a11y snapshot tests (#28887) @eps1lon
|
|
167
|
+
|
|
168
|
+
All contributors of this release in alphabetical order: @amen-souissi, @benmneb, @epodol, @eps1lon, @goncalovf, @hbjORbj, @Jareechang, @kgregory, @michaldudak, @mnajdova, @mottox2, @officialpiyush, @phudekar, @siriwatknp, @tanyabouman, @visualfanatic, @ZeeshanTamboli
|
|
169
|
+
|
|
170
|
+
## 5.0.3
|
|
171
|
+
|
|
172
|
+
<!-- generated comparing v5.0.2..master -->
|
|
173
|
+
|
|
174
|
+
_Oct 7, 2021_
|
|
175
|
+
|
|
176
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
177
|
+
|
|
178
|
+
- 🧪 Created the first component in @mui/material-next - our v6 prototype package.
|
|
179
|
+
- 🐛 Fixed many bugs and improved the documentation 📚.
|
|
180
|
+
|
|
181
|
+
### `@mui/material@5.0.3`
|
|
182
|
+
|
|
183
|
+
- ​<!-- 10 -->[Stack] Add props & variants types in the theme (#28843) @mnajdova
|
|
184
|
+
- ​<!-- 12 -->[InputLabel] Fix condition for applying formControl overrides (#28707) @yevheniiminin
|
|
185
|
+
- ​<!-- 05 -->[Tooltip] Allow overriding internal components and their props (#28692) @michaldudak
|
|
186
|
+
- ​<!-- 04 -->[transitions] Fix `addEndListener` not being called with the DOM node (#28715) @eps1lon
|
|
187
|
+
|
|
188
|
+
### `@mui/codemod@5.0.3`
|
|
189
|
+
|
|
190
|
+
- ​<!-- 37 -->[codemod] Fix `optimal-imports` to support v4 and v5-alpha, beta (#28812) @siriwatknp
|
|
191
|
+
|
|
192
|
+
### `@mui/system@5.0.3`
|
|
193
|
+
|
|
194
|
+
- ​<!-- 09 -->[system] Add padding/margin-block/inline to spacing (#28813) @smmoosavi
|
|
195
|
+
|
|
196
|
+
### `@mui/styled-engine-sc@5.0.3`
|
|
197
|
+
|
|
198
|
+
- ​<!-- 42 -->Don't allow styled-components APIs on mui styled function (#28807) @hbjORbj
|
|
199
|
+
|
|
200
|
+
### `@mui/core@5.0.0-alpha.50`
|
|
201
|
+
|
|
202
|
+
- ​<!-- 38 -->[ButtonUnstyled] Don't set redundant role=button (#28488) @michaldudak
|
|
203
|
+
- ​<!-- 43 -->[SliderUnstyled] Prevent unknown-prop error when using marks prop (#28868) @hbjORbj
|
|
204
|
+
|
|
205
|
+
### `@mui/lab@5.0.0-alpha.50`
|
|
206
|
+
|
|
207
|
+
- ​<!-- 11 -->[pickers] Change view even if `onViewChange` is set (#28765) @eps1lon
|
|
208
|
+
|
|
209
|
+
### `@mui/material-next@6.0.0-alpha.4`
|
|
210
|
+
|
|
211
|
+
- ​<!-- 39 -->[Button-next] Create Button in material-next (#28313) @michaldudak
|
|
212
|
+
|
|
213
|
+
### Docs
|
|
214
|
+
|
|
215
|
+
- ​<!-- 34 -->[docs] Add alike v4 default button color in migration (#28881) @siriwatknp
|
|
216
|
+
- ​<!-- 34 -->[docs] Use PNG instead of SVG for color preview (#28699) @eps1lon
|
|
217
|
+
- ​<!-- 33 -->[docs] Use client-side navigation when activating docsearch results (#28750) @eps1lon
|
|
218
|
+
- ​<!-- 32 -->[docs] Fluid icon size in icons search (#28747) @eps1lon
|
|
219
|
+
- ​<!-- 31 -->[docs] Fix the wrong import in docs grid page (#28863) @taghi-khavari
|
|
220
|
+
- ​<!-- 30 -->[docs] Fix typo in Pagination docs (#28864) @ZeeshanTamboli
|
|
221
|
+
- ​<!-- 29 -->[docs] Fix 404 links (#28710) @mnajdova
|
|
222
|
+
- ​<!-- 28 -->[docs] Fix typo in Mui CSS classname (#28725) @cacpgomes
|
|
223
|
+
- ​<!-- 27 -->[docs] Match example to codesandbox demo and update ID link (#28762) @AnilSeervi
|
|
224
|
+
- ​<!-- 26 -->[docs] Fix typo in system/box documentation (#28822) @iamsergo
|
|
225
|
+
- ​<!-- 25 -->[docs] Use HTML standards for autocomplete attributes (#28827) @epodol
|
|
226
|
+
- ​<!-- 24 -->[docs] Improve styled-components integration (#28713) @mnajdova
|
|
227
|
+
- ​<!-- 23 -->[docs] Correct Select's menu placement description (#28748) @michaldudak
|
|
228
|
+
- ​<!-- 22 -->[docs] AdapterDayJS -> AdapterDayjs (#28770) @veerreshr
|
|
229
|
+
- ​<!-- 21 -->[docs] Theme documentation, typo fix (#28805) @saeedseyfi
|
|
230
|
+
- ​<!-- 20 -->[docs] Add the last diamond sponsor (#28737) @hbjORbj
|
|
231
|
+
- ​<!-- 19 -->[docs] Fix various links in CONTRIBUTING (#28751) @AnilSeervi
|
|
232
|
+
- ​<!-- 18 -->[docs] Only add JSS to demos (#28698) @eps1lon
|
|
233
|
+
- ​<!-- 17 -->[docs] Update v5 status in release schedule (#28700) @owais635
|
|
234
|
+
- ​<!-- 16 -->[docs] Fix typo in /guides/styled-engine (#28720) @Sharry0
|
|
235
|
+
- ​<!-- 15 -->[docs] Fix typo in chip documentation (#28641) @avranju94
|
|
236
|
+
- ​<!-- 14 -->[docs] Fix versions page (#28682) @mnajdova
|
|
237
|
+
- ​<!-- 13 -->[docs] Remove legacy team page (#28646) @mnajdova
|
|
238
|
+
- ​<!-- 41 -->[website] add "React" to the hero description (#28830) @danilo-leal
|
|
239
|
+
- ​<!-- 03 -->[website] Fix constantly reloading when Russian language is set (#28869) @mnajdova
|
|
240
|
+
- ​<!-- 02 -->[website] Compress one avatar image on about us page (#28823) @hbjORbj
|
|
241
|
+
- ​<!-- 01 -->[website] Hide 'become a diamond sponsor' box on landing page (#28814) @hbjORbj
|
|
242
|
+
- ​<!-- 40 -->[website] Update Benny's profile on about us page (#28816) @hbjORbj
|
|
243
|
+
|
|
244
|
+
### Core
|
|
245
|
+
|
|
246
|
+
- ​<!-- 36 -->[core] Remove `--exact` from `release:version` (#28840) @siriwatknp
|
|
247
|
+
- ​<!-- 35 -->[core] Neglect framer from release flow (#28680) @siriwatknp
|
|
248
|
+
- ​<!-- 08 -->[test] Add a test for not allowing styled-components' APIs on mui `styled` function (#28862) @hbjORbj
|
|
249
|
+
- ​<!-- 07 -->[test] Fix instances where type tests were only passing due to object being part of ReactNode (#28804) @eps1lon
|
|
250
|
+
- ​<!-- 06 -->[test] Move ByMuiTest to test/utils (#28509) @eps1lon
|
|
251
|
+
|
|
252
|
+
All contributors of this release in alphabetical order: @AnilSeervi, @avranju94, @cacpgomes, @danilo-leal, @epodol, @eps1lon, @hbjORbj, @iamsergo, @michaldudak, @mnajdova, @owais635, @saeedseyfi, @Sharry0, @siriwatknp, @smmoosavi, @taghi-khavari, @veerreshr, @yevheniiminin, @ZeeshanTamboli
|
|
253
|
+
|
|
3
254
|
## 5.0.2
|
|
4
255
|
|
|
5
256
|
<!-- generated comparing v5.0.1..master -->
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ExportedCalendarProps } from './PickersCalendar';
|
|
3
|
-
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
|
|
4
|
-
import { ExportedCalendarHeaderProps } from './PickersCalendarHeader';
|
|
5
|
-
import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
|
|
6
|
-
import { CalendarPickerView } from './shared';
|
|
7
|
-
export interface CalendarPickerClasses {
|
|
8
|
-
/** Styles applied to the root element. */
|
|
9
|
-
root: string;
|
|
10
|
-
/** Styles applied to the transition group element. */
|
|
11
|
-
viewTransitionContainer: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type CalendarPickerClassKey = keyof CalendarPickerClasses;
|
|
14
|
-
export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>, ExportedYearPickerProps<TDate>, ExportedCalendarHeaderProps<TDate> {
|
|
15
|
-
className?: string;
|
|
16
|
-
date: TDate | null;
|
|
17
|
-
/**
|
|
18
|
-
* Default calendar month displayed when `value={null}`.
|
|
19
|
-
*/
|
|
20
|
-
defaultCalendarMonth?: TDate;
|
|
21
|
-
/**
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
disableFuture?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
disablePast?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Max selectable date. @DateIOType
|
|
31
|
-
*/
|
|
32
|
-
maxDate?: TDate;
|
|
33
|
-
/**
|
|
34
|
-
* Min selectable date. @DateIOType
|
|
35
|
-
*/
|
|
36
|
-
minDate?: TDate;
|
|
37
|
-
/**
|
|
38
|
-
* Callback fired on view change.
|
|
39
|
-
*/
|
|
40
|
-
onViewChange?: (view: CalendarPickerView) => void;
|
|
41
|
-
/**
|
|
42
|
-
* Callback fired on date change
|
|
43
|
-
*/
|
|
44
|
-
onChange: PickerOnChangeFn<TDate>;
|
|
45
|
-
/**
|
|
46
|
-
* Callback firing on month change. @DateIOType
|
|
47
|
-
*/
|
|
48
|
-
onMonthChange?: (date: TDate) => void;
|
|
49
|
-
/**
|
|
50
|
-
* Initially open view.
|
|
51
|
-
* @default 'day'
|
|
52
|
-
*/
|
|
53
|
-
openTo?: CalendarPickerView;
|
|
54
|
-
/**
|
|
55
|
-
* Disable heavy animations.
|
|
56
|
-
* @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
|
|
57
|
-
*/
|
|
58
|
-
reduceAnimations?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Component displaying when passed `loading` true.
|
|
61
|
-
* @default () => <span data-mui-test="loading-progress">...</span>
|
|
62
|
-
*/
|
|
63
|
-
renderLoading?: () => React.ReactNode;
|
|
64
|
-
/**
|
|
65
|
-
* Disable specific date. @DateIOType
|
|
66
|
-
*/
|
|
67
|
-
shouldDisableDate?: (day: TDate) => boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Controlled open view.
|
|
70
|
-
*/
|
|
71
|
-
view?: CalendarPickerView;
|
|
72
|
-
/**
|
|
73
|
-
* Views for calendar picker.
|
|
74
|
-
* @default ['year', 'day']
|
|
75
|
-
*/
|
|
76
|
-
views?: readonly CalendarPickerView[];
|
|
77
|
-
}
|
|
78
|
-
export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
|
|
79
|
-
interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
|
|
80
|
-
classes?: Partial<CalendarPickerClasses>;
|
|
81
|
-
}
|
|
82
|
-
export declare function getCalendarPickerUtilityClass(slot: string): string;
|
|
83
|
-
export declare const calendarPickerClasses: CalendarPickerClasses;
|
|
84
|
-
export declare const defaultReduceAnimations: boolean;
|
|
85
|
-
declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* Demos:
|
|
89
|
-
*
|
|
90
|
-
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
91
|
-
*
|
|
92
|
-
* API:
|
|
93
|
-
*
|
|
94
|
-
* - [CalendarPicker API](https://mui.com/api/calendar-picker/)
|
|
95
|
-
*/
|
|
96
|
-
export default _default;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ExportedCalendarProps } from './PickersCalendar';
|
|
3
|
+
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
|
|
4
|
+
import { ExportedCalendarHeaderProps } from './PickersCalendarHeader';
|
|
5
|
+
import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
|
|
6
|
+
import { CalendarPickerView } from './shared';
|
|
7
|
+
export interface CalendarPickerClasses {
|
|
8
|
+
/** Styles applied to the root element. */
|
|
9
|
+
root: string;
|
|
10
|
+
/** Styles applied to the transition group element. */
|
|
11
|
+
viewTransitionContainer: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type CalendarPickerClassKey = keyof CalendarPickerClasses;
|
|
14
|
+
export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>, ExportedYearPickerProps<TDate>, ExportedCalendarHeaderProps<TDate> {
|
|
15
|
+
className?: string;
|
|
16
|
+
date: TDate | null;
|
|
17
|
+
/**
|
|
18
|
+
* Default calendar month displayed when `value={null}`.
|
|
19
|
+
*/
|
|
20
|
+
defaultCalendarMonth?: TDate;
|
|
21
|
+
/**
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
disableFuture?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
disablePast?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Max selectable date. @DateIOType
|
|
31
|
+
*/
|
|
32
|
+
maxDate?: TDate;
|
|
33
|
+
/**
|
|
34
|
+
* Min selectable date. @DateIOType
|
|
35
|
+
*/
|
|
36
|
+
minDate?: TDate;
|
|
37
|
+
/**
|
|
38
|
+
* Callback fired on view change.
|
|
39
|
+
*/
|
|
40
|
+
onViewChange?: (view: CalendarPickerView) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback fired on date change
|
|
43
|
+
*/
|
|
44
|
+
onChange: PickerOnChangeFn<TDate>;
|
|
45
|
+
/**
|
|
46
|
+
* Callback firing on month change. @DateIOType
|
|
47
|
+
*/
|
|
48
|
+
onMonthChange?: (date: TDate) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Initially open view.
|
|
51
|
+
* @default 'day'
|
|
52
|
+
*/
|
|
53
|
+
openTo?: CalendarPickerView;
|
|
54
|
+
/**
|
|
55
|
+
* Disable heavy animations.
|
|
56
|
+
* @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
|
|
57
|
+
*/
|
|
58
|
+
reduceAnimations?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Component displaying when passed `loading` true.
|
|
61
|
+
* @default () => <span data-mui-test="loading-progress">...</span>
|
|
62
|
+
*/
|
|
63
|
+
renderLoading?: () => React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Disable specific date. @DateIOType
|
|
66
|
+
*/
|
|
67
|
+
shouldDisableDate?: (day: TDate) => boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Controlled open view.
|
|
70
|
+
*/
|
|
71
|
+
view?: CalendarPickerView;
|
|
72
|
+
/**
|
|
73
|
+
* Views for calendar picker.
|
|
74
|
+
* @default ['year', 'day']
|
|
75
|
+
*/
|
|
76
|
+
views?: readonly CalendarPickerView[];
|
|
77
|
+
}
|
|
78
|
+
export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
|
|
79
|
+
interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
|
|
80
|
+
classes?: Partial<CalendarPickerClasses>;
|
|
81
|
+
}
|
|
82
|
+
export declare function getCalendarPickerUtilityClass(slot: string): string;
|
|
83
|
+
export declare const calendarPickerClasses: CalendarPickerClasses;
|
|
84
|
+
export declare const defaultReduceAnimations: boolean;
|
|
85
|
+
declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* Demos:
|
|
89
|
+
*
|
|
90
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
91
|
+
*
|
|
92
|
+
* API:
|
|
93
|
+
*
|
|
94
|
+
* - [CalendarPicker API](https://mui.com/api/calendar-picker/)
|
|
95
|
+
*/
|
|
96
|
+
export default _default;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PickersDayProps } from '../PickersDay/PickersDay';
|
|
3
|
-
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
|
|
4
|
-
import { SlideDirection, SlideTransitionProps } from './PickersSlideTransition';
|
|
5
|
-
export interface ExportedCalendarProps<TDate> extends Pick<PickersDayProps<TDate>, 'disableHighlightToday' | 'showDaysOutsideCurrentMonth' | 'allowSameDateSelection'> {
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* If `true` renders `LoadingComponent` in calendar instead of calendar view.
|
|
9
|
-
* Can be used to preload information and show it in calendar.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Calendar onChange.
|
|
15
|
-
*/
|
|
16
|
-
onChange: PickerOnChangeFn<TDate>;
|
|
17
|
-
/**
|
|
18
|
-
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
19
|
-
*/
|
|
20
|
-
renderDay?: (day: TDate, selectedDates: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element;
|
|
21
|
-
/**
|
|
22
|
-
* Component displaying when passed `loading` true.
|
|
23
|
-
* @default () => "..."
|
|
24
|
-
*/
|
|
25
|
-
renderLoading?: () => React.ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate> {
|
|
28
|
-
autoFocus?: boolean;
|
|
29
|
-
className?: string;
|
|
30
|
-
currentMonth: TDate;
|
|
31
|
-
date: TDate | [TDate | null, TDate | null] | null;
|
|
32
|
-
focusedDay: TDate | null;
|
|
33
|
-
isDateDisabled: (day: TDate) => boolean;
|
|
34
|
-
isMonthSwitchingAnimating: boolean;
|
|
35
|
-
onFocusedDayChange: (newFocusedDay: TDate) => void;
|
|
36
|
-
onMonthSwitchingAnimationEnd: () => void;
|
|
37
|
-
reduceAnimations: boolean;
|
|
38
|
-
slideDirection: SlideDirection;
|
|
39
|
-
TransitionProps?: Partial<SlideTransitionProps>;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @ignore - do not document.
|
|
43
|
-
*/
|
|
44
|
-
declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
|
|
45
|
-
export default PickersCalendar;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PickersDayProps } from '../PickersDay/PickersDay';
|
|
3
|
+
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
|
|
4
|
+
import { SlideDirection, SlideTransitionProps } from './PickersSlideTransition';
|
|
5
|
+
export interface ExportedCalendarProps<TDate> extends Pick<PickersDayProps<TDate>, 'disableHighlightToday' | 'showDaysOutsideCurrentMonth' | 'allowSameDateSelection'> {
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* If `true` renders `LoadingComponent` in calendar instead of calendar view.
|
|
9
|
+
* Can be used to preload information and show it in calendar.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Calendar onChange.
|
|
15
|
+
*/
|
|
16
|
+
onChange: PickerOnChangeFn<TDate>;
|
|
17
|
+
/**
|
|
18
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
19
|
+
*/
|
|
20
|
+
renderDay?: (day: TDate, selectedDates: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Component displaying when passed `loading` true.
|
|
23
|
+
* @default () => "..."
|
|
24
|
+
*/
|
|
25
|
+
renderLoading?: () => React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate> {
|
|
28
|
+
autoFocus?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
currentMonth: TDate;
|
|
31
|
+
date: TDate | [TDate | null, TDate | null] | null;
|
|
32
|
+
focusedDay: TDate | null;
|
|
33
|
+
isDateDisabled: (day: TDate) => boolean;
|
|
34
|
+
isMonthSwitchingAnimating: boolean;
|
|
35
|
+
onFocusedDayChange: (newFocusedDay: TDate) => void;
|
|
36
|
+
onMonthSwitchingAnimationEnd: () => void;
|
|
37
|
+
reduceAnimations: boolean;
|
|
38
|
+
slideDirection: SlideDirection;
|
|
39
|
+
TransitionProps?: Partial<SlideTransitionProps>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @ignore - do not document.
|
|
43
|
+
*/
|
|
44
|
+
declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
|
|
45
|
+
export default PickersCalendar;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import IconButton from '@mui/material/IconButton';
|
|
3
|
-
import { SlideDirection } from './PickersSlideTransition';
|
|
4
|
-
import { DateValidationProps } from '../internal/pickers/date-utils';
|
|
5
|
-
import { ExportedArrowSwitcherProps } from '../internal/pickers/PickersArrowSwitcher';
|
|
6
|
-
import { CalendarPickerView } from './shared';
|
|
7
|
-
export declare type ExportedCalendarHeaderProps<TDate> = Pick<PickersCalendarHeaderProps<TDate>, 'components' | 'componentsProps' | 'getViewSwitchingButtonText' | 'leftArrowButtonText' | 'rightArrowButtonText'>;
|
|
8
|
-
export interface PickersCalendarHeaderComponentsPropsOverides {
|
|
9
|
-
}
|
|
10
|
-
export interface PickersCalendarHeaderProps<TDate> extends ExportedArrowSwitcherProps, Omit<DateValidationProps<TDate>, 'shouldDisableDate'> {
|
|
11
|
-
/**
|
|
12
|
-
* The components used for each slot.
|
|
13
|
-
* Either a string to use a HTML element or a component.
|
|
14
|
-
* @default {}
|
|
15
|
-
*/
|
|
16
|
-
components?: ExportedArrowSwitcherProps['components'] & {
|
|
17
|
-
SwitchViewButton?: React.ElementType;
|
|
18
|
-
SwitchViewIcon?: React.ElementType;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* The props used for each slot inside.
|
|
22
|
-
* @default {}
|
|
23
|
-
*/
|
|
24
|
-
componentsProps?: ExportedArrowSwitcherProps['componentsProps'] & {
|
|
25
|
-
switchViewButton?: React.ComponentPropsWithRef<typeof IconButton> & PickersCalendarHeaderComponentsPropsOverides;
|
|
26
|
-
};
|
|
27
|
-
currentMonth: TDate;
|
|
28
|
-
views: readonly CalendarPickerView[];
|
|
29
|
-
/**
|
|
30
|
-
* Get aria-label text for switching between views button.
|
|
31
|
-
*/
|
|
32
|
-
getViewSwitchingButtonText?: (currentView: CalendarPickerView) => string;
|
|
33
|
-
onMonthChange: (date: TDate, slideDirection: SlideDirection) => void;
|
|
34
|
-
openView: CalendarPickerView;
|
|
35
|
-
reduceAnimations: boolean;
|
|
36
|
-
onViewChange?: (view: CalendarPickerView) => void;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @ignore - do not document.
|
|
40
|
-
*/
|
|
41
|
-
declare function PickersCalendarHeader<TDate>(props: PickersCalendarHeaderProps<TDate>): JSX.Element | null;
|
|
42
|
-
export default PickersCalendarHeader;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import IconButton from '@mui/material/IconButton';
|
|
3
|
+
import { SlideDirection } from './PickersSlideTransition';
|
|
4
|
+
import { DateValidationProps } from '../internal/pickers/date-utils';
|
|
5
|
+
import { ExportedArrowSwitcherProps } from '../internal/pickers/PickersArrowSwitcher';
|
|
6
|
+
import { CalendarPickerView } from './shared';
|
|
7
|
+
export declare type ExportedCalendarHeaderProps<TDate> = Pick<PickersCalendarHeaderProps<TDate>, 'components' | 'componentsProps' | 'getViewSwitchingButtonText' | 'leftArrowButtonText' | 'rightArrowButtonText'>;
|
|
8
|
+
export interface PickersCalendarHeaderComponentsPropsOverides {
|
|
9
|
+
}
|
|
10
|
+
export interface PickersCalendarHeaderProps<TDate> extends ExportedArrowSwitcherProps, Omit<DateValidationProps<TDate>, 'shouldDisableDate'> {
|
|
11
|
+
/**
|
|
12
|
+
* The components used for each slot.
|
|
13
|
+
* Either a string to use a HTML element or a component.
|
|
14
|
+
* @default {}
|
|
15
|
+
*/
|
|
16
|
+
components?: ExportedArrowSwitcherProps['components'] & {
|
|
17
|
+
SwitchViewButton?: React.ElementType;
|
|
18
|
+
SwitchViewIcon?: React.ElementType;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The props used for each slot inside.
|
|
22
|
+
* @default {}
|
|
23
|
+
*/
|
|
24
|
+
componentsProps?: ExportedArrowSwitcherProps['componentsProps'] & {
|
|
25
|
+
switchViewButton?: React.ComponentPropsWithRef<typeof IconButton> & PickersCalendarHeaderComponentsPropsOverides;
|
|
26
|
+
};
|
|
27
|
+
currentMonth: TDate;
|
|
28
|
+
views: readonly CalendarPickerView[];
|
|
29
|
+
/**
|
|
30
|
+
* Get aria-label text for switching between views button.
|
|
31
|
+
*/
|
|
32
|
+
getViewSwitchingButtonText?: (currentView: CalendarPickerView) => string;
|
|
33
|
+
onMonthChange: (date: TDate, slideDirection: SlideDirection) => void;
|
|
34
|
+
openView: CalendarPickerView;
|
|
35
|
+
reduceAnimations: boolean;
|
|
36
|
+
onViewChange?: (view: CalendarPickerView) => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @ignore - do not document.
|
|
40
|
+
*/
|
|
41
|
+
declare function PickersCalendarHeader<TDate>(props: PickersCalendarHeaderProps<TDate>): JSX.Element | null;
|
|
42
|
+
export default PickersCalendarHeader;
|