@mui/system 7.0.1 → 7.1.0

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 (283) hide show
  1. package/Box/Box.d.ts +12 -31
  2. package/CHANGELOG.md +157 -0
  3. package/Grid/createGrid.js +1 -2
  4. package/InitColorSchemeScript/InitColorSchemeScript.js +1 -1
  5. package/Stack/createStack.js +1 -2
  6. package/borders/borders.d.ts +2 -1
  7. package/breakpoints/breakpoints.d.ts +1 -1
  8. package/compose/compose.d.ts +14 -1
  9. package/compose/index.d.ts +1 -1
  10. package/cssGrid/cssGrid.d.ts +2 -1
  11. package/cssVars/cssVarsParser.d.ts +1 -1
  12. package/display/display.d.ts +2 -1
  13. package/esm/Box/Box.d.ts +12 -31
  14. package/esm/Grid/createGrid.js +1 -2
  15. package/esm/InitColorSchemeScript/InitColorSchemeScript.js +1 -1
  16. package/esm/Stack/createStack.js +1 -2
  17. package/esm/borders/borders.d.ts +2 -1
  18. package/esm/breakpoints/breakpoints.d.ts +1 -1
  19. package/esm/compose/compose.d.ts +14 -1
  20. package/esm/compose/index.d.ts +1 -1
  21. package/esm/cssGrid/cssGrid.d.ts +2 -1
  22. package/esm/cssVars/cssVarsParser.d.ts +1 -1
  23. package/esm/display/display.d.ts +2 -1
  24. package/esm/flexbox/flexbox.d.ts +15 -1
  25. package/esm/index.d.ts +10 -0
  26. package/esm/index.js +1 -1
  27. package/esm/memoTheme.d.ts +1 -1
  28. package/esm/palette/palette.d.ts +2 -1
  29. package/esm/positions/positions.d.ts +2 -1
  30. package/esm/shadows/shadows.d.ts +2 -1
  31. package/esm/sizing/sizing.d.ts +2 -1
  32. package/esm/spacing/spacing.d.ts +2 -1
  33. package/esm/style/style.d.ts +5 -1
  34. package/esm/styleFunctionSx/defaultSxConfig.d.ts +1 -2
  35. package/esm/typography/typography.d.ts +2 -1
  36. package/esm/useMediaQuery/useMediaQuery.js +3 -0
  37. package/esm/useThemeProps/getThemeProps.d.ts +0 -5
  38. package/esm/version/index.js +3 -3
  39. package/flexbox/flexbox.d.ts +15 -1
  40. package/index.d.ts +10 -0
  41. package/index.js +1 -1
  42. package/memoTheme.d.ts +1 -1
  43. package/package.json +7 -15
  44. package/palette/palette.d.ts +2 -1
  45. package/positions/positions.d.ts +2 -1
  46. package/shadows/shadows.d.ts +2 -1
  47. package/sizing/sizing.d.ts +2 -1
  48. package/spacing/spacing.d.ts +2 -1
  49. package/style/style.d.ts +5 -1
  50. package/styleFunctionSx/defaultSxConfig.d.ts +1 -2
  51. package/typography/typography.d.ts +2 -1
  52. package/useMediaQuery/useMediaQuery.js +3 -0
  53. package/useThemeProps/getThemeProps.d.ts +0 -5
  54. package/version/index.js +3 -3
  55. package/modern/Box/Box.d.ts +0 -72
  56. package/modern/Box/Box.js +0 -30
  57. package/modern/Box/boxClasses.d.ts +0 -7
  58. package/modern/Box/boxClasses.js +0 -3
  59. package/modern/Box/index.d.ts +0 -4
  60. package/modern/Box/index.js +0 -3
  61. package/modern/CSSProperties.d.ts +0 -7
  62. package/modern/Container/Container.d.ts +0 -13
  63. package/modern/Container/Container.js +0 -61
  64. package/modern/Container/ContainerProps.d.ts +0 -40
  65. package/modern/Container/ContainerProps.js +0 -1
  66. package/modern/Container/containerClasses.d.ts +0 -22
  67. package/modern/Container/containerClasses.js +0 -7
  68. package/modern/Container/createContainer.d.ts +0 -18
  69. package/modern/Container/createContainer.js +0 -149
  70. package/modern/Container/index.d.ts +0 -4
  71. package/modern/Container/index.js +0 -3
  72. package/modern/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
  73. package/modern/DefaultPropsProvider/DefaultPropsProvider.js +0 -64
  74. package/modern/DefaultPropsProvider/index.d.ts +0 -1
  75. package/modern/DefaultPropsProvider/index.js +0 -1
  76. package/modern/GlobalStyles/GlobalStyles.d.ts +0 -17
  77. package/modern/GlobalStyles/GlobalStyles.js +0 -37
  78. package/modern/GlobalStyles/index.d.ts +0 -2
  79. package/modern/GlobalStyles/index.js +0 -2
  80. package/modern/Grid/Grid.d.ts +0 -13
  81. package/modern/Grid/Grid.js +0 -106
  82. package/modern/Grid/GridProps.d.ts +0 -103
  83. package/modern/Grid/GridProps.js +0 -1
  84. package/modern/Grid/createGrid.d.ts +0 -13
  85. package/modern/Grid/createGrid.js +0 -155
  86. package/modern/Grid/deleteLegacyGridProps.d.ts +0 -11
  87. package/modern/Grid/deleteLegacyGridProps.js +0 -41
  88. package/modern/Grid/gridClasses.d.ts +0 -20
  89. package/modern/Grid/gridClasses.js +0 -19
  90. package/modern/Grid/gridGenerator.d.ts +0 -42
  91. package/modern/Grid/gridGenerator.js +0 -193
  92. package/modern/Grid/index.d.ts +0 -7
  93. package/modern/Grid/index.js +0 -7
  94. package/modern/Grid/traverseBreakpoints.d.ts +0 -7
  95. package/modern/Grid/traverseBreakpoints.js +0 -42
  96. package/modern/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
  97. package/modern/InitColorSchemeScript/InitColorSchemeScript.js +0 -78
  98. package/modern/InitColorSchemeScript/index.d.ts +0 -2
  99. package/modern/InitColorSchemeScript/index.js +0 -1
  100. package/modern/RtlProvider/index.d.ts +0 -8
  101. package/modern/RtlProvider/index.js +0 -24
  102. package/modern/Stack/Stack.d.ts +0 -14
  103. package/modern/Stack/Stack.js +0 -62
  104. package/modern/Stack/StackProps.d.ts +0 -53
  105. package/modern/Stack/StackProps.js +0 -1
  106. package/modern/Stack/createStack.d.ts +0 -24
  107. package/modern/Stack/createStack.js +0 -173
  108. package/modern/Stack/index.d.ts +0 -5
  109. package/modern/Stack/index.js +0 -5
  110. package/modern/Stack/stackClasses.d.ts +0 -8
  111. package/modern/Stack/stackClasses.js +0 -7
  112. package/modern/ThemeProvider/ThemeProvider.d.ts +0 -24
  113. package/modern/ThemeProvider/ThemeProvider.js +0 -97
  114. package/modern/ThemeProvider/index.d.ts +0 -2
  115. package/modern/ThemeProvider/index.js +0 -1
  116. package/modern/borders/borders.d.ts +0 -14
  117. package/modern/borders/borders.js +0 -49
  118. package/modern/borders/index.d.ts +0 -2
  119. package/modern/borders/index.js +0 -2
  120. package/modern/breakpoints/breakpoints.d.ts +0 -19
  121. package/modern/breakpoints/breakpoints.js +0 -171
  122. package/modern/breakpoints/index.d.ts +0 -2
  123. package/modern/breakpoints/index.js +0 -2
  124. package/modern/colorManipulator/colorManipulator.d.ts +0 -25
  125. package/modern/colorManipulator/colorManipulator.js +0 -349
  126. package/modern/colorManipulator/index.d.ts +0 -1
  127. package/modern/colorManipulator/index.js +0 -1
  128. package/modern/compose/compose.d.ts +0 -2
  129. package/modern/compose/compose.js +0 -24
  130. package/modern/compose/index.d.ts +0 -1
  131. package/modern/compose/index.js +0 -1
  132. package/modern/createBox/createBox.d.ts +0 -9
  133. package/modern/createBox/createBox.js +0 -35
  134. package/modern/createBox/index.d.ts +0 -1
  135. package/modern/createBox/index.js +0 -1
  136. package/modern/createBreakpoints/createBreakpoints.d.ts +0 -78
  137. package/modern/createBreakpoints/createBreakpoints.js +0 -81
  138. package/modern/createBreakpoints/index.d.ts +0 -3
  139. package/modern/createBreakpoints/index.js +0 -3
  140. package/modern/createStyled/createStyled.d.ts +0 -27
  141. package/modern/createStyled/createStyled.js +0 -276
  142. package/modern/createStyled/index.d.ts +0 -2
  143. package/modern/createStyled/index.js +0 -2
  144. package/modern/createTheme/applyStyles.d.ts +0 -67
  145. package/modern/createTheme/applyStyles.js +0 -87
  146. package/modern/createTheme/createSpacing.d.ts +0 -10
  147. package/modern/createTheme/createSpacing.js +0 -31
  148. package/modern/createTheme/createTheme.d.ts +0 -54
  149. package/modern/createTheme/createTheme.js +0 -49
  150. package/modern/createTheme/index.d.ts +0 -4
  151. package/modern/createTheme/index.js +0 -3
  152. package/modern/createTheme/shape.d.ts +0 -6
  153. package/modern/createTheme/shape.js +0 -4
  154. package/modern/cssContainerQueries/cssContainerQueries.d.ts +0 -23
  155. package/modern/cssContainerQueries/cssContainerQueries.js +0 -69
  156. package/modern/cssContainerQueries/index.d.ts +0 -3
  157. package/modern/cssContainerQueries/index.js +0 -2
  158. package/modern/cssGrid/cssGrid.d.ts +0 -15
  159. package/modern/cssGrid/cssGrid.js +0 -85
  160. package/modern/cssGrid/index.d.ts +0 -2
  161. package/modern/cssGrid/index.js +0 -2
  162. package/modern/cssVars/createCssVarsProvider.d.ts +0 -141
  163. package/modern/cssVars/createCssVarsProvider.js +0 -338
  164. package/modern/cssVars/createCssVarsTheme.d.ts +0 -15
  165. package/modern/cssVars/createCssVarsTheme.js +0 -21
  166. package/modern/cssVars/createGetCssVar.d.ts +0 -5
  167. package/modern/cssVars/createGetCssVar.js +0 -22
  168. package/modern/cssVars/cssVarsParser.d.ts +0 -64
  169. package/modern/cssVars/cssVarsParser.js +0 -129
  170. package/modern/cssVars/getColorSchemeSelector.d.ts +0 -1
  171. package/modern/cssVars/getColorSchemeSelector.js +0 -26
  172. package/modern/cssVars/index.d.ts +0 -8
  173. package/modern/cssVars/index.js +0 -5
  174. package/modern/cssVars/localStorageManager.d.ts +0 -34
  175. package/modern/cssVars/localStorageManager.js +0 -51
  176. package/modern/cssVars/prepareCssVars.d.ts +0 -16
  177. package/modern/cssVars/prepareCssVars.js +0 -153
  178. package/modern/cssVars/prepareTypographyVars.d.ts +0 -4
  179. package/modern/cssVars/prepareTypographyVars.js +0 -11
  180. package/modern/cssVars/useCurrentColorScheme.d.ts +0 -56
  181. package/modern/cssVars/useCurrentColorScheme.js +0 -228
  182. package/modern/display/display.d.ts +0 -3
  183. package/modern/display/display.js +0 -27
  184. package/modern/display/index.d.ts +0 -2
  185. package/modern/display/index.js +0 -2
  186. package/modern/flexbox/flexbox.d.ts +0 -3
  187. package/modern/flexbox/flexbox.js +0 -43
  188. package/modern/flexbox/index.d.ts +0 -2
  189. package/modern/flexbox/index.js +0 -2
  190. package/modern/getThemeValue/getThemeValue.d.ts +0 -1
  191. package/modern/getThemeValue/getThemeValue.js +0 -51
  192. package/modern/getThemeValue/index.d.ts +0 -2
  193. package/modern/getThemeValue/index.js +0 -2
  194. package/modern/index.d.ts +0 -80
  195. package/modern/index.js +0 -75
  196. package/modern/memoTheme.d.ts +0 -12
  197. package/modern/memoTheme.js +0 -28
  198. package/modern/memoize/index.d.ts +0 -1
  199. package/modern/memoize/index.js +0 -1
  200. package/modern/memoize/memoize.d.ts +0 -1
  201. package/modern/memoize/memoize.js +0 -9
  202. package/modern/merge/index.d.ts +0 -1
  203. package/modern/merge/index.js +0 -1
  204. package/modern/merge/merge.d.ts +0 -1
  205. package/modern/merge/merge.js +0 -10
  206. package/modern/package.json +0 -1
  207. package/modern/palette/index.d.ts +0 -2
  208. package/modern/palette/index.js +0 -2
  209. package/modern/palette/palette.d.ts +0 -5
  210. package/modern/palette/palette.js +0 -26
  211. package/modern/positions/index.d.ts +0 -2
  212. package/modern/positions/index.js +0 -2
  213. package/modern/positions/positions.d.ts +0 -3
  214. package/modern/positions/positions.js +0 -22
  215. package/modern/preprocessStyles.d.ts +0 -5
  216. package/modern/preprocessStyles.js +0 -25
  217. package/modern/propsToClassKey/index.d.ts +0 -1
  218. package/modern/propsToClassKey/index.js +0 -1
  219. package/modern/propsToClassKey/propsToClassKey.d.ts +0 -1
  220. package/modern/propsToClassKey/propsToClassKey.js +0 -25
  221. package/modern/responsivePropType/index.d.ts +0 -1
  222. package/modern/responsivePropType/index.js +0 -1
  223. package/modern/responsivePropType/responsivePropType.d.ts +0 -2
  224. package/modern/responsivePropType/responsivePropType.js +0 -3
  225. package/modern/shadows/index.d.ts +0 -1
  226. package/modern/shadows/index.js +0 -1
  227. package/modern/shadows/shadows.d.ts +0 -3
  228. package/modern/shadows/shadows.js +0 -6
  229. package/modern/sizing/index.d.ts +0 -2
  230. package/modern/sizing/index.js +0 -2
  231. package/modern/sizing/sizing.d.ts +0 -12
  232. package/modern/sizing/sizing.js +0 -64
  233. package/modern/spacing/index.d.ts +0 -2
  234. package/modern/spacing/index.js +0 -2
  235. package/modern/spacing/spacing.d.ts +0 -19
  236. package/modern/spacing/spacing.js +0 -157
  237. package/modern/style/index.d.ts +0 -2
  238. package/modern/style/index.js +0 -2
  239. package/modern/style/style.d.ts +0 -19
  240. package/modern/style/style.js +0 -75
  241. package/modern/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
  242. package/modern/styleFunctionSx/AliasesCSSProperties.js +0 -1
  243. package/modern/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
  244. package/modern/styleFunctionSx/OverwriteCSSProperties.js +0 -1
  245. package/modern/styleFunctionSx/StandardCssProperties.d.ts +0 -2
  246. package/modern/styleFunctionSx/StandardCssProperties.js +0 -1
  247. package/modern/styleFunctionSx/defaultSxConfig.d.ts +0 -15
  248. package/modern/styleFunctionSx/defaultSxConfig.js +0 -294
  249. package/modern/styleFunctionSx/extendSxProp.d.ts +0 -4
  250. package/modern/styleFunctionSx/extendSxProp.js +0 -51
  251. package/modern/styleFunctionSx/index.d.ts +0 -9
  252. package/modern/styleFunctionSx/index.js +0 -4
  253. package/modern/styleFunctionSx/styleFunctionSx.d.ts +0 -62
  254. package/modern/styleFunctionSx/styleFunctionSx.js +0 -127
  255. package/modern/styled/index.d.ts +0 -1
  256. package/modern/styled/index.js +0 -1
  257. package/modern/styled/styled.d.ts +0 -3
  258. package/modern/styled/styled.js +0 -3
  259. package/modern/typography/index.d.ts +0 -2
  260. package/modern/typography/index.js +0 -2
  261. package/modern/typography/typography.d.ts +0 -12
  262. package/modern/typography/typography.js +0 -37
  263. package/modern/useMediaQuery/index.d.ts +0 -2
  264. package/modern/useMediaQuery/index.js +0 -2
  265. package/modern/useMediaQuery/useMediaQuery.d.ts +0 -32
  266. package/modern/useMediaQuery/useMediaQuery.js +0 -118
  267. package/modern/useTheme/index.d.ts +0 -2
  268. package/modern/useTheme/index.js +0 -2
  269. package/modern/useTheme/useTheme.d.ts +0 -2
  270. package/modern/useTheme/useTheme.js +0 -9
  271. package/modern/useThemeProps/getThemeProps.d.ts +0 -16
  272. package/modern/useThemeProps/getThemeProps.js +0 -12
  273. package/modern/useThemeProps/index.d.ts +0 -3
  274. package/modern/useThemeProps/index.js +0 -2
  275. package/modern/useThemeProps/useThemeProps.d.ts +0 -14
  276. package/modern/useThemeProps/useThemeProps.js +0 -20
  277. package/modern/useThemeWithoutDefault/index.d.ts +0 -1
  278. package/modern/useThemeWithoutDefault/index.js +0 -1
  279. package/modern/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
  280. package/modern/useThemeWithoutDefault/useThemeWithoutDefault.js +0 -12
  281. package/modern/version/index.d.ts +0 -6
  282. package/modern/version/index.js +0 -6
  283. package/tsconfig.build.tsbuildinfo +0 -1
@@ -1,4 +1,4 @@
1
- import { SimpleStyleFunction, spacing, PropsFor } from "../Box/index.js";
1
+ import { SimpleStyleFunction, PropsFor } from "../style/index.js";
2
2
  export type SpacingValueType = string | number | null | undefined;
3
3
  export type SpacingProps = PropsFor<typeof spacing>;
4
4
  export function createUnarySpacing<Spacing>(theme: {
@@ -14,6 +14,7 @@ export function createUnaryUnit<Spacing>(theme: {
14
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'>;
15
15
  export type MarginProps = PropsFor<typeof margin>;
16
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
+ declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
17
18
  export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
18
19
  export type PaddingProps = PropsFor<typeof padding>;
19
20
  export default spacing;
@@ -1,5 +1,9 @@
1
1
  import { CSSObject } from '@mui/styled-engine';
2
- import { StyleFunction } from "../Box/index.js";
2
+ export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
3
+ export type StyleFunction<Props> = (props: Props) => any;
4
+ export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
5
+ filterProps: string[];
6
+ };
3
7
  export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
4
8
  export interface StyleOptions<PropKey> {
5
9
  cssProperty?: PropKey | keyof React.CSSProperties | false;
@@ -1,5 +1,4 @@
1
- import { StyleFunction } from "../Box/index.js";
2
- import { TransformFunction } from "../style/index.js";
1
+ import { StyleFunction, TransformFunction } from "../style/index.js";
3
2
  type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
4
3
  export interface SxConfigRecord {
5
4
  cssProperty?: keyof React.CSSProperties | false;
@@ -1,4 +1,4 @@
1
- import { PropsFor, SimpleStyleFunction, typography } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
2
  export const typographyVariant: SimpleStyleFunction<'typography'>;
3
3
  export const fontFamily: SimpleStyleFunction<'fontFamily'>;
4
4
  export const fontSize: SimpleStyleFunction<'fontSize'>;
@@ -8,5 +8,6 @@ export const letterSpacing: SimpleStyleFunction<'letterSpacing'>;
8
8
  export const lineHeight: SimpleStyleFunction<'lineHeight'>;
9
9
  export const textAlign: SimpleStyleFunction<'textAlign'>;
10
10
  export const textTransform: SimpleStyleFunction<'textTransform'>;
11
+ declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
11
12
  export type TypographyProps = PropsFor<typeof typography>;
12
13
  export default typography;
@@ -102,6 +102,9 @@ export function unstable_createUseMediaQuery(params = {}) {
102
102
  }
103
103
  let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
104
104
  query = query.replace(/^@media( ?)/m, '');
105
+ if (query.includes('print')) {
106
+ console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
107
+ }
105
108
  const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
106
109
  const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
107
110
  if (process.env.NODE_ENV !== 'production') {
@@ -1,9 +1,4 @@
1
1
  export {};
2
- interface ThemeWithProps<Components> {
3
- components?: { [K in keyof Components]: {
4
- defaultProps?: Partial<Components[K]>;
5
- } };
6
- }
7
2
  type ThemedProps<Theme, Name extends keyof any> = Theme extends {
8
3
  components: Record<Name, {
9
4
  defaultProps: infer Props;
@@ -1,6 +1,6 @@
1
- export const version = "7.0.1";
1
+ export const version = "7.1.0";
2
2
  export const major = Number("7");
3
- export const minor = Number("0");
4
- export const patch = Number("1");
3
+ export const minor = Number("1");
4
+ export const patch = Number("0");
5
5
  export const prerelease = undefined;
6
6
  export default version;
@@ -1,3 +1,17 @@
1
- import { PropsFor, flexbox } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
+ export const flexBasis: SimpleStyleFunction<'flexBasis'>;
3
+ export const flexDirection: SimpleStyleFunction<'flexDirection'>;
4
+ export const flexWrap: SimpleStyleFunction<'flexWrap'>;
5
+ export const justifyContent: SimpleStyleFunction<'justifyContent'>;
6
+ export const alignItems: SimpleStyleFunction<'alignItems'>;
7
+ export const alignContent: SimpleStyleFunction<'alignContent'>;
8
+ export const order: SimpleStyleFunction<'order'>;
9
+ export const flex: SimpleStyleFunction<'flex'>;
10
+ export const flexGrow: SimpleStyleFunction<'flexGrow'>;
11
+ export const flexShrink: SimpleStyleFunction<'flexShrink'>;
12
+ export const alignSelf: SimpleStyleFunction<'alignSelf'>;
13
+ export const justifyItems: SimpleStyleFunction<'justifyItems'>;
14
+ export const justifySelf: SimpleStyleFunction<'justifySelf'>;
15
+ declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
2
16
  export type FlexboxProps = PropsFor<typeof flexbox>;
3
17
  export default flexbox;
package/index.d.ts CHANGED
@@ -1,17 +1,26 @@
1
1
  // disable automatic export
2
2
  export {};
3
3
  export * from "./borders/index.js";
4
+ export { default as borders } from "./borders/index.js";
4
5
  export { default as breakpoints, handleBreakpoints, mergeBreakpointsInOrder } from "./breakpoints/index.js";
5
6
  export { default as cssContainerQueries, type CssContainerQueries } from "./cssContainerQueries/index.js";
6
7
  export { default as compose } from "./compose/index.js";
7
8
  export * from "./display/index.js";
9
+ export { default as display } from "./display/index.js";
8
10
  export * from "./flexbox/index.js";
11
+ export { default as flexbox } from "./flexbox/index.js";
9
12
  export * from "./cssGrid/index.js";
13
+ export { default as grid } from "./cssGrid/index.js";
10
14
  export * from "./palette/index.js";
15
+ export { default as palette } from "./palette/index.js";
11
16
  export * from "./positions/index.js";
17
+ export { default as positions } from "./positions/index.js";
12
18
  export * from "./shadows/index.js";
19
+ export { default as shadows } from "./shadows/index.js";
13
20
  export * from "./sizing/index.js";
21
+ export { default as sizing } from "./sizing/index.js";
14
22
  export * from "./typography/index.js";
23
+ export { default as typography } from "./typography/index.js";
15
24
  export { default as unstable_getThemeValue } from "./getThemeValue/index.js";
16
25
 
17
26
  /**
@@ -29,6 +38,7 @@ export type { GlobalStylesProps } from "./GlobalStyles/index.js";
29
38
  export * from "./style/index.js";
30
39
  export { default as style } from "./style/index.js";
31
40
  export * from "./spacing/index.js";
41
+ export { default as spacing } from "./spacing/index.js";
32
42
  export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from "./styleFunctionSx/index.js";
33
43
  export * from "./styleFunctionSx/index.js";
34
44
 
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v7.0.1
2
+ * @mui/system v7.1.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/memoTheme.d.ts CHANGED
@@ -8,5 +8,5 @@ type ThemeStyleFunction<T> = (props: {
8
8
  */
9
9
  export default function unstable_memoTheme<T>(styleFn: ThemeStyleFunction<T>): (props: {
10
10
  theme: T;
11
- }) => string | number | boolean | import("@mui/styled-engine").CSSObject | import("@mui/styled-engine").ComponentSelector | import("@mui/styled-engine").Keyframes | import("@mui/styled-engine").SerializedStyles | import("@mui/styled-engine").ArrayCSSInterpolation | null;
11
+ }) => string | number | boolean | import("@mui/styled-engine").ComponentSelector | import("@mui/styled-engine").Keyframes | import("@mui/styled-engine").SerializedStyles | import("@mui/styled-engine").CSSObject | import("@mui/styled-engine").ArrayCSSInterpolation | null;
12
12
  export {};
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "7.0.1",
4
- "private": false,
3
+ "version": "7.1.0",
5
4
  "author": "MUI Team",
6
5
  "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.",
7
6
  "main": "./index.js",
@@ -26,14 +25,14 @@
26
25
  "url": "https://opencollective.com/mui-org"
27
26
  },
28
27
  "dependencies": {
29
- "@babel/runtime": "^7.26.10",
28
+ "@babel/runtime": "^7.27.1",
30
29
  "clsx": "^2.1.1",
31
30
  "csstype": "^3.1.3",
32
31
  "prop-types": "^15.8.1",
33
- "@mui/private-theming": "^7.0.1",
34
- "@mui/styled-engine": "^7.0.1",
35
- "@mui/types": "^7.4.0",
36
- "@mui/utils": "^7.0.1"
32
+ "@mui/types": "^7.4.2",
33
+ "@mui/private-theming": "^7.1.0",
34
+ "@mui/utils": "^7.1.0",
35
+ "@mui/styled-engine": "^7.1.0"
37
36
  },
38
37
  "peerDependencies": {
39
38
  "@emotion/react": "^11.5.0",
@@ -60,6 +59,7 @@
60
59
  "engines": {
61
60
  "node": ">=14.0.0"
62
61
  },
62
+ "private": false,
63
63
  "module": "./esm/index.js",
64
64
  "exports": {
65
65
  "./package.json": "./package.json",
@@ -71,10 +71,6 @@
71
71
  "import": {
72
72
  "types": "./esm/index.d.ts",
73
73
  "default": "./esm/index.js"
74
- },
75
- "mui-modern": {
76
- "types": "./modern/index.d.ts",
77
- "default": "./modern/index.js"
78
74
  }
79
75
  },
80
76
  "./*": {
@@ -85,10 +81,6 @@
85
81
  "import": {
86
82
  "types": "./esm/*/index.d.ts",
87
83
  "default": "./esm/*/index.js"
88
- },
89
- "mui-modern": {
90
- "types": "./modern/*/index.d.ts",
91
- "default": "./modern/*/index.js"
92
84
  }
93
85
  },
94
86
  "./esm": null,
@@ -1,5 +1,6 @@
1
- import { PropsFor, SimpleStyleFunction, palette } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
2
  export const color: SimpleStyleFunction<'color'>;
3
3
  export const bgcolor: SimpleStyleFunction<'bgcolor'>;
4
+ declare const palette: SimpleStyleFunction<'bgcolor' | 'color'>;
4
5
  export type PaletteProps = PropsFor<typeof palette>;
5
6
  export default palette;
@@ -1,3 +1,4 @@
1
- import { PropsFor, positions } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
+ declare const positions: SimpleStyleFunction<'zIndex' | 'position' | 'top' | 'right' | 'bottom' | 'left'>;
2
3
  export type PositionsProps = PropsFor<typeof positions>;
3
4
  export default positions;
@@ -1,3 +1,4 @@
1
- import { PropsFor, shadows } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
+ declare const shadows: SimpleStyleFunction<'boxShadow'>;
2
3
  export type ShadowsProps = PropsFor<typeof shadows>;
3
4
  export default shadows;
@@ -1,4 +1,4 @@
1
- import { PropsFor, SimpleStyleFunction, sizing } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
2
  export const width: SimpleStyleFunction<'width'>;
3
3
  export const maxWidth: SimpleStyleFunction<'maxWidth'>;
4
4
  export const minWidth: SimpleStyleFunction<'minWidth'>;
@@ -8,5 +8,6 @@ export const minHeight: SimpleStyleFunction<'minHeight'>;
8
8
  export const sizeWidth: SimpleStyleFunction<'sizeWidth'>;
9
9
  export const sizeHeight: SimpleStyleFunction<'sizeHeight'>;
10
10
  export const boxSizing: SimpleStyleFunction<'boxSizing'>;
11
+ declare const sizing: SimpleStyleFunction<'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'sizeWidth' | 'sizeHeight' | 'boxSizing'>;
11
12
  export type SizingProps = PropsFor<typeof sizing>;
12
13
  export default sizing;
@@ -1,4 +1,4 @@
1
- import { SimpleStyleFunction, spacing, PropsFor } from "../Box/index.js";
1
+ import { SimpleStyleFunction, PropsFor } from "../style/index.js";
2
2
  export type SpacingValueType = string | number | null | undefined;
3
3
  export type SpacingProps = PropsFor<typeof spacing>;
4
4
  export function createUnarySpacing<Spacing>(theme: {
@@ -14,6 +14,7 @@ export function createUnaryUnit<Spacing>(theme: {
14
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'>;
15
15
  export type MarginProps = PropsFor<typeof margin>;
16
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
+ declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
17
18
  export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
18
19
  export type PaddingProps = PropsFor<typeof padding>;
19
20
  export default spacing;
package/style/style.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { CSSObject } from '@mui/styled-engine';
2
- import { StyleFunction } from "../Box/index.js";
2
+ export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
3
+ export type StyleFunction<Props> = (props: Props) => any;
4
+ export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
5
+ filterProps: string[];
6
+ };
3
7
  export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
4
8
  export interface StyleOptions<PropKey> {
5
9
  cssProperty?: PropKey | keyof React.CSSProperties | false;
@@ -1,5 +1,4 @@
1
- import { StyleFunction } from "../Box/index.js";
2
- import { TransformFunction } from "../style/index.js";
1
+ import { StyleFunction, TransformFunction } from "../style/index.js";
3
2
  type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
4
3
  export interface SxConfigRecord {
5
4
  cssProperty?: keyof React.CSSProperties | false;
@@ -1,4 +1,4 @@
1
- import { PropsFor, SimpleStyleFunction, typography } from "../Box/index.js";
1
+ import { PropsFor, SimpleStyleFunction } from "../style/index.js";
2
2
  export const typographyVariant: SimpleStyleFunction<'typography'>;
3
3
  export const fontFamily: SimpleStyleFunction<'fontFamily'>;
4
4
  export const fontSize: SimpleStyleFunction<'fontSize'>;
@@ -8,5 +8,6 @@ export const letterSpacing: SimpleStyleFunction<'letterSpacing'>;
8
8
  export const lineHeight: SimpleStyleFunction<'lineHeight'>;
9
9
  export const textAlign: SimpleStyleFunction<'textAlign'>;
10
10
  export const textTransform: SimpleStyleFunction<'textTransform'>;
11
+ declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
11
12
  export type TypographyProps = PropsFor<typeof typography>;
12
13
  export default typography;
@@ -110,6 +110,9 @@ function unstable_createUseMediaQuery(params = {}) {
110
110
  }
111
111
  let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
112
112
  query = query.replace(/^@media( ?)/m, '');
113
+ if (query.includes('print')) {
114
+ console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
115
+ }
113
116
  const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
114
117
  const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
115
118
  if (process.env.NODE_ENV !== 'production') {
@@ -1,9 +1,4 @@
1
1
  export {};
2
- interface ThemeWithProps<Components> {
3
- components?: { [K in keyof Components]: {
4
- defaultProps?: Partial<Components[K]>;
5
- } };
6
- }
7
2
  type ThemedProps<Theme, Name extends keyof any> = Theme extends {
8
3
  components: Record<Name, {
9
4
  defaultProps: infer Props;
package/version/index.js CHANGED
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
7
- const version = exports.version = "7.0.1";
7
+ const version = exports.version = "7.1.0";
8
8
  const major = exports.major = Number("7");
9
- const minor = exports.minor = Number("0");
10
- const patch = exports.patch = Number("1");
9
+ const minor = exports.minor = Number("1");
10
+ const patch = exports.patch = Number("0");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;
@@ -1,72 +0,0 @@
1
- import * as React from 'react';
2
- import { OverridableComponent, OverrideProps } from '@mui/types';
3
- import { Theme as SystemTheme } from "../createTheme/index.js";
4
- import { SxProps, AllSystemCSSProperties, ResponsiveStyleValue, OverwriteCSSProperties, AliasesCSSProperties } from "../styleFunctionSx/index.js";
5
- export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
6
- export type StyleFunction<Props> = (props: Props) => any;
7
- export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
8
- filterProps: string[];
9
- };
10
-
11
- // borders.js
12
- export declare const borders: SimpleStyleFunction<'border' | 'borderTop' | 'borderRight' | 'borderBottom' | 'borderLeft' | 'borderColor' | 'borderRadius'>;
13
- export declare const display: SimpleStyleFunction<'display' | 'displayPrint' | 'overflow' | 'textOverflow' | 'visibility' | 'whiteSpace'>;
14
- export declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
15
- export declare const grid: SimpleStyleFunction<'gap' | 'columnGap' | 'rowGap' | 'gridColumn' | 'gridRow' | 'gridAutoFlow' | 'gridAutoColumns' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'gridTemplateAreas' | 'gridArea'>;
16
- export declare const palette: SimpleStyleFunction<'bgcolor' | 'color'>;
17
- export declare const positions: SimpleStyleFunction<'zIndex' | 'position' | 'top' | 'right' | 'bottom' | 'left'>;
18
- export declare const shadows: SimpleStyleFunction<'boxShadow'>;
19
- export declare const sizing: SimpleStyleFunction<'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'sizeWidth' | 'sizeHeight' | 'boxSizing'>;
20
- export declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
21
- export declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
22
-
23
- // compose.js
24
- /**
25
- * given a list of StyleFunction return the intersection of the props each individual
26
- * StyleFunction requires.
27
- *
28
- * If `firstFn` requires { color: string } and `secondFn` requires { spacing: number }
29
- * their composed function requires { color: string, spacing: number }
30
- */
31
- type ComposedArg<T> = T extends Array<(arg: infer P) => any> ? P : never;
32
- type ComposedOwnerState<T> = ComposedArg<T>;
33
- export type ComposedStyleFunction<T extends Array<StyleFunction<any>>> = StyleFunction<ComposedOwnerState<T>> & {
34
- filterProps: string[];
35
- };
36
- export interface CustomSystemProps extends AliasesCSSProperties, OverwriteCSSProperties {}
37
- export type SimpleSystemKeys = keyof PropsFor<ComposedStyleFunction<[typeof borders, typeof display, typeof flexbox, typeof grid, typeof palette, typeof positions, typeof shadows, typeof sizing, typeof spacing, typeof typography]>>;
38
-
39
- // The SimpleSystemKeys are subset of the AllSystemCSSProperties, so this should be ok
40
- // This is needed as these are used as keys inside AllSystemCSSProperties
41
- type StandardSystemKeys = Extract<SimpleSystemKeys, keyof AllSystemCSSProperties>;
42
- export type SystemProps<Theme extends object = {}> = { [K in StandardSystemKeys]?: ResponsiveStyleValue<AllSystemCSSProperties[K]> | ((theme: Theme) => ResponsiveStyleValue<AllSystemCSSProperties[K]>) };
43
- export interface BoxOwnProps<Theme extends object = SystemTheme> extends SystemProps<Theme> {
44
- children?: React.ReactNode;
45
- ref?: React.Ref<unknown>;
46
- /**
47
- * The system prop that allows defining system overrides as well as additional CSS styles.
48
- */
49
- sx?: SxProps<Theme>;
50
- }
51
- export interface BoxTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div', Theme extends object = SystemTheme> {
52
- props: AdditionalProps & BoxOwnProps<Theme>;
53
- defaultComponent: RootComponent;
54
- }
55
-
56
- /**
57
- *
58
- * Demos:
59
- *
60
- * - [Box (Joy UI)](https://mui.com/joy-ui/react-box/)
61
- * - [Box (Material UI)](https://mui.com/material-ui/react-box/)
62
- * - [Box (MUI System)](https://mui.com/system/react-box/)
63
- *
64
- * API:
65
- *
66
- * - [Box API](https://mui.com/system/api/box/)
67
- */
68
- declare const Box: OverridableComponent<BoxTypeMap>;
69
- export type BoxProps<RootComponent extends React.ElementType = BoxTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<BoxTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
70
- component?: React.ElementType;
71
- };
72
- export default Box;
package/modern/Box/Box.js DELETED
@@ -1,30 +0,0 @@
1
- 'use client';
2
-
3
- import PropTypes from 'prop-types';
4
- import ClassNameGenerator from '@mui/utils/ClassNameGenerator';
5
- import createBox from "../createBox/index.js";
6
- import boxClasses from "./boxClasses.js";
7
- const Box = createBox({
8
- defaultClassName: boxClasses.root,
9
- generateClassName: ClassNameGenerator.generate
10
- });
11
- process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
12
- // ┌────────────────────────────── Warning ──────────────────────────────┐
13
- // │ These PropTypes are generated from the TypeScript type definitions. │
14
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
15
- // └─────────────────────────────────────────────────────────────────────┘
16
- /**
17
- * @ignore
18
- */
19
- children: PropTypes.node,
20
- /**
21
- * The component used for the root node.
22
- * Either a string to use a HTML element or a component.
23
- */
24
- component: PropTypes.elementType,
25
- /**
26
- * The system prop that allows defining system overrides as well as additional CSS styles.
27
- */
28
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
29
- } : void 0;
30
- export default Box;
@@ -1,7 +0,0 @@
1
- export interface BoxClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type BoxClassKey = keyof BoxClasses;
6
- declare const boxClasses: BoxClasses;
7
- export default boxClasses;
@@ -1,3 +0,0 @@
1
- import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
2
- const boxClasses = generateUtilityClasses('MuiBox', ['root']);
3
- export default boxClasses;
@@ -1,4 +0,0 @@
1
- export { default } from "./Box.js";
2
- export * from "./Box.js";
3
- export { default as boxClasses } from "./boxClasses.js";
4
- export * from "./boxClasses.js";
@@ -1,3 +0,0 @@
1
- export { default } from "./Box.js";
2
- export { default as boxClasses } from "./boxClasses.js";
3
- export * from "./boxClasses.js";
@@ -1,7 +0,0 @@
1
- import * as CSS from 'csstype';
2
-
3
- /**
4
- * All non-vendor-prefixed CSS properties. (Also allows `number` in order to support CSS-in-JS libs,
5
- * since they are converted to `px`.)
6
- */
7
- export interface CSSProperties extends CSS.StandardProperties<number | string>, CSS.SvgProperties<number | string> {}
@@ -1,13 +0,0 @@
1
- /**
2
- *
3
- * Demos:
4
- *
5
- * - [Container (Material UI)](https://mui.com/material-ui/react-container/)
6
- * - [Container (MUI System)](https://mui.com/system/react-container/)
7
- *
8
- * API:
9
- *
10
- * - [Container API](https://mui.com/system/api/container/)
11
- */
12
- declare const Container: import("@mui/types").OverridableComponent<import("./ContainerProps.js").ContainerTypeMap<{}, "div">>;
13
- export default Container;
@@ -1,61 +0,0 @@
1
- 'use client';
2
-
3
- import PropTypes from 'prop-types';
4
- import createContainer from "./createContainer.js";
5
-
6
- /**
7
- *
8
- * Demos:
9
- *
10
- * - [Container (Material UI)](https://mui.com/material-ui/react-container/)
11
- * - [Container (MUI System)](https://mui.com/system/react-container/)
12
- *
13
- * API:
14
- *
15
- * - [Container API](https://mui.com/system/api/container/)
16
- */
17
- const Container = createContainer();
18
- process.env.NODE_ENV !== "production" ? Container.propTypes /* remove-proptypes */ = {
19
- // ┌────────────────────────────── Warning ──────────────────────────────┐
20
- // │ These PropTypes are generated from the TypeScript type definitions. │
21
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
22
- // └─────────────────────────────────────────────────────────────────────┘
23
- /**
24
- * @ignore
25
- */
26
- children: PropTypes.node,
27
- /**
28
- * Override or extend the styles applied to the component.
29
- */
30
- classes: PropTypes.object,
31
- /**
32
- * The component used for the root node.
33
- * Either a string to use a HTML element or a component.
34
- */
35
- component: PropTypes.elementType,
36
- /**
37
- * If `true`, the left and right padding is removed.
38
- * @default false
39
- */
40
- disableGutters: PropTypes.bool,
41
- /**
42
- * Set the max-width to match the min-width of the current breakpoint.
43
- * This is useful if you'd prefer to design for a fixed set of sizes
44
- * instead of trying to accommodate a fully fluid viewport.
45
- * It's fluid by default.
46
- * @default false
47
- */
48
- fixed: PropTypes.bool,
49
- /**
50
- * Determine the max-width of the container.
51
- * The container width grows with the size of the screen.
52
- * Set to `false` to disable `maxWidth`.
53
- * @default 'lg'
54
- */
55
- maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),
56
- /**
57
- * The system prop that allows defining system overrides as well as additional CSS styles.
58
- */
59
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
60
- } : void 0;
61
- export default Container;
@@ -1,40 +0,0 @@
1
- import * as React from 'react';
2
- import { OverrideProps } from '@mui/types';
3
- import { SxProps } from "../styleFunctionSx/index.js";
4
- import { Theme, Breakpoint } from "../createTheme/index.js";
5
- import { ContainerClasses } from "./containerClasses.js";
6
- export interface ContainerTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
7
- props: AdditionalProps & {
8
- children?: React.ReactNode;
9
- /**
10
- * Override or extend the styles applied to the component.
11
- */
12
- classes?: Partial<ContainerClasses>;
13
- /**
14
- * If `true`, the left and right padding is removed.
15
- * @default false
16
- */
17
- disableGutters?: boolean;
18
- /**
19
- * Set the max-width to match the min-width of the current breakpoint.
20
- * This is useful if you'd prefer to design for a fixed set of sizes
21
- * instead of trying to accommodate a fully fluid viewport.
22
- * It's fluid by default.
23
- * @default false
24
- */
25
- fixed?: boolean;
26
- /**
27
- * Determine the max-width of the container.
28
- * The container width grows with the size of the screen.
29
- * Set to `false` to disable `maxWidth`.
30
- * @default 'lg'
31
- */
32
- maxWidth?: Breakpoint | false;
33
- /**
34
- * The system prop that allows defining system overrides as well as additional CSS styles.
35
- */
36
- sx?: SxProps<Theme>;
37
- };
38
- defaultComponent: DefaultComponent;
39
- }
40
- export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- export interface ContainerClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `disableGutters={true}`. */
5
- disableGutters: string;
6
- /** Styles applied to the root element if `fixed={true}`. */
7
- fixed: string;
8
- /** Styles applied to the root element if `maxWidth="xs"`. */
9
- maxWidthXs: string;
10
- /** Styles applied to the root element if `maxWidth="sm"`. */
11
- maxWidthSm: string;
12
- /** Styles applied to the root element if `maxWidth="md"`. */
13
- maxWidthMd: string;
14
- /** Styles applied to the root element if `maxWidth="lg"`. */
15
- maxWidthLg: string;
16
- /** Styles applied to the root element if `maxWidth="xl"`. */
17
- maxWidthXl: string;
18
- }
19
- export type ContainerClassKey = keyof ContainerClasses;
20
- export declare function getContainerUtilityClass(slot: string): string;
21
- declare const containerClasses: ContainerClasses;
22
- export default containerClasses;