@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ActionButton-03dc5f67.js +92 -0
- package/build/Alert-8a511bdc.js +138 -0
- package/build/AssetAction-d081e4b7.js +2377 -0
- package/build/AssetPreviewTopBar-623cfa18.js +152 -0
- package/build/Badge-aa4cd9c1.js +221 -0
- package/build/Button-2e26f5da.js +449 -0
- package/build/Checkbox-0b8faf49.js +220 -0
- package/build/CompactAutocompleteSelect-797778cb.js +555 -0
- package/build/CompactStarRating-da21b53f.js +436 -0
- package/build/CompactTextInput-d56aec71.js +541 -0
- package/build/ContextMenu-82f9d728.js +33 -0
- package/build/ContextMenuItem-3967010d.js +152 -0
- package/build/InfoCard-d0fdf377.js +132 -0
- package/build/InputGroup-8d4a4644.js +30 -0
- package/build/Instructions-af191987.js +274 -0
- package/build/MultiLevelCheckboxSelect-d229cf98.js +632 -0
- package/build/MultiSelect-d7920eb1.js +470 -0
- package/build/Popover-c4be47ea.js +241 -0
- package/build/ProgressBar-2d26c1fb.js +217 -0
- package/build/Radio-150fb2c9.js +141 -0
- package/build/SectionSeparator-e06c7660.js +38 -0
- package/build/Switch-d2d6e9ec.js +167 -0
- package/build/Tab-ccbca1f2.js +39 -0
- package/build/Tabs-b06c0e24.js +166 -0
- package/build/TextArea-26d3c8a1.js +619 -0
- package/build/TextInput-3a567daa.js +372 -0
- package/build/Tooltip-d5882b82.js +73 -0
- package/build/VerificationStatusIcon-9876b68f.js +120 -0
- package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-4b342fad.js} +3 -1
- package/build/arrow-forward-d7c77ae3.js +37 -0
- package/build/close-1751121a.js +37 -0
- package/build/data/Alert/index.js +12 -0
- package/build/data/Badge/index.js +11 -0
- package/build/data/Popover/index.js +16 -0
- package/build/data/Tab/index.js +11 -0
- package/build/data/Tabs/index.js +13 -0
- package/build/data/Tooltip/index.js +13 -0
- package/build/data/index.js +30 -0
- package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-d9a7342e.js} +582 -17
- package/build/edit-note-cefe2215.js +37 -0
- package/build/expand-more-d74e2bd2.js +37 -0
- package/build/icons/add-circle.svg +3 -0
- package/build/icons/add.svg +3 -0
- package/build/icons/album.svg +3 -0
- package/build/icons/arrow-back.svg +4 -0
- package/build/icons/arrow-drop-down.svg +4 -0
- package/build/icons/arrow-forward.svg +3 -0
- package/build/icons/audio.svg +3 -0
- package/build/icons/bell.svg +3 -0
- package/build/icons/check-circle-filled.svg +3 -0
- package/build/icons/check-rectangle-filled.svg +3 -0
- package/build/icons/check.svg +3 -0
- package/build/icons/clear-circle-filled.svg +14 -0
- package/build/icons/close.svg +4 -0
- package/build/icons/corporate.svg +3 -0
- package/build/icons/delete-context-menu.svg +4 -0
- package/build/icons/delete.svg +3 -0
- package/build/icons/design-services.svg +4 -0
- package/build/icons/download.svg +3 -0
- package/build/icons/edit-note.svg +4 -0
- package/build/icons/edit.svg +3 -0
- package/build/icons/expand-more.svg +4 -0
- package/build/icons/file.svg +3 -0
- package/build/icons/ftp.svg +3 -0
- package/build/icons/gear.svg +3 -0
- package/build/icons/headset.svg +1 -0
- package/build/icons/index.js +79 -0
- package/build/icons/layers.svg +3 -0
- package/build/icons/library-add.svg +3 -0
- package/build/icons/link.svg +4 -0
- package/build/icons/pdf.svg +3 -0
- package/build/icons/play.svg +3 -0
- package/build/icons/remove-circle.svg +3 -0
- package/build/icons/search.svg +3 -0
- package/build/icons/share.svg +3 -0
- package/build/icons/shopping_cart_add.svg +3 -0
- package/build/icons/star-filled.svg +3 -0
- package/build/icons/star.svg +3 -0
- package/build/icons/triangle-right.svg +4 -0
- package/build/icons/verification.svg +3 -0
- package/build/icons/warning-circle.svg +3 -0
- package/build/icons/warning-triangle.svg +3 -0
- package/build/inputs/ActionButton/index.js +12 -0
- package/build/inputs/Button/index.js +19 -0
- package/build/inputs/Checkbox/index.js +12 -0
- package/build/inputs/CompactAutocompleteSelect/index.js +29 -0
- package/build/inputs/CompactStarRating/index.js +23 -0
- package/build/inputs/CompactTextInput/index.js +25 -0
- package/build/inputs/MultiSelect/index.js +16 -0
- package/build/inputs/Radio/index.js +13 -0
- package/build/inputs/Switch/index.js +12 -0
- package/build/inputs/TextArea/index.js +26 -0
- package/build/inputs/TextInput/index.js +15 -0
- package/build/inputs/index.js +60 -0
- package/build/layout/InputGroup/index.js +11 -0
- package/build/layout/SectionSeparator/index.js +11 -0
- package/build/layout/index.js +15 -0
- package/build/shift-away-subtle-158617af.js +9 -0
- package/build/styles/all.scss +3 -0
- package/build/styles/config.scss +38 -0
- package/{styles/utils/.colors.scss → build/styles/utils/colors.scss} +1 -1
- package/build/styles/utils/theme.scss +33 -0
- package/build/widgets/AssetGallery/index.js +55 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +12 -0
- package/build/widgets/ContextMenu/ContextMenuItem/index.js +11 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +44 -0
- package/build/widgets/ContextMenu/index.js +11 -0
- package/build/widgets/InfoCard/index.js +12 -0
- package/build/widgets/Instructions/index.js +33 -0
- package/build/widgets/ProgressBar/index.js +12 -0
- package/build/widgets/index.js +65 -0
- package/package.json +49 -56
- package/styles/all.scss +3 -3
- package/styles/config.scss +38 -0
- package/styles/utils/colors.scss +15 -0
- package/styles/utils/theme.scss +0 -2
- package/.eslintrc +0 -19
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
- package/cjs/_virtual/index.js +0 -7
- package/cjs/_virtual/index2.js +0 -7
- package/cjs/_virtual/index3.js +0 -7
- package/cjs/_virtual/index4.js +0 -7
- package/cjs/_virtual/index5.js +0 -7
- package/cjs/_virtual/react-dom.development.js +0 -7
- package/cjs/_virtual/react-dom.production.js +0 -7
- package/cjs/_virtual/react-is.development.js +0 -7
- package/cjs/_virtual/react-is.development2.js +0 -7
- package/cjs/_virtual/react-is.production.min.js +0 -7
- package/cjs/_virtual/react-is.production.min2.js +0 -7
- package/cjs/_virtual/react.development.js +0 -7
- package/cjs/_virtual/react.production.js +0 -7
- package/cjs/components/data/Alert/Alert.js +0 -79
- package/cjs/components/data/Alert/Alert.styled.js +0 -79
- package/cjs/components/data/Alert/data/Alert/index.js +0 -9
- package/cjs/components/data/Badge/Badge.js +0 -93
- package/cjs/components/data/Badge/Badge.styled.js +0 -167
- package/cjs/components/data/Badge/data/Badge/index.js +0 -9
- package/cjs/components/data/Popover/Popover.js +0 -104
- package/cjs/components/data/Popover/Popover.styled.js +0 -159
- package/cjs/components/data/Popover/data/Popover/index.js +0 -9
- package/cjs/components/data/Tab/Tab.js +0 -31
- package/cjs/components/data/Tab/Tab.styled.js +0 -27
- package/cjs/components/data/Tab/data/Tab/index.js +0 -9
- package/cjs/components/data/Tabs/Tabs.js +0 -101
- package/cjs/components/data/Tabs/Tabs.styled.js +0 -110
- package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
- package/cjs/components/data/Tooltip/Tooltip.js +0 -52
- package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -88
- package/cjs/components/data/data/index.js +0 -21
- package/cjs/components/inputs/ActionButton/ActionButton.js +0 -44
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -75
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
- package/cjs/components/inputs/Button/Button.js +0 -195
- package/cjs/components/inputs/Button/Button.styled.js +0 -340
- package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
- package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -160
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -363
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -177
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -269
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -406
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -106
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -147
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -208
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -275
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
- package/cjs/components/inputs/Radio/Radio.js +0 -67
- package/cjs/components/inputs/Radio/Radio.styled.js +0 -100
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
- package/cjs/components/inputs/Switch/Switch.js +0 -69
- package/cjs/components/inputs/Switch/Switch.styled.js +0 -138
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
- package/cjs/components/inputs/TextArea/TextArea.js +0 -176
- package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -530
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
- package/cjs/components/inputs/TextInput/TextInput.js +0 -146
- package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -289
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
- package/cjs/components/inputs/inputs/index.js +0 -33
- package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -23
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -28
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
- package/cjs/components/layout/layout/index.js +0 -11
- package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -69
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -29
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -106
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -395
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -52
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -405
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -385
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
- package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -107
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -29
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -24
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -102
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -35
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
- package/cjs/components/widgets/InfoCard/InfoCard.js +0 -47
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -137
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -79
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -210
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -93
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -169
- package/cjs/components/widgets/widgets/index.js +0 -23
- package/cjs/hooks/useEventListner.js +0 -26
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
- package/cjs/hooks/useOnClickOutside.js +0 -17
- package/cjs/icons/arrow-back.svg.js +0 -20
- package/cjs/icons/arrow-forward.svg.js +0 -20
- package/cjs/icons/check-rectangle-filled.svg.js +0 -20
- package/cjs/icons/close.svg.js +0 -20
- package/cjs/icons/edit-note.svg.js +0 -20
- package/cjs/icons/expand-more.svg.js +0 -20
- package/cjs/icons/headset.svg.js +0 -20
- package/cjs/icons/layers.svg.js +0 -20
- package/cjs/icons/link.svg.js +0 -20
- package/cjs/icons/play.svg.js +0 -20
- package/cjs/icons/search.svg.js +0 -20
- package/cjs/icons/star-filled.svg.js +0 -20
- package/cjs/icons/star.svg.js +0 -20
- package/cjs/icons/triangle-right.svg.js +0 -20
- package/cjs/icons/verification.svg.js +0 -20
- package/cjs/icons/warning-circle.svg.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -915
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -130
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -166
- package/cjs/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -43
- package/cjs/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -39
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
- package/cjs/node_modules/object-assign/index.js +0 -94
- package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
- package/cjs/node_modules/prop-types/index.js +0 -33
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
- package/cjs/node_modules/prop-types/lib/has.js +0 -7
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/react/cjs/react.development.js +0 -1289
- package/cjs/node_modules/react/cjs/react.production.js +0 -548
- package/cjs/node_modules/react/index.js +0 -19
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
- package/cjs/node_modules/react-dom/index.js +0 -44
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
- package/cjs/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2659
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
- package/cjs/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -101
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
- package/cjs/node_modules/stylis/src/Enum.js +0 -24
- package/cjs/node_modules/stylis/src/Middleware.js +0 -37
- package/cjs/node_modules/stylis/src/Parser.js +0 -201
- package/cjs/node_modules/stylis/src/Serializer.js +0 -43
- package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
- package/cjs/node_modules/stylis/src/Utility.js +0 -134
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -13
- package/cjs/styles/utils/colors-export.js +0 -41
- package/cjs/utils/dateTime.js +0 -20
- package/cjs/utils/defaultTheme.js +0 -75
- package/doctor-storybook.log +0 -20
- package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/index2.js +0 -3
- package/esm/_virtual/index3.js +0 -3
- package/esm/_virtual/index4.js +0 -3
- package/esm/_virtual/index5.js +0 -3
- package/esm/_virtual/react-dom.development.js +0 -3
- package/esm/_virtual/react-dom.production.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.development2.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-is.production.min2.js +0 -3
- package/esm/_virtual/react.development.js +0 -3
- package/esm/_virtual/react.production.js +0 -3
- package/esm/components/data/Alert/Alert.js +0 -75
- package/esm/components/data/Alert/Alert.styled.js +0 -70
- package/esm/components/data/Alert/data/Alert/index.js +0 -1
- package/esm/components/data/Badge/Badge.js +0 -89
- package/esm/components/data/Badge/Badge.styled.js +0 -156
- package/esm/components/data/Badge/data/Badge/index.js +0 -1
- package/esm/components/data/Popover/Popover.js +0 -96
- package/esm/components/data/Popover/Popover.styled.js +0 -150
- package/esm/components/data/Popover/data/Popover/index.js +0 -1
- package/esm/components/data/Tab/Tab.js +0 -27
- package/esm/components/data/Tab/Tab.styled.js +0 -19
- package/esm/components/data/Tab/data/Tab/index.js +0 -1
- package/esm/components/data/Tabs/Tabs.js +0 -97
- package/esm/components/data/Tabs/Tabs.styled.js +0 -98
- package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
- package/esm/components/data/Tooltip/Tooltip.js +0 -48
- package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
- package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -78
- package/esm/components/data/data/index.js +0 -7
- package/esm/components/inputs/ActionButton/ActionButton.js +0 -40
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -67
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
- package/esm/components/inputs/Button/Button.js +0 -191
- package/esm/components/inputs/Button/Button.styled.js +0 -323
- package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
- package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -147
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -335
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -173
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -256
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -389
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -92
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -129
- package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -204
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
- package/esm/components/inputs/Radio/Radio.js +0 -63
- package/esm/components/inputs/Radio/Radio.styled.js +0 -91
- package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
- package/esm/components/inputs/Switch/Switch.js +0 -65
- package/esm/components/inputs/Switch/Switch.styled.js +0 -125
- package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
- package/esm/components/inputs/TextArea/TextArea.js +0 -172
- package/esm/components/inputs/TextArea/TextArea.styled.js +0 -512
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
- package/esm/components/inputs/TextInput/TextInput.js +0 -142
- package/esm/components/inputs/TextInput/TextInput.styled.js +0 -274
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
- package/esm/components/inputs/inputs/index.js +0 -13
- package/esm/components/layout/InputGroup/InputGroup.js +0 -22
- package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -15
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -20
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
- package/esm/components/layout/layout/index.js +0 -2
- package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -57
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -21
- package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -102
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -387
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -42
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -401
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -358
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
- package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -95
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -25
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -16
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -92
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -27
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +0 -43
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -121
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
- package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -75
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -191
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
- package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -89
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -151
- package/esm/components/widgets/widgets/index.js +0 -8
- package/esm/hooks/useEventListner.js +0 -22
- package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
- package/esm/hooks/useOnClickOutside.js +0 -13
- package/esm/icons/arrow-back.svg.js +0 -16
- package/esm/icons/arrow-forward.svg.js +0 -16
- package/esm/icons/check-rectangle-filled.svg.js +0 -16
- package/esm/icons/close.svg.js +0 -16
- package/esm/icons/edit-note.svg.js +0 -16
- package/esm/icons/expand-more.svg.js +0 -16
- package/esm/icons/headset.svg.js +0 -16
- package/esm/icons/layers.svg.js +0 -16
- package/esm/icons/link.svg.js +0 -16
- package/esm/icons/play.svg.js +0 -16
- package/esm/icons/search.svg.js +0 -16
- package/esm/icons/star-filled.svg.js +0 -16
- package/esm/icons/star.svg.js +0 -16
- package/esm/icons/triangle-right.svg.js +0 -16
- package/esm/icons/verification.svg.js +0 -16
- package/esm/icons/warning-circle.svg.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -902
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -112
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -139
- package/esm/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -38
- package/esm/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -35
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
- package/esm/node_modules/object-assign/index.js +0 -90
- package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/esm/node_modules/prop-types/index.js +0 -29
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/esm/node_modules/prop-types/lib/has.js +0 -3
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/react/cjs/react.development.js +0 -1287
- package/esm/node_modules/react/cjs/react.production.js +0 -543
- package/esm/node_modules/react/index.js +0 -15
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
- package/esm/node_modules/react-dom/index.js +0 -42
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/esm/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2650
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
- package/esm/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -97
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
- package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/esm/node_modules/stylis/src/Enum.js +0 -12
- package/esm/node_modules/stylis/src/Middleware.js +0 -32
- package/esm/node_modules/stylis/src/Parser.js +0 -193
- package/esm/node_modules/stylis/src/Serializer.js +0 -38
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
- package/esm/node_modules/stylis/src/Utility.js +0 -117
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
- package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -9
- package/esm/ssr/ssr/index.js +0 -1
- package/esm/styles/utils/colors-export.js +0 -37
- package/esm/utils/dateTime.js +0 -16
- package/esm/utils/defaultTheme.js +0 -70
- package/migration-storybook.log +0 -392
- package/styles/utils/colors-export.js +0 -35
- /package/{cjs/ssr → build}/ssr/index.js +0 -0
package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-d9a7342e.js}
RENAMED
|
@@ -1,9 +1,316 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styled = require('styled-components');
|
|
4
|
+
|
|
5
|
+
var propTypes = {exports: {}};
|
|
6
|
+
|
|
7
|
+
var reactIs = {exports: {}};
|
|
8
|
+
|
|
9
|
+
var reactIs_production_min = {};
|
|
10
|
+
|
|
11
|
+
/** @license React v16.13.1
|
|
12
|
+
* react-is.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
20
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
21
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
22
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
23
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
24
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
25
|
+
|
|
26
|
+
var reactIs_development = {};
|
|
27
|
+
|
|
28
|
+
/** @license React v16.13.1
|
|
29
|
+
* react-is.development.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if (process.env.NODE_ENV !== "production") {
|
|
40
|
+
(function() {
|
|
41
|
+
|
|
42
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
43
|
+
// nor polyfill, then a plain number is used for performance.
|
|
44
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
45
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
46
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
47
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
48
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
49
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
50
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
51
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
52
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
53
|
+
|
|
54
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
55
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
56
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
57
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
58
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
59
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
60
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
61
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
62
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
63
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
64
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
65
|
+
|
|
66
|
+
function isValidElementType(type) {
|
|
67
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
68
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function typeOf(object) {
|
|
72
|
+
if (typeof object === 'object' && object !== null) {
|
|
73
|
+
var $$typeof = object.$$typeof;
|
|
74
|
+
|
|
75
|
+
switch ($$typeof) {
|
|
76
|
+
case REACT_ELEMENT_TYPE:
|
|
77
|
+
var type = object.type;
|
|
78
|
+
|
|
79
|
+
switch (type) {
|
|
80
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
81
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
82
|
+
case REACT_FRAGMENT_TYPE:
|
|
83
|
+
case REACT_PROFILER_TYPE:
|
|
84
|
+
case REACT_STRICT_MODE_TYPE:
|
|
85
|
+
case REACT_SUSPENSE_TYPE:
|
|
86
|
+
return type;
|
|
87
|
+
|
|
88
|
+
default:
|
|
89
|
+
var $$typeofType = type && type.$$typeof;
|
|
90
|
+
|
|
91
|
+
switch ($$typeofType) {
|
|
92
|
+
case REACT_CONTEXT_TYPE:
|
|
93
|
+
case REACT_FORWARD_REF_TYPE:
|
|
94
|
+
case REACT_LAZY_TYPE:
|
|
95
|
+
case REACT_MEMO_TYPE:
|
|
96
|
+
case REACT_PROVIDER_TYPE:
|
|
97
|
+
return $$typeofType;
|
|
98
|
+
|
|
99
|
+
default:
|
|
100
|
+
return $$typeof;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
case REACT_PORTAL_TYPE:
|
|
106
|
+
return $$typeof;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return undefined;
|
|
111
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
112
|
+
|
|
113
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
114
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
115
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
116
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
117
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
118
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
119
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
120
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
121
|
+
var Memo = REACT_MEMO_TYPE;
|
|
122
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
123
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
124
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
125
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
126
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
127
|
+
|
|
128
|
+
function isAsyncMode(object) {
|
|
129
|
+
{
|
|
130
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
131
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
132
|
+
|
|
133
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
138
|
+
}
|
|
139
|
+
function isConcurrentMode(object) {
|
|
140
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
141
|
+
}
|
|
142
|
+
function isContextConsumer(object) {
|
|
143
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
144
|
+
}
|
|
145
|
+
function isContextProvider(object) {
|
|
146
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
147
|
+
}
|
|
148
|
+
function isElement(object) {
|
|
149
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
150
|
+
}
|
|
151
|
+
function isForwardRef(object) {
|
|
152
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
153
|
+
}
|
|
154
|
+
function isFragment(object) {
|
|
155
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
156
|
+
}
|
|
157
|
+
function isLazy(object) {
|
|
158
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
159
|
+
}
|
|
160
|
+
function isMemo(object) {
|
|
161
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
162
|
+
}
|
|
163
|
+
function isPortal(object) {
|
|
164
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
165
|
+
}
|
|
166
|
+
function isProfiler(object) {
|
|
167
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
168
|
+
}
|
|
169
|
+
function isStrictMode(object) {
|
|
170
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
171
|
+
}
|
|
172
|
+
function isSuspense(object) {
|
|
173
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
177
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
178
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
179
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
180
|
+
reactIs_development.Element = Element;
|
|
181
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
182
|
+
reactIs_development.Fragment = Fragment;
|
|
183
|
+
reactIs_development.Lazy = Lazy;
|
|
184
|
+
reactIs_development.Memo = Memo;
|
|
185
|
+
reactIs_development.Portal = Portal;
|
|
186
|
+
reactIs_development.Profiler = Profiler;
|
|
187
|
+
reactIs_development.StrictMode = StrictMode;
|
|
188
|
+
reactIs_development.Suspense = Suspense;
|
|
189
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
190
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
191
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
192
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
193
|
+
reactIs_development.isElement = isElement;
|
|
194
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
195
|
+
reactIs_development.isFragment = isFragment;
|
|
196
|
+
reactIs_development.isLazy = isLazy;
|
|
197
|
+
reactIs_development.isMemo = isMemo;
|
|
198
|
+
reactIs_development.isPortal = isPortal;
|
|
199
|
+
reactIs_development.isProfiler = isProfiler;
|
|
200
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
201
|
+
reactIs_development.isSuspense = isSuspense;
|
|
202
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
203
|
+
reactIs_development.typeOf = typeOf;
|
|
204
|
+
})();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (process.env.NODE_ENV === 'production') {
|
|
208
|
+
reactIs.exports = reactIs_production_min;
|
|
209
|
+
} else {
|
|
210
|
+
reactIs.exports = reactIs_development;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/*
|
|
214
|
+
object-assign
|
|
215
|
+
(c) Sindre Sorhus
|
|
216
|
+
@license MIT
|
|
217
|
+
*/
|
|
218
|
+
/* eslint-disable no-unused-vars */
|
|
219
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
220
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
221
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
222
|
+
|
|
223
|
+
function toObject(val) {
|
|
224
|
+
if (val === null || val === undefined) {
|
|
225
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return Object(val);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function shouldUseNative() {
|
|
232
|
+
try {
|
|
233
|
+
if (!Object.assign) {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
238
|
+
|
|
239
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
240
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
241
|
+
test1[5] = 'de';
|
|
242
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
247
|
+
var test2 = {};
|
|
248
|
+
for (var i = 0; i < 10; i++) {
|
|
249
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
250
|
+
}
|
|
251
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
252
|
+
return test2[n];
|
|
253
|
+
});
|
|
254
|
+
if (order2.join('') !== '0123456789') {
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
259
|
+
var test3 = {};
|
|
260
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
261
|
+
test3[letter] = letter;
|
|
262
|
+
});
|
|
263
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
264
|
+
'abcdefghijklmnopqrst') {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
return true;
|
|
269
|
+
} catch (err) {
|
|
270
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
276
|
+
var from;
|
|
277
|
+
var to = toObject(target);
|
|
278
|
+
var symbols;
|
|
279
|
+
|
|
280
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
281
|
+
from = Object(arguments[s]);
|
|
282
|
+
|
|
283
|
+
for (var key in from) {
|
|
284
|
+
if (hasOwnProperty.call(from, key)) {
|
|
285
|
+
to[key] = from[key];
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (getOwnPropertySymbols) {
|
|
290
|
+
symbols = getOwnPropertySymbols(from);
|
|
291
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
292
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
293
|
+
to[symbols[i]] = from[symbols[i]];
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return to;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
304
|
+
*
|
|
305
|
+
* This source code is licensed under the MIT license found in the
|
|
306
|
+
* LICENSE file in the root directory of this source tree.
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
310
|
+
|
|
311
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
312
|
+
|
|
313
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7
314
|
|
|
8
315
|
/**
|
|
9
316
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -12,11 +319,113 @@ import { r as reactIs } from '../../_virtual/index3.js';
|
|
|
12
319
|
* LICENSE file in the root directory of this source tree.
|
|
13
320
|
*/
|
|
14
321
|
|
|
15
|
-
var
|
|
322
|
+
var printWarning$1 = function() {};
|
|
323
|
+
|
|
324
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
325
|
+
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
326
|
+
var loggedTypeFailures = {};
|
|
327
|
+
var has$1 = has$2;
|
|
328
|
+
|
|
329
|
+
printWarning$1 = function(text) {
|
|
330
|
+
var message = 'Warning: ' + text;
|
|
331
|
+
if (typeof console !== 'undefined') {
|
|
332
|
+
console.error(message);
|
|
333
|
+
}
|
|
334
|
+
try {
|
|
335
|
+
// --- Welcome to debugging React ---
|
|
336
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
337
|
+
// to find the callsite that caused this warning to fire.
|
|
338
|
+
throw new Error(message);
|
|
339
|
+
} catch (x) { /**/ }
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Assert that the values match with the type specs.
|
|
345
|
+
* Error messages are memorized and will only be shown once.
|
|
346
|
+
*
|
|
347
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
348
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
349
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
350
|
+
* @param {string} componentName Name of the component for error messages.
|
|
351
|
+
* @param {?Function} getStack Returns the component stack.
|
|
352
|
+
* @private
|
|
353
|
+
*/
|
|
354
|
+
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
355
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
356
|
+
for (var typeSpecName in typeSpecs) {
|
|
357
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
358
|
+
var error;
|
|
359
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
360
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
361
|
+
// After these have been cleaned up, we'll let them throw.
|
|
362
|
+
try {
|
|
363
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
364
|
+
// behavior as without this statement except with a better message.
|
|
365
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
366
|
+
var err = Error(
|
|
367
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
368
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
369
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
370
|
+
);
|
|
371
|
+
err.name = 'Invariant Violation';
|
|
372
|
+
throw err;
|
|
373
|
+
}
|
|
374
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
375
|
+
} catch (ex) {
|
|
376
|
+
error = ex;
|
|
377
|
+
}
|
|
378
|
+
if (error && !(error instanceof Error)) {
|
|
379
|
+
printWarning$1(
|
|
380
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
381
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
382
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
383
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
384
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
385
|
+
'shape all require an argument).'
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
389
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
390
|
+
// same error.
|
|
391
|
+
loggedTypeFailures[error.message] = true;
|
|
392
|
+
|
|
393
|
+
var stack = getStack ? getStack() : '';
|
|
394
|
+
|
|
395
|
+
printWarning$1(
|
|
396
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Resets warning cache when testing.
|
|
406
|
+
*
|
|
407
|
+
* @private
|
|
408
|
+
*/
|
|
409
|
+
checkPropTypes$1.resetWarningCache = function() {
|
|
410
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
411
|
+
loggedTypeFailures = {};
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
var checkPropTypes_1 = checkPropTypes$1;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
419
|
+
*
|
|
420
|
+
* This source code is licensed under the MIT license found in the
|
|
421
|
+
* LICENSE file in the root directory of this source tree.
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
var ReactIs$1 = reactIs.exports;
|
|
16
425
|
var assign = objectAssign;
|
|
17
426
|
|
|
18
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
19
|
-
var has = has$
|
|
427
|
+
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
428
|
+
var has = has$2;
|
|
20
429
|
var checkPropTypes = checkPropTypes_1;
|
|
21
430
|
|
|
22
431
|
var printWarning = function() {};
|
|
@@ -182,7 +591,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
182
591
|
componentName = componentName || ANONYMOUS;
|
|
183
592
|
propFullName = propFullName || propName;
|
|
184
593
|
|
|
185
|
-
if (secret !== ReactPropTypesSecret) {
|
|
594
|
+
if (secret !== ReactPropTypesSecret$1) {
|
|
186
595
|
if (throwOnDirectAccess) {
|
|
187
596
|
// New behavior only for users of `prop-types` package
|
|
188
597
|
var err = new Error(
|
|
@@ -266,7 +675,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
266
675
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
267
676
|
}
|
|
268
677
|
for (var i = 0; i < propValue.length; i++) {
|
|
269
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
678
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
|
|
270
679
|
if (error instanceof Error) {
|
|
271
680
|
return error;
|
|
272
681
|
}
|
|
@@ -291,7 +700,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
291
700
|
function createElementTypeTypeChecker() {
|
|
292
701
|
function validate(props, propName, componentName, location, propFullName) {
|
|
293
702
|
var propValue = props[propName];
|
|
294
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
703
|
+
if (!ReactIs$1.isValidElementType(propValue)) {
|
|
295
704
|
var propType = getPropType(propValue);
|
|
296
705
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
297
706
|
}
|
|
@@ -359,7 +768,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
359
768
|
}
|
|
360
769
|
for (var key in propValue) {
|
|
361
770
|
if (has(propValue, key)) {
|
|
362
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
771
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
363
772
|
if (error instanceof Error) {
|
|
364
773
|
return error;
|
|
365
774
|
}
|
|
@@ -391,7 +800,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
391
800
|
var expectedTypes = [];
|
|
392
801
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
393
802
|
var checker = arrayOfTypeCheckers[i];
|
|
394
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
803
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
|
|
395
804
|
if (checkerResult == null) {
|
|
396
805
|
return null;
|
|
397
806
|
}
|
|
@@ -434,7 +843,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
434
843
|
if (typeof checker !== 'function') {
|
|
435
844
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
436
845
|
}
|
|
437
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
846
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
438
847
|
if (error) {
|
|
439
848
|
return error;
|
|
440
849
|
}
|
|
@@ -465,7 +874,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
465
874
|
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
466
875
|
);
|
|
467
876
|
}
|
|
468
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
877
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
469
878
|
if (error) {
|
|
470
879
|
return error;
|
|
471
880
|
}
|
|
@@ -614,4 +1023,160 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
614
1023
|
return ReactPropTypes;
|
|
615
1024
|
};
|
|
616
1025
|
|
|
617
|
-
|
|
1026
|
+
/**
|
|
1027
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1028
|
+
*
|
|
1029
|
+
* This source code is licensed under the MIT license found in the
|
|
1030
|
+
* LICENSE file in the root directory of this source tree.
|
|
1031
|
+
*/
|
|
1032
|
+
|
|
1033
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1034
|
+
|
|
1035
|
+
function emptyFunction() {}
|
|
1036
|
+
function emptyFunctionWithReset() {}
|
|
1037
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1038
|
+
|
|
1039
|
+
var factoryWithThrowingShims = function() {
|
|
1040
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1041
|
+
if (secret === ReactPropTypesSecret) {
|
|
1042
|
+
// It is still safe when called from React.
|
|
1043
|
+
return;
|
|
1044
|
+
}
|
|
1045
|
+
var err = new Error(
|
|
1046
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1047
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1048
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
1049
|
+
);
|
|
1050
|
+
err.name = 'Invariant Violation';
|
|
1051
|
+
throw err;
|
|
1052
|
+
} shim.isRequired = shim;
|
|
1053
|
+
function getShim() {
|
|
1054
|
+
return shim;
|
|
1055
|
+
} // Important!
|
|
1056
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1057
|
+
var ReactPropTypes = {
|
|
1058
|
+
array: shim,
|
|
1059
|
+
bigint: shim,
|
|
1060
|
+
bool: shim,
|
|
1061
|
+
func: shim,
|
|
1062
|
+
number: shim,
|
|
1063
|
+
object: shim,
|
|
1064
|
+
string: shim,
|
|
1065
|
+
symbol: shim,
|
|
1066
|
+
|
|
1067
|
+
any: shim,
|
|
1068
|
+
arrayOf: getShim,
|
|
1069
|
+
element: shim,
|
|
1070
|
+
elementType: shim,
|
|
1071
|
+
instanceOf: getShim,
|
|
1072
|
+
node: shim,
|
|
1073
|
+
objectOf: getShim,
|
|
1074
|
+
oneOf: getShim,
|
|
1075
|
+
oneOfType: getShim,
|
|
1076
|
+
shape: getShim,
|
|
1077
|
+
exact: getShim,
|
|
1078
|
+
|
|
1079
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
1080
|
+
resetWarningCache: emptyFunction
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1084
|
+
|
|
1085
|
+
return ReactPropTypes;
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1090
|
+
*
|
|
1091
|
+
* This source code is licensed under the MIT license found in the
|
|
1092
|
+
* LICENSE file in the root directory of this source tree.
|
|
1093
|
+
*/
|
|
1094
|
+
|
|
1095
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1096
|
+
var ReactIs = reactIs.exports;
|
|
1097
|
+
|
|
1098
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1099
|
+
// http://fb.me/prop-types-in-prod
|
|
1100
|
+
var throwOnDirectAccess = true;
|
|
1101
|
+
propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1102
|
+
} else {
|
|
1103
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1104
|
+
// http://fb.me/prop-types-in-prod
|
|
1105
|
+
propTypes.exports = factoryWithThrowingShims();
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
var PropTypes = propTypes.exports;
|
|
1109
|
+
|
|
1110
|
+
function styleInject(css, ref) {
|
|
1111
|
+
if ( ref === void 0 ) ref = {};
|
|
1112
|
+
var insertAt = ref.insertAt;
|
|
1113
|
+
|
|
1114
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
1115
|
+
|
|
1116
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1117
|
+
var style = document.createElement('style');
|
|
1118
|
+
style.type = 'text/css';
|
|
1119
|
+
|
|
1120
|
+
if (insertAt === 'top') {
|
|
1121
|
+
if (head.firstChild) {
|
|
1122
|
+
head.insertBefore(style, head.firstChild);
|
|
1123
|
+
} else {
|
|
1124
|
+
head.appendChild(style);
|
|
1125
|
+
}
|
|
1126
|
+
} else {
|
|
1127
|
+
head.appendChild(style);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
if (style.styleSheet) {
|
|
1131
|
+
style.styleSheet.cssText = css;
|
|
1132
|
+
} else {
|
|
1133
|
+
style.appendChild(document.createTextNode(css));
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
var css_248z = "/**\n * Colors\n */";
|
|
1138
|
+
var importedColors = {"orange-600":"#634e01","orange-500":"#ff9900","orange-400":"#ffcb7e","emerald-600":"#296c58","emerald-500":"#30826a","emerald-400":"#64b49d","emerald-300":"#bfe0d5","emerald-200":"#f3f9f7","gray-900":"#141313","gray-800":"#272727","gray-700":"#323232","gray-600":"#505050","gray-500":"#767676","gray-400":"#b0b6b9","gray-300":"#d9dce0","gray-200":"#eff1f4","gray-100":"#f7f8f9","gray-50":"#f4f4f5","cercise-500":"#5f1031","cercise-400":"#854962","cercise-300":"#d099b0","cercise-200":"#fecaca","cercise-100":"#f9f3f5","red-600":"#7f1b1b","red-500":"#d83000","red-200":"#fbeae6","brown-500":"#634e01","signal-yellow-500":"#f4e21e","signal-yellow-400":"#fff36c","signal-green-500":"#00bd98","signal-green-400":"#a3ffe0","black":"#202435","white":"#ffffff"};
|
|
1139
|
+
styleInject(css_248z);
|
|
1140
|
+
|
|
1141
|
+
const defaultTheme = {
|
|
1142
|
+
getColor: name => {
|
|
1143
|
+
if (!importedColors[name]) throw Error(`The color "${name}" is not registered.`);
|
|
1144
|
+
return importedColors[name];
|
|
1145
|
+
},
|
|
1146
|
+
primaryFontFamily: "'Roboto', sans-serif",
|
|
1147
|
+
secondaryFontFamily: "'Overpass', sans-serif",
|
|
1148
|
+
themeProp
|
|
1149
|
+
};
|
|
1150
|
+
function themeProp(property, darkMode, lightMode, specificity = 2) {
|
|
1151
|
+
const specificityString = Array(specificity).fill("&").join("");
|
|
1152
|
+
return styled.css`
|
|
1153
|
+
body.dark-theme ${specificityString} {
|
|
1154
|
+
${property}: ${darkMode};
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
body.light-theme ${specificityString} {
|
|
1158
|
+
${property}: ${lightMode};
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
body:not(.light-theme):not(.dark-theme) ${specificityString} {
|
|
1162
|
+
${property}: ${lightMode};
|
|
1163
|
+
|
|
1164
|
+
@media (prefers-color-scheme: dark) {
|
|
1165
|
+
${property}: ${darkMode};
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
`;
|
|
1169
|
+
}
|
|
1170
|
+
function applyDefaultTheme({
|
|
1171
|
+
theme = {},
|
|
1172
|
+
...props
|
|
1173
|
+
}) {
|
|
1174
|
+
return {
|
|
1175
|
+
...props,
|
|
1176
|
+
theme: Object.assign({}, defaultTheme, theme)
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
exports.PropTypes = PropTypes;
|
|
1181
|
+
exports.applyDefaultTheme = applyDefaultTheme;
|
|
1182
|
+
exports.styleInject = styleInject;
|