@procore/core-react 12.21.2 → 12.23.0

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 (407) hide show
  1. package/CHANGELOG.md +20 -8
  2. package/dist/@types/global.d.js.map +1 -1
  3. package/dist/AnchorNavigation/AnchorNavigation.styles.d.ts +6 -5
  4. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  5. package/dist/Avatar/Avatar.styles.d.ts +7 -6
  6. package/dist/Avatar/Avatar.styles.js +5 -5
  7. package/dist/AvatarStack/AvatarStack.styles.d.ts +1677 -13
  8. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  9. package/dist/Badge/Badge.styles.d.ts +3 -2
  10. package/dist/Badge/Badge.styles.js +2 -2
  11. package/dist/BadgePill/BadgePill.d.ts +3 -0
  12. package/dist/BadgePill/BadgePill.js +25 -0
  13. package/dist/BadgePill/BadgePill.js.map +1 -0
  14. package/dist/BadgePill/BadgePill.styles.d.ts +12 -0
  15. package/dist/BadgePill/BadgePill.styles.js +33 -0
  16. package/dist/BadgePill/BadgePill.styles.js.map +1 -0
  17. package/dist/BadgePill/BadgePill.types.d.ts +50 -0
  18. package/dist/BadgePill/BadgePill.types.js +2 -0
  19. package/dist/BadgePill/BadgePill.types.js.map +1 -0
  20. package/dist/BadgePill/index.d.ts +2 -0
  21. package/dist/BadgePill/index.js +2 -0
  22. package/dist/BadgePill/index.js.map +1 -0
  23. package/dist/Banner/Banner.js +1 -1
  24. package/dist/Banner/Banner.js.map +1 -1
  25. package/dist/Banner/Banner.styles.d.ts +22 -13
  26. package/dist/Banner/Banner.styles.js +12 -12
  27. package/dist/Banner/Banner.styles.js.map +1 -1
  28. package/dist/Box/Box.js +1 -1
  29. package/dist/Box/Box.js.map +1 -1
  30. package/dist/Box/Box.styles.d.ts +2 -1
  31. package/dist/Box/Box.styles.js +3 -3
  32. package/dist/Box/Box.styles.js.map +1 -1
  33. package/dist/Box/Box.types.d.ts +1 -1
  34. package/dist/Box/Box.types.js.map +1 -1
  35. package/dist/Breadcrumbs/Breadcrumbs.styles.d.ts +5 -4
  36. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  37. package/dist/Button/Button.styles.d.ts +8 -6
  38. package/dist/Button/Button.styles.js +5 -5
  39. package/dist/Calendar/Calendar.styles.d.ts +15 -9
  40. package/dist/Calendar/Calendar.styles.js +8 -8
  41. package/dist/Card/Card.styles.d.ts +3 -2
  42. package/dist/Card/Card.styles.js +1 -1
  43. package/dist/Checkbox/Checkbox.styles.d.ts +11 -10
  44. package/dist/Checkbox/Checkbox.styles.js +6 -6
  45. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  46. package/dist/ContactItem/ContactItem.js +2 -0
  47. package/dist/ContactItem/ContactItem.js.map +1 -1
  48. package/dist/ContactItem/ContactItem.styles.d.ts +18 -7
  49. package/dist/ContactItem/ContactItem.styles.js +5 -5
  50. package/dist/Content/Content.styles.d.ts +6 -2
  51. package/dist/Content/Content.styles.js +2 -2
  52. package/dist/DateInput/DateInput.js +6 -6
  53. package/dist/DateInput/DateInput.js.map +1 -1
  54. package/dist/DateInput/DateInput.styles.d.ts +20 -13
  55. package/dist/DateInput/DateInput.styles.js +21 -23
  56. package/dist/DateInput/DateInput.styles.js.map +1 -1
  57. package/dist/DateSelect/DateSelect.js +2 -2
  58. package/dist/DateSelect/DateSelect.js.map +1 -1
  59. package/dist/DetailPage/DetailPage.styles.d.ts +13 -7
  60. package/dist/DetailPage/DetailPage.styles.js +7 -7
  61. package/dist/Dropdown/Dropdown.styles.d.ts +10 -4
  62. package/dist/Dropdown/Dropdown.styles.js +3 -3
  63. package/dist/DropdownFlyout/DropdownFlyout.js +1 -1
  64. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  65. package/dist/DropdownFlyout/DropdownFlyout.styles.d.ts +5 -4
  66. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  67. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -1
  68. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  69. package/dist/Dropzone/Dropzone.d.ts +3 -1
  70. package/dist/Dropzone/Dropzone.js +5 -5
  71. package/dist/Dropzone/Dropzone.js.map +1 -1
  72. package/dist/Dropzone/Dropzone.styles.d.ts +24 -16
  73. package/dist/Dropzone/Dropzone.styles.js +22 -22
  74. package/dist/Dropzone/Dropzone.styles.js.map +1 -1
  75. package/dist/EmptyState/EmptyState.js +1 -1
  76. package/dist/EmptyState/EmptyState.js.map +1 -1
  77. package/dist/EmptyState/EmptyState.styles.d.ts +8 -7
  78. package/dist/EmptyState/EmptyState.styles.js +6 -6
  79. package/dist/Field/Field.styles.d.ts +4 -3
  80. package/dist/Field/Field.styles.js +3 -3
  81. package/dist/FileList/FileList.styles.d.ts +8 -4
  82. package/dist/FileList/FileList.styles.js +4 -4
  83. package/dist/FileSelect/FileExplorer/FileExplorer.styles.d.ts +18 -10
  84. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  85. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.d.ts +5 -3
  86. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  87. package/dist/FileSelect/FileSelect.d.ts +3 -3
  88. package/dist/FileSelect/FileSelect.js +4 -4
  89. package/dist/FileSelect/FileSelect.js.map +1 -1
  90. package/dist/FileSelect/FileSelect.styles.d.ts +4 -2
  91. package/dist/FileSelect/FileSelect.styles.js +2 -2
  92. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.d.ts +7 -5
  93. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  94. package/dist/FileSelect/FileTokenList/FileTokenList.styles.d.ts +4 -2
  95. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  96. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +11 -9
  97. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  98. package/dist/FileSelect/LocalSource/LocalSource.styles.d.ts +10 -4
  99. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  100. package/dist/FileSelect/SourceItem/SourceItem.styles.d.ts +5 -4
  101. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  102. package/dist/FileSelect/ThumbnailList/ThumbnailList.js +1 -1
  103. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  104. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +18 -8
  105. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  106. package/dist/FileSelect/TreeSource/TreeSource.styles.d.ts +2 -1
  107. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  108. package/dist/FileToken/FileToken.styles.d.ts +6 -5
  109. package/dist/FileToken/FileToken.styles.js +4 -4
  110. package/dist/FilterToken/FilterToken.styles.d.ts +8 -7
  111. package/dist/FilterToken/FilterToken.styles.js +5 -5
  112. package/dist/FlexList/FlexList.styles.d.ts +4 -2
  113. package/dist/FlexList/FlexList.styles.js +1 -1
  114. package/dist/Form/Form.d.ts +2 -1
  115. package/dist/Form/Form.js.map +1 -1
  116. package/dist/Form/Form.styles.d.ts +48 -25
  117. package/dist/Form/Form.styles.js +18 -18
  118. package/dist/Form/Form.styles.js.map +1 -1
  119. package/dist/Form/Form.types.d.ts +1 -1
  120. package/dist/Form/Form.types.js.map +1 -1
  121. package/dist/Form/StyledFormikForm.styles.d.ts +7 -3
  122. package/dist/Form/StyledFormikForm.styles.js +2 -2
  123. package/dist/GhostPlaceholder/GhostPlaceholder.styles.d.ts +5 -2
  124. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  125. package/dist/Grid/Grid.styles.d.ts +5 -4
  126. package/dist/Grid/Grid.styles.js +2 -2
  127. package/dist/GroupSelect/GroupSelect.js +1 -1
  128. package/dist/GroupSelect/GroupSelect.js.map +1 -1
  129. package/dist/GroupSelect/GroupSelect.styles.d.ts +4 -2
  130. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  131. package/dist/Input/Input.js +5 -1
  132. package/dist/Input/Input.js.map +1 -1
  133. package/dist/Input/Input.styles.d.ts +8 -8
  134. package/dist/Input/Input.styles.js +5 -5
  135. package/dist/Input/Input.styles.js.map +1 -1
  136. package/dist/Link/Link.js +3 -1
  137. package/dist/Link/Link.js.map +1 -1
  138. package/dist/Link/Link.styles.d.ts +4 -1
  139. package/dist/Link/Link.styles.js +4 -4
  140. package/dist/Link/Link.styles.js.map +1 -1
  141. package/dist/Link/Link.types.d.ts +1 -2
  142. package/dist/Link/Link.types.js.map +1 -1
  143. package/dist/ListPage/ListPage.styles.d.ts +9 -8
  144. package/dist/ListPage/ListPage.styles.js +8 -8
  145. package/dist/Loader/Loader.styles.d.ts +4 -3
  146. package/dist/Loader/Loader.styles.js +2 -2
  147. package/dist/Menu/Menu.js +6 -5
  148. package/dist/Menu/Menu.js.map +1 -1
  149. package/dist/MenuImperative/MenuImperative.d.ts +2 -3
  150. package/dist/MenuImperative/MenuImperative.js +8 -26
  151. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  152. package/dist/MenuImperative/MenuImperative.styles.d.ts +15 -13
  153. package/dist/MenuImperative/MenuImperative.styles.js +13 -13
  154. package/dist/MenuImperative/MenuImperative.styles.js.map +1 -1
  155. package/dist/Modal/Modal.d.ts +6 -6
  156. package/dist/Modal/Modal.js +2 -2
  157. package/dist/Modal/Modal.js.map +1 -1
  158. package/dist/Modal/Modal.styles.d.ts +27 -19
  159. package/dist/Modal/Modal.styles.js +13 -13
  160. package/dist/MultiSelect/MultiSelect.js +5 -5
  161. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  162. package/dist/MultiSelect/MultiSelect.styles.d.ts +19 -13
  163. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  164. package/dist/NextMenu/NextMenu.styles.d.ts +4 -3
  165. package/dist/NextMenu/NextMenu.styles.js +3 -3
  166. package/dist/Notation/Notation.js +5 -5
  167. package/dist/Notation/Notation.js.map +1 -1
  168. package/dist/NumberInput/NumberInput.hooks.d.ts +1 -1
  169. package/dist/NumberInput/NumberInput.styles.d.ts +16 -10
  170. package/dist/NumberInput/NumberInput.styles.js +7 -7
  171. package/dist/Overlay/OverlayArrow.styles.d.ts +2 -1
  172. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  173. package/dist/OverlayTrigger/a11yPresets.d.ts +20 -20
  174. package/dist/PageLayout/PageLayout.styles.d.ts +33 -24
  175. package/dist/PageLayout/PageLayout.styles.js +16 -16
  176. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.d.ts +2 -1
  177. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  178. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.d.ts +3 -1
  179. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.js.map +1 -1
  180. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +10 -4
  181. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  182. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +12 -8
  183. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  184. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.d.ts +5 -3
  185. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  186. package/dist/Pagination/Pagination.styles.d.ts +13 -5
  187. package/dist/Pagination/Pagination.styles.js +5 -5
  188. package/dist/Panel/Panel.js +1 -1
  189. package/dist/Panel/Panel.js.map +1 -1
  190. package/dist/Panel/Panel.styles.d.ts +19 -15
  191. package/dist/Panel/Panel.styles.js +19 -19
  192. package/dist/Panel/Panel.styles.js.map +1 -1
  193. package/dist/Pill/Pill.styles.d.ts +9 -5
  194. package/dist/Pill/Pill.styles.js +2 -2
  195. package/dist/PillSelect/PillSelect.styles.d.ts +7 -5
  196. package/dist/PillSelect/PillSelect.styles.js +4 -4
  197. package/dist/Popover/Popover.styles.d.ts +3 -2
  198. package/dist/Popover/Popover.styles.js +2 -2
  199. package/dist/Portal/Portal.styles.d.ts +2 -1
  200. package/dist/Portal/Portal.styles.js +1 -1
  201. package/dist/ProgressBar/ProgressBar.styles.d.ts +3 -3
  202. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  203. package/dist/RadioButton/RadioButton.styles.d.ts +5 -4
  204. package/dist/RadioButton/RadioButton.styles.js +3 -3
  205. package/dist/Required/Required.styles.d.ts +5 -4
  206. package/dist/Required/Required.styles.js +3 -3
  207. package/dist/Search/Search.js +6 -2
  208. package/dist/Search/Search.js.map +1 -1
  209. package/dist/Search/Search.styles.d.ts +11 -12
  210. package/dist/Search/Search.styles.js +13 -7
  211. package/dist/Search/Search.styles.js.map +1 -1
  212. package/dist/Section/Section.styles.d.ts +11 -9
  213. package/dist/Section/Section.styles.js +7 -7
  214. package/dist/SegmentedController/SegmentedController.js +1 -1
  215. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  216. package/dist/SegmentedController/SegmentedController.styles.d.ts +8 -7
  217. package/dist/SegmentedController/SegmentedController.styles.js +9 -9
  218. package/dist/SegmentedController/SegmentedController.styles.js.map +1 -1
  219. package/dist/Select/Select.js +4 -4
  220. package/dist/Select/Select.js.map +1 -1
  221. package/dist/Select/Select.styles.d.ts +13 -9
  222. package/dist/Select/Select.styles.js +7 -7
  223. package/dist/Semantic/Semantic.styles.d.ts +359 -20
  224. package/dist/Semantic/Semantic.styles.js +11 -12
  225. package/dist/Semantic/Semantic.styles.js.map +1 -1
  226. package/dist/Slider/Slider.styles.d.ts +9 -7
  227. package/dist/Slider/Slider.styles.js +5 -5
  228. package/dist/Spinner/Spinner.styles.d.ts +9 -8
  229. package/dist/Spinner/Spinner.styles.js +7 -7
  230. package/dist/SplitViewCard/SplitViewCard.styles.d.ts +13 -11
  231. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  232. package/dist/SuperSelect/SuperSelect.components.d.ts +1 -1
  233. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  234. package/dist/SuperSelect/SuperSelect.presets.styles.d.ts +3 -1
  235. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  236. package/dist/SuperSelect/SuperSelect.styles.d.ts +67 -54
  237. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  238. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  239. package/dist/SuperSelect/SuperSelect.types.d.ts +9 -8
  240. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  241. package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
  242. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  243. package/dist/Switch/Switch.styles.d.ts +6 -5
  244. package/dist/Switch/Switch.styles.js +4 -4
  245. package/dist/Table/Table.d.ts +7 -3
  246. package/dist/Table/Table.js.map +1 -1
  247. package/dist/Table/Table.styles.d.ts +69 -45
  248. package/dist/Table/Table.styles.js +28 -28
  249. package/dist/TableShelf/TableShelf.styles.d.ts +6 -5
  250. package/dist/TableShelf/TableShelf.styles.js +5 -5
  251. package/dist/Tabs/Tabs.styles.d.ts +31 -9
  252. package/dist/Tabs/Tabs.styles.js +15 -15
  253. package/dist/Tearsheet/Tearsheet.styles.d.ts +12 -10
  254. package/dist/Tearsheet/Tearsheet.styles.js +6 -6
  255. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  256. package/dist/TextArea/TextArea.js +6 -2
  257. package/dist/TextArea/TextArea.js.map +1 -1
  258. package/dist/TextArea/TextArea.styles.d.ts +7 -1
  259. package/dist/TextArea/TextArea.styles.js +2 -2
  260. package/dist/TextArea/TextArea.styles.js.map +1 -1
  261. package/dist/TextEditor/TextEditor.styles.d.ts +3 -2
  262. package/dist/TextEditorOutput/TextEditorOutput.styles.d.ts +2 -1
  263. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  264. package/dist/Thumbnail/Thumbnail.hooks.d.ts +131 -141
  265. package/dist/Thumbnail/Thumbnail.js +69 -56
  266. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  267. package/dist/Thumbnail/Thumbnail.styles.d.ts +34 -32
  268. package/dist/Thumbnail/Thumbnail.styles.js +78 -79
  269. package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
  270. package/dist/Thumbnail/Thumbnail.types.d.ts +1 -1
  271. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  272. package/dist/Thumbnail/ThumbnailCaption.js +10 -10
  273. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  274. package/dist/ThumbnailGrid/ThumbnailGrid.js +2 -2
  275. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  276. package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +20 -8
  277. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  278. package/dist/TieredSelect/TierSelectionTieredSelect.js +9 -9
  279. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  280. package/dist/TieredSelect/TieredSelect.styles.d.ts +29 -13
  281. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  282. package/dist/TieredSelect/TieredSelect.types.d.ts +1 -1
  283. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  284. package/dist/TieredSelect/TieredSelectMenu.js +10 -10
  285. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  286. package/dist/Tile/Tile.js +1 -1
  287. package/dist/Tile/Tile.js.map +1 -1
  288. package/dist/Tile/Tile.styles.d.ts +13 -11
  289. package/dist/Tile/Tile.styles.js +8 -8
  290. package/dist/Title/Title.styles.d.ts +12 -8
  291. package/dist/Title/Title.styles.js +7 -7
  292. package/dist/Toast/Toast.styles.d.ts +7 -5
  293. package/dist/Toast/Toast.styles.js +3 -3
  294. package/dist/ToggleButton/ToggleButton.styles.d.ts +4 -2
  295. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  296. package/dist/Token/Token.styles.d.ts +9 -5
  297. package/dist/Token/Token.styles.js +3 -3
  298. package/dist/ToolHeader/ToolHeader.d.ts +8 -4
  299. package/dist/ToolHeader/ToolHeader.styles.d.ts +9 -7
  300. package/dist/ToolHeader/ToolHeader.styles.js +8 -8
  301. package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
  302. package/dist/ToolLandingPage/ToolLandingPage.styles.d.ts +5 -3
  303. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  304. package/dist/Tooltip/Tooltip.js +3 -4
  305. package/dist/Tooltip/Tooltip.js.map +1 -1
  306. package/dist/Tooltip/Tooltip.styles.d.ts +3 -2
  307. package/dist/Tooltip/Tooltip.styles.js +3 -3
  308. package/dist/Tooltip/Tooltip.styles.js.map +1 -1
  309. package/dist/Tree/Tree.styles.d.ts +24 -12
  310. package/dist/Tree/Tree.styles.js +9 -9
  311. package/dist/Typeahead/Typeahead.js +1 -1
  312. package/dist/Typeahead/Typeahead.js.map +1 -1
  313. package/dist/Typeahead/Typeahead.styles.d.ts +5 -7
  314. package/dist/Typeahead/Typeahead.styles.js +3 -3
  315. package/dist/Typography/Typography.styles.d.ts +5 -4
  316. package/dist/Typography/Typography.styles.js +1 -1
  317. package/dist/Typography/Typography.styles.js.map +1 -1
  318. package/dist/Typography/Typography.table.story.js +2 -2
  319. package/dist/_hooks/ClickOutside.js +19 -5
  320. package/dist/_hooks/ClickOutside.js.map +1 -1
  321. package/dist/_hooks/I18n.d.ts +44 -9
  322. package/dist/_hooks/I18n.js +63 -28
  323. package/dist/_hooks/I18n.js.map +1 -1
  324. package/dist/_styles/arrows.d.ts +4 -4
  325. package/dist/_styles/borderRadius.d.ts +1 -1
  326. package/dist/_styles/mixins.d.ts +7 -7
  327. package/dist/_styles/shadows.d.ts +1 -1
  328. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  329. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  330. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  331. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  332. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  333. package/dist/_typedoc/Box/Box.types.json +77 -77
  334. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  335. package/dist/_typedoc/Button/Button.types.json +13 -13
  336. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  337. package/dist/_typedoc/Card/Card.types.json +6 -6
  338. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  339. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  340. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  341. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  342. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  343. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  344. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +39 -29
  345. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  346. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  347. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  348. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  349. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  350. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  351. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  352. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  353. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  354. package/dist/_typedoc/Form/Form.types.json +747 -747
  355. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  356. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  357. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  358. package/dist/_typedoc/Input/Input.types.json +2 -2
  359. package/dist/_typedoc/Link/Link.types.json +11 -6
  360. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  361. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  362. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  363. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  364. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  365. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  366. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  367. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  368. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  369. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  370. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  371. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  372. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  373. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  374. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  375. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  376. package/dist/_typedoc/Required/Required.types.json +5 -5
  377. package/dist/_typedoc/Search/Search.types.json +18 -18
  378. package/dist/_typedoc/Section/Section.types.json +15 -15
  379. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  380. package/dist/_typedoc/Select/Select.types.json +60 -60
  381. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  382. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  383. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  384. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  385. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  386. package/dist/_typedoc/Table/Table.types.json +101 -101
  387. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  388. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  389. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  390. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  391. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  392. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  393. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +44 -44
  394. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +30 -30
  395. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  396. package/dist/_typedoc/Title/Title.types.json +3 -3
  397. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  398. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  399. package/dist/_typedoc/Token/Token.types.json +6 -6
  400. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  401. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  402. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  403. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  404. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  405. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  406. package/dist/_typedoc/_utils/types.json +3 -3
  407. package/package.json +90 -91
@@ -1,37 +1,51 @@
1
1
  /// <reference types="react" />
2
+ export declare type SuperSelectStyledTriggerProps = {
3
+ $block?: boolean;
4
+ $disabled?: boolean;
5
+ $error?: boolean;
6
+ $hasClearIcon?: boolean;
7
+ $loading?: boolean;
8
+ $multiple?: boolean;
9
+ $open?: boolean;
10
+ $placeholder?: boolean;
11
+ };
2
12
  export declare const dataQa: {
3
13
  focused: string;
4
14
  hovered: string;
5
15
  };
6
16
  export declare const extendedSelectMenuWidth = 360;
7
- export declare const PillSelectOptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const PillSelectLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").PillProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
9
- export declare const PillSelectLabelWrapper: import("styled-components").StyledComponent<"div", any, {
17
+ export declare const PillSelectOptionWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
+ export declare const PillSelectLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").PillProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
19
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
20
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").PillProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
21
+ export declare const PillSelectLabelWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
22
  disabled?: boolean | undefined;
11
- }, never>;
12
- export declare const StyledCheckboxContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
13
- export declare const StyledCheckmarkContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const StyledWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
15
- export declare const StyledMenu: import("styled-components").StyledComponent<"div", any, {}, never>;
16
- export declare const StyledOptions: import("styled-components").StyledComponent<"div", any, {
23
+ }>> & string;
24
+ export declare const StyledCheckboxContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
25
+ export declare const StyledCheckmarkContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
26
+ export declare const StyledWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
27
+ export declare const StyledMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
+ export declare const StyledOptions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
17
29
  $scrollable?: boolean | undefined;
18
- }, never>;
19
- export declare const StyledItemContent: import("styled-components").StyledComponent<"div", any, {}, never>;
20
- export declare const StyledOptionGroupLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
21
- export declare const StyledItemLabel: import("styled-components").StyledComponent<"div", any, {
30
+ }>> & string;
31
+ export declare const StyledItemContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
32
+ export declare const StyledOptionGroupLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
33
+ export declare const StyledItemLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
22
34
  $draggable?: boolean | undefined;
23
35
  $selectionStyle?: "checkbox" | "highlight" | "checkmark" | undefined;
24
- }, never>;
25
- export declare const StyledDraggableWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
26
- export declare const StyledGrip: import("styled-components").StyledComponent<"div", any, {}, never>;
27
- export declare const StyledFooter: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").BoxProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
28
- export declare const StyledHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
29
- export declare const StyledEmptyMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
30
- export declare const StyledSearchContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
31
- export declare const StyledGroup: import("styled-components").StyledComponent<"div", any, {
36
+ }>> & string;
37
+ export declare const StyledDraggableWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
38
+ export declare const StyledGrip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
39
+ export declare const StyledFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").DivAttributes & import("..").BoxProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
40
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
41
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").BoxProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
42
+ export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
+ export declare const StyledEmptyMessage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
+ export declare const StyledSearchContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
45
+ export declare const StyledGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
32
46
  $clickable?: boolean | undefined;
33
- }, never>;
34
- export declare const StyledItem: import("styled-components").StyledComponent<"div", any, {
47
+ }>> & string;
48
+ export declare const StyledItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
49
  $disabled?: boolean | undefined;
36
50
  $selected?: boolean | undefined;
37
51
  $highlighted?: boolean | undefined;
@@ -40,37 +54,36 @@ export declare const StyledItem: import("styled-components").StyledComponent<"di
40
54
  $emptyMinHeight?: number | undefined;
41
55
  $isDraggingOver?: boolean | undefined;
42
56
  $isDraggingDisabled?: boolean | undefined;
43
- }, never>;
44
- export declare const StyledDroppable: import("styled-components").StyledComponent<"div", any, {}, never>;
45
- export declare const StyledSelectMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
46
- export declare const StyledLabel: import("styled-components").StyledComponent<"div", any, {
57
+ }>> & string;
58
+ export declare const StyledDroppable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
59
+ export declare const StyledSelectMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").DivAttributes & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
60
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
61
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
62
+ export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
47
63
  $hoverable: boolean;
48
- }, never>;
49
- export declare const StyledIndicators: import("styled-components").StyledComponent<"div", any, {}, never>;
50
- export declare const StyledClearIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
51
- export declare const StyledSpinner: import("styled-components").StyledComponent<"div", any, {}, never>;
52
- export declare const StyledArrowContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
53
- export declare const StyledArrow: import("styled-components").StyledComponent<"span", any, {}, never>;
54
- export declare const StyledArrowOutline: import("styled-components").StyledComponent<"polygon", any, {}, never>;
55
- export declare const StyledArrowFill: import("styled-components").StyledComponent<"polygon", any, {}, never>;
56
- export declare const StyledTrigger: import("styled-components").StyledComponent<"div", any, {
57
- $block?: boolean | undefined;
58
- $disabled?: boolean | undefined;
59
- $error?: boolean | undefined;
60
- $hasClearIcon?: boolean | undefined;
61
- $loading?: boolean | undefined;
62
- $multiple?: boolean | undefined;
63
- $open?: boolean | undefined;
64
- $placeholder?: boolean | undefined;
65
- }, never>;
66
- export declare const StyledOverlay: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
67
- export declare const StyledVirtuoso: import("styled-components").StyledComponent<(<ItemData = any, Context = any>(props: import("react-virtuoso").VirtuosoProps<ItemData, Context> & {
64
+ }>> & string;
65
+ export declare const StyledIndicators: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
66
+ export declare const StyledClearIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
67
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
68
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
69
+ export declare const StyledSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
70
+ export declare const StyledArrowContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
71
+ export declare const StyledArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
72
+ export declare const StyledArrowOutline: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGPolygonElement>, never>> & string;
73
+ export declare const StyledArrowFill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGPolygonElement>, never>> & string;
74
+ export declare const StyledTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SuperSelectStyledTriggerProps>> & string;
75
+ export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").DivAttributes & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
76
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
77
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
78
+ export declare const StyledVirtuoso: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-virtuoso").VirtuosoProps<unknown, unknown> & {
79
+ ref?: import("react").Ref<import("react-virtuoso").VirtuosoHandle> | undefined;
80
+ }, never>> & string & Omit<(<ItemData = any, Context = any>(props: import("react-virtuoso").VirtuosoProps<ItemData, Context> & {
68
81
  ref?: import("react").Ref<import("react-virtuoso").VirtuosoHandle> | undefined;
69
- }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>), any, {}, never>;
70
- export declare const StyledEllipses: import("styled-components").StyledComponent<"div", any, {}, never>;
71
- export declare const StyledMultiValueContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
72
- export declare const StyledMultiValue: import("styled-components").StyledComponent<"div", any, {}, never>;
73
- export declare const StyledMultiInputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
74
- export declare const StyledMultiInput: import("styled-components").StyledComponent<"input", any, {
82
+ }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>), keyof import("react").Component<any, {}, any>>;
83
+ export declare const StyledEllipses: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
84
+ export declare const StyledMultiValueContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
85
+ export declare const StyledMultiValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
86
+ export declare const StyledMultiInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
87
+ export declare const StyledMultiInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
75
88
  $isNavigatingTokens?: boolean | undefined;
76
- }, never>;
89
+ }>> & string;
@@ -22,40 +22,40 @@ var styledSelectButtonDefaultWidth = 248;
22
22
  export var extendedSelectMenuWidth = 360;
23
23
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "PillSelectOptionWrapper",
25
- componentId: "core-12_21_2__sc-1uf5708-0"
25
+ componentId: "core-12_23_0__sc-1uf5708-0"
26
26
  })(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
27
27
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
28
28
  displayName: "PillSelectLabel",
29
- componentId: "core-12_21_2__sc-1uf5708-1"
29
+ componentId: "core-12_23_0__sc-1uf5708-1"
30
30
  })(["", ""], getEllipsis);
31
31
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "PillSelectLabelWrapper",
33
- componentId: "core-12_21_2__sc-1uf5708-2"
33
+ componentId: "core-12_23_0__sc-1uf5708-2"
34
34
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
35
35
  var disabled = _ref.disabled;
36
36
  return disabled && css(["pointer-events:none;"]);
37
37
  });
38
38
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledCheckboxContainer",
40
- componentId: "core-12_21_2__sc-1uf5708-3"
40
+ componentId: "core-12_23_0__sc-1uf5708-3"
41
41
  })(["padding-left:", "px;"], spacing.lg);
42
42
  export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  displayName: "StyledCheckmarkContainer",
44
- componentId: "core-12_21_2__sc-1uf5708-4"
44
+ componentId: "core-12_23_0__sc-1uf5708-4"
45
45
  })(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
46
46
 
47
47
  // Do not merge with StyledMenu, needed for max-height working in IE
48
48
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledWrapper",
50
- componentId: "core-12_21_2__sc-1uf5708-5"
50
+ componentId: "core-12_23_0__sc-1uf5708-5"
51
51
  })(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
52
52
  export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledMenu",
54
- componentId: "core-12_21_2__sc-1uf5708-6"
54
+ componentId: "core-12_23_0__sc-1uf5708-6"
55
55
  })(["display:flex;flex-direction:column;outline:0;width:100%;"]);
56
56
  export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledOptions",
58
- componentId: "core-12_21_2__sc-1uf5708-7"
58
+ componentId: "core-12_23_0__sc-1uf5708-7"
59
59
  })(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;overflow:hidden;&:focus{", " margin:-1px;}"], optionMinHeight, function (_ref2) {
60
60
  var _ref2$$scrollable = _ref2.$scrollable,
61
61
  $scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
@@ -63,53 +63,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
63
63
  }, spacing.sm, getFocus());
64
64
  export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledItemContent",
66
- componentId: "core-12_21_2__sc-1uf5708-8"
66
+ componentId: "core-12_23_0__sc-1uf5708-8"
67
67
  })(["display:flex;flex-direction:row;align-items:center;"]);
68
68
  export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
69
69
  displayName: "StyledOptionGroupLabel",
70
- componentId: "core-12_21_2__sc-1uf5708-9"
70
+ componentId: "core-12_23_0__sc-1uf5708-9"
71
71
  })(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
72
72
  export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
73
73
  displayName: "StyledItemLabel",
74
- componentId: "core-12_21_2__sc-1uf5708-10"
74
+ componentId: "core-12_23_0__sc-1uf5708-10"
75
75
  })(["", ""], function (_ref3) {
76
76
  var $draggable = _ref3.$draggable;
77
77
  return css(["padding:", "px ", "px;overflow-wrap:anywhere;"], spacing.xs, $draggable ? 0 : spacing.lg);
78
78
  });
79
79
  export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledDraggableWrapper",
81
- componentId: "core-12_21_2__sc-1uf5708-11"
81
+ componentId: "core-12_23_0__sc-1uf5708-11"
82
82
  })(["display:flex;width:100%;align-items:center;"]);
83
83
  export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
84
84
  displayName: "StyledGrip",
85
- componentId: "core-12_21_2__sc-1uf5708-12"
85
+ componentId: "core-12_23_0__sc-1uf5708-12"
86
86
  })(["padding:0 2px;height:24px;visibility:hidden;"]);
87
87
  export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
88
88
  displayName: "StyledFooter",
89
- componentId: "core-12_21_2__sc-1uf5708-13"
89
+ componentId: "core-12_23_0__sc-1uf5708-13"
90
90
  })(["border-top:1px solid ", ";"], colors.gray85);
91
91
  export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
92
92
  displayName: "StyledHeader",
93
- componentId: "core-12_21_2__sc-1uf5708-14"
93
+ componentId: "core-12_23_0__sc-1uf5708-14"
94
94
  })([""]);
95
95
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledEmptyMessage",
97
- componentId: "core-12_21_2__sc-1uf5708-15"
97
+ componentId: "core-12_23_0__sc-1uf5708-15"
98
98
  })(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
99
99
  export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
100
100
  displayName: "StyledSearchContainer",
101
- componentId: "core-12_21_2__sc-1uf5708-16"
101
+ componentId: "core-12_23_0__sc-1uf5708-16"
102
102
  })(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
103
103
  export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
104
104
  displayName: "StyledGroup",
105
- componentId: "core-12_21_2__sc-1uf5708-17"
105
+ componentId: "core-12_23_0__sc-1uf5708-17"
106
106
  })(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}&&{padding:0;}", "{padding:", "px ", " px;}&:not(:first-child){", "{padding-top:", " px;}}"], getTypographyIntent('body'), colors.gray15, function (_ref4) {
107
107
  var $clickable = _ref4.$clickable;
108
108
  return $clickable ? 'pointer' : 'default';
109
109
  }, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
110
110
  export var StyledItem = /*#__PURE__*/styled.div.withConfig({
111
111
  displayName: "StyledItem",
112
- componentId: "core-12_21_2__sc-1uf5708-18"
112
+ componentId: "core-12_23_0__sc-1uf5708-18"
113
113
  })(["", ";align-items:center;cursor:pointer;list-style-type:none;display:flex;padding:0;", " ", " ", " a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref5) {
114
114
  var $emptyMinHeight = _ref5.$emptyMinHeight;
115
115
  return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
@@ -147,50 +147,50 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
147
147
  });
148
148
  export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
149
149
  displayName: "StyledDroppable",
150
- componentId: "core-12_21_2__sc-1uf5708-19"
150
+ componentId: "core-12_23_0__sc-1uf5708-19"
151
151
  })(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
152
152
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
153
153
  displayName: "StyledSelectMenu",
154
- componentId: "core-12_21_2__sc-1uf5708-20"
154
+ componentId: "core-12_23_0__sc-1uf5708-20"
155
155
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
156
156
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
157
157
  displayName: "StyledLabel",
158
- componentId: "core-12_21_2__sc-1uf5708-21"
158
+ componentId: "core-12_23_0__sc-1uf5708-21"
159
159
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref10) {
160
160
  var $hoverable = _ref10.$hoverable;
161
161
  return $hoverable ? 'initial' : 'none';
162
162
  });
163
163
  export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
164
164
  displayName: "StyledIndicators",
165
- componentId: "core-12_21_2__sc-1uf5708-22"
165
+ componentId: "core-12_23_0__sc-1uf5708-22"
166
166
  })(["align-items:center;align-self:flex-start;display:flex;height:34px;justify-content:flex-end;margin-left:", "px;min-width:40px;width:40px;"], spacing.xs);
167
167
  export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
168
168
  displayName: "StyledClearIcon",
169
- componentId: "core-12_21_2__sc-1uf5708-23"
169
+ componentId: "core-12_23_0__sc-1uf5708-23"
170
170
  })([""]);
171
171
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
172
172
  displayName: "StyledSpinner",
173
- componentId: "core-12_21_2__sc-1uf5708-24"
173
+ componentId: "core-12_23_0__sc-1uf5708-24"
174
174
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
175
175
  export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
176
176
  displayName: "StyledArrowContainer",
177
- componentId: "core-12_21_2__sc-1uf5708-25"
177
+ componentId: "core-12_23_0__sc-1uf5708-25"
178
178
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
179
179
  export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
180
180
  displayName: "StyledArrow",
181
- componentId: "core-12_21_2__sc-1uf5708-26"
181
+ componentId: "core-12_23_0__sc-1uf5708-26"
182
182
  })(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
183
183
  export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
184
184
  displayName: "StyledArrowOutline",
185
- componentId: "core-12_21_2__sc-1uf5708-27"
185
+ componentId: "core-12_23_0__sc-1uf5708-27"
186
186
  })([""]);
187
187
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
188
188
  displayName: "StyledArrowFill",
189
- componentId: "core-12_21_2__sc-1uf5708-28"
189
+ componentId: "core-12_23_0__sc-1uf5708-28"
190
190
  })([""]);
191
191
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
192
192
  displayName: "StyledTrigger",
193
- componentId: "core-12_21_2__sc-1uf5708-29"
193
+ componentId: "core-12_23_0__sc-1uf5708-29"
194
194
  })(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&:focus,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, borderRadius.md, colors.gray15, spacing.md, function (_ref11) {
195
195
  var $block = _ref11.$block;
196
196
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -225,31 +225,31 @@ export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
225
225
  });
226
226
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
227
227
  displayName: "StyledOverlay",
228
- componentId: "core-12_21_2__sc-1uf5708-30"
228
+ componentId: "core-12_23_0__sc-1uf5708-30"
229
229
  })(["display:flex;flex-direction:column;"]);
230
230
  export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
231
231
  displayName: "StyledVirtuoso",
232
- componentId: "core-12_21_2__sc-1uf5708-31"
232
+ componentId: "core-12_23_0__sc-1uf5708-31"
233
233
  })(["flex:1 1 auto;"]);
234
234
  export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
235
235
  displayName: "StyledEllipses",
236
- componentId: "core-12_21_2__sc-1uf5708-32"
236
+ componentId: "core-12_23_0__sc-1uf5708-32"
237
237
  })(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
238
238
  export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
239
239
  displayName: "StyledMultiValueContainer",
240
- componentId: "core-12_21_2__sc-1uf5708-33"
240
+ componentId: "core-12_23_0__sc-1uf5708-33"
241
241
  })(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
242
242
  export var StyledMultiValue = /*#__PURE__*/styled.div.withConfig({
243
243
  displayName: "StyledMultiValue",
244
- componentId: "core-12_21_2__sc-1uf5708-34"
244
+ componentId: "core-12_23_0__sc-1uf5708-34"
245
245
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
246
246
  export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
247
247
  displayName: "StyledMultiInputContainer",
248
- componentId: "core-12_21_2__sc-1uf5708-35"
248
+ componentId: "core-12_23_0__sc-1uf5708-35"
249
249
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
250
250
  export var StyledMultiInput = /*#__PURE__*/styled.input.withConfig({
251
251
  displayName: "StyledMultiInput",
252
- componentId: "core-12_21_2__sc-1uf5708-36"
252
+ componentId: "core-12_23_0__sc-1uf5708-36"
253
253
  })(["background-color:transparent;border-width:0;font-family:inherit;padding:0;height:24px;width:100%;", " ", " &::-ms-clear{display:none;}&:focus{box-shadow:none;outline:none;}&::placeholder{color:", ";}"], getTypographyIntent('body'), function (_ref19) {
254
254
  var $isNavigatingTokens = _ref19.$isNavigatingTokens;
255
255
  return $isNavigatingTokens && css(["color:transparent;"]);
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.styles.js","names":["Virtuoso","styled","css","Box","Button","StyledButton","Card","StyledCheckboxLabel","Pill","StyledCircle","getTypographyIntent","typographyWeights","borderRadius","colors","getEllipsis","getFocus","spacing","dataQa","focused","hovered","optionMinHeight","checkedIconPlaceholderWidth","styledSelectButtonDefaultWidth","extendedSelectMenuWidth","PillSelectOptionWrapper","div","withConfig","displayName","componentId","xs","lg","PillSelectLabel","PillSelectLabelWrapper","_ref","disabled","StyledCheckboxContainer","StyledCheckmarkContainer","blue50","sm","StyledWrapper","StyledMenu","StyledOptions","_ref2","_ref2$$scrollable","$scrollable","StyledItemContent","StyledOptionGroupLabel","md","StyledItemLabel","_ref3","$draggable","StyledDraggableWrapper","StyledGrip","StyledFooter","gray85","StyledHeader","StyledEmptyMessage","gray45","StyledSearchContainer","StyledGroup","gray15","_ref4","$clickable","semibold","StyledItem","_ref5","$emptyMinHeight","_ref6","$isDraggingOver","$highlighted","_ref7","$disabled","$isDraggingDisabled","gray96","_ref8","concat","_ref9","$selected","_ref0","$isDraggable","_ref1","$isDragging","StyledDroppable","StyledSelectMenu","StyledLabel","_ref10","$hoverable","StyledIndicators","StyledClearIcon","StyledSpinner","StyledArrowContainer","StyledArrow","span","StyledArrowOutline","polygon","StyledArrowFill","StyledTrigger","white","gray70","_ref11","$block","_ref12","_ref12$$placeholder","$placeholder","_ref13","gray94","_ref14","$error","red50","_ref15","$hasClearIcon","_ref16","$multiple","_ref17","$open","_ref18","_ref18$$placeholder","StyledOverlay","StyledVirtuoso","StyledEllipses","StyledMultiValueContainer","StyledMultiValue","StyledMultiInputContainer","StyledMultiInput","input","_ref19","$isNavigatingTokens"],"sources":["../../src/SuperSelect/SuperSelect.styles.ts"],"sourcesContent":["import { Virtuoso } from 'react-virtuoso'\nimport styled, { css } from 'styled-components'\nimport { Box } from '../Box/Box'\nimport { Button } from '../Button'\nimport { StyledButton } from '../Button/Button.styles'\nimport { Card } from '../Card/Card'\nimport { StyledCheckboxLabel } from '../Checkbox/Checkbox.styles'\nimport { Pill } from '../Pill/Pill'\nimport { StyledCircle } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const dataQa = {\n focused: 'core-select-focused',\n hovered: 'core-select-hovered',\n}\n\nconst optionMinHeight = 32\n\nconst checkedIconPlaceholderWidth = 32\n\nconst styledSelectButtonDefaultWidth = 248\n\nexport const extendedSelectMenuWidth = 360\n\nexport const PillSelectOptionWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const PillSelectLabel = styled(Pill)`\n ${getEllipsis}\n`\n\nexport const PillSelectLabelWrapper = styled.div<{ disabled?: boolean }>`\n display: flex;\n max-width: 100%;\n pointer-events: auto;\n\n ${({ disabled }) =>\n disabled &&\n css`\n pointer-events: none;\n `}\n`\n\nexport const StyledCheckboxContainer = styled.div`\n padding-left: ${spacing.lg}px;\n`\n\nexport const StyledCheckmarkContainer = styled.div`\n align-items: center;\n color: ${colors.blue50};\n display: inline-flex;\n flex-shrink: 0;\n padding: 0 ${spacing.lg}px 0 ${spacing.sm}px;\n`\n\n// Do not merge with StyledMenu, needed for max-height working in IE\nexport const StyledWrapper = styled.div`\n display: flex;\n max-height: inherit;\n min-width: inherit;\n outline: none;\n width: inherit;\n`\n\nexport const StyledMenu = styled.div`\n display: flex;\n flex-direction: column;\n outline: 0;\n width: 100%;\n`\n\nexport const StyledOptions = styled.div<{ $scrollable?: boolean }>`\n flex-basis: auto;\n flex-grow: 1;\n flex-shrink: 1;\n min-height: ${optionMinHeight}px;\n ${({ $scrollable = true }) => $scrollable && `overflow-y: auto`};\n padding: ${spacing.sm}px 0;\n position: relative;\n overflow: hidden;\n\n &:focus {\n ${getFocus()}\n margin: -1px;\n }\n`\n\nexport const StyledItemContent = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n`\n\nexport const StyledOptionGroupLabel = styled.div`\n padding: ${spacing.md}px 0 ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const StyledItemLabel = styled.div<{\n $draggable?: boolean\n $selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n}>`\n ${({ $draggable }) => {\n return css`\n padding: ${spacing.xs}px ${$draggable ? 0 : spacing.lg}px;\n overflow-wrap: anywhere;\n `\n }}\n`\n\nexport const StyledDraggableWrapper = styled.div`\n display: flex;\n width: 100%;\n align-items: center;\n`\n\nexport const StyledGrip = styled.div`\n padding: 0 2px;\n height: 24px;\n visibility: hidden;\n`\n\nexport const StyledFooter = styled(Box)`\n border-top: 1px solid ${colors.gray85};\n`\n\nexport const StyledHeader = styled.div``\n\nexport const StyledEmptyMessage = styled.div`\n ${getTypographyIntent('body')};\n\n padding: ${spacing.md}px ${spacing.lg}px;\n color: ${colors.gray45};\n`\n\nexport const StyledSearchContainer = styled.div`\n padding: ${spacing.lg}px ${spacing.lg}px ${spacing.sm}px;\n\n ${StyledButton} > * {\n pointer-events: none;\n }\n`\n\nexport const StyledGroup = styled.div<{ $clickable?: boolean }>`\n ${getTypographyIntent('body')}\n\n color: ${colors.gray15};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n font-weight: ${typographyWeights.semibold};\n padding: ${spacing.xs}px ${spacing.lg}px;\n\n &:not(:first-child) {\n padding-top: ${spacing.md + spacing.xs}px;\n }\n\n && {\n padding: 0;\n }\n\n ${StyledOptionGroupLabel} {\n padding: ${spacing.xs}px ${spacing.lg} px;\n }\n\n &:not(:first-child) {\n ${StyledOptionGroupLabel} {\n padding-top: ${spacing.md + spacing.xs} px;\n }\n }\n`\n\nexport const StyledItem = styled.div<{\n $disabled?: boolean\n $selected?: boolean\n $highlighted?: boolean\n $isDraggable?: boolean\n $isDragging?: boolean\n $emptyMinHeight?: number\n $isDraggingOver?: boolean\n $isDraggingDisabled?: boolean\n}>`\n ${getTypographyIntent('body')};\n\n align-items: center;\n cursor: pointer;\n list-style-type: none;\n display: flex;\n padding: 0;\n\n ${({ $emptyMinHeight }) => {\n return css`\n &:empty {\n min-height: ${$emptyMinHeight}px;\n }\n `\n }}\n\n ${({ $isDraggingOver, $highlighted }) => {\n return (\n $isDraggingOver &&\n $highlighted &&\n css`\n background-color: initial;\n `\n )\n }}\n\n ${({ $isDraggingOver, $disabled, $isDraggingDisabled }) => {\n return (\n ($isDraggingOver || $disabled || $isDraggingDisabled) &&\n css`\n &:hover {\n ${StyledGrip} {\n visibility: hidden;\n }\n }\n `\n )\n }}\n\n a {\n // We decided to use a negative margin trick here to allow us to continue\n // to use listNavigation without having to rewrite a bunch of code in js\n color: ${colors.gray15};\n display: block;\n margin: -${spacing.xs}px -${spacing.lg}px;\n padding: ${spacing.xs}px ${spacing.lg}px;\n text-decoration: none;\n\n &:hover {\n color: ${colors.gray15};\n text-decoration: none;\n }\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n\n ${({ $highlighted }) => $highlighted && `background-color: ${colors.gray96};`}\n\n &:hover,\n &:active {\n ${StyledGrip} {\n visibility: visible;\n }\n }\n\n ${StyledCheckboxLabel} {\n color: inherit;\n cursor: pointer;\n }\n\n ${({ $disabled, $selected }) => {\n if ($disabled) {\n return css`\n &,\n ${StyledCheckboxLabel} {\n color: ${colors.gray85};\n cursor: default;\n }\n `\n } else if ($selected) {\n return css`\n color: ${colors.blue50};\n font-weight: 700;\n\n a,\n a:hover {\n color: ${colors.blue50};\n text-decoration: none;\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }\n\n return css`\n color: ${colors.gray15};\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }}\n\n ${({ $isDraggable }) => {\n if ($isDraggable) {\n return css`\n ${StyledCheckboxLabel} {\n cursor: grab;\n\n // The unchecked and checked icons\n &:before,\n &:after {\n cursor: pointer;\n }\n }\n\n &&& {\n padding-left: 0;\n }\n `\n }\n }}\n\n ${({ $isDragging }) => {\n if ($isDragging) {\n return css`\n background-color: ${colors.gray96};\n\n ${StyledGrip} {\n visibility: visible;\n }\n `\n }\n }}\n`\n\nexport const StyledDroppable = styled.div`\n ${StyledGroup}, ${StyledItem} {\n padding-left: 28px;\n }\n`\n\nexport const StyledSelectMenu = styled(Card)`\n display: flex;\n max-height: 40vh;\n max-width: ${styledSelectButtonDefaultWidth}px;\n min-width: inherit;\n`\n\nexport const StyledLabel = styled.div<{ $hoverable: boolean }>`\n ${getEllipsis()}\n flex-grow: 1;\n margin-right: ${spacing.sm}px;\n outline: none;\n pointer-events: ${({ $hoverable }) => ($hoverable ? 'initial' : 'none')};\n user-select: none;\n`\n\nexport const StyledIndicators = styled.div`\n align-items: center;\n align-self: flex-start;\n display: flex;\n height: 34px;\n justify-content: flex-end;\n margin-left: ${spacing.xs}px;\n min-width: 40px;\n width: 40px;\n`\n\nexport const StyledClearIcon = styled(Button)``\n\nexport const StyledSpinner = styled.div`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n line-height: 0;\n`\n\nexport const StyledArrowContainer = styled.div`\n align-items: center;\n display: inline-flex;\n height: 16px;\n justify-content: flex-end;\n margin-left: ${spacing.sm}px;\n width: 8px;\n`\n\nexport const StyledArrow = styled.span`\n display: inline-flex;\n\n svg {\n fill: ${colors.gray45};\n }\n`\n\nexport const StyledArrowOutline = styled.polygon``\n\nexport const StyledArrowFill = styled.polygon``\n\nexport const StyledTrigger = styled.div<{\n $block?: boolean\n $disabled?: boolean\n $error?: boolean\n $hasClearIcon?: boolean\n $loading?: boolean\n $multiple?: boolean\n $open?: boolean\n $placeholder?: boolean\n}>`\n ${getTypographyIntent('body')}\n\n align-items: center;\n background-color: ${colors.white};\n border-color: ${colors.gray70};\n border-radius: ${borderRadius.md}px;\n border-style: solid;\n border-width: 1px;\n color: ${colors.gray15};\n cursor: pointer;\n display: inline-flex;\n height: 36px;\n min-height: 36px;\n outline: none;\n padding: 0 ${spacing.md}px;\n position: relative;\n white-space: nowrap;\n width: ${({ $block }) =>\n $block ? '100%' : `${styledSelectButtonDefaultWidth}px`};\n\n &::placeholder {\n border-color: ${colors.gray45};\n }\n\n &:hover,\n &:active,\n &[data-qa=${dataQa.hovered}] {\n background-color: ${colors.white};\n border-color: ${colors.gray45};\n color: ${colors.gray15};\n }\n\n &:focus,\n &[data-qa=${dataQa.focused}] {\n ${getFocus()}\n\n ${StyledCircle} {\n stroke: ${colors.blue50};\n }\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledLabel} {\n color: ${colors.gray45};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n background-color: ${colors.gray94};\n border-color: ${colors.gray70};\n color: ${colors.gray45};\n cursor: default;\n pointer-events: none;\n\n ${StyledLabel} {\n color: ${colors.gray70};\n }\n\n ${StyledArrow} {\n svg {\n fill: ${colors.gray70};\n }\n }\n `}\n\n ${({ $error, $disabled }) => {\n if ($error && !$disabled) {\n return css`\n &,\n &:hover {\n border-color: ${colors.red50};\n border-color: var(--core-input-error-border-color, ${colors.red50});\n }\n &:hover:focus {\n ${getFocus()}\n }\n `\n }\n }}\n\n ${({ $hasClearIcon }) => css`\n ${StyledClearIcon} {\n opacity: ${$hasClearIcon ? 1 : 0};\n }\n `}\n\n ${({ $multiple }) =>\n $multiple &&\n css`\n height: auto;\n\n &:focus-within {\n ${getFocus()}\n }\n `}\n\n ${({ $open, $hasClearIcon }) =>\n $open &&\n $hasClearIcon &&\n css`\n ${StyledClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $open, $placeholder = false }) =>\n $open &&\n $placeholder &&\n css`\n ${StyledLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n`\n\nexport const StyledOverlay = styled(Card)`\n display: flex;\n flex-direction: column;\n`\n\nexport const StyledVirtuoso = styled(Virtuoso)`\n flex: 1 1 auto;\n`\n\nexport const StyledEllipses = styled.div`\n ${getEllipsis()}\n display: inline-flex;\n\n > div {\n display: inline-flex;\n width: 100%;\n }\n`\n\nexport const StyledMultiValueContainer = styled.div`\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n min-width: 0;\n width: 100%;\n`\n\nexport const StyledMultiValue = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 0 1 auto;\n\n > div {\n max-width: 178px;\n width: 100%;\n }\n`\n\nexport const StyledMultiInputContainer = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 1;\n max-width: 100%;\n min-width: 24px;\n`\n\nexport const StyledMultiInput = styled.input<{\n $isNavigatingTokens?: boolean\n}>`\n background-color: transparent;\n border-width: 0;\n font-family: inherit;\n padding: 0;\n height: 24px;\n width: 100%;\n\n ${getTypographyIntent('body')}\n\n ${({ $isNavigatingTokens }) =>\n $isNavigatingTokens &&\n css`\n color: transparent;\n `}\n\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n box-shadow: none;\n outline: none;\n }\n\n &::placeholder {\n color: ${colors.gray45};\n }\n`\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,mBAA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BAAgB,gBAAGxH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8GAExBZ,OAAO,CAACa,EAAE,CAQ3B;AAED,OAAO,IAAM6F,yBAAyB,gBAAGzH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mGAEjCZ,OAAO,CAACa,EAAE,CAK3B;AAED,OAAO,IAAM8F,gBAAgB,gBAAG1H,MAAM,CAAC2H,KAAK,CAAAlG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gNAUxClB,mBAAmB,CAAC,MAAM,CAAC,EAE3B,UAAAmH,MAAA;EAAA,IAAGC,mBAAmB,GAAAD,MAAA,CAAnBC,mBAAmB;EAAA,OACtBA,mBAAmB,IACnB5H,GAAG,wBAEF;AAAA,GAYQW,MAAM,CAAC4C,MAAM,CAEzB"}
1
+ {"version":3,"file":"SuperSelect.styles.js","names":["Virtuoso","styled","css","Box","Button","StyledButton","Card","StyledCheckboxLabel","Pill","StyledCircle","getTypographyIntent","typographyWeights","borderRadius","colors","getEllipsis","getFocus","spacing","dataQa","focused","hovered","optionMinHeight","checkedIconPlaceholderWidth","styledSelectButtonDefaultWidth","extendedSelectMenuWidth","PillSelectOptionWrapper","div","withConfig","displayName","componentId","xs","lg","PillSelectLabel","PillSelectLabelWrapper","_ref","disabled","StyledCheckboxContainer","StyledCheckmarkContainer","blue50","sm","StyledWrapper","StyledMenu","StyledOptions","_ref2","_ref2$$scrollable","$scrollable","StyledItemContent","StyledOptionGroupLabel","md","StyledItemLabel","_ref3","$draggable","StyledDraggableWrapper","StyledGrip","StyledFooter","gray85","StyledHeader","StyledEmptyMessage","gray45","StyledSearchContainer","StyledGroup","gray15","_ref4","$clickable","semibold","StyledItem","_ref5","$emptyMinHeight","_ref6","$isDraggingOver","$highlighted","_ref7","$disabled","$isDraggingDisabled","gray96","_ref8","concat","_ref9","$selected","_ref0","$isDraggable","_ref1","$isDragging","StyledDroppable","StyledSelectMenu","StyledLabel","_ref10","$hoverable","StyledIndicators","StyledClearIcon","StyledSpinner","StyledArrowContainer","StyledArrow","span","StyledArrowOutline","polygon","StyledArrowFill","StyledTrigger","white","gray70","_ref11","$block","_ref12","_ref12$$placeholder","$placeholder","_ref13","gray94","_ref14","$error","red50","_ref15","$hasClearIcon","_ref16","$multiple","_ref17","$open","_ref18","_ref18$$placeholder","StyledOverlay","StyledVirtuoso","StyledEllipses","StyledMultiValueContainer","StyledMultiValue","StyledMultiInputContainer","StyledMultiInput","input","_ref19","$isNavigatingTokens"],"sources":["../../src/SuperSelect/SuperSelect.styles.ts"],"sourcesContent":["import { Virtuoso } from 'react-virtuoso'\nimport styled, { css } from 'styled-components'\nimport { Box } from '../Box/Box'\nimport { Button } from '../Button'\nimport { StyledButton } from '../Button/Button.styles'\nimport { Card } from '../Card/Card'\nimport { StyledCheckboxLabel } from '../Checkbox/Checkbox.styles'\nimport { Pill } from '../Pill/Pill'\nimport { StyledCircle } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport type SuperSelectStyledTriggerProps = {\n $block?: boolean\n $disabled?: boolean\n $error?: boolean\n $hasClearIcon?: boolean\n $loading?: boolean\n $multiple?: boolean\n $open?: boolean\n $placeholder?: boolean\n}\n\nexport const dataQa = {\n focused: 'core-select-focused',\n hovered: 'core-select-hovered',\n}\n\nconst optionMinHeight = 32\n\nconst checkedIconPlaceholderWidth = 32\n\nconst styledSelectButtonDefaultWidth = 248\n\nexport const extendedSelectMenuWidth = 360\n\nexport const PillSelectOptionWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const PillSelectLabel = styled(Pill)`\n ${getEllipsis}\n`\n\nexport const PillSelectLabelWrapper = styled.div<{ disabled?: boolean }>`\n display: flex;\n max-width: 100%;\n pointer-events: auto;\n\n ${({ disabled }) =>\n disabled &&\n css`\n pointer-events: none;\n `}\n`\n\nexport const StyledCheckboxContainer = styled.div`\n padding-left: ${spacing.lg}px;\n`\n\nexport const StyledCheckmarkContainer = styled.div`\n align-items: center;\n color: ${colors.blue50};\n display: inline-flex;\n flex-shrink: 0;\n padding: 0 ${spacing.lg}px 0 ${spacing.sm}px;\n`\n\n// Do not merge with StyledMenu, needed for max-height working in IE\nexport const StyledWrapper = styled.div`\n display: flex;\n max-height: inherit;\n min-width: inherit;\n outline: none;\n width: inherit;\n`\n\nexport const StyledMenu = styled.div`\n display: flex;\n flex-direction: column;\n outline: 0;\n width: 100%;\n`\n\nexport const StyledOptions = styled.div<{ $scrollable?: boolean }>`\n flex-basis: auto;\n flex-grow: 1;\n flex-shrink: 1;\n min-height: ${optionMinHeight}px;\n ${({ $scrollable = true }) => $scrollable && `overflow-y: auto`};\n padding: ${spacing.sm}px 0;\n position: relative;\n overflow: hidden;\n\n &:focus {\n ${getFocus()}\n margin: -1px;\n }\n`\n\nexport const StyledItemContent = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n`\n\nexport const StyledOptionGroupLabel = styled.div`\n padding: ${spacing.md}px 0 ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const StyledItemLabel = styled.div<{\n $draggable?: boolean\n $selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n}>`\n ${({ $draggable }) => {\n return css`\n padding: ${spacing.xs}px ${$draggable ? 0 : spacing.lg}px;\n overflow-wrap: anywhere;\n `\n }}\n`\n\nexport const StyledDraggableWrapper = styled.div`\n display: flex;\n width: 100%;\n align-items: center;\n`\n\nexport const StyledGrip = styled.div`\n padding: 0 2px;\n height: 24px;\n visibility: hidden;\n`\n\nexport const StyledFooter = styled(Box)`\n border-top: 1px solid ${colors.gray85};\n`\n\nexport const StyledHeader = styled.div``\n\nexport const StyledEmptyMessage = styled.div`\n ${getTypographyIntent('body')};\n\n padding: ${spacing.md}px ${spacing.lg}px;\n color: ${colors.gray45};\n`\n\nexport const StyledSearchContainer = styled.div`\n padding: ${spacing.lg}px ${spacing.lg}px ${spacing.sm}px;\n\n ${StyledButton} > * {\n pointer-events: none;\n }\n`\n\nexport const StyledGroup = styled.div<{ $clickable?: boolean }>`\n ${getTypographyIntent('body')}\n\n color: ${colors.gray15};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n font-weight: ${typographyWeights.semibold};\n padding: ${spacing.xs}px ${spacing.lg}px;\n\n &:not(:first-child) {\n padding-top: ${spacing.md + spacing.xs}px;\n }\n\n && {\n padding: 0;\n }\n\n ${StyledOptionGroupLabel} {\n padding: ${spacing.xs}px ${spacing.lg} px;\n }\n\n &:not(:first-child) {\n ${StyledOptionGroupLabel} {\n padding-top: ${spacing.md + spacing.xs} px;\n }\n }\n`\n\nexport const StyledItem = styled.div<{\n $disabled?: boolean\n $selected?: boolean\n $highlighted?: boolean\n $isDraggable?: boolean\n $isDragging?: boolean\n $emptyMinHeight?: number\n $isDraggingOver?: boolean\n $isDraggingDisabled?: boolean\n}>`\n ${getTypographyIntent('body')};\n\n align-items: center;\n cursor: pointer;\n list-style-type: none;\n display: flex;\n padding: 0;\n\n ${({ $emptyMinHeight }) => {\n return css`\n &:empty {\n min-height: ${$emptyMinHeight}px;\n }\n `\n }}\n\n ${({ $isDraggingOver, $highlighted }) => {\n return (\n $isDraggingOver &&\n $highlighted &&\n css`\n background-color: initial;\n `\n )\n }}\n\n ${({ $isDraggingOver, $disabled, $isDraggingDisabled }) => {\n return (\n ($isDraggingOver || $disabled || $isDraggingDisabled) &&\n css`\n &:hover {\n ${StyledGrip} {\n visibility: hidden;\n }\n }\n `\n )\n }}\n\n a {\n // We decided to use a negative margin trick here to allow us to continue\n // to use listNavigation without having to rewrite a bunch of code in js\n color: ${colors.gray15};\n display: block;\n margin: -${spacing.xs}px -${spacing.lg}px;\n padding: ${spacing.xs}px ${spacing.lg}px;\n text-decoration: none;\n\n &:hover {\n color: ${colors.gray15};\n text-decoration: none;\n }\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n\n ${({ $highlighted }) => $highlighted && `background-color: ${colors.gray96};`}\n\n &:hover,\n &:active {\n ${StyledGrip} {\n visibility: visible;\n }\n }\n\n ${StyledCheckboxLabel} {\n color: inherit;\n cursor: pointer;\n }\n\n ${({ $disabled, $selected }) => {\n if ($disabled) {\n return css`\n &,\n ${StyledCheckboxLabel} {\n color: ${colors.gray85};\n cursor: default;\n }\n `\n } else if ($selected) {\n return css`\n color: ${colors.blue50};\n font-weight: 700;\n\n a,\n a:hover {\n color: ${colors.blue50};\n text-decoration: none;\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }\n\n return css`\n color: ${colors.gray15};\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }}\n\n ${({ $isDraggable }) => {\n if ($isDraggable) {\n return css`\n ${StyledCheckboxLabel} {\n cursor: grab;\n\n // The unchecked and checked icons\n &:before,\n &:after {\n cursor: pointer;\n }\n }\n\n &&& {\n padding-left: 0;\n }\n `\n }\n }}\n\n ${({ $isDragging }) => {\n if ($isDragging) {\n return css`\n background-color: ${colors.gray96};\n\n ${StyledGrip} {\n visibility: visible;\n }\n `\n }\n }}\n`\n\nexport const StyledDroppable = styled.div`\n ${StyledGroup}, ${StyledItem} {\n padding-left: 28px;\n }\n`\n\nexport const StyledSelectMenu = styled(Card)`\n display: flex;\n max-height: 40vh;\n max-width: ${styledSelectButtonDefaultWidth}px;\n min-width: inherit;\n`\n\nexport const StyledLabel = styled.div<{ $hoverable: boolean }>`\n ${getEllipsis()}\n flex-grow: 1;\n margin-right: ${spacing.sm}px;\n outline: none;\n pointer-events: ${({ $hoverable }) => ($hoverable ? 'initial' : 'none')};\n user-select: none;\n`\n\nexport const StyledIndicators = styled.div`\n align-items: center;\n align-self: flex-start;\n display: flex;\n height: 34px;\n justify-content: flex-end;\n margin-left: ${spacing.xs}px;\n min-width: 40px;\n width: 40px;\n`\n\nexport const StyledClearIcon = styled(Button)``\n\nexport const StyledSpinner = styled.div`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n line-height: 0;\n`\n\nexport const StyledArrowContainer = styled.div`\n align-items: center;\n display: inline-flex;\n height: 16px;\n justify-content: flex-end;\n margin-left: ${spacing.sm}px;\n width: 8px;\n`\n\nexport const StyledArrow = styled.span`\n display: inline-flex;\n\n svg {\n fill: ${colors.gray45};\n }\n`\n\nexport const StyledArrowOutline = styled.polygon``\n\nexport const StyledArrowFill = styled.polygon``\n\nexport const StyledTrigger = styled.div<SuperSelectStyledTriggerProps>`\n ${getTypographyIntent('body')}\n\n align-items: center;\n background-color: ${colors.white};\n border-color: ${colors.gray70};\n border-radius: ${borderRadius.md}px;\n border-style: solid;\n border-width: 1px;\n color: ${colors.gray15};\n cursor: pointer;\n display: inline-flex;\n height: 36px;\n min-height: 36px;\n outline: none;\n padding: 0 ${spacing.md}px;\n position: relative;\n white-space: nowrap;\n width: ${({ $block }) =>\n $block ? '100%' : `${styledSelectButtonDefaultWidth}px`};\n\n &::placeholder {\n border-color: ${colors.gray45};\n }\n\n &:hover,\n &:active,\n &[data-qa=${dataQa.hovered}] {\n background-color: ${colors.white};\n border-color: ${colors.gray45};\n color: ${colors.gray15};\n }\n\n &:focus,\n &[data-qa=${dataQa.focused}] {\n ${getFocus()}\n\n ${StyledCircle} {\n stroke: ${colors.blue50};\n }\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledLabel} {\n color: ${colors.gray45};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n background-color: ${colors.gray94};\n border-color: ${colors.gray70};\n color: ${colors.gray45};\n cursor: default;\n pointer-events: none;\n\n ${StyledLabel} {\n color: ${colors.gray70};\n }\n\n ${StyledArrow} {\n svg {\n fill: ${colors.gray70};\n }\n }\n `}\n\n ${({ $error, $disabled }) => {\n if ($error && !$disabled) {\n return css`\n &,\n &:hover {\n border-color: ${colors.red50};\n border-color: var(--core-input-error-border-color, ${colors.red50});\n }\n &:hover:focus {\n ${getFocus()}\n }\n `\n }\n }}\n\n ${({ $hasClearIcon }) => css`\n ${StyledClearIcon} {\n opacity: ${$hasClearIcon ? 1 : 0};\n }\n `}\n\n ${({ $multiple }) =>\n $multiple &&\n css`\n height: auto;\n\n &:focus-within {\n ${getFocus()}\n }\n `}\n\n ${({ $open, $hasClearIcon }) =>\n $open &&\n $hasClearIcon &&\n css`\n ${StyledClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $open, $placeholder = false }) =>\n $open &&\n $placeholder &&\n css`\n ${StyledLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n`\n\nexport const StyledOverlay = styled(Card)`\n display: flex;\n flex-direction: column;\n`\n\nexport const StyledVirtuoso = styled(Virtuoso)`\n flex: 1 1 auto;\n`\n\nexport const StyledEllipses = styled.div`\n ${getEllipsis()}\n display: inline-flex;\n\n > div {\n display: inline-flex;\n width: 100%;\n }\n`\n\nexport const StyledMultiValueContainer = styled.div`\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n min-width: 0;\n width: 100%;\n`\n\nexport const StyledMultiValue = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 0 1 auto;\n\n > div {\n max-width: 178px;\n width: 100%;\n }\n`\n\nexport const StyledMultiInputContainer = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 1;\n max-width: 100%;\n min-width: 24px;\n`\n\nexport const StyledMultiInput = styled.input<{\n $isNavigatingTokens?: boolean\n}>`\n background-color: transparent;\n border-width: 0;\n font-family: inherit;\n padding: 0;\n height: 24px;\n width: 100%;\n\n ${getTypographyIntent('body')}\n\n ${({ $isNavigatingTokens }) =>\n $isNavigatingTokens &&\n css`\n color: transparent;\n `}\n\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n box-shadow: none;\n outline: none;\n }\n\n &::placeholder {\n color: ${colors.gray45};\n }\n`\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,mBAAmB;AACzD,SAASC,OAAO,QAAQ,oBAAoB;AAa5C,OAAO,IAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,qBAAqB;EAC9BC,OAAO,EAAE;AACX,CAAC;AAED,IAAMC,eAAe,GAAG,EAAE;AAE1B,IAAMC,2BAA2B,GAAG,EAAE;AAEtC,IAAMC,8BAA8B,GAAG,GAAG;AAE1C,OAAO,IAAMC,uBAAuB,GAAG,GAAG;AAE1C,OAAO,IAAMC,uBAAuB,gBAAGvB,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6FAIpCZ,OAAO,CAACa,EAAE,EAAMb,OAAO,CAACc,EAAE,CACtC;AAED,OAAO,IAAMC,eAAe,gBAAG9B,MAAM,CAACO,IAAI,CAAC,CAAAkB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACvCd,WAAW,CACd;AAED,OAAO,IAAMkB,sBAAsB,gBAA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AM0F,cAAc,gBAAGrH,MAAM,CAACD,QAAQ,CAAC,CAAA0B,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sBAE7C;AAED,OAAO,IAAM2F,cAAc,gBAAGtH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wEACpCd,WAAW,CAAC,CAAC,CAOhB;AAED,OAAO,IAAM0G,yBAAyB,gBAAGvH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iHAIjCZ,OAAO,CAACa,EAAE,CAI3B;AAED,OAAO,IAAM4F,gBAAgB,gBAAGxH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8GAExBZ,OAAO,CAACa,EAAE,CAQ3B;AAED,OAAO,IAAM6F,yBAAyB,gBAAGzH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mGAEjCZ,OAAO,CAACa,EAAE,CAK3B;AAED,OAAO,IAAM8F,gBAAgB,gBAAG1H,MAAM,CAAC2H,KAAK,CAAAlG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gNAUxClB,mBAAmB,CAAC,MAAM,CAAC,EAE3B,UAAAmH,MAAA;EAAA,IAAGC,mBAAmB,GAAAD,MAAA,CAAnBC,mBAAmB;EAAA,OACtBA,mBAAmB,IACnB5H,GAAG,wBAEF;AAAA,GAYQW,MAAM,CAAC4C,MAAM,CAEzB"}
@@ -18,6 +18,14 @@ export declare type SuperSelectValuePrimitive = boolean | string | number;
18
18
  export declare type SuperSelectValue = SuperSelectValuePrimitive | Array<SuperSelectValuePrimitive> | null;
19
19
  export declare type SuperSelectOption = any;
20
20
  export declare type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts';
21
+ export declare type SuperSelectResult = {
22
+ destination?: {
23
+ index: number;
24
+ } | null;
25
+ source: {
26
+ index: number;
27
+ };
28
+ };
21
29
  export interface SuperSelectPresetProps {
22
30
  filter?: {
23
31
  filterName?: string;
@@ -86,14 +94,7 @@ export interface SuperSelectApi {
86
94
  listContainerHeight: number;
87
95
  listId: string;
88
96
  maxHeight: number;
89
- onDragEnd: (result: {
90
- destination?: {
91
- index: number;
92
- } | null;
93
- source: {
94
- index: number;
95
- };
96
- }) => void;
97
+ onDragEnd: (result: SuperSelectResult) => void;
97
98
  onSelect: (option: SuperSelectOption) => void;
98
99
  open: boolean;
99
100
  options: SuperSelectOption[];
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type { DivAttributes } from '../_utils/types'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n activeIndex?: number | null\n enabled?: boolean\n onChange?: (value: SuperSelectValue) => void\n onNavigate?: (index: number | null) => void\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n activeTokenIndex: number | null\n isEmpty: () => boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n onDragEnd: (result: {\n destination?: { index: number } | null\n source: { index: number }\n }) => void\n onSelect: (option: SuperSelectOption) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n setPointer: any\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps extends DivAttributes {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":""}
1
+ {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type { DivAttributes } from '../_utils/types'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n activeIndex?: number | null\n enabled?: boolean\n onChange?: (value: SuperSelectValue) => void\n onNavigate?: (index: number | null) => void\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n activeTokenIndex: number | null\n isEmpty: () => boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n setPointer: any\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps extends DivAttributes {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":""}