@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ActionButton-4db754c3.js +85 -0
- package/build/Alert-e6847a22.js +131 -0
- package/build/Badge-d93586a9.js +214 -0
- package/build/Button-179a2fe4.js +442 -0
- package/build/Checkbox-4a5fd716.js +213 -0
- package/build/CompactAutocompleteSelect-52c49513.js +546 -0
- package/build/CompactStarRating-9af2f427.js +411 -0
- package/build/CompactTextInput-42ca5d42.js +516 -0
- package/build/InputGroup-1294d190.js +23 -0
- package/build/MultiLevelCheckboxSelect-d8044c88.js +604 -0
- package/build/MultiSelect-9f497e62.js +461 -0
- package/build/Popover-20050b91.js +232 -0
- package/build/Radio-73ca3ae2.js +134 -0
- package/build/SectionSeparator-f47760a2.js +31 -0
- package/build/Switch-ecf3122b.js +160 -0
- package/build/Tab-04d435c3.js +32 -0
- package/build/Tabs-74d1ea8a.js +159 -0
- package/build/TextArea-1e5b9201.js +611 -0
- package/build/TextInput-fab35842.js +364 -0
- package/build/Tooltip-c1d1199e.js +65 -0
- package/build/VerificationStatusIcon-49cb1c1b.js +95 -0
- package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-c245b26a.js} +1 -1
- package/{esm/icons/arrow-forward.svg.js → build/arrow-forward-ad12c5f3.js} +4 -5
- package/{esm/icons/close.svg.js → build/close-a5d37608.js} +4 -5
- package/build/data/Alert/index.js +6 -0
- package/build/data/Badge/index.js +5 -0
- package/build/data/Popover/index.js +10 -0
- package/build/data/Tab/index.js +5 -0
- package/build/data/Tabs/index.js +7 -0
- package/build/data/Tooltip/index.js +7 -0
- package/build/data/index.js +16 -0
- package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-1bcc2541.js} +578 -17
- package/{esm/icons/edit-note.svg.js → build/edit-note-283a0e15.js} +4 -5
- package/{esm/icons/expand-more.svg.js → build/expand-more-c5523c46.js} +4 -5
- package/build/icons/add-circle.svg +3 -0
- package/build/icons/add.svg +3 -0
- package/build/icons/album.svg +3 -0
- package/build/icons/arrow-back.svg +4 -0
- package/build/icons/arrow-drop-down.svg +4 -0
- package/build/icons/arrow-forward.svg +3 -0
- package/build/icons/audio.svg +3 -0
- package/build/icons/bell.svg +3 -0
- package/build/icons/check-circle-filled.svg +3 -0
- package/build/icons/check-rectangle-filled.svg +3 -0
- package/build/icons/check.svg +3 -0
- package/build/icons/clear-circle-filled.svg +14 -0
- package/build/icons/close.svg +4 -0
- package/build/icons/corporate.svg +3 -0
- package/build/icons/delete-context-menu.svg +4 -0
- package/build/icons/delete.svg +3 -0
- package/build/icons/design-services.svg +4 -0
- package/build/icons/download.svg +3 -0
- package/build/icons/edit-note.svg +4 -0
- package/build/icons/edit.svg +3 -0
- package/build/icons/expand-more.svg +4 -0
- package/build/icons/file.svg +3 -0
- package/build/icons/ftp.svg +3 -0
- package/build/icons/gear.svg +3 -0
- package/build/icons/headset.svg +1 -0
- package/build/icons/index.js +79 -0
- package/build/icons/layers.svg +3 -0
- package/build/icons/library-add.svg +3 -0
- package/build/icons/link.svg +4 -0
- package/build/icons/pdf.svg +3 -0
- package/build/icons/play.svg +3 -0
- package/build/icons/remove-circle.svg +3 -0
- package/build/icons/search.svg +3 -0
- package/build/icons/share.svg +3 -0
- package/build/icons/shopping_cart_add.svg +3 -0
- package/build/icons/star-filled.svg +3 -0
- package/build/icons/star.svg +3 -0
- package/build/icons/triangle-right.svg +4 -0
- package/build/icons/verification.svg +3 -0
- package/build/icons/warning-circle.svg +3 -0
- package/build/icons/warning-triangle.svg +3 -0
- package/build/inputs/ActionButton/index.js +6 -0
- package/build/inputs/Button/index.js +13 -0
- package/build/inputs/Checkbox/index.js +6 -0
- package/build/inputs/CompactAutocompleteSelect/index.js +23 -0
- package/build/inputs/CompactStarRating/index.js +17 -0
- package/build/inputs/CompactTextInput/index.js +19 -0
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +26 -0
- package/build/inputs/MultiSelect/index.js +10 -0
- package/build/inputs/Radio/index.js +7 -0
- package/build/inputs/Switch/index.js +6 -0
- package/build/inputs/TextArea/index.js +20 -0
- package/build/inputs/TextInput/index.js +9 -0
- package/build/inputs/index.js +40 -0
- package/build/layout/InputGroup/index.js +5 -0
- package/build/layout/SectionSeparator/index.js +5 -0
- package/build/layout/index.js +6 -0
- package/build/shift-away-subtle-0dd94a03.js +7 -0
- package/build/styles/all.scss +3 -0
- package/build/styles/config.scss +38 -0
- package/{styles/utils/.colors.scss → build/styles/utils/colors.scss} +1 -1
- package/build/styles/utils/theme.scss +33 -0
- package/{esm/icons/warning-circle.svg.js → build/warning-circle-24f3efcd.js} +4 -5
- package/build/widgets/AssetGallery/AssetGallery.js +2356 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +127 -0
- package/build/widgets/ContextMenu/ContextMenu.js +26 -0
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +127 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +37 -0
- package/build/widgets/InfoCard/InfoCard.js +125 -0
- package/build/widgets/Instructions/Instructions.js +255 -0
- package/build/widgets/ProgressBar/ProgressBar.js +210 -0
- package/package.json +49 -56
- package/styles/all.scss +3 -3
- package/styles/config.scss +38 -0
- package/styles/utils/colors.scss +15 -0
- package/styles/utils/theme.scss +0 -2
- package/.eslintrc +0 -19
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
- package/cjs/_virtual/index.js +0 -7
- package/cjs/_virtual/index2.js +0 -7
- package/cjs/_virtual/index3.js +0 -7
- package/cjs/_virtual/index4.js +0 -7
- package/cjs/_virtual/index5.js +0 -7
- package/cjs/_virtual/react-dom.development.js +0 -7
- package/cjs/_virtual/react-dom.production.js +0 -7
- package/cjs/_virtual/react-is.development.js +0 -7
- package/cjs/_virtual/react-is.development2.js +0 -7
- package/cjs/_virtual/react-is.production.min.js +0 -7
- package/cjs/_virtual/react-is.production.min2.js +0 -7
- package/cjs/_virtual/react.development.js +0 -7
- package/cjs/_virtual/react.production.js +0 -7
- package/cjs/components/data/Alert/Alert.js +0 -79
- package/cjs/components/data/Alert/Alert.styled.js +0 -79
- package/cjs/components/data/Alert/data/Alert/index.js +0 -9
- package/cjs/components/data/Badge/Badge.js +0 -93
- package/cjs/components/data/Badge/Badge.styled.js +0 -167
- package/cjs/components/data/Badge/data/Badge/index.js +0 -9
- package/cjs/components/data/Popover/Popover.js +0 -104
- package/cjs/components/data/Popover/Popover.styled.js +0 -159
- package/cjs/components/data/Popover/data/Popover/index.js +0 -9
- package/cjs/components/data/Tab/Tab.js +0 -31
- package/cjs/components/data/Tab/Tab.styled.js +0 -27
- package/cjs/components/data/Tab/data/Tab/index.js +0 -9
- package/cjs/components/data/Tabs/Tabs.js +0 -101
- package/cjs/components/data/Tabs/Tabs.styled.js +0 -110
- package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
- package/cjs/components/data/Tooltip/Tooltip.js +0 -52
- package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -88
- package/cjs/components/data/data/index.js +0 -21
- package/cjs/components/inputs/ActionButton/ActionButton.js +0 -44
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -75
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
- package/cjs/components/inputs/Button/Button.js +0 -195
- package/cjs/components/inputs/Button/Button.styled.js +0 -340
- package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
- package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -160
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -363
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -177
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -269
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -406
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -106
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -147
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -208
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -275
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
- package/cjs/components/inputs/Radio/Radio.js +0 -67
- package/cjs/components/inputs/Radio/Radio.styled.js +0 -100
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
- package/cjs/components/inputs/Switch/Switch.js +0 -69
- package/cjs/components/inputs/Switch/Switch.styled.js +0 -138
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
- package/cjs/components/inputs/TextArea/TextArea.js +0 -176
- package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -530
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
- package/cjs/components/inputs/TextInput/TextInput.js +0 -146
- package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -289
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
- package/cjs/components/inputs/inputs/index.js +0 -33
- package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -23
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -28
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
- package/cjs/components/layout/layout/index.js +0 -11
- package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -69
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -29
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -106
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -395
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -52
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -405
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -385
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
- package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -107
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -29
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -24
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -102
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -35
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
- package/cjs/components/widgets/InfoCard/InfoCard.js +0 -47
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -137
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -79
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -210
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -93
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -169
- package/cjs/components/widgets/widgets/index.js +0 -23
- package/cjs/hooks/useEventListner.js +0 -26
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
- package/cjs/hooks/useOnClickOutside.js +0 -17
- package/cjs/icons/arrow-back.svg.js +0 -20
- package/cjs/icons/arrow-forward.svg.js +0 -20
- package/cjs/icons/check-rectangle-filled.svg.js +0 -20
- package/cjs/icons/close.svg.js +0 -20
- package/cjs/icons/edit-note.svg.js +0 -20
- package/cjs/icons/expand-more.svg.js +0 -20
- package/cjs/icons/headset.svg.js +0 -20
- package/cjs/icons/layers.svg.js +0 -20
- package/cjs/icons/link.svg.js +0 -20
- package/cjs/icons/play.svg.js +0 -20
- package/cjs/icons/search.svg.js +0 -20
- package/cjs/icons/star-filled.svg.js +0 -20
- package/cjs/icons/star.svg.js +0 -20
- package/cjs/icons/triangle-right.svg.js +0 -20
- package/cjs/icons/verification.svg.js +0 -20
- package/cjs/icons/warning-circle.svg.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -915
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -130
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -166
- package/cjs/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -43
- package/cjs/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -39
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
- package/cjs/node_modules/object-assign/index.js +0 -94
- package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
- package/cjs/node_modules/prop-types/index.js +0 -33
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
- package/cjs/node_modules/prop-types/lib/has.js +0 -7
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/react/cjs/react.development.js +0 -1289
- package/cjs/node_modules/react/cjs/react.production.js +0 -548
- package/cjs/node_modules/react/index.js +0 -19
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
- package/cjs/node_modules/react-dom/index.js +0 -44
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
- package/cjs/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2659
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
- package/cjs/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -101
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
- package/cjs/node_modules/stylis/src/Enum.js +0 -24
- package/cjs/node_modules/stylis/src/Middleware.js +0 -37
- package/cjs/node_modules/stylis/src/Parser.js +0 -201
- package/cjs/node_modules/stylis/src/Serializer.js +0 -43
- package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
- package/cjs/node_modules/stylis/src/Utility.js +0 -134
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -13
- package/cjs/ssr/ssr/index.js +0 -12
- package/cjs/styles/utils/colors-export.js +0 -41
- package/cjs/utils/dateTime.js +0 -20
- package/cjs/utils/defaultTheme.js +0 -75
- package/doctor-storybook.log +0 -20
- package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/index2.js +0 -3
- package/esm/_virtual/index3.js +0 -3
- package/esm/_virtual/index4.js +0 -3
- package/esm/_virtual/index5.js +0 -3
- package/esm/_virtual/react-dom.development.js +0 -3
- package/esm/_virtual/react-dom.production.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.development2.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-is.production.min2.js +0 -3
- package/esm/_virtual/react.development.js +0 -3
- package/esm/_virtual/react.production.js +0 -3
- package/esm/components/data/Alert/Alert.js +0 -75
- package/esm/components/data/Alert/Alert.styled.js +0 -70
- package/esm/components/data/Alert/data/Alert/index.js +0 -1
- package/esm/components/data/Badge/Badge.js +0 -89
- package/esm/components/data/Badge/Badge.styled.js +0 -156
- package/esm/components/data/Badge/data/Badge/index.js +0 -1
- package/esm/components/data/Popover/Popover.js +0 -96
- package/esm/components/data/Popover/Popover.styled.js +0 -150
- package/esm/components/data/Popover/data/Popover/index.js +0 -1
- package/esm/components/data/Tab/Tab.js +0 -27
- package/esm/components/data/Tab/Tab.styled.js +0 -19
- package/esm/components/data/Tab/data/Tab/index.js +0 -1
- package/esm/components/data/Tabs/Tabs.js +0 -97
- package/esm/components/data/Tabs/Tabs.styled.js +0 -98
- package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
- package/esm/components/data/Tooltip/Tooltip.js +0 -48
- package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
- package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -78
- package/esm/components/data/data/index.js +0 -7
- package/esm/components/inputs/ActionButton/ActionButton.js +0 -40
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -67
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
- package/esm/components/inputs/Button/Button.js +0 -191
- package/esm/components/inputs/Button/Button.styled.js +0 -323
- package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
- package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -147
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -335
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -173
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -256
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -389
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -92
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -129
- package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -204
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
- package/esm/components/inputs/Radio/Radio.js +0 -63
- package/esm/components/inputs/Radio/Radio.styled.js +0 -91
- package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
- package/esm/components/inputs/Switch/Switch.js +0 -65
- package/esm/components/inputs/Switch/Switch.styled.js +0 -125
- package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
- package/esm/components/inputs/TextArea/TextArea.js +0 -172
- package/esm/components/inputs/TextArea/TextArea.styled.js +0 -512
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
- package/esm/components/inputs/TextInput/TextInput.js +0 -142
- package/esm/components/inputs/TextInput/TextInput.styled.js +0 -274
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
- package/esm/components/inputs/inputs/index.js +0 -13
- package/esm/components/layout/InputGroup/InputGroup.js +0 -22
- package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -15
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -20
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
- package/esm/components/layout/layout/index.js +0 -2
- package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -57
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -21
- package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -102
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -387
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -42
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -401
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -358
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
- package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -95
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -25
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -16
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -92
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -27
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +0 -43
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -121
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
- package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -75
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -191
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
- package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -89
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -151
- package/esm/components/widgets/widgets/index.js +0 -8
- package/esm/hooks/useEventListner.js +0 -22
- package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
- package/esm/hooks/useOnClickOutside.js +0 -13
- package/esm/icons/arrow-back.svg.js +0 -16
- package/esm/icons/check-rectangle-filled.svg.js +0 -16
- package/esm/icons/headset.svg.js +0 -16
- package/esm/icons/layers.svg.js +0 -16
- package/esm/icons/link.svg.js +0 -16
- package/esm/icons/play.svg.js +0 -16
- package/esm/icons/search.svg.js +0 -16
- package/esm/icons/star-filled.svg.js +0 -16
- package/esm/icons/star.svg.js +0 -16
- package/esm/icons/triangle-right.svg.js +0 -16
- package/esm/icons/verification.svg.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -902
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -112
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -139
- package/esm/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -38
- package/esm/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -35
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
- package/esm/node_modules/object-assign/index.js +0 -90
- package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/esm/node_modules/prop-types/index.js +0 -29
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/esm/node_modules/prop-types/lib/has.js +0 -3
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/react/cjs/react.development.js +0 -1287
- package/esm/node_modules/react/cjs/react.production.js +0 -543
- package/esm/node_modules/react/index.js +0 -15
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
- package/esm/node_modules/react-dom/index.js +0 -42
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/esm/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2650
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
- package/esm/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -97
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
- package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/esm/node_modules/stylis/src/Enum.js +0 -12
- package/esm/node_modules/stylis/src/Middleware.js +0 -32
- package/esm/node_modules/stylis/src/Parser.js +0 -193
- package/esm/node_modules/stylis/src/Serializer.js +0 -38
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
- package/esm/node_modules/stylis/src/Utility.js +0 -117
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
- package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -9
- package/esm/styles/utils/colors-export.js +0 -37
- package/esm/utils/dateTime.js +0 -16
- package/esm/utils/defaultTheme.js +0 -70
- package/migration-storybook.log +0 -392
- package/styles/utils/colors-export.js +0 -35
- /package/{esm/ssr → build}/ssr/index.js +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
-
var index = require('../../../node_modules/react/index.js');
|
|
7
|
-
var index$1 = require('../../../node_modules/prop-types/index.js');
|
|
8
|
-
var Alert_styled = require('./Alert.styled.js');
|
|
9
|
-
var lodash = require('lodash');
|
|
10
|
-
|
|
11
|
-
const _excluded = ["type", "alertMessage", "align", "icon", "fontSize", "lineHeight", "lineClamp", "verticalPadding", "horizontalPadding", "width"];
|
|
12
|
-
const Alert = index["default"].forwardRef(function Alert(_ref, forwardedRef) {
|
|
13
|
-
let {
|
|
14
|
-
type,
|
|
15
|
-
alertMessage,
|
|
16
|
-
align,
|
|
17
|
-
icon,
|
|
18
|
-
fontSize,
|
|
19
|
-
lineHeight,
|
|
20
|
-
lineClamp,
|
|
21
|
-
verticalPadding,
|
|
22
|
-
horizontalPadding,
|
|
23
|
-
width
|
|
24
|
-
} = _ref,
|
|
25
|
-
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
let isWarning = false;
|
|
27
|
-
let isError = false;
|
|
28
|
-
let isInfo = true;
|
|
29
|
-
if (!lodash.isEmpty(type)) {
|
|
30
|
-
if (type === 'warning') {
|
|
31
|
-
isWarning = true;
|
|
32
|
-
} else if (type === 'error') {
|
|
33
|
-
isError = true;
|
|
34
|
-
} else {
|
|
35
|
-
isInfo = true;
|
|
36
|
-
}
|
|
37
|
-
} else {
|
|
38
|
-
if (isWarning || isError) {
|
|
39
|
-
isInfo = false;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return index["default"].createElement(Alert_styled.Alert, _rollupPluginBabelHelpers["extends"]({
|
|
43
|
-
ref: forwardedRef,
|
|
44
|
-
$alertMessage: alertMessage,
|
|
45
|
-
$warning: isWarning,
|
|
46
|
-
$error: isError,
|
|
47
|
-
$info: isInfo,
|
|
48
|
-
$align: align,
|
|
49
|
-
$verticalPadding: verticalPadding,
|
|
50
|
-
$horizontalPadding: horizontalPadding,
|
|
51
|
-
width: width
|
|
52
|
-
}, props), index["default"].createElement(Alert_styled.AlertRender, {
|
|
53
|
-
fontSize: fontSize,
|
|
54
|
-
lineHeight: lineHeight,
|
|
55
|
-
$lineClamp: lineClamp
|
|
56
|
-
}, icon, " ", index["default"].createElement("span", null, alertMessage)));
|
|
57
|
-
});
|
|
58
|
-
Alert.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
59
|
-
type: index$1["default"].oneOf(['warning', 'error', 'info']),
|
|
60
|
-
icon: index$1["default"].element,
|
|
61
|
-
align: index$1["default"].oneOf(['left', 'center']),
|
|
62
|
-
alertMessage: index$1["default"].string,
|
|
63
|
-
fontSize: index$1["default"].number,
|
|
64
|
-
lineHeight: index$1["default"].number,
|
|
65
|
-
lineClamp: index$1["default"].number,
|
|
66
|
-
verticalPadding: index$1["default"].number,
|
|
67
|
-
horizontalPadding: index$1["default"].number,
|
|
68
|
-
width: index$1["default"].number
|
|
69
|
-
} : {};
|
|
70
|
-
Alert.defaultProps = {
|
|
71
|
-
align: 'left',
|
|
72
|
-
alertMessage: 'Use subject to restrictions. Editorial use only, no commercial use without prior consent from rights holder.',
|
|
73
|
-
lineClamp: 0,
|
|
74
|
-
horizontalPadding: 30,
|
|
75
|
-
verticalPadding: 17
|
|
76
|
-
};
|
|
77
|
-
var Alert$1 = Alert;
|
|
78
|
-
|
|
79
|
-
exports["default"] = Alert$1;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
-
|
|
12
|
-
let _ = t => t,
|
|
13
|
-
_t,
|
|
14
|
-
_t2,
|
|
15
|
-
_t3,
|
|
16
|
-
_t4,
|
|
17
|
-
_t5,
|
|
18
|
-
_t6;
|
|
19
|
-
const shouldForwardProp = prop => {
|
|
20
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
21
|
-
};
|
|
22
|
-
const Alert = styled__default["default"].div.withConfig({
|
|
23
|
-
shouldForwardProp
|
|
24
|
-
}).attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
padding: ${0};
|
|
28
|
-
width: ${0};
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
|
|
31
|
-
${0}
|
|
32
|
-
|
|
33
|
-
${0}
|
|
34
|
-
|
|
35
|
-
${0}
|
|
36
|
-
|
|
37
|
-
text-align: ${0};
|
|
38
|
-
`), props => {
|
|
39
|
-
var _props$$verticalPaddi, _props$$horizontalPad;
|
|
40
|
-
const verticalPadding = (_props$$verticalPaddi = props.$verticalPadding) !== null && _props$$verticalPaddi !== void 0 ? _props$$verticalPaddi : 17;
|
|
41
|
-
const horizontalPadding = (_props$$horizontalPad = props.$horizontalPadding) !== null && _props$$horizontalPad !== void 0 ? _props$$horizontalPad : 30;
|
|
42
|
-
return `${verticalPadding}px ${horizontalPadding}px`;
|
|
43
|
-
}, props => props.width ? `${props.width}px` : '100%', props => props.$warning && styled.css(_t2 || (_t2 = _`
|
|
44
|
-
${0}
|
|
45
|
-
`), props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400'))), props => props.$error && styled.css(_t3 || (_t3 = _`
|
|
46
|
-
${0}
|
|
47
|
-
`), props.theme.themeProp('background', '#7F1B1B', props.theme.getColor('red-200'))), props => props.$info && styled.css(_t4 || (_t4 = _`
|
|
48
|
-
background: transparent;
|
|
49
|
-
`)), props => props.align === 'center' ? 'center' : 'left');
|
|
50
|
-
const AlertRender = styled__default["default"].div.withConfig({
|
|
51
|
-
shouldForwardProp
|
|
52
|
-
}).attrs(defaultTheme.applyDefaultTheme)(_t5 || (_t5 = _`
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
word-break: break-word;
|
|
56
|
-
${0}
|
|
57
|
-
${0}
|
|
58
|
-
${0};
|
|
59
|
-
|
|
60
|
-
svg {
|
|
61
|
-
width: 12px;
|
|
62
|
-
height: 12px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
span {
|
|
66
|
-
flex: 1;
|
|
67
|
-
padding-left: 5px;
|
|
68
|
-
${0};
|
|
69
|
-
}
|
|
70
|
-
`), props => props.lineHeight ? `line-height: ${props.lineHeight}px;` : null, props => props.fontSize ? `font-size: ${props.fontSize}px;` : null, props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.$lineClamp ? styled.css(_t6 || (_t6 = _`
|
|
71
|
-
display: -webkit-box;
|
|
72
|
-
-webkit-line-clamp: ${0};
|
|
73
|
-
-webkit-box-orient: vertical;
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
text-overflow: ellipsis;
|
|
76
|
-
`), props.$lineClamp) : null);
|
|
77
|
-
|
|
78
|
-
exports.Alert = Alert;
|
|
79
|
-
exports.AlertRender = AlertRender;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
-
var index$1 = require('../../../node_modules/prop-types/index.js');
|
|
7
|
-
var index = require('../../../node_modules/react/index.js');
|
|
8
|
-
var Badge_styled = require('./Badge.styled.js');
|
|
9
|
-
|
|
10
|
-
const _excluded = ["badgeContent", "badgeIcon", "children", "elevated", "fontSize", "fontWeight", "lineHeight", "active", "error", "warning", "backgroundColors", "colors", "verticalPadding", "horizontalPadding", "height", "minHeight", "width", "minWidth"];
|
|
11
|
-
const Badge = index["default"].forwardRef(function Badge(_ref, forwardedRef) {
|
|
12
|
-
let {
|
|
13
|
-
badgeContent,
|
|
14
|
-
badgeIcon,
|
|
15
|
-
children,
|
|
16
|
-
elevated,
|
|
17
|
-
fontSize,
|
|
18
|
-
fontWeight,
|
|
19
|
-
lineHeight,
|
|
20
|
-
active,
|
|
21
|
-
error,
|
|
22
|
-
warning,
|
|
23
|
-
backgroundColors,
|
|
24
|
-
colors,
|
|
25
|
-
verticalPadding,
|
|
26
|
-
horizontalPadding,
|
|
27
|
-
height,
|
|
28
|
-
minHeight,
|
|
29
|
-
width,
|
|
30
|
-
minWidth
|
|
31
|
-
} = _ref,
|
|
32
|
-
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
33
|
-
if (typeof badgeContent === 'number') {
|
|
34
|
-
badgeContent = Intl.NumberFormat('en', {
|
|
35
|
-
notation: 'compact'
|
|
36
|
-
}).format(badgeContent);
|
|
37
|
-
}
|
|
38
|
-
return index["default"].createElement(Badge_styled.Badge, _rollupPluginBabelHelpers["extends"]({
|
|
39
|
-
ref: forwardedRef,
|
|
40
|
-
$elevated: elevated,
|
|
41
|
-
$hasChildren: Boolean(children)
|
|
42
|
-
}, props), children && index["default"].createElement(Badge_styled.BadgeChildrenContainer, null, children), (badgeIcon || badgeContent) && index["default"].createElement(Badge_styled.BadgeLabel, {
|
|
43
|
-
$backgroundColors: backgroundColors,
|
|
44
|
-
$colors: colors,
|
|
45
|
-
$elevated: elevated,
|
|
46
|
-
fontSize: fontSize,
|
|
47
|
-
fontWeight: fontWeight,
|
|
48
|
-
$lineHeight: lineHeight,
|
|
49
|
-
$active: active,
|
|
50
|
-
$error: error,
|
|
51
|
-
$warning: warning,
|
|
52
|
-
$elevatedverticalPadding: verticalPadding,
|
|
53
|
-
$horizontalPadding: horizontalPadding,
|
|
54
|
-
height: height,
|
|
55
|
-
minHeight: minHeight,
|
|
56
|
-
width: width,
|
|
57
|
-
$minWidth: minWidth
|
|
58
|
-
}, badgeIcon && index["default"].createElement(Badge_styled.BadgeIcon, {
|
|
59
|
-
$useGutter: !!badgeContent
|
|
60
|
-
}, badgeIcon), badgeContent));
|
|
61
|
-
});
|
|
62
|
-
Badge.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
63
|
-
badgeIcon: index$1["default"].node,
|
|
64
|
-
badgeContent: index$1["default"].oneOfType([index$1["default"].string, index$1["default"].number, index$1["default"].func, index$1["default"].element]),
|
|
65
|
-
children: index$1["default"].oneOfType([index$1["default"].node, index$1["default"].string]),
|
|
66
|
-
elevated: index$1["default"].bool,
|
|
67
|
-
active: index$1["default"].bool,
|
|
68
|
-
error: index$1["default"].bool,
|
|
69
|
-
warning: index$1["default"].bool,
|
|
70
|
-
fontSize: index$1["default"].oneOfType([index$1["default"].number, index$1["default"].string]),
|
|
71
|
-
fontWeight: index$1["default"].oneOfType([index$1["default"].number, index$1["default"].string]),
|
|
72
|
-
lineHeight: index$1["default"].oneOfType([index$1["default"].number, index$1["default"].string]),
|
|
73
|
-
colors: index$1["default"].arrayOf(index$1["default"].string),
|
|
74
|
-
backgroundColors: index$1["default"].arrayOf(index$1["default"].string),
|
|
75
|
-
verticalPadding: index$1["default"].number,
|
|
76
|
-
horizontalPadding: index$1["default"].number,
|
|
77
|
-
height: index$1["default"].number,
|
|
78
|
-
minHeight: index$1["default"].number,
|
|
79
|
-
width: index$1["default"].number,
|
|
80
|
-
minWidth: index$1["default"].number
|
|
81
|
-
} : {};
|
|
82
|
-
Badge.defaultProps = {
|
|
83
|
-
elevated: false,
|
|
84
|
-
active: false,
|
|
85
|
-
error: false,
|
|
86
|
-
warning: false,
|
|
87
|
-
badgeIcon: null,
|
|
88
|
-
fontWeight: 'normal',
|
|
89
|
-
lineHeight: 'normal'
|
|
90
|
-
};
|
|
91
|
-
var Badge$1 = Badge;
|
|
92
|
-
|
|
93
|
-
exports["default"] = Badge$1;
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
-
|
|
12
|
-
let _ = t => t,
|
|
13
|
-
_t,
|
|
14
|
-
_t2,
|
|
15
|
-
_t3,
|
|
16
|
-
_t4,
|
|
17
|
-
_t5,
|
|
18
|
-
_t6,
|
|
19
|
-
_t7,
|
|
20
|
-
_t8;
|
|
21
|
-
const shouldForwardProp = prop => {
|
|
22
|
-
return prop !== 'theme' && !prop.startsWith('$');
|
|
23
|
-
};
|
|
24
|
-
const Badge = styled__default["default"].span.withConfig({
|
|
25
|
-
shouldForwardProp
|
|
26
|
-
}).attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
27
|
-
align-content: center;
|
|
28
|
-
display: ${0};
|
|
29
|
-
font-family: ${0};
|
|
30
|
-
font-size: 1rem;
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
min-height: 24px;
|
|
33
|
-
position: relative;
|
|
34
|
-
width: ${0};
|
|
35
|
-
`), props => props.$elevated || !props.$hasChildren ? 'inline-flex' : 'flex', props => props.theme.primaryFontFamily, props => props.$elevated ? 'fit-content' : 'initial');
|
|
36
|
-
const BadgeChildrenContainer = styled__default["default"].span.withConfig({
|
|
37
|
-
shouldForwardProp
|
|
38
|
-
}).attrs(defaultTheme.applyDefaultTheme)(_t2 || (_t2 = _`
|
|
39
|
-
align-self: center;
|
|
40
|
-
height: fit-content;
|
|
41
|
-
margin-right: 8px;
|
|
42
|
-
`));
|
|
43
|
-
const BadgeLabel = styled__default["default"].span.withConfig({
|
|
44
|
-
shouldForwardProp
|
|
45
|
-
}).attrs(defaultTheme.applyDefaultTheme)(_t3 || (_t3 = _`
|
|
46
|
-
border-radius: ${0};
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
box-sizing: border-box;
|
|
51
|
-
|
|
52
|
-
font-size: ${0};
|
|
53
|
-
font-weight: ${0};
|
|
54
|
-
line-height: ${0};
|
|
55
|
-
height: ${0};
|
|
56
|
-
letter-spacing: 0.32px;
|
|
57
|
-
margin-left: ${0};
|
|
58
|
-
position: ${0};
|
|
59
|
-
right: 0;
|
|
60
|
-
transform: ${0};
|
|
61
|
-
|
|
62
|
-
${0}
|
|
63
|
-
|
|
64
|
-
${0}
|
|
65
|
-
|
|
66
|
-
${0}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
${0}
|
|
70
|
-
|
|
71
|
-
${0}
|
|
72
|
-
|
|
73
|
-
${0}
|
|
74
|
-
`), props => props.$elevated ? '12px' : '14px', props => {
|
|
75
|
-
if (props.fontSize) {
|
|
76
|
-
return `${props.fontSize}px`;
|
|
77
|
-
} else {
|
|
78
|
-
return props.elevated ? '0.625rem' : '0.750rem';
|
|
79
|
-
}
|
|
80
|
-
}, props => props.fontWeight ? props.fontWeight : 'normal', props => props.$lineHeight ? `${props.$lineHeight}px` : 'normal', props => props.height ? `${props.height}px` : 'fit-content', props => props.$elevated ? '15px' : 'auto', props => props.$elevated ? 'absolute' : 'initial', props => props.$elevated ? 'translate(33%, -8px)' : 'initial', props => props.width ? styled.css(_t4 || (_t4 = _`
|
|
81
|
-
width: ${0}px;
|
|
82
|
-
`), props.width) : null, props => props.$minWidth ? styled.css(_t5 || (_t5 = _`
|
|
83
|
-
min-width: ${0}px;
|
|
84
|
-
`), props.$minWidth) : null, props => props.minHeight ? styled.css(_t6 || (_t6 = _`
|
|
85
|
-
min-height: ${0}px;
|
|
86
|
-
`), props.minHeight) : null, props => {
|
|
87
|
-
const verticalPadding = props.verticalPadding ? `${props.verticalPadding}px` : props.$elevated ? '4px' : '6px';
|
|
88
|
-
const horizontalPadding = props.$horizontalPadding ? `${props.$horizontalPadding}px` : props.$elevated ? '7px' : '10px';
|
|
89
|
-
return styled.css(_t7 || (_t7 = _`
|
|
90
|
-
padding: ${0} ${0};
|
|
91
|
-
`), verticalPadding, horizontalPadding);
|
|
92
|
-
}, props => props.theme.themeProp('background', () => {
|
|
93
|
-
var _props$backgroundColo, _props$backgroundColo2;
|
|
94
|
-
const active = props.$active;
|
|
95
|
-
const error = props.$error;
|
|
96
|
-
const warning = props.$warning;
|
|
97
|
-
const defaultBgColor = (_props$backgroundColo = props === null || props === void 0 || (_props$backgroundColo2 = props.backgroundColors) === null || _props$backgroundColo2 === void 0 ? void 0 : _props$backgroundColo2[0]) !== null && _props$backgroundColo !== void 0 ? _props$backgroundColo : props.theme.getColor('gray-600');
|
|
98
|
-
switch (true) {
|
|
99
|
-
case !error && !warning && !active:
|
|
100
|
-
return defaultBgColor;
|
|
101
|
-
case !error && !warning && active:
|
|
102
|
-
return props.theme.getColor('gray-700');
|
|
103
|
-
case error && active:
|
|
104
|
-
return props.theme.getColor('red-500');
|
|
105
|
-
case error:
|
|
106
|
-
return props.theme.getColor('red-200');
|
|
107
|
-
case warning && active:
|
|
108
|
-
return props.theme.getColor('signal-yellow-500');
|
|
109
|
-
case warning:
|
|
110
|
-
return props.theme.getColor('signal-yellow-400');
|
|
111
|
-
default:
|
|
112
|
-
return props.theme.getColor('gray-600');
|
|
113
|
-
}
|
|
114
|
-
}, () => {
|
|
115
|
-
var _props$$backgroundCol, _props$$backgroundCol2;
|
|
116
|
-
const active = props.$active;
|
|
117
|
-
const error = props.$error;
|
|
118
|
-
const warning = props.$warning;
|
|
119
|
-
const defaultBgColor = (_props$$backgroundCol = props === null || props === void 0 || (_props$$backgroundCol2 = props.$backgroundColors) === null || _props$$backgroundCol2 === void 0 ? void 0 : _props$$backgroundCol2[1]) !== null && _props$$backgroundCol !== void 0 ? _props$$backgroundCol : props.theme.getColor('gray-200');
|
|
120
|
-
switch (true) {
|
|
121
|
-
case !error && !warning && !active:
|
|
122
|
-
return defaultBgColor;
|
|
123
|
-
case !error && !warning && active:
|
|
124
|
-
return props.theme.getColor('white');
|
|
125
|
-
case error && active:
|
|
126
|
-
return props.theme.getColor('red-500');
|
|
127
|
-
case error:
|
|
128
|
-
return props.theme.getColor('red-200');
|
|
129
|
-
case warning && active:
|
|
130
|
-
return props.theme.getColor('signal-yellow-500');
|
|
131
|
-
case warning:
|
|
132
|
-
return props.theme.getColor('signal-yellow-400');
|
|
133
|
-
default:
|
|
134
|
-
return props.theme.getColor('gray-200');
|
|
135
|
-
}
|
|
136
|
-
}), props => props.theme.themeProp('color', () => {
|
|
137
|
-
var _props$$colors$, _props$$colors;
|
|
138
|
-
const defaultColor = (_props$$colors$ = props === null || props === void 0 || (_props$$colors = props.$colors) === null || _props$$colors === void 0 ? void 0 : _props$$colors[0]) !== null && _props$$colors$ !== void 0 ? _props$$colors$ : props.theme.getColor('white');
|
|
139
|
-
if (props.$warning && !props.$error || props.error && !props.$active) {
|
|
140
|
-
return props.theme.getColor('gray-900');
|
|
141
|
-
} else {
|
|
142
|
-
return defaultColor;
|
|
143
|
-
}
|
|
144
|
-
}, () => {
|
|
145
|
-
var _props$$colors$2, _props$$colors2;
|
|
146
|
-
const defaultColor = (_props$$colors$2 = props === null || props === void 0 || (_props$$colors2 = props.$colors) === null || _props$$colors2 === void 0 ? void 0 : _props$$colors2[1]) !== null && _props$$colors$2 !== void 0 ? _props$$colors$2 : props.theme.getColor('gray-900');
|
|
147
|
-
if (props.$error && props.$active) {
|
|
148
|
-
return props.theme.getColor('white');
|
|
149
|
-
} else {
|
|
150
|
-
return defaultColor;
|
|
151
|
-
}
|
|
152
|
-
}));
|
|
153
|
-
const BadgeIcon = styled__default["default"].span.withConfig({
|
|
154
|
-
shouldForwardProp
|
|
155
|
-
}).attrs(defaultTheme.applyDefaultTheme)(_t8 || (_t8 = _`
|
|
156
|
-
display: flex;
|
|
157
|
-
align-items: center;
|
|
158
|
-
margin-right: ${0};
|
|
159
|
-
svg {
|
|
160
|
-
height: 12px;
|
|
161
|
-
}
|
|
162
|
-
`), props => props.$useGutter ? '4px' : 0);
|
|
163
|
-
|
|
164
|
-
exports.Badge = Badge;
|
|
165
|
-
exports.BadgeChildrenContainer = BadgeChildrenContainer;
|
|
166
|
-
exports.BadgeIcon = BadgeIcon;
|
|
167
|
-
exports.BadgeLabel = BadgeLabel;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
-
var lodash = require('lodash');
|
|
7
|
-
var index$2 = require('../../../node_modules/prop-types/index.js');
|
|
8
|
-
var index = require('../../../node_modules/react/index.js');
|
|
9
|
-
var Popover_styled = require('./Popover.styled.js');
|
|
10
|
-
var maxSize = require('popper-max-size-modifier');
|
|
11
|
-
var index$1 = require('../../../_virtual/index.js');
|
|
12
|
-
|
|
13
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
-
|
|
15
|
-
var maxSize__default = /*#__PURE__*/_interopDefaultLegacy(maxSize);
|
|
16
|
-
|
|
17
|
-
const _excluded = ["content", "interactive", "placement", "duration", "trigger", "offset", "arrow", "visible", "contextMenu", "contextMenuSublevel", "children", "modifiers", "maxWidth"];
|
|
18
|
-
const Popover = index["default"].forwardRef(function Popover(_ref, ref) {
|
|
19
|
-
let {
|
|
20
|
-
content = 'Tooltip',
|
|
21
|
-
interactive = true,
|
|
22
|
-
placement = 'bottom-end',
|
|
23
|
-
duration = 350,
|
|
24
|
-
trigger = 'click focus',
|
|
25
|
-
offset = [0, 8],
|
|
26
|
-
arrow = true,
|
|
27
|
-
visible = undefined,
|
|
28
|
-
contextMenu = false,
|
|
29
|
-
contextMenuSublevel = false,
|
|
30
|
-
children,
|
|
31
|
-
modifiers = [],
|
|
32
|
-
maxWidth = 'none'
|
|
33
|
-
} = _ref,
|
|
34
|
-
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
const errorOffset = index$1.react.exports.useMemo(() => arrow ? 15 : 0, [arrow]);
|
|
36
|
-
const isControlled = index$1.react.exports.useMemo(() => lodash.isBoolean(visible), [visible]);
|
|
37
|
-
const handleContextMenuItemClick = () => {
|
|
38
|
-
document.querySelectorAll('.context-menu-item:not(.opens-sublevel)').forEach(item => item.addEventListener('click', () => {
|
|
39
|
-
document.querySelectorAll('[data-tippy-root]').forEach(node => {
|
|
40
|
-
if (node._tippy) {
|
|
41
|
-
node._tippy.hide();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}));
|
|
45
|
-
};
|
|
46
|
-
const eventHandlerProps = ['onClick', 'onChange', 'onSubmit'];
|
|
47
|
-
const filteredProps = Object.fromEntries(Object.entries(props).filter(([key]) => !eventHandlerProps.includes(key)));
|
|
48
|
-
return index["default"].createElement("div", null, index["default"].createElement(Popover_styled.Popover, _rollupPluginBabelHelpers["extends"]({
|
|
49
|
-
ref: ref,
|
|
50
|
-
content: content,
|
|
51
|
-
interactive: interactive,
|
|
52
|
-
placement: contextMenuSublevel ? 'right-start' : placement,
|
|
53
|
-
duration: duration,
|
|
54
|
-
animation: 'shift-away-subtle',
|
|
55
|
-
trigger: isControlled ? undefined : contextMenuSublevel ? 'mouseenter click focus' : trigger,
|
|
56
|
-
offset: [offset[0], offset[1] + errorOffset],
|
|
57
|
-
arrow: contextMenu ? false : arrow,
|
|
58
|
-
visible: visible,
|
|
59
|
-
popperOptions: {
|
|
60
|
-
modifiers: [_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, maxSize__default["default"]), {}, {
|
|
61
|
-
options: {
|
|
62
|
-
boundary: 'viewport',
|
|
63
|
-
rootBoundary: 'viewport',
|
|
64
|
-
padding: 10
|
|
65
|
-
}
|
|
66
|
-
}), {
|
|
67
|
-
name: 'applyMaxSize',
|
|
68
|
-
enabled: true,
|
|
69
|
-
phase: 'beforeWrite',
|
|
70
|
-
requires: ['maxSize'],
|
|
71
|
-
fn({
|
|
72
|
-
state
|
|
73
|
-
}) {
|
|
74
|
-
const {
|
|
75
|
-
height
|
|
76
|
-
} = state.modifiersData.maxSize;
|
|
77
|
-
state.styles.popper = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, state.styles.popper), {}, {
|
|
78
|
-
maxHeight: `${height}px`
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}, ...modifiers]
|
|
82
|
-
},
|
|
83
|
-
onShow: contextMenu ? handleContextMenuItemClick : undefined,
|
|
84
|
-
maxWidth: maxWidth
|
|
85
|
-
}, filteredProps), children));
|
|
86
|
-
});
|
|
87
|
-
Popover.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
88
|
-
content: index$2["default"].oneOfType([index$2["default"].string, index$2["default"].element]).isRequired,
|
|
89
|
-
interactive: index$2["default"].bool,
|
|
90
|
-
placement: index$2["default"].oneOf(['top', 'top-start', 'top-end', 'right', 'right-start', 'right-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', 'auto-end']),
|
|
91
|
-
duration: index$2["default"].number,
|
|
92
|
-
trigger: index$2["default"].string,
|
|
93
|
-
offset: index$2["default"].arrayOf(index$2["default"].number),
|
|
94
|
-
arrow: index$2["default"].bool,
|
|
95
|
-
visible: index$2["default"].bool,
|
|
96
|
-
modifiers: index$2["default"].array,
|
|
97
|
-
maxWidth: index$2["default"].string,
|
|
98
|
-
contextMenu: index$2["default"].bool,
|
|
99
|
-
contextMenuSublevel: index$2["default"].bool,
|
|
100
|
-
children: index$2["default"].node.isRequired
|
|
101
|
-
} : {};
|
|
102
|
-
var Popover$1 = Popover;
|
|
103
|
-
|
|
104
|
-
exports["default"] = Popover$1;
|