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