@procore/core-react 11.24.1 → 11.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (733) hide show
  1. package/.eslintignore +4 -0
  2. package/.eslintrc.cjs +54 -0
  3. package/dist/Avatar/Avatar.d.ts +2 -2
  4. package/dist/Avatar/Avatar.js.map +1 -1
  5. package/dist/Avatar/Avatar.styles.d.ts +1 -1
  6. package/dist/Avatar/Avatar.styles.js +5 -5
  7. package/dist/Avatar/Avatar.styles.js.map +1 -1
  8. package/dist/Avatar/Avatar.types.d.ts +4 -4
  9. package/dist/Avatar/Avatar.types.js.map +1 -1
  10. package/dist/AvatarStack/AvatarStack.constants.d.ts +1 -1
  11. package/dist/AvatarStack/AvatarStack.constants.js.map +1 -1
  12. package/dist/AvatarStack/AvatarStack.d.ts +2 -2
  13. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  14. package/dist/AvatarStack/AvatarStack.styles.d.ts +1 -1
  15. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  16. package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
  17. package/dist/Badge/Badge.d.ts +1 -1
  18. package/dist/Badge/Badge.js.map +1 -1
  19. package/dist/Badge/Badge.styles.d.ts +1 -1
  20. package/dist/Badge/Badge.styles.js +2 -2
  21. package/dist/Badge/Badge.styles.js.map +1 -1
  22. package/dist/Badge/Badge.types.d.ts +1 -1
  23. package/dist/Badge/Badge.types.js.map +1 -1
  24. package/dist/Banner/Banner.d.ts +2 -2
  25. package/dist/Banner/Banner.js.map +1 -1
  26. package/dist/Banner/Banner.styles.d.ts +2 -2
  27. package/dist/Banner/Banner.styles.js +10 -10
  28. package/dist/Banner/Banner.styles.js.map +1 -1
  29. package/dist/Banner/Banner.types.d.ts +1 -1
  30. package/dist/Banner/Banner.types.js.map +1 -1
  31. package/dist/Box/Box.d.ts +2 -2
  32. package/dist/Box/Box.js.map +1 -1
  33. package/dist/Box/Box.styles.d.ts +1 -1
  34. package/dist/Box/Box.styles.js +1 -1
  35. package/dist/Box/Box.styles.js.map +1 -1
  36. package/dist/Box/Box.types.d.ts +1 -1
  37. package/dist/Box/Box.types.js.map +1 -1
  38. package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  39. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  40. package/dist/Breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  41. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  42. package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  43. package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
  44. package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
  45. package/dist/Button/Button.d.ts +1 -1
  46. package/dist/Button/Button.js.map +1 -1
  47. package/dist/Button/Button.styles.d.ts +1 -1
  48. package/dist/Button/Button.styles.js +5 -5
  49. package/dist/Button/Button.styles.js.map +1 -1
  50. package/dist/Button/Button.types.d.ts +1 -1
  51. package/dist/Button/Button.types.js.map +1 -1
  52. package/dist/Button/index.d.ts +1 -1
  53. package/dist/Button/index.js.map +1 -1
  54. package/dist/Calendar/Calendar.d.ts +1 -1
  55. package/dist/Calendar/Calendar.js.map +1 -1
  56. package/dist/Calendar/Calendar.styles.js +8 -8
  57. package/dist/Calendar/Calendar.types.d.ts +2 -2
  58. package/dist/Calendar/Calendar.types.js.map +1 -1
  59. package/dist/Card/Card.d.ts +2 -2
  60. package/dist/Card/Card.js.map +1 -1
  61. package/dist/Card/Card.styles.d.ts +1 -1
  62. package/dist/Card/Card.styles.js +1 -1
  63. package/dist/Card/Card.styles.js.map +1 -1
  64. package/dist/Card/Card.types.d.ts +1 -1
  65. package/dist/Card/Card.types.js.map +1 -1
  66. package/dist/Checkbox/Checkbox.d.ts +1 -1
  67. package/dist/Checkbox/Checkbox.js.map +1 -1
  68. package/dist/Checkbox/Checkbox.styles.js +5 -5
  69. package/dist/Checkbox/Checkbox.types.d.ts +2 -2
  70. package/dist/Checkbox/Checkbox.types.js.map +1 -1
  71. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
  72. package/dist/CheckboxGroup/CheckboxGroup.js.map +1 -1
  73. package/dist/CheckboxGroup/CheckboxGroup.types.d.ts +2 -2
  74. package/dist/CheckboxGroup/CheckboxGroup.types.js.map +1 -1
  75. package/dist/ClickOutside/ClickOutside.d.ts +1 -1
  76. package/dist/ClickOutside/ClickOutside.js.map +1 -1
  77. package/dist/ContactItem/ContactItem.d.ts +3 -3
  78. package/dist/ContactItem/ContactItem.js.map +1 -1
  79. package/dist/ContactItem/ContactItem.styles.js +5 -5
  80. package/dist/ContactItem/ContactItem.types.d.ts +2 -2
  81. package/dist/ContactItem/ContactItem.types.js.map +1 -1
  82. package/dist/Content/Content.d.ts +1 -1
  83. package/dist/Content/Content.js.map +1 -1
  84. package/dist/Content/Content.styles.js +2 -2
  85. package/dist/DateInput/DateInput.d.ts +1 -1
  86. package/dist/DateInput/DateInput.js.map +1 -1
  87. package/dist/DateInput/DateInput.styles.js +6 -6
  88. package/dist/DateInput/DateInput.types.d.ts +2 -2
  89. package/dist/DateInput/DateInput.types.js.map +1 -1
  90. package/dist/DateInput/index.js.map +1 -1
  91. package/dist/DateSelect/DateSelect.d.ts +1 -1
  92. package/dist/DateSelect/DateSelect.js.map +1 -1
  93. package/dist/DateSelect/DateSelect.types.d.ts +4 -4
  94. package/dist/DateSelect/DateSelect.types.js.map +1 -1
  95. package/dist/DetailPage/DetailPage.constants.d.ts +2 -2
  96. package/dist/DetailPage/DetailPage.constants.js.map +1 -1
  97. package/dist/DetailPage/DetailPage.d.ts +3 -3
  98. package/dist/DetailPage/DetailPage.js.map +1 -1
  99. package/dist/DetailPage/DetailPage.styles.js +7 -7
  100. package/dist/DetailPage/DetailPage.types.d.ts +3 -3
  101. package/dist/DetailPage/DetailPage.types.js.map +1 -1
  102. package/dist/Dropdown/Dropdown.d.ts +2 -2
  103. package/dist/Dropdown/Dropdown.js.map +1 -1
  104. package/dist/Dropdown/Dropdown.styles.d.ts +1 -1
  105. package/dist/Dropdown/Dropdown.styles.js +3 -3
  106. package/dist/Dropdown/Dropdown.styles.js.map +1 -1
  107. package/dist/Dropdown/Dropdown.types.d.ts +4 -4
  108. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  109. package/dist/DropdownFlyout/DropdownFlyout.d.ts +1 -1
  110. package/dist/DropdownFlyout/DropdownFlyout.helpers.d.ts +1 -1
  111. package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
  112. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  113. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  114. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
  115. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  116. package/dist/DropdownFlyout/index.js.map +1 -1
  117. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.d.ts +3 -3
  118. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js.map +1 -1
  119. package/dist/Dropzone/Dropzone.d.ts +2 -2
  120. package/dist/Dropzone/Dropzone.hooks.d.ts +1 -1
  121. package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
  122. package/dist/Dropzone/Dropzone.js +1 -1
  123. package/dist/Dropzone/Dropzone.js.map +1 -1
  124. package/dist/Dropzone/Dropzone.styles.js +9 -9
  125. package/dist/Dropzone/Dropzone.types.d.ts +4 -3
  126. package/dist/Dropzone/Dropzone.types.js.map +1 -1
  127. package/dist/EmptyState/EmptyState.d.ts +2 -2
  128. package/dist/EmptyState/EmptyState.js.map +1 -1
  129. package/dist/EmptyState/EmptyState.styles.js +6 -6
  130. package/dist/EmptyState/EmptyState.types.d.ts +1 -1
  131. package/dist/EmptyState/EmptyState.types.js.map +1 -1
  132. package/dist/Field/Field.styles.js +3 -3
  133. package/dist/FileList/FileList.d.ts +2 -2
  134. package/dist/FileList/FileList.js.map +1 -1
  135. package/dist/FileList/FileList.styles.js +4 -4
  136. package/dist/FileSelect/FileExplorer/FileExplorer.d.ts +2 -2
  137. package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
  138. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  139. package/dist/FileSelect/FileExplorer/FileExplorer.types.d.ts +2 -2
  140. package/dist/FileSelect/FileExplorer/FileExplorer.types.js.map +1 -1
  141. package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +3 -3
  142. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  143. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.d.ts +1 -1
  144. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  145. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  146. package/dist/FileSelect/FileExplorer/useSidebarNavigation.d.ts +1 -1
  147. package/dist/FileSelect/FileExplorer/useSidebarNavigation.js.map +1 -1
  148. package/dist/FileSelect/FileSelect.d.ts +3 -3
  149. package/dist/FileSelect/FileSelect.js.map +1 -1
  150. package/dist/FileSelect/FileSelect.styles.js +2 -2
  151. package/dist/FileSelect/FileSelect.types.d.ts +6 -6
  152. package/dist/FileSelect/FileSelect.types.js.map +1 -1
  153. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.d.ts +1 -1
  154. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js.map +1 -1
  155. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  156. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.d.ts +2 -2
  157. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.js.map +1 -1
  158. package/dist/FileSelect/FileTokenList/FileToken.types.d.ts +1 -1
  159. package/dist/FileSelect/FileTokenList/FileToken.types.js.map +1 -1
  160. package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +2 -2
  161. package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
  162. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  163. package/dist/FileSelect/GridSource/GridSource.d.ts +2 -2
  164. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  165. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  166. package/dist/FileSelect/GridSource/GridSource.types.d.ts +2 -2
  167. package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
  168. package/dist/FileSelect/LocalSource/LocalSource.d.ts +1 -1
  169. package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
  170. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  171. package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +4 -4
  172. package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
  173. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.d.ts +1 -1
  174. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.js.map +1 -1
  175. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.d.ts +2 -2
  176. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.js.map +1 -1
  177. package/dist/FileSelect/SourceItem/SourceItem.d.ts +1 -1
  178. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  179. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  180. package/dist/FileSelect/ThumbnailList/ThumbnailList.d.ts +1 -1
  181. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  182. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  183. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +1 -1
  184. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
  185. package/dist/FileSelect/TreeSource/TreeSource.d.ts +2 -2
  186. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  187. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  188. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
  189. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  190. package/dist/FileSelect/storyHelpers.d.ts +1 -1
  191. package/dist/FileSelect/storyHelpers.js.map +1 -1
  192. package/dist/FileToken/FileToken.d.ts +2 -2
  193. package/dist/FileToken/FileToken.js.map +1 -1
  194. package/dist/FileToken/FileToken.styles.js +4 -4
  195. package/dist/FileToken/FileToken.types.d.ts +1 -1
  196. package/dist/FileToken/FileToken.types.js.map +1 -1
  197. package/dist/FilterToken/FilterToken.d.ts +2 -2
  198. package/dist/FilterToken/FilterToken.js.map +1 -1
  199. package/dist/FilterToken/FilterToken.styles.js +2 -2
  200. package/dist/FilterToken/index.d.ts +1 -1
  201. package/dist/FilterToken/index.js.map +1 -1
  202. package/dist/Flex/Flex.d.ts +2 -2
  203. package/dist/Flex/Flex.js.map +1 -1
  204. package/dist/Flex/Flex.types.d.ts +2 -2
  205. package/dist/Flex/Flex.types.js.map +1 -1
  206. package/dist/FlexList/FlexList.d.ts +2 -2
  207. package/dist/FlexList/FlexList.js.map +1 -1
  208. package/dist/FlexList/FlexList.styles.d.ts +1 -1
  209. package/dist/FlexList/FlexList.styles.js +1 -1
  210. package/dist/FlexList/FlexList.styles.js.map +1 -1
  211. package/dist/FlexList/FlexList.types.d.ts +2 -2
  212. package/dist/FlexList/FlexList.types.js.map +1 -1
  213. package/dist/Form/Form.d.ts +5 -5
  214. package/dist/Form/Form.js +82 -70
  215. package/dist/Form/Form.js.map +1 -1
  216. package/dist/Form/Form.styles.d.ts +1 -1
  217. package/dist/Form/Form.styles.js +15 -15
  218. package/dist/Form/Form.styles.js.map +1 -1
  219. package/dist/Form/Form.types.d.ts +14 -14
  220. package/dist/Form/Form.types.js.map +1 -1
  221. package/dist/Form/stories/util.d.ts +1 -1
  222. package/dist/Form/stories/util.js.map +1 -1
  223. package/dist/Grid/Grid.constants.d.ts +1 -1
  224. package/dist/Grid/Grid.constants.js.map +1 -1
  225. package/dist/Grid/Grid.d.ts +1 -1
  226. package/dist/Grid/Grid.js.map +1 -1
  227. package/dist/Grid/Grid.styles.d.ts +1 -1
  228. package/dist/Grid/Grid.styles.js +2 -2
  229. package/dist/Grid/Grid.styles.js.map +1 -1
  230. package/dist/Grid/Grid.types.d.ts +2 -2
  231. package/dist/Grid/Grid.types.js.map +1 -1
  232. package/dist/GroupSelect/GroupSelect.d.ts +2 -2
  233. package/dist/GroupSelect/GroupSelect.js.map +1 -1
  234. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  235. package/dist/GroupSelect/GroupSelect.types.d.ts +3 -3
  236. package/dist/GroupSelect/GroupSelect.types.js.map +1 -1
  237. package/dist/Input/Input.d.ts +2 -2
  238. package/dist/Input/Input.js.map +1 -1
  239. package/dist/Input/Input.styles.js +1 -1
  240. package/dist/Input/Input.types.d.ts +1 -1
  241. package/dist/Input/Input.types.js.map +1 -1
  242. package/dist/Link/Link.d.ts +1 -1
  243. package/dist/Link/Link.js.map +1 -1
  244. package/dist/Link/Link.styles.d.ts +1 -1
  245. package/dist/Link/Link.styles.js +1 -1
  246. package/dist/Link/Link.styles.js.map +1 -1
  247. package/dist/Link/Link.types.d.ts +1 -1
  248. package/dist/Link/Link.types.js.map +1 -1
  249. package/dist/ListPage/ListPage.d.ts +2 -2
  250. package/dist/ListPage/ListPage.js.map +1 -1
  251. package/dist/ListPage/ListPage.styles.js +8 -8
  252. package/dist/ListPage/ListPage.types.d.ts +1 -1
  253. package/dist/ListPage/ListPage.types.js.map +1 -1
  254. package/dist/Loader/Loader.d.ts +1 -1
  255. package/dist/Loader/Loader.js.map +1 -1
  256. package/dist/Loader/Loader.styles.js +2 -2
  257. package/dist/Loader/Loader.types.d.ts +1 -1
  258. package/dist/Loader/Loader.types.js.map +1 -1
  259. package/dist/Menu/Menu.d.ts +2 -2
  260. package/dist/Menu/Menu.js.map +1 -1
  261. package/dist/Menu/Menu.types.d.ts +7 -7
  262. package/dist/Menu/Menu.types.js.map +1 -1
  263. package/dist/MenuImperative/MenuImperative.d.ts +4 -4
  264. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  265. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  266. package/dist/MenuImperative/MenuImperative.types.d.ts +4 -4
  267. package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
  268. package/dist/MenuImperative/index.d.ts +1 -1
  269. package/dist/MenuImperative/index.js.map +1 -1
  270. package/dist/MenuImperative/sensors.d.ts +3 -3
  271. package/dist/MenuImperative/sensors.js.map +1 -1
  272. package/dist/Modal/Modal.d.ts +4 -4
  273. package/dist/Modal/Modal.js.map +1 -1
  274. package/dist/Modal/Modal.styles.d.ts +1 -1
  275. package/dist/Modal/Modal.styles.js +13 -13
  276. package/dist/Modal/Modal.styles.js.map +1 -1
  277. package/dist/Modal/Modal.types.d.ts +2 -2
  278. package/dist/Modal/Modal.types.js.map +1 -1
  279. package/dist/MultiSelect/MultiSelect.d.ts +1 -1
  280. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  281. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  282. package/dist/MultiSelect/MultiSelect.types.d.ts +3 -3
  283. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  284. package/dist/NextMenu/NextMenu.d.ts +1 -1
  285. package/dist/NextMenu/NextMenu.js.map +1 -1
  286. package/dist/NextMenu/NextMenu.styles.js +3 -3
  287. package/dist/NextMenu/NextMenu.types.d.ts +3 -3
  288. package/dist/NextMenu/NextMenu.types.js.map +1 -1
  289. package/dist/NextMenu/NextMenuItem.d.ts +1 -1
  290. package/dist/NextMenu/NextMenuItem.js.map +1 -1
  291. package/dist/NextTile/NextTile.d.ts +2 -2
  292. package/dist/NextTile/NextTile.js.map +1 -1
  293. package/dist/NextTile/NextTile.types.d.ts +2 -2
  294. package/dist/NextTile/NextTile.types.js.map +1 -1
  295. package/dist/Notation/Notation.d.ts +2 -2
  296. package/dist/Notation/Notation.js +1 -1
  297. package/dist/Notation/Notation.js.map +1 -1
  298. package/dist/Notation/Notation.types.d.ts +2 -2
  299. package/dist/Notation/Notation.types.js.map +1 -1
  300. package/dist/NumberInput/NumberInput.d.ts +2 -2
  301. package/dist/NumberInput/NumberInput.hooks.d.ts +1 -1
  302. package/dist/NumberInput/NumberInput.hooks.js.map +1 -1
  303. package/dist/NumberInput/NumberInput.js +3 -1
  304. package/dist/NumberInput/NumberInput.js.map +1 -1
  305. package/dist/NumberInput/NumberInput.styles.js +7 -7
  306. package/dist/NumberInput/NumberInput.types.d.ts +2 -2
  307. package/dist/NumberInput/NumberInput.types.js.map +1 -1
  308. package/dist/NumberInput/NumberInput.utils.d.ts +3 -2
  309. package/dist/NumberInput/NumberInput.utils.js.map +1 -1
  310. package/dist/Overlay/Overlay.d.ts +1 -1
  311. package/dist/Overlay/Overlay.js.map +1 -1
  312. package/dist/Overlay/OverlayArrow.d.ts +2 -2
  313. package/dist/Overlay/OverlayArrow.js.map +1 -1
  314. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  315. package/dist/Overlay/useOverlay.d.ts +3 -3
  316. package/dist/Overlay/useOverlay.js.map +1 -1
  317. package/dist/OverlayTrigger/OverlayTrigger.d.ts +2 -2
  318. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  319. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +4 -4
  320. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  321. package/dist/OverlayTrigger/a11yPresets.d.ts +5 -4
  322. package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
  323. package/dist/PageLayout/PageLayout.d.ts +3 -3
  324. package/dist/PageLayout/PageLayout.js.map +1 -1
  325. package/dist/PageLayout/PageLayout.styles.d.ts +1 -1
  326. package/dist/PageLayout/PageLayout.styles.js +13 -13
  327. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  328. package/dist/PageLayout/PageLayout.types.d.ts +1 -1
  329. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  330. package/dist/Pagination/Pagination.d.ts +1 -1
  331. package/dist/Pagination/Pagination.js.map +1 -1
  332. package/dist/Pagination/Pagination.styles.js +5 -5
  333. package/dist/Pagination/Pagination.types.d.ts +2 -2
  334. package/dist/Pagination/Pagination.types.js.map +1 -1
  335. package/dist/Pagination/PaginationSelect.d.ts +1 -1
  336. package/dist/Pagination/PaginationSelect.js.map +1 -1
  337. package/dist/Panel/Panel.d.ts +3 -3
  338. package/dist/Panel/Panel.js.map +1 -1
  339. package/dist/Panel/Panel.styles.js +11 -11
  340. package/dist/Panel/Panel.types.d.ts +3 -3
  341. package/dist/Panel/Panel.types.js.map +1 -1
  342. package/dist/Pill/Pill.colorPalette.d.ts +1 -1
  343. package/dist/Pill/Pill.colorPalette.js.map +1 -1
  344. package/dist/Pill/Pill.d.ts +1 -1
  345. package/dist/Pill/Pill.js.map +1 -1
  346. package/dist/Pill/Pill.styles.d.ts +1 -1
  347. package/dist/Pill/Pill.styles.js +2 -2
  348. package/dist/Pill/Pill.styles.js.map +1 -1
  349. package/dist/PillSelect/PillSelect.d.ts +1 -1
  350. package/dist/PillSelect/PillSelect.js.map +1 -1
  351. package/dist/PillSelect/PillSelect.styles.js +4 -4
  352. package/dist/PillSelect/PillSelect.types.d.ts +2 -2
  353. package/dist/PillSelect/PillSelect.types.js.map +1 -1
  354. package/dist/Popover/Popover.d.ts +2 -2
  355. package/dist/Popover/Popover.js.map +1 -1
  356. package/dist/Popover/Popover.styles.d.ts +1 -1
  357. package/dist/Popover/Popover.styles.js +2 -2
  358. package/dist/Popover/Popover.styles.js.map +1 -1
  359. package/dist/Popover/Popover.types.d.ts +5 -5
  360. package/dist/Popover/Popover.types.js.map +1 -1
  361. package/dist/Portal/Portal.d.ts +1 -1
  362. package/dist/Portal/Portal.js.map +1 -1
  363. package/dist/Portal/Portal.styles.js +1 -1
  364. package/dist/Portal/Portal.types.d.ts +1 -1
  365. package/dist/Portal/Portal.types.js.map +1 -1
  366. package/dist/ProgressBar/ProgressBar.d.ts +1 -1
  367. package/dist/ProgressBar/ProgressBar.js.map +1 -1
  368. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  369. package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
  370. package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
  371. package/dist/RadioButton/RadioButton.d.ts +1 -1
  372. package/dist/RadioButton/RadioButton.js.map +1 -1
  373. package/dist/RadioButton/RadioButton.styles.js +3 -3
  374. package/dist/RadioButton/RadioButton.types.d.ts +1 -1
  375. package/dist/RadioButton/RadioButton.types.js.map +1 -1
  376. package/dist/Required/Required.d.ts +1 -1
  377. package/dist/Required/Required.js.map +1 -1
  378. package/dist/Required/Required.styles.js +3 -3
  379. package/dist/Required/Required.types.d.ts +1 -1
  380. package/dist/Required/Required.types.js.map +1 -1
  381. package/dist/Search/Search.d.ts +1 -1
  382. package/dist/Search/Search.hooks.d.ts +1 -1
  383. package/dist/Search/Search.hooks.js.map +1 -1
  384. package/dist/Search/Search.js +1 -2
  385. package/dist/Search/Search.js.map +1 -1
  386. package/dist/Search/Search.styles.js +5 -5
  387. package/dist/Search/Search.types.d.ts +2 -2
  388. package/dist/Search/Search.types.js.map +1 -1
  389. package/dist/Section/Section.d.ts +2 -2
  390. package/dist/Section/Section.js.map +1 -1
  391. package/dist/Section/Section.styles.js +6 -6
  392. package/dist/Section/Section.types.d.ts +2 -2
  393. package/dist/Section/Section.types.js.map +1 -1
  394. package/dist/SegmentedController/SegmentedController.d.ts +1 -1
  395. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  396. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  397. package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
  398. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  399. package/dist/Select/Select.d.ts +2 -2
  400. package/dist/Select/Select.js.map +1 -1
  401. package/dist/Select/Select.styles.js +7 -7
  402. package/dist/Select/Select.types.d.ts +4 -4
  403. package/dist/Select/Select.types.js.map +1 -1
  404. package/dist/Select/index.d.ts +1 -1
  405. package/dist/Select/index.js.map +1 -1
  406. package/dist/Semantic/Semantic.d.ts +1 -1
  407. package/dist/Semantic/Semantic.js.map +1 -1
  408. package/dist/Semantic/Semantic.styles.d.ts +1 -1
  409. package/dist/Semantic/Semantic.styles.js +8 -8
  410. package/dist/Semantic/Semantic.styles.js.map +1 -1
  411. package/dist/Semantic/Semantic.types.d.ts +1 -1
  412. package/dist/Semantic/Semantic.types.js.map +1 -1
  413. package/dist/Sidebar/Sidebar.d.ts +1 -1
  414. package/dist/Sidebar/Sidebar.js.map +1 -1
  415. package/dist/Sidebar/Sidebar.styles.js +7 -7
  416. package/dist/Slider/Slider.d.ts +1 -1
  417. package/dist/Slider/Slider.js.map +1 -1
  418. package/dist/Slider/Slider.styles.js +5 -5
  419. package/dist/Slider/Slider.types.d.ts +1 -1
  420. package/dist/Slider/Slider.types.js.map +1 -1
  421. package/dist/Spinner/Spinner.d.ts +1 -1
  422. package/dist/Spinner/Spinner.js.map +1 -1
  423. package/dist/Spinner/Spinner.styles.d.ts +2 -2
  424. package/dist/Spinner/Spinner.styles.js +7 -7
  425. package/dist/Spinner/Spinner.styles.js.map +1 -1
  426. package/dist/Spinner/Spinner.types.d.ts +2 -2
  427. package/dist/Spinner/Spinner.types.js.map +1 -1
  428. package/dist/SuperSelect/SuperSelect.components.d.ts +2 -2
  429. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  430. package/dist/SuperSelect/SuperSelect.d.ts +1 -1
  431. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  432. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  433. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  434. package/dist/SuperSelect/SuperSelect.types.d.ts +5 -5
  435. package/dist/SuperSelect/SuperSelect.types.js +1 -1
  436. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  437. package/dist/SuperSelect/SuperSelect.utils.d.ts +1 -1
  438. package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
  439. package/dist/SuperSelect/index.d.ts +3 -3
  440. package/dist/SuperSelect/index.js +2 -2
  441. package/dist/SuperSelect/index.js.map +1 -1
  442. package/dist/SuperSelect/presets/contactsPreset.d.ts +1 -1
  443. package/dist/SuperSelect/presets/contactsPreset.js.map +1 -1
  444. package/dist/SuperSelect/presets/filterPreset.d.ts +1 -1
  445. package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
  446. package/dist/SuperSelect/presets/index.d.ts +1 -1
  447. package/dist/SuperSelect/presets/index.js.map +1 -1
  448. package/dist/SuperSelect/presets/pillPreset.d.ts +1 -1
  449. package/dist/SuperSelect/presets/pillPreset.js.map +1 -1
  450. package/dist/SuperSelect/useSuperSelect.d.ts +2 -2
  451. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  452. package/dist/Switch/Switch.d.ts +2 -2
  453. package/dist/Switch/Switch.js.map +1 -1
  454. package/dist/Switch/Switch.styles.js +4 -4
  455. package/dist/Switch/Switch.types.d.ts +1 -1
  456. package/dist/Switch/Switch.types.js.map +1 -1
  457. package/dist/Table/Table.d.ts +3 -3
  458. package/dist/Table/Table.js +4 -4
  459. package/dist/Table/Table.js.map +1 -1
  460. package/dist/Table/Table.styles.d.ts +1 -1
  461. package/dist/Table/Table.styles.js +28 -28
  462. package/dist/Table/Table.styles.js.map +1 -1
  463. package/dist/Table/Table.types.d.ts +5 -5
  464. package/dist/Table/Table.types.js.map +1 -1
  465. package/dist/TableShelf/TableShelf.d.ts +1 -1
  466. package/dist/TableShelf/TableShelf.js.map +1 -1
  467. package/dist/TableShelf/TableShelf.styles.js +5 -5
  468. package/dist/Tabs/Tabs.d.ts +2 -2
  469. package/dist/Tabs/Tabs.js.map +1 -1
  470. package/dist/Tabs/Tabs.styles.js +8 -8
  471. package/dist/Tabs/Tabs.types.d.ts +4 -4
  472. package/dist/Tabs/Tabs.types.js.map +1 -1
  473. package/dist/Tearsheet/Tearsheet.constants.d.ts +1 -1
  474. package/dist/Tearsheet/Tearsheet.constants.js.map +1 -1
  475. package/dist/Tearsheet/Tearsheet.d.ts +1 -1
  476. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  477. package/dist/Tearsheet/Tearsheet.styles.d.ts +1 -1
  478. package/dist/Tearsheet/Tearsheet.styles.js +6 -6
  479. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  480. package/dist/Tearsheet/Tearsheet.types.d.ts +1 -1
  481. package/dist/Tearsheet/Tearsheet.types.js.map +1 -1
  482. package/dist/Tearsheet/Tearsheet.util.d.ts +1 -1
  483. package/dist/Tearsheet/Tearsheet.util.js.map +1 -1
  484. package/dist/TextArea/TextArea.d.ts +2 -2
  485. package/dist/TextArea/TextArea.js.map +1 -1
  486. package/dist/TextArea/TextArea.styles.d.ts +1 -1
  487. package/dist/TextArea/TextArea.styles.js +1 -1
  488. package/dist/TextArea/TextArea.styles.js.map +1 -1
  489. package/dist/TextArea/TextArea.types.d.ts +1 -1
  490. package/dist/TextArea/TextArea.types.js.map +1 -1
  491. package/dist/TextEditor/TextEditor.d.ts +1 -1
  492. package/dist/TextEditor/TextEditor.js.map +1 -1
  493. package/dist/TextEditor/TextEditor.types.d.ts +3 -3
  494. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  495. package/dist/TextEditorOutput/TextEditorOutput.d.ts +2 -2
  496. package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
  497. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  498. package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +2 -2
  499. package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
  500. package/dist/Thumbnail/Thumbnail.d.ts +1 -1
  501. package/dist/Thumbnail/Thumbnail.hooks.d.ts +3 -3
  502. package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
  503. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  504. package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
  505. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  506. package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
  507. package/dist/Thumbnail/Thumbnail.types.d.ts +5 -4
  508. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  509. package/dist/Thumbnail/Thumbnail.utils.d.ts +1 -1
  510. package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
  511. package/dist/Thumbnail/ThumbnailCaption.d.ts +1 -1
  512. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  513. package/dist/Thumbnail/ThumbnailPreview.d.ts +1 -1
  514. package/dist/Thumbnail/ThumbnailPreview.js.map +1 -1
  515. package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +2 -2
  516. package/dist/ThumbnailGrid/ThumbnailGrid.js +1 -1
  517. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  518. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +9 -9
  519. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js.map +1 -1
  520. package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +1 -1
  521. package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
  522. package/dist/TieredDropdown/TieredDropdown.helpers.d.ts +1 -1
  523. package/dist/TieredDropdown/TieredDropdown.helpers.js.map +1 -1
  524. package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
  525. package/dist/TieredDropdown/TieredDropdown.types.d.ts +3 -3
  526. package/dist/TieredDropdown/TieredDropdown.types.js.map +1 -1
  527. package/dist/TieredSelect/LeafSelectionTieredSelect.d.ts +1 -1
  528. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  529. package/dist/TieredSelect/TierSelectionTieredSelect.d.ts +1 -1
  530. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  531. package/dist/TieredSelect/TieredSelect.d.ts +2 -2
  532. package/dist/TieredSelect/TieredSelect.js.map +1 -1
  533. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  534. package/dist/TieredSelect/TieredSelect.types.d.ts +3 -3
  535. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  536. package/dist/TieredSelect/TieredSelectMenu.d.ts +1 -1
  537. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  538. package/dist/Tile/Tile.d.ts +2 -2
  539. package/dist/Tile/Tile.js.map +1 -1
  540. package/dist/Tile/Tile.styles.d.ts +1 -1
  541. package/dist/Tile/Tile.styles.js +8 -8
  542. package/dist/Tile/Tile.styles.js.map +1 -1
  543. package/dist/Tile/Tile.types.d.ts +2 -2
  544. package/dist/Tile/Tile.types.js.map +1 -1
  545. package/dist/Title/Title.d.ts +2 -2
  546. package/dist/Title/Title.js.map +1 -1
  547. package/dist/Title/Title.styles.js +7 -7
  548. package/dist/Title/Title.types.d.ts +1 -1
  549. package/dist/Title/Title.types.js.map +1 -1
  550. package/dist/Toast/Toast.d.ts +2 -2
  551. package/dist/Toast/Toast.js.map +1 -1
  552. package/dist/Toast/Toast.styles.d.ts +1 -1
  553. package/dist/Toast/Toast.styles.js +3 -3
  554. package/dist/Toast/Toast.styles.js.map +1 -1
  555. package/dist/Toast/Toast.types.d.ts +1 -1
  556. package/dist/Toast/Toast.types.js.map +1 -1
  557. package/dist/ToggleButton/ToggleButton.d.ts +1 -1
  558. package/dist/ToggleButton/ToggleButton.js.map +1 -1
  559. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  560. package/dist/ToggleButton/ToggleButton.types.d.ts +2 -2
  561. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  562. package/dist/Token/Token.d.ts +2 -2
  563. package/dist/Token/Token.js.map +1 -1
  564. package/dist/Token/Token.styles.js +3 -3
  565. package/dist/ToolHeader/ActionIcon.d.ts +1 -1
  566. package/dist/ToolHeader/ActionIcon.js.map +1 -1
  567. package/dist/ToolHeader/ActionIcon.types.d.ts +2 -2
  568. package/dist/ToolHeader/ActionIcon.types.js.map +1 -1
  569. package/dist/ToolHeader/ToolHeader.d.ts +2 -2
  570. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  571. package/dist/ToolHeader/ToolHeader.styles.d.ts +1 -1
  572. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  573. package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
  574. package/dist/ToolHeader/ToolHeader.types.d.ts +2 -2
  575. package/dist/ToolHeader/ToolHeader.types.js.map +1 -1
  576. package/dist/Tooltip/Tooltip.d.ts +2 -2
  577. package/dist/Tooltip/Tooltip.js.map +1 -1
  578. package/dist/Tooltip/Tooltip.styles.js +2 -2
  579. package/dist/Tooltip/Tooltip.types.d.ts +3 -3
  580. package/dist/Tooltip/Tooltip.types.js.map +1 -1
  581. package/dist/Tree/Tree.d.ts +1 -1
  582. package/dist/Tree/Tree.hooks.d.ts +1 -1
  583. package/dist/Tree/Tree.hooks.js.map +1 -1
  584. package/dist/Tree/Tree.js.map +1 -1
  585. package/dist/Tree/Tree.styles.js +9 -9
  586. package/dist/Tree/Tree.types.d.ts +6 -6
  587. package/dist/Tree/Tree.types.js.map +1 -1
  588. package/dist/Typeahead/Typeahead.d.ts +1 -1
  589. package/dist/Typeahead/Typeahead.js.map +1 -1
  590. package/dist/Typeahead/Typeahead.styles.js +3 -3
  591. package/dist/Typography/Typography.d.ts +2 -2
  592. package/dist/Typography/Typography.js.map +1 -1
  593. package/dist/Typography/Typography.styles.d.ts +2 -2
  594. package/dist/Typography/Typography.styles.js +1 -1
  595. package/dist/Typography/Typography.styles.js.map +1 -1
  596. package/dist/Typography/Typography.table.story.js +2 -2
  597. package/dist/Typography/Typography.types.d.ts +2 -2
  598. package/dist/Typography/Typography.types.js.map +1 -1
  599. package/dist/Typography/index.d.ts +1 -1
  600. package/dist/Typography/index.js.map +1 -1
  601. package/dist/_hooks/Anchor.d.ts +3 -2
  602. package/dist/_hooks/Anchor.js.map +1 -1
  603. package/dist/_hooks/BoundingRect.d.ts +1 -1
  604. package/dist/_hooks/BoundingRect.js.map +1 -1
  605. package/dist/_hooks/ClickOutside.d.ts +1 -1
  606. package/dist/_hooks/ClickOutside.js.map +1 -1
  607. package/dist/_hooks/DateTime/DateTime.d.ts +1 -1
  608. package/dist/_hooks/DateTime/DateTime.js.map +1 -1
  609. package/dist/_hooks/DelayedCallback.d.ts +1 -1
  610. package/dist/_hooks/DelayedCallback.js.map +1 -1
  611. package/dist/_hooks/DelayedToggle.d.ts +2 -2
  612. package/dist/_hooks/DelayedToggle.js.map +1 -1
  613. package/dist/_hooks/Event.d.ts +1 -1
  614. package/dist/_hooks/Event.js.map +1 -1
  615. package/dist/_hooks/Hotkey.d.ts +1 -1
  616. package/dist/_hooks/Hotkey.js.map +1 -1
  617. package/dist/_hooks/I18n.d.ts +1 -1
  618. package/dist/_hooks/I18n.js.map +1 -1
  619. package/dist/_hooks/OverflowObserver/OverflowObserver.d.ts +1 -1
  620. package/dist/_hooks/OverflowObserver/OverflowObserver.js.map +1 -1
  621. package/dist/_hooks/Resize.d.ts +1 -1
  622. package/dist/_hooks/Resize.js.map +1 -1
  623. package/dist/_hooks/Scroll.d.ts +1 -1
  624. package/dist/_hooks/Scroll.js.map +1 -1
  625. package/dist/_hooks/Trigger.d.ts +1 -1
  626. package/dist/_hooks/Trigger.js.map +1 -1
  627. package/dist/_hooks/useFileUploader.d.ts +1 -1
  628. package/dist/_hooks/useFileUploader.js.map +1 -1
  629. package/dist/_styles/arrows.d.ts +1 -1
  630. package/dist/_styles/arrows.js.map +1 -1
  631. package/dist/_styles/mixins.d.ts +1 -1
  632. package/dist/_styles/mixins.js.map +1 -1
  633. package/dist/_styles/shadows.d.ts +1 -1
  634. package/dist/_styles/shadows.js.map +1 -1
  635. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  636. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  637. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  638. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  639. package/dist/_typedoc/Box/Box.types.json +68 -68
  640. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  641. package/dist/_typedoc/Button/Button.types.json +11 -11
  642. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  643. package/dist/_typedoc/Card/Card.types.json +6 -6
  644. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  645. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  646. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  647. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  648. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  649. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  650. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  651. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  652. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  653. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  654. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  655. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  656. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  657. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  658. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  659. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  660. package/dist/_typedoc/Form/Form.types.json +698 -698
  661. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  662. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  663. package/dist/_typedoc/Input/Input.types.json +2 -2
  664. package/dist/_typedoc/Link/Link.types.json +4 -4
  665. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  666. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  667. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  668. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  669. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  670. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  671. package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
  672. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +30 -30
  673. package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
  674. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  675. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  676. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  677. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  678. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  679. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  680. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  681. package/dist/_typedoc/Required/Required.types.json +5 -5
  682. package/dist/_typedoc/Search/Search.types.json +18 -18
  683. package/dist/_typedoc/Section/Section.types.json +14 -14
  684. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  685. package/dist/_typedoc/Select/Select.types.json +55 -55
  686. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  687. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  688. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  689. package/dist/_typedoc/Table/Table.types.json +96 -96
  690. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  691. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  692. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  693. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  694. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  695. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  696. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  697. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  698. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  699. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  700. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  701. package/dist/_typedoc/Token/Token.types.json +4 -4
  702. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  703. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  704. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  705. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  706. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  707. package/dist/_typedoc/_utils/types.json +3 -3
  708. package/dist/_utils/CalendarHelpers.d.ts +1 -1
  709. package/dist/_utils/CalendarHelpers.js +1 -1
  710. package/dist/_utils/CalendarHelpers.js.map +1 -1
  711. package/dist/_utils/TinyMCE.d.ts +2 -2
  712. package/dist/_utils/TinyMCE.js.map +1 -1
  713. package/dist/_utils/dateTime.js.map +1 -1
  714. package/dist/_utils/getAnchorPosition.d.ts +2 -2
  715. package/dist/_utils/getAnchorPosition.js.map +1 -1
  716. package/dist/_utils/isReactElement.d.ts +1 -1
  717. package/dist/_utils/isReactElement.js.map +1 -1
  718. package/dist/_utils/mergeRefs.d.ts +1 -1
  719. package/dist/_utils/mergeRefs.js.map +1 -1
  720. package/dist/_utils/placement.d.ts +1 -1
  721. package/dist/_utils/placement.js.map +1 -1
  722. package/dist/_utils/propsTypedoc.d.ts +12 -12
  723. package/dist/_utils/propsTypedoc.js +1 -12
  724. package/dist/_utils/propsTypedoc.js.map +1 -1
  725. package/dist/_utils/slotify.d.ts +1 -1
  726. package/dist/_utils/slotify.js.map +1 -1
  727. package/dist/_utils/triggerListeners.d.ts +2 -2
  728. package/dist/_utils/triggerListeners.js.map +1 -1
  729. package/dist/_utils/types.d.ts +1 -1
  730. package/dist/_utils/types.js.map +1 -1
  731. package/package.json +2 -2
  732. package/.eslintrc.json +0 -47
  733. package/dist/Link/Link.coverage.stories.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.js","names":["File","Folder","React","areEqual","FixedSizeList","Spinner","Tooltip","useI18nContext","useIntersectionObserver","useResizeObserver","useTimer","useVisibility","parseFilename","mergeRefs","useTree","StyledChevron","StyledChevronContainer","StyledFilenameCaption","StyledIconContainer","StyledTree","StyledTreeRowContainer","StyledTreeRowContent","StyledTreeRowWrapper","spacing","rootSpacing","defaultRowHeight","rowRightPadding","scrollbarWidth","getPadding","level","intersectionThresholds","Array","from","length","map","_","index","tooltipDelay","UNSAFE_treeRootNodeId","defaultIsExpandable","node","defaultGetType","defaultIsSelectable","type","defaultGetParentId","parentId","defaultGetLabel","name","noop","isRootNode","rootValues","undefined","includes","Tree","forwardRef","_ref","ref","options","_ref$expanded","expanded","_ref$selected","selected","_ref$selectionLimit","selectionLimit","Infinity","getRoot_","getRoot","getChildren_","getChildren","getIconBase","getIcon","_ref$getLabel","getLabel","_ref$getParentId","getParentId","getParentId_","_ref$getType","getType","_ref$isExpandable","isExpandable","_ref$isSelectable","isSelectable","_ref$multiple","multiple","_ref$onSelect","onSelect","_ref$onCollapse","onCollapse","_ref$onExpand","onExpand","Promise","resolve","rowRendererBase","rowRenderer","_ref$maxVisibleNodes","maxVisibleNodes","visibleHeight","_ref$autoExpandParent","autoExpandParent","innerElementType","outerElementType","onKeyDown","children","props","_objectWithoutProperties","_excluded","rowHeight","wrapperRef","useRef","listRef","listInnerRef","listOuterRefRef","_React$useState","useState","_React$useState2","_slicedToArray","contentMaxWidth","setContentMaxWidth","useMemo","defaultGetRoot","useCallback","nodes","filter","rootNodes","roots","isArray","useEffect","console","warn","_React$useState3","_React$useState4","isTreeFocused","setIsTreeFocused","_React$useState5","width","height","_React$useState6","containerSize","setContainerSize","handleContainerResize","entries","_ref2","target","clientHeight","clientWidth","setResizeObserverTarget","defaultGetChildren","childNode","id","_useTree","isExpanded","isSelected","isLoading","highlightedNode","isNodeHighlighted","isHighlighted","highlight","handleSelection","handleExpansion","_setExpanded","setExpanded","_setSelected","setSelected","isFileLimitReached","listNavigation","Set","useImperativeHandle","rootEl","current","toggleSelected","toggleExpanded","defaultGetIcon","isFolder","createElement","handleAccessibility","e","key","preventDefault","increment","decrement","_listRef$current","scrollToItem","defaultRowRenderer","TreeRow","_listInnerRef$current","rowContentSizes","childNodes","forEach","child","rowContent","querySelector","_dataset$padding","leftPadding","dataset","padding","push","scrollWidth","parseInt","maxSizeRowContent","Math","max","apply","itemData","treeContainer","error","_extends","tabIndex","onFocus","onBlur","className","min","innerRef","outerRef","itemCount","itemSize","TreeNode","memo","_ref3","_ref3$data","data","_excluded2","style","_React$useState7","_React$useState8","isMouseOver","setMouseOver","timer","_useVisibility","shouldShowTooltip","isVisible","showTooltip","show","hideTooltip","hide","setTimer","onMouseEnter","onMouseLeave","cancel","_objectSpread","_ref4","_excluded3","expanderRef","nodeType","rowLabel","onClick","event","_expanderRef$current","contains","onMouseDown","focus","TreeRowContainer","TreeRowChevron","TreeRowIcon","icon","TreeRowTooltip","fileName","TreeRowName","value","IconContainer","_ref5","_excluded4","$isSelected","_ref6","$isExpanded","_ref7","marginLeft","marginRight","size","_ref8","getSelectionLimitMessage","count","getUnsupportedFileTypeMessage","_parseFilename","extension","isFilename","concat","fileType","toUpperCase","_ref9","isFocused","I18n","rowRef","isUserInteracting","isTooltipVisible","isFile","_React$useState9","_React$useState10","isCropped","setCropped","registerRowEl","entry","rootBounds","left","boundingClientRect","root","rootMargin","threshold","selectionLimitMessage","unsupportedFileTypeMessage","message","trigger","overlay","t","placement","_ref10","_excluded5","paddingLeft"],"sources":["../../src/Tree/Tree.tsx"],"sourcesContent":["import { File, Folder } from '@procore/core-icons/dist'\nimport type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { areEqual, FixedSizeList } from 'react-window'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Tooltip } from '../Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useIntersectionObserver } from '../_hooks/IntersectionObserver'\nimport { useResizeObserver } from '../_hooks/ResizeObserver'\nimport { useTimer } from '../_hooks/Timer'\nimport { useVisibility } from '../_hooks/Visibility'\nimport { parseFilename } from '../_utils/filename'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { useTree } from './Tree.hooks'\nimport {\n StyledChevron,\n StyledChevronContainer,\n StyledFilenameCaption,\n StyledIconContainer,\n StyledTree,\n StyledTreeRowContainer,\n StyledTreeRowContent,\n StyledTreeRowWrapper,\n} from './Tree.styles'\nimport {\n CustomDataType,\n DefaultNode,\n IconContainerProps,\n Node,\n TreeNodeId,\n TreeNodeProps,\n TreeProps,\n TreeRef,\n TreeRowContainerProps,\n TreeRowProps,\n TreeRowTooltipProps,\n} from './Tree.types'\n\nconst spacing = 32\nconst rootSpacing = 24\nconst defaultRowHeight = 36\n\n// Selected nodes have a bold text, and browsers occasionally miscalculate scrollWidth by one pixel down.\n// That situations might cause an issue when we get a second horizontal scrollbar.\n// This padding serves as compensation to prevent the described issue.\nconst rowRightPadding = 12\n// For most of browsers it usually varies between 12px and 20px.\n// To avoid tricky cross-browser calculations of scrollbar width. The maximum width is used.\nconst scrollbarWidth = 20\n\nfunction getPadding(level: number) {\n return rootSpacing + level * spacing\n}\n\nconst intersectionThresholds = Array.from({ length: 101 }).map(\n (_, index) => index / 100\n)\n\nconst tooltipDelay = 300\n\n// TODO refactor this to not be upper snake case\nexport const UNSAFE_treeRootNodeId = 'ROOT_ID'\n\nconst defaultIsExpandable: NonNullable<TreeProps['isExpandable']> = (\n node: DefaultNode\n) => defaultGetType(node) === 'branch'\nconst defaultIsSelectable: NonNullable<TreeProps['isSelectable']> = (\n node: DefaultNode\n) => node.type === 'leaf'\nconst defaultGetType: NonNullable<TreeProps['getType']> = (node: DefaultNode) =>\n node.type\nconst defaultGetParentId: NonNullable<TreeProps['getParentId']> = (\n node: DefaultNode\n) => node.parentId\nconst defaultGetLabel: NonNullable<TreeProps['getLabel']> = (\n node: DefaultNode\n) => node.name\nfunction noop() {}\n\nexport function isRootNode(parentId: TreeNodeId): boolean {\n const rootValues = [UNSAFE_treeRootNodeId, null, undefined] as TreeNodeId[]\n return rootValues.includes(parentId)\n}\n\n/**\n\n The tree allows users to navigate between folder / file directories,\n and optionally select those files.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-tree--demo)\n\n @see [Design Guidelines](https://design.procore.com/tree)\n\n */\nexport const Tree = React.forwardRef(\n <T extends Node = Node, P extends CustomDataType<T> = Array<T>>(\n {\n options,\n expanded = [],\n selected = [],\n selectionLimit = Infinity,\n getRoot: getRoot_,\n getChildren: getChildren_,\n getIcon: getIconBase,\n getLabel = defaultGetLabel,\n getParentId: getParentId_ = defaultGetParentId,\n getType = defaultGetType,\n isExpandable = defaultIsExpandable,\n isSelectable = defaultIsSelectable,\n multiple = true,\n onSelect = noop,\n onCollapse = noop,\n onExpand = () => Promise.resolve(),\n rowRenderer: rowRendererBase,\n maxVisibleNodes = Infinity,\n visibleHeight,\n autoExpandParent = true,\n innerElementType,\n outerElementType,\n onKeyDown,\n children,\n ...props\n }: TreeProps<T, P>,\n ref: React.Ref<TreeRef<T>>\n ) => {\n const rowHeight = defaultRowHeight\n const wrapperRef = React.useRef<HTMLDivElement | null>(null)\n const listRef = React.useRef<FixedSizeList>(null)\n const listInnerRef = React.useRef<HTMLDivElement>(null)\n const listOuterRefRef = React.useRef<HTMLDivElement>(null)\n const [contentMaxWidth, setContentMaxWidth] = React.useState(0)\n\n const getParentId = React.useMemo(() => getParentId_, [])\n\n const defaultGetRoot = React.useCallback(\n (nodes: P): T | T[] =>\n nodes.filter((node: T) => {\n return isRootNode(getParentId(node))\n }),\n [getParentId]\n )\n\n const getRoot = React.useMemo(\n () => getRoot_ || defaultGetRoot,\n [defaultGetRoot]\n )\n\n const rootNodes = React.useMemo(() => {\n const roots = getRoot(options)\n return Array.isArray(roots) ? roots : [roots]\n }, [getRoot, options])\n\n React.useEffect(() => {\n if (!rootNodes.length) {\n console.warn(\n 'Tree must have at least one root node. Look up `Tree#getParentId` for details.'\n )\n }\n }, [rootNodes])\n\n const [isTreeFocused, setIsTreeFocused] = React.useState(false)\n const [containerSize, setContainerSize] = React.useState({\n width: 0,\n height: 0,\n })\n\n const handleContainerResize = React.useCallback(\n (entries: ResizeObserverEntry[]) => {\n if (entries[0]) {\n const { clientHeight: height, clientWidth: width } = entries[0]\n .target as HTMLElement\n setContainerSize({ width, height })\n }\n },\n [setContainerSize]\n )\n\n const setResizeObserverTarget = useResizeObserver(handleContainerResize)\n\n const defaultGetChildren = React.useCallback(\n (node: T) =>\n Array.isArray(options)\n ? options.filter((childNode: T) => getParentId(childNode) === node.id)\n : ([] as T[]),\n [getParentId, options]\n )\n\n const getChildren = getChildren_ || defaultGetChildren\n\n const {\n nodes,\n isExpanded,\n isSelected,\n isLoading,\n highlightedNode,\n isHighlighted: isNodeHighlighted,\n highlight,\n handleSelection,\n handleExpansion,\n setExpanded: _setExpanded,\n setSelected: _setSelected,\n isFileLimitReached,\n listNavigation,\n } = useTree<T>({\n rootNodes,\n expanded,\n selected,\n selectionLimit,\n multiple,\n autoExpandParent,\n onSelect,\n onCollapse,\n onExpand,\n getChildren,\n getParentId,\n })\n\n const setSelected = React.useCallback(\n (selected: T | T[]) => {\n const nodes = Array.isArray(selected) ? selected : [selected]\n\n _setSelected(new Set(nodes.map((node) => node.id)))\n },\n [_setSelected]\n )\n\n const setExpanded = React.useCallback(\n (expanded: T | T[]) => {\n const nodes = Array.isArray(expanded) ? expanded : [expanded]\n\n _setExpanded(new Set(nodes.map((node) => node.id)))\n },\n [_setExpanded]\n )\n\n React.useImperativeHandle(ref, () => ({\n rootEl: wrapperRef.current,\n setSelected,\n setExpanded,\n toggleSelected: (node: T) => handleSelection(node),\n toggleExpanded: (node: T) => handleExpansion(node),\n }))\n\n const defaultGetIcon = React.useCallback(\n (node: T): React.ReactNode => {\n const isFolder = getType(node) === 'branch'\n return isFolder ? <Folder /> : <File />\n },\n [getType]\n )\n\n const getIcon = getIconBase || defaultGetIcon\n\n const isHighlighted = React.useCallback(\n (node: T) => isTreeFocused && isNodeHighlighted(node),\n [isNodeHighlighted, isTreeFocused]\n )\n\n const handleAccessibility = (e: React.KeyboardEvent<HTMLDivElement>) => {\n onKeyDown && onKeyDown(e)\n const { key } = e\n\n switch (key) {\n case 'Enter':\n e.preventDefault()\n isSelectable(highlightedNode) && handleSelection(highlightedNode)\n break\n case 'Space Bar':\n case ' ':\n e.preventDefault()\n isExpandable(highlightedNode) && handleExpansion(highlightedNode)\n break\n case 'ArrowDown':\n case 'Down':\n e.preventDefault()\n listNavigation.increment()\n break\n case 'ArrowUp':\n case 'Up':\n e.preventDefault()\n listNavigation.decrement()\n break\n }\n }\n\n React.useEffect(() => {\n if (isTreeFocused) {\n listRef.current?.scrollToItem(listNavigation.index)\n }\n }, [isTreeFocused, listNavigation.index])\n\n const defaultRowRenderer = React.useCallback(\n (props: TreeRowProps) => <TreeRow {...props} />,\n []\n )\n\n React.useEffect(() => {\n const rowContentSizes: number[] = []\n\n const childNodes = Array.from(listInnerRef.current?.childNodes || [])\n childNodes.forEach((child) => {\n const rowContent = (child as HTMLElement).querySelector(\n '[data-row-content]'\n )\n\n if (rowContent) {\n const leftPadding = (child as HTMLElement).dataset.padding ?? '0'\n rowContentSizes.push(\n rowContent.scrollWidth + parseInt(leftPadding, 10) + rowRightPadding\n )\n }\n })\n\n const maxSizeRowContent = Math.max(...rowContentSizes) + scrollbarWidth\n setContentMaxWidth(maxSizeRowContent)\n })\n\n const rowRenderer = rowRendererBase || defaultRowRenderer\n\n const itemData = React.useMemo(\n () => ({\n nodes,\n getIcon,\n getLabel,\n getType,\n isExpandable,\n isSelectable,\n isExpanded,\n isSelected,\n isLoading,\n highlight,\n isHighlighted,\n handleSelection,\n handleExpansion,\n rowRenderer,\n isFileLimitReached,\n selectionLimit,\n isTreeFocused,\n treeContainer: wrapperRef.current as HTMLDivElement,\n }),\n [\n getIcon,\n getLabel,\n getType,\n handleExpansion,\n handleSelection,\n highlight,\n isExpandable,\n isExpanded,\n isFileLimitReached,\n isHighlighted,\n isLoading,\n isSelectable,\n isSelected,\n isTreeFocused,\n nodes,\n rowRenderer,\n selectionLimit,\n ]\n )\n\n if (!rootNodes) {\n console.error('Tree must have a valid root node')\n return null\n }\n\n return (\n <StyledTree\n {...props}\n ref={mergeRefs(wrapperRef, setResizeObserverTarget)}\n tabIndex={0}\n onFocus={() => setIsTreeFocused(true)}\n onBlur={() => setIsTreeFocused(false)}\n onKeyDown={handleAccessibility}\n >\n <FixedSizeList\n className=\"size-list\"\n ref={listRef}\n height={\n visibleHeight ||\n Math.min(nodes.length * rowHeight, rowHeight * maxVisibleNodes)\n }\n innerRef={listInnerRef}\n outerRef={listOuterRefRef}\n itemCount={nodes.length}\n itemSize={rowHeight}\n innerElementType={innerElementType}\n outerElementType={outerElementType}\n itemData={itemData}\n width={Math.max(contentMaxWidth, containerSize.width)}\n >\n {TreeNode}\n </FixedSizeList>\n </StyledTree>\n )\n }\n)\n\nconst TreeNode: React.FC<TreeNodeProps> = React.memo(\n ({\n data: { nodes, rowRenderer, highlight, isTreeFocused, ...props },\n index,\n style,\n }) => {\n const node = nodes[index]\n\n const isHighlighted = props.isHighlighted(node)\n const [isMouseOver, setMouseOver] = React.useState(false)\n\n const timer = useTimer({})\n const {\n isVisible: shouldShowTooltip,\n show: showTooltip,\n hide: hideTooltip,\n } = useVisibility({})\n\n React.useEffect(() => {\n if (isHighlighted && !shouldShowTooltip) {\n timer.setTimer(showTooltip, tooltipDelay)\n }\n\n return () => {\n if (isTreeFocused && !isHighlighted && shouldShowTooltip) {\n hideTooltip()\n }\n }\n })\n\n const onMouseEnter = () => {\n setMouseOver(true)\n if (!shouldShowTooltip) {\n timer.setTimer(showTooltip, tooltipDelay)\n }\n highlight(node)\n }\n\n const onMouseLeave = () => {\n setMouseOver(false)\n timer.cancel()\n hideTooltip()\n }\n\n return (\n <StyledTreeRowWrapper\n tabIndex={-1}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n style={style}\n data-padding={getPadding(node.level)}\n >\n {rowRenderer({\n node,\n shouldShowTooltip,\n isMouseOver,\n ...props,\n })}\n </StyledTreeRowWrapper>\n )\n },\n areEqual\n)\n\nconst TreeRow: React.FC<TreeRowProps> = ({\n node,\n getIcon,\n getLabel,\n handleExpansion,\n handleSelection,\n selectionLimit,\n isFileLimitReached,\n shouldShowTooltip,\n isMouseOver,\n treeContainer,\n ...props\n}) => {\n const expanderRef = React.useRef<HTMLDivElement>(null)\n const isSelected = props.isSelected(node)\n const isSelectable = props.isSelectable(node)\n const isExpandable = props.isExpandable(node)\n const isExpanded = props.isExpanded(node)\n const isLoading = props.isLoading(node)\n const isHighlighted = props.isHighlighted(node)\n const nodeType = props.getType(node)\n const rowLabel = getLabel(node)\n\n const onClick = React.useCallback(\n (event: React.MouseEvent) => {\n if (isSelectable && isExpandable) {\n // @ts-ignore\n expanderRef?.current?.contains(event.target)\n ? handleExpansion(node)\n : handleSelection(node)\n } else if (isSelectable) {\n handleSelection(node)\n } else if (isExpandable) {\n handleExpansion(node)\n }\n },\n [handleExpansion, handleSelection, isExpandable, isSelectable, node]\n )\n\n const onMouseDown = React.useCallback(\n (e: React.MouseEvent) => {\n e.preventDefault()\n treeContainer.focus()\n },\n [treeContainer]\n )\n\n return (\n <TreeRowContainer\n level={node.level}\n onClick={onClick}\n onMouseDown={onMouseDown}\n isSelected={isSelected}\n isSelectable={isSelectable}\n isExpandable={isExpandable}\n isHighlighted={isHighlighted}\n isFileLimitReached={isFileLimitReached}\n data-qa=\"core-tree-row-container\"\n >\n {\n // WARNING!\n // Be aware that this data attribute is used for calculations, changing this data attribute will break its operability.\n }\n <StyledTreeRowContent data-row-content>\n <TreeRowChevron\n ref={expanderRef}\n isExpandable={isExpandable}\n isExpanded={isExpanded}\n />\n <TreeRowIcon\n isLoading={isLoading}\n isSelected={isSelected}\n icon={getIcon(node)}\n />\n <TreeRowTooltip\n isSelected={isSelected}\n isSelectable={isSelectable}\n isHighlighted={isHighlighted}\n selectionLimit={selectionLimit}\n isFileLimitReached={isFileLimitReached}\n shouldShowTooltip={shouldShowTooltip}\n isMouseOver={isMouseOver}\n fileName={rowLabel}\n nodeType={nodeType}\n treeContainer={treeContainer}\n >\n <TreeRowName value={rowLabel} />\n </TreeRowTooltip>\n </StyledTreeRowContent>\n </TreeRowContainer>\n )\n}\n\nconst IconContainer: React.FC<IconContainerProps> = ({\n children,\n isSelected,\n ...props\n}) => (\n <StyledIconContainer $isSelected={isSelected} {...props}>\n {children}\n </StyledIconContainer>\n)\n\nconst TreeRowChevron = React.forwardRef<\n HTMLDivElement,\n {\n isExpanded: boolean\n isExpandable: boolean\n }\n>(({ isExpanded, isExpandable }, ref) => {\n return (\n <StyledChevronContainer ref={ref}>\n {isExpandable ? <StyledChevron $isExpanded={isExpanded} /> : null}\n </StyledChevronContainer>\n )\n})\n\nconst TreeRowIcon: React.FC<{\n isSelected: boolean\n isLoading: boolean\n icon: React.ReactNode\n}> = ({ isSelected, isLoading, icon }) => (\n <IconContainer isSelected={isSelected} marginLeft=\"sm\" marginRight=\"sm\">\n {isLoading ? <Spinner size=\"sm\" /> : icon}\n </IconContainer>\n)\n\nconst TreeRowName: React.FC<{ value: string }> = ({ value }) => (\n <StyledFilenameCaption>{value}</StyledFilenameCaption>\n)\n\nconst getSelectionLimitMessage = (selectionLimit: number) => ({\n key: 'selectionLimit',\n options: {\n count: selectionLimit,\n },\n})\n\nconst getUnsupportedFileTypeMessage = (fileName: string) => {\n const { extension, isFilename } = parseFilename(fileName)\n const key = isFilename ? 'specific' : 'unspecific'\n\n return {\n key: `unsupportedFileType.${key}`,\n options: {\n fileType: `.${extension.toUpperCase()}`,\n },\n }\n}\n\nconst TreeRowTooltip: FunctionComponent<\n PropsWithChildren<TreeRowTooltipProps>\n> = ({\n children,\n isHighlighted: isFocused,\n isFileLimitReached,\n isSelectable,\n isSelected,\n nodeType,\n selectionLimit,\n shouldShowTooltip,\n isMouseOver,\n fileName,\n treeContainer,\n}) => {\n const I18n = useI18nContext()\n const rowRef = React.useRef<HTMLDivElement>(null)\n const isUserInteracting = isFocused || isMouseOver\n const isTooltipVisible = isUserInteracting && shouldShowTooltip && !isSelected\n const isFile = nodeType === 'leaf'\n const [isCropped, setCropped] = React.useState(false)\n\n const registerRowEl = useIntersectionObserver(\n (entries) => {\n entries.forEach((entry) => {\n if (\n entry.rootBounds &&\n entry.rootBounds.left - entry.boundingClientRect.left >= 0\n ) {\n setCropped(true)\n return\n }\n setCropped(false)\n })\n },\n {\n root: treeContainer,\n rootMargin: '0px',\n threshold: intersectionThresholds,\n }\n )\n\n const selectionLimitMessage = getSelectionLimitMessage(selectionLimit)\n const unsupportedFileTypeMessage = getUnsupportedFileTypeMessage(fileName)\n\n const message = isSelectable\n ? isFileLimitReached && selectionLimitMessage\n : isFile && unsupportedFileTypeMessage\n\n const trigger = isTooltipVisible && !isCropped && message ? 'always' : 'none'\n\n return (\n <Tooltip\n trigger={trigger}\n overlay={\n message ? I18n.t(`core.tree.${message.key}`, message.options) : null\n }\n placement=\"top-left\"\n >\n <div ref={mergeRefs(rowRef, registerRowEl)}>{children}</div>\n </Tooltip>\n )\n}\n\nconst TreeRowContainer: React.FC<TreeRowContainerProps> = ({\n children,\n isHighlighted,\n isSelected,\n isSelectable,\n isExpandable,\n isFileLimitReached,\n level,\n ...props\n}) => {\n return (\n <StyledTreeRowContainer\n isSelectable={\n (isSelectable &&\n ((isFileLimitReached && isSelected) || !isFileLimitReached)) ||\n isExpandable\n }\n isHighlighted={isHighlighted}\n isSelected={isSelected}\n style={{ paddingLeft: getPadding(level) }}\n {...props}\n >\n {children}\n </StyledTreeRowContainer>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAASA,IAAI,EAAEC,MAAM,QAAQ,0BAA0B;AAEvD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,aAAa,QAAQ,cAAc;AACtD,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,aAAa,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A,CAALnR,KAAK;IACF0E,KAAK,GAAAC,wBAAA,CAAAwM,MAAA,EAAAC,UAAA;EAER,oBACE/S,KAAA,CAAA2K,aAAA,CAACzJ,sBAAsB,EAAAyL,QAAA;IACrB5H,YAAY,EACTA,YAAY,KACTkF,kBAAkB,IAAIZ,UAAU,IAAK,CAACY,kBAAkB,CAAC,IAC7DpF,YACD;IACD4E,aAAa,EAAEA,aAAc;IAC7BJ,UAAU,EAAEA,UAAW;IACvBsE,KAAK,EAAE;MAAEqF,WAAW,EAAEtR,UAAU,CAACC,KAAK;IAAE;EAAE,GACtC0E,KAAK,GAERD,QACqB,CAAC;AAE7B,CAAC"}
1
+ {"version":3,"file":"Tree.js","names":["File","Folder","React","areEqual","FixedSizeList","Spinner","Tooltip","useI18nContext","useIntersectionObserver","useResizeObserver","useTimer","useVisibility","parseFilename","mergeRefs","useTree","StyledChevron","StyledChevronContainer","StyledFilenameCaption","StyledIconContainer","StyledTree","StyledTreeRowContainer","StyledTreeRowContent","StyledTreeRowWrapper","spacing","rootSpacing","defaultRowHeight","rowRightPadding","scrollbarWidth","getPadding","level","intersectionThresholds","Array","from","length","map","_","index","tooltipDelay","UNSAFE_treeRootNodeId","defaultIsExpandable","node","defaultGetType","defaultIsSelectable","type","defaultGetParentId","parentId","defaultGetLabel","name","noop","isRootNode","rootValues","undefined","includes","Tree","forwardRef","_ref","ref","options","_ref$expanded","expanded","_ref$selected","selected","_ref$selectionLimit","selectionLimit","Infinity","getRoot_","getRoot","getChildren_","getChildren","getIconBase","getIcon","_ref$getLabel","getLabel","_ref$getParentId","getParentId","getParentId_","_ref$getType","getType","_ref$isExpandable","isExpandable","_ref$isSelectable","isSelectable","_ref$multiple","multiple","_ref$onSelect","onSelect","_ref$onCollapse","onCollapse","_ref$onExpand","onExpand","Promise","resolve","rowRendererBase","rowRenderer","_ref$maxVisibleNodes","maxVisibleNodes","visibleHeight","_ref$autoExpandParent","autoExpandParent","innerElementType","outerElementType","onKeyDown","children","props","_objectWithoutProperties","_excluded","rowHeight","wrapperRef","useRef","listRef","listInnerRef","listOuterRefRef","_React$useState","useState","_React$useState2","_slicedToArray","contentMaxWidth","setContentMaxWidth","useMemo","defaultGetRoot","useCallback","nodes","filter","rootNodes","roots","isArray","useEffect","console","warn","_React$useState3","_React$useState4","isTreeFocused","setIsTreeFocused","_React$useState5","width","height","_React$useState6","containerSize","setContainerSize","handleContainerResize","entries","_ref2","target","clientHeight","clientWidth","setResizeObserverTarget","defaultGetChildren","childNode","id","_useTree","isExpanded","isSelected","isLoading","highlightedNode","isNodeHighlighted","isHighlighted","highlight","handleSelection","handleExpansion","_setExpanded","setExpanded","_setSelected","setSelected","isFileLimitReached","listNavigation","Set","useImperativeHandle","rootEl","current","toggleSelected","toggleExpanded","defaultGetIcon","isFolder","createElement","handleAccessibility","e","key","preventDefault","increment","decrement","_listRef$current","scrollToItem","defaultRowRenderer","TreeRow","_listInnerRef$current","rowContentSizes","childNodes","forEach","child","rowContent","querySelector","_dataset$padding","leftPadding","dataset","padding","push","scrollWidth","parseInt","maxSizeRowContent","Math","max","apply","itemData","treeContainer","error","_extends","tabIndex","onFocus","onBlur","className","min","innerRef","outerRef","itemCount","itemSize","TreeNode","memo","_ref3","_ref3$data","data","_excluded2","style","_React$useState7","_React$useState8","isMouseOver","setMouseOver","timer","_useVisibility","shouldShowTooltip","isVisible","showTooltip","show","hideTooltip","hide","setTimer","onMouseEnter","onMouseLeave","cancel","_objectSpread","_ref4","_excluded3","expanderRef","nodeType","rowLabel","onClick","event","_expanderRef$current","contains","onMouseDown","focus","TreeRowContainer","TreeRowChevron","TreeRowIcon","icon","TreeRowTooltip","fileName","TreeRowName","value","IconContainer","_ref5","_excluded4","$isSelected","_ref6","$isExpanded","_ref7","marginLeft","marginRight","size","_ref8","getSelectionLimitMessage","count","getUnsupportedFileTypeMessage","_parseFilename","extension","isFilename","concat","fileType","toUpperCase","_ref9","isFocused","I18n","rowRef","isUserInteracting","isTooltipVisible","isFile","_React$useState9","_React$useState10","isCropped","setCropped","registerRowEl","entry","rootBounds","left","boundingClientRect","root","rootMargin","threshold","selectionLimitMessage","unsupportedFileTypeMessage","message","trigger","overlay","t","placement","_ref10","_excluded5","paddingLeft"],"sources":["../../src/Tree/Tree.tsx"],"sourcesContent":["import { File, Folder } from '@procore/core-icons/dist'\nimport type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { areEqual, FixedSizeList } from 'react-window'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Tooltip } from '../Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useIntersectionObserver } from '../_hooks/IntersectionObserver'\nimport { useResizeObserver } from '../_hooks/ResizeObserver'\nimport { useTimer } from '../_hooks/Timer'\nimport { useVisibility } from '../_hooks/Visibility'\nimport { parseFilename } from '../_utils/filename'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { useTree } from './Tree.hooks'\nimport {\n StyledChevron,\n StyledChevronContainer,\n StyledFilenameCaption,\n StyledIconContainer,\n StyledTree,\n StyledTreeRowContainer,\n StyledTreeRowContent,\n StyledTreeRowWrapper,\n} from './Tree.styles'\nimport type {\n CustomDataType,\n DefaultNode,\n IconContainerProps,\n Node,\n TreeNodeId,\n TreeNodeProps,\n TreeProps,\n TreeRef,\n TreeRowContainerProps,\n TreeRowProps,\n TreeRowTooltipProps,\n} from './Tree.types'\n\nconst spacing = 32\nconst rootSpacing = 24\nconst defaultRowHeight = 36\n\n// Selected nodes have a bold text, and browsers occasionally miscalculate scrollWidth by one pixel down.\n// That situations might cause an issue when we get a second horizontal scrollbar.\n// This padding serves as compensation to prevent the described issue.\nconst rowRightPadding = 12\n// For most of browsers it usually varies between 12px and 20px.\n// To avoid tricky cross-browser calculations of scrollbar width. The maximum width is used.\nconst scrollbarWidth = 20\n\nfunction getPadding(level: number) {\n return rootSpacing + level * spacing\n}\n\nconst intersectionThresholds = Array.from({ length: 101 }).map(\n (_, index) => index / 100\n)\n\nconst tooltipDelay = 300\n\n// TODO refactor this to not be upper snake case\nexport const UNSAFE_treeRootNodeId = 'ROOT_ID'\n\nconst defaultIsExpandable: NonNullable<TreeProps['isExpandable']> = (\n node: DefaultNode\n) => defaultGetType(node) === 'branch'\nconst defaultIsSelectable: NonNullable<TreeProps['isSelectable']> = (\n node: DefaultNode\n) => node.type === 'leaf'\nconst defaultGetType: NonNullable<TreeProps['getType']> = (node: DefaultNode) =>\n node.type\nconst defaultGetParentId: NonNullable<TreeProps['getParentId']> = (\n node: DefaultNode\n) => node.parentId\nconst defaultGetLabel: NonNullable<TreeProps['getLabel']> = (\n node: DefaultNode\n) => node.name\nfunction noop() {}\n\nexport function isRootNode(parentId: TreeNodeId): boolean {\n const rootValues = [UNSAFE_treeRootNodeId, null, undefined] as TreeNodeId[]\n return rootValues.includes(parentId)\n}\n\n/**\n\n The tree allows users to navigate between folder / file directories,\n and optionally select those files.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-tree--demo)\n\n @see [Design Guidelines](https://design.procore.com/tree)\n\n */\nexport const Tree = React.forwardRef(\n <T extends Node = Node, P extends CustomDataType<T> = Array<T>>(\n {\n options,\n expanded = [],\n selected = [],\n selectionLimit = Infinity,\n getRoot: getRoot_,\n getChildren: getChildren_,\n getIcon: getIconBase,\n getLabel = defaultGetLabel,\n getParentId: getParentId_ = defaultGetParentId,\n getType = defaultGetType,\n isExpandable = defaultIsExpandable,\n isSelectable = defaultIsSelectable,\n multiple = true,\n onSelect = noop,\n onCollapse = noop,\n onExpand = () => Promise.resolve(),\n rowRenderer: rowRendererBase,\n maxVisibleNodes = Infinity,\n visibleHeight,\n autoExpandParent = true,\n innerElementType,\n outerElementType,\n onKeyDown,\n children,\n ...props\n }: TreeProps<T, P>,\n ref: React.Ref<TreeRef<T>>\n ) => {\n const rowHeight = defaultRowHeight\n const wrapperRef = React.useRef<HTMLDivElement | null>(null)\n const listRef = React.useRef<FixedSizeList>(null)\n const listInnerRef = React.useRef<HTMLDivElement>(null)\n const listOuterRefRef = React.useRef<HTMLDivElement>(null)\n const [contentMaxWidth, setContentMaxWidth] = React.useState(0)\n\n const getParentId = React.useMemo(() => getParentId_, [])\n\n const defaultGetRoot = React.useCallback(\n (nodes: P): T | T[] =>\n nodes.filter((node: T) => {\n return isRootNode(getParentId(node))\n }),\n [getParentId]\n )\n\n const getRoot = React.useMemo(\n () => getRoot_ || defaultGetRoot,\n [defaultGetRoot]\n )\n\n const rootNodes = React.useMemo(() => {\n const roots = getRoot(options)\n return Array.isArray(roots) ? roots : [roots]\n }, [getRoot, options])\n\n React.useEffect(() => {\n if (!rootNodes.length) {\n console.warn(\n 'Tree must have at least one root node. Look up `Tree#getParentId` for details.'\n )\n }\n }, [rootNodes])\n\n const [isTreeFocused, setIsTreeFocused] = React.useState(false)\n const [containerSize, setContainerSize] = React.useState({\n width: 0,\n height: 0,\n })\n\n const handleContainerResize = React.useCallback(\n (entries: ResizeObserverEntry[]) => {\n if (entries[0]) {\n const { clientHeight: height, clientWidth: width } = entries[0]\n .target as HTMLElement\n setContainerSize({ width, height })\n }\n },\n [setContainerSize]\n )\n\n const setResizeObserverTarget = useResizeObserver(handleContainerResize)\n\n const defaultGetChildren = React.useCallback(\n (node: T) =>\n Array.isArray(options)\n ? options.filter((childNode: T) => getParentId(childNode) === node.id)\n : ([] as T[]),\n [getParentId, options]\n )\n\n const getChildren = getChildren_ || defaultGetChildren\n\n const {\n nodes,\n isExpanded,\n isSelected,\n isLoading,\n highlightedNode,\n isHighlighted: isNodeHighlighted,\n highlight,\n handleSelection,\n handleExpansion,\n setExpanded: _setExpanded,\n setSelected: _setSelected,\n isFileLimitReached,\n listNavigation,\n } = useTree<T>({\n rootNodes,\n expanded,\n selected,\n selectionLimit,\n multiple,\n autoExpandParent,\n onSelect,\n onCollapse,\n onExpand,\n getChildren,\n getParentId,\n })\n\n const setSelected = React.useCallback(\n (selected: T | T[]) => {\n const nodes = Array.isArray(selected) ? selected : [selected]\n\n _setSelected(new Set(nodes.map((node) => node.id)))\n },\n [_setSelected]\n )\n\n const setExpanded = React.useCallback(\n (expanded: T | T[]) => {\n const nodes = Array.isArray(expanded) ? expanded : [expanded]\n\n _setExpanded(new Set(nodes.map((node) => node.id)))\n },\n [_setExpanded]\n )\n\n React.useImperativeHandle(ref, () => ({\n rootEl: wrapperRef.current,\n setSelected,\n setExpanded,\n toggleSelected: (node: T) => handleSelection(node),\n toggleExpanded: (node: T) => handleExpansion(node),\n }))\n\n const defaultGetIcon = React.useCallback(\n (node: T): React.ReactNode => {\n const isFolder = getType(node) === 'branch'\n return isFolder ? <Folder /> : <File />\n },\n [getType]\n )\n\n const getIcon = getIconBase || defaultGetIcon\n\n const isHighlighted = React.useCallback(\n (node: T) => isTreeFocused && isNodeHighlighted(node),\n [isNodeHighlighted, isTreeFocused]\n )\n\n const handleAccessibility = (e: React.KeyboardEvent<HTMLDivElement>) => {\n onKeyDown && onKeyDown(e)\n const { key } = e\n\n switch (key) {\n case 'Enter':\n e.preventDefault()\n isSelectable(highlightedNode) && handleSelection(highlightedNode)\n break\n case 'Space Bar':\n case ' ':\n e.preventDefault()\n isExpandable(highlightedNode) && handleExpansion(highlightedNode)\n break\n case 'ArrowDown':\n case 'Down':\n e.preventDefault()\n listNavigation.increment()\n break\n case 'ArrowUp':\n case 'Up':\n e.preventDefault()\n listNavigation.decrement()\n break\n }\n }\n\n React.useEffect(() => {\n if (isTreeFocused) {\n listRef.current?.scrollToItem(listNavigation.index)\n }\n }, [isTreeFocused, listNavigation.index])\n\n const defaultRowRenderer = React.useCallback(\n (props: TreeRowProps) => <TreeRow {...props} />,\n []\n )\n\n React.useEffect(() => {\n const rowContentSizes: number[] = []\n\n const childNodes = Array.from(listInnerRef.current?.childNodes || [])\n childNodes.forEach((child) => {\n const rowContent = (child as HTMLElement).querySelector(\n '[data-row-content]'\n )\n\n if (rowContent) {\n const leftPadding = (child as HTMLElement).dataset.padding ?? '0'\n rowContentSizes.push(\n rowContent.scrollWidth + parseInt(leftPadding, 10) + rowRightPadding\n )\n }\n })\n\n const maxSizeRowContent = Math.max(...rowContentSizes) + scrollbarWidth\n setContentMaxWidth(maxSizeRowContent)\n })\n\n const rowRenderer = rowRendererBase || defaultRowRenderer\n\n const itemData = React.useMemo(\n () => ({\n nodes,\n getIcon,\n getLabel,\n getType,\n isExpandable,\n isSelectable,\n isExpanded,\n isSelected,\n isLoading,\n highlight,\n isHighlighted,\n handleSelection,\n handleExpansion,\n rowRenderer,\n isFileLimitReached,\n selectionLimit,\n isTreeFocused,\n treeContainer: wrapperRef.current as HTMLDivElement,\n }),\n [\n getIcon,\n getLabel,\n getType,\n handleExpansion,\n handleSelection,\n highlight,\n isExpandable,\n isExpanded,\n isFileLimitReached,\n isHighlighted,\n isLoading,\n isSelectable,\n isSelected,\n isTreeFocused,\n nodes,\n rowRenderer,\n selectionLimit,\n ]\n )\n\n if (!rootNodes) {\n console.error('Tree must have a valid root node')\n return null\n }\n\n return (\n <StyledTree\n {...props}\n ref={mergeRefs(wrapperRef, setResizeObserverTarget)}\n tabIndex={0}\n onFocus={() => setIsTreeFocused(true)}\n onBlur={() => setIsTreeFocused(false)}\n onKeyDown={handleAccessibility}\n >\n <FixedSizeList\n className=\"size-list\"\n ref={listRef}\n height={\n visibleHeight ||\n Math.min(nodes.length * rowHeight, rowHeight * maxVisibleNodes)\n }\n innerRef={listInnerRef}\n outerRef={listOuterRefRef}\n itemCount={nodes.length}\n itemSize={rowHeight}\n innerElementType={innerElementType}\n outerElementType={outerElementType}\n itemData={itemData}\n width={Math.max(contentMaxWidth, containerSize.width)}\n >\n {TreeNode}\n </FixedSizeList>\n </StyledTree>\n )\n }\n)\n\nconst TreeNode: React.FC<TreeNodeProps> = React.memo(\n ({\n data: { nodes, rowRenderer, highlight, isTreeFocused, ...props },\n index,\n style,\n }) => {\n const node = nodes[index]\n\n const isHighlighted = props.isHighlighted(node)\n const [isMouseOver, setMouseOver] = React.useState(false)\n\n const timer = useTimer({})\n const {\n isVisible: shouldShowTooltip,\n show: showTooltip,\n hide: hideTooltip,\n } = useVisibility({})\n\n React.useEffect(() => {\n if (isHighlighted && !shouldShowTooltip) {\n timer.setTimer(showTooltip, tooltipDelay)\n }\n\n return () => {\n if (isTreeFocused && !isHighlighted && shouldShowTooltip) {\n hideTooltip()\n }\n }\n })\n\n const onMouseEnter = () => {\n setMouseOver(true)\n if (!shouldShowTooltip) {\n timer.setTimer(showTooltip, tooltipDelay)\n }\n highlight(node)\n }\n\n const onMouseLeave = () => {\n setMouseOver(false)\n timer.cancel()\n hideTooltip()\n }\n\n return (\n <StyledTreeRowWrapper\n tabIndex={-1}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n style={style}\n data-padding={getPadding(node.level)}\n >\n {rowRenderer({\n node,\n shouldShowTooltip,\n isMouseOver,\n ...props,\n })}\n </StyledTreeRowWrapper>\n )\n },\n areEqual\n)\n\nconst TreeRow: React.FC<TreeRowProps> = ({\n node,\n getIcon,\n getLabel,\n handleExpansion,\n handleSelection,\n selectionLimit,\n isFileLimitReached,\n shouldShowTooltip,\n isMouseOver,\n treeContainer,\n ...props\n}) => {\n const expanderRef = React.useRef<HTMLDivElement>(null)\n const isSelected = props.isSelected(node)\n const isSelectable = props.isSelectable(node)\n const isExpandable = props.isExpandable(node)\n const isExpanded = props.isExpanded(node)\n const isLoading = props.isLoading(node)\n const isHighlighted = props.isHighlighted(node)\n const nodeType = props.getType(node)\n const rowLabel = getLabel(node)\n\n const onClick = React.useCallback(\n (event: React.MouseEvent) => {\n if (isSelectable && isExpandable) {\n // @ts-ignore\n expanderRef?.current?.contains(event.target)\n ? handleExpansion(node)\n : handleSelection(node)\n } else if (isSelectable) {\n handleSelection(node)\n } else if (isExpandable) {\n handleExpansion(node)\n }\n },\n [handleExpansion, handleSelection, isExpandable, isSelectable, node]\n )\n\n const onMouseDown = React.useCallback(\n (e: React.MouseEvent) => {\n e.preventDefault()\n treeContainer.focus()\n },\n [treeContainer]\n )\n\n return (\n <TreeRowContainer\n level={node.level}\n onClick={onClick}\n onMouseDown={onMouseDown}\n isSelected={isSelected}\n isSelectable={isSelectable}\n isExpandable={isExpandable}\n isHighlighted={isHighlighted}\n isFileLimitReached={isFileLimitReached}\n data-qa=\"core-tree-row-container\"\n >\n {\n // WARNING!\n // Be aware that this data attribute is used for calculations, changing this data attribute will break its operability.\n }\n <StyledTreeRowContent data-row-content>\n <TreeRowChevron\n ref={expanderRef}\n isExpandable={isExpandable}\n isExpanded={isExpanded}\n />\n <TreeRowIcon\n isLoading={isLoading}\n isSelected={isSelected}\n icon={getIcon(node)}\n />\n <TreeRowTooltip\n isSelected={isSelected}\n isSelectable={isSelectable}\n isHighlighted={isHighlighted}\n selectionLimit={selectionLimit}\n isFileLimitReached={isFileLimitReached}\n shouldShowTooltip={shouldShowTooltip}\n isMouseOver={isMouseOver}\n fileName={rowLabel}\n nodeType={nodeType}\n treeContainer={treeContainer}\n >\n <TreeRowName value={rowLabel} />\n </TreeRowTooltip>\n </StyledTreeRowContent>\n </TreeRowContainer>\n )\n}\n\nconst IconContainer: React.FC<IconContainerProps> = ({\n children,\n isSelected,\n ...props\n}) => (\n <StyledIconContainer $isSelected={isSelected} {...props}>\n {children}\n </StyledIconContainer>\n)\n\nconst TreeRowChevron = React.forwardRef<\n HTMLDivElement,\n {\n isExpanded: boolean\n isExpandable: boolean\n }\n>(({ isExpanded, isExpandable }, ref) => {\n return (\n <StyledChevronContainer ref={ref}>\n {isExpandable ? <StyledChevron $isExpanded={isExpanded} /> : null}\n </StyledChevronContainer>\n )\n})\n\nconst TreeRowIcon: React.FC<{\n isSelected: boolean\n isLoading: boolean\n icon: React.ReactNode\n}> = ({ isSelected, isLoading, icon }) => (\n <IconContainer isSelected={isSelected} marginLeft=\"sm\" marginRight=\"sm\">\n {isLoading ? <Spinner size=\"sm\" /> : icon}\n </IconContainer>\n)\n\nconst TreeRowName: React.FC<{ value: string }> = ({ value }) => (\n <StyledFilenameCaption>{value}</StyledFilenameCaption>\n)\n\nconst getSelectionLimitMessage = (selectionLimit: number) => ({\n key: 'selectionLimit',\n options: {\n count: selectionLimit,\n },\n})\n\nconst getUnsupportedFileTypeMessage = (fileName: string) => {\n const { extension, isFilename } = parseFilename(fileName)\n const key = isFilename ? 'specific' : 'unspecific'\n\n return {\n key: `unsupportedFileType.${key}`,\n options: {\n fileType: `.${extension.toUpperCase()}`,\n },\n }\n}\n\nconst TreeRowTooltip: FunctionComponent<\n PropsWithChildren<TreeRowTooltipProps>\n> = ({\n children,\n isHighlighted: isFocused,\n isFileLimitReached,\n isSelectable,\n isSelected,\n nodeType,\n selectionLimit,\n shouldShowTooltip,\n isMouseOver,\n fileName,\n treeContainer,\n}) => {\n const I18n = useI18nContext()\n const rowRef = React.useRef<HTMLDivElement>(null)\n const isUserInteracting = isFocused || isMouseOver\n const isTooltipVisible = isUserInteracting && shouldShowTooltip && !isSelected\n const isFile = nodeType === 'leaf'\n const [isCropped, setCropped] = React.useState(false)\n\n const registerRowEl = useIntersectionObserver(\n (entries) => {\n entries.forEach((entry) => {\n if (\n entry.rootBounds &&\n entry.rootBounds.left - entry.boundingClientRect.left >= 0\n ) {\n setCropped(true)\n return\n }\n setCropped(false)\n })\n },\n {\n root: treeContainer,\n rootMargin: '0px',\n threshold: intersectionThresholds,\n }\n )\n\n const selectionLimitMessage = getSelectionLimitMessage(selectionLimit)\n const unsupportedFileTypeMessage = getUnsupportedFileTypeMessage(fileName)\n\n const message = isSelectable\n ? isFileLimitReached && selectionLimitMessage\n : isFile && unsupportedFileTypeMessage\n\n const trigger = isTooltipVisible && !isCropped && message ? 'always' : 'none'\n\n return (\n <Tooltip\n trigger={trigger}\n overlay={\n message ? I18n.t(`core.tree.${message.key}`, message.options) : null\n }\n placement=\"top-left\"\n >\n <div ref={mergeRefs(rowRef, registerRowEl)}>{children}</div>\n </Tooltip>\n )\n}\n\nconst TreeRowContainer: React.FC<TreeRowContainerProps> = ({\n children,\n isHighlighted,\n isSelected,\n isSelectable,\n isExpandable,\n isFileLimitReached,\n level,\n ...props\n}) => {\n return (\n <StyledTreeRowContainer\n isSelectable={\n (isSelectable &&\n ((isFileLimitReached && isSelected) || !isFileLimitReached)) ||\n isExpandable\n }\n isHighlighted={isHighlighted}\n isSelected={isSelected}\n style={{ paddingLeft: getPadding(level) }}\n {...props}\n >\n {children}\n </StyledTreeRowContainer>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAASA,IAAI,EAAEC,MAAM,QAAQ,0BAA0B;AAEvD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,aAAa,QAAQ,cAAc;AACtD,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,OAAO,QAAQ,cAAc;AACtC,SACEC,aAAa,EACbC,sBAAsB,EACtBC,qBAAqB,EACrBC,mBAAmB,EACnBC,UAAU,EACVC,sBAAsB,EACtBC,oBAAoB,EACpBC,oBAAoB,QACf,eAAe;AAetB,IAAMC,OAAO,GAAG,EAAE;AAClB,IAAMC,WAAW,GAAG,EAAE;AACtB,IAAMC,gBAAgB,GAAG,EAAE;;AAE3B;AACA;AACA;AACA,IAAMC,eAAe,GAAG,EAAE;AAC1B;AACA;AACA,IAAMC,cAAc,GAAG,EAAE;AAEzB,SAASC,UAAUA,CAACC,KAAa,EAAE;EACjC,OAAOL,WAAW,GAAGK,KAAK,GAAGN,OAAO;AACtC;AAEA,IAAMO,sBAAsB,GAAGC,KAAK,CAACC,IAAI,CAAC;EAAEC,MAAM,EAAE;AAAI,CAAC,CAAC,CAACC,GA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,MAAA,CAAcwB,OAAO,CAAC3H,GAAG,GAAI2H,OAAO,CAAClP,OAAO,CAAC,GAAG,IACjE;IACDsP,SAAS,EAAC;EAAU,gBAEpB7S,KAAA,CAAA2K,aAAA;IAAKrH,GAAG,EAAE3C,SAAS,CAAC4Q,MAAM,EAAEQ,aAAa;EAAE,GAAE3L,QAAc,CACpD,CAAC;AAEd,CAAC;AAED,IAAMoJ,gBAAiD,GAAG,SAApDA,gBAAiDA,CAAAsD,MAAA,EASjD;EAAA,IARJ1M,QAAQ,GAAA0M,MAAA,CAAR1M,QAAQ;IACRqD,aAAa,GAAAqJ,MAAA,CAAbrJ,aAAa;IACbJ,UAAU,GAAAyJ,MAAA,CAAVzJ,UAAU;IACVtE,YAAY,GAAA+N,MAAA,CAAZ/N,YAAY;IACZF,YAAY,GAAAiO,MAAA,CAAZjO,YAAY;IACZoF,kBAAkB,GAAA6I,MAAA,CAAlB7I,kBAAkB;IAClBtI,KAAK,GAAAmR,MAAA,CAALnR,KAAK;IACF0E,KAAK,GAAAC,wBAAA,CAAAwM,MAAA,EAAAC,UAAA;EAER,oBACE/S,KAAA,CAAA2K,aAAA,CAACzJ,sBAAsB,EAAAyL,QAAA;IACrB5H,YAAY,EACTA,YAAY,KACTkF,kBAAkB,IAAIZ,UAAU,IAAK,CAACY,kBAAkB,CAAC,IAC7DpF,YACD;IACD4E,aAAa,EAAEA,aAAc;IAC7BJ,UAAU,EAAEA,UAAW;IACvBsE,KAAK,EAAE;MAAEqF,WAAW,EAAEtR,UAAU,CAACC,KAAK;IAAE;EAAE,GACtC0E,KAAK,GAERD,QACqB,CAAC;AAE7B,CAAC"}
@@ -5,15 +5,15 @@ import { Typography } from '../Typography/Typography';
5
5
  import { colors } from '../_styles/colors';
6
6
  export var StyledFilenameCaption = /*#__PURE__*/styled(Typography).withConfig({
7
7
  displayName: "StyledFilenameCaption",
8
- componentId: "core-11_24_1__sc-2d45b5-0"
8
+ componentId: "core-11_24_3__sc-2d45b5-0"
9
9
  })(["display:flex;width:100%;"]);
10
10
  export var StyledTree = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledTree",
12
- componentId: "core-11_24_1__sc-2d45b5-1"
12
+ componentId: "core-11_24_3__sc-2d45b5-1"
13
13
  })(["width:100%;height:100%;min-height:36px;outline:none;overflow:auto;"]);
14
14
  export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
15
15
  displayName: "StyledTreeRowContainer",
16
- componentId: "core-11_24_1__sc-2d45b5-2"
16
+ componentId: "core-11_24_3__sc-2d45b5-2"
17
17
  })(["display:flex;align-items:center;height:36px;background:transparent;box-shadow:inset 4px 0px 0px transparent;cursor:default;outline:none;", " &:hover{background:", ";}", " ", ""], function (_ref) {
18
18
  var isSelectable = _ref.isSelectable;
19
19
  return isSelectable ? 'cursor: pointer;' : '';
@@ -27,30 +27,30 @@ export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
27
27
  });
28
28
  export var StyledTreeRowContent = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledTreeRowContent",
30
- componentId: "core-11_24_1__sc-2d45b5-3"
30
+ componentId: "core-11_24_3__sc-2d45b5-3"
31
31
  })(["display:flex;align-items:center;"]);
32
32
  export var StyledTreeRowWrapper = /*#__PURE__*/styled.div.withConfig({
33
33
  displayName: "StyledTreeRowWrapper",
34
- componentId: "core-11_24_1__sc-2d45b5-4"
34
+ componentId: "core-11_24_3__sc-2d45b5-4"
35
35
  })(["outline:none;"]);
36
36
  var StyledIconBase = /*#__PURE__*/styled(Box).withConfig({
37
37
  displayName: "StyledIconBase",
38
- componentId: "core-11_24_1__sc-2d45b5-5"
38
+ componentId: "core-11_24_3__sc-2d45b5-5"
39
39
  })(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;min-width:24px;min-height:24px;"]);
40
40
  export var StyledChevronContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
41
41
  displayName: "StyledChevronContainer",
42
- componentId: "core-11_24_1__sc-2d45b5-6"
42
+ componentId: "core-11_24_3__sc-2d45b5-6"
43
43
  })([""]);
44
44
  export var StyledIconContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
45
45
  displayName: "StyledIconContainer",
46
- componentId: "core-11_24_1__sc-2d45b5-7"
46
+ componentId: "core-11_24_3__sc-2d45b5-7"
47
47
  })(["color:", ";"], function (_ref4) {
48
48
  var $isSelected = _ref4.$isSelected;
49
49
  return $isSelected ? colors.blue45 : colors.gray40;
50
50
  });
51
51
  export var StyledChevron = /*#__PURE__*/styled(ChevronRight).withConfig({
52
52
  displayName: "StyledChevron",
53
- componentId: "core-11_24_1__sc-2d45b5-8"
53
+ componentId: "core-11_24_3__sc-2d45b5-8"
54
54
  })(["transform:rotate(", "deg);transition:transform 150ms ease-out;"], function (_ref5) {
55
55
  var $isExpanded = _ref5.$isExpanded;
56
56
  return $isExpanded ? 90 : 0;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import { FixedSizeListProps, ListChildComponentProps } from 'react-window';
3
- import { BoxProps } from '../Box/Box.types';
4
- import { OverlayProps } from '../Overlay/Overlay';
5
- import { DivAttributes } from '../_utils/types';
6
- import { UNSAFE_treeRootNodeId } from './Tree';
1
+ import type React from 'react';
2
+ import type { FixedSizeListProps, ListChildComponentProps } from 'react-window';
3
+ import type { BoxProps } from '../Box/Box.types';
4
+ import type { OverlayProps } from '../Overlay/Overlay';
5
+ import type { DivAttributes } from '../_utils/types';
6
+ import type { UNSAFE_treeRootNodeId } from './Tree';
7
7
  declare type NodeType = 'branch' | 'leaf';
8
8
  export declare type TreeNodeId = number | string | null | undefined | typeof UNSAFE_treeRootNodeId;
9
9
  export interface Node {
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.types.js","names":[],"sources":["../../src/Tree/Tree.types.ts"],"sourcesContent":["import React from 'react'\nimport { FixedSizeListProps, ListChildComponentProps } from 'react-window'\nimport { BoxProps } from '../Box/Box.types'\nimport { OverlayProps } from '../Overlay/Overlay'\nimport { DivAttributes } from '../_utils/types'\nimport { UNSAFE_treeRootNodeId } from './Tree'\n\ntype NodeType = 'branch' | 'leaf'\n\nexport type TreeNodeId =\n | number\n | string\n | null\n | undefined\n | typeof UNSAFE_treeRootNodeId\n\nexport interface Node {\n /**\n * @since 10.19.0\n */\n id: TreeNodeId\n}\nexport interface DefaultNode extends Node {\n /**\n * @since 10.19.0\n */\n name: string\n /**\n * @since 10.19.0\n */\n parentId: TreeNodeId\n /**\n * @since 10.19.0\n */\n type: NodeType\n}\n\nexport interface LevelWise {\n /**\n * @since 10.19.0\n */\n level: number\n}\n\nexport interface UseTreeProps<T extends Node = Node> {\n rootNodes: T[]\n /**\n * @since 10.19.0\n */\n expanded: T['id'][]\n /**\n * @since 10.19.0\n */\n selected: T['id'][]\n /**\n * @since 10.19.0\n */\n selectionLimit: number\n /**\n * @since 10.19.0\n */\n getChildren(node: T): T[]\n /**\n * @since 10.19.0\n */\n getParentId(node: T): TreeNodeId\n /**\n * @since 10.19.0\n */\n autoExpandParent: boolean\n /**\n * @since 10.19.0\n */\n multiple: boolean\n /**\n * @since 10.19.0\n */\n onSelect(nodes: T[]): void\n /**\n * @since 10.19.0\n */\n onCollapse(node: T): void\n /**\n * @since 10.19.0\n */\n onExpand(node: T): Promise<any>\n}\n\nexport interface TreeNodeAPI<T extends Node = Node> {\n /**\n * @since 10.19.0\n */\n nodes: (T & LevelWise)[]\n /**\n * @since 10.19.0\n */\n getIcon(props: T): React.ReactNode\n /**\n * @since 10.19.0\n */\n getLabel(props: T): string\n /**\n * @since 10.19.0\n */\n getType(node: T): NodeType\n /**\n * @since 10.19.0\n */\n isExpandable(node: T): boolean\n /**\n * @since 10.19.0\n */\n isSelectable(node: T): boolean\n /**\n * @since 10.19.0\n */\n isSelected(node: T): boolean\n /**\n * @since 10.19.0\n */\n isLoading(node: T): boolean\n /**\n * @since 10.19.0\n */\n isExpanded(node: T): boolean\n /**\n * @since 10.19.0\n */\n highlight(node: T): void\n /**\n * @since 10.19.0\n */\n isHighlighted(node: T): boolean\n /**\n * @since 10.19.0\n */\n handleSelection(node: T): void\n /**\n * @since 10.19.0\n */\n handleExpansion(node: T): void\n /**\n * @since 10.19.0\n */\n rowRenderer(props: TreeRowProps<T>): React.ReactNode\n /**\n * @since 10.19.0\n */\n selectionLimit: number\n /**\n * @since 10.19.0\n */\n isFileLimitReached: boolean\n /**\n * @since 10.19.0\n */\n isTreeFocused: boolean\n /**\n * @since 10.19.0\n */\n treeContainer: HTMLDivElement\n}\n\nexport interface CustomDataType<T> {\n /**\n * @since 10.19.0\n */\n [key: string]: any\n}\n\nexport interface TreeRef<T extends Node = Node> {\n /**\n * @since 10.19.0\n */\n setSelected: (selected: T | T[]) => void\n /**\n * @since 10.19.0\n */\n setExpanded: (expanded: T | T[]) => void\n /**\n * @since 10.19.0\n */\n toggleSelected: (node: T) => void\n /**\n * @since 10.19.0\n */\n toggleExpanded: (node: T) => void\n /**\n * @since 10.19.0\n */\n rootEl: HTMLElement | null\n}\n\nexport interface TreeNodeProps extends ListChildComponentProps {\n /**\n * @since 10.19.0\n */\n data: TreeNodeAPI\n}\n\nexport interface TreeRowOverlayProps {\n /**\n * @since 10.19.0\n */\n overlayRef: OverlayProps['overlayRef']\n /**\n * @since 10.19.0\n */\n targetRef: OverlayProps['targetRef']\n /**\n * @since 10.19.0\n */\n message: { key: string; options?: object }\n}\n\nexport interface TreeRowProps<T extends Node = Node>\n extends Omit<\n TreeNodeAPI,\n 'rowRenderer' | 'nodes' | 'highlight' | 'isTreeFocused'\n > {\n /**\n * @since 10.19.0\n */\n node: T & LevelWise\n /**\n * @since 10.19.0\n */\n shouldShowTooltip: boolean\n /**\n * @since 10.19.0\n */\n isMouseOver: boolean\n /**\n * @since 10.19.0\n */\n treeContainer: HTMLDivElement\n}\n\nexport interface TreeProps<\n T extends Node = Node,\n P extends CustomDataType<T> = Array<T>\n> extends Omit<DivAttributes, 'onSelect'>,\n Pick<FixedSizeListProps, 'innerElementType' | 'outerElementType'> {\n /**\n * @since 10.19.0\n */\n options: P\n /**\n * Array of keys of initially expanded nodes\n * @since 10.19.0\n */\n expanded?: T['id'][]\n\n /**\n * Array of keys of initially selected nodes\n * @since 10.19.0\n */\n selected?: T['id'][]\n\n /**\n * Number of nodes that can be selected\n * @since 10.19.0\n */\n selectionLimit?: number\n\n /**\n * Function should return a single root node or an array of root nodes\n * <CodeBlock>{'(): Node | Node[]'}</CodeBlock>\n * @since 10.19.0\n * @deprecated To be removed in future release. `getParentId` should be used to determine root nodes instead.\n * @deprecatedSince 11.9.0\n */\n getRoot?(data: P): T | T[]\n\n /**\n * Should return an array of children nodes.\n * <CodeBlock>{'(node: Node): Node[]'}</CodeBlock>\n * @since 10.19.0\n */\n getChildren?(node: T): T[]\n\n /**\n * This function will be executed on each node. Should return{' '}\n * <Code>Icon</Code> component\n * <CodeBlock>{'(node: Node): React.ReactNode'}</CodeBlock>\n * @since 10.19.0\n */\n getIcon?(node: T): React.ReactNode\n\n /**\n * This function will be executed on each node. Should return{' '}\n * <Code>label</Code> for row\n * <CodeBlock>{'(node: Node): string'}</CodeBlock>\n * @since 10.19.0\n */\n getLabel?(node: T): string\n\n /**\n * This function can be used to override the default parent detection mechanism.\n * If not defined, <Code>Node['parentId']</Code> is used to get a given node's parent.\n * <CodeBlock>{'(node: Node): TreeNodeId'}</CodeBlock>\n * @since 10.19.0\n * @deprecated Returning `UNSAFE_treeRootNodeId` to determine a root node is deprecated.\n * Return `null` or `undefined` intead.\n * @deprecatedSince 11.9.0\n */\n getParentId?(node: T): TreeNodeId\n\n /**\n * This function will be executed on each node. Should return{' '}\n * <Code>'branch'</Code> or <Code>'leaf'</Code>\n * <CodeBlock>{'(node: Node): NodeType'}</CodeBlock>\n * @since 10.19.0\n */\n getType?(node: T): NodeType\n\n /**\n * Function of whether to enable tree node expansion/collapsing.\n * <CodeBlock>{'(node: Node): boolean'}</CodeBlock>\n * @since 10.19.0\n */\n isExpandable?(node: T): boolean\n\n /**\n * Function of whether to enable tree node selection.\n * <CodeBlock>{'(node: Node): boolean'}</CodeBlock>\n * @since 10.19.0\n */\n isSelectable?(node: T): boolean\n\n /**\n * Allows selection of multiple nodes\n * @since 10.19.0\n */\n multiple?: boolean\n\n /**\n * Number of visible nodes. Helps fix performance bottlenecks in large dataset\n * @since 10.19.0\n */\n maxVisibleNodes?: number\n\n /**\n * Height of the list. Helps fix performance bottlenecks in large dataset.\n * @since 10.19.0\n */\n visibleHeight?: number\n\n /**\n * Whether to expand parent node when a child node is expanded or selected\n * @since 10.19.0\n */\n autoExpandParent?: boolean\n\n /**\n * Callback return currently selected array of nodes.\n * <CodeBlock>{'(nodes: Node[]): void'}</CodeBlock>\n * @since 10.19.0\n */\n onSelect?(nodes: T[]): void\n\n /**\n * Triggers when current node collapse\n * <CodeBlock>{'(node: Node): void'}</CodeBlock>\n * @since 10.19.0\n */\n onCollapse?(node: T): void\n\n /**\n * Triggers when current node expand\n * <CodeBlock>{'(node: Node): Promise<void>'}</CodeBlock>\n * @since 10.19.0\n */\n onExpand?(node: T): Promise<any>\n\n /**\n * Callback for rendering tree nodes\n * <CodeBlock>{'(props: TreeRowProps): React.ReactNode'}</CodeBlock>\n * @since 10.19.0\n */\n rowRenderer?(props: TreeRowProps<T>): React.ReactNode\n}\n\nexport interface IconContainerProps extends BoxProps {\n /**\n * @since 10.19.0\n */\n isSelected?: boolean\n}\n\nexport interface TreeRowTooltipProps {\n /**\n * @since 10.19.0\n */\n isHighlighted: boolean\n /**\n * @since 10.19.0\n */\n isSelected: boolean\n /**\n * @since 10.19.0\n */\n isSelectable: boolean\n /**\n * @since 10.19.0\n */\n selectionLimit: number\n /**\n * @since 10.19.0\n */\n isFileLimitReached: boolean\n /**\n * @since 10.19.0\n */\n shouldShowTooltip: boolean\n /**\n * @since 10.19.0\n */\n isMouseOver: boolean\n /**\n * @since 10.19.0\n */\n fileName: string\n /**\n * @since 10.19.0\n */\n nodeType: NodeType\n /**\n * @since 10.19.0\n */\n treeContainer: HTMLDivElement\n}\n\nexport interface TreeRowContainerProps extends Omit<DivAttributes, 'color'> {\n /**\n * @since 10.19.0\n */\n isHighlighted: boolean\n /**\n * @since 10.19.0\n */\n isSelected: boolean\n /**\n * @since 10.19.0\n */\n isSelectable: boolean\n /**\n * @since 10.19.0\n */\n isExpandable: boolean\n /**\n * @since 10.19.0\n */\n isFileLimitReached: boolean\n /**\n * @since 10.19.0\n */\n level: number\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Tree.types.js","names":[],"sources":["../../src/Tree/Tree.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { FixedSizeListProps, ListChildComponentProps } from 'react-window'\nimport type { BoxProps } from '../Box/Box.types'\nimport type { OverlayProps } from '../Overlay/Overlay'\nimport type { DivAttributes } from '../_utils/types'\nimport type { UNSAFE_treeRootNodeId } from './Tree'\n\ntype NodeType = 'branch' | 'leaf'\n\nexport type TreeNodeId =\n | number\n | string\n | null\n | undefined\n | typeof UNSAFE_treeRootNodeId\n\nexport interface Node {\n /**\n * @since 10.19.0\n */\n id: TreeNodeId\n}\nexport interface DefaultNode extends Node {\n /**\n * @since 10.19.0\n */\n name: string\n /**\n * @since 10.19.0\n */\n parentId: TreeNodeId\n /**\n * @since 10.19.0\n */\n type: NodeType\n}\n\nexport interface LevelWise {\n /**\n * @since 10.19.0\n */\n level: number\n}\n\nexport interface UseTreeProps<T extends Node = Node> {\n rootNodes: T[]\n /**\n * @since 10.19.0\n */\n expanded: T['id'][]\n /**\n * @since 10.19.0\n */\n selected: T['id'][]\n /**\n * @since 10.19.0\n */\n selectionLimit: number\n /**\n * @since 10.19.0\n */\n getChildren(node: T): T[]\n /**\n * @since 10.19.0\n */\n getParentId(node: T): TreeNodeId\n /**\n * @since 10.19.0\n */\n autoExpandParent: boolean\n /**\n * @since 10.19.0\n */\n multiple: boolean\n /**\n * @since 10.19.0\n */\n onSelect(nodes: T[]): void\n /**\n * @since 10.19.0\n */\n onCollapse(node: T): void\n /**\n * @since 10.19.0\n */\n onExpand(node: T): Promise<any>\n}\n\nexport interface TreeNodeAPI<T extends Node = Node> {\n /**\n * @since 10.19.0\n */\n nodes: (T & LevelWise)[]\n /**\n * @since 10.19.0\n */\n getIcon(props: T): React.ReactNode\n /**\n * @since 10.19.0\n */\n getLabel(props: T): string\n /**\n * @since 10.19.0\n */\n getType(node: T): NodeType\n /**\n * @since 10.19.0\n */\n isExpandable(node: T): boolean\n /**\n * @since 10.19.0\n */\n isSelectable(node: T): boolean\n /**\n * @since 10.19.0\n */\n isSelected(node: T): boolean\n /**\n * @since 10.19.0\n */\n isLoading(node: T): boolean\n /**\n * @since 10.19.0\n */\n isExpanded(node: T): boolean\n /**\n * @since 10.19.0\n */\n highlight(node: T): void\n /**\n * @since 10.19.0\n */\n isHighlighted(node: T): boolean\n /**\n * @since 10.19.0\n */\n handleSelection(node: T): void\n /**\n * @since 10.19.0\n */\n handleExpansion(node: T): void\n /**\n * @since 10.19.0\n */\n rowRenderer(props: TreeRowProps<T>): React.ReactNode\n /**\n * @since 10.19.0\n */\n selectionLimit: number\n /**\n * @since 10.19.0\n */\n isFileLimitReached: boolean\n /**\n * @since 10.19.0\n */\n isTreeFocused: boolean\n /**\n * @since 10.19.0\n */\n treeContainer: HTMLDivElement\n}\n\nexport interface CustomDataType<T> {\n /**\n * @since 10.19.0\n */\n [key: string]: any\n}\n\nexport interface TreeRef<T extends Node = Node> {\n /**\n * @since 10.19.0\n */\n setSelected: (selected: T | T[]) => void\n /**\n * @since 10.19.0\n */\n setExpanded: (expanded: T | T[]) => void\n /**\n * @since 10.19.0\n */\n toggleSelected: (node: T) => void\n /**\n * @since 10.19.0\n */\n toggleExpanded: (node: T) => void\n /**\n * @since 10.19.0\n */\n rootEl: HTMLElement | null\n}\n\nexport interface TreeNodeProps extends ListChildComponentProps {\n /**\n * @since 10.19.0\n */\n data: TreeNodeAPI\n}\n\nexport interface TreeRowOverlayProps {\n /**\n * @since 10.19.0\n */\n overlayRef: OverlayProps['overlayRef']\n /**\n * @since 10.19.0\n */\n targetRef: OverlayProps['targetRef']\n /**\n * @since 10.19.0\n */\n message: { key: string; options?: object }\n}\n\nexport interface TreeRowProps<T extends Node = Node>\n extends Omit<\n TreeNodeAPI,\n 'rowRenderer' | 'nodes' | 'highlight' | 'isTreeFocused'\n > {\n /**\n * @since 10.19.0\n */\n node: T & LevelWise\n /**\n * @since 10.19.0\n */\n shouldShowTooltip: boolean\n /**\n * @since 10.19.0\n */\n isMouseOver: boolean\n /**\n * @since 10.19.0\n */\n treeContainer: HTMLDivElement\n}\n\nexport interface TreeProps<\n T extends Node = Node,\n P extends CustomDataType<T> = Array<T>\n> extends Omit<DivAttributes, 'onSelect'>,\n Pick<FixedSizeListProps, 'innerElementType' | 'outerElementType'> {\n /**\n * @since 10.19.0\n */\n options: P\n /**\n * Array of keys of initially expanded nodes\n * @since 10.19.0\n */\n expanded?: T['id'][]\n\n /**\n * Array of keys of initially selected nodes\n * @since 10.19.0\n */\n selected?: T['id'][]\n\n /**\n * Number of nodes that can be selected\n * @since 10.19.0\n */\n selectionLimit?: number\n\n /**\n * Function should return a single root node or an array of root nodes\n * <CodeBlock>{'(): Node | Node[]'}</CodeBlock>\n * @since 10.19.0\n * @deprecated To be removed in future release. `getParentId` should be used to determine root nodes instead.\n * @deprecatedSince 11.9.0\n */\n getRoot?(data: P): T | T[]\n\n /**\n * Should return an array of children nodes.\n * <CodeBlock>{'(node: Node): Node[]'}</CodeBlock>\n * @since 10.19.0\n */\n getChildren?(node: T): T[]\n\n /**\n * This function will be executed on each node. Should return{' '}\n * <Code>Icon</Code> component\n * <CodeBlock>{'(node: Node): React.ReactNode'}</CodeBlock>\n * @since 10.19.0\n */\n getIcon?(node: T): React.ReactNode\n\n /**\n * This function will be executed on each node. Should return{' '}\n * <Code>label</Code> for row\n * <CodeBlock>{'(node: Node): string'}</CodeBlock>\n * @since 10.19.0\n */\n getLabel?(node: T): string\n\n /**\n * This function can be used to override the default parent detection mechanism.\n * If not defined, <Code>Node['parentId']</Code> is used to get a given node's parent.\n * <CodeBlock>{'(node: Node): TreeNodeId'}</CodeBlock>\n * @since 10.19.0\n * @deprecated Returning `UNSAFE_treeRootNodeId` to determine a root node is deprecated.\n * Return `null` or `undefined` intead.\n * @deprecatedSince 11.9.0\n */\n getParentId?(node: T): TreeNodeId\n\n /**\n * This function will be executed on each node. Should return{' '}\n * <Code>'branch'</Code> or <Code>'leaf'</Code>\n * <CodeBlock>{'(node: Node): NodeType'}</CodeBlock>\n * @since 10.19.0\n */\n getType?(node: T): NodeType\n\n /**\n * Function of whether to enable tree node expansion/collapsing.\n * <CodeBlock>{'(node: Node): boolean'}</CodeBlock>\n * @since 10.19.0\n */\n isExpandable?(node: T): boolean\n\n /**\n * Function of whether to enable tree node selection.\n * <CodeBlock>{'(node: Node): boolean'}</CodeBlock>\n * @since 10.19.0\n */\n isSelectable?(node: T): boolean\n\n /**\n * Allows selection of multiple nodes\n * @since 10.19.0\n */\n multiple?: boolean\n\n /**\n * Number of visible nodes. Helps fix performance bottlenecks in large dataset\n * @since 10.19.0\n */\n maxVisibleNodes?: number\n\n /**\n * Height of the list. Helps fix performance bottlenecks in large dataset.\n * @since 10.19.0\n */\n visibleHeight?: number\n\n /**\n * Whether to expand parent node when a child node is expanded or selected\n * @since 10.19.0\n */\n autoExpandParent?: boolean\n\n /**\n * Callback return currently selected array of nodes.\n * <CodeBlock>{'(nodes: Node[]): void'}</CodeBlock>\n * @since 10.19.0\n */\n onSelect?(nodes: T[]): void\n\n /**\n * Triggers when current node collapse\n * <CodeBlock>{'(node: Node): void'}</CodeBlock>\n * @since 10.19.0\n */\n onCollapse?(node: T): void\n\n /**\n * Triggers when current node expand\n * <CodeBlock>{'(node: Node): Promise<void>'}</CodeBlock>\n * @since 10.19.0\n */\n onExpand?(node: T): Promise<any>\n\n /**\n * Callback for rendering tree nodes\n * <CodeBlock>{'(props: TreeRowProps): React.ReactNode'}</CodeBlock>\n * @since 10.19.0\n */\n rowRenderer?(props: TreeRowProps<T>): React.ReactNode\n}\n\nexport interface IconContainerProps extends BoxProps {\n /**\n * @since 10.19.0\n */\n isSelected?: boolean\n}\n\nexport interface TreeRowTooltipProps {\n /**\n * @since 10.19.0\n */\n isHighlighted: boolean\n /**\n * @since 10.19.0\n */\n isSelected: boolean\n /**\n * @since 10.19.0\n */\n isSelectable: boolean\n /**\n * @since 10.19.0\n */\n selectionLimit: number\n /**\n * @since 10.19.0\n */\n isFileLimitReached: boolean\n /**\n * @since 10.19.0\n */\n shouldShowTooltip: boolean\n /**\n * @since 10.19.0\n */\n isMouseOver: boolean\n /**\n * @since 10.19.0\n */\n fileName: string\n /**\n * @since 10.19.0\n */\n nodeType: NodeType\n /**\n * @since 10.19.0\n */\n treeContainer: HTMLDivElement\n}\n\nexport interface TreeRowContainerProps extends Omit<DivAttributes, 'color'> {\n /**\n * @since 10.19.0\n */\n isHighlighted: boolean\n /**\n * @since 10.19.0\n */\n isSelected: boolean\n /**\n * @since 10.19.0\n */\n isSelectable: boolean\n /**\n * @since 10.19.0\n */\n isExpandable: boolean\n /**\n * @since 10.19.0\n */\n isFileLimitReached: boolean\n /**\n * @since 10.19.0\n */\n level: number\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TypeaheadInputProps, TypeaheadProps } from './Typeahead.types';
2
+ import type { TypeaheadInputProps, TypeaheadProps } from './Typeahead.types';
3
3
  /**
4
4
  @since 10.19.0
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"Typeahead.js","names":["Clear","Search","React","Button","useLayoutEventListener","mergeRefs","StyledIcon","StyledInput","StyledTypeahead","Typeahead","forwardRef","_ref","ref","className","disabled","onChange_","onChange","style","value","_ref$type","type","onKeyDown_","onKeyDown","props","_objectWithoutProperties","_excluded","useCallback","e","target","innerRef","useRef","dependencies","event","handler","key","stopPropagation","_objectSpread","scope","onClickClear","createElement","_extends","size","variant","icon","onClick","tabIndex"],"sources":["../../src/Typeahead/Typeahead.tsx"],"sourcesContent":["import { Clear, Search } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Button } from '../Button/Button'\nimport { useLayoutEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { StyledIcon, StyledInput, StyledTypeahead } from './Typeahead.styles'\nimport { TypeaheadInputProps, TypeaheadProps } from './Typeahead.types'\n\n/**\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-typeahead--demo)\n\n */\nexport const Typeahead = React.forwardRef<\n HTMLInputElement,\n TypeaheadInputProps & TypeaheadProps\n>(function (\n {\n className,\n disabled,\n onChange: onChange_,\n style,\n value,\n type = 'search',\n onKeyDown: onKeyDown_,\n ...props\n },\n ref\n) {\n const onChange = React.useCallback(\n function onChange(e: React.ChangeEvent<HTMLInputElement>) {\n onChange_?.(e.target.value, e)\n },\n [onChange_]\n )\n\n const innerRef = React.useRef(null)\n\n useLayoutEventListener({\n dependencies: [onChange_, onKeyDown_],\n event: 'keydown',\n handler: function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n if (e.key === 'Escape' || e.key === 'Esc') {\n // stop propagation once to clear input\n if ((e.target as HTMLInputElement).value) {\n e.stopPropagation()\n }\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n\n onKeyDown_?.(e)\n },\n scope: innerRef,\n })\n\n const onClickClear = React.useCallback(\n function onClickClear(e: React.MouseEvent<HTMLButtonElement>) {\n if (!disabled) {\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n },\n [disabled, onChange_]\n )\n\n return (\n <StyledTypeahead\n className={className}\n style={style}\n data-qa={props['data-qa']}\n >\n <StyledInput\n {...props}\n type={type}\n data-qa=\"core-typeahead-input\"\n ref={mergeRefs(innerRef, ref)}\n onChange={onChange}\n disabled={disabled}\n value={value}\n />\n <StyledIcon disabled={disabled}>\n {value ? (\n <Button\n aria-label=\"Clear the input\"\n data-qa=\"core-typeahead-clear-icon\"\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n disabled={disabled}\n onClick={onClickClear}\n tabIndex={-1} // TODO revisit this accessibility\n />\n ) : (\n <Search data-qa=\"core-typeahead-search-icon\" size=\"sm\" />\n )}\n </StyledIcon>\n </StyledTypeahead>\n )\n})\n"],"mappings":";;;;;;;;;;AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,0BAA0B;AACxD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,sBAAsB,QAAQ,yBAAyB;AAChE,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,UAAU,EAAEC,WAAW,EAAEC,eAAe,QAAQ,oBAAoB;AAG7E;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,SAAS,gBAAGP,KAAK,CAACQ,UAAU,CAGvC,UAAAC,IAAA,EAWAC,GAAG,EACH;EAAA,IAVEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACEC,SAAS,GAAAJ,IAAA,CAAnBK,QAAQ;IACRC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,KAAK,GAAAP,IAAA,CAALO,KAAK;IAAAC,SAAA,GAAAR,IAAA,CACLS,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,QAAQ,GAAAA,SAAA;IACJE,UAAU,GAAAV,IAAA,CAArBW,SAAS;IACNC,KAAK,GAAAC,wBAAA,CAAAb,IAAA,EAAAc,SAAA;EAIV,IAAMT,QAAQ,GAAGd,KAAK,CAACwB,WAAW,CAChC,SAASV,QAAQA,CAACW,CAAsC,EAAE;IACxDZ,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAGY,CAAC,CAACC,MAAM,CAACV,KAAK,EAAES,CAAC,CAAC;EAChC,CAAC,EACD,CAACZ,SAAS,CACZ,CAAC;EAED,IAAMc,QAAQ,GAAG3B,KAAK,CAAC4B,MAAM,CAAC,IAAI,CAAC;EAEnC1B,sBAAsB,CAAC;IACrB2B,YAA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ACX,WAAQ,sBAAsB;IAC9BR,GAAG,EAAEP,SAAS,CAACwB,QAAQ,EAAEjB,GAAG,CAAE;IAC9BI,QAAQ,EAAEA,QAAS;IACnBF,QAAQ,EAAEA,QAAS;IACnBI,KAAK,EAAEA;EAAM,EACd,CAAC,eACFhB,KAAA,CAAAqC,aAAA,CAACjC,UAAU;IAACQ,QAAQ,EAAEA;EAAS,GAC5BI,KAAK,gBACJhB,KAAA,CAAAqC,aAAA,CAACpC,MAAM;IACL,cAAW,iBAAiB;IAC5B,WAAQ,2BAA2B;IACnCsC,IAAI,EAAC,IAAI;IACTC,OAAO,EAAC,UAAU;IAClBC,IAAI,eAAEzC,KAAA,CAAAqC,aAAA,CAACvC,KAAK,MAAE,CAAE;IAChBc,QAAQ,EAAEA,QAAS;IACnB8B,OAAO,EAAEN,YAAa;IACtBO,QAAQ,EAAE,CAAC,CAAE,CAAC;EAAA,CACf,CAAC,gBAEF3C,KAAA,CAAAqC,aAAA,CAACtC,MAAM;IAAC,WAAQ,4BAA4B;IAACwC,IAAI,EAAC;EAAI,CAAE,CAEhD,CACG,CAAC;AAEtB,CAAC,CAAC"}
1
+ {"version":3,"file":"Typeahead.js","names":["Clear","Search","React","Button","useLayoutEventListener","mergeRefs","StyledIcon","StyledInput","StyledTypeahead","Typeahead","forwardRef","_ref","ref","className","disabled","onChange_","onChange","style","value","_ref$type","type","onKeyDown_","onKeyDown","props","_objectWithoutProperties","_excluded","useCallback","e","target","innerRef","useRef","dependencies","event","handler","key","stopPropagation","_objectSpread","scope","onClickClear","createElement","_extends","size","variant","icon","onClick","tabIndex"],"sources":["../../src/Typeahead/Typeahead.tsx"],"sourcesContent":["import { Clear, Search } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Button } from '../Button/Button'\nimport { useLayoutEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { StyledIcon, StyledInput, StyledTypeahead } from './Typeahead.styles'\nimport type { TypeaheadInputProps, TypeaheadProps } from './Typeahead.types'\n\n/**\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-typeahead--demo)\n\n */\nexport const Typeahead = React.forwardRef<\n HTMLInputElement,\n TypeaheadInputProps & TypeaheadProps\n>(function (\n {\n className,\n disabled,\n onChange: onChange_,\n style,\n value,\n type = 'search',\n onKeyDown: onKeyDown_,\n ...props\n },\n ref\n) {\n const onChange = React.useCallback(\n function onChange(e: React.ChangeEvent<HTMLInputElement>) {\n onChange_?.(e.target.value, e)\n },\n [onChange_]\n )\n\n const innerRef = React.useRef(null)\n\n useLayoutEventListener({\n dependencies: [onChange_, onKeyDown_],\n event: 'keydown',\n handler: function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n if (e.key === 'Escape' || e.key === 'Esc') {\n // stop propagation once to clear input\n if ((e.target as HTMLInputElement).value) {\n e.stopPropagation()\n }\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n\n onKeyDown_?.(e)\n },\n scope: innerRef,\n })\n\n const onClickClear = React.useCallback(\n function onClickClear(e: React.MouseEvent<HTMLButtonElement>) {\n if (!disabled) {\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n },\n [disabled, onChange_]\n )\n\n return (\n <StyledTypeahead\n className={className}\n style={style}\n data-qa={props['data-qa']}\n >\n <StyledInput\n {...props}\n type={type}\n data-qa=\"core-typeahead-input\"\n ref={mergeRefs(innerRef, ref)}\n onChange={onChange}\n disabled={disabled}\n value={value}\n />\n <StyledIcon disabled={disabled}>\n {value ? (\n <Button\n aria-label=\"Clear the input\"\n data-qa=\"core-typeahead-clear-icon\"\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n disabled={disabled}\n onClick={onClickClear}\n tabIndex={-1} // TODO revisit this accessibility\n />\n ) : (\n <Search data-qa=\"core-typeahead-search-icon\" size=\"sm\" />\n )}\n </StyledIcon>\n </StyledTypeahead>\n )\n})\n"],"mappings":";;;;;;;;;;AAAA,SAASA,K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AC,eACFhB,KAAA,CAAAqC,aAAA,CAACjC,UAAU;IAACQ,QAAQ,EAAEA;EAAS,GAC5BI,KAAK,gBACJhB,KAAA,CAAAqC,aAAA,CAACpC,MAAM;IACL,cAAW,iBAAiB;IAC5B,WAAQ,2BAA2B;IACnCsC,IAAI,EAAC,IAAI;IACTC,OAAO,EAAC,UAAU;IAClBC,IAAI,eAAEzC,KAAA,CAAAqC,aAAA,CAACvC,KAAK,MAAE,CAAE;IAChBc,QAAQ,EAAEA,QAAS;IACnB8B,OAAO,EAAEN,YAAa;IACtBO,QAAQ,EAAE,CAAC,CAAE,CAAC;EAAA,CACf,CAAC,gBAEF3C,KAAA,CAAAqC,aAAA,CAACtC,MAAM;IAAC,WAAQ,4BAA4B;IAACwC,IAAI,EAAC;EAAI,CAAE,CAEhD,CACG,CAAC;AAEtB,CAAC,CAAC"}
@@ -5,11 +5,11 @@ import { spacing } from '../_styles/spacing';
5
5
  var inputHeight = 36;
6
6
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
7
7
  displayName: "StyledInput",
8
- componentId: "core-11_24_1__sc-gpc39h-0"
8
+ componentId: "core-11_24_3__sc-gpc39h-0"
9
9
  })(["", " padding-right:", "px;"], getSearchInputStyles(), spacing.xxl);
10
10
  export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledIcon",
12
- componentId: "core-11_24_1__sc-gpc39h-1"
12
+ componentId: "core-11_24_3__sc-gpc39h-1"
13
13
  })(["align-items:center;color:", ";display:flex;height:", "px;justify-content:center;pointer-events:", ";position:absolute;right:0;top:0;width:", "px;"], function (p) {
14
14
  return p.disabled ? colors.gray70 : colors.gray45;
15
15
  }, inputHeight, function (p) {
@@ -17,6 +17,6 @@ export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
17
17
  }, inputHeight);
18
18
  export var StyledTypeahead = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledTypeahead",
20
- componentId: "core-11_24_1__sc-gpc39h-2"
20
+ componentId: "core-11_24_3__sc-gpc39h-2"
21
21
  })(["position:relative;width:100%;"]);
22
22
  //# sourceMappingURL=Typeahead.styles.js.map
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { SpanAttributes } from '../_utils/types';
3
- import { TypographyProps } from './Typography.types';
2
+ import type { SpanAttributes } from '../_utils/types';
3
+ import type { TypographyProps } from './Typography.types';
4
4
  /**
5
5
 
6
6
  @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.js","names":["React","StyledTypography","Typography","forwardRef","_ref","ref","children","color","props","_objectWithoutProperties","_excluded","createElement","_extends","$color","displayName"],"sources":["../../src/Typography/Typography.tsx"],"sourcesContent":["import React from 'react'\nimport { SpanAttributes } from '../_utils/types'\nimport { StyledTypography } from './Typography.styles'\nimport { TypographyProps } from './Typography.types'\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-typography--demo)\n\n */\nexport const Typography = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes & TypographyProps\n>(function Typography({ children, color, ...props }, ref) {\n return (\n <StyledTypography $color={color} {...props} ref={ref}>\n {children}\n </StyledTypography>\n )\n})\n\nTypography.displayName = 'Typography'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,gBAAgB,QAAQ,qBAAqB;AAGtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,gBAAGF,KAAK,CAACG,UAAU,CAGxC,SAASD,UAAUA,CAAAE,IAAA,EAAgCC,GAAG,EAAE;EAAA,IAAlCC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAKC,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAC/C,oBACEV,KAAA,CAAAW,aAAA,CAACV,gBAAgB,EAAAW,QAAA;IAACC,MAAM,EAAEN;EAAM,GAAKC,KAAK;IAAEH,GAAG,EAAEA;EAAI,IAClDC,QACe,CAAC;AAEvB,CAAC,CAAC;AAEFJ,UAAU,CAACY,WAAW,GAAG,YAAY"}
1
+ {"version":3,"file":"Typography.js","names":["React","StyledTypography","Typography","forwardRef","_ref","ref","children","color","props","_objectWithoutProperties","_excluded","createElement","_extends","$color","displayName"],"sources":["../../src/Typography/Typography.tsx"],"sourcesContent":["import React from 'react'\nimport type { SpanAttributes } from '../_utils/types'\nimport { StyledTypography } from './Typography.styles'\nimport type { TypographyProps } from './Typography.types'\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-typography--demo)\n\n */\nexport const Typography = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes & TypographyProps\n>(function Typography({ children, color, ...props }, ref) {\n return (\n <StyledTypography $color={color} {...props} ref={ref}>\n {children}\n </StyledTypography>\n )\n})\n\nTypography.displayName = 'Typography'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,gBAAgB,QAAQ,qBAAqB;AAGtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,gBAAGF,KAAK,CAACG,UAAU,CAGxC,SAASD,UAAUA,CAAAE,IAAA,EAAgCC,GAAG,EAAE;EAAA,IAAlCC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAKC,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAC/C,oBACEV,KAAA,CAAAW,aAAA,CAACV,gBAAgB,EAAAW,QAAA;IAACC,MAAM,EAAEN;EAAM,GAAKC,KAAK;IAAEH,GAAG,EAAEA;EAAI,IAClDC,QACe,CAAC;AAEvB,CAAC,CAAC;AAEFJ,UAAU,CAACY,WAAW,GAAG,YAAY"}
@@ -1,5 +1,5 @@
1
- import { FlattenSimpleInterpolation } from 'styled-components';
2
- import { Intent, TypographyProps, Weight } from './Typography.types';
1
+ import type { FlattenSimpleInterpolation } from 'styled-components';
2
+ import type { Intent, TypographyProps, Weight } from './Typography.types';
3
3
  export interface StyledTypographyProps extends Omit<TypographyProps, 'color'> {
4
4
  $color?: TypographyProps['color'];
5
5
  }
@@ -35,7 +35,7 @@ export var semiboldRules = function semiboldRules() {
35
35
  };
36
36
  export var StyledTypography = /*#__PURE__*/styled.span.withConfig({
37
37
  displayName: "StyledTypography",
38
- componentId: "core-11_24_1__sc-1c4583t-0"
38
+ componentId: "core-11_24_3__sc-1c4583t-0"
39
39
  })(["", " color:", ";font-style:", ";font-weight:", ";", " em,i{font-style:italic;}"], function (_ref) {
40
40
  var _ref$intent = _ref.intent,
41
41
  intent = _ref$intent === void 0 ? 'body' : _ref$intent;
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.styles.js","names":["styled","css","colors","typographyWeights","regular","semibold","bold","typographyLineHeight","small","body","h1","h2","h3","label","typographyIntents","getTypographyIntent","intent","semiboldRules","StyledTypography","span","withConfig","displayName","componentId","_ref","_ref$intent","_ref2","_ref2$$color","$color","_ref3","_ref3$italic","italic","_ref4","weight"],"sources":["../../src/Typography/Typography.styles.ts"],"sourcesContent":["import styled, { css, FlattenSimpleInterpolation } from 'styled-components'\nimport { colors } from '../_styles/colors'\nimport { Intent, TypographyProps, Weight } from './Typography.types'\n\nexport interface StyledTypographyProps extends Omit<TypographyProps, 'color'> {\n $color?: TypographyProps['color']\n}\n\nexport const typographyWeights: {\n [key in Weight]: number\n} = {\n regular: 400,\n semibold: 600,\n bold: 700,\n}\n\nexport const typographyLineHeight: Record<Intent, number> = {\n small: 16,\n body: 20,\n h1: 32,\n h2: 28,\n h3: 24,\n label: 20,\n}\n\nconst body = css`\n font-family: inherit;\n font-size: 14px;\n font-weight: ${typographyWeights.regular};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.body}px;\n`\n\nconst h1 = css`\n font-family: inherit;\n font-size: 24px;\n font-weight: ${typographyWeights.bold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.h1}px;\n`\n\nconst h2 = css`\n font-family: inherit;\n font-size: 20px;\n font-weight: ${typographyWeights.semibold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.h2}px;\n`\n\nconst h3 = css`\n font-family: inherit;\n font-size: 16px;\n font-weight: ${typographyWeights.semibold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.h3}px;\n`\n\nconst small = css`\n font-family: inherit;\n font-size: 12px;\n font-weight: ${typographyWeights.regular};\n letter-spacing: 0.25px;\n line-height: ${typographyLineHeight.small}px;\n`\n\nconst label = css`\n font-family: inherit;\n font-size: 14px;\n font-weight: ${typographyWeights.bold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.label}px;\n`\n\nconst typographyIntents: {\n [key in Intent]: FlattenSimpleInterpolation\n} = {\n body,\n h1,\n h2,\n h3,\n small,\n label,\n}\n\nexport function getTypographyIntent(intent: Intent) {\n return typographyIntents[intent]\n}\n\nexport const semiboldRules = () => {\n return css`\n & > strong,\n > b {\n font-weight: 600;\n }\n `\n}\n\nexport const StyledTypography = styled.span<StyledTypographyProps>`\n ${({ intent = 'body' }) => typographyIntents[intent]}\n color: ${({ $color = 'gray15' }) => colors[$color]};\n font-style: ${({ italic = false }) => (italic ? 'italic' : 'inherit')};\n font-weight: ${({ weight }) => weight && typographyWeights[weight]};\n ${semiboldRules}\n\n em,\n i {\n font-style: italic;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAoC,mBAAmB;AAC3E,SAASC,MAAM,QAAQ,mBAAmB;AAO1C,OAAO,IAAMC,iBAEZ,GAAG;EACFC,OAAO,EAAE,GAAG;EACZC,QAAQ,EAAE,GAAG;EACbC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,IAAMC,oBAA4C,GAAG;EAC1DC,KAAK,EAAE,EAAE;EACTC,IAAI,EAAE,EAAE;EACRC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAA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E,MAAM,CAAC;AAAA,GAC3C,UAAAS,KAAA;EAAA,IAAAC,YAAA,GAAAD,KAAA,CAAGE,MAAM;IAANA,MAAM,GAAAD,YAAA,cAAG,QAAQ,GAAAA,YAAA;EAAA,OAAOxB,MAAM,CAACyB,MAAM,CAAC;AAAA,GACpC,UAAAC,KAAA;EAAA,IAAAC,YAAA,GAAAD,KAAA,CAAGE,MAAM;IAANA,MAAM,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;EAAA,OAAQC,MAAM,GAAG,QAAQ,GAAG,SAAS;AAAA,CAAC,EACtD,UAAAC,KAAA;EAAA,IAAGC,MAAM,GAAAD,KAAA,CAANC,MAAM;EAAA,OAAOA,MAAM,IAAI7B,iBAAiB,CAAC6B,MAAM,CAAC;AAAA,GAChEf,aAAa,CAMhB"}
1
+ {"version":3,"file":"Typography.styles.js","names":["styled","css","colors","typographyWeights","regular","semibold","bold","typographyLineHeight","small","body","h1","h2","h3","label","typographyIntents","getTypographyIntent","intent","semiboldRules","StyledTypography","span","withConfig","displayName","componentId","_ref","_ref$intent","_ref2","_ref2$$color","$color","_ref3","_ref3$italic","italic","_ref4","weight"],"sources":["../../src/Typography/Typography.styles.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from 'styled-components'\nimport styled, { css } from 'styled-components'\nimport { colors } from '../_styles/colors'\nimport type { Intent, TypographyProps, Weight } from './Typography.types'\n\nexport interface StyledTypographyProps extends Omit<TypographyProps, 'color'> {\n $color?: TypographyProps['color']\n}\n\nexport const typographyWeights: {\n [key in Weight]: number\n} = {\n regular: 400,\n semibold: 600,\n bold: 700,\n}\n\nexport const typographyLineHeight: Record<Intent, number> = {\n small: 16,\n body: 20,\n h1: 32,\n h2: 28,\n h3: 24,\n label: 20,\n}\n\nconst body = css`\n font-family: inherit;\n font-size: 14px;\n font-weight: ${typographyWeights.regular};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.body}px;\n`\n\nconst h1 = css`\n font-family: inherit;\n font-size: 24px;\n font-weight: ${typographyWeights.bold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.h1}px;\n`\n\nconst h2 = css`\n font-family: inherit;\n font-size: 20px;\n font-weight: ${typographyWeights.semibold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.h2}px;\n`\n\nconst h3 = css`\n font-family: inherit;\n font-size: 16px;\n font-weight: ${typographyWeights.semibold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.h3}px;\n`\n\nconst small = css`\n font-family: inherit;\n font-size: 12px;\n font-weight: ${typographyWeights.regular};\n letter-spacing: 0.25px;\n line-height: ${typographyLineHeight.small}px;\n`\n\nconst label = css`\n font-family: inherit;\n font-size: 14px;\n font-weight: ${typographyWeights.bold};\n letter-spacing: 0.15px;\n line-height: ${typographyLineHeight.label}px;\n`\n\nconst typographyIntents: {\n [key in Intent]: FlattenSimpleInterpolation\n} = {\n body,\n h1,\n h2,\n h3,\n small,\n label,\n}\n\nexport function getTypographyIntent(intent: Intent) {\n return typographyIntents[intent]\n}\n\nexport const semiboldRules = () => {\n return css`\n & > strong,\n > b {\n font-weight: 600;\n }\n `\n}\n\nexport const StyledTypography = styled.span<StyledTypographyProps>`\n ${({ intent = 'body' }) => typographyIntents[intent]}\n color: ${({ $color = 'gray15' }) => colors[$color]};\n font-style: ${({ italic = false }) => (italic ? 'italic' : 'inherit')};\n font-weight: ${({ weight }) => weight && typographyWeights[weight]};\n ${semiboldRules}\n\n em,\n i {\n font-style: italic;\n }\n`\n"],"mappings":"AACA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,mBAAmB;AAO1C,OAAO,IAAMC,iBAEZ,GAAG;EACFC,OAAO,EAAE,GAAG;EACZC,QAAQ,EAAE,GAAG;EACbC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,IAAMC,oBAA4C,GAAG;EAC1DC,KAAK,EAAE,EAAE;EACTC,IAAI,EAAE,EAAE;EACRC,EAAE,EA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AAG,MAAM,GAAAA,WAAA;EAAA,OAAOV,iBAAiB,CAACE,MAAM,CAAC;AAAA,GAC3C,UAAAS,KAAA;EAAA,IAAAC,YAAA,GAAAD,KAAA,CAAGE,MAAM;IAANA,MAAM,GAAAD,YAAA,cAAG,QAAQ,GAAAA,YAAA;EAAA,OAAOxB,MAAM,CAACyB,MAAM,CAAC;AAAA,GACpC,UAAAC,KAAA;EAAA,IAAAC,YAAA,GAAAD,KAAA,CAAGE,MAAM;IAANA,MAAM,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;EAAA,OAAQC,MAAM,GAAG,QAAQ,GAAG,SAAS;AAAA,CAAC,EACtD,UAAAC,KAAA;EAAA,IAAGC,MAAM,GAAAD,KAAA,CAANC,MAAM;EAAA,OAAOA,MAAM,IAAI7B,iBAAiB,CAAC6B,MAAM,CAAC;AAAA,GAChEf,aAAa,CAMhB"}
@@ -5,11 +5,11 @@ import { colors } from '../_styles/colors';
5
5
  import { getTypographyIntent } from './Typography.styles';
6
6
  var StyledBodyCell = /*#__PURE__*/styled(Table.BodyCell).withConfig({
7
7
  displayName: "StyledBodyCell",
8
- componentId: "core-11_24_1__sc-p4v7d-0"
8
+ componentId: "core-11_24_3__sc-p4v7d-0"
9
9
  })([""]);
10
10
  var StyledTextCell = /*#__PURE__*/styled(Table.TextCell).withConfig({
11
11
  displayName: "StyledTextCell",
12
- componentId: "core-11_24_1__sc-p4v7d-1"
12
+ componentId: "core-11_24_3__sc-p4v7d-1"
13
13
  })(["", " color:", ";"], getTypographyIntent('body'), colors.blue50);
14
14
  function BodyCell() {
15
15
  return /*#__PURE__*/React.createElement(StyledBodyCell, {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Color } from '../_styles/colors';
3
- import { Props } from '../_utils/types';
2
+ import type { Color } from '../_styles/colors';
3
+ import type { Props } from '../_utils/types';
4
4
  export declare type Intent = 'h1' | 'h2' | 'h3' | 'body' | 'small' | 'label';
5
5
  export declare type Weight = 'regular' | 'semibold' | 'bold';
6
6
  export interface TypographyProps extends Props {
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.types.js","names":[],"sources":["../../src/Typography/Typography.types.ts"],"sourcesContent":["import { Color } from '../_styles/colors'\nimport { Props } from '../_utils/types'\n\nexport type Intent = 'h1' | 'h2' | 'h3' | 'body' | 'small' | 'label'\n\nexport type Weight = 'regular' | 'semibold' | 'bold'\n\nexport interface TypographyProps extends Props {\n /**\n * <span>\n * When children are a string or multiple elements, they will be wrapped\n * by a <Code>span</Code>. When it is a single element, classnames will\n * be added to it instead\n * </span>\n * @since 10.19.0\n * */\n children: React.ReactNode\n\n /**\n * <span>\n * Change the HTML tag. This{' '}\n * <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n * prop is from styled-components\n * </Link>\n * .<em>WARNING</em>: If using TypeScript, it will not switch types and\n * some props may error. You can add <Code>// @ts-expect-error</Code>.\n * See{' '}\n * <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n * styled-components issue\n * </Link>\n * .\n * </span>\n * @since 10.19.0\n */\n as?: string | React.ComponentType<any> // styled-components as\n\n /**\n * <span>\n * Changes font color, can be any of the{' '}\n * <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n * strings\n * </span>\n * @default 'gray15'\n * @since 10.19.0\n */\n color?: Color\n\n /**\n * Changes the size of the font\n * @since 10.19.0\n */\n intent?: Intent\n\n /**\n * Applies `font-style: italic` if enabled\n * @since 10.19.0\n */\n italic?: boolean\n\n /**\n * Changes font weight if it is supported in the design system\n * @since 10.19.0\n */\n weight?: Weight\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Typography.types.js","names":[],"sources":["../../src/Typography/Typography.types.ts"],"sourcesContent":["import type { Color } from '../_styles/colors'\nimport type { Props } from '../_utils/types'\n\nexport type Intent = 'h1' | 'h2' | 'h3' | 'body' | 'small' | 'label'\n\nexport type Weight = 'regular' | 'semibold' | 'bold'\n\nexport interface TypographyProps extends Props {\n /**\n * <span>\n * When children are a string or multiple elements, they will be wrapped\n * by a <Code>span</Code>. When it is a single element, classnames will\n * be added to it instead\n * </span>\n * @since 10.19.0\n * */\n children: React.ReactNode\n\n /**\n * <span>\n * Change the HTML tag. This{' '}\n * <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n * prop is from styled-components\n * </Link>\n * .<em>WARNING</em>: If using TypeScript, it will not switch types and\n * some props may error. You can add <Code>// @ts-expect-error</Code>.\n * See{' '}\n * <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n * styled-components issue\n * </Link>\n * .\n * </span>\n * @since 10.19.0\n */\n as?: string | React.ComponentType<any> // styled-components as\n\n /**\n * <span>\n * Changes font color, can be any of the{' '}\n * <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n * strings\n * </span>\n * @default 'gray15'\n * @since 10.19.0\n */\n color?: Color\n\n /**\n * Changes the size of the font\n * @since 10.19.0\n */\n intent?: Intent\n\n /**\n * Applies `font-style: italic` if enabled\n * @since 10.19.0\n */\n italic?: boolean\n\n /**\n * Changes font weight if it is supported in the design system\n * @since 10.19.0\n */\n weight?: Weight\n}\n"],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  export { Typography } from './Typography';
2
- export type { Intent as TypographyIntent, Weight as TypographyWeight, TypographyProps, } from './Typography.types';
3
2
  export { typographyWeights } from './Typography.styles';
3
+ export type { Intent as TypographyIntent, TypographyProps, Weight as TypographyWeight, } from './Typography.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Typography","typographyWeights"],"sources":["../../src/Typography/index.ts"],"sourcesContent":["export { Typography } from './Typography'\n\nexport type {\n Intent as TypographyIntent,\n Weight as TypographyWeight,\n TypographyProps,\n} from './Typography.types'\n\nexport { typographyWeights } from './Typography.styles'\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAQzC,SAASC,iBAAiB,QAAQ,qBAAqB"}
1
+ {"version":3,"file":"index.js","names":["Typography","typographyWeights"],"sources":["../../src/Typography/index.ts"],"sourcesContent":["export { Typography } from './Typography'\nexport { typographyWeights } from './Typography.styles'\nexport type {\n Intent as TypographyIntent,\n TypographyProps,\n Weight as TypographyWeight,\n} from './Typography.types'\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,iBAAiB,QAAQ,qBAAqB"}
@@ -1,5 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { Placement } from '../_utils/types';
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
3
+ import type { Placement } from '../_utils/types';
3
4
  /**
4
5
  * @deprecatedSince 9
5
6
  * @deprecated Never officially documented/supported