@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ActionButton-03dc5f67.js +92 -0
- package/build/Alert-8a511bdc.js +138 -0
- package/build/AssetAction-d081e4b7.js +2377 -0
- package/build/AssetPreviewTopBar-623cfa18.js +152 -0
- package/build/Badge-aa4cd9c1.js +221 -0
- package/build/Button-2e26f5da.js +449 -0
- package/build/Checkbox-0b8faf49.js +220 -0
- package/build/CompactAutocompleteSelect-797778cb.js +555 -0
- package/build/CompactStarRating-da21b53f.js +436 -0
- package/build/CompactTextInput-d56aec71.js +541 -0
- package/build/ContextMenu-82f9d728.js +33 -0
- package/build/ContextMenuItem-3967010d.js +152 -0
- package/build/InfoCard-d0fdf377.js +132 -0
- package/build/InputGroup-8d4a4644.js +30 -0
- package/build/Instructions-af191987.js +274 -0
- package/build/MultiLevelCheckboxSelect-d229cf98.js +632 -0
- package/build/MultiSelect-d7920eb1.js +470 -0
- package/build/Popover-c4be47ea.js +241 -0
- package/build/ProgressBar-2d26c1fb.js +217 -0
- package/build/Radio-150fb2c9.js +141 -0
- package/build/SectionSeparator-e06c7660.js +38 -0
- package/build/Switch-d2d6e9ec.js +167 -0
- package/build/Tab-ccbca1f2.js +39 -0
- package/build/Tabs-b06c0e24.js +166 -0
- package/build/TextArea-26d3c8a1.js +619 -0
- package/build/TextInput-3a567daa.js +372 -0
- package/build/Tooltip-d5882b82.js +73 -0
- package/build/VerificationStatusIcon-9876b68f.js +120 -0
- package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-4b342fad.js} +3 -1
- package/build/arrow-forward-d7c77ae3.js +37 -0
- package/build/close-1751121a.js +37 -0
- package/build/data/Alert/index.js +12 -0
- package/build/data/Badge/index.js +11 -0
- package/build/data/Popover/index.js +16 -0
- package/build/data/Tab/index.js +11 -0
- package/build/data/Tabs/index.js +13 -0
- package/build/data/Tooltip/index.js +13 -0
- package/build/data/index.js +30 -0
- package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-d9a7342e.js} +582 -17
- package/build/edit-note-cefe2215.js +37 -0
- package/build/expand-more-d74e2bd2.js +37 -0
- package/build/icons/add-circle.svg +3 -0
- package/build/icons/add.svg +3 -0
- package/build/icons/album.svg +3 -0
- package/build/icons/arrow-back.svg +4 -0
- package/build/icons/arrow-drop-down.svg +4 -0
- package/build/icons/arrow-forward.svg +3 -0
- package/build/icons/audio.svg +3 -0
- package/build/icons/bell.svg +3 -0
- package/build/icons/check-circle-filled.svg +3 -0
- package/build/icons/check-rectangle-filled.svg +3 -0
- package/build/icons/check.svg +3 -0
- package/build/icons/clear-circle-filled.svg +14 -0
- package/build/icons/close.svg +4 -0
- package/build/icons/corporate.svg +3 -0
- package/build/icons/delete-context-menu.svg +4 -0
- package/build/icons/delete.svg +3 -0
- package/build/icons/design-services.svg +4 -0
- package/build/icons/download.svg +3 -0
- package/build/icons/edit-note.svg +4 -0
- package/build/icons/edit.svg +3 -0
- package/build/icons/expand-more.svg +4 -0
- package/build/icons/file.svg +3 -0
- package/build/icons/ftp.svg +3 -0
- package/build/icons/gear.svg +3 -0
- package/build/icons/headset.svg +1 -0
- package/build/icons/index.js +79 -0
- package/build/icons/layers.svg +3 -0
- package/build/icons/library-add.svg +3 -0
- package/build/icons/link.svg +4 -0
- package/build/icons/pdf.svg +3 -0
- package/build/icons/play.svg +3 -0
- package/build/icons/remove-circle.svg +3 -0
- package/build/icons/search.svg +3 -0
- package/build/icons/share.svg +3 -0
- package/build/icons/shopping_cart_add.svg +3 -0
- package/build/icons/star-filled.svg +3 -0
- package/build/icons/star.svg +3 -0
- package/build/icons/triangle-right.svg +4 -0
- package/build/icons/verification.svg +3 -0
- package/build/icons/warning-circle.svg +3 -0
- package/build/icons/warning-triangle.svg +3 -0
- package/build/inputs/ActionButton/index.js +12 -0
- package/build/inputs/Button/index.js +19 -0
- package/build/inputs/Checkbox/index.js +12 -0
- package/build/inputs/CompactAutocompleteSelect/index.js +29 -0
- package/build/inputs/CompactStarRating/index.js +23 -0
- package/build/inputs/CompactTextInput/index.js +25 -0
- package/build/inputs/MultiSelect/index.js +16 -0
- package/build/inputs/Radio/index.js +13 -0
- package/build/inputs/Switch/index.js +12 -0
- package/build/inputs/TextArea/index.js +26 -0
- package/build/inputs/TextInput/index.js +15 -0
- package/build/inputs/index.js +60 -0
- package/build/layout/InputGroup/index.js +11 -0
- package/build/layout/SectionSeparator/index.js +11 -0
- package/build/layout/index.js +15 -0
- package/build/shift-away-subtle-158617af.js +9 -0
- package/build/styles/all.scss +3 -0
- package/build/styles/config.scss +38 -0
- package/{styles/utils/.colors.scss → build/styles/utils/colors.scss} +1 -1
- package/build/styles/utils/theme.scss +33 -0
- package/build/widgets/AssetGallery/index.js +55 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +12 -0
- package/build/widgets/ContextMenu/ContextMenuItem/index.js +11 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +44 -0
- package/build/widgets/ContextMenu/index.js +11 -0
- package/build/widgets/InfoCard/index.js +12 -0
- package/build/widgets/Instructions/index.js +33 -0
- package/build/widgets/ProgressBar/index.js +12 -0
- package/build/widgets/index.js +65 -0
- package/package.json +49 -56
- package/styles/all.scss +3 -3
- package/styles/config.scss +38 -0
- package/styles/utils/colors.scss +15 -0
- package/styles/utils/theme.scss +0 -2
- package/.eslintrc +0 -19
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
- package/cjs/_virtual/index.js +0 -7
- package/cjs/_virtual/index2.js +0 -7
- package/cjs/_virtual/index3.js +0 -7
- package/cjs/_virtual/index4.js +0 -7
- package/cjs/_virtual/index5.js +0 -7
- package/cjs/_virtual/react-dom.development.js +0 -7
- package/cjs/_virtual/react-dom.production.js +0 -7
- package/cjs/_virtual/react-is.development.js +0 -7
- package/cjs/_virtual/react-is.development2.js +0 -7
- package/cjs/_virtual/react-is.production.min.js +0 -7
- package/cjs/_virtual/react-is.production.min2.js +0 -7
- package/cjs/_virtual/react.development.js +0 -7
- package/cjs/_virtual/react.production.js +0 -7
- package/cjs/components/data/Alert/Alert.js +0 -79
- package/cjs/components/data/Alert/Alert.styled.js +0 -79
- package/cjs/components/data/Alert/data/Alert/index.js +0 -9
- package/cjs/components/data/Badge/Badge.js +0 -93
- package/cjs/components/data/Badge/Badge.styled.js +0 -167
- package/cjs/components/data/Badge/data/Badge/index.js +0 -9
- package/cjs/components/data/Popover/Popover.js +0 -104
- package/cjs/components/data/Popover/Popover.styled.js +0 -159
- package/cjs/components/data/Popover/data/Popover/index.js +0 -9
- package/cjs/components/data/Tab/Tab.js +0 -31
- package/cjs/components/data/Tab/Tab.styled.js +0 -27
- package/cjs/components/data/Tab/data/Tab/index.js +0 -9
- package/cjs/components/data/Tabs/Tabs.js +0 -101
- package/cjs/components/data/Tabs/Tabs.styled.js +0 -110
- package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
- package/cjs/components/data/Tooltip/Tooltip.js +0 -52
- package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -88
- package/cjs/components/data/data/index.js +0 -21
- package/cjs/components/inputs/ActionButton/ActionButton.js +0 -44
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -75
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
- package/cjs/components/inputs/Button/Button.js +0 -195
- package/cjs/components/inputs/Button/Button.styled.js +0 -340
- package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
- package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -160
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -363
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -177
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -269
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -406
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -106
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -147
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -208
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -275
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
- package/cjs/components/inputs/Radio/Radio.js +0 -67
- package/cjs/components/inputs/Radio/Radio.styled.js +0 -100
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
- package/cjs/components/inputs/Switch/Switch.js +0 -69
- package/cjs/components/inputs/Switch/Switch.styled.js +0 -138
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
- package/cjs/components/inputs/TextArea/TextArea.js +0 -176
- package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -530
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
- package/cjs/components/inputs/TextInput/TextInput.js +0 -146
- package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -289
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
- package/cjs/components/inputs/inputs/index.js +0 -33
- package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -23
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -28
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
- package/cjs/components/layout/layout/index.js +0 -11
- package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -69
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -29
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -106
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -395
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -52
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -405
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -385
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
- package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -107
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -29
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -24
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -102
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -35
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
- package/cjs/components/widgets/InfoCard/InfoCard.js +0 -47
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -137
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -79
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -210
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -93
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -169
- package/cjs/components/widgets/widgets/index.js +0 -23
- package/cjs/hooks/useEventListner.js +0 -26
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
- package/cjs/hooks/useOnClickOutside.js +0 -17
- package/cjs/icons/arrow-back.svg.js +0 -20
- package/cjs/icons/arrow-forward.svg.js +0 -20
- package/cjs/icons/check-rectangle-filled.svg.js +0 -20
- package/cjs/icons/close.svg.js +0 -20
- package/cjs/icons/edit-note.svg.js +0 -20
- package/cjs/icons/expand-more.svg.js +0 -20
- package/cjs/icons/headset.svg.js +0 -20
- package/cjs/icons/layers.svg.js +0 -20
- package/cjs/icons/link.svg.js +0 -20
- package/cjs/icons/play.svg.js +0 -20
- package/cjs/icons/search.svg.js +0 -20
- package/cjs/icons/star-filled.svg.js +0 -20
- package/cjs/icons/star.svg.js +0 -20
- package/cjs/icons/triangle-right.svg.js +0 -20
- package/cjs/icons/verification.svg.js +0 -20
- package/cjs/icons/warning-circle.svg.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -915
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -130
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -166
- package/cjs/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -43
- package/cjs/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -39
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
- package/cjs/node_modules/object-assign/index.js +0 -94
- package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
- package/cjs/node_modules/prop-types/index.js +0 -33
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
- package/cjs/node_modules/prop-types/lib/has.js +0 -7
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/react/cjs/react.development.js +0 -1289
- package/cjs/node_modules/react/cjs/react.production.js +0 -548
- package/cjs/node_modules/react/index.js +0 -19
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
- package/cjs/node_modules/react-dom/index.js +0 -44
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
- package/cjs/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2659
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
- package/cjs/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -101
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
- package/cjs/node_modules/stylis/src/Enum.js +0 -24
- package/cjs/node_modules/stylis/src/Middleware.js +0 -37
- package/cjs/node_modules/stylis/src/Parser.js +0 -201
- package/cjs/node_modules/stylis/src/Serializer.js +0 -43
- package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
- package/cjs/node_modules/stylis/src/Utility.js +0 -134
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -13
- package/cjs/styles/utils/colors-export.js +0 -41
- package/cjs/utils/dateTime.js +0 -20
- package/cjs/utils/defaultTheme.js +0 -75
- package/doctor-storybook.log +0 -20
- package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/index2.js +0 -3
- package/esm/_virtual/index3.js +0 -3
- package/esm/_virtual/index4.js +0 -3
- package/esm/_virtual/index5.js +0 -3
- package/esm/_virtual/react-dom.development.js +0 -3
- package/esm/_virtual/react-dom.production.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.development2.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-is.production.min2.js +0 -3
- package/esm/_virtual/react.development.js +0 -3
- package/esm/_virtual/react.production.js +0 -3
- package/esm/components/data/Alert/Alert.js +0 -75
- package/esm/components/data/Alert/Alert.styled.js +0 -70
- package/esm/components/data/Alert/data/Alert/index.js +0 -1
- package/esm/components/data/Badge/Badge.js +0 -89
- package/esm/components/data/Badge/Badge.styled.js +0 -156
- package/esm/components/data/Badge/data/Badge/index.js +0 -1
- package/esm/components/data/Popover/Popover.js +0 -96
- package/esm/components/data/Popover/Popover.styled.js +0 -150
- package/esm/components/data/Popover/data/Popover/index.js +0 -1
- package/esm/components/data/Tab/Tab.js +0 -27
- package/esm/components/data/Tab/Tab.styled.js +0 -19
- package/esm/components/data/Tab/data/Tab/index.js +0 -1
- package/esm/components/data/Tabs/Tabs.js +0 -97
- package/esm/components/data/Tabs/Tabs.styled.js +0 -98
- package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
- package/esm/components/data/Tooltip/Tooltip.js +0 -48
- package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
- package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -78
- package/esm/components/data/data/index.js +0 -7
- package/esm/components/inputs/ActionButton/ActionButton.js +0 -40
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -67
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
- package/esm/components/inputs/Button/Button.js +0 -191
- package/esm/components/inputs/Button/Button.styled.js +0 -323
- package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
- package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -147
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -335
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -173
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -256
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -389
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -92
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -129
- package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -204
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
- package/esm/components/inputs/Radio/Radio.js +0 -63
- package/esm/components/inputs/Radio/Radio.styled.js +0 -91
- package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
- package/esm/components/inputs/Switch/Switch.js +0 -65
- package/esm/components/inputs/Switch/Switch.styled.js +0 -125
- package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
- package/esm/components/inputs/TextArea/TextArea.js +0 -172
- package/esm/components/inputs/TextArea/TextArea.styled.js +0 -512
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
- package/esm/components/inputs/TextInput/TextInput.js +0 -142
- package/esm/components/inputs/TextInput/TextInput.styled.js +0 -274
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
- package/esm/components/inputs/inputs/index.js +0 -13
- package/esm/components/layout/InputGroup/InputGroup.js +0 -22
- package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -15
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -20
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
- package/esm/components/layout/layout/index.js +0 -2
- package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -57
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -21
- package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -102
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -387
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -42
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -401
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -358
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
- package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -95
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -25
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -16
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -92
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -27
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +0 -43
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -121
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
- package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -75
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -191
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
- package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -89
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -151
- package/esm/components/widgets/widgets/index.js +0 -8
- package/esm/hooks/useEventListner.js +0 -22
- package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
- package/esm/hooks/useOnClickOutside.js +0 -13
- package/esm/icons/arrow-back.svg.js +0 -16
- package/esm/icons/arrow-forward.svg.js +0 -16
- package/esm/icons/check-rectangle-filled.svg.js +0 -16
- package/esm/icons/close.svg.js +0 -16
- package/esm/icons/edit-note.svg.js +0 -16
- package/esm/icons/expand-more.svg.js +0 -16
- package/esm/icons/headset.svg.js +0 -16
- package/esm/icons/layers.svg.js +0 -16
- package/esm/icons/link.svg.js +0 -16
- package/esm/icons/play.svg.js +0 -16
- package/esm/icons/search.svg.js +0 -16
- package/esm/icons/star-filled.svg.js +0 -16
- package/esm/icons/star.svg.js +0 -16
- package/esm/icons/triangle-right.svg.js +0 -16
- package/esm/icons/verification.svg.js +0 -16
- package/esm/icons/warning-circle.svg.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -902
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -112
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -139
- package/esm/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -38
- package/esm/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -35
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
- package/esm/node_modules/object-assign/index.js +0 -90
- package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/esm/node_modules/prop-types/index.js +0 -29
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/esm/node_modules/prop-types/lib/has.js +0 -3
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/react/cjs/react.development.js +0 -1287
- package/esm/node_modules/react/cjs/react.production.js +0 -543
- package/esm/node_modules/react/index.js +0 -15
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
- package/esm/node_modules/react-dom/index.js +0 -42
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/esm/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2650
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
- package/esm/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -97
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
- package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/esm/node_modules/stylis/src/Enum.js +0 -12
- package/esm/node_modules/stylis/src/Middleware.js +0 -32
- package/esm/node_modules/stylis/src/Parser.js +0 -193
- package/esm/node_modules/stylis/src/Serializer.js +0 -38
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
- package/esm/node_modules/stylis/src/Utility.js +0 -117
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
- package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -9
- package/esm/ssr/ssr/index.js +0 -1
- package/esm/styles/utils/colors-export.js +0 -37
- package/esm/utils/dateTime.js +0 -16
- package/esm/utils/defaultTheme.js +0 -70
- package/migration-storybook.log +0 -392
- package/styles/utils/colors-export.js +0 -35
- /package/{cjs/ssr → build}/ssr/index.js +0 -0
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React from '../../../node_modules/react/index.js';
|
|
3
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
-
import { ButtonWrapper, MainButtonWrapper, MainButtonContainer, Button as Button$2, ButtonContent, LoadingIndicator, LoadingIndicatorSvg, LoadingIndicatorSvgCircle, DropdownButtonContainer, MainButtonContainerSingle } from './Button.styled.js';
|
|
5
|
-
import { ReactComponent as SvgExpandMore } from '../../../icons/expand-more.svg.js';
|
|
6
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
7
|
-
import Popover from '../../data/Popover/Popover.js';
|
|
8
|
-
import ContextMenu from '../../widgets/ContextMenu/ContextMenu.js';
|
|
9
|
-
|
|
10
|
-
const _excluded = ["onClickEffect", "singleAction", "activeDropdown", "dropdownItems", "secondary", "outlined", "block", "icon", "size", "disabled", "loading", "className", "children", "singleActionGap", "width", "border"];
|
|
11
|
-
const Button = React.forwardRef(function Button(_ref, forwardedRef) {
|
|
12
|
-
let {
|
|
13
|
-
onClickEffect,
|
|
14
|
-
singleAction = false,
|
|
15
|
-
activeDropdown = false,
|
|
16
|
-
dropdownItems,
|
|
17
|
-
secondary,
|
|
18
|
-
outlined,
|
|
19
|
-
block = false,
|
|
20
|
-
icon,
|
|
21
|
-
size = 'normal',
|
|
22
|
-
disabled,
|
|
23
|
-
loading,
|
|
24
|
-
className,
|
|
25
|
-
children,
|
|
26
|
-
singleActionGap = 34,
|
|
27
|
-
width,
|
|
28
|
-
border = 2
|
|
29
|
-
} = _ref,
|
|
30
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
-
const [loadingState, setLoadingState] = react.exports.useState(loading || false);
|
|
32
|
-
const [loadingStep, setLoadingStep] = react.exports.useState(113);
|
|
33
|
-
const loadingInterval = react.exports.useRef(0);
|
|
34
|
-
const [dropdownIsActive, setDropdownIsActive] = react.exports.useState(false);
|
|
35
|
-
const enableLoading = () => {
|
|
36
|
-
loadingInterval.current = setInterval(() => {
|
|
37
|
-
setLoadingStep(currentLoadingStep => {
|
|
38
|
-
const newLoadingStep = Math.round(currentLoadingStep - 15 * currentLoadingStep / 100);
|
|
39
|
-
if (newLoadingStep === currentLoadingStep) {
|
|
40
|
-
clearInterval(loadingInterval.current);
|
|
41
|
-
}
|
|
42
|
-
return newLoadingStep;
|
|
43
|
-
});
|
|
44
|
-
}, 300);
|
|
45
|
-
setLoadingState(true);
|
|
46
|
-
};
|
|
47
|
-
const disableLoading = () => {
|
|
48
|
-
clearInterval(loadingInterval.current);
|
|
49
|
-
setLoadingStep(0);
|
|
50
|
-
setTimeout(() => {
|
|
51
|
-
setLoadingState(false);
|
|
52
|
-
setLoadingStep(113);
|
|
53
|
-
}, 500);
|
|
54
|
-
};
|
|
55
|
-
react.exports.useEffect(() => {
|
|
56
|
-
if (loading) {
|
|
57
|
-
enableLoading();
|
|
58
|
-
} else {
|
|
59
|
-
disableLoading();
|
|
60
|
-
}
|
|
61
|
-
return () => clearInterval(loadingInterval.current);
|
|
62
|
-
}, [loading]);
|
|
63
|
-
const handleDropdownButtonClick = () => {
|
|
64
|
-
setDropdownIsActive(true);
|
|
65
|
-
};
|
|
66
|
-
const handleDropdownClose = () => {
|
|
67
|
-
setDropdownIsActive(false);
|
|
68
|
-
};
|
|
69
|
-
return React.createElement(ButtonWrapper, null, !singleAction ? React.createElement(MainButtonWrapper, {
|
|
70
|
-
$activeDropdown: activeDropdown,
|
|
71
|
-
$dropdownItems: dropdownItems,
|
|
72
|
-
$outlined: outlined,
|
|
73
|
-
$secondary: secondary,
|
|
74
|
-
$block: block
|
|
75
|
-
}, React.createElement(MainButtonContainer, {
|
|
76
|
-
$dropdownItems: dropdownItems,
|
|
77
|
-
$secondary: secondary,
|
|
78
|
-
$outlined: outlined,
|
|
79
|
-
$block: block
|
|
80
|
-
}, React.createElement(Button$2, _extends({
|
|
81
|
-
ref: forwardedRef,
|
|
82
|
-
onClick: onClickEffect,
|
|
83
|
-
$border: border,
|
|
84
|
-
$singleaction: singleAction,
|
|
85
|
-
$dropdownItems: dropdownItems,
|
|
86
|
-
$secondary: secondary,
|
|
87
|
-
$outlined: outlined,
|
|
88
|
-
$block: block,
|
|
89
|
-
size: size,
|
|
90
|
-
disabled: disabled,
|
|
91
|
-
className: className,
|
|
92
|
-
"aria-busy": disabled,
|
|
93
|
-
$width: width
|
|
94
|
-
}, props), React.createElement(ButtonContent, {
|
|
95
|
-
$loading: loadingState,
|
|
96
|
-
size: size
|
|
97
|
-
}, icon, children), React.createElement(LoadingIndicator, {
|
|
98
|
-
$loading: loadingState,
|
|
99
|
-
style: {
|
|
100
|
-
opacity: loadingState ? 1 : 0
|
|
101
|
-
}
|
|
102
|
-
}, React.createElement(LoadingIndicatorSvg, {
|
|
103
|
-
viewBox: "22 22 44 44"
|
|
104
|
-
}, React.createElement(LoadingIndicatorSvgCircle, {
|
|
105
|
-
cx: "44",
|
|
106
|
-
cy: "44",
|
|
107
|
-
r: "18",
|
|
108
|
-
fill: "none",
|
|
109
|
-
strokeWidth: "4",
|
|
110
|
-
stroke: "currentColor",
|
|
111
|
-
style: {
|
|
112
|
-
strokeDashoffset: `${loadingStep}px`
|
|
113
|
-
}
|
|
114
|
-
}))))), (activeDropdown || dropdownItems) && React.createElement(DropdownButtonContainer, {
|
|
115
|
-
$dropdownItems: dropdownItems,
|
|
116
|
-
$secondary: secondary,
|
|
117
|
-
$outlined: outlined
|
|
118
|
-
}, React.createElement(Popover, {
|
|
119
|
-
content: React.createElement(ContextMenu, null, dropdownItems),
|
|
120
|
-
placement: 'bottom-end',
|
|
121
|
-
arrow: false,
|
|
122
|
-
contextMenu: true,
|
|
123
|
-
onHide: handleDropdownClose
|
|
124
|
-
}, React.createElement(Button$2, {
|
|
125
|
-
ref: forwardedRef,
|
|
126
|
-
$singleaction: singleAction,
|
|
127
|
-
$singleactiongap: singleActionGap,
|
|
128
|
-
$dropdownItems: dropdownItems,
|
|
129
|
-
$secondary: secondary,
|
|
130
|
-
$outlined: outlined,
|
|
131
|
-
$border: border,
|
|
132
|
-
$block: block,
|
|
133
|
-
size: size,
|
|
134
|
-
disabled: disabled,
|
|
135
|
-
onClick: handleDropdownButtonClick,
|
|
136
|
-
className: dropdownIsActive ? 'dropdown-is-active' : '',
|
|
137
|
-
$width: width
|
|
138
|
-
}, React.createElement(SvgExpandMore, null))))) : React.createElement(React.Fragment, null, React.createElement(MainButtonContainerSingle, {
|
|
139
|
-
$dropdownItems: dropdownItems,
|
|
140
|
-
$secondary: secondary,
|
|
141
|
-
$outlined: outlined,
|
|
142
|
-
className: className
|
|
143
|
-
}, React.createElement(DropdownButtonContainer, {
|
|
144
|
-
$singleaction: singleAction
|
|
145
|
-
}, React.createElement(Popover, {
|
|
146
|
-
content: React.createElement(ContextMenu, null, dropdownItems),
|
|
147
|
-
placement: 'bottom-end',
|
|
148
|
-
arrow: false,
|
|
149
|
-
contextMenu: true,
|
|
150
|
-
onHide: handleDropdownClose
|
|
151
|
-
}, React.createElement(Button$2, {
|
|
152
|
-
ref: forwardedRef,
|
|
153
|
-
$singleaction: singleAction,
|
|
154
|
-
$singleactiongap: singleActionGap,
|
|
155
|
-
$dropdownItems: dropdownItems,
|
|
156
|
-
$secondary: secondary,
|
|
157
|
-
$outlined: outlined,
|
|
158
|
-
$border: border,
|
|
159
|
-
$block: block,
|
|
160
|
-
size: size,
|
|
161
|
-
disabled: disabled,
|
|
162
|
-
onClick: handleDropdownButtonClick,
|
|
163
|
-
className: dropdownIsActive ? 'dropdown-is-active' : '',
|
|
164
|
-
$width: width
|
|
165
|
-
}, React.createElement(ButtonContent, {
|
|
166
|
-
$loading: loadingState,
|
|
167
|
-
size: size,
|
|
168
|
-
$singleaction: singleAction
|
|
169
|
-
}, icon, children), React.createElement(SvgExpandMore, null)))))));
|
|
170
|
-
});
|
|
171
|
-
Button.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
172
|
-
onClickEffect: PropTypes.func,
|
|
173
|
-
singleAction: PropTypes.bool,
|
|
174
|
-
activeDropdown: PropTypes.bool,
|
|
175
|
-
dropdownItems: PropTypes.node,
|
|
176
|
-
secondary: PropTypes.bool,
|
|
177
|
-
outlined: PropTypes.bool,
|
|
178
|
-
border: PropTypes.number,
|
|
179
|
-
block: PropTypes.bool,
|
|
180
|
-
icon: PropTypes.element,
|
|
181
|
-
size: PropTypes.oneOf(['x-small', 'small', 'normal', 'large']),
|
|
182
|
-
disabled: PropTypes.bool,
|
|
183
|
-
loading: PropTypes.bool,
|
|
184
|
-
className: PropTypes.string,
|
|
185
|
-
children: PropTypes.any.isRequired,
|
|
186
|
-
singleActionGap: PropTypes.number,
|
|
187
|
-
width: PropTypes.number
|
|
188
|
-
} : {};
|
|
189
|
-
var Button$1 = Button;
|
|
190
|
-
|
|
191
|
-
export { Button$1 as default };
|
|
@@ -1,323 +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
|
-
_t24,
|
|
31
|
-
_t25,
|
|
32
|
-
_t26,
|
|
33
|
-
_t27,
|
|
34
|
-
_t28,
|
|
35
|
-
_t29,
|
|
36
|
-
_t30,
|
|
37
|
-
_t31,
|
|
38
|
-
_t32;
|
|
39
|
-
const shouldForwardProp = prop => {
|
|
40
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
41
|
-
};
|
|
42
|
-
const Button = styled.button.withConfig({
|
|
43
|
-
shouldForwardProp
|
|
44
|
-
}).attrs(applyDefaultTheme)(_t || (_t = _`
|
|
45
|
-
position: relative;
|
|
46
|
-
border-radius: 3px;
|
|
47
|
-
font-family: inherit;
|
|
48
|
-
font-size: 0.875rem;
|
|
49
|
-
font-weight: 400;
|
|
50
|
-
padding: 12px 16px;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
background: ${0};
|
|
53
|
-
border: ${0}px solid ${0};
|
|
54
|
-
transition:
|
|
55
|
-
all 250ms,
|
|
56
|
-
opacity 200ms;
|
|
57
|
-
|
|
58
|
-
&:hover,
|
|
59
|
-
&.dropdown-is-active {
|
|
60
|
-
background: #296c58;
|
|
61
|
-
border-color: #296c58;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
${0}
|
|
65
|
-
|
|
66
|
-
&& {
|
|
67
|
-
${0};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&& {
|
|
71
|
-
${0};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&& {
|
|
75
|
-
${0};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&& {
|
|
79
|
-
${0};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
${0};
|
|
83
|
-
|
|
84
|
-
${0};
|
|
85
|
-
|
|
86
|
-
${0};
|
|
87
|
-
|
|
88
|
-
${0};
|
|
89
|
-
|
|
90
|
-
${0};
|
|
91
|
-
|
|
92
|
-
${0};
|
|
93
|
-
|
|
94
|
-
${0};
|
|
95
|
-
`), props => props.theme.getColor('emerald-500'), props => props.$border, props => props.theme.getColor('emerald-500'), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('white')), props => props.$secondary && css(_t2 || (_t2 = _`
|
|
96
|
-
background: ${0};
|
|
97
|
-
border-color: ${0};
|
|
98
|
-
|
|
99
|
-
${0}
|
|
100
|
-
|
|
101
|
-
&:hover,
|
|
102
|
-
&.dropdown-is-active {
|
|
103
|
-
background: ${0};
|
|
104
|
-
border-color: ${0};
|
|
105
|
-
}
|
|
106
|
-
`), props => props.theme.getColor('gray-200'), props => props.theme.getColor('gray-200'), props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('gray-700')), props => props.theme.getColor('gray-300'), props => props.theme.getColor('gray-300')), props => props.$outlined && css(_t3 || (_t3 = _`
|
|
107
|
-
background: transparent;
|
|
108
|
-
transition: none;
|
|
109
|
-
|
|
110
|
-
${0}
|
|
111
|
-
|
|
112
|
-
${0}
|
|
113
|
-
|
|
114
|
-
&:hover,
|
|
115
|
-
&.dropdown-is-active {
|
|
116
|
-
background-color: #296c58;
|
|
117
|
-
|
|
118
|
-
${0}
|
|
119
|
-
|
|
120
|
-
${0}
|
|
121
|
-
}
|
|
122
|
-
`), props.theme.themeProp('border-color', props.theme.getColor('emerald-400'), props.theme.getColor('emerald-500')), props.theme.themeProp('color', props.theme.getColor('emerald-400'), props.theme.getColor('emerald-500')), props.theme.themeProp('border-color', props.theme.getColor('emerald-600'), props.theme.getColor('emerald-600')), props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-200'))), props => props.$outlined && props.$secondary && css(_t4 || (_t4 = _`
|
|
123
|
-
${0}
|
|
124
|
-
|
|
125
|
-
${0}
|
|
126
|
-
|
|
127
|
-
&:hover,
|
|
128
|
-
&.dropdown-is-active {
|
|
129
|
-
background: ${0};
|
|
130
|
-
|
|
131
|
-
${0}
|
|
132
|
-
|
|
133
|
-
${0}
|
|
134
|
-
}
|
|
135
|
-
`), props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-700')), props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700')), props.theme.getColor('gray-300'), props.theme.themeProp('border-color', props.theme.getColor('gray-300'), props.theme.getColor('gray-300')), props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('gray-700'))), props => props.$outlined && props.$secondary && props.$dropdownItems && css(_t5 || (_t5 = _`
|
|
136
|
-
&:hover,
|
|
137
|
-
&.dropdown-is-active {
|
|
138
|
-
${0}
|
|
139
|
-
}
|
|
140
|
-
`), props.theme.themeProp('border-color', props.theme.getColor('gray-300'), props.theme.getColor('gray-300'))), props => props.$block && css(_t6 || (_t6 = _`
|
|
141
|
-
width: 100%;
|
|
142
|
-
`)), props => props.disabled && css(_t7 || (_t7 = _`
|
|
143
|
-
opacity: 0.5;
|
|
144
|
-
cursor: not-allowed;
|
|
145
|
-
pointer-events: none;
|
|
146
|
-
`)), props => props.size === 'x-small' && css(_t8 || (_t8 = _`
|
|
147
|
-
padding: 1px 16px;
|
|
148
|
-
height: 24px;
|
|
149
|
-
`)), props => props.size === 'small' && css(_t9 || (_t9 = _`
|
|
150
|
-
padding: 6px 16px;
|
|
151
|
-
`)), props => props.size === 'large' && css(_t0 || (_t0 = _`
|
|
152
|
-
padding: 16px 16px;
|
|
153
|
-
`)), props => props.$singleaction && css(_t1 || (_t1 = _`
|
|
154
|
-
display: flex;
|
|
155
|
-
align-items: center;
|
|
156
|
-
gap: ${0}px;
|
|
157
|
-
border-radius: 3px !important;
|
|
158
|
-
transition:
|
|
159
|
-
all 250ms,
|
|
160
|
-
opacity 200ms;
|
|
161
|
-
`), props.$singleactiongap), props => props.$width && css(_t10 || (_t10 = _`
|
|
162
|
-
min-width: ${0}px;
|
|
163
|
-
justify-content: center;
|
|
164
|
-
`), props.$width));
|
|
165
|
-
const ButtonContent = styled.div.withConfig({
|
|
166
|
-
shouldForwardProp
|
|
167
|
-
}).attrs(applyDefaultTheme)(_t11 || (_t11 = _`
|
|
168
|
-
display: flex;
|
|
169
|
-
justify-content: center;
|
|
170
|
-
align-items: center;
|
|
171
|
-
transform: scale(1);
|
|
172
|
-
opacity: 1;
|
|
173
|
-
transition: all 200ms;
|
|
174
|
-
|
|
175
|
-
> svg {
|
|
176
|
-
width: 100%;
|
|
177
|
-
max-width: 16px;
|
|
178
|
-
max-height: 16px;
|
|
179
|
-
margin-right: 8px;
|
|
180
|
-
|
|
181
|
-
${0};
|
|
182
|
-
|
|
183
|
-
${0};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
${0}
|
|
187
|
-
|
|
188
|
-
${0};
|
|
189
|
-
`), props => props.size === 'small' && css(_t12 || (_t12 = _`
|
|
190
|
-
max-width: 13px;
|
|
191
|
-
max-height: 13px;
|
|
192
|
-
`)), props => props.size === 'x-small' && css(_t13 || (_t13 = _`
|
|
193
|
-
max-width: 11px;
|
|
194
|
-
max-height: 11px;
|
|
195
|
-
`)), props => props.$loading && css(_t14 || (_t14 = _`
|
|
196
|
-
transform: scale(0.95);
|
|
197
|
-
opacity: 0;
|
|
198
|
-
`)), props => props.$singleaction && css(_t15 || (_t15 = _`
|
|
199
|
-
svg {
|
|
200
|
-
width: 100% !important;
|
|
201
|
-
height: 100% !important;
|
|
202
|
-
margin-right: 24px;
|
|
203
|
-
}
|
|
204
|
-
`)));
|
|
205
|
-
const LoadingIndicator = styled.div.withConfig({
|
|
206
|
-
shouldForwardProp
|
|
207
|
-
}).attrs(applyDefaultTheme)(_t16 || (_t16 = _`
|
|
208
|
-
position: absolute;
|
|
209
|
-
height: 100%;
|
|
210
|
-
width: 100%;
|
|
211
|
-
top: 0;
|
|
212
|
-
left: 0;
|
|
213
|
-
padding: 4px;
|
|
214
|
-
background: inherit;
|
|
215
|
-
opacity: 0;
|
|
216
|
-
transition: opacity 200ms;
|
|
217
|
-
box-sizing: border-box;
|
|
218
|
-
|
|
219
|
-
${0}
|
|
220
|
-
`), props => props.$loading && css(_t17 || (_t17 = _`
|
|
221
|
-
opacity: 1;
|
|
222
|
-
`)));
|
|
223
|
-
const LoadingIndicatorSvg = styled.svg.withConfig({
|
|
224
|
-
shouldForwardProp
|
|
225
|
-
}).attrs(applyDefaultTheme)(_t18 || (_t18 = _`
|
|
226
|
-
height: 100%;
|
|
227
|
-
color: inherit;
|
|
228
|
-
transform: rotate(-88deg);
|
|
229
|
-
`));
|
|
230
|
-
const LoadingIndicatorSvgCircle = styled.circle.withConfig({
|
|
231
|
-
shouldForwardProp
|
|
232
|
-
}).attrs(applyDefaultTheme)(_t19 || (_t19 = _`
|
|
233
|
-
transition: stroke-dashoffset 300ms linear;
|
|
234
|
-
stroke-dasharray: 113;
|
|
235
|
-
`));
|
|
236
|
-
const ButtonWrapper = styled.span.withConfig({
|
|
237
|
-
shouldForwardProp
|
|
238
|
-
}).attrs(applyDefaultTheme)(_t20 || (_t20 = _`
|
|
239
|
-
white-space: nowrap;
|
|
240
|
-
display: flex;
|
|
241
|
-
${0}
|
|
242
|
-
`), props => props.$block && css(_t21 || (_t21 = _`
|
|
243
|
-
width: 100%;
|
|
244
|
-
`)));
|
|
245
|
-
const MainButtonWrapper = styled.div.withConfig({
|
|
246
|
-
shouldForwardProp
|
|
247
|
-
}).attrs(applyDefaultTheme)(_t22 || (_t22 = _`
|
|
248
|
-
border-radius: 3px;
|
|
249
|
-
${0}
|
|
250
|
-
|
|
251
|
-
${0};
|
|
252
|
-
`), props => props.$block && css(_t23 || (_t23 = _`
|
|
253
|
-
width: 100%;
|
|
254
|
-
display: flex;
|
|
255
|
-
`)), props => {
|
|
256
|
-
return (props.$activeDropdown || props.$dropdownItems) && !props.$outlined && css(_t24 || (_t24 = _`
|
|
257
|
-
background: ${0};
|
|
258
|
-
`), props.$secondary ? props.theme.getColor('gray-200') : props.theme.getColor('emerald-500'));
|
|
259
|
-
});
|
|
260
|
-
const MainButtonContainer = styled.div.withConfig({
|
|
261
|
-
shouldForwardProp
|
|
262
|
-
}).attrs(applyDefaultTheme)(_t25 || (_t25 = _`
|
|
263
|
-
display: inline-block;
|
|
264
|
-
|
|
265
|
-
${0}
|
|
266
|
-
|
|
267
|
-
button {
|
|
268
|
-
${0};
|
|
269
|
-
|
|
270
|
-
${0};
|
|
271
|
-
}
|
|
272
|
-
`), props => props.$block && css(_t26 || (_t26 = _`
|
|
273
|
-
flex: 1;
|
|
274
|
-
width: 100%;
|
|
275
|
-
`)), props => (props.$activeDropdown || props.$dropdownItems) && css(_t27 || (_t27 = _`
|
|
276
|
-
border-bottom-right-radius: 0;
|
|
277
|
-
border-top-right-radius: 0;
|
|
278
|
-
`)), props => (props.$activeDropdown || props.$dropdownItems) && props.outlined && css(_t28 || (_t28 = _`
|
|
279
|
-
border-right: none;
|
|
280
|
-
`)));
|
|
281
|
-
const MainButtonContainerSingle = styled.div.withConfig({
|
|
282
|
-
shouldForwardProp
|
|
283
|
-
}).attrs(applyDefaultTheme)(_t29 || (_t29 = _`
|
|
284
|
-
display: inline-block;
|
|
285
|
-
width: 100%;
|
|
286
|
-
${0};
|
|
287
|
-
|
|
288
|
-
button {
|
|
289
|
-
${0};
|
|
290
|
-
}
|
|
291
|
-
`), props => props.$singleaction && css(_t30 || (_t30 = _`
|
|
292
|
-
display: flex;
|
|
293
|
-
align-items: center;
|
|
294
|
-
border-radius: 3px !important;
|
|
295
|
-
transition:
|
|
296
|
-
all 250ms,
|
|
297
|
-
opacity 200ms;
|
|
298
|
-
`)), props => (props.$activeDropdown || props.$dropdownItems) && css(_t31 || (_t31 = _`
|
|
299
|
-
border-bottom-right-radius: 0;
|
|
300
|
-
border-top-right-radius: 0;
|
|
301
|
-
`)));
|
|
302
|
-
const DropdownButtonContainer = styled.div.withConfig({
|
|
303
|
-
shouldForwardProp
|
|
304
|
-
}).attrs(applyDefaultTheme)(_t32 || (_t32 = _`
|
|
305
|
-
display: inline-block;
|
|
306
|
-
|
|
307
|
-
button {
|
|
308
|
-
border-bottom-left-radius: 0;
|
|
309
|
-
border-top-left-radius: 0;
|
|
310
|
-
|
|
311
|
-
${0};
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
svg {
|
|
315
|
-
color: inherit;
|
|
316
|
-
height: 7px;
|
|
317
|
-
width: 12px;
|
|
318
|
-
|
|
319
|
-
${0};
|
|
320
|
-
}
|
|
321
|
-
`), props => !props.$singleaction && 'border-left: none', props => !props.$singleaction && 'margin-bottom: 1px');
|
|
322
|
-
|
|
323
|
-
export { Button, ButtonContent, ButtonWrapper, DropdownButtonContainer, LoadingIndicator, LoadingIndicatorSvg, LoadingIndicatorSvgCircle, MainButtonContainer, MainButtonContainerSingle, MainButtonWrapper };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Button.js';
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React from '../../../node_modules/react/index.js';
|
|
2
|
-
import { nanoid } from 'nanoid';
|
|
3
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
-
import { isBoolean, isEmpty } from 'lodash';
|
|
5
|
-
import { Checkbox as Checkbox$2, CheckboxLabel, IndeterminateCheckIcon, CheckIcon, CheckboxVisualLabel, Description } from './Checkbox.styled.js';
|
|
6
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
7
|
-
|
|
8
|
-
const Checkbox = React.forwardRef(function Checkbox({
|
|
9
|
-
checked,
|
|
10
|
-
defaultChecked,
|
|
11
|
-
disabled,
|
|
12
|
-
readOnly,
|
|
13
|
-
name,
|
|
14
|
-
value,
|
|
15
|
-
description,
|
|
16
|
-
error,
|
|
17
|
-
indeterminate,
|
|
18
|
-
muted,
|
|
19
|
-
label,
|
|
20
|
-
onChange,
|
|
21
|
-
onBlur,
|
|
22
|
-
className,
|
|
23
|
-
style
|
|
24
|
-
}, forwardedRef) {
|
|
25
|
-
const [uniqueId] = react.exports.useState(nanoid());
|
|
26
|
-
const hasError = react.exports.useMemo(() => {
|
|
27
|
-
if (isBoolean(error)) {
|
|
28
|
-
return error;
|
|
29
|
-
}
|
|
30
|
-
return !isEmpty(error);
|
|
31
|
-
}, [error]);
|
|
32
|
-
const descriptionText = react.exports.useMemo(() => {
|
|
33
|
-
if (!isEmpty(error)) {
|
|
34
|
-
return error;
|
|
35
|
-
}
|
|
36
|
-
if (!isEmpty(description)) {
|
|
37
|
-
return description;
|
|
38
|
-
}
|
|
39
|
-
return null;
|
|
40
|
-
}, [description, error]);
|
|
41
|
-
return React.createElement(Checkbox$2, {
|
|
42
|
-
className: className,
|
|
43
|
-
disabled: disabled,
|
|
44
|
-
readOnly: readOnly,
|
|
45
|
-
style: style
|
|
46
|
-
}, React.createElement(CheckboxLabel, {
|
|
47
|
-
disabled: disabled,
|
|
48
|
-
muted: muted,
|
|
49
|
-
readOnly: readOnly,
|
|
50
|
-
htmlFor: uniqueId
|
|
51
|
-
}, React.createElement("input", {
|
|
52
|
-
ref: forwardedRef,
|
|
53
|
-
id: uniqueId,
|
|
54
|
-
checked: checked,
|
|
55
|
-
defaultChecked: defaultChecked,
|
|
56
|
-
disabled: disabled,
|
|
57
|
-
readOnly: readOnly,
|
|
58
|
-
value: value,
|
|
59
|
-
name: name,
|
|
60
|
-
type: "checkbox",
|
|
61
|
-
onChange: onChange,
|
|
62
|
-
onBlur: onBlur,
|
|
63
|
-
"data-indeterminate": indeterminate
|
|
64
|
-
}), React.createElement(IndeterminateCheckIcon, null), React.createElement(CheckIcon, null, React.createElement("svg", {
|
|
65
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
66
|
-
viewBox: "0 0 10.9 8.45"
|
|
67
|
-
}, React.createElement("path", {
|
|
68
|
-
d: "m3.68,8.45L0,4.75l1.21-1.21,2.47,2.45L9.7,0l1.21,1.23-7.22,7.22Z",
|
|
69
|
-
fill: "currentColor"
|
|
70
|
-
}))), (typeof label === 'string' && label.length > 0 || typeof label === 'object') && React.createElement(CheckboxVisualLabel, null, label)), typeof descriptionText === 'string' && descriptionText.length > 0 && React.createElement(Description, {
|
|
71
|
-
$error: hasError
|
|
72
|
-
}, descriptionText));
|
|
73
|
-
});
|
|
74
|
-
Checkbox.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
75
|
-
checked: PropTypes.bool,
|
|
76
|
-
defaultChecked: PropTypes.bool,
|
|
77
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
78
|
-
disabled: PropTypes.bool,
|
|
79
|
-
readOnly: PropTypes.bool,
|
|
80
|
-
name: PropTypes.string,
|
|
81
|
-
value: PropTypes.string,
|
|
82
|
-
description: PropTypes.string,
|
|
83
|
-
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
84
|
-
indeterminate: PropTypes.bool,
|
|
85
|
-
muted: PropTypes.bool,
|
|
86
|
-
onChange: PropTypes.func,
|
|
87
|
-
onBlur: PropTypes.func,
|
|
88
|
-
className: PropTypes.string,
|
|
89
|
-
style: PropTypes.object
|
|
90
|
-
} : {};
|
|
91
|
-
Checkbox.defaultProps = {
|
|
92
|
-
disabled: false,
|
|
93
|
-
readOnly: false,
|
|
94
|
-
indeterminate: false
|
|
95
|
-
};
|
|
96
|
-
var Checkbox$1 = Checkbox;
|
|
97
|
-
|
|
98
|
-
export { Checkbox$1 as default };
|