@mui/system 5.9.2 → 5.10.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 (70) hide show
  1. package/Box/Box.spec.d.ts +1 -1
  2. package/CHANGELOG.md +196 -5
  3. package/Container/Container.d.ts +13 -13
  4. package/Container/ContainerProps.d.ts +40 -40
  5. package/Container/containerClasses.d.ts +22 -22
  6. package/Container/createContainer.d.ts +18 -18
  7. package/Container/index.d.ts +1 -1
  8. package/README.md +1 -1
  9. package/Stack/Stack.d.ts +12 -0
  10. package/Stack/Stack.js +62 -0
  11. package/Stack/StackProps.d.ts +42 -0
  12. package/Stack/StackProps.js +5 -0
  13. package/Stack/createStack.d.ts +21 -0
  14. package/Stack/createStack.js +209 -0
  15. package/Stack/index.d.ts +5 -0
  16. package/Stack/index.js +65 -0
  17. package/Stack/package.json +6 -0
  18. package/Stack/stackClasses.d.ts +8 -0
  19. package/Stack/stackClasses.js +17 -0
  20. package/Unstable_Grid/Grid.d.ts +12 -12
  21. package/Unstable_Grid/GridProps.d.ts +162 -162
  22. package/Unstable_Grid/createGrid.d.ts +11 -11
  23. package/Unstable_Grid/gridClasses.d.ts +20 -20
  24. package/Unstable_Grid/gridGenerator.d.ts +26 -26
  25. package/Unstable_Grid/index.d.ts +5 -5
  26. package/breakpoints.d.ts +21 -0
  27. package/createBox.js +3 -1
  28. package/createBox.spec.d.ts +1 -1
  29. package/createStyled.js +30 -11
  30. package/createTheme/createSpacing.d.ts +10 -10
  31. package/cssVars/createCssVarsProvider.js +1 -1
  32. package/cssVars/createCssVarsProvider.spec.d.ts +1 -1
  33. package/cssVars/createGetCssVar.d.ts +5 -5
  34. package/cssVars/cssVarsParser.d.ts +65 -65
  35. package/cssVars/getInitColorSchemeScript.d.ts +45 -45
  36. package/cssVars/index.d.ts +3 -3
  37. package/cssVars/useCurrentColorScheme.d.ts +53 -53
  38. package/esm/Stack/Stack.js +51 -0
  39. package/esm/Stack/StackProps.js +1 -0
  40. package/esm/Stack/createStack.js +179 -0
  41. package/esm/Stack/index.js +5 -0
  42. package/esm/Stack/stackClasses.js +6 -0
  43. package/esm/createBox.js +3 -1
  44. package/esm/createStyled.js +28 -10
  45. package/esm/cssVars/createCssVarsProvider.js +1 -1
  46. package/esm/index.js +3 -1
  47. package/index.d.ts +4 -6
  48. package/index.js +25 -2
  49. package/index.spec.d.ts +1 -1
  50. package/legacy/Stack/Stack.js +51 -0
  51. package/legacy/Stack/StackProps.js +1 -0
  52. package/legacy/Stack/createStack.js +187 -0
  53. package/legacy/Stack/index.js +5 -0
  54. package/legacy/Stack/stackClasses.js +6 -0
  55. package/legacy/createBox.js +5 -1
  56. package/legacy/createStyled.js +31 -10
  57. package/legacy/cssVars/createCssVarsProvider.js +1 -1
  58. package/legacy/index.js +4 -2
  59. package/modern/Stack/Stack.js +51 -0
  60. package/modern/Stack/StackProps.js +1 -0
  61. package/modern/Stack/createStack.js +179 -0
  62. package/modern/Stack/index.js +5 -0
  63. package/modern/Stack/stackClasses.js +6 -0
  64. package/modern/createBox.js +3 -1
  65. package/modern/createStyled.js +28 -10
  66. package/modern/cssVars/createCssVarsProvider.js +1 -1
  67. package/modern/index.js +4 -2
  68. package/package.json +5 -5
  69. package/spacing.d.ts +6 -0
  70. package/styleFunctionSx/styleFunctionSx.spec.d.ts +1 -1
@@ -155,7 +155,7 @@ export default function createCssVarsProvider(options) {
155
155
  })();
156
156
 
157
157
  if (key === resolvedDefaultColorScheme) {
158
- defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
158
+ defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}="${key}"]`] = css;
159
159
  } else {
160
160
  otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
161
161
  }
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.2
1
+ /** @license MUI v5.10.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -53,4 +53,6 @@ export { default as createContainer } from './Container/createContainer';
53
53
  export { default as Container } from './Container';
54
54
  export * from './Container';
55
55
  export { default as Unstable_Grid } from './Unstable_Grid/Grid';
56
- export * from './Unstable_Grid';
56
+ export * from './Unstable_Grid';
57
+ export { default as Stack } from './Stack/Stack';
58
+ export * from './Stack';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "5.9.2",
3
+ "version": "5.10.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "CSS utilities for rapidly laying out custom designs.",
@@ -20,7 +20,7 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/mui/material-ui/issues"
22
22
  },
23
- "homepage": "https://mui.com/system/basics/",
23
+ "homepage": "https://mui.com/system/getting-started/overview/",
24
24
  "funding": {
25
25
  "type": "opencollective",
26
26
  "url": "https://opencollective.com/mui"
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@babel/runtime": "^7.17.2",
47
- "@mui/private-theming": "^5.9.1",
48
- "@mui/styled-engine": "^5.8.7",
47
+ "@mui/private-theming": "^5.9.3",
48
+ "@mui/styled-engine": "^5.10.1",
49
49
  "@mui/types": "^7.1.5",
50
- "@mui/utils": "^5.9.1",
50
+ "@mui/utils": "^5.9.3",
51
51
  "clsx": "^1.2.1",
52
52
  "csstype": "^3.1.0",
53
53
  "prop-types": "^15.8.1"
package/spacing.d.ts CHANGED
@@ -58,4 +58,10 @@ export const padding: SimpleStyleFunction<
58
58
  | 'paddingBlockEnd'
59
59
  >;
60
60
 
61
+ export type SpacingValueType = string | number | null | undefined;
62
+ export function getValue(
63
+ transformer: (prop: SpacingValueType) => SpacingValueType,
64
+ propValue: SpacingValueType,
65
+ ): SpacingValueType;
66
+
61
67
  export type PaddingProps = PropsFor<typeof padding>;
@@ -1 +1 @@
1
- export {};
1
+ export {};