@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.
- package/dist/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/index.js +3 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.js +3 -0
- package/dist/_virtual/react-is.development.js +3 -0
- package/dist/_virtual/react-is.development2.js +3 -0
- package/dist/_virtual/react-is.production.min.js +3 -0
- package/dist/_virtual/react-is.production.min2.js +3 -0
- package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
- package/dist/components/BasicButtons/BasicButtons.js +14 -0
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
- package/dist/components/BasicButtons/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/extends.js +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.23.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/clsx@2.1.0/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +99 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +115 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +74 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +30 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +11 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +190 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +26 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +19 -0
- package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.development.js +230 -0
- package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.production.min.js +26 -0
- package/dist/node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/index.js +13 -0
- 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
- 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
- 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
- package/package.json +46 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
let hadKeyboardEvent = true;
|
|
4
|
+
let hadFocusVisibleRecently = false;
|
|
5
|
+
let hadFocusVisibleRecentlyTimeout;
|
|
6
|
+
const inputTypesWhitelist = {
|
|
7
|
+
text: true,
|
|
8
|
+
search: true,
|
|
9
|
+
url: true,
|
|
10
|
+
tel: true,
|
|
11
|
+
email: true,
|
|
12
|
+
password: true,
|
|
13
|
+
number: true,
|
|
14
|
+
date: true,
|
|
15
|
+
month: true,
|
|
16
|
+
week: true,
|
|
17
|
+
time: true,
|
|
18
|
+
datetime: true,
|
|
19
|
+
'datetime-local': true
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Computes whether the given element should automatically trigger the
|
|
24
|
+
* `focus-visible` class being added, i.e. whether it should always match
|
|
25
|
+
* `:focus-visible` when focused.
|
|
26
|
+
* @param {Element} node
|
|
27
|
+
* @returns {boolean}
|
|
28
|
+
*/
|
|
29
|
+
function focusTriggersKeyboardModality(node) {
|
|
30
|
+
const {
|
|
31
|
+
type,
|
|
32
|
+
tagName
|
|
33
|
+
} = node;
|
|
34
|
+
if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (tagName === 'TEXTAREA' && !node.readOnly) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
if (node.isContentEditable) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Keep track of our keyboard modality state with `hadKeyboardEvent`.
|
|
48
|
+
* If the most recent user interaction was via the keyboard;
|
|
49
|
+
* and the key press did not include a meta, alt/option, or control key;
|
|
50
|
+
* then the modality is keyboard. Otherwise, the modality is not keyboard.
|
|
51
|
+
* @param {KeyboardEvent} event
|
|
52
|
+
*/
|
|
53
|
+
function handleKeyDown(event) {
|
|
54
|
+
if (event.metaKey || event.altKey || event.ctrlKey) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
hadKeyboardEvent = true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* If at any point a user clicks with a pointing device, ensure that we change
|
|
62
|
+
* the modality away from keyboard.
|
|
63
|
+
* This avoids the situation where a user presses a key on an already focused
|
|
64
|
+
* element, and then clicks on a different element, focusing it with a
|
|
65
|
+
* pointing device, while we still think we're in keyboard modality.
|
|
66
|
+
*/
|
|
67
|
+
function handlePointerDown() {
|
|
68
|
+
hadKeyboardEvent = false;
|
|
69
|
+
}
|
|
70
|
+
function handleVisibilityChange() {
|
|
71
|
+
if (this.visibilityState === 'hidden') {
|
|
72
|
+
// If the tab becomes active again, the browser will handle calling focus
|
|
73
|
+
// on the element (Safari actually calls it twice).
|
|
74
|
+
// If this tab change caused a blur on an element with focus-visible,
|
|
75
|
+
// re-apply the class when the user switches back to the tab.
|
|
76
|
+
if (hadFocusVisibleRecently) {
|
|
77
|
+
hadKeyboardEvent = true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function prepare(doc) {
|
|
82
|
+
doc.addEventListener('keydown', handleKeyDown, true);
|
|
83
|
+
doc.addEventListener('mousedown', handlePointerDown, true);
|
|
84
|
+
doc.addEventListener('pointerdown', handlePointerDown, true);
|
|
85
|
+
doc.addEventListener('touchstart', handlePointerDown, true);
|
|
86
|
+
doc.addEventListener('visibilitychange', handleVisibilityChange, true);
|
|
87
|
+
}
|
|
88
|
+
function isFocusVisible(event) {
|
|
89
|
+
const {
|
|
90
|
+
target
|
|
91
|
+
} = event;
|
|
92
|
+
try {
|
|
93
|
+
return target.matches(':focus-visible');
|
|
94
|
+
} catch (error) {
|
|
95
|
+
// Browsers not implementing :focus-visible will throw a SyntaxError.
|
|
96
|
+
// We use our own heuristic for those browsers.
|
|
97
|
+
// Rethrow might be better if it's not the expected error but do we really
|
|
98
|
+
// want to crash if focus-visible malfunctioned?
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// No need for validFocusTarget check. The user does that by attaching it to
|
|
102
|
+
// focusable events only.
|
|
103
|
+
return hadKeyboardEvent || focusTriggersKeyboardModality(target);
|
|
104
|
+
}
|
|
105
|
+
function useIsFocusVisible() {
|
|
106
|
+
const ref = React.useCallback(node => {
|
|
107
|
+
if (node != null) {
|
|
108
|
+
prepare(node.ownerDocument);
|
|
109
|
+
}
|
|
110
|
+
}, []);
|
|
111
|
+
const isFocusVisibleRef = React.useRef(false);
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Should be called if a blur event is fired
|
|
115
|
+
*/
|
|
116
|
+
function handleBlurVisible() {
|
|
117
|
+
// checking against potential state variable does not suffice if we focus and blur synchronously.
|
|
118
|
+
// React wouldn't have time to trigger a re-render so `focusVisible` would be stale.
|
|
119
|
+
// Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.
|
|
120
|
+
// This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751
|
|
121
|
+
// TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).
|
|
122
|
+
if (isFocusVisibleRef.current) {
|
|
123
|
+
// To detect a tab/window switch, we look for a blur event followed
|
|
124
|
+
// rapidly by a visibility change.
|
|
125
|
+
// If we don't see a visibility change within 100ms, it's probably a
|
|
126
|
+
// regular focus change.
|
|
127
|
+
hadFocusVisibleRecently = true;
|
|
128
|
+
window.clearTimeout(hadFocusVisibleRecentlyTimeout);
|
|
129
|
+
hadFocusVisibleRecentlyTimeout = window.setTimeout(() => {
|
|
130
|
+
hadFocusVisibleRecently = false;
|
|
131
|
+
}, 100);
|
|
132
|
+
isFocusVisibleRef.current = false;
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Should be called if a blur event is fired
|
|
140
|
+
*/
|
|
141
|
+
function handleFocusVisible(event) {
|
|
142
|
+
if (isFocusVisible(event)) {
|
|
143
|
+
isFocusVisibleRef.current = true;
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
isFocusVisibleRef,
|
|
150
|
+
onFocus: handleFocusVisible,
|
|
151
|
+
onBlur: handleBlurVisible,
|
|
152
|
+
ref
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export { useIsFocusVisible as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2
|
+
|
|
3
|
+
export { clsx, clsx as default };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
var objectAssign;
|
|
8
|
+
var hasRequiredObjectAssign;
|
|
9
|
+
|
|
10
|
+
function requireObjectAssign () {
|
|
11
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
12
|
+
hasRequiredObjectAssign = 1;
|
|
13
|
+
/* eslint-disable no-unused-vars */
|
|
14
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
15
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
16
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
17
|
+
|
|
18
|
+
function toObject(val) {
|
|
19
|
+
if (val === null || val === undefined) {
|
|
20
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return Object(val);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function shouldUseNative() {
|
|
27
|
+
try {
|
|
28
|
+
if (!Object.assign) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
33
|
+
|
|
34
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
35
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
36
|
+
test1[5] = 'de';
|
|
37
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
42
|
+
var test2 = {};
|
|
43
|
+
for (var i = 0; i < 10; i++) {
|
|
44
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
45
|
+
}
|
|
46
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
47
|
+
return test2[n];
|
|
48
|
+
});
|
|
49
|
+
if (order2.join('') !== '0123456789') {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
54
|
+
var test3 = {};
|
|
55
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
56
|
+
test3[letter] = letter;
|
|
57
|
+
});
|
|
58
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
59
|
+
'abcdefghijklmnopqrst') {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return true;
|
|
64
|
+
} catch (err) {
|
|
65
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
71
|
+
var from;
|
|
72
|
+
var to = toObject(target);
|
|
73
|
+
var symbols;
|
|
74
|
+
|
|
75
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
76
|
+
from = Object(arguments[s]);
|
|
77
|
+
|
|
78
|
+
for (var key in from) {
|
|
79
|
+
if (hasOwnProperty.call(from, key)) {
|
|
80
|
+
to[key] = from[key];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (getOwnPropertySymbols) {
|
|
85
|
+
symbols = getOwnPropertySymbols(from);
|
|
86
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
87
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
88
|
+
to[symbols[i]] = from[symbols[i]];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return to;
|
|
95
|
+
};
|
|
96
|
+
return objectAssign;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { requireObjectAssign as __require };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { __require as requireReactPropTypesSecret } from './lib/ReactPropTypesSecret.js';
|
|
2
|
+
import { __require as requireHas } from './lib/has.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
var checkPropTypes_1;
|
|
12
|
+
var hasRequiredCheckPropTypes;
|
|
13
|
+
|
|
14
|
+
function requireCheckPropTypes () {
|
|
15
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
16
|
+
hasRequiredCheckPropTypes = 1;
|
|
17
|
+
|
|
18
|
+
var printWarning = function() {};
|
|
19
|
+
|
|
20
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
21
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
22
|
+
var loggedTypeFailures = {};
|
|
23
|
+
var has = requireHas();
|
|
24
|
+
|
|
25
|
+
printWarning = function(text) {
|
|
26
|
+
var message = 'Warning: ' + text;
|
|
27
|
+
if (typeof console !== 'undefined') {
|
|
28
|
+
console.error(message);
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
// --- Welcome to debugging React ---
|
|
32
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
33
|
+
// to find the callsite that caused this warning to fire.
|
|
34
|
+
throw new Error(message);
|
|
35
|
+
} catch (x) { /**/ }
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Assert that the values match with the type specs.
|
|
41
|
+
* Error messages are memorized and will only be shown once.
|
|
42
|
+
*
|
|
43
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
44
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
45
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
46
|
+
* @param {string} componentName Name of the component for error messages.
|
|
47
|
+
* @param {?Function} getStack Returns the component stack.
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
51
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
52
|
+
for (var typeSpecName in typeSpecs) {
|
|
53
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
54
|
+
var error;
|
|
55
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
56
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
57
|
+
// After these have been cleaned up, we'll let them throw.
|
|
58
|
+
try {
|
|
59
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
60
|
+
// behavior as without this statement except with a better message.
|
|
61
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
62
|
+
var err = Error(
|
|
63
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
64
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
65
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
66
|
+
);
|
|
67
|
+
err.name = 'Invariant Violation';
|
|
68
|
+
throw err;
|
|
69
|
+
}
|
|
70
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
71
|
+
} catch (ex) {
|
|
72
|
+
error = ex;
|
|
73
|
+
}
|
|
74
|
+
if (error && !(error instanceof Error)) {
|
|
75
|
+
printWarning(
|
|
76
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
77
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
78
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
79
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
80
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
81
|
+
'shape all require an argument).'
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
85
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
86
|
+
// same error.
|
|
87
|
+
loggedTypeFailures[error.message] = true;
|
|
88
|
+
|
|
89
|
+
var stack = getStack ? getStack() : '';
|
|
90
|
+
|
|
91
|
+
printWarning(
|
|
92
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Resets warning cache when testing.
|
|
102
|
+
*
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
checkPropTypes.resetWarningCache = function() {
|
|
106
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
107
|
+
loggedTypeFailures = {};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
checkPropTypes_1 = checkPropTypes;
|
|
112
|
+
return checkPropTypes_1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { requireCheckPropTypes as __require };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __require as requireReactPropTypesSecret } from './lib/ReactPropTypesSecret.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var factoryWithThrowingShims;
|
|
11
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
12
|
+
|
|
13
|
+
function requireFactoryWithThrowingShims () {
|
|
14
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
15
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
16
|
+
|
|
17
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
18
|
+
|
|
19
|
+
function emptyFunction() {}
|
|
20
|
+
function emptyFunctionWithReset() {}
|
|
21
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
22
|
+
|
|
23
|
+
factoryWithThrowingShims = function() {
|
|
24
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
25
|
+
if (secret === ReactPropTypesSecret) {
|
|
26
|
+
// It is still safe when called from React.
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
var err = new Error(
|
|
30
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
31
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
32
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
33
|
+
);
|
|
34
|
+
err.name = 'Invariant Violation';
|
|
35
|
+
throw err;
|
|
36
|
+
} shim.isRequired = shim;
|
|
37
|
+
function getShim() {
|
|
38
|
+
return shim;
|
|
39
|
+
} // Important!
|
|
40
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
41
|
+
var ReactPropTypes = {
|
|
42
|
+
array: shim,
|
|
43
|
+
bigint: shim,
|
|
44
|
+
bool: shim,
|
|
45
|
+
func: shim,
|
|
46
|
+
number: shim,
|
|
47
|
+
object: shim,
|
|
48
|
+
string: shim,
|
|
49
|
+
symbol: shim,
|
|
50
|
+
|
|
51
|
+
any: shim,
|
|
52
|
+
arrayOf: getShim,
|
|
53
|
+
element: shim,
|
|
54
|
+
elementType: shim,
|
|
55
|
+
instanceOf: getShim,
|
|
56
|
+
node: shim,
|
|
57
|
+
objectOf: getShim,
|
|
58
|
+
oneOf: getShim,
|
|
59
|
+
oneOfType: getShim,
|
|
60
|
+
shape: getShim,
|
|
61
|
+
exact: getShim,
|
|
62
|
+
|
|
63
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
64
|
+
resetWarningCache: emptyFunction
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
68
|
+
|
|
69
|
+
return ReactPropTypes;
|
|
70
|
+
};
|
|
71
|
+
return factoryWithThrowingShims;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { requireFactoryWithThrowingShims as __require };
|