@mui/system 5.2.4 → 5.3.0

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.d.ts CHANGED
@@ -123,6 +123,7 @@ export const typography: SimpleStyleFunction<
123
123
  | 'letterSpacing'
124
124
  | 'lineHeight'
125
125
  | 'textAlign'
126
+ | 'textTransform'
126
127
  >;
127
128
 
128
129
  // compose.js
package/Box/Box.spec.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/CHANGELOG.md CHANGED
@@ -1,4 +1,271 @@
1
- ### [Versions](https://mui.com/versions/)
1
+ # [Versions](https://mui.com/versions/)
2
+
3
+ ## 5.3.0
4
+
5
+ <!-- generated comparing v5.2.8..master -->
6
+
7
+ _Jan 17, 2022_
8
+
9
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🛠 @siriwatknp added support for callbacks in styleOverrides (#30524)
12
+ - 🧩 @ZeeshanTamboli and @VicHofs improved customization of components (#30515, #30212)
13
+ - 🛠 @hbjORbj fixed the use of ResizeObserver in Masonry component (#29896)
14
+ - 📄 @danilo-leal and @siriwatknp created our own blog home page (#30121)
15
+
16
+ ### `@mui/material@5.3.0`
17
+
18
+ - [Autocomplete] Add ability to pass props to `Paper` component (#30515) @ZeeshanTamboli
19
+ - [Select] Add defaultOpen prop (#30212) @VicHofs
20
+
21
+ ### `@mui/system@5.3.0`
22
+
23
+ - [system][box, grid, typography] `textTransform` prop should work directly on component (#30437) @hbjORbj
24
+ - [system] Support callback value in `styleOverrides` slot (#30524) @siriwatknp
25
+
26
+ ### `@mui/lab@5.0.0-alpha.65`
27
+
28
+ - [Masonry] Observe every masonry child to trigger computation when needed (#29896) @hbjORbj
29
+ - [MobileDatePicker] Fix calling onOpen when readOnly is true (#30561) @alisasanib
30
+
31
+ ### `@mui/codemod@5.3.0`
32
+
33
+ - [codemod] Bump `jscodeshift` to remove `colors` dependency (#30578) @siriwatknp
34
+
35
+ ### `@mui/styled-engine-sc@5.3.0`
36
+
37
+ - [styled-engine-sc] Add the withConfig API to enable using the babel plugin for styled-comonents (#30589) @mnajdova
38
+
39
+ ### `@mui/joy@5.0.0-alpha.11`
40
+
41
+ - [Joy] Add `SvgIcon` component (#30570) @hbjORbj
42
+
43
+ ### `@mui/base@5.0.0-alpha.65`
44
+
45
+ - [SliderUnstyled] Add useSlider hook and polish (#30094) @mnajdova
46
+
47
+ ### Docs
48
+
49
+ - [docs] End code block in test/README.md (#30531) @yaboi
50
+ - [docs] Remove redundant grouping in /components/radio-buttons/ (#30065) @eps1lon
51
+ - [docs] Update migration scripts and e2e tests (#30583) @siriwatknp
52
+ - [docs] Fix migration guides for versions older than v4 (#30595) @kkirsche
53
+ - [docs] Inform about specific files for DataGrid locales (#30411) @alexfauquette
54
+ - [docs] jss-to-tss migration advise to drop clsx in favor of cx (#30527) @garronej
55
+ - [docs] Fix integration with MUI X (#30593) @oliviertassinari
56
+ - [docs] Adding peer dependencies explanation on @mui/lab README.md (#30532) @glaucoheitor
57
+ - [docs] Add missing quote in migration docs (#30587) @Atralbus
58
+ - [docs] Update link to Doit sponsor (#30586) @oliviertassinari
59
+ - [docs] Add products identifier and drawer (#30283) @siriwatknp
60
+ - [website] Fix code button with installation command (#30622) @danilo-leal
61
+ - [website] Add a Blog index page (#30121) @danilo-leal
62
+ - [website] Migrate Twitter from @MaterialUI to @MUI_hq @oliviertassinari
63
+ - [website] Add Andrii to the About Us page (#30581) @cherniavskii
64
+
65
+ ### Core
66
+
67
+ - [core] Revert changes to peer dependencies (#30662) @oliviertassinari
68
+ - [core] Renovate should not try to update node (#30659) @oliviertassinari
69
+ - [core] Remove dead files (#30663) @oliviertassinari
70
+ - [core] Fix outdated TypeScript template (#30596) @oliviertassinari
71
+ - [core] Remove extra `</p>` from header of README.md (#30530) @yaboi
72
+ - [core] Fix `docs:api` script for Windows OS (#30533) @ZeeshanTamboli
73
+
74
+ All contributors of this release in alphabetical order: @alexfauquette, @alisasanib, @Atralbus, @cherniavskii, @danilo-leal, @eps1lon, @garronej, @glaucoheitor, @hbjORbj, @kkirsche, @mnajdova, @oliviertassinari, @siriwatknp, @VicHofs, @yaboi, @ZeeshanTamboli
75
+
76
+ ## 5.2.8
77
+
78
+ <!-- generated comparing v5.2.7..master -->
79
+
80
+ _Jan 10, 2022_
81
+
82
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
83
+
84
+ - A meaningful number of 🐛 bug fixes and 📚 documentation improvements.
85
+
86
+ ### `@mui/material@5.2.8`
87
+
88
+ - &#8203;<!-- 05 -->[TextField][inputlabel] Remove `pointer-events: none` property (#30493) @hbjORbj
89
+ - &#8203;<!-- 02 -->[Slider] Add `input` slot to components and componentsProps (#30362) @alexandre-lelain
90
+
91
+ ### `@mui/joy@5.0.0-alpha.10`
92
+
93
+ - &#8203;<!-- 04 -->[Joy] Add `Typography` component (#30489) @siriwatknp
94
+ - &#8203;<!-- 03 -->[Joy] Add functional `Switch` component (#30487) @siriwatknp
95
+
96
+ ### Docs
97
+
98
+ - &#8203;<!-- 18 -->[docs] Update markdown parser to remove backticks from description (#30495) @aefox
99
+ - &#8203;<!-- 17 -->[docs] Fix the crash when applying custom colors (#30563) @siriwatknp
100
+ - &#8203;<!-- 16 -->[docs] Location change of Sebastian (#30528) @eps1lon
101
+ - &#8203;<!-- 15 -->[docs] Lint markdown in the CI (#30395) @oliviertassinari
102
+ - &#8203;<!-- 14 -->[docs] Fix `componentsProps` API docs and PropTypes (#30502) @ZeeshanTamboli
103
+ - &#8203;<!-- 13 -->[docs] Codemod doc for overriding styles using tss (#30499) @garronej
104
+ - &#8203;<!-- 12 -->[docs] fix edge case when replacing data-grid url for migration (#30505) @siriwatknp
105
+ - &#8203;<!-- 11 -->[docs] fix replace url for migration (#30503) @siriwatknp
106
+ - &#8203;<!-- 10 -->[docs] Prepare scripts for migrating to new structure (#30386) @siriwatknp
107
+ - &#8203;<!-- 09 -->[docs] Adjust RTL Guide demos to fully support RTL (#30387) @noam-honig
108
+ - &#8203;<!-- 08 -->[docs] Move @eps1lon to community (#30473) @oliviertassinari
109
+ - &#8203;<!-- 07 -->[docs] Fix typo and spelling in the-sx-prop.md (#30482) @aefox
110
+ - &#8203;<!-- 06 -->[docs] More general docs polishing (#30371) @danilo-leal
111
+ - &#8203;<!-- 01 -->[website] Add José on the /about page (#30492) @danilo-leal
112
+
113
+ All contributors of this release in alphabetical order: @aefox, @alexandre-lelain, @danilo-leal, @eps1lon, @garronej, @hbjORbj, @noam-honig, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
114
+
115
+ ## 5.2.7
116
+
117
+ <!-- generated comparing v5.2.6..master -->
118
+
119
+ _Jan 3, 2022_
120
+
121
+ A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
122
+
123
+ - 📓 Improvements on the Vietnamese (vi-VN) and Finnish (fi-FI) locales (#30426, #30442) @hckhanh @Certificate
124
+ - And more 🐛 bug fixes and 📚 documentation improvements.
125
+
126
+ ### `@mui/material@5.2.7`
127
+
128
+ - &#8203;<!-- 14 -->[Autocomplete] Fix calling onChange for duplicate values (#30374) @alisasanib
129
+ - &#8203;<!-- 13 -->[Avatar] Fix TypeScript error on imgProps (#30255) @ahmad-reza619
130
+ - &#8203;<!-- 12 -->[Badge] Fix `classes` prop TypeScript type (#30427) @ZeeshanTamboli
131
+ - &#8203;<!-- 03 -->[SvgIcon] Allow viewBox to inherit from Component through inheritViewBox prop (#29954) @alex-dikusar
132
+ - &#8203;<!-- 04 -->[SvgIcon] Correct API docs and code style (#30470) @michaldudak
133
+
134
+ ### Docs
135
+
136
+ - &#8203;<!-- 11 -->[blog] 2021 (#30425) @oliviertassinari
137
+ - &#8203;<!-- 15 -->[docs] Fix typo on the Grid docs page (#30446) @abhi45
138
+ - &#8203;<!-- 07 -->[docs] Fix `useMediaQuery` SSR example to v5 theme API (#30454) @ValentinH
139
+ - &#8203;<!-- 11 -->[docs] Improve the migration guide and add examples for transforming to `tss-react` (#30388) @mnajdova
140
+ - &#8203;<!-- 09 -->[docs] Make the reference to the select clearer (#30460) @boazrymland
141
+ - &#8203;<!-- 08 -->[docs] Sync translations with Crowdin (#30385) @l10nbot
142
+ - &#8203;<!-- 06 -->[example] Avoid double rendering in the Remix example (#30366) @mnajdova
143
+ - &#8203;<!-- 05 -->[i18n] improve viVN locale (#30426) @hckhanh
144
+ - &#8203;<!-- 04 -->[l10n] Improve fiFI locale (#30442) @Certificate
145
+ - &#8203;<!-- 02 -->[website] Add new batch of open roles (#30282) @oliviertassinari
146
+ - &#8203;<!-- 01 -->[website] Refactor page context with next router (#30020) @siriwatknp
147
+
148
+ ### Core
149
+
150
+ - &#8203;<!-- 13 -->[core] Automatically close issues that are incomplete and inactive (#30459) @oliviertassinari
151
+ - &#8203;<!-- 10 -->[core] Remove contrib tweet (#30455) @oliviertassinari
152
+
153
+ All contributors of this release in alphabetical order: @abhi45, @ahmad-reza619, @alex-dikusar, @alisasanib, @boazrymland, @Certificate, @hckhanh, @l10nbot, @michaldudak, @mnajdova, @oliviertassinari, @siriwatknp, @ValentinH, @ZeeshanTamboli
154
+
155
+ ## 5.2.6
156
+
157
+ <!-- generated comparing v5.2.5..master -->
158
+
159
+ _Dec 27, 2021_
160
+
161
+ A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
162
+
163
+ - 📓 The Norwegian Bokmål (nb-NO) locale was added (#27520) @wogsland
164
+ - 🛠 Introduced a new `useBadge` hook in the `@mui/base` package (#30246) @mnajdova
165
+ - And more 🐛 bug fixes and 📚 documentation improvements.
166
+
167
+ ### `@mui/material@5.2.6`
168
+
169
+ - &#8203;<!-- 24 -->[ButtonGroup] Fix typo in ButtonGroupContext's interface (#30376) @kealjones-wk
170
+ - &#8203;<!-- 03 -->[l10n] Add Norwegian Bokmål (nb-NO) locale (#27520) @wogsland
171
+
172
+ ### `@mui/base@5.0.0-alpha.62`
173
+
174
+ - &#8203;<!-- 26 -->[BadgeUnstyled] Add useBadge hook (#30246) @mnajdova
175
+
176
+ ### `@mui/joy@5.0.0-alpha.8`
177
+
178
+ - &#8203;<!-- 04 -->[Joy] Button API (#29962) @siriwatknp
179
+
180
+ ### Docs
181
+
182
+ - &#8203;<!-- 27 -->[docs] Fix color coercion (#30319) @Janpot
183
+ - &#8203;<!-- 25 -->[blog] Fix file import conflict resolution (#30391) @oliviertassinari
184
+ - &#8203;<!-- 21 -->[docs] Fix crash on Safari because of unsupported lookahead feature (#30345) @cherniavskii
185
+ - &#8203;<!-- 20 -->[docs] Update to new website domain (#30396) @ryota-murakami
186
+ - &#8203;<!-- 19 -->[docs] Fix text from material-ui to @mui to reflect v5 name changes (#30393) @pupudu
187
+ - &#8203;<!-- 18 -->[docs] Fix a11y in Menu demos (#30378) @ZeeshanTamboli
188
+ - &#8203;<!-- 17 -->[docs] Document how to unmount transition child (#30382) @oliviertassinari
189
+ - &#8203;<!-- 16 -->[docs] The current standard for quotes is QUOTATION MARK @oliviertassinari
190
+ - &#8203;<!-- 15 -->[docs] Fix 404 links (#30380) @oliviertassinari
191
+ - &#8203;<!-- 14 -->[docs] Fix Breadcrumb description (#30307) @jamesmelzer
192
+ - &#8203;<!-- 13 -->[docs] Modify injection order for Gatsby and SSR examples (#30358) @ShuPink
193
+ - &#8203;<!-- 12 -->[docs] Improve the translation experience (#30373) @oliviertassinari
194
+ - &#8203;<!-- 11 -->[docs] Sync translations with Crowdin (#30176) @l10nbot
195
+ - &#8203;<!-- 10 -->[docs] Fix link to /size-snapshot (#30363) @oliviertassinari
196
+ - &#8203;<!-- 09 -->[docs] Fix incorrect aria label in SpeedDial demo (#30354) @chwallen
197
+ - &#8203;<!-- 08 -->[docs] Fix incorrect number of breakpoint helpers (#30353) @chwallen
198
+ - &#8203;<!-- 07 -->[docs] Update outdated links (#30260) @oliviertassinari
199
+ - &#8203;<!-- 06 -->[docs] Support redirects from old urls to /material/\* (#30286) @siriwatknp
200
+ - &#8203;<!-- 05 -->[examples] Fix CSS modules integration (#30381) @oliviertassinari
201
+ - &#8203;<!-- 02 -->[website] Fix SEO issues (#30372) @oliviertassinari
202
+ - &#8203;<!-- 01 -->[website] Sync sponsors (#30259) @oliviertassinari
203
+
204
+ ### Core
205
+
206
+ - &#8203;<!-- 28 -->[core] Rename Material-UI to MUI (#30338) @ZeeshanTamboli
207
+ - &#8203;<!-- 23 -->[core] Fix warning in dev mode (#30368) @oliviertassinari
208
+ - &#8203;<!-- 22 -->[core] Update `buildApi` script to support new structure (#30245) @siriwatknp
209
+
210
+ All contributors of this release in alphabetical order: @cherniavskii, @chwallen, @jamesmelzer, @Janpot, @kealjones-wk, @l10nbot, @mnajdova, @oliviertassinari, @pupudu, @ryota-murakami, @ShuPink, @siriwatknp, @wogsland, @ZeeshanTamboli
211
+
212
+ ## 5.2.5
213
+
214
+ <!-- generated comparing v5.2.4..master -->
215
+
216
+ _Dec 20, 2021_
217
+
218
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
219
+
220
+ - 🛠 This release mostly improves what's behind the scenes: infrastructure and tests
221
+ - 📓 Danish (da-DK) locale was added (#29485) @mikk5829
222
+ - 🖌 Polished the design of Base components (#30149) and the docs in general (#29994) @danilo-leal
223
+ - 📚 Many additions and improvements to the documentation were made
224
+
225
+ ### `@mui/material@5.2.5`
226
+
227
+ - [l10n] Add Danish (da-DK) locale (#29485) @mikk5829
228
+ - [LoadingButton] Label progressbar by the LoadingButton (#30002) @eps1lon
229
+ - [Tabs] Remove unnecessary `Partial<>` type around TabIndicatorProps type (#30254) @ZeeshanTamboli
230
+
231
+ ### `@mui/system@5.2.5`
232
+
233
+ - [system] Use `useEnhancedEffect` to prevent flicker (#30216) @hbjORbj
234
+
235
+ ### `@mui/lab@5.0.0-alpha.61`
236
+
237
+ - [pickers] Fix the wrong MuiClockPicker's ArrowSwitcher slot name (#30226) @rejetto
238
+
239
+ ### Docs
240
+
241
+ - [docs] Run JS compiler on markdown output (#29732) @Janpot
242
+ - [Badge] Add tests for `anchorOrigin` prop (#30147) @daniel-sachs
243
+ - [docs] Add cssmodule injection order comments to Nextjs example (#30213) @ShuPink
244
+ - [docs] Remove extra word in Select component code example comments (#30281) @KThompso
245
+ - [docs] Improve the description of the Accordion (#30253) @jamesmelzer
246
+ - [docs] Heading capitalization convention @oliviertassinari
247
+ - [docs] Rename remaining 'unstyled' references to 'base' (#30206) @michaldudak
248
+ - [docs] Add to migration doc about ref type specificity (#30114) @hbjORbj
249
+ - [docs] Add script to clone pages (#30107) @siriwatknp
250
+ - [docs] Correct colors in breakpoints documentation (#30219) @michaldudak
251
+ - [docs] Sync icon search UI state with the url (#30075) @Janpot
252
+ - [docs] Base components demos design polish (#30149) @danilo-leal
253
+ - [docs] General documentation polish (#29994) @danilo-leal
254
+ - [examples] Fix typo in the remix example's README (#30289) @lemol
255
+ - [website] Remove expired gold sponsor (#30222) @oliviertassinari
256
+ - [website] Remove broken showcase links (#30217) @mnajdova
257
+
258
+ ### Core
259
+
260
+ - [test] Reduce bundle size comparison memory consumption (#30195) @Janpot
261
+ - [core] make snapshot comparison more resilient (#30183) @Janpot
262
+ - [core] update formatted ts demo to support new structure (#30248) @siriwatknp
263
+ - [core] cache dependencies in github actions (#30211) @siriwatknp
264
+ - [core] fix root package version (#30204) @siriwatknp
265
+ - [core] Fail the build when the dangerjs script errors (#30186) @Janpot
266
+ - [test] Add E2E website tests (#30128) @siriwatknp
267
+
268
+ 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
2
269
 
3
270
  ## 5.2.4
4
271
 
@@ -1070,7 +1337,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
1070
1337
 
1071
1338
  replace `@material-ui/*` prefix with `@mui/*`:
1072
1339
 
1073
- ```
1340
+ ```sh
1074
1341
  @material-ui/system -> @mui/system
1075
1342
  @material-ui/styles -> @mui/styles
1076
1343
  @material-ui/lab -> @mui/lab
@@ -1083,7 +1350,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
1083
1350
 
1084
1351
  except these 3 packages that are renamed.
1085
1352
 
1086
- ```
1353
+ ```sh
1087
1354
  @material-ui/core => @mui/material // represents Material Design components.
1088
1355
  @material-ui/icons => @mui/icons-material // represents Material Design icons.
1089
1356
  @material-ui/unstyled => @mui/base // fully functional components with minimum styles.
@@ -2456,6 +2723,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
2456
2723
  ```
2457
2724
 
2458
2725
  - &#8203;<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
2726
+
2459
2727
  ```diff
2460
2728
  <Autocomplete
2461
2729
  - getOptionSelected={(option, value) => option.title === value.title}
@@ -4029,7 +4297,7 @@ All contributors of this release in alphabetical order: @artola, @CyanoFresh, @d
4029
4297
 
4030
4298
  ## 5.0.0-alpha.23
4031
4299
 
4032
- ###### _Jan 14, 2021_
4300
+ _Jan 14, 2021_
4033
4301
 
4034
4302
  A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
4035
4303
 
@@ -4144,7 +4412,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
4144
4412
 
4145
4413
  ## 5.0.0-alpha.22
4146
4414
 
4147
- ###### _Jan 4, 2021_
4415
+ _Jan 4, 2021_
4148
4416
 
4149
4417
  A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
4150
4418
 
@@ -4196,7 +4464,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4196
4464
 
4197
4465
  ## 5.0.0-alpha.21
4198
4466
 
4199
- ###### _Dec 30, 2020_
4467
+ _Dec 30, 2020_
4200
4468
 
4201
4469
  A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
4202
4470
 
@@ -4269,7 +4537,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4269
4537
 
4270
4538
  ## 5.0.0-alpha.20
4271
4539
 
4272
- ###### _Dec 21, 2020_
4540
+ _Dec 21, 2020_
4273
4541
 
4274
4542
  A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
4275
4543
 
@@ -4347,7 +4615,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4347
4615
 
4348
4616
  ## 5.0.0-alpha.19
4349
4617
 
4350
- ###### _Dec 13, 2020_
4618
+ _Dec 13, 2020_
4351
4619
 
4352
4620
  A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
4353
4621
 
@@ -4475,7 +4743,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
4475
4743
 
4476
4744
  ## 5.0.0-alpha.18
4477
4745
 
4478
- ###### _Dec 3, 2020_
4746
+ _Dec 3, 2020_
4479
4747
 
4480
4748
  A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
4481
4749
 
@@ -4567,7 +4835,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
4567
4835
 
4568
4836
  ## 5.0.0-alpha.17
4569
4837
 
4570
- ###### _Nov 23, 2020_
4838
+ _Nov 23, 2020_
4571
4839
 
4572
4840
  A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
4573
4841
 
@@ -4734,7 +5002,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4734
5002
 
4735
5003
  ## 5.0.0-alpha.16
4736
5004
 
4737
- ###### _Nov 14, 2020_
5005
+ _Nov 14, 2020_
4738
5006
 
4739
5007
  A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
4740
5008
 
@@ -4838,7 +5106,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
4838
5106
 
4839
5107
  ## 5.0.0-alpha.15
4840
5108
 
4841
- ###### _Nov 4, 2020_
5109
+ _Nov 4, 2020_
4842
5110
 
4843
5111
  A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
4844
5112
 
@@ -4950,7 +5218,7 @@ A big thanks to the 20 contributors who made this release possible. Here are som
4950
5218
 
4951
5219
  ## 5.0.0-alpha.14
4952
5220
 
4953
- ###### _Oct 23, 2020_
5221
+ _Oct 23, 2020_
4954
5222
 
4955
5223
  A big thanks to the 23 contributors who made this release possible.
4956
5224
  Here are some highlights ✨:
@@ -5001,12 +5269,14 @@ Here are some highlights ✨:
5001
5269
  You can read [their migration guide](https://popper.js.org/docs/v2/migration-guide/) or the following summary:
5002
5270
 
5003
5271
  - The CSS prefixes have changed:
5272
+
5004
5273
  ```diff
5005
5274
  popper: {
5006
5275
  zIndex: 1,
5007
5276
  - '&[x-placement*="bottom"] $arrow': {
5008
5277
  + '&[data-popper-placement*="bottom"] $arrow': {
5009
5278
  ```
5279
+
5010
5280
  - Method names have changed.
5011
5281
 
5012
5282
  ```diff
@@ -5121,7 +5391,7 @@ Here are some highlights ✨:
5121
5391
 
5122
5392
  ## 5.0.0-alpha.13
5123
5393
 
5124
- ###### _Oct 17, 2020_
5394
+ _Oct 17, 2020_
5125
5395
 
5126
5396
  A big thanks to the 25 contributors who made this release possible.
5127
5397
  Here are some highlights ✨:
@@ -5247,7 +5517,7 @@ Here are some highlights ✨:
5247
5517
 
5248
5518
  ## 5.0.0-alpha.12
5249
5519
 
5250
- ###### _Oct 11, 2020_
5520
+ _Oct 11, 2020_
5251
5521
 
5252
5522
  A big thanks to the 45 contributors who made this release possible.
5253
5523
  Here are some highlights ✨:
@@ -5471,7 +5741,7 @@ Here are some highlights ✨:
5471
5741
 
5472
5742
  ## 5.0.0-alpha.11
5473
5743
 
5474
- ###### _Sep 26, 2020_
5744
+ _Sep 26, 2020_
5475
5745
 
5476
5746
  A big thanks to the 29 contributors who made this release possible.
5477
5747
  Here are some highlights ✨:
@@ -5705,7 +5975,7 @@ More documentation are coming.
5705
5975
 
5706
5976
  ## 5.0.0-alpha.10
5707
5977
 
5708
- ###### _Sep 15, 2020_
5978
+ _Sep 15, 2020_
5709
5979
 
5710
5980
  A big thanks to the 16 contributors who made this release possible.
5711
5981
  Here are some highlights ✨:
@@ -5770,13 +6040,13 @@ Here are some highlights ✨:
5770
6040
 
5771
6041
  Before:
5772
6042
 
5773
- ```
6043
+ ```sh
5774
6044
  theme.spacing(2) => 16
5775
6045
  ```
5776
6046
 
5777
6047
  After:
5778
6048
 
5779
- ```
6049
+ ```sh
5780
6050
  theme.spacing(2) => '16px'
5781
6051
  ```
5782
6052
 
@@ -5835,7 +6105,7 @@ Here are some highlights ✨:
5835
6105
 
5836
6106
  ## 5.0.0-alpha.9
5837
6107
 
5838
- ###### _Sep 6, 2020_
6108
+ _Sep 6, 2020_
5839
6109
 
5840
6110
  A big thanks to the 14 contributors who made this release possible.
5841
6111
  Here are some highlights ✨:
@@ -5888,7 +6158,7 @@ Here are some highlights ✨:
5888
6158
 
5889
6159
  ## 5.0.0-alpha.8
5890
6160
 
5891
- ###### _Aug 31, 2020_
6161
+ _Aug 31, 2020_
5892
6162
 
5893
6163
  A big thanks to the 19 contributors who made this release possible.
5894
6164
  Here are some highlights ✨:
@@ -6064,7 +6334,7 @@ const theme = createMuiTheme({
6064
6334
 
6065
6335
  ## 5.0.0-alpha.7
6066
6336
 
6067
- ###### _Aug 22, 2020_
6337
+ _Aug 22, 2020_
6068
6338
 
6069
6339
  A big thanks to the 22 contributors who made this release possible.
6070
6340
  Here are some highlights ✨:
@@ -6194,7 +6464,7 @@ Here are some highlights ✨:
6194
6464
 
6195
6465
  ## 5.0.0-alpha.6
6196
6466
 
6197
- ###### _Aug 13, 2020_
6467
+ _Aug 13, 2020_
6198
6468
 
6199
6469
  A big thanks to the 26 contributors who made this release possible.
6200
6470
  Here are some highlights ✨:
@@ -6237,7 +6507,7 @@ Here are some highlights ✨:
6237
6507
 
6238
6508
  ### `@material-ui/core@v5.0.0-alpha.6`
6239
6509
 
6240
- ### Breaking changes
6510
+ #### Breaking changes
6241
6511
 
6242
6512
  - [Avatar] Rename variant circle -> circular for consistency (#22015) @kodai3
6243
6513
  Rename `circle` to `circular` for consistency. The possible values should be adjectives, not nouns:
@@ -6396,7 +6666,7 @@ Here are some highlights ✨:
6396
6666
  +},
6397
6667
  ```
6398
6668
 
6399
- ### Changes
6669
+ #### Changes
6400
6670
 
6401
6671
  - [Avatar] Custom variant (#22139) @mnajdova
6402
6672
  - [Badge] Add missing class key (#22095) @kodai3
@@ -6416,7 +6686,7 @@ Here are some highlights ✨:
6416
6686
 
6417
6687
  ### `@material-ui/lab@v5.0.0-alpha.6`
6418
6688
 
6419
- ### Breaking changes
6689
+ #### Breaking changes
6420
6690
 
6421
6691
  - [Skeleton] Rename variant circle -> circular and rect -> rectangular for consistency (#22053) @kodai3
6422
6692
  Rename `circle` to `circular` and `rect` to `rectangular` for consistency. The possible values should be adjectives, not nouns:
@@ -6428,7 +6698,7 @@ Here are some highlights ✨:
6428
6698
  +<Skeleton variant="rectangular">
6429
6699
  ```
6430
6700
 
6431
- ### Changes
6701
+ #### Changes
6432
6702
 
6433
6703
  - [Autocomplete] Add support for "{label: string}" data type as a default for "options" (#21992) @DanailH
6434
6704
  - [TreeView] Add disabled prop (#20133) @netochaves
@@ -6480,7 +6750,7 @@ Here are some highlights ✨:
6480
6750
 
6481
6751
  ## 5.0.0-alpha.5
6482
6752
 
6483
- ###### _July 28, 2020_
6753
+ _July 28, 2020_
6484
6754
 
6485
6755
  A big thanks to the 18 contributors who made this release possible.
6486
6756
 
@@ -6551,7 +6821,7 @@ A big thanks to the 18 contributors who made this release possible.
6551
6821
 
6552
6822
  ## 5.0.0-alpha.4
6553
6823
 
6554
- ###### _July 19, 2020_
6824
+ _July 19, 2020_
6555
6825
 
6556
6826
  A big thanks to the 11 contributors who made this release possible.
6557
6827
 
@@ -6593,7 +6863,7 @@ A big thanks to the 11 contributors who made this release possible.
6593
6863
 
6594
6864
  ## 5.0.0-alpha.3
6595
6865
 
6596
- ###### _July 12, 2020_
6866
+ _July 12, 2020_
6597
6867
 
6598
6868
  A big thanks to the 14 contributors who made this release possible.
6599
6869
 
@@ -6642,7 +6912,7 @@ A big thanks to the 14 contributors who made this release possible.
6642
6912
 
6643
6913
  ## 5.0.0-alpha.2
6644
6914
 
6645
- ###### _July 4, 2020_
6915
+ _July 4, 2020_
6646
6916
 
6647
6917
  A big thanks to the 16 contributors who made this release possible.
6648
6918
 
@@ -6704,7 +6974,7 @@ A big thanks to the 16 contributors who made this release possible.
6704
6974
 
6705
6975
  ## 5.0.0-alpha.1
6706
6976
 
6707
- ###### _June 27, 2020_
6977
+ _June 27, 2020_
6708
6978
 
6709
6979
  A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
6710
6980
 
@@ -6820,6 +7090,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
6820
7090
  ```
6821
7091
 
6822
7092
  - [Accordion] typescript: The `event` in `onChange` is no longer typed as a `React.ChangeEvent` but `React.SyntheticEvent`.
7093
+
6823
7094
  ```diff
6824
7095
  -<Accordion onChange={(event: React.ChangeEvent<{}>, expanded: boolean) => {}} />
6825
7096
  +<Accordion onChange={(event: React.SyntheticEvent, expanded: boolean) => {}} />
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/createStyled.js CHANGED
@@ -156,7 +156,11 @@ function createStyled(input = {}) {
156
156
  const styleOverrides = getStyleOverrides(componentName, theme);
157
157
 
158
158
  if (styleOverrides) {
159
- return overridesResolver(props, styleOverrides);
159
+ const resolvedStyleOverrides = {};
160
+ Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
161
+ resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(props) : slotStyle;
162
+ });
163
+ return overridesResolver(props, resolvedStyleOverrides);
160
164
  }
161
165
 
162
166
  return null;
@@ -218,6 +222,10 @@ function createStyled(input = {}) {
218
222
  return Component;
219
223
  };
220
224
 
225
+ if (defaultStyledResolver.withConfig) {
226
+ muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
227
+ }
228
+
221
229
  return muiStyledResolver;
222
230
  };
223
231
  }
@@ -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"],
@@ -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
- React.useEffect(() => {
195
+ (0, _utils.unstable_useEnhancedEffect)(() => {
193
196
  if (!mode || !enableColorScheme) {
194
197
  return undefined;
195
198
  }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
3
+ * and they does not need to remember the prefix (defined once).
4
+ */
5
+ export default function createGetCssVar<T extends string = string>(prefix?: string): <AdditionalVars extends string = never>(field: T | AdditionalVars, ...vars: (T | AdditionalVars)[]) => string;