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