@mui/system 6.4.3 → 7.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Box/Box.d.ts +22 -173
- package/Box/boxClasses.d.ts +3 -3
- package/Box/index.d.ts +4 -5
- package/CHANGELOG.md +70 -2227
- package/CSSProperties.d.ts +1 -3
- package/Container/Container.d.ts +2 -2
- package/Container/ContainerProps.d.ts +36 -36
- package/Container/containerClasses.d.ts +17 -17
- package/Container/createContainer.d.ts +10 -10
- package/Container/createContainer.js +1 -0
- package/Container/index.d.ts +4 -5
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +13 -7
- package/DefaultPropsProvider/index.d.ts +1 -1
- package/GlobalStyles/GlobalStyles.d.ts +11 -7
- package/GlobalStyles/index.d.ts +2 -2
- package/Grid/Grid.d.ts +2 -2
- package/Grid/GridProps.d.ts +89 -91
- package/Grid/createGrid.d.ts +8 -8
- package/Grid/createGrid.js +1 -0
- package/Grid/gridClasses.d.ts +15 -15
- package/Grid/gridGenerator.d.ts +37 -17
- package/Grid/index.d.ts +7 -7
- package/Grid/traverseBreakpoints.d.ts +3 -3
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +42 -42
- package/InitColorSchemeScript/index.d.ts +2 -2
- package/README.md +4 -4
- package/RtlProvider/index.d.ts +1 -4
- package/Stack/Stack.d.ts +2 -2
- package/Stack/StackProps.d.ts +44 -44
- package/Stack/createStack.d.ts +17 -14
- package/Stack/createStack.js +1 -0
- package/Stack/index.d.ts +5 -5
- package/Stack/stackClasses.d.ts +3 -3
- package/ThemeProvider/ThemeProvider.d.ts +1 -4
- package/ThemeProvider/index.d.ts +2 -2
- package/borders/borders.d.ts +2 -3
- package/borders/index.d.ts +2 -2
- package/breakpoints/breakpoints.d.ts +7 -19
- package/breakpoints/index.d.ts +2 -2
- package/colorManipulator/colorManipulator.d.ts +2 -7
- package/colorManipulator/index.d.ts +1 -1
- package/compose/compose.d.ts +2 -5
- package/compose/index.d.ts +1 -1
- package/createBox/createBox.d.ts +4 -8
- package/createBox/index.d.ts +1 -1
- package/createBreakpoints/createBreakpoints.d.ts +7 -14
- package/createBreakpoints/index.d.ts +1 -1
- package/createStyled/createStyled.d.ts +5 -17
- package/createStyled/index.d.ts +2 -2
- package/createTheme/applyStyles.d.ts +2 -2
- package/createTheme/createSpacing.d.ts +6 -6
- package/createTheme/createTheme.d.ts +11 -18
- package/createTheme/index.d.ts +4 -4
- package/createTheme/shape.d.ts +1 -4
- package/cssContainerQueries/cssContainerQueries.d.ts +9 -9
- package/cssContainerQueries/index.d.ts +3 -3
- package/cssGrid/cssGrid.d.ts +2 -3
- package/cssGrid/index.d.ts +2 -2
- package/cssVars/createCssVarsProvider.d.ts +89 -107
- package/cssVars/createCssVarsTheme.d.ts +12 -9
- package/cssVars/createGetCssVar.d.ts +1 -1
- package/cssVars/cssVarsParser.d.ts +7 -7
- package/cssVars/getColorSchemeSelector.d.ts +1 -1
- package/cssVars/index.d.ts +7 -7
- package/cssVars/prepareCssVars.d.ts +11 -11
- package/cssVars/prepareTypographyVars.d.ts +3 -7
- package/cssVars/useCurrentColorScheme.d.ts +43 -43
- package/display/display.d.ts +2 -3
- package/display/index.d.ts +2 -2
- package/esm/Box/Box.d.ts +72 -0
- package/esm/Box/boxClasses.d.ts +7 -0
- package/esm/Box/index.d.ts +4 -0
- package/esm/CSSProperties.d.ts +7 -0
- package/esm/Container/Container.d.ts +13 -0
- package/esm/Container/ContainerProps.d.ts +40 -0
- package/esm/Container/containerClasses.d.ts +22 -0
- package/esm/Container/createContainer.d.ts +18 -0
- package/esm/Container/createContainer.js +2 -0
- package/esm/Container/index.d.ts +4 -0
- package/esm/DefaultPropsProvider/DefaultPropsProvider.d.ts +18 -0
- package/esm/DefaultPropsProvider/index.d.ts +1 -0
- package/esm/GlobalStyles/GlobalStyles.d.ts +17 -0
- package/esm/GlobalStyles/index.d.ts +2 -0
- package/esm/Grid/Grid.d.ts +13 -0
- package/esm/Grid/GridProps.d.ts +103 -0
- package/esm/Grid/createGrid.d.ts +13 -0
- package/esm/Grid/createGrid.js +2 -0
- package/esm/Grid/gridClasses.d.ts +20 -0
- package/esm/Grid/gridGenerator.d.ts +42 -0
- package/esm/Grid/index.d.ts +7 -0
- package/esm/Grid/traverseBreakpoints.d.ts +7 -0
- package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +51 -0
- package/esm/InitColorSchemeScript/index.d.ts +2 -0
- package/esm/RtlProvider/index.d.ts +8 -0
- package/esm/Stack/Stack.d.ts +14 -0
- package/esm/Stack/StackProps.d.ts +53 -0
- package/esm/Stack/createStack.d.ts +24 -0
- package/esm/Stack/createStack.js +2 -0
- package/esm/Stack/index.d.ts +5 -0
- package/esm/Stack/stackClasses.d.ts +8 -0
- package/esm/ThemeProvider/ThemeProvider.d.ts +24 -0
- package/esm/ThemeProvider/index.d.ts +2 -0
- package/esm/borders/borders.d.ts +13 -0
- package/esm/borders/index.d.ts +2 -0
- package/esm/breakpoints/breakpoints.d.ts +19 -0
- package/esm/breakpoints/index.d.ts +2 -0
- package/esm/colorManipulator/colorManipulator.d.ts +25 -0
- package/esm/colorManipulator/index.d.ts +1 -0
- package/esm/compose/compose.d.ts +2 -0
- package/esm/compose/index.d.ts +1 -0
- package/esm/createBox/createBox.d.ts +9 -0
- package/esm/createBox/index.d.ts +1 -0
- package/esm/createBreakpoints/createBreakpoints.d.ts +78 -0
- package/esm/createBreakpoints/index.d.ts +3 -0
- package/esm/createStyled/createStyled.d.ts +27 -0
- package/esm/createStyled/index.d.ts +2 -0
- package/esm/createTheme/applyStyles.d.ts +67 -0
- package/esm/createTheme/createSpacing.d.ts +10 -0
- package/esm/createTheme/createTheme.d.ts +54 -0
- package/esm/createTheme/index.d.ts +4 -0
- package/esm/createTheme/shape.d.ts +6 -0
- package/esm/cssContainerQueries/cssContainerQueries.d.ts +23 -0
- package/esm/cssContainerQueries/index.d.ts +3 -0
- package/esm/cssGrid/cssGrid.d.ts +2 -0
- package/esm/cssGrid/index.d.ts +2 -0
- package/esm/cssVars/createCssVarsProvider.d.ts +129 -0
- package/esm/cssVars/createCssVarsTheme.d.ts +15 -0
- package/esm/cssVars/createGetCssVar.d.ts +5 -0
- package/esm/cssVars/cssVarsParser.d.ts +64 -0
- package/esm/cssVars/getColorSchemeSelector.d.ts +1 -0
- package/esm/cssVars/index.d.ts +7 -0
- package/esm/cssVars/prepareCssVars.d.ts +16 -0
- package/esm/cssVars/prepareTypographyVars.d.ts +4 -0
- package/esm/cssVars/useCurrentColorScheme.d.ts +54 -0
- package/esm/display/display.d.ts +2 -0
- package/esm/display/index.d.ts +2 -0
- package/esm/flexbox/flexbox.d.ts +2 -0
- package/esm/flexbox/index.d.ts +2 -0
- package/esm/getThemeValue/getThemeValue.d.ts +1 -0
- package/esm/getThemeValue/index.d.ts +2 -0
- package/esm/index.d.ts +79 -0
- package/esm/index.js +7 -0
- package/esm/memoTheme.d.ts +12 -0
- package/esm/memoize/index.d.ts +1 -0
- package/esm/memoize/memoize.d.ts +1 -0
- package/esm/merge/index.d.ts +1 -0
- package/esm/merge/merge.d.ts +1 -0
- package/esm/package.json +1 -0
- package/esm/palette/index.d.ts +2 -0
- package/esm/palette/palette.d.ts +4 -0
- package/esm/positions/index.d.ts +2 -0
- package/esm/positions/positions.d.ts +2 -0
- package/esm/preprocessStyles.d.ts +5 -0
- package/esm/propsToClassKey/index.d.ts +1 -0
- package/esm/propsToClassKey/propsToClassKey.d.ts +1 -0
- package/esm/responsivePropType/index.d.ts +1 -0
- package/esm/responsivePropType/responsivePropType.d.ts +2 -0
- package/esm/shadows/index.d.ts +1 -0
- package/esm/shadows/shadows.d.ts +2 -0
- package/esm/sizing/index.d.ts +2 -0
- package/esm/sizing/sizing.d.ts +11 -0
- package/esm/spacing/index.d.ts +2 -0
- package/esm/spacing/spacing.d.ts +18 -0
- package/esm/style/index.d.ts +2 -0
- package/esm/style/style.d.ts +19 -0
- package/esm/styleFunctionSx/AliasesCSSProperties.d.ts +269 -0
- package/esm/styleFunctionSx/OverwriteCSSProperties.d.ts +54 -0
- package/esm/styleFunctionSx/StandardCssProperties.d.ts +2 -0
- package/esm/styleFunctionSx/defaultSxConfig.d.ts +15 -0
- package/esm/styleFunctionSx/extendSxProp.d.ts +4 -0
- package/esm/styleFunctionSx/index.d.ts +9 -0
- package/esm/styleFunctionSx/styleFunctionSx.d.ts +62 -0
- package/esm/styled/index.d.ts +1 -0
- package/esm/styled/styled.d.ts +3 -0
- package/esm/typography/index.d.ts +2 -0
- package/esm/typography/typography.d.ts +11 -0
- package/esm/useMediaQuery/index.d.ts +2 -0
- package/esm/useMediaQuery/useMediaQuery.d.ts +32 -0
- package/esm/useTheme/index.d.ts +2 -0
- package/esm/useTheme/useTheme.d.ts +2 -0
- package/esm/useThemeProps/getThemeProps.d.ts +16 -0
- package/esm/useThemeProps/index.d.ts +3 -0
- package/esm/useThemeProps/useThemeProps.d.ts +14 -0
- package/esm/useThemeWithoutDefault/index.d.ts +1 -0
- package/esm/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +1 -0
- package/esm/version/index.d.ts +6 -0
- package/esm/version/index.js +5 -5
- package/flexbox/flexbox.d.ts +2 -3
- package/flexbox/index.d.ts +2 -2
- package/getThemeValue/getThemeValue.d.ts +1 -1
- package/getThemeValue/index.d.ts +2 -2
- package/index.d.ts +66 -115
- package/index.js +1 -1
- package/memoTheme.d.ts +3 -3
- package/memoize/index.d.ts +1 -1
- package/memoize/memoize.d.ts +1 -3
- package/merge/index.d.ts +1 -1
- package/merge/merge.d.ts +1 -1
- package/modern/Box/Box.d.ts +72 -0
- package/modern/Box/boxClasses.d.ts +7 -0
- package/modern/Box/index.d.ts +4 -0
- package/modern/CSSProperties.d.ts +7 -0
- package/modern/Container/Container.d.ts +13 -0
- package/modern/Container/ContainerProps.d.ts +40 -0
- package/modern/Container/containerClasses.d.ts +22 -0
- package/modern/Container/createContainer.d.ts +18 -0
- package/modern/Container/createContainer.js +2 -0
- package/modern/Container/index.d.ts +4 -0
- package/modern/DefaultPropsProvider/DefaultPropsProvider.d.ts +18 -0
- package/modern/DefaultPropsProvider/index.d.ts +1 -0
- package/modern/GlobalStyles/GlobalStyles.d.ts +17 -0
- package/modern/GlobalStyles/index.d.ts +2 -0
- package/modern/Grid/Grid.d.ts +13 -0
- package/modern/Grid/GridProps.d.ts +103 -0
- package/modern/Grid/createGrid.d.ts +13 -0
- package/modern/Grid/createGrid.js +2 -0
- package/modern/Grid/gridClasses.d.ts +20 -0
- package/modern/Grid/gridGenerator.d.ts +42 -0
- package/modern/Grid/index.d.ts +7 -0
- package/modern/Grid/traverseBreakpoints.d.ts +7 -0
- package/modern/InitColorSchemeScript/InitColorSchemeScript.d.ts +51 -0
- package/modern/InitColorSchemeScript/index.d.ts +2 -0
- package/modern/RtlProvider/index.d.ts +8 -0
- package/modern/Stack/Stack.d.ts +14 -0
- package/modern/Stack/StackProps.d.ts +53 -0
- package/modern/Stack/createStack.d.ts +24 -0
- package/modern/Stack/createStack.js +2 -0
- package/modern/Stack/index.d.ts +5 -0
- package/modern/Stack/stackClasses.d.ts +8 -0
- package/modern/ThemeProvider/ThemeProvider.d.ts +24 -0
- package/modern/ThemeProvider/index.d.ts +2 -0
- package/modern/borders/borders.d.ts +13 -0
- package/modern/borders/index.d.ts +2 -0
- package/modern/breakpoints/breakpoints.d.ts +19 -0
- package/modern/breakpoints/index.d.ts +2 -0
- package/modern/colorManipulator/colorManipulator.d.ts +25 -0
- package/modern/colorManipulator/index.d.ts +1 -0
- package/modern/compose/compose.d.ts +2 -0
- package/modern/compose/index.d.ts +1 -0
- package/modern/createBox/createBox.d.ts +9 -0
- package/modern/createBox/index.d.ts +1 -0
- package/modern/createBreakpoints/createBreakpoints.d.ts +78 -0
- package/modern/createBreakpoints/index.d.ts +3 -0
- package/modern/createStyled/createStyled.d.ts +27 -0
- package/modern/createStyled/index.d.ts +2 -0
- package/modern/createTheme/applyStyles.d.ts +67 -0
- package/modern/createTheme/createSpacing.d.ts +10 -0
- package/modern/createTheme/createTheme.d.ts +54 -0
- package/modern/createTheme/index.d.ts +4 -0
- package/modern/createTheme/shape.d.ts +6 -0
- package/modern/cssContainerQueries/cssContainerQueries.d.ts +23 -0
- package/modern/cssContainerQueries/index.d.ts +3 -0
- package/modern/cssGrid/cssGrid.d.ts +2 -0
- package/modern/cssGrid/index.d.ts +2 -0
- package/modern/cssVars/createCssVarsProvider.d.ts +129 -0
- package/modern/cssVars/createCssVarsTheme.d.ts +15 -0
- package/modern/cssVars/createGetCssVar.d.ts +5 -0
- package/modern/cssVars/cssVarsParser.d.ts +64 -0
- package/modern/cssVars/getColorSchemeSelector.d.ts +1 -0
- package/modern/cssVars/index.d.ts +7 -0
- package/modern/cssVars/prepareCssVars.d.ts +16 -0
- package/modern/cssVars/prepareTypographyVars.d.ts +4 -0
- package/modern/cssVars/useCurrentColorScheme.d.ts +54 -0
- package/modern/display/display.d.ts +2 -0
- package/modern/display/index.d.ts +2 -0
- package/modern/flexbox/flexbox.d.ts +2 -0
- package/modern/flexbox/index.d.ts +2 -0
- package/modern/getThemeValue/getThemeValue.d.ts +1 -0
- package/modern/getThemeValue/index.d.ts +2 -0
- package/modern/index.d.ts +79 -0
- package/modern/index.js +1 -1
- package/modern/memoTheme.d.ts +12 -0
- package/modern/memoize/index.d.ts +1 -0
- package/modern/memoize/memoize.d.ts +1 -0
- package/modern/merge/index.d.ts +1 -0
- package/modern/merge/merge.d.ts +1 -0
- package/modern/package.json +1 -0
- package/modern/palette/index.d.ts +2 -0
- package/modern/palette/palette.d.ts +4 -0
- package/modern/positions/index.d.ts +2 -0
- package/modern/positions/positions.d.ts +2 -0
- package/modern/preprocessStyles.d.ts +5 -0
- package/modern/propsToClassKey/index.d.ts +1 -0
- package/modern/propsToClassKey/propsToClassKey.d.ts +1 -0
- package/modern/responsivePropType/index.d.ts +1 -0
- package/modern/responsivePropType/responsivePropType.d.ts +2 -0
- package/modern/shadows/index.d.ts +1 -0
- package/modern/shadows/shadows.d.ts +2 -0
- package/modern/sizing/index.d.ts +2 -0
- package/modern/sizing/sizing.d.ts +11 -0
- package/modern/spacing/index.d.ts +2 -0
- package/modern/spacing/spacing.d.ts +18 -0
- package/modern/style/index.d.ts +2 -0
- package/modern/style/style.d.ts +19 -0
- package/modern/styleFunctionSx/AliasesCSSProperties.d.ts +269 -0
- package/modern/styleFunctionSx/OverwriteCSSProperties.d.ts +54 -0
- package/modern/styleFunctionSx/StandardCssProperties.d.ts +2 -0
- package/modern/styleFunctionSx/defaultSxConfig.d.ts +15 -0
- package/modern/styleFunctionSx/extendSxProp.d.ts +4 -0
- package/modern/styleFunctionSx/index.d.ts +9 -0
- package/modern/styleFunctionSx/styleFunctionSx.d.ts +62 -0
- package/modern/styled/index.d.ts +1 -0
- package/modern/styled/styled.d.ts +3 -0
- package/modern/typography/index.d.ts +2 -0
- package/modern/typography/typography.d.ts +11 -0
- package/modern/useMediaQuery/index.d.ts +2 -0
- package/modern/useMediaQuery/useMediaQuery.d.ts +32 -0
- package/modern/useTheme/index.d.ts +2 -0
- package/modern/useTheme/useTheme.d.ts +2 -0
- package/modern/useThemeProps/getThemeProps.d.ts +16 -0
- package/modern/useThemeProps/index.d.ts +3 -0
- package/modern/useThemeProps/useThemeProps.d.ts +14 -0
- package/modern/useThemeWithoutDefault/index.d.ts +1 -0
- package/modern/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +1 -0
- package/modern/version/index.d.ts +6 -0
- package/modern/version/index.js +5 -5
- package/package.json +36 -6
- package/palette/index.d.ts +2 -2
- package/palette/palette.d.ts +2 -3
- package/positions/index.d.ts +2 -2
- package/positions/positions.d.ts +2 -3
- package/preprocessStyles.d.ts +4 -4
- package/propsToClassKey/index.d.ts +1 -1
- package/propsToClassKey/propsToClassKey.d.ts +1 -1
- package/responsivePropType/index.d.ts +1 -1
- package/responsivePropType/responsivePropType.d.ts +1 -2
- package/shadows/index.d.ts +1 -1
- package/shadows/shadows.d.ts +2 -3
- package/sizing/index.d.ts +2 -2
- package/sizing/sizing.d.ts +2 -3
- package/spacing/index.d.ts +2 -2
- package/spacing/spacing.d.ts +15 -78
- package/style/index.d.ts +2 -2
- package/style/style.d.ts +8 -16
- package/styleFunctionSx/AliasesCSSProperties.d.ts +268 -268
- package/styleFunctionSx/OverwriteCSSProperties.d.ts +52 -52
- package/styleFunctionSx/StandardCssProperties.d.ts +1 -1
- package/styleFunctionSx/defaultSxConfig.d.ts +3 -8
- package/styleFunctionSx/extendSxProp.d.ts +4 -3
- package/styleFunctionSx/index.d.ts +9 -13
- package/styleFunctionSx/styleFunctionSx.d.ts +14 -41
- package/styled/index.d.ts +1 -1
- package/styled/styled.d.ts +2 -4
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typography/index.d.ts +2 -2
- package/typography/typography.d.ts +2 -3
- package/useMediaQuery/index.d.ts +2 -2
- package/useMediaQuery/useMediaQuery.d.ts +27 -27
- package/useTheme/index.d.ts +2 -2
- package/useTheme/useTheme.d.ts +2 -3
- package/useThemeProps/getThemeProps.d.ts +8 -9
- package/useThemeProps/index.d.ts +3 -4
- package/useThemeProps/useThemeProps.d.ts +6 -12
- package/useThemeWithoutDefault/index.d.ts +1 -1
- package/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +1 -1
- package/version/index.d.ts +1 -1
- package/version/index.js +5 -5
- package/Box/package.json +0 -6
- package/Container/package.json +0 -6
- package/DefaultPropsProvider/package.json +0 -6
- package/GlobalStyles/package.json +0 -6
- package/Grid/package.json +0 -6
- package/InitColorSchemeScript/package.json +0 -6
- package/RtlProvider/package.json +0 -6
- package/Stack/package.json +0 -6
- package/ThemeProvider/package.json +0 -6
- package/borders/package.json +0 -6
- package/breakpoints/package.json +0 -6
- package/colorManipulator/package.json +0 -6
- package/compose/package.json +0 -6
- package/createBox/package.json +0 -6
- package/createBreakpoints/package.json +0 -6
- package/createStyled/package.json +0 -6
- package/createTheme/package.json +0 -6
- package/cssContainerQueries/package.json +0 -6
- package/cssGrid/package.json +0 -6
- package/cssVars/package.json +0 -6
- package/display/package.json +0 -6
- package/flexbox/package.json +0 -6
- package/getThemeValue/package.json +0 -6
- package/memoize/package.json +0 -6
- package/merge/package.json +0 -6
- package/palette/package.json +0 -6
- package/positions/package.json +0 -6
- package/propsToClassKey/package.json +0 -6
- package/responsivePropType/package.json +0 -6
- package/shadows/package.json +0 -6
- package/sizing/package.json +0 -6
- package/spacing/package.json +0 -6
- package/style/package.json +0 -6
- package/styleFunctionSx/package.json +0 -6
- package/styled/package.json +0 -6
- package/typography/package.json +0 -6
- package/useMediaQuery/package.json +0 -6
- package/useTheme/package.json +0 -6
- package/useThemeProps/package.json +0 -6
- package/useThemeWithoutDefault/package.json +0 -6
- package/version/package.json +0 -6
|
@@ -6,46 +6,46 @@ export declare const DEFAULT_MODE_STORAGE_KEY = "mode";
|
|
|
6
6
|
export declare const DEFAULT_COLOR_SCHEME_STORAGE_KEY = "color-scheme";
|
|
7
7
|
export declare const DEFAULT_ATTRIBUTE = "data-color-scheme";
|
|
8
8
|
export interface InitColorSchemeScriptProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The default mode when the storage is empty (user's first visit).
|
|
11
|
+
* @default 'system'
|
|
12
|
+
*/
|
|
13
|
+
defaultMode?: 'system' | 'light' | 'dark';
|
|
14
|
+
/**
|
|
15
|
+
* The default color scheme to be used on the light mode.
|
|
16
|
+
* @default 'light'
|
|
17
|
+
*/
|
|
18
|
+
defaultLightColorScheme?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The default color scheme to be used on the dark mode.
|
|
21
|
+
* * @default 'dark'
|
|
22
|
+
*/
|
|
23
|
+
defaultDarkColorScheme?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The node (provided as string) used to attach the color-scheme attribute.
|
|
26
|
+
* @default 'document.documentElement'
|
|
27
|
+
*/
|
|
28
|
+
colorSchemeNode?: string;
|
|
29
|
+
/**
|
|
30
|
+
* localStorage key used to store `mode`.
|
|
31
|
+
* @default 'mode'
|
|
32
|
+
*/
|
|
33
|
+
modeStorageKey?: string;
|
|
34
|
+
/**
|
|
35
|
+
* localStorage key used to store `colorScheme`.
|
|
36
|
+
* @default 'color-scheme'
|
|
37
|
+
*/
|
|
38
|
+
colorSchemeStorageKey?: string;
|
|
39
|
+
/**
|
|
40
|
+
* DOM attribute for applying color scheme.
|
|
41
|
+
* @default 'data-color-scheme'
|
|
42
|
+
* @example '.mode-%s' // for class based color scheme
|
|
43
|
+
* @example '[data-mode-%s]' // for data-attribute without '='
|
|
44
|
+
*/
|
|
45
|
+
attribute?: 'class' | 'data' | string;
|
|
46
|
+
/**
|
|
47
|
+
* Nonce string to pass to the inline script for CSP headers.
|
|
48
|
+
*/
|
|
49
|
+
nonce?: string | undefined;
|
|
50
50
|
}
|
|
51
|
-
export default function InitColorSchemeScript(options?: InitColorSchemeScriptProps): React.JSX.Element;
|
|
51
|
+
export default function InitColorSchemeScript(options?: InitColorSchemeScriptProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export type { InitColorSchemeScriptProps } from
|
|
1
|
+
export { default } from "./InitColorSchemeScript.js";
|
|
2
|
+
export type { InitColorSchemeScriptProps } from "./InitColorSchemeScript.js";
|
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@ MUI System is a set of CSS utilities to help you build custom designs more effi
|
|
|
6
6
|
|
|
7
7
|
Install the package in your project directory with:
|
|
8
8
|
|
|
9
|
-
<!-- #
|
|
9
|
+
<!-- #npm-tag-reference -->
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install @mui/system @emotion/react @emotion/styled
|
|
12
|
+
npm install @mui/system@next @emotion/react @emotion/styled
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Documentation
|
|
16
16
|
|
|
17
|
-
<!-- #
|
|
17
|
+
<!-- #host-reference -->
|
|
18
18
|
|
|
19
|
-
Visit [https://mui.com/system/getting-started/](https://mui.com/system/getting-started/) to view the full documentation.
|
|
19
|
+
Visit [https://next.mui.com/system/getting-started/](https://next.mui.com/system/getting-started/) to view the full documentation.
|
package/RtlProvider/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
interface RtlProviderProps {
|
|
4
3
|
children?: React.ReactNode;
|
|
5
4
|
value?: boolean;
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
declare const RtlProvider: React.FC<RtlProviderProps>;
|
|
9
7
|
export const useRtl: () => boolean;
|
|
10
|
-
|
|
11
|
-
export default RtlProvider;
|
|
8
|
+
export default RtlProvider;
|
package/Stack/Stack.d.ts
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
*
|
|
11
11
|
* - [Stack API](https://mui.com/system/api/stack/)
|
|
12
12
|
*/
|
|
13
|
-
declare const Stack: import("@mui/types").OverridableComponent<import("./StackProps").StackTypeMap<{}, "div">>;
|
|
14
|
-
export default Stack;
|
|
13
|
+
declare const Stack: import("@mui/types").OverridableComponent<import("./StackProps.js").StackTypeMap<{}, "div">>;
|
|
14
|
+
export default Stack;
|
package/Stack/StackProps.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { ResponsiveStyleValue, SxProps } from
|
|
4
|
-
import { SystemProps } from
|
|
5
|
-
import { Theme } from
|
|
3
|
+
import { ResponsiveStyleValue, SxProps } from "../styleFunctionSx/index.js";
|
|
4
|
+
import { SystemProps } from "../Box/index.js";
|
|
5
|
+
import { Theme } from "../createTheme/index.js";
|
|
6
6
|
export interface StackBaseProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The content of the component.
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the `flex-direction` style property.
|
|
13
|
+
* It is applied for all screen sizes.
|
|
14
|
+
* @default 'column'
|
|
15
|
+
*/
|
|
16
|
+
direction?: ResponsiveStyleValue<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the space between immediate children.
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
spacing?: ResponsiveStyleValue<number | string>;
|
|
22
|
+
/**
|
|
23
|
+
* Add an element between each child.
|
|
24
|
+
*/
|
|
25
|
+
divider?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
28
|
+
*
|
|
29
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
30
|
+
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
31
|
+
*
|
|
32
|
+
* To enable this flag globally, follow the theme's default props configuration.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
useFlexGap?: boolean;
|
|
36
36
|
}
|
|
37
37
|
export interface StackTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
props: AdditionalProps & StackBaseProps & {
|
|
39
|
+
/**
|
|
40
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
41
|
+
*/
|
|
42
|
+
sx?: SxProps<Theme>;
|
|
43
|
+
} & SystemProps<Theme>;
|
|
44
|
+
defaultComponent: DefaultComponent;
|
|
45
45
|
}
|
|
46
46
|
export type StackProps<RootComponent extends React.ElementType = StackTypeMap['defaultComponent'], AdditionalProps = {
|
|
47
|
-
|
|
47
|
+
component?: React.ElementType;
|
|
48
48
|
}> = OverrideProps<StackTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
49
49
|
export interface StackOwnerState {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
50
|
+
direction: StackProps['direction'];
|
|
51
|
+
spacing: StackProps['spacing'];
|
|
52
|
+
useFlexGap: boolean;
|
|
53
|
+
}
|
package/Stack/createStack.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableComponent } from '@mui/types';
|
|
3
|
-
import { StackTypeMap, StackOwnerState } from
|
|
4
|
-
import { Breakpoints } from
|
|
5
|
-
import { Spacing } from
|
|
3
|
+
import { StackTypeMap, StackOwnerState } from "./StackProps.js";
|
|
4
|
+
import { Breakpoints } from "../createBreakpoints/createBreakpoints.js";
|
|
5
|
+
import { Spacing } from "../createTheme/createSpacing.js";
|
|
6
6
|
interface StyleFunctionProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
theme: {
|
|
8
|
+
breakpoints: Breakpoints;
|
|
9
|
+
spacing: Spacing;
|
|
10
|
+
};
|
|
11
|
+
ownerState: StackOwnerState;
|
|
12
12
|
}
|
|
13
|
-
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
13
|
+
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled/index.js").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
14
14
|
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
15
|
-
export declare const style: ({
|
|
15
|
+
export declare const style: ({
|
|
16
|
+
ownerState,
|
|
17
|
+
theme
|
|
18
|
+
}: StyleFunctionProps) => any;
|
|
16
19
|
export default function createStack(options?: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
21
|
+
useThemeProps?: typeof useThemePropsDefault;
|
|
22
|
+
componentName?: string;
|
|
20
23
|
}): OverridableComponent<StackTypeMap<{}, "div">>;
|
|
21
|
-
export {};
|
|
24
|
+
export {};
|
package/Stack/createStack.js
CHANGED
package/Stack/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export { default as createStack } from
|
|
3
|
-
export * from
|
|
4
|
-
export { default as stackClasses } from
|
|
5
|
-
export * from
|
|
1
|
+
export { default } from "./Stack.js";
|
|
2
|
+
export { default as createStack } from "./createStack.js";
|
|
3
|
+
export * from "./StackProps.js";
|
|
4
|
+
export { default as stackClasses } from "./stackClasses.js";
|
|
5
|
+
export * from "./stackClasses.js";
|
package/Stack/stackClasses.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface StackClasses {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
4
|
}
|
|
5
5
|
export type StackClassKey = keyof StackClasses;
|
|
6
6
|
export declare function getStackUtilityClass(slot: string): string;
|
|
7
7
|
declare const stackClasses: StackClasses;
|
|
8
|
-
export default stackClasses;
|
|
8
|
+
export default stackClasses;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DefaultTheme } from '@mui/private-theming';
|
|
2
|
-
|
|
3
2
|
export interface ThemeProviderProps<Theme = DefaultTheme> {
|
|
4
3
|
/**
|
|
5
4
|
* Your component tree.
|
|
@@ -22,6 +21,4 @@ export interface ThemeProviderProps<Theme = DefaultTheme> {
|
|
|
22
21
|
*
|
|
23
22
|
* - [ThemeProvider API](https://mui.com/material-ui/customization/theming/#themeprovider)
|
|
24
23
|
*/
|
|
25
|
-
export default function ThemeProvider<T = DefaultTheme>(
|
|
26
|
-
props: ThemeProviderProps<T>,
|
|
27
|
-
): React.ReactElement<ThemeProviderProps<T>>;
|
|
24
|
+
export default function ThemeProvider<T = DefaultTheme>(props: ThemeProviderProps<T>): React.ReactElement<ThemeProviderProps<T>>;
|
package/ThemeProvider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./ThemeProvider.js";
|
|
2
|
+
export * from "./ThemeProvider.js";
|
package/borders/borders.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction, borders } from
|
|
2
|
-
|
|
1
|
+
import { PropsFor, SimpleStyleFunction, borders } from "../Box/index.js";
|
|
3
2
|
export const border: SimpleStyleFunction<'border'>;
|
|
4
3
|
export const borderTop: SimpleStyleFunction<'borderTop'>;
|
|
5
4
|
export const borderRight: SimpleStyleFunction<'borderRight'>;
|
|
@@ -11,4 +10,4 @@ export const borderRightColor: SimpleStyleFunction<'borderRightColor'>;
|
|
|
11
10
|
export const borderBottomColor: SimpleStyleFunction<'borderBottomColor'>;
|
|
12
11
|
export const borderLeftColor: SimpleStyleFunction<'borderLeftColor'>;
|
|
13
12
|
export const borderRadius: SimpleStyleFunction<'borderRadius'>;
|
|
14
|
-
export type BordersProps = PropsFor<typeof borders>;
|
|
13
|
+
export type BordersProps = PropsFor<typeof borders>;
|
package/borders/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./borders.js";
|
|
2
|
+
export * from "./borders.js";
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
import { CSSObject } from '@mui/styled-engine';
|
|
2
|
-
import { Breakpoints } from
|
|
3
|
-
import type { Breakpoint } from
|
|
4
|
-
import { ResponsiveStyleValue } from
|
|
5
|
-
import { StyleFunction } from
|
|
6
|
-
|
|
2
|
+
import { Breakpoints } from "../createBreakpoints/createBreakpoints.js";
|
|
3
|
+
import type { Breakpoint } from "../createTheme/index.js";
|
|
4
|
+
import { ResponsiveStyleValue } from "../styleFunctionSx/index.js";
|
|
5
|
+
import { StyleFunction } from "../Box/index.js";
|
|
7
6
|
export interface ResolveBreakpointValuesOptions<T> {
|
|
8
7
|
values: ResponsiveStyleValue<T>;
|
|
9
8
|
breakpoints?: Breakpoints['values'];
|
|
10
9
|
base?: Record<string, boolean>;
|
|
11
10
|
}
|
|
12
|
-
export function resolveBreakpointValues<T>(
|
|
13
|
-
options: ResolveBreakpointValuesOptions<T>,
|
|
14
|
-
): Record<string, T>;
|
|
15
|
-
|
|
11
|
+
export function resolveBreakpointValues<T>(options: ResolveBreakpointValuesOptions<T>): Record<string, T>;
|
|
16
12
|
export function mergeBreakpointsInOrder(breakpoints: Breakpoints, styles: CSSObject[]): CSSObject;
|
|
17
|
-
|
|
18
|
-
export function handleBreakpoints<Props>(
|
|
19
|
-
props: Props,
|
|
20
|
-
propValue: any,
|
|
21
|
-
styleFromPropValue: (value: any, breakpoint?: Breakpoint) => any,
|
|
22
|
-
): any;
|
|
23
|
-
|
|
13
|
+
export function handleBreakpoints<Props>(props: Props, propValue: any, styleFromPropValue: (value: any, breakpoint?: Breakpoint) => any): any;
|
|
24
14
|
type DefaultBreakPoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
25
15
|
|
|
26
16
|
/**
|
|
27
17
|
* @returns An enhanced stylefunction that considers breakpoints
|
|
28
18
|
*/
|
|
29
|
-
export default function breakpoints<Props, Breakpoints extends string = DefaultBreakPoints>(
|
|
30
|
-
styleFunction: StyleFunction<Props>,
|
|
31
|
-
): StyleFunction<Partial<Record<Breakpoints, Props>> & Props>;
|
|
19
|
+
export default function breakpoints<Props, Breakpoints extends string = DefaultBreakPoints>(styleFunction: StyleFunction<Props>): StyleFunction<Partial<Record<Breakpoints, Props>> & Props>;
|
package/breakpoints/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./breakpoints.js";
|
|
2
|
+
export * from "./breakpoints.js";
|
|
@@ -5,7 +5,6 @@ export interface ColorObject {
|
|
|
5
5
|
values: [number, number, number] | [number, number, number, number];
|
|
6
6
|
colorSpace?: 'srgb' | 'display-p3' | 'a98-rgb' | 'prophoto-rgb' | 'rec-2020';
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
export function hexToRgb(hex: string): string;
|
|
10
9
|
export function rgbToHex(color: string): string;
|
|
11
10
|
export function hslToRgb(color: string): string;
|
|
@@ -16,15 +15,11 @@ export function recomposeColor(color: ColorObject): string;
|
|
|
16
15
|
export function getContrastRatio(foreground: string, background: string): number;
|
|
17
16
|
export function getLuminance(color: string): number;
|
|
18
17
|
export function emphasize(color: string, coefficient?: number): string;
|
|
19
|
-
export function private_safeEmphasize(
|
|
20
|
-
color: string,
|
|
21
|
-
coefficient?: number,
|
|
22
|
-
warning?: string,
|
|
23
|
-
): string;
|
|
18
|
+
export function private_safeEmphasize(color: string, coefficient?: number, warning?: string): string;
|
|
24
19
|
export function alpha(color: string, value: number): string;
|
|
25
20
|
export function private_safeAlpha(color: string, value: number, warning?: string): string;
|
|
26
21
|
export function darken(color: string, coefficient: number): string;
|
|
27
22
|
export function private_safeDarken(color: string, coefficient: number, warning?: string): string;
|
|
28
23
|
export function lighten(color: string, coefficient: number): string;
|
|
29
24
|
export function private_safeLighten(color: string, coefficient: number, warning?: string): string;
|
|
30
|
-
export function blend(background: string, overlay: string, opacity: number, gamma?: number): string;
|
|
25
|
+
export function blend(background: string, overlay: string, opacity: number, gamma?: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./colorManipulator.js";
|
package/compose/compose.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { ComposedStyleFunction, StyleFunction } from
|
|
2
|
-
|
|
3
|
-
export default function compose<T extends Array<StyleFunction<any>>>(
|
|
4
|
-
...args: T
|
|
5
|
-
): ComposedStyleFunction<T>;
|
|
1
|
+
import { ComposedStyleFunction, StyleFunction } from "../Box/index.js";
|
|
2
|
+
export default function compose<T extends Array<StyleFunction<any>>>(...args: T): ComposedStyleFunction<T>;
|
package/compose/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./compose.js";
|
package/createBox/createBox.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { OverridableComponent } from '@mui/types';
|
|
2
|
-
import { BoxTypeMap } from
|
|
3
|
-
import { Theme as SystemTheme } from
|
|
4
|
-
|
|
5
|
-
export default function createBox<
|
|
6
|
-
T extends object = SystemTheme,
|
|
7
|
-
AdditionalProps extends Record<string, unknown> = {},
|
|
8
|
-
>(options?: {
|
|
2
|
+
import { BoxTypeMap } from "../Box/index.js";
|
|
3
|
+
import { Theme as SystemTheme } from "../createTheme/index.js";
|
|
4
|
+
export default function createBox<T extends object = SystemTheme, AdditionalProps extends Record<string, unknown> = {}>(options?: {
|
|
9
5
|
themeId?: string;
|
|
10
6
|
defaultTheme: T;
|
|
11
7
|
defaultClassName?: string;
|
|
12
8
|
generateClassName?: (componentName: string) => string;
|
|
13
|
-
}): OverridableComponent<BoxTypeMap<AdditionalProps, 'div', T>>;
|
|
9
|
+
}): OverridableComponent<BoxTypeMap<AdditionalProps, 'div', T>>;
|
package/createBox/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./createBox.js";
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { OverridableStringUnion } from '@mui/types';
|
|
2
|
-
|
|
3
2
|
export interface BreakpointOverrides {}
|
|
4
|
-
|
|
5
|
-
export type Breakpoint = OverridableStringUnion<
|
|
6
|
-
'xs' | 'sm' | 'md' | 'lg' | 'xl',
|
|
7
|
-
BreakpointOverrides
|
|
8
|
-
>;
|
|
3
|
+
export type Breakpoint = OverridableStringUnion<'xs' | 'sm' | 'md' | 'lg' | 'xl', BreakpointOverrides>;
|
|
9
4
|
export const keys: Breakpoint[];
|
|
10
5
|
|
|
11
6
|
// Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md
|
|
12
|
-
// #
|
|
7
|
+
// #host-reference
|
|
13
8
|
export interface Breakpoints {
|
|
14
9
|
keys: Breakpoint[];
|
|
15
10
|
/**
|
|
@@ -31,13 +26,13 @@ export interface Breakpoints {
|
|
|
31
26
|
/**
|
|
32
27
|
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
33
28
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than the screen size given by the breakpoint key (inclusive).
|
|
34
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-up-key-media-query)
|
|
29
|
+
* @see [API documentation](https://next.mui.com/material-ui/customization/breakpoints/#theme-breakpoints-up-key-media-query)
|
|
35
30
|
*/
|
|
36
31
|
up: (key: Breakpoint | number) => string;
|
|
37
32
|
/**
|
|
38
33
|
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
39
34
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths less than the screen size given by the breakpoint key (exclusive).
|
|
40
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-down-key-media-query)
|
|
35
|
+
* @see [API documentation](https://next.mui.com/material-ui/customization/breakpoints/#theme-breakpoints-down-key-media-query)
|
|
41
36
|
*/
|
|
42
37
|
down: (key: Breakpoint | number) => string;
|
|
43
38
|
/**
|
|
@@ -45,14 +40,14 @@ export interface Breakpoints {
|
|
|
45
40
|
* @param end - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
46
41
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than
|
|
47
42
|
* the screen size given by the breakpoint key in the first argument (inclusive) and less than the screen size given by the breakpoint key in the second argument (exclusive).
|
|
48
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-between-start-end-media-query)
|
|
43
|
+
* @see [API documentation](https://next.mui.com/material-ui/customization/breakpoints/#theme-breakpoints-between-start-end-media-query)
|
|
49
44
|
*/
|
|
50
45
|
between: (start: Breakpoint | number, end: Breakpoint | number) => string;
|
|
51
46
|
/**
|
|
52
47
|
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
53
48
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths starting from
|
|
54
49
|
* the screen size given by the breakpoint key (inclusive) and stopping at the screen size given by the next breakpoint key (exclusive).
|
|
55
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-only-key-media-query)
|
|
50
|
+
* @see [API documentation](https://next.mui.com/material-ui/customization/breakpoints/#theme-breakpoints-only-key-media-query)
|
|
56
51
|
*/
|
|
57
52
|
only: (key: Breakpoint) => string;
|
|
58
53
|
/**
|
|
@@ -67,7 +62,6 @@ export interface Breakpoints {
|
|
|
67
62
|
*/
|
|
68
63
|
unit?: string | undefined;
|
|
69
64
|
}
|
|
70
|
-
|
|
71
65
|
export interface BreakpointsOptions extends Partial<Breakpoints> {
|
|
72
66
|
/**
|
|
73
67
|
* The increment divided by 100 used to implement exclusive breakpoints.
|
|
@@ -81,5 +75,4 @@ export interface BreakpointsOptions extends Partial<Breakpoints> {
|
|
|
81
75
|
*/
|
|
82
76
|
unit?: string | undefined;
|
|
83
77
|
}
|
|
84
|
-
|
|
85
|
-
export default function createBreakpoints(options: BreakpointsOptions): Breakpoints;
|
|
78
|
+
export default function createBreakpoints(options: BreakpointsOptions): Breakpoints;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** This export is intended for internal integration with Pigment CSS */
|
|
2
2
|
/* eslint-disable import/prefer-default-export */
|
|
3
|
-
export { default as unstable_createBreakpoints } from
|
|
3
|
+
export { default as unstable_createBreakpoints } from "./createBreakpoints.js";
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from '@mui/styled-engine';
|
|
6
|
-
import styleFunctionSx, { SxProps } from '../styleFunctionSx';
|
|
7
|
-
import { Theme as DefaultTheme } from '../createTheme';
|
|
8
|
-
|
|
2
|
+
import { CreateMUIStyled as CreateMUIStyledStyledEngine, CSSInterpolation } from '@mui/styled-engine';
|
|
3
|
+
import styleFunctionSx, { SxProps } from "../styleFunctionSx/index.js";
|
|
4
|
+
import { Theme as DefaultTheme } from "../createTheme/index.js";
|
|
9
5
|
export function shouldForwardProp(propName: PropertyKey): boolean;
|
|
10
|
-
|
|
11
6
|
export interface MUIStyledCommonProps<Theme extends object = DefaultTheme> {
|
|
12
7
|
theme?: Theme;
|
|
13
8
|
as?: React.ElementType;
|
|
14
9
|
sx?: SxProps<Theme>;
|
|
15
10
|
}
|
|
16
|
-
|
|
17
11
|
export interface MuiStyledOptions {
|
|
18
12
|
name?: string;
|
|
19
13
|
slot?: string;
|
|
@@ -23,17 +17,11 @@ export interface MuiStyledOptions {
|
|
|
23
17
|
skipVariantsResolver?: boolean;
|
|
24
18
|
skipSx?: boolean;
|
|
25
19
|
}
|
|
26
|
-
|
|
27
|
-
export type CreateMUIStyled<Theme extends object = DefaultTheme> = CreateMUIStyledStyledEngine<
|
|
28
|
-
MUIStyledCommonProps<Theme>,
|
|
29
|
-
MuiStyledOptions,
|
|
30
|
-
Theme
|
|
31
|
-
>;
|
|
32
|
-
|
|
20
|
+
export type CreateMUIStyled<Theme extends object = DefaultTheme> = CreateMUIStyledStyledEngine<MUIStyledCommonProps<Theme>, MuiStyledOptions, Theme>;
|
|
33
21
|
export default function createStyled<Theme extends object = DefaultTheme>(options?: {
|
|
34
22
|
themeId?: string;
|
|
35
23
|
defaultTheme?: Theme;
|
|
36
24
|
rootShouldForwardProp?: (prop: PropertyKey) => boolean;
|
|
37
25
|
slotShouldForwardProp?: (prop: PropertyKey) => boolean;
|
|
38
26
|
styleFunctionSx?: typeof styleFunctionSx;
|
|
39
|
-
}): CreateMUIStyled<Theme>;
|
|
27
|
+
}): CreateMUIStyled<Theme>;
|
package/createStyled/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./createStyled.js";
|
|
2
|
+
export * from "./createStyled.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@mui/styled-engine';
|
|
2
2
|
export interface ApplyStyles<K extends string> {
|
|
3
|
-
|
|
3
|
+
(key: K, styles: CSSObject): CSSObject;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* A universal utility to style components with multiple color modes. Always use it from the theme object.
|
|
@@ -64,4 +64,4 @@ export interface ApplyStyles<K extends string> {
|
|
|
64
64
|
* })
|
|
65
65
|
*```
|
|
66
66
|
*/
|
|
67
|
-
export default function applyStyles<K extends string>(key: K, styles: CSSObject): CSSObject;
|
|
67
|
+
export default function applyStyles<K extends string>(key: K, styles: CSSObject): CSSObject;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export type SpacingOptions = number | string | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
2
2
|
export type SpacingArgument = number | string;
|
|
3
3
|
export interface Spacing {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
(): string;
|
|
5
|
+
(value: SpacingArgument): string;
|
|
6
|
+
(topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
|
|
7
|
+
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
|
+
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
9
|
}
|
|
10
|
-
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | (() => undefined) | ((abs: number | string) => number | number)): Spacing;
|
|
10
|
+
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | (() => undefined) | ((abs: number | string) => number | number)): Spacing;
|