@ds-mo/ui 0.3.0 → 0.4.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 (521) hide show
  1. package/dist/components/ds-accordion.d.ts +11 -0
  2. package/dist/components/ds-accordion.js +2 -0
  3. package/dist/components/ds-accordion.js.map +1 -0
  4. package/dist/components/ds-badge.d.ts +11 -0
  5. package/dist/components/ds-badge.js +2 -0
  6. package/dist/components/ds-badge.js.map +1 -0
  7. package/dist/components/ds-banner.d.ts +11 -0
  8. package/dist/components/ds-banner.js +2 -0
  9. package/dist/components/ds-banner.js.map +1 -0
  10. package/dist/components/ds-breadcrumb.d.ts +11 -0
  11. package/dist/components/ds-breadcrumb.js +2 -0
  12. package/dist/components/ds-breadcrumb.js.map +1 -0
  13. package/dist/components/ds-button.d.ts +11 -0
  14. package/dist/components/ds-button.js +2 -0
  15. package/dist/components/ds-button.js.map +1 -0
  16. package/dist/components/ds-card.d.ts +11 -0
  17. package/dist/components/ds-card.js +2 -0
  18. package/dist/components/ds-card.js.map +1 -0
  19. package/dist/components/ds-checkbox.d.ts +11 -0
  20. package/dist/components/ds-checkbox.js +2 -0
  21. package/dist/components/ds-checkbox.js.map +1 -0
  22. package/dist/components/ds-divider.d.ts +11 -0
  23. package/dist/components/ds-divider.js +2 -0
  24. package/dist/components/ds-divider.js.map +1 -0
  25. package/dist/components/ds-empty-state.d.ts +11 -0
  26. package/dist/components/ds-empty-state.js +2 -0
  27. package/dist/components/ds-empty-state.js.map +1 -0
  28. package/dist/components/ds-fade.d.ts +11 -0
  29. package/dist/components/ds-fade.js +2 -0
  30. package/dist/components/ds-fade.js.map +1 -0
  31. package/dist/components/ds-field.d.ts +11 -0
  32. package/dist/components/ds-field.js +2 -0
  33. package/dist/components/ds-field.js.map +1 -0
  34. package/dist/components/ds-header.d.ts +11 -0
  35. package/dist/components/ds-header.js +2 -0
  36. package/dist/components/ds-header.js.map +1 -0
  37. package/dist/components/ds-input.d.ts +11 -0
  38. package/dist/components/ds-input.js +2 -0
  39. package/dist/components/ds-input.js.map +1 -0
  40. package/dist/components/ds-loader.d.ts +11 -0
  41. package/dist/components/ds-loader.js +2 -0
  42. package/dist/components/ds-loader.js.map +1 -0
  43. package/dist/components/ds-menu.d.ts +11 -0
  44. package/dist/components/ds-menu.js +2 -0
  45. package/dist/components/ds-menu.js.map +1 -0
  46. package/dist/components/ds-modal.d.ts +11 -0
  47. package/dist/components/ds-modal.js +2 -0
  48. package/dist/components/ds-modal.js.map +1 -0
  49. package/dist/components/ds-pagination.d.ts +11 -0
  50. package/dist/components/ds-pagination.js +2 -0
  51. package/dist/components/ds-pagination.js.map +1 -0
  52. package/dist/components/ds-radio-group.d.ts +11 -0
  53. package/dist/components/ds-radio-group.js +2 -0
  54. package/dist/components/ds-radio-group.js.map +1 -0
  55. package/dist/components/ds-scrollbar.d.ts +11 -0
  56. package/dist/components/ds-scrollbar.js +2 -0
  57. package/dist/components/ds-scrollbar.js.map +1 -0
  58. package/dist/components/ds-sidebar.d.ts +11 -0
  59. package/dist/components/ds-sidebar.js +2 -0
  60. package/dist/components/ds-sidebar.js.map +1 -0
  61. package/dist/components/ds-skeleton.d.ts +11 -0
  62. package/dist/components/ds-skeleton.js +2 -0
  63. package/dist/components/ds-skeleton.js.map +1 -0
  64. package/dist/components/ds-slider.d.ts +11 -0
  65. package/dist/components/ds-slider.js +2 -0
  66. package/dist/components/ds-slider.js.map +1 -0
  67. package/dist/components/ds-surface.d.ts +11 -0
  68. package/dist/components/ds-surface.js +2 -0
  69. package/dist/components/ds-surface.js.map +1 -0
  70. package/dist/components/ds-tab-group.d.ts +11 -0
  71. package/dist/components/ds-tab-group.js +2 -0
  72. package/dist/components/ds-tab-group.js.map +1 -0
  73. package/dist/components/ds-table.d.ts +11 -0
  74. package/dist/components/ds-table.js +2 -0
  75. package/dist/components/ds-table.js.map +1 -0
  76. package/dist/components/ds-tag.d.ts +11 -0
  77. package/dist/components/ds-tag.js +2 -0
  78. package/dist/components/ds-tag.js.map +1 -0
  79. package/dist/components/ds-text.d.ts +11 -0
  80. package/dist/components/ds-text.js +2 -0
  81. package/dist/components/ds-text.js.map +1 -0
  82. package/dist/components/ds-toast-provider.d.ts +11 -0
  83. package/dist/components/ds-toast-provider.js +2 -0
  84. package/dist/components/ds-toast-provider.js.map +1 -0
  85. package/dist/components/ds-toggle.d.ts +11 -0
  86. package/dist/components/ds-toggle.js +2 -0
  87. package/dist/components/ds-toggle.js.map +1 -0
  88. package/dist/components/ds-tooltip.d.ts +11 -0
  89. package/dist/components/ds-tooltip.js +2 -0
  90. package/dist/components/ds-tooltip.js.map +1 -0
  91. package/dist/components/index.d.ts +33 -0
  92. package/dist/components/index.js +2 -0
  93. package/dist/components/index.js.map +1 -0
  94. package/dist/components/p-BcuUR5Ao.js +2 -0
  95. package/dist/components/p-BcuUR5Ao.js.map +1 -0
  96. package/dist/types/.stencil/Accordion/Accordion.d.ts +28 -0
  97. package/dist/types/.stencil/Badge/Badge.d.ts +8 -0
  98. package/dist/types/.stencil/Badge/index.d.ts +2 -0
  99. package/dist/types/.stencil/Banner/Banner.d.ts +29 -0
  100. package/dist/types/.stencil/Breadcrumb/Breadcrumb.d.ts +16 -0
  101. package/dist/types/.stencil/Button/Button.d.ts +38 -0
  102. package/dist/types/.stencil/Button/index.d.ts +2 -0
  103. package/dist/types/.stencil/Card/Card.d.ts +8 -0
  104. package/dist/types/.stencil/Checkbox/Checkbox.d.ts +13 -0
  105. package/dist/types/.stencil/Checkbox/index.d.ts +2 -0
  106. package/dist/types/.stencil/Divider/Divider.d.ts +7 -0
  107. package/dist/types/.stencil/Divider/index.d.ts +2 -0
  108. package/dist/types/.stencil/EmptyState/EmptyState.d.ts +7 -0
  109. package/dist/types/.stencil/Fade/Fade.d.ts +10 -0
  110. package/dist/types/.stencil/Fade/index.d.ts +2 -0
  111. package/dist/types/.stencil/Field/Field.d.ts +8 -0
  112. package/dist/types/.stencil/Header/Header.d.ts +7 -0
  113. package/dist/types/.stencil/Input/Input.d.ts +26 -0
  114. package/dist/types/.stencil/Input/index.d.ts +2 -0
  115. package/dist/types/.stencil/Loader/Loader.d.ts +12 -0
  116. package/dist/types/.stencil/Loader/index.d.ts +2 -0
  117. package/dist/types/.stencil/Menu/Menu.d.ts +60 -0
  118. package/dist/types/.stencil/Modal/Modal.d.ts +31 -0
  119. package/dist/types/.stencil/Pagination/Pagination.d.ts +11 -0
  120. package/dist/types/.stencil/RadioGroup/RadioGroup.d.ts +21 -0
  121. package/dist/types/.stencil/RadioGroup/index.d.ts +2 -0
  122. package/dist/types/.stencil/Scrollbar/Scrollbar.d.ts +27 -0
  123. package/dist/types/.stencil/Sidebar/Sidebar.d.ts +29 -0
  124. package/dist/types/.stencil/Skeleton/Skeleton.d.ts +16 -0
  125. package/dist/types/.stencil/Skeleton/index.d.ts +2 -0
  126. package/dist/types/.stencil/Slider/Slider.d.ts +18 -0
  127. package/dist/types/.stencil/Slider/index.d.ts +2 -0
  128. package/dist/types/.stencil/Surface/Surface.d.ts +22 -0
  129. package/dist/types/.stencil/TabGroup/TabGroup.d.ts +29 -0
  130. package/dist/types/.stencil/Table/Table.d.ts +50 -0
  131. package/dist/types/.stencil/Tag/Tag.d.ts +32 -0
  132. package/dist/types/.stencil/Tag/index.d.ts +2 -0
  133. package/dist/types/.stencil/Text/Text.d.ts +22 -0
  134. package/dist/types/.stencil/Text/index.d.ts +2 -0
  135. package/dist/types/.stencil/Toast/Toast.d.ts +15 -0
  136. package/dist/types/.stencil/Toast/toast-service.d.ts +24 -0
  137. package/dist/types/.stencil/Toggle/Toggle.d.ts +10 -0
  138. package/dist/types/.stencil/Toggle/index.d.ts +2 -0
  139. package/dist/types/.stencil/Tooltip/Tooltip.d.ts +36 -0
  140. package/dist/types/components.d.ts +2024 -0
  141. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  142. package/package.json +27 -28
  143. package/src/angular/angular-component-lib/utils.ts +65 -0
  144. package/src/angular/index.ts +35 -0
  145. package/src/angular/proxies.ts +819 -0
  146. package/dist/components/Accordion/Accordion.d.ts +0 -29
  147. package/dist/components/Accordion/Accordion.d.ts.map +0 -1
  148. package/dist/components/Accordion/index.d.ts +0 -3
  149. package/dist/components/Accordion/index.d.ts.map +0 -1
  150. package/dist/components/Badge/Badge.d.ts +0 -18
  151. package/dist/components/Badge/Badge.d.ts.map +0 -1
  152. package/dist/components/Badge/index.d.ts +0 -3
  153. package/dist/components/Badge/index.d.ts.map +0 -1
  154. package/dist/components/Banner/Banner.d.ts +0 -16
  155. package/dist/components/Banner/Banner.d.ts.map +0 -1
  156. package/dist/components/Banner/index.d.ts +0 -3
  157. package/dist/components/Banner/index.d.ts.map +0 -1
  158. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -15
  159. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +0 -1
  160. package/dist/components/Breadcrumb/index.d.ts +0 -3
  161. package/dist/components/Breadcrumb/index.d.ts.map +0 -1
  162. package/dist/components/Button/Button.d.ts +0 -85
  163. package/dist/components/Button/Button.d.ts.map +0 -1
  164. package/dist/components/Button/index.d.ts +0 -3
  165. package/dist/components/Button/index.d.ts.map +0 -1
  166. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -26
  167. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +0 -1
  168. package/dist/components/ButtonGroup/index.d.ts +0 -3
  169. package/dist/components/ButtonGroup/index.d.ts.map +0 -1
  170. package/dist/components/Card/Card.d.ts +0 -20
  171. package/dist/components/Card/Card.d.ts.map +0 -1
  172. package/dist/components/Card/index.d.ts +0 -3
  173. package/dist/components/Card/index.d.ts.map +0 -1
  174. package/dist/components/Checkbox/Checkbox.d.ts +0 -18
  175. package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
  176. package/dist/components/Checkbox/index.d.ts +0 -3
  177. package/dist/components/Checkbox/index.d.ts.map +0 -1
  178. package/dist/components/Divider/Divider.d.ts +0 -9
  179. package/dist/components/Divider/Divider.d.ts.map +0 -1
  180. package/dist/components/Divider/index.d.ts +0 -3
  181. package/dist/components/Divider/index.d.ts.map +0 -1
  182. package/dist/components/EmptyState/EmptyState.d.ts +0 -9
  183. package/dist/components/EmptyState/EmptyState.d.ts.map +0 -1
  184. package/dist/components/EmptyState/index.d.ts +0 -3
  185. package/dist/components/EmptyState/index.d.ts.map +0 -1
  186. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +0 -18
  187. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  188. package/dist/components/ErrorBoundary/index.d.ts +0 -3
  189. package/dist/components/ErrorBoundary/index.d.ts.map +0 -1
  190. package/dist/components/Fade/Fade.d.ts +0 -11
  191. package/dist/components/Fade/Fade.d.ts.map +0 -1
  192. package/dist/components/Fade/index.d.ts +0 -3
  193. package/dist/components/Fade/index.d.ts.map +0 -1
  194. package/dist/components/Field/Field.d.ts +0 -9
  195. package/dist/components/Field/Field.d.ts.map +0 -1
  196. package/dist/components/Field/index.d.ts +0 -3
  197. package/dist/components/Field/index.d.ts.map +0 -1
  198. package/dist/components/Header/Header.d.ts +0 -12
  199. package/dist/components/Header/Header.d.ts.map +0 -1
  200. package/dist/components/Header/index.d.ts +0 -3
  201. package/dist/components/Header/index.d.ts.map +0 -1
  202. package/dist/components/Input/Input.d.ts +0 -27
  203. package/dist/components/Input/Input.d.ts.map +0 -1
  204. package/dist/components/Input/index.d.ts +0 -3
  205. package/dist/components/Input/index.d.ts.map +0 -1
  206. package/dist/components/LabelWrap/LabelWrap.d.ts +0 -27
  207. package/dist/components/LabelWrap/LabelWrap.d.ts.map +0 -1
  208. package/dist/components/LabelWrap/index.d.ts +0 -2
  209. package/dist/components/LabelWrap/index.d.ts.map +0 -1
  210. package/dist/components/Loader/Loader.d.ts +0 -33
  211. package/dist/components/Loader/Loader.d.ts.map +0 -1
  212. package/dist/components/Loader/index.d.ts +0 -3
  213. package/dist/components/Loader/index.d.ts.map +0 -1
  214. package/dist/components/Menu/DestructiveMenuItem.d.ts +0 -12
  215. package/dist/components/Menu/DestructiveMenuItem.d.ts.map +0 -1
  216. package/dist/components/Menu/Menu.d.ts +0 -55
  217. package/dist/components/Menu/Menu.d.ts.map +0 -1
  218. package/dist/components/Menu/MenuItem.d.ts +0 -33
  219. package/dist/components/Menu/MenuItem.d.ts.map +0 -1
  220. package/dist/components/Menu/index.d.ts +0 -7
  221. package/dist/components/Menu/index.d.ts.map +0 -1
  222. package/dist/components/Modal/Modal.d.ts +0 -15
  223. package/dist/components/Modal/Modal.d.ts.map +0 -1
  224. package/dist/components/Modal/index.d.ts +0 -3
  225. package/dist/components/Modal/index.d.ts.map +0 -1
  226. package/dist/components/Pagination/Pagination.d.ts +0 -16
  227. package/dist/components/Pagination/Pagination.d.ts.map +0 -1
  228. package/dist/components/Pagination/index.d.ts +0 -3
  229. package/dist/components/Pagination/index.d.ts.map +0 -1
  230. package/dist/components/Radio/Radio.d.ts +0 -35
  231. package/dist/components/Radio/Radio.d.ts.map +0 -1
  232. package/dist/components/Radio/index.d.ts +0 -3
  233. package/dist/components/Radio/index.d.ts.map +0 -1
  234. package/dist/components/Scrollbar/Scrollbar.d.ts +0 -13
  235. package/dist/components/Scrollbar/Scrollbar.d.ts.map +0 -1
  236. package/dist/components/Scrollbar/index.d.ts +0 -3
  237. package/dist/components/Scrollbar/index.d.ts.map +0 -1
  238. package/dist/components/Select/Select.d.ts +0 -22
  239. package/dist/components/Select/Select.d.ts.map +0 -1
  240. package/dist/components/Select/index.d.ts +0 -3
  241. package/dist/components/Select/index.d.ts.map +0 -1
  242. package/dist/components/Sidebar/Sidebar.d.ts +0 -15
  243. package/dist/components/Sidebar/Sidebar.d.ts.map +0 -1
  244. package/dist/components/Sidebar/SidebarItem.d.ts +0 -14
  245. package/dist/components/Sidebar/SidebarItem.d.ts.map +0 -1
  246. package/dist/components/Sidebar/SidebarSection.d.ts +0 -10
  247. package/dist/components/Sidebar/SidebarSection.d.ts.map +0 -1
  248. package/dist/components/Sidebar/index.d.ts +0 -7
  249. package/dist/components/Sidebar/index.d.ts.map +0 -1
  250. package/dist/components/Skeleton/Skeleton.d.ts +0 -17
  251. package/dist/components/Skeleton/Skeleton.d.ts.map +0 -1
  252. package/dist/components/Skeleton/index.d.ts +0 -3
  253. package/dist/components/Skeleton/index.d.ts.map +0 -1
  254. package/dist/components/Slider/Slider.d.ts +0 -16
  255. package/dist/components/Slider/Slider.d.ts.map +0 -1
  256. package/dist/components/Slider/index.d.ts +0 -3
  257. package/dist/components/Slider/index.d.ts.map +0 -1
  258. package/dist/components/Surface/Surface.d.ts +0 -59
  259. package/dist/components/Surface/Surface.d.ts.map +0 -1
  260. package/dist/components/Surface/index.d.ts +0 -3
  261. package/dist/components/Surface/index.d.ts.map +0 -1
  262. package/dist/components/Tab/Tab.d.ts +0 -21
  263. package/dist/components/Tab/Tab.d.ts.map +0 -1
  264. package/dist/components/Tab/index.d.ts +0 -3
  265. package/dist/components/Tab/index.d.ts.map +0 -1
  266. package/dist/components/TabGroup/TabGroup.d.ts +0 -26
  267. package/dist/components/TabGroup/TabGroup.d.ts.map +0 -1
  268. package/dist/components/TabGroup/index.d.ts +0 -3
  269. package/dist/components/TabGroup/index.d.ts.map +0 -1
  270. package/dist/components/Table/Table.d.ts +0 -46
  271. package/dist/components/Table/Table.d.ts.map +0 -1
  272. package/dist/components/Table/index.d.ts +0 -3
  273. package/dist/components/Table/index.d.ts.map +0 -1
  274. package/dist/components/Tag/Tag.d.ts +0 -38
  275. package/dist/components/Tag/Tag.d.ts.map +0 -1
  276. package/dist/components/Tag/index.d.ts +0 -3
  277. package/dist/components/Tag/index.d.ts.map +0 -1
  278. package/dist/components/Text/Text.d.ts +0 -41
  279. package/dist/components/Text/Text.d.ts.map +0 -1
  280. package/dist/components/Text/index.d.ts +0 -3
  281. package/dist/components/Text/index.d.ts.map +0 -1
  282. package/dist/components/Toast/Toast.d.ts +0 -33
  283. package/dist/components/Toast/Toast.d.ts.map +0 -1
  284. package/dist/components/Toast/index.d.ts +0 -3
  285. package/dist/components/Toast/index.d.ts.map +0 -1
  286. package/dist/components/Toggle/Toggle.d.ts +0 -17
  287. package/dist/components/Toggle/Toggle.d.ts.map +0 -1
  288. package/dist/components/Toggle/index.d.ts +0 -3
  289. package/dist/components/Toggle/index.d.ts.map +0 -1
  290. package/dist/components/ToggleButton/ToggleButton.d.ts +0 -35
  291. package/dist/components/ToggleButton/ToggleButton.d.ts.map +0 -1
  292. package/dist/components/ToggleButton/index.d.ts +0 -3
  293. package/dist/components/ToggleButton/index.d.ts.map +0 -1
  294. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -24
  295. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +0 -1
  296. package/dist/components/ToggleButtonGroup/index.d.ts +0 -3
  297. package/dist/components/ToggleButtonGroup/index.d.ts.map +0 -1
  298. package/dist/components/Tooltip/Tooltip.d.ts +0 -17
  299. package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
  300. package/dist/components/Tooltip/index.d.ts +0 -3
  301. package/dist/components/Tooltip/index.d.ts.map +0 -1
  302. package/dist/index.css +0 -2
  303. package/dist/index.d.ts +0 -82
  304. package/dist/index.d.ts.map +0 -1
  305. package/dist/index.js +0 -2968
  306. package/dist/index.js.map +0 -1
  307. package/dist/r/accordion.json +0 -79
  308. package/dist/r/badge.json +0 -69
  309. package/dist/r/banner.json +0 -90
  310. package/dist/r/breadcrumb.json +0 -70
  311. package/dist/r/button-group.json +0 -65
  312. package/dist/r/button.json +0 -137
  313. package/dist/r/card.json +0 -82
  314. package/dist/r/checkbox.json +0 -91
  315. package/dist/r/divider.json +0 -57
  316. package/dist/r/empty-state.json +0 -69
  317. package/dist/r/error-boundary.json +0 -66
  318. package/dist/r/fade.json +0 -65
  319. package/dist/r/field.json +0 -71
  320. package/dist/r/header.json +0 -67
  321. package/dist/r/input.json +0 -77
  322. package/dist/r/loader.json +0 -54
  323. package/dist/r/menu.json +0 -130
  324. package/dist/r/modal.json +0 -93
  325. package/dist/r/pagination.json +0 -80
  326. package/dist/r/radio.json +0 -85
  327. package/dist/r/registry.json +0 -1600
  328. package/dist/r/scrollbar.json +0 -68
  329. package/dist/r/select.json +0 -93
  330. package/dist/r/sidebar.json +0 -105
  331. package/dist/r/skeleton.json +0 -72
  332. package/dist/r/slider.json +0 -87
  333. package/dist/r/surface.json +0 -97
  334. package/dist/r/tab-group.json +0 -72
  335. package/dist/r/tab.json +0 -71
  336. package/dist/r/table.json +0 -110
  337. package/dist/r/tag.json +0 -110
  338. package/dist/r/text.json +0 -94
  339. package/dist/r/toast.json +0 -77
  340. package/dist/r/toggle-button-group.json +0 -65
  341. package/dist/r/toggle-button.json +0 -94
  342. package/dist/r/toggle.json +0 -65
  343. package/dist/r/tooltip.json +0 -86
  344. package/dist/types/icons.d.ts +0 -14
  345. package/dist/types/icons.d.ts.map +0 -1
  346. package/dist/types/index.d.ts +0 -2
  347. package/dist/types/index.d.ts.map +0 -1
  348. package/dist/utils/cn.d.ts +0 -5
  349. package/dist/utils/cn.d.ts.map +0 -1
  350. package/dist/utils/css-tokens.d.ts +0 -11
  351. package/dist/utils/css-tokens.d.ts.map +0 -1
  352. package/src/components/Accordion/Accordion.module.css +0 -66
  353. package/src/components/Accordion/Accordion.stories.tsx +0 -95
  354. package/src/components/Accordion/Accordion.tsx +0 -131
  355. package/src/components/Accordion/index.ts +0 -2
  356. package/src/components/Badge/Badge.module.css +0 -6
  357. package/src/components/Badge/Badge.stories.tsx +0 -131
  358. package/src/components/Badge/Badge.tsx +0 -40
  359. package/src/components/Badge/index.ts +0 -2
  360. package/src/components/Banner/Banner.module.css +0 -105
  361. package/src/components/Banner/Banner.stories.tsx +0 -81
  362. package/src/components/Banner/Banner.tsx +0 -139
  363. package/src/components/Banner/index.ts +0 -2
  364. package/src/components/Breadcrumb/Breadcrumb.module.css +0 -46
  365. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +0 -72
  366. package/src/components/Breadcrumb/Breadcrumb.tsx +0 -68
  367. package/src/components/Breadcrumb/index.ts +0 -2
  368. package/src/components/Button/Button.mdx +0 -143
  369. package/src/components/Button/Button.module.css +0 -343
  370. package/src/components/Button/Button.stories.tsx +0 -575
  371. package/src/components/Button/Button.tsx +0 -232
  372. package/src/components/Button/index.ts +0 -10
  373. package/src/components/ButtonGroup/ButtonGroup.module.css +0 -157
  374. package/src/components/ButtonGroup/ButtonGroup.stories.tsx +0 -384
  375. package/src/components/ButtonGroup/ButtonGroup.tsx +0 -122
  376. package/src/components/ButtonGroup/index.ts +0 -2
  377. package/src/components/Card/Card.module.css +0 -36
  378. package/src/components/Card/Card.stories.tsx +0 -78
  379. package/src/components/Card/Card.tsx +0 -53
  380. package/src/components/Card/index.ts +0 -2
  381. package/src/components/Checkbox/Checkbox.module.css +0 -47
  382. package/src/components/Checkbox/Checkbox.stories.tsx +0 -129
  383. package/src/components/Checkbox/Checkbox.tsx +0 -71
  384. package/src/components/Checkbox/index.ts +0 -2
  385. package/src/components/Divider/Divider.module.css +0 -19
  386. package/src/components/Divider/Divider.stories.tsx +0 -55
  387. package/src/components/Divider/Divider.tsx +0 -28
  388. package/src/components/Divider/index.ts +0 -2
  389. package/src/components/EmptyState/EmptyState.module.css +0 -8
  390. package/src/components/EmptyState/EmptyState.stories.tsx +0 -53
  391. package/src/components/EmptyState/EmptyState.tsx +0 -31
  392. package/src/components/EmptyState/index.ts +0 -2
  393. package/src/components/ErrorBoundary/ErrorBoundary.module.css +0 -18
  394. package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +0 -38
  395. package/src/components/ErrorBoundary/ErrorBoundary.tsx +0 -50
  396. package/src/components/ErrorBoundary/index.ts +0 -2
  397. package/src/components/Fade/Fade.module.css +0 -31
  398. package/src/components/Fade/Fade.stories.tsx +0 -35
  399. package/src/components/Fade/Fade.tsx +0 -33
  400. package/src/components/Fade/index.ts +0 -2
  401. package/src/components/Field/Field.module.css +0 -5
  402. package/src/components/Field/Field.stories.tsx +0 -111
  403. package/src/components/Field/Field.tsx +0 -35
  404. package/src/components/Field/index.ts +0 -2
  405. package/src/components/Header/Header.module.css +0 -33
  406. package/src/components/Header/Header.stories.tsx +0 -52
  407. package/src/components/Header/Header.tsx +0 -42
  408. package/src/components/Header/index.ts +0 -2
  409. package/src/components/Input/Input.module.css +0 -92
  410. package/src/components/Input/Input.stories.tsx +0 -135
  411. package/src/components/Input/Input.tsx +0 -117
  412. package/src/components/Input/index.ts +0 -2
  413. package/src/components/LabelWrap/LabelWrap.module.css +0 -34
  414. package/src/components/LabelWrap/LabelWrap.tsx +0 -32
  415. package/src/components/LabelWrap/index.ts +0 -1
  416. package/src/components/Loader/Loader.module.css +0 -26
  417. package/src/components/Loader/Loader.stories.tsx +0 -53
  418. package/src/components/Loader/Loader.tsx +0 -65
  419. package/src/components/Loader/index.ts +0 -2
  420. package/src/components/Menu/DestructiveMenuItem.module.css +0 -57
  421. package/src/components/Menu/DestructiveMenuItem.tsx +0 -117
  422. package/src/components/Menu/Menu.module.css +0 -49
  423. package/src/components/Menu/Menu.stories.tsx +0 -129
  424. package/src/components/Menu/Menu.tsx +0 -418
  425. package/src/components/Menu/MenuItem.module.css +0 -86
  426. package/src/components/Menu/MenuItem.tsx +0 -144
  427. package/src/components/Menu/index.ts +0 -6
  428. package/src/components/Modal/Modal.module.css +0 -67
  429. package/src/components/Modal/Modal.stories.tsx +0 -71
  430. package/src/components/Modal/Modal.tsx +0 -199
  431. package/src/components/Modal/index.ts +0 -2
  432. package/src/components/Pagination/Pagination.module.css +0 -64
  433. package/src/components/Pagination/Pagination.stories.tsx +0 -51
  434. package/src/components/Pagination/Pagination.tsx +0 -103
  435. package/src/components/Pagination/index.ts +0 -2
  436. package/src/components/Radio/Radio.module.css +0 -61
  437. package/src/components/Radio/Radio.stories.tsx +0 -101
  438. package/src/components/Radio/Radio.tsx +0 -196
  439. package/src/components/Radio/index.ts +0 -2
  440. package/src/components/Scrollbar/Scrollbar.module.css +0 -86
  441. package/src/components/Scrollbar/Scrollbar.stories.tsx +0 -46
  442. package/src/components/Scrollbar/Scrollbar.tsx +0 -201
  443. package/src/components/Scrollbar/index.ts +0 -2
  444. package/src/components/Select/Select.module.css +0 -31
  445. package/src/components/Select/Select.stories.tsx +0 -59
  446. package/src/components/Select/Select.tsx +0 -222
  447. package/src/components/Select/index.ts +0 -2
  448. package/src/components/Sidebar/Sidebar.module.css +0 -168
  449. package/src/components/Sidebar/Sidebar.stories.tsx +0 -125
  450. package/src/components/Sidebar/Sidebar.tsx +0 -227
  451. package/src/components/Sidebar/SidebarItem.tsx +0 -57
  452. package/src/components/Sidebar/SidebarSection.tsx +0 -42
  453. package/src/components/Sidebar/index.ts +0 -6
  454. package/src/components/Skeleton/Skeleton.module.css +0 -53
  455. package/src/components/Skeleton/Skeleton.stories.tsx +0 -89
  456. package/src/components/Skeleton/Skeleton.tsx +0 -66
  457. package/src/components/Skeleton/index.ts +0 -2
  458. package/src/components/Slider/Slider.module.css +0 -66
  459. package/src/components/Slider/Slider.stories.tsx +0 -145
  460. package/src/components/Slider/Slider.tsx +0 -74
  461. package/src/components/Slider/index.ts +0 -2
  462. package/src/components/Surface/Surface.module.css +0 -222
  463. package/src/components/Surface/Surface.stories.tsx +0 -213
  464. package/src/components/Surface/Surface.tsx +0 -219
  465. package/src/components/Surface/index.ts +0 -12
  466. package/src/components/Tab/Tab.module.css +0 -66
  467. package/src/components/Tab/Tab.stories.tsx +0 -103
  468. package/src/components/Tab/Tab.tsx +0 -71
  469. package/src/components/Tab/index.ts +0 -2
  470. package/src/components/TabGroup/TabGroup.module.css +0 -26
  471. package/src/components/TabGroup/TabGroup.stories.tsx +0 -91
  472. package/src/components/TabGroup/TabGroup.tsx +0 -150
  473. package/src/components/TabGroup/index.ts +0 -2
  474. package/src/components/Table/Table.module.css +0 -140
  475. package/src/components/Table/Table.stories.tsx +0 -111
  476. package/src/components/Table/Table.tsx +0 -255
  477. package/src/components/Table/index.ts +0 -11
  478. package/src/components/Tag/Tag.module.css +0 -270
  479. package/src/components/Tag/Tag.stories.tsx +0 -399
  480. package/src/components/Tag/Tag.tsx +0 -165
  481. package/src/components/Tag/index.ts +0 -2
  482. package/src/components/Text/Text.module.css +0 -166
  483. package/src/components/Text/Text.stories.tsx +0 -212
  484. package/src/components/Text/Text.tsx +0 -181
  485. package/src/components/Text/index.ts +0 -13
  486. package/src/components/Toast/Toast.module.css +0 -91
  487. package/src/components/Toast/Toast.stories.tsx +0 -66
  488. package/src/components/Toast/Toast.tsx +0 -218
  489. package/src/components/Toast/index.ts +0 -8
  490. package/src/components/Toggle/Toggle.module.css +0 -87
  491. package/src/components/Toggle/Toggle.stories.tsx +0 -85
  492. package/src/components/Toggle/Toggle.tsx +0 -53
  493. package/src/components/Toggle/index.ts +0 -2
  494. package/src/components/ToggleButton/ToggleButton.module.css +0 -172
  495. package/src/components/ToggleButton/ToggleButton.stories.tsx +0 -299
  496. package/src/components/ToggleButton/ToggleButton.tsx +0 -118
  497. package/src/components/ToggleButton/index.ts +0 -2
  498. package/src/components/ToggleButtonGroup/ToggleButtonGroup.module.css +0 -163
  499. package/src/components/ToggleButtonGroup/ToggleButtonGroup.stories.tsx +0 -341
  500. package/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx +0 -111
  501. package/src/components/ToggleButtonGroup/index.ts +0 -2
  502. package/src/components/Tooltip/Tooltip.module.css +0 -45
  503. package/src/components/Tooltip/Tooltip.stories.tsx +0 -46
  504. package/src/components/Tooltip/Tooltip.tsx +0 -260
  505. package/src/components/Tooltip/index.ts +0 -2
  506. package/src/css-modules.d.ts +0 -4
  507. package/src/docs/ColorUsage.mdx +0 -195
  508. package/src/docs/ElevationUsage.mdx +0 -95
  509. package/src/docs/Introduction.mdx +0 -97
  510. package/src/docs/OpticalSizing.mdx +0 -178
  511. package/src/docs/TypographyUsage.mdx +0 -121
  512. package/src/index.ts +0 -154
  513. package/src/stories/Colors.stories.tsx +0 -528
  514. package/src/stories/Dimensions.stories.tsx +0 -200
  515. package/src/stories/Effects.stories.tsx +0 -231
  516. package/src/stories/Icons.stories.tsx +0 -159
  517. package/src/stories/Typography.stories.tsx +0 -157
  518. package/src/types/icons.ts +0 -15
  519. package/src/types/index.ts +0 -1
  520. package/src/utils/cn.ts +0 -6
  521. package/src/utils/css-tokens.ts +0 -22
package/dist/index.js DELETED
@@ -1,2968 +0,0 @@
1
- import e, { Component as t, cloneElement as n, forwardRef as r, isValidElement as i, useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
2
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
3
- import { ChevronDown as g, Cross as _ } from "@ds-mo/icons";
4
- import v, { createPortal as y } from "react-dom";
5
- var b = {
6
- text: "_text_12t2m_1",
7
- truncate1Line: "_truncate1Line_12t2m_9",
8
- truncate2Lines: "_truncate2Lines_12t2m_15",
9
- truncate3Lines: "_truncate3Lines_12t2m_24",
10
- truncate4Lines: "_truncate4Lines_12t2m_33",
11
- truncate5Lines: "_truncate5Lines_12t2m_42",
12
- noTruncation: "_noTruncation_12t2m_51",
13
- wrapNowrap: "_wrapNowrap_12t2m_56",
14
- wrapBalance: "_wrapBalance_12t2m_64",
15
- wrapPretty: "_wrapPretty_12t2m_68",
16
- colorPrimary: "_colorPrimary_12t2m_76",
17
- colorSecondary: "_colorSecondary_12t2m_80",
18
- colorTertiary: "_colorTertiary_12t2m_84",
19
- colorBrand: "_colorBrand_12t2m_88",
20
- colorNegative: "_colorNegative_12t2m_92",
21
- colorPositive: "_colorPositive_12t2m_96",
22
- colorWarning: "_colorWarning_12t2m_100",
23
- colorCaution: "_colorCaution_12t2m_104",
24
- colorAi: "_colorAi_12t2m_108",
25
- colorOnStrong: "_colorOnStrong_12t2m_112",
26
- colorOnBold: "_colorOnBold_12t2m_116",
27
- colorInherit: "_colorInherit_12t2m_120",
28
- decorationNone: "_decorationNone_12t2m_128",
29
- decorationUnderline: "_decorationUnderline_12t2m_132",
30
- decorationDottedUnderline: "_decorationDottedUnderline_12t2m_138",
31
- italic: "_italic_12t2m_148",
32
- alignLeft: "_alignLeft_12t2m_156",
33
- alignCenter: "_alignCenter_12t2m_160",
34
- alignRight: "_alignRight_12t2m_164"
35
- }, x = {
36
- primary: b.colorPrimary,
37
- secondary: b.colorSecondary,
38
- tertiary: b.colorTertiary,
39
- brand: b.colorBrand,
40
- negative: b.colorNegative,
41
- positive: b.colorPositive,
42
- warning: b.colorWarning,
43
- caution: b.colorCaution,
44
- ai: b.colorAi,
45
- "on-strong": b.colorOnStrong,
46
- "on-bold": b.colorOnBold,
47
- inherit: b.colorInherit
48
- }, S = {
49
- none: b.decorationNone,
50
- underline: b.decorationUnderline,
51
- "dotted-underline": b.decorationDottedUnderline
52
- }, C = {
53
- left: b.alignLeft,
54
- center: b.alignCenter,
55
- right: b.alignRight
56
- }, w = {
57
- 1: b.truncate1Line,
58
- 2: b.truncate2Lines,
59
- 3: b.truncate3Lines,
60
- 4: b.truncate4Lines,
61
- 5: b.truncate5Lines,
62
- none: b.noTruncation
63
- }, T = (e) => e.startsWith("var(--"), E = r(({ variant: e = "text-body-medium", children: t, color: n, decoration: r, italic: i, align: a, lineTruncation: o = "none", wrap: s, as: c = "p", id: l, htmlFor: u, className: d = "", style: f }, p) => {
64
- let h = s === "nowrap" ? b.wrapNowrap : s === "balance" ? b.wrapBalance : s === "pretty" ? b.wrapPretty : "", g = s === "nowrap" ? "" : w[o], _ = [
65
- e,
66
- b.text,
67
- h,
68
- g,
69
- n && !T(n) ? x[n] : "",
70
- r ? S[r] : "",
71
- i ? b.italic : "",
72
- a ? C[a] : "",
73
- d
74
- ].filter(Boolean).join(" "), v = {
75
- ...f,
76
- ...n && T(n) ? { color: n } : {}
77
- };
78
- return /* @__PURE__ */ m(c, {
79
- ref: p,
80
- className: _,
81
- style: Object.keys(v).length > 0 ? v : void 0,
82
- ...l ? { id: l } : {},
83
- ...c === "label" && u ? { htmlFor: u } : {},
84
- children: t
85
- });
86
- });
87
- E.displayName = "Text";
88
- var D = {
89
- surface: "_surface_65ypw_7",
90
- bgPrimary: "_bgPrimary_65ypw_28",
91
- bgSecondary: "_bgSecondary_65ypw_32",
92
- bgTransparent: "_bgTransparent_65ypw_36",
93
- bgTranslucent: "_bgTranslucent_65ypw_40",
94
- intentBrandFaint: "_intentBrandFaint_65ypw_51",
95
- intentBrandMedium: "_intentBrandMedium_65ypw_52",
96
- intentBrandBold: "_intentBrandBold_65ypw_53",
97
- intentBrandStrong: "_intentBrandStrong_65ypw_54",
98
- intentPositiveFaint: "_intentPositiveFaint_65ypw_57",
99
- intentPositiveMedium: "_intentPositiveMedium_65ypw_58",
100
- intentPositiveBold: "_intentPositiveBold_65ypw_59",
101
- intentPositiveStrong: "_intentPositiveStrong_65ypw_60",
102
- intentNegativeFaint: "_intentNegativeFaint_65ypw_63",
103
- intentNegativeMedium: "_intentNegativeMedium_65ypw_64",
104
- intentNegativeBold: "_intentNegativeBold_65ypw_65",
105
- intentNegativeStrong: "_intentNegativeStrong_65ypw_66",
106
- intentWarningFaint: "_intentWarningFaint_65ypw_69",
107
- intentWarningMedium: "_intentWarningMedium_65ypw_70",
108
- intentWarningBold: "_intentWarningBold_65ypw_71",
109
- intentWarningStrong: "_intentWarningStrong_65ypw_72",
110
- intentCautionFaint: "_intentCautionFaint_65ypw_75",
111
- intentCautionMedium: "_intentCautionMedium_65ypw_76",
112
- intentCautionBold: "_intentCautionBold_65ypw_77",
113
- intentCautionStrong: "_intentCautionStrong_65ypw_78",
114
- intentAiFaint: "_intentAiFaint_65ypw_81",
115
- intentAiMedium: "_intentAiMedium_65ypw_82",
116
- intentAiBold: "_intentAiBold_65ypw_83",
117
- intentAiStrong: "_intentAiStrong_65ypw_84",
118
- intentNeutralFaint: "_intentNeutralFaint_65ypw_87",
119
- intentNeutralMedium: "_intentNeutralMedium_65ypw_88",
120
- intentNeutralBold: "_intentNeutralBold_65ypw_89",
121
- intentNeutralStrong: "_intentNeutralStrong_65ypw_90",
122
- intentWalkthroughFaint: "_intentWalkthroughFaint_65ypw_93",
123
- intentWalkthroughMedium: "_intentWalkthroughMedium_65ypw_94",
124
- intentWalkthroughBold: "_intentWalkthroughBold_65ypw_95",
125
- intentWalkthroughStrong: "_intentWalkthroughStrong_65ypw_96",
126
- intentGuideFaint: "_intentGuideFaint_65ypw_99",
127
- intentGuideMedium: "_intentGuideMedium_65ypw_100",
128
- intentGuideBold: "_intentGuideBold_65ypw_101",
129
- intentGuideStrong: "_intentGuideStrong_65ypw_102",
130
- elevationNone: "_elevationNone_65ypw_108",
131
- elevationDepressed: "_elevationDepressed_65ypw_110",
132
- elevationDepressedMd: "_elevationDepressedMd_65ypw_114",
133
- elevationFlat: "_elevationFlat_65ypw_118",
134
- elevationElevated: "_elevationElevated_65ypw_122",
135
- elevationFloating: "_elevationFloating_65ypw_126",
136
- elevationOverlayTop: "_elevationOverlayTop_65ypw_130",
137
- elevationOverlayRight: "_elevationOverlayRight_65ypw_134",
138
- elevationOverlayBottom: "_elevationOverlayBottom_65ypw_138",
139
- elevationOverlayLeft: "_elevationOverlayLeft_65ypw_142",
140
- edgeTop: "_edgeTop_65ypw_150",
141
- edgeRight: "_edgeRight_65ypw_151",
142
- edgeBottom: "_edgeBottom_65ypw_152",
143
- edgeLeft: "_edgeLeft_65ypw_153",
144
- radiusNone: "_radiusNone_65ypw_159",
145
- radiusXs: "_radiusXs_65ypw_160",
146
- radiusSm: "_radiusSm_65ypw_161",
147
- radiusMd: "_radiusMd_65ypw_162",
148
- radiusLg: "_radiusLg_65ypw_163",
149
- radiusXl: "_radiusXl_65ypw_164",
150
- radius2xl: "_radius2xl_65ypw_165",
151
- radiusFull: "_radiusFull_65ypw_166",
152
- interactive: "_interactive_65ypw_172",
153
- selected: "_selected_65ypw_199",
154
- inactive: "_inactive_65ypw_218"
155
- }, O = {
156
- primary: D.bgPrimary,
157
- secondary: D.bgSecondary,
158
- transparent: D.bgTransparent,
159
- translucent: D.bgTranslucent
160
- }, k = {
161
- none: D.elevationNone,
162
- depressed: D.elevationDepressed,
163
- "depressed-md": D.elevationDepressedMd,
164
- flat: D.elevationFlat,
165
- elevated: D.elevationElevated,
166
- floating: D.elevationFloating,
167
- overlayTop: D.elevationOverlayTop,
168
- overlayRight: D.elevationOverlayRight,
169
- overlayBottom: D.elevationOverlayBottom,
170
- overlayLeft: D.elevationOverlayLeft
171
- }, ee = {
172
- top: D.edgeTop,
173
- right: D.edgeRight,
174
- bottom: D.edgeBottom,
175
- left: D.edgeLeft
176
- }, A = {
177
- none: D.radiusNone,
178
- xs: D.radiusXs,
179
- sm: D.radiusSm,
180
- md: D.radiusMd,
181
- lg: D.radiusLg,
182
- xl: D.radiusXl,
183
- "2xl": D.radius2xl,
184
- full: D.radiusFull
185
- }, j = (e, t) => D[`intent${e.charAt(0).toUpperCase() + e.slice(1)}${t.charAt(0).toUpperCase() + t.slice(1)}`] || "", M = (e) => e in A, N = r(({ children: e, background: t = "transparent", intent: n, contrast: r = "faint", elevation: i = "none", edge: a, radius: o, interactive: s = !1, selected: c = !1, inactive: l = !1, as: u = "div", className: d = "", style: f, type: p, ...h }, g) => {
186
- let _ = [
187
- D.surface,
188
- n ? j(n, r) : O[t],
189
- k[i],
190
- ...a && i === "none" ? Array.isArray(a) ? a.map((e) => ee[e]) : [ee[a]] : [],
191
- o && M(o) ? A[o] : "",
192
- s ? D.interactive : "",
193
- c ? D.selected : "",
194
- l ? D.inactive : "",
195
- d
196
- ].filter(Boolean).join(" "), v = {
197
- ...f,
198
- ...o && !M(o) ? { borderRadius: o } : {}
199
- };
200
- return /* @__PURE__ */ m(u, {
201
- ref: g,
202
- className: _,
203
- style: o && !M(o) || f && Object.keys(f).length > 0 ? v : void 0,
204
- disabled: u === "button" ? l : void 0,
205
- type: u === "button" ? p || "button" : void 0,
206
- ...h,
207
- children: e
208
- });
209
- });
210
- N.displayName = "Surface";
211
- var P = {
212
- card: "_card_1idsz_6",
213
- elevationFlat: "_elevationFlat_1idsz_13",
214
- elevationElevated: "_elevationElevated_1idsz_14",
215
- elevationFloating: "_elevationFloating_1idsz_15",
216
- radiusSm: "_radiusSm_1idsz_18",
217
- radiusMd: "_radiusMd_1idsz_19",
218
- radiusLg: "_radiusLg_1idsz_20",
219
- radiusXl: "_radiusXl_1idsz_21",
220
- header: "_header_1idsz_24",
221
- body: "_body_1idsz_29",
222
- footer: "_footer_1idsz_33"
223
- };
224
- //#endregion
225
- //#region src/utils/cn.ts
226
- function F(...e) {
227
- return e.filter(Boolean).join(" ");
228
- }
229
- //#endregion
230
- //#region src/components/Card/Card.tsx
231
- var I = {
232
- flat: P.elevationFlat,
233
- elevated: P.elevationElevated,
234
- floating: P.elevationFloating
235
- }, L = {
236
- sm: P.radiusSm,
237
- md: P.radiusMd,
238
- lg: P.radiusLg,
239
- xl: P.radiusXl
240
- }, R = r(({ children: e, header: t, footer: n, elevation: r = "elevated", radius: i = "lg", className: a, style: o }, s) => /* @__PURE__ */ h("div", {
241
- ref: s,
242
- className: F(P.card, I[r], L[i], a),
243
- style: o,
244
- children: [
245
- t && /* @__PURE__ */ m("div", {
246
- className: P.header,
247
- children: t
248
- }),
249
- /* @__PURE__ */ m("div", {
250
- className: P.body,
251
- children: e
252
- }),
253
- n && /* @__PURE__ */ m("div", {
254
- className: P.footer,
255
- children: n
256
- })
257
- ]
258
- }));
259
- R.displayName = "Card";
260
- var z = {
261
- labelWrap: "_labelWrap_1t38o_8",
262
- sizeSm: "_sizeSm_1t38o_16",
263
- sizeXs: "_sizeXs_1t38o_19",
264
- truncate: "_truncate_1t38o_22"
265
- }, te = ({ children: e, size: t = "md", truncate: n = !1, className: r }) => /* @__PURE__ */ m("span", {
266
- className: F(z.labelWrap, t === "sm" && z.sizeSm, t === "xs" && z.sizeXs, n && z.truncate, r),
267
- children: e
268
- });
269
- te.displayName = "LabelWrap";
270
- var B = {
271
- loader: "_loader_ebm28_1",
272
- spin: "_spin_ebm28_1",
273
- status: "_status_ebm28_6",
274
- visuallyHidden: "_visuallyHidden_ebm28_11"
275
- }, ne = ({ size: e = 20, className: t, label: n }) => {
276
- let r = /* @__PURE__ */ m("svg", {
277
- width: e,
278
- height: e,
279
- viewBox: "0 0 16 16",
280
- fill: "none",
281
- className: `${B.loader}${t ? ` ${t}` : ""}`,
282
- "aria-hidden": "true",
283
- children: /* @__PURE__ */ m("circle", {
284
- cx: "8",
285
- cy: "8",
286
- r: "5",
287
- stroke: "currentColor",
288
- strokeWidth: "1",
289
- strokeLinecap: "round",
290
- strokeDasharray: "23.6 7.9"
291
- })
292
- });
293
- return n === void 0 ? r : /* @__PURE__ */ h("span", {
294
- role: "status",
295
- "aria-live": "polite",
296
- className: B.status,
297
- children: [r, /* @__PURE__ */ m("span", {
298
- className: B.visuallyHidden,
299
- children: n
300
- })]
301
- });
302
- };
303
- ne.displayName = "Loader";
304
- var V = {
305
- button: "_button_1vroe_6",
306
- inactive: "_inactive_1vroe_35",
307
- onMedium: "_onMedium_1vroe_50",
308
- onBold: "_onBold_1vroe_56",
309
- onStrong: "_onStrong_1vroe_62",
310
- onAlwaysDark: "_onAlwaysDark_1vroe_68",
311
- primary: "_primary_1vroe_79",
312
- intentNone: "_intentNone_1vroe_84",
313
- intentBrand: "_intentBrand_1vroe_102",
314
- intentNeutral: "_intentNeutral_1vroe_103",
315
- intentPositive: "_intentPositive_1vroe_104",
316
- intentNegative: "_intentNegative_1vroe_105",
317
- intentWarning: "_intentWarning_1vroe_106",
318
- intentCaution: "_intentCaution_1vroe_107",
319
- intentAi: "_intentAi_1vroe_108",
320
- contrastMedium: "_contrastMedium_1vroe_112",
321
- contrastStrong: "_contrastStrong_1vroe_126",
322
- contrastFaint: "_contrastFaint_1vroe_140",
323
- secondary: "_secondary_1vroe_158",
324
- elevationFlat: "_elevationFlat_1vroe_224",
325
- elevationElevated: "_elevationElevated_1vroe_228",
326
- elevationFloating: "_elevationFloating_1vroe_235",
327
- elevationNone: "_elevationNone_1vroe_248",
328
- iconOnly: "_iconOnly_1vroe_275",
329
- labelOnly: "_labelOnly_1vroe_276",
330
- iconAndLabel: "_iconAndLabel_1vroe_277",
331
- dropdown: "_dropdown_1vroe_278",
332
- sizeSM: "_sizeSM_1vroe_284",
333
- sizeXS: "_sizeXS_1vroe_289",
334
- sizeLG: "_sizeLG_1vroe_293",
335
- rounded: "_rounded_1vroe_302",
336
- badge: "_badge_1vroe_324",
337
- fullWidth: "_fullWidth_1vroe_340"
338
- }, re = {
339
- xs: 12,
340
- sm: 16,
341
- md: 20,
342
- lg: 24
343
- }, H = {
344
- xs: "text-caption-emphasis",
345
- sm: "text-body-small-emphasis",
346
- md: "text-body-medium-emphasis",
347
- lg: "text-body-large-emphasis"
348
- }, ie = r((e, t) => {
349
- let { as: n, variant: r = "primary", label: i, icon: a, intent: o = "brand", size: s = "md", rounded: c = !1, fullWidth: l = !1, width: u, contrast: d = "bold", background: f, dropdown: p = !1, badgeCount: _, elevation: v, loading: y = !1, onClick: b, onMouseEnter: x, onMouseLeave: S, className: C, inactive: w = !1, type: T = "button", id: D, "aria-label": O, "aria-labelledby": k, href: ee, target: A, rel: j } = e, M = n ?? "button", N = !n || n === "button", P = !N && n !== "a", I = !w && !y, L = !!a, R = !!i, z = L || y, B = z && !R, ie = R && !z, U = z && R, W = re[s], ae = H[s], oe = v ?? (r === "primary" ? "none" : "flat"), G = oe.charAt(0).toUpperCase() + oe.slice(1), K = F(V.button, V[r], V[`intent${o.charAt(0).toUpperCase() + o.slice(1)}`], s !== "md" && V[`size${s.toUpperCase()}`], c && V.rounded, (w || y) && V.inactive, B && V.iconOnly, ie && V.labelOnly, U && V.iconAndLabel, p && V.dropdown, r === "primary" && o !== "none" && d !== "bold" && V[`contrast${d.charAt(0).toUpperCase() + d.slice(1)}`], V[`elevation${G}`], f && f !== "faint" && V[f === "always-dark" ? "onAlwaysDark" : `on${f.charAt(0).toUpperCase() + f.slice(1)}`], l && V.fullWidth, C);
350
- B && !O && !k && console.warn("[@ds-mo/ui Button] Icon-only Button is missing an accessible name. Provide `label`, `aria-label`, or `aria-labelledby`.");
351
- let q = {};
352
- return N && (q.type = T, q.disabled = w || y), ee && (q.href = ee), A && (q.target = A), j && (q.rel = j), P && (q.role = "button", q.tabIndex = I ? 0 : -1, I && (q.onKeyDown = (e) => {
353
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
354
- })), /* @__PURE__ */ h(M, {
355
- ref: t,
356
- id: D,
357
- className: K,
358
- style: u ? { width: u } : void 0,
359
- onClick: I ? b : void 0,
360
- onMouseEnter: I ? x : void 0,
361
- onMouseLeave: I ? S : void 0,
362
- "aria-label": O,
363
- "aria-labelledby": k,
364
- "aria-disabled": w || y || void 0,
365
- "aria-busy": y || void 0,
366
- ...q,
367
- children: [
368
- y ? /* @__PURE__ */ m(ne, { size: W }) : a && /* @__PURE__ */ m(a, { size: W }),
369
- i && /* @__PURE__ */ m(te, {
370
- truncate: l,
371
- children: /* @__PURE__ */ m(E, {
372
- variant: ae,
373
- as: "span",
374
- color: "inherit",
375
- children: i
376
- })
377
- }),
378
- p && /* @__PURE__ */ m(g, { size: W }),
379
- _ != null && _ > 0 && /* @__PURE__ */ m("span", {
380
- className: V.badge,
381
- children: _ > 9 ? "+" : _
382
- })
383
- ]
384
- });
385
- });
386
- ie.displayName = "Button";
387
- var U = {
388
- toggleButton: "_toggleButton_ywix4_11",
389
- inactive: "_inactive_ywix4_38",
390
- onMedium: "_onMedium_ywix4_51",
391
- onBold: "_onBold_ywix4_57",
392
- onStrong: "_onStrong_ywix4_63",
393
- onAlwaysDark: "_onAlwaysDark_ywix4_69",
394
- elevationElevated: "_elevationElevated_ywix4_81",
395
- elevationFlat: "_elevationFlat_ywix4_91",
396
- elevationNone: "_elevationNone_ywix4_98",
397
- elevationFloating: "_elevationFloating_ywix4_104",
398
- pressed: "_pressed_ywix4_129",
399
- iconOnly: "_iconOnly_ywix4_138",
400
- labelOnly: "_labelOnly_ywix4_139",
401
- iconAndLabel: "_iconAndLabel_ywix4_140",
402
- sizeSM: "_sizeSM_ywix4_146",
403
- sizeXS: "_sizeXS_ywix4_151",
404
- rounded: "_rounded_ywix4_159"
405
- }, W = {
406
- md: 20,
407
- sm: 16,
408
- xs: 12
409
- }, ae = {
410
- md: "text-body-medium-emphasis",
411
- sm: "text-body-small-emphasis",
412
- xs: "text-caption-emphasis"
413
- }, oe = r(({ elevation: e = "elevated", label: t, icon: n, size: r = "md", rounded: i = !1, background: a, pressed: o, onPressedChange: s, inactive: c = !1, className: l, id: u, "aria-label": d }, f) => {
414
- let p = !!n, g = !!t, _ = p && !g, v = g && !p, y = p && g, b = W[r], x = ae[r], S = e.charAt(0).toUpperCase() + e.slice(1);
415
- return /* @__PURE__ */ h("button", {
416
- ref: f,
417
- id: u,
418
- className: F(U.toggleButton, U[`elevation${S}`], r !== "md" && U[`size${r.toUpperCase()}`], i && U.rounded, c && U.inactive, _ && U.iconOnly, v && U.labelOnly, y && U.iconAndLabel, a && a !== "faint" && U[a === "always-dark" ? "onAlwaysDark" : `on${a.charAt(0).toUpperCase() + a.slice(1)}`], o && U.pressed, l),
419
- onClick: c ? void 0 : () => s(!o),
420
- type: "button",
421
- disabled: c,
422
- "aria-label": d || t || "toggle",
423
- "aria-pressed": o,
424
- children: [n && /* @__PURE__ */ m(n, { size: b }), t && /* @__PURE__ */ m(te, { children: /* @__PURE__ */ m(E, {
425
- variant: x,
426
- as: "span",
427
- color: "inherit",
428
- children: t
429
- }) })]
430
- });
431
- });
432
- oe.displayName = "ToggleButton";
433
- var G = {
434
- group: "_group_1u9mw_5",
435
- groupElevated: "_groupElevated_1u9mw_27",
436
- groupFlat: "_groupFlat_1u9mw_31",
437
- groupFloating: "_groupFloating_1u9mw_33",
438
- groupRounded: "_groupRounded_1u9mw_37",
439
- item: "_item_1u9mw_23",
440
- divider: "_divider_1u9mw_64",
441
- dividerGhost: "_dividerGhost_1u9mw_75",
442
- dividerGhostXS: "_dividerGhostXS_1u9mw_76",
443
- dividerGhostSM: "_dividerGhostSM_1u9mw_77",
444
- dividerGhostLG: "_dividerGhostLG_1u9mw_78",
445
- dividerBold: "_dividerBold_1u9mw_81",
446
- dividerMedium: "_dividerMedium_1u9mw_82",
447
- dividerStrong: "_dividerStrong_1u9mw_83",
448
- itemShort: "_itemShort_1u9mw_100",
449
- first: "_first_1u9mw_94",
450
- last: "_last_1u9mw_94",
451
- middle: "_middle_1u9mw_95",
452
- roundedFirstMD: "_roundedFirstMD_1u9mw_145",
453
- roundedLastMD: "_roundedLastMD_1u9mw_146",
454
- roundedMidMD: "_roundedMidMD_1u9mw_147",
455
- roundedFirstSM: "_roundedFirstSM_1u9mw_150",
456
- roundedLastSM: "_roundedLastSM_1u9mw_151",
457
- roundedMidSM: "_roundedMidSM_1u9mw_152",
458
- roundedFirstLG: "_roundedFirstLG_1u9mw_155",
459
- roundedLastLG: "_roundedLastLG_1u9mw_156",
460
- roundedMidLG: "_roundedMidLG_1u9mw_157"
461
- }, K = ({ children: t, className: n }) => {
462
- let r = e.Children.toArray(t).filter(e.isValidElement), i = r.length, a = r[0]?.props, o = a?.variant ?? "secondary", s = a?.elevation ?? (o === "primary" ? "none" : "flat"), c = !!a?.rounded, l = s.charAt(0).toUpperCase() + s.slice(1);
463
- return /* @__PURE__ */ m("div", {
464
- className: F(G.group, G[`group${l}`], c && G.groupRounded, n),
465
- role: "group",
466
- children: r.map((t, n) => {
467
- let r = t, a = r.props, o = n === 0, s = n === i - 1, c = !o && !s, l = a.variant ?? "secondary", u = a.size ?? "md", d = a.contrast ?? "bold", f = a.intent ?? "brand", p = !!a.rounded, g = !!a.icon && !a.label, _ = l === "secondary" && (a.elevation ?? "flat") === "none", v = l === "primary" && f !== "none", y = d.charAt(0).toUpperCase() + d.slice(1), b = u.toUpperCase(), x = p && !g && u !== "xs", S = F(G.divider, _ && G.dividerGhost, _ && u === "xs" && G.dividerGhostXS, _ && u === "sm" && G.dividerGhostSM, _ && u === "lg" && G.dividerGhostLG, v && G[`divider${y}`]);
468
- return /* @__PURE__ */ h(e.Fragment, { children: [n > 0 && /* @__PURE__ */ m("div", {
469
- className: S,
470
- "aria-hidden": "true"
471
- }), e.cloneElement(r, { className: F(a.className, G.item, o && G.first, s && G.last, c && G.middle, _ && G.itemShort, x && o && G[`roundedFirst${b}`], x && s && G[`roundedLast${b}`], x && c && G[`roundedMid${b}`]) })] }, n);
472
- })
473
- });
474
- };
475
- K.displayName = "ButtonGroup";
476
- var q = {
477
- group: "_group_14dyx_5",
478
- groupElevated: "_groupElevated_14dyx_27",
479
- groupFlat: "_groupFlat_14dyx_31",
480
- groupFloating: "_groupFloating_14dyx_33",
481
- groupRounded: "_groupRounded_14dyx_37",
482
- item: "_item_14dyx_23",
483
- divider: "_divider_14dyx_66",
484
- dividerGhost: "_dividerGhost_14dyx_77",
485
- dividerGhostXS: "_dividerGhostXS_14dyx_78",
486
- dividerGhostSM: "_dividerGhostSM_14dyx_79",
487
- itemPressed: "_itemPressed_14dyx_86",
488
- itemShort: "_itemShort_14dyx_102",
489
- first: "_first_14dyx_96",
490
- last: "_last_14dyx_96",
491
- middle: "_middle_14dyx_96",
492
- roundedFirstMD: "_roundedFirstMD_14dyx_156",
493
- roundedLastMD: "_roundedLastMD_14dyx_157",
494
- roundedMidMD: "_roundedMidMD_14dyx_158",
495
- roundedFirstSM: "_roundedFirstSM_14dyx_161",
496
- roundedLastSM: "_roundedLastSM_14dyx_162",
497
- roundedMidSM: "_roundedMidSM_14dyx_163"
498
- }, se = ({ children: t, className: n }) => {
499
- let r = e.Children.toArray(t).filter(e.isValidElement), i = r.length, a = r[0]?.props, o = a?.elevation ?? "elevated", s = !!a?.rounded, c = o.charAt(0).toUpperCase() + o.slice(1);
500
- return /* @__PURE__ */ m("div", {
501
- className: F(q.group, q[`group${c}`], s && q.groupRounded, n),
502
- role: "group",
503
- children: r.map((t, n) => {
504
- let r = t, a = r.props, o = n === 0, s = n === i - 1, c = !o && !s, l = a.size ?? "md", u = !!a.rounded, d = !!a.pressed, f = !!a.icon && !a.label, p = (a.elevation ?? "elevated") === "none", g = l.toUpperCase(), _ = u && !f && l !== "xs", v = F(q.divider, p && q.dividerGhost, p && l === "xs" && q.dividerGhostXS, p && l === "sm" && q.dividerGhostSM);
505
- return /* @__PURE__ */ h(e.Fragment, { children: [n > 0 && /* @__PURE__ */ m("div", {
506
- className: v,
507
- "aria-hidden": "true"
508
- }), e.cloneElement(r, { className: F(a.className, q.item, o && q.first, s && q.last, c && q.middle, p && q.itemShort, p && d && q.itemPressed, _ && o && q[`roundedFirst${g}`], _ && s && q[`roundedLast${g}`], _ && c && q[`roundedMid${g}`]) })] }, n);
509
- })
510
- });
511
- };
512
- se.displayName = "ToggleButtonGroup";
513
- var J = {
514
- tag: "_tag_1sd2v_6",
515
- sizeMd: "_sizeMd_1sd2v_27",
516
- sizeSm: "_sizeSm_1sd2v_28",
517
- sizeXs: "_sizeXs_1sd2v_29",
518
- rounded: "_rounded_1sd2v_35",
519
- roundedLeftMD: "_roundedLeftMD_1sd2v_46",
520
- roundedRightMD: "_roundedRightMD_1sd2v_47",
521
- roundedLeftSM: "_roundedLeftSM_1sd2v_50",
522
- roundedRightSM: "_roundedRightSM_1sd2v_51",
523
- roundedLeftXS: "_roundedLeftXS_1sd2v_54",
524
- roundedRightXS: "_roundedRightXS_1sd2v_55",
525
- iconLeftMD: "_iconLeftMD_1sd2v_69",
526
- iconRightMD: "_iconRightMD_1sd2v_70",
527
- iconLeftSM: "_iconLeftSM_1sd2v_72",
528
- iconRightSM: "_iconRightSM_1sd2v_73",
529
- iconLeftXS: "_iconLeftXS_1sd2v_75",
530
- iconRightXS: "_iconRightXS_1sd2v_76",
531
- onMedium: "_onMedium_1sd2v_82",
532
- onBold: "_onBold_1sd2v_87",
533
- onStrong: "_onStrong_1sd2v_92",
534
- onAlwaysDark: "_onAlwaysDark_1sd2v_97",
535
- elevationFlat: "_elevationFlat_1sd2v_111",
536
- intentNeutral: "_intentNeutral_1sd2v_120",
537
- contrastBold: "_contrastBold_1sd2v_120",
538
- intentBrand: "_intentBrand_1sd2v_121",
539
- intentAi: "_intentAi_1sd2v_122",
540
- intentNegative: "_intentNegative_1sd2v_123",
541
- intentWarning: "_intentWarning_1sd2v_124",
542
- intentCaution: "_intentCaution_1sd2v_125",
543
- intentPositive: "_intentPositive_1sd2v_126",
544
- contrastStrong: "_contrastStrong_1sd2v_128",
545
- contrastMedium: "_contrastMedium_1sd2v_136",
546
- contrastFaint: "_contrastFaint_1sd2v_144",
547
- elevationElevated: "_elevationElevated_1sd2v_152",
548
- interactive: "_interactive_1sd2v_206",
549
- pressed: "_pressed_1sd2v_226",
550
- removable: "_removable_1sd2v_236",
551
- removeButton: "_removeButton_1sd2v_239",
552
- inactive: "_inactive_1sd2v_270"
553
- }, ce = {
554
- md: 20,
555
- sm: 16,
556
- xs: 12
557
- }, le = {
558
- md: "text-body-medium",
559
- sm: "text-body-small",
560
- xs: "text-caption"
561
- }, ue = r(({ label: e, intent: t = "neutral", contrast: n = "faint", elevation: r = "none", size: i = "md", rounded: a = !1, icon: o, removable: s = !1, onRemove: c, removeIcon: l, maxWidth: u, inactive: d = !1, background: f, onClick: p, pressed: g, onPressedChange: v, className: y }, b) => {
562
- let x = !!p || !!v, S = s && !!c, C = ce[i], w = le[i], T = r.charAt(0).toUpperCase() + r.slice(1), D = i.toUpperCase();
563
- return /* @__PURE__ */ h("div", {
564
- ref: b,
565
- className: F(J.tag, J[`intent${t.charAt(0).toUpperCase() + t.slice(1)}`], J[`contrast${n.charAt(0).toUpperCase() + n.slice(1)}`], J[`elevation${T}`], J[`size${i.charAt(0).toUpperCase() + i.slice(1)}`], a && J.rounded, a && !o && J[`roundedLeft${D}`], a && !S && J[`roundedRight${D}`], !!o && J[`iconLeft${D}`], S && J[`iconRight${D}`], s && J.removable, x && J.interactive, f && f !== "faint" && J[f === "always-dark" ? "onAlwaysDark" : `on${f.charAt(0).toUpperCase() + f.slice(1)}`], d && J.inactive, g && J.pressed, y),
566
- style: u == null ? void 0 : { maxWidth: typeof u == "number" ? `${u}px` : u },
567
- onClick: x && !d ? () => {
568
- v?.(!g), p?.();
569
- } : void 0,
570
- onKeyDown: x && !d ? (e) => {
571
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), v?.(!g), p?.());
572
- } : void 0,
573
- role: x ? "button" : void 0,
574
- tabIndex: x ? d ? -1 : 0 : void 0,
575
- "aria-pressed": x && g !== void 0 ? !!g : void 0,
576
- "aria-disabled": d || void 0,
577
- children: [
578
- o && /* @__PURE__ */ m(o, { size: C }),
579
- /* @__PURE__ */ m(te, {
580
- size: i,
581
- children: /* @__PURE__ */ m(E, {
582
- variant: w,
583
- as: "span",
584
- color: "inherit",
585
- children: e
586
- })
587
- }),
588
- s && c && /* @__PURE__ */ m("button", {
589
- type: "button",
590
- className: J.removeButton,
591
- onClick: (e) => {
592
- e.stopPropagation(), c();
593
- },
594
- "aria-label": `Remove ${e}`,
595
- tabIndex: -1,
596
- children: m(l || _, { size: C })
597
- })
598
- ]
599
- });
600
- });
601
- ue.displayName = "Tag";
602
- var de = { badge: "_badge_1nscu_1" }, fe = ({ count: e, isSelected: t = !1, className: n, "aria-label": r, labelFormat: i }) => {
603
- if (e === 0) return null;
604
- let a = e > 9 ? "+" : e.toString(), o = r ?? i?.(e) ?? String(e);
605
- return /* @__PURE__ */ m("span", {
606
- className: `${de.badge} ${n || ""}`,
607
- "aria-label": o,
608
- children: /* @__PURE__ */ m(E, {
609
- variant: "text-caption-emphasis",
610
- as: "span",
611
- color: t ? "primary" : "secondary",
612
- children: a
613
- })
614
- });
615
- };
616
- fe.displayName = "Badge";
617
- var pe = {
618
- toggle: "_toggle_1aw6v_1",
619
- checked: "_checked_1aw6v_35",
620
- thumb: "_thumb_1aw6v_39",
621
- inactive: "_inactive_1aw6v_62"
622
- }, me = r(({ checked: e = !1, onChange: t, inactive: n = !1, className: r, "aria-label": i, "aria-labelledby": a }, o) => /* @__PURE__ */ m("button", {
623
- ref: o,
624
- type: "button",
625
- role: "switch",
626
- "aria-checked": e,
627
- "aria-label": i,
628
- "aria-labelledby": a,
629
- disabled: n,
630
- className: F(pe.toggle, e && pe.checked, n && pe.inactive, r),
631
- onClick: () => {
632
- n || t?.(!e);
633
- },
634
- children: /* @__PURE__ */ m("span", { className: pe.thumb })
635
- }));
636
- me.displayName = "Toggle";
637
- var he = {
638
- checkbox: "_checkbox_1brbf_1",
639
- inactive: "_inactive_1brbf_18",
640
- box: "_box_1brbf_25",
641
- boxChecked: "_boxChecked_1brbf_37",
642
- checkmark: "_checkmark_1brbf_42"
643
- }, ge = r(({ label: e, checked: t = !1, indeterminate: n = !1, onChange: r, inactive: i = !1, className: a, checkedIcon: o, uncheckedIcon: c, indeterminateIcon: l }, u) => {
644
- let d = s(), f = () => {
645
- i || r?.(!t);
646
- }, p = n || t ? "var(--color-foreground-primary)" : "var(--color-foreground-secondary)", g = n ? l : t ? o : c;
647
- return /* @__PURE__ */ h("div", {
648
- ref: u,
649
- role: "checkbox",
650
- "aria-checked": n ? "mixed" : t,
651
- "aria-disabled": i || void 0,
652
- "aria-labelledby": d,
653
- "data-inactive": i || void 0,
654
- tabIndex: i ? -1 : 0,
655
- className: F(he.checkbox, i && he.inactive, a),
656
- onClick: f,
657
- onKeyDown: (e) => {
658
- (e.key === " " || e.key === "Enter") && (e.preventDefault(), f());
659
- },
660
- children: [g ? /* @__PURE__ */ m(g, {
661
- size: 20,
662
- color: p
663
- }) : /* @__PURE__ */ m("span", {
664
- className: F(he.box, (t || n) && he.boxChecked),
665
- children: (t || n) && /* @__PURE__ */ m("span", {
666
- className: he.checkmark,
667
- children: n ? "−" : "✓"
668
- })
669
- }), /* @__PURE__ */ m(E, {
670
- id: d,
671
- variant: "text-body-medium",
672
- as: "span",
673
- color: "inherit",
674
- children: e
675
- })]
676
- });
677
- });
678
- ge.displayName = "Checkbox";
679
- var _e = {
680
- container: "_container_ce0xu_1",
681
- wrapper: "_wrapper_ce0xu_8",
682
- wrapperError: "_wrapperError_ce0xu_23",
683
- errorText: "_errorText_ce0xu_31",
684
- row: "_row_ce0xu_37",
685
- input: "_input_ce0xu_45",
686
- clearButton: "_clearButton_ce0xu_70",
687
- suffix: "_suffix_ce0xu_86"
688
- }, ve = () => !!import.meta.env?.DEV, ye = r(({ value: e, onChange: t, id: n, placeholder: r, autoFocus: i = !1, className: a, type: c = "text", inactive: l = !1, onKeyDown: u, suffix: d, clearIcon: f, "aria-label": p, "aria-labelledby": g, "aria-describedby": _, error: v = !1, errorMessage: y }, b) => {
689
- let x = `${s()}-error`, S = c === "search" && e.length > 0 && !l, C = v && !!y, w = [_, C ? x : void 0].filter(Boolean).join(" ") || void 0;
690
- return o(() => {
691
- ve() && !n && !p && !g && console.warn("[@ds-mo/ui] <Input> is missing an accessible name. Provide one of: `id` (paired with a <label htmlFor>), `aria-label`, or `aria-labelledby`.");
692
- }, [
693
- n,
694
- p,
695
- g
696
- ]), /* @__PURE__ */ h("div", {
697
- className: _e.container,
698
- children: [/* @__PURE__ */ m("div", {
699
- ref: b,
700
- className: F(_e.wrapper, v && _e.wrapperError, a),
701
- children: /* @__PURE__ */ h("div", {
702
- className: _e.row,
703
- children: [
704
- /* @__PURE__ */ m("input", {
705
- type: c,
706
- id: n,
707
- value: e,
708
- onChange: t,
709
- onKeyDown: u,
710
- placeholder: r,
711
- className: _e.input,
712
- autoFocus: i,
713
- disabled: l,
714
- "aria-label": p,
715
- "aria-labelledby": g,
716
- "aria-describedby": w,
717
- "aria-invalid": v || void 0
718
- }),
719
- S && /* @__PURE__ */ m("button", {
720
- type: "button",
721
- className: _e.clearButton,
722
- onClick: () => {
723
- t({ target: { value: "" } });
724
- },
725
- "aria-label": "Clear",
726
- children: f ? /* @__PURE__ */ m(f, { size: 16 }) : /* @__PURE__ */ m("span", {
727
- "aria-hidden": !0,
728
- children: "×"
729
- })
730
- }),
731
- d && /* @__PURE__ */ m("div", {
732
- className: _e.suffix,
733
- children: d
734
- })
735
- ]
736
- })
737
- }), C && /* @__PURE__ */ m("div", {
738
- id: x,
739
- role: "alert",
740
- className: _e.errorText,
741
- children: y
742
- })]
743
- });
744
- });
745
- ye.displayName = "Input";
746
- var Y = {
747
- field: "_field_x9zdb_1",
748
- labelRow: "_labelRow_x9zdb_2",
749
- track: "_track_x9zdb_4",
750
- trackInner: "_trackInner_x9zdb_10",
751
- fillTrack: "_fillTrack_x9zdb_16",
752
- fill: "_fill_x9zdb_16",
753
- trackAtMin: "_trackAtMin_x9zdb_31",
754
- thumb: "_thumb_x9zdb_33",
755
- trackInactive: "_trackInactive_x9zdb_53",
756
- input: "_input_x9zdb_58"
757
- }, be = r(({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, label: c, id: l, inactive: f = !1, className: p, valueText: g }, _) => {
758
- let v = s(), y = l ?? v, b = u(null), [x, S] = d(() => {
759
- let t = r - n;
760
- return t === 0 ? 0 : Math.round((e - n) / t * 100);
761
- }), C = a(() => {
762
- let t = r - n;
763
- S(t === 0 ? 0 : Math.round((e - n) / t * 100));
764
- }, [
765
- e,
766
- n,
767
- r
768
- ]);
769
- return o(() => {
770
- C();
771
- }, [C]), /* @__PURE__ */ h("div", {
772
- ref: _,
773
- className: F(Y.field, p),
774
- children: [/* @__PURE__ */ h("div", {
775
- className: Y.labelRow,
776
- children: [/* @__PURE__ */ m(E, {
777
- variant: "text-body-small-emphasis",
778
- as: "label",
779
- htmlFor: y,
780
- children: c
781
- }), /* @__PURE__ */ m(E, {
782
- variant: "text-body-small-emphasis",
783
- as: "span",
784
- children: e
785
- })]
786
- }), /* @__PURE__ */ h("div", {
787
- ref: b,
788
- className: F(Y.track, f && Y.trackInactive, x === 0 && Y.trackAtMin),
789
- style: { "--slider-pct": x },
790
- children: [/* @__PURE__ */ h("div", {
791
- className: Y.trackInner,
792
- children: [/* @__PURE__ */ m("div", {
793
- className: Y.fillTrack,
794
- children: /* @__PURE__ */ m("div", { className: Y.fill })
795
- }), /* @__PURE__ */ m("div", { className: Y.thumb })]
796
- }), /* @__PURE__ */ m("input", {
797
- type: "range",
798
- id: y,
799
- min: n,
800
- max: r,
801
- step: i,
802
- value: e,
803
- onChange: (e) => {
804
- t(Number(e.target.value));
805
- },
806
- disabled: f,
807
- className: Y.input,
808
- "aria-valuetext": g
809
- })]
810
- })]
811
- });
812
- });
813
- be.displayName = "Slider";
814
- var xe = { field: "_field_140we_1" }, Se = r(({ label: e, children: t, id: r, className: a }, o) => {
815
- let c = s(), l = r ?? c, u = t;
816
- return i(t) && t.props.id === void 0 && (u = n(t, { id: l })), /* @__PURE__ */ h("div", {
817
- ref: o,
818
- className: F(xe.field, a),
819
- children: [/* @__PURE__ */ m(E, {
820
- variant: "text-body-small-emphasis",
821
- as: "label",
822
- htmlFor: l,
823
- children: e
824
- }), u]
825
- });
826
- });
827
- Se.displayName = "Field";
828
- var Ce = {
829
- backdrop: "_backdrop_k4mxw_1",
830
- modalBackdropFadeIn: "_modalBackdropFadeIn_k4mxw_1",
831
- closing: "_closing_k4mxw_15",
832
- modalBackdropFadeOut: "_modalBackdropFadeOut_k4mxw_1",
833
- dialog: "_dialog_k4mxw_29",
834
- modalDialogFadeIn: "_modalDialogFadeIn_k4mxw_1",
835
- modalDialogFadeOut: "_modalDialogFadeOut_k4mxw_1",
836
- header: "_header_k4mxw_51",
837
- subtitle: "_subtitle_k4mxw_55",
838
- body: "_body_k4mxw_60",
839
- footer: "_footer_k4mxw_65"
840
- }, we = {
841
- sm: "var(--dimension-modal-width-sm, 400px)",
842
- md: "var(--dimension-modal-width-md, 560px)",
843
- lg: "var(--dimension-modal-width-lg, 720px)"
844
- }, Te = 220, Ee = [
845
- "a[href]",
846
- "area[href]",
847
- "button:not([disabled])",
848
- "input:not([disabled]):not([type=\"hidden\"])",
849
- "select:not([disabled])",
850
- "textarea:not([disabled])",
851
- "iframe",
852
- "object",
853
- "embed",
854
- "[contenteditable=\"true\"]",
855
- "[tabindex]:not([tabindex=\"-1\"])"
856
- ].join(","), De = (e) => {
857
- let t = e.querySelectorAll(Ee);
858
- return Array.from(t).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true");
859
- }, Oe = ({ isOpen: e, onClose: t, title: n, subtitle: r, children: i, footer: a, width: c = "md", bodyClassName: f, initialFocus: p }) => {
860
- let g = u(null), _ = u(null), v = s(), b = s(), [x, S] = d(!1), [C, w] = d(e), T = l(() => c === "sm" || c === "md" || c === "lg" ? we[c] : c, [c]);
861
- o(() => {
862
- if (e) w(!0), S(!1);
863
- else if (C) {
864
- S(!0);
865
- let e = setTimeout(() => {
866
- w(!1), S(!1);
867
- }, Te);
868
- return () => clearTimeout(e);
869
- }
870
- }, [e, C]), o(() => {
871
- if (!e) return;
872
- let n = (e) => {
873
- e.key === "Escape" && t();
874
- };
875
- return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
876
- }, [e, t]), o(() => {
877
- if (!e || !C) return;
878
- _.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
879
- let t = requestAnimationFrame(() => {
880
- let e = g.current;
881
- if (!e) return;
882
- if (p?.current) {
883
- p.current.focus();
884
- return;
885
- }
886
- let t = De(e);
887
- t.length > 0 ? t[0].focus() : e.focus();
888
- });
889
- return () => {
890
- cancelAnimationFrame(t);
891
- let e = _.current;
892
- e && document.contains(e) && e.focus(), _.current = null;
893
- };
894
- }, [
895
- e,
896
- C,
897
- p
898
- ]);
899
- let D = (e) => {
900
- if (e.key !== "Tab") return;
901
- let t = g.current;
902
- if (!t) return;
903
- let n = De(t);
904
- if (n.length === 0) {
905
- e.preventDefault(), t.focus();
906
- return;
907
- }
908
- let r = n[0], i = n[n.length - 1], a = document.activeElement;
909
- e.shiftKey ? (a === r || a === t || !t.contains(a)) && (e.preventDefault(), i.focus()) : (a === i || !t.contains(a)) && (e.preventDefault(), r.focus());
910
- };
911
- if (!C) return null;
912
- let O = r == null ? void 0 : b;
913
- return y(/* @__PURE__ */ m("div", {
914
- className: `${Ce.backdrop} ${x ? Ce.closing : ""}`,
915
- onMouseDown: (e) => {
916
- e.target === e.currentTarget && t();
917
- },
918
- onKeyDown: D,
919
- children: /* @__PURE__ */ h(N, {
920
- ref: g,
921
- background: "primary",
922
- elevation: "floating",
923
- radius: "var(--dimension-radius-275, 22px)",
924
- className: Ce.dialog,
925
- style: { width: `min(${T}, calc(100vw - 32px))` },
926
- role: "dialog",
927
- "aria-modal": "true",
928
- "aria-labelledby": v,
929
- "aria-describedby": O,
930
- tabIndex: -1,
931
- children: [
932
- /* @__PURE__ */ h("div", {
933
- className: Ce.header,
934
- children: [/* @__PURE__ */ m(E, {
935
- id: v,
936
- as: "h2",
937
- variant: "text-title-small",
938
- children: n
939
- }), r != null && /* @__PURE__ */ m("div", {
940
- id: b,
941
- className: Ce.subtitle,
942
- children: r
943
- })]
944
- }),
945
- /* @__PURE__ */ m("div", {
946
- className: `${Ce.body} ${f ?? ""}`.trim(),
947
- children: i
948
- }),
949
- a != null && /* @__PURE__ */ m("div", {
950
- className: Ce.footer,
951
- children: a
952
- })
953
- ]
954
- })
955
- }), document.body);
956
- };
957
- Oe.displayName = "Modal";
958
- var X = {
959
- menuItem: "_menuItem_1yf1s_1",
960
- subtext: "_subtext_1yf1s_15",
961
- iconPrefix: "_iconPrefix_1yf1s_17",
962
- menuItemSelected: "_menuItemSelected_1yf1s_24",
963
- content: "_content_1yf1s_26",
964
- label: "_label_1yf1s_34",
965
- menuItemLabelTertiary: "_menuItemLabelTertiary_1yf1s_37",
966
- menuItemNegative: "_menuItemNegative_1yf1s_38",
967
- menuItemInactive: "_menuItemInactive_1yf1s_42",
968
- menuItemActive: "_menuItemActive_1yf1s_44",
969
- toggleSuffix: "_toggleSuffix_1yf1s_46",
970
- toggle: "_toggle_1yf1s_46",
971
- toggleOn: "_toggleOn_1yf1s_57",
972
- toggleThumb: "_toggleThumb_1yf1s_59",
973
- checkSuffix: "_checkSuffix_1yf1s_72",
974
- chevronSuffix: "_chevronSuffix_1yf1s_79"
975
- }, ke = r(({ label: e, onClick: t, isSelected: n = !1, isInactive: r = !1, icon: i, labelColor: a, subtext: o, showToggle: s = !1, toggleValue: c = !1, intent: l, selectionStyle: u = "highlight", showTrailingChevron: d = !1, checkIcon: f, chevronIcon: p, role: g, id: _, ariaSelected: v, isActive: y = !1, tabIndex: b, onKeyDown: x, onFocus: S }, C) => {
976
- let w = u === "radio", T = n && !(u === "noOverlay" || w), D = g ?? (s ? "menuitemcheckbox" : w ? "menuitemradio" : "menuitem"), O = g ? void 0 : D === "menuitemcheckbox" ? !!c : D === "menuitemradio" ? !!n : void 0, k = g && v !== void 0 ? v : void 0;
977
- return /* @__PURE__ */ h(N, {
978
- ref: C,
979
- as: "button",
980
- interactive: !r,
981
- selected: T,
982
- radius: "sm",
983
- className: `${X.menuItem} ${n ? X.menuItemSelected : ""} ${r ? X.menuItemInactive : ""} ${l === "negative" ? X.menuItemNegative : ""} ${a === "tertiary" ? X.menuItemLabelTertiary : ""} ${y ? X.menuItemActive : ""}`,
984
- onClick: t,
985
- type: "button",
986
- inactive: r,
987
- role: D,
988
- id: _,
989
- "aria-checked": O,
990
- "aria-selected": k,
991
- "aria-disabled": r || void 0,
992
- tabIndex: b,
993
- onKeyDown: x,
994
- onFocus: S,
995
- children: [
996
- i && /* @__PURE__ */ m("div", {
997
- className: X.iconPrefix,
998
- "aria-hidden": "true",
999
- children: /* @__PURE__ */ m(i, { size: 20 })
1000
- }),
1001
- /* @__PURE__ */ h("div", {
1002
- className: X.content,
1003
- children: [/* @__PURE__ */ m(E, {
1004
- variant: n ? "text-body-medium-emphasis" : "text-body-medium",
1005
- color: a,
1006
- as: "span",
1007
- className: X.label,
1008
- children: e
1009
- }), o && /* @__PURE__ */ m(E, {
1010
- variant: "text-body-small",
1011
- as: "span",
1012
- className: X.subtext,
1013
- children: o
1014
- })]
1015
- }),
1016
- s && /* @__PURE__ */ m("div", {
1017
- className: X.toggleSuffix,
1018
- "aria-hidden": "true",
1019
- children: /* @__PURE__ */ m("div", {
1020
- className: `${X.toggle} ${c ? X.toggleOn : ""}`,
1021
- children: /* @__PURE__ */ m("div", { className: X.toggleThumb })
1022
- })
1023
- }),
1024
- w && n && f && /* @__PURE__ */ m("div", {
1025
- className: X.checkSuffix,
1026
- "aria-hidden": "true",
1027
- children: /* @__PURE__ */ m(f, { size: 20 })
1028
- }),
1029
- d && p && /* @__PURE__ */ m("div", {
1030
- className: X.chevronSuffix,
1031
- "aria-hidden": "true",
1032
- children: /* @__PURE__ */ m(p, { size: 20 })
1033
- })
1034
- ]
1035
- });
1036
- });
1037
- ke.displayName = "MenuItem";
1038
- var Ae = {
1039
- destructiveMenuItem: "_destructiveMenuItem_1t03u_1",
1040
- subtext: "_subtext_1t03u_19",
1041
- progressFill: "_progressFill_1t03u_21",
1042
- content: "_content_1t03u_44",
1043
- label: "_label_1t03u_53"
1044
- }, je = r(({ label: e, onClick: t, holdDuration: n = 4e3, subtext: r, tabIndex: i, onKeyDown: a, onFocus: s }, c) => {
1045
- let [l, f] = d(0), p = u(null), g = u(0), _ = u(null), v = u(!1), y = () => {
1046
- f(0), v.current = !1, p.current &&= (clearTimeout(p.current), null), _.current &&= (cancelAnimationFrame(_.current), null);
1047
- }, b = () => {
1048
- if (v.current) return;
1049
- if (v.current = !0, n === 0) {
1050
- t(), y();
1051
- return;
1052
- }
1053
- g.current = performance.now();
1054
- let e = () => {
1055
- let t = performance.now() - g.current, r = Math.min(t / n * 100, 100);
1056
- f(r), r < 100 && (_.current = requestAnimationFrame(e));
1057
- };
1058
- _.current = requestAnimationFrame(e), p.current = window.setTimeout(() => {
1059
- t(), y();
1060
- }, n);
1061
- }, x = (e) => {
1062
- e.stopPropagation(), e.preventDefault(), b();
1063
- }, S = (e) => {
1064
- e.stopPropagation(), y();
1065
- }, C = (e) => {
1066
- e.stopPropagation(), y();
1067
- }, w = (e) => e.key === " " || e.key === "Spacebar";
1068
- return o(() => () => {
1069
- y();
1070
- }, []), /* @__PURE__ */ h("button", {
1071
- ref: c,
1072
- className: Ae.destructiveMenuItem,
1073
- onMouseDown: x,
1074
- onMouseUp: S,
1075
- onMouseLeave: C,
1076
- onKeyDown: (e) => {
1077
- if (w(e)) {
1078
- if (e.preventDefault(), e.repeat) return;
1079
- e.stopPropagation(), b();
1080
- return;
1081
- }
1082
- if (e.key === "Enter") {
1083
- e.preventDefault();
1084
- return;
1085
- }
1086
- a?.(e);
1087
- },
1088
- onKeyUp: (e) => {
1089
- w(e) && (e.preventDefault(), e.stopPropagation(), y());
1090
- },
1091
- onBlur: () => {
1092
- y();
1093
- },
1094
- onFocus: s,
1095
- type: "button",
1096
- role: "menuitem",
1097
- tabIndex: i ?? -1,
1098
- "aria-keyshortcuts": "Space",
1099
- children: [/* @__PURE__ */ m("div", {
1100
- className: Ae.progressFill,
1101
- style: { width: `${l}%` },
1102
- role: "progressbar",
1103
- "aria-valuenow": Math.round(l),
1104
- "aria-valuemin": 0,
1105
- "aria-valuemax": 100,
1106
- "aria-label": `Hold to confirm ${e}`
1107
- }), /* @__PURE__ */ h("div", {
1108
- className: Ae.content,
1109
- children: [/* @__PURE__ */ m(E, {
1110
- variant: "text-body-medium",
1111
- as: "span",
1112
- className: Ae.label,
1113
- children: e
1114
- }), r && /* @__PURE__ */ m(E, {
1115
- variant: "text-body-small",
1116
- as: "span",
1117
- className: Ae.subtext,
1118
- children: r
1119
- })]
1120
- })]
1121
- });
1122
- });
1123
- je.displayName = "DestructiveMenuItem";
1124
- //#endregion
1125
- //#region src/utils/css-tokens.ts
1126
- function Me(e, t) {
1127
- if (typeof document > "u") return t;
1128
- let n = getComputedStyle(document.documentElement).getPropertyValue(e).trim(), r = parseFloat(n);
1129
- return Number.isNaN(r) ? t : r;
1130
- }
1131
- function Ne(e, t) {
1132
- if (typeof document > "u") return t;
1133
- let n = getComputedStyle(document.documentElement).getPropertyValue(e).trim();
1134
- return n.endsWith("ms") ? parseFloat(n) || t : n.endsWith("s") && (parseFloat(n) || 0) * 1e3 || t;
1135
- }
1136
- var Pe = {
1137
- menuContainer: "_menuContainer_ljt4d_1",
1138
- menuFadeIn: "_menuFadeIn_ljt4d_1",
1139
- closing: "_closing_ljt4d_21",
1140
- menuFadeOut: "_menuFadeOut_ljt4d_1",
1141
- menuSection: "_menuSection_ljt4d_30",
1142
- sectionHeader: "_sectionHeader_ljt4d_37",
1143
- sectionLabel: "_sectionLabel_ljt4d_46"
1144
- }, Fe = 220, Ie = ({ isOpen: e, onClose: t, anchorRef: n, items: r, sections: i, side: s = "bottom", align: f = "start", sideOffset: p = 4, alignOffset: g = 0, sideOffsetToken: _, alignOffsetToken: v, width: b, minWidth: x, maxWidth: S, matchAnchorWidth: C = !1, matchAnchorWidthOffset: w = 0, usePortal: T = !0, role: D = "menu", id: O, ariaLabel: k, activeIndex: ee, getOptionId: A }) => {
1145
- let j = D === "listbox", [M, P] = d(!1), [F, I] = d(e), [L, R] = d(!1), [z, te] = d({
1146
- x: 0,
1147
- y: 0
1148
- }), [B, ne] = d({
1149
- width: 0,
1150
- height: 0
1151
- }), [V, re] = d({
1152
- width: 0,
1153
- height: 0
1154
- }), [H, ie] = d(0), U = u(!1), W = u(null), ae = u([]), oe = u([]), G = u(!1), K = i || (r ? [{ items: r }] : []), q = K.some((e) => e.items.length > 0);
1155
- !M && K.length > 0 && q && (ae.current = K);
1156
- let se = M ? ae.current : K, J = l(() => {
1157
- let e = [];
1158
- return se.forEach((t) => {
1159
- t.items.forEach((t) => e.push(t));
1160
- }), e;
1161
- }, [se]);
1162
- o(() => {
1163
- if (e) I(!0), P(!1), R(!1), U.current = !1;
1164
- else if (F) {
1165
- P(!0);
1166
- let e = setTimeout(() => {
1167
- I(!1), P(!1), U.current = !1;
1168
- }, Fe);
1169
- return () => clearTimeout(e);
1170
- }
1171
- }, [e, F]), c(() => {
1172
- if (!e || !F || !W.current) return;
1173
- let t = () => {
1174
- if (!W.current) return;
1175
- let e = W.current.getBoundingClientRect();
1176
- e.width > 0 && e.height > 0 && ne({
1177
- width: e.width,
1178
- height: e.height
1179
- });
1180
- };
1181
- if (t(), requestAnimationFrame(() => requestAnimationFrame(t)), typeof ResizeObserver < "u") {
1182
- let e = new ResizeObserver(t);
1183
- return e.observe(W.current), () => e.disconnect();
1184
- }
1185
- }, [
1186
- e,
1187
- F,
1188
- K.length
1189
- ]), c(() => {
1190
- if (!e || !F || !n.current || !W.current) return;
1191
- let t = () => {
1192
- let e = n.current, t = W.current;
1193
- if (!e || !t) return;
1194
- let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || B.width || 200, o = i.height || B.height || 160;
1195
- re({
1196
- width: r.width,
1197
- height: r.height
1198
- });
1199
- let c = _ == null ? p : Me(_, 12), l = v == null ? g : Me(v, 4), u = 0, d = 0;
1200
- switch (s) {
1201
- case "top":
1202
- d = r.top - o - c, u = f === "start" ? r.left + l : f === "end" ? r.right - a + l : r.left + r.width / 2 - a / 2 + l;
1203
- break;
1204
- case "bottom":
1205
- d = r.bottom + c, u = f === "start" ? r.left + l : f === "end" ? r.right - a + l : r.left + r.width / 2 - a / 2 + l;
1206
- break;
1207
- case "left":
1208
- u = r.left - a - c, d = f === "start" ? r.top + l : f === "end" ? r.bottom - o + l : r.top + r.height / 2 - o / 2 + l;
1209
- break;
1210
- case "right":
1211
- u = r.right + c, d = f === "start" ? r.top + l : f === "end" ? r.bottom - o + l : r.top + r.height / 2 - o / 2 + l;
1212
- break;
1213
- }
1214
- te({
1215
- x: Math.min(Math.max(u, 4), window.innerWidth - a - 4),
1216
- y: Math.min(Math.max(d, 4), window.innerHeight - o - 4)
1217
- }), U.current = !0, R(!0);
1218
- };
1219
- U.current || (t(), requestAnimationFrame(() => {
1220
- U.current || t();
1221
- }));
1222
- let r = () => t();
1223
- return window.addEventListener("scroll", r, !0), window.addEventListener("resize", r), () => {
1224
- window.removeEventListener("scroll", r, !0), window.removeEventListener("resize", r);
1225
- };
1226
- }, [
1227
- e,
1228
- F,
1229
- n,
1230
- s,
1231
- f,
1232
- p,
1233
- g,
1234
- _,
1235
- v,
1236
- B.width,
1237
- B.height,
1238
- K.length,
1239
- w
1240
- ]);
1241
- let ce = a(() => {
1242
- let e = document.activeElement;
1243
- e && W.current?.contains(e) && n.current && n.current.focus(), t();
1244
- }, [t, n]);
1245
- o(() => {
1246
- if (!e || !F) return;
1247
- let r = (e) => {
1248
- let r = e.target;
1249
- W.current?.contains(r) || n.current?.contains(r) || t();
1250
- };
1251
- return document.addEventListener("mousedown", r, !0), () => document.removeEventListener("mousedown", r, !0);
1252
- }, [
1253
- e,
1254
- F,
1255
- t,
1256
- n
1257
- ]), o(() => {
1258
- if (!e) return;
1259
- let n = (e) => {
1260
- e.key === "Escape" && (j ? t() : (e.preventDefault(), ce()));
1261
- };
1262
- return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
1263
- }, [
1264
- e,
1265
- j,
1266
- t,
1267
- ce
1268
- ]), o(() => {
1269
- if (!e) {
1270
- G.current = !1;
1271
- return;
1272
- }
1273
- if (j || !L || G.current) return;
1274
- let t = J.findIndex((e) => !e.isInactive), n = t >= 0 ? t : 0;
1275
- ie(n), oe.current[n]?.focus(), G.current = !0;
1276
- }, [
1277
- e,
1278
- j,
1279
- L,
1280
- J
1281
- ]);
1282
- let le = a((e) => {
1283
- ie(e), oe.current[e]?.focus();
1284
- }, []), ue = a((e) => {
1285
- if (j || !J.length) return;
1286
- let t = [];
1287
- if (J.forEach((e, n) => {
1288
- e.isInactive || t.push(n);
1289
- }), !t.length) return;
1290
- let n = t.indexOf(H), r = n < 0 ? 0 : n;
1291
- switch (e.key) {
1292
- case "ArrowDown":
1293
- e.preventDefault(), e.stopPropagation(), le(t[(r + 1) % t.length]);
1294
- break;
1295
- case "ArrowUp":
1296
- e.preventDefault(), e.stopPropagation(), le(t[(r - 1 + t.length) % t.length]);
1297
- break;
1298
- case "Home":
1299
- e.preventDefault(), e.stopPropagation(), le(t[0]);
1300
- break;
1301
- case "End":
1302
- e.preventDefault(), e.stopPropagation(), le(t[t.length - 1]);
1303
- break;
1304
- case "Tab":
1305
- e.preventDefault(), ce();
1306
- break;
1307
- }
1308
- }, [
1309
- j,
1310
- J,
1311
- H,
1312
- le,
1313
- ce
1314
- ]);
1315
- if (!F || se.length === 0) return null;
1316
- let de = (e) => (t) => {
1317
- oe.current[e] = t;
1318
- }, fe = (e) => () => {
1319
- ie(e);
1320
- }, pe = (e) => {
1321
- e.isInactive || (e.onClick(), !e.keepOpenOnClick && (j ? t() : ce()));
1322
- }, me = (e, n, r) => {
1323
- if (e.isDestructive) {
1324
- let i = j ? -1 : H === r ? 0 : -1;
1325
- return /* @__PURE__ */ m(je, {
1326
- ref: de(r),
1327
- label: e.label,
1328
- subtext: e.subtext,
1329
- holdDuration: e.holdDuration ?? 4e3,
1330
- onClick: () => {
1331
- e.onClick(), e.keepOpenOnClick || (j ? t() : ce());
1332
- },
1333
- tabIndex: i,
1334
- onFocus: fe(r)
1335
- }, n);
1336
- }
1337
- let i = j && A ? A(r) : void 0, a = j ? -1 : H === r ? 0 : -1;
1338
- return /* @__PURE__ */ m(ke, {
1339
- ref: de(r),
1340
- icon: e.icon,
1341
- label: e.label,
1342
- subtext: e.subtext,
1343
- onClick: () => pe(e),
1344
- isSelected: e.isSelected,
1345
- isInactive: e.isInactive,
1346
- intent: e.intent,
1347
- showToggle: e.showToggle,
1348
- toggleValue: e.toggleValue,
1349
- selectionStyle: e.selectionStyle,
1350
- role: j ? "option" : void 0,
1351
- id: i,
1352
- ariaSelected: j ? !!e.isSelected : void 0,
1353
- isActive: j && ee === r,
1354
- tabIndex: a,
1355
- onFocus: fe(r)
1356
- }, n);
1357
- }, he = {
1358
- position: "absolute",
1359
- left: 0,
1360
- top: 0,
1361
- transform: `translate(${Math.round(z.x)}px, ${Math.round(z.y)}px)`,
1362
- willChange: "transform",
1363
- zIndex: 9998,
1364
- visibility: L ? "visible" : "hidden",
1365
- ...C && V.width > 0 ? { width: `${V.width + w}px` } : b ? { width: b } : {},
1366
- ...x ? { minWidth: x } : {},
1367
- ...S ? { maxWidth: S } : {}
1368
- }, ge = 0, _e = k ?? (j ? void 0 : "Menu"), ve = /* @__PURE__ */ m("div", {
1369
- ref: W,
1370
- id: O,
1371
- className: `${Pe.menuContainer} ${M ? Pe.closing : ""}`,
1372
- style: he,
1373
- role: D,
1374
- "aria-label": _e,
1375
- "aria-orientation": "vertical",
1376
- onKeyDown: ue,
1377
- children: se.map((e, t) => /* @__PURE__ */ h(N, {
1378
- as: "div",
1379
- className: Pe.menuSection,
1380
- edge: t < se.length - 1 ? "bottom" : void 0,
1381
- elevation: "none",
1382
- role: e.header ? "group" : void 0,
1383
- "aria-label": e.header,
1384
- children: [e.header && /* @__PURE__ */ m("div", {
1385
- className: Pe.sectionHeader,
1386
- "aria-hidden": "true",
1387
- children: /* @__PURE__ */ m(E, {
1388
- variant: "text-body-small-emphasis",
1389
- as: "span",
1390
- className: Pe.sectionLabel,
1391
- children: e.header
1392
- })
1393
- }), e.items.map((e, t) => me(e, t, ge++))]
1394
- }, t))
1395
- });
1396
- return T ? y(ve, document.body) : ve;
1397
- };
1398
- Ie.displayName = "Menu";
1399
- var Le = {
1400
- tooltip: "_tooltip_3kdaq_1",
1401
- tooltipFadeIn: "_tooltipFadeIn_3kdaq_1",
1402
- tooltipInner: "_tooltipInner_3kdaq_14",
1403
- keyHint: "_keyHint_3kdaq_21",
1404
- closing: "_closing_3kdaq_33",
1405
- tooltipFadeOut: "_tooltipFadeOut_3kdaq_1"
1406
- }, Re = 1e3, ze = 300, Be = 200, Ve = 0, He = ({ label: t, children: n, delay: r, side: i = "top", align: l = "center", sideOffset: f = 4, alignOffset: g = 0, shortcutKey: _, shortcutKeyPosition: v = "end", usePortal: b = !0 }) => {
1407
- let x = Ne("--effect-animation-delay-medium-3", Re), S = r ?? x, C = u(null), w = u(null), T = s(), D = a((t) => {
1408
- C.current = t;
1409
- let r = e.Children.only(n), i = "ref" in r ? r.ref : void 0;
1410
- typeof i == "function" ? i(t) : i && typeof i == "object" && (i.current = t);
1411
- }, [n]), [O, k] = d(!1), [ee, A] = d(!1), [j, M] = d(!1), [N, P] = d({
1412
- x: 0,
1413
- y: 0
1414
- }), [F, I] = d({
1415
- width: 0,
1416
- height: 0
1417
- }), L = u(null), R = u(null), z = () => {
1418
- L.current &&= (clearTimeout(L.current), null);
1419
- }, te = () => {
1420
- if (z(), Date.now() - Ve < ze) {
1421
- k(!0), M(!0), A(!1);
1422
- return;
1423
- }
1424
- L.current = setTimeout(() => {
1425
- L.current = null, k(!0), M(!0), A(!1);
1426
- }, S);
1427
- }, B = () => {
1428
- z(), R.current &&= (clearTimeout(R.current), null), !(!O && !j) && (Ve = Date.now(), A(!0), R.current = setTimeout(() => {
1429
- R.current = null, M(!1), k(!1), A(!1);
1430
- }, Be));
1431
- };
1432
- o(() => () => {
1433
- z(), R.current && clearTimeout(R.current);
1434
- }, []), o(() => {
1435
- if (!j) return;
1436
- let e = (e) => {
1437
- e.key === "Escape" && B();
1438
- };
1439
- return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1440
- }, [j]), c(() => {
1441
- if (!j || !w.current) return;
1442
- let e = () => {
1443
- if (!w.current) return;
1444
- let e = w.current.getBoundingClientRect(), t = e.width || w.current.offsetWidth, n = e.height || w.current.offsetHeight;
1445
- t > 0 && n > 0 && I({
1446
- width: t,
1447
- height: n
1448
- });
1449
- };
1450
- if (e(), requestAnimationFrame(e), typeof ResizeObserver < "u") {
1451
- let t = new ResizeObserver(e);
1452
- return t.observe(w.current), () => t.disconnect();
1453
- }
1454
- }, [
1455
- j,
1456
- t,
1457
- _,
1458
- v
1459
- ]), c(() => {
1460
- if (!j || !C.current || !w.current) return;
1461
- let e = () => {
1462
- if (!C.current || !w.current) return;
1463
- let e = C.current.getBoundingClientRect(), t = w.current.getBoundingClientRect().width || F.width || 80, n = w.current.getBoundingClientRect().height || F.height || 24, r = 0, a = 0;
1464
- switch (i) {
1465
- case "top":
1466
- a = e.top - n - f, r = l === "start" ? e.left + g : l === "end" ? e.right - t + g : e.left + e.width / 2 - t / 2 + g;
1467
- break;
1468
- case "bottom":
1469
- a = e.bottom + f, r = l === "start" ? e.left + g : l === "end" ? e.right - t + g : e.left + e.width / 2 - t / 2 + g;
1470
- break;
1471
- case "left":
1472
- r = e.left - t - f, a = l === "start" ? e.top + g : l === "end" ? e.bottom - n + g : e.top + e.height / 2 - n / 2 + g;
1473
- break;
1474
- case "right":
1475
- r = e.right + f, a = l === "start" ? e.top + g : l === "end" ? e.bottom - n + g : e.top + e.height / 2 - n / 2 + g;
1476
- break;
1477
- }
1478
- P({
1479
- x: Math.min(Math.max(r, 4), window.innerWidth - t - 4),
1480
- y: Math.min(Math.max(a, 4), window.innerHeight - n - 4)
1481
- });
1482
- };
1483
- e(), requestAnimationFrame(() => requestAnimationFrame(e));
1484
- }, [
1485
- j,
1486
- i,
1487
- l,
1488
- f,
1489
- g,
1490
- F.width,
1491
- F.height,
1492
- t
1493
- ]), o(() => {
1494
- if (!j) return;
1495
- let e = () => {
1496
- if (!C.current || !w.current) return;
1497
- let e = C.current.getBoundingClientRect(), t = F.width || 80, n = F.height || 24, r = 0, a = 0;
1498
- switch (i) {
1499
- case "top":
1500
- a = e.top - n - f, r = l === "start" ? e.left + g : l === "end" ? e.right - t + g : e.left + e.width / 2 - t / 2 + g;
1501
- break;
1502
- case "bottom":
1503
- a = e.bottom + f, r = l === "start" ? e.left + g : l === "end" ? e.right - t + g : e.left + e.width / 2 - t / 2 + g;
1504
- break;
1505
- case "left":
1506
- r = e.left - t - f, a = l === "start" ? e.top + g : l === "end" ? e.bottom - n + g : e.top + e.height / 2 - n / 2 + g;
1507
- break;
1508
- case "right":
1509
- r = e.right + f, a = l === "start" ? e.top + g : l === "end" ? e.bottom - n + g : e.top + e.height / 2 - n / 2 + g;
1510
- break;
1511
- }
1512
- P({
1513
- x: Math.min(Math.max(r, 4), window.innerWidth - t - 4),
1514
- y: Math.min(Math.max(a, 4), window.innerHeight - n - 4)
1515
- });
1516
- };
1517
- return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
1518
- window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
1519
- };
1520
- }, [
1521
- j,
1522
- i,
1523
- l,
1524
- f,
1525
- g,
1526
- F.width,
1527
- F.height
1528
- ]);
1529
- let ne = _ ? /* @__PURE__ */ m("div", {
1530
- className: Le.keyHint,
1531
- "aria-hidden": !0,
1532
- children: /* @__PURE__ */ m(E, {
1533
- variant: "text-caption-emphasis",
1534
- as: "span",
1535
- color: "primary",
1536
- children: _
1537
- })
1538
- }) : null, V = j ? /* @__PURE__ */ m("div", {
1539
- ref: w,
1540
- id: T,
1541
- className: `${Le.tooltip} ${ee ? Le.closing : ""}`,
1542
- style: {
1543
- position: "fixed",
1544
- left: 0,
1545
- top: 0,
1546
- transform: `translate(${Math.round(N.x)}px, ${Math.round(N.y)}px)`,
1547
- willChange: "transform",
1548
- zIndex: 1e4
1549
- },
1550
- role: "tooltip",
1551
- onMouseEnter: te,
1552
- onMouseLeave: B,
1553
- children: /* @__PURE__ */ h("div", {
1554
- className: Le.tooltipInner,
1555
- children: [
1556
- _ && v === "start" && ne,
1557
- /* @__PURE__ */ m(E, {
1558
- variant: "text-body-small",
1559
- as: "span",
1560
- color: "primary",
1561
- children: t
1562
- }),
1563
- _ && v === "end" && ne
1564
- ]
1565
- })
1566
- }) : null, re = e.Children.only(n), H = e.isValidElement(re) ? re : null, ie = [H?.props["aria-describedby"], j ? T : void 0].filter(Boolean).join(" ") || void 0;
1567
- return /* @__PURE__ */ h(p, { children: [H ? e.cloneElement(H, {
1568
- ref: D,
1569
- "aria-describedby": ie,
1570
- onMouseEnter: (e) => {
1571
- te(), H.props.onMouseEnter?.(e);
1572
- },
1573
- onMouseLeave: (e) => {
1574
- B(), H.props.onMouseLeave?.(e);
1575
- },
1576
- onFocus: (e) => {
1577
- te(), H.props.onFocus?.(e);
1578
- },
1579
- onBlur: (e) => {
1580
- B(), H.props.onBlur?.(e);
1581
- }
1582
- }) : n, b ? y(V, document.body) : V] });
1583
- };
1584
- He.displayName = "Tooltip";
1585
- var Ue = {
1586
- selectWrapper: "_selectWrapper_17kkf_1",
1587
- selectButton: "_selectButton_17kkf_6",
1588
- chevron: "_chevron_17kkf_26"
1589
- }, We = r(({ value: e, onChange: t, options: n, placeholder: r = "Select option", className: i, inactive: c = !1, id: l, chevronIcon: f, "aria-label": p, "aria-labelledby": g }, _) => {
1590
- let [v, y] = d(!1), [b, x] = d(-1), S = u(null), C = s(), w = l ?? `select-${C}`, T = `${w}-listbox`, D = a((e) => `${w}-option-${e}`, [w]), O = n.findIndex((t) => t.value === e), k = O >= 0 ? n[O] : void 0, ee = k?.label || r, A = a((e) => {
1591
- let r = n[e];
1592
- r && (t(r.value), y(!1));
1593
- }, [n, t]), j = a((e) => {
1594
- c || n.length === 0 || (x(Math.max(0, Math.min(n.length - 1, e))), y(!0));
1595
- }, [c, n.length]);
1596
- o(() => {
1597
- x(v ? (e) => e >= 0 && e < n.length ? e : O >= 0 ? O : 0 : -1);
1598
- }, [
1599
- v,
1600
- n.length,
1601
- O
1602
- ]);
1603
- let M = n.map((t, n) => ({
1604
- label: t.label,
1605
- onClick: () => A(n),
1606
- isSelected: t.value === e
1607
- })), P = () => {
1608
- c || (v ? y(!1) : j(O >= 0 ? O : 0));
1609
- }, F = (e) => {
1610
- if (c || n.length === 0) return;
1611
- let t = n.length - 1;
1612
- if (!v) switch (e.key) {
1613
- case "ArrowDown":
1614
- case "ArrowUp":
1615
- case "Enter":
1616
- case " ":
1617
- e.preventDefault(), j(O >= 0 ? O : 0);
1618
- return;
1619
- case "Home":
1620
- e.preventDefault(), j(0);
1621
- return;
1622
- case "End":
1623
- e.preventDefault(), j(t);
1624
- return;
1625
- default: return;
1626
- }
1627
- switch (e.key) {
1628
- case "ArrowDown":
1629
- e.preventDefault(), x((e) => Math.min(t, (e < 0 ? -1 : e) + 1));
1630
- break;
1631
- case "ArrowUp":
1632
- e.preventDefault(), x((e) => Math.max(0, (e < 0 ? n.length : e) - 1));
1633
- break;
1634
- case "Home":
1635
- e.preventDefault(), x(0);
1636
- break;
1637
- case "End":
1638
- e.preventDefault(), x(t);
1639
- break;
1640
- case "Enter":
1641
- case " ":
1642
- e.preventDefault(), b >= 0 && A(b);
1643
- break;
1644
- case "Escape":
1645
- e.preventDefault(), y(!1);
1646
- break;
1647
- case "Tab":
1648
- y(!1);
1649
- break;
1650
- }
1651
- }, I = v && b >= 0 ? D(b) : void 0;
1652
- return /* @__PURE__ */ h("div", {
1653
- ref: _,
1654
- className: `${Ue.selectWrapper} ${i || ""}`,
1655
- children: [/* @__PURE__ */ h(N, {
1656
- id: w,
1657
- ref: S,
1658
- as: "button",
1659
- type: "button",
1660
- elevation: "elevated",
1661
- radius: "sm",
1662
- interactive: !0,
1663
- selected: v,
1664
- className: Ue.selectButton,
1665
- onClick: P,
1666
- onKeyDown: F,
1667
- inactive: c,
1668
- role: "combobox",
1669
- "aria-haspopup": "listbox",
1670
- "aria-expanded": v,
1671
- "aria-controls": v ? T : void 0,
1672
- "aria-activedescendant": I,
1673
- "aria-label": p,
1674
- "aria-labelledby": g,
1675
- children: [/* @__PURE__ */ m(E, {
1676
- variant: "text-body-medium",
1677
- as: "span",
1678
- color: k ? "primary" : "secondary",
1679
- children: ee
1680
- }), f && /* @__PURE__ */ m("span", {
1681
- className: Ue.chevron,
1682
- children: /* @__PURE__ */ m(f, { size: 16 })
1683
- })]
1684
- }), /* @__PURE__ */ m(Ie, {
1685
- isOpen: v,
1686
- onClose: () => y(!1),
1687
- anchorRef: S,
1688
- items: M,
1689
- side: "bottom",
1690
- align: "start",
1691
- sideOffset: 4,
1692
- alignOffset: -4,
1693
- matchAnchorWidth: !0,
1694
- matchAnchorWidthOffset: 8,
1695
- role: "listbox",
1696
- id: T,
1697
- activeIndex: b,
1698
- getOptionId: D
1699
- })]
1700
- });
1701
- });
1702
- We.displayName = "Select";
1703
- var Z = {
1704
- bannerWrapper: "_bannerWrapper_1vv8f_1",
1705
- banner: "_banner_1vv8f_1",
1706
- bannerHeaderSurface: "_bannerHeaderSurface_1vv8f_10",
1707
- bannerHeader: "_bannerHeader_1vv8f_10",
1708
- bannerBody: "_bannerBody_1vv8f_30",
1709
- message: "_message_1vv8f_38",
1710
- dismiss: "_dismiss_1vv8f_46",
1711
- floatingPosition: "_floatingPosition_1vv8f_79",
1712
- floatingToast: "_floatingToast_1vv8f_87",
1713
- toastFadeIn: "_toastFadeIn_1vv8f_1",
1714
- closing: "_closing_1vv8f_93",
1715
- toastFadeOut: "_toastFadeOut_1vv8f_1"
1716
- }, Ge = 4e3, Ke = 200, qe = (e, t) => t === "bold" ? "var(--color-foreground-on-bold-background-primary)" : `var(--color-foreground-${t === "faint" ? "bold" : t === "medium" ? "strong" : "medium"}-${e})`, Je = ({ intent: e, contrast: t, message: n, header: r = !1, className: i = "", floating: s = !1, onDismiss: c, dismissLabel: l = "Dismiss" }) => {
1717
- let f = Ne("--effect-animation-delay-long-2", Ge), p = qe(e, t), [g, v] = d(!1), b = u(null), x = u(null), S = a(() => {
1718
- b.current && clearTimeout(b.current), x.current && clearTimeout(x.current), b.current = null, s ? (v(!0), x.current = setTimeout(() => {
1719
- x.current = null, c?.();
1720
- }, Ke)) : c?.();
1721
- }, [s, c]), C = a(() => {
1722
- b.current && clearTimeout(b.current), b.current = setTimeout(() => {
1723
- b.current = null, S();
1724
- }, f);
1725
- }, [S, f]);
1726
- o(() => (s && n && C(), () => {
1727
- b.current && clearTimeout(b.current), x.current && clearTimeout(x.current);
1728
- }), [
1729
- s,
1730
- n,
1731
- C
1732
- ]);
1733
- let w = e === "negative", T = w ? "alert" : "status", D = w ? void 0 : "polite", O = /* @__PURE__ */ m("div", {
1734
- className: `${Z.bannerWrapper} ${i}`.trim(),
1735
- style: { "--banner-content": p },
1736
- role: T,
1737
- "aria-live": D,
1738
- children: /* @__PURE__ */ h(N, {
1739
- elevation: s ? "floating" : "elevated",
1740
- intent: e,
1741
- contrast: t,
1742
- radius: "sm",
1743
- className: Z.banner,
1744
- children: [r && /* @__PURE__ */ m("div", {
1745
- className: Z.bannerHeaderSurface,
1746
- children: /* @__PURE__ */ m("div", {
1747
- className: Z.bannerHeader,
1748
- "aria-hidden": !0
1749
- })
1750
- }), /* @__PURE__ */ h("div", {
1751
- className: Z.bannerBody,
1752
- children: [/* @__PURE__ */ m(E, {
1753
- variant: "text-body-medium",
1754
- as: "span",
1755
- className: Z.message,
1756
- children: n
1757
- }), c && /* @__PURE__ */ m("button", {
1758
- type: "button",
1759
- className: Z.dismiss,
1760
- onClick: S,
1761
- "aria-label": l,
1762
- children: /* @__PURE__ */ m(_, { size: 16 })
1763
- })]
1764
- })]
1765
- })
1766
- });
1767
- return s ? y(/* @__PURE__ */ m("div", {
1768
- className: Z.floatingPosition,
1769
- style: { zIndex: 9998 },
1770
- children: /* @__PURE__ */ m("div", {
1771
- className: `${Z.floatingToast} ${g ? Z.closing : ""}`,
1772
- children: O
1773
- })
1774
- }), document.body) : O;
1775
- };
1776
- Je.displayName = "Banner";
1777
- var Q = {
1778
- tableWrapper: "_tableWrapper_b4sqy_1",
1779
- tableScroll: "_tableScroll_b4sqy_9",
1780
- table: "_table_b4sqy_1",
1781
- headerRow: "_headerRow_b4sqy_20",
1782
- headerCell: "_headerCell_b4sqy_24",
1783
- sortable: "_sortable_b4sqy_38",
1784
- sortIndicator: "_sortIndicator_b4sqy_51",
1785
- row: "_row_b4sqy_56",
1786
- cell: "_cell_b4sqy_60",
1787
- rowSelected: "_rowSelected_b4sqy_64",
1788
- rowClickable: "_rowClickable_b4sqy_68",
1789
- alignRight: "_alignRight_b4sqy_87",
1790
- alignCenter: "_alignCenter_b4sqy_88",
1791
- emptyRow: "_emptyRow_b4sqy_90",
1792
- skeleton: "_skeleton_b4sqy_98",
1793
- shimmer: "_shimmer_b4sqy_1",
1794
- pagination: "_pagination_b4sqy_112",
1795
- pageButton: "_pageButton_b4sqy_122"
1796
- };
1797
- //#endregion
1798
- //#region src/components/Table/Table.tsx
1799
- function Ye(e, t) {
1800
- if (e.accessorKey) return t[e.accessorKey];
1801
- if (e.accessor) return e.accessor(t);
1802
- }
1803
- function Xe(e, t, n) {
1804
- let r = n === "asc" ? 1 : -1;
1805
- return e == null && t == null ? 0 : e == null ? r : t == null ? -r : typeof e == "number" && typeof t == "number" ? (e - t) * r : String(e).localeCompare(String(t)) * r;
1806
- }
1807
- function Ze({ columns: e, data: t, sortState: n, onSort: r, className: i, onRowClick: a, selectedRows: o, loading: s = !1, pagination: c, onPaginationChange: u, emptyMessage: d = "No results found." }) {
1808
- let f = l(() => e.filter((e) => !e.hide), [e]), p = l(() => f.map((e) => e.width ? typeof e.width == "number" ? `${e.width}px` : e.width : "minmax(120px, 1fr)").join(" "), [f]), g = l(() => {
1809
- if (!n) return t;
1810
- let r = e.find((e) => e.id === n.columnId);
1811
- return r ? [...t].sort((e, t) => Xe(Ye(r, e), Ye(r, t), n.direction)) : t;
1812
- }, [
1813
- t,
1814
- e,
1815
- n
1816
- ]), _ = l(() => {
1817
- if (!c) return g;
1818
- let e = c.pageIndex * c.pageSize;
1819
- return g.slice(e, e + c.pageSize);
1820
- }, [g, c]), v = c ? Math.ceil(g.length / c.pageSize) : 1, y = !s && _.length === 0, b = (e) => {
1821
- r && r(e);
1822
- };
1823
- return /* @__PURE__ */ h("div", {
1824
- className: F(Q.tableWrapper, i),
1825
- "aria-busy": s || void 0,
1826
- children: [/* @__PURE__ */ m("div", {
1827
- className: Q.tableScroll,
1828
- children: /* @__PURE__ */ h("div", {
1829
- className: Q.table,
1830
- style: { gridTemplateColumns: p },
1831
- role: "table",
1832
- children: [
1833
- /* @__PURE__ */ m("div", {
1834
- className: Q.headerRow,
1835
- role: "row",
1836
- children: f.map((e) => {
1837
- let t = n?.columnId === e.id, r = e.sortable ? t ? n.direction === "asc" ? "ascending" : "descending" : "none" : void 0, i = () => e.sortable && b(e.id);
1838
- return /* @__PURE__ */ h("div", {
1839
- className: F(Q.headerCell, e.sortable && Q.sortable, e.align === "right" && Q.alignRight, e.align === "center" && Q.alignCenter),
1840
- role: "columnheader",
1841
- "aria-sort": r,
1842
- tabIndex: e.sortable ? 0 : void 0,
1843
- onClick: i,
1844
- onKeyDown: e.sortable ? (e) => {
1845
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i());
1846
- } : void 0,
1847
- style: e.minWidth ? { minWidth: typeof e.minWidth == "number" ? `${e.minWidth}px` : e.minWidth } : void 0,
1848
- children: [typeof e.header == "string" ? /* @__PURE__ */ m(E, {
1849
- variant: "text-body-small-emphasis",
1850
- as: "span",
1851
- color: "secondary",
1852
- children: e.header
1853
- }) : e.header, t && /* @__PURE__ */ m("span", {
1854
- className: Q.sortIndicator,
1855
- "aria-hidden": !0,
1856
- children: n.direction === "asc" ? "↑" : "↓"
1857
- })]
1858
- }, e.id);
1859
- })
1860
- }),
1861
- s && Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", {
1862
- className: Q.row,
1863
- role: t === 0 ? "status" : "row",
1864
- "aria-label": t === 0 ? "Loading" : void 0,
1865
- children: f.map((e) => /* @__PURE__ */ m("div", {
1866
- className: Q.cell,
1867
- role: "cell",
1868
- children: /* @__PURE__ */ m("div", { className: Q.skeleton })
1869
- }, e.id))
1870
- }, `skeleton-${t}`)),
1871
- y && /* @__PURE__ */ m("div", {
1872
- className: Q.emptyRow,
1873
- style: { gridColumn: "1 / -1" },
1874
- children: /* @__PURE__ */ m(E, {
1875
- variant: "text-body-medium",
1876
- as: "p",
1877
- color: "secondary",
1878
- children: d
1879
- })
1880
- }),
1881
- !s && _.map((e, t) => {
1882
- let n = o?.has(t), r = !!a;
1883
- return /* @__PURE__ */ m("div", {
1884
- className: F(Q.row, n && Q.rowSelected, r && Q.rowClickable),
1885
- role: "row",
1886
- tabIndex: r ? 0 : void 0,
1887
- "aria-selected": o ? !!n : void 0,
1888
- onClick: () => a?.(e, t),
1889
- onKeyDown: r ? (n) => {
1890
- (n.key === "Enter" || n.key === " ") && (n.preventDefault(), a?.(e, t));
1891
- } : void 0,
1892
- children: f.map((n) => /* @__PURE__ */ m("div", {
1893
- className: F(Q.cell, n.align === "right" && Q.alignRight, n.align === "center" && Q.alignCenter),
1894
- role: "cell",
1895
- children: n.renderCell ? n.renderCell(e, t) : /* @__PURE__ */ m(E, {
1896
- variant: "text-body-medium",
1897
- as: "span",
1898
- lineTruncation: 1,
1899
- children: String(Ye(n, e) ?? "")
1900
- })
1901
- }, n.id))
1902
- }, t);
1903
- })
1904
- ]
1905
- })
1906
- }), c && u && v > 1 && /* @__PURE__ */ h("div", {
1907
- className: Q.pagination,
1908
- children: [
1909
- /* @__PURE__ */ m("button", {
1910
- className: Q.pageButton,
1911
- disabled: c.pageIndex === 0,
1912
- onClick: () => u(c.pageIndex - 1, c.pageSize),
1913
- type: "button",
1914
- children: /* @__PURE__ */ m(E, {
1915
- variant: "text-body-small",
1916
- as: "span",
1917
- children: "Previous"
1918
- })
1919
- }),
1920
- /* @__PURE__ */ m(E, {
1921
- variant: "text-body-small",
1922
- as: "span",
1923
- color: "secondary",
1924
- children: `Page ${c.pageIndex + 1} of ${v}`
1925
- }),
1926
- /* @__PURE__ */ m("button", {
1927
- className: Q.pageButton,
1928
- disabled: c.pageIndex >= v - 1,
1929
- onClick: () => u(c.pageIndex + 1, c.pageSize),
1930
- type: "button",
1931
- children: /* @__PURE__ */ m(E, {
1932
- variant: "text-body-small",
1933
- as: "span",
1934
- children: "Next"
1935
- })
1936
- })
1937
- ]
1938
- })]
1939
- });
1940
- }
1941
- Ze.displayName = "Table";
1942
- var Qe = {
1943
- tab: "_tab_7ngwl_5",
1944
- tabSelected: "_tabSelected_7ngwl_33",
1945
- onMedium: "_onMedium_7ngwl_39",
1946
- onBold: "_onBold_7ngwl_44",
1947
- onStrong: "_onStrong_7ngwl_52",
1948
- onAlwaysDark: "_onAlwaysDark_7ngwl_60"
1949
- }, $e = r(({ id: e, controls: t, label: n, isSelected: r = !1, disabled: i = !1, background: a, onClick: o, onKeyDown: s, onFocus: c, tabIndex: l, className: u }, d) => {
1950
- let f = a && a !== "faint" ? Qe[a === "always-dark" ? "onAlwaysDark" : `on${a.charAt(0).toUpperCase() + a.slice(1)}`] : void 0, p = l ?? (r ? 0 : -1);
1951
- return /* @__PURE__ */ m("button", {
1952
- ref: d,
1953
- id: e,
1954
- className: F(Qe.tab, r && Qe.tabSelected, f, u),
1955
- onClick: o,
1956
- onKeyDown: s,
1957
- onFocus: c,
1958
- type: "button",
1959
- role: "tab",
1960
- "aria-selected": r,
1961
- "aria-controls": t,
1962
- "aria-disabled": i || void 0,
1963
- disabled: i,
1964
- tabIndex: p,
1965
- children: /* @__PURE__ */ m(E, {
1966
- variant: r ? "text-body-medium-emphasis" : "text-body-medium",
1967
- as: "span",
1968
- children: n
1969
- })
1970
- });
1971
- });
1972
- $e.displayName = "Tab";
1973
- var et = { emptyState: "_emptyState_1988v_1" }, tt = {
1974
- "no-content": "No page contents to display.",
1975
- "no-results": "No results found.",
1976
- "no-results-filter": "No results found. Please update search criteria.",
1977
- "no-access": "You don't have access to this page."
1978
- }, nt = r(({ type: e = "no-content", message: t, className: n }, r) => /* @__PURE__ */ m("div", {
1979
- ref: r,
1980
- className: F(et.emptyState, n),
1981
- children: /* @__PURE__ */ m(E, {
1982
- variant: "text-body-medium",
1983
- as: "p",
1984
- color: "secondary",
1985
- children: t || tt[e]
1986
- })
1987
- }));
1988
- nt.displayName = "EmptyState";
1989
- var rt = {
1990
- fade: "_fade_8nnao_1",
1991
- fadeTop: "_fadeTop_8nnao_13",
1992
- fadeBottom: "_fadeBottom_8nnao_18",
1993
- fadeLeft: "_fadeLeft_8nnao_23",
1994
- fadeRight: "_fadeRight_8nnao_28"
1995
- }, it = {
1996
- top: "fadeTop",
1997
- bottom: "fadeBottom",
1998
- left: "fadeLeft",
1999
- right: "fadeRight"
2000
- }, at = r(({ side: e, height: t, background: n = "var(--color-background-secondary)", className: r, style: i = {} }, a) => /* @__PURE__ */ m("div", {
2001
- ref: a,
2002
- className: F(rt.fade, rt[it[e]], r),
2003
- style: {
2004
- ...i,
2005
- height: t,
2006
- "--background": n
2007
- },
2008
- "aria-hidden": "true"
2009
- }));
2010
- at.displayName = "Fade";
2011
- var ot = {
2012
- container: "_container_1pmuk_1",
2013
- content: "_content_1pmuk_8",
2014
- track: "_track_1pmuk_25",
2015
- thumb: "_thumb_1pmuk_40",
2016
- trackHorizontal: "_trackHorizontal_1pmuk_54",
2017
- thumbHorizontal: "_thumbHorizontal_1pmuk_69",
2018
- thick: "_thick_1pmuk_83"
2019
- }, st = ({ children: e, className: t, variant: n = "default", showTrackOnHover: r = !0, onScroll: i, fadeOverlay: s, contentRef: c }) => {
2020
- let l = u(null), f = u(null), p = c || f, g = u(null), _ = u(null), [v, y] = d(0), [b, x] = d(0), [S, C] = d(0), [w, T] = d(0), [E, D] = d(!1), [O, k] = d(!1), [ee, A] = d(!1), j = u(0), M = u(0), N = u(0), P = u(0), I = a(() => {
2021
- r && A(!0);
2022
- }, [r]), L = a(() => {
2023
- A(!1);
2024
- }, []), R = a(() => {
2025
- let e = l.current, t = p.current;
2026
- if (!e || !t) return;
2027
- let n = e.clientHeight, r = e.clientWidth, i = t.scrollHeight, a = t.scrollWidth, o = t.scrollTop, s = t.scrollLeft;
2028
- if (i <= n) y(0);
2029
- else {
2030
- let e = n / i, t = Math.max(20, n * e);
2031
- y(t), x(o / (i - n) * (n - t));
2032
- }
2033
- if (a <= r) C(0);
2034
- else {
2035
- let e = r / a, t = Math.max(20, r * e);
2036
- C(t), T(s / (a - r) * (r - t));
2037
- }
2038
- }, [p]);
2039
- o(() => {
2040
- let e = p.current;
2041
- if (!e) return;
2042
- let t = (e) => {
2043
- R(), i && i(e);
2044
- };
2045
- return e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
2046
- }, [
2047
- R,
2048
- i,
2049
- p
2050
- ]), o(() => {
2051
- let e = p.current;
2052
- if (!e) return;
2053
- let t = () => R();
2054
- if (window.addEventListener("resize", t), typeof ResizeObserver < "u") {
2055
- let n = new ResizeObserver(t);
2056
- return n.observe(e), () => {
2057
- window.removeEventListener("resize", t), n.disconnect();
2058
- };
2059
- }
2060
- return () => window.removeEventListener("resize", t);
2061
- }, [R, p]), o(() => {
2062
- R();
2063
- }, [R, e]);
2064
- let z = a((e) => {
2065
- e.preventDefault(), e.stopPropagation();
2066
- let t = p.current;
2067
- if (!t) return;
2068
- D(!0), j.current = e.clientY, M.current = t.scrollTop;
2069
- let n = (e) => {
2070
- let n = l.current;
2071
- if (!n || !t) return;
2072
- let r = e.clientY - j.current, i = t.scrollHeight - n.clientHeight, a = i / (n.clientHeight - v);
2073
- t.scrollTop = Math.max(0, Math.min(i, M.current + r * a));
2074
- }, r = () => {
2075
- D(!1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", r);
2076
- };
2077
- document.addEventListener("mousemove", n), document.addEventListener("mouseup", r);
2078
- }, [v, p]), te = a((e) => {
2079
- e.preventDefault(), e.stopPropagation();
2080
- let t = p.current;
2081
- if (!t) return;
2082
- k(!0), N.current = e.clientX, P.current = t.scrollLeft;
2083
- let n = (e) => {
2084
- let n = l.current;
2085
- if (!n || !t) return;
2086
- let r = e.clientX - N.current, i = t.scrollWidth - n.clientWidth, a = i / (n.clientWidth - S);
2087
- t.scrollLeft = Math.max(0, Math.min(i, P.current + r * a));
2088
- }, r = () => {
2089
- k(!1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", r);
2090
- };
2091
- document.addEventListener("mousemove", n), document.addEventListener("mouseup", r);
2092
- }, [S, p]), B = v > 0, ne = S > 0, V = r && (ee || E || O), re = B || ne;
2093
- return /* @__PURE__ */ h("div", {
2094
- ref: l,
2095
- className: F(ot.container, n === "thick" && ot.thick, t),
2096
- onMouseEnter: I,
2097
- onMouseLeave: L,
2098
- "data-dragging": E || O,
2099
- "data-show-track": V ? "true" : "false",
2100
- children: [
2101
- /* @__PURE__ */ m("div", {
2102
- ref: p,
2103
- className: ot.content,
2104
- tabIndex: re ? 0 : void 0,
2105
- children: e
2106
- }),
2107
- s,
2108
- B && /* @__PURE__ */ m("div", {
2109
- className: ot.track,
2110
- "aria-hidden": "true",
2111
- children: /* @__PURE__ */ m("div", {
2112
- ref: g,
2113
- className: ot.thumb,
2114
- style: {
2115
- height: `${v}px`,
2116
- top: `${b}px`
2117
- },
2118
- onMouseDown: z
2119
- })
2120
- }),
2121
- ne && /* @__PURE__ */ m("div", {
2122
- className: ot.trackHorizontal,
2123
- "aria-hidden": "true",
2124
- children: /* @__PURE__ */ m("div", {
2125
- ref: _,
2126
- className: ot.thumbHorizontal,
2127
- style: {
2128
- width: `${S}px`,
2129
- left: `${w}px`
2130
- },
2131
- onMouseDown: te
2132
- })
2133
- })
2134
- ]
2135
- });
2136
- };
2137
- st.displayName = "Scrollbar";
2138
- var ct = {
2139
- errorBoundary: "_errorBoundary_1avvb_1",
2140
- errorDetails: "_errorDetails_1avvb_11"
2141
- }, lt = class extends t {
2142
- constructor(e) {
2143
- super(e), this.handleReset = () => {
2144
- this.setState({
2145
- hasError: !1,
2146
- error: null
2147
- });
2148
- }, this.state = {
2149
- hasError: !1,
2150
- error: null
2151
- };
2152
- }
2153
- static getDerivedStateFromError(e) {
2154
- return {
2155
- hasError: !0,
2156
- error: e
2157
- };
2158
- }
2159
- componentDidCatch(e, t) {
2160
- console.error("ErrorBoundary caught an error:", e, t);
2161
- }
2162
- render() {
2163
- return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ h("div", {
2164
- className: ct.errorBoundary,
2165
- children: [/* @__PURE__ */ m(nt, { type: "no-content" }), /* @__PURE__ */ m("div", {
2166
- className: ct.errorDetails,
2167
- children: /* @__PURE__ */ m(E, {
2168
- variant: "text-body-small",
2169
- as: "p",
2170
- color: "secondary",
2171
- children: "Something went wrong. Please refresh the page."
2172
- })
2173
- })]
2174
- }) : this.props.children;
2175
- }
2176
- }, $ = {
2177
- sidebar: "_sidebar_3oy49_2",
2178
- resizing: "_resizing_3oy49_14",
2179
- collapsed: "_collapsed_3oy49_16",
2180
- mobile: "_mobile_3oy49_18",
2181
- mini: "_mini_3oy49_26",
2182
- itemLabel: "_itemLabel_3oy49_26",
2183
- itemBadge: "_itemBadge_3oy49_27",
2184
- sectionHeader: "_sectionHeader_3oy49_28",
2185
- backdrop: "_backdrop_3oy49_30",
2186
- content: "_content_3oy49_37",
2187
- footer: "_footer_3oy49_47",
2188
- resizeHandle: "_resizeHandle_3oy49_54",
2189
- section: "_section_3oy49_28",
2190
- sectionHeaderClickable: "_sectionHeaderClickable_3oy49_94",
2191
- sectionItems: "_sectionItems_3oy49_96",
2192
- itemWrapper: "_itemWrapper_3oy49_103",
2193
- item: "_item_3oy49_26",
2194
- itemSelected: "_itemSelected_3oy49_137",
2195
- itemDisabled: "_itemDisabled_3oy49_140",
2196
- itemIcon: "_itemIcon_3oy49_142",
2197
- subItems: "_subItems_3oy49_163"
2198
- }, ut = 56, dt = 240, ft = 480, pt = 180, mt = 140, ht = 16, gt = [
2199
- "a[href]",
2200
- "button:not([disabled])",
2201
- "input:not([disabled])",
2202
- "select:not([disabled])",
2203
- "textarea:not([disabled])",
2204
- "[tabindex]:not([tabindex=\"-1\"])"
2205
- ].join(","), _t = r(({ children: e, isCollapsed: t = !1, onToggle: n, width: r = "default", onWidthChange: i, resizable: s = !0, footer: c, className: l, isMobile: f = !1 }, g) => {
2206
- let _ = u(null), v = g || _, y = u(null), [b, x] = d(!1), S = r === "mini", C = r === "mini" ? ut : r === "default" ? dt : r, w = a((e) => {
2207
- if (!s || !i) return;
2208
- e.preventDefault(), x(!0);
2209
- let t = (e) => {
2210
- let t = e.clientX;
2211
- i(t < mt ? "mini" : t < pt ? "default" : t);
2212
- }, n = () => {
2213
- x(!1), document.removeEventListener("mousemove", t), document.removeEventListener("mouseup", n), document.body.style.cursor = "", document.body.style.userSelect = "";
2214
- };
2215
- document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", t), document.addEventListener("mouseup", n);
2216
- }, [s, i]), T = a((e) => {
2217
- if (!(!s || !i)) switch (e.key) {
2218
- case "ArrowLeft": {
2219
- if (e.preventDefault(), r === "mini") return;
2220
- let t = C - ht;
2221
- i(t < pt ? "mini" : t);
2222
- break;
2223
- }
2224
- case "ArrowRight":
2225
- if (e.preventDefault(), r === "mini") {
2226
- i("default");
2227
- return;
2228
- }
2229
- i(Math.min(C + ht, ft));
2230
- break;
2231
- case "Home":
2232
- e.preventDefault(), i("mini");
2233
- break;
2234
- case "End":
2235
- e.preventDefault(), i(ft);
2236
- break;
2237
- }
2238
- }, [
2239
- s,
2240
- i,
2241
- r,
2242
- C
2243
- ]);
2244
- o(() => {
2245
- if (!f || t) return;
2246
- let e = (e) => {
2247
- e.key === "Escape" && n?.();
2248
- };
2249
- return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2250
- }, [
2251
- f,
2252
- t,
2253
- n
2254
- ]);
2255
- let E = f && !t;
2256
- if (o(() => {
2257
- if (!E) return;
2258
- y.current = document.activeElement ?? null;
2259
- let e = v.current;
2260
- if (!e) return;
2261
- let t = () => Array.from(e.querySelectorAll(gt)).filter((e) => !e.hasAttribute("aria-hidden") && e.offsetParent !== null);
2262
- (t()[0] ?? e).focus();
2263
- let n = (n) => {
2264
- if (n.key !== "Tab") return;
2265
- let r = t();
2266
- if (r.length === 0) {
2267
- n.preventDefault(), e.focus();
2268
- return;
2269
- }
2270
- let i = r[0], a = r[r.length - 1], o = document.activeElement;
2271
- n.shiftKey && (o === i || !e.contains(o)) ? (n.preventDefault(), a.focus()) : !n.shiftKey && (o === a || !e.contains(o)) && (n.preventDefault(), i.focus());
2272
- };
2273
- return document.addEventListener("keydown", n), () => {
2274
- document.removeEventListener("keydown", n), y.current?.focus?.(), y.current = null;
2275
- };
2276
- }, [E, v]), t && !f) return null;
2277
- let D = E ? {
2278
- role: "dialog",
2279
- "aria-modal": !0,
2280
- tabIndex: -1
2281
- } : { role: "navigation" };
2282
- return /* @__PURE__ */ h(p, { children: [f && !t && /* @__PURE__ */ m("div", {
2283
- className: $.backdrop,
2284
- onClick: n,
2285
- "aria-hidden": "true"
2286
- }), /* @__PURE__ */ h("aside", {
2287
- ref: v,
2288
- className: F($.sidebar, S && $.mini, f && $.mobile, t && $.collapsed, b && $.resizing, l),
2289
- style: { width: t ? 0 : C },
2290
- "aria-label": "Sidebar",
2291
- ...D,
2292
- children: [
2293
- /* @__PURE__ */ m("div", {
2294
- className: $.content,
2295
- children: e
2296
- }),
2297
- c && /* @__PURE__ */ m("div", {
2298
- className: $.footer,
2299
- children: c
2300
- }),
2301
- s && !f && /* @__PURE__ */ m("div", {
2302
- className: $.resizeHandle,
2303
- onMouseDown: w,
2304
- onKeyDown: T,
2305
- role: "separator",
2306
- "aria-orientation": "vertical",
2307
- "aria-label": "Resize sidebar",
2308
- "aria-valuenow": C,
2309
- "aria-valuemin": ut,
2310
- "aria-valuemax": ft,
2311
- tabIndex: 0
2312
- })
2313
- ]
2314
- })] });
2315
- });
2316
- _t.displayName = "Sidebar";
2317
- //#endregion
2318
- //#region src/components/Sidebar/SidebarSection.tsx
2319
- var vt = r(({ label: e, children: t, collapsible: n = !1, defaultCollapsed: r = !1, className: i }, a) => {
2320
- let [o, s] = d(r);
2321
- return /* @__PURE__ */ h("div", {
2322
- ref: a,
2323
- className: F($.section, i),
2324
- children: [e && /* @__PURE__ */ m("div", {
2325
- className: F($.sectionHeader, n && $.sectionHeaderClickable),
2326
- onClick: n ? () => s((e) => !e) : void 0,
2327
- role: n ? "button" : void 0,
2328
- "aria-expanded": n ? !o : void 0,
2329
- children: /* @__PURE__ */ m(E, {
2330
- variant: "text-caption-emphasis",
2331
- as: "span",
2332
- color: "tertiary",
2333
- children: e
2334
- })
2335
- }), !o && /* @__PURE__ */ m("div", {
2336
- className: $.sectionItems,
2337
- children: t
2338
- })]
2339
- });
2340
- });
2341
- vt.displayName = "SidebarSection";
2342
- //#endregion
2343
- //#region src/components/Sidebar/SidebarItem.tsx
2344
- var yt = r(({ label: e, icon: t, isSelected: n = !1, isDisabled: r = !1, onClick: i, badge: a, children: o, className: s }, c) => /* @__PURE__ */ h("div", {
2345
- className: F($.itemWrapper, s),
2346
- children: [/* @__PURE__ */ h("button", {
2347
- ref: c,
2348
- className: F($.item, n && $.itemSelected, r && $.itemDisabled),
2349
- onClick: i,
2350
- disabled: r,
2351
- type: "button",
2352
- "aria-current": n ? "page" : void 0,
2353
- children: [
2354
- t && /* @__PURE__ */ m("span", {
2355
- className: $.itemIcon,
2356
- children: /* @__PURE__ */ m(t, { size: 20 })
2357
- }),
2358
- /* @__PURE__ */ m(E, {
2359
- variant: n ? "text-body-medium-emphasis" : "text-body-medium",
2360
- as: "span",
2361
- className: $.itemLabel,
2362
- lineTruncation: 1,
2363
- children: e
2364
- }),
2365
- a && /* @__PURE__ */ m("span", {
2366
- className: $.itemBadge,
2367
- children: a
2368
- })
2369
- ]
2370
- }), o && n && /* @__PURE__ */ m("div", {
2371
- className: $.subItems,
2372
- children: o
2373
- })]
2374
- }));
2375
- yt.displayName = "SidebarItem";
2376
- var bt = {
2377
- header: "_header_1902d_1",
2378
- left: "_left_1902d_11",
2379
- center: "_center_1902d_19",
2380
- right: "_right_1902d_28"
2381
- }, xt = r(({ title: e, left: t, center: n, right: r, background: i = "secondary", className: a }, o) => /* @__PURE__ */ h(N, {
2382
- ref: o,
2383
- as: "header",
2384
- background: i,
2385
- elevation: "none",
2386
- edge: "bottom",
2387
- className: F(bt.header, a),
2388
- children: [
2389
- /* @__PURE__ */ h("div", {
2390
- className: bt.left,
2391
- children: [t, e && !n && /* @__PURE__ */ m(E, {
2392
- variant: "text-title-small",
2393
- as: "h1",
2394
- lineTruncation: 1,
2395
- children: e
2396
- })]
2397
- }),
2398
- n && /* @__PURE__ */ m("div", {
2399
- className: bt.center,
2400
- children: n
2401
- }),
2402
- /* @__PURE__ */ m("div", {
2403
- className: bt.right,
2404
- children: r
2405
- })
2406
- ]
2407
- }));
2408
- xt.displayName = "Header";
2409
- var St = {
2410
- group: "_group_9khnl_1",
2411
- horizontal: "_horizontal_9khnl_7",
2412
- radio: "_radio_9khnl_14",
2413
- inactive: "_inactive_9khnl_31",
2414
- circle: "_circle_9khnl_39",
2415
- circleChecked: "_circleChecked_9khnl_52",
2416
- dot: "_dot_9khnl_56"
2417
- }, Ct = r(({ value: e, onChange: t, options: n, "aria-label": r, "aria-labelledby": i, direction: a = "vertical", inactive: o = !1, className: s }, c) => {
2418
- !r && !i && globalThis.process?.env?.NODE_ENV !== "production" && console.warn("RadioGroup: an accessible name is required. Pass either `aria-label` or `aria-labelledby`.");
2419
- let l = u([]), d = (e) => e >= 0 && e < n.length && !o && !n[e].inactive, f = n.reduce((e, t, n) => (d(n) && e.push(n), e), []), p = n.findIndex((t) => t.value === e), h = d(p) ? p : f[0] ?? -1, g = (r) => {
2420
- l.current[r]?.focus(), n[r].value !== e && t(n[r].value);
2421
- }, _ = (e, t) => {
2422
- if (f.length === 0) return;
2423
- let n = f.indexOf(e);
2424
- g(f[((n === -1 ? t === 1 ? -1 : 0 : n) + t + f.length) % f.length]);
2425
- };
2426
- return /* @__PURE__ */ m("div", {
2427
- ref: c,
2428
- role: "radiogroup",
2429
- "aria-label": r,
2430
- "aria-labelledby": i,
2431
- onKeyDown: (e) => {
2432
- let t = e.target, n = l.current.findIndex((e) => e === t);
2433
- if (n !== -1) switch (e.key) {
2434
- case "ArrowDown":
2435
- case "ArrowRight":
2436
- e.preventDefault(), _(n, 1);
2437
- break;
2438
- case "ArrowUp":
2439
- case "ArrowLeft":
2440
- e.preventDefault(), _(n, -1);
2441
- break;
2442
- case "Home":
2443
- e.preventDefault(), f.length && g(f[0]);
2444
- break;
2445
- case "End":
2446
- e.preventDefault(), f.length && g(f[f.length - 1]);
2447
- break;
2448
- }
2449
- },
2450
- className: F(St.group, a === "horizontal" && St.horizontal, s),
2451
- children: n.map((n, r) => /* @__PURE__ */ m(wt, {
2452
- ref: (e) => {
2453
- l.current[r] = e;
2454
- },
2455
- label: n.label,
2456
- checked: e === n.value,
2457
- inactive: o || n.inactive,
2458
- tabIndex: r === h ? 0 : -1,
2459
- onChange: () => t(n.value)
2460
- }, n.value))
2461
- });
2462
- });
2463
- Ct.displayName = "RadioGroup";
2464
- var wt = r(({ label: e, checked: t = !1, onChange: n, inactive: r = !1, tabIndex: i, className: a }, o) => {
2465
- let s = () => {
2466
- !r && !t && n?.();
2467
- };
2468
- return /* @__PURE__ */ h("div", {
2469
- ref: o,
2470
- role: "radio",
2471
- "aria-checked": t,
2472
- "aria-disabled": r || void 0,
2473
- tabIndex: i ?? (r ? -1 : 0),
2474
- className: F(St.radio, r && St.inactive, a),
2475
- onClick: s,
2476
- onKeyDown: (e) => {
2477
- (e.key === " " || e.key === "Enter") && (e.preventDefault(), s());
2478
- },
2479
- children: [/* @__PURE__ */ m("span", {
2480
- className: F(St.circle, t && St.circleChecked),
2481
- children: t && /* @__PURE__ */ m("span", { className: St.dot })
2482
- }), /* @__PURE__ */ m(E, {
2483
- variant: "text-body-medium",
2484
- as: "span",
2485
- color: "inherit",
2486
- children: e
2487
- })]
2488
- });
2489
- });
2490
- wt.displayName = "RadioItem";
2491
- var Tt = {
2492
- tabGroup: "_tabGroup_1kx0a_1",
2493
- tabsRow: "_tabsRow_1kx0a_7",
2494
- track: "_track_1kx0a_12",
2495
- indicator: "_indicator_1kx0a_18"
2496
- }, Et = r(({ tabs: e, activeIndex: t = 0, onTabChange: n, orientation: r = "horizontal", className: i, "aria-label": s, "aria-labelledby": c }, l) => {
2497
- let f = u([]), [p, g] = d({
2498
- left: 0,
2499
- width: 0
2500
- }), _ = a(() => {
2501
- let e = f.current[t];
2502
- e && g({
2503
- left: e.offsetLeft,
2504
- width: e.offsetWidth
2505
- });
2506
- }, [t]);
2507
- o(() => {
2508
- _();
2509
- }, [_]), o(() => {
2510
- let e = new ResizeObserver(_), t = f.current[0]?.parentElement;
2511
- return t && e.observe(t), () => e.disconnect();
2512
- }, [_]);
2513
- let v = a((t, n) => {
2514
- let r = e.length;
2515
- if (r === 0) return t;
2516
- let i = t;
2517
- for (let t = 0; t < r; t++) if (i = (i + n + r) % r, !e[i].disabled) return i;
2518
- return t;
2519
- }, [e]), y = a((e) => {
2520
- e !== t && n?.(e), f.current[e]?.focus();
2521
- }, [t, n]);
2522
- return /* @__PURE__ */ h("div", {
2523
- ref: l,
2524
- role: "tablist",
2525
- "aria-label": s,
2526
- "aria-labelledby": c,
2527
- "aria-orientation": r === "vertical" ? "vertical" : void 0,
2528
- onKeyDown: (n) => {
2529
- let i = r !== "vertical", a = i ? "ArrowRight" : "ArrowDown", o = i ? "ArrowLeft" : "ArrowUp", s = null;
2530
- n.key === a ? s = v(t, 1) : n.key === o ? s = v(t, -1) : n.key === "Home" ? s = v(-1, 1) : n.key === "End" && (s = v(e.length, -1)), s !== null && (n.preventDefault(), y(s));
2531
- },
2532
- className: F(Tt.tabGroup, i),
2533
- children: [/* @__PURE__ */ m("div", {
2534
- className: Tt.tabsRow,
2535
- children: e.map((e, r) => /* @__PURE__ */ m($e, {
2536
- ref: (e) => {
2537
- f.current[r] = e;
2538
- },
2539
- id: e.id,
2540
- controls: e.panelId,
2541
- label: e.label,
2542
- isSelected: r === t,
2543
- disabled: e.disabled,
2544
- onClick: () => n?.(r)
2545
- }, e.id ?? r))
2546
- }), /* @__PURE__ */ m("div", {
2547
- className: Tt.track,
2548
- children: /* @__PURE__ */ m("div", {
2549
- className: Tt.indicator,
2550
- style: {
2551
- transform: `translateX(${p.left}px)`,
2552
- width: p.width
2553
- }
2554
- })
2555
- })]
2556
- });
2557
- });
2558
- Et.displayName = "TabGroup";
2559
- var Dt = {
2560
- accordion: "_accordion_15kid_1",
2561
- item: "_item_15kid_8",
2562
- inactive: "_inactive_15kid_16",
2563
- trigger: "_trigger_15kid_23",
2564
- chevron: "_chevron_15kid_44",
2565
- chevronOpen: "_chevronOpen_15kid_52",
2566
- body: "_body_15kid_58",
2567
- bodyInner: "_bodyInner_15kid_63"
2568
- }, Ot = r(({ items: e, multiple: t = !1, expandedIds: n, onExpandedChange: r, className: i }, a) => {
2569
- let [o, s] = d([]), c = n ?? o, l = (e) => {
2570
- let n;
2571
- n = c.includes(e) ? c.filter((t) => t !== e) : t ? [...c, e] : [e], s(n), r?.(n);
2572
- };
2573
- return /* @__PURE__ */ m("div", {
2574
- ref: a,
2575
- className: F(Dt.accordion, i),
2576
- children: e.map((e) => /* @__PURE__ */ m(kt, {
2577
- label: e.label,
2578
- isExpanded: c.includes(e.id),
2579
- inactive: e.inactive,
2580
- onToggle: () => l(e.id),
2581
- children: e.content
2582
- }, e.id))
2583
- });
2584
- });
2585
- Ot.displayName = "Accordion";
2586
- var kt = r(({ label: e, children: t, isExpanded: n = !1, onToggle: r, inactive: i = !1, className: c }, l) => {
2587
- let f = u(null), [p, g] = d(0), _ = s(), v = `${_}-trigger`, y = `${_}-panel`, b = a(() => {
2588
- f.current && g(f.current.scrollHeight);
2589
- }, []);
2590
- return o(() => {
2591
- b();
2592
- let e = f.current;
2593
- if (!e) return;
2594
- let t = new ResizeObserver(b);
2595
- return t.observe(e), () => t.disconnect();
2596
- }, [b]), /* @__PURE__ */ h("div", {
2597
- ref: l,
2598
- className: F(Dt.item, i && Dt.inactive, c),
2599
- children: [/* @__PURE__ */ h("button", {
2600
- type: "button",
2601
- id: v,
2602
- className: Dt.trigger,
2603
- onClick: () => !i && r?.(),
2604
- "aria-expanded": n,
2605
- "aria-controls": y,
2606
- "aria-disabled": i || void 0,
2607
- tabIndex: i ? -1 : 0,
2608
- children: [/* @__PURE__ */ m(E, {
2609
- variant: "text-body-medium-emphasis",
2610
- as: "span",
2611
- color: "inherit",
2612
- children: e
2613
- }), /* @__PURE__ */ m("span", {
2614
- className: F(Dt.chevron, n && Dt.chevronOpen),
2615
- children: "›"
2616
- })]
2617
- }), /* @__PURE__ */ m("div", {
2618
- id: y,
2619
- role: "region",
2620
- "aria-labelledby": v,
2621
- className: Dt.body,
2622
- style: { height: n ? p : 0 },
2623
- "aria-hidden": !n,
2624
- children: /* @__PURE__ */ m("div", {
2625
- ref: f,
2626
- className: Dt.bodyInner,
2627
- children: t
2628
- })
2629
- })]
2630
- });
2631
- });
2632
- kt.displayName = "AccordionItem";
2633
- var At = {
2634
- breadcrumb: "_breadcrumb_1xq6b_1",
2635
- list: "_list_1xq6b_6",
2636
- item: "_item_1xq6b_15",
2637
- link: "_link_1xq6b_21",
2638
- separator: "_separator_1xq6b_41"
2639
- }, jt = r(({ items: e, separator: t = "/", className: n }, r) => /* @__PURE__ */ m("nav", {
2640
- ref: r,
2641
- "aria-label": "Breadcrumb",
2642
- className: F(At.breadcrumb, n),
2643
- children: /* @__PURE__ */ m("ol", {
2644
- className: At.list,
2645
- children: e.map((n, r) => {
2646
- let i = r === e.length - 1;
2647
- return /* @__PURE__ */ m("li", {
2648
- className: At.item,
2649
- children: i ? /* @__PURE__ */ m(E, {
2650
- variant: "text-body-medium-emphasis",
2651
- as: "span",
2652
- color: "primary",
2653
- "aria-current": "page",
2654
- children: n.label
2655
- }) : /* @__PURE__ */ h(p, { children: [n.href ? /* @__PURE__ */ m("a", {
2656
- href: n.href,
2657
- className: At.link,
2658
- onClick: (e) => {
2659
- n.onClick && (e.preventDefault(), n.onClick());
2660
- },
2661
- children: /* @__PURE__ */ m(E, {
2662
- variant: "text-body-medium",
2663
- as: "span",
2664
- color: "inherit",
2665
- children: n.label
2666
- })
2667
- }) : /* @__PURE__ */ m("button", {
2668
- type: "button",
2669
- className: At.link,
2670
- onClick: n.onClick,
2671
- children: /* @__PURE__ */ m(E, {
2672
- variant: "text-body-medium",
2673
- as: "span",
2674
- color: "inherit",
2675
- children: n.label
2676
- })
2677
- }), /* @__PURE__ */ m("span", {
2678
- className: At.separator,
2679
- "aria-hidden": "true",
2680
- children: t
2681
- })] })
2682
- }, r);
2683
- })
2684
- })
2685
- }));
2686
- jt.displayName = "Breadcrumb";
2687
- var Mt = {
2688
- pagination: "_pagination_ax4c0_1",
2689
- inactive: "_inactive_ax4c0_9",
2690
- button: "_button_ax4c0_16",
2691
- active: "_active_ax4c0_45",
2692
- nav: "_nav_ax4c0_52",
2693
- ellipsis: "_ellipsis_ax4c0_58"
2694
- };
2695
- //#endregion
2696
- //#region src/components/Pagination/Pagination.tsx
2697
- function Nt(e, t) {
2698
- let n = [];
2699
- for (let r = e; r <= t; r++) n.push(r);
2700
- return n;
2701
- }
2702
- function Pt(e, t, n) {
2703
- if (t <= n * 2 + 5) return Nt(1, t);
2704
- let r = Math.max(e - n, 2), i = Math.min(e + n, t - 1), a = r > 2, o = i < t - 1;
2705
- return !a && o ? [
2706
- ...Nt(1, n * 2 + 3),
2707
- "ellipsis",
2708
- t
2709
- ] : a && !o ? [
2710
- 1,
2711
- "ellipsis",
2712
- ...Nt(t - (n * 2 + 2), t)
2713
- ] : [
2714
- 1,
2715
- "ellipsis",
2716
- ...Nt(r, i),
2717
- "ellipsis",
2718
- t
2719
- ];
2720
- }
2721
- var Ft = r(({ page: e, totalPages: t, onPageChange: n, siblingCount: r = 1, inactive: i = !1, className: a }, o) => {
2722
- let s = l(() => Pt(e, t, r), [
2723
- e,
2724
- t,
2725
- r
2726
- ]);
2727
- return t <= 1 ? null : /* @__PURE__ */ h("nav", {
2728
- ref: o,
2729
- "aria-label": "Pagination",
2730
- className: F(Mt.pagination, i && Mt.inactive, a),
2731
- children: [
2732
- /* @__PURE__ */ m("button", {
2733
- type: "button",
2734
- className: F(Mt.button, Mt.nav),
2735
- disabled: e <= 1 || i,
2736
- onClick: () => n(e - 1),
2737
- "aria-label": "Previous page",
2738
- children: /* @__PURE__ */ m(E, {
2739
- variant: "text-body-small",
2740
- as: "span",
2741
- color: "inherit",
2742
- children: "‹"
2743
- })
2744
- }),
2745
- s.map((t, r) => t === "ellipsis" ? /* @__PURE__ */ m("span", {
2746
- className: Mt.ellipsis,
2747
- children: /* @__PURE__ */ m(E, {
2748
- variant: "text-body-small",
2749
- as: "span",
2750
- color: "tertiary",
2751
- children: "…"
2752
- })
2753
- }, `e${r}`) : /* @__PURE__ */ m("button", {
2754
- type: "button",
2755
- className: F(Mt.button, t === e && Mt.active),
2756
- onClick: () => n(t),
2757
- "aria-current": t === e ? "page" : void 0,
2758
- disabled: i,
2759
- children: /* @__PURE__ */ m(E, {
2760
- variant: t === e ? "text-body-small-emphasis" : "text-body-small",
2761
- as: "span",
2762
- color: "inherit",
2763
- children: t
2764
- })
2765
- }, t)),
2766
- /* @__PURE__ */ m("button", {
2767
- type: "button",
2768
- className: F(Mt.button, Mt.nav),
2769
- disabled: e >= t || i,
2770
- onClick: () => n(e + 1),
2771
- "aria-label": "Next page",
2772
- children: /* @__PURE__ */ m(E, {
2773
- variant: "text-body-small",
2774
- as: "span",
2775
- color: "inherit",
2776
- children: "›"
2777
- })
2778
- })
2779
- ]
2780
- });
2781
- });
2782
- Ft.displayName = "Pagination";
2783
- var It = {
2784
- divider: "_divider_yo1st_1",
2785
- vertical: "_vertical_yo1st_9"
2786
- }, Lt = r(({ orientation: e = "horizontal", className: t }, n) => /* @__PURE__ */ m("hr", {
2787
- ref: n,
2788
- role: "separator",
2789
- "aria-orientation": e,
2790
- className: F(It.divider, e === "vertical" && It.vertical, t)
2791
- }));
2792
- Lt.displayName = "Divider";
2793
- var Rt = {
2794
- skeleton: "_skeleton_gebkr_1",
2795
- text: "_text_gebkr_9",
2796
- circular: "_circular_gebkr_15",
2797
- rectangular: "_rectangular_gebkr_21",
2798
- textGroup: "_textGroup_gebkr_29",
2799
- animate: "_animate_gebkr_37",
2800
- shimmer: "_shimmer_gebkr_1"
2801
- }, zt = r(({ variant: e = "text", width: t, height: n, lines: r = 1, animate: i = !0, className: a }, o) => e === "text" && r > 1 ? /* @__PURE__ */ m("div", {
2802
- ref: o,
2803
- className: F(Rt.textGroup, a),
2804
- style: { width: t },
2805
- children: Array.from({ length: r }, (e, t) => /* @__PURE__ */ m("div", {
2806
- className: F(Rt.skeleton, Rt.text, i && Rt.animate),
2807
- style: {
2808
- width: t === r - 1 ? "60%" : "100%",
2809
- height: n
2810
- }
2811
- }, t))
2812
- }) : /* @__PURE__ */ m("div", {
2813
- ref: o,
2814
- className: F(Rt.skeleton, Rt[e], i && Rt.animate, a),
2815
- style: {
2816
- width: t,
2817
- height: n
2818
- },
2819
- "aria-hidden": "true"
2820
- }));
2821
- zt.displayName = "Skeleton";
2822
- var Bt = {
2823
- container: "_container_ssyox_3",
2824
- topCenter: "_topCenter_ssyox_16",
2825
- topRight: "_topRight_ssyox_23",
2826
- bottomCenter: "_bottomCenter_ssyox_29",
2827
- bottomRight: "_bottomRight_ssyox_36",
2828
- toast: "_toast_ssyox_44",
2829
- slideIn: "_slideIn_ssyox_1",
2830
- toastExit: "_toastExit_ssyox_54",
2831
- fadeOut: "_fadeOut_ssyox_1",
2832
- dismiss: "_dismiss_ssyox_58"
2833
- }, Vt = [], Ht = /* @__PURE__ */ new Set();
2834
- function Ut() {
2835
- Ht.forEach((e) => e());
2836
- }
2837
- function Wt() {
2838
- return Vt;
2839
- }
2840
- function Gt(e) {
2841
- return Ht.add(e), () => {
2842
- Ht.delete(e);
2843
- };
2844
- }
2845
- var Kt = 0, qt = {
2846
- show(e) {
2847
- let t = `toast-${++Kt}`;
2848
- return Vt = [...Vt, {
2849
- id: t,
2850
- ...e
2851
- }], Ut(), t;
2852
- },
2853
- info(e, t) {
2854
- return qt.show({
2855
- message: e,
2856
- intent: "neutral",
2857
- ...t
2858
- });
2859
- },
2860
- success(e, t) {
2861
- return qt.show({
2862
- message: e,
2863
- intent: "positive",
2864
- ...t
2865
- });
2866
- },
2867
- error(e, t) {
2868
- return qt.show({
2869
- message: e,
2870
- intent: "negative",
2871
- ...t
2872
- });
2873
- },
2874
- warning(e, t) {
2875
- return qt.show({
2876
- message: e,
2877
- intent: "warning",
2878
- ...t
2879
- });
2880
- },
2881
- dismiss(e) {
2882
- Vt = Vt.filter((t) => t.id !== e), Ut();
2883
- },
2884
- dismissAll() {
2885
- Vt = [], Ut();
2886
- }
2887
- };
2888
- function Jt() {
2889
- return f(Gt, Wt, Wt);
2890
- }
2891
- var Yt = {
2892
- neutral: "neutral",
2893
- brand: "brand",
2894
- positive: "positive",
2895
- negative: "negative",
2896
- warning: "warning",
2897
- caution: "caution"
2898
- }, Xt = ({ data: e }) => {
2899
- let [t, n] = d(!1), r = u(void 0), i = u(e.duration ?? 4e3), s = u(0), c = u(!1), l = a(() => {
2900
- n(!0), setTimeout(() => {
2901
- qt.dismiss(e.id), e.onDismiss?.();
2902
- }, 200);
2903
- }, [e]), f = a(() => {
2904
- r.current &&= (clearTimeout(r.current), void 0);
2905
- }, []), p = a((e) => {
2906
- e <= 0 || (s.current = Date.now(), r.current = setTimeout(l, e));
2907
- }, [l]), g = a(() => {
2908
- if (c.current || !r.current) return;
2909
- c.current = !0;
2910
- let e = Date.now() - s.current;
2911
- i.current = Math.max(0, i.current - e), f();
2912
- }, [f]), _ = a(() => {
2913
- c.current && (c.current = !1, p(i.current));
2914
- }, [p]);
2915
- o(() => (i.current = e.duration ?? 4e3, c.current = !1, p(i.current), f), [
2916
- e.duration,
2917
- p,
2918
- f
2919
- ]);
2920
- let v = e.intent === "negative";
2921
- return /* @__PURE__ */ h(N, {
2922
- intent: Yt[e.intent ?? "neutral"],
2923
- contrast: "bold",
2924
- elevation: "floating",
2925
- radius: "lg",
2926
- className: F(Bt.toast, t && Bt.toastExit),
2927
- role: v ? "alert" : "status",
2928
- "aria-live": v ? "assertive" : "polite",
2929
- onMouseEnter: g,
2930
- onMouseLeave: _,
2931
- onFocus: g,
2932
- onBlur: _,
2933
- children: [/* @__PURE__ */ m(E, {
2934
- variant: "text-body-medium",
2935
- as: "span",
2936
- color: "inherit",
2937
- children: e.message
2938
- }), /* @__PURE__ */ m("button", {
2939
- type: "button",
2940
- className: Bt.dismiss,
2941
- onClick: l,
2942
- "aria-label": "Dismiss",
2943
- children: "×"
2944
- })]
2945
- });
2946
- }, Zt = r(({ position: e = "top-center" }, t) => {
2947
- let n = Jt();
2948
- return typeof document > "u" ? null : v.createPortal(/* @__PURE__ */ m("div", {
2949
- ref: t,
2950
- className: F(Bt.container, Bt[Qt(e)]),
2951
- role: "region",
2952
- "aria-label": "Notifications",
2953
- children: n.map((e) => /* @__PURE__ */ m(Xt, { data: e }, e.id))
2954
- }), document.body);
2955
- });
2956
- Zt.displayName = "ToastContainer";
2957
- function Qt(e) {
2958
- switch (e) {
2959
- case "top-center": return "topCenter";
2960
- case "top-right": return "topRight";
2961
- case "bottom-center": return "bottomCenter";
2962
- case "bottom-right": return "bottomRight";
2963
- }
2964
- }
2965
- //#endregion
2966
- export { Ot as Accordion, kt as AccordionItem, fe as Badge, Je as Banner, jt as Breadcrumb, ie as Button, K as ButtonGroup, R as Card, ge as Checkbox, je as DestructiveMenuItem, Lt as Divider, nt as EmptyState, lt as ErrorBoundary, at as Fade, Se as Field, xt as Header, ye as Input, ne as Loader, Ie as Menu, ke as MenuItem, Oe as Modal, Ft as Pagination, Ct as RadioGroup, wt as RadioItem, st as Scrollbar, We as Select, _t as Sidebar, yt as SidebarItem, vt as SidebarSection, zt as Skeleton, be as Slider, N as Surface, $e as Tab, Et as TabGroup, Ze as Table, ue as Tag, E as Text, Zt as ToastContainer, me as Toggle, oe as ToggleButton, se as ToggleButtonGroup, He as Tooltip, qt as toast, Jt as useToasts };
2967
-
2968
- //# sourceMappingURL=index.js.map