@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.27
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-4db754c3.js +85 -0
- package/build/Alert-e6847a22.js +131 -0
- package/build/Badge-d93586a9.js +214 -0
- package/build/Button-179a2fe4.js +442 -0
- package/build/Checkbox-4a5fd716.js +213 -0
- package/build/CompactAutocompleteSelect-52c49513.js +546 -0
- package/build/CompactStarRating-9af2f427.js +411 -0
- package/build/CompactTextInput-42ca5d42.js +516 -0
- package/build/InputGroup-1294d190.js +23 -0
- package/build/MultiLevelCheckboxSelect-d8044c88.js +604 -0
- package/build/MultiSelect-9f497e62.js +461 -0
- package/build/Popover-20050b91.js +232 -0
- package/build/Radio-73ca3ae2.js +134 -0
- package/build/SectionSeparator-f47760a2.js +31 -0
- package/build/Switch-ecf3122b.js +160 -0
- package/build/Tab-04d435c3.js +32 -0
- package/build/Tabs-74d1ea8a.js +159 -0
- package/build/TextArea-1e5b9201.js +611 -0
- package/build/TextInput-fab35842.js +364 -0
- package/build/Tooltip-c1d1199e.js +65 -0
- package/build/VerificationStatusIcon-49cb1c1b.js +95 -0
- package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-c245b26a.js} +1 -1
- package/{esm/icons/arrow-forward.svg.js → build/arrow-forward-ad12c5f3.js} +4 -5
- package/{esm/icons/close.svg.js → build/close-a5d37608.js} +4 -5
- package/build/data/Alert/index.js +6 -0
- package/build/data/Badge/index.js +5 -0
- package/build/data/Popover/index.js +10 -0
- package/build/data/Tab/index.js +5 -0
- package/build/data/Tabs/index.js +7 -0
- package/build/data/Tooltip/index.js +7 -0
- package/build/data/index.js +16 -0
- package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-1bcc2541.js} +578 -17
- package/{esm/icons/edit-note.svg.js → build/edit-note-283a0e15.js} +4 -5
- package/{esm/icons/expand-more.svg.js → build/expand-more-c5523c46.js} +4 -5
- 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 +6 -0
- package/build/inputs/Button/index.js +13 -0
- package/build/inputs/Checkbox/index.js +6 -0
- package/build/inputs/CompactAutocompleteSelect/index.js +23 -0
- package/build/inputs/CompactStarRating/index.js +17 -0
- package/build/inputs/CompactTextInput/index.js +19 -0
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +26 -0
- package/build/inputs/MultiSelect/index.js +10 -0
- package/build/inputs/Radio/index.js +7 -0
- package/build/inputs/Switch/index.js +6 -0
- package/build/inputs/TextArea/index.js +20 -0
- package/build/inputs/TextInput/index.js +9 -0
- package/build/inputs/index.js +40 -0
- package/build/layout/InputGroup/index.js +5 -0
- package/build/layout/SectionSeparator/index.js +5 -0
- package/build/layout/index.js +6 -0
- package/build/shift-away-subtle-0dd94a03.js +7 -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/{esm/icons/warning-circle.svg.js → build/warning-circle-24f3efcd.js} +4 -5
- package/build/widgets/AssetGallery/AssetGallery.js +2356 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +127 -0
- package/build/widgets/ContextMenu/ContextMenu.js +26 -0
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +127 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +37 -0
- package/build/widgets/InfoCard/InfoCard.js +125 -0
- package/build/widgets/Instructions/Instructions.js +255 -0
- package/build/widgets/ProgressBar/ProgressBar.js +210 -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/ssr/ssr/index.js +0 -12
- 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/check-rectangle-filled.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/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/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/{esm/ssr → build}/ssr/index.js +0 -0
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
3
|
-
|
|
4
|
-
const assetShape = {
|
|
5
|
-
key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
6
|
-
previewUrl: PropTypes.string,
|
|
7
|
-
title: PropTypes.string,
|
|
8
|
-
note: PropTypes.shape({
|
|
9
|
-
icon: PropTypes.element,
|
|
10
|
-
message: PropTypes.string
|
|
11
|
-
}),
|
|
12
|
-
width: PropTypes.number,
|
|
13
|
-
height: PropTypes.number,
|
|
14
|
-
fileType: PropTypes.oneOf(['image', 'video', 'pdf', 'file', 'audio']).isRequired,
|
|
15
|
-
fileTypeIconPosition: PropTypes.oneOf(['top-left', 'top-right']),
|
|
16
|
-
group: PropTypes.string,
|
|
17
|
-
actions: PropTypes.arrayOf(PropTypes.shape({
|
|
18
|
-
title: PropTypes.string.isRequired,
|
|
19
|
-
icon: PropTypes.element.isRequired,
|
|
20
|
-
onClick: PropTypes.func.isRequired,
|
|
21
|
-
className: PropTypes.shape,
|
|
22
|
-
component: PropTypes.func
|
|
23
|
-
})),
|
|
24
|
-
overlay: PropTypes.element,
|
|
25
|
-
completed: PropTypes.bool,
|
|
26
|
-
hasError: PropTypes.bool,
|
|
27
|
-
disabled: PropTypes.bool,
|
|
28
|
-
onClick: PropTypes.func,
|
|
29
|
-
onContextMenu: PropTypes.func,
|
|
30
|
-
onMouseEnter: PropTypes.func,
|
|
31
|
-
summary: PropTypes.shape({
|
|
32
|
-
title: PropTypes.string,
|
|
33
|
-
description: PropTypes.string,
|
|
34
|
-
instructions: PropTypes.string,
|
|
35
|
-
instructionsType: PropTypes.oneOf(['warning', 'error', 'info']),
|
|
36
|
-
headerLeft: PropTypes.node,
|
|
37
|
-
headerRight: PropTypes.node,
|
|
38
|
-
footerLeft: PropTypes.node,
|
|
39
|
-
footerRight: PropTypes.node
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
const assetShapeWithLayout = _objectSpread2(_objectSpread2({}, assetShape), {}, {
|
|
43
|
-
layout: PropTypes.shape({
|
|
44
|
-
width: PropTypes.number.isRequired,
|
|
45
|
-
height: PropTypes.number.isRequired,
|
|
46
|
-
translateX: PropTypes.number.isRequired,
|
|
47
|
-
translateY: PropTypes.number.isRequired,
|
|
48
|
-
type: PropTypes.oneOf(['groupLabel', 'asset']).isRequired,
|
|
49
|
-
hasHeightAndWidth: PropTypes.bool
|
|
50
|
-
}).isRequired
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export { assetShape, assetShapeWithLayout };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../AssetGallery.js';
|
|
@@ -1,46 +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 { AssetPreviewTopBar as AssetPreviewTopBar$2, BackButtonContainer, BackHoverEffect, LeftText, ButtonsContainer } from './AssetPreviewTopBar.styled.js';
|
|
5
|
-
import { ReactComponent as SvgArrowBack } from '../../../../icons/arrow-back.svg.js';
|
|
6
|
-
import { ReactComponent as SvgClose } from '../../../../icons/close.svg.js';
|
|
7
|
-
|
|
8
|
-
const _excluded = ["onBackButtonClick", "backButtonText", "backButtonAsClose", "leftText", "buttons", "shadow", "border", "disabled"];
|
|
9
|
-
const AssetPreviewTopBar = React.forwardRef(function AssetPreviewTopBar(_ref, forwardedRef) {
|
|
10
|
-
let {
|
|
11
|
-
onBackButtonClick,
|
|
12
|
-
backButtonText,
|
|
13
|
-
backButtonAsClose,
|
|
14
|
-
leftText,
|
|
15
|
-
buttons,
|
|
16
|
-
shadow,
|
|
17
|
-
border,
|
|
18
|
-
disabled
|
|
19
|
-
} = _ref,
|
|
20
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
return React.createElement(AssetPreviewTopBar$2, _extends({
|
|
22
|
-
ref: forwardedRef,
|
|
23
|
-
$shadow: shadow,
|
|
24
|
-
$border: border,
|
|
25
|
-
disabled: disabled
|
|
26
|
-
}, props), React.createElement(BackButtonContainer, {
|
|
27
|
-
onClick: onBackButtonClick,
|
|
28
|
-
disabled: disabled
|
|
29
|
-
}, backButtonAsClose ? React.createElement(React.Fragment, null, React.createElement(SvgClose, null), backButtonText) : React.createElement(BackHoverEffect, null, React.createElement(SvgArrowBack, null), backButtonText)), leftText && React.createElement(LeftText, null, leftText), Array.isArray(buttons) && React.createElement(ButtonsContainer, null, buttons.map((button, index) => React.createElement("span", {
|
|
30
|
-
key: 'topBarButton-' + index
|
|
31
|
-
}, button))));
|
|
32
|
-
});
|
|
33
|
-
AssetPreviewTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
34
|
-
onBackButtonClick: PropTypes.func.isRequired,
|
|
35
|
-
backButtonText: PropTypes.string.isRequired,
|
|
36
|
-
disabled: PropTypes.bool,
|
|
37
|
-
backButtonAsClose: PropTypes.bool,
|
|
38
|
-
leftText: PropTypes.string,
|
|
39
|
-
shadow: PropTypes.bool,
|
|
40
|
-
border: PropTypes.bool,
|
|
41
|
-
buttons: PropTypes.arrayOf(PropTypes.node)
|
|
42
|
-
} : {};
|
|
43
|
-
AssetPreviewTopBar.defaultProps = {};
|
|
44
|
-
var AssetPreviewTopBar$1 = AssetPreviewTopBar;
|
|
45
|
-
|
|
46
|
-
export { AssetPreviewTopBar$1 as default };
|
|
@@ -1,95 +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
|
-
const shouldForwardProp = prop => {
|
|
13
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
14
|
-
};
|
|
15
|
-
const AssetPreviewTopBar = styled.div.withConfig({
|
|
16
|
-
shouldForwardProp
|
|
17
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
align-items: center;
|
|
20
|
-
border-bottom: ${0};
|
|
21
|
-
color: inherit;
|
|
22
|
-
display: flex;
|
|
23
|
-
font-family: ${0};
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
min-height: 72px;
|
|
26
|
-
padding: 0 24px;
|
|
27
|
-
width: 100%;
|
|
28
|
-
|
|
29
|
-
${0}
|
|
30
|
-
|
|
31
|
-
${0}
|
|
32
|
-
|
|
33
|
-
${0}
|
|
34
|
-
`), props => props.$border ? `1px solid` : `none`, props => props.theme.primaryFontFamily, props => props.theme.themeProp('border-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-200')), props => props.$shadow && props.theme.themeProp('box-shadow', '0 -2px 12px #505050', '0 -3px 12px #b0b6b9'), props => props.disabled && css(_t2 || (_t2 = _`
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
`)));
|
|
37
|
-
const BackButtonContainer = styled.a.withConfig({
|
|
38
|
-
shouldForwardProp
|
|
39
|
-
}).attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
40
|
-
align-items: center;
|
|
41
|
-
display: flex;
|
|
42
|
-
font-size: 1.125rem;
|
|
43
|
-
${0};
|
|
44
|
-
|
|
45
|
-
${0}
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
> svg {
|
|
52
|
-
height: 24px;
|
|
53
|
-
margin-right: 16px;
|
|
54
|
-
width: 24px;
|
|
55
|
-
}
|
|
56
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props => props.disabled && css(_t4 || (_t4 = _`
|
|
57
|
-
opacity: 0.5;
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
`)));
|
|
60
|
-
const BackHoverEffect = styled.div(_t5 || (_t5 = _`
|
|
61
|
-
display: inline-flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
|
|
64
|
-
> svg {
|
|
65
|
-
height: 24px;
|
|
66
|
-
margin-right: 16px;
|
|
67
|
-
width: 24px;
|
|
68
|
-
transition: transform 0.3s ease-in-out;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:hover > svg {
|
|
72
|
-
transform: translateX(-2px);
|
|
73
|
-
}
|
|
74
|
-
`));
|
|
75
|
-
const LeftText = styled.span.withConfig({
|
|
76
|
-
shouldForwardProp
|
|
77
|
-
}).attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
78
|
-
font-size: 1.125rem;
|
|
79
|
-
margin-left: 16px;
|
|
80
|
-
|
|
81
|
-
${0};
|
|
82
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')));
|
|
83
|
-
const ButtonsContainer = styled.div.withConfig({
|
|
84
|
-
shouldForwardProp
|
|
85
|
-
}).attrs(applyDefaultTheme)(_t7 || (_t7 = _`
|
|
86
|
-
align-items: center;
|
|
87
|
-
display: flex;
|
|
88
|
-
margin-left: auto;
|
|
89
|
-
|
|
90
|
-
> span {
|
|
91
|
-
margin-left: 16px;
|
|
92
|
-
}
|
|
93
|
-
`));
|
|
94
|
-
|
|
95
|
-
export { AssetPreviewTopBar, BackButtonContainer, BackHoverEffect, ButtonsContainer, LeftText };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../../AssetPreviewTopBar.js';
|
|
@@ -1,25 +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 { ContextMenu as ContextMenu$2 } from './ContextMenu.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["children"];
|
|
7
|
-
const ContextMenu = React.forwardRef(function ContextMenu(_ref, forwardedRef) {
|
|
8
|
-
let {
|
|
9
|
-
children
|
|
10
|
-
} = _ref,
|
|
11
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
const filteredProps = Object.fromEntries(Object.entries(props).filter(([key]) => key !== 'sublevel'));
|
|
13
|
-
return React.createElement(ContextMenu$2, _extends({
|
|
14
|
-
ref: forwardedRef
|
|
15
|
-
}, filteredProps, {
|
|
16
|
-
role: "menu"
|
|
17
|
-
}), children);
|
|
18
|
-
});
|
|
19
|
-
ContextMenu.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
20
|
-
children: PropTypes.any
|
|
21
|
-
} : {};
|
|
22
|
-
ContextMenu.defaultProps = {};
|
|
23
|
-
var ContextMenu$1 = ContextMenu;
|
|
24
|
-
|
|
25
|
-
export { ContextMenu$1 as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
-
|
|
4
|
-
let _ = t => t,
|
|
5
|
-
_t;
|
|
6
|
-
const shouldForwardProp = prop => {
|
|
7
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
8
|
-
};
|
|
9
|
-
const ContextMenu = styled.div.withConfig({
|
|
10
|
-
shouldForwardProp
|
|
11
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
12
|
-
font-family: ${0};
|
|
13
|
-
padding: 3px 0;
|
|
14
|
-
`), props => props.theme.primaryFontFamily);
|
|
15
|
-
|
|
16
|
-
export { ContextMenu };
|
|
@@ -1,46 +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 { ContextMenuItem as ContextMenuItem$2, IconContainer, SublevelIconContainer } from './ContextMenuItem.styled.js';
|
|
5
|
-
import { ReactComponent as SvgTriangleRight } from '../../../../icons/triangle-right.svg.js';
|
|
6
|
-
|
|
7
|
-
const _excluded = ["title", "icon", "onClickEffect", "opensSublevel", "hoverColors", "hoverBackgroundColors"];
|
|
8
|
-
const ContextMenuItem = React.forwardRef(function ContextMenuItem(_ref, forwardedRef) {
|
|
9
|
-
let {
|
|
10
|
-
title,
|
|
11
|
-
icon,
|
|
12
|
-
onClickEffect,
|
|
13
|
-
opensSublevel,
|
|
14
|
-
hoverColors,
|
|
15
|
-
hoverBackgroundColors
|
|
16
|
-
} = _ref,
|
|
17
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
-
return React.createElement(ContextMenuItem$2, _extends({
|
|
19
|
-
ref: forwardedRef,
|
|
20
|
-
$icon: icon,
|
|
21
|
-
onClick: onClickEffect,
|
|
22
|
-
$hoverColors: hoverColors,
|
|
23
|
-
$hoverBackgroundColors: hoverBackgroundColors,
|
|
24
|
-
$openssublevel: opensSublevel,
|
|
25
|
-
className: opensSublevel ? 'context-menu-item opens-sublevel' : 'context-menu-item'
|
|
26
|
-
}, props, {
|
|
27
|
-
role: "menuitem"
|
|
28
|
-
}), icon && React.createElement(IconContainer, null, icon), React.createElement("span", null, title), opensSublevel && React.createElement(SublevelIconContainer, null, React.createElement(SvgTriangleRight, null)));
|
|
29
|
-
});
|
|
30
|
-
ContextMenuItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
31
|
-
title: PropTypes.string.isRequired,
|
|
32
|
-
icon: PropTypes.element,
|
|
33
|
-
onClickEffect: PropTypes.func,
|
|
34
|
-
opensSublevel: PropTypes.bool,
|
|
35
|
-
hoverColors: PropTypes.arrayOf(PropTypes.string),
|
|
36
|
-
hoverBackgroundColors: PropTypes.arrayOf(PropTypes.string)
|
|
37
|
-
} : {};
|
|
38
|
-
ContextMenuItem.defaultProps = {
|
|
39
|
-
icon: undefined,
|
|
40
|
-
hoverColors: undefined,
|
|
41
|
-
hoverBackgroundColors: undefined,
|
|
42
|
-
opensSublevel: false
|
|
43
|
-
};
|
|
44
|
-
var ContextMenuItem$1 = ContextMenuItem;
|
|
45
|
-
|
|
46
|
-
export { ContextMenuItem$1 as default };
|
|
@@ -1,92 +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 ContextMenuItem = styled.span.withConfig({
|
|
15
|
-
shouldForwardProp
|
|
16
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
17
|
-
align-items: center;
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
display: flex;
|
|
20
|
-
font-family: ${0};
|
|
21
|
-
font-size: 0.875rem;
|
|
22
|
-
font-weight: normal;
|
|
23
|
-
height: 31px;
|
|
24
|
-
min-width: 160px;
|
|
25
|
-
padding: ${0};
|
|
26
|
-
|
|
27
|
-
${0}
|
|
28
|
-
|
|
29
|
-
${0}
|
|
30
|
-
|
|
31
|
-
${0}
|
|
32
|
-
|
|
33
|
-
:not(:last-of-type) {
|
|
34
|
-
border-bottom: 1px solid;
|
|
35
|
-
|
|
36
|
-
${0}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:last-of-type {
|
|
40
|
-
height: 32px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
|
|
46
|
-
${0}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
${0}
|
|
50
|
-
|
|
51
|
-
${0}
|
|
52
|
-
`), props => props.theme.primaryFontFamily, props => props.$openssublevel ? '0 8px' : '0 28px 0 8px', props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700')), props => props.theme.themeProp('background-color', props.theme.getColor('gray-700'), '#FEFEFE'), props => !props.$icon && css(_t2 || (_t2 = _`
|
|
53
|
-
padding-left: 28px;
|
|
54
|
-
`)), props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-200')), props => props.theme.themeProp('background-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-200')), props => props.$openssublevelhoverColors && props.$hoverColors[0] && props.$hoverColors[1] && css(_t3 || (_t3 = _`
|
|
55
|
-
&&:hover {
|
|
56
|
-
${0}
|
|
57
|
-
}
|
|
58
|
-
`), props => props.theme.themeProp('color', props.hoverColors[0], props.hoverColors[1])), props => props.$hoverBackgroundColors && props.$hoverBackgroundColors[0] && props.$hoverBackgroundColors[1] && css(_t4 || (_t4 = _`
|
|
59
|
-
&&:hover {
|
|
60
|
-
${0}
|
|
61
|
-
}
|
|
62
|
-
`), props => props.theme.themeProp('background-color', props.$hoverBackgroundColors[0], props.$hoverBackgroundColors[1])));
|
|
63
|
-
const IconContainer = styled.span.withConfig({
|
|
64
|
-
shouldForwardProp
|
|
65
|
-
}).attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
66
|
-
align-items: center;
|
|
67
|
-
display: flex;
|
|
68
|
-
height: fit-content;
|
|
69
|
-
max-width: 12px;
|
|
70
|
-
margin-right: 8px;
|
|
71
|
-
|
|
72
|
-
svg {
|
|
73
|
-
height: 12px;
|
|
74
|
-
}
|
|
75
|
-
`));
|
|
76
|
-
const SublevelIconContainer = styled.span.withConfig({
|
|
77
|
-
shouldForwardProp
|
|
78
|
-
}).attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
79
|
-
align-items: center;
|
|
80
|
-
display: flex;
|
|
81
|
-
height: fit-content;
|
|
82
|
-
max-width: 12px;
|
|
83
|
-
margin-left: auto;
|
|
84
|
-
margin-right: 8px;
|
|
85
|
-
padding-left: 24px;
|
|
86
|
-
|
|
87
|
-
svg {
|
|
88
|
-
height: 12px;
|
|
89
|
-
}
|
|
90
|
-
`));
|
|
91
|
-
|
|
92
|
-
export { ContextMenuItem, IconContainer, SublevelIconContainer };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../../ContextMenuItem.js';
|
|
@@ -1,24 +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 { ContextMenuItemsGroup as ContextMenuItemsGroup$2 } from './ContextMenuItemsGroup.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["children"];
|
|
7
|
-
const ContextMenuItemsGroup = React.forwardRef(function ContextMenuItemsGroup(_ref, forwardedRef) {
|
|
8
|
-
let {
|
|
9
|
-
children
|
|
10
|
-
} = _ref,
|
|
11
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return React.createElement(ContextMenuItemsGroup$2, _extends({
|
|
13
|
-
ref: forwardedRef
|
|
14
|
-
}, props, {
|
|
15
|
-
role: "group"
|
|
16
|
-
}), children);
|
|
17
|
-
});
|
|
18
|
-
ContextMenuItemsGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
19
|
-
children: PropTypes.arrayOf(PropTypes.node)
|
|
20
|
-
} : {};
|
|
21
|
-
ContextMenuItemsGroup.defaultProps = {};
|
|
22
|
-
var ContextMenuItemsGroup$1 = ContextMenuItemsGroup;
|
|
23
|
-
|
|
24
|
-
export { ContextMenuItemsGroup$1 as default };
|
package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../../utils/defaultTheme.js';
|
|
3
|
-
|
|
4
|
-
let _ = t => t,
|
|
5
|
-
_t;
|
|
6
|
-
const shouldForwardProp = prop => {
|
|
7
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
8
|
-
};
|
|
9
|
-
const ContextMenuItemsGroup = styled.div.withConfig({
|
|
10
|
-
shouldForwardProp
|
|
11
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
12
|
-
:not(:last-child) {
|
|
13
|
-
border-bottom: 1px solid;
|
|
14
|
-
|
|
15
|
-
${0}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
> * {
|
|
19
|
-
border-bottom: none !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
> *:not(:last-child) {
|
|
23
|
-
height: 32px;
|
|
24
|
-
}
|
|
25
|
-
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-200')));
|
|
26
|
-
|
|
27
|
-
export { ContextMenuItemsGroup };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../../ContextMenuItemsGroup.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../ContextMenu.js';
|
|
@@ -1,43 +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 { Container, MetricsContainer, IconTotalContainer, IconContainer, Total, Label, Link, ButtonLink, StyledArrowIcon } from './InfoCard.styled.js';
|
|
5
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
6
|
-
|
|
7
|
-
const _excluded = ["icon", "total", "label", "linkLabel", "onClick", "height"];
|
|
8
|
-
const InfoCard = React.forwardRef(function InfoCard(_ref, forwardedRef) {
|
|
9
|
-
let {
|
|
10
|
-
icon,
|
|
11
|
-
total,
|
|
12
|
-
label,
|
|
13
|
-
linkLabel,
|
|
14
|
-
onClick,
|
|
15
|
-
height
|
|
16
|
-
} = _ref,
|
|
17
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
-
const [isLinkHovered, setIsLinkHovered] = react.exports.useState(false);
|
|
19
|
-
const handleLinkClick = e => onClick(e);
|
|
20
|
-
return React.createElement(Container, _extends({
|
|
21
|
-
height: height,
|
|
22
|
-
ref: forwardedRef
|
|
23
|
-
}, props), React.createElement(MetricsContainer, null, React.createElement(IconTotalContainer, null, React.createElement(IconContainer, null, icon), React.createElement(Total, null, total)), React.createElement(Label, null, label)), linkLabel && onClick && React.createElement(Link, {
|
|
24
|
-
onClick: handleLinkClick,
|
|
25
|
-
onMouseEnter: () => setIsLinkHovered(true),
|
|
26
|
-
onMouseLeave: () => setIsLinkHovered(false)
|
|
27
|
-
}, React.createElement(ButtonLink, {
|
|
28
|
-
$isHovered: isLinkHovered
|
|
29
|
-
}, linkLabel), React.createElement(StyledArrowIcon, {
|
|
30
|
-
$isHovered: isLinkHovered
|
|
31
|
-
})));
|
|
32
|
-
});
|
|
33
|
-
InfoCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
34
|
-
icon: PropTypes.element.isRequired,
|
|
35
|
-
total: PropTypes.number.isRequired,
|
|
36
|
-
label: PropTypes.string.isRequired,
|
|
37
|
-
linkLabel: PropTypes.string,
|
|
38
|
-
onClick: PropTypes.func,
|
|
39
|
-
height: PropTypes.number
|
|
40
|
-
} : {};
|
|
41
|
-
var InfoCard$1 = InfoCard;
|
|
42
|
-
|
|
43
|
-
export { InfoCard$1 as default };
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
-
import { ReactComponent as SvgArrowForward } from '../../../icons/arrow-forward.svg.js';
|
|
4
|
-
|
|
5
|
-
let _ = t => t,
|
|
6
|
-
_t,
|
|
7
|
-
_t2,
|
|
8
|
-
_t3,
|
|
9
|
-
_t4,
|
|
10
|
-
_t5,
|
|
11
|
-
_t6,
|
|
12
|
-
_t7,
|
|
13
|
-
_t8,
|
|
14
|
-
_t9;
|
|
15
|
-
const shouldForwardProp = prop => {
|
|
16
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
17
|
-
};
|
|
18
|
-
const Container = styled.div.withConfig({
|
|
19
|
-
shouldForwardProp
|
|
20
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
21
|
-
font-family: ${0};
|
|
22
|
-
font-size: 1rem;
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
${0};
|
|
25
|
-
height: ${0};
|
|
26
|
-
border-radius: 3px;
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
align-items: center;
|
|
30
|
-
padding: 5px 0;
|
|
31
|
-
`), props => props.theme.primaryFontFamily, props => props.theme.themeProp('background', props.theme.getColor('gray-800'), props.theme.getColor('gray-50')), props => props.height ? `${props.height}px` : '50px');
|
|
32
|
-
const MetricsContainer = styled.div.withConfig({
|
|
33
|
-
shouldForwardProp
|
|
34
|
-
}).attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
align-items: flex-start;
|
|
39
|
-
width: 70%;
|
|
40
|
-
gap: 5px;
|
|
41
|
-
padding-left: 15px;
|
|
42
|
-
`));
|
|
43
|
-
const IconTotalContainer = styled.div.withConfig({
|
|
44
|
-
shouldForwardProp
|
|
45
|
-
}).attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: 10px;
|
|
50
|
-
`));
|
|
51
|
-
const Total = styled.div.withConfig({
|
|
52
|
-
shouldForwardProp
|
|
53
|
-
}).attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
54
|
-
font-size: 1.22rem;
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
${0};
|
|
57
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')));
|
|
58
|
-
const Label = styled.div.withConfig({
|
|
59
|
-
shouldForwardProp
|
|
60
|
-
}).attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
61
|
-
font-size: 0.875rem;
|
|
62
|
-
font-weight: 400;
|
|
63
|
-
opacity: 0.8;
|
|
64
|
-
${0};
|
|
65
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-500')));
|
|
66
|
-
const IconContainer = styled.div.withConfig({
|
|
67
|
-
shouldForwardProp
|
|
68
|
-
}).attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
69
|
-
display: flex;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
align-items: center;
|
|
72
|
-
width: 18px;
|
|
73
|
-
margin-top: -0.05rem;
|
|
74
|
-
`));
|
|
75
|
-
const Link = styled.div.withConfig({
|
|
76
|
-
shouldForwardProp
|
|
77
|
-
}).attrs(applyDefaultTheme)(_t7 || (_t7 = _`
|
|
78
|
-
font-size: 0.875rem;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
width: 30%;
|
|
81
|
-
opacity: 0.7;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: flex-end;
|
|
85
|
-
margin-right: 20px;
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
height: 100%;
|
|
88
|
-
gap: 10px;
|
|
89
|
-
svg {
|
|
90
|
-
transition: transform 0.2s ease-in-out;
|
|
91
|
-
}
|
|
92
|
-
&:hover svg {
|
|
93
|
-
transform: translateX(2px);
|
|
94
|
-
}
|
|
95
|
-
`));
|
|
96
|
-
const ButtonLink = styled.div.withConfig({
|
|
97
|
-
shouldForwardProp
|
|
98
|
-
}).attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
99
|
-
font-size: 0.875rem;
|
|
100
|
-
font-weight: 500;
|
|
101
|
-
height: 100%;
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
white-space: nowrap;
|
|
105
|
-
opacity: ${0};
|
|
106
|
-
transition: color 0.2s ease-in-out;
|
|
107
|
-
${0};
|
|
108
|
-
`), props => props.$isHovered ? 1 : 0.8, props => props.$isHovered ? props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('black')) : props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')));
|
|
109
|
-
const StyledArrowIcon = styled(SvgArrowForward).withConfig({
|
|
110
|
-
shouldForwardProp
|
|
111
|
-
}).attrs(applyDefaultTheme)(_t9 || (_t9 = _`
|
|
112
|
-
height: 15px;
|
|
113
|
-
margin-right: 10px;
|
|
114
|
-
opacity: ${0};
|
|
115
|
-
transition: transform 0.2s ease-in-out, fill 0.2s ease-in-out;
|
|
116
|
-
transform: ${0};
|
|
117
|
-
|
|
118
|
-
${0};
|
|
119
|
-
`), props => props.$isHovered ? 1 : 0.8, props => props.$isHovered ? 'translateX(2px)' : 'translateX(0)', props => props.$isHovered ? props.theme.themeProp('fill', props.theme.getColor('white'), props.theme.getColor('black')) : props.theme.themeProp('fill', props.theme.getColor('white'), props.theme.getColor('black')));
|
|
120
|
-
|
|
121
|
-
export { ButtonLink, Container, IconContainer, IconTotalContainer, Label, Link, MetricsContainer, StyledArrowIcon, Total };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../InfoCard.js';
|