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