@cgi-learning-hub/ui 0.0.1-dev.1706552824 → 0.0.1-dev.1706708255
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/Button-t2XOOBeu.js +5460 -0
- package/dist/assets/index.css +1 -0
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
- package/dist/components/AnotherComponent/AnotherComponent.js +5 -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 +197 -13
- package/dist/components/BasicButtons/BasicButtons.stories.js +22 -0
- package/dist/components/BasicButtons/index.js +4 -0
- package/dist/components/Button/Button.d.ts +11 -0
- package/dist/components/Button/Button.js +35 -0
- package/dist/components/Button/Button.stories.d.ts +6 -0
- package/dist/components/Button/Button.stories.js +21 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +8 -0
- package/dist/index.js +9 -1
- package/dist/vite-env.d.js +1 -0
- package/package.json +7 -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,477 +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 * 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 from '../styles/styled.js';
|
|
7
|
-
import useThemeProps from '../styles/useThemeProps.js';
|
|
8
|
-
import TouchRipple from './TouchRipple.js';
|
|
9
|
-
import buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses.js';
|
|
10
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
|
-
import useForkRef from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js';
|
|
12
|
-
import useIsFocusVisible from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useIsFocusVisible.js';
|
|
13
|
-
import useEventCallback from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js';
|
|
14
|
-
import refType from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/refType.js';
|
|
15
|
-
import elementTypeAcceptingRef from '../../../../../@mui_utils@5.15.6_@types_react@18.2.48_react@18.2.0/node_modules/@mui/utils/esm/elementTypeAcceptingRef.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 = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
19
|
-
const useUtilityClasses = ownerState => {
|
|
20
|
-
const {
|
|
21
|
-
disabled,
|
|
22
|
-
focusVisible,
|
|
23
|
-
focusVisibleClassName,
|
|
24
|
-
classes
|
|
25
|
-
} = ownerState;
|
|
26
|
-
const slots = {
|
|
27
|
-
root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']
|
|
28
|
-
};
|
|
29
|
-
const composedClasses = composeClasses(slots, getButtonBaseUtilityClass, classes);
|
|
30
|
-
if (focusVisible && focusVisibleClassName) {
|
|
31
|
-
composedClasses.root += ` ${focusVisibleClassName}`;
|
|
32
|
-
}
|
|
33
|
-
return composedClasses;
|
|
34
|
-
};
|
|
35
|
-
const ButtonBaseRoot = styled('button', {
|
|
36
|
-
name: 'MuiButtonBase',
|
|
37
|
-
slot: 'Root',
|
|
38
|
-
overridesResolver: (props, styles) => styles.root
|
|
39
|
-
})({
|
|
40
|
-
display: 'inline-flex',
|
|
41
|
-
alignItems: 'center',
|
|
42
|
-
justifyContent: 'center',
|
|
43
|
-
position: 'relative',
|
|
44
|
-
boxSizing: 'border-box',
|
|
45
|
-
WebkitTapHighlightColor: 'transparent',
|
|
46
|
-
backgroundColor: 'transparent',
|
|
47
|
-
// Reset default value
|
|
48
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
49
|
-
outline: 0,
|
|
50
|
-
border: 0,
|
|
51
|
-
margin: 0,
|
|
52
|
-
// Remove the margin in Safari
|
|
53
|
-
borderRadius: 0,
|
|
54
|
-
padding: 0,
|
|
55
|
-
// Remove the padding in Firefox
|
|
56
|
-
cursor: 'pointer',
|
|
57
|
-
userSelect: 'none',
|
|
58
|
-
verticalAlign: 'middle',
|
|
59
|
-
MozAppearance: 'none',
|
|
60
|
-
// Reset
|
|
61
|
-
WebkitAppearance: 'none',
|
|
62
|
-
// Reset
|
|
63
|
-
textDecoration: 'none',
|
|
64
|
-
// So we take precedent over the style of a native <a /> element.
|
|
65
|
-
color: 'inherit',
|
|
66
|
-
'&::-moz-focus-inner': {
|
|
67
|
-
borderStyle: 'none' // Remove Firefox dotted outline.
|
|
68
|
-
},
|
|
69
|
-
[`&.${buttonBaseClasses.disabled}`]: {
|
|
70
|
-
pointerEvents: 'none',
|
|
71
|
-
// Disable link interactions
|
|
72
|
-
cursor: 'default'
|
|
73
|
-
},
|
|
74
|
-
'@media print': {
|
|
75
|
-
colorAdjust: 'exact'
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* `ButtonBase` contains as few styles as possible.
|
|
81
|
-
* It aims to be a simple building block for creating a button.
|
|
82
|
-
* It contains a load of style reset and some focus/ripple logic.
|
|
83
|
-
*/
|
|
84
|
-
const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {
|
|
85
|
-
const props = useThemeProps({
|
|
86
|
-
props: inProps,
|
|
87
|
-
name: 'MuiButtonBase'
|
|
88
|
-
});
|
|
89
|
-
const {
|
|
90
|
-
action,
|
|
91
|
-
centerRipple = false,
|
|
92
|
-
children,
|
|
93
|
-
className,
|
|
94
|
-
component = 'button',
|
|
95
|
-
disabled = false,
|
|
96
|
-
disableRipple = false,
|
|
97
|
-
disableTouchRipple = false,
|
|
98
|
-
focusRipple = false,
|
|
99
|
-
LinkComponent = 'a',
|
|
100
|
-
onBlur,
|
|
101
|
-
onClick,
|
|
102
|
-
onContextMenu,
|
|
103
|
-
onDragLeave,
|
|
104
|
-
onFocus,
|
|
105
|
-
onFocusVisible,
|
|
106
|
-
onKeyDown,
|
|
107
|
-
onKeyUp,
|
|
108
|
-
onMouseDown,
|
|
109
|
-
onMouseLeave,
|
|
110
|
-
onMouseUp,
|
|
111
|
-
onTouchEnd,
|
|
112
|
-
onTouchMove,
|
|
113
|
-
onTouchStart,
|
|
114
|
-
tabIndex = 0,
|
|
115
|
-
TouchRippleProps,
|
|
116
|
-
touchRippleRef,
|
|
117
|
-
type
|
|
118
|
-
} = props,
|
|
119
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
120
|
-
const buttonRef = React.useRef(null);
|
|
121
|
-
const rippleRef = React.useRef(null);
|
|
122
|
-
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
123
|
-
const {
|
|
124
|
-
isFocusVisibleRef,
|
|
125
|
-
onFocus: handleFocusVisible,
|
|
126
|
-
onBlur: handleBlurVisible,
|
|
127
|
-
ref: focusVisibleRef
|
|
128
|
-
} = useIsFocusVisible();
|
|
129
|
-
const [focusVisible, setFocusVisible] = React.useState(false);
|
|
130
|
-
if (disabled && focusVisible) {
|
|
131
|
-
setFocusVisible(false);
|
|
132
|
-
}
|
|
133
|
-
React.useImperativeHandle(action, () => ({
|
|
134
|
-
focusVisible: () => {
|
|
135
|
-
setFocusVisible(true);
|
|
136
|
-
buttonRef.current.focus();
|
|
137
|
-
}
|
|
138
|
-
}), []);
|
|
139
|
-
const [mountedState, setMountedState] = React.useState(false);
|
|
140
|
-
React.useEffect(() => {
|
|
141
|
-
setMountedState(true);
|
|
142
|
-
}, []);
|
|
143
|
-
const enableTouchRipple = mountedState && !disableRipple && !disabled;
|
|
144
|
-
React.useEffect(() => {
|
|
145
|
-
if (focusVisible && focusRipple && !disableRipple && mountedState) {
|
|
146
|
-
rippleRef.current.pulsate();
|
|
147
|
-
}
|
|
148
|
-
}, [disableRipple, focusRipple, focusVisible, mountedState]);
|
|
149
|
-
function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
|
|
150
|
-
return useEventCallback(event => {
|
|
151
|
-
if (eventCallback) {
|
|
152
|
-
eventCallback(event);
|
|
153
|
-
}
|
|
154
|
-
const ignore = skipRippleAction;
|
|
155
|
-
if (!ignore && rippleRef.current) {
|
|
156
|
-
rippleRef.current[rippleAction](event);
|
|
157
|
-
}
|
|
158
|
-
return true;
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
const handleMouseDown = useRippleHandler('start', onMouseDown);
|
|
162
|
-
const handleContextMenu = useRippleHandler('stop', onContextMenu);
|
|
163
|
-
const handleDragLeave = useRippleHandler('stop', onDragLeave);
|
|
164
|
-
const handleMouseUp = useRippleHandler('stop', onMouseUp);
|
|
165
|
-
const handleMouseLeave = useRippleHandler('stop', event => {
|
|
166
|
-
if (focusVisible) {
|
|
167
|
-
event.preventDefault();
|
|
168
|
-
}
|
|
169
|
-
if (onMouseLeave) {
|
|
170
|
-
onMouseLeave(event);
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
const handleTouchStart = useRippleHandler('start', onTouchStart);
|
|
174
|
-
const handleTouchEnd = useRippleHandler('stop', onTouchEnd);
|
|
175
|
-
const handleTouchMove = useRippleHandler('stop', onTouchMove);
|
|
176
|
-
const handleBlur = useRippleHandler('stop', event => {
|
|
177
|
-
handleBlurVisible(event);
|
|
178
|
-
if (isFocusVisibleRef.current === false) {
|
|
179
|
-
setFocusVisible(false);
|
|
180
|
-
}
|
|
181
|
-
if (onBlur) {
|
|
182
|
-
onBlur(event);
|
|
183
|
-
}
|
|
184
|
-
}, false);
|
|
185
|
-
const handleFocus = useEventCallback(event => {
|
|
186
|
-
// Fix for https://github.com/facebook/react/issues/7769
|
|
187
|
-
if (!buttonRef.current) {
|
|
188
|
-
buttonRef.current = event.currentTarget;
|
|
189
|
-
}
|
|
190
|
-
handleFocusVisible(event);
|
|
191
|
-
if (isFocusVisibleRef.current === true) {
|
|
192
|
-
setFocusVisible(true);
|
|
193
|
-
if (onFocusVisible) {
|
|
194
|
-
onFocusVisible(event);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
if (onFocus) {
|
|
198
|
-
onFocus(event);
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
const isNonNativeButton = () => {
|
|
202
|
-
const button = buttonRef.current;
|
|
203
|
-
return component && component !== 'button' && !(button.tagName === 'A' && button.href);
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* IE11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat
|
|
208
|
-
*/
|
|
209
|
-
const keydownRef = React.useRef(false);
|
|
210
|
-
const handleKeyDown = useEventCallback(event => {
|
|
211
|
-
// Check if key is already down to avoid repeats being counted as multiple activations
|
|
212
|
-
if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {
|
|
213
|
-
keydownRef.current = true;
|
|
214
|
-
rippleRef.current.stop(event, () => {
|
|
215
|
-
rippleRef.current.start(event);
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {
|
|
219
|
-
event.preventDefault();
|
|
220
|
-
}
|
|
221
|
-
if (onKeyDown) {
|
|
222
|
-
onKeyDown(event);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// Keyboard accessibility for non interactive elements
|
|
226
|
-
if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {
|
|
227
|
-
event.preventDefault();
|
|
228
|
-
if (onClick) {
|
|
229
|
-
onClick(event);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
const handleKeyUp = useEventCallback(event => {
|
|
234
|
-
// calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
|
|
235
|
-
// https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0
|
|
236
|
-
if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
|
|
237
|
-
keydownRef.current = false;
|
|
238
|
-
rippleRef.current.stop(event, () => {
|
|
239
|
-
rippleRef.current.pulsate(event);
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
if (onKeyUp) {
|
|
243
|
-
onKeyUp(event);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// Keyboard accessibility for non interactive elements
|
|
247
|
-
if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {
|
|
248
|
-
onClick(event);
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
let ComponentProp = component;
|
|
252
|
-
if (ComponentProp === 'button' && (other.href || other.to)) {
|
|
253
|
-
ComponentProp = LinkComponent;
|
|
254
|
-
}
|
|
255
|
-
const buttonProps = {};
|
|
256
|
-
if (ComponentProp === 'button') {
|
|
257
|
-
buttonProps.type = type === undefined ? 'button' : type;
|
|
258
|
-
buttonProps.disabled = disabled;
|
|
259
|
-
} else {
|
|
260
|
-
if (!other.href && !other.to) {
|
|
261
|
-
buttonProps.role = 'button';
|
|
262
|
-
}
|
|
263
|
-
if (disabled) {
|
|
264
|
-
buttonProps['aria-disabled'] = disabled;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
const handleRef = useForkRef(ref, focusVisibleRef, buttonRef);
|
|
268
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
269
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
270
|
-
React.useEffect(() => {
|
|
271
|
-
if (enableTouchRipple && !rippleRef.current) {
|
|
272
|
-
console.error(['MUI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\n'));
|
|
273
|
-
}
|
|
274
|
-
}, [enableTouchRipple]);
|
|
275
|
-
}
|
|
276
|
-
const ownerState = _extends({}, props, {
|
|
277
|
-
centerRipple,
|
|
278
|
-
component,
|
|
279
|
-
disabled,
|
|
280
|
-
disableRipple,
|
|
281
|
-
disableTouchRipple,
|
|
282
|
-
focusRipple,
|
|
283
|
-
tabIndex,
|
|
284
|
-
focusVisible
|
|
285
|
-
});
|
|
286
|
-
const classes = useUtilityClasses(ownerState);
|
|
287
|
-
return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends({
|
|
288
|
-
as: ComponentProp,
|
|
289
|
-
className: clsx(classes.root, className),
|
|
290
|
-
ownerState: ownerState,
|
|
291
|
-
onBlur: handleBlur,
|
|
292
|
-
onClick: onClick,
|
|
293
|
-
onContextMenu: handleContextMenu,
|
|
294
|
-
onFocus: handleFocus,
|
|
295
|
-
onKeyDown: handleKeyDown,
|
|
296
|
-
onKeyUp: handleKeyUp,
|
|
297
|
-
onMouseDown: handleMouseDown,
|
|
298
|
-
onMouseLeave: handleMouseLeave,
|
|
299
|
-
onMouseUp: handleMouseUp,
|
|
300
|
-
onDragLeave: handleDragLeave,
|
|
301
|
-
onTouchEnd: handleTouchEnd,
|
|
302
|
-
onTouchMove: handleTouchMove,
|
|
303
|
-
onTouchStart: handleTouchStart,
|
|
304
|
-
ref: handleRef,
|
|
305
|
-
tabIndex: disabled ? -1 : tabIndex,
|
|
306
|
-
type: type
|
|
307
|
-
}, buttonProps, other, {
|
|
308
|
-
children: [children, enableTouchRipple ?
|
|
309
|
-
/*#__PURE__*/
|
|
310
|
-
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
311
|
-
jsx(TouchRipple, _extends({
|
|
312
|
-
ref: handleRippleRef,
|
|
313
|
-
center: centerRipple
|
|
314
|
-
}, TouchRippleProps)) : null]
|
|
315
|
-
}));
|
|
316
|
-
});
|
|
317
|
-
process.env.NODE_ENV !== "production" ? ButtonBase.propTypes /* remove-proptypes */ = {
|
|
318
|
-
// ----------------------------- Warning --------------------------------
|
|
319
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
320
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
321
|
-
// ----------------------------------------------------------------------
|
|
322
|
-
/**
|
|
323
|
-
* A ref for imperative actions.
|
|
324
|
-
* It currently only supports `focusVisible()` action.
|
|
325
|
-
*/
|
|
326
|
-
action: refType,
|
|
327
|
-
/**
|
|
328
|
-
* If `true`, the ripples are centered.
|
|
329
|
-
* They won't start at the cursor interaction position.
|
|
330
|
-
* @default false
|
|
331
|
-
*/
|
|
332
|
-
centerRipple: PropTypes.bool,
|
|
333
|
-
/**
|
|
334
|
-
* The content of the component.
|
|
335
|
-
*/
|
|
336
|
-
children: PropTypes.node,
|
|
337
|
-
/**
|
|
338
|
-
* Override or extend the styles applied to the component.
|
|
339
|
-
*/
|
|
340
|
-
classes: PropTypes.object,
|
|
341
|
-
/**
|
|
342
|
-
* @ignore
|
|
343
|
-
*/
|
|
344
|
-
className: PropTypes.string,
|
|
345
|
-
/**
|
|
346
|
-
* The component used for the root node.
|
|
347
|
-
* Either a string to use a HTML element or a component.
|
|
348
|
-
*/
|
|
349
|
-
component: elementTypeAcceptingRef,
|
|
350
|
-
/**
|
|
351
|
-
* If `true`, the component is disabled.
|
|
352
|
-
* @default false
|
|
353
|
-
*/
|
|
354
|
-
disabled: PropTypes.bool,
|
|
355
|
-
/**
|
|
356
|
-
* If `true`, the ripple effect is disabled.
|
|
357
|
-
*
|
|
358
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
359
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
360
|
-
* @default false
|
|
361
|
-
*/
|
|
362
|
-
disableRipple: PropTypes.bool,
|
|
363
|
-
/**
|
|
364
|
-
* If `true`, the touch ripple effect is disabled.
|
|
365
|
-
* @default false
|
|
366
|
-
*/
|
|
367
|
-
disableTouchRipple: PropTypes.bool,
|
|
368
|
-
/**
|
|
369
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
370
|
-
* @default false
|
|
371
|
-
*/
|
|
372
|
-
focusRipple: PropTypes.bool,
|
|
373
|
-
/**
|
|
374
|
-
* This prop can help identify which element has keyboard focus.
|
|
375
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
376
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
377
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
378
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
379
|
-
* if needed.
|
|
380
|
-
*/
|
|
381
|
-
focusVisibleClassName: PropTypes.string,
|
|
382
|
-
/**
|
|
383
|
-
* @ignore
|
|
384
|
-
*/
|
|
385
|
-
href: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
386
|
-
/**
|
|
387
|
-
* The component used to render a link when the `href` prop is provided.
|
|
388
|
-
* @default 'a'
|
|
389
|
-
*/
|
|
390
|
-
LinkComponent: PropTypes.elementType,
|
|
391
|
-
/**
|
|
392
|
-
* @ignore
|
|
393
|
-
*/
|
|
394
|
-
onBlur: PropTypes.func,
|
|
395
|
-
/**
|
|
396
|
-
* @ignore
|
|
397
|
-
*/
|
|
398
|
-
onClick: PropTypes.func,
|
|
399
|
-
/**
|
|
400
|
-
* @ignore
|
|
401
|
-
*/
|
|
402
|
-
onContextMenu: PropTypes.func,
|
|
403
|
-
/**
|
|
404
|
-
* @ignore
|
|
405
|
-
*/
|
|
406
|
-
onDragLeave: PropTypes.func,
|
|
407
|
-
/**
|
|
408
|
-
* @ignore
|
|
409
|
-
*/
|
|
410
|
-
onFocus: PropTypes.func,
|
|
411
|
-
/**
|
|
412
|
-
* Callback fired when the component is focused with a keyboard.
|
|
413
|
-
* We trigger a `onFocus` callback too.
|
|
414
|
-
*/
|
|
415
|
-
onFocusVisible: PropTypes.func,
|
|
416
|
-
/**
|
|
417
|
-
* @ignore
|
|
418
|
-
*/
|
|
419
|
-
onKeyDown: PropTypes.func,
|
|
420
|
-
/**
|
|
421
|
-
* @ignore
|
|
422
|
-
*/
|
|
423
|
-
onKeyUp: PropTypes.func,
|
|
424
|
-
/**
|
|
425
|
-
* @ignore
|
|
426
|
-
*/
|
|
427
|
-
onMouseDown: PropTypes.func,
|
|
428
|
-
/**
|
|
429
|
-
* @ignore
|
|
430
|
-
*/
|
|
431
|
-
onMouseLeave: PropTypes.func,
|
|
432
|
-
/**
|
|
433
|
-
* @ignore
|
|
434
|
-
*/
|
|
435
|
-
onMouseUp: PropTypes.func,
|
|
436
|
-
/**
|
|
437
|
-
* @ignore
|
|
438
|
-
*/
|
|
439
|
-
onTouchEnd: PropTypes.func,
|
|
440
|
-
/**
|
|
441
|
-
* @ignore
|
|
442
|
-
*/
|
|
443
|
-
onTouchMove: PropTypes.func,
|
|
444
|
-
/**
|
|
445
|
-
* @ignore
|
|
446
|
-
*/
|
|
447
|
-
onTouchStart: PropTypes.func,
|
|
448
|
-
/**
|
|
449
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
450
|
-
*/
|
|
451
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
452
|
-
/**
|
|
453
|
-
* @default 0
|
|
454
|
-
*/
|
|
455
|
-
tabIndex: PropTypes.number,
|
|
456
|
-
/**
|
|
457
|
-
* Props applied to the `TouchRipple` element.
|
|
458
|
-
*/
|
|
459
|
-
TouchRippleProps: PropTypes.object,
|
|
460
|
-
/**
|
|
461
|
-
* A ref that points to the `TouchRipple` element.
|
|
462
|
-
*/
|
|
463
|
-
touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
464
|
-
current: PropTypes.shape({
|
|
465
|
-
pulsate: PropTypes.func.isRequired,
|
|
466
|
-
start: PropTypes.func.isRequired,
|
|
467
|
-
stop: PropTypes.func.isRequired
|
|
468
|
-
})
|
|
469
|
-
})]),
|
|
470
|
-
/**
|
|
471
|
-
* @ignore
|
|
472
|
-
*/
|
|
473
|
-
type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string])
|
|
474
|
-
} : void 0;
|
|
475
|
-
const ButtonBase$1 = ButtonBase;
|
|
476
|
-
|
|
477
|
-
export { ButtonBaseRoot, ButtonBase$1 as default };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import PropTypes from '../../../../../prop-types@15.8.1/node_modules/prop-types/index.js';
|
|
3
|
-
import { clsx } from '../../../../../clsx@2.1.0/node_modules/clsx/dist/clsx.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function Ripple(props) {
|
|
7
|
-
const {
|
|
8
|
-
className,
|
|
9
|
-
classes,
|
|
10
|
-
pulsate = false,
|
|
11
|
-
rippleX,
|
|
12
|
-
rippleY,
|
|
13
|
-
rippleSize,
|
|
14
|
-
in: inProp,
|
|
15
|
-
onExited,
|
|
16
|
-
timeout
|
|
17
|
-
} = props;
|
|
18
|
-
const [leaving, setLeaving] = React.useState(false);
|
|
19
|
-
const rippleClassName = clsx(className, classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);
|
|
20
|
-
const rippleStyles = {
|
|
21
|
-
width: rippleSize,
|
|
22
|
-
height: rippleSize,
|
|
23
|
-
top: -(rippleSize / 2) + rippleY,
|
|
24
|
-
left: -(rippleSize / 2) + rippleX
|
|
25
|
-
};
|
|
26
|
-
const childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);
|
|
27
|
-
if (!inProp && !leaving) {
|
|
28
|
-
setLeaving(true);
|
|
29
|
-
}
|
|
30
|
-
React.useEffect(() => {
|
|
31
|
-
if (!inProp && onExited != null) {
|
|
32
|
-
// react-transition-group#onExited
|
|
33
|
-
const timeoutId = setTimeout(onExited, timeout);
|
|
34
|
-
return () => {
|
|
35
|
-
clearTimeout(timeoutId);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
return undefined;
|
|
39
|
-
}, [onExited, inProp, timeout]);
|
|
40
|
-
return /*#__PURE__*/jsx("span", {
|
|
41
|
-
className: rippleClassName,
|
|
42
|
-
style: rippleStyles,
|
|
43
|
-
children: /*#__PURE__*/jsx("span", {
|
|
44
|
-
className: childClassName
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
49
|
-
/**
|
|
50
|
-
* Override or extend the styles applied to the component.
|
|
51
|
-
* See [CSS API](#css) below for more details.
|
|
52
|
-
*/
|
|
53
|
-
classes: PropTypes.object.isRequired,
|
|
54
|
-
className: PropTypes.string,
|
|
55
|
-
/**
|
|
56
|
-
* @ignore - injected from TransitionGroup
|
|
57
|
-
*/
|
|
58
|
-
in: PropTypes.bool,
|
|
59
|
-
/**
|
|
60
|
-
* @ignore - injected from TransitionGroup
|
|
61
|
-
*/
|
|
62
|
-
onExited: PropTypes.func,
|
|
63
|
-
/**
|
|
64
|
-
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
65
|
-
*/
|
|
66
|
-
pulsate: PropTypes.bool,
|
|
67
|
-
/**
|
|
68
|
-
* Diameter of the ripple.
|
|
69
|
-
*/
|
|
70
|
-
rippleSize: PropTypes.number,
|
|
71
|
-
/**
|
|
72
|
-
* Horizontal position of the ripple center.
|
|
73
|
-
*/
|
|
74
|
-
rippleX: PropTypes.number,
|
|
75
|
-
/**
|
|
76
|
-
* Vertical position of the ripple center.
|
|
77
|
-
*/
|
|
78
|
-
rippleY: PropTypes.number,
|
|
79
|
-
/**
|
|
80
|
-
* exit delay
|
|
81
|
-
*/
|
|
82
|
-
timeout: PropTypes.number.isRequired
|
|
83
|
-
} : void 0;
|
|
84
|
-
|
|
85
|
-
export { Ripple as default };
|