@duro-app/ui 4.5.0 → 5.1.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 (242) hide show
  1. package/dist/Table-BkrgH0jb.js +1199 -0
  2. package/dist/Table-BkrgH0jb.js.map +1 -0
  3. package/dist/components/ActionBar/ActionBar.stories.d.ts.map +1 -1
  4. package/dist/components/ActionBar/styles.css.d.ts +7 -7
  5. package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
  6. package/dist/components/Alert/styles.css.d.ts +2 -2
  7. package/dist/components/Alert/styles.css.d.ts.map +1 -1
  8. package/dist/components/Badge/styles.css.d.ts +2 -2
  9. package/dist/components/Button/styles.css.d.ts +5 -5
  10. package/dist/components/Button/styles.css.d.ts.map +1 -1
  11. package/dist/components/Callout/styles.css.d.ts +1 -1
  12. package/dist/components/Callout/styles.css.d.ts.map +1 -1
  13. package/dist/components/Card/Card.stories.d.ts.map +1 -1
  14. package/dist/components/Card/styles.css.d.ts +3 -3
  15. package/dist/components/Card/styles.css.d.ts.map +1 -1
  16. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  17. package/dist/components/Checkbox/styles.css.d.ts +7 -11
  18. package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
  19. package/dist/components/Cluster/Cluster.stories.d.ts.map +1 -1
  20. package/dist/components/ColorInput/styles.css.d.ts +6 -6
  21. package/dist/components/ColorInput/styles.css.d.ts.map +1 -1
  22. package/dist/components/ColorMode/styles.css.d.ts +3 -3
  23. package/dist/components/ColorMode/styles.css.d.ts.map +1 -1
  24. package/dist/components/Combobox/styles.css.d.ts +3 -3
  25. package/dist/components/Combobox/styles.css.d.ts.map +1 -1
  26. package/dist/components/DetailPanel/DetailPanel.d.ts.map +1 -1
  27. package/dist/components/DetailPanel/DetailPanel.stories.d.ts.map +1 -1
  28. package/dist/components/DetailPanel/styles.css.d.ts +19 -10
  29. package/dist/components/DetailPanel/styles.css.d.ts.map +1 -1
  30. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  31. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  32. package/dist/components/Dialog/styles.css.d.ts +18 -9
  33. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  34. package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
  35. package/dist/components/DragDrop/DragDrop.stories.d.ts.map +1 -1
  36. package/dist/components/DragDrop/styles.css.d.ts +0 -6
  37. package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
  38. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  39. package/dist/components/Drawer/styles.css.d.ts +19 -10
  40. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  41. package/dist/components/Field/Field.stories.d.ts.map +1 -1
  42. package/dist/components/Field/styles.css.d.ts +1 -1
  43. package/dist/components/Field/styles.css.d.ts.map +1 -1
  44. package/dist/components/Form/Form.stories.d.ts.map +1 -1
  45. package/dist/components/Grid/Grid.d.ts +6 -4
  46. package/dist/components/Grid/Grid.d.ts.map +1 -1
  47. package/dist/components/Grid/Grid.stories.d.ts.map +1 -1
  48. package/dist/components/Grid/styles.css.d.ts +5 -5
  49. package/dist/components/Grid/styles.css.d.ts.map +1 -1
  50. package/dist/components/Input/Input.stories.d.ts.map +1 -1
  51. package/dist/components/Input/styles.css.d.ts +3 -3
  52. package/dist/components/Input/styles.css.d.ts.map +1 -1
  53. package/dist/components/InputGroup/InputGroup.d.ts +4 -2
  54. package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
  55. package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -1
  56. package/dist/components/InputGroup/styles.css.d.ts +3 -3
  57. package/dist/components/InputGroup/styles.css.d.ts.map +1 -1
  58. package/dist/components/LinkButton/styles.css.d.ts +1 -1
  59. package/dist/components/LinkButton/styles.css.d.ts.map +1 -1
  60. package/dist/components/List/List.stories.d.ts.map +1 -1
  61. package/dist/components/List/styles.css.d.ts +3 -3
  62. package/dist/components/List/styles.css.d.ts.map +1 -1
  63. package/dist/components/Menu/styles.css.d.ts +4 -4
  64. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  65. package/dist/components/PageShell/styles.css.d.ts +3 -3
  66. package/dist/components/PageShell/styles.css.d.ts.map +1 -1
  67. package/dist/components/Panel/styles.css.d.ts +3 -3
  68. package/dist/components/Panel/styles.css.d.ts.map +1 -1
  69. package/dist/components/Popover/Popover.stories.d.ts.map +1 -1
  70. package/dist/components/Popover/styles.css.d.ts +2 -2
  71. package/dist/components/Popover/styles.css.d.ts.map +1 -1
  72. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  73. package/dist/components/RadioGroup/styles.css.d.ts +5 -9
  74. package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
  75. package/dist/components/ScrollArea/ScrollArea.d.ts +2 -1
  76. package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  77. package/dist/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
  78. package/dist/components/ScrollArea/styles.css.d.ts +8 -8
  79. package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
  80. package/dist/components/Select/styles.css.d.ts +4 -4
  81. package/dist/components/Select/styles.css.d.ts.map +1 -1
  82. package/dist/components/SideNav/styles.css.d.ts +7 -7
  83. package/dist/components/SideNav/styles.css.d.ts.map +1 -1
  84. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  85. package/dist/components/Spinner/styles.css.d.ts +10 -14
  86. package/dist/components/Spinner/styles.css.d.ts.map +1 -1
  87. package/dist/components/StatusIcon/StatusIcon.stories.d.ts.map +1 -1
  88. package/dist/components/Switch/Switch.d.ts.map +1 -1
  89. package/dist/components/Switch/styles.css.d.ts +10 -14
  90. package/dist/components/Switch/styles.css.d.ts.map +1 -1
  91. package/dist/components/Table/ColumnFilter.d.ts.map +1 -1
  92. package/dist/components/Table/FromTanstack.d.ts +2 -1
  93. package/dist/components/Table/FromTanstack.d.ts.map +1 -1
  94. package/dist/components/Table/Pagination.d.ts.map +1 -1
  95. package/dist/components/Table/SortIndicator.d.ts.map +1 -1
  96. package/dist/components/Table/Table.d.ts +11 -9
  97. package/dist/components/Table/Table.d.ts.map +1 -1
  98. package/dist/components/Table/Table.stories.d.ts +1 -0
  99. package/dist/components/Table/Table.stories.d.ts.map +1 -1
  100. package/dist/components/Table/styles.css.d.ts +6 -6
  101. package/dist/components/Table/styles.css.d.ts.map +1 -1
  102. package/dist/components/Tabs/styles.css.d.ts +8 -8
  103. package/dist/components/Tabs/styles.css.d.ts.map +1 -1
  104. package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
  105. package/dist/components/Tag/styles.css.d.ts +4 -4
  106. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  107. package/dist/components/TagGroup/TagGroup.d.ts.map +1 -1
  108. package/dist/components/TagGroup/styles.css.d.ts +4 -10
  109. package/dist/components/TagGroup/styles.css.d.ts.map +1 -1
  110. package/dist/components/Textarea/Textarea.stories.d.ts.map +1 -1
  111. package/dist/components/Textarea/styles.css.d.ts +3 -3
  112. package/dist/components/Textarea/styles.css.d.ts.map +1 -1
  113. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  114. package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
  115. package/dist/components/Toast/styles.css.d.ts +12 -12
  116. package/dist/components/Toast/styles.css.d.ts.map +1 -1
  117. package/dist/components/Toggle/styles.css.d.ts +8 -8
  118. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  119. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts.map +1 -1
  120. package/dist/components/ToggleGroup/styles.css.d.ts +1 -1
  121. package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
  122. package/dist/components/Tooltip/styles.css.d.ts +1 -1
  123. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  124. package/dist/components/Tree/styles.css.d.ts +4 -4
  125. package/dist/components/Tree/styles.css.d.ts.map +1 -1
  126. package/dist/components/VirtualTable/VirtualTable.d.ts +2 -1
  127. package/dist/components/VirtualTable/VirtualTable.d.ts.map +1 -1
  128. package/dist/components/VirtualTable/VirtualTable.stories.d.ts.map +1 -1
  129. package/dist/components/VirtualTable/styles.css.d.ts +7 -7
  130. package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
  131. package/dist/docs/Spacing.stories.d.ts.map +1 -1
  132. package/dist/docs/Typography.stories.d.ts.map +1 -1
  133. package/dist/docs/helpers.d.ts.map +1 -1
  134. package/dist/index.css +1 -1
  135. package/dist/index.js +2833 -2828
  136. package/dist/index.js.map +1 -1
  137. package/dist/shared/length.d.ts +29 -0
  138. package/dist/shared/length.d.ts.map +1 -0
  139. package/dist/shared/length.typecheck.d.ts +31 -0
  140. package/dist/shared/length.typecheck.d.ts.map +1 -0
  141. package/dist/styles/visually-hidden.css.d.ts +10 -0
  142. package/dist/styles/visually-hidden.css.d.ts.map +1 -0
  143. package/dist/table.js +166 -166
  144. package/dist/table.js.map +1 -1
  145. package/package.json +2 -2
  146. package/src/components/ActionBar/ActionBar.stories.tsx +4 -2
  147. package/src/components/ActionBar/styles.css.ts +11 -9
  148. package/src/components/Alert/styles.css.ts +4 -3
  149. package/src/components/Badge/styles.css.ts +3 -3
  150. package/src/components/Button/styles.css.ts +8 -7
  151. package/src/components/Callout/styles.css.ts +2 -1
  152. package/src/components/Card/Card.stories.tsx +2 -1
  153. package/src/components/Card/styles.css.ts +4 -3
  154. package/src/components/Checkbox/Checkbox.tsx +2 -1
  155. package/src/components/Checkbox/styles.css.ts +10 -11
  156. package/src/components/Cluster/Cluster.stories.tsx +2 -1
  157. package/src/components/ColorInput/styles.css.ts +9 -7
  158. package/src/components/ColorMode/styles.css.ts +4 -3
  159. package/src/components/Combobox/styles.css.ts +5 -3
  160. package/src/components/DetailPanel/DetailPanel.stories.tsx +5 -3
  161. package/src/components/DetailPanel/DetailPanel.tsx +3 -0
  162. package/src/components/DetailPanel/styles.css.ts +17 -11
  163. package/src/components/Dialog/Dialog.stories.tsx +2 -1
  164. package/src/components/Dialog/Dialog.tsx +3 -0
  165. package/src/components/Dialog/styles.css.ts +14 -9
  166. package/src/components/DragDrop/DragDrop.stories.tsx +2 -1
  167. package/src/components/DragDrop/DragDrop.tsx +2 -1
  168. package/src/components/DragDrop/styles.css.ts +0 -7
  169. package/src/components/Drawer/Drawer.tsx +3 -0
  170. package/src/components/Drawer/DrawerScroll.stories.tsx +5 -5
  171. package/src/components/Drawer/styles.css.ts +15 -10
  172. package/src/components/Field/Field.stories.tsx +3 -2
  173. package/src/components/Field/styles.css.ts +2 -1
  174. package/src/components/Form/Form.stories.tsx +4 -3
  175. package/src/components/Grid/Grid.meta.ts +2 -2
  176. package/src/components/Grid/Grid.stories.tsx +3 -2
  177. package/src/components/Grid/Grid.tsx +8 -6
  178. package/src/components/Grid/styles.css.ts +5 -4
  179. package/src/components/Input/Input.stories.tsx +2 -1
  180. package/src/components/Input/styles.css.ts +4 -3
  181. package/src/components/InputGroup/InputGroup.stories.tsx +3 -2
  182. package/src/components/InputGroup/InputGroup.tsx +5 -3
  183. package/src/components/InputGroup/styles.css.ts +4 -3
  184. package/src/components/LinkButton/styles.css.ts +2 -1
  185. package/src/components/List/List.stories.tsx +4 -2
  186. package/src/components/List/styles.css.ts +6 -4
  187. package/src/components/Menu/styles.css.ts +6 -4
  188. package/src/components/PageShell/styles.css.ts +4 -3
  189. package/src/components/Panel/styles.css.ts +4 -3
  190. package/src/components/Popover/Popover.stories.tsx +6 -4
  191. package/src/components/Popover/styles.css.ts +3 -2
  192. package/src/components/RadioGroup/RadioGroup.tsx +2 -1
  193. package/src/components/RadioGroup/styles.css.ts +8 -9
  194. package/src/components/ScrollArea/ScrollArea.meta.ts +1 -1
  195. package/src/components/ScrollArea/ScrollArea.stories.tsx +7 -5
  196. package/src/components/ScrollArea/ScrollArea.tsx +7 -2
  197. package/src/components/ScrollArea/styles.css.ts +10 -9
  198. package/src/components/Select/styles.css.ts +6 -4
  199. package/src/components/SideNav/styles.css.ts +10 -8
  200. package/src/components/Spinner/Spinner.tsx +2 -1
  201. package/src/components/Spinner/styles.css.ts +14 -14
  202. package/src/components/StatusIcon/StatusIcon.stories.tsx +2 -2
  203. package/src/components/Switch/Switch.tsx +2 -1
  204. package/src/components/Switch/styles.css.ts +15 -15
  205. package/src/components/Table/ColumnFilter.tsx +5 -4
  206. package/src/components/Table/FromTanstack.tsx +2 -1
  207. package/src/components/Table/Pagination.tsx +6 -4
  208. package/src/components/Table/SortIndicator.tsx +4 -2
  209. package/src/components/Table/Table.stories.tsx +47 -8
  210. package/src/components/Table/Table.tsx +19 -15
  211. package/src/components/Table/styles.css.ts +9 -7
  212. package/src/components/Tabs/styles.css.ts +11 -9
  213. package/src/components/Tag/Tag.stories.tsx +4 -2
  214. package/src/components/Tag/styles.css.ts +6 -5
  215. package/src/components/TagGroup/TagGroup.tsx +2 -1
  216. package/src/components/TagGroup/styles.css.ts +6 -10
  217. package/src/components/Textarea/Textarea.stories.tsx +2 -1
  218. package/src/components/Textarea/styles.css.ts +4 -3
  219. package/src/components/ThemeProvider/ThemeProvider.stories.tsx +7 -5
  220. package/src/components/Toast/Toast.stories.tsx +2 -1
  221. package/src/components/Toast/styles.css.ts +16 -14
  222. package/src/components/Toggle/Toggle.meta.ts +1 -1
  223. package/src/components/Toggle/styles.css.ts +12 -10
  224. package/src/components/ToggleGroup/ToggleGroup.meta.ts +1 -1
  225. package/src/components/ToggleGroup/ToggleGroup.stories.tsx +7 -6
  226. package/src/components/ToggleGroup/styles.css.ts +7 -6
  227. package/src/components/Tooltip/styles.css.ts +2 -1
  228. package/src/components/Tree/styles.css.ts +8 -6
  229. package/src/components/VirtualTable/VirtualTable.stories.tsx +4 -3
  230. package/src/components/VirtualTable/VirtualTable.tsx +5 -3
  231. package/src/components/VirtualTable/styles.css.ts +9 -8
  232. package/src/docs/Spacing.stories.tsx +11 -10
  233. package/src/docs/Typography.stories.tsx +8 -6
  234. package/src/docs/helpers.tsx +3 -2
  235. package/src/shared/length.ts +70 -0
  236. package/src/shared/length.typecheck.tsx +56 -0
  237. package/src/styles/visually-hidden.css.ts +16 -0
  238. package/dist/Table-CUp12BKZ.js +0 -1099
  239. package/dist/Table-CUp12BKZ.js.map +0 -1
  240. package/dist/components/Toggle/rowHeight.d.ts +0 -17
  241. package/dist/components/Toggle/rowHeight.d.ts.map +0 -1
  242. package/src/components/Toggle/rowHeight.ts +0 -12
@@ -0,0 +1,1199 @@
1
+ import { jsx as $, jsxs as X, Fragment as se } from "react/jsx-runtime";
2
+ import { c as j, m as S, d as M } from "./compiler-runtime-B2IcI8_O.js";
3
+ import { useContext as A, createContext as V, useState as J, useId as Z, useRef as q, useEffect as P, Children as K, isValidElement as ke } from "react";
4
+ const Ho = {
5
+ xs: 4,
6
+ sm: 8,
7
+ ms: 12,
8
+ md: 16,
9
+ lg: 24,
10
+ xl: 32,
11
+ xxl: 48,
12
+ xxxl: 64
13
+ }, Po = {
14
+ instant: 0,
15
+ minimal: 1,
16
+ quick: 120,
17
+ fast: 150,
18
+ brisk: 160,
19
+ base: 200,
20
+ slow: 280
21
+ }, me = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg"], G = {
22
+ touchTarget: 44,
23
+ iconSm: 16,
24
+ iconMd: 18,
25
+ iconLg: 24,
26
+ iconXl: 36,
27
+ iconXxl: 48
28
+ }, Do = {
29
+ sm: G.iconSm,
30
+ md: G.iconMd,
31
+ lg: G.iconLg,
32
+ xl: G.iconXl,
33
+ xxl: G.iconXxl
34
+ }, le = {
35
+ touchTarget: "var(--touchTarget-x1u5badx)",
36
+ controlSm: "var(--controlSm-x6ymn93)",
37
+ controlMd: "var(--controlMd-xkvaeme)",
38
+ controlLg: "var(--controlLg-xf3drh3)",
39
+ indicator: "var(--indicator-xce456j)",
40
+ indicatorDot: "var(--indicatorDot-xqflvbi)",
41
+ checkMarkW: "var(--checkMarkW-xvyirw7)",
42
+ checkMarkH: "var(--checkMarkH-xz3lx6u)",
43
+ switchTrackW: "var(--switchTrackW-xcah3tt)",
44
+ switchTrackH: "var(--switchTrackH-x1h3icne)",
45
+ switchThumb: "var(--switchThumb-x6qupft)",
46
+ iconButton: "var(--iconButton-x16lr7a8)",
47
+ iconButtonSm: "var(--iconButtonSm-xtjgrhy)",
48
+ spinnerSm: "var(--spinnerSm-xoj3xel)",
49
+ spinnerMd: "var(--spinnerMd-x11a4rba)",
50
+ spinnerLg: "var(--spinnerLg-x1lgp9p9)",
51
+ glyphXs: "var(--glyphXs-x7xktls)",
52
+ glyphSm: "var(--glyphSm-x17geiot)",
53
+ glyphMd: "var(--glyphMd-x1hz0jso)",
54
+ iconSm: "var(--iconSm-x1k4bwrj)",
55
+ iconMd: "var(--iconMd-x1oru5hg)",
56
+ iconLg: "var(--iconLg-x1lsumnr)",
57
+ iconXl: "var(--iconXl-x7w40q9)",
58
+ iconXxl: "var(--iconXxl-xij55jf)",
59
+ navMarkerW: "var(--navMarkerW-x1swbkx4)",
60
+ navMarkerH: "var(--navMarkerH-xlc6r7a)",
61
+ divider: "var(--divider-x34oj7m)",
62
+ tabIndicator: "var(--tabIndicator-xeswvk3)",
63
+ edgeFade: "var(--edgeFade-x1a8srg4)",
64
+ scrollbar: "var(--scrollbar-xppi9bb)",
65
+ swatchW: "var(--swatchW-x14v7170)",
66
+ swatchH: "var(--swatchH-x5k3223)",
67
+ labelMinW: "var(--labelMinW-x1tnvsg3)",
68
+ popupMinW: "var(--popupMinW-xzyp04)",
69
+ listMaxH: "var(--listMaxH-x1g3bmh3)",
70
+ listMaxHSm: "var(--listMaxHSm-xhny4oa)",
71
+ dialogSm: "var(--dialogSm-x16fibl1)",
72
+ dialogMd: "var(--dialogMd-x1yjoj5l)",
73
+ dialogLg: "var(--dialogLg-xsd9wl3)",
74
+ panelSm: "var(--panelSm-x1ng1dcv)",
75
+ panelMd: "var(--panelMd-x11x23mn)",
76
+ panelLg: "var(--panelLg-x19cpfjm)",
77
+ toastMaxW: "var(--toastMaxW-x1po6n0z)",
78
+ gridColSm: "var(--gridColSm-xzwpy92)",
79
+ gridColMd: "var(--gridColMd-x1cjqdt9)",
80
+ pageSm: "var(--pageSm-x5j4ghi)",
81
+ pageMd: "var(--pageMd-xloo57l)",
82
+ pageLg: "var(--pageLg-x393fnm)",
83
+ __varGroupHash__: "x1w57kmz"
84
+ }, ae = new Set(me);
85
+ function ce(t) {
86
+ return typeof t == "string" && ae.has(t) ? le[t] : t;
87
+ }
88
+ function ne(t) {
89
+ const e = t;
90
+ if (typeof e != "string") return e;
91
+ const r = /^(minmax|fit-content)\((.*)\)$/.exec(e);
92
+ if (r) {
93
+ const o = r[2].split(",").map((a) => String(ce(a.trim())));
94
+ return `${r[1]}(${o.join(", ")})`;
95
+ }
96
+ return ae.has(e) ? le[e] : e;
97
+ }
98
+ const R = {
99
+ root: {
100
+ "position-kVAEAm": "position-x1n2onr6",
101
+ "display-k1xSpc": "display-x3nfvp2",
102
+ $$css: "Menu/styles.css.ts:11"
103
+ },
104
+ trigger: {
105
+ "display-k1xSpc": "display-x3nfvp2",
106
+ "alignItems-kGNEyG": "alignItems-x6s0dn4",
107
+ "gap-kOIVth": "gap-x175yhtj",
108
+ "paddingTop-kLKAdn": "paddingTop-xc2wovk",
109
+ "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
110
+ "paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
111
+ "paddingRight-kpe85a": "paddingRight-x7huf2v",
112
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
113
+ "fontSize-kGuDYH": "fontSize-x1tzajr0",
114
+ "color-kMwMTN": "color-x95150z",
115
+ "backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-x14zl4n5",
116
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
117
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
118
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
119
+ "borderRadius-kaIpWk": "borderRadius-x17rit4p",
120
+ "cursor-kkrTdU": "cursor-x1ypdohk",
121
+ "transitionProperty-k1ekBW": "transitionProperty-xts7igz",
122
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
123
+ $$css: "Menu/styles.css.ts:15"
124
+ },
125
+ backdrop: {
126
+ "position-kVAEAm": "position-xixxii4",
127
+ "top-k87sOh": "top-x13vifvy",
128
+ "left-kbCHJM": "left-xu96u03",
129
+ "right-kCIrl2": "right-x3m8u43",
130
+ "bottom-krVfgx": "bottom-x1ey2m1c",
131
+ "zIndex-kY2c9j": "zIndex-x1ygf0dq",
132
+ $$css: "Menu/styles.css.ts:38"
133
+ },
134
+ popup: {
135
+ "position-kVAEAm": "position-x10l6tqk",
136
+ "top-k87sOh": "top-xdsb8wn",
137
+ "left-kbCHJM": "left-xu96u03",
138
+ "marginTop-keoZOQ": "marginTop-xuerg7n",
139
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
140
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
141
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
142
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
143
+ "borderRadius-kaIpWk": "borderRadius-x17rit4p",
144
+ "boxShadow-kGVxlE": "boxShadow-x1e78jka",
145
+ "paddingTop-kLKAdn": "paddingTop-x1i738hq",
146
+ "paddingBottom-kGO01o": "paddingBottom-x6sojwk",
147
+ "minWidth-k7Eaqz": "minWidth-x9i2ahm",
148
+ "zIndex-kY2c9j": "zIndex-xa9119d",
149
+ $$css: "Menu/styles.css.ts:46"
150
+ },
151
+ popupEnd: {
152
+ "left-kbCHJM": "left-x1t8mvi6",
153
+ "right-kCIrl2": "right-x3m8u43",
154
+ $$css: "Menu/styles.css.ts:62"
155
+ },
156
+ item: {
157
+ "display-k1xSpc": "display-x78zum5",
158
+ "alignItems-kGNEyG": "alignItems-x6s0dn4",
159
+ "paddingTop-kLKAdn": "paddingTop-xc2wovk",
160
+ "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
161
+ "paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
162
+ "paddingRight-kpe85a": "paddingRight-x7huf2v",
163
+ "fontSize-kGuDYH": "fontSize-x1tzajr0",
164
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
165
+ "color-kMwMTN": "color-x95150z",
166
+ "borderRadius-kaIpWk": "borderRadius-x17rit4p",
167
+ "cursor-kkrTdU": "cursor-x1ypdohk",
168
+ "backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
169
+ "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
170
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
171
+ $$css: "Menu/styles.css.ts:66"
172
+ },
173
+ itemHighlighted: {
174
+ "backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
175
+ $$css: "Menu/styles.css.ts:82"
176
+ },
177
+ separator: {
178
+ "height-kZKoxP": "height-xqtp20y",
179
+ "marginTop-keoZOQ": "marginTop-xuerg7n",
180
+ "marginBottom-k1K539": "marginBottom-xnccn3x",
181
+ "borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
182
+ "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
183
+ "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
184
+ $$css: "Menu/styles.css.ts:85"
185
+ },
186
+ linkItem: {
187
+ "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
188
+ "color-kMwMTN": "color-x95150z color-xtolcfe",
189
+ $$css: "Menu/styles.css.ts:93"
190
+ }
191
+ }, de = V(null);
192
+ function N() {
193
+ const t = A(de);
194
+ if (!t)
195
+ throw new Error("Menu compound components must be used within Menu.Root");
196
+ return t;
197
+ }
198
+ function he() {
199
+ const t = j.c(15), [e, r] = J(!1), [o, a] = J(null), p = Z(), d = q(null), l = q(null);
200
+ let n;
201
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ new Map(), t[0] = n) : n = t[0];
202
+ const i = q(n);
203
+ let x;
204
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (x = [], t[1] = x) : x = t[1];
205
+ const s = q(x), c = q(!1);
206
+ let u;
207
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
208
+ r(!1), a(null), c.current = !1, l.current?.focus();
209
+ }, t[2] = u) : u = t[2];
210
+ const m = u;
211
+ let k;
212
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
213
+ r((C) => (C ? (a(null), c.current = !1) : c.current = !0, !C));
214
+ }, t[3] = k) : k = t[3];
215
+ const y = k;
216
+ let w, f;
217
+ t[4] !== e ? (w = () => {
218
+ if (e && c.current) {
219
+ c.current = !1;
220
+ const C = s.current;
221
+ C.length > 0 && a(C[0]);
222
+ }
223
+ }, f = [e], t[4] = e, t[5] = w, t[6] = f) : (w = t[5], f = t[6]), P(w, f);
224
+ let T;
225
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (T = (C, D) => {
226
+ i.current.set(C, D);
227
+ const _ = i.current, I = [..._.keys()];
228
+ return I.sort((W, O) => {
229
+ const L = _.get(W), Y = _.get(O);
230
+ return !L || !Y ? 0 : L.compareDocumentPosition(Y) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
231
+ }), s.current = I, () => {
232
+ i.current.delete(C), s.current = s.current.filter((W) => W !== C);
233
+ };
234
+ }, t[7] = T) : T = t[7];
235
+ const F = T;
236
+ let H, z;
237
+ t[8] !== e ? (H = () => {
238
+ const C = d.current;
239
+ if (!C || !e)
240
+ return;
241
+ const D = function(I) {
242
+ const W = s.current;
243
+ if (W.length !== 0)
244
+ e: switch (I.key) {
245
+ case "ArrowDown": {
246
+ I.preventDefault(), a((O) => {
247
+ const L = O ? W.indexOf(O) : -1;
248
+ return W[(L + 1) % W.length];
249
+ });
250
+ break e;
251
+ }
252
+ case "ArrowUp": {
253
+ I.preventDefault(), a((O) => {
254
+ const L = O ? W.indexOf(O) : 0;
255
+ return W[(L - 1 + W.length) % W.length];
256
+ });
257
+ break e;
258
+ }
259
+ case "Home": {
260
+ I.preventDefault(), a(W[0]);
261
+ break e;
262
+ }
263
+ case "End": {
264
+ I.preventDefault(), a(W[W.length - 1]);
265
+ break e;
266
+ }
267
+ case "Enter":
268
+ case " ": {
269
+ I.preventDefault();
270
+ const O = i.current;
271
+ a((L) => (L && O.get(L)?.click(), L));
272
+ break e;
273
+ }
274
+ case "Escape": {
275
+ I.preventDefault(), m();
276
+ break e;
277
+ }
278
+ case "Tab":
279
+ m();
280
+ }
281
+ };
282
+ return C.addEventListener("keydown", D), () => C.removeEventListener("keydown", D);
283
+ }, z = [e, m], t[8] = e, t[9] = H, t[10] = z) : (H = t[9], z = t[10]), P(H, z);
284
+ let E;
285
+ return t[11] !== o || t[12] !== p || t[13] !== e ? (E = {
286
+ ctx: {
287
+ open: e,
288
+ toggle: y,
289
+ close: m,
290
+ menuId: p,
291
+ highlightedId: o,
292
+ setHighlightedId: a,
293
+ registerItem: F,
294
+ triggerRef: l
295
+ },
296
+ rootRef: d
297
+ }, t[11] = o, t[12] = p, t[13] = e, t[14] = E) : E = t[14], E;
298
+ }
299
+ const fe = typeof process < "u" && process.env?.NODE_ENV === "production", re = /* @__PURE__ */ new Set();
300
+ function ue(t, e, r) {
301
+ const o = `${t}:${e}`;
302
+ fe || re.has(o) || (re.add(o), console.warn(`[duro-app/ui ${t}] ${r}`));
303
+ }
304
+ function ve(t) {
305
+ const e = j.c(6), {
306
+ children: r
307
+ } = t, {
308
+ ctx: o,
309
+ rootRef: a
310
+ } = he();
311
+ let p;
312
+ e[0] !== r || e[1] !== a ? (p = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:18", ref: a, ...S(M.div, R.root), children: r }), e[0] = r, e[1] = a, e[2] = p) : p = e[2];
313
+ let d;
314
+ return e[3] !== o || e[4] !== p ? (d = /* @__PURE__ */ $(de.Provider, { value: o, children: p }), e[3] = o, e[4] = p, e[5] = d) : d = e[5], d;
315
+ }
316
+ const ye = 'button, a[href], input, select, textarea, [role="button"]';
317
+ function we(t) {
318
+ const e = j.c(9), {
319
+ children: r
320
+ } = t, {
321
+ open: o,
322
+ toggle: a,
323
+ menuId: p,
324
+ triggerRef: d
325
+ } = N(), l = q(null);
326
+ let n;
327
+ e[0] !== d ? (n = () => {
328
+ d.current = l.current;
329
+ }, e[0] = d, e[1] = n) : n = e[1], P(n);
330
+ let i, x;
331
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
332
+ l.current?.querySelector(ye) && ue("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.");
333
+ }, x = [], e[2] = i, e[3] = x) : (i = e[2], x = e[3]), P(i, x);
334
+ const s = o ? p : void 0;
335
+ let c;
336
+ return e[4] !== r || e[5] !== o || e[6] !== s || e[7] !== a ? (c = /* @__PURE__ */ $("button", { "data-element-src": "Menu/Menu.tsx:52", ref: l, type: "button", onClick: a, "aria-expanded": o, "aria-haspopup": "menu", "aria-controls": s, ...S(M.button, R.trigger), children: r }), e[4] = r, e[5] = o, e[6] = s, e[7] = a, e[8] = c) : c = e[8], c;
337
+ }
338
+ function $e(t) {
339
+ const e = j.c(12), {
340
+ children: r,
341
+ align: o
342
+ } = t, a = o === void 0 ? "start" : o, {
343
+ open: p,
344
+ close: d,
345
+ menuId: l,
346
+ highlightedId: n
347
+ } = N();
348
+ if (!p)
349
+ return null;
350
+ let i;
351
+ e[0] !== d ? (i = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:79", ...S(M.div, R.backdrop), onClick: d }), e[0] = d, e[1] = i) : i = e[1];
352
+ const x = n ?? void 0, s = a === "end" && R.popupEnd;
353
+ let c;
354
+ e[2] !== s ? (c = [R.popup, s], e[2] = s, e[3] = c) : c = e[3];
355
+ let u;
356
+ e[4] !== r || e[5] !== l || e[6] !== x || e[7] !== c ? (u = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:80", id: l, role: "menu", "aria-activedescendant": x, ...S(M.div, c), children: r }), e[4] = r, e[5] = l, e[6] = x, e[7] = c, e[8] = u) : u = e[8];
357
+ let m;
358
+ return e[9] !== i || e[10] !== u ? (m = /* @__PURE__ */ X(se, { children: [
359
+ i,
360
+ u
361
+ ] }), e[9] = i, e[10] = u, e[11] = m) : m = e[11], m;
362
+ }
363
+ function Te(t) {
364
+ const e = j.c(18), {
365
+ onClick: r,
366
+ children: o
367
+ } = t, {
368
+ close: a,
369
+ highlightedId: p,
370
+ setHighlightedId: d,
371
+ registerItem: l
372
+ } = N(), n = Z(), i = q(null), x = p === n;
373
+ let s, c;
374
+ e[0] !== n || e[1] !== l ? (s = () => {
375
+ const T = i.current;
376
+ if (T)
377
+ return l(n, T);
378
+ }, c = [n, l], e[0] = n, e[1] = l, e[2] = s, e[3] = c) : (s = e[2], c = e[3]), P(s, c);
379
+ let u;
380
+ e[4] !== a || e[5] !== r ? (u = () => {
381
+ r?.(), a();
382
+ }, e[4] = a, e[5] = r, e[6] = u) : u = e[6];
383
+ const m = u;
384
+ let k;
385
+ e[7] !== n || e[8] !== d ? (k = () => d(n), e[7] = n, e[8] = d, e[9] = k) : k = e[9];
386
+ const y = x && R.itemHighlighted;
387
+ let w;
388
+ e[10] !== y ? (w = [R.item, y], e[10] = y, e[11] = w) : w = e[11];
389
+ let f;
390
+ return e[12] !== o || e[13] !== m || e[14] !== n || e[15] !== k || e[16] !== w ? (f = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:116", ref: i, id: n, role: "menuitem", onClick: m, onPointerEnter: k, ...S(M.div, w), children: o }), e[12] = o, e[13] = m, e[14] = n, e[15] = k, e[16] = w, e[17] = f) : f = e[17], f;
391
+ }
392
+ function Se(t) {
393
+ const e = j.c(16), {
394
+ href: r,
395
+ children: o
396
+ } = t, {
397
+ close: a,
398
+ highlightedId: p,
399
+ setHighlightedId: d,
400
+ registerItem: l
401
+ } = N(), n = Z(), i = q(null), x = p === n;
402
+ let s, c;
403
+ e[0] !== n || e[1] !== l ? (s = () => {
404
+ const w = i.current;
405
+ if (w)
406
+ return l(n, w);
407
+ }, c = [n, l], e[0] = n, e[1] = l, e[2] = s, e[3] = c) : (s = e[2], c = e[3]), P(s, c);
408
+ let u;
409
+ e[4] !== n || e[5] !== d ? (u = () => d(n), e[4] = n, e[5] = d, e[6] = u) : u = e[6];
410
+ const m = x && R.itemHighlighted;
411
+ let k;
412
+ e[7] !== m ? (k = [R.item, R.linkItem, m], e[7] = m, e[8] = k) : k = e[8];
413
+ let y;
414
+ return e[9] !== o || e[10] !== a || e[11] !== r || e[12] !== n || e[13] !== u || e[14] !== k ? (y = /* @__PURE__ */ $("a", { "data-element-src": "Menu/Menu.tsx:148", ref: i, id: n, href: r, onClick: a, role: "menuitem", onPointerEnter: u, ...S(M.a, k), children: o }), e[9] = o, e[10] = a, e[11] = r, e[12] = n, e[13] = u, e[14] = k, e[15] = y) : y = e[15], y;
415
+ }
416
+ function Me() {
417
+ const t = j.c(1);
418
+ let e;
419
+ return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:167", role: "separator", "aria-orientation": "horizontal", ...S(M.div, R.separator) }), t[0] = e) : e = t[0], e;
420
+ }
421
+ const Bo = {
422
+ Root: ve,
423
+ Trigger: we,
424
+ Popup: $e,
425
+ Item: Te,
426
+ LinkItem: Se,
427
+ Separator: Me
428
+ };
429
+ /**
430
+ * @license react-strict-dom
431
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
432
+ *
433
+ * This source code is licensed under the MIT license found in the
434
+ * LICENSE file in the root directory of this source tree.
435
+ */
436
+ const ie = {};
437
+ function Ce(t) {
438
+ process.env.NODE_ENV !== "test" && ie[t] || (ie[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
439
+ }
440
+ const We = /* @__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"]);
441
+ function je(t) {
442
+ return We.has(t) || t.indexOf("data-") > -1;
443
+ }
444
+ var Q = {};
445
+ Object.defineProperty(Q, "__esModule", {
446
+ value: !0
447
+ });
448
+ var pe = Q.styleq = void 0, Re = /* @__PURE__ */ new WeakMap(), ze = "$$css";
449
+ function xe(t) {
450
+ var e, r, o;
451
+ return t != null && (e = t.disableCache === !0, r = t.disableMix === !0, o = t.transform), function() {
452
+ for (var p = [], d = "", l = null, n = "", i = e ? null : Re, x = new Array(arguments.length), s = 0; s < arguments.length; s++)
453
+ x[s] = arguments[s];
454
+ for (; x.length > 0; ) {
455
+ var c = x.pop();
456
+ if (!(c == null || c === !1)) {
457
+ if (Array.isArray(c)) {
458
+ for (var u = 0; u < c.length; u++)
459
+ x.push(c[u]);
460
+ continue;
461
+ }
462
+ var m = o != null ? o(c) : c;
463
+ if (m.$$css != null) {
464
+ var k = "";
465
+ if (i != null && i.has(m)) {
466
+ var y = i.get(m);
467
+ y != null && (k = y[0], n = y[2], p.push.apply(p, y[1]), i = y[3]);
468
+ } else {
469
+ var w = [];
470
+ for (var f in m) {
471
+ var T = m[f];
472
+ if (f === ze) {
473
+ var F = m[f];
474
+ F !== !0 && (n = n ? F + "; " + n : F);
475
+ continue;
476
+ }
477
+ typeof T == "string" || T === null ? p.includes(f) || (p.push(f), i != null && w.push(f), typeof T == "string" && (k += k ? " " + T : T)) : console.error("styleq: ".concat(f, " typeof ").concat(String(T), ' is not "string" or "null".'));
478
+ }
479
+ if (i != null) {
480
+ var H = /* @__PURE__ */ new WeakMap();
481
+ i.set(m, [k, w, n, H]), i = H;
482
+ }
483
+ }
484
+ k && (d = d ? k + " " + d : k);
485
+ } else if (r)
486
+ l == null && (l = {}), l = Object.assign({}, m, l);
487
+ else {
488
+ var z = null;
489
+ for (var E in m) {
490
+ var C = m[E];
491
+ C !== void 0 && (p.includes(E) || (C != null && (l == null && (l = {}), z == null && (z = {}), z[E] = C), p.push(E), i = null));
492
+ }
493
+ z != null && (l = Object.assign(z, l));
494
+ }
495
+ }
496
+ }
497
+ var D = [d, l, n];
498
+ return D;
499
+ };
500
+ }
501
+ var Ie = pe = Q.styleq = xe();
502
+ Ie.factory = xe;
503
+ const Le = pe.factory({
504
+ disableMix: !0
505
+ });
506
+ function qe(...t) {
507
+ const [e, r, o] = Le(t), a = {};
508
+ if (e != null && e !== "" && (a.className = e), r != null && (a.style = r), o != null && o !== "") {
509
+ const p = o.split(";"), d = {};
510
+ for (const l of p) {
511
+ const n = l.trim(), [i, x] = n.split(":");
512
+ x != null && (d[i] = d[i] != null ? `${d[i]},${x}` : x);
513
+ }
514
+ a["data-style-src"] = Object.keys(d).map((l) => `${l}:${d[l]}`).join("; ");
515
+ }
516
+ return a;
517
+ }
518
+ function Ee(t) {
519
+ Object.keys(t).forEach((e) => {
520
+ je(e) || (Ce(`invalid prop "${e}"`), delete t[e]);
521
+ });
522
+ }
523
+ function g(t, e) {
524
+ const r = {
525
+ $$css: !0,
526
+ "debug::name": `html-${t}`
527
+ };
528
+ function o({
529
+ ref: a,
530
+ ...p
531
+ }) {
532
+ const {
533
+ for: d,
534
+ style: l,
535
+ ...n
536
+ } = p, i = n;
537
+ Ee(i), d != null && (i.htmlFor = d), p.role != null && (i.role = p.role === "none" ? "presentation" : p.role), t === "button" ? i.type = i.type ? i.type : "button" : (t === "input" || t === "textarea") && (i.dir = i.dir ? i.dir : "auto");
538
+ const x = qe([r, e, l]);
539
+ return $(t, {
540
+ ...i,
541
+ ...x,
542
+ ref: a
543
+ });
544
+ }
545
+ return o.displayName = `html.${t}`, o;
546
+ }
547
+ const h = {
548
+ block: {
549
+ "margin-kogj98": "margin-x1ghz6dp",
550
+ "padding-kmVPX3": "padding-x1717udv",
551
+ $$css: ".pnpm:web/index.js:226"
552
+ },
553
+ inline: {
554
+ "margin-kogj98": "margin-x1ghz6dp",
555
+ "padding-kmVPX3": "padding-x1717udv",
556
+ "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
557
+ "textAlign-k9WMMc": "textAlign-x16tdsg8",
558
+ "wordWrap-kD5eJx": "wordWrap-x1vvkbs",
559
+ $$css: ".pnpm:web/index.js:230"
560
+ },
561
+ inlineblock: {
562
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
563
+ "margin-kogj98": "margin-x1ghz6dp",
564
+ "padding-kmVPX3": "padding-x1717udv",
565
+ $$css: ".pnpm:web/index.js:237"
566
+ },
567
+ button: {
568
+ "borderWidth-kMzoRj": "borderWidth-xmkeg23",
569
+ $$css: ".pnpm:web/index.js:242"
570
+ },
571
+ codePre: {
572
+ "fontFamily-kMv6JI": "fontFamily-x1lxnp44",
573
+ "fontSize-kGuDYH": "fontSize-xrv4cvt",
574
+ "overflow-kVQacm": "overflow-xysyzu8",
575
+ $$css: ".pnpm:web/index.js:245"
576
+ },
577
+ heading: {
578
+ "fontSize-kGuDYH": "fontSize-xngnso2",
579
+ "wordWrap-kD5eJx": "wordWrap-x1vvkbs",
580
+ $$css: ".pnpm:web/index.js:250"
581
+ },
582
+ hr: {
583
+ "backgroundColor-kWkggS": "backgroundColor-x42x0ya",
584
+ "borderStyle-ksu8eU": "borderStyle-xng3xce",
585
+ "borderWidth-kMzoRj": "borderWidth-xc342km",
586
+ "boxSizing-kB7OPa": "boxSizing-x9f619",
587
+ "height-kZKoxP": "height-xjm9jq1",
588
+ $$css: ".pnpm:web/index.js:254"
589
+ },
590
+ img: {
591
+ "aspectRatio-kOBAk4": "aspectRatio-xuw900x",
592
+ "height-kZKoxP": "height-xt7dq6l",
593
+ "maxWidth-ks0D6T": "maxWidth-x193iq5w",
594
+ $$css: ".pnpm:web/index.js:261"
595
+ },
596
+ input: {
597
+ "borderWidth-kMzoRj": "borderWidth-xmkeg23",
598
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
599
+ $$css: ".pnpm:web/index.js:266"
600
+ },
601
+ list: {
602
+ "listStyle-kB88ic": "listStyle-xe8uvvx",
603
+ $$css: ".pnpm:web/index.js:270"
604
+ },
605
+ strong: {
606
+ "fontWeight-k63SB2": "fontWeight-x117nqv4",
607
+ $$css: ".pnpm:web/index.js:273"
608
+ },
609
+ textarea: {
610
+ "borderWidth-kMzoRj": "borderWidth-xmkeg23",
611
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
612
+ "resize-kHenm0": "resize-x288g5",
613
+ $$css: ".pnpm:web/index.js:276"
614
+ }
615
+ }, Oe = h.inline, He = h.block, Pe = h.block, De = h.inline, Be = h.inline, Ae = h.inline, Fe = h.block, Ge = null, Ve = [h.inlineblock, h.button], _e = [h.inline, h.codePre], Xe = null, Ke = h.block, Ne = h.inline, Ue = h.block, Ye = h.block, Je = h.block, B = [h.block, h.heading], Ze = h.block, Qe = [h.block, h.hr], et = h.inline, tt = h.img, ot = [h.inlineblock, h.input], nt = null, rt = null, it = h.inline, st = h.block, lt = h.block, at = h.inline, ct = h.block, dt = [h.list, h.block], ut = null, pt = null, xt = h.block, gt = [h.block, h.codePre], bt = null, kt = h.block, mt = h.inlineblock, ht = h.inline, ft = [h.inline, h.strong], vt = h.inline, yt = h.inline, wt = [h.inlineblock, h.textarea], $t = null, Tt = [h.list, h.block], b = {
616
+ a: Oe,
617
+ article: He,
618
+ aside: Pe,
619
+ b: De,
620
+ bdi: Be,
621
+ bdo: Ae,
622
+ blockquote: Fe,
623
+ br: Ge,
624
+ button: Ve,
625
+ code: _e,
626
+ del: Xe,
627
+ div: Ke,
628
+ em: Ne,
629
+ fieldset: Ue,
630
+ footer: Ye,
631
+ form: Je,
632
+ h1: B,
633
+ h2: B,
634
+ h3: B,
635
+ h4: B,
636
+ h5: B,
637
+ h6: B,
638
+ header: Ze,
639
+ hr: Qe,
640
+ i: et,
641
+ img: tt,
642
+ input: ot,
643
+ ins: nt,
644
+ kbd: rt,
645
+ label: it,
646
+ li: st,
647
+ main: lt,
648
+ mark: at,
649
+ nav: ct,
650
+ ol: dt,
651
+ optgroup: ut,
652
+ option: pt,
653
+ p: xt,
654
+ pre: gt,
655
+ s: bt,
656
+ section: kt,
657
+ select: mt,
658
+ span: ht,
659
+ strong: ft,
660
+ sub: vt,
661
+ sup: yt,
662
+ textarea: wt,
663
+ u: $t,
664
+ ul: Tt
665
+ }, St = g("a", b.a), Mt = g("article", b.article), Ct = g("aside", b.aside), Wt = g("b", b.b), jt = g("bdi", b.bdi), Rt = g("bdo", b.bdo), zt = g("blockquote", b.blockquote), It = g("br", b.br), Lt = g("button", b.button), qt = g("code", b.code), Et = g("del", b.del), Ot = g("div", b.div), Ht = g("em", b.em), Pt = g("fieldset", b.fieldset), Dt = g("footer", b.footer), Bt = g("form", b.form), At = g("h1", b.h1), Ft = g("h2", b.h2), Gt = g("h3", b.h3), Vt = g("h4", b.h4), _t = g("h5", b.h5), Xt = g("h6", b.h6), Kt = g("header", b.header), Nt = g("hr", b.hr), Ut = g("i", b.i), Yt = g("img", b.img), Jt = g("input", b.input), Zt = g("ins", b.ins), Qt = g("kbd", b.kbd), eo = g("label", b.label), to = g("li", b.li), oo = g("main", b.main), no = g("mark", b.mark), ro = g("nav", b.nav), io = g("ol", b.ol), so = g("optgroup", b.optgroup), lo = g("option", b.option), ao = g("p", b.p), co = g("pre", b.pre), uo = g("s", b.s), po = g("section", b.section), xo = g("select", b.select), go = g("span", b.span), bo = g("strong", b.strong), ko = g("sub", b.sub), mo = g("sup", b.sup), ho = g("textarea", b.textarea), fo = g("u", b.u), vo = g("ul", b.ul);
666
+ var yo = /* @__PURE__ */ Object.freeze({
667
+ __proto__: null,
668
+ a: St,
669
+ article: Mt,
670
+ aside: Ct,
671
+ b: Wt,
672
+ bdi: jt,
673
+ bdo: Rt,
674
+ blockquote: zt,
675
+ br: It,
676
+ button: Lt,
677
+ code: qt,
678
+ del: Et,
679
+ div: Ot,
680
+ em: Ht,
681
+ fieldset: Pt,
682
+ footer: Dt,
683
+ form: Bt,
684
+ h1: At,
685
+ h2: Ft,
686
+ h3: Gt,
687
+ h4: Vt,
688
+ h5: _t,
689
+ h6: Xt,
690
+ header: Kt,
691
+ hr: Nt,
692
+ i: Ut,
693
+ img: Yt,
694
+ input: Jt,
695
+ ins: Zt,
696
+ kbd: Qt,
697
+ label: eo,
698
+ li: to,
699
+ main: oo,
700
+ mark: no,
701
+ nav: ro,
702
+ ol: io,
703
+ optgroup: so,
704
+ option: lo,
705
+ p: ao,
706
+ pre: co,
707
+ s: uo,
708
+ section: po,
709
+ select: xo,
710
+ span: go,
711
+ strong: bo,
712
+ sub: ko,
713
+ sup: mo,
714
+ textarea: ho,
715
+ u: fo,
716
+ ul: vo
717
+ });
718
+ const Ao = {
719
+ xs: 480,
720
+ sm: 640,
721
+ md: 768,
722
+ lg: 1024,
723
+ xl: 1280
724
+ }, v = {
725
+ container: {
726
+ "containerType-k9g6sI": "containerType-x12h1iku",
727
+ "display-k1xSpc": "display-x78zum5",
728
+ "flexDirection-kXwgrk": "flexDirection-xdt5ytf",
729
+ "gap-kOIVth": "gap-x175yhtj",
730
+ $$css: "Table/styles.css.ts:25"
731
+ },
732
+ rootContainer: {
733
+ "containerType-k9g6sI": "containerType-x12h1iku",
734
+ "display-k1xSpc": "display-x78zum5",
735
+ "flexDirection-kXwgrk": "flexDirection-xdt5ytf",
736
+ "gap-kOIVth": "gap-x175yhtj",
737
+ $$css: "Table/styles.css.ts:34"
738
+ },
739
+ clickableRow: {
740
+ "cursor-kkrTdU": "cursor-x1ypdohk",
741
+ "outlineWidth-kMeerF": "outlineWidth-x1k57tk5 outlineWidth-x4u4vcp",
742
+ "outlineStyle-k3XXqK": "outlineStyle-xaatb59",
743
+ "outlineColor-kjBf7l": "outlineColor-x1e3ajik",
744
+ "outlineOffset-kInvED": "outlineOffset-x1j8r21s",
745
+ $$css: "Table/styles.css.ts:43"
746
+ },
747
+ root: {
748
+ "display-k1xSpc": "display-xrvj5dj",
749
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
750
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
751
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
752
+ "borderRadius-kaIpWk": "borderRadius-xwbokb3",
753
+ "overflow-kVQacm": "overflow-xb3r6kr",
754
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
755
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
756
+ "color-kMwMTN": "color-x95150z",
757
+ $$css: "Table/styles.css.ts:55"
758
+ },
759
+ rootResponsive: {
760
+ "minWidth-k7Eaqz": "minWidth-x13qp9f6 minWidth-xym1sjy",
761
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q borderWidth-xtteep3",
762
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu backgroundColor-x1i4f0qi",
763
+ "overflow-kVQacm": "overflow-xb3r6kr overflow-x2v4zgh",
764
+ "rowGap-khm7nJ": "rowGap-xxs79tx rowGap-xijoxap",
765
+ $$css: "Table/styles.css.ts:74"
766
+ },
767
+ header: {
768
+ "display-k1xSpc": "display-xrvj5dj display-xncg82s",
769
+ "gridColumn-kBCFzs": "gridColumn-x1osaytk",
770
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
771
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
772
+ $$css: "Table/styles.css.ts:106"
773
+ },
774
+ body: {
775
+ "display-k1xSpc": "display-xrvj5dj",
776
+ "gridColumn-kBCFzs": "gridColumn-x1osaytk",
777
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
778
+ $$css: "Table/styles.css.ts:117"
779
+ },
780
+ row: {
781
+ "display-k1xSpc": "display-xrvj5dj",
782
+ "gridColumn-kBCFzs": "gridColumn-x1osaytk",
783
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx gridTemplateColumns-x1iukyyp",
784
+ "borderBottomWidth-kt9PQ7": "borderBottomWidth-x12yxxv5 borderBottomWidth-xatuo0m",
785
+ "borderBottomStyle-kfdmCh": "borderBottomStyle-x1q0q8m5",
786
+ "borderBottomColor-kL6WhQ": "borderBottomColor-x19cyuh1",
787
+ $$css: "Table/styles.css.ts:126"
788
+ },
789
+ bodyRow: {
790
+ "backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-xp88rol backgroundColor-x14zl4n5",
791
+ "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
792
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
793
+ "transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
794
+ "padding-kmVPX3": "padding-x1717udv padding-x1s7rzzx",
795
+ "borderRadius-kaIpWk": "borderRadius-x2u8bby borderRadius-x95x1h7",
796
+ "borderWidth-kMzoRj": "borderWidth-xc342km borderWidth-xrp8l4a",
797
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
798
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
799
+ $$css: "Table/styles.css.ts:140"
800
+ },
801
+ headerCell: {
802
+ "fontWeight-k63SB2": "fontWeight-x1x12jc5",
803
+ "color-kMwMTN": "color-x4opovt",
804
+ "textAlign-k9WMMc": "textAlign-x1yc453h",
805
+ "minWidth-k7Eaqz": "minWidth-xeuugli",
806
+ "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
807
+ "whiteSpace-khDVqt": "whiteSpace-xeaf4i8 whiteSpace-x1348v4l",
808
+ $$css: "Table/styles.css.ts:167"
809
+ },
810
+ cell: {
811
+ "color-kMwMTN": "color-x95150z",
812
+ "display-k1xSpc": "display-x78zum5 display-xs8gwy4",
813
+ "alignItems-kGNEyG": "alignItems-x6s0dn4",
814
+ "minWidth-k7Eaqz": "minWidth-xeuugli",
815
+ "overflow-kVQacm": "overflow-x1rea2x4 overflow-x1axt6uq",
816
+ "whiteSpace-khDVqt": "whiteSpace-xeaf4i8",
817
+ "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
818
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-xzgtm8w",
819
+ "gap-kOIVth": "gap-xxhr3t gap-xgrwfsz",
820
+ $$css: "Table/styles.css.ts:190"
821
+ },
822
+ cellValue: {
823
+ "minWidth-k7Eaqz": "minWidth-xeuugli",
824
+ "flexGrow-kzQI83": "flexGrow-x1iyjqo2",
825
+ "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
826
+ $$css: "Table/styles.css.ts:228"
827
+ },
828
+ cellLabel: {
829
+ "display-k1xSpc": "display-x1s85apg display-x1sim00f",
830
+ "color-kMwMTN": "color-x4opovt",
831
+ "fontWeight-k63SB2": "fontWeight-x120ksxs",
832
+ "fontSize-kGuDYH": "fontSize-x1f81oxx",
833
+ $$css: "Table/styles.css.ts:237"
834
+ },
835
+ cellActions: {
836
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x1iukyyp",
837
+ "justifyContent-kjj79g": "justifyContent-xalo3at",
838
+ "marginTop-keoZOQ": "marginTop-xdj266r marginTop-x1mip588",
839
+ "paddingTop-kLKAdn": "paddingTop-x1waenea",
840
+ "borderTopWidth-kEafiO": "borderTopWidth-x972fbf borderTopWidth-x1ijfi2n",
841
+ "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
842
+ "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
843
+ $$css: "Table/styles.css.ts:251"
844
+ },
845
+ cellSm: {
846
+ "paddingTop-kLKAdn": "paddingTop-x1i738hq paddingTop-x81it4n",
847
+ "paddingBottom-kGO01o": "paddingBottom-x6sojwk paddingBottom-x1jele16",
848
+ "paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
849
+ "paddingRight-kpe85a": "paddingRight-xpkaq21",
850
+ "fontSize-kGuDYH": "fontSize-x1f81oxx",
851
+ $$css: "Table/styles.css.ts:277"
852
+ },
853
+ cellMd: {
854
+ "paddingTop-kLKAdn": "paddingTop-xc2wovk",
855
+ "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
856
+ "paddingLeft-kE3dHu": "paddingLeft-x2rk66v paddingLeft-x1u39w1b",
857
+ "paddingRight-kpe85a": "paddingRight-x7huf2v paddingRight-x1cevoma",
858
+ "fontSize-kGuDYH": "fontSize-x1tzajr0",
859
+ $$css: "Table/styles.css.ts:291"
860
+ },
861
+ stripedEven: {
862
+ "backgroundColor-kWkggS": "backgroundColor-xlyqa1p backgroundColor-xp88rol backgroundColor-x14zl4n5",
863
+ $$css: "Table/styles.css.ts:307"
864
+ },
865
+ borderedCell: {
866
+ "borderRightWidth-kWqL5O": "borderRightWidth-xnwp6cp borderRightWidth-xc5nm28",
867
+ "borderRightStyle-kSWEuD": "borderRightStyle-x32b0ac",
868
+ "borderRightColor-k26BEO": "borderRightColor-x9iiiab",
869
+ $$css: "Table/styles.css.ts:316"
870
+ },
871
+ borderedCellLast: {
872
+ "borderRightWidth-kWqL5O": "borderRightWidth-xgfja2r",
873
+ $$css: "Table/styles.css.ts:324"
874
+ },
875
+ sortChip: {
876
+ "display-k1xSpc": "display-x1s85apg display-x11cgw9t",
877
+ "alignSelf-kSGwAc": "alignSelf-xqcrz7y",
878
+ $$css: "Table/styles.css.ts:329"
879
+ },
880
+ scrollX: {
881
+ "overflowX-kXHlph": "overflowX-xw2csxc",
882
+ "overflowY-kORKVm": "overflowY-xryxfnj",
883
+ "WebkitOverflowScrolling-kuHK5b": "WebkitOverflowScrolling-x5lxg6s",
884
+ $$css: "Table/styles.css.ts:343"
885
+ },
886
+ scrollFrame: {
887
+ "position-kVAEAm": "position-x1n2onr6",
888
+ $$css: "Table/styles.css.ts:354"
889
+ },
890
+ edgeFade: {
891
+ "position-kVAEAm": "position-x10l6tqk",
892
+ "top-k87sOh": "top-xnfr1j",
893
+ "bottom-krVfgx": "bottom-x19ip775",
894
+ "width-kzqmXN": "width-x1xju080",
895
+ "pointerEvents-kfzvcC": "pointerEvents-x47corl",
896
+ "opacity-kSiTet": "opacity-xg01cxk",
897
+ "transitionProperty-k1ekBW": "transitionProperty-x19991ni",
898
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
899
+ "transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
900
+ $$css: "Table/styles.css.ts:361"
901
+ },
902
+ edgeFadeLeft: {
903
+ "left-kbCHJM": "left-xt9097p",
904
+ "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-xha5hpv",
905
+ "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-x1hsk2v7",
906
+ "backgroundImage-kKwaWg": "backgroundImage-xvdn1ag",
907
+ $$css: "Table/styles.css.ts:372"
908
+ },
909
+ edgeFadeRight: {
910
+ "right-kCIrl2": "right-x1hp3iq1",
911
+ "borderTopRightRadius-ksF3WI": "borderTopRightRadius-xbbsgyh",
912
+ "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xitffcu",
913
+ "backgroundImage-kKwaWg": "backgroundImage-x1ykoi01",
914
+ $$css: "Table/styles.css.ts:378"
915
+ },
916
+ edgeFadeVisible: {
917
+ "opacity-kSiTet": "opacity-x1hc1fzr",
918
+ $$css: "Table/styles.css.ts:384"
919
+ },
920
+ gridColumns: (t) => [{
921
+ "gridTemplateColumns-kumcoG": t != null ? "gridTemplateColumns-xqketvx" : t,
922
+ $$css: "Table/styles.css.ts:389"
923
+ }, {
924
+ "--x-gridTemplateColumns": t ?? void 0
925
+ }],
926
+ gridColumnsResponsive: (t, e) => [{
927
+ "gridTemplateColumns-kumcoG": (t != null ? "gridTemplateColumns-x39pwss " : t) + (e != null ? "gridTemplateColumns-x17u3dsi " : e) + "gridTemplateColumns-x1iukyyp",
928
+ $$css: "Table/styles.css.ts:408"
929
+ }, {
930
+ "--x-1pds3uo": t ?? void 0,
931
+ "--x-1n5740v": e ?? void 0
932
+ }]
933
+ }, ge = V(null);
934
+ function U() {
935
+ const t = A(ge);
936
+ if (!t)
937
+ throw new Error("Table compound components must be used within Table.Root");
938
+ return t;
939
+ }
940
+ const ee = V(!1);
941
+ function wo(t) {
942
+ const e = j.c(2), {
943
+ children: r
944
+ } = t;
945
+ let o;
946
+ return e[0] !== r ? (o = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:55", ...S(M.div, v.container), children: r }), e[0] = r, e[1] = o) : o = e[1], o;
947
+ }
948
+ function $o(t) {
949
+ let e = "";
950
+ return K.forEach(t, (r) => {
951
+ (typeof r == "string" || typeof r == "number") && (e += String(r));
952
+ }), e;
953
+ }
954
+ function To(t) {
955
+ let e = t;
956
+ for (let r = 0; r < 8 && e && typeof e == "object"; r++) {
957
+ const o = e.type ?? e.render;
958
+ if (o == null) break;
959
+ e = o;
960
+ }
961
+ return e;
962
+ }
963
+ function So(t, e) {
964
+ const r = [], o = [], a = [];
965
+ function p(d) {
966
+ K.forEach(d, (l) => {
967
+ if (!ke(l)) return;
968
+ const n = l.props, i = To(l.type), x = i?.displayName || i?.name || "";
969
+ if (i === oe || x === "HeaderCell") {
970
+ const s = n.width ? String(ne(n.width)) : `minmax(${ce(e)}, 1fr)`;
971
+ r.push(s), o.push(n.compactWidth ? String(ne(n.compactWidth)) : s);
972
+ const c = typeof n.label == "string" ? n.label : void 0, u = $o(n.children).trim(), m = c ?? u;
973
+ !c && u === "" && n.children != null && ue("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), a.push(m);
974
+ } else n.children && p(n.children);
975
+ });
976
+ }
977
+ return p(t), {
978
+ template: r.join(" "),
979
+ compactTemplate: o.join(" "),
980
+ labels: a
981
+ };
982
+ }
983
+ function Mo(t) {
984
+ const e = j.c(13), {
985
+ children: r
986
+ } = t, o = q(null);
987
+ let a;
988
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
989
+ start: !1,
990
+ end: !1
991
+ }, e[0] = a) : a = e[0];
992
+ const [p, d] = J(a);
993
+ let l, n;
994
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (l = () => {
995
+ const k = o.current;
996
+ if (!k)
997
+ return;
998
+ const y = () => {
999
+ const f = k.scrollWidth - k.clientWidth > 1;
1000
+ d({
1001
+ start: f && k.scrollLeft > 1,
1002
+ end: f && k.scrollLeft + k.clientWidth < k.scrollWidth - 1
1003
+ });
1004
+ };
1005
+ y(), k.addEventListener("scroll", y, {
1006
+ passive: !0
1007
+ });
1008
+ const w = typeof ResizeObserver < "u" ? new ResizeObserver(y) : null;
1009
+ return w?.observe(k), () => {
1010
+ k.removeEventListener("scroll", y), w?.disconnect();
1011
+ };
1012
+ }, n = [], e[1] = l, e[2] = n) : (l = e[1], n = e[2]), P(l, n);
1013
+ let i;
1014
+ e[3] !== r ? (i = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:196", ref: o, ...S(M.div, v.scrollX), children: r }), e[3] = r, e[4] = i) : i = e[4];
1015
+ const x = p.start && v.edgeFadeVisible;
1016
+ let s;
1017
+ e[5] !== x ? (s = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...S(M.div, v.edgeFade, v.edgeFadeLeft, x) }), e[5] = x, e[6] = s) : s = e[6];
1018
+ const c = p.end && v.edgeFadeVisible;
1019
+ let u;
1020
+ e[7] !== c ? (u = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...S(M.div, v.edgeFade, v.edgeFadeRight, c) }), e[7] = c, e[8] = u) : u = e[8];
1021
+ let m;
1022
+ return e[9] !== i || e[10] !== s || e[11] !== u ? (m = /* @__PURE__ */ X("div", { "data-element-src": "Table/Table.tsx:195", ...S(M.div, v.scrollFrame), children: [
1023
+ i,
1024
+ s,
1025
+ u
1026
+ ] }), e[9] = i, e[10] = s, e[11] = u, e[12] = m) : m = e[12], m;
1027
+ }
1028
+ function Co({
1029
+ children: t,
1030
+ variant: e = "default",
1031
+ size: r = "md",
1032
+ responsive: o = !0,
1033
+ minColumnWidth: a = "labelMinW",
1034
+ sortChip: p,
1035
+ pagination: d
1036
+ }) {
1037
+ const l = q(null), {
1038
+ template: n,
1039
+ compactTemplate: i,
1040
+ labels: x
1041
+ } = So(t, a);
1042
+ n && (l.current = n);
1043
+ const s = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...S(
1044
+ M.div,
1045
+ v.root,
1046
+ // When responsive, use gridColumnsResponsive so the explicit column
1047
+ // template and the stack-mode @container override live in one StyleX
1048
+ // style object. Splitting them across two styles (gridColumns +
1049
+ // rootResponsive) causes StyleX conflict resolution to drop the
1050
+ // column template because rootResponsive's gridTemplateColumns key
1051
+ // always wins as the later entry in the array.
1052
+ n ? o ? v.gridColumnsResponsive(n, i) : v.gridColumns(n) : void 0,
1053
+ o && v.rootResponsive
1054
+ ), children: t }), u = /* @__PURE__ */ X(se, { children: [
1055
+ p,
1056
+ o ? /* @__PURE__ */ $(Mo, { children: s }) : s,
1057
+ d
1058
+ ] });
1059
+ return /* @__PURE__ */ $(ge.Provider, { value: {
1060
+ variant: e,
1061
+ size: r,
1062
+ responsive: o,
1063
+ labels: x,
1064
+ inferredTemplateRef: l
1065
+ }, children: o ? /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:299", ...S(M.div, v.rootContainer), children: u }) : u });
1066
+ }
1067
+ function Wo(t) {
1068
+ const e = j.c(2), {
1069
+ children: r
1070
+ } = t;
1071
+ let o;
1072
+ return e[0] !== r ? (o = /* @__PURE__ */ $(ee.Provider, { value: !0, children: /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...S(M.div, v.header), children: r }) }), e[0] = r, e[1] = o) : o = e[1], o;
1073
+ }
1074
+ function jo(t) {
1075
+ const e = j.c(19), {
1076
+ children: r
1077
+ } = t, {
1078
+ variant: o
1079
+ } = U();
1080
+ let a, p, d, l, n, i;
1081
+ if (e[0] !== r || e[1] !== o) {
1082
+ const c = K.toArray(r);
1083
+ p = ee.Provider, i = !1, a = yo.div, d = "rowgroup", l = v.body;
1084
+ let u;
1085
+ e[8] !== o ? (u = (m, k) => o !== "striped" ? m : /* @__PURE__ */ $(be.Provider, { value: k, children: m }, m.key ?? k), e[8] = o, e[9] = u) : u = e[9], n = c.map(u), e[0] = r, e[1] = o, e[2] = a, e[3] = p, e[4] = d, e[5] = l, e[6] = n, e[7] = i;
1086
+ } else
1087
+ a = e[2], p = e[3], d = e[4], l = e[5], n = e[6], i = e[7];
1088
+ let x;
1089
+ e[10] !== a || e[11] !== d || e[12] !== l || e[13] !== n ? (x = /* @__PURE__ */ $(a, { role: d, style: l, children: n }), e[10] = a, e[11] = d, e[12] = l, e[13] = n, e[14] = x) : x = e[14];
1090
+ let s;
1091
+ return e[15] !== p || e[16] !== i || e[17] !== x ? (s = /* @__PURE__ */ $(p, { value: i, children: x }), e[15] = p, e[16] = i, e[17] = x, e[18] = s) : s = e[18], s;
1092
+ }
1093
+ const be = V(-1), Ro = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1094
+ function zo(t) {
1095
+ const e = j.c(17), {
1096
+ children: r,
1097
+ onClick: o,
1098
+ "aria-label": a
1099
+ } = t, {
1100
+ variant: p
1101
+ } = U(), d = A(ee), l = A(be), n = l >= 0 && l % 2 === 1;
1102
+ let i;
1103
+ if (e[0] !== a || e[1] !== r || e[2] !== n || e[3] !== d || e[4] !== o || e[5] !== p) {
1104
+ const x = K.toArray(r), s = o !== void 0 && !d;
1105
+ let c;
1106
+ e[7] !== s || e[8] !== o ? (c = s ? (f) => {
1107
+ const T = f.target;
1108
+ T instanceof Element && T.closest(Ro) || o();
1109
+ } : void 0, e[7] = s, e[8] = o, e[9] = c) : c = e[9];
1110
+ let u;
1111
+ e[10] !== s || e[11] !== o ? (u = s ? (f) => {
1112
+ (f.key === "Enter" || f.key === " ") && o();
1113
+ } : void 0, e[10] = s, e[11] = o, e[12] = u) : u = e[12];
1114
+ const m = !d && v.bodyRow, k = !d && p === "striped" && n && v.stripedEven, y = s && v.clickableRow;
1115
+ let w;
1116
+ e[13] !== m || e[14] !== k || e[15] !== y ? (w = [v.row, m, k, y], e[13] = m, e[14] = k, e[15] = y, e[16] = w) : w = e[16], i = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: s ? 0 : void 0, "aria-label": s ? a : void 0, onClick: c, onKeyDown: u, ...S(M.div, w), children: x.map((f, T) => /* @__PURE__ */ $(te.Provider, { value: {
1117
+ index: T,
1118
+ total: x.length
1119
+ }, children: f }, f.key ?? T)) }), e[0] = a, e[1] = r, e[2] = n, e[3] = d, e[4] = o, e[5] = p, e[6] = i;
1120
+ } else
1121
+ i = e[6];
1122
+ return i;
1123
+ }
1124
+ const te = V({
1125
+ index: 0,
1126
+ total: 0
1127
+ });
1128
+ function oe(t) {
1129
+ const e = j.c(8), {
1130
+ children: r,
1131
+ "aria-label": o
1132
+ } = t, {
1133
+ size: a,
1134
+ variant: p
1135
+ } = U(), {
1136
+ index: d,
1137
+ total: l
1138
+ } = A(te), n = p === "bordered" && d === l - 1, i = a === "sm" ? v.cellSm : v.cellMd, x = p === "bordered" && v.borderedCell, s = n && v.borderedCellLast;
1139
+ let c;
1140
+ e[0] !== i || e[1] !== x || e[2] !== s ? (c = [v.headerCell, i, x, s], e[0] = i, e[1] = x, e[2] = s, e[3] = c) : c = e[3];
1141
+ let u;
1142
+ return e[4] !== o || e[5] !== r || e[6] !== c ? (u = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": o, ...S(M.div, c), children: r }), e[4] = o, e[5] = r, e[6] = c, e[7] = u) : u = e[7], u;
1143
+ }
1144
+ oe.displayName = "HeaderCell";
1145
+ function Io(t) {
1146
+ const e = j.c(16), {
1147
+ children: r,
1148
+ isActions: o
1149
+ } = t, {
1150
+ size: a,
1151
+ variant: p,
1152
+ labels: d,
1153
+ responsive: l
1154
+ } = U(), {
1155
+ index: n,
1156
+ total: i
1157
+ } = A(te), x = p === "bordered" && n === i - 1, s = d[n] ?? "", c = a === "sm" ? v.cellSm : v.cellMd, u = p === "bordered" && v.borderedCell, m = x && v.borderedCellLast, k = o && v.cellActions;
1158
+ let y;
1159
+ e[0] !== c || e[1] !== u || e[2] !== m || e[3] !== k ? (y = [v.cell, c, u, m, k], e[0] = c, e[1] = u, e[2] = m, e[3] = k, e[4] = y) : y = e[4];
1160
+ let w;
1161
+ e[5] !== o || e[6] !== s || e[7] !== l ? (w = l && !o && s !== "" ? /* @__PURE__ */ $("span", { "data-element-src": "Table/Table.tsx:507", ...S(M.span, v.cellLabel), children: s }) : null, e[5] = o, e[6] = s, e[7] = l, e[8] = w) : w = e[8];
1162
+ let f;
1163
+ e[9] !== r || e[10] !== o ? (f = o ? r : /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:509", ...S(M.div, v.cellValue), children: r }), e[9] = r, e[10] = o, e[11] = f) : f = e[11];
1164
+ let T;
1165
+ return e[12] !== y || e[13] !== w || e[14] !== f ? (T = /* @__PURE__ */ X("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...S(M.div, y), children: [
1166
+ w,
1167
+ f
1168
+ ] }), e[12] = y, e[13] = w, e[14] = f, e[15] = T) : T = e[15], T;
1169
+ }
1170
+ const Lo = {
1171
+ /** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
1172
+ Container: wo,
1173
+ Root: Co,
1174
+ Header: Wo,
1175
+ Body: jo,
1176
+ Row: zo,
1177
+ HeaderCell: oe,
1178
+ Cell: Io
1179
+ }, Fo = Lo;
1180
+ export {
1181
+ jo as B,
1182
+ Io as C,
1183
+ Po as D,
1184
+ oe as H,
1185
+ Do as I,
1186
+ Bo as M,
1187
+ zo as R,
1188
+ Ho as S,
1189
+ Fo as T,
1190
+ v as a,
1191
+ Ao as b,
1192
+ Wo as c,
1193
+ Co as d,
1194
+ G as e,
1195
+ Lo as f,
1196
+ ce as r,
1197
+ le as s
1198
+ };
1199
+ //# sourceMappingURL=Table-BkrgH0jb.js.map