@duro-app/ui 5.2.0 → 5.3.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 (139) hide show
  1. package/dist/{Table-C70zdSkM.js → Table-Cm5cCnZD.js} +730 -625
  2. package/dist/Table-Cm5cCnZD.js.map +1 -0
  3. package/dist/components/ActionBar/styles.css.d.ts +1 -1
  4. package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
  5. package/dist/components/Badge/Badge.d.ts +1 -1
  6. package/dist/components/Badge/Badge.d.ts.map +1 -1
  7. package/dist/components/Badge/Badge.stories.d.ts +3 -0
  8. package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
  9. package/dist/components/Badge/styles.css.d.ts +4 -0
  10. package/dist/components/Badge/styles.css.d.ts.map +1 -1
  11. package/dist/components/Button/Button.d.ts.map +1 -1
  12. package/dist/components/ButtonGroup/ButtonGroup.d.ts +9 -2
  13. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  14. package/dist/components/ButtonGroup/ButtonGroup.meta.d.ts.map +1 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +19 -0
  16. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts.map +1 -1
  17. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts +13 -0
  18. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts.map +1 -0
  19. package/dist/components/ButtonGroup/attached.css.d.ts +34 -0
  20. package/dist/components/ButtonGroup/attached.css.d.ts.map +1 -0
  21. package/dist/components/ButtonGroup/styles.css.d.ts +7 -0
  22. package/dist/components/ButtonGroup/styles.css.d.ts.map +1 -1
  23. package/dist/components/ButtonGroup/useGroupedControl.d.ts +25 -0
  24. package/dist/components/ButtonGroup/useGroupedControl.d.ts.map +1 -0
  25. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  26. package/dist/components/Dialog/styles.css.d.ts +2 -2
  27. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  28. package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
  29. package/dist/components/DragDrop/styles.css.d.ts +1 -1
  30. package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
  31. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  32. package/dist/components/Drawer/styles.css.d.ts +2 -2
  33. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  34. package/dist/components/Listbox/styles.css.d.ts +1 -1
  35. package/dist/components/Listbox/styles.css.d.ts.map +1 -1
  36. package/dist/components/Menu/Menu.d.ts.map +1 -1
  37. package/dist/components/Menu/styles.css.d.ts +1 -1
  38. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  39. package/dist/components/Popover/Popover.d.ts +7 -2
  40. package/dist/components/Popover/Popover.d.ts.map +1 -1
  41. package/dist/components/Popover/styles.css.d.ts +4 -1
  42. package/dist/components/Popover/styles.css.d.ts.map +1 -1
  43. package/dist/components/ScrollArea/styles.css.d.ts +1 -1
  44. package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
  45. package/dist/components/Select/Select.d.ts.map +1 -1
  46. package/dist/components/Select/Select.stories.d.ts +2 -0
  47. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  48. package/dist/components/Select/styles.css.d.ts +2 -2
  49. package/dist/components/Select/styles.css.d.ts.map +1 -1
  50. package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
  51. package/dist/components/ThemeProvider/Layers.stories.d.ts +24 -0
  52. package/dist/components/ThemeProvider/Layers.stories.d.ts.map +1 -0
  53. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  54. package/dist/components/Toast/styles.css.d.ts +1 -0
  55. package/dist/components/Toast/styles.css.d.ts.map +1 -1
  56. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  57. package/dist/components/Toggle/styles.css.d.ts +3 -0
  58. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  59. package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
  60. package/dist/components/ToggleGroup/styles.css.d.ts +5 -0
  61. package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
  62. package/dist/components/Toolbar/ControlContextBoundary.d.ts +10 -0
  63. package/dist/components/Toolbar/ControlContextBoundary.d.ts.map +1 -0
  64. package/dist/components/Toolbar/Toolbar.d.ts +22 -0
  65. package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
  66. package/dist/components/Toolbar/Toolbar.meta.d.ts +3 -0
  67. package/dist/components/Toolbar/Toolbar.meta.d.ts.map +1 -0
  68. package/dist/components/Toolbar/Toolbar.stories.d.ts +28 -0
  69. package/dist/components/Toolbar/Toolbar.stories.d.ts.map +1 -0
  70. package/dist/components/Toolbar/ToolbarContext.d.ts +10 -0
  71. package/dist/components/Toolbar/ToolbarContext.d.ts.map +1 -0
  72. package/dist/components/Toolbar/styles.css.d.ts +16 -0
  73. package/dist/components/Toolbar/styles.css.d.ts.map +1 -0
  74. package/dist/components/Tooltip/styles.css.d.ts +1 -1
  75. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  76. package/dist/components/VirtualTable/styles.css.d.ts +1 -1
  77. package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
  78. package/dist/index.css +1 -1
  79. package/dist/index.d.ts +2 -1
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +3164 -2917
  82. package/dist/index.js.map +1 -1
  83. package/dist/shared/ModalContext.d.ts +14 -0
  84. package/dist/shared/ModalContext.d.ts.map +1 -0
  85. package/dist/shared/mergeRefs.d.ts +4 -0
  86. package/dist/shared/mergeRefs.d.ts.map +1 -0
  87. package/dist/shared/useOrderedRegistry.d.ts +26 -0
  88. package/dist/shared/useOrderedRegistry.d.ts.map +1 -0
  89. package/dist/table.js +45 -45
  90. package/dist/table.js.map +1 -1
  91. package/package.json +2 -2
  92. package/src/components/ActionBar/styles.css.ts +2 -1
  93. package/src/components/Badge/Badge.stories.tsx +62 -1
  94. package/src/components/Badge/Badge.tsx +1 -1
  95. package/src/components/Badge/styles.css.ts +5 -0
  96. package/src/components/Button/Button.tsx +7 -1
  97. package/src/components/ButtonGroup/ButtonGroup.meta.ts +14 -1
  98. package/src/components/ButtonGroup/ButtonGroup.stories.tsx +271 -1
  99. package/src/components/ButtonGroup/ButtonGroup.tsx +46 -14
  100. package/src/components/ButtonGroup/ButtonGroupContext.ts +19 -0
  101. package/src/components/ButtonGroup/attached.css.ts +44 -0
  102. package/src/components/ButtonGroup/styles.css.ts +8 -0
  103. package/src/components/ButtonGroup/useGroupedControl.ts +75 -0
  104. package/src/components/Dialog/Dialog.tsx +5 -1
  105. package/src/components/Dialog/styles.css.ts +3 -2
  106. package/src/components/DragDrop/DragDrop.tsx +15 -8
  107. package/src/components/DragDrop/styles.css.ts +4 -1
  108. package/src/components/Drawer/Drawer.tsx +5 -1
  109. package/src/components/Drawer/styles.css.ts +3 -2
  110. package/src/components/Listbox/styles.css.ts +2 -1
  111. package/src/components/Menu/Menu.tsx +10 -3
  112. package/src/components/Menu/styles.css.ts +2 -1
  113. package/src/components/Popover/Popover.tsx +26 -5
  114. package/src/components/Popover/styles.css.ts +9 -1
  115. package/src/components/ScrollArea/styles.css.ts +2 -1
  116. package/src/components/Select/Select.stories.tsx +20 -1
  117. package/src/components/Select/Select.tsx +9 -3
  118. package/src/components/Select/styles.css.ts +3 -2
  119. package/src/components/Select/useSelectRoot.ts +17 -0
  120. package/src/components/ThemeProvider/Layers.stories.tsx +379 -0
  121. package/src/components/ThemeProvider/ThemeProvider.tsx +4 -2
  122. package/src/components/Toast/styles.css.ts +3 -0
  123. package/src/components/Toggle/Toggle.tsx +20 -4
  124. package/src/components/Toggle/styles.css.ts +6 -0
  125. package/src/components/ToggleGroup/ToggleGroup.tsx +16 -4
  126. package/src/components/ToggleGroup/styles.css.ts +7 -0
  127. package/src/components/Toolbar/ControlContextBoundary.tsx +16 -0
  128. package/src/components/Toolbar/Toolbar.meta.ts +48 -0
  129. package/src/components/Toolbar/Toolbar.stories.tsx +468 -0
  130. package/src/components/Toolbar/Toolbar.tsx +113 -0
  131. package/src/components/Toolbar/ToolbarContext.ts +15 -0
  132. package/src/components/Toolbar/styles.css.ts +17 -0
  133. package/src/components/Tooltip/styles.css.ts +2 -1
  134. package/src/components/VirtualTable/styles.css.ts +2 -1
  135. package/src/index.ts +2 -1
  136. package/src/shared/ModalContext.ts +18 -0
  137. package/src/shared/mergeRefs.ts +11 -0
  138. package/src/shared/useOrderedRegistry.ts +57 -0
  139. package/dist/Table-C70zdSkM.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { jsx as $, jsxs as U, Fragment as ye } from "react/jsx-runtime";
2
- import { c as R, m as W, d as S } from "./compiler-runtime-B2IcI8_O.js";
3
- import { useState as N, useContext as A, createContext as F, useRef as L, useLayoutEffect as ee, useId as Y, useCallback as K, useEffect as D, Children as J, isValidElement as we } from "react";
4
- import { createPortal as Me } from "react-dom";
5
- const $e = {
1
+ import { jsx as M, jsxs as U, Fragment as Me } from "react/jsx-runtime";
2
+ import { c as I, m as W, d as C } from "./compiler-runtime-B2IcI8_O.js";
3
+ import { useContext as A, createContext as G, useId as Y, useRef as q, useLayoutEffect as J, useState as Z, useCallback as K, useEffect as F, Children as Q, isValidElement as Te } from "react";
4
+ import { createPortal as We } from "react-dom";
5
+ const Ce = {
6
6
  xs: 4,
7
7
  sm: 8,
8
8
  ms: 12,
@@ -11,7 +11,7 @@ const $e = {
11
11
  xl: 32,
12
12
  xxl: 48,
13
13
  xxxl: 64
14
- }, on = {
14
+ }, dr = {
15
15
  instant: 0,
16
16
  minimal: 1,
17
17
  quick: 120,
@@ -19,39 +19,136 @@ const $e = {
19
19
  brisk: 160,
20
20
  base: 200,
21
21
  slow: 280
22
- }, Te = ["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", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "readoutW", "sliderW", "paletteMinW", "deviceBarW"], _ = {
22
+ }, Se = ["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", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH"], _ = {
23
23
  touchTarget: 44,
24
24
  iconSm: 16,
25
25
  iconMd: 18,
26
26
  iconLg: 24,
27
27
  iconXl: 36,
28
28
  iconXxl: 48
29
- }, nn = {
29
+ }, ur = {
30
30
  sm: _.iconSm,
31
31
  md: _.iconMd,
32
32
  lg: _.iconLg,
33
33
  xl: _.iconXl,
34
34
  xxl: _.iconXxl
35
- }, We = {
36
- xjvd03b: "xjcnmia xjvd03b",
35
+ }, pe = G(null);
36
+ function Re() {
37
+ return A(pe);
38
+ }
39
+ const xe = G(null);
40
+ function je() {
41
+ return A(xe);
42
+ }
43
+ const X = {
44
+ item: {
45
+ "position-kVAEAm": "position-x1n2onr6",
46
+ "zIndex-kY2c9j": "zIndex-x1lhispz",
47
+ $$css: "ButtonGroup/attached.css.ts:14"
48
+ },
49
+ horizontalFirst: {
50
+ "borderTopRightRadius-ksF3WI": "borderTopRightRadius-x1a2w583",
51
+ "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xjppbhk",
52
+ $$css: "ButtonGroup/attached.css.ts:18"
53
+ },
54
+ horizontalMiddle: {
55
+ "borderRadius-kaIpWk": "borderRadius-x2u8bby",
56
+ "marginLeft-koQZXg": "marginLeft-x1804tp4",
57
+ $$css: "ButtonGroup/attached.css.ts:22"
58
+ },
59
+ horizontalLast: {
60
+ "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-x1ia1hqs",
61
+ "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-xfrllxf",
62
+ "marginLeft-koQZXg": "marginLeft-x1804tp4",
63
+ $$css: "ButtonGroup/attached.css.ts:26"
64
+ },
65
+ verticalFirst: {
66
+ "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-xfrllxf",
67
+ "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xjppbhk",
68
+ $$css: "ButtonGroup/attached.css.ts:31"
69
+ },
70
+ verticalMiddle: {
71
+ "borderRadius-kaIpWk": "borderRadius-x2u8bby",
72
+ "marginTop-keoZOQ": "marginTop-xn1ib9x",
73
+ $$css: "ButtonGroup/attached.css.ts:35"
74
+ },
75
+ verticalLast: {
76
+ "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-x1ia1hqs",
77
+ "borderTopRightRadius-ksF3WI": "borderTopRightRadius-x1a2w583",
78
+ "marginTop-keoZOQ": "marginTop-xn1ib9x",
79
+ $$css: "ButtonGroup/attached.css.ts:39"
80
+ }
81
+ }, ze = {
82
+ horizontal: {
83
+ first: X.horizontalFirst,
84
+ middle: X.horizontalMiddle,
85
+ last: X.horizontalLast,
86
+ only: null
87
+ },
88
+ vertical: {
89
+ first: X.verticalFirst,
90
+ middle: X.verticalMiddle,
91
+ last: X.verticalLast,
92
+ only: null
93
+ }
94
+ };
95
+ function He(t) {
96
+ const e = I.c(26);
97
+ let o;
98
+ e[0] !== t ? (o = t === void 0 ? {} : t, e[0] = t, e[1] = o) : o = e[1];
99
+ const {
100
+ disabled: r
101
+ } = o, c = r === void 0 ? !1 : r, l = Y(), a = q(null), i = je(), n = Re(), s = i?.register, u = n?.register;
102
+ let p, d;
103
+ e[2] !== c || e[3] !== s || e[4] !== l || e[5] !== u ? (p = () => {
104
+ const R = a.current;
105
+ if (!R)
106
+ return;
107
+ const H = s?.(l, R, c), L = u?.(l, R, c);
108
+ return () => {
109
+ H?.(), L?.();
110
+ };
111
+ }, d = [l, c, s, u], e[2] = c, e[3] = s, e[4] = l, e[5] = u, e[6] = p, e[7] = d) : (p = e[6], d = e[7]), J(p, d);
112
+ let x;
113
+ e[8] !== i || e[9] !== l ? (x = i ? i.positionOf(l) : null, e[8] = i, e[9] = l, e[10] = x) : x = e[10];
114
+ const g = x;
115
+ let h;
116
+ e[11] !== i || e[12] !== g ? (h = i && g ? [X.item, ze[i.orientation][g]] : null, e[11] = i, e[12] = g, e[13] = h) : h = e[13];
117
+ const m = h, y = i !== null;
118
+ let k;
119
+ e[14] !== l || e[15] !== n ? (k = n?.tabIndexOf(l), e[14] = l, e[15] = n, e[16] = k) : k = e[16];
120
+ let w;
121
+ e[17] !== l || e[18] !== n ? (w = n ? () => n.onItemFocus(l) : void 0, e[17] = l, e[18] = n, e[19] = w) : w = e[19];
122
+ let S;
123
+ return e[20] !== g || e[21] !== m || e[22] !== y || e[23] !== k || e[24] !== w ? (S = {
124
+ ref: a,
125
+ attached: y,
126
+ position: g,
127
+ style: m,
128
+ tabIndex: k,
129
+ onFocus: w
130
+ }, e[20] = g, e[21] = m, e[22] = y, e[23] = k, e[24] = w, e[25] = S) : S = e[25], S;
131
+ }
132
+ const Ie = {
133
+ xjvd03b: "x27mww3 xjvd03b",
37
134
  $$css: !0
38
- }, Se = {
135
+ }, Le = {
39
136
  x13v825q: "x1jk1o70 x13v825q",
40
137
  $$css: !0
41
- }, Ce = {
42
- xjvd03b: "x1vaiyu xjvd03b",
138
+ }, qe = {
139
+ xjvd03b: "x1kpt2hd xjvd03b",
43
140
  $$css: !0
44
- }, je = {
141
+ }, Pe = {
45
142
  x13v825q: "xc8o4hb x13v825q",
46
143
  $$css: !0
47
- }, ze = {
48
- light: [We, Se],
49
- "high-contrast": [Ce, je]
50
- }, le = {
144
+ }, Ee = {
145
+ light: [Ie, Le],
146
+ "high-contrast": [qe, Pe]
147
+ }, ae = {
51
148
  root: {
52
149
  "display-k1xSpc": "display-xjp7ctv",
53
150
  "color-kMwMTN": "color-x95150z",
54
- $$css: "ThemeProvider/ThemeProvider.tsx:20"
151
+ $$css: "ThemeProvider/ThemeProvider.tsx:21"
55
152
  },
56
153
  portalMount: {
57
154
  "position-kVAEAm": "position-xixxii4",
@@ -60,37 +157,44 @@ const $e = {
60
157
  "right-kCIrl2": "right-x3m8u43",
61
158
  "bottom-krVfgx": "bottom-x1ey2m1c",
62
159
  "pointerEvents-kfzvcC": "pointerEvents-x47corl",
63
- "zIndex-kY2c9j": "zIndex-xp6lfbs",
64
- $$css: "ThemeProvider/ThemeProvider.tsx:28"
160
+ "zIndex-kY2c9j": "zIndex-x3z26px",
161
+ $$css: "ThemeProvider/ThemeProvider.tsx:29"
65
162
  }
66
- }, ue = F(null);
67
- function Re() {
68
- return A(ue);
163
+ }, ge = G(null);
164
+ function Be() {
165
+ return A(ge);
69
166
  }
70
- function rn(t) {
71
- const e = R.c(11), {
167
+ function pr(t) {
168
+ const e = I.c(11), {
72
169
  theme: o,
73
- children: n
74
- } = t, d = o === void 0 ? "dark" : o, a = ze[d], l = a?.[0], i = a?.[1];
75
- let r;
76
- e[0] !== l || e[1] !== i ? (r = [l, i, le.root], e[0] = l, e[1] = i, e[2] = r) : r = e[2];
77
- const s = r, [p, c] = N(null);
78
- let u;
79
- e[3] !== n || e[4] !== p ? (u = /* @__PURE__ */ $(ue.Provider, { value: p, children: n }), e[3] = n, e[4] = p, e[5] = u) : u = e[5];
170
+ children: r
171
+ } = t, c = o === void 0 ? "dark" : o, l = Ee[c], a = l?.[0], i = l?.[1];
172
+ let n;
173
+ e[0] !== a || e[1] !== i ? (n = [a, i, ae.root], e[0] = a, e[1] = i, e[2] = n) : n = e[2];
174
+ const s = n, [u, p] = Z(null);
175
+ let d;
176
+ e[3] !== r || e[4] !== u ? (d = /* @__PURE__ */ M(ge.Provider, { value: u, children: r }), e[3] = r, e[4] = u, e[5] = d) : d = e[5];
80
177
  let x;
81
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ $("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", ref: c, "data-portal-mount": !0, ...W(S.div, le.portalMount) }), e[6] = x) : x = e[6];
178
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ M("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:60", ref: p, "data-portal-mount": !0, ...W(C.div, ae.portalMount) }), e[6] = x) : x = e[6];
82
179
  let g;
83
- return e[7] !== u || e[8] !== d || e[9] !== s ? (g = /* @__PURE__ */ U("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:56", "data-theme": d, ...W(S.div, s), children: [
84
- u,
180
+ return e[7] !== d || e[8] !== c || e[9] !== s ? (g = /* @__PURE__ */ U("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", "data-theme": c, ...W(C.div, s), children: [
181
+ d,
85
182
  x
86
- ] }), e[7] = u, e[8] = d, e[9] = s, e[10] = g) : g = e[10], g;
183
+ ] }), e[7] = d, e[8] = c, e[9] = s, e[10] = g) : g = e[10], g;
87
184
  }
88
- const He = typeof process < "u" && process.env?.NODE_ENV === "production", ae = /* @__PURE__ */ new Set();
89
- function pe(t, e, o) {
90
- const n = `${t}:${e}`;
91
- He || ae.has(n) || (ae.add(n), console.warn(`[duro-app/ui ${t}] ${o}`));
185
+ function Oe(t) {
186
+ const e = I.c(2), {
187
+ children: o
188
+ } = t;
189
+ let r;
190
+ return e[0] !== o ? (r = /* @__PURE__ */ M(xe.Provider, { value: null, children: /* @__PURE__ */ M(pe.Provider, { value: null, children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
92
191
  }
93
- const xe = {
192
+ const Ae = typeof process < "u" && process.env?.NODE_ENV === "production", ce = /* @__PURE__ */ new Set();
193
+ function he(t, e, o) {
194
+ const r = `${t}:${e}`;
195
+ Ae || ce.has(r) || (ce.add(r), console.warn(`[duro-app/ui ${t}] ${o}`));
196
+ }
197
+ const be = {
94
198
  touchTarget: "var(--touchTarget-x1u5badx)",
95
199
  controlSm: "var(--controlSm-x6ymn93)",
96
200
  controlMd: "var(--controlMd-xkvaeme)",
@@ -170,26 +274,28 @@ const xe = {
170
274
  sliderW: "var(--sliderW-xvcfp7i)",
171
275
  paletteMinW: "var(--paletteMinW-x1514e6j)",
172
276
  deviceBarW: "var(--deviceBarW-xqnx4o4)",
277
+ timeGutterW: "var(--timeGutterW-xsc6tna)",
278
+ dayHeaderH: "var(--dayHeaderH-x1j7gty0)",
173
279
  __varGroupHash__: "x1w57kmz"
174
- }, ge = new Set(Te);
175
- function he(t) {
176
- return typeof t == "string" && ge.has(t) ? xe[t] : t;
280
+ }, fe = new Set(Se);
281
+ function me(t) {
282
+ return typeof t == "string" && fe.has(t) ? be[t] : t;
177
283
  }
178
- function ce(t) {
284
+ function de(t) {
179
285
  const e = t;
180
286
  if (typeof e != "string") return e;
181
287
  const o = /^(minmax|fit-content)\((.*)\)$/.exec(e);
182
288
  if (o) {
183
- const n = o[2].split(",").map((d) => String(he(d.trim())));
184
- return `${o[1]}(${n.join(", ")})`;
289
+ const r = o[2].split(",").map((c) => String(me(c.trim())));
290
+ return `${o[1]}(${r.join(", ")})`;
185
291
  }
186
- return ge.has(e) ? xe[e] : e;
292
+ return fe.has(e) ? be[e] : e;
187
293
  }
188
294
  const B = {
189
295
  root: {
190
296
  "position-kVAEAm": "position-x1n2onr6",
191
297
  "display-k1xSpc": "display-x3nfvp2",
192
- $$css: "Menu/styles.css.ts:11"
298
+ $$css: "Menu/styles.css.ts:12"
193
299
  },
194
300
  trigger: {
195
301
  "display-k1xSpc": "display-x3nfvp2",
@@ -210,7 +316,7 @@ const B = {
210
316
  "cursor-kkrTdU": "cursor-x1ypdohk",
211
317
  "transitionProperty-k1ekBW": "transitionProperty-xts7igz",
212
318
  "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
213
- $$css: "Menu/styles.css.ts:15"
319
+ $$css: "Menu/styles.css.ts:16"
214
320
  },
215
321
  triggerGhost: {
216
322
  "justifyContent-kjj79g": "justifyContent-xl56j7k",
@@ -221,7 +327,7 @@ const B = {
221
327
  "paddingLeft-kE3dHu": "paddingLeft-xzmizx3",
222
328
  "paddingRight-kpe85a": "paddingRight-x7ulw7g",
223
329
  "borderColor-kVAM5u": "borderColor-x9r1u3d",
224
- $$css: "Menu/styles.css.ts:39"
330
+ $$css: "Menu/styles.css.ts:40"
225
331
  },
226
332
  popup: {
227
333
  "position-kVAEAm": "position-xixxii4",
@@ -238,15 +344,15 @@ const B = {
238
344
  "minWidth-k7Eaqz": "minWidth-x9i2ahm",
239
345
  "maxHeight-kskxy": "maxHeight-x2usv7r",
240
346
  "overflowY-kORKVm": "overflowY-x1odjw0f",
241
- "zIndex-kY2c9j": "zIndex-x51lqrf",
347
+ "zIndex-kY2c9j": "zIndex-x9qr3eb",
242
348
  "pointerEvents-kfzvcC": "pointerEvents-x67bb7w",
243
349
  "outlineStyle-k3XXqK": "outlineStyle-x1t137rt",
244
- $$css: "Menu/styles.css.ts:49"
350
+ $$css: "Menu/styles.css.ts:50"
245
351
  },
246
352
  popupPosition: (t, e) => [{
247
353
  "top-k87sOh": t != null ? "top-xjbys53" : t,
248
354
  "left-kbCHJM": e != null ? "left-xgq9j65" : e,
249
- $$css: "Menu/styles.css.ts:72"
355
+ $$css: "Menu/styles.css.ts:73"
250
356
  }, {
251
357
  "--x-top": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(t),
252
358
  "--x-left": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(e)
@@ -266,7 +372,7 @@ const B = {
266
372
  "backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
267
373
  "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
268
374
  "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
269
- $$css: "Menu/styles.css.ts:76"
375
+ $$css: "Menu/styles.css.ts:77"
270
376
  },
271
377
  itemHighlighted: {
272
378
  "backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
@@ -274,7 +380,7 @@ const B = {
274
380
  "outlineWidth-kMeerF": "outlineWidth-x1a33d5h",
275
381
  "outlineColor-kjBf7l": "outlineColor-x1uczgqu",
276
382
  "outlineOffset-kInvED": "outlineOffset-x186wpgv",
277
- $$css: "Menu/styles.css.ts:94"
383
+ $$css: "Menu/styles.css.ts:95"
278
384
  },
279
385
  separator: {
280
386
  "height-kZKoxP": "height-xqtp20y",
@@ -283,360 +389,353 @@ const B = {
283
389
  "borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
284
390
  "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
285
391
  "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
286
- $$css: "Menu/styles.css.ts:101"
392
+ $$css: "Menu/styles.css.ts:102"
287
393
  },
288
394
  linkItem: {
289
395
  "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
290
396
  "color-kMwMTN": "color-x95150z color-xtolcfe",
291
- $$css: "Menu/styles.css.ts:109"
397
+ $$css: "Menu/styles.css.ts:110"
292
398
  }
293
- }, fe = F(null);
294
- function Z() {
295
- const t = A(fe);
399
+ }, ke = G(null);
400
+ function ee() {
401
+ const t = A(ke);
296
402
  if (!t)
297
403
  throw new Error("Menu compound components must be used within Menu.Root");
298
404
  return t;
299
405
  }
300
- function Ie(t, e) {
406
+ function Ge(t, e) {
301
407
  return t ? !e.some((o) => o != null && o.contains(t)) : !0;
302
408
  }
303
- function Le({
409
+ function De({
304
410
  open: t,
305
411
  defaultOpen: e = !1,
306
412
  onOpenChange: o
307
413
  }) {
308
- const [n, d] = N(e), a = t !== void 0, l = a ? t : n, [i, r] = N(null), s = L(i);
309
- ee(() => {
414
+ const [r, c] = Z(e), l = t !== void 0, a = l ? t : r, [i, n] = Z(null), s = q(i);
415
+ J(() => {
310
416
  s.current = i;
311
417
  }, [i]);
312
- const p = Y(), c = Y(), u = L(null), x = L(null), g = L(null), h = L(/* @__PURE__ */ new Map()), b = L([]), y = L(l);
313
- y.current = l;
314
- const k = L(o);
418
+ const u = Y(), p = Y(), d = q(null), x = q(null), g = q(null), h = q(/* @__PURE__ */ new Map()), m = q([]), y = q(a);
419
+ y.current = a;
420
+ const k = q(o);
315
421
  k.current = o;
316
422
  const w = K((T) => {
317
- T !== y.current && (a || d(T), k.current?.(T));
318
- }, [a]), C = K(() => {
319
- y.current && (w(!1), r(null));
320
- }, [w]), z = K(() => {
321
- y.current && (C(), x.current?.focus());
322
- }, [C]), q = K(() => {
323
- y.current ? z() : w(!0);
324
- }, [z, w]), I = L(!1);
325
- D(() => {
326
- if (l && !I.current) {
423
+ T !== y.current && (l || c(T), k.current?.(T));
424
+ }, [l]), S = K(() => {
425
+ y.current && (w(!1), n(null));
426
+ }, [w]), R = K(() => {
427
+ y.current && (S(), x.current?.focus());
428
+ }, [S]), H = K(() => {
429
+ y.current ? R() : w(!0);
430
+ }, [R, w]), L = q(!1);
431
+ F(() => {
432
+ if (a && !L.current) {
327
433
  g.current?.focus({
328
434
  preventScroll: !0
329
435
  });
330
- const T = b.current[0];
331
- T && r(T);
332
- } else !l && I.current && r(null);
333
- I.current = l;
334
- }, [l]), D(() => {
436
+ const T = m.current[0];
437
+ T && n(T);
438
+ } else !a && L.current && n(null);
439
+ L.current = a;
440
+ }, [a]), F(() => {
335
441
  if (!i) return;
336
442
  h.current.get(i)?.scrollIntoView?.({
337
443
  block: "nearest"
338
444
  });
339
445
  }, [i]);
340
- const E = K((T, O) => {
341
- h.current.set(T, O);
342
- const j = h.current, H = [...j.keys()];
343
- return H.sort((P, V) => {
344
- const ie = j.get(P), se = j.get(V);
345
- return !ie || !se ? 0 : ie.compareDocumentPosition(se) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
346
- }), b.current = H, () => {
347
- h.current.delete(T), b.current = b.current.filter((P) => P !== T);
446
+ const O = K((T, P) => {
447
+ h.current.set(T, P);
448
+ const j = h.current, z = [...j.keys()];
449
+ return z.sort((E, N) => {
450
+ const se = j.get(E), le = j.get(N);
451
+ return !se || !le ? 0 : se.compareDocumentPosition(le) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
452
+ }), m.current = z, () => {
453
+ h.current.delete(T), m.current = m.current.filter((E) => E !== T);
348
454
  };
349
455
  }, []);
350
- return D(() => {
456
+ return F(() => {
351
457
  const T = g.current;
352
- if (!T || !l) return;
353
- function O(j) {
458
+ if (!T || !a) return;
459
+ function P(j) {
354
460
  if (j.key === "Escape") {
355
- j.preventDefault(), j.stopPropagation(), z();
461
+ j.preventDefault(), j.stopPropagation(), R();
356
462
  return;
357
463
  }
358
464
  if (j.key === "Tab") {
359
- z();
465
+ R();
360
466
  return;
361
467
  }
362
- const H = b.current;
363
- if (H.length !== 0)
468
+ const z = m.current;
469
+ if (z.length !== 0)
364
470
  switch (j.key) {
365
471
  case "ArrowDown": {
366
- j.preventDefault(), r((P) => {
367
- const V = P ? H.indexOf(P) : -1;
368
- return H[(V + 1) % H.length];
472
+ j.preventDefault(), n((E) => {
473
+ const N = E ? z.indexOf(E) : -1;
474
+ return z[(N + 1) % z.length];
369
475
  });
370
476
  break;
371
477
  }
372
478
  case "ArrowUp": {
373
- j.preventDefault(), r((P) => {
374
- const V = P ? H.indexOf(P) : 0;
375
- return H[(V - 1 + H.length) % H.length];
479
+ j.preventDefault(), n((E) => {
480
+ const N = E ? z.indexOf(E) : 0;
481
+ return z[(N - 1 + z.length) % z.length];
376
482
  });
377
483
  break;
378
484
  }
379
485
  case "Home": {
380
- j.preventDefault(), r(H[0]);
486
+ j.preventDefault(), n(z[0]);
381
487
  break;
382
488
  }
383
489
  case "End": {
384
- j.preventDefault(), r(H[H.length - 1]);
490
+ j.preventDefault(), n(z[z.length - 1]);
385
491
  break;
386
492
  }
387
493
  case "Enter":
388
494
  case " ": {
389
495
  j.preventDefault();
390
- const P = s.current;
391
- P && h.current.get(P)?.click();
496
+ const E = s.current;
497
+ E && h.current.get(E)?.click();
392
498
  break;
393
499
  }
394
500
  }
395
501
  }
396
- return T.addEventListener("keydown", O), () => T.removeEventListener("keydown", O);
397
- }, [l, z]), D(() => {
398
- if (!l) return;
399
- function T(O) {
400
- Ie(O.target, [g.current, x.current]) && C();
502
+ return T.addEventListener("keydown", P), () => T.removeEventListener("keydown", P);
503
+ }, [a, R]), F(() => {
504
+ if (!a) return;
505
+ function T(P) {
506
+ Ge(P.target, [g.current, x.current]) && S();
401
507
  }
402
508
  return document.addEventListener("pointerdown", T, !0), () => document.removeEventListener("pointerdown", T, !0);
403
- }, [l, C]), {
509
+ }, [a, S]), {
404
510
  ctx: {
405
- open: l,
406
- toggle: q,
407
- close: z,
408
- menuId: p,
409
- triggerId: c,
511
+ open: a,
512
+ toggle: H,
513
+ close: R,
514
+ menuId: u,
515
+ triggerId: p,
410
516
  highlightedId: i,
411
- setHighlightedId: r,
412
- registerItem: E,
517
+ setHighlightedId: n,
518
+ registerItem: O,
413
519
  triggerRef: x,
414
520
  popupRef: g
415
521
  },
416
- rootRef: u
522
+ rootRef: d
417
523
  };
418
524
  }
419
- function Pe({
525
+ function Fe({
420
526
  anchor: t,
421
527
  popup: e,
422
528
  viewport: o,
423
- side: n,
424
- align: d,
425
- offset: a
529
+ side: r,
530
+ align: c,
531
+ offset: l
426
532
  }) {
427
- const l = t.top + t.height + a, i = t.top - a - e.height, r = l + e.height <= o.height, s = i >= 0;
428
- let p = n;
429
- n === "bottom" && !r && s ? p = "top" : n === "top" && !s && r && (p = "bottom");
430
- const c = p === "bottom" ? l : i;
431
- let u = t.left;
432
- d === "center" ? u = t.left + (t.width - e.width) / 2 : d === "end" && (u = t.left + t.width - e.width);
533
+ const a = t.top + t.height + l, i = t.top - l - e.height, n = a + e.height <= o.height, s = i >= 0;
534
+ let u = r;
535
+ r === "bottom" && !n && s ? u = "top" : r === "top" && !s && n && (u = "bottom");
536
+ const p = u === "bottom" ? a : i;
537
+ let d = t.left;
538
+ c === "center" ? d = t.left + (t.width - e.width) / 2 : c === "end" && (d = t.left + t.width - e.width);
433
539
  const x = Math.max(0, o.width - e.width);
434
- return u = Math.min(Math.max(0, u), x), {
435
- top: c,
436
- left: u,
437
- side: p
540
+ return d = Math.min(Math.max(0, d), x), {
541
+ top: p,
542
+ left: d,
543
+ side: u
438
544
  };
439
545
  }
440
- const qe = F(null);
441
- function Ee(t, e) {
442
- const o = R.c(5), {
443
- active: n
444
- } = e, d = A(qe);
445
- let a, l;
446
- o[0] !== n || o[1] !== d || o[2] !== t ? (a = () => {
546
+ const Xe = G(null);
547
+ function Ve(t, e) {
548
+ const o = I.c(5), {
549
+ active: r
550
+ } = e, c = A(Xe);
551
+ let l, a;
552
+ o[0] !== r || o[1] !== c || o[2] !== t ? (l = () => {
447
553
  const i = t.current;
448
- if (!(!d || !n || !i))
449
- return d.register(i);
450
- }, l = [d, n, t], o[0] = n, o[1] = d, o[2] = t, o[3] = a, o[4] = l) : (a = o[3], l = o[4]), ee(a, l);
554
+ if (!(!c || !r || !i))
555
+ return c.register(i);
556
+ }, a = [c, r, t], o[0] = r, o[1] = c, o[2] = t, o[3] = l, o[4] = a) : (l = o[3], a = o[4]), J(l, a);
451
557
  }
452
- function Oe(t) {
453
- const e = R.c(10), {
558
+ function Ke(t) {
559
+ const e = I.c(10), {
454
560
  children: o,
455
- open: n,
456
- defaultOpen: d,
457
- onOpenChange: a
561
+ open: r,
562
+ defaultOpen: c,
563
+ onOpenChange: l
458
564
  } = t;
459
- let l;
460
- e[0] !== d || e[1] !== a || e[2] !== n ? (l = {
461
- open: n,
462
- defaultOpen: d,
463
- onOpenChange: a
464
- }, e[0] = d, e[1] = a, e[2] = n, e[3] = l) : l = e[3];
565
+ let a;
566
+ e[0] !== c || e[1] !== l || e[2] !== r ? (a = {
567
+ open: r,
568
+ defaultOpen: c,
569
+ onOpenChange: l
570
+ }, e[0] = c, e[1] = l, e[2] = r, e[3] = a) : a = e[3];
465
571
  const {
466
572
  ctx: i,
467
- rootRef: r
468
- } = Le(l);
573
+ rootRef: n
574
+ } = De(a);
469
575
  let s;
470
- e[4] !== o || e[5] !== r ? (s = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:38", ref: r, ...W(S.div, B.root), children: o }), e[4] = o, e[5] = r, e[6] = s) : s = e[6];
471
- let p;
472
- return e[7] !== i || e[8] !== s ? (p = /* @__PURE__ */ $(fe.Provider, { value: i, children: s }), e[7] = i, e[8] = s, e[9] = p) : p = e[9], p;
473
- }
474
- const Be = 'button, a[href], input, select, textarea, [role="button"]';
475
- function De(t) {
476
- const e = R.c(17), {
477
- children: o,
478
- "aria-label": n,
479
- variant: d,
480
- ref: a
481
- } = t, l = d === void 0 ? "default" : d, {
482
- open: i,
483
- toggle: r,
484
- menuId: s,
485
- triggerId: p,
486
- triggerRef: c
487
- } = Z();
576
+ e[4] !== o || e[5] !== n ? (s = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:40", ref: n, ...W(C.div, B.root), children: o }), e[4] = o, e[5] = n, e[6] = s) : s = e[6];
488
577
  let u;
489
- e[0] !== a || e[1] !== c ? (u = (C) => {
490
- c.current = C, typeof a == "function" ? a(C) : a && (a.current = C);
491
- }, e[0] = a, e[1] = c, e[2] = u) : u = e[2];
492
- const x = u;
493
- let g, h;
494
- e[3] !== c ? (g = () => {
495
- c.current?.querySelector(Be) && pe("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.");
496
- }, h = [c], e[3] = c, e[4] = g, e[5] = h) : (g = e[4], h = e[5]), D(g, h);
497
- const b = i ? s : void 0, y = l === "ghost" && B.triggerGhost;
498
- let k;
499
- e[6] !== y ? (k = [B.trigger, y], e[6] = y, e[7] = k) : k = e[7];
500
- let w;
501
- return e[8] !== n || e[9] !== o || e[10] !== i || e[11] !== x || e[12] !== b || e[13] !== k || e[14] !== r || e[15] !== p ? (w = /* @__PURE__ */ $("button", { "data-element-src": "Menu/Menu.tsx:86", ref: x, id: p, type: "button", onClick: r, "aria-label": n, "aria-expanded": i, "aria-haspopup": "menu", "aria-controls": b, ...W(S.button, k), children: o }), e[8] = n, e[9] = o, e[10] = i, e[11] = x, e[12] = b, e[13] = k, e[14] = r, e[15] = p, e[16] = w) : w = e[16], w;
578
+ return e[7] !== i || e[8] !== s ? (u = /* @__PURE__ */ M(ke.Provider, { value: i, children: s }), e[7] = i, e[8] = s, e[9] = u) : u = e[9], u;
579
+ }
580
+ const Ne = 'button, a[href], input, select, textarea, [role="button"]';
581
+ function _e({
582
+ children: t,
583
+ "aria-label": e,
584
+ variant: o = "default",
585
+ ref: r
586
+ }) {
587
+ const {
588
+ open: c,
589
+ toggle: l,
590
+ menuId: a,
591
+ triggerId: i,
592
+ triggerRef: n
593
+ } = ee(), s = He(), u = s.ref, p = K((d) => {
594
+ n.current = d, u.current = d, typeof r == "function" ? r(d) : r && (r.current = d);
595
+ }, [r, n, u]);
596
+ return F(() => {
597
+ n.current?.querySelector(Ne) && he("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.");
598
+ }, [n]), /* @__PURE__ */ M("button", { "data-element-src": "Menu/Menu.tsx:91", ref: p, tabIndex: s.tabIndex, onFocus: s.onFocus, id: i, type: "button", onClick: l, "aria-label": e, "aria-expanded": c, "aria-haspopup": "menu", "aria-controls": c ? a : void 0, ...W(C.button, B.trigger, o === "ghost" && B.triggerGhost, s.style), children: t });
502
599
  }
503
- function Ae(t) {
504
- const e = R.c(24), {
600
+ function Ye(t) {
601
+ const e = I.c(26), {
505
602
  children: o,
506
- align: n
507
- } = t, d = n === void 0 ? "start" : n, {
508
- open: a,
509
- menuId: l,
603
+ align: r
604
+ } = t, c = r === void 0 ? "start" : r, {
605
+ open: l,
606
+ menuId: a,
510
607
  triggerId: i,
511
- highlightedId: r,
608
+ highlightedId: n,
512
609
  triggerRef: s,
513
- popupRef: p
514
- } = Z();
515
- let c;
516
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
610
+ popupRef: u
611
+ } = ee();
612
+ let p;
613
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
517
614
  top: 0,
518
615
  left: 0
519
- }, e[0] = c) : c = e[0];
520
- const [u, x] = N(c), g = Re();
616
+ }, e[0] = p) : p = e[0];
617
+ const [d, x] = Z(p), g = Be();
521
618
  let h;
522
- e[1] !== a ? (h = {
523
- active: a
524
- }, e[1] = a, e[2] = h) : h = e[2], Ee(p, h);
525
- let b, y;
526
- if (e[3] !== d || e[4] !== a || e[5] !== p || e[6] !== s ? (b = () => {
527
- if (!a)
619
+ e[1] !== l ? (h = {
620
+ active: l
621
+ }, e[1] = l, e[2] = h) : h = e[2], Ve(u, h);
622
+ let m, y;
623
+ if (e[3] !== c || e[4] !== l || e[5] !== u || e[6] !== s ? (m = () => {
624
+ if (!l)
528
625
  return;
529
- const E = () => {
530
- const G = p.current, T = s.current?.getBoundingClientRect();
531
- if (!G || !T)
626
+ const D = () => {
627
+ const T = u.current, P = s.current?.getBoundingClientRect();
628
+ if (!T || !P)
532
629
  return;
533
- const O = Pe({
630
+ const j = Fe({
534
631
  anchor: {
535
- top: T.top,
536
- left: T.left,
537
- width: T.width,
538
- height: T.height
632
+ top: P.top,
633
+ left: P.left,
634
+ width: P.width,
635
+ height: P.height
539
636
  },
540
637
  popup: {
541
- width: G.offsetWidth,
542
- height: G.offsetHeight
638
+ width: T.offsetWidth,
639
+ height: T.offsetHeight
543
640
  },
544
641
  viewport: {
545
642
  width: window.innerWidth,
546
643
  height: window.innerHeight
547
644
  },
548
645
  side: "bottom",
549
- align: d,
550
- offset: $e.xs
646
+ align: c,
647
+ offset: Ce.xs
551
648
  });
552
- x((j) => j.top === O.top && j.left === O.left ? j : {
553
- top: O.top,
554
- left: O.left
649
+ x((z) => z.top === j.top && z.left === j.left ? z : {
650
+ top: j.top,
651
+ left: j.left
555
652
  });
556
653
  };
557
- return E(), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
558
- window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
654
+ return D(), window.addEventListener("resize", D), window.addEventListener("scroll", D, !0), () => {
655
+ window.removeEventListener("resize", D), window.removeEventListener("scroll", D, !0);
559
656
  };
560
- }, y = [a, d, p, s], e[3] = d, e[4] = a, e[5] = p, e[6] = s, e[7] = b, e[8] = y) : (b = e[7], y = e[8]), ee(b, y), !a || typeof document > "u")
657
+ }, y = [l, c, u, s], e[3] = c, e[4] = l, e[5] = u, e[6] = s, e[7] = m, e[8] = y) : (m = e[7], y = e[8]), J(m, y), !l || typeof document > "u")
561
658
  return null;
562
- const k = r ?? void 0;
659
+ const k = n ?? void 0;
563
660
  let w;
564
- e[9] !== u.left || e[10] !== u.top ? (w = B.popupPosition(u.top, u.left), e[9] = u.left, e[10] = u.top, e[11] = w) : w = e[11];
565
- let C;
566
- e[12] !== w ? (C = [B.popup, w], e[12] = w, e[13] = C) : C = e[13];
567
- let z;
568
- e[14] !== o || e[15] !== l || e[16] !== p || e[17] !== k || e[18] !== C || e[19] !== i ? (z = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:148", ref: p, id: l, role: "menu", tabIndex: -1, "aria-labelledby": i, "aria-activedescendant": k, ...W(S.div, C), children: o }), e[14] = o, e[15] = l, e[16] = p, e[17] = k, e[18] = C, e[19] = i, e[20] = z) : z = e[20];
569
- const q = g ?? document.body;
570
- let I;
571
- return e[21] !== q || e[22] !== z ? (I = Me(z, q), e[21] = q, e[22] = z, e[23] = I) : I = e[23], I;
661
+ e[9] !== d.left || e[10] !== d.top ? (w = B.popupPosition(d.top, d.left), e[9] = d.left, e[10] = d.top, e[11] = w) : w = e[11];
662
+ let S;
663
+ e[12] !== w ? (S = [B.popup, w], e[12] = w, e[13] = S) : S = e[13];
664
+ let R;
665
+ e[14] !== o ? (R = /* @__PURE__ */ M(Oe, { children: o }), e[14] = o, e[15] = R) : R = e[15];
666
+ let H;
667
+ e[16] !== a || e[17] !== u || e[18] !== k || e[19] !== S || e[20] !== R || e[21] !== i ? (H = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:155", ref: u, id: a, role: "menu", tabIndex: -1, "aria-labelledby": i, "aria-activedescendant": k, ...W(C.div, S), children: R }), e[16] = a, e[17] = u, e[18] = k, e[19] = S, e[20] = R, e[21] = i, e[22] = H) : H = e[22];
668
+ const L = g ?? document.body;
669
+ let O;
670
+ return e[23] !== H || e[24] !== L ? (O = We(H, L), e[23] = H, e[24] = L, e[25] = O) : O = e[25], O;
572
671
  }
573
- function Fe(t) {
574
- const e = R.c(18), {
672
+ function Ze(t) {
673
+ const e = I.c(18), {
575
674
  onClick: o,
576
- children: n
675
+ children: r
577
676
  } = t, {
578
- close: d,
579
- highlightedId: a,
580
- setHighlightedId: l,
677
+ close: c,
678
+ highlightedId: l,
679
+ setHighlightedId: a,
581
680
  registerItem: i
582
- } = Z(), r = Y(), s = L(null), p = a === r;
583
- let c, u;
584
- e[0] !== r || e[1] !== i ? (c = () => {
681
+ } = ee(), n = Y(), s = q(null), u = l === n;
682
+ let p, d;
683
+ e[0] !== n || e[1] !== i ? (p = () => {
585
684
  const w = s.current;
586
685
  if (w)
587
- return i(r, w);
588
- }, u = [r, i], e[0] = r, e[1] = i, e[2] = c, e[3] = u) : (c = e[2], u = e[3]), D(c, u);
686
+ return i(n, w);
687
+ }, d = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = d) : (p = e[2], d = e[3]), F(p, d);
589
688
  let x;
590
- e[4] !== d || e[5] !== o ? (x = () => {
591
- o?.(), d();
592
- }, e[4] = d, e[5] = o, e[6] = x) : x = e[6];
689
+ e[4] !== c || e[5] !== o ? (x = () => {
690
+ o?.(), c();
691
+ }, e[4] = c, e[5] = o, e[6] = x) : x = e[6];
593
692
  const g = x;
594
693
  let h;
595
- e[7] !== r || e[8] !== l ? (h = () => l(r), e[7] = r, e[8] = l, e[9] = h) : h = e[9];
596
- const b = p && B.itemHighlighted;
694
+ e[7] !== n || e[8] !== a ? (h = () => a(n), e[7] = n, e[8] = a, e[9] = h) : h = e[9];
695
+ const m = u && B.itemHighlighted;
597
696
  let y;
598
- e[10] !== b ? (y = [B.item, b], e[10] = b, e[11] = y) : y = e[11];
697
+ e[10] !== m ? (y = [B.item, m], e[10] = m, e[11] = y) : y = e[11];
599
698
  let k;
600
- return e[12] !== n || e[13] !== g || e[14] !== r || e[15] !== h || e[16] !== y ? (k = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:187", ref: s, id: r, role: "menuitem", onClick: g, onPointerEnter: h, ...W(S.div, y), children: n }), e[12] = n, e[13] = g, e[14] = r, e[15] = h, e[16] = y, e[17] = k) : k = e[17], k;
699
+ return e[12] !== r || e[13] !== g || e[14] !== n || e[15] !== h || e[16] !== y ? (k = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:194", ref: s, id: n, role: "menuitem", onClick: g, onPointerEnter: h, ...W(C.div, y), children: r }), e[12] = r, e[13] = g, e[14] = n, e[15] = h, e[16] = y, e[17] = k) : k = e[17], k;
601
700
  }
602
- function Ge(t) {
603
- const e = R.c(18), {
701
+ function Ue(t) {
702
+ const e = I.c(18), {
604
703
  href: o,
605
- children: n
704
+ children: r
606
705
  } = t, {
607
- close: d,
608
- highlightedId: a,
609
- setHighlightedId: l,
706
+ close: c,
707
+ highlightedId: l,
708
+ setHighlightedId: a,
610
709
  registerItem: i
611
- } = Z(), r = Y(), s = L(null), p = a === r;
612
- let c, u;
613
- e[0] !== r || e[1] !== i ? (c = () => {
710
+ } = ee(), n = Y(), s = q(null), u = l === n;
711
+ let p, d;
712
+ e[0] !== n || e[1] !== i ? (p = () => {
614
713
  const k = s.current;
615
714
  if (k)
616
- return i(r, k);
617
- }, u = [r, i], e[0] = r, e[1] = i, e[2] = c, e[3] = u) : (c = e[2], u = e[3]), D(c, u);
715
+ return i(n, k);
716
+ }, d = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = d) : (p = e[2], d = e[3]), F(p, d);
618
717
  let x;
619
- e[4] !== d ? (x = () => d(), e[4] = d, e[5] = x) : x = e[5];
718
+ e[4] !== c ? (x = () => c(), e[4] = c, e[5] = x) : x = e[5];
620
719
  let g;
621
- e[6] !== r || e[7] !== l ? (g = () => l(r), e[6] = r, e[7] = l, e[8] = g) : g = e[8];
622
- const h = p && B.itemHighlighted;
623
- let b;
624
- e[9] !== h ? (b = [B.item, B.linkItem, h], e[9] = h, e[10] = b) : b = e[10];
720
+ e[6] !== n || e[7] !== a ? (g = () => a(n), e[6] = n, e[7] = a, e[8] = g) : g = e[8];
721
+ const h = u && B.itemHighlighted;
722
+ let m;
723
+ e[9] !== h ? (m = [B.item, B.linkItem, h], e[9] = h, e[10] = m) : m = e[10];
625
724
  let y;
626
- return e[11] !== n || e[12] !== o || e[13] !== r || e[14] !== x || e[15] !== g || e[16] !== b ? (y = /* @__PURE__ */ $("a", { "data-element-src": "Menu/Menu.tsx:219", ref: s, id: r, href: o, onClick: x, role: "menuitem", onPointerEnter: g, ...W(S.a, b), children: n }), e[11] = n, e[12] = o, e[13] = r, e[14] = x, e[15] = g, e[16] = b, e[17] = y) : y = e[17], y;
725
+ return e[11] !== r || e[12] !== o || e[13] !== n || e[14] !== x || e[15] !== g || e[16] !== m ? (y = /* @__PURE__ */ M("a", { "data-element-src": "Menu/Menu.tsx:226", ref: s, id: n, href: o, onClick: x, role: "menuitem", onPointerEnter: g, ...W(C.a, m), children: r }), e[11] = r, e[12] = o, e[13] = n, e[14] = x, e[15] = g, e[16] = m, e[17] = y) : y = e[17], y;
627
726
  }
628
- function Xe() {
629
- const t = R.c(1);
727
+ function Je() {
728
+ const t = I.c(1);
630
729
  let e;
631
- return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:238", role: "separator", "aria-orientation": "horizontal", ...W(S.div, B.separator) }), t[0] = e) : e = t[0], e;
730
+ return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:245", role: "separator", "aria-orientation": "horizontal", ...W(C.div, B.separator) }), t[0] = e) : e = t[0], e;
632
731
  }
633
- const sn = {
634
- Root: Oe,
635
- Trigger: De,
636
- Popup: Ae,
637
- Item: Fe,
638
- LinkItem: Ge,
639
- Separator: Xe
732
+ const xr = {
733
+ Root: Ke,
734
+ Trigger: _e,
735
+ Popup: Ye,
736
+ Item: Ze,
737
+ LinkItem: Ue,
738
+ Separator: Je
640
739
  };
641
740
  /**
642
741
  * @license react-strict-dom
@@ -645,116 +744,116 @@ const sn = {
645
744
  * This source code is licensed under the MIT license found in the
646
745
  * LICENSE file in the root directory of this source tree.
647
746
  */
648
- const de = {};
649
- function Ve(t) {
650
- process.env.NODE_ENV !== "test" && de[t] || (de[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
747
+ const ue = {};
748
+ function Qe(t) {
749
+ process.env.NODE_ENV !== "test" && ue[t] || (ue[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
651
750
  }
652
- const Ke = /* @__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"]);
653
- function _e(t) {
654
- return Ke.has(t) || t.indexOf("data-") > -1;
751
+ const et = /* @__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"]);
752
+ function tt(t) {
753
+ return et.has(t) || t.indexOf("data-") > -1;
655
754
  }
656
- var te = {};
657
- Object.defineProperty(te, "__esModule", {
755
+ var oe = {};
756
+ Object.defineProperty(oe, "__esModule", {
658
757
  value: !0
659
758
  });
660
- var me = te.styleq = void 0, Ne = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
661
- function be(t) {
662
- var e, o, n;
663
- return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, n = t.transform), function() {
664
- for (var a = [], l = "", i = null, r = "", s = e ? null : Ne, p = new Array(arguments.length), c = 0; c < arguments.length; c++)
665
- p[c] = arguments[c];
666
- for (; p.length > 0; ) {
667
- var u = p.pop();
668
- if (!(u == null || u === !1)) {
669
- if (Array.isArray(u)) {
670
- for (var x = 0; x < u.length; x++)
671
- p.push(u[x]);
759
+ var ve = oe.styleq = void 0, ot = /* @__PURE__ */ new WeakMap(), rt = "$$css";
760
+ function ye(t) {
761
+ var e, o, r;
762
+ return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, r = t.transform), function() {
763
+ for (var l = [], a = "", i = null, n = "", s = e ? null : ot, u = new Array(arguments.length), p = 0; p < arguments.length; p++)
764
+ u[p] = arguments[p];
765
+ for (; u.length > 0; ) {
766
+ var d = u.pop();
767
+ if (!(d == null || d === !1)) {
768
+ if (Array.isArray(d)) {
769
+ for (var x = 0; x < d.length; x++)
770
+ u.push(d[x]);
672
771
  continue;
673
772
  }
674
- var g = n != null ? n(u) : u;
773
+ var g = r != null ? r(d) : d;
675
774
  if (g.$$css != null) {
676
775
  var h = "";
677
776
  if (s != null && s.has(g)) {
678
- var b = s.get(g);
679
- b != null && (h = b[0], r = b[2], a.push.apply(a, b[1]), s = b[3]);
777
+ var m = s.get(g);
778
+ m != null && (h = m[0], n = m[2], l.push.apply(l, m[1]), s = m[3]);
680
779
  } else {
681
780
  var y = [];
682
781
  for (var k in g) {
683
782
  var w = g[k];
684
- if (k === Ye) {
685
- var C = g[k];
686
- C !== !0 && (r = r ? C + "; " + r : C);
783
+ if (k === rt) {
784
+ var S = g[k];
785
+ S !== !0 && (n = n ? S + "; " + n : S);
687
786
  continue;
688
787
  }
689
- typeof w == "string" || w === null ? a.includes(k) || (a.push(k), s != null && y.push(k), typeof w == "string" && (h += h ? " " + w : w)) : console.error("styleq: ".concat(k, " typeof ").concat(String(w), ' is not "string" or "null".'));
788
+ typeof w == "string" || w === null ? l.includes(k) || (l.push(k), s != null && y.push(k), typeof w == "string" && (h += h ? " " + w : w)) : console.error("styleq: ".concat(k, " typeof ").concat(String(w), ' is not "string" or "null".'));
690
789
  }
691
790
  if (s != null) {
692
- var z = /* @__PURE__ */ new WeakMap();
693
- s.set(g, [h, y, r, z]), s = z;
791
+ var R = /* @__PURE__ */ new WeakMap();
792
+ s.set(g, [h, y, n, R]), s = R;
694
793
  }
695
794
  }
696
- h && (l = l ? h + " " + l : h);
795
+ h && (a = a ? h + " " + a : h);
697
796
  } else if (o)
698
797
  i == null && (i = {}), i = Object.assign({}, g, i);
699
798
  else {
700
- var q = null;
701
- for (var I in g) {
702
- var E = g[I];
703
- E !== void 0 && (a.includes(I) || (E != null && (i == null && (i = {}), q == null && (q = {}), q[I] = E), a.push(I), s = null));
799
+ var H = null;
800
+ for (var L in g) {
801
+ var O = g[L];
802
+ O !== void 0 && (l.includes(L) || (O != null && (i == null && (i = {}), H == null && (H = {}), H[L] = O), l.push(L), s = null));
704
803
  }
705
- q != null && (i = Object.assign(q, i));
804
+ H != null && (i = Object.assign(H, i));
706
805
  }
707
806
  }
708
807
  }
709
- var G = [l, i, r];
710
- return G;
808
+ var D = [a, i, n];
809
+ return D;
711
810
  };
712
811
  }
713
- var Ue = me = te.styleq = be();
714
- Ue.factory = be;
715
- const Je = me.factory({
812
+ var nt = ve = oe.styleq = ye();
813
+ nt.factory = ye;
814
+ const it = ve.factory({
716
815
  disableMix: !0
717
816
  });
718
- function Ze(...t) {
719
- const [e, o, n] = Je(t), d = {};
720
- if (e != null && e !== "" && (d.className = e), o != null && (d.style = o), n != null && n !== "") {
721
- const a = n.split(";"), l = {};
722
- for (const i of a) {
723
- const r = i.trim(), [s, p] = r.split(":");
724
- p != null && (l[s] = l[s] != null ? `${l[s]},${p}` : p);
817
+ function st(...t) {
818
+ const [e, o, r] = it(t), c = {};
819
+ if (e != null && e !== "" && (c.className = e), o != null && (c.style = o), r != null && r !== "") {
820
+ const l = r.split(";"), a = {};
821
+ for (const i of l) {
822
+ const n = i.trim(), [s, u] = n.split(":");
823
+ u != null && (a[s] = a[s] != null ? `${a[s]},${u}` : u);
725
824
  }
726
- d["data-style-src"] = Object.keys(l).map((i) => `${i}:${l[i]}`).join("; ");
825
+ c["data-style-src"] = Object.keys(a).map((i) => `${i}:${a[i]}`).join("; ");
727
826
  }
728
- return d;
827
+ return c;
729
828
  }
730
- function Qe(t) {
829
+ function lt(t) {
731
830
  Object.keys(t).forEach((e) => {
732
- _e(e) || (Ve(`invalid prop "${e}"`), delete t[e]);
831
+ tt(e) || (Qe(`invalid prop "${e}"`), delete t[e]);
733
832
  });
734
833
  }
735
- function f(t, e) {
834
+ function b(t, e) {
736
835
  const o = {
737
836
  $$css: !0,
738
837
  "debug::name": `html-${t}`
739
838
  };
740
- function n({
741
- ref: d,
742
- ...a
839
+ function r({
840
+ ref: c,
841
+ ...l
743
842
  }) {
744
843
  const {
745
- for: l,
844
+ for: a,
746
845
  style: i,
747
- ...r
748
- } = a, s = r;
749
- Qe(s), l != null && (s.htmlFor = l), a.role != null && (s.role = a.role === "none" ? "presentation" : a.role), t === "button" ? s.type = s.type ? s.type : "button" : (t === "input" || t === "textarea") && (s.dir = s.dir ? s.dir : "auto");
750
- const p = Ze([o, e, i]);
751
- return $(t, {
846
+ ...n
847
+ } = l, s = n;
848
+ lt(s), a != null && (s.htmlFor = a), l.role != null && (s.role = l.role === "none" ? "presentation" : l.role), t === "button" ? s.type = s.type ? s.type : "button" : (t === "input" || t === "textarea") && (s.dir = s.dir ? s.dir : "auto");
849
+ const u = st([o, e, i]);
850
+ return M(t, {
752
851
  ...s,
753
- ...p,
754
- ref: d
852
+ ...u,
853
+ ref: c
755
854
  });
756
855
  }
757
- return n.displayName = `html.${t}`, n;
856
+ return r.displayName = `html.${t}`, r;
758
857
  }
759
858
  const v = {
760
859
  block: {
@@ -824,116 +923,116 @@ const v = {
824
923
  "resize-kHenm0": "resize-x288g5",
825
924
  $$css: ".pnpm:web/index.js:276"
826
925
  }
827
- }, et = v.inline, tt = v.block, ot = v.block, nt = v.inline, rt = v.inline, it = v.inline, st = v.block, lt = null, at = [v.inlineblock, v.button], ct = [v.inline, v.codePre], dt = null, ut = v.block, pt = v.inline, xt = v.block, gt = v.block, ht = v.block, X = [v.block, v.heading], ft = v.block, mt = [v.block, v.hr], bt = v.inline, kt = v.img, vt = [v.inlineblock, v.input], yt = null, wt = null, Mt = v.inline, $t = v.block, Tt = v.block, Wt = v.inline, St = v.block, Ct = [v.list, v.block], jt = null, zt = null, Rt = v.block, Ht = [v.block, v.codePre], It = null, Lt = v.block, Pt = v.inlineblock, qt = v.inline, Et = [v.inline, v.strong], Ot = v.inline, Bt = v.inline, Dt = [v.inlineblock, v.textarea], At = null, Ft = [v.list, v.block], m = {
828
- a: et,
829
- article: tt,
830
- aside: ot,
831
- b: nt,
832
- bdi: rt,
833
- bdo: it,
834
- blockquote: st,
835
- br: lt,
836
- button: at,
837
- code: ct,
838
- del: dt,
839
- div: ut,
840
- em: pt,
841
- fieldset: xt,
842
- footer: gt,
843
- form: ht,
844
- h1: X,
845
- h2: X,
846
- h3: X,
847
- h4: X,
848
- h5: X,
849
- h6: X,
850
- header: ft,
851
- hr: mt,
852
- i: bt,
853
- img: kt,
854
- input: vt,
855
- ins: yt,
856
- kbd: wt,
857
- label: Mt,
858
- li: $t,
859
- main: Tt,
860
- mark: Wt,
861
- nav: St,
862
- ol: Ct,
863
- optgroup: jt,
864
- option: zt,
865
- p: Rt,
866
- pre: Ht,
867
- s: It,
868
- section: Lt,
869
- select: Pt,
870
- span: qt,
871
- strong: Et,
872
- sub: Ot,
873
- sup: Bt,
874
- textarea: Dt,
875
- u: At,
876
- ul: Ft
877
- }, Gt = f("a", m.a), Xt = f("article", m.article), Vt = f("aside", m.aside), Kt = f("b", m.b), _t = f("bdi", m.bdi), Nt = f("bdo", m.bdo), Yt = f("blockquote", m.blockquote), Ut = f("br", m.br), Jt = f("button", m.button), Zt = f("code", m.code), Qt = f("del", m.del), eo = f("div", m.div), to = f("em", m.em), oo = f("fieldset", m.fieldset), no = f("footer", m.footer), ro = f("form", m.form), io = f("h1", m.h1), so = f("h2", m.h2), lo = f("h3", m.h3), ao = f("h4", m.h4), co = f("h5", m.h5), uo = f("h6", m.h6), po = f("header", m.header), xo = f("hr", m.hr), go = f("i", m.i), ho = f("img", m.img), fo = f("input", m.input), mo = f("ins", m.ins), bo = f("kbd", m.kbd), ko = f("label", m.label), vo = f("li", m.li), yo = f("main", m.main), wo = f("mark", m.mark), Mo = f("nav", m.nav), $o = f("ol", m.ol), To = f("optgroup", m.optgroup), Wo = f("option", m.option), So = f("p", m.p), Co = f("pre", m.pre), jo = f("s", m.s), zo = f("section", m.section), Ro = f("select", m.select), Ho = f("span", m.span), Io = f("strong", m.strong), Lo = f("sub", m.sub), Po = f("sup", m.sup), qo = f("textarea", m.textarea), Eo = f("u", m.u), Oo = f("ul", m.ul);
878
- var Bo = /* @__PURE__ */ Object.freeze({
926
+ }, at = v.inline, ct = v.block, dt = v.block, ut = v.inline, pt = v.inline, xt = v.inline, gt = v.block, ht = null, bt = [v.inlineblock, v.button], ft = [v.inline, v.codePre], mt = null, kt = v.block, vt = v.inline, yt = v.block, wt = v.block, $t = v.block, V = [v.block, v.heading], Mt = v.block, Tt = [v.block, v.hr], Wt = v.inline, Ct = v.img, St = [v.inlineblock, v.input], Rt = null, jt = null, zt = v.inline, Ht = v.block, It = v.block, Lt = v.inline, qt = v.block, Pt = [v.list, v.block], Et = null, Bt = null, Ot = v.block, At = [v.block, v.codePre], Gt = null, Dt = v.block, Ft = v.inlineblock, Xt = v.inline, Vt = [v.inline, v.strong], Kt = v.inline, Nt = v.inline, _t = [v.inlineblock, v.textarea], Yt = null, Zt = [v.list, v.block], f = {
927
+ a: at,
928
+ article: ct,
929
+ aside: dt,
930
+ b: ut,
931
+ bdi: pt,
932
+ bdo: xt,
933
+ blockquote: gt,
934
+ br: ht,
935
+ button: bt,
936
+ code: ft,
937
+ del: mt,
938
+ div: kt,
939
+ em: vt,
940
+ fieldset: yt,
941
+ footer: wt,
942
+ form: $t,
943
+ h1: V,
944
+ h2: V,
945
+ h3: V,
946
+ h4: V,
947
+ h5: V,
948
+ h6: V,
949
+ header: Mt,
950
+ hr: Tt,
951
+ i: Wt,
952
+ img: Ct,
953
+ input: St,
954
+ ins: Rt,
955
+ kbd: jt,
956
+ label: zt,
957
+ li: Ht,
958
+ main: It,
959
+ mark: Lt,
960
+ nav: qt,
961
+ ol: Pt,
962
+ optgroup: Et,
963
+ option: Bt,
964
+ p: Ot,
965
+ pre: At,
966
+ s: Gt,
967
+ section: Dt,
968
+ select: Ft,
969
+ span: Xt,
970
+ strong: Vt,
971
+ sub: Kt,
972
+ sup: Nt,
973
+ textarea: _t,
974
+ u: Yt,
975
+ ul: Zt
976
+ }, Ut = b("a", f.a), Jt = b("article", f.article), Qt = b("aside", f.aside), eo = b("b", f.b), to = b("bdi", f.bdi), oo = b("bdo", f.bdo), ro = b("blockquote", f.blockquote), no = b("br", f.br), io = b("button", f.button), so = b("code", f.code), lo = b("del", f.del), ao = b("div", f.div), co = b("em", f.em), uo = b("fieldset", f.fieldset), po = b("footer", f.footer), xo = b("form", f.form), go = b("h1", f.h1), ho = b("h2", f.h2), bo = b("h3", f.h3), fo = b("h4", f.h4), mo = b("h5", f.h5), ko = b("h6", f.h6), vo = b("header", f.header), yo = b("hr", f.hr), wo = b("i", f.i), $o = b("img", f.img), Mo = b("input", f.input), To = b("ins", f.ins), Wo = b("kbd", f.kbd), Co = b("label", f.label), So = b("li", f.li), Ro = b("main", f.main), jo = b("mark", f.mark), zo = b("nav", f.nav), Ho = b("ol", f.ol), Io = b("optgroup", f.optgroup), Lo = b("option", f.option), qo = b("p", f.p), Po = b("pre", f.pre), Eo = b("s", f.s), Bo = b("section", f.section), Oo = b("select", f.select), Ao = b("span", f.span), Go = b("strong", f.strong), Do = b("sub", f.sub), Fo = b("sup", f.sup), Xo = b("textarea", f.textarea), Vo = b("u", f.u), Ko = b("ul", f.ul);
977
+ var No = /* @__PURE__ */ Object.freeze({
879
978
  __proto__: null,
880
- a: Gt,
881
- article: Xt,
882
- aside: Vt,
883
- b: Kt,
884
- bdi: _t,
885
- bdo: Nt,
886
- blockquote: Yt,
887
- br: Ut,
888
- button: Jt,
889
- code: Zt,
890
- del: Qt,
891
- div: eo,
892
- em: to,
893
- fieldset: oo,
894
- footer: no,
895
- form: ro,
896
- h1: io,
897
- h2: so,
898
- h3: lo,
899
- h4: ao,
900
- h5: co,
901
- h6: uo,
902
- header: po,
903
- hr: xo,
904
- i: go,
905
- img: ho,
906
- input: fo,
907
- ins: mo,
908
- kbd: bo,
909
- label: ko,
910
- li: vo,
911
- main: yo,
912
- mark: wo,
913
- nav: Mo,
914
- ol: $o,
915
- optgroup: To,
916
- option: Wo,
917
- p: So,
918
- pre: Co,
919
- s: jo,
920
- section: zo,
921
- select: Ro,
922
- span: Ho,
923
- strong: Io,
924
- sub: Lo,
925
- sup: Po,
926
- textarea: qo,
927
- u: Eo,
928
- ul: Oo
979
+ a: Ut,
980
+ article: Jt,
981
+ aside: Qt,
982
+ b: eo,
983
+ bdi: to,
984
+ bdo: oo,
985
+ blockquote: ro,
986
+ br: no,
987
+ button: io,
988
+ code: so,
989
+ del: lo,
990
+ div: ao,
991
+ em: co,
992
+ fieldset: uo,
993
+ footer: po,
994
+ form: xo,
995
+ h1: go,
996
+ h2: ho,
997
+ h3: bo,
998
+ h4: fo,
999
+ h5: mo,
1000
+ h6: ko,
1001
+ header: vo,
1002
+ hr: yo,
1003
+ i: wo,
1004
+ img: $o,
1005
+ input: Mo,
1006
+ ins: To,
1007
+ kbd: Wo,
1008
+ label: Co,
1009
+ li: So,
1010
+ main: Ro,
1011
+ mark: jo,
1012
+ nav: zo,
1013
+ ol: Ho,
1014
+ optgroup: Io,
1015
+ option: Lo,
1016
+ p: qo,
1017
+ pre: Po,
1018
+ s: Eo,
1019
+ section: Bo,
1020
+ select: Oo,
1021
+ span: Ao,
1022
+ strong: Go,
1023
+ sub: Do,
1024
+ sup: Fo,
1025
+ textarea: Xo,
1026
+ u: Vo,
1027
+ ul: Ko
929
1028
  });
930
- const ln = {
1029
+ const gr = {
931
1030
  xs: 480,
932
1031
  sm: 640,
933
1032
  md: 768,
934
1033
  lg: 1024,
935
1034
  xl: 1280
936
- }, M = {
1035
+ }, $ = {
937
1036
  container: {
938
1037
  "containerType-k9g6sI": "containerType-x12h1iku",
939
1038
  "display-k1xSpc": "display-x78zum5",
@@ -1142,278 +1241,284 @@ const ln = {
1142
1241
  "--x-1pds3uo": t ?? void 0,
1143
1242
  "--x-1n5740v": e ?? void 0
1144
1243
  }]
1145
- }, ke = F(null);
1146
- function Q() {
1147
- const t = A(ke);
1244
+ }, we = G(null);
1245
+ function te() {
1246
+ const t = A(we);
1148
1247
  if (!t)
1149
1248
  throw new Error("Table compound components must be used within Table.Root");
1150
1249
  return t;
1151
1250
  }
1152
- const oe = F(!1);
1153
- function Do(t) {
1154
- const e = R.c(2), {
1251
+ const re = G(!1);
1252
+ function _o(t) {
1253
+ const e = I.c(2), {
1155
1254
  children: o
1156
1255
  } = t;
1157
- let n;
1158
- return e[0] !== o ? (n = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:55", ...W(S.div, M.container), children: o }), e[0] = o, e[1] = n) : n = e[1], n;
1256
+ let r;
1257
+ return e[0] !== o ? (r = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:55", ...W(C.div, $.container), children: o }), e[0] = o, e[1] = r) : r = e[1], r;
1159
1258
  }
1160
- function Ao(t) {
1259
+ function Yo(t) {
1161
1260
  let e = "";
1162
- return J.forEach(t, (o) => {
1261
+ return Q.forEach(t, (o) => {
1163
1262
  (typeof o == "string" || typeof o == "number") && (e += String(o));
1164
1263
  }), e;
1165
1264
  }
1166
- function Fo(t) {
1265
+ function Zo(t) {
1167
1266
  let e = t;
1168
1267
  for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
1169
- const n = e.type ?? e.render;
1170
- if (n == null) break;
1171
- e = n;
1268
+ const r = e.type ?? e.render;
1269
+ if (r == null) break;
1270
+ e = r;
1172
1271
  }
1173
1272
  return e;
1174
1273
  }
1175
- function Go(t, e) {
1176
- const o = [], n = [], d = [];
1177
- function a(l) {
1178
- J.forEach(l, (i) => {
1179
- if (!we(i)) return;
1180
- const r = i.props, s = Fo(i.type), p = s?.displayName || s?.name || "";
1181
- if (s === re || p === "HeaderCell") {
1182
- const c = r.width ? String(ce(r.width)) : `minmax(${he(e)}, 1fr)`;
1183
- o.push(c), n.push(r.compactWidth ? String(ce(r.compactWidth)) : c);
1184
- const u = typeof r.label == "string" ? r.label : void 0, x = Ao(r.children).trim(), g = u ?? x;
1185
- !u && x === "" && r.children != null && pe("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), d.push(g);
1186
- } else r.children && a(r.children);
1274
+ function Uo(t, e) {
1275
+ const o = [], r = [], c = [];
1276
+ function l(a) {
1277
+ Q.forEach(a, (i) => {
1278
+ if (!Te(i)) return;
1279
+ const n = i.props, s = Zo(i.type), u = s?.displayName || s?.name || "";
1280
+ if (s === ie || u === "HeaderCell") {
1281
+ const p = n.width ? String(de(n.width)) : `minmax(${me(e)}, 1fr)`;
1282
+ o.push(p), r.push(n.compactWidth ? String(de(n.compactWidth)) : p);
1283
+ const d = typeof n.label == "string" ? n.label : void 0, x = Yo(n.children).trim(), g = d ?? x;
1284
+ !d && x === "" && n.children != null && he("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(g);
1285
+ } else n.children && l(n.children);
1187
1286
  });
1188
1287
  }
1189
- return a(t), {
1288
+ return l(t), {
1190
1289
  template: o.join(" "),
1191
- compactTemplate: n.join(" "),
1192
- labels: d
1290
+ compactTemplate: r.join(" "),
1291
+ labels: c
1193
1292
  };
1194
1293
  }
1195
- function Xo(t) {
1196
- const e = R.c(13), {
1294
+ function Jo(t) {
1295
+ const e = I.c(13), {
1197
1296
  children: o
1198
- } = t, n = L(null);
1199
- let d;
1200
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
1297
+ } = t, r = q(null);
1298
+ let c;
1299
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
1201
1300
  start: !1,
1202
1301
  end: !1
1203
- }, e[0] = d) : d = e[0];
1204
- const [a, l] = N(d);
1205
- let i, r;
1302
+ }, e[0] = c) : c = e[0];
1303
+ const [l, a] = Z(c);
1304
+ let i, n;
1206
1305
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
1207
- const h = n.current;
1306
+ const h = r.current;
1208
1307
  if (!h)
1209
1308
  return;
1210
- const b = () => {
1309
+ const m = () => {
1211
1310
  const k = h.scrollWidth - h.clientWidth > 1;
1212
- l({
1311
+ a({
1213
1312
  start: k && h.scrollLeft > 1,
1214
1313
  end: k && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
1215
1314
  });
1216
1315
  };
1217
- b(), h.addEventListener("scroll", b, {
1316
+ m(), h.addEventListener("scroll", m, {
1218
1317
  passive: !0
1219
1318
  });
1220
- const y = typeof ResizeObserver < "u" ? new ResizeObserver(b) : null;
1319
+ const y = typeof ResizeObserver < "u" ? new ResizeObserver(m) : null;
1221
1320
  return y?.observe(h), () => {
1222
- h.removeEventListener("scroll", b), y?.disconnect();
1321
+ h.removeEventListener("scroll", m), y?.disconnect();
1223
1322
  };
1224
- }, r = [], e[1] = i, e[2] = r) : (i = e[1], r = e[2]), D(i, r);
1323
+ }, n = [], e[1] = i, e[2] = n) : (i = e[1], n = e[2]), F(i, n);
1225
1324
  let s;
1226
- e[3] !== o ? (s = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:196", ref: n, ...W(S.div, M.scrollX), children: o }), e[3] = o, e[4] = s) : s = e[4];
1227
- const p = a.start && M.edgeFadeVisible;
1228
- let c;
1229
- e[5] !== p ? (c = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...W(S.div, M.edgeFade, M.edgeFadeLeft, p) }), e[5] = p, e[6] = c) : c = e[6];
1230
- const u = a.end && M.edgeFadeVisible;
1325
+ e[3] !== o ? (s = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...W(C.div, $.scrollX), children: o }), e[3] = o, e[4] = s) : s = e[4];
1326
+ const u = l.start && $.edgeFadeVisible;
1327
+ let p;
1328
+ e[5] !== u ? (p = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...W(C.div, $.edgeFade, $.edgeFadeLeft, u) }), e[5] = u, e[6] = p) : p = e[6];
1329
+ const d = l.end && $.edgeFadeVisible;
1231
1330
  let x;
1232
- e[7] !== u ? (x = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...W(S.div, M.edgeFade, M.edgeFadeRight, u) }), e[7] = u, e[8] = x) : x = e[8];
1331
+ e[7] !== d ? (x = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...W(C.div, $.edgeFade, $.edgeFadeRight, d) }), e[7] = d, e[8] = x) : x = e[8];
1233
1332
  let g;
1234
- return e[9] !== s || e[10] !== c || e[11] !== x ? (g = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:195", ...W(S.div, M.scrollFrame), children: [
1333
+ return e[9] !== s || e[10] !== p || e[11] !== x ? (g = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:195", ...W(C.div, $.scrollFrame), children: [
1235
1334
  s,
1236
- c,
1335
+ p,
1237
1336
  x
1238
- ] }), e[9] = s, e[10] = c, e[11] = x, e[12] = g) : g = e[12], g;
1337
+ ] }), e[9] = s, e[10] = p, e[11] = x, e[12] = g) : g = e[12], g;
1239
1338
  }
1240
- function Vo({
1339
+ function Qo({
1241
1340
  children: t,
1242
1341
  variant: e = "default",
1243
1342
  size: o = "md",
1244
- responsive: n = !0,
1245
- minColumnWidth: d = "labelMinW",
1246
- sortChip: a,
1247
- pagination: l
1343
+ responsive: r = !0,
1344
+ minColumnWidth: c = "labelMinW",
1345
+ sortChip: l,
1346
+ pagination: a
1248
1347
  }) {
1249
- const i = L(null), {
1250
- template: r,
1348
+ const i = q(null), {
1349
+ template: n,
1251
1350
  compactTemplate: s,
1252
- labels: p
1253
- } = Go(t, d);
1254
- r && (i.current = r);
1255
- const c = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
1256
- S.div,
1257
- M.root,
1351
+ labels: u
1352
+ } = Uo(t, c);
1353
+ n && (i.current = n);
1354
+ const p = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
1355
+ C.div,
1356
+ $.root,
1258
1357
  // When responsive, use gridColumnsResponsive so the explicit column
1259
1358
  // template and the stack-mode @container override live in one StyleX
1260
1359
  // style object. Splitting them across two styles (gridColumns +
1261
1360
  // rootResponsive) causes StyleX conflict resolution to drop the
1262
1361
  // column template because rootResponsive's gridTemplateColumns key
1263
1362
  // always wins as the later entry in the array.
1264
- r ? n ? M.gridColumnsResponsive(r, s) : M.gridColumns(r) : void 0,
1265
- n && M.rootResponsive
1266
- ), children: t }), x = /* @__PURE__ */ U(ye, { children: [
1267
- a,
1268
- n ? /* @__PURE__ */ $(Xo, { children: c }) : c,
1269
- l
1363
+ n ? r ? $.gridColumnsResponsive(n, s) : $.gridColumns(n) : void 0,
1364
+ r && $.rootResponsive
1365
+ ), children: t }), x = /* @__PURE__ */ U(Me, { children: [
1366
+ l,
1367
+ r ? /* @__PURE__ */ M(Jo, { children: p }) : p,
1368
+ a
1270
1369
  ] });
1271
- return /* @__PURE__ */ $(ke.Provider, { value: {
1370
+ return /* @__PURE__ */ M(we.Provider, { value: {
1272
1371
  variant: e,
1273
1372
  size: o,
1274
- responsive: n,
1275
- labels: p,
1373
+ responsive: r,
1374
+ labels: u,
1276
1375
  inferredTemplateRef: i
1277
- }, children: n ? /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:299", ...W(S.div, M.rootContainer), children: x }) : x });
1376
+ }, children: r ? /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:299", ...W(C.div, $.rootContainer), children: x }) : x });
1278
1377
  }
1279
- function Ko(t) {
1280
- const e = R.c(2), {
1378
+ function er(t) {
1379
+ const e = I.c(2), {
1281
1380
  children: o
1282
1381
  } = t;
1283
- let n;
1284
- return e[0] !== o ? (n = /* @__PURE__ */ $(oe.Provider, { value: !0, children: /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...W(S.div, M.header), children: o }) }), e[0] = o, e[1] = n) : n = e[1], n;
1382
+ let r;
1383
+ return e[0] !== o ? (r = /* @__PURE__ */ M(re.Provider, { value: !0, children: /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...W(C.div, $.header), children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
1285
1384
  }
1286
- function _o(t) {
1287
- const e = R.c(19), {
1385
+ function tr(t) {
1386
+ const e = I.c(19), {
1288
1387
  children: o
1289
1388
  } = t, {
1290
- variant: n
1291
- } = Q();
1292
- let d, a, l, i, r, s;
1293
- if (e[0] !== o || e[1] !== n) {
1294
- const u = J.toArray(o);
1295
- a = oe.Provider, s = !1, d = Bo.div, l = "rowgroup", i = M.body;
1389
+ variant: r
1390
+ } = te();
1391
+ let c, l, a, i, n, s;
1392
+ if (e[0] !== o || e[1] !== r) {
1393
+ const d = Q.toArray(o);
1394
+ l = re.Provider, s = !1, c = No.div, a = "rowgroup", i = $.body;
1296
1395
  let x;
1297
- e[8] !== n ? (x = (g, h) => n !== "striped" ? g : /* @__PURE__ */ $(ve.Provider, { value: h, children: g }, g.key ?? h), e[8] = n, e[9] = x) : x = e[9], r = u.map(x), e[0] = o, e[1] = n, e[2] = d, e[3] = a, e[4] = l, e[5] = i, e[6] = r, e[7] = s;
1396
+ e[8] !== r ? (x = (g, h) => r !== "striped" ? g : /* @__PURE__ */ M($e.Provider, { value: h, children: g }, g.key ?? h), e[8] = r, e[9] = x) : x = e[9], n = d.map(x), e[0] = o, e[1] = r, e[2] = c, e[3] = l, e[4] = a, e[5] = i, e[6] = n, e[7] = s;
1298
1397
  } else
1299
- d = e[2], a = e[3], l = e[4], i = e[5], r = e[6], s = e[7];
1398
+ c = e[2], l = e[3], a = e[4], i = e[5], n = e[6], s = e[7];
1399
+ let u;
1400
+ e[10] !== c || e[11] !== a || e[12] !== i || e[13] !== n ? (u = /* @__PURE__ */ M(c, { role: a, style: i, children: n }), e[10] = c, e[11] = a, e[12] = i, e[13] = n, e[14] = u) : u = e[14];
1300
1401
  let p;
1301
- e[10] !== d || e[11] !== l || e[12] !== i || e[13] !== r ? (p = /* @__PURE__ */ $(d, { role: l, style: i, children: r }), e[10] = d, e[11] = l, e[12] = i, e[13] = r, e[14] = p) : p = e[14];
1302
- let c;
1303
- return e[15] !== a || e[16] !== s || e[17] !== p ? (c = /* @__PURE__ */ $(a, { value: s, children: p }), e[15] = a, e[16] = s, e[17] = p, e[18] = c) : c = e[18], c;
1402
+ return e[15] !== l || e[16] !== s || e[17] !== u ? (p = /* @__PURE__ */ M(l, { value: s, children: u }), e[15] = l, e[16] = s, e[17] = u, e[18] = p) : p = e[18], p;
1304
1403
  }
1305
- const ve = F(-1), No = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1306
- function Yo(t) {
1307
- const e = R.c(17), {
1404
+ const $e = G(-1), or = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1405
+ function rr(t) {
1406
+ const e = I.c(17), {
1308
1407
  children: o,
1309
- onClick: n,
1310
- "aria-label": d
1408
+ onClick: r,
1409
+ "aria-label": c
1311
1410
  } = t, {
1312
- variant: a
1313
- } = Q(), l = A(oe), i = A(ve), r = i >= 0 && i % 2 === 1;
1411
+ variant: l
1412
+ } = te(), a = A(re), i = A($e), n = i >= 0 && i % 2 === 1;
1314
1413
  let s;
1315
- if (e[0] !== d || e[1] !== o || e[2] !== r || e[3] !== l || e[4] !== n || e[5] !== a) {
1316
- const p = J.toArray(o), c = n !== void 0 && !l;
1317
- let u;
1318
- e[7] !== c || e[8] !== n ? (u = c ? (k) => {
1414
+ if (e[0] !== c || e[1] !== o || e[2] !== n || e[3] !== a || e[4] !== r || e[5] !== l) {
1415
+ const u = Q.toArray(o), p = r !== void 0 && !a;
1416
+ let d;
1417
+ e[7] !== p || e[8] !== r ? (d = p ? (k) => {
1319
1418
  const w = k.target;
1320
- w instanceof Element && w.closest(No) || n();
1321
- } : void 0, e[7] = c, e[8] = n, e[9] = u) : u = e[9];
1419
+ w instanceof Element && w.closest(or) || r();
1420
+ } : void 0, e[7] = p, e[8] = r, e[9] = d) : d = e[9];
1322
1421
  let x;
1323
- e[10] !== c || e[11] !== n ? (x = c ? (k) => {
1324
- (k.key === "Enter" || k.key === " ") && n();
1325
- } : void 0, e[10] = c, e[11] = n, e[12] = x) : x = e[12];
1326
- const g = !l && M.bodyRow, h = !l && a === "striped" && r && M.stripedEven, b = c && M.clickableRow;
1422
+ e[10] !== p || e[11] !== r ? (x = p ? (k) => {
1423
+ (k.key === "Enter" || k.key === " ") && r();
1424
+ } : void 0, e[10] = p, e[11] = r, e[12] = x) : x = e[12];
1425
+ const g = !a && $.bodyRow, h = !a && l === "striped" && n && $.stripedEven, m = p && $.clickableRow;
1327
1426
  let y;
1328
- e[13] !== g || e[14] !== h || e[15] !== b ? (y = [M.row, g, h, b], e[13] = g, e[14] = h, e[15] = b, e[16] = y) : y = e[16], s = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: c ? 0 : void 0, "aria-label": c ? d : void 0, onClick: u, onKeyDown: x, ...W(S.div, y), children: p.map((k, w) => /* @__PURE__ */ $(ne.Provider, { value: {
1427
+ e[13] !== g || e[14] !== h || e[15] !== m ? (y = [$.row, g, h, m], e[13] = g, e[14] = h, e[15] = m, e[16] = y) : y = e[16], s = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: p ? 0 : void 0, "aria-label": p ? c : void 0, onClick: d, onKeyDown: x, ...W(C.div, y), children: u.map((k, w) => /* @__PURE__ */ M(ne.Provider, { value: {
1329
1428
  index: w,
1330
- total: p.length
1331
- }, children: k }, k.key ?? w)) }), e[0] = d, e[1] = o, e[2] = r, e[3] = l, e[4] = n, e[5] = a, e[6] = s;
1429
+ total: u.length
1430
+ }, children: k }, k.key ?? w)) }), e[0] = c, e[1] = o, e[2] = n, e[3] = a, e[4] = r, e[5] = l, e[6] = s;
1332
1431
  } else
1333
1432
  s = e[6];
1334
1433
  return s;
1335
1434
  }
1336
- const ne = F({
1435
+ const ne = G({
1337
1436
  index: 0,
1338
1437
  total: 0
1339
1438
  });
1340
- function re(t) {
1341
- const e = R.c(8), {
1439
+ function ie(t) {
1440
+ const e = I.c(8), {
1342
1441
  children: o,
1343
- "aria-label": n
1442
+ "aria-label": r
1344
1443
  } = t, {
1345
- size: d,
1346
- variant: a
1347
- } = Q(), {
1348
- index: l,
1444
+ size: c,
1445
+ variant: l
1446
+ } = te(), {
1447
+ index: a,
1349
1448
  total: i
1350
- } = A(ne), r = a === "bordered" && l === i - 1, s = d === "sm" ? M.cellSm : M.cellMd, p = a === "bordered" && M.borderedCell, c = r && M.borderedCellLast;
1351
- let u;
1352
- e[0] !== s || e[1] !== p || e[2] !== c ? (u = [M.headerCell, s, p, c], e[0] = s, e[1] = p, e[2] = c, e[3] = u) : u = e[3];
1449
+ } = A(ne), n = l === "bordered" && a === i - 1, s = c === "sm" ? $.cellSm : $.cellMd, u = l === "bordered" && $.borderedCell, p = n && $.borderedCellLast;
1450
+ let d;
1451
+ e[0] !== s || e[1] !== u || e[2] !== p ? (d = [$.headerCell, s, u, p], e[0] = s, e[1] = u, e[2] = p, e[3] = d) : d = e[3];
1353
1452
  let x;
1354
- return e[4] !== n || e[5] !== o || e[6] !== u ? (x = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": n, ...W(S.div, u), children: o }), e[4] = n, e[5] = o, e[6] = u, e[7] = x) : x = e[7], x;
1453
+ return e[4] !== r || e[5] !== o || e[6] !== d ? (x = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...W(C.div, d), children: o }), e[4] = r, e[5] = o, e[6] = d, e[7] = x) : x = e[7], x;
1355
1454
  }
1356
- re.displayName = "HeaderCell";
1357
- function Uo(t) {
1358
- const e = R.c(16), {
1455
+ ie.displayName = "HeaderCell";
1456
+ function nr(t) {
1457
+ const e = I.c(16), {
1359
1458
  children: o,
1360
- isActions: n
1459
+ isActions: r
1361
1460
  } = t, {
1362
- size: d,
1363
- variant: a,
1364
- labels: l,
1461
+ size: c,
1462
+ variant: l,
1463
+ labels: a,
1365
1464
  responsive: i
1366
- } = Q(), {
1367
- index: r,
1465
+ } = te(), {
1466
+ index: n,
1368
1467
  total: s
1369
- } = A(ne), p = a === "bordered" && r === s - 1, c = l[r] ?? "", u = d === "sm" ? M.cellSm : M.cellMd, x = a === "bordered" && M.borderedCell, g = p && M.borderedCellLast, h = n && M.cellActions;
1370
- let b;
1371
- e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (b = [M.cell, u, x, g, h], e[0] = u, e[1] = x, e[2] = g, e[3] = h, e[4] = b) : b = e[4];
1468
+ } = A(ne), u = l === "bordered" && n === s - 1, p = a[n] ?? "", d = c === "sm" ? $.cellSm : $.cellMd, x = l === "bordered" && $.borderedCell, g = u && $.borderedCellLast, h = r && $.cellActions;
1469
+ let m;
1470
+ e[0] !== d || e[1] !== x || e[2] !== g || e[3] !== h ? (m = [$.cell, d, x, g, h], e[0] = d, e[1] = x, e[2] = g, e[3] = h, e[4] = m) : m = e[4];
1372
1471
  let y;
1373
- e[5] !== n || e[6] !== c || e[7] !== i ? (y = i && !n && c !== "" ? /* @__PURE__ */ $("span", { "data-element-src": "Table/Table.tsx:507", ...W(S.span, M.cellLabel), children: c }) : null, e[5] = n, e[6] = c, e[7] = i, e[8] = y) : y = e[8];
1472
+ e[5] !== r || e[6] !== p || e[7] !== i ? (y = i && !r && p !== "" ? /* @__PURE__ */ M("span", { "data-element-src": "Table/Table.tsx:507", ...W(C.span, $.cellLabel), children: p }) : null, e[5] = r, e[6] = p, e[7] = i, e[8] = y) : y = e[8];
1374
1473
  let k;
1375
- e[9] !== o || e[10] !== n ? (k = n ? o : /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:509", ...W(S.div, M.cellValue), children: o }), e[9] = o, e[10] = n, e[11] = k) : k = e[11];
1474
+ e[9] !== o || e[10] !== r ? (k = r ? o : /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:509", ...W(C.div, $.cellValue), children: o }), e[9] = o, e[10] = r, e[11] = k) : k = e[11];
1376
1475
  let w;
1377
- return e[12] !== b || e[13] !== y || e[14] !== k ? (w = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...W(S.div, b), children: [
1476
+ return e[12] !== m || e[13] !== y || e[14] !== k ? (w = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...W(C.div, m), children: [
1378
1477
  y,
1379
1478
  k
1380
- ] }), e[12] = b, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
1479
+ ] }), e[12] = m, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
1381
1480
  }
1382
- const Jo = {
1481
+ const ir = {
1383
1482
  /** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
1384
- Container: Do,
1385
- Root: Vo,
1386
- Header: Ko,
1387
- Body: _o,
1388
- Row: Yo,
1389
- HeaderCell: re,
1390
- Cell: Uo
1391
- }, an = Jo;
1483
+ Container: _o,
1484
+ Root: Qo,
1485
+ Header: er,
1486
+ Body: tr,
1487
+ Row: rr,
1488
+ HeaderCell: ie,
1489
+ Cell: nr
1490
+ }, hr = ir;
1392
1491
  export {
1393
- _o as B,
1394
- Uo as C,
1395
- on as D,
1396
- re as H,
1397
- nn as I,
1398
- sn as M,
1399
- qe as P,
1400
- Yo as R,
1401
- $e as S,
1402
- rn as T,
1403
- Ee as a,
1404
- ce as b,
1405
- Pe as c,
1406
- pe as d,
1407
- ln as e,
1408
- an as f,
1409
- M as g,
1410
- Ko as h,
1411
- Ie as i,
1412
- Vo as j,
1413
- _ as k,
1414
- Jo as l,
1415
- he as r,
1416
- xe as s,
1417
- Re as u
1492
+ xe as B,
1493
+ Oe as C,
1494
+ dr as D,
1495
+ ie as H,
1496
+ ur as I,
1497
+ xr as M,
1498
+ Xe as P,
1499
+ rr as R,
1500
+ Ce as S,
1501
+ pr as T,
1502
+ Be as a,
1503
+ Ve as b,
1504
+ Fe as c,
1505
+ he as d,
1506
+ Re as e,
1507
+ je as f,
1508
+ pe as g,
1509
+ de as h,
1510
+ Ge as i,
1511
+ gr as j,
1512
+ hr as k,
1513
+ $ as l,
1514
+ er as m,
1515
+ tr as n,
1516
+ Qo as o,
1517
+ nr as p,
1518
+ _ as q,
1519
+ me as r,
1520
+ be as s,
1521
+ ir as t,
1522
+ He as u
1418
1523
  };
1419
- //# sourceMappingURL=Table-C70zdSkM.js.map
1524
+ //# sourceMappingURL=Table-Cm5cCnZD.js.map