@ntbjs/react-components 1.3.0-rc.9 → 2.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +7 -8
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
- package/cjs/_virtual/index.js +7 -0
- package/cjs/_virtual/index2.js +7 -0
- package/cjs/_virtual/index3.js +7 -0
- package/cjs/_virtual/index4.js +7 -0
- package/cjs/_virtual/react-dom.development.js +7 -0
- package/cjs/_virtual/react-dom.production.js +7 -0
- package/cjs/_virtual/react-is.development.js +7 -0
- package/cjs/_virtual/react-is.production.min.js +7 -0
- package/cjs/_virtual/react.development.js +7 -0
- package/cjs/_virtual/react.production.js +7 -0
- package/cjs/components/data/Alert/Alert.js +81 -0
- package/cjs/components/data/Alert/Alert.styled.js +72 -0
- package/cjs/components/data/Alert/data/Alert/index.js +9 -0
- package/cjs/components/data/Badge/Badge.js +93 -0
- package/cjs/components/data/Badge/Badge.styled.js +156 -0
- package/cjs/components/data/Badge/data/Badge/index.js +9 -0
- package/cjs/components/data/Popover/Popover.js +102 -0
- package/cjs/components/data/Popover/Popover.styled.js +159 -0
- package/cjs/components/data/Popover/data/Popover/index.js +9 -0
- package/cjs/components/data/Tab/Tab.js +31 -0
- package/cjs/components/data/Tab/Tab.styled.js +22 -0
- package/cjs/components/data/Tab/data/Tab/index.js +9 -0
- package/cjs/components/data/Tabs/Tabs.js +91 -0
- package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
- package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
- package/cjs/components/data/Tooltip/Tooltip.js +50 -0
- package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
- package/cjs/components/data/data/index.js +21 -0
- package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
- package/cjs/components/inputs/Button/Button.js +188 -0
- package/cjs/components/inputs/Button/Button.styled.js +294 -0
- package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
- package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
- package/cjs/components/inputs/Radio/Radio.js +67 -0
- package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
- package/cjs/components/inputs/Switch/Switch.js +69 -0
- package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
- package/cjs/components/inputs/TextArea/TextArea.js +186 -0
- package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
- package/cjs/components/inputs/TextInput/TextInput.js +147 -0
- package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
- package/cjs/components/inputs/inputs/index.js +33 -0
- package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
- package/cjs/components/layout/layout/index.js +11 -0
- package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
- package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
- package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
- package/cjs/components/widgets/Instructions/Instructions.js +217 -0
- package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
- package/cjs/components/widgets/widgets/index.js +25 -0
- package/cjs/hooks/useEventListner.js +26 -0
- package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/cjs/hooks/useOnClickOutside.js +17 -0
- package/cjs/icons/arrow-back.svg.js +20 -0
- package/cjs/icons/arrow-forward.svg.js +20 -0
- package/cjs/icons/check-rectangle-filled.svg.js +20 -0
- package/cjs/icons/close.svg.js +20 -0
- package/cjs/icons/edit-note.svg.js +20 -0
- package/cjs/icons/expand-more.svg.js +20 -0
- package/cjs/icons/headset.svg.js +20 -0
- package/cjs/icons/layers.svg.js +20 -0
- package/cjs/icons/link.svg.js +20 -0
- package/cjs/icons/play.svg.js +20 -0
- package/cjs/icons/search.svg.js +20 -0
- package/cjs/icons/star-filled.svg.js +20 -0
- package/cjs/icons/star.svg.js +20 -0
- package/cjs/icons/triangle-right.svg.js +20 -0
- package/cjs/icons/verification.svg.js +20 -0
- package/cjs/icons/warning-circle.svg.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +445 -0
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +116 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +63 -0
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +14 -0
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +51 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
- package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
- package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
- package/cjs/node_modules/object-assign/index.js +94 -0
- package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
- package/cjs/node_modules/prop-types/index.js +33 -0
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
- package/cjs/node_modules/prop-types/lib/has.js +7 -0
- package/cjs/node_modules/react/cjs/react.development.js +1246 -0
- package/cjs/node_modules/react/cjs/react.production.js +552 -0
- package/cjs/node_modules/react/index.js +19 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
- package/cjs/node_modules/react-dom/index.js +44 -0
- package/cjs/node_modules/react-is/cjs/react-is.development.js +228 -0
- package/cjs/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
- package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
- package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/cjs/node_modules/stylis/src/Enum.js +24 -0
- package/cjs/node_modules/stylis/src/Middleware.js +37 -0
- package/cjs/node_modules/stylis/src/Parser.js +201 -0
- package/cjs/node_modules/stylis/src/Serializer.js +43 -0
- package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
- package/cjs/node_modules/stylis/src/Utility.js +134 -0
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +10 -0
- package/{ssr → cjs/ssr/ssr}/index.js +1 -3
- package/cjs/styles/utils/colors.scss.js +11 -0
- package/cjs/utils/dateTime.js +20 -0
- package/cjs/utils/defaultTheme.js +52 -0
- package/doctor-storybook.log +20 -0
- package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
- package/esm/_virtual/index.js +3 -0
- package/esm/_virtual/index2.js +3 -0
- package/esm/_virtual/index3.js +3 -0
- package/esm/_virtual/index4.js +3 -0
- package/esm/_virtual/react-dom.development.js +3 -0
- package/esm/_virtual/react-dom.production.js +3 -0
- package/esm/_virtual/react-is.development.js +3 -0
- package/esm/_virtual/react-is.production.min.js +3 -0
- package/esm/_virtual/react.development.js +3 -0
- package/esm/_virtual/react.production.js +3 -0
- package/esm/components/data/Alert/Alert.js +77 -0
- package/esm/components/data/Alert/Alert.styled.js +63 -0
- package/esm/components/data/Alert/data/Alert/index.js +1 -0
- package/esm/components/data/Badge/Badge.js +89 -0
- package/esm/components/data/Badge/Badge.styled.js +145 -0
- package/esm/components/data/Badge/data/Badge/index.js +1 -0
- package/esm/components/data/Popover/Popover.js +94 -0
- package/esm/components/data/Popover/Popover.styled.js +150 -0
- package/esm/components/data/Popover/data/Popover/index.js +1 -0
- package/esm/components/data/Tab/Tab.js +27 -0
- package/esm/components/data/Tab/Tab.styled.js +14 -0
- package/esm/components/data/Tab/data/Tab/index.js +1 -0
- package/esm/components/data/Tabs/Tabs.js +87 -0
- package/esm/components/data/Tabs/Tabs.styled.js +85 -0
- package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
- package/esm/components/data/Tooltip/Tooltip.js +46 -0
- package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
- package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
- package/esm/components/data/data/index.js +7 -0
- package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
- package/esm/components/inputs/Button/Button.js +184 -0
- package/esm/components/inputs/Button/Button.styled.js +277 -0
- package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
- package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
- package/esm/components/inputs/Radio/Radio.js +63 -0
- package/esm/components/inputs/Radio/Radio.styled.js +84 -0
- package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
- package/esm/components/inputs/Switch/Switch.js +65 -0
- package/esm/components/inputs/Switch/Switch.styled.js +110 -0
- package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
- package/esm/components/inputs/TextArea/TextArea.js +182 -0
- package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
- package/esm/components/inputs/TextInput/TextInput.js +143 -0
- package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
- package/esm/components/inputs/inputs/index.js +13 -0
- package/esm/components/layout/InputGroup/InputGroup.js +22 -0
- package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
- package/esm/components/layout/layout/index.js +2 -0
- package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
- package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
- package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
- package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
- package/esm/components/widgets/Instructions/Instructions.js +213 -0
- package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
- package/esm/components/widgets/widgets/index.js +9 -0
- package/esm/hooks/useEventListner.js +22 -0
- package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/esm/hooks/useOnClickOutside.js +13 -0
- package/esm/icons/arrow-back.svg.js +16 -0
- package/esm/icons/arrow-forward.svg.js +16 -0
- package/esm/icons/check-rectangle-filled.svg.js +16 -0
- package/esm/icons/close.svg.js +16 -0
- package/esm/icons/edit-note.svg.js +16 -0
- package/esm/icons/expand-more.svg.js +16 -0
- package/esm/icons/headset.svg.js +16 -0
- package/esm/icons/layers.svg.js +16 -0
- package/esm/icons/link.svg.js +16 -0
- package/esm/icons/play.svg.js +16 -0
- package/esm/icons/search.svg.js +16 -0
- package/esm/icons/star-filled.svg.js +16 -0
- package/esm/icons/star.svg.js +16 -0
- package/esm/icons/triangle-right.svg.js +16 -0
- package/esm/icons/verification.svg.js +16 -0
- package/esm/icons/warning-circle.svg.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +441 -0
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +107 -0
- package/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +56 -0
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +10 -0
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
- package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
- package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
- package/esm/node_modules/object-assign/index.js +90 -0
- package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
- package/{index-39bc450c.js → esm/node_modules/prop-types/factoryWithTypeCheckers.js} +46 -514
- package/esm/node_modules/prop-types/index.js +29 -0
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/esm/node_modules/prop-types/lib/has.js +3 -0
- package/esm/node_modules/react/cjs/react.development.js +1244 -0
- package/esm/node_modules/react/cjs/react.production.js +547 -0
- package/esm/node_modules/react/index.js +15 -0
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
- package/esm/node_modules/react-dom/index.js +42 -0
- package/esm/node_modules/react-is/cjs/react-is.development.js +223 -0
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
- package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
- package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/esm/node_modules/stylis/src/Enum.js +12 -0
- package/esm/node_modules/stylis/src/Middleware.js +32 -0
- package/esm/node_modules/stylis/src/Parser.js +193 -0
- package/esm/node_modules/stylis/src/Serializer.js +38 -0
- package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
- package/esm/node_modules/stylis/src/Utility.js +117 -0
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
- package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +6 -0
- package/esm/ssr/ssr/index.js +1 -0
- package/esm/styles/utils/colors.scss.js +7 -0
- package/esm/utils/dateTime.js +16 -0
- package/esm/utils/defaultTheme.js +47 -0
- package/icons/arrow-forward.svg +3 -0
- package/icons/index.js +2 -0
- package/migration-storybook.log +392 -0
- package/package.json +59 -21
- package/styles/all.scss +3 -3
- package/styles/config.scss +3 -0
- package/styles/utils/colors.scss +1 -1
- package/styles/utils/theme.scss +2 -0
- package/ActionButton-15b418c5.js +0 -62
- package/Alert-e9f818d6.js +0 -118
- package/AssetGallery-66cb0dab.js +0 -1925
- package/AssetPreviewTopBar-21b7e172.js +0 -100
- package/AsyncSelect-368b5068.js +0 -28
- package/Badge-72b369a6.js +0 -222
- package/Button-34ce13c6.js +0 -265
- package/Checkbox-d77eed5d.js +0 -141
- package/CompactAutocompleteSelect-72d523e3.js +0 -452
- package/CompactStarRating-bf45f620.js +0 -340
- package/CompactTextInput-0b1979f1.js +0 -350
- package/ContextMenu-f69599d5.js +0 -33
- package/ContextMenuItem-9c5c4c9f.js +0 -111
- package/InputGroup-e30507cb.js +0 -29
- package/Instructions-42d2bc58.js +0 -264
- package/MultiLevelCheckboxSelect-acaac96b.js +0 -699
- package/MultiSelect-ecb48e03.js +0 -378
- package/Popover-a76d0fe5.js +0 -147
- package/Radio-7d5f630d.js +0 -87
- package/SectionSeparator-2a1c720b.js +0 -38
- package/Switch-006abdbd.js +0 -108
- package/Tab-87287c6e.js +0 -36
- package/Tabs-8e4de5a5.js +0 -152
- package/TextArea-76231a3b.js +0 -376
- package/TextInput-a440374c.js +0 -237
- package/Tooltip-298f0547.js +0 -62
- package/VerificationStatusIcon-d596165f.js +0 -122
- package/close-ebf2f3cf.js +0 -41
- package/data/Alert/index.js +0 -12
- package/data/Badge/index.js +0 -11
- package/data/Popover/index.js +0 -16
- package/data/Tab/index.js +0 -11
- package/data/Tabs/index.js +0 -13
- package/data/Tooltip/index.js +0 -13
- package/data/index.js +0 -30
- package/defaultTheme-fcd45bd0.js +0 -339
- package/edit-note-c47d292e.js +0 -41
- package/expand-more-94585605.js +0 -41
- package/inputs/ActionButton/index.js +0 -12
- package/inputs/AsyncSelect/index.js +0 -11
- package/inputs/Button/index.js +0 -19
- package/inputs/Checkbox/index.js +0 -13
- package/inputs/CompactAutocompleteSelect/index.js +0 -30
- package/inputs/CompactStarRating/index.js +0 -23
- package/inputs/CompactTextInput/index.js +0 -25
- package/inputs/MultiSelect/index.js +0 -17
- package/inputs/Radio/index.js +0 -13
- package/inputs/Switch/index.js +0 -13
- package/inputs/TextArea/index.js +0 -26
- package/inputs/TextInput/index.js +0 -15
- package/inputs/index.js +0 -62
- package/layout/InputGroup/index.js +0 -11
- package/layout/SectionSeparator/index.js +0 -11
- package/layout/index.js +0 -15
- package/react-select-creatable.esm-2f23d6c6.js +0 -7709
- package/shift-away-subtle-45129125.js +0 -9
- package/warning-circle-24522402.js +0 -41
- package/widgets/AssetGallery/index.js +0 -52
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -12
- package/widgets/ContextMenu/ContextMenuItem/index.js +0 -11
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -33
- package/widgets/ContextMenu/index.js +0 -11
- package/widgets/Instructions/index.js +0 -35
- package/widgets/index.js +0 -60
|
@@ -1,312 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var reactIs_production_min = {};
|
|
8
|
-
|
|
9
|
-
/** @license React v16.13.1
|
|
10
|
-
* react-is.production.min.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
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?
|
|
18
|
-
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;
|
|
19
|
-
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;
|
|
20
|
-
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};
|
|
21
|
-
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};
|
|
22
|
-
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;
|
|
23
|
-
|
|
24
|
-
var reactIs_development = {};
|
|
25
|
-
|
|
26
|
-
/** @license React v16.13.1
|
|
27
|
-
* react-is.development.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (process.env.NODE_ENV !== "production") {
|
|
38
|
-
(function() {
|
|
39
|
-
|
|
40
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
41
|
-
// nor polyfill, then a plain number is used for performance.
|
|
42
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
43
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
44
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
45
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
46
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
47
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
48
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
49
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
50
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
51
|
-
|
|
52
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
53
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
54
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
55
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
56
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
57
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
58
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
59
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
60
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
61
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
62
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
63
|
-
|
|
64
|
-
function isValidElementType(type) {
|
|
65
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
66
|
-
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);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function typeOf(object) {
|
|
70
|
-
if (typeof object === 'object' && object !== null) {
|
|
71
|
-
var $$typeof = object.$$typeof;
|
|
72
|
-
|
|
73
|
-
switch ($$typeof) {
|
|
74
|
-
case REACT_ELEMENT_TYPE:
|
|
75
|
-
var type = object.type;
|
|
76
|
-
|
|
77
|
-
switch (type) {
|
|
78
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
79
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
80
|
-
case REACT_FRAGMENT_TYPE:
|
|
81
|
-
case REACT_PROFILER_TYPE:
|
|
82
|
-
case REACT_STRICT_MODE_TYPE:
|
|
83
|
-
case REACT_SUSPENSE_TYPE:
|
|
84
|
-
return type;
|
|
85
|
-
|
|
86
|
-
default:
|
|
87
|
-
var $$typeofType = type && type.$$typeof;
|
|
88
|
-
|
|
89
|
-
switch ($$typeofType) {
|
|
90
|
-
case REACT_CONTEXT_TYPE:
|
|
91
|
-
case REACT_FORWARD_REF_TYPE:
|
|
92
|
-
case REACT_LAZY_TYPE:
|
|
93
|
-
case REACT_MEMO_TYPE:
|
|
94
|
-
case REACT_PROVIDER_TYPE:
|
|
95
|
-
return $$typeofType;
|
|
96
|
-
|
|
97
|
-
default:
|
|
98
|
-
return $$typeof;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
case REACT_PORTAL_TYPE:
|
|
104
|
-
return $$typeof;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return undefined;
|
|
109
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
110
|
-
|
|
111
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
112
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
113
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
114
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
115
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
116
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
117
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
118
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
119
|
-
var Memo = REACT_MEMO_TYPE;
|
|
120
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
121
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
122
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
123
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
124
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
125
|
-
|
|
126
|
-
function isAsyncMode(object) {
|
|
127
|
-
{
|
|
128
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
129
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
130
|
-
|
|
131
|
-
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.');
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
136
|
-
}
|
|
137
|
-
function isConcurrentMode(object) {
|
|
138
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
139
|
-
}
|
|
140
|
-
function isContextConsumer(object) {
|
|
141
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
142
|
-
}
|
|
143
|
-
function isContextProvider(object) {
|
|
144
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
145
|
-
}
|
|
146
|
-
function isElement(object) {
|
|
147
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
148
|
-
}
|
|
149
|
-
function isForwardRef(object) {
|
|
150
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
151
|
-
}
|
|
152
|
-
function isFragment(object) {
|
|
153
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
154
|
-
}
|
|
155
|
-
function isLazy(object) {
|
|
156
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
157
|
-
}
|
|
158
|
-
function isMemo(object) {
|
|
159
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
160
|
-
}
|
|
161
|
-
function isPortal(object) {
|
|
162
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
163
|
-
}
|
|
164
|
-
function isProfiler(object) {
|
|
165
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
166
|
-
}
|
|
167
|
-
function isStrictMode(object) {
|
|
168
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
169
|
-
}
|
|
170
|
-
function isSuspense(object) {
|
|
171
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
175
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
176
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
177
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
178
|
-
reactIs_development.Element = Element;
|
|
179
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
180
|
-
reactIs_development.Fragment = Fragment;
|
|
181
|
-
reactIs_development.Lazy = Lazy;
|
|
182
|
-
reactIs_development.Memo = Memo;
|
|
183
|
-
reactIs_development.Portal = Portal;
|
|
184
|
-
reactIs_development.Profiler = Profiler;
|
|
185
|
-
reactIs_development.StrictMode = StrictMode;
|
|
186
|
-
reactIs_development.Suspense = Suspense;
|
|
187
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
188
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
189
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
190
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
191
|
-
reactIs_development.isElement = isElement;
|
|
192
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
193
|
-
reactIs_development.isFragment = isFragment;
|
|
194
|
-
reactIs_development.isLazy = isLazy;
|
|
195
|
-
reactIs_development.isMemo = isMemo;
|
|
196
|
-
reactIs_development.isPortal = isPortal;
|
|
197
|
-
reactIs_development.isProfiler = isProfiler;
|
|
198
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
199
|
-
reactIs_development.isSuspense = isSuspense;
|
|
200
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
201
|
-
reactIs_development.typeOf = typeOf;
|
|
202
|
-
})();
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (process.env.NODE_ENV === 'production') {
|
|
206
|
-
reactIs.exports = reactIs_production_min;
|
|
207
|
-
} else {
|
|
208
|
-
reactIs.exports = reactIs_development;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/*
|
|
212
|
-
object-assign
|
|
213
|
-
(c) Sindre Sorhus
|
|
214
|
-
@license MIT
|
|
215
|
-
*/
|
|
216
|
-
/* eslint-disable no-unused-vars */
|
|
217
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
218
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
219
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
220
|
-
|
|
221
|
-
function toObject(val) {
|
|
222
|
-
if (val === null || val === undefined) {
|
|
223
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
return Object(val);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function shouldUseNative() {
|
|
230
|
-
try {
|
|
231
|
-
if (!Object.assign) {
|
|
232
|
-
return false;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
236
|
-
|
|
237
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
238
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
239
|
-
test1[5] = 'de';
|
|
240
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
241
|
-
return false;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
245
|
-
var test2 = {};
|
|
246
|
-
for (var i = 0; i < 10; i++) {
|
|
247
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
248
|
-
}
|
|
249
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
250
|
-
return test2[n];
|
|
251
|
-
});
|
|
252
|
-
if (order2.join('') !== '0123456789') {
|
|
253
|
-
return false;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
257
|
-
var test3 = {};
|
|
258
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
259
|
-
test3[letter] = letter;
|
|
260
|
-
});
|
|
261
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
262
|
-
'abcdefghijklmnopqrst') {
|
|
263
|
-
return false;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
return true;
|
|
267
|
-
} catch (err) {
|
|
268
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
274
|
-
var from;
|
|
275
|
-
var to = toObject(target);
|
|
276
|
-
var symbols;
|
|
277
|
-
|
|
278
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
279
|
-
from = Object(arguments[s]);
|
|
280
|
-
|
|
281
|
-
for (var key in from) {
|
|
282
|
-
if (hasOwnProperty.call(from, key)) {
|
|
283
|
-
to[key] = from[key];
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
if (getOwnPropertySymbols) {
|
|
288
|
-
symbols = getOwnPropertySymbols(from);
|
|
289
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
290
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
291
|
-
to[symbols[i]] = from[symbols[i]];
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
return to;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
302
|
-
*
|
|
303
|
-
* This source code is licensed under the MIT license found in the
|
|
304
|
-
* LICENSE file in the root directory of this source tree.
|
|
305
|
-
*/
|
|
306
|
-
|
|
307
|
-
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
308
|
-
|
|
309
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
1
|
+
import '../react-is/index.js';
|
|
2
|
+
import objectAssign from '../object-assign/index.js';
|
|
3
|
+
import ReactPropTypesSecret_1 from './lib/ReactPropTypesSecret.js';
|
|
4
|
+
import has$1 from './lib/has.js';
|
|
5
|
+
import checkPropTypes_1 from './checkPropTypes.js';
|
|
6
|
+
import { r as reactIs } from '../../_virtual/index3.js';
|
|
310
7
|
|
|
311
8
|
/**
|
|
312
9
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -315,114 +12,13 @@ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
|
315
12
|
* LICENSE file in the root directory of this source tree.
|
|
316
13
|
*/
|
|
317
14
|
|
|
318
|
-
var
|
|
319
|
-
|
|
320
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
321
|
-
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
322
|
-
var loggedTypeFailures = {};
|
|
323
|
-
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
324
|
-
|
|
325
|
-
printWarning$1 = function(text) {
|
|
326
|
-
var message = 'Warning: ' + text;
|
|
327
|
-
if (typeof console !== 'undefined') {
|
|
328
|
-
console.error(message);
|
|
329
|
-
}
|
|
330
|
-
try {
|
|
331
|
-
// --- Welcome to debugging React ---
|
|
332
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
333
|
-
// to find the callsite that caused this warning to fire.
|
|
334
|
-
throw new Error(message);
|
|
335
|
-
} catch (x) {}
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Assert that the values match with the type specs.
|
|
341
|
-
* Error messages are memorized and will only be shown once.
|
|
342
|
-
*
|
|
343
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
344
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
345
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
346
|
-
* @param {string} componentName Name of the component for error messages.
|
|
347
|
-
* @param {?Function} getStack Returns the component stack.
|
|
348
|
-
* @private
|
|
349
|
-
*/
|
|
350
|
-
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
351
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
352
|
-
for (var typeSpecName in typeSpecs) {
|
|
353
|
-
if (has$1(typeSpecs, typeSpecName)) {
|
|
354
|
-
var error;
|
|
355
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
356
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
357
|
-
// After these have been cleaned up, we'll let them throw.
|
|
358
|
-
try {
|
|
359
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
360
|
-
// behavior as without this statement except with a better message.
|
|
361
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
362
|
-
var err = Error(
|
|
363
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
364
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
365
|
-
);
|
|
366
|
-
err.name = 'Invariant Violation';
|
|
367
|
-
throw err;
|
|
368
|
-
}
|
|
369
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
370
|
-
} catch (ex) {
|
|
371
|
-
error = ex;
|
|
372
|
-
}
|
|
373
|
-
if (error && !(error instanceof Error)) {
|
|
374
|
-
printWarning$1(
|
|
375
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
376
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
377
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
378
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
379
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
380
|
-
'shape all require an argument).'
|
|
381
|
-
);
|
|
382
|
-
}
|
|
383
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
384
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
385
|
-
// same error.
|
|
386
|
-
loggedTypeFailures[error.message] = true;
|
|
387
|
-
|
|
388
|
-
var stack = getStack ? getStack() : '';
|
|
389
|
-
|
|
390
|
-
printWarning$1(
|
|
391
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
392
|
-
);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Resets warning cache when testing.
|
|
401
|
-
*
|
|
402
|
-
* @private
|
|
403
|
-
*/
|
|
404
|
-
checkPropTypes$1.resetWarningCache = function() {
|
|
405
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
406
|
-
loggedTypeFailures = {};
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
var checkPropTypes_1 = checkPropTypes$1;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
414
|
-
*
|
|
415
|
-
* This source code is licensed under the MIT license found in the
|
|
416
|
-
* LICENSE file in the root directory of this source tree.
|
|
417
|
-
*/
|
|
418
|
-
|
|
419
|
-
var ReactIs$1 = reactIs.exports;
|
|
15
|
+
var ReactIs = reactIs.exports;
|
|
420
16
|
var assign = objectAssign;
|
|
421
17
|
|
|
422
|
-
var ReactPropTypesSecret
|
|
18
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
19
|
+
var has = has$1;
|
|
423
20
|
var checkPropTypes = checkPropTypes_1;
|
|
424
21
|
|
|
425
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
426
22
|
var printWarning = function() {};
|
|
427
23
|
|
|
428
24
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -523,6 +119,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
523
119
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
524
120
|
var ReactPropTypes = {
|
|
525
121
|
array: createPrimitiveTypeChecker('array'),
|
|
122
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
526
123
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
527
124
|
func: createPrimitiveTypeChecker('function'),
|
|
528
125
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -568,8 +165,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
568
165
|
* is prohibitively expensive if they are created too often, such as what
|
|
569
166
|
* happens in oneOfType() for any type before the one that matched.
|
|
570
167
|
*/
|
|
571
|
-
function PropTypeError(message) {
|
|
168
|
+
function PropTypeError(message, data) {
|
|
572
169
|
this.message = message;
|
|
170
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
573
171
|
this.stack = '';
|
|
574
172
|
}
|
|
575
173
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -584,7 +182,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
584
182
|
componentName = componentName || ANONYMOUS;
|
|
585
183
|
propFullName = propFullName || propName;
|
|
586
184
|
|
|
587
|
-
if (secret !== ReactPropTypesSecret
|
|
185
|
+
if (secret !== ReactPropTypesSecret) {
|
|
588
186
|
if (throwOnDirectAccess) {
|
|
589
187
|
// New behavior only for users of `prop-types` package
|
|
590
188
|
var err = new Error(
|
|
@@ -604,7 +202,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
604
202
|
) {
|
|
605
203
|
printWarning(
|
|
606
204
|
'You are manually calling a React.PropTypes validation ' +
|
|
607
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
205
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
608
206
|
'and will throw in the standalone `prop-types` package. ' +
|
|
609
207
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
610
208
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -643,7 +241,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
643
241
|
// 'of type `object`'.
|
|
644
242
|
var preciseType = getPreciseType(propValue);
|
|
645
243
|
|
|
646
|
-
return new PropTypeError(
|
|
244
|
+
return new PropTypeError(
|
|
245
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
246
|
+
{expectedType: expectedType}
|
|
247
|
+
);
|
|
647
248
|
}
|
|
648
249
|
return null;
|
|
649
250
|
}
|
|
@@ -665,7 +266,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
665
266
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
666
267
|
}
|
|
667
268
|
for (var i = 0; i < propValue.length; i++) {
|
|
668
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret
|
|
269
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
669
270
|
if (error instanceof Error) {
|
|
670
271
|
return error;
|
|
671
272
|
}
|
|
@@ -690,7 +291,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
690
291
|
function createElementTypeTypeChecker() {
|
|
691
292
|
function validate(props, propName, componentName, location, propFullName) {
|
|
692
293
|
var propValue = props[propName];
|
|
693
|
-
if (!ReactIs
|
|
294
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
694
295
|
var propType = getPropType(propValue);
|
|
695
296
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
696
297
|
}
|
|
@@ -758,7 +359,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
758
359
|
}
|
|
759
360
|
for (var key in propValue) {
|
|
760
361
|
if (has(propValue, key)) {
|
|
761
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret
|
|
362
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
762
363
|
if (error instanceof Error) {
|
|
763
364
|
return error;
|
|
764
365
|
}
|
|
@@ -787,14 +388,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
787
388
|
}
|
|
788
389
|
|
|
789
390
|
function validate(props, propName, componentName, location, propFullName) {
|
|
391
|
+
var expectedTypes = [];
|
|
790
392
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
791
393
|
var checker = arrayOfTypeCheckers[i];
|
|
792
|
-
|
|
394
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
395
|
+
if (checkerResult == null) {
|
|
793
396
|
return null;
|
|
794
397
|
}
|
|
398
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
399
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
400
|
+
}
|
|
795
401
|
}
|
|
796
|
-
|
|
797
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
402
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
403
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
798
404
|
}
|
|
799
405
|
return createChainableTypeChecker(validate);
|
|
800
406
|
}
|
|
@@ -809,6 +415,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
809
415
|
return createChainableTypeChecker(validate);
|
|
810
416
|
}
|
|
811
417
|
|
|
418
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
419
|
+
return new PropTypeError(
|
|
420
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
421
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
|
|
812
425
|
function createShapeTypeChecker(shapeTypes) {
|
|
813
426
|
function validate(props, propName, componentName, location, propFullName) {
|
|
814
427
|
var propValue = props[propName];
|
|
@@ -818,10 +431,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
818
431
|
}
|
|
819
432
|
for (var key in shapeTypes) {
|
|
820
433
|
var checker = shapeTypes[key];
|
|
821
|
-
if (
|
|
822
|
-
|
|
434
|
+
if (typeof checker !== 'function') {
|
|
435
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
823
436
|
}
|
|
824
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret
|
|
437
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
825
438
|
if (error) {
|
|
826
439
|
return error;
|
|
827
440
|
}
|
|
@@ -838,19 +451,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
838
451
|
if (propType !== 'object') {
|
|
839
452
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
840
453
|
}
|
|
841
|
-
// We need to check all keys in case some are required but missing from
|
|
842
|
-
// props.
|
|
454
|
+
// We need to check all keys in case some are required but missing from props.
|
|
843
455
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
844
456
|
for (var key in allKeys) {
|
|
845
457
|
var checker = shapeTypes[key];
|
|
458
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
459
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
460
|
+
}
|
|
846
461
|
if (!checker) {
|
|
847
462
|
return new PropTypeError(
|
|
848
463
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
849
464
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
850
|
-
'\nValid keys: ' +
|
|
465
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
851
466
|
);
|
|
852
467
|
}
|
|
853
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret
|
|
468
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
854
469
|
if (error) {
|
|
855
470
|
return error;
|
|
856
471
|
}
|
|
@@ -999,87 +614,4 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
999
614
|
return ReactPropTypes;
|
|
1000
615
|
};
|
|
1001
616
|
|
|
1002
|
-
|
|
1003
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1004
|
-
*
|
|
1005
|
-
* This source code is licensed under the MIT license found in the
|
|
1006
|
-
* LICENSE file in the root directory of this source tree.
|
|
1007
|
-
*/
|
|
1008
|
-
|
|
1009
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1010
|
-
|
|
1011
|
-
function emptyFunction() {}
|
|
1012
|
-
function emptyFunctionWithReset() {}
|
|
1013
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1014
|
-
|
|
1015
|
-
var factoryWithThrowingShims = function() {
|
|
1016
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1017
|
-
if (secret === ReactPropTypesSecret) {
|
|
1018
|
-
// It is still safe when called from React.
|
|
1019
|
-
return;
|
|
1020
|
-
}
|
|
1021
|
-
var err = new Error(
|
|
1022
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1023
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1024
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
1025
|
-
);
|
|
1026
|
-
err.name = 'Invariant Violation';
|
|
1027
|
-
throw err;
|
|
1028
|
-
} shim.isRequired = shim;
|
|
1029
|
-
function getShim() {
|
|
1030
|
-
return shim;
|
|
1031
|
-
} // Important!
|
|
1032
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1033
|
-
var ReactPropTypes = {
|
|
1034
|
-
array: shim,
|
|
1035
|
-
bool: shim,
|
|
1036
|
-
func: shim,
|
|
1037
|
-
number: shim,
|
|
1038
|
-
object: shim,
|
|
1039
|
-
string: shim,
|
|
1040
|
-
symbol: shim,
|
|
1041
|
-
|
|
1042
|
-
any: shim,
|
|
1043
|
-
arrayOf: getShim,
|
|
1044
|
-
element: shim,
|
|
1045
|
-
elementType: shim,
|
|
1046
|
-
instanceOf: getShim,
|
|
1047
|
-
node: shim,
|
|
1048
|
-
objectOf: getShim,
|
|
1049
|
-
oneOf: getShim,
|
|
1050
|
-
oneOfType: getShim,
|
|
1051
|
-
shape: getShim,
|
|
1052
|
-
exact: getShim,
|
|
1053
|
-
|
|
1054
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1055
|
-
resetWarningCache: emptyFunction
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1059
|
-
|
|
1060
|
-
return ReactPropTypes;
|
|
1061
|
-
};
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1065
|
-
*
|
|
1066
|
-
* This source code is licensed under the MIT license found in the
|
|
1067
|
-
* LICENSE file in the root directory of this source tree.
|
|
1068
|
-
*/
|
|
1069
|
-
|
|
1070
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1071
|
-
var ReactIs = reactIs.exports;
|
|
1072
|
-
|
|
1073
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1074
|
-
// http://fb.me/prop-types-in-prod
|
|
1075
|
-
var throwOnDirectAccess = true;
|
|
1076
|
-
propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1077
|
-
} else {
|
|
1078
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1079
|
-
// http://fb.me/prop-types-in-prod
|
|
1080
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
var PropTypes = propTypes.exports;
|
|
1084
|
-
|
|
1085
|
-
exports.PropTypes = PropTypes;
|
|
617
|
+
export { factoryWithTypeCheckers as default };
|