@mui/system 5.15.15 → 6.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.
- package/Box/Box.js +11 -17
- package/Box/boxClasses.js +3 -10
- package/Box/index.js +3 -35
- package/Box/package.json +2 -2
- package/CHANGELOG.md +169 -3
- package/Container/Container.d.ts +1 -1
- package/Container/Container.js +12 -17
- package/Container/ContainerProps.js +1 -5
- package/Container/containerClasses.js +6 -14
- package/Container/createContainer.js +34 -43
- package/Container/index.js +3 -35
- package/Container/package.json +2 -2
- package/GlobalStyles/GlobalStyles.js +11 -19
- package/GlobalStyles/index.js +2 -25
- package/GlobalStyles/package.json +2 -2
- package/README.md +2 -2
- package/RtlProvider/index.js +13 -23
- package/RtlProvider/package.json +2 -2
- package/Stack/Stack.d.ts +1 -1
- package/Stack/Stack.js +11 -17
- package/Stack/StackProps.js +1 -5
- package/Stack/createStack.d.ts +2 -2
- package/Stack/createStack.js +40 -51
- package/Stack/index.js +5 -55
- package/Stack/package.json +2 -2
- package/Stack/stackClasses.js +6 -14
- package/ThemeProvider/ThemeProvider.js +22 -30
- package/ThemeProvider/index.js +1 -12
- package/ThemeProvider/package.json +2 -2
- package/Unstable_Grid/Grid.d.ts +1 -1
- package/Unstable_Grid/Grid.js +25 -31
- package/Unstable_Grid/GridProps.js +1 -5
- package/Unstable_Grid/createGrid.d.ts +2 -2
- package/Unstable_Grid/createGrid.js +59 -70
- package/Unstable_Grid/gridClasses.js +6 -14
- package/Unstable_Grid/gridGenerator.js +24 -43
- package/Unstable_Grid/index.js +6 -63
- package/Unstable_Grid/package.json +2 -2
- package/Unstable_Grid/traverseBreakpoints.d.ts +1 -1
- package/Unstable_Grid/traverseBreakpoints.js +3 -11
- package/borders/borders.d.ts +14 -0
- package/{esm → borders}/borders.js +5 -5
- package/borders/index.d.ts +2 -0
- package/borders/index.js +4 -0
- package/borders/package.json +6 -0
- package/{breakpoints.d.ts → breakpoints/breakpoints.d.ts} +13 -3
- package/{modern → breakpoints}/breakpoints.js +1 -1
- package/breakpoints/index.d.ts +2 -0
- package/breakpoints/index.js +4 -0
- package/breakpoints/package.json +6 -0
- package/colorManipulator/index.d.ts +1 -0
- package/colorManipulator/index.js +3 -0
- package/colorManipulator/package.json +6 -0
- package/compose/compose.d.ts +5 -0
- package/{modern → compose}/compose.js +1 -1
- package/compose/index.d.ts +1 -0
- package/compose/index.js +3 -0
- package/compose/package.json +6 -0
- package/{createBox.d.ts → createBox/createBox.d.ts} +2 -2
- package/{modern → createBox}/createBox.js +2 -2
- package/createBox/index.d.ts +1 -0
- package/createBox/index.js +3 -0
- package/createBox/package.json +6 -0
- package/{createStyled.d.ts → createStyled/createStyled.d.ts} +2 -2
- package/{modern → createStyled}/createStyled.js +2 -2
- package/createStyled/index.d.ts +2 -0
- package/createStyled/index.js +4 -0
- package/createStyled/package.json +6 -0
- package/createTheme/applyStyles.js +1 -7
- package/createTheme/createBreakpoints.d.ts +4 -4
- package/createTheme/createBreakpoints.js +7 -15
- package/createTheme/createSpacing.d.ts +2 -2
- package/createTheme/createSpacing.js +8 -14
- package/createTheme/createTheme.js +20 -27
- package/createTheme/index.js +3 -27
- package/createTheme/package.json +2 -2
- package/createTheme/shape.js +1 -7
- package/cssGrid/cssGrid.d.ts +3 -0
- package/{esm → cssGrid}/cssGrid.js +5 -5
- package/cssGrid/index.d.ts +2 -0
- package/cssGrid/index.js +4 -0
- package/cssGrid/package.json +6 -0
- package/cssVars/createCssVarsProvider.d.ts +0 -8
- package/cssVars/createCssVarsProvider.js +70 -110
- package/cssVars/createCssVarsTheme.d.ts +2 -7
- package/cssVars/createCssVarsTheme.js +10 -20
- package/cssVars/createGetCssVar.js +1 -7
- package/cssVars/cssVarsParser.js +6 -15
- package/cssVars/getInitColorSchemeScript.js +7 -16
- package/cssVars/index.js +4 -33
- package/cssVars/package.json +2 -2
- package/cssVars/prepareCssVars.d.ts +5 -9
- package/cssVars/prepareCssVars.js +60 -41
- package/cssVars/useCurrentColorScheme.js +16 -26
- package/display/display.d.ts +3 -0
- package/{esm → display}/display.js +2 -2
- package/display/index.d.ts +2 -0
- package/display/index.js +4 -0
- package/display/package.json +6 -0
- package/flexbox/flexbox.d.ts +3 -0
- package/{modern → flexbox}/flexbox.js +2 -2
- package/flexbox/index.d.ts +2 -0
- package/flexbox/index.js +4 -0
- package/flexbox/package.json +6 -0
- package/getThemeValue/getThemeValue.d.ts +1 -0
- package/{esm → getThemeValue}/getThemeValue.js +10 -10
- package/getThemeValue/index.d.ts +2 -0
- package/getThemeValue/index.js +4 -0
- package/getThemeValue/package.json +6 -0
- package/index.d.ts +22 -83
- package/index.js +61 -579
- package/legacy/{borders.js → borders/borders.js} +5 -5
- package/legacy/borders/index.js +4 -0
- package/legacy/{breakpoints.js → breakpoints/breakpoints.js} +1 -1
- package/legacy/breakpoints/index.js +4 -0
- package/legacy/colorManipulator/index.js +3 -0
- package/legacy/{compose.js → compose/compose.js} +1 -1
- package/legacy/compose/index.js +3 -0
- package/legacy/{createBox.js → createBox/createBox.js} +2 -2
- package/legacy/createBox/index.js +3 -0
- package/legacy/{createStyled.js → createStyled/createStyled.js} +2 -2
- package/legacy/createStyled/index.js +4 -0
- package/legacy/createTheme/createSpacing.js +3 -7
- package/legacy/{cssGrid.js → cssGrid/cssGrid.js} +5 -5
- package/legacy/cssGrid/index.js +4 -0
- package/legacy/cssVars/createCssVarsProvider.js +36 -62
- package/legacy/cssVars/createCssVarsTheme.js +7 -7
- package/legacy/cssVars/cssVarsParser.js +3 -2
- package/legacy/cssVars/prepareCssVars.js +45 -25
- package/legacy/{display.js → display/display.js} +2 -2
- package/legacy/display/index.js +4 -0
- package/legacy/{flexbox.js → flexbox/flexbox.js} +2 -2
- package/legacy/flexbox/index.js +4 -0
- package/legacy/{getThemeValue.js → getThemeValue/getThemeValue.js} +10 -10
- package/legacy/getThemeValue/index.js +4 -0
- package/legacy/index.js +1 -1
- package/legacy/memoize/index.js +3 -0
- package/legacy/merge/index.js +3 -0
- package/legacy/palette/index.js +4 -0
- package/legacy/{palette.js → palette/palette.js} +2 -2
- package/legacy/positions/index.js +4 -0
- package/legacy/{positions.js → positions/positions.js} +2 -2
- package/legacy/propsToClassKey/index.js +3 -0
- package/legacy/responsivePropType/index.js +3 -0
- package/legacy/shadows/index.js +3 -0
- package/legacy/{shadows.js → shadows/shadows.js} +1 -1
- package/legacy/sizing/index.js +4 -0
- package/legacy/{sizing.js → sizing/sizing.js} +3 -3
- package/legacy/spacing/index.js +4 -0
- package/legacy/{spacing.js → spacing/spacing.js} +29 -26
- package/legacy/style/index.js +4 -0
- package/legacy/{style.js → style/style.js} +2 -2
- package/legacy/styled/index.js +3 -0
- package/legacy/styled/styled.js +3 -0
- package/legacy/typography/index.js +4 -0
- package/legacy/{typography.js → typography/typography.js} +2 -2
- package/legacy/useTheme/index.js +4 -0
- package/legacy/{useTheme.js → useTheme/useTheme.js} +2 -2
- package/legacy/useThemeWithoutDefault/index.js +3 -0
- package/memoize/index.d.ts +1 -0
- package/memoize/index.js +3 -0
- package/memoize/memoize.d.ts +3 -0
- package/memoize/package.json +6 -0
- package/merge/index.d.ts +1 -0
- package/merge/index.js +3 -0
- package/merge/package.json +6 -0
- package/modern/{borders.js → borders/borders.js} +5 -5
- package/modern/borders/index.js +4 -0
- package/{esm → modern/breakpoints}/breakpoints.js +2 -3
- package/modern/breakpoints/index.js +4 -0
- package/modern/colorManipulator/index.js +3 -0
- package/{esm → modern/compose}/compose.js +1 -1
- package/modern/compose/index.js +3 -0
- package/{esm → modern/createBox}/createBox.js +2 -2
- package/modern/createBox/index.js +3 -0
- package/{esm → modern/createStyled}/createStyled.js +5 -6
- package/modern/createStyled/index.js +4 -0
- package/modern/createTheme/createSpacing.js +7 -8
- package/modern/{cssGrid.js → cssGrid/cssGrid.js} +5 -5
- package/modern/cssGrid/index.js +4 -0
- package/modern/cssVars/createCssVarsProvider.js +29 -60
- package/modern/cssVars/createCssVarsTheme.js +7 -10
- package/modern/cssVars/cssVarsParser.js +3 -2
- package/modern/cssVars/prepareCssVars.js +49 -21
- package/modern/{display.js → display/display.js} +2 -2
- package/modern/display/index.js +4 -0
- package/{esm → modern/flexbox}/flexbox.js +2 -2
- package/modern/flexbox/index.js +4 -0
- package/modern/{getThemeValue.js → getThemeValue/getThemeValue.js} +10 -10
- package/modern/getThemeValue/index.js +4 -0
- package/modern/index.js +1 -1
- package/modern/memoize/index.js +3 -0
- package/modern/merge/index.js +3 -0
- package/modern/palette/index.js +4 -0
- package/{esm → modern/palette}/palette.js +2 -2
- package/modern/positions/index.js +4 -0
- package/modern/{positions.js → positions/positions.js} +2 -2
- package/modern/propsToClassKey/index.js +3 -0
- package/modern/responsivePropType/index.js +3 -0
- package/modern/shadows/index.js +3 -0
- package/{esm → modern/shadows}/shadows.js +1 -1
- package/modern/sizing/index.js +4 -0
- package/modern/{sizing.js → sizing/sizing.js} +3 -3
- package/modern/spacing/index.js +4 -0
- package/{esm → modern/spacing}/spacing.js +29 -27
- package/modern/style/index.js +4 -0
- package/modern/{style.js → style/style.js} +2 -2
- package/modern/styled/index.js +3 -0
- package/modern/styled/styled.js +3 -0
- package/modern/typography/index.js +4 -0
- package/modern/{typography.js → typography/typography.js} +2 -2
- package/modern/useTheme/index.js +4 -0
- package/{esm → modern/useTheme}/useTheme.js +2 -2
- package/modern/useThemeWithoutDefault/index.js +3 -0
- package/node/Box/Box.js +36 -0
- package/node/Box/boxClasses.js +10 -0
- package/node/Box/index.js +37 -0
- package/{esm → node}/Container/Container.js +17 -12
- package/node/Container/ContainerProps.js +5 -0
- package/node/Container/containerClasses.js +15 -0
- package/node/Container/createContainer.js +152 -0
- package/node/Container/index.js +37 -0
- package/node/GlobalStyles/GlobalStyles.js +45 -0
- package/node/GlobalStyles/index.js +27 -0
- package/node/RtlProvider/index.js +35 -0
- package/{esm → node}/Stack/Stack.js +17 -11
- package/node/Stack/StackProps.js +5 -0
- package/node/Stack/createStack.js +184 -0
- package/node/Stack/index.js +57 -0
- package/node/Stack/stackClasses.js +15 -0
- package/{esm → node}/ThemeProvider/ThemeProvider.js +30 -22
- package/node/ThemeProvider/index.js +14 -0
- package/{esm → node}/Unstable_Grid/Grid.js +31 -25
- package/node/Unstable_Grid/GridProps.js +5 -0
- package/node/Unstable_Grid/createGrid.js +180 -0
- package/{esm → node}/Unstable_Grid/gridClasses.js +14 -6
- package/{esm → node}/Unstable_Grid/gridGenerator.js +39 -22
- package/node/Unstable_Grid/index.js +65 -0
- package/{esm → node}/Unstable_Grid/traverseBreakpoints.js +11 -3
- package/{borders.js → node/borders/borders.js} +5 -5
- package/node/borders/index.js +27 -0
- package/{breakpoints.js → node/breakpoints/breakpoints.js} +1 -1
- package/node/breakpoints/index.js +27 -0
- package/node/colorManipulator/index.js +17 -0
- package/{compose.js → node/compose/compose.js} +1 -1
- package/node/compose/index.js +14 -0
- package/{createBox.js → node/createBox/createBox.js} +3 -3
- package/node/createBox/index.js +14 -0
- package/{createStyled.js → node/createStyled/createStyled.js} +3 -3
- package/node/createStyled/index.js +27 -0
- package/{esm → node}/createTheme/applyStyles.js +7 -1
- package/{esm → node}/createTheme/createBreakpoints.js +15 -7
- package/{esm → node}/createTheme/createSpacing.js +13 -9
- package/node/createTheme/createTheme.js +50 -0
- package/node/createTheme/index.js +27 -0
- package/node/createTheme/shape.js +10 -0
- package/{cssGrid.js → node/cssGrid/cssGrid.js} +5 -5
- package/node/cssGrid/index.js +27 -0
- package/{esm → node}/cssVars/createCssVarsProvider.js +79 -99
- package/node/cssVars/createCssVarsTheme.js +20 -0
- package/{esm → node}/cssVars/createGetCssVar.js +7 -1
- package/{esm → node}/cssVars/cssVarsParser.js +16 -5
- package/node/cssVars/getInitColorSchemeScript.js +53 -0
- package/node/cssVars/index.js +35 -0
- package/node/cssVars/prepareCssVars.js +106 -0
- package/{esm → node}/cssVars/useCurrentColorScheme.js +24 -14
- package/{display.js → node/display/display.js} +2 -2
- package/node/display/index.js +27 -0
- package/{flexbox.js → node/flexbox/flexbox.js} +2 -2
- package/node/flexbox/index.js +27 -0
- package/{getThemeValue.js → node/getThemeValue/getThemeValue.js} +10 -10
- package/node/getThemeValue/index.js +27 -0
- package/node/index.js +590 -0
- package/node/memoize/index.js +14 -0
- package/node/merge/index.js +14 -0
- package/node/palette/index.js +27 -0
- package/{palette.js → node/palette/palette.js} +2 -2
- package/node/positions/index.js +27 -0
- package/{positions.js → node/positions/positions.js} +2 -2
- package/node/propsToClassKey/index.js +14 -0
- package/node/responsivePropType/index.js +14 -0
- package/node/shadows/index.js +14 -0
- package/{shadows.js → node/shadows/shadows.js} +1 -1
- package/node/sizing/index.js +27 -0
- package/{sizing.js → node/sizing/sizing.js} +3 -3
- package/node/spacing/index.js +27 -0
- package/{spacing.js → node/spacing/spacing.js} +29 -26
- package/node/style/index.js +27 -0
- package/{style.js → node/style/style.js} +2 -2
- package/{esm → node}/styleFunctionSx/defaultSxConfig.js +71 -65
- package/node/styleFunctionSx/extendSxProp.js +55 -0
- package/node/styleFunctionSx/index.js +35 -0
- package/{esm → node}/styleFunctionSx/styleFunctionSx.js +26 -18
- package/node/styled/index.js +14 -0
- package/{styled.js → node/styled/styled.js} +1 -1
- package/node/typography/index.js +27 -0
- package/{typography.js → node/typography/typography.js} +2 -2
- package/node/useMediaQuery/index.js +26 -0
- package/{esm → node}/useMediaQuery/useMediaQuery.js +16 -9
- package/node/useTheme/index.js +27 -0
- package/{useTheme.js → node/useTheme/useTheme.js} +2 -2
- package/node/useThemeProps/getThemeProps.js +19 -0
- package/node/useThemeProps/index.js +21 -0
- package/node/useThemeProps/useThemeProps.js +27 -0
- package/node/useThemeWithoutDefault/index.js +14 -0
- package/{useThemeWithoutDefault.js → node/useThemeWithoutDefault/useThemeWithoutDefault.js} +1 -1
- package/package.json +8 -8
- package/palette/index.d.ts +2 -0
- package/palette/index.js +4 -0
- package/palette/package.json +6 -0
- package/palette/palette.d.ts +5 -0
- package/{modern → palette}/palette.js +2 -2
- package/positions/index.d.ts +2 -0
- package/positions/index.js +4 -0
- package/positions/package.json +6 -0
- package/positions/positions.d.ts +3 -0
- package/{esm → positions}/positions.js +2 -2
- package/propsToClassKey/index.d.ts +1 -0
- package/propsToClassKey/index.js +3 -0
- package/propsToClassKey/package.json +6 -0
- package/responsivePropType/index.d.ts +1 -0
- package/responsivePropType/index.js +3 -0
- package/responsivePropType/package.json +6 -0
- package/shadows/index.d.ts +1 -0
- package/shadows/index.js +3 -0
- package/shadows/package.json +6 -0
- package/shadows/shadows.d.ts +3 -0
- package/{modern → shadows}/shadows.js +1 -1
- package/sizing/index.d.ts +2 -0
- package/sizing/index.js +4 -0
- package/sizing/package.json +6 -0
- package/sizing/sizing.d.ts +12 -0
- package/{esm → sizing}/sizing.js +5 -6
- package/spacing/index.d.ts +2 -0
- package/spacing/index.js +4 -0
- package/spacing/package.json +6 -0
- package/{spacing.d.ts → spacing/spacing.d.ts} +1 -1
- package/{modern → spacing}/spacing.js +29 -26
- package/style/index.d.ts +2 -0
- package/style/index.js +4 -0
- package/style/package.json +6 -0
- package/{style.d.ts → style/style.d.ts} +1 -1
- package/{esm → style}/style.js +2 -2
- package/styleFunctionSx/defaultSxConfig.js +65 -71
- package/styleFunctionSx/extendSxProp.js +11 -19
- package/styleFunctionSx/index.js +4 -35
- package/styleFunctionSx/package.json +2 -2
- package/styleFunctionSx/styleFunctionSx.js +18 -27
- package/styled/index.d.ts +1 -0
- package/styled/index.js +3 -0
- package/styled/package.json +6 -0
- package/{styled.d.ts → styled/styled.d.ts} +1 -1
- package/styled/styled.js +3 -0
- package/typography/index.d.ts +2 -0
- package/typography/index.js +4 -0
- package/typography/package.json +6 -0
- package/typography/typography.d.ts +12 -0
- package/{esm → typography}/typography.js +2 -2
- package/useMediaQuery/index.js +2 -26
- package/useMediaQuery/package.json +2 -2
- package/useMediaQuery/useMediaQuery.js +9 -16
- package/useTheme/index.d.ts +2 -0
- package/useTheme/index.js +4 -0
- package/useTheme/package.json +6 -0
- package/{useTheme.d.ts → useTheme/useTheme.d.ts} +1 -1
- package/{modern → useTheme}/useTheme.js +2 -2
- package/useThemeProps/getThemeProps.js +3 -10
- package/useThemeProps/index.js +2 -19
- package/useThemeProps/package.json +2 -2
- package/useThemeProps/useThemeProps.js +5 -11
- package/useThemeWithoutDefault/index.d.ts +1 -0
- package/useThemeWithoutDefault/index.js +3 -0
- package/useThemeWithoutDefault/package.json +6 -0
- package/esm/Box/Box.js +0 -30
- package/esm/Box/boxClasses.js +0 -3
- package/esm/Box/index.js +0 -5
- package/esm/Container/ContainerProps.js +0 -1
- package/esm/Container/containerClasses.js +0 -7
- package/esm/Container/createContainer.js +0 -143
- package/esm/Container/index.js +0 -5
- package/esm/GlobalStyles/GlobalStyles.js +0 -37
- package/esm/GlobalStyles/index.js +0 -4
- package/esm/RtlProvider/index.js +0 -25
- package/esm/Stack/StackProps.js +0 -1
- package/esm/Stack/createStack.js +0 -173
- package/esm/Stack/index.js +0 -7
- package/esm/Stack/stackClasses.js +0 -7
- package/esm/ThemeProvider/index.js +0 -3
- package/esm/Unstable_Grid/GridProps.js +0 -1
- package/esm/Unstable_Grid/createGrid.js +0 -171
- package/esm/Unstable_Grid/index.js +0 -8
- package/esm/createTheme/createTheme.js +0 -43
- package/esm/createTheme/index.js +0 -3
- package/esm/createTheme/shape.js +0 -4
- package/esm/cssVars/createCssVarsTheme.js +0 -16
- package/esm/cssVars/getInitColorSchemeScript.js +0 -44
- package/esm/cssVars/index.js +0 -6
- package/esm/cssVars/prepareCssVars.js +0 -73
- package/esm/index.js +0 -65
- package/esm/styleFunctionSx/extendSxProp.js +0 -48
- package/esm/styleFunctionSx/index.js +0 -4
- package/esm/styled.js +0 -3
- package/esm/useMediaQuery/index.js +0 -2
- package/esm/useThemeProps/getThemeProps.js +0 -12
- package/esm/useThemeProps/index.js +0 -4
- package/esm/useThemeProps/useThemeProps.js +0 -21
- package/legacy/styled.js +0 -3
- package/modern/styled.js +0 -3
- /package/{colorManipulator.d.ts → colorManipulator/colorManipulator.d.ts} +0 -0
- /package/{esm → colorManipulator}/colorManipulator.js +0 -0
- /package/legacy/{colorManipulator.js → colorManipulator/colorManipulator.js} +0 -0
- /package/legacy/{memoize.js → memoize/memoize.js} +0 -0
- /package/{esm → legacy/merge}/merge.js +0 -0
- /package/legacy/{propsToClassKey.js → propsToClassKey/propsToClassKey.js} +0 -0
- /package/legacy/{responsivePropType.js → responsivePropType/responsivePropType.js} +0 -0
- /package/legacy/{useThemeWithoutDefault.js → useThemeWithoutDefault/useThemeWithoutDefault.js} +0 -0
- /package/{esm → memoize}/memoize.js +0 -0
- /package/{merge.d.ts → merge/merge.d.ts} +0 -0
- /package/{legacy → merge}/merge.js +0 -0
- /package/modern/{colorManipulator.js → colorManipulator/colorManipulator.js} +0 -0
- /package/modern/{memoize.js → memoize/memoize.js} +0 -0
- /package/modern/{merge.js → merge/merge.js} +0 -0
- /package/{esm → modern/propsToClassKey}/propsToClassKey.js +0 -0
- /package/{esm → modern/responsivePropType}/responsivePropType.js +0 -0
- /package/{esm → modern/useThemeWithoutDefault}/useThemeWithoutDefault.js +0 -0
- /package/{colorManipulator.js → node/colorManipulator/colorManipulator.js} +0 -0
- /package/{memoize.js → node/memoize/memoize.js} +0 -0
- /package/{merge.js → node/merge/merge.js} +0 -0
- /package/{propsToClassKey.js → node/propsToClassKey/propsToClassKey.js} +0 -0
- /package/{responsivePropType.js → node/responsivePropType/responsivePropType.js} +0 -0
- /package/{propsToClassKey.d.ts → propsToClassKey/propsToClassKey.d.ts} +0 -0
- /package/{modern → propsToClassKey}/propsToClassKey.js +0 -0
- /package/{responsivePropType.d.ts → responsivePropType/responsivePropType.d.ts} +0 -0
- /package/{modern → responsivePropType}/responsivePropType.js +0 -0
- /package/{useThemeWithoutDefault.d.ts → useThemeWithoutDefault/useThemeWithoutDefault.d.ts} +0 -0
- /package/{modern → useThemeWithoutDefault}/useThemeWithoutDefault.js +0 -0
package/Box/Box.js
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _createBox = _interopRequireDefault(require("../createBox"));
|
|
12
|
-
var _boxClasses = _interopRequireDefault(require("./boxClasses"));
|
|
13
|
-
const Box = (0, _createBox.default)({
|
|
14
|
-
defaultClassName: _boxClasses.default.root,
|
|
15
|
-
generateClassName: _ClassNameGenerator.default.generate
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import ClassNameGenerator from '@mui/utils/ClassNameGenerator';
|
|
5
|
+
import createBox from '../createBox';
|
|
6
|
+
import boxClasses from './boxClasses';
|
|
7
|
+
const Box = createBox({
|
|
8
|
+
defaultClassName: boxClasses.root,
|
|
9
|
+
generateClassName: ClassNameGenerator.generate
|
|
16
10
|
});
|
|
17
11
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
18
12
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -22,15 +16,15 @@ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
|
22
16
|
/**
|
|
23
17
|
* @ignore
|
|
24
18
|
*/
|
|
25
|
-
children:
|
|
19
|
+
children: PropTypes.node,
|
|
26
20
|
/**
|
|
27
21
|
* The component used for the root node.
|
|
28
22
|
* Either a string to use a HTML element or a component.
|
|
29
23
|
*/
|
|
30
|
-
component:
|
|
24
|
+
component: PropTypes.elementType,
|
|
31
25
|
/**
|
|
32
26
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33
27
|
*/
|
|
34
|
-
sx:
|
|
28
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
35
29
|
} : void 0;
|
|
36
|
-
|
|
30
|
+
export default Box;
|
package/Box/boxClasses.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
9
|
-
const boxClasses = (0, _generateUtilityClasses.default)('MuiBox', ['root']);
|
|
10
|
-
var _default = exports.default = boxClasses;
|
|
1
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
|
+
const boxClasses = generateUtilityClasses('MuiBox', ['root']);
|
|
3
|
+
export default boxClasses;
|
package/Box/index.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
var _exportNames = {
|
|
9
|
-
boxClasses: true
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "boxClasses", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () {
|
|
14
|
-
return _boxClasses.default;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "default", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return _Box.default;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
var _Box = _interopRequireDefault(require("./Box"));
|
|
24
|
-
var _boxClasses = _interopRequireWildcard(require("./boxClasses"));
|
|
25
|
-
Object.keys(_boxClasses).forEach(function (key) {
|
|
26
|
-
if (key === "default" || key === "__esModule") return;
|
|
27
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
-
if (key in exports && exports[key] === _boxClasses[key]) return;
|
|
29
|
-
Object.defineProperty(exports, key, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () {
|
|
32
|
-
return _boxClasses[key];
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
3
|
+
export { default } from './Box';
|
|
4
|
+
export { default as boxClasses } from './boxClasses';
|
|
5
|
+
export * from './boxClasses';
|
package/Box/package.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,171 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.0..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 5, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
|
|
12
|
+
- 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
|
|
13
|
+
- 💫 Added 3 redesigned free Material UI templates: [Sign-in](https://next.mui.com/material-ui/getting-started/templates/sign-in/), [Sign-in side](https://next.mui.com/material-ui/getting-started/templates/sign-in-side/), and [Sign-up](https://next.mui.com/material-ui/getting-started/templates/sign-up/).
|
|
14
|
+
|
|
15
|
+
### `@mui/material@6.0.0-alpha.1`
|
|
16
|
+
|
|
17
|
+
- [AppBar] Convert to support CSS extraction (#41247) @mnajdova
|
|
18
|
+
- [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
|
|
19
|
+
- [Button] Convert to support CSS extraction (#41378) @siriwatknp
|
|
20
|
+
- [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
|
|
21
|
+
- [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
|
|
22
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
23
|
+
- Add the `spacing` theme token (#40224) @siriwatknp
|
|
24
|
+
|
|
25
|
+
### `@mui/system@6.0.0-alpha.1`
|
|
26
|
+
|
|
27
|
+
- Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
|
|
28
|
+
|
|
29
|
+
### `@mui/codemod@6.0.0-alpha.1`
|
|
30
|
+
|
|
31
|
+
- [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
|
|
32
|
+
|
|
33
|
+
### `@mui/lab@6.0.0-alpha.1`
|
|
34
|
+
|
|
35
|
+
- [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
|
|
36
|
+
|
|
37
|
+
### `@mui/joy@5.0.0-beta.34`
|
|
38
|
+
|
|
39
|
+
- Add `spacing` theme token (#40224) @siriwatknp
|
|
40
|
+
|
|
41
|
+
### `@pigment-css/react@0.0.5`
|
|
42
|
+
|
|
43
|
+
- Improve sx prop support (#41589) @brijeshb42
|
|
44
|
+
- Fix Emotion styled error (#41699) @siriwatknp
|
|
45
|
+
- Fix propTypes removal during eval stage (#41695) @brijeshb42
|
|
46
|
+
- Fix props forwarding (#41688) @siriwatknp
|
|
47
|
+
- Fix sx prop transformation on Box (#41705) @brijeshb42
|
|
48
|
+
|
|
49
|
+
### `@pigment-css/vite-plugin@0.0.5`
|
|
50
|
+
|
|
51
|
+
- Use constant filename for pigment styles (#41667) @brijeshb42
|
|
52
|
+
|
|
53
|
+
### `@pigment-css/nextjs-plugin@0.0.5`
|
|
54
|
+
|
|
55
|
+
- Add missing RTL implementation (#41751) @brijeshb42
|
|
56
|
+
|
|
57
|
+
### Docs
|
|
58
|
+
|
|
59
|
+
- [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
|
|
60
|
+
- [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
|
|
61
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
62
|
+
- Stick to one way to write IE 11 @oliviertassinari
|
|
63
|
+
- Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
|
|
64
|
+
- Drop IE 11 official support (#41611) @iammminzzy
|
|
65
|
+
- [material-ui] Fix typo on the Accordion page (#41687) @connorshea
|
|
66
|
+
- [pigment-css] Add small edits on the README (#41646) @danilo-leal
|
|
67
|
+
- [pigment-css] Edit the example app's README files (#41639) @danilo-leal
|
|
68
|
+
|
|
69
|
+
### Core
|
|
70
|
+
|
|
71
|
+
- [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
|
|
72
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
|
|
73
|
+
- [core] Update the prettier script to use the next branch (#41637) @mnajdova
|
|
74
|
+
- [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
|
|
75
|
+
- [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
|
|
76
|
+
- [docs-infra] Allows to remove edit button (#41702) @alexfauquette
|
|
77
|
+
- [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
|
|
78
|
+
- [examples] Update MUI's packages to the next version (#41701) @mnajdova
|
|
79
|
+
- [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
|
|
80
|
+
- [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
|
|
81
|
+
- [blog] Refresh the design slightly (#41697) @danilo-leal
|
|
82
|
+
- [website] Use en-US over en-UK for career link @oliviertassinari
|
|
83
|
+
- [website] Add Aarón to About Us (#41736) @aarongarciah
|
|
84
|
+
- [website] Refine button design and other details (#41686) @danilo-leal
|
|
85
|
+
- [website] Improve job og image (#41672) @oliviertassinari
|
|
86
|
+
- [website] Page <title> should have no dots @oliviertassinari
|
|
87
|
+
|
|
88
|
+
All contributors of this release in alphabetical order: @aarongarciah, @adriancuadrado, @alexfauquette, @bharatkashyap, @brijeshb42, @connorshea, @danilo-leal, @DiegoAndai, @iammminzzy, @Janpot, @JCQuintas, @levigunz, @mnajdova, @oliviertassinari, @ppaskaris-plooto, @siriwatknp, @skmanoj322, @zanivan, @ZeeshanTamboli
|
|
89
|
+
|
|
90
|
+
## v6.0.0-alpha.0
|
|
91
|
+
|
|
92
|
+
<!-- generated comparing v5.15.14..next -->
|
|
93
|
+
|
|
94
|
+
_Mar 26, 2024_
|
|
95
|
+
|
|
96
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
97
|
+
|
|
98
|
+
- 🔥 Converted 10+ Material UI components to support static CSS extraction
|
|
99
|
+
- ⬅️ Added RTL support in Pigment CSS (#41570) @brijeshb42
|
|
100
|
+
|
|
101
|
+
### `@mui/material@6.0.0-alpha.0`
|
|
102
|
+
|
|
103
|
+
- [BottomNavigation] Convert to support CSS extraction (#41612) @aacevski
|
|
104
|
+
- [AvatarGroup] Convert to support CSS extraction (#41485) @zanivan
|
|
105
|
+
- [Backdrop] Convert to support CSS extraction (#41581) @aacevski
|
|
106
|
+
- [Breadcrumbs] Convert to support CSS extraction (#41496) @aacevski
|
|
107
|
+
- [Card] Convert to support CSS extraction (#41580) @aacevski
|
|
108
|
+
- [Divider] Convert to support CSS extraction (#41366) @sai6855
|
|
109
|
+
- [FormControl] Convert to support CSS extraction (#41613) @aacevski
|
|
110
|
+
- [FormGroup] Convert to support CSS extraction (#41614) @aacevski
|
|
111
|
+
- [MobileStepper] Convert to support CSS extraction (#41533) @aacevski
|
|
112
|
+
- [Modal] Support CSS extraction (#41483) @sai6855
|
|
113
|
+
- [Popover] Convert to support CSS extraction (#41564) @aacevski
|
|
114
|
+
- [Stepper] Convert to support CSS extraction (#41546) @aacevski
|
|
115
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41634) @nekoya
|
|
116
|
+
- [Backdrop] Deprecate TransitionComponent (#40677) @harry-whorlow
|
|
117
|
+
- [ButtonGroup] Deprecate composed classes (#41259) @sai6855
|
|
118
|
+
- [StepLabel] Deprecate `componentProps` prop (#41321) @sai6855
|
|
119
|
+
- [Chip] Convert to support CSS extraction (#41592) @DiegoAndai
|
|
120
|
+
|
|
121
|
+
### `@pigment-css/react@0.0.4`
|
|
122
|
+
|
|
123
|
+
- Fix evaluation of undefined variables (#41569) @siriwatknp
|
|
124
|
+
- Fix react-modal demos location (#41560) @sai6855
|
|
125
|
+
- [react] RTL Support (#41570) @brijeshb42
|
|
126
|
+
|
|
127
|
+
### `@mui/system@6.0.0-alpha.0`
|
|
128
|
+
|
|
129
|
+
- [core] Standardize index pattern (#41574) @DiegoAndai
|
|
130
|
+
- Fix typo to avoid infinite recursion in function call (#41616) @michael-land
|
|
131
|
+
- Move stylesheet generator to `extendTheme` (#41446) @siriwatknp
|
|
132
|
+
|
|
133
|
+
### Docs
|
|
134
|
+
|
|
135
|
+
- [joy-ui] Refresh the marketing example on the Color Inversion page (#41497) @cipherlogs
|
|
136
|
+
- [material-ui] Add v5 to v6 migration guide (#41561) @DiegoAndai
|
|
137
|
+
- [system] Add v5 to v6 migration guide (#41575) @DiegoAndai
|
|
138
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) @StylesTrip
|
|
139
|
+
- [pigment-css] Update the RTL section on the readme (#41576) @danilo-leal
|
|
140
|
+
|
|
141
|
+
### Core
|
|
142
|
+
|
|
143
|
+
- [blog] Update the callout (#41645) @cherniavskii
|
|
144
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41640) @cherniavskii
|
|
145
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) @joserodolfofreitas
|
|
146
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
147
|
+
- [core] Restore the pnpm-lock.yaml (#41643) @mnajdova
|
|
148
|
+
- [core] Fix failing CI steps (#41636) @mnajdova
|
|
149
|
+
- [core] Update browser support versions (#41568) @siriwatknp
|
|
150
|
+
- [core] Add instructions to deploying docs guide (#41582) @DiegoAndai
|
|
151
|
+
- [core] Add comment explaining the frequency of no-response action runs (#41555) @michaldudak
|
|
152
|
+
- [core] Init the next branch (#41552) @mnajdova
|
|
153
|
+
- [core] Lower the frequency of no-response action runs (#41553) @michaldudak
|
|
154
|
+
- [core] Update peerDependencies ranges to include v6 packages (#41662) @michaldudak
|
|
155
|
+
- [core] Run pnpm dedupe (#41658) @michaldudak
|
|
156
|
+
- [core] Fix dedupe check (#41657) @Janpot
|
|
157
|
+
- [pigment-css][demo] Add index page for material-ui (#41577) @brijeshb42
|
|
158
|
+
- [pigment-css][demo] Remove app specific pnpm workspace (#41393) @brijeshb42
|
|
159
|
+
- [docs] Add notification for MUI X v7 blog post (#41587) @cherniavskii
|
|
160
|
+
- [docs] MUI X v7 blog post annoucement followup (#41601) @joserodolfofreitas
|
|
161
|
+
- [docs] Update the installation guides to use the next tag (#41558) @mnajdova
|
|
162
|
+
- [docs][material-ui] Fix typo in CSS theme variables customization (#41632) @ZeeshanTamboli
|
|
163
|
+
- [material-ui][docs] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
164
|
+
- [website] Update pricing table (#41595) @cherniavskii
|
|
165
|
+
- [website] Add stray design adjustments throughout the site (#41547) @danilo-leal
|
|
166
|
+
|
|
167
|
+
All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
|
|
168
|
+
|
|
3
169
|
## v5.15.15
|
|
4
170
|
|
|
5
171
|
<!-- generated comparing v5.15.14..master -->
|
|
@@ -49,7 +215,7 @@ _Mar 18, 2024_
|
|
|
49
215
|
A big thanks to the 15 contributors who made this release possible.
|
|
50
216
|
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
51
217
|
|
|
52
|
-
### `@mui/material@5.15.
|
|
218
|
+
### `@mui/material@5.15.14`
|
|
53
219
|
|
|
54
220
|
- [Accordion] Convert to support CSS extraction (#41221) @mnajdova
|
|
55
221
|
- ​<!-- 24 -->[Autocomplete] Convert to support CSS extraction (#40330) @mnajdova
|
|
@@ -854,7 +1020,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
854
1020
|
- [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
|
|
855
1021
|
- [material-ui] Revise the Accordion page (#40284) @anle9650
|
|
856
1022
|
- [material-ui] Add docs for complementary Card components (#40346) @anle9650
|
|
857
|
-
- [material-ui] Add Material 3 components page (#40350) @DiegoAndai
|
|
1023
|
+
- [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
|
|
858
1024
|
- Fix strange italic style @oliviertassinari
|
|
859
1025
|
- Fix references to ESLint @oliviertassinari
|
|
860
1026
|
- Fix 301 redirections @oliviertassinari
|
|
@@ -13018,7 +13184,7 @@ Here are some highlights ✨:
|
|
|
13018
13184
|
|
|
13019
13185
|
1. `stable` (default, formerly `esm`) which targets a snapshot (on release) of `> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11"`
|
|
13020
13186
|
2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
|
|
13021
|
-
3. `legacy` (new) which is `stable` +
|
|
13187
|
+
3. `legacy` (new) which is `stable` + IE 11
|
|
13022
13188
|
4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
|
|
13023
13189
|
|
|
13024
13190
|
The change yields a 6% reduction in bundle size 📦 (Babel only).
|
package/Container/Container.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* - [Container API](https://mui.com/system/api/container/)
|
|
11
11
|
*/
|
|
12
|
-
declare const Container: import("@mui/types").OverridableComponent<import("
|
|
12
|
+
declare const Container: import("@mui/types").OverridableComponent<import("@mui/system").ContainerTypeMap<{}, "div">>;
|
|
13
13
|
export default Container;
|
package/Container/Container.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _createContainer = _interopRequireDefault(require("./createContainer"));
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import createContainer from './createContainer';
|
|
5
|
+
|
|
11
6
|
/**
|
|
12
7
|
*
|
|
13
8
|
* Demos:
|
|
@@ -19,7 +14,7 @@ var _createContainer = _interopRequireDefault(require("./createContainer"));
|
|
|
19
14
|
*
|
|
20
15
|
* - [Container API](https://mui.com/system/api/container/)
|
|
21
16
|
*/
|
|
22
|
-
const Container = (
|
|
17
|
+
const Container = createContainer();
|
|
23
18
|
process.env.NODE_ENV !== "production" ? Container.propTypes /* remove-proptypes */ = {
|
|
24
19
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
25
20
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
@@ -28,21 +23,21 @@ process.env.NODE_ENV !== "production" ? Container.propTypes /* remove-proptypes
|
|
|
28
23
|
/**
|
|
29
24
|
* @ignore
|
|
30
25
|
*/
|
|
31
|
-
children:
|
|
26
|
+
children: PropTypes.node,
|
|
32
27
|
/**
|
|
33
28
|
* Override or extend the styles applied to the component.
|
|
34
29
|
*/
|
|
35
|
-
classes:
|
|
30
|
+
classes: PropTypes.object,
|
|
36
31
|
/**
|
|
37
32
|
* The component used for the root node.
|
|
38
33
|
* Either a string to use a HTML element or a component.
|
|
39
34
|
*/
|
|
40
|
-
component:
|
|
35
|
+
component: PropTypes.elementType,
|
|
41
36
|
/**
|
|
42
37
|
* If `true`, the left and right padding is removed.
|
|
43
38
|
* @default false
|
|
44
39
|
*/
|
|
45
|
-
disableGutters:
|
|
40
|
+
disableGutters: PropTypes.bool,
|
|
46
41
|
/**
|
|
47
42
|
* Set the max-width to match the min-width of the current breakpoint.
|
|
48
43
|
* This is useful if you'd prefer to design for a fixed set of sizes
|
|
@@ -50,17 +45,17 @@ process.env.NODE_ENV !== "production" ? Container.propTypes /* remove-proptypes
|
|
|
50
45
|
* It's fluid by default.
|
|
51
46
|
* @default false
|
|
52
47
|
*/
|
|
53
|
-
fixed:
|
|
48
|
+
fixed: PropTypes.bool,
|
|
54
49
|
/**
|
|
55
50
|
* Determine the max-width of the container.
|
|
56
51
|
* The container width grows with the size of the screen.
|
|
57
52
|
* Set to `false` to disable `maxWidth`.
|
|
58
53
|
* @default 'lg'
|
|
59
54
|
*/
|
|
60
|
-
maxWidth:
|
|
55
|
+
maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),
|
|
61
56
|
/**
|
|
62
57
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
63
58
|
*/
|
|
64
|
-
sx:
|
|
59
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
65
60
|
} : void 0;
|
|
66
|
-
|
|
61
|
+
export default Container;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
exports.getContainerUtilityClass = getContainerUtilityClass;
|
|
9
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
10
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
11
|
-
function getContainerUtilityClass(slot) {
|
|
12
|
-
return (0, _generateUtilityClass.default)('MuiContainer', slot);
|
|
1
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
3
|
+
export function getContainerUtilityClass(slot) {
|
|
4
|
+
return generateUtilityClass('MuiContainer', slot);
|
|
13
5
|
}
|
|
14
|
-
const containerClasses = (
|
|
15
|
-
|
|
6
|
+
const containerClasses = generateUtilityClasses('MuiContainer', ['root', 'disableGutters', 'fixed', 'maxWidthXs', 'maxWidthSm', 'maxWidthMd', 'maxWidthLg', 'maxWidthXl']);
|
|
7
|
+
export default containerClasses;
|
|
@@ -1,44 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = createContainer;
|
|
8
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
14
|
-
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
|
|
16
|
-
var _useThemeProps = _interopRequireDefault(require("../useThemeProps"));
|
|
17
|
-
var _styled = _interopRequireDefault(require("../styled"));
|
|
18
|
-
var _createTheme = _interopRequireDefault(require("../createTheme"));
|
|
19
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
20
3
|
const _excluded = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
8
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
+
import capitalize from '@mui/utils/capitalize';
|
|
10
|
+
import useThemePropsSystem from '../useThemeProps';
|
|
11
|
+
import systemStyled from '../styled';
|
|
12
|
+
import createTheme from '../createTheme';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const defaultTheme = createTheme();
|
|
15
|
+
const defaultCreateStyledComponent = systemStyled('div', {
|
|
25
16
|
name: 'MuiContainer',
|
|
26
17
|
slot: 'Root',
|
|
27
18
|
overridesResolver: (props, styles) => {
|
|
28
19
|
const {
|
|
29
20
|
ownerState
|
|
30
21
|
} = props;
|
|
31
|
-
return [styles.root, styles[`maxWidth${(
|
|
22
|
+
return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
|
|
32
23
|
}
|
|
33
24
|
});
|
|
34
|
-
const useThemePropsDefault = inProps => (
|
|
25
|
+
const useThemePropsDefault = inProps => useThemePropsSystem({
|
|
35
26
|
props: inProps,
|
|
36
27
|
name: 'MuiContainer',
|
|
37
28
|
defaultTheme
|
|
38
29
|
});
|
|
39
30
|
const useUtilityClasses = (ownerState, componentName) => {
|
|
40
31
|
const getContainerUtilityClass = slot => {
|
|
41
|
-
return (
|
|
32
|
+
return generateUtilityClass(componentName, slot);
|
|
42
33
|
};
|
|
43
34
|
const {
|
|
44
35
|
classes,
|
|
@@ -47,11 +38,11 @@ const useUtilityClasses = (ownerState, componentName) => {
|
|
|
47
38
|
maxWidth
|
|
48
39
|
} = ownerState;
|
|
49
40
|
const slots = {
|
|
50
|
-
root: ['root', maxWidth && `maxWidth${(
|
|
41
|
+
root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
|
|
51
42
|
};
|
|
52
|
-
return (
|
|
43
|
+
return composeClasses(slots, getContainerUtilityClass, classes);
|
|
53
44
|
};
|
|
54
|
-
function createContainer(options = {}) {
|
|
45
|
+
export default function createContainer(options = {}) {
|
|
55
46
|
const {
|
|
56
47
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
57
48
|
createStyledComponent = defaultCreateStyledComponent,
|
|
@@ -61,7 +52,7 @@ function createContainer(options = {}) {
|
|
|
61
52
|
const ContainerRoot = createStyledComponent(({
|
|
62
53
|
theme,
|
|
63
54
|
ownerState
|
|
64
|
-
}) => (
|
|
55
|
+
}) => _extends({
|
|
65
56
|
width: '100%',
|
|
66
57
|
marginLeft: 'auto',
|
|
67
58
|
boxSizing: 'border-box',
|
|
@@ -91,7 +82,7 @@ function createContainer(options = {}) {
|
|
|
91
82
|
}, {}), ({
|
|
92
83
|
theme,
|
|
93
84
|
ownerState
|
|
94
|
-
}) => (
|
|
85
|
+
}) => _extends({}, ownerState.maxWidth === 'xs' && {
|
|
95
86
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
96
87
|
[theme.breakpoints.up('xs')]: {
|
|
97
88
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
@@ -115,8 +106,8 @@ function createContainer(options = {}) {
|
|
|
115
106
|
fixed = false,
|
|
116
107
|
maxWidth = 'lg'
|
|
117
108
|
} = props,
|
|
118
|
-
other = (
|
|
119
|
-
const ownerState = (
|
|
109
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
110
|
+
const ownerState = _extends({}, props, {
|
|
120
111
|
component,
|
|
121
112
|
disableGutters,
|
|
122
113
|
fixed,
|
|
@@ -128,25 +119,25 @@ function createContainer(options = {}) {
|
|
|
128
119
|
return (
|
|
129
120
|
/*#__PURE__*/
|
|
130
121
|
// @ts-ignore theme is injected by the styled util
|
|
131
|
-
(
|
|
122
|
+
_jsx(ContainerRoot, _extends({
|
|
132
123
|
as: component
|
|
133
124
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
134
125
|
,
|
|
135
126
|
ownerState: ownerState,
|
|
136
|
-
className: (
|
|
127
|
+
className: clsx(classes.root, className),
|
|
137
128
|
ref: ref
|
|
138
129
|
}, other))
|
|
139
130
|
);
|
|
140
131
|
});
|
|
141
132
|
process.env.NODE_ENV !== "production" ? Container.propTypes /* remove-proptypes */ = {
|
|
142
|
-
children:
|
|
143
|
-
classes:
|
|
144
|
-
className:
|
|
145
|
-
component:
|
|
146
|
-
disableGutters:
|
|
147
|
-
fixed:
|
|
148
|
-
maxWidth:
|
|
149
|
-
sx:
|
|
133
|
+
children: PropTypes.node,
|
|
134
|
+
classes: PropTypes.object,
|
|
135
|
+
className: PropTypes.string,
|
|
136
|
+
component: PropTypes.elementType,
|
|
137
|
+
disableGutters: PropTypes.bool,
|
|
138
|
+
fixed: PropTypes.bool,
|
|
139
|
+
maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),
|
|
140
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
150
141
|
} : void 0;
|
|
151
142
|
return Container;
|
|
152
143
|
}
|
package/Container/index.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
var _exportNames = {
|
|
9
|
-
containerClasses: true
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "containerClasses", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () {
|
|
14
|
-
return _containerClasses.default;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "default", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return _Container.default;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
var _Container = _interopRequireDefault(require("./Container"));
|
|
24
|
-
var _containerClasses = _interopRequireWildcard(require("./containerClasses"));
|
|
25
|
-
Object.keys(_containerClasses).forEach(function (key) {
|
|
26
|
-
if (key === "default" || key === "__esModule") return;
|
|
27
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
-
if (key in exports && exports[key] === _containerClasses[key]) return;
|
|
29
|
-
Object.defineProperty(exports, key, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () {
|
|
32
|
-
return _containerClasses[key];
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
3
|
+
export { default } from './Container';
|
|
4
|
+
export { default as containerClasses } from './containerClasses';
|
|
5
|
+
export * from './containerClasses';
|
package/Container/package.json
CHANGED