@ntbjs/react-components 1.3.0-rc.9 → 2.0.0-rc.3
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/.eslintrc +7 -8
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
- package/cjs/_virtual/index.js +7 -0
- package/cjs/_virtual/index2.js +7 -0
- package/cjs/_virtual/index3.js +7 -0
- package/cjs/_virtual/index4.js +7 -0
- package/cjs/_virtual/index5.js +7 -0
- package/cjs/_virtual/react-dom.development.js +7 -0
- package/cjs/_virtual/react-dom.production.js +7 -0
- package/cjs/_virtual/react-is.development.js +7 -0
- package/cjs/_virtual/react-is.development2.js +7 -0
- package/cjs/_virtual/react-is.production.min.js +7 -0
- package/cjs/_virtual/react-is.production.min2.js +7 -0
- package/cjs/_virtual/react.development.js +7 -0
- package/cjs/_virtual/react.production.js +7 -0
- package/cjs/components/data/Alert/Alert.js +81 -0
- package/cjs/components/data/Alert/Alert.styled.js +72 -0
- package/cjs/components/data/Alert/data/Alert/index.js +9 -0
- package/cjs/components/data/Badge/Badge.js +93 -0
- package/cjs/components/data/Badge/Badge.styled.js +156 -0
- package/cjs/components/data/Badge/data/Badge/index.js +9 -0
- package/cjs/components/data/Popover/Popover.js +102 -0
- package/cjs/components/data/Popover/Popover.styled.js +159 -0
- package/cjs/components/data/Popover/data/Popover/index.js +9 -0
- package/cjs/components/data/Tab/Tab.js +31 -0
- package/cjs/components/data/Tab/Tab.styled.js +22 -0
- package/cjs/components/data/Tab/data/Tab/index.js +9 -0
- package/cjs/components/data/Tabs/Tabs.js +91 -0
- package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
- package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
- package/cjs/components/data/Tooltip/Tooltip.js +50 -0
- package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
- package/cjs/components/data/data/index.js +21 -0
- package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
- package/cjs/components/inputs/Button/Button.js +188 -0
- package/cjs/components/inputs/Button/Button.styled.js +294 -0
- package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
- package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
- package/cjs/components/inputs/Radio/Radio.js +67 -0
- package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
- package/cjs/components/inputs/Switch/Switch.js +69 -0
- package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
- package/cjs/components/inputs/TextArea/TextArea.js +186 -0
- package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
- package/cjs/components/inputs/TextInput/TextInput.js +147 -0
- package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
- package/cjs/components/inputs/inputs/index.js +33 -0
- package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
- package/cjs/components/layout/layout/index.js +11 -0
- package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
- package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
- package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
- package/cjs/components/widgets/Instructions/Instructions.js +217 -0
- package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
- package/cjs/components/widgets/widgets/index.js +25 -0
- package/cjs/hooks/useEventListner.js +26 -0
- package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/cjs/hooks/useOnClickOutside.js +17 -0
- package/cjs/icons/arrow-back.svg.js +20 -0
- package/cjs/icons/arrow-forward.svg.js +20 -0
- package/cjs/icons/check-rectangle-filled.svg.js +20 -0
- package/cjs/icons/close.svg.js +20 -0
- package/cjs/icons/edit-note.svg.js +20 -0
- package/cjs/icons/expand-more.svg.js +20 -0
- package/cjs/icons/headset.svg.js +20 -0
- package/cjs/icons/layers.svg.js +20 -0
- package/cjs/icons/link.svg.js +20 -0
- package/cjs/icons/play.svg.js +20 -0
- package/cjs/icons/search.svg.js +20 -0
- package/cjs/icons/star-filled.svg.js +20 -0
- package/cjs/icons/star.svg.js +20 -0
- package/cjs/icons/triangle-right.svg.js +20 -0
- package/cjs/icons/verification.svg.js +20 -0
- package/cjs/icons/warning-circle.svg.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +503 -0
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +158 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +66 -0
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +16 -0
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +60 -0
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
- package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
- package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
- package/cjs/node_modules/object-assign/index.js +94 -0
- package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
- package/cjs/node_modules/prop-types/index.js +33 -0
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
- package/cjs/node_modules/prop-types/lib/has.js +7 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/react/cjs/react.development.js +1246 -0
- package/cjs/node_modules/react/cjs/react.production.js +552 -0
- package/cjs/node_modules/react/index.js +19 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
- package/cjs/node_modules/react-dom/index.js +44 -0
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
- package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
- package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/cjs/node_modules/stylis/src/Enum.js +24 -0
- package/cjs/node_modules/stylis/src/Middleware.js +37 -0
- package/cjs/node_modules/stylis/src/Parser.js +201 -0
- package/cjs/node_modules/stylis/src/Serializer.js +43 -0
- package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
- package/cjs/node_modules/stylis/src/Utility.js +134 -0
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +12 -0
- package/{ssr → cjs/ssr/ssr}/index.js +1 -3
- package/cjs/styles/utils/colors.scss.js +11 -0
- package/cjs/utils/dateTime.js +20 -0
- package/cjs/utils/defaultTheme.js +52 -0
- package/doctor-storybook.log +20 -0
- package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
- package/esm/_virtual/index.js +3 -0
- package/esm/_virtual/index2.js +3 -0
- package/esm/_virtual/index3.js +3 -0
- package/esm/_virtual/index4.js +3 -0
- package/esm/_virtual/index5.js +3 -0
- package/esm/_virtual/react-dom.development.js +3 -0
- package/esm/_virtual/react-dom.production.js +3 -0
- package/esm/_virtual/react-is.development.js +3 -0
- package/esm/_virtual/react-is.development2.js +3 -0
- package/esm/_virtual/react-is.production.min.js +3 -0
- package/esm/_virtual/react-is.production.min2.js +3 -0
- package/esm/_virtual/react.development.js +3 -0
- package/esm/_virtual/react.production.js +3 -0
- package/esm/components/data/Alert/Alert.js +77 -0
- package/esm/components/data/Alert/Alert.styled.js +63 -0
- package/esm/components/data/Alert/data/Alert/index.js +1 -0
- package/esm/components/data/Badge/Badge.js +89 -0
- package/esm/components/data/Badge/Badge.styled.js +145 -0
- package/esm/components/data/Badge/data/Badge/index.js +1 -0
- package/esm/components/data/Popover/Popover.js +94 -0
- package/esm/components/data/Popover/Popover.styled.js +150 -0
- package/esm/components/data/Popover/data/Popover/index.js +1 -0
- package/esm/components/data/Tab/Tab.js +27 -0
- package/esm/components/data/Tab/Tab.styled.js +14 -0
- package/esm/components/data/Tab/data/Tab/index.js +1 -0
- package/esm/components/data/Tabs/Tabs.js +87 -0
- package/esm/components/data/Tabs/Tabs.styled.js +85 -0
- package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
- package/esm/components/data/Tooltip/Tooltip.js +46 -0
- package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
- package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
- package/esm/components/data/data/index.js +7 -0
- package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
- package/esm/components/inputs/Button/Button.js +184 -0
- package/esm/components/inputs/Button/Button.styled.js +277 -0
- package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
- package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
- package/esm/components/inputs/Radio/Radio.js +63 -0
- package/esm/components/inputs/Radio/Radio.styled.js +84 -0
- package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
- package/esm/components/inputs/Switch/Switch.js +65 -0
- package/esm/components/inputs/Switch/Switch.styled.js +110 -0
- package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
- package/esm/components/inputs/TextArea/TextArea.js +182 -0
- package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
- package/esm/components/inputs/TextInput/TextInput.js +143 -0
- package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
- package/esm/components/inputs/inputs/index.js +13 -0
- package/esm/components/layout/InputGroup/InputGroup.js +22 -0
- package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
- package/esm/components/layout/layout/index.js +2 -0
- package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
- package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
- package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
- package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
- package/esm/components/widgets/Instructions/Instructions.js +213 -0
- package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
- package/esm/components/widgets/widgets/index.js +9 -0
- package/esm/hooks/useEventListner.js +22 -0
- package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/esm/hooks/useOnClickOutside.js +13 -0
- package/esm/icons/arrow-back.svg.js +16 -0
- package/esm/icons/arrow-forward.svg.js +16 -0
- package/esm/icons/check-rectangle-filled.svg.js +16 -0
- package/esm/icons/close.svg.js +16 -0
- package/esm/icons/edit-note.svg.js +16 -0
- package/esm/icons/expand-more.svg.js +16 -0
- package/esm/icons/headset.svg.js +16 -0
- package/esm/icons/layers.svg.js +16 -0
- package/esm/icons/link.svg.js +16 -0
- package/esm/icons/play.svg.js +16 -0
- package/esm/icons/search.svg.js +16 -0
- package/esm/icons/star-filled.svg.js +16 -0
- package/esm/icons/star.svg.js +16 -0
- package/esm/icons/triangle-right.svg.js +16 -0
- package/esm/icons/verification.svg.js +16 -0
- package/esm/icons/warning-circle.svg.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +499 -0
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +149 -0
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +56 -0
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +12 -0
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +54 -0
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
- package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
- package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
- package/esm/node_modules/object-assign/index.js +90 -0
- package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
- package/{index-39bc450c.js → esm/node_modules/prop-types/factoryWithTypeCheckers.js} +46 -514
- package/esm/node_modules/prop-types/index.js +29 -0
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/esm/node_modules/prop-types/lib/has.js +3 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/react/cjs/react.development.js +1244 -0
- package/esm/node_modules/react/cjs/react.production.js +547 -0
- package/esm/node_modules/react/index.js +15 -0
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
- package/esm/node_modules/react-dom/index.js +42 -0
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
- package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
- package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/esm/node_modules/stylis/src/Enum.js +12 -0
- package/esm/node_modules/stylis/src/Middleware.js +32 -0
- package/esm/node_modules/stylis/src/Parser.js +193 -0
- package/esm/node_modules/stylis/src/Serializer.js +38 -0
- package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
- package/esm/node_modules/stylis/src/Utility.js +117 -0
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
- package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +8 -0
- package/esm/ssr/ssr/index.js +1 -0
- package/esm/styles/utils/colors.scss.js +7 -0
- package/esm/utils/dateTime.js +16 -0
- package/esm/utils/defaultTheme.js +47 -0
- package/icons/arrow-forward.svg +3 -0
- package/icons/index.js +2 -0
- package/migration-storybook.log +392 -0
- package/package.json +59 -21
- package/styles/all.scss +3 -3
- package/styles/config.scss +3 -0
- package/styles/utils/colors.scss +1 -1
- package/styles/utils/theme.scss +2 -0
- package/ActionButton-15b418c5.js +0 -62
- package/Alert-e9f818d6.js +0 -118
- package/AssetGallery-66cb0dab.js +0 -1925
- package/AssetPreviewTopBar-21b7e172.js +0 -100
- package/AsyncSelect-368b5068.js +0 -28
- package/Badge-72b369a6.js +0 -222
- package/Button-34ce13c6.js +0 -265
- package/Checkbox-d77eed5d.js +0 -141
- package/CompactAutocompleteSelect-72d523e3.js +0 -452
- package/CompactStarRating-bf45f620.js +0 -340
- package/CompactTextInput-0b1979f1.js +0 -350
- package/ContextMenu-f69599d5.js +0 -33
- package/ContextMenuItem-9c5c4c9f.js +0 -111
- package/InputGroup-e30507cb.js +0 -29
- package/Instructions-42d2bc58.js +0 -264
- package/MultiLevelCheckboxSelect-acaac96b.js +0 -699
- package/MultiSelect-ecb48e03.js +0 -378
- package/Popover-a76d0fe5.js +0 -147
- package/Radio-7d5f630d.js +0 -87
- package/SectionSeparator-2a1c720b.js +0 -38
- package/Switch-006abdbd.js +0 -108
- package/Tab-87287c6e.js +0 -36
- package/Tabs-8e4de5a5.js +0 -152
- package/TextArea-76231a3b.js +0 -376
- package/TextInput-a440374c.js +0 -237
- package/Tooltip-298f0547.js +0 -62
- package/VerificationStatusIcon-d596165f.js +0 -122
- package/close-ebf2f3cf.js +0 -41
- package/data/Alert/index.js +0 -12
- package/data/Badge/index.js +0 -11
- package/data/Popover/index.js +0 -16
- package/data/Tab/index.js +0 -11
- package/data/Tabs/index.js +0 -13
- package/data/Tooltip/index.js +0 -13
- package/data/index.js +0 -30
- package/defaultTheme-fcd45bd0.js +0 -339
- package/edit-note-c47d292e.js +0 -41
- package/expand-more-94585605.js +0 -41
- package/inputs/ActionButton/index.js +0 -12
- package/inputs/AsyncSelect/index.js +0 -11
- package/inputs/Button/index.js +0 -19
- package/inputs/Checkbox/index.js +0 -13
- package/inputs/CompactAutocompleteSelect/index.js +0 -30
- package/inputs/CompactStarRating/index.js +0 -23
- package/inputs/CompactTextInput/index.js +0 -25
- package/inputs/MultiSelect/index.js +0 -17
- package/inputs/Radio/index.js +0 -13
- package/inputs/Switch/index.js +0 -13
- package/inputs/TextArea/index.js +0 -26
- package/inputs/TextInput/index.js +0 -15
- package/inputs/index.js +0 -62
- package/layout/InputGroup/index.js +0 -11
- package/layout/SectionSeparator/index.js +0 -11
- package/layout/index.js +0 -15
- package/react-select-creatable.esm-2f23d6c6.js +0 -7709
- package/shift-away-subtle-45129125.js +0 -9
- package/warning-circle-24522402.js +0 -41
- package/widgets/AssetGallery/index.js +0 -52
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -12
- package/widgets/ContextMenu/ContextMenuItem/index.js +0 -11
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -33
- package/widgets/ContextMenu/index.js +0 -11
- package/widgets/Instructions/index.js +0 -35
- package/widgets/index.js +0 -60
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var lodash = require('lodash');
|
|
7
|
+
var index$2 = require('../../../node_modules/prop-types/index.js');
|
|
8
|
+
var index = require('../../../node_modules/react/index.js');
|
|
9
|
+
var Popover_styled = require('./Popover.styled.js');
|
|
10
|
+
var maxSize = require('popper-max-size-modifier');
|
|
11
|
+
var index$1 = require('../../../_virtual/index.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var maxSize__default = /*#__PURE__*/_interopDefaultLegacy(maxSize);
|
|
16
|
+
|
|
17
|
+
const _excluded = ["content", "interactive", "placement", "duration", "trigger", "offset", "arrow", "visible", "contextMenu", "contextMenuSublevel", "children", "modifiers", "maxWidth"];
|
|
18
|
+
const Popover = index["default"].forwardRef(function Popover(_ref, ref) {
|
|
19
|
+
let {
|
|
20
|
+
content = 'Tooltip',
|
|
21
|
+
interactive = true,
|
|
22
|
+
placement = 'bottom-end',
|
|
23
|
+
duration = 350,
|
|
24
|
+
trigger = 'click focus',
|
|
25
|
+
offset = [0, 8],
|
|
26
|
+
arrow = true,
|
|
27
|
+
visible = undefined,
|
|
28
|
+
contextMenu = false,
|
|
29
|
+
contextMenuSublevel = false,
|
|
30
|
+
children,
|
|
31
|
+
modifiers = [],
|
|
32
|
+
maxWidth = 'none'
|
|
33
|
+
} = _ref,
|
|
34
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
35
|
+
const errorOffset = index$1.react.exports.useMemo(() => arrow ? 15 : 0, [arrow]);
|
|
36
|
+
const isControlled = index$1.react.exports.useMemo(() => lodash.isBoolean(visible), [visible]);
|
|
37
|
+
const handleContextMenuItemClick = () => {
|
|
38
|
+
document.querySelectorAll('.context-menu-item:not(.opens-sublevel)').forEach(item => item.addEventListener('click', () => {
|
|
39
|
+
document.querySelectorAll('[data-tippy-root]').forEach(node => {
|
|
40
|
+
if (node._tippy) {
|
|
41
|
+
node._tippy.hide();
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
return index["default"].createElement("div", null, index["default"].createElement(Popover_styled.Popover, _rollupPluginBabelHelpers["extends"]({
|
|
47
|
+
ref: ref,
|
|
48
|
+
content: content,
|
|
49
|
+
interactive: interactive,
|
|
50
|
+
placement: contextMenuSublevel ? 'right-start' : placement,
|
|
51
|
+
duration: duration,
|
|
52
|
+
animation: 'shift-away-subtle',
|
|
53
|
+
trigger: isControlled ? undefined : contextMenuSublevel ? 'mouseenter click focus' : trigger,
|
|
54
|
+
offset: [offset[0], offset[1] + errorOffset],
|
|
55
|
+
arrow: contextMenu ? false : arrow,
|
|
56
|
+
visible: visible,
|
|
57
|
+
popperOptions: {
|
|
58
|
+
modifiers: [_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, maxSize__default["default"]), {}, {
|
|
59
|
+
options: {
|
|
60
|
+
boundary: 'viewport',
|
|
61
|
+
rootBoundary: 'viewport',
|
|
62
|
+
padding: 10
|
|
63
|
+
}
|
|
64
|
+
}), {
|
|
65
|
+
name: 'applyMaxSize',
|
|
66
|
+
enabled: true,
|
|
67
|
+
phase: 'beforeWrite',
|
|
68
|
+
requires: ['maxSize'],
|
|
69
|
+
fn({
|
|
70
|
+
state
|
|
71
|
+
}) {
|
|
72
|
+
const {
|
|
73
|
+
height
|
|
74
|
+
} = state.modifiersData.maxSize;
|
|
75
|
+
state.styles.popper = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, state.styles.popper), {}, {
|
|
76
|
+
maxHeight: `${height}px`
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}, ...modifiers]
|
|
80
|
+
},
|
|
81
|
+
onShown: contextMenu ? handleContextMenuItemClick : undefined,
|
|
82
|
+
maxWidth: maxWidth
|
|
83
|
+
}, props), children));
|
|
84
|
+
});
|
|
85
|
+
Popover.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
86
|
+
content: index$2["default"].oneOfType([index$2["default"].string, index$2["default"].element]).isRequired,
|
|
87
|
+
interactive: index$2["default"].bool,
|
|
88
|
+
placement: index$2["default"].oneOf(['top', 'top-start', 'top-end', 'right', 'right-start', 'right-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', 'auto-end']),
|
|
89
|
+
duration: index$2["default"].number,
|
|
90
|
+
trigger: index$2["default"].string,
|
|
91
|
+
offset: index$2["default"].arrayOf(index$2["default"].number),
|
|
92
|
+
arrow: index$2["default"].bool,
|
|
93
|
+
visible: index$2["default"].bool,
|
|
94
|
+
modifiers: index$2["default"].array,
|
|
95
|
+
maxWidth: index$2["default"].string,
|
|
96
|
+
contextMenu: index$2["default"].bool,
|
|
97
|
+
contextMenuSublevel: index$2["default"].bool,
|
|
98
|
+
children: index$2["default"].node.isRequired
|
|
99
|
+
} : {};
|
|
100
|
+
var Popover$1 = Popover;
|
|
101
|
+
|
|
102
|
+
exports["default"] = Popover$1;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var polished = require('polished');
|
|
7
|
+
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
8
|
+
var TippyTooltip = require('@tippyjs/react');
|
|
9
|
+
require('../../../node_modules/tippy.js/dist/tippy.css.js');
|
|
10
|
+
require('../../../node_modules/tippy.js/animations/shift-away-subtle.css.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
+
var TippyTooltip__default = /*#__PURE__*/_interopDefaultLegacy(TippyTooltip);
|
|
16
|
+
|
|
17
|
+
let _ = t => t,
|
|
18
|
+
_t,
|
|
19
|
+
_t2,
|
|
20
|
+
_t3,
|
|
21
|
+
_t4;
|
|
22
|
+
const Popover = styled__default["default"](TippyTooltip__default["default"]).attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
23
|
+
font-family: ${0};
|
|
24
|
+
font-size: 1rem;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
color: inherit;
|
|
27
|
+
border-radius: 0;
|
|
28
|
+
line-height: inherit;
|
|
29
|
+
max-height: inherit;
|
|
30
|
+
|
|
31
|
+
${0}
|
|
32
|
+
|
|
33
|
+
${0}
|
|
34
|
+
|
|
35
|
+
${0}
|
|
36
|
+
|
|
37
|
+
${0}
|
|
38
|
+
|
|
39
|
+
${0}
|
|
40
|
+
|
|
41
|
+
${0}
|
|
42
|
+
|
|
43
|
+
.tippy-content {
|
|
44
|
+
padding: 0;
|
|
45
|
+
max-height: inherit;
|
|
46
|
+
|
|
47
|
+
> div {
|
|
48
|
+
max-height: inherit;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tippy-arrow {
|
|
53
|
+
${0}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&& > .tippy-arrow::before {
|
|
57
|
+
position: absolute;
|
|
58
|
+
border-color: transparent;
|
|
59
|
+
border-style: solid;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& > .tippy-arrow::after {
|
|
63
|
+
content: '';
|
|
64
|
+
position: absolute;
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
border-style: solid;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[data-placement^='top'] {
|
|
70
|
+
& > .tippy-arrow:before {
|
|
71
|
+
bottom: -16px;
|
|
72
|
+
left: -5px;
|
|
73
|
+
border-width: 15px 13px 0;
|
|
74
|
+
${0}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& > .tippy-arrow:after {
|
|
78
|
+
bottom: -15px;
|
|
79
|
+
left: -5px;
|
|
80
|
+
border-width: 15px 13px 0;
|
|
81
|
+
border-top-color: initial;
|
|
82
|
+
transform-origin: center top;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&[data-placement^='right'] {
|
|
87
|
+
& > .tippy-arrow:before {
|
|
88
|
+
bottom: -5px;
|
|
89
|
+
left: -16px;
|
|
90
|
+
border-width: 13px 15px 13px 0;
|
|
91
|
+
${0}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
& > .tippy-arrow:after {
|
|
95
|
+
bottom: -5px;
|
|
96
|
+
left: -15px;
|
|
97
|
+
border-width: 13px 15px 13px 0;
|
|
98
|
+
border-right-color: initial;
|
|
99
|
+
transform-origin: center top;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&[data-placement^='bottom'] {
|
|
104
|
+
& > .tippy-arrow:before {
|
|
105
|
+
top: -16px;
|
|
106
|
+
left: -5px;
|
|
107
|
+
border-width: 0 13px 15px 13px;
|
|
108
|
+
${0}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
& > .tippy-arrow:after {
|
|
112
|
+
top: -14.5px;
|
|
113
|
+
left: -5px;
|
|
114
|
+
border-width: 0 13px 15px 13px;
|
|
115
|
+
border-bottom-color: initial;
|
|
116
|
+
transform-origin: center top;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[data-placement^='left'] {
|
|
121
|
+
& > .tippy-arrow::before {
|
|
122
|
+
bottom: -5px;
|
|
123
|
+
right: -16px;
|
|
124
|
+
border-width: 13px 0 13px 15px;
|
|
125
|
+
${0}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
& > .tippy-arrow::after {
|
|
129
|
+
bottom: -5px;
|
|
130
|
+
right: -15px;
|
|
131
|
+
border-width: 13px 0 13px 15px;
|
|
132
|
+
border-left-color: initial;
|
|
133
|
+
transform-origin: center top;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
`), props => props.theme.primaryFontFamily, props => props.maxWidth && styled.css(_t2 || (_t2 = _`
|
|
137
|
+
max-width: ${0};
|
|
138
|
+
`), props.maxWidth), props => props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')), props => props.theme.themeProp('box-shadow', `0px 1px 6px -3px ${polished.rgba(props.theme.getColor('black'), 0.7)}`, `0 1px 6px -4px ${props.theme.getColor('black')}`), props => props.theme.themeProp('border', `1px solid ${props.theme.getColor('gray-800')}`, `1px solid ${props.theme.getColor('gray-300')}`), props => props.contextMenu && styled.css(_t3 || (_t3 = _`
|
|
139
|
+
border-radius: 4px;
|
|
140
|
+
|
|
141
|
+
${0}
|
|
142
|
+
|
|
143
|
+
${0}
|
|
144
|
+
`), props => props.theme.themeProp('border', 'none', 'none'), props => props.theme.themeProp('box-shadow', `none`, `0 1px 6px ${polished.rgba(props.theme.getColor('gray-900'), 0.3)}`)), props => props.contextMenuSublevel && styled.css(_t4 || (_t4 = _`
|
|
145
|
+
&[data-placement^='right-start'],
|
|
146
|
+
&[data-placement^='left-start'] {
|
|
147
|
+
margin-top: -4px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&[data-placement^='left'] {
|
|
151
|
+
margin-right: -6px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&[data-placement^='right'] {
|
|
155
|
+
margin-left: -6px;
|
|
156
|
+
}
|
|
157
|
+
`)), props => props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('white'), 1), props => props.theme.themeProp('border-top-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1), props => props.theme.themeProp('border-right-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1), props => props.theme.themeProp('border-bottom-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1), props => props.theme.themeProp('border-left-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1));
|
|
158
|
+
|
|
159
|
+
exports.Popover = Popover;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var index$1 = require('../../../node_modules/prop-types/index.js');
|
|
7
|
+
var index = require('../../../node_modules/react/index.js');
|
|
8
|
+
var Tab_styled = require('./Tab.styled.js');
|
|
9
|
+
|
|
10
|
+
const _excluded = ["children", "hidden"];
|
|
11
|
+
const Tab = index["default"].forwardRef(function Tab(_ref, forwardedRef) {
|
|
12
|
+
let {
|
|
13
|
+
children,
|
|
14
|
+
hidden
|
|
15
|
+
} = _ref,
|
|
16
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
if (hidden) return null;
|
|
18
|
+
return index["default"].createElement(Tab_styled.Tab, _rollupPluginBabelHelpers["extends"]({
|
|
19
|
+
ref: forwardedRef
|
|
20
|
+
}, props), children);
|
|
21
|
+
});
|
|
22
|
+
Tab.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
23
|
+
children: index$1["default"].any,
|
|
24
|
+
hidden: index$1["default"].bool
|
|
25
|
+
} : {};
|
|
26
|
+
Tab.defaultProps = {
|
|
27
|
+
hidden: false
|
|
28
|
+
};
|
|
29
|
+
var Tab$1 = Tab;
|
|
30
|
+
|
|
31
|
+
exports["default"] = Tab$1;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
let _ = t => t,
|
|
13
|
+
_t;
|
|
14
|
+
const Tab = styled__default["default"].p.attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
15
|
+
font-family: ${0};
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
border-bottom: 1px solid;
|
|
19
|
+
min-height: 35px;
|
|
20
|
+
`), props => props.theme.primaryFontFamily);
|
|
21
|
+
|
|
22
|
+
exports.Tab = Tab;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var lodash = require('lodash');
|
|
7
|
+
var index$2 = require('../../../node_modules/prop-types/index.js');
|
|
8
|
+
var index = require('../../../node_modules/react/index.js');
|
|
9
|
+
var Tabs_styled = require('./Tabs.styled.js');
|
|
10
|
+
var index$1 = require('../../../_virtual/index.js');
|
|
11
|
+
var Tab = require('../Tab/Tab.js');
|
|
12
|
+
|
|
13
|
+
const _excluded = ["children", "defaultMinHeight", "customPadding"];
|
|
14
|
+
const Tabs = index["default"].forwardRef(function Tabs(_ref, forwardedRef) {
|
|
15
|
+
let {
|
|
16
|
+
children,
|
|
17
|
+
defaultMinHeight,
|
|
18
|
+
customPadding
|
|
19
|
+
} = _ref,
|
|
20
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
const [activeTab, setActiveTab] = index$1.react.exports.useState(0);
|
|
22
|
+
const contentRef = index$1.react.exports.useRef(null);
|
|
23
|
+
const tabs = index$1.react.exports.useMemo(() => {
|
|
24
|
+
const tabs = [];
|
|
25
|
+
function extractChildren(children) {
|
|
26
|
+
index$1.react.exports.Children.forEach(children, (child, index) => {
|
|
27
|
+
var _child$props2;
|
|
28
|
+
if (lodash.isNil(child)) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
if (child.type === index$1.react.exports.Fragment) {
|
|
32
|
+
var _child$props;
|
|
33
|
+
extractChildren((_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.children);
|
|
34
|
+
}
|
|
35
|
+
if ((_child$props2 = child.props) !== null && _child$props2 !== void 0 && _child$props2.hidden) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
if (child.type === Tab["default"]) {
|
|
39
|
+
var _child$props3, _child$props4;
|
|
40
|
+
tabs.push({
|
|
41
|
+
key: index,
|
|
42
|
+
trigger: (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.trigger,
|
|
43
|
+
content: (_child$props4 = child.props) === null || _child$props4 === void 0 ? void 0 : _child$props4.children
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
extractChildren(children);
|
|
49
|
+
if (!tabs.some(tab => (tab === null || tab === void 0 ? void 0 : tab.key) === activeTab)) {
|
|
50
|
+
var _tabs$;
|
|
51
|
+
setActiveTab((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key);
|
|
52
|
+
}
|
|
53
|
+
return tabs;
|
|
54
|
+
}, [children]);
|
|
55
|
+
return index["default"].createElement(Tabs_styled.Tabs, _rollupPluginBabelHelpers["extends"]({
|
|
56
|
+
ref: forwardedRef
|
|
57
|
+
}, props, {
|
|
58
|
+
role: "tablist"
|
|
59
|
+
}), index["default"].createElement(Tabs_styled.TabHeaders, {
|
|
60
|
+
customPadding: customPadding
|
|
61
|
+
}, tabs.map(tab => index["default"].createElement(Tabs_styled.TabHeader, {
|
|
62
|
+
key: tab.key,
|
|
63
|
+
hidden: tab.hidden,
|
|
64
|
+
active: tab.key === activeTab,
|
|
65
|
+
onClick: () => setActiveTab(tab.key),
|
|
66
|
+
role: "tab"
|
|
67
|
+
}, tab.trigger))), index["default"].createElement(Tabs_styled.TabHeaderBorder, {
|
|
68
|
+
customPadding: customPadding
|
|
69
|
+
}), index["default"].createElement(Tabs_styled.TabContent, null, tabs.map(tab => index["default"].createElement("div", {
|
|
70
|
+
ref: tab.key === (activeTab === null || activeTab === void 0 ? void 0 : activeTab.key) ? contentRef : null,
|
|
71
|
+
key: tab.key,
|
|
72
|
+
role: "tabpanel",
|
|
73
|
+
hidden: tab.key !== activeTab,
|
|
74
|
+
style: {
|
|
75
|
+
minHeight: !lodash.isEmpty(defaultMinHeight) ? defaultMinHeight : ''
|
|
76
|
+
}
|
|
77
|
+
}, tab.content))));
|
|
78
|
+
});
|
|
79
|
+
Tabs.defaultProps = {
|
|
80
|
+
defaultMinHeight: '',
|
|
81
|
+
customPadding: 0
|
|
82
|
+
};
|
|
83
|
+
Tabs.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
84
|
+
children: index$2["default"].oneOfType([index$2["default"].array, index$2["default"].object]),
|
|
85
|
+
backgroundColor: index$2["default"].string,
|
|
86
|
+
defaultMinHeight: index$2["default"].string,
|
|
87
|
+
customPadding: index$2["default"].string
|
|
88
|
+
} : {};
|
|
89
|
+
var Tabs$1 = Tabs;
|
|
90
|
+
|
|
91
|
+
exports["default"] = Tabs$1;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
let _ = t => t,
|
|
13
|
+
_t,
|
|
14
|
+
_t2,
|
|
15
|
+
_t3,
|
|
16
|
+
_t4,
|
|
17
|
+
_t5,
|
|
18
|
+
_t6,
|
|
19
|
+
_t7,
|
|
20
|
+
_t8,
|
|
21
|
+
_t9,
|
|
22
|
+
_t10,
|
|
23
|
+
_t11;
|
|
24
|
+
const Tabs = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
25
|
+
display: block;
|
|
26
|
+
position: relative;
|
|
27
|
+
${0};
|
|
28
|
+
`), props => props.backgroundColor && styled.css(_t2 || (_t2 = _`
|
|
29
|
+
background-color: ${0};
|
|
30
|
+
`), props.backgroundColor));
|
|
31
|
+
const TabHeaders = styled__default["default"].ul.attrs(defaultTheme.applyDefaultTheme)(_t3 || (_t3 = _`
|
|
32
|
+
display: flex;
|
|
33
|
+
overflow-x: auto;
|
|
34
|
+
overflow-y: hidden;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
gap: 24px;
|
|
37
|
+
|
|
38
|
+
margin: 0;
|
|
39
|
+
${0};
|
|
40
|
+
${0};
|
|
41
|
+
`), props => !props.customPadding && styled.css(_t4 || (_t4 = _`
|
|
42
|
+
padding: 0;
|
|
43
|
+
`)), props => props.customPadding && styled.css(_t5 || (_t5 = _`
|
|
44
|
+
padding: 0 ${0};
|
|
45
|
+
`), props.customPadding));
|
|
46
|
+
const TabHeader = styled__default["default"].li.attrs(defaultTheme.applyDefaultTheme)(_t6 || (_t6 = _`
|
|
47
|
+
font-family: ${0};
|
|
48
|
+
text-transform: uppercase;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
font-size: 0.875rem;
|
|
51
|
+
display: flex;
|
|
52
|
+
padding-bottom: 8px;
|
|
53
|
+
letter-spacing: 0.6px;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
border-bottom: 1px solid;
|
|
56
|
+
border-color: transparent;
|
|
57
|
+
margin-bottom: 1px;
|
|
58
|
+
|
|
59
|
+
${0};
|
|
60
|
+
&&:hover:not(:focus) {
|
|
61
|
+
${0};
|
|
62
|
+
}
|
|
63
|
+
`), props => props.theme.secondaryFontFamily, props => props.active && styled.css(_t7 || (_t7 = _`
|
|
64
|
+
${0}
|
|
65
|
+
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-700'))), props => props.theme.themeProp('border-color', () => {
|
|
66
|
+
if (props.active) {
|
|
67
|
+
return props.theme.getColor('gray-400');
|
|
68
|
+
} else {
|
|
69
|
+
return props.theme.getColor('gray-400');
|
|
70
|
+
}
|
|
71
|
+
}, () => {
|
|
72
|
+
if (props.active) {
|
|
73
|
+
return props.theme.getColor('gray-700');
|
|
74
|
+
} else {
|
|
75
|
+
return props.theme.getColor('gray-700');
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
const TabContent = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t8 || (_t8 = _`
|
|
79
|
+
display: block;
|
|
80
|
+
`));
|
|
81
|
+
const TabHeaderBorder = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t9 || (_t9 = _`
|
|
82
|
+
border-top: 1px solid;
|
|
83
|
+
|
|
84
|
+
${0};
|
|
85
|
+
${0};
|
|
86
|
+
${0};
|
|
87
|
+
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), '#F0F2F5'), props => !props.customPadding && styled.css(_t10 || (_t10 = _`
|
|
88
|
+
margin: -2px 0;
|
|
89
|
+
`)), props => props.customPadding && styled.css(_t11 || (_t11 = _`
|
|
90
|
+
margin: -2px ${0};
|
|
91
|
+
`), props.customPadding));
|
|
92
|
+
|
|
93
|
+
exports.TabContent = TabContent;
|
|
94
|
+
exports.TabHeader = TabHeader;
|
|
95
|
+
exports.TabHeaderBorder = TabHeaderBorder;
|
|
96
|
+
exports.TabHeaders = TabHeaders;
|
|
97
|
+
exports.Tabs = Tabs;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var index$1 = require('../../../node_modules/prop-types/index.js');
|
|
7
|
+
var index = require('../../../node_modules/react/index.js');
|
|
8
|
+
var Tooltip_styled = require('./Tooltip.styled.js');
|
|
9
|
+
|
|
10
|
+
const _excluded = ["content", "interactive", "placement", "duration", "trigger", "visible", "children"];
|
|
11
|
+
const Tooltip = index["default"].forwardRef(function Tooltip(_ref, ref) {
|
|
12
|
+
let {
|
|
13
|
+
content,
|
|
14
|
+
interactive,
|
|
15
|
+
placement,
|
|
16
|
+
duration,
|
|
17
|
+
trigger,
|
|
18
|
+
visible,
|
|
19
|
+
children
|
|
20
|
+
} = _ref,
|
|
21
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
return index["default"].createElement("div", null, index["default"].createElement(Tooltip_styled.Tooltip, _rollupPluginBabelHelpers["extends"]({
|
|
23
|
+
ref: ref,
|
|
24
|
+
content: content,
|
|
25
|
+
interactive: interactive,
|
|
26
|
+
placement: placement,
|
|
27
|
+
duration: duration,
|
|
28
|
+
trigger: trigger,
|
|
29
|
+
visible: visible,
|
|
30
|
+
animation: 'shift-away-subtle'
|
|
31
|
+
}, props), children));
|
|
32
|
+
});
|
|
33
|
+
Tooltip.defaultProps = {
|
|
34
|
+
content: 'Tooltip',
|
|
35
|
+
interactive: false,
|
|
36
|
+
placement: 'top',
|
|
37
|
+
duration: 350
|
|
38
|
+
};
|
|
39
|
+
Tooltip.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
40
|
+
content: index$1["default"].oneOfType([index$1["default"].string, index$1["default"].element]).isRequired,
|
|
41
|
+
interactive: index$1["default"].bool,
|
|
42
|
+
placement: index$1["default"].oneOf(['top', 'top-start', 'top-end', 'right', 'right-start', 'right-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', 'auto-end']),
|
|
43
|
+
duration: index$1["default"].number,
|
|
44
|
+
trigger: index$1["default"].oneOf(['mouseenter', 'mouseenter focus', 'click', 'focusin', 'mouseenter click', '']),
|
|
45
|
+
visible: index$1["default"].bool,
|
|
46
|
+
children: index$1["default"].node
|
|
47
|
+
} : {};
|
|
48
|
+
var Tooltip$1 = Tooltip;
|
|
49
|
+
|
|
50
|
+
exports["default"] = Tooltip$1;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
7
|
+
var TippyTooltip = require('@tippyjs/react');
|
|
8
|
+
require('../../../node_modules/tippy.js/animations/shift-away-subtle.css.js');
|
|
9
|
+
require('../../../node_modules/tippy.js/dist/tippy.css.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
|
+
var TippyTooltip__default = /*#__PURE__*/_interopDefaultLegacy(TippyTooltip);
|
|
15
|
+
|
|
16
|
+
let _ = t => t,
|
|
17
|
+
_t;
|
|
18
|
+
const Tooltip = styled__default["default"](TippyTooltip__default["default"]).attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
19
|
+
font-family: ${0};
|
|
20
|
+
font-size: 1rem;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
background: ${0};
|
|
23
|
+
border-radius: 3px;
|
|
24
|
+
pointer-events: default !important;
|
|
25
|
+
.tippy-content {
|
|
26
|
+
padding: 9px 12px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tippy-arrow {
|
|
30
|
+
color: ${0};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
a {
|
|
34
|
+
color: inherit;
|
|
35
|
+
}
|
|
36
|
+
`), props => props.theme.primaryFontFamily, props => props.theme.getColor('gray-700'), props => props.theme.getColor('gray-700'));
|
|
37
|
+
|
|
38
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var index = require('../../../node_modules/react/index.js');
|
|
7
|
+
var index$1 = require('../../../node_modules/prop-types/index.js');
|
|
8
|
+
var VerificationStatusIcon_styled = require('./VerificationStatusIcon.styled.js');
|
|
9
|
+
var verification = require('../../../icons/verification.svg.js');
|
|
10
|
+
|
|
11
|
+
const _excluded = ["status", "iconHeight", "background"];
|
|
12
|
+
const VerificationStatusIcon = index["default"].forwardRef(function VerificationStatusIcon(_ref, forwardedRef) {
|
|
13
|
+
let {
|
|
14
|
+
status,
|
|
15
|
+
iconHeight,
|
|
16
|
+
background
|
|
17
|
+
} = _ref,
|
|
18
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return index["default"].createElement(VerificationStatusIcon_styled.VerificationIconWrapper, {
|
|
20
|
+
background: background
|
|
21
|
+
}, index["default"].createElement(VerificationStatusIcon_styled.VerificationStatusIcon, _rollupPluginBabelHelpers["extends"]({
|
|
22
|
+
iconHeight: iconHeight,
|
|
23
|
+
background: background,
|
|
24
|
+
ref: forwardedRef
|
|
25
|
+
}, props), index["default"].createElement(verification.ReactComponent, null), index["default"].createElement(VerificationStatusIcon_styled.VerificationStatusColor, {
|
|
26
|
+
iconHeight: iconHeight,
|
|
27
|
+
status: status,
|
|
28
|
+
background: background
|
|
29
|
+
})));
|
|
30
|
+
});
|
|
31
|
+
VerificationStatusIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
32
|
+
status: index$1["default"].oneOf(['verified', 'pending', 'rejected', 'mixed']).isRequired,
|
|
33
|
+
iconHeight: index$1["default"].number,
|
|
34
|
+
background: index$1["default"].bool
|
|
35
|
+
} : {};
|
|
36
|
+
VerificationStatusIcon.defaultProps = {
|
|
37
|
+
iconHeight: 15,
|
|
38
|
+
background: false
|
|
39
|
+
};
|
|
40
|
+
var VerificationStatusIcon$1 = VerificationStatusIcon;
|
|
41
|
+
|
|
42
|
+
exports["default"] = VerificationStatusIcon$1;
|