@mui/private-theming 5.15.14 → 6.0.0-alpha.1
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 +209 -3
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/ThemeProvider/ThemeProvider.js +1 -1
- package/node/index.js +2 -2
- package/node/useTheme/ThemeContext.js +1 -1
- package/node/useTheme/useTheme.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,211 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.0..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 5, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
|
|
12
|
+
- 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
|
|
13
|
+
- 💫 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/).
|
|
14
|
+
|
|
15
|
+
### `@mui/material@6.0.0-alpha.1`
|
|
16
|
+
|
|
17
|
+
- [AppBar] Convert to support CSS extraction (#41247) @mnajdova
|
|
18
|
+
- [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
|
|
19
|
+
- [Button] Convert to support CSS extraction (#41378) @siriwatknp
|
|
20
|
+
- [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
|
|
21
|
+
- [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
|
|
22
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
23
|
+
- Add the `spacing` theme token (#40224) @siriwatknp
|
|
24
|
+
|
|
25
|
+
### `@mui/system@6.0.0-alpha.1`
|
|
26
|
+
|
|
27
|
+
- Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
|
|
28
|
+
|
|
29
|
+
### `@mui/codemod@6.0.0-alpha.1`
|
|
30
|
+
|
|
31
|
+
- [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
|
|
32
|
+
|
|
33
|
+
### `@mui/lab@6.0.0-alpha.1`
|
|
34
|
+
|
|
35
|
+
- [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
|
|
36
|
+
|
|
37
|
+
### `@mui/joy@5.0.0-beta.34`
|
|
38
|
+
|
|
39
|
+
- Add `spacing` theme token (#40224) @siriwatknp
|
|
40
|
+
|
|
41
|
+
### `@pigment-css/react@0.0.5`
|
|
42
|
+
|
|
43
|
+
- Improve sx prop support (#41589) @brijeshb42
|
|
44
|
+
- Fix Emotion styled error (#41699) @siriwatknp
|
|
45
|
+
- Fix propTypes removal during eval stage (#41695) @brijeshb42
|
|
46
|
+
- Fix props forwarding (#41688) @siriwatknp
|
|
47
|
+
- Fix sx prop transformation on Box (#41705) @brijeshb42
|
|
48
|
+
|
|
49
|
+
### `@pigment-css/vite-plugin@0.0.5`
|
|
50
|
+
|
|
51
|
+
- Use constant filename for pigment styles (#41667) @brijeshb42
|
|
52
|
+
|
|
53
|
+
### `@pigment-css/nextjs-plugin@0.0.5`
|
|
54
|
+
|
|
55
|
+
- Add missing RTL implementation (#41751) @brijeshb42
|
|
56
|
+
|
|
57
|
+
### Docs
|
|
58
|
+
|
|
59
|
+
- [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
|
|
60
|
+
- [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
|
|
61
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
62
|
+
- Stick to one way to write IE 11 @oliviertassinari
|
|
63
|
+
- Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
|
|
64
|
+
- Drop IE 11 official support (#41611) @iammminzzy
|
|
65
|
+
- [material-ui] Fix typo on the Accordion page (#41687) @connorshea
|
|
66
|
+
- [pigment-css] Add small edits on the README (#41646) @danilo-leal
|
|
67
|
+
- [pigment-css] Edit the example app's README files (#41639) @danilo-leal
|
|
68
|
+
|
|
69
|
+
### Core
|
|
70
|
+
|
|
71
|
+
- [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
|
|
72
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
|
|
73
|
+
- [core] Update the prettier script to use the next branch (#41637) @mnajdova
|
|
74
|
+
- [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
|
|
75
|
+
- [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
|
|
76
|
+
- [docs-infra] Allows to remove edit button (#41702) @alexfauquette
|
|
77
|
+
- [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
|
|
78
|
+
- [examples] Update MUI's packages to the next version (#41701) @mnajdova
|
|
79
|
+
- [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
|
|
80
|
+
- [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
|
|
81
|
+
- [blog] Refresh the design slightly (#41697) @danilo-leal
|
|
82
|
+
- [website] Use en-US over en-UK for career link @oliviertassinari
|
|
83
|
+
- [website] Add Aarón to About Us (#41736) @aarongarciah
|
|
84
|
+
- [website] Refine button design and other details (#41686) @danilo-leal
|
|
85
|
+
- [website] Improve job og image (#41672) @oliviertassinari
|
|
86
|
+
- [website] Page <title> should have no dots @oliviertassinari
|
|
87
|
+
|
|
88
|
+
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
|
|
89
|
+
|
|
90
|
+
## v6.0.0-alpha.0
|
|
91
|
+
|
|
92
|
+
<!-- generated comparing v5.15.14..next -->
|
|
93
|
+
|
|
94
|
+
_Mar 26, 2024_
|
|
95
|
+
|
|
96
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
97
|
+
|
|
98
|
+
- 🔥 Converted 10+ Material UI components to support static CSS extraction
|
|
99
|
+
- ⬅️ Added RTL support in Pigment CSS (#41570) @brijeshb42
|
|
100
|
+
|
|
101
|
+
### `@mui/material@6.0.0-alpha.0`
|
|
102
|
+
|
|
103
|
+
- [BottomNavigation] Convert to support CSS extraction (#41612) @aacevski
|
|
104
|
+
- [AvatarGroup] Convert to support CSS extraction (#41485) @zanivan
|
|
105
|
+
- [Backdrop] Convert to support CSS extraction (#41581) @aacevski
|
|
106
|
+
- [Breadcrumbs] Convert to support CSS extraction (#41496) @aacevski
|
|
107
|
+
- [Card] Convert to support CSS extraction (#41580) @aacevski
|
|
108
|
+
- [Divider] Convert to support CSS extraction (#41366) @sai6855
|
|
109
|
+
- [FormControl] Convert to support CSS extraction (#41613) @aacevski
|
|
110
|
+
- [FormGroup] Convert to support CSS extraction (#41614) @aacevski
|
|
111
|
+
- [MobileStepper] Convert to support CSS extraction (#41533) @aacevski
|
|
112
|
+
- [Modal] Support CSS extraction (#41483) @sai6855
|
|
113
|
+
- [Popover] Convert to support CSS extraction (#41564) @aacevski
|
|
114
|
+
- [Stepper] Convert to support CSS extraction (#41546) @aacevski
|
|
115
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41634) @nekoya
|
|
116
|
+
- [Backdrop] Deprecate TransitionComponent (#40677) @harry-whorlow
|
|
117
|
+
- [ButtonGroup] Deprecate composed classes (#41259) @sai6855
|
|
118
|
+
- [StepLabel] Deprecate `componentProps` prop (#41321) @sai6855
|
|
119
|
+
- [Chip] Convert to support CSS extraction (#41592) @DiegoAndai
|
|
120
|
+
|
|
121
|
+
### `@pigment-css/react@0.0.4`
|
|
122
|
+
|
|
123
|
+
- Fix evaluation of undefined variables (#41569) @siriwatknp
|
|
124
|
+
- Fix react-modal demos location (#41560) @sai6855
|
|
125
|
+
- [react] RTL Support (#41570) @brijeshb42
|
|
126
|
+
|
|
127
|
+
### `@mui/system@6.0.0-alpha.0`
|
|
128
|
+
|
|
129
|
+
- [core] Standardize index pattern (#41574) @DiegoAndai
|
|
130
|
+
- Fix typo to avoid infinite recursion in function call (#41616) @michael-land
|
|
131
|
+
- Move stylesheet generator to `extendTheme` (#41446) @siriwatknp
|
|
132
|
+
|
|
133
|
+
### Docs
|
|
134
|
+
|
|
135
|
+
- [joy-ui] Refresh the marketing example on the Color Inversion page (#41497) @cipherlogs
|
|
136
|
+
- [material-ui] Add v5 to v6 migration guide (#41561) @DiegoAndai
|
|
137
|
+
- [system] Add v5 to v6 migration guide (#41575) @DiegoAndai
|
|
138
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) @StylesTrip
|
|
139
|
+
- [pigment-css] Update the RTL section on the readme (#41576) @danilo-leal
|
|
140
|
+
|
|
141
|
+
### Core
|
|
142
|
+
|
|
143
|
+
- [blog] Update the callout (#41645) @cherniavskii
|
|
144
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41640) @cherniavskii
|
|
145
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) @joserodolfofreitas
|
|
146
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
147
|
+
- [core] Restore the pnpm-lock.yaml (#41643) @mnajdova
|
|
148
|
+
- [core] Fix failing CI steps (#41636) @mnajdova
|
|
149
|
+
- [core] Update browser support versions (#41568) @siriwatknp
|
|
150
|
+
- [core] Add instructions to deploying docs guide (#41582) @DiegoAndai
|
|
151
|
+
- [core] Add comment explaining the frequency of no-response action runs (#41555) @michaldudak
|
|
152
|
+
- [core] Init the next branch (#41552) @mnajdova
|
|
153
|
+
- [core] Lower the frequency of no-response action runs (#41553) @michaldudak
|
|
154
|
+
- [core] Update peerDependencies ranges to include v6 packages (#41662) @michaldudak
|
|
155
|
+
- [core] Run pnpm dedupe (#41658) @michaldudak
|
|
156
|
+
- [core] Fix dedupe check (#41657) @Janpot
|
|
157
|
+
- [pigment-css][demo] Add index page for material-ui (#41577) @brijeshb42
|
|
158
|
+
- [pigment-css][demo] Remove app specific pnpm workspace (#41393) @brijeshb42
|
|
159
|
+
- [docs] Add notification for MUI X v7 blog post (#41587) @cherniavskii
|
|
160
|
+
- [docs] MUI X v7 blog post annoucement followup (#41601) @joserodolfofreitas
|
|
161
|
+
- [docs] Update the installation guides to use the next tag (#41558) @mnajdova
|
|
162
|
+
- [docs][material-ui] Fix typo in CSS theme variables customization (#41632) @ZeeshanTamboli
|
|
163
|
+
- [material-ui][docs] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
164
|
+
- [website] Update pricing table (#41595) @cherniavskii
|
|
165
|
+
- [website] Add stray design adjustments throughout the site (#41547) @danilo-leal
|
|
166
|
+
|
|
167
|
+
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
|
|
168
|
+
|
|
169
|
+
## v5.15.15
|
|
170
|
+
|
|
171
|
+
<!-- generated comparing v5.15.14..master -->
|
|
172
|
+
|
|
173
|
+
_Apr 4, 2024_
|
|
174
|
+
|
|
175
|
+
A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
176
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
177
|
+
|
|
178
|
+
### `@mui/material@5.15.15`
|
|
179
|
+
|
|
180
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41677) @ZeeshanTamboli
|
|
181
|
+
- [RadioGroup] Apply classnames (#41681) @ZeeshanTamboli
|
|
182
|
+
|
|
183
|
+
### `@mui/system@5.15.15`
|
|
184
|
+
|
|
185
|
+
- Fix typo to avoid infinite recursion in function call (#41678) @ZeeshanTamboli
|
|
186
|
+
|
|
187
|
+
### Docs
|
|
188
|
+
|
|
189
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41679) @ZeeshanTamboli
|
|
190
|
+
- [material-ui] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
191
|
+
- [material-ui] Fix typo in CSS theme variables customization (#41680) @ZeeshanTamboli
|
|
192
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
193
|
+
- Add notification for MUI X v7 blog post (#41587) (#41605) @cherniavskii
|
|
194
|
+
- Update the versions dropdown to show v6 (#41557) @mnajdova
|
|
195
|
+
|
|
196
|
+
### Core
|
|
197
|
+
|
|
198
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41641) @cherniavskii
|
|
199
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) (#41604) @cherniavskii
|
|
200
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
201
|
+
- [core] Continue rename of Toolpad @oliviertassinari
|
|
202
|
+
- [docs-infra] Add Toolpad product/category IDs to types (#41551) @bharatkashyap
|
|
203
|
+
- [website] Add Aarón to About Us (#41747) @aarongarciah
|
|
204
|
+
- [website] Add stray design adjustments throughout the site (#41642) @mnajdova
|
|
205
|
+
- [website] Update pricing table (#41606) @cherniavskii
|
|
206
|
+
|
|
207
|
+
All contributors of this release in alphabetical order: @aarongarciah, @bharatkashyap, @cherniavskii, @danilo-leal, @mnajdova, @oliviertassinari, @ZeeshanTamboli
|
|
208
|
+
|
|
3
209
|
## v5.15.14
|
|
4
210
|
|
|
5
211
|
<!-- generated comparing v5.15.13..master -->
|
|
@@ -9,7 +215,7 @@ _Mar 18, 2024_
|
|
|
9
215
|
A big thanks to the 15 contributors who made this release possible.
|
|
10
216
|
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
217
|
|
|
12
|
-
### `@mui/material@5.15.
|
|
218
|
+
### `@mui/material@5.15.14`
|
|
13
219
|
|
|
14
220
|
- [Accordion] Convert to support CSS extraction (#41221) @mnajdova
|
|
15
221
|
- ​<!-- 24 -->[Autocomplete] Convert to support CSS extraction (#40330) @mnajdova
|
|
@@ -814,7 +1020,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
814
1020
|
- [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
|
|
815
1021
|
- [material-ui] Revise the Accordion page (#40284) @anle9650
|
|
816
1022
|
- [material-ui] Add docs for complementary Card components (#40346) @anle9650
|
|
817
|
-
- [material-ui] Add Material 3 components page (#40350) @DiegoAndai
|
|
1023
|
+
- [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
|
|
818
1024
|
- Fix strange italic style @oliviertassinari
|
|
819
1025
|
- Fix references to ESLint @oliviertassinari
|
|
820
1026
|
- Fix 301 redirections @oliviertassinari
|
|
@@ -12978,7 +13184,7 @@ Here are some highlights ✨:
|
|
|
12978
13184
|
|
|
12979
13185
|
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
13186
|
2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
|
|
12981
|
-
3. `legacy` (new) which is `stable` +
|
|
13187
|
+
3. `legacy` (new) which is `stable` + IE 11
|
|
12982
13188
|
4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
|
|
12983
13189
|
|
|
12984
13190
|
The change yields a 6% reduction in bundle size 📦 (Babel only).
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
package/modern/index.js
CHANGED
|
@@ -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 &&
|
|
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
|
|
2
|
+
* @mui/private-theming v6.0.0-alpha.1
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
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": "
|
|
3
|
+
"version": "6.0.0-alpha.1",
|
|
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.
|
|
29
|
+
"@babel/runtime": "^7.24.4",
|
|
30
30
|
"prop-types": "^15.8.1",
|
|
31
|
-
"@mui/utils": "^
|
|
31
|
+
"@mui/utils": "^6.0.0-alpha.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@types/react": "^17.0.0 || ^18.0.0",
|