@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.
Files changed (92) hide show
  1. package/Box/Box.js +1 -0
  2. package/Box/index.js +1 -0
  3. package/CHANGELOG.md +164 -7
  4. package/Container/Container.js +1 -0
  5. package/Container/index.js +1 -0
  6. package/GlobalStyles/GlobalStyles.js +1 -0
  7. package/GlobalStyles/index.js +1 -0
  8. package/README.md +1 -1
  9. package/Stack/Stack.js +1 -0
  10. package/Stack/index.js +1 -0
  11. package/ThemeProvider/ThemeProvider.js +1 -0
  12. package/ThemeProvider/index.js +1 -0
  13. package/Unstable_Grid/Grid.js +1 -0
  14. package/Unstable_Grid/index.js +1 -0
  15. package/createBox.js +1 -0
  16. package/createStyled.js +2 -2
  17. package/cssVars/index.js +1 -0
  18. package/cssVars/useCurrentColorScheme.js +1 -0
  19. package/esm/Box/Box.js +2 -0
  20. package/esm/Box/index.js +2 -0
  21. package/esm/Container/Container.js +2 -0
  22. package/esm/Container/index.js +2 -0
  23. package/esm/GlobalStyles/GlobalStyles.js +2 -0
  24. package/esm/GlobalStyles/index.js +2 -0
  25. package/esm/Stack/Stack.js +2 -0
  26. package/esm/Stack/index.js +2 -0
  27. package/esm/ThemeProvider/ThemeProvider.js +2 -0
  28. package/esm/ThemeProvider/index.js +2 -0
  29. package/esm/Unstable_Grid/Grid.js +2 -0
  30. package/esm/Unstable_Grid/index.js +2 -0
  31. package/esm/createBox.js +2 -0
  32. package/esm/createStyled.js +2 -2
  33. package/esm/cssVars/index.js +2 -0
  34. package/esm/cssVars/useCurrentColorScheme.js +2 -0
  35. package/esm/index.js +2 -0
  36. package/esm/sizing.js +2 -2
  37. package/esm/styleFunctionSx/extendSxProp.js +1 -1
  38. package/esm/useTheme.js +2 -0
  39. package/esm/useThemeProps/index.js +2 -0
  40. package/esm/useThemeProps/useThemeProps.js +2 -0
  41. package/esm/useThemeWithoutDefault.js +2 -0
  42. package/index.js +2 -1
  43. package/legacy/Box/Box.js +2 -0
  44. package/legacy/Box/index.js +2 -0
  45. package/legacy/Container/Container.js +2 -0
  46. package/legacy/Container/index.js +2 -0
  47. package/legacy/GlobalStyles/GlobalStyles.js +2 -0
  48. package/legacy/GlobalStyles/index.js +2 -0
  49. package/legacy/Stack/Stack.js +2 -0
  50. package/legacy/Stack/index.js +2 -0
  51. package/legacy/ThemeProvider/ThemeProvider.js +2 -0
  52. package/legacy/ThemeProvider/index.js +2 -0
  53. package/legacy/Unstable_Grid/Grid.js +2 -0
  54. package/legacy/Unstable_Grid/index.js +2 -0
  55. package/legacy/createBox.js +2 -0
  56. package/legacy/createStyled.js +2 -2
  57. package/legacy/cssVars/index.js +2 -0
  58. package/legacy/cssVars/useCurrentColorScheme.js +2 -0
  59. package/legacy/index.js +3 -1
  60. package/legacy/sizing.js +2 -2
  61. package/legacy/styleFunctionSx/extendSxProp.js +1 -1
  62. package/legacy/useTheme.js +2 -0
  63. package/legacy/useThemeProps/index.js +2 -0
  64. package/legacy/useThemeProps/useThemeProps.js +2 -0
  65. package/legacy/useThemeWithoutDefault.js +2 -0
  66. package/modern/Box/Box.js +2 -0
  67. package/modern/Box/index.js +2 -0
  68. package/modern/Container/Container.js +2 -0
  69. package/modern/Container/index.js +2 -0
  70. package/modern/GlobalStyles/GlobalStyles.js +2 -0
  71. package/modern/GlobalStyles/index.js +2 -0
  72. package/modern/Stack/Stack.js +2 -0
  73. package/modern/Stack/index.js +2 -0
  74. package/modern/ThemeProvider/ThemeProvider.js +2 -0
  75. package/modern/ThemeProvider/index.js +2 -0
  76. package/modern/Unstable_Grid/Grid.js +2 -0
  77. package/modern/Unstable_Grid/index.js +2 -0
  78. package/modern/createBox.js +2 -0
  79. package/modern/cssVars/index.js +2 -0
  80. package/modern/cssVars/useCurrentColorScheme.js +2 -0
  81. package/modern/index.js +3 -1
  82. package/modern/useTheme.js +2 -0
  83. package/modern/useThemeProps/index.js +2 -0
  84. package/modern/useThemeProps/useThemeProps.js +2 -0
  85. package/modern/useThemeWithoutDefault.js +2 -0
  86. package/package.json +3 -3
  87. package/sizing.js +2 -2
  88. package/styleFunctionSx/extendSxProp.js +1 -1
  89. package/useTheme.js +1 -0
  90. package/useThemeProps/index.js +1 -0
  91. package/useThemeProps/useThemeProps.js +1 -0
  92. package/useThemeWithoutDefault.js +1 -0
package/Box/Box.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
package/Box/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
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
+ - &#8203;<!-- 14 -->[FormControlLabel] Fix misplaced asterisk when `labelPlacement` is provided (#37831) @ZeeshanTamboli
20
+ - &#8203;<!-- 11 -->[Slider][material] Fix type dependency on @types/prop-types (#37853) @Methuselah96
21
+ - &#8203;<!-- 10 -->[Menu] Add MuiMenuList to createTheme components key (#37956) @mj12albert
22
+ - &#8203;<!-- 09 -->[Modal] Remove deprecated `BackdropComponent` and `BackdropProps` from tests (#38018) @sai6855
23
+
24
+ ### `@mui/material-next@6.0.0-alpha.93`
25
+
26
+ - &#8203;<!-- 54 -->[Slider][material-next] Add use client directive to useSliderElementsOverlap (#37955) @mj12albert
27
+ - &#8203;<!-- 47 -->[Button][material-next] Fix some event handlers being ignored (#37647) @DiegoAndai
28
+
29
+ ### `@mui/base@5.0.0-beta.8`
30
+
31
+ - &#8203;<!-- 53 -->[Autocomplete] Make touch and click behavior on an option consistent (#37972) @divyammadhok
32
+
33
+ ### `@mui/joy@5.0.0-alpha.88`
34
+
35
+ - &#8203;<!-- 13 -->[Joy][Select] Fix type error caused by custom variant (#37996) @OmPr366
36
+ - &#8203;<!-- 12 -->[ToggleButton][Joy] Add `ToggleButton` component (#37716) @siriwatknp
37
+ - &#8203;<!-- 07 -->[Skeleton] Add Joy UI `Skeleton` component (#37893) @siriwatknp
38
+
39
+ ### `@mui/utils@5.14.1`
40
+
41
+ - &#8203;<!-- 06 -->[utils] Add function overload for `useEventCallback` (#37827) @cherniavskii
42
+
43
+ ### Docs
44
+
45
+ - &#8203;<!-- 52 -->[docs][base] Add Tailwind CSS & plain CSS demo on the form control page (#37914) @mnajdova
46
+ - &#8203;<!-- 51 -->[docs][base] Make Base UI Select demos denser (#37836) @zanivan
47
+ - &#8203;<!-- 38 -->[docs] Link Material UI from the landing page (#37971) @oliviertassinari
48
+ - &#8203;<!-- 37 -->[docs] Fix the empty /components page (#38010) @brijeshb42
49
+ - &#8203;<!-- 36 -->[docs] Checkout template follows user's color scheme preference (#37928) @OndrejHj04
50
+ - &#8203;<!-- 35 -->[docs] Disable ad for onboarding pages (#37998) @oliviertassinari
51
+ - &#8203;<!-- 34 -->[docs] Fix broken link to Base UI Next.js App Router (#37973) @oliviertassinari
52
+ - &#8203;<!-- 33 -->[docs] Fix typo in next-js-app-router.md (#37974) @ericbrian
53
+ - &#8203;<!-- 32 -->[docs] Add pnpm commands to Material UI Installation page (#36650) @officialrajdeepsingh
54
+ - &#8203;<!-- 31 -->[docs] Link charts in the roadmap (#37944) @oliviertassinari
55
+ - &#8203;<!-- 30 -->[docs] Improve changelog @oliviertassinari
56
+ - &#8203;<!-- 29 -->[docs] Improve the Select docs (#37279) @michaldudak
57
+ - &#8203;<!-- 16 -->[docs][menu] Add Tailwind CSS & plain CSS demo on the Menu page (#37856) @mnajdova
58
+ - &#8203;<!-- 15 -->[example] Update EmotionCacheProvider to work with GlobalStyles (#37962) @siriwatknp
59
+
60
+ ### Core
61
+
62
+ - &#8203;<!-- 50 -->[blog] Add blog post about support for Next.js App Router (#37929) @samuelsycamore
63
+ - &#8203;<!-- 49 -->[blog] Blog MUI X pro statement removed (#38015) @prakhargupta1
64
+ - &#8203;<!-- 48 -->[blog] Add Toolpad beta announcement blog (#37799) @prakhargupta1
65
+ - &#8203;<!-- 46 -->[core] Increase space available for sidenav @oliviertassinari
66
+ - &#8203;<!-- 45 -->[core] Adds `component` prop to `OverrideProps` type (#35924) @sai6855
67
+ - &#8203;<!-- 44 -->[core] Fix rsc build step in CI (#38019) @mj12albert
68
+ - &#8203;<!-- 43 -->[core] Remove nx dependency (#37964) @Janpot
69
+ - &#8203;<!-- 42 -->[core] Lock `@types/node` to v18 (#37965) @ZeeshanTamboli
70
+ - &#8203;<!-- 41 -->[core] Update priority support issue template and prompt (#37824) @DanailH
71
+ - &#8203;<!-- 40 -->[core] Remove warnings in docs:api (#37858) @alexfauquette
72
+ - &#8203;<!-- 39 -->[core] Make rimraf work after a major update (#37930) @michaldudak
73
+ - &#8203;<!-- 28 -->[docs-infra] Change the Diamond Sponsor block positioning on the side nav (#37933) @danilo-leal
74
+ - &#8203;<!-- 27 -->[docs-infra] Support backticks in the codeblocks (#37950) @cherniavskii
75
+ - &#8203;<!-- 26 -->[docs-infra] Improve performance hideToolbar: true (#37969) @oliviertassinari
76
+ - &#8203;<!-- 25 -->[docs-infra] Fix button label on mobile (#37997) @oliviertassinari
77
+ - &#8203;<!-- 24 -->[docs-infra] Square drawer corners (#37970) @oliviertassinari
78
+ - &#8203;<!-- 23 -->[docs-infra] Improve tab contrast in codeblock (#38000) @oliviertassinari
79
+ - &#8203;<!-- 22 -->[docs-infra] Fix API generation for Base UI (#37941) @oliviertassinari
80
+ - &#8203;<!-- 21 -->[docs-infra] Fix layout shift on xGrid (#37954) @oliviertassinari
81
+ - &#8203;<!-- 20 -->[docs-infra] Update installation commands to use the new tabs code component (#37927) @danilo-leal
82
+ - &#8203;<!-- 19 -->[docs-infra] Improve disableToc={true} support (#37931) @oliviertassinari
83
+ - &#8203;<!-- 18 -->[docs-infra] Remove icons and tweak the design of the side nav (#37860) @danilo-leal
84
+ - &#8203;<!-- 17 -->[docs-infra] Fix TypeScrit error in demo export (#37830) @oliviertassinari
85
+ - &#8203;<!-- 08 -->[notifications] Add notification for first Charts release (#37679) @joserodolfofreitas
86
+ - &#8203;<!-- 05 -->[website] Add Base UI marketing page (#36622) @siriwatknp
87
+ - &#8203;<!-- 04 -->[website] Update MUI X landing page (#37966) @cherniavskii
88
+ - &#8203;<!-- 03 -->[website] Fix a11y issues (#37999) @oliviertassinari
89
+ - &#8203;<!-- 02 -->[website] Make the Core page refer to group of products (#37608) @danilo-leal
90
+ - &#8203;<!-- 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
- ```sh
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
- ```sh
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
- ```sh
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
- ```sh
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 quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
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
- ```sh
11133
+ ```bash
10977
11134
  theme.spacing(2) => 16
10978
11135
  ```
10979
11136
 
10980
11137
  After:
10981
11138
 
10982
- ```sh
11139
+ ```bash
10983
11140
  theme.spacing(2) => '16px'
10984
11141
  ```
10985
11142
 
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
package/README.md CHANGED
@@ -8,7 +8,7 @@ Install the package in your project directory with:
8
8
 
9
9
  <!-- #default-branch-switch -->
10
10
 
11
- ```sh
11
+ ```bash
12
12
  // with npm
13
13
  npm install @mui/system @emotion/react @emotion/styled
14
14
 
package/Stack/Stack.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
package/Stack/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
package/createBox.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
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, _theme$components$nam;
52
+ var _theme$components;
53
53
  const {
54
54
  ownerState = {}
55
55
  } = props;
56
56
  const variantsStyles = [];
57
- const themeVariants = theme == null ? void 0 : (_theme$components = theme.components) == null ? void 0 : (_theme$components$nam = _theme$components[name]) == null ? void 0 : _theme$components$nam.variants;
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
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
package/esm/Box/Box.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createBox from '../createBox';
3
5
  const Box = createBox();
package/esm/Box/index.js CHANGED
@@ -1 +1,3 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Box';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createContainer from './createContainer';
3
5
 
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Container';
2
4
  export { default as containerClasses } from './containerClasses';
3
5
  export * from './containerClasses';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';
@@ -1,2 +1,4 @@
1
+ 'use client';
2
+
1
3
  export { default } from './GlobalStyles';
2
4
  export * from './GlobalStyles';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createStack from './createStack';
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Stack';
2
4
  export { default as createStack } from './createStack';
3
5
  export * from './StackProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import * as React from 'react';
3
5
  import PropTypes from 'prop-types';
@@ -1 +1,3 @@
1
+ 'use client';
2
+
1
3
  export { default } from './ThemeProvider';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createGrid from './createGrid';
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Grid';
2
4
  export { default as createGrid } from './createGrid';
3
5
  export * from './GridProps';
package/esm/createBox.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
5
  const _excluded = ["className", "component"];
@@ -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, _theme$components$nam;
41
+ var _theme$components;
42
42
  const {
43
43
  ownerState = {}
44
44
  } = props;
45
45
  const variantsStyles = [];
46
- const themeVariants = theme == null ? void 0 : (_theme$components = theme.components) == null ? void 0 : (_theme$components$nam = _theme$components[name]) == null ? void 0 : _theme$components$nam.variants;
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;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './createCssVarsProvider';
2
4
  export { default as getInitColorSchemeScript } from './getInitColorSchemeScript';
3
5
  export { default as prepareCssVars } from './prepareCssVars';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import * as React from 'react';
3
5
  import { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from './getInitColorSchemeScript';
package/esm/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
2
4
  export { css, keyframes, StyledEngineProvider } from '@mui/styled-engine';
3
5
  export { default as GlobalStyles } from './GlobalStyles';
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, _props$theme$breakpoi, _props$theme$breakpoi2;
15
- const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || breakpointsValues[propValue];
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 ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
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
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import createTheme from './createTheme';
2
4
  import useThemeWithoutDefault from './useThemeWithoutDefault';
3
5
  export const systemDefaultTheme = createTheme();
@@ -1,2 +1,4 @@
1
+ 'use client';
2
+
1
3
  export { default } from './useThemeProps';
2
4
  export { default as getThemeProps } from './getThemeProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import getThemeProps from './getThemeProps';
2
4
  import useTheme from '../useTheme';
3
5
  export default function useThemeProps({
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import { ThemeContext } from '@mui/styled-engine';
3
5
  function isObjectEmpty(obj) {
package/index.js CHANGED
@@ -1,11 +1,12 @@
1
1
  /**
2
- * @mui/system v5.13.7
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
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createBox from '../createBox';
3
5
  var Box = createBox();
@@ -1 +1,3 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Box';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createContainer from './createContainer';
3
5
 
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Container';
2
4
  export { default as containerClasses } from './containerClasses';
3
5
  export * from './containerClasses';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';
@@ -1,2 +1,4 @@
1
+ 'use client';
2
+
1
3
  export { default } from './GlobalStyles';
2
4
  export * from './GlobalStyles';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createStack from './createStack';
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Stack';
2
4
  export { default as createStack } from './createStack';
3
5
  export * from './StackProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
4
  import _extends from "@babel/runtime/helpers/esm/extends";
3
5
  import * as React from 'react';
@@ -1 +1,3 @@
1
+ 'use client';
2
+
1
3
  export { default } from './ThemeProvider';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createGrid from './createGrid';
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Grid';
2
4
  export { default as createGrid } from './createGrid';
3
5
  export * from './GridProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
5
  import * as React from 'react';
@@ -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, _theme$components$nam;
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 ? void 0 : (_theme$components = theme.components) == null ? void 0 : (_theme$components$nam = _theme$components[name]) == null ? void 0 : _theme$components$nam.variants;
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;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './createCssVarsProvider';
2
4
  export { default as getInitColorSchemeScript } from './getInitColorSchemeScript';
3
5
  export { default as prepareCssVars } from './prepareCssVars';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import * as React from 'react';
3
5
  import { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from './getInitColorSchemeScript';
package/legacy/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  /**
2
- * @mui/system v5.13.7
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, _props$theme$breakpoi, _props$theme$breakpoi2;
15
- var breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || breakpointsValues[propValue];
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 ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
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];
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import createTheme from './createTheme';
2
4
  import useThemeWithoutDefault from './useThemeWithoutDefault';
3
5
  export var systemDefaultTheme = createTheme();
@@ -1,2 +1,4 @@
1
+ 'use client';
2
+
1
3
  export { default } from './useThemeProps';
2
4
  export { default as getThemeProps } from './getThemeProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import getThemeProps from './getThemeProps';
2
4
  import useTheme from '../useTheme';
3
5
  export default function useThemeProps(_ref) {
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import { ThemeContext } from '@mui/styled-engine';
3
5
  function isObjectEmpty(obj) {
package/modern/Box/Box.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createBox from '../createBox';
3
5
  const Box = createBox();
@@ -1 +1,3 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Box';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createContainer from './createContainer';
3
5
 
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Container';
2
4
  export { default as containerClasses } from './containerClasses';
3
5
  export * from './containerClasses';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';
@@ -1,2 +1,4 @@
1
+ 'use client';
2
+
1
3
  export { default } from './GlobalStyles';
2
4
  export * from './GlobalStyles';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createStack from './createStack';
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Stack';
2
4
  export { default as createStack } from './createStack';
3
5
  export * from './StackProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import * as React from 'react';
3
5
  import PropTypes from 'prop-types';
@@ -1 +1,3 @@
1
+ 'use client';
2
+
1
3
  export { default } from './ThemeProvider';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import createGrid from './createGrid';
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './Grid';
2
4
  export { default as createGrid } from './createGrid';
3
5
  export * from './GridProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
5
  const _excluded = ["className", "component"];
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { default } from './createCssVarsProvider';
2
4
  export { default as getInitColorSchemeScript } from './getInitColorSchemeScript';
3
5
  export { default as prepareCssVars } from './prepareCssVars';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import _extends from "@babel/runtime/helpers/esm/extends";
2
4
  import * as React from 'react';
3
5
  import { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from './getInitColorSchemeScript';
package/modern/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  /**
2
- * @mui/system v5.13.7
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';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import createTheme from './createTheme';
2
4
  import useThemeWithoutDefault from './useThemeWithoutDefault';
3
5
  export const systemDefaultTheme = createTheme();
@@ -1,2 +1,4 @@
1
+ 'use client';
2
+
1
3
  export { default } from './useThemeProps';
2
4
  export { default as getThemeProps } from './getThemeProps';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import getThemeProps from './getThemeProps';
2
4
  import useTheme from '../useTheme';
3
5
  export default function useThemeProps({
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import { ThemeContext } from '@mui/styled-engine';
3
5
  function isObjectEmpty(obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "5.13.7",
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.5",
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.13.7",
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, _props$theme$breakpoi, _props$theme$breakpoi2;
25
- const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || _breakpoints.values[propValue];
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 ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : _defaultSxConfig.default;
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
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true