@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import t from "./BasicButtons.js";
|
|
3
|
+
const i = {
|
|
4
|
+
title: "Components/BasicButtons",
|
|
5
|
+
component: t,
|
|
6
|
+
argTypes: {
|
|
7
|
+
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
8
|
+
}
|
|
9
|
+
}, o = (n) => /* @__PURE__ */ r(t, { ...n }), s = o.bind({});
|
|
10
|
+
s.args = {
|
|
11
|
+
label: "Primary Button"
|
|
12
|
+
};
|
|
13
|
+
const a = o.bind({});
|
|
14
|
+
a.args = {
|
|
15
|
+
label: "Secondary Button",
|
|
16
|
+
secondary: !0
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
s as Primary,
|
|
20
|
+
a as Secondary,
|
|
21
|
+
i as default
|
|
22
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as e } from "./components/BasicButtons/BasicButtons.js";
|
|
2
|
+
import { default as r } from "./components/AnotherComponent/AnotherComponent.js";
|
|
3
|
+
export {
|
|
4
|
+
r as AnotherComponent,
|
|
5
|
+
e as BasicButtons
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1706567478",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|
|
@@ -28,10 +28,13 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
-
"
|
|
31
|
+
"devDependencies": {
|
|
32
32
|
"@mui/material": "5.15.0",
|
|
33
33
|
"@emotion/react": "11.11.1",
|
|
34
|
-
"@emotion/styled": "11.11.0"
|
|
34
|
+
"@emotion/styled": "11.11.0",
|
|
35
|
+
"autoprefixer": "10.4.17",
|
|
36
|
+
"postcss": "8.4.33",
|
|
37
|
+
"tailwindcss": "3.4.1"
|
|
35
38
|
},
|
|
36
39
|
"peerDependencies": {
|
|
37
40
|
"@types/react": "18.2.48",
|
package/dist/_virtual/index.js
DELETED
package/dist/_virtual/index2.js
DELETED
package/dist/_virtual/index3.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
3
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for (var key in source) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { _extends as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _setPrototypeOf from './setPrototypeOf.js';
|
|
2
|
-
|
|
3
|
-
function _inheritsLoose(subClass, superClass) {
|
|
4
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
5
|
-
subClass.prototype.constructor = subClass;
|
|
6
|
-
_setPrototypeOf(subClass, superClass);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { _inheritsLoose as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2
|
-
if (source == null) return {};
|
|
3
|
-
var target = {};
|
|
4
|
-
var sourceKeys = Object.keys(source);
|
|
5
|
-
var key, i;
|
|
6
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
7
|
-
key = sourceKeys[i];
|
|
8
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
9
|
-
target[key] = source[key];
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { _objectWithoutPropertiesLoose as default };
|
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import _objectWithoutPropertiesLoose from '../../../../../@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
|
|
2
|
-
import _extends from '../../../../../@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/extends.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import PropTypes from '../../../../../prop-types@15.8.1/node_modules/prop-types/index.js';
|
|
5
|
-
import { clsx } from '../../../../../clsx@2.1.0/node_modules/clsx/dist/clsx.js';
|
|
6
|
-
import styled, { rootShouldForwardProp } from '../styles/styled.js';
|
|
7
|
-
import useThemeProps from '../styles/useThemeProps.js';
|
|
8
|
-
import buttonClasses, { getButtonUtilityClass } from './buttonClasses.js';
|
|
9
|
-
import ButtonGroupContext from '../ButtonGroup/ButtonGroupContext.js';
|
|
10
|
-
import ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext.js';
|
|
11
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
-
import ButtonBase from '../ButtonBase/ButtonBase.js';
|
|
13
|
-
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';
|
|
14
|
-
import { alpha } from '../../../../../@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';
|
|
15
|
-
import resolveProps from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/resolveProps.js';
|
|
16
|
-
import composeClasses from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js';
|
|
17
|
-
|
|
18
|
-
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
19
|
-
const useUtilityClasses = ownerState => {
|
|
20
|
-
const {
|
|
21
|
-
color,
|
|
22
|
-
disableElevation,
|
|
23
|
-
fullWidth,
|
|
24
|
-
size,
|
|
25
|
-
variant,
|
|
26
|
-
classes
|
|
27
|
-
} = ownerState;
|
|
28
|
-
const slots = {
|
|
29
|
-
root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, color === 'inherit' && 'colorInherit', disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
|
|
30
|
-
label: ['label'],
|
|
31
|
-
startIcon: ['startIcon', `iconSize${capitalize(size)}`],
|
|
32
|
-
endIcon: ['endIcon', `iconSize${capitalize(size)}`]
|
|
33
|
-
};
|
|
34
|
-
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
|
35
|
-
return _extends({}, classes, composedClasses);
|
|
36
|
-
};
|
|
37
|
-
const commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {
|
|
38
|
-
'& > *:nth-of-type(1)': {
|
|
39
|
-
fontSize: 18
|
|
40
|
-
}
|
|
41
|
-
}, ownerState.size === 'medium' && {
|
|
42
|
-
'& > *:nth-of-type(1)': {
|
|
43
|
-
fontSize: 20
|
|
44
|
-
}
|
|
45
|
-
}, ownerState.size === 'large' && {
|
|
46
|
-
'& > *:nth-of-type(1)': {
|
|
47
|
-
fontSize: 22
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
const ButtonRoot = styled(ButtonBase, {
|
|
51
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
52
|
-
name: 'MuiButton',
|
|
53
|
-
slot: 'Root',
|
|
54
|
-
overridesResolver: (props, styles) => {
|
|
55
|
-
const {
|
|
56
|
-
ownerState
|
|
57
|
-
} = props;
|
|
58
|
-
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
|
59
|
-
}
|
|
60
|
-
})(({
|
|
61
|
-
theme,
|
|
62
|
-
ownerState
|
|
63
|
-
}) => {
|
|
64
|
-
var _theme$palette$getCon, _theme$palette;
|
|
65
|
-
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
66
|
-
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
|
67
|
-
return _extends({}, theme.typography.button, {
|
|
68
|
-
minWidth: 64,
|
|
69
|
-
padding: '6px 16px',
|
|
70
|
-
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
71
|
-
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
72
|
-
duration: theme.transitions.duration.short
|
|
73
|
-
}),
|
|
74
|
-
'&:hover': _extends({
|
|
75
|
-
textDecoration: 'none',
|
|
76
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
77
|
-
// Reset on touch devices, it doesn't add specificity
|
|
78
|
-
'@media (hover: none)': {
|
|
79
|
-
backgroundColor: 'transparent'
|
|
80
|
-
}
|
|
81
|
-
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
82
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
83
|
-
// Reset on touch devices, it doesn't add specificity
|
|
84
|
-
'@media (hover: none)': {
|
|
85
|
-
backgroundColor: 'transparent'
|
|
86
|
-
}
|
|
87
|
-
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
88
|
-
border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
|
|
89
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
90
|
-
// Reset on touch devices, it doesn't add specificity
|
|
91
|
-
'@media (hover: none)': {
|
|
92
|
-
backgroundColor: 'transparent'
|
|
93
|
-
}
|
|
94
|
-
}, ownerState.variant === 'contained' && {
|
|
95
|
-
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
96
|
-
boxShadow: (theme.vars || theme).shadows[4],
|
|
97
|
-
// Reset on touch devices, it doesn't add specificity
|
|
98
|
-
'@media (hover: none)': {
|
|
99
|
-
boxShadow: (theme.vars || theme).shadows[2],
|
|
100
|
-
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
101
|
-
}
|
|
102
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
103
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
104
|
-
// Reset on touch devices, it doesn't add specificity
|
|
105
|
-
'@media (hover: none)': {
|
|
106
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
107
|
-
}
|
|
108
|
-
}),
|
|
109
|
-
'&:active': _extends({}, ownerState.variant === 'contained' && {
|
|
110
|
-
boxShadow: (theme.vars || theme).shadows[8]
|
|
111
|
-
}),
|
|
112
|
-
[`&.${buttonClasses.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
|
|
113
|
-
boxShadow: (theme.vars || theme).shadows[6]
|
|
114
|
-
}),
|
|
115
|
-
[`&.${buttonClasses.disabled}`]: _extends({
|
|
116
|
-
color: (theme.vars || theme).palette.action.disabled
|
|
117
|
-
}, ownerState.variant === 'outlined' && {
|
|
118
|
-
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
119
|
-
}, ownerState.variant === 'contained' && {
|
|
120
|
-
color: (theme.vars || theme).palette.action.disabled,
|
|
121
|
-
boxShadow: (theme.vars || theme).shadows[0],
|
|
122
|
-
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
123
|
-
})
|
|
124
|
-
}, ownerState.variant === 'text' && {
|
|
125
|
-
padding: '6px 8px'
|
|
126
|
-
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
127
|
-
color: (theme.vars || theme).palette[ownerState.color].main
|
|
128
|
-
}, ownerState.variant === 'outlined' && {
|
|
129
|
-
padding: '5px 15px',
|
|
130
|
-
border: '1px solid currentColor'
|
|
131
|
-
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
132
|
-
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
133
|
-
border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
|
|
134
|
-
}, ownerState.variant === 'contained' && {
|
|
135
|
-
color: theme.vars ?
|
|
136
|
-
// this is safe because grey does not change between default light/dark mode
|
|
137
|
-
theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
|
138
|
-
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
|
139
|
-
boxShadow: (theme.vars || theme).shadows[2]
|
|
140
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
141
|
-
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
142
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
143
|
-
}, ownerState.color === 'inherit' && {
|
|
144
|
-
color: 'inherit',
|
|
145
|
-
borderColor: 'currentColor'
|
|
146
|
-
}, ownerState.size === 'small' && ownerState.variant === 'text' && {
|
|
147
|
-
padding: '4px 5px',
|
|
148
|
-
fontSize: theme.typography.pxToRem(13)
|
|
149
|
-
}, ownerState.size === 'large' && ownerState.variant === 'text' && {
|
|
150
|
-
padding: '8px 11px',
|
|
151
|
-
fontSize: theme.typography.pxToRem(15)
|
|
152
|
-
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
|
153
|
-
padding: '3px 9px',
|
|
154
|
-
fontSize: theme.typography.pxToRem(13)
|
|
155
|
-
}, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
|
|
156
|
-
padding: '7px 21px',
|
|
157
|
-
fontSize: theme.typography.pxToRem(15)
|
|
158
|
-
}, ownerState.size === 'small' && ownerState.variant === 'contained' && {
|
|
159
|
-
padding: '4px 10px',
|
|
160
|
-
fontSize: theme.typography.pxToRem(13)
|
|
161
|
-
}, ownerState.size === 'large' && ownerState.variant === 'contained' && {
|
|
162
|
-
padding: '8px 22px',
|
|
163
|
-
fontSize: theme.typography.pxToRem(15)
|
|
164
|
-
}, ownerState.fullWidth && {
|
|
165
|
-
width: '100%'
|
|
166
|
-
});
|
|
167
|
-
}, ({
|
|
168
|
-
ownerState
|
|
169
|
-
}) => ownerState.disableElevation && {
|
|
170
|
-
boxShadow: 'none',
|
|
171
|
-
'&:hover': {
|
|
172
|
-
boxShadow: 'none'
|
|
173
|
-
},
|
|
174
|
-
[`&.${buttonClasses.focusVisible}`]: {
|
|
175
|
-
boxShadow: 'none'
|
|
176
|
-
},
|
|
177
|
-
'&:active': {
|
|
178
|
-
boxShadow: 'none'
|
|
179
|
-
},
|
|
180
|
-
[`&.${buttonClasses.disabled}`]: {
|
|
181
|
-
boxShadow: 'none'
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
const ButtonStartIcon = styled('span', {
|
|
185
|
-
name: 'MuiButton',
|
|
186
|
-
slot: 'StartIcon',
|
|
187
|
-
overridesResolver: (props, styles) => {
|
|
188
|
-
const {
|
|
189
|
-
ownerState
|
|
190
|
-
} = props;
|
|
191
|
-
return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
|
192
|
-
}
|
|
193
|
-
})(({
|
|
194
|
-
ownerState
|
|
195
|
-
}) => _extends({
|
|
196
|
-
display: 'inherit',
|
|
197
|
-
marginRight: 8,
|
|
198
|
-
marginLeft: -4
|
|
199
|
-
}, ownerState.size === 'small' && {
|
|
200
|
-
marginLeft: -2
|
|
201
|
-
}, commonIconStyles(ownerState)));
|
|
202
|
-
const ButtonEndIcon = styled('span', {
|
|
203
|
-
name: 'MuiButton',
|
|
204
|
-
slot: 'EndIcon',
|
|
205
|
-
overridesResolver: (props, styles) => {
|
|
206
|
-
const {
|
|
207
|
-
ownerState
|
|
208
|
-
} = props;
|
|
209
|
-
return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
|
210
|
-
}
|
|
211
|
-
})(({
|
|
212
|
-
ownerState
|
|
213
|
-
}) => _extends({
|
|
214
|
-
display: 'inherit',
|
|
215
|
-
marginRight: -4,
|
|
216
|
-
marginLeft: 8
|
|
217
|
-
}, ownerState.size === 'small' && {
|
|
218
|
-
marginRight: -2
|
|
219
|
-
}, commonIconStyles(ownerState)));
|
|
220
|
-
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
221
|
-
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
222
|
-
const contextProps = React.useContext(ButtonGroupContext);
|
|
223
|
-
const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);
|
|
224
|
-
const resolvedProps = resolveProps(contextProps, inProps);
|
|
225
|
-
const props = useThemeProps({
|
|
226
|
-
props: resolvedProps,
|
|
227
|
-
name: 'MuiButton'
|
|
228
|
-
});
|
|
229
|
-
const {
|
|
230
|
-
children,
|
|
231
|
-
color = 'primary',
|
|
232
|
-
component = 'button',
|
|
233
|
-
className,
|
|
234
|
-
disabled = false,
|
|
235
|
-
disableElevation = false,
|
|
236
|
-
disableFocusRipple = false,
|
|
237
|
-
endIcon: endIconProp,
|
|
238
|
-
focusVisibleClassName,
|
|
239
|
-
fullWidth = false,
|
|
240
|
-
size = 'medium',
|
|
241
|
-
startIcon: startIconProp,
|
|
242
|
-
type,
|
|
243
|
-
variant = 'text'
|
|
244
|
-
} = props,
|
|
245
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
246
|
-
const ownerState = _extends({}, props, {
|
|
247
|
-
color,
|
|
248
|
-
component,
|
|
249
|
-
disabled,
|
|
250
|
-
disableElevation,
|
|
251
|
-
disableFocusRipple,
|
|
252
|
-
fullWidth,
|
|
253
|
-
size,
|
|
254
|
-
type,
|
|
255
|
-
variant
|
|
256
|
-
});
|
|
257
|
-
const classes = useUtilityClasses(ownerState);
|
|
258
|
-
const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
|
|
259
|
-
className: classes.startIcon,
|
|
260
|
-
ownerState: ownerState,
|
|
261
|
-
children: startIconProp
|
|
262
|
-
});
|
|
263
|
-
const endIcon = endIconProp && /*#__PURE__*/jsx(ButtonEndIcon, {
|
|
264
|
-
className: classes.endIcon,
|
|
265
|
-
ownerState: ownerState,
|
|
266
|
-
children: endIconProp
|
|
267
|
-
});
|
|
268
|
-
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
|
269
|
-
return /*#__PURE__*/jsxs(ButtonRoot, _extends({
|
|
270
|
-
ownerState: ownerState,
|
|
271
|
-
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
|
272
|
-
component: component,
|
|
273
|
-
disabled: disabled,
|
|
274
|
-
focusRipple: !disableFocusRipple,
|
|
275
|
-
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
276
|
-
ref: ref,
|
|
277
|
-
type: type
|
|
278
|
-
}, other, {
|
|
279
|
-
classes: classes,
|
|
280
|
-
children: [startIcon, children, endIcon]
|
|
281
|
-
}));
|
|
282
|
-
});
|
|
283
|
-
process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
|
|
284
|
-
// ----------------------------- Warning --------------------------------
|
|
285
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
286
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
287
|
-
// ----------------------------------------------------------------------
|
|
288
|
-
/**
|
|
289
|
-
* The content of the component.
|
|
290
|
-
*/
|
|
291
|
-
children: PropTypes.node,
|
|
292
|
-
/**
|
|
293
|
-
* Override or extend the styles applied to the component.
|
|
294
|
-
*/
|
|
295
|
-
classes: PropTypes.object,
|
|
296
|
-
/**
|
|
297
|
-
* @ignore
|
|
298
|
-
*/
|
|
299
|
-
className: PropTypes.string,
|
|
300
|
-
/**
|
|
301
|
-
* The color of the component.
|
|
302
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
303
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
304
|
-
* @default 'primary'
|
|
305
|
-
*/
|
|
306
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
|
|
307
|
-
/**
|
|
308
|
-
* The component used for the root node.
|
|
309
|
-
* Either a string to use a HTML element or a component.
|
|
310
|
-
*/
|
|
311
|
-
component: PropTypes.elementType,
|
|
312
|
-
/**
|
|
313
|
-
* If `true`, the component is disabled.
|
|
314
|
-
* @default false
|
|
315
|
-
*/
|
|
316
|
-
disabled: PropTypes.bool,
|
|
317
|
-
/**
|
|
318
|
-
* If `true`, no elevation is used.
|
|
319
|
-
* @default false
|
|
320
|
-
*/
|
|
321
|
-
disableElevation: PropTypes.bool,
|
|
322
|
-
/**
|
|
323
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
324
|
-
* @default false
|
|
325
|
-
*/
|
|
326
|
-
disableFocusRipple: PropTypes.bool,
|
|
327
|
-
/**
|
|
328
|
-
* If `true`, the ripple effect is disabled.
|
|
329
|
-
*
|
|
330
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
331
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
332
|
-
* @default false
|
|
333
|
-
*/
|
|
334
|
-
disableRipple: PropTypes.bool,
|
|
335
|
-
/**
|
|
336
|
-
* Element placed after the children.
|
|
337
|
-
*/
|
|
338
|
-
endIcon: PropTypes.node,
|
|
339
|
-
/**
|
|
340
|
-
* @ignore
|
|
341
|
-
*/
|
|
342
|
-
focusVisibleClassName: PropTypes.string,
|
|
343
|
-
/**
|
|
344
|
-
* If `true`, the button will take up the full width of its container.
|
|
345
|
-
* @default false
|
|
346
|
-
*/
|
|
347
|
-
fullWidth: PropTypes.bool,
|
|
348
|
-
/**
|
|
349
|
-
* The URL to link to when the button is clicked.
|
|
350
|
-
* If defined, an `a` element will be used as the root node.
|
|
351
|
-
*/
|
|
352
|
-
href: PropTypes.string,
|
|
353
|
-
/**
|
|
354
|
-
* The size of the component.
|
|
355
|
-
* `small` is equivalent to the dense button styling.
|
|
356
|
-
* @default 'medium'
|
|
357
|
-
*/
|
|
358
|
-
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
|
|
359
|
-
/**
|
|
360
|
-
* Element placed before the children.
|
|
361
|
-
*/
|
|
362
|
-
startIcon: PropTypes.node,
|
|
363
|
-
/**
|
|
364
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
365
|
-
*/
|
|
366
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
367
|
-
/**
|
|
368
|
-
* @ignore
|
|
369
|
-
*/
|
|
370
|
-
type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),
|
|
371
|
-
/**
|
|
372
|
-
* The variant to use.
|
|
373
|
-
* @default 'text'
|
|
374
|
-
*/
|
|
375
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
376
|
-
} : void 0;
|
|
377
|
-
const Button$1 = Button;
|
|
378
|
-
|
|
379
|
-
export { Button$1 as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import generateUtilityClasses from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js';
|
|
2
|
-
import generateUtilityClass from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js';
|
|
3
|
-
|
|
4
|
-
function getButtonUtilityClass(slot) {
|
|
5
|
-
return generateUtilityClass('MuiButton', slot);
|
|
6
|
-
}
|
|
7
|
-
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
|
8
|
-
const buttonClasses$1 = buttonClasses;
|
|
9
|
-
|
|
10
|
-
export { buttonClasses$1 as default, getButtonUtilityClass };
|