@mui/system 5.15.15 → 5.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +250 -4
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +12 -0
- package/DefaultPropsProvider/DefaultPropsProvider.js +73 -0
- package/DefaultPropsProvider/index.d.ts +1 -0
- package/DefaultPropsProvider/index.js +20 -0
- package/DefaultPropsProvider/package.json +6 -0
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +49 -0
- package/InitColorSchemeScript/InitColorSchemeScript.js +61 -0
- package/InitColorSchemeScript/index.d.ts +2 -0
- package/InitColorSchemeScript/index.js +13 -0
- package/InitColorSchemeScript/package.json +6 -0
- package/ThemeProvider/ThemeProvider.js +5 -1
- package/cssVars/createCssVarsProvider.d.ts +2 -2
- package/cssVars/createCssVarsProvider.js +5 -5
- package/cssVars/getInitColorSchemeScript.d.ts +2 -41
- package/cssVars/getInitColorSchemeScript.js +7 -42
- package/cssVars/useCurrentColorScheme.js +3 -3
- package/esm/DefaultPropsProvider/DefaultPropsProvider.js +64 -0
- package/esm/DefaultPropsProvider/index.js +1 -0
- package/esm/InitColorSchemeScript/InitColorSchemeScript.js +51 -0
- package/esm/InitColorSchemeScript/index.js +1 -0
- package/esm/ThemeProvider/ThemeProvider.js +5 -1
- package/esm/cssVars/createCssVarsProvider.js +2 -2
- package/esm/cssVars/getInitColorSchemeScript.js +5 -41
- package/esm/cssVars/index.js +1 -0
- package/esm/cssVars/useCurrentColorScheme.js +1 -1
- package/index.js +1 -1
- package/legacy/DefaultPropsProvider/DefaultPropsProvider.js +60 -0
- package/legacy/DefaultPropsProvider/index.js +1 -0
- package/legacy/InitColorSchemeScript/InitColorSchemeScript.js +35 -0
- package/legacy/InitColorSchemeScript/index.js +1 -0
- package/legacy/ThemeProvider/ThemeProvider.js +5 -1
- package/legacy/cssVars/createCssVarsProvider.js +2 -2
- package/legacy/cssVars/getInitColorSchemeScript.js +5 -25
- package/legacy/cssVars/index.js +1 -0
- package/legacy/cssVars/useCurrentColorScheme.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/DefaultPropsProvider/DefaultPropsProvider.js +64 -0
- package/modern/DefaultPropsProvider/index.js +1 -0
- package/modern/InitColorSchemeScript/InitColorSchemeScript.js +51 -0
- package/modern/InitColorSchemeScript/index.js +1 -0
- package/modern/ThemeProvider/ThemeProvider.js +5 -1
- package/modern/cssVars/createCssVarsProvider.js +2 -2
- package/modern/cssVars/getInitColorSchemeScript.js +5 -41
- package/modern/cssVars/index.js +1 -0
- package/modern/cssVars/useCurrentColorScheme.js +1 -1
- package/modern/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,251 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v5.16.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.15.21..master -->
|
|
6
|
+
|
|
7
|
+
_Jul 5, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 Added `InitColorSchemeScript` for Next.js App Router (#42829) @siriwatknp
|
|
12
|
+
|
|
13
|
+
### `@mui/material@5.16.0`
|
|
14
|
+
|
|
15
|
+
- [Alert] Add ability to override slot props (@alexey-kozlenkov) (#42808) @alexey-kozlenkov
|
|
16
|
+
- Add `InitColorSchemeScript` for Next.js App Router (#42829) @siriwatknp
|
|
17
|
+
- Add `DefaultPropsProvider` (#42820) @siriwatknp
|
|
18
|
+
- Support `CssVarsTheme` in `responsiveFontSizes` return type (@jxdp) (#42806) @jxdp
|
|
19
|
+
- Remove warning from `getInitColorSchemeScript` (#42838) @siriwatknp
|
|
20
|
+
|
|
21
|
+
### Docs
|
|
22
|
+
|
|
23
|
+
- [docs] Fix 301 MDN redirections @oliviertassinari
|
|
24
|
+
|
|
25
|
+
### Core
|
|
26
|
+
|
|
27
|
+
- [mui-utils][test] Remove usages of deprecated react-dom APIs (@aarongarciah) (#42813) @aarongarciah
|
|
28
|
+
|
|
29
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexey-kozlenkov, @jxdp, @oliviertassinari, @siriwatknp
|
|
30
|
+
|
|
31
|
+
## v5.15.21
|
|
32
|
+
|
|
33
|
+
<!-- generated comparing v5.15.20..master -->
|
|
34
|
+
|
|
35
|
+
_Jun 28, 2024_
|
|
36
|
+
|
|
37
|
+
A big thanks to the 7 contributors who made this release possible.
|
|
38
|
+
|
|
39
|
+
### `@mui/material@5.15.21`
|
|
40
|
+
|
|
41
|
+
- [Autocomplete] Fix renderOption props type (@DiegoAndai) (#42709) @DiegoAndai
|
|
42
|
+
- [Stepper] Generate class for `nonLinear` prop (@alexismo) (#42677) @alexismo
|
|
43
|
+
|
|
44
|
+
### Docs
|
|
45
|
+
|
|
46
|
+
- Use new email for sponsoring @oliviertassinari
|
|
47
|
+
- Fix 301 links (@alexfauquette) (#42700) @alexfauquette
|
|
48
|
+
- [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (@Danielkhakbaz) (#42696) @Danielkhakbaz
|
|
49
|
+
- [material-ui][Autocomplete] Fix more React 18.3 key spread warnings in demos (#42766) @wbt
|
|
50
|
+
- [material-ui] Fix sign in side image (#42708) @zanivan
|
|
51
|
+
- [website] Add Ale to team (#42769) @alelthomas
|
|
52
|
+
|
|
53
|
+
### Core
|
|
54
|
+
|
|
55
|
+
- [core] Cherry pick pnpm updates (#42763) @DiegoAndai
|
|
56
|
+
- [website] Add Armin to the team members (@arminmeh) (#42681) @arminmeh
|
|
57
|
+
- [website] Open Staff Engineer role for Pigment CSS (@mnajdova) (#42669) @mnajdova
|
|
58
|
+
|
|
59
|
+
All contributors of this release in alphabetical order: @alexfauquette, @alexismo, @arminmeh, @Danielkhakbaz, @DiegoAndai, @mnajdova, @oliviertassinari
|
|
60
|
+
|
|
61
|
+
## v5.15.20
|
|
62
|
+
|
|
63
|
+
<!-- generated comparing v5.15.19..master -->
|
|
64
|
+
|
|
65
|
+
_Jun 12, 2024_
|
|
66
|
+
|
|
67
|
+
A big thanks to the 9 contributors who made this release possible.
|
|
68
|
+
|
|
69
|
+
### `@mui/material@5.15.20`
|
|
70
|
+
|
|
71
|
+
- ​<!-- 17 -->[Autocomplete] Shouldn't resize when hovering (@ZeeshanTamboli) (#42535) @ZeeshanTamboli
|
|
72
|
+
- ​<!-- 07 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (@sai6855) (#42570) @sai6855
|
|
73
|
+
|
|
74
|
+
### `@mui/utils@5.15.15`
|
|
75
|
+
|
|
76
|
+
- ​<!-- 06 -->Allow passing `NaN` as `defaultValue` to `useControlled` (@iammminzzy) (#42571) @iammminzzy
|
|
77
|
+
- ​<!-- 17 -->Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) (#42608) @DiegoAndai
|
|
78
|
+
|
|
79
|
+
### Docs
|
|
80
|
+
|
|
81
|
+
- ​<!-- 16 -->[docs] Add Pigment CSS and Base UI logos SVGs (#42513) @danilo-leal
|
|
82
|
+
- ​<!-- 15 -->[docs] Update twitter.com to x.com @oliviertassinari
|
|
83
|
+
- ​<!-- 14 -->[docs] Simplify Example projects page @oliviertassinari
|
|
84
|
+
- ​<!-- 13 -->[material-ui] Add docs for complementary stepper components (@anle9650) (#42613) @anle9650
|
|
85
|
+
- ​<!-- 12 -->[docs] Add changelog section to the design kits page (@danilo-leal) (#42463) @danilo-leal
|
|
86
|
+
- ​<!-- 11 -->[material-ui] Fix sentence in the All components page (@danilo-leal) (#42462) @danilo-leal
|
|
87
|
+
- ​<!-- 10 -->[material-ui] Update Figma design kit doc redirect link (@danilo-leal) (#42456) @danilo-leal
|
|
88
|
+
- ​<!-- 09 -->[system] Add "dynamic values" section to sx prop page (@aarongarciah) (#42453) @aarongarciah
|
|
89
|
+
|
|
90
|
+
### Core
|
|
91
|
+
|
|
92
|
+
- ​<!-- 18 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
|
|
93
|
+
- ​<!-- 08 -->[examples] Remove Pigment CSS examples (#42538) @sai6855
|
|
94
|
+
- ​<!-- 05 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
|
|
95
|
+
- ​<!-- 04 -->[website] Update DoiT description and link in Sponsors section (@erezstmn-doit) (#42511) @erezstmn-doit
|
|
96
|
+
- ​<!-- 03 -->[website] Clean up the docs-infra job ad (@danilo-leal) (#42509) @danilo-leal
|
|
97
|
+
- ​<!-- 02 -->[website] Open the Docs-infra engineer role (@danilo-leal) (#42496) @danilo-leal
|
|
98
|
+
- ​<!-- 01 -->[website] Fix locationCountry in about page @oliviertassinari
|
|
99
|
+
|
|
100
|
+
All contributors of this release in alphabetical order: @aarongarciah, @anle9650, @DanailH, @danilo-leal, @erezstmn-doit, @iammminzzy, @oliviertassinari, @sai6855, @ZeeshanTamboli
|
|
101
|
+
|
|
102
|
+
## v5.15.19
|
|
103
|
+
|
|
104
|
+
<!-- generated comparing v5.15.18..master -->
|
|
105
|
+
|
|
106
|
+
_May 29, 2024_
|
|
107
|
+
|
|
108
|
+
A big thanks to the 12 contributors who made this release possible.
|
|
109
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
110
|
+
|
|
111
|
+
### `@mui/material@5.15.19`
|
|
112
|
+
|
|
113
|
+
- ​<!-- 19 -->[AlertTitle] Enable extending Typography props (@lucasgmelo) (#42334) @github-actions[bot]
|
|
114
|
+
- ​<!-- 06 -->[responsiveFontSizes] Handled undefined variants (@brijeshb42) (#42419) @github-actions[bot]
|
|
115
|
+
- ​<!-- 05 -->[Slider] Fix wrong CSS value (@mnajdova) (#42373) @github-actions[bot]
|
|
116
|
+
|
|
117
|
+
### Docs
|
|
118
|
+
|
|
119
|
+
- ​<!-- 13 -->Link to pnpm installation docs (#42420) @aarongarciah
|
|
120
|
+
- ​<!-- 12 -->Remove LocalMonero (@oliviertassinari) (#42315) @github-actions[bot]
|
|
121
|
+
- ​<!-- 10 -->[material-ui] Fix typo in style interoperability with Tailwind CSS docs (@ZeeshanTamboli) (#42312) @github-actions[bot]
|
|
122
|
+
- ​<!-- 09 -->[material-ui][Pagination] Clarify pagination `page` prop API (@Mandar-Pandya) (#42265) @github-actions[bot]
|
|
123
|
+
- ​<!-- 08 -->[material-ui][Tabs] Improve the Basic Tabs demo (@MatheusEli) (#42426) @github-actions[bot]
|
|
124
|
+
- ​<!-- 07 -->[pigment-css] Fix duplication of content (#42410) @oliviertassinari
|
|
125
|
+
|
|
126
|
+
### Core
|
|
127
|
+
|
|
128
|
+
- ​<!-- 18 -->[blog] Add the "Product" tag to the Pigment CSS post (@danilo-leal) (#42366) @github-actions[bot]
|
|
129
|
+
- ​<!-- 17 -->[blog] Update blog post OG image (@danilo-leal) (#42306) @github-actions[bot]
|
|
130
|
+
- ​<!-- 16 -->[blog] Update Pigment CSS post (@danilo-leal) (#42267) @github-actions[bot]
|
|
131
|
+
- ​<!-- 15 -->[core] Fix React 18.3 warnings about spreading keys in the Material UI `Autocomplete` component (#42099) (#42241) @DiegoAndai
|
|
132
|
+
- ​<!-- 14 -->[core] Fix a few more key spread issues (@oliviertassinari) (#42318) @github-actions[bot]
|
|
133
|
+
- ​<!-- 11 -->[docs-infra] Allow JSDoc tags (#42327) @aarongarciah
|
|
134
|
+
- ​<!-- 04 -->[website] Add Nikita to the about page (@nikitaa24) (#42421) @github-actions[bot]
|
|
135
|
+
- ​<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (@KenanYusuf) (#42357) @github-actions[bot]
|
|
136
|
+
- ​<!-- 02 -->[website] Adds Kenan Yusuf to about page (@KenanYusuf) (#42330) @github-actions[bot]
|
|
137
|
+
- ​<!-- 01 -->[website] Improve about page @oliviertassinari
|
|
138
|
+
|
|
139
|
+
All contributors of this release in alphabetical order: @aarongarciah, @brijeshb42, @danilo-leal, @DiegoAndai, @KenanYusuf, @lucasgmelo, @Mandar-Pandya, @MatheusEli, @mnajdova, @nikitaa24, @oliviertassinari, @ZeeshanTamboli
|
|
140
|
+
|
|
141
|
+
## v5.15.18
|
|
142
|
+
|
|
143
|
+
<!-- generated comparing v5.15.17..master -->
|
|
144
|
+
|
|
145
|
+
_May 14, 2024_
|
|
146
|
+
|
|
147
|
+
A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
148
|
+
|
|
149
|
+
### `@mui/material@5.15.18`
|
|
150
|
+
|
|
151
|
+
- ​<!-- 6 -->[Autocomplete] Improve design when there's a start adornment for small autocomplete (@TahaRhidouani) (#42176) @github-actions[bot]
|
|
152
|
+
- ​<!-- 3 -->[ToggleButtonGroup] Add missing `selected` class in ToggleButtonGroupClasses type (@tarunrajput) (#42250) @github-actions[bot]
|
|
153
|
+
|
|
154
|
+
### Docs
|
|
155
|
+
|
|
156
|
+
- ​<!-- 4 -->[docs] Fix 301 to Figma @oliviertassinari
|
|
157
|
+
|
|
158
|
+
### Core
|
|
159
|
+
|
|
160
|
+
- ​<!-- 5 -->[blog] Introducing Pigment CSS blog post (#42198) (#42255) @samuelsycamore
|
|
161
|
+
- ​<!-- 2 -->[website] Add redirection for talk @oliviertassinari
|
|
162
|
+
- ​<!-- 1 -->[website] Adds Arthur Balduini team info (@arthurbalduini) (#42226) @github-actions[bot]
|
|
163
|
+
|
|
164
|
+
All contributors of this release in alphabetical order: @arthurbalduini, @oliviertassinari, @samuelsycamore, @TahaRhidouani, @tarunrajput
|
|
165
|
+
|
|
166
|
+
## v5.15.17
|
|
167
|
+
|
|
168
|
+
<!-- generated comparing v5.15.16..master -->
|
|
169
|
+
|
|
170
|
+
_May 8, 2024_
|
|
171
|
+
|
|
172
|
+
A big thanks to the 4 contributors who made this release possible.
|
|
173
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
174
|
+
|
|
175
|
+
### `@mui/material@5.15.17`
|
|
176
|
+
|
|
177
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
178
|
+
|
|
179
|
+
### Docs
|
|
180
|
+
|
|
181
|
+
- Fix SEO redirection issues @oliviertassinari
|
|
182
|
+
- [material-ui] Fix broken link (@aarongarciah) (#42143) @github-actions[bot]
|
|
183
|
+
- [material-ui] Fix link on the Sync page (@danilo-leal) (#42089) @github-actions[bot]
|
|
184
|
+
|
|
185
|
+
### Core
|
|
186
|
+
|
|
187
|
+
- [blog] Shorten title to fit @oliviertassinari
|
|
188
|
+
- [blog] Update Sync post OG image (@danilo-leal) (#42117) @github-actions[bot]
|
|
189
|
+
- [blog] A few tweaks in introducing-sync-plugin (@oliviertassinari) (#42094) @github-actions[bot]
|
|
190
|
+
- [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
|
|
191
|
+
- [website] Fix home page slider's track position (@aarongarciah) (#42144) @github-actions[bot]
|
|
192
|
+
- [website] Closing the survey @oliviertassinari
|
|
193
|
+
- [website] Remove Survey banner from website and Core docs (#42104) @joserodolfofreitas
|
|
194
|
+
|
|
195
|
+
All contributors of this release in alphabetical order: @github-actions[bot], @joserodolfofreitas, @oliviertassinari, @siriwatknp
|
|
196
|
+
|
|
197
|
+
## v5.15.16
|
|
198
|
+
|
|
199
|
+
<!-- generated comparing v5.15.15..master -->
|
|
200
|
+
|
|
201
|
+
_May 1, 2024_
|
|
202
|
+
|
|
203
|
+
A big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
204
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
205
|
+
|
|
206
|
+
### `@mui/material@5.15.16`
|
|
207
|
+
|
|
208
|
+
- [material-ui][Dialog] Prevent onClick on the root element from being overwritten (@ryanburr) (#41914) @github-actions[bot]
|
|
209
|
+
- [material-ui][Select] Fix `muiName` property TypeScript error (@EyaOuenniche) (#41786) @github-actions[bot]
|
|
210
|
+
- —>[material-ui][l10n] Fix typo in is-IS locale (@magnimarels) (#41815) @github-actions[bot]
|
|
211
|
+
|
|
212
|
+
### Docs
|
|
213
|
+
|
|
214
|
+
- Fix small SEO issues @oliviertassinari
|
|
215
|
+
- Fix 301 Toolpad links @oliviertassinari
|
|
216
|
+
- Fix 301 Toolpad links @oliviertassinari
|
|
217
|
+
- Fix 301 image redirections @oliviertassinari
|
|
218
|
+
- Fix small SEO issues @oliviertassinari
|
|
219
|
+
- Fix 301 redirection @oliviertassinari
|
|
220
|
+
- Fix format git diff regression (#41882) @oliviertassinari
|
|
221
|
+
- Fix 301 links @oliviertassinari
|
|
222
|
+
- [material-ui] Fix import statement in migration guide (@sai6855) (#41864) @github-actions[bot]
|
|
223
|
+
- [material-ui] Update Figma plugin name (@danilo-leal) (#42057) @github-actions[bot]
|
|
224
|
+
- [material-ui] Fix minor spelling error in the "About the lab" page (@ryanhartwig) (#42075) @github-actions[bot]
|
|
225
|
+
- [material-ui] Add missing backticks to HTML tag in the installation page (@Miguelrom) (#42009) @github-actions[bot]
|
|
226
|
+
- [material-ui] Add Connect-related content (@danilo-leal) (#41924) @DiegoAndai
|
|
227
|
+
- [material-ui] Fix Material 3 message typo (@aarongarciah) (#41822) @github-actions[bot]
|
|
228
|
+
- [material-ui] Remove Data Grid v7 beta callout (@cherniavskii) (#41842) @github-actions[bot]
|
|
229
|
+
- [material-ui][templates] Fix input props attributes in Landing Page template (@5-tom) (#42034) @github-actions[bot]
|
|
230
|
+
- [system] Update typo on the sx prop page (@bricker) (#42078) @github-actions[bot]
|
|
231
|
+
|
|
232
|
+
### Core
|
|
233
|
+
|
|
234
|
+
- [blog] Add post to introduce the Connect plugin (@danilo-leal) (#41929) @DiegoAndai
|
|
235
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41742) @aarongarciah
|
|
236
|
+
- [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
|
|
237
|
+
- [docs-infra] Use edge function for card generation (#41188) @alexfauquette
|
|
238
|
+
- [docs-infra] Fix drawer performances (#41807) (#41820) @alexfauquette
|
|
239
|
+
- [docs-infra] Fix analytics about inline ads (#41474) @alexfauquette
|
|
240
|
+
- [website] Sync career roles (@oliviertassinari) (#42059) @github-actions[bot]
|
|
241
|
+
- [website] Add content about the Sync plugin in the Material UI page (@danilo-leal) (#42074) @github-actions[bot]
|
|
242
|
+
- [website] Add Nadja on the about page (#42054) @mnajdova
|
|
243
|
+
- [website] Close the `Design Engineer - X` role (#42014) @DanailH
|
|
244
|
+
- [website] Remove customer support agent role from website (@rluzists1) (#41996) @github-actions[bot]
|
|
245
|
+
- [website] Add Jose to About Us (#41759) @JCQuintas
|
|
246
|
+
|
|
247
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @DanailH, @DiegoAndai, @github-actions[bot], @JCQuintas, @mnajdova, @oliviertassinari
|
|
248
|
+
|
|
3
249
|
## v5.15.15
|
|
4
250
|
|
|
5
251
|
<!-- generated comparing v5.15.14..master -->
|
|
@@ -7962,7 +8208,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
7962
8208
|
|
|
7963
8209
|
<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>
|
|
7964
8210
|
|
|
7965
|
-
You can follow our progress with unstyled components at https://github.com/mui/
|
|
8211
|
+
You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
|
|
7966
8212
|
|
|
7967
8213
|
- 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
|
|
7968
8214
|
|
|
@@ -8229,7 +8475,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
8229
8475
|
|
|
8230
8476
|
- ​<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
|
|
8231
8477
|
|
|
8232
|
-
Based on the results of the [poll](https://
|
|
8478
|
+
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.
|
|
8233
8479
|
|
|
8234
8480
|
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.
|
|
8235
8481
|
|
|
@@ -9432,7 +9678,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
9432
9678
|
|
|
9433
9679
|
<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>
|
|
9434
9680
|
|
|
9435
|
-
You can follow our progress at https://github.com/mui/
|
|
9681
|
+
You can follow our progress at https://github.com/mui/base-ui/issues/10.
|
|
9436
9682
|
|
|
9437
9683
|
- 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
|
|
9438
9684
|
You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
|
|
@@ -12646,7 +12892,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
12646
12892
|
```
|
|
12647
12893
|
|
|
12648
12894
|
- [Autocomplete] Remove `debug` in favor of `open` and dev tools (#23377) @eps1lon
|
|
12649
|
-
There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://
|
|
12895
|
+
There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://x.com/sulco/status/1305841873945272321), or React devtools props.
|
|
12650
12896
|
|
|
12651
12897
|
#### Changes
|
|
12652
12898
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function DefaultPropsProvider({ value, children, }: React.PropsWithChildren<{
|
|
3
|
+
value: Record<string, any> | undefined;
|
|
4
|
+
}>): React.JSX.Element;
|
|
5
|
+
declare namespace DefaultPropsProvider {
|
|
6
|
+
var propTypes: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function useDefaultProps<Props>({ props, name }: {
|
|
9
|
+
props: Props;
|
|
10
|
+
name: string;
|
|
11
|
+
}): Props;
|
|
12
|
+
export default DefaultPropsProvider;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
exports.useDefaultProps = useDefaultProps;
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
const PropsContext = /*#__PURE__*/React.createContext(undefined);
|
|
17
|
+
function DefaultPropsProvider({
|
|
18
|
+
value,
|
|
19
|
+
children
|
|
20
|
+
}) {
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PropsContext.Provider, {
|
|
22
|
+
value: value,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
process.env.NODE_ENV !== "production" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {
|
|
27
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
28
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
29
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
30
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
31
|
+
/**
|
|
32
|
+
* @ignore
|
|
33
|
+
*/
|
|
34
|
+
children: _propTypes.default.node,
|
|
35
|
+
/**
|
|
36
|
+
* @ignore
|
|
37
|
+
*/
|
|
38
|
+
value: _propTypes.default.object
|
|
39
|
+
} : void 0;
|
|
40
|
+
function getThemeProps(params) {
|
|
41
|
+
const {
|
|
42
|
+
theme,
|
|
43
|
+
name,
|
|
44
|
+
props
|
|
45
|
+
} = params;
|
|
46
|
+
if (!theme || !theme.components || !theme.components[name]) {
|
|
47
|
+
return props;
|
|
48
|
+
}
|
|
49
|
+
const config = theme.components[name];
|
|
50
|
+
if (config.defaultProps) {
|
|
51
|
+
// compatible with v5 signature
|
|
52
|
+
return (0, _resolveProps.default)(config.defaultProps, props);
|
|
53
|
+
}
|
|
54
|
+
if (!config.styleOverrides && !config.variants) {
|
|
55
|
+
// v6 signature, no property 'defaultProps'
|
|
56
|
+
return (0, _resolveProps.default)(config, props);
|
|
57
|
+
}
|
|
58
|
+
return props;
|
|
59
|
+
}
|
|
60
|
+
function useDefaultProps({
|
|
61
|
+
props,
|
|
62
|
+
name
|
|
63
|
+
}) {
|
|
64
|
+
const ctx = React.useContext(PropsContext);
|
|
65
|
+
return getThemeProps({
|
|
66
|
+
props,
|
|
67
|
+
name,
|
|
68
|
+
theme: {
|
|
69
|
+
components: ctx
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
var _default = exports.default = DefaultPropsProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, useDefaultProps } from './DefaultPropsProvider';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _DefaultPropsProvider.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "useDefaultProps", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _DefaultPropsProvider.useDefaultProps;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _DefaultPropsProvider = _interopRequireWildcard(require("./DefaultPropsProvider"));
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Split this component for RSC import
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export declare const DEFAULT_MODE_STORAGE_KEY = "mode";
|
|
6
|
+
export declare const DEFAULT_COLOR_SCHEME_STORAGE_KEY = "color-scheme";
|
|
7
|
+
export declare const DEFAULT_ATTRIBUTE = "data-color-scheme";
|
|
8
|
+
export interface InitColorSchemeScriptProps {
|
|
9
|
+
/**
|
|
10
|
+
* The mode to be used for the first visit
|
|
11
|
+
* @default 'light'
|
|
12
|
+
*/
|
|
13
|
+
defaultMode?: 'light' | 'dark' | 'system';
|
|
14
|
+
/**
|
|
15
|
+
* The default color scheme to be used on the light mode
|
|
16
|
+
* @default 'light'
|
|
17
|
+
*/
|
|
18
|
+
defaultLightColorScheme?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The default color scheme to be used on the dark mode
|
|
21
|
+
* * @default 'dark'
|
|
22
|
+
*/
|
|
23
|
+
defaultDarkColorScheme?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The node (provided as string) used to attach the color-scheme attribute
|
|
26
|
+
* @default 'document.documentElement'
|
|
27
|
+
*/
|
|
28
|
+
colorSchemeNode?: string;
|
|
29
|
+
/**
|
|
30
|
+
* localStorage key used to store `mode`
|
|
31
|
+
* @default 'mode'
|
|
32
|
+
*/
|
|
33
|
+
modeStorageKey?: string;
|
|
34
|
+
/**
|
|
35
|
+
* localStorage key used to store `colorScheme`
|
|
36
|
+
* @default 'color-scheme'
|
|
37
|
+
*/
|
|
38
|
+
colorSchemeStorageKey?: string;
|
|
39
|
+
/**
|
|
40
|
+
* DOM attribute for applying color scheme
|
|
41
|
+
* @default 'data-color-scheme'
|
|
42
|
+
*/
|
|
43
|
+
attribute?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Nonce string to pass to the inline script for CSP headers
|
|
46
|
+
*/
|
|
47
|
+
nonce?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
export default function InitColorSchemeScript(options?: InitColorSchemeScriptProps): React.JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_MODE_STORAGE_KEY = exports.DEFAULT_COLOR_SCHEME_STORAGE_KEY = exports.DEFAULT_ATTRIBUTE = void 0;
|
|
7
|
+
exports.default = InitColorSchemeScript;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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; }
|
|
12
|
+
/**
|
|
13
|
+
* Split this component for RSC import
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const DEFAULT_MODE_STORAGE_KEY = exports.DEFAULT_MODE_STORAGE_KEY = 'mode';
|
|
17
|
+
const DEFAULT_COLOR_SCHEME_STORAGE_KEY = exports.DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
|
|
18
|
+
const DEFAULT_ATTRIBUTE = exports.DEFAULT_ATTRIBUTE = 'data-color-scheme';
|
|
19
|
+
function InitColorSchemeScript(options) {
|
|
20
|
+
const {
|
|
21
|
+
defaultMode = 'light',
|
|
22
|
+
defaultLightColorScheme = 'light',
|
|
23
|
+
defaultDarkColorScheme = 'dark',
|
|
24
|
+
modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
25
|
+
colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
|
|
26
|
+
attribute = DEFAULT_ATTRIBUTE,
|
|
27
|
+
colorSchemeNode = 'document.documentElement',
|
|
28
|
+
nonce
|
|
29
|
+
} = options || {};
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("script", {
|
|
31
|
+
suppressHydrationWarning: true,
|
|
32
|
+
nonce: typeof window === 'undefined' ? nonce : ''
|
|
33
|
+
// eslint-disable-next-line react/no-danger
|
|
34
|
+
,
|
|
35
|
+
dangerouslySetInnerHTML: {
|
|
36
|
+
__html: `(function() {
|
|
37
|
+
try {
|
|
38
|
+
var mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
|
|
39
|
+
var colorScheme = '';
|
|
40
|
+
if (mode === 'system') {
|
|
41
|
+
// handle system mode
|
|
42
|
+
var mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
43
|
+
if (mql.matches) {
|
|
44
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
45
|
+
} else {
|
|
46
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (mode === 'light') {
|
|
50
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
51
|
+
}
|
|
52
|
+
if (mode === 'dark') {
|
|
53
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
54
|
+
}
|
|
55
|
+
if (colorScheme) {
|
|
56
|
+
${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
|
|
57
|
+
}
|
|
58
|
+
} catch(e){}})();`
|
|
59
|
+
}
|
|
60
|
+
}, "mui-color-scheme-init");
|
|
61
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _InitColorSchemeScript.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _InitColorSchemeScript = _interopRequireDefault(require("./InitColorSchemeScript"));
|
|
@@ -14,6 +14,7 @@ var _exactProp = _interopRequireDefault(require("@mui/utils/exactProp"));
|
|
|
14
14
|
var _styledEngine = require("@mui/styled-engine");
|
|
15
15
|
var _useThemeWithoutDefault = _interopRequireDefault(require("../useThemeWithoutDefault"));
|
|
16
16
|
var _RtlProvider = _interopRequireDefault(require("../RtlProvider"));
|
|
17
|
+
var _DefaultPropsProvider = _interopRequireDefault(require("../DefaultPropsProvider"));
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
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); }
|
|
19
20
|
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; }
|
|
@@ -68,7 +69,10 @@ function ThemeProvider(props) {
|
|
|
68
69
|
value: engineTheme,
|
|
69
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RtlProvider.default, {
|
|
70
71
|
value: rtlValue,
|
|
71
|
-
children:
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultPropsProvider.default, {
|
|
73
|
+
value: engineTheme == null ? void 0 : engineTheme.components,
|
|
74
|
+
children: children
|
|
75
|
+
})
|
|
72
76
|
})
|
|
73
77
|
})
|
|
74
78
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import InitColorSchemeScript from '../InitColorSchemeScript';
|
|
3
3
|
import { Mode, Result } from './useCurrentColorScheme';
|
|
4
4
|
|
|
5
5
|
export interface ColorSchemeContextValue<SupportedColorScheme extends string>
|
|
@@ -92,7 +92,7 @@ export interface CreateCssVarsProviderResult<
|
|
|
92
92
|
>,
|
|
93
93
|
) => React.ReactElement;
|
|
94
94
|
useColorScheme: () => ColorSchemeContextValue<ColorScheme>;
|
|
95
|
-
getInitColorSchemeScript: typeof
|
|
95
|
+
getInitColorSchemeScript: typeof InitColorSchemeScript;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
export default function createCssVarsProvider<
|
|
@@ -15,7 +15,7 @@ var _deepmerge = _interopRequireDefault(require("@mui/utils/deepmerge"));
|
|
|
15
15
|
var _styledEngine = require("@mui/styled-engine");
|
|
16
16
|
var _privateTheming = require("@mui/private-theming");
|
|
17
17
|
var _ThemeProvider = _interopRequireDefault(require("../ThemeProvider"));
|
|
18
|
-
var
|
|
18
|
+
var _InitColorSchemeScript = _interopRequireWildcard(require("../InitColorSchemeScript/InitColorSchemeScript"));
|
|
19
19
|
var _useCurrentColorScheme = _interopRequireDefault(require("./useCurrentColorScheme"));
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const _excluded = ["colorSchemes", "components", "generateCssVars", "cssVarPrefix"];
|
|
@@ -32,9 +32,9 @@ function createCssVarsProvider(options) {
|
|
|
32
32
|
* It should also ideally have a vars object created using `prepareCssVars`.
|
|
33
33
|
*/
|
|
34
34
|
theme: defaultTheme = {},
|
|
35
|
-
attribute: defaultAttribute =
|
|
36
|
-
modeStorageKey: defaultModeStorageKey =
|
|
37
|
-
colorSchemeStorageKey: defaultColorSchemeStorageKey =
|
|
35
|
+
attribute: defaultAttribute = _InitColorSchemeScript.DEFAULT_ATTRIBUTE,
|
|
36
|
+
modeStorageKey: defaultModeStorageKey = _InitColorSchemeScript.DEFAULT_MODE_STORAGE_KEY,
|
|
37
|
+
colorSchemeStorageKey: defaultColorSchemeStorageKey = _InitColorSchemeScript.DEFAULT_COLOR_SCHEME_STORAGE_KEY,
|
|
38
38
|
defaultMode: designSystemMode = 'light',
|
|
39
39
|
defaultColorScheme: designSystemColorScheme,
|
|
40
40
|
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
@@ -339,7 +339,7 @@ function createCssVarsProvider(options) {
|
|
|
339
339
|
} : void 0;
|
|
340
340
|
const defaultLightColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.light;
|
|
341
341
|
const defaultDarkColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.dark;
|
|
342
|
-
const getInitColorSchemeScript = params => (0,
|
|
342
|
+
const getInitColorSchemeScript = params => (0, _InitColorSchemeScript.default)((0, _extends2.default)({
|
|
343
343
|
attribute: defaultAttribute,
|
|
344
344
|
colorSchemeStorageKey: defaultColorSchemeStorageKey,
|
|
345
345
|
defaultMode: designSystemMode,
|
|
@@ -1,42 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare const DEFAULT_ATTRIBUTE = "data-color-scheme";
|
|
5
|
-
export interface GetInitColorSchemeScriptOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The mode to be used for the first visit
|
|
8
|
-
* @default 'light'
|
|
9
|
-
*/
|
|
10
|
-
defaultMode?: 'light' | 'dark' | 'system';
|
|
11
|
-
/**
|
|
12
|
-
* The default color scheme to be used on the light mode
|
|
13
|
-
* @default 'light'
|
|
14
|
-
*/
|
|
15
|
-
defaultLightColorScheme?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The default color scheme to be used on the dark mode
|
|
18
|
-
* * @default 'dark'
|
|
19
|
-
*/
|
|
20
|
-
defaultDarkColorScheme?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The node (provided as string) used to attach the color-scheme attribute
|
|
23
|
-
* @default 'document.documentElement'
|
|
24
|
-
*/
|
|
25
|
-
colorSchemeNode?: string;
|
|
26
|
-
/**
|
|
27
|
-
* localStorage key used to store `mode`
|
|
28
|
-
* @default 'mode'
|
|
29
|
-
*/
|
|
30
|
-
modeStorageKey?: string;
|
|
31
|
-
/**
|
|
32
|
-
* localStorage key used to store `colorScheme`
|
|
33
|
-
* @default 'color-scheme'
|
|
34
|
-
*/
|
|
35
|
-
colorSchemeStorageKey?: string;
|
|
36
|
-
/**
|
|
37
|
-
* DOM attribute for applying color scheme
|
|
38
|
-
* @default 'data-color-scheme'
|
|
39
|
-
*/
|
|
40
|
-
attribute?: string;
|
|
41
|
-
}
|
|
42
|
-
export default function getInitColorSchemeScript(options?: GetInitColorSchemeScriptOptions): React.JSX.Element;
|
|
2
|
+
import { InitColorSchemeScriptProps } from '../InitColorSchemeScript';
|
|
3
|
+
export default function getInitColorSchemeScript(params?: InitColorSchemeScriptProps): React.JSX.Element;
|