@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.
Files changed (504) hide show
  1. package/.eslintrc +7 -8
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
  3. package/cjs/_virtual/index.js +7 -0
  4. package/cjs/_virtual/index2.js +7 -0
  5. package/cjs/_virtual/index3.js +7 -0
  6. package/cjs/_virtual/index4.js +7 -0
  7. package/cjs/_virtual/react-dom.development.js +7 -0
  8. package/cjs/_virtual/react-dom.production.js +7 -0
  9. package/cjs/_virtual/react-is.development.js +7 -0
  10. package/cjs/_virtual/react-is.production.min.js +7 -0
  11. package/cjs/_virtual/react.development.js +7 -0
  12. package/cjs/_virtual/react.production.js +7 -0
  13. package/cjs/components/data/Alert/Alert.js +81 -0
  14. package/cjs/components/data/Alert/Alert.styled.js +72 -0
  15. package/cjs/components/data/Alert/data/Alert/index.js +9 -0
  16. package/cjs/components/data/Badge/Badge.js +93 -0
  17. package/cjs/components/data/Badge/Badge.styled.js +156 -0
  18. package/cjs/components/data/Badge/data/Badge/index.js +9 -0
  19. package/cjs/components/data/Popover/Popover.js +102 -0
  20. package/cjs/components/data/Popover/Popover.styled.js +159 -0
  21. package/cjs/components/data/Popover/data/Popover/index.js +9 -0
  22. package/cjs/components/data/Tab/Tab.js +31 -0
  23. package/cjs/components/data/Tab/Tab.styled.js +22 -0
  24. package/cjs/components/data/Tab/data/Tab/index.js +9 -0
  25. package/cjs/components/data/Tabs/Tabs.js +91 -0
  26. package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
  27. package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
  28. package/cjs/components/data/Tooltip/Tooltip.js +50 -0
  29. package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
  30. package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
  31. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
  32. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
  33. package/cjs/components/data/data/index.js +21 -0
  34. package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
  35. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
  36. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
  37. package/cjs/components/inputs/Button/Button.js +188 -0
  38. package/cjs/components/inputs/Button/Button.styled.js +294 -0
  39. package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
  40. package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
  41. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
  42. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
  43. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
  44. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
  45. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
  46. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
  47. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
  48. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
  49. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
  50. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
  51. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
  52. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
  53. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
  54. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
  55. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
  56. package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
  57. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
  58. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
  59. package/cjs/components/inputs/Radio/Radio.js +67 -0
  60. package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
  61. package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
  62. package/cjs/components/inputs/Switch/Switch.js +69 -0
  63. package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
  64. package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
  65. package/cjs/components/inputs/TextArea/TextArea.js +186 -0
  66. package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
  67. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
  68. package/cjs/components/inputs/TextInput/TextInput.js +147 -0
  69. package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
  70. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
  71. package/cjs/components/inputs/inputs/index.js +33 -0
  72. package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
  73. package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
  74. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
  75. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
  76. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
  77. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
  78. package/cjs/components/layout/layout/index.js +11 -0
  79. package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
  80. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
  81. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
  82. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
  83. package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
  84. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
  85. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
  86. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
  87. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
  88. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
  89. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
  90. package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
  91. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
  92. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
  93. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
  94. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
  95. package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
  96. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
  97. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
  98. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
  99. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
  100. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
  101. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
  102. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
  103. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
  104. package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
  105. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
  106. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
  107. package/cjs/components/widgets/Instructions/Instructions.js +217 -0
  108. package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
  109. package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
  110. package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
  111. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
  112. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
  113. package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
  114. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
  115. package/cjs/components/widgets/widgets/index.js +25 -0
  116. package/cjs/hooks/useEventListner.js +26 -0
  117. package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
  118. package/cjs/hooks/useOnClickOutside.js +17 -0
  119. package/cjs/icons/arrow-back.svg.js +20 -0
  120. package/cjs/icons/arrow-forward.svg.js +20 -0
  121. package/cjs/icons/check-rectangle-filled.svg.js +20 -0
  122. package/cjs/icons/close.svg.js +20 -0
  123. package/cjs/icons/edit-note.svg.js +20 -0
  124. package/cjs/icons/expand-more.svg.js +20 -0
  125. package/cjs/icons/headset.svg.js +20 -0
  126. package/cjs/icons/layers.svg.js +20 -0
  127. package/cjs/icons/link.svg.js +20 -0
  128. package/cjs/icons/play.svg.js +20 -0
  129. package/cjs/icons/search.svg.js +20 -0
  130. package/cjs/icons/star-filled.svg.js +20 -0
  131. package/cjs/icons/star.svg.js +20 -0
  132. package/cjs/icons/triangle-right.svg.js +20 -0
  133. package/cjs/icons/verification.svg.js +20 -0
  134. package/cjs/icons/warning-circle.svg.js +20 -0
  135. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
  136. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
  137. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
  138. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
  139. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
  140. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
  141. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
  142. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
  143. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
  144. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
  145. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
  146. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
  147. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
  148. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
  149. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
  150. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
  151. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
  152. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
  153. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  154. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
  155. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
  156. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
  157. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
  158. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
  159. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
  160. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
  161. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
  162. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
  163. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +445 -0
  164. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
  165. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
  166. package/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +116 -0
  167. package/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +63 -0
  168. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
  169. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
  170. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
  171. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +14 -0
  172. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +51 -0
  173. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
  174. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
  175. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
  176. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
  177. package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
  178. package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
  179. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
  180. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
  181. package/cjs/node_modules/object-assign/index.js +94 -0
  182. package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
  183. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
  184. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
  185. package/cjs/node_modules/prop-types/index.js +33 -0
  186. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
  187. package/cjs/node_modules/prop-types/lib/has.js +7 -0
  188. package/cjs/node_modules/react/cjs/react.development.js +1246 -0
  189. package/cjs/node_modules/react/cjs/react.production.js +552 -0
  190. package/cjs/node_modules/react/index.js +19 -0
  191. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
  192. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
  193. package/cjs/node_modules/react-dom/index.js +44 -0
  194. package/cjs/node_modules/react-is/cjs/react-is.development.js +228 -0
  195. package/cjs/node_modules/react-is/cjs/react-is.production.min.js +22 -0
  196. package/cjs/node_modules/react-is/index.js +13 -0
  197. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
  198. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
  199. package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
  200. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
  201. package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
  202. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
  203. package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
  204. package/cjs/node_modules/stylis/src/Enum.js +24 -0
  205. package/cjs/node_modules/stylis/src/Middleware.js +37 -0
  206. package/cjs/node_modules/stylis/src/Parser.js +201 -0
  207. package/cjs/node_modules/stylis/src/Serializer.js +43 -0
  208. package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
  209. package/cjs/node_modules/stylis/src/Utility.js +134 -0
  210. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
  211. package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
  212. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +10 -0
  213. package/{ssr → cjs/ssr/ssr}/index.js +1 -3
  214. package/cjs/styles/utils/colors.scss.js +11 -0
  215. package/cjs/utils/dateTime.js +20 -0
  216. package/cjs/utils/defaultTheme.js +52 -0
  217. package/doctor-storybook.log +20 -0
  218. package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
  219. package/esm/_virtual/index.js +3 -0
  220. package/esm/_virtual/index2.js +3 -0
  221. package/esm/_virtual/index3.js +3 -0
  222. package/esm/_virtual/index4.js +3 -0
  223. package/esm/_virtual/react-dom.development.js +3 -0
  224. package/esm/_virtual/react-dom.production.js +3 -0
  225. package/esm/_virtual/react-is.development.js +3 -0
  226. package/esm/_virtual/react-is.production.min.js +3 -0
  227. package/esm/_virtual/react.development.js +3 -0
  228. package/esm/_virtual/react.production.js +3 -0
  229. package/esm/components/data/Alert/Alert.js +77 -0
  230. package/esm/components/data/Alert/Alert.styled.js +63 -0
  231. package/esm/components/data/Alert/data/Alert/index.js +1 -0
  232. package/esm/components/data/Badge/Badge.js +89 -0
  233. package/esm/components/data/Badge/Badge.styled.js +145 -0
  234. package/esm/components/data/Badge/data/Badge/index.js +1 -0
  235. package/esm/components/data/Popover/Popover.js +94 -0
  236. package/esm/components/data/Popover/Popover.styled.js +150 -0
  237. package/esm/components/data/Popover/data/Popover/index.js +1 -0
  238. package/esm/components/data/Tab/Tab.js +27 -0
  239. package/esm/components/data/Tab/Tab.styled.js +14 -0
  240. package/esm/components/data/Tab/data/Tab/index.js +1 -0
  241. package/esm/components/data/Tabs/Tabs.js +87 -0
  242. package/esm/components/data/Tabs/Tabs.styled.js +85 -0
  243. package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
  244. package/esm/components/data/Tooltip/Tooltip.js +46 -0
  245. package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
  246. package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
  247. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
  248. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
  249. package/esm/components/data/data/index.js +7 -0
  250. package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
  251. package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
  252. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
  253. package/esm/components/inputs/Button/Button.js +184 -0
  254. package/esm/components/inputs/Button/Button.styled.js +277 -0
  255. package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
  256. package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
  257. package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
  258. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
  259. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
  260. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
  261. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
  262. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
  263. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
  264. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
  265. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
  266. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
  267. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
  268. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
  269. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
  270. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
  271. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
  272. package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
  273. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
  274. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
  275. package/esm/components/inputs/Radio/Radio.js +63 -0
  276. package/esm/components/inputs/Radio/Radio.styled.js +84 -0
  277. package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
  278. package/esm/components/inputs/Switch/Switch.js +65 -0
  279. package/esm/components/inputs/Switch/Switch.styled.js +110 -0
  280. package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
  281. package/esm/components/inputs/TextArea/TextArea.js +182 -0
  282. package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
  283. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
  284. package/esm/components/inputs/TextInput/TextInput.js +143 -0
  285. package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
  286. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
  287. package/esm/components/inputs/inputs/index.js +13 -0
  288. package/esm/components/layout/InputGroup/InputGroup.js +22 -0
  289. package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
  290. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
  291. package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
  292. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
  293. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
  294. package/esm/components/layout/layout/index.js +2 -0
  295. package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
  296. package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
  297. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
  298. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
  299. package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
  300. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
  301. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
  302. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
  303. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
  304. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
  305. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
  306. package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
  307. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
  308. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
  309. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
  310. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
  311. package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
  312. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
  313. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
  314. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
  315. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
  316. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
  317. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
  318. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
  319. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
  320. package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
  321. package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
  322. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
  323. package/esm/components/widgets/Instructions/Instructions.js +213 -0
  324. package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
  325. package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
  326. package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
  327. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
  328. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
  329. package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
  330. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
  331. package/esm/components/widgets/widgets/index.js +9 -0
  332. package/esm/hooks/useEventListner.js +22 -0
  333. package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
  334. package/esm/hooks/useOnClickOutside.js +13 -0
  335. package/esm/icons/arrow-back.svg.js +16 -0
  336. package/esm/icons/arrow-forward.svg.js +16 -0
  337. package/esm/icons/check-rectangle-filled.svg.js +16 -0
  338. package/esm/icons/close.svg.js +16 -0
  339. package/esm/icons/edit-note.svg.js +16 -0
  340. package/esm/icons/expand-more.svg.js +16 -0
  341. package/esm/icons/headset.svg.js +16 -0
  342. package/esm/icons/layers.svg.js +16 -0
  343. package/esm/icons/link.svg.js +16 -0
  344. package/esm/icons/play.svg.js +16 -0
  345. package/esm/icons/search.svg.js +16 -0
  346. package/esm/icons/star-filled.svg.js +16 -0
  347. package/esm/icons/star.svg.js +16 -0
  348. package/esm/icons/triangle-right.svg.js +16 -0
  349. package/esm/icons/verification.svg.js +16 -0
  350. package/esm/icons/warning-circle.svg.js +16 -0
  351. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
  352. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
  353. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
  354. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
  355. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
  356. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
  357. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
  358. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
  359. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
  360. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
  361. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
  362. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
  363. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
  364. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
  365. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
  366. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
  367. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
  368. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
  369. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
  370. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
  371. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
  372. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  373. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
  374. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
  375. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  376. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  377. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  378. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
  379. package/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +441 -0
  380. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
  381. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  382. package/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +107 -0
  383. package/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +56 -0
  384. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
  385. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
  386. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
  387. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +10 -0
  388. package/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
  389. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
  390. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
  391. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
  392. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
  393. package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
  394. package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
  395. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
  396. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
  397. package/esm/node_modules/object-assign/index.js +90 -0
  398. package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
  399. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
  400. package/{index-39bc450c.js → esm/node_modules/prop-types/factoryWithTypeCheckers.js} +46 -514
  401. package/esm/node_modules/prop-types/index.js +29 -0
  402. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
  403. package/esm/node_modules/prop-types/lib/has.js +3 -0
  404. package/esm/node_modules/react/cjs/react.development.js +1244 -0
  405. package/esm/node_modules/react/cjs/react.production.js +547 -0
  406. package/esm/node_modules/react/index.js +15 -0
  407. package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
  408. package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
  409. package/esm/node_modules/react-dom/index.js +42 -0
  410. package/esm/node_modules/react-is/cjs/react-is.development.js +223 -0
  411. package/esm/node_modules/react-is/cjs/react-is.production.min.js +17 -0
  412. package/esm/node_modules/react-is/index.js +11 -0
  413. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
  414. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
  415. package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
  416. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
  417. package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
  418. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
  419. package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
  420. package/esm/node_modules/stylis/src/Enum.js +12 -0
  421. package/esm/node_modules/stylis/src/Middleware.js +32 -0
  422. package/esm/node_modules/stylis/src/Parser.js +193 -0
  423. package/esm/node_modules/stylis/src/Serializer.js +38 -0
  424. package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
  425. package/esm/node_modules/stylis/src/Utility.js +117 -0
  426. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
  427. package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
  428. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +6 -0
  429. package/esm/ssr/ssr/index.js +1 -0
  430. package/esm/styles/utils/colors.scss.js +7 -0
  431. package/esm/utils/dateTime.js +16 -0
  432. package/esm/utils/defaultTheme.js +47 -0
  433. package/icons/arrow-forward.svg +3 -0
  434. package/icons/index.js +2 -0
  435. package/migration-storybook.log +392 -0
  436. package/package.json +59 -21
  437. package/styles/all.scss +3 -3
  438. package/styles/config.scss +3 -0
  439. package/styles/utils/colors.scss +1 -1
  440. package/styles/utils/theme.scss +2 -0
  441. package/ActionButton-15b418c5.js +0 -62
  442. package/Alert-e9f818d6.js +0 -118
  443. package/AssetGallery-66cb0dab.js +0 -1925
  444. package/AssetPreviewTopBar-21b7e172.js +0 -100
  445. package/AsyncSelect-368b5068.js +0 -28
  446. package/Badge-72b369a6.js +0 -222
  447. package/Button-34ce13c6.js +0 -265
  448. package/Checkbox-d77eed5d.js +0 -141
  449. package/CompactAutocompleteSelect-72d523e3.js +0 -452
  450. package/CompactStarRating-bf45f620.js +0 -340
  451. package/CompactTextInput-0b1979f1.js +0 -350
  452. package/ContextMenu-f69599d5.js +0 -33
  453. package/ContextMenuItem-9c5c4c9f.js +0 -111
  454. package/InputGroup-e30507cb.js +0 -29
  455. package/Instructions-42d2bc58.js +0 -264
  456. package/MultiLevelCheckboxSelect-acaac96b.js +0 -699
  457. package/MultiSelect-ecb48e03.js +0 -378
  458. package/Popover-a76d0fe5.js +0 -147
  459. package/Radio-7d5f630d.js +0 -87
  460. package/SectionSeparator-2a1c720b.js +0 -38
  461. package/Switch-006abdbd.js +0 -108
  462. package/Tab-87287c6e.js +0 -36
  463. package/Tabs-8e4de5a5.js +0 -152
  464. package/TextArea-76231a3b.js +0 -376
  465. package/TextInput-a440374c.js +0 -237
  466. package/Tooltip-298f0547.js +0 -62
  467. package/VerificationStatusIcon-d596165f.js +0 -122
  468. package/close-ebf2f3cf.js +0 -41
  469. package/data/Alert/index.js +0 -12
  470. package/data/Badge/index.js +0 -11
  471. package/data/Popover/index.js +0 -16
  472. package/data/Tab/index.js +0 -11
  473. package/data/Tabs/index.js +0 -13
  474. package/data/Tooltip/index.js +0 -13
  475. package/data/index.js +0 -30
  476. package/defaultTheme-fcd45bd0.js +0 -339
  477. package/edit-note-c47d292e.js +0 -41
  478. package/expand-more-94585605.js +0 -41
  479. package/inputs/ActionButton/index.js +0 -12
  480. package/inputs/AsyncSelect/index.js +0 -11
  481. package/inputs/Button/index.js +0 -19
  482. package/inputs/Checkbox/index.js +0 -13
  483. package/inputs/CompactAutocompleteSelect/index.js +0 -30
  484. package/inputs/CompactStarRating/index.js +0 -23
  485. package/inputs/CompactTextInput/index.js +0 -25
  486. package/inputs/MultiSelect/index.js +0 -17
  487. package/inputs/Radio/index.js +0 -13
  488. package/inputs/Switch/index.js +0 -13
  489. package/inputs/TextArea/index.js +0 -26
  490. package/inputs/TextInput/index.js +0 -15
  491. package/inputs/index.js +0 -62
  492. package/layout/InputGroup/index.js +0 -11
  493. package/layout/SectionSeparator/index.js +0 -11
  494. package/layout/index.js +0 -15
  495. package/react-select-creatable.esm-2f23d6c6.js +0 -7709
  496. package/shift-away-subtle-45129125.js +0 -9
  497. package/warning-circle-24522402.js +0 -41
  498. package/widgets/AssetGallery/index.js +0 -52
  499. package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -12
  500. package/widgets/ContextMenu/ContextMenuItem/index.js +0 -11
  501. package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -33
  502. package/widgets/ContextMenu/index.js +0 -11
  503. package/widgets/Instructions/index.js +0 -35
  504. package/widgets/index.js +0 -60
@@ -0,0 +1,445 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var emotionSheet_esm = require('../../sheet/dist/emotion-sheet.esm.js');
6
+ var Middleware = require('../../../stylis/src/Middleware.js');
7
+ var Enum = require('../../../stylis/src/Enum.js');
8
+ var Utility = require('../../../stylis/src/Utility.js');
9
+ var Serializer = require('../../../stylis/src/Serializer.js');
10
+ var Tokenizer = require('../../../stylis/src/Tokenizer.js');
11
+ var Parser = require('../../../stylis/src/Parser.js');
12
+
13
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
14
+ var previous = 0;
15
+ var character = 0;
16
+
17
+ while (true) {
18
+ previous = character;
19
+ character = Tokenizer.peek(); // &\f
20
+
21
+ if (previous === 38 && character === 12) {
22
+ points[index] = 1;
23
+ }
24
+
25
+ if (Tokenizer.token(character)) {
26
+ break;
27
+ }
28
+
29
+ Tokenizer.next();
30
+ }
31
+
32
+ return Tokenizer.slice(begin, Tokenizer.position);
33
+ };
34
+
35
+ var toRules = function toRules(parsed, points) {
36
+ // pretend we've started with a comma
37
+ var index = -1;
38
+ var character = 44;
39
+
40
+ do {
41
+ switch (Tokenizer.token(character)) {
42
+ case 0:
43
+ // &\f
44
+ if (character === 38 && Tokenizer.peek() === 12) {
45
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
46
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
47
+ // and when it should just concatenate the outer and inner selectors
48
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
49
+ points[index] = 1;
50
+ }
51
+
52
+ parsed[index] += identifierWithPointTracking(Tokenizer.position - 1, points, index);
53
+ break;
54
+
55
+ case 2:
56
+ parsed[index] += Tokenizer.delimit(character);
57
+ break;
58
+
59
+ case 4:
60
+ // comma
61
+ if (character === 44) {
62
+ // colon
63
+ parsed[++index] = Tokenizer.peek() === 58 ? '&\f' : '';
64
+ points[index] = parsed[index].length;
65
+ break;
66
+ }
67
+
68
+ // fallthrough
69
+
70
+ default:
71
+ parsed[index] += Utility.from(character);
72
+ }
73
+ } while (character = Tokenizer.next());
74
+
75
+ return parsed;
76
+ };
77
+
78
+ var getRules = function getRules(value, points) {
79
+ return Tokenizer.dealloc(toRules(Tokenizer.alloc(value), points));
80
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
81
+
82
+
83
+ var fixedElements = /* #__PURE__ */new WeakMap();
84
+ var compat = function compat(element) {
85
+ if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
86
+ // negative .length indicates that this rule has been already prefixed
87
+ element.length < 1) {
88
+ return;
89
+ }
90
+
91
+ var value = element.value;
92
+ var parent = element.parent;
93
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
94
+
95
+ while (parent.type !== 'rule') {
96
+ parent = parent.parent;
97
+ if (!parent) return;
98
+ } // short-circuit for the simplest case
99
+
100
+
101
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
102
+ /* colon */
103
+ && !fixedElements.get(parent)) {
104
+ return;
105
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
106
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
107
+
108
+
109
+ if (isImplicitRule) {
110
+ return;
111
+ }
112
+
113
+ fixedElements.set(element, true);
114
+ var points = [];
115
+ var rules = getRules(value, points);
116
+ var parentRules = parent.props;
117
+
118
+ for (var i = 0, k = 0; i < rules.length; i++) {
119
+ for (var j = 0; j < parentRules.length; j++, k++) {
120
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
121
+ }
122
+ }
123
+ };
124
+ var removeLabel = function removeLabel(element) {
125
+ if (element.type === 'decl') {
126
+ var value = element.value;
127
+
128
+ if ( // charcode for l
129
+ value.charCodeAt(0) === 108 && // charcode for b
130
+ value.charCodeAt(2) === 98) {
131
+ // this ignores label
132
+ element["return"] = '';
133
+ element.value = '';
134
+ }
135
+ }
136
+ };
137
+
138
+ /* eslint-disable no-fallthrough */
139
+
140
+ function prefix(value, length) {
141
+ switch (Utility.hash(value, length)) {
142
+ // color-adjust
143
+ case 5103:
144
+ return Enum.WEBKIT + 'print-' + value + value;
145
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
146
+
147
+ case 5737:
148
+ case 4201:
149
+ case 3177:
150
+ case 3433:
151
+ case 1641:
152
+ case 4457:
153
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
154
+
155
+ case 5572:
156
+ case 6356:
157
+ case 5844:
158
+ case 3191:
159
+ case 6645:
160
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
161
+
162
+ case 6391:
163
+ case 5879:
164
+ case 5623:
165
+ case 6135:
166
+ case 4599:
167
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
168
+
169
+ case 4215:
170
+ case 6389:
171
+ case 5109:
172
+ case 5365:
173
+ case 5621:
174
+ case 3829:
175
+ return Enum.WEBKIT + value + value;
176
+ // appearance, user-select, transform, hyphens, text-size-adjust
177
+
178
+ case 5349:
179
+ case 4246:
180
+ case 4810:
181
+ case 6968:
182
+ case 2756:
183
+ return Enum.WEBKIT + value + Enum.MOZ + value + Enum.MS + value + value;
184
+ // flex, flex-direction
185
+
186
+ case 6828:
187
+ case 4268:
188
+ return Enum.WEBKIT + value + Enum.MS + value + value;
189
+ // order
190
+
191
+ case 6165:
192
+ return Enum.WEBKIT + value + Enum.MS + 'flex-' + value + value;
193
+ // align-items
194
+
195
+ case 5187:
196
+ return Enum.WEBKIT + value + Utility.replace(value, /(\w+).+(:[^]+)/, Enum.WEBKIT + 'box-$1$2' + Enum.MS + 'flex-$1$2') + value;
197
+ // align-self
198
+
199
+ case 5443:
200
+ return Enum.WEBKIT + value + Enum.MS + 'flex-item-' + Utility.replace(value, /flex-|-self/, '') + value;
201
+ // align-content
202
+
203
+ case 4675:
204
+ return Enum.WEBKIT + value + Enum.MS + 'flex-line-pack' + Utility.replace(value, /align-content|flex-|-self/, '') + value;
205
+ // flex-shrink
206
+
207
+ case 5548:
208
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, 'shrink', 'negative') + value;
209
+ // flex-basis
210
+
211
+ case 5292:
212
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, 'basis', 'preferred-size') + value;
213
+ // flex-grow
214
+
215
+ case 6060:
216
+ return Enum.WEBKIT + 'box-' + Utility.replace(value, '-grow', '') + Enum.WEBKIT + value + Enum.MS + Utility.replace(value, 'grow', 'positive') + value;
217
+ // transition
218
+
219
+ case 4554:
220
+ return Enum.WEBKIT + Utility.replace(value, /([^-])(transform)/g, '$1' + Enum.WEBKIT + '$2') + value;
221
+ // cursor
222
+
223
+ case 6187:
224
+ return Utility.replace(Utility.replace(Utility.replace(value, /(zoom-|grab)/, Enum.WEBKIT + '$1'), /(image-set)/, Enum.WEBKIT + '$1'), value, '') + value;
225
+ // background, background-image
226
+
227
+ case 5495:
228
+ case 3959:
229
+ return Utility.replace(value, /(image-set\([^]*)/, Enum.WEBKIT + '$1' + '$`$1');
230
+ // justify-content
231
+
232
+ case 4968:
233
+ return Utility.replace(Utility.replace(value, /(.+:)(flex-)?(.*)/, Enum.WEBKIT + 'box-pack:$3' + Enum.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + Enum.WEBKIT + value + value;
234
+ // (margin|padding)-inline-(start|end)
235
+
236
+ case 4095:
237
+ case 3583:
238
+ case 4068:
239
+ case 2532:
240
+ return Utility.replace(value, /(.+)-inline(.+)/, Enum.WEBKIT + '$1$2') + value;
241
+ // (min|max)?(width|height|inline-size|block-size)
242
+
243
+ case 8116:
244
+ case 7059:
245
+ case 5753:
246
+ case 5535:
247
+ case 5445:
248
+ case 5701:
249
+ case 4933:
250
+ case 4677:
251
+ case 5533:
252
+ case 5789:
253
+ case 5021:
254
+ case 4765:
255
+ // stretch, max-content, min-content, fill-available
256
+ if (Utility.strlen(value) - 1 - length > 6) switch (Utility.charat(value, length + 1)) {
257
+ // (m)ax-content, (m)in-content
258
+ case 109:
259
+ // -
260
+ if (Utility.charat(value, length + 4) !== 45) break;
261
+ // (f)ill-available, (f)it-content
262
+
263
+ case 102:
264
+ return Utility.replace(value, /(.+:)(.+)-([^]+)/, '$1' + Enum.WEBKIT + '$2-$3' + '$1' + Enum.MOZ + (Utility.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
265
+ // (s)tretch
266
+
267
+ case 115:
268
+ return ~Utility.indexof(value, 'stretch') ? prefix(Utility.replace(value, 'stretch', 'fill-available'), length) + value : value;
269
+ }
270
+ break;
271
+ // position: sticky
272
+
273
+ case 4949:
274
+ // (s)ticky?
275
+ if (Utility.charat(value, length + 1) !== 115) break;
276
+ // display: (flex|inline-flex)
277
+
278
+ case 6444:
279
+ switch (Utility.charat(value, Utility.strlen(value) - 3 - (~Utility.indexof(value, '!important') && 10))) {
280
+ // stic(k)y
281
+ case 107:
282
+ return Utility.replace(value, ':', ':' + Enum.WEBKIT) + value;
283
+ // (inline-)?fl(e)x
284
+
285
+ case 101:
286
+ return Utility.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + Enum.WEBKIT + (Utility.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + Enum.WEBKIT + '$2$3' + '$1' + Enum.MS + '$2box$3') + value;
287
+ }
288
+
289
+ break;
290
+ // writing-mode
291
+
292
+ case 5936:
293
+ switch (Utility.charat(value, length + 11)) {
294
+ // vertical-l(r)
295
+ case 114:
296
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
297
+ // vertical-r(l)
298
+
299
+ case 108:
300
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
301
+ // horizontal(-)tb
302
+
303
+ case 45:
304
+ return Enum.WEBKIT + value + Enum.MS + Utility.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
305
+ }
306
+
307
+ return Enum.WEBKIT + value + Enum.MS + value + value;
308
+ }
309
+
310
+ return value;
311
+ }
312
+
313
+ var prefixer = function prefixer(element, index, children, callback) {
314
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
315
+ case Enum.DECLARATION:
316
+ element["return"] = prefix(element.value, element.length);
317
+ break;
318
+
319
+ case Enum.KEYFRAMES:
320
+ return Serializer.serialize([Tokenizer.copy(element, {
321
+ value: Utility.replace(element.value, '@', '@' + Enum.WEBKIT)
322
+ })], callback);
323
+
324
+ case Enum.RULESET:
325
+ if (element.length) return Utility.combine(element.props, function (value) {
326
+ switch (Utility.match(value, /(::plac\w+|:read-\w+)/)) {
327
+ // :read-(only|write)
328
+ case ':read-only':
329
+ case ':read-write':
330
+ return Serializer.serialize([Tokenizer.copy(element, {
331
+ props: [Utility.replace(value, /:(read-\w+)/, ':' + Enum.MOZ + '$1')]
332
+ })], callback);
333
+ // :placeholder
334
+
335
+ case '::placeholder':
336
+ return Serializer.serialize([Tokenizer.copy(element, {
337
+ props: [Utility.replace(value, /:(plac\w+)/, ':' + Enum.WEBKIT + 'input-$1')]
338
+ }), Tokenizer.copy(element, {
339
+ props: [Utility.replace(value, /:(plac\w+)/, ':' + Enum.MOZ + '$1')]
340
+ }), Tokenizer.copy(element, {
341
+ props: [Utility.replace(value, /:(plac\w+)/, Enum.MS + 'input-$1')]
342
+ })], callback);
343
+ }
344
+
345
+ return '';
346
+ });
347
+ }
348
+ };
349
+
350
+ var defaultStylisPlugins = [prefixer];
351
+
352
+ var createCache = function createCache(options) {
353
+ var key = options.key;
354
+
355
+ if (key === 'css') {
356
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
357
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
358
+ // note this very very intentionally targets all style elements regardless of the key to ensure
359
+ // that creating a cache works inside of render of a React component
360
+
361
+ Array.prototype.forEach.call(ssrStyles, function (node) {
362
+ // we want to only move elements which have a space in the data-emotion attribute value
363
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
364
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
365
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
366
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
367
+ // will not result in the Emotion 10 styles being destroyed
368
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
369
+
370
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
371
+ return;
372
+ }
373
+
374
+ document.head.appendChild(node);
375
+ node.setAttribute('data-s', '');
376
+ });
377
+ }
378
+
379
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
380
+
381
+ var inserted = {};
382
+ var container;
383
+ var nodesToHydrate = [];
384
+
385
+ {
386
+ container = options.container || document.head;
387
+ Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
388
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
389
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
390
+ var attrib = node.getAttribute("data-emotion").split(' ');
391
+
392
+ for (var i = 1; i < attrib.length; i++) {
393
+ inserted[attrib[i]] = true;
394
+ }
395
+
396
+ nodesToHydrate.push(node);
397
+ });
398
+ }
399
+
400
+ var _insert;
401
+
402
+ var omnipresentPlugins = [compat, removeLabel];
403
+
404
+ {
405
+ var currentSheet;
406
+ var finalizingPlugins = [Serializer.stringify, Middleware.rulesheet(function (rule) {
407
+ currentSheet.insert(rule);
408
+ })];
409
+ var serializer = Middleware.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
410
+
411
+ var stylis = function stylis(styles) {
412
+ return Serializer.serialize(Parser.compile(styles), serializer);
413
+ };
414
+
415
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
416
+ currentSheet = sheet;
417
+
418
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
419
+
420
+ if (shouldCache) {
421
+ cache.inserted[serialized.name] = true;
422
+ }
423
+ };
424
+ }
425
+
426
+ var cache = {
427
+ key: key,
428
+ sheet: new emotionSheet_esm.StyleSheet({
429
+ key: key,
430
+ container: container,
431
+ nonce: options.nonce,
432
+ speedy: options.speedy,
433
+ prepend: options.prepend,
434
+ insertionPoint: options.insertionPoint
435
+ }),
436
+ nonce: options.nonce,
437
+ inserted: inserted,
438
+ registered: {},
439
+ insert: _insert
440
+ };
441
+ cache.sheet.hydrate(nodesToHydrate);
442
+ return cache;
443
+ };
444
+
445
+ exports["default"] = createCache;
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* eslint-disable */
6
+ // Inspired by https://github.com/garycourt/murmurhash-js
7
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
8
+ function murmur2(str) {
9
+ // 'm' and 'r' are mixing constants generated offline.
10
+ // They're not really 'magic', they just happen to work well.
11
+ // const m = 0x5bd1e995;
12
+ // const r = 24;
13
+ // Initialize the hash
14
+ var h = 0; // Mix 4 bytes at a time into the hash
15
+
16
+ var k,
17
+ i = 0,
18
+ len = str.length;
19
+
20
+ for (; len >= 4; ++i, len -= 4) {
21
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
22
+ k =
23
+ /* Math.imul(k, m): */
24
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
25
+ k ^=
26
+ /* k >>> r: */
27
+ k >>> 24;
28
+ h =
29
+ /* Math.imul(k, m): */
30
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
31
+ /* Math.imul(h, m): */
32
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
33
+ } // Handle the last few bytes of the input array
34
+
35
+
36
+ switch (len) {
37
+ case 3:
38
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
39
+
40
+ case 2:
41
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
42
+
43
+ case 1:
44
+ h ^= str.charCodeAt(i) & 0xff;
45
+ h =
46
+ /* Math.imul(h, m): */
47
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
48
+ } // Do a few final mixes of the hash to ensure the last few
49
+ // bytes are well-incorporated.
50
+
51
+
52
+ h ^= h >>> 13;
53
+ h =
54
+ /* Math.imul(h, m): */
55
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
56
+ return ((h ^ h >>> 15) >>> 0).toString(36);
57
+ }
58
+
59
+ exports["default"] = murmur2;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function memoize(fn) {
6
+ var cache = Object.create(null);
7
+ return function (arg) {
8
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
9
+ return cache[arg];
10
+ };
11
+ }
12
+
13
+ exports["default"] = memoize;
@@ -0,0 +1,116 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../react/index.js');
6
+ var emotionCache_browser_esm = require('../../cache/dist/emotion-cache.browser.esm.js');
7
+ var emotionUtils_browser_esm = require('../../utils/dist/emotion-utils.browser.esm.js');
8
+ var emotionSerialize_esm = require('../../serialize/dist/emotion-serialize.esm.js');
9
+ var emotionUseInsertionEffectWithFallbacks_browser_esm = require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js');
10
+ var index = require('../../../../_virtual/index.js');
11
+
12
+ var isDevelopment = false;
13
+
14
+ var EmotionCacheContext = /* #__PURE__ */index.react.exports.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
15
+ // because this module is primarily intended for the browser and node
16
+ // but it's also required in react native and similar environments sometimes
17
+ // and we could have a special build just for that
18
+ // but this is much easier and the native packages
19
+ // might use a different theme context in the future anyway
20
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */emotionCache_browser_esm["default"]({
21
+ key: 'css'
22
+ }) : null);
23
+
24
+ EmotionCacheContext.Provider;
25
+
26
+ var withEmotionCache = function withEmotionCache(func) {
27
+ return /*#__PURE__*/index.react.exports.forwardRef(function (props, ref) {
28
+ // the cache will never be null in the browser
29
+ var cache = index.react.exports.useContext(EmotionCacheContext);
30
+ return func(props, cache, ref);
31
+ });
32
+ };
33
+
34
+ var ThemeContext = /* #__PURE__ */index.react.exports.createContext({});
35
+
36
+ var hasOwn = {}.hasOwnProperty;
37
+
38
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
39
+ var createEmotionProps = function createEmotionProps(type, props) {
40
+
41
+ var newProps = {};
42
+
43
+ for (var _key in props) {
44
+ if (hasOwn.call(props, _key)) {
45
+ newProps[_key] = props[_key];
46
+ }
47
+ }
48
+
49
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
50
+
51
+ return newProps;
52
+ };
53
+
54
+ var Insertion = function Insertion(_ref) {
55
+ var cache = _ref.cache,
56
+ serialized = _ref.serialized,
57
+ isStringTag = _ref.isStringTag;
58
+ emotionUtils_browser_esm.registerStyles(cache, serialized, isStringTag);
59
+ emotionUseInsertionEffectWithFallbacks_browser_esm.useInsertionEffectAlwaysWithSyncFallback(function () {
60
+ return emotionUtils_browser_esm.insertStyles(cache, serialized, isStringTag);
61
+ });
62
+
63
+ return null;
64
+ };
65
+
66
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
67
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
68
+ // not passing the registered cache to serializeStyles because it would
69
+ // make certain babel optimisations not possible
70
+
71
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
72
+ cssProp = cache.registered[cssProp];
73
+ }
74
+
75
+ var WrappedComponent = props[typePropName];
76
+ var registeredStyles = [cssProp];
77
+ var className = '';
78
+
79
+ if (typeof props.className === 'string') {
80
+ className = emotionUtils_browser_esm.getRegisteredStyles(cache.registered, registeredStyles, props.className);
81
+ } else if (props.className != null) {
82
+ className = props.className + " ";
83
+ }
84
+
85
+ var serialized = emotionSerialize_esm.serializeStyles(registeredStyles, undefined, index.react.exports.useContext(ThemeContext));
86
+
87
+ className += cache.key + "-" + serialized.name;
88
+ var newProps = {};
89
+
90
+ for (var _key2 in props) {
91
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {
92
+ newProps[_key2] = props[_key2];
93
+ }
94
+ }
95
+
96
+ newProps.className = className;
97
+
98
+ if (ref) {
99
+ newProps.ref = ref;
100
+ }
101
+
102
+ return /*#__PURE__*/index.react.exports.createElement(index.react.exports.Fragment, null, /*#__PURE__*/index.react.exports.createElement(Insertion, {
103
+ cache: cache,
104
+ serialized: serialized,
105
+ isStringTag: typeof WrappedComponent === 'string'
106
+ }), /*#__PURE__*/index.react.exports.createElement(WrappedComponent, newProps));
107
+ });
108
+
109
+ var Emotion$1 = Emotion;
110
+
111
+ exports.E = Emotion$1;
112
+ exports.T = ThemeContext;
113
+ exports.c = createEmotionProps;
114
+ exports.h = hasOwn;
115
+ exports.i = isDevelopment;
116
+ exports.w = withEmotionCache;
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var emotionElementF0de968e_browser_esm = require('./emotion-element-f0de968e.browser.esm.js');
6
+ require('../../../react/index.js');
7
+ require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js');
8
+ var emotionSerialize_esm = require('../../serialize/dist/emotion-serialize.esm.js');
9
+ require('../../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js');
10
+ var index = require('../../../../_virtual/index.js');
11
+
12
+ exports.jsx = function jsx(type, props) {
13
+ // eslint-disable-next-line prefer-rest-params
14
+ var args = arguments;
15
+
16
+ if (props == null || !emotionElementF0de968e_browser_esm.h.call(props, 'css')) {
17
+ return index.react.exports.createElement.apply(undefined, args);
18
+ }
19
+
20
+ var argsLength = args.length;
21
+ var createElementArgArray = new Array(argsLength);
22
+ createElementArgArray[0] = emotionElementF0de968e_browser_esm.E;
23
+ createElementArgArray[1] = emotionElementF0de968e_browser_esm.c(type, props);
24
+
25
+ for (var i = 2; i < argsLength; i++) {
26
+ createElementArgArray[i] = args[i];
27
+ }
28
+
29
+ return index.react.exports.createElement.apply(null, createElementArgArray);
30
+ };
31
+
32
+ (function (_jsx) {
33
+ var JSX;
34
+
35
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
36
+ })(exports.jsx || (exports.jsx = {}));
37
+
38
+ function css() {
39
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40
+ args[_key] = arguments[_key];
41
+ }
42
+
43
+ return emotionSerialize_esm.serializeStyles(args);
44
+ }
45
+
46
+ function keyframes() {
47
+ var insertable = css.apply(void 0, arguments);
48
+ var name = "animation-" + insertable.name;
49
+ return {
50
+ name: name,
51
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
52
+ anim: 1,
53
+ toString: function toString() {
54
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
55
+ }
56
+ };
57
+ }
58
+
59
+ exports.ThemeContext = emotionElementF0de968e_browser_esm.T;
60
+ exports.withEmotionCache = emotionElementF0de968e_browser_esm.w;
61
+ exports.createElement = exports.jsx;
62
+ exports.css = css;
63
+ exports.keyframes = keyframes;