@ntbjs/react-components 2.0.0-rc.12 → 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/build/styles/utils/colors.scss +15 -0
- 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 +45 -58
- package/styles/all.scss +3 -3
- package/styles/config.scss +1 -0
- package/styles/utils/colors.scss +1 -1
- 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 -81
- package/cjs/components/data/Alert/Alert.styled.js +0 -72
- 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 -156
- package/cjs/components/data/Badge/data/Badge/index.js +0 -9
- package/cjs/components/data/Popover/Popover.js +0 -102
- 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 -22
- package/cjs/components/data/Tab/data/Tab/index.js +0 -9
- package/cjs/components/data/Tabs/Tabs.js +0 -91
- package/cjs/components/data/Tabs/Tabs.styled.js +0 -97
- package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
- package/cjs/components/data/Tooltip/Tooltip.js +0 -50
- 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 -79
- package/cjs/components/data/data/index.js +0 -21
- package/cjs/components/inputs/ActionButton/ActionButton.js +0 -42
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -66
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
- package/cjs/components/inputs/Button/Button.js +0 -188
- package/cjs/components/inputs/Button/Button.styled.js +0 -294
- 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 -145
- 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 -352
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -178
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -258
- 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 -352
- 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 -89
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -122
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -251
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -279
- 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 -93
- 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 -123
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
- package/cjs/components/inputs/TextArea/TextArea.js +0 -186
- package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -455
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
- package/cjs/components/inputs/TextInput/TextInput.js +0 -147
- package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -276
- 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 -18
- 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 -21
- 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 -58
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -24
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -102
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -392
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -43
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -402
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -338
- 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 -96
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -19
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -93
- 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 -30
- 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 -39
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -110
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
- package/cjs/components/widgets/Instructions/Instructions.js +0 -217
- package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -58
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -154
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -92
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -142
- package/cjs/components/widgets/widgets/index.js +0 -25
- 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.browser.esm.js +0 -445
- 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-f0de968e.browser.esm.js +0 -116
- package/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -63
- 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.browser.esm.js +0 -14
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -51
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -907
- 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 -128
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -165
- package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -46
- package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -41
- 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 -1246
- package/cjs/node_modules/react/cjs/react.production.js +0 -552
- 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-aab027f3.esm.js +0 -2653
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
- package/cjs/node_modules/react-select/dist/useCreatable-84008237.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.browser.esm.js +0 -10
- package/cjs/styles/utils/colors.scss.js +0 -11
- package/cjs/utils/dateTime.js +0 -20
- package/cjs/utils/defaultTheme.js +0 -52
- 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 -77
- package/esm/components/data/Alert/Alert.styled.js +0 -63
- 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 -145
- package/esm/components/data/Badge/data/Badge/index.js +0 -1
- package/esm/components/data/Popover/Popover.js +0 -94
- 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 -14
- package/esm/components/data/Tab/data/Tab/index.js +0 -1
- package/esm/components/data/Tabs/Tabs.js +0 -87
- package/esm/components/data/Tabs/Tabs.styled.js +0 -85
- package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
- package/esm/components/data/Tooltip/Tooltip.js +0 -46
- 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 -69
- package/esm/components/data/data/index.js +0 -7
- package/esm/components/inputs/ActionButton/ActionButton.js +0 -38
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -58
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
- package/esm/components/inputs/Button/Button.js +0 -184
- package/esm/components/inputs/Button/Button.styled.js +0 -277
- 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 -132
- 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 -324
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -174
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -245
- 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 -335
- 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 -75
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -104
- package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -247
- 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 -84
- 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 -110
- package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
- package/esm/components/inputs/TextArea/TextArea.js +0 -182
- package/esm/components/inputs/TextArea/TextArea.styled.js +0 -437
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
- package/esm/components/inputs/TextInput/TextInput.js +0 -143
- package/esm/components/inputs/TextInput/TextInput.styled.js +0 -261
- 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 -10
- 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 -13
- 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 -46
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -16
- package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -98
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -384
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -33
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -398
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -311
- 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 -84
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -11
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -83
- 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 -22
- 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 -35
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -94
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
- package/esm/components/widgets/Instructions/Instructions.js +0 -213
- package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
- package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -54
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -137
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
- package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -88
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -124
- package/esm/components/widgets/widgets/index.js +0 -9
- 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.browser.esm.js +0 -441
- 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-f0de968e.browser.esm.js +0 -107
- package/esm/node_modules/@emotion/react/dist/emotion-react.browser.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.browser.esm.js +0 -10
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -45
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -894
- 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 -110
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -138
- package/esm/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -41
- package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -37
- 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 -1244
- package/esm/node_modules/react/cjs/react.production.js +0 -547
- 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-aab027f3.esm.js +0 -2644
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
- package/esm/node_modules/react-select/dist/useCreatable-84008237.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.browser.esm.js +0 -6
- package/esm/ssr/ssr/index.js +0 -1
- package/esm/styles/utils/colors.scss.js +0 -7
- package/esm/utils/dateTime.js +0 -16
- package/esm/utils/defaultTheme.js +0 -47
- package/migration-storybook.log +0 -392
- /package/{cjs/ssr → build}/ssr/index.js +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { isEmpty, isNil } from 'lodash';
|
|
3
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
-
import React from '../../../node_modules/react/index.js';
|
|
5
|
-
import { Tabs as Tabs$2, TabHeaders, TabHeader, TabHeaderBorder, TabContent } from './Tabs.styled.js';
|
|
6
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
7
|
-
import Tab from '../Tab/Tab.js';
|
|
8
|
-
|
|
9
|
-
const _excluded = ["children", "defaultMinHeight", "customPadding"];
|
|
10
|
-
const Tabs = React.forwardRef(function Tabs(_ref, forwardedRef) {
|
|
11
|
-
let {
|
|
12
|
-
children,
|
|
13
|
-
defaultMinHeight,
|
|
14
|
-
customPadding
|
|
15
|
-
} = _ref,
|
|
16
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
const [activeTab, setActiveTab] = react.exports.useState(0);
|
|
18
|
-
const contentRef = react.exports.useRef(null);
|
|
19
|
-
const tabs = react.exports.useMemo(() => {
|
|
20
|
-
const tabs = [];
|
|
21
|
-
function extractChildren(children) {
|
|
22
|
-
react.exports.Children.forEach(children, (child, index) => {
|
|
23
|
-
var _child$props2;
|
|
24
|
-
if (isNil(child)) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
if (child.type === react.exports.Fragment) {
|
|
28
|
-
var _child$props;
|
|
29
|
-
extractChildren((_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.children);
|
|
30
|
-
}
|
|
31
|
-
if ((_child$props2 = child.props) !== null && _child$props2 !== void 0 && _child$props2.hidden) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
if (child.type === Tab) {
|
|
35
|
-
var _child$props3, _child$props4;
|
|
36
|
-
tabs.push({
|
|
37
|
-
key: index,
|
|
38
|
-
trigger: (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.trigger,
|
|
39
|
-
content: (_child$props4 = child.props) === null || _child$props4 === void 0 ? void 0 : _child$props4.children
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
extractChildren(children);
|
|
45
|
-
if (!tabs.some(tab => (tab === null || tab === void 0 ? void 0 : tab.key) === activeTab)) {
|
|
46
|
-
var _tabs$;
|
|
47
|
-
setActiveTab((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key);
|
|
48
|
-
}
|
|
49
|
-
return tabs;
|
|
50
|
-
}, [children]);
|
|
51
|
-
return React.createElement(Tabs$2, _extends({
|
|
52
|
-
ref: forwardedRef
|
|
53
|
-
}, props, {
|
|
54
|
-
role: "tablist"
|
|
55
|
-
}), React.createElement(TabHeaders, {
|
|
56
|
-
customPadding: customPadding
|
|
57
|
-
}, tabs.map(tab => React.createElement(TabHeader, {
|
|
58
|
-
key: tab.key,
|
|
59
|
-
hidden: tab.hidden,
|
|
60
|
-
active: tab.key === activeTab,
|
|
61
|
-
onClick: () => setActiveTab(tab.key),
|
|
62
|
-
role: "tab"
|
|
63
|
-
}, tab.trigger))), React.createElement(TabHeaderBorder, {
|
|
64
|
-
customPadding: customPadding
|
|
65
|
-
}), React.createElement(TabContent, null, tabs.map(tab => React.createElement("div", {
|
|
66
|
-
ref: tab.key === (activeTab === null || activeTab === void 0 ? void 0 : activeTab.key) ? contentRef : null,
|
|
67
|
-
key: tab.key,
|
|
68
|
-
role: "tabpanel",
|
|
69
|
-
hidden: tab.key !== activeTab,
|
|
70
|
-
style: {
|
|
71
|
-
minHeight: !isEmpty(defaultMinHeight) ? defaultMinHeight : ''
|
|
72
|
-
}
|
|
73
|
-
}, tab.content))));
|
|
74
|
-
});
|
|
75
|
-
Tabs.defaultProps = {
|
|
76
|
-
defaultMinHeight: '',
|
|
77
|
-
customPadding: 0
|
|
78
|
-
};
|
|
79
|
-
Tabs.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
80
|
-
children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),
|
|
81
|
-
backgroundColor: PropTypes.string,
|
|
82
|
-
defaultMinHeight: PropTypes.string,
|
|
83
|
-
customPadding: PropTypes.string
|
|
84
|
-
} : {};
|
|
85
|
-
var Tabs$1 = Tabs;
|
|
86
|
-
|
|
87
|
-
export { Tabs$1 as default };
|
|
@@ -1,85 +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
|
-
_t9,
|
|
14
|
-
_t10,
|
|
15
|
-
_t11;
|
|
16
|
-
const Tabs = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
17
|
-
display: block;
|
|
18
|
-
position: relative;
|
|
19
|
-
${0};
|
|
20
|
-
`), props => props.backgroundColor && css(_t2 || (_t2 = _`
|
|
21
|
-
background-color: ${0};
|
|
22
|
-
`), props.backgroundColor));
|
|
23
|
-
const TabHeaders = styled.ul.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
24
|
-
display: flex;
|
|
25
|
-
overflow-x: auto;
|
|
26
|
-
overflow-y: hidden;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
gap: 24px;
|
|
29
|
-
|
|
30
|
-
margin: 0;
|
|
31
|
-
${0};
|
|
32
|
-
${0};
|
|
33
|
-
`), props => !props.customPadding && css(_t4 || (_t4 = _`
|
|
34
|
-
padding: 0;
|
|
35
|
-
`)), props => props.customPadding && css(_t5 || (_t5 = _`
|
|
36
|
-
padding: 0 ${0};
|
|
37
|
-
`), props.customPadding));
|
|
38
|
-
const TabHeader = styled.li.attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
39
|
-
font-family: ${0};
|
|
40
|
-
text-transform: uppercase;
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
font-size: 0.875rem;
|
|
43
|
-
display: flex;
|
|
44
|
-
padding-bottom: 8px;
|
|
45
|
-
letter-spacing: 0.6px;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
border-bottom: 1px solid;
|
|
48
|
-
border-color: transparent;
|
|
49
|
-
margin-bottom: 1px;
|
|
50
|
-
|
|
51
|
-
${0};
|
|
52
|
-
&&:hover:not(:focus) {
|
|
53
|
-
${0};
|
|
54
|
-
}
|
|
55
|
-
`), props => props.theme.secondaryFontFamily, props => props.active && css(_t7 || (_t7 = _`
|
|
56
|
-
${0}
|
|
57
|
-
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-700'))), props => props.theme.themeProp('border-color', () => {
|
|
58
|
-
if (props.active) {
|
|
59
|
-
return props.theme.getColor('gray-400');
|
|
60
|
-
} else {
|
|
61
|
-
return props.theme.getColor('gray-400');
|
|
62
|
-
}
|
|
63
|
-
}, () => {
|
|
64
|
-
if (props.active) {
|
|
65
|
-
return props.theme.getColor('gray-700');
|
|
66
|
-
} else {
|
|
67
|
-
return props.theme.getColor('gray-700');
|
|
68
|
-
}
|
|
69
|
-
}));
|
|
70
|
-
const TabContent = styled.div.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
71
|
-
display: block;
|
|
72
|
-
`));
|
|
73
|
-
const TabHeaderBorder = styled.div.attrs(applyDefaultTheme)(_t9 || (_t9 = _`
|
|
74
|
-
border-top: 1px solid;
|
|
75
|
-
|
|
76
|
-
${0};
|
|
77
|
-
${0};
|
|
78
|
-
${0};
|
|
79
|
-
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), '#F0F2F5'), props => !props.customPadding && css(_t10 || (_t10 = _`
|
|
80
|
-
margin: -2px 0;
|
|
81
|
-
`)), props => props.customPadding && css(_t11 || (_t11 = _`
|
|
82
|
-
margin: -2px ${0};
|
|
83
|
-
`), props.customPadding));
|
|
84
|
-
|
|
85
|
-
export { TabContent, TabHeader, TabHeaderBorder, TabHeaders, Tabs };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Tabs.js';
|
|
@@ -1,46 +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 { Tooltip as Tooltip$2 } from './Tooltip.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["content", "interactive", "placement", "duration", "trigger", "visible", "children"];
|
|
7
|
-
const Tooltip = React.forwardRef(function Tooltip(_ref, ref) {
|
|
8
|
-
let {
|
|
9
|
-
content,
|
|
10
|
-
interactive,
|
|
11
|
-
placement,
|
|
12
|
-
duration,
|
|
13
|
-
trigger,
|
|
14
|
-
visible,
|
|
15
|
-
children
|
|
16
|
-
} = _ref,
|
|
17
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
-
return React.createElement("div", null, React.createElement(Tooltip$2, _extends({
|
|
19
|
-
ref: ref,
|
|
20
|
-
content: content,
|
|
21
|
-
interactive: interactive,
|
|
22
|
-
placement: placement,
|
|
23
|
-
duration: duration,
|
|
24
|
-
trigger: trigger,
|
|
25
|
-
visible: visible,
|
|
26
|
-
animation: 'shift-away-subtle'
|
|
27
|
-
}, props), children));
|
|
28
|
-
});
|
|
29
|
-
Tooltip.defaultProps = {
|
|
30
|
-
content: 'Tooltip',
|
|
31
|
-
interactive: false,
|
|
32
|
-
placement: 'top',
|
|
33
|
-
duration: 350
|
|
34
|
-
};
|
|
35
|
-
Tooltip.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
36
|
-
content: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
|
|
37
|
-
interactive: PropTypes.bool,
|
|
38
|
-
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']),
|
|
39
|
-
duration: PropTypes.number,
|
|
40
|
-
trigger: PropTypes.oneOf(['mouseenter', 'mouseenter focus', 'click', 'focusin', 'mouseenter click', '']),
|
|
41
|
-
visible: PropTypes.bool,
|
|
42
|
-
children: PropTypes.node
|
|
43
|
-
} : {};
|
|
44
|
-
var Tooltip$1 = Tooltip;
|
|
45
|
-
|
|
46
|
-
export { Tooltip$1 as default };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
-
import TippyTooltip from '@tippyjs/react';
|
|
4
|
-
import '../../../node_modules/tippy.js/animations/shift-away-subtle.css.js';
|
|
5
|
-
import '../../../node_modules/tippy.js/dist/tippy.css.js';
|
|
6
|
-
|
|
7
|
-
let _ = t => t,
|
|
8
|
-
_t;
|
|
9
|
-
const Tooltip = styled(TippyTooltip).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
10
|
-
font-family: ${0};
|
|
11
|
-
font-size: 1rem;
|
|
12
|
-
font-weight: 400;
|
|
13
|
-
background: ${0};
|
|
14
|
-
border-radius: 3px;
|
|
15
|
-
pointer-events: default !important;
|
|
16
|
-
.tippy-content {
|
|
17
|
-
padding: 9px 12px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.tippy-arrow {
|
|
21
|
-
color: ${0};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
a {
|
|
25
|
-
color: inherit;
|
|
26
|
-
}
|
|
27
|
-
`), props => props.theme.primaryFontFamily, props => props.theme.getColor('gray-700'), props => props.theme.getColor('gray-700'));
|
|
28
|
-
|
|
29
|
-
export { Tooltip };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Tooltip.js';
|
|
@@ -1,38 +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 { VerificationIconWrapper, VerificationStatusIcon as VerificationStatusIcon$2, VerificationStatusColor } from './VerificationStatusIcon.styled.js';
|
|
5
|
-
import { ReactComponent as SvgVerification } from '../../../icons/verification.svg.js';
|
|
6
|
-
|
|
7
|
-
const _excluded = ["status", "iconHeight", "background"];
|
|
8
|
-
const VerificationStatusIcon = React.forwardRef(function VerificationStatusIcon(_ref, forwardedRef) {
|
|
9
|
-
let {
|
|
10
|
-
status,
|
|
11
|
-
iconHeight,
|
|
12
|
-
background
|
|
13
|
-
} = _ref,
|
|
14
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
-
return React.createElement(VerificationIconWrapper, {
|
|
16
|
-
background: background
|
|
17
|
-
}, React.createElement(VerificationStatusIcon$2, _extends({
|
|
18
|
-
iconHeight: iconHeight,
|
|
19
|
-
background: background,
|
|
20
|
-
ref: forwardedRef
|
|
21
|
-
}, props), React.createElement(SvgVerification, null), React.createElement(VerificationStatusColor, {
|
|
22
|
-
iconHeight: iconHeight,
|
|
23
|
-
status: status,
|
|
24
|
-
background: background
|
|
25
|
-
})));
|
|
26
|
-
});
|
|
27
|
-
VerificationStatusIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
28
|
-
status: PropTypes.oneOf(['verified', 'pending', 'rejected', 'mixed']).isRequired,
|
|
29
|
-
iconHeight: PropTypes.number,
|
|
30
|
-
background: PropTypes.bool
|
|
31
|
-
} : {};
|
|
32
|
-
VerificationStatusIcon.defaultProps = {
|
|
33
|
-
iconHeight: 15,
|
|
34
|
-
background: false
|
|
35
|
-
};
|
|
36
|
-
var VerificationStatusIcon$1 = VerificationStatusIcon;
|
|
37
|
-
|
|
38
|
-
export { VerificationStatusIcon$1 as default };
|
|
@@ -1,69 +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
|
-
const VerificationIconWrapper = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
10
|
-
${0};
|
|
11
|
-
`), props => props.background && css(_t2 || (_t2 = _`
|
|
12
|
-
background-color: #000 !important;
|
|
13
|
-
width: fit-content;
|
|
14
|
-
padding: 6px 14px 6px 9px;
|
|
15
|
-
border-radius: 15px;
|
|
16
|
-
}
|
|
17
|
-
`)));
|
|
18
|
-
const VerificationStatusIcon = styled.div.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
19
|
-
display: flex;
|
|
20
|
-
position: relative;
|
|
21
|
-
font: normal normal normal 12px/16px Roboto;
|
|
22
|
-
${0};
|
|
23
|
-
|
|
24
|
-
${0};
|
|
25
|
-
|
|
26
|
-
svg {
|
|
27
|
-
height: ${0}px;
|
|
28
|
-
}
|
|
29
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700')), props => props.background && props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-100')), props => {
|
|
30
|
-
var _props$iconHeight;
|
|
31
|
-
return (_props$iconHeight = props.iconHeight) !== null && _props$iconHeight !== void 0 ? _props$iconHeight : 15;
|
|
32
|
-
});
|
|
33
|
-
const VerificationStatusColor = styled.div.attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
34
|
-
position: absolute;
|
|
35
|
-
bottom: 0;
|
|
36
|
-
left: ${0}px;
|
|
37
|
-
width: ${0}px;
|
|
38
|
-
height: ${0}px;
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
${0};
|
|
41
|
-
`), props => {
|
|
42
|
-
var _props$iconHeight2;
|
|
43
|
-
return ((_props$iconHeight2 = props.iconHeight) !== null && _props$iconHeight2 !== void 0 ? _props$iconHeight2 : 15) * 2 / 3;
|
|
44
|
-
}, props => {
|
|
45
|
-
var _props$iconHeight3;
|
|
46
|
-
return ((_props$iconHeight3 = props.iconHeight) !== null && _props$iconHeight3 !== void 0 ? _props$iconHeight3 : 15) * 2 / 3;
|
|
47
|
-
}, props => {
|
|
48
|
-
var _props$iconHeight4;
|
|
49
|
-
return ((_props$iconHeight4 = props.iconHeight) !== null && _props$iconHeight4 !== void 0 ? _props$iconHeight4 : 15) * 2 / 3;
|
|
50
|
-
}, props => {
|
|
51
|
-
let darkThemeColor = props.theme.getColor('gray-100');
|
|
52
|
-
let lightThemeColor = props.theme.getColor('gray-500');
|
|
53
|
-
if (props.status === 'verified') {
|
|
54
|
-
darkThemeColor = props.theme.getColor('emerald-500');
|
|
55
|
-
lightThemeColor = props.theme.getColor('emerald-500');
|
|
56
|
-
} else if (props.status === 'pending') {
|
|
57
|
-
darkThemeColor = props.theme.getColor('signal-yellow-500');
|
|
58
|
-
lightThemeColor = props.theme.getColor('signal-yellow-500');
|
|
59
|
-
} else if (props.status === 'rejected') {
|
|
60
|
-
darkThemeColor = props.theme.getColor('red-600');
|
|
61
|
-
lightThemeColor = props.theme.getColor('red-600');
|
|
62
|
-
} else if (props.status === 'mixed') {
|
|
63
|
-
darkThemeColor = '#008CDB';
|
|
64
|
-
lightThemeColor = '#008CDB';
|
|
65
|
-
}
|
|
66
|
-
return props.theme.themeProp('background-color', darkThemeColor, lightThemeColor);
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export { VerificationIconWrapper, VerificationStatusColor, VerificationStatusIcon };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Alert } from '../Alert/Alert.js';
|
|
2
|
-
export { default as Badge } from '../Badge/Badge.js';
|
|
3
|
-
export { default as Popover } from '../Popover/Popover.js';
|
|
4
|
-
export { default as Tab } from '../Tab/Tab.js';
|
|
5
|
-
export { default as Tabs } from '../Tabs/Tabs.js';
|
|
6
|
-
export { default as Tooltip } from '../Tooltip/Tooltip.js';
|
|
7
|
-
export { default as VerificationStatusIcon } from '../VerificationStatusIcon/VerificationStatusIcon.js';
|
|
@@ -1,38 +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 { ActionButton as ActionButton$2 } from './ActionButton.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["icon", "disabled", "active", "onClick", "actionWidthHeight"];
|
|
7
|
-
const ActionButton = React.forwardRef(function ActionButton(_ref, forwardedRef) {
|
|
8
|
-
let {
|
|
9
|
-
icon,
|
|
10
|
-
disabled,
|
|
11
|
-
active,
|
|
12
|
-
onClick,
|
|
13
|
-
actionWidthHeight
|
|
14
|
-
} = _ref,
|
|
15
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
-
return React.createElement(ActionButton$2, _extends({
|
|
17
|
-
ref: forwardedRef,
|
|
18
|
-
disabled: disabled,
|
|
19
|
-
active: active,
|
|
20
|
-
onClick: onClick,
|
|
21
|
-
actionWidthHeight: actionWidthHeight
|
|
22
|
-
}, props), icon);
|
|
23
|
-
});
|
|
24
|
-
ActionButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
25
|
-
icon: PropTypes.element.isRequired,
|
|
26
|
-
disabled: PropTypes.bool,
|
|
27
|
-
active: PropTypes.bool,
|
|
28
|
-
onClick: PropTypes.func,
|
|
29
|
-
backgroundColors: PropTypes.arrayOf(PropTypes.string),
|
|
30
|
-
actionWidthHeight: PropTypes.array
|
|
31
|
-
} : {};
|
|
32
|
-
ActionButton.defaultProps = {
|
|
33
|
-
onClick: () => {},
|
|
34
|
-
actionWidthHeight: [40, 40]
|
|
35
|
-
};
|
|
36
|
-
var ActionButton$1 = ActionButton;
|
|
37
|
-
|
|
38
|
-
export { ActionButton$1 as default };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { rgba } from 'polished';
|
|
3
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
4
|
-
|
|
5
|
-
let _ = t => t,
|
|
6
|
-
_t,
|
|
7
|
-
_t2;
|
|
8
|
-
const ActionButton = styled.button.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
border-radius: 50%;
|
|
13
|
-
width: ${0};
|
|
14
|
-
height: ${0};
|
|
15
|
-
border: 0;
|
|
16
|
-
color: inherit;
|
|
17
|
-
background-color: transparent;
|
|
18
|
-
${0}
|
|
19
|
-
background-position: center;
|
|
20
|
-
background-repeat: no-repeat;
|
|
21
|
-
background-size: 0 0;
|
|
22
|
-
transition: background-size 250ms ease;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
|
|
25
|
-
${0}
|
|
26
|
-
|
|
27
|
-
${0}
|
|
28
|
-
|
|
29
|
-
&:disabled {
|
|
30
|
-
opacity: 0.5;
|
|
31
|
-
color: inherit;
|
|
32
|
-
cursor: not-allowed;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
svg {
|
|
36
|
-
width: 100%;
|
|
37
|
-
max-width: ${0};
|
|
38
|
-
max-height: ${0};
|
|
39
|
-
|
|
40
|
-
pointer-events: none;
|
|
41
|
-
transition: color 250ms;
|
|
42
|
-
}
|
|
43
|
-
`), props => `${props.actionWidthHeight[0]}px`, props => `${props.actionWidthHeight[1]}px`, props => {
|
|
44
|
-
var _props$backgroundColo, _props$backgroundColo2, _props$backgroundColo3, _props$backgroundColo4;
|
|
45
|
-
const darkThemeBgColor = (_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');
|
|
46
|
-
const lightThemeBgColor = (_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');
|
|
47
|
-
return props.theme.themeProp('background-image', `radial-gradient(circle at center, ${darkThemeBgColor} 50%, transparent 50%)`, `radial-gradient(circle at center, ${lightThemeBgColor} 50%, transparent 50%)`);
|
|
48
|
-
}, props => css(_t2 || (_t2 = _`
|
|
49
|
-
${0}:not(:disabled) {
|
|
50
|
-
background-size: 200% 200%;
|
|
51
|
-
|
|
52
|
-
svg {
|
|
53
|
-
${0};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
`), props.active ? '' : ':hover', props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700'))), props => props.useShadow ? props.theme.themeProp('box-shadow', `0px 3px 6px ${rgba(props.theme.getColor('black'), 0.7)}`, `0px 3px 6px ${props.theme.getColor('black')}`) : null, props => `${props.actionWidthHeight[0] - 15}px`, props => `${props.actionWidthHeight[1] - 15}px`);
|
|
57
|
-
|
|
58
|
-
export { ActionButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../ActionButton.js';
|
|
@@ -1,184 +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 { ButtonWrapper, MainButtonWrapper, MainButtonContainer, Button as Button$2, ButtonContent, LoadingIndicator, LoadingIndicatorSvg, LoadingIndicatorSvgCircle, DropdownButtonContainer, MainButtonContainerSingle } from './Button.styled.js';
|
|
5
|
-
import { ReactComponent as SvgExpandMore } from '../../../icons/expand-more.svg.js';
|
|
6
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
7
|
-
import Popover from '../../data/Popover/Popover.js';
|
|
8
|
-
import ContextMenu from '../../widgets/ContextMenu/ContextMenu.js';
|
|
9
|
-
|
|
10
|
-
const _excluded = ["onClickEffect", "singleAction", "activeDropdown", "dropdownItems", "secondary", "outlined", "block", "icon", "size", "disabled", "loading", "className", "children", "singleActionGap", "width"];
|
|
11
|
-
const Button = React.forwardRef(function Button(_ref, forwardedRef) {
|
|
12
|
-
let {
|
|
13
|
-
onClickEffect,
|
|
14
|
-
singleAction = false,
|
|
15
|
-
activeDropdown = false,
|
|
16
|
-
dropdownItems,
|
|
17
|
-
secondary,
|
|
18
|
-
outlined,
|
|
19
|
-
block,
|
|
20
|
-
icon,
|
|
21
|
-
size = 'normal',
|
|
22
|
-
disabled,
|
|
23
|
-
loading,
|
|
24
|
-
className,
|
|
25
|
-
children,
|
|
26
|
-
singleActionGap = 34,
|
|
27
|
-
width
|
|
28
|
-
} = _ref,
|
|
29
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
const [loadingState, setLoadingState] = react.exports.useState(loading || false);
|
|
31
|
-
const [loadingStep, setLoadingStep] = react.exports.useState(113);
|
|
32
|
-
const loadingInterval = react.exports.useRef(0);
|
|
33
|
-
const [dropdownIsActive, setDropdownIsActive] = react.exports.useState(false);
|
|
34
|
-
const enableLoading = () => {
|
|
35
|
-
loadingInterval.current = setInterval(() => {
|
|
36
|
-
setLoadingStep(currentLoadingStep => {
|
|
37
|
-
const newLoadingStep = Math.round(currentLoadingStep - 15 * currentLoadingStep / 100);
|
|
38
|
-
if (newLoadingStep === currentLoadingStep) {
|
|
39
|
-
clearInterval(loadingInterval.current);
|
|
40
|
-
}
|
|
41
|
-
return newLoadingStep;
|
|
42
|
-
});
|
|
43
|
-
}, 300);
|
|
44
|
-
setLoadingState(true);
|
|
45
|
-
};
|
|
46
|
-
const disableLoading = () => {
|
|
47
|
-
clearInterval(loadingInterval.current);
|
|
48
|
-
setLoadingStep(0);
|
|
49
|
-
setTimeout(() => {
|
|
50
|
-
setLoadingState(false);
|
|
51
|
-
setLoadingStep(113);
|
|
52
|
-
}, 500);
|
|
53
|
-
};
|
|
54
|
-
react.exports.useEffect(() => {
|
|
55
|
-
if (loading) {
|
|
56
|
-
enableLoading();
|
|
57
|
-
} else {
|
|
58
|
-
disableLoading();
|
|
59
|
-
}
|
|
60
|
-
return () => clearInterval(loadingInterval.current);
|
|
61
|
-
}, [loading]);
|
|
62
|
-
const handleDropdownButtonClick = () => {
|
|
63
|
-
setDropdownIsActive(true);
|
|
64
|
-
};
|
|
65
|
-
const handleDropdownClose = () => {
|
|
66
|
-
setDropdownIsActive(false);
|
|
67
|
-
};
|
|
68
|
-
return React.createElement(ButtonWrapper, null, !singleAction ? React.createElement(MainButtonWrapper, {
|
|
69
|
-
activeDropdown: activeDropdown,
|
|
70
|
-
dropdownItems: dropdownItems,
|
|
71
|
-
outlined: outlined,
|
|
72
|
-
secondary: secondary
|
|
73
|
-
}, React.createElement(MainButtonContainer, {
|
|
74
|
-
dropdownItems: dropdownItems,
|
|
75
|
-
secondary: secondary,
|
|
76
|
-
outlined: outlined
|
|
77
|
-
}, React.createElement(Button$2, _extends({
|
|
78
|
-
ref: forwardedRef,
|
|
79
|
-
onClick: onClickEffect,
|
|
80
|
-
singleAction: singleAction,
|
|
81
|
-
dropdownItems: dropdownItems,
|
|
82
|
-
secondary: secondary,
|
|
83
|
-
outlined: outlined,
|
|
84
|
-
block: block,
|
|
85
|
-
size: size,
|
|
86
|
-
disabled: disabled,
|
|
87
|
-
className: className,
|
|
88
|
-
"aria-busy": disabled,
|
|
89
|
-
width: width
|
|
90
|
-
}, props), React.createElement(ButtonContent, {
|
|
91
|
-
$loading: loadingState,
|
|
92
|
-
size: size
|
|
93
|
-
}, icon, children), React.createElement(LoadingIndicator, {
|
|
94
|
-
$loading: loadingState,
|
|
95
|
-
style: {
|
|
96
|
-
opacity: loadingState ? 1 : 0
|
|
97
|
-
}
|
|
98
|
-
}, React.createElement(LoadingIndicatorSvg, {
|
|
99
|
-
viewBox: "22 22 44 44"
|
|
100
|
-
}, React.createElement(LoadingIndicatorSvgCircle, {
|
|
101
|
-
cx: "44",
|
|
102
|
-
cy: "44",
|
|
103
|
-
r: "18",
|
|
104
|
-
fill: "none",
|
|
105
|
-
strokeWidth: "4",
|
|
106
|
-
stroke: "currentColor",
|
|
107
|
-
style: {
|
|
108
|
-
strokeDashoffset: `${loadingStep}px`
|
|
109
|
-
}
|
|
110
|
-
}))))), (activeDropdown || dropdownItems) && React.createElement(DropdownButtonContainer, {
|
|
111
|
-
dropdownItems: dropdownItems,
|
|
112
|
-
secondary: secondary,
|
|
113
|
-
outlined: outlined
|
|
114
|
-
}, React.createElement(Popover, {
|
|
115
|
-
content: React.createElement(ContextMenu, null, dropdownItems),
|
|
116
|
-
placement: 'bottom-end',
|
|
117
|
-
arrow: false,
|
|
118
|
-
contextMenu: true,
|
|
119
|
-
onHide: handleDropdownClose
|
|
120
|
-
}, React.createElement(Button$2, {
|
|
121
|
-
ref: forwardedRef,
|
|
122
|
-
singleAction: singleAction,
|
|
123
|
-
singleActionGap: singleActionGap,
|
|
124
|
-
dropdownItems: dropdownItems,
|
|
125
|
-
secondary: secondary,
|
|
126
|
-
outlined: outlined,
|
|
127
|
-
block: block,
|
|
128
|
-
size: size,
|
|
129
|
-
disabled: disabled,
|
|
130
|
-
onClick: handleDropdownButtonClick,
|
|
131
|
-
className: dropdownIsActive ? 'dropdown-is-active' : '',
|
|
132
|
-
width: width
|
|
133
|
-
}, React.createElement(SvgExpandMore, null))))) : React.createElement(React.Fragment, null, React.createElement(MainButtonContainerSingle, {
|
|
134
|
-
dropdownItems: dropdownItems,
|
|
135
|
-
secondary: secondary,
|
|
136
|
-
outlined: outlined,
|
|
137
|
-
className: className
|
|
138
|
-
}, React.createElement(DropdownButtonContainer, {
|
|
139
|
-
singleAction: singleAction
|
|
140
|
-
}, React.createElement(Popover, {
|
|
141
|
-
content: React.createElement(ContextMenu, null, dropdownItems),
|
|
142
|
-
placement: 'bottom-end',
|
|
143
|
-
arrow: false,
|
|
144
|
-
contextMenu: true,
|
|
145
|
-
onHide: handleDropdownClose
|
|
146
|
-
}, React.createElement(Button$2, {
|
|
147
|
-
ref: forwardedRef,
|
|
148
|
-
singleAction: singleAction,
|
|
149
|
-
singleActionGap: singleActionGap,
|
|
150
|
-
dropdownItems: dropdownItems,
|
|
151
|
-
secondary: secondary,
|
|
152
|
-
outlined: outlined,
|
|
153
|
-
block: block,
|
|
154
|
-
size: size,
|
|
155
|
-
disabled: disabled,
|
|
156
|
-
onClick: handleDropdownButtonClick,
|
|
157
|
-
className: dropdownIsActive ? 'dropdown-is-active' : '',
|
|
158
|
-
width: width
|
|
159
|
-
}, React.createElement(ButtonContent, {
|
|
160
|
-
$loading: loadingState,
|
|
161
|
-
size: size,
|
|
162
|
-
singleAction: singleAction
|
|
163
|
-
}, icon, children), React.createElement(SvgExpandMore, null)))))));
|
|
164
|
-
});
|
|
165
|
-
Button.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
166
|
-
onClickEffect: PropTypes.func,
|
|
167
|
-
singleAction: PropTypes.bool,
|
|
168
|
-
activeDropdown: PropTypes.bool,
|
|
169
|
-
dropdownItems: PropTypes.node,
|
|
170
|
-
secondary: PropTypes.bool,
|
|
171
|
-
outlined: PropTypes.bool,
|
|
172
|
-
block: PropTypes.bool,
|
|
173
|
-
icon: PropTypes.element,
|
|
174
|
-
size: PropTypes.oneOf(['x-small', 'small', 'normal', 'large']),
|
|
175
|
-
disabled: PropTypes.bool,
|
|
176
|
-
loading: PropTypes.bool,
|
|
177
|
-
className: PropTypes.string,
|
|
178
|
-
children: PropTypes.any.isRequired,
|
|
179
|
-
singleActionGap: PropTypes.number,
|
|
180
|
-
width: PropTypes.number
|
|
181
|
-
} : {};
|
|
182
|
-
var Button$1 = Button;
|
|
183
|
-
|
|
184
|
-
export { Button$1 as default };
|