@ntbjs/react-components 1.3.0-rc.9 → 2.0.0-rc.5
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/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.production.min.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.browser.esm.js +445 -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-f0de968e.browser.esm.js +116 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +63 -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.browser.esm.js +14 -0
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +51 -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/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/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-is/cjs/react-is.development.js +228 -0
- package/cjs/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/react-is/index.js +13 -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.browser.esm.js +10 -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/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.production.min.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.browser.esm.js +441 -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-f0de968e.browser.esm.js +107 -0
- package/esm/node_modules/@emotion/react/dist/emotion-react.browser.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.browser.esm.js +10 -0
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -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/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/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-is/cjs/react-is.development.js +223 -0
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/react-is/index.js +11 -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.browser.esm.js +6 -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
package/Tooltip-298f0547.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
|
-
var index = require('./index-39bc450c.js');
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var TippyTooltip = require('@tippyjs/react');
|
|
8
|
-
require('./shift-away-subtle-45129125.js');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
|
-
var TippyTooltip__default = /*#__PURE__*/_interopDefaultLegacy(TippyTooltip);
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
var Tooltip$1 = styled__default['default'](TippyTooltip__default['default']).attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n font-family: ", ";\n font-size: 1rem;\n font-weight: 400;\n background: ", ";\n border-radius: 3px;\n pointer-events: default !important;\n .tippy-content {\n padding: 9px 12px;\n }\n\n .tippy-arrow {\n color: ", ";\n }\n\n a {\n color: inherit;\n }\n"])), function (props) {
|
|
18
|
-
return props.theme.primaryFontFamily;
|
|
19
|
-
}, function (props) {
|
|
20
|
-
return props.theme.getColor('gray-700');
|
|
21
|
-
}, function (props) {
|
|
22
|
-
return props.theme.getColor('gray-700');
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var Tooltip = React__default['default'].forwardRef(function Tooltip(_ref, ref) {
|
|
26
|
-
var content = _ref.content,
|
|
27
|
-
interactive = _ref.interactive,
|
|
28
|
-
placement = _ref.placement,
|
|
29
|
-
duration = _ref.duration,
|
|
30
|
-
trigger = _ref.trigger,
|
|
31
|
-
visible = _ref.visible,
|
|
32
|
-
children = _ref.children,
|
|
33
|
-
props = defaultTheme._objectWithoutProperties(_ref, ["content", "interactive", "placement", "duration", "trigger", "visible", "children"]);
|
|
34
|
-
|
|
35
|
-
return React__default['default'].createElement("div", null, React__default['default'].createElement(Tooltip$1, defaultTheme._extends({
|
|
36
|
-
ref: ref,
|
|
37
|
-
content: content,
|
|
38
|
-
interactive: interactive,
|
|
39
|
-
placement: placement,
|
|
40
|
-
duration: duration,
|
|
41
|
-
trigger: trigger,
|
|
42
|
-
visible: visible,
|
|
43
|
-
animation: 'shift-away-subtle'
|
|
44
|
-
}, props), children));
|
|
45
|
-
});
|
|
46
|
-
Tooltip.defaultProps = {
|
|
47
|
-
content: 'Tooltip',
|
|
48
|
-
interactive: false,
|
|
49
|
-
placement: 'top',
|
|
50
|
-
duration: 350
|
|
51
|
-
};
|
|
52
|
-
Tooltip.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
53
|
-
content: index.PropTypes.oneOfType([index.PropTypes.string, index.PropTypes.element]).isRequired,
|
|
54
|
-
interactive: index.PropTypes.bool,
|
|
55
|
-
placement: index.PropTypes.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']),
|
|
56
|
-
duration: index.PropTypes.number,
|
|
57
|
-
trigger: index.PropTypes.oneOf(['mouseenter', 'mouseenter focus', 'click', 'focusin', 'mouseenter click', '']),
|
|
58
|
-
visible: index.PropTypes.bool,
|
|
59
|
-
children: index.PropTypes.node
|
|
60
|
-
} : {};
|
|
61
|
-
|
|
62
|
-
exports.Tooltip = Tooltip;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var index = require('./index-39bc450c.js');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return e[k];
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
n['default'] = e;
|
|
27
|
-
return Object.freeze(n);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
33
|
-
|
|
34
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
35
|
-
var VerificationIconWrapper = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n ", ";\n"])), function (props) {
|
|
36
|
-
return props.background && styled.css(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n background-color: #000 !important;\n width: fit-content;\n padding: 6px 14px 6px 9px;\n border-radius: 15px;\n}\n "])));
|
|
37
|
-
});
|
|
38
|
-
var VerificationStatusIcon$1 = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n position: relative;\n font: normal normal normal 12px/16px Roboto;\n ", ";\n\n ", ";\n\n svg {\n height: ", "px;\n }\n"])), function (props) {
|
|
39
|
-
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700'));
|
|
40
|
-
}, function (props) {
|
|
41
|
-
return props.background && props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-100'));
|
|
42
|
-
}, function (props) {
|
|
43
|
-
var _props$iconHeight;
|
|
44
|
-
|
|
45
|
-
return (_props$iconHeight = props.iconHeight) !== null && _props$iconHeight !== void 0 ? _props$iconHeight : 15;
|
|
46
|
-
});
|
|
47
|
-
var VerificationStatusColor = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n bottom: 0;\n left: ", "px;\n width: ", "px;\n height: ", "px;\n border-radius: 50%;\n ", ";\n"])), function (props) {
|
|
48
|
-
var _props$iconHeight2;
|
|
49
|
-
|
|
50
|
-
return ((_props$iconHeight2 = props.iconHeight) !== null && _props$iconHeight2 !== void 0 ? _props$iconHeight2 : 15) * 2 / 3;
|
|
51
|
-
}, function (props) {
|
|
52
|
-
var _props$iconHeight3;
|
|
53
|
-
|
|
54
|
-
return ((_props$iconHeight3 = props.iconHeight) !== null && _props$iconHeight3 !== void 0 ? _props$iconHeight3 : 15) * 2 / 3;
|
|
55
|
-
}, function (props) {
|
|
56
|
-
var _props$iconHeight4;
|
|
57
|
-
|
|
58
|
-
return ((_props$iconHeight4 = props.iconHeight) !== null && _props$iconHeight4 !== void 0 ? _props$iconHeight4 : 15) * 2 / 3;
|
|
59
|
-
}, function (props) {
|
|
60
|
-
var darkThemeColor = props.theme.getColor('gray-100');
|
|
61
|
-
var lightThemeColor = props.theme.getColor('gray-500');
|
|
62
|
-
|
|
63
|
-
if (props.status === 'verified') {
|
|
64
|
-
darkThemeColor = props.theme.getColor('emerald-500');
|
|
65
|
-
lightThemeColor = props.theme.getColor('emerald-500');
|
|
66
|
-
} else if (props.status === 'pending') {
|
|
67
|
-
darkThemeColor = props.theme.getColor('signal-yellow-500');
|
|
68
|
-
lightThemeColor = props.theme.getColor('signal-yellow-500');
|
|
69
|
-
} else if (props.status === 'rejected') {
|
|
70
|
-
darkThemeColor = props.theme.getColor('red-600');
|
|
71
|
-
lightThemeColor = props.theme.getColor('red-600');
|
|
72
|
-
} else if (props.status === 'mixed') {
|
|
73
|
-
darkThemeColor = '#008CDB';
|
|
74
|
-
lightThemeColor = '#008CDB';
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return props.theme.themeProp('background-color', darkThemeColor, lightThemeColor);
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
81
|
-
|
|
82
|
-
var _ref = /*#__PURE__*/React__namespace.createElement("path", {
|
|
83
|
-
fill: "currentColor",
|
|
84
|
-
d: "M9.3 12.662q-1.698 0-2.864-1.166T5.27 8.632q0-1.697 1.166-2.864T9.3 4.602q1.698 0 2.864 1.166t1.166 2.864q0 1.698-1.166 2.864T9.3 12.662zm0-1.86q.925 0 1.548-.622.622-.622.622-1.548t-.622-1.547q-.623-.623-1.548-.623t-1.548.623q-.622.622-.622 1.547t.622 1.548q.623.622 1.548.622zm0 12.686q-4.023-1.097-6.661-4.735Q0 15.113 0 10.616V3.482L9.3 0l9.3 3.482v7.134q0 4.498-2.639 8.137-2.638 3.639-6.661 4.735zm0-11.744zm0-9.765L1.86 4.757v5.86q0 1.769.507 3.421.507 1.653 1.408 3.083 1.254-.639 2.626-.999 1.373-.36 2.899-.36t2.898.36q1.373.36 2.627 1 .901-1.431 1.408-3.084.507-1.652.507-3.422V4.757L9.3 1.98zm0 15.643q-1.2 0-2.307.26-1.108.26-2.093.73.923 1.025 2.03 1.773 1.109.747 2.37 1.143 1.262-.395 2.363-1.143 1.102-.748 2.025-1.773-.985-.47-2.087-.73-1.102-.26-2.301-.26z"
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
function SvgVerification(props) {
|
|
88
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
89
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
90
|
-
viewBox: "-2.5 0 24 24"
|
|
91
|
-
}, props), _ref);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var VerificationStatusIcon = React__default['default'].forwardRef(function VerificationStatusIcon(_ref, forwardedRef) {
|
|
95
|
-
var status = _ref.status,
|
|
96
|
-
iconHeight = _ref.iconHeight,
|
|
97
|
-
background = _ref.background,
|
|
98
|
-
props = defaultTheme._objectWithoutProperties(_ref, ["status", "iconHeight", "background"]);
|
|
99
|
-
|
|
100
|
-
return React__default['default'].createElement(VerificationIconWrapper, {
|
|
101
|
-
background: background
|
|
102
|
-
}, React__default['default'].createElement(VerificationStatusIcon$1, defaultTheme._extends({
|
|
103
|
-
iconHeight: iconHeight,
|
|
104
|
-
background: background,
|
|
105
|
-
ref: forwardedRef
|
|
106
|
-
}, props), React__default['default'].createElement(SvgVerification, null), React__default['default'].createElement(VerificationStatusColor, {
|
|
107
|
-
iconHeight: iconHeight,
|
|
108
|
-
status: status,
|
|
109
|
-
background: background
|
|
110
|
-
})));
|
|
111
|
-
});
|
|
112
|
-
VerificationStatusIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
113
|
-
status: index.PropTypes.oneOf(['verified', 'pending', 'rejected', 'mixed']).isRequired,
|
|
114
|
-
iconHeight: index.PropTypes.number,
|
|
115
|
-
background: index.PropTypes.bool
|
|
116
|
-
} : {};
|
|
117
|
-
VerificationStatusIcon.defaultProps = {
|
|
118
|
-
iconHeight: 15,
|
|
119
|
-
background: false
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
exports.VerificationStatusIcon = VerificationStatusIcon;
|
package/close-ebf2f3cf.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return e[k];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n['default'] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
-
|
|
27
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
28
|
-
|
|
29
|
-
var _ref = /*#__PURE__*/React__namespace.createElement("path", {
|
|
30
|
-
fill: "currentColor",
|
|
31
|
-
d: "M2.1 27.3L0 25.2l11.55-11.55L0 2.1 2.1 0l11.55 11.55L25.2 0l2.1 2.1-11.55 11.55L27.3 25.2l-2.1 2.1-11.55-11.55L2.1 27.3z"
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
function SvgClose(props) {
|
|
35
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
36
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
-
viewBox: "0 0 27.3 27.3"
|
|
38
|
-
}, props), _ref);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.SvgClose = SvgClose;
|
package/data/Alert/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Alert = require('../../Alert-e9f818d6.js');
|
|
4
|
-
require('../../defaultTheme-fcd45bd0.js');
|
|
5
|
-
require('styled-components');
|
|
6
|
-
require('react');
|
|
7
|
-
require('../../index-39bc450c.js');
|
|
8
|
-
require('lodash');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
module.exports = Alert.Alert;
|
package/data/Badge/index.js
DELETED
package/data/Popover/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Popover = require('../../Popover-a76d0fe5.js');
|
|
4
|
-
require('../../defaultTheme-fcd45bd0.js');
|
|
5
|
-
require('styled-components');
|
|
6
|
-
require('lodash');
|
|
7
|
-
require('../../index-39bc450c.js');
|
|
8
|
-
require('react');
|
|
9
|
-
require('polished');
|
|
10
|
-
require('@tippyjs/react');
|
|
11
|
-
require('../../shift-away-subtle-45129125.js');
|
|
12
|
-
require('popper-max-size-modifier');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
module.exports = Popover.Popover;
|
package/data/Tab/index.js
DELETED
package/data/Tabs/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Tabs = require('../../Tabs-8e4de5a5.js');
|
|
4
|
-
require('../../defaultTheme-fcd45bd0.js');
|
|
5
|
-
require('styled-components');
|
|
6
|
-
require('lodash');
|
|
7
|
-
require('../../index-39bc450c.js');
|
|
8
|
-
require('react');
|
|
9
|
-
require('../../Tab-87287c6e.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
module.exports = Tabs.Tabs;
|
package/data/Tooltip/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Tooltip = require('../../Tooltip-298f0547.js');
|
|
4
|
-
require('../../defaultTheme-fcd45bd0.js');
|
|
5
|
-
require('styled-components');
|
|
6
|
-
require('../../index-39bc450c.js');
|
|
7
|
-
require('react');
|
|
8
|
-
require('@tippyjs/react');
|
|
9
|
-
require('../../shift-away-subtle-45129125.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
module.exports = Tooltip.Tooltip;
|
package/data/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Alert = require('../Alert-e9f818d6.js');
|
|
6
|
-
var Badge = require('../Badge-72b369a6.js');
|
|
7
|
-
var Popover = require('../Popover-a76d0fe5.js');
|
|
8
|
-
var Tab = require('../Tab-87287c6e.js');
|
|
9
|
-
var Tabs = require('../Tabs-8e4de5a5.js');
|
|
10
|
-
var Tooltip = require('../Tooltip-298f0547.js');
|
|
11
|
-
var VerificationStatusIcon = require('../VerificationStatusIcon-d596165f.js');
|
|
12
|
-
require('../defaultTheme-fcd45bd0.js');
|
|
13
|
-
require('styled-components');
|
|
14
|
-
require('react');
|
|
15
|
-
require('../index-39bc450c.js');
|
|
16
|
-
require('lodash');
|
|
17
|
-
require('polished');
|
|
18
|
-
require('@tippyjs/react');
|
|
19
|
-
require('../shift-away-subtle-45129125.js');
|
|
20
|
-
require('popper-max-size-modifier');
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.Alert = Alert.Alert;
|
|
25
|
-
exports.Badge = Badge.Badge;
|
|
26
|
-
exports.Popover = Popover.Popover;
|
|
27
|
-
exports.Tab = Tab.Tab;
|
|
28
|
-
exports.Tabs = Tabs.Tabs;
|
|
29
|
-
exports.Tooltip = Tooltip.Tooltip;
|
|
30
|
-
exports.VerificationStatusIcon = VerificationStatusIcon.VerificationStatusIcon;
|
package/defaultTheme-fcd45bd0.js
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styled = require('styled-components');
|
|
4
|
-
|
|
5
|
-
function ownKeys(object, enumerableOnly) {
|
|
6
|
-
var keys = Object.keys(object);
|
|
7
|
-
|
|
8
|
-
if (Object.getOwnPropertySymbols) {
|
|
9
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
-
|
|
11
|
-
if (enumerableOnly) {
|
|
12
|
-
symbols = symbols.filter(function (sym) {
|
|
13
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
keys.push.apply(keys, symbols);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return keys;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function _objectSpread2(target) {
|
|
24
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
25
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
26
|
-
|
|
27
|
-
if (i % 2) {
|
|
28
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
29
|
-
_defineProperty(target, key, source[key]);
|
|
30
|
-
});
|
|
31
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
32
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
33
|
-
} else {
|
|
34
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
35
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return target;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function _typeof(obj) {
|
|
44
|
-
"@babel/helpers - typeof";
|
|
45
|
-
|
|
46
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
47
|
-
_typeof = function (obj) {
|
|
48
|
-
return typeof obj;
|
|
49
|
-
};
|
|
50
|
-
} else {
|
|
51
|
-
_typeof = function (obj) {
|
|
52
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return _typeof(obj);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function _defineProperty(obj, key, value) {
|
|
60
|
-
if (key in obj) {
|
|
61
|
-
Object.defineProperty(obj, key, {
|
|
62
|
-
value: value,
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true,
|
|
65
|
-
writable: true
|
|
66
|
-
});
|
|
67
|
-
} else {
|
|
68
|
-
obj[key] = value;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return obj;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function _extends() {
|
|
75
|
-
_extends = Object.assign || function (target) {
|
|
76
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
77
|
-
var source = arguments[i];
|
|
78
|
-
|
|
79
|
-
for (var key in source) {
|
|
80
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
81
|
-
target[key] = source[key];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return target;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return _extends.apply(this, arguments);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
93
|
-
if (source == null) return {};
|
|
94
|
-
var target = {};
|
|
95
|
-
var sourceKeys = Object.keys(source);
|
|
96
|
-
var key, i;
|
|
97
|
-
|
|
98
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
99
|
-
key = sourceKeys[i];
|
|
100
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
101
|
-
target[key] = source[key];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return target;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function _objectWithoutProperties(source, excluded) {
|
|
108
|
-
if (source == null) return {};
|
|
109
|
-
|
|
110
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
111
|
-
|
|
112
|
-
var key, i;
|
|
113
|
-
|
|
114
|
-
if (Object.getOwnPropertySymbols) {
|
|
115
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
116
|
-
|
|
117
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
118
|
-
key = sourceSymbolKeys[i];
|
|
119
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
120
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
121
|
-
target[key] = source[key];
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return target;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
129
|
-
if (!raw) {
|
|
130
|
-
raw = strings.slice(0);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
134
|
-
raw: {
|
|
135
|
-
value: Object.freeze(raw)
|
|
136
|
-
}
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function _slicedToArray(arr, i) {
|
|
141
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function _toConsumableArray(arr) {
|
|
145
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function _arrayWithoutHoles(arr) {
|
|
149
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function _arrayWithHoles(arr) {
|
|
153
|
-
if (Array.isArray(arr)) return arr;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function _iterableToArray(iter) {
|
|
157
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function _iterableToArrayLimit(arr, i) {
|
|
161
|
-
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
|
162
|
-
|
|
163
|
-
if (_i == null) return;
|
|
164
|
-
var _arr = [];
|
|
165
|
-
var _n = true;
|
|
166
|
-
var _d = false;
|
|
167
|
-
|
|
168
|
-
var _s, _e;
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
172
|
-
_arr.push(_s.value);
|
|
173
|
-
|
|
174
|
-
if (i && _arr.length === i) break;
|
|
175
|
-
}
|
|
176
|
-
} catch (err) {
|
|
177
|
-
_d = true;
|
|
178
|
-
_e = err;
|
|
179
|
-
} finally {
|
|
180
|
-
try {
|
|
181
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
182
|
-
} finally {
|
|
183
|
-
if (_d) throw _e;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return _arr;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
191
|
-
if (!o) return;
|
|
192
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
193
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
194
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
195
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
196
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function _arrayLikeToArray(arr, len) {
|
|
200
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
201
|
-
|
|
202
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
203
|
-
|
|
204
|
-
return arr2;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function _nonIterableSpread() {
|
|
208
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function _nonIterableRest() {
|
|
212
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
216
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
217
|
-
|
|
218
|
-
if (!it) {
|
|
219
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
220
|
-
if (it) o = it;
|
|
221
|
-
var i = 0;
|
|
222
|
-
|
|
223
|
-
var F = function () {};
|
|
224
|
-
|
|
225
|
-
return {
|
|
226
|
-
s: F,
|
|
227
|
-
n: function () {
|
|
228
|
-
if (i >= o.length) return {
|
|
229
|
-
done: true
|
|
230
|
-
};
|
|
231
|
-
return {
|
|
232
|
-
done: false,
|
|
233
|
-
value: o[i++]
|
|
234
|
-
};
|
|
235
|
-
},
|
|
236
|
-
e: function (e) {
|
|
237
|
-
throw e;
|
|
238
|
-
},
|
|
239
|
-
f: F
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
var normalCompletion = true,
|
|
247
|
-
didErr = false,
|
|
248
|
-
err;
|
|
249
|
-
return {
|
|
250
|
-
s: function () {
|
|
251
|
-
it = it.call(o);
|
|
252
|
-
},
|
|
253
|
-
n: function () {
|
|
254
|
-
var step = it.next();
|
|
255
|
-
normalCompletion = step.done;
|
|
256
|
-
return step;
|
|
257
|
-
},
|
|
258
|
-
e: function (e) {
|
|
259
|
-
didErr = true;
|
|
260
|
-
err = e;
|
|
261
|
-
},
|
|
262
|
-
f: function () {
|
|
263
|
-
try {
|
|
264
|
-
if (!normalCompletion && it.return != null) it.return();
|
|
265
|
-
} finally {
|
|
266
|
-
if (didErr) throw err;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
function styleInject(css, ref) {
|
|
273
|
-
if ( ref === void 0 ) ref = {};
|
|
274
|
-
var insertAt = ref.insertAt;
|
|
275
|
-
|
|
276
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
277
|
-
|
|
278
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
279
|
-
var style = document.createElement('style');
|
|
280
|
-
style.type = 'text/css';
|
|
281
|
-
|
|
282
|
-
if (insertAt === 'top') {
|
|
283
|
-
if (head.firstChild) {
|
|
284
|
-
head.insertBefore(style, head.firstChild);
|
|
285
|
-
} else {
|
|
286
|
-
head.appendChild(style);
|
|
287
|
-
}
|
|
288
|
-
} else {
|
|
289
|
-
head.appendChild(style);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
if (style.styleSheet) {
|
|
293
|
-
style.styleSheet.cssText = css;
|
|
294
|
-
} else {
|
|
295
|
-
style.appendChild(document.createTextNode(css));
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
var css_248z = "/**\n * Colors\n */\n";
|
|
300
|
-
var importedColors = {"orange-500":"#ff9900","orange-400":"#ffcb7e","emerald-500":"#30826a","emerald-400":"#64b49d","emerald-300":"#bfe0d5","emerald-200":"#f3f9f7","gray-900":"#141313","gray-800":"#272727","gray-700":"#323232","gray-600":"#505050","gray-500":"#767676","gray-400":"#b0b6b9","gray-300":"#d9dce0","gray-200":"#eff1f4","gray-100":"#f7f8f9","cercise-500":"#5f1031","cercise-400":"#854962","cercise-300":"#d099b0","cercise-100":"#f9f3f5","red-600":"#7f1b1b","red-500":"#d83000","red-200":"#fbeae6","brown-500":"#634e01","signal-yellow-500":"#f4e21e","signal-yellow-400":"#fff36c","signal-green-500":"#00bd98","signal-green-400":"#a3ffe0","black":"#202435","white":"#ffffff"};
|
|
301
|
-
styleInject(css_248z);
|
|
302
|
-
|
|
303
|
-
var _templateObject;
|
|
304
|
-
var defaultTheme = {
|
|
305
|
-
getColor: function getColor(name) {
|
|
306
|
-
if (!importedColors[name]) throw Error("The color \"".concat(name, "\" is not registered."));
|
|
307
|
-
return importedColors[name];
|
|
308
|
-
},
|
|
309
|
-
primaryFontFamily: "'Roboto', sans-serif",
|
|
310
|
-
secondaryFontFamily: "'Overpass', sans-serif",
|
|
311
|
-
themeProp: themeProp
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
function themeProp(property, darkMode, lightMode) {
|
|
315
|
-
var specificity = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;
|
|
316
|
-
var specificityString = Array(specificity).fill("&").join("");
|
|
317
|
-
return styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body.dark-theme ", " {\n ", ": ", ";\n }\n\n body.light-theme ", " {\n ", ": ", ";\n }\n\n body:not(.light-theme):not(.dark-theme) ", " {\n ", ": ", ";\n\n @media (prefers-color-scheme: dark) {\n ", ": ", ";\n }\n }\n "])), specificityString, property, darkMode, specificityString, property, lightMode, specificityString, property, lightMode, property, darkMode);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
function applyDefaultTheme(_ref) {
|
|
321
|
-
var _ref$theme = _ref.theme,
|
|
322
|
-
theme = _ref$theme === void 0 ? {} : _ref$theme,
|
|
323
|
-
props = _objectWithoutProperties(_ref, ["theme"]);
|
|
324
|
-
|
|
325
|
-
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
326
|
-
theme: Object.assign({}, defaultTheme, theme)
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
exports._createForOfIteratorHelper = _createForOfIteratorHelper;
|
|
331
|
-
exports._extends = _extends;
|
|
332
|
-
exports._objectSpread2 = _objectSpread2;
|
|
333
|
-
exports._objectWithoutProperties = _objectWithoutProperties;
|
|
334
|
-
exports._slicedToArray = _slicedToArray;
|
|
335
|
-
exports._taggedTemplateLiteral = _taggedTemplateLiteral;
|
|
336
|
-
exports._toConsumableArray = _toConsumableArray;
|
|
337
|
-
exports._typeof = _typeof;
|
|
338
|
-
exports.applyDefaultTheme = applyDefaultTheme;
|
|
339
|
-
exports.styleInject = styleInject;
|