@cgi-learning-hub/ui 0.0.1-dev.1706552824 → 0.0.1-dev.1706567478
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/dist/assets/AnotherComponent.css +1 -0
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
- package/dist/components/AnotherComponent/AnotherComponent.js +6 -0
- package/dist/components/AnotherComponent/AnotherComponent.stories.d.ts +5 -0
- package/dist/components/AnotherComponent/AnotherComponent.stories.js +22 -0
- package/dist/components/AnotherComponent/index.d.ts +2 -0
- package/dist/components/AnotherComponent/index.js +4 -0
- package/dist/components/BasicButtons/BasicButtons.js +5606 -11
- package/dist/components/BasicButtons/BasicButtons.stories.js +22 -0
- package/dist/components/BasicButtons/index.js +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +6 -0
- package/dist/index.js +6 -1
- package/dist/vite-env.d.js +1 -0
- package/package.json +6 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -5
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/react-is.development.js +0 -3
- package/dist/_virtual/react-is.development2.js +0 -3
- package/dist/_virtual/react-is.production.min.js +0 -3
- package/dist/_virtual/react-is.production.min2.js +0 -3
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -8
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/extends.js +0 -16
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -9
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -9
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/Button/Button.js +0 -379
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/Button/buttonClasses.js +0 -10
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonBase/ButtonBase.js +0 -477
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonBase/Ripple.js +0 -85
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonBase/TouchRipple.js +0 -340
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js +0 -9
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonBase/touchRippleClasses.js +0 -5
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js +0 -12
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js +0 -12
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/Stack/Stack.js +0 -63
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/blue.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/common.js +0 -7
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/green.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/grey.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/lightBlue.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/orange.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/purple.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/colors/red.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/createMixins.js +0 -19
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/createPalette.js +0 -308
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/createTheme.js +0 -82
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/createTransitions.js +0 -91
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/createTypography.js +0 -93
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/defaultTheme.js +0 -6
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/identifier.js +0 -3
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/shadows.js +0 -11
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/styled.js +0 -12
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/useThemeProps.js +0 -17
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/styles/zIndex.js +0 -15
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/utils/capitalize.js +0 -5
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/utils/useEventCallback.js +0 -5
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/utils/useForkRef.js +0 -5
- package/dist/node_modules/.pnpm/@mui_material@5.15.0_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react-dom@18.2.0_react@18.2.0/node_modules/@mui/material/utils/useIsFocusVisible.js +0 -5
- package/dist/node_modules/.pnpm/@mui_styled-engine@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_react@18.2.0/node_modules/@mui/styled-engine/index.js +0 -36
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/Stack/createStack.js +0 -176
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/borders.js +0 -51
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/breakpoints.js +0 -123
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/colorManipulator.js +0 -236
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/compose.js +0 -26
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/createStyled.js +0 -322
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -82
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -34
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -43
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/createTheme/shape.js +0 -6
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/cssGrid.js +0 -86
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/memoize.js +0 -11
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/merge.js +0 -12
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/palette.js +0 -28
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/propsToClassKey.js +0 -30
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/responsivePropType.js +0 -6
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/sizing.js +0 -67
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/spacing.js +0 -144
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/style.js +0 -77
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -294
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +0 -51
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -129
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/styled.js +0 -5
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/useTheme.js +0 -9
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -15
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -22
- package/dist/node_modules/.pnpm/@mui_system@5.15.6_@emotion_react@11.11.1_@emotion_styled@11.11.0_@types_react@18.2.48_react@18.2.0/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -12
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -18
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -14
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -10
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/clamp/clamp.js +0 -5
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -23
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/deepmerge.js +0 -44
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/elementTypeAcceptingRef.js +0 -43
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -21
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -22
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -11
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/getDisplayName.js +0 -49
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/refType.js +0 -6
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/resolveProps.js +0 -37
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/setRef.js +0 -22
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -12
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -19
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -23
- package/dist/node_modules/.pnpm/@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -156
- package/dist/node_modules/.pnpm/clsx@2.1.0/node_modules/clsx/dist/clsx.js +0 -3
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -99
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +0 -115
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +0 -74
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +0 -625
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +0 -30
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -21
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +0 -11
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -190
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -26
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -19
- package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.development.js +0 -230
- package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.production.min.js +0 -26
- package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/index.js +0 -13
- package/dist/node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/TransitionGroup.js +0 -191
- package/dist/node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -5
- package/dist/node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/utils/ChildMapping.js +0 -143
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import style from './style.js';
|
|
2
|
-
import compose from './compose.js';
|
|
3
|
-
import { handleBreakpoints, values } from './breakpoints.js';
|
|
4
|
-
|
|
5
|
-
function sizingTransform(value) {
|
|
6
|
-
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
7
|
-
}
|
|
8
|
-
const width = style({
|
|
9
|
-
prop: 'width',
|
|
10
|
-
transform: sizingTransform
|
|
11
|
-
});
|
|
12
|
-
const maxWidth = props => {
|
|
13
|
-
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
14
|
-
const styleFromPropValue = propValue => {
|
|
15
|
-
var _props$theme, _props$theme2;
|
|
16
|
-
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
|
|
17
|
-
if (!breakpoint) {
|
|
18
|
-
return {
|
|
19
|
-
maxWidth: sizingTransform(propValue)
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
23
|
-
return {
|
|
24
|
-
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
maxWidth: breakpoint
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
32
|
-
}
|
|
33
|
-
return null;
|
|
34
|
-
};
|
|
35
|
-
maxWidth.filterProps = ['maxWidth'];
|
|
36
|
-
const minWidth = style({
|
|
37
|
-
prop: 'minWidth',
|
|
38
|
-
transform: sizingTransform
|
|
39
|
-
});
|
|
40
|
-
const height = style({
|
|
41
|
-
prop: 'height',
|
|
42
|
-
transform: sizingTransform
|
|
43
|
-
});
|
|
44
|
-
const maxHeight = style({
|
|
45
|
-
prop: 'maxHeight',
|
|
46
|
-
transform: sizingTransform
|
|
47
|
-
});
|
|
48
|
-
const minHeight = style({
|
|
49
|
-
prop: 'minHeight',
|
|
50
|
-
transform: sizingTransform
|
|
51
|
-
});
|
|
52
|
-
style({
|
|
53
|
-
prop: 'size',
|
|
54
|
-
cssProperty: 'width',
|
|
55
|
-
transform: sizingTransform
|
|
56
|
-
});
|
|
57
|
-
style({
|
|
58
|
-
prop: 'size',
|
|
59
|
-
cssProperty: 'height',
|
|
60
|
-
transform: sizingTransform
|
|
61
|
-
});
|
|
62
|
-
const boxSizing = style({
|
|
63
|
-
prop: 'boxSizing'
|
|
64
|
-
});
|
|
65
|
-
compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
|
66
|
-
|
|
67
|
-
export { boxSizing, height, maxHeight, maxWidth, minHeight, minWidth, sizingTransform, width };
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import responsivePropType from './responsivePropType.js';
|
|
2
|
-
import { handleBreakpoints } from './breakpoints.js';
|
|
3
|
-
import { getPath } from './style.js';
|
|
4
|
-
import merge from './merge.js';
|
|
5
|
-
import memoize from './memoize.js';
|
|
6
|
-
|
|
7
|
-
const properties = {
|
|
8
|
-
m: 'margin',
|
|
9
|
-
p: 'padding'
|
|
10
|
-
};
|
|
11
|
-
const directions = {
|
|
12
|
-
t: 'Top',
|
|
13
|
-
r: 'Right',
|
|
14
|
-
b: 'Bottom',
|
|
15
|
-
l: 'Left',
|
|
16
|
-
x: ['Left', 'Right'],
|
|
17
|
-
y: ['Top', 'Bottom']
|
|
18
|
-
};
|
|
19
|
-
const aliases = {
|
|
20
|
-
marginX: 'mx',
|
|
21
|
-
marginY: 'my',
|
|
22
|
-
paddingX: 'px',
|
|
23
|
-
paddingY: 'py'
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// memoize() impact:
|
|
27
|
-
// From 300,000 ops/sec
|
|
28
|
-
// To 350,000 ops/sec
|
|
29
|
-
const getCssProperties = memoize(prop => {
|
|
30
|
-
// It's not a shorthand notation.
|
|
31
|
-
if (prop.length > 2) {
|
|
32
|
-
if (aliases[prop]) {
|
|
33
|
-
prop = aliases[prop];
|
|
34
|
-
} else {
|
|
35
|
-
return [prop];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const [a, b] = prop.split('');
|
|
39
|
-
const property = properties[a];
|
|
40
|
-
const direction = directions[b] || '';
|
|
41
|
-
return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
|
|
42
|
-
});
|
|
43
|
-
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
44
|
-
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
45
|
-
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
46
|
-
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
47
|
-
var _getPath;
|
|
48
|
-
const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
|
|
49
|
-
if (typeof themeSpacing === 'number') {
|
|
50
|
-
return abs => {
|
|
51
|
-
if (typeof abs === 'string') {
|
|
52
|
-
return abs;
|
|
53
|
-
}
|
|
54
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
55
|
-
if (typeof abs !== 'number') {
|
|
56
|
-
console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return themeSpacing * abs;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
if (Array.isArray(themeSpacing)) {
|
|
63
|
-
return abs => {
|
|
64
|
-
if (typeof abs === 'string') {
|
|
65
|
-
return abs;
|
|
66
|
-
}
|
|
67
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
68
|
-
if (!Number.isInteger(abs)) {
|
|
69
|
-
console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join('\n'));
|
|
70
|
-
} else if (abs > themeSpacing.length - 1) {
|
|
71
|
-
console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\n'));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return themeSpacing[abs];
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
if (typeof themeSpacing === 'function') {
|
|
78
|
-
return themeSpacing;
|
|
79
|
-
}
|
|
80
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
81
|
-
console.error([`MUI: The \`theme.${themeKey}\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\n'));
|
|
82
|
-
}
|
|
83
|
-
return () => undefined;
|
|
84
|
-
}
|
|
85
|
-
function createUnarySpacing(theme) {
|
|
86
|
-
return createUnaryUnit(theme, 'spacing', 8, 'spacing');
|
|
87
|
-
}
|
|
88
|
-
function getValue(transformer, propValue) {
|
|
89
|
-
if (typeof propValue === 'string' || propValue == null) {
|
|
90
|
-
return propValue;
|
|
91
|
-
}
|
|
92
|
-
const abs = Math.abs(propValue);
|
|
93
|
-
const transformed = transformer(abs);
|
|
94
|
-
if (propValue >= 0) {
|
|
95
|
-
return transformed;
|
|
96
|
-
}
|
|
97
|
-
if (typeof transformed === 'number') {
|
|
98
|
-
return -transformed;
|
|
99
|
-
}
|
|
100
|
-
return `-${transformed}`;
|
|
101
|
-
}
|
|
102
|
-
function getStyleFromPropValue(cssProperties, transformer) {
|
|
103
|
-
return propValue => cssProperties.reduce((acc, cssProperty) => {
|
|
104
|
-
acc[cssProperty] = getValue(transformer, propValue);
|
|
105
|
-
return acc;
|
|
106
|
-
}, {});
|
|
107
|
-
}
|
|
108
|
-
function resolveCssProperty(props, keys, prop, transformer) {
|
|
109
|
-
// Using a hash computation over an array iteration could be faster, but with only 28 items,
|
|
110
|
-
// it's doesn't worth the bundle size.
|
|
111
|
-
if (keys.indexOf(prop) === -1) {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
const cssProperties = getCssProperties(prop);
|
|
115
|
-
const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
|
|
116
|
-
const propValue = props[prop];
|
|
117
|
-
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
118
|
-
}
|
|
119
|
-
function style(props, keys) {
|
|
120
|
-
const transformer = createUnarySpacing(props.theme);
|
|
121
|
-
return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});
|
|
122
|
-
}
|
|
123
|
-
function margin(props) {
|
|
124
|
-
return style(props, marginKeys);
|
|
125
|
-
}
|
|
126
|
-
margin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {
|
|
127
|
-
obj[key] = responsivePropType;
|
|
128
|
-
return obj;
|
|
129
|
-
}, {}) : {};
|
|
130
|
-
margin.filterProps = marginKeys;
|
|
131
|
-
function padding(props) {
|
|
132
|
-
return style(props, paddingKeys);
|
|
133
|
-
}
|
|
134
|
-
padding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {
|
|
135
|
-
obj[key] = responsivePropType;
|
|
136
|
-
return obj;
|
|
137
|
-
}, {}) : {};
|
|
138
|
-
padding.filterProps = paddingKeys;
|
|
139
|
-
process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
|
|
140
|
-
obj[key] = responsivePropType;
|
|
141
|
-
return obj;
|
|
142
|
-
}, {}) : {};
|
|
143
|
-
|
|
144
|
-
export { createUnarySpacing, createUnaryUnit, getStyleFromPropValue, getValue, margin, marginKeys, padding, paddingKeys };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import responsivePropType from './responsivePropType.js';
|
|
2
|
-
import { handleBreakpoints } from './breakpoints.js';
|
|
3
|
-
import capitalize from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/capitalize/capitalize.js';
|
|
4
|
-
|
|
5
|
-
function getPath(obj, path, checkVars = true) {
|
|
6
|
-
if (!path || typeof path !== 'string') {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// Check if CSS variables are used
|
|
11
|
-
if (obj && obj.vars && checkVars) {
|
|
12
|
-
const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
|
|
13
|
-
if (val != null) {
|
|
14
|
-
return val;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return path.split('.').reduce((acc, item) => {
|
|
18
|
-
if (acc && acc[item] != null) {
|
|
19
|
-
return acc[item];
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
}, obj);
|
|
23
|
-
}
|
|
24
|
-
function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
25
|
-
let value;
|
|
26
|
-
if (typeof themeMapping === 'function') {
|
|
27
|
-
value = themeMapping(propValueFinal);
|
|
28
|
-
} else if (Array.isArray(themeMapping)) {
|
|
29
|
-
value = themeMapping[propValueFinal] || userValue;
|
|
30
|
-
} else {
|
|
31
|
-
value = getPath(themeMapping, propValueFinal) || userValue;
|
|
32
|
-
}
|
|
33
|
-
if (transform) {
|
|
34
|
-
value = transform(value, userValue, themeMapping);
|
|
35
|
-
}
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
function style(options) {
|
|
39
|
-
const {
|
|
40
|
-
prop,
|
|
41
|
-
cssProperty = options.prop,
|
|
42
|
-
themeKey,
|
|
43
|
-
transform
|
|
44
|
-
} = options;
|
|
45
|
-
|
|
46
|
-
// false positive
|
|
47
|
-
// eslint-disable-next-line react/function-component-definition
|
|
48
|
-
const fn = props => {
|
|
49
|
-
if (props[prop] == null) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
const propValue = props[prop];
|
|
53
|
-
const theme = props.theme;
|
|
54
|
-
const themeMapping = getPath(theme, themeKey) || {};
|
|
55
|
-
const styleFromPropValue = propValueFinal => {
|
|
56
|
-
let value = getStyleValue(themeMapping, transform, propValueFinal);
|
|
57
|
-
if (propValueFinal === value && typeof propValueFinal === 'string') {
|
|
58
|
-
// Haven't found value
|
|
59
|
-
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
|
|
60
|
-
}
|
|
61
|
-
if (cssProperty === false) {
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
[cssProperty]: value
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
69
|
-
};
|
|
70
|
-
fn.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
71
|
-
[prop]: responsivePropType
|
|
72
|
-
} : {};
|
|
73
|
-
fn.filterProps = [prop];
|
|
74
|
-
return fn;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { style as default, getPath, getStyleValue };
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { padding, margin } from '../spacing.js';
|
|
2
|
-
import { borderTransform, borderRadius } from '../borders.js';
|
|
3
|
-
import { gap, rowGap, columnGap } from '../cssGrid.js';
|
|
4
|
-
import { paletteTransform } from '../palette.js';
|
|
5
|
-
import { sizingTransform, maxWidth } from '../sizing.js';
|
|
6
|
-
|
|
7
|
-
const defaultSxConfig = {
|
|
8
|
-
// borders
|
|
9
|
-
border: {
|
|
10
|
-
themeKey: 'borders',
|
|
11
|
-
transform: borderTransform
|
|
12
|
-
},
|
|
13
|
-
borderTop: {
|
|
14
|
-
themeKey: 'borders',
|
|
15
|
-
transform: borderTransform
|
|
16
|
-
},
|
|
17
|
-
borderRight: {
|
|
18
|
-
themeKey: 'borders',
|
|
19
|
-
transform: borderTransform
|
|
20
|
-
},
|
|
21
|
-
borderBottom: {
|
|
22
|
-
themeKey: 'borders',
|
|
23
|
-
transform: borderTransform
|
|
24
|
-
},
|
|
25
|
-
borderLeft: {
|
|
26
|
-
themeKey: 'borders',
|
|
27
|
-
transform: borderTransform
|
|
28
|
-
},
|
|
29
|
-
borderColor: {
|
|
30
|
-
themeKey: 'palette'
|
|
31
|
-
},
|
|
32
|
-
borderTopColor: {
|
|
33
|
-
themeKey: 'palette'
|
|
34
|
-
},
|
|
35
|
-
borderRightColor: {
|
|
36
|
-
themeKey: 'palette'
|
|
37
|
-
},
|
|
38
|
-
borderBottomColor: {
|
|
39
|
-
themeKey: 'palette'
|
|
40
|
-
},
|
|
41
|
-
borderLeftColor: {
|
|
42
|
-
themeKey: 'palette'
|
|
43
|
-
},
|
|
44
|
-
outline: {
|
|
45
|
-
themeKey: 'borders',
|
|
46
|
-
transform: borderTransform
|
|
47
|
-
},
|
|
48
|
-
outlineColor: {
|
|
49
|
-
themeKey: 'palette'
|
|
50
|
-
},
|
|
51
|
-
borderRadius: {
|
|
52
|
-
themeKey: 'shape.borderRadius',
|
|
53
|
-
style: borderRadius
|
|
54
|
-
},
|
|
55
|
-
// palette
|
|
56
|
-
color: {
|
|
57
|
-
themeKey: 'palette',
|
|
58
|
-
transform: paletteTransform
|
|
59
|
-
},
|
|
60
|
-
bgcolor: {
|
|
61
|
-
themeKey: 'palette',
|
|
62
|
-
cssProperty: 'backgroundColor',
|
|
63
|
-
transform: paletteTransform
|
|
64
|
-
},
|
|
65
|
-
backgroundColor: {
|
|
66
|
-
themeKey: 'palette',
|
|
67
|
-
transform: paletteTransform
|
|
68
|
-
},
|
|
69
|
-
// spacing
|
|
70
|
-
p: {
|
|
71
|
-
style: padding
|
|
72
|
-
},
|
|
73
|
-
pt: {
|
|
74
|
-
style: padding
|
|
75
|
-
},
|
|
76
|
-
pr: {
|
|
77
|
-
style: padding
|
|
78
|
-
},
|
|
79
|
-
pb: {
|
|
80
|
-
style: padding
|
|
81
|
-
},
|
|
82
|
-
pl: {
|
|
83
|
-
style: padding
|
|
84
|
-
},
|
|
85
|
-
px: {
|
|
86
|
-
style: padding
|
|
87
|
-
},
|
|
88
|
-
py: {
|
|
89
|
-
style: padding
|
|
90
|
-
},
|
|
91
|
-
padding: {
|
|
92
|
-
style: padding
|
|
93
|
-
},
|
|
94
|
-
paddingTop: {
|
|
95
|
-
style: padding
|
|
96
|
-
},
|
|
97
|
-
paddingRight: {
|
|
98
|
-
style: padding
|
|
99
|
-
},
|
|
100
|
-
paddingBottom: {
|
|
101
|
-
style: padding
|
|
102
|
-
},
|
|
103
|
-
paddingLeft: {
|
|
104
|
-
style: padding
|
|
105
|
-
},
|
|
106
|
-
paddingX: {
|
|
107
|
-
style: padding
|
|
108
|
-
},
|
|
109
|
-
paddingY: {
|
|
110
|
-
style: padding
|
|
111
|
-
},
|
|
112
|
-
paddingInline: {
|
|
113
|
-
style: padding
|
|
114
|
-
},
|
|
115
|
-
paddingInlineStart: {
|
|
116
|
-
style: padding
|
|
117
|
-
},
|
|
118
|
-
paddingInlineEnd: {
|
|
119
|
-
style: padding
|
|
120
|
-
},
|
|
121
|
-
paddingBlock: {
|
|
122
|
-
style: padding
|
|
123
|
-
},
|
|
124
|
-
paddingBlockStart: {
|
|
125
|
-
style: padding
|
|
126
|
-
},
|
|
127
|
-
paddingBlockEnd: {
|
|
128
|
-
style: padding
|
|
129
|
-
},
|
|
130
|
-
m: {
|
|
131
|
-
style: margin
|
|
132
|
-
},
|
|
133
|
-
mt: {
|
|
134
|
-
style: margin
|
|
135
|
-
},
|
|
136
|
-
mr: {
|
|
137
|
-
style: margin
|
|
138
|
-
},
|
|
139
|
-
mb: {
|
|
140
|
-
style: margin
|
|
141
|
-
},
|
|
142
|
-
ml: {
|
|
143
|
-
style: margin
|
|
144
|
-
},
|
|
145
|
-
mx: {
|
|
146
|
-
style: margin
|
|
147
|
-
},
|
|
148
|
-
my: {
|
|
149
|
-
style: margin
|
|
150
|
-
},
|
|
151
|
-
margin: {
|
|
152
|
-
style: margin
|
|
153
|
-
},
|
|
154
|
-
marginTop: {
|
|
155
|
-
style: margin
|
|
156
|
-
},
|
|
157
|
-
marginRight: {
|
|
158
|
-
style: margin
|
|
159
|
-
},
|
|
160
|
-
marginBottom: {
|
|
161
|
-
style: margin
|
|
162
|
-
},
|
|
163
|
-
marginLeft: {
|
|
164
|
-
style: margin
|
|
165
|
-
},
|
|
166
|
-
marginX: {
|
|
167
|
-
style: margin
|
|
168
|
-
},
|
|
169
|
-
marginY: {
|
|
170
|
-
style: margin
|
|
171
|
-
},
|
|
172
|
-
marginInline: {
|
|
173
|
-
style: margin
|
|
174
|
-
},
|
|
175
|
-
marginInlineStart: {
|
|
176
|
-
style: margin
|
|
177
|
-
},
|
|
178
|
-
marginInlineEnd: {
|
|
179
|
-
style: margin
|
|
180
|
-
},
|
|
181
|
-
marginBlock: {
|
|
182
|
-
style: margin
|
|
183
|
-
},
|
|
184
|
-
marginBlockStart: {
|
|
185
|
-
style: margin
|
|
186
|
-
},
|
|
187
|
-
marginBlockEnd: {
|
|
188
|
-
style: margin
|
|
189
|
-
},
|
|
190
|
-
// display
|
|
191
|
-
displayPrint: {
|
|
192
|
-
cssProperty: false,
|
|
193
|
-
transform: value => ({
|
|
194
|
-
'@media print': {
|
|
195
|
-
display: value
|
|
196
|
-
}
|
|
197
|
-
})
|
|
198
|
-
},
|
|
199
|
-
display: {},
|
|
200
|
-
overflow: {},
|
|
201
|
-
textOverflow: {},
|
|
202
|
-
visibility: {},
|
|
203
|
-
whiteSpace: {},
|
|
204
|
-
// flexbox
|
|
205
|
-
flexBasis: {},
|
|
206
|
-
flexDirection: {},
|
|
207
|
-
flexWrap: {},
|
|
208
|
-
justifyContent: {},
|
|
209
|
-
alignItems: {},
|
|
210
|
-
alignContent: {},
|
|
211
|
-
order: {},
|
|
212
|
-
flex: {},
|
|
213
|
-
flexGrow: {},
|
|
214
|
-
flexShrink: {},
|
|
215
|
-
alignSelf: {},
|
|
216
|
-
justifyItems: {},
|
|
217
|
-
justifySelf: {},
|
|
218
|
-
// grid
|
|
219
|
-
gap: {
|
|
220
|
-
style: gap
|
|
221
|
-
},
|
|
222
|
-
rowGap: {
|
|
223
|
-
style: rowGap
|
|
224
|
-
},
|
|
225
|
-
columnGap: {
|
|
226
|
-
style: columnGap
|
|
227
|
-
},
|
|
228
|
-
gridColumn: {},
|
|
229
|
-
gridRow: {},
|
|
230
|
-
gridAutoFlow: {},
|
|
231
|
-
gridAutoColumns: {},
|
|
232
|
-
gridAutoRows: {},
|
|
233
|
-
gridTemplateColumns: {},
|
|
234
|
-
gridTemplateRows: {},
|
|
235
|
-
gridTemplateAreas: {},
|
|
236
|
-
gridArea: {},
|
|
237
|
-
// positions
|
|
238
|
-
position: {},
|
|
239
|
-
zIndex: {
|
|
240
|
-
themeKey: 'zIndex'
|
|
241
|
-
},
|
|
242
|
-
top: {},
|
|
243
|
-
right: {},
|
|
244
|
-
bottom: {},
|
|
245
|
-
left: {},
|
|
246
|
-
// shadows
|
|
247
|
-
boxShadow: {
|
|
248
|
-
themeKey: 'shadows'
|
|
249
|
-
},
|
|
250
|
-
// sizing
|
|
251
|
-
width: {
|
|
252
|
-
transform: sizingTransform
|
|
253
|
-
},
|
|
254
|
-
maxWidth: {
|
|
255
|
-
style: maxWidth
|
|
256
|
-
},
|
|
257
|
-
minWidth: {
|
|
258
|
-
transform: sizingTransform
|
|
259
|
-
},
|
|
260
|
-
height: {
|
|
261
|
-
transform: sizingTransform
|
|
262
|
-
},
|
|
263
|
-
maxHeight: {
|
|
264
|
-
transform: sizingTransform
|
|
265
|
-
},
|
|
266
|
-
minHeight: {
|
|
267
|
-
transform: sizingTransform
|
|
268
|
-
},
|
|
269
|
-
boxSizing: {},
|
|
270
|
-
// typography
|
|
271
|
-
fontFamily: {
|
|
272
|
-
themeKey: 'typography'
|
|
273
|
-
},
|
|
274
|
-
fontSize: {
|
|
275
|
-
themeKey: 'typography'
|
|
276
|
-
},
|
|
277
|
-
fontStyle: {
|
|
278
|
-
themeKey: 'typography'
|
|
279
|
-
},
|
|
280
|
-
fontWeight: {
|
|
281
|
-
themeKey: 'typography'
|
|
282
|
-
},
|
|
283
|
-
letterSpacing: {},
|
|
284
|
-
textTransform: {},
|
|
285
|
-
lineHeight: {},
|
|
286
|
-
textAlign: {},
|
|
287
|
-
typography: {
|
|
288
|
-
cssProperty: false,
|
|
289
|
-
themeKey: 'typography'
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
const defaultSxConfig$1 = defaultSxConfig;
|
|
293
|
-
|
|
294
|
-
export { defaultSxConfig$1 as default };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import _extends from '../../../../../../@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/extends.js';
|
|
2
|
-
import _objectWithoutPropertiesLoose from '../../../../../../@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
|
|
3
|
-
import defaultSxConfig from './defaultSxConfig.js';
|
|
4
|
-
import { isPlainObject } from '../../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/deepmerge.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["sx"];
|
|
7
|
-
const splitProps = props => {
|
|
8
|
-
var _props$theme$unstable, _props$theme;
|
|
9
|
-
const result = {
|
|
10
|
-
systemProps: {},
|
|
11
|
-
otherProps: {}
|
|
12
|
-
};
|
|
13
|
-
const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
|
|
14
|
-
Object.keys(props).forEach(prop => {
|
|
15
|
-
if (config[prop]) {
|
|
16
|
-
result.systemProps[prop] = props[prop];
|
|
17
|
-
} else {
|
|
18
|
-
result.otherProps[prop] = props[prop];
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
function extendSxProp(props) {
|
|
24
|
-
const {
|
|
25
|
-
sx: inSx
|
|
26
|
-
} = props,
|
|
27
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
28
|
-
const {
|
|
29
|
-
systemProps,
|
|
30
|
-
otherProps
|
|
31
|
-
} = splitProps(other);
|
|
32
|
-
let finalSx;
|
|
33
|
-
if (Array.isArray(inSx)) {
|
|
34
|
-
finalSx = [systemProps, ...inSx];
|
|
35
|
-
} else if (typeof inSx === 'function') {
|
|
36
|
-
finalSx = (...args) => {
|
|
37
|
-
const result = inSx(...args);
|
|
38
|
-
if (!isPlainObject(result)) {
|
|
39
|
-
return systemProps;
|
|
40
|
-
}
|
|
41
|
-
return _extends({}, systemProps, result);
|
|
42
|
-
};
|
|
43
|
-
} else {
|
|
44
|
-
finalSx = _extends({}, systemProps, inSx);
|
|
45
|
-
}
|
|
46
|
-
return _extends({}, otherProps, {
|
|
47
|
-
sx: finalSx
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { extendSxProp as default };
|