@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,213 +0,0 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { isFunction } from 'lodash';
|
|
3
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
-
import React from '../../../node_modules/react/index.js';
|
|
5
|
-
import { ReactComponent as SvgWarningCircle } from '../../../icons/warning-circle.svg.js';
|
|
6
|
-
import AutocompleteSelect from '../../inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js';
|
|
7
|
-
import TextArea from '../../inputs/TextArea/TextArea.js';
|
|
8
|
-
import { Instructions as Instructions$2, TopBarContainer, SelectContainer, InstructionsArea } from './Instructions.styled.js';
|
|
9
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
10
|
-
|
|
11
|
-
const _excluded = ["clickToAdd", "customAddMessage", "selectedOption", "loadOptions", "readOnly", "disabled", "hidden", "name", "lightBackground", "autoSelect", "subscribeCurrentValue", "onChange", "onFocus", "onBlur", "onUpdateCallback", "availableOptions", "loadingMessageFunc", "placeholder", "type", "selectType", "edit", "rows", "showMore", "showMoreText", "showLessText", "isExpanded", "loadingIcon", "successIcon", "padding"];
|
|
12
|
-
const Instructions = React.forwardRef(function Instructions(_ref, forwardedRef) {
|
|
13
|
-
let {
|
|
14
|
-
clickToAdd,
|
|
15
|
-
customAddMessage,
|
|
16
|
-
selectedOption,
|
|
17
|
-
loadOptions,
|
|
18
|
-
readOnly,
|
|
19
|
-
disabled,
|
|
20
|
-
hidden,
|
|
21
|
-
name,
|
|
22
|
-
lightBackground,
|
|
23
|
-
autoSelect,
|
|
24
|
-
subscribeCurrentValue: subscribeCurrentValueProp,
|
|
25
|
-
onChange: onChangeProp,
|
|
26
|
-
onFocus: onFocusProp,
|
|
27
|
-
onBlur: onBlurProp,
|
|
28
|
-
onUpdateCallback,
|
|
29
|
-
availableOptions,
|
|
30
|
-
loadingMessageFunc,
|
|
31
|
-
placeholder,
|
|
32
|
-
type,
|
|
33
|
-
selectType,
|
|
34
|
-
edit,
|
|
35
|
-
rows,
|
|
36
|
-
showMore,
|
|
37
|
-
showMoreText,
|
|
38
|
-
showLessText,
|
|
39
|
-
isExpanded,
|
|
40
|
-
loadingIcon,
|
|
41
|
-
successIcon,
|
|
42
|
-
padding
|
|
43
|
-
} = _ref,
|
|
44
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
-
const [isHovered, setIsHovered] = react.exports.useState(false);
|
|
46
|
-
const [selected, setSelected] = react.exports.useState({});
|
|
47
|
-
const [addInstructions, setAddInstructions] = react.exports.useState(clickToAdd);
|
|
48
|
-
const [customMessage, setCustomMessage] = react.exports.useState(customAddMessage);
|
|
49
|
-
const [background, setBackground] = react.exports.useState(lightBackground);
|
|
50
|
-
const [initialHover, setInitialHover] = react.exports.useState(true);
|
|
51
|
-
const [currentValue, setCurrentValue] = react.exports.useState();
|
|
52
|
-
react.exports.useEffect(() => {
|
|
53
|
-
if (isFunction(subscribeCurrentValueProp)) {
|
|
54
|
-
subscribeCurrentValueProp(currentValue);
|
|
55
|
-
}
|
|
56
|
-
}, [currentValue]);
|
|
57
|
-
react.exports.useEffect(() => {
|
|
58
|
-
handleChange(selected);
|
|
59
|
-
}, [selected]);
|
|
60
|
-
react.exports.useEffect(() => {
|
|
61
|
-
if (selectedOption) {
|
|
62
|
-
setCurrentValue(selectedOption.value);
|
|
63
|
-
}
|
|
64
|
-
}, [selectedOption]);
|
|
65
|
-
react.exports.useEffect(() => {
|
|
66
|
-
if (addInstructions) {
|
|
67
|
-
setCurrentValue(customMessage);
|
|
68
|
-
setInitialHover(true);
|
|
69
|
-
}
|
|
70
|
-
}, [addInstructions, handleOnFocus]);
|
|
71
|
-
const onChange = react.exports.useCallback(event => {
|
|
72
|
-
setCurrentValue(event.target.value);
|
|
73
|
-
if (isFunction(onChangeProp)) {
|
|
74
|
-
onChangeProp(event);
|
|
75
|
-
}
|
|
76
|
-
}, [onChangeProp]);
|
|
77
|
-
const onFocus = react.exports.useCallback(event => {
|
|
78
|
-
if (autoSelect) {
|
|
79
|
-
event.target.select();
|
|
80
|
-
}
|
|
81
|
-
if (isFunction(onFocusProp)) {
|
|
82
|
-
onFocusProp(event);
|
|
83
|
-
}
|
|
84
|
-
if (event.target.value === customMessage) {
|
|
85
|
-
setCurrentValue('');
|
|
86
|
-
}
|
|
87
|
-
}, [autoSelect, readOnly, onFocusProp]);
|
|
88
|
-
const onBlur = react.exports.useCallback(event => {
|
|
89
|
-
if (isFunction(onBlurProp)) {
|
|
90
|
-
onBlurProp(event);
|
|
91
|
-
}
|
|
92
|
-
}, [onBlurProp]);
|
|
93
|
-
const handleMouseOver = () => {
|
|
94
|
-
setIsHovered(true);
|
|
95
|
-
};
|
|
96
|
-
const handleMouseLeave = () => {
|
|
97
|
-
setIsHovered(false);
|
|
98
|
-
};
|
|
99
|
-
const handleOnFocus = () => {
|
|
100
|
-
if (customMessage === currentValue) {
|
|
101
|
-
setCurrentValue('');
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const handleChange = selected => {
|
|
105
|
-
if (selected === null) {
|
|
106
|
-
setSelected({});
|
|
107
|
-
setAddInstructions(true);
|
|
108
|
-
setBackground(true);
|
|
109
|
-
setInitialHover(true);
|
|
110
|
-
setCustomMessage(customAddMessage);
|
|
111
|
-
} else {
|
|
112
|
-
setSelected(selected);
|
|
113
|
-
setCurrentValue(selected.value);
|
|
114
|
-
setAddInstructions(false);
|
|
115
|
-
setBackground(false);
|
|
116
|
-
setInitialHover(false);
|
|
117
|
-
onUpdateCallback(selected);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const sharedSelectProps = {
|
|
121
|
-
options: loadOptions ? undefined : availableOptions,
|
|
122
|
-
loadOptions: loadOptions,
|
|
123
|
-
loadingMessage: loadingMessageFunc,
|
|
124
|
-
placeholder: placeholder
|
|
125
|
-
};
|
|
126
|
-
if (hidden) return null;
|
|
127
|
-
return React.createElement(Instructions$2, _extends({
|
|
128
|
-
ref: forwardedRef,
|
|
129
|
-
initialHover: initialHover,
|
|
130
|
-
onMouseDown: handleMouseOver,
|
|
131
|
-
onMouseLeave: handleMouseLeave
|
|
132
|
-
}, props), !readOnly && !disabled && React.createElement(TopBarContainer, {
|
|
133
|
-
initialHover: initialHover,
|
|
134
|
-
className: isHovered && !readOnly && !disabled && 'slide-in'
|
|
135
|
-
}, React.createElement(SelectContainer, null, React.createElement(AutocompleteSelect, _extends({
|
|
136
|
-
type: selectType,
|
|
137
|
-
value: selectedOption,
|
|
138
|
-
creatable: false,
|
|
139
|
-
onChange: handleChange
|
|
140
|
-
}, sharedSelectProps)))), React.createElement(InstructionsArea, {
|
|
141
|
-
type: type
|
|
142
|
-
}, React.createElement(TextArea, {
|
|
143
|
-
noBorder: true,
|
|
144
|
-
instructionsTextArea: true,
|
|
145
|
-
type: type,
|
|
146
|
-
lightBackground: background,
|
|
147
|
-
readOnly: readOnly,
|
|
148
|
-
disabled: disabled,
|
|
149
|
-
name: name,
|
|
150
|
-
isExpanded: isExpanded,
|
|
151
|
-
edit: edit,
|
|
152
|
-
value: currentValue === null ? '' : currentValue,
|
|
153
|
-
onFocus: onFocus,
|
|
154
|
-
onChange: onChange,
|
|
155
|
-
onBlur: onBlur,
|
|
156
|
-
rows: rows,
|
|
157
|
-
showMore: showMore,
|
|
158
|
-
showMoreText: showMoreText,
|
|
159
|
-
showLessText: showLessText,
|
|
160
|
-
icon: React.createElement(SvgWarningCircle, null),
|
|
161
|
-
loadingIcon: loadingIcon,
|
|
162
|
-
successIcon: successIcon,
|
|
163
|
-
padding: padding
|
|
164
|
-
})));
|
|
165
|
-
});
|
|
166
|
-
Instructions.defaultProps = {
|
|
167
|
-
clickToAdd: false,
|
|
168
|
-
lightBackground: false,
|
|
169
|
-
autoSelect: true,
|
|
170
|
-
hidden: false,
|
|
171
|
-
edit: false,
|
|
172
|
-
disabled: false,
|
|
173
|
-
readOnly: false,
|
|
174
|
-
type: '',
|
|
175
|
-
selectType: '',
|
|
176
|
-
padding: 'medium',
|
|
177
|
-
onUpdateCallback: () => {}
|
|
178
|
-
};
|
|
179
|
-
Instructions.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
180
|
-
name: PropTypes.string,
|
|
181
|
-
placeholder: PropTypes.string,
|
|
182
|
-
rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
183
|
-
selectedOption: PropTypes.any,
|
|
184
|
-
loadOptions: PropTypes.func,
|
|
185
|
-
loadingMessageFunc: PropTypes.func,
|
|
186
|
-
clickToAdd: PropTypes.bool,
|
|
187
|
-
customAddMessage: PropTypes.string,
|
|
188
|
-
autoSelect: PropTypes.bool,
|
|
189
|
-
readOnly: PropTypes.bool,
|
|
190
|
-
disabled: PropTypes.bool,
|
|
191
|
-
hidden: PropTypes.bool,
|
|
192
|
-
showMore: PropTypes.bool,
|
|
193
|
-
showMoreText: PropTypes.string,
|
|
194
|
-
showLessText: PropTypes.string,
|
|
195
|
-
availableOptions: PropTypes.arrayOf(PropTypes.object),
|
|
196
|
-
lightBackground: PropTypes.bool,
|
|
197
|
-
edit: PropTypes.bool,
|
|
198
|
-
options: PropTypes.array,
|
|
199
|
-
subscribeCurrentValue: PropTypes.func,
|
|
200
|
-
onChange: PropTypes.func,
|
|
201
|
-
onFocus: PropTypes.func,
|
|
202
|
-
onBlur: PropTypes.func,
|
|
203
|
-
onUpdateCallback: PropTypes.func,
|
|
204
|
-
type: PropTypes.oneOf(['', 'error', 'error-border', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
205
|
-
selectType: PropTypes.oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
206
|
-
isExpanded: PropTypes.func,
|
|
207
|
-
loadingIcon: PropTypes.element,
|
|
208
|
-
successIcon: PropTypes.element,
|
|
209
|
-
padding: PropTypes.oneOf(['', 'small', 'medium', 'large'])
|
|
210
|
-
} : {};
|
|
211
|
-
var Instructions$1 = Instructions;
|
|
212
|
-
|
|
213
|
-
export { Instructions$1 as default };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import styled 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 Instructions = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
10
|
-
display: flex;
|
|
11
|
-
position: relative;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
${0};
|
|
14
|
-
`), props => props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
15
|
-
const TopBarContainer = styled.div.attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
16
|
-
position: absolute;
|
|
17
|
-
display: flex;
|
|
18
|
-
width: 100%;
|
|
19
|
-
margin-top: 0;
|
|
20
|
-
transition: margin-top 120ms;
|
|
21
|
-
&&.slide-in {
|
|
22
|
-
margin-top: -24px;
|
|
23
|
-
}
|
|
24
|
-
${0};
|
|
25
|
-
|
|
26
|
-
${0};
|
|
27
|
-
`), props => props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')), props => props.initialHover && props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
28
|
-
const SelectContainer = styled.div.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
29
|
-
width: 100%;
|
|
30
|
-
margin: 0 2px;
|
|
31
|
-
`));
|
|
32
|
-
const InstructionsArea = styled.div.attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
33
|
-
margin: 2px 2px -2px 2px;
|
|
34
|
-
`));
|
|
35
|
-
|
|
36
|
-
export { Instructions, InstructionsArea, SelectContainer, TopBarContainer };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Instructions.js';
|
|
@@ -1,54 +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, Label, ProgressBarTrack, MetricsContainer, Completed, ProgressBarFill, PercentageIndicator, Link, ButtonLink, StyledArrowIcon } from './ProgressBar.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["totalAssets", "completedAssets", "percentageText", "barColor", "height", "label", "type", "linkText", "onClick"];
|
|
7
|
-
const ProgressBar = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
totalAssets,
|
|
10
|
-
completedAssets,
|
|
11
|
-
percentageText,
|
|
12
|
-
barColor,
|
|
13
|
-
height,
|
|
14
|
-
label,
|
|
15
|
-
type,
|
|
16
|
-
linkText,
|
|
17
|
-
onClick
|
|
18
|
-
} = _ref,
|
|
19
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
const safeCompletedAssets = Math.max(0, completedAssets);
|
|
21
|
-
const safeTotalAssets = Math.max(1, totalAssets);
|
|
22
|
-
const percentage = safeCompletedAssets / safeTotalAssets * 100;
|
|
23
|
-
const formattedPercentage = `${Math.round(percentage)}%`;
|
|
24
|
-
const handleLinkClick = e => onClick(e);
|
|
25
|
-
return React.createElement(Container, _extends({
|
|
26
|
-
height: height
|
|
27
|
-
}, props), React.createElement(Label, null, label), React.createElement(ProgressBarTrack, null, React.createElement(MetricsContainer, {
|
|
28
|
-
hasLink: Boolean(linkText)
|
|
29
|
-
}, React.createElement(Completed, {
|
|
30
|
-
type: type
|
|
31
|
-
}, safeCompletedAssets), React.createElement(ProgressBarFill, {
|
|
32
|
-
type: type,
|
|
33
|
-
percentage: percentage,
|
|
34
|
-
barColor: barColor
|
|
35
|
-
}, React.createElement(PercentageIndicator, {
|
|
36
|
-
hasLink: Boolean(linkText)
|
|
37
|
-
}, percentageText || formattedPercentage))), linkText && React.createElement(Link, {
|
|
38
|
-
onClick: handleLinkClick
|
|
39
|
-
}, React.createElement(ButtonLink, null, linkText), React.createElement(StyledArrowIcon, null))));
|
|
40
|
-
};
|
|
41
|
-
ProgressBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
42
|
-
totalAssets: PropTypes.number.isRequired,
|
|
43
|
-
completedAssets: PropTypes.number.isRequired,
|
|
44
|
-
percentageText: PropTypes.string,
|
|
45
|
-
barColor: PropTypes.string,
|
|
46
|
-
height: PropTypes.number,
|
|
47
|
-
label: PropTypes.string,
|
|
48
|
-
type: PropTypes.string,
|
|
49
|
-
linkText: PropTypes.string,
|
|
50
|
-
onClick: PropTypes.func
|
|
51
|
-
} : {};
|
|
52
|
-
var ProgressBar$1 = ProgressBar;
|
|
53
|
-
|
|
54
|
-
export { ProgressBar$1 as default };
|
|
@@ -1,137 +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
|
-
_t10,
|
|
16
|
-
_t11,
|
|
17
|
-
_t12;
|
|
18
|
-
const getBackgroundColor = props => {
|
|
19
|
-
if (props.barColor) {
|
|
20
|
-
return `background: ${props.barColor};`;
|
|
21
|
-
}
|
|
22
|
-
const colorMap = {
|
|
23
|
-
success: ['emerald-600', 'emerald-300'],
|
|
24
|
-
error: ['red-600', 'cercise-200'],
|
|
25
|
-
warning: ['orange-600', 'orange-400'],
|
|
26
|
-
none: ['gray-500', 'gray-300'],
|
|
27
|
-
default: ['emerald-600', 'emerald-500']
|
|
28
|
-
};
|
|
29
|
-
const [darkColor, lightColor] = colorMap[props.type] || colorMap.default;
|
|
30
|
-
return props.theme.themeProp('background', props.theme.getColor(darkColor), props.theme.getColor(lightColor));
|
|
31
|
-
};
|
|
32
|
-
styled.p.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
33
|
-
font-family: ${0};
|
|
34
|
-
font-size: 1rem;
|
|
35
|
-
font-weight: 500;
|
|
36
|
-
`), props => props.theme.primaryFontFamily);
|
|
37
|
-
const Container = styled.div.attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: ${0};
|
|
40
|
-
font-family: ${0};
|
|
41
|
-
`), props => props.height ? `${props.height}px` : '50px', props => props.theme.primaryFontFamily);
|
|
42
|
-
const MetricsContainer = styled.div.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
width: ${0};
|
|
48
|
-
height: 100%;
|
|
49
|
-
flex-direction: row;
|
|
50
|
-
justify-content: flex-start;
|
|
51
|
-
`), props => props.hasLink ? '85%' : '100%');
|
|
52
|
-
const Label = styled.div.attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
53
|
-
font-size: 0.875rem;
|
|
54
|
-
${0}
|
|
55
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700')));
|
|
56
|
-
styled.div.attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
57
|
-
font-size: 0.875rem;
|
|
58
|
-
font-weight: 500;
|
|
59
|
-
${0}
|
|
60
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700')));
|
|
61
|
-
const ProgressBarTrack = styled.div.attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
62
|
-
width: 100%;
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: row;
|
|
65
|
-
flex-wrap: nowrap;
|
|
66
|
-
justify-content: flex-start;
|
|
67
|
-
align-items: center;
|
|
68
|
-
border-radius: 3px;
|
|
69
|
-
height: 100%;
|
|
70
|
-
${0}
|
|
71
|
-
`), props => props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-200')));
|
|
72
|
-
const Completed = styled.div.attrs(applyDefaultTheme)(_t7 || (_t7 = _`
|
|
73
|
-
font-size: 1.2rem;
|
|
74
|
-
font-weight: 400;
|
|
75
|
-
height: 100%;
|
|
76
|
-
padding: 0 8px;
|
|
77
|
-
border-radius: 3px 0 0 3px;
|
|
78
|
-
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
${0}
|
|
82
|
-
${0};
|
|
83
|
-
`), props => getBackgroundColor(props), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-800')));
|
|
84
|
-
const PercentageIndicator = styled.div.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
85
|
-
position: absolute;
|
|
86
|
-
right: 10px;
|
|
87
|
-
font-weight: 400;
|
|
88
|
-
font-size: 0.875rem;
|
|
89
|
-
white-space: nowrap;
|
|
90
|
-
opacity: 0.8;
|
|
91
|
-
${0};
|
|
92
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
|
|
93
|
-
const ProgressBarFill = styled.div.attrs(applyDefaultTheme)(_t9 || (_t9 = _`
|
|
94
|
-
height: 100%;
|
|
95
|
-
border-radius: 0 3px 3px 0;
|
|
96
|
-
width: ${0}%;
|
|
97
|
-
position: relative;
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: flex-end;
|
|
101
|
-
${0}
|
|
102
|
-
transition: width 0.3s ease;
|
|
103
|
-
`), props => props.percentage, props => getBackgroundColor(props));
|
|
104
|
-
const Link = styled.div.attrs(applyDefaultTheme)(_t10 || (_t10 = _`
|
|
105
|
-
font-size: 0.875rem;
|
|
106
|
-
font-weight: 400;
|
|
107
|
-
width: 15%;
|
|
108
|
-
opacity: 0.7;
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
justify-content: flex-end;
|
|
112
|
-
margin-right: 20px;
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
height: 100%;
|
|
115
|
-
gap: 10px;
|
|
116
|
-
svg {
|
|
117
|
-
transition: transform 0.2s ease-in-out;
|
|
118
|
-
}
|
|
119
|
-
&:hover svg {
|
|
120
|
-
transform: translateX(2px);
|
|
121
|
-
}
|
|
122
|
-
`));
|
|
123
|
-
const ButtonLink = styled.div.attrs(applyDefaultTheme)(_t11 || (_t11 = _`
|
|
124
|
-
font-size: 0.875rem;
|
|
125
|
-
font-weight: 500;
|
|
126
|
-
height: 100%;
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
${0};
|
|
130
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')));
|
|
131
|
-
const StyledArrowIcon = styled(SvgArrowForward).attrs(applyDefaultTheme)(_t12 || (_t12 = _`
|
|
132
|
-
height: 15px;
|
|
133
|
-
margin-right: 10px;
|
|
134
|
-
${0};
|
|
135
|
-
`), props => props.theme.themeProp('fill', props.theme.getColor('gray-100'), props.theme.getColor('black')));
|
|
136
|
-
|
|
137
|
-
export { ButtonLink, Completed, Container, Label, Link, MetricsContainer, PercentageIndicator, ProgressBarFill, ProgressBarTrack, StyledArrowIcon };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../ProgressBar.js';
|
|
@@ -1,88 +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 { ReactComponent as SvgWarningCircle } from '../../../icons/warning-circle.svg.js';
|
|
5
|
-
import { SummaryCard as SummaryCard$2, Gutter, Header, HeaderLeft, HeaderRight, Title, Description, Instruction, Footer, FooterLeft, FooterRight } from './SummaryCard.styled.js';
|
|
6
|
-
import Alert from '../../data/Alert/Alert.js';
|
|
7
|
-
|
|
8
|
-
const _excluded = ["activeSummaryCard", "title", "description", "instructions", "instructionsType", "headerLeft", "headerRight", "footerLeft", "footerRight", "width", "useBorder", "view"];
|
|
9
|
-
const SummaryCard = React.forwardRef(function AssetSummaryCard(_ref, forwardedRef) {
|
|
10
|
-
let {
|
|
11
|
-
activeSummaryCard,
|
|
12
|
-
title,
|
|
13
|
-
description,
|
|
14
|
-
instructions,
|
|
15
|
-
instructionsType,
|
|
16
|
-
headerLeft,
|
|
17
|
-
headerRight,
|
|
18
|
-
footerLeft,
|
|
19
|
-
footerRight,
|
|
20
|
-
width,
|
|
21
|
-
useBorder,
|
|
22
|
-
view
|
|
23
|
-
} = _ref,
|
|
24
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
const shouldRenderInstructions = !!instructions;
|
|
26
|
-
const shouldRenderHeader = !!headerLeft || !!headerRight;
|
|
27
|
-
const shouldRenderFooter = !!footerLeft || !!footerRight;
|
|
28
|
-
const shouldAddGutterAfterInstructions = shouldRenderInstructions && shouldRenderFooter;
|
|
29
|
-
const shouldAddGutterAfterTitle = !!title && (!!description || !!instructions || shouldRenderFooter);
|
|
30
|
-
if (!activeSummaryCard) return null;
|
|
31
|
-
return React.createElement(SummaryCard$2, _extends({
|
|
32
|
-
ref: forwardedRef,
|
|
33
|
-
width: width,
|
|
34
|
-
useBorder: useBorder
|
|
35
|
-
}, props, {
|
|
36
|
-
view: view
|
|
37
|
-
}), shouldRenderHeader && React.createElement(React.Fragment, null, React.createElement(Gutter, {
|
|
38
|
-
gutter: 8
|
|
39
|
-
}), React.createElement(Header, null, React.createElement(HeaderLeft, null, headerLeft), React.createElement(HeaderRight, null, headerRight))), React.createElement(Gutter, {
|
|
40
|
-
gutter: shouldRenderHeader ? 8 : 16
|
|
41
|
-
}), title && React.createElement(Title, null, title), shouldAddGutterAfterTitle && React.createElement(Gutter, {
|
|
42
|
-
gutter: 4
|
|
43
|
-
}), description && React.createElement(Description, null, description), React.createElement(Gutter, {
|
|
44
|
-
gutter: 16
|
|
45
|
-
}), shouldRenderInstructions && React.createElement(Instruction, null, React.createElement(Alert, {
|
|
46
|
-
icon: React.createElement(SvgWarningCircle, null),
|
|
47
|
-
alertMessage: instructions,
|
|
48
|
-
type: instructionsType,
|
|
49
|
-
fontSize: 12,
|
|
50
|
-
verticalPadding: 12,
|
|
51
|
-
horizontalPadding: 16,
|
|
52
|
-
width: width,
|
|
53
|
-
lineClamp: 1
|
|
54
|
-
})), shouldAddGutterAfterInstructions && React.createElement(Gutter, {
|
|
55
|
-
gutter: 16
|
|
56
|
-
}), shouldRenderFooter && React.createElement(Footer, null, React.createElement(FooterLeft, null, footerLeft), React.createElement(FooterRight, null, footerRight)), shouldRenderFooter && React.createElement(Gutter, {
|
|
57
|
-
gutter: 16
|
|
58
|
-
}));
|
|
59
|
-
});
|
|
60
|
-
SummaryCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
61
|
-
activeSummaryCard: PropTypes.bool,
|
|
62
|
-
title: PropTypes.string,
|
|
63
|
-
description: PropTypes.string,
|
|
64
|
-
instructions: PropTypes.string,
|
|
65
|
-
instructionsType: PropTypes.oneOf(['warning', 'error', 'info']),
|
|
66
|
-
headerLeft: PropTypes.node,
|
|
67
|
-
headerRight: PropTypes.node,
|
|
68
|
-
footerLeft: PropTypes.node,
|
|
69
|
-
footerRight: PropTypes.node,
|
|
70
|
-
width: PropTypes.number,
|
|
71
|
-
useBorder: PropTypes.bool,
|
|
72
|
-
view: PropTypes.string
|
|
73
|
-
} : {};
|
|
74
|
-
SummaryCard.defaultProps = {
|
|
75
|
-
title: '',
|
|
76
|
-
description: '',
|
|
77
|
-
instructions: '',
|
|
78
|
-
instructionsType: 'info',
|
|
79
|
-
headerLeft: null,
|
|
80
|
-
headerRight: null,
|
|
81
|
-
footerLeft: null,
|
|
82
|
-
footerRight: null,
|
|
83
|
-
useBorder: false,
|
|
84
|
-
activeSummaryCard: false
|
|
85
|
-
};
|
|
86
|
-
var SummaryCard$1 = SummaryCard;
|
|
87
|
-
|
|
88
|
-
export { SummaryCard$1 as default };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
-
import { FloatingArrow } from '@floating-ui/react';
|
|
4
|
-
|
|
5
|
-
let _ = t => t,
|
|
6
|
-
_t,
|
|
7
|
-
_t2,
|
|
8
|
-
_t3,
|
|
9
|
-
_t4,
|
|
10
|
-
_t5,
|
|
11
|
-
_t6,
|
|
12
|
-
_t7,
|
|
13
|
-
_t8,
|
|
14
|
-
_t9,
|
|
15
|
-
_t10,
|
|
16
|
-
_t11,
|
|
17
|
-
_t12,
|
|
18
|
-
_t13,
|
|
19
|
-
_t14;
|
|
20
|
-
const SummaryCard = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
border-radius: 4px;
|
|
24
|
-
width: ${0};
|
|
25
|
-
${0};
|
|
26
|
-
|
|
27
|
-
${0}
|
|
28
|
-
`), props => props.width ? `${props.width}px` : '100%', props => props.compact ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')) : 'background: transparent', props => props.useBorder ? props.theme.themeProp('border', `1px solid ${props.theme.getColor('gray-500')}`, `1px solid ${props.theme.getColor('gray-300')}`) : null);
|
|
29
|
-
const Gutter = styled.div.attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
30
|
-
${0}
|
|
31
|
-
padding-bottom: ${0}px;
|
|
32
|
-
`), props => {
|
|
33
|
-
if (props.renderAsMargin) {
|
|
34
|
-
return css(_t3 || (_t3 = _`
|
|
35
|
-
margin-bottom: ${0}px;
|
|
36
|
-
`), props.gutter || 8);
|
|
37
|
-
} else {
|
|
38
|
-
return css(_t4 || (_t4 = _`
|
|
39
|
-
padding-bottom: ${0}px;
|
|
40
|
-
`), props.gutter || 8);
|
|
41
|
-
}
|
|
42
|
-
}, props => props.gutter || 8);
|
|
43
|
-
const Header = styled.div.attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: space-between;
|
|
47
|
-
padding: 0 16px;
|
|
48
|
-
`));
|
|
49
|
-
const HeaderLeft = styled.div.attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
justify-content: flex-start;
|
|
53
|
-
|
|
54
|
-
> * {
|
|
55
|
-
margin-right: 4px;
|
|
56
|
-
}
|
|
57
|
-
`));
|
|
58
|
-
const HeaderRight = styled.div.attrs(applyDefaultTheme)(_t7 || (_t7 = _`
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: flex-end;
|
|
62
|
-
|
|
63
|
-
> * {
|
|
64
|
-
margin-left: 4px;
|
|
65
|
-
}
|
|
66
|
-
`));
|
|
67
|
-
const Title = styled.span.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
68
|
-
display: inline-block;
|
|
69
|
-
padding: 0 16px;
|
|
70
|
-
font: normal normal 500 14px/19px Roboto;
|
|
71
|
-
letter-spacing: 0.28px;
|
|
72
|
-
display: -webkit-box;
|
|
73
|
-
-webkit-line-clamp: 1;
|
|
74
|
-
-webkit-box-orient: vertical;
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
text-overflow: ellipsis;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
|
|
79
|
-
${0};
|
|
80
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')));
|
|
81
|
-
const Description = styled.span.attrs(applyDefaultTheme)(_t9 || (_t9 = _`
|
|
82
|
-
padding: 0 16px;
|
|
83
|
-
text-align: left;
|
|
84
|
-
font: normal normal normal 12px/16px Roboto;
|
|
85
|
-
letter-spacing: 0.24px;
|
|
86
|
-
display: -webkit-box;
|
|
87
|
-
-webkit-line-clamp: 3;
|
|
88
|
-
-webkit-box-orient: vertical;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
text-overflow: ellipsis;
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
|
|
93
|
-
${0};
|
|
94
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')));
|
|
95
|
-
const Instruction = styled.div.attrs(applyDefaultTheme)(_t10 || (_t10 = _``));
|
|
96
|
-
const Footer = styled.div.attrs(applyDefaultTheme)(_t11 || (_t11 = _`
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
justify-content: space-between;
|
|
100
|
-
padding: 0 16px;
|
|
101
|
-
`));
|
|
102
|
-
const FooterLeft = styled.div.attrs(applyDefaultTheme)(_t12 || (_t12 = _`
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
justify-content: flex-start;
|
|
106
|
-
|
|
107
|
-
> * {
|
|
108
|
-
margin-right: 4px;
|
|
109
|
-
}
|
|
110
|
-
`));
|
|
111
|
-
const FooterRight = styled.div.attrs(applyDefaultTheme)(_t13 || (_t13 = _`
|
|
112
|
-
display: flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
justify-content: flex-end;
|
|
115
|
-
|
|
116
|
-
> * {
|
|
117
|
-
margin-left: 4px;
|
|
118
|
-
}
|
|
119
|
-
`));
|
|
120
|
-
styled(FloatingArrow).attrs(applyDefaultTheme)(_t14 || (_t14 = _`
|
|
121
|
-
${0}
|
|
122
|
-
`), props => props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white')));
|
|
123
|
-
|
|
124
|
-
export { Description, Footer, FooterLeft, FooterRight, Gutter, Header, HeaderLeft, HeaderRight, Instruction, SummaryCard, Title };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as AssetGallery } from '../AssetGallery/AssetGallery.js';
|
|
2
|
-
export { default as ContextMenu } from '../ContextMenu/ContextMenu.js';
|
|
3
|
-
export { default as AssetPreviewTopBar } from '../AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js';
|
|
4
|
-
export { default as Instructions } from '../Instructions/Instructions.js';
|
|
5
|
-
export { default as SummaryCard } from '../SummaryCard/SummaryCard.js';
|
|
6
|
-
export { default as AssetActionBase } from '../AssetActionsBase/AssetActionsBase.js';
|
|
7
|
-
export { default as AssetAction } from '../AssetAction/AssetAction.js';
|
|
8
|
-
export { default as ProgressBar } from '../ProgressBar/ProgressBar.js';
|
|
9
|
-
export { default as InfoCard } from '../InfoCard/InfoCard.js';
|