@mui/private-theming 5.15.14 → 6.0.0-alpha.3

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,323 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.3
4
+
5
+ <!-- generated comparing v6.0.0-alpha.2..next -->
6
+
7
+ _Apr 17, 2024_
8
+
9
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🔥 Converted 5 more Material UI components to use Pigment CSS.
12
+ - 🚀 Added container queries utility to the `@mui/system` package (#41674) @siriwatknp.
13
+
14
+ ### `@mui/material@6.0.0-alpha.3`
15
+
16
+ - Convert `LinearProgress` to support Pigment CSS (#41816) @siriwatknp
17
+ - [Dialog] Prevent onClick on the root element from being overwritten (#41881) @ryanburr
18
+ - [FloatingActionButton] Convert to support CSS extraction (#41851) @gijsbotje
19
+ - Convert `CircularProgress` to support Pigment CSS (#41776) @siriwatknp
20
+ - [PaginationItem] Convert to support CSS extraction (#41848) @gijsbotje
21
+ - [StepConnector] deprecate composed classes (#41740) @sai6855
22
+ - [StepLabel] Deprecate `StepIconComponent`, `StepIconProps` (#41835) @sai6855
23
+ - [ToggleButton] Convert to support CSS extraction (#41782) @lhilgert9
24
+ - [ToggleButtonGroup] Deprecate composed classes (#41288) @sai6855
25
+ - [Typography] Fix Typography inherit variant styles (#41308) @kealjones-wk
26
+
27
+ ### `@mui/system@6.0.0-alpha.3`
28
+
29
+ - Add container queries utility (#41674) @siriwatknp
30
+
31
+ ### `@mui/codemod@6.0.0-alpha.3`
32
+
33
+ - Add styled v6 transformation (#41743) @siriwatknp
34
+
35
+ ### `@mui/joy@5.0.0-beta.36`
36
+
37
+ - [Button] Disable text highlighting (#41902) @mithun522
38
+
39
+ ### `@pigment-css/react@0.0.7`
40
+
41
+ - Patch WyW's WeakRef usage (#41909) @DiegoAndai
42
+ - Implement sx transform for system components (#41861) @brijeshb42
43
+
44
+ ### Docs
45
+
46
+ - [material-ui] Add Connect-related content (#40848) @danilo-leal
47
+ - [material-ui] Fix credit comment typo (#41872) @aarongarciah
48
+ - [material-ui] Remove Data Grid v7 beta callout (#41839) @cherniavskii
49
+ - [material-ui] Add stray design tweaks to free templates (#41696) @zanivan
50
+ - [material-ui] Simplify components styling on templates (#41845) @zanivan
51
+ - [material-ui][Button] Add `onChange` event handler to file upload example (#41863) @aarongarciah
52
+ - [material-ui] Fix import statement in migration guide (#41852) @sai6855
53
+ - Fix 301 redirection @oliviertassinari
54
+ - Fix format git diff regression (#41882) @oliviertassinari
55
+ - Fix small SEO issues @oliviertassinari
56
+ - [pigment-css] Fix README typos (#41870) @MohammadShehadeh
57
+
58
+ ### Core
59
+
60
+ - Begin removing IE 11-related code (#41709) @iammminzzy
61
+ - [blog] Add post to introduce the Connect plugin (#41763) @danilo-leal
62
+ - [code-infra] Fix require.context with aliases (#41682) @Janpot
63
+ - [code-infra] Allow customizing hooks imports in API docs generator (#41828) @michaldudak
64
+ - [codemod] Add utils for `*Component` and `*Props` props deprecations (#41685) @DiegoAndai
65
+ - Replace bundle size reporter filter (#38979) @Janpot
66
+ - [docs-infra] Make the whole header clickable (#39603) @MoazMirza-13
67
+ - [docs-infra] Improve demo container and related components design (#41827) @danilo-leal
68
+ - [docs-infra] Use edge function for card generation (#41188) (#41836) @alexfauquette
69
+ - [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
70
+ - [docs-infra] Fine-tune the OG card image design (#41862) @danilo-leal
71
+ - [docs-infra] Fix markdown version for material (#41908) @alexfauquette
72
+ - [docs-infra] Support multiple tabs in demos (#40901) @bharatkashyap
73
+
74
+ 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
75
+
76
+ ## v6.0.0-alpha.2
77
+
78
+ <!-- generated comparing v6.0.0-alpha.1..next -->
79
+
80
+ _Apr 9, 2024_
81
+
82
+ A big thanks to the 5 contributors who made this release possible.
83
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
84
+
85
+ ### `@mui/material@6.0.0-alpha.2`
86
+
87
+ - &#8203;<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
88
+ - &#8203;<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
89
+
90
+ ### `@pigment-css/react@0.0.6`
91
+
92
+ - &#8203;<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
93
+
94
+ ### `@pigment-css/nextjs-plugin@0.0.6`
95
+
96
+ - &#8203;<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
97
+ - &#8203;<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
98
+
99
+ ### Docs
100
+
101
+ - &#8203;<!-- 11 -->[docs] Fix 301 links @oliviertassinari
102
+ - &#8203;<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
103
+ - &#8203;<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
104
+ - &#8203;<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
105
+ - &#8203;<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
106
+
107
+ ### Core
108
+
109
+ - &#8203;<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
110
+ - &#8203;<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
111
+ - &#8203;<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
112
+
113
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
114
+
115
+ ## v6.0.0-alpha.1
116
+
117
+ <!-- generated comparing v6.0.0-alpha.0..next -->
118
+
119
+ _Apr 5, 2024_
120
+
121
+ A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
122
+
123
+ - 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
124
+ - 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
125
+ - 💫 Added 3 redesigned free Material UI templates: [Sign-in](https://next.mui.com/material-ui/getting-started/templates/sign-in/), [Sign-in side](https://next.mui.com/material-ui/getting-started/templates/sign-in-side/), and [Sign-up](https://next.mui.com/material-ui/getting-started/templates/sign-up/).
126
+
127
+ ### `@mui/material@6.0.0-alpha.1`
128
+
129
+ - [AppBar] Convert to support CSS extraction (#41247) @mnajdova
130
+ - [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
131
+ - [Button] Convert to support CSS extraction (#41378) @siriwatknp
132
+ - [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
133
+ - [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
134
+ - [Slider] Move palette styles to the bottom (#41676) @siriwatknp
135
+ - Add the `spacing` theme token (#40224) @siriwatknp
136
+
137
+ ### `@mui/system@6.0.0-alpha.1`
138
+
139
+ - Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
140
+
141
+ ### `@mui/codemod@6.0.0-alpha.1`
142
+
143
+ - [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
144
+
145
+ ### `@mui/lab@6.0.0-alpha.1`
146
+
147
+ - [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
148
+
149
+ ### `@mui/joy@5.0.0-beta.34`
150
+
151
+ - Add `spacing` theme token (#40224) @siriwatknp
152
+
153
+ ### `@pigment-css/react@0.0.5`
154
+
155
+ - Improve sx prop support (#41589) @brijeshb42
156
+ - Fix Emotion styled error (#41699) @siriwatknp
157
+ - Fix propTypes removal during eval stage (#41695) @brijeshb42
158
+ - Fix props forwarding (#41688) @siriwatknp
159
+ - Fix sx prop transformation on Box (#41705) @brijeshb42
160
+
161
+ ### `@pigment-css/vite-plugin@0.0.5`
162
+
163
+ - Use constant filename for pigment styles (#41667) @brijeshb42
164
+
165
+ ### `@pigment-css/nextjs-plugin@0.0.5`
166
+
167
+ - Add missing RTL implementation (#41751) @brijeshb42
168
+
169
+ ### Docs
170
+
171
+ - [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
172
+ - [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
173
+ - Continue migration of Base UI to sperate repository @oliviertassinari
174
+ - Stick to one way to write IE 11 @oliviertassinari
175
+ - Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
176
+ - Drop IE 11 official support (#41611) @iammminzzy
177
+ - [material-ui] Fix typo on the Accordion page (#41687) @connorshea
178
+ - [pigment-css] Add small edits on the README (#41646) @danilo-leal
179
+ - [pigment-css] Edit the example app's README files (#41639) @danilo-leal
180
+
181
+ ### Core
182
+
183
+ - [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
184
+ - [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
185
+ - [core] Update the prettier script to use the next branch (#41637) @mnajdova
186
+ - [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
187
+ - [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
188
+ - [docs-infra] Allows to remove edit button (#41702) @alexfauquette
189
+ - [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
190
+ - [examples] Update MUI's packages to the next version (#41701) @mnajdova
191
+ - [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
192
+ - [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
193
+ - [blog] Refresh the design slightly (#41697) @danilo-leal
194
+ - [website] Use en-US over en-UK for career link @oliviertassinari
195
+ - [website] Add Aarón to About Us (#41736) @aarongarciah
196
+ - [website] Refine button design and other details (#41686) @danilo-leal
197
+ - [website] Improve job og image (#41672) @oliviertassinari
198
+ - [website] Page <title> should have no dots @oliviertassinari
199
+
200
+ All contributors of this release in alphabetical order: @aarongarciah, @adriancuadrado, @alexfauquette, @bharatkashyap, @brijeshb42, @connorshea, @danilo-leal, @DiegoAndai, @iammminzzy, @Janpot, @JCQuintas, @levigunz, @mnajdova, @oliviertassinari, @ppaskaris-plooto, @siriwatknp, @skmanoj322, @zanivan, @ZeeshanTamboli
201
+
202
+ ## v6.0.0-alpha.0
203
+
204
+ <!-- generated comparing v5.15.14..next -->
205
+
206
+ _Mar 26, 2024_
207
+
208
+ A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
209
+
210
+ - 🔥 Converted 10+ Material UI components to support static CSS extraction
211
+ - ⬅️ Added RTL support in Pigment CSS (#41570) @brijeshb42
212
+
213
+ ### `@mui/material@6.0.0-alpha.0`
214
+
215
+ - [BottomNavigation] Convert to support CSS extraction (#41612) @aacevski
216
+ - [AvatarGroup] Convert to support CSS extraction (#41485) @zanivan
217
+ - [Backdrop] Convert to support CSS extraction (#41581) @aacevski
218
+ - [Breadcrumbs] Convert to support CSS extraction (#41496) @aacevski
219
+ - [Card] Convert to support CSS extraction (#41580) @aacevski
220
+ - [Divider] Convert to support CSS extraction (#41366) @sai6855
221
+ - [FormControl] Convert to support CSS extraction (#41613) @aacevski
222
+ - [FormGroup] Convert to support CSS extraction (#41614) @aacevski
223
+ - [MobileStepper] Convert to support CSS extraction (#41533) @aacevski
224
+ - [Modal] Support CSS extraction (#41483) @sai6855
225
+ - [Popover] Convert to support CSS extraction (#41564) @aacevski
226
+ - [Stepper] Convert to support CSS extraction (#41546) @aacevski
227
+ - [Autocomplete] Display options provided to the `options` prop even if loading is true (#41634) @nekoya
228
+ - [Backdrop] Deprecate TransitionComponent (#40677) @harry-whorlow
229
+ - [ButtonGroup] Deprecate composed classes (#41259) @sai6855
230
+ - [StepLabel] Deprecate `componentProps` prop (#41321) @sai6855
231
+ - [Chip] Convert to support CSS extraction (#41592) @DiegoAndai
232
+
233
+ ### `@pigment-css/react@0.0.4`
234
+
235
+ - Fix evaluation of undefined variables (#41569) @siriwatknp
236
+ - Fix react-modal demos location (#41560) @sai6855
237
+ - [react] RTL Support (#41570) @brijeshb42
238
+
239
+ ### `@mui/system@6.0.0-alpha.0`
240
+
241
+ - [core] Standardize index pattern (#41574) @DiegoAndai
242
+ - Fix typo to avoid infinite recursion in function call (#41616) @michael-land
243
+ - Move stylesheet generator to `extendTheme` (#41446) @siriwatknp
244
+
245
+ ### Docs
246
+
247
+ - [joy-ui] Refresh the marketing example on the Color Inversion page (#41497) @cipherlogs
248
+ - [material-ui] Add v5 to v6 migration guide (#41561) @DiegoAndai
249
+ - [system] Add v5 to v6 migration guide (#41575) @DiegoAndai
250
+ - [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) @StylesTrip
251
+ - [pigment-css] Update the RTL section on the readme (#41576) @danilo-leal
252
+
253
+ ### Core
254
+
255
+ - [blog] Update the callout (#41645) @cherniavskii
256
+ - [blog] Link to Romain's blog post in MUI X v7 announcement post (#41640) @cherniavskii
257
+ - [blog] Blog post with MUI X v7.0.0 annoucement (#41563) @joserodolfofreitas
258
+ - [blog] Add post about remote (#41565) @danilo-leal
259
+ - [core] Restore the pnpm-lock.yaml (#41643) @mnajdova
260
+ - [core] Fix failing CI steps (#41636) @mnajdova
261
+ - [core] Update browser support versions (#41568) @siriwatknp
262
+ - [core] Add instructions to deploying docs guide (#41582) @DiegoAndai
263
+ - [core] Add comment explaining the frequency of no-response action runs (#41555) @michaldudak
264
+ - [core] Init the next branch (#41552) @mnajdova
265
+ - [core] Lower the frequency of no-response action runs (#41553) @michaldudak
266
+ - [core] Update peerDependencies ranges to include v6 packages (#41662) @michaldudak
267
+ - [core] Run pnpm dedupe (#41658) @michaldudak
268
+ - [core] Fix dedupe check (#41657) @Janpot
269
+ - [pigment-css][demo] Add index page for material-ui (#41577) @brijeshb42
270
+ - [pigment-css][demo] Remove app specific pnpm workspace (#41393) @brijeshb42
271
+ - [docs] Add notification for MUI X v7 blog post (#41587) @cherniavskii
272
+ - [docs] MUI X v7 blog post annoucement followup (#41601) @joserodolfofreitas
273
+ - [docs] Update the installation guides to use the next tag (#41558) @mnajdova
274
+ - [docs][material-ui] Fix typo in CSS theme variables customization (#41632) @ZeeshanTamboli
275
+ - [material-ui][docs] Remove deleted page from the sidenav (#41594) @danilo-leal
276
+ - [website] Update pricing table (#41595) @cherniavskii
277
+ - [website] Add stray design adjustments throughout the site (#41547) @danilo-leal
278
+
279
+ All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
280
+
281
+ ## v5.15.15
282
+
283
+ <!-- generated comparing v5.15.14..master -->
284
+
285
+ _Apr 4, 2024_
286
+
287
+ A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
288
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
289
+
290
+ ### `@mui/material@5.15.15`
291
+
292
+ - [Autocomplete] Display options provided to the `options` prop even if loading is true (#41677) @ZeeshanTamboli
293
+ - [RadioGroup] Apply classnames (#41681) @ZeeshanTamboli
294
+
295
+ ### `@mui/system@5.15.15`
296
+
297
+ - Fix typo to avoid infinite recursion in function call (#41678) @ZeeshanTamboli
298
+
299
+ ### Docs
300
+
301
+ - [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41679) @ZeeshanTamboli
302
+ - [material-ui] Remove deleted page from the sidenav (#41594) @danilo-leal
303
+ - [material-ui] Fix typo in CSS theme variables customization (#41680) @ZeeshanTamboli
304
+ - Continue migration of Base UI to sperate repository @oliviertassinari
305
+ - Add notification for MUI X v7 blog post (#41587) (#41605) @cherniavskii
306
+ - Update the versions dropdown to show v6 (#41557) @mnajdova
307
+
308
+ ### Core
309
+
310
+ - [blog] Link to Romain's blog post in MUI X v7 announcement post (#41641) @cherniavskii
311
+ - [blog] Blog post with MUI X v7.0.0 annoucement (#41563) (#41604) @cherniavskii
312
+ - [blog] Add post about remote (#41565) @danilo-leal
313
+ - [core] Continue rename of Toolpad @oliviertassinari
314
+ - [docs-infra] Add Toolpad product/category IDs to types (#41551) @bharatkashyap
315
+ - [website] Add Aarón to About Us (#41747) @aarongarciah
316
+ - [website] Add stray design adjustments throughout the site (#41642) @mnajdova
317
+ - [website] Update pricing table (#41606) @cherniavskii
318
+
319
+ All contributors of this release in alphabetical order: @aarongarciah, @bharatkashyap, @cherniavskii, @danilo-leal, @mnajdova, @oliviertassinari, @ZeeshanTamboli
320
+
3
321
  ## v5.15.14
4
322
 
5
323
  <!-- generated comparing v5.15.13..master -->
@@ -9,7 +327,7 @@ _Mar 18, 2024_
9
327
  A big thanks to the 15 contributors who made this release possible.
10
328
  This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
11
329
 
12
- ### `@mui/material@5.15.13`
330
+ ### `@mui/material@5.15.14`
13
331
 
14
332
  - [Accordion] Convert to support CSS extraction (#41221) @mnajdova
15
333
  - &#8203;<!-- 24 -->[Autocomplete] Convert to support CSS extraction (#40330) @mnajdova
@@ -814,7 +1132,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
814
1132
  - [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
815
1133
  - [material-ui] Revise the Accordion page (#40284) @anle9650
816
1134
  - [material-ui] Add docs for complementary Card components (#40346) @anle9650
817
- - [material-ui] Add Material 3 components page (#40350) @DiegoAndai
1135
+ - [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
818
1136
  - Fix strange italic style @oliviertassinari
819
1137
  - Fix references to ESLint @oliviertassinari
820
1138
  - Fix 301 redirections @oliviertassinari
@@ -7922,7 +8240,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
7922
8240
 
7923
8241
  <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>
7924
8242
 
7925
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8243
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
7926
8244
 
7927
8245
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
7928
8246
 
@@ -9392,7 +9710,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9392
9710
 
9393
9711
  <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>
9394
9712
 
9395
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
9713
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9396
9714
 
9397
9715
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9398
9716
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
@@ -12978,7 +13296,7 @@ Here are some highlights ✨:
12978
13296
 
12979
13297
  1. `stable` (default, formerly `esm`) which targets a snapshot (on release) of `> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11"`
12980
13298
  2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
12981
- 3. `legacy` (new) which is `stable` + IE11
13299
+ 3. `legacy` (new) which is `stable` + IE 11
12982
13300
  4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
12983
13301
 
12984
13302
  The change yields a 6% reduction in bundle size 📦 (Babel only).
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v5.15.14
2
+ * @mui/private-theming v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v5.15.14
2
+ * @mui/private-theming v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -14,7 +14,7 @@ var _useTheme = _interopRequireDefault(require("../useTheme"));
14
14
  var _nested = _interopRequireDefault(require("./nested"));
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  // To support composition of theme.
19
19
  function mergeOuterLocalTheme(outerTheme, localTheme) {
20
20
  if (typeof localTheme === 'function') {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v5.15.14
2
+ * @mui/private-theming v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -41,4 +41,4 @@ Object.keys(_ThemeProvider).forEach(function (key) {
41
41
  });
42
42
  var _useTheme = _interopRequireDefault(require("./useTheme"));
43
43
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
44
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
44
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
10
  const ThemeContext = /*#__PURE__*/React.createContext(null);
11
11
  if (process.env.NODE_ENV !== 'production') {
12
12
  ThemeContext.displayName = 'ThemeContext';
@@ -8,7 +8,7 @@ exports.default = useTheme;
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  var _ThemeContext = _interopRequireDefault(require("./ThemeContext"));
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
12
  function useTheme() {
13
13
  const theme = React.useContext(_ThemeContext.default);
14
14
  if (process.env.NODE_ENV !== 'production') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/private-theming",
3
- "version": "5.15.14",
3
+ "version": "6.0.0-alpha.3",
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.23.9",
29
+ "@babel/runtime": "^7.24.4",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/utils": "^5.15.14"
31
+ "@mui/utils": "^6.0.0-alpha.3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -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 v5.15.14
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
- }