@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.26
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/build/ActionButton-03dc5f67.js +92 -0
- package/build/Alert-8a511bdc.js +138 -0
- package/build/AssetAction-d081e4b7.js +2377 -0
- package/build/AssetPreviewTopBar-623cfa18.js +152 -0
- package/build/Badge-aa4cd9c1.js +221 -0
- package/build/Button-2e26f5da.js +449 -0
- package/build/Checkbox-0b8faf49.js +220 -0
- package/build/CompactAutocompleteSelect-797778cb.js +555 -0
- package/build/CompactStarRating-da21b53f.js +436 -0
- package/build/CompactTextInput-d56aec71.js +541 -0
- package/build/ContextMenu-82f9d728.js +33 -0
- package/build/ContextMenuItem-3967010d.js +152 -0
- package/build/InfoCard-d0fdf377.js +132 -0
- package/build/InputGroup-8d4a4644.js +30 -0
- package/build/Instructions-af191987.js +274 -0
- package/build/MultiLevelCheckboxSelect-d229cf98.js +632 -0
- package/build/MultiSelect-d7920eb1.js +470 -0
- package/build/Popover-c4be47ea.js +241 -0
- package/build/ProgressBar-2d26c1fb.js +217 -0
- package/build/Radio-150fb2c9.js +141 -0
- package/build/SectionSeparator-e06c7660.js +38 -0
- package/build/Switch-d2d6e9ec.js +167 -0
- package/build/Tab-ccbca1f2.js +39 -0
- package/build/Tabs-b06c0e24.js +166 -0
- package/build/TextArea-26d3c8a1.js +619 -0
- package/build/TextInput-3a567daa.js +372 -0
- package/build/Tooltip-d5882b82.js +73 -0
- package/build/VerificationStatusIcon-9876b68f.js +120 -0
- package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-4b342fad.js} +3 -1
- package/build/arrow-forward-d7c77ae3.js +37 -0
- package/build/close-1751121a.js +37 -0
- package/build/data/Alert/index.js +12 -0
- package/build/data/Badge/index.js +11 -0
- package/build/data/Popover/index.js +16 -0
- package/build/data/Tab/index.js +11 -0
- package/build/data/Tabs/index.js +13 -0
- package/build/data/Tooltip/index.js +13 -0
- package/build/data/index.js +30 -0
- package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-d9a7342e.js} +582 -17
- package/build/edit-note-cefe2215.js +37 -0
- package/build/expand-more-d74e2bd2.js +37 -0
- package/build/icons/add-circle.svg +3 -0
- package/build/icons/add.svg +3 -0
- package/build/icons/album.svg +3 -0
- package/build/icons/arrow-back.svg +4 -0
- package/build/icons/arrow-drop-down.svg +4 -0
- package/build/icons/arrow-forward.svg +3 -0
- package/build/icons/audio.svg +3 -0
- package/build/icons/bell.svg +3 -0
- package/build/icons/check-circle-filled.svg +3 -0
- package/build/icons/check-rectangle-filled.svg +3 -0
- package/build/icons/check.svg +3 -0
- package/build/icons/clear-circle-filled.svg +14 -0
- package/build/icons/close.svg +4 -0
- package/build/icons/corporate.svg +3 -0
- package/build/icons/delete-context-menu.svg +4 -0
- package/build/icons/delete.svg +3 -0
- package/build/icons/design-services.svg +4 -0
- package/build/icons/download.svg +3 -0
- package/build/icons/edit-note.svg +4 -0
- package/build/icons/edit.svg +3 -0
- package/build/icons/expand-more.svg +4 -0
- package/build/icons/file.svg +3 -0
- package/build/icons/ftp.svg +3 -0
- package/build/icons/gear.svg +3 -0
- package/build/icons/headset.svg +1 -0
- package/build/icons/index.js +79 -0
- package/build/icons/layers.svg +3 -0
- package/build/icons/library-add.svg +3 -0
- package/build/icons/link.svg +4 -0
- package/build/icons/pdf.svg +3 -0
- package/build/icons/play.svg +3 -0
- package/build/icons/remove-circle.svg +3 -0
- package/build/icons/search.svg +3 -0
- package/build/icons/share.svg +3 -0
- package/build/icons/shopping_cart_add.svg +3 -0
- package/build/icons/star-filled.svg +3 -0
- package/build/icons/star.svg +3 -0
- package/build/icons/triangle-right.svg +4 -0
- package/build/icons/verification.svg +3 -0
- package/build/icons/warning-circle.svg +3 -0
- package/build/icons/warning-triangle.svg +3 -0
- package/build/inputs/ActionButton/index.js +12 -0
- package/build/inputs/Button/index.js +19 -0
- package/build/inputs/Checkbox/index.js +12 -0
- package/build/inputs/CompactAutocompleteSelect/index.js +29 -0
- package/build/inputs/CompactStarRating/index.js +23 -0
- package/build/inputs/CompactTextInput/index.js +25 -0
- package/build/inputs/MultiSelect/index.js +16 -0
- package/build/inputs/Radio/index.js +13 -0
- package/build/inputs/Switch/index.js +12 -0
- package/build/inputs/TextArea/index.js +26 -0
- package/build/inputs/TextInput/index.js +15 -0
- package/build/inputs/index.js +60 -0
- package/build/layout/InputGroup/index.js +11 -0
- package/build/layout/SectionSeparator/index.js +11 -0
- package/build/layout/index.js +15 -0
- package/build/shift-away-subtle-158617af.js +9 -0
- package/build/styles/all.scss +3 -0
- package/build/styles/config.scss +38 -0
- package/{styles/utils/.colors.scss → build/styles/utils/colors.scss} +1 -1
- package/build/styles/utils/theme.scss +33 -0
- package/build/widgets/AssetGallery/index.js +55 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +12 -0
- package/build/widgets/ContextMenu/ContextMenuItem/index.js +11 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +44 -0
- package/build/widgets/ContextMenu/index.js +11 -0
- package/build/widgets/InfoCard/index.js +12 -0
- package/build/widgets/Instructions/index.js +33 -0
- package/build/widgets/ProgressBar/index.js +12 -0
- package/build/widgets/index.js +65 -0
- package/package.json +49 -56
- package/styles/all.scss +3 -3
- package/styles/config.scss +38 -0
- package/styles/utils/colors.scss +15 -0
- package/styles/utils/theme.scss +0 -2
- package/.eslintrc +0 -19
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
- package/cjs/_virtual/index.js +0 -7
- package/cjs/_virtual/index2.js +0 -7
- package/cjs/_virtual/index3.js +0 -7
- package/cjs/_virtual/index4.js +0 -7
- package/cjs/_virtual/index5.js +0 -7
- package/cjs/_virtual/react-dom.development.js +0 -7
- package/cjs/_virtual/react-dom.production.js +0 -7
- package/cjs/_virtual/react-is.development.js +0 -7
- package/cjs/_virtual/react-is.development2.js +0 -7
- package/cjs/_virtual/react-is.production.min.js +0 -7
- package/cjs/_virtual/react-is.production.min2.js +0 -7
- package/cjs/_virtual/react.development.js +0 -7
- package/cjs/_virtual/react.production.js +0 -7
- package/cjs/components/data/Alert/Alert.js +0 -79
- package/cjs/components/data/Alert/Alert.styled.js +0 -79
- package/cjs/components/data/Alert/data/Alert/index.js +0 -9
- package/cjs/components/data/Badge/Badge.js +0 -93
- package/cjs/components/data/Badge/Badge.styled.js +0 -167
- package/cjs/components/data/Badge/data/Badge/index.js +0 -9
- package/cjs/components/data/Popover/Popover.js +0 -104
- package/cjs/components/data/Popover/Popover.styled.js +0 -159
- package/cjs/components/data/Popover/data/Popover/index.js +0 -9
- package/cjs/components/data/Tab/Tab.js +0 -31
- package/cjs/components/data/Tab/Tab.styled.js +0 -27
- package/cjs/components/data/Tab/data/Tab/index.js +0 -9
- package/cjs/components/data/Tabs/Tabs.js +0 -101
- package/cjs/components/data/Tabs/Tabs.styled.js +0 -110
- package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
- package/cjs/components/data/Tooltip/Tooltip.js +0 -52
- package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -88
- package/cjs/components/data/data/index.js +0 -21
- package/cjs/components/inputs/ActionButton/ActionButton.js +0 -44
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -75
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
- package/cjs/components/inputs/Button/Button.js +0 -195
- package/cjs/components/inputs/Button/Button.styled.js +0 -340
- package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
- package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -160
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -363
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -177
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -269
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -406
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -106
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -147
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -208
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -275
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
- package/cjs/components/inputs/Radio/Radio.js +0 -67
- package/cjs/components/inputs/Radio/Radio.styled.js +0 -100
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
- package/cjs/components/inputs/Switch/Switch.js +0 -69
- package/cjs/components/inputs/Switch/Switch.styled.js +0 -138
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
- package/cjs/components/inputs/TextArea/TextArea.js +0 -176
- package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -530
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
- package/cjs/components/inputs/TextInput/TextInput.js +0 -146
- package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -289
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
- package/cjs/components/inputs/inputs/index.js +0 -33
- package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -23
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -28
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
- package/cjs/components/layout/layout/index.js +0 -11
- package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -69
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -29
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -106
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -395
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -52
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -405
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -385
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
- package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -107
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -29
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -24
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -102
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -35
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
- package/cjs/components/widgets/InfoCard/InfoCard.js +0 -47
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -137
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -79
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -210
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -93
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -169
- package/cjs/components/widgets/widgets/index.js +0 -23
- package/cjs/hooks/useEventListner.js +0 -26
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
- package/cjs/hooks/useOnClickOutside.js +0 -17
- package/cjs/icons/arrow-back.svg.js +0 -20
- package/cjs/icons/arrow-forward.svg.js +0 -20
- package/cjs/icons/check-rectangle-filled.svg.js +0 -20
- package/cjs/icons/close.svg.js +0 -20
- package/cjs/icons/edit-note.svg.js +0 -20
- package/cjs/icons/expand-more.svg.js +0 -20
- package/cjs/icons/headset.svg.js +0 -20
- package/cjs/icons/layers.svg.js +0 -20
- package/cjs/icons/link.svg.js +0 -20
- package/cjs/icons/play.svg.js +0 -20
- package/cjs/icons/search.svg.js +0 -20
- package/cjs/icons/star-filled.svg.js +0 -20
- package/cjs/icons/star.svg.js +0 -20
- package/cjs/icons/triangle-right.svg.js +0 -20
- package/cjs/icons/verification.svg.js +0 -20
- package/cjs/icons/warning-circle.svg.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -915
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -130
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -166
- package/cjs/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -43
- package/cjs/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -39
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
- package/cjs/node_modules/object-assign/index.js +0 -94
- package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
- package/cjs/node_modules/prop-types/index.js +0 -33
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
- package/cjs/node_modules/prop-types/lib/has.js +0 -7
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/react/cjs/react.development.js +0 -1289
- package/cjs/node_modules/react/cjs/react.production.js +0 -548
- package/cjs/node_modules/react/index.js +0 -19
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
- package/cjs/node_modules/react-dom/index.js +0 -44
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
- package/cjs/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2659
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
- package/cjs/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -101
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
- package/cjs/node_modules/stylis/src/Enum.js +0 -24
- package/cjs/node_modules/stylis/src/Middleware.js +0 -37
- package/cjs/node_modules/stylis/src/Parser.js +0 -201
- package/cjs/node_modules/stylis/src/Serializer.js +0 -43
- package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
- package/cjs/node_modules/stylis/src/Utility.js +0 -134
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -13
- package/cjs/styles/utils/colors-export.js +0 -41
- package/cjs/utils/dateTime.js +0 -20
- package/cjs/utils/defaultTheme.js +0 -75
- package/doctor-storybook.log +0 -20
- package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/index2.js +0 -3
- package/esm/_virtual/index3.js +0 -3
- package/esm/_virtual/index4.js +0 -3
- package/esm/_virtual/index5.js +0 -3
- package/esm/_virtual/react-dom.development.js +0 -3
- package/esm/_virtual/react-dom.production.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.development2.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-is.production.min2.js +0 -3
- package/esm/_virtual/react.development.js +0 -3
- package/esm/_virtual/react.production.js +0 -3
- package/esm/components/data/Alert/Alert.js +0 -75
- package/esm/components/data/Alert/Alert.styled.js +0 -70
- package/esm/components/data/Alert/data/Alert/index.js +0 -1
- package/esm/components/data/Badge/Badge.js +0 -89
- package/esm/components/data/Badge/Badge.styled.js +0 -156
- package/esm/components/data/Badge/data/Badge/index.js +0 -1
- package/esm/components/data/Popover/Popover.js +0 -96
- package/esm/components/data/Popover/Popover.styled.js +0 -150
- package/esm/components/data/Popover/data/Popover/index.js +0 -1
- package/esm/components/data/Tab/Tab.js +0 -27
- package/esm/components/data/Tab/Tab.styled.js +0 -19
- package/esm/components/data/Tab/data/Tab/index.js +0 -1
- package/esm/components/data/Tabs/Tabs.js +0 -97
- package/esm/components/data/Tabs/Tabs.styled.js +0 -98
- package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
- package/esm/components/data/Tooltip/Tooltip.js +0 -48
- package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
- package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -78
- package/esm/components/data/data/index.js +0 -7
- package/esm/components/inputs/ActionButton/ActionButton.js +0 -40
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -67
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
- package/esm/components/inputs/Button/Button.js +0 -191
- package/esm/components/inputs/Button/Button.styled.js +0 -323
- package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
- package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -147
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -335
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -173
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -256
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -389
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -92
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -129
- package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -204
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
- package/esm/components/inputs/Radio/Radio.js +0 -63
- package/esm/components/inputs/Radio/Radio.styled.js +0 -91
- package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
- package/esm/components/inputs/Switch/Switch.js +0 -65
- package/esm/components/inputs/Switch/Switch.styled.js +0 -125
- package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
- package/esm/components/inputs/TextArea/TextArea.js +0 -172
- package/esm/components/inputs/TextArea/TextArea.styled.js +0 -512
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
- package/esm/components/inputs/TextInput/TextInput.js +0 -142
- package/esm/components/inputs/TextInput/TextInput.styled.js +0 -274
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
- package/esm/components/inputs/inputs/index.js +0 -13
- package/esm/components/layout/InputGroup/InputGroup.js +0 -22
- package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -15
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -20
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
- package/esm/components/layout/layout/index.js +0 -2
- package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -57
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -21
- package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -102
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -387
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -42
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -401
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -358
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
- package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -95
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -25
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -16
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -92
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -27
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +0 -43
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -121
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
- package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -75
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -191
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
- package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -89
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -151
- package/esm/components/widgets/widgets/index.js +0 -8
- package/esm/hooks/useEventListner.js +0 -22
- package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
- package/esm/hooks/useOnClickOutside.js +0 -13
- package/esm/icons/arrow-back.svg.js +0 -16
- package/esm/icons/arrow-forward.svg.js +0 -16
- package/esm/icons/check-rectangle-filled.svg.js +0 -16
- package/esm/icons/close.svg.js +0 -16
- package/esm/icons/edit-note.svg.js +0 -16
- package/esm/icons/expand-more.svg.js +0 -16
- package/esm/icons/headset.svg.js +0 -16
- package/esm/icons/layers.svg.js +0 -16
- package/esm/icons/link.svg.js +0 -16
- package/esm/icons/play.svg.js +0 -16
- package/esm/icons/search.svg.js +0 -16
- package/esm/icons/star-filled.svg.js +0 -16
- package/esm/icons/star.svg.js +0 -16
- package/esm/icons/triangle-right.svg.js +0 -16
- package/esm/icons/verification.svg.js +0 -16
- package/esm/icons/warning-circle.svg.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -902
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -112
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -139
- package/esm/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -38
- package/esm/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -35
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
- package/esm/node_modules/object-assign/index.js +0 -90
- package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/esm/node_modules/prop-types/index.js +0 -29
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/esm/node_modules/prop-types/lib/has.js +0 -3
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/react/cjs/react.development.js +0 -1287
- package/esm/node_modules/react/cjs/react.production.js +0 -543
- package/esm/node_modules/react/index.js +0 -15
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
- package/esm/node_modules/react-dom/index.js +0 -42
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/esm/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2650
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
- package/esm/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -97
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
- package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/esm/node_modules/stylis/src/Enum.js +0 -12
- package/esm/node_modules/stylis/src/Middleware.js +0 -32
- package/esm/node_modules/stylis/src/Parser.js +0 -193
- package/esm/node_modules/stylis/src/Serializer.js +0 -38
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
- package/esm/node_modules/stylis/src/Utility.js +0 -117
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
- package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -9
- package/esm/ssr/ssr/index.js +0 -1
- package/esm/styles/utils/colors-export.js +0 -37
- package/esm/utils/dateTime.js +0 -16
- package/esm/utils/defaultTheme.js +0 -70
- package/migration-storybook.log +0 -392
- package/styles/utils/colors-export.js +0 -35
- /package/{cjs/ssr → build}/ssr/index.js +0 -0
|
@@ -1,75 +0,0 @@
|
|
|
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
|
-
align: 'left',
|
|
68
|
-
alertMessage: 'Use subject to restrictions. Editorial use only, no commercial use without prior consent from rights holder.',
|
|
69
|
-
lineClamp: 0,
|
|
70
|
-
horizontalPadding: 30,
|
|
71
|
-
verticalPadding: 17
|
|
72
|
-
};
|
|
73
|
-
var Alert$1 = Alert;
|
|
74
|
-
|
|
75
|
-
export { Alert$1 as default };
|
|
@@ -1,70 +0,0 @@
|
|
|
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 shouldForwardProp = prop => {
|
|
12
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
13
|
-
};
|
|
14
|
-
const Alert = styled.div.withConfig({
|
|
15
|
-
shouldForwardProp
|
|
16
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
padding: ${0};
|
|
20
|
-
width: ${0};
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
|
|
23
|
-
${0}
|
|
24
|
-
|
|
25
|
-
${0}
|
|
26
|
-
|
|
27
|
-
${0}
|
|
28
|
-
|
|
29
|
-
text-align: ${0};
|
|
30
|
-
`), props => {
|
|
31
|
-
var _props$$verticalPaddi, _props$$horizontalPad;
|
|
32
|
-
const verticalPadding = (_props$$verticalPaddi = props.$verticalPadding) !== null && _props$$verticalPaddi !== void 0 ? _props$$verticalPaddi : 17;
|
|
33
|
-
const horizontalPadding = (_props$$horizontalPad = props.$horizontalPadding) !== null && _props$$horizontalPad !== void 0 ? _props$$horizontalPad : 30;
|
|
34
|
-
return `${verticalPadding}px ${horizontalPadding}px`;
|
|
35
|
-
}, props => props.width ? `${props.width}px` : '100%', props => props.$warning && css(_t2 || (_t2 = _`
|
|
36
|
-
${0}
|
|
37
|
-
`), props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400'))), props => props.$error && css(_t3 || (_t3 = _`
|
|
38
|
-
${0}
|
|
39
|
-
`), props.theme.themeProp('background', '#7F1B1B', props.theme.getColor('red-200'))), props => props.$info && css(_t4 || (_t4 = _`
|
|
40
|
-
background: transparent;
|
|
41
|
-
`)), props => props.align === 'center' ? 'center' : 'left');
|
|
42
|
-
const AlertRender = styled.div.withConfig({
|
|
43
|
-
shouldForwardProp
|
|
44
|
-
}).attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
word-break: break-word;
|
|
48
|
-
${0}
|
|
49
|
-
${0}
|
|
50
|
-
${0};
|
|
51
|
-
|
|
52
|
-
svg {
|
|
53
|
-
width: 12px;
|
|
54
|
-
height: 12px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
span {
|
|
58
|
-
flex: 1;
|
|
59
|
-
padding-left: 5px;
|
|
60
|
-
${0};
|
|
61
|
-
}
|
|
62
|
-
`), 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 = _`
|
|
63
|
-
display: -webkit-box;
|
|
64
|
-
-webkit-line-clamp: ${0};
|
|
65
|
-
-webkit-box-orient: vertical;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
text-overflow: ellipsis;
|
|
68
|
-
`), props.$lineClamp) : null);
|
|
69
|
-
|
|
70
|
-
export { Alert, AlertRender };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Alert.js';
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
-
$elevatedverticalPadding: 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 };
|
|
@@ -1,156 +0,0 @@
|
|
|
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 shouldForwardProp = prop => {
|
|
14
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
15
|
-
};
|
|
16
|
-
const Badge = styled.span.withConfig({
|
|
17
|
-
shouldForwardProp
|
|
18
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
19
|
-
align-content: center;
|
|
20
|
-
display: ${0};
|
|
21
|
-
font-family: ${0};
|
|
22
|
-
font-size: 1rem;
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
min-height: 24px;
|
|
25
|
-
position: relative;
|
|
26
|
-
width: ${0};
|
|
27
|
-
`), props => props.$elevated || !props.$hasChildren ? 'inline-flex' : 'flex', props => props.theme.primaryFontFamily, props => props.$elevated ? 'fit-content' : 'initial');
|
|
28
|
-
const BadgeChildrenContainer = styled.span.withConfig({
|
|
29
|
-
shouldForwardProp
|
|
30
|
-
}).attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
31
|
-
align-self: center;
|
|
32
|
-
height: fit-content;
|
|
33
|
-
margin-right: 8px;
|
|
34
|
-
`));
|
|
35
|
-
const BadgeLabel = styled.span.withConfig({
|
|
36
|
-
shouldForwardProp
|
|
37
|
-
}).attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
38
|
-
border-radius: ${0};
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
|
|
44
|
-
font-size: ${0};
|
|
45
|
-
font-weight: ${0};
|
|
46
|
-
line-height: ${0};
|
|
47
|
-
height: ${0};
|
|
48
|
-
letter-spacing: 0.32px;
|
|
49
|
-
margin-left: ${0};
|
|
50
|
-
position: ${0};
|
|
51
|
-
right: 0;
|
|
52
|
-
transform: ${0};
|
|
53
|
-
|
|
54
|
-
${0}
|
|
55
|
-
|
|
56
|
-
${0}
|
|
57
|
-
|
|
58
|
-
${0}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
${0}
|
|
62
|
-
|
|
63
|
-
${0}
|
|
64
|
-
|
|
65
|
-
${0}
|
|
66
|
-
`), props => props.$elevated ? '12px' : '14px', props => {
|
|
67
|
-
if (props.fontSize) {
|
|
68
|
-
return `${props.fontSize}px`;
|
|
69
|
-
} else {
|
|
70
|
-
return props.elevated ? '0.625rem' : '0.750rem';
|
|
71
|
-
}
|
|
72
|
-
}, 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 = _`
|
|
73
|
-
width: ${0}px;
|
|
74
|
-
`), props.width) : null, props => props.$minWidth ? css(_t5 || (_t5 = _`
|
|
75
|
-
min-width: ${0}px;
|
|
76
|
-
`), props.$minWidth) : null, props => props.minHeight ? css(_t6 || (_t6 = _`
|
|
77
|
-
min-height: ${0}px;
|
|
78
|
-
`), props.minHeight) : null, props => {
|
|
79
|
-
const verticalPadding = props.verticalPadding ? `${props.verticalPadding}px` : props.$elevated ? '4px' : '6px';
|
|
80
|
-
const horizontalPadding = props.$horizontalPadding ? `${props.$horizontalPadding}px` : props.$elevated ? '7px' : '10px';
|
|
81
|
-
return css(_t7 || (_t7 = _`
|
|
82
|
-
padding: ${0} ${0};
|
|
83
|
-
`), verticalPadding, horizontalPadding);
|
|
84
|
-
}, props => props.theme.themeProp('background', () => {
|
|
85
|
-
var _props$backgroundColo, _props$backgroundColo2;
|
|
86
|
-
const active = props.$active;
|
|
87
|
-
const error = props.$error;
|
|
88
|
-
const warning = props.$warning;
|
|
89
|
-
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');
|
|
90
|
-
switch (true) {
|
|
91
|
-
case !error && !warning && !active:
|
|
92
|
-
return defaultBgColor;
|
|
93
|
-
case !error && !warning && active:
|
|
94
|
-
return props.theme.getColor('gray-700');
|
|
95
|
-
case error && active:
|
|
96
|
-
return props.theme.getColor('red-500');
|
|
97
|
-
case error:
|
|
98
|
-
return props.theme.getColor('red-200');
|
|
99
|
-
case warning && active:
|
|
100
|
-
return props.theme.getColor('signal-yellow-500');
|
|
101
|
-
case warning:
|
|
102
|
-
return props.theme.getColor('signal-yellow-400');
|
|
103
|
-
default:
|
|
104
|
-
return props.theme.getColor('gray-600');
|
|
105
|
-
}
|
|
106
|
-
}, () => {
|
|
107
|
-
var _props$$backgroundCol, _props$$backgroundCol2;
|
|
108
|
-
const active = props.$active;
|
|
109
|
-
const error = props.$error;
|
|
110
|
-
const warning = props.$warning;
|
|
111
|
-
const defaultBgColor = (_props$$backgroundCol = props === null || props === void 0 || (_props$$backgroundCol2 = props.$backgroundColors) === null || _props$$backgroundCol2 === void 0 ? void 0 : _props$$backgroundCol2[1]) !== null && _props$$backgroundCol !== void 0 ? _props$$backgroundCol : props.theme.getColor('gray-200');
|
|
112
|
-
switch (true) {
|
|
113
|
-
case !error && !warning && !active:
|
|
114
|
-
return defaultBgColor;
|
|
115
|
-
case !error && !warning && active:
|
|
116
|
-
return props.theme.getColor('white');
|
|
117
|
-
case error && active:
|
|
118
|
-
return props.theme.getColor('red-500');
|
|
119
|
-
case error:
|
|
120
|
-
return props.theme.getColor('red-200');
|
|
121
|
-
case warning && active:
|
|
122
|
-
return props.theme.getColor('signal-yellow-500');
|
|
123
|
-
case warning:
|
|
124
|
-
return props.theme.getColor('signal-yellow-400');
|
|
125
|
-
default:
|
|
126
|
-
return props.theme.getColor('gray-200');
|
|
127
|
-
}
|
|
128
|
-
}), props => props.theme.themeProp('color', () => {
|
|
129
|
-
var _props$$colors$, _props$$colors;
|
|
130
|
-
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');
|
|
131
|
-
if (props.$warning && !props.$error || props.error && !props.$active) {
|
|
132
|
-
return props.theme.getColor('gray-900');
|
|
133
|
-
} else {
|
|
134
|
-
return defaultColor;
|
|
135
|
-
}
|
|
136
|
-
}, () => {
|
|
137
|
-
var _props$$colors$2, _props$$colors2;
|
|
138
|
-
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');
|
|
139
|
-
if (props.$error && props.$active) {
|
|
140
|
-
return props.theme.getColor('white');
|
|
141
|
-
} else {
|
|
142
|
-
return defaultColor;
|
|
143
|
-
}
|
|
144
|
-
}));
|
|
145
|
-
const BadgeIcon = styled.span.withConfig({
|
|
146
|
-
shouldForwardProp
|
|
147
|
-
}).attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
148
|
-
display: flex;
|
|
149
|
-
align-items: center;
|
|
150
|
-
margin-right: ${0};
|
|
151
|
-
svg {
|
|
152
|
-
height: 12px;
|
|
153
|
-
}
|
|
154
|
-
`), props => props.$useGutter ? '4px' : 0);
|
|
155
|
-
|
|
156
|
-
export { Badge, BadgeChildrenContainer, BadgeIcon, BadgeLabel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Badge.js';
|
|
@@ -1,96 +0,0 @@
|
|
|
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
|
-
const eventHandlerProps = ['onClick', 'onChange', 'onSubmit'];
|
|
39
|
-
const filteredProps = Object.fromEntries(Object.entries(props).filter(([key]) => !eventHandlerProps.includes(key)));
|
|
40
|
-
return React.createElement("div", null, React.createElement(Popover$2, _extends({
|
|
41
|
-
ref: ref,
|
|
42
|
-
content: content,
|
|
43
|
-
interactive: interactive,
|
|
44
|
-
placement: contextMenuSublevel ? 'right-start' : placement,
|
|
45
|
-
duration: duration,
|
|
46
|
-
animation: 'shift-away-subtle',
|
|
47
|
-
trigger: isControlled ? undefined : contextMenuSublevel ? 'mouseenter click focus' : trigger,
|
|
48
|
-
offset: [offset[0], offset[1] + errorOffset],
|
|
49
|
-
arrow: contextMenu ? false : arrow,
|
|
50
|
-
visible: visible,
|
|
51
|
-
popperOptions: {
|
|
52
|
-
modifiers: [_objectSpread2(_objectSpread2({}, maxSize), {}, {
|
|
53
|
-
options: {
|
|
54
|
-
boundary: 'viewport',
|
|
55
|
-
rootBoundary: 'viewport',
|
|
56
|
-
padding: 10
|
|
57
|
-
}
|
|
58
|
-
}), {
|
|
59
|
-
name: 'applyMaxSize',
|
|
60
|
-
enabled: true,
|
|
61
|
-
phase: 'beforeWrite',
|
|
62
|
-
requires: ['maxSize'],
|
|
63
|
-
fn({
|
|
64
|
-
state
|
|
65
|
-
}) {
|
|
66
|
-
const {
|
|
67
|
-
height
|
|
68
|
-
} = state.modifiersData.maxSize;
|
|
69
|
-
state.styles.popper = _objectSpread2(_objectSpread2({}, state.styles.popper), {}, {
|
|
70
|
-
maxHeight: `${height}px`
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}, ...modifiers]
|
|
74
|
-
},
|
|
75
|
-
onShow: contextMenu ? handleContextMenuItemClick : undefined,
|
|
76
|
-
maxWidth: maxWidth
|
|
77
|
-
}, filteredProps), children));
|
|
78
|
-
});
|
|
79
|
-
Popover.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
80
|
-
content: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
|
|
81
|
-
interactive: PropTypes.bool,
|
|
82
|
-
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']),
|
|
83
|
-
duration: PropTypes.number,
|
|
84
|
-
trigger: PropTypes.string,
|
|
85
|
-
offset: PropTypes.arrayOf(PropTypes.number),
|
|
86
|
-
arrow: PropTypes.bool,
|
|
87
|
-
visible: PropTypes.bool,
|
|
88
|
-
modifiers: PropTypes.array,
|
|
89
|
-
maxWidth: PropTypes.string,
|
|
90
|
-
contextMenu: PropTypes.bool,
|
|
91
|
-
contextMenuSublevel: PropTypes.bool,
|
|
92
|
-
children: PropTypes.node.isRequired
|
|
93
|
-
} : {};
|
|
94
|
-
var Popover$1 = Popover;
|
|
95
|
-
|
|
96
|
-
export { Popover$1 as default };
|
|
@@ -1,150 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Popover.js';
|
|
@@ -1,27 +0,0 @@
|
|
|
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 };
|