@ntbjs/react-components 1.3.0-rc.8 → 2.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) 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/index5.js +7 -0
  8. package/cjs/_virtual/react-dom.development.js +7 -0
  9. package/cjs/_virtual/react-dom.production.js +7 -0
  10. package/cjs/_virtual/react-is.development.js +7 -0
  11. package/cjs/_virtual/react-is.development2.js +7 -0
  12. package/cjs/_virtual/react-is.production.min.js +7 -0
  13. package/cjs/_virtual/react-is.production.min2.js +7 -0
  14. package/cjs/_virtual/react.development.js +7 -0
  15. package/cjs/_virtual/react.production.js +7 -0
  16. package/cjs/components/data/Alert/Alert.js +81 -0
  17. package/cjs/components/data/Alert/Alert.styled.js +72 -0
  18. package/cjs/components/data/Alert/data/Alert/index.js +9 -0
  19. package/cjs/components/data/Badge/Badge.js +93 -0
  20. package/cjs/components/data/Badge/Badge.styled.js +156 -0
  21. package/cjs/components/data/Badge/data/Badge/index.js +9 -0
  22. package/cjs/components/data/Popover/Popover.js +102 -0
  23. package/cjs/components/data/Popover/Popover.styled.js +159 -0
  24. package/cjs/components/data/Popover/data/Popover/index.js +9 -0
  25. package/cjs/components/data/Tab/Tab.js +31 -0
  26. package/cjs/components/data/Tab/Tab.styled.js +22 -0
  27. package/cjs/components/data/Tab/data/Tab/index.js +9 -0
  28. package/cjs/components/data/Tabs/Tabs.js +91 -0
  29. package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
  30. package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
  31. package/cjs/components/data/Tooltip/Tooltip.js +50 -0
  32. package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
  33. package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
  34. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
  35. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
  36. package/cjs/components/data/data/index.js +21 -0
  37. package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
  38. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
  39. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
  40. package/cjs/components/inputs/Button/Button.js +188 -0
  41. package/cjs/components/inputs/Button/Button.styled.js +294 -0
  42. package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
  43. package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
  44. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
  45. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
  46. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
  47. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
  48. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
  49. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
  50. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
  51. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
  52. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
  53. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
  54. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
  55. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
  56. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
  57. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
  58. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
  59. package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
  60. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
  61. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
  62. package/cjs/components/inputs/Radio/Radio.js +67 -0
  63. package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
  64. package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
  65. package/cjs/components/inputs/Switch/Switch.js +69 -0
  66. package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
  67. package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
  68. package/cjs/components/inputs/TextArea/TextArea.js +186 -0
  69. package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
  70. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
  71. package/cjs/components/inputs/TextInput/TextInput.js +147 -0
  72. package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
  73. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
  74. package/cjs/components/inputs/inputs/index.js +33 -0
  75. package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
  76. package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
  77. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
  78. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
  79. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
  80. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
  81. package/cjs/components/layout/layout/index.js +11 -0
  82. package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
  83. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
  84. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
  85. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
  86. package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
  87. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
  88. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
  89. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
  90. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
  91. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
  92. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
  93. package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
  94. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
  95. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
  96. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
  97. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
  98. package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
  99. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
  100. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
  101. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
  102. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
  103. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
  104. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
  105. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
  106. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
  107. package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
  108. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
  109. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
  110. package/cjs/components/widgets/Instructions/Instructions.js +217 -0
  111. package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
  112. package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
  113. package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
  114. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
  115. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
  116. package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
  117. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
  118. package/cjs/components/widgets/widgets/index.js +25 -0
  119. package/cjs/hooks/useEventListner.js +26 -0
  120. package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
  121. package/cjs/hooks/useOnClickOutside.js +17 -0
  122. package/cjs/icons/arrow-back.svg.js +20 -0
  123. package/cjs/icons/arrow-forward.svg.js +20 -0
  124. package/cjs/icons/check-rectangle-filled.svg.js +20 -0
  125. package/cjs/icons/close.svg.js +20 -0
  126. package/cjs/icons/edit-note.svg.js +20 -0
  127. package/cjs/icons/expand-more.svg.js +20 -0
  128. package/cjs/icons/headset.svg.js +20 -0
  129. package/cjs/icons/layers.svg.js +20 -0
  130. package/cjs/icons/link.svg.js +20 -0
  131. package/cjs/icons/play.svg.js +20 -0
  132. package/cjs/icons/search.svg.js +20 -0
  133. package/cjs/icons/star-filled.svg.js +20 -0
  134. package/cjs/icons/star.svg.js +20 -0
  135. package/cjs/icons/triangle-right.svg.js +20 -0
  136. package/cjs/icons/verification.svg.js +20 -0
  137. package/cjs/icons/warning-circle.svg.js +20 -0
  138. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
  139. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
  140. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
  141. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
  142. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
  143. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
  144. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
  145. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
  146. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
  147. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
  148. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
  149. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
  150. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
  151. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
  152. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
  153. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
  154. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
  155. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
  156. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  157. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
  158. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
  159. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
  160. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
  161. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
  162. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
  163. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
  164. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
  165. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
  166. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +503 -0
  167. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
  168. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
  169. package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +158 -0
  170. package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +66 -0
  171. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
  172. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
  173. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
  174. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +16 -0
  175. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +60 -0
  176. package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
  177. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
  178. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
  179. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
  180. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
  181. package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
  182. package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
  183. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
  184. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +186 -0
  185. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +22 -0
  186. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +13 -0
  187. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
  188. package/cjs/node_modules/object-assign/index.js +94 -0
  189. package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
  190. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
  191. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
  192. package/cjs/node_modules/prop-types/index.js +33 -0
  193. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
  194. package/cjs/node_modules/prop-types/lib/has.js +7 -0
  195. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +186 -0
  196. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +22 -0
  197. package/cjs/node_modules/prop-types/node_modules/react-is/index.js +13 -0
  198. package/cjs/node_modules/react/cjs/react.development.js +1246 -0
  199. package/cjs/node_modules/react/cjs/react.production.js +552 -0
  200. package/cjs/node_modules/react/index.js +19 -0
  201. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
  202. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
  203. package/cjs/node_modules/react-dom/index.js +44 -0
  204. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
  205. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
  206. package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
  207. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
  208. package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
  209. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
  210. package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
  211. package/cjs/node_modules/stylis/src/Enum.js +24 -0
  212. package/cjs/node_modules/stylis/src/Middleware.js +37 -0
  213. package/cjs/node_modules/stylis/src/Parser.js +201 -0
  214. package/cjs/node_modules/stylis/src/Serializer.js +43 -0
  215. package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
  216. package/cjs/node_modules/stylis/src/Utility.js +134 -0
  217. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
  218. package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
  219. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +12 -0
  220. package/{ssr → cjs/ssr/ssr}/index.js +1 -3
  221. package/cjs/styles/utils/colors.scss.js +11 -0
  222. package/cjs/utils/dateTime.js +20 -0
  223. package/cjs/utils/defaultTheme.js +52 -0
  224. package/doctor-storybook.log +20 -0
  225. package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
  226. package/esm/_virtual/index.js +3 -0
  227. package/esm/_virtual/index2.js +3 -0
  228. package/esm/_virtual/index3.js +3 -0
  229. package/esm/_virtual/index4.js +3 -0
  230. package/esm/_virtual/index5.js +3 -0
  231. package/esm/_virtual/react-dom.development.js +3 -0
  232. package/esm/_virtual/react-dom.production.js +3 -0
  233. package/esm/_virtual/react-is.development.js +3 -0
  234. package/esm/_virtual/react-is.development2.js +3 -0
  235. package/esm/_virtual/react-is.production.min.js +3 -0
  236. package/esm/_virtual/react-is.production.min2.js +3 -0
  237. package/esm/_virtual/react.development.js +3 -0
  238. package/esm/_virtual/react.production.js +3 -0
  239. package/esm/components/data/Alert/Alert.js +77 -0
  240. package/esm/components/data/Alert/Alert.styled.js +63 -0
  241. package/esm/components/data/Alert/data/Alert/index.js +1 -0
  242. package/esm/components/data/Badge/Badge.js +89 -0
  243. package/esm/components/data/Badge/Badge.styled.js +145 -0
  244. package/esm/components/data/Badge/data/Badge/index.js +1 -0
  245. package/esm/components/data/Popover/Popover.js +94 -0
  246. package/esm/components/data/Popover/Popover.styled.js +150 -0
  247. package/esm/components/data/Popover/data/Popover/index.js +1 -0
  248. package/esm/components/data/Tab/Tab.js +27 -0
  249. package/esm/components/data/Tab/Tab.styled.js +14 -0
  250. package/esm/components/data/Tab/data/Tab/index.js +1 -0
  251. package/esm/components/data/Tabs/Tabs.js +87 -0
  252. package/esm/components/data/Tabs/Tabs.styled.js +85 -0
  253. package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
  254. package/esm/components/data/Tooltip/Tooltip.js +46 -0
  255. package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
  256. package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
  257. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
  258. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
  259. package/esm/components/data/data/index.js +7 -0
  260. package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
  261. package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
  262. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
  263. package/esm/components/inputs/Button/Button.js +184 -0
  264. package/esm/components/inputs/Button/Button.styled.js +277 -0
  265. package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
  266. package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
  267. package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
  268. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
  269. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
  270. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
  271. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
  272. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
  273. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
  274. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
  275. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
  276. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
  277. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
  278. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
  279. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
  280. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
  281. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
  282. package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
  283. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
  284. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
  285. package/esm/components/inputs/Radio/Radio.js +63 -0
  286. package/esm/components/inputs/Radio/Radio.styled.js +84 -0
  287. package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
  288. package/esm/components/inputs/Switch/Switch.js +65 -0
  289. package/esm/components/inputs/Switch/Switch.styled.js +110 -0
  290. package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
  291. package/esm/components/inputs/TextArea/TextArea.js +182 -0
  292. package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
  293. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
  294. package/esm/components/inputs/TextInput/TextInput.js +143 -0
  295. package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
  296. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
  297. package/esm/components/inputs/inputs/index.js +13 -0
  298. package/esm/components/layout/InputGroup/InputGroup.js +22 -0
  299. package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
  300. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
  301. package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
  302. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
  303. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
  304. package/esm/components/layout/layout/index.js +2 -0
  305. package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
  306. package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
  307. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
  308. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
  309. package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
  310. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
  311. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
  312. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
  313. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
  314. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
  315. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
  316. package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
  317. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
  318. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
  319. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
  320. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
  321. package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
  322. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
  323. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
  324. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
  325. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
  326. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
  327. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
  328. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
  329. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
  330. package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
  331. package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
  332. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
  333. package/esm/components/widgets/Instructions/Instructions.js +213 -0
  334. package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
  335. package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
  336. package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
  337. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
  338. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
  339. package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
  340. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
  341. package/esm/components/widgets/widgets/index.js +9 -0
  342. package/esm/hooks/useEventListner.js +22 -0
  343. package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
  344. package/esm/hooks/useOnClickOutside.js +13 -0
  345. package/esm/icons/arrow-back.svg.js +16 -0
  346. package/esm/icons/arrow-forward.svg.js +16 -0
  347. package/esm/icons/check-rectangle-filled.svg.js +16 -0
  348. package/esm/icons/close.svg.js +16 -0
  349. package/esm/icons/edit-note.svg.js +16 -0
  350. package/esm/icons/expand-more.svg.js +16 -0
  351. package/esm/icons/headset.svg.js +16 -0
  352. package/esm/icons/layers.svg.js +16 -0
  353. package/esm/icons/link.svg.js +16 -0
  354. package/esm/icons/play.svg.js +16 -0
  355. package/esm/icons/search.svg.js +16 -0
  356. package/esm/icons/star-filled.svg.js +16 -0
  357. package/esm/icons/star.svg.js +16 -0
  358. package/esm/icons/triangle-right.svg.js +16 -0
  359. package/esm/icons/verification.svg.js +16 -0
  360. package/esm/icons/warning-circle.svg.js +16 -0
  361. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
  362. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
  363. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
  364. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
  365. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
  366. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
  367. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
  368. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
  369. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
  370. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
  371. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
  372. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
  373. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
  374. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
  375. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
  376. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
  377. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
  378. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
  379. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
  380. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
  381. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
  382. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  383. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
  384. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
  385. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  386. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  387. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  388. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
  389. package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +499 -0
  390. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
  391. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  392. package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +149 -0
  393. package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +56 -0
  394. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
  395. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
  396. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
  397. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +12 -0
  398. package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +54 -0
  399. package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
  400. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
  401. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
  402. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
  403. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
  404. package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
  405. package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
  406. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
  407. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +181 -0
  408. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +17 -0
  409. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
  410. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
  411. package/esm/node_modules/object-assign/index.js +90 -0
  412. package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
  413. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
  414. package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +617 -0
  415. package/esm/node_modules/prop-types/index.js +29 -0
  416. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
  417. package/esm/node_modules/prop-types/lib/has.js +3 -0
  418. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +181 -0
  419. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +17 -0
  420. package/esm/node_modules/prop-types/node_modules/react-is/index.js +11 -0
  421. package/esm/node_modules/react/cjs/react.development.js +1244 -0
  422. package/esm/node_modules/react/cjs/react.production.js +547 -0
  423. package/esm/node_modules/react/index.js +15 -0
  424. package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
  425. package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
  426. package/esm/node_modules/react-dom/index.js +42 -0
  427. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
  428. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
  429. package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
  430. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
  431. package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
  432. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
  433. package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
  434. package/esm/node_modules/stylis/src/Enum.js +12 -0
  435. package/esm/node_modules/stylis/src/Middleware.js +32 -0
  436. package/esm/node_modules/stylis/src/Parser.js +193 -0
  437. package/esm/node_modules/stylis/src/Serializer.js +38 -0
  438. package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
  439. package/esm/node_modules/stylis/src/Utility.js +117 -0
  440. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
  441. package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
  442. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +8 -0
  443. package/esm/ssr/ssr/index.js +1 -0
  444. package/esm/styles/utils/colors.scss.js +7 -0
  445. package/esm/utils/dateTime.js +16 -0
  446. package/esm/utils/defaultTheme.js +47 -0
  447. package/icons/arrow-forward.svg +3 -0
  448. package/icons/index.js +2 -0
  449. package/migration-storybook.log +392 -0
  450. package/package.json +59 -21
  451. package/styles/all.scss +3 -3
  452. package/styles/config.scss +3 -0
  453. package/styles/utils/colors.scss +1 -1
  454. package/styles/utils/theme.scss +2 -0
  455. package/ActionButton-46735b89.js +0 -61
  456. package/Alert-13b75102.js +0 -117
  457. package/AssetGallery-0d503207.js +0 -1923
  458. package/AssetPreviewTopBar-912c3469.js +0 -99
  459. package/Badge-757b0a39.js +0 -221
  460. package/Button-49f82b31.js +0 -264
  461. package/Checkbox-68dc38a8.js +0 -140
  462. package/CompactAutocompleteSelect-96137f48.js +0 -451
  463. package/CompactStarRating-15c1b812.js +0 -339
  464. package/CompactTextInput-198d0800.js +0 -349
  465. package/ContextMenu-4ec3d9f3.js +0 -32
  466. package/ContextMenuItem-ba2b697e.js +0 -110
  467. package/InputGroup-49fbc423.js +0 -28
  468. package/Instructions-2babb8a3.js +0 -263
  469. package/MultiLevelCheckboxSelect-e6e5cb90.js +0 -698
  470. package/MultiSelect-efd60232.js +0 -377
  471. package/Popover-569cd272.js +0 -146
  472. package/Radio-32d0513a.js +0 -86
  473. package/SectionSeparator-259a22ed.js +0 -37
  474. package/Switch-4a41585f.js +0 -107
  475. package/Tab-f499ecbc.js +0 -35
  476. package/Tabs-116aa951.js +0 -151
  477. package/TextArea-18fbcc9f.js +0 -375
  478. package/TextInput-0d109708.js +0 -236
  479. package/Tooltip-66daf6e3.js +0 -61
  480. package/VerificationStatusIcon-d5bfb67a.js +0 -121
  481. package/close-ebf2f3cf.js +0 -41
  482. package/data/Alert/index.js +0 -11
  483. package/data/Badge/index.js +0 -10
  484. package/data/Popover/index.js +0 -15
  485. package/data/Tab/index.js +0 -10
  486. package/data/Tabs/index.js +0 -12
  487. package/data/Tooltip/index.js +0 -12
  488. package/data/index.js +0 -29
  489. package/defaultTheme-ea44e34a.js +0 -1422
  490. package/edit-note-c47d292e.js +0 -41
  491. package/expand-more-94585605.js +0 -41
  492. package/inputs/ActionButton/index.js +0 -11
  493. package/inputs/Button/index.js +0 -18
  494. package/inputs/Checkbox/index.js +0 -12
  495. package/inputs/CompactAutocompleteSelect/index.js +0 -29
  496. package/inputs/CompactStarRating/index.js +0 -22
  497. package/inputs/CompactTextInput/index.js +0 -24
  498. package/inputs/MultiSelect/index.js +0 -16
  499. package/inputs/Radio/index.js +0 -12
  500. package/inputs/Switch/index.js +0 -12
  501. package/inputs/TextArea/index.js +0 -25
  502. package/inputs/TextInput/index.js +0 -14
  503. package/inputs/index.js +0 -59
  504. package/layout/InputGroup/index.js +0 -10
  505. package/layout/SectionSeparator/index.js +0 -10
  506. package/layout/index.js +0 -14
  507. package/react-select-creatable.esm-2f23d6c6.js +0 -7709
  508. package/shift-away-subtle-0bed9a3c.js +0 -9
  509. package/warning-circle-24522402.js +0 -41
  510. package/widgets/AssetGallery/index.js +0 -50
  511. package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -11
  512. package/widgets/ContextMenu/ContextMenuItem/index.js +0 -10
  513. package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -32
  514. package/widgets/ContextMenu/index.js +0 -10
  515. package/widgets/Instructions/index.js +0 -34
  516. package/widgets/index.js +0 -58
@@ -0,0 +1,1385 @@
1
+ import _objectSpread2 from '../../@babel/runtime/helpers/esm/objectSpread2.js';
2
+ import _extends from '../../@babel/runtime/helpers/esm/extends.js';
3
+ import { keyframes, createElement as jsx, css as css$2 } from '../../@emotion/react/dist/emotion-react.esm.js';
4
+ import _slicedToArray from '../../@babel/runtime/helpers/esm/slicedToArray.js';
5
+ import _objectWithoutProperties from '../../@babel/runtime/helpers/esm/objectWithoutProperties.js';
6
+ import _typeof from '../../@babel/runtime/helpers/esm/typeof.js';
7
+ import _taggedTemplateLiteral from '../../@babel/runtime/helpers/esm/taggedTemplateLiteral.js';
8
+ import _defineProperty from '../../@babel/runtime/helpers/esm/defineProperty.js';
9
+ import '../../react/index.js';
10
+ import '../../react-dom/index.js';
11
+ import { autoUpdate } from '../../@floating-ui/dom/dist/floating-ui.dom.mjs.js';
12
+ import index from '../../use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js';
13
+ import { r as react } from '../../../_virtual/index.js';
14
+ import { r as reactDom } from '../../../_virtual/index4.js';
15
+
16
+ var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
17
+ // ==============================
18
+ // NO OP
19
+ // ==============================
20
+
21
+ var noop = function noop() {};
22
+
23
+ // ==============================
24
+ // Class Name Prefixer
25
+ // ==============================
26
+
27
+ /**
28
+ String representation of component state for styling with class names.
29
+
30
+ Expects an array of strings OR a string/object pair:
31
+ - className(['comp', 'comp-arg', 'comp-arg-2'])
32
+ @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
33
+ - className('comp', { some: true, state: false })
34
+ @returns 'react-select__comp react-select__comp--some'
35
+ */
36
+ function applyPrefixToName(prefix, name) {
37
+ if (!name) {
38
+ return prefix;
39
+ } else if (name[0] === '-') {
40
+ return prefix + name;
41
+ } else {
42
+ return prefix + '__' + name;
43
+ }
44
+ }
45
+ function classNames(prefix, state) {
46
+ for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
47
+ classNameList[_key - 2] = arguments[_key];
48
+ }
49
+ var arr = [].concat(classNameList);
50
+ if (state && prefix) {
51
+ for (var key in state) {
52
+ if (state.hasOwnProperty(key) && state[key]) {
53
+ arr.push("".concat(applyPrefixToName(prefix, key)));
54
+ }
55
+ }
56
+ }
57
+ return arr.filter(function (i) {
58
+ return i;
59
+ }).map(function (i) {
60
+ return String(i).trim();
61
+ }).join(' ');
62
+ }
63
+ // ==============================
64
+ // Clean Value
65
+ // ==============================
66
+
67
+ var cleanValue = function cleanValue(value) {
68
+ if (isArray(value)) return value.filter(Boolean);
69
+ if (_typeof(value) === 'object' && value !== null) return [value];
70
+ return [];
71
+ };
72
+
73
+ // ==============================
74
+ // Clean Common Props
75
+ // ==============================
76
+
77
+ var cleanCommonProps = function cleanCommonProps(props) {
78
+ //className
79
+ props.className;
80
+ props.clearValue;
81
+ props.cx;
82
+ props.getStyles;
83
+ props.getClassNames;
84
+ props.getValue;
85
+ props.hasValue;
86
+ props.isMulti;
87
+ props.isRtl;
88
+ props.options;
89
+ props.selectOption;
90
+ props.selectProps;
91
+ props.setValue;
92
+ props.theme;
93
+ var innerProps = _objectWithoutProperties(props, _excluded$4);
94
+ return _objectSpread2({}, innerProps);
95
+ };
96
+
97
+ // ==============================
98
+ // Get Style Props
99
+ // ==============================
100
+
101
+ var getStyleProps = function getStyleProps(props, name, classNamesState) {
102
+ var cx = props.cx,
103
+ getStyles = props.getStyles,
104
+ getClassNames = props.getClassNames,
105
+ className = props.className;
106
+ return {
107
+ css: getStyles(name, props),
108
+ className: cx(classNamesState !== null && classNamesState !== void 0 ? classNamesState : {}, getClassNames(name, props), className)
109
+ };
110
+ };
111
+
112
+ // ==============================
113
+ // Scroll Helpers
114
+ // ==============================
115
+
116
+ function isDocumentElement(el) {
117
+ return [document.documentElement, document.body, window].indexOf(el) > -1;
118
+ }
119
+
120
+ // Normalized Scroll Top
121
+ // ------------------------------
122
+
123
+ function normalizedHeight(el) {
124
+ if (isDocumentElement(el)) {
125
+ return window.innerHeight;
126
+ }
127
+ return el.clientHeight;
128
+ }
129
+
130
+ // Normalized scrollTo & scrollTop
131
+ // ------------------------------
132
+
133
+ function getScrollTop(el) {
134
+ if (isDocumentElement(el)) {
135
+ return window.pageYOffset;
136
+ }
137
+ return el.scrollTop;
138
+ }
139
+ function scrollTo(el, top) {
140
+ // with a scroll distance, we perform scroll on the element
141
+ if (isDocumentElement(el)) {
142
+ window.scrollTo(0, top);
143
+ return;
144
+ }
145
+ el.scrollTop = top;
146
+ }
147
+
148
+ // Get Scroll Parent
149
+ // ------------------------------
150
+
151
+ function getScrollParent(element) {
152
+ var style = getComputedStyle(element);
153
+ var excludeStaticParent = style.position === 'absolute';
154
+ var overflowRx = /(auto|scroll)/;
155
+ if (style.position === 'fixed') return document.documentElement;
156
+ for (var parent = element; parent = parent.parentElement;) {
157
+ style = getComputedStyle(parent);
158
+ if (excludeStaticParent && style.position === 'static') {
159
+ continue;
160
+ }
161
+ if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
162
+ return parent;
163
+ }
164
+ }
165
+ return document.documentElement;
166
+ }
167
+
168
+ // Animated Scroll To
169
+ // ------------------------------
170
+
171
+ /**
172
+ @param t: time (elapsed)
173
+ @param b: initial value
174
+ @param c: amount of change
175
+ @param d: duration
176
+ */
177
+ function easeOutCubic(t, b, c, d) {
178
+ return c * ((t = t / d - 1) * t * t + 1) + b;
179
+ }
180
+ function animatedScrollTo(element, to) {
181
+ var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
182
+ var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
183
+ var start = getScrollTop(element);
184
+ var change = to - start;
185
+ var increment = 10;
186
+ var currentTime = 0;
187
+ function animateScroll() {
188
+ currentTime += increment;
189
+ var val = easeOutCubic(currentTime, start, change, duration);
190
+ scrollTo(element, val);
191
+ if (currentTime < duration) {
192
+ window.requestAnimationFrame(animateScroll);
193
+ } else {
194
+ callback(element);
195
+ }
196
+ }
197
+ animateScroll();
198
+ }
199
+
200
+ // Scroll Into View
201
+ // ------------------------------
202
+
203
+ function scrollIntoView(menuEl, focusedEl) {
204
+ var menuRect = menuEl.getBoundingClientRect();
205
+ var focusedRect = focusedEl.getBoundingClientRect();
206
+ var overScroll = focusedEl.offsetHeight / 3;
207
+ if (focusedRect.bottom + overScroll > menuRect.bottom) {
208
+ scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
209
+ } else if (focusedRect.top - overScroll < menuRect.top) {
210
+ scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
211
+ }
212
+ }
213
+
214
+ // ==============================
215
+ // Get bounding client object
216
+ // ==============================
217
+
218
+ // cannot get keys using array notation with DOMRect
219
+ function getBoundingClientObj(element) {
220
+ var rect = element.getBoundingClientRect();
221
+ return {
222
+ bottom: rect.bottom,
223
+ height: rect.height,
224
+ left: rect.left,
225
+ right: rect.right,
226
+ top: rect.top,
227
+ width: rect.width
228
+ };
229
+ }
230
+
231
+ // ==============================
232
+ // Touch Capability Detector
233
+ // ==============================
234
+
235
+ function isTouchCapable() {
236
+ try {
237
+ document.createEvent('TouchEvent');
238
+ return true;
239
+ } catch (e) {
240
+ return false;
241
+ }
242
+ }
243
+
244
+ // ==============================
245
+ // Mobile Device Detector
246
+ // ==============================
247
+
248
+ function isMobileDevice() {
249
+ try {
250
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
251
+ } catch (e) {
252
+ return false;
253
+ }
254
+ }
255
+
256
+ // ==============================
257
+ // Passive Event Detector
258
+ // ==============================
259
+
260
+ // https://github.com/rafgraph/detect-it/blob/main/src/index.ts#L19-L36
261
+ var passiveOptionAccessed = false;
262
+ var options = {
263
+ get passive() {
264
+ return passiveOptionAccessed = true;
265
+ }
266
+ };
267
+ // check for SSR
268
+ var w = typeof window !== 'undefined' ? window : {};
269
+ if (w.addEventListener && w.removeEventListener) {
270
+ w.addEventListener('p', noop, options);
271
+ w.removeEventListener('p', noop, false);
272
+ }
273
+ var supportsPassiveEvents = passiveOptionAccessed;
274
+ function notNullish(item) {
275
+ return item != null;
276
+ }
277
+ function isArray(arg) {
278
+ return Array.isArray(arg);
279
+ }
280
+ function valueTernary(isMulti, multiValue, singleValue) {
281
+ return isMulti ? multiValue : singleValue;
282
+ }
283
+ function singleValueAsValue(singleValue) {
284
+ return singleValue;
285
+ }
286
+ function multiValueAsValue(multiValue) {
287
+ return multiValue;
288
+ }
289
+ var removeProps = function removeProps(propsObj) {
290
+ for (var _len2 = arguments.length, properties = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
291
+ properties[_key2 - 1] = arguments[_key2];
292
+ }
293
+ var propsMap = Object.entries(propsObj).filter(function (_ref) {
294
+ var _ref2 = _slicedToArray(_ref, 1),
295
+ key = _ref2[0];
296
+ return !properties.includes(key);
297
+ });
298
+ return propsMap.reduce(function (newProps, _ref3) {
299
+ var _ref4 = _slicedToArray(_ref3, 2),
300
+ key = _ref4[0],
301
+ val = _ref4[1];
302
+ newProps[key] = val;
303
+ return newProps;
304
+ }, {});
305
+ };
306
+
307
+ var _excluded$3 = ["children", "innerProps"],
308
+ _excluded2$1 = ["children", "innerProps"];
309
+ function getMenuPlacement(_ref) {
310
+ var preferredMaxHeight = _ref.maxHeight,
311
+ menuEl = _ref.menuEl,
312
+ minHeight = _ref.minHeight,
313
+ preferredPlacement = _ref.placement,
314
+ shouldScroll = _ref.shouldScroll,
315
+ isFixedPosition = _ref.isFixedPosition,
316
+ controlHeight = _ref.controlHeight;
317
+ var scrollParent = getScrollParent(menuEl);
318
+ var defaultState = {
319
+ placement: 'bottom',
320
+ maxHeight: preferredMaxHeight
321
+ };
322
+
323
+ // something went wrong, return default state
324
+ if (!menuEl || !menuEl.offsetParent) return defaultState;
325
+
326
+ // we can't trust `scrollParent.scrollHeight` --> it may increase when
327
+ // the menu is rendered
328
+ var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
329
+ scrollHeight = _scrollParent$getBoun.height;
330
+ var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
331
+ menuBottom = _menuEl$getBoundingCl.bottom,
332
+ menuHeight = _menuEl$getBoundingCl.height,
333
+ menuTop = _menuEl$getBoundingCl.top;
334
+ var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
335
+ containerTop = _menuEl$offsetParent$.top;
336
+ var viewHeight = isFixedPosition ? window.innerHeight : normalizedHeight(scrollParent);
337
+ var scrollTop = getScrollTop(scrollParent);
338
+ var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
339
+ var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
340
+ var viewSpaceAbove = containerTop - marginTop;
341
+ var viewSpaceBelow = viewHeight - menuTop;
342
+ var scrollSpaceAbove = viewSpaceAbove + scrollTop;
343
+ var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
344
+ var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
345
+ var scrollUp = scrollTop + menuTop - marginTop;
346
+ var scrollDuration = 160;
347
+ switch (preferredPlacement) {
348
+ case 'auto':
349
+ case 'bottom':
350
+ // 1: the menu will fit, do nothing
351
+ if (viewSpaceBelow >= menuHeight) {
352
+ return {
353
+ placement: 'bottom',
354
+ maxHeight: preferredMaxHeight
355
+ };
356
+ }
357
+
358
+ // 2: the menu will fit, if scrolled
359
+ if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
360
+ if (shouldScroll) {
361
+ animatedScrollTo(scrollParent, scrollDown, scrollDuration);
362
+ }
363
+ return {
364
+ placement: 'bottom',
365
+ maxHeight: preferredMaxHeight
366
+ };
367
+ }
368
+
369
+ // 3: the menu will fit, if constrained
370
+ if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
371
+ if (shouldScroll) {
372
+ animatedScrollTo(scrollParent, scrollDown, scrollDuration);
373
+ }
374
+
375
+ // we want to provide as much of the menu as possible to the user,
376
+ // so give them whatever is available below rather than the minHeight.
377
+ var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
378
+ return {
379
+ placement: 'bottom',
380
+ maxHeight: constrainedHeight
381
+ };
382
+ }
383
+
384
+ // 4. Forked beviour when there isn't enough space below
385
+
386
+ // AUTO: flip the menu, render above
387
+ if (preferredPlacement === 'auto' || isFixedPosition) {
388
+ // may need to be constrained after flipping
389
+ var _constrainedHeight = preferredMaxHeight;
390
+ var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
391
+ if (spaceAbove >= minHeight) {
392
+ _constrainedHeight = Math.min(spaceAbove - marginBottom - controlHeight, preferredMaxHeight);
393
+ }
394
+ return {
395
+ placement: 'top',
396
+ maxHeight: _constrainedHeight
397
+ };
398
+ }
399
+
400
+ // BOTTOM: allow browser to increase scrollable area and immediately set scroll
401
+ if (preferredPlacement === 'bottom') {
402
+ if (shouldScroll) {
403
+ scrollTo(scrollParent, scrollDown);
404
+ }
405
+ return {
406
+ placement: 'bottom',
407
+ maxHeight: preferredMaxHeight
408
+ };
409
+ }
410
+ break;
411
+ case 'top':
412
+ // 1: the menu will fit, do nothing
413
+ if (viewSpaceAbove >= menuHeight) {
414
+ return {
415
+ placement: 'top',
416
+ maxHeight: preferredMaxHeight
417
+ };
418
+ }
419
+
420
+ // 2: the menu will fit, if scrolled
421
+ if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
422
+ if (shouldScroll) {
423
+ animatedScrollTo(scrollParent, scrollUp, scrollDuration);
424
+ }
425
+ return {
426
+ placement: 'top',
427
+ maxHeight: preferredMaxHeight
428
+ };
429
+ }
430
+
431
+ // 3: the menu will fit, if constrained
432
+ if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
433
+ var _constrainedHeight2 = preferredMaxHeight;
434
+
435
+ // we want to provide as much of the menu as possible to the user,
436
+ // so give them whatever is available below rather than the minHeight.
437
+ if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
438
+ _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
439
+ }
440
+ if (shouldScroll) {
441
+ animatedScrollTo(scrollParent, scrollUp, scrollDuration);
442
+ }
443
+ return {
444
+ placement: 'top',
445
+ maxHeight: _constrainedHeight2
446
+ };
447
+ }
448
+
449
+ // 4. not enough space, the browser WILL NOT increase scrollable area when
450
+ // absolutely positioned element rendered above the viewport (only below).
451
+ // Flip the menu, render below
452
+ return {
453
+ placement: 'bottom',
454
+ maxHeight: preferredMaxHeight
455
+ };
456
+ default:
457
+ throw new Error("Invalid placement provided \"".concat(preferredPlacement, "\"."));
458
+ }
459
+ return defaultState;
460
+ }
461
+
462
+ // Menu Component
463
+ // ------------------------------
464
+
465
+ function alignToControl(placement) {
466
+ var placementToCSSProp = {
467
+ bottom: 'top',
468
+ top: 'bottom'
469
+ };
470
+ return placement ? placementToCSSProp[placement] : 'bottom';
471
+ }
472
+ var coercePlacement = function coercePlacement(p) {
473
+ return p === 'auto' ? 'bottom' : p;
474
+ };
475
+ var menuCSS = function menuCSS(_ref2, unstyled) {
476
+ var _objectSpread2$1;
477
+ var placement = _ref2.placement,
478
+ _ref2$theme = _ref2.theme,
479
+ borderRadius = _ref2$theme.borderRadius,
480
+ spacing = _ref2$theme.spacing,
481
+ colors = _ref2$theme.colors;
482
+ return _objectSpread2((_objectSpread2$1 = {
483
+ label: 'menu'
484
+ }, _defineProperty(_objectSpread2$1, alignToControl(placement), '100%'), _defineProperty(_objectSpread2$1, "position", 'absolute'), _defineProperty(_objectSpread2$1, "width", '100%'), _defineProperty(_objectSpread2$1, "zIndex", 1), _objectSpread2$1), unstyled ? {} : {
485
+ backgroundColor: colors.neutral0,
486
+ borderRadius: borderRadius,
487
+ boxShadow: '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)',
488
+ marginBottom: spacing.menuGutter,
489
+ marginTop: spacing.menuGutter
490
+ });
491
+ };
492
+ var PortalPlacementContext = /*#__PURE__*/react.exports.createContext(null);
493
+
494
+ // NOTE: internal only
495
+ var MenuPlacer = function MenuPlacer(props) {
496
+ var children = props.children,
497
+ minMenuHeight = props.minMenuHeight,
498
+ maxMenuHeight = props.maxMenuHeight,
499
+ menuPlacement = props.menuPlacement,
500
+ menuPosition = props.menuPosition,
501
+ menuShouldScrollIntoView = props.menuShouldScrollIntoView,
502
+ theme = props.theme;
503
+ var _ref3 = react.exports.useContext(PortalPlacementContext) || {},
504
+ setPortalPlacement = _ref3.setPortalPlacement;
505
+ var ref = react.exports.useRef(null);
506
+ var _useState = react.exports.useState(maxMenuHeight),
507
+ _useState2 = _slicedToArray(_useState, 2),
508
+ maxHeight = _useState2[0],
509
+ setMaxHeight = _useState2[1];
510
+ var _useState3 = react.exports.useState(null),
511
+ _useState4 = _slicedToArray(_useState3, 2),
512
+ placement = _useState4[0],
513
+ setPlacement = _useState4[1];
514
+ var controlHeight = theme.spacing.controlHeight;
515
+ index(function () {
516
+ var menuEl = ref.current;
517
+ if (!menuEl) return;
518
+
519
+ // DO NOT scroll if position is fixed
520
+ var isFixedPosition = menuPosition === 'fixed';
521
+ var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
522
+ var state = getMenuPlacement({
523
+ maxHeight: maxMenuHeight,
524
+ menuEl: menuEl,
525
+ minHeight: minMenuHeight,
526
+ placement: menuPlacement,
527
+ shouldScroll: shouldScroll,
528
+ isFixedPosition: isFixedPosition,
529
+ controlHeight: controlHeight
530
+ });
531
+ setMaxHeight(state.maxHeight);
532
+ setPlacement(state.placement);
533
+ setPortalPlacement === null || setPortalPlacement === void 0 ? void 0 : setPortalPlacement(state.placement);
534
+ }, [maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, setPortalPlacement, controlHeight]);
535
+ return children({
536
+ ref: ref,
537
+ placerProps: _objectSpread2(_objectSpread2({}, props), {}, {
538
+ placement: placement || coercePlacement(menuPlacement),
539
+ maxHeight: maxHeight
540
+ })
541
+ });
542
+ };
543
+ var Menu = function Menu(props) {
544
+ var children = props.children,
545
+ innerRef = props.innerRef,
546
+ innerProps = props.innerProps;
547
+ return jsx("div", _extends({}, getStyleProps(props, 'menu', {
548
+ menu: true
549
+ }), {
550
+ ref: innerRef
551
+ }, innerProps), children);
552
+ };
553
+ var Menu$1 = Menu;
554
+
555
+ // ==============================
556
+ // Menu List
557
+ // ==============================
558
+
559
+ var menuListCSS = function menuListCSS(_ref4, unstyled) {
560
+ var maxHeight = _ref4.maxHeight,
561
+ baseUnit = _ref4.theme.spacing.baseUnit;
562
+ return _objectSpread2({
563
+ maxHeight: maxHeight,
564
+ overflowY: 'auto',
565
+ position: 'relative',
566
+ // required for offset[Height, Top] > keyboard scroll
567
+ WebkitOverflowScrolling: 'touch'
568
+ }, unstyled ? {} : {
569
+ paddingBottom: baseUnit,
570
+ paddingTop: baseUnit
571
+ });
572
+ };
573
+ var MenuList = function MenuList(props) {
574
+ var children = props.children,
575
+ innerProps = props.innerProps,
576
+ innerRef = props.innerRef,
577
+ isMulti = props.isMulti;
578
+ return jsx("div", _extends({}, getStyleProps(props, 'menuList', {
579
+ 'menu-list': true,
580
+ 'menu-list--is-multi': isMulti
581
+ }), {
582
+ ref: innerRef
583
+ }, innerProps), children);
584
+ };
585
+
586
+ // ==============================
587
+ // Menu Notices
588
+ // ==============================
589
+
590
+ var noticeCSS = function noticeCSS(_ref5, unstyled) {
591
+ var _ref5$theme = _ref5.theme,
592
+ baseUnit = _ref5$theme.spacing.baseUnit,
593
+ colors = _ref5$theme.colors;
594
+ return _objectSpread2({
595
+ textAlign: 'center'
596
+ }, unstyled ? {} : {
597
+ color: colors.neutral40,
598
+ padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px")
599
+ });
600
+ };
601
+ var noOptionsMessageCSS = noticeCSS;
602
+ var loadingMessageCSS = noticeCSS;
603
+ var NoOptionsMessage = function NoOptionsMessage(_ref6) {
604
+ var _ref6$children = _ref6.children,
605
+ children = _ref6$children === void 0 ? 'No options' : _ref6$children,
606
+ innerProps = _ref6.innerProps,
607
+ restProps = _objectWithoutProperties(_ref6, _excluded$3);
608
+ return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
609
+ children: children,
610
+ innerProps: innerProps
611
+ }), 'noOptionsMessage', {
612
+ 'menu-notice': true,
613
+ 'menu-notice--no-options': true
614
+ }), innerProps), children);
615
+ };
616
+ var LoadingMessage = function LoadingMessage(_ref7) {
617
+ var _ref7$children = _ref7.children,
618
+ children = _ref7$children === void 0 ? 'Loading...' : _ref7$children,
619
+ innerProps = _ref7.innerProps,
620
+ restProps = _objectWithoutProperties(_ref7, _excluded2$1);
621
+ return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
622
+ children: children,
623
+ innerProps: innerProps
624
+ }), 'loadingMessage', {
625
+ 'menu-notice': true,
626
+ 'menu-notice--loading': true
627
+ }), innerProps), children);
628
+ };
629
+
630
+ // ==============================
631
+ // Menu Portal
632
+ // ==============================
633
+
634
+ var menuPortalCSS = function menuPortalCSS(_ref8) {
635
+ var rect = _ref8.rect,
636
+ offset = _ref8.offset,
637
+ position = _ref8.position;
638
+ return {
639
+ left: rect.left,
640
+ position: position,
641
+ top: offset,
642
+ width: rect.width,
643
+ zIndex: 1
644
+ };
645
+ };
646
+ var MenuPortal = function MenuPortal(props) {
647
+ var appendTo = props.appendTo,
648
+ children = props.children,
649
+ controlElement = props.controlElement,
650
+ innerProps = props.innerProps,
651
+ menuPlacement = props.menuPlacement,
652
+ menuPosition = props.menuPosition;
653
+ var menuPortalRef = react.exports.useRef(null);
654
+ var cleanupRef = react.exports.useRef(null);
655
+ var _useState5 = react.exports.useState(coercePlacement(menuPlacement)),
656
+ _useState6 = _slicedToArray(_useState5, 2),
657
+ placement = _useState6[0],
658
+ setPortalPlacement = _useState6[1];
659
+ var portalPlacementContext = react.exports.useMemo(function () {
660
+ return {
661
+ setPortalPlacement: setPortalPlacement
662
+ };
663
+ }, []);
664
+ var _useState7 = react.exports.useState(null),
665
+ _useState8 = _slicedToArray(_useState7, 2),
666
+ computedPosition = _useState8[0],
667
+ setComputedPosition = _useState8[1];
668
+ var updateComputedPosition = react.exports.useCallback(function () {
669
+ if (!controlElement) return;
670
+ var rect = getBoundingClientObj(controlElement);
671
+ var scrollDistance = menuPosition === 'fixed' ? 0 : window.pageYOffset;
672
+ var offset = rect[placement] + scrollDistance;
673
+ if (offset !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset) || rect.left !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left) || rect.width !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width)) {
674
+ setComputedPosition({
675
+ offset: offset,
676
+ rect: rect
677
+ });
678
+ }
679
+ }, [controlElement, menuPosition, placement, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width]);
680
+ index(function () {
681
+ updateComputedPosition();
682
+ }, [updateComputedPosition]);
683
+ var runAutoUpdate = react.exports.useCallback(function () {
684
+ if (typeof cleanupRef.current === 'function') {
685
+ cleanupRef.current();
686
+ cleanupRef.current = null;
687
+ }
688
+ if (controlElement && menuPortalRef.current) {
689
+ cleanupRef.current = autoUpdate(controlElement, menuPortalRef.current, updateComputedPosition, {
690
+ elementResize: 'ResizeObserver' in window
691
+ });
692
+ }
693
+ }, [controlElement, updateComputedPosition]);
694
+ index(function () {
695
+ runAutoUpdate();
696
+ }, [runAutoUpdate]);
697
+ var setMenuPortalElement = react.exports.useCallback(function (menuPortalElement) {
698
+ menuPortalRef.current = menuPortalElement;
699
+ runAutoUpdate();
700
+ }, [runAutoUpdate]);
701
+
702
+ // bail early if required elements aren't present
703
+ if (!appendTo && menuPosition !== 'fixed' || !computedPosition) return null;
704
+
705
+ // same wrapper element whether fixed or portalled
706
+ var menuWrapper = jsx("div", _extends({
707
+ ref: setMenuPortalElement
708
+ }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
709
+ offset: computedPosition.offset,
710
+ position: menuPosition,
711
+ rect: computedPosition.rect
712
+ }), 'menuPortal', {
713
+ 'menu-portal': true
714
+ }), innerProps), children);
715
+ return jsx(PortalPlacementContext.Provider, {
716
+ value: portalPlacementContext
717
+ }, appendTo ? /*#__PURE__*/reactDom.exports.createPortal(menuWrapper, appendTo) : menuWrapper);
718
+ };
719
+
720
+ // ==============================
721
+ // Root Container
722
+ // ==============================
723
+
724
+ var containerCSS = function containerCSS(_ref) {
725
+ var isDisabled = _ref.isDisabled,
726
+ isRtl = _ref.isRtl;
727
+ return {
728
+ label: 'container',
729
+ direction: isRtl ? 'rtl' : undefined,
730
+ pointerEvents: isDisabled ? 'none' : undefined,
731
+ // cancel mouse events when disabled
732
+ position: 'relative'
733
+ };
734
+ };
735
+ var SelectContainer = function SelectContainer(props) {
736
+ var children = props.children,
737
+ innerProps = props.innerProps,
738
+ isDisabled = props.isDisabled,
739
+ isRtl = props.isRtl;
740
+ return jsx("div", _extends({}, getStyleProps(props, 'container', {
741
+ '--is-disabled': isDisabled,
742
+ '--is-rtl': isRtl
743
+ }), innerProps), children);
744
+ };
745
+
746
+ // ==============================
747
+ // Value Container
748
+ // ==============================
749
+
750
+ var valueContainerCSS = function valueContainerCSS(_ref2, unstyled) {
751
+ var spacing = _ref2.theme.spacing,
752
+ isMulti = _ref2.isMulti,
753
+ hasValue = _ref2.hasValue,
754
+ controlShouldRenderValue = _ref2.selectProps.controlShouldRenderValue;
755
+ return _objectSpread2({
756
+ alignItems: 'center',
757
+ display: isMulti && hasValue && controlShouldRenderValue ? 'flex' : 'grid',
758
+ flex: 1,
759
+ flexWrap: 'wrap',
760
+ WebkitOverflowScrolling: 'touch',
761
+ position: 'relative',
762
+ overflow: 'hidden'
763
+ }, unstyled ? {} : {
764
+ padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px")
765
+ });
766
+ };
767
+ var ValueContainer = function ValueContainer(props) {
768
+ var children = props.children,
769
+ innerProps = props.innerProps,
770
+ isMulti = props.isMulti,
771
+ hasValue = props.hasValue;
772
+ return jsx("div", _extends({}, getStyleProps(props, 'valueContainer', {
773
+ 'value-container': true,
774
+ 'value-container--is-multi': isMulti,
775
+ 'value-container--has-value': hasValue
776
+ }), innerProps), children);
777
+ };
778
+
779
+ // ==============================
780
+ // Indicator Container
781
+ // ==============================
782
+
783
+ var indicatorsContainerCSS = function indicatorsContainerCSS() {
784
+ return {
785
+ alignItems: 'center',
786
+ alignSelf: 'stretch',
787
+ display: 'flex',
788
+ flexShrink: 0
789
+ };
790
+ };
791
+ var IndicatorsContainer = function IndicatorsContainer(props) {
792
+ var children = props.children,
793
+ innerProps = props.innerProps;
794
+ return jsx("div", _extends({}, getStyleProps(props, 'indicatorsContainer', {
795
+ indicators: true
796
+ }), innerProps), children);
797
+ };
798
+
799
+ var _templateObject;
800
+ var _excluded$2 = ["size"],
801
+ _excluded2 = ["innerProps", "isRtl", "size"];
802
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
803
+
804
+ // ==============================
805
+ // Dropdown & Clear Icons
806
+ // ==============================
807
+ var _ref2 = process.env.NODE_ENV === "production" ? {
808
+ name: "8mmkcg",
809
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
810
+ } : {
811
+ name: "tj5bde-Svg",
812
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
813
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV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QsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",
814
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
815
+ };
816
+ var Svg = function Svg(_ref) {
817
+ var size = _ref.size,
818
+ props = _objectWithoutProperties(_ref, _excluded$2);
819
+ return jsx("svg", _extends({
820
+ height: size,
821
+ width: size,
822
+ viewBox: "0 0 20 20",
823
+ "aria-hidden": "true",
824
+ focusable: "false",
825
+ css: _ref2
826
+ }, props));
827
+ };
828
+ var CrossIcon = function CrossIcon(props) {
829
+ return jsx(Svg, _extends({
830
+ size: 20
831
+ }, props), jsx("path", {
832
+ d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
833
+ }));
834
+ };
835
+ var DownChevron = function DownChevron(props) {
836
+ return jsx(Svg, _extends({
837
+ size: 20
838
+ }, props), jsx("path", {
839
+ d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
840
+ }));
841
+ };
842
+
843
+ // ==============================
844
+ // Dropdown & Clear Buttons
845
+ // ==============================
846
+
847
+ var baseCSS = function baseCSS(_ref3, unstyled) {
848
+ var isFocused = _ref3.isFocused,
849
+ _ref3$theme = _ref3.theme,
850
+ baseUnit = _ref3$theme.spacing.baseUnit,
851
+ colors = _ref3$theme.colors;
852
+ return _objectSpread2({
853
+ label: 'indicatorContainer',
854
+ display: 'flex',
855
+ transition: 'color 150ms'
856
+ }, unstyled ? {} : {
857
+ color: isFocused ? colors.neutral60 : colors.neutral20,
858
+ padding: baseUnit * 2,
859
+ ':hover': {
860
+ color: isFocused ? colors.neutral80 : colors.neutral40
861
+ }
862
+ });
863
+ };
864
+ var dropdownIndicatorCSS = baseCSS;
865
+ var DropdownIndicator = function DropdownIndicator(props) {
866
+ var children = props.children,
867
+ innerProps = props.innerProps;
868
+ return jsx("div", _extends({}, getStyleProps(props, 'dropdownIndicator', {
869
+ indicator: true,
870
+ 'dropdown-indicator': true
871
+ }), innerProps), children || jsx(DownChevron, null));
872
+ };
873
+ var clearIndicatorCSS = baseCSS;
874
+ var ClearIndicator = function ClearIndicator(props) {
875
+ var children = props.children,
876
+ innerProps = props.innerProps;
877
+ return jsx("div", _extends({}, getStyleProps(props, 'clearIndicator', {
878
+ indicator: true,
879
+ 'clear-indicator': true
880
+ }), innerProps), children || jsx(CrossIcon, null));
881
+ };
882
+
883
+ // ==============================
884
+ // Separator
885
+ // ==============================
886
+
887
+ var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4, unstyled) {
888
+ var isDisabled = _ref4.isDisabled,
889
+ _ref4$theme = _ref4.theme,
890
+ baseUnit = _ref4$theme.spacing.baseUnit,
891
+ colors = _ref4$theme.colors;
892
+ return _objectSpread2({
893
+ label: 'indicatorSeparator',
894
+ alignSelf: 'stretch',
895
+ width: 1
896
+ }, unstyled ? {} : {
897
+ backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
898
+ marginBottom: baseUnit * 2,
899
+ marginTop: baseUnit * 2
900
+ });
901
+ };
902
+ var IndicatorSeparator = function IndicatorSeparator(props) {
903
+ var innerProps = props.innerProps;
904
+ return jsx("span", _extends({}, innerProps, getStyleProps(props, 'indicatorSeparator', {
905
+ 'indicator-separator': true
906
+ })));
907
+ };
908
+
909
+ // ==============================
910
+ // Loading
911
+ // ==============================
912
+
913
+ var loadingDotAnimations = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));
914
+ var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5, unstyled) {
915
+ var isFocused = _ref5.isFocused,
916
+ size = _ref5.size,
917
+ _ref5$theme = _ref5.theme,
918
+ colors = _ref5$theme.colors,
919
+ baseUnit = _ref5$theme.spacing.baseUnit;
920
+ return _objectSpread2({
921
+ label: 'loadingIndicator',
922
+ display: 'flex',
923
+ transition: 'color 150ms',
924
+ alignSelf: 'center',
925
+ fontSize: size,
926
+ lineHeight: 1,
927
+ marginRight: size,
928
+ textAlign: 'center',
929
+ verticalAlign: 'middle'
930
+ }, unstyled ? {} : {
931
+ color: isFocused ? colors.neutral60 : colors.neutral20,
932
+ padding: baseUnit * 2
933
+ });
934
+ };
935
+ var LoadingDot = function LoadingDot(_ref6) {
936
+ var delay = _ref6.delay,
937
+ offset = _ref6.offset;
938
+ return jsx("span", {
939
+ css: /*#__PURE__*/css$2({
940
+ animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
941
+ backgroundColor: 'currentColor',
942
+ borderRadius: '1em',
943
+ display: 'inline-block',
944
+ marginLeft: offset ? '1em' : undefined,
945
+ height: '1em',
946
+ verticalAlign: 'top',
947
+ width: '1em'
948
+ }, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnV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dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")
949
+ });
950
+ };
951
+ var LoadingIndicator = function LoadingIndicator(_ref7) {
952
+ var innerProps = _ref7.innerProps,
953
+ isRtl = _ref7.isRtl,
954
+ _ref7$size = _ref7.size,
955
+ size = _ref7$size === void 0 ? 4 : _ref7$size,
956
+ restProps = _objectWithoutProperties(_ref7, _excluded2);
957
+ return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
958
+ innerProps: innerProps,
959
+ isRtl: isRtl,
960
+ size: size
961
+ }), 'loadingIndicator', {
962
+ indicator: true,
963
+ 'loading-indicator': true
964
+ }), innerProps), jsx(LoadingDot, {
965
+ delay: 0,
966
+ offset: isRtl
967
+ }), jsx(LoadingDot, {
968
+ delay: 160,
969
+ offset: true
970
+ }), jsx(LoadingDot, {
971
+ delay: 320,
972
+ offset: !isRtl
973
+ }));
974
+ };
975
+
976
+ var css$1 = function css(_ref, unstyled) {
977
+ var isDisabled = _ref.isDisabled,
978
+ isFocused = _ref.isFocused,
979
+ _ref$theme = _ref.theme,
980
+ colors = _ref$theme.colors,
981
+ borderRadius = _ref$theme.borderRadius,
982
+ spacing = _ref$theme.spacing;
983
+ return _objectSpread2({
984
+ label: 'control',
985
+ alignItems: 'center',
986
+ cursor: 'default',
987
+ display: 'flex',
988
+ flexWrap: 'wrap',
989
+ justifyContent: 'space-between',
990
+ minHeight: spacing.controlHeight,
991
+ outline: '0 !important',
992
+ position: 'relative',
993
+ transition: 'all 100ms'
994
+ }, unstyled ? {} : {
995
+ backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
996
+ borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
997
+ borderRadius: borderRadius,
998
+ borderStyle: 'solid',
999
+ borderWidth: 1,
1000
+ boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : undefined,
1001
+ '&:hover': {
1002
+ borderColor: isFocused ? colors.primary : colors.neutral30
1003
+ }
1004
+ });
1005
+ };
1006
+ var Control = function Control(props) {
1007
+ var children = props.children,
1008
+ isDisabled = props.isDisabled,
1009
+ isFocused = props.isFocused,
1010
+ innerRef = props.innerRef,
1011
+ innerProps = props.innerProps,
1012
+ menuIsOpen = props.menuIsOpen;
1013
+ return jsx("div", _extends({
1014
+ ref: innerRef
1015
+ }, getStyleProps(props, 'control', {
1016
+ control: true,
1017
+ 'control--is-disabled': isDisabled,
1018
+ 'control--is-focused': isFocused,
1019
+ 'control--menu-is-open': menuIsOpen
1020
+ }), innerProps, {
1021
+ "aria-disabled": isDisabled || undefined
1022
+ }), children);
1023
+ };
1024
+ var Control$1 = Control;
1025
+
1026
+ var _excluded$1 = ["data"];
1027
+ var groupCSS = function groupCSS(_ref, unstyled) {
1028
+ var spacing = _ref.theme.spacing;
1029
+ return unstyled ? {} : {
1030
+ paddingBottom: spacing.baseUnit * 2,
1031
+ paddingTop: spacing.baseUnit * 2
1032
+ };
1033
+ };
1034
+ var Group = function Group(props) {
1035
+ var children = props.children,
1036
+ cx = props.cx,
1037
+ getStyles = props.getStyles,
1038
+ getClassNames = props.getClassNames,
1039
+ Heading = props.Heading,
1040
+ headingProps = props.headingProps,
1041
+ innerProps = props.innerProps,
1042
+ label = props.label,
1043
+ theme = props.theme,
1044
+ selectProps = props.selectProps;
1045
+ return jsx("div", _extends({}, getStyleProps(props, 'group', {
1046
+ group: true
1047
+ }), innerProps), jsx(Heading, _extends({}, headingProps, {
1048
+ selectProps: selectProps,
1049
+ theme: theme,
1050
+ getStyles: getStyles,
1051
+ getClassNames: getClassNames,
1052
+ cx: cx
1053
+ }), label), jsx("div", null, children));
1054
+ };
1055
+ var groupHeadingCSS = function groupHeadingCSS(_ref2, unstyled) {
1056
+ var _ref2$theme = _ref2.theme,
1057
+ colors = _ref2$theme.colors,
1058
+ spacing = _ref2$theme.spacing;
1059
+ return _objectSpread2({
1060
+ label: 'group',
1061
+ cursor: 'default',
1062
+ display: 'block'
1063
+ }, unstyled ? {} : {
1064
+ color: colors.neutral40,
1065
+ fontSize: '75%',
1066
+ fontWeight: 500,
1067
+ marginBottom: '0.25em',
1068
+ paddingLeft: spacing.baseUnit * 3,
1069
+ paddingRight: spacing.baseUnit * 3,
1070
+ textTransform: 'uppercase'
1071
+ });
1072
+ };
1073
+ var GroupHeading = function GroupHeading(props) {
1074
+ var _cleanCommonProps = cleanCommonProps(props);
1075
+ _cleanCommonProps.data;
1076
+ var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
1077
+ return jsx("div", _extends({}, getStyleProps(props, 'groupHeading', {
1078
+ 'group-heading': true
1079
+ }), innerProps));
1080
+ };
1081
+ var Group$1 = Group;
1082
+
1083
+ var _excluded = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
1084
+ var inputCSS = function inputCSS(_ref, unstyled) {
1085
+ var isDisabled = _ref.isDisabled,
1086
+ value = _ref.value,
1087
+ _ref$theme = _ref.theme,
1088
+ spacing = _ref$theme.spacing,
1089
+ colors = _ref$theme.colors;
1090
+ return _objectSpread2(_objectSpread2({
1091
+ visibility: isDisabled ? 'hidden' : 'visible',
1092
+ // force css to recompute when value change due to @emotion bug.
1093
+ // We can remove it whenever the bug is fixed.
1094
+ transform: value ? 'translateZ(0)' : ''
1095
+ }, containerStyle), unstyled ? {} : {
1096
+ margin: spacing.baseUnit / 2,
1097
+ paddingBottom: spacing.baseUnit / 2,
1098
+ paddingTop: spacing.baseUnit / 2,
1099
+ color: colors.neutral80
1100
+ });
1101
+ };
1102
+ var spacingStyle = {
1103
+ gridArea: '1 / 2',
1104
+ font: 'inherit',
1105
+ minWidth: '2px',
1106
+ border: 0,
1107
+ margin: 0,
1108
+ outline: 0,
1109
+ padding: 0
1110
+ };
1111
+ var containerStyle = {
1112
+ flex: '1 1 auto',
1113
+ display: 'inline-grid',
1114
+ gridArea: '1 / 1 / 2 / 3',
1115
+ gridTemplateColumns: '0 min-content',
1116
+ '&:after': _objectSpread2({
1117
+ content: 'attr(data-value) " "',
1118
+ visibility: 'hidden',
1119
+ whiteSpace: 'pre'
1120
+ }, spacingStyle)
1121
+ };
1122
+ var inputStyle = function inputStyle(isHidden) {
1123
+ return _objectSpread2({
1124
+ label: 'input',
1125
+ color: 'inherit',
1126
+ background: 0,
1127
+ opacity: isHidden ? 0 : 1,
1128
+ width: '100%'
1129
+ }, spacingStyle);
1130
+ };
1131
+ var Input = function Input(props) {
1132
+ var cx = props.cx,
1133
+ value = props.value;
1134
+ var _cleanCommonProps = cleanCommonProps(props),
1135
+ innerRef = _cleanCommonProps.innerRef,
1136
+ isDisabled = _cleanCommonProps.isDisabled,
1137
+ isHidden = _cleanCommonProps.isHidden,
1138
+ inputClassName = _cleanCommonProps.inputClassName,
1139
+ innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded);
1140
+ return jsx("div", _extends({}, getStyleProps(props, 'input', {
1141
+ 'input-container': true
1142
+ }), {
1143
+ "data-value": value || ''
1144
+ }), jsx("input", _extends({
1145
+ className: cx({
1146
+ input: true
1147
+ }, inputClassName),
1148
+ ref: innerRef,
1149
+ style: inputStyle(isHidden),
1150
+ disabled: isDisabled
1151
+ }, innerProps)));
1152
+ };
1153
+ var Input$1 = Input;
1154
+
1155
+ var multiValueCSS = function multiValueCSS(_ref, unstyled) {
1156
+ var _ref$theme = _ref.theme,
1157
+ spacing = _ref$theme.spacing,
1158
+ borderRadius = _ref$theme.borderRadius,
1159
+ colors = _ref$theme.colors;
1160
+ return _objectSpread2({
1161
+ label: 'multiValue',
1162
+ display: 'flex',
1163
+ minWidth: 0
1164
+ }, unstyled ? {} : {
1165
+ backgroundColor: colors.neutral10,
1166
+ borderRadius: borderRadius / 2,
1167
+ margin: spacing.baseUnit / 2
1168
+ });
1169
+ };
1170
+ var multiValueLabelCSS = function multiValueLabelCSS(_ref2, unstyled) {
1171
+ var _ref2$theme = _ref2.theme,
1172
+ borderRadius = _ref2$theme.borderRadius,
1173
+ colors = _ref2$theme.colors,
1174
+ cropWithEllipsis = _ref2.cropWithEllipsis;
1175
+ return _objectSpread2({
1176
+ overflow: 'hidden',
1177
+ textOverflow: cropWithEllipsis || cropWithEllipsis === undefined ? 'ellipsis' : undefined,
1178
+ whiteSpace: 'nowrap'
1179
+ }, unstyled ? {} : {
1180
+ borderRadius: borderRadius / 2,
1181
+ color: colors.neutral80,
1182
+ fontSize: '85%',
1183
+ padding: 3,
1184
+ paddingLeft: 6
1185
+ });
1186
+ };
1187
+ var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3, unstyled) {
1188
+ var _ref3$theme = _ref3.theme,
1189
+ spacing = _ref3$theme.spacing,
1190
+ borderRadius = _ref3$theme.borderRadius,
1191
+ colors = _ref3$theme.colors,
1192
+ isFocused = _ref3.isFocused;
1193
+ return _objectSpread2({
1194
+ alignItems: 'center',
1195
+ display: 'flex'
1196
+ }, unstyled ? {} : {
1197
+ borderRadius: borderRadius / 2,
1198
+ backgroundColor: isFocused ? colors.dangerLight : undefined,
1199
+ paddingLeft: spacing.baseUnit,
1200
+ paddingRight: spacing.baseUnit,
1201
+ ':hover': {
1202
+ backgroundColor: colors.dangerLight,
1203
+ color: colors.danger
1204
+ }
1205
+ });
1206
+ };
1207
+ var MultiValueGeneric = function MultiValueGeneric(_ref4) {
1208
+ var children = _ref4.children,
1209
+ innerProps = _ref4.innerProps;
1210
+ return jsx("div", innerProps, children);
1211
+ };
1212
+ var MultiValueContainer = MultiValueGeneric;
1213
+ var MultiValueLabel = MultiValueGeneric;
1214
+ function MultiValueRemove(_ref5) {
1215
+ var children = _ref5.children,
1216
+ innerProps = _ref5.innerProps;
1217
+ return jsx("div", _extends({
1218
+ role: "button"
1219
+ }, innerProps), children || jsx(CrossIcon, {
1220
+ size: 14
1221
+ }));
1222
+ }
1223
+ var MultiValue = function MultiValue(props) {
1224
+ var children = props.children,
1225
+ components = props.components,
1226
+ data = props.data,
1227
+ innerProps = props.innerProps,
1228
+ isDisabled = props.isDisabled,
1229
+ removeProps = props.removeProps,
1230
+ selectProps = props.selectProps;
1231
+ var Container = components.Container,
1232
+ Label = components.Label,
1233
+ Remove = components.Remove;
1234
+ return jsx(Container, {
1235
+ data: data,
1236
+ innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, 'multiValue', {
1237
+ 'multi-value': true,
1238
+ 'multi-value--is-disabled': isDisabled
1239
+ })), innerProps),
1240
+ selectProps: selectProps
1241
+ }, jsx(Label, {
1242
+ data: data,
1243
+ innerProps: _objectSpread2({}, getStyleProps(props, 'multiValueLabel', {
1244
+ 'multi-value__label': true
1245
+ })),
1246
+ selectProps: selectProps
1247
+ }, children), jsx(Remove, {
1248
+ data: data,
1249
+ innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, 'multiValueRemove', {
1250
+ 'multi-value__remove': true
1251
+ })), {}, {
1252
+ 'aria-label': "Remove ".concat(children || 'option')
1253
+ }, removeProps),
1254
+ selectProps: selectProps
1255
+ }));
1256
+ };
1257
+ var MultiValue$1 = MultiValue;
1258
+
1259
+ var optionCSS = function optionCSS(_ref, unstyled) {
1260
+ var isDisabled = _ref.isDisabled,
1261
+ isFocused = _ref.isFocused,
1262
+ isSelected = _ref.isSelected,
1263
+ _ref$theme = _ref.theme,
1264
+ spacing = _ref$theme.spacing,
1265
+ colors = _ref$theme.colors;
1266
+ return _objectSpread2({
1267
+ label: 'option',
1268
+ cursor: 'default',
1269
+ display: 'block',
1270
+ fontSize: 'inherit',
1271
+ width: '100%',
1272
+ userSelect: 'none',
1273
+ WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)'
1274
+ }, unstyled ? {} : {
1275
+ backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
1276
+ color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
1277
+ padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
1278
+ // provide some affordance on touch devices
1279
+ ':active': {
1280
+ backgroundColor: !isDisabled ? isSelected ? colors.primary : colors.primary50 : undefined
1281
+ }
1282
+ });
1283
+ };
1284
+ var Option = function Option(props) {
1285
+ var children = props.children,
1286
+ isDisabled = props.isDisabled,
1287
+ isFocused = props.isFocused,
1288
+ isSelected = props.isSelected,
1289
+ innerRef = props.innerRef,
1290
+ innerProps = props.innerProps;
1291
+ return jsx("div", _extends({}, getStyleProps(props, 'option', {
1292
+ option: true,
1293
+ 'option--is-disabled': isDisabled,
1294
+ 'option--is-focused': isFocused,
1295
+ 'option--is-selected': isSelected
1296
+ }), {
1297
+ ref: innerRef,
1298
+ "aria-disabled": isDisabled
1299
+ }, innerProps), children);
1300
+ };
1301
+ var Option$1 = Option;
1302
+
1303
+ var placeholderCSS = function placeholderCSS(_ref, unstyled) {
1304
+ var _ref$theme = _ref.theme,
1305
+ spacing = _ref$theme.spacing,
1306
+ colors = _ref$theme.colors;
1307
+ return _objectSpread2({
1308
+ label: 'placeholder',
1309
+ gridArea: '1 / 1 / 2 / 3'
1310
+ }, unstyled ? {} : {
1311
+ color: colors.neutral50,
1312
+ marginLeft: spacing.baseUnit / 2,
1313
+ marginRight: spacing.baseUnit / 2
1314
+ });
1315
+ };
1316
+ var Placeholder = function Placeholder(props) {
1317
+ var children = props.children,
1318
+ innerProps = props.innerProps;
1319
+ return jsx("div", _extends({}, getStyleProps(props, 'placeholder', {
1320
+ placeholder: true
1321
+ }), innerProps), children);
1322
+ };
1323
+ var Placeholder$1 = Placeholder;
1324
+
1325
+ var css = function css(_ref, unstyled) {
1326
+ var isDisabled = _ref.isDisabled,
1327
+ _ref$theme = _ref.theme,
1328
+ spacing = _ref$theme.spacing,
1329
+ colors = _ref$theme.colors;
1330
+ return _objectSpread2({
1331
+ label: 'singleValue',
1332
+ gridArea: '1 / 1 / 2 / 3',
1333
+ maxWidth: '100%',
1334
+ overflow: 'hidden',
1335
+ textOverflow: 'ellipsis',
1336
+ whiteSpace: 'nowrap'
1337
+ }, unstyled ? {} : {
1338
+ color: isDisabled ? colors.neutral40 : colors.neutral80,
1339
+ marginLeft: spacing.baseUnit / 2,
1340
+ marginRight: spacing.baseUnit / 2
1341
+ });
1342
+ };
1343
+ var SingleValue = function SingleValue(props) {
1344
+ var children = props.children,
1345
+ isDisabled = props.isDisabled,
1346
+ innerProps = props.innerProps;
1347
+ return jsx("div", _extends({}, getStyleProps(props, 'singleValue', {
1348
+ 'single-value': true,
1349
+ 'single-value--is-disabled': isDisabled
1350
+ }), innerProps), children);
1351
+ };
1352
+ var SingleValue$1 = SingleValue;
1353
+
1354
+ var components = {
1355
+ ClearIndicator: ClearIndicator,
1356
+ Control: Control$1,
1357
+ DropdownIndicator: DropdownIndicator,
1358
+ DownChevron: DownChevron,
1359
+ CrossIcon: CrossIcon,
1360
+ Group: Group$1,
1361
+ GroupHeading: GroupHeading,
1362
+ IndicatorsContainer: IndicatorsContainer,
1363
+ IndicatorSeparator: IndicatorSeparator,
1364
+ Input: Input$1,
1365
+ LoadingIndicator: LoadingIndicator,
1366
+ Menu: Menu$1,
1367
+ MenuList: MenuList,
1368
+ MenuPortal: MenuPortal,
1369
+ LoadingMessage: LoadingMessage,
1370
+ NoOptionsMessage: NoOptionsMessage,
1371
+ MultiValue: MultiValue$1,
1372
+ MultiValueContainer: MultiValueContainer,
1373
+ MultiValueLabel: MultiValueLabel,
1374
+ MultiValueRemove: MultiValueRemove,
1375
+ Option: Option$1,
1376
+ Placeholder: Placeholder$1,
1377
+ SelectContainer: SelectContainer,
1378
+ SingleValue: SingleValue$1,
1379
+ ValueContainer: ValueContainer
1380
+ };
1381
+ var defaultComponents = function defaultComponents(props) {
1382
+ return _objectSpread2(_objectSpread2({}, components), props.components);
1383
+ };
1384
+
1385
+ export { isMobileDevice as A, multiValueAsValue as B, singleValueAsValue as C, valueTernary as D, classNames as E, defaultComponents as F, isDocumentElement as G, cleanValue as H, scrollIntoView as I, noop as J, notNullish as K, MenuPlacer as M, clearIndicatorCSS as a, containerCSS as b, components as c, css$1 as d, dropdownIndicatorCSS as e, groupHeadingCSS as f, groupCSS as g, indicatorSeparatorCSS as h, indicatorsContainerCSS as i, inputCSS as j, loadingMessageCSS as k, loadingIndicatorCSS as l, menuCSS as m, menuListCSS as n, menuPortalCSS as o, multiValueCSS as p, multiValueLabelCSS as q, removeProps as r, supportsPassiveEvents as s, multiValueRemoveCSS as t, noOptionsMessageCSS as u, optionCSS as v, placeholderCSS as w, css as x, valueContainerCSS as y, isTouchCapable as z };