@mui/system 6.4.3 → 7.0.0-alpha.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 (398) hide show
  1. package/Box/Box.d.ts +22 -173
  2. package/Box/boxClasses.d.ts +3 -3
  3. package/Box/index.d.ts +4 -5
  4. package/CHANGELOG.md +70 -2227
  5. package/CSSProperties.d.ts +1 -3
  6. package/Container/Container.d.ts +2 -2
  7. package/Container/ContainerProps.d.ts +36 -36
  8. package/Container/containerClasses.d.ts +17 -17
  9. package/Container/createContainer.d.ts +10 -10
  10. package/Container/createContainer.js +1 -0
  11. package/Container/index.d.ts +4 -5
  12. package/DefaultPropsProvider/DefaultPropsProvider.d.ts +13 -7
  13. package/DefaultPropsProvider/index.d.ts +1 -1
  14. package/GlobalStyles/GlobalStyles.d.ts +11 -7
  15. package/GlobalStyles/index.d.ts +2 -2
  16. package/Grid/Grid.d.ts +2 -2
  17. package/Grid/GridProps.d.ts +89 -91
  18. package/Grid/createGrid.d.ts +8 -8
  19. package/Grid/createGrid.js +1 -0
  20. package/Grid/gridClasses.d.ts +15 -15
  21. package/Grid/gridGenerator.d.ts +37 -17
  22. package/Grid/index.d.ts +7 -7
  23. package/Grid/traverseBreakpoints.d.ts +3 -3
  24. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +42 -42
  25. package/InitColorSchemeScript/index.d.ts +2 -2
  26. package/README.md +4 -4
  27. package/RtlProvider/index.d.ts +1 -4
  28. package/Stack/Stack.d.ts +2 -2
  29. package/Stack/StackProps.d.ts +44 -44
  30. package/Stack/createStack.d.ts +17 -14
  31. package/Stack/createStack.js +1 -0
  32. package/Stack/index.d.ts +5 -5
  33. package/Stack/stackClasses.d.ts +3 -3
  34. package/ThemeProvider/ThemeProvider.d.ts +1 -4
  35. package/ThemeProvider/index.d.ts +2 -2
  36. package/borders/borders.d.ts +2 -3
  37. package/borders/index.d.ts +2 -2
  38. package/breakpoints/breakpoints.d.ts +7 -19
  39. package/breakpoints/index.d.ts +2 -2
  40. package/colorManipulator/colorManipulator.d.ts +2 -7
  41. package/colorManipulator/index.d.ts +1 -1
  42. package/compose/compose.d.ts +2 -5
  43. package/compose/index.d.ts +1 -1
  44. package/createBox/createBox.d.ts +4 -8
  45. package/createBox/index.d.ts +1 -1
  46. package/createBreakpoints/createBreakpoints.d.ts +7 -14
  47. package/createBreakpoints/index.d.ts +1 -1
  48. package/createStyled/createStyled.d.ts +5 -17
  49. package/createStyled/index.d.ts +2 -2
  50. package/createTheme/applyStyles.d.ts +2 -2
  51. package/createTheme/createSpacing.d.ts +6 -6
  52. package/createTheme/createTheme.d.ts +11 -18
  53. package/createTheme/index.d.ts +4 -4
  54. package/createTheme/shape.d.ts +1 -4
  55. package/cssContainerQueries/cssContainerQueries.d.ts +9 -9
  56. package/cssContainerQueries/index.d.ts +3 -3
  57. package/cssGrid/cssGrid.d.ts +2 -3
  58. package/cssGrid/index.d.ts +2 -2
  59. package/cssVars/createCssVarsProvider.d.ts +89 -107
  60. package/cssVars/createCssVarsTheme.d.ts +12 -9
  61. package/cssVars/createGetCssVar.d.ts +1 -1
  62. package/cssVars/cssVarsParser.d.ts +7 -7
  63. package/cssVars/getColorSchemeSelector.d.ts +1 -1
  64. package/cssVars/index.d.ts +7 -7
  65. package/cssVars/prepareCssVars.d.ts +11 -11
  66. package/cssVars/prepareTypographyVars.d.ts +3 -7
  67. package/cssVars/useCurrentColorScheme.d.ts +43 -43
  68. package/display/display.d.ts +2 -3
  69. package/display/index.d.ts +2 -2
  70. package/esm/Box/Box.d.ts +72 -0
  71. package/esm/Box/boxClasses.d.ts +7 -0
  72. package/esm/Box/index.d.ts +4 -0
  73. package/esm/CSSProperties.d.ts +7 -0
  74. package/esm/Container/Container.d.ts +13 -0
  75. package/esm/Container/ContainerProps.d.ts +40 -0
  76. package/esm/Container/containerClasses.d.ts +22 -0
  77. package/esm/Container/createContainer.d.ts +18 -0
  78. package/esm/Container/createContainer.js +2 -0
  79. package/esm/Container/index.d.ts +4 -0
  80. package/esm/DefaultPropsProvider/DefaultPropsProvider.d.ts +18 -0
  81. package/esm/DefaultPropsProvider/index.d.ts +1 -0
  82. package/esm/GlobalStyles/GlobalStyles.d.ts +17 -0
  83. package/esm/GlobalStyles/index.d.ts +2 -0
  84. package/esm/Grid/Grid.d.ts +13 -0
  85. package/esm/Grid/GridProps.d.ts +103 -0
  86. package/esm/Grid/createGrid.d.ts +13 -0
  87. package/esm/Grid/createGrid.js +2 -0
  88. package/esm/Grid/gridClasses.d.ts +20 -0
  89. package/esm/Grid/gridGenerator.d.ts +42 -0
  90. package/esm/Grid/index.d.ts +7 -0
  91. package/esm/Grid/traverseBreakpoints.d.ts +7 -0
  92. package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +51 -0
  93. package/esm/InitColorSchemeScript/index.d.ts +2 -0
  94. package/esm/RtlProvider/index.d.ts +8 -0
  95. package/esm/Stack/Stack.d.ts +14 -0
  96. package/esm/Stack/StackProps.d.ts +53 -0
  97. package/esm/Stack/createStack.d.ts +24 -0
  98. package/esm/Stack/createStack.js +2 -0
  99. package/esm/Stack/index.d.ts +5 -0
  100. package/esm/Stack/stackClasses.d.ts +8 -0
  101. package/esm/ThemeProvider/ThemeProvider.d.ts +24 -0
  102. package/esm/ThemeProvider/index.d.ts +2 -0
  103. package/esm/borders/borders.d.ts +13 -0
  104. package/esm/borders/index.d.ts +2 -0
  105. package/esm/breakpoints/breakpoints.d.ts +19 -0
  106. package/esm/breakpoints/index.d.ts +2 -0
  107. package/esm/colorManipulator/colorManipulator.d.ts +25 -0
  108. package/esm/colorManipulator/index.d.ts +1 -0
  109. package/esm/compose/compose.d.ts +2 -0
  110. package/esm/compose/index.d.ts +1 -0
  111. package/esm/createBox/createBox.d.ts +9 -0
  112. package/esm/createBox/index.d.ts +1 -0
  113. package/esm/createBreakpoints/createBreakpoints.d.ts +78 -0
  114. package/esm/createBreakpoints/index.d.ts +3 -0
  115. package/esm/createStyled/createStyled.d.ts +27 -0
  116. package/esm/createStyled/index.d.ts +2 -0
  117. package/esm/createTheme/applyStyles.d.ts +67 -0
  118. package/esm/createTheme/createSpacing.d.ts +10 -0
  119. package/esm/createTheme/createTheme.d.ts +54 -0
  120. package/esm/createTheme/index.d.ts +4 -0
  121. package/esm/createTheme/shape.d.ts +6 -0
  122. package/esm/cssContainerQueries/cssContainerQueries.d.ts +23 -0
  123. package/esm/cssContainerQueries/index.d.ts +3 -0
  124. package/esm/cssGrid/cssGrid.d.ts +2 -0
  125. package/esm/cssGrid/index.d.ts +2 -0
  126. package/esm/cssVars/createCssVarsProvider.d.ts +129 -0
  127. package/esm/cssVars/createCssVarsTheme.d.ts +15 -0
  128. package/esm/cssVars/createGetCssVar.d.ts +5 -0
  129. package/esm/cssVars/cssVarsParser.d.ts +64 -0
  130. package/esm/cssVars/getColorSchemeSelector.d.ts +1 -0
  131. package/esm/cssVars/index.d.ts +7 -0
  132. package/esm/cssVars/prepareCssVars.d.ts +16 -0
  133. package/esm/cssVars/prepareTypographyVars.d.ts +4 -0
  134. package/esm/cssVars/useCurrentColorScheme.d.ts +54 -0
  135. package/esm/display/display.d.ts +2 -0
  136. package/esm/display/index.d.ts +2 -0
  137. package/esm/flexbox/flexbox.d.ts +2 -0
  138. package/esm/flexbox/index.d.ts +2 -0
  139. package/esm/getThemeValue/getThemeValue.d.ts +1 -0
  140. package/esm/getThemeValue/index.d.ts +2 -0
  141. package/esm/index.d.ts +79 -0
  142. package/esm/index.js +7 -0
  143. package/esm/memoTheme.d.ts +12 -0
  144. package/esm/memoize/index.d.ts +1 -0
  145. package/esm/memoize/memoize.d.ts +1 -0
  146. package/esm/merge/index.d.ts +1 -0
  147. package/esm/merge/merge.d.ts +1 -0
  148. package/esm/package.json +1 -0
  149. package/esm/palette/index.d.ts +2 -0
  150. package/esm/palette/palette.d.ts +4 -0
  151. package/esm/positions/index.d.ts +2 -0
  152. package/esm/positions/positions.d.ts +2 -0
  153. package/esm/preprocessStyles.d.ts +5 -0
  154. package/esm/propsToClassKey/index.d.ts +1 -0
  155. package/esm/propsToClassKey/propsToClassKey.d.ts +1 -0
  156. package/esm/responsivePropType/index.d.ts +1 -0
  157. package/esm/responsivePropType/responsivePropType.d.ts +2 -0
  158. package/esm/shadows/index.d.ts +1 -0
  159. package/esm/shadows/shadows.d.ts +2 -0
  160. package/esm/sizing/index.d.ts +2 -0
  161. package/esm/sizing/sizing.d.ts +11 -0
  162. package/esm/spacing/index.d.ts +2 -0
  163. package/esm/spacing/spacing.d.ts +18 -0
  164. package/esm/style/index.d.ts +2 -0
  165. package/esm/style/style.d.ts +19 -0
  166. package/esm/styleFunctionSx/AliasesCSSProperties.d.ts +269 -0
  167. package/esm/styleFunctionSx/OverwriteCSSProperties.d.ts +54 -0
  168. package/esm/styleFunctionSx/StandardCssProperties.d.ts +2 -0
  169. package/esm/styleFunctionSx/defaultSxConfig.d.ts +15 -0
  170. package/esm/styleFunctionSx/extendSxProp.d.ts +4 -0
  171. package/esm/styleFunctionSx/index.d.ts +9 -0
  172. package/esm/styleFunctionSx/styleFunctionSx.d.ts +62 -0
  173. package/esm/styled/index.d.ts +1 -0
  174. package/esm/styled/styled.d.ts +3 -0
  175. package/esm/typography/index.d.ts +2 -0
  176. package/esm/typography/typography.d.ts +11 -0
  177. package/esm/useMediaQuery/index.d.ts +2 -0
  178. package/esm/useMediaQuery/useMediaQuery.d.ts +32 -0
  179. package/esm/useTheme/index.d.ts +2 -0
  180. package/esm/useTheme/useTheme.d.ts +2 -0
  181. package/esm/useThemeProps/getThemeProps.d.ts +16 -0
  182. package/esm/useThemeProps/index.d.ts +3 -0
  183. package/esm/useThemeProps/useThemeProps.d.ts +14 -0
  184. package/esm/useThemeWithoutDefault/index.d.ts +1 -0
  185. package/esm/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +1 -0
  186. package/esm/version/index.d.ts +6 -0
  187. package/esm/version/index.js +5 -5
  188. package/flexbox/flexbox.d.ts +2 -3
  189. package/flexbox/index.d.ts +2 -2
  190. package/getThemeValue/getThemeValue.d.ts +1 -1
  191. package/getThemeValue/index.d.ts +2 -2
  192. package/index.d.ts +66 -115
  193. package/index.js +1 -1
  194. package/memoTheme.d.ts +3 -3
  195. package/memoize/index.d.ts +1 -1
  196. package/memoize/memoize.d.ts +1 -3
  197. package/merge/index.d.ts +1 -1
  198. package/merge/merge.d.ts +1 -1
  199. package/modern/Box/Box.d.ts +72 -0
  200. package/modern/Box/boxClasses.d.ts +7 -0
  201. package/modern/Box/index.d.ts +4 -0
  202. package/modern/CSSProperties.d.ts +7 -0
  203. package/modern/Container/Container.d.ts +13 -0
  204. package/modern/Container/ContainerProps.d.ts +40 -0
  205. package/modern/Container/containerClasses.d.ts +22 -0
  206. package/modern/Container/createContainer.d.ts +18 -0
  207. package/modern/Container/createContainer.js +2 -0
  208. package/modern/Container/index.d.ts +4 -0
  209. package/modern/DefaultPropsProvider/DefaultPropsProvider.d.ts +18 -0
  210. package/modern/DefaultPropsProvider/index.d.ts +1 -0
  211. package/modern/GlobalStyles/GlobalStyles.d.ts +17 -0
  212. package/modern/GlobalStyles/index.d.ts +2 -0
  213. package/modern/Grid/Grid.d.ts +13 -0
  214. package/modern/Grid/GridProps.d.ts +103 -0
  215. package/modern/Grid/createGrid.d.ts +13 -0
  216. package/modern/Grid/createGrid.js +2 -0
  217. package/modern/Grid/gridClasses.d.ts +20 -0
  218. package/modern/Grid/gridGenerator.d.ts +42 -0
  219. package/modern/Grid/index.d.ts +7 -0
  220. package/modern/Grid/traverseBreakpoints.d.ts +7 -0
  221. package/modern/InitColorSchemeScript/InitColorSchemeScript.d.ts +51 -0
  222. package/modern/InitColorSchemeScript/index.d.ts +2 -0
  223. package/modern/RtlProvider/index.d.ts +8 -0
  224. package/modern/Stack/Stack.d.ts +14 -0
  225. package/modern/Stack/StackProps.d.ts +53 -0
  226. package/modern/Stack/createStack.d.ts +24 -0
  227. package/modern/Stack/createStack.js +2 -0
  228. package/modern/Stack/index.d.ts +5 -0
  229. package/modern/Stack/stackClasses.d.ts +8 -0
  230. package/modern/ThemeProvider/ThemeProvider.d.ts +24 -0
  231. package/modern/ThemeProvider/index.d.ts +2 -0
  232. package/modern/borders/borders.d.ts +13 -0
  233. package/modern/borders/index.d.ts +2 -0
  234. package/modern/breakpoints/breakpoints.d.ts +19 -0
  235. package/modern/breakpoints/index.d.ts +2 -0
  236. package/modern/colorManipulator/colorManipulator.d.ts +25 -0
  237. package/modern/colorManipulator/index.d.ts +1 -0
  238. package/modern/compose/compose.d.ts +2 -0
  239. package/modern/compose/index.d.ts +1 -0
  240. package/modern/createBox/createBox.d.ts +9 -0
  241. package/modern/createBox/index.d.ts +1 -0
  242. package/modern/createBreakpoints/createBreakpoints.d.ts +78 -0
  243. package/modern/createBreakpoints/index.d.ts +3 -0
  244. package/modern/createStyled/createStyled.d.ts +27 -0
  245. package/modern/createStyled/index.d.ts +2 -0
  246. package/modern/createTheme/applyStyles.d.ts +67 -0
  247. package/modern/createTheme/createSpacing.d.ts +10 -0
  248. package/modern/createTheme/createTheme.d.ts +54 -0
  249. package/modern/createTheme/index.d.ts +4 -0
  250. package/modern/createTheme/shape.d.ts +6 -0
  251. package/modern/cssContainerQueries/cssContainerQueries.d.ts +23 -0
  252. package/modern/cssContainerQueries/index.d.ts +3 -0
  253. package/modern/cssGrid/cssGrid.d.ts +2 -0
  254. package/modern/cssGrid/index.d.ts +2 -0
  255. package/modern/cssVars/createCssVarsProvider.d.ts +129 -0
  256. package/modern/cssVars/createCssVarsTheme.d.ts +15 -0
  257. package/modern/cssVars/createGetCssVar.d.ts +5 -0
  258. package/modern/cssVars/cssVarsParser.d.ts +64 -0
  259. package/modern/cssVars/getColorSchemeSelector.d.ts +1 -0
  260. package/modern/cssVars/index.d.ts +7 -0
  261. package/modern/cssVars/prepareCssVars.d.ts +16 -0
  262. package/modern/cssVars/prepareTypographyVars.d.ts +4 -0
  263. package/modern/cssVars/useCurrentColorScheme.d.ts +54 -0
  264. package/modern/display/display.d.ts +2 -0
  265. package/modern/display/index.d.ts +2 -0
  266. package/modern/flexbox/flexbox.d.ts +2 -0
  267. package/modern/flexbox/index.d.ts +2 -0
  268. package/modern/getThemeValue/getThemeValue.d.ts +1 -0
  269. package/modern/getThemeValue/index.d.ts +2 -0
  270. package/modern/index.d.ts +79 -0
  271. package/modern/index.js +1 -1
  272. package/modern/memoTheme.d.ts +12 -0
  273. package/modern/memoize/index.d.ts +1 -0
  274. package/modern/memoize/memoize.d.ts +1 -0
  275. package/modern/merge/index.d.ts +1 -0
  276. package/modern/merge/merge.d.ts +1 -0
  277. package/modern/package.json +1 -0
  278. package/modern/palette/index.d.ts +2 -0
  279. package/modern/palette/palette.d.ts +4 -0
  280. package/modern/positions/index.d.ts +2 -0
  281. package/modern/positions/positions.d.ts +2 -0
  282. package/modern/preprocessStyles.d.ts +5 -0
  283. package/modern/propsToClassKey/index.d.ts +1 -0
  284. package/modern/propsToClassKey/propsToClassKey.d.ts +1 -0
  285. package/modern/responsivePropType/index.d.ts +1 -0
  286. package/modern/responsivePropType/responsivePropType.d.ts +2 -0
  287. package/modern/shadows/index.d.ts +1 -0
  288. package/modern/shadows/shadows.d.ts +2 -0
  289. package/modern/sizing/index.d.ts +2 -0
  290. package/modern/sizing/sizing.d.ts +11 -0
  291. package/modern/spacing/index.d.ts +2 -0
  292. package/modern/spacing/spacing.d.ts +18 -0
  293. package/modern/style/index.d.ts +2 -0
  294. package/modern/style/style.d.ts +19 -0
  295. package/modern/styleFunctionSx/AliasesCSSProperties.d.ts +269 -0
  296. package/modern/styleFunctionSx/OverwriteCSSProperties.d.ts +54 -0
  297. package/modern/styleFunctionSx/StandardCssProperties.d.ts +2 -0
  298. package/modern/styleFunctionSx/defaultSxConfig.d.ts +15 -0
  299. package/modern/styleFunctionSx/extendSxProp.d.ts +4 -0
  300. package/modern/styleFunctionSx/index.d.ts +9 -0
  301. package/modern/styleFunctionSx/styleFunctionSx.d.ts +62 -0
  302. package/modern/styled/index.d.ts +1 -0
  303. package/modern/styled/styled.d.ts +3 -0
  304. package/modern/typography/index.d.ts +2 -0
  305. package/modern/typography/typography.d.ts +11 -0
  306. package/modern/useMediaQuery/index.d.ts +2 -0
  307. package/modern/useMediaQuery/useMediaQuery.d.ts +32 -0
  308. package/modern/useTheme/index.d.ts +2 -0
  309. package/modern/useTheme/useTheme.d.ts +2 -0
  310. package/modern/useThemeProps/getThemeProps.d.ts +16 -0
  311. package/modern/useThemeProps/index.d.ts +3 -0
  312. package/modern/useThemeProps/useThemeProps.d.ts +14 -0
  313. package/modern/useThemeWithoutDefault/index.d.ts +1 -0
  314. package/modern/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +1 -0
  315. package/modern/version/index.d.ts +6 -0
  316. package/modern/version/index.js +5 -5
  317. package/package.json +36 -6
  318. package/palette/index.d.ts +2 -2
  319. package/palette/palette.d.ts +2 -3
  320. package/positions/index.d.ts +2 -2
  321. package/positions/positions.d.ts +2 -3
  322. package/preprocessStyles.d.ts +4 -4
  323. package/propsToClassKey/index.d.ts +1 -1
  324. package/propsToClassKey/propsToClassKey.d.ts +1 -1
  325. package/responsivePropType/index.d.ts +1 -1
  326. package/responsivePropType/responsivePropType.d.ts +1 -2
  327. package/shadows/index.d.ts +1 -1
  328. package/shadows/shadows.d.ts +2 -3
  329. package/sizing/index.d.ts +2 -2
  330. package/sizing/sizing.d.ts +2 -3
  331. package/spacing/index.d.ts +2 -2
  332. package/spacing/spacing.d.ts +15 -78
  333. package/style/index.d.ts +2 -2
  334. package/style/style.d.ts +8 -16
  335. package/styleFunctionSx/AliasesCSSProperties.d.ts +268 -268
  336. package/styleFunctionSx/OverwriteCSSProperties.d.ts +52 -52
  337. package/styleFunctionSx/StandardCssProperties.d.ts +1 -1
  338. package/styleFunctionSx/defaultSxConfig.d.ts +3 -8
  339. package/styleFunctionSx/extendSxProp.d.ts +4 -3
  340. package/styleFunctionSx/index.d.ts +9 -13
  341. package/styleFunctionSx/styleFunctionSx.d.ts +14 -41
  342. package/styled/index.d.ts +1 -1
  343. package/styled/styled.d.ts +2 -4
  344. package/tsconfig.build.tsbuildinfo +1 -0
  345. package/typography/index.d.ts +2 -2
  346. package/typography/typography.d.ts +2 -3
  347. package/useMediaQuery/index.d.ts +2 -2
  348. package/useMediaQuery/useMediaQuery.d.ts +27 -27
  349. package/useTheme/index.d.ts +2 -2
  350. package/useTheme/useTheme.d.ts +2 -3
  351. package/useThemeProps/getThemeProps.d.ts +8 -9
  352. package/useThemeProps/index.d.ts +3 -4
  353. package/useThemeProps/useThemeProps.d.ts +6 -12
  354. package/useThemeWithoutDefault/index.d.ts +1 -1
  355. package/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +1 -1
  356. package/version/index.d.ts +1 -1
  357. package/version/index.js +5 -5
  358. package/Box/package.json +0 -6
  359. package/Container/package.json +0 -6
  360. package/DefaultPropsProvider/package.json +0 -6
  361. package/GlobalStyles/package.json +0 -6
  362. package/Grid/package.json +0 -6
  363. package/InitColorSchemeScript/package.json +0 -6
  364. package/RtlProvider/package.json +0 -6
  365. package/Stack/package.json +0 -6
  366. package/ThemeProvider/package.json +0 -6
  367. package/borders/package.json +0 -6
  368. package/breakpoints/package.json +0 -6
  369. package/colorManipulator/package.json +0 -6
  370. package/compose/package.json +0 -6
  371. package/createBox/package.json +0 -6
  372. package/createBreakpoints/package.json +0 -6
  373. package/createStyled/package.json +0 -6
  374. package/createTheme/package.json +0 -6
  375. package/cssContainerQueries/package.json +0 -6
  376. package/cssGrid/package.json +0 -6
  377. package/cssVars/package.json +0 -6
  378. package/display/package.json +0 -6
  379. package/flexbox/package.json +0 -6
  380. package/getThemeValue/package.json +0 -6
  381. package/memoize/package.json +0 -6
  382. package/merge/package.json +0 -6
  383. package/palette/package.json +0 -6
  384. package/positions/package.json +0 -6
  385. package/propsToClassKey/package.json +0 -6
  386. package/responsivePropType/package.json +0 -6
  387. package/shadows/package.json +0 -6
  388. package/sizing/package.json +0 -6
  389. package/spacing/package.json +0 -6
  390. package/style/package.json +0 -6
  391. package/styleFunctionSx/package.json +0 -6
  392. package/styled/package.json +0 -6
  393. package/typography/package.json +0 -6
  394. package/useMediaQuery/package.json +0 -6
  395. package/useTheme/package.json +0 -6
  396. package/useThemeProps/package.json +0 -6
  397. package/useThemeWithoutDefault/package.json +0 -6
  398. package/version/package.json +0 -6
@@ -0,0 +1,15 @@
1
+ import { StyleFunction } from "../Box/index.js";
2
+ import { TransformFunction } from "../style/index.js";
3
+ type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
4
+ export interface SxConfigRecord {
5
+ cssProperty?: keyof React.CSSProperties | false;
6
+ /**
7
+ * dot access in `Theme`
8
+ */
9
+ themeKey?: string;
10
+ transform?: TransformFunction;
11
+ style?: SimpleStyleFunction<any>;
12
+ }
13
+ export type SxConfig = Record<string, SxConfigRecord>;
14
+ declare const defaultSxConfig: SxConfig;
15
+ export default defaultSxConfig;
@@ -0,0 +1,4 @@
1
+ import { SxProps } from "./styleFunctionSx.js";
2
+ export default function extendSxProp<Props extends {
3
+ sx?: SxProps<any>;
4
+ } = {}>(props: Props): Props;
@@ -0,0 +1,9 @@
1
+ export { default } from "./styleFunctionSx.js";
2
+ export * from "./styleFunctionSx.js";
3
+ export * from "./AliasesCSSProperties.js";
4
+ export * from "./OverwriteCSSProperties.js";
5
+ export * from "./StandardCssProperties.js";
6
+ export { default as extendSxProp } from "./extendSxProp.js";
7
+ export { default as unstable_defaultSxConfig } from "./defaultSxConfig.js";
8
+ export * from "./defaultSxConfig.js";
9
+ export * from "./extendSxProp.js";
@@ -0,0 +1,62 @@
1
+ import * as CSS from 'csstype';
2
+ import { CSSObject } from '@mui/styled-engine';
3
+ import { StandardCSSProperties } from "./StandardCssProperties.js";
4
+ import { AliasesCSSProperties } from "./AliasesCSSProperties.js";
5
+ import { OverwriteCSSProperties } from "./OverwriteCSSProperties.js";
6
+
7
+ /**
8
+ * The `css` function accepts arrays as values for mobile-first responsive styles.
9
+ * Note that this extends to non-theme values also. For example `display=['none', 'block']`
10
+ * will also works.
11
+ */
12
+ export type ResponsiveStyleValue<T> = T | ReadonlyArray<T | null> | {
13
+ [key: string]: T | null;
14
+ };
15
+
16
+ /**
17
+ * Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).
18
+ */
19
+ export type CSSPseudoSelectorProps<Theme extends object = {}> = { [K in CSS.Pseudos]?: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme> };
20
+
21
+ /**
22
+ * Map all nested selectors.
23
+ */
24
+ export interface CSSSelectorObject<Theme extends object = {}> {
25
+ [cssSelector: string]: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme>;
26
+ }
27
+ type CssVariableType = string | number;
28
+
29
+ /**
30
+ * Map all nested selectors and CSS variables.
31
+ */
32
+ export interface CSSSelectorObjectOrCssVariables<Theme extends object = {}> {
33
+ [cssSelectorOrVariable: string]: ((theme: Theme) => SystemStyleObject<Theme> | string | number) | SystemStyleObject<Theme> | CssVariableType;
34
+ }
35
+
36
+ /**
37
+ * Map of all available CSS properties (including aliases) and their raw value.
38
+ * Only used internally to map CSS properties to input types (responsive value,
39
+ * theme function or nested) in `SystemCssProperties`.
40
+ */
41
+ export interface AllSystemCSSProperties extends Omit<StandardCSSProperties, keyof OverwriteCSSProperties>, OverwriteCSSProperties, AliasesCSSProperties {}
42
+ export type SystemCssProperties<Theme extends object = {}> = { [K in keyof AllSystemCSSProperties]: ResponsiveStyleValue<AllSystemCSSProperties[K]> | ((theme: Theme) => ResponsiveStyleValue<AllSystemCSSProperties[K]>) | null };
43
+
44
+ /**
45
+ * The `SystemStyleObject` defines custom properties that will be transformed to
46
+ * their corresponding values from the `Theme`. Other valid CSS properties are also allowed.
47
+ */
48
+ export type SystemStyleObject<Theme extends object = {}> = SystemCssProperties<Theme> | CSSPseudoSelectorProps<Theme> | CSSSelectorObjectOrCssVariables<Theme> | null;
49
+
50
+ /**
51
+ * The `SxProps` can be either object or function
52
+ */
53
+ export type SxProps<Theme extends object = {}> = SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>) | ReadonlyArray<boolean | SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>)>;
54
+ export interface StyleFunctionSx {
55
+ (props: object): CSSObject;
56
+ filterProps?: string[];
57
+ }
58
+
59
+ // eslint-disable-next-line @typescript-eslint/naming-convention
60
+ export function unstable_createStyleFunctionSx(styleFunctionMapping: Record<string, StyleFunctionSx>): StyleFunctionSx;
61
+ declare const styleFunctionSx: StyleFunctionSx;
62
+ export default styleFunctionSx;
@@ -0,0 +1 @@
1
+ export { default } from "./styled.js";
@@ -0,0 +1,3 @@
1
+ import { CreateMUIStyled } from "../createStyled/index.js";
2
+ declare const styled: CreateMUIStyled;
3
+ export default styled;
@@ -0,0 +1,2 @@
1
+ export { default } from "./typography.js";
2
+ export * from "./typography.js";
@@ -0,0 +1,11 @@
1
+ import { PropsFor, SimpleStyleFunction, typography } from "../Box/index.js";
2
+ export const typographyVariant: SimpleStyleFunction<'typography'>;
3
+ export const fontFamily: SimpleStyleFunction<'fontFamily'>;
4
+ export const fontSize: SimpleStyleFunction<'fontSize'>;
5
+ export const fontStyle: SimpleStyleFunction<'fontStyle'>;
6
+ export const fontWeight: SimpleStyleFunction<'fontWeight'>;
7
+ export const letterSpacing: SimpleStyleFunction<'letterSpacing'>;
8
+ export const lineHeight: SimpleStyleFunction<'lineHeight'>;
9
+ export const textAlign: SimpleStyleFunction<'textAlign'>;
10
+ export const textTransform: SimpleStyleFunction<'textTransform'>;
11
+ export type TypographyProps = PropsFor<typeof typography>;
@@ -0,0 +1,2 @@
1
+ export { default } from "./useMediaQuery.js";
2
+ export * from "./useMediaQuery.js";
@@ -0,0 +1,32 @@
1
+ export interface UseMediaQueryOptions {
2
+ /**
3
+ * As `window.matchMedia()` is unavailable on the server,
4
+ * it returns a default matches during the first mount.
5
+ * @default false
6
+ */
7
+ defaultMatches?: boolean;
8
+ /**
9
+ * You can provide your own implementation of matchMedia.
10
+ * This can be used for handling an iframe content window.
11
+ */
12
+ matchMedia?: typeof window.matchMedia;
13
+ /**
14
+ * To perform the server-side hydration, the hook needs to render twice.
15
+ * A first time with `defaultMatches`, the value of the server, and a second time with the resolved value.
16
+ * This double pass rendering cycle comes with a drawback: it's slower.
17
+ * You can set this option to `true` if you use the returned value **only** client-side.
18
+ * @default false
19
+ */
20
+ noSsr?: boolean;
21
+ /**
22
+ * You can provide your own implementation of `matchMedia`, it's used when rendering server-side.
23
+ */
24
+ ssrMatchMedia?: (query: string) => {
25
+ matches: boolean;
26
+ };
27
+ }
28
+ export declare function unstable_createUseMediaQuery(params?: {
29
+ themeId?: string;
30
+ }): <Theme = unknown>(queryInput: string | ((theme: Theme) => string), options?: UseMediaQueryOptions) => boolean;
31
+ declare const useMediaQuery: <Theme = unknown>(queryInput: string | ((theme: Theme) => string), options?: UseMediaQueryOptions) => boolean;
32
+ export default useMediaQuery;
@@ -0,0 +1,2 @@
1
+ export { default } from "./useTheme.js";
2
+ export * from "./useTheme.js";
@@ -0,0 +1,2 @@
1
+ import { Theme } from "../createTheme/index.js";
2
+ export default function useTheme<T = Theme>(defaultTheme?: T): T;
@@ -0,0 +1,16 @@
1
+ export {};
2
+ interface ThemeWithProps<Components> {
3
+ components?: { [K in keyof Components]: {
4
+ defaultProps?: Partial<Components[K]>;
5
+ } };
6
+ }
7
+ type ThemedProps<Theme, Name extends keyof any> = Theme extends {
8
+ components: Record<Name, {
9
+ defaultProps: infer Props;
10
+ }>;
11
+ } ? Props : {};
12
+ export default function getThemeProps<Theme, Props, Name extends keyof any>(params: {
13
+ props: Props;
14
+ name: Name;
15
+ theme?: Theme;
16
+ }): Props & ThemedProps<Theme, Name>;
@@ -0,0 +1,3 @@
1
+ export { default } from "./useThemeProps.js";
2
+ export * from "./useThemeProps.js";
3
+ export { default as getThemeProps } from "./getThemeProps.js";
@@ -0,0 +1,14 @@
1
+ export interface ThemeWithProps {
2
+ components?: any;
3
+ }
4
+ export type ThemedProps<Theme, Name extends keyof any> = Theme extends {
5
+ components: Record<Name, {
6
+ defaultProps: infer Props;
7
+ }>;
8
+ } ? Props : {};
9
+ export default function useThemeProps<Theme extends ThemeWithProps, Props, Name extends keyof any>(params: {
10
+ props: Props;
11
+ name: Name;
12
+ defaultTheme?: Theme;
13
+ themeId?: string;
14
+ }): Props & ThemedProps<Theme, Name>;
@@ -0,0 +1 @@
1
+ export { default } from "./useThemeWithoutDefault.js";
@@ -0,0 +1 @@
1
+ export default function useThemeWithoutDefault<T = null>(defaultTheme?: T): T;
@@ -0,0 +1,6 @@
1
+ export declare const version: string | undefined;
2
+ export declare const major: number;
3
+ export declare const minor: number;
4
+ export declare const patch: number;
5
+ export declare const prerelease: string | undefined;
6
+ export default version;
@@ -1,6 +1,6 @@
1
- export const version = "6.4.3";
2
- export const major = Number("6");
3
- export const minor = Number("4");
4
- export const patch = Number("3");
5
- export const prerelease = undefined;
1
+ export const version = "7.0.0-alpha.1";
2
+ export const major = Number("7");
3
+ export const minor = Number("0");
4
+ export const patch = Number("0");
5
+ export const prerelease = "alpha.1";
6
6
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "6.4.3",
3
+ "version": "7.0.0-alpha.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.",
@@ -26,14 +26,14 @@
26
26
  "url": "https://opencollective.com/mui-org"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.26.0",
29
+ "@babel/runtime": "^7.26.7",
30
30
  "clsx": "^2.1.1",
31
31
  "csstype": "^3.1.3",
32
32
  "prop-types": "^15.8.1",
33
- "@mui/styled-engine": "^6.4.3",
34
- "@mui/private-theming": "^6.4.3",
35
- "@mui/utils": "^6.4.3",
36
- "@mui/types": "^7.2.21"
33
+ "@mui/private-theming": "7.0.0-alpha.1",
34
+ "@mui/styled-engine": "7.0.0-alpha.1",
35
+ "@mui/utils": "7.0.0-alpha.1",
36
+ "@mui/types": "^7.2.22"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@emotion/react": "^11.5.0",
@@ -61,5 +61,35 @@
61
61
  "node": ">=14.0.0"
62
62
  },
63
63
  "module": "./esm/index.js",
64
+ "exports": {
65
+ ".": {
66
+ "require": {
67
+ "types": "./index.d.ts",
68
+ "default": "./index.js"
69
+ },
70
+ "import": {
71
+ "types": "./esm/index.d.ts",
72
+ "default": "./esm/index.js"
73
+ },
74
+ "mui-modern": {
75
+ "types": "./modern/index.d.ts",
76
+ "default": "./modern/index.js"
77
+ }
78
+ },
79
+ "./*": {
80
+ "require": {
81
+ "types": "./*/index.d.ts",
82
+ "default": "./*/index.js"
83
+ },
84
+ "import": {
85
+ "types": "./esm/*/index.d.ts",
86
+ "default": "./esm/*/index.js"
87
+ },
88
+ "mui-modern": {
89
+ "types": "./modern/*/index.d.ts",
90
+ "default": "./modern/*/index.js"
91
+ }
92
+ }
93
+ },
64
94
  "types": "./index.d.ts"
65
95
  }
@@ -1,2 +1,2 @@
1
- export { default } from './palette';
2
- export * from './palette';
1
+ export { default } from "./palette.js";
2
+ export * from "./palette.js";
@@ -1,5 +1,4 @@
1
- import { PropsFor, SimpleStyleFunction, palette } from '../Box';
2
-
1
+ import { PropsFor, SimpleStyleFunction, palette } from "../Box/index.js";
3
2
  export const color: SimpleStyleFunction<'color'>;
4
3
  export const bgcolor: SimpleStyleFunction<'bgcolor'>;
5
- export type PaletteProps = PropsFor<typeof palette>;
4
+ export type PaletteProps = PropsFor<typeof palette>;
@@ -1,2 +1,2 @@
1
- export { default } from './positions';
2
- export * from './positions';
1
+ export { default } from "./positions.js";
2
+ export * from "./positions.js";
@@ -1,3 +1,2 @@
1
- import { PropsFor, positions } from '../Box';
2
-
3
- export type PositionsProps = PropsFor<typeof positions>;
1
+ import { PropsFor, positions } from "../Box/index.js";
2
+ export type PositionsProps = PropsFor<typeof positions>;
@@ -1,5 +1,5 @@
1
1
  export default function preprocessStyles(input: any): {
2
- variants: any;
3
- style: any;
4
- isProcessed: boolean;
5
- };
2
+ variants: any;
3
+ style: any;
4
+ isProcessed: boolean;
5
+ };
@@ -1 +1 @@
1
- export { default } from './propsToClassKey';
1
+ export { default } from "./propsToClassKey.js";
@@ -1 +1 @@
1
- export default function propsToClassKey(props: object): string;
1
+ export default function propsToClassKey(props: object): string;
@@ -1 +1 @@
1
- export { default } from './responsivePropType';
1
+ export { default } from "./responsivePropType.js";
@@ -1,3 +1,2 @@
1
1
  declare const responsivePropType: object;
2
-
3
- export default responsivePropType;
2
+ export default responsivePropType;
@@ -1 +1 @@
1
- export { default } from './shadows';
1
+ export { default } from "./shadows.js";
@@ -1,3 +1,2 @@
1
- import { PropsFor, shadows } from '../Box';
2
-
3
- export type ShadowsProps = PropsFor<typeof shadows>;
1
+ import { PropsFor, shadows } from "../Box/index.js";
2
+ export type ShadowsProps = PropsFor<typeof shadows>;
package/sizing/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { default } from './sizing';
2
- export * from './sizing';
1
+ export { default } from "./sizing.js";
2
+ export * from "./sizing.js";
@@ -1,5 +1,4 @@
1
- import { PropsFor, SimpleStyleFunction, sizing } from '../Box';
2
-
1
+ import { PropsFor, SimpleStyleFunction, sizing } from "../Box/index.js";
3
2
  export const width: SimpleStyleFunction<'width'>;
4
3
  export const maxWidth: SimpleStyleFunction<'maxWidth'>;
5
4
  export const minWidth: SimpleStyleFunction<'minWidth'>;
@@ -9,4 +8,4 @@ export const minHeight: SimpleStyleFunction<'minHeight'>;
9
8
  export const sizeWidth: SimpleStyleFunction<'sizeWidth'>;
10
9
  export const sizeHeight: SimpleStyleFunction<'sizeHeight'>;
11
10
  export const boxSizing: SimpleStyleFunction<'boxSizing'>;
12
- export type SizingProps = PropsFor<typeof sizing>;
11
+ export type SizingProps = PropsFor<typeof sizing>;
@@ -1,2 +1,2 @@
1
- export { default } from './spacing';
2
- export * from './spacing';
1
+ export { default } from "./spacing.js";
2
+ export * from "./spacing.js";
@@ -1,81 +1,18 @@
1
- import { SimpleStyleFunction, spacing, PropsFor } from '../Box';
2
-
1
+ import { SimpleStyleFunction, spacing, PropsFor } from "../Box/index.js";
3
2
  export type SpacingValueType = string | number | null | undefined;
4
3
  export type SpacingProps = PropsFor<typeof spacing>;
5
- export function createUnarySpacing<Spacing>(theme: { spacing: Spacing }): Spacing extends number
6
- ? (abs: number | string) => number | number
7
- : Spacing extends any[]
8
- ? <Index extends number>(abs: Index | string) => Spacing[Index] | string
9
- : Spacing extends (...args: unknown[]) => unknown
10
- ? Spacing
11
- : // warns in Dev
12
- () => undefined;
13
-
14
- export function createUnaryUnit<Spacing>(
15
- theme: { spacing: Spacing },
16
- themeKey: string,
17
- defaultValue: Spacing,
18
- propName: string,
19
- ): Spacing extends number
20
- ? (abs: SpacingValueType) => number | number
21
- : Spacing extends any[]
22
- ? <Index extends number>(abs: Index | string) => Spacing[Index] | string
23
- : Spacing extends (...args: unknown[]) => unknown
24
- ? Spacing
25
- : // warns in Dev
26
- () => undefined;
27
-
28
- export const margin: SimpleStyleFunction<
29
- | 'm'
30
- | 'mt'
31
- | 'mr'
32
- | 'mb'
33
- | 'ml'
34
- | 'mx'
35
- | 'my'
36
- | 'margin'
37
- | 'marginTop'
38
- | 'marginRight'
39
- | 'marginBottom'
40
- | 'marginLeft'
41
- | 'marginX'
42
- | 'marginY'
43
- | 'marginInline'
44
- | 'marginInlineStart'
45
- | 'marginInlineEnd'
46
- | 'marginBlock'
47
- | 'marginBlockStart'
48
- | 'marginBlockEnd'
49
- >;
50
-
4
+ export function createUnarySpacing<Spacing>(theme: {
5
+ spacing: Spacing;
6
+ }): Spacing extends number ? (abs: number | string) => number | number : Spacing extends any[] ? <Index extends number>(abs: Index | string) => Spacing[Index] | string : Spacing extends (...args: unknown[]) => unknown ? Spacing :
7
+ // warns in Dev
8
+ () => undefined;
9
+ export function createUnaryUnit<Spacing>(theme: {
10
+ spacing: Spacing;
11
+ }, themeKey: string, defaultValue: Spacing, propName: string): Spacing extends number ? (abs: SpacingValueType) => number | number : Spacing extends any[] ? <Index extends number>(abs: Index | string) => Spacing[Index] | string : Spacing extends (...args: unknown[]) => unknown ? Spacing :
12
+ // warns in Dev
13
+ () => undefined;
14
+ export const margin: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd'>;
51
15
  export type MarginProps = PropsFor<typeof margin>;
52
-
53
- export const padding: SimpleStyleFunction<
54
- | 'p'
55
- | 'pt'
56
- | 'pr'
57
- | 'pb'
58
- | 'pl'
59
- | 'px'
60
- | 'py'
61
- | 'padding'
62
- | 'paddingTop'
63
- | 'paddingRight'
64
- | 'paddingBottom'
65
- | 'paddingLeft'
66
- | 'paddingX'
67
- | 'paddingY'
68
- | 'paddingInline'
69
- | 'paddingInlineStart'
70
- | 'paddingInlineEnd'
71
- | 'paddingBlock'
72
- | 'paddingBlockStart'
73
- | 'paddingBlockEnd'
74
- >;
75
-
76
- export function getValue(
77
- transformer: (prop: SpacingValueType) => SpacingValueType,
78
- propValue: SpacingValueType,
79
- ): SpacingValueType;
80
-
81
- export type PaddingProps = PropsFor<typeof padding>;
16
+ export const padding: SimpleStyleFunction<'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
17
+ export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
18
+ export type PaddingProps = PropsFor<typeof padding>;
package/style/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { default } from './style';
2
- export * from './style';
1
+ export { default } from "./style.js";
2
+ export * from "./style.js";
package/style/style.d.ts CHANGED
@@ -1,11 +1,6 @@
1
1
  import { CSSObject } from '@mui/styled-engine';
2
- import { StyleFunction } from '../Box';
3
-
4
- export type TransformFunction = (
5
- cssValue: unknown,
6
- userValue: unknown,
7
- ) => number | string | React.CSSProperties | CSSObject;
8
-
2
+ import { StyleFunction } from "../Box/index.js";
3
+ export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
9
4
  export interface StyleOptions<PropKey> {
10
5
  cssProperty?: PropKey | keyof React.CSSProperties | false;
11
6
  prop: PropKey;
@@ -15,13 +10,10 @@ export interface StyleOptions<PropKey> {
15
10
  themeKey?: string;
16
11
  transform?: TransformFunction;
17
12
  }
18
- export function style<PropKey extends string, Theme extends object>(
19
- options: StyleOptions<PropKey>,
20
- ): StyleFunction<{ [K in PropKey]?: unknown } & { theme?: Theme }> & { filterProps: string[] };
13
+ export function style<PropKey extends string, Theme extends object>(options: StyleOptions<PropKey>): StyleFunction<{ [K in PropKey]?: unknown } & {
14
+ theme?: Theme;
15
+ }> & {
16
+ filterProps: string[];
17
+ };
21
18
  export function getPath<T>(obj: T, path: string | undefined, checkVars?: boolean): null | unknown;
22
- export function getStyleValue(
23
- themeMapping: object | ((arg: any) => any),
24
- transform: TransformFunction | null,
25
- propValueFinal: unknown,
26
- userValue?: unknown,
27
- ): any;
19
+ export function getStyleValue(themeMapping: object | ((arg: any) => any), transform: TransformFunction | null, propValueFinal: unknown, userValue?: unknown): any;