@ntbjs/react-components 1.3.0-rc.8 → 2.0.0-rc.3
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/.eslintrc +7 -8
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
- package/cjs/_virtual/index.js +7 -0
- package/cjs/_virtual/index2.js +7 -0
- package/cjs/_virtual/index3.js +7 -0
- package/cjs/_virtual/index4.js +7 -0
- package/cjs/_virtual/index5.js +7 -0
- package/cjs/_virtual/react-dom.development.js +7 -0
- package/cjs/_virtual/react-dom.production.js +7 -0
- package/cjs/_virtual/react-is.development.js +7 -0
- package/cjs/_virtual/react-is.development2.js +7 -0
- package/cjs/_virtual/react-is.production.min.js +7 -0
- package/cjs/_virtual/react-is.production.min2.js +7 -0
- package/cjs/_virtual/react.development.js +7 -0
- package/cjs/_virtual/react.production.js +7 -0
- package/cjs/components/data/Alert/Alert.js +81 -0
- package/cjs/components/data/Alert/Alert.styled.js +72 -0
- package/cjs/components/data/Alert/data/Alert/index.js +9 -0
- package/cjs/components/data/Badge/Badge.js +93 -0
- package/cjs/components/data/Badge/Badge.styled.js +156 -0
- package/cjs/components/data/Badge/data/Badge/index.js +9 -0
- package/cjs/components/data/Popover/Popover.js +102 -0
- package/cjs/components/data/Popover/Popover.styled.js +159 -0
- package/cjs/components/data/Popover/data/Popover/index.js +9 -0
- package/cjs/components/data/Tab/Tab.js +31 -0
- package/cjs/components/data/Tab/Tab.styled.js +22 -0
- package/cjs/components/data/Tab/data/Tab/index.js +9 -0
- package/cjs/components/data/Tabs/Tabs.js +91 -0
- package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
- package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
- package/cjs/components/data/Tooltip/Tooltip.js +50 -0
- package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
- package/cjs/components/data/data/index.js +21 -0
- package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
- package/cjs/components/inputs/Button/Button.js +188 -0
- package/cjs/components/inputs/Button/Button.styled.js +294 -0
- package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
- package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
- package/cjs/components/inputs/Radio/Radio.js +67 -0
- package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
- package/cjs/components/inputs/Switch/Switch.js +69 -0
- package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
- package/cjs/components/inputs/TextArea/TextArea.js +186 -0
- package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
- package/cjs/components/inputs/TextInput/TextInput.js +147 -0
- package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
- package/cjs/components/inputs/inputs/index.js +33 -0
- package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
- package/cjs/components/layout/layout/index.js +11 -0
- package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
- package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
- package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
- package/cjs/components/widgets/Instructions/Instructions.js +217 -0
- package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
- package/cjs/components/widgets/widgets/index.js +25 -0
- package/cjs/hooks/useEventListner.js +26 -0
- package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/cjs/hooks/useOnClickOutside.js +17 -0
- package/cjs/icons/arrow-back.svg.js +20 -0
- package/cjs/icons/arrow-forward.svg.js +20 -0
- package/cjs/icons/check-rectangle-filled.svg.js +20 -0
- package/cjs/icons/close.svg.js +20 -0
- package/cjs/icons/edit-note.svg.js +20 -0
- package/cjs/icons/expand-more.svg.js +20 -0
- package/cjs/icons/headset.svg.js +20 -0
- package/cjs/icons/layers.svg.js +20 -0
- package/cjs/icons/link.svg.js +20 -0
- package/cjs/icons/play.svg.js +20 -0
- package/cjs/icons/search.svg.js +20 -0
- package/cjs/icons/star-filled.svg.js +20 -0
- package/cjs/icons/star.svg.js +20 -0
- package/cjs/icons/triangle-right.svg.js +20 -0
- package/cjs/icons/verification.svg.js +20 -0
- package/cjs/icons/warning-circle.svg.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +503 -0
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +158 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +66 -0
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +16 -0
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +60 -0
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
- package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
- package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
- package/cjs/node_modules/object-assign/index.js +94 -0
- package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
- package/cjs/node_modules/prop-types/index.js +33 -0
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
- package/cjs/node_modules/prop-types/lib/has.js +7 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/react/cjs/react.development.js +1246 -0
- package/cjs/node_modules/react/cjs/react.production.js +552 -0
- package/cjs/node_modules/react/index.js +19 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
- package/cjs/node_modules/react-dom/index.js +44 -0
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
- package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
- package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/cjs/node_modules/stylis/src/Enum.js +24 -0
- package/cjs/node_modules/stylis/src/Middleware.js +37 -0
- package/cjs/node_modules/stylis/src/Parser.js +201 -0
- package/cjs/node_modules/stylis/src/Serializer.js +43 -0
- package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
- package/cjs/node_modules/stylis/src/Utility.js +134 -0
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +12 -0
- package/{ssr → cjs/ssr/ssr}/index.js +1 -3
- package/cjs/styles/utils/colors.scss.js +11 -0
- package/cjs/utils/dateTime.js +20 -0
- package/cjs/utils/defaultTheme.js +52 -0
- package/doctor-storybook.log +20 -0
- package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
- package/esm/_virtual/index.js +3 -0
- package/esm/_virtual/index2.js +3 -0
- package/esm/_virtual/index3.js +3 -0
- package/esm/_virtual/index4.js +3 -0
- package/esm/_virtual/index5.js +3 -0
- package/esm/_virtual/react-dom.development.js +3 -0
- package/esm/_virtual/react-dom.production.js +3 -0
- package/esm/_virtual/react-is.development.js +3 -0
- package/esm/_virtual/react-is.development2.js +3 -0
- package/esm/_virtual/react-is.production.min.js +3 -0
- package/esm/_virtual/react-is.production.min2.js +3 -0
- package/esm/_virtual/react.development.js +3 -0
- package/esm/_virtual/react.production.js +3 -0
- package/esm/components/data/Alert/Alert.js +77 -0
- package/esm/components/data/Alert/Alert.styled.js +63 -0
- package/esm/components/data/Alert/data/Alert/index.js +1 -0
- package/esm/components/data/Badge/Badge.js +89 -0
- package/esm/components/data/Badge/Badge.styled.js +145 -0
- package/esm/components/data/Badge/data/Badge/index.js +1 -0
- package/esm/components/data/Popover/Popover.js +94 -0
- package/esm/components/data/Popover/Popover.styled.js +150 -0
- package/esm/components/data/Popover/data/Popover/index.js +1 -0
- package/esm/components/data/Tab/Tab.js +27 -0
- package/esm/components/data/Tab/Tab.styled.js +14 -0
- package/esm/components/data/Tab/data/Tab/index.js +1 -0
- package/esm/components/data/Tabs/Tabs.js +87 -0
- package/esm/components/data/Tabs/Tabs.styled.js +85 -0
- package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
- package/esm/components/data/Tooltip/Tooltip.js +46 -0
- package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
- package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
- package/esm/components/data/data/index.js +7 -0
- package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
- package/esm/components/inputs/Button/Button.js +184 -0
- package/esm/components/inputs/Button/Button.styled.js +277 -0
- package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
- package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
- package/esm/components/inputs/Radio/Radio.js +63 -0
- package/esm/components/inputs/Radio/Radio.styled.js +84 -0
- package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
- package/esm/components/inputs/Switch/Switch.js +65 -0
- package/esm/components/inputs/Switch/Switch.styled.js +110 -0
- package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
- package/esm/components/inputs/TextArea/TextArea.js +182 -0
- package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
- package/esm/components/inputs/TextInput/TextInput.js +143 -0
- package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
- package/esm/components/inputs/inputs/index.js +13 -0
- package/esm/components/layout/InputGroup/InputGroup.js +22 -0
- package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
- package/esm/components/layout/layout/index.js +2 -0
- package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
- package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
- package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
- package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
- package/esm/components/widgets/Instructions/Instructions.js +213 -0
- package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
- package/esm/components/widgets/widgets/index.js +9 -0
- package/esm/hooks/useEventListner.js +22 -0
- package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/esm/hooks/useOnClickOutside.js +13 -0
- package/esm/icons/arrow-back.svg.js +16 -0
- package/esm/icons/arrow-forward.svg.js +16 -0
- package/esm/icons/check-rectangle-filled.svg.js +16 -0
- package/esm/icons/close.svg.js +16 -0
- package/esm/icons/edit-note.svg.js +16 -0
- package/esm/icons/expand-more.svg.js +16 -0
- package/esm/icons/headset.svg.js +16 -0
- package/esm/icons/layers.svg.js +16 -0
- package/esm/icons/link.svg.js +16 -0
- package/esm/icons/play.svg.js +16 -0
- package/esm/icons/search.svg.js +16 -0
- package/esm/icons/star-filled.svg.js +16 -0
- package/esm/icons/star.svg.js +16 -0
- package/esm/icons/triangle-right.svg.js +16 -0
- package/esm/icons/verification.svg.js +16 -0
- package/esm/icons/warning-circle.svg.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +499 -0
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +149 -0
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +56 -0
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +12 -0
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +54 -0
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
- package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
- package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
- package/esm/node_modules/object-assign/index.js +90 -0
- package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
- package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +617 -0
- package/esm/node_modules/prop-types/index.js +29 -0
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/esm/node_modules/prop-types/lib/has.js +3 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/react/cjs/react.development.js +1244 -0
- package/esm/node_modules/react/cjs/react.production.js +547 -0
- package/esm/node_modules/react/index.js +15 -0
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
- package/esm/node_modules/react-dom/index.js +42 -0
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
- package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
- package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/esm/node_modules/stylis/src/Enum.js +12 -0
- package/esm/node_modules/stylis/src/Middleware.js +32 -0
- package/esm/node_modules/stylis/src/Parser.js +193 -0
- package/esm/node_modules/stylis/src/Serializer.js +38 -0
- package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
- package/esm/node_modules/stylis/src/Utility.js +117 -0
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
- package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +8 -0
- package/esm/ssr/ssr/index.js +1 -0
- package/esm/styles/utils/colors.scss.js +7 -0
- package/esm/utils/dateTime.js +16 -0
- package/esm/utils/defaultTheme.js +47 -0
- package/icons/arrow-forward.svg +3 -0
- package/icons/index.js +2 -0
- package/migration-storybook.log +392 -0
- package/package.json +59 -21
- package/styles/all.scss +3 -3
- package/styles/config.scss +3 -0
- package/styles/utils/colors.scss +1 -1
- package/styles/utils/theme.scss +2 -0
- package/ActionButton-46735b89.js +0 -61
- package/Alert-13b75102.js +0 -117
- package/AssetGallery-0d503207.js +0 -1923
- package/AssetPreviewTopBar-912c3469.js +0 -99
- package/Badge-757b0a39.js +0 -221
- package/Button-49f82b31.js +0 -264
- package/Checkbox-68dc38a8.js +0 -140
- package/CompactAutocompleteSelect-96137f48.js +0 -451
- package/CompactStarRating-15c1b812.js +0 -339
- package/CompactTextInput-198d0800.js +0 -349
- package/ContextMenu-4ec3d9f3.js +0 -32
- package/ContextMenuItem-ba2b697e.js +0 -110
- package/InputGroup-49fbc423.js +0 -28
- package/Instructions-2babb8a3.js +0 -263
- package/MultiLevelCheckboxSelect-e6e5cb90.js +0 -698
- package/MultiSelect-efd60232.js +0 -377
- package/Popover-569cd272.js +0 -146
- package/Radio-32d0513a.js +0 -86
- package/SectionSeparator-259a22ed.js +0 -37
- package/Switch-4a41585f.js +0 -107
- package/Tab-f499ecbc.js +0 -35
- package/Tabs-116aa951.js +0 -151
- package/TextArea-18fbcc9f.js +0 -375
- package/TextInput-0d109708.js +0 -236
- package/Tooltip-66daf6e3.js +0 -61
- package/VerificationStatusIcon-d5bfb67a.js +0 -121
- package/close-ebf2f3cf.js +0 -41
- package/data/Alert/index.js +0 -11
- package/data/Badge/index.js +0 -10
- package/data/Popover/index.js +0 -15
- package/data/Tab/index.js +0 -10
- package/data/Tabs/index.js +0 -12
- package/data/Tooltip/index.js +0 -12
- package/data/index.js +0 -29
- package/defaultTheme-ea44e34a.js +0 -1422
- package/edit-note-c47d292e.js +0 -41
- package/expand-more-94585605.js +0 -41
- package/inputs/ActionButton/index.js +0 -11
- package/inputs/Button/index.js +0 -18
- package/inputs/Checkbox/index.js +0 -12
- package/inputs/CompactAutocompleteSelect/index.js +0 -29
- package/inputs/CompactStarRating/index.js +0 -22
- package/inputs/CompactTextInput/index.js +0 -24
- package/inputs/MultiSelect/index.js +0 -16
- package/inputs/Radio/index.js +0 -12
- package/inputs/Switch/index.js +0 -12
- package/inputs/TextArea/index.js +0 -25
- package/inputs/TextInput/index.js +0 -14
- package/inputs/index.js +0 -59
- package/layout/InputGroup/index.js +0 -10
- package/layout/SectionSeparator/index.js +0 -10
- package/layout/index.js +0 -14
- package/react-select-creatable.esm-2f23d6c6.js +0 -7709
- package/shift-away-subtle-0bed9a3c.js +0 -9
- package/warning-circle-24522402.js +0 -41
- package/widgets/AssetGallery/index.js +0 -50
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -11
- package/widgets/ContextMenu/ContextMenuItem/index.js +0 -10
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -32
- package/widgets/ContextMenu/index.js +0 -10
- package/widgets/Instructions/index.js +0 -34
- package/widgets/index.js +0 -58
|
@@ -0,0 +1,181 @@
|
|
|
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 { MultiLevelCheckboxSelect as MultiLevelCheckboxSelect$2, PopoverContainer, PopoverHeader, SearchContainer, OptionsContainer, MultiLevelCheckboxSelectInput, Label, Placeholder, Item, ItemLabel, ItemRemoveButton } from './MultiLevelCheckboxSelect.styled.js';
|
|
5
|
+
import { ReactComponent as SvgSearch } from '../../../icons/search.svg.js';
|
|
6
|
+
import { ReactComponent as SvgClose } from '../../../icons/close.svg.js';
|
|
7
|
+
import MultiLevelCheckbox, { NodeType, findChildValues } from '../MultiLevelCheckbox/MultiLevelCheckbox.js';
|
|
8
|
+
import { useEventListener } from '../../../hooks/useEventListner.js';
|
|
9
|
+
import { useOnClickOutside } from '../../../hooks/useOnClickOutside.js';
|
|
10
|
+
import useUpdateEffect from '../../../node_modules/@restart/hooks/esm/useUpdateEffect.js';
|
|
11
|
+
import { isFunction } from 'lodash';
|
|
12
|
+
import Popover from '../../data/Popover/Popover.js';
|
|
13
|
+
import TextInput from '../TextInput/TextInput.js';
|
|
14
|
+
import SectionSeparator from '../../layout/SectionSeparator/SectionSeparator.js';
|
|
15
|
+
import { r as react } from '../../../_virtual/index.js';
|
|
16
|
+
|
|
17
|
+
const _excluded = ["label", "options", "checked", "placeholder", "noResultsText", "onChange", "onParentChange"];
|
|
18
|
+
const MultiLevelCheckboxSelect = React.forwardRef(function MultiLevelCheckboxSelect(_ref, forwardedRef) {
|
|
19
|
+
let {
|
|
20
|
+
label,
|
|
21
|
+
options,
|
|
22
|
+
checked: checkedProp,
|
|
23
|
+
placeholder,
|
|
24
|
+
noResultsText,
|
|
25
|
+
onChange,
|
|
26
|
+
onParentChange
|
|
27
|
+
} = _ref,
|
|
28
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
const inputRef = react.exports.useRef(null);
|
|
30
|
+
const popoverContentRef = react.exports.useRef(null);
|
|
31
|
+
const searchInputRef = react.exports.useRef(null);
|
|
32
|
+
const [searchString, setSearchString] = react.exports.useState('');
|
|
33
|
+
const [open, setOpen] = react.exports.useState(false);
|
|
34
|
+
const handleClickInside = react.exports.useCallback(() => {
|
|
35
|
+
var _searchInputRef$curre;
|
|
36
|
+
setOpen(true);
|
|
37
|
+
(_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0 || _searchInputRef$curre.focus();
|
|
38
|
+
}, []);
|
|
39
|
+
const handleKeyDown = react.exports.useCallback(event => {
|
|
40
|
+
if (!open) return;
|
|
41
|
+
if (event.key === 'Escape') {
|
|
42
|
+
setOpen(false);
|
|
43
|
+
}
|
|
44
|
+
}, [open]);
|
|
45
|
+
useEventListener('focus', handleClickInside, inputRef);
|
|
46
|
+
useEventListener('mousedown', handleClickInside, inputRef);
|
|
47
|
+
useEventListener('keydown', handleKeyDown);
|
|
48
|
+
const handleClickOutside = event => {
|
|
49
|
+
var _popoverContentRef$cu;
|
|
50
|
+
if ((popoverContentRef === null || popoverContentRef === void 0 ? void 0 : popoverContentRef.current) === event.target || popoverContentRef !== null && popoverContentRef !== void 0 && (_popoverContentRef$cu = popoverContentRef.current) !== null && _popoverContentRef$cu !== void 0 && _popoverContentRef$cu.contains(event.target)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
setOpen(false);
|
|
54
|
+
};
|
|
55
|
+
useOnClickOutside(inputRef, handleClickOutside);
|
|
56
|
+
const checked = react.exports.useMemo(() => {
|
|
57
|
+
const checkedParents = [];
|
|
58
|
+
function iterate(nodes) {
|
|
59
|
+
nodes.forEach(node => {
|
|
60
|
+
if (checkedProp.includes(node.value)) {
|
|
61
|
+
return checkedParents.push(node.value);
|
|
62
|
+
}
|
|
63
|
+
if (node.children) {
|
|
64
|
+
iterate(node.children);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
iterate(options);
|
|
69
|
+
return checkedParents.sort();
|
|
70
|
+
}, [JSON.stringify(options), JSON.stringify(checkedProp)]);
|
|
71
|
+
const getLabelByValue = react.exports.useCallback((targetValue, nodes = options) => {
|
|
72
|
+
for (const node of nodes) {
|
|
73
|
+
if (node.value === targetValue) {
|
|
74
|
+
return node.label;
|
|
75
|
+
}
|
|
76
|
+
if (node.children) {
|
|
77
|
+
const result = getLabelByValue(targetValue, node.children);
|
|
78
|
+
if (result) {
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return null;
|
|
84
|
+
}, [options]);
|
|
85
|
+
const removeItem = react.exports.useCallback(value => {
|
|
86
|
+
let node = null;
|
|
87
|
+
function findNodeByValue(options, value) {
|
|
88
|
+
for (let i = 0; i < options.length; i++) {
|
|
89
|
+
if (options[i].value === value) {
|
|
90
|
+
node = options[i];
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
if (options[i].children) {
|
|
94
|
+
findNodeByValue(options[i].children, value);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
findNodeByValue(options, value);
|
|
99
|
+
if (node) {
|
|
100
|
+
const childValues = findChildValues(node);
|
|
101
|
+
const valuesToRemove = [value, ...childValues];
|
|
102
|
+
onChange(checkedProp.filter(value => !valuesToRemove.includes(value)));
|
|
103
|
+
}
|
|
104
|
+
}, [options, checkedProp]);
|
|
105
|
+
useUpdateEffect(() => {
|
|
106
|
+
if (isFunction(onParentChange)) {
|
|
107
|
+
onParentChange(checked);
|
|
108
|
+
}
|
|
109
|
+
}, [checked]);
|
|
110
|
+
return React.createElement(MultiLevelCheckboxSelect$2, _extends({
|
|
111
|
+
ref: forwardedRef
|
|
112
|
+
}, props), React.createElement(Popover, {
|
|
113
|
+
visible: open,
|
|
114
|
+
arrow: false,
|
|
115
|
+
placement: 'bottom',
|
|
116
|
+
offset: [0, 6],
|
|
117
|
+
modifiers: [{
|
|
118
|
+
name: 'sameWidth',
|
|
119
|
+
enabled: true,
|
|
120
|
+
phase: 'beforeWrite',
|
|
121
|
+
requires: ['computeStyles'],
|
|
122
|
+
fn: ({
|
|
123
|
+
state
|
|
124
|
+
}) => {
|
|
125
|
+
state.styles.popper.width = `${state.rects.reference.width}px`;
|
|
126
|
+
},
|
|
127
|
+
effect: ({
|
|
128
|
+
state
|
|
129
|
+
}) => {
|
|
130
|
+
state.elements.popper.style.width = `${state.elements.reference.offsetWidth}px`;
|
|
131
|
+
}
|
|
132
|
+
}],
|
|
133
|
+
content: React.createElement(PopoverContainer, {
|
|
134
|
+
ref: popoverContentRef
|
|
135
|
+
}, React.createElement(PopoverHeader, null, React.createElement(SearchContainer, null, React.createElement(TextInput, {
|
|
136
|
+
ref: searchInputRef,
|
|
137
|
+
onBlur: e => {
|
|
138
|
+
if (open) {
|
|
139
|
+
e.target.focus();
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
icon: React.createElement(SvgSearch, null),
|
|
143
|
+
value: searchString,
|
|
144
|
+
onChange: e => setSearchString(e.target.value)
|
|
145
|
+
})), React.createElement(SectionSeparator, null)), React.createElement(OptionsContainer, null, React.createElement(MultiLevelCheckbox, {
|
|
146
|
+
options: options,
|
|
147
|
+
checked: checkedProp,
|
|
148
|
+
search: searchString,
|
|
149
|
+
noResultsText: noResultsText,
|
|
150
|
+
onChange: onChange
|
|
151
|
+
})))
|
|
152
|
+
}, React.createElement(MultiLevelCheckboxSelectInput, {
|
|
153
|
+
tabIndex: "0",
|
|
154
|
+
ref: inputRef
|
|
155
|
+
}, label && React.createElement(Label, null, label), checked.length === 0 && React.createElement(Placeholder, null, placeholder), checked.map(option => React.createElement(Item, {
|
|
156
|
+
key: option
|
|
157
|
+
}, React.createElement(ItemLabel, null, getLabelByValue(option)), React.createElement(ItemRemoveButton, {
|
|
158
|
+
onClick: () => {
|
|
159
|
+
removeItem(option);
|
|
160
|
+
}
|
|
161
|
+
}, React.createElement(SvgClose, null)))))));
|
|
162
|
+
});
|
|
163
|
+
MultiLevelCheckboxSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
164
|
+
label: PropTypes.string,
|
|
165
|
+
placeholder: PropTypes.string,
|
|
166
|
+
options: PropTypes.arrayOf(PropTypes.shape({
|
|
167
|
+
label: PropTypes.string.isRequired,
|
|
168
|
+
value: PropTypes.any.isRequired,
|
|
169
|
+
children: PropTypes.arrayOf(NodeType)
|
|
170
|
+
})).isRequired,
|
|
171
|
+
checked: PropTypes.array.isRequired,
|
|
172
|
+
noResultsText: PropTypes.string,
|
|
173
|
+
onChange: PropTypes.func.isRequired,
|
|
174
|
+
onParentChange: PropTypes.func
|
|
175
|
+
} : {};
|
|
176
|
+
MultiLevelCheckboxSelect.defaultProps = {
|
|
177
|
+
checked: []
|
|
178
|
+
};
|
|
179
|
+
var MultiLevelCheckboxSelect$1 = MultiLevelCheckboxSelect;
|
|
180
|
+
|
|
181
|
+
export { MultiLevelCheckboxSelect$1 as default };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
+
|
|
4
|
+
let _ = t => t,
|
|
5
|
+
_t,
|
|
6
|
+
_t2,
|
|
7
|
+
_t3,
|
|
8
|
+
_t4,
|
|
9
|
+
_t5,
|
|
10
|
+
_t6,
|
|
11
|
+
_t7,
|
|
12
|
+
_t8,
|
|
13
|
+
_t9,
|
|
14
|
+
_t10,
|
|
15
|
+
_t11;
|
|
16
|
+
const MultiLevelCheckboxSelect = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
17
|
+
font-family: ${0};
|
|
18
|
+
`), props => props.theme.primaryFontFamily);
|
|
19
|
+
const MultiLevelCheckboxSelectInput = styled.div.attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
20
|
+
position: relative;
|
|
21
|
+
border: 1px solid;
|
|
22
|
+
${0}
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
gap: 4px;
|
|
26
|
+
min-height: 44px;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
padding: 8px 6px;
|
|
29
|
+
border-radius: 3px;
|
|
30
|
+
transition: border-color 350ms;
|
|
31
|
+
|
|
32
|
+
&:focus-within {
|
|
33
|
+
${0}
|
|
34
|
+
}
|
|
35
|
+
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')), props => props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-600'), 1));
|
|
36
|
+
const Item = styled.div.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
background: #272727;
|
|
40
|
+
color: #f7f8f9;
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
height: 26px;
|
|
43
|
+
border-radius: 3px;
|
|
44
|
+
`));
|
|
45
|
+
const ItemLabel = styled.div.attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
46
|
+
padding: 0 5px 0 8px;
|
|
47
|
+
`));
|
|
48
|
+
const ItemRemoveButton = styled.button.attrs(applyDefaultTheme)(_t5 || (_t5 = _`
|
|
49
|
+
color: inherit;
|
|
50
|
+
border: none;
|
|
51
|
+
background: none;
|
|
52
|
+
-webkit-appearance: none;
|
|
53
|
+
height: 100%;
|
|
54
|
+
border-top-right-radius: 3px;
|
|
55
|
+
border-bottom-right-radius: 3px;
|
|
56
|
+
padding: 0 7px;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
background: ${0};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& > svg {
|
|
64
|
+
width: 8px;
|
|
65
|
+
display: block;
|
|
66
|
+
}
|
|
67
|
+
`), props => props.theme.getColor('red-500'));
|
|
68
|
+
const Label = styled.div.attrs(applyDefaultTheme)(_t6 || (_t6 = _`
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: -8px;
|
|
71
|
+
left: 7px;
|
|
72
|
+
line-height: 1.2;
|
|
73
|
+
font-size: 0.75rem;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
padding: 0 3px;
|
|
76
|
+
//padding: 0 0 4px;
|
|
77
|
+
letter-spacing: 0.03em;
|
|
78
|
+
${0}
|
|
79
|
+
${0}
|
|
80
|
+
`), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600')), 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%)`));
|
|
81
|
+
const Placeholder = styled.div.attrs(applyDefaultTheme)(_t7 || (_t7 = _`
|
|
82
|
+
font-size: 0.875rem;
|
|
83
|
+
line-height: 26px;
|
|
84
|
+
padding-left: 4px;
|
|
85
|
+
opacity: 0.4;
|
|
86
|
+
`));
|
|
87
|
+
const PopoverContainer = styled.div.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
|
|
88
|
+
max-height: inherit;
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
`));
|
|
92
|
+
const PopoverHeader = styled.div.attrs(applyDefaultTheme)(_t9 || (_t9 = _`
|
|
93
|
+
${0}
|
|
94
|
+
`), props => props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')));
|
|
95
|
+
const SearchContainer = styled.div.attrs(applyDefaultTheme)(_t10 || (_t10 = _`
|
|
96
|
+
padding: 12px 8px;
|
|
97
|
+
`));
|
|
98
|
+
const OptionsContainer = styled.div.attrs(applyDefaultTheme)(_t11 || (_t11 = _`
|
|
99
|
+
padding: 12px 8px;
|
|
100
|
+
overflow: auto;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
`));
|
|
103
|
+
|
|
104
|
+
export { Item, ItemLabel, ItemRemoveButton, Label, MultiLevelCheckboxSelect, MultiLevelCheckboxSelectInput, OptionsContainer, Placeholder, PopoverContainer, PopoverHeader, SearchContainer };
|
|
@@ -0,0 +1,247 @@
|
|
|
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 { nanoid } from 'nanoid';
|
|
5
|
+
import { MultiSelectWrapper, AsyncCreatableMultiSelect, AsyncMultiSelect, CreatableMultiSelect, MultiSelect as MultiSelect$2, ShowMoreWrapper, ShowMoreOverlay, ShowMoreText, ErrorMessage, MultiValueRemove as MultiValueRemove$1, DropdownMenu, Option as Option$1, SelectedOption as SelectedOption$1, DropdownOptionDeleteIcon, Control, Label, ValueContainer, MultiValueWrapper, MultiValue, Input } from './MultiSelect.styled.js';
|
|
6
|
+
import { ReactComponent as SvgClose } from '../../../icons/close.svg.js';
|
|
7
|
+
import { r as react } from '../../../_virtual/index.js';
|
|
8
|
+
|
|
9
|
+
const _excluded = ["label", "selectedOptions", "availableOptions", "loadOptions", "loadingMessageFunc", "onUpdateCallback", "editText", "createNewOptionMessageFunc", "noOptionsMessageFunc", "onMultiValueClick", "showMore", "showMoreText", "displayTotalOnShowMore", "creatable", "readOnly", "hidden", "disabled", "error", "warning"];
|
|
10
|
+
const MultiSelect = React.forwardRef(function MultiSelect(_ref, forwardedRef) {
|
|
11
|
+
let {
|
|
12
|
+
label,
|
|
13
|
+
selectedOptions,
|
|
14
|
+
availableOptions,
|
|
15
|
+
loadOptions,
|
|
16
|
+
loadingMessageFunc,
|
|
17
|
+
onUpdateCallback,
|
|
18
|
+
editText,
|
|
19
|
+
createNewOptionMessageFunc,
|
|
20
|
+
noOptionsMessageFunc,
|
|
21
|
+
onMultiValueClick,
|
|
22
|
+
showMore,
|
|
23
|
+
showMoreText,
|
|
24
|
+
displayTotalOnShowMore,
|
|
25
|
+
creatable,
|
|
26
|
+
readOnly,
|
|
27
|
+
hidden,
|
|
28
|
+
disabled,
|
|
29
|
+
error,
|
|
30
|
+
warning
|
|
31
|
+
} = _ref,
|
|
32
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
const [uniqueId] = react.exports.useState(nanoid());
|
|
34
|
+
const [selected, setSelected] = react.exports.useState(selectedOptions);
|
|
35
|
+
const [focused, setFocused] = react.exports.useState(false);
|
|
36
|
+
const [displayShowMore, setDisplayShowMore] = react.exports.useState(error || warning ? false : showMore);
|
|
37
|
+
const [cacheUnique, setCacheUnique] = react.exports.useState(0);
|
|
38
|
+
react.exports.useEffect(() => {
|
|
39
|
+
setSelected(selectedOptions);
|
|
40
|
+
}, [selectedOptions]);
|
|
41
|
+
const handleShowMoreClick = () => {
|
|
42
|
+
setDisplayShowMore(false);
|
|
43
|
+
};
|
|
44
|
+
const Control$1 = react.exports.useMemo(() => {
|
|
45
|
+
const ControlWrapper = innerProps => {
|
|
46
|
+
return React.createElement(Control, _extends({
|
|
47
|
+
className: "multi-select-control",
|
|
48
|
+
readOnly: readOnly
|
|
49
|
+
}, innerProps));
|
|
50
|
+
};
|
|
51
|
+
ControlWrapper.displayName = 'ControlWrapper';
|
|
52
|
+
return ControlWrapper;
|
|
53
|
+
}, []);
|
|
54
|
+
const ValueContainer$1 = react.exports.useMemo(() => {
|
|
55
|
+
const ValueContainerWrapper = innerProps => {
|
|
56
|
+
return React.createElement(React.Fragment, null, label && React.createElement(Label, {
|
|
57
|
+
htmlFor: uniqueId
|
|
58
|
+
}, label), React.createElement(ValueContainer, _extends({
|
|
59
|
+
showMore: displayShowMore,
|
|
60
|
+
error: error,
|
|
61
|
+
warning: warning,
|
|
62
|
+
className: "multi-select-values-container"
|
|
63
|
+
}, innerProps)));
|
|
64
|
+
};
|
|
65
|
+
ValueContainerWrapper.displayName = 'ValueContainerWrapper';
|
|
66
|
+
return ValueContainerWrapper;
|
|
67
|
+
}, [displayShowMore, error, warning]);
|
|
68
|
+
const MultiValue$1 = innerProps => {
|
|
69
|
+
return React.createElement(MultiValueWrapper, {
|
|
70
|
+
className: "multi-value-wrapper",
|
|
71
|
+
onMouseDown: e => {
|
|
72
|
+
e.stopPropagation();
|
|
73
|
+
if (onMultiValueClick && innerProps.data && !(e.target.role === 'button' || e.target instanceof SVGElement)) {
|
|
74
|
+
onMultiValueClick(innerProps.data);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, React.createElement(MultiValue, _extends({
|
|
78
|
+
className: "multi-value",
|
|
79
|
+
readOnly: readOnly
|
|
80
|
+
}, innerProps)));
|
|
81
|
+
};
|
|
82
|
+
const Input$1 = react.exports.useMemo(() => {
|
|
83
|
+
const InputWrapper = innerProps => {
|
|
84
|
+
return React.createElement(Input, _extends({
|
|
85
|
+
className: "multi-select-input",
|
|
86
|
+
$focused: focused,
|
|
87
|
+
edittext: editText
|
|
88
|
+
}, innerProps, {
|
|
89
|
+
isDisabled: readOnly || disabled
|
|
90
|
+
}));
|
|
91
|
+
};
|
|
92
|
+
InputWrapper.displayName = 'InputWrapper';
|
|
93
|
+
return InputWrapper;
|
|
94
|
+
}, [focused]);
|
|
95
|
+
const innerComponents = {
|
|
96
|
+
DropdownIndicator: null,
|
|
97
|
+
Control: Control$1,
|
|
98
|
+
MultiValue: MultiValue$1,
|
|
99
|
+
MultiValueRemove: innerProps => {
|
|
100
|
+
return readOnly || disabled ? false : MultiValueRemove(innerProps);
|
|
101
|
+
},
|
|
102
|
+
ValueContainer: ValueContainer$1,
|
|
103
|
+
Input: Input$1,
|
|
104
|
+
Menu,
|
|
105
|
+
Option: innerProps => {
|
|
106
|
+
return innerProps.isSelected ? SelectedOption(innerProps) : Option(innerProps);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const sharedSelectProps = {
|
|
110
|
+
ref: forwardedRef,
|
|
111
|
+
value: selected,
|
|
112
|
+
options: loadOptions ? undefined : availableOptions,
|
|
113
|
+
loadOptions: loadOptions,
|
|
114
|
+
loadingMessage: loadingMessageFunc,
|
|
115
|
+
editText: editText,
|
|
116
|
+
formatCreateLabel: createNewOptionMessageFunc,
|
|
117
|
+
showMore: displayShowMore,
|
|
118
|
+
readOnly: readOnly,
|
|
119
|
+
isDisabled: disabled,
|
|
120
|
+
components: innerComponents,
|
|
121
|
+
focused: focused,
|
|
122
|
+
isMulti: true,
|
|
123
|
+
isClearable: false,
|
|
124
|
+
placeholder: null,
|
|
125
|
+
closeMenuOnSelect: false,
|
|
126
|
+
hideSelectedOptions: false,
|
|
127
|
+
cacheUniqs: loadOptions ? [cacheUnique] : undefined,
|
|
128
|
+
onFocus: () => setFocused(true),
|
|
129
|
+
onBlur: () => setFocused(false),
|
|
130
|
+
noOptionsMessage: input => {
|
|
131
|
+
return noOptionsMessageFunc(input.inputValue);
|
|
132
|
+
},
|
|
133
|
+
onChange: (selectedOptions, actionMeta) => {
|
|
134
|
+
switch (actionMeta.action) {
|
|
135
|
+
case 'create-option':
|
|
136
|
+
if (onUpdateCallback) {
|
|
137
|
+
onUpdateCallback(actionMeta.action, actionMeta.option);
|
|
138
|
+
}
|
|
139
|
+
if (loadOptions) {
|
|
140
|
+
setCacheUnique(cacheUnique + 1);
|
|
141
|
+
}
|
|
142
|
+
setSelected(selectedOptions);
|
|
143
|
+
break;
|
|
144
|
+
case 'select-option':
|
|
145
|
+
if (onUpdateCallback) {
|
|
146
|
+
onUpdateCallback(actionMeta.action, actionMeta.option);
|
|
147
|
+
}
|
|
148
|
+
setSelected(selectedOptions);
|
|
149
|
+
break;
|
|
150
|
+
case 'remove-value':
|
|
151
|
+
if (onUpdateCallback) {
|
|
152
|
+
onUpdateCallback(actionMeta.action, actionMeta.removedValue);
|
|
153
|
+
}
|
|
154
|
+
setSelected(selectedOptions);
|
|
155
|
+
break;
|
|
156
|
+
case 'pop-value':
|
|
157
|
+
if (onUpdateCallback) {
|
|
158
|
+
onUpdateCallback(actionMeta.action, actionMeta.removedValue);
|
|
159
|
+
}
|
|
160
|
+
setSelected(selectedOptions);
|
|
161
|
+
break;
|
|
162
|
+
case 'deselect-option':
|
|
163
|
+
if (onUpdateCallback) {
|
|
164
|
+
onUpdateCallback(actionMeta.action, actionMeta.option);
|
|
165
|
+
}
|
|
166
|
+
setSelected(selectedOptions);
|
|
167
|
+
break;
|
|
168
|
+
case 'clear':
|
|
169
|
+
break;
|
|
170
|
+
default:
|
|
171
|
+
if (onUpdateCallback) {
|
|
172
|
+
onUpdateCallback(actionMeta.action, actionMeta.option);
|
|
173
|
+
}
|
|
174
|
+
setSelected(selectedOptions);
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
if (hidden) return null;
|
|
180
|
+
return React.createElement(MultiSelectWrapper, {
|
|
181
|
+
error: error,
|
|
182
|
+
warning: warning
|
|
183
|
+
}, loadOptions ? creatable ? React.createElement(AsyncCreatableMultiSelect, _extends({}, sharedSelectProps, props)) : React.createElement(AsyncMultiSelect, _extends({}, sharedSelectProps, props)) : creatable ? React.createElement(CreatableMultiSelect, _extends({}, sharedSelectProps, props)) : React.createElement(MultiSelect$2, _extends({}, sharedSelectProps, props)), displayShowMore && !(error || warning) && React.createElement(ShowMoreWrapper, {
|
|
184
|
+
onClick: handleShowMoreClick
|
|
185
|
+
}, React.createElement(ShowMoreOverlay, null), React.createElement(ShowMoreText, null, showMoreText, " ", displayTotalOnShowMore && '(' + selected.length + ')')), (typeof error === 'string' || typeof warning === 'string') && React.createElement(ErrorMessage, {
|
|
186
|
+
error: error,
|
|
187
|
+
warning: warning
|
|
188
|
+
}, error ? error : warning));
|
|
189
|
+
});
|
|
190
|
+
MultiSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
191
|
+
label: PropTypes.string,
|
|
192
|
+
availableOptions: PropTypes.arrayOf(PropTypes.object),
|
|
193
|
+
selectedOptions: PropTypes.arrayOf(PropTypes.object),
|
|
194
|
+
loadOptions: PropTypes.func,
|
|
195
|
+
loadingMessageFunc: PropTypes.func,
|
|
196
|
+
onUpdateCallback: PropTypes.func,
|
|
197
|
+
editText: PropTypes.string.isRequired,
|
|
198
|
+
creatable: PropTypes.bool,
|
|
199
|
+
createNewOptionMessageFunc: PropTypes.func,
|
|
200
|
+
noOptionsMessageFunc: PropTypes.func,
|
|
201
|
+
onMultiValueClick: PropTypes.func,
|
|
202
|
+
showMore: PropTypes.bool,
|
|
203
|
+
showMoreText: PropTypes.string,
|
|
204
|
+
displayTotalOnShowMore: PropTypes.bool,
|
|
205
|
+
readOnly: PropTypes.bool,
|
|
206
|
+
hidden: PropTypes.bool,
|
|
207
|
+
disabled: PropTypes.bool,
|
|
208
|
+
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
209
|
+
warning: PropTypes.oneOfType([PropTypes.bool, PropTypes.string])
|
|
210
|
+
} : {};
|
|
211
|
+
MultiSelect.defaultProps = {
|
|
212
|
+
noOptionsMessageFunc: inputValue => {
|
|
213
|
+
if (inputValue) {
|
|
214
|
+
return `No matches for "${inputValue}"`;
|
|
215
|
+
} else {
|
|
216
|
+
return 'No available options';
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
showMore: false,
|
|
220
|
+
displayTotalOnShowMore: true,
|
|
221
|
+
readOnly: false,
|
|
222
|
+
disabled: false,
|
|
223
|
+
creatable: false,
|
|
224
|
+
error: false,
|
|
225
|
+
warning: false,
|
|
226
|
+
showMoreText: 'Show more',
|
|
227
|
+
hidden: false
|
|
228
|
+
};
|
|
229
|
+
const MultiValueRemove = innerProps => {
|
|
230
|
+
return React.createElement(MultiValueRemove$1, innerProps, React.createElement(SvgClose, {
|
|
231
|
+
className: "multi-value-remove-icon"
|
|
232
|
+
}));
|
|
233
|
+
};
|
|
234
|
+
const Menu = innerProps => {
|
|
235
|
+
return React.createElement(DropdownMenu, innerProps);
|
|
236
|
+
};
|
|
237
|
+
const Option = innerProps => {
|
|
238
|
+
return React.createElement(Option$1, _extends({
|
|
239
|
+
className: "multi-select-dropdown-item"
|
|
240
|
+
}, innerProps));
|
|
241
|
+
};
|
|
242
|
+
const SelectedOption = innerProps => {
|
|
243
|
+
return React.createElement(SelectedOption$1, innerProps, innerProps.label, React.createElement(DropdownOptionDeleteIcon, null));
|
|
244
|
+
};
|
|
245
|
+
var MultiSelect$1 = MultiSelect;
|
|
246
|
+
|
|
247
|
+
export { MultiSelect$1 as default };
|