@mui/system 5.10.10 → 5.10.13
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 +414 -194
- 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/getInitColorSchemeScript.d.ts +42 -42
- package/cssVars/getInitColorSchemeScript.js +1 -1
- 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/getInitColorSchemeScript.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/getInitColorSchemeScript.js +1 -1
- package/legacy/index.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/getInitColorSchemeScript.js +1 -1
- package/modern/index.js +1 -1
- package/package.json +1 -1
- package/styleFunctionSx/styleFunctionSx.spec.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,219 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v5.10.13
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.10.12..master -->
|
|
6
|
+
|
|
7
|
+
_Nov 7, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 The slots API has been introduced to the Material UI package by @michaldudak (#34873).
|
|
12
|
+
- 🔥 Live editting of demos is stabilized by @oliviertassinari (#34870).
|
|
13
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
14
|
+
|
|
15
|
+
### `@mui/material@5.10.13`
|
|
16
|
+
|
|
17
|
+
- ​<!-- 08 -->[material-ui] Introduce the slots API (#34873) @michaldudak
|
|
18
|
+
- ​<!-- 07 -->[NativeSelectInput] Support CSS theme variables (#34975) @siriwatknp
|
|
19
|
+
|
|
20
|
+
### `@mui/system@5.10.13`
|
|
21
|
+
|
|
22
|
+
- ​<!-- 05 -->[system] Add a missing key attribute in getInitColorScheme to fix key issue (#34992) @akshaya-venkatesh8
|
|
23
|
+
|
|
24
|
+
### `@mui/base@5.0.0-alpha.105`
|
|
25
|
+
|
|
26
|
+
- ​<!-- 26 -->[base] Avoid calling setState during renders (#34916) @Janpot
|
|
27
|
+
|
|
28
|
+
### `@mui/joy@5.0.0-alpha.53`
|
|
29
|
+
|
|
30
|
+
- ​<!-- 06 -->[Select] Fix custom options menu not opening on Avatar click (#34648) @shivam1646
|
|
31
|
+
|
|
32
|
+
### Docs
|
|
33
|
+
|
|
34
|
+
- ​<!-- 20 -->[docs] Add a guide for setting dark mode by default (#34839) @siriwatknp
|
|
35
|
+
- ​<!-- 19 -->[docs] Improve code font family (#35027) @oliviertassinari
|
|
36
|
+
- ​<!-- 18 -->[docs] Revise and expand Joy UI "Alert" page (#34838) @samuelsycamore
|
|
37
|
+
- ​<!-- 17 -->[docs] Live demos v2 (#34870) @oliviertassinari
|
|
38
|
+
- ​<!-- 16 -->[docs] Fix 301 links in the docs @oliviertassinari
|
|
39
|
+
- ​<!-- 15 -->[docs] Fix code display in RTL (#34951) @oliviertassinari
|
|
40
|
+
- ​<!-- 14 -->[docs] New API design rule disabled > disable (#34972) @oliviertassinari
|
|
41
|
+
- ​<!-- 13 -->[docs] Explain the usage of Select's onOpen/onClose in the uncontrolled mode (#34755) @michaldudak
|
|
42
|
+
- ​<!-- 12 -->[docs] Add a new gold sponsor (#34984) @hbjORbj
|
|
43
|
+
- ​<!-- 11 -->[docs] Add author and published_time meta tags (#34382) @alexfauquette
|
|
44
|
+
- ​<!-- 10 -->[examples] Next.js examples v13 - fonts (#34971) @PetroSilenius
|
|
45
|
+
- ​<!-- 09 -->[examples] Next.js examples v13 - links (#34970) @PetroSilenius
|
|
46
|
+
- ​<!-- 04 -->[website] Update IPinfo.AI name @oliviertassinari
|
|
47
|
+
- ​<!-- 03 -->[website] Remove date-io from the docs dependencies (#34748) @michaldudak
|
|
48
|
+
- ​<!-- 02 -->[website] Migrate Design-kits page to use CSS theme variables (#34920) @jesrodri
|
|
49
|
+
- ​<!-- 01 -->[website] Migrate Pricing page to use CSS theme variables (#34917) @trizotti
|
|
50
|
+
|
|
51
|
+
### Core
|
|
52
|
+
|
|
53
|
+
- ​<!-- 25 -->[core] Remove default access to GitHub action scopes @oliviertassinari
|
|
54
|
+
- ​<!-- 24 -->[core] Fix Pinned-Dependencies @oliviertassinari
|
|
55
|
+
- ​<!-- 23 -->[core] Fix typos in the component name @oliviertassinari
|
|
56
|
+
- ​<!-- 22 -->[core] Fix scorecard regression @oliviertassinari
|
|
57
|
+
- ​<!-- 21 -->[core] Create the docs theme once (#34954) @oliviertassinari
|
|
58
|
+
|
|
59
|
+
All contributors of this release in alphabetical order: @akshaya-venkatesh8, @alexfauquette, @hbjORbj, @Janpot, @jesrodri, @michaldudak, @oliviertassinari, @PetroSilenius, @samuelsycamore, @shivam1646, @siriwatknp, @trizotti
|
|
60
|
+
|
|
61
|
+
## v5.10.12
|
|
62
|
+
|
|
63
|
+
<!-- generated comparing v5.10.11..master -->
|
|
64
|
+
|
|
65
|
+
_Oct 31, 2022_
|
|
66
|
+
|
|
67
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
68
|
+
|
|
69
|
+
- 🚀 The LinearProgress component has been added to Joy UI by @hbjORbj (#34514).
|
|
70
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
71
|
+
|
|
72
|
+
### `@mui/material@5.10.12`
|
|
73
|
+
|
|
74
|
+
- ​<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
|
|
75
|
+
- ​<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
|
|
76
|
+
- ​<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
|
|
77
|
+
- ​<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari
|
|
78
|
+
|
|
79
|
+
### `@mui/base@5.0.0-alpha.104`
|
|
80
|
+
|
|
81
|
+
- ​<!-- 38 -->[ButtonUnstyled] Update to render as link when href or to is provided (#34337) @EduardoSCosta
|
|
82
|
+
|
|
83
|
+
### `@mui/joy@5.0.0-alpha.52`
|
|
84
|
+
|
|
85
|
+
- ​<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
|
|
86
|
+
- ​<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
|
|
87
|
+
- ​<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj
|
|
88
|
+
|
|
89
|
+
### Docs
|
|
90
|
+
|
|
91
|
+
- ​<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
|
|
92
|
+
- ​<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
|
|
93
|
+
- ​<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
|
|
94
|
+
- ​<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
|
|
95
|
+
- ​<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
|
|
96
|
+
- ​<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
|
|
97
|
+
- ​<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
|
|
98
|
+
- ​<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
|
|
99
|
+
- ​<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
|
|
100
|
+
- ​<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
|
|
101
|
+
- ​<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
|
|
102
|
+
- ​<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
|
|
103
|
+
- ​<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
|
|
104
|
+
- ​<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
|
|
105
|
+
- ​<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
|
|
106
|
+
- ​<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
|
|
107
|
+
- ​<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
|
|
108
|
+
- ​<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
|
|
109
|
+
- ​<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
|
|
110
|
+
- ​<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
|
|
111
|
+
- ​<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari
|
|
112
|
+
|
|
113
|
+
### Core
|
|
114
|
+
|
|
115
|
+
- ​<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
|
|
116
|
+
- ​<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
|
|
117
|
+
- ​<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
|
|
118
|
+
- ​<!-- 33 -->[core] Fix duplicate id @oliviertassinari
|
|
119
|
+
- ​<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
|
|
120
|
+
- ​<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
|
|
121
|
+
- ​<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
|
|
122
|
+
- ​<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
|
|
123
|
+
- ​<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
|
|
124
|
+
- ​<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
|
|
125
|
+
- ​<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
|
|
126
|
+
- ​<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
|
|
127
|
+
- ​<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
|
|
128
|
+
- ​<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
|
|
129
|
+
- ​<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
|
|
130
|
+
- ​<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
|
|
131
|
+
- ​<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
|
|
132
|
+
- ​<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
|
|
133
|
+
- ​<!-- 06 -->[test] Use screen when possible for simplicity (#34890) @oliviertassinari
|
|
134
|
+
|
|
135
|
+
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
|
|
136
|
+
|
|
137
|
+
## v5.10.11
|
|
138
|
+
|
|
139
|
+
<!-- generated comparing v5.10.10..master -->
|
|
140
|
+
|
|
141
|
+
_Oct 25, 2022_
|
|
142
|
+
|
|
143
|
+
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
144
|
+
|
|
145
|
+
- 🔧 Moved `components` to `slots` prop starting at MUI Base to create consistency across products
|
|
146
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
|
|
147
|
+
|
|
148
|
+
### `@mui/material@5.10.11`
|
|
149
|
+
|
|
150
|
+
- [InputBase] Fix `onInvalid` to use HTMLInputElement | HTMLTextAreaElement Element type (#33162) @KuSh
|
|
151
|
+
- [Alert] Add `components` and `componentsProps` props to allow close action overrides (#33582) @jake-collibra
|
|
152
|
+
|
|
153
|
+
### `@mui/base@5.0.0-alpha.103`
|
|
154
|
+
|
|
155
|
+
#### BREAKING CHANGE
|
|
156
|
+
|
|
157
|
+
- [base] `components` -> `slots` API rename (#34693) @michaldudak
|
|
158
|
+
|
|
159
|
+
- Change all occurrences of components and componentsProps props in Base components to slots and slotProps, respectively.
|
|
160
|
+
- Change casing of slots' fields to camelCase
|
|
161
|
+
|
|
162
|
+
```diff
|
|
163
|
+
-<SwitchUnstyled components={{Root: CustomRoot}} componentsProps={{rail: { className: 'custom-rail' }}} />
|
|
164
|
+
+<SwitchUnstyled slots={{root: CustomRoot}} slotProps={{rail: { className: 'custom-rail' }}} />
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
- [base] Make CSS class prefixes consistent (#33411) @michaldudak
|
|
168
|
+
|
|
169
|
+
**This is a breaking change for anyone who depends on the class names applied to Base components.**
|
|
170
|
+
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.
|
|
171
|
+
|
|
172
|
+
```diff
|
|
173
|
+
-.ButtonUnstyled-root { ... };
|
|
174
|
+
+.MuiButton-root { ... };
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
#### Changes
|
|
178
|
+
|
|
179
|
+
- [test] Test all Base components with describeConformanceUnstyled (#34825) @michaldudak
|
|
180
|
+
|
|
181
|
+
### `@mui/joy@5.0.0-alpha.51`
|
|
182
|
+
|
|
183
|
+
- [CircularProgress][joy] Fix classnames and add test (#34806) @hbjORbj
|
|
184
|
+
- [Joy] Allow string type for `size` prop in components (#34805) @hbjORbj
|
|
185
|
+
|
|
186
|
+
### Docs
|
|
187
|
+
|
|
188
|
+
- Revert "[docs] Fix search icons in other languages (#34823)" @oliviertassinari
|
|
189
|
+
- Revert "[core] Move SearchIcons to docs src folder (#34802)" @oliviertassinari
|
|
190
|
+
- Revert "[docs] Live demos (#34454)" @oliviertassinari
|
|
191
|
+
- Update the order of operations for pagination example so that slicing takes place after sorting. (#34189) @marceliwac
|
|
192
|
+
- [docs] Gatsby Description in Joy dark-mode (#34702) @pixelass
|
|
193
|
+
- [docs] Add notification for blogpost MUI X v6 alpha (#34809) @joserodolfofreitas
|
|
194
|
+
- [docs] Polish Crowdin config (#34852) @oliviertassinari
|
|
195
|
+
- [docs] Fix a few style standard deviations @oliviertassinari
|
|
196
|
+
- [docs] Enforce no trailing spaces (#34762) @oliviertassinari
|
|
197
|
+
- [docs] Enforce correct git diff format (#34765) @oliviertassinari
|
|
198
|
+
- [docs] Fix Toolpad docs 301 route (#34843) @bharatkashyap
|
|
199
|
+
- [docs] Replace initial value with theme white (#34822) @siriwatknp
|
|
200
|
+
- [docs] Remove localization redirects (#34844) @mnajdova
|
|
201
|
+
- [docs] Fix search icons in other languages (#34823) @siriwatknp
|
|
202
|
+
- [docs] Fix JavaScript capitalization @oliviertassinari
|
|
203
|
+
- [docs] Update new links to MD2 (#34848) @oliviertassinari
|
|
204
|
+
- [website] Update future work items on X landing page (#34810) @joserodolfofreitas
|
|
205
|
+
- [website] Add Toolpad docs to navigation (#34749) @bharatkashyap
|
|
206
|
+
|
|
207
|
+
### Core
|
|
208
|
+
|
|
209
|
+
- [core] Remove dead files (#34850) @oliviertassinari
|
|
210
|
+
- [core] Fix revert conflict @oliviertassinari
|
|
211
|
+
- [core] Fix a few CodeQL errors (#34766) @oliviertassinari
|
|
212
|
+
- [core] Harden GitHub Actions permissions (#34769) @oliviertassinari
|
|
213
|
+
- [core] Remove the codeowners file (#34876) @michaldudak
|
|
214
|
+
|
|
215
|
+
All contributors of this release in alphabetical order: @bharatkashyap, @hbjORbj, @jake-collibra, @joserodolfofreitas, @KuSh, @marceliwac, @michaldudak, @oliviertassinari, @pixelass, @siriwatknp
|
|
216
|
+
|
|
3
217
|
## 5.10.10
|
|
4
218
|
|
|
5
219
|
<!-- generated comparing v5.10.9..master -->
|
|
@@ -1701,7 +1915,8 @@ All contributors of this release in alphabetical order: @abhinav-22-tech, @ainat
|
|
|
1701
1915
|
|
|
1702
1916
|
_Apr 18, 2022_
|
|
1703
1917
|
|
|
1704
|
-
A big thanks to the 11 contributors who made this release possible.
|
|
1918
|
+
A big thanks to the 11 contributors who made this release possible.
|
|
1919
|
+
This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
1705
1920
|
|
|
1706
1921
|
### `@mui/material@5.6.2`
|
|
1707
1922
|
|
|
@@ -1760,7 +1975,7 @@ All contributors of this release in alphabetical order: @abaker93, @cherniavskii
|
|
|
1760
1975
|
|
|
1761
1976
|
_Apr 11, 2022_
|
|
1762
1977
|
|
|
1763
|
-
A big thanks to the 8 contributors who made this release possible.
|
|
1978
|
+
A big thanks to the 8 contributors who made this release possible.
|
|
1764
1979
|
This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
1765
1980
|
|
|
1766
1981
|
### `@mui/material@5.6.1`
|
|
@@ -1923,7 +2138,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
1923
2138
|
-import { Unstyled_TrapFocus } from '@mui/base';
|
|
1924
2139
|
+import { TrapFocus } from '@mui/base';
|
|
1925
2140
|
|
|
1926
|
-
|
|
2141
|
+
// or
|
|
1927
2142
|
|
|
1928
2143
|
-import TrapFocus from '@mui/base/Unstyled_TrapFocus';
|
|
1929
2144
|
+import TrapFocus from '@mui/base/TrapFocus';
|
|
@@ -4539,15 +4754,15 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
4539
4754
|
Make the default rendered text field closer to the most common use cases (denser).
|
|
4540
4755
|
|
|
4541
4756
|
```diff
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4757
|
+
<DatePicker
|
|
4758
|
+
label="Helper text example"
|
|
4759
|
+
value={value}
|
|
4760
|
+
onChange={onChange}
|
|
4761
|
+
renderInput={(params) => (
|
|
4547
4762
|
- <TextField {...params} />
|
|
4548
4763
|
+ <TextField {...params} helperText={params?.inputProps?.placeholder} />
|
|
4549
|
-
|
|
4550
|
-
|
|
4764
|
+
)}
|
|
4765
|
+
>
|
|
4551
4766
|
```
|
|
4552
4767
|
|
|
4553
4768
|
#### Changes
|
|
@@ -4609,7 +4824,7 @@ _Jun 23, 2021_
|
|
|
4609
4824
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
4610
4825
|
|
|
4611
4826
|
- 🚀 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.
|
|
4612
|
-
- 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
|
|
4827
|
+
- 🎨 We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
|
|
4613
4828
|
|
|
4614
4829
|
<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>
|
|
4615
4830
|
|
|
@@ -4653,16 +4868,16 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4653
4868
|
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).
|
|
4654
4869
|
|
|
4655
4870
|
```diff
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
-
|
|
4660
|
-
+
|
|
4661
|
-
-
|
|
4662
|
-
+
|
|
4663
|
-
-
|
|
4664
|
-
+
|
|
4665
|
-
|
|
4871
|
+
{
|
|
4872
|
+
xs: 0,
|
|
4873
|
+
sm: 600,
|
|
4874
|
+
- md: 960,
|
|
4875
|
+
+ md: 900,
|
|
4876
|
+
- lg: 1280,
|
|
4877
|
+
+ lg: 1200,
|
|
4878
|
+
- xl: 1920,
|
|
4879
|
+
+ xl: 1536,
|
|
4880
|
+
}
|
|
4666
4881
|
```
|
|
4667
4882
|
|
|
4668
4883
|
If you prefer the old breakpoint values, use the snippet below.
|
|
@@ -4694,7 +4909,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4694
4909
|
|
|
4695
4910
|
- ​<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
|
|
4696
4911
|
|
|
4697
|
-
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/).
|
|
4912
|
+
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/).
|
|
4698
4913
|
|
|
4699
4914
|
<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>
|
|
4700
4915
|
|
|
@@ -4707,11 +4922,11 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4707
4922
|
`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).
|
|
4708
4923
|
|
|
4709
4924
|
```diff
|
|
4710
|
-
|
|
4711
|
-
-
|
|
4712
|
-
|
|
4713
|
-
-
|
|
4714
|
-
|
|
4925
|
+
<button class="MuiIconButton-root">
|
|
4926
|
+
- <span class="MuiIconButton-label">
|
|
4927
|
+
<svg />
|
|
4928
|
+
- </span>
|
|
4929
|
+
</button>
|
|
4715
4930
|
```
|
|
4716
4931
|
|
|
4717
4932
|
- ​<!-- 19 -->[core] Remove `unstable_` prefix on the `useThemeProps` hook (#26777) @mnajdova
|
|
@@ -4837,11 +5052,11 @@ A big thanks to the 11 contributors who made this release possible. Here are som
|
|
|
4837
5052
|
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.
|
|
4838
5053
|
|
|
4839
5054
|
```diff
|
|
4840
|
-
|
|
4841
|
-
-
|
|
4842
|
-
|
|
4843
|
-
-
|
|
4844
|
-
|
|
5055
|
+
<button class="MuiButton-root">
|
|
5056
|
+
- <span class="MuiButton-label">
|
|
5057
|
+
children
|
|
5058
|
+
- </span>
|
|
5059
|
+
</button>
|
|
4845
5060
|
```
|
|
4846
5061
|
|
|
4847
5062
|
#### Changes
|
|
@@ -4870,7 +5085,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
|
|
|
4870
5085
|
+ const theme = useTheme();
|
|
4871
5086
|
+ const isRtl = theme.direction === 'rtl';
|
|
4872
5087
|
//.. rest of the code
|
|
4873
|
-
|
|
5088
|
+
}
|
|
4874
5089
|
```
|
|
4875
5090
|
|
|
4876
5091
|
#### Changes
|
|
@@ -4942,7 +5157,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4942
5157
|
|
|
4943
5158
|
- ​<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
|
|
4944
5159
|
|
|
4945
|
-
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.
|
|
5160
|
+
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.
|
|
4946
5161
|
|
|
4947
5162
|
```jsx
|
|
4948
5163
|
<AppBar enableColorOnDark />
|
|
@@ -4993,13 +5208,14 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4993
5208
|
- ​<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
|
|
4994
5209
|
|
|
4995
5210
|
```diff
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
+
|
|
5001
|
-
|
|
5002
|
-
-
|
|
5211
|
+
<DateTimePicker
|
|
5212
|
+
components={{
|
|
5213
|
+
LeftArrowIcon: AlarmIcon,
|
|
5214
|
+
RightArrowIcon: SnoozeIcon,
|
|
5215
|
+
+ OpenPickerIcon: ClockIcon,
|
|
5216
|
+
}}
|
|
5217
|
+
- openPickerIcon={<ClockIcon />}
|
|
5218
|
+
>
|
|
5003
5219
|
```
|
|
5004
5220
|
|
|
5005
5221
|
### `@material-ui/system@5.0.0-alpha.36`
|
|
@@ -5103,8 +5319,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
5103
5319
|
|
|
5104
5320
|
Update the implementation to better match Material Design:
|
|
5105
5321
|
|
|
5106
|
-
- Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://material.io/components/tabs#specs)
|
|
5107
|
-
- Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://material.io/components/tabs#specs)
|
|
5322
|
+
- Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
|
|
5323
|
+
- Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
|
|
5108
5324
|
|
|
5109
5325
|
#### Changes
|
|
5110
5326
|
|
|
@@ -5222,10 +5438,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
5222
5438
|
Move the custom class on `input` to `select`. The `input` key is being applied on another element.
|
|
5223
5439
|
|
|
5224
5440
|
```diff
|
|
5225
|
-
|
|
5226
|
-
-
|
|
5227
|
-
+
|
|
5228
|
-
|
|
5441
|
+
<TablePagination
|
|
5442
|
+
- classes={{ input: 'foo' }}
|
|
5443
|
+
+ classes={{ select: 'foo' }}
|
|
5444
|
+
/>
|
|
5229
5445
|
```
|
|
5230
5446
|
|
|
5231
5447
|
- ​<!-- 45 -->[core] Move `StyledEngineProvider` to `@material-ui/core/styles` (#26265) @mnajdova
|
|
@@ -5270,10 +5486,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
5270
5486
|
- ​<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
|
|
5271
5487
|
|
|
5272
5488
|
```diff
|
|
5273
|
-
|
|
5489
|
+
<Autocomplete
|
|
5274
5490
|
- getOptionSelected={(option, value) => option.title === value.title}
|
|
5275
5491
|
+ isOptionEqualToValue={(option, value) => option.title === value.title}
|
|
5276
|
-
|
|
5492
|
+
/>
|
|
5277
5493
|
```
|
|
5278
5494
|
|
|
5279
5495
|
> Follow [this link](https://mui.com/material-ui/migration/migration-v4/) for full migration from v4 => v5
|
|
@@ -5376,18 +5592,20 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
5376
5592
|
Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
|
|
5377
5593
|
|
|
5378
5594
|
```diff
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
}
|
|
5595
|
+
import * as React from 'react';
|
|
5596
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
5597
|
+
|
|
5598
|
+
const MyComponent = withStyles({
|
|
5599
|
+
root: {
|
|
5600
|
+
backgroundColor: 'red',
|
|
5601
|
+
},
|
|
5602
|
+
})(({ classes }) => <div className={classes.root} />);
|
|
5603
|
+
|
|
5604
|
+
function MyOtherComponent(props) {
|
|
5605
|
+
const ref = React.useRef();
|
|
5606
|
+
- return <MyComponent innerRef={ref} />;
|
|
5607
|
+
+ return <MyComponent ref={ref} />;
|
|
5608
|
+
}
|
|
5391
5609
|
```
|
|
5392
5610
|
|
|
5393
5611
|
**withTheme**
|
|
@@ -5395,14 +5613,16 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
5395
5613
|
Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
|
|
5396
5614
|
|
|
5397
5615
|
```diff
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
}
|
|
5616
|
+
import * as React from 'react';
|
|
5617
|
+
import { withTheme } from '@material-ui/core/styles';
|
|
5618
|
+
|
|
5619
|
+
const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
|
|
5620
|
+
|
|
5621
|
+
function MyOtherComponent(props) {
|
|
5622
|
+
const ref = React.useRef();
|
|
5623
|
+
- return <MyComponent innerRef={ref} />;
|
|
5624
|
+
+ return <MyComponent ref={ref} />;
|
|
5625
|
+
}
|
|
5406
5626
|
```
|
|
5407
5627
|
|
|
5408
5628
|
- ​<!-- 10 -->[theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
|
|
@@ -5744,23 +5964,23 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
5744
5964
|
- ​<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
|
|
5745
5965
|
|
|
5746
5966
|
```diff
|
|
5747
|
-
|
|
5748
|
-
-
|
|
5749
|
-
+
|
|
5750
|
-
+
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5967
|
+
function MyCheckbox() {
|
|
5968
|
+
- const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
|
|
5969
|
+
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
5970
|
+
+ const checked = event.target.checked;
|
|
5971
|
+
};
|
|
5972
|
+
return <Checkbox onChange={handleChange} />;
|
|
5973
|
+
}
|
|
5754
5974
|
```
|
|
5755
5975
|
|
|
5756
5976
|
```diff
|
|
5757
|
-
|
|
5758
|
-
-
|
|
5759
|
-
+
|
|
5760
|
-
+
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5977
|
+
function MySwitch() {
|
|
5978
|
+
- const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
|
|
5979
|
+
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
5980
|
+
+ const checked = event.target.checked;
|
|
5981
|
+
};
|
|
5982
|
+
return <Switch onChange={handleChange} />;
|
|
5983
|
+
}
|
|
5764
5984
|
```
|
|
5765
5985
|
|
|
5766
5986
|
- ​<!-- 42 -->[theme] Remove theme.breakpoints.width helper (#25918) @m4theushw
|
|
@@ -5915,12 +6135,12 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
5915
6135
|
-import DayPicker from '@material-ui/lab/DayPicker';
|
|
5916
6136
|
+import CalendarPicker from '@material-ui/lab/CalendarPicker';
|
|
5917
6137
|
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
-
|
|
5921
|
-
+
|
|
5922
|
-
|
|
5923
|
-
|
|
6138
|
+
createMuiTheme({
|
|
6139
|
+
components: {
|
|
6140
|
+
- MuiDayPicker: {},
|
|
6141
|
+
+ MuiCalendarPicker: {},
|
|
6142
|
+
}
|
|
6143
|
+
})
|
|
5924
6144
|
```
|
|
5925
6145
|
|
|
5926
6146
|
- ​<!-- 04 -->[Pickers] Rename PickersCalendarSkeleton to CalendarPickerSkeleton (#25679) @eps1lon
|
|
@@ -6444,10 +6664,10 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
6444
6664
|
|
|
6445
6665
|
- ​<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
|
|
6446
6666
|
|
|
6447
|
-
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:
|
|
6667
|
+
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:
|
|
6448
6668
|
|
|
6449
6669
|
```diff
|
|
6450
|
-
|
|
6670
|
+
// AmpStories -> Download
|
|
6451
6671
|
-AmpStories
|
|
6452
6672
|
+Download
|
|
6453
6673
|
-AmpStoriesOutlined
|
|
@@ -6458,7 +6678,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
6458
6678
|
+DownloadSharp
|
|
6459
6679
|
-AmpStoriesTwoTone
|
|
6460
6680
|
+DownloadTwoTone
|
|
6461
|
-
|
|
6681
|
+
// Outbond -> Outbound
|
|
6462
6682
|
-Outbond
|
|
6463
6683
|
+Outbound
|
|
6464
6684
|
-OutbondOutlined
|
|
@@ -6635,10 +6855,10 @@ A big thanks to the 30 contributors who made this release possible. Here are som
|
|
|
6635
6855
|
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}>`.
|
|
6636
6856
|
|
|
6637
6857
|
```diff
|
|
6638
|
-
|
|
6639
|
-
-
|
|
6640
|
-
+
|
|
6641
|
-
|
|
6858
|
+
<Box
|
|
6859
|
+
- gap={2}
|
|
6860
|
+
+ gap="2px"
|
|
6861
|
+
>
|
|
6642
6862
|
```
|
|
6643
6863
|
|
|
6644
6864
|
### `@material-ui/styled-engine@5.0.0-alpha.25`
|
|
@@ -6879,14 +7099,14 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
6879
7099
|
--- a/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
|
|
6880
7100
|
+++ b/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
|
|
6881
7101
|
@@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField';
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
7102
|
+
import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
|
|
7103
|
+
import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
|
|
7104
|
+
import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
|
|
6885
7105
|
-import DateRangeDelimiter from '@material-ui/lab/DateRangeDelimiter';
|
|
6886
7106
|
+import Box from '@material-ui/core/Box';
|
|
6887
7107
|
|
|
6888
|
-
|
|
6889
|
-
|
|
7108
|
+
export default function BasicDateRangePicker() {
|
|
7109
|
+
const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
|
|
6890
7110
|
@@ -20,7 +20,7 @@ export default function BasicDateRangePicker() {
|
|
6891
7111
|
renderInput={(startProps, endProps) => (
|
|
6892
7112
|
<React.Fragment>
|
|
@@ -7428,42 +7648,42 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
7428
7648
|
- [Dialog] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
|
|
7429
7649
|
|
|
7430
7650
|
```diff
|
|
7431
|
-
|
|
7432
|
-
-
|
|
7433
|
-
-
|
|
7434
|
-
+
|
|
7435
|
-
+
|
|
7436
|
-
+
|
|
7437
|
-
+
|
|
7438
|
-
+
|
|
7439
|
-
|
|
7651
|
+
<Dialog
|
|
7652
|
+
- disableBackdropClick
|
|
7653
|
+
- onClose={handleClose}
|
|
7654
|
+
+ onClose={(event, reason) => {
|
|
7655
|
+
+ if (reason !== 'backdropClick') {
|
|
7656
|
+
+ onClose(event, reason);
|
|
7657
|
+
+ }
|
|
7658
|
+
+ }}
|
|
7659
|
+
/>
|
|
7440
7660
|
```
|
|
7441
7661
|
|
|
7442
7662
|
- [Modal] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
|
|
7443
7663
|
|
|
7444
7664
|
```diff
|
|
7445
|
-
|
|
7446
|
-
-
|
|
7447
|
-
-
|
|
7448
|
-
+
|
|
7449
|
-
+
|
|
7450
|
-
+
|
|
7451
|
-
+
|
|
7452
|
-
+
|
|
7453
|
-
|
|
7665
|
+
<Modal
|
|
7666
|
+
- disableBackdropClick
|
|
7667
|
+
- onClose={handleClose}
|
|
7668
|
+
+ onClose={(event, reason) => {
|
|
7669
|
+
+ if (reason !== 'backdropClick') {
|
|
7670
|
+
+ onClose(event, reason);
|
|
7671
|
+
+ }
|
|
7672
|
+
+ }}
|
|
7673
|
+
/>
|
|
7454
7674
|
```
|
|
7455
7675
|
|
|
7456
7676
|
- [Modal] Remove the `onEscapeKeyDown` prop. It's redundant with the `reason` argument. (#23571) @eps1lon
|
|
7457
7677
|
|
|
7458
7678
|
```diff
|
|
7459
|
-
|
|
7679
|
+
<Modal
|
|
7460
7680
|
- onEscapeKeyDown={handleEscapeKeyDown}
|
|
7461
7681
|
+ onClose={(event, reason) => {
|
|
7462
7682
|
+ if (reason === "escapeKeyDown") {
|
|
7463
7683
|
+ handleEscapeKeyDown(event);
|
|
7464
7684
|
+ }
|
|
7465
7685
|
+ }}
|
|
7466
|
-
|
|
7686
|
+
/>;
|
|
7467
7687
|
```
|
|
7468
7688
|
|
|
7469
7689
|
#### Changes
|
|
@@ -7816,10 +8036,10 @@ Here are some highlights ✨:
|
|
|
7816
8036
|
- The CSS prefixes have changed:
|
|
7817
8037
|
|
|
7818
8038
|
```diff
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
-
|
|
7822
|
-
+
|
|
8039
|
+
popper: {
|
|
8040
|
+
zIndex: 1,
|
|
8041
|
+
- '&[x-placement*="bottom"] $arrow': {
|
|
8042
|
+
+ '&[data-popper-placement*="bottom"] $arrow': {
|
|
7823
8043
|
```
|
|
7824
8044
|
|
|
7825
8045
|
- Method names have changed.
|
|
@@ -7843,13 +8063,13 @@ Here are some highlights ✨:
|
|
|
7843
8063
|
-import withMobileDialog from '@material-ui/core/withMobileDialog';
|
|
7844
8064
|
+import { useTheme, useMediaQuery } from '@material-ui/core';
|
|
7845
8065
|
|
|
7846
|
-
|
|
7847
|
-
-
|
|
7848
|
-
+
|
|
7849
|
-
+
|
|
7850
|
-
|
|
8066
|
+
function ResponsiveDialog(props) {
|
|
8067
|
+
- const { fullScreen } = props;
|
|
8068
|
+
+ const theme = useTheme();
|
|
8069
|
+
+ const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
|
|
8070
|
+
const [open, setOpen] = React.useState(false);
|
|
7851
8071
|
|
|
7852
|
-
|
|
8072
|
+
// ...
|
|
7853
8073
|
|
|
7854
8074
|
-export default withMobileDialog()(ResponsiveDialog);
|
|
7855
8075
|
+export default ResponsiveDialog;
|
|
@@ -8095,24 +8315,24 @@ Here are some highlights ✨:
|
|
|
8095
8315
|
The change was done to match the API convention.
|
|
8096
8316
|
|
|
8097
8317
|
```diff
|
|
8098
|
-
|
|
8099
|
-
-
|
|
8100
|
-
-
|
|
8101
|
-
+
|
|
8102
|
-
+
|
|
8318
|
+
<TablePagination
|
|
8319
|
+
- onChangeRowsPerPage={()=>{}}
|
|
8320
|
+
- onChangePage={()=>{}}
|
|
8321
|
+
+ onRowsPerPageChange={()=>{}}
|
|
8322
|
+
+ onPageChange={()=>{}}
|
|
8103
8323
|
```
|
|
8104
8324
|
|
|
8105
8325
|
- [theme] Rename fade to alpha (#22834) @mnajdova
|
|
8106
8326
|
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.
|
|
8107
8327
|
|
|
8108
8328
|
```diff
|
|
8109
|
-
-
|
|
8110
|
-
+
|
|
8329
|
+
-import { fade } from '@material-ui/core/styles';
|
|
8330
|
+
+import { alpha } from '@material-ui/core/styles';
|
|
8111
8331
|
|
|
8112
|
-
|
|
8332
|
+
const classes = makeStyles(theme => ({
|
|
8113
8333
|
- backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
8114
8334
|
+ backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
8115
|
-
|
|
8335
|
+
}));
|
|
8116
8336
|
```
|
|
8117
8337
|
|
|
8118
8338
|
- [Tooltip] Make `interactive` default (#22382) @eps1lon
|
|
@@ -8123,7 +8343,7 @@ Here are some highlights ✨:
|
|
|
8123
8343
|
```diff
|
|
8124
8344
|
-<Tooltip>
|
|
8125
8345
|
+<Tooltip disableInteractive>
|
|
8126
|
-
|
|
8346
|
+
# Interactive tooltips no longer need the `interactive` prop.
|
|
8127
8347
|
-<Tooltip interactive>
|
|
8128
8348
|
+<Tooltip>
|
|
8129
8349
|
```
|
|
@@ -8371,7 +8591,7 @@ Here are some highlights ✨:
|
|
|
8371
8591
|
Renames `theme.palette.type` to `theme.palette.mode`, to better follow the "dark mode" term that is usually used for describing this feature.
|
|
8372
8592
|
|
|
8373
8593
|
```diff
|
|
8374
|
-
|
|
8594
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8375
8595
|
|
|
8376
8596
|
-const theme = createMuiTheme({palette: { type: 'dark' }}),
|
|
8377
8597
|
+const theme = createMuiTheme({palette: { mode: 'dark' }}),
|
|
@@ -8436,22 +8656,22 @@ Here are some highlights ✨:
|
|
|
8436
8656
|
You can recover from the change with:
|
|
8437
8657
|
|
|
8438
8658
|
```diff
|
|
8439
|
-
|
|
8440
|
-
-
|
|
8441
|
-
-
|
|
8442
|
-
+
|
|
8443
|
-
+
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
-
|
|
8452
|
-
+
|
|
8453
|
-
|
|
8454
|
-
|
|
8659
|
+
<Autocomplete
|
|
8660
|
+
- renderOption={(option, { selected }) => (
|
|
8661
|
+
- <React.Fragment>
|
|
8662
|
+
+ renderOption={(props, option, { selected }) => (
|
|
8663
|
+
+ <li {...props}>
|
|
8664
|
+
<Checkbox
|
|
8665
|
+
icon={icon}
|
|
8666
|
+
checkedIcon={checkedIcon}
|
|
8667
|
+
style={{ marginRight: 8 }}
|
|
8668
|
+
checked={selected}
|
|
8669
|
+
/>
|
|
8670
|
+
{option.title}
|
|
8671
|
+
- </React.Fragment>
|
|
8672
|
+
+ </li>
|
|
8673
|
+
)}
|
|
8674
|
+
/>
|
|
8455
8675
|
```
|
|
8456
8676
|
|
|
8457
8677
|
#### Changes
|
|
@@ -8537,12 +8757,12 @@ Here are some highlights ✨:
|
|
|
8537
8757
|
Rename `focused` to `focusVisible` for consistency with the other components:
|
|
8538
8758
|
|
|
8539
8759
|
```diff
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
-
|
|
8543
|
-
+
|
|
8544
|
-
|
|
8545
|
-
|
|
8760
|
+
<Accordion
|
|
8761
|
+
classes={{
|
|
8762
|
+
- focused: 'custom-focus-visible-classname',
|
|
8763
|
+
+ focusVisible: 'custom-focus-visible-classname',
|
|
8764
|
+
}}
|
|
8765
|
+
/>
|
|
8546
8766
|
```
|
|
8547
8767
|
|
|
8548
8768
|
- [Stepper] Remove Paper and built-in padding (#22564) @mbrookes
|
|
@@ -8622,10 +8842,10 @@ Here are some highlights ✨:
|
|
|
8622
8842
|
If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with:
|
|
8623
8843
|
|
|
8624
8844
|
```diff
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
+
|
|
8628
|
-
|
|
8845
|
+
<Rating
|
|
8846
|
+
icon={customIcon}
|
|
8847
|
+
+ emptyIcon={null}
|
|
8848
|
+
/>
|
|
8629
8849
|
```
|
|
8630
8850
|
|
|
8631
8851
|
#### Changes
|
|
@@ -8751,9 +8971,9 @@ const theme = createMuiTheme({
|
|
|
8751
8971
|
1. `props`
|
|
8752
8972
|
|
|
8753
8973
|
```diff
|
|
8754
|
-
|
|
8974
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8755
8975
|
|
|
8756
|
-
|
|
8976
|
+
const theme = createMuiTheme({
|
|
8757
8977
|
- props: {
|
|
8758
8978
|
- MuiButton: {
|
|
8759
8979
|
- disableRipple: true,
|
|
@@ -8766,15 +8986,15 @@ const theme = createMuiTheme({
|
|
|
8766
8986
|
+ },
|
|
8767
8987
|
+ },
|
|
8768
8988
|
+ },
|
|
8769
|
-
|
|
8989
|
+
});
|
|
8770
8990
|
```
|
|
8771
8991
|
|
|
8772
8992
|
2. `overrides`
|
|
8773
8993
|
|
|
8774
8994
|
```diff
|
|
8775
|
-
|
|
8995
|
+
import { createMuiTheme } from '@material-ui/core/styles';
|
|
8776
8996
|
|
|
8777
|
-
|
|
8997
|
+
const theme = createMuiTheme({
|
|
8778
8998
|
- overrides: {
|
|
8779
8999
|
- MuiButton: {
|
|
8780
9000
|
- root: { padding: 0 },
|
|
@@ -8787,7 +9007,7 @@ const theme = createMuiTheme({
|
|
|
8787
9007
|
+ },
|
|
8788
9008
|
+ },
|
|
8789
9009
|
+ },
|
|
8790
|
-
|
|
9010
|
+
});
|
|
8791
9011
|
```
|
|
8792
9012
|
|
|
8793
9013
|
Note that if you don't have the time to upgrade the structure of the theme, you
|
|
@@ -8898,7 +9118,7 @@ Here are some highlights ✨:
|
|
|
8898
9118
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
8899
9119
|
|
|
8900
9120
|
```diff
|
|
8901
|
-
|
|
9121
|
+
<Menu
|
|
8902
9122
|
- onEnter={onEnter}
|
|
8903
9123
|
- onEntered={onEntered},
|
|
8904
9124
|
- onEntering={onEntered},
|
|
@@ -8913,14 +9133,14 @@ Here are some highlights ✨:
|
|
|
8913
9133
|
+ onExited,
|
|
8914
9134
|
+ onExiting,
|
|
8915
9135
|
+ }}
|
|
8916
|
-
|
|
9136
|
+
>
|
|
8917
9137
|
```
|
|
8918
9138
|
|
|
8919
9139
|
- [Popover] Remove transition onX props (#22184) @mbrookes
|
|
8920
9140
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
8921
9141
|
|
|
8922
9142
|
```diff
|
|
8923
|
-
|
|
9143
|
+
<Popover
|
|
8924
9144
|
- onEnter={onEnter}
|
|
8925
9145
|
- onEntered={onEntered},
|
|
8926
9146
|
- onEntering={onEntered},
|
|
@@ -8935,7 +9155,7 @@ Here are some highlights ✨:
|
|
|
8935
9155
|
+ onExited,
|
|
8936
9156
|
+ onExiting,
|
|
8937
9157
|
+ }}
|
|
8938
|
-
|
|
9158
|
+
/>
|
|
8939
9159
|
```
|
|
8940
9160
|
|
|
8941
9161
|
- [TextField] Improve line-height reset (#22149) @imnasnainaec
|
|
@@ -9089,7 +9309,7 @@ Here are some highlights ✨:
|
|
|
9089
9309
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
9090
9310
|
|
|
9091
9311
|
```diff
|
|
9092
|
-
|
|
9312
|
+
<Dialog
|
|
9093
9313
|
- onEnter={onEnter}
|
|
9094
9314
|
- onEntered={onEntered},
|
|
9095
9315
|
- onEntering={onEntered},
|
|
@@ -9104,7 +9324,7 @@ Here are some highlights ✨:
|
|
|
9104
9324
|
+ onExited,
|
|
9105
9325
|
+ onExiting,
|
|
9106
9326
|
+ }}
|
|
9107
|
-
|
|
9327
|
+
/>
|
|
9108
9328
|
```
|
|
9109
9329
|
|
|
9110
9330
|
- [Fab] Rename round -> circular for consistency (#21903) @kodai3
|
|
@@ -9151,7 +9371,7 @@ Here are some highlights ✨:
|
|
|
9151
9371
|
The onE\* transition props were removed. Use TransitionProps instead.
|
|
9152
9372
|
|
|
9153
9373
|
```diff
|
|
9154
|
-
|
|
9374
|
+
<Snackbar
|
|
9155
9375
|
- onEnter={onEnter}
|
|
9156
9376
|
- onEntered={onEntered},
|
|
9157
9377
|
- onEntering={onEntered},
|
|
@@ -9166,7 +9386,7 @@ Here are some highlights ✨:
|
|
|
9166
9386
|
+ onExited,
|
|
9167
9387
|
+ onExiting,
|
|
9168
9388
|
+ }}
|
|
9169
|
-
|
|
9389
|
+
/>
|
|
9170
9390
|
```
|
|
9171
9391
|
|
|
9172
9392
|
- [TextareaAutosize] Rename rowsMax->maxRows & rowsMin->minRows (#21873) @mhayk
|
|
@@ -9535,21 +9755,21 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
9535
9755
|
It prevents inconsistent height on scaled screens. For people customizing the color of the border, the change requires changing the override CSS property:
|
|
9536
9756
|
|
|
9537
9757
|
```diff
|
|
9538
|
-
|
|
9539
|
-
-
|
|
9540
|
-
+
|
|
9541
|
-
|
|
9758
|
+
.MuiDivider-root {
|
|
9759
|
+
- background-color: #f00;
|
|
9760
|
+
+ border-color: #f00;
|
|
9761
|
+
}
|
|
9542
9762
|
```
|
|
9543
9763
|
|
|
9544
9764
|
- [Rating] Rename `visuallyhidden` to `visuallyHidden` for consistency (#21413) @mnajdova.
|
|
9545
9765
|
|
|
9546
9766
|
```diff
|
|
9547
|
-
|
|
9548
|
-
|
|
9767
|
+
<Rating
|
|
9768
|
+
classes={{
|
|
9549
9769
|
- visuallyhidden: 'custom-visually-hidden-classname',
|
|
9550
9770
|
+ visuallyHidden: 'custom-visually-hidden-classname',
|
|
9551
|
-
|
|
9552
|
-
|
|
9771
|
+
}}
|
|
9772
|
+
/>
|
|
9553
9773
|
```
|
|
9554
9774
|
|
|
9555
9775
|
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
|
|
@@ -9569,10 +9789,10 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
9569
9789
|
The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
|
|
9570
9790
|
|
|
9571
9791
|
```diff
|
|
9572
|
-
|
|
9573
|
-
-
|
|
9574
|
-
-
|
|
9575
|
-
+
|
|
9792
|
+
<TablePagination
|
|
9793
|
+
- backIconButtonText="Avant"
|
|
9794
|
+
- nextIconButtonText="Après
|
|
9795
|
+
+ getItemAriaLabel={…}
|
|
9576
9796
|
```
|
|
9577
9797
|
|
|
9578
9798
|
- [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.
|