@procore/core-react 11.32.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/README.md +7 -1
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/Avatar/Avatar.types.d.ts +1 -1
  5. package/dist/Avatar/Avatar.types.js.map +1 -1
  6. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  7. package/dist/Badge/Badge.styles.js +2 -2
  8. package/dist/Banner/Banner.d.ts +0 -5
  9. package/dist/Banner/Banner.js +11 -30
  10. package/dist/Banner/Banner.js.map +1 -1
  11. package/dist/Banner/Banner.styles.js +10 -20
  12. package/dist/Banner/Banner.styles.js.map +1 -1
  13. package/dist/Banner/Banner.types.d.ts +1 -5
  14. package/dist/Banner/Banner.types.js.map +1 -1
  15. package/dist/Banner/index.d.ts +1 -1
  16. package/dist/Banner/index.js +1 -1
  17. package/dist/Banner/index.js.map +1 -1
  18. package/dist/Box/Box.d.ts +4 -0
  19. package/dist/Box/Box.js +5 -0
  20. package/dist/Box/Box.js.map +1 -1
  21. package/dist/Box/Box.styles.js +1 -1
  22. package/dist/Breadcrumbs/Breadcrumbs.d.ts +38 -2
  23. package/dist/Breadcrumbs/Breadcrumbs.js +40 -2
  24. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  25. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  26. package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +14 -2
  27. package/dist/Breadcrumbs/Breadcrumbs.types.js +5 -0
  28. package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
  29. package/dist/Button/Button.styles.js +5 -5
  30. package/dist/Calendar/Calendar.d.ts +126 -9
  31. package/dist/Calendar/Calendar.js +126 -9
  32. package/dist/Calendar/Calendar.js.map +1 -1
  33. package/dist/Calendar/Calendar.styles.js +8 -8
  34. package/dist/Calendar/Calendar.types.d.ts +11 -1
  35. package/dist/Calendar/Calendar.types.js.map +1 -1
  36. package/dist/Card/Card.styles.js +1 -1
  37. package/dist/Checkbox/Checkbox.js +3 -2
  38. package/dist/Checkbox/Checkbox.js.map +1 -1
  39. package/dist/Checkbox/Checkbox.styles.js +6 -6
  40. package/dist/Checkbox/CheckboxTooltip.d.ts +4 -0
  41. package/dist/Checkbox/CheckboxTooltip.js +26 -0
  42. package/dist/Checkbox/CheckboxTooltip.js.map +1 -0
  43. package/dist/ContactItem/ContactItem.styles.js +5 -5
  44. package/dist/Content/Content.styles.js +4 -4
  45. package/dist/Content/Content.styles.js.map +1 -1
  46. package/dist/DateInput/DateInput.styles.js +6 -6
  47. package/dist/DetailPage/DetailPage.styles.js +7 -7
  48. package/dist/Dropdown/Dropdown.d.ts +1 -2
  49. package/dist/Dropdown/Dropdown.js.map +1 -1
  50. package/dist/Dropdown/Dropdown.styles.js +3 -3
  51. package/dist/Dropdown/Dropdown.types.d.ts +2 -1
  52. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  53. package/dist/Dropdown/index.d.ts +1 -1
  54. package/dist/Dropdown/index.js.map +1 -1
  55. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  56. package/dist/Dropzone/Dropzone.js +1 -1
  57. package/dist/Dropzone/Dropzone.styles.js +9 -9
  58. package/dist/EmptyState/EmptyState.styles.js +6 -6
  59. package/dist/Field/Field.styles.js +3 -3
  60. package/dist/FileList/FileList.styles.js +4 -4
  61. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  62. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  63. package/dist/FileSelect/FileSelect.styles.js +2 -2
  64. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  65. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  66. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  67. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  68. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  69. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  70. package/dist/FileSelect/ThumbnailList/index.d.ts +1 -0
  71. package/dist/FileSelect/ThumbnailList/index.js.map +1 -1
  72. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  73. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
  74. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  75. package/dist/FileSelect/index.d.ts +1 -1
  76. package/dist/FileSelect/index.js.map +1 -1
  77. package/dist/FileSelect/storyHelpers.d.ts +2 -2
  78. package/dist/FileSelect/storyHelpers.js.map +1 -1
  79. package/dist/FileToken/FileToken.styles.js +4 -4
  80. package/dist/FilterToken/FilterToken.styles.js +2 -2
  81. package/dist/Flex/Flex.d.ts +5 -0
  82. package/dist/Flex/Flex.js +5 -0
  83. package/dist/Flex/Flex.js.map +1 -1
  84. package/dist/FlexList/FlexList.d.ts +5 -0
  85. package/dist/FlexList/FlexList.js +6 -0
  86. package/dist/FlexList/FlexList.js.map +1 -1
  87. package/dist/FlexList/FlexList.styles.js +1 -1
  88. package/dist/Form/Form.d.ts +6 -1
  89. package/dist/Form/Form.js +10 -4
  90. package/dist/Form/Form.js.map +1 -1
  91. package/dist/Form/Form.styles.d.ts +1 -5
  92. package/dist/Form/Form.styles.js +20 -33
  93. package/dist/Form/Form.styles.js.map +1 -1
  94. package/dist/Form/Form.types.d.ts +38 -10
  95. package/dist/Form/Form.types.js.map +1 -1
  96. package/dist/Form/StyledFormikForm.styles.d.ts +6 -0
  97. package/dist/Form/StyledFormikForm.styles.js +17 -0
  98. package/dist/Form/StyledFormikForm.styles.js.map +1 -0
  99. package/dist/Form/index.d.ts +3 -2
  100. package/dist/Form/index.js +2 -1
  101. package/dist/Form/index.js.map +1 -1
  102. package/dist/Grid/Grid.styles.js +2 -2
  103. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  104. package/dist/Input/Input.styles.js +1 -1
  105. package/dist/Input/Input.types.d.ts +1 -0
  106. package/dist/Input/Input.types.js.map +1 -1
  107. package/dist/Link/Link.styles.js +1 -1
  108. package/dist/ListPage/ListPage.styles.js +8 -8
  109. package/dist/ListPage/ListPage.types.d.ts +1 -0
  110. package/dist/ListPage/ListPage.types.js.map +1 -1
  111. package/dist/Loader/Loader.styles.js +2 -2
  112. package/dist/Menu/index.d.ts +1 -1
  113. package/dist/Menu/index.js.map +1 -1
  114. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  115. package/dist/Modal/Modal.js +1 -1
  116. package/dist/Modal/Modal.js.map +1 -1
  117. package/dist/Modal/Modal.styles.js +13 -13
  118. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  119. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  120. package/dist/MultiSelect/MultiSelect.types.d.ts +4 -4
  121. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  122. package/dist/MultiSelect/index.d.ts +1 -1
  123. package/dist/MultiSelect/index.js.map +1 -1
  124. package/dist/NextMenu/NextMenu.styles.js +3 -3
  125. package/dist/Notation/Notation.d.ts +1 -0
  126. package/dist/Notation/Notation.js +2 -1
  127. package/dist/Notation/Notation.js.map +1 -1
  128. package/dist/NumberInput/NumberInput.js +2 -3
  129. package/dist/NumberInput/NumberInput.js.map +1 -1
  130. package/dist/NumberInput/NumberInput.styles.js +7 -7
  131. package/dist/NumberInput/NumberInput.types.d.ts +15 -11
  132. package/dist/NumberInput/NumberInput.types.js.map +1 -1
  133. package/dist/NumberInput/index.d.ts +1 -1
  134. package/dist/NumberInput/index.js.map +1 -1
  135. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  136. package/dist/OverlayTrigger/OverlayTrigger.js +0 -4
  137. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  138. package/dist/PageLayout/PageLayout.d.ts +53 -0
  139. package/dist/PageLayout/PageLayout.js +63 -8
  140. package/dist/PageLayout/PageLayout.js.map +1 -1
  141. package/dist/PageLayout/PageLayout.styles.d.ts +1 -4
  142. package/dist/PageLayout/PageLayout.styles.js +26 -27
  143. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  144. package/dist/Pagination/Pagination.styles.js +5 -5
  145. package/dist/Pagination/index.d.ts +1 -1
  146. package/dist/Pagination/index.js.map +1 -1
  147. package/dist/Panel/Panel.styles.js +11 -11
  148. package/dist/Pill/Pill.styles.js +2 -2
  149. package/dist/PillSelect/PillSelect.styles.js +4 -4
  150. package/dist/PillSelect/index.d.ts +1 -1
  151. package/dist/PillSelect/index.js.map +1 -1
  152. package/dist/Popover/Popover.styles.js +2 -2
  153. package/dist/Portal/Portal.styles.js +1 -1
  154. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  155. package/dist/RadioButton/RadioButton.styles.js +3 -3
  156. package/dist/Required/Required.styles.js +3 -3
  157. package/dist/Search/Search.styles.js +5 -5
  158. package/dist/Section/Section.styles.js +6 -6
  159. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  160. package/dist/SegmentedController/SegmentedController.types.d.ts +2 -0
  161. package/dist/SegmentedController/SegmentedController.types.js +1 -0
  162. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  163. package/dist/Select/Select.styles.js +7 -7
  164. package/dist/Semantic/Semantic.styles.js +9 -9
  165. package/dist/Slider/Slider.styles.js +5 -5
  166. package/dist/Spinner/Spinner.styles.js +7 -7
  167. package/dist/Spinner/Spinner.types.d.ts +1 -0
  168. package/dist/Spinner/Spinner.types.js.map +1 -1
  169. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  170. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  171. package/dist/SuperSelect/index.d.ts +1 -1
  172. package/dist/SuperSelect/index.js.map +1 -1
  173. package/dist/Switch/Switch.styles.js +4 -4
  174. package/dist/Table/Table.d.ts +5 -5
  175. package/dist/Table/Table.js.map +1 -1
  176. package/dist/Table/Table.styles.js +28 -28
  177. package/dist/Table/Table.types.d.ts +2 -2
  178. package/dist/Table/Table.types.js.map +1 -1
  179. package/dist/Table/index.d.ts +1 -1
  180. package/dist/Table/index.js.map +1 -1
  181. package/dist/TableShelf/TableShelf.styles.js +5 -5
  182. package/dist/Tabs/Tabs.styles.js +8 -8
  183. package/dist/Tabs/Tabs.types.d.ts +3 -0
  184. package/dist/Tabs/Tabs.types.js.map +1 -1
  185. package/dist/Tearsheet/Tearsheet.js +1 -1
  186. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  187. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  188. package/dist/TextArea/TextArea.styles.js +1 -1
  189. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  190. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  191. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  192. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  193. package/dist/TieredSelect/index.d.ts +1 -1
  194. package/dist/TieredSelect/index.js.map +1 -1
  195. package/dist/Tile/Tile.styles.js +10 -10
  196. package/dist/Tile/Tile.styles.js.map +1 -1
  197. package/dist/Title/Title.styles.js +7 -7
  198. package/dist/Toast/Toast.styles.js +3 -3
  199. package/dist/Toast/index.d.ts +1 -1
  200. package/dist/Toast/index.js.map +1 -1
  201. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  202. package/dist/Token/Token.styles.js +3 -3
  203. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  204. package/dist/Tooltip/Tooltip.styles.js +2 -2
  205. package/dist/Tree/Tree.js.map +1 -1
  206. package/dist/Tree/Tree.styles.js +9 -9
  207. package/dist/Tree/Tree.types.d.ts +1 -1
  208. package/dist/Tree/Tree.types.js.map +1 -1
  209. package/dist/Tree/index.d.ts +1 -1
  210. package/dist/Tree/index.js.map +1 -1
  211. package/dist/Typeahead/Typeahead.styles.js +3 -3
  212. package/dist/Typography/Typography.js +4 -2
  213. package/dist/Typography/Typography.js.map +1 -1
  214. package/dist/Typography/Typography.styles.js +6 -3
  215. package/dist/Typography/Typography.styles.js.map +1 -1
  216. package/dist/Typography/Typography.table.story.js +2 -2
  217. package/dist/Typography/Typography.types.d.ts +15 -23
  218. package/dist/Typography/Typography.types.js.map +1 -1
  219. package/dist/Typography/index.d.ts +1 -1
  220. package/dist/Typography/index.js +1 -1
  221. package/dist/Typography/index.js.map +1 -1
  222. package/dist/_hooks/Anchor.d.ts +0 -15
  223. package/dist/_hooks/Anchor.js +1 -29
  224. package/dist/_hooks/Anchor.js.map +1 -1
  225. package/dist/_hooks/Buffer.d.ts +0 -19
  226. package/dist/_hooks/Buffer.js +1 -41
  227. package/dist/_hooks/Buffer.js.map +1 -1
  228. package/dist/_hooks/DateTime/index.d.ts +1 -1
  229. package/dist/_hooks/DateTime/index.js +1 -1
  230. package/dist/_hooks/DateTime/index.js.map +1 -1
  231. package/dist/_hooks/InjectedScript.d.ts +0 -18
  232. package/dist/_hooks/InjectedScript.js +1 -39
  233. package/dist/_hooks/InjectedScript.js.map +1 -1
  234. package/dist/_hooks/ListNavigation.d.ts +0 -35
  235. package/dist/_hooks/ListNavigation.js +1 -53
  236. package/dist/_hooks/ListNavigation.js.map +1 -1
  237. package/dist/_hooks/ResizeObserver.js +1 -5
  238. package/dist/_hooks/ResizeObserver.js.map +1 -1
  239. package/dist/_hooks/TextEntry.d.ts +1 -29
  240. package/dist/_hooks/TextEntry.js +1 -42
  241. package/dist/_hooks/TextEntry.js.map +1 -1
  242. package/dist/_hooks/Timer.d.ts +0 -19
  243. package/dist/_hooks/Timer.js +0 -38
  244. package/dist/_hooks/Timer.js.map +1 -1
  245. package/dist/_hooks/Trigger.d.ts +0 -20
  246. package/dist/_hooks/Trigger.js +1 -47
  247. package/dist/_hooks/Trigger.js.map +1 -1
  248. package/dist/_hooks/Visibility.d.ts +0 -18
  249. package/dist/_hooks/Visibility.js +1 -41
  250. package/dist/_hooks/Visibility.js.map +1 -1
  251. package/dist/_typedoc/Avatar/Avatar.types.json +22 -22
  252. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  253. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  254. package/dist/_typedoc/Banner/Banner.types.json +16 -16
  255. package/dist/_typedoc/Box/Box.types.json +68 -68
  256. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +16 -14
  257. package/dist/_typedoc/Button/Button.types.json +12 -12
  258. package/dist/_typedoc/Calendar/Calendar.json +68 -0
  259. package/dist/_typedoc/Calendar/Calendar.types.json +84 -82
  260. package/dist/_typedoc/Card/Card.types.json +6 -6
  261. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  262. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  263. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  264. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  265. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  266. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  267. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +34 -29
  268. package/dist/_typedoc/Dropzone/Dropzone.types.json +51 -41
  269. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  270. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  271. package/dist/_typedoc/FileSelect/FileSelect.json +19 -0
  272. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  273. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  274. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  275. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +11 -11
  276. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  277. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  278. package/dist/_typedoc/Form/Form.types.json +787 -793
  279. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  280. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +53 -53
  281. package/dist/_typedoc/Input/Input.types.json +4 -3
  282. package/dist/_typedoc/Link/Link.types.json +4 -4
  283. package/dist/_typedoc/ListPage/ListPage.types.json +15 -14
  284. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  285. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  286. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  287. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +32 -32
  288. package/dist/_typedoc/Notation/Notation.json +9 -0
  289. package/dist/_typedoc/Notation/Notation.types.json +9 -4
  290. package/dist/_typedoc/NumberInput/NumberInput.types.json +71 -88
  291. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  292. package/dist/_typedoc/PageLayout/PageLayout.json +36 -0
  293. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  294. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  295. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  296. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  297. package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
  298. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  299. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  300. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  301. package/dist/_typedoc/Required/Required.types.json +5 -5
  302. package/dist/_typedoc/Search/Search.types.json +20 -19
  303. package/dist/_typedoc/Section/Section.types.json +14 -14
  304. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +29 -21
  305. package/dist/_typedoc/Select/Select.types.json +57 -57
  306. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  307. package/dist/_typedoc/Spinner/Spinner.types.json +11 -10
  308. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  309. package/dist/_typedoc/Table/Table.types.json +101 -100
  310. package/dist/_typedoc/Tabs/Tabs.types.json +23 -20
  311. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  312. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  313. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  314. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  315. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  316. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  317. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  318. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  319. package/dist/_typedoc/Title/Title.types.json +1 -1
  320. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  321. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  322. package/dist/_typedoc/Token/Token.types.json +4 -4
  323. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  324. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  325. package/dist/_typedoc/Tree/Tree.types.json +128 -128
  326. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  327. package/dist/_typedoc/Typography/Typography.types.json +24 -14
  328. package/dist/_typedoc/_utils/types.json +3 -3
  329. package/dist/_typedoc/deprecations.json +1 -1
  330. package/dist/_utils/closeWithConfirm.js.map +1 -0
  331. package/dist/_utils/propsTypedoc.d.ts +5 -1
  332. package/dist/_utils/propsTypedoc.js +4 -0
  333. package/dist/_utils/propsTypedoc.js.map +1 -1
  334. package/dist/index.d.ts +1 -5
  335. package/dist/index.js +4 -9
  336. package/dist/index.js.map +1 -1
  337. package/package.json +15 -5
  338. package/dist/Form/closeWithConfirm.js.map +0 -1
  339. package/dist/Sidebar/Sidebar.d.ts +0 -50
  340. package/dist/Sidebar/Sidebar.js +0 -117
  341. package/dist/Sidebar/Sidebar.js.map +0 -1
  342. package/dist/Sidebar/Sidebar.styles.d.ts +0 -9
  343. package/dist/Sidebar/Sidebar.styles.js +0 -38
  344. package/dist/Sidebar/Sidebar.styles.js.map +0 -1
  345. package/dist/Sidebar/index.d.ts +0 -1
  346. package/dist/Sidebar/index.js +0 -2
  347. package/dist/Sidebar/index.js.map +0 -1
  348. package/dist/_hooks/Analytics.d.ts +0 -36
  349. package/dist/_hooks/Analytics.js +0 -54
  350. package/dist/_hooks/Analytics.js.map +0 -1
  351. package/dist/_hooks/Autofocus.d.ts +0 -32
  352. package/dist/_hooks/Autofocus.js +0 -70
  353. package/dist/_hooks/Autofocus.js.map +0 -1
  354. package/dist/_hooks/BoundingRect.d.ts +0 -41
  355. package/dist/_hooks/BoundingRect.js +0 -90
  356. package/dist/_hooks/BoundingRect.js.map +0 -1
  357. package/dist/_hooks/Event.d.ts +0 -42
  358. package/dist/_hooks/Event.js +0 -83
  359. package/dist/_hooks/Event.js.map +0 -1
  360. package/dist/_utils/genericAnalyticsClient.d.ts +0 -25
  361. package/dist/_utils/genericAnalyticsClient.js +0 -46
  362. package/dist/_utils/genericAnalyticsClient.js.map +0 -1
  363. /package/dist/{Form → _utils}/closeWithConfirm.d.ts +0 -0
  364. /package/dist/{Form → _utils}/closeWithConfirm.js +0 -0
@@ -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 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://stories.core.procore.com/?path=/story/core-react_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?.(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,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+ {"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 IconContainerProps,\n Node,\n TreeDefaultNode,\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: TreeDefaultNode\n) => defaultGetType(node) === 'branch'\nconst defaultIsSelectable: NonNullable<TreeProps['isSelectable']> = (\n node: TreeDefaultNode\n) => node.type === 'leaf'\nconst defaultGetType: NonNullable<TreeProps['getType']> = (\n node: TreeDefaultNode\n) => node.type\nconst defaultGetParentId: NonNullable<TreeProps['getParentId']> = (\n node: TreeDefaultNode\n) => node.parentId\nconst defaultGetLabel: NonNullable<TreeProps['getLabel']> = (\n node: TreeDefaultNode\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://stories.core.procore.com/?path=/story/core-react_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?.(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,Q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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_32_0__sc-2d45b5-0"
8
+ componentId: "core-12_0_0__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_32_0__sc-2d45b5-1"
12
+ componentId: "core-12_0_0__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_32_0__sc-2d45b5-2"
16
+ componentId: "core-12_0_0__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_32_0__sc-2d45b5-3"
30
+ componentId: "core-12_0_0__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_32_0__sc-2d45b5-4"
34
+ componentId: "core-12_0_0__sc-2d45b5-4"
35
35
  })(["outline:none;"]);
36
36
  var StyledIconBase = /*#__PURE__*/styled(Box).withConfig({
37
37
  displayName: "StyledIconBase",
38
- componentId: "core-11_32_0__sc-2d45b5-5"
38
+ componentId: "core-12_0_0__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_32_0__sc-2d45b5-6"
42
+ componentId: "core-12_0_0__sc-2d45b5-6"
43
43
  })([""]);
44
44
  export var StyledIconContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
45
45
  displayName: "StyledIconContainer",
46
- componentId: "core-11_32_0__sc-2d45b5-7"
46
+ componentId: "core-12_0_0__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_32_0__sc-2d45b5-8"
53
+ componentId: "core-12_0_0__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;
@@ -12,7 +12,7 @@ export interface Node {
12
12
  */
13
13
  id: TreeNodeId;
14
14
  }
15
- export interface DefaultNode extends Node {
15
+ export interface TreeDefaultNode extends Node {
16
16
  /**
17
17
  * @since 10.19.0
18
18
  */
@@ -1 +1 @@
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 Partial<Pick<FixedSizeListProps, 'innerElementType' | 'outerElementType'>> {\n /**\n * @since 10.19.0\n */\n options: P\n /**\n * Array of keys of the expanded nodes\n * @since 10.19.0\n */\n expanded?: T['id'][]\n\n /**\n * Array of keys of the selected nodes\n * @since 10.19.0\n */\n selected?: T['id'][]\n\n /**\n * Number of nodes that can be selected\n * @default Infinity\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 * @default true\n * @since 10.19.0\n */\n multiple?: boolean\n\n /**\n * Number of visible nodes. Helps fix performance bottlenecks in large dataset\n * @default Infinity\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 * @default true\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 TreeDefaultNode 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 Partial<Pick<FixedSizeListProps, 'innerElementType' | 'outerElementType'>> {\n /**\n * @since 10.19.0\n */\n options: P\n /**\n * Array of keys of the expanded nodes\n * @since 10.19.0\n */\n expanded?: T['id'][]\n\n /**\n * Array of keys of the selected nodes\n * @since 10.19.0\n */\n selected?: T['id'][]\n\n /**\n * Number of nodes that can be selected\n * @default Infinity\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 * @default true\n * @since 10.19.0\n */\n multiple?: boolean\n\n /**\n * Number of visible nodes. Helps fix performance bottlenecks in large dataset\n * @default Infinity\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 * @default true\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,2 +1,2 @@
1
1
  export { Tree, UNSAFE_treeRootNodeId } from './Tree';
2
- export type { TreeNodeId, TreeNodeProps, TreeProps, TreeRowProps, } from './Tree.types';
2
+ export type { TreeDefaultNode, TreeNodeId, TreeNodeProps, TreeProps, TreeRowProps, } from './Tree.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Tree","UNSAFE_treeRootNodeId"],"sources":["../../src/Tree/index.ts"],"sourcesContent":["export { Tree, UNSAFE_treeRootNodeId } from './Tree'\nexport type {\n TreeNodeId,\n TreeNodeProps,\n TreeProps,\n TreeRowProps,\n} from './Tree.types'\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,qBAAqB,QAAQ,QAAQ"}
1
+ {"version":3,"file":"index.js","names":["Tree","UNSAFE_treeRootNodeId"],"sources":["../../src/Tree/index.ts"],"sourcesContent":["export { Tree, UNSAFE_treeRootNodeId } from './Tree'\nexport type {\n TreeDefaultNode,\n TreeNodeId,\n TreeNodeProps,\n TreeProps,\n TreeRowProps,\n} from './Tree.types'\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,qBAAqB,QAAQ,QAAQ"}
@@ -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_32_0__sc-gpc39h-0"
8
+ componentId: "core-12_0_0__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_32_0__sc-gpc39h-1"
12
+ componentId: "core-12_0_0__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_32_0__sc-gpc39h-2"
20
+ componentId: "core-12_0_0__sc-gpc39h-2"
21
21
  })(["position:relative;width:100%;"]);
22
22
  //# sourceMappingURL=Typeahead.styles.js.map
@@ -1,4 +1,4 @@
1
- var _excluded = ["children", "color"];
1
+ var _excluded = ["children", "color", "breakWord"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -14,9 +14,11 @@ import { StyledTypography } from './Typography.styles';
14
14
  export var Typography = /*#__PURE__*/React.forwardRef(function Typography(_ref, ref) {
15
15
  var children = _ref.children,
16
16
  color = _ref.color,
17
+ breakWord = _ref.breakWord,
17
18
  props = _objectWithoutProperties(_ref, _excluded);
18
19
  return /*#__PURE__*/React.createElement(StyledTypography, _extends({
19
- $color: color
20
+ $color: color,
21
+ breakWord: breakWord
20
22
  }, props, {
21
23
  ref: ref
22
24
  }), children);
@@ -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 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://stories.core.procore.com/?path=/story/core-react_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","breakWord","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://stories.core.procore.com/?path=/story/core-react_demos-typography--demo)\n\n */\nexport const Typography = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes & TypographyProps\n>(function Typography({ children, color, breakWord, ...props }, ref) {\n return (\n <StyledTypography $color={color} breakWord={breakWord} {...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,EAA2CC,GAAG,EAAE;EAAA,IAA7CC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAKC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EAC1D,oBACEX,KAAA,CAAAY,aAAA,CAACX,gBAAgB,EAAAY,QAAA;IAACC,MAAM,EAAEP,KAAM;IAACC,SAAS,EAAEA;EAAU,GAAKC,KAAK;IAAEJ,GAAG,EAAEA;EAAI,IACxEC,QACe,CAAC;AAEvB,CAAC,CAAC;AAEFJ,UAAU,CAACa,WAAW,GAAG,YAAY"}
@@ -35,8 +35,8 @@ export var semiboldRules = function semiboldRules() {
35
35
  };
36
36
  export var StyledTypography = /*#__PURE__*/styled.span.withConfig({
37
37
  displayName: "StyledTypography",
38
- componentId: "core-11_32_0__sc-1c4583t-0"
39
- })(["", " color:", ";font-style:", ";font-weight:", ";", " em,i{font-style:italic;}"], function (_ref) {
38
+ componentId: "core-12_0_0__sc-1c4583t-0"
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;
42
42
  return typographyIntents[intent];
@@ -51,5 +51,8 @@ export var StyledTypography = /*#__PURE__*/styled.span.withConfig({
51
51
  }, function (_ref4) {
52
52
  var weight = _ref4.weight;
53
53
  return weight && typographyWeights[weight];
54
- }, semiboldRules);
54
+ }, semiboldRules, function (_ref5) {
55
+ var breakWord = _ref5.breakWord;
56
+ return breakWord && "\n word-wrap: break-word;\n word-break: break-word;\n";
57
+ });
55
58
  //# sourceMappingURL=Typography.styles.js.map
@@ -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 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,EAAE,EAAE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M,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"}
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","_ref5","breakWord"],"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 ${({ breakWord }) =>\n breakWord &&\n `\n word-wrap: break-word;\n word-break: break-word;\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,EA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AAAC,WAAA;AAAA,4FACvC,UAAAC,IAAA;EAAA,IAAAC,WAAA,GAAAD,IAAA,CAAGP,MAAM;IAANA,MAAM,GAAAQ,WAAA,cAAG,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,EACb,UAAAgB,KAAA;EAAA,IAAGC,SAAS,GAAAD,KAAA,CAATC,SAAS;EAAA,OACZA,SAAS,6DAIZ;AAAA,EAKA"}
@@ -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_32_0__sc-p4v7d-0"
8
+ componentId: "core-12_0_0__sc-p4v7d-0"
9
9
  })([""]);
10
10
  var StyledTextCell = /*#__PURE__*/styled(Table.TextCell).withConfig({
11
11
  displayName: "StyledTextCell",
12
- componentId: "core-11_32_0__sc-p4v7d-1"
12
+ componentId: "core-12_0_0__sc-p4v7d-1"
13
13
  })(["", " color:", ";"], getTypographyIntent('body'), colors.blue50);
14
14
  function BodyCell() {
15
15
  return /*#__PURE__*/React.createElement(StyledBodyCell, {
@@ -5,37 +5,24 @@ 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 {
7
7
  /**
8
- * <span>
9
- * When children are a string or multiple elements, they will be wrapped
10
- * by a <Code>span</Code>. When it is a single element, classnames will
11
- * be added to it instead
12
- * </span>
8
+ * When children are a string or multiple elements, they will be wrapped
9
+ * by a `span`. When it is a single element, classnames will
10
+ * be added to it instead
13
11
  * @since 10.19.0
14
12
  * */
15
13
  children: React.ReactNode;
16
14
  /**
17
- * <span>
18
- * Change the HTML tag. This{' '}
19
- * <Link href="https://styled-components.com/docs/api#as-polymorphic-prop">
20
- * prop is from styled-components
21
- * </Link>
22
- * .<em>WARNING</em>: If using TypeScript, it will not switch types and
23
- * some props may error. You can add <Code>// @ts-expect-error</Code>.
24
- * See{' '}
25
- * <Link href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117">
26
- * styled-components issue
27
- * </Link>
28
- * .
29
- * </span>
15
+ * Change the HTML tag. This
16
+ * [prop is from styled-components](https://styled-components.com/docs/api#as-polymorphic-prop)
17
+ * __Warning__: If using TypeScript, it will not switch types and
18
+ * some props may error. You can add `@ts-expect-error`.
19
+ * See [styled-components issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117)
20
+ * @default 'span'
30
21
  * @since 10.19.0
31
22
  */
32
23
  as?: string | React.ComponentType<any>;
33
24
  /**
34
- * <span>
35
- * Changes font color, can be any of the{' '}
36
- * <Link to="/web/style/colors/#hsl-palette">HSL Palette</Link> css
37
- * strings
38
- * </span>
25
+ * Changes font color, can be any of the `colors` object HSL Palette
39
26
  * @default 'gray15'
40
27
  * @since 10.19.0
41
28
  */
@@ -55,4 +42,9 @@ export interface TypographyProps extends Props {
55
42
  * @since 10.19.0
56
43
  */
57
44
  weight?: Weight;
45
+ /**
46
+ * Enables word wrapping and breaking within the component
47
+ * @since 12.0.0
48
+ */
49
+ breakWord?: boolean;
58
50
  }
@@ -1 +1 @@
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
+ {"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 * When children are a string or multiple elements, they will be wrapped\n * by a `span`. When it is a single element, classnames will\n * be added to it instead\n * @since 10.19.0\n * */\n children: React.ReactNode\n\n /**\n * Change the HTML tag. This\n * [prop is from styled-components](https://styled-components.com/docs/api#as-polymorphic-prop)\n * __Warning__: If using TypeScript, it will not switch types and\n * some props may error. You can add `@ts-expect-error`.\n * See [styled-components issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117)\n * @default 'span'\n * @since 10.19.0\n */\n as?: string | React.ComponentType<any> // styled-components as\n\n /**\n * Changes font color, can be any of the `colors` object HSL Palette\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 /**\n * Enables word wrapping and breaking within the component\n * @since 12.0.0\n */\n breakWord?: boolean\n}\n"],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  export { Typography } from './Typography';
2
- export { typographyWeights } from './Typography.styles';
2
+ export { getTypographyIntent, typographyWeights } from './Typography.styles';
3
3
  export type { Intent as TypographyIntent, TypographyProps, Weight as TypographyWeight, } from './Typography.types';
@@ -1,3 +1,3 @@
1
1
  export { Typography } from './Typography';
2
- export { typographyWeights } from './Typography.styles';
2
+ export { getTypographyIntent, typographyWeights } from './Typography.styles';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","names":["Typography","getTypographyIntent","typographyWeights"],"sources":["../../src/Typography/index.ts"],"sourcesContent":["export { Typography } from './Typography'\nexport { getTypographyIntent, 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,mBAAmB,EAAEC,iBAAiB,QAAQ,qBAAqB"}
@@ -54,18 +54,3 @@ export declare function useAnchor({ canFlip, dependencies, onLayout, padding, pl
54
54
  * @deprecated Never officially documented/supported
55
55
  */
56
56
  export declare function Anchor({ children, overlayRef, targetRef, ...props }: AnchorProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
57
- /**
58
- * @deprecatedSince 9
59
- * @deprecated Never officially documented/supported
60
- */
61
- export declare const AnchorContext: React.Context<AnchorApi>;
62
- /**
63
- * @deprecatedSince 9
64
- * @deprecated Never officially documented/supported
65
- */
66
- export declare function AnchorProvider({ children, ...props }: AnchorProps): React.JSX.Element;
67
- /**
68
- * @deprecatedSince 9
69
- * @deprecated Never officially documented/supported
70
- */
71
- export declare function useAnchorContext(): AnchorApi;