@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,142 +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 { nanoid } from 'nanoid';
|
|
4
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
5
|
-
import useMergedRefs from '../../../node_modules/@restart/hooks/lib/useMergedRefs.js';
|
|
6
|
-
import { isBoolean, isEmpty } from 'lodash';
|
|
7
|
-
import { ReactComponent as SvgEditNote } from '../../../icons/edit-note.svg.js';
|
|
8
|
-
import { TextInput as TextInput$2, TextInputFieldIcon, TextInputWrapper, Adornment, TextInputField, InputIconContainer, TextInputLabel, Description } from './TextInput.styled.js';
|
|
9
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
10
|
-
|
|
11
|
-
const _excluded = ["value", "defaultValue", "name", "label", "placeholder", "type", "required", "disabled", "readOnly", "autoComplete", "description", "error", "warning", "icon", "adornments", "className", "style", "onChange", "onBlur", "noBorder"];
|
|
12
|
-
const TextInput = React.forwardRef(function TextInput(_ref, forwardedRef) {
|
|
13
|
-
let {
|
|
14
|
-
value,
|
|
15
|
-
defaultValue,
|
|
16
|
-
name,
|
|
17
|
-
label,
|
|
18
|
-
placeholder,
|
|
19
|
-
type,
|
|
20
|
-
required,
|
|
21
|
-
disabled,
|
|
22
|
-
readOnly,
|
|
23
|
-
autoComplete,
|
|
24
|
-
description,
|
|
25
|
-
error,
|
|
26
|
-
warning,
|
|
27
|
-
icon,
|
|
28
|
-
adornments,
|
|
29
|
-
className,
|
|
30
|
-
style,
|
|
31
|
-
onChange,
|
|
32
|
-
onBlur,
|
|
33
|
-
noBorder
|
|
34
|
-
} = _ref,
|
|
35
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
-
const textInputDomNode = react.exports.useRef(null);
|
|
37
|
-
const textInputRef = useMergedRefs(forwardedRef, textInputDomNode);
|
|
38
|
-
const [uniqueId] = react.exports.useState(nanoid());
|
|
39
|
-
const hasError = react.exports.useMemo(() => {
|
|
40
|
-
if (isBoolean(error)) {
|
|
41
|
-
return error;
|
|
42
|
-
}
|
|
43
|
-
return !isEmpty(error);
|
|
44
|
-
}, [error]);
|
|
45
|
-
const hasWarning = react.exports.useMemo(() => {
|
|
46
|
-
if (isBoolean(warning)) {
|
|
47
|
-
return warning;
|
|
48
|
-
}
|
|
49
|
-
return !isEmpty(warning);
|
|
50
|
-
}, [warning]);
|
|
51
|
-
const descriptionText = react.exports.useMemo(() => {
|
|
52
|
-
if (!isEmpty(error)) {
|
|
53
|
-
return error;
|
|
54
|
-
}
|
|
55
|
-
if (!isEmpty(warning)) {
|
|
56
|
-
return warning;
|
|
57
|
-
}
|
|
58
|
-
if (!isEmpty(description)) {
|
|
59
|
-
return description;
|
|
60
|
-
}
|
|
61
|
-
return null;
|
|
62
|
-
}, [description, error, warning]);
|
|
63
|
-
return React.createElement(TextInput$2, {
|
|
64
|
-
$error: hasError,
|
|
65
|
-
disabled: disabled,
|
|
66
|
-
$warning: hasWarning,
|
|
67
|
-
className: className,
|
|
68
|
-
style: style
|
|
69
|
-
}, typeof icon !== 'undefined' && React.createElement(TextInputFieldIcon, null, icon), React.createElement(TextInputWrapper, null, typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 && React.createElement(Adornment, {
|
|
70
|
-
htmlFor: `text-input-${uniqueId}`,
|
|
71
|
-
$error: hasError,
|
|
72
|
-
$warning: hasWarning,
|
|
73
|
-
$isPrefix: true,
|
|
74
|
-
onClick: () => textInputDomNode.current.focus()
|
|
75
|
-
}, adornments.prefix), React.createElement(TextInputField, _extends({
|
|
76
|
-
ref: textInputRef,
|
|
77
|
-
value: value,
|
|
78
|
-
defaultValue: defaultValue,
|
|
79
|
-
name: name,
|
|
80
|
-
placeholder: placeholder || ' ',
|
|
81
|
-
type: type,
|
|
82
|
-
required: required,
|
|
83
|
-
autoComplete: autoComplete,
|
|
84
|
-
$hasIcon: Boolean(icon),
|
|
85
|
-
$error: hasError,
|
|
86
|
-
$warning: hasWarning,
|
|
87
|
-
id: `text-input-${uniqueId}`,
|
|
88
|
-
onChange: onChange,
|
|
89
|
-
onBlur: onBlur,
|
|
90
|
-
readOnly: readOnly,
|
|
91
|
-
$noBorder: noBorder
|
|
92
|
-
}, rest)), !readOnly && noBorder && React.createElement(InputIconContainer, {
|
|
93
|
-
$error: hasError,
|
|
94
|
-
$warning: hasWarning
|
|
95
|
-
}, React.createElement(SvgEditNote, null)), label && React.createElement(TextInputLabel, {
|
|
96
|
-
htmlFor: `text-input-${uniqueId}`,
|
|
97
|
-
$hasPlaceholder: Boolean(placeholder),
|
|
98
|
-
$hasAdornments: Boolean(typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 || typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0),
|
|
99
|
-
$hasIcon: Boolean(icon),
|
|
100
|
-
$error: hasError
|
|
101
|
-
}, label, required && ' *'), typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0 && React.createElement(Adornment, {
|
|
102
|
-
$error: hasError,
|
|
103
|
-
$warning: hasWarning,
|
|
104
|
-
$isPrefix: false,
|
|
105
|
-
onClick: () => textInputDomNode.current.focus()
|
|
106
|
-
}, adornments.suffix)), typeof descriptionText === 'string' && descriptionText.length > 0 && React.createElement(Description, {
|
|
107
|
-
$error: hasError,
|
|
108
|
-
$warning: hasWarning
|
|
109
|
-
}, descriptionText));
|
|
110
|
-
});
|
|
111
|
-
TextInput.defaultProps = {
|
|
112
|
-
type: 'text',
|
|
113
|
-
noBorder: false
|
|
114
|
-
};
|
|
115
|
-
TextInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
116
|
-
value: PropTypes.string,
|
|
117
|
-
defaultValue: PropTypes.string,
|
|
118
|
-
name: PropTypes.string,
|
|
119
|
-
label: PropTypes.string,
|
|
120
|
-
placeholder: PropTypes.string,
|
|
121
|
-
type: PropTypes.string,
|
|
122
|
-
required: PropTypes.bool,
|
|
123
|
-
disabled: PropTypes.bool,
|
|
124
|
-
readOnly: PropTypes.bool,
|
|
125
|
-
autoComplete: PropTypes.string,
|
|
126
|
-
description: PropTypes.string,
|
|
127
|
-
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
128
|
-
warning: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
129
|
-
icon: PropTypes.element,
|
|
130
|
-
adornments: PropTypes.shape({
|
|
131
|
-
prefix: PropTypes.string,
|
|
132
|
-
suffix: PropTypes.string
|
|
133
|
-
}),
|
|
134
|
-
className: PropTypes.string,
|
|
135
|
-
style: PropTypes.object,
|
|
136
|
-
onChange: PropTypes.func,
|
|
137
|
-
onBlur: PropTypes.func,
|
|
138
|
-
noBorder: PropTypes.bool
|
|
139
|
-
} : {};
|
|
140
|
-
var TextInput$1 = TextInput;
|
|
141
|
-
|
|
142
|
-
export { TextInput$1 as default };
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
-
|
|
4
|
-
let _ = t => t,
|
|
5
|
-
_t,
|
|
6
|
-
_t2,
|
|
7
|
-
_t3,
|
|
8
|
-
_t4,
|
|
9
|
-
_t5,
|
|
10
|
-
_t6,
|
|
11
|
-
_t7,
|
|
12
|
-
_t8,
|
|
13
|
-
_t9,
|
|
14
|
-
_t0,
|
|
15
|
-
_t1,
|
|
16
|
-
_t10,
|
|
17
|
-
_t11,
|
|
18
|
-
_t12,
|
|
19
|
-
_t13,
|
|
20
|
-
_t14,
|
|
21
|
-
_t15,
|
|
22
|
-
_t16,
|
|
23
|
-
_t17,
|
|
24
|
-
_t18,
|
|
25
|
-
_t19,
|
|
26
|
-
_t20,
|
|
27
|
-
_t21,
|
|
28
|
-
_t22,
|
|
29
|
-
_t23;
|
|
30
|
-
const activeLabel = css(_t || (_t = _`
|
|
31
|
-
font-size: 0.75rem;
|
|
32
|
-
padding: 0 3px;
|
|
33
|
-
top: -7px;
|
|
34
|
-
letter-spacing: 0.03em;
|
|
35
|
-
left: 8px !important;
|
|
36
|
-
opacity: 1 !important;
|
|
37
|
-
`));
|
|
38
|
-
const shouldForwardProp = prop => {
|
|
39
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
40
|
-
};
|
|
41
|
-
const Adornment = styled.div.withConfig({
|
|
42
|
-
shouldForwardProp
|
|
43
|
-
}).attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
44
|
-
flex-shrink: 0;
|
|
45
|
-
font-family: inherit;
|
|
46
|
-
font-size: 0.875rem;
|
|
47
|
-
line-height: initial;
|
|
48
|
-
padding: 13px 10px;
|
|
49
|
-
|
|
50
|
-
${0}
|
|
51
|
-
${0}
|
|
52
|
-
border: 1px solid;
|
|
53
|
-
${0}
|
|
54
|
-
border-radius: 3px;
|
|
55
|
-
${0}
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
appearance: none;
|
|
58
|
-
transition: border-color 350ms;
|
|
59
|
-
height: 2.75rem;
|
|
60
|
-
|
|
61
|
-
${0}
|
|
62
|
-
${0}
|
|
63
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props => props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')), props => props.$isPrefix ? css(_t3 || (_t3 = _`
|
|
64
|
-
padding-right: 10px;
|
|
65
|
-
border-right: 0;
|
|
66
|
-
border-top-right-radius: 0;
|
|
67
|
-
border-bottom-right-radius: 0;
|
|
68
|
-
`)) : css(_t4 || (_t4 = _`
|
|
69
|
-
padding-left: 0;
|
|
70
|
-
margin-left: -3px;
|
|
71
|
-
border-left: 0;
|
|
72
|
-
border-top-left-radius: 0;
|
|
73
|
-
border-bottom-left-radius: 0;
|
|
74
|
-
`)), props => props.$warning && css(_t5 || (_t5 = _`
|
|
75
|
-
border-color: ${0} !important;
|
|
76
|
-
`), props.theme.getColor('orange-500')), props => props.$error && css(_t6 || (_t6 = _`
|
|
77
|
-
border-color: ${0} !important;
|
|
78
|
-
`), props.theme.getColor('red-500')));
|
|
79
|
-
const TextInputWrapper = styled.div.withConfig({
|
|
80
|
-
shouldForwardProp
|
|
81
|
-
}).attrs(applyDefaultTheme)(_t7 || (_t7 = _`
|
|
82
|
-
display: flex;
|
|
83
|
-
align-content: center;
|
|
84
|
-
|
|
85
|
-
&:focus-within {
|
|
86
|
-
${0} {
|
|
87
|
-
outline: none;
|
|
88
|
-
${0}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`), Adornment, props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-600'), 1));
|
|
92
|
-
const InputIconContainer = styled.div.withConfig({
|
|
93
|
-
shouldForwardProp
|
|
94
|
-
}).attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
95
|
-
opacity: 0;
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
border-top-right-radius: 3px;
|
|
98
|
-
border-bottom-right-radius: 3px;
|
|
99
|
-
padding-right: 4px;
|
|
100
|
-
padding-left: 30px;
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
position: absolute;
|
|
104
|
-
right: 0;
|
|
105
|
-
top: 0;
|
|
106
|
-
bottom: 0;
|
|
107
|
-
color: ${0};
|
|
108
|
-
|
|
109
|
-
${0}
|
|
110
|
-
|
|
111
|
-
${0}
|
|
112
|
-
|
|
113
|
-
> svg {
|
|
114
|
-
width: 12px;
|
|
115
|
-
}
|
|
116
|
-
`), props => props.theme.getColor('gray-400'), props => props.$warning && props.theme.themeProp('color', '#C3AF43', '#C3AF43'), props => props.$error && props.theme.themeProp('color', '#CB968F', '#CB968F'));
|
|
117
|
-
const TextInputField = styled.input.withConfig({
|
|
118
|
-
shouldForwardProp
|
|
119
|
-
}).attrs(applyDefaultTheme)(_t9 || (_t9 = _`
|
|
120
|
-
display: block;
|
|
121
|
-
width: 100%;
|
|
122
|
-
font-family: inherit;
|
|
123
|
-
font-size: 0.875rem;
|
|
124
|
-
line-height: 1;
|
|
125
|
-
padding: 13px 10px;
|
|
126
|
-
border-radius: 3px;
|
|
127
|
-
box-sizing: border-box;
|
|
128
|
-
appearance: none;
|
|
129
|
-
transition: border-color 350ms;
|
|
130
|
-
height: 2.75rem !important;
|
|
131
|
-
margin-bottom: 0;
|
|
132
|
-
${0}
|
|
133
|
-
${0}
|
|
134
|
-
border: 1px solid;
|
|
135
|
-
${0};
|
|
136
|
-
|
|
137
|
-
${0}
|
|
138
|
-
|
|
139
|
-
${0}
|
|
140
|
-
${0}
|
|
141
|
-
${0}
|
|
142
|
-
|
|
143
|
-
&::placeholder {
|
|
144
|
-
${0}
|
|
145
|
-
|
|
146
|
-
${0}
|
|
147
|
-
}
|
|
148
|
-
&:focus {
|
|
149
|
-
outline: none !important;
|
|
150
|
-
box-shadow: none !important;
|
|
151
|
-
${0}
|
|
152
|
-
${0}
|
|
153
|
-
}
|
|
154
|
-
&&:hover:not(:focus) {
|
|
155
|
-
${0};
|
|
156
|
-
transition: background 350ms;
|
|
157
|
-
& + ${0} {
|
|
158
|
-
opacity: 1;
|
|
159
|
-
transition: opacity 350ms;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props => props.$noBorder || props.readOnly ? 'border-color: transparent !important' : props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')), props => props.readOnly && css(_t0 || (_t0 = _`
|
|
165
|
-
user-select: text;
|
|
166
|
-
cursor: default;
|
|
167
|
-
`)), props => props.$warning && css(_t1 || (_t1 = _`
|
|
168
|
-
border-color: ${0} !important;
|
|
169
|
-
`), props.theme.getColor('orange-500')), props => props.$error && css(_t10 || (_t10 = _`
|
|
170
|
-
border-color: ${0} !important;
|
|
171
|
-
`), props.theme.getColor('red-500')), props => props.$hasIcon && css(_t11 || (_t11 = _`
|
|
172
|
-
padding-left: 35px;
|
|
173
|
-
`)), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'), 1), props => props.theme.themeProp('opacity', 0.6, 0.5, 1), props => props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-600')), props => props.readOnly && css(_t12 || (_t12 = _`
|
|
174
|
-
outline: none;
|
|
175
|
-
`)), props => props.$noBorder ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-200')) : props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')), InputIconContainer);
|
|
176
|
-
const TextInputLabel = styled.label.withConfig({
|
|
177
|
-
shouldForwardProp
|
|
178
|
-
}).attrs(applyDefaultTheme)(_t13 || (_t13 = _`
|
|
179
|
-
position: absolute;
|
|
180
|
-
top: 15px;
|
|
181
|
-
left: 11px;
|
|
182
|
-
line-height: 1.2;
|
|
183
|
-
font-size: 0.875rem;
|
|
184
|
-
transition: all 150ms;
|
|
185
|
-
|
|
186
|
-
${0}
|
|
187
|
-
|
|
188
|
-
${0}
|
|
189
|
-
|
|
190
|
-
${0}
|
|
191
|
-
|
|
192
|
-
${0}
|
|
193
|
-
|
|
194
|
-
${0}
|
|
195
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600')), props => props.theme.themeProp('opacity', 0.6, 0.5), props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`), props => (props.$hasPlaceholder || props.$hasAdornments) && css(_t14 || (_t14 = _`
|
|
196
|
-
${0};
|
|
197
|
-
`), activeLabel), props => props.$hasIcon && css(_t15 || (_t15 = _`
|
|
198
|
-
left: 35px;
|
|
199
|
-
`)));
|
|
200
|
-
const TextInputFieldIcon = styled.div.withConfig({
|
|
201
|
-
shouldForwardProp
|
|
202
|
-
}).attrs(applyDefaultTheme)(_t16 || (_t16 = _`
|
|
203
|
-
position: absolute;
|
|
204
|
-
top: 0;
|
|
205
|
-
left: 0;
|
|
206
|
-
height: 2.625rem;
|
|
207
|
-
display: flex;
|
|
208
|
-
padding: 0 10px;
|
|
209
|
-
|
|
210
|
-
svg {
|
|
211
|
-
width: 15px;
|
|
212
|
-
opacity: 0.6;
|
|
213
|
-
transition: opacity 250ms;
|
|
214
|
-
}
|
|
215
|
-
`));
|
|
216
|
-
const TextInput = styled.div.withConfig({
|
|
217
|
-
shouldForwardProp
|
|
218
|
-
}).attrs(applyDefaultTheme)(_t17 || (_t17 = _`
|
|
219
|
-
position: relative;
|
|
220
|
-
|
|
221
|
-
${0}
|
|
222
|
-
|
|
223
|
-
&:focus-within {
|
|
224
|
-
${0} {
|
|
225
|
-
${0};
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
${0} {
|
|
229
|
-
svg {
|
|
230
|
-
opacity: 1;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
${0}:not(:placeholder-shown) + ${0} {
|
|
236
|
-
${0};
|
|
237
|
-
${0}
|
|
238
|
-
|
|
239
|
-
${0}
|
|
240
|
-
${0}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
`), props => props.disabled && css(_t18 || (_t18 = _`
|
|
244
|
-
user-select: none;
|
|
245
|
-
opacity: 0.5;
|
|
246
|
-
cursor: not-allowed;
|
|
247
|
-
> * {
|
|
248
|
-
pointer-events: none;
|
|
249
|
-
}
|
|
250
|
-
`)), TextInputLabel, activeLabel, TextInputFieldIcon, TextInputField, TextInputLabel, activeLabel, props => props.$error && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')), props => props.$error && css(_t19 || (_t19 = _`
|
|
251
|
-
color: ${0};
|
|
252
|
-
`), props.theme.getColor('red-500')), props => props.$warning && css(_t20 || (_t20 = _`
|
|
253
|
-
color: ${0};
|
|
254
|
-
`), props.theme.getColor('orange-500')));
|
|
255
|
-
const Description = styled.p.withConfig({
|
|
256
|
-
shouldForwardProp
|
|
257
|
-
}).attrs(applyDefaultTheme)(_t21 || (_t21 = _`
|
|
258
|
-
margin: 8px 0 0 0;
|
|
259
|
-
padding: 0 0.6875rem;
|
|
260
|
-
font-size: 0.75rem;
|
|
261
|
-
line-height: 1.333;
|
|
262
|
-
|
|
263
|
-
${0};
|
|
264
|
-
|
|
265
|
-
${0}
|
|
266
|
-
|
|
267
|
-
${0}
|
|
268
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => props.$error && css(_t22 || (_t22 = _`
|
|
269
|
-
${0}
|
|
270
|
-
`), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))), props => props.$warning && css(_t23 || (_t23 = _`
|
|
271
|
-
${0}
|
|
272
|
-
`), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))));
|
|
273
|
-
|
|
274
|
-
export { Adornment, Description, InputIconContainer, TextInput, TextInputField, TextInputFieldIcon, TextInputLabel, TextInputWrapper };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../TextInput.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { default as ActionButton } from '../ActionButton/ActionButton.js';
|
|
2
|
-
export { default as Button } from '../Button/Button.js';
|
|
3
|
-
export { default as Checkbox } from '../Checkbox/Checkbox.js';
|
|
4
|
-
export { default as CompactAutocompleteSelect } from '../CompactAutocompleteSelect/CompactAutocompleteSelect.js';
|
|
5
|
-
export { default as CompactStarRating } from '../CompactStarRating/CompactStarRating.js';
|
|
6
|
-
export { default as CompactTextInput } from '../CompactTextInput/CompactTextInput.js';
|
|
7
|
-
export { default as MultiSelect } from '../MultiSelect/MultiSelect.js';
|
|
8
|
-
export { default as Radio } from '../Radio/Radio.js';
|
|
9
|
-
export { default as TextArea } from '../TextArea/TextArea.js';
|
|
10
|
-
export { default as TextInput } from '../TextInput/TextInput.js';
|
|
11
|
-
export { default as Switch } from '../Switch/Switch.js';
|
|
12
|
-
export { default as MultiLevelCheckbox } from '../MultiLevelCheckbox/MultiLevelCheckbox.js';
|
|
13
|
-
export { default as MultiLevelCheckboxSelect } from '../MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js';
|
|
@@ -1,22 +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 { InputGroup as InputGroup$2 } from './InputGroup.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["children"];
|
|
7
|
-
const InputGroup = React.forwardRef(function InputGroup(_ref, forwardedRef) {
|
|
8
|
-
let {
|
|
9
|
-
children
|
|
10
|
-
} = _ref,
|
|
11
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return React.createElement(InputGroup$2, _extends({
|
|
13
|
-
ref: forwardedRef
|
|
14
|
-
}, props), children);
|
|
15
|
-
});
|
|
16
|
-
InputGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
17
|
-
children: PropTypes.node
|
|
18
|
-
} : {};
|
|
19
|
-
InputGroup.defaultProps = {};
|
|
20
|
-
var InputGroup$1 = InputGroup;
|
|
21
|
-
|
|
22
|
-
export { InputGroup$1 as default };
|
|
@@ -1,15 +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 InputGroup = styled.div.withConfig({
|
|
10
|
-
shouldForwardProp
|
|
11
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
12
|
-
margin: 8px 0;
|
|
13
|
-
`));
|
|
14
|
-
|
|
15
|
-
export { InputGroup };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../InputGroup.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 { SectionSeparator as SectionSeparator$2 } from './SectionSeparator.styled.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["vertical", "margin"];
|
|
7
|
-
const SectionSeparator = React.forwardRef(function SectionSeparator(_ref, forwardedRef) {
|
|
8
|
-
let {
|
|
9
|
-
vertical = false,
|
|
10
|
-
margin = 0
|
|
11
|
-
} = _ref,
|
|
12
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
return React.createElement(SectionSeparator$2, _extends({
|
|
14
|
-
$vertical: vertical,
|
|
15
|
-
$margin: margin,
|
|
16
|
-
ref: forwardedRef
|
|
17
|
-
}, props));
|
|
18
|
-
});
|
|
19
|
-
SectionSeparator.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
20
|
-
vertical: PropTypes.bool,
|
|
21
|
-
margin: PropTypes.number
|
|
22
|
-
} : {};
|
|
23
|
-
var SectionSeparator$1 = SectionSeparator;
|
|
24
|
-
|
|
25
|
-
export { SectionSeparator$1 as default };
|
|
@@ -1,20 +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 SectionSeparator = styled.div.withConfig({
|
|
10
|
-
shouldForwardProp
|
|
11
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
12
|
-
height: ${0};
|
|
13
|
-
width: ${0};
|
|
14
|
-
|
|
15
|
-
${0}
|
|
16
|
-
|
|
17
|
-
${0}
|
|
18
|
-
`), props => props.$vertical ? '100%' : '1px', props => props.$vertical ? '1px' : '100%', props => props.$vertical ? `margin-left: ${props.$margin}px; margin-right: ${props.$margin}px;` : `margin-top: ${props.$margin}px; margin-bottom: ${props.$margin}px;`, props => props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
19
|
-
|
|
20
|
-
export { SectionSeparator };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../SectionSeparator.js';
|
|
@@ -1,102 +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 { AssetAction as AssetAction$2, AssetActionButton, Floating, ActionTitle, StyledFloatingArrow } from './AssetAction.styled.js';
|
|
5
|
-
import { isFunction } from 'lodash';
|
|
6
|
-
import { useFloating, autoUpdate, offset, flip, shift, arrow, useTransitionStyles, useHover, useDismiss, useInteractions } from '@floating-ui/react';
|
|
7
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
8
|
-
|
|
9
|
-
const _excluded = ["action", "asset", "itemKey"];
|
|
10
|
-
const AssetAction = React.forwardRef(function AssetAction(_ref, forwardedRef) {
|
|
11
|
-
let {
|
|
12
|
-
action,
|
|
13
|
-
asset,
|
|
14
|
-
itemKey
|
|
15
|
-
} = _ref,
|
|
16
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
const ARROW_WIDTH = 10;
|
|
18
|
-
const ARROW_HEIGHT = 5;
|
|
19
|
-
const GAP = 3;
|
|
20
|
-
const arrowRef = react.exports.useRef(null);
|
|
21
|
-
const [isOpen, setIsOpen] = react.exports.useState(false);
|
|
22
|
-
const [placement] = react.exports.useState('bottom');
|
|
23
|
-
const {
|
|
24
|
-
refs,
|
|
25
|
-
floatingStyles,
|
|
26
|
-
context
|
|
27
|
-
} = useFloating({
|
|
28
|
-
placement,
|
|
29
|
-
open: isOpen,
|
|
30
|
-
onOpenChange: setIsOpen,
|
|
31
|
-
whileElementsMounted: autoUpdate,
|
|
32
|
-
middleware: [offset(ARROW_HEIGHT + GAP), flip({
|
|
33
|
-
padding: 5
|
|
34
|
-
}), shift({
|
|
35
|
-
padding: 5
|
|
36
|
-
}), arrow({
|
|
37
|
-
element: arrowRef
|
|
38
|
-
})]
|
|
39
|
-
});
|
|
40
|
-
const {
|
|
41
|
-
isMounted,
|
|
42
|
-
styles
|
|
43
|
-
} = useTransitionStyles(context, {
|
|
44
|
-
initial: {
|
|
45
|
-
transform: 'translateY(-8px)',
|
|
46
|
-
opacity: 0
|
|
47
|
-
},
|
|
48
|
-
duration: {
|
|
49
|
-
open: 200,
|
|
50
|
-
close: 100
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const hover = useHover(context);
|
|
54
|
-
const dismiss = useDismiss(context, {
|
|
55
|
-
referencePress: true
|
|
56
|
-
});
|
|
57
|
-
const {
|
|
58
|
-
getReferenceProps,
|
|
59
|
-
getFloatingProps
|
|
60
|
-
} = useInteractions([dismiss, hover]);
|
|
61
|
-
const onActionClick = react.exports.useCallback((e, action) => {
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
e.stopPropagation();
|
|
64
|
-
if (isFunction(action === null || action === void 0 ? void 0 : action.onClick)) {
|
|
65
|
-
action.onClick(asset);
|
|
66
|
-
}
|
|
67
|
-
}, [action]);
|
|
68
|
-
return React.createElement(AssetAction$2, _extends({
|
|
69
|
-
ref: forwardedRef
|
|
70
|
-
}, props), React.createElement(AssetActionButton, _extends({
|
|
71
|
-
key: itemKey,
|
|
72
|
-
ref: refs.setReference
|
|
73
|
-
}, getReferenceProps(), {
|
|
74
|
-
onClick: e => onActionClick(e, action.onClick(asset), itemKey),
|
|
75
|
-
$actionWidthHeight: action.actionWidthHeight
|
|
76
|
-
}), action.icon), isOpen && isMounted && React.createElement(Floating, _extends({
|
|
77
|
-
className: "floating",
|
|
78
|
-
ref: refs.setFloating,
|
|
79
|
-
style: floatingStyles
|
|
80
|
-
}, getFloatingProps()), React.createElement(ActionTitle, {
|
|
81
|
-
style: styles
|
|
82
|
-
}, action.title), React.createElement(StyledFloatingArrow, {
|
|
83
|
-
ref: arrowRef,
|
|
84
|
-
context: context,
|
|
85
|
-
width: ARROW_WIDTH,
|
|
86
|
-
height: ARROW_HEIGHT
|
|
87
|
-
})));
|
|
88
|
-
});
|
|
89
|
-
AssetAction.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
90
|
-
action: PropTypes.shape({
|
|
91
|
-
icon: PropTypes.node,
|
|
92
|
-
onClick: PropTypes.func,
|
|
93
|
-
actionWidthHeight: PropTypes.arrayOf(PropTypes.number),
|
|
94
|
-
title: PropTypes.string
|
|
95
|
-
}),
|
|
96
|
-
asset: PropTypes.object,
|
|
97
|
-
itemKey: PropTypes.string
|
|
98
|
-
} : {};
|
|
99
|
-
AssetAction.defaultProps = {};
|
|
100
|
-
var AssetAction$1 = AssetAction;
|
|
101
|
-
|
|
102
|
-
export { AssetAction$1 as default };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import styled 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
|
-
const shouldForwardProp = prop => {
|
|
12
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
13
|
-
};
|
|
14
|
-
const AssetAction = styled.div.withConfig({
|
|
15
|
-
shouldForwardProp
|
|
16
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
17
|
-
font-family: ${0};
|
|
18
|
-
`), props => props.theme.primaryFontFamily);
|
|
19
|
-
const AssetActionButton = styled.div.withConfig({
|
|
20
|
-
shouldForwardProp
|
|
21
|
-
}).attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
22
|
-
border-radius: 50%;
|
|
23
|
-
width: ${0};
|
|
24
|
-
height: ${0};
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
display: flex;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
align-items: center;
|
|
29
|
-
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
|
|
30
|
-
${0};
|
|
31
|
-
svg {
|
|
32
|
-
pointer-events: none;
|
|
33
|
-
width: ${0};
|
|
34
|
-
height: ${0};
|
|
35
|
-
${0};
|
|
36
|
-
}
|
|
37
|
-
`), props => props.$actionWidthHeight ? `${props.$actionWidthHeight[0]}px` : 'auto', props => props.$actionWidthHeight ? `${props.$actionWidthHeight[1]}px` : 'auto', props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('white')), props => props.$actionWidthHeightactionWidthHeight ? `${props.$actionWidthHeight[0] - 14}px` : 'auto', props => props.$actionWidthHeight ? `${props.$actionWidthHeight[1] - 14}px` : 'auto', props => props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('white')));
|
|
38
|
-
const ActionTitle = styled.div.withConfig({
|
|
39
|
-
shouldForwardProp
|
|
40
|
-
}).attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
padding: 8px 12px;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
color: white;
|
|
46
|
-
background: ${0};
|
|
47
|
-
`), props => props.theme.getColor('gray-700'));
|
|
48
|
-
const StyledFloatingArrow = styled(FloatingArrow).attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
49
|
-
fill: ${0};
|
|
50
|
-
`), props => props.theme.getColor('gray-700'));
|
|
51
|
-
const Floating = styled.div.withConfig({
|
|
52
|
-
shouldForwardProp
|
|
53
|
-
}).attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
`));
|
|
56
|
-
|
|
57
|
-
export { ActionTitle, AssetAction, AssetActionButton, Floating, StyledFloatingArrow };
|