@duro-app/ui 5.11.0 → 5.13.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 (331) hide show
  1. package/dist/Table-Bms2ftt3.js +1694 -0
  2. package/dist/Table-Bms2ftt3.js.map +1 -0
  3. package/dist/compiler-runtime-BuugS4D0.js.map +1 -1
  4. package/dist/components/Alert/Alert.d.ts.map +1 -1
  5. package/dist/components/AppShell/native.css.d.ts +53 -0
  6. package/dist/components/AppShell/native.css.d.ts.map +1 -0
  7. package/dist/components/Button/Button.d.ts +2 -1
  8. package/dist/components/Button/Button.d.ts.map +1 -1
  9. package/dist/components/Button/styles.css.d.ts +1 -0
  10. package/dist/components/Button/styles.css.d.ts.map +1 -1
  11. package/dist/components/Callout/Callout.d.ts.map +1 -1
  12. package/dist/components/Callout/styles.css.d.ts +3 -0
  13. package/dist/components/Callout/styles.css.d.ts.map +1 -1
  14. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  15. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
  16. package/dist/components/DetailPanel/DetailPanel.d.ts.map +1 -1
  17. package/dist/components/Dialog/Dialog.d.ts +2 -17
  18. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  19. package/dist/components/Dialog/Dialog.stories.d.ts +4 -0
  20. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  21. package/dist/components/Dialog/native.css.d.ts +82 -0
  22. package/dist/components/Dialog/native.css.d.ts.map +1 -0
  23. package/dist/components/Dialog/parts.css.d.ts +82 -0
  24. package/dist/components/Dialog/parts.css.d.ts.map +1 -0
  25. package/dist/components/Dialog/parts.d.ts +35 -0
  26. package/dist/components/Dialog/parts.d.ts.map +1 -0
  27. package/dist/components/Dialog/styles.css.d.ts +1 -74
  28. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  29. package/dist/components/Drawer/Drawer.d.ts +7 -35
  30. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  31. package/dist/components/Drawer/Drawer.meta.d.ts.map +1 -1
  32. package/dist/components/Drawer/DrawerScroll.stories.d.ts.map +1 -1
  33. package/dist/components/Drawer/DrawerSnap.stories.d.ts +20 -0
  34. package/dist/components/Drawer/DrawerSnap.stories.d.ts.map +1 -0
  35. package/dist/components/Drawer/native.css.d.ts +55 -0
  36. package/dist/components/Drawer/native.css.d.ts.map +1 -0
  37. package/dist/components/Drawer/parts.css.d.ts +96 -0
  38. package/dist/components/Drawer/parts.css.d.ts.map +1 -0
  39. package/dist/components/Drawer/parts.d.ts +56 -0
  40. package/dist/components/Drawer/parts.d.ts.map +1 -0
  41. package/dist/components/Drawer/sheetPhysics.d.ts +56 -0
  42. package/dist/components/Drawer/sheetPhysics.d.ts.map +1 -0
  43. package/dist/components/Drawer/styles.css.d.ts +15 -58
  44. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  45. package/dist/components/Drawer/touchInput.d.ts +35 -0
  46. package/dist/components/Drawer/touchInput.d.ts.map +1 -0
  47. package/dist/components/Drawer/useDrawerRoot.d.ts +33 -0
  48. package/dist/components/Drawer/useDrawerRoot.d.ts.map +1 -0
  49. package/dist/components/Drawer/useSheetHeights.d.ts +7 -0
  50. package/dist/components/Drawer/useSheetHeights.d.ts.map +1 -0
  51. package/dist/components/Drawer/useSwipeDismiss.d.ts +13 -2
  52. package/dist/components/Drawer/useSwipeDismiss.d.ts.map +1 -1
  53. package/dist/components/Grid/styles.css.d.ts +1 -0
  54. package/dist/components/Grid/styles.css.d.ts.map +1 -1
  55. package/dist/components/Icon/Icon.d.ts +3 -9
  56. package/dist/components/Icon/Icon.d.ts.map +1 -1
  57. package/dist/components/Icon/geometry.d.ts +60 -0
  58. package/dist/components/Icon/geometry.d.ts.map +1 -0
  59. package/dist/components/Icon/types.d.ts +15 -0
  60. package/dist/components/Icon/types.d.ts.map +1 -0
  61. package/dist/components/Input/Input.d.ts +5 -1
  62. package/dist/components/Input/Input.d.ts.map +1 -1
  63. package/dist/components/Input/styles.css.d.ts +1 -0
  64. package/dist/components/Input/styles.css.d.ts.map +1 -1
  65. package/dist/components/LinkButton/styles.css.d.ts +1 -0
  66. package/dist/components/LinkButton/styles.css.d.ts.map +1 -1
  67. package/dist/components/Menu/Menu.d.ts +7 -1
  68. package/dist/components/Menu/Menu.d.ts.map +1 -1
  69. package/dist/components/Menu/native.css.d.ts +14 -0
  70. package/dist/components/Menu/native.css.d.ts.map +1 -0
  71. package/dist/components/Menu/useMenuOpen.d.ts +16 -0
  72. package/dist/components/Menu/useMenuOpen.d.ts.map +1 -0
  73. package/dist/components/Menu/useMenuRoot.d.ts +3 -6
  74. package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
  75. package/dist/components/Meter/styles.css.d.ts +1 -0
  76. package/dist/components/Meter/styles.css.d.ts.map +1 -1
  77. package/dist/components/PageShell/styles.css.d.ts +2 -0
  78. package/dist/components/PageShell/styles.css.d.ts.map +1 -1
  79. package/dist/components/Popover/native.css.d.ts +11 -0
  80. package/dist/components/Popover/native.css.d.ts.map +1 -0
  81. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -17
  82. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  83. package/dist/components/RadioGroup/RadioGroup.stories.d.ts +3 -0
  84. package/dist/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  85. package/dist/components/RadioGroup/group.d.ts +31 -0
  86. package/dist/components/RadioGroup/group.d.ts.map +1 -0
  87. package/dist/components/RadioGroup/styles.css.d.ts +10 -0
  88. package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
  89. package/dist/components/ScrollArea/styles.css.d.ts +1 -0
  90. package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
  91. package/dist/components/SideNav/Chevron.d.ts +4 -0
  92. package/dist/components/SideNav/Chevron.d.ts.map +1 -0
  93. package/dist/components/SideNav/SideNav.d.ts.map +1 -1
  94. package/dist/components/SideNav/styles.css.d.ts +6 -0
  95. package/dist/components/SideNav/styles.css.d.ts.map +1 -1
  96. package/dist/components/SideNav/types.d.ts +6 -0
  97. package/dist/components/SideNav/types.d.ts.map +1 -0
  98. package/dist/components/Spinner/Spinner.d.ts +2 -6
  99. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  100. package/dist/components/Spinner/Spinner.types.d.ts +6 -0
  101. package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
  102. package/dist/components/Spinner/ring.css.d.ts +39 -0
  103. package/dist/components/Spinner/ring.css.d.ts.map +1 -0
  104. package/dist/components/Spinner/styles.css.d.ts +1 -28
  105. package/dist/components/Spinner/styles.css.d.ts.map +1 -1
  106. package/dist/components/SplitPane/SplitPane.d.ts +38 -0
  107. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -0
  108. package/dist/components/SplitPane/SplitPane.meta.d.ts +3 -0
  109. package/dist/components/SplitPane/SplitPane.meta.d.ts.map +1 -0
  110. package/dist/components/SplitPane/SplitPane.stories.d.ts +17 -0
  111. package/dist/components/SplitPane/SplitPane.stories.d.ts.map +1 -0
  112. package/dist/components/SplitPane/styles.css.d.ts +78 -0
  113. package/dist/components/SplitPane/styles.css.d.ts.map +1 -0
  114. package/dist/components/StatusIcon/StatusIcon.d.ts.map +1 -1
  115. package/dist/components/StatusIcon/styles.css.d.ts +3 -0
  116. package/dist/components/StatusIcon/styles.css.d.ts.map +1 -1
  117. package/dist/components/Switch/Switch.d.ts +2 -18
  118. package/dist/components/Switch/Switch.d.ts.map +1 -1
  119. package/dist/components/Switch/Switch.types.d.ts +18 -0
  120. package/dist/components/Switch/Switch.types.d.ts.map +1 -0
  121. package/dist/components/TableOfContents/styles.css.d.ts +1 -0
  122. package/dist/components/TableOfContents/styles.css.d.ts.map +1 -1
  123. package/dist/components/Tabs/TabLayout.d.ts +7 -0
  124. package/dist/components/Tabs/TabLayout.d.ts.map +1 -0
  125. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  126. package/dist/components/Tabs/indicator.d.ts +28 -0
  127. package/dist/components/Tabs/indicator.d.ts.map +1 -0
  128. package/dist/components/Tabs/styles.css.d.ts +4 -0
  129. package/dist/components/Tabs/styles.css.d.ts.map +1 -1
  130. package/dist/components/Tabs/useTabIndicator.d.ts +4 -0
  131. package/dist/components/Tabs/useTabIndicator.d.ts.map +1 -0
  132. package/dist/components/Tabs/useTabKeys.d.ts +13 -0
  133. package/dist/components/Tabs/useTabKeys.d.ts.map +1 -0
  134. package/dist/components/Tag/RemoveGlyph.d.ts +4 -0
  135. package/dist/components/Tag/RemoveGlyph.d.ts.map +1 -0
  136. package/dist/components/Tag/Tag.d.ts +2 -24
  137. package/dist/components/Tag/Tag.d.ts.map +1 -1
  138. package/dist/components/Tag/styles.css.d.ts +8 -0
  139. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  140. package/dist/components/Tag/types.d.ts +39 -0
  141. package/dist/components/Tag/types.d.ts.map +1 -0
  142. package/dist/components/Textarea/styles.css.d.ts +1 -0
  143. package/dist/components/Textarea/styles.css.d.ts.map +1 -1
  144. package/dist/components/Toast/ToastProvider.d.ts +2 -21
  145. package/dist/components/Toast/ToastProvider.d.ts.map +1 -1
  146. package/dist/components/Toast/native.css.d.ts +81 -0
  147. package/dist/components/Toast/native.css.d.ts.map +1 -0
  148. package/dist/components/Toast/store.d.ts +47 -0
  149. package/dist/components/Toast/store.d.ts.map +1 -0
  150. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  151. package/dist/components/Toggle/styles.css.d.ts +11 -2
  152. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  153. package/dist/components/Tooltip/TooltipHint.d.ts +9 -0
  154. package/dist/components/Tooltip/TooltipHint.d.ts.map +1 -0
  155. package/dist/components/Tree/Tree.d.ts.map +1 -1
  156. package/dist/components/Tree/styles.css.d.ts +6 -0
  157. package/dist/components/Tree/styles.css.d.ts.map +1 -1
  158. package/dist/components/Tree/useTreeKeyboard.d.ts +19 -0
  159. package/dist/components/Tree/useTreeKeyboard.d.ts.map +1 -0
  160. package/dist/components/VirtualList/VirtualList.d.ts +33 -0
  161. package/dist/components/VirtualList/VirtualList.d.ts.map +1 -0
  162. package/dist/components/VirtualList/VirtualList.meta.d.ts +3 -0
  163. package/dist/components/VirtualList/VirtualList.meta.d.ts.map +1 -0
  164. package/dist/components/VirtualList/VirtualList.stories.d.ts +15 -0
  165. package/dist/components/VirtualList/VirtualList.stories.d.ts.map +1 -0
  166. package/dist/components/VirtualList/styles.css.d.ts +28 -0
  167. package/dist/components/VirtualList/styles.css.d.ts.map +1 -0
  168. package/dist/components/VirtualTable/styles.css.d.ts +6 -0
  169. package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
  170. package/dist/index.css +1 -1
  171. package/dist/index.d.ts +3 -1
  172. package/dist/index.d.ts.map +1 -1
  173. package/dist/index.js +6202 -4794
  174. package/dist/index.js.map +1 -1
  175. package/dist/shared/ButtonHost.d.ts +11 -0
  176. package/dist/shared/ButtonHost.d.ts.map +1 -0
  177. package/dist/shared/portal/hostRegistry.d.ts +33 -0
  178. package/dist/shared/portal/hostRegistry.d.ts.map +1 -0
  179. package/dist/shared/pressableChild.d.ts +14 -0
  180. package/dist/shared/pressableChild.d.ts.map +1 -0
  181. package/dist/shared/useOverlayOpenState.d.ts +40 -0
  182. package/dist/shared/useOverlayOpenState.d.ts.map +1 -0
  183. package/dist/table.js +141 -135
  184. package/dist/table.js.map +1 -1
  185. package/package.json +34 -4
  186. package/src/components/Alert/Alert.tsx +14 -2
  187. package/src/components/AppShell/AppShell.meta.ts +1 -1
  188. package/src/components/AppShell/AppShell.native.tsx +174 -0
  189. package/src/components/AppShell/native.css.ts +56 -0
  190. package/src/components/Button/Button.tsx +6 -5
  191. package/src/components/Button/styles.css.ts +2 -0
  192. package/src/components/Callout/Callout.tsx +17 -3
  193. package/src/components/Callout/styles.css.ts +5 -0
  194. package/src/components/Checkbox/Checkbox.native.tsx +67 -0
  195. package/src/components/Checkbox/Checkbox.tsx +1 -50
  196. package/src/components/ConfirmDialog/ConfirmDialog.tsx +3 -0
  197. package/src/components/DetailPanel/DetailPanel.tsx +9 -45
  198. package/src/components/Dialog/Dialog.native.tsx +296 -0
  199. package/src/components/Dialog/Dialog.stories.tsx +71 -0
  200. package/src/components/Dialog/Dialog.tsx +41 -130
  201. package/src/components/Dialog/native.css.ts +78 -0
  202. package/src/components/Dialog/parts.css.ts +101 -0
  203. package/src/components/Dialog/parts.tsx +61 -0
  204. package/src/components/Dialog/styles.css.ts +2 -89
  205. package/src/components/Drawer/Drawer.meta.ts +2 -1
  206. package/src/components/Drawer/Drawer.native.tsx +469 -0
  207. package/src/components/Drawer/Drawer.tsx +63 -179
  208. package/src/components/Drawer/DrawerScroll.stories.tsx +4 -54
  209. package/src/components/Drawer/DrawerSnap.stories.tsx +205 -0
  210. package/src/components/Drawer/native.css.ts +58 -0
  211. package/src/components/Drawer/parts.css.ts +125 -0
  212. package/src/components/Drawer/parts.tsx +110 -0
  213. package/src/components/Drawer/sheetPhysics.ts +103 -0
  214. package/src/components/Drawer/styles.css.ts +19 -74
  215. package/src/components/Drawer/touchInput.ts +81 -0
  216. package/src/components/Drawer/useDrawerRoot.ts +90 -0
  217. package/src/components/Drawer/useSheetHeights.ts +42 -0
  218. package/src/components/Drawer/useSwipeDismiss.ts +146 -23
  219. package/src/components/Grid/styles.css.ts +2 -0
  220. package/src/components/Icon/Icon.native.tsx +54 -0
  221. package/src/components/Icon/Icon.tsx +19 -430
  222. package/src/components/Icon/geometry.ts +456 -0
  223. package/src/components/Icon/types.ts +74 -0
  224. package/src/components/Input/Input.tsx +8 -0
  225. package/src/components/Input/styles.css.ts +2 -0
  226. package/src/components/LinkButton/styles.css.ts +2 -0
  227. package/src/components/Menu/Menu.meta.ts +1 -1
  228. package/src/components/Menu/Menu.native.tsx +268 -0
  229. package/src/components/Menu/Menu.tsx +11 -2
  230. package/src/components/Menu/native.css.ts +18 -0
  231. package/src/components/Menu/useMenuOpen.ts +33 -0
  232. package/src/components/Menu/useMenuRoot.ts +7 -26
  233. package/src/components/Meter/styles.css.ts +2 -0
  234. package/src/components/PageShell/styles.css.ts +4 -0
  235. package/src/components/Popover/Popover.meta.ts +1 -1
  236. package/src/components/Popover/Popover.native.tsx +205 -0
  237. package/src/components/Popover/native.css.ts +13 -0
  238. package/src/components/RadioGroup/RadioGroup.meta.ts +1 -1
  239. package/src/components/RadioGroup/RadioGroup.native.tsx +48 -0
  240. package/src/components/RadioGroup/RadioGroup.stories.tsx +64 -1
  241. package/src/components/RadioGroup/RadioGroup.tsx +8 -83
  242. package/src/components/RadioGroup/group.tsx +85 -0
  243. package/src/components/RadioGroup/styles.css.ts +13 -0
  244. package/src/components/ScrollArea/styles.css.ts +2 -0
  245. package/src/components/SideNav/Chevron.native.tsx +20 -0
  246. package/src/components/SideNav/Chevron.tsx +20 -0
  247. package/src/components/SideNav/SideNav.meta.ts +1 -1
  248. package/src/components/SideNav/SideNav.tsx +57 -41
  249. package/src/components/SideNav/styles.css.ts +8 -0
  250. package/src/components/SideNav/types.ts +6 -0
  251. package/src/components/Spinner/Spinner.native.tsx +37 -0
  252. package/src/components/Spinner/Spinner.tsx +6 -15
  253. package/src/components/Spinner/Spinner.types.ts +6 -0
  254. package/src/components/Spinner/ring.css.ts +45 -0
  255. package/src/components/Spinner/styles.css.ts +2 -32
  256. package/src/components/SplitPane/SplitPane.meta.ts +40 -0
  257. package/src/components/SplitPane/SplitPane.native.tsx +47 -0
  258. package/src/components/SplitPane/SplitPane.stories.tsx +148 -0
  259. package/src/components/SplitPane/SplitPane.tsx +218 -0
  260. package/src/components/SplitPane/styles.css.ts +81 -0
  261. package/src/components/StatusIcon/StatusIcon.tsx +13 -2
  262. package/src/components/StatusIcon/styles.css.ts +5 -0
  263. package/src/components/Switch/Switch.native.tsx +45 -0
  264. package/src/components/Switch/Switch.tsx +22 -44
  265. package/src/components/Switch/Switch.types.ts +18 -0
  266. package/src/components/TableOfContents/styles.css.ts +2 -0
  267. package/src/components/Tabs/TabLayout.native.tsx +9 -0
  268. package/src/components/Tabs/TabLayout.tsx +6 -0
  269. package/src/components/Tabs/Tabs.meta.ts +1 -1
  270. package/src/components/Tabs/Tabs.tsx +38 -136
  271. package/src/components/Tabs/indicator.ts +36 -0
  272. package/src/components/Tabs/styles.css.ts +7 -0
  273. package/src/components/Tabs/useTabIndicator.native.ts +35 -0
  274. package/src/components/Tabs/useTabIndicator.ts +49 -0
  275. package/src/components/Tabs/useTabKeys.native.ts +2 -0
  276. package/src/components/Tabs/useTabKeys.ts +99 -0
  277. package/src/components/Tag/RemoveGlyph.native.tsx +17 -0
  278. package/src/components/Tag/RemoveGlyph.tsx +10 -0
  279. package/src/components/Tag/Tag.meta.ts +1 -1
  280. package/src/components/Tag/Tag.native.tsx +70 -0
  281. package/src/components/Tag/Tag.tsx +9 -37
  282. package/src/components/Tag/styles.css.ts +9 -0
  283. package/src/components/Tag/types.ts +43 -0
  284. package/src/components/Textarea/styles.css.ts +2 -0
  285. package/src/components/ThemeProvider/ThemeProvider.native.tsx +70 -10
  286. package/src/components/Toast/Toast.meta.ts +1 -1
  287. package/src/components/Toast/ToastProvider.native.tsx +226 -0
  288. package/src/components/Toast/ToastProvider.tsx +22 -84
  289. package/src/components/Toast/native.css.ts +78 -0
  290. package/src/components/Toast/store.ts +96 -0
  291. package/src/components/Toggle/Toggle.tsx +5 -3
  292. package/src/components/Toggle/styles.css.ts +14 -2
  293. package/src/components/Tooltip/Tooltip.meta.ts +1 -1
  294. package/src/components/Tooltip/Tooltip.native.tsx +36 -0
  295. package/src/components/Tooltip/TooltipHint.ts +13 -0
  296. package/src/components/Tree/Tree.meta.ts +1 -1
  297. package/src/components/Tree/Tree.tsx +23 -135
  298. package/src/components/Tree/styles.css.ts +6 -0
  299. package/src/components/Tree/useTreeKeyboard.native.ts +5 -0
  300. package/src/components/Tree/useTreeKeyboard.ts +152 -0
  301. package/src/components/VirtualList/VirtualList.meta.ts +39 -0
  302. package/src/components/VirtualList/VirtualList.stories.tsx +95 -0
  303. package/src/components/VirtualList/VirtualList.tsx +103 -0
  304. package/src/components/VirtualList/styles.css.ts +31 -0
  305. package/src/components/VirtualTable/styles.css.ts +12 -0
  306. package/src/hooks/useContainerBelow.native.ts +30 -0
  307. package/src/index.native.ts +61 -1
  308. package/src/index.ts +8 -1
  309. package/src/native-guard/globals.d.ts +10 -0
  310. package/src/native-guard/react-dom.d.ts +3 -0
  311. package/src/shared/ButtonHost.native.tsx +70 -0
  312. package/src/shared/ButtonHost.tsx +12 -0
  313. package/src/shared/accessibilityFocus.native.ts +23 -0
  314. package/src/shared/portal/AnchoredOverlay.native.tsx +117 -0
  315. package/src/shared/portal/OverlayModal.native.tsx +51 -0
  316. package/src/shared/portal/PortalHost.native.tsx +102 -0
  317. package/src/shared/portal/hostRegistry.ts +76 -0
  318. package/src/shared/portal/themeScope.native.ts +18 -0
  319. package/src/shared/pressableChild.ts +33 -0
  320. package/src/shared/safeArea.native.ts +22 -0
  321. package/src/shared/useKeyboardHeight.native.ts +18 -0
  322. package/src/shared/useOverlayOpenState.ts +128 -0
  323. package/src/shared/useScreenReaderEnabled.native.ts +19 -0
  324. package/dist/Table-ColfpgKV.js +0 -1552
  325. package/dist/Table-ColfpgKV.js.map +0 -1
  326. package/dist/components/ThemeProvider/ThemeProvider.native.d.ts +0 -10
  327. package/dist/components/ThemeProvider/ThemeProvider.native.d.ts.map +0 -1
  328. package/dist/index.native.d.ts +0 -33
  329. package/dist/index.native.d.ts.map +0 -1
  330. package/dist/platform.native.d.ts +0 -2
  331. package/dist/platform.native.d.ts.map +0 -1
@@ -1,1552 +0,0 @@
1
- import { jsx as T, jsxs as U, Fragment as Te } from "react/jsx-runtime";
2
- import { c as L, m as W, d as S } from "./compiler-runtime-BuugS4D0.js";
3
- import { useContext as G, createContext as A, useId as Y, useRef as q, useLayoutEffect as J, useState as Z, useCallback as K, useEffect as F, Children as Q, isValidElement as Me } from "react";
4
- import { createPortal as We } from "react-dom";
5
- const Se = {
6
- xs: 4,
7
- sm: 8,
8
- ms: 12,
9
- md: 16,
10
- lg: 24,
11
- xl: 32,
12
- xxl: 48,
13
- xxxl: 64
14
- }, cr = {
15
- instant: 0,
16
- minimal: 1,
17
- quick: 120,
18
- fast: 150,
19
- brisk: 160,
20
- base: 200,
21
- slow: 280
22
- }, Ce = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "thumbSm", "mediaTileMinW", "glyphClampMax", "timeReadoutW", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], _ = {
23
- touchTarget: 44,
24
- iconSm: 16,
25
- iconMd: 18,
26
- iconLg: 24,
27
- iconXl: 36,
28
- iconXxl: 48
29
- }, ur = {
30
- sm: _.iconSm,
31
- md: _.iconMd,
32
- lg: _.iconLg,
33
- xl: _.iconXl,
34
- xxl: _.iconXxl
35
- }, pe = A(null);
36
- function Re() {
37
- return G(pe);
38
- }
39
- const xe = A(null);
40
- function ze() {
41
- return G(xe);
42
- }
43
- const V = {
44
- item: {
45
- "position-kVAEAm": "position-x1n2onr6",
46
- "zIndex-kY2c9j": "zIndex-x1lhispz",
47
- $$css: "ButtonGroup/attached.css.ts:14"
48
- },
49
- horizontalFirst: {
50
- "borderTopRightRadius-ksF3WI": "borderTopRightRadius-x1a2w583",
51
- "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xjppbhk",
52
- $$css: "ButtonGroup/attached.css.ts:18"
53
- },
54
- horizontalMiddle: {
55
- "borderRadius-kaIpWk": "borderRadius-x2u8bby",
56
- "marginLeft-koQZXg": "marginLeft-x1804tp4",
57
- $$css: "ButtonGroup/attached.css.ts:22"
58
- },
59
- horizontalLast: {
60
- "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-x1ia1hqs",
61
- "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-xfrllxf",
62
- "marginLeft-koQZXg": "marginLeft-x1804tp4",
63
- $$css: "ButtonGroup/attached.css.ts:26"
64
- },
65
- verticalFirst: {
66
- "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-xfrllxf",
67
- "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xjppbhk",
68
- $$css: "ButtonGroup/attached.css.ts:31"
69
- },
70
- verticalMiddle: {
71
- "borderRadius-kaIpWk": "borderRadius-x2u8bby",
72
- "marginTop-keoZOQ": "marginTop-xn1ib9x",
73
- $$css: "ButtonGroup/attached.css.ts:35"
74
- },
75
- verticalLast: {
76
- "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-x1ia1hqs",
77
- "borderTopRightRadius-ksF3WI": "borderTopRightRadius-x1a2w583",
78
- "marginTop-keoZOQ": "marginTop-xn1ib9x",
79
- $$css: "ButtonGroup/attached.css.ts:39"
80
- }
81
- }, je = {
82
- horizontal: {
83
- first: V.horizontalFirst,
84
- middle: V.horizontalMiddle,
85
- last: V.horizontalLast,
86
- only: null
87
- },
88
- vertical: {
89
- first: V.verticalFirst,
90
- middle: V.verticalMiddle,
91
- last: V.verticalLast,
92
- only: null
93
- }
94
- };
95
- function He(t) {
96
- const e = L.c(26);
97
- let o;
98
- e[0] !== t ? (o = t === void 0 ? {} : t, e[0] = t, e[1] = o) : o = e[1];
99
- const {
100
- disabled: r
101
- } = o, d = r === void 0 ? !1 : r, l = Y(), a = q(null), i = ze(), n = Re(), s = i?.register, c = n?.register;
102
- let p, u;
103
- e[2] !== d || e[3] !== s || e[4] !== l || e[5] !== c ? (p = () => {
104
- const R = a.current;
105
- if (!R)
106
- return;
107
- const H = s?.(l, R, d), I = c?.(l, R, d);
108
- return () => {
109
- H?.(), I?.();
110
- };
111
- }, u = [l, d, s, c], e[2] = d, e[3] = s, e[4] = l, e[5] = c, e[6] = p, e[7] = u) : (p = e[6], u = e[7]), J(p, u);
112
- let x;
113
- e[8] !== i || e[9] !== l ? (x = i ? i.positionOf(l) : null, e[8] = i, e[9] = l, e[10] = x) : x = e[10];
114
- const g = x;
115
- let h;
116
- e[11] !== i || e[12] !== g ? (h = i && g ? [V.item, je[i.orientation][g]] : null, e[11] = i, e[12] = g, e[13] = h) : h = e[13];
117
- const f = h, y = i !== null;
118
- let k;
119
- e[14] !== l || e[15] !== n ? (k = n?.tabIndexOf(l), e[14] = l, e[15] = n, e[16] = k) : k = e[16];
120
- let w;
121
- e[17] !== l || e[18] !== n ? (w = n ? () => n.onItemFocus(l) : void 0, e[17] = l, e[18] = n, e[19] = w) : w = e[19];
122
- let C;
123
- return e[20] !== g || e[21] !== f || e[22] !== y || e[23] !== k || e[24] !== w ? (C = {
124
- ref: a,
125
- attached: y,
126
- position: g,
127
- style: f,
128
- tabIndex: k,
129
- onFocus: w
130
- }, e[20] = g, e[21] = f, e[22] = y, e[23] = k, e[24] = w, e[25] = C) : C = e[25], C;
131
- }
132
- const Le = {
133
- xjvd03b: "x14i52nv xjvd03b",
134
- $$css: !0
135
- }, Ie = {
136
- x13v825q: "x1jk1o70 x13v825q",
137
- $$css: !0
138
- }, qe = {
139
- xjvd03b: "xorrbe1 xjvd03b",
140
- $$css: !0
141
- }, Pe = {
142
- x13v825q: "xc8o4hb x13v825q",
143
- $$css: !0
144
- }, Ee = {
145
- light: [Le, Ie],
146
- "high-contrast": [qe, Pe]
147
- }, ae = {
148
- root: {
149
- "display-k1xSpc": "display-xjp7ctv",
150
- "color-kMwMTN": "color-x95150z",
151
- $$css: "ThemeProvider/ThemeProvider.tsx:21"
152
- },
153
- portalMount: {
154
- "position-kVAEAm": "position-xixxii4",
155
- "top-k87sOh": "top-x13vifvy",
156
- "left-kbCHJM": "left-xu96u03",
157
- "right-kCIrl2": "right-x3m8u43",
158
- "bottom-krVfgx": "bottom-x1ey2m1c",
159
- "pointerEvents-kfzvcC": "pointerEvents-x47corl",
160
- "zIndex-kY2c9j": "zIndex-x3z26px",
161
- $$css: "ThemeProvider/ThemeProvider.tsx:29"
162
- }
163
- }, ge = A(null);
164
- function Be() {
165
- return G(ge);
166
- }
167
- function pr(t) {
168
- const e = L.c(11), {
169
- theme: o,
170
- children: r
171
- } = t, d = o === void 0 ? "dark" : o, l = Ee[d], a = l?.[0], i = l?.[1];
172
- let n;
173
- e[0] !== a || e[1] !== i ? (n = [a, i, ae.root], e[0] = a, e[1] = i, e[2] = n) : n = e[2];
174
- const s = n, [c, p] = Z(null);
175
- let u;
176
- e[3] !== r || e[4] !== c ? (u = /* @__PURE__ */ T(ge.Provider, { value: c, children: r }), e[3] = r, e[4] = c, e[5] = u) : u = e[5];
177
- let x;
178
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ T("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:60", ref: p, "data-portal-mount": !0, ...W(S.div, ae.portalMount) }), e[6] = x) : x = e[6];
179
- let g;
180
- return e[7] !== u || e[8] !== d || e[9] !== s ? (g = /* @__PURE__ */ U("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", "data-theme": d, ...W(S.div, s), children: [
181
- u,
182
- x
183
- ] }), e[7] = u, e[8] = d, e[9] = s, e[10] = g) : g = e[10], g;
184
- }
185
- function Oe(t) {
186
- const e = L.c(2), {
187
- children: o
188
- } = t;
189
- let r;
190
- return e[0] !== o ? (r = /* @__PURE__ */ T(xe.Provider, { value: null, children: /* @__PURE__ */ T(pe.Provider, { value: null, children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
191
- }
192
- const xr = {
193
- xs: 480,
194
- sm: 640,
195
- md: 768,
196
- lg: 1024,
197
- xl: 1280
198
- }, he = {
199
- touchTarget: "var(--touchTarget-x1u5badx)",
200
- controlSm: "var(--controlSm-x6ymn93)",
201
- controlMd: "var(--controlMd-xkvaeme)",
202
- controlLg: "var(--controlLg-xf3drh3)",
203
- indicator: "var(--indicator-xce456j)",
204
- indicatorDot: "var(--indicatorDot-xqflvbi)",
205
- checkMarkW: "var(--checkMarkW-xvyirw7)",
206
- checkMarkH: "var(--checkMarkH-xz3lx6u)",
207
- switchTrackW: "var(--switchTrackW-xcah3tt)",
208
- switchTrackH: "var(--switchTrackH-x1h3icne)",
209
- switchThumb: "var(--switchThumb-x6qupft)",
210
- iconButton: "var(--iconButton-x16lr7a8)",
211
- iconButtonSm: "var(--iconButtonSm-xtjgrhy)",
212
- spinnerSm: "var(--spinnerSm-xoj3xel)",
213
- spinnerMd: "var(--spinnerMd-x11a4rba)",
214
- spinnerLg: "var(--spinnerLg-x1lgp9p9)",
215
- glyphXs: "var(--glyphXs-x7xktls)",
216
- glyphSm: "var(--glyphSm-x17geiot)",
217
- glyphMd: "var(--glyphMd-x1hz0jso)",
218
- iconSm: "var(--iconSm-x1k4bwrj)",
219
- iconMd: "var(--iconMd-x1oru5hg)",
220
- iconLg: "var(--iconLg-x1lsumnr)",
221
- iconXl: "var(--iconXl-x7w40q9)",
222
- iconXxl: "var(--iconXxl-xij55jf)",
223
- thumbSm: "var(--thumbSm-x1t1g9ky)",
224
- mediaTileMinW: "var(--mediaTileMinW-x1pavouy)",
225
- glyphClampMax: "var(--glyphClampMax-x3c2ety)",
226
- timeReadoutW: "var(--timeReadoutW-x4630c6)",
227
- navMarkerW: "var(--navMarkerW-x1swbkx4)",
228
- navMarkerH: "var(--navMarkerH-xlc6r7a)",
229
- divider: "var(--divider-x34oj7m)",
230
- tabIndicator: "var(--tabIndicator-xeswvk3)",
231
- edgeFade: "var(--edgeFade-x1a8srg4)",
232
- scrollbar: "var(--scrollbar-xppi9bb)",
233
- swatchW: "var(--swatchW-x14v7170)",
234
- swatchH: "var(--swatchH-x5k3223)",
235
- labelMinW: "var(--labelMinW-x1tnvsg3)",
236
- popupMinW: "var(--popupMinW-xzyp04)",
237
- listMaxH: "var(--listMaxH-x1g3bmh3)",
238
- listMaxHSm: "var(--listMaxHSm-xhny4oa)",
239
- dialogSm: "var(--dialogSm-x16fibl1)",
240
- dialogMd: "var(--dialogMd-x1yjoj5l)",
241
- dialogLg: "var(--dialogLg-xsd9wl3)",
242
- panelSm: "var(--panelSm-x1ng1dcv)",
243
- panelMd: "var(--panelMd-x11x23mn)",
244
- panelLg: "var(--panelLg-x19cpfjm)",
245
- toastMaxW: "var(--toastMaxW-x1po6n0z)",
246
- gridColSm: "var(--gridColSm-xzwpy92)",
247
- gridColMd: "var(--gridColMd-x1cjqdt9)",
248
- pageSm: "var(--pageSm-x5j4ghi)",
249
- pageMd: "var(--pageMd-xloo57l)",
250
- pageLg: "var(--pageLg-x393fnm)",
251
- sidebarW: "var(--sidebarW-x16fh60r)",
252
- pageXs: "var(--pageXs-xkx7b2k)",
253
- pageXl: "var(--pageXl-xe1y5wy)",
254
- asideW: "var(--asideW-x1sefzvd)",
255
- gridColXs: "var(--gridColXs-x1uralsc)",
256
- fieldMinWSm: "var(--fieldMinWSm-x17qqf6g)",
257
- fieldMinW: "var(--fieldMinW-x3410dk)",
258
- popoverWSm: "var(--popoverWSm-x17g62mi)",
259
- popoverW: "var(--popoverW-xf1f07)",
260
- popupMaxW: "var(--popupMaxW-x16p43ce)",
261
- meterH: "var(--meterH-x5xauib)",
262
- skeletonChipW: "var(--skeletonChipW-xmw24hn)",
263
- dropZoneMinH: "var(--dropZoneMinH-x9asgie)",
264
- canvasMinH: "var(--canvasMinH-xpv99dk)",
265
- editorMinH: "var(--editorMinH-x7umtuv)",
266
- toolbarH: "var(--toolbarH-x16tj5lc)",
267
- embedW: "var(--embedW-x1jprk4i)",
268
- colorPickerW: "var(--colorPickerW-xafjozf)",
269
- colorAreaH: "var(--colorAreaH-xn4he4)",
270
- colorTrackH: "var(--colorTrackH-x1ixtmdy)",
271
- colorSwatch: "var(--colorSwatch-xr73m8p)",
272
- colorPreviewH: "var(--colorPreviewH-x1by70nu)",
273
- handle: "var(--handle-xt9m584)",
274
- chip: "var(--chip-xofdvjg)",
275
- placeholderMinH: "var(--placeholderMinH-xy0p02w)",
276
- previewMaxH: "var(--previewMaxH-x1phh3ob)",
277
- barH: "var(--barH-x1oc8exn)",
278
- readoutW: "var(--readoutW-xi5rn1i)",
279
- sliderW: "var(--sliderW-xvcfp7i)",
280
- paletteMinW: "var(--paletteMinW-x1514e6j)",
281
- deviceBarW: "var(--deviceBarW-xqnx4o4)",
282
- timeGutterW: "var(--timeGutterW-xsc6tna)",
283
- dayHeaderH: "var(--dayHeaderH-x1j7gty0)",
284
- timelineLabelW: "var(--timelineLabelW-xx6mz1f)",
285
- appBarH: "var(--appBarH-x12xs6hi)",
286
- dragThumbW: "var(--dragThumbW-x1bz26bx)",
287
- dragThumbH: "var(--dragThumbH-xbt2de9)",
288
- __varGroupHash__: "x1w57kmz"
289
- };
290
- /**
291
- * @license react-strict-dom
292
- * Copyright (c) Meta Platforms, Inc. and affiliates.
293
- *
294
- * This source code is licensed under the MIT license found in the
295
- * LICENSE file in the root directory of this source tree.
296
- */
297
- const de = {};
298
- function Ge(t) {
299
- process.env.NODE_ENV !== "test" && de[t] || (de[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
300
- }
301
- const Ae = /* @__PURE__ */ new Set(["alt", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoComplete", "autoFocus", "checked", "children", "crossOrigin", "decoding", "defaultChecked", "defaultValue", "dir", "disabled", "download", "draggable", "elementTiming", "enterKeyHint", "fetchPriority", "for", "height", "hidden", "href", "id", "inert", "inputMode", "label", "lang", "loading", "max", "maxLength", "min", "minLength", "multiple", "name", "onAuxClick", "onBeforeInput", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCut", "onError", "onFocus", "onFocusIn", "onFocusOut", "onFullscreenChange", "onFullscreenError", "onGotPointerCapture", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onLoad", "onLostPointerCapture", "onPaste", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onScroll", "onSelect", "onSelectionChange", "onWheel", "placeholder", "readOnly", "referrerPolicy", "rel", "required", "role", "rows", "selected", "spellCheck", "src", "srcSet", "step", "style", "tabIndex", "target", "type", "value", "width", "suppressHydrationWarning", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"]);
302
- function De(t) {
303
- return Ae.has(t) || t.indexOf("data-") > -1;
304
- }
305
- var oe = {};
306
- Object.defineProperty(oe, "__esModule", {
307
- value: !0
308
- });
309
- var me = oe.styleq = void 0, Fe = /* @__PURE__ */ new WeakMap(), Ve = "$$css";
310
- function be(t) {
311
- var e, o, r;
312
- return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, r = t.transform), function() {
313
- for (var l = [], a = "", i = null, n = "", s = e ? null : Fe, c = new Array(arguments.length), p = 0; p < arguments.length; p++)
314
- c[p] = arguments[p];
315
- for (; c.length > 0; ) {
316
- var u = c.pop();
317
- if (!(u == null || u === !1)) {
318
- if (Array.isArray(u)) {
319
- for (var x = 0; x < u.length; x++)
320
- c.push(u[x]);
321
- continue;
322
- }
323
- var g = r != null ? r(u) : u;
324
- if (g.$$css != null) {
325
- var h = "";
326
- if (s != null && s.has(g)) {
327
- var f = s.get(g);
328
- f != null && (h = f[0], n = f[2], l.push.apply(l, f[1]), s = f[3]);
329
- } else {
330
- var y = [];
331
- for (var k in g) {
332
- var w = g[k];
333
- if (k === Ve) {
334
- var C = g[k];
335
- C !== !0 && (n = n ? C + "; " + n : C);
336
- continue;
337
- }
338
- typeof w == "string" || w === null ? l.includes(k) || (l.push(k), s != null && y.push(k), typeof w == "string" && (h += h ? " " + w : w)) : console.error("styleq: ".concat(k, " typeof ").concat(String(w), ' is not "string" or "null".'));
339
- }
340
- if (s != null) {
341
- var R = /* @__PURE__ */ new WeakMap();
342
- s.set(g, [h, y, n, R]), s = R;
343
- }
344
- }
345
- h && (a = a ? h + " " + a : h);
346
- } else if (o)
347
- i == null && (i = {}), i = Object.assign({}, g, i);
348
- else {
349
- var H = null;
350
- for (var I in g) {
351
- var O = g[I];
352
- O !== void 0 && (l.includes(I) || (O != null && (i == null && (i = {}), H == null && (H = {}), H[I] = O), l.push(I), s = null));
353
- }
354
- H != null && (i = Object.assign(H, i));
355
- }
356
- }
357
- }
358
- var D = [a, i, n];
359
- return D;
360
- };
361
- }
362
- var Xe = me = oe.styleq = be();
363
- Xe.factory = be;
364
- const Ke = me.factory({
365
- disableMix: !0
366
- });
367
- function Ne(...t) {
368
- const [e, o, r] = Ke(t), d = {};
369
- if (e != null && e !== "" && (d.className = e), o != null && (d.style = o), r != null && r !== "") {
370
- const l = r.split(";"), a = {};
371
- for (const i of l) {
372
- const n = i.trim(), [s, c] = n.split(":");
373
- c != null && (a[s] = a[s] != null ? `${a[s]},${c}` : c);
374
- }
375
- d["data-style-src"] = Object.keys(a).map((i) => `${i}:${a[i]}`).join("; ");
376
- }
377
- return d;
378
- }
379
- function _e(t) {
380
- Object.keys(t).forEach((e) => {
381
- De(e) || (Ge(`invalid prop "${e}"`), delete t[e]);
382
- });
383
- }
384
- function m(t, e) {
385
- const o = {
386
- $$css: !0,
387
- "debug::name": `html-${t}`
388
- };
389
- function r({
390
- ref: d,
391
- ...l
392
- }) {
393
- const {
394
- for: a,
395
- style: i,
396
- ...n
397
- } = l, s = n;
398
- _e(s), a != null && (s.htmlFor = a), l.role != null && (s.role = l.role === "none" ? "presentation" : l.role), t === "button" ? s.type = s.type ? s.type : "button" : (t === "input" || t === "textarea") && (s.dir = s.dir ? s.dir : "auto");
399
- const c = Ne([o, e, i]);
400
- return T(t, {
401
- ...s,
402
- ...c,
403
- ref: d
404
- });
405
- }
406
- return r.displayName = `html.${t}`, r;
407
- }
408
- const v = {
409
- block: {
410
- "margin-kogj98": "margin-x1ghz6dp",
411
- "padding-kmVPX3": "padding-x1717udv",
412
- $$css: ".pnpm:web/index.js:226"
413
- },
414
- inline: {
415
- "margin-kogj98": "margin-x1ghz6dp",
416
- "padding-kmVPX3": "padding-x1717udv",
417
- "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
418
- "textAlign-k9WMMc": "textAlign-x16tdsg8",
419
- "wordWrap-kD5eJx": "wordWrap-x1vvkbs",
420
- $$css: ".pnpm:web/index.js:230"
421
- },
422
- inlineblock: {
423
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
424
- "margin-kogj98": "margin-x1ghz6dp",
425
- "padding-kmVPX3": "padding-x1717udv",
426
- $$css: ".pnpm:web/index.js:237"
427
- },
428
- button: {
429
- "borderWidth-kMzoRj": "borderWidth-xmkeg23",
430
- $$css: ".pnpm:web/index.js:242"
431
- },
432
- codePre: {
433
- "fontFamily-kMv6JI": "fontFamily-x1lxnp44",
434
- "fontSize-kGuDYH": "fontSize-xrv4cvt",
435
- "overflow-kVQacm": "overflow-xysyzu8",
436
- $$css: ".pnpm:web/index.js:245"
437
- },
438
- heading: {
439
- "fontSize-kGuDYH": "fontSize-xngnso2",
440
- "wordWrap-kD5eJx": "wordWrap-x1vvkbs",
441
- $$css: ".pnpm:web/index.js:250"
442
- },
443
- hr: {
444
- "backgroundColor-kWkggS": "backgroundColor-x42x0ya",
445
- "borderStyle-ksu8eU": "borderStyle-xng3xce",
446
- "borderWidth-kMzoRj": "borderWidth-xc342km",
447
- "boxSizing-kB7OPa": "boxSizing-x9f619",
448
- "height-kZKoxP": "height-xjm9jq1",
449
- $$css: ".pnpm:web/index.js:254"
450
- },
451
- img: {
452
- "aspectRatio-kOBAk4": "aspectRatio-xuw900x",
453
- "height-kZKoxP": "height-xt7dq6l",
454
- "maxWidth-ks0D6T": "maxWidth-x193iq5w",
455
- $$css: ".pnpm:web/index.js:261"
456
- },
457
- input: {
458
- "borderWidth-kMzoRj": "borderWidth-xmkeg23",
459
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
460
- $$css: ".pnpm:web/index.js:266"
461
- },
462
- list: {
463
- "listStyle-kB88ic": "listStyle-xe8uvvx",
464
- $$css: ".pnpm:web/index.js:270"
465
- },
466
- strong: {
467
- "fontWeight-k63SB2": "fontWeight-x117nqv4",
468
- $$css: ".pnpm:web/index.js:273"
469
- },
470
- textarea: {
471
- "borderWidth-kMzoRj": "borderWidth-xmkeg23",
472
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
473
- "resize-kHenm0": "resize-x288g5",
474
- $$css: ".pnpm:web/index.js:276"
475
- }
476
- }, Ye = v.inline, Ze = v.block, Ue = v.block, Je = v.inline, Qe = v.inline, et = v.inline, tt = v.block, ot = null, rt = [v.inlineblock, v.button], nt = [v.inline, v.codePre], it = null, st = v.block, lt = v.inline, at = v.block, dt = v.block, ct = v.block, X = [v.block, v.heading], ut = v.block, pt = [v.block, v.hr], xt = v.inline, gt = v.img, ht = [v.inlineblock, v.input], mt = null, bt = null, ft = v.inline, kt = v.block, vt = v.block, yt = v.inline, wt = v.block, $t = [v.list, v.block], Tt = null, Mt = null, Wt = v.block, St = [v.block, v.codePre], Ct = null, Rt = v.block, zt = v.inlineblock, jt = v.inline, Ht = [v.inline, v.strong], Lt = v.inline, It = v.inline, qt = [v.inlineblock, v.textarea], Pt = null, Et = [v.list, v.block], b = {
477
- a: Ye,
478
- article: Ze,
479
- aside: Ue,
480
- b: Je,
481
- bdi: Qe,
482
- bdo: et,
483
- blockquote: tt,
484
- br: ot,
485
- button: rt,
486
- code: nt,
487
- del: it,
488
- div: st,
489
- em: lt,
490
- fieldset: at,
491
- footer: dt,
492
- form: ct,
493
- h1: X,
494
- h2: X,
495
- h3: X,
496
- h4: X,
497
- h5: X,
498
- h6: X,
499
- header: ut,
500
- hr: pt,
501
- i: xt,
502
- img: gt,
503
- input: ht,
504
- ins: mt,
505
- kbd: bt,
506
- label: ft,
507
- li: kt,
508
- main: vt,
509
- mark: yt,
510
- nav: wt,
511
- ol: $t,
512
- optgroup: Tt,
513
- option: Mt,
514
- p: Wt,
515
- pre: St,
516
- s: Ct,
517
- section: Rt,
518
- select: zt,
519
- span: jt,
520
- strong: Ht,
521
- sub: Lt,
522
- sup: It,
523
- textarea: qt,
524
- u: Pt,
525
- ul: Et
526
- }, Bt = m("a", b.a), Ot = m("article", b.article), Gt = m("aside", b.aside), At = m("b", b.b), Dt = m("bdi", b.bdi), Ft = m("bdo", b.bdo), Vt = m("blockquote", b.blockquote), Xt = m("br", b.br), Kt = m("button", b.button), Nt = m("code", b.code), _t = m("del", b.del), Yt = m("div", b.div), Zt = m("em", b.em), Ut = m("fieldset", b.fieldset), Jt = m("footer", b.footer), Qt = m("form", b.form), eo = m("h1", b.h1), to = m("h2", b.h2), oo = m("h3", b.h3), ro = m("h4", b.h4), no = m("h5", b.h5), io = m("h6", b.h6), so = m("header", b.header), lo = m("hr", b.hr), ao = m("i", b.i), co = m("img", b.img), uo = m("input", b.input), po = m("ins", b.ins), xo = m("kbd", b.kbd), go = m("label", b.label), ho = m("li", b.li), mo = m("main", b.main), bo = m("mark", b.mark), fo = m("nav", b.nav), ko = m("ol", b.ol), vo = m("optgroup", b.optgroup), yo = m("option", b.option), wo = m("p", b.p), $o = m("pre", b.pre), To = m("s", b.s), Mo = m("section", b.section), Wo = m("select", b.select), So = m("span", b.span), Co = m("strong", b.strong), Ro = m("sub", b.sub), zo = m("sup", b.sup), jo = m("textarea", b.textarea), Ho = m("u", b.u), Lo = m("ul", b.ul);
527
- var Io = /* @__PURE__ */ Object.freeze({
528
- __proto__: null,
529
- a: Bt,
530
- article: Ot,
531
- aside: Gt,
532
- b: At,
533
- bdi: Dt,
534
- bdo: Ft,
535
- blockquote: Vt,
536
- br: Xt,
537
- button: Kt,
538
- code: Nt,
539
- del: _t,
540
- div: Yt,
541
- em: Zt,
542
- fieldset: Ut,
543
- footer: Jt,
544
- form: Qt,
545
- h1: eo,
546
- h2: to,
547
- h3: oo,
548
- h4: ro,
549
- h5: no,
550
- h6: io,
551
- header: so,
552
- hr: lo,
553
- i: ao,
554
- img: co,
555
- input: uo,
556
- ins: po,
557
- kbd: xo,
558
- label: go,
559
- li: ho,
560
- main: mo,
561
- mark: bo,
562
- nav: fo,
563
- ol: ko,
564
- optgroup: vo,
565
- option: yo,
566
- p: wo,
567
- pre: $o,
568
- s: To,
569
- section: Mo,
570
- select: Wo,
571
- span: So,
572
- strong: Co,
573
- sub: Ro,
574
- sup: zo,
575
- textarea: jo,
576
- u: Ho,
577
- ul: Lo
578
- });
579
- const qo = typeof process < "u" && process.env?.NODE_ENV === "production", ce = /* @__PURE__ */ new Set();
580
- function fe(t, e, o) {
581
- const r = `${t}:${e}`;
582
- qo || ce.has(r) || (ce.add(r), console.warn(`[duro-app/ui ${t}] ${o}`));
583
- }
584
- const ke = new Set(Ce);
585
- function ve(t) {
586
- return typeof t == "string" && ke.has(t) ? he[t] : t;
587
- }
588
- function ue(t) {
589
- const e = t;
590
- if (typeof e != "string") return e;
591
- const o = /^(minmax|fit-content)\((.*)\)$/.exec(e);
592
- if (o) {
593
- const r = o[2].split(",").map((d) => String(ve(d.trim())));
594
- return `${o[1]}(${r.join(", ")})`;
595
- }
596
- return ke.has(e) ? he[e] : e;
597
- }
598
- const P = {
599
- root: {
600
- "position-kVAEAm": "position-x1n2onr6",
601
- "display-k1xSpc": "display-x3nfvp2",
602
- $$css: "Menu/styles.css.ts:12"
603
- },
604
- trigger: {
605
- "display-k1xSpc": "display-x3nfvp2",
606
- "alignItems-kGNEyG": "alignItems-x6s0dn4",
607
- "gap-kOIVth": "gap-x175yhtj",
608
- "paddingTop-kLKAdn": "paddingTop-xc2wovk",
609
- "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
610
- "paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
611
- "paddingRight-kpe85a": "paddingRight-x7huf2v",
612
- "fontFamily-kMv6JI": "fontFamily-xce2pww",
613
- "fontSize-kGuDYH": "fontSize-x1tzajr0",
614
- "color-kMwMTN": "color-x95150z",
615
- "backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-x14zl4n5",
616
- "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
617
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
618
- "borderColor-kVAM5u": "borderColor-x15ykms2",
619
- "borderRadius-kaIpWk": "borderRadius-x17rit4p",
620
- "minWidth-k7Eaqz": "minWidth-x7pv91t",
621
- "minHeight-kAzted": "minHeight-xztz0i",
622
- "cursor-kkrTdU": "cursor-x1ypdohk",
623
- "transitionProperty-k1ekBW": "transitionProperty-xts7igz",
624
- "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
625
- $$css: "Menu/styles.css.ts:16"
626
- },
627
- triggerGhost: {
628
- "justifyContent-kjj79g": "justifyContent-xl56j7k",
629
- "minWidth-k7Eaqz": "minWidth-x1v8ggfx minWidth-x7pv91t",
630
- "minHeight-kAzted": "minHeight-x1304zm3 minHeight-xztz0i",
631
- "paddingTop-kLKAdn": "paddingTop-x1i738hq",
632
- "paddingBottom-kGO01o": "paddingBottom-x6sojwk",
633
- "paddingLeft-kE3dHu": "paddingLeft-xzmizx3",
634
- "paddingRight-kpe85a": "paddingRight-x7ulw7g",
635
- "borderColor-kVAM5u": "borderColor-x9r1u3d",
636
- $$css: "Menu/styles.css.ts:43"
637
- },
638
- triggerSmall: {
639
- "gap-kOIVth": "gap-xl5ne8a",
640
- "paddingTop-kLKAdn": "paddingTop-x1i738hq",
641
- "paddingBottom-kGO01o": "paddingBottom-x6sojwk",
642
- "paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
643
- "paddingRight-kpe85a": "paddingRight-xpkaq21",
644
- "fontSize-kGuDYH": "fontSize-x1f81oxx",
645
- "minHeight-kAzted": "minHeight-xjf0s44 minHeight-xztz0i",
646
- $$css: "Menu/styles.css.ts:56"
647
- },
648
- triggerGhostSmall: {
649
- "fontSize-kGuDYH": "fontSize-x1f81oxx",
650
- "minWidth-k7Eaqz": "minWidth-x1xyvl2a minWidth-x7pv91t",
651
- "minHeight-kAzted": "minHeight-xmlnt67 minHeight-xztz0i",
652
- $$css: "Menu/styles.css.ts:66"
653
- },
654
- popup: {
655
- "position-kVAEAm": "position-xixxii4",
656
- "top-k87sOh": "top-x13vifvy",
657
- "left-kbCHJM": "left-xu96u03",
658
- "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
659
- "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
660
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
661
- "borderColor-kVAM5u": "borderColor-x15ykms2",
662
- "borderRadius-kaIpWk": "borderRadius-x17rit4p",
663
- "boxShadow-kGVxlE": "boxShadow-x1e78jka",
664
- "paddingTop-kLKAdn": "paddingTop-x1i738hq",
665
- "paddingBottom-kGO01o": "paddingBottom-x6sojwk",
666
- "minWidth-k7Eaqz": "minWidth-x9i2ahm",
667
- "maxHeight-kskxy": "maxHeight-x2usv7r",
668
- "overflowY-kORKVm": "overflowY-x1odjw0f",
669
- "zIndex-kY2c9j": "zIndex-x9qr3eb",
670
- "pointerEvents-kfzvcC": "pointerEvents-x67bb7w",
671
- "outlineStyle-k3XXqK": "outlineStyle-x1t137rt",
672
- $$css: "Menu/styles.css.ts:71"
673
- },
674
- popupPosition: (t, e) => [{
675
- "top-k87sOh": t != null ? "top-xjbys53" : t,
676
- "left-kbCHJM": e != null ? "left-xgq9j65" : e,
677
- $$css: "Menu/styles.css.ts:94"
678
- }, {
679
- "--x-top": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(t),
680
- "--x-left": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(e)
681
- }],
682
- item: {
683
- "display-k1xSpc": "display-x78zum5",
684
- "alignItems-kGNEyG": "alignItems-x6s0dn4",
685
- "paddingTop-kLKAdn": "paddingTop-xc2wovk",
686
- "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
687
- "paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
688
- "paddingRight-kpe85a": "paddingRight-x7huf2v",
689
- "fontSize-kGuDYH": "fontSize-x1tzajr0",
690
- "fontFamily-kMv6JI": "fontFamily-xce2pww",
691
- "color-kMwMTN": "color-x95150z",
692
- "borderRadius-kaIpWk": "borderRadius-x17rit4p",
693
- "cursor-kkrTdU": "cursor-x1ypdohk",
694
- "backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
695
- "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
696
- "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
697
- $$css: "Menu/styles.css.ts:98"
698
- },
699
- itemHighlighted: {
700
- "backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
701
- "outlineStyle-k3XXqK": "outlineStyle-xaatb59",
702
- "outlineWidth-kMeerF": "outlineWidth-x1a33d5h",
703
- "outlineColor-kjBf7l": "outlineColor-x1uczgqu",
704
- "outlineOffset-kInvED": "outlineOffset-x186wpgv",
705
- $$css: "Menu/styles.css.ts:116"
706
- },
707
- separator: {
708
- "height-kZKoxP": "height-xqtp20y",
709
- "marginTop-keoZOQ": "marginTop-xuerg7n",
710
- "marginBottom-k1K539": "marginBottom-xnccn3x",
711
- "borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
712
- "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
713
- "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
714
- $$css: "Menu/styles.css.ts:123"
715
- },
716
- linkItem: {
717
- "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
718
- "color-kMwMTN": "color-x95150z color-xtolcfe",
719
- $$css: "Menu/styles.css.ts:131"
720
- }
721
- }, ye = A(null);
722
- function ee() {
723
- const t = G(ye);
724
- if (!t)
725
- throw new Error("Menu compound components must be used within Menu.Root");
726
- return t;
727
- }
728
- function Po(t, e) {
729
- return t ? !e.some((o) => o != null && o.contains(t)) : !0;
730
- }
731
- function Eo({
732
- open: t,
733
- defaultOpen: e = !1,
734
- onOpenChange: o
735
- }) {
736
- const [r, d] = Z(e), l = t !== void 0, a = l ? t : r, [i, n] = Z(null), s = q(i);
737
- J(() => {
738
- s.current = i;
739
- }, [i]);
740
- const c = Y(), p = Y(), u = q(null), x = q(null), g = q(null), h = q(/* @__PURE__ */ new Map()), f = q([]), y = q(a);
741
- y.current = a;
742
- const k = q(o);
743
- k.current = o;
744
- const w = K((M) => {
745
- M !== y.current && (l || d(M), k.current?.(M));
746
- }, [l]), C = K(() => {
747
- y.current && (w(!1), n(null));
748
- }, [w]), R = K(() => {
749
- y.current && (C(), x.current?.focus());
750
- }, [C]), H = K(() => {
751
- y.current ? R() : w(!0);
752
- }, [R, w]), I = q(!1);
753
- F(() => {
754
- if (a && !I.current) {
755
- g.current?.focus({
756
- preventScroll: !0
757
- });
758
- const M = f.current[0];
759
- M && n(M);
760
- } else !a && I.current && n(null);
761
- I.current = a;
762
- }, [a]), F(() => {
763
- if (!i) return;
764
- h.current.get(i)?.scrollIntoView?.({
765
- block: "nearest"
766
- });
767
- }, [i]);
768
- const O = K((M, E) => {
769
- h.current.set(M, E);
770
- const z = h.current, j = [...z.keys()];
771
- return j.sort((B, N) => {
772
- const se = z.get(B), le = z.get(N);
773
- return !se || !le ? 0 : se.compareDocumentPosition(le) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
774
- }), f.current = j, () => {
775
- h.current.delete(M), f.current = f.current.filter((B) => B !== M);
776
- };
777
- }, []);
778
- return F(() => {
779
- const M = g.current;
780
- if (!M || !a) return;
781
- function E(z) {
782
- if (z.key === "Escape") {
783
- z.preventDefault(), z.stopPropagation(), R();
784
- return;
785
- }
786
- if (z.key === "Tab") {
787
- R();
788
- return;
789
- }
790
- const j = f.current;
791
- if (j.length !== 0)
792
- switch (z.key) {
793
- case "ArrowDown": {
794
- z.preventDefault(), n((B) => {
795
- const N = B ? j.indexOf(B) : -1;
796
- return j[(N + 1) % j.length];
797
- });
798
- break;
799
- }
800
- case "ArrowUp": {
801
- z.preventDefault(), n((B) => {
802
- const N = B ? j.indexOf(B) : 0;
803
- return j[(N - 1 + j.length) % j.length];
804
- });
805
- break;
806
- }
807
- case "Home": {
808
- z.preventDefault(), n(j[0]);
809
- break;
810
- }
811
- case "End": {
812
- z.preventDefault(), n(j[j.length - 1]);
813
- break;
814
- }
815
- case "Enter":
816
- case " ": {
817
- z.preventDefault();
818
- const B = s.current;
819
- B && h.current.get(B)?.click();
820
- break;
821
- }
822
- }
823
- }
824
- return M.addEventListener("keydown", E), () => M.removeEventListener("keydown", E);
825
- }, [a, R]), F(() => {
826
- if (!a) return;
827
- function M(E) {
828
- Po(E.target, [g.current, x.current]) && C();
829
- }
830
- return document.addEventListener("pointerdown", M, !0), () => document.removeEventListener("pointerdown", M, !0);
831
- }, [a, C]), {
832
- ctx: {
833
- open: a,
834
- toggle: H,
835
- close: R,
836
- menuId: c,
837
- triggerId: p,
838
- highlightedId: i,
839
- setHighlightedId: n,
840
- registerItem: O,
841
- triggerRef: x,
842
- popupRef: g
843
- },
844
- rootRef: u
845
- };
846
- }
847
- function Bo({
848
- anchor: t,
849
- popup: e,
850
- viewport: o,
851
- side: r,
852
- align: d,
853
- offset: l
854
- }) {
855
- const a = t.top + t.height + l, i = t.top - l - e.height, n = a + e.height <= o.height, s = i >= 0;
856
- let c = r;
857
- r === "bottom" && !n && s ? c = "top" : r === "top" && !s && n && (c = "bottom");
858
- const p = c === "bottom" ? a : i;
859
- let u = t.left;
860
- d === "center" ? u = t.left + (t.width - e.width) / 2 : d === "end" && (u = t.left + t.width - e.width);
861
- const x = Math.max(0, o.width - e.width);
862
- return u = Math.min(Math.max(0, u), x), {
863
- top: p,
864
- left: u,
865
- side: c
866
- };
867
- }
868
- const Oo = A(null);
869
- function Go(t, e) {
870
- const o = L.c(5), {
871
- active: r
872
- } = e, d = G(Oo);
873
- let l, a;
874
- o[0] !== r || o[1] !== d || o[2] !== t ? (l = () => {
875
- const i = t.current;
876
- if (!(!d || !r || !i))
877
- return d.register(i);
878
- }, a = [d, r, t], o[0] = r, o[1] = d, o[2] = t, o[3] = l, o[4] = a) : (l = o[3], a = o[4]), J(l, a);
879
- }
880
- function Ao(t) {
881
- const e = L.c(10), {
882
- children: o,
883
- open: r,
884
- defaultOpen: d,
885
- onOpenChange: l
886
- } = t;
887
- let a;
888
- e[0] !== d || e[1] !== l || e[2] !== r ? (a = {
889
- open: r,
890
- defaultOpen: d,
891
- onOpenChange: l
892
- }, e[0] = d, e[1] = l, e[2] = r, e[3] = a) : a = e[3];
893
- const {
894
- ctx: i,
895
- rootRef: n
896
- } = Eo(a);
897
- let s;
898
- e[4] !== o || e[5] !== n ? (s = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:41", ref: n, ...W(S.div, P.root), children: o }), e[4] = o, e[5] = n, e[6] = s) : s = e[6];
899
- let c;
900
- return e[7] !== i || e[8] !== s ? (c = /* @__PURE__ */ T(ye.Provider, { value: i, children: s }), e[7] = i, e[8] = s, e[9] = c) : c = e[9], c;
901
- }
902
- const Do = 'button, a[href], input, select, textarea, [role="button"]';
903
- function Fo({
904
- children: t,
905
- "aria-label": e,
906
- variant: o = "default",
907
- size: r = "default",
908
- ref: d
909
- }) {
910
- const {
911
- open: l,
912
- toggle: a,
913
- menuId: i,
914
- triggerId: n,
915
- triggerRef: s
916
- } = ee(), c = He(), p = c.ref, u = K((x) => {
917
- s.current = x, p.current = x, typeof d == "function" ? d(x) : d && (d.current = x);
918
- }, [d, s, p]);
919
- return F(() => {
920
- s.current?.querySelector(Do) && fe("Menu", "trigger-nested-control", "Menu.Trigger is itself the button — give it the label (text, an Icon), not a Button, link or other control. A control inside a <button> is invalid HTML: it breaks hydration and hands assistive tech a button inside a button.");
921
- }, [s]), /* @__PURE__ */ T("button", { "data-element-src": "Menu/Menu.tsx:100", ref: u, tabIndex: c.tabIndex, onFocus: c.onFocus, id: n, type: "button", onClick: a, "aria-label": e, "aria-expanded": l, "aria-haspopup": "menu", "aria-controls": l ? i : void 0, ...W(S.button, P.trigger, o === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, c.style), children: t });
922
- }
923
- function Vo(t) {
924
- const e = L.c(26), {
925
- children: o,
926
- align: r
927
- } = t, d = r === void 0 ? "start" : r, {
928
- open: l,
929
- menuId: a,
930
- triggerId: i,
931
- highlightedId: n,
932
- triggerRef: s,
933
- popupRef: c
934
- } = ee();
935
- let p;
936
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
937
- top: 0,
938
- left: 0
939
- }, e[0] = p) : p = e[0];
940
- const [u, x] = Z(p), g = Be();
941
- let h;
942
- e[1] !== l ? (h = {
943
- active: l
944
- }, e[1] = l, e[2] = h) : h = e[2], Go(c, h);
945
- let f, y;
946
- if (e[3] !== d || e[4] !== l || e[5] !== c || e[6] !== s ? (f = () => {
947
- if (!l)
948
- return;
949
- const D = () => {
950
- const M = c.current, E = s.current?.getBoundingClientRect();
951
- if (!M || !E)
952
- return;
953
- const z = Bo({
954
- anchor: {
955
- top: E.top,
956
- left: E.left,
957
- width: E.width,
958
- height: E.height
959
- },
960
- popup: {
961
- width: M.offsetWidth,
962
- height: M.offsetHeight
963
- },
964
- viewport: {
965
- width: window.innerWidth,
966
- height: window.innerHeight
967
- },
968
- side: "bottom",
969
- align: d,
970
- offset: Se.xs
971
- });
972
- x((j) => j.top === z.top && j.left === z.left ? j : {
973
- top: z.top,
974
- left: z.left
975
- });
976
- };
977
- return D(), window.addEventListener("resize", D), window.addEventListener("scroll", D, !0), () => {
978
- window.removeEventListener("resize", D), window.removeEventListener("scroll", D, !0);
979
- };
980
- }, y = [l, d, c, s], e[3] = d, e[4] = l, e[5] = c, e[6] = s, e[7] = f, e[8] = y) : (f = e[7], y = e[8]), J(f, y), !l || typeof document > "u")
981
- return null;
982
- const k = n ?? void 0;
983
- let w;
984
- e[9] !== u.left || e[10] !== u.top ? (w = P.popupPosition(u.top, u.left), e[9] = u.left, e[10] = u.top, e[11] = w) : w = e[11];
985
- let C;
986
- e[12] !== w ? (C = [P.popup, w], e[12] = w, e[13] = C) : C = e[13];
987
- let R;
988
- e[14] !== o ? (R = /* @__PURE__ */ T(Oe, { children: o }), e[14] = o, e[15] = R) : R = e[15];
989
- let H;
990
- e[16] !== a || e[17] !== c || e[18] !== k || e[19] !== C || e[20] !== R || e[21] !== i ? (H = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:170", ref: c, id: a, role: "menu", tabIndex: -1, "aria-labelledby": i, "aria-activedescendant": k, ...W(S.div, C), children: R }), e[16] = a, e[17] = c, e[18] = k, e[19] = C, e[20] = R, e[21] = i, e[22] = H) : H = e[22];
991
- const I = g ?? document.body;
992
- let O;
993
- return e[23] !== H || e[24] !== I ? (O = We(H, I), e[23] = H, e[24] = I, e[25] = O) : O = e[25], O;
994
- }
995
- function Xo(t) {
996
- const e = L.c(18), {
997
- onClick: o,
998
- children: r
999
- } = t, {
1000
- close: d,
1001
- highlightedId: l,
1002
- setHighlightedId: a,
1003
- registerItem: i
1004
- } = ee(), n = Y(), s = q(null), c = l === n;
1005
- let p, u;
1006
- e[0] !== n || e[1] !== i ? (p = () => {
1007
- const w = s.current;
1008
- if (w)
1009
- return i(n, w);
1010
- }, u = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = u) : (p = e[2], u = e[3]), F(p, u);
1011
- let x;
1012
- e[4] !== d || e[5] !== o ? (x = () => {
1013
- o?.(), d();
1014
- }, e[4] = d, e[5] = o, e[6] = x) : x = e[6];
1015
- const g = x;
1016
- let h;
1017
- e[7] !== n || e[8] !== a ? (h = () => a(n), e[7] = n, e[8] = a, e[9] = h) : h = e[9];
1018
- const f = c && P.itemHighlighted;
1019
- let y;
1020
- e[10] !== f ? (y = [P.item, f], e[10] = f, e[11] = y) : y = e[11];
1021
- let k;
1022
- return e[12] !== r || e[13] !== g || e[14] !== n || e[15] !== h || e[16] !== y ? (k = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:209", ref: s, id: n, role: "menuitem", onClick: g, onPointerEnter: h, ...W(S.div, y), children: r }), e[12] = r, e[13] = g, e[14] = n, e[15] = h, e[16] = y, e[17] = k) : k = e[17], k;
1023
- }
1024
- function Ko(t) {
1025
- const e = L.c(18), {
1026
- href: o,
1027
- children: r
1028
- } = t, {
1029
- close: d,
1030
- highlightedId: l,
1031
- setHighlightedId: a,
1032
- registerItem: i
1033
- } = ee(), n = Y(), s = q(null), c = l === n;
1034
- let p, u;
1035
- e[0] !== n || e[1] !== i ? (p = () => {
1036
- const k = s.current;
1037
- if (k)
1038
- return i(n, k);
1039
- }, u = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = u) : (p = e[2], u = e[3]), F(p, u);
1040
- let x;
1041
- e[4] !== d ? (x = () => d(), e[4] = d, e[5] = x) : x = e[5];
1042
- let g;
1043
- e[6] !== n || e[7] !== a ? (g = () => a(n), e[6] = n, e[7] = a, e[8] = g) : g = e[8];
1044
- const h = c && P.itemHighlighted;
1045
- let f;
1046
- e[9] !== h ? (f = [P.item, P.linkItem, h], e[9] = h, e[10] = f) : f = e[10];
1047
- let y;
1048
- return e[11] !== r || e[12] !== o || e[13] !== n || e[14] !== x || e[15] !== g || e[16] !== f ? (y = /* @__PURE__ */ T("a", { "data-element-src": "Menu/Menu.tsx:241", ref: s, id: n, href: o, onClick: x, role: "menuitem", onPointerEnter: g, ...W(S.a, f), children: r }), e[11] = r, e[12] = o, e[13] = n, e[14] = x, e[15] = g, e[16] = f, e[17] = y) : y = e[17], y;
1049
- }
1050
- function No() {
1051
- const t = L.c(1);
1052
- let e;
1053
- return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:260", role: "separator", "aria-orientation": "horizontal", ...W(S.div, P.separator) }), t[0] = e) : e = t[0], e;
1054
- }
1055
- const gr = {
1056
- Root: Ao,
1057
- Trigger: Fo,
1058
- Popup: Vo,
1059
- Item: Xo,
1060
- LinkItem: Ko,
1061
- Separator: No
1062
- }, $ = {
1063
- container: {
1064
- "containerType-k9g6sI": "containerType-x12h1iku",
1065
- "display-k1xSpc": "display-x78zum5",
1066
- "flexDirection-kXwgrk": "flexDirection-xdt5ytf",
1067
- "gap-kOIVth": "gap-x175yhtj",
1068
- $$css: "Table/styles.css.ts:25"
1069
- },
1070
- rootContainer: {
1071
- "containerType-k9g6sI": "containerType-x12h1iku",
1072
- "display-k1xSpc": "display-x78zum5",
1073
- "flexDirection-kXwgrk": "flexDirection-xdt5ytf",
1074
- "gap-kOIVth": "gap-x175yhtj",
1075
- $$css: "Table/styles.css.ts:34"
1076
- },
1077
- clickableRow: {
1078
- "cursor-kkrTdU": "cursor-x1ypdohk",
1079
- "outlineWidth-kMeerF": "outlineWidth-x1k57tk5 outlineWidth-x4u4vcp",
1080
- "outlineStyle-k3XXqK": "outlineStyle-xaatb59",
1081
- "outlineColor-kjBf7l": "outlineColor-x1e3ajik",
1082
- "outlineOffset-kInvED": "outlineOffset-x1j8r21s",
1083
- $$css: "Table/styles.css.ts:43"
1084
- },
1085
- root: {
1086
- "display-k1xSpc": "display-xrvj5dj",
1087
- "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
1088
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
1089
- "borderColor-kVAM5u": "borderColor-x15ykms2",
1090
- "borderRadius-kaIpWk": "borderRadius-xwbokb3",
1091
- "overflow-kVQacm": "overflow-xb3r6kr",
1092
- "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
1093
- "fontFamily-kMv6JI": "fontFamily-xce2pww",
1094
- "color-kMwMTN": "color-x95150z",
1095
- $$css: "Table/styles.css.ts:55"
1096
- },
1097
- rootResponsive: {
1098
- "minWidth-k7Eaqz": "minWidth-x13qp9f6 minWidth-xym1sjy",
1099
- "borderWidth-kMzoRj": "borderWidth-x1qc3l2q borderWidth-xtteep3",
1100
- "backgroundColor-kWkggS": "backgroundColor-xuw63hu backgroundColor-x1i4f0qi",
1101
- "overflow-kVQacm": "overflow-xb3r6kr overflow-x2v4zgh",
1102
- "rowGap-khm7nJ": "rowGap-xxs79tx rowGap-xijoxap",
1103
- $$css: "Table/styles.css.ts:74"
1104
- },
1105
- header: {
1106
- "display-k1xSpc": "display-xrvj5dj display-xncg82s",
1107
- "gridColumn-kBCFzs": "gridColumn-x1osaytk",
1108
- "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
1109
- "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
1110
- $$css: "Table/styles.css.ts:106"
1111
- },
1112
- body: {
1113
- "display-k1xSpc": "display-xrvj5dj",
1114
- "gridColumn-kBCFzs": "gridColumn-x1osaytk",
1115
- "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
1116
- $$css: "Table/styles.css.ts:117"
1117
- },
1118
- row: {
1119
- "display-k1xSpc": "display-xrvj5dj",
1120
- "gridColumn-kBCFzs": "gridColumn-x1osaytk",
1121
- "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx gridTemplateColumns-x1iukyyp",
1122
- "borderBottomWidth-kt9PQ7": "borderBottomWidth-x12yxxv5 borderBottomWidth-xatuo0m",
1123
- "borderBottomStyle-kfdmCh": "borderBottomStyle-x1q0q8m5",
1124
- "borderBottomColor-kL6WhQ": "borderBottomColor-x19cyuh1",
1125
- $$css: "Table/styles.css.ts:126"
1126
- },
1127
- bodyRow: {
1128
- "backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-xp88rol backgroundColor-x14zl4n5",
1129
- "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
1130
- "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
1131
- "transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
1132
- "padding-kmVPX3": "padding-x1717udv padding-x1s7rzzx",
1133
- "borderRadius-kaIpWk": "borderRadius-x2u8bby borderRadius-x95x1h7",
1134
- "borderWidth-kMzoRj": "borderWidth-xc342km borderWidth-xrp8l4a",
1135
- "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
1136
- "borderColor-kVAM5u": "borderColor-x15ykms2",
1137
- $$css: "Table/styles.css.ts:140"
1138
- },
1139
- headerCell: {
1140
- "fontWeight-k63SB2": "fontWeight-x1x12jc5",
1141
- "color-kMwMTN": "color-x4opovt",
1142
- "textAlign-k9WMMc": "textAlign-x1yc453h",
1143
- "minWidth-k7Eaqz": "minWidth-xeuugli",
1144
- "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
1145
- "whiteSpace-khDVqt": "whiteSpace-xeaf4i8 whiteSpace-x1348v4l",
1146
- $$css: "Table/styles.css.ts:167"
1147
- },
1148
- cell: {
1149
- "color-kMwMTN": "color-x95150z",
1150
- "display-k1xSpc": "display-x78zum5 display-xs8gwy4",
1151
- "alignItems-kGNEyG": "alignItems-x6s0dn4",
1152
- "minWidth-k7Eaqz": "minWidth-xeuugli",
1153
- "overflow-kVQacm": "overflow-x1rea2x4 overflow-x1axt6uq",
1154
- "whiteSpace-khDVqt": "whiteSpace-xeaf4i8",
1155
- "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
1156
- "gridTemplateColumns-kumcoG": "gridTemplateColumns-xzgtm8w",
1157
- "gap-kOIVth": "gap-xxhr3t gap-xgrwfsz",
1158
- $$css: "Table/styles.css.ts:190"
1159
- },
1160
- cellValue: {
1161
- "minWidth-k7Eaqz": "minWidth-xeuugli",
1162
- "flexGrow-kzQI83": "flexGrow-x1iyjqo2",
1163
- "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
1164
- $$css: "Table/styles.css.ts:228"
1165
- },
1166
- cellLabel: {
1167
- "display-k1xSpc": "display-x1s85apg display-x1sim00f",
1168
- "color-kMwMTN": "color-x4opovt",
1169
- "fontWeight-k63SB2": "fontWeight-x120ksxs",
1170
- "fontSize-kGuDYH": "fontSize-x1f81oxx",
1171
- $$css: "Table/styles.css.ts:237"
1172
- },
1173
- cellActions: {
1174
- "gridTemplateColumns-kumcoG": "gridTemplateColumns-x1iukyyp",
1175
- "justifyContent-kjj79g": "justifyContent-xalo3at",
1176
- "marginTop-keoZOQ": "marginTop-xdj266r marginTop-x1mip588",
1177
- "paddingTop-kLKAdn": "paddingTop-x1waenea",
1178
- "borderTopWidth-kEafiO": "borderTopWidth-x972fbf borderTopWidth-x1ijfi2n",
1179
- "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
1180
- "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
1181
- $$css: "Table/styles.css.ts:251"
1182
- },
1183
- cellSm: {
1184
- "paddingTop-kLKAdn": "paddingTop-x1i738hq paddingTop-x81it4n",
1185
- "paddingBottom-kGO01o": "paddingBottom-x6sojwk paddingBottom-x1jele16",
1186
- "paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
1187
- "paddingRight-kpe85a": "paddingRight-xpkaq21",
1188
- "fontSize-kGuDYH": "fontSize-x1f81oxx",
1189
- $$css: "Table/styles.css.ts:277"
1190
- },
1191
- cellMd: {
1192
- "paddingTop-kLKAdn": "paddingTop-xc2wovk",
1193
- "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
1194
- "paddingLeft-kE3dHu": "paddingLeft-x2rk66v paddingLeft-x1u39w1b",
1195
- "paddingRight-kpe85a": "paddingRight-x7huf2v paddingRight-x1cevoma",
1196
- "fontSize-kGuDYH": "fontSize-x1tzajr0",
1197
- $$css: "Table/styles.css.ts:291"
1198
- },
1199
- stripedEven: {
1200
- "backgroundColor-kWkggS": "backgroundColor-xlyqa1p backgroundColor-xp88rol backgroundColor-x14zl4n5",
1201
- $$css: "Table/styles.css.ts:307"
1202
- },
1203
- borderedCell: {
1204
- "borderRightWidth-kWqL5O": "borderRightWidth-xnwp6cp borderRightWidth-xc5nm28",
1205
- "borderRightStyle-kSWEuD": "borderRightStyle-x32b0ac",
1206
- "borderRightColor-k26BEO": "borderRightColor-x9iiiab",
1207
- $$css: "Table/styles.css.ts:316"
1208
- },
1209
- borderedCellLast: {
1210
- "borderRightWidth-kWqL5O": "borderRightWidth-xgfja2r",
1211
- $$css: "Table/styles.css.ts:324"
1212
- },
1213
- sortChip: {
1214
- "display-k1xSpc": "display-x1s85apg display-x11cgw9t",
1215
- "alignSelf-kSGwAc": "alignSelf-xqcrz7y",
1216
- $$css: "Table/styles.css.ts:329"
1217
- },
1218
- scrollX: {
1219
- "overflowX-kXHlph": "overflowX-xw2csxc",
1220
- "overflowY-kORKVm": "overflowY-xryxfnj",
1221
- "WebkitOverflowScrolling-kuHK5b": "WebkitOverflowScrolling-x5lxg6s",
1222
- $$css: "Table/styles.css.ts:343"
1223
- },
1224
- scrollFrame: {
1225
- "position-kVAEAm": "position-x1n2onr6",
1226
- $$css: "Table/styles.css.ts:354"
1227
- },
1228
- edgeFade: {
1229
- "position-kVAEAm": "position-x10l6tqk",
1230
- "top-k87sOh": "top-xnfr1j",
1231
- "bottom-krVfgx": "bottom-x19ip775",
1232
- "width-kzqmXN": "width-x1xju080",
1233
- "pointerEvents-kfzvcC": "pointerEvents-x47corl",
1234
- "opacity-kSiTet": "opacity-xg01cxk",
1235
- "transitionProperty-k1ekBW": "transitionProperty-x19991ni",
1236
- "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
1237
- "transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
1238
- $$css: "Table/styles.css.ts:361"
1239
- },
1240
- edgeFadeLeft: {
1241
- "left-kbCHJM": "left-xt9097p",
1242
- "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-xha5hpv",
1243
- "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-x1hsk2v7",
1244
- "backgroundImage-kKwaWg": "backgroundImage-xvdn1ag",
1245
- $$css: "Table/styles.css.ts:372"
1246
- },
1247
- edgeFadeRight: {
1248
- "right-kCIrl2": "right-x1hp3iq1",
1249
- "borderTopRightRadius-ksF3WI": "borderTopRightRadius-xbbsgyh",
1250
- "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xitffcu",
1251
- "backgroundImage-kKwaWg": "backgroundImage-x1ykoi01",
1252
- $$css: "Table/styles.css.ts:378"
1253
- },
1254
- edgeFadeVisible: {
1255
- "opacity-kSiTet": "opacity-x1hc1fzr",
1256
- $$css: "Table/styles.css.ts:384"
1257
- },
1258
- gridColumns: (t) => [{
1259
- "gridTemplateColumns-kumcoG": t != null ? "gridTemplateColumns-xqketvx" : t,
1260
- $$css: "Table/styles.css.ts:389"
1261
- }, {
1262
- "--x-gridTemplateColumns": t ?? void 0
1263
- }],
1264
- gridColumnsResponsive: (t, e) => [{
1265
- "gridTemplateColumns-kumcoG": (t != null ? "gridTemplateColumns-x39pwss " : t) + (e != null ? "gridTemplateColumns-x17u3dsi " : e) + "gridTemplateColumns-x1iukyyp",
1266
- $$css: "Table/styles.css.ts:408"
1267
- }, {
1268
- "--x-1pds3uo": t ?? void 0,
1269
- "--x-1n5740v": e ?? void 0
1270
- }]
1271
- }, we = A(null);
1272
- function te() {
1273
- const t = G(we);
1274
- if (!t)
1275
- throw new Error("Table compound components must be used within Table.Root");
1276
- return t;
1277
- }
1278
- const re = A(!1);
1279
- function _o(t) {
1280
- const e = L.c(2), {
1281
- children: o
1282
- } = t;
1283
- let r;
1284
- return e[0] !== o ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:55", ...W(S.div, $.container), children: o }), e[0] = o, e[1] = r) : r = e[1], r;
1285
- }
1286
- function Yo(t) {
1287
- let e = "";
1288
- return Q.forEach(t, (o) => {
1289
- (typeof o == "string" || typeof o == "number") && (e += String(o));
1290
- }), e;
1291
- }
1292
- function Zo(t) {
1293
- let e = t;
1294
- for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
1295
- const r = e.type ?? e.render;
1296
- if (r == null) break;
1297
- e = r;
1298
- }
1299
- return e;
1300
- }
1301
- function Uo(t, e) {
1302
- const o = [], r = [], d = [];
1303
- function l(a) {
1304
- Q.forEach(a, (i) => {
1305
- if (!Me(i)) return;
1306
- const n = i.props, s = Zo(i.type), c = s?.displayName || s?.name || "";
1307
- if (s === ie || c === "HeaderCell") {
1308
- const p = n.width ? String(ue(n.width)) : `minmax(${ve(e)}, 1fr)`;
1309
- o.push(p), r.push(n.compactWidth ? String(ue(n.compactWidth)) : p);
1310
- const u = typeof n.label == "string" ? n.label : void 0, x = Yo(n.children).trim(), g = u ?? x;
1311
- !u && x === "" && n.children != null && fe("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), d.push(g);
1312
- } else n.children && l(n.children);
1313
- });
1314
- }
1315
- return l(t), {
1316
- template: o.join(" "),
1317
- compactTemplate: r.join(" "),
1318
- labels: d
1319
- };
1320
- }
1321
- function Jo(t) {
1322
- const e = L.c(13), {
1323
- children: o
1324
- } = t, r = q(null);
1325
- let d;
1326
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
1327
- start: !1,
1328
- end: !1
1329
- }, e[0] = d) : d = e[0];
1330
- const [l, a] = Z(d);
1331
- let i, n;
1332
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
1333
- const h = r.current;
1334
- if (!h)
1335
- return;
1336
- const f = () => {
1337
- const k = h.scrollWidth - h.clientWidth > 1;
1338
- a({
1339
- start: k && h.scrollLeft > 1,
1340
- end: k && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
1341
- });
1342
- };
1343
- f(), h.addEventListener("scroll", f, {
1344
- passive: !0
1345
- });
1346
- const y = typeof ResizeObserver < "u" ? new ResizeObserver(f) : null;
1347
- return y?.observe(h), () => {
1348
- h.removeEventListener("scroll", f), y?.disconnect();
1349
- };
1350
- }, n = [], e[1] = i, e[2] = n) : (i = e[1], n = e[2]), F(i, n);
1351
- let s;
1352
- e[3] !== o ? (s = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...W(S.div, $.scrollX), children: o }), e[3] = o, e[4] = s) : s = e[4];
1353
- const c = l.start && $.edgeFadeVisible;
1354
- let p;
1355
- e[5] !== c ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...W(S.div, $.edgeFade, $.edgeFadeLeft, c) }), e[5] = c, e[6] = p) : p = e[6];
1356
- const u = l.end && $.edgeFadeVisible;
1357
- let x;
1358
- e[7] !== u ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...W(S.div, $.edgeFade, $.edgeFadeRight, u) }), e[7] = u, e[8] = x) : x = e[8];
1359
- let g;
1360
- return e[9] !== s || e[10] !== p || e[11] !== x ? (g = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:195", ...W(S.div, $.scrollFrame), children: [
1361
- s,
1362
- p,
1363
- x
1364
- ] }), e[9] = s, e[10] = p, e[11] = x, e[12] = g) : g = e[12], g;
1365
- }
1366
- function Qo({
1367
- children: t,
1368
- variant: e = "default",
1369
- size: o = "md",
1370
- responsive: r = !0,
1371
- minColumnWidth: d = "labelMinW",
1372
- sortChip: l,
1373
- pagination: a
1374
- }) {
1375
- const i = q(null), {
1376
- template: n,
1377
- compactTemplate: s,
1378
- labels: c
1379
- } = Uo(t, d);
1380
- n && (i.current = n);
1381
- const p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
1382
- S.div,
1383
- $.root,
1384
- // When responsive, use gridColumnsResponsive so the explicit column
1385
- // template and the stack-mode @container override live in one StyleX
1386
- // style object. Splitting them across two styles (gridColumns +
1387
- // rootResponsive) causes StyleX conflict resolution to drop the
1388
- // column template because rootResponsive's gridTemplateColumns key
1389
- // always wins as the later entry in the array.
1390
- n ? r ? $.gridColumnsResponsive(n, s) : $.gridColumns(n) : void 0,
1391
- r && $.rootResponsive
1392
- ), children: t }), x = /* @__PURE__ */ U(Te, { children: [
1393
- l,
1394
- r ? /* @__PURE__ */ T(Jo, { children: p }) : p,
1395
- a
1396
- ] });
1397
- return /* @__PURE__ */ T(we.Provider, { value: {
1398
- variant: e,
1399
- size: o,
1400
- responsive: r,
1401
- labels: c,
1402
- inferredTemplateRef: i
1403
- }, children: r ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:299", ...W(S.div, $.rootContainer), children: x }) : x });
1404
- }
1405
- function er(t) {
1406
- const e = L.c(2), {
1407
- children: o
1408
- } = t;
1409
- let r;
1410
- return e[0] !== o ? (r = /* @__PURE__ */ T(re.Provider, { value: !0, children: /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...W(S.div, $.header), children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
1411
- }
1412
- function tr(t) {
1413
- const e = L.c(19), {
1414
- children: o
1415
- } = t, {
1416
- variant: r
1417
- } = te();
1418
- let d, l, a, i, n, s;
1419
- if (e[0] !== o || e[1] !== r) {
1420
- const u = Q.toArray(o);
1421
- l = re.Provider, s = !1, d = Io.div, a = "rowgroup", i = $.body;
1422
- let x;
1423
- e[8] !== r ? (x = (g, h) => r !== "striped" ? g : /* @__PURE__ */ T($e.Provider, { value: h, children: g }, g.key ?? h), e[8] = r, e[9] = x) : x = e[9], n = u.map(x), e[0] = o, e[1] = r, e[2] = d, e[3] = l, e[4] = a, e[5] = i, e[6] = n, e[7] = s;
1424
- } else
1425
- d = e[2], l = e[3], a = e[4], i = e[5], n = e[6], s = e[7];
1426
- let c;
1427
- e[10] !== d || e[11] !== a || e[12] !== i || e[13] !== n ? (c = /* @__PURE__ */ T(d, { role: a, style: i, children: n }), e[10] = d, e[11] = a, e[12] = i, e[13] = n, e[14] = c) : c = e[14];
1428
- let p;
1429
- return e[15] !== l || e[16] !== s || e[17] !== c ? (p = /* @__PURE__ */ T(l, { value: s, children: c }), e[15] = l, e[16] = s, e[17] = c, e[18] = p) : p = e[18], p;
1430
- }
1431
- const $e = A(-1), or = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1432
- function rr(t) {
1433
- const e = L.c(17), {
1434
- children: o,
1435
- onClick: r,
1436
- "aria-label": d
1437
- } = t, {
1438
- variant: l
1439
- } = te(), a = G(re), i = G($e), n = i >= 0 && i % 2 === 1;
1440
- let s;
1441
- if (e[0] !== d || e[1] !== o || e[2] !== n || e[3] !== a || e[4] !== r || e[5] !== l) {
1442
- const c = Q.toArray(o), p = r !== void 0 && !a;
1443
- let u;
1444
- e[7] !== p || e[8] !== r ? (u = p ? (k) => {
1445
- const w = k.target;
1446
- w instanceof Element && w.closest(or) || r();
1447
- } : void 0, e[7] = p, e[8] = r, e[9] = u) : u = e[9];
1448
- let x;
1449
- e[10] !== p || e[11] !== r ? (x = p ? (k) => {
1450
- (k.key === "Enter" || k.key === " ") && r();
1451
- } : void 0, e[10] = p, e[11] = r, e[12] = x) : x = e[12];
1452
- const g = !a && $.bodyRow, h = !a && l === "striped" && n && $.stripedEven, f = p && $.clickableRow;
1453
- let y;
1454
- e[13] !== g || e[14] !== h || e[15] !== f ? (y = [$.row, g, h, f], e[13] = g, e[14] = h, e[15] = f, e[16] = y) : y = e[16], s = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: p ? 0 : void 0, "aria-label": p ? d : void 0, onClick: u, onKeyDown: x, ...W(S.div, y), children: c.map((k, w) => /* @__PURE__ */ T(ne.Provider, { value: {
1455
- index: w,
1456
- total: c.length
1457
- }, children: k }, k.key ?? w)) }), e[0] = d, e[1] = o, e[2] = n, e[3] = a, e[4] = r, e[5] = l, e[6] = s;
1458
- } else
1459
- s = e[6];
1460
- return s;
1461
- }
1462
- const ne = A({
1463
- index: 0,
1464
- total: 0
1465
- });
1466
- function ie(t) {
1467
- const e = L.c(8), {
1468
- children: o,
1469
- "aria-label": r
1470
- } = t, {
1471
- size: d,
1472
- variant: l
1473
- } = te(), {
1474
- index: a,
1475
- total: i
1476
- } = G(ne), n = l === "bordered" && a === i - 1, s = d === "sm" ? $.cellSm : $.cellMd, c = l === "bordered" && $.borderedCell, p = n && $.borderedCellLast;
1477
- let u;
1478
- e[0] !== s || e[1] !== c || e[2] !== p ? (u = [$.headerCell, s, c, p], e[0] = s, e[1] = c, e[2] = p, e[3] = u) : u = e[3];
1479
- let x;
1480
- return e[4] !== r || e[5] !== o || e[6] !== u ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...W(S.div, u), children: o }), e[4] = r, e[5] = o, e[6] = u, e[7] = x) : x = e[7], x;
1481
- }
1482
- ie.displayName = "HeaderCell";
1483
- function nr(t) {
1484
- const e = L.c(16), {
1485
- children: o,
1486
- isActions: r
1487
- } = t, {
1488
- size: d,
1489
- variant: l,
1490
- labels: a,
1491
- responsive: i
1492
- } = te(), {
1493
- index: n,
1494
- total: s
1495
- } = G(ne), c = l === "bordered" && n === s - 1, p = a[n] ?? "", u = d === "sm" ? $.cellSm : $.cellMd, x = l === "bordered" && $.borderedCell, g = c && $.borderedCellLast, h = r && $.cellActions;
1496
- let f;
1497
- e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (f = [$.cell, u, x, g, h], e[0] = u, e[1] = x, e[2] = g, e[3] = h, e[4] = f) : f = e[4];
1498
- let y;
1499
- e[5] !== r || e[6] !== p || e[7] !== i ? (y = i && !r && p !== "" ? /* @__PURE__ */ T("span", { "data-element-src": "Table/Table.tsx:507", ...W(S.span, $.cellLabel), children: p }) : null, e[5] = r, e[6] = p, e[7] = i, e[8] = y) : y = e[8];
1500
- let k;
1501
- e[9] !== o || e[10] !== r ? (k = r ? o : /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:509", ...W(S.div, $.cellValue), children: o }), e[9] = o, e[10] = r, e[11] = k) : k = e[11];
1502
- let w;
1503
- return e[12] !== f || e[13] !== y || e[14] !== k ? (w = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...W(S.div, f), children: [
1504
- y,
1505
- k
1506
- ] }), e[12] = f, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
1507
- }
1508
- const ir = {
1509
- /** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
1510
- Container: _o,
1511
- Root: Qo,
1512
- Header: er,
1513
- Body: tr,
1514
- Row: rr,
1515
- HeaderCell: ie,
1516
- Cell: nr
1517
- }, hr = ir;
1518
- export {
1519
- xe as B,
1520
- Oe as C,
1521
- cr as D,
1522
- ie as H,
1523
- ur as I,
1524
- gr as M,
1525
- Oo as P,
1526
- rr as R,
1527
- Se as S,
1528
- pr as T,
1529
- Be as a,
1530
- xr as b,
1531
- Go as c,
1532
- fe as d,
1533
- Bo as e,
1534
- Re as f,
1535
- ze as g,
1536
- Io as h,
1537
- pe as i,
1538
- Po as j,
1539
- ue as k,
1540
- hr as l,
1541
- $ as m,
1542
- er as n,
1543
- tr as o,
1544
- Qo as p,
1545
- nr as q,
1546
- ve as r,
1547
- he as s,
1548
- _ as t,
1549
- He as u,
1550
- ir as v
1551
- };
1552
- //# sourceMappingURL=Table-ColfpgKV.js.map