@procore/core-react 11.24.1 → 11.24.2

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 (732) hide show
  1. package/.eslintignore +4 -0
  2. package/.eslintrc.cjs +54 -0
  3. package/dist/Avatar/Avatar.d.ts +2 -2
  4. package/dist/Avatar/Avatar.js.map +1 -1
  5. package/dist/Avatar/Avatar.styles.d.ts +1 -1
  6. package/dist/Avatar/Avatar.styles.js +5 -5
  7. package/dist/Avatar/Avatar.styles.js.map +1 -1
  8. package/dist/Avatar/Avatar.types.d.ts +4 -4
  9. package/dist/Avatar/Avatar.types.js.map +1 -1
  10. package/dist/AvatarStack/AvatarStack.constants.d.ts +1 -1
  11. package/dist/AvatarStack/AvatarStack.constants.js.map +1 -1
  12. package/dist/AvatarStack/AvatarStack.d.ts +2 -2
  13. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  14. package/dist/AvatarStack/AvatarStack.styles.d.ts +1 -1
  15. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  16. package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
  17. package/dist/Badge/Badge.d.ts +1 -1
  18. package/dist/Badge/Badge.js.map +1 -1
  19. package/dist/Badge/Badge.styles.d.ts +1 -1
  20. package/dist/Badge/Badge.styles.js +2 -2
  21. package/dist/Badge/Badge.styles.js.map +1 -1
  22. package/dist/Badge/Badge.types.d.ts +1 -1
  23. package/dist/Badge/Badge.types.js.map +1 -1
  24. package/dist/Banner/Banner.d.ts +2 -2
  25. package/dist/Banner/Banner.js.map +1 -1
  26. package/dist/Banner/Banner.styles.d.ts +2 -2
  27. package/dist/Banner/Banner.styles.js +10 -10
  28. package/dist/Banner/Banner.styles.js.map +1 -1
  29. package/dist/Banner/Banner.types.d.ts +1 -1
  30. package/dist/Banner/Banner.types.js.map +1 -1
  31. package/dist/Box/Box.d.ts +2 -2
  32. package/dist/Box/Box.js.map +1 -1
  33. package/dist/Box/Box.styles.d.ts +1 -1
  34. package/dist/Box/Box.styles.js +1 -1
  35. package/dist/Box/Box.styles.js.map +1 -1
  36. package/dist/Box/Box.types.d.ts +1 -1
  37. package/dist/Box/Box.types.js.map +1 -1
  38. package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  39. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  40. package/dist/Breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  41. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  42. package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  43. package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
  44. package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
  45. package/dist/Button/Button.d.ts +1 -1
  46. package/dist/Button/Button.js.map +1 -1
  47. package/dist/Button/Button.styles.d.ts +1 -1
  48. package/dist/Button/Button.styles.js +5 -5
  49. package/dist/Button/Button.styles.js.map +1 -1
  50. package/dist/Button/Button.types.d.ts +1 -1
  51. package/dist/Button/Button.types.js.map +1 -1
  52. package/dist/Button/index.d.ts +1 -1
  53. package/dist/Button/index.js.map +1 -1
  54. package/dist/Calendar/Calendar.d.ts +1 -1
  55. package/dist/Calendar/Calendar.js.map +1 -1
  56. package/dist/Calendar/Calendar.styles.js +8 -8
  57. package/dist/Calendar/Calendar.types.d.ts +2 -2
  58. package/dist/Calendar/Calendar.types.js.map +1 -1
  59. package/dist/Card/Card.d.ts +2 -2
  60. package/dist/Card/Card.js.map +1 -1
  61. package/dist/Card/Card.styles.d.ts +1 -1
  62. package/dist/Card/Card.styles.js +1 -1
  63. package/dist/Card/Card.styles.js.map +1 -1
  64. package/dist/Card/Card.types.d.ts +1 -1
  65. package/dist/Card/Card.types.js.map +1 -1
  66. package/dist/Checkbox/Checkbox.d.ts +1 -1
  67. package/dist/Checkbox/Checkbox.js.map +1 -1
  68. package/dist/Checkbox/Checkbox.styles.js +5 -5
  69. package/dist/Checkbox/Checkbox.types.d.ts +2 -2
  70. package/dist/Checkbox/Checkbox.types.js.map +1 -1
  71. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
  72. package/dist/CheckboxGroup/CheckboxGroup.js.map +1 -1
  73. package/dist/CheckboxGroup/CheckboxGroup.types.d.ts +2 -2
  74. package/dist/CheckboxGroup/CheckboxGroup.types.js.map +1 -1
  75. package/dist/ClickOutside/ClickOutside.d.ts +1 -1
  76. package/dist/ClickOutside/ClickOutside.js.map +1 -1
  77. package/dist/ContactItem/ContactItem.d.ts +3 -3
  78. package/dist/ContactItem/ContactItem.js.map +1 -1
  79. package/dist/ContactItem/ContactItem.styles.js +5 -5
  80. package/dist/ContactItem/ContactItem.types.d.ts +2 -2
  81. package/dist/ContactItem/ContactItem.types.js.map +1 -1
  82. package/dist/Content/Content.d.ts +1 -1
  83. package/dist/Content/Content.js.map +1 -1
  84. package/dist/Content/Content.styles.js +2 -2
  85. package/dist/DateInput/DateInput.d.ts +1 -1
  86. package/dist/DateInput/DateInput.js.map +1 -1
  87. package/dist/DateInput/DateInput.styles.js +6 -6
  88. package/dist/DateInput/DateInput.types.d.ts +2 -2
  89. package/dist/DateInput/DateInput.types.js.map +1 -1
  90. package/dist/DateInput/index.js.map +1 -1
  91. package/dist/DateSelect/DateSelect.d.ts +1 -1
  92. package/dist/DateSelect/DateSelect.js.map +1 -1
  93. package/dist/DateSelect/DateSelect.types.d.ts +4 -4
  94. package/dist/DateSelect/DateSelect.types.js.map +1 -1
  95. package/dist/DetailPage/DetailPage.constants.d.ts +2 -2
  96. package/dist/DetailPage/DetailPage.constants.js.map +1 -1
  97. package/dist/DetailPage/DetailPage.d.ts +3 -3
  98. package/dist/DetailPage/DetailPage.js.map +1 -1
  99. package/dist/DetailPage/DetailPage.styles.js +7 -7
  100. package/dist/DetailPage/DetailPage.types.d.ts +3 -3
  101. package/dist/DetailPage/DetailPage.types.js.map +1 -1
  102. package/dist/Dropdown/Dropdown.d.ts +2 -2
  103. package/dist/Dropdown/Dropdown.js.map +1 -1
  104. package/dist/Dropdown/Dropdown.styles.d.ts +1 -1
  105. package/dist/Dropdown/Dropdown.styles.js +3 -3
  106. package/dist/Dropdown/Dropdown.styles.js.map +1 -1
  107. package/dist/Dropdown/Dropdown.types.d.ts +4 -4
  108. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  109. package/dist/DropdownFlyout/DropdownFlyout.d.ts +1 -1
  110. package/dist/DropdownFlyout/DropdownFlyout.helpers.d.ts +1 -1
  111. package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
  112. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  113. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  114. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
  115. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  116. package/dist/DropdownFlyout/index.js.map +1 -1
  117. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.d.ts +3 -3
  118. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js.map +1 -1
  119. package/dist/Dropzone/Dropzone.d.ts +2 -2
  120. package/dist/Dropzone/Dropzone.hooks.d.ts +1 -1
  121. package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
  122. package/dist/Dropzone/Dropzone.js +1 -1
  123. package/dist/Dropzone/Dropzone.js.map +1 -1
  124. package/dist/Dropzone/Dropzone.styles.js +9 -9
  125. package/dist/Dropzone/Dropzone.types.d.ts +4 -3
  126. package/dist/Dropzone/Dropzone.types.js.map +1 -1
  127. package/dist/EmptyState/EmptyState.d.ts +2 -2
  128. package/dist/EmptyState/EmptyState.js.map +1 -1
  129. package/dist/EmptyState/EmptyState.styles.js +6 -6
  130. package/dist/EmptyState/EmptyState.types.d.ts +1 -1
  131. package/dist/EmptyState/EmptyState.types.js.map +1 -1
  132. package/dist/Field/Field.styles.js +3 -3
  133. package/dist/FileList/FileList.d.ts +2 -2
  134. package/dist/FileList/FileList.js.map +1 -1
  135. package/dist/FileList/FileList.styles.js +4 -4
  136. package/dist/FileSelect/FileExplorer/FileExplorer.d.ts +2 -2
  137. package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
  138. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  139. package/dist/FileSelect/FileExplorer/FileExplorer.types.d.ts +2 -2
  140. package/dist/FileSelect/FileExplorer/FileExplorer.types.js.map +1 -1
  141. package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +3 -3
  142. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  143. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.d.ts +1 -1
  144. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  145. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  146. package/dist/FileSelect/FileExplorer/useSidebarNavigation.d.ts +1 -1
  147. package/dist/FileSelect/FileExplorer/useSidebarNavigation.js.map +1 -1
  148. package/dist/FileSelect/FileSelect.d.ts +3 -3
  149. package/dist/FileSelect/FileSelect.js.map +1 -1
  150. package/dist/FileSelect/FileSelect.styles.js +2 -2
  151. package/dist/FileSelect/FileSelect.types.d.ts +6 -6
  152. package/dist/FileSelect/FileSelect.types.js.map +1 -1
  153. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.d.ts +1 -1
  154. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js.map +1 -1
  155. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  156. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.d.ts +2 -2
  157. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.js.map +1 -1
  158. package/dist/FileSelect/FileTokenList/FileToken.types.d.ts +1 -1
  159. package/dist/FileSelect/FileTokenList/FileToken.types.js.map +1 -1
  160. package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +2 -2
  161. package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
  162. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  163. package/dist/FileSelect/GridSource/GridSource.d.ts +2 -2
  164. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  165. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  166. package/dist/FileSelect/GridSource/GridSource.types.d.ts +2 -2
  167. package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
  168. package/dist/FileSelect/LocalSource/LocalSource.d.ts +1 -1
  169. package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
  170. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  171. package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +4 -4
  172. package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
  173. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.d.ts +1 -1
  174. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.js.map +1 -1
  175. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.d.ts +2 -2
  176. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.js.map +1 -1
  177. package/dist/FileSelect/SourceItem/SourceItem.d.ts +1 -1
  178. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  179. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  180. package/dist/FileSelect/ThumbnailList/ThumbnailList.d.ts +1 -1
  181. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  182. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  183. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +1 -1
  184. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
  185. package/dist/FileSelect/TreeSource/TreeSource.d.ts +2 -2
  186. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  187. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  188. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
  189. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  190. package/dist/FileSelect/storyHelpers.d.ts +1 -1
  191. package/dist/FileSelect/storyHelpers.js.map +1 -1
  192. package/dist/FileToken/FileToken.d.ts +2 -2
  193. package/dist/FileToken/FileToken.js.map +1 -1
  194. package/dist/FileToken/FileToken.styles.js +4 -4
  195. package/dist/FileToken/FileToken.types.d.ts +1 -1
  196. package/dist/FileToken/FileToken.types.js.map +1 -1
  197. package/dist/FilterToken/FilterToken.d.ts +2 -2
  198. package/dist/FilterToken/FilterToken.js.map +1 -1
  199. package/dist/FilterToken/FilterToken.styles.js +2 -2
  200. package/dist/FilterToken/index.d.ts +1 -1
  201. package/dist/FilterToken/index.js.map +1 -1
  202. package/dist/Flex/Flex.d.ts +2 -2
  203. package/dist/Flex/Flex.js.map +1 -1
  204. package/dist/Flex/Flex.types.d.ts +2 -2
  205. package/dist/Flex/Flex.types.js.map +1 -1
  206. package/dist/FlexList/FlexList.d.ts +2 -2
  207. package/dist/FlexList/FlexList.js.map +1 -1
  208. package/dist/FlexList/FlexList.styles.d.ts +1 -1
  209. package/dist/FlexList/FlexList.styles.js +1 -1
  210. package/dist/FlexList/FlexList.styles.js.map +1 -1
  211. package/dist/FlexList/FlexList.types.d.ts +2 -2
  212. package/dist/FlexList/FlexList.types.js.map +1 -1
  213. package/dist/Form/Form.d.ts +5 -5
  214. package/dist/Form/Form.js +75 -68
  215. package/dist/Form/Form.js.map +1 -1
  216. package/dist/Form/Form.styles.d.ts +1 -1
  217. package/dist/Form/Form.styles.js +15 -15
  218. package/dist/Form/Form.styles.js.map +1 -1
  219. package/dist/Form/Form.types.d.ts +14 -14
  220. package/dist/Form/Form.types.js.map +1 -1
  221. package/dist/Form/stories/util.d.ts +1 -1
  222. package/dist/Form/stories/util.js.map +1 -1
  223. package/dist/Grid/Grid.constants.d.ts +1 -1
  224. package/dist/Grid/Grid.constants.js.map +1 -1
  225. package/dist/Grid/Grid.d.ts +1 -1
  226. package/dist/Grid/Grid.js.map +1 -1
  227. package/dist/Grid/Grid.styles.d.ts +1 -1
  228. package/dist/Grid/Grid.styles.js +2 -2
  229. package/dist/Grid/Grid.styles.js.map +1 -1
  230. package/dist/Grid/Grid.types.d.ts +2 -2
  231. package/dist/Grid/Grid.types.js.map +1 -1
  232. package/dist/GroupSelect/GroupSelect.d.ts +2 -2
  233. package/dist/GroupSelect/GroupSelect.js.map +1 -1
  234. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  235. package/dist/GroupSelect/GroupSelect.types.d.ts +3 -3
  236. package/dist/GroupSelect/GroupSelect.types.js.map +1 -1
  237. package/dist/Input/Input.d.ts +2 -2
  238. package/dist/Input/Input.js.map +1 -1
  239. package/dist/Input/Input.styles.js +1 -1
  240. package/dist/Input/Input.types.d.ts +1 -1
  241. package/dist/Input/Input.types.js.map +1 -1
  242. package/dist/Link/Link.d.ts +1 -1
  243. package/dist/Link/Link.js.map +1 -1
  244. package/dist/Link/Link.styles.d.ts +1 -1
  245. package/dist/Link/Link.styles.js +1 -1
  246. package/dist/Link/Link.styles.js.map +1 -1
  247. package/dist/Link/Link.types.d.ts +1 -1
  248. package/dist/Link/Link.types.js.map +1 -1
  249. package/dist/ListPage/ListPage.d.ts +2 -2
  250. package/dist/ListPage/ListPage.js.map +1 -1
  251. package/dist/ListPage/ListPage.styles.js +8 -8
  252. package/dist/ListPage/ListPage.types.d.ts +1 -1
  253. package/dist/ListPage/ListPage.types.js.map +1 -1
  254. package/dist/Loader/Loader.d.ts +1 -1
  255. package/dist/Loader/Loader.js.map +1 -1
  256. package/dist/Loader/Loader.styles.js +2 -2
  257. package/dist/Loader/Loader.types.d.ts +1 -1
  258. package/dist/Loader/Loader.types.js.map +1 -1
  259. package/dist/Menu/Menu.d.ts +2 -2
  260. package/dist/Menu/Menu.js.map +1 -1
  261. package/dist/Menu/Menu.types.d.ts +7 -7
  262. package/dist/Menu/Menu.types.js.map +1 -1
  263. package/dist/MenuImperative/MenuImperative.d.ts +4 -4
  264. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  265. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  266. package/dist/MenuImperative/MenuImperative.types.d.ts +4 -4
  267. package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
  268. package/dist/MenuImperative/index.d.ts +1 -1
  269. package/dist/MenuImperative/index.js.map +1 -1
  270. package/dist/MenuImperative/sensors.d.ts +3 -3
  271. package/dist/MenuImperative/sensors.js.map +1 -1
  272. package/dist/Modal/Modal.d.ts +4 -4
  273. package/dist/Modal/Modal.js.map +1 -1
  274. package/dist/Modal/Modal.styles.d.ts +1 -1
  275. package/dist/Modal/Modal.styles.js +13 -13
  276. package/dist/Modal/Modal.styles.js.map +1 -1
  277. package/dist/Modal/Modal.types.d.ts +2 -2
  278. package/dist/Modal/Modal.types.js.map +1 -1
  279. package/dist/MultiSelect/MultiSelect.d.ts +1 -1
  280. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  281. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  282. package/dist/MultiSelect/MultiSelect.types.d.ts +3 -3
  283. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  284. package/dist/NextMenu/NextMenu.d.ts +1 -1
  285. package/dist/NextMenu/NextMenu.js.map +1 -1
  286. package/dist/NextMenu/NextMenu.styles.js +3 -3
  287. package/dist/NextMenu/NextMenu.types.d.ts +3 -3
  288. package/dist/NextMenu/NextMenu.types.js.map +1 -1
  289. package/dist/NextMenu/NextMenuItem.d.ts +1 -1
  290. package/dist/NextMenu/NextMenuItem.js.map +1 -1
  291. package/dist/NextTile/NextTile.d.ts +2 -2
  292. package/dist/NextTile/NextTile.js.map +1 -1
  293. package/dist/NextTile/NextTile.types.d.ts +2 -2
  294. package/dist/NextTile/NextTile.types.js.map +1 -1
  295. package/dist/Notation/Notation.d.ts +2 -2
  296. package/dist/Notation/Notation.js +1 -1
  297. package/dist/Notation/Notation.js.map +1 -1
  298. package/dist/Notation/Notation.types.d.ts +2 -2
  299. package/dist/Notation/Notation.types.js.map +1 -1
  300. package/dist/NumberInput/NumberInput.d.ts +2 -2
  301. package/dist/NumberInput/NumberInput.hooks.d.ts +1 -1
  302. package/dist/NumberInput/NumberInput.hooks.js.map +1 -1
  303. package/dist/NumberInput/NumberInput.js.map +1 -1
  304. package/dist/NumberInput/NumberInput.styles.js +7 -7
  305. package/dist/NumberInput/NumberInput.types.d.ts +2 -2
  306. package/dist/NumberInput/NumberInput.types.js.map +1 -1
  307. package/dist/NumberInput/NumberInput.utils.d.ts +3 -2
  308. package/dist/NumberInput/NumberInput.utils.js.map +1 -1
  309. package/dist/Overlay/Overlay.d.ts +1 -1
  310. package/dist/Overlay/Overlay.js.map +1 -1
  311. package/dist/Overlay/OverlayArrow.d.ts +2 -2
  312. package/dist/Overlay/OverlayArrow.js.map +1 -1
  313. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  314. package/dist/Overlay/useOverlay.d.ts +3 -3
  315. package/dist/Overlay/useOverlay.js.map +1 -1
  316. package/dist/OverlayTrigger/OverlayTrigger.d.ts +2 -2
  317. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  318. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +4 -4
  319. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  320. package/dist/OverlayTrigger/a11yPresets.d.ts +5 -4
  321. package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
  322. package/dist/PageLayout/PageLayout.d.ts +3 -3
  323. package/dist/PageLayout/PageLayout.js.map +1 -1
  324. package/dist/PageLayout/PageLayout.styles.d.ts +1 -1
  325. package/dist/PageLayout/PageLayout.styles.js +13 -13
  326. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  327. package/dist/PageLayout/PageLayout.types.d.ts +1 -1
  328. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  329. package/dist/Pagination/Pagination.d.ts +1 -1
  330. package/dist/Pagination/Pagination.js.map +1 -1
  331. package/dist/Pagination/Pagination.styles.js +5 -5
  332. package/dist/Pagination/Pagination.types.d.ts +2 -2
  333. package/dist/Pagination/Pagination.types.js.map +1 -1
  334. package/dist/Pagination/PaginationSelect.d.ts +1 -1
  335. package/dist/Pagination/PaginationSelect.js.map +1 -1
  336. package/dist/Panel/Panel.d.ts +3 -3
  337. package/dist/Panel/Panel.js.map +1 -1
  338. package/dist/Panel/Panel.styles.js +11 -11
  339. package/dist/Panel/Panel.types.d.ts +3 -3
  340. package/dist/Panel/Panel.types.js.map +1 -1
  341. package/dist/Pill/Pill.colorPalette.d.ts +1 -1
  342. package/dist/Pill/Pill.colorPalette.js.map +1 -1
  343. package/dist/Pill/Pill.d.ts +1 -1
  344. package/dist/Pill/Pill.js.map +1 -1
  345. package/dist/Pill/Pill.styles.d.ts +1 -1
  346. package/dist/Pill/Pill.styles.js +2 -2
  347. package/dist/Pill/Pill.styles.js.map +1 -1
  348. package/dist/PillSelect/PillSelect.d.ts +1 -1
  349. package/dist/PillSelect/PillSelect.js.map +1 -1
  350. package/dist/PillSelect/PillSelect.styles.js +4 -4
  351. package/dist/PillSelect/PillSelect.types.d.ts +2 -2
  352. package/dist/PillSelect/PillSelect.types.js.map +1 -1
  353. package/dist/Popover/Popover.d.ts +2 -2
  354. package/dist/Popover/Popover.js.map +1 -1
  355. package/dist/Popover/Popover.styles.d.ts +1 -1
  356. package/dist/Popover/Popover.styles.js +2 -2
  357. package/dist/Popover/Popover.styles.js.map +1 -1
  358. package/dist/Popover/Popover.types.d.ts +5 -5
  359. package/dist/Popover/Popover.types.js.map +1 -1
  360. package/dist/Portal/Portal.d.ts +1 -1
  361. package/dist/Portal/Portal.js.map +1 -1
  362. package/dist/Portal/Portal.styles.js +1 -1
  363. package/dist/Portal/Portal.types.d.ts +1 -1
  364. package/dist/Portal/Portal.types.js.map +1 -1
  365. package/dist/ProgressBar/ProgressBar.d.ts +1 -1
  366. package/dist/ProgressBar/ProgressBar.js.map +1 -1
  367. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  368. package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
  369. package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
  370. package/dist/RadioButton/RadioButton.d.ts +1 -1
  371. package/dist/RadioButton/RadioButton.js.map +1 -1
  372. package/dist/RadioButton/RadioButton.styles.js +3 -3
  373. package/dist/RadioButton/RadioButton.types.d.ts +1 -1
  374. package/dist/RadioButton/RadioButton.types.js.map +1 -1
  375. package/dist/Required/Required.d.ts +1 -1
  376. package/dist/Required/Required.js.map +1 -1
  377. package/dist/Required/Required.styles.js +3 -3
  378. package/dist/Required/Required.types.d.ts +1 -1
  379. package/dist/Required/Required.types.js.map +1 -1
  380. package/dist/Search/Search.d.ts +1 -1
  381. package/dist/Search/Search.hooks.d.ts +1 -1
  382. package/dist/Search/Search.hooks.js.map +1 -1
  383. package/dist/Search/Search.js +1 -2
  384. package/dist/Search/Search.js.map +1 -1
  385. package/dist/Search/Search.styles.js +5 -5
  386. package/dist/Search/Search.types.d.ts +2 -2
  387. package/dist/Search/Search.types.js.map +1 -1
  388. package/dist/Section/Section.d.ts +2 -2
  389. package/dist/Section/Section.js.map +1 -1
  390. package/dist/Section/Section.styles.js +6 -6
  391. package/dist/Section/Section.types.d.ts +2 -2
  392. package/dist/Section/Section.types.js.map +1 -1
  393. package/dist/SegmentedController/SegmentedController.d.ts +1 -1
  394. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  395. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  396. package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
  397. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  398. package/dist/Select/Select.d.ts +2 -2
  399. package/dist/Select/Select.js.map +1 -1
  400. package/dist/Select/Select.styles.js +7 -7
  401. package/dist/Select/Select.types.d.ts +4 -4
  402. package/dist/Select/Select.types.js.map +1 -1
  403. package/dist/Select/index.d.ts +1 -1
  404. package/dist/Select/index.js.map +1 -1
  405. package/dist/Semantic/Semantic.d.ts +1 -1
  406. package/dist/Semantic/Semantic.js.map +1 -1
  407. package/dist/Semantic/Semantic.styles.d.ts +1 -1
  408. package/dist/Semantic/Semantic.styles.js +8 -8
  409. package/dist/Semantic/Semantic.styles.js.map +1 -1
  410. package/dist/Semantic/Semantic.types.d.ts +1 -1
  411. package/dist/Semantic/Semantic.types.js.map +1 -1
  412. package/dist/Sidebar/Sidebar.d.ts +1 -1
  413. package/dist/Sidebar/Sidebar.js.map +1 -1
  414. package/dist/Sidebar/Sidebar.styles.js +7 -7
  415. package/dist/Slider/Slider.d.ts +1 -1
  416. package/dist/Slider/Slider.js.map +1 -1
  417. package/dist/Slider/Slider.styles.js +5 -5
  418. package/dist/Slider/Slider.types.d.ts +1 -1
  419. package/dist/Slider/Slider.types.js.map +1 -1
  420. package/dist/Spinner/Spinner.d.ts +1 -1
  421. package/dist/Spinner/Spinner.js.map +1 -1
  422. package/dist/Spinner/Spinner.styles.d.ts +2 -2
  423. package/dist/Spinner/Spinner.styles.js +7 -7
  424. package/dist/Spinner/Spinner.styles.js.map +1 -1
  425. package/dist/Spinner/Spinner.types.d.ts +2 -2
  426. package/dist/Spinner/Spinner.types.js.map +1 -1
  427. package/dist/SuperSelect/SuperSelect.components.d.ts +2 -2
  428. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  429. package/dist/SuperSelect/SuperSelect.d.ts +1 -1
  430. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  431. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  432. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  433. package/dist/SuperSelect/SuperSelect.types.d.ts +5 -5
  434. package/dist/SuperSelect/SuperSelect.types.js +1 -1
  435. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  436. package/dist/SuperSelect/SuperSelect.utils.d.ts +1 -1
  437. package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
  438. package/dist/SuperSelect/index.d.ts +3 -3
  439. package/dist/SuperSelect/index.js +2 -2
  440. package/dist/SuperSelect/index.js.map +1 -1
  441. package/dist/SuperSelect/presets/contactsPreset.d.ts +1 -1
  442. package/dist/SuperSelect/presets/contactsPreset.js.map +1 -1
  443. package/dist/SuperSelect/presets/filterPreset.d.ts +1 -1
  444. package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
  445. package/dist/SuperSelect/presets/index.d.ts +1 -1
  446. package/dist/SuperSelect/presets/index.js.map +1 -1
  447. package/dist/SuperSelect/presets/pillPreset.d.ts +1 -1
  448. package/dist/SuperSelect/presets/pillPreset.js.map +1 -1
  449. package/dist/SuperSelect/useSuperSelect.d.ts +2 -2
  450. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  451. package/dist/Switch/Switch.d.ts +2 -2
  452. package/dist/Switch/Switch.js.map +1 -1
  453. package/dist/Switch/Switch.styles.js +4 -4
  454. package/dist/Switch/Switch.types.d.ts +1 -1
  455. package/dist/Switch/Switch.types.js.map +1 -1
  456. package/dist/Table/Table.d.ts +3 -3
  457. package/dist/Table/Table.js +4 -4
  458. package/dist/Table/Table.js.map +1 -1
  459. package/dist/Table/Table.styles.d.ts +1 -1
  460. package/dist/Table/Table.styles.js +28 -28
  461. package/dist/Table/Table.styles.js.map +1 -1
  462. package/dist/Table/Table.types.d.ts +5 -5
  463. package/dist/Table/Table.types.js.map +1 -1
  464. package/dist/TableShelf/TableShelf.d.ts +1 -1
  465. package/dist/TableShelf/TableShelf.js.map +1 -1
  466. package/dist/TableShelf/TableShelf.styles.js +5 -5
  467. package/dist/Tabs/Tabs.d.ts +2 -2
  468. package/dist/Tabs/Tabs.js.map +1 -1
  469. package/dist/Tabs/Tabs.styles.js +8 -8
  470. package/dist/Tabs/Tabs.types.d.ts +4 -4
  471. package/dist/Tabs/Tabs.types.js.map +1 -1
  472. package/dist/Tearsheet/Tearsheet.constants.d.ts +1 -1
  473. package/dist/Tearsheet/Tearsheet.constants.js.map +1 -1
  474. package/dist/Tearsheet/Tearsheet.d.ts +1 -1
  475. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  476. package/dist/Tearsheet/Tearsheet.styles.d.ts +1 -1
  477. package/dist/Tearsheet/Tearsheet.styles.js +6 -6
  478. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  479. package/dist/Tearsheet/Tearsheet.types.d.ts +1 -1
  480. package/dist/Tearsheet/Tearsheet.types.js.map +1 -1
  481. package/dist/Tearsheet/Tearsheet.util.d.ts +1 -1
  482. package/dist/Tearsheet/Tearsheet.util.js.map +1 -1
  483. package/dist/TextArea/TextArea.d.ts +2 -2
  484. package/dist/TextArea/TextArea.js.map +1 -1
  485. package/dist/TextArea/TextArea.styles.d.ts +1 -1
  486. package/dist/TextArea/TextArea.styles.js +1 -1
  487. package/dist/TextArea/TextArea.styles.js.map +1 -1
  488. package/dist/TextArea/TextArea.types.d.ts +1 -1
  489. package/dist/TextArea/TextArea.types.js.map +1 -1
  490. package/dist/TextEditor/TextEditor.d.ts +1 -1
  491. package/dist/TextEditor/TextEditor.js.map +1 -1
  492. package/dist/TextEditor/TextEditor.types.d.ts +3 -3
  493. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  494. package/dist/TextEditorOutput/TextEditorOutput.d.ts +2 -2
  495. package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
  496. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  497. package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +2 -2
  498. package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
  499. package/dist/Thumbnail/Thumbnail.d.ts +1 -1
  500. package/dist/Thumbnail/Thumbnail.hooks.d.ts +3 -3
  501. package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
  502. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  503. package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
  504. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  505. package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
  506. package/dist/Thumbnail/Thumbnail.types.d.ts +5 -4
  507. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  508. package/dist/Thumbnail/Thumbnail.utils.d.ts +1 -1
  509. package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
  510. package/dist/Thumbnail/ThumbnailCaption.d.ts +1 -1
  511. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  512. package/dist/Thumbnail/ThumbnailPreview.d.ts +1 -1
  513. package/dist/Thumbnail/ThumbnailPreview.js.map +1 -1
  514. package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +2 -2
  515. package/dist/ThumbnailGrid/ThumbnailGrid.js +1 -1
  516. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  517. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +9 -9
  518. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js.map +1 -1
  519. package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +1 -1
  520. package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
  521. package/dist/TieredDropdown/TieredDropdown.helpers.d.ts +1 -1
  522. package/dist/TieredDropdown/TieredDropdown.helpers.js.map +1 -1
  523. package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
  524. package/dist/TieredDropdown/TieredDropdown.types.d.ts +3 -3
  525. package/dist/TieredDropdown/TieredDropdown.types.js.map +1 -1
  526. package/dist/TieredSelect/LeafSelectionTieredSelect.d.ts +1 -1
  527. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  528. package/dist/TieredSelect/TierSelectionTieredSelect.d.ts +1 -1
  529. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  530. package/dist/TieredSelect/TieredSelect.d.ts +2 -2
  531. package/dist/TieredSelect/TieredSelect.js.map +1 -1
  532. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  533. package/dist/TieredSelect/TieredSelect.types.d.ts +3 -3
  534. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  535. package/dist/TieredSelect/TieredSelectMenu.d.ts +1 -1
  536. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  537. package/dist/Tile/Tile.d.ts +2 -2
  538. package/dist/Tile/Tile.js.map +1 -1
  539. package/dist/Tile/Tile.styles.d.ts +1 -1
  540. package/dist/Tile/Tile.styles.js +8 -8
  541. package/dist/Tile/Tile.styles.js.map +1 -1
  542. package/dist/Tile/Tile.types.d.ts +2 -2
  543. package/dist/Tile/Tile.types.js.map +1 -1
  544. package/dist/Title/Title.d.ts +2 -2
  545. package/dist/Title/Title.js.map +1 -1
  546. package/dist/Title/Title.styles.js +7 -7
  547. package/dist/Title/Title.types.d.ts +1 -1
  548. package/dist/Title/Title.types.js.map +1 -1
  549. package/dist/Toast/Toast.d.ts +2 -2
  550. package/dist/Toast/Toast.js.map +1 -1
  551. package/dist/Toast/Toast.styles.d.ts +1 -1
  552. package/dist/Toast/Toast.styles.js +3 -3
  553. package/dist/Toast/Toast.styles.js.map +1 -1
  554. package/dist/Toast/Toast.types.d.ts +1 -1
  555. package/dist/Toast/Toast.types.js.map +1 -1
  556. package/dist/ToggleButton/ToggleButton.d.ts +1 -1
  557. package/dist/ToggleButton/ToggleButton.js.map +1 -1
  558. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  559. package/dist/ToggleButton/ToggleButton.types.d.ts +2 -2
  560. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  561. package/dist/Token/Token.d.ts +2 -2
  562. package/dist/Token/Token.js.map +1 -1
  563. package/dist/Token/Token.styles.js +3 -3
  564. package/dist/ToolHeader/ActionIcon.d.ts +1 -1
  565. package/dist/ToolHeader/ActionIcon.js.map +1 -1
  566. package/dist/ToolHeader/ActionIcon.types.d.ts +2 -2
  567. package/dist/ToolHeader/ActionIcon.types.js.map +1 -1
  568. package/dist/ToolHeader/ToolHeader.d.ts +2 -2
  569. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  570. package/dist/ToolHeader/ToolHeader.styles.d.ts +1 -1
  571. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  572. package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
  573. package/dist/ToolHeader/ToolHeader.types.d.ts +2 -2
  574. package/dist/ToolHeader/ToolHeader.types.js.map +1 -1
  575. package/dist/Tooltip/Tooltip.d.ts +2 -2
  576. package/dist/Tooltip/Tooltip.js.map +1 -1
  577. package/dist/Tooltip/Tooltip.styles.js +2 -2
  578. package/dist/Tooltip/Tooltip.types.d.ts +3 -3
  579. package/dist/Tooltip/Tooltip.types.js.map +1 -1
  580. package/dist/Tree/Tree.d.ts +1 -1
  581. package/dist/Tree/Tree.hooks.d.ts +1 -1
  582. package/dist/Tree/Tree.hooks.js.map +1 -1
  583. package/dist/Tree/Tree.js.map +1 -1
  584. package/dist/Tree/Tree.styles.js +9 -9
  585. package/dist/Tree/Tree.types.d.ts +6 -6
  586. package/dist/Tree/Tree.types.js.map +1 -1
  587. package/dist/Typeahead/Typeahead.d.ts +1 -1
  588. package/dist/Typeahead/Typeahead.js.map +1 -1
  589. package/dist/Typeahead/Typeahead.styles.js +3 -3
  590. package/dist/Typography/Typography.d.ts +2 -2
  591. package/dist/Typography/Typography.js.map +1 -1
  592. package/dist/Typography/Typography.styles.d.ts +2 -2
  593. package/dist/Typography/Typography.styles.js +1 -1
  594. package/dist/Typography/Typography.styles.js.map +1 -1
  595. package/dist/Typography/Typography.table.story.js +2 -2
  596. package/dist/Typography/Typography.types.d.ts +2 -2
  597. package/dist/Typography/Typography.types.js.map +1 -1
  598. package/dist/Typography/index.d.ts +1 -1
  599. package/dist/Typography/index.js.map +1 -1
  600. package/dist/_hooks/Anchor.d.ts +3 -2
  601. package/dist/_hooks/Anchor.js.map +1 -1
  602. package/dist/_hooks/BoundingRect.d.ts +1 -1
  603. package/dist/_hooks/BoundingRect.js.map +1 -1
  604. package/dist/_hooks/ClickOutside.d.ts +1 -1
  605. package/dist/_hooks/ClickOutside.js.map +1 -1
  606. package/dist/_hooks/DateTime/DateTime.d.ts +1 -1
  607. package/dist/_hooks/DateTime/DateTime.js.map +1 -1
  608. package/dist/_hooks/DelayedCallback.d.ts +1 -1
  609. package/dist/_hooks/DelayedCallback.js.map +1 -1
  610. package/dist/_hooks/DelayedToggle.d.ts +2 -2
  611. package/dist/_hooks/DelayedToggle.js.map +1 -1
  612. package/dist/_hooks/Event.d.ts +1 -1
  613. package/dist/_hooks/Event.js.map +1 -1
  614. package/dist/_hooks/Hotkey.d.ts +1 -1
  615. package/dist/_hooks/Hotkey.js.map +1 -1
  616. package/dist/_hooks/I18n.d.ts +1 -1
  617. package/dist/_hooks/I18n.js.map +1 -1
  618. package/dist/_hooks/OverflowObserver/OverflowObserver.d.ts +1 -1
  619. package/dist/_hooks/OverflowObserver/OverflowObserver.js.map +1 -1
  620. package/dist/_hooks/Resize.d.ts +1 -1
  621. package/dist/_hooks/Resize.js.map +1 -1
  622. package/dist/_hooks/Scroll.d.ts +1 -1
  623. package/dist/_hooks/Scroll.js.map +1 -1
  624. package/dist/_hooks/Trigger.d.ts +1 -1
  625. package/dist/_hooks/Trigger.js.map +1 -1
  626. package/dist/_hooks/useFileUploader.d.ts +1 -1
  627. package/dist/_hooks/useFileUploader.js.map +1 -1
  628. package/dist/_styles/arrows.d.ts +1 -1
  629. package/dist/_styles/arrows.js.map +1 -1
  630. package/dist/_styles/mixins.d.ts +1 -1
  631. package/dist/_styles/mixins.js.map +1 -1
  632. package/dist/_styles/shadows.d.ts +1 -1
  633. package/dist/_styles/shadows.js.map +1 -1
  634. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  635. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  636. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  637. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  638. package/dist/_typedoc/Box/Box.types.json +68 -68
  639. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  640. package/dist/_typedoc/Button/Button.types.json +11 -11
  641. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  642. package/dist/_typedoc/Card/Card.types.json +6 -6
  643. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  644. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  645. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  646. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  647. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  648. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  649. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  650. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  651. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  652. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  653. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  654. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  655. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  656. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  657. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  658. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  659. package/dist/_typedoc/Form/Form.types.json +698 -698
  660. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  661. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  662. package/dist/_typedoc/Input/Input.types.json +2 -2
  663. package/dist/_typedoc/Link/Link.types.json +4 -4
  664. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  665. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  666. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  667. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  668. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  669. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  670. package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
  671. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +30 -30
  672. package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
  673. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  674. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  675. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  676. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  677. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  678. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  679. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  680. package/dist/_typedoc/Required/Required.types.json +5 -5
  681. package/dist/_typedoc/Search/Search.types.json +18 -18
  682. package/dist/_typedoc/Section/Section.types.json +14 -14
  683. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  684. package/dist/_typedoc/Select/Select.types.json +55 -55
  685. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  686. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  687. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  688. package/dist/_typedoc/Table/Table.types.json +96 -96
  689. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  690. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  691. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  692. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  693. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  694. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  695. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  696. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  697. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  698. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  699. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  700. package/dist/_typedoc/Token/Token.types.json +4 -4
  701. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  702. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  703. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  704. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  705. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  706. package/dist/_typedoc/_utils/types.json +3 -3
  707. package/dist/_utils/CalendarHelpers.d.ts +1 -1
  708. package/dist/_utils/CalendarHelpers.js +1 -1
  709. package/dist/_utils/CalendarHelpers.js.map +1 -1
  710. package/dist/_utils/TinyMCE.d.ts +2 -2
  711. package/dist/_utils/TinyMCE.js.map +1 -1
  712. package/dist/_utils/dateTime.js.map +1 -1
  713. package/dist/_utils/getAnchorPosition.d.ts +2 -2
  714. package/dist/_utils/getAnchorPosition.js.map +1 -1
  715. package/dist/_utils/isReactElement.d.ts +1 -1
  716. package/dist/_utils/isReactElement.js.map +1 -1
  717. package/dist/_utils/mergeRefs.d.ts +1 -1
  718. package/dist/_utils/mergeRefs.js.map +1 -1
  719. package/dist/_utils/placement.d.ts +1 -1
  720. package/dist/_utils/placement.js.map +1 -1
  721. package/dist/_utils/propsTypedoc.d.ts +12 -12
  722. package/dist/_utils/propsTypedoc.js +1 -12
  723. package/dist/_utils/propsTypedoc.js.map +1 -1
  724. package/dist/_utils/slotify.d.ts +1 -1
  725. package/dist/_utils/slotify.js.map +1 -1
  726. package/dist/_utils/triggerListeners.d.ts +2 -2
  727. package/dist/_utils/triggerListeners.js.map +1 -1
  728. package/dist/_utils/types.d.ts +1 -1
  729. package/dist/_utils/types.js.map +1 -1
  730. package/package.json +2 -2
  731. package/.eslintrc.json +0 -47
  732. package/dist/Link/Link.coverage.stories.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","names":["React","OverlayTrigger","addSubcomponents","isReactElement","StyledPopover","StyledPopoverContent","Content","forwardRef","_ref","ref","children","_ref$fluid","fluid","_ref$placement","placement","props","_objectWithoutProperties","_excluded","createElement","_extends","$fluid","$placement","PopoverInner","_ref2","_ref2$initialIsVisibl","initialIsVisible","_ref2$restoreFocusOnH","restoreFocusOnHide","_ref2$placement","overlay","overlayRef","role","_excluded2","overlayNode","cloneElement","Fragment","_objectSpread","shrinkOverlay","arrow","Popover_","displayName","Popover"],"sources":["../../src/Popover/Popover.tsx"],"sourcesContent":["import React from 'react'\nimport { OverlayTrigger } from '../OverlayTrigger/OverlayTrigger'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { isReactElement } from '../_utils/isReactElement'\nimport { DivAttributes } from '../_utils/types'\nimport { StyledPopover, StyledPopoverContent } from './Popover.styles'\nimport { PopoverContentProps, PopoverProps, PopoverRole } from './Popover.types'\n\nconst Content = React.forwardRef<\n HTMLDivElement,\n DivAttributes & PopoverContentProps\n>(function Content(\n { children, fluid = false, placement = 'top', ...props },\n ref\n) {\n return (\n <StyledPopover ref={ref}>\n <StyledPopoverContent {...props} $fluid={fluid} $placement={placement}>\n {children}\n </StyledPopoverContent>\n </StyledPopover>\n )\n})\n\n/**\n\n We use popovers to display more of an item’s information or details on hover.\n This may be used to show additional fields in an item’s form that aren’t shown\n by default in the UI. Oftentimes, there will be a visual queue to indicate that\n more information is available.\n\n Do not use popovers to display large amounts of information, perform data\n entry, or use as a replacement for an overflow, menu, or modal.\n\n If you want to show descriptive / educational information about an item,\n use a tooltip.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-popover--demo)\n\n @see [Design Guidelines](https://design.procore.com/popover)\n\n */\n\nfunction PopoverInner<Role extends PopoverRole>(\n {\n children,\n initialIsVisible = false,\n restoreFocusOnHide = false,\n placement = 'top',\n overlay,\n overlayRef,\n role,\n ...props\n }: PopoverProps<Role>,\n ref: React.ForwardedRef<HTMLElement>\n) {\n const overlayNode = isReactElement(overlay) ? (\n React.cloneElement(overlay, { placement })\n ) : (\n <React.Fragment />\n )\n\n return (\n <OverlayTrigger\n {...{\n ...props,\n initialIsVisible,\n overlay: overlayNode,\n placement,\n role,\n ref,\n restoreFocusOnHide,\n shrinkOverlay: true,\n arrow: true,\n overlayRef,\n }}\n >\n {children}\n </OverlayTrigger>\n )\n}\n\nconst Popover_ = React.forwardRef(PopoverInner) as <Role extends PopoverRole>(\n props: PopoverProps<Role>\n) => ReturnType<typeof PopoverInner>\n\n// @ts-expect-error\nPopover_.displayName = 'Popover'\n\nContent.displayName = 'Popover.Content'\n\nexport const Popover = addSubcomponents({ Content }, Popover_)\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,aAAa,EAAEC,oBAAoB,QAAQ,kBAAkB;AAGtE,IAAMC,OAAO,gBAAGN,KAAK,CAACO,UAAU,CAG9B,SAASD,OAAOA,CAAAE,IAAA,EAEhBC,GAAG,EACH;EAAA,IAFEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,UAAA,GAAAH,IAAA,CAAEI,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,KAAK,GAAAA,UAAA;IAAAE,cAAA,GAAAL,IAAA,CAAEM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAKE,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAGtD,oBACEjB,KAAA,CAAAkB,aAAA,CAACd,aAAa;IAACK,GAAG,EAAEA;EAAI,gBACtBT,KAAA,CAAAkB,aAAA,CAACb,oBAAoB,EAAAc,QAAA,KAAKJ,KAAK;IAAEK,MAAM,EAAER,KAAM;IAACS,UAAU,EAAEP;EAAU,IACnEJ,QACmB,CACT,CAAC;AAEpB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASY,YAAYA,CAAAC,KAAA,EAWnBd,GAAoC,EACpC;EAAA,IAVEC,QAAQ,GA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,OAAO,GAAGvC,gBAAgB,CAAC;EAAEI,OAAO,EAAPA;AAAQ,CAAC,EAAEiC,QAAQ,CAAC"}
1
+ {"version":3,"file":"Popover.js","names":["React","OverlayTrigger","addSubcomponents","isReactElement","StyledPopover","StyledPopoverContent","Content","forwardRef","_ref","ref","children","_ref$fluid","fluid","_ref$placement","placement","props","_objectWithoutProperties","_excluded","createElement","_extends","$fluid","$placement","PopoverInner","_ref2","_ref2$initialIsVisibl","initialIsVisible","_ref2$restoreFocusOnH","restoreFocusOnHide","_ref2$placement","overlay","overlayRef","role","_excluded2","overlayNode","cloneElement","Fragment","_objectSpread","shrinkOverlay","arrow","Popover_","displayName","Popover"],"sources":["../../src/Popover/Popover.tsx"],"sourcesContent":["import React from 'react'\nimport { OverlayTrigger } from '../OverlayTrigger/OverlayTrigger'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { isReactElement } from '../_utils/isReactElement'\nimport type { DivAttributes } from '../_utils/types'\nimport { StyledPopover, StyledPopoverContent } from './Popover.styles'\nimport type {\n PopoverContentProps,\n PopoverProps,\n PopoverRole,\n} from './Popover.types'\n\nconst Content = React.forwardRef<\n HTMLDivElement,\n DivAttributes & PopoverContentProps\n>(function Content(\n { children, fluid = false, placement = 'top', ...props },\n ref\n) {\n return (\n <StyledPopover ref={ref}>\n <StyledPopoverContent {...props} $fluid={fluid} $placement={placement}>\n {children}\n </StyledPopoverContent>\n </StyledPopover>\n )\n})\n\n/**\n\n We use popovers to display more of an item’s information or details on hover.\n This may be used to show additional fields in an item’s form that aren’t shown\n by default in the UI. Oftentimes, there will be a visual queue to indicate that\n more information is available.\n\n Do not use popovers to display large amounts of information, perform data\n entry, or use as a replacement for an overflow, menu, or modal.\n\n If you want to show descriptive / educational information about an item,\n use a tooltip.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-popover--demo)\n\n @see [Design Guidelines](https://design.procore.com/popover)\n\n */\n\nfunction PopoverInner<Role extends PopoverRole>(\n {\n children,\n initialIsVisible = false,\n restoreFocusOnHide = false,\n placement = 'top',\n overlay,\n overlayRef,\n role,\n ...props\n }: PopoverProps<Role>,\n ref: React.ForwardedRef<HTMLElement>\n) {\n const overlayNode = isReactElement(overlay) ? (\n React.cloneElement(overlay, { placement })\n ) : (\n <React.Fragment />\n )\n\n return (\n <OverlayTrigger\n {...{\n ...props,\n initialIsVisible,\n overlay: overlayNode,\n placement,\n role,\n ref,\n restoreFocusOnHide,\n shrinkOverlay: true,\n arrow: true,\n overlayRef,\n }}\n >\n {children}\n </OverlayTrigger>\n )\n}\n\nconst Popover_ = React.forwardRef(PopoverInner) as <Role extends PopoverRole>(\n props: PopoverProps<Role>\n) => ReturnType<typeof PopoverInner>\n\n// @ts-expect-error\nPopover_.displayName = 'Popover'\n\nContent.displayName = 'Popover.Content'\n\nexport const Popover = addSubcomponents({ Content }, Popover_)\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,aAAa,EAAEC,oBAAoB,QAAQ,kBAAkB;AAOtE,IAAMC,OAAO,gBAAGN,KAAK,CAACO,UAAU,CAG9B,SAASD,OAAOA,CAAAE,IAAA,EAEhBC,GAAG,EACH;EAAA,IAFEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,UAAA,GAAAH,IAAA,CAAEI,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,KAAK,GAAAA,UAAA;IAAAE,cAAA,GAAAL,IAAA,CAAEM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAKE,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAGtD,oBACEjB,KAAA,CAAAkB,aAAA,CAACd,aAAa;IAACK,GAAG,EAAEA;EAAI,gBACtBT,KAAA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,GAAG,EAAHA,GAAG;IACHkB,kBAAkB,EAAlBA,kBAAkB;IAClBU,aAAa,EAAE,IAAI;IACnBC,KAAK,EAAE,IAAI;IACXR,UAAU,EAAVA;EAAU,IAGXpB,QACa,CAAC;AAErB;AAEA,IAAM6B,QAAQ,gBAAGvC,KAAK,CAACO,UAAU,CAACe,YAAY,CAEV;;AAEpC;AACAiB,QAAQ,CAACC,WAAW,GAAG,SAAS;AAEhClC,OAAO,CAACkC,WAAW,GAAG,iBAAiB;AAEvC,OAAO,IAAMC,OAAO,GAAGvC,gBAAgB,CAAC;EAAEI,OAAO,EAAPA;AAAQ,CAAC,EAAEiC,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Placement } from '../_utils/placement';
1
+ import type { Placement } from '../_utils/placement';
2
2
  export declare const popoverArrowSize = 6;
3
3
  interface StyledPopoverProps {
4
4
  $fluid: boolean;
@@ -5,7 +5,7 @@ import { getShadow } from '../_styles/shadows';
5
5
  export var popoverArrowSize = 6;
6
6
  export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledPopoverContent",
8
- componentId: "core-11_24_1__sc-1cd0ihn-0"
8
+ componentId: "core-11_24_2__sc-1cd0ihn-0"
9
9
  })(["background-color:", ";border-radius:", "px;color:", ";display:inline-block;max-width:250px;position:relative;", ""], colors.white, borderRadius.md, colors.gray15, function (_ref) {
10
10
  var $fluid = _ref.$fluid;
11
11
  if ($fluid) {
@@ -14,6 +14,6 @@ export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
14
14
  });
15
15
  export var StyledPopover = /*#__PURE__*/styled.div.withConfig({
16
16
  displayName: "StyledPopover",
17
- componentId: "core-11_24_1__sc-1cd0ihn-1"
17
+ componentId: "core-11_24_2__sc-1cd0ihn-1"
18
18
  })(["display:inline-block;", " & + [data-overlay-arrow]{background:", ";}"], getShadow(3), colors.white);
19
19
  //# sourceMappingURL=Popover.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.styles.js","names":["styled","css","borderRadius","colors","getShadow","popoverArrowSize","StyledPopoverContent","span","withConfig","displayName","componentId","white","md","gray15","_ref","$fluid","StyledPopover","div"],"sources":["../../src/Popover/Popover.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getShadow } from '../_styles/shadows'\nimport { Placement } from '../_utils/placement'\n\nexport const popoverArrowSize = 6\n\ninterface StyledPopoverProps {\n $fluid: boolean\n $placement: Placement\n}\n\nexport const StyledPopoverContent = styled.span<Required<StyledPopoverProps>>`\n background-color: ${colors.white};\n border-radius: ${borderRadius.md}px;\n\n color: ${colors.gray15};\n display: inline-block;\n max-width: 250px;\n position: relative;\n\n ${({ $fluid }) => {\n if ($fluid) {\n return css`\n max-width: none;\n `\n }\n }}\n`\n\nexport const StyledPopover = styled.div`\n display: inline-block;\n ${getShadow(3)}\n\n & + [data-overlay-arrow] {\n background: ${colors.white};\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,oBAAoB;AAG9C,OAAO,IAAMC,gBAAgB,GAAG,CAAC;AAOjC,OAAO,IAAMC,oBAAoB,gBAAGN,MAAM,CAACO,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0HACzBP,MAAM,CAACQ,KAAK,EACfT,YAAY,CAACU,EAAE,EAEvBT,MAAM,CAACU,MAAM,EAKpB,UAAAC,IAAA,EAAgB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EACT,IAAIA,MAAM,EAAE;IACV,OAAOd,GAAG;EAGZ;AACF,CAAC,CACF;AAED,OAAO,IAAMe,aAAa,gBAAGhB,MAAM,CAACiB,GAAG,CAAAT,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6EAEnCN,SAAS,CAAC,CAAC,CAAC,EAGED,MAAM,CAACQ,KAAK,CAE7B"}
1
+ {"version":3,"file":"Popover.styles.js","names":["styled","css","borderRadius","colors","getShadow","popoverArrowSize","StyledPopoverContent","span","withConfig","displayName","componentId","white","md","gray15","_ref","$fluid","StyledPopover","div"],"sources":["../../src/Popover/Popover.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getShadow } from '../_styles/shadows'\nimport type { Placement } from '../_utils/placement'\n\nexport const popoverArrowSize = 6\n\ninterface StyledPopoverProps {\n $fluid: boolean\n $placement: Placement\n}\n\nexport const StyledPopoverContent = styled.span<Required<StyledPopoverProps>>`\n background-color: ${colors.white};\n border-radius: ${borderRadius.md}px;\n\n color: ${colors.gray15};\n display: inline-block;\n max-width: 250px;\n position: relative;\n\n ${({ $fluid }) => {\n if ($fluid) {\n return css`\n max-width: none;\n `\n }\n }}\n`\n\nexport const StyledPopover = styled.div`\n display: inline-block;\n ${getShadow(3)}\n\n & + [data-overlay-arrow] {\n background: ${colors.white};\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,oBAAoB;AAG9C,OAAO,IAAMC,gBAAgB,GAAG,CAAC;AAOjC,OAAO,IAAMC,oBAAoB,gBAAGN,MAAM,CAACO,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0HACzBP,MAAM,CAACQ,KAAK,EACfT,YAAY,CAACU,EAAE,EAEvBT,MAAM,CAACU,MAAM,EAKpB,UAAAC,IAAA,EAAgB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EACT,IAAIA,MAAM,EAAE;IACV,OAAOd,GAAG;EAGZ;AACF,CAAC,CACF;AAED,OAAO,IAAMe,aAAa,gBAAGhB,MAAM,CAACiB,GAAG,CAAAT,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6EAEnCN,SAAS,CAAC,CAAC,CAAC,EAGED,MAAM,CAACQ,KAAK,CAE7B"}
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { OverlayTriggerRef } from '../OverlayTrigger/OverlayTrigger.types';
3
- import { BeforeCallback } from '../_hooks/DelayedCallback';
4
- import { TriggerConfig } from '../_hooks/Trigger';
5
- import { Placement } from '../_utils/placement';
6
- import { AriaLabelled, Props } from '../_utils/types';
2
+ import type { OverlayTriggerRef } from '../OverlayTrigger/OverlayTrigger.types';
3
+ import type { BeforeCallback } from '../_hooks/DelayedCallback';
4
+ import type { TriggerConfig } from '../_hooks/Trigger';
5
+ import type { Placement } from '../_utils/placement';
6
+ import type { AriaLabelled, Props } from '../_utils/types';
7
7
  export interface PopoverContentProps {
8
8
  /**
9
9
  * @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.types.js","names":[],"sources":["../../src/Popover/Popover.types.ts"],"sourcesContent":["import { OverlayTriggerRef } from '../OverlayTrigger/OverlayTrigger.types'\nimport { BeforeCallback } from '../_hooks/DelayedCallback'\nimport { TriggerConfig } from '../_hooks/Trigger'\nimport { Placement } from '../_utils/placement'\nimport { AriaLabelled, Props } from '../_utils/types'\n\nexport interface PopoverContentProps {\n /**\n * @since 10.19.0\n */\n fluid?: boolean\n /**\n * @since 10.19.0\n */\n placement?: Placement\n}\n\nexport type PopoverRole = 'dialog' | undefined\n\nexport interface PopoverBaseProps<Role extends PopoverRole = undefined>\n extends Props {\n /**\n * Whether to show the overlay on initial render\n * @defaultValue false\n * @since 10.19.0\n */\n initialIsVisible?: boolean\n /**\n * The tip we want to display\n * @since 10.19.0\n */\n overlay?: React.ReactElement<{ placement?: Placement }>\n /**\n * Determines the position of the arrow\n * @defaultValue top\n * @since 10.19.0\n */\n placement?: Placement\n /**\n * Return focus to trigger after the closing popover modal dialog\n * @a11y Should be set to true.\n * @defaultValue false\n * @since 11.8.0\n */\n restoreFocusOnHide?: boolean\n /**\n * The event to trigger the overlay\n * @defaultValue click\n * @since 10.19.0\n */\n trigger?: TriggerConfig['trigger']\n\n /**\n * Toggles overlay visibility\n * @since 11.2.0\n */\n overlayRef?: React.Ref<OverlayTriggerRef>\n /**\n * @since 11.11.0\n */\n role?: Role\n\n /**\n * The callback to run before the overlay is hidden. Returning\n * `false` will prevent hiding.\n * ```\n * (e: event) => boolean | Promise | undefined\n * ```\n * @since 11.15.0\n */\n beforeHide?: BeforeCallback\n\n /**\n * The callback to run before the overlay is shown. Returning\n * `false` will prevent showing.\n * ```\n * (e: event) => boolean | Promise | undefined\n * ```\n * @since 11.15.0\n */\n beforeShow?: BeforeCallback\n}\n\nexport type PopoverProps<Role extends PopoverRole = undefined> =\n Role extends 'dialog'\n ? AriaLabelled<PopoverBaseProps<'dialog'>>\n : PopoverBaseProps<undefined>\n"],"mappings":""}
1
+ {"version":3,"file":"Popover.types.js","names":[],"sources":["../../src/Popover/Popover.types.ts"],"sourcesContent":["import type { OverlayTriggerRef } from '../OverlayTrigger/OverlayTrigger.types'\nimport type { BeforeCallback } from '../_hooks/DelayedCallback'\nimport type { TriggerConfig } from '../_hooks/Trigger'\nimport type { Placement } from '../_utils/placement'\nimport type { AriaLabelled, Props } from '../_utils/types'\n\nexport interface PopoverContentProps {\n /**\n * @since 10.19.0\n */\n fluid?: boolean\n /**\n * @since 10.19.0\n */\n placement?: Placement\n}\n\nexport type PopoverRole = 'dialog' | undefined\n\nexport interface PopoverBaseProps<Role extends PopoverRole = undefined>\n extends Props {\n /**\n * Whether to show the overlay on initial render\n * @defaultValue false\n * @since 10.19.0\n */\n initialIsVisible?: boolean\n /**\n * The tip we want to display\n * @since 10.19.0\n */\n overlay?: React.ReactElement<{ placement?: Placement }>\n /**\n * Determines the position of the arrow\n * @defaultValue top\n * @since 10.19.0\n */\n placement?: Placement\n /**\n * Return focus to trigger after the closing popover modal dialog\n * @a11y Should be set to true.\n * @defaultValue false\n * @since 11.8.0\n */\n restoreFocusOnHide?: boolean\n /**\n * The event to trigger the overlay\n * @defaultValue click\n * @since 10.19.0\n */\n trigger?: TriggerConfig['trigger']\n\n /**\n * Toggles overlay visibility\n * @since 11.2.0\n */\n overlayRef?: React.Ref<OverlayTriggerRef>\n /**\n * @since 11.11.0\n */\n role?: Role\n\n /**\n * The callback to run before the overlay is hidden. Returning\n * `false` will prevent hiding.\n * ```\n * (e: event) => boolean | Promise | undefined\n * ```\n * @since 11.15.0\n */\n beforeHide?: BeforeCallback\n\n /**\n * The callback to run before the overlay is shown. Returning\n * `false` will prevent showing.\n * ```\n * (e: event) => boolean | Promise | undefined\n * ```\n * @since 11.15.0\n */\n beforeShow?: BeforeCallback\n}\n\nexport type PopoverProps<Role extends PopoverRole = undefined> =\n Role extends 'dialog'\n ? AriaLabelled<PopoverBaseProps<'dialog'>>\n : PopoverBaseProps<undefined>\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PortalProps } from './Portal.types';
2
+ import type { PortalProps } from './Portal.types';
3
3
  /**
4
4
  * @deprecatedSince 11
5
5
  * @deprecated Intended for internal library development.
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.js","names":["React","ReactDOM","useZIndexContext","StyledPortal","Portal","_ref","children","container","props","_objectWithoutProperties","_excluded","zIndexCtx","createPortal","createElement","_extends","style","zIndex","value","document","body"],"sources":["../../src/Portal/Portal.tsx"],"sourcesContent":["import React from 'react'\nimport ReactDOM from 'react-dom'\nimport { useZIndexContext } from '../_hooks/ZIndex'\nimport { StyledPortal } from './Portal.styles'\nimport { PortalProps } from './Portal.types'\n\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development.\n * @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/coverage-portal--defaults)\n */\nexport function Portal({\n children,\n container,\n ...props\n}: PortalProps): React.ReactPortal {\n const zIndexCtx = useZIndexContext()\n\n return ReactDOM.createPortal(\n <StyledPortal {...props} style={{ zIndex: zIndexCtx.value }}>\n {children}\n </StyledPortal>,\n container || document.body\n )\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,WAAW;AAChC,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,YAAY,QAAQ,iBAAiB;AAG9C;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAAAC,IAAA,EAIa;EAAA,IAHjCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACNC,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA;EAER,IAAMC,SAAS,GAAGT,gBAAgB,CAAC,CAAC;EAEpC,oBAAOD,QAAQ,CAACW,YAAY,eAC1BZ,KAAA,CAAAa,aAAA,CAACV,YAAY,EAAAW,QAAA,KAAKN,KAAK;IAAEO,KAAK,EAAE;MAAEC,MAAM,EAAEL,SAAS,CAACM;IAAM;EAAE,IACzDX,QACW,CAAC,EACfC,SAAS,IAAIW,QAAQ,CAACC,IACxB,CAAC;AACH"}
1
+ {"version":3,"file":"Portal.js","names":["React","ReactDOM","useZIndexContext","StyledPortal","Portal","_ref","children","container","props","_objectWithoutProperties","_excluded","zIndexCtx","createPortal","createElement","_extends","style","zIndex","value","document","body"],"sources":["../../src/Portal/Portal.tsx"],"sourcesContent":["import React from 'react'\nimport ReactDOM from 'react-dom'\nimport { useZIndexContext } from '../_hooks/ZIndex'\nimport { StyledPortal } from './Portal.styles'\nimport type { PortalProps } from './Portal.types'\n\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development.\n * @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/coverage-portal--defaults)\n */\nexport function Portal({\n children,\n container,\n ...props\n}: PortalProps): React.ReactPortal {\n const zIndexCtx = useZIndexContext()\n\n return ReactDOM.createPortal(\n <StyledPortal {...props} style={{ zIndex: zIndexCtx.value }}>\n {children}\n </StyledPortal>,\n container || document.body\n )\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,WAAW;AAChC,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,YAAY,QAAQ,iBAAiB;AAG9C;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAAAC,IAAA,EAIa;EAAA,IAHjCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACNC,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA;EAER,IAAMC,SAAS,GAAGT,gBAAgB,CAAC,CAAC;EAEpC,oBAAOD,QAAQ,CAACW,YAAY,eAC1BZ,KAAA,CAAAa,aAAA,CAACV,YAAY,EAAAW,QAAA,KAAKN,KAAK;IAAEO,KAAK,EAAE;MAAEC,MAAM,EAAEL,SAAS,CAACM;IAAM;EAAE,IACzDX,QACW,CAAC,EACfC,SAAS,IAAIW,QAAQ,CAACC,IACxB,CAAC;AACH"}
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledPortal = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledPortal",
4
- componentId: "core-11_24_1__sc-15o1h2-0"
4
+ componentId: "core-11_24_2__sc-15o1h2-0"
5
5
  })(["left:0;pointer-events:none;position:fixed;top:0;> *{pointer-events:all;}"]);
6
6
  //# sourceMappingURL=Portal.styles.js.map
@@ -1,4 +1,4 @@
1
- import { Props } from '../_utils/types';
1
+ import type { Props } from '../_utils/types';
2
2
  export interface PortalProps extends Props {
3
3
  /**
4
4
  * @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.types.js","names":[],"sources":["../../src/Portal/Portal.types.ts"],"sourcesContent":["import { Props } from '../_utils/types'\n\nexport interface PortalProps extends Props {\n /**\n * @since 10.19.0\n */\n container?: HTMLElement\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Portal.types.js","names":[],"sources":["../../src/Portal/Portal.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport interface PortalProps extends Props {\n /**\n * @since 10.19.0\n */\n container?: HTMLElement\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProgressBarProps } from './ProgressBar.types';
2
+ import type { ProgressBarProps } from './ProgressBar.types';
3
3
  /**
4
4
 
5
5
  Progress bars visually show system loading progress, such as uploading a file
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","names":["React","clamp","maxProgressValue","minProgressValue","StyledProgressBar","StyledProgressBarLoader","finalAnimationDuration","ProgressBar","forwardRef","_ref","ref","_ref$animated","animated","value","props","_objectWithoutProperties","_excluded","isProgressValueComplete","_React$useState","useState","_React$useState2","_slicedToArray","isFinalized","setFinalized","_React$useState3","_React$useState4","isProgressComplete","setProgressComplete","didMountRef","useRef","useEffect","current","timerId","window","setTimeout","clearTimeout","clampedValue","createElement","_extends","$complete","$finalized","role","displayName"],"sources":["../../src/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import React from 'react'\nimport { clamp, maxProgressValue, minProgressValue } from '../Loader/Loader'\nimport {\n StyledProgressBar,\n StyledProgressBarLoader,\n} from './ProgressBar.styles'\nimport { ProgressBarProps } from './ProgressBar.types'\n\nconst finalAnimationDuration = 900\n\n/**\n\n Progress bars visually show system loading progress, such as uploading a file\n or loading a page, as well as user progress, like filling out a form.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-progressbar--demo)\n\n @see [Design Guidelines](https://design.procore.com/progress-bar)\n\n */\nexport const ProgressBar = React.forwardRef<HTMLDivElement, ProgressBarProps>(\n function ProgressBar({ animated = false, value, ...props }, ref) {\n const isProgressValueComplete = value >= maxProgressValue\n const [isFinalized, setFinalized] = React.useState(false)\n const [isProgressComplete, setProgressComplete] = React.useState(\n isProgressValueComplete\n )\n const didMountRef = React.useRef(false)\n\n React.useEffect(() => {\n const isFinalized = didMountRef.current && isProgressValueComplete\n const timerId: number | null = isFinalized\n ? window.setTimeout(() => {\n setFinalized(false)\n }, finalAnimationDuration)\n : null\n\n setProgressComplete(isProgressValueComplete)\n setFinalized(isFinalized)\n\n if (!didMountRef.current) {\n didMountRef.current = true\n }\n\n return () => {\n timerId && clearTimeout(timerId)\n }\n }, [isProgressValueComplete])\n\n const clampedValue = clamp(value)\n\n return (\n <StyledProgressBar\n $complete={isProgressComplete}\n $finalized={isFinalized}\n ref={ref}\n role=\"progressbar\"\n aria-valuenow={clampedValue}\n aria-valuemin={minProgressValue}\n aria-valuemax={maxProgressValue}\n {...props}\n aria-valuetext={\n typeof props['aria-valuetext'] === 'function'\n ? props['aria-valuetext']({ value: clampedValue })\n : props['aria-valuetext']\n }\n >\n <StyledProgressBarLoader value={value} animated={animated} />\n </StyledProgressBar>\n )\n }\n)\n\nProgressBar.displayName = 'ProgressBar'\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,EAAEC,gBAAgB,QAAQ,kBAAkB;AAC5E,SACEC,iBAAiB,EACjBC,uBAAuB,QAClB,sBAAsB;AAG7B,IAAMC,sBAAsB,GAAG,GAAG;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,gBAAGP,KAAK,CAACQ,UAAU,CACzC,SAASD,WAAWA,CAAAE,IAAA,EAAwCC,GAAG,EAAE;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAA1CG,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAEE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAKC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EACtD,IAAMC,uBAAuB,GAAGJ,KAAK,IAAIX,gBAAgB;E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Y,KAAK;IACT,kBACE,OAAOA,KAAK,CAAC,gBAAgB,CAAC,KAAK,UAAU,GACzCA,KAAK,CAAC,gBAAgB,CAAC,CAAC;MAAED,KAAK,EAAEuB;IAAa,CAAC,CAAC,GAChDtB,KAAK,CAAC,gBAAgB;EAC3B,iBAEDd,KAAA,CAAAqC,aAAA,CAAChC,uBAAuB;IAACQ,KAAK,EAAEA,KAAM;IAACD,QAAQ,EAAEA;EAAS,CAAE,CAC3C,CAAC;AAExB,CACF,CAAC;AAEDL,WAAW,CAACmC,WAAW,GAAG,aAAa"}
1
+ {"version":3,"file":"ProgressBar.js","names":["React","clamp","maxProgressValue","minProgressValue","StyledProgressBar","StyledProgressBarLoader","finalAnimationDuration","ProgressBar","forwardRef","_ref","ref","_ref$animated","animated","value","props","_objectWithoutProperties","_excluded","isProgressValueComplete","_React$useState","useState","_React$useState2","_slicedToArray","isFinalized","setFinalized","_React$useState3","_React$useState4","isProgressComplete","setProgressComplete","didMountRef","useRef","useEffect","current","timerId","window","setTimeout","clearTimeout","clampedValue","createElement","_extends","$complete","$finalized","role","displayName"],"sources":["../../src/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import React from 'react'\nimport { clamp, maxProgressValue, minProgressValue } from '../Loader/Loader'\nimport {\n StyledProgressBar,\n StyledProgressBarLoader,\n} from './ProgressBar.styles'\nimport type { ProgressBarProps } from './ProgressBar.types'\n\nconst finalAnimationDuration = 900\n\n/**\n\n Progress bars visually show system loading progress, such as uploading a file\n or loading a page, as well as user progress, like filling out a form.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-progressbar--demo)\n\n @see [Design Guidelines](https://design.procore.com/progress-bar)\n\n */\nexport const ProgressBar = React.forwardRef<HTMLDivElement, ProgressBarProps>(\n function ProgressBar({ animated = false, value, ...props }, ref) {\n const isProgressValueComplete = value >= maxProgressValue\n const [isFinalized, setFinalized] = React.useState(false)\n const [isProgressComplete, setProgressComplete] = React.useState(\n isProgressValueComplete\n )\n const didMountRef = React.useRef(false)\n\n React.useEffect(() => {\n const isFinalized = didMountRef.current && isProgressValueComplete\n const timerId: number | null = isFinalized\n ? window.setTimeout(() => {\n setFinalized(false)\n }, finalAnimationDuration)\n : null\n\n setProgressComplete(isProgressValueComplete)\n setFinalized(isFinalized)\n\n if (!didMountRef.current) {\n didMountRef.current = true\n }\n\n return () => {\n timerId && clearTimeout(timerId)\n }\n }, [isProgressValueComplete])\n\n const clampedValue = clamp(value)\n\n return (\n <StyledProgressBar\n $complete={isProgressComplete}\n $finalized={isFinalized}\n ref={ref}\n role=\"progressbar\"\n aria-valuenow={clampedValue}\n aria-valuemin={minProgressValue}\n aria-valuemax={maxProgressValue}\n {...props}\n aria-valuetext={\n typeof props['aria-valuetext'] === 'function'\n ? props['aria-valuetext']({ value: clampedValue })\n : props['aria-valuetext']\n }\n >\n <StyledProgressBarLoader value={value} animated={animated} />\n </StyledProgressBar>\n )\n }\n)\n\nProgressBar.displayName = 'ProgressBar'\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,EAAEC,gBAAgB,QAAQ,kBAAkB;AAC5E,SACEC,iBAAiB,EACjBC,uBAAuB,QAClB,sBAAsB;AAG7B,IAAMC,sBAAsB,GAAG,GAAG;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,gBAAGP,KAAK,CAACQ,UAAU,CACzC,SAASD,WAAWA,CAAAE,IAAA,EAAwCC,GAAG,EAAE;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAA1CG,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAEE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAKC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EACtD,IAAMC,uBAAuB,GAAGJ,KAAK,IAAIX,gBAAg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C5BY,KAAK;IACT,kBACE,OAAOA,KAAK,CAAC,gBAAgB,CAAC,KAAK,UAAU,GACzCA,KAAK,CAAC,gBAAgB,CAAC,CAAC;MAAED,KAAK,EAAEuB;IAAa,CAAC,CAAC,GAChDtB,KAAK,CAAC,gBAAgB;EAC3B,iBAEDd,KAAA,CAAAqC,aAAA,CAAChC,uBAAuB;IAACQ,KAAK,EAAEA,KAAM;IAACD,QAAQ,EAAEA;EAAS,CAAE,CAC3C,CAAC;AAExB,CACF,CAAC;AAEDL,WAAW,CAACmC,WAAW,GAAG,aAAa"}
@@ -7,11 +7,11 @@ var animationDelay = '300ms';
7
7
  var fadeIn = /*#__PURE__*/keyframes(["from{opacity:1;}to{opacity:0;}"]);
8
8
  export var StyledProgressBarLoader = /*#__PURE__*/styled(Loader).withConfig({
9
9
  displayName: "StyledProgressBarLoader",
10
- componentId: "core-11_24_1__sc-vdy2wl-0"
10
+ componentId: "core-11_24_2__sc-vdy2wl-0"
11
11
  })([""]);
12
12
  export var StyledProgressBar = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledProgressBar",
14
- componentId: "core-11_24_1__sc-vdy2wl-1"
14
+ componentId: "core-11_24_2__sc-vdy2wl-1"
15
15
  })(["overflow:hidden;position:relative;display:block;height:", "px;background-color:", ";border-radius:", "px;margin:", "px 0;transition:background-color 0s linear;", " ", ""], loaderGridUnit, function (_ref) {
16
16
  var $complete = _ref.$complete;
17
17
  return $complete ? colors.blue50 : colors.gray94;
@@ -1,5 +1,5 @@
1
- import { LoaderProps } from '../Loader/Loader.types';
2
- import { DivAttributes } from '../_utils/types';
1
+ import type { LoaderProps } from '../Loader/Loader.types';
2
+ import type { DivAttributes } from '../_utils/types';
3
3
  declare type ValueTextRender = (props: {
4
4
  value: number;
5
5
  }) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.types.js","names":[],"sources":["../../src/ProgressBar/ProgressBar.types.ts"],"sourcesContent":["import { LoaderProps } from '../Loader/Loader.types'\nimport { DivAttributes } from '../_utils/types'\n\ntype ValueTextRender = (props: { value: number }) => string\nexport interface ProgressBarProps\n extends LoaderProps,\n Omit<DivAttributes, 'aria-valuetext'> {\n /**\n * @a11y Assistive technologies often present the value of `aria-valuenow` as a percentage.\n * If this would not be accurate, use this property to make the progress bar value understandable.\n *\n * @since 11.8.0\n */\n ['aria-valuetext']?: string | ValueTextRender\n}\n"],"mappings":""}
1
+ {"version":3,"file":"ProgressBar.types.js","names":[],"sources":["../../src/ProgressBar/ProgressBar.types.ts"],"sourcesContent":["import type { LoaderProps } from '../Loader/Loader.types'\nimport type { DivAttributes } from '../_utils/types'\n\ntype ValueTextRender = (props: { value: number }) => string\nexport interface ProgressBarProps\n extends LoaderProps,\n Omit<DivAttributes, 'aria-valuetext'> {\n /**\n * @a11y Assistive technologies often present the value of `aria-valuenow` as a percentage.\n * If this would not be accurate, use this property to make the progress bar value understandable.\n *\n * @since 11.8.0\n */\n ['aria-valuetext']?: string | ValueTextRender\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { RadioButtonProps } from './RadioButton.types';
2
+ import type { RadioButtonProps } from './RadioButton.types';
3
3
  /**
4
4
 
5
5
  We use radio buttons to allow users to select a single, exclusive option from
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.js","names":["React","StyledRadioButton","StyledRadioButtonInput","StyledRadioButtonLabel","RadioButton","forwardRef","_ref","ref","children","className","_ref$error","error","style","props","_objectWithoutProperties","_excluded","createElement","$children","$error","_extends","type","displayName"],"sources":["../../src/RadioButton/RadioButton.tsx"],"sourcesContent":["import React from 'react'\nimport {\n StyledRadioButton,\n StyledRadioButtonInput,\n StyledRadioButtonLabel,\n} from './RadioButton.styles'\nimport { RadioButtonProps } from './RadioButton.types'\n\n/**\n\n We use radio buttons to allow users to select a single, exclusive option from\n a list of multiple options.\n\n To present options in a dropdown, use a single select.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-radiobutton--demo)\n\n @see [Design Guidelines](https://design.procore.com/radio-button)\n\n */\nexport const RadioButton = React.forwardRef<\n HTMLInputElement,\n React.InputHTMLAttributes<HTMLInputElement> & RadioButtonProps\n>(function RadioButton(\n { children, className, error = false, style, ...props },\n ref\n) {\n return (\n <StyledRadioButton\n className={className}\n style={style}\n $children={children}\n $error={error}\n >\n <StyledRadioButtonInput type=\"radio\" ref={ref} {...props} />\n <StyledRadioButtonLabel>{children}</StyledRadioButtonLabel>\n </StyledRadioButton>\n )\n})\n\nRadioButton.displayName = 'RadioButton'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,iBAAiB,EACjBC,sBAAsB,EACtBC,sBAAsB,QACjB,sBAAsB;AAG7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,gBAAGJ,KAAK,CAACK,UAAU,CAGzC,SAASD,WAAWA,CAAAE,IAAA,EAEpBC,GAAG,EACH;EAAA,IAFEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAAC,UAAA,GAAAJ,IAAA,CAAEK,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,KAAK,GAAAA,UAAA;IAAEE,KAAK,GAAAN,IAAA,CAALM,KAAK;IAAKC,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAGrD,oBACEf,KAAA,CAAAgB,aAAA,CAACf,iBAAiB;IAChBQ,SAAS,EAAEA,SAAU;IACrBG,KAAK,EAAEA,KAAM;IACbK,SAAS,EAAET,QAAS;IACpBU,MAAM,EAAEP;EAAM,gBAEdX,KAAA,CAAAgB,aAAA,CAACd,sBAAsB,EAAAiB,QAAA;IAACC,IAAI,EAAC,OAAO;IAACb,GAAG,EAAEA;EAAI,GAAKM,KAAK,CAAG,CAAC,eAC5Db,KAAA,CAAAgB,aAAA,CAACb,sBAAsB,QAAEK,QAAiC,CACzC,CAAC;AAExB,CAAC,CAAC;AAEFJ,WAAW,CAACiB,WAAW,GAAG,aAAa"}
1
+ {"version":3,"file":"RadioButton.js","names":["React","StyledRadioButton","StyledRadioButtonInput","StyledRadioButtonLabel","RadioButton","forwardRef","_ref","ref","children","className","_ref$error","error","style","props","_objectWithoutProperties","_excluded","createElement","$children","$error","_extends","type","displayName"],"sources":["../../src/RadioButton/RadioButton.tsx"],"sourcesContent":["import React from 'react'\nimport {\n StyledRadioButton,\n StyledRadioButtonInput,\n StyledRadioButtonLabel,\n} from './RadioButton.styles'\nimport type { RadioButtonProps } from './RadioButton.types'\n\n/**\n\n We use radio buttons to allow users to select a single, exclusive option from\n a list of multiple options.\n\n To present options in a dropdown, use a single select.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-radiobutton--demo)\n\n @see [Design Guidelines](https://design.procore.com/radio-button)\n\n */\nexport const RadioButton = React.forwardRef<\n HTMLInputElement,\n React.InputHTMLAttributes<HTMLInputElement> & RadioButtonProps\n>(function RadioButton(\n { children, className, error = false, style, ...props },\n ref\n) {\n return (\n <StyledRadioButton\n className={className}\n style={style}\n $children={children}\n $error={error}\n >\n <StyledRadioButtonInput type=\"radio\" ref={ref} {...props} />\n <StyledRadioButtonLabel>{children}</StyledRadioButtonLabel>\n </StyledRadioButton>\n )\n})\n\nRadioButton.displayName = 'RadioButton'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,iBAAiB,EACjBC,sBAAsB,EACtBC,sBAAsB,QACjB,sBAAsB;AAG7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,gBAAGJ,KAAK,CAACK,UAAU,CAGzC,SAASD,WAAWA,CAAAE,IAAA,EAEpBC,GAAG,EACH;EAAA,IAFEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAAC,UAAA,GAAAJ,IAAA,CAAEK,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,KAAK,GAAAA,UAAA;IAAEE,KAAK,GAAAN,IAAA,CAALM,KAAK;IAAKC,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAGrD,oBACEf,KAAA,CAAAgB,aAAA,CAACf,iBAAiB;IAChBQ,SAAS,EAAEA,SAAU;IACrBG,KAAK,EAAEA,KAAM;IACbK,SAAS,EAAET,QAAS;IACpBU,MAAM,EAAEP;EAAM,gBAEdX,KAAA,CAAAgB,aAAA,CAACd,sBAAsB,EAAAiB,QAAA;IAACC,IAAI,EAAC,OAAO;IAACb,GAAG,EAAEA;EAAI,GAAKM,KAAK,CAAG,CAAC,eAC5Db,KAAA,CAAAgB,aAAA,CAACb,sBAAsB,QAAEK,QAAiC,CACzC,CAAC;AAExB,CAAC,CAAC;AAEFJ,WAAW,CAACiB,WAAW,GAAG,aAAa"}
@@ -9,7 +9,7 @@ export var dataQa = {
9
9
  var radioButtonSize = 20;
10
10
  export var StyledRadioButton = /*#__PURE__*/styled.label.withConfig({
11
11
  displayName: "StyledRadioButton",
12
- componentId: "core-11_24_1__sc-nd95zs-0"
12
+ componentId: "core-11_24_2__sc-nd95zs-0"
13
13
  })(["color:", ";display:flex;position:relative;vertical-align:middle;& + &{margin-top:", "px;}", " ", ""], colors.gray15, spacing.md, function (_ref) {
14
14
  var $error = _ref.$error;
15
15
  return $error && css(["", ":before,", ":checked:not(:disabled) + ", ":before{border-color:", ";}", ":checked:disabled + ", ":before{border-color:", ";}"], StyledRadioButtonLabel, StyledRadioButtonInput, StyledRadioButtonLabel, colors.red50, StyledRadioButtonInput, StyledRadioButtonLabel, colors.gray85);
@@ -19,10 +19,10 @@ export var StyledRadioButton = /*#__PURE__*/styled.label.withConfig({
19
19
  });
20
20
  export var StyledRadioButtonLabel = /*#__PURE__*/styled.span.withConfig({
21
21
  displayName: "StyledRadioButtonLabel",
22
- componentId: "core-11_24_1__sc-nd95zs-1"
22
+ componentId: "core-11_24_2__sc-nd95zs-1"
23
23
  })(["", ";cursor:default;display:flex;&:before{background:", ";border-radius:100%;border:2px solid ", ";content:'';display:inline-block;flex:0;height:", "px;min-width:", "px;width:", "px;}"], getTypographyIntent('body'), colors.white, colors.gray70, radioButtonSize, radioButtonSize, radioButtonSize);
24
24
  export var StyledRadioButtonInput = /*#__PURE__*/styled.input.withConfig({
25
25
  displayName: "StyledRadioButtonInput",
26
- componentId: "core-11_24_1__sc-nd95zs-2"
26
+ componentId: "core-11_24_2__sc-nd95zs-2"
27
27
  })(["left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;&:focus:not(:checked),&[data-qa=", "]:not(:checked){&:not(:disabled) + ", ":before{", "}}&:focus:checked:not(:disabled),&[data-qa=", "]:checked:not(:disabled){+ ", ":before{box-shadow:0 0 0 2px ", ";}}&:checked + ", ":before{border:6px solid ", ";}&:disabled + ", ":before{border-color:", ";}&:disabled:checked + ", ":before{border-color:", ";}"], dataQa.focused, StyledRadioButtonLabel, getFocus(), dataQa.focused, StyledRadioButtonLabel, colors.blue40, StyledRadioButtonLabel, colors.blue50, StyledRadioButtonLabel, colors.gray85, StyledRadioButtonLabel, colors.blue85);
28
28
  //# sourceMappingURL=RadioButton.styles.js.map
@@ -1,4 +1,4 @@
1
- import { Props } from '../_utils/types';
1
+ import type { Props } from '../_utils/types';
2
2
  export interface RadioButtonProps extends Props {
3
3
  /**
4
4
  * Selected state of the radio button
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.types.js","names":[],"sources":["../../src/RadioButton/RadioButton.types.ts"],"sourcesContent":["import { Props } from '../_utils/types'\n\nexport interface RadioButtonProps extends Props {\n /**\n * Selected state of the radio button\n * @since 10.19.0\n */\n checked?: boolean\n\n /**\n * Disabled state of the radio button\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Error state of the radio button\n * @since 10.19.0\n */\n error?: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"RadioButton.types.js","names":[],"sources":["../../src/RadioButton/RadioButton.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport interface RadioButtonProps extends Props {\n /**\n * Selected state of the radio button\n * @since 10.19.0\n */\n checked?: boolean\n\n /**\n * Disabled state of the radio button\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Error state of the radio button\n * @since 10.19.0\n */\n error?: boolean\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { RequiredProps } from './Required.types';
2
+ import type { RequiredProps } from './Required.types';
3
3
  /**
4
4
 
5
5
  @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Required.js","names":["React","useI18nContext","StyledRequiredContainer","StyledRequiredMark","StyledRequiredText","Required","forwardRef","_ref","ref","children","_ref$i18nScope","i18nScope","_ref$showLabel","showLabel","props","_objectWithoutProperties","_excluded","I18n","labelOrChildren","Boolean","createElement","_extends","$showLabel","t","scope","displayName"],"sources":["../../src/Required/Required.tsx"],"sourcesContent":["import React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport {\n StyledRequiredContainer,\n StyledRequiredMark,\n StyledRequiredText,\n} from './Required.styles'\nimport { RequiredProps } from './Required.types'\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-required--demo)\n\n */\nexport const Required = React.forwardRef<HTMLSpanElement, RequiredProps>(\n (\n { children, i18nScope = 'core.required', showLabel = false, ...props },\n ref\n ) => {\n const I18n = useI18nContext()\n const labelOrChildren = showLabel || Boolean(children)\n\n return (\n <StyledRequiredContainer {...props} ref={ref}>\n <StyledRequiredMark $showLabel={labelOrChildren}>*</StyledRequiredMark>\n {labelOrChildren ? (\n <StyledRequiredText>\n {children\n ? children\n : I18n.t('requiredFields', { scope: i18nScope })}\n </StyledRequiredText>\n ) : null}\n </StyledRequiredContainer>\n )\n }\n)\n\nRequired.displayName = 'Required'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,kBAAkB,QACb,mBAAmB;AAG1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGL,KAAK,CAACM,UAAU,CACtC,UAAAC,IAAA,EAEEC,GAAG,EACA;EAAA,IAFDC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,cAAA,GAAAH,IAAA,CAAEI,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,eAAe,GAAAA,cAAA;IAAAE,cAAA,GAAAL,IAAA,CAAEM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAKE,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAGpE,IAAMC,IAAI,GAAGhB,cAAc,CAAC,CAAC;EAC7B,IAAMiB,eAAe,GAAGL,SAAS,IAAIM,OAAO,CAACV,QAAQ,CAAC;EAEtD,oBACET,KAAA,CAAAoB,aAAA,CAAClB,uBAAuB,EAAAmB,QAAA,KAAKP,KAAK;IAAEN,GAAG,EAAEA;EAAI,iBAC3CR,KAAA,CAAAoB,aAAA,CAACjB,kBAAkB;IAACmB,UAAU,EAAEJ;EAAgB,GAAC,GAAqB,CAAC,EACtEA,eAAe,gBACdlB,KAAA,CAAAoB,aAAA,CAAChB,kBAAkB,QAChBK,QAAQ,GACLA,QAAQ,GACRQ,IAAI,CAACM,CAAC,CAAC,gBAAgB,EAAE;IAAEC,KAAK,EAAEb;EAAU,CAAC,CAC/B,CAAC,GACnB,IACmB,CAAC;AAE9B,CACF,CAAC;AAEDN,QAAQ,CAACoB,WAAW,GAAG,UAAU"}
1
+ {"version":3,"file":"Required.js","names":["React","useI18nContext","StyledRequiredContainer","StyledRequiredMark","StyledRequiredText","Required","forwardRef","_ref","ref","children","_ref$i18nScope","i18nScope","_ref$showLabel","showLabel","props","_objectWithoutProperties","_excluded","I18n","labelOrChildren","Boolean","createElement","_extends","$showLabel","t","scope","displayName"],"sources":["../../src/Required/Required.tsx"],"sourcesContent":["import React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport {\n StyledRequiredContainer,\n StyledRequiredMark,\n StyledRequiredText,\n} from './Required.styles'\nimport type { RequiredProps } from './Required.types'\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-required--demo)\n\n */\nexport const Required = React.forwardRef<HTMLSpanElement, RequiredProps>(\n (\n { children, i18nScope = 'core.required', showLabel = false, ...props },\n ref\n ) => {\n const I18n = useI18nContext()\n const labelOrChildren = showLabel || Boolean(children)\n\n return (\n <StyledRequiredContainer {...props} ref={ref}>\n <StyledRequiredMark $showLabel={labelOrChildren}>*</StyledRequiredMark>\n {labelOrChildren ? (\n <StyledRequiredText>\n {children\n ? children\n : I18n.t('requiredFields', { scope: i18nScope })}\n </StyledRequiredText>\n ) : null}\n </StyledRequiredContainer>\n )\n }\n)\n\nRequired.displayName = 'Required'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,kBAAkB,QACb,mBAAmB;AAG1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGL,KAAK,CAACM,UAAU,CACtC,UAAAC,IAAA,EAEEC,GAAG,EACA;EAAA,IAFDC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,cAAA,GAAAH,IAAA,CAAEI,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,eAAe,GAAAA,cAAA;IAAAE,cAAA,GAAAL,IAAA,CAAEM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAKE,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAGpE,IAAMC,IAAI,GAAGhB,cAAc,CAAC,CAAC;EAC7B,IAAMiB,eAAe,GAAGL,SAAS,IAAIM,OAAO,CAACV,QAAQ,CAAC;EAEtD,oBACET,KAAA,CAAAoB,aAAA,CAAClB,uBAAuB,EAAAmB,QAAA,KAAKP,KAAK;IAAEN,GAAG,EAAEA;EAAI,iBAC3CR,KAAA,CAAAoB,aAAA,CAACjB,kBAAkB;IAACmB,UAAU,EAAEJ;EAAgB,GAAC,GAAqB,CAAC,EACtEA,eAAe,gBACdlB,KAAA,CAAAoB,aAAA,CAAChB,kBAAkB,QAChBK,QAAQ,GACLA,QAAQ,GACRQ,IAAI,CAACM,CAAC,CAAC,gBAAgB,EAAE;IAAEC,KAAK,EAAEb;EAAU,CAAC,CAC/B,CAAC,GACnB,IACmB,CAAC;AAE9B,CACF,CAAC;AAEDN,QAAQ,CAACoB,WAAW,GAAG,UAAU"}
@@ -3,7 +3,7 @@ import { getTypographyIntent, typographyWeights } from '../Typography/Typography
3
3
  import { colors } from '../_styles/colors';
4
4
  export var StyledRequiredMark = /*#__PURE__*/styled.span.withConfig({
5
5
  displayName: "StyledRequiredMark",
6
- componentId: "core-11_24_1__sc-bja1ql-0"
6
+ componentId: "core-11_24_2__sc-bja1ql-0"
7
7
  })(["color:", ";", ""], colors.red50, function (_ref) {
8
8
  var $showLabel = _ref.$showLabel;
9
9
  if ($showLabel) {
@@ -13,10 +13,10 @@ export var StyledRequiredMark = /*#__PURE__*/styled.span.withConfig({
13
13
  });
14
14
  export var StyledRequiredContainer = /*#__PURE__*/styled.span.withConfig({
15
15
  displayName: "StyledRequiredContainer",
16
- componentId: "core-11_24_1__sc-bja1ql-1"
16
+ componentId: "core-11_24_2__sc-bja1ql-1"
17
17
  })(["", ""], getTypographyIntent('small'));
18
18
  export var StyledRequiredText = /*#__PURE__*/styled.span.withConfig({
19
19
  displayName: "StyledRequiredText",
20
- componentId: "core-11_24_1__sc-bja1ql-2"
20
+ componentId: "core-11_24_2__sc-bja1ql-2"
21
21
  })(["font-style:italic;color:", ";margin-left:4px;"], colors.gray45);
22
22
  //# sourceMappingURL=Required.styles.js.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Props } from '../_utils/types';
2
+ import type { Props } from '../_utils/types';
3
3
  export interface RequiredProps extends Props {
4
4
  /**
5
5
  * If provided, takes the place of label normally reading "required fields"
@@ -1 +1 @@
1
- {"version":3,"file":"Required.types.js","names":[],"sources":["../../src/Required/Required.types.ts"],"sourcesContent":["import { Props } from '../_utils/types'\n\nexport interface RequiredProps extends Props {\n /**\n * If provided, takes the place of label normally reading \"required fields\"\n * @since 10.19.0\n */\n children?: React.ReactChild\n /**\n * Changes where I18n looks for the requiredFields key\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * Controls showing text reading \"required fields\"\n * @since 10.19.0\n */\n showLabel?: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Required.types.js","names":[],"sources":["../../src/Required/Required.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport interface RequiredProps extends Props {\n /**\n * If provided, takes the place of label normally reading \"required fields\"\n * @since 10.19.0\n */\n children?: React.ReactChild\n /**\n * Changes where I18n looks for the requiredFields key\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * Controls showing text reading \"required fields\"\n * @since 10.19.0\n */\n showLabel?: boolean\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SearchProps } from './Search.types';
2
+ import type { SearchProps } from './Search.types';
3
3
  /**
4
4
 
5
5
  Our users use search to find items on a tool’s landing page or, in forms, users
@@ -1,2 +1,2 @@
1
- import { SearchHook, SearchHookConfig } from './Search.types';
1
+ import type { SearchHook, SearchHookConfig } from './Search.types';
2
2
  export declare function useSearch({ onChange: externalOnChange, onClear, onSubmit, initialValue, }: SearchHookConfig): SearchHook;
@@ -1 +1 @@
1
- {"version":3,"file":"Search.hooks.js","names":["React","useSearch","_ref","_ref$onChange","onChange","externalOnChange","_ref$onClear","onClear","_ref$onSubmit","onSubmit","_ref$initialValue","initialValue","_React$useState","useState","_React$useState2","_slicedToArray","value","setValue","useEffect","isEmpty","clear","target","submit","e","onKeyDown","key","stopPropagation","domHandlers"],"sources":["../../src/Search/Search.hooks.ts"],"sourcesContent":["import React from 'react'\nimport { ChangeEvent } from '../_hooks/TextEntry'\nimport { SearchHook, SearchHookConfig } from './Search.types'\n\n// TODO remove this and do a breaking change on Search to `useImperativeHandle`\n// to support controlled/uncontrolled behavior\nexport function useSearch({\n onChange: externalOnChange = () => {},\n onClear = () => {},\n onSubmit = () => {},\n initialValue = '',\n}: SearchHookConfig): SearchHook {\n const [value, setValue] = React.useState(initialValue)\n\n React.useEffect(() => {\n setValue(initialValue)\n }, [initialValue])\n\n const isEmpty = value === ''\n\n function clear() {\n setValue('')\n onChange({ target: { value: '' } } as ChangeEvent)\n onClear()\n }\n\n function submit() {\n onSubmit(value)\n }\n\n function onChange(e: ChangeEvent) {\n setValue(e.target.value)\n\n externalOnChange(e)\n }\n\n function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n if (e.key === 'Enter') {\n submit()\n } else if (e.key === 'Escape' || e.key === 'Esc') {\n // only let parent listeners (modal, overlay) know when empty\n if (value) {\n e.stopPropagation()\n }\n clear()\n }\n }\n\n return {\n clear,\n domHandlers: {\n onChange,\n onKeyDown,\n },\n isEmpty,\n submit,\n value,\n }\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB;AACA;AACA,OAAO,SAASC,SAASA,CAAAC,IAAA,EAKQ;EAAA,IAAAC,aAAA,GAAAD,IAAA,CAJ/BE,QAAQ;IAAEC,gBAAgB,GAAAF,aAAA,cAAG,YAAM,CAAC,CAAC,GAAAA,aAAA;IAAAG,YAAA,GAAAJ,IAAA,CACrCK,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,YAAM,CAAC,CAAC,GAAAA,YAAA;IAAAE,aAA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LA,KAAK,EAALA,KAAK;IACLO,WAAW,EAAE;MACXvB,QAAQ,EAARA,QAAQ;MACRoB,SAAS,EAATA;IACF,CAAC;IACDL,OAAO,EAAPA,OAAO;IACPG,MAAM,EAANA,MAAM;IACNN,KAAK,EAALA;EACF,CAAC;AACH"}
1
+ {"version":3,"file":"Search.hooks.js","names":["React","useSearch","_ref","_ref$onChange","onChange","externalOnChange","_ref$onClear","onClear","_ref$onSubmit","onSubmit","_ref$initialValue","initialValue","_React$useState","useState","_React$useState2","_slicedToArray","value","setValue","useEffect","isEmpty","clear","target","submit","e","onKeyDown","key","stopPropagation","domHandlers"],"sources":["../../src/Search/Search.hooks.ts"],"sourcesContent":["import React from 'react'\nimport type { ChangeEvent } from '../_hooks/TextEntry'\nimport type { SearchHook, SearchHookConfig } from './Search.types'\n\n// TODO remove this and do a breaking change on Search to `useImperativeHandle`\n// to support controlled/uncontrolled behavior\nexport function useSearch({\n onChange: externalOnChange = () => {},\n onClear = () => {},\n onSubmit = () => {},\n initialValue = '',\n}: SearchHookConfig): SearchHook {\n const [value, setValue] = React.useState(initialValue)\n\n React.useEffect(() => {\n setValue(initialValue)\n }, [initialValue])\n\n const isEmpty = value === ''\n\n function clear() {\n setValue('')\n onChange({ target: { value: '' } } as ChangeEvent)\n onClear()\n }\n\n function submit() {\n onSubmit(value)\n }\n\n function onChange(e: ChangeEvent) {\n setValue(e.target.value)\n\n externalOnChange(e)\n }\n\n function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n if (e.key === 'Enter') {\n submit()\n } else if (e.key === 'Escape' || e.key === 'Esc') {\n // only let parent listeners (modal, overlay) know when empty\n if (value) {\n e.stopPropagation()\n }\n clear()\n }\n }\n\n return {\n clear,\n domHandlers: {\n onChange,\n onKeyDown,\n },\n isEmpty,\n submit,\n value,\n }\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB;AACA;AACA,OAAO,SAASC,SAASA,CAAAC,IAAA,EAKQ;E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AAC,CAAC;IACV,CAAC,MAAM,IAAIC,CAAC,CAACE,GAAG,KAAK,QAAQ,IAAIF,CAAC,CAACE,GAAG,KAAK,KAAK,EAAE;MAChD;MACA,IAAIT,KAAK,EAAE;QACTO,CAAC,CAACG,eAAe,CAAC,CAAC;MACrB;MACAN,KAAK,CAAC,CAAC;IACT;EACF;EAEA,OAAO;IACLA,KAAK,EAALA,KAAK;IACLO,WAAW,EAAE;MACXvB,QAAQ,EAARA,QAAQ;MACRoB,SAAS,EAATA;IACF,CAAC;IACDL,OAAO,EAAPA,OAAO;IACPG,MAAM,EAANA,MAAM;IACNN,KAAK,EAALA;EACF,CAAC;AACH"}
@@ -3,14 +3,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
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; }
5
5
  import { Clear, Search as SearchIcon } from '@procore/core-icons/dist';
6
+ import { mergeProps } from '@react-aria/utils';
6
7
  import React from 'react';
7
8
  import { useI18nContext } from '../_hooks/I18n';
8
9
  import { mergeRefs } from '../_utils/mergeRefs';
9
10
  import { usingHookOrDefault } from '../_utils/usingHookOrDefault';
10
11
  import { useSearch } from './Search.hooks';
11
12
  import { StyledClearButton, StyledInput, StyledSearch, StyledSearchButton } from './Search.styles';
12
- import { mergeProps } from '@react-aria/utils';
13
-
14
13
  /**
15
14
 
16
15
  Our users use search to find items on a tool’s landing page or, in forms, users
@@ -1 +1 @@
1
- {"version":3,"file":"Search.js","names":["Clear","Search","SearchIcon","React","useI18nContext","mergeRefs","usingHookOrDefault","useSearch","StyledClearButton","StyledInput","StyledSearch","StyledSearchButton","mergeProps","forwardRef","_ref","ref","_ref$onChange","onChange","_ref$onClear","onClear","_ref$onSubmit","onSubmit","usingHook","_ref$value","value","props","_objectWithoutProperties","_excluded","i18n","search","initialValue","inputRef","useRef","setFocusToInput","current","focus","createElement","_extends","domHandlers","isEmpty","t","icon","size","variant","disabled","onClick","clear","tabIndex","submit","displayName"],"sources":["../../src/Search/Search.tsx"],"sourcesContent":["import { Clear, Search as SearchIcon } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { usingHookOrDefault } from '../_utils/usingHookOrDefault'\nimport { useSearch } from './Search.hooks'\nimport {\n StyledClearButton,\n StyledInput,\n StyledSearch,\n StyledSearchButton,\n} from './Search.styles'\nimport { SearchProps } from './Search.types'\nimport { mergeProps } from '@react-aria/utils'\n\n/**\n\n Our users use search to find items on a tool’s landing page or, in forms, users\n use a search typeahead to find information to associate with the form.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-search--demo)\n\n @see [Design Guidelines](https://design.procore.com/search-component)\n\n */\nexport const Search = React.forwardRef<HTMLInputElement, SearchProps>(\n function Search(\n {\n onChange = () => {},\n onClear = () => {},\n onSubmit = () => {},\n usingHook,\n value = '',\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const search = usingHookOrDefault(\n usingHook,\n useSearch\n )({\n initialValue: value,\n onChange,\n onClear,\n onSubmit,\n })\n\n const inputRef = React.useRef<HTMLInputElement>(null)\n\n const setFocusToInput = () => {\n if (inputRef.current) {\n inputRef.current.focus()\n }\n }\n\n return (\n <StyledSearch>\n <StyledInput\n {...mergeProps(props, search.domHandlers)}\n data-qa=\"core-search-input\"\n ref={mergeRefs(ref, inputRef)}\n value={search.value}\n />\n {!search.isEmpty && (\n <StyledClearButton\n aria-label={i18n.t('core.search.clear')}\n data-qa=\"core-search-clear-icon\"\n icon={<Clear />}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={props.disabled}\n onClick={() => {\n search.clear()\n\n setFocusToInput()\n }}\n tabIndex={-1} // TODO revisit this accessibility\n />\n )}\n {\n <StyledSearchButton\n aria-label={i18n.t('core.search.goSearch')}\n data-qa=\"core-search-search-icon\"\n icon={<SearchIcon />}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={props.disabled}\n onClick={() => {\n search.submit()\n\n setFocusToInput()\n }}\n tabIndex={-1} // TODO revisit this accessibility\n />\n }\n </StyledSearch>\n )\n }\n)\n\nSearch.displayName = 'Search'\n"],"mappings":";;;;AAAA,SAASA,KAAK,EAAEC,MAAM,IAAIC,UAAU,QAAQ,0BAA0B;AACtE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,SAAS,QAAQ,gBAAgB;AAC1C,SACEC,iBAAiB,EACjBC,WAAW,EACXC,YAAY,EACZC,kBAAkB,QACb,iBAAiB;AAExB,SAASC,UAAU,QAAQ,mBAAmB;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMX,MAAM,gBAAGE,KAAK,CAACU,UAAU,CACpC,SAASZ,MAAMA,CAAAa,IAAA,EASbC,GAAG,EACH;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAREG,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,YAAM,CAAC,CAAC,GAAAA,aAAA;IAAAE,YAAA,GAAAJ,IAAA,CACnBK,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,YAAM,CAAC,CAAC,GAAAA,YAAA;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AAiC,aAAA,CAACpC,KAAK,MAAE,CAAE;IAChB0C,IAAI,EAAC,IAAI;IACTC,OAAO,EAAC,UAAU;IAClBC,QAAQ,EAAEnB,KAAK,CAACmB,QAAS;IACzBC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbhB,MAAM,CAACiB,KAAK,CAAC,CAAC;MAEdb,eAAe,CAAC,CAAC;IACnB,CAAE;IACFc,QAAQ,EAAE,CAAC,CAAE,CAAC;EAAA,CACf,CACF,eAEC5C,KAAA,CAAAiC,aAAA,CAACzB,kBAAkB;IACjB,cAAYiB,IAAI,CAACY,CAAC,CAAC,sBAAsB,CAAE;IAC3C,WAAQ,yBAAyB;IACjCC,IAAI,eAAEtC,KAAA,CAAAiC,aAAA,CAAClC,UAAU,MAAE,CAAE;IACrBwC,IAAI,EAAC,IAAI;IACTC,OAAO,EAAC,UAAU;IAClBC,QAAQ,EAAEnB,KAAK,CAACmB,QAAS;IACzBC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbhB,MAAM,CAACmB,MAAM,CAAC,CAAC;MAEff,eAAe,CAAC,CAAC;IACnB,CAAE;IACFc,QAAQ,EAAE,CAAC,CAAE,CAAC;EAAA,CACf,CAES,CAAC;AAEnB,CACF,CAAC;;AAED9C,MAAM,CAACgD,WAAW,GAAG,QAAQ"}
1
+ {"version":3,"file":"Search.js","names":["Clear","Search","SearchIcon","mergeProps","React","useI18nContext","mergeRefs","usingHookOrDefault","useSearch","StyledClearButton","StyledInput","StyledSearch","StyledSearchButton","forwardRef","_ref","ref","_ref$onChange","onChange","_ref$onClear","onClear","_ref$onSubmit","onSubmit","usingHook","_ref$value","value","props","_objectWithoutProperties","_excluded","i18n","search","initialValue","inputRef","useRef","setFocusToInput","current","focus","createElement","_extends","domHandlers","isEmpty","t","icon","size","variant","disabled","onClick","clear","tabIndex","submit","displayName"],"sources":["../../src/Search/Search.tsx"],"sourcesContent":["import { Clear, Search as SearchIcon } from '@procore/core-icons/dist'\nimport { mergeProps } from '@react-aria/utils'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { usingHookOrDefault } from '../_utils/usingHookOrDefault'\nimport { useSearch } from './Search.hooks'\nimport {\n StyledClearButton,\n StyledInput,\n StyledSearch,\n StyledSearchButton,\n} from './Search.styles'\nimport type { SearchProps } from './Search.types'\n\n/**\n\n Our users use search to find items on a tool’s landing page or, in forms, users\n use a search typeahead to find information to associate with the form.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-search--demo)\n\n @see [Design Guidelines](https://design.procore.com/search-component)\n\n */\nexport const Search = React.forwardRef<HTMLInputElement, SearchProps>(\n function Search(\n {\n onChange = () => {},\n onClear = () => {},\n onSubmit = () => {},\n usingHook,\n value = '',\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const search = usingHookOrDefault(\n usingHook,\n useSearch\n )({\n initialValue: value,\n onChange,\n onClear,\n onSubmit,\n })\n\n const inputRef = React.useRef<HTMLInputElement>(null)\n\n const setFocusToInput = () => {\n if (inputRef.current) {\n inputRef.current.focus()\n }\n }\n\n return (\n <StyledSearch>\n <StyledInput\n {...mergeProps(props, search.domHandlers)}\n data-qa=\"core-search-input\"\n ref={mergeRefs(ref, inputRef)}\n value={search.value}\n />\n {!search.isEmpty && (\n <StyledClearButton\n aria-label={i18n.t('core.search.clear')}\n data-qa=\"core-search-clear-icon\"\n icon={<Clear />}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={props.disabled}\n onClick={() => {\n search.clear()\n\n setFocusToInput()\n }}\n tabIndex={-1} // TODO revisit this accessibility\n />\n )}\n {\n <StyledSearchButton\n aria-label={i18n.t('core.search.goSearch')}\n data-qa=\"core-search-search-icon\"\n icon={<SearchIcon />}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={props.disabled}\n onClick={() => {\n search.submit()\n\n setFocusToInput()\n }}\n tabIndex={-1} // TODO revisit this accessibility\n />\n }\n </Styled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AU,MAAE,CAAE;IACrBwC,IAAI,EAAC,IAAI;IACTC,OAAO,EAAC,UAAU;IAClBC,QAAQ,EAAEnB,KAAK,CAACmB,QAAS;IACzBC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbhB,MAAM,CAACmB,MAAM,CAAC,CAAC;MAEff,eAAe,CAAC,CAAC;IACnB,CAAE;IACFc,QAAQ,EAAE,CAAC,CAAE,CAAC;EAAA,CACf,CAES,CAAC;AAEnB,CACF,CAAC;;AAED9C,MAAM,CAACgD,WAAW,GAAG,QAAQ"}
@@ -27,22 +27,22 @@ export function getSearchInputStyles() {
27
27
  }
28
28
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
29
29
  displayName: "StyledInput",
30
- componentId: "core-11_24_1__sc-3j8khv-0"
30
+ componentId: "core-11_24_2__sc-3j8khv-0"
31
31
  })(["", ""], getSearchInputStyles);
32
32
  var StyledButton = /*#__PURE__*/styled(Button).withConfig({
33
33
  displayName: "StyledButton",
34
- componentId: "core-11_24_1__sc-3j8khv-1"
34
+ componentId: "core-11_24_2__sc-3j8khv-1"
35
35
  })(["position:absolute;top:", "px;"], buttonTop);
36
36
  export var StyledSearchButton = /*#__PURE__*/styled(StyledButton).withConfig({
37
37
  displayName: "StyledSearchButton",
38
- componentId: "core-11_24_1__sc-3j8khv-2"
38
+ componentId: "core-11_24_2__sc-3j8khv-2"
39
39
  })([""]);
40
40
  export var StyledClearButton = /*#__PURE__*/styled(StyledButton).withConfig({
41
41
  displayName: "StyledClearButton",
42
- componentId: "core-11_24_1__sc-3j8khv-3"
42
+ componentId: "core-11_24_2__sc-3j8khv-3"
43
43
  })([""]);
44
44
  export var StyledSearch = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSearch",
46
- componentId: "core-11_24_1__sc-3j8khv-4"
46
+ componentId: "core-11_24_2__sc-3j8khv-4"
47
47
  })(["position:relative;width:100%;", "{padding-right:", "px;}", "{right:", "px;}", "{right:", "px;}"], StyledInput, inputRight, StyledSearchButton, searchRight, StyledClearButton, clearRight);
48
48
  //# sourceMappingURL=Search.styles.js.map
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { InputProps } from '../Input/Input.types';
3
- import { ChangeEvent } from '../_hooks/TextEntry';
2
+ import type { InputProps } from '../Input/Input.types';
3
+ import type { ChangeEvent } from '../_hooks/TextEntry';
4
4
  export interface SearchHookConfig {
5
5
  /**
6
6
  * @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Search.types.js","names":[],"sources":["../../src/Search/Search.types.ts"],"sourcesContent":["import { InputProps } from '../Input/Input.types'\nimport { ChangeEvent } from '../_hooks/TextEntry'\n\nexport interface SearchHookConfig {\n /**\n * @since 10.19.0\n */\n initialValue?: string\n /**\n * @deprecated\n *\n * The `onChange` prop has been deprecated and will be removed in a future version.\n *\n * A new component, `Typeahead`, has been introduced with specific UX for typeahead-like\n * behavior. Please use this component instead.\n *\n * **Before**\n *\n * <Search typeahead onChange={() => { ... }} />\n *\n * **After**\n *\n * <Typeahead onChange={() => { ... }} />\n *\n * @deprecatedSince 10.20.0\n *\n * @see https://core.procore.com/latest/web/components/typeahead/react/\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onClear?: () => void\n\n /**\n * <div>Input handler for search variant</div>\n * <CodeBlock>(value: string) => void</CodeBlock>\n * @since 10.19.0\n */\n onSubmit?: (value: string) => void\n}\n\nexport interface SearchHook {\n /**\n * @since 10.19.0\n */\n domHandlers: {\n onChange: (e: ChangeEvent) => void\n onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void\n }\n /**\n * @since 10.19.0\n */\n clear: () => void\n /**\n * @since 10.19.0\n */\n isEmpty: boolean\n /**\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n submit: () => void\n /**\n * @since 10.19.0\n */\n value: string\n}\n\nexport interface SearchProps\n extends Omit<InputProps, 'onSubmit'>,\n SearchHookConfig {\n /**\n * @since 10.19.0\n */\n autoFocus?: boolean\n /**\n * @since 10.19.0\n */\n usingHook?: SearchHook\n\n /**\n * Initial value string\n * @default ''\n * @since 10.19.0\n */\n value?: string\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Search.types.js","names":[],"sources":["../../src/Search/Search.types.ts"],"sourcesContent":["import type { InputProps } from '../Input/Input.types'\nimport type { ChangeEvent } from '../_hooks/TextEntry'\n\nexport interface SearchHookConfig {\n /**\n * @since 10.19.0\n */\n initialValue?: string\n /**\n * @deprecated\n *\n * The `onChange` prop has been deprecated and will be removed in a future version.\n *\n * A new component, `Typeahead`, has been introduced with specific UX for typeahead-like\n * behavior. Please use this component instead.\n *\n * **Before**\n *\n * <Search typeahead onChange={() => { ... }} />\n *\n * **After**\n *\n * <Typeahead onChange={() => { ... }} />\n *\n * @deprecatedSince 10.20.0\n *\n * @see https://core.procore.com/latest/web/components/typeahead/react/\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onClear?: () => void\n\n /**\n * <div>Input handler for search variant</div>\n * <CodeBlock>(value: string) => void</CodeBlock>\n * @since 10.19.0\n */\n onSubmit?: (value: string) => void\n}\n\nexport interface SearchHook {\n /**\n * @since 10.19.0\n */\n domHandlers: {\n onChange: (e: ChangeEvent) => void\n onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void\n }\n /**\n * @since 10.19.0\n */\n clear: () => void\n /**\n * @since 10.19.0\n */\n isEmpty: boolean\n /**\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n submit: () => void\n /**\n * @since 10.19.0\n */\n value: string\n}\n\nexport interface SearchProps\n extends Omit<InputProps, 'onSubmit'>,\n SearchHookConfig {\n /**\n * @since 10.19.0\n */\n autoFocus?: boolean\n /**\n * @since 10.19.0\n */\n usingHook?: SearchHook\n\n /**\n * Initial value string\n * @default ''\n * @since 10.19.0\n */\n value?: string\n}\n"],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { HeadingProps } from '../Semantic/Semantic.types';
3
- import { SectionProps, SectionProviderProps } from './Section.types';
2
+ import type { HeadingProps } from '../Semantic/Semantic.types';
3
+ import type { SectionProps, SectionProviderProps } from './Section.types';
4
4
  export declare const LevelContext: React.Context<number>;
5
5
  export declare function Heading({ level: level_, ...props }: HeadingProps & {
6
6
  level?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Section.js","names":["ChevronDown","ChevronRight","cx","React","ulid","Button","getHeadingComponent","Title","sectionClassnames","StyledSection","StyledSectionCollapseHeading","StyledSectionContentRegion","StyledSectionHeader","StyledSectionInner","StyledTitle","isFunction","obj","LevelContext","createContext","SectionContext","open","setSection","toggleSection","Heading","_ref","level_","level","props","_objectWithoutProperties","_excluded","useContext","H","createElement","SectionProvider","_ref2","children","_React$useState","useState","_React$useState2","_slicedToArray","setSectionsOpen","id","prev","_objectSpread","_defineProperty","Provider","value","Section","forwardRef","_ref3","ref","_cx","actions","className","expandId","heading","_ref3$initialIsOpen","initialIsOpen","pills","subtext","assets","_excluded2","sections","toggleOpen","useCallback","useEffect","undefined","_React$useMemo","useMemo","contentRegionId","concat","headingTextId","expandClosed","divide","hasHeader","_extends","levelAnonymous","role","icon","onClick","variant","Text","Subtext","Pills","Actions","Assets","$closed","$noHeader","displayName"],"sources":["../../src/Section/Section.tsx"],"sourcesContent":["import { ChevronDown, ChevronRight } from '@procore/core-icons/dist'\nimport cx from 'classnames'\nimport React from 'react'\nimport { ulid } from 'ulid'\nimport { Button } from '../Button/Button'\nimport { getHeadingComponent } from '../Semantic/Semantic'\nimport { HeadingProps } from '../Semantic/Semantic.types'\nimport { Title } from '../Title/Title'\nimport {\n sectionClassnames,\n StyledSection,\n StyledSectionCollapseHeading,\n StyledSectionContentRegion,\n StyledSectionHeader,\n StyledSectionInner,\n StyledTitle,\n} from './Section.styles'\nimport {\n SectionContextAPI,\n SectionProps,\n SectionProviderProps,\n} from './Section.types'\n\nconst isFunction = (obj: unknown): boolean => typeof obj === 'function'\n\n// Header levels start at level 2\nexport const LevelContext = React.createContext(2)\n\nconst SectionContext = React.createContext<SectionContextAPI>({\n open: {},\n setSection: () => {},\n toggleSection: () => {},\n})\n\nexport function Heading({\n level: level_,\n ...props\n}: HeadingProps & { level?: number }) {\n const level = React.useContext(LevelContext)\n const H = getHeadingComponent(level_ || level)\n return <H {...props} />\n}\n\nexport const SectionProvider = ({ children }: SectionProviderProps) => {\n const [open, setSectionsOpen] = React.useState<{\n [key: string]: boolean\n }>({})\n\n const toggleSection: SectionContextAPI['toggleSection'] = (id) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: !prev[id],\n }))\n\n const setSection: SectionContextAPI['setSection'] = (id, open) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: open,\n }))\n\n return (\n <SectionContext.Provider\n value={{\n open,\n toggleSection,\n setSection,\n }}\n >\n {children}\n </SectionContext.Provider>\n )\n}\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development. See Panel.Section or DetailPage.Section\n */\nexport const Section = React.forwardRef<HTMLDivElement, SectionProps>(\n function Section(\n {\n actions,\n children,\n className,\n expandId,\n heading,\n initialIsOpen = true,\n pills,\n subtext,\n assets,\n ...props\n },\n ref\n ) {\n const level = React.useContext(LevelContext)\n\n const sections = React.useContext(SectionContext)\n const toggleOpen = React.useCallback(() => {\n if (expandId) {\n sections.toggleSection(expandId)\n }\n }, [expandId])\n const open = expandId ? sections.open[expandId] : true\n\n React.useEffect(() => {\n if (expandId && open === undefined) {\n sections.setSection(expandId, initialIsOpen)\n }\n }, [])\n\n const { contentRegionId, headingTextId } = React.useMemo(() => {\n return {\n contentRegionId: `content-${ulid()}`,\n headingTextId: `heading-${ulid()}`,\n }\n }, [])\n\n const expandClosed = !open || !children\n const divide = level >= 3 || !heading\n const hasHeader = heading || actions\n\n return (\n <LevelContext.Provider value={level + 1}>\n <StyledSection\n ref={ref}\n className={cx(className, {\n [sectionClassnames.divide]: divide,\n [sectionClassnames.levelAnonymous]: !heading,\n [sectionClassnames.level(level)]: heading && level,\n })}\n {...props}\n >\n <StyledSectionInner>\n {hasHeader ? (\n <StyledSectionHeader>\n {expandId ? (\n <StyledSectionCollapseHeading\n aria-labelledby={headingTextId}\n aria-level={level}\n role=\"heading\"\n >\n <Button\n aria-controls={contentRegionId}\n aria-expanded={open}\n aria-labelledby={headingTextId}\n icon={open ? <ChevronDown /> : <ChevronRight />}\n onClick={toggleOpen}\n variant=\"tertiary\"\n />\n </StyledSectionCollapseHeading>\n ) : null}\n <StyledTitle>\n <Title.Text>\n {heading && (\n <Heading\n aria-hidden={expandId ? true : false}\n id={headingTextId}\n // Pass level since Heading component renders\n // under the incremented (level + 1) LevelProvider.\n // Alternative, render Heading as a variable outside of return.\n level={level}\n >\n {heading}\n </Heading>\n )}\n </Title.Text>\n <Title.Subtext>{subtext}</Title.Subtext>\n <Title.Pills>{pills}</Title.Pills>\n <Title.Actions>\n {isFunction(actions)\n ? (actions as Function)({ open })\n : actions}\n </Title.Actions>\n <Title.Assets>{assets}</Title.Assets>\n </StyledTitle>\n </StyledSectionHeader>\n ) : null}\n <StyledSectionContentRegion\n aria-hidden={!open}\n aria-labelledby={heading ? headingTextId : undefined}\n id={contentRegionId}\n role=\"region\"\n $closed={expandClosed}\n $noHeader={!hasHeader}\n >\n {open ? children : null}\n </StyledSectionContentRegion>\n </StyledSectionInner>\n </StyledSection>\n </LevelContext.Provider>\n )\n }\n)\n\nSection.displayName = 'Section'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,MAAM;AAC3B,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,mBAAmB,QAA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eACbpD,KAAA,CAAA6B,aAAA,CAACzB,KAAK,CAAC2E,OAAO,QAAEvB,OAAuB,CAAC,eACxCxD,KAAA,CAAA6B,aAAA,CAACzB,KAAK,CAAC4E,KAAK,QAAEzB,KAAmB,CAAC,eAClCvD,KAAA,CAAA6B,aAAA,CAACzB,KAAK,CAAC6E,OAAO,QACXrE,UAAU,CAACqC,OAAO,CAAC,GACfA,OAAO,CAAc;IAAEhC,IAAI,EAAJA;EAAK,CAAC,CAAC,GAC/BgC,OACS,CAAC,eAChBjD,KAAA,CAAA6B,aAAA,CAACzB,KAAK,CAAC8E,MAAM,QAAEzB,MAAqB,CACzB,CACM,CAAC,GACpB,IAAI,eACRzD,KAAA,CAAA6B,aAAA,CAACrB,0BAA0B;IACzB,eAAa,CAACS,IAAK;IACnB,mBAAiBmC,OAAO,GAAGgB,aAAa,GAAGL,SAAU;IACrDzB,EAAE,EAAE4B,eAAgB;IACpBQ,IAAI,EAAC,QAAQ;IACbS,OAAO,EAAEd,YAAa;IACtBe,SAAS,EAAE,CAACb;EAAU,GAErBtD,IAAI,GAAGe,QAAQ,GAAG,IACO,CACV,CACP,CACM,CAAC;AAE5B,CACF,CAAC;AAEDY,OAAO,CAACyC,WAAW,GAAG,SAAS"}
1
+ {"version":3,"file":"Section.js","names":["ChevronDown","ChevronRight","cx","React","ulid","Button","getHeadingComponent","Title","sectionClassnames","StyledSection","StyledSectionCollapseHeading","StyledSectionContentRegion","StyledSectionHeader","StyledSectionInner","StyledTitle","isFunction","obj","LevelContext","createContext","SectionContext","open","setSection","toggleSection","Heading","_ref","level_","level","props","_objectWithoutProperties","_excluded","useContext","H","createElement","SectionProvider","_ref2","children","_React$useState","useState","_React$useState2","_slicedToArray","setSectionsOpen","id","prev","_objectSpread","_defineProperty","Provider","value","Section","forwardRef","_ref3","ref","_cx","actions","className","expandId","heading","_ref3$initialIsOpen","initialIsOpen","pills","subtext","assets","_excluded2","sections","toggleOpen","useCallback","useEffect","undefined","_React$useMemo","useMemo","contentRegionId","concat","headingTextId","expandClosed","divide","hasHeader","_extends","levelAnonymous","role","icon","onClick","variant","Text","Subtext","Pills","Actions","Assets","$closed","$noHeader","displayName"],"sources":["../../src/Section/Section.tsx"],"sourcesContent":["import { ChevronDown, ChevronRight } from '@procore/core-icons/dist'\nimport cx from 'classnames'\nimport React from 'react'\nimport { ulid } from 'ulid'\nimport { Button } from '../Button/Button'\nimport { getHeadingComponent } from '../Semantic/Semantic'\nimport type { HeadingProps } from '../Semantic/Semantic.types'\nimport { Title } from '../Title/Title'\nimport {\n sectionClassnames,\n StyledSection,\n StyledSectionCollapseHeading,\n StyledSectionContentRegion,\n StyledSectionHeader,\n StyledSectionInner,\n StyledTitle,\n} from './Section.styles'\nimport type {\n SectionContextAPI,\n SectionProps,\n SectionProviderProps,\n} from './Section.types'\n\nconst isFunction = (obj: unknown): boolean => typeof obj === 'function'\n\n// Header levels start at level 2\nexport const LevelContext = React.createContext(2)\n\nconst SectionContext = React.createContext<SectionContextAPI>({\n open: {},\n setSection: () => {},\n toggleSection: () => {},\n})\n\nexport function Heading({\n level: level_,\n ...props\n}: HeadingProps & { level?: number }) {\n const level = React.useContext(LevelContext)\n const H = getHeadingComponent(level_ || level)\n return <H {...props} />\n}\n\nexport const SectionProvider = ({ children }: SectionProviderProps) => {\n const [open, setSectionsOpen] = React.useState<{\n [key: string]: boolean\n }>({})\n\n const toggleSection: SectionContextAPI['toggleSection'] = (id) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: !prev[id],\n }))\n\n const setSection: SectionContextAPI['setSection'] = (id, open) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: open,\n }))\n\n return (\n <SectionContext.Provider\n value={{\n open,\n toggleSection,\n setSection,\n }}\n >\n {children}\n </SectionContext.Provider>\n )\n}\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development. See Panel.Section or DetailPage.Section\n */\nexport const Section = React.forwardRef<HTMLDivElement, SectionProps>(\n function Section(\n {\n actions,\n children,\n className,\n expandId,\n heading,\n initialIsOpen = true,\n pills,\n subtext,\n assets,\n ...props\n },\n ref\n ) {\n const level = React.useContext(LevelContext)\n\n const sections = React.useContext(SectionContext)\n const toggleOpen = React.useCallback(() => {\n if (expandId) {\n sections.toggleSection(expandId)\n }\n }, [expandId])\n const open = expandId ? sections.open[expandId] : true\n\n React.useEffect(() => {\n if (expandId && open === undefined) {\n sections.setSection(expandId, initialIsOpen)\n }\n }, [])\n\n const { contentRegionId, headingTextId } = React.useMemo(() => {\n return {\n contentRegionId: `content-${ulid()}`,\n headingTextId: `heading-${ulid()}`,\n }\n }, [])\n\n const expandClosed = !open || !children\n const divide = level >= 3 || !heading\n const hasHeader = heading || actions\n\n return (\n <LevelContext.Provider value={level + 1}>\n <StyledSection\n ref={ref}\n className={cx(className, {\n [sectionClassnames.divide]: divide,\n [sectionClassnames.levelAnonymous]: !heading,\n [sectionClassnames.level(level)]: heading && level,\n })}\n {...props}\n >\n <StyledSectionInner>\n {hasHeader ? (\n <StyledSectionHeader>\n {expandId ? (\n <StyledSectionCollapseHeading\n aria-labelledby={headingTextId}\n aria-level={level}\n role=\"heading\"\n >\n <Button\n aria-controls={contentRegionId}\n aria-expanded={open}\n aria-labelledby={headingTextId}\n icon={open ? <ChevronDown /> : <ChevronRight />}\n onClick={toggleOpen}\n variant=\"tertiary\"\n />\n </StyledSectionCollapseHeading>\n ) : null}\n <StyledTitle>\n <Title.Text>\n {heading && (\n <Heading\n aria-hidden={expandId ? true : false}\n id={headingTextId}\n // Pass level since Heading component renders\n // under the incremented (level + 1) LevelProvider.\n // Alternative, render Heading as a variable outside of return.\n level={level}\n >\n {heading}\n </Heading>\n )}\n </Title.Text>\n <Title.Subtext>{subtext}</Title.Subtext>\n <Title.Pills>{pills}</Title.Pills>\n <Title.Actions>\n {isFunction(actions)\n ? (actions as Function)({ open })\n : actions}\n </Title.Actions>\n <Title.Assets>{assets}</Title.Assets>\n </StyledTitle>\n </StyledSectionHeader>\n ) : null}\n <StyledSectionContentRegion\n aria-hidden={!open}\n aria-labelledby={heading ? headingTextId : undefined}\n id={contentRegionId}\n role=\"region\"\n $closed={expandClosed}\n $noHeader={!hasHeader}\n >\n {open ? children : null}\n </StyledSectionContentRegion>\n </StyledSectionInner>\n </StyledSection>\n </LevelContext.Provider>\n )\n }\n)\n\nSection.displayName = 'Section'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,MAAM;AAC3B,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,mBAAmB,QAAQ,sBAAsB;AAE1D,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SACEC,iBAAiB,EACjBC,aAAa,EACbC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,mBAAmB,EACnBC,kBAAkB,EAClBC,WAAW,QACN,kBAAkB;AAOzB,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,GAAY;EAAA,OAAc,OAAOA,GAAG,KAAK,UAAU;AAAA;;AAEvE;AACA,OAAO,IAAMC,YAAY,gBAAGd,KAAK,CAACe,aAAa,CAAC,CAAC,CAAC;AAElD,IAAMC,cAAc,gBAAGhB,KAAK,CAACe,aAAa,CAAoB;EAC5DE,IAAI,EAAE,CAAC,CAAC;EACRC,UAAU,EAAE,SAAAA,WAAA,EAAM,CAAC,CAAC;EACpBC,aAAa,EAAE,SAAAA,cAAA,EAAM,CAAC;AACxB,CAAC,CAAC;AAEF,OAAO,SAASC,OAAOA,CAAAC,IAAA,EAGe;EAAA,IAF7BC,MAAM,GAAAD,IAAA,CAAbE,KAAK;IACFC,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA;EAER,IAAMH,KAAK,GAAGvB,KAAK,CAAC2B,UAAU,CAACb,YAAY,CAAC;EAC5C,IAAMc,CAAC,GAAGzB,mB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