@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _typeof from './typeof.js';
|
|
2
|
+
|
|
3
|
+
function toPrimitive(t, r) {
|
|
4
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5
|
+
var e = t[Symbol.toPrimitive];
|
|
6
|
+
if (void 0 !== e) {
|
|
7
|
+
var i = e.call(t, r || "default");
|
|
8
|
+
if ("object" != _typeof(i)) return i;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return ("string" === r ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { toPrimitive as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _typeof(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function (o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { _typeof as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _arrayLikeToArray from './arrayLikeToArray.js';
|
|
2
|
+
|
|
3
|
+
function _unsupportedIterableToArray(r, a) {
|
|
4
|
+
if (r) {
|
|
5
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
6
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
7
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { _unsupportedIterableToArray as default };
|
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { StyleSheet } from '../../sheet/dist/emotion-sheet.esm.js';
|
|
2
|
+
import { middleware, rulesheet } from '../../../stylis/src/Middleware.js';
|
|
3
|
+
import { RULESET, KEYFRAMES, DECLARATION, WEBKIT, MS, MOZ } from '../../../stylis/src/Enum.js';
|
|
4
|
+
import { combine, replace, hash, charat, strlen, indexof, match, from } from '../../../stylis/src/Utility.js';
|
|
5
|
+
import { serialize, stringify } from '../../../stylis/src/Serializer.js';
|
|
6
|
+
import { copy, dealloc, alloc, next, token, peek, delimit, slice, position } from '../../../stylis/src/Tokenizer.js';
|
|
7
|
+
import { compile } from '../../../stylis/src/Parser.js';
|
|
8
|
+
|
|
9
|
+
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
10
|
+
var previous = 0;
|
|
11
|
+
var character = 0;
|
|
12
|
+
|
|
13
|
+
while (true) {
|
|
14
|
+
previous = character;
|
|
15
|
+
character = peek(); // &\f
|
|
16
|
+
|
|
17
|
+
if (previous === 38 && character === 12) {
|
|
18
|
+
points[index] = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (token(character)) {
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
next();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return slice(begin, position);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var toRules = function toRules(parsed, points) {
|
|
32
|
+
// pretend we've started with a comma
|
|
33
|
+
var index = -1;
|
|
34
|
+
var character = 44;
|
|
35
|
+
|
|
36
|
+
do {
|
|
37
|
+
switch (token(character)) {
|
|
38
|
+
case 0:
|
|
39
|
+
// &\f
|
|
40
|
+
if (character === 38 && peek() === 12) {
|
|
41
|
+
// this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
|
|
42
|
+
// stylis inserts \f after & to know when & where it should replace this sequence with the context selector
|
|
43
|
+
// and when it should just concatenate the outer and inner selectors
|
|
44
|
+
// it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
|
|
45
|
+
points[index] = 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
49
|
+
break;
|
|
50
|
+
|
|
51
|
+
case 2:
|
|
52
|
+
parsed[index] += delimit(character);
|
|
53
|
+
break;
|
|
54
|
+
|
|
55
|
+
case 4:
|
|
56
|
+
// comma
|
|
57
|
+
if (character === 44) {
|
|
58
|
+
// colon
|
|
59
|
+
parsed[++index] = peek() === 58 ? '&\f' : '';
|
|
60
|
+
points[index] = parsed[index].length;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// fallthrough
|
|
65
|
+
|
|
66
|
+
default:
|
|
67
|
+
parsed[index] += from(character);
|
|
68
|
+
}
|
|
69
|
+
} while (character = next());
|
|
70
|
+
|
|
71
|
+
return parsed;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var getRules = function getRules(value, points) {
|
|
75
|
+
return dealloc(toRules(alloc(value), points));
|
|
76
|
+
}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
var fixedElements = /* #__PURE__ */new WeakMap();
|
|
80
|
+
var compat = function compat(element) {
|
|
81
|
+
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
82
|
+
// negative .length indicates that this rule has been already prefixed
|
|
83
|
+
element.length < 1) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
var value = element.value;
|
|
88
|
+
var parent = element.parent;
|
|
89
|
+
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
90
|
+
|
|
91
|
+
while (parent.type !== 'rule') {
|
|
92
|
+
parent = parent.parent;
|
|
93
|
+
if (!parent) return;
|
|
94
|
+
} // short-circuit for the simplest case
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
|
98
|
+
/* colon */
|
|
99
|
+
&& !fixedElements.get(parent)) {
|
|
100
|
+
return;
|
|
101
|
+
} // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
|
|
102
|
+
// then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
if (isImplicitRule) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
fixedElements.set(element, true);
|
|
110
|
+
var points = [];
|
|
111
|
+
var rules = getRules(value, points);
|
|
112
|
+
var parentRules = parent.props;
|
|
113
|
+
|
|
114
|
+
for (var i = 0, k = 0; i < rules.length; i++) {
|
|
115
|
+
for (var j = 0; j < parentRules.length; j++, k++) {
|
|
116
|
+
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var removeLabel = function removeLabel(element) {
|
|
121
|
+
if (element.type === 'decl') {
|
|
122
|
+
var value = element.value;
|
|
123
|
+
|
|
124
|
+
if ( // charcode for l
|
|
125
|
+
value.charCodeAt(0) === 108 && // charcode for b
|
|
126
|
+
value.charCodeAt(2) === 98) {
|
|
127
|
+
// this ignores label
|
|
128
|
+
element["return"] = '';
|
|
129
|
+
element.value = '';
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/* eslint-disable no-fallthrough */
|
|
135
|
+
|
|
136
|
+
function prefix(value, length) {
|
|
137
|
+
switch (hash(value, length)) {
|
|
138
|
+
// color-adjust
|
|
139
|
+
case 5103:
|
|
140
|
+
return WEBKIT + 'print-' + value + value;
|
|
141
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
142
|
+
|
|
143
|
+
case 5737:
|
|
144
|
+
case 4201:
|
|
145
|
+
case 3177:
|
|
146
|
+
case 3433:
|
|
147
|
+
case 1641:
|
|
148
|
+
case 4457:
|
|
149
|
+
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
150
|
+
|
|
151
|
+
case 5572:
|
|
152
|
+
case 6356:
|
|
153
|
+
case 5844:
|
|
154
|
+
case 3191:
|
|
155
|
+
case 6645:
|
|
156
|
+
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
157
|
+
|
|
158
|
+
case 6391:
|
|
159
|
+
case 5879:
|
|
160
|
+
case 5623:
|
|
161
|
+
case 6135:
|
|
162
|
+
case 4599:
|
|
163
|
+
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
164
|
+
|
|
165
|
+
case 4215:
|
|
166
|
+
case 6389:
|
|
167
|
+
case 5109:
|
|
168
|
+
case 5365:
|
|
169
|
+
case 5621:
|
|
170
|
+
case 3829:
|
|
171
|
+
return WEBKIT + value + value;
|
|
172
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
173
|
+
|
|
174
|
+
case 5349:
|
|
175
|
+
case 4246:
|
|
176
|
+
case 4810:
|
|
177
|
+
case 6968:
|
|
178
|
+
case 2756:
|
|
179
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
180
|
+
// flex, flex-direction
|
|
181
|
+
|
|
182
|
+
case 6828:
|
|
183
|
+
case 4268:
|
|
184
|
+
return WEBKIT + value + MS + value + value;
|
|
185
|
+
// order
|
|
186
|
+
|
|
187
|
+
case 6165:
|
|
188
|
+
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
189
|
+
// align-items
|
|
190
|
+
|
|
191
|
+
case 5187:
|
|
192
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
193
|
+
// align-self
|
|
194
|
+
|
|
195
|
+
case 5443:
|
|
196
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
|
197
|
+
// align-content
|
|
198
|
+
|
|
199
|
+
case 4675:
|
|
200
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
|
201
|
+
// flex-shrink
|
|
202
|
+
|
|
203
|
+
case 5548:
|
|
204
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
205
|
+
// flex-basis
|
|
206
|
+
|
|
207
|
+
case 5292:
|
|
208
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
209
|
+
// flex-grow
|
|
210
|
+
|
|
211
|
+
case 6060:
|
|
212
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
213
|
+
// transition
|
|
214
|
+
|
|
215
|
+
case 4554:
|
|
216
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
217
|
+
// cursor
|
|
218
|
+
|
|
219
|
+
case 6187:
|
|
220
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
221
|
+
// background, background-image
|
|
222
|
+
|
|
223
|
+
case 5495:
|
|
224
|
+
case 3959:
|
|
225
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
226
|
+
// justify-content
|
|
227
|
+
|
|
228
|
+
case 4968:
|
|
229
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
230
|
+
// (margin|padding)-inline-(start|end)
|
|
231
|
+
|
|
232
|
+
case 4095:
|
|
233
|
+
case 3583:
|
|
234
|
+
case 4068:
|
|
235
|
+
case 2532:
|
|
236
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
237
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
238
|
+
|
|
239
|
+
case 8116:
|
|
240
|
+
case 7059:
|
|
241
|
+
case 5753:
|
|
242
|
+
case 5535:
|
|
243
|
+
case 5445:
|
|
244
|
+
case 5701:
|
|
245
|
+
case 4933:
|
|
246
|
+
case 4677:
|
|
247
|
+
case 5533:
|
|
248
|
+
case 5789:
|
|
249
|
+
case 5021:
|
|
250
|
+
case 4765:
|
|
251
|
+
// stretch, max-content, min-content, fill-available
|
|
252
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
253
|
+
// (m)ax-content, (m)in-content
|
|
254
|
+
case 109:
|
|
255
|
+
// -
|
|
256
|
+
if (charat(value, length + 4) !== 45) break;
|
|
257
|
+
// (f)ill-available, (f)it-content
|
|
258
|
+
|
|
259
|
+
case 102:
|
|
260
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
261
|
+
// (s)tretch
|
|
262
|
+
|
|
263
|
+
case 115:
|
|
264
|
+
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
265
|
+
}
|
|
266
|
+
break;
|
|
267
|
+
// position: sticky
|
|
268
|
+
|
|
269
|
+
case 4949:
|
|
270
|
+
// (s)ticky?
|
|
271
|
+
if (charat(value, length + 1) !== 115) break;
|
|
272
|
+
// display: (flex|inline-flex)
|
|
273
|
+
|
|
274
|
+
case 6444:
|
|
275
|
+
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
276
|
+
// stic(k)y
|
|
277
|
+
case 107:
|
|
278
|
+
return replace(value, ':', ':' + WEBKIT) + value;
|
|
279
|
+
// (inline-)?fl(e)x
|
|
280
|
+
|
|
281
|
+
case 101:
|
|
282
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
break;
|
|
286
|
+
// writing-mode
|
|
287
|
+
|
|
288
|
+
case 5936:
|
|
289
|
+
switch (charat(value, length + 11)) {
|
|
290
|
+
// vertical-l(r)
|
|
291
|
+
case 114:
|
|
292
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
293
|
+
// vertical-r(l)
|
|
294
|
+
|
|
295
|
+
case 108:
|
|
296
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
297
|
+
// horizontal(-)tb
|
|
298
|
+
|
|
299
|
+
case 45:
|
|
300
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
return WEBKIT + value + MS + value + value;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return value;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
var prefixer = function prefixer(element, index, children, callback) {
|
|
310
|
+
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
|
311
|
+
case DECLARATION:
|
|
312
|
+
element["return"] = prefix(element.value, element.length);
|
|
313
|
+
break;
|
|
314
|
+
|
|
315
|
+
case KEYFRAMES:
|
|
316
|
+
return serialize([copy(element, {
|
|
317
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
|
318
|
+
})], callback);
|
|
319
|
+
|
|
320
|
+
case RULESET:
|
|
321
|
+
if (element.length) return combine(element.props, function (value) {
|
|
322
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
323
|
+
// :read-(only|write)
|
|
324
|
+
case ':read-only':
|
|
325
|
+
case ':read-write':
|
|
326
|
+
return serialize([copy(element, {
|
|
327
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
328
|
+
})], callback);
|
|
329
|
+
// :placeholder
|
|
330
|
+
|
|
331
|
+
case '::placeholder':
|
|
332
|
+
return serialize([copy(element, {
|
|
333
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
334
|
+
}), copy(element, {
|
|
335
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
336
|
+
}), copy(element, {
|
|
337
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
338
|
+
})], callback);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
return '';
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
var defaultStylisPlugins = [prefixer];
|
|
347
|
+
|
|
348
|
+
var createCache = function createCache(options) {
|
|
349
|
+
var key = options.key;
|
|
350
|
+
|
|
351
|
+
if (key === 'css') {
|
|
352
|
+
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
353
|
+
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
354
|
+
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
355
|
+
// that creating a cache works inside of render of a React component
|
|
356
|
+
|
|
357
|
+
Array.prototype.forEach.call(ssrStyles, function (node) {
|
|
358
|
+
// we want to only move elements which have a space in the data-emotion attribute value
|
|
359
|
+
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
|
360
|
+
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
|
361
|
+
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
|
362
|
+
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
|
363
|
+
// will not result in the Emotion 10 styles being destroyed
|
|
364
|
+
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
|
365
|
+
|
|
366
|
+
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
document.head.appendChild(node);
|
|
371
|
+
node.setAttribute('data-s', '');
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
376
|
+
|
|
377
|
+
var inserted = {};
|
|
378
|
+
var container;
|
|
379
|
+
var nodesToHydrate = [];
|
|
380
|
+
|
|
381
|
+
{
|
|
382
|
+
container = options.container || document.head;
|
|
383
|
+
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
384
|
+
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
385
|
+
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
|
|
386
|
+
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
387
|
+
|
|
388
|
+
for (var i = 1; i < attrib.length; i++) {
|
|
389
|
+
inserted[attrib[i]] = true;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
nodesToHydrate.push(node);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
var _insert;
|
|
397
|
+
|
|
398
|
+
var omnipresentPlugins = [compat, removeLabel];
|
|
399
|
+
|
|
400
|
+
{
|
|
401
|
+
var currentSheet;
|
|
402
|
+
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
|
403
|
+
currentSheet.insert(rule);
|
|
404
|
+
})];
|
|
405
|
+
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
406
|
+
|
|
407
|
+
var stylis = function stylis(styles) {
|
|
408
|
+
return serialize(compile(styles), serializer);
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
412
|
+
currentSheet = sheet;
|
|
413
|
+
|
|
414
|
+
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
415
|
+
|
|
416
|
+
if (shouldCache) {
|
|
417
|
+
cache.inserted[serialized.name] = true;
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
var cache = {
|
|
423
|
+
key: key,
|
|
424
|
+
sheet: new StyleSheet({
|
|
425
|
+
key: key,
|
|
426
|
+
container: container,
|
|
427
|
+
nonce: options.nonce,
|
|
428
|
+
speedy: options.speedy,
|
|
429
|
+
prepend: options.prepend,
|
|
430
|
+
insertionPoint: options.insertionPoint
|
|
431
|
+
}),
|
|
432
|
+
nonce: options.nonce,
|
|
433
|
+
inserted: inserted,
|
|
434
|
+
registered: {},
|
|
435
|
+
insert: _insert
|
|
436
|
+
};
|
|
437
|
+
cache.sheet.hydrate(nodesToHydrate);
|
|
438
|
+
return cache;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
export { createCache as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// Inspired by https://github.com/garycourt/murmurhash-js
|
|
3
|
+
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
|
4
|
+
function murmur2(str) {
|
|
5
|
+
// 'm' and 'r' are mixing constants generated offline.
|
|
6
|
+
// They're not really 'magic', they just happen to work well.
|
|
7
|
+
// const m = 0x5bd1e995;
|
|
8
|
+
// const r = 24;
|
|
9
|
+
// Initialize the hash
|
|
10
|
+
var h = 0; // Mix 4 bytes at a time into the hash
|
|
11
|
+
|
|
12
|
+
var k,
|
|
13
|
+
i = 0,
|
|
14
|
+
len = str.length;
|
|
15
|
+
|
|
16
|
+
for (; len >= 4; ++i, len -= 4) {
|
|
17
|
+
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
|
18
|
+
k =
|
|
19
|
+
/* Math.imul(k, m): */
|
|
20
|
+
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
|
21
|
+
k ^=
|
|
22
|
+
/* k >>> r: */
|
|
23
|
+
k >>> 24;
|
|
24
|
+
h =
|
|
25
|
+
/* Math.imul(k, m): */
|
|
26
|
+
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
|
27
|
+
/* Math.imul(h, m): */
|
|
28
|
+
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
29
|
+
} // Handle the last few bytes of the input array
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
switch (len) {
|
|
33
|
+
case 3:
|
|
34
|
+
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
|
35
|
+
|
|
36
|
+
case 2:
|
|
37
|
+
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
|
38
|
+
|
|
39
|
+
case 1:
|
|
40
|
+
h ^= str.charCodeAt(i) & 0xff;
|
|
41
|
+
h =
|
|
42
|
+
/* Math.imul(h, m): */
|
|
43
|
+
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
44
|
+
} // Do a few final mixes of the hash to ensure the last few
|
|
45
|
+
// bytes are well-incorporated.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
h ^= h >>> 13;
|
|
49
|
+
h =
|
|
50
|
+
/* Math.imul(h, m): */
|
|
51
|
+
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
52
|
+
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { murmur2 as default };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import '../../../react/index.js';
|
|
2
|
+
import createCache from '../../cache/dist/emotion-cache.browser.esm.js';
|
|
3
|
+
import { getRegisteredStyles, registerStyles, insertStyles } from '../../utils/dist/emotion-utils.browser.esm.js';
|
|
4
|
+
import { serializeStyles } from '../../serialize/dist/emotion-serialize.esm.js';
|
|
5
|
+
import { useInsertionEffectAlwaysWithSyncFallback } from '../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js';
|
|
6
|
+
import { r as react } from '../../../../_virtual/index.js';
|
|
7
|
+
|
|
8
|
+
var isDevelopment = false;
|
|
9
|
+
|
|
10
|
+
var EmotionCacheContext = /* #__PURE__ */react.exports.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
11
|
+
// because this module is primarily intended for the browser and node
|
|
12
|
+
// but it's also required in react native and similar environments sometimes
|
|
13
|
+
// and we could have a special build just for that
|
|
14
|
+
// but this is much easier and the native packages
|
|
15
|
+
// might use a different theme context in the future anyway
|
|
16
|
+
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
17
|
+
key: 'css'
|
|
18
|
+
}) : null);
|
|
19
|
+
|
|
20
|
+
EmotionCacheContext.Provider;
|
|
21
|
+
|
|
22
|
+
var withEmotionCache = function withEmotionCache(func) {
|
|
23
|
+
return /*#__PURE__*/react.exports.forwardRef(function (props, ref) {
|
|
24
|
+
// the cache will never be null in the browser
|
|
25
|
+
var cache = react.exports.useContext(EmotionCacheContext);
|
|
26
|
+
return func(props, cache, ref);
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var ThemeContext = /* #__PURE__ */react.exports.createContext({});
|
|
31
|
+
|
|
32
|
+
var hasOwn = {}.hasOwnProperty;
|
|
33
|
+
|
|
34
|
+
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
35
|
+
var createEmotionProps = function createEmotionProps(type, props) {
|
|
36
|
+
|
|
37
|
+
var newProps = {};
|
|
38
|
+
|
|
39
|
+
for (var _key in props) {
|
|
40
|
+
if (hasOwn.call(props, _key)) {
|
|
41
|
+
newProps[_key] = props[_key];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
46
|
+
|
|
47
|
+
return newProps;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var Insertion = function Insertion(_ref) {
|
|
51
|
+
var cache = _ref.cache,
|
|
52
|
+
serialized = _ref.serialized,
|
|
53
|
+
isStringTag = _ref.isStringTag;
|
|
54
|
+
registerStyles(cache, serialized, isStringTag);
|
|
55
|
+
useInsertionEffectAlwaysWithSyncFallback(function () {
|
|
56
|
+
return insertStyles(cache, serialized, isStringTag);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
return null;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
63
|
+
var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
|
|
64
|
+
// not passing the registered cache to serializeStyles because it would
|
|
65
|
+
// make certain babel optimisations not possible
|
|
66
|
+
|
|
67
|
+
if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
|
|
68
|
+
cssProp = cache.registered[cssProp];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
var WrappedComponent = props[typePropName];
|
|
72
|
+
var registeredStyles = [cssProp];
|
|
73
|
+
var className = '';
|
|
74
|
+
|
|
75
|
+
if (typeof props.className === 'string') {
|
|
76
|
+
className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
77
|
+
} else if (props.className != null) {
|
|
78
|
+
className = props.className + " ";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var serialized = serializeStyles(registeredStyles, undefined, react.exports.useContext(ThemeContext));
|
|
82
|
+
|
|
83
|
+
className += cache.key + "-" + serialized.name;
|
|
84
|
+
var newProps = {};
|
|
85
|
+
|
|
86
|
+
for (var _key2 in props) {
|
|
87
|
+
if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {
|
|
88
|
+
newProps[_key2] = props[_key2];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
newProps.className = className;
|
|
93
|
+
|
|
94
|
+
if (ref) {
|
|
95
|
+
newProps.ref = ref;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return /*#__PURE__*/react.exports.createElement(react.exports.Fragment, null, /*#__PURE__*/react.exports.createElement(Insertion, {
|
|
99
|
+
cache: cache,
|
|
100
|
+
serialized: serialized,
|
|
101
|
+
isStringTag: typeof WrappedComponent === 'string'
|
|
102
|
+
}), /*#__PURE__*/react.exports.createElement(WrappedComponent, newProps));
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
var Emotion$1 = Emotion;
|
|
106
|
+
|
|
107
|
+
export { Emotion$1 as E, ThemeContext as T, createEmotionProps as c, hasOwn as h, isDevelopment as i, withEmotionCache as w };
|