@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,995 +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/Modal.tsx
61
- var Modal_exports = {};
62
- __export(Modal_exports, {
63
- Modal: () => Modal
64
- });
65
- module.exports = __toCommonJS(Modal_exports);
66
- var import_clsx9 = __toESM(require("clsx"), 1);
67
- var import_react7 = require("react");
68
-
69
- // src/components/Heading.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/Heading.tsx
213
- var import_jsx_runtime = require("react/jsx-runtime");
214
- var Heading = (_a) => {
215
- var _b = _a, {
216
- className,
217
- children,
218
- as,
219
- color,
220
- align,
221
- variant = "heading1",
222
- id,
223
- testid
224
- } = _b, props = __objRest(_b, [
225
- "className",
226
- "children",
227
- "as",
228
- "color",
229
- "align",
230
- "variant",
231
- "id",
232
- "testid"
233
- ]);
234
- const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
235
- const Element = as != null ? as : defaultElement;
236
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
237
- Element,
238
- __spreadProps(__spreadValues({
239
- id,
240
- "data-testid": testid,
241
- className: (0, import_clsx2.default)(
242
- typography[variant],
243
- className,
244
- align === "left" && "text-left",
245
- align === "center" && "text-center",
246
- align === "right" && "text-right"
247
- ),
248
- style: __spreadProps(__spreadValues({}, props.style), {
249
- color: color ? `var(--color-${color})` : void 0
250
- })
251
- }, props), {
252
- children
253
- })
254
- );
255
- };
256
- Heading.displayName = "Heading";
257
- var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
258
- var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
259
- var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
260
- Heading1.displayName = "Heading1";
261
- Heading2.displayName = "Heading2";
262
- Heading3.displayName = "Heading3";
263
-
264
- // src/components/Button.tsx
265
- var import_clsx3 = __toESM(require("clsx"), 1);
266
-
267
- // src/components/Spinner.tsx
268
- var import_jsx_runtime2 = require("react/jsx-runtime");
269
- var Spinner = ({ size = "small", testid }) => {
270
- const dimension = size === "large" ? 48 : 24;
271
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
272
- "svg",
273
- {
274
- "data-testid": testid,
275
- width: dimension,
276
- height: dimension,
277
- viewBox: "0 0 24 24",
278
- xmlns: "http://www.w3.org/2000/svg",
279
- fill: "#1D1E1E",
280
- className: "spinner",
281
- "aria-label": "Loading",
282
- children: [
283
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
284
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
285
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
286
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
287
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
288
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
289
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
290
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
291
- ]
292
- }
293
- );
294
- };
295
- Spinner.displayName = "Spinner";
296
-
297
- // src/components/Button.tsx
298
- var import_jsx_runtime3 = require("react/jsx-runtime");
299
- var Button = (_a) => {
300
- var _b = _a, {
301
- variant = "primary",
302
- as = "button",
303
- block,
304
- leftIcon,
305
- rightIcon,
306
- className,
307
- classNameLabel,
308
- disabled = false,
309
- children,
310
- iconOnly = false,
311
- colorClassName,
312
- href,
313
- id,
314
- testid,
315
- isLoading,
316
- fontNormal = false
317
- } = _b, props = __objRest(_b, [
318
- "variant",
319
- "as",
320
- "block",
321
- "leftIcon",
322
- "rightIcon",
323
- "className",
324
- "classNameLabel",
325
- "disabled",
326
- "children",
327
- "iconOnly",
328
- "colorClassName",
329
- "href",
330
- "id",
331
- "testid",
332
- "isLoading",
333
- "fontNormal"
334
- ]);
335
- const primaryVariantStyles = variant === "primary" && (0, import_clsx3.default)(
336
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
337
- "bg-background-action-primary-normal border-background-action-primary-normal",
338
- "hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
339
- "focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
340
- "active:bg-background-action-primary-active active:border-background-action-primary-active",
341
- "disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
342
- );
343
- const secondaryVariantStyles = variant === "secondary" && (0, import_clsx3.default)(
344
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
345
- "bg-background-action-secondary-normal border-border-action-normal",
346
- "hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
347
- "focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
348
- "active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
349
- "disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
350
- );
351
- const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx3.default)(
352
- "bg-transparent border-transparent",
353
- 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",
354
- "bg-transparent border-transparent",
355
- "hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
356
- "focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
357
- "active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
358
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
359
- );
360
- const quarternaryOutlinedVariantStyles = variant === "quarternary-outlined" && (0, import_clsx3.default)(
361
- "bg-transparent border-transparent",
362
- iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-primary-normal",
363
- "bg-transparent border-transparent",
364
- "hover:bg-transparent hover:border-border-primary-normal hover:text-text-primary-normal",
365
- "focus:bg-transparent focus:border-border-primary-normal focus:text-text-primary-normal focus:outline-0",
366
- "active:bg-transparent active:border-transparent active:text-text-primary-active",
367
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
368
- );
369
- const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx3.default)(
370
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
371
- "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
372
- "hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
373
- "focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
374
- "active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
375
- "disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
376
- );
377
- const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx3.default)(
378
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
379
- "bg-background-action-critical-secondary-normal border-border-action-critical-normal",
380
- "hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
381
- "focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
382
- "active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
383
- "disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
384
- );
385
- const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx3.default)(
386
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
387
- "bg-transparent border-transparent text-text-action-critical-normal",
388
- "hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
389
- "focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
390
- "active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
391
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
392
- );
393
- const navigationVarianStyles = variant === "navigation" && (0, import_clsx3.default)(
394
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
395
- "bg-transparent",
396
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
397
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
398
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
399
- "disabled:bg-transparent disabled:text-text-action-primary-normal",
400
- "flex-col",
401
- paddingUsingComponentGap
402
- );
403
- const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx3.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
404
- const buttonClasses = (0, import_clsx3.default)(
405
- disabled ? "cursor-default" : "cursor-pointer",
406
- block ? "w-full" : "w-fit",
407
- baseTransition,
408
- "rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
409
- primaryVariantStyles,
410
- secondaryVariantStyles,
411
- tertiaryVariantStyles,
412
- quarternaryOutlinedVariantStyles,
413
- primaryCriticalVariantStyles,
414
- secondaryCriticalVariantStyles,
415
- tertiaryCriticalVariantStyles,
416
- navigationVarianStyles,
417
- notNavigationVariantStyles,
418
- className
419
- );
420
- const labelClasses = (0, import_clsx3.default)(
421
- "min-h-6 flex items-center justify-center",
422
- classNameLabel,
423
- fontNormal && "font-normal!",
424
- componentPaddingXUsingComponentGap,
425
- typography.buttonLabel
426
- );
427
- const Element = href && !as ? "a" : as;
428
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
429
- Element,
430
- __spreadProps(__spreadValues({
431
- id,
432
- "data-testid": testid,
433
- type: Element === "button" ? "button" : void 0,
434
- className: buttonClasses
435
- }, props), {
436
- onClick: props.onClick,
437
- disabled,
438
- href,
439
- "data-theme": variant === "navigation" ? "brand" : void 0,
440
- children: [
441
- leftIcon && leftIcon,
442
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Spinner, { size: "small" }),
443
- !iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
444
- "span",
445
- {
446
- id: id ? `${id}-label` : void 0,
447
- "data-testid": testid ? `${testid}-label` : void 0,
448
- className: labelClasses,
449
- children
450
- }
451
- ),
452
- rightIcon && rightIcon
453
- ]
454
- })
455
- );
456
- };
457
- Button.displayName = "Button";
458
-
459
- // src/components/Icon.tsx
460
- var import_clsx4 = __toESM(require("clsx"), 1);
461
- var import_jsx_runtime4 = require("react/jsx-runtime");
462
- function Icon(_a) {
463
- var _b = _a, {
464
- name,
465
- size = 24,
466
- variant = "outline",
467
- testid
468
- } = _b, props = __objRest(_b, [
469
- "name",
470
- "size",
471
- "variant",
472
- "testid"
473
- ]);
474
- const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
475
- const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
476
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
477
- "span",
478
- __spreadProps(__spreadValues({}, props), {
479
- "data-testid": testid,
480
- className: (0, import_clsx4.default)(
481
- "icon",
482
- `icon-${size}`,
483
- // size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
484
- props.className
485
- ),
486
- style: __spreadValues({
487
- fontVariationSettings: variantStyle + `, ${weightStyle}`
488
- }, props.style),
489
- children: name
490
- })
491
- );
492
- }
493
-
494
- // src/components/ModalHeader.tsx
495
- var import_clsx5 = __toESM(require("clsx"), 1);
496
- var import_jsx_runtime5 = require("react/jsx-runtime");
497
- var ModalHeader = ({
498
- title,
499
- hideCloseIcon,
500
- headerIcon,
501
- headerIconAlign,
502
- onClose,
503
- id,
504
- testid,
505
- headerClassname,
506
- titleAs: TitleComponent,
507
- headerIconClassname
508
- }) => {
509
- const Title = TitleComponent || Heading2;
510
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
511
- "div",
512
- {
513
- id,
514
- "data-testid": testid,
515
- className: (0, import_clsx5.default)(
516
- "flex items-center",
517
- headerIconAlign === void 0 && "justify-between",
518
- headerIconAlign === "center" && "justify-center",
519
- headerIconAlign === "right" && "justify-end",
520
- headerIconAlign === "left" && "justify-start",
521
- layoutPaddding,
522
- layoutGroupGap,
523
- headerClassname
524
- ),
525
- children: [
526
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
527
- headerIcon,
528
- title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
529
- Title,
530
- {
531
- id: id ? `${id}-title` : void 0,
532
- testid: testid ? `${testid}-title` : void 0,
533
- as: "p",
534
- children: title
535
- }
536
- )
537
- ] }),
538
- !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
539
- Button,
540
- {
541
- id: id ? `${id}-close-button` : void 0,
542
- testid: testid ? `${testid}-close-button` : void 0,
543
- iconOnly: true,
544
- variant: "tertiary",
545
- onClick: onClose,
546
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
547
- "span",
548
- {
549
- className: (0, import_clsx5.default)(
550
- "contents",
551
- headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
552
- ),
553
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 })
554
- }
555
- )
556
- }
557
- )
558
- ]
559
- }
560
- );
561
- };
562
- ModalHeader.displayName = "ModalHeader";
563
-
564
- // src/components/ModalContent.tsx
565
- var import_clsx6 = __toESM(require("clsx"), 1);
566
- var import_jsx_runtime6 = require("react/jsx-runtime");
567
- function ModalContent({
568
- fixedHeightScrolling,
569
- children,
570
- id,
571
- testid
572
- }) {
573
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
574
- "div",
575
- {
576
- id,
577
- "data-testid": testid,
578
- className: (0, import_clsx6.default)(
579
- "flex-grow desktop:flex-grow-0",
580
- layoutPaddding,
581
- fixedHeightScrolling && "overflow-auto"
582
- ),
583
- children
584
- }
585
- );
586
- }
587
- ModalContent.displayName = "ModalContent";
588
-
589
- // src/components/ModalButtons.tsx
590
- var import_clsx7 = __toESM(require("clsx"), 1);
591
- var import_jsx_runtime7 = require("react/jsx-runtime");
592
- var ModalButtons = ({
593
- onClose,
594
- onContinue,
595
- customActions,
596
- id,
597
- testid,
598
- mobileButtonStack = false
599
- }) => {
600
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
601
- "div",
602
- {
603
- id,
604
- "data-testid": testid,
605
- className: (0, import_clsx7.default)(
606
- "border-t border-neutral-300 flex justify-end",
607
- mobileButtonStack && "flex-col ",
608
- layoutPaddding,
609
- layoutGroupGap
610
- ),
611
- children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
612
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
613
- Button,
614
- {
615
- id: id ? `${id}-close-button` : void 0,
616
- testid: testid ? `${testid}-close-button` : void 0,
617
- variant: "secondary",
618
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 24 }),
619
- onClick: onClose,
620
- className: "max-sm:w-full",
621
- children: "Close"
622
- }
623
- ),
624
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
625
- Button,
626
- {
627
- id: id ? `${id}-continue-button` : void 0,
628
- testid: testid ? `${testid}-continue-button` : void 0,
629
- variant: "primary",
630
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "check", size: 24 }),
631
- className: "max-sm:w-full",
632
- onClick: onContinue,
633
- children: "Continue"
634
- }
635
- )
636
- ] })
637
- }
638
- );
639
- };
640
- ModalButtons.displayName = "ModalButtons";
641
-
642
- // src/components/ModalScrim.tsx
643
- var import_clsx8 = __toESM(require("clsx"), 1);
644
- var import_jsx_runtime8 = require("react/jsx-runtime");
645
- var ModalScrim = ({
646
- show = false,
647
- size = "small",
648
- children,
649
- onClick,
650
- ref,
651
- id,
652
- testid
653
- }) => {
654
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
655
- "div",
656
- {
657
- id,
658
- "data-testid": testid,
659
- className: (0, import_clsx8.default)(
660
- "overflow-y-auto h-dvh transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center group bg-neutral-600/50 fixed opacity-0",
661
- !show && " pointer-events-none",
662
- size === "small" && "p-4",
663
- size === "screen" ? "desktop:p-0" : "desktop:p-4",
664
- "inset-0 z-50"
665
- ),
666
- onMouseDown: onClick,
667
- ref,
668
- children
669
- }
670
- );
671
- };
672
- ModalScrim.displayName = "ModalScrim";
673
-
674
- // src/components/Modal.tsx
675
- var import_react_dom = require("react-dom");
676
-
677
- // src/utils/index.ts
678
- var LocalStoragePrefixVersion = `dmsi-acc-v1.1.5`;
679
-
680
- // src/utils.ts
681
- function findDocumentRoot(element) {
682
- if (typeof window === "undefined" || typeof document === "undefined") {
683
- throw new Error(
684
- "findDocumentRoot can only be used in a browser environment."
685
- );
686
- }
687
- if (!element || !(element instanceof Node)) {
688
- return window.document.body;
689
- }
690
- let currentElement = element;
691
- while (currentElement && currentElement.parentNode) {
692
- if (currentElement.parentNode === document) {
693
- return document.body;
694
- } else if (currentElement.parentNode instanceof DocumentFragment) {
695
- return currentElement.parentNode;
696
- } else {
697
- currentElement = currentElement.parentNode;
698
- }
699
- }
700
- return window.document.body;
701
- }
702
-
703
- // src/components/Modal.tsx
704
- var import_react_use = require("react-use");
705
-
706
- // src/hooks/useKeydown.ts
707
- var import_react = require("react");
708
-
709
- // src/hooks/useInfiniteScroll.tsx
710
- var import_react2 = require("react");
711
-
712
- // src/hooks/useMatchesMedia.ts
713
- var import_react3 = require("react");
714
- var useMatchesMedia = (query) => {
715
- const [matches, setMatches] = (0, import_react3.useState)();
716
- (0, import_react3.useLayoutEffect)(() => {
717
- const mediaQueryList = window.matchMedia(query);
718
- const listener = () => setMatches(mediaQueryList.matches);
719
- listener();
720
- mediaQueryList.addEventListener("change", listener);
721
- return () => mediaQueryList.removeEventListener("change", listener);
722
- }, [query]);
723
- return matches;
724
- };
725
- var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
726
-
727
- // src/hooks/useTableLayout/useTableLayout.ts
728
- var import_react4 = require("react");
729
-
730
- // src/hooks/useTableLayout/storage.ts
731
- var STORAGE_PREFIX = `${LocalStoragePrefixVersion}-tablePrefs`;
732
- var LEGACY_STORAGE_PREFIX = `${LocalStoragePrefixVersion}-tableLayout`;
733
-
734
- // src/hooks/useEditCell.tsx
735
- var import_react5 = require("react");
736
-
737
- // src/components/useMounted.tsx
738
- var import_react6 = require("react");
739
- var useMounted = () => {
740
- const [isMounted, setIsMounted] = (0, import_react6.useState)(false);
741
- (0, import_react6.useEffect)(() => {
742
- setIsMounted(true);
743
- return () => setIsMounted(false);
744
- }, []);
745
- return isMounted;
746
- };
747
-
748
- // src/components/Modal.tsx
749
- var import_jsx_runtime9 = require("react/jsx-runtime");
750
- var fadeInScale = (element, duration = 300) => element.animate(
751
- [
752
- { opacity: 0, transform: "scale(0.95)" },
753
- { opacity: 1, transform: "scale(1)" }
754
- ],
755
- {
756
- duration,
757
- easing: "cubic-bezier(0.4, 0, 0.2, 1)",
758
- fill: "both"
759
- }
760
- );
761
- var fadeOutScale = (element, duration = 200) => element.animate(
762
- [
763
- { opacity: 1, transform: "scale(1)" },
764
- { opacity: 0, transform: "scale(0.95)" }
765
- ],
766
- {
767
- duration,
768
- easing: "ease-in-out",
769
- fill: "both"
770
- }
771
- );
772
- var bgFadeIn = (element, duration = 300) => element.animate([{ opacity: 0 }, { opacity: 1 }], {
773
- duration,
774
- easing: "cubic-bezier(0.4, 0, 0.2, 1)",
775
- fill: "both"
776
- });
777
- var bgFadeOut = (element, duration = 200) => element.animate([{ opacity: 1 }, { opacity: 0 }], {
778
- duration,
779
- easing: "ease-in-out",
780
- fill: "both"
781
- });
782
- var whenAllAnimationsFinish = (animations, callback) => {
783
- let finishedCount = 0;
784
- animations.forEach((animation) => {
785
- animation.onfinish = () => {
786
- finishedCount += 1;
787
- if (finishedCount === animations.length) {
788
- callback();
789
- }
790
- };
791
- });
792
- };
793
- var sizes = {
794
- small: {
795
- sizeClass: "h-fit max-h-dvh desktop:max-w-120 rounded-sm"
796
- },
797
- medium: {
798
- sizeClass: "desktop:max-w-180 w-screen desktop:h-fit h-dvh desktop:w-full max-w-240"
799
- },
800
- large: {
801
- sizeClass: "desktop:max-w-240 w-screen desktop:h-fit h-dvh desktop:w-full max-w-240"
802
- },
803
- "x-large": {
804
- sizeClass: "desktop:max-w-300 w-screen desktop:h-fit h-dvh desktop:w-full max-w-240"
805
- },
806
- screen: {
807
- sizeClass: "w-screen h-dvh max-w-screen !rounded-none"
808
- }
809
- };
810
- var Modal = ({
811
- id,
812
- testid,
813
- title,
814
- open = false,
815
- size = "small",
816
- className,
817
- children,
818
- onClose,
819
- onContinue,
820
- closeOnBackdropClick = true,
821
- showButtons = false,
822
- hideCloseIcon = false,
823
- headerIcon,
824
- headerIconAlign,
825
- headerIconClassname,
826
- fixedHeightScrolling = false,
827
- customActions,
828
- headerClassname,
829
- customFooter,
830
- noWrapper,
831
- titleAs: TitleComponent,
832
- mobileButtonStack = false
833
- }) => {
834
- var _a;
835
- const mounted = useMounted();
836
- const modalRef = (0, import_react7.useRef)(null);
837
- const bgRef = (0, import_react7.useRef)(null);
838
- const wasOpen = (0, import_react_use.usePrevious)(open);
839
- const isMobile = useMatchesMobile();
840
- const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
841
- (0, import_react7.useEffect)(() => {
842
- if (!mounted) return;
843
- if (!modalRef.current || !bgRef.current) {
844
- console.error("Modal or background reference is not set.");
845
- return;
846
- }
847
- if (wasOpen === void 0) return;
848
- if (wasOpen && !open) {
849
- const modalAnimation = fadeOutScale(modalRef.current);
850
- const bgAnimation = bgFadeOut(bgRef.current);
851
- whenAllAnimationsFinish([modalAnimation, bgAnimation], () => {
852
- if (onClose) {
853
- onClose();
854
- }
855
- });
856
- } else if (!wasOpen && open) {
857
- fadeInScale(modalRef.current);
858
- bgFadeIn(bgRef.current);
859
- }
860
- }, [mounted, onClose, open, wasOpen]);
861
- const handleKeyDown = (0, import_react7.useCallback)(
862
- (e) => {
863
- if (e.key === "Escape") {
864
- if (onClose) {
865
- e.preventDefault();
866
- onClose();
867
- }
868
- }
869
- },
870
- [onClose]
871
- );
872
- const handleClose = (0, import_react7.useCallback)(() => {
873
- if (onClose) {
874
- onClose();
875
- }
876
- }, [onClose]);
877
- (0, import_react7.useEffect)(() => {
878
- if (open) {
879
- document.addEventListener("keyup", handleKeyDown);
880
- }
881
- return () => {
882
- document.removeEventListener("keyup", handleKeyDown);
883
- };
884
- }, [open, handleKeyDown]);
885
- (0, import_react7.useEffect)(() => {
886
- if (!open) return;
887
- const scrollY = window.scrollY;
888
- const body = document.body;
889
- body.style.position = "fixed";
890
- body.style.top = `-${scrollY}px`;
891
- body.style.left = "0";
892
- body.style.right = "0";
893
- body.style.overflow = "hidden";
894
- body.style.width = "100%";
895
- return () => {
896
- body.style.position = "";
897
- body.style.top = "";
898
- body.style.left = "";
899
- body.style.right = "";
900
- body.style.overflow = "";
901
- body.style.width = "";
902
- window.scrollTo(0, scrollY);
903
- };
904
- }, [open]);
905
- const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
906
- const backgroundClickHandler = (0, import_react7.useCallback)(
907
- (e) => {
908
- const target = e.target;
909
- const currentTarget = e.currentTarget;
910
- if (currentTarget.contains(target) && currentTarget !== target) {
911
- e.stopPropagation();
912
- return;
913
- }
914
- if (open && closeOnBackdropClick) {
915
- handleClose();
916
- }
917
- },
918
- [open, closeOnBackdropClick, handleClose]
919
- );
920
- if (!mounted) {
921
- return null;
922
- }
923
- return (0, import_react_dom.createPortal)(
924
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
925
- ModalScrim,
926
- {
927
- id: id ? `${id}-scrim` : void 0,
928
- testid: testid ? `${testid}-scrim` : void 0,
929
- size,
930
- ref: bgRef,
931
- show: open,
932
- onClick: backgroundClickHandler,
933
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
934
- "div",
935
- {
936
- id,
937
- "data-testid": testid,
938
- ref: modalRef,
939
- className: (0, import_clsx9.default)(
940
- "shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
941
- computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
942
- className,
943
- !(className == null ? void 0 : className.includes("bg-")) && "bg-white",
944
- sizeClass
945
- ),
946
- onClick: (e) => e.stopPropagation(),
947
- children: [
948
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
949
- ModalHeader,
950
- {
951
- id: id ? `${id}-header` : void 0,
952
- testid: testid ? `${testid}-header` : void 0,
953
- title,
954
- onClose: handleClose,
955
- hideCloseIcon,
956
- headerIcon,
957
- headerIconAlign,
958
- headerClassname,
959
- headerIconClassname,
960
- titleAs: TitleComponent
961
- }
962
- ),
963
- children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
964
- ModalContent,
965
- {
966
- id: id ? `${id}-content` : void 0,
967
- testid: testid ? `${testid}-content` : void 0,
968
- fixedHeightScrolling: computedFixedHeightScrolling,
969
- children
970
- }
971
- ) : children,
972
- showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
973
- ModalButtons,
974
- {
975
- id: id ? `${id}-buttons` : void 0,
976
- testid: testid ? `${testid}-buttons` : void 0,
977
- onClose: handleClose,
978
- onContinue,
979
- customActions,
980
- mobileButtonStack
981
- }
982
- ) : null
983
- ]
984
- }
985
- )
986
- }
987
- ),
988
- findDocumentRoot(bgRef.current)
989
- );
990
- };
991
- Modal.displayName = "Modal";
992
- // Annotate the CommonJS export names for ESM import in node:
993
- 0 && (module.exports = {
994
- Modal
995
- });