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

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,539 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.11
4
+
5
+ <!-- generated comparing v6.0.0-alpha.10..next -->
6
+
7
+ _Jun 11, 2024_
8
+
9
+ A big thanks to the 18 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.0.0-alpha.11`
12
+
13
+ - &#8203;<!-- 38 -->[Autocomplete] Shouldn't resize when hovering (#42452) @ZeeshanTamboli
14
+ - &#8203;<!-- 37 -->[Chip] Fix focus issue related with the Escape event (#41578) @shrilsharma
15
+ - &#8203;<!-- 12 -->[Grid] Fix support for CSS variables (#42574) @oliviertassinari
16
+ - &#8203;<!-- 11 -->[InputBase] Use `globalCss` for Pigment integration (#42431) @siriwatknp
17
+ - &#8203;<!-- 10 -->Change React.ReactElement type from `any` to `unknown` (#42473) @sai6855
18
+ - &#8203;<!-- 09 -->Integrate `extendSxProp` adapter (#42543) @siriwatknp
19
+ - &#8203;<!-- 08 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (#42549) @sai6855
20
+ - &#8203;<!-- 08 -->[pigment-css] Add `stringifyTheme` for Pigment CSS integration (#42476) @siriwatknp
21
+
22
+ ### `@mui/system@6.0.0-alpha.11`
23
+
24
+ - &#8203;<!-- 11 -->[Grid] Remove `disableEqualOverflow` by using `gap` (#42526) @DiegoAndai
25
+ - &#8203;<!-- 07 -->[useMediaQuery] Drop Safari < 14 support (#42464) @aarongarciah
26
+
27
+ ### `@mui/utils@6.0.0-alpha.11`
28
+
29
+ - &#8203;<!-- 04 -->Allow passing `NaN` as `defaultValue` to `useControlled` (#41559) @iammminzzy
30
+
31
+ ### `@mui/codemod@6.0.0-alpha.11`
32
+
33
+ - &#8203;<!-- 39 -->Improve styled and sx prop transformation (#42598) @siriwatknp
34
+ - &#8203;<!-- 36 -->Support more cases for sx-prop transformation (#42527) @siriwatknp
35
+
36
+ ### `@mui/private-theming@6.0.0-alpha.11`
37
+
38
+ - &#8203;<!-- 09 -->Fix issues reported by react compiler in `mui-private-theming` components (#42619) @sai6855
39
+
40
+ ### Docs
41
+
42
+ - &#8203;<!-- 31 -->Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
43
+ - &#8203;<!-- 29 -->Fix dashboard template console error (#42594) @oliviertassinari
44
+ - &#8203;<!-- 28 -->Migrate system props to `sx` prop (#42475) @siriwatknp
45
+ - &#8203;<!-- 27 -->[material-ui]Fix duplicated sentence (#42521) @alexfauquette
46
+ - &#8203;<!-- 22 -->[Grid] Fix docs spacing (#42573) @oliviertassinari
47
+ - &#8203;<!-- 21 -->[joy-ui] Add Next.js App Router instructions on how to prevent flickering (#42514) @devnyxie
48
+ - &#8203;<!-- 20 -->[joy-ui] Fix HTML tag without preformatting (#42525) @jacobmoshipco
49
+ - &#8203;<!-- 19 -->[material-ui] Add docs for complementary stepper components (#41900) @anle9650
50
+ - &#8203;<!-- 18 -->[material-ui] Fix typo on Sign-in/Sign-up templates (#42605) @zanivan
51
+ - &#8203;<!-- 17 -->[material-ui] Add container queries docs (#42434) @siriwatknp
52
+ - &#8203;<!-- 16 -->[material-ui] Fix ESLint error in Stepper demo (#42559) @aarongarciah
53
+ - &#8203;<!-- 15 -->[material-ui] Shorten useMediaQuery subheading (#42561) @aarongarciah
54
+ - &#8203;<!-- 14 -->[material-ui] Add a Refine example project (#42461) @necatiozmen
55
+
56
+ ### Core
57
+
58
+ - &#8203;<!-- 39 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
59
+ - &#8203;<!-- 35 -->[core] Allow `for..of` loops (#42600) @michaldudak
60
+ - &#8203;<!-- 34 -->[core] Add comment about Object.js @oliviertassinari
61
+ - &#8203;<!-- 33 -->[core] Disable eslint-plugin-react-compiler for Base (#42563) @aarongarciah
62
+ - &#8203;<!-- 33 -->[core] Group Pigment CSS dependencies (#42174) @siriwatknp
63
+ - &#8203;<!-- 32 -->[core] Configure eslint-plugin-react-compiler (#42555) @aarongarciah
64
+ - &#8203;<!-- 31 -->[core] Skip charts animation for visual regression test (#42530) @alexfauquette
65
+ - &#8203;<!-- 26 -->[docs-infra] Simplify click header (#42593) @oliviertassinari
66
+ - &#8203;<!-- 25 -->[docs-infra] Add configurable jsdoc host variable (#42472) @tonygravell
67
+ - &#8203;<!-- 25 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
68
+ - &#8203;<!-- 24 -->[docs-infra] Prevent link anchor when selecting text (#41994) @alexfauquette
69
+ - &#8203;<!-- 23 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
70
+ - &#8203;<!-- 13 -->[examples] Remove Pigment CSS examples (#42471) @sai6855
71
+ - &#8203;<!-- 06 -->[test] Restore pnpm tc command (#42572) @oliviertassinari
72
+ - &#8203;<!-- 05 -->[test] Restore testing internal packages (#42519) @michaldudak
73
+ - &#8203;<!-- 03 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
74
+ - &#8203;<!-- 02 -->[website] Remove blank line @oliviertassinari
75
+ - &#8203;<!-- 01 -->[website] Fix mobile layout shift @oliviertassinari
76
+
77
+ 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
78
+
79
+ ## v6.0.0-alpha.10
80
+
81
+ <!-- generated comparing v6.0.0-alpha.9..next -->
82
+
83
+ _Jun 4, 2024_
84
+
85
+ A big thanks to the 7 contributors who made this release possible.
86
+
87
+ ### `@mui/material@6.0.0-alpha.10`
88
+
89
+ - &#8203;<!-- 26 -->[Backdrop] Deprecate `components` and `componentsProps` (#42468) @DiegoAndai
90
+ - &#8203;<!-- 25 -->[Collapse] Bound max transition time (#42390) @oliviertassinari
91
+ - &#8203;<!-- 12 -->[FilledInput] Remove unapplied classes from filledInputClasses interface and add missing classes to root (#42082) @sai6855
92
+ - &#8203;<!-- 11 -->[InputBase] Deprecate components and componentProps props for v6 (#42093) @ChronicusUA
93
+ - &#8203;<!-- 10 -->Remove remaining IE11 code (#42283) @DiegoAndai
94
+ - &#8203;<!-- 09 -->[Modal] Deprecate `components` and `componentsProps` (#42469) @DiegoAndai
95
+ - &#8203;<!-- 08 -->[Popover] Migrate useSlotProps to useSlot (#42369) @sai6855
96
+ - &#8203;<!-- 07 -->[useMediaQuery] Remove unused useMediaQueryTheme (#42367) @aarongarciah
97
+
98
+ ### `@mui/system@6.0.0-alpha.10`
99
+
100
+ - &#8203;<!-- 06 -->Remove IE11 code (#42436) @DiegoAndai
101
+
102
+ ### Docs
103
+
104
+ - &#8203;<!-- 23 -->Reflect Base UI and MUI System in a different repository @oliviertassinari
105
+ - &#8203;<!-- 22 -->Update twitter.com to x.com @oliviertassinari
106
+ - &#8203;<!-- 21 -->Simplify Example projects page @oliviertassinari
107
+ - &#8203;<!-- 17 -->[icons] Update README and docs page (#41938) @danilo-leal
108
+ - &#8203;<!-- 16 -->[material-ui] Add changelog section to the design kits page (#42449) @danilo-leal
109
+ - &#8203;<!-- 15 -->[material-ui] Fix sentence in the All components page (#42336) @danilo-leal
110
+ - &#8203;<!-- 14 -->[material-ui] Update Figma design kit doc redirect link (#42448) @danilo-leal
111
+ - &#8203;<!-- 13 -->[system] Add "dynamic values" section to sx prop page (#42239) @aarongarciah
112
+
113
+ ### Core
114
+
115
+ - &#8203;<!-- 20 -->[docs-infra] Update the OG card image design (#42470) @danilo-leal
116
+ - &#8203;<!-- 19 -->[docs-infra] Add small design polish (#42455) @danilo-leal
117
+ - &#8203;<!-- 18 -->[docs-infra] Update the Material logo + add copy functionality (#42435) @danilo-leal
118
+ - &#8203;<!-- 05 -->[website] Update DoiT description and link in Sponsors section (#42505) @erezstmn-doit
119
+ - &#8203;<!-- 04 -->[website] Clean up the docs-infra job ad (#42504) @danilo-leal
120
+ - &#8203;<!-- 03 -->[website] Fix FlashCode position (#42139) @oliviertassinari
121
+ - &#8203;<!-- 02 -->[website] Open Docs-infra engineer role (#42101) @danilo-leal
122
+ - &#8203;<!-- 01 -->[website] Fix locationCountry in about page @oliviertassinari
123
+
124
+ All contributors of this release in alphabetical order: @aarongarciah, @ChronicusUA, @danilo-leal, @DiegoAndai, @erezstmn-doit, @oliviertassinari, @sai6855
125
+
126
+ ## v6.0.0-alpha.9
127
+
128
+ <!-- generated comparing v6.0.0-alpha.8..next -->
129
+
130
+ _May 29, 2024_
131
+
132
+ A big thanks to the 23 contributors who made this release possible. Here are some highlights ✨:
133
+
134
+ - 🚀 `CssVarsProvider` and `extendTheme` are now stable (#42246) @siriwatknp
135
+
136
+ ### `@mui/material@6.0.0-alpha.9`
137
+
138
+ - &#8203;<!-- 49 -->[AlertTitle] Enable extending Typography props (#42269) @lucasgmelo
139
+ - &#8203;<!-- 48 -->[AvatarGroup] deprecate `componentsProps` for v6 (#42122) @lhilgert9
140
+ - &#8203;<!-- 15 -->[Grid] Deprecate `wrap` prop (#42363) @fedirjh
141
+ - &#8203;<!-- 14 -->[ListItem] Document `*Component` and `*Props` props deprecations (#42263) @aarongarciah
142
+ - &#8203;<!-- 13 -->[ListItem] Deprecate ListItem's components and componentsProps (#42219) @aarongarciah
143
+ - &#8203;<!-- 12 -->[ListItemSecondaryAction] Deprecate component (#42251) @aarongarciah
144
+ - &#8203;<!-- 11 -->Stabilize `CssVarsProvider` and `extendTheme` (#42246) @siriwatknp
145
+ - &#8203;<!-- 10 -->[Popper] Deprecate components and componentProps props for v6 (#42111) @ChronicusUA
146
+ - &#8203;<!-- 09 -->[responsiveFontSizes] Handled undefined variants (#42412) @brijeshb42
147
+ - &#8203;<!-- 08 -->[Slider] Fix wrong CSS value (#42370) @mnajdova
148
+ - &#8203;<!-- 07 -->[Tooltip] Deprecate components and componentProps props for v6 (#42107) @ChronicusUA
149
+
150
+ ### `@mui/system@6.0.0-alpha.9`
151
+
152
+ - &#8203;<!-- 34 -->[createStyled] Intercept `ownerState` coming from `props` and `ownerState` (#42358) @DiegoAndai
153
+
154
+ ### `@mui/codemod@6.0.0-alpha.9`
155
+
156
+ - &#8203;<!-- 41 -->Add `sx` prop for v6 migration (#42153) @siriwatknp
157
+ - &#8203;<!-- 40 -->Add codemod for removing system props (#42282) @siriwatknp
158
+
159
+ ### Docs
160
+
161
+ - &#8203;<!-- 33 -->Remove unused images (#42324) @danilo-leal
162
+ - &#8203;<!-- 32 -->Add Pigment CSS and Base UI logos SVGs (#42322) @danilo-leal
163
+ - &#8203;<!-- 22 -->[joy-ui] Fix template responsiveness (#42422) @j4marcos
164
+ - &#8203;<!-- 21 -->[material-ui] Add the Pashto locale (#42244) @sayoubiaf
165
+ - &#8203;<!-- 20 -->[material-ui] Remove duplicate Design Kits page (#42338) @danilo-leal
166
+ - &#8203;<!-- 19 -->[material-ui] Document callback to access theme in GlobalStyles (#42257) @aarongarciah
167
+ - &#8203;<!-- 18 -->[material-ui] Add minor modifications to the Vertical stepper demo (#42342) @mihilt
168
+ - &#8203;<!-- 17 -->[material-ui][Tabs] Improve the Basic Tabs demo (#42374) @MatheusEli
169
+ - &#8203;<!-- 16 -->[pigment-css] Polish redirection mention @oliviertassinari
170
+
171
+ ### Core
172
+
173
+ - &#8203;<!-- 47 -->[blog] Add fixes and clean ups to the Blog page (#42311) @danilo-leal
174
+ - &#8203;<!-- 46 -->[blog] Add the "Product" tag to the Pigment CSS post (#42365) @danilo-leal
175
+ - &#8203;<!-- 45 -->[code-infra] Simplify .stylelintrc.js @oliviertassinari
176
+ - &#8203;<!-- 44 -->[code-infra] Fix stylelint locally (#42411) @oliviertassinari
177
+ - &#8203;<!-- 43 -->[code-infra] Run corepack enable on all CI jobs (#42331) @Janpot
178
+ - &#8203;<!-- 42 -->[code-infra] Create examples eslint rule (#42170) @oliviertassinari
179
+ - &#8203;<!-- 39 -->[core] Apply React 19 type changes that don't require upcoming `@types/` packages (#42346) @DiegoAndai
180
+ - &#8203;<!-- 38 -->[core] Remove `react-swipeable-views-utils` package from docs (#42378) @ZeeshanTamboli
181
+ - &#8203;<!-- 37 -->[core] Update `@testing-library/react` and `@testing-library/dom` packages (#42349) @ZeeshanTamboli
182
+ - &#8203;<!-- 36 -->[core] Remove `@types/prettier` package (#42339) @ZeeshanTamboli
183
+ - &#8203;<!-- 35 -->[core] Remove `WyW-in-JS` from Renovate config (#42335) @ZeeshanTamboli
184
+ - &#8203;<!-- 31 -->[docs-infra] Split feedback channels per product (#42413) @alexfauquette
185
+ - &#8203;<!-- 30 -->[docs-infra] Avoid cryptic errors when tests don't exist (#42356) @Janpot
186
+ - &#8203;<!-- 29 -->[docs-infra] Make menu styles consistent (#42387) @danilo-leal
187
+ - &#8203;<!-- 28 -->[docs-infra] Display deprecation messages in API pages (#42352) @aarongarciah
188
+ - &#8203;<!-- 27 -->[docs-infra] Standardize API pages Alert styles (#42386) @danilo-leal
189
+ - &#8203;<!-- 26 -->[docs-infra] Fix Toolpad Core API links (#42362) @apedroferreira
190
+ - &#8203;<!-- 25 -->[docs-infra] Tigthen up the header design (#42180) @danilo-leal
191
+ - &#8203;<!-- 24 -->[docs-infra] Add Toolpad to muiNpmOrgs for codesandbox demos (#42316) @Janpot
192
+ - &#8203;<!-- 23 -->[docs-infra] Allow JSDoc tags (#42337) @aarongarciah
193
+ - &#8203;<!-- 06 -->[test] Remove `userAgent` override in `jsdom` env (#42344) @cherniavskii
194
+ - &#8203;<!-- 05 -->[utils] Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) @tjcouch-sil
195
+ - &#8203;<!-- 04 -->[website] Add Nikita to the about page (#42418) @nikitaa24
196
+ - &#8203;<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (#42341) @KenanYusuf
197
+ - &#8203;<!-- 02 -->[website] Adds Kenan Yusuf to about page (#42317) @KenanYusuf
198
+ - &#8203;<!-- 01 -->[website] Improve about page @oliviertassinari
199
+
200
+ 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
201
+
202
+ ## v6.0.0-alpha.8
203
+
204
+ <!-- generated comparing v6.0.0-alpha.7..next -->
205
+
206
+ _May 21, 2024_
207
+
208
+ A big thanks to the 7 contributors who made this release possible.
209
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
210
+
211
+ ### `@mui/material@6.0.0-alpha.7`
212
+
213
+ - &#8203;<!-- 04 -->[material-ui] Filter only valid theme palette for generating styles (#42147) @siriwatknp
214
+ - &#8203;<!-- 03 -->[material-ui] Remove UMD bundle (#42172) @ZeeshanTamboli
215
+ - &#8203;<!-- 02 -->[material-ui][TextField] Deprecate `*Props` props (#42062) @DiegoAndai
216
+
217
+ ### Docs
218
+
219
+ - &#8203;<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
220
+ - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
221
+ - &#8203;<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
222
+ - &#8203;<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
223
+
224
+ ### Core
225
+
226
+ - &#8203;<!-- 12 -->[blog] Update blog post OG image (#42270) @danilo-leal
227
+ - &#8203;<!-- 11 -->[blog] Update Pigment CSS post (#42266) @danilo-leal
228
+ - &#8203;<!-- 10 -->[docs] Remove LocalMonero (#42224) @oliviertassinari
229
+ - &#8203;<!-- 08 -->[docs-infra] Fix keyboard navigation on page tabs (#42152) @danilo-leal
230
+ - &#8203;<!-- 10 -->[code-infra] Remove raw-loader (#42275) @Janpot
231
+ - &#8203;<!-- 09 -->[core] Remove outdated Babel plugins (#42140) @ZeeshanTamboli
232
+ - &#8203;<!-- 12 -->[core] Fix a few more key spread issues (#42168) @oliviertassinari
233
+ - &#8203;<!-- 01 -->[website] Avoid duplicate simple vs. rich (#42100) @oliviertassinari
234
+
235
+ All contributors of this release in alphabetical order: @danilo-leal, @DiegoAndai, @Janpot, @Mandar-Pandya, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
236
+
237
+ ## v6.0.0-alpha.7
238
+
239
+ <!-- generated comparing v6.0.0-alpha.6..next -->
240
+
241
+ _May 16, 2024_
242
+
243
+ A big thanks to the 14 contributors who made this release possible.
244
+
245
+ ### `@mui/material@6.0.0-alpha.7`
246
+
247
+ - &#8203;<!-- 23 -->[Autocomplete] Deprecate `componentsProps` props (#42179) @lhilgert9
248
+ - &#8203;<!-- 22 -->[Autocomplete] Improve design when there's a start adornment for small autocomplete (#41781) @TahaRhidouani
249
+ - &#8203;<!-- 21 -->[Autocomplete] deprecate `*Component` and `*Props` for v6 (#41875) @lhilgert9
250
+ - &#8203;<!-- 19 -->[CircularProgress] Deprecate composed classes (#42076) @sai6855
251
+ - &#8203;<!-- 05 -->[ToggleButtonGroup] Add missing `selected` class in ToggleButtonGroupClasses type (#42243) @tarunrajput
252
+
253
+ ### `@mui/codemod@6.0.0-alpha.6`
254
+
255
+ - &#8203;<!-- 18 -->[Divider] Only apply codemod if light prop is present (#42098) @DiegoAndai
256
+
257
+ ### Docs
258
+
259
+ - &#8203;<!-- 13 -->Fix 301 to Figma @oliviertassinari
260
+ - &#8203;<!-- 12 -->Fix use of deprecated React API (#42118) @oliviertassinari
261
+ - &#8203;<!-- 11 -->Remove the Base notification (#42191) @danilo-leal
262
+ - &#8203;<!-- 07 -->[material-ui] Improve descriptions for deprecated props (#42221) @aarongarciah
263
+ - &#8203;<!-- 06 -->[material-ui] Fix typo in composition docs (#42195) @aarongarciah
264
+
265
+ ### Core
266
+
267
+ - &#8203;<!-- 20 -->[blog] Introducing Pigment CSS blog post (#42198) @samuelsycamore
268
+ - &#8203;<!-- 17 -->[core] Remove confusing comment @oliviertassinari
269
+ - &#8203;<!-- 16 -->[core] Match other repositories and convention @oliviertassinari
270
+ - &#8203;<!-- 15 -->[core] Fix React 18.3 warnings about spreading keys in the Material UI `Autocomplete` component (#42099) @heath-freenome
271
+ - &#8203;<!-- 14 -->[core] Remove unecessary quotes @oliviertassinari
272
+ - &#8203;<!-- 10 -->[docs-infra] Share code for section title (#42236) @alexfauquette
273
+ - &#8203;<!-- 09 -->[docs-infra] Limit the copy button to the visible code block (#42115) @danilo-leal
274
+ - &#8203;<!-- 08 -->[docs-infra] Make select components with two capital letters (#42004) @alexfauquette
275
+ - &#8203;<!-- 08 -->[docs-infra][toolpad] Fix Page title and SERP title mismatch (#41919) @bharatkashyap
276
+ - &#8203;<!-- 05 -->[website] Add redirection for talk @oliviertassinari
277
+ - &#8203;<!-- 04 -->[website] Adds Arthur Balduini team info (#42193) @arthurbalduini
278
+ - &#8203;<!-- 03 -->[website] Update the role template file (#42192) @danilo-leal
279
+ - &#8203;<!-- 02 -->[website] Update MUI X deps and migrate TreeView demos to v7 API (#42149) @noraleonte
280
+ - &#8203;<!-- 01 -->[website] Fix pricing casing (#42178) @aarongarciah
281
+
282
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @arthurbalduini, @bharatkashyap, @danilo-leal, @DiegoAndai, @heath-freenome, @lhilgert9, @noraleonte, @oliviertassinari, @sai6855, @samuelsycamore, @TahaRhidouani, @tarunrajput
283
+
284
+ ## v6.0.0-alpha.6
285
+
286
+ <!-- generated comparing v6.0.0-alpha.5..next -->
287
+
288
+ _May 8, 2024_
289
+
290
+ A big thanks to the 10 contributors who made this release possible.
291
+
292
+ ### `@mui/material@6.0.0-alpha.6`
293
+
294
+ - [Chip] Add colorDefault class to chipClasses (#42067) @sai6855
295
+ - Migrate components to support CSS extraction (#42001) @siriwatknp
296
+ - [SpeedDial] Deprecate TransitionComponent (#40698) @harry-whorlow
297
+
298
+ ### `@mui/codemod@6.0.0-alpha.6`
299
+
300
+ - Add `theme-v6` migration (#42056) @siriwatknp
301
+
302
+ ### `@mui/icons-material@6.0.0-alpha.6`
303
+
304
+ - Add the Emergency icon (#42080) @danilo-leal
305
+
306
+ ### Docs
307
+
308
+ - [autocomplete] Fix duplicate autocomplete id (#42086) @oliviertassinari
309
+ - Fix SEO redirection issues @oliviertassinari
310
+ - [material-ui] Fix broken link (#42142) @aarongarciah
311
+ - [material-ui][docs] Fix link on the Sync page (#42088) @danilo-leal
312
+
313
+ ### Core
314
+
315
+ - [blog] Shorten title to fit @oliviertassinari
316
+ - [blog] Update Sync post OG image (#42114) @danilo-leal
317
+ - [blog] A few tweaks in introducing-sync-plugin (#42092) @oliviertassinari
318
+ - [code-infra] Add canary release scripts (#41949) @michaldudak
319
+ - [code-infra] Move ComponentLinkHeader to @mui/docs (#42061) @Janpot
320
+ - [code-infra] Bump node image used by CI in docker (#42079) @LukasTy
321
+ - [core] Restrict import path with ESLint (#41970) @oliviertassinari
322
+ - [docs-infra] Add design and formatting improvements (#42063) @danilo-leal
323
+ - [docs-infra] Fix HTML structure violations (#42085) @oliviertassinari
324
+ - [website] Componentize a few Careers page sections (#42102) @danilo-leal
325
+ - [website] Refine the InfoCard design (#42116) @danilo-leal
326
+ - [website] Fix home page slider's track position (#42141) @aarongarciah
327
+ - [website] Closing the survey @oliviertassinari
328
+ - [website] Remove Survey banner from website and Core docs (#42104) @joserodolfofreitas
329
+
330
+ All contributors of this release in alphabetical order: @aarongarciah, @danilo-leal, @harry-whorlow, @Janpot, @joserodolfofreitas, @LukasTy, @michaldudak, @oliviertassinari, @sai6855, @siriwatknp
331
+
332
+ ## v6.0.0-alpha.5
333
+
334
+ <!-- generated comparing v6.0.0-alpha.4..next -->
335
+
336
+ _May 1, 2024_
337
+
338
+ A big thanks to the 9 contributors who made this release possible.
339
+
340
+ ### `@mui/material@6.0.0-alpha.5`
341
+
342
+ - [FormControlLabel] Deprecate `componentsProps` (#41767) @sai6855
343
+ - [PaginationItem] Deprecate components prop (#41777) @sai6855
344
+ - [SvgIcon] Convert to support CSS extraction (#41779) @aarongarciah
345
+
346
+ ### `@mui/base@5.0.0-beta.43`
347
+
348
+ - [TextareaAutosize] Fix resizing instability (#41638) @ZeeshanTamboli
349
+
350
+ ### Docs
351
+
352
+ - Fix small SEO issues @oliviertassinari
353
+ - [material-ui] Fix minor spelling error in the "About the lab" page (#42073) @ryanhartwig
354
+ - [material-ui] Update Figma plugin name (#41967) @danilo-leal
355
+ - [material-ui][templates] Fix input props attributes in Landing Page template (#42013) @5-tom
356
+ - [system] Update typo on the sx prop page (#42035) @bricker
357
+
358
+ ### Core
359
+
360
+ - [docs-infra] Clean up branding theme file and improve font-face readibility (#42023) @danilo-leal
361
+ - [docs-infra] Simplify docs demo (#42016) @oliviertassinari
362
+ - [website] Add content about the Sync plugin in the Material UI page (#40515) @danilo-leal
363
+ - [website] Sync career roles (#42058) @oliviertassinari
364
+ - [website] Add Nadja on the about page (#42021) @mnajdova
365
+ - [website] Fix code block design by changing the `MarkdownElement` import (#42022) @danilo-leal
366
+ - [wesbite] Remove duplicate MarkdownElement component (#42028) @danilo-leal
367
+
368
+ All contributors of this release in alphabetical order: @5-tom, @aarongarciah, @bricker, @danilo-leal, @mnajdova, @oliviertassinari, @ryanhartwig, @sai6855, @ZeeshanTamboli
369
+
370
+ ## v6.0.0-alpha.4
371
+
372
+ <!-- generated comparing v6.0.0-alpha.3..next -->
373
+
374
+ _Apr 24, 2024_
375
+
376
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
377
+
378
+ - 🔥 Converted 3 more Material UI components to use Pigment CSS.
379
+ - ℹ️ Pigment CSS now lives in [its own repository](https://github.com/mui/pigment-css)! From now on, all future development will happen there.
380
+
381
+ ### `@mui/material@6.0.0-alpha.4`
382
+
383
+ - [Checkbox] Convert to support CSS extraction (#41957) @lhilgert9
384
+ - [IconButton] Convert to support CSS extraction (#41850) @gijsbotje
385
+ - [Radio] Convert to support CSS extraction (#41840) @lhilgert9
386
+ - [Typography] Fix ownerState prop placement (#41903) @sai6855
387
+ - Generate typography tokens (#41703) @siriwatknp
388
+ - Move typography CSS variables to `font` (#42003) @siriwatknp
389
+ - Fix getOverlayAlpha type (#41995) @oliviertassinari
390
+ - Support CSS Extraction using codemod (#41935) @siriwatknp
391
+
392
+ ### `@mui/icons-material@6.0.0-alpha.4`
393
+
394
+ - &#8203;<!-- 08 -->[icons] Update the icons package (#41937) @danilo-leal
395
+
396
+ ### Docs
397
+
398
+ - [material-ui] Remove react-swipeable-views from demos as it's no longer maintained (#41912) @soler1212
399
+ - [material-ui] Add dark theme thumbnails for templates (#41947) @zanivan
400
+ - [material-ui] Remove links and interdependencies from free templates (#41941) @zanivan
401
+ - [material-ui] Add missing backticks to HTML tag in the installation page (#41972) @Miguelrom
402
+ - Fix 301 Toolpad links @oliviertassinari
403
+ - Fix 301 image redirections @oliviertassinari
404
+
405
+ ### Core
406
+
407
+ - pnpm docs:zipRules && vale sync @oliviertassinari
408
+ - Remove @pigment-css/\* packages (#41965) @mnajdova
409
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
410
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
411
+ - [code-infra] Make Babel config path configurable in API docs builder (#41999) @michaldudak
412
+ - [docs-infra] Fix flex-shrink pro-plan (#41990) @oliviertassinari
413
+ - [docs-infra] Allow more value uses of MUI (#41706) @oliviertassinari
414
+ - [docs-infra] Move CPU to shared config (#41901) @oliviertassinari
415
+ - [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
416
+ - [docs-infra] Adapt docs infra to Base UI docs needs (#41963) @michaldudak
417
+ - [docs-infra] Add demo container design refinements (#41948) @danilo-leal
418
+ - [docs-infra] Use the `getLayout` on the material demo pages (#41936) @alexfauquette
419
+ - [test] Update browser versions in karma config (#42008) @ZeeshanTamboli
420
+ - [website] Remove customer support agent role from website (#41969) @rluzists1
421
+ - [website] Fix grid usage and add stray improvements (#41930) @danilo-leal
422
+
423
+ All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @gijsbotje, @Janpot, @lhilgert9, @michaldudak, @Miguelrom, @mnajdova, @oliviertassinari, @rluzists1, @sai6855, @siriwatknp, @soler1212, @zanivan, @ZeeshanTamboli
424
+
425
+ ## v6.0.0-alpha.3
426
+
427
+ <!-- generated comparing v6.0.0-alpha.2..next -->
428
+
429
+ _Apr 17, 2024_
430
+
431
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
432
+
433
+ - 🔥 Converted 5 more Material UI components to use Pigment CSS.
434
+ - 🚀 Added container queries utility to the `@mui/system` package (#41674) @siriwatknp.
435
+
436
+ ### `@mui/material@6.0.0-alpha.3`
437
+
438
+ - Convert `LinearProgress` to support Pigment CSS (#41816) @siriwatknp
439
+ - [Dialog] Prevent onClick on the root element from being overwritten (#41881) @ryanburr
440
+ - [FloatingActionButton] Convert to support CSS extraction (#41851) @gijsbotje
441
+ - Convert `CircularProgress` to support Pigment CSS (#41776) @siriwatknp
442
+ - [PaginationItem] Convert to support CSS extraction (#41848) @gijsbotje
443
+ - [StepConnector] deprecate composed classes (#41740) @sai6855
444
+ - [StepLabel] Deprecate `StepIconComponent`, `StepIconProps` (#41835) @sai6855
445
+ - [ToggleButton] Convert to support CSS extraction (#41782) @lhilgert9
446
+ - [ToggleButtonGroup] Deprecate composed classes (#41288) @sai6855
447
+ - [Typography] Fix Typography inherit variant styles (#41308) @kealjones-wk
448
+
449
+ ### `@mui/system@6.0.0-alpha.3`
450
+
451
+ - Add container queries utility (#41674) @siriwatknp
452
+
453
+ ### `@mui/codemod@6.0.0-alpha.3`
454
+
455
+ - Add styled v6 transformation (#41743) @siriwatknp
456
+
457
+ ### `@mui/joy@5.0.0-beta.36`
458
+
459
+ - [Button] Disable text highlighting (#41902) @mithun522
460
+
461
+ ### `@pigment-css/react@0.0.7`
462
+
463
+ - Patch WyW's WeakRef usage (#41909) @DiegoAndai
464
+ - Implement sx transform for system components (#41861) @brijeshb42
465
+
466
+ ### Docs
467
+
468
+ - [material-ui] Add Connect-related content (#40848) @danilo-leal
469
+ - [material-ui] Fix credit comment typo (#41872) @aarongarciah
470
+ - [material-ui] Remove Data Grid v7 beta callout (#41839) @cherniavskii
471
+ - [material-ui] Add stray design tweaks to free templates (#41696) @zanivan
472
+ - [material-ui] Simplify components styling on templates (#41845) @zanivan
473
+ - [material-ui][Button] Add `onChange` event handler to file upload example (#41863) @aarongarciah
474
+ - [material-ui] Fix import statement in migration guide (#41852) @sai6855
475
+ - Fix 301 redirection @oliviertassinari
476
+ - Fix format git diff regression (#41882) @oliviertassinari
477
+ - Fix small SEO issues @oliviertassinari
478
+ - [pigment-css] Fix README typos (#41870) @MohammadShehadeh
479
+
480
+ ### Core
481
+
482
+ - Begin removing IE 11-related code (#41709) @iammminzzy
483
+ - [blog] Add post to introduce the Connect plugin (#41763) @danilo-leal
484
+ - [code-infra] Fix require.context with aliases (#41682) @Janpot
485
+ - [code-infra] Allow customizing hooks imports in API docs generator (#41828) @michaldudak
486
+ - [codemod] Add utils for `*Component` and `*Props` props deprecations (#41685) @DiegoAndai
487
+ - Replace bundle size reporter filter (#38979) @Janpot
488
+ - [docs-infra] Make the whole header clickable (#39603) @MoazMirza-13
489
+ - [docs-infra] Improve demo container and related components design (#41827) @danilo-leal
490
+ - [docs-infra] Use edge function for card generation (#41188) (#41836) @alexfauquette
491
+ - [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
492
+ - [docs-infra] Fine-tune the OG card image design (#41862) @danilo-leal
493
+ - [docs-infra] Fix markdown version for material (#41908) @alexfauquette
494
+ - [docs-infra] Support multiple tabs in demos (#40901) @bharatkashyap
495
+
496
+ 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
497
+
498
+ ## v6.0.0-alpha.2
499
+
500
+ <!-- generated comparing v6.0.0-alpha.1..next -->
501
+
502
+ _Apr 9, 2024_
503
+
504
+ A big thanks to the 5 contributors who made this release possible.
505
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
506
+
507
+ ### `@mui/material@6.0.0-alpha.2`
508
+
509
+ - &#8203;<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
510
+ - &#8203;<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
511
+
512
+ ### `@pigment-css/react@0.0.6`
513
+
514
+ - &#8203;<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
515
+
516
+ ### `@pigment-css/nextjs-plugin@0.0.6`
517
+
518
+ - &#8203;<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
519
+ - &#8203;<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
520
+
521
+ ### Docs
522
+
523
+ - &#8203;<!-- 11 -->[docs] Fix 301 links @oliviertassinari
524
+ - &#8203;<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
525
+ - &#8203;<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
526
+ - &#8203;<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
527
+ - &#8203;<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
528
+
529
+ ### Core
530
+
531
+ - &#8203;<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
532
+ - &#8203;<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
533
+ - &#8203;<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
534
+
535
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
536
+
3
537
  ## v6.0.0-alpha.1
4
538
 
5
539
  <!-- generated comparing v6.0.0-alpha.0..next -->
@@ -8128,7 +8662,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
8128
8662
 
8129
8663
  <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
8664
 
8131
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8665
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
8132
8666
 
8133
8667
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
8134
8668
 
@@ -8395,7 +8929,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
8395
8929
 
8396
8930
  - &#8203;<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
8397
8931
 
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.
8932
+ 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
8933
 
8400
8934
  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
8935
 
@@ -9598,7 +10132,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9598
10132
 
9599
10133
  <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
10134
 
9601
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
10135
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9602
10136
 
9603
10137
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9604
10138
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
@@ -12812,7 +13346,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
12812
13346
  ```
12813
13347
 
12814
13348
  - [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.
13349
+ There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://x.com/sulco/status/1305841873945272321), or React devtools props.
12816
13350
 
12817
13351
  #### Changes
12818
13352
 
@@ -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.11
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.11
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.11
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.11",
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.11"
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
- }