@procore/core-react 11.24.1 → 11.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (733) hide show
  1. package/.eslintignore +4 -0
  2. package/.eslintrc.cjs +54 -0
  3. package/dist/Avatar/Avatar.d.ts +2 -2
  4. package/dist/Avatar/Avatar.js.map +1 -1
  5. package/dist/Avatar/Avatar.styles.d.ts +1 -1
  6. package/dist/Avatar/Avatar.styles.js +5 -5
  7. package/dist/Avatar/Avatar.styles.js.map +1 -1
  8. package/dist/Avatar/Avatar.types.d.ts +4 -4
  9. package/dist/Avatar/Avatar.types.js.map +1 -1
  10. package/dist/AvatarStack/AvatarStack.constants.d.ts +1 -1
  11. package/dist/AvatarStack/AvatarStack.constants.js.map +1 -1
  12. package/dist/AvatarStack/AvatarStack.d.ts +2 -2
  13. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  14. package/dist/AvatarStack/AvatarStack.styles.d.ts +1 -1
  15. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  16. package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
  17. package/dist/Badge/Badge.d.ts +1 -1
  18. package/dist/Badge/Badge.js.map +1 -1
  19. package/dist/Badge/Badge.styles.d.ts +1 -1
  20. package/dist/Badge/Badge.styles.js +2 -2
  21. package/dist/Badge/Badge.styles.js.map +1 -1
  22. package/dist/Badge/Badge.types.d.ts +1 -1
  23. package/dist/Badge/Badge.types.js.map +1 -1
  24. package/dist/Banner/Banner.d.ts +2 -2
  25. package/dist/Banner/Banner.js.map +1 -1
  26. package/dist/Banner/Banner.styles.d.ts +2 -2
  27. package/dist/Banner/Banner.styles.js +10 -10
  28. package/dist/Banner/Banner.styles.js.map +1 -1
  29. package/dist/Banner/Banner.types.d.ts +1 -1
  30. package/dist/Banner/Banner.types.js.map +1 -1
  31. package/dist/Box/Box.d.ts +2 -2
  32. package/dist/Box/Box.js.map +1 -1
  33. package/dist/Box/Box.styles.d.ts +1 -1
  34. package/dist/Box/Box.styles.js +1 -1
  35. package/dist/Box/Box.styles.js.map +1 -1
  36. package/dist/Box/Box.types.d.ts +1 -1
  37. package/dist/Box/Box.types.js.map +1 -1
  38. package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  39. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  40. package/dist/Breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  41. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  42. package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  43. package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
  44. package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
  45. package/dist/Button/Button.d.ts +1 -1
  46. package/dist/Button/Button.js.map +1 -1
  47. package/dist/Button/Button.styles.d.ts +1 -1
  48. package/dist/Button/Button.styles.js +5 -5
  49. package/dist/Button/Button.styles.js.map +1 -1
  50. package/dist/Button/Button.types.d.ts +1 -1
  51. package/dist/Button/Button.types.js.map +1 -1
  52. package/dist/Button/index.d.ts +1 -1
  53. package/dist/Button/index.js.map +1 -1
  54. package/dist/Calendar/Calendar.d.ts +1 -1
  55. package/dist/Calendar/Calendar.js.map +1 -1
  56. package/dist/Calendar/Calendar.styles.js +8 -8
  57. package/dist/Calendar/Calendar.types.d.ts +2 -2
  58. package/dist/Calendar/Calendar.types.js.map +1 -1
  59. package/dist/Card/Card.d.ts +2 -2
  60. package/dist/Card/Card.js.map +1 -1
  61. package/dist/Card/Card.styles.d.ts +1 -1
  62. package/dist/Card/Card.styles.js +1 -1
  63. package/dist/Card/Card.styles.js.map +1 -1
  64. package/dist/Card/Card.types.d.ts +1 -1
  65. package/dist/Card/Card.types.js.map +1 -1
  66. package/dist/Checkbox/Checkbox.d.ts +1 -1
  67. package/dist/Checkbox/Checkbox.js.map +1 -1
  68. package/dist/Checkbox/Checkbox.styles.js +5 -5
  69. package/dist/Checkbox/Checkbox.types.d.ts +2 -2
  70. package/dist/Checkbox/Checkbox.types.js.map +1 -1
  71. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
  72. package/dist/CheckboxGroup/CheckboxGroup.js.map +1 -1
  73. package/dist/CheckboxGroup/CheckboxGroup.types.d.ts +2 -2
  74. package/dist/CheckboxGroup/CheckboxGroup.types.js.map +1 -1
  75. package/dist/ClickOutside/ClickOutside.d.ts +1 -1
  76. package/dist/ClickOutside/ClickOutside.js.map +1 -1
  77. package/dist/ContactItem/ContactItem.d.ts +3 -3
  78. package/dist/ContactItem/ContactItem.js.map +1 -1
  79. package/dist/ContactItem/ContactItem.styles.js +5 -5
  80. package/dist/ContactItem/ContactItem.types.d.ts +2 -2
  81. package/dist/ContactItem/ContactItem.types.js.map +1 -1
  82. package/dist/Content/Content.d.ts +1 -1
  83. package/dist/Content/Content.js.map +1 -1
  84. package/dist/Content/Content.styles.js +2 -2
  85. package/dist/DateInput/DateInput.d.ts +1 -1
  86. package/dist/DateInput/DateInput.js.map +1 -1
  87. package/dist/DateInput/DateInput.styles.js +6 -6
  88. package/dist/DateInput/DateInput.types.d.ts +2 -2
  89. package/dist/DateInput/DateInput.types.js.map +1 -1
  90. package/dist/DateInput/index.js.map +1 -1
  91. package/dist/DateSelect/DateSelect.d.ts +1 -1
  92. package/dist/DateSelect/DateSelect.js.map +1 -1
  93. package/dist/DateSelect/DateSelect.types.d.ts +4 -4
  94. package/dist/DateSelect/DateSelect.types.js.map +1 -1
  95. package/dist/DetailPage/DetailPage.constants.d.ts +2 -2
  96. package/dist/DetailPage/DetailPage.constants.js.map +1 -1
  97. package/dist/DetailPage/DetailPage.d.ts +3 -3
  98. package/dist/DetailPage/DetailPage.js.map +1 -1
  99. package/dist/DetailPage/DetailPage.styles.js +7 -7
  100. package/dist/DetailPage/DetailPage.types.d.ts +3 -3
  101. package/dist/DetailPage/DetailPage.types.js.map +1 -1
  102. package/dist/Dropdown/Dropdown.d.ts +2 -2
  103. package/dist/Dropdown/Dropdown.js.map +1 -1
  104. package/dist/Dropdown/Dropdown.styles.d.ts +1 -1
  105. package/dist/Dropdown/Dropdown.styles.js +3 -3
  106. package/dist/Dropdown/Dropdown.styles.js.map +1 -1
  107. package/dist/Dropdown/Dropdown.types.d.ts +4 -4
  108. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  109. package/dist/DropdownFlyout/DropdownFlyout.d.ts +1 -1
  110. package/dist/DropdownFlyout/DropdownFlyout.helpers.d.ts +1 -1
  111. package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
  112. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  113. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  114. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
  115. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  116. package/dist/DropdownFlyout/index.js.map +1 -1
  117. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.d.ts +3 -3
  118. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js.map +1 -1
  119. package/dist/Dropzone/Dropzone.d.ts +2 -2
  120. package/dist/Dropzone/Dropzone.hooks.d.ts +1 -1
  121. package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
  122. package/dist/Dropzone/Dropzone.js +1 -1
  123. package/dist/Dropzone/Dropzone.js.map +1 -1
  124. package/dist/Dropzone/Dropzone.styles.js +9 -9
  125. package/dist/Dropzone/Dropzone.types.d.ts +4 -3
  126. package/dist/Dropzone/Dropzone.types.js.map +1 -1
  127. package/dist/EmptyState/EmptyState.d.ts +2 -2
  128. package/dist/EmptyState/EmptyState.js.map +1 -1
  129. package/dist/EmptyState/EmptyState.styles.js +6 -6
  130. package/dist/EmptyState/EmptyState.types.d.ts +1 -1
  131. package/dist/EmptyState/EmptyState.types.js.map +1 -1
  132. package/dist/Field/Field.styles.js +3 -3
  133. package/dist/FileList/FileList.d.ts +2 -2
  134. package/dist/FileList/FileList.js.map +1 -1
  135. package/dist/FileList/FileList.styles.js +4 -4
  136. package/dist/FileSelect/FileExplorer/FileExplorer.d.ts +2 -2
  137. package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
  138. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  139. package/dist/FileSelect/FileExplorer/FileExplorer.types.d.ts +2 -2
  140. package/dist/FileSelect/FileExplorer/FileExplorer.types.js.map +1 -1
  141. package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +3 -3
  142. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  143. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.d.ts +1 -1
  144. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  145. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  146. package/dist/FileSelect/FileExplorer/useSidebarNavigation.d.ts +1 -1
  147. package/dist/FileSelect/FileExplorer/useSidebarNavigation.js.map +1 -1
  148. package/dist/FileSelect/FileSelect.d.ts +3 -3
  149. package/dist/FileSelect/FileSelect.js.map +1 -1
  150. package/dist/FileSelect/FileSelect.styles.js +2 -2
  151. package/dist/FileSelect/FileSelect.types.d.ts +6 -6
  152. package/dist/FileSelect/FileSelect.types.js.map +1 -1
  153. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.d.ts +1 -1
  154. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js.map +1 -1
  155. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  156. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.d.ts +2 -2
  157. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.js.map +1 -1
  158. package/dist/FileSelect/FileTokenList/FileToken.types.d.ts +1 -1
  159. package/dist/FileSelect/FileTokenList/FileToken.types.js.map +1 -1
  160. package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +2 -2
  161. package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
  162. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  163. package/dist/FileSelect/GridSource/GridSource.d.ts +2 -2
  164. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  165. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  166. package/dist/FileSelect/GridSource/GridSource.types.d.ts +2 -2
  167. package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
  168. package/dist/FileSelect/LocalSource/LocalSource.d.ts +1 -1
  169. package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
  170. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  171. package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +4 -4
  172. package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
  173. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.d.ts +1 -1
  174. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.js.map +1 -1
  175. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.d.ts +2 -2
  176. package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.js.map +1 -1
  177. package/dist/FileSelect/SourceItem/SourceItem.d.ts +1 -1
  178. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  179. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  180. package/dist/FileSelect/ThumbnailList/ThumbnailList.d.ts +1 -1
  181. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  182. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  183. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +1 -1
  184. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
  185. package/dist/FileSelect/TreeSource/TreeSource.d.ts +2 -2
  186. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  187. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  188. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
  189. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  190. package/dist/FileSelect/storyHelpers.d.ts +1 -1
  191. package/dist/FileSelect/storyHelpers.js.map +1 -1
  192. package/dist/FileToken/FileToken.d.ts +2 -2
  193. package/dist/FileToken/FileToken.js.map +1 -1
  194. package/dist/FileToken/FileToken.styles.js +4 -4
  195. package/dist/FileToken/FileToken.types.d.ts +1 -1
  196. package/dist/FileToken/FileToken.types.js.map +1 -1
  197. package/dist/FilterToken/FilterToken.d.ts +2 -2
  198. package/dist/FilterToken/FilterToken.js.map +1 -1
  199. package/dist/FilterToken/FilterToken.styles.js +2 -2
  200. package/dist/FilterToken/index.d.ts +1 -1
  201. package/dist/FilterToken/index.js.map +1 -1
  202. package/dist/Flex/Flex.d.ts +2 -2
  203. package/dist/Flex/Flex.js.map +1 -1
  204. package/dist/Flex/Flex.types.d.ts +2 -2
  205. package/dist/Flex/Flex.types.js.map +1 -1
  206. package/dist/FlexList/FlexList.d.ts +2 -2
  207. package/dist/FlexList/FlexList.js.map +1 -1
  208. package/dist/FlexList/FlexList.styles.d.ts +1 -1
  209. package/dist/FlexList/FlexList.styles.js +1 -1
  210. package/dist/FlexList/FlexList.styles.js.map +1 -1
  211. package/dist/FlexList/FlexList.types.d.ts +2 -2
  212. package/dist/FlexList/FlexList.types.js.map +1 -1
  213. package/dist/Form/Form.d.ts +5 -5
  214. package/dist/Form/Form.js +82 -70
  215. package/dist/Form/Form.js.map +1 -1
  216. package/dist/Form/Form.styles.d.ts +1 -1
  217. package/dist/Form/Form.styles.js +15 -15
  218. package/dist/Form/Form.styles.js.map +1 -1
  219. package/dist/Form/Form.types.d.ts +14 -14
  220. package/dist/Form/Form.types.js.map +1 -1
  221. package/dist/Form/stories/util.d.ts +1 -1
  222. package/dist/Form/stories/util.js.map +1 -1
  223. package/dist/Grid/Grid.constants.d.ts +1 -1
  224. package/dist/Grid/Grid.constants.js.map +1 -1
  225. package/dist/Grid/Grid.d.ts +1 -1
  226. package/dist/Grid/Grid.js.map +1 -1
  227. package/dist/Grid/Grid.styles.d.ts +1 -1
  228. package/dist/Grid/Grid.styles.js +2 -2
  229. package/dist/Grid/Grid.styles.js.map +1 -1
  230. package/dist/Grid/Grid.types.d.ts +2 -2
  231. package/dist/Grid/Grid.types.js.map +1 -1
  232. package/dist/GroupSelect/GroupSelect.d.ts +2 -2
  233. package/dist/GroupSelect/GroupSelect.js.map +1 -1
  234. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  235. package/dist/GroupSelect/GroupSelect.types.d.ts +3 -3
  236. package/dist/GroupSelect/GroupSelect.types.js.map +1 -1
  237. package/dist/Input/Input.d.ts +2 -2
  238. package/dist/Input/Input.js.map +1 -1
  239. package/dist/Input/Input.styles.js +1 -1
  240. package/dist/Input/Input.types.d.ts +1 -1
  241. package/dist/Input/Input.types.js.map +1 -1
  242. package/dist/Link/Link.d.ts +1 -1
  243. package/dist/Link/Link.js.map +1 -1
  244. package/dist/Link/Link.styles.d.ts +1 -1
  245. package/dist/Link/Link.styles.js +1 -1
  246. package/dist/Link/Link.styles.js.map +1 -1
  247. package/dist/Link/Link.types.d.ts +1 -1
  248. package/dist/Link/Link.types.js.map +1 -1
  249. package/dist/ListPage/ListPage.d.ts +2 -2
  250. package/dist/ListPage/ListPage.js.map +1 -1
  251. package/dist/ListPage/ListPage.styles.js +8 -8
  252. package/dist/ListPage/ListPage.types.d.ts +1 -1
  253. package/dist/ListPage/ListPage.types.js.map +1 -1
  254. package/dist/Loader/Loader.d.ts +1 -1
  255. package/dist/Loader/Loader.js.map +1 -1
  256. package/dist/Loader/Loader.styles.js +2 -2
  257. package/dist/Loader/Loader.types.d.ts +1 -1
  258. package/dist/Loader/Loader.types.js.map +1 -1
  259. package/dist/Menu/Menu.d.ts +2 -2
  260. package/dist/Menu/Menu.js.map +1 -1
  261. package/dist/Menu/Menu.types.d.ts +7 -7
  262. package/dist/Menu/Menu.types.js.map +1 -1
  263. package/dist/MenuImperative/MenuImperative.d.ts +4 -4
  264. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  265. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  266. package/dist/MenuImperative/MenuImperative.types.d.ts +4 -4
  267. package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
  268. package/dist/MenuImperative/index.d.ts +1 -1
  269. package/dist/MenuImperative/index.js.map +1 -1
  270. package/dist/MenuImperative/sensors.d.ts +3 -3
  271. package/dist/MenuImperative/sensors.js.map +1 -1
  272. package/dist/Modal/Modal.d.ts +4 -4
  273. package/dist/Modal/Modal.js.map +1 -1
  274. package/dist/Modal/Modal.styles.d.ts +1 -1
  275. package/dist/Modal/Modal.styles.js +13 -13
  276. package/dist/Modal/Modal.styles.js.map +1 -1
  277. package/dist/Modal/Modal.types.d.ts +2 -2
  278. package/dist/Modal/Modal.types.js.map +1 -1
  279. package/dist/MultiSelect/MultiSelect.d.ts +1 -1
  280. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  281. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  282. package/dist/MultiSelect/MultiSelect.types.d.ts +3 -3
  283. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  284. package/dist/NextMenu/NextMenu.d.ts +1 -1
  285. package/dist/NextMenu/NextMenu.js.map +1 -1
  286. package/dist/NextMenu/NextMenu.styles.js +3 -3
  287. package/dist/NextMenu/NextMenu.types.d.ts +3 -3
  288. package/dist/NextMenu/NextMenu.types.js.map +1 -1
  289. package/dist/NextMenu/NextMenuItem.d.ts +1 -1
  290. package/dist/NextMenu/NextMenuItem.js.map +1 -1
  291. package/dist/NextTile/NextTile.d.ts +2 -2
  292. package/dist/NextTile/NextTile.js.map +1 -1
  293. package/dist/NextTile/NextTile.types.d.ts +2 -2
  294. package/dist/NextTile/NextTile.types.js.map +1 -1
  295. package/dist/Notation/Notation.d.ts +2 -2
  296. package/dist/Notation/Notation.js +1 -1
  297. package/dist/Notation/Notation.js.map +1 -1
  298. package/dist/Notation/Notation.types.d.ts +2 -2
  299. package/dist/Notation/Notation.types.js.map +1 -1
  300. package/dist/NumberInput/NumberInput.d.ts +2 -2
  301. package/dist/NumberInput/NumberInput.hooks.d.ts +1 -1
  302. package/dist/NumberInput/NumberInput.hooks.js.map +1 -1
  303. package/dist/NumberInput/NumberInput.js +3 -1
  304. package/dist/NumberInput/NumberInput.js.map +1 -1
  305. package/dist/NumberInput/NumberInput.styles.js +7 -7
  306. package/dist/NumberInput/NumberInput.types.d.ts +2 -2
  307. package/dist/NumberInput/NumberInput.types.js.map +1 -1
  308. package/dist/NumberInput/NumberInput.utils.d.ts +3 -2
  309. package/dist/NumberInput/NumberInput.utils.js.map +1 -1
  310. package/dist/Overlay/Overlay.d.ts +1 -1
  311. package/dist/Overlay/Overlay.js.map +1 -1
  312. package/dist/Overlay/OverlayArrow.d.ts +2 -2
  313. package/dist/Overlay/OverlayArrow.js.map +1 -1
  314. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  315. package/dist/Overlay/useOverlay.d.ts +3 -3
  316. package/dist/Overlay/useOverlay.js.map +1 -1
  317. package/dist/OverlayTrigger/OverlayTrigger.d.ts +2 -2
  318. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  319. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +4 -4
  320. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  321. package/dist/OverlayTrigger/a11yPresets.d.ts +5 -4
  322. package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
  323. package/dist/PageLayout/PageLayout.d.ts +3 -3
  324. package/dist/PageLayout/PageLayout.js.map +1 -1
  325. package/dist/PageLayout/PageLayout.styles.d.ts +1 -1
  326. package/dist/PageLayout/PageLayout.styles.js +13 -13
  327. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  328. package/dist/PageLayout/PageLayout.types.d.ts +1 -1
  329. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  330. package/dist/Pagination/Pagination.d.ts +1 -1
  331. package/dist/Pagination/Pagination.js.map +1 -1
  332. package/dist/Pagination/Pagination.styles.js +5 -5
  333. package/dist/Pagination/Pagination.types.d.ts +2 -2
  334. package/dist/Pagination/Pagination.types.js.map +1 -1
  335. package/dist/Pagination/PaginationSelect.d.ts +1 -1
  336. package/dist/Pagination/PaginationSelect.js.map +1 -1
  337. package/dist/Panel/Panel.d.ts +3 -3
  338. package/dist/Panel/Panel.js.map +1 -1
  339. package/dist/Panel/Panel.styles.js +11 -11
  340. package/dist/Panel/Panel.types.d.ts +3 -3
  341. package/dist/Panel/Panel.types.js.map +1 -1
  342. package/dist/Pill/Pill.colorPalette.d.ts +1 -1
  343. package/dist/Pill/Pill.colorPalette.js.map +1 -1
  344. package/dist/Pill/Pill.d.ts +1 -1
  345. package/dist/Pill/Pill.js.map +1 -1
  346. package/dist/Pill/Pill.styles.d.ts +1 -1
  347. package/dist/Pill/Pill.styles.js +2 -2
  348. package/dist/Pill/Pill.styles.js.map +1 -1
  349. package/dist/PillSelect/PillSelect.d.ts +1 -1
  350. package/dist/PillSelect/PillSelect.js.map +1 -1
  351. package/dist/PillSelect/PillSelect.styles.js +4 -4
  352. package/dist/PillSelect/PillSelect.types.d.ts +2 -2
  353. package/dist/PillSelect/PillSelect.types.js.map +1 -1
  354. package/dist/Popover/Popover.d.ts +2 -2
  355. package/dist/Popover/Popover.js.map +1 -1
  356. package/dist/Popover/Popover.styles.d.ts +1 -1
  357. package/dist/Popover/Popover.styles.js +2 -2
  358. package/dist/Popover/Popover.styles.js.map +1 -1
  359. package/dist/Popover/Popover.types.d.ts +5 -5
  360. package/dist/Popover/Popover.types.js.map +1 -1
  361. package/dist/Portal/Portal.d.ts +1 -1
  362. package/dist/Portal/Portal.js.map +1 -1
  363. package/dist/Portal/Portal.styles.js +1 -1
  364. package/dist/Portal/Portal.types.d.ts +1 -1
  365. package/dist/Portal/Portal.types.js.map +1 -1
  366. package/dist/ProgressBar/ProgressBar.d.ts +1 -1
  367. package/dist/ProgressBar/ProgressBar.js.map +1 -1
  368. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  369. package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
  370. package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
  371. package/dist/RadioButton/RadioButton.d.ts +1 -1
  372. package/dist/RadioButton/RadioButton.js.map +1 -1
  373. package/dist/RadioButton/RadioButton.styles.js +3 -3
  374. package/dist/RadioButton/RadioButton.types.d.ts +1 -1
  375. package/dist/RadioButton/RadioButton.types.js.map +1 -1
  376. package/dist/Required/Required.d.ts +1 -1
  377. package/dist/Required/Required.js.map +1 -1
  378. package/dist/Required/Required.styles.js +3 -3
  379. package/dist/Required/Required.types.d.ts +1 -1
  380. package/dist/Required/Required.types.js.map +1 -1
  381. package/dist/Search/Search.d.ts +1 -1
  382. package/dist/Search/Search.hooks.d.ts +1 -1
  383. package/dist/Search/Search.hooks.js.map +1 -1
  384. package/dist/Search/Search.js +1 -2
  385. package/dist/Search/Search.js.map +1 -1
  386. package/dist/Search/Search.styles.js +5 -5
  387. package/dist/Search/Search.types.d.ts +2 -2
  388. package/dist/Search/Search.types.js.map +1 -1
  389. package/dist/Section/Section.d.ts +2 -2
  390. package/dist/Section/Section.js.map +1 -1
  391. package/dist/Section/Section.styles.js +6 -6
  392. package/dist/Section/Section.types.d.ts +2 -2
  393. package/dist/Section/Section.types.js.map +1 -1
  394. package/dist/SegmentedController/SegmentedController.d.ts +1 -1
  395. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  396. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  397. package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
  398. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  399. package/dist/Select/Select.d.ts +2 -2
  400. package/dist/Select/Select.js.map +1 -1
  401. package/dist/Select/Select.styles.js +7 -7
  402. package/dist/Select/Select.types.d.ts +4 -4
  403. package/dist/Select/Select.types.js.map +1 -1
  404. package/dist/Select/index.d.ts +1 -1
  405. package/dist/Select/index.js.map +1 -1
  406. package/dist/Semantic/Semantic.d.ts +1 -1
  407. package/dist/Semantic/Semantic.js.map +1 -1
  408. package/dist/Semantic/Semantic.styles.d.ts +1 -1
  409. package/dist/Semantic/Semantic.styles.js +8 -8
  410. package/dist/Semantic/Semantic.styles.js.map +1 -1
  411. package/dist/Semantic/Semantic.types.d.ts +1 -1
  412. package/dist/Semantic/Semantic.types.js.map +1 -1
  413. package/dist/Sidebar/Sidebar.d.ts +1 -1
  414. package/dist/Sidebar/Sidebar.js.map +1 -1
  415. package/dist/Sidebar/Sidebar.styles.js +7 -7
  416. package/dist/Slider/Slider.d.ts +1 -1
  417. package/dist/Slider/Slider.js.map +1 -1
  418. package/dist/Slider/Slider.styles.js +5 -5
  419. package/dist/Slider/Slider.types.d.ts +1 -1
  420. package/dist/Slider/Slider.types.js.map +1 -1
  421. package/dist/Spinner/Spinner.d.ts +1 -1
  422. package/dist/Spinner/Spinner.js.map +1 -1
  423. package/dist/Spinner/Spinner.styles.d.ts +2 -2
  424. package/dist/Spinner/Spinner.styles.js +7 -7
  425. package/dist/Spinner/Spinner.styles.js.map +1 -1
  426. package/dist/Spinner/Spinner.types.d.ts +2 -2
  427. package/dist/Spinner/Spinner.types.js.map +1 -1
  428. package/dist/SuperSelect/SuperSelect.components.d.ts +2 -2
  429. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  430. package/dist/SuperSelect/SuperSelect.d.ts +1 -1
  431. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  432. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  433. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  434. package/dist/SuperSelect/SuperSelect.types.d.ts +5 -5
  435. package/dist/SuperSelect/SuperSelect.types.js +1 -1
  436. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  437. package/dist/SuperSelect/SuperSelect.utils.d.ts +1 -1
  438. package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
  439. package/dist/SuperSelect/index.d.ts +3 -3
  440. package/dist/SuperSelect/index.js +2 -2
  441. package/dist/SuperSelect/index.js.map +1 -1
  442. package/dist/SuperSelect/presets/contactsPreset.d.ts +1 -1
  443. package/dist/SuperSelect/presets/contactsPreset.js.map +1 -1
  444. package/dist/SuperSelect/presets/filterPreset.d.ts +1 -1
  445. package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
  446. package/dist/SuperSelect/presets/index.d.ts +1 -1
  447. package/dist/SuperSelect/presets/index.js.map +1 -1
  448. package/dist/SuperSelect/presets/pillPreset.d.ts +1 -1
  449. package/dist/SuperSelect/presets/pillPreset.js.map +1 -1
  450. package/dist/SuperSelect/useSuperSelect.d.ts +2 -2
  451. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  452. package/dist/Switch/Switch.d.ts +2 -2
  453. package/dist/Switch/Switch.js.map +1 -1
  454. package/dist/Switch/Switch.styles.js +4 -4
  455. package/dist/Switch/Switch.types.d.ts +1 -1
  456. package/dist/Switch/Switch.types.js.map +1 -1
  457. package/dist/Table/Table.d.ts +3 -3
  458. package/dist/Table/Table.js +4 -4
  459. package/dist/Table/Table.js.map +1 -1
  460. package/dist/Table/Table.styles.d.ts +1 -1
  461. package/dist/Table/Table.styles.js +28 -28
  462. package/dist/Table/Table.styles.js.map +1 -1
  463. package/dist/Table/Table.types.d.ts +5 -5
  464. package/dist/Table/Table.types.js.map +1 -1
  465. package/dist/TableShelf/TableShelf.d.ts +1 -1
  466. package/dist/TableShelf/TableShelf.js.map +1 -1
  467. package/dist/TableShelf/TableShelf.styles.js +5 -5
  468. package/dist/Tabs/Tabs.d.ts +2 -2
  469. package/dist/Tabs/Tabs.js.map +1 -1
  470. package/dist/Tabs/Tabs.styles.js +8 -8
  471. package/dist/Tabs/Tabs.types.d.ts +4 -4
  472. package/dist/Tabs/Tabs.types.js.map +1 -1
  473. package/dist/Tearsheet/Tearsheet.constants.d.ts +1 -1
  474. package/dist/Tearsheet/Tearsheet.constants.js.map +1 -1
  475. package/dist/Tearsheet/Tearsheet.d.ts +1 -1
  476. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  477. package/dist/Tearsheet/Tearsheet.styles.d.ts +1 -1
  478. package/dist/Tearsheet/Tearsheet.styles.js +6 -6
  479. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  480. package/dist/Tearsheet/Tearsheet.types.d.ts +1 -1
  481. package/dist/Tearsheet/Tearsheet.types.js.map +1 -1
  482. package/dist/Tearsheet/Tearsheet.util.d.ts +1 -1
  483. package/dist/Tearsheet/Tearsheet.util.js.map +1 -1
  484. package/dist/TextArea/TextArea.d.ts +2 -2
  485. package/dist/TextArea/TextArea.js.map +1 -1
  486. package/dist/TextArea/TextArea.styles.d.ts +1 -1
  487. package/dist/TextArea/TextArea.styles.js +1 -1
  488. package/dist/TextArea/TextArea.styles.js.map +1 -1
  489. package/dist/TextArea/TextArea.types.d.ts +1 -1
  490. package/dist/TextArea/TextArea.types.js.map +1 -1
  491. package/dist/TextEditor/TextEditor.d.ts +1 -1
  492. package/dist/TextEditor/TextEditor.js.map +1 -1
  493. package/dist/TextEditor/TextEditor.types.d.ts +3 -3
  494. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  495. package/dist/TextEditorOutput/TextEditorOutput.d.ts +2 -2
  496. package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
  497. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  498. package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +2 -2
  499. package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
  500. package/dist/Thumbnail/Thumbnail.d.ts +1 -1
  501. package/dist/Thumbnail/Thumbnail.hooks.d.ts +3 -3
  502. package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
  503. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  504. package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
  505. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  506. package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
  507. package/dist/Thumbnail/Thumbnail.types.d.ts +5 -4
  508. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  509. package/dist/Thumbnail/Thumbnail.utils.d.ts +1 -1
  510. package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
  511. package/dist/Thumbnail/ThumbnailCaption.d.ts +1 -1
  512. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  513. package/dist/Thumbnail/ThumbnailPreview.d.ts +1 -1
  514. package/dist/Thumbnail/ThumbnailPreview.js.map +1 -1
  515. package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +2 -2
  516. package/dist/ThumbnailGrid/ThumbnailGrid.js +1 -1
  517. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  518. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +9 -9
  519. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js.map +1 -1
  520. package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +1 -1
  521. package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
  522. package/dist/TieredDropdown/TieredDropdown.helpers.d.ts +1 -1
  523. package/dist/TieredDropdown/TieredDropdown.helpers.js.map +1 -1
  524. package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
  525. package/dist/TieredDropdown/TieredDropdown.types.d.ts +3 -3
  526. package/dist/TieredDropdown/TieredDropdown.types.js.map +1 -1
  527. package/dist/TieredSelect/LeafSelectionTieredSelect.d.ts +1 -1
  528. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  529. package/dist/TieredSelect/TierSelectionTieredSelect.d.ts +1 -1
  530. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  531. package/dist/TieredSelect/TieredSelect.d.ts +2 -2
  532. package/dist/TieredSelect/TieredSelect.js.map +1 -1
  533. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  534. package/dist/TieredSelect/TieredSelect.types.d.ts +3 -3
  535. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  536. package/dist/TieredSelect/TieredSelectMenu.d.ts +1 -1
  537. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  538. package/dist/Tile/Tile.d.ts +2 -2
  539. package/dist/Tile/Tile.js.map +1 -1
  540. package/dist/Tile/Tile.styles.d.ts +1 -1
  541. package/dist/Tile/Tile.styles.js +8 -8
  542. package/dist/Tile/Tile.styles.js.map +1 -1
  543. package/dist/Tile/Tile.types.d.ts +2 -2
  544. package/dist/Tile/Tile.types.js.map +1 -1
  545. package/dist/Title/Title.d.ts +2 -2
  546. package/dist/Title/Title.js.map +1 -1
  547. package/dist/Title/Title.styles.js +7 -7
  548. package/dist/Title/Title.types.d.ts +1 -1
  549. package/dist/Title/Title.types.js.map +1 -1
  550. package/dist/Toast/Toast.d.ts +2 -2
  551. package/dist/Toast/Toast.js.map +1 -1
  552. package/dist/Toast/Toast.styles.d.ts +1 -1
  553. package/dist/Toast/Toast.styles.js +3 -3
  554. package/dist/Toast/Toast.styles.js.map +1 -1
  555. package/dist/Toast/Toast.types.d.ts +1 -1
  556. package/dist/Toast/Toast.types.js.map +1 -1
  557. package/dist/ToggleButton/ToggleButton.d.ts +1 -1
  558. package/dist/ToggleButton/ToggleButton.js.map +1 -1
  559. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  560. package/dist/ToggleButton/ToggleButton.types.d.ts +2 -2
  561. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  562. package/dist/Token/Token.d.ts +2 -2
  563. package/dist/Token/Token.js.map +1 -1
  564. package/dist/Token/Token.styles.js +3 -3
  565. package/dist/ToolHeader/ActionIcon.d.ts +1 -1
  566. package/dist/ToolHeader/ActionIcon.js.map +1 -1
  567. package/dist/ToolHeader/ActionIcon.types.d.ts +2 -2
  568. package/dist/ToolHeader/ActionIcon.types.js.map +1 -1
  569. package/dist/ToolHeader/ToolHeader.d.ts +2 -2
  570. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  571. package/dist/ToolHeader/ToolHeader.styles.d.ts +1 -1
  572. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  573. package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
  574. package/dist/ToolHeader/ToolHeader.types.d.ts +2 -2
  575. package/dist/ToolHeader/ToolHeader.types.js.map +1 -1
  576. package/dist/Tooltip/Tooltip.d.ts +2 -2
  577. package/dist/Tooltip/Tooltip.js.map +1 -1
  578. package/dist/Tooltip/Tooltip.styles.js +2 -2
  579. package/dist/Tooltip/Tooltip.types.d.ts +3 -3
  580. package/dist/Tooltip/Tooltip.types.js.map +1 -1
  581. package/dist/Tree/Tree.d.ts +1 -1
  582. package/dist/Tree/Tree.hooks.d.ts +1 -1
  583. package/dist/Tree/Tree.hooks.js.map +1 -1
  584. package/dist/Tree/Tree.js.map +1 -1
  585. package/dist/Tree/Tree.styles.js +9 -9
  586. package/dist/Tree/Tree.types.d.ts +6 -6
  587. package/dist/Tree/Tree.types.js.map +1 -1
  588. package/dist/Typeahead/Typeahead.d.ts +1 -1
  589. package/dist/Typeahead/Typeahead.js.map +1 -1
  590. package/dist/Typeahead/Typeahead.styles.js +3 -3
  591. package/dist/Typography/Typography.d.ts +2 -2
  592. package/dist/Typography/Typography.js.map +1 -1
  593. package/dist/Typography/Typography.styles.d.ts +2 -2
  594. package/dist/Typography/Typography.styles.js +1 -1
  595. package/dist/Typography/Typography.styles.js.map +1 -1
  596. package/dist/Typography/Typography.table.story.js +2 -2
  597. package/dist/Typography/Typography.types.d.ts +2 -2
  598. package/dist/Typography/Typography.types.js.map +1 -1
  599. package/dist/Typography/index.d.ts +1 -1
  600. package/dist/Typography/index.js.map +1 -1
  601. package/dist/_hooks/Anchor.d.ts +3 -2
  602. package/dist/_hooks/Anchor.js.map +1 -1
  603. package/dist/_hooks/BoundingRect.d.ts +1 -1
  604. package/dist/_hooks/BoundingRect.js.map +1 -1
  605. package/dist/_hooks/ClickOutside.d.ts +1 -1
  606. package/dist/_hooks/ClickOutside.js.map +1 -1
  607. package/dist/_hooks/DateTime/DateTime.d.ts +1 -1
  608. package/dist/_hooks/DateTime/DateTime.js.map +1 -1
  609. package/dist/_hooks/DelayedCallback.d.ts +1 -1
  610. package/dist/_hooks/DelayedCallback.js.map +1 -1
  611. package/dist/_hooks/DelayedToggle.d.ts +2 -2
  612. package/dist/_hooks/DelayedToggle.js.map +1 -1
  613. package/dist/_hooks/Event.d.ts +1 -1
  614. package/dist/_hooks/Event.js.map +1 -1
  615. package/dist/_hooks/Hotkey.d.ts +1 -1
  616. package/dist/_hooks/Hotkey.js.map +1 -1
  617. package/dist/_hooks/I18n.d.ts +1 -1
  618. package/dist/_hooks/I18n.js.map +1 -1
  619. package/dist/_hooks/OverflowObserver/OverflowObserver.d.ts +1 -1
  620. package/dist/_hooks/OverflowObserver/OverflowObserver.js.map +1 -1
  621. package/dist/_hooks/Resize.d.ts +1 -1
  622. package/dist/_hooks/Resize.js.map +1 -1
  623. package/dist/_hooks/Scroll.d.ts +1 -1
  624. package/dist/_hooks/Scroll.js.map +1 -1
  625. package/dist/_hooks/Trigger.d.ts +1 -1
  626. package/dist/_hooks/Trigger.js.map +1 -1
  627. package/dist/_hooks/useFileUploader.d.ts +1 -1
  628. package/dist/_hooks/useFileUploader.js.map +1 -1
  629. package/dist/_styles/arrows.d.ts +1 -1
  630. package/dist/_styles/arrows.js.map +1 -1
  631. package/dist/_styles/mixins.d.ts +1 -1
  632. package/dist/_styles/mixins.js.map +1 -1
  633. package/dist/_styles/shadows.d.ts +1 -1
  634. package/dist/_styles/shadows.js.map +1 -1
  635. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  636. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  637. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  638. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  639. package/dist/_typedoc/Box/Box.types.json +68 -68
  640. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  641. package/dist/_typedoc/Button/Button.types.json +11 -11
  642. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  643. package/dist/_typedoc/Card/Card.types.json +6 -6
  644. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  645. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  646. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  647. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  648. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  649. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  650. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  651. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  652. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  653. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  654. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  655. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  656. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  657. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  658. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  659. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  660. package/dist/_typedoc/Form/Form.types.json +698 -698
  661. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  662. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  663. package/dist/_typedoc/Input/Input.types.json +2 -2
  664. package/dist/_typedoc/Link/Link.types.json +4 -4
  665. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  666. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  667. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  668. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  669. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  670. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  671. package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
  672. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +30 -30
  673. package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
  674. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  675. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  676. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  677. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  678. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  679. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  680. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  681. package/dist/_typedoc/Required/Required.types.json +5 -5
  682. package/dist/_typedoc/Search/Search.types.json +18 -18
  683. package/dist/_typedoc/Section/Section.types.json +14 -14
  684. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  685. package/dist/_typedoc/Select/Select.types.json +55 -55
  686. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  687. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  688. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  689. package/dist/_typedoc/Table/Table.types.json +96 -96
  690. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  691. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  692. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  693. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  694. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  695. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  696. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  697. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  698. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  699. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  700. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  701. package/dist/_typedoc/Token/Token.types.json +4 -4
  702. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  703. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  704. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  705. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  706. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  707. package/dist/_typedoc/_utils/types.json +3 -3
  708. package/dist/_utils/CalendarHelpers.d.ts +1 -1
  709. package/dist/_utils/CalendarHelpers.js +1 -1
  710. package/dist/_utils/CalendarHelpers.js.map +1 -1
  711. package/dist/_utils/TinyMCE.d.ts +2 -2
  712. package/dist/_utils/TinyMCE.js.map +1 -1
  713. package/dist/_utils/dateTime.js.map +1 -1
  714. package/dist/_utils/getAnchorPosition.d.ts +2 -2
  715. package/dist/_utils/getAnchorPosition.js.map +1 -1
  716. package/dist/_utils/isReactElement.d.ts +1 -1
  717. package/dist/_utils/isReactElement.js.map +1 -1
  718. package/dist/_utils/mergeRefs.d.ts +1 -1
  719. package/dist/_utils/mergeRefs.js.map +1 -1
  720. package/dist/_utils/placement.d.ts +1 -1
  721. package/dist/_utils/placement.js.map +1 -1
  722. package/dist/_utils/propsTypedoc.d.ts +12 -12
  723. package/dist/_utils/propsTypedoc.js +1 -12
  724. package/dist/_utils/propsTypedoc.js.map +1 -1
  725. package/dist/_utils/slotify.d.ts +1 -1
  726. package/dist/_utils/slotify.js.map +1 -1
  727. package/dist/_utils/triggerListeners.d.ts +2 -2
  728. package/dist/_utils/triggerListeners.js.map +1 -1
  729. package/dist/_utils/types.d.ts +1 -1
  730. package/dist/_utils/types.js.map +1 -1
  731. package/package.json +2 -2
  732. package/.eslintrc.json +0 -47
  733. package/dist/Link/Link.coverage.stories.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"Notation.js","names":["React","styled","getTypographyIntent","useDeprecation","colors","variantColorMap","required","error","pagination","StyledNotation","i","withConfig","displayName","componentId","_ref","variant","gray15","Notation","forwardRef","_ref2","ref","children","_ref2$variant","props","_objectWithoutProperties","_excluded","oldThing","newThing","createElement","_extends"],"sources":["../../src/Notation/Notation.tsx"],"sourcesContent":["import React from 'react'\nimport styled from 'styled-components'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { useDeprecation } from '../_hooks/Deprecation'\nimport { colors } from '../_styles/colors'\nimport { SpanAttributes } from '../_utils/types'\nimport { NotationProps } from './Notation.types'\n\nconst variantColorMap = {\n required: 'orange50',\n error: 'red50',\n pagination: 'gray45',\n} as const\n\nconst StyledNotation = styled.i<NotationProps>`\n ${getTypographyIntent('small')}\n color: ${({ variant }) =>\n variant ? colors[variantColorMap[variant]] : colors.gray15};\n font-style: italic;\n`\n/**\n * @deprecated Please use `<Typography italic />` component for plain text\n * notations or the `<Required />` component for required notations. `Notation`\n * will be removed in a future version.\n *\n * @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/coverage-notation--basic-props)\n */\nexport const Notation = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes & NotationProps\n>(function Notation({ children, variant = '', ...props }, ref) {\n useDeprecation({ oldThing: 'Notation', newThing: 'Typography or Required' })\n\n return (\n <StyledNotation {...props} variant={variant} ref={ref}>\n {children}\n </StyledNotation>\n )\n})\n\nNotation.displayName = 'Notation'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAI1C,IAAMC,eAAe,GAAG;EACtBC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE;AACd,CAAU;AAEV,IAAMC,cAAc,gBAAGR,MAAM,CAACS,CAAC,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2CAC3BX,mBAAmB,CAAC,OAAO,CAAC,EACrB,UAAAY,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACjBA,OAAO,GAAGX,MAAM,CAACC,eAAe,CAACU,OAAO,CAAC,CAAC,GAAGX,MAAM,CAACY,MAAM;AAAA,EAE7D;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGjB,KAAK,CAACkB,UAAU,CAGtC,SAASD,QAAQA,CAAAE,KAAA,EAAuCC,GAAG,EAAE;EAAA,IAAzCC,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAAAC,aAAA,GAAAH,KAAA,CAAEJ,OAAO;IAAPA,OAAO,GAAAO,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAKC,KAAK,GAAAC,wBAAA,CAAAL,KAAA,EAAAM,SAAA;EACpDtB,cAAc,CAAC;IAAEuB,QAAQ,EAAE,UAAU;IAAEC,QAAQ,EAAE;EAAyB,CAAC,CAAC;EAE5E,oBACE3B,KAAA,CAAA4B,aAAA,CAACnB,cAAc,EAAAoB,QAAA,KAAKN,KAAK;IAAER,OAAO,EAAEA,OAAQ;IAACK,GAAG,EAAEA;EAAI,IACnDC,QACa,CAAC;AAErB,CAAC,CAAC;AAEFJ,QAAQ,CAACL,WAAW,GAAG,UAAU"}
1
+ {"version":3,"file":"Notation.js","names":["React","styled","getTypographyIntent","useDeprecation","colors","variantColorMap","required","error","pagination","StyledNotation","i","withConfig","displayName","componentId","_ref","variant","gray15","Notation","forwardRef","_ref2","ref","children","_ref2$variant","props","_objectWithoutProperties","_excluded","oldThing","newThing","createElement","_extends"],"sources":["../../src/Notation/Notation.tsx"],"sourcesContent":["import React from 'react'\nimport styled from 'styled-components'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { useDeprecation } from '../_hooks/Deprecation'\nimport { colors } from '../_styles/colors'\nimport type { SpanAttributes } from '../_utils/types'\nimport type { NotationProps } from './Notation.types'\n\nconst variantColorMap = {\n required: 'orange50',\n error: 'red50',\n pagination: 'gray45',\n} as const\n\nconst StyledNotation = styled.i<NotationProps>`\n ${getTypographyIntent('small')}\n color: ${({ variant }) =>\n variant ? colors[variantColorMap[variant]] : colors.gray15};\n font-style: italic;\n`\n/**\n * @deprecated Please use `<Typography italic />` component for plain text\n * notations or the `<Required />` component for required notations. `Notation`\n * will be removed in a future version.\n *\n * @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/coverage-notation--basic-props)\n */\nexport const Notation = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes & NotationProps\n>(function Notation({ children, variant = '', ...props }, ref) {\n useDeprecation({ oldThing: 'Notation', newThing: 'Typography or Required' })\n\n return (\n <StyledNotation {...props} variant={variant} ref={ref}>\n {children}\n </StyledNotation>\n )\n})\n\nNotation.displayName = 'Notation'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAI1C,IAAMC,eAAe,GAAG;EACtBC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE;AACd,CAAU;AAEV,IAAMC,cAAc,gBAAGR,MAAM,CAACS,CAAC,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2CAC3BX,mBAAmB,CAAC,OAAO,CAAC,EACrB,UAAAY,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACjBA,OAAO,GAAGX,MAAM,CAACC,eAAe,CAACU,OAAO,CAAC,CAAC,GAAGX,MAAM,CAACY,MAAM;AAAA,EAE7D;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGjB,KAAK,CAACkB,UAAU,CAGtC,SAASD,QAAQA,CAAAE,KAAA,EAAuCC,GAAG,EAAE;EAAA,IAAzCC,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAAAC,aAAA,GAAAH,KAAA,CAAEJ,OAAO;IAAPA,OAAO,GAAAO,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAKC,KAAK,GAAAC,wBAAA,CAAAL,KAAA,EAAAM,SAAA;EACpDtB,cAAc,CAAC;IAAEuB,QAAQ,EAAE,UAAU;IAAEC,QAAQ,EAAE;EAAyB,CAAC,CAAC;EAE5E,oBACE3B,KAAA,CAAA4B,aAAA,CAACnB,cAAc,EAAAoB,QAAA,KAAKN,KAAK;IAAER,OAAO,EAAEA,OAAQ;IAACK,GAAG,EAAEA;EAAI,IACnDC,QACa,CAAC;AAErB,CAAC,CAAC;AAEFJ,QAAQ,CAACL,WAAW,GAAG,UAAU"}
@@ -1,11 +1,11 @@
1
- import { Props } from '../_utils/types';
1
+ import type { Props } from '../_utils/types';
2
2
  export declare const notationVariant: {
3
3
  readonly error: "error";
4
4
  readonly none: "";
5
5
  readonly pagination: "pagination";
6
6
  readonly required: "required";
7
7
  };
8
- declare type NotationVariant = typeof notationVariant[keyof typeof notationVariant];
8
+ declare type NotationVariant = (typeof notationVariant)[keyof typeof notationVariant];
9
9
  export interface NotationProps extends Props {
10
10
  /**
11
11
  * The notation color variant
@@ -1 +1 @@
1
- {"version":3,"file":"Notation.types.js","names":["notationVariant","error","none","pagination","required"],"sources":["../../src/Notation/Notation.types.ts"],"sourcesContent":["import { Props } from '../_utils/types'\n\nexport const notationVariant = {\n error: 'error',\n none: '',\n pagination: 'pagination',\n required: 'required',\n} as const\n\ntype NotationVariant = typeof notationVariant[keyof typeof notationVariant]\n\nexport interface NotationProps extends Props {\n /**\n * The notation color variant\n * @since 10.19.0\n */\n variant?: NotationVariant\n}\n"],"mappings":"AAEA,OAAO,IAAMA,eAAe,GAAG;EAC7BC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE,YAAY;EACxBC,QAAQ,EAAE;AACZ,CAAU"}
1
+ {"version":3,"file":"Notation.types.js","names":["notationVariant","error","none","pagination","required"],"sources":["../../src/Notation/Notation.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport const notationVariant = {\n error: 'error',\n none: '',\n pagination: 'pagination',\n required: 'required',\n} as const\n\ntype NotationVariant = (typeof notationVariant)[keyof typeof notationVariant]\n\nexport interface NotationProps extends Props {\n /**\n * The notation color variant\n * @since 10.19.0\n */\n variant?: NotationVariant\n}\n"],"mappings":"AAEA,OAAO,IAAMA,eAAe,GAAG;EAC7BC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE,YAAY;EACxBC,QAAQ,EAAE;AACZ,CAAU"}
@@ -1,6 +1,6 @@
1
- import { CurrencyDisplay } from '@procore/globalization-toolkit';
1
+ import type { CurrencyDisplay } from '@procore/globalization-toolkit';
2
2
  import React from 'react';
3
- import { CurrencyInputProps, CurrencyProps, NumberInputProps } from './NumberInput.types';
3
+ import type { CurrencyInputProps, CurrencyProps, NumberInputProps } from './NumberInput.types';
4
4
  /**
5
5
 
6
6
  The number input allows users to add numbers to a given form or table.
@@ -1,4 +1,4 @@
1
- import { InputValue, UseNumberFormatConfig } from './NumberInput.types';
1
+ import type { InputValue, UseNumberFormatConfig } from './NumberInput.types';
2
2
  export declare function usePrevious<T>(value: T): T;
3
3
  export declare function useNumberFormat({ decimalScale: _decimalScale, fillDecimalScale, locale: _locale, }: UseNumberFormatConfig): {
4
4
  formatValue: (value: InputValue) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.hooks.js","names":["React","defaultLocale","format","getLengthInfo","verifyDecimalScale","usePrevious","value","ref","useRef","useEffect","current","useNumberFormat","_ref","_ref$decimalScale","decimalScale","_decimalScale","_ref$fillDecimalScale","fillDecimalScale","_ref$locale","locale","_locale","useMemo","concat","_toConsumableArray","Array","isArray","_React$useMemo","fixedDecimalScale","fillDecimalScaleOnBlur","formatValue","useCallback","getValueLengthInfo","isNumericString","arguments","length","undefined"],"sources":["../../src/NumberInput/NumberInput.hooks.ts"],"sourcesContent":["import React from 'react'\nimport { InputValue, UseNumberFormatConfig } from './NumberInput.types'\nimport {\n defaultLocale,\n format,\n getLengthInfo,\n verifyDecimalScale,\n} from './NumberInput.utils'\n\nexport function usePrevious<T>(value: T) {\n const ref = React.useRef<T>()\n React.useEffect(() => {\n ref.current = value\n })\n return ref.current as T\n}\n\nexport function useNumberFormat({\n decimalScale: _decimalScale = true,\n fillDecimalScale = 'none',\n locale: _locale = defaultLocale,\n}: UseNumberFormatConfig) {\n const locale = React.useMemo(\n () =>\n [\n ...(Array.isArray(_locale) ? _locale : [_locale]),\n defaultLocale,\n ] as string[],\n [_locale]\n )\n\n const { fixedDecimalScale, fillDecimalScaleOnBlur } = React.useMemo(\n () => ({\n fixedDecimalScale: fillDecimalScale === 'always',\n fillDecimalScaleOnBlur: fillDecimalScale === 'onBlur',\n }),\n [fillDecimalScale]\n )\n\n const decimalScale = React.useMemo(\n () => verifyDecimalScale(_decimalScale),\n [_decimalScale]\n )\n\n const formatValue = React.useCallback(\n (value: InputValue) =>\n format(locale, decimalScale, fillDecimalScale, value),\n [locale, decimalScale, fillDecimalScale]\n )\n\n const getValueLengthInfo = React.useCallback(\n (value: InputValue, isNumericString = false) =>\n getLengthInfo(\n locale,\n value,\n decimalScale,\n fillDecimalScale,\n isNumericString\n ),\n [locale, decimalScale, fillDecimalScale]\n )\n\n return {\n formatValue,\n getValueLengthInfo,\n locale,\n fixedDecimalScale,\n fillDecimalScaleOnBlur,\n decimalScale,\n }\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACEC,aAAa,EACbC,MAAM,EACNC,aAAa,EACbC,kBAAkB,QACb,qBAAqB;AAE5B,OAAO,SAASC,WAAWA,CAAIC,KAAQ,EAAE;EACvC,IAAMC,GAAG,GAAGP,KAAK,CAACQ,MAAM,CAAI,CAAC;EAC7BR,KAAK,CAACS,SAAS,CAAC,YAAM;IACpBF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACrB,CAAC,CAAC;EACF,OAAOC,GAAG,CAACG,OAAO;AACp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/B,KAAK,CAAC8B,WAAW,CAC1C,UAACxB,KAAiB;IAAA,IAAE0B,eAAe,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;IAAA,OACzC9B,aAAa,CACXgB,MAAM,EACNb,KAAK,EACLQ,YAAY,EACZG,gBAAgB,EAChBe,eACF,CAAC;EAAA,GACH,CAACb,MAAM,EAAEL,YAAY,EAAEG,gBAAgB,CACzC,CAAC;EAED,OAAO;IACLY,WAAW,EAAXA,WAAW;IACXE,kBAAkB,EAAlBA,kBAAkB;IAClBZ,MAAM,EAANA,MAAM;IACNQ,iBAAiB,EAAjBA,iBAAiB;IACjBC,sBAAsB,EAAtBA,sBAAsB;IACtBd,YAAY,EAAZA;EACF,CAAC;AACH"}
1
+ {"version":3,"file":"NumberInput.hooks.js","names":["React","defaultLocale","format","getLengthInfo","verifyDecimalScale","usePrevious","value","ref","useRef","useEffect","current","useNumberFormat","_ref","_ref$decimalScale","decimalScale","_decimalScale","_ref$fillDecimalScale","fillDecimalScale","_ref$locale","locale","_locale","useMemo","concat","_toConsumableArray","Array","isArray","_React$useMemo","fixedDecimalScale","fillDecimalScaleOnBlur","formatValue","useCallback","getValueLengthInfo","isNumericString","arguments","length","undefined"],"sources":["../../src/NumberInput/NumberInput.hooks.ts"],"sourcesContent":["import React from 'react'\nimport type { InputValue, UseNumberFormatConfig } from './NumberInput.types'\nimport {\n defaultLocale,\n format,\n getLengthInfo,\n verifyDecimalScale,\n} from './NumberInput.utils'\n\nexport function usePrevious<T>(value: T) {\n const ref = React.useRef<T>()\n React.useEffect(() => {\n ref.current = value\n })\n return ref.current as T\n}\n\nexport function useNumberFormat({\n decimalScale: _decimalScale = true,\n fillDecimalScale = 'none',\n locale: _locale = defaultLocale,\n}: UseNumberFormatConfig) {\n const locale = React.useMemo(\n () =>\n [\n ...(Array.isArray(_locale) ? _locale : [_locale]),\n defaultLocale,\n ] as string[],\n [_locale]\n )\n\n const { fixedDecimalScale, fillDecimalScaleOnBlur } = React.useMemo(\n () => ({\n fixedDecimalScale: fillDecimalScale === 'always',\n fillDecimalScaleOnBlur: fillDecimalScale === 'onBlur',\n }),\n [fillDecimalScale]\n )\n\n const decimalScale = React.useMemo(\n () => verifyDecimalScale(_decimalScale),\n [_decimalScale]\n )\n\n const formatValue = React.useCallback(\n (value: InputValue) =>\n format(locale, decimalScale, fillDecimalScale, value),\n [locale, decimalScale, fillDecimalScale]\n )\n\n const getValueLengthInfo = React.useCallback(\n (value: InputValue, isNumericString = false) =>\n getLengthInfo(\n locale,\n value,\n decimalScale,\n fillDecimalScale,\n isNumericString\n ),\n [locale, decimalScale, fillDecimalScale]\n )\n\n return {\n formatValue,\n getValueLengthInfo,\n locale,\n fixedDecimalScale,\n fillDecimalScaleOnBlur,\n decimalScale,\n }\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACEC,aAAa,EACbC,MAAM,EACNC,aAAa,EACbC,kBAAkB,QACb,qBAAqB;AAE5B,OAAO,SAASC,WAAWA,CAAIC,KAAQ,EAAE;EACvC,IAAMC,GAAG,GAAGP,KAAK,CAACQ,MAAM,CAAI,CAAC;EAC7BR,KAAK,CAACS,SAAS,CAAC,YAAM;IACpBF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACrB,CAAC,CAAC;EACF,OAAOC,GAAG,CAACG,OAAO;AACpB;AAEA,OAAO,SAASC,eAAeA,CAAAC,IAAA,EAIL;EAAA,IAAAC,iBAAA,GAAAD,IAAA,CAHxBE,YAAY;IAAEC,aAAa,GAAAF,iBAAA,cAAG,IAAI,GAAAA,iBAAA;IAAAG,qBAAA,GAAAJ,IAAA,CAClCK,gBAAgB;IAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,MAAM,GAAAA,qBAAA;IAAAE,WAAA,GAAAN,IAAA,CACzBO,MAAM;IAAEC,OAAO,GAAAF,WAAA,cAAGjB,aAAa,GAAAiB,WAAA;EAE/B,IAA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,kBAAkB;IAClBZ,MAAM,EAANA,MAAM;IACNQ,iBAAiB,EAAjBA,iBAAiB;IACjBC,sBAAsB,EAAtBA,sBAAsB;IACtBd,YAAY,EAAZA;EACF,CAAC;AACH"}
@@ -207,11 +207,13 @@ export var NumberInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
207
207
  var lastCharIsPending = [periodKey, commaKey].includes(lastChar);
208
208
  var decimals = displayValue.split(decimal)[1] || '';
209
209
  var lastDecimalIsZero = decimals && decimals[decimals.length - 1] === '0';
210
+ var onlyMinusDisplayed = displayValue === minus;
210
211
 
211
212
  // a client state and display mismatch is only valid when
212
- if (lastCharIsPending || lastDecimalIsZero) {
213
+ if (lastCharIsPending || lastDecimalIsZero || onlyMinusDisplayed) {
213
214
  return;
214
215
  }
216
+
215
217
  // otherwise sync display with client state
216
218
  setInputValue(formattedValue);
217
219
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.js","names":["formatCurrencyToParts","findIndex","React","useI18nContext","spacing","mergeRefs","defaultCurrencyFillDecimalScale","defaultCurrencyInputPrefix","useNumberFormat","usePrevious","addonRootFontFamily","addonRootFontSize","addonRootPadding","inputDefaultXPadding","StyledIncrementerButton","StyledIncrementerWrapper","StyledInput","StyledPrefix","StyledSuffix","StyledWrapper","backspaceKey","commaKey","controlKey","copyKey","defaultLocale","deleteKey","emptyString","format","getNewCursorPosition","getSeparators","highlightAllKey","identicalLocales","identifyPressedKey","maxDigitLength","metaKeyIdentifier","minus","numericKeypadKey","periodKey","prepareValueToFormatting","toFixed","unformat","noop","PlusIcon","createElement","width","height","viewBox","xmlns","d","MinusIcon","NumberInput","forwardRef","_ref","ref","_ref$decimalScale","decimalScale","defaultValue","_ref$disabled","disabled","_ref$error","error","_ref$fillDecimalScale","fillDecimalScale","_locale","locale","_onChange","onChange","_ref$onKeyDown","onKeyDown","_onKeyDown","_ref$onBlur","onBlur","_onBlur","_ref$prefix","prefix","readOnly","_ref$step","step","style","_ref$suffix","suffix","value","qa","props","_objectWithoutProperties","_excluded","I18n","contextLocale","inputRef","useRef","_useNumberFormat","verifiedDecimalScale","fillDecimalScaleOnBlur","fixedDecimalScale","formatValue","getValueLengthInfo","isControlled","undefined","isControlledWithoutOnChangeHandlerAndReadOnlyAttribute","hasIncrementer","_React$useMemo","useMemo","group","decimal","decimalSeparatorKey","inputPadding","fontContext","concat","element","document","context","getContext","font","extraBasePadding","suffixPadding","Math","ceil","measureText","getRightPadding","xl","left","right","getValueChange","useCallback","_unformat","parsedNumber","isNaN","externalOnChange","_React$useState","useState","_React$useState2","_slicedToArray","inputValue","setInputValue","_React$useState3","_React$useState4","prevValue","setPrevValue","_React$useState5","selectionStart","selectionEnd","selection","_React$useState6","prevCursorPosition","setPrevCursorPosition","_React$useState7","_React$useState8","pressedKey","setPressedKey","prevLocale","useLayoutEffect","formattedValue","console","useEffect","prev","newValue","_inputRef$current","displayValue","current","lastChar","length","lastCharIsPending","includes","decimals","split","lastDecimalIsZero","getNewValueAndCursorPosition","preparedValue","newCursorPosition","adjustCursor","newPosition","_inputRef$current2","setSelectionRange","setTimeout","_inputRef$current3","makeStep","down","arguments","getSignificantPrecision","fraction","reversedFraction","reverse","indexOfLastSignificantFractionDigit","i","slice","_unformat2","_unformat3","stepFraction","prevValuePrecision","prevValueSignificantPrecision","rawStepPrecision","rawStepPrecisionExceedsDecimalScale","stepPrecision","warn","diff","precision","max","significantPrecision","calculated","_getValueLengthInfo","isSafeLength","isSafeIntegerLength","rejectStepByLengthLimit","formatted","internalOnKeyDown","e","ctrlKey","metaKey","key","_e$target","target","preserveDecimalSeparator","decimalBackspaced","decimalDeleted","nonReplacingKeys","decimalReplacedAsSelection","preserveDecimal","base","shift","cursorPosition","preventDefault","isDecimalSeparatorPreserved","_getValueLengthInfo2","safeIntegerLength","integerLength","fractionLength","decimalSeparatorCanNotBeRemoved","handleIncrementer","internalOnChange","inputType","nativeEvent","_getNewValueAndCursor","internalOnBlur","_unformat4","integer","shouldValueBeCleared","shouldIntegerPartBeFilled","isDecimalSeparatorRedundant","isDecimalScaleNotFilled","shouldDecimalScaleBeFilled","getNewValue","numberOfZerosToPad","Array","from","_","join","replace","RegExp","wrapper","_extends","inputMode","_objectSpread","paddingLeft","paddingRight","withIncrementer","type","tabIndex","increment","onClick","decrement","displayName","getCurrencyProps","_decimalScale","symbol","currencyIsoCode","currencyDisplay","_parts$find","_parts$find2","currencyOptions","parts","formatterDecimalScale","find","part","placement","object","currencyIsoSymbol","toString","currencyProps","CurrencyInput","_ref2","_ref2$fillDecimalScal","_ref2$prefix","_excluded2"],"sources":["../../src/NumberInput/NumberInput.tsx"],"sourcesContent":["import {\n CurrencyDisplay,\n CurrencyOptions,\n formatCurrencyToParts,\n} from '@procore/globalization-toolkit'\nimport { findIndex } from 'ramda'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { spacing } from '../_styles/spacing'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n defaultCurrencyFillDecimalScale,\n defaultCurrencyInputPrefix,\n} from './NumberInput.constants'\nimport { useNumberFormat, usePrevious } from './NumberInput.hooks'\nimport {\n addonRootFontFamily,\n addonRootFontSize,\n addonRootPadding,\n inputDefaultXPadding,\n StyledIncrementerButton,\n StyledIncrementerWrapper,\n StyledInput,\n StyledPrefix,\n StyledSuffix,\n StyledWrapper,\n} from './NumberInput.styles'\nimport {\n CurrencyInputProps,\n CurrencyProps,\n CursorPosition,\n NumberInputProps,\n PressedKey,\n} from './NumberInput.types'\nimport {\n backspaceKey,\n commaKey,\n controlKey,\n copyKey,\n defaultLocale,\n deleteKey,\n emptyString,\n format,\n getNewCursorPosition,\n getSeparators,\n highlightAllKey,\n identicalLocales,\n identifyPressedKey,\n maxDigitLength,\n metaKeyIdentifier,\n minus,\n numericKeypadKey,\n periodKey,\n prepareValueToFormatting,\n toFixed,\n unformat,\n} from './NumberInput.utils'\n\nfunction noop() {}\n\nconst PlusIcon = () => (\n <svg\n width=\"8\"\n height=\"8\"\n viewBox=\"0 0 8 8\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M4.5 0H3.5V3.5H0V4.5H3.5V8H4.5V4.5H8V3.5H4.5V0Z\" />\n </svg>\n)\n\nconst MinusIcon = () => (\n <svg\n width=\"8\"\n height=\"2\"\n viewBox=\"0 0 8 2\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M4.5 0.5H3.5H0V1.5H3.5H4.5H8V0.5H4.5Z\" />\n </svg>\n)\n\n/**\n\n The number input allows users to add numbers to a given form or table.\n The currency input will be used for data with a monetary value.\n Both components allow characters 0-9, periods, and commas. In order to avoid\n the loss of precision, the number length is limited by 15 digits.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-numberinput--demo-number-input)\n\n @see [Design Guidelines](https://design.procore.com/number-and-currency-input)\n\n */\nexport const NumberInput = React.forwardRef<HTMLInputElement, NumberInputProps>(\n (\n {\n decimalScale = true,\n defaultValue,\n disabled = false,\n error = false,\n fillDecimalScale = 'none',\n locale: _locale,\n onChange: _onChange,\n onKeyDown: _onKeyDown = noop,\n onBlur: _onBlur = noop,\n prefix = emptyString,\n readOnly,\n step = 0,\n style,\n suffix = emptyString,\n value,\n qa,\n ...props\n },\n ref\n ) => {\n const I18n = useI18nContext()\n const contextLocale = _locale || I18n.locale || defaultLocale\n const inputRef = React.useRef<HTMLInputElement>(null)\n\n const {\n decimalScale: verifiedDecimalScale,\n fillDecimalScaleOnBlur,\n fixedDecimalScale,\n formatValue,\n getValueLengthInfo,\n locale,\n } = useNumberFormat({\n decimalScale,\n fillDecimalScale,\n locale: contextLocale,\n })\n\n const isControlled = value !== undefined\n const isControlledWithoutOnChangeHandlerAndReadOnlyAttribute =\n isControlled && !_onChange && !readOnly\n const hasIncrementer = step > 0 && !readOnly\n\n const { group, decimal } = React.useMemo(\n () => getSeparators(locale),\n [locale]\n )\n const decimalSeparatorKey = React.useMemo(() => {\n return decimal === periodKey ? periodKey : commaKey\n }, [decimal])\n\n const inputPadding = React.useMemo((): {\n left: number\n right: number | null\n } => {\n const fontContext = `${addonRootFontSize} \"${addonRootFontFamily}\"`\n\n if (prefix || suffix) {\n const element = document.createElement('canvas')\n const context = element?.getContext('2d')\n\n if (context) {\n context.font = fontContext\n\n const extraBasePadding = inputDefaultXPadding + addonRootPadding\n\n const suffixPadding =\n extraBasePadding + Math.ceil(context.measureText(suffix).width)\n\n const getRightPadding = () => {\n if (hasIncrementer && suffix) {\n return suffixPadding + spacing.xl\n }\n if (suffix) {\n return suffixPadding\n }\n return null\n }\n\n return {\n left: prefix\n ? extraBasePadding + Math.ceil(context.measureText(prefix).width)\n : inputDefaultXPadding,\n right: getRightPadding(),\n }\n }\n }\n\n return {\n left: inputDefaultXPadding,\n right: null,\n }\n }, [prefix, suffix, hasIncrementer])\n\n const getValueChange = React.useCallback(\n (value: string) => {\n const { parsedNumber } = unformat(locale, value)\n return {\n value,\n parsedNumber: isNaN(parsedNumber) ? null : parsedNumber,\n }\n },\n [locale]\n )\n\n const externalOnChange = React.useCallback(\n (value: string) => _onChange && _onChange(getValueChange(value)),\n [_onChange, getValueChange]\n )\n\n const [inputValue, setInputValue] = React.useState(\n formatValue(defaultValue)\n )\n const [prevValue, setPrevValue] = React.useState(\n isControlled ? formatValue(value) : inputValue\n )\n const [prevCursorPosition, setPrevCursorPosition] =\n React.useState<CursorPosition>({\n selectionStart: 0,\n selectionEnd: 0,\n selection: emptyString,\n })\n const [pressedKey, setPressedKey] = React.useState()\n const prevLocale = usePrevious(locale)\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n React.useLayoutEffect(() => {\n const formattedValue = formatValue(value)\n if (isControlled && inputValue !== formattedValue) {\n setInputValue(formattedValue)\n }\n\n if (isControlledWithoutOnChangeHandlerAndReadOnlyAttribute) {\n console.error(\n `Warning: Failed prop type: You provided a \\`value\\` prop to a form field without an \\`onChange\\` handler.\n This will render a read-only field. If the field should be mutable use \\`defaultValue\\`.\n Otherwise, set either \\`onChange\\` or \\`readOnly\\`.`\n )\n }\n }, [value])\n\n React.useEffect(() => {\n if (prevLocale && !identicalLocales(prevLocale, locale)) {\n setInputValue((prev) => {\n const newValue = formatValue(unformat(prevLocale, prev).parsedNumber)\n externalOnChange(newValue)\n return newValue\n })\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [prevLocale, formatValue])\n\n React.useLayoutEffect(() => {\n const displayValue = inputRef.current?.value || ''\n if (!_onChange || !displayValue) {\n return\n }\n const formattedValue = formatValue(value)\n\n if (displayValue !== formattedValue) {\n const lastChar = displayValue[displayValue.length - 1]\n const lastCharIsPending = [periodKey, commaKey].includes(lastChar)\n\n const decimals = displayValue.split(decimal)[1] || ''\n const lastDecimalIsZero =\n decimals && decimals[decimals.length - 1] === '0'\n\n // a client state and display mismatch is only valid when\n if (lastCharIsPending || lastDecimalIsZero) {\n return\n }\n // otherwise sync display with client state\n setInputValue(formattedValue)\n }\n })\n\n const getNewValueAndCursorPosition = (\n value: string,\n pressedKey: PressedKey\n ) => {\n const preparedValue = prepareValueToFormatting(\n decimal,\n decimalSeparatorKey,\n group,\n pressedKey,\n prevCursorPosition,\n prevValue,\n verifiedDecimalScale,\n value\n )\n const newValue = formatValue(preparedValue)\n\n return {\n newValue,\n newCursorPosition: getNewCursorPosition(\n decimal,\n decimalSeparatorKey,\n group,\n newValue,\n pressedKey,\n prevCursorPosition,\n prevValue,\n value,\n verifiedDecimalScale,\n locale,\n fillDecimalScale\n ),\n }\n }\n\n const adjustCursor = (newPosition: number) => {\n inputRef.current?.setSelectionRange(newPosition, newPosition)\n // Mobile Chrome adjustment\n setTimeout(\n () => inputRef.current?.setSelectionRange(newPosition, newPosition),\n 0\n )\n }\n\n const makeStep = (down = false) => {\n const getSignificantPrecision = (fraction: string) => {\n const reversedFraction = fraction.split(emptyString).reverse()\n const indexOfLastSignificantFractionDigit = findIndex(\n (i) => i !== '0',\n reversedFraction\n )\n\n return indexOfLastSignificantFractionDigit > -1\n ? reversedFraction.slice(indexOfLastSignificantFractionDigit).length\n : 0\n }\n\n const { parsedNumber, fraction } = unformat(locale, inputValue)\n const { fraction: stepFraction } = unformat(locale, step)\n\n const prevValuePrecision = fraction.length || 0\n const prevValueSignificantPrecision = getSignificantPrecision(fraction)\n const rawStepPrecision = stepFraction.length || 0\n const rawStepPrecisionExceedsDecimalScale =\n rawStepPrecision > verifiedDecimalScale\n const stepPrecision = rawStepPrecisionExceedsDecimalScale\n ? verifiedDecimalScale\n : rawStepPrecision\n\n if (rawStepPrecisionExceedsDecimalScale) {\n console.warn(\n `WARNING: Step's value was rounded since its scale (${rawStepPrecision}) exceeds the decimal scale (${verifiedDecimalScale}).`\n )\n }\n\n const diff = toFixed(step, stepPrecision) * (down ? -1 : 1)\n const precision = Math.max(\n stepPrecision,\n fixedDecimalScale ? verifiedDecimalScale : prevValuePrecision\n )\n const significantPrecision = Math.max(\n prevValueSignificantPrecision,\n stepPrecision\n )\n const calculated = inputValue\n ? ((parsedNumber || 0) + diff).toFixed(significantPrecision)\n : diff\n\n const { isSafeLength, isSafeIntegerLength } = getValueLengthInfo(\n calculated,\n true\n )\n\n const rejectStepByLengthLimit = !isSafeLength || !isSafeIntegerLength\n\n if (rejectStepByLengthLimit) {\n console.warn(\n `WARNING: Incrementer's step was not fulfilled since result oversteps input ${maxDigitLength}-digit limit and can't be presented without a loss of precision.`\n )\n return\n }\n\n const formatted = format(locale, precision, 'always', calculated, true)\n\n setInputValue(formatted)\n externalOnChange(formatted)\n }\n\n const internalOnKeyDown = (e: any) => {\n const {\n ctrlKey,\n metaKey,\n key,\n target: { value, selectionStart, selectionEnd },\n } = e\n\n const selection = value.slice(selectionStart, selectionEnd)\n\n setPressedKey(key)\n setPrevCursorPosition({\n selectionStart,\n selectionEnd,\n selection,\n })\n setPrevValue(value)\n\n const preserveDecimalSeparator = () => {\n const decimalBackspaced =\n !selection &&\n [backspaceKey].includes(key) &&\n value[selectionEnd - 1] === decimal\n\n const decimalDeleted =\n !selection &&\n [deleteKey, numericKeypadKey].includes(key) &&\n value[selectionEnd] === decimal\n\n const nonReplacingKeys =\n [metaKeyIdentifier, controlKey, highlightAllKey, copyKey].includes(\n key\n ) &&\n (ctrlKey || metaKey)\n\n const decimalReplacedAsSelection =\n selection &&\n selection.includes(decimal) &&\n selection.length < value.length &&\n !nonReplacingKeys\n\n const preserveDecimal =\n decimalBackspaced || decimalDeleted || decimalReplacedAsSelection\n\n if (preserveDecimal) {\n const base = decimalReplacedAsSelection\n ? selectionStart\n : selectionEnd\n\n const shift = (decimalBackspaced && -1) || (decimalDeleted && 1) || 0\n\n const cursorPosition = base + shift\n\n e.preventDefault()\n adjustCursor(cursorPosition)\n }\n }\n\n const isDecimalSeparatorPreserved = () => {\n const { safeIntegerLength, integerLength, fractionLength } =\n getValueLengthInfo(value)\n\n const decimalSeparatorCanNotBeRemoved =\n safeIntegerLength - integerLength < fractionLength\n\n return (\n (fillDecimalScaleOnBlur && decimalSeparatorCanNotBeRemoved) ||\n fixedDecimalScale\n )\n }\n\n if (isDecimalSeparatorPreserved()) {\n preserveDecimalSeparator()\n }\n\n const handleIncrementer = () => {\n switch (key) {\n case 'ArrowUp':\n case 'Up':\n e.preventDefault()\n makeStep()\n break\n case 'ArrowDown':\n case 'Down':\n e.preventDefault()\n makeStep(true)\n break\n }\n }\n\n if (hasIncrementer) {\n handleIncrementer()\n }\n\n _onKeyDown(e)\n }\n\n const internalOnChange = (e: any) => {\n if (isControlledWithoutOnChangeHandlerAndReadOnlyAttribute) return\n\n const {\n target: { value },\n nativeEvent: { inputType },\n } = e\n\n const { newValue, newCursorPosition } = getNewValueAndCursorPosition(\n value,\n identifyPressedKey(\n decimalSeparatorKey,\n inputType,\n pressedKey,\n prevValue,\n value\n )\n )\n // Prevent cursor flickering\n e.target.value = newValue\n\n setInputValue(newValue)\n adjustCursor(newCursorPosition)\n\n if (newValue !== prevValue) {\n externalOnChange(newValue)\n }\n }\n\n const internalOnBlur = (e: any) => {\n const { integer, fraction } = unformat(locale, inputValue)\n\n const shouldValueBeCleared =\n inputValue === minus ||\n inputValue === decimal ||\n inputValue === `${minus}${decimal}`\n const shouldIntegerPartBeFilled =\n fraction.length > 0 && (integer === emptyString || integer === minus)\n const isDecimalSeparatorRedundant =\n verifiedDecimalScale > 0 &&\n inputValue[inputValue.length - 1] === decimal &&\n !fillDecimalScaleOnBlur\n const isDecimalScaleNotFilled = verifiedDecimalScale - fraction.length > 0\n const shouldDecimalScaleBeFilled =\n fillDecimalScaleOnBlur && isDecimalScaleNotFilled\n\n if (\n shouldValueBeCleared ||\n shouldIntegerPartBeFilled ||\n isDecimalSeparatorRedundant ||\n shouldDecimalScaleBeFilled\n ) {\n const getNewValue = () => {\n if (shouldValueBeCleared) {\n return emptyString\n }\n if (shouldIntegerPartBeFilled) {\n const numberOfZerosToPad = verifiedDecimalScale - fraction.length\n return `${integer}0${decimal}${\n shouldDecimalScaleBeFilled\n ? fraction.concat(\n Array.from({ length: numberOfZerosToPad }, (_) => '0').join(\n emptyString\n )\n )\n : fraction\n }`\n }\n if (isDecimalSeparatorRedundant) {\n return inputValue.replace(\n new RegExp(`[${decimal}]`, 'g'),\n emptyString\n )\n }\n if (shouldDecimalScaleBeFilled) {\n return format(locale, verifiedDecimalScale, 'always', inputValue)\n }\n\n return inputValue\n }\n const newValue = getNewValue()\n setInputValue(newValue)\n externalOnChange(newValue)\n }\n\n _onBlur(e)\n }\n\n return (\n <StyledWrapper hasIncrementer={hasIncrementer} data-qa={qa?.wrapper}>\n <StyledInput\n value={inputValue}\n disabled={disabled}\n error={error}\n onKeyDown={internalOnKeyDown}\n onChange={internalOnChange}\n onBlur={internalOnBlur}\n inputMode=\"numeric\"\n readOnly={readOnly}\n style={{\n ...style,\n ...{\n paddingLeft: `${inputPadding.left}px`,\n paddingRight: `${inputPadding.right}px`,\n },\n }}\n {...props}\n ref={mergeRefs(ref, inputRef)}\n />\n {prefix && <StyledPrefix disabled={disabled}>{prefix}</StyledPrefix>}\n {suffix && (\n <StyledSuffix withIncrementer={hasIncrementer} disabled={disabled}>\n {suffix}\n </StyledSuffix>\n )}\n {hasIncrementer && (\n <StyledIncrementerWrapper>\n <StyledIncrementerButton\n aria-hidden=\"true\"\n type=\"button\"\n disabled={disabled}\n tabIndex={-1}\n data-qa={qa?.increment}\n onClick={() => makeStep()}\n >\n <PlusIcon />\n </StyledIncrementerButton>\n <StyledIncrementerButton\n aria-hidden=\"true\"\n type=\"button\"\n disabled={disabled}\n tabIndex={-1}\n data-qa={qa?.decrement}\n onClick={() => makeStep(true)}\n >\n <MinusIcon />\n </StyledIncrementerButton>\n </StyledIncrementerWrapper>\n )}\n </StyledWrapper>\n )\n }\n)\n\nNumberInput.displayName = 'NumberInput'\n\nexport const getCurrencyProps = (\n locale: string,\n _decimalScale: NumberInputProps['decimalScale'],\n symbol?: string,\n currencyIsoCode?: string,\n currencyDisplay?: CurrencyDisplay\n): CurrencyProps => {\n const currencyOptions: CurrencyOptions = {\n locale,\n currencyIsoCode: currencyIsoCode || 'USD',\n currencyDisplay: currencyDisplay || 'narrowSymbol',\n }\n const parts = formatCurrencyToParts(1, currencyOptions)\n\n const formatterDecimalScale =\n parts.find((part) => part.type === 'fraction')?.value.length || 0\n const decimalScale = _decimalScale || formatterDecimalScale\n\n const placement =\n parts.findIndex((object) => {\n return object.type === 'currency'\n }) <\n parts.findIndex((part) => {\n return part.type === 'integer'\n })\n ? 'prefix'\n : 'suffix'\n\n const currencyIsoSymbol = currencyIsoCode\n ? parts.find((part) => part.type === 'currency')?.value.toString()\n : undefined\n\n const currencyProps: CurrencyProps =\n placement === 'prefix'\n ? {\n decimalScale: decimalScale as NumberInputProps['decimalScale'],\n prefix: currencyIsoSymbol || symbol || '',\n }\n : {\n decimalScale: decimalScale as NumberInputProps['decimalScale'],\n suffix: currencyIsoSymbol || symbol || '',\n }\n\n return currencyProps\n}\n\nexport const CurrencyInput = React.forwardRef<\n HTMLInputElement,\n CurrencyInputProps\n>(\n (\n {\n currencyDisplay,\n currencyIsoCode,\n decimalScale: _decimalScale,\n fillDecimalScale = defaultCurrencyFillDecimalScale,\n prefix = defaultCurrencyInputPrefix,\n suffix,\n ...props\n },\n ref\n ) => {\n const I18n = useI18nContext()\n const contextLocale = props.locale || I18n.locale || defaultLocale\n\n const currencyProps: CurrencyProps = getCurrencyProps(\n contextLocale as string,\n _decimalScale,\n prefix || suffix,\n currencyIsoCode,\n currencyDisplay\n )\n\n return (\n <NumberInput\n fillDecimalScale={fillDecimalScale}\n {...props}\n {...currencyProps}\n ref={ref}\n />\n )\n }\n)\n\nCurrencyInput.displayName = 'CurrencyInput'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAGEA,qBAAqB,QAChB,gCAAgC;AACvC,SAASC,SAAS,QAAQ,OAAO;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,+BAA+B,EAC/BC,0BAA0B,QACrB,yBAAyB;AAChC,SAASC,eAAe,EAAEC,WAAW,QAAQ,qBAAqB;AAClE,SACEC,mBAAmB,EACnBC,iBAAiB,EACjBC,gBAAgB,EAChBC,oBAAoB,EACpBC,uBAAuB,EACvBC,wBAAwB,EACxBC,WAAW,EACXC,YAAY,EACZC,YAAY,EACZC,aAAa,QACR,sBAAsB;AAQ7B,SACEC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,OAAO,EACPC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,MAAM,EACNC,oBAAoB,EACpBC,aAAa,EACbC,eAAe,EACfC,gBAAgB,EAChBC,kBAAkB,EAClBC,cAAc,EACdC,iBAAiB,EACjBC,KAAK,EACLC,gBAAgB,EAChBC,SAAS,EACTC,wBAAwB,EACxBC,OAAO,EACPC,QAAQ,QACH,qBAAqB;AAE5B,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,IAAMC,QAAQ,GAAG,S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,GAAG,eAAe"}
1
+ {"version":3,"file":"NumberInput.js","names":["formatCurrencyToParts","findIndex","React","useI18nContext","spacing","mergeRefs","defaultCurrencyFillDecimalScale","defaultCurrencyInputPrefix","useNumberFormat","usePrevious","addonRootFontFamily","addonRootFontSize","addonRootPadding","inputDefaultXPadding","StyledIncrementerButton","StyledIncrementerWrapper","StyledInput","StyledPrefix","StyledSuffix","StyledWrapper","backspaceKey","commaKey","controlKey","copyKey","defaultLocale","deleteKey","emptyString","format","getNewCursorPosition","getSeparators","highlightAllKey","identicalLocales","identifyPressedKey","maxDigitLength","metaKeyIdentifier","minus","numericKeypadKey","periodKey","prepareValueToFormatting","toFixed","unformat","noop","PlusIcon","createElement","width","height","viewBox","xmlns","d","MinusIcon","NumberInput","forwardRef","_ref","ref","_ref$decimalScale","decimalScale","defaultValue","_ref$disabled","disabled","_ref$error","error","_ref$fillDecimalScale","fillDecimalScale","_locale","locale","_onChange","onChange","_ref$onKeyDown","onKeyDown","_onKeyDown","_ref$onBlur","onBlur","_onBlur","_ref$prefix","prefix","readOnly","_ref$step","step","style","_ref$suffix","suffix","value","qa","props","_objectWithoutProperties","_excluded","I18n","contextLocale","inputRef","useRef","_useNumberFormat","verifiedDecimalScale","fillDecimalScaleOnBlur","fixedDecimalScale","formatValue","getValueLengthInfo","isControlled","undefined","isControlledWithoutOnChangeHandlerAndReadOnlyAttribute","hasIncrementer","_React$useMemo","useMemo","group","decimal","decimalSeparatorKey","inputPadding","fontContext","concat","element","document","context","getContext","font","extraBasePadding","suffixPadding","Math","ceil","measureText","getRightPadding","xl","left","right","getValueChange","useCallback","_unformat","parsedNumber","isNaN","externalOnChange","_React$useState","useState","_React$useState2","_slicedToArray","inputValue","setInputValue","_React$useState3","_React$useState4","prevValue","setPrevValue","_React$useState5","selectionStart","selectionEnd","selection","_React$useState6","prevCursorPosition","setPrevCursorPosition","_React$useState7","_React$useState8","pressedKey","setPressedKey","prevLocale","useLayoutEffect","formattedValue","console","useEffect","prev","newValue","_inputRef$current","displayValue","current","lastChar","length","lastCharIsPending","includes","decimals","split","lastDecimalIsZero","onlyMinusDisplayed","getNewValueAndCursorPosition","preparedValue","newCursorPosition","adjustCursor","newPosition","_inputRef$current2","setSelectionRange","setTimeout","_inputRef$current3","makeStep","down","arguments","getSignificantPrecision","fraction","reversedFraction","reverse","indexOfLastSignificantFractionDigit","i","slice","_unformat2","_unformat3","stepFraction","prevValuePrecision","prevValueSignificantPrecision","rawStepPrecision","rawStepPrecisionExceedsDecimalScale","stepPrecision","warn","diff","precision","max","significantPrecision","calculated","_getValueLengthInfo","isSafeLength","isSafeIntegerLength","rejectStepByLengthLimit","formatted","internalOnKeyDown","e","ctrlKey","metaKey","key","_e$target","target","preserveDecimalSeparator","decimalBackspaced","decimalDeleted","nonReplacingKeys","decimalReplacedAsSelection","preserveDecimal","base","shift","cursorPosition","preventDefault","isDecimalSeparatorPreserved","_getValueLengthInfo2","safeIntegerLength","integerLength","fractionLength","decimalSeparatorCanNotBeRemoved","handleIncrementer","internalOnChange","inputType","nativeEvent","_getNewValueAndCursor","internalOnBlur","_unformat4","integer","shouldValueBeCleared","shouldIntegerPartBeFilled","isDecimalSeparatorRedundant","isDecimalScaleNotFilled","shouldDecimalScaleBeFilled","getNewValue","numberOfZerosToPad","Array","from","_","join","replace","RegExp","wrapper","_extends","inputMode","_objectSpread","paddingLeft","paddingRight","withIncrementer","type","tabIndex","increment","onClick","decrement","displayName","getCurrencyProps","_decimalScale","symbol","currencyIsoCode","currencyDisplay","_parts$find","_parts$find2","currencyOptions","parts","formatterDecimalScale","find","part","placement","object","currencyIsoSymbol","toString","currencyProps","CurrencyInput","_ref2","_ref2$fillDecimalScal","_ref2$prefix","_excluded2"],"sources":["../../src/NumberInput/NumberInput.tsx"],"sourcesContent":["import type {\n CurrencyDisplay,\n CurrencyOptions,\n} from '@procore/globalization-toolkit'\nimport { formatCurrencyToParts } from '@procore/globalization-toolkit'\nimport { findIndex } from 'ramda'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { spacing } from '../_styles/spacing'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n defaultCurrencyFillDecimalScale,\n defaultCurrencyInputPrefix,\n} from './NumberInput.constants'\nimport { useNumberFormat, usePrevious } from './NumberInput.hooks'\nimport {\n addonRootFontFamily,\n addonRootFontSize,\n addonRootPadding,\n inputDefaultXPadding,\n StyledIncrementerButton,\n StyledIncrementerWrapper,\n StyledInput,\n StyledPrefix,\n StyledSuffix,\n StyledWrapper,\n} from './NumberInput.styles'\nimport type {\n CurrencyInputProps,\n CurrencyProps,\n CursorPosition,\n NumberInputProps,\n PressedKey,\n} from './NumberInput.types'\nimport {\n backspaceKey,\n commaKey,\n controlKey,\n copyKey,\n defaultLocale,\n deleteKey,\n emptyString,\n format,\n getNewCursorPosition,\n getSeparators,\n highlightAllKey,\n identicalLocales,\n identifyPressedKey,\n maxDigitLength,\n metaKeyIdentifier,\n minus,\n numericKeypadKey,\n periodKey,\n prepareValueToFormatting,\n toFixed,\n unformat,\n} from './NumberInput.utils'\n\nfunction noop() {}\n\nconst PlusIcon = () => (\n <svg\n width=\"8\"\n height=\"8\"\n viewBox=\"0 0 8 8\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M4.5 0H3.5V3.5H0V4.5H3.5V8H4.5V4.5H8V3.5H4.5V0Z\" />\n </svg>\n)\n\nconst MinusIcon = () => (\n <svg\n width=\"8\"\n height=\"2\"\n viewBox=\"0 0 8 2\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M4.5 0.5H3.5H0V1.5H3.5H4.5H8V0.5H4.5Z\" />\n </svg>\n)\n\n/**\n\n The number input allows users to add numbers to a given form or table.\n The currency input will be used for data with a monetary value.\n Both components allow characters 0-9, periods, and commas. In order to avoid\n the loss of precision, the number length is limited by 15 digits.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-numberinput--demo-number-input)\n\n @see [Design Guidelines](https://design.procore.com/number-and-currency-input)\n\n */\nexport const NumberInput = React.forwardRef<HTMLInputElement, NumberInputProps>(\n (\n {\n decimalScale = true,\n defaultValue,\n disabled = false,\n error = false,\n fillDecimalScale = 'none',\n locale: _locale,\n onChange: _onChange,\n onKeyDown: _onKeyDown = noop,\n onBlur: _onBlur = noop,\n prefix = emptyString,\n readOnly,\n step = 0,\n style,\n suffix = emptyString,\n value,\n qa,\n ...props\n },\n ref\n ) => {\n const I18n = useI18nContext()\n const contextLocale = _locale || I18n.locale || defaultLocale\n const inputRef = React.useRef<HTMLInputElement>(null)\n\n const {\n decimalScale: verifiedDecimalScale,\n fillDecimalScaleOnBlur,\n fixedDecimalScale,\n formatValue,\n getValueLengthInfo,\n locale,\n } = useNumberFormat({\n decimalScale,\n fillDecimalScale,\n locale: contextLocale,\n })\n\n const isControlled = value !== undefined\n const isControlledWithoutOnChangeHandlerAndReadOnlyAttribute =\n isControlled && !_onChange && !readOnly\n const hasIncrementer = step > 0 && !readOnly\n\n const { group, decimal } = React.useMemo(\n () => getSeparators(locale),\n [locale]\n )\n const decimalSeparatorKey = React.useMemo(() => {\n return decimal === periodKey ? periodKey : commaKey\n }, [decimal])\n\n const inputPadding = React.useMemo((): {\n left: number\n right: number | null\n } => {\n const fontContext = `${addonRootFontSize} \"${addonRootFontFamily}\"`\n\n if (prefix || suffix) {\n const element = document.createElement('canvas')\n const context = element?.getContext('2d')\n\n if (context) {\n context.font = fontContext\n\n const extraBasePadding = inputDefaultXPadding + addonRootPadding\n\n const suffixPadding =\n extraBasePadding + Math.ceil(context.measureText(suffix).width)\n\n const getRightPadding = () => {\n if (hasIncrementer && suffix) {\n return suffixPadding + spacing.xl\n }\n if (suffix) {\n return suffixPadding\n }\n return null\n }\n\n return {\n left: prefix\n ? extraBasePadding + Math.ceil(context.measureText(prefix).width)\n : inputDefaultXPadding,\n right: getRightPadding(),\n }\n }\n }\n\n return {\n left: inputDefaultXPadding,\n right: null,\n }\n }, [prefix, suffix, hasIncrementer])\n\n const getValueChange = React.useCallback(\n (value: string) => {\n const { parsedNumber } = unformat(locale, value)\n return {\n value,\n parsedNumber: isNaN(parsedNumber) ? null : parsedNumber,\n }\n },\n [locale]\n )\n\n const externalOnChange = React.useCallback(\n (value: string) => _onChange && _onChange(getValueChange(value)),\n [_onChange, getValueChange]\n )\n\n const [inputValue, setInputValue] = React.useState(\n formatValue(defaultValue)\n )\n const [prevValue, setPrevValue] = React.useState(\n isControlled ? formatValue(value) : inputValue\n )\n const [prevCursorPosition, setPrevCursorPosition] =\n React.useState<CursorPosition>({\n selectionStart: 0,\n selectionEnd: 0,\n selection: emptyString,\n })\n const [pressedKey, setPressedKey] = React.useState()\n const prevLocale = usePrevious(locale)\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n React.useLayoutEffect(() => {\n const formattedValue = formatValue(value)\n if (isControlled && inputValue !== formattedValue) {\n setInputValue(formattedValue)\n }\n\n if (isControlledWithoutOnChangeHandlerAndReadOnlyAttribute) {\n console.error(\n `Warning: Failed prop type: You provided a \\`value\\` prop to a form field without an \\`onChange\\` handler.\n This will render a read-only field. If the field should be mutable use \\`defaultValue\\`.\n Otherwise, set either \\`onChange\\` or \\`readOnly\\`.`\n )\n }\n }, [value])\n\n React.useEffect(() => {\n if (prevLocale && !identicalLocales(prevLocale, locale)) {\n setInputValue((prev) => {\n const newValue = formatValue(unformat(prevLocale, prev).parsedNumber)\n externalOnChange(newValue)\n return newValue\n })\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [prevLocale, formatValue])\n\n React.useLayoutEffect(() => {\n const displayValue = inputRef.current?.value || ''\n if (!_onChange || !displayValue) {\n return\n }\n const formattedValue = formatValue(value)\n\n if (displayValue !== formattedValue) {\n const lastChar = displayValue[displayValue.length - 1]\n const lastCharIsPending = [periodKey, commaKey].includes(lastChar)\n\n const decimals = displayValue.split(decimal)[1] || ''\n const lastDecimalIsZero =\n decimals && decimals[decimals.length - 1] === '0'\n\n const onlyMinusDisplayed = displayValue === minus\n\n // a client state and display mismatch is only valid when\n if (lastCharIsPending || lastDecimalIsZero || onlyMinusDisplayed) {\n return\n }\n\n // otherwise sync display with client state\n setInputValue(formattedValue)\n }\n })\n\n const getNewValueAndCursorPosition = (\n value: string,\n pressedKey: PressedKey\n ) => {\n const preparedValue = prepareValueToFormatting(\n decimal,\n decimalSeparatorKey,\n group,\n pressedKey,\n prevCursorPosition,\n prevValue,\n verifiedDecimalScale,\n value\n )\n const newValue = formatValue(preparedValue)\n\n return {\n newValue,\n newCursorPosition: getNewCursorPosition(\n decimal,\n decimalSeparatorKey,\n group,\n newValue,\n pressedKey,\n prevCursorPosition,\n prevValue,\n value,\n verifiedDecimalScale,\n locale,\n fillDecimalScale\n ),\n }\n }\n\n const adjustCursor = (newPosition: number) => {\n inputRef.current?.setSelectionRange(newPosition, newPosition)\n // Mobile Chrome adjustment\n setTimeout(\n () => inputRef.current?.setSelectionRange(newPosition, newPosition),\n 0\n )\n }\n\n const makeStep = (down = false) => {\n const getSignificantPrecision = (fraction: string) => {\n const reversedFraction = fraction.split(emptyString).reverse()\n const indexOfLastSignificantFractionDigit = findIndex(\n (i) => i !== '0',\n reversedFraction\n )\n\n return indexOfLastSignificantFractionDigit > -1\n ? reversedFraction.slice(indexOfLastSignificantFractionDigit).length\n : 0\n }\n\n const { parsedNumber, fraction } = unformat(locale, inputValue)\n const { fraction: stepFraction } = unformat(locale, step)\n\n const prevValuePrecision = fraction.length || 0\n const prevValueSignificantPrecision = getSignificantPrecision(fraction)\n const rawStepPrecision = stepFraction.length || 0\n const rawStepPrecisionExceedsDecimalScale =\n rawStepPrecision > verifiedDecimalScale\n const stepPrecision = rawStepPrecisionExceedsDecimalScale\n ? verifiedDecimalScale\n : rawStepPrecision\n\n if (rawStepPrecisionExceedsDecimalScale) {\n console.warn(\n `WARNING: Step's value was rounded since its scale (${rawStepPrecision}) exceeds the decimal scale (${verifiedDecimalScale}).`\n )\n }\n\n const diff = toFixed(step, stepPrecision) * (down ? -1 : 1)\n const precision = Math.max(\n stepPrecision,\n fixedDecimalScale ? verifiedDecimalScale : prevValuePrecision\n )\n const significantPrecision = Math.max(\n prevValueSignificantPrecision,\n stepPrecision\n )\n const calculated = inputValue\n ? ((parsedNumber || 0) + diff).toFixed(significantPrecision)\n : diff\n\n const { isSafeLength, isSafeIntegerLength } = getValueLengthInfo(\n calculated,\n true\n )\n\n const rejectStepByLengthLimit = !isSafeLength || !isSafeIntegerLength\n\n if (rejectStepByLengthLimit) {\n console.warn(\n `WARNING: Incrementer's step was not fulfilled since result oversteps input ${maxDigitLength}-digit limit and can't be presented without a loss of precision.`\n )\n return\n }\n\n const formatted = format(locale, precision, 'always', calculated, true)\n\n setInputValue(formatted)\n externalOnChange(formatted)\n }\n\n const internalOnKeyDown = (e: any) => {\n const {\n ctrlKey,\n metaKey,\n key,\n target: { value, selectionStart, selectionEnd },\n } = e\n\n const selection = value.slice(selectionStart, selectionEnd)\n\n setPressedKey(key)\n setPrevCursorPosition({\n selectionStart,\n selectionEnd,\n selection,\n })\n setPrevValue(value)\n\n const preserveDecimalSeparator = () => {\n const decimalBackspaced =\n !selection &&\n [backspaceKey].includes(key) &&\n value[selectionEnd - 1] === decimal\n\n const decimalDeleted =\n !selection &&\n [deleteKey, numericKeypadKey].includes(key) &&\n value[selectionEnd] === decimal\n\n const nonReplacingKeys =\n [metaKeyIdentifier, controlKey, highlightAllKey, copyKey].includes(\n key\n ) &&\n (ctrlKey || metaKey)\n\n const decimalReplacedAsSelection =\n selection &&\n selection.includes(decimal) &&\n selection.length < value.length &&\n !nonReplacingKeys\n\n const preserveDecimal =\n decimalBackspaced || decimalDeleted || decimalReplacedAsSelection\n\n if (preserveDecimal) {\n const base = decimalReplacedAsSelection\n ? selectionStart\n : selectionEnd\n\n const shift = (decimalBackspaced && -1) || (decimalDeleted && 1) || 0\n\n const cursorPosition = base + shift\n\n e.preventDefault()\n adjustCursor(cursorPosition)\n }\n }\n\n const isDecimalSeparatorPreserved = () => {\n const { safeIntegerLength, integerLength, fractionLength } =\n getValueLengthInfo(value)\n\n const decimalSeparatorCanNotBeRemoved =\n safeIntegerLength - integerLength < fractionLength\n\n return (\n (fillDecimalScaleOnBlur && decimalSeparatorCanNotBeRemoved) ||\n fixedDecimalScale\n )\n }\n\n if (isDecimalSeparatorPreserved()) {\n preserveDecimalSeparator()\n }\n\n const handleIncrementer = () => {\n switch (key) {\n case 'ArrowUp':\n case 'Up':\n e.preventDefault()\n makeStep()\n break\n case 'ArrowDown':\n case 'Down':\n e.preventDefault()\n makeStep(true)\n break\n }\n }\n\n if (hasIncrementer) {\n handleIncrementer()\n }\n\n _onKeyDown(e)\n }\n\n const internalOnChange = (e: any) => {\n if (isControlledWithoutOnChangeHandlerAndReadOnlyAttribute) return\n\n const {\n target: { value },\n nativeEvent: { inputType },\n } = e\n\n const { newValue, newCursorPosition } = getNewValueAndCursorPosition(\n value,\n identifyPressedKey(\n decimalSeparatorKey,\n inputType,\n pressedKey,\n prevValue,\n value\n )\n )\n // Prevent cursor flickering\n e.target.value = newValue\n\n setInputValue(newValue)\n adjustCursor(newCursorPosition)\n\n if (newValue !== prevValue) {\n externalOnChange(newValue)\n }\n }\n\n const internalOnBlur = (e: any) => {\n const { integer, fraction } = unformat(locale, inputValue)\n\n const shouldValueBeCleared =\n inputValue === minus ||\n inputValue === decimal ||\n inputValue === `${minus}${decimal}`\n const shouldIntegerPartBeFilled =\n fraction.length > 0 && (integer === emptyString || integer === minus)\n const isDecimalSeparatorRedundant =\n verifiedDecimalScale > 0 &&\n inputValue[inputValue.length - 1] === decimal &&\n !fillDecimalScaleOnBlur\n const isDecimalScaleNotFilled = verifiedDecimalScale - fraction.length > 0\n const shouldDecimalScaleBeFilled =\n fillDecimalScaleOnBlur && isDecimalScaleNotFilled\n\n if (\n shouldValueBeCleared ||\n shouldIntegerPartBeFilled ||\n isDecimalSeparatorRedundant ||\n shouldDecimalScaleBeFilled\n ) {\n const getNewValue = () => {\n if (shouldValueBeCleared) {\n return emptyString\n }\n if (shouldIntegerPartBeFilled) {\n const numberOfZerosToPad = verifiedDecimalScale - fraction.length\n return `${integer}0${decimal}${\n shouldDecimalScaleBeFilled\n ? fraction.concat(\n Array.from({ length: numberOfZerosToPad }, (_) => '0').join(\n emptyString\n )\n )\n : fraction\n }`\n }\n if (isDecimalSeparatorRedundant) {\n return inputValue.replace(\n new RegExp(`[${decimal}]`, 'g'),\n emptyString\n )\n }\n if (shouldDecimalScaleBeFilled) {\n return format(locale, verifiedDecimalScale, 'always', inputValue)\n }\n\n return inputValue\n }\n const newValue = getNewValue()\n setInputValue(newValue)\n externalOnChange(newValue)\n }\n\n _onBlur(e)\n }\n\n return (\n <StyledWrapper hasIncrementer={hasIncrementer} data-qa={qa?.wrapper}>\n <StyledInput\n value={inputValue}\n disabled={disabled}\n error={error}\n onKeyDown={internalOnKeyDown}\n onChange={internalOnChange}\n onBlur={internalOnBlur}\n inputMode=\"numeric\"\n readOnly={readOnly}\n style={{\n ...style,\n ...{\n paddingLeft: `${inputPadding.left}px`,\n paddingRight: `${inputPadding.right}px`,\n },\n }}\n {...props}\n ref={mergeRefs(ref, inputRef)}\n />\n {prefix && <StyledPrefix disabled={disabled}>{prefix}</StyledPrefix>}\n {suffix && (\n <StyledSuffix withIncrementer={hasIncrementer} disabled={disabled}>\n {suffix}\n </StyledSuffix>\n )}\n {hasIncrementer && (\n <StyledIncrementerWrapper>\n <StyledIncrementerButton\n aria-hidden=\"true\"\n type=\"button\"\n disabled={disabled}\n tabIndex={-1}\n data-qa={qa?.increment}\n onClick={() => makeStep()}\n >\n <PlusIcon />\n </StyledIncrementerButton>\n <StyledIncrementerButton\n aria-hidden=\"true\"\n type=\"button\"\n disabled={disabled}\n tabIndex={-1}\n data-qa={qa?.decrement}\n onClick={() => makeStep(true)}\n >\n <MinusIcon />\n </StyledIncrementerButton>\n </StyledIncrementerWrapper>\n )}\n </StyledWrapper>\n )\n }\n)\n\nNumberInput.displayName = 'NumberInput'\n\nexport const getCurrencyProps = (\n locale: string,\n _decimalScale: NumberInputProps['decimalScale'],\n symbol?: string,\n currencyIsoCode?: string,\n currencyDisplay?: CurrencyDisplay\n): CurrencyProps => {\n const currencyOptions: CurrencyOptions = {\n locale,\n currencyIsoCode: currencyIsoCode || 'USD',\n currencyDisplay: currencyDisplay || 'narrowSymbol',\n }\n const parts = formatCurrencyToParts(1, currencyOptions)\n\n const formatterDecimalScale =\n parts.find((part) => part.type === 'fraction')?.value.length || 0\n const decimalScale = _decimalScale || formatterDecimalScale\n\n const placement =\n parts.findIndex((object) => {\n return object.type === 'currency'\n }) <\n parts.findIndex((part) => {\n return part.type === 'integer'\n })\n ? 'prefix'\n : 'suffix'\n\n const currencyIsoSymbol = currencyIsoCode\n ? parts.find((part) => part.type === 'currency')?.value.toString()\n : undefined\n\n const currencyProps: CurrencyProps =\n placement === 'prefix'\n ? {\n decimalScale: decimalScale as NumberInputProps['decimalScale'],\n prefix: currencyIsoSymbol || symbol || '',\n }\n : {\n decimalScale: decimalScale as NumberInputProps['decimalScale'],\n suffix: currencyIsoSymbol || symbol || '',\n }\n\n return currencyProps\n}\n\nexport const CurrencyInput = React.forwardRef<\n HTMLInputElement,\n CurrencyInputProps\n>(\n (\n {\n currencyDisplay,\n currencyIsoCode,\n decimalScale: _decimalScale,\n fillDecimalScale = defaultCurrencyFillDecimalScale,\n prefix = defaultCurrencyInputPrefix,\n suffix,\n ...props\n },\n ref\n ) => {\n const I18n = useI18nContext()\n const contextLocale = props.locale || I18n.locale || defaultLocale\n\n const currencyProps: CurrencyProps = getCurrencyProps(\n contextLocale as string,\n _decimalScale,\n prefix || suffix,\n currencyIsoCode,\n currencyDisplay\n )\n\n return (\n <NumberInput\n fillDecimalScale={fillDecimalScale}\n {...props}\n {...currencyProps}\n ref={ref}\n />\n )\n }\n)\n\nCurrencyInput.displayName = 'CurrencyInput'\n"],"mappings":";;;;;;;;;;;;;;;;;AAIA,SAASA,qBAAqB,QAAQ,gCAAgC;AACtE,SAASC,SAAS,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e,GAAAe,KAAA,CAAff,eAAe;IACDF,aAAa,GAAAiB,KAAA,CAA3BjO,YAAY;IAAAkO,qBAAA,GAAAD,KAAA,CACZ1N,gBAAgB;IAAhBA,gBAAgB,GAAA2N,qBAAA,cAAGnR,+BAA+B,GAAAmR,qBAAA;IAAAC,YAAA,GAAAF,KAAA,CAClD9M,MAAM;IAANA,MAAM,GAAAgN,YAAA,cAAGnR,0BAA0B,GAAAmR,YAAA;IACnC1M,MAAM,GAAAwM,KAAA,CAANxM,MAAM;IACHG,KAAK,GAAAC,wBAAA,CAAAoM,KAAA,EAAAG,UAAA;EAIV,IAAMrM,IAAI,GAAGnF,cAAc,CAAC,CAAC;EAC7B,IAAMoF,aAAa,GAAGJ,KAAK,CAACnB,MAAM,IAAIsB,IAAI,CAACtB,MAAM,IAAIxC,aAAa;EAElE,IAAM8P,aAA4B,GAAGhB,gBAAgB,CACnD/K,aAAa,EACbgL,aAAa,EACb7L,MAAM,IAAIM,MAAM,EAChByL,eAAe,EACfC,eACF,CAAC;EAED,oBACExQ,KAAA,CAAAyC,aAAA,CAACO,WAAW,EAAAwM,QAAA;IACV5L,gBAAgB,EAAEA;EAAiB,GAC/BqB,KAAK,EACLmM,aAAa;IACjBjO,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDkO,aAAa,CAAClB,WAAW,GAAG,eAAe"}
@@ -12,37 +12,37 @@ var inputBgColor = colors.white;
12
12
  var inputBorder = "".concat(colors.gray70, " solid 1px");
13
13
  var StyledRootAddon = /*#__PURE__*/styled.span.withConfig({
14
14
  displayName: "StyledRootAddon",
15
- componentId: "core-11_24_1__sc-1782nvg-0"
15
+ componentId: "core-11_24_3__sc-1782nvg-0"
16
16
  })(["display:inline-flex;align-items:center;height:100%;position:absolute;top:0;color:", ";", ";"], function (_ref) {
17
17
  var disabled = _ref.disabled;
18
18
  return disabled ? colors.gray70 : colors.gray45;
19
19
  }, getTypographyIntent('body'));
20
20
  export var StyledPrefix = /*#__PURE__*/styled(StyledRootAddon).withConfig({
21
21
  displayName: "StyledPrefix",
22
- componentId: "core-11_24_1__sc-1782nvg-1"
22
+ componentId: "core-11_24_3__sc-1782nvg-1"
23
23
  })(["left:", "px;"], spacing.md);
24
24
  export var StyledSuffix = /*#__PURE__*/styled(StyledRootAddon).withConfig({
25
25
  displayName: "StyledSuffix",
26
- componentId: "core-11_24_1__sc-1782nvg-2"
26
+ componentId: "core-11_24_3__sc-1782nvg-2"
27
27
  })(["right:", "px;"], function (_ref2) {
28
28
  var withIncrementer = _ref2.withIncrementer;
29
29
  return withIncrementer ? spacing.md + incrementerWidth : spacing.md;
30
30
  });
31
31
  export var StyledIncrementerWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "StyledIncrementerWrapper",
33
- componentId: "core-11_24_1__sc-1782nvg-3"
33
+ componentId: "core-11_24_3__sc-1782nvg-3"
34
34
  })(["display:flex;flex-direction:column;position:absolute;top:1px;right:1px;height:100%;"]);
35
35
  export var StyledIncrementerButton = /*#__PURE__*/styled.button.withConfig({
36
36
  displayName: "StyledIncrementerButton",
37
- componentId: "core-11_24_1__sc-1782nvg-4"
37
+ componentId: "core-11_24_3__sc-1782nvg-4"
38
38
  })(["display:inline-flex;justify-content:center;align-items:center;width:", "px;height:calc(50% - 1px);border:none;border-radius:0px;outline:none;background-color:", ";padding:0;cursor:pointer;&:first-child,&:last-child{border-left:", ";&:disabled{border-color:", ";background-color:", ";}}&:first-child{border-top-right-radius:2px;}&:last-child{border-top:", ";border-bottom-right-radius:2px;}svg{fill:", ";}&:hover{svg{fill:", ";}}&:disabled{cursor:default;svg{fill:", ";}}"], incrementerWidth, inputBgColor, inputBorder, colors.gray70, colors.gray94, inputBorder, colors.gray45, colors.gray10, colors.gray70);
39
39
  export var StyledInput = /*#__PURE__*/styled(Input).withConfig({
40
40
  displayName: "StyledInput",
41
- componentId: "core-11_24_1__sc-1782nvg-5"
41
+ componentId: "core-11_24_3__sc-1782nvg-5"
42
42
  })([""]);
43
43
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
44
44
  displayName: "StyledWrapper",
45
- componentId: "core-11_24_1__sc-1782nvg-6"
45
+ componentId: "core-11_24_3__sc-1782nvg-6"
46
46
  })(["position:relative;", ""], function (_ref3) {
47
47
  var hasIncrementer = _ref3.hasIncrementer;
48
48
  return hasIncrementer && css(["", "{padding-right:", "px;}"], StyledInput, spacing.md + incrementerWidth);
@@ -1,5 +1,5 @@
1
- import { CurrencyDisplay } from '@procore/globalization-toolkit';
2
- import { InputProps } from '../Input/Input.types';
1
+ import type { CurrencyDisplay } from '@procore/globalization-toolkit';
2
+ import type { InputProps } from '../Input/Input.types';
3
3
  export declare type Locale = string | string[];
4
4
  export declare type FillDecimalScaleVariant = 'none' | 'onBlur' | 'always';
5
5
  export interface ValueChange {
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.types.js","names":[],"sources":["../../src/NumberInput/NumberInput.types.ts"],"sourcesContent":["import { CurrencyDisplay } from '@procore/globalization-toolkit'\nimport { InputProps } from '../Input/Input.types'\n\nexport type Locale = string | string[]\n\nexport type FillDecimalScaleVariant = 'none' | 'onBlur' | 'always'\n\nexport interface ValueChange {\n /**\n * The displayed value in format of the locale\n * @example \"1.000,990\"\n * @since 10.19.0\n */\n value: string\n /**\n * A Number data type of value\n * @example 1000.99\n * @since 10.19.0\n */\n parsedNumber: number | null\n}\n\nexport type InputValue = string | number | undefined | null\n\ninterface QaTags {\n wrapper?: string\n increment?: string\n decrement?: string\n}\n\nexport interface NumberInputProps\n extends Omit<InputProps, 'value' | 'defaultValue' | 'onChange' | 'variant'> {\n /**\n * The maximum number of fraction digits to use. Possible values range from 0 to 14. Setting to true will result in the maximum size, setting to false will allow 0 decimals, whole numbers only.\n * @defaultValue true\n * @since 10.19.0\n */\n decimalScale?:\n | boolean\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n /**\n * Initial value of an uncontrolled component\n * @since 10.19.0\n */\n defaultValue?: InputValue\n /**\n * `none` prevents from adding zeros to match given `decimalScale`.\n *\n * `always` automatically adds zeros to match given `decimalScale`.\n *\n * `onBlur` automatically adds zeros to match given `decimalScale` when input has lost focus.\n * @default 'none'\n * @since 10.19.0\n */\n fillDecimalScale?: FillDecimalScaleVariant\n /**\n * A string with a BCP 47 language tag or an array of such strings which specifies number formatting.\n * @defaultValue en-US\n * @since 10.19.0\n * @deprecatedSince 10.27.0\n * @deprecated Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n */\n locale?: Locale\n /**\n * `(value: ValueChange) => void`, where `ValueChange` is an object `{ value: string, parsedNumber: number | null }`.\n * @since 10.19.0\n */\n onChange?: (value: ValueChange) => void\n /**\n * A string which is added to input as a prefix.\n * @since 10.19.0\n */\n prefix?: string\n /**\n * A stepping interval which is used in incrementer. Zero value turns off incrementer.\n * @defaultValue 0\n * @since 10.19.0\n */\n step?: number\n /**\n * A string which is added to input as a suffix\n * @since 10.19.0\n */\n suffix?: string\n /**\n * Value of a controlled component. If value is a string, the string MUST be formatted with the decimal separator to the locale.\n * @since 10.19.0\n */\n value?: InputValue\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface UseNumberFormatConfig\n extends Pick<\n NumberInputProps,\n 'decimalScale' | 'fillDecimalScale' | 'locale'\n > {}\n\nexport interface Separators {\n /**\n * @since 10.19.0\n */\n decimal: string\n /**\n * @since 10.19.0\n */\n group: string\n}\n\nexport interface ParsedInputValue {\n /**\n * @since 10.19.0\n */\n integer: string\n /**\n * @since 10.19.0\n */\n decimal: string\n /**\n * @since 10.19.0\n */\n fraction: string\n /**\n * @since 10.19.0\n */\n parsedNumber: number\n}\n\nexport type PressedKey = string | undefined\n\nexport interface CursorPosition {\n /**\n * @since 10.19.0\n */\n selectionStart: number\n /**\n * @since 10.19.0\n */\n selectionEnd: number\n /**\n * @since 10.19.0\n */\n selection: string\n}\n\nexport interface CurrencyInputProps extends NumberInputProps {\n /**\n * String which is added to the input as a suffix or prefix dependent on the locale\n * @since 11.10.0\n */\n currencyIsoCode?: string\n /**\n * GTK option that determines how the currency symbol is displayed (narrowSymbol, symbol, name, code)\n * @since 11.10.0\n */\n currencyDisplay?: CurrencyDisplay\n}\n\ninterface CurrencyPropsBasic {\n decimalScale?: NumberInputProps['decimalScale']\n}\ninterface CurrencyPropsWithPrefix extends CurrencyPropsBasic {\n prefix: string\n suffix?: never\n}\ninterface CurrencyPropsWithSuffix extends CurrencyPropsBasic {\n prefix?: never\n suffix: string\n}\n\nexport type CurrencyProps = CurrencyPropsWithPrefix | CurrencyPropsWithSuffix\n"],"mappings":""}
1
+ {"version":3,"file":"NumberInput.types.js","names":[],"sources":["../../src/NumberInput/NumberInput.types.ts"],"sourcesContent":["import type { CurrencyDisplay } from '@procore/globalization-toolkit'\nimport type { InputProps } from '../Input/Input.types'\n\nexport type Locale = string | string[]\n\nexport type FillDecimalScaleVariant = 'none' | 'onBlur' | 'always'\n\nexport interface ValueChange {\n /**\n * The displayed value in format of the locale\n * @example \"1.000,990\"\n * @since 10.19.0\n */\n value: string\n /**\n * A Number data type of value\n * @example 1000.99\n * @since 10.19.0\n */\n parsedNumber: number | null\n}\n\nexport type InputValue = string | number | undefined | null\n\ninterface QaTags {\n wrapper?: string\n increment?: string\n decrement?: string\n}\n\nexport interface NumberInputProps\n extends Omit<InputProps, 'value' | 'defaultValue' | 'onChange' | 'variant'> {\n /**\n * The maximum number of fraction digits to use. Possible values range from 0 to 14. Setting to true will result in the maximum size, setting to false will allow 0 decimals, whole numbers only.\n * @defaultValue true\n * @since 10.19.0\n */\n decimalScale?:\n | boolean\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n /**\n * Initial value of an uncontrolled component\n * @since 10.19.0\n */\n defaultValue?: InputValue\n /**\n * `none` prevents from adding zeros to match given `decimalScale`.\n *\n * `always` automatically adds zeros to match given `decimalScale`.\n *\n * `onBlur` automatically adds zeros to match given `decimalScale` when input has lost focus.\n * @default 'none'\n * @since 10.19.0\n */\n fillDecimalScale?: FillDecimalScaleVariant\n /**\n * A string with a BCP 47 language tag or an array of such strings which specifies number formatting.\n * @defaultValue en-US\n * @since 10.19.0\n * @deprecatedSince 10.27.0\n * @deprecated Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n */\n locale?: Locale\n /**\n * `(value: ValueChange) => void`, where `ValueChange` is an object `{ value: string, parsedNumber: number | null }`.\n * @since 10.19.0\n */\n onChange?: (value: ValueChange) => void\n /**\n * A string which is added to input as a prefix.\n * @since 10.19.0\n */\n prefix?: string\n /**\n * A stepping interval which is used in incrementer. Zero value turns off incrementer.\n * @defaultValue 0\n * @since 10.19.0\n */\n step?: number\n /**\n * A string which is added to input as a suffix\n * @since 10.19.0\n */\n suffix?: string\n /**\n * Value of a controlled component. If value is a string, the string MUST be formatted with the decimal separator to the locale.\n * @since 10.19.0\n */\n value?: InputValue\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface UseNumberFormatConfig\n extends Pick<\n NumberInputProps,\n 'decimalScale' | 'fillDecimalScale' | 'locale'\n > {}\n\nexport interface Separators {\n /**\n * @since 10.19.0\n */\n decimal: string\n /**\n * @since 10.19.0\n */\n group: string\n}\n\nexport interface ParsedInputValue {\n /**\n * @since 10.19.0\n */\n integer: string\n /**\n * @since 10.19.0\n */\n decimal: string\n /**\n * @since 10.19.0\n */\n fraction: string\n /**\n * @since 10.19.0\n */\n parsedNumber: number\n}\n\nexport type PressedKey = string | undefined\n\nexport interface CursorPosition {\n /**\n * @since 10.19.0\n */\n selectionStart: number\n /**\n * @since 10.19.0\n */\n selectionEnd: number\n /**\n * @since 10.19.0\n */\n selection: string\n}\n\nexport interface CurrencyInputProps extends NumberInputProps {\n /**\n * String which is added to the input as a suffix or prefix dependent on the locale\n * @since 11.10.0\n */\n currencyIsoCode?: string\n /**\n * GTK option that determines how the currency symbol is displayed (narrowSymbol, symbol, name, code)\n * @since 11.10.0\n */\n currencyDisplay?: CurrencyDisplay\n}\n\ninterface CurrencyPropsBasic {\n decimalScale?: NumberInputProps['decimalScale']\n}\ninterface CurrencyPropsWithPrefix extends CurrencyPropsBasic {\n prefix: string\n suffix?: never\n}\ninterface CurrencyPropsWithSuffix extends CurrencyPropsBasic {\n prefix?: never\n suffix: string\n}\n\nexport type CurrencyProps = CurrencyPropsWithPrefix | CurrencyPropsWithSuffix\n"],"mappings":""}
@@ -1,5 +1,6 @@
1
- import { NumberFormatter, NumberOptions } from '@procore/globalization-toolkit';
2
- import { CursorPosition, FillDecimalScaleVariant, InputValue, Locale, ParsedInputValue, PressedKey, Separators } from './NumberInput.types';
1
+ import type { NumberOptions } from '@procore/globalization-toolkit';
2
+ import { NumberFormatter } from '@procore/globalization-toolkit';
3
+ import type { CursorPosition, FillDecimalScaleVariant, InputValue, Locale, ParsedInputValue, PressedKey, Separators } from './NumberInput.types';
3
4
  export declare const defaultLocale = "en-US";
4
5
  export declare const minus = "-";
5
6
  export declare const emptyString = "";