@mui/lab 5.0.0-alpha.62 → 5.0.0-alpha.66
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/CHANGELOG.md +240 -33
- package/ClockPicker/ClockPicker.js +4 -1
- package/DatePicker/DatePicker.js +5 -1
- package/DateRangePicker/DateRangePicker.js +5 -1
- package/DateTimePicker/DateTimePicker.js +5 -1
- package/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/Masonry/Masonry.js +12 -34
- package/MobileDatePicker/MobileDatePicker.js +5 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/README.md +4 -4
- package/StaticDatePicker/StaticDatePicker.js +5 -1
- package/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/index.js +1 -1
- package/internal/pickers/PickersToolbarText.d.ts +1 -1
- package/internal/pickers/PureDateInput.js +6 -4
- package/legacy/ClockPicker/ClockPicker.js +4 -1
- package/legacy/DatePicker/DatePicker.js +5 -1
- package/legacy/DateRangePicker/DateRangePicker.js +5 -1
- package/legacy/DateTimePicker/DateTimePicker.js +5 -1
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/legacy/Masonry/Masonry.js +12 -34
- package/legacy/MobileDatePicker/MobileDatePicker.js +5 -1
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +5 -1
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/PureDateInput.js +6 -4
- package/legacy/internal/pickers/test-utils.js +2 -1
- package/modern/ClockPicker/ClockPicker.js +4 -1
- package/modern/DatePicker/DatePicker.js +5 -1
- package/modern/DateRangePicker/DateRangePicker.js +5 -1
- package/modern/DateTimePicker/DateTimePicker.js +5 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/modern/Masonry/Masonry.js +12 -30
- package/modern/MobileDatePicker/MobileDatePicker.js +5 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +5 -1
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/modern/index.js +1 -1
- package/modern/internal/pickers/PureDateInput.js +6 -4
- package/node/ClockPicker/ClockPicker.js +4 -1
- package/node/DatePicker/DatePicker.js +5 -1
- package/node/DateRangePicker/DateRangePicker.js +5 -1
- package/node/DateTimePicker/DateTimePicker.js +5 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/node/Masonry/Masonry.js +12 -34
- package/node/MobileDatePicker/MobileDatePicker.js +5 -1
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/node/StaticDatePicker/StaticDatePicker.js +5 -1
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/node/index.js +1 -1
- package/node/internal/pickers/PureDateInput.js +6 -4
- package/package.json +7 -7
- package/themeAugmentation/components.d.ts +99 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,207 @@
|
|
|
1
|
-
|
|
1
|
+
# [Versions](https://mui.com/versions/)
|
|
2
|
+
|
|
3
|
+
## 5.3.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.3.0..master -->
|
|
6
|
+
|
|
7
|
+
_Jan 24, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🛠 @mnajdova added interoperability guide for using Tailwind CSS (#30700)
|
|
12
|
+
- A meaningful number of 🐛 bug fixes and 📚 documentation improvements.
|
|
13
|
+
|
|
14
|
+
### `@mui/icons-material@5.3.1`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 04 -->[icons] Fix naming typos (#30512) @MrHBS
|
|
17
|
+
- ​<!-- 03 -->[icons] Makes material-icons work with Joy (#30681) @siriwatknp
|
|
18
|
+
|
|
19
|
+
### `@mui/base@5.0.0-alpha.66`
|
|
20
|
+
|
|
21
|
+
- ​<!-- 02 -->[SliderUnstyled] Improve typings on some internal utils (#30614) @mnajdova
|
|
22
|
+
|
|
23
|
+
### Core
|
|
24
|
+
|
|
25
|
+
- ​<!-- 24 -->[core] Batch small changes (#30690) @oliviertassinari
|
|
26
|
+
- ​<!-- 23 -->[core] Add new structure to ignore list crowdin (#30608) @siriwatknp
|
|
27
|
+
- ​<!-- 22 -->[core] Correct version in package.json (#30677) @michaldudak
|
|
28
|
+
- ​<!-- 01 -->[test] Fix buildApiUtils tests on Windows (#30698) @michaldudak
|
|
29
|
+
|
|
30
|
+
### Docs
|
|
31
|
+
|
|
32
|
+
- ​<!-- 26 -->[blog] Enable blog index (#30724) @siriwatknp
|
|
33
|
+
- ​<!-- 25 -->[blog] Introducing the Row Grouping feature (#30598) @alexfauquette
|
|
34
|
+
- ​<!-- 21 -->[docs] Fix SEO crawl errors (#30733) @oliviertassinari
|
|
35
|
+
- ​<!-- 20 -->[docs] Update migration-v4.md (#30721) @ddecrulle
|
|
36
|
+
- ​<!-- 19 -->[docs] Fix migration issues detected by `ahrefs` (#30751) @siriwatknp
|
|
37
|
+
- ​<!-- 18 -->[docs] Add interoprability guide for using Tailwind CSS (#30700) @mnajdova
|
|
38
|
+
- ​<!-- 17 -->[docs] Fix typo in containedSizeMedium class (#30723) @aaneitchik
|
|
39
|
+
- ​<!-- 16 -->[docs] Hotfix the wrong URL in X marketing page (#30729) @siriwatknp
|
|
40
|
+
- ​<!-- 15 -->[docs] Post migration preparation fix (#30716) @siriwatknp
|
|
41
|
+
- ​<!-- 14 -->[docs] Update remix example to restore from error pages (#30592) @mnajdova
|
|
42
|
+
- ​<!-- 13 -->[docs] Use new URLs when enable_redirects is true (#30704) @siriwatknp
|
|
43
|
+
- ​<!-- 12 -->[docs] Add a missing bracket in the migration-v4 guide (#30616) @chaosmirage
|
|
44
|
+
- ​<!-- 11 -->[docs] Add Checkbox color prop change (#30697) @aaneitchik
|
|
45
|
+
- ​<!-- 10 -->[docs] Fix migration to have singular urls (#30695) @siriwatknp
|
|
46
|
+
- ​<!-- 09 -->[docs] Update UXPin link to new landing page (#30691) @Evomatic
|
|
47
|
+
- ​<!-- 08 -->[docs] Close user menu on click in the responsive app bar demo (#30664) @NoahYarian
|
|
48
|
+
- ​<!-- 07 -->[docs] Clear the difference between UI and React components (#29930) @oliviertassinari
|
|
49
|
+
- ​<!-- 06 -->[docs] Make Autocomplete docs gender neutral (#30679) @exequielbc
|
|
50
|
+
- ​<!-- 05 -->[docs] Update doc structure for X components (#30684) @siriwatknp
|
|
51
|
+
|
|
52
|
+
All contributors of this release in alphabetical order: @aaneitchik, @alexfauquette, @chaosmirage, @ddecrulle, @Evomatic, @exequielbc, @michaldudak, @mnajdova, @MrHBS, @NoahYarian, @oliviertassinari, @siriwatknp
|
|
53
|
+
|
|
54
|
+
## 5.3.0
|
|
55
|
+
|
|
56
|
+
<!-- generated comparing v5.2.8..master -->
|
|
57
|
+
|
|
58
|
+
_Jan 17, 2022_
|
|
59
|
+
|
|
60
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
61
|
+
|
|
62
|
+
- 🛠 @siriwatknp added support for callbacks in styleOverrides (#30524)
|
|
63
|
+
- 🧩 @ZeeshanTamboli and @VicHofs improved customization of components (#30515, #30212)
|
|
64
|
+
- 🛠 @hbjORbj fixed the use of ResizeObserver in Masonry component (#29896)
|
|
65
|
+
- 📄 @danilo-leal and @siriwatknp created our own blog home page (#30121)
|
|
66
|
+
|
|
67
|
+
### `@mui/material@5.3.0`
|
|
68
|
+
|
|
69
|
+
- [Autocomplete] Add ability to pass props to `Paper` component (#30515) @ZeeshanTamboli
|
|
70
|
+
- [Select] Add defaultOpen prop (#30212) @VicHofs
|
|
71
|
+
|
|
72
|
+
### `@mui/system@5.3.0`
|
|
73
|
+
|
|
74
|
+
- [system][box, grid, typography] `textTransform` prop should work directly on component (#30437) @hbjORbj
|
|
75
|
+
- [system] Support callback value in `styleOverrides` slot (#30524) @siriwatknp
|
|
76
|
+
|
|
77
|
+
### `@mui/lab@5.0.0-alpha.65`
|
|
78
|
+
|
|
79
|
+
- [Masonry] Observe every masonry child to trigger computation when needed (#29896) @hbjORbj
|
|
80
|
+
- [MobileDatePicker] Fix calling onOpen when readOnly is true (#30561) @alisasanib
|
|
81
|
+
|
|
82
|
+
### `@mui/codemod@5.3.0`
|
|
83
|
+
|
|
84
|
+
- [codemod] Bump `jscodeshift` to remove `colors` dependency (#30578) @siriwatknp
|
|
85
|
+
|
|
86
|
+
### `@mui/styled-engine-sc@5.3.0`
|
|
87
|
+
|
|
88
|
+
- [styled-engine-sc] Add the withConfig API to enable using the babel plugin for styled-comonents (#30589) @mnajdova
|
|
89
|
+
|
|
90
|
+
### `@mui/joy@5.0.0-alpha.11`
|
|
91
|
+
|
|
92
|
+
- [Joy] Add `SvgIcon` component (#30570) @hbjORbj
|
|
93
|
+
|
|
94
|
+
### `@mui/base@5.0.0-alpha.65`
|
|
95
|
+
|
|
96
|
+
- [SliderUnstyled] Add useSlider hook and polish (#30094) @mnajdova
|
|
97
|
+
|
|
98
|
+
### Docs
|
|
99
|
+
|
|
100
|
+
- [docs] End code block in test/README.md (#30531) @yaboi
|
|
101
|
+
- [docs] Remove redundant grouping in /components/radio-buttons/ (#30065) @eps1lon
|
|
102
|
+
- [docs] Update migration scripts and e2e tests (#30583) @siriwatknp
|
|
103
|
+
- [docs] Fix migration guides for versions older than v4 (#30595) @kkirsche
|
|
104
|
+
- [docs] Inform about specific files for DataGrid locales (#30411) @alexfauquette
|
|
105
|
+
- [docs] jss-to-tss migration advise to drop clsx in favor of cx (#30527) @garronej
|
|
106
|
+
- [docs] Fix integration with MUI X (#30593) @oliviertassinari
|
|
107
|
+
- [docs] Adding peer dependencies explanation on @mui/lab README.md (#30532) @glaucoheitor
|
|
108
|
+
- [docs] Add missing quote in migration docs (#30587) @Atralbus
|
|
109
|
+
- [docs] Update link to Doit sponsor (#30586) @oliviertassinari
|
|
110
|
+
- [docs] Add products identifier and drawer (#30283) @siriwatknp
|
|
111
|
+
- [website] Fix code button with installation command (#30622) @danilo-leal
|
|
112
|
+
- [website] Add a Blog index page (#30121) @danilo-leal
|
|
113
|
+
- [website] Migrate Twitter from @MaterialUI to @MUI_hq @oliviertassinari
|
|
114
|
+
- [website] Add Andrii to the About Us page (#30581) @cherniavskii
|
|
115
|
+
|
|
116
|
+
### Core
|
|
117
|
+
|
|
118
|
+
- [core] Revert changes to peer dependencies (#30662) @oliviertassinari
|
|
119
|
+
- [core] Renovate should not try to update node (#30659) @oliviertassinari
|
|
120
|
+
- [core] Remove dead files (#30663) @oliviertassinari
|
|
121
|
+
- [core] Fix outdated TypeScript template (#30596) @oliviertassinari
|
|
122
|
+
- [core] Remove extra `</p>` from header of README.md (#30530) @yaboi
|
|
123
|
+
- [core] Fix `docs:api` script for Windows OS (#30533) @ZeeshanTamboli
|
|
124
|
+
|
|
125
|
+
All contributors of this release in alphabetical order: @alexfauquette, @alisasanib, @Atralbus, @cherniavskii, @danilo-leal, @eps1lon, @garronej, @glaucoheitor, @hbjORbj, @kkirsche, @mnajdova, @oliviertassinari, @siriwatknp, @VicHofs, @yaboi, @ZeeshanTamboli
|
|
126
|
+
|
|
127
|
+
## 5.2.8
|
|
128
|
+
|
|
129
|
+
<!-- generated comparing v5.2.7..master -->
|
|
130
|
+
|
|
131
|
+
_Jan 10, 2022_
|
|
132
|
+
|
|
133
|
+
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
134
|
+
|
|
135
|
+
- A meaningful number of 🐛 bug fixes and 📚 documentation improvements.
|
|
136
|
+
|
|
137
|
+
### `@mui/material@5.2.8`
|
|
138
|
+
|
|
139
|
+
- ​<!-- 05 -->[TextField][inputlabel] Remove `pointer-events: none` property (#30493) @hbjORbj
|
|
140
|
+
- ​<!-- 02 -->[Slider] Add `input` slot to components and componentsProps (#30362) @alexandre-lelain
|
|
141
|
+
|
|
142
|
+
### `@mui/joy@5.0.0-alpha.10`
|
|
143
|
+
|
|
144
|
+
- ​<!-- 04 -->[Joy] Add `Typography` component (#30489) @siriwatknp
|
|
145
|
+
- ​<!-- 03 -->[Joy] Add functional `Switch` component (#30487) @siriwatknp
|
|
146
|
+
|
|
147
|
+
### Docs
|
|
148
|
+
|
|
149
|
+
- ​<!-- 18 -->[docs] Update markdown parser to remove backticks from description (#30495) @aefox
|
|
150
|
+
- ​<!-- 17 -->[docs] Fix the crash when applying custom colors (#30563) @siriwatknp
|
|
151
|
+
- ​<!-- 16 -->[docs] Location change of Sebastian (#30528) @eps1lon
|
|
152
|
+
- ​<!-- 15 -->[docs] Lint markdown in the CI (#30395) @oliviertassinari
|
|
153
|
+
- ​<!-- 14 -->[docs] Fix `componentsProps` API docs and PropTypes (#30502) @ZeeshanTamboli
|
|
154
|
+
- ​<!-- 13 -->[docs] Codemod doc for overriding styles using tss (#30499) @garronej
|
|
155
|
+
- ​<!-- 12 -->[docs] fix edge case when replacing data-grid url for migration (#30505) @siriwatknp
|
|
156
|
+
- ​<!-- 11 -->[docs] fix replace url for migration (#30503) @siriwatknp
|
|
157
|
+
- ​<!-- 10 -->[docs] Prepare scripts for migrating to new structure (#30386) @siriwatknp
|
|
158
|
+
- ​<!-- 09 -->[docs] Adjust RTL Guide demos to fully support RTL (#30387) @noam-honig
|
|
159
|
+
- ​<!-- 08 -->[docs] Move @eps1lon to community (#30473) @oliviertassinari
|
|
160
|
+
- ​<!-- 07 -->[docs] Fix typo and spelling in the-sx-prop.md (#30482) @aefox
|
|
161
|
+
- ​<!-- 06 -->[docs] More general docs polishing (#30371) @danilo-leal
|
|
162
|
+
- ​<!-- 01 -->[website] Add José on the /about page (#30492) @danilo-leal
|
|
163
|
+
|
|
164
|
+
All contributors of this release in alphabetical order: @aefox, @alexandre-lelain, @danilo-leal, @eps1lon, @garronej, @hbjORbj, @noam-honig, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
|
|
165
|
+
|
|
166
|
+
## 5.2.7
|
|
167
|
+
|
|
168
|
+
<!-- generated comparing v5.2.6..master -->
|
|
169
|
+
|
|
170
|
+
_Jan 3, 2022_
|
|
171
|
+
|
|
172
|
+
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
173
|
+
|
|
174
|
+
- 📓 Improvements on the Vietnamese (vi-VN) and Finnish (fi-FI) locales (#30426, #30442) @hckhanh @Certificate
|
|
175
|
+
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
176
|
+
|
|
177
|
+
### `@mui/material@5.2.7`
|
|
178
|
+
|
|
179
|
+
- ​<!-- 14 -->[Autocomplete] Fix calling onChange for duplicate values (#30374) @alisasanib
|
|
180
|
+
- ​<!-- 13 -->[Avatar] Fix TypeScript error on imgProps (#30255) @ahmad-reza619
|
|
181
|
+
- ​<!-- 12 -->[Badge] Fix `classes` prop TypeScript type (#30427) @ZeeshanTamboli
|
|
182
|
+
- ​<!-- 03 -->[SvgIcon] Allow viewBox to inherit from Component through inheritViewBox prop (#29954) @alex-dikusar
|
|
183
|
+
- ​<!-- 04 -->[SvgIcon] Correct API docs and code style (#30470) @michaldudak
|
|
184
|
+
|
|
185
|
+
### Docs
|
|
186
|
+
|
|
187
|
+
- ​<!-- 11 -->[blog] 2021 (#30425) @oliviertassinari
|
|
188
|
+
- ​<!-- 15 -->[docs] Fix typo on the Grid docs page (#30446) @abhi45
|
|
189
|
+
- ​<!-- 07 -->[docs] Fix `useMediaQuery` SSR example to v5 theme API (#30454) @ValentinH
|
|
190
|
+
- ​<!-- 11 -->[docs] Improve the migration guide and add examples for transforming to `tss-react` (#30388) @mnajdova
|
|
191
|
+
- ​<!-- 09 -->[docs] Make the reference to the select clearer (#30460) @boazrymland
|
|
192
|
+
- ​<!-- 08 -->[docs] Sync translations with Crowdin (#30385) @l10nbot
|
|
193
|
+
- ​<!-- 06 -->[example] Avoid double rendering in the Remix example (#30366) @mnajdova
|
|
194
|
+
- ​<!-- 05 -->[i18n] improve viVN locale (#30426) @hckhanh
|
|
195
|
+
- ​<!-- 04 -->[l10n] Improve fiFI locale (#30442) @Certificate
|
|
196
|
+
- ​<!-- 02 -->[website] Add new batch of open roles (#30282) @oliviertassinari
|
|
197
|
+
- ​<!-- 01 -->[website] Refactor page context with next router (#30020) @siriwatknp
|
|
198
|
+
|
|
199
|
+
### Core
|
|
200
|
+
|
|
201
|
+
- ​<!-- 13 -->[core] Automatically close issues that are incomplete and inactive (#30459) @oliviertassinari
|
|
202
|
+
- ​<!-- 10 -->[core] Remove contrib tweet (#30455) @oliviertassinari
|
|
203
|
+
|
|
204
|
+
All contributors of this release in alphabetical order: @abhi45, @ahmad-reza619, @alex-dikusar, @alisasanib, @boazrymland, @Certificate, @hckhanh, @l10nbot, @michaldudak, @mnajdova, @oliviertassinari, @siriwatknp, @ValentinH, @ZeeshanTamboli
|
|
2
205
|
|
|
3
206
|
## 5.2.6
|
|
4
207
|
|
|
@@ -1185,7 +1388,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
1185
1388
|
|
|
1186
1389
|
replace `@material-ui/*` prefix with `@mui/*`:
|
|
1187
1390
|
|
|
1188
|
-
```
|
|
1391
|
+
```sh
|
|
1189
1392
|
@material-ui/system -> @mui/system
|
|
1190
1393
|
@material-ui/styles -> @mui/styles
|
|
1191
1394
|
@material-ui/lab -> @mui/lab
|
|
@@ -1198,7 +1401,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
1198
1401
|
|
|
1199
1402
|
except these 3 packages that are renamed.
|
|
1200
1403
|
|
|
1201
|
-
```
|
|
1404
|
+
```sh
|
|
1202
1405
|
@material-ui/core => @mui/material // represents Material Design components.
|
|
1203
1406
|
@material-ui/icons => @mui/icons-material // represents Material Design icons.
|
|
1204
1407
|
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
|
|
@@ -2571,6 +2774,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
2571
2774
|
```
|
|
2572
2775
|
|
|
2573
2776
|
- ​<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
|
|
2777
|
+
|
|
2574
2778
|
```diff
|
|
2575
2779
|
<Autocomplete
|
|
2576
2780
|
- getOptionSelected={(option, value) => option.title === value.title}
|
|
@@ -4144,7 +4348,7 @@ All contributors of this release in alphabetical order: @artola, @CyanoFresh, @d
|
|
|
4144
4348
|
|
|
4145
4349
|
## 5.0.0-alpha.23
|
|
4146
4350
|
|
|
4147
|
-
|
|
4351
|
+
_Jan 14, 2021_
|
|
4148
4352
|
|
|
4149
4353
|
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
4150
4354
|
|
|
@@ -4259,7 +4463,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
4259
4463
|
|
|
4260
4464
|
## 5.0.0-alpha.22
|
|
4261
4465
|
|
|
4262
|
-
|
|
4466
|
+
_Jan 4, 2021_
|
|
4263
4467
|
|
|
4264
4468
|
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
4265
4469
|
|
|
@@ -4311,7 +4515,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4311
4515
|
|
|
4312
4516
|
## 5.0.0-alpha.21
|
|
4313
4517
|
|
|
4314
|
-
|
|
4518
|
+
_Dec 30, 2020_
|
|
4315
4519
|
|
|
4316
4520
|
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
4317
4521
|
|
|
@@ -4384,7 +4588,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4384
4588
|
|
|
4385
4589
|
## 5.0.0-alpha.20
|
|
4386
4590
|
|
|
4387
|
-
|
|
4591
|
+
_Dec 21, 2020_
|
|
4388
4592
|
|
|
4389
4593
|
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
4390
4594
|
|
|
@@ -4462,7 +4666,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
4462
4666
|
|
|
4463
4667
|
## 5.0.0-alpha.19
|
|
4464
4668
|
|
|
4465
|
-
|
|
4669
|
+
_Dec 13, 2020_
|
|
4466
4670
|
|
|
4467
4671
|
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
4468
4672
|
|
|
@@ -4590,7 +4794,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
|
|
|
4590
4794
|
|
|
4591
4795
|
## 5.0.0-alpha.18
|
|
4592
4796
|
|
|
4593
|
-
|
|
4797
|
+
_Dec 3, 2020_
|
|
4594
4798
|
|
|
4595
4799
|
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
4596
4800
|
|
|
@@ -4682,7 +4886,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
4682
4886
|
|
|
4683
4887
|
## 5.0.0-alpha.17
|
|
4684
4888
|
|
|
4685
|
-
|
|
4889
|
+
_Nov 23, 2020_
|
|
4686
4890
|
|
|
4687
4891
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
4688
4892
|
|
|
@@ -4849,7 +5053,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4849
5053
|
|
|
4850
5054
|
## 5.0.0-alpha.16
|
|
4851
5055
|
|
|
4852
|
-
|
|
5056
|
+
_Nov 14, 2020_
|
|
4853
5057
|
|
|
4854
5058
|
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
|
|
4855
5059
|
|
|
@@ -4953,7 +5157,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
4953
5157
|
|
|
4954
5158
|
## 5.0.0-alpha.15
|
|
4955
5159
|
|
|
4956
|
-
|
|
5160
|
+
_Nov 4, 2020_
|
|
4957
5161
|
|
|
4958
5162
|
A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
|
|
4959
5163
|
|
|
@@ -5065,7 +5269,7 @@ A big thanks to the 20 contributors who made this release possible. Here are som
|
|
|
5065
5269
|
|
|
5066
5270
|
## 5.0.0-alpha.14
|
|
5067
5271
|
|
|
5068
|
-
|
|
5272
|
+
_Oct 23, 2020_
|
|
5069
5273
|
|
|
5070
5274
|
A big thanks to the 23 contributors who made this release possible.
|
|
5071
5275
|
Here are some highlights ✨:
|
|
@@ -5116,12 +5320,14 @@ Here are some highlights ✨:
|
|
|
5116
5320
|
You can read [their migration guide](https://popper.js.org/docs/v2/migration-guide/) or the following summary:
|
|
5117
5321
|
|
|
5118
5322
|
- The CSS prefixes have changed:
|
|
5323
|
+
|
|
5119
5324
|
```diff
|
|
5120
5325
|
popper: {
|
|
5121
5326
|
zIndex: 1,
|
|
5122
5327
|
- '&[x-placement*="bottom"] $arrow': {
|
|
5123
5328
|
+ '&[data-popper-placement*="bottom"] $arrow': {
|
|
5124
5329
|
```
|
|
5330
|
+
|
|
5125
5331
|
- Method names have changed.
|
|
5126
5332
|
|
|
5127
5333
|
```diff
|
|
@@ -5236,7 +5442,7 @@ Here are some highlights ✨:
|
|
|
5236
5442
|
|
|
5237
5443
|
## 5.0.0-alpha.13
|
|
5238
5444
|
|
|
5239
|
-
|
|
5445
|
+
_Oct 17, 2020_
|
|
5240
5446
|
|
|
5241
5447
|
A big thanks to the 25 contributors who made this release possible.
|
|
5242
5448
|
Here are some highlights ✨:
|
|
@@ -5362,7 +5568,7 @@ Here are some highlights ✨:
|
|
|
5362
5568
|
|
|
5363
5569
|
## 5.0.0-alpha.12
|
|
5364
5570
|
|
|
5365
|
-
|
|
5571
|
+
_Oct 11, 2020_
|
|
5366
5572
|
|
|
5367
5573
|
A big thanks to the 45 contributors who made this release possible.
|
|
5368
5574
|
Here are some highlights ✨:
|
|
@@ -5586,7 +5792,7 @@ Here are some highlights ✨:
|
|
|
5586
5792
|
|
|
5587
5793
|
## 5.0.0-alpha.11
|
|
5588
5794
|
|
|
5589
|
-
|
|
5795
|
+
_Sep 26, 2020_
|
|
5590
5796
|
|
|
5591
5797
|
A big thanks to the 29 contributors who made this release possible.
|
|
5592
5798
|
Here are some highlights ✨:
|
|
@@ -5602,7 +5808,7 @@ Here are some highlights ✨:
|
|
|
5602
5808
|
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/basics/)).
|
|
5603
5809
|
|
|
5604
5810
|
This change has been in our roadmap for more than a year.
|
|
5605
|
-
We announced it in the [v4 release blog post](https://
|
|
5811
|
+
We announced it in the [v4 release blog post](https://mui.com/blog/material-ui-v4-is-out/) as a direction v5 would take.
|
|
5606
5812
|
|
|
5607
5813
|
- 🛠 A first iteration on the unstyled components.
|
|
5608
5814
|
|
|
@@ -5820,7 +6026,7 @@ More documentation are coming.
|
|
|
5820
6026
|
|
|
5821
6027
|
## 5.0.0-alpha.10
|
|
5822
6028
|
|
|
5823
|
-
|
|
6029
|
+
_Sep 15, 2020_
|
|
5824
6030
|
|
|
5825
6031
|
A big thanks to the 16 contributors who made this release possible.
|
|
5826
6032
|
Here are some highlights ✨:
|
|
@@ -5885,13 +6091,13 @@ Here are some highlights ✨:
|
|
|
5885
6091
|
|
|
5886
6092
|
Before:
|
|
5887
6093
|
|
|
5888
|
-
```
|
|
6094
|
+
```sh
|
|
5889
6095
|
theme.spacing(2) => 16
|
|
5890
6096
|
```
|
|
5891
6097
|
|
|
5892
6098
|
After:
|
|
5893
6099
|
|
|
5894
|
-
```
|
|
6100
|
+
```sh
|
|
5895
6101
|
theme.spacing(2) => '16px'
|
|
5896
6102
|
```
|
|
5897
6103
|
|
|
@@ -5950,7 +6156,7 @@ Here are some highlights ✨:
|
|
|
5950
6156
|
|
|
5951
6157
|
## 5.0.0-alpha.9
|
|
5952
6158
|
|
|
5953
|
-
|
|
6159
|
+
_Sep 6, 2020_
|
|
5954
6160
|
|
|
5955
6161
|
A big thanks to the 14 contributors who made this release possible.
|
|
5956
6162
|
Here are some highlights ✨:
|
|
@@ -6003,7 +6209,7 @@ Here are some highlights ✨:
|
|
|
6003
6209
|
|
|
6004
6210
|
## 5.0.0-alpha.8
|
|
6005
6211
|
|
|
6006
|
-
|
|
6212
|
+
_Aug 31, 2020_
|
|
6007
6213
|
|
|
6008
6214
|
A big thanks to the 19 contributors who made this release possible.
|
|
6009
6215
|
Here are some highlights ✨:
|
|
@@ -6179,7 +6385,7 @@ const theme = createMuiTheme({
|
|
|
6179
6385
|
|
|
6180
6386
|
## 5.0.0-alpha.7
|
|
6181
6387
|
|
|
6182
|
-
|
|
6388
|
+
_Aug 22, 2020_
|
|
6183
6389
|
|
|
6184
6390
|
A big thanks to the 22 contributors who made this release possible.
|
|
6185
6391
|
Here are some highlights ✨:
|
|
@@ -6309,7 +6515,7 @@ Here are some highlights ✨:
|
|
|
6309
6515
|
|
|
6310
6516
|
## 5.0.0-alpha.6
|
|
6311
6517
|
|
|
6312
|
-
|
|
6518
|
+
_Aug 13, 2020_
|
|
6313
6519
|
|
|
6314
6520
|
A big thanks to the 26 contributors who made this release possible.
|
|
6315
6521
|
Here are some highlights ✨:
|
|
@@ -6352,7 +6558,7 @@ Here are some highlights ✨:
|
|
|
6352
6558
|
|
|
6353
6559
|
### `@material-ui/core@v5.0.0-alpha.6`
|
|
6354
6560
|
|
|
6355
|
-
|
|
6561
|
+
#### Breaking changes
|
|
6356
6562
|
|
|
6357
6563
|
- [Avatar] Rename variant circle -> circular for consistency (#22015) @kodai3
|
|
6358
6564
|
Rename `circle` to `circular` for consistency. The possible values should be adjectives, not nouns:
|
|
@@ -6511,7 +6717,7 @@ Here are some highlights ✨:
|
|
|
6511
6717
|
+},
|
|
6512
6718
|
```
|
|
6513
6719
|
|
|
6514
|
-
|
|
6720
|
+
#### Changes
|
|
6515
6721
|
|
|
6516
6722
|
- [Avatar] Custom variant (#22139) @mnajdova
|
|
6517
6723
|
- [Badge] Add missing class key (#22095) @kodai3
|
|
@@ -6531,7 +6737,7 @@ Here are some highlights ✨:
|
|
|
6531
6737
|
|
|
6532
6738
|
### `@material-ui/lab@v5.0.0-alpha.6`
|
|
6533
6739
|
|
|
6534
|
-
|
|
6740
|
+
#### Breaking changes
|
|
6535
6741
|
|
|
6536
6742
|
- [Skeleton] Rename variant circle -> circular and rect -> rectangular for consistency (#22053) @kodai3
|
|
6537
6743
|
Rename `circle` to `circular` and `rect` to `rectangular` for consistency. The possible values should be adjectives, not nouns:
|
|
@@ -6543,7 +6749,7 @@ Here are some highlights ✨:
|
|
|
6543
6749
|
+<Skeleton variant="rectangular">
|
|
6544
6750
|
```
|
|
6545
6751
|
|
|
6546
|
-
|
|
6752
|
+
#### Changes
|
|
6547
6753
|
|
|
6548
6754
|
- [Autocomplete] Add support for "{label: string}" data type as a default for "options" (#21992) @DanailH
|
|
6549
6755
|
- [TreeView] Add disabled prop (#20133) @netochaves
|
|
@@ -6595,7 +6801,7 @@ Here are some highlights ✨:
|
|
|
6595
6801
|
|
|
6596
6802
|
## 5.0.0-alpha.5
|
|
6597
6803
|
|
|
6598
|
-
|
|
6804
|
+
_July 28, 2020_
|
|
6599
6805
|
|
|
6600
6806
|
A big thanks to the 18 contributors who made this release possible.
|
|
6601
6807
|
|
|
@@ -6666,7 +6872,7 @@ A big thanks to the 18 contributors who made this release possible.
|
|
|
6666
6872
|
|
|
6667
6873
|
## 5.0.0-alpha.4
|
|
6668
6874
|
|
|
6669
|
-
|
|
6875
|
+
_July 19, 2020_
|
|
6670
6876
|
|
|
6671
6877
|
A big thanks to the 11 contributors who made this release possible.
|
|
6672
6878
|
|
|
@@ -6708,7 +6914,7 @@ A big thanks to the 11 contributors who made this release possible.
|
|
|
6708
6914
|
|
|
6709
6915
|
## 5.0.0-alpha.3
|
|
6710
6916
|
|
|
6711
|
-
|
|
6917
|
+
_July 12, 2020_
|
|
6712
6918
|
|
|
6713
6919
|
A big thanks to the 14 contributors who made this release possible.
|
|
6714
6920
|
|
|
@@ -6757,7 +6963,7 @@ A big thanks to the 14 contributors who made this release possible.
|
|
|
6757
6963
|
|
|
6758
6964
|
## 5.0.0-alpha.2
|
|
6759
6965
|
|
|
6760
|
-
|
|
6966
|
+
_July 4, 2020_
|
|
6761
6967
|
|
|
6762
6968
|
A big thanks to the 16 contributors who made this release possible.
|
|
6763
6969
|
|
|
@@ -6819,7 +7025,7 @@ A big thanks to the 16 contributors who made this release possible.
|
|
|
6819
7025
|
|
|
6820
7026
|
## 5.0.0-alpha.1
|
|
6821
7027
|
|
|
6822
|
-
|
|
7028
|
+
_June 27, 2020_
|
|
6823
7029
|
|
|
6824
7030
|
A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
|
|
6825
7031
|
|
|
@@ -6935,6 +7141,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
6935
7141
|
```
|
|
6936
7142
|
|
|
6937
7143
|
- [Accordion] typescript: The `event` in `onChange` is no longer typed as a `React.ChangeEvent` but `React.SyntheticEvent`.
|
|
7144
|
+
|
|
6938
7145
|
```diff
|
|
6939
7146
|
-<Accordion onChange={(event: React.ChangeEvent<{}>, expanded: boolean) => {}} />
|
|
6940
7147
|
+<Accordion onChange={(event: React.SyntheticEvent, expanded: boolean) => {}} />
|
|
@@ -266,7 +266,10 @@ process.env.NODE_ENV !== "production" ? ClockPicker.propTypes
|
|
|
266
266
|
/**
|
|
267
267
|
* The props used for each slot inside.
|
|
268
268
|
*/
|
|
269
|
-
componentsProps: PropTypes.
|
|
269
|
+
componentsProps: PropTypes.shape({
|
|
270
|
+
leftArrowButton: PropTypes.object,
|
|
271
|
+
rightArrowButton: PropTypes.object
|
|
272
|
+
}),
|
|
270
273
|
|
|
271
274
|
/**
|
|
272
275
|
* Selected date @DateIOType.
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -128,7 +128,11 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
128
128
|
* The props used for each slot inside.
|
|
129
129
|
* @default {}
|
|
130
130
|
*/
|
|
131
|
-
componentsProps: PropTypes.
|
|
131
|
+
componentsProps: PropTypes.shape({
|
|
132
|
+
leftArrowButton: PropTypes.object,
|
|
133
|
+
rightArrowButton: PropTypes.object,
|
|
134
|
+
switchViewButton: PropTypes.object
|
|
135
|
+
}),
|
|
132
136
|
|
|
133
137
|
/**
|
|
134
138
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -176,7 +176,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
176
176
|
* The props used for each slot inside.
|
|
177
177
|
* @default {}
|
|
178
178
|
*/
|
|
179
|
-
componentsProps: PropTypes.
|
|
179
|
+
componentsProps: PropTypes.shape({
|
|
180
|
+
leftArrowButton: PropTypes.object,
|
|
181
|
+
rightArrowButton: PropTypes.object,
|
|
182
|
+
switchViewButton: PropTypes.object
|
|
183
|
+
}),
|
|
180
184
|
|
|
181
185
|
/**
|
|
182
186
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -140,7 +140,11 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
140
140
|
* The props used for each slot inside.
|
|
141
141
|
* @default {}
|
|
142
142
|
*/
|
|
143
|
-
componentsProps: PropTypes.
|
|
143
|
+
componentsProps: PropTypes.shape({
|
|
144
|
+
leftArrowButton: PropTypes.object,
|
|
145
|
+
rightArrowButton: PropTypes.object,
|
|
146
|
+
switchViewButton: PropTypes.object
|
|
147
|
+
}),
|
|
144
148
|
|
|
145
149
|
/**
|
|
146
150
|
* Date tab icon.
|
|
@@ -119,7 +119,11 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
119
119
|
* The props used for each slot inside.
|
|
120
120
|
* @default {}
|
|
121
121
|
*/
|
|
122
|
-
componentsProps: PropTypes.
|
|
122
|
+
componentsProps: PropTypes.shape({
|
|
123
|
+
leftArrowButton: PropTypes.object,
|
|
124
|
+
rightArrowButton: PropTypes.object,
|
|
125
|
+
switchViewButton: PropTypes.object
|
|
126
|
+
}),
|
|
123
127
|
|
|
124
128
|
/**
|
|
125
129
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -160,7 +160,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
160
160
|
* The props used for each slot inside.
|
|
161
161
|
* @default {}
|
|
162
162
|
*/
|
|
163
|
-
componentsProps: PropTypes.
|
|
163
|
+
componentsProps: PropTypes.shape({
|
|
164
|
+
leftArrowButton: PropTypes.object,
|
|
165
|
+
rightArrowButton: PropTypes.object,
|
|
166
|
+
switchViewButton: PropTypes.object
|
|
167
|
+
}),
|
|
164
168
|
|
|
165
169
|
/**
|
|
166
170
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -129,7 +129,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
129
129
|
* The props used for each slot inside.
|
|
130
130
|
* @default {}
|
|
131
131
|
*/
|
|
132
|
-
componentsProps: PropTypes.
|
|
132
|
+
componentsProps: PropTypes.shape({
|
|
133
|
+
leftArrowButton: PropTypes.object,
|
|
134
|
+
rightArrowButton: PropTypes.object,
|
|
135
|
+
switchViewButton: PropTypes.object
|
|
136
|
+
}),
|
|
133
137
|
|
|
134
138
|
/**
|
|
135
139
|
* Date tab icon.
|
package/Masonry/Masonry.js
CHANGED
|
@@ -167,40 +167,24 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
167
167
|
|
|
168
168
|
const classes = useUtilityClasses(ownerState);
|
|
169
169
|
|
|
170
|
-
const handleResize =
|
|
171
|
-
if (!
|
|
170
|
+
const handleResize = masonryChildren => {
|
|
171
|
+
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (elements[0].target.className.includes(classes.root)) {
|
|
181
|
-
var _elements$, _masonryFirstChild, _masonryFirstChild$co, _masonryFirstChild2;
|
|
182
|
-
|
|
183
|
-
masonry = elements[0].target;
|
|
184
|
-
parentWidth = elements[0].contentRect.width;
|
|
185
|
-
masonryFirstChild = ((_elements$ = elements[1]) == null ? void 0 : _elements$.target) || masonry.firstChild;
|
|
186
|
-
childWidth = ((_masonryFirstChild = masonryFirstChild) == null ? void 0 : (_masonryFirstChild$co = _masonryFirstChild.contentRect) == null ? void 0 : _masonryFirstChild$co.width) || ((_masonryFirstChild2 = masonryFirstChild) == null ? void 0 : _masonryFirstChild2.clientWidth) || 0;
|
|
187
|
-
} else {
|
|
188
|
-
var _elements$2, _masonry$contentRect;
|
|
189
|
-
|
|
190
|
-
masonryFirstChild = elements[0].target;
|
|
191
|
-
childWidth = elements[0].contentRect.width;
|
|
192
|
-
masonry = ((_elements$2 = elements[1]) == null ? void 0 : _elements$2.target) || masonryFirstChild.parentElement;
|
|
193
|
-
parentWidth = ((_masonry$contentRect = masonry.contentRect) == null ? void 0 : _masonry$contentRect.width) || masonry.clientWidth;
|
|
194
|
-
}
|
|
175
|
+
const masonry = masonryRef.current;
|
|
176
|
+
const masonryFirstChild = masonryRef.current.firstChild;
|
|
177
|
+
const parentWidth = masonry.clientWidth;
|
|
178
|
+
const firstChildWidth = masonryFirstChild.clientWidth;
|
|
195
179
|
|
|
196
|
-
if (parentWidth === 0 ||
|
|
180
|
+
if (parentWidth === 0 || firstChildWidth === 0) {
|
|
197
181
|
return;
|
|
198
182
|
}
|
|
199
183
|
|
|
200
184
|
const firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
201
185
|
const firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
202
186
|
const firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
203
|
-
const currentNumberOfColumns = Math.round(parentWidth / (
|
|
187
|
+
const currentNumberOfColumns = Math.round(parentWidth / (firstChildWidth + firstChildMarginLeft + firstChildMarginRight));
|
|
204
188
|
const columnHeights = new Array(currentNumberOfColumns).fill(0);
|
|
205
189
|
let skip = false;
|
|
206
190
|
masonry.childNodes.forEach(child => {
|
|
@@ -253,16 +237,10 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
253
237
|
return undefined;
|
|
254
238
|
}
|
|
255
239
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
// this might cause unforeseen problems in some use cases;
|
|
261
|
-
resizeObserver.observe(container);
|
|
262
|
-
|
|
263
|
-
if (container.firstChild) {
|
|
264
|
-
resizeObserver.observe(container.firstChild);
|
|
265
|
-
}
|
|
240
|
+
if (masonryRef.current) {
|
|
241
|
+
masonryRef.current.childNodes.forEach(childNode => {
|
|
242
|
+
resizeObserver.observe(childNode);
|
|
243
|
+
});
|
|
266
244
|
}
|
|
267
245
|
|
|
268
246
|
return () => resizeObserver ? resizeObserver.disconnect() : {};
|