@mui/system 5.10.9 → 5.10.12

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.
Files changed (56) hide show
  1. package/Box/Box.spec.d.ts +1 -1
  2. package/CHANGELOG.md +447 -213
  3. package/Container/Container.d.ts +13 -13
  4. package/Container/ContainerProps.d.ts +40 -40
  5. package/Container/containerClasses.d.ts +22 -22
  6. package/Container/createContainer.d.ts +18 -18
  7. package/Stack/Stack.d.ts +13 -13
  8. package/Stack/StackProps.d.ts +42 -42
  9. package/Stack/createStack.d.ts +21 -21
  10. package/Stack/index.d.ts +5 -5
  11. package/Stack/stackClasses.d.ts +8 -8
  12. package/ThemeProvider/ThemeProvider.js +3 -1
  13. package/Unstable_Grid/Grid.d.ts +12 -12
  14. package/Unstable_Grid/GridProps.d.ts +162 -162
  15. package/Unstable_Grid/createGrid.d.ts +11 -11
  16. package/Unstable_Grid/gridClasses.d.ts +20 -20
  17. package/Unstable_Grid/gridGenerator.d.ts +28 -28
  18. package/Unstable_Grid/index.d.ts +5 -5
  19. package/createBox.spec.d.ts +1 -1
  20. package/createTheme/createSpacing.d.ts +10 -10
  21. package/createTheme/createSpacing.js +1 -1
  22. package/cssVars/createCssVarsProvider.js +11 -10
  23. package/cssVars/createCssVarsProvider.spec.d.ts +1 -1
  24. package/cssVars/createGetCssVar.d.ts +5 -5
  25. package/cssVars/cssVarsParser.d.ts +65 -65
  26. package/cssVars/cssVarsParser.js +1 -1
  27. package/cssVars/getInitColorSchemeScript.d.ts +42 -42
  28. package/cssVars/index.d.ts +3 -3
  29. package/cssVars/useCurrentColorScheme.d.ts +53 -53
  30. package/esm/ThemeProvider/ThemeProvider.js +2 -1
  31. package/esm/createTheme/createSpacing.js +1 -1
  32. package/esm/cssVars/createCssVarsProvider.js +11 -10
  33. package/esm/cssVars/cssVarsParser.js +1 -1
  34. package/esm/palette.js +15 -3
  35. package/esm/style.js +1 -1
  36. package/index.js +1 -1
  37. package/index.spec.d.ts +1 -1
  38. package/legacy/ThemeProvider/ThemeProvider.js +2 -1
  39. package/legacy/createTheme/createSpacing.js +1 -1
  40. package/legacy/cssVars/createCssVarsProvider.js +6 -3
  41. package/legacy/cssVars/cssVarsParser.js +1 -1
  42. package/legacy/index.js +1 -1
  43. package/legacy/palette.js +15 -3
  44. package/legacy/style.js +1 -1
  45. package/modern/ThemeProvider/ThemeProvider.js +2 -1
  46. package/modern/createTheme/createSpacing.js +1 -1
  47. package/modern/cssVars/createCssVarsProvider.js +11 -10
  48. package/modern/cssVars/cssVarsParser.js +1 -1
  49. package/modern/index.js +1 -1
  50. package/modern/palette.js +15 -3
  51. package/modern/style.js +1 -1
  52. package/package.json +1 -1
  53. package/palette.js +14 -3
  54. package/style.d.ts +4 -1
  55. package/style.js +1 -1
  56. package/styleFunctionSx/styleFunctionSx.spec.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,233 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.10.12
4
+
5
+ <!-- generated comparing v5.10.11..master -->
6
+
7
+ _Oct 31, 2022_
8
+
9
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 The LinearProgress component has been added to Joy UI by @hbjORbj (#34514).
12
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
13
+
14
+ ### `@mui/material@5.10.12`
15
+
16
+ - &#8203;<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
17
+ - &#8203;<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
18
+ - &#8203;<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
19
+ - &#8203;<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari
20
+
21
+ ### `@mui/base@5.0.0-alpha.104`
22
+
23
+ - &#8203;<!-- 38 -->[ButtonUnstyled] Update to render as link when href or to is provided (#34337) @EduardoSCosta
24
+
25
+ ### `@mui/joy@5.0.0-alpha.52`
26
+
27
+ - &#8203;<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
28
+ - &#8203;<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
29
+ - &#8203;<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj
30
+
31
+ ### Docs
32
+
33
+ - &#8203;<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
34
+ - &#8203;<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
35
+ - &#8203;<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
36
+ - &#8203;<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
37
+ - &#8203;<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
38
+ - &#8203;<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
39
+ - &#8203;<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
40
+ - &#8203;<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
41
+ - &#8203;<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
42
+ - &#8203;<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
43
+ - &#8203;<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
44
+ - &#8203;<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
45
+ - &#8203;<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
46
+ - &#8203;<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
47
+ - &#8203;<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
48
+ - &#8203;<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
49
+ - &#8203;<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
50
+ - &#8203;<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
51
+ - &#8203;<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
52
+ - &#8203;<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
53
+ - &#8203;<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari
54
+
55
+ ### Core
56
+
57
+ - &#8203;<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
58
+ - &#8203;<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
59
+ - &#8203;<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
60
+ - &#8203;<!-- 33 -->[core] Fix duplicate id @oliviertassinari
61
+ - &#8203;<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
62
+ - &#8203;<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
63
+ - &#8203;<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
64
+ - &#8203;<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
65
+ - &#8203;<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
66
+ - &#8203;<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
67
+ - &#8203;<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
68
+ - &#8203;<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
69
+ - &#8203;<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
70
+ - &#8203;<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
71
+ - &#8203;<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
72
+ - &#8203;<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
73
+ - &#8203;<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
74
+ - &#8203;<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
75
+ - &#8203;<!-- 06 -->[test] Use screen when possible for simplicity (#34890) @oliviertassinari
76
+
77
+ 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
78
+
79
+ ## v5.10.11
80
+
81
+ <!-- generated comparing v5.10.10..master -->
82
+
83
+ _Oct 25, 2022_
84
+
85
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
86
+
87
+ - 🔧 Moved `components` to `slots` prop starting at MUI Base to create consistency across products
88
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
89
+
90
+ ### `@mui/material@5.10.11`
91
+
92
+ - [InputBase] Fix `onInvalid` to use HTMLInputElement | HTMLTextAreaElement Element type (#33162) @KuSh
93
+ - [Alert] Add `components` and `componentsProps` props to allow close action overrides (#33582) @jake-collibra
94
+
95
+ ### `@mui/base@5.0.0-alpha.103`
96
+
97
+ #### BREAKING CHANGE
98
+
99
+ - [base] `components` -> `slots` API rename (#34693) @michaldudak
100
+
101
+ - Change all occurrences of components and componentsProps props in Base components to slots and slotProps, respectively.
102
+ - Change casing of slots' fields to camelCase
103
+
104
+ ```diff
105
+ -<SwitchUnstyled components={{Root: CustomRoot}} componentsProps={{rail: { className: 'custom-rail' }}} />
106
+ +<SwitchUnstyled slots={{root: CustomRoot}} slotProps={{rail: { className: 'custom-rail' }}} />
107
+ ```
108
+
109
+ - [base] Make CSS class prefixes consistent (#33411) @michaldudak
110
+
111
+ **This is a breaking change for anyone who depends on the class names applied to Base components.**
112
+ 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.
113
+
114
+ ```diff
115
+ -.ButtonUnstyled-root { ... };
116
+ +.MuiButton-root { ... };
117
+ ```
118
+
119
+ #### Changes
120
+
121
+ - [test] Test all Base components with describeConformanceUnstyled (#34825) @michaldudak
122
+
123
+ ### `@mui/joy@5.0.0-alpha.51`
124
+
125
+ - [CircularProgress][joy] Fix classnames and add test (#34806) @hbjORbj
126
+ - [Joy] Allow string type for `size` prop in components (#34805) @hbjORbj
127
+
128
+ ### Docs
129
+
130
+ - Revert "[docs] Fix search icons in other languages (#34823)" @oliviertassinari
131
+ - Revert "[core] Move SearchIcons to docs src folder (#34802)" @oliviertassinari
132
+ - Revert "[docs] Live demos (#34454)" @oliviertassinari
133
+ - Update the order of operations for pagination example so that slicing takes place after sorting. (#34189) @marceliwac
134
+ - [docs] Gatsby Description in Joy dark-mode (#34702) @pixelass
135
+ - [docs] Add notification for blogpost MUI X v6 alpha (#34809) @joserodolfofreitas
136
+ - [docs] Polish Crowdin config (#34852) @oliviertassinari
137
+ - [docs] Fix a few style standard deviations @oliviertassinari
138
+ - [docs] Enforce no trailing spaces (#34762) @oliviertassinari
139
+ - [docs] Enforce correct git diff format (#34765) @oliviertassinari
140
+ - [docs] Fix Toolpad docs 301 route (#34843) @bharatkashyap
141
+ - [docs] Replace initial value with theme white (#34822) @siriwatknp
142
+ - [docs] Remove localization redirects (#34844) @mnajdova
143
+ - [docs] Fix search icons in other languages (#34823) @siriwatknp
144
+ - [docs] Fix JavaScript capitalization @oliviertassinari
145
+ - [docs] Update new links to MD2 (#34848) @oliviertassinari
146
+ - [website] Update future work items on X landing page (#34810) @joserodolfofreitas
147
+ - [website] Add Toolpad docs to navigation (#34749) @bharatkashyap
148
+
149
+ ### Core
150
+
151
+ - [core] Remove dead files (#34850) @oliviertassinari
152
+ - [core] Fix revert conflict @oliviertassinari
153
+ - [core] Fix a few CodeQL errors (#34766) @oliviertassinari
154
+ - [core] Harden GitHub Actions permissions (#34769) @oliviertassinari
155
+ - [core] Remove the codeowners file (#34876) @michaldudak
156
+
157
+ All contributors of this release in alphabetical order: @bharatkashyap, @hbjORbj, @jake-collibra, @joserodolfofreitas, @KuSh, @marceliwac, @michaldudak, @oliviertassinari, @pixelass, @siriwatknp
158
+
159
+ ## 5.10.10
160
+
161
+ <!-- generated comparing v5.10.9..master -->
162
+
163
+ _Oct 18, 2022_
164
+
165
+ A big thanks to the 21 contributors who made this release possible. Here are some highlights ✨:
166
+
167
+ - 🖌 Thanks to the efforts of @bharatkashyap and @nihgwu, we now have editable demos across our docs (#34454)!
168
+ - 🚀 The Tooltip component has been added to Joy UI by @hbjORbj (#34509).
169
+ - ⚙️ We started converting the remaining JS components in MUI Base to TypeScript.
170
+ @mbayucot finished the first PR with the conversion of the NoSsr code (#34735).
171
+ - And more 🐛 bug fixes and 📚 documentation improvements.
172
+
173
+ ### `@mui/material@5.10.10`
174
+
175
+ - [Popover] Fix paper position flash on open (#34546) @TheUnlocked
176
+ - [SwipeableDrawer] Make component `defaultProps` overridable (#34643) @hbjORbj
177
+
178
+ ### `@mui/system@5.10.10`
179
+
180
+ - [system] Support CSS `grey` color in `sx` (#34548) @TheUnlocked
181
+
182
+ ### `@mui/styles@5.10.10`
183
+
184
+ - [styles] Use memoized context in StylesProvider (#34637) @mohd-akram
185
+
186
+ ### `@mui/joy@5.0.0-alpha.50`
187
+
188
+ - [Select][joy] Added hidden input element (#34657) @zee-bit
189
+ - [Slider][joy] Add global variant to slider (#34733) @siriwatknp
190
+ - [Tooltip][joy] Add component (#34509) @hbjORbj
191
+
192
+ ### `@mui/base@5.0.0-alpha.102`
193
+
194
+ - [MultiSelect][base] Prevent the renderValue prop from being propagated to the DOM (#34698) @michaldudak
195
+ - [NoSsr] Convert code to TypeScript (#34735) @mbayucot
196
+
197
+ ### Docs
198
+
199
+ - [docs] Fix the Autocomplete Highlighting example (#34184) @hayawata3626
200
+ - [docs] Fix typos in Base (Menu, Tabs) and Joy UI (Chip) (#34803) @rvrvrv
201
+ - [docs] Use new editing API in homepage demos (#34220) @m4theushw
202
+ - [docs] Live demos (#34454) @bharatkashyap
203
+ - [docs] Fix typos in Joy UI Switch (#34728) @ndresx
204
+ - [docs] Avoid scrollbar in the code demos (#34741) @oliviertassinari
205
+ - [docs] Revise the Joy UI "Automatic adjustment" page (#34614) @samuelsycamore
206
+ - [docs] Revise and rename the Joy UI "Perfect dark mode" page (#34613) @samuelsycamore
207
+ - [docs] Revise the Joy UI "Global variants" page (#34595) @samuelsycamore
208
+ - [docs] Basic link verification at PR level (#34588) @alexfauquette
209
+ - [docs] Add a missing comma in the customization example (#34617) @AbayKinayat
210
+ - [website] Clarify Pro/Premium support (#34607) @oliviertassinari
211
+ - [website] Fix home page dark mode flicker (#33545)
212
+ - [website] Update the state of the date pickers on the landing page (#34750) @joserodolfofreitas
213
+
214
+ ### Core
215
+
216
+ - [core] Clean conditionals (#34772) @pedroprado010
217
+ - [core] Temporary remove the authorization (#34796) @siriwatknp
218
+ - [core] Avoid slower CI run statues @oliviertassinari
219
+ - [core] Improve the playground DX (#34739) @oliviertassinari
220
+ - [core] Link Netlify in the danger comment (#34688) @oliviertassinari
221
+ - [core] Fix CI after out of sync merge @oliviertassinari
222
+ - [core] Enforce straight quote (#34686) @oliviertassinari
223
+ - [core] Add code scanning via CodeQL (#34707) @DanailH
224
+ - [core] Fix some upcoming eslint issues (#34727) @oliviertassinari
225
+ - [core] Auto-fix upcoming eslint issues (#34644) @Janpot
226
+ - [core] Move SearchIcons to docs src folder (#34802)
227
+ - [test] Enable `react/no-unstable-nested-components` (#34518) @eps1lon
228
+
229
+ 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
230
+
3
231
  ## 5.10.9
4
232
 
5
233
  <!-- generated comparing v5.10.8..master -->
@@ -154,8 +382,8 @@ A big thanks to the 21 contributors who made this release possible. Here are som
154
382
  - [TrapFocus] Rename TrapFocus to FocusTrap (#34216) @kabernardes
155
383
 
156
384
  ```diff
157
- - import TrapFocus from ‘@mui/base/TrapFocus’;
158
- + import FocusTrap from ‘@mui/base/FocusTrap’;
385
+ -import TrapFocus from '@mui/base/TrapFocus';
386
+ +import FocusTrap from '@mui/base/FocusTrap';
159
387
  ```
160
388
 
161
389
  #### Changes
@@ -437,7 +665,7 @@ _Aug 22, 2022_
437
665
 
438
666
  A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
439
667
 
440
- - ✨ @michaldudak synced the Material Icons set with the latest from Google (#33988).
668
+ - ✨ @michaldudak synced the Material Icons set with the latest from Google (#33988).\
441
669
  A couple of icons changed their appearance. See the difference [on this Argos build](https://app.argos-ci.com/mui/material-ui/builds/4428]).
442
670
 
443
671
  ### `@mui/material@5.10.2`
@@ -1629,7 +1857,8 @@ All contributors of this release in alphabetical order: @abhinav-22-tech, @ainat
1629
1857
 
1630
1858
  _Apr 18, 2022_
1631
1859
 
1632
- A big thanks to the 11 contributors who made this release possible. This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1860
+ A big thanks to the 11 contributors who made this release possible.
1861
+ This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1633
1862
 
1634
1863
  ### `@mui/material@5.6.2`
1635
1864
 
@@ -1688,7 +1917,7 @@ All contributors of this release in alphabetical order: @abaker93, @cherniavskii
1688
1917
 
1689
1918
  _Apr 11, 2022_
1690
1919
 
1691
- A big thanks to the 8 contributors who made this release possible.
1920
+ A big thanks to the 8 contributors who made this release possible.
1692
1921
  This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1693
1922
 
1694
1923
  ### `@mui/material@5.6.1`
@@ -1851,7 +2080,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1851
2080
  -import { Unstyled_TrapFocus } from '@mui/base';
1852
2081
  +import { TrapFocus } from '@mui/base';
1853
2082
 
1854
- // or
2083
+ // or
1855
2084
 
1856
2085
  -import TrapFocus from '@mui/base/Unstyled_TrapFocus';
1857
2086
  +import TrapFocus from '@mui/base/TrapFocus';
@@ -2027,8 +2256,8 @@ A big thanks to the 16 contributors who made this release possible. Here are som
2027
2256
  `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:
2028
2257
 
2029
2258
  ```diff
2030
- - import { unstable_ClassNameGenerator } from '@mui/material/utils';
2031
- + import { unstable_ClassNameGenerator } from '@mui/material/className';
2259
+ -import { unstable_ClassNameGenerator } from '@mui/material/utils';
2260
+ +import { unstable_ClassNameGenerator } from '@mui/material/className';
2032
2261
  ```
2033
2262
 
2034
2263
  #### Changes
@@ -2370,8 +2599,8 @@ A big thanks to the 22 contributors who made this release possible. Here are som
2370
2599
  3. Change the import paths of unstyled components from @mui/material to @mui/base, e.g.:
2371
2600
 
2372
2601
  ```diff
2373
- - @import ButtonUnstyled from '@mui/material/ButtonUnstyled';
2374
- + @import ButtonUnstyled from '@mui/base/ButtonUnstyled';
2602
+ -import ButtonUnstyled from '@mui/material/ButtonUnstyled';
2603
+ +import ButtonUnstyled from '@mui/base/ButtonUnstyled';
2375
2604
  ```
2376
2605
 
2377
2606
  #### Changes
@@ -4414,12 +4643,12 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4414
4643
  `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).
4415
4644
 
4416
4645
  ```diff
4417
- <button class="MuiTab-root">
4418
- - <span class="MuiTab-wrapper">
4646
+ <button class="MuiTab-root">
4647
+ - <span class="MuiTab-wrapper">
4419
4648
  {icon}
4420
4649
  {label}
4421
- - </span>
4422
- </button>
4650
+ - </span>
4651
+ </button>
4423
4652
  ```
4424
4653
 
4425
4654
  - [BottomNavigation] Remove wrapper from BottomNavigationAction (#26923) @siriwatknp
@@ -4427,14 +4656,14 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4427
4656
  `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).
4428
4657
 
4429
4658
  ```diff
4430
- <button class="MuiBottomNavigationAction-root">
4431
- - <span class="MuiBottomNavigationAction-wrapper">
4432
- {icon}
4433
- <span class="MuiBottomNavigationAction-label">
4434
- {label}
4435
- </span>
4436
- - </span>
4437
- </button>
4659
+ <button class="MuiBottomNavigationAction-root">
4660
+ - <span class="MuiBottomNavigationAction-wrapper">
4661
+ {icon}
4662
+ <span class="MuiBottomNavigationAction-label">
4663
+ {label}
4664
+ </span>
4665
+ - </span>
4666
+ </button>
4438
4667
  ```
4439
4668
 
4440
4669
  #### Changes
@@ -4467,15 +4696,15 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4467
4696
  Make the default rendered text field closer to the most common use cases (denser).
4468
4697
 
4469
4698
  ```diff
4470
- <DatePicker
4471
- label="Helper text example"
4472
- value={value}
4473
- onChange={onChange}
4474
- renderInput={(params) => (
4699
+ <DatePicker
4700
+ label="Helper text example"
4701
+ value={value}
4702
+ onChange={onChange}
4703
+ renderInput={(params) => (
4475
4704
  - <TextField {...params} />
4476
4705
  + <TextField {...params} helperText={params?.inputProps?.placeholder} />
4477
- )}
4478
- >
4706
+ )}
4707
+ >
4479
4708
  ```
4480
4709
 
4481
4710
  #### Changes
@@ -4537,7 +4766,7 @@ _Jun 23, 2021_
4537
4766
  A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
4538
4767
 
4539
4768
  - 🚀 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.
4540
- - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
4769
+ - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
4541
4770
 
4542
4771
  <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>
4543
4772
 
@@ -4581,16 +4810,16 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4581
4810
  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).
4582
4811
 
4583
4812
  ```diff
4584
- {
4585
- xs: 0,
4586
- sm: 600,
4587
- - md: 960,
4588
- + md: 900,
4589
- - lg: 1280,
4590
- + lg: 1200,
4591
- - xl: 1920,
4592
- + xl: 1536,
4593
- }
4813
+ {
4814
+ xs: 0,
4815
+ sm: 600,
4816
+ - md: 960,
4817
+ + md: 900,
4818
+ - lg: 1280,
4819
+ + lg: 1200,
4820
+ - xl: 1920,
4821
+ + xl: 1536,
4822
+ }
4594
4823
  ```
4595
4824
 
4596
4825
  If you prefer the old breakpoint values, use the snippet below.
@@ -4622,7 +4851,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4622
4851
 
4623
4852
  - &#8203;<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
4624
4853
 
4625
- 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/).
4854
+ 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/).
4626
4855
 
4627
4856
  <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>
4628
4857
 
@@ -4635,11 +4864,11 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4635
4864
  `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).
4636
4865
 
4637
4866
  ```diff
4638
- <button class="MuiIconButton-root">
4639
- - <span class="MuiIconButton-label">
4640
- <svg />
4641
- - </span>
4642
- </button>
4867
+ <button class="MuiIconButton-root">
4868
+ - <span class="MuiIconButton-label">
4869
+ <svg />
4870
+ - </span>
4871
+ </button>
4643
4872
  ```
4644
4873
 
4645
4874
  - &#8203;<!-- 19 -->[core] Remove `unstable_` prefix on the `useThemeProps` hook (#26777) @mnajdova
@@ -4765,11 +4994,11 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4765
4994
  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.
4766
4995
 
4767
4996
  ```diff
4768
- <button class="MuiButton-root">
4769
- - <span class="MuiButton-label">
4770
- children
4771
- - </span>
4772
- </button>
4997
+ <button class="MuiButton-root">
4998
+ - <span class="MuiButton-label">
4999
+ children
5000
+ - </span>
5001
+ </button>
4773
5002
  ```
4774
5003
 
4775
5004
  #### Changes
@@ -4798,7 +5027,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4798
5027
  + const theme = useTheme();
4799
5028
  + const isRtl = theme.direction === 'rtl';
4800
5029
  //.. rest of the code
4801
- }
5030
+ }
4802
5031
  ```
4803
5032
 
4804
5033
  #### Changes
@@ -4870,7 +5099,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4870
5099
 
4871
5100
  - &#8203;<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
4872
5101
 
4873
- 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.
5102
+ 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.
4874
5103
 
4875
5104
  ```jsx
4876
5105
  <AppBar enableColorOnDark />
@@ -4921,13 +5150,14 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4921
5150
  - &#8203;<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
4922
5151
 
4923
5152
  ```diff
4924
- <DateTimePicker
4925
- components={{
4926
- LeftArrowIcon: AlarmIcon,
4927
- RightArrowIcon: SnoozeIcon,
4928
- + OpenPickerIcon: ClockIcon,
4929
- }}
4930
- - openPickerIcon={<ClockIcon />}
5153
+ <DateTimePicker
5154
+ components={{
5155
+ LeftArrowIcon: AlarmIcon,
5156
+ RightArrowIcon: SnoozeIcon,
5157
+ + OpenPickerIcon: ClockIcon,
5158
+ }}
5159
+ - openPickerIcon={<ClockIcon />}
5160
+ >
4931
5161
  ```
4932
5162
 
4933
5163
  ### `@material-ui/system@5.0.0-alpha.36`
@@ -5031,8 +5261,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
5031
5261
 
5032
5262
  Update the implementation to better match Material Design:
5033
5263
 
5034
- - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://material.io/components/tabs#specs)
5035
- - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://material.io/components/tabs#specs)
5264
+ - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
5265
+ - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
5036
5266
 
5037
5267
  #### Changes
5038
5268
 
@@ -5150,10 +5380,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5150
5380
  Move the custom class on `input` to `select`. The `input` key is being applied on another element.
5151
5381
 
5152
5382
  ```diff
5153
- <TablePagination
5154
- - classes={{ input: 'foo' }}
5155
- + classes={{ select: 'foo' }}
5156
- />
5383
+ <TablePagination
5384
+ - classes={{ input: 'foo' }}
5385
+ + classes={{ select: 'foo' }}
5386
+ />
5157
5387
  ```
5158
5388
 
5159
5389
  - &#8203;<!-- 45 -->[core] Move `StyledEngineProvider` to `@material-ui/core/styles` (#26265) @mnajdova
@@ -5198,10 +5428,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5198
5428
  - &#8203;<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
5199
5429
 
5200
5430
  ```diff
5201
- <Autocomplete
5431
+ <Autocomplete
5202
5432
  - getOptionSelected={(option, value) => option.title === value.title}
5203
5433
  + isOptionEqualToValue={(option, value) => option.title === value.title}
5204
- />
5434
+ />
5205
5435
  ```
5206
5436
 
5207
5437
  > Follow [this link](https://mui.com/material-ui/migration/migration-v4/) for full migration from v4 => v5
@@ -5304,18 +5534,20 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5304
5534
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5305
5535
 
5306
5536
  ```diff
5307
- import * as React from 'react';
5308
- import { withStyles } from '@material-ui/core/styles';
5309
- const MyComponent = withStyles({
5310
- root: {
5311
- backgroundColor: 'red',
5312
- },
5313
- })(({ classes }) => <div className={classes.root} />);
5314
- function MyOtherComponent(props) {
5315
- const ref = React.useRef();
5316
- - return <MyComponent innerRef={ref} />;
5317
- + return <MyComponent ref={ref} />;
5318
- }
5537
+ import * as React from 'react';
5538
+ import { withStyles } from '@material-ui/core/styles';
5539
+
5540
+ const MyComponent = withStyles({
5541
+ root: {
5542
+ backgroundColor: 'red',
5543
+ },
5544
+ })(({ classes }) => <div className={classes.root} />);
5545
+
5546
+ function MyOtherComponent(props) {
5547
+ const ref = React.useRef();
5548
+ - return <MyComponent innerRef={ref} />;
5549
+ + return <MyComponent ref={ref} />;
5550
+ }
5319
5551
  ```
5320
5552
 
5321
5553
  **withTheme**
@@ -5323,14 +5555,16 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5323
5555
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5324
5556
 
5325
5557
  ```diff
5326
- import * as React from 'react';
5327
- import { withTheme } from '@material-ui/core/styles';
5328
- const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5329
- function MyOtherComponent(props) {
5330
- const ref = React.useRef();
5331
- - return <MyComponent innerRef={ref} />;
5332
- + return <MyComponent ref={ref} />;
5333
- }
5558
+ import * as React from 'react';
5559
+ import { withTheme } from '@material-ui/core/styles';
5560
+
5561
+ const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5562
+
5563
+ function MyOtherComponent(props) {
5564
+ const ref = React.useRef();
5565
+ - return <MyComponent innerRef={ref} />;
5566
+ + return <MyComponent ref={ref} />;
5567
+ }
5334
5568
  ```
5335
5569
 
5336
5570
  - &#8203;<!-- 10 -->[theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
@@ -5672,23 +5906,23 @@ A big thanks to the 15 contributors who made this release possible. Here are som
5672
5906
  - &#8203;<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
5673
5907
 
5674
5908
  ```diff
5675
- function MyCheckbox() {
5676
- - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5677
- + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5678
- + const checked = event.target.checked;
5679
- };
5680
- return <Checkbox onChange={handleChange} />;
5681
- }
5909
+ function MyCheckbox() {
5910
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5911
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5912
+ + const checked = event.target.checked;
5913
+ };
5914
+ return <Checkbox onChange={handleChange} />;
5915
+ }
5682
5916
  ```
5683
5917
 
5684
5918
  ```diff
5685
- function MySwitch() {
5686
- - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5687
- + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5688
- + const checked = event.target.checked;
5689
- };
5690
- return <Switch onChange={handleChange} />;
5691
- }
5919
+ function MySwitch() {
5920
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5921
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5922
+ + const checked = event.target.checked;
5923
+ };
5924
+ return <Switch onChange={handleChange} />;
5925
+ }
5692
5926
  ```
5693
5927
 
5694
5928
  - &#8203;<!-- 42 -->[theme] Remove theme.breakpoints.width helper (#25918) @m4theushw
@@ -5843,12 +6077,12 @@ A big thanks to the 19 contributors who made this release possible. Here are som
5843
6077
  -import DayPicker from '@material-ui/lab/DayPicker';
5844
6078
  +import CalendarPicker from '@material-ui/lab/CalendarPicker';
5845
6079
 
5846
- createMuiTheme({
5847
- components: {
5848
- - MuiDayPicker: {},
5849
- + MuiCalendarPicker: {},
5850
- }
5851
- })
6080
+ createMuiTheme({
6081
+ components: {
6082
+ - MuiDayPicker: {},
6083
+ + MuiCalendarPicker: {},
6084
+ }
6085
+ })
5852
6086
  ```
5853
6087
 
5854
6088
  - &#8203;<!-- 04 -->[Pickers] Rename PickersCalendarSkeleton to CalendarPickerSkeleton (#25679) @eps1lon
@@ -6372,10 +6606,10 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6372
6606
 
6373
6607
  - &#8203;<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
6374
6608
 
6375
- 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:
6609
+ 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:
6376
6610
 
6377
6611
  ```diff
6378
- // AmpStories -> Download
6612
+ // AmpStories -> Download
6379
6613
  -AmpStories
6380
6614
  +Download
6381
6615
  -AmpStoriesOutlined
@@ -6386,7 +6620,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6386
6620
  +DownloadSharp
6387
6621
  -AmpStoriesTwoTone
6388
6622
  +DownloadTwoTone
6389
- // Outbond -> Outbound
6623
+ // Outbond -> Outbound
6390
6624
  -Outbond
6391
6625
  +Outbound
6392
6626
  -OutbondOutlined
@@ -6563,10 +6797,10 @@ A big thanks to the 30 contributors who made this release possible. Here are som
6563
6797
  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}>`.
6564
6798
 
6565
6799
  ```diff
6566
- <Box
6567
- - gap={2}
6568
- + gap="2px"
6569
- >
6800
+ <Box
6801
+ - gap={2}
6802
+ + gap="2px"
6803
+ >
6570
6804
  ```
6571
6805
 
6572
6806
  ### `@material-ui/styled-engine@5.0.0-alpha.25`
@@ -6807,14 +7041,14 @@ A big thanks to the 15 contributors who made this release possible. Here are som
6807
7041
  --- a/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6808
7042
  +++ b/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6809
7043
  @@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField';
6810
- import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
6811
- import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
6812
- import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
7044
+ import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
7045
+ import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
7046
+ import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
6813
7047
  -import DateRangeDelimiter from '@material-ui/lab/DateRangeDelimiter';
6814
7048
  +import Box from '@material-ui/core/Box';
6815
7049
 
6816
- export default function BasicDateRangePicker() {
6817
- const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
7050
+ export default function BasicDateRangePicker() {
7051
+ const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
6818
7052
  @@ -20,7 +20,7 @@ export default function BasicDateRangePicker() {
6819
7053
  renderInput={(startProps, endProps) => (
6820
7054
  <React.Fragment>
@@ -7356,42 +7590,42 @@ A big thanks to the 18 contributors who made this release possible. Here are som
7356
7590
  - [Dialog] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7357
7591
 
7358
7592
  ```diff
7359
- <Dialog
7360
- - disableBackdropClick
7361
- - onClose={handleClose}
7362
- + onClose={(event, reason) => {
7363
- + if (reason !== 'backdropClick') {
7364
- + onClose(event, reason);
7365
- + }
7366
- + }}
7367
- />
7593
+ <Dialog
7594
+ - disableBackdropClick
7595
+ - onClose={handleClose}
7596
+ + onClose={(event, reason) => {
7597
+ + if (reason !== 'backdropClick') {
7598
+ + onClose(event, reason);
7599
+ + }
7600
+ + }}
7601
+ />
7368
7602
  ```
7369
7603
 
7370
7604
  - [Modal] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7371
7605
 
7372
7606
  ```diff
7373
- <Modal
7374
- - disableBackdropClick
7375
- - onClose={handleClose}
7376
- + onClose={(event, reason) => {
7377
- + if (reason !== 'backdropClick') {
7378
- + onClose(event, reason);
7379
- + }
7380
- + }}
7381
- />
7607
+ <Modal
7608
+ - disableBackdropClick
7609
+ - onClose={handleClose}
7610
+ + onClose={(event, reason) => {
7611
+ + if (reason !== 'backdropClick') {
7612
+ + onClose(event, reason);
7613
+ + }
7614
+ + }}
7615
+ />
7382
7616
  ```
7383
7617
 
7384
7618
  - [Modal] Remove the `onEscapeKeyDown` prop. It's redundant with the `reason` argument. (#23571) @eps1lon
7385
7619
 
7386
7620
  ```diff
7387
- <Modal
7621
+ <Modal
7388
7622
  - onEscapeKeyDown={handleEscapeKeyDown}
7389
7623
  + onClose={(event, reason) => {
7390
7624
  + if (reason === "escapeKeyDown") {
7391
7625
  + handleEscapeKeyDown(event);
7392
7626
  + }
7393
7627
  + }}
7394
- />;
7628
+ />;
7395
7629
  ```
7396
7630
 
7397
7631
  #### Changes
@@ -7744,10 +7978,10 @@ Here are some highlights ✨:
7744
7978
  - The CSS prefixes have changed:
7745
7979
 
7746
7980
  ```diff
7747
- popper: {
7748
- zIndex: 1,
7749
- - '&[x-placement*="bottom"] $arrow': {
7750
- + '&[data-popper-placement*="bottom"] $arrow': {
7981
+ popper: {
7982
+ zIndex: 1,
7983
+ - '&[x-placement*="bottom"] $arrow': {
7984
+ + '&[data-popper-placement*="bottom"] $arrow': {
7751
7985
  ```
7752
7986
 
7753
7987
  - Method names have changed.
@@ -7771,13 +8005,13 @@ Here are some highlights ✨:
7771
8005
  -import withMobileDialog from '@material-ui/core/withMobileDialog';
7772
8006
  +import { useTheme, useMediaQuery } from '@material-ui/core';
7773
8007
 
7774
- function ResponsiveDialog(props) {
7775
- - const { fullScreen } = props;
7776
- + const theme = useTheme();
7777
- + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
7778
- const [open, setOpen] = React.useState(false);
8008
+ function ResponsiveDialog(props) {
8009
+ - const { fullScreen } = props;
8010
+ + const theme = useTheme();
8011
+ + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
8012
+ const [open, setOpen] = React.useState(false);
7779
8013
 
7780
- // ...
8014
+ // ...
7781
8015
 
7782
8016
  -export default withMobileDialog()(ResponsiveDialog);
7783
8017
  +export default ResponsiveDialog;
@@ -8023,24 +8257,24 @@ Here are some highlights ✨:
8023
8257
  The change was done to match the API convention.
8024
8258
 
8025
8259
  ```diff
8026
- <TablePagination
8027
- - onChangeRowsPerPage={()=>{}}
8028
- - onChangePage={()=>{}}
8029
- + onRowsPerPageChange={()=>{}}
8030
- + onPageChange={()=>{}}
8260
+ <TablePagination
8261
+ - onChangeRowsPerPage={()=>{}}
8262
+ - onChangePage={()=>{}}
8263
+ + onRowsPerPageChange={()=>{}}
8264
+ + onPageChange={()=>{}}
8031
8265
  ```
8032
8266
 
8033
8267
  - [theme] Rename fade to alpha (#22834) @mnajdova
8034
8268
  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.
8035
8269
 
8036
8270
  ```diff
8037
- - import { fade } from '@material-ui/core/styles';
8038
- + import { alpha } from '@material-ui/core/styles';
8271
+ -import { fade } from '@material-ui/core/styles';
8272
+ +import { alpha } from '@material-ui/core/styles';
8039
8273
 
8040
- const classes = makeStyles(theme => ({
8274
+ const classes = makeStyles(theme => ({
8041
8275
  - backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8042
8276
  + backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8043
- }));
8277
+ }));
8044
8278
  ```
8045
8279
 
8046
8280
  - [Tooltip] Make `interactive` default (#22382) @eps1lon
@@ -8051,7 +8285,7 @@ Here are some highlights ✨:
8051
8285
  ```diff
8052
8286
  -<Tooltip>
8053
8287
  +<Tooltip disableInteractive>
8054
- # Interactive tooltips no longer need the `interactive` prop.
8288
+ # Interactive tooltips no longer need the `interactive` prop.
8055
8289
  -<Tooltip interactive>
8056
8290
  +<Tooltip>
8057
8291
  ```
@@ -8299,7 +8533,7 @@ Here are some highlights ✨:
8299
8533
  Renames `theme.palette.type` to `theme.palette.mode`, to better follow the "dark mode" term that is usually used for describing this feature.
8300
8534
 
8301
8535
  ```diff
8302
- import { createMuiTheme } from '@material-ui/core/styles';
8536
+ import { createMuiTheme } from '@material-ui/core/styles';
8303
8537
 
8304
8538
  -const theme = createMuiTheme({palette: { type: 'dark' }}),
8305
8539
  +const theme = createMuiTheme({palette: { mode: 'dark' }}),
@@ -8364,22 +8598,22 @@ Here are some highlights ✨:
8364
8598
  You can recover from the change with:
8365
8599
 
8366
8600
  ```diff
8367
- <Autocomplete
8368
- - renderOption={(option, { selected }) => (
8369
- - <React.Fragment>
8370
- + renderOption={(props, option, { selected }) => (
8371
- + <li {...props}>
8372
- <Checkbox
8373
- icon={icon}
8374
- checkedIcon={checkedIcon}
8375
- style={{ marginRight: 8 }}
8376
- checked={selected}
8377
- />
8378
- {option.title}
8379
- - </React.Fragment>
8380
- + </li>
8381
- )}
8382
- />
8601
+ <Autocomplete
8602
+ - renderOption={(option, { selected }) => (
8603
+ - <React.Fragment>
8604
+ + renderOption={(props, option, { selected }) => (
8605
+ + <li {...props}>
8606
+ <Checkbox
8607
+ icon={icon}
8608
+ checkedIcon={checkedIcon}
8609
+ style={{ marginRight: 8 }}
8610
+ checked={selected}
8611
+ />
8612
+ {option.title}
8613
+ - </React.Fragment>
8614
+ + </li>
8615
+ )}
8616
+ />
8383
8617
  ```
8384
8618
 
8385
8619
  #### Changes
@@ -8465,12 +8699,12 @@ Here are some highlights ✨:
8465
8699
  Rename `focused` to `focusVisible` for consistency with the other components:
8466
8700
 
8467
8701
  ```diff
8468
- <Accordion
8469
- classes={{
8470
- - focused: 'custom-focus-visible-classname',
8471
- + focusVisible: 'custom-focus-visible-classname',
8472
- }}
8473
- />
8702
+ <Accordion
8703
+ classes={{
8704
+ - focused: 'custom-focus-visible-classname',
8705
+ + focusVisible: 'custom-focus-visible-classname',
8706
+ }}
8707
+ />
8474
8708
  ```
8475
8709
 
8476
8710
  - [Stepper] Remove Paper and built-in padding (#22564) @mbrookes
@@ -8550,10 +8784,10 @@ Here are some highlights ✨:
8550
8784
  If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with:
8551
8785
 
8552
8786
  ```diff
8553
- <Rating
8554
- icon={customIcon}
8555
- + emptyIcon={null}
8556
- />
8787
+ <Rating
8788
+ icon={customIcon}
8789
+ + emptyIcon={null}
8790
+ />
8557
8791
  ```
8558
8792
 
8559
8793
  #### Changes
@@ -8679,9 +8913,9 @@ const theme = createMuiTheme({
8679
8913
  1. `props`
8680
8914
 
8681
8915
  ```diff
8682
- import { createMuiTheme } from '@material-ui/core/styles';
8916
+ import { createMuiTheme } from '@material-ui/core/styles';
8683
8917
 
8684
- const theme = createMuiTheme({
8918
+ const theme = createMuiTheme({
8685
8919
  - props: {
8686
8920
  - MuiButton: {
8687
8921
  - disableRipple: true,
@@ -8694,15 +8928,15 @@ const theme = createMuiTheme({
8694
8928
  + },
8695
8929
  + },
8696
8930
  + },
8697
- });
8931
+ });
8698
8932
  ```
8699
8933
 
8700
8934
  2. `overrides`
8701
8935
 
8702
8936
  ```diff
8703
- import { createMuiTheme } from '@material-ui/core/styles';
8937
+ import { createMuiTheme } from '@material-ui/core/styles';
8704
8938
 
8705
- const theme = createMuiTheme({
8939
+ const theme = createMuiTheme({
8706
8940
  - overrides: {
8707
8941
  - MuiButton: {
8708
8942
  - root: { padding: 0 },
@@ -8715,7 +8949,7 @@ const theme = createMuiTheme({
8715
8949
  + },
8716
8950
  + },
8717
8951
  + },
8718
- });
8952
+ });
8719
8953
  ```
8720
8954
 
8721
8955
  Note that if you don't have the time to upgrade the structure of the theme, you
@@ -8826,7 +9060,7 @@ Here are some highlights ✨:
8826
9060
  The onE\* transition props were removed. Use TransitionProps instead.
8827
9061
 
8828
9062
  ```diff
8829
- <Menu
9063
+ <Menu
8830
9064
  - onEnter={onEnter}
8831
9065
  - onEntered={onEntered},
8832
9066
  - onEntering={onEntered},
@@ -8841,14 +9075,14 @@ Here are some highlights ✨:
8841
9075
  + onExited,
8842
9076
  + onExiting,
8843
9077
  + }}
8844
- >
9078
+ >
8845
9079
  ```
8846
9080
 
8847
9081
  - [Popover] Remove transition onX props (#22184) @mbrookes
8848
9082
  The onE\* transition props were removed. Use TransitionProps instead.
8849
9083
 
8850
9084
  ```diff
8851
- <Popover
9085
+ <Popover
8852
9086
  - onEnter={onEnter}
8853
9087
  - onEntered={onEntered},
8854
9088
  - onEntering={onEntered},
@@ -8863,7 +9097,7 @@ Here are some highlights ✨:
8863
9097
  + onExited,
8864
9098
  + onExiting,
8865
9099
  + }}
8866
- />
9100
+ />
8867
9101
  ```
8868
9102
 
8869
9103
  - [TextField] Improve line-height reset (#22149) @imnasnainaec
@@ -9017,7 +9251,7 @@ Here are some highlights ✨:
9017
9251
  The onE\* transition props were removed. Use TransitionProps instead.
9018
9252
 
9019
9253
  ```diff
9020
- <Dialog
9254
+ <Dialog
9021
9255
  - onEnter={onEnter}
9022
9256
  - onEntered={onEntered},
9023
9257
  - onEntering={onEntered},
@@ -9032,7 +9266,7 @@ Here are some highlights ✨:
9032
9266
  + onExited,
9033
9267
  + onExiting,
9034
9268
  + }}
9035
- />
9269
+ />
9036
9270
  ```
9037
9271
 
9038
9272
  - [Fab] Rename round -> circular for consistency (#21903) @kodai3
@@ -9079,7 +9313,7 @@ Here are some highlights ✨:
9079
9313
  The onE\* transition props were removed. Use TransitionProps instead.
9080
9314
 
9081
9315
  ```diff
9082
- <Snackbar
9316
+ <Snackbar
9083
9317
  - onEnter={onEnter}
9084
9318
  - onEntered={onEntered},
9085
9319
  - onEntering={onEntered},
@@ -9094,7 +9328,7 @@ Here are some highlights ✨:
9094
9328
  + onExited,
9095
9329
  + onExiting,
9096
9330
  + }}
9097
- />
9331
+ />
9098
9332
  ```
9099
9333
 
9100
9334
  - [TextareaAutosize] Rename rowsMax->maxRows & rowsMin->minRows (#21873) @mhayk
@@ -9463,21 +9697,21 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9463
9697
  It prevents inconsistent height on scaled screens. For people customizing the color of the border, the change requires changing the override CSS property:
9464
9698
 
9465
9699
  ```diff
9466
- .MuiDivider-root {
9467
- - background-color: #f00;
9468
- + border-color: #f00;
9469
- }
9700
+ .MuiDivider-root {
9701
+ - background-color: #f00;
9702
+ + border-color: #f00;
9703
+ }
9470
9704
  ```
9471
9705
 
9472
9706
  - [Rating] Rename `visuallyhidden` to `visuallyHidden` for consistency (#21413) @mnajdova.
9473
9707
 
9474
9708
  ```diff
9475
- <Rating
9476
- classes={{
9709
+ <Rating
9710
+ classes={{
9477
9711
  - visuallyhidden: 'custom-visually-hidden-classname',
9478
9712
  + visuallyHidden: 'custom-visually-hidden-classname',
9479
- }}
9480
- />
9713
+ }}
9714
+ />
9481
9715
  ```
9482
9716
 
9483
9717
  - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
@@ -9497,10 +9731,10 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9497
9731
  The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
9498
9732
 
9499
9733
  ```diff
9500
- <TablePagination
9501
- - backIconButtonText="Avant"
9502
- - nextIconButtonText="Après
9503
- + getItemAriaLabel={…}
9734
+ <TablePagination
9735
+ - backIconButtonText="Avant"
9736
+ - nextIconButtonText="Après
9737
+ + getItemAriaLabel={…}
9504
9738
  ```
9505
9739
 
9506
9740
  - [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.