@dmsi/wedgekit-react 0.0.1242 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (643) 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 +52855 -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/pdf-l6QfMa5e.js +17649 -0
  282. package/dist/styles.css +1 -0
  283. package/dist/types.d.ts +33 -0
  284. package/dist/types.d.ts.map +1 -0
  285. package/dist/utils/date-patch-dashes.d.ts +17 -0
  286. package/dist/utils/date-patch-dashes.d.ts.map +1 -0
  287. package/dist/utils/date.d.ts +60 -0
  288. package/dist/utils/date.d.ts.map +1 -0
  289. package/dist/utils/formatting.d.ts +36 -0
  290. package/dist/utils/formatting.d.ts.map +1 -0
  291. package/dist/utils/index.d.ts +6 -0
  292. package/dist/utils/index.d.ts.map +1 -0
  293. package/dist/utils/mergeObjectArrays.d.ts +12 -0
  294. package/dist/utils/mergeObjectArrays.d.ts.map +1 -0
  295. package/dist/utils.d.ts +3 -0
  296. package/dist/utils.d.ts.map +1 -0
  297. package/package.json +17 -83
  298. package/dist/chunk-3JUIYULW.js +0 -231
  299. package/dist/chunk-3PIDINTF.js +0 -52
  300. package/dist/chunk-3UPUZBP5.js +0 -149
  301. package/dist/chunk-4RJKB7LC.js +0 -14
  302. package/dist/chunk-4UGMSWWA.js +0 -57
  303. package/dist/chunk-5IFPG6TS.js +0 -17
  304. package/dist/chunk-5N32SQ3R.js +0 -99
  305. package/dist/chunk-5UH6QUFB.js +0 -38
  306. package/dist/chunk-5UPADXVU.js +0 -2376
  307. package/dist/chunk-6YUQCRMX.js +0 -32
  308. package/dist/chunk-75USUR3I.js +0 -27
  309. package/dist/chunk-7IPESTQS.js +0 -93
  310. package/dist/chunk-7MBRCM3M.js +0 -66
  311. package/dist/chunk-7WDYXRMW.js +0 -110
  312. package/dist/chunk-7YA3TF73.js +0 -32
  313. package/dist/chunk-7Z3WINQ3.js +0 -59
  314. package/dist/chunk-7ZJIGTFN.js +0 -78
  315. package/dist/chunk-AJ5M6MVX.js +0 -7
  316. package/dist/chunk-AT4AWD6B.js +0 -44
  317. package/dist/chunk-BQNPOGD5.js +0 -105
  318. package/dist/chunk-BWPNXY7T.js +0 -78
  319. package/dist/chunk-CIYLALYO.js +0 -72
  320. package/dist/chunk-DNNX5EYX.js +0 -274
  321. package/dist/chunk-E3FOCECQ.js +0 -61
  322. package/dist/chunk-E7LGUC2B.js +0 -35
  323. package/dist/chunk-EA6Y4HXQ.js +0 -112
  324. package/dist/chunk-EWGHVZL5.js +0 -27
  325. package/dist/chunk-F4VE3THQ.js +0 -71
  326. package/dist/chunk-FXXRXLOL.js +0 -329
  327. package/dist/chunk-G242RHWI.js +0 -139
  328. package/dist/chunk-GOGNV5TF.js +0 -68
  329. package/dist/chunk-GYT5CL7R.js +0 -159
  330. package/dist/chunk-I3W5K76C.js +0 -142
  331. package/dist/chunk-J3HNYUSG.js +0 -34
  332. package/dist/chunk-J4IMVWT5.js +0 -183
  333. package/dist/chunk-K6RPFIMB.js +0 -77
  334. package/dist/chunk-KBIEWFQS.js +0 -27
  335. package/dist/chunk-KESCXOG3.js +0 -82
  336. package/dist/chunk-MAEVKATN.js +0 -110
  337. package/dist/chunk-MBZ55T2D.js +0 -51
  338. package/dist/chunk-MOBFZ672.js +0 -134
  339. package/dist/chunk-MVDGHWKO.js +0 -238
  340. package/dist/chunk-NAWP246H.js +0 -65
  341. package/dist/chunk-NKUETCDA.js +0 -44
  342. package/dist/chunk-NSZTJ5R4.js +0 -38
  343. package/dist/chunk-NT26ZKSI.js +0 -82
  344. package/dist/chunk-NW75QACN.js +0 -91
  345. package/dist/chunk-OG2PGA3X.js +0 -154
  346. package/dist/chunk-OM7QLLI2.js +0 -277
  347. package/dist/chunk-ORMEWXMH.js +0 -37
  348. package/dist/chunk-PABII472.js +0 -579
  349. package/dist/chunk-PBJ2MEHM.js +0 -483
  350. package/dist/chunk-PE3EZP56.js +0 -373
  351. package/dist/chunk-QBIEU25R.js +0 -61
  352. package/dist/chunk-QG6NWMGA.js +0 -138
  353. package/dist/chunk-QVWYTQKL.js +0 -29
  354. package/dist/chunk-SATCWGO7.js +0 -166
  355. package/dist/chunk-SBRRNFOP.js +0 -33
  356. package/dist/chunk-SJZNVG4N.js +0 -47
  357. package/dist/chunk-TBZ243DS.js +0 -173
  358. package/dist/chunk-UARCWLMD.js +0 -66
  359. package/dist/chunk-UFX5XIJL.js +0 -178
  360. package/dist/chunk-UZHBKSXJ.js +0 -87
  361. package/dist/chunk-VEEZ7VRJ.js +0 -137
  362. package/dist/chunk-VJVY6NPF.js +0 -32
  363. package/dist/chunk-VUKYIERA.js +0 -89
  364. package/dist/chunk-VXWSAIB5.js +0 -26
  365. package/dist/chunk-W5NXOJ4L.js +0 -104
  366. package/dist/chunk-WVGXD7HT.js +0 -19
  367. package/dist/chunk-WVUIIBRR.js +0 -51
  368. package/dist/chunk-X4OKKRN5.js +0 -140
  369. package/dist/chunk-X7BKBBIH.js +0 -114
  370. package/dist/chunk-XB2S2QMB.js +0 -67
  371. package/dist/chunk-Y5GD2FJA.js +0 -32
  372. package/dist/chunk-YKEPPS2I.js +0 -192
  373. package/dist/chunk-YULGJORA.js +0 -259
  374. package/dist/chunk-Z2HPSFEQ.js +0 -14
  375. package/dist/chunk-Z5YP2GI6.js +0 -142
  376. package/dist/chunk-ZRFXUER3.js +0 -468
  377. package/dist/components/AccessCard.cjs +0 -661
  378. package/dist/components/AccessCard.js +0 -13
  379. package/dist/components/AccessCardGroup.cjs +0 -365
  380. package/dist/components/AccessCardGroup.js +0 -11
  381. package/dist/components/AccessChangerTabItem.cjs +0 -352
  382. package/dist/components/AccessChangerTabItem.js +0 -75
  383. package/dist/components/Accordion.cjs +0 -680
  384. package/dist/components/Accordion.js +0 -13
  385. package/dist/components/Alert.cjs +0 -850
  386. package/dist/components/Alert.js +0 -14
  387. package/dist/components/Breadcrumbs.cjs +0 -456
  388. package/dist/components/Breadcrumbs.js +0 -125
  389. package/dist/components/Button.cjs +0 -401
  390. package/dist/components/Button.js +0 -9
  391. package/dist/components/CalendarRange.cjs +0 -6569
  392. package/dist/components/CalendarRange.css +0 -5546
  393. package/dist/components/CalendarRange.js +0 -78
  394. package/dist/components/Caption.cjs +0 -365
  395. package/dist/components/Caption.js +0 -9
  396. package/dist/components/Card.cjs +0 -128
  397. package/dist/components/Card.js +0 -7
  398. package/dist/components/Checkbox.cjs +0 -421
  399. package/dist/components/Checkbox.js +0 -11
  400. package/dist/components/CompactImagesPreview.cjs +0 -604
  401. package/dist/components/CompactImagesPreview.js +0 -14
  402. package/dist/components/ContentTab.cjs +0 -483
  403. package/dist/components/ContentTab.js +0 -11
  404. package/dist/components/ContentTabs.cjs +0 -599
  405. package/dist/components/ContentTabs.js +0 -125
  406. package/dist/components/DMSiLogo.cjs +0 -97
  407. package/dist/components/DMSiLogo.js +0 -60
  408. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +0 -6558
  409. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +0 -5546
  410. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +0 -74
  411. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +0 -6558
  412. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +0 -5546
  413. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +0 -74
  414. package/dist/components/DataGrid/PinnedColumns.cjs +0 -6558
  415. package/dist/components/DataGrid/PinnedColumns.css +0 -5546
  416. package/dist/components/DataGrid/PinnedColumns.js +0 -74
  417. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +0 -6560
  418. package/dist/components/DataGrid/TableBody/LoadingCell.css +0 -5546
  419. package/dist/components/DataGrid/TableBody/LoadingCell.js +0 -74
  420. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +0 -6560
  421. package/dist/components/DataGrid/TableBody/TableBodyRow.css +0 -5546
  422. package/dist/components/DataGrid/TableBody/TableBodyRow.js +0 -74
  423. package/dist/components/DataGrid/TableBody/index.cjs +0 -6560
  424. package/dist/components/DataGrid/TableBody/index.css +0 -5546
  425. package/dist/components/DataGrid/TableBody/index.js +0 -74
  426. package/dist/components/DataGrid/index.cjs +0 -6563
  427. package/dist/components/DataGrid/index.css +0 -5546
  428. package/dist/components/DataGrid/index.js +0 -77
  429. package/dist/components/DataGrid/utils.cjs +0 -6558
  430. package/dist/components/DataGrid/utils.css +0 -5546
  431. package/dist/components/DataGrid/utils.js +0 -74
  432. package/dist/components/DataGridCell.cjs +0 -2531
  433. package/dist/components/DataGridCell.js +0 -30
  434. package/dist/components/DataTable.cjs +0 -847
  435. package/dist/components/DataTable.js +0 -775
  436. package/dist/components/DateInput.cjs +0 -6560
  437. package/dist/components/DateInput.css +0 -5546
  438. package/dist/components/DateInput.js +0 -74
  439. package/dist/components/DateRangeInput.cjs +0 -7151
  440. package/dist/components/DateRangeInput.css +0 -5546
  441. package/dist/components/DateRangeInput.js +0 -652
  442. package/dist/components/DebugJson.cjs +0 -58
  443. package/dist/components/DebugJson.js +0 -35
  444. package/dist/components/Display.cjs +0 -263
  445. package/dist/components/Display.js +0 -12
  446. package/dist/components/EditingContext.cjs +0 -86
  447. package/dist/components/EditingContext.js +0 -12
  448. package/dist/components/EmblaCarousel/ArrowButtons.cjs +0 -151
  449. package/dist/components/EmblaCarousel/ArrowButtons.js +0 -9
  450. package/dist/components/EmblaCarousel/SelectedSnapDisplay.cjs +0 -38
  451. package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +0 -7
  452. package/dist/components/EmblaCarousel/index.cjs +0 -420
  453. package/dist/components/EmblaCarousel/index.js +0 -12
  454. package/dist/components/EmptyCartIcon.cjs +0 -51
  455. package/dist/components/EmptyCartIcon.js +0 -7
  456. package/dist/components/FilterGroup.cjs +0 -1801
  457. package/dist/components/FilterGroup.js +0 -267
  458. package/dist/components/FooterBar.cjs +0 -64
  459. package/dist/components/FooterBar.js +0 -31
  460. package/dist/components/FullViewportBox.cjs +0 -60
  461. package/dist/components/FullViewportBox.js +0 -27
  462. package/dist/components/Grid.cjs +0 -135
  463. package/dist/components/Grid.js +0 -7
  464. package/dist/components/Heading.cjs +0 -267
  465. package/dist/components/Heading.js +0 -14
  466. package/dist/components/HorizontalDivider.cjs +0 -82
  467. package/dist/components/HorizontalDivider.js +0 -26
  468. package/dist/components/Icon.cjs +0 -101
  469. package/dist/components/Icon.js +0 -7
  470. package/dist/components/ImagePlaceholder.cjs +0 -65
  471. package/dist/components/ImagePlaceholder.js +0 -7
  472. package/dist/components/Input.cjs +0 -923
  473. package/dist/components/Input.js +0 -23
  474. package/dist/components/InputGroup.cjs +0 -307
  475. package/dist/components/InputGroup.js +0 -68
  476. package/dist/components/Label.cjs +0 -252
  477. package/dist/components/Label.js +0 -8
  478. package/dist/components/Link.cjs +0 -304
  479. package/dist/components/Link.js +0 -8
  480. package/dist/components/List.cjs +0 -39
  481. package/dist/components/List.js +0 -16
  482. package/dist/components/ListGroup.cjs +0 -568
  483. package/dist/components/ListGroup.js +0 -11
  484. package/dist/components/LiveChatComponent.cjs +0 -63
  485. package/dist/components/LiveChatComponent.js +0 -40
  486. package/dist/components/LoadingScrim.cjs +0 -90
  487. package/dist/components/LoadingScrim.js +0 -28
  488. package/dist/components/LogoAgilityTopBar.cjs +0 -133
  489. package/dist/components/LogoAgilityTopBar.js +0 -96
  490. package/dist/components/LogoDMSiTopBar.cjs +0 -97
  491. package/dist/components/LogoDMSiTopBar.js +0 -7
  492. package/dist/components/LogoMillworkTopBar.cjs +0 -239
  493. package/dist/components/LogoMillworkTopBar.js +0 -202
  494. package/dist/components/MainBar.cjs +0 -234
  495. package/dist/components/MainBar.js +0 -66
  496. package/dist/components/MaxViewportBox.cjs +0 -45
  497. package/dist/components/MaxViewportBox.js +0 -22
  498. package/dist/components/Menu.cjs +0 -505
  499. package/dist/components/Menu.js +0 -14
  500. package/dist/components/MenuOption.cjs +0 -695
  501. package/dist/components/MenuOption.js +0 -18
  502. package/dist/components/MobileDataGrid/ColumnList.cjs +0 -991
  503. package/dist/components/MobileDataGrid/ColumnList.css +0 -5546
  504. package/dist/components/MobileDataGrid/ColumnList.js +0 -20
  505. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +0 -6668
  506. package/dist/components/MobileDataGrid/ColumnSelector/index.css +0 -5546
  507. package/dist/components/MobileDataGrid/ColumnSelector/index.js +0 -74
  508. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +0 -31
  509. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +0 -7
  510. package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +0 -186
  511. package/dist/components/MobileDataGrid/GridContextProvider/index.js +0 -8
  512. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +0 -333
  513. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +0 -12
  514. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +0 -907
  515. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +0 -19
  516. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +0 -6978
  517. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +0 -5546
  518. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +0 -74
  519. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +0 -620
  520. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +0 -16
  521. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +0 -1457
  522. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +0 -29
  523. package/dist/components/MobileDataGrid/index.cjs +0 -7489
  524. package/dist/components/MobileDataGrid/index.css +0 -5546
  525. package/dist/components/MobileDataGrid/index.js +0 -74
  526. package/dist/components/Modal.cjs +0 -995
  527. package/dist/components/Modal.js +0 -23
  528. package/dist/components/ModalButtons.cjs +0 -491
  529. package/dist/components/ModalButtons.js +0 -11
  530. package/dist/components/ModalContent.cjs +0 -204
  531. package/dist/components/ModalContent.js +0 -8
  532. package/dist/components/ModalHeader.cjs +0 -563
  533. package/dist/components/ModalHeader.js +0 -12
  534. package/dist/components/ModalScrim.cjs +0 -69
  535. package/dist/components/ModalScrim.js +0 -7
  536. package/dist/components/NavigationTab.cjs +0 -522
  537. package/dist/components/NavigationTab.js +0 -11
  538. package/dist/components/NavigationTabs.cjs +0 -572
  539. package/dist/components/NavigationTabs.js +0 -61
  540. package/dist/components/NestedMenu.cjs +0 -1275
  541. package/dist/components/NestedMenu.js +0 -164
  542. package/dist/components/Notification.cjs +0 -871
  543. package/dist/components/Notification.js +0 -126
  544. package/dist/components/OptionPill.cjs +0 -597
  545. package/dist/components/OptionPill.js +0 -12
  546. package/dist/components/OrderCheckIcon.cjs +0 -85
  547. package/dist/components/OrderCheckIcon.js +0 -7
  548. package/dist/components/PDFViewer/DownloadIcon.cjs +0 -618
  549. package/dist/components/PDFViewer/DownloadIcon.js +0 -17
  550. package/dist/components/PDFViewer/PDFElement.cjs +0 -571
  551. package/dist/components/PDFViewer/PDFElement.js +0 -11
  552. package/dist/components/PDFViewer/PDFNavigation.cjs +0 -828
  553. package/dist/components/PDFViewer/PDFNavigation.js +0 -14
  554. package/dist/components/PDFViewer/PDFPage.cjs +0 -56
  555. package/dist/components/PDFViewer/PDFPage.js +0 -7
  556. package/dist/components/PDFViewer/index.cjs +0 -1941
  557. package/dist/components/PDFViewer/index.js +0 -182
  558. package/dist/components/Pagination.cjs +0 -436
  559. package/dist/components/Pagination.js +0 -10
  560. package/dist/components/Paragraph.cjs +0 -261
  561. package/dist/components/Paragraph.js +0 -8
  562. package/dist/components/Password.cjs +0 -1123
  563. package/dist/components/Password.js +0 -75
  564. package/dist/components/ProductImagePreview/CarouselPagination.cjs +0 -75
  565. package/dist/components/ProductImagePreview/CarouselPagination.js +0 -7
  566. package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +0 -216
  567. package/dist/components/ProductImagePreview/MobileImageCarousel.js +0 -7
  568. package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +0 -214
  569. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +0 -7
  570. package/dist/components/ProductImagePreview/Thumbnail.cjs +0 -112
  571. package/dist/components/ProductImagePreview/Thumbnail.js +0 -8
  572. package/dist/components/ProductImagePreview/ZoomWindow.cjs +0 -198
  573. package/dist/components/ProductImagePreview/ZoomWindow.js +0 -8
  574. package/dist/components/ProductImagePreview/index.cjs +0 -1447
  575. package/dist/components/ProductImagePreview/index.js +0 -22
  576. package/dist/components/ProjectBar.cjs +0 -279
  577. package/dist/components/ProjectBar.js +0 -71
  578. package/dist/components/Radio.cjs +0 -386
  579. package/dist/components/Radio.js +0 -10
  580. package/dist/components/Search.cjs +0 -1033
  581. package/dist/components/Search.js +0 -14
  582. package/dist/components/SearchResultImage/index.cjs +0 -92
  583. package/dist/components/SearchResultImage/index.js +0 -8
  584. package/dist/components/Select.cjs +0 -1012
  585. package/dist/components/Select.js +0 -14
  586. package/dist/components/SideMenu.cjs +0 -61
  587. package/dist/components/SideMenu.js +0 -28
  588. package/dist/components/SideMenuGroup.cjs +0 -593
  589. package/dist/components/SideMenuGroup.js +0 -97
  590. package/dist/components/SideMenuItem.cjs +0 -568
  591. package/dist/components/SideMenuItem.js +0 -95
  592. package/dist/components/SimpleTable.cjs +0 -547
  593. package/dist/components/SimpleTable.js +0 -10
  594. package/dist/components/SkeletonParagraph.cjs +0 -51
  595. package/dist/components/SkeletonParagraph.js +0 -7
  596. package/dist/components/Spinner.cjs +0 -57
  597. package/dist/components/Spinner.js +0 -7
  598. package/dist/components/Stack.cjs +0 -434
  599. package/dist/components/Stack.js +0 -8
  600. package/dist/components/StatusPill.cjs +0 -303
  601. package/dist/components/StatusPill.js +0 -64
  602. package/dist/components/Stepper.cjs +0 -1478
  603. package/dist/components/Stepper.js +0 -239
  604. package/dist/components/Subheader.cjs +0 -255
  605. package/dist/components/Subheader.js +0 -8
  606. package/dist/components/Surface.cjs +0 -101
  607. package/dist/components/Surface.js +0 -7
  608. package/dist/components/Swatch.cjs +0 -2089
  609. package/dist/components/Swatch.js +0 -1513
  610. package/dist/components/Textarea.cjs +0 -330
  611. package/dist/components/Textarea.js +0 -136
  612. package/dist/components/Theme.cjs +0 -51
  613. package/dist/components/Theme.js +0 -7
  614. package/dist/components/Time.cjs +0 -1511
  615. package/dist/components/Time.js +0 -373
  616. package/dist/components/Toast.cjs +0 -764
  617. package/dist/components/Toast.js +0 -243
  618. package/dist/components/Tooltip.cjs +0 -337
  619. package/dist/components/Tooltip.js +0 -14
  620. package/dist/components/TopBar.cjs +0 -392
  621. package/dist/components/TopBar.js +0 -148
  622. package/dist/components/Upload.cjs +0 -823
  623. package/dist/components/Upload.js +0 -132
  624. package/dist/components/WorldpayIframe.cjs +0 -45
  625. package/dist/components/WorldpayIframe.js +0 -22
  626. package/dist/components/index.cjs +0 -9454
  627. package/dist/components/index.css +0 -5546
  628. package/dist/components/index.js +0 -174
  629. package/dist/components/useMenuSystem.cjs +0 -442
  630. package/dist/components/useMenuSystem.js +0 -15
  631. package/dist/components/useMounted.cjs +0 -39
  632. package/dist/components/useMounted.js +0 -8
  633. package/dist/fonts.css +0 -21
  634. package/dist/hooks/index.cjs +0 -523
  635. package/dist/hooks/index.js +0 -22
  636. package/dist/icons-light[FILL]-PPZXOLWS.woff2 +0 -0
  637. package/dist/icons-normal[FILL]-PPZXOLWS.woff2 +0 -0
  638. package/dist/index.css +0 -5524
  639. package/dist/open-sans-55T6A4JE.woff2 +0 -0
  640. package/dist/types.cjs +0 -18
  641. package/dist/types.js +0 -0
  642. package/dist/utils/index.cjs +0 -264
  643. package/dist/utils/index.js +0 -43
@@ -1,764 +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/Toast.tsx
61
- var Toast_exports = {};
62
- __export(Toast_exports, {
63
- Toast: () => Toast,
64
- createToast: () => createToast
65
- });
66
- module.exports = __toCommonJS(Toast_exports);
67
- var import_clsx6 = __toESM(require("clsx"), 1);
68
- var import_react = require("react");
69
-
70
- // src/components/Heading.tsx
71
- var import_clsx2 = __toESM(require("clsx"), 1);
72
-
73
- // src/classNames.ts
74
- var import_clsx = __toESM(require("clsx"), 1);
75
- var typography = {
76
- display1: (0, import_clsx.default)(
77
- "font-sans font-semibold",
78
- "text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
79
- "leading-display-1-mobile desktop:leading-display-1-desktop"
80
- ),
81
- display2: (0, import_clsx.default)(
82
- "font-sans font-bold",
83
- "text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
84
- "leading-display-2-mobile desktop:leading-display-2-desktop"
85
- ),
86
- heading1: (0, import_clsx.default)(
87
- "font-sans font-semibold",
88
- "text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
89
- "leading-heading-1-mobile desktop:leading-heading-1-desktop"
90
- ),
91
- heading2: (0, import_clsx.default)(
92
- "font-sans font-normal",
93
- "text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
94
- "leading-heading-2-mobile desktop:leading-heading-2-desktop"
95
- ),
96
- heading3: (0, import_clsx.default)(
97
- "font-sans font-semibold",
98
- "text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
99
- "leading-heading-3-mobile desktop:leading-heading-3-desktop"
100
- ),
101
- subheader: (0, import_clsx.default)(
102
- "font-sans font-semibold",
103
- "text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
104
- "leading-subheader-mobile desktop:leading-subheader-desktop"
105
- ),
106
- link: (0, import_clsx.default)(
107
- "font-sans font-normal",
108
- "text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
109
- "leading-link-mobile desktop:leading-link-desktop"
110
- ),
111
- buttonLabel: (0, import_clsx.default)(
112
- "font-sans font-semibold",
113
- "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
114
- "leading-label-mobile desktop:leading-label-desktop"
115
- ),
116
- label: (0, import_clsx.default)(
117
- "font-sans font-semibold",
118
- "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
119
- "leading-label-mobile desktop:leading-label-desktop"
120
- ),
121
- paragraph: (0, import_clsx.default)(
122
- "font-sans font-normal",
123
- "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
124
- "leading-paragraph-mobile desktop:leading-paragraph-desktop"
125
- ),
126
- caption: (0, import_clsx.default)(
127
- "font-sans font-normal",
128
- "text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
129
- "leading-caption-mobile desktop:leading-caption-desktop"
130
- ),
131
- breadcrumb: (0, import_clsx.default)(
132
- "font-sans font-normal",
133
- "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
134
- "leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
135
- )
136
- };
137
- var baseTransition = (0, import_clsx.default)(
138
- "transition-colors duration-100 ease-in-out"
139
- );
140
- var componentGap = (0, import_clsx.default)(
141
- "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
142
- );
143
- var paddingUsingComponentGap = (0, import_clsx.default)(
144
- "p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
145
- );
146
- var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
147
- "px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
148
- );
149
- var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
150
- "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
151
- );
152
- var componentPadding = (0, import_clsx.default)(
153
- "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
154
- );
155
- var componentPaddingBottom = (0, import_clsx.default)(
156
- "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
157
- );
158
- var componentPaddingX = (0, import_clsx.default)(
159
- "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
160
- );
161
- var componentPaddingY = (0, import_clsx.default)(
162
- "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
163
- );
164
- var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
165
- "px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
166
- );
167
- var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
168
- "py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
169
- );
170
- var componentPaddingYUsingComponentGap2xMobile = (0, import_clsx.default)(
171
- "py-[calc(var(--spacing-mobile-component-gap)_+_8px)] desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
172
- );
173
- var componentPaddingMinusBorder = (0, import_clsx.default)(
174
- "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)]"
175
- );
176
- var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
177
- "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)]"
178
- );
179
- var componentPaddingMinusBorderDesktop = (0, import_clsx.default)(
180
- "p-[calc(var(--spacing-desktop-component-padding)_-_1px)]"
181
- );
182
- var layoutPaddding = (0, import_clsx.default)(
183
- "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
184
- );
185
- var layoutPaddingBottom = (0, import_clsx.default)(
186
- "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
187
- );
188
- var layoutPaddingY = (0, import_clsx.default)(
189
- "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
190
- );
191
- var layoutPaddingX = (0, import_clsx.default)(
192
- "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding"
193
- );
194
- var containerPaddingX = (0, import_clsx.default)(
195
- "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
196
- );
197
- var containerPaddingY = (0, import_clsx.default)(
198
- "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
199
- );
200
- var layoutGroupGapPaddingY = (0, import_clsx.default)(
201
- "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
202
- );
203
- var layoutGroupGap = (0, import_clsx.default)(
204
- "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
205
- );
206
- var layoutGap = (0, import_clsx.default)(
207
- "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
208
- );
209
- var gapUsingContainerPadding = (0, import_clsx.default)(
210
- "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
211
- );
212
-
213
- // src/components/Heading.tsx
214
- var import_jsx_runtime = require("react/jsx-runtime");
215
- var Heading = (_a) => {
216
- var _b = _a, {
217
- className,
218
- children,
219
- as,
220
- color,
221
- align,
222
- variant = "heading1",
223
- id,
224
- testid
225
- } = _b, props = __objRest(_b, [
226
- "className",
227
- "children",
228
- "as",
229
- "color",
230
- "align",
231
- "variant",
232
- "id",
233
- "testid"
234
- ]);
235
- const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
236
- const Element = as != null ? as : defaultElement;
237
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
238
- Element,
239
- __spreadProps(__spreadValues({
240
- id,
241
- "data-testid": testid,
242
- className: (0, import_clsx2.default)(
243
- typography[variant],
244
- className,
245
- align === "left" && "text-left",
246
- align === "center" && "text-center",
247
- align === "right" && "text-right"
248
- ),
249
- style: __spreadProps(__spreadValues({}, props.style), {
250
- color: color ? `var(--color-${color})` : void 0
251
- })
252
- }, props), {
253
- children
254
- })
255
- );
256
- };
257
- Heading.displayName = "Heading";
258
- var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
259
- var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
260
- var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
261
- Heading1.displayName = "Heading1";
262
- Heading2.displayName = "Heading2";
263
- Heading3.displayName = "Heading3";
264
-
265
- // src/components/Paragraph.tsx
266
- var import_clsx3 = __toESM(require("clsx"), 1);
267
- var import_jsx_runtime2 = require("react/jsx-runtime");
268
- var Paragraph = (_a) => {
269
- var _b = _a, {
270
- className,
271
- color,
272
- padded,
273
- align = "left",
274
- tall,
275
- addOverflow,
276
- children,
277
- as = "p",
278
- id,
279
- testid
280
- } = _b, props = __objRest(_b, [
281
- "className",
282
- "color",
283
- "padded",
284
- "align",
285
- "tall",
286
- "addOverflow",
287
- "children",
288
- "as",
289
- "id",
290
- "testid"
291
- ]);
292
- const Element = as;
293
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
294
- Element,
295
- __spreadProps(__spreadValues({
296
- id,
297
- "data-testid": testid
298
- }, props), {
299
- className: (0, import_clsx3.default)(
300
- typography.paragraph,
301
- className,
302
- padded && componentPaddingXUsingComponentGap,
303
- align === "left" && "text-left",
304
- align === "center" && "text-center",
305
- align === "right" && "text-right",
306
- tall && "!leading-6",
307
- addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
308
- ),
309
- style: __spreadProps(__spreadValues({}, props.style), {
310
- color: color ? `var(--color-${color})` : void 0
311
- }),
312
- children
313
- })
314
- );
315
- };
316
- Paragraph.displayName = "Paragraph";
317
-
318
- // src/components/Icon.tsx
319
- var import_clsx4 = __toESM(require("clsx"), 1);
320
- var import_jsx_runtime3 = require("react/jsx-runtime");
321
- function Icon(_a) {
322
- var _b = _a, {
323
- name,
324
- size = 24,
325
- variant = "outline",
326
- testid
327
- } = _b, props = __objRest(_b, [
328
- "name",
329
- "size",
330
- "variant",
331
- "testid"
332
- ]);
333
- const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
334
- const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
335
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
336
- "span",
337
- __spreadProps(__spreadValues({}, props), {
338
- "data-testid": testid,
339
- className: (0, import_clsx4.default)(
340
- "icon",
341
- `icon-${size}`,
342
- // size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
343
- props.className
344
- ),
345
- style: __spreadValues({
346
- fontVariationSettings: variantStyle + `, ${weightStyle}`
347
- }, props.style),
348
- children: name
349
- })
350
- );
351
- }
352
-
353
- // src/components/Button.tsx
354
- var import_clsx5 = __toESM(require("clsx"), 1);
355
-
356
- // src/components/Spinner.tsx
357
- var import_jsx_runtime4 = require("react/jsx-runtime");
358
- var Spinner = ({ size = "small", testid }) => {
359
- const dimension = size === "large" ? 48 : 24;
360
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
361
- "svg",
362
- {
363
- "data-testid": testid,
364
- width: dimension,
365
- height: dimension,
366
- viewBox: "0 0 24 24",
367
- xmlns: "http://www.w3.org/2000/svg",
368
- fill: "#1D1E1E",
369
- className: "spinner",
370
- "aria-label": "Loading",
371
- children: [
372
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
373
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
374
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
375
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
376
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
377
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
378
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
379
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
380
- ]
381
- }
382
- );
383
- };
384
- Spinner.displayName = "Spinner";
385
-
386
- // src/components/Button.tsx
387
- var import_jsx_runtime5 = require("react/jsx-runtime");
388
- var Button = (_a) => {
389
- var _b = _a, {
390
- variant = "primary",
391
- as = "button",
392
- block,
393
- leftIcon,
394
- rightIcon,
395
- className,
396
- classNameLabel,
397
- disabled = false,
398
- children,
399
- iconOnly = false,
400
- colorClassName,
401
- href,
402
- id,
403
- testid,
404
- isLoading,
405
- fontNormal = false
406
- } = _b, props = __objRest(_b, [
407
- "variant",
408
- "as",
409
- "block",
410
- "leftIcon",
411
- "rightIcon",
412
- "className",
413
- "classNameLabel",
414
- "disabled",
415
- "children",
416
- "iconOnly",
417
- "colorClassName",
418
- "href",
419
- "id",
420
- "testid",
421
- "isLoading",
422
- "fontNormal"
423
- ]);
424
- const primaryVariantStyles = variant === "primary" && (0, import_clsx5.default)(
425
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
426
- "bg-background-action-primary-normal border-background-action-primary-normal",
427
- "hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
428
- "focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
429
- "active:bg-background-action-primary-active active:border-background-action-primary-active",
430
- "disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
431
- );
432
- const secondaryVariantStyles = variant === "secondary" && (0, import_clsx5.default)(
433
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
434
- "bg-background-action-secondary-normal border-border-action-normal",
435
- "hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
436
- "focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
437
- "active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
438
- "disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
439
- );
440
- const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx5.default)(
441
- "bg-transparent border-transparent",
442
- 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",
443
- "bg-transparent border-transparent",
444
- "hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
445
- "focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
446
- "active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
447
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
448
- );
449
- const quarternaryOutlinedVariantStyles = variant === "quarternary-outlined" && (0, import_clsx5.default)(
450
- "bg-transparent border-transparent",
451
- iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-primary-normal",
452
- "bg-transparent border-transparent",
453
- "hover:bg-transparent hover:border-border-primary-normal hover:text-text-primary-normal",
454
- "focus:bg-transparent focus:border-border-primary-normal focus:text-text-primary-normal focus:outline-0",
455
- "active:bg-transparent active:border-transparent active:text-text-primary-active",
456
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
457
- );
458
- const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx5.default)(
459
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
460
- "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
461
- "hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
462
- "focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
463
- "active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
464
- "disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
465
- );
466
- const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx5.default)(
467
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
468
- "bg-background-action-critical-secondary-normal border-border-action-critical-normal",
469
- "hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
470
- "focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
471
- "active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
472
- "disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
473
- );
474
- const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx5.default)(
475
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
476
- "bg-transparent border-transparent text-text-action-critical-normal",
477
- "hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
478
- "focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
479
- "active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
480
- "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
481
- );
482
- const navigationVarianStyles = variant === "navigation" && (0, import_clsx5.default)(
483
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
484
- "bg-transparent",
485
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
486
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
487
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
488
- "disabled:bg-transparent disabled:text-text-action-primary-normal",
489
- "flex-col",
490
- paddingUsingComponentGap
491
- );
492
- const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx5.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
493
- const buttonClasses = (0, import_clsx5.default)(
494
- disabled ? "cursor-default" : "cursor-pointer",
495
- block ? "w-full" : "w-fit",
496
- baseTransition,
497
- "rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
498
- primaryVariantStyles,
499
- secondaryVariantStyles,
500
- tertiaryVariantStyles,
501
- quarternaryOutlinedVariantStyles,
502
- primaryCriticalVariantStyles,
503
- secondaryCriticalVariantStyles,
504
- tertiaryCriticalVariantStyles,
505
- navigationVarianStyles,
506
- notNavigationVariantStyles,
507
- className
508
- );
509
- const labelClasses = (0, import_clsx5.default)(
510
- "min-h-6 flex items-center justify-center",
511
- classNameLabel,
512
- fontNormal && "font-normal!",
513
- componentPaddingXUsingComponentGap,
514
- typography.buttonLabel
515
- );
516
- const Element = href && !as ? "a" : as;
517
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
518
- Element,
519
- __spreadProps(__spreadValues({
520
- id,
521
- "data-testid": testid,
522
- type: Element === "button" ? "button" : void 0,
523
- className: buttonClasses
524
- }, props), {
525
- onClick: props.onClick,
526
- disabled,
527
- href,
528
- "data-theme": variant === "navigation" ? "brand" : void 0,
529
- children: [
530
- leftIcon && leftIcon,
531
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Spinner, { size: "small" }),
532
- !iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
533
- "span",
534
- {
535
- id: id ? `${id}-label` : void 0,
536
- "data-testid": testid ? `${testid}-label` : void 0,
537
- className: labelClasses,
538
- children
539
- }
540
- ),
541
- rightIcon && rightIcon
542
- ]
543
- })
544
- );
545
- };
546
- Button.displayName = "Button";
547
-
548
- // src/components/Toast.tsx
549
- var import_client = require("react-dom/client");
550
- var import_jsx_runtime6 = require("react/jsx-runtime");
551
- var variants = {
552
- success: {
553
- className: "border-success-400",
554
- icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "check_circle", size: 24 }) })
555
- },
556
- warning: {
557
- className: "border-warning-400",
558
- icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-warning-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "warning", size: 24 }) })
559
- },
560
- error: {
561
- className: "border-critical-400",
562
- icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-critical-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "error", size: 24 }) })
563
- },
564
- info: {
565
- className: "border-action-400",
566
- icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-on-action-secondary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "info", size: 24 }) })
567
- }
568
- };
569
- var slideInFromBottomAnimation = (element, displayDuration = 8e3, inDuration = 50, outDuration = 50) => {
570
- const totalDuration = inDuration + displayDuration + outDuration;
571
- const rect = element.getBoundingClientRect();
572
- const slideDistance = window.innerHeight - rect.bottom + 16;
573
- return element.animate(
574
- [
575
- {
576
- opacity: 0,
577
- transform: `translateY(${slideDistance}px)`,
578
- offset: 0
579
- },
580
- {
581
- opacity: 1,
582
- transform: "translateY(0)",
583
- offset: inDuration / totalDuration
584
- },
585
- {
586
- opacity: 1,
587
- transform: "translateY(0)",
588
- offset: (inDuration + displayDuration) / totalDuration
589
- },
590
- {
591
- opacity: 0,
592
- transform: `translateY(${slideDistance}px)`,
593
- offset: 1
594
- }
595
- ],
596
- {
597
- duration: totalDuration,
598
- easing: "cubic-bezier(0.4, 0, 0.2, 1)",
599
- fill: "both"
600
- }
601
- );
602
- };
603
- var TOAST_ROOT_ID = "toast-root";
604
- function getToastRoot() {
605
- let root = document.getElementById(TOAST_ROOT_ID);
606
- if (!root) {
607
- root = document.createElement("div");
608
- root.id = TOAST_ROOT_ID;
609
- root.className = "fixed bottom-6 right-6 z-50 flex flex-col items-end gap-4 pointer-events-none";
610
- document.body.appendChild(root);
611
- }
612
- return root;
613
- }
614
- var Toast = (_a) => {
615
- var _b = _a, {
616
- id,
617
- testid,
618
- variant = "success",
619
- title,
620
- message,
621
- show = false,
622
- showToast = false,
623
- onClose: onClose,
624
- viewButtonLink,
625
- showViewButton = false
626
- } = _b, props = __objRest(_b, [
627
- "id",
628
- "testid",
629
- "variant",
630
- "title",
631
- "message",
632
- "show",
633
- "showToast",
634
- // deprecated
635
- "onClose",
636
- "viewButtonLink",
637
- "showViewButton"
638
- ]);
639
- var _a2;
640
- const toastElementRef = (0, import_react.useRef)(null);
641
- const animationRef = (0, import_react.useRef)(null);
642
- const [isHovered, setIsHovered] = (0, import_react.useState)(false);
643
- (0, import_react.useEffect)(() => {
644
- if (show && !showToast) {
645
- if (toastElementRef.current) {
646
- const animation = slideInFromBottomAnimation(toastElementRef.current);
647
- animationRef.current = animation;
648
- animation.onfinish = () => {
649
- onClose == null ? void 0 : onClose();
650
- };
651
- }
652
- return () => {
653
- if (animationRef.current) {
654
- animationRef.current.cancel();
655
- }
656
- };
657
- }
658
- }, [show, showToast, onClose]);
659
- (0, import_react.useEffect)(() => {
660
- if (animationRef.current) {
661
- if (isHovered) {
662
- animationRef.current.pause();
663
- } else {
664
- animationRef.current.play();
665
- }
666
- }
667
- }, [isHovered]);
668
- (0, import_react.useEffect)(() => {
669
- const handleAnimationEnd = () => {
670
- if (!isHovered) {
671
- onClose == null ? void 0 : onClose();
672
- }
673
- };
674
- if (animationRef.current) {
675
- animationRef.current.addEventListener("finish", handleAnimationEnd);
676
- return () => {
677
- if (animationRef.current) {
678
- animationRef.current.removeEventListener(
679
- "finish",
680
- handleAnimationEnd
681
- );
682
- }
683
- };
684
- }
685
- }, [isHovered, onClose]);
686
- const handleMouseEnter = () => setIsHovered(true);
687
- const handleMouseLeave = () => {
688
- setIsHovered(false);
689
- if (animationRef.current && animationRef.current.playState === "paused") {
690
- animationRef.current.play();
691
- }
692
- };
693
- const { className, icon: iconElement } = (_a2 = variants[variant]) != null ? _a2 : variants.success;
694
- if (!show) return null;
695
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
696
- "div",
697
- __spreadProps(__spreadValues({
698
- id,
699
- "data-testid": testid,
700
- ref: toastElementRef,
701
- onMouseEnter: handleMouseEnter,
702
- onMouseLeave: handleMouseLeave,
703
- className: (0, import_clsx6.default)(
704
- "flex items-start border-2 rounded-sm bg-white shadow-md cursor-pointer pointer-events-auto transition-all duration-300 ease-in-out w-fit",
705
- componentPadding,
706
- layoutGroupGap,
707
- className
708
- )
709
- }, props), {
710
- style: props.style,
711
- children: [
712
- iconElement,
713
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx6.default)("flex items-center", layoutGroupGap), children: [
714
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx6.default)("flex flex-col w-68", componentGap), children: [
715
- title && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Heading3, { testid: testid ? `${testid}-title` : void 0, id: id ? `${id}-title` : void 0, children: title }),
716
- message && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { testid: testid ? `${testid}-message` : void 0, id: id ? `${id}-message` : void 0, children: message })
717
- ] }),
718
- showViewButton && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
719
- Button,
720
- {
721
- id: id ? `${id}-view-button` : void 0,
722
- testid: testid ? `${testid}-view-button` : void 0,
723
- variant: "tertiary",
724
- href: viewButtonLink,
725
- children: "View"
726
- }
727
- )
728
- ] })
729
- ]
730
- })
731
- );
732
- };
733
- Toast.displayName = "Toast";
734
- function createToast(config) {
735
- const toastRoot = getToastRoot();
736
- const toastContainer = document.createElement("div");
737
- toastRoot.appendChild(toastContainer);
738
- const root = (0, import_client.createRoot)(toastContainer);
739
- const handleClose = () => {
740
- root.unmount();
741
- toastContainer.remove();
742
- };
743
- root.render(
744
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
745
- Toast,
746
- {
747
- id: config.id,
748
- testid: config.testid,
749
- show: true,
750
- onClose: handleClose,
751
- variant: config.variant,
752
- title: config.title,
753
- message: config.message,
754
- showViewButton: config.showViewButton,
755
- viewButtonLink: config.viewButtonLink
756
- }
757
- )
758
- );
759
- }
760
- // Annotate the CommonJS export names for ESM import in node:
761
- 0 && (module.exports = {
762
- Toast,
763
- createToast
764
- });