@cgi-learning-hub/ui 0.0.1-dev

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.
Files changed (117) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +5 -0
  2. package/dist/_virtual/index.js +3 -0
  3. package/dist/_virtual/index2.js +3 -0
  4. package/dist/_virtual/index3.js +3 -0
  5. package/dist/_virtual/react-is.development.js +3 -0
  6. package/dist/_virtual/react-is.development2.js +3 -0
  7. package/dist/_virtual/react-is.production.min.js +3 -0
  8. package/dist/_virtual/react-is.production.min2.js +3 -0
  9. package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
  10. package/dist/components/BasicButtons/BasicButtons.js +14 -0
  11. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
  12. package/dist/components/BasicButtons/index.d.ts +2 -0
  13. package/dist/components/index.d.ts +1 -0
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +1 -0
  16. package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -0
  17. package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/extends.js +16 -0
  18. package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +9 -0
  19. package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
  20. package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
  21. 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 +379 -0
  22. 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 +10 -0
  23. 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 +477 -0
  24. 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 +85 -0
  25. 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 +340 -0
  26. 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 +9 -0
  27. 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 +5 -0
  28. 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 +12 -0
  29. 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 +12 -0
  30. 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 +63 -0
  31. 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 +19 -0
  32. 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 +7 -0
  33. 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 +19 -0
  34. 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 +19 -0
  35. 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 +19 -0
  36. 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 +19 -0
  37. 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 +19 -0
  38. 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 +19 -0
  39. 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 +19 -0
  40. 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 +308 -0
  41. 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 +82 -0
  42. 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 +91 -0
  43. 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 +93 -0
  44. 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 +6 -0
  45. 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 +3 -0
  46. 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 +11 -0
  47. 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 +12 -0
  48. 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 +17 -0
  49. 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 +15 -0
  50. 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 +5 -0
  51. 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 +5 -0
  52. 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 +5 -0
  53. 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 +5 -0
  54. 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 +36 -0
  55. 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 +176 -0
  56. 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 +51 -0
  57. 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 +123 -0
  58. 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 +236 -0
  59. 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 +26 -0
  60. 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 +322 -0
  61. 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 +82 -0
  62. 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 +34 -0
  63. 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 +43 -0
  64. 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 +6 -0
  65. 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 +86 -0
  66. 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 +11 -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/merge.js +12 -0
  68. 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 +28 -0
  69. 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 +30 -0
  70. 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 +6 -0
  71. 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 +67 -0
  72. 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 +144 -0
  73. 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 +77 -0
  74. 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 +294 -0
  75. 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 +51 -0
  76. 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 +129 -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/styled.js +5 -0
  78. 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 +9 -0
  79. 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 +15 -0
  80. 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 +22 -0
  81. 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 +12 -0
  82. 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 +18 -0
  83. 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 +14 -0
  84. 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 +10 -0
  85. 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 +5 -0
  86. 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 +23 -0
  87. 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 +44 -0
  88. 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 +43 -0
  89. 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 +21 -0
  90. 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 +22 -0
  91. 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 +11 -0
  92. 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 +49 -0
  93. 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 +6 -0
  94. 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 +37 -0
  95. 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 +22 -0
  96. 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 +12 -0
  97. 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 +19 -0
  98. 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 +23 -0
  99. 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 +156 -0
  100. package/dist/node_modules/.pnpm/clsx@2.1.0/node_modules/clsx/dist/clsx.js +3 -0
  101. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +99 -0
  102. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +115 -0
  103. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +74 -0
  104. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
  105. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +30 -0
  106. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
  107. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +11 -0
  108. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +190 -0
  109. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +26 -0
  110. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +19 -0
  111. package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.development.js +230 -0
  112. package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.production.min.js +26 -0
  113. package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/index.js +13 -0
  114. 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 +191 -0
  115. 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 +5 -0
  116. 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 +143 -0
  117. package/package.json +46 -0
@@ -0,0 +1,477 @@
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 };
@@ -0,0 +1,85 @@
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 };