@mui/system 6.0.0-alpha.0 → 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 +243 -4
- package/Container/Container.d.ts +1 -1
- package/Stack/Stack.d.ts +1 -1
- package/Stack/createStack.d.ts +1 -1
- package/Unstable_Grid/Grid.d.ts +1 -1
- package/Unstable_Grid/createGrid.d.ts +1 -1
- package/breakpoints/breakpoints.js +19 -1
- package/createTheme/createSpacing.d.ts +2 -2
- package/createTheme/createSpacing.js +7 -8
- package/createTheme/createTheme.d.ts +2 -1
- package/createTheme/createTheme.js +2 -0
- package/cssContainerQueries/cssContainerQueries.d.ts +24 -0
- package/cssContainerQueries/cssContainerQueries.js +68 -0
- package/cssContainerQueries/index.d.ts +3 -0
- package/cssContainerQueries/index.js +2 -0
- package/cssContainerQueries/package.json +6 -0
- package/cssVars/createCssVarsProvider.js +3 -0
- package/cssVars/cssVarsParser.d.ts +1 -1
- package/cssVars/cssVarsParser.js +3 -2
- package/index.d.ts +2 -0
- package/index.js +2 -1
- package/modern/breakpoints/breakpoints.js +19 -1
- package/modern/createTheme/createSpacing.js +7 -8
- package/modern/createTheme/createTheme.js +2 -0
- package/modern/cssContainerQueries/cssContainerQueries.js +68 -0
- package/modern/cssContainerQueries/index.js +2 -0
- package/modern/cssVars/createCssVarsProvider.js +3 -0
- package/modern/cssVars/cssVarsParser.js +3 -2
- package/modern/index.js +2 -1
- package/modern/spacing/spacing.js +24 -21
- package/modern/styleFunctionSx/styleFunctionSx.js +2 -1
- package/node/breakpoints/breakpoints.js +19 -1
- package/node/createTheme/createSpacing.js +7 -8
- package/node/createTheme/createTheme.js +2 -0
- package/node/cssContainerQueries/cssContainerQueries.js +79 -0
- package/node/cssContainerQueries/index.js +32 -0
- package/node/cssVars/createCssVarsProvider.js +3 -0
- package/node/cssVars/cssVarsParser.js +3 -2
- package/node/index.js +9 -1
- package/node/spacing/spacing.js +24 -21
- package/node/styleFunctionSx/styleFunctionSx.js +2 -1
- package/package.json +5 -5
- package/spacing/spacing.js +24 -21
- package/styleFunctionSx/styleFunctionSx.js +2 -1
- package/legacy/Box/Box.js +0 -30
- package/legacy/Box/boxClasses.js +0 -3
- package/legacy/Box/index.js +0 -5
- package/legacy/Container/Container.js +0 -61
- package/legacy/Container/ContainerProps.js +0 -1
- package/legacy/Container/containerClasses.js +0 -7
- package/legacy/Container/createContainer.js +0 -140
- package/legacy/Container/index.js +0 -5
- package/legacy/GlobalStyles/GlobalStyles.js +0 -37
- package/legacy/GlobalStyles/index.js +0 -4
- package/legacy/RtlProvider/index.js +0 -22
- package/legacy/Stack/Stack.js +0 -62
- package/legacy/Stack/StackProps.js +0 -1
- package/legacy/Stack/createStack.js +0 -180
- package/legacy/Stack/index.js +0 -7
- package/legacy/Stack/stackClasses.js +0 -7
- package/legacy/ThemeProvider/ThemeProvider.js +0 -87
- package/legacy/ThemeProvider/index.js +0 -3
- package/legacy/Unstable_Grid/Grid.js +0 -177
- package/legacy/Unstable_Grid/GridProps.js +0 -1
- package/legacy/Unstable_Grid/createGrid.js +0 -184
- package/legacy/Unstable_Grid/gridClasses.js +0 -28
- package/legacy/Unstable_Grid/gridGenerator.js +0 -216
- package/legacy/Unstable_Grid/index.js +0 -8
- package/legacy/Unstable_Grid/traverseBreakpoints.js +0 -48
- package/legacy/borders/borders.js +0 -51
- package/legacy/borders/index.js +0 -4
- package/legacy/breakpoints/breakpoints.js +0 -162
- package/legacy/breakpoints/index.js +0 -4
- package/legacy/colorManipulator/colorManipulator.js +0 -356
- package/legacy/colorManipulator/index.js +0 -3
- package/legacy/compose/compose.js +0 -32
- package/legacy/compose/index.js +0 -3
- package/legacy/createBox/createBox.js +0 -38
- package/legacy/createBox/index.js +0 -3
- package/legacy/createStyled/createStyled.js +0 -250
- package/legacy/createStyled/index.js +0 -4
- package/legacy/createTheme/applyStyles.js +0 -73
- package/legacy/createTheme/createBreakpoints.js +0 -83
- package/legacy/createTheme/createSpacing.js +0 -36
- package/legacy/createTheme/createTheme.js +0 -49
- package/legacy/createTheme/index.js +0 -3
- package/legacy/createTheme/shape.js +0 -4
- package/legacy/cssGrid/cssGrid.js +0 -91
- package/legacy/cssGrid/index.js +0 -4
- package/legacy/cssVars/createCssVarsProvider.js +0 -335
- package/legacy/cssVars/createCssVarsTheme.js +0 -13
- package/legacy/cssVars/createGetCssVar.js +0 -30
- package/legacy/cssVars/cssVarsParser.js +0 -140
- package/legacy/cssVars/getInitColorSchemeScript.js +0 -28
- package/legacy/cssVars/index.js +0 -6
- package/legacy/cssVars/prepareCssVars.js +0 -92
- package/legacy/cssVars/useCurrentColorScheme.js +0 -237
- package/legacy/display/display.js +0 -29
- package/legacy/display/index.js +0 -4
- package/legacy/flexbox/flexbox.js +0 -43
- package/legacy/flexbox/index.js +0 -4
- package/legacy/getThemeValue/getThemeValue.js +0 -47
- package/legacy/getThemeValue/index.js +0 -4
- package/legacy/index.js +0 -72
- package/legacy/memoize/index.js +0 -3
- package/legacy/memoize/memoize.js +0 -9
- package/legacy/merge/index.js +0 -3
- package/legacy/merge/merge.js +0 -10
- package/legacy/palette/index.js +0 -4
- package/legacy/palette/palette.js +0 -26
- package/legacy/positions/index.js +0 -4
- package/legacy/positions/positions.js +0 -22
- package/legacy/propsToClassKey/index.js +0 -3
- package/legacy/propsToClassKey/propsToClassKey.js +0 -24
- package/legacy/responsivePropType/index.js +0 -3
- package/legacy/responsivePropType/responsivePropType.js +0 -3
- package/legacy/shadows/index.js +0 -3
- package/legacy/shadows/shadows.js +0 -6
- package/legacy/sizing/index.js +0 -4
- package/legacy/sizing/sizing.js +0 -65
- package/legacy/spacing/index.js +0 -4
- package/legacy/spacing/spacing.js +0 -158
- package/legacy/style/index.js +0 -4
- package/legacy/style/style.js +0 -73
- package/legacy/styleFunctionSx/defaultSxConfig.js +0 -293
- package/legacy/styleFunctionSx/extendSxProp.js +0 -45
- package/legacy/styleFunctionSx/index.js +0 -4
- package/legacy/styleFunctionSx/styleFunctionSx.js +0 -126
- package/legacy/styled/index.js +0 -3
- package/legacy/styled/styled.js +0 -3
- package/legacy/typography/index.js +0 -4
- package/legacy/typography/typography.js +0 -37
- package/legacy/useMediaQuery/index.js +0 -2
- package/legacy/useMediaQuery/useMediaQuery.js +0 -145
- package/legacy/useTheme/index.js +0 -4
- package/legacy/useTheme/useTheme.js +0 -10
- package/legacy/useThemeProps/getThemeProps.js +0 -10
- package/legacy/useThemeProps/index.js +0 -4
- package/legacy/useThemeProps/useThemeProps.js +0 -20
- package/legacy/useThemeWithoutDefault/index.js +0 -3
- package/legacy/useThemeWithoutDefault/useThemeWithoutDefault.js +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,204 @@
|
|
|
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
|
+
- ​<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
|
|
88
|
+
- ​<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
|
|
89
|
+
|
|
90
|
+
### `@pigment-css/react@0.0.6`
|
|
91
|
+
|
|
92
|
+
- ​<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
|
|
93
|
+
|
|
94
|
+
### `@pigment-css/nextjs-plugin@0.0.6`
|
|
95
|
+
|
|
96
|
+
- ​<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
|
|
97
|
+
- ​<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
|
|
98
|
+
|
|
99
|
+
### Docs
|
|
100
|
+
|
|
101
|
+
- ​<!-- 11 -->[docs] Fix 301 links @oliviertassinari
|
|
102
|
+
- ​<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
|
|
103
|
+
- ​<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
|
|
104
|
+
- ​<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
|
|
105
|
+
- ​<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
|
|
106
|
+
|
|
107
|
+
### Core
|
|
108
|
+
|
|
109
|
+
- ​<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
|
|
110
|
+
- ​<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
|
|
111
|
+
- ​<!-- 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
|
+
|
|
3
202
|
## v6.0.0-alpha.0
|
|
4
203
|
|
|
5
204
|
<!-- generated comparing v5.15.14..next -->
|
|
@@ -79,6 +278,46 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
79
278
|
|
|
80
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
|
|
81
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
|
+
|
|
82
321
|
## v5.15.14
|
|
83
322
|
|
|
84
323
|
<!-- generated comparing v5.15.13..master -->
|
|
@@ -893,7 +1132,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
893
1132
|
- [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
|
|
894
1133
|
- [material-ui] Revise the Accordion page (#40284) @anle9650
|
|
895
1134
|
- [material-ui] Add docs for complementary Card components (#40346) @anle9650
|
|
896
|
-
- [material-ui] Add Material 3 components page (#40350) @DiegoAndai
|
|
1135
|
+
- [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
|
|
897
1136
|
- Fix strange italic style @oliviertassinari
|
|
898
1137
|
- Fix references to ESLint @oliviertassinari
|
|
899
1138
|
- Fix 301 redirections @oliviertassinari
|
|
@@ -8001,7 +8240,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
8001
8240
|
|
|
8002
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>
|
|
8003
8242
|
|
|
8004
|
-
You can follow our progress with unstyled components at https://github.com/mui/
|
|
8243
|
+
You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
|
|
8005
8244
|
|
|
8006
8245
|
- 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
|
|
8007
8246
|
|
|
@@ -9471,7 +9710,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
9471
9710
|
|
|
9472
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>
|
|
9473
9712
|
|
|
9474
|
-
You can follow our progress at https://github.com/mui/
|
|
9713
|
+
You can follow our progress at https://github.com/mui/base-ui/issues/10.
|
|
9475
9714
|
|
|
9476
9715
|
- 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
|
|
9477
9716
|
You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
|
|
@@ -13057,7 +13296,7 @@ Here are some highlights ✨:
|
|
|
13057
13296
|
|
|
13058
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"`
|
|
13059
13298
|
2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
|
|
13060
|
-
3. `legacy` (new) which is `stable` +
|
|
13299
|
+
3. `legacy` (new) which is `stable` + IE 11
|
|
13061
13300
|
4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
|
|
13062
13301
|
|
|
13063
13302
|
The change yields a 6% reduction in bundle size 📦 (Babel only).
|
package/Container/Container.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* - [Container API](https://mui.com/system/api/container/)
|
|
11
11
|
*/
|
|
12
|
-
declare const Container: import("@mui/types").OverridableComponent<import("
|
|
12
|
+
declare const Container: import("@mui/types").OverridableComponent<import("./ContainerProps").ContainerTypeMap<{}, "div">>;
|
|
13
13
|
export default Container;
|
package/Stack/Stack.d.ts
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
*
|
|
11
11
|
* - [Stack API](https://mui.com/system/api/stack/)
|
|
12
12
|
*/
|
|
13
|
-
declare const Stack: import("@mui/types").OverridableComponent<import("
|
|
13
|
+
declare const Stack: import("@mui/types").OverridableComponent<import("./StackProps").StackTypeMap<{}, "div">>;
|
|
14
14
|
export default Stack;
|
package/Stack/createStack.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface StyleFunctionProps {
|
|
|
10
10
|
};
|
|
11
11
|
ownerState: StackOwnerState;
|
|
12
12
|
}
|
|
13
|
-
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("
|
|
13
|
+
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
14
14
|
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
15
15
|
export declare const style: ({ ownerState, theme }: StyleFunctionProps) => any;
|
|
16
16
|
export default function createStack(options?: {
|
package/Unstable_Grid/Grid.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* - [Grid API](https://mui.com/system/api/grid/)
|
|
11
11
|
*/
|
|
12
|
-
declare const Grid: import("@mui/types").OverridableComponent<import("
|
|
12
|
+
declare const Grid: import("@mui/types").OverridableComponent<import("./GridProps").GridTypeMap<{}, "div">>;
|
|
13
13
|
export default Grid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableComponent } from '@mui/types';
|
|
3
3
|
import { GridTypeMap } from './GridProps';
|
|
4
|
-
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("
|
|
4
|
+
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
5
5
|
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
6
6
|
export default function createGrid(options?: {
|
|
7
7
|
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import deepmerge from '@mui/utils/deepmerge';
|
|
4
4
|
import merge from '../merge';
|
|
5
|
+
import { isCqShorthand, getContainerQuery } from '../cssContainerQueries';
|
|
5
6
|
|
|
6
7
|
// The breakpoint **start** at this value.
|
|
7
8
|
// For instance with the first breakpoint xs: [xs, sm[.
|
|
@@ -22,6 +23,17 @@ const defaultBreakpoints = {
|
|
|
22
23
|
keys: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
23
24
|
up: key => `@media (min-width:${values[key]}px)`
|
|
24
25
|
};
|
|
26
|
+
const defaultContainerQueries = {
|
|
27
|
+
containerQueries: containerName => ({
|
|
28
|
+
up: key => {
|
|
29
|
+
let result = typeof key === 'number' ? key : values[key] || key;
|
|
30
|
+
if (typeof result === 'number') {
|
|
31
|
+
result = `${result}px`;
|
|
32
|
+
}
|
|
33
|
+
return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
};
|
|
25
37
|
export function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
26
38
|
const theme = props.theme || {};
|
|
27
39
|
if (Array.isArray(propValue)) {
|
|
@@ -34,8 +46,14 @@ export function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
34
46
|
if (typeof propValue === 'object') {
|
|
35
47
|
const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
|
|
36
48
|
return Object.keys(propValue).reduce((acc, breakpoint) => {
|
|
49
|
+
if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {
|
|
50
|
+
const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);
|
|
51
|
+
if (containerKey) {
|
|
52
|
+
acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
37
55
|
// key is breakpoint
|
|
38
|
-
if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {
|
|
56
|
+
else if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {
|
|
39
57
|
const mediaKey = themeBreakpoints.up(breakpoint);
|
|
40
58
|
acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
|
41
59
|
} else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
1
|
+
export type SpacingOptions = number | string | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
2
2
|
export type SpacingArgument = number | string;
|
|
3
3
|
export interface Spacing {
|
|
4
4
|
(): string;
|
|
@@ -7,4 +7,4 @@ export interface Spacing {
|
|
|
7
7
|
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
8
|
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
9
|
}
|
|
10
|
-
export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
|
|
10
|
+
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | (() => undefined) | ((abs: string | number) => number)): Spacing;
|
|
@@ -3,18 +3,17 @@ import { createUnarySpacing } from '../spacing';
|
|
|
3
3
|
// The different signatures imply different meaning for their arguments that can't be expressed structurally.
|
|
4
4
|
// We express the difference with variable names.
|
|
5
5
|
|
|
6
|
-
export default function createSpacing(spacingInput = 8
|
|
6
|
+
export default function createSpacing(spacingInput = 8,
|
|
7
|
+
// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.
|
|
8
|
+
// Smaller components, such as icons, can align to a 4dp grid.
|
|
9
|
+
// https://m2.material.io/design/layout/understanding-layout.html
|
|
10
|
+
transform = createUnarySpacing({
|
|
11
|
+
spacing: spacingInput
|
|
12
|
+
})) {
|
|
7
13
|
// Already transformed.
|
|
8
14
|
if (spacingInput.mui) {
|
|
9
15
|
return spacingInput;
|
|
10
16
|
}
|
|
11
|
-
|
|
12
|
-
// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.
|
|
13
|
-
// Smaller components, such as icons, can align to a 4dp grid.
|
|
14
|
-
// https://m2.material.io/design/layout/understanding-layout.html
|
|
15
|
-
const transform = createUnarySpacing({
|
|
16
|
-
spacing: spacingInput
|
|
17
|
-
});
|
|
18
17
|
const spacing = (...argsInput) => {
|
|
19
18
|
if (process.env.NODE_ENV !== 'production') {
|
|
20
19
|
if (!(argsInput.length <= 4)) {
|
|
@@ -4,6 +4,7 @@ import { Shape, ShapeOptions } from './shape';
|
|
|
4
4
|
import { Spacing, SpacingOptions } from './createSpacing';
|
|
5
5
|
import { SxConfig, SxProps } from '../styleFunctionSx';
|
|
6
6
|
import { ApplyStyles } from './applyStyles';
|
|
7
|
+
import { CssContainerQueries } from '../cssContainerQueries';
|
|
7
8
|
|
|
8
9
|
export { Breakpoint, BreakpointOverrides } from './createBreakpoints';
|
|
9
10
|
|
|
@@ -24,7 +25,7 @@ export interface ThemeOptions {
|
|
|
24
25
|
unstable_sxConfig?: SxConfig;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
export interface Theme {
|
|
28
|
+
export interface Theme extends CssContainerQueries {
|
|
28
29
|
shape: Shape;
|
|
29
30
|
breakpoints: Breakpoints;
|
|
30
31
|
direction: Direction;
|
|
@@ -3,6 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["breakpoints", "palette", "spacing", "shape"];
|
|
4
4
|
import deepmerge from '@mui/utils/deepmerge';
|
|
5
5
|
import createBreakpoints from './createBreakpoints';
|
|
6
|
+
import cssContainerQueries from '../cssContainerQueries';
|
|
6
7
|
import shape from './shape';
|
|
7
8
|
import createSpacing from './createSpacing';
|
|
8
9
|
import styleFunctionSx from '../styleFunctionSx/styleFunctionSx';
|
|
@@ -29,6 +30,7 @@ function createTheme(options = {}, ...args) {
|
|
|
29
30
|
spacing,
|
|
30
31
|
shape: _extends({}, shape, shapeInput)
|
|
31
32
|
}, other);
|
|
33
|
+
muiTheme = cssContainerQueries(muiTheme);
|
|
32
34
|
muiTheme.applyStyles = applyStyles;
|
|
33
35
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
34
36
|
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other?.unstable_sxConfig);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Breakpoints } from '../createTheme/createBreakpoints';
|
|
2
|
+
interface ContainerQueries {
|
|
3
|
+
up: Breakpoints['up'];
|
|
4
|
+
down: Breakpoints['down'];
|
|
5
|
+
between: Breakpoints['between'];
|
|
6
|
+
only: Breakpoints['only'];
|
|
7
|
+
not: Breakpoints['not'];
|
|
8
|
+
}
|
|
9
|
+
export interface CssContainerQueries {
|
|
10
|
+
containerQueries: ((name: string) => ContainerQueries) & ContainerQueries;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* For using in `sx` prop to sort the breakpoint from low to high.
|
|
14
|
+
* Note: this function does not work and will not support multiple units.
|
|
15
|
+
* e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }
|
|
16
|
+
* output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px
|
|
17
|
+
*/
|
|
18
|
+
export declare function sortContainerQueries(theme: Partial<CssContainerQueries>, css: Record<string, any>): Record<string, any>;
|
|
19
|
+
export declare function isCqShorthand(breakpointKeys: string[], value: string): boolean;
|
|
20
|
+
export declare function getContainerQuery(theme: CssContainerQueries, shorthand: string): string | null;
|
|
21
|
+
export default function cssContainerQueries<T extends {
|
|
22
|
+
breakpoints: Breakpoints;
|
|
23
|
+
}>(themeInput: T): T & CssContainerQueries;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
|
|
3
|
+
/**
|
|
4
|
+
* For using in `sx` prop to sort the breakpoint from low to high.
|
|
5
|
+
* Note: this function does not work and will not support multiple units.
|
|
6
|
+
* e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }
|
|
7
|
+
* output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px
|
|
8
|
+
*/
|
|
9
|
+
export function sortContainerQueries(theme, css) {
|
|
10
|
+
if (!theme.containerQueries) {
|
|
11
|
+
return css;
|
|
12
|
+
}
|
|
13
|
+
const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {
|
|
14
|
+
const regex = /min-width:\s*([0-9.]+)/;
|
|
15
|
+
return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
|
|
16
|
+
});
|
|
17
|
+
if (!sorted.length) {
|
|
18
|
+
return css;
|
|
19
|
+
}
|
|
20
|
+
return sorted.reduce((acc, key) => {
|
|
21
|
+
const value = css[key];
|
|
22
|
+
delete acc[key];
|
|
23
|
+
acc[key] = value;
|
|
24
|
+
return acc;
|
|
25
|
+
}, _extends({}, css));
|
|
26
|
+
}
|
|
27
|
+
export function isCqShorthand(breakpointKeys, value) {
|
|
28
|
+
return value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\d/));
|
|
29
|
+
}
|
|
30
|
+
export function getContainerQuery(theme, shorthand) {
|
|
31
|
+
const matches = shorthand.match(/^@([^/]+)\/?(.+)?$/);
|
|
32
|
+
if (!matches) {
|
|
33
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
34
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
35
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : _formatMuiErrorMessage(21, `(${shorthand})`));
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
const [, containerQuery, containerName] = matches;
|
|
40
|
+
const value = Number.isNaN(+containerQuery) ? containerQuery : +containerQuery;
|
|
41
|
+
return theme.containerQueries(containerName).up(value);
|
|
42
|
+
}
|
|
43
|
+
export default function cssContainerQueries(themeInput) {
|
|
44
|
+
const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');
|
|
45
|
+
function attachCq(node, name) {
|
|
46
|
+
node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);
|
|
47
|
+
node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);
|
|
48
|
+
node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);
|
|
49
|
+
node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);
|
|
50
|
+
node.not = (...args) => {
|
|
51
|
+
const result = toContainerQuery(themeInput.breakpoints.not(...args), name);
|
|
52
|
+
if (result.includes('not all and')) {
|
|
53
|
+
// `@container` does not work with `not all and`, so need to invert the logic
|
|
54
|
+
return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>');
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const node = {};
|
|
60
|
+
const containerQueries = name => {
|
|
61
|
+
attachCq(node, name);
|
|
62
|
+
return node;
|
|
63
|
+
};
|
|
64
|
+
attachCq(containerQueries);
|
|
65
|
+
return _extends({}, themeInput, {
|
|
66
|
+
containerQueries
|
|
67
|
+
});
|
|
68
|
+
}
|
|
@@ -132,6 +132,9 @@ export default function createCssVarsProvider(options) {
|
|
|
132
132
|
cssVarPrefix,
|
|
133
133
|
vars: themeVars
|
|
134
134
|
});
|
|
135
|
+
if (typeof theme.generateSpacing === 'function') {
|
|
136
|
+
theme.spacing = theme.generateSpacing();
|
|
137
|
+
}
|
|
135
138
|
|
|
136
139
|
// 4. Resolve the color scheme and merge it to the theme
|
|
137
140
|
Object.entries(colorSchemes).forEach(([key, scheme]) => {
|
|
@@ -30,7 +30,7 @@ export declare const assignNestedKeys: <T extends string | Record<string, any> |
|
|
|
30
30
|
* walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
|
|
31
31
|
* // ['palette', 'primary', 'main'] '#000000'
|
|
32
32
|
*/
|
|
33
|
-
export declare const walkObjectDeep: <Value, T = Record<string, any>>(obj: T, callback: (keys: Array<string>, value: Value, arrayKeys: Array<string>) => void, shouldSkipPaths?: (
|
|
33
|
+
export declare const walkObjectDeep: <Value, T = Record<string, any>>(obj: T, callback: (keys: Array<string>, value: Value, arrayKeys: Array<string>) => void, shouldSkipPaths?: (keys: Array<string>) => boolean) => void;
|
|
34
34
|
/**
|
|
35
35
|
* a function that parse theme and return { css, vars }
|
|
36
36
|
*
|
package/cssVars/cssVarsParser.js
CHANGED
|
@@ -111,11 +111,12 @@ export default function cssVarsParser(theme, options) {
|
|
|
111
111
|
if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
|
|
112
112
|
// only create css & var if `shouldSkipGeneratingVar` return false
|
|
113
113
|
const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
|
|
114
|
+
const resolvedValue = getCssValue(keys, value);
|
|
114
115
|
Object.assign(css, {
|
|
115
|
-
[cssVar]:
|
|
116
|
+
[cssVar]: resolvedValue
|
|
116
117
|
});
|
|
117
118
|
assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
|
|
118
|
-
assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${
|
|
119
|
+
assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
}, keys => keys[0] === 'vars' // skip 'vars/*' paths
|
package/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './borders';
|
|
|
5
5
|
|
|
6
6
|
export { default as breakpoints, handleBreakpoints, mergeBreakpointsInOrder } from './breakpoints';
|
|
7
7
|
|
|
8
|
+
export { default as cssContainerQueries, type CssContainerQueries } from './cssContainerQueries';
|
|
9
|
+
|
|
8
10
|
export { default as compose } from './compose';
|
|
9
11
|
|
|
10
12
|
export * from './display';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/system v6.0.0-alpha.
|
|
2
|
+
* @mui/system 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
|
|
@@ -11,6 +11,7 @@ export { default as GlobalStyles } from './GlobalStyles';
|
|
|
11
11
|
export { default as borders } from './borders';
|
|
12
12
|
export * from './borders';
|
|
13
13
|
export { default as breakpoints } from './breakpoints';
|
|
14
|
+
export { default as cssContainerQueries } from './cssContainerQueries';
|
|
14
15
|
export { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues as unstable_resolveBreakpointValues } from './breakpoints';
|
|
15
16
|
export { default as compose } from './compose';
|
|
16
17
|
export { default as display } from './display';
|