@mui/system 6.1.1 → 6.1.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.
Files changed (355) hide show
  1. package/Box/Box.js +17 -11
  2. package/Box/boxClasses.js +10 -3
  3. package/Box/index.js +35 -3
  4. package/Box/package.json +2 -2
  5. package/CHANGELOG.md +136 -0
  6. package/Container/Container.js +17 -12
  7. package/Container/ContainerProps.js +5 -1
  8. package/Container/containerClasses.js +14 -6
  9. package/Container/createContainer.js +36 -28
  10. package/Container/index.js +35 -3
  11. package/Container/package.json +2 -2
  12. package/DefaultPropsProvider/DefaultPropsProvider.js +19 -11
  13. package/DefaultPropsProvider/index.js +19 -1
  14. package/DefaultPropsProvider/package.json +2 -2
  15. package/GlobalStyles/GlobalStyles.js +18 -11
  16. package/GlobalStyles/index.js +25 -2
  17. package/GlobalStyles/package.json +2 -2
  18. package/Grid/Grid.js +38 -27
  19. package/Grid/GridProps.d.ts +16 -11
  20. package/Grid/GridProps.js +5 -1
  21. package/Grid/createGrid.js +46 -38
  22. package/Grid/gridClasses.js +14 -6
  23. package/Grid/gridGenerator.d.ts +3 -7
  24. package/Grid/gridGenerator.js +62 -69
  25. package/Grid/index.js +63 -6
  26. package/Grid/package.json +2 -2
  27. package/Grid/traverseBreakpoints.js +11 -3
  28. package/InitColorSchemeScript/InitColorSchemeScript.js +16 -7
  29. package/InitColorSchemeScript/index.js +13 -1
  30. package/InitColorSchemeScript/package.json +2 -2
  31. package/RtlProvider/index.js +17 -8
  32. package/RtlProvider/package.json +2 -2
  33. package/Stack/Stack.js +17 -11
  34. package/Stack/StackProps.js +5 -1
  35. package/Stack/createStack.js +46 -36
  36. package/Stack/index.js +55 -5
  37. package/Stack/package.json +2 -2
  38. package/Stack/stackClasses.js +14 -6
  39. package/ThemeProvider/ThemeProvider.js +27 -20
  40. package/ThemeProvider/index.js +13 -1
  41. package/ThemeProvider/package.json +2 -2
  42. package/borders/borders.js +36 -26
  43. package/borders/index.js +25 -2
  44. package/borders/package.json +2 -2
  45. package/breakpoints/breakpoints.js +34 -21
  46. package/breakpoints/index.js +25 -2
  47. package/breakpoints/package.json +2 -2
  48. package/colorManipulator/colorManipulator.js +50 -25
  49. package/colorManipulator/index.js +16 -1
  50. package/colorManipulator/package.json +2 -2
  51. package/compose/compose.js +10 -3
  52. package/compose/index.js +13 -1
  53. package/compose/package.json +2 -2
  54. package/createBox/createBox.js +20 -13
  55. package/createBox/index.js +13 -1
  56. package/createBox/package.json +2 -2
  57. package/createBreakpoints/createBreakpoints.js +9 -2
  58. package/createBreakpoints/index.js +13 -3
  59. package/createBreakpoints/package.json +2 -2
  60. package/createStyled/createStyled.js +161 -117
  61. package/createStyled/index.js +25 -2
  62. package/createStyled/package.json +2 -2
  63. package/createTheme/applyStyles.js +7 -1
  64. package/createTheme/createSpacing.js +8 -3
  65. package/createTheme/createTheme.d.ts +16 -10
  66. package/createTheme/createTheme.js +25 -18
  67. package/createTheme/index.js +27 -3
  68. package/createTheme/package.json +2 -2
  69. package/createTheme/shape.js +7 -1
  70. package/cssContainerQueries/cssContainerQueries.js +16 -7
  71. package/cssContainerQueries/index.js +31 -2
  72. package/cssContainerQueries/package.json +2 -2
  73. package/cssGrid/cssGrid.js +40 -31
  74. package/cssGrid/index.js +25 -2
  75. package/cssGrid/package.json +2 -2
  76. package/cssVars/createCssVarsProvider.d.ts +7 -1
  77. package/cssVars/createCssVarsProvider.js +46 -31
  78. package/cssVars/createCssVarsTheme.js +14 -7
  79. package/cssVars/createGetCssVar.js +7 -1
  80. package/cssVars/cssVarsParser.js +13 -3
  81. package/cssVars/getColorSchemeSelector.js +7 -1
  82. package/cssVars/index.js +41 -5
  83. package/cssVars/package.json +2 -2
  84. package/cssVars/prepareCssVars.js +16 -9
  85. package/cssVars/prepareTypographyVars.js +7 -1
  86. package/cssVars/useCurrentColorScheme.js +19 -11
  87. package/display/display.js +16 -9
  88. package/display/index.js +25 -2
  89. package/display/package.json +2 -2
  90. package/esm/Box/Box.js +30 -0
  91. package/esm/Box/boxClasses.js +3 -0
  92. package/esm/Box/index.js +3 -0
  93. package/{node → esm}/Container/Container.js +12 -17
  94. package/esm/Container/ContainerProps.js +1 -0
  95. package/esm/Container/containerClasses.js +7 -0
  96. package/{node → esm}/Container/createContainer.js +28 -36
  97. package/esm/Container/index.js +3 -0
  98. package/{node → esm}/DefaultPropsProvider/DefaultPropsProvider.js +11 -19
  99. package/esm/DefaultPropsProvider/index.js +1 -0
  100. package/esm/GlobalStyles/GlobalStyles.js +37 -0
  101. package/esm/GlobalStyles/index.js +2 -0
  102. package/esm/Grid/Grid.js +106 -0
  103. package/esm/Grid/GridProps.js +1 -0
  104. package/esm/Grid/createGrid.js +148 -0
  105. package/{node → esm}/Grid/gridClasses.js +6 -14
  106. package/esm/Grid/gridGenerator.js +193 -0
  107. package/esm/Grid/index.js +6 -0
  108. package/{node → esm}/Grid/traverseBreakpoints.js +3 -11
  109. package/{node → esm}/InitColorSchemeScript/InitColorSchemeScript.js +7 -16
  110. package/esm/InitColorSchemeScript/index.js +1 -0
  111. package/esm/RtlProvider/index.js +22 -0
  112. package/{node → esm}/Stack/Stack.js +11 -17
  113. package/esm/Stack/StackProps.js +1 -0
  114. package/{node → esm}/Stack/createStack.js +36 -46
  115. package/esm/Stack/index.js +5 -0
  116. package/esm/Stack/stackClasses.js +7 -0
  117. package/{node → esm}/ThemeProvider/ThemeProvider.js +20 -27
  118. package/esm/ThemeProvider/index.js +1 -0
  119. package/esm/borders/borders.js +49 -0
  120. package/esm/borders/index.js +2 -0
  121. package/{node → esm}/breakpoints/breakpoints.js +21 -34
  122. package/esm/breakpoints/index.js +2 -0
  123. package/{node → esm}/colorManipulator/colorManipulator.js +23 -51
  124. package/esm/colorManipulator/index.js +1 -0
  125. package/{node → esm}/compose/compose.js +3 -10
  126. package/esm/compose/index.js +1 -0
  127. package/esm/createBox/createBox.js +35 -0
  128. package/esm/createBox/index.js +1 -0
  129. package/{node → esm}/createBreakpoints/createBreakpoints.js +2 -9
  130. package/esm/createBreakpoints/index.js +3 -0
  131. package/esm/createStyled/createStyled.js +276 -0
  132. package/esm/createStyled/index.js +2 -0
  133. package/{node → esm}/createTheme/applyStyles.js +1 -7
  134. package/{node → esm}/createTheme/createSpacing.js +3 -8
  135. package/esm/createTheme/createTheme.js +49 -0
  136. package/esm/createTheme/index.js +3 -0
  137. package/esm/createTheme/shape.js +4 -0
  138. package/{node → esm}/cssContainerQueries/cssContainerQueries.js +6 -17
  139. package/esm/cssContainerQueries/index.js +2 -0
  140. package/esm/cssGrid/cssGrid.js +85 -0
  141. package/esm/cssGrid/index.js +2 -0
  142. package/{node → esm}/cssVars/createCssVarsProvider.js +37 -40
  143. package/esm/cssVars/createCssVarsTheme.js +21 -0
  144. package/{node → esm}/cssVars/createGetCssVar.js +1 -7
  145. package/{node → esm}/cssVars/cssVarsParser.js +3 -13
  146. package/{node → esm}/cssVars/getColorSchemeSelector.js +1 -7
  147. package/esm/cssVars/index.js +5 -0
  148. package/{node → esm}/cssVars/prepareCssVars.js +9 -16
  149. package/{node → esm}/cssVars/prepareTypographyVars.js +1 -7
  150. package/{node → esm}/cssVars/useCurrentColorScheme.js +11 -19
  151. package/esm/display/display.js +27 -0
  152. package/esm/display/index.js +2 -0
  153. package/esm/flexbox/flexbox.js +43 -0
  154. package/esm/flexbox/index.js +2 -0
  155. package/esm/getThemeValue/getThemeValue.js +51 -0
  156. package/esm/getThemeValue/index.js +2 -0
  157. package/esm/index.js +68 -0
  158. package/esm/memoTheme.js +28 -0
  159. package/esm/memoize/index.js +1 -0
  160. package/{node → esm}/memoize/memoize.js +1 -7
  161. package/esm/merge/index.js +1 -0
  162. package/esm/merge/merge.js +10 -0
  163. package/esm/palette/index.js +2 -0
  164. package/esm/palette/palette.js +26 -0
  165. package/esm/positions/index.js +2 -0
  166. package/esm/positions/positions.js +22 -0
  167. package/esm/preprocessStyles.js +25 -0
  168. package/esm/propsToClassKey/index.js +1 -0
  169. package/esm/propsToClassKey/propsToClassKey.js +25 -0
  170. package/esm/responsivePropType/index.js +1 -0
  171. package/esm/responsivePropType/responsivePropType.js +3 -0
  172. package/esm/shadows/index.js +1 -0
  173. package/esm/shadows/shadows.js +6 -0
  174. package/esm/sizing/index.js +2 -0
  175. package/esm/sizing/sizing.js +64 -0
  176. package/esm/spacing/index.js +2 -0
  177. package/{node → esm}/spacing/spacing.js +21 -36
  178. package/esm/style/index.js +2 -0
  179. package/{node → esm}/style/style.js +9 -18
  180. package/{node → esm}/styleFunctionSx/defaultSxConfig.js +65 -71
  181. package/{node → esm}/styleFunctionSx/extendSxProp.js +5 -12
  182. package/esm/styleFunctionSx/index.js +4 -0
  183. package/{node → esm}/styleFunctionSx/styleFunctionSx.js +19 -27
  184. package/esm/styled/index.js +1 -0
  185. package/esm/styled/styled.js +3 -0
  186. package/esm/typography/index.js +2 -0
  187. package/esm/typography/typography.js +37 -0
  188. package/esm/useMediaQuery/index.js +2 -0
  189. package/{node → esm}/useMediaQuery/useMediaQuery.js +8 -15
  190. package/esm/useTheme/index.js +2 -0
  191. package/esm/useTheme/useTheme.js +9 -0
  192. package/esm/useThemeProps/getThemeProps.js +12 -0
  193. package/esm/useThemeProps/index.js +2 -0
  194. package/esm/useThemeProps/useThemeProps.js +20 -0
  195. package/esm/useThemeWithoutDefault/index.js +1 -0
  196. package/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +12 -0
  197. package/esm/version/index.js +6 -0
  198. package/flexbox/flexbox.js +24 -17
  199. package/flexbox/index.js +25 -2
  200. package/flexbox/package.json +2 -2
  201. package/getThemeValue/getThemeValue.js +40 -33
  202. package/getThemeValue/index.js +25 -2
  203. package/getThemeValue/package.json +2 -2
  204. package/index.d.ts +2 -0
  205. package/index.js +606 -63
  206. package/memoTheme.d.ts +12 -0
  207. package/memoTheme.js +34 -0
  208. package/memoize/index.js +13 -1
  209. package/memoize/memoize.js +7 -1
  210. package/memoize/package.json +2 -2
  211. package/merge/index.js +13 -1
  212. package/merge/merge.js +10 -3
  213. package/merge/package.json +2 -2
  214. package/modern/Grid/Grid.js +16 -11
  215. package/modern/Grid/createGrid.js +1 -1
  216. package/modern/Grid/gridGenerator.js +28 -51
  217. package/modern/colorManipulator/colorManipulator.js +3 -4
  218. package/modern/createStyled/createStyled.js +144 -109
  219. package/modern/cssContainerQueries/cssContainerQueries.js +1 -2
  220. package/modern/cssVars/createCssVarsProvider.js +8 -2
  221. package/modern/cssVars/useCurrentColorScheme.js +4 -4
  222. package/modern/index.js +3 -2
  223. package/modern/memoTheme.js +28 -0
  224. package/modern/preprocessStyles.js +25 -0
  225. package/modern/version/index.js +2 -2
  226. package/package.json +7 -7
  227. package/palette/index.js +25 -2
  228. package/palette/package.json +2 -2
  229. package/palette/palette.js +16 -8
  230. package/positions/index.js +25 -2
  231. package/positions/package.json +2 -2
  232. package/positions/positions.js +16 -9
  233. package/preprocessStyles.d.ts +5 -0
  234. package/preprocessStyles.js +31 -0
  235. package/propsToClassKey/index.js +13 -1
  236. package/propsToClassKey/package.json +2 -2
  237. package/propsToClassKey/propsToClassKey.js +11 -4
  238. package/responsivePropType/index.js +13 -1
  239. package/responsivePropType/package.json +2 -2
  240. package/responsivePropType/responsivePropType.js +10 -3
  241. package/shadows/index.js +13 -1
  242. package/shadows/package.json +2 -2
  243. package/shadows/shadows.js +10 -3
  244. package/sizing/index.js +25 -2
  245. package/sizing/package.json +2 -2
  246. package/sizing/sizing.js +27 -17
  247. package/spacing/index.js +25 -2
  248. package/spacing/package.json +2 -2
  249. package/spacing/spacing.js +36 -21
  250. package/style/index.js +25 -2
  251. package/style/package.json +2 -2
  252. package/style/style.js +18 -9
  253. package/styleFunctionSx/defaultSxConfig.js +71 -65
  254. package/styleFunctionSx/extendSxProp.js +12 -5
  255. package/styleFunctionSx/index.js +34 -4
  256. package/styleFunctionSx/package.json +2 -2
  257. package/styleFunctionSx/styleFunctionSx.d.ts +1 -1
  258. package/styleFunctionSx/styleFunctionSx.js +27 -19
  259. package/styled/index.js +13 -1
  260. package/styled/package.json +2 -2
  261. package/styled/styled.js +10 -3
  262. package/typography/index.js +25 -2
  263. package/typography/package.json +2 -2
  264. package/typography/typography.js +20 -13
  265. package/useMediaQuery/index.js +25 -2
  266. package/useMediaQuery/package.json +2 -2
  267. package/useMediaQuery/useMediaQuery.js +15 -8
  268. package/useTheme/index.js +25 -2
  269. package/useTheme/package.json +2 -2
  270. package/useTheme/useTheme.js +11 -5
  271. package/useThemeProps/getThemeProps.js +10 -3
  272. package/useThemeProps/index.js +20 -2
  273. package/useThemeProps/package.json +2 -2
  274. package/useThemeProps/useThemeProps.js +11 -5
  275. package/useThemeWithoutDefault/index.js +13 -1
  276. package/useThemeWithoutDefault/package.json +2 -2
  277. package/useThemeWithoutDefault/useThemeWithoutDefault.js +10 -4
  278. package/version/index.js +12 -6
  279. package/version/package.json +2 -2
  280. package/node/Box/Box.js +0 -36
  281. package/node/Box/boxClasses.js +0 -10
  282. package/node/Box/index.js +0 -35
  283. package/node/Container/ContainerProps.js +0 -5
  284. package/node/Container/containerClasses.js +0 -15
  285. package/node/Container/index.js +0 -35
  286. package/node/DefaultPropsProvider/index.js +0 -19
  287. package/node/GlobalStyles/GlobalStyles.js +0 -44
  288. package/node/GlobalStyles/index.js +0 -25
  289. package/node/Grid/Grid.js +0 -107
  290. package/node/Grid/GridProps.js +0 -5
  291. package/node/Grid/createGrid.js +0 -156
  292. package/node/Grid/gridGenerator.js +0 -232
  293. package/node/Grid/index.js +0 -63
  294. package/node/InitColorSchemeScript/index.js +0 -13
  295. package/node/RtlProvider/index.js +0 -31
  296. package/node/Stack/StackProps.js +0 -5
  297. package/node/Stack/index.js +0 -55
  298. package/node/Stack/stackClasses.js +0 -15
  299. package/node/ThemeProvider/index.js +0 -13
  300. package/node/borders/borders.js +0 -59
  301. package/node/borders/index.js +0 -25
  302. package/node/breakpoints/index.js +0 -25
  303. package/node/colorManipulator/index.js +0 -16
  304. package/node/compose/index.js +0 -13
  305. package/node/createBox/createBox.js +0 -42
  306. package/node/createBox/index.js +0 -13
  307. package/node/createBreakpoints/index.js +0 -13
  308. package/node/createStyled/createStyled.js +0 -252
  309. package/node/createStyled/index.js +0 -25
  310. package/node/createTheme/createTheme.js +0 -56
  311. package/node/createTheme/index.js +0 -27
  312. package/node/createTheme/shape.js +0 -10
  313. package/node/cssContainerQueries/index.js +0 -31
  314. package/node/cssGrid/cssGrid.js +0 -94
  315. package/node/cssGrid/index.js +0 -25
  316. package/node/cssVars/createCssVarsTheme.js +0 -28
  317. package/node/cssVars/index.js +0 -41
  318. package/node/display/display.js +0 -34
  319. package/node/display/index.js +0 -25
  320. package/node/flexbox/flexbox.js +0 -50
  321. package/node/flexbox/index.js +0 -25
  322. package/node/getThemeValue/getThemeValue.js +0 -58
  323. package/node/getThemeValue/index.js +0 -25
  324. package/node/index.js +0 -609
  325. package/node/memoize/index.js +0 -13
  326. package/node/merge/index.js +0 -13
  327. package/node/merge/merge.js +0 -17
  328. package/node/palette/index.js +0 -25
  329. package/node/palette/palette.js +0 -34
  330. package/node/positions/index.js +0 -25
  331. package/node/positions/positions.js +0 -29
  332. package/node/propsToClassKey/index.js +0 -13
  333. package/node/propsToClassKey/propsToClassKey.js +0 -32
  334. package/node/responsivePropType/index.js +0 -13
  335. package/node/responsivePropType/responsivePropType.js +0 -10
  336. package/node/shadows/index.js +0 -13
  337. package/node/shadows/shadows.js +0 -13
  338. package/node/sizing/index.js +0 -25
  339. package/node/sizing/sizing.js +0 -74
  340. package/node/spacing/index.js +0 -25
  341. package/node/style/index.js +0 -25
  342. package/node/styleFunctionSx/index.js +0 -34
  343. package/node/styled/index.js +0 -13
  344. package/node/styled/styled.js +0 -10
  345. package/node/typography/index.js +0 -25
  346. package/node/typography/typography.js +0 -44
  347. package/node/useMediaQuery/index.js +0 -25
  348. package/node/useTheme/index.js +0 -25
  349. package/node/useTheme/useTheme.js +0 -15
  350. package/node/useThemeProps/getThemeProps.js +0 -19
  351. package/node/useThemeProps/index.js +0 -20
  352. package/node/useThemeProps/useThemeProps.js +0 -26
  353. package/node/useThemeWithoutDefault/index.js +0 -13
  354. package/node/useThemeWithoutDefault/useThemeWithoutDefault.js +0 -18
  355. package/node/version/index.js +0 -12
@@ -1,35 +1,29 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _spacing = require("../spacing");
8
- var _borders = require("../borders");
9
- var _cssGrid = require("../cssGrid");
10
- var _palette = require("../palette");
11
- var _sizing = require("../sizing");
1
+ import { padding, margin } from "../spacing/index.js";
2
+ import { borderRadius, borderTransform } from "../borders/index.js";
3
+ import { gap, rowGap, columnGap } from "../cssGrid/index.js";
4
+ import { paletteTransform } from "../palette/index.js";
5
+ import { maxWidth, sizingTransform } from "../sizing/index.js";
12
6
  const defaultSxConfig = {
13
7
  // borders
14
8
  border: {
15
9
  themeKey: 'borders',
16
- transform: _borders.borderTransform
10
+ transform: borderTransform
17
11
  },
18
12
  borderTop: {
19
13
  themeKey: 'borders',
20
- transform: _borders.borderTransform
14
+ transform: borderTransform
21
15
  },
22
16
  borderRight: {
23
17
  themeKey: 'borders',
24
- transform: _borders.borderTransform
18
+ transform: borderTransform
25
19
  },
26
20
  borderBottom: {
27
21
  themeKey: 'borders',
28
- transform: _borders.borderTransform
22
+ transform: borderTransform
29
23
  },
30
24
  borderLeft: {
31
25
  themeKey: 'borders',
32
- transform: _borders.borderTransform
26
+ transform: borderTransform
33
27
  },
34
28
  borderColor: {
35
29
  themeKey: 'palette'
@@ -48,149 +42,149 @@ const defaultSxConfig = {
48
42
  },
49
43
  outline: {
50
44
  themeKey: 'borders',
51
- transform: _borders.borderTransform
45
+ transform: borderTransform
52
46
  },
53
47
  outlineColor: {
54
48
  themeKey: 'palette'
55
49
  },
56
50
  borderRadius: {
57
51
  themeKey: 'shape.borderRadius',
58
- style: _borders.borderRadius
52
+ style: borderRadius
59
53
  },
60
54
  // palette
61
55
  color: {
62
56
  themeKey: 'palette',
63
- transform: _palette.paletteTransform
57
+ transform: paletteTransform
64
58
  },
65
59
  bgcolor: {
66
60
  themeKey: 'palette',
67
61
  cssProperty: 'backgroundColor',
68
- transform: _palette.paletteTransform
62
+ transform: paletteTransform
69
63
  },
70
64
  backgroundColor: {
71
65
  themeKey: 'palette',
72
- transform: _palette.paletteTransform
66
+ transform: paletteTransform
73
67
  },
74
68
  // spacing
75
69
  p: {
76
- style: _spacing.padding
70
+ style: padding
77
71
  },
78
72
  pt: {
79
- style: _spacing.padding
73
+ style: padding
80
74
  },
81
75
  pr: {
82
- style: _spacing.padding
76
+ style: padding
83
77
  },
84
78
  pb: {
85
- style: _spacing.padding
79
+ style: padding
86
80
  },
87
81
  pl: {
88
- style: _spacing.padding
82
+ style: padding
89
83
  },
90
84
  px: {
91
- style: _spacing.padding
85
+ style: padding
92
86
  },
93
87
  py: {
94
- style: _spacing.padding
88
+ style: padding
95
89
  },
96
90
  padding: {
97
- style: _spacing.padding
91
+ style: padding
98
92
  },
99
93
  paddingTop: {
100
- style: _spacing.padding
94
+ style: padding
101
95
  },
102
96
  paddingRight: {
103
- style: _spacing.padding
97
+ style: padding
104
98
  },
105
99
  paddingBottom: {
106
- style: _spacing.padding
100
+ style: padding
107
101
  },
108
102
  paddingLeft: {
109
- style: _spacing.padding
103
+ style: padding
110
104
  },
111
105
  paddingX: {
112
- style: _spacing.padding
106
+ style: padding
113
107
  },
114
108
  paddingY: {
115
- style: _spacing.padding
109
+ style: padding
116
110
  },
117
111
  paddingInline: {
118
- style: _spacing.padding
112
+ style: padding
119
113
  },
120
114
  paddingInlineStart: {
121
- style: _spacing.padding
115
+ style: padding
122
116
  },
123
117
  paddingInlineEnd: {
124
- style: _spacing.padding
118
+ style: padding
125
119
  },
126
120
  paddingBlock: {
127
- style: _spacing.padding
121
+ style: padding
128
122
  },
129
123
  paddingBlockStart: {
130
- style: _spacing.padding
124
+ style: padding
131
125
  },
132
126
  paddingBlockEnd: {
133
- style: _spacing.padding
127
+ style: padding
134
128
  },
135
129
  m: {
136
- style: _spacing.margin
130
+ style: margin
137
131
  },
138
132
  mt: {
139
- style: _spacing.margin
133
+ style: margin
140
134
  },
141
135
  mr: {
142
- style: _spacing.margin
136
+ style: margin
143
137
  },
144
138
  mb: {
145
- style: _spacing.margin
139
+ style: margin
146
140
  },
147
141
  ml: {
148
- style: _spacing.margin
142
+ style: margin
149
143
  },
150
144
  mx: {
151
- style: _spacing.margin
145
+ style: margin
152
146
  },
153
147
  my: {
154
- style: _spacing.margin
148
+ style: margin
155
149
  },
156
150
  margin: {
157
- style: _spacing.margin
151
+ style: margin
158
152
  },
159
153
  marginTop: {
160
- style: _spacing.margin
154
+ style: margin
161
155
  },
162
156
  marginRight: {
163
- style: _spacing.margin
157
+ style: margin
164
158
  },
165
159
  marginBottom: {
166
- style: _spacing.margin
160
+ style: margin
167
161
  },
168
162
  marginLeft: {
169
- style: _spacing.margin
163
+ style: margin
170
164
  },
171
165
  marginX: {
172
- style: _spacing.margin
166
+ style: margin
173
167
  },
174
168
  marginY: {
175
- style: _spacing.margin
169
+ style: margin
176
170
  },
177
171
  marginInline: {
178
- style: _spacing.margin
172
+ style: margin
179
173
  },
180
174
  marginInlineStart: {
181
- style: _spacing.margin
175
+ style: margin
182
176
  },
183
177
  marginInlineEnd: {
184
- style: _spacing.margin
178
+ style: margin
185
179
  },
186
180
  marginBlock: {
187
- style: _spacing.margin
181
+ style: margin
188
182
  },
189
183
  marginBlockStart: {
190
- style: _spacing.margin
184
+ style: margin
191
185
  },
192
186
  marginBlockEnd: {
193
- style: _spacing.margin
187
+ style: margin
194
188
  },
195
189
  // display
196
190
  displayPrint: {
@@ -222,13 +216,13 @@ const defaultSxConfig = {
222
216
  justifySelf: {},
223
217
  // grid
224
218
  gap: {
225
- style: _cssGrid.gap
219
+ style: gap
226
220
  },
227
221
  rowGap: {
228
- style: _cssGrid.rowGap
222
+ style: rowGap
229
223
  },
230
224
  columnGap: {
231
- style: _cssGrid.columnGap
225
+ style: columnGap
232
226
  },
233
227
  gridColumn: {},
234
228
  gridRow: {},
@@ -254,22 +248,22 @@ const defaultSxConfig = {
254
248
  },
255
249
  // sizing
256
250
  width: {
257
- transform: _sizing.sizingTransform
251
+ transform: sizingTransform
258
252
  },
259
253
  maxWidth: {
260
- style: _sizing.maxWidth
254
+ style: maxWidth
261
255
  },
262
256
  minWidth: {
263
- transform: _sizing.sizingTransform
257
+ transform: sizingTransform
264
258
  },
265
259
  height: {
266
- transform: _sizing.sizingTransform
260
+ transform: sizingTransform
267
261
  },
268
262
  maxHeight: {
269
- transform: _sizing.sizingTransform
263
+ transform: sizingTransform
270
264
  },
271
265
  minHeight: {
272
- transform: _sizing.sizingTransform
266
+ transform: sizingTransform
273
267
  },
274
268
  boxSizing: {},
275
269
  // typography
@@ -297,4 +291,4 @@ const defaultSxConfig = {
297
291
  themeKey: 'typography'
298
292
  }
299
293
  };
300
- var _default = exports.default = defaultSxConfig;
294
+ export default defaultSxConfig;
@@ -1,18 +1,11 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = extendSxProp;
8
- var _deepmerge = require("@mui/utils/deepmerge");
9
- var _defaultSxConfig = _interopRequireDefault(require("./defaultSxConfig"));
1
+ import { isPlainObject } from '@mui/utils/deepmerge';
2
+ import defaultSxConfig from "./defaultSxConfig.js";
10
3
  const splitProps = props => {
11
4
  const result = {
12
5
  systemProps: {},
13
6
  otherProps: {}
14
7
  };
15
- const config = props?.theme?.unstable_sxConfig ?? _defaultSxConfig.default;
8
+ const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
16
9
  Object.keys(props).forEach(prop => {
17
10
  if (config[prop]) {
18
11
  result.systemProps[prop] = props[prop];
@@ -22,7 +15,7 @@ const splitProps = props => {
22
15
  });
23
16
  return result;
24
17
  };
25
- function extendSxProp(props) {
18
+ export default function extendSxProp(props) {
26
19
  const {
27
20
  sx: inSx,
28
21
  ...other
@@ -37,7 +30,7 @@ function extendSxProp(props) {
37
30
  } else if (typeof inSx === 'function') {
38
31
  finalSx = (...args) => {
39
32
  const result = inSx(...args);
40
- if (!(0, _deepmerge.isPlainObject)(result)) {
33
+ if (!isPlainObject(result)) {
41
34
  return systemProps;
42
35
  }
43
36
  return {
@@ -0,0 +1,4 @@
1
+ export { default } from "./styleFunctionSx.js";
2
+ export { unstable_createStyleFunctionSx } from "./styleFunctionSx.js";
3
+ export { default as extendSxProp } from "./extendSxProp.js";
4
+ export { default as unstable_defaultSxConfig } from "./defaultSxConfig.js";
@@ -1,17 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- exports.unstable_createStyleFunctionSx = unstable_createStyleFunctionSx;
9
- var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
10
- var _merge = _interopRequireDefault(require("../merge"));
11
- var _style = require("../style");
12
- var _breakpoints = require("../breakpoints");
13
- var _cssContainerQueries = require("../cssContainerQueries");
14
- var _defaultSxConfig = _interopRequireDefault(require("./defaultSxConfig"));
1
+ import capitalize from '@mui/utils/capitalize';
2
+ import merge from "../merge/index.js";
3
+ import { getPath, getStyleValue as getValue } from "../style/index.js";
4
+ import { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from "../breakpoints/index.js";
5
+ import { sortContainerQueries } from "../cssContainerQueries/index.js";
6
+ import defaultSxConfig from "./defaultSxConfig.js";
15
7
  function objectsHaveSameKeys(...objects) {
16
8
  const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
17
9
  const union = new Set(allKeys);
@@ -22,7 +14,7 @@ function callIfFn(maybeFn, arg) {
22
14
  }
23
15
 
24
16
  // eslint-disable-next-line @typescript-eslint/naming-convention
25
- function unstable_createStyleFunctionSx() {
17
+ export function unstable_createStyleFunctionSx() {
26
18
  function getThemeValue(prop, val, theme, config) {
27
19
  const props = {
28
20
  [prop]: val,
@@ -50,15 +42,15 @@ function unstable_createStyleFunctionSx() {
50
42
  [prop]: val
51
43
  };
52
44
  }
53
- const themeMapping = (0, _style.getPath)(theme, themeKey) || {};
45
+ const themeMapping = getPath(theme, themeKey) || {};
54
46
  if (style) {
55
47
  return style(props);
56
48
  }
57
49
  const styleFromPropValue = propValueFinal => {
58
- let value = (0, _style.getStyleValue)(themeMapping, transform, propValueFinal);
50
+ let value = getValue(themeMapping, transform, propValueFinal);
59
51
  if (propValueFinal === value && typeof propValueFinal === 'string') {
60
52
  // Haven't found value
61
- value = (0, _style.getStyleValue)(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : (0, _capitalize.default)(propValueFinal)}`, propValueFinal);
53
+ value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
62
54
  }
63
55
  if (cssProperty === false) {
64
56
  return value;
@@ -67,7 +59,7 @@ function unstable_createStyleFunctionSx() {
67
59
  [cssProperty]: value
68
60
  };
69
61
  };
70
- return (0, _breakpoints.handleBreakpoints)(props, val, styleFromPropValue);
62
+ return handleBreakpoints(props, val, styleFromPropValue);
71
63
  }
72
64
  function styleFunctionSx(props) {
73
65
  const {
@@ -77,7 +69,7 @@ function unstable_createStyleFunctionSx() {
77
69
  if (!sx) {
78
70
  return null; // Emotion & styled-components will neglect null
79
71
  }
80
- const config = theme.unstable_sxConfig ?? _defaultSxConfig.default;
72
+ const config = theme.unstable_sxConfig ?? defaultSxConfig;
81
73
 
82
74
  /*
83
75
  * Receive `sxInput` as object or callback
@@ -95,7 +87,7 @@ function unstable_createStyleFunctionSx() {
95
87
  if (!sxObject) {
96
88
  return null;
97
89
  }
98
- const emptyBreakpoints = (0, _breakpoints.createEmptyBreakpointObject)(theme.breakpoints);
90
+ const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
99
91
  const breakpointsKeys = Object.keys(emptyBreakpoints);
100
92
  let css = emptyBreakpoints;
101
93
  Object.keys(sxObject).forEach(styleKey => {
@@ -103,9 +95,9 @@ function unstable_createStyleFunctionSx() {
103
95
  if (value !== null && value !== undefined) {
104
96
  if (typeof value === 'object') {
105
97
  if (config[styleKey]) {
106
- css = (0, _merge.default)(css, getThemeValue(styleKey, value, theme, config));
98
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
107
99
  } else {
108
- const breakpointsValues = (0, _breakpoints.handleBreakpoints)({
100
+ const breakpointsValues = handleBreakpoints({
109
101
  theme
110
102
  }, value, x => ({
111
103
  [styleKey]: x
@@ -116,15 +108,15 @@ function unstable_createStyleFunctionSx() {
116
108
  theme
117
109
  });
118
110
  } else {
119
- css = (0, _merge.default)(css, breakpointsValues);
111
+ css = merge(css, breakpointsValues);
120
112
  }
121
113
  }
122
114
  } else {
123
- css = (0, _merge.default)(css, getThemeValue(styleKey, value, theme, config));
115
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
124
116
  }
125
117
  }
126
118
  });
127
- return (0, _cssContainerQueries.sortContainerQueries)(theme, (0, _breakpoints.removeUnusedBreakpoints)(breakpointsKeys, css));
119
+ return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));
128
120
  }
129
121
  return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
130
122
  }
@@ -132,4 +124,4 @@ function unstable_createStyleFunctionSx() {
132
124
  }
133
125
  const styleFunctionSx = unstable_createStyleFunctionSx();
134
126
  styleFunctionSx.filterProps = ['sx'];
135
- var _default = exports.default = styleFunctionSx;
127
+ export default styleFunctionSx;
@@ -0,0 +1 @@
1
+ export { default } from "./styled.js";
@@ -0,0 +1,3 @@
1
+ import createStyled from "../createStyled/index.js";
2
+ const styled = createStyled();
3
+ export default styled;
@@ -0,0 +1,2 @@
1
+ export { default } from "./typography.js";
2
+ export * from "./typography.js";
@@ -0,0 +1,37 @@
1
+ import style from "../style/index.js";
2
+ import compose from "../compose/index.js";
3
+ export const fontFamily = style({
4
+ prop: 'fontFamily',
5
+ themeKey: 'typography'
6
+ });
7
+ export const fontSize = style({
8
+ prop: 'fontSize',
9
+ themeKey: 'typography'
10
+ });
11
+ export const fontStyle = style({
12
+ prop: 'fontStyle',
13
+ themeKey: 'typography'
14
+ });
15
+ export const fontWeight = style({
16
+ prop: 'fontWeight',
17
+ themeKey: 'typography'
18
+ });
19
+ export const letterSpacing = style({
20
+ prop: 'letterSpacing'
21
+ });
22
+ export const textTransform = style({
23
+ prop: 'textTransform'
24
+ });
25
+ export const lineHeight = style({
26
+ prop: 'lineHeight'
27
+ });
28
+ export const textAlign = style({
29
+ prop: 'textAlign'
30
+ });
31
+ export const typographyVariant = style({
32
+ prop: 'typography',
33
+ cssProperty: false,
34
+ themeKey: 'typography'
35
+ });
36
+ const typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textTransform);
37
+ export default typography;
@@ -0,0 +1,2 @@
1
+ export { default } from "./useMediaQuery.js";
2
+ export * from "./useMediaQuery.js";
@@ -1,16 +1,9 @@
1
- "use strict";
2
1
  'use client';
3
2
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
- Object.defineProperty(exports, "__esModule", {
7
- value: true
8
- });
9
- exports.default = useMediaQuery;
10
- var React = _interopRequireWildcard(require("react"));
11
- var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
12
- var _useThemeProps = require("../useThemeProps");
13
- var _useThemeWithoutDefault = _interopRequireDefault(require("../useThemeWithoutDefault"));
3
+ import * as React from 'react';
4
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
5
+ import { getThemeProps } from "../useThemeProps/index.js";
6
+ import useTheme from "../useThemeWithoutDefault/index.js";
14
7
  // TODO React 17: Remove `useMediaQueryOld` once React 17 support is removed
15
8
  function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
16
9
  const [match, setMatch] = React.useState(() => {
@@ -25,7 +18,7 @@ function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSs
25
18
  // event listeners to return the correct matches value.
26
19
  return defaultMatches;
27
20
  });
28
- (0, _useEnhancedEffect.default)(() => {
21
+ useEnhancedEffect(() => {
29
22
  if (!matchMedia) {
30
23
  return undefined;
31
24
  }
@@ -76,8 +69,8 @@ function useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia, noSs
76
69
  const match = maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
77
70
  return match;
78
71
  }
79
- function useMediaQuery(queryInput, options = {}) {
80
- const theme = (0, _useThemeWithoutDefault.default)();
72
+ export default function useMediaQuery(queryInput, options = {}) {
73
+ const theme = useTheme();
81
74
  // Wait for jsdom to support the match media feature.
82
75
  // All the browsers MUI support have this built-in.
83
76
  // This defensive check is here for simplicity.
@@ -88,7 +81,7 @@ function useMediaQuery(queryInput, options = {}) {
88
81
  matchMedia = supportMatchMedia ? window.matchMedia : null,
89
82
  ssrMatchMedia = null,
90
83
  noSsr = false
91
- } = (0, _useThemeProps.getThemeProps)({
84
+ } = getThemeProps({
92
85
  name: 'MuiUseMediaQuery',
93
86
  props: options,
94
87
  theme
@@ -0,0 +1,2 @@
1
+ export { default } from "./useTheme.js";
2
+ export * from "./useTheme.js";
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+
3
+ import createTheme from "../createTheme/index.js";
4
+ import useThemeWithoutDefault from "../useThemeWithoutDefault/index.js";
5
+ export const systemDefaultTheme = createTheme();
6
+ function useTheme(defaultTheme = systemDefaultTheme) {
7
+ return useThemeWithoutDefault(defaultTheme);
8
+ }
9
+ export default useTheme;
@@ -0,0 +1,12 @@
1
+ import resolveProps from '@mui/utils/resolveProps';
2
+ export default function getThemeProps(params) {
3
+ const {
4
+ theme,
5
+ name,
6
+ props
7
+ } = params;
8
+ if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {
9
+ return props;
10
+ }
11
+ return resolveProps(theme.components[name].defaultProps, props);
12
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from "./useThemeProps.js";
2
+ export { default as getThemeProps } from "./getThemeProps.js";
@@ -0,0 +1,20 @@
1
+ 'use client';
2
+
3
+ import getThemeProps from "./getThemeProps.js";
4
+ import useTheme from "../useTheme/index.js";
5
+ export default function useThemeProps({
6
+ props,
7
+ name,
8
+ defaultTheme,
9
+ themeId
10
+ }) {
11
+ let theme = useTheme(defaultTheme);
12
+ if (themeId) {
13
+ theme = theme[themeId] || theme;
14
+ }
15
+ return getThemeProps({
16
+ theme,
17
+ name,
18
+ props
19
+ });
20
+ }
@@ -0,0 +1 @@
1
+ export { default } from "./useThemeWithoutDefault.js";
@@ -0,0 +1,12 @@
1
+ 'use client';
2
+
3
+ import * as React from 'react';
4
+ import { ThemeContext } from '@mui/styled-engine';
5
+ function isObjectEmpty(obj) {
6
+ return Object.keys(obj).length === 0;
7
+ }
8
+ function useTheme(defaultTheme = null) {
9
+ const contextTheme = React.useContext(ThemeContext);
10
+ return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
11
+ }
12
+ export default useTheme;
@@ -0,0 +1,6 @@
1
+ export const version = "6.1.3";
2
+ export const major = Number("6");
3
+ export const minor = Number("1");
4
+ export const patch = Number("3");
5
+ export const prerelease = undefined;
6
+ export default version;