@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.
- package/Box/Box.spec.d.ts +1 -1
- package/CHANGELOG.md +447 -213
- package/Container/Container.d.ts +13 -13
- package/Container/ContainerProps.d.ts +40 -40
- package/Container/containerClasses.d.ts +22 -22
- package/Container/createContainer.d.ts +18 -18
- package/Stack/Stack.d.ts +13 -13
- package/Stack/StackProps.d.ts +42 -42
- package/Stack/createStack.d.ts +21 -21
- package/Stack/index.d.ts +5 -5
- package/Stack/stackClasses.d.ts +8 -8
- package/ThemeProvider/ThemeProvider.js +3 -1
- package/Unstable_Grid/Grid.d.ts +12 -12
- package/Unstable_Grid/GridProps.d.ts +162 -162
- package/Unstable_Grid/createGrid.d.ts +11 -11
- package/Unstable_Grid/gridClasses.d.ts +20 -20
- package/Unstable_Grid/gridGenerator.d.ts +28 -28
- package/Unstable_Grid/index.d.ts +5 -5
- package/createBox.spec.d.ts +1 -1
- package/createTheme/createSpacing.d.ts +10 -10
- package/createTheme/createSpacing.js +1 -1
- package/cssVars/createCssVarsProvider.js +11 -10
- package/cssVars/createCssVarsProvider.spec.d.ts +1 -1
- package/cssVars/createGetCssVar.d.ts +5 -5
- package/cssVars/cssVarsParser.d.ts +65 -65
- package/cssVars/cssVarsParser.js +1 -1
- package/cssVars/getInitColorSchemeScript.d.ts +42 -42
- package/cssVars/index.d.ts +3 -3
- package/cssVars/useCurrentColorScheme.d.ts +53 -53
- package/esm/ThemeProvider/ThemeProvider.js +2 -1
- package/esm/createTheme/createSpacing.js +1 -1
- package/esm/cssVars/createCssVarsProvider.js +11 -10
- package/esm/cssVars/cssVarsParser.js +1 -1
- package/esm/palette.js +15 -3
- package/esm/style.js +1 -1
- package/index.js +1 -1
- package/index.spec.d.ts +1 -1
- package/legacy/ThemeProvider/ThemeProvider.js +2 -1
- package/legacy/createTheme/createSpacing.js +1 -1
- package/legacy/cssVars/createCssVarsProvider.js +6 -3
- package/legacy/cssVars/cssVarsParser.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/palette.js +15 -3
- package/legacy/style.js +1 -1
- package/modern/ThemeProvider/ThemeProvider.js +2 -1
- package/modern/createTheme/createSpacing.js +1 -1
- package/modern/cssVars/createCssVarsProvider.js +11 -10
- package/modern/cssVars/cssVarsParser.js +1 -1
- package/modern/index.js +1 -1
- package/modern/palette.js +15 -3
- package/modern/style.js +1 -1
- package/package.json +1 -1
- package/palette.js +14 -3
- package/style.d.ts +4 -1
- package/style.js +1 -1
- 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
|
+
- ​<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
|
|
17
|
+
- ​<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
|
|
18
|
+
- ​<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
|
|
19
|
+
- ​<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari
|
|
20
|
+
|
|
21
|
+
### `@mui/base@5.0.0-alpha.104`
|
|
22
|
+
|
|
23
|
+
- ​<!-- 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
|
+
- ​<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
|
|
28
|
+
- ​<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
|
|
29
|
+
- ​<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj
|
|
30
|
+
|
|
31
|
+
### Docs
|
|
32
|
+
|
|
33
|
+
- ​<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
|
|
34
|
+
- ​<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
|
|
35
|
+
- ​<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
|
|
36
|
+
- ​<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
|
|
37
|
+
- ​<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
|
|
38
|
+
- ​<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
|
|
39
|
+
- ​<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
|
|
40
|
+
- ​<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
|
|
41
|
+
- ​<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
|
|
42
|
+
- ​<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
|
|
43
|
+
- ​<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
|
|
44
|
+
- ​<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
|
|
45
|
+
- ​<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
|
|
46
|
+
- ​<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
|
|
47
|
+
- ​<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
|
|
48
|
+
- ​<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
|
|
49
|
+
- ​<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
|
|
50
|
+
- ​<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
|
|
51
|
+
- ​<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
|
|
52
|
+
- ​<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
|
|
53
|
+
- ​<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari
|
|
54
|
+
|
|
55
|
+
### Core
|
|
56
|
+
|
|
57
|
+
- ​<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
|
|
58
|
+
- ​<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
|
|
59
|
+
- ​<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
|
|
60
|
+
- ​<!-- 33 -->[core] Fix duplicate id @oliviertassinari
|
|
61
|
+
- ​<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
|
|
62
|
+
- ​<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
|
|
63
|
+
- ​<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
|
|
64
|
+
- ​<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
|
|
65
|
+
- ​<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
|
|
66
|
+
- ​<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
|
|
67
|
+
- ​<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
|
|
68
|
+
- ​<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
|
|
69
|
+
- ​<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
|
|
70
|
+
- ​<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
|
|
71
|
+
- ​<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
|
|
72
|
+
- ​<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
|
|
73
|
+
- ​<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
|
|
74
|
+
- ​<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
|
|
75
|
+
- ​<!-- 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
|
-
-
|
|
158
|
-
+
|
|
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.
|
|
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
|
-
|
|
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
|
-
-
|
|
2031
|
-
+
|
|
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
|
-
-
|
|
2374
|
-
+
|
|
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
|
-
|
|
4418
|
-
-
|
|
4646
|
+
<button class="MuiTab-root">
|
|
4647
|
+
- <span class="MuiTab-wrapper">
|
|
4419
4648
|
{icon}
|
|
4420
4649
|
{label}
|
|
4421
|
-
-
|
|
4422
|
-
|
|
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
|
-
|
|
4431
|
-
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
-
|
|
4437
|
-
|
|
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
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
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
|
-
|
|
4586
|
-
|
|
4587
|
-
-
|
|
4588
|
-
+
|
|
4589
|
-
-
|
|
4590
|
-
+
|
|
4591
|
-
-
|
|
4592
|
-
+
|
|
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
|
- ​<!-- 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
|
-
|
|
4639
|
-
-
|
|
4640
|
-
|
|
4641
|
-
-
|
|
4642
|
-
|
|
4867
|
+
<button class="MuiIconButton-root">
|
|
4868
|
+
- <span class="MuiIconButton-label">
|
|
4869
|
+
<svg />
|
|
4870
|
+
- </span>
|
|
4871
|
+
</button>
|
|
4643
4872
|
```
|
|
4644
4873
|
|
|
4645
4874
|
- ​<!-- 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
|
-
|
|
4769
|
-
-
|
|
4770
|
-
|
|
4771
|
-
-
|
|
4772
|
-
|
|
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
|
- ​<!-- 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
|
- ​<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
|
|
4922
5151
|
|
|
4923
5152
|
```diff
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
+
|
|
4929
|
-
|
|
4930
|
-
-
|
|
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
|
-
|
|
5154
|
-
-
|
|
5155
|
-
+
|
|
5156
|
-
|
|
5383
|
+
<TablePagination
|
|
5384
|
+
- classes={{ input: 'foo' }}
|
|
5385
|
+
+ classes={{ select: 'foo' }}
|
|
5386
|
+
/>
|
|
5157
5387
|
```
|
|
5158
5388
|
|
|
5159
5389
|
- ​<!-- 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
|
- ​<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
|
|
5199
5429
|
|
|
5200
5430
|
```diff
|
|
5201
|
-
|
|
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
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
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
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
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
|
- ​<!-- 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
|
- ​<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
|
|
5673
5907
|
|
|
5674
5908
|
```diff
|
|
5675
|
-
|
|
5676
|
-
-
|
|
5677
|
-
+
|
|
5678
|
-
+
|
|
5679
|
-
|
|
5680
|
-
|
|
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
|
-
|
|
5686
|
-
-
|
|
5687
|
-
+
|
|
5688
|
-
+
|
|
5689
|
-
|
|
5690
|
-
|
|
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
|
- ​<!-- 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
|
-
|
|
5847
|
-
|
|
5848
|
-
-
|
|
5849
|
-
+
|
|
5850
|
-
|
|
5851
|
-
|
|
6080
|
+
createMuiTheme({
|
|
6081
|
+
components: {
|
|
6082
|
+
- MuiDayPicker: {},
|
|
6083
|
+
+ MuiCalendarPicker: {},
|
|
6084
|
+
}
|
|
6085
|
+
})
|
|
5852
6086
|
```
|
|
5853
6087
|
|
|
5854
6088
|
- ​<!-- 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
|
- ​<!-- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6567
|
-
-
|
|
6568
|
-
+
|
|
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
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
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
|
-
|
|
6817
|
-
|
|
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
|
-
|
|
7360
|
-
-
|
|
7361
|
-
-
|
|
7362
|
-
+
|
|
7363
|
-
+
|
|
7364
|
-
+
|
|
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
|
-
|
|
7374
|
-
-
|
|
7375
|
-
-
|
|
7376
|
-
+
|
|
7377
|
-
+
|
|
7378
|
-
+
|
|
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
|
-
|
|
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
|
-
|
|
7748
|
-
|
|
7749
|
-
-
|
|
7750
|
-
+
|
|
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
|
-
|
|
7775
|
-
-
|
|
7776
|
-
+
|
|
7777
|
-
+
|
|
7778
|
-
|
|
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
|
-
|
|
8027
|
-
-
|
|
8028
|
-
-
|
|
8029
|
-
+
|
|
8030
|
-
+
|
|
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
|
-
-
|
|
8038
|
-
+
|
|
8271
|
+
-import { fade } from '@material-ui/core/styles';
|
|
8272
|
+
+import { alpha } from '@material-ui/core/styles';
|
|
8039
8273
|
|
|
8040
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8368
|
-
-
|
|
8369
|
-
-
|
|
8370
|
-
+
|
|
8371
|
-
+
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
-
|
|
8380
|
-
+
|
|
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
|
-
|
|
8469
|
-
|
|
8470
|
-
-
|
|
8471
|
-
+
|
|
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
|
-
|
|
8554
|
-
|
|
8555
|
-
+
|
|
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
|
-
|
|
8916
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8683
8917
|
|
|
8684
|
-
|
|
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
|
-
|
|
8937
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8704
8938
|
|
|
8705
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9467
|
-
-
|
|
9468
|
-
+
|
|
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
|
-
|
|
9476
|
-
|
|
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
|
-
|
|
9501
|
-
-
|
|
9502
|
-
-
|
|
9503
|
-
+
|
|
9734
|
+
<TablePagination
|
|
9735
|
+
- backIconButtonText="Avant"
|
|
9736
|
+
- nextIconButtonText="Après
|
|
9737
|
+
+ getItemAriaLabel={…}
|
|
9504
9738
|
```
|
|
9505
9739
|
|
|
9506
9740
|
- [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.
|