@mui/system 5.13.7 → 5.14.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/Box/Box.js +1 -0
- package/Box/index.js +1 -0
- package/CHANGELOG.md +164 -7
- package/Container/Container.js +1 -0
- package/Container/index.js +1 -0
- package/GlobalStyles/GlobalStyles.js +1 -0
- package/GlobalStyles/index.js +1 -0
- package/README.md +1 -1
- package/Stack/Stack.js +1 -0
- package/Stack/index.js +1 -0
- package/ThemeProvider/ThemeProvider.js +1 -0
- package/ThemeProvider/index.js +1 -0
- package/Unstable_Grid/Grid.js +1 -0
- package/Unstable_Grid/index.js +1 -0
- package/createBox.js +1 -0
- package/createStyled.js +2 -2
- package/cssVars/index.js +1 -0
- package/cssVars/useCurrentColorScheme.js +1 -0
- package/esm/Box/Box.js +2 -0
- package/esm/Box/index.js +2 -0
- package/esm/Container/Container.js +2 -0
- package/esm/Container/index.js +2 -0
- package/esm/GlobalStyles/GlobalStyles.js +2 -0
- package/esm/GlobalStyles/index.js +2 -0
- package/esm/Stack/Stack.js +2 -0
- package/esm/Stack/index.js +2 -0
- package/esm/ThemeProvider/ThemeProvider.js +2 -0
- package/esm/ThemeProvider/index.js +2 -0
- package/esm/Unstable_Grid/Grid.js +2 -0
- package/esm/Unstable_Grid/index.js +2 -0
- package/esm/createBox.js +2 -0
- package/esm/createStyled.js +2 -2
- package/esm/cssVars/index.js +2 -0
- package/esm/cssVars/useCurrentColorScheme.js +2 -0
- package/esm/index.js +2 -0
- package/esm/sizing.js +2 -2
- package/esm/styleFunctionSx/extendSxProp.js +1 -1
- package/esm/useTheme.js +2 -0
- package/esm/useThemeProps/index.js +2 -0
- package/esm/useThemeProps/useThemeProps.js +2 -0
- package/esm/useThemeWithoutDefault.js +2 -0
- package/index.js +2 -1
- package/legacy/Box/Box.js +2 -0
- package/legacy/Box/index.js +2 -0
- package/legacy/Container/Container.js +2 -0
- package/legacy/Container/index.js +2 -0
- package/legacy/GlobalStyles/GlobalStyles.js +2 -0
- package/legacy/GlobalStyles/index.js +2 -0
- package/legacy/Stack/Stack.js +2 -0
- package/legacy/Stack/index.js +2 -0
- package/legacy/ThemeProvider/ThemeProvider.js +2 -0
- package/legacy/ThemeProvider/index.js +2 -0
- package/legacy/Unstable_Grid/Grid.js +2 -0
- package/legacy/Unstable_Grid/index.js +2 -0
- package/legacy/createBox.js +2 -0
- package/legacy/createStyled.js +2 -2
- package/legacy/cssVars/index.js +2 -0
- package/legacy/cssVars/useCurrentColorScheme.js +2 -0
- package/legacy/index.js +3 -1
- package/legacy/sizing.js +2 -2
- package/legacy/styleFunctionSx/extendSxProp.js +1 -1
- package/legacy/useTheme.js +2 -0
- package/legacy/useThemeProps/index.js +2 -0
- package/legacy/useThemeProps/useThemeProps.js +2 -0
- package/legacy/useThemeWithoutDefault.js +2 -0
- package/modern/Box/Box.js +2 -0
- package/modern/Box/index.js +2 -0
- package/modern/Container/Container.js +2 -0
- package/modern/Container/index.js +2 -0
- package/modern/GlobalStyles/GlobalStyles.js +2 -0
- package/modern/GlobalStyles/index.js +2 -0
- package/modern/Stack/Stack.js +2 -0
- package/modern/Stack/index.js +2 -0
- package/modern/ThemeProvider/ThemeProvider.js +2 -0
- package/modern/ThemeProvider/index.js +2 -0
- package/modern/Unstable_Grid/Grid.js +2 -0
- package/modern/Unstable_Grid/index.js +2 -0
- package/modern/createBox.js +2 -0
- package/modern/cssVars/index.js +2 -0
- package/modern/cssVars/useCurrentColorScheme.js +2 -0
- package/modern/index.js +3 -1
- package/modern/useTheme.js +2 -0
- package/modern/useThemeProps/index.js +2 -0
- package/modern/useThemeProps/useThemeProps.js +2 -0
- package/modern/useThemeWithoutDefault.js +2 -0
- package/package.json +3 -3
- package/sizing.js +2 -2
- package/styleFunctionSx/extendSxProp.js +1 -1
- package/useTheme.js +1 -0
- package/useThemeProps/index.js +1 -0
- package/useThemeProps/useThemeProps.js +1 -0
- package/useThemeWithoutDefault.js +1 -0
package/Box/Box.js
CHANGED
package/Box/index.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,162 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.14.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.0..master -->
|
|
6
|
+
|
|
7
|
+
_Jul 19, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 💫 Introducing some new components for Joy UI:
|
|
12
|
+
- [Skeleton](https://mui.com/joy-ui/react-skeleton/) component (#37893) @siriwatknp
|
|
13
|
+
- [ToggleButton](https://mui.com/joy-ui/react-toggle-button-group/) (#37716) @siriwatknp
|
|
14
|
+
- 🎉 Base UI has its own [landing page](https://www.mui.com/base-ui)!
|
|
15
|
+
- 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
16
|
+
|
|
17
|
+
### `@mui/material@5.14.1`
|
|
18
|
+
|
|
19
|
+
- ​<!-- 14 -->[FormControlLabel] Fix misplaced asterisk when `labelPlacement` is provided (#37831) @ZeeshanTamboli
|
|
20
|
+
- ​<!-- 11 -->[Slider][material] Fix type dependency on @types/prop-types (#37853) @Methuselah96
|
|
21
|
+
- ​<!-- 10 -->[Menu] Add MuiMenuList to createTheme components key (#37956) @mj12albert
|
|
22
|
+
- ​<!-- 09 -->[Modal] Remove deprecated `BackdropComponent` and `BackdropProps` from tests (#38018) @sai6855
|
|
23
|
+
|
|
24
|
+
### `@mui/material-next@6.0.0-alpha.93`
|
|
25
|
+
|
|
26
|
+
- ​<!-- 54 -->[Slider][material-next] Add use client directive to useSliderElementsOverlap (#37955) @mj12albert
|
|
27
|
+
- ​<!-- 47 -->[Button][material-next] Fix some event handlers being ignored (#37647) @DiegoAndai
|
|
28
|
+
|
|
29
|
+
### `@mui/base@5.0.0-beta.8`
|
|
30
|
+
|
|
31
|
+
- ​<!-- 53 -->[Autocomplete] Make touch and click behavior on an option consistent (#37972) @divyammadhok
|
|
32
|
+
|
|
33
|
+
### `@mui/joy@5.0.0-alpha.88`
|
|
34
|
+
|
|
35
|
+
- ​<!-- 13 -->[Joy][Select] Fix type error caused by custom variant (#37996) @OmPr366
|
|
36
|
+
- ​<!-- 12 -->[ToggleButton][Joy] Add `ToggleButton` component (#37716) @siriwatknp
|
|
37
|
+
- ​<!-- 07 -->[Skeleton] Add Joy UI `Skeleton` component (#37893) @siriwatknp
|
|
38
|
+
|
|
39
|
+
### `@mui/utils@5.14.1`
|
|
40
|
+
|
|
41
|
+
- ​<!-- 06 -->[utils] Add function overload for `useEventCallback` (#37827) @cherniavskii
|
|
42
|
+
|
|
43
|
+
### Docs
|
|
44
|
+
|
|
45
|
+
- ​<!-- 52 -->[docs][base] Add Tailwind CSS & plain CSS demo on the form control page (#37914) @mnajdova
|
|
46
|
+
- ​<!-- 51 -->[docs][base] Make Base UI Select demos denser (#37836) @zanivan
|
|
47
|
+
- ​<!-- 38 -->[docs] Link Material UI from the landing page (#37971) @oliviertassinari
|
|
48
|
+
- ​<!-- 37 -->[docs] Fix the empty /components page (#38010) @brijeshb42
|
|
49
|
+
- ​<!-- 36 -->[docs] Checkout template follows user's color scheme preference (#37928) @OndrejHj04
|
|
50
|
+
- ​<!-- 35 -->[docs] Disable ad for onboarding pages (#37998) @oliviertassinari
|
|
51
|
+
- ​<!-- 34 -->[docs] Fix broken link to Base UI Next.js App Router (#37973) @oliviertassinari
|
|
52
|
+
- ​<!-- 33 -->[docs] Fix typo in next-js-app-router.md (#37974) @ericbrian
|
|
53
|
+
- ​<!-- 32 -->[docs] Add pnpm commands to Material UI Installation page (#36650) @officialrajdeepsingh
|
|
54
|
+
- ​<!-- 31 -->[docs] Link charts in the roadmap (#37944) @oliviertassinari
|
|
55
|
+
- ​<!-- 30 -->[docs] Improve changelog @oliviertassinari
|
|
56
|
+
- ​<!-- 29 -->[docs] Improve the Select docs (#37279) @michaldudak
|
|
57
|
+
- ​<!-- 16 -->[docs][menu] Add Tailwind CSS & plain CSS demo on the Menu page (#37856) @mnajdova
|
|
58
|
+
- ​<!-- 15 -->[example] Update EmotionCacheProvider to work with GlobalStyles (#37962) @siriwatknp
|
|
59
|
+
|
|
60
|
+
### Core
|
|
61
|
+
|
|
62
|
+
- ​<!-- 50 -->[blog] Add blog post about support for Next.js App Router (#37929) @samuelsycamore
|
|
63
|
+
- ​<!-- 49 -->[blog] Blog MUI X pro statement removed (#38015) @prakhargupta1
|
|
64
|
+
- ​<!-- 48 -->[blog] Add Toolpad beta announcement blog (#37799) @prakhargupta1
|
|
65
|
+
- ​<!-- 46 -->[core] Increase space available for sidenav @oliviertassinari
|
|
66
|
+
- ​<!-- 45 -->[core] Adds `component` prop to `OverrideProps` type (#35924) @sai6855
|
|
67
|
+
- ​<!-- 44 -->[core] Fix rsc build step in CI (#38019) @mj12albert
|
|
68
|
+
- ​<!-- 43 -->[core] Remove nx dependency (#37964) @Janpot
|
|
69
|
+
- ​<!-- 42 -->[core] Lock `@types/node` to v18 (#37965) @ZeeshanTamboli
|
|
70
|
+
- ​<!-- 41 -->[core] Update priority support issue template and prompt (#37824) @DanailH
|
|
71
|
+
- ​<!-- 40 -->[core] Remove warnings in docs:api (#37858) @alexfauquette
|
|
72
|
+
- ​<!-- 39 -->[core] Make rimraf work after a major update (#37930) @michaldudak
|
|
73
|
+
- ​<!-- 28 -->[docs-infra] Change the Diamond Sponsor block positioning on the side nav (#37933) @danilo-leal
|
|
74
|
+
- ​<!-- 27 -->[docs-infra] Support backticks in the codeblocks (#37950) @cherniavskii
|
|
75
|
+
- ​<!-- 26 -->[docs-infra] Improve performance hideToolbar: true (#37969) @oliviertassinari
|
|
76
|
+
- ​<!-- 25 -->[docs-infra] Fix button label on mobile (#37997) @oliviertassinari
|
|
77
|
+
- ​<!-- 24 -->[docs-infra] Square drawer corners (#37970) @oliviertassinari
|
|
78
|
+
- ​<!-- 23 -->[docs-infra] Improve tab contrast in codeblock (#38000) @oliviertassinari
|
|
79
|
+
- ​<!-- 22 -->[docs-infra] Fix API generation for Base UI (#37941) @oliviertassinari
|
|
80
|
+
- ​<!-- 21 -->[docs-infra] Fix layout shift on xGrid (#37954) @oliviertassinari
|
|
81
|
+
- ​<!-- 20 -->[docs-infra] Update installation commands to use the new tabs code component (#37927) @danilo-leal
|
|
82
|
+
- ​<!-- 19 -->[docs-infra] Improve disableToc={true} support (#37931) @oliviertassinari
|
|
83
|
+
- ​<!-- 18 -->[docs-infra] Remove icons and tweak the design of the side nav (#37860) @danilo-leal
|
|
84
|
+
- ​<!-- 17 -->[docs-infra] Fix TypeScrit error in demo export (#37830) @oliviertassinari
|
|
85
|
+
- ​<!-- 08 -->[notifications] Add notification for first Charts release (#37679) @joserodolfofreitas
|
|
86
|
+
- ​<!-- 05 -->[website] Add Base UI marketing page (#36622) @siriwatknp
|
|
87
|
+
- ​<!-- 04 -->[website] Update MUI X landing page (#37966) @cherniavskii
|
|
88
|
+
- ​<!-- 03 -->[website] Fix a11y issues (#37999) @oliviertassinari
|
|
89
|
+
- ​<!-- 02 -->[website] Make the Core page refer to group of products (#37608) @danilo-leal
|
|
90
|
+
- ​<!-- 01 -->[website] Add perpetual option to pricing page (#35504) @joserodolfofreitas
|
|
91
|
+
|
|
92
|
+
All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @cherniavskii, @DanailH, @danilo-leal, @DiegoAndai, @divyammadhok, @ericbrian, @Janpot, @joserodolfofreitas, @Methuselah96, @michaldudak, @mj12albert, @mnajdova, @officialrajdeepsingh, @oliviertassinari, @OmPr366, @OndrejHj04, @prakhargupta1, @sai6855, @samuelsycamore, @siriwatknp, @zanivan, @ZeeshanTamboli
|
|
93
|
+
|
|
94
|
+
## 5.14.0
|
|
95
|
+
|
|
96
|
+
<!-- generated comparing v5.13.7..master -->
|
|
97
|
+
|
|
98
|
+
_Jul 11, 2023_
|
|
99
|
+
|
|
100
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
101
|
+
|
|
102
|
+
- 💫 Material UI, Joy UI, and Base UI are compatible with [NextJS App Router](https://nextjs.org/docs/app) (#37656) @mj12albert
|
|
103
|
+
- 📚 Added new guides for integrating with Next.js 13 App Router (#37656) @mj12albert
|
|
104
|
+
- Ⓜ️ [Material UI guide](https://mui.com/material-ui/guides/next-js-app-router/)
|
|
105
|
+
- 🅙 [Joy UI guide](https://mui.com/joy-ui/guides/next-js-app-router/)
|
|
106
|
+
- 🅱️ [Base UI guide](https://mui.com/base-ui/guides/next-js-app-router/)
|
|
107
|
+
- 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
108
|
+
|
|
109
|
+
### `@mui/material@5.14.0`
|
|
110
|
+
|
|
111
|
+
- [Autocomplete] Enable global customization of different options (#36971) @nicolas-ot
|
|
112
|
+
|
|
113
|
+
### `@mui/material-next@6.0.0-alpha.92`
|
|
114
|
+
|
|
115
|
+
- [Slider][material-next] Slider restructure and style improvements (#37644) @DiegoAndai
|
|
116
|
+
|
|
117
|
+
### `@mui/joy@5.0.0-alpha.87`
|
|
118
|
+
|
|
119
|
+
- [ButtonGroup] Fix style for single Button (#37692) @MaybePixem
|
|
120
|
+
- Fix theme typography fallback value (#37845) @siriwatknp
|
|
121
|
+
|
|
122
|
+
### `@mui/icons-material@5.14.0`
|
|
123
|
+
|
|
124
|
+
- [icons-material] Rebuild icons with `"use client"` (#37894) @mj12albert
|
|
125
|
+
|
|
126
|
+
### Docs
|
|
127
|
+
|
|
128
|
+
- [docs] Polish Ukraine banner (#37905) @oliviertassinari
|
|
129
|
+
- [docs] Reduce Ukraine banner size (#34795) @oliviertassinari
|
|
130
|
+
- [docs] Add callouts about controlled vs uncontrolled components in Core docs (#37849) @samuelsycamore
|
|
131
|
+
- [docs] Add missing Portal elements to Tailwind CSS interoperability guide (#37807) @enrique-ramirez
|
|
132
|
+
- [docs] Small pickers migration improvement (#37815) @alexfauquette
|
|
133
|
+
- [docs] Fix pickers product name (#37825) @LukasTy
|
|
134
|
+
- [docs][Joy][Link] Set `variant` and `color` defaults for the playground (#37817) @Studio384
|
|
135
|
+
- [docs][Joy][Table] Add `undefined` as an option to `stripe` (#37816) @Studio384
|
|
136
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Snackbar page (#37812) @mnajdova
|
|
137
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on Badge page (#37768) @mnajdova
|
|
138
|
+
- [docs][base] Fix Nested modal demo positioning (#37506) @gitstart
|
|
139
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Switch page (#37728) @mnajdova
|
|
140
|
+
- [docs-infra] Remove code tags in ToC (#37834) @cherniavskii
|
|
141
|
+
- [docs-infra] Fixes in API pages generation (#37813) @mnajdova
|
|
142
|
+
- [docs-infra] Add test case when using sh (#37818) @oliviertassinari
|
|
143
|
+
- [docs-infra] Use icons instead of words for the code copy button (#37664) @danilo-leal
|
|
144
|
+
- [docs-infra] Fix code parser (#37828) @alexfauquette
|
|
145
|
+
- [docs-infra] Fix `marked` deprecation warning (#37769) @alexfauquette
|
|
146
|
+
- [docs-infra] Allows to use codeblock in the docs (#37643) @alexfauquette
|
|
147
|
+
- [docs-infra][joy] Change Joy UI's playground variant selector (#37821) @danilo-leal
|
|
148
|
+
|
|
149
|
+
### Core
|
|
150
|
+
|
|
151
|
+
- [core] Prepend "use-client" directive + add docs and examples for using MUI libraries with Next.js App Router (#37656) @mj12albert
|
|
152
|
+
- [core] Fix imports to React (#37863) @oliviertassinari
|
|
153
|
+
- [core] Disambiguate eslint plugin name @oliviertassinari
|
|
154
|
+
- [core] Sync the lint script name with the other repositories @oliviertassinari
|
|
155
|
+
- [core] Point to Crowdin directly @oliviertassinari
|
|
156
|
+
- [website] Sync career page (#37847) @oliviertassinari
|
|
157
|
+
|
|
158
|
+
All contributors of this release in alphabetical order: @alexfauquette, @cherniavskii, @danilo-leal, @DiegoAndai, @enrique-ramirez, @gitstart, @LukasTy, @MaybePixem, @mj12albert, @mnajdova, @nicolas-ot, @oliviertassinari, @samuelsycamore, @siriwatknp, @Studio384
|
|
159
|
+
|
|
3
160
|
## 5.13.7
|
|
4
161
|
|
|
5
162
|
<!-- generated comparing v5.13.6..master -->
|
|
@@ -521,7 +678,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
521
678
|
|
|
522
679
|
There is codemod that you can run in your project to do the transformation:
|
|
523
680
|
|
|
524
|
-
```
|
|
681
|
+
```bash
|
|
525
682
|
npx @mui/codemod v5.0.0/base-remove-component-prop <path>
|
|
526
683
|
```
|
|
527
684
|
|
|
@@ -620,7 +777,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
|
|
|
620
777
|
|
|
621
778
|
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/src/v5.0.0/base-remove-unstyled-suffix.js) to help with the migration:
|
|
622
779
|
|
|
623
|
-
```
|
|
780
|
+
```bash
|
|
624
781
|
npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
|
|
625
782
|
```
|
|
626
783
|
|
|
@@ -6265,7 +6422,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
6265
6422
|
|
|
6266
6423
|
replace `@material-ui/*` prefix with `@mui/*`:
|
|
6267
6424
|
|
|
6268
|
-
```
|
|
6425
|
+
```bash
|
|
6269
6426
|
@material-ui/system -> @mui/system
|
|
6270
6427
|
@material-ui/styles -> @mui/styles
|
|
6271
6428
|
@material-ui/lab -> @mui/lab
|
|
@@ -6278,7 +6435,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
6278
6435
|
|
|
6279
6436
|
except these 3 packages that are renamed.
|
|
6280
6437
|
|
|
6281
|
-
```
|
|
6438
|
+
```bash
|
|
6282
6439
|
@material-ui/core => @mui/material // represents Material Design components.
|
|
6283
6440
|
@material-ui/icons => @mui/icons-material // represents Material Design icons.
|
|
6284
6441
|
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
|
|
@@ -9940,7 +10097,7 @@ _Nov 14, 2020_
|
|
|
9940
10097
|
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
|
|
9941
10098
|
|
|
9942
10099
|
- 📅 Migrate the date picker to the lab (#22692) @dmtrKovalenko.
|
|
9943
|
-
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high
|
|
10100
|
+
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high-quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
|
|
9944
10101
|
|
|
9945
10102
|
While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
|
|
9946
10103
|
|
|
@@ -10973,13 +11130,13 @@ Here are some highlights ✨:
|
|
|
10973
11130
|
|
|
10974
11131
|
Before:
|
|
10975
11132
|
|
|
10976
|
-
```
|
|
11133
|
+
```bash
|
|
10977
11134
|
theme.spacing(2) => 16
|
|
10978
11135
|
```
|
|
10979
11136
|
|
|
10980
11137
|
After:
|
|
10981
11138
|
|
|
10982
|
-
```
|
|
11139
|
+
```bash
|
|
10983
11140
|
theme.spacing(2) => '16px'
|
|
10984
11141
|
```
|
|
10985
11142
|
|
package/Container/Container.js
CHANGED
package/Container/index.js
CHANGED
package/GlobalStyles/index.js
CHANGED
package/README.md
CHANGED
package/Stack/Stack.js
CHANGED
package/Stack/index.js
CHANGED
package/ThemeProvider/index.js
CHANGED
package/Unstable_Grid/Grid.js
CHANGED
package/Unstable_Grid/index.js
CHANGED
package/createBox.js
CHANGED
package/createStyled.js
CHANGED
|
@@ -49,12 +49,12 @@ const getVariantStyles = (name, theme) => {
|
|
|
49
49
|
return variantsStyles;
|
|
50
50
|
};
|
|
51
51
|
const variantsResolver = (props, styles, theme, name) => {
|
|
52
|
-
var _theme$components
|
|
52
|
+
var _theme$components;
|
|
53
53
|
const {
|
|
54
54
|
ownerState = {}
|
|
55
55
|
} = props;
|
|
56
56
|
const variantsStyles = [];
|
|
57
|
-
const themeVariants = theme == null
|
|
57
|
+
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
|
|
58
58
|
if (themeVariants) {
|
|
59
59
|
themeVariants.forEach(themeVariant => {
|
|
60
60
|
let isMatch = true;
|
package/cssVars/index.js
CHANGED
package/esm/Box/Box.js
CHANGED
package/esm/Box/index.js
CHANGED
package/esm/Container/index.js
CHANGED
package/esm/Stack/Stack.js
CHANGED
package/esm/Stack/index.js
CHANGED
package/esm/createBox.js
CHANGED
package/esm/createStyled.js
CHANGED
|
@@ -38,12 +38,12 @@ const getVariantStyles = (name, theme) => {
|
|
|
38
38
|
return variantsStyles;
|
|
39
39
|
};
|
|
40
40
|
const variantsResolver = (props, styles, theme, name) => {
|
|
41
|
-
var _theme$components
|
|
41
|
+
var _theme$components;
|
|
42
42
|
const {
|
|
43
43
|
ownerState = {}
|
|
44
44
|
} = props;
|
|
45
45
|
const variantsStyles = [];
|
|
46
|
-
const themeVariants = theme == null
|
|
46
|
+
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
|
|
47
47
|
if (themeVariants) {
|
|
48
48
|
themeVariants.forEach(themeVariant => {
|
|
49
49
|
let isMatch = true;
|
package/esm/cssVars/index.js
CHANGED
package/esm/index.js
CHANGED
package/esm/sizing.js
CHANGED
|
@@ -11,8 +11,8 @@ export const width = style({
|
|
|
11
11
|
export const maxWidth = props => {
|
|
12
12
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
13
13
|
const styleFromPropValue = propValue => {
|
|
14
|
-
var _props$theme
|
|
15
|
-
const breakpoint = ((_props$theme = props.theme) == null
|
|
14
|
+
var _props$theme;
|
|
15
|
+
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];
|
|
16
16
|
return {
|
|
17
17
|
maxWidth: breakpoint || sizingTransform(propValue)
|
|
18
18
|
};
|
|
@@ -9,7 +9,7 @@ const splitProps = props => {
|
|
|
9
9
|
systemProps: {},
|
|
10
10
|
otherProps: {}
|
|
11
11
|
};
|
|
12
|
-
const config = (_props$theme$unstable = props == null
|
|
12
|
+
const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
|
|
13
13
|
Object.keys(props).forEach(prop => {
|
|
14
14
|
if (config[prop]) {
|
|
15
15
|
result.systemProps[prop] = props[prop];
|
package/esm/useTheme.js
CHANGED
package/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/system v5.
|
|
2
|
+
* @mui/system v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
9
|
+
'use client';
|
|
9
10
|
|
|
10
11
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
12
|
Object.defineProperty(exports, "__esModule", {
|
package/legacy/Box/Box.js
CHANGED
package/legacy/Box/index.js
CHANGED
package/legacy/Stack/Stack.js
CHANGED
package/legacy/Stack/index.js
CHANGED
package/legacy/createBox.js
CHANGED
package/legacy/createStyled.js
CHANGED
|
@@ -39,11 +39,11 @@ var getVariantStyles = function getVariantStyles(name, theme) {
|
|
|
39
39
|
return variantsStyles;
|
|
40
40
|
};
|
|
41
41
|
var variantsResolver = function variantsResolver(props, styles, theme, name) {
|
|
42
|
-
var _theme$components
|
|
42
|
+
var _theme$components;
|
|
43
43
|
var _props$ownerState = props.ownerState,
|
|
44
44
|
ownerState = _props$ownerState === void 0 ? {} : _props$ownerState;
|
|
45
45
|
var variantsStyles = [];
|
|
46
|
-
var themeVariants = theme == null
|
|
46
|
+
var themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
|
|
47
47
|
if (themeVariants) {
|
|
48
48
|
themeVariants.forEach(function (themeVariant) {
|
|
49
49
|
var isMatch = true;
|
package/legacy/cssVars/index.js
CHANGED
package/legacy/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/system v5.
|
|
2
|
+
* @mui/system v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
+
'use client';
|
|
9
|
+
|
|
8
10
|
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
9
11
|
export { css, keyframes, StyledEngineProvider } from '@mui/styled-engine';
|
|
10
12
|
export { default as GlobalStyles } from './GlobalStyles';
|
package/legacy/sizing.js
CHANGED
|
@@ -11,8 +11,8 @@ export var width = style({
|
|
|
11
11
|
export var maxWidth = function maxWidth(props) {
|
|
12
12
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
13
13
|
var styleFromPropValue = function styleFromPropValue(propValue) {
|
|
14
|
-
var _props$theme
|
|
15
|
-
var breakpoint = ((_props$theme = props.theme) == null
|
|
14
|
+
var _props$theme;
|
|
15
|
+
var breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];
|
|
16
16
|
return {
|
|
17
17
|
maxWidth: breakpoint || sizingTransform(propValue)
|
|
18
18
|
};
|
|
@@ -9,7 +9,7 @@ var splitProps = function splitProps(props) {
|
|
|
9
9
|
systemProps: {},
|
|
10
10
|
otherProps: {}
|
|
11
11
|
};
|
|
12
|
-
var config = (_props$theme$unstable = props == null
|
|
12
|
+
var config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
|
|
13
13
|
Object.keys(props).forEach(function (prop) {
|
|
14
14
|
if (config[prop]) {
|
|
15
15
|
result.systemProps[prop] = props[prop];
|
package/legacy/useTheme.js
CHANGED
package/modern/Box/Box.js
CHANGED
package/modern/Box/index.js
CHANGED
package/modern/Stack/Stack.js
CHANGED
package/modern/Stack/index.js
CHANGED
package/modern/createBox.js
CHANGED
package/modern/cssVars/index.js
CHANGED
package/modern/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/system v5.
|
|
2
|
+
* @mui/system v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
+
'use client';
|
|
9
|
+
|
|
8
10
|
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
9
11
|
export { css, keyframes, StyledEngineProvider } from '@mui/styled-engine';
|
|
10
12
|
export { default as GlobalStyles } from './GlobalStyles';
|
package/modern/useTheme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "CSS utilities for rapidly laying out custom designs.",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@babel/runtime": "^7.22.
|
|
46
|
+
"@babel/runtime": "^7.22.6",
|
|
47
47
|
"@mui/private-theming": "^5.13.7",
|
|
48
48
|
"@mui/styled-engine": "^5.13.2",
|
|
49
49
|
"@mui/types": "^7.2.4",
|
|
50
|
-
"@mui/utils": "^5.
|
|
50
|
+
"@mui/utils": "^5.14.1",
|
|
51
51
|
"clsx": "^1.2.1",
|
|
52
52
|
"csstype": "^3.1.2",
|
|
53
53
|
"prop-types": "^15.8.1"
|
package/sizing.js
CHANGED
|
@@ -21,8 +21,8 @@ exports.width = width;
|
|
|
21
21
|
const maxWidth = props => {
|
|
22
22
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
23
23
|
const styleFromPropValue = propValue => {
|
|
24
|
-
var _props$theme
|
|
25
|
-
const breakpoint = ((_props$theme = props.theme) == null
|
|
24
|
+
var _props$theme;
|
|
25
|
+
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || _breakpoints.values[propValue];
|
|
26
26
|
return {
|
|
27
27
|
maxWidth: breakpoint || sizingTransform(propValue)
|
|
28
28
|
};
|
|
@@ -16,7 +16,7 @@ const splitProps = props => {
|
|
|
16
16
|
systemProps: {},
|
|
17
17
|
otherProps: {}
|
|
18
18
|
};
|
|
19
|
-
const config = (_props$theme$unstable = props == null
|
|
19
|
+
const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : _defaultSxConfig.default;
|
|
20
20
|
Object.keys(props).forEach(prop => {
|
|
21
21
|
if (config[prop]) {
|
|
22
22
|
result.systemProps[prop] = props[prop];
|
package/useTheme.js
CHANGED
package/useThemeProps/index.js
CHANGED