@mui/system 5.2.3 → 5.2.8
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 +302 -32
- package/createBox.spec.d.ts +1 -1
- package/createTheme/createBreakpoints.d.ts +6 -0
- package/createTheme/createBreakpoints.js +16 -0
- package/createTheme/createSpacing.d.ts +10 -10
- package/cssVars/createCssVarsProvider.js +9 -3
- package/cssVars/createCssVarsProvider.spec.d.ts +1 -1
- package/cssVars/createGetCssVar.d.ts +5 -0
- package/cssVars/createGetCssVar.js +27 -0
- package/cssVars/cssVarsParser.d.ts +68 -68
- package/cssVars/getInitColorSchemeScript.d.ts +12 -12
- package/cssVars/index.d.ts +2 -2
- package/cssVars/useCurrentColorScheme.d.ts +50 -50
- package/esm/createTheme/createBreakpoints.js +16 -0
- package/esm/cssVars/createCssVarsProvider.js +9 -4
- package/esm/cssVars/createGetCssVar.js +20 -0
- package/esm/index.js +2 -1
- package/index.d.ts +1 -0
- package/index.js +11 -2
- package/index.spec.d.ts +1 -1
- package/legacy/createTheme/createBreakpoints.js +16 -0
- package/legacy/cssVars/createCssVarsProvider.js +9 -4
- package/legacy/cssVars/createGetCssVar.js +32 -0
- package/legacy/index.js +3 -2
- package/modern/createTheme/createBreakpoints.js +16 -0
- package/modern/cssVars/createCssVarsProvider.js +9 -4
- package/modern/cssVars/createGetCssVar.js +20 -0
- package/modern/index.js +3 -2
- package/package.json +2 -2
- package/styleFunctionSx/styleFunctionSx.d.ts +1 -0
- package/styleFunctionSx/styleFunctionSx.spec.d.ts +1 -1
package/Box/Box.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,270 @@
|
|
|
1
|
-
|
|
1
|
+
# [Versions](https://mui.com/versions/)
|
|
2
|
+
|
|
3
|
+
## 5.2.8
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.2.7..master -->
|
|
6
|
+
|
|
7
|
+
_Jan 10, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- A meaningful number of 🐛 bug fixes and 📚 documentation improvements.
|
|
12
|
+
|
|
13
|
+
### `@mui/material@5.2.8`
|
|
14
|
+
|
|
15
|
+
- ​<!-- 05 -->[TextField][inputlabel] Remove `pointer-events: none` property (#30493) @hbjORbj
|
|
16
|
+
- ​<!-- 02 -->[Slider] Add `input` slot to components and componentsProps (#30362) @alexandre-lelain
|
|
17
|
+
|
|
18
|
+
### `@mui/joy@5.0.0-alpha.10`
|
|
19
|
+
|
|
20
|
+
- ​<!-- 04 -->[Joy] Add `Typography` component (#30489) @siriwatknp
|
|
21
|
+
- ​<!-- 03 -->[Joy] Add functional `Switch` component (#30487) @siriwatknp
|
|
22
|
+
|
|
23
|
+
### Docs
|
|
24
|
+
|
|
25
|
+
- ​<!-- 18 -->[docs] Update markdown parser to remove backticks from description (#30495) @aefox
|
|
26
|
+
- ​<!-- 17 -->[docs] Fix the crash when applying custom colors (#30563) @siriwatknp
|
|
27
|
+
- ​<!-- 16 -->[docs] Location change of Sebastian (#30528) @eps1lon
|
|
28
|
+
- ​<!-- 15 -->[docs] Lint markdown in the CI (#30395) @oliviertassinari
|
|
29
|
+
- ​<!-- 14 -->[docs] Fix `componentsProps` API docs and PropTypes (#30502) @ZeeshanTamboli
|
|
30
|
+
- ​<!-- 13 -->[docs] Codemod doc for overriding styles using tss (#30499) @garronej
|
|
31
|
+
- ​<!-- 12 -->[docs] fix edge case when replacing data-grid url for migration (#30505) @siriwatknp
|
|
32
|
+
- ​<!-- 11 -->[docs] fix replace url for migration (#30503) @siriwatknp
|
|
33
|
+
- ​<!-- 10 -->[docs] Prepare scripts for migrating to new structure (#30386) @siriwatknp
|
|
34
|
+
- ​<!-- 09 -->[docs] Adjust RTL Guide demos to fully support RTL (#30387) @noam-honig
|
|
35
|
+
- ​<!-- 08 -->[docs] Move @eps1lon to community (#30473) @oliviertassinari
|
|
36
|
+
- ​<!-- 07 -->[docs] Fix typo and spelling in the-sx-prop.md (#30482) @aefox
|
|
37
|
+
- ​<!-- 06 -->[docs] More general docs polishing (#30371) @danilo-leal
|
|
38
|
+
- ​<!-- 01 -->[website] Add José on the /about page (#30492) @danilo-leal
|
|
39
|
+
|
|
40
|
+
All contributors of this release in alphabetical order: @aefox, @alexandre-lelain, @danilo-leal, @eps1lon, @garronej, @hbjORbj, @noam-honig, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
|
|
41
|
+
|
|
42
|
+
## 5.2.7
|
|
43
|
+
|
|
44
|
+
<!-- generated comparing v5.2.6..master -->
|
|
45
|
+
|
|
46
|
+
_Jan 3, 2022_
|
|
47
|
+
|
|
48
|
+
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
49
|
+
|
|
50
|
+
- 📓 Improvements on the Vietnamese (vi-VN) and Finnish (fi-FI) locales (#30426, #30442) @hckhanh @Certificate
|
|
51
|
+
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
52
|
+
|
|
53
|
+
### `@mui/material@5.2.7`
|
|
54
|
+
|
|
55
|
+
- ​<!-- 14 -->[Autocomplete] Fix calling onChange for duplicate values (#30374) @alisasanib
|
|
56
|
+
- ​<!-- 13 -->[Avatar] Fix TypeScript error on imgProps (#30255) @ahmad-reza619
|
|
57
|
+
- ​<!-- 12 -->[Badge] Fix `classes` prop TypeScript type (#30427) @ZeeshanTamboli
|
|
58
|
+
- ​<!-- 03 -->[SvgIcon] Allow viewBox to inherit from Component through inheritViewBox prop (#29954) @alex-dikusar
|
|
59
|
+
- ​<!-- 04 -->[SvgIcon] Correct API docs and code style (#30470) @michaldudak
|
|
60
|
+
|
|
61
|
+
### Docs
|
|
62
|
+
|
|
63
|
+
- ​<!-- 11 -->[blog] 2021 (#30425) @oliviertassinari
|
|
64
|
+
- ​<!-- 15 -->[docs] Fix typo on the Grid docs page (#30446) @abhi45
|
|
65
|
+
- ​<!-- 07 -->[docs] Fix `useMediaQuery` SSR example to v5 theme API (#30454) @ValentinH
|
|
66
|
+
- ​<!-- 11 -->[docs] Improve the migration guide and add examples for transforming to `tss-react` (#30388) @mnajdova
|
|
67
|
+
- ​<!-- 09 -->[docs] Make the reference to the select clearer (#30460) @boazrymland
|
|
68
|
+
- ​<!-- 08 -->[docs] Sync translations with Crowdin (#30385) @l10nbot
|
|
69
|
+
- ​<!-- 06 -->[example] Avoid double rendering in the Remix example (#30366) @mnajdova
|
|
70
|
+
- ​<!-- 05 -->[i18n] improve viVN locale (#30426) @hckhanh
|
|
71
|
+
- ​<!-- 04 -->[l10n] Improve fiFI locale (#30442) @Certificate
|
|
72
|
+
- ​<!-- 02 -->[website] Add new batch of open roles (#30282) @oliviertassinari
|
|
73
|
+
- ​<!-- 01 -->[website] Refactor page context with next router (#30020) @siriwatknp
|
|
74
|
+
|
|
75
|
+
### Core
|
|
76
|
+
|
|
77
|
+
- ​<!-- 13 -->[core] Automatically close issues that are incomplete and inactive (#30459) @oliviertassinari
|
|
78
|
+
- ​<!-- 10 -->[core] Remove contrib tweet (#30455) @oliviertassinari
|
|
79
|
+
|
|
80
|
+
All contributors of this release in alphabetical order: @abhi45, @ahmad-reza619, @alex-dikusar, @alisasanib, @boazrymland, @Certificate, @hckhanh, @l10nbot, @michaldudak, @mnajdova, @oliviertassinari, @siriwatknp, @ValentinH, @ZeeshanTamboli
|
|
81
|
+
|
|
82
|
+
## 5.2.6
|
|
83
|
+
|
|
84
|
+
<!-- generated comparing v5.2.5..master -->
|
|
85
|
+
|
|
86
|
+
_Dec 27, 2021_
|
|
87
|
+
|
|
88
|
+
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
89
|
+
|
|
90
|
+
- 📓 The Norwegian Bokmål (nb-NO) locale was added (#27520) @wogsland
|
|
91
|
+
- 🛠 Introduced a new `useBadge` hook in the `@mui/base` package (#30246) @mnajdova
|
|
92
|
+
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
93
|
+
|
|
94
|
+
### `@mui/material@5.2.6`
|
|
95
|
+
|
|
96
|
+
- ​<!-- 24 -->[ButtonGroup] Fix typo in ButtonGroupContext's interface (#30376) @kealjones-wk
|
|
97
|
+
- ​<!-- 03 -->[l10n] Add Norwegian Bokmål (nb-NO) locale (#27520) @wogsland
|
|
98
|
+
|
|
99
|
+
### `@mui/base@5.0.0-alpha.62`
|
|
100
|
+
|
|
101
|
+
- ​<!-- 26 -->[BadgeUnstyled] Add useBadge hook (#30246) @mnajdova
|
|
102
|
+
|
|
103
|
+
### `@mui/joy@5.0.0-alpha.8`
|
|
104
|
+
|
|
105
|
+
- ​<!-- 04 -->[Joy] Button API (#29962) @siriwatknp
|
|
106
|
+
|
|
107
|
+
### Docs
|
|
108
|
+
|
|
109
|
+
- ​<!-- 27 -->[docs] Fix color coercion (#30319) @Janpot
|
|
110
|
+
- ​<!-- 25 -->[blog] Fix file import conflict resolution (#30391) @oliviertassinari
|
|
111
|
+
- ​<!-- 21 -->[docs] Fix crash on Safari because of unsupported lookahead feature (#30345) @cherniavskii
|
|
112
|
+
- ​<!-- 20 -->[docs] Update to new website domain (#30396) @ryota-murakami
|
|
113
|
+
- ​<!-- 19 -->[docs] Fix text from material-ui to @mui to reflect v5 name changes (#30393) @pupudu
|
|
114
|
+
- ​<!-- 18 -->[docs] Fix a11y in Menu demos (#30378) @ZeeshanTamboli
|
|
115
|
+
- ​<!-- 17 -->[docs] Document how to unmount transition child (#30382) @oliviertassinari
|
|
116
|
+
- ​<!-- 16 -->[docs] The current standard for quotes is QUOTATION MARK @oliviertassinari
|
|
117
|
+
- ​<!-- 15 -->[docs] Fix 404 links (#30380) @oliviertassinari
|
|
118
|
+
- ​<!-- 14 -->[docs] Fix Breadcrumb description (#30307) @jamesmelzer
|
|
119
|
+
- ​<!-- 13 -->[docs] Modify injection order for Gatsby and SSR examples (#30358) @ShuPink
|
|
120
|
+
- ​<!-- 12 -->[docs] Improve the translation experience (#30373) @oliviertassinari
|
|
121
|
+
- ​<!-- 11 -->[docs] Sync translations with Crowdin (#30176) @l10nbot
|
|
122
|
+
- ​<!-- 10 -->[docs] Fix link to /size-snapshot (#30363) @oliviertassinari
|
|
123
|
+
- ​<!-- 09 -->[docs] Fix incorrect aria label in SpeedDial demo (#30354) @chwallen
|
|
124
|
+
- ​<!-- 08 -->[docs] Fix incorrect number of breakpoint helpers (#30353) @chwallen
|
|
125
|
+
- ​<!-- 07 -->[docs] Update outdated links (#30260) @oliviertassinari
|
|
126
|
+
- ​<!-- 06 -->[docs] Support redirects from old urls to /material/\* (#30286) @siriwatknp
|
|
127
|
+
- ​<!-- 05 -->[examples] Fix CSS modules integration (#30381) @oliviertassinari
|
|
128
|
+
- ​<!-- 02 -->[website] Fix SEO issues (#30372) @oliviertassinari
|
|
129
|
+
- ​<!-- 01 -->[website] Sync sponsors (#30259) @oliviertassinari
|
|
130
|
+
|
|
131
|
+
### Core
|
|
132
|
+
|
|
133
|
+
- ​<!-- 28 -->[core] Rename Material-UI to MUI (#30338) @ZeeshanTamboli
|
|
134
|
+
- ​<!-- 23 -->[core] Fix warning in dev mode (#30368) @oliviertassinari
|
|
135
|
+
- ​<!-- 22 -->[core] Update `buildApi` script to support new structure (#30245) @siriwatknp
|
|
136
|
+
|
|
137
|
+
All contributors of this release in alphabetical order: @cherniavskii, @chwallen, @jamesmelzer, @Janpot, @kealjones-wk, @l10nbot, @mnajdova, @oliviertassinari, @pupudu, @ryota-murakami, @ShuPink, @siriwatknp, @wogsland, @ZeeshanTamboli
|
|
138
|
+
|
|
139
|
+
## 5.2.5
|
|
140
|
+
|
|
141
|
+
<!-- generated comparing v5.2.4..master -->
|
|
142
|
+
|
|
143
|
+
_Dec 20, 2021_
|
|
144
|
+
|
|
145
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
146
|
+
|
|
147
|
+
- 🛠 This release mostly improves what's behind the scenes: infrastructure and tests
|
|
148
|
+
- 📓 Danish (da-DK) locale was added (#29485) @mikk5829
|
|
149
|
+
- 🖌 Polished the design of Base components (#30149) and the docs in general (#29994) @danilo-leal
|
|
150
|
+
- 📚 Many additions and improvements to the documentation were made
|
|
151
|
+
|
|
152
|
+
### `@mui/material@5.2.5`
|
|
153
|
+
|
|
154
|
+
- [l10n] Add Danish (da-DK) locale (#29485) @mikk5829
|
|
155
|
+
- [LoadingButton] Label progressbar by the LoadingButton (#30002) @eps1lon
|
|
156
|
+
- [Tabs] Remove unnecessary `Partial<>` type around TabIndicatorProps type (#30254) @ZeeshanTamboli
|
|
157
|
+
|
|
158
|
+
### `@mui/system@5.2.5`
|
|
159
|
+
|
|
160
|
+
- [system] Use `useEnhancedEffect` to prevent flicker (#30216) @hbjORbj
|
|
161
|
+
|
|
162
|
+
### `@mui/lab@5.0.0-alpha.61`
|
|
163
|
+
|
|
164
|
+
- [pickers] Fix the wrong MuiClockPicker's ArrowSwitcher slot name (#30226) @rejetto
|
|
165
|
+
|
|
166
|
+
### Docs
|
|
167
|
+
|
|
168
|
+
- [docs] Run JS compiler on markdown output (#29732) @Janpot
|
|
169
|
+
- [Badge] Add tests for `anchorOrigin` prop (#30147) @daniel-sachs
|
|
170
|
+
- [docs] Add cssmodule injection order comments to Nextjs example (#30213) @ShuPink
|
|
171
|
+
- [docs] Remove extra word in Select component code example comments (#30281) @KThompso
|
|
172
|
+
- [docs] Improve the description of the Accordion (#30253) @jamesmelzer
|
|
173
|
+
- [docs] Heading capitalization convention @oliviertassinari
|
|
174
|
+
- [docs] Rename remaining 'unstyled' references to 'base' (#30206) @michaldudak
|
|
175
|
+
- [docs] Add to migration doc about ref type specificity (#30114) @hbjORbj
|
|
176
|
+
- [docs] Add script to clone pages (#30107) @siriwatknp
|
|
177
|
+
- [docs] Correct colors in breakpoints documentation (#30219) @michaldudak
|
|
178
|
+
- [docs] Sync icon search UI state with the url (#30075) @Janpot
|
|
179
|
+
- [docs] Base components demos design polish (#30149) @danilo-leal
|
|
180
|
+
- [docs] General documentation polish (#29994) @danilo-leal
|
|
181
|
+
- [examples] Fix typo in the remix example's README (#30289) @lemol
|
|
182
|
+
- [website] Remove expired gold sponsor (#30222) @oliviertassinari
|
|
183
|
+
- [website] Remove broken showcase links (#30217) @mnajdova
|
|
184
|
+
|
|
185
|
+
### Core
|
|
186
|
+
|
|
187
|
+
- [test] Reduce bundle size comparison memory consumption (#30195) @Janpot
|
|
188
|
+
- [core] make snapshot comparison more resilient (#30183) @Janpot
|
|
189
|
+
- [core] update formatted ts demo to support new structure (#30248) @siriwatknp
|
|
190
|
+
- [core] cache dependencies in github actions (#30211) @siriwatknp
|
|
191
|
+
- [core] fix root package version (#30204) @siriwatknp
|
|
192
|
+
- [core] Fail the build when the dangerjs script errors (#30186) @Janpot
|
|
193
|
+
- [test] Add E2E website tests (#30128) @siriwatknp
|
|
194
|
+
|
|
195
|
+
All contributors of this release in alphabetical order: @daniel-sachs, @danilo-leal, @eps1lon, @hbjORbj, @jamesmelzer, @Janpot, @KThompso, @lemol, @michaldudak, @mikk5829, @mnajdova, @oliviertassinari, @rejetto, @ShuPink, @siriwatknp, @ZeeshanTamboli
|
|
196
|
+
|
|
197
|
+
## 5.2.4
|
|
198
|
+
|
|
199
|
+
<!-- generated comparing v5.2.3..master -->
|
|
200
|
+
|
|
201
|
+
_Dec 14, 2021_
|
|
202
|
+
|
|
203
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
204
|
+
|
|
205
|
+
- ✨ Add `not` operator to `theme.breakpoints` (#29311) @Philipp000
|
|
206
|
+
|
|
207
|
+
```js
|
|
208
|
+
const styles = (theme) => ({
|
|
209
|
+
root: {
|
|
210
|
+
backgroundColor: 'blue',
|
|
211
|
+
// Match [xs, md) and [md + 1, ∞)
|
|
212
|
+
// [xs, md) and [lg, ∞)
|
|
213
|
+
// [0px, 900px) and [1200px, ∞)
|
|
214
|
+
[theme.breakpoints.not('md')]: {
|
|
215
|
+
backgroundColor: 'red',
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
- And many more 🐛 bug fixes and 📚 improvements.
|
|
222
|
+
|
|
223
|
+
### `@mui/material@5.2.4`
|
|
224
|
+
|
|
225
|
+
- ​<!-- 14 -->[esm] Correct a styles imports (#29976) @Janpot
|
|
226
|
+
- ​<!-- 12 -->[GlobalStyles] Fix `theme` type (#30072) @mnajdova
|
|
227
|
+
- ​<!-- 11 -->[Grid] Fix grid items to respond to the container's responsive columns (#29715) @kkorach
|
|
228
|
+
- ​<!-- 04 -->[TextField] Fix missing space before asterisk in `OutlinedInput`'s label (#29630) @alisasanib
|
|
229
|
+
- ​<!-- 03 -->[Transition] Allow any valid HTML attribute to be passed (#29888) @Janpot
|
|
230
|
+
- ​<!-- 02 -->[types] Fix discrepancy between core and system `ThemeOptions` (#30095) @fmeum
|
|
231
|
+
- ​<!-- 09 -->[InputBase] Add prop for disabling global styles (#29213) @bryan-hunter
|
|
232
|
+
- ​<!-- 08 -->[Select] Improve multiple logic (#30135) @ladygo93
|
|
233
|
+
|
|
234
|
+
### `@mui/system@5.2.4`
|
|
235
|
+
|
|
236
|
+
- ​<!-- 06 -->[system] Don't transition when re-appearing (#30108) @eps1lon
|
|
237
|
+
- ​<!-- 05 -->[system] Add `not` operator to `breakpoints` (#29311) @Philipp000
|
|
238
|
+
|
|
239
|
+
### `@mui/base@5.0.0-alpha.60`
|
|
240
|
+
|
|
241
|
+
- ​<!-- 25 -->[BadgeUnstyled] Make it conformant with other base components (#30141) @mnajdova
|
|
242
|
+
|
|
243
|
+
### `@mui/icons-material@5.2.4`
|
|
244
|
+
|
|
245
|
+
- ​<!-- 10 -->[icons] Correct location of icon download folder (#29839) @yaboi
|
|
246
|
+
|
|
247
|
+
### Docs
|
|
248
|
+
|
|
249
|
+
- ​<!-- 22 -->[docs] Explain the use of Select's label in FormControl (#30189) @michaldudak
|
|
250
|
+
- ​<!-- 21 -->[docs] Don't run nprogress on shallow routing (#30087) @Janpot
|
|
251
|
+
- ​<!-- 20 -->[docs] Add Data Driven Forms to related projects (#30078) @rvsia
|
|
252
|
+
- ​<!-- 19 -->[docs] Sync translations with Crowdin (#30067) @l10nbot
|
|
253
|
+
- ​<!-- 18 -->[docs] Fix link on "Custom variables" section in the Theming page #30100 @danilo-leal
|
|
254
|
+
- ​<!-- 17 -->[docs] Fix justifyContent option in the Grid interactive demo (#30117) @danilo-leal
|
|
255
|
+
- ​<!-- 16 -->[docs] Add tip to help access the docs of a previous version when finding answers in StackOverflow (#30101) @danilo-leal
|
|
256
|
+
- ​<!-- 15 -->[docs] Fix import example inside Unstyled Backdrop section (#30098) @TheodosiouTh
|
|
257
|
+
- ​<!-- 01 -->[website] Column pinning and Tree data are out (#30136) @oliviertassinari
|
|
258
|
+
- ​<!-- 07 -->[survey] Remove survey promotion items (#30122) @danilo-leal
|
|
259
|
+
|
|
260
|
+
### Core
|
|
261
|
+
|
|
262
|
+
- ​<!-- 23 -->[core] Fix link to Open Collective @oliviertassinari
|
|
263
|
+
- ​<!-- 26 -->[core] Update snapshots and s3 fallback (#30134) @Janpot
|
|
264
|
+
- ​<!-- 24 -->[ci] Update CI bucket (#30080) @Janpot
|
|
265
|
+
- ​<!-- 13 -->[fix] size:snapshot for mui-material-next and mui-joy components (#30106) @Janpot
|
|
266
|
+
|
|
267
|
+
All contributors of this release in alphabetical order: @alisasanib, @bryan-hunter, @danilo-leal, @eps1lon, @fmeum, @Janpot, @kkorach, @l10nbot, @ladygo93, @michaldudak, @mnajdova, @oliviertassinari, @Philipp000, @rvsia, @TheodosiouTh, @yaboi
|
|
2
268
|
|
|
3
269
|
## 5.2.3
|
|
4
270
|
|
|
@@ -998,7 +1264,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
998
1264
|
|
|
999
1265
|
replace `@material-ui/*` prefix with `@mui/*`:
|
|
1000
1266
|
|
|
1001
|
-
```
|
|
1267
|
+
```sh
|
|
1002
1268
|
@material-ui/system -> @mui/system
|
|
1003
1269
|
@material-ui/styles -> @mui/styles
|
|
1004
1270
|
@material-ui/lab -> @mui/lab
|
|
@@ -1011,7 +1277,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
1011
1277
|
|
|
1012
1278
|
except these 3 packages that are renamed.
|
|
1013
1279
|
|
|
1014
|
-
```
|
|
1280
|
+
```sh
|
|
1015
1281
|
@material-ui/core => @mui/material // represents Material Design components.
|
|
1016
1282
|
@material-ui/icons => @mui/icons-material // represents Material Design icons.
|
|
1017
1283
|
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
|
|
@@ -2384,6 +2650,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
2384
2650
|
```
|
|
2385
2651
|
|
|
2386
2652
|
- ​<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
|
|
2653
|
+
|
|
2387
2654
|
```diff
|
|
2388
2655
|
<Autocomplete
|
|
2389
2656
|
- getOptionSelected={(option, value) => option.title === value.title}
|
|
@@ -3957,7 +4224,7 @@ All contributors of this release in alphabetical order: @artola, @CyanoFresh, @d
|
|
|
3957
4224
|
|
|
3958
4225
|
## 5.0.0-alpha.23
|
|
3959
4226
|
|
|
3960
|
-
|
|
4227
|
+
_Jan 14, 2021_
|
|
3961
4228
|
|
|
3962
4229
|
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
3963
4230
|
|
|
@@ -4072,7 +4339,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
4072
4339
|
|
|
4073
4340
|
## 5.0.0-alpha.22
|
|
4074
4341
|
|
|
4075
|
-
|
|
4342
|
+
_Jan 4, 2021_
|
|
4076
4343
|
|
|
4077
4344
|
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
4078
4345
|
|
|
@@ -4124,7 +4391,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4124
4391
|
|
|
4125
4392
|
## 5.0.0-alpha.21
|
|
4126
4393
|
|
|
4127
|
-
|
|
4394
|
+
_Dec 30, 2020_
|
|
4128
4395
|
|
|
4129
4396
|
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
4130
4397
|
|
|
@@ -4197,7 +4464,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
4197
4464
|
|
|
4198
4465
|
## 5.0.0-alpha.20
|
|
4199
4466
|
|
|
4200
|
-
|
|
4467
|
+
_Dec 21, 2020_
|
|
4201
4468
|
|
|
4202
4469
|
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
4203
4470
|
|
|
@@ -4275,7 +4542,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
4275
4542
|
|
|
4276
4543
|
## 5.0.0-alpha.19
|
|
4277
4544
|
|
|
4278
|
-
|
|
4545
|
+
_Dec 13, 2020_
|
|
4279
4546
|
|
|
4280
4547
|
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
4281
4548
|
|
|
@@ -4403,7 +4670,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
|
|
|
4403
4670
|
|
|
4404
4671
|
## 5.0.0-alpha.18
|
|
4405
4672
|
|
|
4406
|
-
|
|
4673
|
+
_Dec 3, 2020_
|
|
4407
4674
|
|
|
4408
4675
|
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
4409
4676
|
|
|
@@ -4495,7 +4762,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
4495
4762
|
|
|
4496
4763
|
## 5.0.0-alpha.17
|
|
4497
4764
|
|
|
4498
|
-
|
|
4765
|
+
_Nov 23, 2020_
|
|
4499
4766
|
|
|
4500
4767
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
4501
4768
|
|
|
@@ -4662,7 +4929,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
4662
4929
|
|
|
4663
4930
|
## 5.0.0-alpha.16
|
|
4664
4931
|
|
|
4665
|
-
|
|
4932
|
+
_Nov 14, 2020_
|
|
4666
4933
|
|
|
4667
4934
|
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
|
|
4668
4935
|
|
|
@@ -4766,7 +5033,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
4766
5033
|
|
|
4767
5034
|
## 5.0.0-alpha.15
|
|
4768
5035
|
|
|
4769
|
-
|
|
5036
|
+
_Nov 4, 2020_
|
|
4770
5037
|
|
|
4771
5038
|
A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
|
|
4772
5039
|
|
|
@@ -4878,7 +5145,7 @@ A big thanks to the 20 contributors who made this release possible. Here are som
|
|
|
4878
5145
|
|
|
4879
5146
|
## 5.0.0-alpha.14
|
|
4880
5147
|
|
|
4881
|
-
|
|
5148
|
+
_Oct 23, 2020_
|
|
4882
5149
|
|
|
4883
5150
|
A big thanks to the 23 contributors who made this release possible.
|
|
4884
5151
|
Here are some highlights ✨:
|
|
@@ -4929,12 +5196,14 @@ Here are some highlights ✨:
|
|
|
4929
5196
|
You can read [their migration guide](https://popper.js.org/docs/v2/migration-guide/) or the following summary:
|
|
4930
5197
|
|
|
4931
5198
|
- The CSS prefixes have changed:
|
|
5199
|
+
|
|
4932
5200
|
```diff
|
|
4933
5201
|
popper: {
|
|
4934
5202
|
zIndex: 1,
|
|
4935
5203
|
- '&[x-placement*="bottom"] $arrow': {
|
|
4936
5204
|
+ '&[data-popper-placement*="bottom"] $arrow': {
|
|
4937
5205
|
```
|
|
5206
|
+
|
|
4938
5207
|
- Method names have changed.
|
|
4939
5208
|
|
|
4940
5209
|
```diff
|
|
@@ -5049,7 +5318,7 @@ Here are some highlights ✨:
|
|
|
5049
5318
|
|
|
5050
5319
|
## 5.0.0-alpha.13
|
|
5051
5320
|
|
|
5052
|
-
|
|
5321
|
+
_Oct 17, 2020_
|
|
5053
5322
|
|
|
5054
5323
|
A big thanks to the 25 contributors who made this release possible.
|
|
5055
5324
|
Here are some highlights ✨:
|
|
@@ -5175,7 +5444,7 @@ Here are some highlights ✨:
|
|
|
5175
5444
|
|
|
5176
5445
|
## 5.0.0-alpha.12
|
|
5177
5446
|
|
|
5178
|
-
|
|
5447
|
+
_Oct 11, 2020_
|
|
5179
5448
|
|
|
5180
5449
|
A big thanks to the 45 contributors who made this release possible.
|
|
5181
5450
|
Here are some highlights ✨:
|
|
@@ -5399,7 +5668,7 @@ Here are some highlights ✨:
|
|
|
5399
5668
|
|
|
5400
5669
|
## 5.0.0-alpha.11
|
|
5401
5670
|
|
|
5402
|
-
|
|
5671
|
+
_Sep 26, 2020_
|
|
5403
5672
|
|
|
5404
5673
|
A big thanks to the 29 contributors who made this release possible.
|
|
5405
5674
|
Here are some highlights ✨:
|
|
@@ -5633,7 +5902,7 @@ More documentation are coming.
|
|
|
5633
5902
|
|
|
5634
5903
|
## 5.0.0-alpha.10
|
|
5635
5904
|
|
|
5636
|
-
|
|
5905
|
+
_Sep 15, 2020_
|
|
5637
5906
|
|
|
5638
5907
|
A big thanks to the 16 contributors who made this release possible.
|
|
5639
5908
|
Here are some highlights ✨:
|
|
@@ -5698,13 +5967,13 @@ Here are some highlights ✨:
|
|
|
5698
5967
|
|
|
5699
5968
|
Before:
|
|
5700
5969
|
|
|
5701
|
-
```
|
|
5970
|
+
```sh
|
|
5702
5971
|
theme.spacing(2) => 16
|
|
5703
5972
|
```
|
|
5704
5973
|
|
|
5705
5974
|
After:
|
|
5706
5975
|
|
|
5707
|
-
```
|
|
5976
|
+
```sh
|
|
5708
5977
|
theme.spacing(2) => '16px'
|
|
5709
5978
|
```
|
|
5710
5979
|
|
|
@@ -5763,7 +6032,7 @@ Here are some highlights ✨:
|
|
|
5763
6032
|
|
|
5764
6033
|
## 5.0.0-alpha.9
|
|
5765
6034
|
|
|
5766
|
-
|
|
6035
|
+
_Sep 6, 2020_
|
|
5767
6036
|
|
|
5768
6037
|
A big thanks to the 14 contributors who made this release possible.
|
|
5769
6038
|
Here are some highlights ✨:
|
|
@@ -5816,7 +6085,7 @@ Here are some highlights ✨:
|
|
|
5816
6085
|
|
|
5817
6086
|
## 5.0.0-alpha.8
|
|
5818
6087
|
|
|
5819
|
-
|
|
6088
|
+
_Aug 31, 2020_
|
|
5820
6089
|
|
|
5821
6090
|
A big thanks to the 19 contributors who made this release possible.
|
|
5822
6091
|
Here are some highlights ✨:
|
|
@@ -5992,7 +6261,7 @@ const theme = createMuiTheme({
|
|
|
5992
6261
|
|
|
5993
6262
|
## 5.0.0-alpha.7
|
|
5994
6263
|
|
|
5995
|
-
|
|
6264
|
+
_Aug 22, 2020_
|
|
5996
6265
|
|
|
5997
6266
|
A big thanks to the 22 contributors who made this release possible.
|
|
5998
6267
|
Here are some highlights ✨:
|
|
@@ -6122,7 +6391,7 @@ Here are some highlights ✨:
|
|
|
6122
6391
|
|
|
6123
6392
|
## 5.0.0-alpha.6
|
|
6124
6393
|
|
|
6125
|
-
|
|
6394
|
+
_Aug 13, 2020_
|
|
6126
6395
|
|
|
6127
6396
|
A big thanks to the 26 contributors who made this release possible.
|
|
6128
6397
|
Here are some highlights ✨:
|
|
@@ -6165,7 +6434,7 @@ Here are some highlights ✨:
|
|
|
6165
6434
|
|
|
6166
6435
|
### `@material-ui/core@v5.0.0-alpha.6`
|
|
6167
6436
|
|
|
6168
|
-
|
|
6437
|
+
#### Breaking changes
|
|
6169
6438
|
|
|
6170
6439
|
- [Avatar] Rename variant circle -> circular for consistency (#22015) @kodai3
|
|
6171
6440
|
Rename `circle` to `circular` for consistency. The possible values should be adjectives, not nouns:
|
|
@@ -6324,7 +6593,7 @@ Here are some highlights ✨:
|
|
|
6324
6593
|
+},
|
|
6325
6594
|
```
|
|
6326
6595
|
|
|
6327
|
-
|
|
6596
|
+
#### Changes
|
|
6328
6597
|
|
|
6329
6598
|
- [Avatar] Custom variant (#22139) @mnajdova
|
|
6330
6599
|
- [Badge] Add missing class key (#22095) @kodai3
|
|
@@ -6344,7 +6613,7 @@ Here are some highlights ✨:
|
|
|
6344
6613
|
|
|
6345
6614
|
### `@material-ui/lab@v5.0.0-alpha.6`
|
|
6346
6615
|
|
|
6347
|
-
|
|
6616
|
+
#### Breaking changes
|
|
6348
6617
|
|
|
6349
6618
|
- [Skeleton] Rename variant circle -> circular and rect -> rectangular for consistency (#22053) @kodai3
|
|
6350
6619
|
Rename `circle` to `circular` and `rect` to `rectangular` for consistency. The possible values should be adjectives, not nouns:
|
|
@@ -6356,7 +6625,7 @@ Here are some highlights ✨:
|
|
|
6356
6625
|
+<Skeleton variant="rectangular">
|
|
6357
6626
|
```
|
|
6358
6627
|
|
|
6359
|
-
|
|
6628
|
+
#### Changes
|
|
6360
6629
|
|
|
6361
6630
|
- [Autocomplete] Add support for "{label: string}" data type as a default for "options" (#21992) @DanailH
|
|
6362
6631
|
- [TreeView] Add disabled prop (#20133) @netochaves
|
|
@@ -6408,7 +6677,7 @@ Here are some highlights ✨:
|
|
|
6408
6677
|
|
|
6409
6678
|
## 5.0.0-alpha.5
|
|
6410
6679
|
|
|
6411
|
-
|
|
6680
|
+
_July 28, 2020_
|
|
6412
6681
|
|
|
6413
6682
|
A big thanks to the 18 contributors who made this release possible.
|
|
6414
6683
|
|
|
@@ -6479,7 +6748,7 @@ A big thanks to the 18 contributors who made this release possible.
|
|
|
6479
6748
|
|
|
6480
6749
|
## 5.0.0-alpha.4
|
|
6481
6750
|
|
|
6482
|
-
|
|
6751
|
+
_July 19, 2020_
|
|
6483
6752
|
|
|
6484
6753
|
A big thanks to the 11 contributors who made this release possible.
|
|
6485
6754
|
|
|
@@ -6521,7 +6790,7 @@ A big thanks to the 11 contributors who made this release possible.
|
|
|
6521
6790
|
|
|
6522
6791
|
## 5.0.0-alpha.3
|
|
6523
6792
|
|
|
6524
|
-
|
|
6793
|
+
_July 12, 2020_
|
|
6525
6794
|
|
|
6526
6795
|
A big thanks to the 14 contributors who made this release possible.
|
|
6527
6796
|
|
|
@@ -6570,7 +6839,7 @@ A big thanks to the 14 contributors who made this release possible.
|
|
|
6570
6839
|
|
|
6571
6840
|
## 5.0.0-alpha.2
|
|
6572
6841
|
|
|
6573
|
-
|
|
6842
|
+
_July 4, 2020_
|
|
6574
6843
|
|
|
6575
6844
|
A big thanks to the 16 contributors who made this release possible.
|
|
6576
6845
|
|
|
@@ -6632,7 +6901,7 @@ A big thanks to the 16 contributors who made this release possible.
|
|
|
6632
6901
|
|
|
6633
6902
|
## 5.0.0-alpha.1
|
|
6634
6903
|
|
|
6635
|
-
|
|
6904
|
+
_June 27, 2020_
|
|
6636
6905
|
|
|
6637
6906
|
A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
|
|
6638
6907
|
|
|
@@ -6748,6 +7017,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
6748
7017
|
```
|
|
6749
7018
|
|
|
6750
7019
|
- [Accordion] typescript: The `event` in `onChange` is no longer typed as a `React.ChangeEvent` but `React.SyntheticEvent`.
|
|
7020
|
+
|
|
6751
7021
|
```diff
|
|
6752
7022
|
-<Accordion onChange={(event: React.ChangeEvent<{}>, expanded: boolean) => {}} />
|
|
6753
7023
|
+<Accordion onChange={(event: React.SyntheticEvent, expanded: boolean) => {}} />
|
package/createBox.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -55,6 +55,12 @@ export interface Breakpoints {
|
|
|
55
55
|
* @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-only-key-media-query)
|
|
56
56
|
*/
|
|
57
57
|
only: (key: Breakpoint) => string;
|
|
58
|
+
/**
|
|
59
|
+
* @param key - A breakpoint key (`xs`, `sm`, etc.).
|
|
60
|
+
* @returns A media query string ready to be used with most styling solutions, which matches screen widths stopping at
|
|
61
|
+
* the screen size given by the breakpoint key (exclusive) and starting at the screen size given by the next breakpoint key (inclusive).
|
|
62
|
+
*/
|
|
63
|
+
not: (key: Breakpoint) => string;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
export interface BreakpointsOptions extends Partial<Breakpoints> {
|
|
@@ -64,6 +64,21 @@ function createBreakpoints(breakpoints) {
|
|
|
64
64
|
return up(key);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
function not(key) {
|
|
68
|
+
// handle first and last key separately, for better readability
|
|
69
|
+
const keyIndex = keys.indexOf(key);
|
|
70
|
+
|
|
71
|
+
if (keyIndex === 0) {
|
|
72
|
+
return up(keys[1]);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (keyIndex === keys.length - 1) {
|
|
76
|
+
return down(keys[keyIndex]);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
|
|
80
|
+
}
|
|
81
|
+
|
|
67
82
|
return (0, _extends2.default)({
|
|
68
83
|
keys,
|
|
69
84
|
values,
|
|
@@ -71,6 +86,7 @@ function createBreakpoints(breakpoints) {
|
|
|
71
86
|
down,
|
|
72
87
|
between,
|
|
73
88
|
only,
|
|
89
|
+
not,
|
|
74
90
|
unit
|
|
75
91
|
}, other);
|
|
76
92
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
2
|
-
export declare type SpacingArgument = number | string;
|
|
3
|
-
export interface Spacing {
|
|
4
|
-
(): string;
|
|
5
|
-
(value: number): string;
|
|
6
|
-
(topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
|
|
7
|
-
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
|
-
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
|
-
}
|
|
10
|
-
export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
|
|
1
|
+
export declare type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
2
|
+
export declare type SpacingArgument = number | string;
|
|
3
|
+
export interface Spacing {
|
|
4
|
+
(): string;
|
|
5
|
+
(value: number): string;
|
|
6
|
+
(topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
|
|
7
|
+
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
|
+
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
|
+
}
|
|
10
|
+
export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
|
|
@@ -32,6 +32,8 @@ var _getInitColorSchemeScript = _interopRequireWildcard(require("./getInitColorS
|
|
|
32
32
|
|
|
33
33
|
var _useCurrentColorScheme = _interopRequireDefault(require("./useCurrentColorScheme"));
|
|
34
34
|
|
|
35
|
+
var _createGetCssVar = _interopRequireDefault(require("./createGetCssVar"));
|
|
36
|
+
|
|
35
37
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
36
38
|
|
|
37
39
|
const _excluded = ["colorSchemes"],
|
|
@@ -96,7 +98,7 @@ function createCssVarsProvider(options) {
|
|
|
96
98
|
colorSchemes: colorSchemesProp = {}
|
|
97
99
|
} = themeProp,
|
|
98
100
|
restThemeProp = (0, _objectWithoutPropertiesLoose2.default)(themeProp, _excluded2);
|
|
99
|
-
const hasMounted = React.useRef(
|
|
101
|
+
const hasMounted = React.useRef(false); // eslint-disable-next-line prefer-const
|
|
100
102
|
|
|
101
103
|
let _deepmerge = (0, _utils.deepmerge)(restBaseTheme, restThemeProp),
|
|
102
104
|
{
|
|
@@ -151,7 +153,8 @@ function createCssVarsProvider(options) {
|
|
|
151
153
|
colorSchemes,
|
|
152
154
|
vars: rootVars,
|
|
153
155
|
spacing: themeProp.spacing ? (0, _createSpacing.default)(themeProp.spacing) : systemSpacing,
|
|
154
|
-
breakpoints: themeProp.breakpoints ? (0, _createBreakpoints.default)(themeProp.breakpoints) : systemBreakpoints
|
|
156
|
+
breakpoints: themeProp.breakpoints ? (0, _createBreakpoints.default)(themeProp.breakpoints) : systemBreakpoints,
|
|
157
|
+
getCssVar: (0, _createGetCssVar.default)(prefix)
|
|
155
158
|
});
|
|
156
159
|
const styleSheet = {};
|
|
157
160
|
Object.entries(colorSchemes).forEach(([key, scheme]) => {
|
|
@@ -189,7 +192,7 @@ function createCssVarsProvider(options) {
|
|
|
189
192
|
document.documentElement.setAttribute(attribute, colorScheme);
|
|
190
193
|
}
|
|
191
194
|
}, [colorScheme, attribute]);
|
|
192
|
-
|
|
195
|
+
(0, _utils.unstable_useEnhancedEffect)(() => {
|
|
193
196
|
if (!mode || !enableColorScheme) {
|
|
194
197
|
return undefined;
|
|
195
198
|
}
|
|
@@ -228,6 +231,9 @@ function createCssVarsProvider(options) {
|
|
|
228
231
|
}, [colorScheme]);
|
|
229
232
|
React.useEffect(() => {
|
|
230
233
|
hasMounted.current = true;
|
|
234
|
+
return () => {
|
|
235
|
+
hasMounted.current = false;
|
|
236
|
+
};
|
|
231
237
|
}, []);
|
|
232
238
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ColorSchemeContext.Provider, {
|
|
233
239
|
value: {
|