@mui/system 6.1.1 → 6.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Box/Box.js +17 -11
- package/Box/boxClasses.js +10 -3
- package/Box/index.js +35 -3
- package/Box/package.json +2 -2
- package/CHANGELOG.md +136 -0
- package/Container/Container.js +17 -12
- package/Container/ContainerProps.js +5 -1
- package/Container/containerClasses.js +14 -6
- package/Container/createContainer.js +36 -28
- package/Container/index.js +35 -3
- package/Container/package.json +2 -2
- package/DefaultPropsProvider/DefaultPropsProvider.js +19 -11
- package/DefaultPropsProvider/index.js +19 -1
- package/DefaultPropsProvider/package.json +2 -2
- package/GlobalStyles/GlobalStyles.js +18 -11
- package/GlobalStyles/index.js +25 -2
- package/GlobalStyles/package.json +2 -2
- package/Grid/Grid.js +38 -27
- package/Grid/GridProps.d.ts +16 -11
- package/Grid/GridProps.js +5 -1
- package/Grid/createGrid.js +46 -38
- package/Grid/gridClasses.js +14 -6
- package/Grid/gridGenerator.d.ts +3 -7
- package/Grid/gridGenerator.js +62 -69
- package/Grid/index.js +63 -6
- package/Grid/package.json +2 -2
- package/Grid/traverseBreakpoints.js +11 -3
- package/InitColorSchemeScript/InitColorSchemeScript.js +16 -7
- package/InitColorSchemeScript/index.js +13 -1
- package/InitColorSchemeScript/package.json +2 -2
- package/RtlProvider/index.js +17 -8
- package/RtlProvider/package.json +2 -2
- package/Stack/Stack.js +17 -11
- package/Stack/StackProps.js +5 -1
- package/Stack/createStack.js +46 -36
- package/Stack/index.js +55 -5
- package/Stack/package.json +2 -2
- package/Stack/stackClasses.js +14 -6
- package/ThemeProvider/ThemeProvider.js +27 -20
- package/ThemeProvider/index.js +13 -1
- package/ThemeProvider/package.json +2 -2
- package/borders/borders.js +36 -26
- package/borders/index.js +25 -2
- package/borders/package.json +2 -2
- package/breakpoints/breakpoints.js +34 -21
- package/breakpoints/index.js +25 -2
- package/breakpoints/package.json +2 -2
- package/colorManipulator/colorManipulator.js +50 -25
- package/colorManipulator/index.js +16 -1
- package/colorManipulator/package.json +2 -2
- package/compose/compose.js +10 -3
- package/compose/index.js +13 -1
- package/compose/package.json +2 -2
- package/createBox/createBox.js +20 -13
- package/createBox/index.js +13 -1
- package/createBox/package.json +2 -2
- package/createBreakpoints/createBreakpoints.js +9 -2
- package/createBreakpoints/index.js +13 -3
- package/createBreakpoints/package.json +2 -2
- package/createStyled/createStyled.js +161 -117
- package/createStyled/index.js +25 -2
- package/createStyled/package.json +2 -2
- package/createTheme/applyStyles.js +7 -1
- package/createTheme/createSpacing.js +8 -3
- package/createTheme/createTheme.d.ts +16 -10
- package/createTheme/createTheme.js +25 -18
- package/createTheme/index.js +27 -3
- package/createTheme/package.json +2 -2
- package/createTheme/shape.js +7 -1
- package/cssContainerQueries/cssContainerQueries.js +16 -7
- package/cssContainerQueries/index.js +31 -2
- package/cssContainerQueries/package.json +2 -2
- package/cssGrid/cssGrid.js +40 -31
- package/cssGrid/index.js +25 -2
- package/cssGrid/package.json +2 -2
- package/cssVars/createCssVarsProvider.d.ts +7 -1
- package/cssVars/createCssVarsProvider.js +46 -31
- package/cssVars/createCssVarsTheme.js +14 -7
- package/cssVars/createGetCssVar.js +7 -1
- package/cssVars/cssVarsParser.js +13 -3
- package/cssVars/getColorSchemeSelector.js +7 -1
- package/cssVars/index.js +41 -5
- package/cssVars/package.json +2 -2
- package/cssVars/prepareCssVars.js +16 -9
- package/cssVars/prepareTypographyVars.js +7 -1
- package/cssVars/useCurrentColorScheme.js +19 -11
- package/display/display.js +16 -9
- package/display/index.js +25 -2
- package/display/package.json +2 -2
- package/esm/Box/Box.js +30 -0
- package/esm/Box/boxClasses.js +3 -0
- package/esm/Box/index.js +3 -0
- package/{node → esm}/Container/Container.js +12 -17
- package/esm/Container/ContainerProps.js +1 -0
- package/esm/Container/containerClasses.js +7 -0
- package/{node → esm}/Container/createContainer.js +28 -36
- package/esm/Container/index.js +3 -0
- package/{node → esm}/DefaultPropsProvider/DefaultPropsProvider.js +11 -19
- package/esm/DefaultPropsProvider/index.js +1 -0
- package/esm/GlobalStyles/GlobalStyles.js +37 -0
- package/esm/GlobalStyles/index.js +2 -0
- package/esm/Grid/Grid.js +106 -0
- package/esm/Grid/GridProps.js +1 -0
- package/esm/Grid/createGrid.js +148 -0
- package/{node → esm}/Grid/gridClasses.js +6 -14
- package/esm/Grid/gridGenerator.js +193 -0
- package/esm/Grid/index.js +6 -0
- package/{node → esm}/Grid/traverseBreakpoints.js +3 -11
- package/{node → esm}/InitColorSchemeScript/InitColorSchemeScript.js +7 -16
- package/esm/InitColorSchemeScript/index.js +1 -0
- package/esm/RtlProvider/index.js +22 -0
- package/{node → esm}/Stack/Stack.js +11 -17
- package/esm/Stack/StackProps.js +1 -0
- package/{node → esm}/Stack/createStack.js +36 -46
- package/esm/Stack/index.js +5 -0
- package/esm/Stack/stackClasses.js +7 -0
- package/{node → esm}/ThemeProvider/ThemeProvider.js +20 -27
- package/esm/ThemeProvider/index.js +1 -0
- package/esm/borders/borders.js +49 -0
- package/esm/borders/index.js +2 -0
- package/{node → esm}/breakpoints/breakpoints.js +21 -34
- package/esm/breakpoints/index.js +2 -0
- package/{node → esm}/colorManipulator/colorManipulator.js +23 -51
- package/esm/colorManipulator/index.js +1 -0
- package/{node → esm}/compose/compose.js +3 -10
- package/esm/compose/index.js +1 -0
- package/esm/createBox/createBox.js +35 -0
- package/esm/createBox/index.js +1 -0
- package/{node → esm}/createBreakpoints/createBreakpoints.js +2 -9
- package/esm/createBreakpoints/index.js +3 -0
- package/esm/createStyled/createStyled.js +276 -0
- package/esm/createStyled/index.js +2 -0
- package/{node → esm}/createTheme/applyStyles.js +1 -7
- package/{node → esm}/createTheme/createSpacing.js +3 -8
- package/esm/createTheme/createTheme.js +49 -0
- package/esm/createTheme/index.js +3 -0
- package/esm/createTheme/shape.js +4 -0
- package/{node → esm}/cssContainerQueries/cssContainerQueries.js +6 -17
- package/esm/cssContainerQueries/index.js +2 -0
- package/esm/cssGrid/cssGrid.js +85 -0
- package/esm/cssGrid/index.js +2 -0
- package/{node → esm}/cssVars/createCssVarsProvider.js +37 -40
- package/esm/cssVars/createCssVarsTheme.js +21 -0
- package/{node → esm}/cssVars/createGetCssVar.js +1 -7
- package/{node → esm}/cssVars/cssVarsParser.js +3 -13
- package/{node → esm}/cssVars/getColorSchemeSelector.js +1 -7
- package/esm/cssVars/index.js +5 -0
- package/{node → esm}/cssVars/prepareCssVars.js +9 -16
- package/{node → esm}/cssVars/prepareTypographyVars.js +1 -7
- package/{node → esm}/cssVars/useCurrentColorScheme.js +11 -19
- package/esm/display/display.js +27 -0
- package/esm/display/index.js +2 -0
- package/esm/flexbox/flexbox.js +43 -0
- package/esm/flexbox/index.js +2 -0
- package/esm/getThemeValue/getThemeValue.js +51 -0
- package/esm/getThemeValue/index.js +2 -0
- package/esm/index.js +68 -0
- package/esm/memoTheme.js +28 -0
- package/esm/memoize/index.js +1 -0
- package/{node → esm}/memoize/memoize.js +1 -7
- package/esm/merge/index.js +1 -0
- package/esm/merge/merge.js +10 -0
- package/esm/palette/index.js +2 -0
- package/esm/palette/palette.js +26 -0
- package/esm/positions/index.js +2 -0
- package/esm/positions/positions.js +22 -0
- package/esm/preprocessStyles.js +25 -0
- package/esm/propsToClassKey/index.js +1 -0
- package/esm/propsToClassKey/propsToClassKey.js +25 -0
- package/esm/responsivePropType/index.js +1 -0
- package/esm/responsivePropType/responsivePropType.js +3 -0
- package/esm/shadows/index.js +1 -0
- package/esm/shadows/shadows.js +6 -0
- package/esm/sizing/index.js +2 -0
- package/esm/sizing/sizing.js +64 -0
- package/esm/spacing/index.js +2 -0
- package/{node → esm}/spacing/spacing.js +21 -36
- package/esm/style/index.js +2 -0
- package/{node → esm}/style/style.js +9 -18
- package/{node → esm}/styleFunctionSx/defaultSxConfig.js +65 -71
- package/{node → esm}/styleFunctionSx/extendSxProp.js +5 -12
- package/esm/styleFunctionSx/index.js +4 -0
- package/{node → esm}/styleFunctionSx/styleFunctionSx.js +19 -27
- package/esm/styled/index.js +1 -0
- package/esm/styled/styled.js +3 -0
- package/esm/typography/index.js +2 -0
- package/esm/typography/typography.js +37 -0
- package/esm/useMediaQuery/index.js +2 -0
- package/{node → esm}/useMediaQuery/useMediaQuery.js +8 -15
- package/esm/useTheme/index.js +2 -0
- package/esm/useTheme/useTheme.js +9 -0
- package/esm/useThemeProps/getThemeProps.js +12 -0
- package/esm/useThemeProps/index.js +2 -0
- package/esm/useThemeProps/useThemeProps.js +20 -0
- package/esm/useThemeWithoutDefault/index.js +1 -0
- package/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +12 -0
- package/esm/version/index.js +6 -0
- package/flexbox/flexbox.js +24 -17
- package/flexbox/index.js +25 -2
- package/flexbox/package.json +2 -2
- package/getThemeValue/getThemeValue.js +40 -33
- package/getThemeValue/index.js +25 -2
- package/getThemeValue/package.json +2 -2
- package/index.d.ts +2 -0
- package/index.js +606 -63
- package/memoTheme.d.ts +12 -0
- package/memoTheme.js +34 -0
- package/memoize/index.js +13 -1
- package/memoize/memoize.js +7 -1
- package/memoize/package.json +2 -2
- package/merge/index.js +13 -1
- package/merge/merge.js +10 -3
- package/merge/package.json +2 -2
- package/modern/Grid/Grid.js +16 -11
- package/modern/Grid/createGrid.js +1 -1
- package/modern/Grid/gridGenerator.js +28 -51
- package/modern/colorManipulator/colorManipulator.js +3 -4
- package/modern/createStyled/createStyled.js +144 -109
- package/modern/cssContainerQueries/cssContainerQueries.js +1 -2
- package/modern/cssVars/createCssVarsProvider.js +8 -2
- package/modern/cssVars/useCurrentColorScheme.js +4 -4
- package/modern/index.js +3 -2
- package/modern/memoTheme.js +28 -0
- package/modern/preprocessStyles.js +25 -0
- package/modern/version/index.js +2 -2
- package/package.json +7 -7
- package/palette/index.js +25 -2
- package/palette/package.json +2 -2
- package/palette/palette.js +16 -8
- package/positions/index.js +25 -2
- package/positions/package.json +2 -2
- package/positions/positions.js +16 -9
- package/preprocessStyles.d.ts +5 -0
- package/preprocessStyles.js +31 -0
- package/propsToClassKey/index.js +13 -1
- package/propsToClassKey/package.json +2 -2
- package/propsToClassKey/propsToClassKey.js +11 -4
- package/responsivePropType/index.js +13 -1
- package/responsivePropType/package.json +2 -2
- package/responsivePropType/responsivePropType.js +10 -3
- package/shadows/index.js +13 -1
- package/shadows/package.json +2 -2
- package/shadows/shadows.js +10 -3
- package/sizing/index.js +25 -2
- package/sizing/package.json +2 -2
- package/sizing/sizing.js +27 -17
- package/spacing/index.js +25 -2
- package/spacing/package.json +2 -2
- package/spacing/spacing.js +36 -21
- package/style/index.js +25 -2
- package/style/package.json +2 -2
- package/style/style.js +18 -9
- package/styleFunctionSx/defaultSxConfig.js +71 -65
- package/styleFunctionSx/extendSxProp.js +12 -5
- package/styleFunctionSx/index.js +34 -4
- package/styleFunctionSx/package.json +2 -2
- package/styleFunctionSx/styleFunctionSx.d.ts +1 -1
- package/styleFunctionSx/styleFunctionSx.js +27 -19
- package/styled/index.js +13 -1
- package/styled/package.json +2 -2
- package/styled/styled.js +10 -3
- package/typography/index.js +25 -2
- package/typography/package.json +2 -2
- package/typography/typography.js +20 -13
- package/useMediaQuery/index.js +25 -2
- package/useMediaQuery/package.json +2 -2
- package/useMediaQuery/useMediaQuery.js +15 -8
- package/useTheme/index.js +25 -2
- package/useTheme/package.json +2 -2
- package/useTheme/useTheme.js +11 -5
- package/useThemeProps/getThemeProps.js +10 -3
- package/useThemeProps/index.js +20 -2
- package/useThemeProps/package.json +2 -2
- package/useThemeProps/useThemeProps.js +11 -5
- package/useThemeWithoutDefault/index.js +13 -1
- package/useThemeWithoutDefault/package.json +2 -2
- package/useThemeWithoutDefault/useThemeWithoutDefault.js +10 -4
- package/version/index.js +12 -6
- package/version/package.json +2 -2
- package/node/Box/Box.js +0 -36
- package/node/Box/boxClasses.js +0 -10
- package/node/Box/index.js +0 -35
- package/node/Container/ContainerProps.js +0 -5
- package/node/Container/containerClasses.js +0 -15
- package/node/Container/index.js +0 -35
- package/node/DefaultPropsProvider/index.js +0 -19
- package/node/GlobalStyles/GlobalStyles.js +0 -44
- package/node/GlobalStyles/index.js +0 -25
- package/node/Grid/Grid.js +0 -107
- package/node/Grid/GridProps.js +0 -5
- package/node/Grid/createGrid.js +0 -156
- package/node/Grid/gridGenerator.js +0 -232
- package/node/Grid/index.js +0 -63
- package/node/InitColorSchemeScript/index.js +0 -13
- package/node/RtlProvider/index.js +0 -31
- package/node/Stack/StackProps.js +0 -5
- package/node/Stack/index.js +0 -55
- package/node/Stack/stackClasses.js +0 -15
- package/node/ThemeProvider/index.js +0 -13
- package/node/borders/borders.js +0 -59
- package/node/borders/index.js +0 -25
- package/node/breakpoints/index.js +0 -25
- package/node/colorManipulator/index.js +0 -16
- package/node/compose/index.js +0 -13
- package/node/createBox/createBox.js +0 -42
- package/node/createBox/index.js +0 -13
- package/node/createBreakpoints/index.js +0 -13
- package/node/createStyled/createStyled.js +0 -252
- package/node/createStyled/index.js +0 -25
- package/node/createTheme/createTheme.js +0 -56
- package/node/createTheme/index.js +0 -27
- package/node/createTheme/shape.js +0 -10
- package/node/cssContainerQueries/index.js +0 -31
- package/node/cssGrid/cssGrid.js +0 -94
- package/node/cssGrid/index.js +0 -25
- package/node/cssVars/createCssVarsTheme.js +0 -28
- package/node/cssVars/index.js +0 -41
- package/node/display/display.js +0 -34
- package/node/display/index.js +0 -25
- package/node/flexbox/flexbox.js +0 -50
- package/node/flexbox/index.js +0 -25
- package/node/getThemeValue/getThemeValue.js +0 -58
- package/node/getThemeValue/index.js +0 -25
- package/node/index.js +0 -609
- package/node/memoize/index.js +0 -13
- package/node/merge/index.js +0 -13
- package/node/merge/merge.js +0 -17
- package/node/palette/index.js +0 -25
- package/node/palette/palette.js +0 -34
- package/node/positions/index.js +0 -25
- package/node/positions/positions.js +0 -29
- package/node/propsToClassKey/index.js +0 -13
- package/node/propsToClassKey/propsToClassKey.js +0 -32
- package/node/responsivePropType/index.js +0 -13
- package/node/responsivePropType/responsivePropType.js +0 -10
- package/node/shadows/index.js +0 -13
- package/node/shadows/shadows.js +0 -13
- package/node/sizing/index.js +0 -25
- package/node/sizing/sizing.js +0 -74
- package/node/spacing/index.js +0 -25
- package/node/style/index.js +0 -25
- package/node/styleFunctionSx/index.js +0 -34
- package/node/styled/index.js +0 -13
- package/node/styled/styled.js +0 -10
- package/node/typography/index.js +0 -25
- package/node/typography/typography.js +0 -44
- package/node/useMediaQuery/index.js +0 -25
- package/node/useTheme/index.js +0 -25
- package/node/useTheme/useTheme.js +0 -15
- package/node/useThemeProps/getThemeProps.js +0 -19
- package/node/useThemeProps/index.js +0 -20
- package/node/useThemeProps/useThemeProps.js +0 -26
- package/node/useThemeWithoutDefault/index.js +0 -13
- package/node/useThemeWithoutDefault/useThemeWithoutDefault.js +0 -18
- package/node/version/index.js +0 -12
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import style from "../style/index.js";
|
|
2
|
+
import compose from "../compose/index.js";
|
|
3
|
+
export const flexBasis = style({
|
|
4
|
+
prop: 'flexBasis'
|
|
5
|
+
});
|
|
6
|
+
export const flexDirection = style({
|
|
7
|
+
prop: 'flexDirection'
|
|
8
|
+
});
|
|
9
|
+
export const flexWrap = style({
|
|
10
|
+
prop: 'flexWrap'
|
|
11
|
+
});
|
|
12
|
+
export const justifyContent = style({
|
|
13
|
+
prop: 'justifyContent'
|
|
14
|
+
});
|
|
15
|
+
export const alignItems = style({
|
|
16
|
+
prop: 'alignItems'
|
|
17
|
+
});
|
|
18
|
+
export const alignContent = style({
|
|
19
|
+
prop: 'alignContent'
|
|
20
|
+
});
|
|
21
|
+
export const order = style({
|
|
22
|
+
prop: 'order'
|
|
23
|
+
});
|
|
24
|
+
export const flex = style({
|
|
25
|
+
prop: 'flex'
|
|
26
|
+
});
|
|
27
|
+
export const flexGrow = style({
|
|
28
|
+
prop: 'flexGrow'
|
|
29
|
+
});
|
|
30
|
+
export const flexShrink = style({
|
|
31
|
+
prop: 'flexShrink'
|
|
32
|
+
});
|
|
33
|
+
export const alignSelf = style({
|
|
34
|
+
prop: 'alignSelf'
|
|
35
|
+
});
|
|
36
|
+
export const justifyItems = style({
|
|
37
|
+
prop: 'justifyItems'
|
|
38
|
+
});
|
|
39
|
+
export const justifySelf = style({
|
|
40
|
+
prop: 'justifySelf'
|
|
41
|
+
});
|
|
42
|
+
const flexbox = compose(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
|
|
43
|
+
export default flexbox;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import borders from "../borders/index.js";
|
|
2
|
+
import display from "../display/index.js";
|
|
3
|
+
import flexbox from "../flexbox/index.js";
|
|
4
|
+
import grid from "../cssGrid/index.js";
|
|
5
|
+
import positions from "../positions/index.js";
|
|
6
|
+
import palette from "../palette/index.js";
|
|
7
|
+
import shadows from "../shadows/index.js";
|
|
8
|
+
import sizing from "../sizing/index.js";
|
|
9
|
+
import spacing from "../spacing/index.js";
|
|
10
|
+
import typography from "../typography/index.js";
|
|
11
|
+
const filterPropsMapping = {
|
|
12
|
+
borders: borders.filterProps,
|
|
13
|
+
display: display.filterProps,
|
|
14
|
+
flexbox: flexbox.filterProps,
|
|
15
|
+
grid: grid.filterProps,
|
|
16
|
+
positions: positions.filterProps,
|
|
17
|
+
palette: palette.filterProps,
|
|
18
|
+
shadows: shadows.filterProps,
|
|
19
|
+
sizing: sizing.filterProps,
|
|
20
|
+
spacing: spacing.filterProps,
|
|
21
|
+
typography: typography.filterProps
|
|
22
|
+
};
|
|
23
|
+
export const styleFunctionMapping = {
|
|
24
|
+
borders,
|
|
25
|
+
display,
|
|
26
|
+
flexbox,
|
|
27
|
+
grid,
|
|
28
|
+
positions,
|
|
29
|
+
palette,
|
|
30
|
+
shadows,
|
|
31
|
+
sizing,
|
|
32
|
+
spacing,
|
|
33
|
+
typography
|
|
34
|
+
};
|
|
35
|
+
export const propToStyleFunction = Object.keys(filterPropsMapping).reduce((acc, styleFnName) => {
|
|
36
|
+
filterPropsMapping[styleFnName].forEach(propName => {
|
|
37
|
+
acc[propName] = styleFunctionMapping[styleFnName];
|
|
38
|
+
});
|
|
39
|
+
return acc;
|
|
40
|
+
}, {});
|
|
41
|
+
function getThemeValue(prop, value, theme) {
|
|
42
|
+
const inputProps = {
|
|
43
|
+
[prop]: value,
|
|
44
|
+
theme
|
|
45
|
+
};
|
|
46
|
+
const styleFunction = propToStyleFunction[prop];
|
|
47
|
+
return styleFunction ? styleFunction(inputProps) : {
|
|
48
|
+
[prop]: value
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export default getThemeValue;
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
|
|
2
|
+
export { css, keyframes, StyledEngineProvider } from '@mui/styled-engine';
|
|
3
|
+
export { default as GlobalStyles } from "./GlobalStyles/index.js";
|
|
4
|
+
export { default as borders } from "./borders/index.js";
|
|
5
|
+
export * from "./borders/index.js";
|
|
6
|
+
export { default as breakpoints } from "./breakpoints/index.js";
|
|
7
|
+
export { default as cssContainerQueries } from "./cssContainerQueries/index.js";
|
|
8
|
+
export { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues as unstable_resolveBreakpointValues } from "./breakpoints/index.js";
|
|
9
|
+
export { default as compose } from "./compose/index.js";
|
|
10
|
+
export { default as display } from "./display/index.js";
|
|
11
|
+
export { default as flexbox } from "./flexbox/index.js";
|
|
12
|
+
export * from "./flexbox/index.js";
|
|
13
|
+
export { default as grid } from "./cssGrid/index.js";
|
|
14
|
+
export * from "./cssGrid/index.js";
|
|
15
|
+
export { default as palette } from "./palette/index.js";
|
|
16
|
+
export * from "./palette/index.js";
|
|
17
|
+
export { default as positions } from "./positions/index.js";
|
|
18
|
+
export * from "./positions/index.js";
|
|
19
|
+
export { default as shadows } from "./shadows/index.js";
|
|
20
|
+
export { default as sizing } from "./sizing/index.js";
|
|
21
|
+
export * from "./sizing/index.js";
|
|
22
|
+
export { default as spacing } from "./spacing/index.js";
|
|
23
|
+
export * from "./spacing/index.js";
|
|
24
|
+
export { default as style, getPath, getStyleValue } from "./style/index.js";
|
|
25
|
+
export { default as typography } from "./typography/index.js";
|
|
26
|
+
export * from "./typography/index.js";
|
|
27
|
+
export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from "./styleFunctionSx/index.js";
|
|
28
|
+
// TODO: Remove this function in v6
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
30
|
+
export function experimental_sx() {
|
|
31
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : _formatMuiErrorMessage(19));
|
|
32
|
+
}
|
|
33
|
+
export { default as unstable_getThemeValue } from "./getThemeValue/index.js";
|
|
34
|
+
export { default as Box } from "./Box/index.js";
|
|
35
|
+
export { default as createBox } from "./createBox/index.js";
|
|
36
|
+
export { default as createStyled } from "./createStyled/index.js";
|
|
37
|
+
export * from "./createStyled/index.js";
|
|
38
|
+
export { default as styled } from "./styled/index.js";
|
|
39
|
+
export { default as createTheme } from "./createTheme/index.js";
|
|
40
|
+
export { default as createBreakpoints } from "./createBreakpoints/createBreakpoints.js";
|
|
41
|
+
export { default as createSpacing } from "./createTheme/createSpacing.js";
|
|
42
|
+
export { default as shape } from "./createTheme/shape.js";
|
|
43
|
+
export { default as useThemeProps, getThemeProps } from "./useThemeProps/index.js";
|
|
44
|
+
export { default as useTheme } from "./useTheme/index.js";
|
|
45
|
+
export { default as useThemeWithoutDefault } from "./useThemeWithoutDefault/index.js";
|
|
46
|
+
export { default as useMediaQuery } from "./useMediaQuery/index.js";
|
|
47
|
+
export * from "./colorManipulator/index.js";
|
|
48
|
+
export { default as ThemeProvider } from "./ThemeProvider/index.js";
|
|
49
|
+
export { default as unstable_memoTheme } from "./memoTheme.js";
|
|
50
|
+
export { default as unstable_createCssVarsProvider } from "./cssVars/createCssVarsProvider.js";
|
|
51
|
+
export { default as unstable_createGetCssVar } from "./cssVars/createGetCssVar.js";
|
|
52
|
+
export { default as unstable_cssVarsParser } from "./cssVars/cssVarsParser.js";
|
|
53
|
+
export { default as unstable_prepareCssVars } from "./cssVars/prepareCssVars.js";
|
|
54
|
+
export { default as unstable_createCssVarsTheme } from "./cssVars/createCssVarsTheme.js";
|
|
55
|
+
export { default as responsivePropType } from "./responsivePropType/index.js";
|
|
56
|
+
export { default as RtlProvider } from "./RtlProvider/index.js";
|
|
57
|
+
export * from "./RtlProvider/index.js";
|
|
58
|
+
export * from "./version/index.js";
|
|
59
|
+
|
|
60
|
+
/** ----------------- */
|
|
61
|
+
/** Layout components */
|
|
62
|
+
export { default as createContainer } from "./Container/createContainer.js";
|
|
63
|
+
export { default as Container } from "./Container/index.js";
|
|
64
|
+
export * from "./Container/index.js";
|
|
65
|
+
export { default as Grid } from "./Grid/Grid.js";
|
|
66
|
+
export * from "./Grid/index.js";
|
|
67
|
+
export { default as Stack } from "./Stack/Stack.js";
|
|
68
|
+
export * from "./Stack/index.js";
|
package/esm/memoTheme.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import preprocessStyles from "./preprocessStyles.js";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
4
|
+
|
|
5
|
+
// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to
|
|
6
|
+
// allocate more objects.
|
|
7
|
+
const arg = {
|
|
8
|
+
theme: undefined
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Memoize style function on theme.
|
|
13
|
+
* Intended to be used in styled() calls that only need access to the theme.
|
|
14
|
+
*/
|
|
15
|
+
export default function unstable_memoTheme(styleFn) {
|
|
16
|
+
let lastValue;
|
|
17
|
+
let lastTheme;
|
|
18
|
+
return function styleMemoized(props) {
|
|
19
|
+
let value = lastValue;
|
|
20
|
+
if (value === undefined || props.theme !== lastTheme) {
|
|
21
|
+
arg.theme = props.theme;
|
|
22
|
+
value = preprocessStyles(styleFn(arg));
|
|
23
|
+
lastValue = value;
|
|
24
|
+
lastTheme = props.theme;
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./memoize.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./merge.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import style from "../style/index.js";
|
|
2
|
+
import compose from "../compose/index.js";
|
|
3
|
+
export function paletteTransform(value, userValue) {
|
|
4
|
+
if (userValue === 'grey') {
|
|
5
|
+
return userValue;
|
|
6
|
+
}
|
|
7
|
+
return value;
|
|
8
|
+
}
|
|
9
|
+
export const color = style({
|
|
10
|
+
prop: 'color',
|
|
11
|
+
themeKey: 'palette',
|
|
12
|
+
transform: paletteTransform
|
|
13
|
+
});
|
|
14
|
+
export const bgcolor = style({
|
|
15
|
+
prop: 'bgcolor',
|
|
16
|
+
cssProperty: 'backgroundColor',
|
|
17
|
+
themeKey: 'palette',
|
|
18
|
+
transform: paletteTransform
|
|
19
|
+
});
|
|
20
|
+
export const backgroundColor = style({
|
|
21
|
+
prop: 'backgroundColor',
|
|
22
|
+
themeKey: 'palette',
|
|
23
|
+
transform: paletteTransform
|
|
24
|
+
});
|
|
25
|
+
const palette = compose(color, bgcolor, backgroundColor);
|
|
26
|
+
export default palette;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import style from "../style/index.js";
|
|
2
|
+
import compose from "../compose/index.js";
|
|
3
|
+
export const position = style({
|
|
4
|
+
prop: 'position'
|
|
5
|
+
});
|
|
6
|
+
export const zIndex = style({
|
|
7
|
+
prop: 'zIndex',
|
|
8
|
+
themeKey: 'zIndex'
|
|
9
|
+
});
|
|
10
|
+
export const top = style({
|
|
11
|
+
prop: 'top'
|
|
12
|
+
});
|
|
13
|
+
export const right = style({
|
|
14
|
+
prop: 'right'
|
|
15
|
+
});
|
|
16
|
+
export const bottom = style({
|
|
17
|
+
prop: 'bottom'
|
|
18
|
+
});
|
|
19
|
+
export const left = style({
|
|
20
|
+
prop: 'left'
|
|
21
|
+
});
|
|
22
|
+
export default compose(position, zIndex, top, right, bottom, left);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { internal_serializeStyles } from '@mui/styled-engine';
|
|
2
|
+
export default function preprocessStyles(input) {
|
|
3
|
+
const {
|
|
4
|
+
variants,
|
|
5
|
+
...style
|
|
6
|
+
} = input;
|
|
7
|
+
const result = {
|
|
8
|
+
variants,
|
|
9
|
+
style: internal_serializeStyles(style),
|
|
10
|
+
isProcessed: true
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// Not supported on styled-components
|
|
14
|
+
if (result.style === style) {
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
if (variants) {
|
|
18
|
+
variants.forEach(variant => {
|
|
19
|
+
if (typeof variant.style !== 'function') {
|
|
20
|
+
variant.style = internal_serializeStyles(variant.style);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./propsToClassKey.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import capitalize from '@mui/utils/capitalize';
|
|
2
|
+
function isEmpty(string) {
|
|
3
|
+
return string.length === 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Generates string classKey based on the properties provided. It starts with the
|
|
8
|
+
* variant if defined, and then it appends all other properties in alphabetical order.
|
|
9
|
+
* @param {object} props - the properties for which the classKey should be created.
|
|
10
|
+
*/
|
|
11
|
+
export default function propsToClassKey(props) {
|
|
12
|
+
const {
|
|
13
|
+
variant,
|
|
14
|
+
...other
|
|
15
|
+
} = props;
|
|
16
|
+
let classKey = variant || '';
|
|
17
|
+
Object.keys(other).sort().forEach(key => {
|
|
18
|
+
if (key === 'color') {
|
|
19
|
+
classKey += isEmpty(classKey) ? props[key] : capitalize(props[key]);
|
|
20
|
+
} else {
|
|
21
|
+
classKey += `${isEmpty(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return classKey;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./responsivePropType.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./shadows.js";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import style from "../style/index.js";
|
|
2
|
+
import compose from "../compose/index.js";
|
|
3
|
+
import { handleBreakpoints, values as breakpointsValues } from "../breakpoints/index.js";
|
|
4
|
+
export function sizingTransform(value) {
|
|
5
|
+
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
6
|
+
}
|
|
7
|
+
export const width = style({
|
|
8
|
+
prop: 'width',
|
|
9
|
+
transform: sizingTransform
|
|
10
|
+
});
|
|
11
|
+
export const maxWidth = props => {
|
|
12
|
+
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
13
|
+
const styleFromPropValue = propValue => {
|
|
14
|
+
const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];
|
|
15
|
+
if (!breakpoint) {
|
|
16
|
+
return {
|
|
17
|
+
maxWidth: sizingTransform(propValue)
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
if (props.theme?.breakpoints?.unit !== 'px') {
|
|
21
|
+
return {
|
|
22
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
maxWidth: breakpoint
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
maxWidth.filterProps = ['maxWidth'];
|
|
34
|
+
export const minWidth = style({
|
|
35
|
+
prop: 'minWidth',
|
|
36
|
+
transform: sizingTransform
|
|
37
|
+
});
|
|
38
|
+
export const height = style({
|
|
39
|
+
prop: 'height',
|
|
40
|
+
transform: sizingTransform
|
|
41
|
+
});
|
|
42
|
+
export const maxHeight = style({
|
|
43
|
+
prop: 'maxHeight',
|
|
44
|
+
transform: sizingTransform
|
|
45
|
+
});
|
|
46
|
+
export const minHeight = style({
|
|
47
|
+
prop: 'minHeight',
|
|
48
|
+
transform: sizingTransform
|
|
49
|
+
});
|
|
50
|
+
export const sizeWidth = style({
|
|
51
|
+
prop: 'size',
|
|
52
|
+
cssProperty: 'width',
|
|
53
|
+
transform: sizingTransform
|
|
54
|
+
});
|
|
55
|
+
export const sizeHeight = style({
|
|
56
|
+
prop: 'size',
|
|
57
|
+
cssProperty: 'height',
|
|
58
|
+
transform: sizingTransform
|
|
59
|
+
});
|
|
60
|
+
export const boxSizing = style({
|
|
61
|
+
prop: 'boxSizing'
|
|
62
|
+
});
|
|
63
|
+
const sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
|
64
|
+
export default sizing;
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
exports.createUnarySpacing = createUnarySpacing;
|
|
8
|
-
exports.createUnaryUnit = createUnaryUnit;
|
|
9
|
-
exports.default = void 0;
|
|
10
|
-
exports.getStyleFromPropValue = getStyleFromPropValue;
|
|
11
|
-
exports.getValue = getValue;
|
|
12
|
-
exports.margin = margin;
|
|
13
|
-
exports.marginKeys = void 0;
|
|
14
|
-
exports.padding = padding;
|
|
15
|
-
exports.paddingKeys = void 0;
|
|
16
|
-
var _responsivePropType = _interopRequireDefault(require("../responsivePropType"));
|
|
17
|
-
var _breakpoints = require("../breakpoints");
|
|
18
|
-
var _style = require("../style");
|
|
19
|
-
var _merge = _interopRequireDefault(require("../merge"));
|
|
20
|
-
var _memoize = _interopRequireDefault(require("../memoize"));
|
|
1
|
+
import responsivePropType from "../responsivePropType/index.js";
|
|
2
|
+
import { handleBreakpoints } from "../breakpoints/index.js";
|
|
3
|
+
import { getPath } from "../style/index.js";
|
|
4
|
+
import merge from "../merge/index.js";
|
|
5
|
+
import memoize from "../memoize/index.js";
|
|
21
6
|
const properties = {
|
|
22
7
|
m: 'margin',
|
|
23
8
|
p: 'padding'
|
|
@@ -40,7 +25,7 @@ const aliases = {
|
|
|
40
25
|
// memoize() impact:
|
|
41
26
|
// From 300,000 ops/sec
|
|
42
27
|
// To 350,000 ops/sec
|
|
43
|
-
const getCssProperties = (
|
|
28
|
+
const getCssProperties = memoize(prop => {
|
|
44
29
|
// It's not a shorthand notation.
|
|
45
30
|
if (prop.length > 2) {
|
|
46
31
|
if (aliases[prop]) {
|
|
@@ -54,11 +39,11 @@ const getCssProperties = (0, _memoize.default)(prop => {
|
|
|
54
39
|
const direction = directions[b] || '';
|
|
55
40
|
return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
|
|
56
41
|
});
|
|
57
|
-
const marginKeys =
|
|
58
|
-
const paddingKeys =
|
|
42
|
+
export const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
43
|
+
export const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
59
44
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
60
|
-
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
61
|
-
const themeSpacing =
|
|
45
|
+
export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
46
|
+
const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;
|
|
62
47
|
if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {
|
|
63
48
|
return val => {
|
|
64
49
|
if (typeof val === 'string') {
|
|
@@ -106,16 +91,16 @@ function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
|
106
91
|
}
|
|
107
92
|
return () => undefined;
|
|
108
93
|
}
|
|
109
|
-
function createUnarySpacing(theme) {
|
|
94
|
+
export function createUnarySpacing(theme) {
|
|
110
95
|
return createUnaryUnit(theme, 'spacing', 8, 'spacing');
|
|
111
96
|
}
|
|
112
|
-
function getValue(transformer, propValue) {
|
|
97
|
+
export function getValue(transformer, propValue) {
|
|
113
98
|
if (typeof propValue === 'string' || propValue == null) {
|
|
114
99
|
return propValue;
|
|
115
100
|
}
|
|
116
101
|
return transformer(propValue);
|
|
117
102
|
}
|
|
118
|
-
function getStyleFromPropValue(cssProperties, transformer) {
|
|
103
|
+
export function getStyleFromPropValue(cssProperties, transformer) {
|
|
119
104
|
return propValue => cssProperties.reduce((acc, cssProperty) => {
|
|
120
105
|
acc[cssProperty] = getValue(transformer, propValue);
|
|
121
106
|
return acc;
|
|
@@ -130,25 +115,25 @@ function resolveCssProperty(props, keys, prop, transformer) {
|
|
|
130
115
|
const cssProperties = getCssProperties(prop);
|
|
131
116
|
const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
|
|
132
117
|
const propValue = props[prop];
|
|
133
|
-
return
|
|
118
|
+
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
134
119
|
}
|
|
135
120
|
function style(props, keys) {
|
|
136
121
|
const transformer = createUnarySpacing(props.theme);
|
|
137
|
-
return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(
|
|
122
|
+
return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});
|
|
138
123
|
}
|
|
139
|
-
function margin(props) {
|
|
124
|
+
export function margin(props) {
|
|
140
125
|
return style(props, marginKeys);
|
|
141
126
|
}
|
|
142
127
|
margin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {
|
|
143
|
-
obj[key] =
|
|
128
|
+
obj[key] = responsivePropType;
|
|
144
129
|
return obj;
|
|
145
130
|
}, {}) : {};
|
|
146
131
|
margin.filterProps = marginKeys;
|
|
147
|
-
function padding(props) {
|
|
132
|
+
export function padding(props) {
|
|
148
133
|
return style(props, paddingKeys);
|
|
149
134
|
}
|
|
150
135
|
padding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {
|
|
151
|
-
obj[key] =
|
|
136
|
+
obj[key] = responsivePropType;
|
|
152
137
|
return obj;
|
|
153
138
|
}, {}) : {};
|
|
154
139
|
padding.filterProps = paddingKeys;
|
|
@@ -156,8 +141,8 @@ function spacing(props) {
|
|
|
156
141
|
return style(props, spacingKeys);
|
|
157
142
|
}
|
|
158
143
|
spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
|
|
159
|
-
obj[key] =
|
|
144
|
+
obj[key] = responsivePropType;
|
|
160
145
|
return obj;
|
|
161
146
|
}, {}) : {};
|
|
162
147
|
spacing.filterProps = spacingKeys;
|
|
163
|
-
|
|
148
|
+
export default spacing;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
exports.getPath = getPath;
|
|
9
|
-
exports.getStyleValue = getStyleValue;
|
|
10
|
-
var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
|
|
11
|
-
var _responsivePropType = _interopRequireDefault(require("../responsivePropType"));
|
|
12
|
-
var _breakpoints = require("../breakpoints");
|
|
13
|
-
function getPath(obj, path, checkVars = true) {
|
|
1
|
+
import capitalize from '@mui/utils/capitalize';
|
|
2
|
+
import responsivePropType from "../responsivePropType/index.js";
|
|
3
|
+
import { handleBreakpoints } from "../breakpoints/index.js";
|
|
4
|
+
export function getPath(obj, path, checkVars = true) {
|
|
14
5
|
if (!path || typeof path !== 'string') {
|
|
15
6
|
return null;
|
|
16
7
|
}
|
|
@@ -29,7 +20,7 @@ function getPath(obj, path, checkVars = true) {
|
|
|
29
20
|
return null;
|
|
30
21
|
}, obj);
|
|
31
22
|
}
|
|
32
|
-
function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
23
|
+
export function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
33
24
|
let value;
|
|
34
25
|
if (typeof themeMapping === 'function') {
|
|
35
26
|
value = themeMapping(propValueFinal);
|
|
@@ -64,7 +55,7 @@ function style(options) {
|
|
|
64
55
|
let value = getStyleValue(themeMapping, transform, propValueFinal);
|
|
65
56
|
if (propValueFinal === value && typeof propValueFinal === 'string') {
|
|
66
57
|
// Haven't found value
|
|
67
|
-
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : (
|
|
58
|
+
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
|
|
68
59
|
}
|
|
69
60
|
if (cssProperty === false) {
|
|
70
61
|
return value;
|
|
@@ -73,12 +64,12 @@ function style(options) {
|
|
|
73
64
|
[cssProperty]: value
|
|
74
65
|
};
|
|
75
66
|
};
|
|
76
|
-
return
|
|
67
|
+
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
77
68
|
};
|
|
78
69
|
fn.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
79
|
-
[prop]:
|
|
70
|
+
[prop]: responsivePropType
|
|
80
71
|
} : {};
|
|
81
72
|
fn.filterProps = [prop];
|
|
82
73
|
return fn;
|
|
83
74
|
}
|
|
84
|
-
|
|
75
|
+
export default style;
|