@ntbjs/react-components 1.3.0-rc.8 → 2.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +7 -8
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
- package/cjs/_virtual/index.js +7 -0
- package/cjs/_virtual/index2.js +7 -0
- package/cjs/_virtual/index3.js +7 -0
- package/cjs/_virtual/index4.js +7 -0
- package/cjs/_virtual/index5.js +7 -0
- package/cjs/_virtual/react-dom.development.js +7 -0
- package/cjs/_virtual/react-dom.production.js +7 -0
- package/cjs/_virtual/react-is.development.js +7 -0
- package/cjs/_virtual/react-is.development2.js +7 -0
- package/cjs/_virtual/react-is.production.min.js +7 -0
- package/cjs/_virtual/react-is.production.min2.js +7 -0
- package/cjs/_virtual/react.development.js +7 -0
- package/cjs/_virtual/react.production.js +7 -0
- package/cjs/components/data/Alert/Alert.js +81 -0
- package/cjs/components/data/Alert/Alert.styled.js +72 -0
- package/cjs/components/data/Alert/data/Alert/index.js +9 -0
- package/cjs/components/data/Badge/Badge.js +93 -0
- package/cjs/components/data/Badge/Badge.styled.js +156 -0
- package/cjs/components/data/Badge/data/Badge/index.js +9 -0
- package/cjs/components/data/Popover/Popover.js +102 -0
- package/cjs/components/data/Popover/Popover.styled.js +159 -0
- package/cjs/components/data/Popover/data/Popover/index.js +9 -0
- package/cjs/components/data/Tab/Tab.js +31 -0
- package/cjs/components/data/Tab/Tab.styled.js +22 -0
- package/cjs/components/data/Tab/data/Tab/index.js +9 -0
- package/cjs/components/data/Tabs/Tabs.js +91 -0
- package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
- package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
- package/cjs/components/data/Tooltip/Tooltip.js +50 -0
- package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
- package/cjs/components/data/data/index.js +21 -0
- package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
- package/cjs/components/inputs/Button/Button.js +188 -0
- package/cjs/components/inputs/Button/Button.styled.js +294 -0
- package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
- package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
- package/cjs/components/inputs/Radio/Radio.js +67 -0
- package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
- package/cjs/components/inputs/Switch/Switch.js +69 -0
- package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
- package/cjs/components/inputs/TextArea/TextArea.js +186 -0
- package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
- package/cjs/components/inputs/TextInput/TextInput.js +147 -0
- package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
- package/cjs/components/inputs/inputs/index.js +33 -0
- package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
- package/cjs/components/layout/layout/index.js +11 -0
- package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
- package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
- package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
- package/cjs/components/widgets/Instructions/Instructions.js +217 -0
- package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
- package/cjs/components/widgets/widgets/index.js +25 -0
- package/cjs/hooks/useEventListner.js +26 -0
- package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/cjs/hooks/useOnClickOutside.js +17 -0
- package/cjs/icons/arrow-back.svg.js +20 -0
- package/cjs/icons/arrow-forward.svg.js +20 -0
- package/cjs/icons/check-rectangle-filled.svg.js +20 -0
- package/cjs/icons/close.svg.js +20 -0
- package/cjs/icons/edit-note.svg.js +20 -0
- package/cjs/icons/expand-more.svg.js +20 -0
- package/cjs/icons/headset.svg.js +20 -0
- package/cjs/icons/layers.svg.js +20 -0
- package/cjs/icons/link.svg.js +20 -0
- package/cjs/icons/play.svg.js +20 -0
- package/cjs/icons/search.svg.js +20 -0
- package/cjs/icons/star-filled.svg.js +20 -0
- package/cjs/icons/star.svg.js +20 -0
- package/cjs/icons/triangle-right.svg.js +20 -0
- package/cjs/icons/verification.svg.js +20 -0
- package/cjs/icons/warning-circle.svg.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +503 -0
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +158 -0
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +66 -0
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +16 -0
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +60 -0
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
- package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
- package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
- package/cjs/node_modules/object-assign/index.js +94 -0
- package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
- package/cjs/node_modules/prop-types/index.js +33 -0
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
- package/cjs/node_modules/prop-types/lib/has.js +7 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/react/cjs/react.development.js +1246 -0
- package/cjs/node_modules/react/cjs/react.production.js +552 -0
- package/cjs/node_modules/react/index.js +19 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
- package/cjs/node_modules/react-dom/index.js +44 -0
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
- package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
- package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/cjs/node_modules/stylis/src/Enum.js +24 -0
- package/cjs/node_modules/stylis/src/Middleware.js +37 -0
- package/cjs/node_modules/stylis/src/Parser.js +201 -0
- package/cjs/node_modules/stylis/src/Serializer.js +43 -0
- package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
- package/cjs/node_modules/stylis/src/Utility.js +134 -0
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +12 -0
- package/{ssr → cjs/ssr/ssr}/index.js +1 -3
- package/cjs/styles/utils/colors.scss.js +11 -0
- package/cjs/utils/dateTime.js +20 -0
- package/cjs/utils/defaultTheme.js +52 -0
- package/doctor-storybook.log +20 -0
- package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
- package/esm/_virtual/index.js +3 -0
- package/esm/_virtual/index2.js +3 -0
- package/esm/_virtual/index3.js +3 -0
- package/esm/_virtual/index4.js +3 -0
- package/esm/_virtual/index5.js +3 -0
- package/esm/_virtual/react-dom.development.js +3 -0
- package/esm/_virtual/react-dom.production.js +3 -0
- package/esm/_virtual/react-is.development.js +3 -0
- package/esm/_virtual/react-is.development2.js +3 -0
- package/esm/_virtual/react-is.production.min.js +3 -0
- package/esm/_virtual/react-is.production.min2.js +3 -0
- package/esm/_virtual/react.development.js +3 -0
- package/esm/_virtual/react.production.js +3 -0
- package/esm/components/data/Alert/Alert.js +77 -0
- package/esm/components/data/Alert/Alert.styled.js +63 -0
- package/esm/components/data/Alert/data/Alert/index.js +1 -0
- package/esm/components/data/Badge/Badge.js +89 -0
- package/esm/components/data/Badge/Badge.styled.js +145 -0
- package/esm/components/data/Badge/data/Badge/index.js +1 -0
- package/esm/components/data/Popover/Popover.js +94 -0
- package/esm/components/data/Popover/Popover.styled.js +150 -0
- package/esm/components/data/Popover/data/Popover/index.js +1 -0
- package/esm/components/data/Tab/Tab.js +27 -0
- package/esm/components/data/Tab/Tab.styled.js +14 -0
- package/esm/components/data/Tab/data/Tab/index.js +1 -0
- package/esm/components/data/Tabs/Tabs.js +87 -0
- package/esm/components/data/Tabs/Tabs.styled.js +85 -0
- package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
- package/esm/components/data/Tooltip/Tooltip.js +46 -0
- package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
- package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
- package/esm/components/data/data/index.js +7 -0
- package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
- package/esm/components/inputs/Button/Button.js +184 -0
- package/esm/components/inputs/Button/Button.styled.js +277 -0
- package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
- package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
- package/esm/components/inputs/Radio/Radio.js +63 -0
- package/esm/components/inputs/Radio/Radio.styled.js +84 -0
- package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
- package/esm/components/inputs/Switch/Switch.js +65 -0
- package/esm/components/inputs/Switch/Switch.styled.js +110 -0
- package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
- package/esm/components/inputs/TextArea/TextArea.js +182 -0
- package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
- package/esm/components/inputs/TextInput/TextInput.js +143 -0
- package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
- package/esm/components/inputs/inputs/index.js +13 -0
- package/esm/components/layout/InputGroup/InputGroup.js +22 -0
- package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
- package/esm/components/layout/layout/index.js +2 -0
- package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
- package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
- package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
- package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
- package/esm/components/widgets/Instructions/Instructions.js +213 -0
- package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
- package/esm/components/widgets/widgets/index.js +9 -0
- package/esm/hooks/useEventListner.js +22 -0
- package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/esm/hooks/useOnClickOutside.js +13 -0
- package/esm/icons/arrow-back.svg.js +16 -0
- package/esm/icons/arrow-forward.svg.js +16 -0
- package/esm/icons/check-rectangle-filled.svg.js +16 -0
- package/esm/icons/close.svg.js +16 -0
- package/esm/icons/edit-note.svg.js +16 -0
- package/esm/icons/expand-more.svg.js +16 -0
- package/esm/icons/headset.svg.js +16 -0
- package/esm/icons/layers.svg.js +16 -0
- package/esm/icons/link.svg.js +16 -0
- package/esm/icons/play.svg.js +16 -0
- package/esm/icons/search.svg.js +16 -0
- package/esm/icons/star-filled.svg.js +16 -0
- package/esm/icons/star.svg.js +16 -0
- package/esm/icons/triangle-right.svg.js +16 -0
- package/esm/icons/verification.svg.js +16 -0
- package/esm/icons/warning-circle.svg.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +499 -0
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +149 -0
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +56 -0
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +12 -0
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +54 -0
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
- package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
- package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
- package/esm/node_modules/object-assign/index.js +90 -0
- package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
- package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +617 -0
- package/esm/node_modules/prop-types/index.js +29 -0
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/esm/node_modules/prop-types/lib/has.js +3 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/react/cjs/react.development.js +1244 -0
- package/esm/node_modules/react/cjs/react.production.js +547 -0
- package/esm/node_modules/react/index.js +15 -0
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
- package/esm/node_modules/react-dom/index.js +42 -0
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
- package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
- package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/esm/node_modules/stylis/src/Enum.js +12 -0
- package/esm/node_modules/stylis/src/Middleware.js +32 -0
- package/esm/node_modules/stylis/src/Parser.js +193 -0
- package/esm/node_modules/stylis/src/Serializer.js +38 -0
- package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
- package/esm/node_modules/stylis/src/Utility.js +117 -0
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
- package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +8 -0
- package/esm/ssr/ssr/index.js +1 -0
- package/esm/styles/utils/colors.scss.js +7 -0
- package/esm/utils/dateTime.js +16 -0
- package/esm/utils/defaultTheme.js +47 -0
- package/icons/arrow-forward.svg +3 -0
- package/icons/index.js +2 -0
- package/migration-storybook.log +392 -0
- package/package.json +59 -21
- package/styles/all.scss +3 -3
- package/styles/config.scss +3 -0
- package/styles/utils/colors.scss +1 -1
- package/styles/utils/theme.scss +2 -0
- package/ActionButton-46735b89.js +0 -61
- package/Alert-13b75102.js +0 -117
- package/AssetGallery-0d503207.js +0 -1923
- package/AssetPreviewTopBar-912c3469.js +0 -99
- package/Badge-757b0a39.js +0 -221
- package/Button-49f82b31.js +0 -264
- package/Checkbox-68dc38a8.js +0 -140
- package/CompactAutocompleteSelect-96137f48.js +0 -451
- package/CompactStarRating-15c1b812.js +0 -339
- package/CompactTextInput-198d0800.js +0 -349
- package/ContextMenu-4ec3d9f3.js +0 -32
- package/ContextMenuItem-ba2b697e.js +0 -110
- package/InputGroup-49fbc423.js +0 -28
- package/Instructions-2babb8a3.js +0 -263
- package/MultiLevelCheckboxSelect-e6e5cb90.js +0 -698
- package/MultiSelect-efd60232.js +0 -377
- package/Popover-569cd272.js +0 -146
- package/Radio-32d0513a.js +0 -86
- package/SectionSeparator-259a22ed.js +0 -37
- package/Switch-4a41585f.js +0 -107
- package/Tab-f499ecbc.js +0 -35
- package/Tabs-116aa951.js +0 -151
- package/TextArea-18fbcc9f.js +0 -375
- package/TextInput-0d109708.js +0 -236
- package/Tooltip-66daf6e3.js +0 -61
- package/VerificationStatusIcon-d5bfb67a.js +0 -121
- package/close-ebf2f3cf.js +0 -41
- package/data/Alert/index.js +0 -11
- package/data/Badge/index.js +0 -10
- package/data/Popover/index.js +0 -15
- package/data/Tab/index.js +0 -10
- package/data/Tabs/index.js +0 -12
- package/data/Tooltip/index.js +0 -12
- package/data/index.js +0 -29
- package/defaultTheme-ea44e34a.js +0 -1422
- package/edit-note-c47d292e.js +0 -41
- package/expand-more-94585605.js +0 -41
- package/inputs/ActionButton/index.js +0 -11
- package/inputs/Button/index.js +0 -18
- package/inputs/Checkbox/index.js +0 -12
- package/inputs/CompactAutocompleteSelect/index.js +0 -29
- package/inputs/CompactStarRating/index.js +0 -22
- package/inputs/CompactTextInput/index.js +0 -24
- package/inputs/MultiSelect/index.js +0 -16
- package/inputs/Radio/index.js +0 -12
- package/inputs/Switch/index.js +0 -12
- package/inputs/TextArea/index.js +0 -25
- package/inputs/TextInput/index.js +0 -14
- package/inputs/index.js +0 -59
- package/layout/InputGroup/index.js +0 -10
- package/layout/SectionSeparator/index.js +0 -10
- package/layout/index.js +0 -14
- package/react-select-creatable.esm-2f23d6c6.js +0 -7709
- package/shift-away-subtle-0bed9a3c.js +0 -9
- package/warning-circle-24522402.js +0 -41
- package/widgets/AssetGallery/index.js +0 -50
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -11
- package/widgets/ContextMenu/ContextMenuItem/index.js +0 -10
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -32
- package/widgets/ContextMenu/index.js +0 -10
- package/widgets/Instructions/index.js +0 -34
- package/widgets/index.js +0 -58
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../react/index.js');
|
|
6
|
+
var index = require('../../../../_virtual/index.js');
|
|
7
|
+
|
|
8
|
+
var toFnRef = function toFnRef(ref) {
|
|
9
|
+
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
10
|
+
ref.current = value;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function mergeRefs(refA, refB) {
|
|
15
|
+
var a = toFnRef(refA);
|
|
16
|
+
var b = toFnRef(refB);
|
|
17
|
+
return function (value) {
|
|
18
|
+
if (a) a(value);
|
|
19
|
+
if (b) b(value);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create and returns a single callback ref composed from two other Refs.
|
|
24
|
+
*
|
|
25
|
+
* ```tsx
|
|
26
|
+
* const Button = React.forwardRef((props, ref) => {
|
|
27
|
+
* const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
|
|
28
|
+
* const mergedRef = useMergedRefs(ref, attachRef);
|
|
29
|
+
*
|
|
30
|
+
* return <button ref={mergedRef} {...props}/>
|
|
31
|
+
* })
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @param refA A Callback or mutable Ref
|
|
35
|
+
* @param refB A Callback or mutable Ref
|
|
36
|
+
* @category refs
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
function useMergedRefs(refA, refB) {
|
|
40
|
+
return index.react.exports.useMemo(function () {
|
|
41
|
+
return mergeRefs(refA, refB);
|
|
42
|
+
}, [refA, refB]);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports["default"] = useMergedRefs;
|
|
46
|
+
exports.mergeRefs = mergeRefs;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../react/index.js');
|
|
6
|
+
var index = require('../../../../_virtual/index.js');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Runs an effect only when the dependencies have changed, skipping the
|
|
10
|
+
* initial "on mount" run. Caution, if the dependency list never changes,
|
|
11
|
+
* the effect is **never run**
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* const ref = useRef<HTMLInput>(null);
|
|
15
|
+
*
|
|
16
|
+
* // focuses an element only if the focus changes, and not on mount
|
|
17
|
+
* useUpdateEffect(() => {
|
|
18
|
+
* const element = ref.current?.children[focusedIdx] as HTMLElement
|
|
19
|
+
*
|
|
20
|
+
* element?.focus()
|
|
21
|
+
*
|
|
22
|
+
* }, [focusedIndex])
|
|
23
|
+
* ```
|
|
24
|
+
* @param effect An effect to run on mount
|
|
25
|
+
*
|
|
26
|
+
* @category effects
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
function useUpdateEffect(fn, deps) {
|
|
30
|
+
var isFirst = index.react.exports.useRef(true);
|
|
31
|
+
index.react.exports.useEffect(function () {
|
|
32
|
+
if (isFirst.current) {
|
|
33
|
+
isFirst.current = false;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return fn();
|
|
38
|
+
}, deps);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports["default"] = useUpdateEffect;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../node_modules/react-is/index.js');
|
|
4
|
+
var index = require('../../../_virtual/index5.js');
|
|
5
|
+
|
|
6
|
+
var reactIs = index.reactIs.exports;
|
|
7
|
+
var FORWARD_REF_STATICS = {
|
|
8
|
+
'$$typeof': true,
|
|
9
|
+
render: true,
|
|
10
|
+
defaultProps: true,
|
|
11
|
+
displayName: true,
|
|
12
|
+
propTypes: true
|
|
13
|
+
};
|
|
14
|
+
var MEMO_STATICS = {
|
|
15
|
+
'$$typeof': true,
|
|
16
|
+
compare: true,
|
|
17
|
+
defaultProps: true,
|
|
18
|
+
displayName: true,
|
|
19
|
+
propTypes: true,
|
|
20
|
+
type: true
|
|
21
|
+
};
|
|
22
|
+
var TYPE_STATICS = {};
|
|
23
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
24
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var reactIs_development = require('../../../../../_virtual/react-is.development2.js');
|
|
6
|
+
|
|
7
|
+
/** @license React v16.13.1
|
|
8
|
+
* react-is.development.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
if (process.env.NODE_ENV !== "production") {
|
|
19
|
+
(function() {
|
|
20
|
+
|
|
21
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
22
|
+
// nor polyfill, then a plain number is used for performance.
|
|
23
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
24
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
26
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
27
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
28
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
29
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
30
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
31
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
32
|
+
|
|
33
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
34
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
35
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
36
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
37
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
38
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
39
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
40
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
41
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
42
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
43
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
44
|
+
|
|
45
|
+
function isValidElementType(type) {
|
|
46
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
47
|
+
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);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function typeOf(object) {
|
|
51
|
+
if (typeof object === 'object' && object !== null) {
|
|
52
|
+
var $$typeof = object.$$typeof;
|
|
53
|
+
|
|
54
|
+
switch ($$typeof) {
|
|
55
|
+
case REACT_ELEMENT_TYPE:
|
|
56
|
+
var type = object.type;
|
|
57
|
+
|
|
58
|
+
switch (type) {
|
|
59
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
60
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
61
|
+
case REACT_FRAGMENT_TYPE:
|
|
62
|
+
case REACT_PROFILER_TYPE:
|
|
63
|
+
case REACT_STRICT_MODE_TYPE:
|
|
64
|
+
case REACT_SUSPENSE_TYPE:
|
|
65
|
+
return type;
|
|
66
|
+
|
|
67
|
+
default:
|
|
68
|
+
var $$typeofType = type && type.$$typeof;
|
|
69
|
+
|
|
70
|
+
switch ($$typeofType) {
|
|
71
|
+
case REACT_CONTEXT_TYPE:
|
|
72
|
+
case REACT_FORWARD_REF_TYPE:
|
|
73
|
+
case REACT_LAZY_TYPE:
|
|
74
|
+
case REACT_MEMO_TYPE:
|
|
75
|
+
case REACT_PROVIDER_TYPE:
|
|
76
|
+
return $$typeofType;
|
|
77
|
+
|
|
78
|
+
default:
|
|
79
|
+
return $$typeof;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
case REACT_PORTAL_TYPE:
|
|
85
|
+
return $$typeof;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return undefined;
|
|
90
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
91
|
+
|
|
92
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
93
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
94
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
95
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
96
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
97
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
98
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
99
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
100
|
+
var Memo = REACT_MEMO_TYPE;
|
|
101
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
102
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
103
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
104
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
105
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
106
|
+
|
|
107
|
+
function isAsyncMode(object) {
|
|
108
|
+
{
|
|
109
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
110
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
111
|
+
|
|
112
|
+
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.');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
117
|
+
}
|
|
118
|
+
function isConcurrentMode(object) {
|
|
119
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
120
|
+
}
|
|
121
|
+
function isContextConsumer(object) {
|
|
122
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
123
|
+
}
|
|
124
|
+
function isContextProvider(object) {
|
|
125
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
126
|
+
}
|
|
127
|
+
function isElement(object) {
|
|
128
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
129
|
+
}
|
|
130
|
+
function isForwardRef(object) {
|
|
131
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
132
|
+
}
|
|
133
|
+
function isFragment(object) {
|
|
134
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
135
|
+
}
|
|
136
|
+
function isLazy(object) {
|
|
137
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
138
|
+
}
|
|
139
|
+
function isMemo(object) {
|
|
140
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
141
|
+
}
|
|
142
|
+
function isPortal(object) {
|
|
143
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
144
|
+
}
|
|
145
|
+
function isProfiler(object) {
|
|
146
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
147
|
+
}
|
|
148
|
+
function isStrictMode(object) {
|
|
149
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
150
|
+
}
|
|
151
|
+
function isSuspense(object) {
|
|
152
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
reactIs_development.__exports.AsyncMode = AsyncMode;
|
|
156
|
+
reactIs_development.__exports.ConcurrentMode = ConcurrentMode;
|
|
157
|
+
reactIs_development.__exports.ContextConsumer = ContextConsumer;
|
|
158
|
+
reactIs_development.__exports.ContextProvider = ContextProvider;
|
|
159
|
+
reactIs_development.__exports.Element = Element;
|
|
160
|
+
reactIs_development.__exports.ForwardRef = ForwardRef;
|
|
161
|
+
reactIs_development.__exports.Fragment = Fragment;
|
|
162
|
+
reactIs_development.__exports.Lazy = Lazy;
|
|
163
|
+
reactIs_development.__exports.Memo = Memo;
|
|
164
|
+
reactIs_development.__exports.Portal = Portal;
|
|
165
|
+
reactIs_development.__exports.Profiler = Profiler;
|
|
166
|
+
reactIs_development.__exports.StrictMode = StrictMode;
|
|
167
|
+
reactIs_development.__exports.Suspense = Suspense;
|
|
168
|
+
reactIs_development.__exports.isAsyncMode = isAsyncMode;
|
|
169
|
+
reactIs_development.__exports.isConcurrentMode = isConcurrentMode;
|
|
170
|
+
reactIs_development.__exports.isContextConsumer = isContextConsumer;
|
|
171
|
+
reactIs_development.__exports.isContextProvider = isContextProvider;
|
|
172
|
+
reactIs_development.__exports.isElement = isElement;
|
|
173
|
+
reactIs_development.__exports.isForwardRef = isForwardRef;
|
|
174
|
+
reactIs_development.__exports.isFragment = isFragment;
|
|
175
|
+
reactIs_development.__exports.isLazy = isLazy;
|
|
176
|
+
reactIs_development.__exports.isMemo = isMemo;
|
|
177
|
+
reactIs_development.__exports.isPortal = isPortal;
|
|
178
|
+
reactIs_development.__exports.isProfiler = isProfiler;
|
|
179
|
+
reactIs_development.__exports.isStrictMode = isStrictMode;
|
|
180
|
+
reactIs_development.__exports.isSuspense = isSuspense;
|
|
181
|
+
reactIs_development.__exports.isValidElementType = isValidElementType;
|
|
182
|
+
reactIs_development.__exports.typeOf = typeOf;
|
|
183
|
+
})();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
exports["default"] = reactIs_development.__exports;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var reactIs_production_min = require('../../../../../_virtual/react-is.production.min2.js');
|
|
6
|
+
|
|
7
|
+
/** @license React v16.13.1
|
|
8
|
+
* react-is.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
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?
|
|
16
|
+
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;
|
|
17
|
+
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.__exports.AsyncMode=l;reactIs_production_min.__exports.ConcurrentMode=m;reactIs_production_min.__exports.ContextConsumer=k;reactIs_production_min.__exports.ContextProvider=h;reactIs_production_min.__exports.Element=c;reactIs_production_min.__exports.ForwardRef=n;reactIs_production_min.__exports.Fragment=e;reactIs_production_min.__exports.Lazy=t;reactIs_production_min.__exports.Memo=r;reactIs_production_min.__exports.Portal=d;
|
|
18
|
+
reactIs_production_min.__exports.Profiler=g;reactIs_production_min.__exports.StrictMode=f;reactIs_production_min.__exports.Suspense=p;reactIs_production_min.__exports.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.__exports.isConcurrentMode=A;reactIs_production_min.__exports.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.__exports.isContextProvider=function(a){return z(a)===h};reactIs_production_min.__exports.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.__exports.isForwardRef=function(a){return z(a)===n};reactIs_production_min.__exports.isFragment=function(a){return z(a)===e};reactIs_production_min.__exports.isLazy=function(a){return z(a)===t};
|
|
19
|
+
reactIs_production_min.__exports.isMemo=function(a){return z(a)===r};reactIs_production_min.__exports.isPortal=function(a){return z(a)===d};reactIs_production_min.__exports.isProfiler=function(a){return z(a)===g};reactIs_production_min.__exports.isStrictMode=function(a){return z(a)===f};reactIs_production_min.__exports.isSuspense=function(a){return z(a)===p};
|
|
20
|
+
reactIs_production_min.__exports.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.__exports.typeOf=z;
|
|
21
|
+
|
|
22
|
+
exports["default"] = reactIs_production_min.__exports;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../../../../_virtual/index5.js');
|
|
4
|
+
require('./cjs/react-is.production.min.js');
|
|
5
|
+
require('./cjs/react-is.development.js');
|
|
6
|
+
var reactIs_production_min = require('../../../../_virtual/react-is.production.min2.js');
|
|
7
|
+
var reactIs_development = require('../../../../_virtual/react-is.development2.js');
|
|
8
|
+
|
|
9
|
+
if (process.env.NODE_ENV === 'production') {
|
|
10
|
+
index.reactIs.exports = reactIs_production_min.__exports;
|
|
11
|
+
} else {
|
|
12
|
+
index.reactIs.exports = reactIs_development.__exports;
|
|
13
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var safeIsNaN = Number.isNaN ||
|
|
6
|
+
function ponyfill(value) {
|
|
7
|
+
return typeof value === 'number' && value !== value;
|
|
8
|
+
};
|
|
9
|
+
function isEqual(first, second) {
|
|
10
|
+
if (first === second) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
19
|
+
if (newInputs.length !== lastInputs.length) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
for (var i = 0; i < newInputs.length; i++) {
|
|
23
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function memoizeOne(resultFn, isEqual) {
|
|
31
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
32
|
+
var cache = null;
|
|
33
|
+
function memoized() {
|
|
34
|
+
var newArgs = [];
|
|
35
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
36
|
+
newArgs[_i] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) {
|
|
39
|
+
return cache.lastResult;
|
|
40
|
+
}
|
|
41
|
+
var lastResult = resultFn.apply(this, newArgs);
|
|
42
|
+
cache = {
|
|
43
|
+
lastResult: lastResult,
|
|
44
|
+
lastArgs: newArgs,
|
|
45
|
+
lastThis: this,
|
|
46
|
+
};
|
|
47
|
+
return lastResult;
|
|
48
|
+
}
|
|
49
|
+
memoized.clear = function clear() {
|
|
50
|
+
cache = null;
|
|
51
|
+
};
|
|
52
|
+
return memoized;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
exports["default"] = memoizeOne;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
object-assign
|
|
7
|
+
(c) Sindre Sorhus
|
|
8
|
+
@license MIT
|
|
9
|
+
*/
|
|
10
|
+
/* eslint-disable no-unused-vars */
|
|
11
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
12
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
13
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
|
|
15
|
+
function toObject(val) {
|
|
16
|
+
if (val === null || val === undefined) {
|
|
17
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return Object(val);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function shouldUseNative() {
|
|
24
|
+
try {
|
|
25
|
+
if (!Object.assign) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
30
|
+
|
|
31
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
32
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
33
|
+
test1[5] = 'de';
|
|
34
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
39
|
+
var test2 = {};
|
|
40
|
+
for (var i = 0; i < 10; i++) {
|
|
41
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
42
|
+
}
|
|
43
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
44
|
+
return test2[n];
|
|
45
|
+
});
|
|
46
|
+
if (order2.join('') !== '0123456789') {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
51
|
+
var test3 = {};
|
|
52
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
53
|
+
test3[letter] = letter;
|
|
54
|
+
});
|
|
55
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
56
|
+
'abcdefghijklmnopqrst') {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return true;
|
|
61
|
+
} catch (err) {
|
|
62
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
68
|
+
var from;
|
|
69
|
+
var to = toObject(target);
|
|
70
|
+
var symbols;
|
|
71
|
+
|
|
72
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
73
|
+
from = Object(arguments[s]);
|
|
74
|
+
|
|
75
|
+
for (var key in from) {
|
|
76
|
+
if (hasOwnProperty.call(from, key)) {
|
|
77
|
+
to[key] = from[key];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (getOwnPropertySymbols) {
|
|
82
|
+
symbols = getOwnPropertySymbols(from);
|
|
83
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
84
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
85
|
+
to[symbols[i]] = from[symbols[i]];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return to;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
exports["default"] = objectAssign;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ReactPropTypesSecret$1 = require('./lib/ReactPropTypesSecret.js');
|
|
6
|
+
var has$1 = require('./lib/has.js');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var printWarning = function() {};
|
|
16
|
+
|
|
17
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
18
|
+
var ReactPropTypesSecret = ReactPropTypesSecret$1["default"];
|
|
19
|
+
var loggedTypeFailures = {};
|
|
20
|
+
var has = has$1["default"];
|
|
21
|
+
|
|
22
|
+
printWarning = function(text) {
|
|
23
|
+
var message = 'Warning: ' + text;
|
|
24
|
+
if (typeof console !== 'undefined') {
|
|
25
|
+
console.error(message);
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
// --- Welcome to debugging React ---
|
|
29
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
30
|
+
// to find the callsite that caused this warning to fire.
|
|
31
|
+
throw new Error(message);
|
|
32
|
+
} catch (x) { /**/ }
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Assert that the values match with the type specs.
|
|
38
|
+
* Error messages are memorized and will only be shown once.
|
|
39
|
+
*
|
|
40
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
41
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
42
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
43
|
+
* @param {string} componentName Name of the component for error messages.
|
|
44
|
+
* @param {?Function} getStack Returns the component stack.
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
48
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
49
|
+
for (var typeSpecName in typeSpecs) {
|
|
50
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
51
|
+
var error;
|
|
52
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
53
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
54
|
+
// After these have been cleaned up, we'll let them throw.
|
|
55
|
+
try {
|
|
56
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
57
|
+
// behavior as without this statement except with a better message.
|
|
58
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
59
|
+
var err = Error(
|
|
60
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
61
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
62
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
63
|
+
);
|
|
64
|
+
err.name = 'Invariant Violation';
|
|
65
|
+
throw err;
|
|
66
|
+
}
|
|
67
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
68
|
+
} catch (ex) {
|
|
69
|
+
error = ex;
|
|
70
|
+
}
|
|
71
|
+
if (error && !(error instanceof Error)) {
|
|
72
|
+
printWarning(
|
|
73
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
74
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
75
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
76
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
77
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
78
|
+
'shape all require an argument).'
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
82
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
83
|
+
// same error.
|
|
84
|
+
loggedTypeFailures[error.message] = true;
|
|
85
|
+
|
|
86
|
+
var stack = getStack ? getStack() : '';
|
|
87
|
+
|
|
88
|
+
printWarning(
|
|
89
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Resets warning cache when testing.
|
|
99
|
+
*
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
checkPropTypes.resetWarningCache = function() {
|
|
103
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
104
|
+
loggedTypeFailures = {};
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
109
|
+
|
|
110
|
+
exports["default"] = checkPropTypes_1;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ReactPropTypesSecret$1 = require('./lib/ReactPropTypesSecret.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
var ReactPropTypesSecret = ReactPropTypesSecret$1["default"];
|
|
15
|
+
|
|
16
|
+
function emptyFunction() {}
|
|
17
|
+
function emptyFunctionWithReset() {}
|
|
18
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
19
|
+
|
|
20
|
+
var factoryWithThrowingShims = function() {
|
|
21
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
22
|
+
if (secret === ReactPropTypesSecret) {
|
|
23
|
+
// It is still safe when called from React.
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
var err = new Error(
|
|
27
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
28
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
29
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
30
|
+
);
|
|
31
|
+
err.name = 'Invariant Violation';
|
|
32
|
+
throw err;
|
|
33
|
+
} shim.isRequired = shim;
|
|
34
|
+
function getShim() {
|
|
35
|
+
return shim;
|
|
36
|
+
} // Important!
|
|
37
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
38
|
+
var ReactPropTypes = {
|
|
39
|
+
array: shim,
|
|
40
|
+
bigint: shim,
|
|
41
|
+
bool: shim,
|
|
42
|
+
func: shim,
|
|
43
|
+
number: shim,
|
|
44
|
+
object: shim,
|
|
45
|
+
string: shim,
|
|
46
|
+
symbol: shim,
|
|
47
|
+
|
|
48
|
+
any: shim,
|
|
49
|
+
arrayOf: getShim,
|
|
50
|
+
element: shim,
|
|
51
|
+
elementType: shim,
|
|
52
|
+
instanceOf: getShim,
|
|
53
|
+
node: shim,
|
|
54
|
+
objectOf: getShim,
|
|
55
|
+
oneOf: getShim,
|
|
56
|
+
oneOfType: getShim,
|
|
57
|
+
shape: getShim,
|
|
58
|
+
exact: getShim,
|
|
59
|
+
|
|
60
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
61
|
+
resetWarningCache: emptyFunction
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
65
|
+
|
|
66
|
+
return ReactPropTypes;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
exports["default"] = factoryWithThrowingShims;
|