@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.26

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 (556) hide show
  1. package/build/ActionButton-03dc5f67.js +92 -0
  2. package/build/Alert-8a511bdc.js +138 -0
  3. package/build/AssetAction-d081e4b7.js +2377 -0
  4. package/build/AssetPreviewTopBar-623cfa18.js +152 -0
  5. package/build/Badge-aa4cd9c1.js +221 -0
  6. package/build/Button-2e26f5da.js +449 -0
  7. package/build/Checkbox-0b8faf49.js +220 -0
  8. package/build/CompactAutocompleteSelect-797778cb.js +555 -0
  9. package/build/CompactStarRating-da21b53f.js +436 -0
  10. package/build/CompactTextInput-d56aec71.js +541 -0
  11. package/build/ContextMenu-82f9d728.js +33 -0
  12. package/build/ContextMenuItem-3967010d.js +152 -0
  13. package/build/InfoCard-d0fdf377.js +132 -0
  14. package/build/InputGroup-8d4a4644.js +30 -0
  15. package/build/Instructions-af191987.js +274 -0
  16. package/build/MultiLevelCheckboxSelect-d229cf98.js +632 -0
  17. package/build/MultiSelect-d7920eb1.js +470 -0
  18. package/build/Popover-c4be47ea.js +241 -0
  19. package/build/ProgressBar-2d26c1fb.js +217 -0
  20. package/build/Radio-150fb2c9.js +141 -0
  21. package/build/SectionSeparator-e06c7660.js +38 -0
  22. package/build/Switch-d2d6e9ec.js +167 -0
  23. package/build/Tab-ccbca1f2.js +39 -0
  24. package/build/Tabs-b06c0e24.js +166 -0
  25. package/build/TextArea-26d3c8a1.js +619 -0
  26. package/build/TextInput-3a567daa.js +372 -0
  27. package/build/Tooltip-d5882b82.js +73 -0
  28. package/build/VerificationStatusIcon-9876b68f.js +120 -0
  29. package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-4b342fad.js} +3 -1
  30. package/build/arrow-forward-d7c77ae3.js +37 -0
  31. package/build/close-1751121a.js +37 -0
  32. package/build/data/Alert/index.js +12 -0
  33. package/build/data/Badge/index.js +11 -0
  34. package/build/data/Popover/index.js +16 -0
  35. package/build/data/Tab/index.js +11 -0
  36. package/build/data/Tabs/index.js +13 -0
  37. package/build/data/Tooltip/index.js +13 -0
  38. package/build/data/index.js +30 -0
  39. package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-d9a7342e.js} +582 -17
  40. package/build/edit-note-cefe2215.js +37 -0
  41. package/build/expand-more-d74e2bd2.js +37 -0
  42. package/build/icons/add-circle.svg +3 -0
  43. package/build/icons/add.svg +3 -0
  44. package/build/icons/album.svg +3 -0
  45. package/build/icons/arrow-back.svg +4 -0
  46. package/build/icons/arrow-drop-down.svg +4 -0
  47. package/build/icons/arrow-forward.svg +3 -0
  48. package/build/icons/audio.svg +3 -0
  49. package/build/icons/bell.svg +3 -0
  50. package/build/icons/check-circle-filled.svg +3 -0
  51. package/build/icons/check-rectangle-filled.svg +3 -0
  52. package/build/icons/check.svg +3 -0
  53. package/build/icons/clear-circle-filled.svg +14 -0
  54. package/build/icons/close.svg +4 -0
  55. package/build/icons/corporate.svg +3 -0
  56. package/build/icons/delete-context-menu.svg +4 -0
  57. package/build/icons/delete.svg +3 -0
  58. package/build/icons/design-services.svg +4 -0
  59. package/build/icons/download.svg +3 -0
  60. package/build/icons/edit-note.svg +4 -0
  61. package/build/icons/edit.svg +3 -0
  62. package/build/icons/expand-more.svg +4 -0
  63. package/build/icons/file.svg +3 -0
  64. package/build/icons/ftp.svg +3 -0
  65. package/build/icons/gear.svg +3 -0
  66. package/build/icons/headset.svg +1 -0
  67. package/build/icons/index.js +79 -0
  68. package/build/icons/layers.svg +3 -0
  69. package/build/icons/library-add.svg +3 -0
  70. package/build/icons/link.svg +4 -0
  71. package/build/icons/pdf.svg +3 -0
  72. package/build/icons/play.svg +3 -0
  73. package/build/icons/remove-circle.svg +3 -0
  74. package/build/icons/search.svg +3 -0
  75. package/build/icons/share.svg +3 -0
  76. package/build/icons/shopping_cart_add.svg +3 -0
  77. package/build/icons/star-filled.svg +3 -0
  78. package/build/icons/star.svg +3 -0
  79. package/build/icons/triangle-right.svg +4 -0
  80. package/build/icons/verification.svg +3 -0
  81. package/build/icons/warning-circle.svg +3 -0
  82. package/build/icons/warning-triangle.svg +3 -0
  83. package/build/inputs/ActionButton/index.js +12 -0
  84. package/build/inputs/Button/index.js +19 -0
  85. package/build/inputs/Checkbox/index.js +12 -0
  86. package/build/inputs/CompactAutocompleteSelect/index.js +29 -0
  87. package/build/inputs/CompactStarRating/index.js +23 -0
  88. package/build/inputs/CompactTextInput/index.js +25 -0
  89. package/build/inputs/MultiSelect/index.js +16 -0
  90. package/build/inputs/Radio/index.js +13 -0
  91. package/build/inputs/Switch/index.js +12 -0
  92. package/build/inputs/TextArea/index.js +26 -0
  93. package/build/inputs/TextInput/index.js +15 -0
  94. package/build/inputs/index.js +60 -0
  95. package/build/layout/InputGroup/index.js +11 -0
  96. package/build/layout/SectionSeparator/index.js +11 -0
  97. package/build/layout/index.js +15 -0
  98. package/build/shift-away-subtle-158617af.js +9 -0
  99. package/build/styles/all.scss +3 -0
  100. package/build/styles/config.scss +38 -0
  101. package/{styles/utils/.colors.scss → build/styles/utils/colors.scss} +1 -1
  102. package/build/styles/utils/theme.scss +33 -0
  103. package/build/widgets/AssetGallery/index.js +55 -0
  104. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +12 -0
  105. package/build/widgets/ContextMenu/ContextMenuItem/index.js +11 -0
  106. package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +44 -0
  107. package/build/widgets/ContextMenu/index.js +11 -0
  108. package/build/widgets/InfoCard/index.js +12 -0
  109. package/build/widgets/Instructions/index.js +33 -0
  110. package/build/widgets/ProgressBar/index.js +12 -0
  111. package/build/widgets/index.js +65 -0
  112. package/package.json +49 -56
  113. package/styles/all.scss +3 -3
  114. package/styles/config.scss +38 -0
  115. package/styles/utils/colors.scss +15 -0
  116. package/styles/utils/theme.scss +0 -2
  117. package/.eslintrc +0 -19
  118. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
  119. package/cjs/_virtual/index.js +0 -7
  120. package/cjs/_virtual/index2.js +0 -7
  121. package/cjs/_virtual/index3.js +0 -7
  122. package/cjs/_virtual/index4.js +0 -7
  123. package/cjs/_virtual/index5.js +0 -7
  124. package/cjs/_virtual/react-dom.development.js +0 -7
  125. package/cjs/_virtual/react-dom.production.js +0 -7
  126. package/cjs/_virtual/react-is.development.js +0 -7
  127. package/cjs/_virtual/react-is.development2.js +0 -7
  128. package/cjs/_virtual/react-is.production.min.js +0 -7
  129. package/cjs/_virtual/react-is.production.min2.js +0 -7
  130. package/cjs/_virtual/react.development.js +0 -7
  131. package/cjs/_virtual/react.production.js +0 -7
  132. package/cjs/components/data/Alert/Alert.js +0 -79
  133. package/cjs/components/data/Alert/Alert.styled.js +0 -79
  134. package/cjs/components/data/Alert/data/Alert/index.js +0 -9
  135. package/cjs/components/data/Badge/Badge.js +0 -93
  136. package/cjs/components/data/Badge/Badge.styled.js +0 -167
  137. package/cjs/components/data/Badge/data/Badge/index.js +0 -9
  138. package/cjs/components/data/Popover/Popover.js +0 -104
  139. package/cjs/components/data/Popover/Popover.styled.js +0 -159
  140. package/cjs/components/data/Popover/data/Popover/index.js +0 -9
  141. package/cjs/components/data/Tab/Tab.js +0 -31
  142. package/cjs/components/data/Tab/Tab.styled.js +0 -27
  143. package/cjs/components/data/Tab/data/Tab/index.js +0 -9
  144. package/cjs/components/data/Tabs/Tabs.js +0 -101
  145. package/cjs/components/data/Tabs/Tabs.styled.js +0 -110
  146. package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
  147. package/cjs/components/data/Tooltip/Tooltip.js +0 -52
  148. package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
  149. package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
  150. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
  151. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -88
  152. package/cjs/components/data/data/index.js +0 -21
  153. package/cjs/components/inputs/ActionButton/ActionButton.js +0 -44
  154. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -75
  155. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
  156. package/cjs/components/inputs/Button/Button.js +0 -195
  157. package/cjs/components/inputs/Button/Button.styled.js +0 -340
  158. package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
  159. package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
  160. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -160
  161. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
  162. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
  163. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -363
  164. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
  165. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -177
  166. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -269
  167. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
  168. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
  169. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -406
  170. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
  171. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
  172. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -106
  173. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
  174. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -147
  175. package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -208
  176. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -275
  177. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
  178. package/cjs/components/inputs/Radio/Radio.js +0 -67
  179. package/cjs/components/inputs/Radio/Radio.styled.js +0 -100
  180. package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
  181. package/cjs/components/inputs/Switch/Switch.js +0 -69
  182. package/cjs/components/inputs/Switch/Switch.styled.js +0 -138
  183. package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
  184. package/cjs/components/inputs/TextArea/TextArea.js +0 -176
  185. package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -530
  186. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
  187. package/cjs/components/inputs/TextInput/TextInput.js +0 -146
  188. package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -289
  189. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
  190. package/cjs/components/inputs/inputs/index.js +0 -33
  191. package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
  192. package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -23
  193. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
  194. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
  195. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -28
  196. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
  197. package/cjs/components/layout/layout/index.js +0 -11
  198. package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
  199. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -69
  200. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
  201. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -29
  202. package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -106
  203. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -395
  204. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -52
  205. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -405
  206. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -385
  207. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
  208. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
  209. package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
  210. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
  211. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
  212. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -107
  213. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
  214. package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -29
  215. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -24
  216. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
  217. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -102
  218. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
  219. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
  220. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -35
  221. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
  222. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
  223. package/cjs/components/widgets/InfoCard/InfoCard.js +0 -47
  224. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -137
  225. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
  226. package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -79
  227. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -210
  228. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
  229. package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -93
  230. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -169
  231. package/cjs/components/widgets/widgets/index.js +0 -23
  232. package/cjs/hooks/useEventListner.js +0 -26
  233. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
  234. package/cjs/hooks/useOnClickOutside.js +0 -17
  235. package/cjs/icons/arrow-back.svg.js +0 -20
  236. package/cjs/icons/arrow-forward.svg.js +0 -20
  237. package/cjs/icons/check-rectangle-filled.svg.js +0 -20
  238. package/cjs/icons/close.svg.js +0 -20
  239. package/cjs/icons/edit-note.svg.js +0 -20
  240. package/cjs/icons/expand-more.svg.js +0 -20
  241. package/cjs/icons/headset.svg.js +0 -20
  242. package/cjs/icons/layers.svg.js +0 -20
  243. package/cjs/icons/link.svg.js +0 -20
  244. package/cjs/icons/play.svg.js +0 -20
  245. package/cjs/icons/search.svg.js +0 -20
  246. package/cjs/icons/star-filled.svg.js +0 -20
  247. package/cjs/icons/star.svg.js +0 -20
  248. package/cjs/icons/triangle-right.svg.js +0 -20
  249. package/cjs/icons/verification.svg.js +0 -20
  250. package/cjs/icons/warning-circle.svg.js +0 -20
  251. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
  252. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
  253. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
  254. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
  255. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
  256. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
  257. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
  258. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
  259. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
  260. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
  261. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
  262. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
  263. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
  264. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
  265. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
  266. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
  267. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
  268. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
  269. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  270. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
  271. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
  272. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
  273. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
  274. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
  275. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
  276. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
  277. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
  278. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
  279. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
  280. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
  281. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
  282. package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
  283. package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
  284. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
  285. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
  286. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
  287. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
  288. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
  289. package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
  290. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -915
  291. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
  292. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -130
  293. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -166
  294. package/cjs/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -43
  295. package/cjs/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -39
  296. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
  297. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
  298. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  299. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
  300. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
  301. package/cjs/node_modules/object-assign/index.js +0 -94
  302. package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
  303. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
  304. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
  305. package/cjs/node_modules/prop-types/index.js +0 -33
  306. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
  307. package/cjs/node_modules/prop-types/lib/has.js +0 -7
  308. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
  309. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  310. package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
  311. package/cjs/node_modules/react/cjs/react.development.js +0 -1289
  312. package/cjs/node_modules/react/cjs/react.production.js +0 -548
  313. package/cjs/node_modules/react/index.js +0 -19
  314. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
  315. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
  316. package/cjs/node_modules/react-dom/index.js +0 -44
  317. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
  318. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
  319. package/cjs/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2659
  320. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
  321. package/cjs/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -101
  322. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
  323. package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
  324. package/cjs/node_modules/stylis/src/Enum.js +0 -24
  325. package/cjs/node_modules/stylis/src/Middleware.js +0 -37
  326. package/cjs/node_modules/stylis/src/Parser.js +0 -201
  327. package/cjs/node_modules/stylis/src/Serializer.js +0 -43
  328. package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
  329. package/cjs/node_modules/stylis/src/Utility.js +0 -134
  330. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
  331. package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
  332. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -13
  333. package/cjs/styles/utils/colors-export.js +0 -41
  334. package/cjs/utils/dateTime.js +0 -20
  335. package/cjs/utils/defaultTheme.js +0 -75
  336. package/doctor-storybook.log +0 -20
  337. package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
  338. package/esm/_virtual/index.js +0 -3
  339. package/esm/_virtual/index2.js +0 -3
  340. package/esm/_virtual/index3.js +0 -3
  341. package/esm/_virtual/index4.js +0 -3
  342. package/esm/_virtual/index5.js +0 -3
  343. package/esm/_virtual/react-dom.development.js +0 -3
  344. package/esm/_virtual/react-dom.production.js +0 -3
  345. package/esm/_virtual/react-is.development.js +0 -3
  346. package/esm/_virtual/react-is.development2.js +0 -3
  347. package/esm/_virtual/react-is.production.min.js +0 -3
  348. package/esm/_virtual/react-is.production.min2.js +0 -3
  349. package/esm/_virtual/react.development.js +0 -3
  350. package/esm/_virtual/react.production.js +0 -3
  351. package/esm/components/data/Alert/Alert.js +0 -75
  352. package/esm/components/data/Alert/Alert.styled.js +0 -70
  353. package/esm/components/data/Alert/data/Alert/index.js +0 -1
  354. package/esm/components/data/Badge/Badge.js +0 -89
  355. package/esm/components/data/Badge/Badge.styled.js +0 -156
  356. package/esm/components/data/Badge/data/Badge/index.js +0 -1
  357. package/esm/components/data/Popover/Popover.js +0 -96
  358. package/esm/components/data/Popover/Popover.styled.js +0 -150
  359. package/esm/components/data/Popover/data/Popover/index.js +0 -1
  360. package/esm/components/data/Tab/Tab.js +0 -27
  361. package/esm/components/data/Tab/Tab.styled.js +0 -19
  362. package/esm/components/data/Tab/data/Tab/index.js +0 -1
  363. package/esm/components/data/Tabs/Tabs.js +0 -97
  364. package/esm/components/data/Tabs/Tabs.styled.js +0 -98
  365. package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
  366. package/esm/components/data/Tooltip/Tooltip.js +0 -48
  367. package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
  368. package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
  369. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
  370. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -78
  371. package/esm/components/data/data/index.js +0 -7
  372. package/esm/components/inputs/ActionButton/ActionButton.js +0 -40
  373. package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -67
  374. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
  375. package/esm/components/inputs/Button/Button.js +0 -191
  376. package/esm/components/inputs/Button/Button.styled.js +0 -323
  377. package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
  378. package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
  379. package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -147
  380. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
  381. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
  382. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -335
  383. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
  384. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -173
  385. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -256
  386. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
  387. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
  388. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -389
  389. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
  390. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
  391. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -92
  392. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
  393. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -129
  394. package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -204
  395. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
  396. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
  397. package/esm/components/inputs/Radio/Radio.js +0 -63
  398. package/esm/components/inputs/Radio/Radio.styled.js +0 -91
  399. package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
  400. package/esm/components/inputs/Switch/Switch.js +0 -65
  401. package/esm/components/inputs/Switch/Switch.styled.js +0 -125
  402. package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
  403. package/esm/components/inputs/TextArea/TextArea.js +0 -172
  404. package/esm/components/inputs/TextArea/TextArea.styled.js +0 -512
  405. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
  406. package/esm/components/inputs/TextInput/TextInput.js +0 -142
  407. package/esm/components/inputs/TextInput/TextInput.styled.js +0 -274
  408. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
  409. package/esm/components/inputs/inputs/index.js +0 -13
  410. package/esm/components/layout/InputGroup/InputGroup.js +0 -22
  411. package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -15
  412. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
  413. package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
  414. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -20
  415. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
  416. package/esm/components/layout/layout/index.js +0 -2
  417. package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
  418. package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -57
  419. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
  420. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -21
  421. package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -102
  422. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -387
  423. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -42
  424. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -401
  425. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -358
  426. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
  427. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
  428. package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
  429. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
  430. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
  431. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -95
  432. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
  433. package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -25
  434. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -16
  435. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
  436. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -92
  437. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
  438. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
  439. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -27
  440. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
  441. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
  442. package/esm/components/widgets/InfoCard/InfoCard.js +0 -43
  443. package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -121
  444. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
  445. package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -75
  446. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -191
  447. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
  448. package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -89
  449. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -151
  450. package/esm/components/widgets/widgets/index.js +0 -8
  451. package/esm/hooks/useEventListner.js +0 -22
  452. package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
  453. package/esm/hooks/useOnClickOutside.js +0 -13
  454. package/esm/icons/arrow-back.svg.js +0 -16
  455. package/esm/icons/arrow-forward.svg.js +0 -16
  456. package/esm/icons/check-rectangle-filled.svg.js +0 -16
  457. package/esm/icons/close.svg.js +0 -16
  458. package/esm/icons/edit-note.svg.js +0 -16
  459. package/esm/icons/expand-more.svg.js +0 -16
  460. package/esm/icons/headset.svg.js +0 -16
  461. package/esm/icons/layers.svg.js +0 -16
  462. package/esm/icons/link.svg.js +0 -16
  463. package/esm/icons/play.svg.js +0 -16
  464. package/esm/icons/search.svg.js +0 -16
  465. package/esm/icons/star-filled.svg.js +0 -16
  466. package/esm/icons/star.svg.js +0 -16
  467. package/esm/icons/triangle-right.svg.js +0 -16
  468. package/esm/icons/verification.svg.js +0 -16
  469. package/esm/icons/warning-circle.svg.js +0 -16
  470. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
  471. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
  472. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
  473. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
  474. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
  475. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
  476. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
  477. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  478. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
  479. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
  480. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
  481. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
  482. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
  483. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
  484. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
  485. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  486. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
  487. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
  488. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
  489. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
  490. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
  491. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
  492. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
  493. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  494. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  495. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  496. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
  497. package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
  498. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
  499. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  500. package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
  501. package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
  502. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
  503. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
  504. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
  505. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
  506. package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
  507. package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
  508. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -902
  509. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
  510. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -112
  511. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -139
  512. package/esm/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -38
  513. package/esm/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -35
  514. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
  515. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
  516. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  517. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
  518. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
  519. package/esm/node_modules/object-assign/index.js +0 -90
  520. package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
  521. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  522. package/esm/node_modules/prop-types/index.js +0 -29
  523. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  524. package/esm/node_modules/prop-types/lib/has.js +0 -3
  525. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
  526. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  527. package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
  528. package/esm/node_modules/react/cjs/react.development.js +0 -1287
  529. package/esm/node_modules/react/cjs/react.production.js +0 -543
  530. package/esm/node_modules/react/index.js +0 -15
  531. package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
  532. package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
  533. package/esm/node_modules/react-dom/index.js +0 -42
  534. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
  535. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
  536. package/esm/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2650
  537. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
  538. package/esm/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -97
  539. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
  540. package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
  541. package/esm/node_modules/stylis/src/Enum.js +0 -12
  542. package/esm/node_modules/stylis/src/Middleware.js +0 -32
  543. package/esm/node_modules/stylis/src/Parser.js +0 -193
  544. package/esm/node_modules/stylis/src/Serializer.js +0 -38
  545. package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
  546. package/esm/node_modules/stylis/src/Utility.js +0 -117
  547. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
  548. package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
  549. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -9
  550. package/esm/ssr/ssr/index.js +0 -1
  551. package/esm/styles/utils/colors-export.js +0 -37
  552. package/esm/utils/dateTime.js +0 -16
  553. package/esm/utils/defaultTheme.js +0 -70
  554. package/migration-storybook.log +0 -392
  555. package/styles/utils/colors-export.js +0 -35
  556. /package/{cjs/ssr → build}/ssr/index.js +0 -0
@@ -1,1385 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09P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KiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT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2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+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 };