@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
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React from '../../../node_modules/react/index.js';
|
|
3
|
+
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
+
import { Alert as Alert$2, AlertRender } from './Alert.styled.js';
|
|
5
|
+
import { isEmpty } from 'lodash';
|
|
6
|
+
|
|
7
|
+
const _excluded = ["type", "alertMessage", "align", "icon", "fontSize", "lineHeight", "lineClamp", "verticalPadding", "horizontalPadding", "width"];
|
|
8
|
+
const Alert = React.forwardRef(function Alert(_ref, forwardedRef) {
|
|
9
|
+
let {
|
|
10
|
+
type,
|
|
11
|
+
alertMessage,
|
|
12
|
+
align,
|
|
13
|
+
icon,
|
|
14
|
+
fontSize,
|
|
15
|
+
lineHeight,
|
|
16
|
+
lineClamp,
|
|
17
|
+
verticalPadding,
|
|
18
|
+
horizontalPadding,
|
|
19
|
+
width
|
|
20
|
+
} = _ref,
|
|
21
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
let isWarning = false;
|
|
23
|
+
let isError = false;
|
|
24
|
+
let isInfo = true;
|
|
25
|
+
if (!isEmpty(type)) {
|
|
26
|
+
if (type === 'warning') {
|
|
27
|
+
isWarning = true;
|
|
28
|
+
} else if (type === 'error') {
|
|
29
|
+
isError = true;
|
|
30
|
+
} else {
|
|
31
|
+
isInfo = true;
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
if (isWarning || isError) {
|
|
35
|
+
isInfo = false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return React.createElement(Alert$2, _extends({
|
|
39
|
+
ref: forwardedRef,
|
|
40
|
+
alertMessage: alertMessage,
|
|
41
|
+
warning: isWarning,
|
|
42
|
+
error: isError,
|
|
43
|
+
info: isInfo,
|
|
44
|
+
align: align,
|
|
45
|
+
verticalPadding: verticalPadding,
|
|
46
|
+
horizontalPadding: horizontalPadding,
|
|
47
|
+
width: width
|
|
48
|
+
}, props), React.createElement(AlertRender, {
|
|
49
|
+
fontSize: fontSize,
|
|
50
|
+
lineHeight: lineHeight,
|
|
51
|
+
lineClamp: lineClamp
|
|
52
|
+
}, icon, " ", React.createElement("span", null, alertMessage)));
|
|
53
|
+
});
|
|
54
|
+
Alert.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
55
|
+
type: PropTypes.oneOf(['warning', 'error', 'info']),
|
|
56
|
+
icon: PropTypes.element,
|
|
57
|
+
align: PropTypes.oneOf(['left', 'center']),
|
|
58
|
+
alertMessage: PropTypes.string,
|
|
59
|
+
fontSize: PropTypes.number,
|
|
60
|
+
lineHeight: PropTypes.number,
|
|
61
|
+
lineClamp: PropTypes.number,
|
|
62
|
+
verticalPadding: PropTypes.number,
|
|
63
|
+
horizontalPadding: PropTypes.number,
|
|
64
|
+
width: PropTypes.number
|
|
65
|
+
} : {};
|
|
66
|
+
Alert.defaultProps = {
|
|
67
|
+
warning: false,
|
|
68
|
+
error: false,
|
|
69
|
+
align: 'left',
|
|
70
|
+
alertMessage: 'Use subject to restrictions. Editorial use only, no commercial use without prior consent from rights holder.',
|
|
71
|
+
lineClamp: 0,
|
|
72
|
+
horizontalPadding: 30,
|
|
73
|
+
verticalPadding: 17
|
|
74
|
+
};
|
|
75
|
+
var Alert$1 = Alert;
|
|
76
|
+
|
|
77
|
+
export { Alert$1 as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
+
|
|
4
|
+
let _ = t => t,
|
|
5
|
+
_t,
|
|
6
|
+
_t2,
|
|
7
|
+
_t3,
|
|
8
|
+
_t4,
|
|
9
|
+
_t5,
|
|
10
|
+
_t6;
|
|
11
|
+
const Alert = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
padding: ${0};
|
|
15
|
+
width: ${0};
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
${0}
|
|
19
|
+
|
|
20
|
+
${0}
|
|
21
|
+
|
|
22
|
+
${0}
|
|
23
|
+
|
|
24
|
+
text-align: ${0};
|
|
25
|
+
`), props => {
|
|
26
|
+
var _props$verticalPaddin, _props$horizontalPadd;
|
|
27
|
+
const verticalPadding = (_props$verticalPaddin = props.verticalPadding) !== null && _props$verticalPaddin !== void 0 ? _props$verticalPaddin : 17;
|
|
28
|
+
const horizontalPadding = (_props$horizontalPadd = props.horizontalPadding) !== null && _props$horizontalPadd !== void 0 ? _props$horizontalPadd : 30;
|
|
29
|
+
return `${verticalPadding}px ${horizontalPadding}px`;
|
|
30
|
+
}, props => props.width ? `${props.width}px` : '100%', props => props.warning && css(_t2 || (_t2 = _`
|
|
31
|
+
${0}
|
|
32
|
+
`), props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400'))), props => props.error && css(_t3 || (_t3 = _`
|
|
33
|
+
${0}
|
|
34
|
+
`), props.theme.themeProp('background', '#7F1B1B', props.theme.getColor('red-200'))), props => props.info && css(_t4 || (_t4 = _`
|
|
35
|
+
background: transparent;
|
|
36
|
+
`)), props => props.align === 'center' ? 'center' : 'left');
|
|
37
|
+
const AlertRender = styled.div.attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
word-break: break-word;
|
|
41
|
+
${0}
|
|
42
|
+
${0}
|
|
43
|
+
${0};
|
|
44
|
+
|
|
45
|
+
svg {
|
|
46
|
+
width: 12px;
|
|
47
|
+
height: 12px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
span {
|
|
51
|
+
flex: 1;
|
|
52
|
+
padding-left: 5px;
|
|
53
|
+
${0};
|
|
54
|
+
}
|
|
55
|
+
`), 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 ? css(_t6 || (_t6 = _`
|
|
56
|
+
display: -webkit-box;
|
|
57
|
+
-webkit-line-clamp: ${0};
|
|
58
|
+
-webkit-box-orient: vertical;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
`), props.lineClamp) : null);
|
|
62
|
+
|
|
63
|
+
export { Alert, AlertRender };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../Alert.js';
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
3
|
+
import React from '../../../node_modules/react/index.js';
|
|
4
|
+
import { Badge as Badge$2, BadgeChildrenContainer, BadgeLabel, BadgeIcon } from './Badge.styled.js';
|
|
5
|
+
|
|
6
|
+
const _excluded = ["badgeContent", "badgeIcon", "children", "elevated", "fontSize", "fontWeight", "lineHeight", "active", "error", "warning", "backgroundColors", "colors", "verticalPadding", "horizontalPadding", "height", "minHeight", "width", "minWidth"];
|
|
7
|
+
const Badge = React.forwardRef(function Badge(_ref, forwardedRef) {
|
|
8
|
+
let {
|
|
9
|
+
badgeContent,
|
|
10
|
+
badgeIcon,
|
|
11
|
+
children,
|
|
12
|
+
elevated,
|
|
13
|
+
fontSize,
|
|
14
|
+
fontWeight,
|
|
15
|
+
lineHeight,
|
|
16
|
+
active,
|
|
17
|
+
error,
|
|
18
|
+
warning,
|
|
19
|
+
backgroundColors,
|
|
20
|
+
colors,
|
|
21
|
+
verticalPadding,
|
|
22
|
+
horizontalPadding,
|
|
23
|
+
height,
|
|
24
|
+
minHeight,
|
|
25
|
+
width,
|
|
26
|
+
minWidth
|
|
27
|
+
} = _ref,
|
|
28
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
if (typeof badgeContent === 'number') {
|
|
30
|
+
badgeContent = Intl.NumberFormat('en', {
|
|
31
|
+
notation: 'compact'
|
|
32
|
+
}).format(badgeContent);
|
|
33
|
+
}
|
|
34
|
+
return React.createElement(Badge$2, _extends({
|
|
35
|
+
ref: forwardedRef,
|
|
36
|
+
elevated: elevated,
|
|
37
|
+
hasChildren: Boolean(children)
|
|
38
|
+
}, props), children && React.createElement(BadgeChildrenContainer, null, children), (badgeIcon || badgeContent) && React.createElement(BadgeLabel, {
|
|
39
|
+
backgroundColors: backgroundColors,
|
|
40
|
+
colors: colors,
|
|
41
|
+
elevated: elevated,
|
|
42
|
+
fontSize: fontSize,
|
|
43
|
+
fontWeight: fontWeight,
|
|
44
|
+
lineHeight: lineHeight,
|
|
45
|
+
active: active,
|
|
46
|
+
error: error,
|
|
47
|
+
warning: warning,
|
|
48
|
+
verticalPadding: verticalPadding,
|
|
49
|
+
horizontalPadding: horizontalPadding,
|
|
50
|
+
height: height,
|
|
51
|
+
minHeight: minHeight,
|
|
52
|
+
width: width,
|
|
53
|
+
minWidth: minWidth
|
|
54
|
+
}, badgeIcon && React.createElement(BadgeIcon, {
|
|
55
|
+
useGutter: !!badgeContent
|
|
56
|
+
}, badgeIcon), badgeContent));
|
|
57
|
+
});
|
|
58
|
+
Badge.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
59
|
+
badgeIcon: PropTypes.node,
|
|
60
|
+
badgeContent: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.func, PropTypes.element]),
|
|
61
|
+
children: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
62
|
+
elevated: PropTypes.bool,
|
|
63
|
+
active: PropTypes.bool,
|
|
64
|
+
error: PropTypes.bool,
|
|
65
|
+
warning: PropTypes.bool,
|
|
66
|
+
fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
67
|
+
fontWeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
68
|
+
lineHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
69
|
+
colors: PropTypes.arrayOf(PropTypes.string),
|
|
70
|
+
backgroundColors: PropTypes.arrayOf(PropTypes.string),
|
|
71
|
+
verticalPadding: PropTypes.number,
|
|
72
|
+
horizontalPadding: PropTypes.number,
|
|
73
|
+
height: PropTypes.number,
|
|
74
|
+
minHeight: PropTypes.number,
|
|
75
|
+
width: PropTypes.number,
|
|
76
|
+
minWidth: PropTypes.number
|
|
77
|
+
} : {};
|
|
78
|
+
Badge.defaultProps = {
|
|
79
|
+
elevated: false,
|
|
80
|
+
active: false,
|
|
81
|
+
error: false,
|
|
82
|
+
warning: false,
|
|
83
|
+
badgeIcon: null,
|
|
84
|
+
fontWeight: 'normal',
|
|
85
|
+
lineHeight: 'normal'
|
|
86
|
+
};
|
|
87
|
+
var Badge$1 = Badge;
|
|
88
|
+
|
|
89
|
+
export { Badge$1 as default };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
+
|
|
4
|
+
let _ = t => t,
|
|
5
|
+
_t,
|
|
6
|
+
_t2,
|
|
7
|
+
_t3,
|
|
8
|
+
_t4,
|
|
9
|
+
_t5,
|
|
10
|
+
_t6,
|
|
11
|
+
_t7,
|
|
12
|
+
_t8;
|
|
13
|
+
const Badge = styled.span.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
14
|
+
align-content: center;
|
|
15
|
+
display: ${0};
|
|
16
|
+
font-family: ${0};
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
min-height: 24px;
|
|
20
|
+
position: relative;
|
|
21
|
+
width: ${0};
|
|
22
|
+
`), props => props.elevated || !props.hasChildren ? 'inline-flex' : 'flex', props => props.theme.primaryFontFamily, props => props.elevated ? 'fit-content' : 'initial');
|
|
23
|
+
const BadgeChildrenContainer = styled.span.attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
24
|
+
align-self: center;
|
|
25
|
+
height: fit-content;
|
|
26
|
+
margin-right: 8px;
|
|
27
|
+
`));
|
|
28
|
+
const BadgeLabel = styled.span.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
29
|
+
border-radius: ${0};
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
|
|
35
|
+
font-size: ${0};
|
|
36
|
+
font-weight: ${0};
|
|
37
|
+
line-height: ${0};
|
|
38
|
+
height: ${0};
|
|
39
|
+
letter-spacing: 0.32px;
|
|
40
|
+
margin-left: ${0};
|
|
41
|
+
position: ${0};
|
|
42
|
+
right: 0;
|
|
43
|
+
transform: ${0};
|
|
44
|
+
|
|
45
|
+
${0}
|
|
46
|
+
|
|
47
|
+
${0}
|
|
48
|
+
|
|
49
|
+
${0}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
${0}
|
|
53
|
+
|
|
54
|
+
${0}
|
|
55
|
+
|
|
56
|
+
${0}
|
|
57
|
+
`), props => props.elevated ? '12px' : '14px', props => {
|
|
58
|
+
if (props.fontSize) {
|
|
59
|
+
return `${props.fontSize}px`;
|
|
60
|
+
} else {
|
|
61
|
+
return props.elevated ? '0.625rem' : '0.750rem';
|
|
62
|
+
}
|
|
63
|
+
}, 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 ? css(_t4 || (_t4 = _`
|
|
64
|
+
width: ${0}px;
|
|
65
|
+
`), props.width) : null, props => props.minWidth ? css(_t5 || (_t5 = _`
|
|
66
|
+
min-width: ${0}px;
|
|
67
|
+
`), props.minWidth) : null, props => props.minHeight ? css(_t6 || (_t6 = _`
|
|
68
|
+
min-height: ${0}px;
|
|
69
|
+
`), props.minHeight) : null, props => {
|
|
70
|
+
const verticalPadding = props.verticalPadding ? `${props.verticalPadding}px` : props.elevated ? '4px' : '6px';
|
|
71
|
+
const horizontalPadding = props.horizontalPadding ? `${props.horizontalPadding}px` : props.elevated ? '7px' : '10px';
|
|
72
|
+
return css(_t7 || (_t7 = _`
|
|
73
|
+
padding: ${0} ${0};
|
|
74
|
+
`), verticalPadding, horizontalPadding);
|
|
75
|
+
}, props => props.theme.themeProp('background', () => {
|
|
76
|
+
var _props$backgroundColo, _props$backgroundColo2;
|
|
77
|
+
const active = props.active;
|
|
78
|
+
const error = props.error;
|
|
79
|
+
const warning = props.warning;
|
|
80
|
+
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');
|
|
81
|
+
switch (true) {
|
|
82
|
+
case !error && !warning && !active:
|
|
83
|
+
return defaultBgColor;
|
|
84
|
+
case !error && !warning && active:
|
|
85
|
+
return props.theme.getColor('gray-700');
|
|
86
|
+
case error && active:
|
|
87
|
+
return props.theme.getColor('red-500');
|
|
88
|
+
case error:
|
|
89
|
+
return props.theme.getColor('red-200');
|
|
90
|
+
case warning && active:
|
|
91
|
+
return props.theme.getColor('signal-yellow-500');
|
|
92
|
+
case warning:
|
|
93
|
+
return props.theme.getColor('signal-yellow-400');
|
|
94
|
+
default:
|
|
95
|
+
return props.theme.getColor('gray-600');
|
|
96
|
+
}
|
|
97
|
+
}, () => {
|
|
98
|
+
var _props$backgroundColo3, _props$backgroundColo4;
|
|
99
|
+
const active = props.active;
|
|
100
|
+
const error = props.error;
|
|
101
|
+
const warning = props.warning;
|
|
102
|
+
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');
|
|
103
|
+
switch (true) {
|
|
104
|
+
case !error && !warning && !active:
|
|
105
|
+
return defaultBgColor;
|
|
106
|
+
case !error && !warning && active:
|
|
107
|
+
return props.theme.getColor('white');
|
|
108
|
+
case error && active:
|
|
109
|
+
return props.theme.getColor('red-500');
|
|
110
|
+
case error:
|
|
111
|
+
return props.theme.getColor('red-200');
|
|
112
|
+
case warning && active:
|
|
113
|
+
return props.theme.getColor('signal-yellow-500');
|
|
114
|
+
case warning:
|
|
115
|
+
return props.theme.getColor('signal-yellow-400');
|
|
116
|
+
default:
|
|
117
|
+
return props.theme.getColor('gray-200');
|
|
118
|
+
}
|
|
119
|
+
}), props => props.theme.themeProp('color', () => {
|
|
120
|
+
var _props$colors$, _props$colors;
|
|
121
|
+
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');
|
|
122
|
+
if (props.warning && !props.error || props.error && !props.active) {
|
|
123
|
+
return props.theme.getColor('gray-900');
|
|
124
|
+
} else {
|
|
125
|
+
return defaultColor;
|
|
126
|
+
}
|
|
127
|
+
}, () => {
|
|
128
|
+
var _props$colors$2, _props$colors2;
|
|
129
|
+
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');
|
|
130
|
+
if (props.error && props.active) {
|
|
131
|
+
return props.theme.getColor('white');
|
|
132
|
+
} else {
|
|
133
|
+
return defaultColor;
|
|
134
|
+
}
|
|
135
|
+
}));
|
|
136
|
+
const BadgeIcon = styled.span.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
margin-right: ${0};
|
|
140
|
+
svg {
|
|
141
|
+
height: 12px;
|
|
142
|
+
}
|
|
143
|
+
`), props => props.useGutter ? '4px' : 0);
|
|
144
|
+
|
|
145
|
+
export { Badge, BadgeChildrenContainer, BadgeIcon, BadgeLabel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../Badge.js';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { isBoolean } from 'lodash';
|
|
3
|
+
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
+
import React from '../../../node_modules/react/index.js';
|
|
5
|
+
import { Popover as Popover$2 } from './Popover.styled.js';
|
|
6
|
+
import maxSize from 'popper-max-size-modifier';
|
|
7
|
+
import { r as react } from '../../../_virtual/index.js';
|
|
8
|
+
|
|
9
|
+
const _excluded = ["content", "interactive", "placement", "duration", "trigger", "offset", "arrow", "visible", "contextMenu", "contextMenuSublevel", "children", "modifiers", "maxWidth"];
|
|
10
|
+
const Popover = React.forwardRef(function Popover(_ref, ref) {
|
|
11
|
+
let {
|
|
12
|
+
content = 'Tooltip',
|
|
13
|
+
interactive = true,
|
|
14
|
+
placement = 'bottom-end',
|
|
15
|
+
duration = 350,
|
|
16
|
+
trigger = 'click focus',
|
|
17
|
+
offset = [0, 8],
|
|
18
|
+
arrow = true,
|
|
19
|
+
visible = undefined,
|
|
20
|
+
contextMenu = false,
|
|
21
|
+
contextMenuSublevel = false,
|
|
22
|
+
children,
|
|
23
|
+
modifiers = [],
|
|
24
|
+
maxWidth = 'none'
|
|
25
|
+
} = _ref,
|
|
26
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
const errorOffset = react.exports.useMemo(() => arrow ? 15 : 0, [arrow]);
|
|
28
|
+
const isControlled = react.exports.useMemo(() => isBoolean(visible), [visible]);
|
|
29
|
+
const handleContextMenuItemClick = () => {
|
|
30
|
+
document.querySelectorAll('.context-menu-item:not(.opens-sublevel)').forEach(item => item.addEventListener('click', () => {
|
|
31
|
+
document.querySelectorAll('[data-tippy-root]').forEach(node => {
|
|
32
|
+
if (node._tippy) {
|
|
33
|
+
node._tippy.hide();
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
return React.createElement("div", null, React.createElement(Popover$2, _extends({
|
|
39
|
+
ref: ref,
|
|
40
|
+
content: content,
|
|
41
|
+
interactive: interactive,
|
|
42
|
+
placement: contextMenuSublevel ? 'right-start' : placement,
|
|
43
|
+
duration: duration,
|
|
44
|
+
animation: 'shift-away-subtle',
|
|
45
|
+
trigger: isControlled ? undefined : contextMenuSublevel ? 'mouseenter click focus' : trigger,
|
|
46
|
+
offset: [offset[0], offset[1] + errorOffset],
|
|
47
|
+
arrow: contextMenu ? false : arrow,
|
|
48
|
+
visible: visible,
|
|
49
|
+
popperOptions: {
|
|
50
|
+
modifiers: [_objectSpread2(_objectSpread2({}, maxSize), {}, {
|
|
51
|
+
options: {
|
|
52
|
+
boundary: 'viewport',
|
|
53
|
+
rootBoundary: 'viewport',
|
|
54
|
+
padding: 10
|
|
55
|
+
}
|
|
56
|
+
}), {
|
|
57
|
+
name: 'applyMaxSize',
|
|
58
|
+
enabled: true,
|
|
59
|
+
phase: 'beforeWrite',
|
|
60
|
+
requires: ['maxSize'],
|
|
61
|
+
fn({
|
|
62
|
+
state
|
|
63
|
+
}) {
|
|
64
|
+
const {
|
|
65
|
+
height
|
|
66
|
+
} = state.modifiersData.maxSize;
|
|
67
|
+
state.styles.popper = _objectSpread2(_objectSpread2({}, state.styles.popper), {}, {
|
|
68
|
+
maxHeight: `${height}px`
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, ...modifiers]
|
|
72
|
+
},
|
|
73
|
+
onShown: contextMenu ? handleContextMenuItemClick : undefined,
|
|
74
|
+
maxWidth: maxWidth
|
|
75
|
+
}, props), children));
|
|
76
|
+
});
|
|
77
|
+
Popover.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
78
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
|
|
79
|
+
interactive: PropTypes.bool,
|
|
80
|
+
placement: 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']),
|
|
81
|
+
duration: PropTypes.number,
|
|
82
|
+
trigger: PropTypes.string,
|
|
83
|
+
offset: PropTypes.arrayOf(PropTypes.number),
|
|
84
|
+
arrow: PropTypes.bool,
|
|
85
|
+
visible: PropTypes.bool,
|
|
86
|
+
modifiers: PropTypes.array,
|
|
87
|
+
maxWidth: PropTypes.string,
|
|
88
|
+
contextMenu: PropTypes.bool,
|
|
89
|
+
contextMenuSublevel: PropTypes.bool,
|
|
90
|
+
children: PropTypes.node.isRequired
|
|
91
|
+
} : {};
|
|
92
|
+
var Popover$1 = Popover;
|
|
93
|
+
|
|
94
|
+
export { Popover$1 as default };
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { rgba } from 'polished';
|
|
3
|
+
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
4
|
+
import TippyTooltip from '@tippyjs/react';
|
|
5
|
+
import '../../../node_modules/tippy.js/dist/tippy.css.js';
|
|
6
|
+
import '../../../node_modules/tippy.js/animations/shift-away-subtle.css.js';
|
|
7
|
+
|
|
8
|
+
let _ = t => t,
|
|
9
|
+
_t,
|
|
10
|
+
_t2,
|
|
11
|
+
_t3,
|
|
12
|
+
_t4;
|
|
13
|
+
const Popover = styled(TippyTooltip).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
14
|
+
font-family: ${0};
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
color: inherit;
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
line-height: inherit;
|
|
20
|
+
max-height: inherit;
|
|
21
|
+
|
|
22
|
+
${0}
|
|
23
|
+
|
|
24
|
+
${0}
|
|
25
|
+
|
|
26
|
+
${0}
|
|
27
|
+
|
|
28
|
+
${0}
|
|
29
|
+
|
|
30
|
+
${0}
|
|
31
|
+
|
|
32
|
+
${0}
|
|
33
|
+
|
|
34
|
+
.tippy-content {
|
|
35
|
+
padding: 0;
|
|
36
|
+
max-height: inherit;
|
|
37
|
+
|
|
38
|
+
> div {
|
|
39
|
+
max-height: inherit;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tippy-arrow {
|
|
44
|
+
${0}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&& > .tippy-arrow::before {
|
|
48
|
+
position: absolute;
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
border-style: solid;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& > .tippy-arrow::after {
|
|
54
|
+
content: '';
|
|
55
|
+
position: absolute;
|
|
56
|
+
border-color: transparent;
|
|
57
|
+
border-style: solid;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-placement^='top'] {
|
|
61
|
+
& > .tippy-arrow:before {
|
|
62
|
+
bottom: -16px;
|
|
63
|
+
left: -5px;
|
|
64
|
+
border-width: 15px 13px 0;
|
|
65
|
+
${0}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& > .tippy-arrow:after {
|
|
69
|
+
bottom: -15px;
|
|
70
|
+
left: -5px;
|
|
71
|
+
border-width: 15px 13px 0;
|
|
72
|
+
border-top-color: initial;
|
|
73
|
+
transform-origin: center top;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&[data-placement^='right'] {
|
|
78
|
+
& > .tippy-arrow:before {
|
|
79
|
+
bottom: -5px;
|
|
80
|
+
left: -16px;
|
|
81
|
+
border-width: 13px 15px 13px 0;
|
|
82
|
+
${0}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
& > .tippy-arrow:after {
|
|
86
|
+
bottom: -5px;
|
|
87
|
+
left: -15px;
|
|
88
|
+
border-width: 13px 15px 13px 0;
|
|
89
|
+
border-right-color: initial;
|
|
90
|
+
transform-origin: center top;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&[data-placement^='bottom'] {
|
|
95
|
+
& > .tippy-arrow:before {
|
|
96
|
+
top: -16px;
|
|
97
|
+
left: -5px;
|
|
98
|
+
border-width: 0 13px 15px 13px;
|
|
99
|
+
${0}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
& > .tippy-arrow:after {
|
|
103
|
+
top: -14.5px;
|
|
104
|
+
left: -5px;
|
|
105
|
+
border-width: 0 13px 15px 13px;
|
|
106
|
+
border-bottom-color: initial;
|
|
107
|
+
transform-origin: center top;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&[data-placement^='left'] {
|
|
112
|
+
& > .tippy-arrow::before {
|
|
113
|
+
bottom: -5px;
|
|
114
|
+
right: -16px;
|
|
115
|
+
border-width: 13px 0 13px 15px;
|
|
116
|
+
${0}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
& > .tippy-arrow::after {
|
|
120
|
+
bottom: -5px;
|
|
121
|
+
right: -15px;
|
|
122
|
+
border-width: 13px 0 13px 15px;
|
|
123
|
+
border-left-color: initial;
|
|
124
|
+
transform-origin: center top;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
`), props => props.theme.primaryFontFamily, props => props.maxWidth && css(_t2 || (_t2 = _`
|
|
128
|
+
max-width: ${0};
|
|
129
|
+
`), props.maxWidth), props => props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')), props => props.theme.themeProp('box-shadow', `0px 1px 6px -3px ${rgba(props.theme.getColor('black'), 0.7)}`, `0 1px 6px -4px ${props.theme.getColor('black')}`), props => props.theme.themeProp('border', `1px solid ${props.theme.getColor('gray-800')}`, `1px solid ${props.theme.getColor('gray-300')}`), props => props.contextMenu && css(_t3 || (_t3 = _`
|
|
130
|
+
border-radius: 4px;
|
|
131
|
+
|
|
132
|
+
${0}
|
|
133
|
+
|
|
134
|
+
${0}
|
|
135
|
+
`), props => props.theme.themeProp('border', 'none', 'none'), props => props.theme.themeProp('box-shadow', `none`, `0 1px 6px ${rgba(props.theme.getColor('gray-900'), 0.3)}`)), props => props.contextMenuSublevel && css(_t4 || (_t4 = _`
|
|
136
|
+
&[data-placement^='right-start'],
|
|
137
|
+
&[data-placement^='left-start'] {
|
|
138
|
+
margin-top: -4px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&[data-placement^='left'] {
|
|
142
|
+
margin-right: -6px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&[data-placement^='right'] {
|
|
146
|
+
margin-left: -6px;
|
|
147
|
+
}
|
|
148
|
+
`)), props => props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('white'), 1), props => props.theme.themeProp('border-top-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1), props => props.theme.themeProp('border-right-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1), props => props.theme.themeProp('border-bottom-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1), props => props.theme.themeProp('border-left-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-300'), 1));
|
|
149
|
+
|
|
150
|
+
export { Popover };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../Popover.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
3
|
+
import React from '../../../node_modules/react/index.js';
|
|
4
|
+
import { Tab as Tab$2 } from './Tab.styled.js';
|
|
5
|
+
|
|
6
|
+
const _excluded = ["children", "hidden"];
|
|
7
|
+
const Tab = React.forwardRef(function Tab(_ref, forwardedRef) {
|
|
8
|
+
let {
|
|
9
|
+
children,
|
|
10
|
+
hidden
|
|
11
|
+
} = _ref,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
if (hidden) return null;
|
|
14
|
+
return React.createElement(Tab$2, _extends({
|
|
15
|
+
ref: forwardedRef
|
|
16
|
+
}, props), children);
|
|
17
|
+
});
|
|
18
|
+
Tab.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
19
|
+
children: PropTypes.any,
|
|
20
|
+
hidden: PropTypes.bool
|
|
21
|
+
} : {};
|
|
22
|
+
Tab.defaultProps = {
|
|
23
|
+
hidden: false
|
|
24
|
+
};
|
|
25
|
+
var Tab$1 = Tab;
|
|
26
|
+
|
|
27
|
+
export { Tab$1 as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
+
|
|
4
|
+
let _ = t => t,
|
|
5
|
+
_t;
|
|
6
|
+
const Tab = styled.p.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
7
|
+
font-family: ${0};
|
|
8
|
+
font-size: 1rem;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
border-bottom: 1px solid;
|
|
11
|
+
min-height: 35px;
|
|
12
|
+
`), props => props.theme.primaryFontFamily);
|
|
13
|
+
|
|
14
|
+
export { Tab };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../Tab.js';
|