@mui/private-theming 6.0.0-alpha.1 → 6.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,608 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.12
4
+
5
+ <!-- generated comparing v6.0.0-alpha.11..next -->
6
+
7
+ _Jun 24, 2024_
8
+
9
+ A big thanks to the 17 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.0.0-alpha.12`
12
+
13
+ - Add `InitColorSchemeScript` for Next.js App Router (#42247) @siriwatknp
14
+ - [Autocomplete] Fix renderOption props type (#42689) @DiegoAndai
15
+ - [Autocomplete] Fix React 18.3 key spread warnings in Autocomplete demos (#42691) @aarongarciah
16
+ - Support Pigment CSS for `CssBaseline`, `ScopedCssBaseline` and `Popper` (#42640) @siriwatknp
17
+ - Add `DefaultPropsProvider` for Pigment CSS integration (#42638) @siriwatknp
18
+ - [Stepper] Generate class for nonLinear prop (#42620) @alexismo
19
+ - [Tab] Fix failing test (#42686) @aarongarciah
20
+ - [Tab] Deprecate iconWrapper class for icon class (#42647) @sai6855
21
+ - [TableSortLabel] Deprecate composed classes (#42281) @sai6855
22
+ - [usePagination] Update pagination `siblingsEnd` calculation logic (#42667) @Mini-ghost
23
+
24
+ ### `@mui/codemod@6.0.0-alpha.12`
25
+
26
+ - Support dynamic props styled transformation (#42683) @siriwatknp
27
+
28
+ ### `@mui/system@6.0.0-alpha.12`
29
+
30
+ - Fix issues reported by react compiler in `mui-system` package (#42637) @sai6855
31
+ - [useMediaQuery] Remove deprecated types (#42560) @aarongarciah
32
+
33
+ ### `@mui/joy@5.0.0-beta.45`
34
+
35
+ - Fix issues reported by the React Compiler (#42671) @anuujj
36
+ - [Autocomplete] Fix React spread key warning (#42741) @aarongarciah
37
+
38
+ ### `@mui/lab@6.0.0-alpha.12`
39
+
40
+ - [LoadingButton] Apply wrapping element to prevent React crash on Google page translation (#35198) @BartJanvanAssen
41
+
42
+ ### Docs
43
+
44
+ - Fix git diff format in migration to v6 (#42711) @oliviertassinari
45
+ - Use new email for sponsoring @oliviertassinari
46
+ - Fix 301 links (#42697) @alexfauquette
47
+ - Normalize the capitalization of Design Kit @oliviertassinari
48
+ - Recommend setting HTML attribute instead of DOM property for RTL (#42599) @aarongarciah
49
+ - [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (#42648) @Danielkhakbaz
50
+
51
+ ### Core
52
+
53
+ - [code-infra] Try disabling animations when taking screenshots (#42537) @Janpot
54
+ - [code-infra] Fix benchmark package (#42553) @Janpot
55
+ - [core] Replace enzyme in describeConformance (#42447) @DiegoAndai
56
+ - [docs-infra] Fix layout shift demo toolbar (#42743) @oliviertassinari
57
+ - [docs-infra] Fix visual look of in-house ad (#42735) @oliviertassinari
58
+ - [docs-infra] Add stray design polish (#42646) @danilo-leal
59
+ - [docs-infra] Fix wrong migration (#42675) @siriwatknp
60
+ - [docs-infra] Fine tune markdown elements design (#42643) @danilo-leal
61
+ - [docs-infra] Revamp the product switcher design (#42603) @danilo-leal
62
+ - [docs-infra] Allow Link component to receive the `role` attribute (#42629) @danilo-leal
63
+ - [infra] Add support donation button (#42499) @oliviertassinari
64
+ - [infra] Raise `tsconfig`/`tsc` target to `es2022` (#42645) @LukasTy
65
+ - [test] Fix tests on CI (#42670) @michaldudak
66
+ - [test] Fix issues reported by react-compiler in test packages (#42626) @sai6855
67
+ - [website] Add Armin to the team members (#42679) @arminmeh
68
+ - [website] Open Staff Engineer role for Pigment CSS (#42531) @mnajdova
69
+
70
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @alexismo, @anuujj, @arminmeh, @BartJanvanAssen, @Danielkhakbaz, @danilo-leal, @DiegoAndai, @Janpot, @LukasTy, @michaldudak, @Mini-ghost, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp
71
+
72
+ ## v6.0.0-alpha.11
73
+
74
+ <!-- generated comparing v6.0.0-alpha.10..next -->
75
+
76
+ _Jun 11, 2024_
77
+
78
+ A big thanks to the 18 contributors who made this release possible.
79
+
80
+ ### `@mui/material@6.0.0-alpha.11`
81
+
82
+ - &#8203;<!-- 38 -->[Autocomplete] Shouldn't resize when hovering (#42452) @ZeeshanTamboli
83
+ - &#8203;<!-- 37 -->[Chip] Fix focus issue related with the Escape event (#41578) @shrilsharma
84
+ - &#8203;<!-- 12 -->[Grid] Fix support for CSS variables (#42574) @oliviertassinari
85
+ - &#8203;<!-- 11 -->[InputBase] Use `globalCss` for Pigment integration (#42431) @siriwatknp
86
+ - &#8203;<!-- 10 -->Change React.ReactElement type from `any` to `unknown` (#42473) @sai6855
87
+ - &#8203;<!-- 09 -->Integrate `extendSxProp` adapter (#42543) @siriwatknp
88
+ - &#8203;<!-- 08 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (#42549) @sai6855
89
+ - &#8203;<!-- 08 -->[pigment-css] Add `stringifyTheme` for Pigment CSS integration (#42476) @siriwatknp
90
+
91
+ ### `@mui/system@6.0.0-alpha.11`
92
+
93
+ - &#8203;<!-- 11 -->[Grid] Remove `disableEqualOverflow` by using `gap` (#42526) @DiegoAndai
94
+ - &#8203;<!-- 07 -->[useMediaQuery] Drop Safari < 14 support (#42464) @aarongarciah
95
+
96
+ ### `@mui/utils@6.0.0-alpha.11`
97
+
98
+ - &#8203;<!-- 04 -->Allow passing `NaN` as `defaultValue` to `useControlled` (#41559) @iammminzzy
99
+
100
+ ### `@mui/codemod@6.0.0-alpha.11`
101
+
102
+ - &#8203;<!-- 39 -->Improve styled and sx prop transformation (#42598) @siriwatknp
103
+ - &#8203;<!-- 36 -->Support more cases for sx-prop transformation (#42527) @siriwatknp
104
+
105
+ ### `@mui/private-theming@6.0.0-alpha.11`
106
+
107
+ - &#8203;<!-- 09 -->Fix issues reported by react compiler in `mui-private-theming` components (#42619) @sai6855
108
+
109
+ ### Docs
110
+
111
+ - &#8203;<!-- 31 -->Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
112
+ - &#8203;<!-- 29 -->Fix dashboard template console error (#42594) @oliviertassinari
113
+ - &#8203;<!-- 28 -->Migrate system props to `sx` prop (#42475) @siriwatknp
114
+ - &#8203;<!-- 27 -->[material-ui]Fix duplicated sentence (#42521) @alexfauquette
115
+ - &#8203;<!-- 22 -->[Grid] Fix docs spacing (#42573) @oliviertassinari
116
+ - &#8203;<!-- 21 -->[joy-ui] Add Next.js App Router instructions on how to prevent flickering (#42514) @devnyxie
117
+ - &#8203;<!-- 20 -->[joy-ui] Fix HTML tag without preformatting (#42525) @jacobmoshipco
118
+ - &#8203;<!-- 19 -->[material-ui] Add docs for complementary stepper components (#41900) @anle9650
119
+ - &#8203;<!-- 18 -->[material-ui] Fix typo on Sign-in/Sign-up templates (#42605) @zanivan
120
+ - &#8203;<!-- 17 -->[material-ui] Add container queries docs (#42434) @siriwatknp
121
+ - &#8203;<!-- 16 -->[material-ui] Fix ESLint error in Stepper demo (#42559) @aarongarciah
122
+ - &#8203;<!-- 15 -->[material-ui] Shorten useMediaQuery subheading (#42561) @aarongarciah
123
+ - &#8203;<!-- 14 -->[material-ui] Add a Refine example project (#42461) @necatiozmen
124
+
125
+ ### Core
126
+
127
+ - &#8203;<!-- 39 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
128
+ - &#8203;<!-- 35 -->[core] Allow `for..of` loops (#42600) @michaldudak
129
+ - &#8203;<!-- 34 -->[core] Add comment about Object.js @oliviertassinari
130
+ - &#8203;<!-- 33 -->[core] Disable eslint-plugin-react-compiler for Base (#42563) @aarongarciah
131
+ - &#8203;<!-- 33 -->[core] Group Pigment CSS dependencies (#42174) @siriwatknp
132
+ - &#8203;<!-- 32 -->[core] Configure eslint-plugin-react-compiler (#42555) @aarongarciah
133
+ - &#8203;<!-- 31 -->[core] Skip charts animation for visual regression test (#42530) @alexfauquette
134
+ - &#8203;<!-- 26 -->[docs-infra] Simplify click header (#42593) @oliviertassinari
135
+ - &#8203;<!-- 25 -->[docs-infra] Add configurable jsdoc host variable (#42472) @tonygravell
136
+ - &#8203;<!-- 25 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
137
+ - &#8203;<!-- 24 -->[docs-infra] Prevent link anchor when selecting text (#41994) @alexfauquette
138
+ - &#8203;<!-- 23 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
139
+ - &#8203;<!-- 13 -->[examples] Remove Pigment CSS examples (#42471) @sai6855
140
+ - &#8203;<!-- 06 -->[test] Restore pnpm tc command (#42572) @oliviertassinari
141
+ - &#8203;<!-- 05 -->[test] Restore testing internal packages (#42519) @michaldudak
142
+ - &#8203;<!-- 03 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
143
+ - &#8203;<!-- 02 -->[website] Remove blank line @oliviertassinari
144
+ - &#8203;<!-- 01 -->[website] Fix mobile layout shift @oliviertassinari
145
+
146
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @DanailH, @danilo-leal, @devnyxie, @DiegoAndai, @iammminzzy, @jacobmoshipco, @michaldudak, @necatiozmen, @oliviertassinari, @sai6855, @shrilsharma, @siriwatknp, @tonygravell, @zanivan, @ZeeshanTamboli
147
+
148
+ ## v6.0.0-alpha.10
149
+
150
+ <!-- generated comparing v6.0.0-alpha.9..next -->
151
+
152
+ _Jun 4, 2024_
153
+
154
+ A big thanks to the 7 contributors who made this release possible.
155
+
156
+ ### `@mui/material@6.0.0-alpha.10`
157
+
158
+ - &#8203;<!-- 26 -->[Backdrop] Deprecate `components` and `componentsProps` (#42468) @DiegoAndai
159
+ - &#8203;<!-- 25 -->[Collapse] Bound max transition time (#42390) @oliviertassinari
160
+ - &#8203;<!-- 12 -->[FilledInput] Remove unapplied classes from filledInputClasses interface and add missing classes to root (#42082) @sai6855
161
+ - &#8203;<!-- 11 -->[InputBase] Deprecate components and componentProps props for v6 (#42093) @ChronicusUA
162
+ - &#8203;<!-- 10 -->Remove remaining IE11 code (#42283) @DiegoAndai
163
+ - &#8203;<!-- 09 -->[Modal] Deprecate `components` and `componentsProps` (#42469) @DiegoAndai
164
+ - &#8203;<!-- 08 -->[Popover] Migrate useSlotProps to useSlot (#42369) @sai6855
165
+ - &#8203;<!-- 07 -->[useMediaQuery] Remove unused useMediaQueryTheme (#42367) @aarongarciah
166
+
167
+ ### `@mui/system@6.0.0-alpha.10`
168
+
169
+ - &#8203;<!-- 06 -->Remove IE11 code (#42436) @DiegoAndai
170
+
171
+ ### Docs
172
+
173
+ - &#8203;<!-- 23 -->Reflect Base UI and MUI System in a different repository @oliviertassinari
174
+ - &#8203;<!-- 22 -->Update twitter.com to x.com @oliviertassinari
175
+ - &#8203;<!-- 21 -->Simplify Example projects page @oliviertassinari
176
+ - &#8203;<!-- 17 -->[icons] Update README and docs page (#41938) @danilo-leal
177
+ - &#8203;<!-- 16 -->[material-ui] Add changelog section to the design kits page (#42449) @danilo-leal
178
+ - &#8203;<!-- 15 -->[material-ui] Fix sentence in the All components page (#42336) @danilo-leal
179
+ - &#8203;<!-- 14 -->[material-ui] Update Figma design kit doc redirect link (#42448) @danilo-leal
180
+ - &#8203;<!-- 13 -->[system] Add "dynamic values" section to sx prop page (#42239) @aarongarciah
181
+
182
+ ### Core
183
+
184
+ - &#8203;<!-- 20 -->[docs-infra] Update the OG card image design (#42470) @danilo-leal
185
+ - &#8203;<!-- 19 -->[docs-infra] Add small design polish (#42455) @danilo-leal
186
+ - &#8203;<!-- 18 -->[docs-infra] Update the Material logo + add copy functionality (#42435) @danilo-leal
187
+ - &#8203;<!-- 05 -->[website] Update DoiT description and link in Sponsors section (#42505) @erezstmn-doit
188
+ - &#8203;<!-- 04 -->[website] Clean up the docs-infra job ad (#42504) @danilo-leal
189
+ - &#8203;<!-- 03 -->[website] Fix FlashCode position (#42139) @oliviertassinari
190
+ - &#8203;<!-- 02 -->[website] Open Docs-infra engineer role (#42101) @danilo-leal
191
+ - &#8203;<!-- 01 -->[website] Fix locationCountry in about page @oliviertassinari
192
+
193
+ All contributors of this release in alphabetical order: @aarongarciah, @ChronicusUA, @danilo-leal, @DiegoAndai, @erezstmn-doit, @oliviertassinari, @sai6855
194
+
195
+ ## v6.0.0-alpha.9
196
+
197
+ <!-- generated comparing v6.0.0-alpha.8..next -->
198
+
199
+ _May 29, 2024_
200
+
201
+ A big thanks to the 23 contributors who made this release possible. Here are some highlights ✨:
202
+
203
+ - 🚀 `CssVarsProvider` and `extendTheme` are now stable (#42246) @siriwatknp
204
+
205
+ ### `@mui/material@6.0.0-alpha.9`
206
+
207
+ - &#8203;<!-- 49 -->[AlertTitle] Enable extending Typography props (#42269) @lucasgmelo
208
+ - &#8203;<!-- 48 -->[AvatarGroup] deprecate `componentsProps` for v6 (#42122) @lhilgert9
209
+ - &#8203;<!-- 15 -->[Grid] Deprecate `wrap` prop (#42363) @fedirjh
210
+ - &#8203;<!-- 14 -->[ListItem] Document `*Component` and `*Props` props deprecations (#42263) @aarongarciah
211
+ - &#8203;<!-- 13 -->[ListItem] Deprecate ListItem's components and componentsProps (#42219) @aarongarciah
212
+ - &#8203;<!-- 12 -->[ListItemSecondaryAction] Deprecate component (#42251) @aarongarciah
213
+ - &#8203;<!-- 11 -->Stabilize `CssVarsProvider` and `extendTheme` (#42246) @siriwatknp
214
+ - &#8203;<!-- 10 -->[Popper] Deprecate components and componentProps props for v6 (#42111) @ChronicusUA
215
+ - &#8203;<!-- 09 -->[responsiveFontSizes] Handled undefined variants (#42412) @brijeshb42
216
+ - &#8203;<!-- 08 -->[Slider] Fix wrong CSS value (#42370) @mnajdova
217
+ - &#8203;<!-- 07 -->[Tooltip] Deprecate components and componentProps props for v6 (#42107) @ChronicusUA
218
+
219
+ ### `@mui/system@6.0.0-alpha.9`
220
+
221
+ - &#8203;<!-- 34 -->[createStyled] Intercept `ownerState` coming from `props` and `ownerState` (#42358) @DiegoAndai
222
+
223
+ ### `@mui/codemod@6.0.0-alpha.9`
224
+
225
+ - &#8203;<!-- 41 -->Add `sx` prop for v6 migration (#42153) @siriwatknp
226
+ - &#8203;<!-- 40 -->Add codemod for removing system props (#42282) @siriwatknp
227
+
228
+ ### Docs
229
+
230
+ - &#8203;<!-- 33 -->Remove unused images (#42324) @danilo-leal
231
+ - &#8203;<!-- 32 -->Add Pigment CSS and Base UI logos SVGs (#42322) @danilo-leal
232
+ - &#8203;<!-- 22 -->[joy-ui] Fix template responsiveness (#42422) @j4marcos
233
+ - &#8203;<!-- 21 -->[material-ui] Add the Pashto locale (#42244) @sayoubiaf
234
+ - &#8203;<!-- 20 -->[material-ui] Remove duplicate Design Kits page (#42338) @danilo-leal
235
+ - &#8203;<!-- 19 -->[material-ui] Document callback to access theme in GlobalStyles (#42257) @aarongarciah
236
+ - &#8203;<!-- 18 -->[material-ui] Add minor modifications to the Vertical stepper demo (#42342) @mihilt
237
+ - &#8203;<!-- 17 -->[material-ui][Tabs] Improve the Basic Tabs demo (#42374) @MatheusEli
238
+ - &#8203;<!-- 16 -->[pigment-css] Polish redirection mention @oliviertassinari
239
+
240
+ ### Core
241
+
242
+ - &#8203;<!-- 47 -->[blog] Add fixes and clean ups to the Blog page (#42311) @danilo-leal
243
+ - &#8203;<!-- 46 -->[blog] Add the "Product" tag to the Pigment CSS post (#42365) @danilo-leal
244
+ - &#8203;<!-- 45 -->[code-infra] Simplify .stylelintrc.js @oliviertassinari
245
+ - &#8203;<!-- 44 -->[code-infra] Fix stylelint locally (#42411) @oliviertassinari
246
+ - &#8203;<!-- 43 -->[code-infra] Run corepack enable on all CI jobs (#42331) @Janpot
247
+ - &#8203;<!-- 42 -->[code-infra] Create examples eslint rule (#42170) @oliviertassinari
248
+ - &#8203;<!-- 39 -->[core] Apply React 19 type changes that don't require upcoming `@types/` packages (#42346) @DiegoAndai
249
+ - &#8203;<!-- 38 -->[core] Remove `react-swipeable-views-utils` package from docs (#42378) @ZeeshanTamboli
250
+ - &#8203;<!-- 37 -->[core] Update `@testing-library/react` and `@testing-library/dom` packages (#42349) @ZeeshanTamboli
251
+ - &#8203;<!-- 36 -->[core] Remove `@types/prettier` package (#42339) @ZeeshanTamboli
252
+ - &#8203;<!-- 35 -->[core] Remove `WyW-in-JS` from Renovate config (#42335) @ZeeshanTamboli
253
+ - &#8203;<!-- 31 -->[docs-infra] Split feedback channels per product (#42413) @alexfauquette
254
+ - &#8203;<!-- 30 -->[docs-infra] Avoid cryptic errors when tests don't exist (#42356) @Janpot
255
+ - &#8203;<!-- 29 -->[docs-infra] Make menu styles consistent (#42387) @danilo-leal
256
+ - &#8203;<!-- 28 -->[docs-infra] Display deprecation messages in API pages (#42352) @aarongarciah
257
+ - &#8203;<!-- 27 -->[docs-infra] Standardize API pages Alert styles (#42386) @danilo-leal
258
+ - &#8203;<!-- 26 -->[docs-infra] Fix Toolpad Core API links (#42362) @apedroferreira
259
+ - &#8203;<!-- 25 -->[docs-infra] Tigthen up the header design (#42180) @danilo-leal
260
+ - &#8203;<!-- 24 -->[docs-infra] Add Toolpad to muiNpmOrgs for codesandbox demos (#42316) @Janpot
261
+ - &#8203;<!-- 23 -->[docs-infra] Allow JSDoc tags (#42337) @aarongarciah
262
+ - &#8203;<!-- 06 -->[test] Remove `userAgent` override in `jsdom` env (#42344) @cherniavskii
263
+ - &#8203;<!-- 05 -->[utils] Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) @tjcouch-sil
264
+ - &#8203;<!-- 04 -->[website] Add Nikita to the about page (#42418) @nikitaa24
265
+ - &#8203;<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (#42341) @KenanYusuf
266
+ - &#8203;<!-- 02 -->[website] Adds Kenan Yusuf to about page (#42317) @KenanYusuf
267
+ - &#8203;<!-- 01 -->[website] Improve about page @oliviertassinari
268
+
269
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @apedroferreira, @brijeshb42, @cherniavskii, @ChronicusUA, @danilo-leal, @DiegoAndai, @fedirjh, @j4marcos, @Janpot, @KenanYusuf, @lhilgert9, @lucasgmelo, @MatheusEli, @mihilt, @mnajdova, @nikitaa24, @oliviertassinari, @sayoubiaf, @siriwatknp, @tjcouch-sil, @ZeeshanTamboli
270
+
271
+ ## v6.0.0-alpha.8
272
+
273
+ <!-- generated comparing v6.0.0-alpha.7..next -->
274
+
275
+ _May 21, 2024_
276
+
277
+ A big thanks to the 7 contributors who made this release possible.
278
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
279
+
280
+ ### `@mui/material@6.0.0-alpha.7`
281
+
282
+ - &#8203;<!-- 04 -->[material-ui] Filter only valid theme palette for generating styles (#42147) @siriwatknp
283
+ - &#8203;<!-- 03 -->[material-ui] Remove UMD bundle (#42172) @ZeeshanTamboli
284
+ - &#8203;<!-- 02 -->[material-ui][TextField] Deprecate `*Props` props (#42062) @DiegoAndai
285
+
286
+ ### Docs
287
+
288
+ - &#8203;<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
289
+ - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
290
+ - &#8203;<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
291
+ - &#8203;<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
292
+
293
+ ### Core
294
+
295
+ - &#8203;<!-- 12 -->[blog] Update blog post OG image (#42270) @danilo-leal
296
+ - &#8203;<!-- 11 -->[blog] Update Pigment CSS post (#42266) @danilo-leal
297
+ - &#8203;<!-- 10 -->[docs] Remove LocalMonero (#42224) @oliviertassinari
298
+ - &#8203;<!-- 08 -->[docs-infra] Fix keyboard navigation on page tabs (#42152) @danilo-leal
299
+ - &#8203;<!-- 10 -->[code-infra] Remove raw-loader (#42275) @Janpot
300
+ - &#8203;<!-- 09 -->[core] Remove outdated Babel plugins (#42140) @ZeeshanTamboli
301
+ - &#8203;<!-- 12 -->[core] Fix a few more key spread issues (#42168) @oliviertassinari
302
+ - &#8203;<!-- 01 -->[website] Avoid duplicate simple vs. rich (#42100) @oliviertassinari
303
+
304
+ All contributors of this release in alphabetical order: @danilo-leal, @DiegoAndai, @Janpot, @Mandar-Pandya, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
305
+
306
+ ## v6.0.0-alpha.7
307
+
308
+ <!-- generated comparing v6.0.0-alpha.6..next -->
309
+
310
+ _May 16, 2024_
311
+
312
+ A big thanks to the 14 contributors who made this release possible.
313
+
314
+ ### `@mui/material@6.0.0-alpha.7`
315
+
316
+ - &#8203;<!-- 23 -->[Autocomplete] Deprecate `componentsProps` props (#42179) @lhilgert9
317
+ - &#8203;<!-- 22 -->[Autocomplete] Improve design when there's a start adornment for small autocomplete (#41781) @TahaRhidouani
318
+ - &#8203;<!-- 21 -->[Autocomplete] deprecate `*Component` and `*Props` for v6 (#41875) @lhilgert9
319
+ - &#8203;<!-- 19 -->[CircularProgress] Deprecate composed classes (#42076) @sai6855
320
+ - &#8203;<!-- 05 -->[ToggleButtonGroup] Add missing `selected` class in ToggleButtonGroupClasses type (#42243) @tarunrajput
321
+
322
+ ### `@mui/codemod@6.0.0-alpha.6`
323
+
324
+ - &#8203;<!-- 18 -->[Divider] Only apply codemod if light prop is present (#42098) @DiegoAndai
325
+
326
+ ### Docs
327
+
328
+ - &#8203;<!-- 13 -->Fix 301 to Figma @oliviertassinari
329
+ - &#8203;<!-- 12 -->Fix use of deprecated React API (#42118) @oliviertassinari
330
+ - &#8203;<!-- 11 -->Remove the Base notification (#42191) @danilo-leal
331
+ - &#8203;<!-- 07 -->[material-ui] Improve descriptions for deprecated props (#42221) @aarongarciah
332
+ - &#8203;<!-- 06 -->[material-ui] Fix typo in composition docs (#42195) @aarongarciah
333
+
334
+ ### Core
335
+
336
+ - &#8203;<!-- 20 -->[blog] Introducing Pigment CSS blog post (#42198) @samuelsycamore
337
+ - &#8203;<!-- 17 -->[core] Remove confusing comment @oliviertassinari
338
+ - &#8203;<!-- 16 -->[core] Match other repositories and convention @oliviertassinari
339
+ - &#8203;<!-- 15 -->[core] Fix React 18.3 warnings about spreading keys in the Material UI `Autocomplete` component (#42099) @heath-freenome
340
+ - &#8203;<!-- 14 -->[core] Remove unecessary quotes @oliviertassinari
341
+ - &#8203;<!-- 10 -->[docs-infra] Share code for section title (#42236) @alexfauquette
342
+ - &#8203;<!-- 09 -->[docs-infra] Limit the copy button to the visible code block (#42115) @danilo-leal
343
+ - &#8203;<!-- 08 -->[docs-infra] Make select components with two capital letters (#42004) @alexfauquette
344
+ - &#8203;<!-- 08 -->[docs-infra][toolpad] Fix Page title and SERP title mismatch (#41919) @bharatkashyap
345
+ - &#8203;<!-- 05 -->[website] Add redirection for talk @oliviertassinari
346
+ - &#8203;<!-- 04 -->[website] Adds Arthur Balduini team info (#42193) @arthurbalduini
347
+ - &#8203;<!-- 03 -->[website] Update the role template file (#42192) @danilo-leal
348
+ - &#8203;<!-- 02 -->[website] Update MUI X deps and migrate TreeView demos to v7 API (#42149) @noraleonte
349
+ - &#8203;<!-- 01 -->[website] Fix pricing casing (#42178) @aarongarciah
350
+
351
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @arthurbalduini, @bharatkashyap, @danilo-leal, @DiegoAndai, @heath-freenome, @lhilgert9, @noraleonte, @oliviertassinari, @sai6855, @samuelsycamore, @TahaRhidouani, @tarunrajput
352
+
353
+ ## v6.0.0-alpha.6
354
+
355
+ <!-- generated comparing v6.0.0-alpha.5..next -->
356
+
357
+ _May 8, 2024_
358
+
359
+ A big thanks to the 10 contributors who made this release possible.
360
+
361
+ ### `@mui/material@6.0.0-alpha.6`
362
+
363
+ - [Chip] Add colorDefault class to chipClasses (#42067) @sai6855
364
+ - Migrate components to support CSS extraction (#42001) @siriwatknp
365
+ - [SpeedDial] Deprecate TransitionComponent (#40698) @harry-whorlow
366
+
367
+ ### `@mui/codemod@6.0.0-alpha.6`
368
+
369
+ - Add `theme-v6` migration (#42056) @siriwatknp
370
+
371
+ ### `@mui/icons-material@6.0.0-alpha.6`
372
+
373
+ - Add the Emergency icon (#42080) @danilo-leal
374
+
375
+ ### Docs
376
+
377
+ - [autocomplete] Fix duplicate autocomplete id (#42086) @oliviertassinari
378
+ - Fix SEO redirection issues @oliviertassinari
379
+ - [material-ui] Fix broken link (#42142) @aarongarciah
380
+ - [material-ui][docs] Fix link on the Sync page (#42088) @danilo-leal
381
+
382
+ ### Core
383
+
384
+ - [blog] Shorten title to fit @oliviertassinari
385
+ - [blog] Update Sync post OG image (#42114) @danilo-leal
386
+ - [blog] A few tweaks in introducing-sync-plugin (#42092) @oliviertassinari
387
+ - [code-infra] Add canary release scripts (#41949) @michaldudak
388
+ - [code-infra] Move ComponentLinkHeader to @mui/docs (#42061) @Janpot
389
+ - [code-infra] Bump node image used by CI in docker (#42079) @LukasTy
390
+ - [core] Restrict import path with ESLint (#41970) @oliviertassinari
391
+ - [docs-infra] Add design and formatting improvements (#42063) @danilo-leal
392
+ - [docs-infra] Fix HTML structure violations (#42085) @oliviertassinari
393
+ - [website] Componentize a few Careers page sections (#42102) @danilo-leal
394
+ - [website] Refine the InfoCard design (#42116) @danilo-leal
395
+ - [website] Fix home page slider's track position (#42141) @aarongarciah
396
+ - [website] Closing the survey @oliviertassinari
397
+ - [website] Remove Survey banner from website and Core docs (#42104) @joserodolfofreitas
398
+
399
+ All contributors of this release in alphabetical order: @aarongarciah, @danilo-leal, @harry-whorlow, @Janpot, @joserodolfofreitas, @LukasTy, @michaldudak, @oliviertassinari, @sai6855, @siriwatknp
400
+
401
+ ## v6.0.0-alpha.5
402
+
403
+ <!-- generated comparing v6.0.0-alpha.4..next -->
404
+
405
+ _May 1, 2024_
406
+
407
+ A big thanks to the 9 contributors who made this release possible.
408
+
409
+ ### `@mui/material@6.0.0-alpha.5`
410
+
411
+ - [FormControlLabel] Deprecate `componentsProps` (#41767) @sai6855
412
+ - [PaginationItem] Deprecate components prop (#41777) @sai6855
413
+ - [SvgIcon] Convert to support CSS extraction (#41779) @aarongarciah
414
+
415
+ ### `@mui/base@5.0.0-beta.43`
416
+
417
+ - [TextareaAutosize] Fix resizing instability (#41638) @ZeeshanTamboli
418
+
419
+ ### Docs
420
+
421
+ - Fix small SEO issues @oliviertassinari
422
+ - [material-ui] Fix minor spelling error in the "About the lab" page (#42073) @ryanhartwig
423
+ - [material-ui] Update Figma plugin name (#41967) @danilo-leal
424
+ - [material-ui][templates] Fix input props attributes in Landing Page template (#42013) @5-tom
425
+ - [system] Update typo on the sx prop page (#42035) @bricker
426
+
427
+ ### Core
428
+
429
+ - [docs-infra] Clean up branding theme file and improve font-face readibility (#42023) @danilo-leal
430
+ - [docs-infra] Simplify docs demo (#42016) @oliviertassinari
431
+ - [website] Add content about the Sync plugin in the Material UI page (#40515) @danilo-leal
432
+ - [website] Sync career roles (#42058) @oliviertassinari
433
+ - [website] Add Nadja on the about page (#42021) @mnajdova
434
+ - [website] Fix code block design by changing the `MarkdownElement` import (#42022) @danilo-leal
435
+ - [wesbite] Remove duplicate MarkdownElement component (#42028) @danilo-leal
436
+
437
+ All contributors of this release in alphabetical order: @5-tom, @aarongarciah, @bricker, @danilo-leal, @mnajdova, @oliviertassinari, @ryanhartwig, @sai6855, @ZeeshanTamboli
438
+
439
+ ## v6.0.0-alpha.4
440
+
441
+ <!-- generated comparing v6.0.0-alpha.3..next -->
442
+
443
+ _Apr 24, 2024_
444
+
445
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
446
+
447
+ - 🔥 Converted 3 more Material UI components to use Pigment CSS.
448
+ - ℹ️ Pigment CSS now lives in [its own repository](https://github.com/mui/pigment-css)! From now on, all future development will happen there.
449
+
450
+ ### `@mui/material@6.0.0-alpha.4`
451
+
452
+ - [Checkbox] Convert to support CSS extraction (#41957) @lhilgert9
453
+ - [IconButton] Convert to support CSS extraction (#41850) @gijsbotje
454
+ - [Radio] Convert to support CSS extraction (#41840) @lhilgert9
455
+ - [Typography] Fix ownerState prop placement (#41903) @sai6855
456
+ - Generate typography tokens (#41703) @siriwatknp
457
+ - Move typography CSS variables to `font` (#42003) @siriwatknp
458
+ - Fix getOverlayAlpha type (#41995) @oliviertassinari
459
+ - Support CSS Extraction using codemod (#41935) @siriwatknp
460
+
461
+ ### `@mui/icons-material@6.0.0-alpha.4`
462
+
463
+ - &#8203;<!-- 08 -->[icons] Update the icons package (#41937) @danilo-leal
464
+
465
+ ### Docs
466
+
467
+ - [material-ui] Remove react-swipeable-views from demos as it's no longer maintained (#41912) @soler1212
468
+ - [material-ui] Add dark theme thumbnails for templates (#41947) @zanivan
469
+ - [material-ui] Remove links and interdependencies from free templates (#41941) @zanivan
470
+ - [material-ui] Add missing backticks to HTML tag in the installation page (#41972) @Miguelrom
471
+ - Fix 301 Toolpad links @oliviertassinari
472
+ - Fix 301 image redirections @oliviertassinari
473
+
474
+ ### Core
475
+
476
+ - pnpm docs:zipRules && vale sync @oliviertassinari
477
+ - Remove @pigment-css/\* packages (#41965) @mnajdova
478
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
479
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
480
+ - [code-infra] Make Babel config path configurable in API docs builder (#41999) @michaldudak
481
+ - [docs-infra] Fix flex-shrink pro-plan (#41990) @oliviertassinari
482
+ - [docs-infra] Allow more value uses of MUI (#41706) @oliviertassinari
483
+ - [docs-infra] Move CPU to shared config (#41901) @oliviertassinari
484
+ - [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
485
+ - [docs-infra] Adapt docs infra to Base UI docs needs (#41963) @michaldudak
486
+ - [docs-infra] Add demo container design refinements (#41948) @danilo-leal
487
+ - [docs-infra] Use the `getLayout` on the material demo pages (#41936) @alexfauquette
488
+ - [test] Update browser versions in karma config (#42008) @ZeeshanTamboli
489
+ - [website] Remove customer support agent role from website (#41969) @rluzists1
490
+ - [website] Fix grid usage and add stray improvements (#41930) @danilo-leal
491
+
492
+ All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @gijsbotje, @Janpot, @lhilgert9, @michaldudak, @Miguelrom, @mnajdova, @oliviertassinari, @rluzists1, @sai6855, @siriwatknp, @soler1212, @zanivan, @ZeeshanTamboli
493
+
494
+ ## v6.0.0-alpha.3
495
+
496
+ <!-- generated comparing v6.0.0-alpha.2..next -->
497
+
498
+ _Apr 17, 2024_
499
+
500
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
501
+
502
+ - 🔥 Converted 5 more Material UI components to use Pigment CSS.
503
+ - 🚀 Added container queries utility to the `@mui/system` package (#41674) @siriwatknp.
504
+
505
+ ### `@mui/material@6.0.0-alpha.3`
506
+
507
+ - Convert `LinearProgress` to support Pigment CSS (#41816) @siriwatknp
508
+ - [Dialog] Prevent onClick on the root element from being overwritten (#41881) @ryanburr
509
+ - [FloatingActionButton] Convert to support CSS extraction (#41851) @gijsbotje
510
+ - Convert `CircularProgress` to support Pigment CSS (#41776) @siriwatknp
511
+ - [PaginationItem] Convert to support CSS extraction (#41848) @gijsbotje
512
+ - [StepConnector] deprecate composed classes (#41740) @sai6855
513
+ - [StepLabel] Deprecate `StepIconComponent`, `StepIconProps` (#41835) @sai6855
514
+ - [ToggleButton] Convert to support CSS extraction (#41782) @lhilgert9
515
+ - [ToggleButtonGroup] Deprecate composed classes (#41288) @sai6855
516
+ - [Typography] Fix Typography inherit variant styles (#41308) @kealjones-wk
517
+
518
+ ### `@mui/system@6.0.0-alpha.3`
519
+
520
+ - Add container queries utility (#41674) @siriwatknp
521
+
522
+ ### `@mui/codemod@6.0.0-alpha.3`
523
+
524
+ - Add styled v6 transformation (#41743) @siriwatknp
525
+
526
+ ### `@mui/joy@5.0.0-beta.36`
527
+
528
+ - [Button] Disable text highlighting (#41902) @mithun522
529
+
530
+ ### `@pigment-css/react@0.0.7`
531
+
532
+ - Patch WyW's WeakRef usage (#41909) @DiegoAndai
533
+ - Implement sx transform for system components (#41861) @brijeshb42
534
+
535
+ ### Docs
536
+
537
+ - [material-ui] Add Connect-related content (#40848) @danilo-leal
538
+ - [material-ui] Fix credit comment typo (#41872) @aarongarciah
539
+ - [material-ui] Remove Data Grid v7 beta callout (#41839) @cherniavskii
540
+ - [material-ui] Add stray design tweaks to free templates (#41696) @zanivan
541
+ - [material-ui] Simplify components styling on templates (#41845) @zanivan
542
+ - [material-ui][Button] Add `onChange` event handler to file upload example (#41863) @aarongarciah
543
+ - [material-ui] Fix import statement in migration guide (#41852) @sai6855
544
+ - Fix 301 redirection @oliviertassinari
545
+ - Fix format git diff regression (#41882) @oliviertassinari
546
+ - Fix small SEO issues @oliviertassinari
547
+ - [pigment-css] Fix README typos (#41870) @MohammadShehadeh
548
+
549
+ ### Core
550
+
551
+ - Begin removing IE 11-related code (#41709) @iammminzzy
552
+ - [blog] Add post to introduce the Connect plugin (#41763) @danilo-leal
553
+ - [code-infra] Fix require.context with aliases (#41682) @Janpot
554
+ - [code-infra] Allow customizing hooks imports in API docs generator (#41828) @michaldudak
555
+ - [codemod] Add utils for `*Component` and `*Props` props deprecations (#41685) @DiegoAndai
556
+ - Replace bundle size reporter filter (#38979) @Janpot
557
+ - [docs-infra] Make the whole header clickable (#39603) @MoazMirza-13
558
+ - [docs-infra] Improve demo container and related components design (#41827) @danilo-leal
559
+ - [docs-infra] Use edge function for card generation (#41188) (#41836) @alexfauquette
560
+ - [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
561
+ - [docs-infra] Fine-tune the OG card image design (#41862) @danilo-leal
562
+ - [docs-infra] Fix markdown version for material (#41908) @alexfauquette
563
+ - [docs-infra] Support multiple tabs in demos (#40901) @bharatkashyap
564
+
565
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @bharatkashyap, @brijeshb42, @cherniavskii, @danilo-leal, @DiegoAndai, @EyaOuenniche, @gijsbotje, @iammminzzy, @Janpot, @kealjones-wk, @lhilgert9, @magnimarels, @michaldudak, @mithun522, @mnajdova, @MoazMirza-13, @MohammadShehadeh, @oliviertassinari, @ryanburr, @sai6855, @siriwatknp, @zanivan
566
+
567
+ ## v6.0.0-alpha.2
568
+
569
+ <!-- generated comparing v6.0.0-alpha.1..next -->
570
+
571
+ _Apr 9, 2024_
572
+
573
+ A big thanks to the 5 contributors who made this release possible.
574
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
575
+
576
+ ### `@mui/material@6.0.0-alpha.2`
577
+
578
+ - &#8203;<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
579
+ - &#8203;<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
580
+
581
+ ### `@pigment-css/react@0.0.6`
582
+
583
+ - &#8203;<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
584
+
585
+ ### `@pigment-css/nextjs-plugin@0.0.6`
586
+
587
+ - &#8203;<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
588
+ - &#8203;<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
589
+
590
+ ### Docs
591
+
592
+ - &#8203;<!-- 11 -->[docs] Fix 301 links @oliviertassinari
593
+ - &#8203;<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
594
+ - &#8203;<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
595
+ - &#8203;<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
596
+ - &#8203;<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
597
+
598
+ ### Core
599
+
600
+ - &#8203;<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
601
+ - &#8203;<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
602
+ - &#8203;<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
603
+
604
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
605
+
3
606
  ## v6.0.0-alpha.1
4
607
 
5
608
  <!-- generated comparing v6.0.0-alpha.0..next -->
@@ -8128,7 +8731,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
8128
8731
 
8129
8732
  <a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
8130
8733
 
8131
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8734
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
8132
8735
 
8133
8736
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
8134
8737
 
@@ -8395,7 +8998,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
8395
8998
 
8396
8999
  - &#8203;<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
8397
9000
 
8398
- Based on the results of the [poll](https://twitter.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
9001
+ Based on the results of the [poll](https://x.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
8399
9002
 
8400
9003
  The new name better reflects the purpose of the package: it contains unstyled components, hooks, and utilities that serve as a **base** to build on.
8401
9004
 
@@ -9598,7 +10201,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9598
10201
 
9599
10202
  <a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
9600
10203
 
9601
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
10204
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9602
10205
 
9603
10206
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9604
10207
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
@@ -12812,7 +13415,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
12812
13415
  ```
12813
13416
 
12814
13417
  - [Autocomplete] Remove `debug` in favor of `open` and dev tools (#23377) @eps1lon
12815
- There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://twitter.com/sulco/status/1305841873945272321), or React devtools props.
13418
+ There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://x.com/sulco/status/1305841873945272321), or React devtools props.
12816
13419
 
12817
13420
  #### Changes
12818
13421
 
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import { exactProp } from '@mui/utils';
@@ -18,7 +17,10 @@ function mergeOuterLocalTheme(outerTheme, localTheme) {
18
17
  }
19
18
  return mergedTheme;
20
19
  }
21
- return _extends({}, outerTheme, localTheme);
20
+ return {
21
+ ...outerTheme,
22
+ ...localTheme
23
+ };
22
24
  }
23
25
 
24
26
  /**
@@ -38,7 +40,9 @@ function ThemeProvider(props) {
38
40
  }
39
41
  }
40
42
  const theme = React.useMemo(() => {
41
- const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
43
+ const output = outerTheme === null ? {
44
+ ...localTheme
45
+ } : mergeOuterLocalTheme(outerTheme, localTheme);
42
46
  if (output != null) {
43
47
  output[nested] = outerTheme !== null;
44
48
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v6.0.0-alpha.1
2
+ * @mui/private-theming v6.0.0-alpha.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import { exactProp } from '@mui/utils';
@@ -18,7 +17,10 @@ function mergeOuterLocalTheme(outerTheme, localTheme) {
18
17
  }
19
18
  return mergedTheme;
20
19
  }
21
- return _extends({}, outerTheme, localTheme);
20
+ return {
21
+ ...outerTheme,
22
+ ...localTheme
23
+ };
22
24
  }
23
25
 
24
26
  /**
@@ -38,7 +40,9 @@ function ThemeProvider(props) {
38
40
  }
39
41
  }
40
42
  const theme = React.useMemo(() => {
41
- const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
43
+ const output = outerTheme === null ? {
44
+ ...localTheme
45
+ } : mergeOuterLocalTheme(outerTheme, localTheme);
42
46
  if (output != null) {
43
47
  output[nested] = outerTheme !== null;
44
48
  }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v6.0.0-alpha.1
2
+ * @mui/private-theming v6.0.0-alpha.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -3,7 +3,8 @@ import ThemeContext from './ThemeContext';
3
3
  export default function useTheme() {
4
4
  const theme = React.useContext(ThemeContext);
5
5
  if (process.env.NODE_ENV !== 'production') {
6
- // eslint-disable-next-line react-hooks/rules-of-hooks
6
+ // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler
7
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production
7
8
  React.useDebugValue(theme);
8
9
  }
9
10
  return theme;
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
8
  var React = _interopRequireWildcard(require("react"));
10
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
10
  var _utils = require("@mui/utils");
@@ -26,7 +25,10 @@ function mergeOuterLocalTheme(outerTheme, localTheme) {
26
25
  }
27
26
  return mergedTheme;
28
27
  }
29
- return (0, _extends2.default)({}, outerTheme, localTheme);
28
+ return {
29
+ ...outerTheme,
30
+ ...localTheme
31
+ };
30
32
  }
31
33
 
32
34
  /**
@@ -46,7 +48,9 @@ function ThemeProvider(props) {
46
48
  }
47
49
  }
48
50
  const theme = React.useMemo(() => {
49
- const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
51
+ const output = outerTheme === null ? {
52
+ ...localTheme
53
+ } : mergeOuterLocalTheme(outerTheme, localTheme);
50
54
  if (output != null) {
51
55
  output[_nested.default] = outerTheme !== null;
52
56
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v6.0.0-alpha.1
2
+ * @mui/private-theming v6.0.0-alpha.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -12,7 +12,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
12
12
  function useTheme() {
13
13
  const theme = React.useContext(_ThemeContext.default);
14
14
  if (process.env.NODE_ENV !== 'production') {
15
- // eslint-disable-next-line react-hooks/rules-of-hooks
15
+ // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler
16
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production
16
17
  React.useDebugValue(theme);
17
18
  }
18
19
  return theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/private-theming",
3
- "version": "6.0.0-alpha.1",
3
+ "version": "6.0.0-alpha.12",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.",
@@ -26,9 +26,9 @@
26
26
  "url": "https://opencollective.com/mui-org"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.24.4",
29
+ "@babel/runtime": "^7.24.7",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/utils": "^6.0.0-alpha.1"
31
+ "@mui/utils": "^6.0.0-alpha.12"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -3,7 +3,8 @@ import ThemeContext from './ThemeContext';
3
3
  export default function useTheme() {
4
4
  const theme = React.useContext(ThemeContext);
5
5
  if (process.env.NODE_ENV !== 'production') {
6
- // eslint-disable-next-line react-hooks/rules-of-hooks
6
+ // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler
7
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production
7
8
  React.useDebugValue(theme);
8
9
  }
9
10
  return theme;
@@ -1,63 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
- import { exactProp } from '@mui/utils';
5
- import ThemeContext from '../useTheme/ThemeContext';
6
- import useTheme from '../useTheme';
7
- import nested from './nested';
8
-
9
- // To support composition of theme.
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- function mergeOuterLocalTheme(outerTheme, localTheme) {
12
- if (typeof localTheme === 'function') {
13
- var mergedTheme = localTheme(outerTheme);
14
- if (process.env.NODE_ENV !== 'production') {
15
- if (!mergedTheme) {
16
- console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
17
- }
18
- }
19
- return mergedTheme;
20
- }
21
- return _extends({}, outerTheme, localTheme);
22
- }
23
-
24
- /**
25
- * This component takes a `theme` prop.
26
- * It makes the `theme` available down the React tree thanks to React context.
27
- * This component should preferably be used at **the root of your component tree**.
28
- */
29
- function ThemeProvider(props) {
30
- var children = props.children,
31
- localTheme = props.theme;
32
- var outerTheme = useTheme();
33
- if (process.env.NODE_ENV !== 'production') {
34
- if (outerTheme === null && typeof localTheme === 'function') {
35
- console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
36
- }
37
- }
38
- var theme = React.useMemo(function () {
39
- var output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
40
- if (output != null) {
41
- output[nested] = outerTheme !== null;
42
- }
43
- return output;
44
- }, [localTheme, outerTheme]);
45
- return /*#__PURE__*/_jsx(ThemeContext.Provider, {
46
- value: theme,
47
- children: children
48
- });
49
- }
50
- process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
51
- /**
52
- * Your component tree.
53
- */
54
- children: PropTypes.node,
55
- /**
56
- * A theme object. You can provide a function to extend the outer theme.
57
- */
58
- theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
59
- } : void 0;
60
- if (process.env.NODE_ENV !== 'production') {
61
- process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;
62
- }
63
- export default ThemeProvider;
@@ -1,2 +0,0 @@
1
- export { default } from './ThemeProvider';
2
- export { default as unstable_nested } from './nested';
@@ -1,2 +0,0 @@
1
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2
- export default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
package/legacy/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * @mui/private-theming v6.0.0-alpha.1
3
- *
4
- * @license MIT
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
- export { default as ThemeProvider } from './ThemeProvider';
9
- export * from './ThemeProvider';
10
- export { default as useTheme } from './useTheme';
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- var ThemeContext = /*#__PURE__*/React.createContext(null);
3
- if (process.env.NODE_ENV !== 'production') {
4
- ThemeContext.displayName = 'ThemeContext';
5
- }
6
- export default ThemeContext;
@@ -1 +0,0 @@
1
- export { default } from './useTheme';
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import ThemeContext from './ThemeContext';
3
- export default function useTheme() {
4
- var theme = React.useContext(ThemeContext);
5
- if (process.env.NODE_ENV !== 'production') {
6
- // eslint-disable-next-line react-hooks/rules-of-hooks
7
- React.useDebugValue(theme);
8
- }
9
- return theme;
10
- }