@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,191 @@
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 _assertThisInitialized from '../../../../@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js';
4
+ import _inheritsLoose from '../../../../@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js';
5
+ import PropTypes from '../../../../prop-types@15.8.1/node_modules/prop-types/index.js';
6
+ import React__default from 'react';
7
+ import TransitionGroupContext from './TransitionGroupContext.js';
8
+ import { getInitialChildMapping, getNextChildMapping, getChildMapping } from './utils/ChildMapping.js';
9
+
10
+ var values = Object.values || function (obj) {
11
+ return Object.keys(obj).map(function (k) {
12
+ return obj[k];
13
+ });
14
+ };
15
+
16
+ var defaultProps = {
17
+ component: 'div',
18
+ childFactory: function childFactory(child) {
19
+ return child;
20
+ }
21
+ };
22
+ /**
23
+ * The `<TransitionGroup>` component manages a set of transition components
24
+ * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
25
+ * components, `<TransitionGroup>` is a state machine for managing the mounting
26
+ * and unmounting of components over time.
27
+ *
28
+ * Consider the example below. As items are removed or added to the TodoList the
29
+ * `in` prop is toggled automatically by the `<TransitionGroup>`.
30
+ *
31
+ * Note that `<TransitionGroup>` does not define any animation behavior!
32
+ * Exactly _how_ a list item animates is up to the individual transition
33
+ * component. This means you can mix and match animations across different list
34
+ * items.
35
+ */
36
+
37
+ var TransitionGroup = /*#__PURE__*/function (_React$Component) {
38
+ _inheritsLoose(TransitionGroup, _React$Component);
39
+
40
+ function TransitionGroup(props, context) {
41
+ var _this;
42
+
43
+ _this = _React$Component.call(this, props, context) || this;
44
+
45
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear
46
+
47
+
48
+ _this.state = {
49
+ contextValue: {
50
+ isMounting: true
51
+ },
52
+ handleExited: handleExited,
53
+ firstRender: true
54
+ };
55
+ return _this;
56
+ }
57
+
58
+ var _proto = TransitionGroup.prototype;
59
+
60
+ _proto.componentDidMount = function componentDidMount() {
61
+ this.mounted = true;
62
+ this.setState({
63
+ contextValue: {
64
+ isMounting: false
65
+ }
66
+ });
67
+ };
68
+
69
+ _proto.componentWillUnmount = function componentWillUnmount() {
70
+ this.mounted = false;
71
+ };
72
+
73
+ TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
74
+ var prevChildMapping = _ref.children,
75
+ handleExited = _ref.handleExited,
76
+ firstRender = _ref.firstRender;
77
+ return {
78
+ children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
79
+ firstRender: false
80
+ };
81
+ } // node is `undefined` when user provided `nodeRef` prop
82
+ ;
83
+
84
+ _proto.handleExited = function handleExited(child, node) {
85
+ var currentChildMapping = getChildMapping(this.props.children);
86
+ if (child.key in currentChildMapping) return;
87
+
88
+ if (child.props.onExited) {
89
+ child.props.onExited(node);
90
+ }
91
+
92
+ if (this.mounted) {
93
+ this.setState(function (state) {
94
+ var children = _extends({}, state.children);
95
+
96
+ delete children[child.key];
97
+ return {
98
+ children: children
99
+ };
100
+ });
101
+ }
102
+ };
103
+
104
+ _proto.render = function render() {
105
+ var _this$props = this.props,
106
+ Component = _this$props.component,
107
+ childFactory = _this$props.childFactory,
108
+ props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
109
+
110
+ var contextValue = this.state.contextValue;
111
+ var children = values(this.state.children).map(childFactory);
112
+ delete props.appear;
113
+ delete props.enter;
114
+ delete props.exit;
115
+
116
+ if (Component === null) {
117
+ return /*#__PURE__*/React__default.createElement(TransitionGroupContext.Provider, {
118
+ value: contextValue
119
+ }, children);
120
+ }
121
+
122
+ return /*#__PURE__*/React__default.createElement(TransitionGroupContext.Provider, {
123
+ value: contextValue
124
+ }, /*#__PURE__*/React__default.createElement(Component, props, children));
125
+ };
126
+
127
+ return TransitionGroup;
128
+ }(React__default.Component);
129
+
130
+ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
131
+ /**
132
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
133
+ * behavior by providing a `component` prop.
134
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
135
+ * you can pass in `component={null}`. This is useful if the wrapping div
136
+ * borks your css styles.
137
+ */
138
+ component: PropTypes.any,
139
+
140
+ /**
141
+ * A set of `<Transition>` components, that are toggled `in` and out as they
142
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
143
+ * remember to spread them through if you are wrapping the `<Transition>` as
144
+ * with our `<Fade>` example.
145
+ *
146
+ * While this component is meant for multiple `Transition` or `CSSTransition`
147
+ * children, sometimes you may want to have a single transition child with
148
+ * content that you want to be transitioned out and in when you change it
149
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
150
+ * the transition child as you change its content, this will cause
151
+ * `TransitionGroup` to transition the child out and back in.
152
+ */
153
+ children: PropTypes.node,
154
+
155
+ /**
156
+ * A convenience prop that enables or disables appear animations
157
+ * for all children. Note that specifying this will override any defaults set
158
+ * on individual children Transitions.
159
+ */
160
+ appear: PropTypes.bool,
161
+
162
+ /**
163
+ * A convenience prop that enables or disables enter animations
164
+ * for all children. Note that specifying this will override any defaults set
165
+ * on individual children Transitions.
166
+ */
167
+ enter: PropTypes.bool,
168
+
169
+ /**
170
+ * A convenience prop that enables or disables exit animations
171
+ * for all children. Note that specifying this will override any defaults set
172
+ * on individual children Transitions.
173
+ */
174
+ exit: PropTypes.bool,
175
+
176
+ /**
177
+ * You may need to apply reactive updates to a child as it is exiting.
178
+ * This is generally done by using `cloneElement` however in the case of an exiting
179
+ * child the element has already been removed and not accessible to the consumer.
180
+ *
181
+ * If you do need to update a child as it leaves you can provide a `childFactory`
182
+ * to wrap every child, even the ones that are leaving.
183
+ *
184
+ * @type Function(child: ReactElement) -> ReactElement
185
+ */
186
+ childFactory: PropTypes.func
187
+ } : {};
188
+ TransitionGroup.defaultProps = defaultProps;
189
+ const TransitionGroup$1 = TransitionGroup;
190
+
191
+ export { TransitionGroup$1 as default };
@@ -0,0 +1,5 @@
1
+ import React__default from 'react';
2
+
3
+ const TransitionGroupContext = React__default.createContext(null);
4
+
5
+ export { TransitionGroupContext as default };
@@ -0,0 +1,143 @@
1
+ import { Children, isValidElement, cloneElement } from 'react';
2
+
3
+ /**
4
+ * Given `this.props.children`, return an object mapping key to child.
5
+ *
6
+ * @param {*} children `this.props.children`
7
+ * @return {object} Mapping of key to child
8
+ */
9
+
10
+ function getChildMapping(children, mapFn) {
11
+ var mapper = function mapper(child) {
12
+ return mapFn && isValidElement(child) ? mapFn(child) : child;
13
+ };
14
+
15
+ var result = Object.create(null);
16
+ if (children) Children.map(children, function (c) {
17
+ return c;
18
+ }).forEach(function (child) {
19
+ // run the map function here instead so that the key is the computed one
20
+ result[child.key] = mapper(child);
21
+ });
22
+ return result;
23
+ }
24
+ /**
25
+ * When you're adding or removing children some may be added or removed in the
26
+ * same render pass. We want to show *both* since we want to simultaneously
27
+ * animate elements in and out. This function takes a previous set of keys
28
+ * and a new set of keys and merges them with its best guess of the correct
29
+ * ordering. In the future we may expose some of the utilities in
30
+ * ReactMultiChild to make this easy, but for now React itself does not
31
+ * directly have this concept of the union of prevChildren and nextChildren
32
+ * so we implement it here.
33
+ *
34
+ * @param {object} prev prev children as returned from
35
+ * `ReactTransitionChildMapping.getChildMapping()`.
36
+ * @param {object} next next children as returned from
37
+ * `ReactTransitionChildMapping.getChildMapping()`.
38
+ * @return {object} a key set that contains all keys in `prev` and all keys
39
+ * in `next` in a reasonable order.
40
+ */
41
+
42
+ function mergeChildMappings(prev, next) {
43
+ prev = prev || {};
44
+ next = next || {};
45
+
46
+ function getValueForKey(key) {
47
+ return key in next ? next[key] : prev[key];
48
+ } // For each key of `next`, the list of keys to insert before that key in
49
+ // the combined list
50
+
51
+
52
+ var nextKeysPending = Object.create(null);
53
+ var pendingKeys = [];
54
+
55
+ for (var prevKey in prev) {
56
+ if (prevKey in next) {
57
+ if (pendingKeys.length) {
58
+ nextKeysPending[prevKey] = pendingKeys;
59
+ pendingKeys = [];
60
+ }
61
+ } else {
62
+ pendingKeys.push(prevKey);
63
+ }
64
+ }
65
+
66
+ var i;
67
+ var childMapping = {};
68
+
69
+ for (var nextKey in next) {
70
+ if (nextKeysPending[nextKey]) {
71
+ for (i = 0; i < nextKeysPending[nextKey].length; i++) {
72
+ var pendingNextKey = nextKeysPending[nextKey][i];
73
+ childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
74
+ }
75
+ }
76
+
77
+ childMapping[nextKey] = getValueForKey(nextKey);
78
+ } // Finally, add the keys which didn't appear before any key in `next`
79
+
80
+
81
+ for (i = 0; i < pendingKeys.length; i++) {
82
+ childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
83
+ }
84
+
85
+ return childMapping;
86
+ }
87
+
88
+ function getProp(child, prop, props) {
89
+ return props[prop] != null ? props[prop] : child.props[prop];
90
+ }
91
+
92
+ function getInitialChildMapping(props, onExited) {
93
+ return getChildMapping(props.children, function (child) {
94
+ return cloneElement(child, {
95
+ onExited: onExited.bind(null, child),
96
+ in: true,
97
+ appear: getProp(child, 'appear', props),
98
+ enter: getProp(child, 'enter', props),
99
+ exit: getProp(child, 'exit', props)
100
+ });
101
+ });
102
+ }
103
+ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
104
+ var nextChildMapping = getChildMapping(nextProps.children);
105
+ var children = mergeChildMappings(prevChildMapping, nextChildMapping);
106
+ Object.keys(children).forEach(function (key) {
107
+ var child = children[key];
108
+ if (!isValidElement(child)) return;
109
+ var hasPrev = (key in prevChildMapping);
110
+ var hasNext = (key in nextChildMapping);
111
+ var prevChild = prevChildMapping[key];
112
+ var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)
113
+
114
+ if (hasNext && (!hasPrev || isLeaving)) {
115
+ // console.log('entering', key)
116
+ children[key] = cloneElement(child, {
117
+ onExited: onExited.bind(null, child),
118
+ in: true,
119
+ exit: getProp(child, 'exit', nextProps),
120
+ enter: getProp(child, 'enter', nextProps)
121
+ });
122
+ } else if (!hasNext && hasPrev && !isLeaving) {
123
+ // item is old (exiting)
124
+ // console.log('leaving', key)
125
+ children[key] = cloneElement(child, {
126
+ in: false
127
+ });
128
+ } else if (hasNext && hasPrev && isValidElement(prevChild)) {
129
+ // item hasn't changed transition states
130
+ // copy over the last transition props;
131
+ // console.log('unchanged', key)
132
+ children[key] = cloneElement(child, {
133
+ onExited: onExited.bind(null, child),
134
+ in: prevChild.props.in,
135
+ exit: getProp(child, 'exit', nextProps),
136
+ enter: getProp(child, 'enter', nextProps)
137
+ });
138
+ }
139
+ });
140
+ return children;
141
+ }
142
+
143
+ export { getChildMapping, getInitialChildMapping, getNextChildMapping, mergeChildMappings };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@cgi-learning-hub/ui",
3
+ "version": "0.0.1-dev",
4
+ "private": false,
5
+ "author": "CGI Learning-hub Team",
6
+ "description": "@hub-ui/base is an open-source React component library that implements UI for HUB's features",
7
+ "keywords": [
8
+ "react",
9
+ "react-component",
10
+ "hub",
11
+ "hub-ui"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/CGI-OPEN-ENT-NG/hub-ui.git",
16
+ "directory": "packages/base"
17
+ },
18
+ "sideEffects": false,
19
+ "type": "module",
20
+ "exports": {
21
+ ".": {
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "module": "dist/index.js",
26
+ "types": "dist/index.d.ts",
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "dependencies": {
31
+ "@mui/material": "5.15.0",
32
+ "@emotion/react": "11.11.1",
33
+ "@emotion/styled": "11.11.0"
34
+ },
35
+ "peerDependencies": {
36
+ "@types/react": "18.2.48",
37
+ "@types/react-dom": "18.2.18",
38
+ "react": "18.2.0",
39
+ "react-dom": "18.2.0"
40
+ },
41
+ "scripts": {
42
+ "dev": "vite",
43
+ "build": "vite build",
44
+ "build:watch": "vite build --watch"
45
+ }
46
+ }