@mui/lab 5.0.0-alpha.67 → 5.0.0-alpha.68
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 +100 -28
- package/CalendarPicker/CalendarPicker.d.ts +106 -106
- package/CalendarPicker/PickersCalendar.d.ts +47 -47
- package/CalendarPicker/PickersCalendarHeader.d.ts +43 -43
- package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
- package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
- package/CalendarPicker/index.d.ts +5 -5
- package/CalendarPicker/shared.d.ts +1 -1
- package/CalendarPicker/useCalendarState.d.ts +32 -32
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -41
- package/CalendarPickerSkeleton/index.d.ts +3 -3
- package/ClockPicker/Clock.d.ts +28 -28
- package/ClockPicker/ClockNumber.d.ts +19 -19
- package/ClockPicker/ClockNumber.js +1 -0
- package/ClockPicker/ClockNumbers.d.ts +24 -24
- package/ClockPicker/ClockPicker.d.ts +121 -121
- package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
- package/ClockPicker/ClockPointer.d.ts +23 -23
- package/ClockPicker/index.d.ts +5 -5
- package/ClockPicker/shared.d.ts +5 -5
- package/DatePicker/DatePicker.d.ts +27 -27
- package/DatePicker/DatePickerToolbar.d.ts +23 -23
- package/DatePicker/index.d.ts +2 -2
- package/DatePicker/shared.d.ts +45 -45
- package/DateRangePicker/DateRangePicker.d.ts +65 -65
- package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
- package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
- package/DateRangePicker/DateRangePickerView.d.ts +44 -44
- package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
- package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
- package/DateRangePicker/RangeTypes.d.ts +8 -8
- package/DateRangePicker/date-range-manager.d.ts +14 -14
- package/DateRangePicker/index.d.ts +3 -3
- package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +27 -27
- package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
- package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
- package/DateTimePicker/index.d.ts +2 -2
- package/DateTimePicker/shared.d.ts +67 -67
- package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/LoadingButton.js +3 -1
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +53 -53
- package/MonthPicker/PickersMonth.d.ts +15 -15
- package/MonthPicker/index.d.ts +3 -3
- package/PickersDay/PickersDay.d.ts +93 -93
- package/PickersDay/index.d.ts +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +27 -27
- package/TimePicker/TimePickerToolbar.d.ts +23 -23
- package/TimePicker/index.d.ts +2 -2
- package/TimePicker/shared.d.ts +36 -36
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TreeItem/TreeItem.js +1 -1
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/PickersYear.d.ts +28 -28
- package/YearPicker/YearPicker.d.ts +44 -44
- package/YearPicker/index.d.ts +5 -5
- package/YearPicker/yearPickerClasses.d.ts +3 -3
- package/index.js +1 -1
- package/internal/pickers/KeyboardDateInput.d.ts +4 -4
- package/internal/pickers/Picker/Picker.d.ts +33 -33
- package/internal/pickers/Picker/PickerView.d.ts +3 -3
- package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
- package/internal/pickers/PickersModalDialog.d.ts +47 -47
- package/internal/pickers/PickersModalDialog.js +1 -1
- package/internal/pickers/PickersPopper.d.ts +33 -33
- package/internal/pickers/PickersToolbar.d.ts +14 -14
- package/internal/pickers/PickersToolbarButton.d.ts +13 -13
- package/internal/pickers/PickersToolbarText.d.ts +8 -8
- package/internal/pickers/PureDateInput.d.ts +80 -80
- package/internal/pickers/constants/dimensions.d.ts +4 -4
- package/internal/pickers/constants/prop-types.d.ts +1 -1
- package/internal/pickers/date-time-utils.d.ts +8 -8
- package/internal/pickers/date-utils.d.ts +52 -52
- package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
- package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
- package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
- package/internal/pickers/hooks/useOpenState.d.ts +10 -10
- package/internal/pickers/hooks/usePickerState.d.ts +38 -38
- package/internal/pickers/hooks/usePickerState.js +6 -4
- package/internal/pickers/hooks/useUtils.d.ts +7 -7
- package/internal/pickers/hooks/useValidation.d.ts +23 -23
- package/internal/pickers/hooks/useViews.d.ts +19 -19
- package/internal/pickers/text-field-helper.d.ts +11 -11
- package/internal/pickers/time-utils.d.ts +33 -33
- package/internal/pickers/typings/BasePicker.d.ts +95 -95
- package/internal/pickers/typings/Views.d.ts +1 -1
- package/internal/pickers/typings/helpers.d.ts +9 -9
- package/internal/pickers/utils.d.ts +7 -7
- package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
- package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
- package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
- package/internal/pickers/wrappers/PickerStaticWrapper.d.ts +21 -21
- package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
- package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
- package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Time.d.ts +7 -7
- package/legacy/ClockPicker/ClockNumber.js +1 -0
- package/legacy/LoadingButton/LoadingButton.js +3 -1
- package/legacy/TreeItem/TreeItem.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/PickersModalDialog.js +1 -1
- package/legacy/internal/pickers/hooks/usePickerState.js +11 -6
- package/modern/ClockPicker/ClockNumber.js +1 -0
- package/modern/LoadingButton/LoadingButton.js +3 -1
- package/modern/TreeItem/TreeItem.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internal/pickers/PickersModalDialog.js +1 -1
- package/modern/internal/pickers/hooks/usePickerState.js +6 -4
- package/node/ClockPicker/ClockNumber.js +1 -0
- package/node/LoadingButton/LoadingButton.js +3 -1
- package/node/TreeItem/TreeItem.js +1 -1
- package/node/index.js +1 -1
- package/node/internal/pickers/PickersModalDialog.js +1 -1
- package/node/internal/pickers/hooks/usePickerState.js +6 -4
- package/package.json +7 -7
|
@@ -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,77 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.4.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.4.0..master -->
|
|
6
|
+
|
|
7
|
+
_Feb 8, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- ♿️ Snackbar messages are now announced by NVDA when using Firefox (#30774) @eps1lon
|
|
12
|
+
- Several 🐛 bug fixes and 📚 documentation improvements.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.4.1`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 37 -->[AvatarGroup] Enable targeting of additional Avatar when max props is passed (#30794) @mogrady88
|
|
17
|
+
- ​<!-- 36 -->[Badge] Fix showzero and invisible condition (#30899) @alisasanib
|
|
18
|
+
- ​<!-- 35 -->[ButtonBase] Expose ref to TouchRipple (#30901) @m4theushw
|
|
19
|
+
- ​<!-- 15 -->[Fab] Add support for the default theme colors (#30846) @alisasanib
|
|
20
|
+
- ​<!-- 11 -->[SelectInput] Only attach click handler to label if a labelId is passed (#30239) @johsunds
|
|
21
|
+
- ​<!-- 09 -->[Snackbar] Ensure messages are announced in NVDA+FF (#30774) @eps1lon
|
|
22
|
+
|
|
23
|
+
### `@mui/base@5.0.0-alpha.68`
|
|
24
|
+
|
|
25
|
+
- ​<!-- 10 -->[SelectUnstyled] Improve exported types (#30895) @michaldudak
|
|
26
|
+
|
|
27
|
+
### `@mui/lab@5.0.0-alpha.68`
|
|
28
|
+
|
|
29
|
+
- ​<!-- 12 -->[Pickers] Fix `onDismiss` handler in `MobileDatePicker` (#30768) @Ashish2097
|
|
30
|
+
- ​<!-- 06 -->[TimePicker] Add font family for clock numbers (#30738) @alisasanib
|
|
31
|
+
|
|
32
|
+
### `@mui/joy@5.0.0-alpha.14`
|
|
33
|
+
|
|
34
|
+
- ​<!-- 14 -->[Joy] Add `IconButton` component (#30864) @siriwatknp
|
|
35
|
+
- ​<!-- 13 -->[Joy] Use icon inside a Button (#30803) @siriwatknp
|
|
36
|
+
|
|
37
|
+
### Docs
|
|
38
|
+
|
|
39
|
+
- ​<!-- 16 -->[examples] Fix vitejs example and improve HMR (#30897) @mihailgaberov
|
|
40
|
+
- ​<!-- 33 -->[docs] Improve autocomplete "limit tags" demo (#30910) @danilo-leal
|
|
41
|
+
- ​<!-- 34 -->[docs] Sync translations with Crowdin (#30950) @l10nbot
|
|
42
|
+
- ​<!-- 38 -->[docs] Improve description of the disableRestoreFocus prop of the `TrapFocus` (#30912) @flaviendelangle
|
|
43
|
+
- ​<!-- 32 -->[docs] Remove ul with div children and replace with nav element (#30534) @joeframbach
|
|
44
|
+
- ​<!-- 31 -->[docs] Add Saleor to showcase (#30924) @cherniavskii
|
|
45
|
+
- ​<!-- 30 -->[docs] Include JSS in styling solution interoperability guide (#30736) @garronej
|
|
46
|
+
- ​<!-- 29 -->[docs] Fix contents of link-underline-hover (#30904) @pppp606
|
|
47
|
+
- ​<!-- 28 -->[docs] Fix markdown table format (#30947) @oliviertassinari
|
|
48
|
+
- ​<!-- 27 -->[docs] Add missing import to RTL guide (#30891) @CFarhad
|
|
49
|
+
- ​<!-- 26 -->[docs] Fix WithStyles import statement for @mui/styles (#30942) @altruity
|
|
50
|
+
- ​<!-- 25 -->[docs] Fix broken roadmap table (#30943) @cherniavskii
|
|
51
|
+
- ​<!-- 24 -->[docs] Fix broken URL in "Edit this page" button (#30923) @cherniavskii
|
|
52
|
+
- ​<!-- 23 -->[docs] Migrate content to the new location (#30757) @siriwatknp
|
|
53
|
+
- ​<!-- 22 -->[docs] Fix the link to the Vite.js example project (#30872) @GneyHabub
|
|
54
|
+
- ​<!-- 21 -->[docs] Clarify the minimum configuration for TypeScript (#30790) @mnajdova
|
|
55
|
+
- ​<!-- 20 -->[docs] Clarify what the name of @mui/material is (#30866) @oliviertassinari
|
|
56
|
+
- ​<!-- 19 -->[docs] Remove migration from the releases page (#30863) @mnajdova
|
|
57
|
+
- ​<!-- 18 -->[docs] Update Instructions for Google Maps Autocomplete (#30849) @kjschabra
|
|
58
|
+
- ​<!-- 17 -->[docs] Hotfix notification <b> (#30862) @siriwatknp
|
|
59
|
+
- ​<!-- 04 -->[website] Sample GA to avoid hit limit (#30919) @oliviertassinari
|
|
60
|
+
- ​<!-- 03 -->[website] Hide scrollbars of hero containers (#29474) @theiliad
|
|
61
|
+
- ​<!-- 02 -->[website] Polishing spacing and other small things (#30828) @danilo-leal
|
|
62
|
+
- ​<!-- 01 -->[website] Close the Developer Advocate role (#30867) @oliviertassinari
|
|
63
|
+
|
|
64
|
+
### Core
|
|
65
|
+
|
|
66
|
+
- ​<!-- 37 -->[core] Batch small fixes (#30952) @oliviertassinari
|
|
67
|
+
- ​<!-- 34 -->[core] Rename the GitHub org (#30944) @oliviertassinari
|
|
68
|
+
- ​<!-- 33 -->[core] Fix propTypes in components where OverridableStringUnion is used (#30682) @paales
|
|
69
|
+
- ​<!-- 08 -->[test] Codify the difference between keyup and keydown in SelectUnstyled (#30857) @eps1lon
|
|
70
|
+
- ​<!-- 07 -->[test] Fix typo (#30841) @caioagiani
|
|
71
|
+
- ​<!-- 05 -->[utils] Use built-in hook when available for useId (#30654) @eps1lon
|
|
72
|
+
|
|
73
|
+
All contributors of this release in alphabetical order: @alisasanib, @altruity, @Ashish2097, @caioagiani, @CFarhad, @cherniavskii, @danilo-leal, @eps1lon, @flaviendelangle, @garronej, @GneyHabub, @joeframbach, @johsunds, @kjschabra, @m4theushw, @michaldudak, @mihailgaberov, @mnajdova, @mogrady88, @oliviertassinari, @paales, @pppp606, @siriwatknp, @theiliad
|
|
74
|
+
|
|
3
75
|
## 5.4.0
|
|
4
76
|
|
|
5
77
|
<!-- generated comparing v5.3.1..master -->
|
|
@@ -8,7 +80,7 @@ _Feb 1, 2022_
|
|
|
8
80
|
|
|
9
81
|
A big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
|
|
10
82
|
|
|
11
|
-
- 🛠 @goncalovf added an example project using [MUI with Vite.js](https://github.com/mui
|
|
83
|
+
- 🛠 @goncalovf added an example project using [MUI with Vite.js](https://github.com/mui/material-ui/tree/master/examples/vitejs) (#28241)
|
|
12
84
|
- Number of 🐛 bug fixes and 📚 documentation improvements.
|
|
13
85
|
|
|
14
86
|
### `@mui/material@5.4.0`
|
|
@@ -486,7 +558,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
486
558
|
|
|
487
559
|
<a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
|
|
488
560
|
|
|
489
|
-
You can follow our progress with unstyled components at https://github.com/mui
|
|
561
|
+
You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
|
|
490
562
|
|
|
491
563
|
- 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
|
|
492
564
|
|
|
@@ -1460,8 +1532,8 @@ _Sep 1, 2021_
|
|
|
1460
1532
|
|
|
1461
1533
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
1462
1534
|
|
|
1463
|
-
- 🎉 Renamed packages to `@mui/*` as part of rebranding the company, following the strategy of expanding the library scope beyond Material Design. For more details about it, check the [GitHub discussion](https://github.com/mui
|
|
1464
|
-
- 🛠 Added `mui-replace` codemod for migrating `@material-ui/*` to new packages `@mui/*`. Check out this [codemod detail](https://github.com/mui
|
|
1535
|
+
- 🎉 Renamed packages to `@mui/*` as part of rebranding the company, following the strategy of expanding the library scope beyond Material Design. For more details about it, check the [GitHub discussion](https://github.com/mui/material-ui/discussions/27803).
|
|
1536
|
+
- 🛠 Added `mui-replace` codemod for migrating `@material-ui/*` to new packages `@mui/*`. Check out this [codemod detail](https://github.com/mui/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) or head to [migration guide](https://mui.com/guides/migration-v4/#preset-safe)
|
|
1465
1537
|
- 🧪 Added new `<Mansory>` component to the lab, [check it out](https://mui.com/components/masonry/). It has been crafted by our first intern, @hbjORbj 👏!
|
|
1466
1538
|
|
|
1467
1539
|
### `@mui/material@5.0.0-rc.0`
|
|
@@ -1493,7 +1565,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
1493
1565
|
|
|
1494
1566
|
> **Note**: `@mui/base` (previously `@material-ui/unstyled`) is not the same as `@material-ui/core`.
|
|
1495
1567
|
|
|
1496
|
-
We encourage you to use the [codemod](https://github.com/mui
|
|
1568
|
+
We encourage you to use the [codemod](https://github.com/mui/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) for smooth migration.
|
|
1497
1569
|
|
|
1498
1570
|
#### Changes
|
|
1499
1571
|
|
|
@@ -1561,7 +1633,7 @@ _Aug 24, 2021_
|
|
|
1561
1633
|
|
|
1562
1634
|
A big thanks to the 26 contributors who made this release possible. Here are some highlights ✨:
|
|
1563
1635
|
|
|
1564
|
-
- 🐛 Fixed a lot of bugs and regressions to get us closer to the [v5 stable release milestone](https://github.com/mui
|
|
1636
|
+
- 🐛 Fixed a lot of bugs and regressions to get us closer to the [v5 stable release milestone](https://github.com/mui/material-ui/milestone/44)
|
|
1565
1637
|
- 📚 Improved the docs and the migration guide for upgrading to v5
|
|
1566
1638
|
|
|
1567
1639
|
### `@material-ui/core@5.0.0-beta.5`
|
|
@@ -1956,7 +2028,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
1956
2028
|
|
|
1957
2029
|
<a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
|
|
1958
2030
|
|
|
1959
|
-
You can follow our progress at https://github.com/mui
|
|
2031
|
+
You can follow our progress at https://github.com/mui/material-ui/issues/27170.
|
|
1960
2032
|
|
|
1961
2033
|
- 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
|
|
1962
2034
|
You can find the new [default values](https://mui.com/customization/palette/#default-values) in the documentation.
|
|
@@ -2062,9 +2134,9 @@ _Jul 01, 2021_
|
|
|
2062
2134
|
|
|
2063
2135
|
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
2064
2136
|
|
|
2065
|
-
- 🎉 This is the first beta release of v5! A huge thanks to everyone who helped to make this happen! We're targeting the 1st of September for a stable release, and will use the next two months to polish v5, and ease the migration from v4. You can follow [the v5 stable milestone](https://github.com/mui
|
|
2137
|
+
- 🎉 This is the first beta release of v5! A huge thanks to everyone who helped to make this happen! We're targeting the 1st of September for a stable release, and will use the next two months to polish v5, and ease the migration from v4. You can follow [the v5 stable milestone](https://github.com/mui/material-ui/milestone/44) for more details. We now encourage any new projects to start on v5.
|
|
2066
2138
|
- 🚀 We have completed all the planned breaking changes.
|
|
2067
|
-
- ⚒️ We added the codemod CLI to simplify migration to v5 (#26941) @eps1lon. You can find it at [`@material-ui/codemod`](https://github.com/mui
|
|
2139
|
+
- ⚒️ We added the codemod CLI to simplify migration to v5 (#26941) @eps1lon. You can find it at [`@material-ui/codemod`](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod).
|
|
2068
2140
|
- 🐛 The majority of other changes in this release were bug fixes, test utilities and docs.
|
|
2069
2141
|
|
|
2070
2142
|
### `@material-ui/core@5.0.0-beta.0`
|
|
@@ -2073,7 +2145,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
2073
2145
|
|
|
2074
2146
|
- [Tabs] Remove unnecessary wrapper from Tab (#26926) @siriwatknp
|
|
2075
2147
|
|
|
2076
|
-
`span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui
|
|
2148
|
+
`span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui/material-ui/pull/26666).
|
|
2077
2149
|
|
|
2078
2150
|
```diff
|
|
2079
2151
|
<button class="MuiTab-root">
|
|
@@ -2086,7 +2158,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
2086
2158
|
|
|
2087
2159
|
- [BottomNavigation] Remove wrapper from BottomNavigationAction (#26923) @siriwatknp
|
|
2088
2160
|
|
|
2089
|
-
`span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui
|
|
2161
|
+
`span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui/material-ui/pull/26666).
|
|
2090
2162
|
|
|
2091
2163
|
```diff
|
|
2092
2164
|
<button class="MuiBottomNavigationAction-root">
|
|
@@ -2198,7 +2270,7 @@ _Jun 23, 2021_
|
|
|
2198
2270
|
|
|
2199
2271
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
2200
2272
|
|
|
2201
|
-
- 🚀 We have only 2 left in the [breaking changes](https://github.com/mui
|
|
2273
|
+
- 🚀 We have only 2 left in the [breaking changes](https://github.com/mui/material-ui/issues/20012). The plan to release 5.0.0-beta.0 is on July 1st and will start to promote its usage over v4.
|
|
2202
2274
|
- 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
|
|
2203
2275
|
|
|
2204
2276
|
<a href="https://mui.com/components/slider/#continuous-sliders"><img width="247" alt="" src="https://user-images.githubusercontent.com/3165635/121884800-a8808600-cd13-11eb-8cdf-e25de8f1ba73.png" style="margin: auto"></a>
|
|
@@ -2240,7 +2312,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
2240
2312
|
|
|
2241
2313
|
- ​<!-- 09 -->[theme] Improve default breakpoints (#26746) @siriwatknp
|
|
2242
2314
|
|
|
2243
|
-
The default breakpoints were changed to better match the common use cases. They also better match the Material Design guidelines. [Read more about the change](https://github.com/mui
|
|
2315
|
+
The default breakpoints were changed to better match the common use cases. They also better match the Material Design guidelines. [Read more about the change](https://github.com/mui/material-ui/issues/21902).
|
|
2244
2316
|
|
|
2245
2317
|
```diff
|
|
2246
2318
|
{
|
|
@@ -2294,7 +2366,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
2294
2366
|
|
|
2295
2367
|
- ​<!-- 14 -->[IconButton] Remove label span (#26801) @siriwatknp
|
|
2296
2368
|
|
|
2297
|
-
`span` element that wraps children has been removed. `label` classKey is also removed. More details about [this change](https://github.com/mui
|
|
2369
|
+
`span` element that wraps children has been removed. `label` classKey is also removed. More details about [this change](https://github.com/mui/material-ui/pull/26666).
|
|
2298
2370
|
|
|
2299
2371
|
```diff
|
|
2300
2372
|
<button class="MuiIconButton-root">
|
|
@@ -2415,7 +2487,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
|
|
|
2415
2487
|
|
|
2416
2488
|
- ⚒️ We've introduced a new `useTheme` and `useThemeProps` hooks in the `@material-ui/system` package.
|
|
2417
2489
|
We believe that this package can be used as a standalone styling solution for building custom design systems (#26649) @mnajdova.
|
|
2418
|
-
- 💥 Made progress with the breaking changes. We have done 105 of the 109 changes [planned](https://github.com/mui
|
|
2490
|
+
- 💥 Made progress with the breaking changes. We have done 105 of the 109 changes [planned](https://github.com/mui/material-ui/issues/20012). We are getting closer to our goal of releasing 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui/material-ui/milestone/35) for more details.
|
|
2419
2491
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
2420
2492
|
|
|
2421
2493
|
### `@material-ui/core@5.0.0-alpha.37`
|
|
@@ -2627,7 +2699,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
2627
2699
|
|
|
2628
2700
|
- 👩🎤 We have completed the migration to emotion of all the components (`@material-ui/core` and `@material-ui/lab`) @siriwatknp, @mnajdova.
|
|
2629
2701
|
- 📦 Save [10 kB gzipped](https://bundlephobia.com/package/@material-ui/core@5.0.0-alpha.34) by removing the dependency on `@material-ui/styles` (JSS) from the core and the lab (#26377, #26382, #26376) @mnajdova.
|
|
2630
|
-
- ⚒️ Add many new [codemods](https://github.com/mui
|
|
2702
|
+
- ⚒️ Add many new [codemods](https://github.com/mui/material-ui/blob/HEAD/packages/mui-codemod/README.md) to automate the migration from v4 to v5 (#24867) @mbrookes.
|
|
2631
2703
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
2632
2704
|
|
|
2633
2705
|
### `@material-ui/core@5.0.0-alpha.35`
|
|
@@ -2788,7 +2860,7 @@ _May 18, 2021_
|
|
|
2788
2860
|
|
|
2789
2861
|
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
2790
2862
|
|
|
2791
|
-
- 💥 Make progress with the breaking changes. We have done 89 of the 109 changes [planned](https://github.com/mui
|
|
2863
|
+
- 💥 Make progress with the breaking changes. We have done 89 of the 109 changes [planned](https://github.com/mui/material-ui/issues/20012). We will release 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui/material-ui/milestone/35) for more details.
|
|
2792
2864
|
- 🚀 Make progress with components migration to emotion. We have done 153 of the 168 components (almost there!)
|
|
2793
2865
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
2794
2866
|
|
|
@@ -2952,7 +3024,7 @@ _May 9, 2021_
|
|
|
2952
3024
|
|
|
2953
3025
|
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
2954
3026
|
|
|
2955
|
-
- 💥 Make progress with the breaking changes. We have done 81 of the 109 changes [planned](https://github.com/mui
|
|
3027
|
+
- 💥 Make progress with the breaking changes. We have done 81 of the 109 changes [planned](https://github.com/mui/material-ui/issues/20012). We will release 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui/material-ui/milestone/35) for more details.
|
|
2956
3028
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
2957
3029
|
|
|
2958
3030
|
### `@material-ui/core@5.0.0-alpha.33`
|
|
@@ -3457,7 +3529,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
3457
3529
|
#### Breaking changes
|
|
3458
3530
|
|
|
3459
3531
|
- [FormControl] Change default variant from standard to outlined (#24895) @petyosi
|
|
3460
|
-
Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui
|
|
3532
|
+
Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
|
|
3461
3533
|
|
|
3462
3534
|
```diff
|
|
3463
3535
|
-<FormControl value="Standard" />
|
|
@@ -3469,7 +3541,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
3469
3541
|
- [Menu] The `selectedMenu` variant will not vertically align the selected item with the anchor anymore. (#25691) @m4theushw
|
|
3470
3542
|
- [Popover] Remove the `getContentAnchorEl` prop to simplify the positioning logic. (#25691) @m4theushw
|
|
3471
3543
|
- [Select] Change default variant from standard to outlined (#24895) @petyosi
|
|
3472
|
-
Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui
|
|
3544
|
+
Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
|
|
3473
3545
|
|
|
3474
3546
|
```diff
|
|
3475
3547
|
-<Select value="Standard" />
|
|
@@ -3673,7 +3745,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
3673
3745
|
```
|
|
3674
3746
|
|
|
3675
3747
|
This feature was made possible by the recent migration to emotion.
|
|
3676
|
-
You can [find the other issues](https://github.com/mui
|
|
3748
|
+
You can [find the other issues](https://github.com/mui/material-ui/issues?q=is%3Aopen+is%3Aissue+label%3A%22component%3A+Grid%22) unlocked by the migration to emotion on the Grid component that are left to be solved.
|
|
3677
3749
|
|
|
3678
3750
|
- 👩🎤 Convert 3 components to emotion (#25541, #25516, #25521) @rajzik, @praveenkumar-kalidass, @siriwatknp.
|
|
3679
3751
|
- 📚 Migrate 8 component demo pages to the `sx`, `Stack`, and `styled` API @vicasas.
|
|
@@ -4891,7 +4963,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
4891
4963
|
|
|
4892
4964
|
- [Box] Remove deprecated props (#23716) @mnajdova
|
|
4893
4965
|
All props are now available under the `sx` prop. A deprecation will be landing in v4.
|
|
4894
|
-
Thanks to @mbrookes developers can automate the migration with a [codemod](https://github.com/mui
|
|
4966
|
+
Thanks to @mbrookes developers can automate the migration with a [codemod](https://github.com/mui/material-ui/blob/next/packages/mui-codemod/README.md#box-sx-prop).
|
|
4895
4967
|
|
|
4896
4968
|
```diff
|
|
4897
4969
|
-<Box p={2} bgColor="primary.main">
|
|
@@ -5142,9 +5214,9 @@ _Nov 14, 2020_
|
|
|
5142
5214
|
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
|
|
5143
5215
|
|
|
5144
5216
|
- 📅 Migrate the date picker to the lab (#22692) @dmtrKovalenko.
|
|
5145
|
-
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui
|
|
5217
|
+
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
|
|
5146
5218
|
|
|
5147
|
-
While the source code is currently hosted in the [main repository](https://github.com/mui
|
|
5219
|
+
While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
|
|
5148
5220
|
|
|
5149
5221
|
- 📚 Revamp the documentation for [the system](https://mui.com/system/basics/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
|
|
5150
5222
|
- 👩🎨 Upgrade emotion to v11 (#23007) @mnajdova.
|
|
@@ -5155,7 +5227,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
5155
5227
|
#### Breaking changes
|
|
5156
5228
|
|
|
5157
5229
|
- [TextField] Change default variant from standard to outlined (#23503) @mbrookes
|
|
5158
|
-
Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui
|
|
5230
|
+
Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
|
|
5159
5231
|
|
|
5160
5232
|
```diff
|
|
5161
5233
|
-<TextField value="Standard" />
|
|
@@ -5252,11 +5324,11 @@ A big thanks to the 20 contributors who made this release possible. Here are som
|
|
|
5252
5324
|
|
|
5253
5325
|
**Why an unstyled package?**
|
|
5254
5326
|
|
|
5255
|
-
While engineering teams are successfully building custom design systems by wrapping Material-UI, we [occasionally hear](https://github.com/mui
|
|
5327
|
+
While engineering teams are successfully building custom design systems by wrapping Material-UI, we [occasionally hear](https://github.com/mui/material-ui/issues/6218) that Material Design or our styling solution are something they don't need. Some teams prefer SASS, others prefer to customize the components starting from a pristine state. What all these teams have in common is that they value the features coming from the components, such as accessibility.
|
|
5256
5328
|
|
|
5257
5329
|
The unstyled package goes one step down in the abstraction layer, providing more flexibility. Angular Material introduced this approach two years ago. Today their unstyled components account for [25% of the usage](https://npm-stat.com/charts.html?package=%40angular%2Fmaterial&package=%40angular%2Fcdk&from=2017-11-03&to=2020-11-03).
|
|
5258
5330
|
|
|
5259
|
-
Another reason for introducing this package is to prepare the groundwork for a [second theme](https://github.com/mui
|
|
5331
|
+
Another reason for introducing this package is to prepare the groundwork for a [second theme](https://github.com/mui/material-ui/issues/22485) (not Material Design based).
|
|
5260
5332
|
|
|
5261
5333
|
A note on the terminology: "unstyled" means that the components have the same API as the "styled" components but come without CSS. Material-UI also contains "headless" components that exposes a hook API, e.g. [useAutocomplete](https://mui.com/components/autocomplete/#useautocomplete) or [usePagination](https://mui.com/components/pagination/#usepagination).
|
|
5262
5334
|
|
|
@@ -7312,4 +7384,4 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
7312
7384
|
|
|
7313
7385
|
## Older versions
|
|
7314
7386
|
|
|
7315
|
-
Changes before 5.x are listed in our [changelog for older versions](https://github.com/mui
|
|
7387
|
+
Changes before 5.x are listed in our [changelog for older versions](https://github.com/mui/material-ui/blob/HEAD/CHANGELOG.old.md).
|
|
@@ -1,106 +1,106 @@
|
|
|
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
|
-
* If `true`, the picker and text field are disabled.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
disableFuture?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
disablePast?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Max selectable date. @DateIOType
|
|
36
|
-
*/
|
|
37
|
-
maxDate?: TDate;
|
|
38
|
-
/**
|
|
39
|
-
* Min selectable date. @DateIOType
|
|
40
|
-
*/
|
|
41
|
-
minDate?: TDate;
|
|
42
|
-
/**
|
|
43
|
-
* Callback fired on view change.
|
|
44
|
-
*/
|
|
45
|
-
onViewChange?: (view: CalendarPickerView) => void;
|
|
46
|
-
/**
|
|
47
|
-
* Callback fired on date change
|
|
48
|
-
*/
|
|
49
|
-
onChange: PickerOnChangeFn<TDate>;
|
|
50
|
-
/**
|
|
51
|
-
* Callback firing on month change. @DateIOType
|
|
52
|
-
*/
|
|
53
|
-
onMonthChange?: (date: TDate) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Initially open view.
|
|
56
|
-
* @default 'day'
|
|
57
|
-
*/
|
|
58
|
-
openTo?: CalendarPickerView;
|
|
59
|
-
/**
|
|
60
|
-
* Make picker read only.
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
readOnly?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Disable heavy animations.
|
|
66
|
-
* @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
|
|
67
|
-
*/
|
|
68
|
-
reduceAnimations?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Component displaying when passed `loading` true.
|
|
71
|
-
* @default () => <span data-mui-test="loading-progress">...</span>
|
|
72
|
-
*/
|
|
73
|
-
renderLoading?: () => React.ReactNode;
|
|
74
|
-
/**
|
|
75
|
-
* Disable specific date. @DateIOType
|
|
76
|
-
*/
|
|
77
|
-
shouldDisableDate?: (day: TDate) => boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Controlled open view.
|
|
80
|
-
*/
|
|
81
|
-
view?: CalendarPickerView;
|
|
82
|
-
/**
|
|
83
|
-
* Views for calendar picker.
|
|
84
|
-
* @default ['year', 'day']
|
|
85
|
-
*/
|
|
86
|
-
views?: readonly CalendarPickerView[];
|
|
87
|
-
}
|
|
88
|
-
export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
|
|
89
|
-
interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
|
|
90
|
-
classes?: Partial<CalendarPickerClasses>;
|
|
91
|
-
}
|
|
92
|
-
export declare function getCalendarPickerUtilityClass(slot: string): string;
|
|
93
|
-
export declare const calendarPickerClasses: CalendarPickerClasses;
|
|
94
|
-
export declare const defaultReduceAnimations: boolean;
|
|
95
|
-
declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* Demos:
|
|
99
|
-
*
|
|
100
|
-
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
101
|
-
*
|
|
102
|
-
* API:
|
|
103
|
-
*
|
|
104
|
-
* - [CalendarPicker API](https://mui.com/api/calendar-picker/)
|
|
105
|
-
*/
|
|
106
|
-
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
|
+
* If `true`, the picker and text field are disabled.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
disableFuture?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
disablePast?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Max selectable date. @DateIOType
|
|
36
|
+
*/
|
|
37
|
+
maxDate?: TDate;
|
|
38
|
+
/**
|
|
39
|
+
* Min selectable date. @DateIOType
|
|
40
|
+
*/
|
|
41
|
+
minDate?: TDate;
|
|
42
|
+
/**
|
|
43
|
+
* Callback fired on view change.
|
|
44
|
+
*/
|
|
45
|
+
onViewChange?: (view: CalendarPickerView) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Callback fired on date change
|
|
48
|
+
*/
|
|
49
|
+
onChange: PickerOnChangeFn<TDate>;
|
|
50
|
+
/**
|
|
51
|
+
* Callback firing on month change. @DateIOType
|
|
52
|
+
*/
|
|
53
|
+
onMonthChange?: (date: TDate) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Initially open view.
|
|
56
|
+
* @default 'day'
|
|
57
|
+
*/
|
|
58
|
+
openTo?: CalendarPickerView;
|
|
59
|
+
/**
|
|
60
|
+
* Make picker read only.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
readOnly?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Disable heavy animations.
|
|
66
|
+
* @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
|
|
67
|
+
*/
|
|
68
|
+
reduceAnimations?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Component displaying when passed `loading` true.
|
|
71
|
+
* @default () => <span data-mui-test="loading-progress">...</span>
|
|
72
|
+
*/
|
|
73
|
+
renderLoading?: () => React.ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Disable specific date. @DateIOType
|
|
76
|
+
*/
|
|
77
|
+
shouldDisableDate?: (day: TDate) => boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Controlled open view.
|
|
80
|
+
*/
|
|
81
|
+
view?: CalendarPickerView;
|
|
82
|
+
/**
|
|
83
|
+
* Views for calendar picker.
|
|
84
|
+
* @default ['year', 'day']
|
|
85
|
+
*/
|
|
86
|
+
views?: readonly CalendarPickerView[];
|
|
87
|
+
}
|
|
88
|
+
export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
|
|
89
|
+
interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
|
|
90
|
+
classes?: Partial<CalendarPickerClasses>;
|
|
91
|
+
}
|
|
92
|
+
export declare function getCalendarPickerUtilityClass(slot: string): string;
|
|
93
|
+
export declare const calendarPickerClasses: CalendarPickerClasses;
|
|
94
|
+
export declare const defaultReduceAnimations: boolean;
|
|
95
|
+
declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* Demos:
|
|
99
|
+
*
|
|
100
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
101
|
+
*
|
|
102
|
+
* API:
|
|
103
|
+
*
|
|
104
|
+
* - [CalendarPicker API](https://mui.com/api/calendar-picker/)
|
|
105
|
+
*/
|
|
106
|
+
export default _default;
|
|
@@ -1,47 +1,47 @@
|
|
|
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
|
-
disabled?: boolean;
|
|
33
|
-
focusedDay: TDate | null;
|
|
34
|
-
isDateDisabled: (day: TDate) => boolean;
|
|
35
|
-
isMonthSwitchingAnimating: boolean;
|
|
36
|
-
onFocusedDayChange: (newFocusedDay: TDate) => void;
|
|
37
|
-
onMonthSwitchingAnimationEnd: () => void;
|
|
38
|
-
readOnly?: boolean;
|
|
39
|
-
reduceAnimations: boolean;
|
|
40
|
-
slideDirection: SlideDirection;
|
|
41
|
-
TransitionProps?: Partial<SlideTransitionProps>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @ignore - do not document.
|
|
45
|
-
*/
|
|
46
|
-
declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
|
|
47
|
-
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
|
+
disabled?: boolean;
|
|
33
|
+
focusedDay: TDate | null;
|
|
34
|
+
isDateDisabled: (day: TDate) => boolean;
|
|
35
|
+
isMonthSwitchingAnimating: boolean;
|
|
36
|
+
onFocusedDayChange: (newFocusedDay: TDate) => void;
|
|
37
|
+
onMonthSwitchingAnimationEnd: () => void;
|
|
38
|
+
readOnly?: boolean;
|
|
39
|
+
reduceAnimations: boolean;
|
|
40
|
+
slideDirection: SlideDirection;
|
|
41
|
+
TransitionProps?: Partial<SlideTransitionProps>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @ignore - do not document.
|
|
45
|
+
*/
|
|
46
|
+
declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
|
|
47
|
+
export default PickersCalendar;
|