@ntbjs/react-components 1.3.0-rc.8 → 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/esm/node_modules/prop-types/factoryWithTypeCheckers.js +617 -0
- 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-46735b89.js +0 -61
- package/Alert-13b75102.js +0 -117
- package/AssetGallery-0d503207.js +0 -1923
- package/AssetPreviewTopBar-912c3469.js +0 -99
- package/Badge-757b0a39.js +0 -221
- package/Button-49f82b31.js +0 -264
- package/Checkbox-68dc38a8.js +0 -140
- package/CompactAutocompleteSelect-96137f48.js +0 -451
- package/CompactStarRating-15c1b812.js +0 -339
- package/CompactTextInput-198d0800.js +0 -349
- package/ContextMenu-4ec3d9f3.js +0 -32
- package/ContextMenuItem-ba2b697e.js +0 -110
- package/InputGroup-49fbc423.js +0 -28
- package/Instructions-2babb8a3.js +0 -263
- package/MultiLevelCheckboxSelect-e6e5cb90.js +0 -698
- package/MultiSelect-efd60232.js +0 -377
- package/Popover-569cd272.js +0 -146
- package/Radio-32d0513a.js +0 -86
- package/SectionSeparator-259a22ed.js +0 -37
- package/Switch-4a41585f.js +0 -107
- package/Tab-f499ecbc.js +0 -35
- package/Tabs-116aa951.js +0 -151
- package/TextArea-18fbcc9f.js +0 -375
- package/TextInput-0d109708.js +0 -236
- package/Tooltip-66daf6e3.js +0 -61
- package/VerificationStatusIcon-d5bfb67a.js +0 -121
- package/close-ebf2f3cf.js +0 -41
- package/data/Alert/index.js +0 -11
- package/data/Badge/index.js +0 -10
- package/data/Popover/index.js +0 -15
- package/data/Tab/index.js +0 -10
- package/data/Tabs/index.js +0 -12
- package/data/Tooltip/index.js +0 -12
- package/data/index.js +0 -29
- package/defaultTheme-ea44e34a.js +0 -1422
- package/edit-note-c47d292e.js +0 -41
- package/expand-more-94585605.js +0 -41
- package/inputs/ActionButton/index.js +0 -11
- package/inputs/Button/index.js +0 -18
- package/inputs/Checkbox/index.js +0 -12
- package/inputs/CompactAutocompleteSelect/index.js +0 -29
- package/inputs/CompactStarRating/index.js +0 -22
- package/inputs/CompactTextInput/index.js +0 -24
- package/inputs/MultiSelect/index.js +0 -16
- package/inputs/Radio/index.js +0 -12
- package/inputs/Switch/index.js +0 -12
- package/inputs/TextArea/index.js +0 -25
- package/inputs/TextInput/index.js +0 -14
- package/inputs/index.js +0 -59
- package/layout/InputGroup/index.js +0 -10
- package/layout/SectionSeparator/index.js +0 -10
- package/layout/index.js +0 -14
- package/react-select-creatable.esm-2f23d6c6.js +0 -7709
- package/shift-away-subtle-0bed9a3c.js +0 -9
- package/warning-circle-24522402.js +0 -41
- package/widgets/AssetGallery/index.js +0 -50
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -11
- package/widgets/ContextMenu/ContextMenuItem/index.js +0 -10
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -32
- package/widgets/ContextMenu/index.js +0 -10
- package/widgets/Instructions/index.js +0 -34
- package/widgets/index.js +0 -58
package/.eslintrc
CHANGED
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
"parserOptions": {
|
|
9
9
|
"sourceType": "module"
|
|
10
10
|
},
|
|
11
|
-
"ignorePatterns": [
|
|
12
|
-
"build",
|
|
13
|
-
"storybook-static"
|
|
14
|
-
],
|
|
11
|
+
"ignorePatterns": ["build", "storybook-static"],
|
|
15
12
|
"parser": "@babel/eslint-parser",
|
|
16
|
-
"extends": [
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
13
|
+
"extends": ["eslint:recommended", "plugin:react/recommended"],
|
|
14
|
+
"settings": {
|
|
15
|
+
"react": {
|
|
16
|
+
"version": "detect"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
20
19
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function _defineProperty(e, r, t) {
|
|
6
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
|
+
value: t,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[r] = t, e;
|
|
12
|
+
}
|
|
13
|
+
function _extends() {
|
|
14
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
15
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
16
|
+
var t = arguments[e];
|
|
17
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
18
|
+
}
|
|
19
|
+
return n;
|
|
20
|
+
}, _extends.apply(null, arguments);
|
|
21
|
+
}
|
|
22
|
+
function ownKeys(e, r) {
|
|
23
|
+
var t = Object.keys(e);
|
|
24
|
+
if (Object.getOwnPropertySymbols) {
|
|
25
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
26
|
+
r && (o = o.filter(function (r) {
|
|
27
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
28
|
+
})), t.push.apply(t, o);
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
function _objectSpread2(e) {
|
|
33
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
34
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
35
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
36
|
+
_defineProperty(e, r, t[r]);
|
|
37
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
38
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function _objectWithoutProperties(e, t) {
|
|
44
|
+
if (null == e) return {};
|
|
45
|
+
var o,
|
|
46
|
+
r,
|
|
47
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
48
|
+
if (Object.getOwnPropertySymbols) {
|
|
49
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
50
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
51
|
+
}
|
|
52
|
+
return i;
|
|
53
|
+
}
|
|
54
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
55
|
+
if (null == r) return {};
|
|
56
|
+
var t = {};
|
|
57
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
58
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
59
|
+
t[n] = r[n];
|
|
60
|
+
}
|
|
61
|
+
return t;
|
|
62
|
+
}
|
|
63
|
+
function _toPrimitive(t, r) {
|
|
64
|
+
if ("object" != typeof t || !t) return t;
|
|
65
|
+
var e = t[Symbol.toPrimitive];
|
|
66
|
+
if (void 0 !== e) {
|
|
67
|
+
var i = e.call(t, r || "default");
|
|
68
|
+
if ("object" != typeof i) return i;
|
|
69
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
+
}
|
|
71
|
+
return ("string" === r ? String : Number)(t);
|
|
72
|
+
}
|
|
73
|
+
function _toPropertyKey(t) {
|
|
74
|
+
var i = _toPrimitive(t, "string");
|
|
75
|
+
return "symbol" == typeof i ? i : i + "";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
exports.defineProperty = _defineProperty;
|
|
79
|
+
exports["extends"] = _extends;
|
|
80
|
+
exports.objectSpread2 = _objectSpread2;
|
|
81
|
+
exports.objectWithoutProperties = _objectWithoutProperties;
|
|
82
|
+
exports.objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
83
|
+
exports.toPrimitive = _toPrimitive;
|
|
84
|
+
exports.toPropertyKey = _toPropertyKey;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 Alert_styled = require('./Alert.styled.js');
|
|
9
|
+
var lodash = require('lodash');
|
|
10
|
+
|
|
11
|
+
const _excluded = ["type", "alertMessage", "align", "icon", "fontSize", "lineHeight", "lineClamp", "verticalPadding", "horizontalPadding", "width"];
|
|
12
|
+
const Alert = index["default"].forwardRef(function Alert(_ref, forwardedRef) {
|
|
13
|
+
let {
|
|
14
|
+
type,
|
|
15
|
+
alertMessage,
|
|
16
|
+
align,
|
|
17
|
+
icon,
|
|
18
|
+
fontSize,
|
|
19
|
+
lineHeight,
|
|
20
|
+
lineClamp,
|
|
21
|
+
verticalPadding,
|
|
22
|
+
horizontalPadding,
|
|
23
|
+
width
|
|
24
|
+
} = _ref,
|
|
25
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
let isWarning = false;
|
|
27
|
+
let isError = false;
|
|
28
|
+
let isInfo = true;
|
|
29
|
+
if (!lodash.isEmpty(type)) {
|
|
30
|
+
if (type === 'warning') {
|
|
31
|
+
isWarning = true;
|
|
32
|
+
} else if (type === 'error') {
|
|
33
|
+
isError = true;
|
|
34
|
+
} else {
|
|
35
|
+
isInfo = true;
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
if (isWarning || isError) {
|
|
39
|
+
isInfo = false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return index["default"].createElement(Alert_styled.Alert, _rollupPluginBabelHelpers["extends"]({
|
|
43
|
+
ref: forwardedRef,
|
|
44
|
+
alertMessage: alertMessage,
|
|
45
|
+
warning: isWarning,
|
|
46
|
+
error: isError,
|
|
47
|
+
info: isInfo,
|
|
48
|
+
align: align,
|
|
49
|
+
verticalPadding: verticalPadding,
|
|
50
|
+
horizontalPadding: horizontalPadding,
|
|
51
|
+
width: width
|
|
52
|
+
}, props), index["default"].createElement(Alert_styled.AlertRender, {
|
|
53
|
+
fontSize: fontSize,
|
|
54
|
+
lineHeight: lineHeight,
|
|
55
|
+
lineClamp: lineClamp
|
|
56
|
+
}, icon, " ", index["default"].createElement("span", null, alertMessage)));
|
|
57
|
+
});
|
|
58
|
+
Alert.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
59
|
+
type: index$1["default"].oneOf(['warning', 'error', 'info']),
|
|
60
|
+
icon: index$1["default"].element,
|
|
61
|
+
align: index$1["default"].oneOf(['left', 'center']),
|
|
62
|
+
alertMessage: index$1["default"].string,
|
|
63
|
+
fontSize: index$1["default"].number,
|
|
64
|
+
lineHeight: index$1["default"].number,
|
|
65
|
+
lineClamp: index$1["default"].number,
|
|
66
|
+
verticalPadding: index$1["default"].number,
|
|
67
|
+
horizontalPadding: index$1["default"].number,
|
|
68
|
+
width: index$1["default"].number
|
|
69
|
+
} : {};
|
|
70
|
+
Alert.defaultProps = {
|
|
71
|
+
warning: false,
|
|
72
|
+
error: false,
|
|
73
|
+
align: 'left',
|
|
74
|
+
alertMessage: 'Use subject to restrictions. Editorial use only, no commercial use without prior consent from rights holder.',
|
|
75
|
+
lineClamp: 0,
|
|
76
|
+
horizontalPadding: 30,
|
|
77
|
+
verticalPadding: 17
|
|
78
|
+
};
|
|
79
|
+
var Alert$1 = Alert;
|
|
80
|
+
|
|
81
|
+
exports["default"] = Alert$1;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
const Alert = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
padding: ${0};
|
|
23
|
+
width: ${0};
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
|
|
26
|
+
${0}
|
|
27
|
+
|
|
28
|
+
${0}
|
|
29
|
+
|
|
30
|
+
${0}
|
|
31
|
+
|
|
32
|
+
text-align: ${0};
|
|
33
|
+
`), props => {
|
|
34
|
+
var _props$verticalPaddin, _props$horizontalPadd;
|
|
35
|
+
const verticalPadding = (_props$verticalPaddin = props.verticalPadding) !== null && _props$verticalPaddin !== void 0 ? _props$verticalPaddin : 17;
|
|
36
|
+
const horizontalPadding = (_props$horizontalPadd = props.horizontalPadding) !== null && _props$horizontalPadd !== void 0 ? _props$horizontalPadd : 30;
|
|
37
|
+
return `${verticalPadding}px ${horizontalPadding}px`;
|
|
38
|
+
}, props => props.width ? `${props.width}px` : '100%', props => props.warning && styled.css(_t2 || (_t2 = _`
|
|
39
|
+
${0}
|
|
40
|
+
`), props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400'))), props => props.error && styled.css(_t3 || (_t3 = _`
|
|
41
|
+
${0}
|
|
42
|
+
`), props.theme.themeProp('background', '#7F1B1B', props.theme.getColor('red-200'))), props => props.info && styled.css(_t4 || (_t4 = _`
|
|
43
|
+
background: transparent;
|
|
44
|
+
`)), props => props.align === 'center' ? 'center' : 'left');
|
|
45
|
+
const AlertRender = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t5 || (_t5 = _`
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
word-break: break-word;
|
|
49
|
+
${0}
|
|
50
|
+
${0}
|
|
51
|
+
${0};
|
|
52
|
+
|
|
53
|
+
svg {
|
|
54
|
+
width: 12px;
|
|
55
|
+
height: 12px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
span {
|
|
59
|
+
flex: 1;
|
|
60
|
+
padding-left: 5px;
|
|
61
|
+
${0};
|
|
62
|
+
}
|
|
63
|
+
`), props => props.lineHeight ? `line-height: ${props.lineHeight}px;` : null, props => props.fontSize ? `font-size: ${props.fontSize}px;` : null, props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.lineClamp ? styled.css(_t6 || (_t6 = _`
|
|
64
|
+
display: -webkit-box;
|
|
65
|
+
-webkit-line-clamp: ${0};
|
|
66
|
+
-webkit-box-orient: vertical;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
|
+
`), props.lineClamp) : null);
|
|
70
|
+
|
|
71
|
+
exports.Alert = Alert;
|
|
72
|
+
exports.AlertRender = AlertRender;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 Badge_styled = require('./Badge.styled.js');
|
|
9
|
+
|
|
10
|
+
const _excluded = ["badgeContent", "badgeIcon", "children", "elevated", "fontSize", "fontWeight", "lineHeight", "active", "error", "warning", "backgroundColors", "colors", "verticalPadding", "horizontalPadding", "height", "minHeight", "width", "minWidth"];
|
|
11
|
+
const Badge = index["default"].forwardRef(function Badge(_ref, forwardedRef) {
|
|
12
|
+
let {
|
|
13
|
+
badgeContent,
|
|
14
|
+
badgeIcon,
|
|
15
|
+
children,
|
|
16
|
+
elevated,
|
|
17
|
+
fontSize,
|
|
18
|
+
fontWeight,
|
|
19
|
+
lineHeight,
|
|
20
|
+
active,
|
|
21
|
+
error,
|
|
22
|
+
warning,
|
|
23
|
+
backgroundColors,
|
|
24
|
+
colors,
|
|
25
|
+
verticalPadding,
|
|
26
|
+
horizontalPadding,
|
|
27
|
+
height,
|
|
28
|
+
minHeight,
|
|
29
|
+
width,
|
|
30
|
+
minWidth
|
|
31
|
+
} = _ref,
|
|
32
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
if (typeof badgeContent === 'number') {
|
|
34
|
+
badgeContent = Intl.NumberFormat('en', {
|
|
35
|
+
notation: 'compact'
|
|
36
|
+
}).format(badgeContent);
|
|
37
|
+
}
|
|
38
|
+
return index["default"].createElement(Badge_styled.Badge, _rollupPluginBabelHelpers["extends"]({
|
|
39
|
+
ref: forwardedRef,
|
|
40
|
+
elevated: elevated,
|
|
41
|
+
hasChildren: Boolean(children)
|
|
42
|
+
}, props), children && index["default"].createElement(Badge_styled.BadgeChildrenContainer, null, children), (badgeIcon || badgeContent) && index["default"].createElement(Badge_styled.BadgeLabel, {
|
|
43
|
+
backgroundColors: backgroundColors,
|
|
44
|
+
colors: colors,
|
|
45
|
+
elevated: elevated,
|
|
46
|
+
fontSize: fontSize,
|
|
47
|
+
fontWeight: fontWeight,
|
|
48
|
+
lineHeight: lineHeight,
|
|
49
|
+
active: active,
|
|
50
|
+
error: error,
|
|
51
|
+
warning: warning,
|
|
52
|
+
verticalPadding: verticalPadding,
|
|
53
|
+
horizontalPadding: horizontalPadding,
|
|
54
|
+
height: height,
|
|
55
|
+
minHeight: minHeight,
|
|
56
|
+
width: width,
|
|
57
|
+
minWidth: minWidth
|
|
58
|
+
}, badgeIcon && index["default"].createElement(Badge_styled.BadgeIcon, {
|
|
59
|
+
useGutter: !!badgeContent
|
|
60
|
+
}, badgeIcon), badgeContent));
|
|
61
|
+
});
|
|
62
|
+
Badge.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
63
|
+
badgeIcon: index$1["default"].node,
|
|
64
|
+
badgeContent: index$1["default"].oneOfType([index$1["default"].string, index$1["default"].number, index$1["default"].func, index$1["default"].element]),
|
|
65
|
+
children: index$1["default"].oneOfType([index$1["default"].node, index$1["default"].string]),
|
|
66
|
+
elevated: index$1["default"].bool,
|
|
67
|
+
active: index$1["default"].bool,
|
|
68
|
+
error: index$1["default"].bool,
|
|
69
|
+
warning: index$1["default"].bool,
|
|
70
|
+
fontSize: index$1["default"].oneOfType([index$1["default"].number, index$1["default"].string]),
|
|
71
|
+
fontWeight: index$1["default"].oneOfType([index$1["default"].number, index$1["default"].string]),
|
|
72
|
+
lineHeight: index$1["default"].oneOfType([index$1["default"].number, index$1["default"].string]),
|
|
73
|
+
colors: index$1["default"].arrayOf(index$1["default"].string),
|
|
74
|
+
backgroundColors: index$1["default"].arrayOf(index$1["default"].string),
|
|
75
|
+
verticalPadding: index$1["default"].number,
|
|
76
|
+
horizontalPadding: index$1["default"].number,
|
|
77
|
+
height: index$1["default"].number,
|
|
78
|
+
minHeight: index$1["default"].number,
|
|
79
|
+
width: index$1["default"].number,
|
|
80
|
+
minWidth: index$1["default"].number
|
|
81
|
+
} : {};
|
|
82
|
+
Badge.defaultProps = {
|
|
83
|
+
elevated: false,
|
|
84
|
+
active: false,
|
|
85
|
+
error: false,
|
|
86
|
+
warning: false,
|
|
87
|
+
badgeIcon: null,
|
|
88
|
+
fontWeight: 'normal',
|
|
89
|
+
lineHeight: 'normal'
|
|
90
|
+
};
|
|
91
|
+
var Badge$1 = Badge;
|
|
92
|
+
|
|
93
|
+
exports["default"] = Badge$1;
|
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
const Badge = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
22
|
+
align-content: center;
|
|
23
|
+
display: ${0};
|
|
24
|
+
font-family: ${0};
|
|
25
|
+
font-size: 1rem;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
min-height: 24px;
|
|
28
|
+
position: relative;
|
|
29
|
+
width: ${0};
|
|
30
|
+
`), props => props.elevated || !props.hasChildren ? 'inline-flex' : 'flex', props => props.theme.primaryFontFamily, props => props.elevated ? 'fit-content' : 'initial');
|
|
31
|
+
const BadgeChildrenContainer = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_t2 || (_t2 = _`
|
|
32
|
+
align-self: center;
|
|
33
|
+
height: fit-content;
|
|
34
|
+
margin-right: 8px;
|
|
35
|
+
`));
|
|
36
|
+
const BadgeLabel = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_t3 || (_t3 = _`
|
|
37
|
+
border-radius: ${0};
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
|
|
43
|
+
font-size: ${0};
|
|
44
|
+
font-weight: ${0};
|
|
45
|
+
line-height: ${0};
|
|
46
|
+
height: ${0};
|
|
47
|
+
letter-spacing: 0.32px;
|
|
48
|
+
margin-left: ${0};
|
|
49
|
+
position: ${0};
|
|
50
|
+
right: 0;
|
|
51
|
+
transform: ${0};
|
|
52
|
+
|
|
53
|
+
${0}
|
|
54
|
+
|
|
55
|
+
${0}
|
|
56
|
+
|
|
57
|
+
${0}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
${0}
|
|
61
|
+
|
|
62
|
+
${0}
|
|
63
|
+
|
|
64
|
+
${0}
|
|
65
|
+
`), props => props.elevated ? '12px' : '14px', props => {
|
|
66
|
+
if (props.fontSize) {
|
|
67
|
+
return `${props.fontSize}px`;
|
|
68
|
+
} else {
|
|
69
|
+
return props.elevated ? '0.625rem' : '0.750rem';
|
|
70
|
+
}
|
|
71
|
+
}, props => props.fontWeight ? props.fontWeight : 'normal', props => props.lineHeight ? `${props.lineHeight}px` : 'normal', props => props.height ? `${props.height}px` : 'fit-content', props => props.elevated ? '15px' : 'auto', props => props.elevated ? 'absolute' : 'initial', props => props.elevated ? 'translate(33%, -8px)' : 'initial', props => props.width ? styled.css(_t4 || (_t4 = _`
|
|
72
|
+
width: ${0}px;
|
|
73
|
+
`), props.width) : null, props => props.minWidth ? styled.css(_t5 || (_t5 = _`
|
|
74
|
+
min-width: ${0}px;
|
|
75
|
+
`), props.minWidth) : null, props => props.minHeight ? styled.css(_t6 || (_t6 = _`
|
|
76
|
+
min-height: ${0}px;
|
|
77
|
+
`), props.minHeight) : null, props => {
|
|
78
|
+
const verticalPadding = props.verticalPadding ? `${props.verticalPadding}px` : props.elevated ? '4px' : '6px';
|
|
79
|
+
const horizontalPadding = props.horizontalPadding ? `${props.horizontalPadding}px` : props.elevated ? '7px' : '10px';
|
|
80
|
+
return styled.css(_t7 || (_t7 = _`
|
|
81
|
+
padding: ${0} ${0};
|
|
82
|
+
`), verticalPadding, horizontalPadding);
|
|
83
|
+
}, props => props.theme.themeProp('background', () => {
|
|
84
|
+
var _props$backgroundColo, _props$backgroundColo2;
|
|
85
|
+
const active = props.active;
|
|
86
|
+
const error = props.error;
|
|
87
|
+
const warning = props.warning;
|
|
88
|
+
const defaultBgColor = (_props$backgroundColo = props === null || props === void 0 || (_props$backgroundColo2 = props.backgroundColors) === null || _props$backgroundColo2 === void 0 ? void 0 : _props$backgroundColo2[0]) !== null && _props$backgroundColo !== void 0 ? _props$backgroundColo : props.theme.getColor('gray-600');
|
|
89
|
+
switch (true) {
|
|
90
|
+
case !error && !warning && !active:
|
|
91
|
+
return defaultBgColor;
|
|
92
|
+
case !error && !warning && active:
|
|
93
|
+
return props.theme.getColor('gray-700');
|
|
94
|
+
case error && active:
|
|
95
|
+
return props.theme.getColor('red-500');
|
|
96
|
+
case error:
|
|
97
|
+
return props.theme.getColor('red-200');
|
|
98
|
+
case warning && active:
|
|
99
|
+
return props.theme.getColor('signal-yellow-500');
|
|
100
|
+
case warning:
|
|
101
|
+
return props.theme.getColor('signal-yellow-400');
|
|
102
|
+
default:
|
|
103
|
+
return props.theme.getColor('gray-600');
|
|
104
|
+
}
|
|
105
|
+
}, () => {
|
|
106
|
+
var _props$backgroundColo3, _props$backgroundColo4;
|
|
107
|
+
const active = props.active;
|
|
108
|
+
const error = props.error;
|
|
109
|
+
const warning = props.warning;
|
|
110
|
+
const defaultBgColor = (_props$backgroundColo3 = props === null || props === void 0 || (_props$backgroundColo4 = props.backgroundColors) === null || _props$backgroundColo4 === void 0 ? void 0 : _props$backgroundColo4[1]) !== null && _props$backgroundColo3 !== void 0 ? _props$backgroundColo3 : props.theme.getColor('gray-200');
|
|
111
|
+
switch (true) {
|
|
112
|
+
case !error && !warning && !active:
|
|
113
|
+
return defaultBgColor;
|
|
114
|
+
case !error && !warning && active:
|
|
115
|
+
return props.theme.getColor('white');
|
|
116
|
+
case error && active:
|
|
117
|
+
return props.theme.getColor('red-500');
|
|
118
|
+
case error:
|
|
119
|
+
return props.theme.getColor('red-200');
|
|
120
|
+
case warning && active:
|
|
121
|
+
return props.theme.getColor('signal-yellow-500');
|
|
122
|
+
case warning:
|
|
123
|
+
return props.theme.getColor('signal-yellow-400');
|
|
124
|
+
default:
|
|
125
|
+
return props.theme.getColor('gray-200');
|
|
126
|
+
}
|
|
127
|
+
}), props => props.theme.themeProp('color', () => {
|
|
128
|
+
var _props$colors$, _props$colors;
|
|
129
|
+
const defaultColor = (_props$colors$ = props === null || props === void 0 || (_props$colors = props.colors) === null || _props$colors === void 0 ? void 0 : _props$colors[0]) !== null && _props$colors$ !== void 0 ? _props$colors$ : props.theme.getColor('white');
|
|
130
|
+
if (props.warning && !props.error || props.error && !props.active) {
|
|
131
|
+
return props.theme.getColor('gray-900');
|
|
132
|
+
} else {
|
|
133
|
+
return defaultColor;
|
|
134
|
+
}
|
|
135
|
+
}, () => {
|
|
136
|
+
var _props$colors$2, _props$colors2;
|
|
137
|
+
const defaultColor = (_props$colors$2 = props === null || props === void 0 || (_props$colors2 = props.colors) === null || _props$colors2 === void 0 ? void 0 : _props$colors2[1]) !== null && _props$colors$2 !== void 0 ? _props$colors$2 : props.theme.getColor('gray-900');
|
|
138
|
+
if (props.error && props.active) {
|
|
139
|
+
return props.theme.getColor('white');
|
|
140
|
+
} else {
|
|
141
|
+
return defaultColor;
|
|
142
|
+
}
|
|
143
|
+
}));
|
|
144
|
+
const BadgeIcon = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_t8 || (_t8 = _`
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
margin-right: ${0};
|
|
148
|
+
svg {
|
|
149
|
+
height: 12px;
|
|
150
|
+
}
|
|
151
|
+
`), props => props.useGutter ? '4px' : 0);
|
|
152
|
+
|
|
153
|
+
exports.Badge = Badge;
|
|
154
|
+
exports.BadgeChildrenContainer = BadgeChildrenContainer;
|
|
155
|
+
exports.BadgeIcon = BadgeIcon;
|
|
156
|
+
exports.BadgeLabel = BadgeLabel;
|