@mui/system 9.0.0-alpha.0 → 9.0.0-alpha.2
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/{esm/Box/Box.d.ts → Box/Box.d.mts} +17 -17
- package/Box/Box.d.ts +3 -3
- package/{esm/Box/Box.js → Box/Box.mjs} +2 -2
- package/Box/index.d.mts +4 -0
- package/Box/index.mjs +3 -0
- package/CHANGELOG.md +74 -0
- package/{esm/Container/Container.d.ts → Container/Container.d.mts} +1 -1
- package/{esm/Container/Container.js → Container/Container.mjs} +1 -1
- package/{esm/Container/ContainerProps.d.ts → Container/ContainerProps.d.mts} +8 -8
- package/Container/ContainerProps.d.ts +5 -5
- package/{esm/Container/createContainer.d.ts → Container/createContainer.d.mts} +7 -7
- package/Container/createContainer.d.ts +5 -5
- package/{esm/Container/createContainer.js → Container/createContainer.mjs} +3 -3
- package/Container/index.d.mts +4 -0
- package/Container/index.mjs +3 -0
- package/{esm/DefaultPropsProvider/index.d.ts → DefaultPropsProvider/index.d.mts} +1 -1
- package/{esm/DefaultPropsProvider/index.js → DefaultPropsProvider/index.mjs} +1 -1
- package/{esm/GlobalStyles/GlobalStyles.d.ts → GlobalStyles/GlobalStyles.d.mts} +3 -3
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/{esm/GlobalStyles/GlobalStyles.js → GlobalStyles/GlobalStyles.mjs} +1 -1
- package/GlobalStyles/index.d.mts +2 -0
- package/GlobalStyles/index.mjs +2 -0
- package/{esm/Grid/Grid.d.ts → Grid/Grid.d.mts} +1 -1
- package/{esm/Grid/Grid.js → Grid/Grid.mjs} +1 -1
- package/{esm/Grid/GridProps.d.ts → Grid/GridProps.d.mts} +14 -15
- package/Grid/GridProps.d.ts +12 -13
- package/Grid/createGrid.d.mts +13 -0
- package/Grid/createGrid.d.ts +4 -4
- package/Grid/createGrid.js +1 -6
- package/{esm/Grid/createGrid.js → Grid/createGrid.mjs} +6 -11
- package/{esm/Grid/gridGenerator.d.ts → Grid/gridGenerator.d.mts} +5 -5
- package/Grid/gridGenerator.d.ts +1 -1
- package/{esm/Grid/gridGenerator.js → Grid/gridGenerator.mjs} +1 -1
- package/Grid/index.d.mts +7 -0
- package/Grid/index.mjs +7 -0
- package/{esm/Grid/traverseBreakpoints.d.ts → Grid/traverseBreakpoints.d.mts} +1 -1
- package/{esm/InitColorSchemeScript/InitColorSchemeScript.d.ts → InitColorSchemeScript/InitColorSchemeScript.d.mts} +7 -7
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
- package/InitColorSchemeScript/index.d.mts +2 -0
- package/InitColorSchemeScript/index.mjs +1 -0
- package/{esm/RtlProvider/index.d.ts → RtlProvider/index.d.mts} +1 -1
- package/RtlProvider/index.d.ts +1 -1
- package/{esm/Stack/Stack.d.ts → Stack/Stack.d.mts} +1 -1
- package/{esm/Stack/Stack.js → Stack/Stack.mjs} +1 -1
- package/{esm/Stack/StackProps.d.ts → Stack/StackProps.d.mts} +8 -8
- package/Stack/StackProps.d.ts +5 -5
- package/{esm/Stack/createStack.d.ts → Stack/createStack.d.mts} +7 -7
- package/Stack/createStack.d.ts +3 -3
- package/{esm/Stack/createStack.js → Stack/createStack.mjs} +6 -6
- package/Stack/index.d.mts +5 -0
- package/Stack/index.mjs +5 -0
- package/{esm/ThemeProvider/ThemeProvider.d.ts → ThemeProvider/ThemeProvider.d.mts} +1 -1
- package/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/{esm/ThemeProvider/ThemeProvider.js → ThemeProvider/ThemeProvider.mjs} +4 -4
- package/ThemeProvider/index.d.mts +2 -0
- package/ThemeProvider/index.mjs +1 -0
- package/{esm/ThemeProvider/useLayerOrder.d.ts → ThemeProvider/useLayerOrder.d.mts} +1 -1
- package/ThemeProvider/useLayerOrder.d.ts +1 -1
- package/{esm/ThemeProvider/useLayerOrder.js → ThemeProvider/useLayerOrder.mjs} +2 -2
- package/{esm/borders/borders.d.ts → borders/borders.d.mts} +1 -1
- package/{esm/borders/borders.js → borders/borders.mjs} +5 -5
- package/borders/index.d.mts +2 -0
- package/borders/index.mjs +2 -0
- package/{esm/breakpoints/breakpoints.d.ts → breakpoints/breakpoints.d.mts} +6 -6
- package/breakpoints/breakpoints.d.ts +2 -2
- package/{esm/breakpoints/breakpoints.js → breakpoints/breakpoints.mjs} +2 -2
- package/breakpoints/index.d.mts +2 -0
- package/breakpoints/index.mjs +2 -0
- package/{esm/colorManipulator/colorManipulator.d.ts → colorManipulator/colorManipulator.d.mts} +1 -1
- package/colorManipulator/colorManipulator.d.ts +1 -1
- package/colorManipulator/index.d.mts +1 -0
- package/colorManipulator/index.mjs +1 -0
- package/{esm/compose/compose.d.ts → compose/compose.d.mts} +1 -1
- package/{esm/compose/compose.js → compose/compose.mjs} +1 -1
- package/compose/index.d.mts +1 -0
- package/compose/index.mjs +1 -0
- package/{esm/createBox/createBox.d.ts → createBox/createBox.d.mts} +5 -5
- package/createBox/createBox.d.ts +3 -3
- package/{esm/createBox/createBox.js → createBox/createBox.mjs} +2 -2
- package/createBox/index.d.mts +1 -0
- package/createBox/index.mjs +1 -0
- package/{esm/createBreakpoints/index.d.ts → createBreakpoints/index.d.mts} +1 -1
- package/{esm/createBreakpoints/index.js → createBreakpoints/index.mjs} +1 -1
- package/{esm/createStyled/createStyled.d.ts → createStyled/createStyled.d.mts} +15 -15
- package/createStyled/createStyled.d.ts +13 -13
- package/{esm/createStyled/createStyled.js → createStyled/createStyled.mjs} +3 -3
- package/createStyled/index.d.mts +2 -0
- package/createStyled/index.mjs +2 -0
- package/{esm/createTheme/createSpacing.js → createTheme/createSpacing.mjs} +1 -1
- package/{esm/createTheme/createTheme.d.ts → createTheme/createTheme.d.mts} +25 -25
- package/createTheme/createTheme.d.ts +18 -18
- package/{esm/createTheme/createTheme.js → createTheme/createTheme.mjs} +7 -7
- package/createTheme/index.d.mts +4 -0
- package/createTheme/index.mjs +3 -0
- package/{esm/cssContainerQueries/cssContainerQueries.d.ts → cssContainerQueries/cssContainerQueries.d.mts} +1 -1
- package/cssContainerQueries/cssContainerQueries.js +1 -1
- package/{esm/cssContainerQueries/cssContainerQueries.js → cssContainerQueries/cssContainerQueries.mjs} +1 -1
- package/{esm/cssContainerQueries/index.d.ts → cssContainerQueries/index.d.mts} +3 -3
- package/cssContainerQueries/index.mjs +2 -0
- package/{esm/cssGrid/cssGrid.d.ts → cssGrid/cssGrid.d.mts} +1 -1
- package/{esm/cssGrid/cssGrid.js → cssGrid/cssGrid.mjs} +5 -5
- package/cssGrid/index.d.mts +2 -0
- package/cssGrid/index.mjs +2 -0
- package/{esm/cssVars/createCssVarsProvider.d.ts → cssVars/createCssVarsProvider.d.mts} +21 -21
- package/cssVars/createCssVarsProvider.d.ts +18 -18
- package/{esm/cssVars/createCssVarsProvider.js → cssVars/createCssVarsProvider.mjs} +3 -3
- package/{esm/cssVars/createCssVarsTheme.d.ts → cssVars/createCssVarsTheme.d.mts} +4 -4
- package/cssVars/createCssVarsTheme.d.ts +3 -3
- package/{esm/cssVars/createCssVarsTheme.js → cssVars/createCssVarsTheme.mjs} +3 -3
- package/{esm/cssVars/cssVarsParser.d.ts → cssVars/cssVarsParser.d.mts} +2 -2
- package/cssVars/cssVarsParser.d.ts +2 -2
- package/{esm/cssVars/index.d.ts → cssVars/index.d.mts} +8 -8
- package/{esm/cssVars/index.js → cssVars/index.mjs} +5 -5
- package/{esm/cssVars/localStorageManager.d.ts → cssVars/localStorageManager.d.mts} +1 -1
- package/cssVars/localStorageManager.d.ts +1 -1
- package/cssVars/prepareCssVars.d.mts +17 -0
- package/cssVars/prepareCssVars.d.ts +8 -8
- package/{esm/cssVars/prepareCssVars.js → cssVars/prepareCssVars.mjs} +1 -1
- package/{esm/cssVars/useCurrentColorScheme.d.ts → cssVars/useCurrentColorScheme.d.mts} +7 -7
- package/cssVars/useCurrentColorScheme.d.ts +6 -6
- package/{esm/cssVars/useCurrentColorScheme.js → cssVars/useCurrentColorScheme.mjs} +2 -2
- package/{esm/display/display.d.ts → display/display.d.mts} +1 -1
- package/{esm/display/display.js → display/display.mjs} +2 -2
- package/display/index.d.mts +2 -0
- package/display/index.mjs +2 -0
- package/{esm/flexbox/flexbox.d.ts → flexbox/flexbox.d.mts} +1 -1
- package/{esm/flexbox/flexbox.js → flexbox/flexbox.mjs} +2 -2
- package/flexbox/index.d.mts +2 -0
- package/flexbox/index.mjs +2 -0
- package/{esm/getThemeValue/getThemeValue.js → getThemeValue/getThemeValue.mjs} +10 -10
- package/getThemeValue/index.d.mts +2 -0
- package/getThemeValue/index.mjs +2 -0
- package/index.d.mts +90 -0
- package/index.js +1 -1
- package/index.mjs +76 -0
- package/{esm/memoTheme.js → memoTheme.mjs} +1 -1
- package/memoize/index.d.mts +1 -0
- package/memoize/index.mjs +1 -0
- package/merge/index.d.mts +1 -0
- package/merge/index.mjs +1 -0
- package/package.json +583 -16
- package/palette/index.d.mts +2 -0
- package/palette/index.mjs +2 -0
- package/{esm/palette/palette.d.ts → palette/palette.d.mts} +1 -1
- package/{esm/palette/palette.js → palette/palette.mjs} +2 -2
- package/positions/index.d.mts +2 -0
- package/positions/index.mjs +2 -0
- package/{esm/positions/positions.d.ts → positions/positions.d.mts} +1 -1
- package/{esm/positions/positions.js → positions/positions.mjs} +2 -2
- package/propsToClassKey/index.d.mts +1 -0
- package/propsToClassKey/index.mjs +1 -0
- package/responsivePropType/index.d.mts +1 -0
- package/responsivePropType/index.mjs +1 -0
- package/shadows/index.d.mts +1 -0
- package/shadows/index.mjs +1 -0
- package/{esm/shadows/shadows.d.ts → shadows/shadows.d.mts} +1 -1
- package/{esm/shadows/shadows.js → shadows/shadows.mjs} +1 -1
- package/sizing/index.d.mts +2 -0
- package/sizing/index.mjs +2 -0
- package/{esm/sizing/sizing.d.ts → sizing/sizing.d.mts} +1 -1
- package/{esm/sizing/sizing.js → sizing/sizing.mjs} +3 -3
- package/spacing/index.d.mts +2 -0
- package/spacing/index.mjs +2 -0
- package/{esm/spacing/spacing.d.ts → spacing/spacing.d.mts} +1 -1
- package/{esm/spacing/spacing.js → spacing/spacing.mjs} +5 -5
- package/style/index.d.mts +2 -0
- package/style/index.mjs +2 -0
- package/{esm/style/style.d.ts → style/style.d.mts} +4 -4
- package/style/style.d.ts +4 -4
- package/{esm/style/style.js → style/style.mjs} +2 -2
- package/{esm/styleFunctionSx/AliasesCSSProperties.d.ts → styleFunctionSx/AliasesCSSProperties.d.mts} +22 -22
- package/styleFunctionSx/AliasesCSSProperties.d.ts +21 -21
- package/{esm/styleFunctionSx/OverwriteCSSProperties.d.ts → styleFunctionSx/OverwriteCSSProperties.d.mts} +4 -4
- package/styleFunctionSx/OverwriteCSSProperties.d.ts +4 -4
- package/{esm/styleFunctionSx/defaultSxConfig.d.ts → styleFunctionSx/defaultSxConfig.d.mts} +5 -5
- package/styleFunctionSx/defaultSxConfig.d.ts +4 -4
- package/{esm/styleFunctionSx/defaultSxConfig.js → styleFunctionSx/defaultSxConfig.mjs} +5 -5
- package/styleFunctionSx/extendSxProp.d.mts +4 -0
- package/styleFunctionSx/extendSxProp.d.ts +1 -1
- package/{esm/styleFunctionSx/extendSxProp.js → styleFunctionSx/extendSxProp.mjs} +1 -1
- package/styleFunctionSx/index.d.mts +9 -0
- package/styleFunctionSx/index.mjs +4 -0
- package/{esm/styleFunctionSx/styleFunctionSx.d.ts → styleFunctionSx/styleFunctionSx.d.mts} +4 -4
- package/styleFunctionSx/styleFunctionSx.d.ts +1 -1
- package/{esm/styleFunctionSx/styleFunctionSx.js → styleFunctionSx/styleFunctionSx.mjs} +5 -5
- package/styled/index.d.mts +1 -0
- package/styled/index.mjs +1 -0
- package/styled/styled.d.mts +3 -0
- package/styled/styled.mjs +3 -0
- package/typography/index.d.mts +2 -0
- package/typography/index.mjs +2 -0
- package/{esm/typography/typography.d.ts → typography/typography.d.mts} +1 -1
- package/{esm/typography/typography.js → typography/typography.mjs} +2 -2
- package/useMediaQuery/index.d.mts +2 -0
- package/useMediaQuery/index.mjs +2 -0
- package/{esm/useMediaQuery/useMediaQuery.d.ts → useMediaQuery/useMediaQuery.d.mts} +6 -6
- package/useMediaQuery/useMediaQuery.d.ts +6 -6
- package/{esm/useMediaQuery/useMediaQuery.js → useMediaQuery/useMediaQuery.mjs} +2 -2
- package/useTheme/index.d.mts +2 -0
- package/useTheme/index.mjs +2 -0
- package/{esm/useTheme/useTheme.d.ts → useTheme/useTheme.d.mts} +1 -1
- package/{esm/useTheme/useTheme.js → useTheme/useTheme.mjs} +2 -2
- package/{esm/useThemeProps/getThemeProps.d.ts → useThemeProps/getThemeProps.d.mts} +1 -1
- package/useThemeProps/getThemeProps.d.ts +1 -1
- package/useThemeProps/index.d.mts +3 -0
- package/useThemeProps/index.mjs +2 -0
- package/{esm/useThemeProps/useThemeProps.d.ts → useThemeProps/useThemeProps.d.mts} +2 -2
- package/useThemeProps/useThemeProps.d.ts +2 -2
- package/{esm/useThemeProps/useThemeProps.js → useThemeProps/useThemeProps.mjs} +2 -2
- package/useThemeWithoutDefault/index.d.mts +1 -0
- package/useThemeWithoutDefault/index.mjs +1 -0
- package/version/index.js +2 -2
- package/{esm/version/index.js → version/index.mjs} +2 -2
- package/Grid/deleteLegacyGridProps.d.ts +0 -11
- package/Grid/deleteLegacyGridProps.js +0 -47
- package/esm/Box/index.d.ts +0 -4
- package/esm/Box/index.js +0 -3
- package/esm/Container/index.d.ts +0 -4
- package/esm/Container/index.js +0 -3
- package/esm/GlobalStyles/index.d.ts +0 -2
- package/esm/GlobalStyles/index.js +0 -2
- package/esm/Grid/createGrid.d.ts +0 -13
- package/esm/Grid/deleteLegacyGridProps.d.ts +0 -11
- package/esm/Grid/deleteLegacyGridProps.js +0 -41
- package/esm/Grid/index.d.ts +0 -7
- package/esm/Grid/index.js +0 -7
- package/esm/InitColorSchemeScript/index.d.ts +0 -2
- package/esm/InitColorSchemeScript/index.js +0 -1
- package/esm/Stack/index.d.ts +0 -5
- package/esm/Stack/index.js +0 -5
- package/esm/ThemeProvider/index.d.ts +0 -2
- package/esm/ThemeProvider/index.js +0 -1
- package/esm/borders/index.d.ts +0 -2
- package/esm/borders/index.js +0 -2
- package/esm/breakpoints/index.d.ts +0 -2
- package/esm/breakpoints/index.js +0 -2
- package/esm/colorManipulator/index.d.ts +0 -1
- package/esm/colorManipulator/index.js +0 -1
- package/esm/compose/index.d.ts +0 -1
- package/esm/compose/index.js +0 -1
- package/esm/createBox/index.d.ts +0 -1
- package/esm/createBox/index.js +0 -1
- package/esm/createStyled/index.d.ts +0 -2
- package/esm/createStyled/index.js +0 -2
- package/esm/createTheme/index.d.ts +0 -4
- package/esm/createTheme/index.js +0 -3
- package/esm/cssContainerQueries/index.js +0 -2
- package/esm/cssGrid/index.d.ts +0 -2
- package/esm/cssGrid/index.js +0 -2
- package/esm/cssVars/prepareCssVars.d.ts +0 -17
- package/esm/display/index.d.ts +0 -2
- package/esm/display/index.js +0 -2
- package/esm/flexbox/index.d.ts +0 -2
- package/esm/flexbox/index.js +0 -2
- package/esm/getThemeValue/index.d.ts +0 -2
- package/esm/getThemeValue/index.js +0 -2
- package/esm/index.d.ts +0 -90
- package/esm/index.js +0 -76
- package/esm/memoize/index.d.ts +0 -1
- package/esm/memoize/index.js +0 -1
- package/esm/merge/index.d.ts +0 -1
- package/esm/merge/index.js +0 -1
- package/esm/package.json +0 -1
- package/esm/palette/index.d.ts +0 -2
- package/esm/palette/index.js +0 -2
- package/esm/positions/index.d.ts +0 -2
- package/esm/positions/index.js +0 -2
- package/esm/propsToClassKey/index.d.ts +0 -1
- package/esm/propsToClassKey/index.js +0 -1
- package/esm/responsivePropType/index.d.ts +0 -1
- package/esm/responsivePropType/index.js +0 -1
- package/esm/shadows/index.d.ts +0 -1
- package/esm/shadows/index.js +0 -1
- package/esm/sizing/index.d.ts +0 -2
- package/esm/sizing/index.js +0 -2
- package/esm/spacing/index.d.ts +0 -2
- package/esm/spacing/index.js +0 -2
- package/esm/style/index.d.ts +0 -2
- package/esm/style/index.js +0 -2
- package/esm/styleFunctionSx/extendSxProp.d.ts +0 -4
- package/esm/styleFunctionSx/index.d.ts +0 -9
- package/esm/styleFunctionSx/index.js +0 -4
- package/esm/styled/index.d.ts +0 -1
- package/esm/styled/index.js +0 -1
- package/esm/styled/styled.d.ts +0 -3
- package/esm/styled/styled.js +0 -3
- package/esm/typography/index.d.ts +0 -2
- package/esm/typography/index.js +0 -2
- package/esm/useMediaQuery/index.d.ts +0 -2
- package/esm/useMediaQuery/index.js +0 -2
- package/esm/useTheme/index.d.ts +0 -2
- package/esm/useTheme/index.js +0 -2
- package/esm/useThemeProps/index.d.ts +0 -3
- package/esm/useThemeProps/index.js +0 -2
- package/esm/useThemeWithoutDefault/index.d.ts +0 -1
- package/esm/useThemeWithoutDefault/index.js +0 -1
- /package/{esm/Box/boxClasses.d.ts → Box/boxClasses.d.mts} +0 -0
- /package/{esm/Box/boxClasses.js → Box/boxClasses.mjs} +0 -0
- /package/{esm/CSSProperties.d.ts → CSSProperties.d.mts} +0 -0
- /package/{esm/Container/ContainerProps.js → Container/ContainerProps.mjs} +0 -0
- /package/{esm/Container/containerClasses.d.ts → Container/containerClasses.d.mts} +0 -0
- /package/{esm/Container/containerClasses.js → Container/containerClasses.mjs} +0 -0
- /package/{esm/DefaultPropsProvider/DefaultPropsProvider.d.ts → DefaultPropsProvider/DefaultPropsProvider.d.mts} +0 -0
- /package/{esm/DefaultPropsProvider/DefaultPropsProvider.js → DefaultPropsProvider/DefaultPropsProvider.mjs} +0 -0
- /package/{esm/Grid/GridProps.js → Grid/GridProps.mjs} +0 -0
- /package/{esm/Grid/gridClasses.d.ts → Grid/gridClasses.d.mts} +0 -0
- /package/{esm/Grid/gridClasses.js → Grid/gridClasses.mjs} +0 -0
- /package/{esm/Grid/traverseBreakpoints.js → Grid/traverseBreakpoints.mjs} +0 -0
- /package/{esm/InitColorSchemeScript/InitColorSchemeScript.js → InitColorSchemeScript/InitColorSchemeScript.mjs} +0 -0
- /package/{esm/RtlProvider/index.js → RtlProvider/index.mjs} +0 -0
- /package/{esm/Stack/StackProps.js → Stack/StackProps.mjs} +0 -0
- /package/{esm/Stack/stackClasses.d.ts → Stack/stackClasses.d.mts} +0 -0
- /package/{esm/Stack/stackClasses.js → Stack/stackClasses.mjs} +0 -0
- /package/{esm/colorManipulator/colorManipulator.js → colorManipulator/colorManipulator.mjs} +0 -0
- /package/{esm/createBreakpoints/createBreakpoints.d.ts → createBreakpoints/createBreakpoints.d.mts} +0 -0
- /package/{esm/createBreakpoints/createBreakpoints.js → createBreakpoints/createBreakpoints.mjs} +0 -0
- /package/{esm/createTheme/applyStyles.d.ts → createTheme/applyStyles.d.mts} +0 -0
- /package/{esm/createTheme/applyStyles.js → createTheme/applyStyles.mjs} +0 -0
- /package/{esm/createTheme/createSpacing.d.ts → createTheme/createSpacing.d.mts} +0 -0
- /package/{esm/createTheme/shape.d.ts → createTheme/shape.d.mts} +0 -0
- /package/{esm/createTheme/shape.js → createTheme/shape.mjs} +0 -0
- /package/{esm/cssVars/createGetCssVar.d.ts → cssVars/createGetCssVar.d.mts} +0 -0
- /package/{esm/cssVars/createGetCssVar.js → cssVars/createGetCssVar.mjs} +0 -0
- /package/{esm/cssVars/cssVarsParser.js → cssVars/cssVarsParser.mjs} +0 -0
- /package/{esm/cssVars/getColorSchemeSelector.d.ts → cssVars/getColorSchemeSelector.d.mts} +0 -0
- /package/{esm/cssVars/getColorSchemeSelector.js → cssVars/getColorSchemeSelector.mjs} +0 -0
- /package/{esm/cssVars/localStorageManager.js → cssVars/localStorageManager.mjs} +0 -0
- /package/{esm/cssVars/prepareTypographyVars.d.ts → cssVars/prepareTypographyVars.d.mts} +0 -0
- /package/{esm/cssVars/prepareTypographyVars.js → cssVars/prepareTypographyVars.mjs} +0 -0
- /package/{esm/getThemeValue/getThemeValue.d.ts → getThemeValue/getThemeValue.d.mts} +0 -0
- /package/{esm/memoTheme.d.ts → memoTheme.d.mts} +0 -0
- /package/{esm/memoize/memoize.d.ts → memoize/memoize.d.mts} +0 -0
- /package/{esm/memoize/memoize.js → memoize/memoize.mjs} +0 -0
- /package/{esm/merge/merge.d.ts → merge/merge.d.mts} +0 -0
- /package/{esm/merge/merge.js → merge/merge.mjs} +0 -0
- /package/{esm/preprocessStyles.d.ts → preprocessStyles.d.mts} +0 -0
- /package/{esm/preprocessStyles.js → preprocessStyles.mjs} +0 -0
- /package/{esm/propsToClassKey/propsToClassKey.d.ts → propsToClassKey/propsToClassKey.d.mts} +0 -0
- /package/{esm/propsToClassKey/propsToClassKey.js → propsToClassKey/propsToClassKey.mjs} +0 -0
- /package/{esm/responsivePropType/responsivePropType.d.ts → responsivePropType/responsivePropType.d.mts} +0 -0
- /package/{esm/responsivePropType/responsivePropType.js → responsivePropType/responsivePropType.mjs} +0 -0
- /package/{esm/styleFunctionSx/AliasesCSSProperties.js → styleFunctionSx/AliasesCSSProperties.mjs} +0 -0
- /package/{esm/styleFunctionSx/OverwriteCSSProperties.js → styleFunctionSx/OverwriteCSSProperties.mjs} +0 -0
- /package/{esm/styleFunctionSx/StandardCssProperties.d.ts → styleFunctionSx/StandardCssProperties.d.mts} +0 -0
- /package/{esm/styleFunctionSx/StandardCssProperties.js → styleFunctionSx/StandardCssProperties.mjs} +0 -0
- /package/{esm/useThemeProps/getThemeProps.js → useThemeProps/getThemeProps.mjs} +0 -0
- /package/{esm/useThemeWithoutDefault/useThemeWithoutDefault.d.ts → useThemeWithoutDefault/useThemeWithoutDefault.d.mts} +0 -0
- /package/{esm/useThemeWithoutDefault/useThemeWithoutDefault.js → useThemeWithoutDefault/useThemeWithoutDefault.mjs} +0 -0
- /package/{esm/version/index.d.ts → version/index.d.mts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./propsToClassKey.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./responsivePropType.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./responsivePropType.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./shadows.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./shadows.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
2
|
declare const shadows: SimpleStyleFunction<'boxShadow'>;
|
|
3
3
|
export type ShadowsProps = PropsFor<typeof shadows>;
|
|
4
4
|
export default shadows;
|
package/sizing/index.mjs
ADDED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.
|
|
1
|
+
import { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
2
|
export const width: SimpleStyleFunction<'width'>;
|
|
3
3
|
export const maxWidth: SimpleStyleFunction<'maxWidth'>;
|
|
4
4
|
export const minWidth: SimpleStyleFunction<'minWidth'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import style from "../style/index.
|
|
2
|
-
import compose from "../compose/index.
|
|
3
|
-
import { handleBreakpoints, values as breakpointsValues } from "../breakpoints/index.
|
|
1
|
+
import style from "../style/index.mjs";
|
|
2
|
+
import compose from "../compose/index.mjs";
|
|
3
|
+
import { handleBreakpoints, values as breakpointsValues } from "../breakpoints/index.mjs";
|
|
4
4
|
export function sizingTransform(value) {
|
|
5
5
|
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleStyleFunction, PropsFor } from "../style/index.
|
|
1
|
+
import { SimpleStyleFunction, PropsFor } from "../style/index.mjs";
|
|
2
2
|
export type SpacingValueType = string | number | null | undefined;
|
|
3
3
|
export type SpacingProps = PropsFor<typeof spacing>;
|
|
4
4
|
export function createUnarySpacing<Spacing>(theme: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import responsivePropType from "../responsivePropType/index.
|
|
2
|
-
import { handleBreakpoints } from "../breakpoints/index.
|
|
3
|
-
import { getPath } from "../style/index.
|
|
4
|
-
import merge from "../merge/index.
|
|
5
|
-
import memoize from "../memoize/index.
|
|
1
|
+
import responsivePropType from "../responsivePropType/index.mjs";
|
|
2
|
+
import { handleBreakpoints } from "../breakpoints/index.mjs";
|
|
3
|
+
import { getPath } from "../style/index.mjs";
|
|
4
|
+
import merge from "../merge/index.mjs";
|
|
5
|
+
import memoize from "../memoize/index.mjs";
|
|
6
6
|
const properties = {
|
|
7
7
|
m: 'margin',
|
|
8
8
|
p: 'padding'
|
package/style/index.mjs
ADDED
|
@@ -6,18 +6,18 @@ export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Parti
|
|
|
6
6
|
};
|
|
7
7
|
export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
|
|
8
8
|
export interface StyleOptions<PropKey> {
|
|
9
|
-
cssProperty?: PropKey | keyof React.CSSProperties | false;
|
|
9
|
+
cssProperty?: PropKey | keyof React.CSSProperties | false | undefined;
|
|
10
10
|
prop: PropKey;
|
|
11
11
|
/**
|
|
12
12
|
* dot access in `Theme`
|
|
13
13
|
*/
|
|
14
|
-
themeKey?: string;
|
|
15
|
-
transform?: TransformFunction;
|
|
14
|
+
themeKey?: string | undefined;
|
|
15
|
+
transform?: TransformFunction | undefined;
|
|
16
16
|
}
|
|
17
17
|
export function getPath<T>(obj: T, path: string | undefined, checkVars?: boolean): null | unknown;
|
|
18
18
|
export function getStyleValue(themeMapping: object | ((arg: any) => any), transform: TransformFunction | null, propValueFinal: unknown, userValue?: unknown): any;
|
|
19
19
|
export default function style<PropKey extends string, Theme extends object>(options: StyleOptions<PropKey>): StyleFunction<{ [K in PropKey]?: unknown } & {
|
|
20
|
-
theme?: Theme;
|
|
20
|
+
theme?: Theme | undefined;
|
|
21
21
|
}> & {
|
|
22
22
|
filterProps: string[];
|
|
23
23
|
};
|
package/style/style.d.ts
CHANGED
|
@@ -6,18 +6,18 @@ export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Parti
|
|
|
6
6
|
};
|
|
7
7
|
export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
|
|
8
8
|
export interface StyleOptions<PropKey> {
|
|
9
|
-
cssProperty?: PropKey | keyof React.CSSProperties | false;
|
|
9
|
+
cssProperty?: PropKey | keyof React.CSSProperties | false | undefined;
|
|
10
10
|
prop: PropKey;
|
|
11
11
|
/**
|
|
12
12
|
* dot access in `Theme`
|
|
13
13
|
*/
|
|
14
|
-
themeKey?: string;
|
|
15
|
-
transform?: TransformFunction;
|
|
14
|
+
themeKey?: string | undefined;
|
|
15
|
+
transform?: TransformFunction | undefined;
|
|
16
16
|
}
|
|
17
17
|
export function getPath<T>(obj: T, path: string | undefined, checkVars?: boolean): null | unknown;
|
|
18
18
|
export function getStyleValue(themeMapping: object | ((arg: any) => any), transform: TransformFunction | null, propValueFinal: unknown, userValue?: unknown): any;
|
|
19
19
|
export default function style<PropKey extends string, Theme extends object>(options: StyleOptions<PropKey>): StyleFunction<{ [K in PropKey]?: unknown } & {
|
|
20
|
-
theme?: Theme;
|
|
20
|
+
theme?: Theme | undefined;
|
|
21
21
|
}> & {
|
|
22
22
|
filterProps: string[];
|
|
23
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import capitalize from '@mui/utils/capitalize';
|
|
2
|
-
import responsivePropType from "../responsivePropType/index.
|
|
3
|
-
import { handleBreakpoints } from "../breakpoints/index.
|
|
2
|
+
import responsivePropType from "../responsivePropType/index.mjs";
|
|
3
|
+
import { handleBreakpoints } from "../breakpoints/index.mjs";
|
|
4
4
|
export function getPath(obj, path, checkVars = true) {
|
|
5
5
|
if (!path || typeof path !== 'string') {
|
|
6
6
|
return null;
|
package/{esm/styleFunctionSx/AliasesCSSProperties.d.ts → styleFunctionSx/AliasesCSSProperties.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StandardCSSProperties } from "./StandardCssProperties.
|
|
1
|
+
import { StandardCSSProperties } from "./StandardCssProperties.mjs";
|
|
2
2
|
export interface AliasesCSSProperties {
|
|
3
3
|
/**
|
|
4
4
|
* The **`background-color`** CSS property sets the background color of an element.
|
|
@@ -11,7 +11,7 @@ export interface AliasesCSSProperties {
|
|
|
11
11
|
*
|
|
12
12
|
* @see https://developer.mozilla.org/docs/Web/CSS/background-color
|
|
13
13
|
*/
|
|
14
|
-
bgcolor?: StandardCSSProperties['backgroundColor'];
|
|
14
|
+
bgcolor?: StandardCSSProperties['backgroundColor'] | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The **`margin`** CSS property sets the margin on all four sides of an element. It is a shorthand for `margin-top`, `margin-right`, `margin-bottom`, and `margin-left`.
|
|
17
17
|
*
|
|
@@ -21,7 +21,7 @@ export interface AliasesCSSProperties {
|
|
|
21
21
|
*
|
|
22
22
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin
|
|
23
23
|
*/
|
|
24
|
-
m?: StandardCSSProperties['margin'];
|
|
24
|
+
m?: StandardCSSProperties['margin'] | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* The **`margin-top`** CSS property sets the margin on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
27
27
|
*
|
|
@@ -33,7 +33,7 @@ export interface AliasesCSSProperties {
|
|
|
33
33
|
*
|
|
34
34
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
35
35
|
*/
|
|
36
|
-
mt?: StandardCSSProperties['marginTop'];
|
|
36
|
+
mt?: StandardCSSProperties['marginTop'] | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* The **`margin-right`** CSS property sets the margin on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
39
39
|
*
|
|
@@ -45,7 +45,7 @@ export interface AliasesCSSProperties {
|
|
|
45
45
|
*
|
|
46
46
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
47
47
|
*/
|
|
48
|
-
mr?: StandardCSSProperties['marginRight'];
|
|
48
|
+
mr?: StandardCSSProperties['marginRight'] | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* The **`margin-bottom`** CSS property sets the margin on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
51
51
|
*
|
|
@@ -57,7 +57,7 @@ export interface AliasesCSSProperties {
|
|
|
57
57
|
*
|
|
58
58
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
59
59
|
*/
|
|
60
|
-
mb?: StandardCSSProperties['marginBottom'];
|
|
60
|
+
mb?: StandardCSSProperties['marginBottom'] | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* The **`margin-left`** CSS property sets the margin on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
63
63
|
*
|
|
@@ -69,7 +69,7 @@ export interface AliasesCSSProperties {
|
|
|
69
69
|
*
|
|
70
70
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
71
71
|
*/
|
|
72
|
-
ml?: StandardCSSProperties['marginLeft'];
|
|
72
|
+
ml?: StandardCSSProperties['marginLeft'] | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* The **`mx`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value places it
|
|
75
75
|
* farther from its neighbors, while a negative value places it closer.
|
|
@@ -83,7 +83,7 @@ export interface AliasesCSSProperties {
|
|
|
83
83
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
84
84
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
85
85
|
*/
|
|
86
|
-
mx?: StandardCSSProperties['marginLeft'];
|
|
86
|
+
mx?: StandardCSSProperties['marginLeft'] | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* The **`marginX`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value
|
|
89
89
|
* places it farther from its neighbors, while a negative value places it closer.
|
|
@@ -97,7 +97,7 @@ export interface AliasesCSSProperties {
|
|
|
97
97
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
98
98
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
99
99
|
*/
|
|
100
|
-
marginX?: StandardCSSProperties['marginLeft'];
|
|
100
|
+
marginX?: StandardCSSProperties['marginLeft'] | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* The **`my`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places it
|
|
103
103
|
* farther from its neighbors, while a negative value places it closer.
|
|
@@ -111,7 +111,7 @@ export interface AliasesCSSProperties {
|
|
|
111
111
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
112
112
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
113
113
|
*/
|
|
114
|
-
my?: StandardCSSProperties['marginTop'];
|
|
114
|
+
my?: StandardCSSProperties['marginTop'] | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* The **`marginY`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places
|
|
117
117
|
* it farther from its neighbors, while a negative value places it closer.
|
|
@@ -125,7 +125,7 @@ export interface AliasesCSSProperties {
|
|
|
125
125
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
126
126
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
127
127
|
*/
|
|
128
|
-
marginY?: StandardCSSProperties['marginTop'];
|
|
128
|
+
marginY?: StandardCSSProperties['marginTop'] | undefined;
|
|
129
129
|
/**
|
|
130
130
|
* The **`padding`** CSS property sets the padding on all four sides of an element. It is a shorthand for `padding-top`, `padding-right`, `padding-bottom`, and `padding-left`.
|
|
131
131
|
*
|
|
@@ -135,7 +135,7 @@ export interface AliasesCSSProperties {
|
|
|
135
135
|
*
|
|
136
136
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding
|
|
137
137
|
*/
|
|
138
|
-
p?: StandardCSSProperties['padding'];
|
|
138
|
+
p?: StandardCSSProperties['padding'] | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* The **`padding-top`** CSS property sets the height of the padding at the top of an element.
|
|
141
141
|
*
|
|
@@ -147,7 +147,7 @@ export interface AliasesCSSProperties {
|
|
|
147
147
|
*
|
|
148
148
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
149
149
|
*/
|
|
150
|
-
pt?: StandardCSSProperties['paddingTop'];
|
|
150
|
+
pt?: StandardCSSProperties['paddingTop'] | undefined;
|
|
151
151
|
/**
|
|
152
152
|
* The **`padding-right`** CSS property sets the width of the padding at the right side of an element.
|
|
153
153
|
*
|
|
@@ -159,7 +159,7 @@ export interface AliasesCSSProperties {
|
|
|
159
159
|
*
|
|
160
160
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
161
161
|
*/
|
|
162
|
-
pr?: StandardCSSProperties['paddingRight'];
|
|
162
|
+
pr?: StandardCSSProperties['paddingRight'] | undefined;
|
|
163
163
|
/**
|
|
164
164
|
* The **`padding-bottom`** CSS property sets the height of the padding on the bottom of an element.
|
|
165
165
|
*
|
|
@@ -171,7 +171,7 @@ export interface AliasesCSSProperties {
|
|
|
171
171
|
*
|
|
172
172
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
173
173
|
*/
|
|
174
|
-
pb?: StandardCSSProperties['paddingBottom'];
|
|
174
|
+
pb?: StandardCSSProperties['paddingBottom'] | undefined;
|
|
175
175
|
/**
|
|
176
176
|
* The **`padding-left`** CSS property sets the width of the padding at the left side of an element.
|
|
177
177
|
*
|
|
@@ -183,7 +183,7 @@ export interface AliasesCSSProperties {
|
|
|
183
183
|
*
|
|
184
184
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
185
185
|
*/
|
|
186
|
-
pl?: StandardCSSProperties['paddingLeft'];
|
|
186
|
+
pl?: StandardCSSProperties['paddingLeft'] | undefined;
|
|
187
187
|
/**
|
|
188
188
|
* The **`px`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right side of an element.
|
|
189
189
|
*
|
|
@@ -196,7 +196,7 @@ export interface AliasesCSSProperties {
|
|
|
196
196
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
197
197
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
198
198
|
*/
|
|
199
|
-
px?: StandardCSSProperties['paddingLeft'];
|
|
199
|
+
px?: StandardCSSProperties['paddingLeft'] | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* The **`paddingX`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right sides of an element.
|
|
202
202
|
*
|
|
@@ -209,7 +209,7 @@ export interface AliasesCSSProperties {
|
|
|
209
209
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
210
210
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
211
211
|
*/
|
|
212
|
-
paddingX?: StandardCSSProperties['paddingLeft'];
|
|
212
|
+
paddingX?: StandardCSSProperties['paddingLeft'] | undefined;
|
|
213
213
|
/**
|
|
214
214
|
* The **`py`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
215
215
|
*
|
|
@@ -222,7 +222,7 @@ export interface AliasesCSSProperties {
|
|
|
222
222
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
223
223
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
224
224
|
*/
|
|
225
|
-
py?: StandardCSSProperties['paddingTop'];
|
|
225
|
+
py?: StandardCSSProperties['paddingTop'] | undefined;
|
|
226
226
|
/**
|
|
227
227
|
* The **`paddingY`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
228
228
|
*
|
|
@@ -235,7 +235,7 @@ export interface AliasesCSSProperties {
|
|
|
235
235
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
236
236
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
237
237
|
*/
|
|
238
|
-
paddingY?: StandardCSSProperties['paddingTop'];
|
|
238
|
+
paddingY?: StandardCSSProperties['paddingTop'] | undefined;
|
|
239
239
|
/**
|
|
240
240
|
* The **`typography`** property is shorthand for the CSS properties **`font-family`**, **`font-weight`**, **`font-size`**, **`line-height`**, **`letter-spacing`** and **`text-transform``**.
|
|
241
241
|
* It takes the values defined under `theme.typography` and spreads them on the element.
|
|
@@ -253,7 +253,7 @@ export interface AliasesCSSProperties {
|
|
|
253
253
|
* @see https://developer.mozilla.org/docs/Web/CSS/letter-spacing
|
|
254
254
|
* @see https://developer.mozilla.org/docs/Web/CSS/text-transform
|
|
255
255
|
*/
|
|
256
|
-
typography?: string;
|
|
256
|
+
typography?: string | undefined;
|
|
257
257
|
/**
|
|
258
258
|
* The **`displayPrint`** property sets the display value for the element when the page is printed.
|
|
259
259
|
*
|
|
@@ -265,5 +265,5 @@ export interface AliasesCSSProperties {
|
|
|
265
265
|
*
|
|
266
266
|
* @see https://developer.mozilla.org/docs/Web/CSS/display
|
|
267
267
|
*/
|
|
268
|
-
displayPrint?: StandardCSSProperties['display'];
|
|
268
|
+
displayPrint?: StandardCSSProperties['display'] | undefined;
|
|
269
269
|
}
|
|
@@ -11,7 +11,7 @@ export interface AliasesCSSProperties {
|
|
|
11
11
|
*
|
|
12
12
|
* @see https://developer.mozilla.org/docs/Web/CSS/background-color
|
|
13
13
|
*/
|
|
14
|
-
bgcolor?: StandardCSSProperties['backgroundColor'];
|
|
14
|
+
bgcolor?: StandardCSSProperties['backgroundColor'] | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The **`margin`** CSS property sets the margin on all four sides of an element. It is a shorthand for `margin-top`, `margin-right`, `margin-bottom`, and `margin-left`.
|
|
17
17
|
*
|
|
@@ -21,7 +21,7 @@ export interface AliasesCSSProperties {
|
|
|
21
21
|
*
|
|
22
22
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin
|
|
23
23
|
*/
|
|
24
|
-
m?: StandardCSSProperties['margin'];
|
|
24
|
+
m?: StandardCSSProperties['margin'] | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* The **`margin-top`** CSS property sets the margin on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
27
27
|
*
|
|
@@ -33,7 +33,7 @@ export interface AliasesCSSProperties {
|
|
|
33
33
|
*
|
|
34
34
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
35
35
|
*/
|
|
36
|
-
mt?: StandardCSSProperties['marginTop'];
|
|
36
|
+
mt?: StandardCSSProperties['marginTop'] | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* The **`margin-right`** CSS property sets the margin on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
39
39
|
*
|
|
@@ -45,7 +45,7 @@ export interface AliasesCSSProperties {
|
|
|
45
45
|
*
|
|
46
46
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
47
47
|
*/
|
|
48
|
-
mr?: StandardCSSProperties['marginRight'];
|
|
48
|
+
mr?: StandardCSSProperties['marginRight'] | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* The **`margin-bottom`** CSS property sets the margin on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
51
51
|
*
|
|
@@ -57,7 +57,7 @@ export interface AliasesCSSProperties {
|
|
|
57
57
|
*
|
|
58
58
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
59
59
|
*/
|
|
60
|
-
mb?: StandardCSSProperties['marginBottom'];
|
|
60
|
+
mb?: StandardCSSProperties['marginBottom'] | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* The **`margin-left`** CSS property sets the margin on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
63
63
|
*
|
|
@@ -69,7 +69,7 @@ export interface AliasesCSSProperties {
|
|
|
69
69
|
*
|
|
70
70
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
71
71
|
*/
|
|
72
|
-
ml?: StandardCSSProperties['marginLeft'];
|
|
72
|
+
ml?: StandardCSSProperties['marginLeft'] | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* The **`mx`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value places it
|
|
75
75
|
* farther from its neighbors, while a negative value places it closer.
|
|
@@ -83,7 +83,7 @@ export interface AliasesCSSProperties {
|
|
|
83
83
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
84
84
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
85
85
|
*/
|
|
86
|
-
mx?: StandardCSSProperties['marginLeft'];
|
|
86
|
+
mx?: StandardCSSProperties['marginLeft'] | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* The **`marginX`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value
|
|
89
89
|
* places it farther from its neighbors, while a negative value places it closer.
|
|
@@ -97,7 +97,7 @@ export interface AliasesCSSProperties {
|
|
|
97
97
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
98
98
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
99
99
|
*/
|
|
100
|
-
marginX?: StandardCSSProperties['marginLeft'];
|
|
100
|
+
marginX?: StandardCSSProperties['marginLeft'] | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* The **`my`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places it
|
|
103
103
|
* farther from its neighbors, while a negative value places it closer.
|
|
@@ -111,7 +111,7 @@ export interface AliasesCSSProperties {
|
|
|
111
111
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
112
112
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
113
113
|
*/
|
|
114
|
-
my?: StandardCSSProperties['marginTop'];
|
|
114
|
+
my?: StandardCSSProperties['marginTop'] | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* The **`marginY`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places
|
|
117
117
|
* it farther from its neighbors, while a negative value places it closer.
|
|
@@ -125,7 +125,7 @@ export interface AliasesCSSProperties {
|
|
|
125
125
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
126
126
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
127
127
|
*/
|
|
128
|
-
marginY?: StandardCSSProperties['marginTop'];
|
|
128
|
+
marginY?: StandardCSSProperties['marginTop'] | undefined;
|
|
129
129
|
/**
|
|
130
130
|
* The **`padding`** CSS property sets the padding on all four sides of an element. It is a shorthand for `padding-top`, `padding-right`, `padding-bottom`, and `padding-left`.
|
|
131
131
|
*
|
|
@@ -135,7 +135,7 @@ export interface AliasesCSSProperties {
|
|
|
135
135
|
*
|
|
136
136
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding
|
|
137
137
|
*/
|
|
138
|
-
p?: StandardCSSProperties['padding'];
|
|
138
|
+
p?: StandardCSSProperties['padding'] | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* The **`padding-top`** CSS property sets the height of the padding at the top of an element.
|
|
141
141
|
*
|
|
@@ -147,7 +147,7 @@ export interface AliasesCSSProperties {
|
|
|
147
147
|
*
|
|
148
148
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
149
149
|
*/
|
|
150
|
-
pt?: StandardCSSProperties['paddingTop'];
|
|
150
|
+
pt?: StandardCSSProperties['paddingTop'] | undefined;
|
|
151
151
|
/**
|
|
152
152
|
* The **`padding-right`** CSS property sets the width of the padding at the right side of an element.
|
|
153
153
|
*
|
|
@@ -159,7 +159,7 @@ export interface AliasesCSSProperties {
|
|
|
159
159
|
*
|
|
160
160
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
161
161
|
*/
|
|
162
|
-
pr?: StandardCSSProperties['paddingRight'];
|
|
162
|
+
pr?: StandardCSSProperties['paddingRight'] | undefined;
|
|
163
163
|
/**
|
|
164
164
|
* The **`padding-bottom`** CSS property sets the height of the padding on the bottom of an element.
|
|
165
165
|
*
|
|
@@ -171,7 +171,7 @@ export interface AliasesCSSProperties {
|
|
|
171
171
|
*
|
|
172
172
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
173
173
|
*/
|
|
174
|
-
pb?: StandardCSSProperties['paddingBottom'];
|
|
174
|
+
pb?: StandardCSSProperties['paddingBottom'] | undefined;
|
|
175
175
|
/**
|
|
176
176
|
* The **`padding-left`** CSS property sets the width of the padding at the left side of an element.
|
|
177
177
|
*
|
|
@@ -183,7 +183,7 @@ export interface AliasesCSSProperties {
|
|
|
183
183
|
*
|
|
184
184
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
185
185
|
*/
|
|
186
|
-
pl?: StandardCSSProperties['paddingLeft'];
|
|
186
|
+
pl?: StandardCSSProperties['paddingLeft'] | undefined;
|
|
187
187
|
/**
|
|
188
188
|
* The **`px`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right side of an element.
|
|
189
189
|
*
|
|
@@ -196,7 +196,7 @@ export interface AliasesCSSProperties {
|
|
|
196
196
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
197
197
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
198
198
|
*/
|
|
199
|
-
px?: StandardCSSProperties['paddingLeft'];
|
|
199
|
+
px?: StandardCSSProperties['paddingLeft'] | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* The **`paddingX`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right sides of an element.
|
|
202
202
|
*
|
|
@@ -209,7 +209,7 @@ export interface AliasesCSSProperties {
|
|
|
209
209
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
210
210
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
211
211
|
*/
|
|
212
|
-
paddingX?: StandardCSSProperties['paddingLeft'];
|
|
212
|
+
paddingX?: StandardCSSProperties['paddingLeft'] | undefined;
|
|
213
213
|
/**
|
|
214
214
|
* The **`py`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
215
215
|
*
|
|
@@ -222,7 +222,7 @@ export interface AliasesCSSProperties {
|
|
|
222
222
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
223
223
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
224
224
|
*/
|
|
225
|
-
py?: StandardCSSProperties['paddingTop'];
|
|
225
|
+
py?: StandardCSSProperties['paddingTop'] | undefined;
|
|
226
226
|
/**
|
|
227
227
|
* The **`paddingY`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
228
228
|
*
|
|
@@ -235,7 +235,7 @@ export interface AliasesCSSProperties {
|
|
|
235
235
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
236
236
|
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
237
237
|
*/
|
|
238
|
-
paddingY?: StandardCSSProperties['paddingTop'];
|
|
238
|
+
paddingY?: StandardCSSProperties['paddingTop'] | undefined;
|
|
239
239
|
/**
|
|
240
240
|
* The **`typography`** property is shorthand for the CSS properties **`font-family`**, **`font-weight`**, **`font-size`**, **`line-height`**, **`letter-spacing`** and **`text-transform``**.
|
|
241
241
|
* It takes the values defined under `theme.typography` and spreads them on the element.
|
|
@@ -253,7 +253,7 @@ export interface AliasesCSSProperties {
|
|
|
253
253
|
* @see https://developer.mozilla.org/docs/Web/CSS/letter-spacing
|
|
254
254
|
* @see https://developer.mozilla.org/docs/Web/CSS/text-transform
|
|
255
255
|
*/
|
|
256
|
-
typography?: string;
|
|
256
|
+
typography?: string | undefined;
|
|
257
257
|
/**
|
|
258
258
|
* The **`displayPrint`** property sets the display value for the element when the page is printed.
|
|
259
259
|
*
|
|
@@ -265,5 +265,5 @@ export interface AliasesCSSProperties {
|
|
|
265
265
|
*
|
|
266
266
|
* @see https://developer.mozilla.org/docs/Web/CSS/display
|
|
267
267
|
*/
|
|
268
|
-
displayPrint?: StandardCSSProperties['display'];
|
|
268
|
+
displayPrint?: StandardCSSProperties['display'] | undefined;
|
|
269
269
|
}
|
|
@@ -11,7 +11,7 @@ export interface OverwriteCSSProperties {
|
|
|
11
11
|
*
|
|
12
12
|
* @see https://developer.mozilla.org/docs/Web/CSS/border
|
|
13
13
|
*/
|
|
14
|
-
border?: CSS.Property.Border | number;
|
|
14
|
+
border?: CSS.Property.Border | number | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The **`box-shadow`** CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the
|
|
17
17
|
* element for blur and spread radii, and by its color.
|
|
@@ -25,7 +25,7 @@ export interface OverwriteCSSProperties {
|
|
|
25
25
|
*
|
|
26
26
|
* @see https://developer.mozilla.org/docs/Web/CSS/box-shadow
|
|
27
27
|
*/
|
|
28
|
-
boxShadow?: CSS.Property.BoxShadow | number;
|
|
28
|
+
boxShadow?: CSS.Property.BoxShadow | number | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* The **`font-weight`** CSS property specifies the weight (or boldness) of the font. The font weights available to you will depend on the `font-family` you are using. Some fonts are only
|
|
31
31
|
* available in `normal` and `bold`.
|
|
@@ -38,7 +38,7 @@ export interface OverwriteCSSProperties {
|
|
|
38
38
|
*
|
|
39
39
|
* @see https://developer.mozilla.org/docs/Web/CSS/font-weight
|
|
40
40
|
*/
|
|
41
|
-
fontWeight?: CSS.Property.FontWeight | string;
|
|
41
|
+
fontWeight?: CSS.Property.FontWeight | string | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* The **`z-index`** CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a higher z-index cover those with a lower one.
|
|
44
44
|
*
|
|
@@ -50,5 +50,5 @@ export interface OverwriteCSSProperties {
|
|
|
50
50
|
*
|
|
51
51
|
* @see https://developer.mozilla.org/docs/Web/CSS/z-index
|
|
52
52
|
*/
|
|
53
|
-
zIndex?: CSS.Property.ZIndex | string;
|
|
53
|
+
zIndex?: CSS.Property.ZIndex | string | undefined;
|
|
54
54
|
}
|
|
@@ -11,7 +11,7 @@ export interface OverwriteCSSProperties {
|
|
|
11
11
|
*
|
|
12
12
|
* @see https://developer.mozilla.org/docs/Web/CSS/border
|
|
13
13
|
*/
|
|
14
|
-
border?: CSS.Property.Border | number;
|
|
14
|
+
border?: CSS.Property.Border | number | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The **`box-shadow`** CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the
|
|
17
17
|
* element for blur and spread radii, and by its color.
|
|
@@ -25,7 +25,7 @@ export interface OverwriteCSSProperties {
|
|
|
25
25
|
*
|
|
26
26
|
* @see https://developer.mozilla.org/docs/Web/CSS/box-shadow
|
|
27
27
|
*/
|
|
28
|
-
boxShadow?: CSS.Property.BoxShadow | number;
|
|
28
|
+
boxShadow?: CSS.Property.BoxShadow | number | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* The **`font-weight`** CSS property specifies the weight (or boldness) of the font. The font weights available to you will depend on the `font-family` you are using. Some fonts are only
|
|
31
31
|
* available in `normal` and `bold`.
|
|
@@ -38,7 +38,7 @@ export interface OverwriteCSSProperties {
|
|
|
38
38
|
*
|
|
39
39
|
* @see https://developer.mozilla.org/docs/Web/CSS/font-weight
|
|
40
40
|
*/
|
|
41
|
-
fontWeight?: CSS.Property.FontWeight | string;
|
|
41
|
+
fontWeight?: CSS.Property.FontWeight | string | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* The **`z-index`** CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a higher z-index cover those with a lower one.
|
|
44
44
|
*
|
|
@@ -50,5 +50,5 @@ export interface OverwriteCSSProperties {
|
|
|
50
50
|
*
|
|
51
51
|
* @see https://developer.mozilla.org/docs/Web/CSS/z-index
|
|
52
52
|
*/
|
|
53
|
-
zIndex?: CSS.Property.ZIndex | string;
|
|
53
|
+
zIndex?: CSS.Property.ZIndex | string | undefined;
|
|
54
54
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { StyleFunction, TransformFunction } from "../style/index.
|
|
1
|
+
import { StyleFunction, TransformFunction } from "../style/index.mjs";
|
|
2
2
|
type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
|
|
3
3
|
export interface SxConfigRecord {
|
|
4
|
-
cssProperty?: keyof React.CSSProperties | false;
|
|
4
|
+
cssProperty?: keyof React.CSSProperties | false | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* dot access in `Theme`
|
|
7
7
|
*/
|
|
8
|
-
themeKey?: string;
|
|
9
|
-
transform?: TransformFunction;
|
|
10
|
-
style?: SimpleStyleFunction<any
|
|
8
|
+
themeKey?: string | undefined;
|
|
9
|
+
transform?: TransformFunction | undefined;
|
|
10
|
+
style?: SimpleStyleFunction<any> | undefined;
|
|
11
11
|
}
|
|
12
12
|
export type SxConfig = Record<string, SxConfigRecord>;
|
|
13
13
|
declare const defaultSxConfig: SxConfig;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StyleFunction, TransformFunction } from "../style/index.js";
|
|
2
2
|
type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
|
|
3
3
|
export interface SxConfigRecord {
|
|
4
|
-
cssProperty?: keyof React.CSSProperties | false;
|
|
4
|
+
cssProperty?: keyof React.CSSProperties | false | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* dot access in `Theme`
|
|
7
7
|
*/
|
|
8
|
-
themeKey?: string;
|
|
9
|
-
transform?: TransformFunction;
|
|
10
|
-
style?: SimpleStyleFunction<any
|
|
8
|
+
themeKey?: string | undefined;
|
|
9
|
+
transform?: TransformFunction | undefined;
|
|
10
|
+
style?: SimpleStyleFunction<any> | undefined;
|
|
11
11
|
}
|
|
12
12
|
export type SxConfig = Record<string, SxConfigRecord>;
|
|
13
13
|
declare const defaultSxConfig: SxConfig;
|