@dmsi/wedgekit-react 0.0.1277 → 1.0.1

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 (645) hide show
  1. package/README.md +4 -32
  2. package/dist/classNames.d.ts +41 -0
  3. package/dist/classNames.d.ts.map +1 -0
  4. package/dist/components/AccessCard.d.ts +14 -0
  5. package/dist/components/AccessCard.d.ts.map +1 -0
  6. package/dist/components/AccessCardGroup.d.ts +15 -0
  7. package/dist/components/AccessCardGroup.d.ts.map +1 -0
  8. package/dist/components/AccessChangerTabItem.d.ts +11 -0
  9. package/dist/components/AccessChangerTabItem.d.ts.map +1 -0
  10. package/dist/components/Accordion.d.ts +15 -0
  11. package/dist/components/Accordion.d.ts.map +1 -0
  12. package/dist/components/Alert.d.ts +13 -0
  13. package/dist/components/Alert.d.ts.map +1 -0
  14. package/dist/components/Breadcrumbs.d.ts +19 -0
  15. package/dist/components/Breadcrumbs.d.ts.map +1 -0
  16. package/dist/components/Button.d.ts +46 -0
  17. package/dist/components/Button.d.ts.map +1 -0
  18. package/dist/components/CalendarRange.d.ts +28 -0
  19. package/dist/components/CalendarRange.d.ts.map +1 -0
  20. package/dist/components/Caption.d.ts +15 -0
  21. package/dist/components/Caption.d.ts.map +1 -0
  22. package/dist/components/Card.d.ts +28 -0
  23. package/dist/components/Card.d.ts.map +1 -0
  24. package/dist/components/Checkbox.d.ts +12 -0
  25. package/dist/components/Checkbox.d.ts.map +1 -0
  26. package/dist/components/CompactImagesPreview.d.ts +25 -0
  27. package/dist/components/CompactImagesPreview.d.ts.map +1 -0
  28. package/dist/components/ContentTab.d.ts +12 -0
  29. package/dist/components/ContentTab.d.ts.map +1 -0
  30. package/dist/components/ContentTabs.d.ts +23 -0
  31. package/dist/components/ContentTabs.d.ts.map +1 -0
  32. package/dist/components/DMSiLogo.d.ts +2 -0
  33. package/dist/components/DMSiLogo.d.ts.map +1 -0
  34. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.d.ts +8 -0
  35. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.d.ts.map +1 -0
  36. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.d.ts +9 -0
  37. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.d.ts.map +1 -0
  38. package/dist/components/DataGrid/PinnedColumns.d.ts +26 -0
  39. package/dist/components/DataGrid/PinnedColumns.d.ts.map +1 -0
  40. package/dist/components/DataGrid/TableBody/LoadingCell.d.ts +7 -0
  41. package/dist/components/DataGrid/TableBody/LoadingCell.d.ts.map +1 -0
  42. package/dist/components/DataGrid/TableBody/TableBodyRow.d.ts +22 -0
  43. package/dist/components/DataGrid/TableBody/TableBodyRow.d.ts.map +1 -0
  44. package/dist/components/DataGrid/TableBody/index.d.ts +26 -0
  45. package/dist/components/DataGrid/TableBody/index.d.ts.map +1 -0
  46. package/dist/components/DataGrid/index.d.ts +5 -0
  47. package/dist/components/DataGrid/index.d.ts.map +1 -0
  48. package/dist/components/DataGrid/types.d.ts +74 -0
  49. package/dist/components/DataGrid/types.d.ts.map +1 -0
  50. package/dist/components/DataGrid/utils.d.ts +3 -0
  51. package/dist/components/DataGrid/utils.d.ts.map +1 -0
  52. package/dist/components/DataGridCell.d.ts +46 -0
  53. package/dist/components/DataGridCell.d.ts.map +1 -0
  54. package/dist/components/DataTable.d.ts +36 -0
  55. package/dist/components/DataTable.d.ts.map +1 -0
  56. package/dist/components/DateInput.d.ts +38 -0
  57. package/dist/components/DateInput.d.ts.map +1 -0
  58. package/dist/components/DateRangeInput.d.ts +36 -0
  59. package/dist/components/DateRangeInput.d.ts.map +1 -0
  60. package/dist/components/DebugJson.d.ts +5 -0
  61. package/dist/components/DebugJson.d.ts.map +1 -0
  62. package/dist/components/Display.d.ts +14 -0
  63. package/dist/components/Display.d.ts.map +1 -0
  64. package/dist/components/EditingContext.d.ts +14 -0
  65. package/dist/components/EditingContext.d.ts.map +1 -0
  66. package/dist/components/EmblaCarousel/ArrowButtons.d.ts +9 -0
  67. package/dist/components/EmblaCarousel/ArrowButtons.d.ts.map +1 -0
  68. package/dist/components/EmblaCarousel/SelectedSnapDisplay.d.ts +7 -0
  69. package/dist/components/EmblaCarousel/SelectedSnapDisplay.d.ts.map +1 -0
  70. package/dist/components/EmblaCarousel/index.d.ts +20 -0
  71. package/dist/components/EmblaCarousel/index.d.ts.map +1 -0
  72. package/dist/components/EmblaCarousel/usePrevNextButtons.d.ts +10 -0
  73. package/dist/components/EmblaCarousel/usePrevNextButtons.d.ts.map +1 -0
  74. package/dist/components/EmblaCarousel/useSelectedSnapDisplay.d.ts +8 -0
  75. package/dist/components/EmblaCarousel/useSelectedSnapDisplay.d.ts.map +1 -0
  76. package/dist/components/EmptyCartIcon.d.ts +2 -0
  77. package/dist/components/EmptyCartIcon.d.ts.map +1 -0
  78. package/dist/components/FilterGroup.d.ts +29 -0
  79. package/dist/components/FilterGroup.d.ts.map +1 -0
  80. package/dist/components/FullViewportBox.d.ts +6 -0
  81. package/dist/components/FullViewportBox.d.ts.map +1 -0
  82. package/dist/components/Grid.d.ts +22 -0
  83. package/dist/components/Grid.d.ts.map +1 -0
  84. package/dist/components/Heading.d.ts +15 -0
  85. package/dist/components/Heading.d.ts.map +1 -0
  86. package/dist/components/HorizontalDivider.d.ts +8 -0
  87. package/dist/components/HorizontalDivider.d.ts.map +1 -0
  88. package/dist/components/Icon.d.ts +11 -0
  89. package/dist/components/Icon.d.ts.map +1 -0
  90. package/dist/components/ImagePlaceholder.d.ts +3 -0
  91. package/dist/components/ImagePlaceholder.d.ts.map +1 -0
  92. package/dist/components/Input.d.ts +50 -0
  93. package/dist/components/Input.d.ts.map +1 -0
  94. package/dist/components/InputGroup.d.ts +12 -0
  95. package/dist/components/InputGroup.d.ts.map +1 -0
  96. package/dist/components/Label.d.ts +10 -0
  97. package/dist/components/Label.d.ts.map +1 -0
  98. package/dist/components/Link.d.ts +16 -0
  99. package/dist/components/Link.d.ts.map +1 -0
  100. package/dist/components/List.d.ts +7 -0
  101. package/dist/components/List.d.ts.map +1 -0
  102. package/dist/components/ListGroup.d.ts +26 -0
  103. package/dist/components/ListGroup.d.ts.map +1 -0
  104. package/dist/components/LiveChatComponent.d.ts +17 -0
  105. package/dist/components/LiveChatComponent.d.ts.map +1 -0
  106. package/dist/components/LoadingScrim.d.ts +14 -0
  107. package/dist/components/LoadingScrim.d.ts.map +1 -0
  108. package/dist/components/LogoAgilityTopBar.d.ts +2 -0
  109. package/dist/components/LogoAgilityTopBar.d.ts.map +1 -0
  110. package/dist/components/LogoDMSiTopBar.d.ts +2 -0
  111. package/dist/components/LogoDMSiTopBar.d.ts.map +1 -0
  112. package/dist/components/LogoMillworkTopBar.d.ts +2 -0
  113. package/dist/components/LogoMillworkTopBar.d.ts.map +1 -0
  114. package/dist/components/MainBar.d.ts +14 -0
  115. package/dist/components/MainBar.d.ts.map +1 -0
  116. package/dist/components/MaxViewportBox.d.ts +6 -0
  117. package/dist/components/MaxViewportBox.d.ts.map +1 -0
  118. package/dist/components/Menu.d.ts +23 -0
  119. package/dist/components/Menu.d.ts.map +1 -0
  120. package/dist/components/MenuOption.d.ts +65 -0
  121. package/dist/components/MenuOption.d.ts.map +1 -0
  122. package/dist/components/MobileDataGrid/ColumnList.d.ts +13 -0
  123. package/dist/components/MobileDataGrid/ColumnList.d.ts.map +1 -0
  124. package/dist/components/MobileDataGrid/ColumnSelector/index.d.ts +2 -0
  125. package/dist/components/MobileDataGrid/ColumnSelector/index.d.ts.map +1 -0
  126. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.d.ts +24 -0
  127. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.d.ts.map +1 -0
  128. package/dist/components/MobileDataGrid/GridContextProvider/index.d.ts +15 -0
  129. package/dist/components/MobileDataGrid/GridContextProvider/index.d.ts.map +1 -0
  130. package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.d.ts +3 -0
  131. package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.d.ts.map +1 -0
  132. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.d.ts +6 -0
  133. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.d.ts.map +1 -0
  134. package/dist/components/MobileDataGrid/MobileDataGridCard/index.d.ts +10 -0
  135. package/dist/components/MobileDataGrid/MobileDataGridCard/index.d.ts.map +1 -0
  136. package/dist/components/MobileDataGrid/MobileDataGridHeader.d.ts +7 -0
  137. package/dist/components/MobileDataGrid/MobileDataGridHeader.d.ts.map +1 -0
  138. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.d.ts +2 -0
  139. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.d.ts.map +1 -0
  140. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.d.ts +2 -0
  141. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.d.ts.map +1 -0
  142. package/dist/components/MobileDataGrid/dataGridReducer.d.ts +21 -0
  143. package/dist/components/MobileDataGrid/dataGridReducer.d.ts.map +1 -0
  144. package/dist/components/MobileDataGrid/index.d.ts +26 -0
  145. package/dist/components/MobileDataGrid/index.d.ts.map +1 -0
  146. package/dist/components/MobileDataGrid/types.d.ts +4 -0
  147. package/dist/components/MobileDataGrid/types.d.ts.map +1 -0
  148. package/dist/components/MobileNavMenu.d.ts +36 -0
  149. package/dist/components/MobileNavMenu.d.ts.map +1 -0
  150. package/dist/components/Modal.d.ts +30 -0
  151. package/dist/components/Modal.d.ts.map +1 -0
  152. package/dist/components/ModalButtons.d.ts +13 -0
  153. package/dist/components/ModalButtons.d.ts.map +1 -0
  154. package/dist/components/ModalContent.d.ts +7 -0
  155. package/dist/components/ModalContent.d.ts.map +1 -0
  156. package/dist/components/ModalHeader.d.ts +17 -0
  157. package/dist/components/ModalHeader.d.ts.map +1 -0
  158. package/dist/components/ModalScrim.d.ts +13 -0
  159. package/dist/components/ModalScrim.d.ts.map +1 -0
  160. package/dist/components/NavigationTab.d.ts +13 -0
  161. package/dist/components/NavigationTab.d.ts.map +1 -0
  162. package/dist/components/NavigationTabs.d.ts +18 -0
  163. package/dist/components/NavigationTabs.d.ts.map +1 -0
  164. package/dist/components/NestedMenu.d.ts +35 -0
  165. package/dist/components/NestedMenu.d.ts.map +1 -0
  166. package/dist/components/Notification.d.ts +17 -0
  167. package/dist/components/Notification.d.ts.map +1 -0
  168. package/dist/components/OptionPill.d.ts +14 -0
  169. package/dist/components/OptionPill.d.ts.map +1 -0
  170. package/dist/components/OrderCheckIcon.d.ts +5 -0
  171. package/dist/components/OrderCheckIcon.d.ts.map +1 -0
  172. package/dist/components/PDFViewer/DownloadIcon.d.ts +7 -0
  173. package/dist/components/PDFViewer/DownloadIcon.d.ts.map +1 -0
  174. package/dist/components/PDFViewer/PDFElement.d.ts +7 -0
  175. package/dist/components/PDFViewer/PDFElement.d.ts.map +1 -0
  176. package/dist/components/PDFViewer/PDFNavigation.d.ts +12 -0
  177. package/dist/components/PDFViewer/PDFNavigation.d.ts.map +1 -0
  178. package/dist/components/PDFViewer/PDFPage.d.ts +7 -0
  179. package/dist/components/PDFViewer/PDFPage.d.ts.map +1 -0
  180. package/dist/components/PDFViewer/index.d.ts +20 -0
  181. package/dist/components/PDFViewer/index.d.ts.map +1 -0
  182. package/dist/components/Pagination.d.ts +14 -0
  183. package/dist/components/Pagination.d.ts.map +1 -0
  184. package/dist/components/Paragraph.d.ts +10 -0
  185. package/dist/components/Paragraph.d.ts.map +1 -0
  186. package/dist/components/Password.d.ts +4 -0
  187. package/dist/components/Password.d.ts.map +1 -0
  188. package/dist/components/ProductImagePreview/CarouselPagination.d.ts +9 -0
  189. package/dist/components/ProductImagePreview/CarouselPagination.d.ts.map +1 -0
  190. package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts +11 -0
  191. package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts.map +1 -0
  192. package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts +22 -0
  193. package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts.map +1 -0
  194. package/dist/components/ProductImagePreview/Thumbnail.d.ts +11 -0
  195. package/dist/components/ProductImagePreview/Thumbnail.d.ts.map +1 -0
  196. package/dist/components/ProductImagePreview/ZoomWindow.d.ts +22 -0
  197. package/dist/components/ProductImagePreview/ZoomWindow.d.ts.map +1 -0
  198. package/dist/components/ProductImagePreview/index.d.ts +23 -0
  199. package/dist/components/ProductImagePreview/index.d.ts.map +1 -0
  200. package/dist/components/ProductImagePreview/useProductImagePreview.d.ts +42 -0
  201. package/dist/components/ProductImagePreview/useProductImagePreview.d.ts.map +1 -0
  202. package/dist/components/ProjectBar.d.ts +12 -0
  203. package/dist/components/ProjectBar.d.ts.map +1 -0
  204. package/dist/components/Radio.d.ts +10 -0
  205. package/dist/components/Radio.d.ts.map +1 -0
  206. package/dist/components/Search.d.ts +20 -0
  207. package/dist/components/Search.d.ts.map +1 -0
  208. package/dist/components/SearchResultImage/index.d.ts +9 -0
  209. package/dist/components/SearchResultImage/index.d.ts.map +1 -0
  210. package/dist/components/Select.d.ts +22 -0
  211. package/dist/components/Select.d.ts.map +1 -0
  212. package/dist/components/SideMenu.d.ts +9 -0
  213. package/dist/components/SideMenu.d.ts.map +1 -0
  214. package/dist/components/SideMenuGroup.d.ts +11 -0
  215. package/dist/components/SideMenuGroup.d.ts.map +1 -0
  216. package/dist/components/SideMenuItem.d.ts +15 -0
  217. package/dist/components/SideMenuItem.d.ts.map +1 -0
  218. package/dist/components/SimpleTable.d.ts +11 -0
  219. package/dist/components/SimpleTable.d.ts.map +1 -0
  220. package/dist/components/SkeletonParagraph.d.ts +16 -0
  221. package/dist/components/SkeletonParagraph.d.ts.map +1 -0
  222. package/dist/components/Spinner.d.ts +7 -0
  223. package/dist/components/Spinner.d.ts.map +1 -0
  224. package/dist/components/Stack.d.ts +64 -0
  225. package/dist/components/Stack.d.ts.map +1 -0
  226. package/dist/components/StatusPill.d.ts +10 -0
  227. package/dist/components/StatusPill.d.ts.map +1 -0
  228. package/dist/components/Stepper.d.ts +26 -0
  229. package/dist/components/Stepper.d.ts.map +1 -0
  230. package/dist/components/Subheader.d.ts +10 -0
  231. package/dist/components/Subheader.d.ts.map +1 -0
  232. package/dist/components/Surface.d.ts +9 -0
  233. package/dist/components/Surface.d.ts.map +1 -0
  234. package/dist/components/Swatch.d.ts +13 -0
  235. package/dist/components/Swatch.d.ts.map +1 -0
  236. package/dist/components/Textarea.d.ts +12 -0
  237. package/dist/components/Textarea.d.ts.map +1 -0
  238. package/dist/components/Theme.d.ts +8 -0
  239. package/dist/components/Theme.d.ts.map +1 -0
  240. package/dist/components/Time.d.ts +13 -0
  241. package/dist/components/Time.d.ts.map +1 -0
  242. package/dist/components/Toast.d.ts +20 -0
  243. package/dist/components/Toast.d.ts.map +1 -0
  244. package/dist/components/Tooltip.d.ts +13 -0
  245. package/dist/components/Tooltip.d.ts.map +1 -0
  246. package/dist/components/TopBar.d.ts +20 -0
  247. package/dist/components/TopBar.d.ts.map +1 -0
  248. package/dist/components/Upload.d.ts +10 -0
  249. package/dist/components/Upload.d.ts.map +1 -0
  250. package/dist/components/WorldpayIframe.d.ts +5 -0
  251. package/dist/components/WorldpayIframe.d.ts.map +1 -0
  252. package/dist/hooks/index.d.ts +9 -0
  253. package/dist/hooks/index.d.ts.map +1 -0
  254. package/dist/hooks/useEditCell.d.ts +9 -0
  255. package/dist/hooks/useEditCell.d.ts.map +1 -0
  256. package/dist/hooks/useInfiniteScroll.d.ts +9 -0
  257. package/dist/hooks/useInfiniteScroll.d.ts.map +1 -0
  258. package/dist/hooks/useKeydown.d.ts +4 -0
  259. package/dist/hooks/useKeydown.d.ts.map +1 -0
  260. package/dist/hooks/useMatchesMedia.d.ts +3 -0
  261. package/dist/hooks/useMatchesMedia.d.ts.map +1 -0
  262. package/dist/hooks/useMenuSystem.d.ts +44 -0
  263. package/dist/hooks/useMenuSystem.d.ts.map +1 -0
  264. package/dist/hooks/useMounted.d.ts +2 -0
  265. package/dist/hooks/useMounted.d.ts.map +1 -0
  266. package/dist/hooks/useTableLayout/computeColumns.d.ts +49 -0
  267. package/dist/hooks/useTableLayout/computeColumns.d.ts.map +1 -0
  268. package/dist/hooks/useTableLayout/index.d.ts +3 -0
  269. package/dist/hooks/useTableLayout/index.d.ts.map +1 -0
  270. package/dist/hooks/useTableLayout/storage.d.ts +41 -0
  271. package/dist/hooks/useTableLayout/storage.d.ts.map +1 -0
  272. package/dist/hooks/useTableLayout/types.d.ts +56 -0
  273. package/dist/hooks/useTableLayout/types.d.ts.map +1 -0
  274. package/dist/hooks/useTableLayout/useTableLayout.d.ts +23 -0
  275. package/dist/hooks/useTableLayout/useTableLayout.d.ts.map +1 -0
  276. package/dist/index.d.ts +94 -0
  277. package/dist/index.d.ts.map +1 -0
  278. package/dist/index.js +52866 -0
  279. package/dist/lib/design-system.d.ts +3 -0
  280. package/dist/lib/design-system.d.ts.map +1 -0
  281. package/dist/lib/loadFonts.d.ts +2 -0
  282. package/dist/lib/loadFonts.d.ts.map +1 -0
  283. package/dist/pdf-l6QfMa5e.js +17649 -0
  284. package/dist/styles.css +1 -0
  285. package/dist/types.d.ts +33 -0
  286. package/dist/types.d.ts.map +1 -0
  287. package/dist/utils/date-patch-dashes.d.ts +17 -0
  288. package/dist/utils/date-patch-dashes.d.ts.map +1 -0
  289. package/dist/utils/date.d.ts +60 -0
  290. package/dist/utils/date.d.ts.map +1 -0
  291. package/dist/utils/formatting.d.ts +36 -0
  292. package/dist/utils/formatting.d.ts.map +1 -0
  293. package/dist/utils/index.d.ts +6 -0
  294. package/dist/utils/index.d.ts.map +1 -0
  295. package/dist/utils/mergeObjectArrays.d.ts +12 -0
  296. package/dist/utils/mergeObjectArrays.d.ts.map +1 -0
  297. package/dist/utils.d.ts +3 -0
  298. package/dist/utils.d.ts.map +1 -0
  299. package/package.json +17 -83
  300. package/dist/chunk-3DJWSTPS.js +0 -134
  301. package/dist/chunk-3JUIYULW.js +0 -231
  302. package/dist/chunk-3PIDINTF.js +0 -52
  303. package/dist/chunk-3UPUZBP5.js +0 -149
  304. package/dist/chunk-3V5OMIYB.js +0 -2376
  305. package/dist/chunk-4FUZDLWX.js +0 -112
  306. package/dist/chunk-4RJKB7LC.js +0 -14
  307. package/dist/chunk-4UGMSWWA.js +0 -57
  308. package/dist/chunk-5IFPG6TS.js +0 -17
  309. package/dist/chunk-5N32SQ3R.js +0 -99
  310. package/dist/chunk-5UH6QUFB.js +0 -38
  311. package/dist/chunk-6YUQCRMX.js +0 -32
  312. package/dist/chunk-75USUR3I.js +0 -27
  313. package/dist/chunk-7IPESTQS.js +0 -93
  314. package/dist/chunk-7MBRCM3M.js +0 -66
  315. package/dist/chunk-7WDYXRMW.js +0 -110
  316. package/dist/chunk-7YA3TF73.js +0 -32
  317. package/dist/chunk-7Z3WINQ3.js +0 -59
  318. package/dist/chunk-7ZJIGTFN.js +0 -78
  319. package/dist/chunk-AJ5M6MVX.js +0 -7
  320. package/dist/chunk-AT4AWD6B.js +0 -44
  321. package/dist/chunk-BQNPOGD5.js +0 -105
  322. package/dist/chunk-BWPNXY7T.js +0 -78
  323. package/dist/chunk-CIYLALYO.js +0 -72
  324. package/dist/chunk-DNNX5EYX.js +0 -274
  325. package/dist/chunk-E3FOCECQ.js +0 -61
  326. package/dist/chunk-E7LGUC2B.js +0 -35
  327. package/dist/chunk-EWGHVZL5.js +0 -27
  328. package/dist/chunk-F4VE3THQ.js +0 -71
  329. package/dist/chunk-FXXRXLOL.js +0 -329
  330. package/dist/chunk-G242RHWI.js +0 -139
  331. package/dist/chunk-GOGNV5TF.js +0 -68
  332. package/dist/chunk-GYT5CL7R.js +0 -159
  333. package/dist/chunk-H36XCZ3O.js +0 -140
  334. package/dist/chunk-H5SHC4XZ.js +0 -586
  335. package/dist/chunk-HRPW6VXG.js +0 -110
  336. package/dist/chunk-J3HNYUSG.js +0 -34
  337. package/dist/chunk-J4IMVWT5.js +0 -183
  338. package/dist/chunk-JYECZBCJ.js +0 -154
  339. package/dist/chunk-K6RPFIMB.js +0 -77
  340. package/dist/chunk-KBIEWFQS.js +0 -27
  341. package/dist/chunk-KESCXOG3.js +0 -82
  342. package/dist/chunk-MBZ55T2D.js +0 -51
  343. package/dist/chunk-MVDGHWKO.js +0 -238
  344. package/dist/chunk-NAWP246H.js +0 -65
  345. package/dist/chunk-NKUETCDA.js +0 -44
  346. package/dist/chunk-NSZTJ5R4.js +0 -38
  347. package/dist/chunk-NT26ZKSI.js +0 -82
  348. package/dist/chunk-NW75QACN.js +0 -91
  349. package/dist/chunk-OM7QLLI2.js +0 -277
  350. package/dist/chunk-ORMEWXMH.js +0 -37
  351. package/dist/chunk-PE3EZP56.js +0 -373
  352. package/dist/chunk-QBIEU25R.js +0 -61
  353. package/dist/chunk-QG6NWMGA.js +0 -138
  354. package/dist/chunk-QVWYTQKL.js +0 -29
  355. package/dist/chunk-QW4AJ5FK.js +0 -483
  356. package/dist/chunk-RN465M4S.js +0 -142
  357. package/dist/chunk-SATCWGO7.js +0 -166
  358. package/dist/chunk-SBRRNFOP.js +0 -33
  359. package/dist/chunk-SJZNVG4N.js +0 -47
  360. package/dist/chunk-TBZ243DS.js +0 -173
  361. package/dist/chunk-UARCWLMD.js +0 -66
  362. package/dist/chunk-UFX5XIJL.js +0 -178
  363. package/dist/chunk-UZHBKSXJ.js +0 -87
  364. package/dist/chunk-VEEZ7VRJ.js +0 -137
  365. package/dist/chunk-VJVY6NPF.js +0 -32
  366. package/dist/chunk-VUKYIERA.js +0 -89
  367. package/dist/chunk-VXWSAIB5.js +0 -26
  368. package/dist/chunk-W5NXOJ4L.js +0 -104
  369. package/dist/chunk-WVGXD7HT.js +0 -19
  370. package/dist/chunk-WVUIIBRR.js +0 -51
  371. package/dist/chunk-X7BKBBIH.js +0 -114
  372. package/dist/chunk-XB2S2QMB.js +0 -67
  373. package/dist/chunk-Y5GD2FJA.js +0 -32
  374. package/dist/chunk-YKEPPS2I.js +0 -192
  375. package/dist/chunk-YULGJORA.js +0 -259
  376. package/dist/chunk-Z2HPSFEQ.js +0 -14
  377. package/dist/chunk-Z5YP2GI6.js +0 -142
  378. package/dist/chunk-ZRFXUER3.js +0 -468
  379. package/dist/components/AccessCard.cjs +0 -661
  380. package/dist/components/AccessCard.js +0 -13
  381. package/dist/components/AccessCardGroup.cjs +0 -365
  382. package/dist/components/AccessCardGroup.js +0 -11
  383. package/dist/components/AccessChangerTabItem.cjs +0 -352
  384. package/dist/components/AccessChangerTabItem.js +0 -75
  385. package/dist/components/Accordion.cjs +0 -680
  386. package/dist/components/Accordion.js +0 -13
  387. package/dist/components/Alert.cjs +0 -850
  388. package/dist/components/Alert.js +0 -14
  389. package/dist/components/Breadcrumbs.cjs +0 -456
  390. package/dist/components/Breadcrumbs.js +0 -125
  391. package/dist/components/Button.cjs +0 -401
  392. package/dist/components/Button.js +0 -9
  393. package/dist/components/CalendarRange.cjs +0 -6576
  394. package/dist/components/CalendarRange.css +0 -5549
  395. package/dist/components/CalendarRange.js +0 -78
  396. package/dist/components/Caption.cjs +0 -365
  397. package/dist/components/Caption.js +0 -9
  398. package/dist/components/Card.cjs +0 -128
  399. package/dist/components/Card.js +0 -7
  400. package/dist/components/Checkbox.cjs +0 -421
  401. package/dist/components/Checkbox.js +0 -11
  402. package/dist/components/CompactImagesPreview.cjs +0 -604
  403. package/dist/components/CompactImagesPreview.js +0 -14
  404. package/dist/components/ContentTab.cjs +0 -483
  405. package/dist/components/ContentTab.js +0 -11
  406. package/dist/components/ContentTabs.cjs +0 -599
  407. package/dist/components/ContentTabs.js +0 -125
  408. package/dist/components/DMSiLogo.cjs +0 -97
  409. package/dist/components/DMSiLogo.js +0 -60
  410. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +0 -6565
  411. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +0 -5549
  412. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +0 -74
  413. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +0 -6565
  414. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +0 -5549
  415. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +0 -74
  416. package/dist/components/DataGrid/PinnedColumns.cjs +0 -6565
  417. package/dist/components/DataGrid/PinnedColumns.css +0 -5549
  418. package/dist/components/DataGrid/PinnedColumns.js +0 -74
  419. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +0 -6567
  420. package/dist/components/DataGrid/TableBody/LoadingCell.css +0 -5549
  421. package/dist/components/DataGrid/TableBody/LoadingCell.js +0 -74
  422. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +0 -6567
  423. package/dist/components/DataGrid/TableBody/TableBodyRow.css +0 -5549
  424. package/dist/components/DataGrid/TableBody/TableBodyRow.js +0 -74
  425. package/dist/components/DataGrid/TableBody/index.cjs +0 -6567
  426. package/dist/components/DataGrid/TableBody/index.css +0 -5549
  427. package/dist/components/DataGrid/TableBody/index.js +0 -74
  428. package/dist/components/DataGrid/index.cjs +0 -6570
  429. package/dist/components/DataGrid/index.css +0 -5549
  430. package/dist/components/DataGrid/index.js +0 -77
  431. package/dist/components/DataGrid/utils.cjs +0 -6565
  432. package/dist/components/DataGrid/utils.css +0 -5549
  433. package/dist/components/DataGrid/utils.js +0 -74
  434. package/dist/components/DataGridCell.cjs +0 -2538
  435. package/dist/components/DataGridCell.js +0 -30
  436. package/dist/components/DataTable.cjs +0 -847
  437. package/dist/components/DataTable.js +0 -775
  438. package/dist/components/DateInput.cjs +0 -6567
  439. package/dist/components/DateInput.css +0 -5549
  440. package/dist/components/DateInput.js +0 -74
  441. package/dist/components/DateRangeInput.cjs +0 -7158
  442. package/dist/components/DateRangeInput.css +0 -5549
  443. package/dist/components/DateRangeInput.js +0 -652
  444. package/dist/components/DebugJson.cjs +0 -58
  445. package/dist/components/DebugJson.js +0 -35
  446. package/dist/components/Display.cjs +0 -263
  447. package/dist/components/Display.js +0 -12
  448. package/dist/components/EditingContext.cjs +0 -86
  449. package/dist/components/EditingContext.js +0 -12
  450. package/dist/components/EmblaCarousel/ArrowButtons.cjs +0 -151
  451. package/dist/components/EmblaCarousel/ArrowButtons.js +0 -9
  452. package/dist/components/EmblaCarousel/SelectedSnapDisplay.cjs +0 -38
  453. package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +0 -7
  454. package/dist/components/EmblaCarousel/index.cjs +0 -420
  455. package/dist/components/EmblaCarousel/index.js +0 -12
  456. package/dist/components/EmptyCartIcon.cjs +0 -51
  457. package/dist/components/EmptyCartIcon.js +0 -7
  458. package/dist/components/FilterGroup.cjs +0 -1808
  459. package/dist/components/FilterGroup.js +0 -267
  460. package/dist/components/FooterBar.cjs +0 -64
  461. package/dist/components/FooterBar.js +0 -31
  462. package/dist/components/FullViewportBox.cjs +0 -60
  463. package/dist/components/FullViewportBox.js +0 -27
  464. package/dist/components/Grid.cjs +0 -135
  465. package/dist/components/Grid.js +0 -7
  466. package/dist/components/Heading.cjs +0 -267
  467. package/dist/components/Heading.js +0 -14
  468. package/dist/components/HorizontalDivider.cjs +0 -82
  469. package/dist/components/HorizontalDivider.js +0 -26
  470. package/dist/components/Icon.cjs +0 -101
  471. package/dist/components/Icon.js +0 -7
  472. package/dist/components/ImagePlaceholder.cjs +0 -65
  473. package/dist/components/ImagePlaceholder.js +0 -7
  474. package/dist/components/Input.cjs +0 -930
  475. package/dist/components/Input.js +0 -23
  476. package/dist/components/InputGroup.cjs +0 -307
  477. package/dist/components/InputGroup.js +0 -68
  478. package/dist/components/Label.cjs +0 -252
  479. package/dist/components/Label.js +0 -8
  480. package/dist/components/Link.cjs +0 -304
  481. package/dist/components/Link.js +0 -8
  482. package/dist/components/List.cjs +0 -39
  483. package/dist/components/List.js +0 -16
  484. package/dist/components/ListGroup.cjs +0 -568
  485. package/dist/components/ListGroup.js +0 -11
  486. package/dist/components/LiveChatComponent.cjs +0 -63
  487. package/dist/components/LiveChatComponent.js +0 -40
  488. package/dist/components/LoadingScrim.cjs +0 -90
  489. package/dist/components/LoadingScrim.js +0 -28
  490. package/dist/components/LogoAgilityTopBar.cjs +0 -133
  491. package/dist/components/LogoAgilityTopBar.js +0 -96
  492. package/dist/components/LogoDMSiTopBar.cjs +0 -97
  493. package/dist/components/LogoDMSiTopBar.js +0 -7
  494. package/dist/components/LogoMillworkTopBar.cjs +0 -239
  495. package/dist/components/LogoMillworkTopBar.js +0 -202
  496. package/dist/components/MainBar.cjs +0 -234
  497. package/dist/components/MainBar.js +0 -66
  498. package/dist/components/MaxViewportBox.cjs +0 -45
  499. package/dist/components/MaxViewportBox.js +0 -22
  500. package/dist/components/Menu.cjs +0 -505
  501. package/dist/components/Menu.js +0 -14
  502. package/dist/components/MenuOption.cjs +0 -695
  503. package/dist/components/MenuOption.js +0 -18
  504. package/dist/components/MobileDataGrid/ColumnList.cjs +0 -991
  505. package/dist/components/MobileDataGrid/ColumnList.css +0 -5549
  506. package/dist/components/MobileDataGrid/ColumnList.js +0 -20
  507. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +0 -6675
  508. package/dist/components/MobileDataGrid/ColumnSelector/index.css +0 -5549
  509. package/dist/components/MobileDataGrid/ColumnSelector/index.js +0 -74
  510. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +0 -31
  511. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +0 -7
  512. package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +0 -186
  513. package/dist/components/MobileDataGrid/GridContextProvider/index.js +0 -8
  514. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +0 -333
  515. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +0 -12
  516. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +0 -907
  517. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +0 -19
  518. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +0 -6985
  519. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +0 -5549
  520. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +0 -74
  521. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +0 -620
  522. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +0 -16
  523. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +0 -1457
  524. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +0 -29
  525. package/dist/components/MobileDataGrid/index.cjs +0 -7496
  526. package/dist/components/MobileDataGrid/index.css +0 -5549
  527. package/dist/components/MobileDataGrid/index.js +0 -74
  528. package/dist/components/Modal.cjs +0 -995
  529. package/dist/components/Modal.js +0 -23
  530. package/dist/components/ModalButtons.cjs +0 -491
  531. package/dist/components/ModalButtons.js +0 -11
  532. package/dist/components/ModalContent.cjs +0 -204
  533. package/dist/components/ModalContent.js +0 -8
  534. package/dist/components/ModalHeader.cjs +0 -563
  535. package/dist/components/ModalHeader.js +0 -12
  536. package/dist/components/ModalScrim.cjs +0 -69
  537. package/dist/components/ModalScrim.js +0 -7
  538. package/dist/components/NavigationTab.cjs +0 -522
  539. package/dist/components/NavigationTab.js +0 -11
  540. package/dist/components/NavigationTabs.cjs +0 -572
  541. package/dist/components/NavigationTabs.js +0 -61
  542. package/dist/components/NestedMenu.cjs +0 -1275
  543. package/dist/components/NestedMenu.js +0 -164
  544. package/dist/components/Notification.cjs +0 -871
  545. package/dist/components/Notification.js +0 -126
  546. package/dist/components/OptionPill.cjs +0 -597
  547. package/dist/components/OptionPill.js +0 -12
  548. package/dist/components/OrderCheckIcon.cjs +0 -85
  549. package/dist/components/OrderCheckIcon.js +0 -7
  550. package/dist/components/PDFViewer/DownloadIcon.cjs +0 -618
  551. package/dist/components/PDFViewer/DownloadIcon.js +0 -17
  552. package/dist/components/PDFViewer/PDFElement.cjs +0 -571
  553. package/dist/components/PDFViewer/PDFElement.js +0 -11
  554. package/dist/components/PDFViewer/PDFNavigation.cjs +0 -828
  555. package/dist/components/PDFViewer/PDFNavigation.js +0 -14
  556. package/dist/components/PDFViewer/PDFPage.cjs +0 -56
  557. package/dist/components/PDFViewer/PDFPage.js +0 -7
  558. package/dist/components/PDFViewer/index.cjs +0 -1941
  559. package/dist/components/PDFViewer/index.js +0 -182
  560. package/dist/components/Pagination.cjs +0 -436
  561. package/dist/components/Pagination.js +0 -10
  562. package/dist/components/Paragraph.cjs +0 -261
  563. package/dist/components/Paragraph.js +0 -8
  564. package/dist/components/Password.cjs +0 -1130
  565. package/dist/components/Password.js +0 -75
  566. package/dist/components/ProductImagePreview/CarouselPagination.cjs +0 -75
  567. package/dist/components/ProductImagePreview/CarouselPagination.js +0 -7
  568. package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +0 -216
  569. package/dist/components/ProductImagePreview/MobileImageCarousel.js +0 -7
  570. package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +0 -214
  571. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +0 -7
  572. package/dist/components/ProductImagePreview/Thumbnail.cjs +0 -112
  573. package/dist/components/ProductImagePreview/Thumbnail.js +0 -8
  574. package/dist/components/ProductImagePreview/ZoomWindow.cjs +0 -198
  575. package/dist/components/ProductImagePreview/ZoomWindow.js +0 -8
  576. package/dist/components/ProductImagePreview/index.cjs +0 -1447
  577. package/dist/components/ProductImagePreview/index.js +0 -22
  578. package/dist/components/ProjectBar.cjs +0 -279
  579. package/dist/components/ProjectBar.js +0 -71
  580. package/dist/components/Radio.cjs +0 -386
  581. package/dist/components/Radio.js +0 -10
  582. package/dist/components/Search.cjs +0 -1040
  583. package/dist/components/Search.js +0 -14
  584. package/dist/components/SearchResultImage/index.cjs +0 -92
  585. package/dist/components/SearchResultImage/index.js +0 -8
  586. package/dist/components/Select.cjs +0 -1019
  587. package/dist/components/Select.js +0 -14
  588. package/dist/components/SideMenu.cjs +0 -61
  589. package/dist/components/SideMenu.js +0 -28
  590. package/dist/components/SideMenuGroup.cjs +0 -593
  591. package/dist/components/SideMenuGroup.js +0 -97
  592. package/dist/components/SideMenuItem.cjs +0 -568
  593. package/dist/components/SideMenuItem.js +0 -95
  594. package/dist/components/SimpleTable.cjs +0 -547
  595. package/dist/components/SimpleTable.js +0 -10
  596. package/dist/components/SkeletonParagraph.cjs +0 -51
  597. package/dist/components/SkeletonParagraph.js +0 -7
  598. package/dist/components/Spinner.cjs +0 -57
  599. package/dist/components/Spinner.js +0 -7
  600. package/dist/components/Stack.cjs +0 -434
  601. package/dist/components/Stack.js +0 -8
  602. package/dist/components/StatusPill.cjs +0 -303
  603. package/dist/components/StatusPill.js +0 -64
  604. package/dist/components/Stepper.cjs +0 -1485
  605. package/dist/components/Stepper.js +0 -239
  606. package/dist/components/Subheader.cjs +0 -255
  607. package/dist/components/Subheader.js +0 -8
  608. package/dist/components/Surface.cjs +0 -101
  609. package/dist/components/Surface.js +0 -7
  610. package/dist/components/Swatch.cjs +0 -2089
  611. package/dist/components/Swatch.js +0 -1513
  612. package/dist/components/Textarea.cjs +0 -330
  613. package/dist/components/Textarea.js +0 -136
  614. package/dist/components/Theme.cjs +0 -51
  615. package/dist/components/Theme.js +0 -7
  616. package/dist/components/Time.cjs +0 -1518
  617. package/dist/components/Time.js +0 -373
  618. package/dist/components/Toast.cjs +0 -764
  619. package/dist/components/Toast.js +0 -243
  620. package/dist/components/Tooltip.cjs +0 -337
  621. package/dist/components/Tooltip.js +0 -14
  622. package/dist/components/TopBar.cjs +0 -392
  623. package/dist/components/TopBar.js +0 -148
  624. package/dist/components/Upload.cjs +0 -823
  625. package/dist/components/Upload.js +0 -132
  626. package/dist/components/WorldpayIframe.cjs +0 -45
  627. package/dist/components/WorldpayIframe.js +0 -22
  628. package/dist/components/index.cjs +0 -9461
  629. package/dist/components/index.css +0 -5549
  630. package/dist/components/index.js +0 -174
  631. package/dist/components/useMenuSystem.cjs +0 -442
  632. package/dist/components/useMenuSystem.js +0 -15
  633. package/dist/components/useMounted.cjs +0 -39
  634. package/dist/components/useMounted.js +0 -8
  635. package/dist/fonts.css +0 -21
  636. package/dist/hooks/index.cjs +0 -523
  637. package/dist/hooks/index.js +0 -22
  638. package/dist/icons-light[FILL]-PPZXOLWS.woff2 +0 -0
  639. package/dist/icons-normal[FILL]-PPZXOLWS.woff2 +0 -0
  640. package/dist/index.css +0 -5527
  641. package/dist/open-sans-55T6A4JE.woff2 +0 -0
  642. package/dist/types.cjs +0 -18
  643. package/dist/types.js +0 -0
  644. package/dist/utils/index.cjs +0 -264
  645. package/dist/utils/index.js +0 -43
@@ -1,1808 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __defProps = Object.defineProperties;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
- var __getOwnPropNames = Object.getOwnPropertyNames;
9
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
- var __getProtoOf = Object.getPrototypeOf;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
- var __spreadValues = (a, b) => {
15
- for (var prop in b || (b = {}))
16
- if (__hasOwnProp.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- if (__getOwnPropSymbols)
19
- for (var prop of __getOwnPropSymbols(b)) {
20
- if (__propIsEnum.call(b, prop))
21
- __defNormalProp(a, prop, b[prop]);
22
- }
23
- return a;
24
- };
25
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
- var __objRest = (source, exclude) => {
27
- var target = {};
28
- for (var prop in source)
29
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
- target[prop] = source[prop];
31
- if (source != null && __getOwnPropSymbols)
32
- for (var prop of __getOwnPropSymbols(source)) {
33
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
- target[prop] = source[prop];
35
- }
36
- return target;
37
- };
38
- var __export = (target, all) => {
39
- for (var name in all)
40
- __defProp(target, name, { get: all[name], enumerable: true });
41
- };
42
- var __copyProps = (to, from, except, desc) => {
43
- if (from && typeof from === "object" || typeof from === "function") {
44
- for (let key of __getOwnPropNames(from))
45
- if (!__hasOwnProp.call(to, key) && key !== except)
46
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
47
- }
48
- return to;
49
- };
50
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
51
- // If the importer is in node compatibility mode or this is not an ESM
52
- // file that has been converted to a CommonJS file using a Babel-
53
- // compatible transform (i.e. "__esModule" has not been set), then set
54
- // "default" to the CommonJS "module.exports" for node compatibility.
55
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
56
- mod
57
- ));
58
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
59
-
60
- // src/components/FilterGroup.tsx
61
- var FilterGroup_exports = {};
62
- __export(FilterGroup_exports, {
63
- FilterGroup: () => FilterGroup,
64
- FilterGroupItem: () => FilterGroupItem
65
- });
66
- module.exports = __toCommonJS(FilterGroup_exports);
67
- var import_react3 = require("react");
68
-
69
- // src/components/Label.tsx
70
- var import_clsx2 = __toESM(require("clsx"), 1);
71
-
72
- // src/classNames.ts
73
- var import_clsx = __toESM(require("clsx"), 1);
74
- var typography = {
75
- display1: (0, import_clsx.default)(
76
- "font-sans font-semibold",
77
- "text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
78
- "leading-display-1-mobile desktop:leading-display-1-desktop"
79
- ),
80
- display2: (0, import_clsx.default)(
81
- "font-sans font-bold",
82
- "text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
83
- "leading-display-2-mobile desktop:leading-display-2-desktop"
84
- ),
85
- heading1: (0, import_clsx.default)(
86
- "font-sans font-semibold",
87
- "text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
88
- "leading-heading-1-mobile desktop:leading-heading-1-desktop"
89
- ),
90
- heading2: (0, import_clsx.default)(
91
- "font-sans font-normal",
92
- "text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
93
- "leading-heading-2-mobile desktop:leading-heading-2-desktop"
94
- ),
95
- heading3: (0, import_clsx.default)(
96
- "font-sans font-semibold",
97
- "text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
98
- "leading-heading-3-mobile desktop:leading-heading-3-desktop"
99
- ),
100
- subheader: (0, import_clsx.default)(
101
- "font-sans font-semibold",
102
- "text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
103
- "leading-subheader-mobile desktop:leading-subheader-desktop"
104
- ),
105
- link: (0, import_clsx.default)(
106
- "font-sans font-normal",
107
- "text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
108
- "leading-link-mobile desktop:leading-link-desktop"
109
- ),
110
- buttonLabel: (0, import_clsx.default)(
111
- "font-sans font-semibold",
112
- "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
113
- "leading-label-mobile desktop:leading-label-desktop"
114
- ),
115
- label: (0, import_clsx.default)(
116
- "font-sans font-semibold",
117
- "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
118
- "leading-label-mobile desktop:leading-label-desktop"
119
- ),
120
- paragraph: (0, import_clsx.default)(
121
- "font-sans font-normal",
122
- "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
123
- "leading-paragraph-mobile desktop:leading-paragraph-desktop"
124
- ),
125
- caption: (0, import_clsx.default)(
126
- "font-sans font-normal",
127
- "text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
128
- "leading-caption-mobile desktop:leading-caption-desktop"
129
- ),
130
- breadcrumb: (0, import_clsx.default)(
131
- "font-sans font-normal",
132
- "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
133
- "leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
134
- )
135
- };
136
- var baseTransition = (0, import_clsx.default)(
137
- "transition-colors duration-100 ease-in-out"
138
- );
139
- var componentGap = (0, import_clsx.default)(
140
- "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
141
- );
142
- var paddingUsingComponentGap = (0, import_clsx.default)(
143
- "p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
144
- );
145
- var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
146
- "px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
147
- );
148
- var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
149
- "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
150
- );
151
- var componentPadding = (0, import_clsx.default)(
152
- "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
153
- );
154
- var componentPaddingBottom = (0, import_clsx.default)(
155
- "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
156
- );
157
- var componentPaddingX = (0, import_clsx.default)(
158
- "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
159
- );
160
- var componentPaddingY = (0, import_clsx.default)(
161
- "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
162
- );
163
- var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
164
- "px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
165
- );
166
- var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
167
- "py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
168
- );
169
- var componentPaddingYUsingComponentGap2xMobile = (0, import_clsx.default)(
170
- "py-[calc(var(--spacing-mobile-component-gap)_+_8px)] desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
171
- );
172
- var componentPaddingMinusBorder = (0, import_clsx.default)(
173
- "p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
174
- );
175
- var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
176
- "p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
177
- );
178
- var componentPaddingMinusBorderDesktop = (0, import_clsx.default)(
179
- "p-[calc(var(--spacing-desktop-component-padding)_-_1px)]"
180
- );
181
- var layoutPaddding = (0, import_clsx.default)(
182
- "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
183
- );
184
- var layoutPaddingBottom = (0, import_clsx.default)(
185
- "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
186
- );
187
- var layoutPaddingY = (0, import_clsx.default)(
188
- "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
189
- );
190
- var layoutPaddingX = (0, import_clsx.default)(
191
- "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding"
192
- );
193
- var containerPaddingX = (0, import_clsx.default)(
194
- "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
195
- );
196
- var containerPaddingY = (0, import_clsx.default)(
197
- "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
198
- );
199
- var layoutGroupGapPaddingY = (0, import_clsx.default)(
200
- "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
201
- );
202
- var layoutGroupGap = (0, import_clsx.default)(
203
- "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
204
- );
205
- var layoutGap = (0, import_clsx.default)(
206
- "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
207
- );
208
- var gapUsingContainerPadding = (0, import_clsx.default)(
209
- "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
210
- );
211
-
212
- // src/components/Label.tsx
213
- var import_jsx_runtime = require("react/jsx-runtime");
214
- var Label = (_a) => {
215
- var _b = _a, {
216
- as = "span",
217
- padded,
218
- className,
219
- color,
220
- align,
221
- id,
222
- testid
223
- } = _b, props = __objRest(_b, [
224
- "as",
225
- "padded",
226
- "className",
227
- "color",
228
- "align",
229
- "id",
230
- "testid"
231
- ]);
232
- const Element = as;
233
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
234
- Element,
235
- __spreadProps(__spreadValues({
236
- id,
237
- "data-testid": testid,
238
- className: (0, import_clsx2.default)(
239
- typography.label,
240
- align === "left" && "text-left",
241
- align === "center" && "text-center",
242
- align === "right" && "text-right",
243
- className,
244
- padded && componentPaddingXUsingComponentGap
245
- )
246
- }, props), {
247
- style: __spreadProps(__spreadValues({}, props.style), {
248
- color: color ? `var(--color-${color})` : void 0
249
- })
250
- })
251
- );
252
- };
253
- Label.displayName = "Label";
254
-
255
- // src/components/Checkbox.tsx
256
- var import_clsx5 = __toESM(require("clsx"), 1);
257
-
258
- // src/components/Icon.tsx
259
- var import_clsx3 = __toESM(require("clsx"), 1);
260
- var import_jsx_runtime2 = require("react/jsx-runtime");
261
- function Icon(_a) {
262
- var _b = _a, {
263
- name,
264
- size = 24,
265
- variant = "outline",
266
- testid
267
- } = _b, props = __objRest(_b, [
268
- "name",
269
- "size",
270
- "variant",
271
- "testid"
272
- ]);
273
- const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
274
- const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
275
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
276
- "span",
277
- __spreadProps(__spreadValues({}, props), {
278
- "data-testid": testid,
279
- className: (0, import_clsx3.default)(
280
- "icon",
281
- `icon-${size}`,
282
- // size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
283
- props.className
284
- ),
285
- style: __spreadValues({
286
- fontVariationSettings: variantStyle + `, ${weightStyle}`
287
- }, props.style),
288
- children: name
289
- })
290
- );
291
- }
292
-
293
- // src/components/Paragraph.tsx
294
- var import_clsx4 = __toESM(require("clsx"), 1);
295
- var import_jsx_runtime3 = require("react/jsx-runtime");
296
- var Paragraph = (_a) => {
297
- var _b = _a, {
298
- className,
299
- color,
300
- padded,
301
- align = "left",
302
- tall,
303
- addOverflow,
304
- children,
305
- as = "p",
306
- id,
307
- testid
308
- } = _b, props = __objRest(_b, [
309
- "className",
310
- "color",
311
- "padded",
312
- "align",
313
- "tall",
314
- "addOverflow",
315
- "children",
316
- "as",
317
- "id",
318
- "testid"
319
- ]);
320
- const Element = as;
321
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
322
- Element,
323
- __spreadProps(__spreadValues({
324
- id,
325
- "data-testid": testid
326
- }, props), {
327
- className: (0, import_clsx4.default)(
328
- typography.paragraph,
329
- className,
330
- padded && componentPaddingXUsingComponentGap,
331
- align === "left" && "text-left",
332
- align === "center" && "text-center",
333
- align === "right" && "text-right",
334
- tall && "!leading-6",
335
- addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
336
- ),
337
- style: __spreadProps(__spreadValues({}, props.style), {
338
- color: color ? `var(--color-${color})` : void 0
339
- }),
340
- children
341
- })
342
- );
343
- };
344
- Paragraph.displayName = "Paragraph";
345
-
346
- // src/components/Checkbox.tsx
347
- var import_jsx_runtime4 = require("react/jsx-runtime");
348
- var Checkbox = (_a) => {
349
- var _b = _a, {
350
- label,
351
- error,
352
- disabled,
353
- readOnly,
354
- checked,
355
- onChange,
356
- indeterminate,
357
- paragraphClassName,
358
- id,
359
- testid
360
- } = _b, props = __objRest(_b, [
361
- "label",
362
- "error",
363
- "disabled",
364
- "readOnly",
365
- "checked",
366
- "onChange",
367
- "indeterminate",
368
- "paragraphClassName",
369
- "id",
370
- "testid"
371
- ]);
372
- const selected = indeterminate || checked;
373
- const normalClassName = (0, import_clsx5.default)(
374
- !selected && !error && !disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active"
375
- );
376
- const normalSelectedClassName = (0, import_clsx5.default)(
377
- selected && !error && !disabled && !readOnly && "bg-background-action-primary-normal border-background-action-primary-normal peer-hover:bg-background-action-primary-hover peer-hover:border-background-action-primary-hover peer-active:bg-background-action-primary-active peer-active:border-background-action-primary-active"
378
- );
379
- const errorClassName = (0, import_clsx5.default)(
380
- error && !selected && "bg-background-action-critical-secondary-normal border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active"
381
- );
382
- const errorSelectedClassName = (0, import_clsx5.default)(
383
- error && selected && "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal peer-hover:bg-background-action-critical-primary-hover peer-hover:border-background-action-critical-primary-hover peer-active:bg-background-action-critical-primary-active peer-active:border-background-action-critical-primary-active"
384
- );
385
- const disabledClassName = (0, import_clsx5.default)(
386
- disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-disabled peer-checked:bg-icon-on-action-primary-disabled peer-checked:border-icon-on-action-primary-disabled"
387
- );
388
- const readOnlyClassName = (0, import_clsx5.default)(
389
- readOnly && "border-transparent bg-transparent peer-checked:bg-transparent peer-checked:border-transparent"
390
- );
391
- const checkColor = (0, import_clsx5.default)(
392
- selected && !disabled && !readOnly && "color-icon-on-action-primary-normal peer-hover:color-icon-on-action-primary-hover peer-active:color-icon-on-action-primary-active",
393
- selected && disabled && "color-background-action-primary-disabled"
394
- );
395
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
396
- "label",
397
- {
398
- id,
399
- "data-testid": testid,
400
- htmlFor: id ? `${id}-input` : void 0,
401
- className: (0, import_clsx5.default)(
402
- "flex items-center",
403
- componentGap,
404
- (disabled || readOnly && error || readOnly) && "cursor-default",
405
- !(readOnly && error) && !disabled && !readOnly && "cursor-pointer"
406
- ),
407
- children: [
408
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "relative", children: [
409
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
410
- "input",
411
- __spreadValues({
412
- id: id ? `${id}-input` : void 0,
413
- "data-testid": testid ? `${testid}-input` : void 0,
414
- type: "checkbox",
415
- className: "sr-only peer",
416
- disabled,
417
- checked: selected,
418
- onChange: handleOnChange,
419
- "data-indeterminate": indeterminate
420
- }, props)
421
- ),
422
- error && (readOnly || disabled) ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_clsx5.default)("size-6", "flex items-center justify-center"), children: selected ? indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "question_mark" }) }) : readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-success-400 contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close" }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
423
- "div",
424
- {
425
- className: (0, import_clsx5.default)(
426
- "size-6 border rounded-base",
427
- "flex items-center justify-center",
428
- baseTransition,
429
- normalClassName,
430
- normalSelectedClassName,
431
- errorClassName,
432
- errorSelectedClassName,
433
- disabledClassName,
434
- readOnlyClassName,
435
- checkColor
436
- ),
437
- children: selected ? indeterminate ? readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "question_mark" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "remove", className: "pointer-events-none" }) }) : readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-success-400 contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close" }) })
438
- }
439
- )
440
- ] }),
441
- label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
442
- Paragraph,
443
- {
444
- id: id ? `${id}-label` : void 0,
445
- testid: testid ? `${testid}-label` : void 0,
446
- as: "span",
447
- padded: true,
448
- className: (0, import_clsx5.default)(
449
- !(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "text-nowrap",
450
- disabled && !error && "!text-text-primary-disabled",
451
- error && !disabled && !readOnly && "!text-text-primary-error",
452
- paragraphClassName
453
- ),
454
- children: label
455
- }
456
- )
457
- ]
458
- }
459
- );
460
- function handleOnChange(e) {
461
- if (disabled || readOnly || readOnly && error || !onChange) {
462
- return;
463
- }
464
- onChange(e);
465
- }
466
- };
467
- Checkbox.displayName = "Checkbox";
468
-
469
- // src/components/OptionPill.tsx
470
- var import_clsx7 = __toESM(require("clsx"), 1);
471
-
472
- // src/components/Button.tsx
473
- var import_clsx6 = __toESM(require("clsx"), 1);
474
-
475
- // src/components/Spinner.tsx
476
- var import_jsx_runtime5 = require("react/jsx-runtime");
477
- var Spinner = ({ size = "small", testid }) => {
478
- const dimension = size === "large" ? 48 : 24;
479
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
480
- "svg",
481
- {
482
- "data-testid": testid,
483
- width: dimension,
484
- height: dimension,
485
- viewBox: "0 0 24 24",
486
- xmlns: "http://www.w3.org/2000/svg",
487
- fill: "#1D1E1E",
488
- className: "spinner",
489
- "aria-label": "Loading",
490
- children: [
491
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
492
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
493
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
494
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
495
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
496
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
497
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
498
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
499
- ]
500
- }
501
- );
502
- };
503
- Spinner.displayName = "Spinner";
504
-
505
- // src/components/Button.tsx
506
- var import_jsx_runtime6 = require("react/jsx-runtime");
507
- var Button = (_a) => {
508
- var _b = _a, {
509
- variant = "primary",
510
- as = "button",
511
- block,
512
- leftIcon,
513
- rightIcon,
514
- className,
515
- classNameLabel,
516
- disabled = false,
517
- children,
518
- iconOnly = false,
519
- colorClassName,
520
- href,
521
- id,
522
- testid,
523
- isLoading,
524
- fontNormal = false
525
- } = _b, props = __objRest(_b, [
526
- "variant",
527
- "as",
528
- "block",
529
- "leftIcon",
530
- "rightIcon",
531
- "className",
532
- "classNameLabel",
533
- "disabled",
534
- "children",
535
- "iconOnly",
536
- "colorClassName",
537
- "href",
538
- "id",
539
- "testid",
540
- "isLoading",
541
- "fontNormal"
542
- ]);
543
- const primaryVariantStyles = variant === "primary" && (0, import_clsx6.default)(
544
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
545
- "bg-background-action-primary-normal border-background-action-primary-normal",
546
- "hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
547
- "focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
548
- "active:bg-background-action-primary-active active:border-background-action-primary-active",
549
- "disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
550
- );
551
- const secondaryVariantStyles = variant === "secondary" && (0, import_clsx6.default)(
552
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
553
- "bg-background-action-secondary-normal border-border-action-normal",
554
- "hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
555
- "focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
556
- "active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
557
- "disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
558
- );
559
- const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx6.default)(
560
- "bg-transparent border-transparent",
561
- iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
562
- "bg-transparent border-transparent",
563
- "hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
564
- "focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
565
- "active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
566
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
567
- );
568
- const quarternaryOutlinedVariantStyles = variant === "quarternary-outlined" && (0, import_clsx6.default)(
569
- "bg-transparent border-transparent",
570
- iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-primary-normal",
571
- "bg-transparent border-transparent",
572
- "hover:bg-transparent hover:border-border-primary-normal hover:text-text-primary-normal",
573
- "focus:bg-transparent focus:border-border-primary-normal focus:text-text-primary-normal focus:outline-0",
574
- "active:bg-transparent active:border-transparent active:text-text-primary-active",
575
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
576
- );
577
- const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx6.default)(
578
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
579
- "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
580
- "hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
581
- "focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
582
- "active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
583
- "disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
584
- );
585
- const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx6.default)(
586
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
587
- "bg-background-action-critical-secondary-normal border-border-action-critical-normal",
588
- "hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
589
- "focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
590
- "active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
591
- "disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
592
- );
593
- const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx6.default)(
594
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
595
- "bg-transparent border-transparent text-text-action-critical-normal",
596
- "hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
597
- "focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
598
- "active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
599
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
600
- );
601
- const navigationVarianStyles = variant === "navigation" && (0, import_clsx6.default)(
602
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
603
- "bg-transparent",
604
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
605
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
606
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
607
- "disabled:bg-transparent disabled:text-text-action-primary-normal",
608
- "flex-col",
609
- paddingUsingComponentGap
610
- );
611
- const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx6.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
612
- const buttonClasses = (0, import_clsx6.default)(
613
- disabled ? "cursor-default" : "cursor-pointer",
614
- block ? "w-full" : "w-fit",
615
- baseTransition,
616
- "rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
617
- primaryVariantStyles,
618
- secondaryVariantStyles,
619
- tertiaryVariantStyles,
620
- quarternaryOutlinedVariantStyles,
621
- primaryCriticalVariantStyles,
622
- secondaryCriticalVariantStyles,
623
- tertiaryCriticalVariantStyles,
624
- navigationVarianStyles,
625
- notNavigationVariantStyles,
626
- className
627
- );
628
- const labelClasses = (0, import_clsx6.default)(
629
- "min-h-6 flex items-center justify-center",
630
- classNameLabel,
631
- fontNormal && "font-normal!",
632
- componentPaddingXUsingComponentGap,
633
- typography.buttonLabel
634
- );
635
- const Element = href && !as ? "a" : as;
636
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
637
- Element,
638
- __spreadProps(__spreadValues({
639
- id,
640
- "data-testid": testid,
641
- type: Element === "button" ? "button" : void 0,
642
- className: buttonClasses
643
- }, props), {
644
- onClick: props.onClick,
645
- disabled,
646
- href,
647
- "data-theme": variant === "navigation" ? "brand" : void 0,
648
- children: [
649
- leftIcon && leftIcon,
650
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, { size: "small" }),
651
- !iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
652
- "span",
653
- {
654
- id: id ? `${id}-label` : void 0,
655
- "data-testid": testid ? `${testid}-label` : void 0,
656
- className: labelClasses,
657
- children
658
- }
659
- ),
660
- rightIcon && rightIcon
661
- ]
662
- })
663
- );
664
- };
665
- Button.displayName = "Button";
666
-
667
- // src/components/OptionPill.tsx
668
- var import_jsx_runtime7 = require("react/jsx-runtime");
669
- var OptionPill = (_a) => {
670
- var _b = _a, {
671
- id,
672
- testid,
673
- selected = false,
674
- onClick,
675
- onRemove,
676
- removable = false,
677
- active = false,
678
- disabled = false,
679
- children,
680
- className
681
- } = _b, props = __objRest(_b, [
682
- "id",
683
- "testid",
684
- "selected",
685
- "onClick",
686
- "onRemove",
687
- "removable",
688
- "active",
689
- "disabled",
690
- "children",
691
- "className"
692
- ]);
693
- const additionalAttributes = {
694
- "data-disabled": disabled || null,
695
- "data-selected": selected || null,
696
- "data-active": active || null
697
- };
698
- const classNames = (0, import_clsx7.default)(
699
- {
700
- // Base interactive (only when not disabled)
701
- "hover:border-border-action-hover active:border-border-action-active": !disabled,
702
- // Disabled base
703
- "data-disabled:cursor-default data-disabled:border-border-primary-normal": disabled,
704
- // Active (Figma: filled blue background, white text)
705
- "data-active:bg-background-action-primary-normal data-active:text-white data-active:border-transparent": active && !selected,
706
- // Selected (filled style) overrides background & border, but keeps outline interaction chain.
707
- "data-selected:border-transparent data-selected:bg-background-action-secondary-hover data-selected:outline-border-action-normal data-selected:hover:outline-border-action-hover data-selected:active:outline-border-action-active": selected,
708
- // Disabled + Selected combination
709
- "data-selected:data-disabled:bg-background-action-secondary-disabled data-selected:data-disabled:border-border-action-disabled data-selected:data-disabled:outline-transparent": disabled && selected
710
- },
711
- !removable && componentPadding,
712
- removable && "pl-mobile-component-padding desktop:pl-desktop-component-padding compact:pl-desktop-compact-component-padding"
713
- );
714
- const textColor = (0, import_clsx7.default)(
715
- !disabled && "text-text-primary-normal",
716
- disabled && !selected && "text-text-primary-disabled",
717
- disabled && selected && "text-text-on-action-primary-disabled"
718
- );
719
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
720
- "div",
721
- __spreadProps(__spreadValues(__spreadValues({
722
- id,
723
- "data-testid": testid,
724
- onClick: handleOnClick
725
- }, props), additionalAttributes), {
726
- className: (0, import_clsx7.default)(
727
- "flex items-center justify-between cursor-pointer w-fit",
728
- "border border-border-primary-normal rounded-base",
729
- "outline-2 outline-transparent -outline-offset-2",
730
- componentGap,
731
- baseTransition,
732
- classNames,
733
- className,
734
- textColor
735
- ),
736
- children: [
737
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
738
- Label,
739
- {
740
- id: id ? `${id}-label` : void 0,
741
- testid: testid ? `${testid}-label` : void 0,
742
- padded: true,
743
- className: componentPaddingYUsingComponentGap,
744
- children
745
- }
746
- ),
747
- removable && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
748
- Button,
749
- {
750
- id: id ? `${id}-remove-button` : void 0,
751
- testid: testid ? `${testid}-remove-button` : void 0,
752
- onClick: handleOnRemove,
753
- disabled,
754
- className: (0, import_clsx7.default)(
755
- "mx-0 h-full w-10 !border-0",
756
- componentPaddingMinusBorder
757
- ),
758
- iconOnly: true,
759
- variant: "tertiary",
760
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 16 })
761
- }
762
- )
763
- ]
764
- })
765
- );
766
- function handleOnClick() {
767
- if (disabled) {
768
- return;
769
- }
770
- onClick == null ? void 0 : onClick();
771
- }
772
- function handleOnRemove() {
773
- if (!removable || !onRemove) {
774
- return;
775
- }
776
- onRemove();
777
- }
778
- };
779
- OptionPill.displayName = "OptionPill";
780
-
781
- // src/components/FilterGroup.tsx
782
- var import_clsx10 = __toESM(require("clsx"), 1);
783
-
784
- // src/components/Link.tsx
785
- var import_clsx8 = __toESM(require("clsx"), 1);
786
- var import_jsx_runtime8 = require("react/jsx-runtime");
787
- var Link = (_a) => {
788
- var _b = _a, {
789
- as = "a",
790
- className,
791
- variant = "primary",
792
- typographyStyle = "paragraph",
793
- disabled = false,
794
- color,
795
- paddedY,
796
- align,
797
- underline = false,
798
- testid,
799
- active,
800
- block = false,
801
- addOverflow,
802
- notUnderline = false
803
- } = _b, props = __objRest(_b, [
804
- "as",
805
- "className",
806
- "variant",
807
- "typographyStyle",
808
- "disabled",
809
- "color",
810
- "paddedY",
811
- "align",
812
- "underline",
813
- "testid",
814
- "active",
815
- "block",
816
- "addOverflow",
817
- "notUnderline"
818
- ]);
819
- const Component = as;
820
- const primaryStateStyles = variant === "primary" && !disabled && (0, import_clsx8.default)(
821
- active ? "text-text-link-active" : "text-text-link-normal",
822
- "hover:text-text-link-hover active:text-text-link-active"
823
- );
824
- const secondaryStateStyles = variant === "secondary" && !disabled && (0, import_clsx8.default)(
825
- active ? "text-text-link-active" : "text-text-primary-normal",
826
- "hover:text-text-link-hover active:text-text-link-active"
827
- );
828
- const criticalStateStyles = variant === "critical" && !disabled && (0, import_clsx8.default)(
829
- active ? "text-text-action-critical-active" : "text-text-action-critical-normal",
830
- "hover:text-text-action-critical-hover active:text-text-action-critical-active"
831
- );
832
- const criticalStateDisabledStyles = disabled && variant === "critical" && (0, import_clsx8.default)("text-text-action-critical-disabled");
833
- const disabledStateStyles = disabled && ["primary", "secondary"].includes(variant) && (0, import_clsx8.default)("text-text-link-disabled");
834
- const disabledStyles = disabled && (0, import_clsx8.default)("pointer-events-none cursor-default");
835
- const underlineStyles = underline ? "decoration-current" : notUnderline ? "decoration-decoration-not-underline" : "decoration-decoration-underline";
836
- const paddingY = paddedY && componentPaddingY;
837
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
838
- Component,
839
- __spreadProps(__spreadValues({
840
- className: (0, import_clsx8.default)(
841
- "inline",
842
- disabled ? "cursor-default" : "cursor-pointer",
843
- "underline decoration-[10%] underline-offset-[32%]",
844
- !disabled && "hover:decoration-current",
845
- !disabled && "active:decoration-decoration-underline",
846
- "flex flex-col justify-center",
847
- align === "left" && "items-start",
848
- align === "center" && "items-center",
849
- align === "right" && "items-end",
850
- baseTransition,
851
- primaryStateStyles,
852
- secondaryStateStyles,
853
- criticalStateStyles,
854
- criticalStateDisabledStyles,
855
- disabledStateStyles,
856
- disabledStyles,
857
- underlineStyles,
858
- typographyStyle === "caption" && typography.caption,
859
- typographyStyle === "paragraph" && typography.paragraph,
860
- align === "left" && "text-left",
861
- align === "center" && "text-center",
862
- align === "right" && "text-right",
863
- paddingY,
864
- addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden",
865
- className,
866
- block ? "w-full" : "w-fit"
867
- )
868
- }, props), {
869
- style: __spreadProps(__spreadValues({}, props.style), {
870
- color: color ? `var(--color-${color})` : void 0
871
- }),
872
- "aria-disabled": disabled,
873
- tabIndex: disabled ? -1 : void 0,
874
- "data-testid": testid
875
- })
876
- );
877
- };
878
- Link.displayName = "Link";
879
-
880
- // src/components/Search.tsx
881
- var import_react2 = require("react");
882
-
883
- // src/components/Input.tsx
884
- var import_react = require("react");
885
- var import_clsx9 = __toESM(require("clsx"), 1);
886
-
887
- // src/utils/formatting.tsx
888
- function getDecimalPlaceholder(decimals) {
889
- if (!decimals || decimals <= 0) {
890
- return {};
891
- }
892
- return {
893
- placeholder: `0.${"0".repeat(decimals)}`
894
- };
895
- }
896
- function formatDecimalValue(value, decimals) {
897
- if (!value || value === "") {
898
- return "";
899
- }
900
- const numValue = typeof value === "string" ? parseFloat(value) : value;
901
- if (isNaN(numValue)) {
902
- return "";
903
- }
904
- if (!decimals || decimals <= 0) {
905
- return String(Math.round(numValue));
906
- }
907
- return numValue.toFixed(decimals);
908
- }
909
- function formatCurrencyDisplay(value) {
910
- if (!value || value === "") {
911
- return "";
912
- }
913
- const parts = value.split(".");
914
- const integerPart = parts[0];
915
- const decimalPart = parts[1];
916
- const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
917
- return decimalPart !== void 0 ? `${formattedInteger}.${decimalPart}` : formattedInteger;
918
- }
919
-
920
- // src/components/Input.tsx
921
- var import_jsx_runtime9 = require("react/jsx-runtime");
922
- function hasEquivalentNumericValue(currentValue, nextValue) {
923
- if (!currentValue || !nextValue) {
924
- return false;
925
- }
926
- const currentNumericValue = Number(currentValue.replace(/,/g, ""));
927
- const nextNumericValue = Number(nextValue.replace(/,/g, ""));
928
- return !Number.isNaN(currentNumericValue) && !Number.isNaN(nextNumericValue) && currentNumericValue === nextNumericValue;
929
- }
930
- var InputBase = (_a) => {
931
- var _b = _a, {
932
- id,
933
- testid,
934
- before,
935
- after,
936
- rightAdornment,
937
- type,
938
- label,
939
- error,
940
- className,
941
- align = "left",
942
- caption,
943
- required,
944
- selectOnFocus,
945
- removeRoundness,
946
- inputContainerRef,
947
- removeBorder,
948
- wrapperClassName,
949
- focus,
950
- secondaryIconColor,
951
- fullWidth = true,
952
- width,
953
- wrapperRef,
954
- autocompletePadding = false
955
- } = _b, props = __objRest(_b, [
956
- "id",
957
- "testid",
958
- "before",
959
- "after",
960
- "rightAdornment",
961
- "type",
962
- "label",
963
- "error",
964
- "className",
965
- "align",
966
- "caption",
967
- "required",
968
- "selectOnFocus",
969
- "removeRoundness",
970
- "inputContainerRef",
971
- "removeBorder",
972
- "wrapperClassName",
973
- "focus",
974
- "secondaryIconColor",
975
- "fullWidth",
976
- "width",
977
- "wrapperRef",
978
- "autocompletePadding"
979
- ]);
980
- const attributes = {
981
- "data-error": error && !focus || null,
982
- "data-focus": focus || null
983
- };
984
- const inputRef = (0, import_react.useRef)(null);
985
- const inputId = id ? `${id}-input` : void 0;
986
- (0, import_react.useEffect)(() => {
987
- var _a2;
988
- const input = inputRef.current;
989
- const focusHandler = () => {
990
- input == null ? void 0 : input.select();
991
- };
992
- if (selectOnFocus) {
993
- (_a2 = inputRef.current) == null ? void 0 : _a2.addEventListener("focus", focusHandler);
994
- return () => {
995
- input == null ? void 0 : input.removeEventListener("focus", focusHandler);
996
- };
997
- }
998
- }, [selectOnFocus]);
999
- const inputBaseClass = (0, import_clsx9.default)(
1000
- fullWidth ? "w-full" : "w-fit",
1001
- "flex flex-row items-center",
1002
- "bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
1003
- componentGap,
1004
- baseTransition,
1005
- "outline-transparent outline-2 -outline-offset-2",
1006
- !autocompletePadding && componentPaddingMinusBorder,
1007
- autocompletePadding && componentPaddingMinusBorderDesktop,
1008
- !removeRoundness && "rounded-base",
1009
- !removeBorder && "border border-border-primary-normal",
1010
- "relative"
1011
- );
1012
- const inputFocusClass = (0, import_clsx9.default)(
1013
- "has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
1014
- );
1015
- const inputDisabledClass = (0, import_clsx9.default)(
1016
- "has-disabled:bg-background-action-secondary-disabled"
1017
- );
1018
- const inputReadOnlyClass = (0, import_clsx9.default)(
1019
- "has-[input:not(:disabled):read-only]:outline-none has-[input:not(:disabled):read-only]:bg-transparent has-[input:not(:disabled):read-only]:border-transparent has-[input:not(:disabled):read-only]:pl-0"
1020
- );
1021
- const inputInvalidClass = (0, import_clsx9.default)(
1022
- "has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
1023
- );
1024
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1025
- "label",
1026
- {
1027
- id,
1028
- "data-testid": testid,
1029
- htmlFor: inputId,
1030
- ref: inputContainerRef,
1031
- className: (0, import_clsx9.default)(
1032
- "w-full flex flex-col",
1033
- "block",
1034
- "text-text-primary-normal has-disabled:text-text-primary-disabled",
1035
- componentGap
1036
- ),
1037
- style: __spreadValues({}, props.style),
1038
- children: [
1039
- label && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: (0, import_clsx9.default)("flex items-center", componentGap), children: [
1040
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1041
- Label,
1042
- {
1043
- id: id ? `${id}-label` : void 0,
1044
- color: error ? "text-primary-error" : void 0,
1045
- className: (0, import_clsx9.default)(
1046
- props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
1047
- ),
1048
- children: label
1049
- }
1050
- ),
1051
- required && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1052
- "span",
1053
- {
1054
- className: (0, import_clsx9.default)(typography.label, "text-text-critical-normal"),
1055
- children: "*"
1056
- }
1057
- )
1058
- ] }),
1059
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1060
- "div",
1061
- {
1062
- className: (0, import_clsx9.default)(
1063
- inputBaseClass,
1064
- !props.disabled && inputInvalidClass,
1065
- inputFocusClass,
1066
- inputDisabledClass,
1067
- inputReadOnlyClass,
1068
- wrapperClassName
1069
- ),
1070
- ref: (el) => {
1071
- if (wrapperRef) {
1072
- wrapperRef.current = el;
1073
- }
1074
- },
1075
- children: [
1076
- before,
1077
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1078
- "input",
1079
- __spreadProps(__spreadValues(__spreadValues({
1080
- ref: (el) => {
1081
- inputRef.current = el;
1082
- },
1083
- type,
1084
- required
1085
- }, props), attributes), {
1086
- id: inputId,
1087
- "data-testid": testid ? `${testid}-input` : void 0,
1088
- className: (0, import_clsx9.default)(
1089
- "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
1090
- "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
1091
- "placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
1092
- align === "right" && "text-right",
1093
- align === "center" && "text-center",
1094
- componentPaddingXUsingComponentGap,
1095
- typography.paragraph,
1096
- className,
1097
- props.readOnly && !props.disabled && "!px-0"
1098
- ),
1099
- style: __spreadProps(__spreadValues({}, props.style), { width })
1100
- })
1101
- ),
1102
- secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
1103
- rightAdornment
1104
- ]
1105
- }
1106
- ),
1107
- caption && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1108
- "div",
1109
- {
1110
- id: id ? `${id}-caption` : void 0,
1111
- "data-testid": testid ? `${testid}-caption` : void 0,
1112
- children: caption
1113
- }
1114
- )
1115
- ]
1116
- }
1117
- );
1118
- };
1119
- var Input = (_a) => {
1120
- var _b = _a, {
1121
- variant = "default",
1122
- decimals,
1123
- uom,
1124
- currencyFormat = false,
1125
- formatOnBlur = false,
1126
- removeSearchIcon,
1127
- value: propValue,
1128
- onChange,
1129
- onBlur,
1130
- onClear,
1131
- id,
1132
- testid,
1133
- rightAdornment
1134
- } = _b, props = __objRest(_b, [
1135
- "variant",
1136
- "decimals",
1137
- "uom",
1138
- "currencyFormat",
1139
- "formatOnBlur",
1140
- "removeSearchIcon",
1141
- "value",
1142
- "onChange",
1143
- "onBlur",
1144
- "onClear",
1145
- "id",
1146
- "testid",
1147
- "rightAdornment"
1148
- ]);
1149
- const [internalValue, setInternalValue] = (0, import_react.useState)("");
1150
- const [displayValue, setDisplayValue] = (0, import_react.useState)("");
1151
- const [isFocused, setIsFocused] = (0, import_react.useState)(false);
1152
- const internalValueRef = (0, import_react.useRef)("");
1153
- const setInputValues = (nextInternalValue, nextDisplayValue) => {
1154
- internalValueRef.current = nextInternalValue;
1155
- setInternalValue(nextInternalValue);
1156
- setDisplayValue(nextDisplayValue);
1157
- };
1158
- (0, import_react.useEffect)(() => {
1159
- var _a2;
1160
- const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
1161
- const shouldUseThousandsFormatting = variant === "currency" || variant === "uom" && currencyFormat;
1162
- if (!stringValue) {
1163
- setInputValues("", "");
1164
- return;
1165
- }
1166
- if (!shouldUseThousandsFormatting) {
1167
- setInputValues(stringValue, stringValue);
1168
- return;
1169
- }
1170
- if (isFocused && hasEquivalentNumericValue(internalValueRef.current, stringValue)) {
1171
- return;
1172
- }
1173
- if (formatOnBlur && isFocused) {
1174
- setInputValues(stringValue, stringValue);
1175
- return;
1176
- }
1177
- const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1178
- setInputValues(formatted, formatCurrencyDisplay(formatted));
1179
- }, [propValue, variant, currencyFormat, decimals, formatOnBlur, isFocused]);
1180
- const getInputProps = () => {
1181
- var _a2;
1182
- const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
1183
- id
1184
- }), getDecimalPlaceholder(decimals)), {
1185
- value: propValue
1186
- });
1187
- switch (variant) {
1188
- case "search":
1189
- return __spreadProps(__spreadValues({}, baseProps), {
1190
- placeholder: (_a2 = props.placeholder) != null ? _a2 : "Search",
1191
- className: "!mr-6",
1192
- value: displayValue
1193
- });
1194
- case "finder":
1195
- return baseProps;
1196
- case "currency":
1197
- return __spreadProps(__spreadValues({}, baseProps), {
1198
- align: "right",
1199
- type: "text",
1200
- inputMode: "decimal",
1201
- value: displayValue
1202
- });
1203
- case "percentage":
1204
- case "uom":
1205
- return __spreadProps(__spreadValues({}, baseProps), {
1206
- type: currencyFormat ? "text" : "number",
1207
- align: "right",
1208
- inputMode: currencyFormat ? "decimal" : void 0,
1209
- value: currencyFormat ? displayValue : propValue
1210
- });
1211
- default:
1212
- return baseProps;
1213
- }
1214
- };
1215
- const getBeforeElement = () => {
1216
- if (props.before) return props.before;
1217
- switch (variant) {
1218
- case "search":
1219
- return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "search" }) }) : null;
1220
- case "currency":
1221
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "attach_money" }) });
1222
- case "uom":
1223
- return currencyFormat ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "attach_money" }) }) : null;
1224
- default:
1225
- return null;
1226
- }
1227
- };
1228
- const getAfterElement = () => {
1229
- if (props.after) return props.after;
1230
- switch (variant) {
1231
- case "search": {
1232
- const hasValue = displayValue.length > 0;
1233
- return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1234
- Icon,
1235
- {
1236
- id: id ? `${id}-clear-button` : void 0,
1237
- testid: testid ? `${testid}-clear-button` : void 0,
1238
- name: "close",
1239
- onClick: handleSearchReset,
1240
- className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
1241
- }
1242
- ) : null;
1243
- }
1244
- case "finder":
1245
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "search" });
1246
- case "uom":
1247
- return uom ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
1248
- case "percentage":
1249
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "percent" }) });
1250
- default:
1251
- return null;
1252
- }
1253
- };
1254
- const handleSearchReset = () => {
1255
- setInputValues("", "");
1256
- if (onChange) {
1257
- const syntheticEvent = {
1258
- target: { value: "" }
1259
- };
1260
- if (typeof onChange === "function") {
1261
- onChange(syntheticEvent);
1262
- }
1263
- }
1264
- onClear == null ? void 0 : onClear();
1265
- };
1266
- const handleChange = (e) => {
1267
- const rawValue = e.target.value;
1268
- const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
1269
- if (variant === "currency") {
1270
- const raw = rawValue.replace(/,/g, "");
1271
- if (raw === "") {
1272
- setInputValues("", "");
1273
- if (onChange) {
1274
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1275
- target: __spreadProps(__spreadValues({}, e.target), { value: "" })
1276
- });
1277
- onChange(syntheticEvent);
1278
- }
1279
- return;
1280
- }
1281
- const regex = /^\d*\.?\d*$/;
1282
- if (!regex.test(raw)) return;
1283
- const parts = raw.split(".");
1284
- const currentDecimals = decimals != null ? decimals : 2;
1285
- if (parts.length === 2 && parts[1].length > currentDecimals) return;
1286
- const asNumber = Number(raw);
1287
- if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
1288
- const clamped = maxNumber;
1289
- const formattedClamped = formatDecimalValue(
1290
- clamped.toString(),
1291
- currentDecimals
1292
- );
1293
- setInputValues(
1294
- formattedClamped,
1295
- formatOnBlur ? formattedClamped : formatCurrencyDisplay(formattedClamped)
1296
- );
1297
- if (onChange) {
1298
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1299
- target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
1300
- });
1301
- onChange(syntheticEvent);
1302
- }
1303
- return;
1304
- }
1305
- setInputValues(raw, formatOnBlur ? raw : formatCurrencyDisplay(raw));
1306
- if (!isNaN(asNumber) && onChange) {
1307
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1308
- target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
1309
- });
1310
- onChange(syntheticEvent);
1311
- }
1312
- return;
1313
- }
1314
- if (variant === "uom" && currencyFormat) {
1315
- const raw = rawValue.replace(/,/g, "");
1316
- if (raw === "") {
1317
- setInputValues("", "");
1318
- if (onChange) {
1319
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1320
- target: __spreadProps(__spreadValues({}, e.target), { value: "" })
1321
- });
1322
- onChange(syntheticEvent);
1323
- }
1324
- return;
1325
- }
1326
- const regex = /^\d*\.?\d*$/;
1327
- if (!regex.test(raw)) return;
1328
- const parts = raw.split(".");
1329
- const currentDecimals = decimals != null ? decimals : 2;
1330
- if (parts.length === 2 && parts[1].length > currentDecimals) return;
1331
- const asNumber = Number(raw);
1332
- if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
1333
- const clamped = maxNumber;
1334
- const formattedClamped = formatDecimalValue(
1335
- clamped.toString(),
1336
- currentDecimals
1337
- );
1338
- setInputValues(
1339
- formattedClamped,
1340
- formatCurrencyDisplay(formattedClamped)
1341
- );
1342
- if (onChange) {
1343
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1344
- target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
1345
- });
1346
- onChange(syntheticEvent);
1347
- }
1348
- return;
1349
- }
1350
- setInputValues(raw, formatCurrencyDisplay(raw));
1351
- if (!isNaN(asNumber) && onChange) {
1352
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1353
- target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
1354
- });
1355
- onChange(syntheticEvent);
1356
- }
1357
- return;
1358
- }
1359
- if (variant === "uom" && e.target.type === "number") {
1360
- const numeric = Number(rawValue);
1361
- if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
1362
- const clamped = maxNumber;
1363
- const formattedClamped = formatDecimalValue(
1364
- clamped.toString(),
1365
- decimals != null ? decimals : 0
1366
- );
1367
- setInputValues(formattedClamped, formattedClamped);
1368
- if (typeof onChange === "function") {
1369
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1370
- target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
1371
- });
1372
- onChange(syntheticEvent);
1373
- }
1374
- return;
1375
- }
1376
- setInputValues(rawValue, rawValue);
1377
- if (typeof onChange === "function") {
1378
- onChange(e);
1379
- }
1380
- return;
1381
- }
1382
- setInputValues(rawValue, rawValue);
1383
- if (typeof onChange === "function") {
1384
- onChange(e);
1385
- }
1386
- };
1387
- const handleBlur = (e) => {
1388
- setIsFocused(false);
1389
- if (!internalValue) {
1390
- onBlur == null ? void 0 : onBlur(e);
1391
- return;
1392
- }
1393
- if (variant === "currency") {
1394
- const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
1395
- setInputValues(formatted, formatCurrencyDisplay(formatted));
1396
- const asNumber = Number(formatted);
1397
- if (!isNaN(asNumber) && onChange) {
1398
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1399
- target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
1400
- });
1401
- onChange(syntheticEvent);
1402
- }
1403
- } else if (variant === "uom") {
1404
- if (currencyFormat) {
1405
- const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
1406
- setInputValues(formatted, formatCurrencyDisplay(formatted));
1407
- const asNumber = Number(formatted);
1408
- if (!isNaN(asNumber) && onChange) {
1409
- const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1410
- target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
1411
- });
1412
- onChange(syntheticEvent);
1413
- }
1414
- } else {
1415
- const formattedValue = formatDecimalValue(e.target.value, decimals);
1416
- e.target.value = formattedValue;
1417
- }
1418
- }
1419
- onBlur == null ? void 0 : onBlur(e);
1420
- };
1421
- const handleFocus = (e) => {
1422
- var _a2;
1423
- setIsFocused(true);
1424
- (_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);
1425
- };
1426
- const inputProps = getInputProps();
1427
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1428
- InputBase,
1429
- __spreadProps(__spreadValues({}, inputProps), {
1430
- before: getBeforeElement(),
1431
- after: getAfterElement(),
1432
- onFocus: handleFocus,
1433
- onChange: handleChange,
1434
- onBlur: handleBlur,
1435
- testid,
1436
- rightAdornment
1437
- })
1438
- );
1439
- };
1440
- Input.displayName = "Input";
1441
- var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
1442
- var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
1443
- var Currency = (props) => {
1444
- var _a;
1445
- const handleCurrencyChange = (e) => {
1446
- var _a2;
1447
- (_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
1448
- };
1449
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1450
- Input,
1451
- __spreadProps(__spreadValues({}, props), {
1452
- variant: "currency",
1453
- decimals: (_a = props.decimals) != null ? _a : 2,
1454
- onChange: handleCurrencyChange
1455
- })
1456
- );
1457
- };
1458
- var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
1459
- Finder.displayName = "Finder";
1460
- UOM.displayName = "UOM";
1461
- Currency.displayName = "Currency";
1462
- Percentage.displayName = "Percentage";
1463
-
1464
- // src/components/Search.tsx
1465
- var import_jsx_runtime10 = require("react/jsx-runtime");
1466
- var Search = (_a) => {
1467
- var _b = _a, {
1468
- id,
1469
- testid,
1470
- label,
1471
- error,
1472
- children,
1473
- readOnly,
1474
- renderMenu,
1475
- onClick,
1476
- wrapperClassName,
1477
- removeRoundness,
1478
- autocompletePadding = false
1479
- } = _b, props = __objRest(_b, [
1480
- "id",
1481
- "testid",
1482
- "label",
1483
- "error",
1484
- "children",
1485
- "readOnly",
1486
- "renderMenu",
1487
- "onClick",
1488
- "wrapperClassName",
1489
- "removeRoundness",
1490
- "autocompletePadding"
1491
- ]);
1492
- const inputRef = (0, import_react2.useRef)(null);
1493
- const inputContainerRef = (0, import_react2.useRef)(null);
1494
- const preventFocusOnInitialRender = (0, import_react2.useRef)(true);
1495
- const [show, setShow] = (0, import_react2.useState)(false);
1496
- const [clearing, setClearing] = (0, import_react2.useState)(false);
1497
- const uniqueId = (0, import_react2.useId)();
1498
- const searchMenuName = `search-menu-${uniqueId}`;
1499
- (0, import_react2.useEffect)(() => {
1500
- var _a2;
1501
- if (preventFocusOnInitialRender.current) {
1502
- preventFocusOnInitialRender.current = false;
1503
- return;
1504
- }
1505
- (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
1506
- }, [props.value]);
1507
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
1508
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1509
- Input,
1510
- __spreadValues({
1511
- id,
1512
- testid,
1513
- variant: "search",
1514
- inputContainerRef,
1515
- ref: inputRef,
1516
- label,
1517
- wrapperClassName,
1518
- autocompletePadding,
1519
- onClick: (e) => {
1520
- if (props.disabled || readOnly) {
1521
- return;
1522
- }
1523
- if (clearing) {
1524
- setClearing(false);
1525
- return;
1526
- }
1527
- onClick == null ? void 0 : onClick(e);
1528
- setShow(!show);
1529
- },
1530
- onClear: () => {
1531
- setClearing(true);
1532
- },
1533
- onKeyDown: (e) => {
1534
- setShow(true);
1535
- if (["ArrowUp", "ArrowDown"].includes(e.key)) {
1536
- e.preventDefault();
1537
- const menu = document.querySelector(
1538
- `[data-menu="${searchMenuName}"]`
1539
- );
1540
- const selectedMenuOption = menu == null ? void 0 : menu.querySelector("[data-selected]");
1541
- if (selectedMenuOption) {
1542
- const allMenuOptions = Array.from(
1543
- (menu == null ? void 0 : menu.querySelectorAll('[role="menuitem"]')) || []
1544
- );
1545
- const currentIndex = allMenuOptions.indexOf(selectedMenuOption);
1546
- let targetOption;
1547
- if (e.key === "ArrowDown") {
1548
- targetOption = allMenuOptions[currentIndex + 1] || allMenuOptions[0];
1549
- } else {
1550
- targetOption = allMenuOptions[currentIndex - 1] || allMenuOptions[allMenuOptions.length - 1];
1551
- }
1552
- targetOption == null ? void 0 : targetOption.focus();
1553
- } else {
1554
- const toFocusMenuOption = e.key === "ArrowDown" ? menu == null ? void 0 : menu.querySelector('[role="menuitem"]') : menu == null ? void 0 : menu.querySelector(
1555
- '[role="menuitem"]:last-child'
1556
- );
1557
- toFocusMenuOption == null ? void 0 : toFocusMenuOption.focus();
1558
- }
1559
- }
1560
- },
1561
- error,
1562
- readOnly,
1563
- removeRoundness,
1564
- focus: renderMenu && show
1565
- }, props)
1566
- ),
1567
- renderMenu ? renderMenu({
1568
- id: id ? `${id}-menu` : void 0,
1569
- testid: testid ? `${testid}-menu` : void 0,
1570
- positionTo: inputContainerRef,
1571
- show,
1572
- setShow,
1573
- topOffset: props.caption ? -16 : null,
1574
- autoFocusOff: true,
1575
- menuName: searchMenuName
1576
- }) : children
1577
- ] });
1578
- };
1579
- Search.displayName = "Search";
1580
-
1581
- // src/components/FilterGroup.tsx
1582
- var import_jsx_runtime11 = require("react/jsx-runtime");
1583
- var FilterGroup = (_a) => {
1584
- var _b = _a, {
1585
- id,
1586
- testid,
1587
- label,
1588
- type = "link",
1589
- open = false,
1590
- showMore = false,
1591
- onShowMore,
1592
- onClearAll,
1593
- children,
1594
- showSearchField = false,
1595
- searchValue,
1596
- onSearchChange
1597
- } = _b, props = __objRest(_b, [
1598
- "id",
1599
- "testid",
1600
- "label",
1601
- "type",
1602
- "open",
1603
- "showMore",
1604
- "onShowMore",
1605
- "onClearAll",
1606
- "children",
1607
- "showSearchField",
1608
- "searchValue",
1609
- "onSearchChange"
1610
- ]);
1611
- const isSummary = type === "summary";
1612
- const [internalExpanded, setInternalExpanded] = (0, import_react3.useState)(open);
1613
- const [showAllItems, setShowAllItems] = (0, import_react3.useState)(false);
1614
- const isExpanded = open || internalExpanded;
1615
- const childArray = import_react3.Children.toArray(children).filter(import_react3.isValidElement);
1616
- const shouldShowAll = isSummary || showAllItems;
1617
- const visibleChildren = childArray.slice(
1618
- 0,
1619
- shouldShowAll ? childArray.length : 5
1620
- );
1621
- const showShowMoreLink = showMore && !isSummary && childArray.length > 5 && !showAllItems && isExpanded;
1622
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1623
- "div",
1624
- __spreadProps(__spreadValues({
1625
- id,
1626
- "data-testid": testid
1627
- }, props), {
1628
- className: (0, import_clsx10.default)(
1629
- "border-b border-border-primary-normal",
1630
- isSummary ? layoutPaddingBottom : componentPaddingBottom
1631
- ),
1632
- children: [
1633
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1634
- "div",
1635
- {
1636
- className: (0, import_clsx10.default)(
1637
- "flex items-center justify-between cursor-pointer",
1638
- layoutGroupGap
1639
- ),
1640
- onClick: handleToggleExpanded,
1641
- children: [
1642
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Label, { children: label }),
1643
- type !== "summary" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1644
- Icon,
1645
- {
1646
- name: "keyboard_arrow_down",
1647
- className: (0, import_clsx10.default)(
1648
- baseTransition.replace(
1649
- "transition-colors",
1650
- "transition-transform"
1651
- ),
1652
- isExpanded && "rotate-180",
1653
- "text-icon-action-primary-normal"
1654
- )
1655
- }
1656
- ) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1657
- Link,
1658
- {
1659
- id: id ? `${id}-clear-all` : void 0,
1660
- testid: testid ? `${testid}-clear-all` : void 0,
1661
- className: (0, import_clsx10.default)("block", componentPaddingY),
1662
- onClick: handleClearAll,
1663
- children: "Clear All"
1664
- }
1665
- )
1666
- ]
1667
- }
1668
- ),
1669
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1670
- "div",
1671
- {
1672
- className: (0, import_clsx10.default)(
1673
- "grid",
1674
- baseTransition.replace(
1675
- "transition-colors",
1676
- "transition-[grid-template-rows]"
1677
- ),
1678
- isExpanded || isSummary ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
1679
- ),
1680
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1681
- "div",
1682
- {
1683
- className: (0, import_clsx10.default)(
1684
- "overflow-hidden",
1685
- componentGap,
1686
- (isExpanded || isSummary || internalExpanded) && "mt-mobile-component-gap desktop:mt-desktop-component-gap compact:mt-desktop-compact-component-gap"
1687
- ),
1688
- children: [
1689
- !isSummary && showSearchField && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1690
- Search,
1691
- {
1692
- id: id ? `${id}-search` : void 0,
1693
- testid: testid ? `${testid}-search` : void 0,
1694
- style: { marginBottom: "2px" },
1695
- onChange: onSearchChange,
1696
- value: searchValue
1697
- }
1698
- ),
1699
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_clsx10.default)(isSummary && `flex flex-col ${componentGap}`), children: visibleChildren }),
1700
- showShowMoreLink && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1701
- Link,
1702
- {
1703
- id: id ? `${id}-show-more` : void 0,
1704
- testid: testid ? `${testid}-show-more` : void 0,
1705
- className: (0, import_clsx10.default)("block", "!items-start", componentPaddingY),
1706
- onClick: handleOnShowMore,
1707
- children: "Show More"
1708
- }
1709
- )
1710
- ]
1711
- }
1712
- )
1713
- }
1714
- )
1715
- ]
1716
- })
1717
- );
1718
- function handleOnShowMore(e) {
1719
- e.stopPropagation();
1720
- setShowAllItems(true);
1721
- onShowMore == null ? void 0 : onShowMore();
1722
- }
1723
- function handleToggleExpanded(e) {
1724
- if (type === "summary") return;
1725
- e.stopPropagation();
1726
- setInternalExpanded(!internalExpanded);
1727
- }
1728
- function handleClearAll(e) {
1729
- e.stopPropagation();
1730
- onClearAll == null ? void 0 : onClearAll();
1731
- }
1732
- };
1733
- var FilterGroupItem = (_a) => {
1734
- var _b = _a, {
1735
- id,
1736
- testid,
1737
- type = "link",
1738
- children,
1739
- onClick
1740
- } = _b, props = __objRest(_b, [
1741
- "id",
1742
- "testid",
1743
- "type",
1744
- "children",
1745
- "onClick"
1746
- ]);
1747
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1748
- "div",
1749
- __spreadProps(__spreadValues({
1750
- id,
1751
- "data-testid": testid,
1752
- onClick: handleClick
1753
- }, props), {
1754
- className: (0, import_clsx10.default)(
1755
- "flex items-center justify-between *:first:flex-1 cursor-pointer",
1756
- type !== "summary" ? "*:first:py-mobile-component-padding *:first:desktop:py-desktop-component-padding *:first:compact:py-desktop-compact-component-padding" : ""
1757
- ),
1758
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1759
- FilterGroupItemChildComponent,
1760
- __spreadProps(__spreadValues({}, props), {
1761
- id: id ? `${id}-child` : void 0,
1762
- "data-testid": testid ? `${testid}-child` : void 0,
1763
- type,
1764
- count: props.count,
1765
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "flex items-center justify-between w-full", children: [
1766
- children,
1767
- type !== "summary" && props.count && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { children: [
1768
- "(",
1769
- props.count,
1770
- ")"
1771
- ] })
1772
- ] })
1773
- })
1774
- )
1775
- })
1776
- );
1777
- function handleClick(e) {
1778
- e.stopPropagation();
1779
- onClick == null ? void 0 : onClick();
1780
- }
1781
- };
1782
- var FilterGroupItemChildComponent = (_a) => {
1783
- var _b = _a, {
1784
- type = "link",
1785
- children
1786
- } = _b, props = __objRest(_b, [
1787
- "type",
1788
- "children"
1789
- ]);
1790
- if (type === "checkbox") {
1791
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1792
- Checkbox,
1793
- __spreadValues({
1794
- paragraphClassName: "w-full",
1795
- label: children
1796
- }, props)
1797
- );
1798
- }
1799
- if (type === "summary") {
1800
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(OptionPill, __spreadProps(__spreadValues({ removable: true }, props), { children })) });
1801
- }
1802
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Link, __spreadProps(__spreadValues({ variant: "secondary" }, props), { children }));
1803
- };
1804
- // Annotate the CommonJS export names for ESM import in node:
1805
- 0 && (module.exports = {
1806
- FilterGroup,
1807
- FilterGroupItem
1808
- });