@mui/styled-engine 5.10.8 โ 5.10.14
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 +691 -214
- package/GlobalStyles/GlobalStyles.js +0 -2
- package/StyledEngineProvider/StyledEngineProvider.js +3 -3
- package/index.js +3 -6
- package/legacy/GlobalStyles/GlobalStyles.js +2 -4
- package/legacy/StyledEngineProvider/StyledEngineProvider.js +4 -4
- package/legacy/index.js +3 -7
- package/modern/GlobalStyles/GlobalStyles.js +0 -2
- package/modern/StyledEngineProvider/StyledEngineProvider.js +3 -3
- package/modern/index.js +3 -6
- package/node/GlobalStyles/GlobalStyles.js +0 -10
- package/node/GlobalStyles/index.js +0 -2
- package/node/StyledEngineProvider/StyledEngineProvider.js +0 -12
- package/node/StyledEngineProvider/index.js +0 -2
- package/node/index.js +4 -14
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,476 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v5.10.14
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.10.13..master -->
|
|
6
|
+
|
|
7
|
+
_Nov 14, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights โจ:
|
|
10
|
+
|
|
11
|
+
- ๐ @siriwatknp added the Autocomplete component to the Joy UI (#34315)
|
|
12
|
+
- โฟ @sfavello improved the accessibility of the Material UI's Autocomplete by adding support for the Delete key (#33822)
|
|
13
|
+
- Many other ๐ bug fixes, ๐ documentation, and โ๏ธ infrastructure improvements.
|
|
14
|
+
|
|
15
|
+
### `@mui/material@5.10.14`
|
|
16
|
+
|
|
17
|
+
- [Material UI] Add `palette.background.defaultChannel` token (#35061) @siriwatknp
|
|
18
|
+
- [Autocomplete] Remove tags with the Delete key (#33822) @sfavello
|
|
19
|
+
- [IconButton] custom color causes type error (#34521) @kushagra010
|
|
20
|
+
|
|
21
|
+
### `@mui/system@5.10.14`
|
|
22
|
+
|
|
23
|
+
- [Unstable_Gridv2] sorted responsize keys based on breakpoint value (#34987) @sai6855
|
|
24
|
+
|
|
25
|
+
### `@mui/joy@5.0.0-alpha.54`
|
|
26
|
+
|
|
27
|
+
- [Joy] Export `FormControl`, `LinearProgress` and `ListSubheader` components from `@mui/joy` (#35003) @Studio384
|
|
28
|
+
- [Joy] Miscellaneous fixes (#35044) @siriwatknp
|
|
29
|
+
- [Joy] Add `Autocomplete` component (#34315) @siriwatknp
|
|
30
|
+
- [Joy] Saturate a bit the gray palette (#35148) @danilo-leal
|
|
31
|
+
- [Autocomplete][joy] Fix types (#35153) @siriwatknp
|
|
32
|
+
|
|
33
|
+
### Docs
|
|
34
|
+
|
|
35
|
+
- [blog] Fix font size of code blocks on iOS @oliviertassinari
|
|
36
|
+
- [docs] Accessibility - increase default contrastThreshold for WCAG AA compliance (#34901) @kennethbigler
|
|
37
|
+
- [docs] Correct the keepMounted section on the Drawer page (#35076) @michaldudak
|
|
38
|
+
- [docs] Fix code editor styles mismatches (#35108) @oliviertassinari
|
|
39
|
+
- [docs] Allows to access the next MUI-X (#34798) @alexfauquette
|
|
40
|
+
- [docs] Fix bugs with live edit demos (#35106) @oliviertassinari
|
|
41
|
+
- [docs] Fix `MarkdownElement` regression from adding CSS variables (#35096) @siriwatknp
|
|
42
|
+
- [docs] Add a new gold sponsor (#35089) @hbjORbj
|
|
43
|
+
- [docs] Fix scroll issue on expanded live demos (#35064) @bharatkashyap
|
|
44
|
+
- [docs] Improve alignment of the sponsors @oliviertassinari
|
|
45
|
+
- [docs] Improve code font family v2 (#35053) @oliviertassinari
|
|
46
|
+
- [docs] Upgrade to Next.js 13 (#35001) @mnajdova
|
|
47
|
+
- [docs] Fix typo in changelog @oliviertassinari
|
|
48
|
+
- [docs] Update Joy UI templates to use latest components (#35058) @siriwatknp
|
|
49
|
+
- [website] Fix design kits showcase throwing an error (#35093) @cherniavskii
|
|
50
|
+
- [website] Fix margin bug on CTA @oliviertassinari
|
|
51
|
+
- [website] Link respective repositories in product pages (#35046) @sidtohan
|
|
52
|
+
- [website] Migrate blog pages to use CSS theme variables (#34976) @siriwatknp
|
|
53
|
+
- [website] Update DoiT International logo and links with new brand (#35030) @ofir5300
|
|
54
|
+
- [website] Improve visual design app bar (#35111) @oliviertassinari
|
|
55
|
+
|
|
56
|
+
### Core
|
|
57
|
+
|
|
58
|
+
- [core] Convert scripts to ES modules (#35036) @michaldudak
|
|
59
|
+
- [core] Show the whole version to make blame easier @oliviertassinari
|
|
60
|
+
- [core] Polish GitHub Action version @oliviertassinari
|
|
61
|
+
- [core] Ignore icons to speed up CodeQL @oliviertassinari
|
|
62
|
+
- [core] Feedback on branch protection @oliviertassinari
|
|
63
|
+
- [core] Revert CI (#35098) @siriwatknp
|
|
64
|
+
- [core] Fix job name to match the CI (#35097) @siriwatknp
|
|
65
|
+
- [core] ESLint fixes for tests (#34924) @Janpot
|
|
66
|
+
- [core] Ignore unrelated folders from github actions (#35028) @siriwatknp
|
|
67
|
+
- [core] Use pretty-quick instead of custom script (#34062) @Janpot
|
|
68
|
+
|
|
69
|
+
All contributors of this release in alphabetical order: @alexfauquette, @bharatkashyap, @cherniavskii, @danilo-leal, @hbjORbj, @Janpot, @kennethbigler, @kushagra010, @michaldudak, @mnajdova, @ofir5300, @oliviertassinari, @sai6855, @sfavello, @sidtohan, @siriwatknp, @Studio384
|
|
70
|
+
|
|
71
|
+
## v5.10.13
|
|
72
|
+
|
|
73
|
+
<!-- generated comparing v5.10.12..master -->
|
|
74
|
+
|
|
75
|
+
_Nov 7, 2022_
|
|
76
|
+
|
|
77
|
+
A big thanks to the 12 contributors who made this release possible. Here are some highlights โจ:
|
|
78
|
+
|
|
79
|
+
- ๐ The slots API has been introduced to the Material UI package by @michaldudak (#34873).
|
|
80
|
+
- ๐ฅ Live editing of demos is stabilized by @oliviertassinari (#34870).
|
|
81
|
+
- Many other ๐ bug fixes, ๐ documentation, and โ๏ธ infrastructure improvements.
|
|
82
|
+
|
|
83
|
+
### `@mui/material@5.10.13`
|
|
84
|
+
|
|
85
|
+
- ​<!-- 08 -->[material-ui] Introduce the slots API (#34873) @michaldudak
|
|
86
|
+
- ​<!-- 07 -->[NativeSelectInput] Support CSS theme variables (#34975) @siriwatknp
|
|
87
|
+
|
|
88
|
+
### `@mui/system@5.10.13`
|
|
89
|
+
|
|
90
|
+
- ​<!-- 05 -->[system] Add a missing key attribute in getInitColorScheme to fix key issue (#34992) @akshaya-venkatesh8
|
|
91
|
+
|
|
92
|
+
### `@mui/base@5.0.0-alpha.105`
|
|
93
|
+
|
|
94
|
+
- ​<!-- 26 -->[base] Avoid calling setState during renders (#34916) @Janpot
|
|
95
|
+
|
|
96
|
+
### `@mui/joy@5.0.0-alpha.53`
|
|
97
|
+
|
|
98
|
+
- ​<!-- 06 -->[Select] Fix custom options menu not opening on Avatar click (#34648) @shivam1646
|
|
99
|
+
|
|
100
|
+
### Docs
|
|
101
|
+
|
|
102
|
+
- ​<!-- 20 -->[docs] Add a guide for setting dark mode by default (#34839) @siriwatknp
|
|
103
|
+
- ​<!-- 19 -->[docs] Improve code font family (#35027) @oliviertassinari
|
|
104
|
+
- ​<!-- 18 -->[docs] Revise and expand Joy UI "Alert" page (#34838) @samuelsycamore
|
|
105
|
+
- ​<!-- 17 -->[docs] Live demos v2 (#34870) @oliviertassinari
|
|
106
|
+
- ​<!-- 16 -->[docs] Fix 301 links in the docs @oliviertassinari
|
|
107
|
+
- ​<!-- 15 -->[docs] Fix code display in RTL (#34951) @oliviertassinari
|
|
108
|
+
- ​<!-- 14 -->[docs] New API design rule disabled > disable (#34972) @oliviertassinari
|
|
109
|
+
- ​<!-- 13 -->[docs] Explain the usage of Select's onOpen/onClose in the uncontrolled mode (#34755) @michaldudak
|
|
110
|
+
- ​<!-- 12 -->[docs] Add a new gold sponsor (#34984) @hbjORbj
|
|
111
|
+
- ​<!-- 11 -->[docs] Add author and published_time meta tags (#34382) @alexfauquette
|
|
112
|
+
- ​<!-- 10 -->[examples] Next.js examples v13 - fonts (#34971) @PetroSilenius
|
|
113
|
+
- ​<!-- 09 -->[examples] Next.js examples v13 - links (#34970) @PetroSilenius
|
|
114
|
+
- ​<!-- 04 -->[website] Update IPinfo.AI name @oliviertassinari
|
|
115
|
+
- ​<!-- 03 -->[website] Remove date-io from the docs dependencies (#34748) @michaldudak
|
|
116
|
+
- ​<!-- 02 -->[website] Migrate Design-kits page to use CSS theme variables (#34920) @jesrodri
|
|
117
|
+
- ​<!-- 01 -->[website] Migrate Pricing page to use CSS theme variables (#34917) @trizotti
|
|
118
|
+
|
|
119
|
+
### Core
|
|
120
|
+
|
|
121
|
+
- ​<!-- 25 -->[core] Remove default access to GitHub action scopes @oliviertassinari
|
|
122
|
+
- ​<!-- 24 -->[core] Fix Pinned-Dependencies @oliviertassinari
|
|
123
|
+
- ​<!-- 23 -->[core] Fix typos in the component name @oliviertassinari
|
|
124
|
+
- ​<!-- 22 -->[core] Fix scorecard regression @oliviertassinari
|
|
125
|
+
- ​<!-- 21 -->[core] Create the docs theme once (#34954) @oliviertassinari
|
|
126
|
+
|
|
127
|
+
All contributors of this release in alphabetical order: @akshaya-venkatesh8, @alexfauquette, @hbjORbj, @Janpot, @jesrodri, @michaldudak, @oliviertassinari, @PetroSilenius, @samuelsycamore, @shivam1646, @siriwatknp, @trizotti
|
|
128
|
+
|
|
129
|
+
## v5.10.12
|
|
130
|
+
|
|
131
|
+
<!-- generated comparing v5.10.11..master -->
|
|
132
|
+
|
|
133
|
+
_Oct 31, 2022_
|
|
134
|
+
|
|
135
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights โจ:
|
|
136
|
+
|
|
137
|
+
- ๐ The LinearProgress component has been added to Joy UI by @hbjORbj (#34514).
|
|
138
|
+
- Many other ๐ bug fixes, ๐ documentation, and โ๏ธ infrastructure improvements.
|
|
139
|
+
|
|
140
|
+
### `@mui/material@5.10.12`
|
|
141
|
+
|
|
142
|
+
- ​<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
|
|
143
|
+
- ​<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
|
|
144
|
+
- ​<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
|
|
145
|
+
- ​<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari
|
|
146
|
+
|
|
147
|
+
### `@mui/base@5.0.0-alpha.104`
|
|
148
|
+
|
|
149
|
+
- ​<!-- 38 -->[ButtonUnstyled] Update to render as link when href or to is provided (#34337) @EduardoSCosta
|
|
150
|
+
|
|
151
|
+
### `@mui/joy@5.0.0-alpha.52`
|
|
152
|
+
|
|
153
|
+
- ​<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
|
|
154
|
+
- ​<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
|
|
155
|
+
- ​<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj
|
|
156
|
+
|
|
157
|
+
### Docs
|
|
158
|
+
|
|
159
|
+
- ​<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
|
|
160
|
+
- ​<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
|
|
161
|
+
- ​<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
|
|
162
|
+
- ​<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
|
|
163
|
+
- ​<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
|
|
164
|
+
- ​<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
|
|
165
|
+
- ​<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
|
|
166
|
+
- ​<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
|
|
167
|
+
- ​<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
|
|
168
|
+
- ​<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
|
|
169
|
+
- ​<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
|
|
170
|
+
- ​<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
|
|
171
|
+
- ​<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
|
|
172
|
+
- ​<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
|
|
173
|
+
- ​<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
|
|
174
|
+
- ​<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
|
|
175
|
+
- ​<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
|
|
176
|
+
- ​<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
|
|
177
|
+
- ​<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
|
|
178
|
+
- ​<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
|
|
179
|
+
- ​<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari
|
|
180
|
+
|
|
181
|
+
### Core
|
|
182
|
+
|
|
183
|
+
- ​<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
|
|
184
|
+
- ​<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
|
|
185
|
+
- ​<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
|
|
186
|
+
- ​<!-- 33 -->[core] Fix duplicate id @oliviertassinari
|
|
187
|
+
- ​<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
|
|
188
|
+
- ​<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
|
|
189
|
+
- ​<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
|
|
190
|
+
- ​<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
|
|
191
|
+
- ​<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
|
|
192
|
+
- ​<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
|
|
193
|
+
- ​<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
|
|
194
|
+
- ​<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
|
|
195
|
+
- ​<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
|
|
196
|
+
- ​<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
|
|
197
|
+
- ​<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
|
|
198
|
+
- ​<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
|
|
199
|
+
- ​<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
|
|
200
|
+
- ​<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
|
|
201
|
+
- ​<!-- 06 -->[test] Use screen when possible for simplicity (#34890) @oliviertassinari
|
|
202
|
+
|
|
203
|
+
All contributors of this release in alphabetical order: @cherniavskii, @DanailH, @EduardoSCosta, @emlai, @hbjORbj, @Janpot, @michaldudak, @mnajdova, @oliviertassinari, @punithnayak, @PunitSoniME, @renovate[bot], @RoodyCode, @samuelsycamore, @siriwatknp, @VinceCYLiao
|
|
204
|
+
|
|
205
|
+
## v5.10.11
|
|
206
|
+
|
|
207
|
+
<!-- generated comparing v5.10.10..master -->
|
|
208
|
+
|
|
209
|
+
_Oct 25, 2022_
|
|
210
|
+
|
|
211
|
+
A big thanks to the 10 contributors who made this release possible. Here are some highlights โจ:
|
|
212
|
+
|
|
213
|
+
- ๐ง Moved `components` to `slots` prop starting at MUI Base to create consistency across products
|
|
214
|
+
- Many other ๐ bug fixes, ๐ documentation, and โ๏ธ infrastructure improvements
|
|
215
|
+
|
|
216
|
+
### `@mui/material@5.10.11`
|
|
217
|
+
|
|
218
|
+
- [InputBase] Fix `onInvalid` to use HTMLInputElement | HTMLTextAreaElement Element type (#33162) @KuSh
|
|
219
|
+
- [Alert] Add `components` and `componentsProps` props to allow close action overrides (#33582) @jake-collibra
|
|
220
|
+
|
|
221
|
+
### `@mui/base@5.0.0-alpha.103`
|
|
222
|
+
|
|
223
|
+
#### BREAKING CHANGE
|
|
224
|
+
|
|
225
|
+
- [base] `components` -> `slots` API rename (#34693) @michaldudak
|
|
226
|
+
|
|
227
|
+
- Change all occurrences ofย componentsย andย componentsPropsย props in Base components toย slotsย andย slotProps, respectively.
|
|
228
|
+
- Change casing ofย slots' fields to camelCase
|
|
229
|
+
|
|
230
|
+
```diff
|
|
231
|
+
-<SwitchUnstyled components={{Root: CustomRoot}} componentsProps={{rail: { className: 'custom-rail' }}} />
|
|
232
|
+
+<SwitchUnstyled slots={{root: CustomRoot}} slotProps={{rail: { className: 'custom-rail' }}} />
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
- [base] Make CSS class prefixes consistent (#33411) @michaldudak
|
|
236
|
+
|
|
237
|
+
**This is a breaking change for anyone who depends on the class names applied to Base components.**
|
|
238
|
+
If you use the `<component>UnstyledClasses` objects, you won't notice a difference. Only if you depend on the resulting class names (e.g. in CSS stylesheets), you'll have to adjust your code.
|
|
239
|
+
|
|
240
|
+
```diff
|
|
241
|
+
-.ButtonUnstyled-root { ... };
|
|
242
|
+
+.MuiButton-root { ... };
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
#### Changes
|
|
246
|
+
|
|
247
|
+
- [test] Test all Base components with describeConformanceUnstyled (#34825) @michaldudak
|
|
248
|
+
|
|
249
|
+
### `@mui/joy@5.0.0-alpha.51`
|
|
250
|
+
|
|
251
|
+
- [CircularProgress][joy] Fix classnames and add test (#34806) @hbjORbj
|
|
252
|
+
- [Joy] Allow string type for `size` prop in components (#34805) @hbjORbj
|
|
253
|
+
|
|
254
|
+
### Docs
|
|
255
|
+
|
|
256
|
+
- Revert "[docs] Fix search icons in other languages (#34823)" @oliviertassinari
|
|
257
|
+
- Revert "[core] Move SearchIcons to docs src folder (#34802)" @oliviertassinari
|
|
258
|
+
- Revert "[docs] Live demos (#34454)" @oliviertassinari
|
|
259
|
+
- Update the order of operations for pagination example so that slicing takes place after sorting. (#34189) @marceliwac
|
|
260
|
+
- [docs] Gatsby Description in Joy dark-mode (#34702) @pixelass
|
|
261
|
+
- [docs] Add notification for blogpost MUI X v6 alpha (#34809) @joserodolfofreitas
|
|
262
|
+
- [docs] Polish Crowdin config (#34852) @oliviertassinari
|
|
263
|
+
- [docs] Fix a few style standard deviations @oliviertassinari
|
|
264
|
+
- [docs] Enforce no trailing spaces (#34762) @oliviertassinari
|
|
265
|
+
- [docs] Enforce correct git diff format (#34765) @oliviertassinari
|
|
266
|
+
- [docs] Fix Toolpad docs 301 route (#34843) @bharatkashyap
|
|
267
|
+
- [docs] Replace initial value with theme white (#34822) @siriwatknp
|
|
268
|
+
- [docs] Remove localization redirects (#34844) @mnajdova
|
|
269
|
+
- [docs] Fix search icons in other languages (#34823) @siriwatknp
|
|
270
|
+
- [docs] Fix JavaScript capitalization @oliviertassinari
|
|
271
|
+
- [docs] Update new links to MD2 (#34848) @oliviertassinari
|
|
272
|
+
- [website] Update future work items on X landing page (#34810) @joserodolfofreitas
|
|
273
|
+
- [website] Add Toolpad docs to navigation (#34749) @bharatkashyap
|
|
274
|
+
|
|
275
|
+
### Core
|
|
276
|
+
|
|
277
|
+
- [core] Remove dead files (#34850) @oliviertassinari
|
|
278
|
+
- [core] Fix revert conflict @oliviertassinari
|
|
279
|
+
- [core] Fix a few CodeQL errors (#34766) @oliviertassinari
|
|
280
|
+
- [core] Harden GitHub Actions permissions (#34769) @oliviertassinari
|
|
281
|
+
- [core] Remove the codeowners file (#34876) @michaldudak
|
|
282
|
+
|
|
283
|
+
All contributors of this release in alphabetical order: @bharatkashyap, @hbjORbj, @jake-collibra, @joserodolfofreitas, @KuSh, @marceliwac, @michaldudak, @oliviertassinari, @pixelass, @siriwatknp
|
|
284
|
+
|
|
285
|
+
## 5.10.10
|
|
286
|
+
|
|
287
|
+
<!-- generated comparing v5.10.9..master -->
|
|
288
|
+
|
|
289
|
+
_Oct 18, 2022_
|
|
290
|
+
|
|
291
|
+
A big thanks to the 21 contributors who made this release possible. Here are some highlights โจ:
|
|
292
|
+
|
|
293
|
+
- ๐ Thanks to the efforts of @bharatkashyap and @nihgwu, we now have editable demos across our docs (#34454)!
|
|
294
|
+
- ๐ The Tooltip component has been added to Joy UI by @hbjORbj (#34509).
|
|
295
|
+
- โ๏ธ We started converting the remaining JS components in MUI Base to TypeScript.
|
|
296
|
+
@mbayucot finished the first PR with the conversion of the NoSsr code (#34735).
|
|
297
|
+
- And more ๐ bug fixes and ๐ documentation improvements.
|
|
298
|
+
|
|
299
|
+
### `@mui/material@5.10.10`
|
|
300
|
+
|
|
301
|
+
- [Popover] Fix paper position flash on open (#34546) @TheUnlocked
|
|
302
|
+
- [SwipeableDrawer] Make component `defaultProps` overridable (#34643) @hbjORbj
|
|
303
|
+
|
|
304
|
+
### `@mui/system@5.10.10`
|
|
305
|
+
|
|
306
|
+
- [system] Support CSS `grey` color in `sx` (#34548) @TheUnlocked
|
|
307
|
+
|
|
308
|
+
### `@mui/styles@5.10.10`
|
|
309
|
+
|
|
310
|
+
- [styles] Use memoized context in StylesProvider (#34637) @mohd-akram
|
|
311
|
+
|
|
312
|
+
### `@mui/joy@5.0.0-alpha.50`
|
|
313
|
+
|
|
314
|
+
- [Select][joy] Added hidden input element (#34657) @zee-bit
|
|
315
|
+
- [Slider][joy] Add global variant to slider (#34733) @siriwatknp
|
|
316
|
+
- [Tooltip][joy] Add component (#34509) @hbjORbj
|
|
317
|
+
|
|
318
|
+
### `@mui/base@5.0.0-alpha.102`
|
|
319
|
+
|
|
320
|
+
- [MultiSelect][base] Prevent the renderValue prop from being propagated to the DOM (#34698) @michaldudak
|
|
321
|
+
- [NoSsr] Convert code to TypeScript (#34735) @mbayucot
|
|
322
|
+
|
|
323
|
+
### Docs
|
|
324
|
+
|
|
325
|
+
- [docs] Fix the Autocomplete Highlighting example (#34184) @hayawata3626
|
|
326
|
+
- [docs] Fix typos in Base (Menu, Tabs) and Joy UI (Chip) (#34803) @rvrvrv
|
|
327
|
+
- [docs] Use new editing API in homepage demos (#34220) @m4theushw
|
|
328
|
+
- [docs] Live demos (#34454) @bharatkashyap
|
|
329
|
+
- [docs] Fix typos in Joy UI Switch (#34728) @ndresx
|
|
330
|
+
- [docs] Avoid scrollbar in the code demos (#34741) @oliviertassinari
|
|
331
|
+
- [docs] Revise the Joy UI "Automatic adjustment" page (#34614) @samuelsycamore
|
|
332
|
+
- [docs] Revise and rename the Joy UI "Perfect dark mode" page (#34613) @samuelsycamore
|
|
333
|
+
- [docs] Revise the Joy UI "Global variants" page (#34595) @samuelsycamore
|
|
334
|
+
- [docs] Basic link verification at PR level (#34588) @alexfauquette
|
|
335
|
+
- [docs] Add a missing comma in the customization example (#34617) @AbayKinayat
|
|
336
|
+
- [website] Clarify Pro/Premium support (#34607) @oliviertassinari
|
|
337
|
+
- [website] Fix home page dark mode flicker (#33545)
|
|
338
|
+
- [website] Update the state of the date pickers on the landing page (#34750) @joserodolfofreitas
|
|
339
|
+
|
|
340
|
+
### Core
|
|
341
|
+
|
|
342
|
+
- [core] Clean conditionals (#34772) @pedroprado010
|
|
343
|
+
- [core] Temporary remove the authorization (#34796) @siriwatknp
|
|
344
|
+
- [core] Avoid slower CI run statues @oliviertassinari
|
|
345
|
+
- [core] Improve the playground DX (#34739) @oliviertassinari
|
|
346
|
+
- [core] Link Netlify in the danger comment (#34688) @oliviertassinari
|
|
347
|
+
- [core] Fix CI after out of sync merge @oliviertassinari
|
|
348
|
+
- [core] Enforce straight quote (#34686) @oliviertassinari
|
|
349
|
+
- [core] Add code scanning via CodeQL (#34707) @DanailH
|
|
350
|
+
- [core] Fix some upcoming eslint issues (#34727) @oliviertassinari
|
|
351
|
+
- [core] Auto-fix upcoming eslint issues (#34644) @Janpot
|
|
352
|
+
- [core] Move SearchIcons to docs src folder (#34802)
|
|
353
|
+
- [test] Enable `react/no-unstable-nested-components` (#34518) @eps1lon
|
|
354
|
+
|
|
355
|
+
All contributors of this release in alphabetical order: @AbayKinayat, @alexfauquette, @bharatkashyap, @DanailH, @eps1lon, @hayawata3626, @hbjORbj, @Janpot, @joserodolfofreitas, @m4theushw, @mbayucot, @michaldudak, @mohd-akram, @ndresx, @oliviertassinari, @pedroprado010, @rvrvrv, @samuelsycamore, @siriwatknp, @TheUnlocked, @zee-bit
|
|
356
|
+
|
|
357
|
+
## 5.10.9
|
|
358
|
+
|
|
359
|
+
<!-- generated comparing v5.10.8..master -->
|
|
360
|
+
|
|
361
|
+
_Oct 10, 2022_
|
|
362
|
+
|
|
363
|
+
A big thanks to the 7 contributors who made this release possible. Here are some highlights โจ:
|
|
364
|
+
|
|
365
|
+
- ๐ [Joy] Button loading functionality has been added by @kushagra010 (#34658)
|
|
366
|
+
- And more ๐ bug fixes and ๐ documentation improvements.
|
|
367
|
+
|
|
368
|
+
### `@mui/material@5.10.9`
|
|
369
|
+
|
|
370
|
+
- ​<!-- 16 -->[Grid v2][system] Handle direction object prop for responsive design (#34574) @vanyaxk
|
|
371
|
+
- ​<!-- 03 -->[Slider] Fix unnecessary accessibility attribute in root element (#34610) @vanyaxk
|
|
372
|
+
|
|
373
|
+
### `@mui/system@5.10.9`
|
|
374
|
+
|
|
375
|
+
#### BREAKING CHANGE
|
|
376
|
+
|
|
377
|
+
- ​<!-- 17 -->[system] Fix color-scheme implementation (#34639) @siriwatknp
|
|
378
|
+
|
|
379
|
+
The `enableColorScheme` prop has been removed from `CssVarsProvider` and `getInitColorScheme` (both Material UI and Joy UI).
|
|
380
|
+
|
|
381
|
+
Migration:
|
|
382
|
+
|
|
383
|
+
- **Material UI**: you can enable the CSS color scheme via `<CssBaseline enableColorScheme />`.
|
|
384
|
+
- **Joy UI**: it is enabled automatically if you use `<CssBaseline />`, [see the docs](https://mui.com/joy-ui/react-css-baseline/).
|
|
385
|
+
|
|
386
|
+
#### Changes
|
|
387
|
+
|
|
388
|
+
- ​<!-- 02 -->[system] Fix typo in createCssVarsProvider (#34661) @HexM7
|
|
389
|
+
|
|
390
|
+
### `@mui/base@5.0.0-alpha.101`
|
|
391
|
+
|
|
392
|
+
- ​<!-- 01 -->[TrapFocus] Restore the previously exported type from @mui/material (#34601) @michaldudak
|
|
393
|
+
|
|
394
|
+
### `@mui/joy@5.0.0-alpha.49`
|
|
395
|
+
|
|
396
|
+
- ​<!-- 04 -->[Joy] Add button loading functionality (#34658) @kushagra010
|
|
397
|
+
|
|
398
|
+
### Docs
|
|
399
|
+
|
|
400
|
+
- ​<!-- 18 -->[docs] Revert #34541 (#34700) @michaldudak
|
|
401
|
+
- ​<!-- 15 -->[blog] Blog post for MUI X v6 alpha zero (#34424) @joserodolfofreitas
|
|
402
|
+
- ​<!-- 09 -->[docs] Improve Joy UI tutorial demo (#34653) @oliviertassinari
|
|
403
|
+
- ​<!-- 08 -->[docs] Explain how SelectUnstyled renders a hidden input (#34638) @michaldudak
|
|
404
|
+
- ​<!-- 07 -->[docs] Fix Taiwan description (#34611) @oliviertassinari
|
|
405
|
+
- ​<!-- 06 -->[docs] Fix codesandbox export with dayjs (#34619) @oliviertassinari
|
|
406
|
+
- ​<!-- 05 -->[docs] Explain the purpose of renderGroup prop (#34066) @michaldudak
|
|
407
|
+
|
|
408
|
+
### Core
|
|
409
|
+
|
|
410
|
+
- ​<!-- 14 -->[core] Make useForkRef variadic (#27939) @michaldudak
|
|
411
|
+
- ​<!-- 13 -->[core] Speedup of yarn install in the CI (#34632) @oliviertassinari
|
|
412
|
+
- ​<!-- 12 -->[core] Fix markdown loader on Windows (#34623) @michaldudak
|
|
413
|
+
- ​<!-- 11 -->[core] Update changelog for version v5.10.8 (#34593) @mnajdova
|
|
414
|
+
- ​<!-- 10 -->[core] Update root package.json version (#34592) @mnajdova
|
|
415
|
+
|
|
416
|
+
All contributors of this release in alphabetical order: @HexM7, @joserodolfofreitas, @kushagra010, @michaldudak, @mnajdova, @oliviertassinari, @vanyaxk
|
|
417
|
+
|
|
418
|
+
## 5.10.8
|
|
419
|
+
|
|
420
|
+
<!-- generated comparing v5.10.7..master -->
|
|
421
|
+
|
|
422
|
+
_Oct 3, 2022_
|
|
423
|
+
|
|
424
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights โจ:
|
|
425
|
+
|
|
426
|
+
- ๐ [SnackbarUnstyled](https://mui.com/base/react-snackbar/) component & headless hook are added to MUI Base (#33227) @ZeeshanTamboli
|
|
427
|
+
- ๐ [CSS variables documentation](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/) for Material UI has been added by @siriwatknp (#33958)
|
|
428
|
+
- And more ๐ bug fixes and ๐ documentation improvements.
|
|
429
|
+
|
|
430
|
+
### `@mui/material@5.10.8`
|
|
431
|
+
|
|
432
|
+
- ​<!-- 28 -->[Autocomplete] Skip filtering when list of options is loading (#33278) @ndebeiss
|
|
433
|
+
- ​<!-- 13 -->[Fab] Add `disabled` class to FAB button (#34245) @meenarama
|
|
434
|
+
- ​<!-- 09 -->[l10n] Add Arabic Saudi Arabia (ar-SA) locale (#33340) @rolule
|
|
435
|
+
- ​<!-- 08 -->[l10n] zhTW refinement (#33391) @Aporim2051
|
|
436
|
+
- ​<!-- 07 -->[Popover] Add `ownerState` on the paper slot (#34445) @kabernardes
|
|
437
|
+
- ​<!-- 05 -->[Slider] Fixed incorrect marks displayed due to duplicate keys in range (#33526) @kskd1804
|
|
438
|
+
- ​<!-- 03 -->[TextField] Fix typo in FormControlLabel declaration file (#34535) @hghmn
|
|
439
|
+
|
|
440
|
+
### `@mui/base@5.0.0-alpha.100`
|
|
441
|
+
|
|
442
|
+
- ​<!-- 04 -->[SnackbarUnstyled] Create component and `useSnackbar` hook (#33227) @ZeeshanTamboli
|
|
443
|
+
|
|
444
|
+
### `@mui/joy@5.0.0-alpha.48`
|
|
445
|
+
|
|
446
|
+
- ​<!-- 12 -->[Joy] Fix `variantPlain` classname missing in few components (#34534) @hbjORbj
|
|
447
|
+
- ​<!-- 11 -->[Joy] Fix input decorator color and list padding (#34586) @siriwatknp
|
|
448
|
+
- ​<!-- 10 -->[Joy] Miscellaneous fixes (#34492) @siriwatknp
|
|
449
|
+
|
|
450
|
+
### Docs
|
|
451
|
+
|
|
452
|
+
- ​<!-- 27 -->[blog] Fix 404 link in base introduction @oliviertassinari
|
|
453
|
+
- ​<!-- 21 -->[docs] Fix CI build (#34589) @mnajdova
|
|
454
|
+
- ​<!-- 20 -->[docs] Temporary remove date picker from home page (#34541) @siriwatknp
|
|
455
|
+
- ​<!-- 19 -->[docs] Revise and expand Joy UI "Tutorial" doc (#34569) @samuelsycamore
|
|
456
|
+
- ​<!-- 18 -->[docs] Fix SEO issues (#34537) @oliviertassinari
|
|
457
|
+
- ​<!-- 17 -->[docs] Add CSS variables documentation for Material UI (#33958) @siriwatknp
|
|
458
|
+
- ​<!-- 16 -->[docs] Capitalize Material Design on the Breakpoints page (#34481) @Dustin-Digitar
|
|
459
|
+
- ​<!-- 15 -->[docs] Able to load doc components inside markdown files (#34243) @flaviendelangle
|
|
460
|
+
- ​<!-- 14 -->[docs] Use mouse pointer on esc button in the search modal (#34485) @minkyngkm
|
|
461
|
+
- ​<!-- 02 -->[website] Fix typo in pricing FAQ @oliviertassinari
|
|
462
|
+
- ​<!-- 01 -->[website] Move the React Engineer role from open to next (#34494) @mnajdova
|
|
463
|
+
|
|
464
|
+
### Core
|
|
465
|
+
|
|
466
|
+
- ​<!-- 26 -->[core] Update root package.json version (#34592) @mnajdova
|
|
467
|
+
- ​<!-- 25 -->[core] Remove useless comment in fixtures (#34581) @Garz4
|
|
468
|
+
- ​<!-- 24 -->[core] Fix link to CODE_OF_CONDUCT.md (#34543) @peippo
|
|
469
|
+
- ​<!-- 23 -->[core] Remove outdated docsearch.js dependency (#34421) @oliviertassinari
|
|
470
|
+
- ​<!-- 22 -->[core] Add `newFeature` to the typing of MuiPage (#34511) @flaviendelangle
|
|
471
|
+
|
|
472
|
+
All contributors of this release in alphabetical order: @Aporim2051, @Dustin-Digitar, @flaviendelangle, @Garz4, @hbjORbj, @hghmn, @kabernardes, @kskd1804, @meenarama, @minkyngkm, @mnajdova, @ndebeiss, @oliviertassinari, @peippo, @rolule, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
473
|
+
|
|
3
474
|
## 5.10.7
|
|
4
475
|
|
|
5
476
|
<!-- generated comparing v5.10.6..master -->
|
|
@@ -37,8 +508,8 @@ A big thanks to the 21 contributors who made this release possible. Here are som
|
|
|
37
508
|
- [TrapFocus] Rename TrapFocus to FocusTrap (#34216) @kabernardes
|
|
38
509
|
|
|
39
510
|
```diff
|
|
40
|
-
-
|
|
41
|
-
+
|
|
511
|
+
-import TrapFocus from '@mui/base/TrapFocus';
|
|
512
|
+
+import FocusTrap from '@mui/base/FocusTrap';
|
|
42
513
|
```
|
|
43
514
|
|
|
44
515
|
#### Changes
|
|
@@ -320,7 +791,7 @@ _Aug 22, 2022_
|
|
|
320
791
|
|
|
321
792
|
A big thanks to the 11 contributors who made this release possible. Here are some highlights โจ:
|
|
322
793
|
|
|
323
|
-
- โจ @michaldudak synced the Material Icons set with the latest from Google (#33988)
|
|
794
|
+
- โจ @michaldudak synced the Material Icons set with the latest from Google (#33988).\
|
|
324
795
|
A couple of icons changed their appearance. See the difference [on this Argos build](https://app.argos-ci.com/mui/material-ui/builds/4428]).
|
|
325
796
|
|
|
326
797
|
### `@mui/material@5.10.2`
|
|
@@ -1512,7 +1983,8 @@ All contributors of this release in alphabetical order: @abhinav-22-tech, @ainat
|
|
|
1512
1983
|
|
|
1513
1984
|
_Apr 18, 2022_
|
|
1514
1985
|
|
|
1515
|
-
A big thanks to the 11 contributors who made this release possible.
|
|
1986
|
+
A big thanks to the 11 contributors who made this release possible.
|
|
1987
|
+
This release is mostly about ๐ bug fixes and ๐ documentation improvements.
|
|
1516
1988
|
|
|
1517
1989
|
### `@mui/material@5.6.2`
|
|
1518
1990
|
|
|
@@ -1571,7 +2043,7 @@ All contributors of this release in alphabetical order: @abaker93, @cherniavskii
|
|
|
1571
2043
|
|
|
1572
2044
|
_Apr 11, 2022_
|
|
1573
2045
|
|
|
1574
|
-
A big thanks to the 8 contributors who made this release possible.
|
|
2046
|
+
A big thanks to the 8 contributors who made this release possible.
|
|
1575
2047
|
This release is mostly about ๐ bug fixes and ๐ documentation improvements.
|
|
1576
2048
|
|
|
1577
2049
|
### `@mui/material@5.6.1`
|
|
@@ -1734,7 +2206,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
1734
2206
|
-import { Unstyled_TrapFocus } from '@mui/base';
|
|
1735
2207
|
+import { TrapFocus } from '@mui/base';
|
|
1736
2208
|
|
|
1737
|
-
|
|
2209
|
+
// or
|
|
1738
2210
|
|
|
1739
2211
|
-import TrapFocus from '@mui/base/Unstyled_TrapFocus';
|
|
1740
2212
|
+import TrapFocus from '@mui/base/TrapFocus';
|
|
@@ -1910,8 +2382,8 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
1910
2382
|
`unstable_ClassNameGenerator` has been moved from `utils` to `className` folder to prevent all MUI Base module imports. If you use the module, please update the import as suggested in the diff below:
|
|
1911
2383
|
|
|
1912
2384
|
```diff
|
|
1913
|
-
-
|
|
1914
|
-
+
|
|
2385
|
+
-import { unstable_ClassNameGenerator } from '@mui/material/utils';
|
|
2386
|
+
+import { unstable_ClassNameGenerator } from '@mui/material/className';
|
|
1915
2387
|
```
|
|
1916
2388
|
|
|
1917
2389
|
#### Changes
|
|
@@ -2253,8 +2725,8 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
2253
2725
|
3. Change the import paths of unstyled components from @mui/material to @mui/base, e.g.:
|
|
2254
2726
|
|
|
2255
2727
|
```diff
|
|
2256
|
-
-
|
|
2257
|
-
+
|
|
2728
|
+
-import ButtonUnstyled from '@mui/material/ButtonUnstyled';
|
|
2729
|
+
+import ButtonUnstyled from '@mui/base/ButtonUnstyled';
|
|
2258
2730
|
```
|
|
2259
2731
|
|
|
2260
2732
|
#### Changes
|
|
@@ -4297,12 +4769,12 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
4297
4769
|
`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).
|
|
4298
4770
|
|
|
4299
4771
|
```diff
|
|
4300
|
-
|
|
4301
|
-
-
|
|
4772
|
+
<button class="MuiTab-root">
|
|
4773
|
+
- <span class="MuiTab-wrapper">
|
|
4302
4774
|
{icon}
|
|
4303
4775
|
{label}
|
|
4304
|
-
-
|
|
4305
|
-
|
|
4776
|
+
- </span>
|
|
4777
|
+
</button>
|
|
4306
4778
|
```
|
|
4307
4779
|
|
|
4308
4780
|
- [BottomNavigation] Remove wrapper from BottomNavigationAction (#26923) @siriwatknp
|
|
@@ -4310,14 +4782,14 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
4310
4782
|
`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).
|
|
4311
4783
|
|
|
4312
4784
|
```diff
|
|
4313
|
-
|
|
4314
|
-
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
-
|
|
4320
|
-
|
|
4785
|
+
<button class="MuiBottomNavigationAction-root">
|
|
4786
|
+
- <span class="MuiBottomNavigationAction-wrapper">
|
|
4787
|
+
{icon}
|
|
4788
|
+
<span class="MuiBottomNavigationAction-label">
|
|
4789
|
+
{label}
|
|
4790
|
+
</span>
|
|
4791
|
+
- </span>
|
|
4792
|
+
</button>
|
|
4321
4793
|
```
|
|
4322
4794
|
|
|
4323
4795
|
#### Changes
|
|
@@ -4350,15 +4822,15 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
4350
4822
|
Make the default rendered text field closer to the most common use cases (denser).
|
|
4351
4823
|
|
|
4352
4824
|
```diff
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4825
|
+
<DatePicker
|
|
4826
|
+
label="Helper text example"
|
|
4827
|
+
value={value}
|
|
4828
|
+
onChange={onChange}
|
|
4829
|
+
renderInput={(params) => (
|
|
4358
4830
|
- <TextField {...params} />
|
|
4359
4831
|
+ <TextField {...params} helperText={params?.inputProps?.placeholder} />
|
|
4360
|
-
|
|
4361
|
-
|
|
4832
|
+
)}
|
|
4833
|
+
>
|
|
4362
4834
|
```
|
|
4363
4835
|
|
|
4364
4836
|
#### Changes
|
|
@@ -4420,7 +4892,7 @@ _Jun 23, 2021_
|
|
|
4420
4892
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights โจ:
|
|
4421
4893
|
|
|
4422
4894
|
- ๐ 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.
|
|
4423
|
-
- ๐จ We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
|
|
4895
|
+
- ๐จ We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
|
|
4424
4896
|
|
|
4425
4897
|
<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>
|
|
4426
4898
|
|
|
@@ -4464,16 +4936,16 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4464
4936
|
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).
|
|
4465
4937
|
|
|
4466
4938
|
```diff
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
-
|
|
4471
|
-
+
|
|
4472
|
-
-
|
|
4473
|
-
+
|
|
4474
|
-
-
|
|
4475
|
-
+
|
|
4476
|
-
|
|
4939
|
+
{
|
|
4940
|
+
xs: 0,
|
|
4941
|
+
sm: 600,
|
|
4942
|
+
- md: 960,
|
|
4943
|
+
+ md: 900,
|
|
4944
|
+
- lg: 1280,
|
|
4945
|
+
+ lg: 1200,
|
|
4946
|
+
- xl: 1920,
|
|
4947
|
+
+ xl: 1536,
|
|
4948
|
+
}
|
|
4477
4949
|
```
|
|
4478
4950
|
|
|
4479
4951
|
If you prefer the old breakpoint values, use the snippet below.
|
|
@@ -4505,7 +4977,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4505
4977
|
|
|
4506
4978
|
- ​<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
|
|
4507
4979
|
|
|
4508
|
-
Rework the CSS to match the latest [Material Design guidelines](https://material.io/components/sliders) and make custom styles more intuitive. [See documentation](https://mui.com/components/slider/).
|
|
4980
|
+
Rework the CSS to match the latest [Material Design guidelines](https://m2.material.io/components/sliders) and make custom styles more intuitive. [See documentation](https://mui.com/components/slider/).
|
|
4509
4981
|
|
|
4510
4982
|
<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>
|
|
4511
4983
|
|
|
@@ -4518,11 +4990,11 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4518
4990
|
`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).
|
|
4519
4991
|
|
|
4520
4992
|
```diff
|
|
4521
|
-
|
|
4522
|
-
-
|
|
4523
|
-
|
|
4524
|
-
-
|
|
4525
|
-
|
|
4993
|
+
<button class="MuiIconButton-root">
|
|
4994
|
+
- <span class="MuiIconButton-label">
|
|
4995
|
+
<svg />
|
|
4996
|
+
- </span>
|
|
4997
|
+
</button>
|
|
4526
4998
|
```
|
|
4527
4999
|
|
|
4528
5000
|
- ​<!-- 19 -->[core] Remove `unstable_` prefix on the `useThemeProps` hook (#26777) @mnajdova
|
|
@@ -4648,11 +5120,11 @@ A big thanks to the 11 contributors who made this release possible. Here are som
|
|
|
4648
5120
|
The `span` element that wraps children has been removed. `label` classKey is also removed. The nested span was required for fixing a flexbox issue with iOS < 11.0.
|
|
4649
5121
|
|
|
4650
5122
|
```diff
|
|
4651
|
-
|
|
4652
|
-
-
|
|
4653
|
-
|
|
4654
|
-
-
|
|
4655
|
-
|
|
5123
|
+
<button class="MuiButton-root">
|
|
5124
|
+
- <span class="MuiButton-label">
|
|
5125
|
+
children
|
|
5126
|
+
- </span>
|
|
5127
|
+
</button>
|
|
4656
5128
|
```
|
|
4657
5129
|
|
|
4658
5130
|
#### Changes
|
|
@@ -4681,7 +5153,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
|
|
|
4681
5153
|
+ const theme = useTheme();
|
|
4682
5154
|
+ const isRtl = theme.direction === 'rtl';
|
|
4683
5155
|
//.. rest of the code
|
|
4684
|
-
|
|
5156
|
+
}
|
|
4685
5157
|
```
|
|
4686
5158
|
|
|
4687
5159
|
#### Changes
|
|
@@ -4753,7 +5225,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4753
5225
|
|
|
4754
5226
|
- ​<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
|
|
4755
5227
|
|
|
4756
|
-
The `color` prop has no longer any effect in dark mode. The app bar uses the background color required by the elevation to follow the [Material Design guidelines](https://material.io/design/color/dark-theme.html). Use `enableColorOnDark` to restore the behavior of v4.
|
|
5228
|
+
The `color` prop has no longer any effect in dark mode. The app bar uses the background color required by the elevation to follow the [Material Design guidelines](https://m2.material.io/design/color/dark-theme.html). Use `enableColorOnDark` to restore the behavior of v4.
|
|
4757
5229
|
|
|
4758
5230
|
```jsx
|
|
4759
5231
|
<AppBar enableColorOnDark />
|
|
@@ -4804,13 +5276,14 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4804
5276
|
- ​<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
|
|
4805
5277
|
|
|
4806
5278
|
```diff
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
+
|
|
4812
|
-
|
|
4813
|
-
-
|
|
5279
|
+
<DateTimePicker
|
|
5280
|
+
components={{
|
|
5281
|
+
LeftArrowIcon: AlarmIcon,
|
|
5282
|
+
RightArrowIcon: SnoozeIcon,
|
|
5283
|
+
+ OpenPickerIcon: ClockIcon,
|
|
5284
|
+
}}
|
|
5285
|
+
- openPickerIcon={<ClockIcon />}
|
|
5286
|
+
>
|
|
4814
5287
|
```
|
|
4815
5288
|
|
|
4816
5289
|
### `@material-ui/system@5.0.0-alpha.36`
|
|
@@ -4914,8 +5387,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4914
5387
|
|
|
4915
5388
|
Update the implementation to better match Material Design:
|
|
4916
5389
|
|
|
4917
|
-
- Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://material.io/components/tabs#specs)
|
|
4918
|
-
- Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://material.io/components/tabs#specs)
|
|
5390
|
+
- Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
|
|
5391
|
+
- Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
|
|
4919
5392
|
|
|
4920
5393
|
#### Changes
|
|
4921
5394
|
|
|
@@ -5033,10 +5506,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
5033
5506
|
Move the custom class on `input` to `select`. The `input` key is being applied on another element.
|
|
5034
5507
|
|
|
5035
5508
|
```diff
|
|
5036
|
-
|
|
5037
|
-
-
|
|
5038
|
-
+
|
|
5039
|
-
|
|
5509
|
+
<TablePagination
|
|
5510
|
+
- classes={{ input: 'foo' }}
|
|
5511
|
+
+ classes={{ select: 'foo' }}
|
|
5512
|
+
/>
|
|
5040
5513
|
```
|
|
5041
5514
|
|
|
5042
5515
|
- ​<!-- 45 -->[core] Move `StyledEngineProvider` to `@material-ui/core/styles` (#26265) @mnajdova
|
|
@@ -5081,10 +5554,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
5081
5554
|
- ​<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
|
|
5082
5555
|
|
|
5083
5556
|
```diff
|
|
5084
|
-
|
|
5557
|
+
<Autocomplete
|
|
5085
5558
|
- getOptionSelected={(option, value) => option.title === value.title}
|
|
5086
5559
|
+ isOptionEqualToValue={(option, value) => option.title === value.title}
|
|
5087
|
-
|
|
5560
|
+
/>
|
|
5088
5561
|
```
|
|
5089
5562
|
|
|
5090
5563
|
> Follow [this link](https://mui.com/material-ui/migration/migration-v4/) for full migration from v4 => v5
|
|
@@ -5187,18 +5660,20 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
5187
5660
|
Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
|
|
5188
5661
|
|
|
5189
5662
|
```diff
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
}
|
|
5663
|
+
import * as React from 'react';
|
|
5664
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
5665
|
+
|
|
5666
|
+
const MyComponent = withStyles({
|
|
5667
|
+
root: {
|
|
5668
|
+
backgroundColor: 'red',
|
|
5669
|
+
},
|
|
5670
|
+
})(({ classes }) => <div className={classes.root} />);
|
|
5671
|
+
|
|
5672
|
+
function MyOtherComponent(props) {
|
|
5673
|
+
const ref = React.useRef();
|
|
5674
|
+
- return <MyComponent innerRef={ref} />;
|
|
5675
|
+
+ return <MyComponent ref={ref} />;
|
|
5676
|
+
}
|
|
5202
5677
|
```
|
|
5203
5678
|
|
|
5204
5679
|
**withTheme**
|
|
@@ -5206,14 +5681,16 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
5206
5681
|
Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
|
|
5207
5682
|
|
|
5208
5683
|
```diff
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
}
|
|
5684
|
+
import * as React from 'react';
|
|
5685
|
+
import { withTheme } from '@material-ui/core/styles';
|
|
5686
|
+
|
|
5687
|
+
const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
|
|
5688
|
+
|
|
5689
|
+
function MyOtherComponent(props) {
|
|
5690
|
+
const ref = React.useRef();
|
|
5691
|
+
- return <MyComponent innerRef={ref} />;
|
|
5692
|
+
+ return <MyComponent ref={ref} />;
|
|
5693
|
+
}
|
|
5217
5694
|
```
|
|
5218
5695
|
|
|
5219
5696
|
- ​<!-- 10 -->[theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
|
|
@@ -5555,23 +6032,23 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
5555
6032
|
- ​<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
|
|
5556
6033
|
|
|
5557
6034
|
```diff
|
|
5558
|
-
|
|
5559
|
-
-
|
|
5560
|
-
+
|
|
5561
|
-
+
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
6035
|
+
function MyCheckbox() {
|
|
6036
|
+
- const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
|
|
6037
|
+
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
6038
|
+
+ const checked = event.target.checked;
|
|
6039
|
+
};
|
|
6040
|
+
return <Checkbox onChange={handleChange} />;
|
|
6041
|
+
}
|
|
5565
6042
|
```
|
|
5566
6043
|
|
|
5567
6044
|
```diff
|
|
5568
|
-
|
|
5569
|
-
-
|
|
5570
|
-
+
|
|
5571
|
-
+
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
6045
|
+
function MySwitch() {
|
|
6046
|
+
- const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
|
|
6047
|
+
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
6048
|
+
+ const checked = event.target.checked;
|
|
6049
|
+
};
|
|
6050
|
+
return <Switch onChange={handleChange} />;
|
|
6051
|
+
}
|
|
5575
6052
|
```
|
|
5576
6053
|
|
|
5577
6054
|
- ​<!-- 42 -->[theme] Remove theme.breakpoints.width helper (#25918) @m4theushw
|
|
@@ -5726,12 +6203,12 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
5726
6203
|
-import DayPicker from '@material-ui/lab/DayPicker';
|
|
5727
6204
|
+import CalendarPicker from '@material-ui/lab/CalendarPicker';
|
|
5728
6205
|
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
-
|
|
5732
|
-
+
|
|
5733
|
-
|
|
5734
|
-
|
|
6206
|
+
createMuiTheme({
|
|
6207
|
+
components: {
|
|
6208
|
+
- MuiDayPicker: {},
|
|
6209
|
+
+ MuiCalendarPicker: {},
|
|
6210
|
+
}
|
|
6211
|
+
})
|
|
5735
6212
|
```
|
|
5736
6213
|
|
|
5737
6214
|
- ​<!-- 04 -->[Pickers] Rename PickersCalendarSkeleton to CalendarPickerSkeleton (#25679) @eps1lon
|
|
@@ -6255,10 +6732,10 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
6255
6732
|
|
|
6256
6733
|
- ​<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
|
|
6257
6734
|
|
|
6258
|
-
The icons were synchronized with https://material.io/resources/icons/. This change increases the number of supported icons from 1,349 to 1,781 per theme (we support 5 themes). The breaking changes:
|
|
6735
|
+
The icons were synchronized with https://m2.material.io/resources/icons/. This change increases the number of supported icons from 1,349 to 1,781 per theme (we support 5 themes). The breaking changes:
|
|
6259
6736
|
|
|
6260
6737
|
```diff
|
|
6261
|
-
|
|
6738
|
+
// AmpStories -> Download
|
|
6262
6739
|
-AmpStories
|
|
6263
6740
|
+Download
|
|
6264
6741
|
-AmpStoriesOutlined
|
|
@@ -6269,7 +6746,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
6269
6746
|
+DownloadSharp
|
|
6270
6747
|
-AmpStoriesTwoTone
|
|
6271
6748
|
+DownloadTwoTone
|
|
6272
|
-
|
|
6749
|
+
// Outbond -> Outbound
|
|
6273
6750
|
-Outbond
|
|
6274
6751
|
+Outbound
|
|
6275
6752
|
-OutbondOutlined
|
|
@@ -6446,10 +6923,10 @@ A big thanks to the 30 contributors who made this release possible. Here are som
|
|
|
6446
6923
|
If you were using a number previously, you need to provide the value in `px` to bypass the new transformation with `theme.spacing`. The change was done for consistency with the Grid spacing prop and the other system spacing properties, e.g. `<Box padding={2}>`.
|
|
6447
6924
|
|
|
6448
6925
|
```diff
|
|
6449
|
-
|
|
6450
|
-
-
|
|
6451
|
-
+
|
|
6452
|
-
|
|
6926
|
+
<Box
|
|
6927
|
+
- gap={2}
|
|
6928
|
+
+ gap="2px"
|
|
6929
|
+
>
|
|
6453
6930
|
```
|
|
6454
6931
|
|
|
6455
6932
|
### `@material-ui/styled-engine@5.0.0-alpha.25`
|
|
@@ -6690,14 +7167,14 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
6690
7167
|
--- a/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
|
|
6691
7168
|
+++ b/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
|
|
6692
7169
|
@@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField';
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
7170
|
+
import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
|
|
7171
|
+
import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
|
|
7172
|
+
import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
|
|
6696
7173
|
-import DateRangeDelimiter from '@material-ui/lab/DateRangeDelimiter';
|
|
6697
7174
|
+import Box from '@material-ui/core/Box';
|
|
6698
7175
|
|
|
6699
|
-
|
|
6700
|
-
|
|
7176
|
+
export default function BasicDateRangePicker() {
|
|
7177
|
+
const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
|
|
6701
7178
|
@@ -20,7 +20,7 @@ export default function BasicDateRangePicker() {
|
|
6702
7179
|
renderInput={(startProps, endProps) => (
|
|
6703
7180
|
<React.Fragment>
|
|
@@ -7239,42 +7716,42 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
7239
7716
|
- [Dialog] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
|
|
7240
7717
|
|
|
7241
7718
|
```diff
|
|
7242
|
-
|
|
7243
|
-
-
|
|
7244
|
-
-
|
|
7245
|
-
+
|
|
7246
|
-
+
|
|
7247
|
-
+
|
|
7248
|
-
+
|
|
7249
|
-
+
|
|
7250
|
-
|
|
7719
|
+
<Dialog
|
|
7720
|
+
- disableBackdropClick
|
|
7721
|
+
- onClose={handleClose}
|
|
7722
|
+
+ onClose={(event, reason) => {
|
|
7723
|
+
+ if (reason !== 'backdropClick') {
|
|
7724
|
+
+ onClose(event, reason);
|
|
7725
|
+
+ }
|
|
7726
|
+
+ }}
|
|
7727
|
+
/>
|
|
7251
7728
|
```
|
|
7252
7729
|
|
|
7253
7730
|
- [Modal] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
|
|
7254
7731
|
|
|
7255
7732
|
```diff
|
|
7256
|
-
|
|
7257
|
-
-
|
|
7258
|
-
-
|
|
7259
|
-
+
|
|
7260
|
-
+
|
|
7261
|
-
+
|
|
7262
|
-
+
|
|
7263
|
-
+
|
|
7264
|
-
|
|
7733
|
+
<Modal
|
|
7734
|
+
- disableBackdropClick
|
|
7735
|
+
- onClose={handleClose}
|
|
7736
|
+
+ onClose={(event, reason) => {
|
|
7737
|
+
+ if (reason !== 'backdropClick') {
|
|
7738
|
+
+ onClose(event, reason);
|
|
7739
|
+
+ }
|
|
7740
|
+
+ }}
|
|
7741
|
+
/>
|
|
7265
7742
|
```
|
|
7266
7743
|
|
|
7267
7744
|
- [Modal] Remove the `onEscapeKeyDown` prop. It's redundant with the `reason` argument. (#23571) @eps1lon
|
|
7268
7745
|
|
|
7269
7746
|
```diff
|
|
7270
|
-
|
|
7747
|
+
<Modal
|
|
7271
7748
|
- onEscapeKeyDown={handleEscapeKeyDown}
|
|
7272
7749
|
+ onClose={(event, reason) => {
|
|
7273
7750
|
+ if (reason === "escapeKeyDown") {
|
|
7274
7751
|
+ handleEscapeKeyDown(event);
|
|
7275
7752
|
+ }
|
|
7276
7753
|
+ }}
|
|
7277
|
-
|
|
7754
|
+
/>;
|
|
7278
7755
|
```
|
|
7279
7756
|
|
|
7280
7757
|
#### Changes
|
|
@@ -7627,10 +8104,10 @@ Here are some highlights โจ:
|
|
|
7627
8104
|
- The CSS prefixes have changed:
|
|
7628
8105
|
|
|
7629
8106
|
```diff
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
-
|
|
7633
|
-
+
|
|
8107
|
+
popper: {
|
|
8108
|
+
zIndex: 1,
|
|
8109
|
+
- '&[x-placement*="bottom"] $arrow': {
|
|
8110
|
+
+ '&[data-popper-placement*="bottom"] $arrow': {
|
|
7634
8111
|
```
|
|
7635
8112
|
|
|
7636
8113
|
- Method names have changed.
|
|
@@ -7654,13 +8131,13 @@ Here are some highlights โจ:
|
|
|
7654
8131
|
-import withMobileDialog from '@material-ui/core/withMobileDialog';
|
|
7655
8132
|
+import {ย useTheme, useMediaQuery } from '@material-ui/core';
|
|
7656
8133
|
|
|
7657
|
-
|
|
7658
|
-
-
|
|
7659
|
-
+
|
|
7660
|
-
+
|
|
7661
|
-
|
|
8134
|
+
function ResponsiveDialog(props) {
|
|
8135
|
+
- const { fullScreen } = props;
|
|
8136
|
+
+ const theme = useTheme();
|
|
8137
|
+
+ const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
|
|
8138
|
+
const [open, setOpen] = React.useState(false);
|
|
7662
8139
|
|
|
7663
|
-
|
|
8140
|
+
// ...
|
|
7664
8141
|
|
|
7665
8142
|
-export default withMobileDialog()(ResponsiveDialog);
|
|
7666
8143
|
+export default ResponsiveDialog;
|
|
@@ -7906,24 +8383,24 @@ Here are some highlights โจ:
|
|
|
7906
8383
|
The change was done to match the API convention.
|
|
7907
8384
|
|
|
7908
8385
|
```diff
|
|
7909
|
-
|
|
7910
|
-
-
|
|
7911
|
-
-
|
|
7912
|
-
+
|
|
7913
|
-
+
|
|
8386
|
+
<TablePagination
|
|
8387
|
+
- onChangeRowsPerPage={()=>{}}
|
|
8388
|
+
- onChangePage={()=>{}}
|
|
8389
|
+
+ onRowsPerPageChange={()=>{}}
|
|
8390
|
+
+ onPageChange={()=>{}}
|
|
7914
8391
|
```
|
|
7915
8392
|
|
|
7916
8393
|
- [theme] Rename fade to alpha (#22834) @mnajdova
|
|
7917
8394
|
Better describe its functionality. The previous name was leading to confusion when the input color already had an alpha value. The helper **overrides** the alpha value of the color.
|
|
7918
8395
|
|
|
7919
8396
|
```diff
|
|
7920
|
-
-
|
|
7921
|
-
+
|
|
8397
|
+
-import { fade } from '@material-ui/core/styles';
|
|
8398
|
+
+import { alpha } from '@material-ui/core/styles';
|
|
7922
8399
|
|
|
7923
|
-
|
|
8400
|
+
const classes = makeStyles(theme => ({
|
|
7924
8401
|
- backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
7925
8402
|
+ backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
7926
|
-
|
|
8403
|
+
}));
|
|
7927
8404
|
```
|
|
7928
8405
|
|
|
7929
8406
|
- [Tooltip] Make `interactive` default (#22382) @eps1lon
|
|
@@ -7934,7 +8411,7 @@ Here are some highlights โจ:
|
|
|
7934
8411
|
```diff
|
|
7935
8412
|
-<Tooltip>
|
|
7936
8413
|
+<Tooltip disableInteractive>
|
|
7937
|
-
|
|
8414
|
+
# Interactive tooltips no longer need the `interactive` prop.
|
|
7938
8415
|
-<Tooltip interactive>
|
|
7939
8416
|
+<Tooltip>
|
|
7940
8417
|
```
|
|
@@ -8182,7 +8659,7 @@ Here are some highlights โจ:
|
|
|
8182
8659
|
Renames `theme.palette.type` to `theme.palette.mode`, to better follow the "dark mode" term that is usually used for describing this feature.
|
|
8183
8660
|
|
|
8184
8661
|
```diff
|
|
8185
|
-
|
|
8662
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8186
8663
|
|
|
8187
8664
|
-const theme = createMuiTheme({palette: { type: 'dark' }}),
|
|
8188
8665
|
+const theme = createMuiTheme({palette: { mode: 'dark' }}),
|
|
@@ -8247,22 +8724,22 @@ Here are some highlights โจ:
|
|
|
8247
8724
|
You can recover from the change with:
|
|
8248
8725
|
|
|
8249
8726
|
```diff
|
|
8250
|
-
|
|
8251
|
-
-
|
|
8252
|
-
-
|
|
8253
|
-
+
|
|
8254
|
-
+
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
-
|
|
8263
|
-
+
|
|
8264
|
-
|
|
8265
|
-
|
|
8727
|
+
<Autocomplete
|
|
8728
|
+
- renderOption={(option, { selected }) => (
|
|
8729
|
+
- <React.Fragment>
|
|
8730
|
+
+ renderOption={(props, option, { selected }) => (
|
|
8731
|
+
+ <li {...props}>
|
|
8732
|
+
<Checkbox
|
|
8733
|
+
icon={icon}
|
|
8734
|
+
checkedIcon={checkedIcon}
|
|
8735
|
+
style={{ marginRight: 8 }}
|
|
8736
|
+
checked={selected}
|
|
8737
|
+
/>
|
|
8738
|
+
{option.title}
|
|
8739
|
+
- </React.Fragment>
|
|
8740
|
+
+ </li>
|
|
8741
|
+
)}
|
|
8742
|
+
/>
|
|
8266
8743
|
```
|
|
8267
8744
|
|
|
8268
8745
|
#### Changes
|
|
@@ -8348,12 +8825,12 @@ Here are some highlights โจ:
|
|
|
8348
8825
|
Rename `focused` to `focusVisible` for consistency with the other components:
|
|
8349
8826
|
|
|
8350
8827
|
```diff
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
-
|
|
8354
|
-
+
|
|
8355
|
-
|
|
8356
|
-
|
|
8828
|
+
<Accordion
|
|
8829
|
+
classes={{
|
|
8830
|
+
- focused: 'custom-focus-visible-classname',
|
|
8831
|
+
+ focusVisible: 'custom-focus-visible-classname',
|
|
8832
|
+
}}
|
|
8833
|
+
/>
|
|
8357
8834
|
```
|
|
8358
8835
|
|
|
8359
8836
|
- [Stepper] Remove Paper and built-in padding (#22564) @mbrookes
|
|
@@ -8433,10 +8910,10 @@ Here are some highlights โจ:
|
|
|
8433
8910
|
If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with:
|
|
8434
8911
|
|
|
8435
8912
|
```diff
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
+
|
|
8439
|
-
|
|
8913
|
+
<Rating
|
|
8914
|
+
icon={customIcon}
|
|
8915
|
+
+ emptyIcon={null}
|
|
8916
|
+
/>
|
|
8440
8917
|
```
|
|
8441
8918
|
|
|
8442
8919
|
#### Changes
|
|
@@ -8466,7 +8943,7 @@ _Sep 6, 2020_
|
|
|
8466
8943
|
A big thanks to the 14 contributors who made this release possible.
|
|
8467
8944
|
Here are some highlights โจ:
|
|
8468
8945
|
|
|
8469
|
-
- ๐ A new diamond sponsor: [DoiT](https://www.doit
|
|
8946
|
+
- ๐ A new diamond sponsor: [DoiT](https://www.doit.com/), thank you!
|
|
8470
8947
|
- ๐ Include the default value of the props in IntelliSense (#22447) @eps1lon
|
|
8471
8948
|
- โ๏ธ More source migrated to TypeScript and testing-library (#22441) @baterson
|
|
8472
8949
|
- And many more ๐ bug fixes and ๐ improvements.
|
|
@@ -8562,9 +9039,9 @@ const theme = createMuiTheme({
|
|
|
8562
9039
|
1. `props`
|
|
8563
9040
|
|
|
8564
9041
|
```diff
|
|
8565
|
-
|
|
9042
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8566
9043
|
|
|
8567
|
-
|
|
9044
|
+
const theme = createMuiTheme({
|
|
8568
9045
|
- props: {
|
|
8569
9046
|
- MuiButton: {
|
|
8570
9047
|
- disableRipple: true,
|
|
@@ -8577,15 +9054,15 @@ const theme = createMuiTheme({
|
|
|
8577
9054
|
+ },
|
|
8578
9055
|
+ },
|
|
8579
9056
|
+ },
|
|
8580
|
-
|
|
9057
|
+
});
|
|
8581
9058
|
```
|
|
8582
9059
|
|
|
8583
9060
|
2. `overrides`
|
|
8584
9061
|
|
|
8585
9062
|
```diff
|
|
8586
|
-
|
|
9063
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8587
9064
|
|
|
8588
|
-
|
|
9065
|
+
const theme = createMuiTheme({
|
|
8589
9066
|
- overrides: {
|
|
8590
9067
|
- MuiButton: {
|
|
8591
9068
|
- root: { padding: 0 },
|
|
@@ -8598,7 +9075,7 @@ const theme = createMuiTheme({
|
|
|
8598
9075
|
+ },
|
|
8599
9076
|
+ },
|
|
8600
9077
|
+ },
|
|
8601
|
-
|
|
9078
|
+
});
|
|
8602
9079
|
```
|
|
8603
9080
|
|
|
8604
9081
|
Note that if you don't have the time to upgrade the structure of the theme, you
|
|
@@ -8709,7 +9186,7 @@ Here are some highlights โจ:
|
|
|
8709
9186
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
8710
9187
|
|
|
8711
9188
|
```diff
|
|
8712
|
-
|
|
9189
|
+
<Menu
|
|
8713
9190
|
- onEnter={onEnter}
|
|
8714
9191
|
- onEntered={onEntered},
|
|
8715
9192
|
- onEntering={onEntered},
|
|
@@ -8724,14 +9201,14 @@ Here are some highlights โจ:
|
|
|
8724
9201
|
+ onExited,
|
|
8725
9202
|
+ onExiting,
|
|
8726
9203
|
+ }}
|
|
8727
|
-
|
|
9204
|
+
>
|
|
8728
9205
|
```
|
|
8729
9206
|
|
|
8730
9207
|
- [Popover] Remove transition onX props (#22184) @mbrookes
|
|
8731
9208
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
8732
9209
|
|
|
8733
9210
|
```diff
|
|
8734
|
-
|
|
9211
|
+
<Popover
|
|
8735
9212
|
- onEnter={onEnter}
|
|
8736
9213
|
- onEntered={onEntered},
|
|
8737
9214
|
- onEntering={onEntered},
|
|
@@ -8746,7 +9223,7 @@ Here are some highlights โจ:
|
|
|
8746
9223
|
+ onExited,
|
|
8747
9224
|
+ onExiting,
|
|
8748
9225
|
+ }}
|
|
8749
|
-
|
|
9226
|
+
/>
|
|
8750
9227
|
```
|
|
8751
9228
|
|
|
8752
9229
|
- [TextField] Improve line-height reset (#22149) @imnasnainaec
|
|
@@ -8900,7 +9377,7 @@ Here are some highlights โจ:
|
|
|
8900
9377
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
8901
9378
|
|
|
8902
9379
|
```diff
|
|
8903
|
-
|
|
9380
|
+
<Dialog
|
|
8904
9381
|
- onEnter={onEnter}
|
|
8905
9382
|
- onEntered={onEntered},
|
|
8906
9383
|
- onEntering={onEntered},
|
|
@@ -8915,7 +9392,7 @@ Here are some highlights โจ:
|
|
|
8915
9392
|
+ onExited,
|
|
8916
9393
|
+ onExiting,
|
|
8917
9394
|
+ }}
|
|
8918
|
-
|
|
9395
|
+
/>
|
|
8919
9396
|
```
|
|
8920
9397
|
|
|
8921
9398
|
- [Fab] Rename round -> circular for consistency (#21903) @kodai3
|
|
@@ -8962,7 +9439,7 @@ Here are some highlights โจ:
|
|
|
8962
9439
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
8963
9440
|
|
|
8964
9441
|
```diff
|
|
8965
|
-
|
|
9442
|
+
<Snackbar
|
|
8966
9443
|
- onEnter={onEnter}
|
|
8967
9444
|
- onEntered={onEntered},
|
|
8968
9445
|
- onEntering={onEntered},
|
|
@@ -8977,7 +9454,7 @@ Here are some highlights โจ:
|
|
|
8977
9454
|
+ onExited,
|
|
8978
9455
|
+ onExiting,
|
|
8979
9456
|
+ }}
|
|
8980
|
-
|
|
9457
|
+
/>
|
|
8981
9458
|
```
|
|
8982
9459
|
|
|
8983
9460
|
- [TextareaAutosize] Rename rowsMax->maxRows & rowsMin->minRows (#21873) @mhayk
|
|
@@ -9346,21 +9823,21 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
9346
9823
|
It prevents inconsistent height on scaled screens. For people customizing the color of the border, the change requires changing the override CSS property:
|
|
9347
9824
|
|
|
9348
9825
|
```diff
|
|
9349
|
-
|
|
9350
|
-
-
|
|
9351
|
-
+
|
|
9352
|
-
|
|
9826
|
+
.MuiDivider-root {
|
|
9827
|
+
- background-color: #f00;
|
|
9828
|
+
+ border-color: #f00;
|
|
9829
|
+
}
|
|
9353
9830
|
```
|
|
9354
9831
|
|
|
9355
9832
|
- [Rating] Rename `visuallyhidden` to `visuallyHidden` for consistency (#21413) @mnajdova.
|
|
9356
9833
|
|
|
9357
9834
|
```diff
|
|
9358
|
-
|
|
9359
|
-
|
|
9835
|
+
<Rating
|
|
9836
|
+
classes={{
|
|
9360
9837
|
- visuallyhidden: 'custom-visually-hidden-classname',
|
|
9361
9838
|
+ visuallyHidden: 'custom-visually-hidden-classname',
|
|
9362
|
-
|
|
9363
|
-
|
|
9839
|
+
}}
|
|
9840
|
+
/>
|
|
9364
9841
|
```
|
|
9365
9842
|
|
|
9366
9843
|
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
|
|
@@ -9380,10 +9857,10 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
9380
9857
|
The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
|
|
9381
9858
|
|
|
9382
9859
|
```diff
|
|
9383
|
-
|
|
9384
|
-
-
|
|
9385
|
-
-
|
|
9386
|
-
+
|
|
9860
|
+
<TablePagination
|
|
9861
|
+
- backIconButtonText="Avant"
|
|
9862
|
+
- nextIconButtonText="Aprรจs
|
|
9863
|
+
+ getItemAriaLabel={โฆ}
|
|
9387
9864
|
```
|
|
9388
9865
|
|
|
9389
9866
|
- [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.
|