@duro-app/ui 5.29.0 → 5.31.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-Cw1B14R3.js → Table-ypIvytAS.js} +677 -664
- package/dist/Table-ypIvytAS.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts +3 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.stories.d.ts +1 -0
- package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
- package/dist/components/Menu/MenuContext.d.ts +2 -1
- package/dist/components/Menu/MenuContext.d.ts.map +1 -1
- package/dist/components/Menu/styles.css.d.ts +4 -0
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +3 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.stories.d.ts +5 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/SelectContext.d.ts +2 -0
- package/dist/components/Select/SelectContext.d.ts.map +1 -1
- package/dist/components/Select/styles.css.d.ts +5 -0
- package/dist/components/Select/styles.css.d.ts.map +1 -1
- package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
- package/dist/components/Video/Video.d.ts +22 -0
- package/dist/components/Video/Video.d.ts.map +1 -0
- package/dist/components/Video/Video.meta.d.ts +3 -0
- package/dist/components/Video/Video.meta.d.ts.map +1 -0
- package/dist/components/Video/Video.stories.d.ts +8 -0
- package/dist/components/Video/Video.stories.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1609 -1574
- package/dist/index.js.map +1 -1
- package/dist/table.js +1 -1
- package/package.json +2 -2
- package/src/components/Menu/Menu.meta.ts +1 -1
- package/src/components/Menu/Menu.native.tsx +18 -3
- package/src/components/Menu/Menu.stories.tsx +42 -0
- package/src/components/Menu/Menu.tsx +13 -5
- package/src/components/Menu/MenuContext.ts +2 -1
- package/src/components/Menu/styles.css.ts +4 -0
- package/src/components/Menu/useMenuRoot.ts +15 -6
- package/src/components/Select/Select.meta.ts +1 -1
- package/src/components/Select/Select.native.tsx +14 -3
- package/src/components/Select/Select.stories.tsx +31 -0
- package/src/components/Select/Select.tsx +23 -4
- package/src/components/Select/SelectContext.ts +2 -0
- package/src/components/Select/styles.css.ts +6 -0
- package/src/components/Select/useSelectRoot.ts +1 -0
- package/src/components/Video/Video.meta.ts +15 -0
- package/src/components/Video/Video.stories.tsx +28 -0
- package/src/components/Video/Video.tsx +31 -0
- package/src/index.ts +1 -0
- package/dist/Table-Cw1B14R3.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as T, jsxs as ue, Fragment as Fe } from "react/jsx-runtime";
|
|
2
|
+
import { c as B, m as j, d as z } from "./compiler-runtime-BuugS4D0.js";
|
|
3
|
+
import { useContext as D, createContext as F, useId as Z, useRef as q, useLayoutEffect as xe, useState as ee, useCallback as $e, useEffect as V, Children as pe, isValidElement as Xe } from "react";
|
|
4
|
+
import { createPortal as Ve } from "react-dom";
|
|
5
|
+
const _e = {
|
|
6
6
|
xs: 4,
|
|
7
7
|
sm: 8,
|
|
8
8
|
ms: 12,
|
|
@@ -11,7 +11,7 @@ const Ge = {
|
|
|
11
11
|
xl: 32,
|
|
12
12
|
xxl: 48,
|
|
13
13
|
xxxl: 64
|
|
14
|
-
},
|
|
14
|
+
}, Ir = {
|
|
15
15
|
instant: 0,
|
|
16
16
|
minimal: 1,
|
|
17
17
|
quick: 120,
|
|
@@ -21,7 +21,7 @@ const Ge = {
|
|
|
21
21
|
slow: 280,
|
|
22
22
|
slower: 300,
|
|
23
23
|
stagger: 100
|
|
24
|
-
},
|
|
24
|
+
}, Ke = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "thumbSm", "mediaTileMinW", "glyphClampMax", "timeReadoutW", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "sheetGrabberW", "sheetGrabberH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], Q = {
|
|
25
25
|
touchTarget: 44,
|
|
26
26
|
controlSm: 28,
|
|
27
27
|
controlMd: 39,
|
|
@@ -113,13 +113,13 @@ const Ge = {
|
|
|
113
113
|
appBarH: 61,
|
|
114
114
|
dragThumbW: 132,
|
|
115
115
|
dragThumbH: 99
|
|
116
|
-
},
|
|
116
|
+
}, qr = {
|
|
117
117
|
sm: Q.iconSm,
|
|
118
118
|
md: Q.iconMd,
|
|
119
119
|
lg: Q.iconLg,
|
|
120
120
|
xl: Q.iconXl,
|
|
121
121
|
xxl: Q.iconXxl
|
|
122
|
-
},
|
|
122
|
+
}, Ne = {
|
|
123
123
|
bg: "var(--bg-xqkwqtp)",
|
|
124
124
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
125
125
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -196,30 +196,30 @@ const Ge = {
|
|
|
196
196
|
* This source code is licensed under the MIT license found in the
|
|
197
197
|
* LICENSE file in the root directory of this source tree.
|
|
198
198
|
*/
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
process.env.NODE_ENV !== "test" &&
|
|
199
|
+
const we = {};
|
|
200
|
+
function Ye(o) {
|
|
201
|
+
process.env.NODE_ENV !== "test" && we[o] || (we[o] = !0, console.error(`[error] React Strict DOM: ${o}`));
|
|
202
202
|
}
|
|
203
|
-
const
|
|
204
|
-
function
|
|
205
|
-
return
|
|
203
|
+
const Ze = /* @__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"]);
|
|
204
|
+
function Ue(o) {
|
|
205
|
+
return Ze.has(o) || o.indexOf("data-") > -1;
|
|
206
206
|
}
|
|
207
|
-
var
|
|
208
|
-
Object.defineProperty(
|
|
207
|
+
var me = {};
|
|
208
|
+
Object.defineProperty(me, "__esModule", {
|
|
209
209
|
value: !0
|
|
210
210
|
});
|
|
211
|
-
var
|
|
212
|
-
function
|
|
211
|
+
var Ce = me.styleq = void 0, Je = /* @__PURE__ */ new WeakMap(), Qe = "$$css";
|
|
212
|
+
function He(o) {
|
|
213
213
|
var e, t, r;
|
|
214
214
|
return o != null && (e = o.disableCache === !0, t = o.disableMix === !0, r = o.transform), function() {
|
|
215
|
-
for (var n = [],
|
|
216
|
-
|
|
217
|
-
for (;
|
|
218
|
-
var p =
|
|
215
|
+
for (var n = [], d = "", s = null, l = "", i = e ? null : Je, a = new Array(arguments.length), u = 0; u < arguments.length; u++)
|
|
216
|
+
a[u] = arguments[u];
|
|
217
|
+
for (; a.length > 0; ) {
|
|
218
|
+
var p = a.pop();
|
|
219
219
|
if (!(p == null || p === !1)) {
|
|
220
220
|
if (Array.isArray(p)) {
|
|
221
221
|
for (var x = 0; x < p.length; x++)
|
|
222
|
-
|
|
222
|
+
a.push(p[x]);
|
|
223
223
|
continue;
|
|
224
224
|
}
|
|
225
225
|
var h = r != null ? r(p) : p;
|
|
@@ -227,82 +227,82 @@ function Te(o) {
|
|
|
227
227
|
var g = "";
|
|
228
228
|
if (i != null && i.has(h)) {
|
|
229
229
|
var b = i.get(h);
|
|
230
|
-
b != null && (g = b[0],
|
|
230
|
+
b != null && (g = b[0], l = b[2], n.push.apply(n, b[1]), i = b[3]);
|
|
231
231
|
} else {
|
|
232
|
-
var
|
|
232
|
+
var y = [];
|
|
233
233
|
for (var m in h) {
|
|
234
|
-
var
|
|
235
|
-
if (m ===
|
|
236
|
-
var
|
|
237
|
-
|
|
234
|
+
var f = h[m];
|
|
235
|
+
if (m === Qe) {
|
|
236
|
+
var W = h[m];
|
|
237
|
+
W !== !0 && (l = l ? W + "; " + l : W);
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
|
-
typeof
|
|
240
|
+
typeof f == "string" || f === null ? n.includes(m) || (n.push(m), i != null && y.push(m), typeof f == "string" && (g += g ? " " + f : f)) : console.error("styleq: ".concat(m, " typeof ").concat(String(f), ' is not "string" or "null".'));
|
|
241
241
|
}
|
|
242
242
|
if (i != null) {
|
|
243
|
-
var
|
|
244
|
-
i.set(h, [g,
|
|
243
|
+
var S = /* @__PURE__ */ new WeakMap();
|
|
244
|
+
i.set(h, [g, y, l, S]), i = S;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
g && (
|
|
247
|
+
g && (d = d ? g + " " + d : g);
|
|
248
248
|
} else if (t)
|
|
249
|
-
|
|
249
|
+
s == null && (s = {}), s = Object.assign({}, h, s);
|
|
250
250
|
else {
|
|
251
|
-
var
|
|
252
|
-
for (var
|
|
253
|
-
var
|
|
254
|
-
|
|
251
|
+
var $ = null;
|
|
252
|
+
for (var C in h) {
|
|
253
|
+
var H = h[C];
|
|
254
|
+
H !== void 0 && (n.includes(C) || (H != null && (s == null && (s = {}), $ == null && ($ = {}), $[C] = H), n.push(C), i = null));
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
$ != null && (s = Object.assign($, s));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
var E = [
|
|
260
|
+
var E = [d, s, l];
|
|
261
261
|
return E;
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
const
|
|
264
|
+
var et = Ce = me.styleq = He();
|
|
265
|
+
et.factory = He;
|
|
266
|
+
const tt = Ce.factory({
|
|
267
267
|
disableMix: !0
|
|
268
268
|
});
|
|
269
|
-
function
|
|
270
|
-
const [e, t, r] =
|
|
271
|
-
if (e != null && e !== "" && (
|
|
272
|
-
const n = r.split(";"),
|
|
273
|
-
for (const
|
|
274
|
-
const
|
|
275
|
-
|
|
269
|
+
function ot(...o) {
|
|
270
|
+
const [e, t, r] = tt(o), c = {};
|
|
271
|
+
if (e != null && e !== "" && (c.className = e), t != null && (c.style = t), r != null && r !== "") {
|
|
272
|
+
const n = r.split(";"), d = {};
|
|
273
|
+
for (const s of n) {
|
|
274
|
+
const l = s.trim(), [i, a] = l.split(":");
|
|
275
|
+
a != null && (d[i] = d[i] != null ? `${d[i]},${a}` : a);
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
c["data-style-src"] = Object.keys(d).map((s) => `${s}:${d[s]}`).join("; ");
|
|
278
278
|
}
|
|
279
|
-
return
|
|
279
|
+
return c;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function rt(o) {
|
|
282
282
|
Object.keys(o).forEach((e) => {
|
|
283
|
-
|
|
283
|
+
Ue(e) || (Ye(`invalid prop "${e}"`), delete o[e]);
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function v(o, e) {
|
|
287
287
|
const t = {
|
|
288
288
|
$$css: !0,
|
|
289
289
|
"debug::name": `html-${o}`
|
|
290
290
|
};
|
|
291
291
|
function r({
|
|
292
|
-
ref:
|
|
292
|
+
ref: c,
|
|
293
293
|
...n
|
|
294
294
|
}) {
|
|
295
295
|
const {
|
|
296
|
-
for:
|
|
297
|
-
style:
|
|
298
|
-
...
|
|
299
|
-
} = n, i =
|
|
300
|
-
|
|
301
|
-
const
|
|
302
|
-
return
|
|
296
|
+
for: d,
|
|
297
|
+
style: s,
|
|
298
|
+
...l
|
|
299
|
+
} = n, i = l;
|
|
300
|
+
rt(i), d != null && (i.htmlFor = d), n.role != null && (i.role = n.role === "none" ? "presentation" : n.role), o === "button" ? i.type = i.type ? i.type : "button" : (o === "input" || o === "textarea") && (i.dir = i.dir ? i.dir : "auto");
|
|
301
|
+
const a = ot([t, e, s]);
|
|
302
|
+
return T(o, {
|
|
303
303
|
...i,
|
|
304
|
-
...
|
|
305
|
-
ref:
|
|
304
|
+
...a,
|
|
305
|
+
ref: c
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
return r.displayName = `html.${o}`, r;
|
|
@@ -375,118 +375,118 @@ const w = {
|
|
|
375
375
|
"resize-kHenm0": "resize-x288g5",
|
|
376
376
|
$$css: ".pnpm:web/index.js:276"
|
|
377
377
|
}
|
|
378
|
-
},
|
|
379
|
-
a:
|
|
380
|
-
article:
|
|
381
|
-
aside:
|
|
382
|
-
b:
|
|
383
|
-
bdi:
|
|
384
|
-
bdo:
|
|
385
|
-
blockquote:
|
|
386
|
-
br:
|
|
387
|
-
button:
|
|
388
|
-
code:
|
|
389
|
-
del:
|
|
390
|
-
div:
|
|
391
|
-
em:
|
|
392
|
-
fieldset:
|
|
393
|
-
footer:
|
|
394
|
-
form:
|
|
395
|
-
h1:
|
|
396
|
-
h2:
|
|
397
|
-
h3:
|
|
398
|
-
h4:
|
|
399
|
-
h5:
|
|
400
|
-
h6:
|
|
401
|
-
header:
|
|
402
|
-
hr:
|
|
403
|
-
i:
|
|
404
|
-
img:
|
|
405
|
-
input:
|
|
406
|
-
ins:
|
|
407
|
-
kbd:
|
|
408
|
-
label:
|
|
409
|
-
li:
|
|
410
|
-
main:
|
|
411
|
-
mark:
|
|
412
|
-
nav:
|
|
413
|
-
ol:
|
|
414
|
-
optgroup:
|
|
415
|
-
option:
|
|
416
|
-
p:
|
|
417
|
-
pre:
|
|
418
|
-
s:
|
|
419
|
-
section:
|
|
420
|
-
select:
|
|
421
|
-
span:
|
|
422
|
-
strong:
|
|
423
|
-
sub:
|
|
424
|
-
sup:
|
|
425
|
-
textarea:
|
|
426
|
-
u:
|
|
427
|
-
ul:
|
|
428
|
-
},
|
|
429
|
-
var
|
|
378
|
+
}, nt = w.inline, it = w.block, st = w.block, at = w.inline, lt = w.inline, ct = w.inline, dt = w.block, ut = null, xt = [w.inlineblock, w.button], pt = [w.inline, w.codePre], gt = null, ht = w.block, mt = w.inline, bt = w.block, ft = w.block, vt = w.block, Y = [w.block, w.heading], kt = w.block, yt = [w.block, w.hr], wt = w.inline, Mt = w.img, Tt = [w.inlineblock, w.input], Wt = null, St = null, $t = w.inline, Ct = w.block, Ht = w.block, jt = w.inline, zt = w.block, Rt = [w.list, w.block], Bt = null, Lt = null, It = w.block, qt = [w.block, w.codePre], Pt = null, Et = w.block, Ot = w.inlineblock, Gt = w.inline, Dt = [w.inline, w.strong], At = w.inline, Ft = w.inline, Xt = [w.inlineblock, w.textarea], Vt = null, _t = [w.list, w.block], k = {
|
|
379
|
+
a: nt,
|
|
380
|
+
article: it,
|
|
381
|
+
aside: st,
|
|
382
|
+
b: at,
|
|
383
|
+
bdi: lt,
|
|
384
|
+
bdo: ct,
|
|
385
|
+
blockquote: dt,
|
|
386
|
+
br: ut,
|
|
387
|
+
button: xt,
|
|
388
|
+
code: pt,
|
|
389
|
+
del: gt,
|
|
390
|
+
div: ht,
|
|
391
|
+
em: mt,
|
|
392
|
+
fieldset: bt,
|
|
393
|
+
footer: ft,
|
|
394
|
+
form: vt,
|
|
395
|
+
h1: Y,
|
|
396
|
+
h2: Y,
|
|
397
|
+
h3: Y,
|
|
398
|
+
h4: Y,
|
|
399
|
+
h5: Y,
|
|
400
|
+
h6: Y,
|
|
401
|
+
header: kt,
|
|
402
|
+
hr: yt,
|
|
403
|
+
i: wt,
|
|
404
|
+
img: Mt,
|
|
405
|
+
input: Tt,
|
|
406
|
+
ins: Wt,
|
|
407
|
+
kbd: St,
|
|
408
|
+
label: $t,
|
|
409
|
+
li: Ct,
|
|
410
|
+
main: Ht,
|
|
411
|
+
mark: jt,
|
|
412
|
+
nav: zt,
|
|
413
|
+
ol: Rt,
|
|
414
|
+
optgroup: Bt,
|
|
415
|
+
option: Lt,
|
|
416
|
+
p: It,
|
|
417
|
+
pre: qt,
|
|
418
|
+
s: Pt,
|
|
419
|
+
section: Et,
|
|
420
|
+
select: Ot,
|
|
421
|
+
span: Gt,
|
|
422
|
+
strong: Dt,
|
|
423
|
+
sub: At,
|
|
424
|
+
sup: Ft,
|
|
425
|
+
textarea: Xt,
|
|
426
|
+
u: Vt,
|
|
427
|
+
ul: _t
|
|
428
|
+
}, Kt = v("a", k.a), Nt = v("article", k.article), Yt = v("aside", k.aside), Zt = v("b", k.b), Ut = v("bdi", k.bdi), Jt = v("bdo", k.bdo), Qt = v("blockquote", k.blockquote), eo = v("br", k.br), to = v("button", k.button), oo = v("code", k.code), ro = v("del", k.del), no = v("div", k.div), io = v("em", k.em), so = v("fieldset", k.fieldset), ao = v("footer", k.footer), lo = v("form", k.form), co = v("h1", k.h1), uo = v("h2", k.h2), xo = v("h3", k.h3), po = v("h4", k.h4), go = v("h5", k.h5), ho = v("h6", k.h6), mo = v("header", k.header), bo = v("hr", k.hr), fo = v("i", k.i), vo = v("img", k.img), ko = v("input", k.input), yo = v("ins", k.ins), wo = v("kbd", k.kbd), Mo = v("label", k.label), To = v("li", k.li), Wo = v("main", k.main), So = v("mark", k.mark), $o = v("nav", k.nav), Co = v("ol", k.ol), Ho = v("optgroup", k.optgroup), jo = v("option", k.option), zo = v("p", k.p), Ro = v("pre", k.pre), Bo = v("s", k.s), Lo = v("section", k.section), Io = v("select", k.select), qo = v("span", k.span), Po = v("strong", k.strong), Eo = v("sub", k.sub), Oo = v("sup", k.sup), Go = v("textarea", k.textarea), Do = v("u", k.u), Ao = v("ul", k.ul);
|
|
429
|
+
var Fo = /* @__PURE__ */ Object.freeze({
|
|
430
430
|
__proto__: null,
|
|
431
|
-
a:
|
|
432
|
-
article:
|
|
433
|
-
aside:
|
|
434
|
-
b:
|
|
435
|
-
bdi:
|
|
436
|
-
bdo:
|
|
437
|
-
blockquote:
|
|
438
|
-
br:
|
|
439
|
-
button:
|
|
440
|
-
code:
|
|
441
|
-
del:
|
|
442
|
-
div:
|
|
443
|
-
em:
|
|
444
|
-
fieldset:
|
|
445
|
-
footer:
|
|
446
|
-
form:
|
|
447
|
-
h1:
|
|
448
|
-
h2:
|
|
449
|
-
h3:
|
|
450
|
-
h4:
|
|
451
|
-
h5:
|
|
452
|
-
h6:
|
|
453
|
-
header:
|
|
454
|
-
hr:
|
|
455
|
-
i:
|
|
456
|
-
img:
|
|
457
|
-
input:
|
|
458
|
-
ins:
|
|
459
|
-
kbd:
|
|
460
|
-
label:
|
|
461
|
-
li:
|
|
462
|
-
main:
|
|
463
|
-
mark:
|
|
464
|
-
nav:
|
|
465
|
-
ol:
|
|
466
|
-
optgroup:
|
|
467
|
-
option:
|
|
468
|
-
p:
|
|
469
|
-
pre:
|
|
470
|
-
s:
|
|
471
|
-
section:
|
|
472
|
-
select:
|
|
473
|
-
span:
|
|
474
|
-
strong:
|
|
475
|
-
sub:
|
|
476
|
-
sup:
|
|
477
|
-
textarea:
|
|
478
|
-
u:
|
|
479
|
-
ul:
|
|
431
|
+
a: Kt,
|
|
432
|
+
article: Nt,
|
|
433
|
+
aside: Yt,
|
|
434
|
+
b: Zt,
|
|
435
|
+
bdi: Ut,
|
|
436
|
+
bdo: Jt,
|
|
437
|
+
blockquote: Qt,
|
|
438
|
+
br: eo,
|
|
439
|
+
button: to,
|
|
440
|
+
code: oo,
|
|
441
|
+
del: ro,
|
|
442
|
+
div: no,
|
|
443
|
+
em: io,
|
|
444
|
+
fieldset: so,
|
|
445
|
+
footer: ao,
|
|
446
|
+
form: lo,
|
|
447
|
+
h1: co,
|
|
448
|
+
h2: uo,
|
|
449
|
+
h3: xo,
|
|
450
|
+
h4: po,
|
|
451
|
+
h5: go,
|
|
452
|
+
h6: ho,
|
|
453
|
+
header: mo,
|
|
454
|
+
hr: bo,
|
|
455
|
+
i: fo,
|
|
456
|
+
img: vo,
|
|
457
|
+
input: ko,
|
|
458
|
+
ins: yo,
|
|
459
|
+
kbd: wo,
|
|
460
|
+
label: Mo,
|
|
461
|
+
li: To,
|
|
462
|
+
main: Wo,
|
|
463
|
+
mark: So,
|
|
464
|
+
nav: $o,
|
|
465
|
+
ol: Co,
|
|
466
|
+
optgroup: Ho,
|
|
467
|
+
option: jo,
|
|
468
|
+
p: zo,
|
|
469
|
+
pre: Ro,
|
|
470
|
+
s: Bo,
|
|
471
|
+
section: Lo,
|
|
472
|
+
select: Io,
|
|
473
|
+
span: qo,
|
|
474
|
+
strong: Po,
|
|
475
|
+
sub: Eo,
|
|
476
|
+
sup: Oo,
|
|
477
|
+
textarea: Go,
|
|
478
|
+
u: Do,
|
|
479
|
+
ul: Ao
|
|
480
480
|
});
|
|
481
|
-
const
|
|
482
|
-
function
|
|
483
|
-
return
|
|
481
|
+
const je = F(null);
|
|
482
|
+
function Xo() {
|
|
483
|
+
return D(je);
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
487
|
-
return
|
|
485
|
+
const ze = F(null);
|
|
486
|
+
function Vo() {
|
|
487
|
+
return D(ze);
|
|
488
488
|
}
|
|
489
|
-
const
|
|
489
|
+
const N = {
|
|
490
490
|
item: {
|
|
491
491
|
"position-kVAEAm": "position-x1n2onr6",
|
|
492
492
|
"zIndex-kY2c9j": "zIndex-x1lhispz",
|
|
@@ -524,74 +524,74 @@ const K = {
|
|
|
524
524
|
"marginTop-keoZOQ": "marginTop-xn1ib9x",
|
|
525
525
|
$$css: "ButtonGroup/attached.css.ts:39"
|
|
526
526
|
}
|
|
527
|
-
},
|
|
527
|
+
}, _o = {
|
|
528
528
|
horizontal: {
|
|
529
|
-
first:
|
|
530
|
-
middle:
|
|
531
|
-
last:
|
|
529
|
+
first: N.horizontalFirst,
|
|
530
|
+
middle: N.horizontalMiddle,
|
|
531
|
+
last: N.horizontalLast,
|
|
532
532
|
only: null
|
|
533
533
|
},
|
|
534
534
|
vertical: {
|
|
535
|
-
first:
|
|
536
|
-
middle:
|
|
537
|
-
last:
|
|
535
|
+
first: N.verticalFirst,
|
|
536
|
+
middle: N.verticalMiddle,
|
|
537
|
+
last: N.verticalLast,
|
|
538
538
|
only: null
|
|
539
539
|
}
|
|
540
540
|
};
|
|
541
|
-
function
|
|
542
|
-
const e =
|
|
541
|
+
function Ko(o) {
|
|
542
|
+
const e = B.c(26);
|
|
543
543
|
let t;
|
|
544
544
|
e[0] !== o ? (t = o === void 0 ? {} : o, e[0] = o, e[1] = t) : t = e[1];
|
|
545
545
|
const {
|
|
546
546
|
disabled: r
|
|
547
|
-
} = t,
|
|
547
|
+
} = t, c = r === void 0 ? !1 : r, n = Z(), d = q(null), s = Vo(), l = Xo(), i = s?.register, a = l?.register;
|
|
548
548
|
let u, p;
|
|
549
|
-
e[2] !==
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
549
|
+
e[2] !== c || e[3] !== i || e[4] !== n || e[5] !== a ? (u = () => {
|
|
550
|
+
const S = d.current;
|
|
551
|
+
if (!S)
|
|
552
552
|
return;
|
|
553
|
-
const
|
|
553
|
+
const $ = i?.(n, S, c), C = a?.(n, S, c);
|
|
554
554
|
return () => {
|
|
555
|
-
|
|
555
|
+
$?.(), C?.();
|
|
556
556
|
};
|
|
557
|
-
}, p = [n,
|
|
557
|
+
}, p = [n, c, i, a], e[2] = c, e[3] = i, e[4] = n, e[5] = a, e[6] = u, e[7] = p) : (u = e[6], p = e[7]), xe(u, p);
|
|
558
558
|
let x;
|
|
559
|
-
e[8] !==
|
|
559
|
+
e[8] !== s || e[9] !== n ? (x = s ? s.positionOf(n) : null, e[8] = s, e[9] = n, e[10] = x) : x = e[10];
|
|
560
560
|
const h = x;
|
|
561
561
|
let g;
|
|
562
|
-
e[11] !==
|
|
563
|
-
const b = g,
|
|
562
|
+
e[11] !== s || e[12] !== h ? (g = s && h ? [N.item, _o[s.orientation][h]] : null, e[11] = s, e[12] = h, e[13] = g) : g = e[13];
|
|
563
|
+
const b = g, y = s !== null;
|
|
564
564
|
let m;
|
|
565
|
-
e[14] !== n || e[15] !==
|
|
566
|
-
let
|
|
567
|
-
e[17] !== n || e[18] !==
|
|
568
|
-
let
|
|
569
|
-
return e[20] !== h || e[21] !== b || e[22] !==
|
|
570
|
-
ref:
|
|
571
|
-
attached:
|
|
565
|
+
e[14] !== n || e[15] !== l ? (m = l?.tabIndexOf(n), e[14] = n, e[15] = l, e[16] = m) : m = e[16];
|
|
566
|
+
let f;
|
|
567
|
+
e[17] !== n || e[18] !== l ? (f = l ? () => l.onItemFocus(n) : void 0, e[17] = n, e[18] = l, e[19] = f) : f = e[19];
|
|
568
|
+
let W;
|
|
569
|
+
return e[20] !== h || e[21] !== b || e[22] !== y || e[23] !== m || e[24] !== f ? (W = {
|
|
570
|
+
ref: d,
|
|
571
|
+
attached: y,
|
|
572
572
|
position: h,
|
|
573
573
|
style: b,
|
|
574
574
|
tabIndex: m,
|
|
575
|
-
onFocus:
|
|
576
|
-
}, e[20] = h, e[21] = b, e[22] =
|
|
575
|
+
onFocus: f
|
|
576
|
+
}, e[20] = h, e[21] = b, e[22] = y, e[23] = m, e[24] = f, e[25] = W) : W = e[25], W;
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const No = {
|
|
579
579
|
xjvd03b: "xoev3oz xjvd03b",
|
|
580
580
|
$$css: !0
|
|
581
|
-
},
|
|
581
|
+
}, Yo = {
|
|
582
582
|
x13v825q: "x1jk1o70 x13v825q",
|
|
583
583
|
$$css: !0
|
|
584
|
-
},
|
|
584
|
+
}, Zo = {
|
|
585
585
|
xjvd03b: "x1ud4188 xjvd03b",
|
|
586
586
|
$$css: !0
|
|
587
|
-
},
|
|
587
|
+
}, Uo = {
|
|
588
588
|
x13v825q: "xc8o4hb x13v825q",
|
|
589
589
|
$$css: !0
|
|
590
|
-
},
|
|
590
|
+
}, Me = F({
|
|
591
591
|
theme: null,
|
|
592
592
|
colors: {}
|
|
593
593
|
});
|
|
594
|
-
function
|
|
594
|
+
function Jo(o, e, t) {
|
|
595
595
|
const r = o.theme === e ? o.colors : {};
|
|
596
596
|
return {
|
|
597
597
|
theme: e,
|
|
@@ -601,22 +601,22 @@ function _o(o, e, t) {
|
|
|
601
601
|
} : r
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Qo(o) {
|
|
605
605
|
return /[;{}<>"'\\]/.test(o) ? !1 : /^#[0-9a-f]{3,8}$/i.test(o) || /^(rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^()]*\)$/i.test(o) || /^[a-z]+$/i.test(o);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
const r = Object.entries(e).flatMap(([n,
|
|
609
|
-
const
|
|
610
|
-
return
|
|
607
|
+
function er(o, e, t) {
|
|
608
|
+
const r = Object.entries(e).flatMap(([n, d]) => {
|
|
609
|
+
const s = t(n);
|
|
610
|
+
return s && typeof d == "string" && Qo(d) ? [`${s}: ${d};`] : [];
|
|
611
611
|
});
|
|
612
612
|
if (r.length === 0) return null;
|
|
613
|
-
const
|
|
614
|
-
return `${
|
|
613
|
+
const c = `[data-duro-theme="${o}"]`;
|
|
614
|
+
return `${c}${c} { ${r.join(" ")} }`;
|
|
615
615
|
}
|
|
616
|
-
const
|
|
617
|
-
light: [
|
|
618
|
-
"high-contrast": [
|
|
619
|
-
},
|
|
616
|
+
const tr = {
|
|
617
|
+
light: [No, Yo],
|
|
618
|
+
"high-contrast": [Zo, Uo]
|
|
619
|
+
}, Te = {
|
|
620
620
|
root: {
|
|
621
621
|
"display-k1xSpc": "display-xjp7ctv",
|
|
622
622
|
"color-kMwMTN": "color-x95150z",
|
|
@@ -632,67 +632,67 @@ const Yo = {
|
|
|
632
632
|
"zIndex-kY2c9j": "zIndex-x3z26px",
|
|
633
633
|
$$css: "ThemeProvider/ThemeProvider.tsx:39"
|
|
634
634
|
}
|
|
635
|
-
},
|
|
636
|
-
function
|
|
637
|
-
return
|
|
635
|
+
}, Re = F(null);
|
|
636
|
+
function or() {
|
|
637
|
+
return D(Re);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
const e = String(
|
|
639
|
+
function rr(o) {
|
|
640
|
+
const e = String(Ne[o] ?? ""), t = /^var\((--[\w-]+)\)$/.exec(e);
|
|
641
641
|
return t ? t[1] : null;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
const e =
|
|
643
|
+
function Pr(o) {
|
|
644
|
+
const e = B.c(25), {
|
|
645
645
|
theme: t,
|
|
646
646
|
overrides: r,
|
|
647
|
-
children:
|
|
648
|
-
} = o, n = t === void 0 ? "dark" : t,
|
|
647
|
+
children: c
|
|
648
|
+
} = o, n = t === void 0 ? "dark" : t, d = tr[n], s = d?.[0], l = d?.[1];
|
|
649
649
|
let i;
|
|
650
|
-
e[0] !==
|
|
651
|
-
const
|
|
650
|
+
e[0] !== s || e[1] !== l ? (i = [s, l, Te.root], e[0] = s, e[1] = l, e[2] = i) : i = e[2];
|
|
651
|
+
const a = i, [u, p] = ee(null), x = Z(), h = D(Me);
|
|
652
652
|
let g;
|
|
653
|
-
e[3] !== h || e[4] !== r || e[5] !== n ? (g =
|
|
653
|
+
e[3] !== h || e[4] !== r || e[5] !== n ? (g = Jo(h, n, r), e[3] = h, e[4] = r, e[5] = n, e[6] = g) : g = e[6];
|
|
654
654
|
const b = g;
|
|
655
|
-
let
|
|
656
|
-
e[7] !== b.colors || e[8] !== x ? (
|
|
657
|
-
const m =
|
|
655
|
+
let y;
|
|
656
|
+
e[7] !== b.colors || e[8] !== x ? (y = Object.keys(b.colors).length > 0 ? er(x, b.colors, rr) : null, e[7] = b.colors, e[8] = x, e[9] = y) : y = e[9];
|
|
657
|
+
const m = y, f = m ? x : void 0;
|
|
658
|
+
let W;
|
|
659
|
+
e[10] !== m ? (W = m ? /* @__PURE__ */ T("style", { children: m }) : null, e[10] = m, e[11] = W) : W = e[11];
|
|
658
660
|
let S;
|
|
659
|
-
e[
|
|
661
|
+
e[12] !== c || e[13] !== u ? (S = /* @__PURE__ */ T(Re.Provider, { value: u, children: c }), e[12] = c, e[13] = u, e[14] = S) : S = e[14];
|
|
660
662
|
let $;
|
|
661
|
-
e[
|
|
662
|
-
let
|
|
663
|
-
e[
|
|
664
|
-
let
|
|
665
|
-
e[
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
j
|
|
671
|
-
] }), e[19] = d, e[20] = M, e[21] = v, e[22] = S, e[23] = n, e[24] = z) : z = e[24], z;
|
|
663
|
+
e[15] !== b || e[16] !== S ? ($ = /* @__PURE__ */ T(Me.Provider, { value: b, children: S }), e[15] = b, e[16] = S, e[17] = $) : $ = e[17];
|
|
664
|
+
let C;
|
|
665
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ T("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:96", ref: p, "data-portal-mount": !0, ...j(z.div, Te.portalMount) }), e[18] = C) : C = e[18];
|
|
666
|
+
let H;
|
|
667
|
+
return e[19] !== a || e[20] !== $ || e[21] !== f || e[22] !== W || e[23] !== n ? (H = /* @__PURE__ */ ue("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:88", "data-theme": n, "data-duro-theme": f, ...j(z.div, a), children: [
|
|
668
|
+
W,
|
|
669
|
+
$,
|
|
670
|
+
C
|
|
671
|
+
] }), e[19] = a, e[20] = $, e[21] = f, e[22] = W, e[23] = n, e[24] = H) : H = e[24], H;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
const e =
|
|
673
|
+
function nr(o) {
|
|
674
|
+
const e = B.c(2), {
|
|
675
675
|
children: t
|
|
676
676
|
} = o;
|
|
677
677
|
let r;
|
|
678
|
-
return e[0] !== t ? (r = /* @__PURE__ */
|
|
678
|
+
return e[0] !== t ? (r = /* @__PURE__ */ T(ze.Provider, { value: null, children: /* @__PURE__ */ T(je.Provider, { value: null, children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function Be(o) {
|
|
681
681
|
return o.button === 0 && !o.metaKey && !o.ctrlKey && !o.shiftKey && !o.altKey && !o.defaultPrevented;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function Er(o, e, t) {
|
|
684
684
|
if (e)
|
|
685
685
|
return (r) => {
|
|
686
|
-
t != null || !
|
|
686
|
+
t != null || !Be(r) || e(o, r);
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const Or = {
|
|
690
690
|
xs: 480,
|
|
691
691
|
sm: 640,
|
|
692
692
|
md: 768,
|
|
693
693
|
lg: 1024,
|
|
694
694
|
xl: 1280
|
|
695
|
-
},
|
|
695
|
+
}, Le = {
|
|
696
696
|
touchTarget: "var(--touchTarget-x1u5badx)",
|
|
697
697
|
controlSm: "var(--controlSm-x6ymn93)",
|
|
698
698
|
controlMd: "var(--controlMd-xkvaeme)",
|
|
@@ -785,24 +785,24 @@ const Br = {
|
|
|
785
785
|
dragThumbW: "var(--dragThumbW-x1bz26bx)",
|
|
786
786
|
dragThumbH: "var(--dragThumbH-xbt2de9)",
|
|
787
787
|
__varGroupHash__: "x1w57kmz"
|
|
788
|
-
},
|
|
789
|
-
function
|
|
788
|
+
}, ir = typeof process < "u" && process.env?.NODE_ENV === "production", We = /* @__PURE__ */ new Set();
|
|
789
|
+
function Ie(o, e, t) {
|
|
790
790
|
const r = `${o}:${e}`;
|
|
791
|
-
|
|
791
|
+
ir || We.has(r) || (We.add(r), console.warn(`[duro-app/ui ${o}] ${t}`));
|
|
792
792
|
}
|
|
793
|
-
const
|
|
794
|
-
function
|
|
795
|
-
return typeof o == "string" &&
|
|
793
|
+
const qe = new Set(Ke);
|
|
794
|
+
function Pe(o) {
|
|
795
|
+
return typeof o == "string" && qe.has(o) ? Le[o] : o;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Se(o) {
|
|
798
798
|
const e = o;
|
|
799
799
|
if (typeof e != "string") return e;
|
|
800
800
|
const t = /^(minmax|fit-content)\((.*)\)$/.exec(e);
|
|
801
801
|
if (t) {
|
|
802
|
-
const r = t[2].split(",").map((
|
|
802
|
+
const r = t[2].split(",").map((c) => String(Pe(c.trim())));
|
|
803
803
|
return `${t[1]}(${r.join(", ")})`;
|
|
804
804
|
}
|
|
805
|
-
return
|
|
805
|
+
return qe.has(e) ? Le[e] : e;
|
|
806
806
|
}
|
|
807
807
|
const P = {
|
|
808
808
|
root: {
|
|
@@ -905,13 +905,18 @@ const P = {
|
|
|
905
905
|
"transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
|
|
906
906
|
$$css: "Menu/styles.css.ts:98"
|
|
907
907
|
},
|
|
908
|
+
itemDisabled: {
|
|
909
|
+
"color-kMwMTN": "color-x1d12y54",
|
|
910
|
+
"cursor-kkrTdU": "cursor-x1h6gzvc",
|
|
911
|
+
$$css: "Menu/styles.css.ts:114"
|
|
912
|
+
},
|
|
908
913
|
itemHighlighted: {
|
|
909
914
|
"backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
|
|
910
915
|
"outlineStyle-k3XXqK": "outlineStyle-xaatb59",
|
|
911
916
|
"outlineWidth-kMeerF": "outlineWidth-x1a33d5h",
|
|
912
917
|
"outlineColor-kjBf7l": "outlineColor-x1uczgqu",
|
|
913
918
|
"outlineOffset-kInvED": "outlineOffset-x186wpgv",
|
|
914
|
-
$$css: "Menu/styles.css.ts:
|
|
919
|
+
$$css: "Menu/styles.css.ts:120"
|
|
915
920
|
},
|
|
916
921
|
separator: {
|
|
917
922
|
"height-kZKoxP": "height-xqtp20y",
|
|
@@ -920,399 +925,407 @@ const P = {
|
|
|
920
925
|
"borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
|
|
921
926
|
"borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
|
|
922
927
|
"borderTopColor-kLZC3w": "borderTopColor-xvuocu",
|
|
923
|
-
$$css: "Menu/styles.css.ts:
|
|
928
|
+
$$css: "Menu/styles.css.ts:127"
|
|
924
929
|
},
|
|
925
930
|
linkItem: {
|
|
926
931
|
"textDecoration-kybGjl": "textDecoration-x1hl2dhg",
|
|
927
932
|
"color-kMwMTN": "color-x95150z color-xtolcfe",
|
|
928
|
-
$$css: "Menu/styles.css.ts:
|
|
933
|
+
$$css: "Menu/styles.css.ts:135"
|
|
929
934
|
}
|
|
930
|
-
},
|
|
931
|
-
function
|
|
932
|
-
const o =
|
|
935
|
+
}, Ee = F(null);
|
|
936
|
+
function ge() {
|
|
937
|
+
const o = D(Ee);
|
|
933
938
|
if (!o)
|
|
934
939
|
throw new Error("Menu compound components must be used within Menu.Root");
|
|
935
940
|
return o;
|
|
936
941
|
}
|
|
937
|
-
function
|
|
942
|
+
function sr(o, e) {
|
|
938
943
|
return o ? !e.some((t) => t != null && t.contains(o)) : !0;
|
|
939
944
|
}
|
|
940
|
-
function
|
|
945
|
+
function ar({
|
|
941
946
|
open: o,
|
|
942
947
|
defaultOpen: e = !1,
|
|
943
948
|
onOpenChange: t
|
|
944
949
|
}) {
|
|
945
|
-
const [r,
|
|
946
|
-
|
|
947
|
-
const
|
|
948
|
-
|
|
949
|
-
const i =
|
|
950
|
-
|
|
950
|
+
const [r, c] = ee(e), n = o !== void 0, d = n ? o : r, s = q(d);
|
|
951
|
+
s.current = d;
|
|
952
|
+
const l = q(t);
|
|
953
|
+
l.current = t;
|
|
954
|
+
const i = $e((a) => {
|
|
955
|
+
a !== s.current && (n || c(a), l.current?.(a));
|
|
951
956
|
}, [n]);
|
|
952
957
|
return {
|
|
953
|
-
open:
|
|
954
|
-
openRef:
|
|
958
|
+
open: d,
|
|
959
|
+
openRef: s,
|
|
955
960
|
setOpen: i
|
|
956
961
|
};
|
|
957
962
|
}
|
|
958
|
-
function
|
|
959
|
-
const e =
|
|
963
|
+
function lr(o) {
|
|
964
|
+
const e = B.c(39), {
|
|
960
965
|
open: t,
|
|
961
966
|
openRef: r,
|
|
962
|
-
setOpen:
|
|
963
|
-
} =
|
|
964
|
-
let
|
|
965
|
-
e[0] !== n ? (
|
|
966
|
-
|
|
967
|
-
}, i = [n], e[0] = n, e[1] =
|
|
968
|
-
const
|
|
967
|
+
setOpen: c
|
|
968
|
+
} = ar(o), [n, d] = ee(null), s = q(n);
|
|
969
|
+
let l, i;
|
|
970
|
+
e[0] !== n ? (l = () => {
|
|
971
|
+
s.current = n;
|
|
972
|
+
}, i = [n], e[0] = n, e[1] = l, e[2] = i) : (l = e[1], i = e[2]), xe(l, i);
|
|
973
|
+
const a = Z(), u = Z(), p = q(null), x = q(null), h = q(null);
|
|
969
974
|
let g;
|
|
970
975
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ new Map(), e[3] = g) : g = e[3];
|
|
971
|
-
const b =
|
|
976
|
+
const b = q(g);
|
|
977
|
+
let y;
|
|
978
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (y = [], e[4] = y) : y = e[4];
|
|
979
|
+
const m = q(y);
|
|
972
980
|
let f;
|
|
973
|
-
e[
|
|
974
|
-
const
|
|
975
|
-
let
|
|
976
|
-
e[
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
e[8]
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
e[
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
e[
|
|
992
|
-
|
|
981
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ new Set(), e[5] = f) : f = e[5];
|
|
982
|
+
const W = q(f);
|
|
983
|
+
let S;
|
|
984
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (S = () => m.current.filter((R) => !W.current.has(R)), e[6] = S) : S = e[6];
|
|
985
|
+
const $ = S;
|
|
986
|
+
let C;
|
|
987
|
+
e[7] !== r || e[8] !== c ? (C = () => {
|
|
988
|
+
r.current && (c(!1), d(null));
|
|
989
|
+
}, e[7] = r, e[8] = c, e[9] = C) : C = e[9];
|
|
990
|
+
const H = C;
|
|
991
|
+
let E;
|
|
992
|
+
e[10] !== H || e[11] !== r ? (E = () => {
|
|
993
|
+
r.current && (H(), x.current?.focus());
|
|
994
|
+
}, e[10] = H, e[11] = r, e[12] = E) : E = e[12];
|
|
995
|
+
const L = E;
|
|
996
|
+
let A;
|
|
997
|
+
e[13] !== L || e[14] !== r || e[15] !== c ? (A = () => {
|
|
998
|
+
r.current ? L() : c(!0);
|
|
999
|
+
}, e[13] = L, e[14] = r, e[15] = c, e[16] = A) : A = e[16];
|
|
1000
|
+
const X = A, _ = q(!1);
|
|
1001
|
+
let te, oe;
|
|
1002
|
+
e[17] !== t ? (oe = () => {
|
|
1003
|
+
if (t && !_.current) {
|
|
993
1004
|
h.current?.focus({
|
|
994
1005
|
preventScroll: !0
|
|
995
1006
|
});
|
|
996
|
-
const
|
|
997
|
-
|
|
1007
|
+
const R = $()[0];
|
|
1008
|
+
R && d(R);
|
|
998
1009
|
} else
|
|
999
|
-
!t &&
|
|
1000
|
-
|
|
1001
|
-
},
|
|
1002
|
-
let
|
|
1003
|
-
e[
|
|
1010
|
+
!t && _.current && d(null);
|
|
1011
|
+
_.current = t;
|
|
1012
|
+
}, te = [t, $], e[17] = t, e[18] = te, e[19] = oe) : (te = e[18], oe = e[19]), V(oe, te);
|
|
1013
|
+
let re, ne;
|
|
1014
|
+
e[20] !== n ? (re = () => {
|
|
1004
1015
|
if (!n)
|
|
1005
1016
|
return;
|
|
1006
1017
|
b.current.get(n)?.scrollIntoView?.({
|
|
1007
1018
|
block: "nearest"
|
|
1008
1019
|
});
|
|
1009
|
-
},
|
|
1010
|
-
let
|
|
1011
|
-
e[
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1020
|
+
}, ne = [n], e[20] = n, e[21] = re, e[22] = ne) : (re = e[21], ne = e[22]), V(re, ne);
|
|
1021
|
+
let ie;
|
|
1022
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (ie = (R, U, J) => {
|
|
1023
|
+
const O = J === void 0 ? !1 : J;
|
|
1024
|
+
b.current.set(R, U), O ? W.current.add(R) : W.current.delete(R);
|
|
1025
|
+
const I = b.current, G = [...I.keys()];
|
|
1026
|
+
return G.sort((K, Ae) => {
|
|
1027
|
+
const ke = I.get(K), ye = I.get(Ae);
|
|
1028
|
+
return !ke || !ye ? 0 : ke.compareDocumentPosition(ye) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1029
|
+
}), m.current = G, () => {
|
|
1030
|
+
b.current.delete(R), W.current.delete(R), m.current = m.current.filter((K) => K !== R);
|
|
1019
1031
|
};
|
|
1020
|
-
}, e[
|
|
1021
|
-
const
|
|
1022
|
-
let
|
|
1023
|
-
e[
|
|
1024
|
-
const
|
|
1025
|
-
if (!
|
|
1032
|
+
}, e[23] = ie) : ie = e[23];
|
|
1033
|
+
const De = ie;
|
|
1034
|
+
let se, ae;
|
|
1035
|
+
e[24] !== L || e[25] !== t ? (se = () => {
|
|
1036
|
+
const R = h.current;
|
|
1037
|
+
if (!R || !t)
|
|
1026
1038
|
return;
|
|
1027
|
-
const
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1039
|
+
const U = function(O) {
|
|
1040
|
+
if (O.key === "Escape") {
|
|
1041
|
+
O.preventDefault(), O.stopPropagation(), L();
|
|
1030
1042
|
return;
|
|
1031
1043
|
}
|
|
1032
|
-
if (
|
|
1033
|
-
|
|
1044
|
+
if (O.key === "Tab") {
|
|
1045
|
+
L();
|
|
1034
1046
|
return;
|
|
1035
1047
|
}
|
|
1036
|
-
const
|
|
1037
|
-
if (
|
|
1038
|
-
e: switch (
|
|
1048
|
+
const I = $();
|
|
1049
|
+
if (I.length !== 0)
|
|
1050
|
+
e: switch (O.key) {
|
|
1039
1051
|
case "ArrowDown": {
|
|
1040
|
-
|
|
1041
|
-
const
|
|
1042
|
-
return
|
|
1052
|
+
O.preventDefault(), d((G) => {
|
|
1053
|
+
const K = G ? I.indexOf(G) : -1;
|
|
1054
|
+
return I[(K + 1) % I.length];
|
|
1043
1055
|
});
|
|
1044
1056
|
break e;
|
|
1045
1057
|
}
|
|
1046
1058
|
case "ArrowUp": {
|
|
1047
|
-
|
|
1048
|
-
const
|
|
1049
|
-
return
|
|
1059
|
+
O.preventDefault(), d((G) => {
|
|
1060
|
+
const K = G ? I.indexOf(G) : 0;
|
|
1061
|
+
return I[(K - 1 + I.length) % I.length];
|
|
1050
1062
|
});
|
|
1051
1063
|
break e;
|
|
1052
1064
|
}
|
|
1053
1065
|
case "Home": {
|
|
1054
|
-
|
|
1066
|
+
O.preventDefault(), d(I[0]);
|
|
1055
1067
|
break e;
|
|
1056
1068
|
}
|
|
1057
1069
|
case "End": {
|
|
1058
|
-
|
|
1070
|
+
O.preventDefault(), d(I[I.length - 1]);
|
|
1059
1071
|
break e;
|
|
1060
1072
|
}
|
|
1061
1073
|
case "Enter":
|
|
1062
1074
|
case " ": {
|
|
1063
|
-
|
|
1064
|
-
const
|
|
1065
|
-
|
|
1075
|
+
O.preventDefault();
|
|
1076
|
+
const G = s.current;
|
|
1077
|
+
G && !W.current.has(G) && b.current.get(G)?.click();
|
|
1066
1078
|
}
|
|
1067
1079
|
}
|
|
1068
1080
|
};
|
|
1069
|
-
return
|
|
1070
|
-
},
|
|
1071
|
-
let
|
|
1072
|
-
e[
|
|
1081
|
+
return R.addEventListener("keydown", U), () => R.removeEventListener("keydown", U);
|
|
1082
|
+
}, ae = [t, L, $], e[24] = L, e[25] = t, e[26] = se, e[27] = ae) : (se = e[26], ae = e[27]), V(se, ae);
|
|
1083
|
+
let le, ce;
|
|
1084
|
+
e[28] !== H || e[29] !== t ? (le = () => {
|
|
1073
1085
|
if (!t)
|
|
1074
1086
|
return;
|
|
1075
|
-
const
|
|
1076
|
-
|
|
1087
|
+
const R = function(J) {
|
|
1088
|
+
sr(J.target, [h.current, x.current]) && H();
|
|
1077
1089
|
};
|
|
1078
|
-
return document.addEventListener("pointerdown",
|
|
1079
|
-
},
|
|
1080
|
-
let
|
|
1081
|
-
return e[
|
|
1090
|
+
return document.addEventListener("pointerdown", R, !0), () => document.removeEventListener("pointerdown", R, !0);
|
|
1091
|
+
}, ce = [t, H], e[28] = H, e[29] = t, e[30] = le, e[31] = ce) : (le = e[30], ce = e[31]), V(le, ce);
|
|
1092
|
+
let de;
|
|
1093
|
+
return e[32] !== L || e[33] !== n || e[34] !== a || e[35] !== t || e[36] !== X || e[37] !== u ? (de = {
|
|
1082
1094
|
ctx: {
|
|
1083
1095
|
open: t,
|
|
1084
|
-
toggle:
|
|
1085
|
-
close:
|
|
1086
|
-
menuId:
|
|
1096
|
+
toggle: X,
|
|
1097
|
+
close: L,
|
|
1098
|
+
menuId: a,
|
|
1087
1099
|
triggerId: u,
|
|
1088
1100
|
highlightedId: n,
|
|
1089
|
-
setHighlightedId:
|
|
1090
|
-
registerItem:
|
|
1101
|
+
setHighlightedId: d,
|
|
1102
|
+
registerItem: De,
|
|
1091
1103
|
triggerRef: x,
|
|
1092
1104
|
popupRef: h
|
|
1093
1105
|
},
|
|
1094
1106
|
rootRef: p
|
|
1095
|
-
}, e[
|
|
1107
|
+
}, e[32] = L, e[33] = n, e[34] = a, e[35] = t, e[36] = X, e[37] = u, e[38] = de) : de = e[38], de;
|
|
1096
1108
|
}
|
|
1097
|
-
function
|
|
1109
|
+
function cr({
|
|
1098
1110
|
anchor: o,
|
|
1099
1111
|
popup: e,
|
|
1100
1112
|
viewport: t,
|
|
1101
1113
|
side: r,
|
|
1102
|
-
align:
|
|
1114
|
+
align: c,
|
|
1103
1115
|
offset: n
|
|
1104
1116
|
}) {
|
|
1105
|
-
const
|
|
1106
|
-
let
|
|
1107
|
-
r === "bottom" && !
|
|
1108
|
-
const u =
|
|
1117
|
+
const d = o.top + o.height + n, s = o.top - n - e.height, l = d + e.height <= t.height, i = s >= 0;
|
|
1118
|
+
let a = r;
|
|
1119
|
+
r === "bottom" && !l && i ? a = "top" : r === "top" && !i && l && (a = "bottom");
|
|
1120
|
+
const u = a === "bottom" ? d : s;
|
|
1109
1121
|
let p = o.left;
|
|
1110
|
-
|
|
1122
|
+
c === "center" ? p = o.left + (o.width - e.width) / 2 : c === "end" && (p = o.left + o.width - e.width);
|
|
1111
1123
|
const x = Math.max(0, t.width - e.width);
|
|
1112
1124
|
return p = Math.min(Math.max(0, p), x), {
|
|
1113
1125
|
top: u,
|
|
1114
1126
|
left: p,
|
|
1115
|
-
side:
|
|
1127
|
+
side: a
|
|
1116
1128
|
};
|
|
1117
1129
|
}
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
const t =
|
|
1130
|
+
const dr = F(null);
|
|
1131
|
+
function ur(o, e) {
|
|
1132
|
+
const t = B.c(5), {
|
|
1121
1133
|
active: r
|
|
1122
|
-
} = e,
|
|
1123
|
-
let n,
|
|
1124
|
-
t[0] !== r || t[1] !==
|
|
1125
|
-
const
|
|
1126
|
-
if (!(!
|
|
1127
|
-
return
|
|
1128
|
-
},
|
|
1134
|
+
} = e, c = D(dr);
|
|
1135
|
+
let n, d;
|
|
1136
|
+
t[0] !== r || t[1] !== c || t[2] !== o ? (n = () => {
|
|
1137
|
+
const s = o.current;
|
|
1138
|
+
if (!(!c || !r || !s))
|
|
1139
|
+
return c.register(s);
|
|
1140
|
+
}, d = [c, r, o], t[0] = r, t[1] = c, t[2] = o, t[3] = n, t[4] = d) : (n = t[3], d = t[4]), xe(n, d);
|
|
1129
1141
|
}
|
|
1130
|
-
function
|
|
1131
|
-
const e =
|
|
1142
|
+
function xr(o) {
|
|
1143
|
+
const e = B.c(10), {
|
|
1132
1144
|
children: t,
|
|
1133
1145
|
open: r,
|
|
1134
|
-
defaultOpen:
|
|
1146
|
+
defaultOpen: c,
|
|
1135
1147
|
onOpenChange: n
|
|
1136
1148
|
} = o;
|
|
1137
|
-
let
|
|
1138
|
-
e[0] !==
|
|
1149
|
+
let d;
|
|
1150
|
+
e[0] !== c || e[1] !== n || e[2] !== r ? (d = {
|
|
1139
1151
|
open: r,
|
|
1140
|
-
defaultOpen:
|
|
1152
|
+
defaultOpen: c,
|
|
1141
1153
|
onOpenChange: n
|
|
1142
|
-
}, e[0] =
|
|
1154
|
+
}, e[0] = c, e[1] = n, e[2] = r, e[3] = d) : d = e[3];
|
|
1143
1155
|
const {
|
|
1144
|
-
ctx:
|
|
1145
|
-
rootRef:
|
|
1146
|
-
} =
|
|
1156
|
+
ctx: s,
|
|
1157
|
+
rootRef: l
|
|
1158
|
+
} = lr(d);
|
|
1147
1159
|
let i;
|
|
1148
|
-
e[4] !== t || e[5] !==
|
|
1149
|
-
let
|
|
1150
|
-
return e[7] !==
|
|
1160
|
+
e[4] !== t || e[5] !== l ? (i = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:42", ref: l, ...j(z.div, P.root), children: t }), e[4] = t, e[5] = l, e[6] = i) : i = e[6];
|
|
1161
|
+
let a;
|
|
1162
|
+
return e[7] !== s || e[8] !== i ? (a = /* @__PURE__ */ T(Ee.Provider, { value: s, children: i }), e[7] = s, e[8] = i, e[9] = a) : a = e[9], a;
|
|
1151
1163
|
}
|
|
1152
|
-
const
|
|
1153
|
-
function
|
|
1164
|
+
const pr = 'button, a[href], input, select, textarea, [role="button"]';
|
|
1165
|
+
function gr({
|
|
1154
1166
|
children: o,
|
|
1155
1167
|
"aria-label": e,
|
|
1156
1168
|
variant: t = "default",
|
|
1157
1169
|
size: r = "default",
|
|
1158
|
-
ref:
|
|
1170
|
+
ref: c
|
|
1159
1171
|
}) {
|
|
1160
1172
|
const {
|
|
1161
1173
|
open: n,
|
|
1162
|
-
toggle:
|
|
1163
|
-
menuId:
|
|
1164
|
-
triggerId:
|
|
1174
|
+
toggle: d,
|
|
1175
|
+
menuId: s,
|
|
1176
|
+
triggerId: l,
|
|
1165
1177
|
triggerRef: i
|
|
1166
|
-
} =
|
|
1167
|
-
i.current = x, u.current = x, typeof
|
|
1168
|
-
}, [
|
|
1169
|
-
return
|
|
1170
|
-
i.current?.querySelector(
|
|
1171
|
-
}, [i]), /* @__PURE__ */
|
|
1178
|
+
} = ge(), a = Ko(), u = a.ref, p = $e((x) => {
|
|
1179
|
+
i.current = x, u.current = x, typeof c == "function" ? c(x) : c && (c.current = x);
|
|
1180
|
+
}, [c, i, u]);
|
|
1181
|
+
return V(() => {
|
|
1182
|
+
i.current?.querySelector(pr) && Ie("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.");
|
|
1183
|
+
}, [i]), /* @__PURE__ */ T("button", { "data-element-src": "Menu/Menu.tsx:101", ref: p, tabIndex: a.tabIndex, onFocus: a.onFocus, id: l, type: "button", onClick: d, "aria-label": e, "aria-expanded": n, "aria-haspopup": "menu", "aria-controls": n ? s : void 0, ...j(z.button, P.trigger, t === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, a.style), children: o });
|
|
1172
1184
|
}
|
|
1173
|
-
function
|
|
1174
|
-
const e =
|
|
1185
|
+
function hr(o) {
|
|
1186
|
+
const e = B.c(26), {
|
|
1175
1187
|
children: t,
|
|
1176
1188
|
align: r
|
|
1177
|
-
} = o,
|
|
1189
|
+
} = o, c = r === void 0 ? "start" : r, {
|
|
1178
1190
|
open: n,
|
|
1179
|
-
menuId:
|
|
1180
|
-
triggerId:
|
|
1181
|
-
highlightedId:
|
|
1191
|
+
menuId: d,
|
|
1192
|
+
triggerId: s,
|
|
1193
|
+
highlightedId: l,
|
|
1182
1194
|
triggerRef: i,
|
|
1183
|
-
popupRef:
|
|
1184
|
-
} =
|
|
1195
|
+
popupRef: a
|
|
1196
|
+
} = ge();
|
|
1185
1197
|
let u;
|
|
1186
1198
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
1187
1199
|
top: 0,
|
|
1188
1200
|
left: 0
|
|
1189
1201
|
}, e[0] = u) : u = e[0];
|
|
1190
|
-
const [p, x] = ee(u), h =
|
|
1202
|
+
const [p, x] = ee(u), h = or();
|
|
1191
1203
|
let g;
|
|
1192
1204
|
e[1] !== n ? (g = {
|
|
1193
1205
|
active: n
|
|
1194
|
-
}, e[1] = n, e[2] = g) : g = e[2],
|
|
1195
|
-
let b,
|
|
1196
|
-
if (e[3] !==
|
|
1206
|
+
}, e[1] = n, e[2] = g) : g = e[2], ur(a, g);
|
|
1207
|
+
let b, y;
|
|
1208
|
+
if (e[3] !== c || e[4] !== n || e[5] !== a || e[6] !== i ? (b = () => {
|
|
1197
1209
|
if (!n)
|
|
1198
1210
|
return;
|
|
1199
1211
|
const E = () => {
|
|
1200
|
-
const
|
|
1201
|
-
if (!
|
|
1212
|
+
const L = a.current, A = i.current?.getBoundingClientRect();
|
|
1213
|
+
if (!L || !A)
|
|
1202
1214
|
return;
|
|
1203
|
-
const
|
|
1215
|
+
const X = cr({
|
|
1204
1216
|
anchor: {
|
|
1205
|
-
top:
|
|
1206
|
-
left:
|
|
1207
|
-
width:
|
|
1208
|
-
height:
|
|
1217
|
+
top: A.top,
|
|
1218
|
+
left: A.left,
|
|
1219
|
+
width: A.width,
|
|
1220
|
+
height: A.height
|
|
1209
1221
|
},
|
|
1210
1222
|
popup: {
|
|
1211
|
-
width:
|
|
1212
|
-
height:
|
|
1223
|
+
width: L.offsetWidth,
|
|
1224
|
+
height: L.offsetHeight
|
|
1213
1225
|
},
|
|
1214
1226
|
viewport: {
|
|
1215
1227
|
width: window.innerWidth,
|
|
1216
1228
|
height: window.innerHeight
|
|
1217
1229
|
},
|
|
1218
1230
|
side: "bottom",
|
|
1219
|
-
align:
|
|
1220
|
-
offset:
|
|
1231
|
+
align: c,
|
|
1232
|
+
offset: _e.xs
|
|
1221
1233
|
});
|
|
1222
|
-
x((
|
|
1223
|
-
top:
|
|
1224
|
-
left:
|
|
1234
|
+
x((_) => _.top === X.top && _.left === X.left ? _ : {
|
|
1235
|
+
top: X.top,
|
|
1236
|
+
left: X.left
|
|
1225
1237
|
});
|
|
1226
1238
|
};
|
|
1227
1239
|
return E(), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
|
|
1228
1240
|
window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
|
|
1229
1241
|
};
|
|
1230
|
-
},
|
|
1242
|
+
}, y = [n, c, a, i], e[3] = c, e[4] = n, e[5] = a, e[6] = i, e[7] = b, e[8] = y) : (b = e[7], y = e[8]), xe(b, y), !n || typeof document > "u")
|
|
1231
1243
|
return null;
|
|
1232
|
-
const m =
|
|
1233
|
-
let
|
|
1234
|
-
e[9] !== p.left || e[10] !== p.top ? (
|
|
1244
|
+
const m = l ?? void 0;
|
|
1245
|
+
let f;
|
|
1246
|
+
e[9] !== p.left || e[10] !== p.top ? (f = P.popupPosition(p.top, p.left), e[9] = p.left, e[10] = p.top, e[11] = f) : f = e[11];
|
|
1247
|
+
let W;
|
|
1248
|
+
e[12] !== f ? (W = [P.popup, f], e[12] = f, e[13] = W) : W = e[13];
|
|
1235
1249
|
let S;
|
|
1236
|
-
e[
|
|
1250
|
+
e[14] !== t ? (S = /* @__PURE__ */ T(nr, { children: t }), e[14] = t, e[15] = S) : S = e[15];
|
|
1237
1251
|
let $;
|
|
1238
|
-
e[
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
let z;
|
|
1243
|
-
return e[23] !== M || e[24] !== j ? (z = Oe(M, j), e[23] = M, e[24] = j, e[25] = z) : z = e[25], z;
|
|
1252
|
+
e[16] !== d || e[17] !== a || e[18] !== m || e[19] !== W || e[20] !== S || e[21] !== s ? ($ = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:171", ref: a, id: d, role: "menu", tabIndex: -1, "aria-labelledby": s, "aria-activedescendant": m, ...j(z.div, W), children: S }), e[16] = d, e[17] = a, e[18] = m, e[19] = W, e[20] = S, e[21] = s, e[22] = $) : $ = e[22];
|
|
1253
|
+
const C = h ?? document.body;
|
|
1254
|
+
let H;
|
|
1255
|
+
return e[23] !== $ || e[24] !== C ? (H = Ve($, C), e[23] = $, e[24] = C, e[25] = H) : H = e[25], H;
|
|
1244
1256
|
}
|
|
1245
|
-
function
|
|
1246
|
-
const e =
|
|
1257
|
+
function mr(o) {
|
|
1258
|
+
const e = B.c(23), {
|
|
1247
1259
|
onClick: t,
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
e[4] !== l || e[5] !== t ? (x = () => {
|
|
1263
|
-
t?.(), l();
|
|
1264
|
-
}, e[4] = l, e[5] = t, e[6] = x) : x = e[6];
|
|
1265
|
-
const h = x;
|
|
1260
|
+
disabled: r,
|
|
1261
|
+
children: c
|
|
1262
|
+
} = o, n = r === void 0 ? !1 : r, {
|
|
1263
|
+
close: d,
|
|
1264
|
+
highlightedId: s,
|
|
1265
|
+
setHighlightedId: l,
|
|
1266
|
+
registerItem: i
|
|
1267
|
+
} = ge(), a = Z(), u = q(null), p = s === a;
|
|
1268
|
+
let x, h;
|
|
1269
|
+
e[0] !== n || e[1] !== a || e[2] !== i ? (x = () => {
|
|
1270
|
+
const C = u.current;
|
|
1271
|
+
if (C)
|
|
1272
|
+
return i(a, C, n);
|
|
1273
|
+
}, h = [n, a, i], e[0] = n, e[1] = a, e[2] = i, e[3] = x, e[4] = h) : (x = e[3], h = e[4]), V(x, h);
|
|
1266
1274
|
let g;
|
|
1267
|
-
e[
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1275
|
+
e[5] !== d || e[6] !== n || e[7] !== t ? (g = () => {
|
|
1276
|
+
n || (t?.(), d());
|
|
1277
|
+
}, e[5] = d, e[6] = n, e[7] = t, e[8] = g) : g = e[8];
|
|
1278
|
+
const b = g, y = n || void 0;
|
|
1271
1279
|
let m;
|
|
1272
|
-
|
|
1280
|
+
e[9] !== n || e[10] !== a || e[11] !== l ? (m = n ? void 0 : () => l(a), e[9] = n, e[10] = a, e[11] = l, e[12] = m) : m = e[12];
|
|
1281
|
+
const f = p && P.itemHighlighted, W = n && P.itemDisabled;
|
|
1282
|
+
let S;
|
|
1283
|
+
e[13] !== f || e[14] !== W ? (S = [P.item, f, W], e[13] = f, e[14] = W, e[15] = S) : S = e[15];
|
|
1284
|
+
let $;
|
|
1285
|
+
return e[16] !== c || e[17] !== b || e[18] !== a || e[19] !== y || e[20] !== m || e[21] !== S ? ($ = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:213", ref: u, id: a, role: "menuitem", "aria-disabled": y, onClick: b, onPointerEnter: m, ...j(z.div, S), children: c }), e[16] = c, e[17] = b, e[18] = a, e[19] = y, e[20] = m, e[21] = S, e[22] = $) : $ = e[22], $;
|
|
1273
1286
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const e =
|
|
1287
|
+
function br(o) {
|
|
1288
|
+
const e = B.c(20), {
|
|
1276
1289
|
href: t,
|
|
1277
1290
|
onNavigate: r,
|
|
1278
|
-
children:
|
|
1291
|
+
children: c
|
|
1279
1292
|
} = o, {
|
|
1280
1293
|
close: n,
|
|
1281
|
-
highlightedId:
|
|
1282
|
-
setHighlightedId:
|
|
1283
|
-
registerItem:
|
|
1284
|
-
} =
|
|
1294
|
+
highlightedId: d,
|
|
1295
|
+
setHighlightedId: s,
|
|
1296
|
+
registerItem: l
|
|
1297
|
+
} = ge(), i = Z(), a = q(null), u = d === i;
|
|
1285
1298
|
let p, x;
|
|
1286
|
-
e[0] !== i || e[1] !==
|
|
1287
|
-
const
|
|
1288
|
-
if (
|
|
1289
|
-
return
|
|
1290
|
-
}, x = [i,
|
|
1299
|
+
e[0] !== i || e[1] !== l ? (p = () => {
|
|
1300
|
+
const f = a.current;
|
|
1301
|
+
if (f)
|
|
1302
|
+
return l(i, f);
|
|
1303
|
+
}, x = [i, l], e[0] = i, e[1] = l, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), V(p, x);
|
|
1291
1304
|
let h;
|
|
1292
|
-
e[4] !== n || e[5] !== t || e[6] !== r ? (h = (
|
|
1293
|
-
r &&
|
|
1305
|
+
e[4] !== n || e[5] !== t || e[6] !== r ? (h = (f) => {
|
|
1306
|
+
r && Be(f) && r(t, f), n();
|
|
1294
1307
|
}, e[4] = n, e[5] = t, e[6] = r, e[7] = h) : h = e[7];
|
|
1295
1308
|
let g;
|
|
1296
|
-
e[8] !== i || e[9] !==
|
|
1309
|
+
e[8] !== i || e[9] !== s ? (g = () => s(i), e[8] = i, e[9] = s, e[10] = g) : g = e[10];
|
|
1297
1310
|
const b = u && P.itemHighlighted;
|
|
1298
|
-
let
|
|
1299
|
-
e[11] !== b ? (
|
|
1311
|
+
let y;
|
|
1312
|
+
e[11] !== b ? (y = [P.item, P.linkItem, b], e[11] = b, e[12] = y) : y = e[12];
|
|
1300
1313
|
let m;
|
|
1301
|
-
return e[13] !==
|
|
1314
|
+
return e[13] !== c || e[14] !== t || e[15] !== i || e[16] !== h || e[17] !== g || e[18] !== y ? (m = /* @__PURE__ */ T("a", { "data-element-src": "Menu/Menu.tsx:255", ref: a, id: i, href: t, onClick: h, role: "menuitem", onPointerEnter: g, ...j(z.a, y), children: c }), e[13] = c, e[14] = t, e[15] = i, e[16] = h, e[17] = g, e[18] = y, e[19] = m) : m = e[19], m;
|
|
1302
1315
|
}
|
|
1303
|
-
function
|
|
1304
|
-
const o =
|
|
1316
|
+
function fr() {
|
|
1317
|
+
const o = B.c(1);
|
|
1305
1318
|
let e;
|
|
1306
|
-
return o[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1319
|
+
return o[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:277", role: "separator", "aria-orientation": "horizontal", ...j(z.div, P.separator) }), o[0] = e) : e = o[0], e;
|
|
1307
1320
|
}
|
|
1308
|
-
const
|
|
1309
|
-
Root:
|
|
1310
|
-
Trigger:
|
|
1311
|
-
Popup:
|
|
1312
|
-
Item:
|
|
1313
|
-
LinkItem:
|
|
1314
|
-
Separator:
|
|
1315
|
-
},
|
|
1321
|
+
const Gr = {
|
|
1322
|
+
Root: xr,
|
|
1323
|
+
Trigger: gr,
|
|
1324
|
+
Popup: hr,
|
|
1325
|
+
Item: mr,
|
|
1326
|
+
LinkItem: br,
|
|
1327
|
+
Separator: fr
|
|
1328
|
+
}, M = {
|
|
1316
1329
|
container: {
|
|
1317
1330
|
"containerType-k9g6sI": "containerType-x12h1iku",
|
|
1318
1331
|
"display-k1xSpc": "display-x78zum5",
|
|
@@ -1521,28 +1534,28 @@ const Lr = {
|
|
|
1521
1534
|
"--x-1pds3uo": o ?? void 0,
|
|
1522
1535
|
"--x-1n5740v": e ?? void 0
|
|
1523
1536
|
}]
|
|
1524
|
-
},
|
|
1525
|
-
function
|
|
1526
|
-
const o =
|
|
1537
|
+
}, Oe = F(null);
|
|
1538
|
+
function he() {
|
|
1539
|
+
const o = D(Oe);
|
|
1527
1540
|
if (!o)
|
|
1528
1541
|
throw new Error("Table compound components must be used within Table.Root");
|
|
1529
1542
|
return o;
|
|
1530
1543
|
}
|
|
1531
|
-
const
|
|
1532
|
-
function
|
|
1533
|
-
const e =
|
|
1544
|
+
const be = F(!1);
|
|
1545
|
+
function vr(o) {
|
|
1546
|
+
const e = B.c(2), {
|
|
1534
1547
|
children: t
|
|
1535
1548
|
} = o;
|
|
1536
1549
|
let r;
|
|
1537
|
-
return e[0] !== t ? (r = /* @__PURE__ */
|
|
1550
|
+
return e[0] !== t ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:55", ...j(z.div, M.container), children: t }), e[0] = t, e[1] = r) : r = e[1], r;
|
|
1538
1551
|
}
|
|
1539
|
-
function
|
|
1552
|
+
function kr(o) {
|
|
1540
1553
|
let e = "";
|
|
1541
|
-
return
|
|
1554
|
+
return pe.forEach(o, (t) => {
|
|
1542
1555
|
(typeof t == "string" || typeof t == "number") && (e += String(t));
|
|
1543
1556
|
}), e;
|
|
1544
1557
|
}
|
|
1545
|
-
function
|
|
1558
|
+
function yr(o) {
|
|
1546
1559
|
let e = o;
|
|
1547
1560
|
for (let t = 0; t < 8 && e && typeof e == "object"; t++) {
|
|
1548
1561
|
const r = e.type ?? e.render;
|
|
@@ -1551,44 +1564,44 @@ function hr(o) {
|
|
|
1551
1564
|
}
|
|
1552
1565
|
return e;
|
|
1553
1566
|
}
|
|
1554
|
-
function
|
|
1555
|
-
const t = [], r = [],
|
|
1556
|
-
function n(
|
|
1557
|
-
|
|
1558
|
-
if (!
|
|
1559
|
-
const
|
|
1560
|
-
if (i ===
|
|
1561
|
-
const u =
|
|
1562
|
-
t.push(u), r.push(
|
|
1563
|
-
const p = typeof
|
|
1564
|
-
!p && x === "" &&
|
|
1565
|
-
} else
|
|
1567
|
+
function wr(o, e) {
|
|
1568
|
+
const t = [], r = [], c = [];
|
|
1569
|
+
function n(d) {
|
|
1570
|
+
pe.forEach(d, (s) => {
|
|
1571
|
+
if (!Xe(s)) return;
|
|
1572
|
+
const l = s.props, i = yr(s.type), a = i?.displayName || i?.name || "";
|
|
1573
|
+
if (i === ve || a === "HeaderCell") {
|
|
1574
|
+
const u = l.width ? String(Se(l.width)) : `minmax(${Pe(e)}, 1fr)`;
|
|
1575
|
+
t.push(u), r.push(l.compactWidth ? String(Se(l.compactWidth)) : u);
|
|
1576
|
+
const p = typeof l.label == "string" ? l.label : void 0, x = kr(l.children).trim(), h = p ?? x;
|
|
1577
|
+
!p && x === "" && l.children != null && Ie("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(h);
|
|
1578
|
+
} else l.children && n(l.children);
|
|
1566
1579
|
});
|
|
1567
1580
|
}
|
|
1568
1581
|
return n(o), {
|
|
1569
1582
|
template: t.join(" "),
|
|
1570
1583
|
compactTemplate: r.join(" "),
|
|
1571
|
-
labels:
|
|
1584
|
+
labels: c
|
|
1572
1585
|
};
|
|
1573
1586
|
}
|
|
1574
|
-
function
|
|
1575
|
-
const e =
|
|
1587
|
+
function Mr(o) {
|
|
1588
|
+
const e = B.c(13), {
|
|
1576
1589
|
children: t
|
|
1577
|
-
} = o, r =
|
|
1578
|
-
let
|
|
1579
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1590
|
+
} = o, r = q(null);
|
|
1591
|
+
let c;
|
|
1592
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
1580
1593
|
start: !1,
|
|
1581
1594
|
end: !1
|
|
1582
|
-
}, e[0] =
|
|
1583
|
-
const [n,
|
|
1584
|
-
let
|
|
1585
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1595
|
+
}, e[0] = c) : c = e[0];
|
|
1596
|
+
const [n, d] = ee(c);
|
|
1597
|
+
let s, l;
|
|
1598
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
|
|
1586
1599
|
const g = r.current;
|
|
1587
1600
|
if (!g)
|
|
1588
1601
|
return;
|
|
1589
1602
|
const b = () => {
|
|
1590
1603
|
const m = g.scrollWidth - g.clientWidth > 1;
|
|
1591
|
-
|
|
1604
|
+
d({
|
|
1592
1605
|
start: m && g.scrollLeft > 1,
|
|
1593
1606
|
end: m && g.scrollLeft + g.clientWidth < g.scrollWidth - 1
|
|
1594
1607
|
});
|
|
@@ -1596,213 +1609,213 @@ function br(o) {
|
|
|
1596
1609
|
b(), g.addEventListener("scroll", b, {
|
|
1597
1610
|
passive: !0
|
|
1598
1611
|
});
|
|
1599
|
-
const
|
|
1600
|
-
return
|
|
1601
|
-
g.removeEventListener("scroll", b),
|
|
1612
|
+
const y = typeof ResizeObserver < "u" ? new ResizeObserver(b) : null;
|
|
1613
|
+
return y?.observe(g), () => {
|
|
1614
|
+
g.removeEventListener("scroll", b), y?.disconnect();
|
|
1602
1615
|
};
|
|
1603
|
-
},
|
|
1616
|
+
}, l = [], e[1] = s, e[2] = l) : (s = e[1], l = e[2]), V(s, l);
|
|
1604
1617
|
let i;
|
|
1605
|
-
e[3] !== t ? (i = /* @__PURE__ */
|
|
1606
|
-
const
|
|
1618
|
+
e[3] !== t ? (i = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...j(z.div, M.scrollX), children: t }), e[3] = t, e[4] = i) : i = e[4];
|
|
1619
|
+
const a = n.start && M.edgeFadeVisible;
|
|
1607
1620
|
let u;
|
|
1608
|
-
e[5] !==
|
|
1609
|
-
const p = n.end &&
|
|
1621
|
+
e[5] !== a ? (u = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...j(z.div, M.edgeFade, M.edgeFadeLeft, a) }), e[5] = a, e[6] = u) : u = e[6];
|
|
1622
|
+
const p = n.end && M.edgeFadeVisible;
|
|
1610
1623
|
let x;
|
|
1611
|
-
e[7] !== p ? (x = /* @__PURE__ */
|
|
1624
|
+
e[7] !== p ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...j(z.div, M.edgeFade, M.edgeFadeRight, p) }), e[7] = p, e[8] = x) : x = e[8];
|
|
1612
1625
|
let h;
|
|
1613
|
-
return e[9] !== i || e[10] !== u || e[11] !== x ? (h = /* @__PURE__ */
|
|
1626
|
+
return e[9] !== i || e[10] !== u || e[11] !== x ? (h = /* @__PURE__ */ ue("div", { "data-element-src": "Table/Table.tsx:195", ...j(z.div, M.scrollFrame), children: [
|
|
1614
1627
|
i,
|
|
1615
1628
|
u,
|
|
1616
1629
|
x
|
|
1617
1630
|
] }), e[9] = i, e[10] = u, e[11] = x, e[12] = h) : h = e[12], h;
|
|
1618
1631
|
}
|
|
1619
|
-
function
|
|
1632
|
+
function Tr({
|
|
1620
1633
|
children: o,
|
|
1621
1634
|
variant: e = "default",
|
|
1622
1635
|
size: t = "md",
|
|
1623
1636
|
responsive: r = !0,
|
|
1624
|
-
minColumnWidth:
|
|
1637
|
+
minColumnWidth: c = "labelMinW",
|
|
1625
1638
|
sortChip: n,
|
|
1626
|
-
pagination:
|
|
1639
|
+
pagination: d
|
|
1627
1640
|
}) {
|
|
1628
|
-
const
|
|
1629
|
-
template:
|
|
1641
|
+
const s = q(null), {
|
|
1642
|
+
template: l,
|
|
1630
1643
|
compactTemplate: i,
|
|
1631
|
-
labels:
|
|
1632
|
-
} =
|
|
1633
|
-
|
|
1634
|
-
const u = /* @__PURE__ */
|
|
1635
|
-
|
|
1636
|
-
|
|
1644
|
+
labels: a
|
|
1645
|
+
} = wr(o, c);
|
|
1646
|
+
l && (s.current = l);
|
|
1647
|
+
const u = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...j(
|
|
1648
|
+
z.div,
|
|
1649
|
+
M.root,
|
|
1637
1650
|
// When responsive, use gridColumnsResponsive so the explicit column
|
|
1638
1651
|
// template and the stack-mode @container override live in one StyleX
|
|
1639
1652
|
// style object. Splitting them across two styles (gridColumns +
|
|
1640
1653
|
// rootResponsive) causes StyleX conflict resolution to drop the
|
|
1641
1654
|
// column template because rootResponsive's gridTemplateColumns key
|
|
1642
1655
|
// always wins as the later entry in the array.
|
|
1643
|
-
|
|
1644
|
-
r &&
|
|
1645
|
-
), children: o }), x = /* @__PURE__ */
|
|
1656
|
+
l ? r ? M.gridColumnsResponsive(l, i) : M.gridColumns(l) : void 0,
|
|
1657
|
+
r && M.rootResponsive
|
|
1658
|
+
), children: o }), x = /* @__PURE__ */ ue(Fe, { children: [
|
|
1646
1659
|
n,
|
|
1647
|
-
r ? /* @__PURE__ */
|
|
1648
|
-
|
|
1660
|
+
r ? /* @__PURE__ */ T(Mr, { children: u }) : u,
|
|
1661
|
+
d
|
|
1649
1662
|
] });
|
|
1650
|
-
return /* @__PURE__ */
|
|
1663
|
+
return /* @__PURE__ */ T(Oe.Provider, { value: {
|
|
1651
1664
|
variant: e,
|
|
1652
1665
|
size: t,
|
|
1653
1666
|
responsive: r,
|
|
1654
|
-
labels:
|
|
1655
|
-
inferredTemplateRef:
|
|
1656
|
-
}, children: r ? /* @__PURE__ */
|
|
1667
|
+
labels: a,
|
|
1668
|
+
inferredTemplateRef: s
|
|
1669
|
+
}, children: r ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:299", ...j(z.div, M.rootContainer), children: x }) : x });
|
|
1657
1670
|
}
|
|
1658
|
-
function
|
|
1659
|
-
const e =
|
|
1671
|
+
function Wr(o) {
|
|
1672
|
+
const e = B.c(2), {
|
|
1660
1673
|
children: t
|
|
1661
1674
|
} = o;
|
|
1662
1675
|
let r;
|
|
1663
|
-
return e[0] !== t ? (r = /* @__PURE__ */
|
|
1676
|
+
return e[0] !== t ? (r = /* @__PURE__ */ T(be.Provider, { value: !0, children: /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...j(z.div, M.header), children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
|
|
1664
1677
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const e =
|
|
1678
|
+
function Sr(o) {
|
|
1679
|
+
const e = B.c(19), {
|
|
1667
1680
|
children: t
|
|
1668
1681
|
} = o, {
|
|
1669
1682
|
variant: r
|
|
1670
|
-
} =
|
|
1671
|
-
let
|
|
1683
|
+
} = he();
|
|
1684
|
+
let c, n, d, s, l, i;
|
|
1672
1685
|
if (e[0] !== t || e[1] !== r) {
|
|
1673
|
-
const p =
|
|
1674
|
-
n =
|
|
1686
|
+
const p = pe.toArray(t);
|
|
1687
|
+
n = be.Provider, i = !1, c = Fo.div, d = "rowgroup", s = M.body;
|
|
1675
1688
|
let x;
|
|
1676
|
-
e[8] !== r ? (x = (h, g) => r !== "striped" ? h : /* @__PURE__ */
|
|
1689
|
+
e[8] !== r ? (x = (h, g) => r !== "striped" ? h : /* @__PURE__ */ T(Ge.Provider, { value: g, children: h }, h.key ?? g), e[8] = r, e[9] = x) : x = e[9], l = p.map(x), e[0] = t, e[1] = r, e[2] = c, e[3] = n, e[4] = d, e[5] = s, e[6] = l, e[7] = i;
|
|
1677
1690
|
} else
|
|
1678
|
-
|
|
1679
|
-
let
|
|
1680
|
-
e[10] !==
|
|
1691
|
+
c = e[2], n = e[3], d = e[4], s = e[5], l = e[6], i = e[7];
|
|
1692
|
+
let a;
|
|
1693
|
+
e[10] !== c || e[11] !== d || e[12] !== s || e[13] !== l ? (a = /* @__PURE__ */ T(c, { role: d, style: s, children: l }), e[10] = c, e[11] = d, e[12] = s, e[13] = l, e[14] = a) : a = e[14];
|
|
1681
1694
|
let u;
|
|
1682
|
-
return e[15] !== n || e[16] !== i || e[17] !==
|
|
1695
|
+
return e[15] !== n || e[16] !== i || e[17] !== a ? (u = /* @__PURE__ */ T(n, { value: i, children: a }), e[15] = n, e[16] = i, e[17] = a, e[18] = u) : u = e[18], u;
|
|
1683
1696
|
}
|
|
1684
|
-
const
|
|
1685
|
-
function
|
|
1686
|
-
const e =
|
|
1697
|
+
const Ge = F(-1), $r = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
|
|
1698
|
+
function Cr(o) {
|
|
1699
|
+
const e = B.c(17), {
|
|
1687
1700
|
children: t,
|
|
1688
1701
|
onClick: r,
|
|
1689
|
-
"aria-label":
|
|
1702
|
+
"aria-label": c
|
|
1690
1703
|
} = o, {
|
|
1691
1704
|
variant: n
|
|
1692
|
-
} =
|
|
1705
|
+
} = he(), d = D(be), s = D(Ge), l = s >= 0 && s % 2 === 1;
|
|
1693
1706
|
let i;
|
|
1694
|
-
if (e[0] !==
|
|
1695
|
-
const
|
|
1707
|
+
if (e[0] !== c || e[1] !== t || e[2] !== l || e[3] !== d || e[4] !== r || e[5] !== n) {
|
|
1708
|
+
const a = pe.toArray(t), u = r !== void 0 && !d;
|
|
1696
1709
|
let p;
|
|
1697
1710
|
e[7] !== u || e[8] !== r ? (p = u ? (m) => {
|
|
1698
|
-
const
|
|
1699
|
-
|
|
1711
|
+
const f = m.target;
|
|
1712
|
+
f instanceof Element && f.closest($r) || r();
|
|
1700
1713
|
} : void 0, e[7] = u, e[8] = r, e[9] = p) : p = e[9];
|
|
1701
1714
|
let x;
|
|
1702
1715
|
e[10] !== u || e[11] !== r ? (x = u ? (m) => {
|
|
1703
1716
|
(m.key === "Enter" || m.key === " ") && r();
|
|
1704
1717
|
} : void 0, e[10] = u, e[11] = r, e[12] = x) : x = e[12];
|
|
1705
|
-
const h = !
|
|
1706
|
-
let
|
|
1707
|
-
e[13] !== h || e[14] !== g || e[15] !== b ? (
|
|
1708
|
-
index:
|
|
1709
|
-
total:
|
|
1710
|
-
}, children: m }, m.key ??
|
|
1718
|
+
const h = !d && M.bodyRow, g = !d && n === "striped" && l && M.stripedEven, b = u && M.clickableRow;
|
|
1719
|
+
let y;
|
|
1720
|
+
e[13] !== h || e[14] !== g || e[15] !== b ? (y = [M.row, h, g, b], e[13] = h, e[14] = g, e[15] = b, e[16] = y) : y = e[16], i = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: u ? 0 : void 0, "aria-label": u ? c : void 0, onClick: p, onKeyDown: x, ...j(z.div, y), children: a.map((m, f) => /* @__PURE__ */ T(fe.Provider, { value: {
|
|
1721
|
+
index: f,
|
|
1722
|
+
total: a.length
|
|
1723
|
+
}, children: m }, m.key ?? f)) }), e[0] = c, e[1] = t, e[2] = l, e[3] = d, e[4] = r, e[5] = n, e[6] = i;
|
|
1711
1724
|
} else
|
|
1712
1725
|
i = e[6];
|
|
1713
1726
|
return i;
|
|
1714
1727
|
}
|
|
1715
|
-
const
|
|
1728
|
+
const fe = F({
|
|
1716
1729
|
index: 0,
|
|
1717
1730
|
total: 0
|
|
1718
1731
|
});
|
|
1719
|
-
function
|
|
1720
|
-
const e =
|
|
1732
|
+
function ve(o) {
|
|
1733
|
+
const e = B.c(8), {
|
|
1721
1734
|
children: t,
|
|
1722
1735
|
"aria-label": r
|
|
1723
1736
|
} = o, {
|
|
1724
|
-
size:
|
|
1737
|
+
size: c,
|
|
1725
1738
|
variant: n
|
|
1726
|
-
} =
|
|
1727
|
-
index:
|
|
1728
|
-
total:
|
|
1729
|
-
} =
|
|
1739
|
+
} = he(), {
|
|
1740
|
+
index: d,
|
|
1741
|
+
total: s
|
|
1742
|
+
} = D(fe), l = n === "bordered" && d === s - 1, i = c === "sm" ? M.cellSm : M.cellMd, a = n === "bordered" && M.borderedCell, u = l && M.borderedCellLast;
|
|
1730
1743
|
let p;
|
|
1731
|
-
e[0] !== i || e[1] !==
|
|
1744
|
+
e[0] !== i || e[1] !== a || e[2] !== u ? (p = [M.headerCell, i, a, u], e[0] = i, e[1] = a, e[2] = u, e[3] = p) : p = e[3];
|
|
1732
1745
|
let x;
|
|
1733
|
-
return e[4] !== r || e[5] !== t || e[6] !== p ? (x = /* @__PURE__ */
|
|
1746
|
+
return e[4] !== r || e[5] !== t || e[6] !== p ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...j(z.div, p), children: t }), e[4] = r, e[5] = t, e[6] = p, e[7] = x) : x = e[7], x;
|
|
1734
1747
|
}
|
|
1735
|
-
|
|
1736
|
-
function
|
|
1737
|
-
const e =
|
|
1748
|
+
ve.displayName = "HeaderCell";
|
|
1749
|
+
function Hr(o) {
|
|
1750
|
+
const e = B.c(16), {
|
|
1738
1751
|
children: t,
|
|
1739
1752
|
isActions: r
|
|
1740
1753
|
} = o, {
|
|
1741
|
-
size:
|
|
1754
|
+
size: c,
|
|
1742
1755
|
variant: n,
|
|
1743
|
-
labels:
|
|
1744
|
-
responsive:
|
|
1745
|
-
} =
|
|
1746
|
-
index:
|
|
1756
|
+
labels: d,
|
|
1757
|
+
responsive: s
|
|
1758
|
+
} = he(), {
|
|
1759
|
+
index: l,
|
|
1747
1760
|
total: i
|
|
1748
|
-
} =
|
|
1761
|
+
} = D(fe), a = n === "bordered" && l === i - 1, u = d[l] ?? "", p = c === "sm" ? M.cellSm : M.cellMd, x = n === "bordered" && M.borderedCell, h = a && M.borderedCellLast, g = r && M.cellActions;
|
|
1749
1762
|
let b;
|
|
1750
|
-
e[0] !== p || e[1] !== x || e[2] !== h || e[3] !== g ? (b = [
|
|
1751
|
-
let
|
|
1752
|
-
e[5] !== r || e[6] !== u || e[7] !==
|
|
1763
|
+
e[0] !== p || e[1] !== x || e[2] !== h || e[3] !== g ? (b = [M.cell, p, x, h, g], e[0] = p, e[1] = x, e[2] = h, e[3] = g, e[4] = b) : b = e[4];
|
|
1764
|
+
let y;
|
|
1765
|
+
e[5] !== r || e[6] !== u || e[7] !== s ? (y = s && !r && u !== "" ? /* @__PURE__ */ T("span", { "data-element-src": "Table/Table.tsx:507", ...j(z.span, M.cellLabel), children: u }) : null, e[5] = r, e[6] = u, e[7] = s, e[8] = y) : y = e[8];
|
|
1753
1766
|
let m;
|
|
1754
|
-
e[9] !== t || e[10] !== r ? (m = r ? t : /* @__PURE__ */
|
|
1755
|
-
let
|
|
1756
|
-
return e[12] !== b || e[13] !==
|
|
1757
|
-
|
|
1767
|
+
e[9] !== t || e[10] !== r ? (m = r ? t : /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:509", ...j(z.div, M.cellValue), children: t }), e[9] = t, e[10] = r, e[11] = m) : m = e[11];
|
|
1768
|
+
let f;
|
|
1769
|
+
return e[12] !== b || e[13] !== y || e[14] !== m ? (f = /* @__PURE__ */ ue("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...j(z.div, b), children: [
|
|
1770
|
+
y,
|
|
1758
1771
|
m
|
|
1759
|
-
] }), e[12] = b, e[13] =
|
|
1772
|
+
] }), e[12] = b, e[13] = y, e[14] = m, e[15] = f) : f = e[15], f;
|
|
1760
1773
|
}
|
|
1761
|
-
const
|
|
1774
|
+
const jr = {
|
|
1762
1775
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1763
|
-
Container:
|
|
1764
|
-
Root:
|
|
1765
|
-
Header:
|
|
1766
|
-
Body:
|
|
1767
|
-
Row:
|
|
1768
|
-
HeaderCell:
|
|
1769
|
-
Cell:
|
|
1770
|
-
},
|
|
1776
|
+
Container: vr,
|
|
1777
|
+
Root: Tr,
|
|
1778
|
+
Header: Wr,
|
|
1779
|
+
Body: Sr,
|
|
1780
|
+
Row: Cr,
|
|
1781
|
+
HeaderCell: ve,
|
|
1782
|
+
Cell: Hr
|
|
1783
|
+
}, Dr = jr;
|
|
1771
1784
|
export {
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1785
|
+
ze as B,
|
|
1786
|
+
nr as C,
|
|
1787
|
+
Ir as D,
|
|
1788
|
+
ve as H,
|
|
1789
|
+
qr as I,
|
|
1790
|
+
Gr as M,
|
|
1791
|
+
dr as P,
|
|
1792
|
+
Cr as R,
|
|
1793
|
+
_e as S,
|
|
1794
|
+
Pr as T,
|
|
1795
|
+
or as a,
|
|
1796
|
+
Or as b,
|
|
1797
|
+
Ne as c,
|
|
1798
|
+
Ie as d,
|
|
1799
|
+
ur as e,
|
|
1800
|
+
cr as f,
|
|
1788
1801
|
Q as g,
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1802
|
+
Fo as h,
|
|
1803
|
+
Be as i,
|
|
1804
|
+
Xo as j,
|
|
1805
|
+
Vo as k,
|
|
1806
|
+
Er as l,
|
|
1807
|
+
je as m,
|
|
1808
|
+
sr as n,
|
|
1809
|
+
Se as o,
|
|
1810
|
+
Dr as p,
|
|
1811
|
+
M as q,
|
|
1812
|
+
Pe as r,
|
|
1813
|
+
Le as s,
|
|
1814
|
+
Wr as t,
|
|
1815
|
+
Ko as u,
|
|
1816
|
+
Sr as v,
|
|
1817
|
+
Tr as w,
|
|
1818
|
+
Hr as x,
|
|
1819
|
+
jr as y
|
|
1807
1820
|
};
|
|
1808
|
-
//# sourceMappingURL=Table-
|
|
1821
|
+
//# sourceMappingURL=Table-ypIvytAS.js.map
|