@duro-app/ui 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Table-C70zdSkM.js → Table-Cm5cCnZD.js} +730 -625
- package/dist/Table-Cm5cCnZD.js.map +1 -0
- package/dist/components/ActionBar/styles.css.d.ts +1 -1
- package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +3 -0
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Badge/styles.css.d.ts +4 -0
- package/dist/components/Badge/styles.css.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +9 -2
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.meta.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +19 -0
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroupContext.d.ts +13 -0
- package/dist/components/ButtonGroup/ButtonGroupContext.d.ts.map +1 -0
- package/dist/components/ButtonGroup/attached.css.d.ts +34 -0
- package/dist/components/ButtonGroup/attached.css.d.ts.map +1 -0
- package/dist/components/ButtonGroup/styles.css.d.ts +7 -0
- package/dist/components/ButtonGroup/styles.css.d.ts.map +1 -1
- package/dist/components/ButtonGroup/useGroupedControl.d.ts +25 -0
- package/dist/components/ButtonGroup/useGroupedControl.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css.d.ts +2 -2
- package/dist/components/Dialog/styles.css.d.ts.map +1 -1
- package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/components/DragDrop/styles.css.d.ts +1 -1
- package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.d.ts +2 -2
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css.d.ts +1 -1
- package/dist/components/Listbox/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/styles.css.d.ts +1 -1
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +7 -2
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/styles.css.d.ts +4 -1
- package/dist/components/Popover/styles.css.d.ts.map +1 -1
- package/dist/components/ScrollArea/styles.css.d.ts +1 -1
- package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.stories.d.ts +2 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/styles.css.d.ts +2 -2
- package/dist/components/Select/styles.css.d.ts.map +1 -1
- package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
- package/dist/components/ThemeProvider/Layers.stories.d.ts +24 -0
- package/dist/components/ThemeProvider/Layers.stories.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/Toast/styles.css.d.ts +1 -0
- package/dist/components/Toast/styles.css.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/styles.css.d.ts +3 -0
- package/dist/components/Toggle/styles.css.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/components/ToggleGroup/styles.css.d.ts +5 -0
- package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
- package/dist/components/Toolbar/ControlContextBoundary.d.ts +10 -0
- package/dist/components/Toolbar/ControlContextBoundary.d.ts.map +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +22 -0
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/components/Toolbar/Toolbar.meta.d.ts +3 -0
- package/dist/components/Toolbar/Toolbar.meta.d.ts.map +1 -0
- package/dist/components/Toolbar/Toolbar.stories.d.ts +28 -0
- package/dist/components/Toolbar/Toolbar.stories.d.ts.map +1 -0
- package/dist/components/Toolbar/ToolbarContext.d.ts +10 -0
- package/dist/components/Toolbar/ToolbarContext.d.ts.map +1 -0
- package/dist/components/Toolbar/styles.css.d.ts +16 -0
- package/dist/components/Toolbar/styles.css.d.ts.map +1 -0
- package/dist/components/Tooltip/styles.css.d.ts +1 -1
- package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
- package/dist/components/VirtualTable/styles.css.d.ts +1 -1
- package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3164 -2917
- package/dist/index.js.map +1 -1
- package/dist/shared/ModalContext.d.ts +14 -0
- package/dist/shared/ModalContext.d.ts.map +1 -0
- package/dist/shared/mergeRefs.d.ts +4 -0
- package/dist/shared/mergeRefs.d.ts.map +1 -0
- package/dist/shared/useOrderedRegistry.d.ts +26 -0
- package/dist/shared/useOrderedRegistry.d.ts.map +1 -0
- package/dist/table.js +45 -45
- package/dist/table.js.map +1 -1
- package/package.json +2 -2
- package/src/components/ActionBar/styles.css.ts +2 -1
- package/src/components/Badge/Badge.stories.tsx +62 -1
- package/src/components/Badge/Badge.tsx +1 -1
- package/src/components/Badge/styles.css.ts +5 -0
- package/src/components/Button/Button.tsx +7 -1
- package/src/components/ButtonGroup/ButtonGroup.meta.ts +14 -1
- package/src/components/ButtonGroup/ButtonGroup.stories.tsx +271 -1
- package/src/components/ButtonGroup/ButtonGroup.tsx +46 -14
- package/src/components/ButtonGroup/ButtonGroupContext.ts +19 -0
- package/src/components/ButtonGroup/attached.css.ts +44 -0
- package/src/components/ButtonGroup/styles.css.ts +8 -0
- package/src/components/ButtonGroup/useGroupedControl.ts +75 -0
- package/src/components/Dialog/Dialog.tsx +5 -1
- package/src/components/Dialog/styles.css.ts +3 -2
- package/src/components/DragDrop/DragDrop.tsx +15 -8
- package/src/components/DragDrop/styles.css.ts +4 -1
- package/src/components/Drawer/Drawer.tsx +5 -1
- package/src/components/Drawer/styles.css.ts +3 -2
- package/src/components/Listbox/styles.css.ts +2 -1
- package/src/components/Menu/Menu.tsx +10 -3
- package/src/components/Menu/styles.css.ts +2 -1
- package/src/components/Popover/Popover.tsx +26 -5
- package/src/components/Popover/styles.css.ts +9 -1
- package/src/components/ScrollArea/styles.css.ts +2 -1
- package/src/components/Select/Select.stories.tsx +20 -1
- package/src/components/Select/Select.tsx +9 -3
- package/src/components/Select/styles.css.ts +3 -2
- package/src/components/Select/useSelectRoot.ts +17 -0
- package/src/components/ThemeProvider/Layers.stories.tsx +379 -0
- package/src/components/ThemeProvider/ThemeProvider.tsx +4 -2
- package/src/components/Toast/styles.css.ts +3 -0
- package/src/components/Toggle/Toggle.tsx +20 -4
- package/src/components/Toggle/styles.css.ts +6 -0
- package/src/components/ToggleGroup/ToggleGroup.tsx +16 -4
- package/src/components/ToggleGroup/styles.css.ts +7 -0
- package/src/components/Toolbar/ControlContextBoundary.tsx +16 -0
- package/src/components/Toolbar/Toolbar.meta.ts +48 -0
- package/src/components/Toolbar/Toolbar.stories.tsx +468 -0
- package/src/components/Toolbar/Toolbar.tsx +113 -0
- package/src/components/Toolbar/ToolbarContext.ts +15 -0
- package/src/components/Toolbar/styles.css.ts +17 -0
- package/src/components/Tooltip/styles.css.ts +2 -1
- package/src/components/VirtualTable/styles.css.ts +2 -1
- package/src/index.ts +2 -1
- package/src/shared/ModalContext.ts +18 -0
- package/src/shared/mergeRefs.ts +11 -0
- package/src/shared/useOrderedRegistry.ts +57 -0
- package/dist/Table-C70zdSkM.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
29
|
+
}, ur = {
|
|
30
30
|
sm: _.iconSm,
|
|
31
31
|
md: _.iconMd,
|
|
32
32
|
lg: _.iconLg,
|
|
33
33
|
xl: _.iconXl,
|
|
34
34
|
xxl: _.iconXxl
|
|
35
|
-
},
|
|
36
|
-
|
|
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
|
-
},
|
|
135
|
+
}, Le = {
|
|
39
136
|
x13v825q: "x1jk1o70 x13v825q",
|
|
40
137
|
$$css: !0
|
|
41
|
-
},
|
|
42
|
-
xjvd03b: "
|
|
138
|
+
}, qe = {
|
|
139
|
+
xjvd03b: "x1kpt2hd xjvd03b",
|
|
43
140
|
$$css: !0
|
|
44
|
-
},
|
|
141
|
+
}, Pe = {
|
|
45
142
|
x13v825q: "xc8o4hb x13v825q",
|
|
46
143
|
$$css: !0
|
|
47
|
-
},
|
|
48
|
-
light: [
|
|
49
|
-
"high-contrast": [
|
|
50
|
-
},
|
|
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:
|
|
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-
|
|
64
|
-
$$css: "ThemeProvider/ThemeProvider.tsx:
|
|
160
|
+
"zIndex-kY2c9j": "zIndex-x3z26px",
|
|
161
|
+
$$css: "ThemeProvider/ThemeProvider.tsx:29"
|
|
65
162
|
}
|
|
66
|
-
},
|
|
67
|
-
function
|
|
68
|
-
return A(
|
|
163
|
+
}, ge = G(null);
|
|
164
|
+
function Be() {
|
|
165
|
+
return A(ge);
|
|
69
166
|
}
|
|
70
|
-
function
|
|
71
|
-
const e =
|
|
167
|
+
function pr(t) {
|
|
168
|
+
const e = I.c(11), {
|
|
72
169
|
theme: o,
|
|
73
|
-
children:
|
|
74
|
-
} = t,
|
|
75
|
-
let
|
|
76
|
-
e[0] !==
|
|
77
|
-
const s =
|
|
78
|
-
let
|
|
79
|
-
e[3] !==
|
|
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__ */
|
|
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] !==
|
|
84
|
-
|
|
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] =
|
|
183
|
+
] }), e[7] = d, e[8] = c, e[9] = s, e[10] = g) : g = e[10], g;
|
|
87
184
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
|
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
|
-
},
|
|
175
|
-
function
|
|
176
|
-
return typeof t == "string" &&
|
|
280
|
+
}, fe = new Set(Se);
|
|
281
|
+
function me(t) {
|
|
282
|
+
return typeof t == "string" && fe.has(t) ? be[t] : t;
|
|
177
283
|
}
|
|
178
|
-
function
|
|
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
|
|
184
|
-
return `${o[1]}(${
|
|
289
|
+
const r = o[2].split(",").map((c) => String(me(c.trim())));
|
|
290
|
+
return `${o[1]}(${r.join(", ")})`;
|
|
185
291
|
}
|
|
186
|
-
return
|
|
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:
|
|
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:
|
|
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:
|
|
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-
|
|
347
|
+
"zIndex-kY2c9j": "zIndex-x9qr3eb",
|
|
242
348
|
"pointerEvents-kfzvcC": "pointerEvents-x67bb7w",
|
|
243
349
|
"outlineStyle-k3XXqK": "outlineStyle-x1t137rt",
|
|
244
|
-
$$css: "Menu/styles.css.ts:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
397
|
+
$$css: "Menu/styles.css.ts:110"
|
|
292
398
|
}
|
|
293
|
-
},
|
|
294
|
-
function
|
|
295
|
-
const t = A(
|
|
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
|
|
406
|
+
function Ge(t, e) {
|
|
301
407
|
return t ? !e.some((o) => o != null && o.contains(t)) : !0;
|
|
302
408
|
}
|
|
303
|
-
function
|
|
409
|
+
function De({
|
|
304
410
|
open: t,
|
|
305
411
|
defaultOpen: e = !1,
|
|
306
412
|
onOpenChange: o
|
|
307
413
|
}) {
|
|
308
|
-
const [
|
|
309
|
-
|
|
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
|
|
313
|
-
y.current =
|
|
314
|
-
const k =
|
|
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 && (
|
|
318
|
-
}, [
|
|
319
|
-
y.current && (w(!1),
|
|
320
|
-
}, [w]),
|
|
321
|
-
y.current && (
|
|
322
|
-
}, [
|
|
323
|
-
y.current ?
|
|
324
|
-
}, [
|
|
325
|
-
|
|
326
|
-
if (
|
|
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 =
|
|
331
|
-
T &&
|
|
332
|
-
} else !
|
|
333
|
-
|
|
334
|
-
}, [
|
|
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
|
|
341
|
-
h.current.set(T,
|
|
342
|
-
const j = h.current,
|
|
343
|
-
return
|
|
344
|
-
const
|
|
345
|
-
return !
|
|
346
|
-
}),
|
|
347
|
-
h.current.delete(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
|
|
456
|
+
return F(() => {
|
|
351
457
|
const T = g.current;
|
|
352
|
-
if (!T || !
|
|
353
|
-
function
|
|
458
|
+
if (!T || !a) return;
|
|
459
|
+
function P(j) {
|
|
354
460
|
if (j.key === "Escape") {
|
|
355
|
-
j.preventDefault(), j.stopPropagation(),
|
|
461
|
+
j.preventDefault(), j.stopPropagation(), R();
|
|
356
462
|
return;
|
|
357
463
|
}
|
|
358
464
|
if (j.key === "Tab") {
|
|
359
|
-
|
|
465
|
+
R();
|
|
360
466
|
return;
|
|
361
467
|
}
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
468
|
+
const z = m.current;
|
|
469
|
+
if (z.length !== 0)
|
|
364
470
|
switch (j.key) {
|
|
365
471
|
case "ArrowDown": {
|
|
366
|
-
j.preventDefault(),
|
|
367
|
-
const
|
|
368
|
-
return
|
|
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(),
|
|
374
|
-
const
|
|
375
|
-
return
|
|
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(),
|
|
486
|
+
j.preventDefault(), n(z[0]);
|
|
381
487
|
break;
|
|
382
488
|
}
|
|
383
489
|
case "End": {
|
|
384
|
-
j.preventDefault(),
|
|
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
|
|
391
|
-
|
|
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",
|
|
397
|
-
}, [
|
|
398
|
-
if (!
|
|
399
|
-
function T(
|
|
400
|
-
|
|
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
|
-
}, [
|
|
509
|
+
}, [a, S]), {
|
|
404
510
|
ctx: {
|
|
405
|
-
open:
|
|
406
|
-
toggle:
|
|
407
|
-
close:
|
|
408
|
-
menuId:
|
|
409
|
-
triggerId:
|
|
511
|
+
open: a,
|
|
512
|
+
toggle: H,
|
|
513
|
+
close: R,
|
|
514
|
+
menuId: u,
|
|
515
|
+
triggerId: p,
|
|
410
516
|
highlightedId: i,
|
|
411
|
-
setHighlightedId:
|
|
412
|
-
registerItem:
|
|
517
|
+
setHighlightedId: n,
|
|
518
|
+
registerItem: O,
|
|
413
519
|
triggerRef: x,
|
|
414
520
|
popupRef: g
|
|
415
521
|
},
|
|
416
|
-
rootRef:
|
|
522
|
+
rootRef: d
|
|
417
523
|
};
|
|
418
524
|
}
|
|
419
|
-
function
|
|
525
|
+
function Fe({
|
|
420
526
|
anchor: t,
|
|
421
527
|
popup: e,
|
|
422
528
|
viewport: o,
|
|
423
|
-
side:
|
|
424
|
-
align:
|
|
425
|
-
offset:
|
|
529
|
+
side: r,
|
|
530
|
+
align: c,
|
|
531
|
+
offset: l
|
|
426
532
|
}) {
|
|
427
|
-
const
|
|
428
|
-
let
|
|
429
|
-
|
|
430
|
-
const
|
|
431
|
-
let
|
|
432
|
-
|
|
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
|
|
435
|
-
top:
|
|
436
|
-
left:
|
|
437
|
-
side:
|
|
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
|
|
441
|
-
function
|
|
442
|
-
const o =
|
|
443
|
-
active:
|
|
444
|
-
} = e,
|
|
445
|
-
let
|
|
446
|
-
o[0] !==
|
|
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 (!(!
|
|
449
|
-
return
|
|
450
|
-
},
|
|
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
|
|
453
|
-
const e =
|
|
558
|
+
function Ke(t) {
|
|
559
|
+
const e = I.c(10), {
|
|
454
560
|
children: o,
|
|
455
|
-
open:
|
|
456
|
-
defaultOpen:
|
|
457
|
-
onOpenChange:
|
|
561
|
+
open: r,
|
|
562
|
+
defaultOpen: c,
|
|
563
|
+
onOpenChange: l
|
|
458
564
|
} = t;
|
|
459
|
-
let
|
|
460
|
-
e[0] !==
|
|
461
|
-
open:
|
|
462
|
-
defaultOpen:
|
|
463
|
-
onOpenChange:
|
|
464
|
-
}, e[0] =
|
|
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:
|
|
468
|
-
} =
|
|
573
|
+
rootRef: n
|
|
574
|
+
} = De(a);
|
|
469
575
|
let s;
|
|
470
|
-
e[4] !== o || e[5] !==
|
|
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[
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
e
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
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
|
|
504
|
-
const e =
|
|
600
|
+
function Ye(t) {
|
|
601
|
+
const e = I.c(26), {
|
|
505
602
|
children: o,
|
|
506
|
-
align:
|
|
507
|
-
} = t,
|
|
508
|
-
open:
|
|
509
|
-
menuId:
|
|
603
|
+
align: r
|
|
604
|
+
} = t, c = r === void 0 ? "start" : r, {
|
|
605
|
+
open: l,
|
|
606
|
+
menuId: a,
|
|
510
607
|
triggerId: i,
|
|
511
|
-
highlightedId:
|
|
608
|
+
highlightedId: n,
|
|
512
609
|
triggerRef: s,
|
|
513
|
-
popupRef:
|
|
514
|
-
} =
|
|
515
|
-
let
|
|
516
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
520
|
-
const [
|
|
616
|
+
}, e[0] = p) : p = e[0];
|
|
617
|
+
const [d, x] = Z(p), g = Be();
|
|
521
618
|
let h;
|
|
522
|
-
e[1] !==
|
|
523
|
-
active:
|
|
524
|
-
}, e[1] =
|
|
525
|
-
let
|
|
526
|
-
if (e[3] !==
|
|
527
|
-
if (!
|
|
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
|
|
530
|
-
const
|
|
531
|
-
if (!
|
|
626
|
+
const D = () => {
|
|
627
|
+
const T = u.current, P = s.current?.getBoundingClientRect();
|
|
628
|
+
if (!T || !P)
|
|
532
629
|
return;
|
|
533
|
-
const
|
|
630
|
+
const j = Fe({
|
|
534
631
|
anchor: {
|
|
535
|
-
top:
|
|
536
|
-
left:
|
|
537
|
-
width:
|
|
538
|
-
height:
|
|
632
|
+
top: P.top,
|
|
633
|
+
left: P.left,
|
|
634
|
+
width: P.width,
|
|
635
|
+
height: P.height
|
|
539
636
|
},
|
|
540
637
|
popup: {
|
|
541
|
-
width:
|
|
542
|
-
height:
|
|
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:
|
|
550
|
-
offset:
|
|
646
|
+
align: c,
|
|
647
|
+
offset: Ce.xs
|
|
551
648
|
});
|
|
552
|
-
x((
|
|
553
|
-
top:
|
|
554
|
-
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
|
|
558
|
-
window.removeEventListener("resize",
|
|
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 = [
|
|
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 =
|
|
659
|
+
const k = n ?? void 0;
|
|
563
660
|
let w;
|
|
564
|
-
e[9] !==
|
|
565
|
-
let
|
|
566
|
-
e[12] !== w ? (
|
|
567
|
-
let
|
|
568
|
-
e[14] !== o
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
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
|
|
574
|
-
const e =
|
|
672
|
+
function Ze(t) {
|
|
673
|
+
const e = I.c(18), {
|
|
575
674
|
onClick: o,
|
|
576
|
-
children:
|
|
675
|
+
children: r
|
|
577
676
|
} = t, {
|
|
578
|
-
close:
|
|
579
|
-
highlightedId:
|
|
580
|
-
setHighlightedId:
|
|
677
|
+
close: c,
|
|
678
|
+
highlightedId: l,
|
|
679
|
+
setHighlightedId: a,
|
|
581
680
|
registerItem: i
|
|
582
|
-
} =
|
|
583
|
-
let
|
|
584
|
-
e[0] !==
|
|
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(
|
|
588
|
-
},
|
|
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] !==
|
|
591
|
-
o?.(),
|
|
592
|
-
}, e[4] =
|
|
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] !==
|
|
596
|
-
const
|
|
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] !==
|
|
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] !==
|
|
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
|
|
603
|
-
const e =
|
|
701
|
+
function Ue(t) {
|
|
702
|
+
const e = I.c(18), {
|
|
604
703
|
href: o,
|
|
605
|
-
children:
|
|
704
|
+
children: r
|
|
606
705
|
} = t, {
|
|
607
|
-
close:
|
|
608
|
-
highlightedId:
|
|
609
|
-
setHighlightedId:
|
|
706
|
+
close: c,
|
|
707
|
+
highlightedId: l,
|
|
708
|
+
setHighlightedId: a,
|
|
610
709
|
registerItem: i
|
|
611
|
-
} =
|
|
612
|
-
let
|
|
613
|
-
e[0] !==
|
|
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(
|
|
617
|
-
},
|
|
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] !==
|
|
718
|
+
e[4] !== c ? (x = () => c(), e[4] = c, e[5] = x) : x = e[5];
|
|
620
719
|
let g;
|
|
621
|
-
e[6] !==
|
|
622
|
-
const h =
|
|
623
|
-
let
|
|
624
|
-
e[9] !== h ? (
|
|
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] !==
|
|
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
|
|
629
|
-
const t =
|
|
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__ */
|
|
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
|
|
634
|
-
Root:
|
|
635
|
-
Trigger:
|
|
636
|
-
Popup:
|
|
637
|
-
Item:
|
|
638
|
-
LinkItem:
|
|
639
|
-
Separator:
|
|
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
|
|
649
|
-
function
|
|
650
|
-
process.env.NODE_ENV !== "test" &&
|
|
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
|
|
653
|
-
function
|
|
654
|
-
return
|
|
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
|
|
657
|
-
Object.defineProperty(
|
|
755
|
+
var oe = {};
|
|
756
|
+
Object.defineProperty(oe, "__esModule", {
|
|
658
757
|
value: !0
|
|
659
758
|
});
|
|
660
|
-
var
|
|
661
|
-
function
|
|
662
|
-
var e, o,
|
|
663
|
-
return t != null && (e = t.disableCache === !0, o = t.disableMix === !0,
|
|
664
|
-
for (var
|
|
665
|
-
p
|
|
666
|
-
for (;
|
|
667
|
-
var
|
|
668
|
-
if (!(
|
|
669
|
-
if (Array.isArray(
|
|
670
|
-
for (var x = 0; x <
|
|
671
|
-
|
|
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 =
|
|
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
|
|
679
|
-
|
|
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 ===
|
|
685
|
-
var
|
|
686
|
-
|
|
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 ?
|
|
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
|
|
693
|
-
s.set(g, [h, y,
|
|
791
|
+
var R = /* @__PURE__ */ new WeakMap();
|
|
792
|
+
s.set(g, [h, y, n, R]), s = R;
|
|
694
793
|
}
|
|
695
794
|
}
|
|
696
|
-
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
|
|
701
|
-
for (var
|
|
702
|
-
var
|
|
703
|
-
|
|
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
|
-
|
|
804
|
+
H != null && (i = Object.assign(H, i));
|
|
706
805
|
}
|
|
707
806
|
}
|
|
708
807
|
}
|
|
709
|
-
var
|
|
710
|
-
return
|
|
808
|
+
var D = [a, i, n];
|
|
809
|
+
return D;
|
|
711
810
|
};
|
|
712
811
|
}
|
|
713
|
-
var
|
|
714
|
-
|
|
715
|
-
const
|
|
812
|
+
var nt = ve = oe.styleq = ye();
|
|
813
|
+
nt.factory = ye;
|
|
814
|
+
const it = ve.factory({
|
|
716
815
|
disableMix: !0
|
|
717
816
|
});
|
|
718
|
-
function
|
|
719
|
-
const [e, o,
|
|
720
|
-
if (e != null && e !== "" && (
|
|
721
|
-
const
|
|
722
|
-
for (const i of
|
|
723
|
-
const
|
|
724
|
-
|
|
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
|
-
|
|
825
|
+
c["data-style-src"] = Object.keys(a).map((i) => `${i}:${a[i]}`).join("; ");
|
|
727
826
|
}
|
|
728
|
-
return
|
|
827
|
+
return c;
|
|
729
828
|
}
|
|
730
|
-
function
|
|
829
|
+
function lt(t) {
|
|
731
830
|
Object.keys(t).forEach((e) => {
|
|
732
|
-
|
|
831
|
+
tt(e) || (Qe(`invalid prop "${e}"`), delete t[e]);
|
|
733
832
|
});
|
|
734
833
|
}
|
|
735
|
-
function
|
|
834
|
+
function b(t, e) {
|
|
736
835
|
const o = {
|
|
737
836
|
$$css: !0,
|
|
738
837
|
"debug::name": `html-${t}`
|
|
739
838
|
};
|
|
740
|
-
function
|
|
741
|
-
ref:
|
|
742
|
-
...
|
|
839
|
+
function r({
|
|
840
|
+
ref: c,
|
|
841
|
+
...l
|
|
743
842
|
}) {
|
|
744
843
|
const {
|
|
745
|
-
for:
|
|
844
|
+
for: a,
|
|
746
845
|
style: i,
|
|
747
|
-
...
|
|
748
|
-
} =
|
|
749
|
-
|
|
750
|
-
const
|
|
751
|
-
return
|
|
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
|
-
...
|
|
754
|
-
ref:
|
|
852
|
+
...u,
|
|
853
|
+
ref: c
|
|
755
854
|
});
|
|
756
855
|
}
|
|
757
|
-
return
|
|
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
|
-
},
|
|
828
|
-
a:
|
|
829
|
-
article:
|
|
830
|
-
aside:
|
|
831
|
-
b:
|
|
832
|
-
bdi:
|
|
833
|
-
bdo:
|
|
834
|
-
blockquote:
|
|
835
|
-
br:
|
|
836
|
-
button:
|
|
837
|
-
code:
|
|
838
|
-
del:
|
|
839
|
-
div:
|
|
840
|
-
em:
|
|
841
|
-
fieldset:
|
|
842
|
-
footer:
|
|
843
|
-
form:
|
|
844
|
-
h1:
|
|
845
|
-
h2:
|
|
846
|
-
h3:
|
|
847
|
-
h4:
|
|
848
|
-
h5:
|
|
849
|
-
h6:
|
|
850
|
-
header:
|
|
851
|
-
hr:
|
|
852
|
-
i:
|
|
853
|
-
img:
|
|
854
|
-
input:
|
|
855
|
-
ins:
|
|
856
|
-
kbd:
|
|
857
|
-
label:
|
|
858
|
-
li:
|
|
859
|
-
main:
|
|
860
|
-
mark:
|
|
861
|
-
nav:
|
|
862
|
-
ol:
|
|
863
|
-
optgroup:
|
|
864
|
-
option:
|
|
865
|
-
p:
|
|
866
|
-
pre:
|
|
867
|
-
s:
|
|
868
|
-
section:
|
|
869
|
-
select:
|
|
870
|
-
span:
|
|
871
|
-
strong:
|
|
872
|
-
sub:
|
|
873
|
-
sup:
|
|
874
|
-
textarea:
|
|
875
|
-
u:
|
|
876
|
-
ul:
|
|
877
|
-
},
|
|
878
|
-
var
|
|
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:
|
|
881
|
-
article:
|
|
882
|
-
aside:
|
|
883
|
-
b:
|
|
884
|
-
bdi:
|
|
885
|
-
bdo:
|
|
886
|
-
blockquote:
|
|
887
|
-
br:
|
|
888
|
-
button:
|
|
889
|
-
code:
|
|
890
|
-
del:
|
|
891
|
-
div:
|
|
892
|
-
em:
|
|
893
|
-
fieldset:
|
|
894
|
-
footer:
|
|
895
|
-
form:
|
|
896
|
-
h1:
|
|
897
|
-
h2:
|
|
898
|
-
h3:
|
|
899
|
-
h4:
|
|
900
|
-
h5:
|
|
901
|
-
h6:
|
|
902
|
-
header:
|
|
903
|
-
hr:
|
|
904
|
-
i:
|
|
905
|
-
img:
|
|
906
|
-
input:
|
|
907
|
-
ins:
|
|
908
|
-
kbd:
|
|
909
|
-
label:
|
|
910
|
-
li:
|
|
911
|
-
main:
|
|
912
|
-
mark:
|
|
913
|
-
nav:
|
|
914
|
-
ol:
|
|
915
|
-
optgroup:
|
|
916
|
-
option:
|
|
917
|
-
p:
|
|
918
|
-
pre:
|
|
919
|
-
s:
|
|
920
|
-
section:
|
|
921
|
-
select:
|
|
922
|
-
span:
|
|
923
|
-
strong:
|
|
924
|
-
sub:
|
|
925
|
-
sup:
|
|
926
|
-
textarea:
|
|
927
|
-
u:
|
|
928
|
-
ul:
|
|
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
|
|
1029
|
+
const gr = {
|
|
931
1030
|
xs: 480,
|
|
932
1031
|
sm: 640,
|
|
933
1032
|
md: 768,
|
|
934
1033
|
lg: 1024,
|
|
935
1034
|
xl: 1280
|
|
936
|
-
},
|
|
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
|
-
},
|
|
1146
|
-
function
|
|
1147
|
-
const t = A(
|
|
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
|
|
1153
|
-
function
|
|
1154
|
-
const e =
|
|
1251
|
+
const re = G(!1);
|
|
1252
|
+
function _o(t) {
|
|
1253
|
+
const e = I.c(2), {
|
|
1155
1254
|
children: o
|
|
1156
1255
|
} = t;
|
|
1157
|
-
let
|
|
1158
|
-
return e[0] !== o ? (
|
|
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
|
|
1259
|
+
function Yo(t) {
|
|
1161
1260
|
let e = "";
|
|
1162
|
-
return
|
|
1261
|
+
return Q.forEach(t, (o) => {
|
|
1163
1262
|
(typeof o == "string" || typeof o == "number") && (e += String(o));
|
|
1164
1263
|
}), e;
|
|
1165
1264
|
}
|
|
1166
|
-
function
|
|
1265
|
+
function Zo(t) {
|
|
1167
1266
|
let e = t;
|
|
1168
1267
|
for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
|
|
1169
|
-
const
|
|
1170
|
-
if (
|
|
1171
|
-
e =
|
|
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
|
|
1176
|
-
const o = [],
|
|
1177
|
-
function a
|
|
1178
|
-
|
|
1179
|
-
if (!
|
|
1180
|
-
const
|
|
1181
|
-
if (s ===
|
|
1182
|
-
const
|
|
1183
|
-
o.push(
|
|
1184
|
-
const
|
|
1185
|
-
!
|
|
1186
|
-
} else
|
|
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
|
|
1288
|
+
return l(t), {
|
|
1190
1289
|
template: o.join(" "),
|
|
1191
|
-
compactTemplate:
|
|
1192
|
-
labels:
|
|
1290
|
+
compactTemplate: r.join(" "),
|
|
1291
|
+
labels: c
|
|
1193
1292
|
};
|
|
1194
1293
|
}
|
|
1195
|
-
function
|
|
1196
|
-
const e =
|
|
1294
|
+
function Jo(t) {
|
|
1295
|
+
const e = I.c(13), {
|
|
1197
1296
|
children: o
|
|
1198
|
-
} = t,
|
|
1199
|
-
let
|
|
1200
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
1204
|
-
const [
|
|
1205
|
-
let i,
|
|
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 =
|
|
1306
|
+
const h = r.current;
|
|
1208
1307
|
if (!h)
|
|
1209
1308
|
return;
|
|
1210
|
-
const
|
|
1309
|
+
const m = () => {
|
|
1211
1310
|
const k = h.scrollWidth - h.clientWidth > 1;
|
|
1212
|
-
|
|
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
|
-
|
|
1316
|
+
m(), h.addEventListener("scroll", m, {
|
|
1218
1317
|
passive: !0
|
|
1219
1318
|
});
|
|
1220
|
-
const y = typeof ResizeObserver < "u" ? new ResizeObserver(
|
|
1319
|
+
const y = typeof ResizeObserver < "u" ? new ResizeObserver(m) : null;
|
|
1221
1320
|
return y?.observe(h), () => {
|
|
1222
|
-
h.removeEventListener("scroll",
|
|
1321
|
+
h.removeEventListener("scroll", m), y?.disconnect();
|
|
1223
1322
|
};
|
|
1224
|
-
},
|
|
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__ */
|
|
1227
|
-
const
|
|
1228
|
-
let
|
|
1229
|
-
e[5] !==
|
|
1230
|
-
const
|
|
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] !==
|
|
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] !==
|
|
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
|
-
|
|
1335
|
+
p,
|
|
1237
1336
|
x
|
|
1238
|
-
] }), e[9] = s, e[10] =
|
|
1337
|
+
] }), e[9] = s, e[10] = p, e[11] = x, e[12] = g) : g = e[12], g;
|
|
1239
1338
|
}
|
|
1240
|
-
function
|
|
1339
|
+
function Qo({
|
|
1241
1340
|
children: t,
|
|
1242
1341
|
variant: e = "default",
|
|
1243
1342
|
size: o = "md",
|
|
1244
|
-
responsive:
|
|
1245
|
-
minColumnWidth:
|
|
1246
|
-
sortChip:
|
|
1247
|
-
pagination:
|
|
1343
|
+
responsive: r = !0,
|
|
1344
|
+
minColumnWidth: c = "labelMinW",
|
|
1345
|
+
sortChip: l,
|
|
1346
|
+
pagination: a
|
|
1248
1347
|
}) {
|
|
1249
|
-
const i =
|
|
1250
|
-
template:
|
|
1348
|
+
const i = q(null), {
|
|
1349
|
+
template: n,
|
|
1251
1350
|
compactTemplate: s,
|
|
1252
|
-
labels:
|
|
1253
|
-
} =
|
|
1254
|
-
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
|
|
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
|
-
|
|
1265
|
-
|
|
1266
|
-
), children: t }), x = /* @__PURE__ */ U(
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
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__ */
|
|
1370
|
+
return /* @__PURE__ */ M(we.Provider, { value: {
|
|
1272
1371
|
variant: e,
|
|
1273
1372
|
size: o,
|
|
1274
|
-
responsive:
|
|
1275
|
-
labels:
|
|
1373
|
+
responsive: r,
|
|
1374
|
+
labels: u,
|
|
1276
1375
|
inferredTemplateRef: i
|
|
1277
|
-
}, children:
|
|
1376
|
+
}, children: r ? /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:299", ...W(C.div, $.rootContainer), children: x }) : x });
|
|
1278
1377
|
}
|
|
1279
|
-
function
|
|
1280
|
-
const e =
|
|
1378
|
+
function er(t) {
|
|
1379
|
+
const e = I.c(2), {
|
|
1281
1380
|
children: o
|
|
1282
1381
|
} = t;
|
|
1283
|
-
let
|
|
1284
|
-
return e[0] !== o ? (
|
|
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
|
|
1287
|
-
const e =
|
|
1385
|
+
function tr(t) {
|
|
1386
|
+
const e = I.c(19), {
|
|
1288
1387
|
children: o
|
|
1289
1388
|
} = t, {
|
|
1290
|
-
variant:
|
|
1291
|
-
} =
|
|
1292
|
-
let
|
|
1293
|
-
if (e[0] !== o || e[1] !==
|
|
1294
|
-
const
|
|
1295
|
-
|
|
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] !==
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1306
|
-
function
|
|
1307
|
-
const e =
|
|
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:
|
|
1310
|
-
"aria-label":
|
|
1408
|
+
onClick: r,
|
|
1409
|
+
"aria-label": c
|
|
1311
1410
|
} = t, {
|
|
1312
|
-
variant:
|
|
1313
|
-
} =
|
|
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] !==
|
|
1316
|
-
const
|
|
1317
|
-
let
|
|
1318
|
-
e[7] !==
|
|
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(
|
|
1321
|
-
} : void 0, e[7] =
|
|
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] !==
|
|
1324
|
-
(k.key === "Enter" || k.key === " ") &&
|
|
1325
|
-
} : void 0, e[10] =
|
|
1326
|
-
const g = !
|
|
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] !==
|
|
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:
|
|
1331
|
-
}, children: k }, k.key ?? w)) }), e[0] =
|
|
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 =
|
|
1435
|
+
const ne = G({
|
|
1337
1436
|
index: 0,
|
|
1338
1437
|
total: 0
|
|
1339
1438
|
});
|
|
1340
|
-
function
|
|
1341
|
-
const e =
|
|
1439
|
+
function ie(t) {
|
|
1440
|
+
const e = I.c(8), {
|
|
1342
1441
|
children: o,
|
|
1343
|
-
"aria-label":
|
|
1442
|
+
"aria-label": r
|
|
1344
1443
|
} = t, {
|
|
1345
|
-
size:
|
|
1346
|
-
variant:
|
|
1347
|
-
} =
|
|
1348
|
-
index:
|
|
1444
|
+
size: c,
|
|
1445
|
+
variant: l
|
|
1446
|
+
} = te(), {
|
|
1447
|
+
index: a,
|
|
1349
1448
|
total: i
|
|
1350
|
-
} = A(ne),
|
|
1351
|
-
let
|
|
1352
|
-
e[0] !== s || e[1] !==
|
|
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] !==
|
|
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
|
-
|
|
1357
|
-
function
|
|
1358
|
-
const e =
|
|
1455
|
+
ie.displayName = "HeaderCell";
|
|
1456
|
+
function nr(t) {
|
|
1457
|
+
const e = I.c(16), {
|
|
1359
1458
|
children: o,
|
|
1360
|
-
isActions:
|
|
1459
|
+
isActions: r
|
|
1361
1460
|
} = t, {
|
|
1362
|
-
size:
|
|
1363
|
-
variant:
|
|
1364
|
-
labels:
|
|
1461
|
+
size: c,
|
|
1462
|
+
variant: l,
|
|
1463
|
+
labels: a,
|
|
1365
1464
|
responsive: i
|
|
1366
|
-
} =
|
|
1367
|
-
index:
|
|
1465
|
+
} = te(), {
|
|
1466
|
+
index: n,
|
|
1368
1467
|
total: s
|
|
1369
|
-
} = A(ne),
|
|
1370
|
-
let
|
|
1371
|
-
e[0] !==
|
|
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] !==
|
|
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] !==
|
|
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] !==
|
|
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] =
|
|
1479
|
+
] }), e[12] = m, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
|
|
1381
1480
|
}
|
|
1382
|
-
const
|
|
1481
|
+
const ir = {
|
|
1383
1482
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1384
|
-
Container:
|
|
1385
|
-
Root:
|
|
1386
|
-
Header:
|
|
1387
|
-
Body:
|
|
1388
|
-
Row:
|
|
1389
|
-
HeaderCell:
|
|
1390
|
-
Cell:
|
|
1391
|
-
},
|
|
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
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
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-
|
|
1524
|
+
//# sourceMappingURL=Table-Cm5cCnZD.js.map
|