@opencxh/ui-kit 3.137.3 → 3.137.5
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +396 -365
- package/dist/index.js.map +1 -1
- package/dist/src/content/Avatar.d.ts +13 -0
- package/dist/src/content/PageHeader.d.ts +3 -0
- package/dist/src/content/SectionCaption.d.ts +29 -0
- package/dist/src/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,19 +8,19 @@ import St from "remark-gfm";
|
|
|
8
8
|
function d(...t) {
|
|
9
9
|
return et(t);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function dn(t) {
|
|
12
12
|
return (r, n) => t[r]?.[n] || "";
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function un(t) {
|
|
15
15
|
return (r) => t[r] || "";
|
|
16
16
|
}
|
|
17
17
|
const Oe = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
|
|
18
|
-
function
|
|
18
|
+
function mn(t) {
|
|
19
19
|
let r = 0;
|
|
20
20
|
for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
|
|
21
21
|
return Oe[r % Oe.length];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function fn({ tiles: t, pinned: r, className: n }) {
|
|
24
24
|
if (r)
|
|
25
25
|
return /* @__PURE__ */ i("div", { className: d("flex flex-col md:flex-row gap-2 h-full min-h-0", n), children: [
|
|
26
26
|
/* @__PURE__ */ e("div", { className: "flex-1 min-h-0", children: r }),
|
|
@@ -29,7 +29,7 @@ function mn({ tiles: t, pinned: r, className: n }) {
|
|
|
29
29
|
const s = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
|
|
30
30
|
return /* @__PURE__ */ e("div", { className: d("grid gap-2 h-full", s, n), children: t.map((a, l) => /* @__PURE__ */ e("div", { children: a }, l)) });
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function hn({
|
|
33
33
|
name: t,
|
|
34
34
|
avatarUrl: r,
|
|
35
35
|
muted: n,
|
|
@@ -37,14 +37,14 @@ function fn({
|
|
|
37
37
|
hasVideo: a,
|
|
38
38
|
videoSlot: l,
|
|
39
39
|
className: o,
|
|
40
|
-
fill:
|
|
40
|
+
fill: m
|
|
41
41
|
}) {
|
|
42
42
|
return /* @__PURE__ */ i(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
className: d(
|
|
46
46
|
"relative rounded-lg overflow-hidden bg-video-surface flex items-center justify-center",
|
|
47
|
-
|
|
47
|
+
m ? "h-full w-full" : "aspect-video",
|
|
48
48
|
s && "ring-2 ring-speaking",
|
|
49
49
|
o
|
|
50
50
|
),
|
|
@@ -58,7 +58,7 @@ function fn({
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function xn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
|
|
62
62
|
const a = se(null);
|
|
63
63
|
return X(() => {
|
|
64
64
|
if (!r || !a.current) return;
|
|
@@ -116,8 +116,8 @@ const Et = {
|
|
|
116
116
|
leftIcon: a,
|
|
117
117
|
rightIcon: l,
|
|
118
118
|
iconOnly: o = !1,
|
|
119
|
-
shape:
|
|
120
|
-
className:
|
|
119
|
+
shape: m = "default",
|
|
120
|
+
className: u,
|
|
121
121
|
children: y,
|
|
122
122
|
disabled: x,
|
|
123
123
|
...h
|
|
@@ -133,7 +133,7 @@ const Et = {
|
|
|
133
133
|
// the same weight as an emphasised nav item, and 600 at 12–13px
|
|
134
134
|
// reads as a heavier control than the surrounding chrome.
|
|
135
135
|
"inline-flex shrink-0 items-center justify-center gap-2 cursor-pointer font-medium",
|
|
136
|
-
|
|
136
|
+
m === "circle" ? "rounded-full" : "rounded-md",
|
|
137
137
|
"transition-colors duration-fast ease-out",
|
|
138
138
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
139
139
|
"disabled:cursor-not-allowed disabled:border-border-subtle",
|
|
@@ -142,7 +142,7 @@ const Et = {
|
|
|
142
142
|
o ? Mt[r] : zt[r],
|
|
143
143
|
(n || r === "full") && "w-full",
|
|
144
144
|
s && "cursor-wait",
|
|
145
|
-
|
|
145
|
+
u
|
|
146
146
|
),
|
|
147
147
|
disabled: v,
|
|
148
148
|
"aria-busy": s || void 0,
|
|
@@ -165,7 +165,7 @@ const Et = {
|
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
ae.displayName = "Button";
|
|
168
|
-
const
|
|
168
|
+
const bn = ({
|
|
169
169
|
children: t,
|
|
170
170
|
size: r = "md",
|
|
171
171
|
orientation: n = "horizontal",
|
|
@@ -213,9 +213,9 @@ const xn = ({
|
|
|
213
213
|
onClick: a,
|
|
214
214
|
className: l,
|
|
215
215
|
"aria-label": o,
|
|
216
|
-
...
|
|
216
|
+
...m
|
|
217
217
|
}) => {
|
|
218
|
-
const
|
|
218
|
+
const u = typeof r == "number" ? r : Dt(r), y = d(
|
|
219
219
|
"inline-block shrink-0",
|
|
220
220
|
$t[n],
|
|
221
221
|
s && [
|
|
@@ -224,7 +224,7 @@ const xn = ({
|
|
|
224
224
|
],
|
|
225
225
|
l
|
|
226
226
|
), x = {
|
|
227
|
-
size:
|
|
227
|
+
size: u,
|
|
228
228
|
strokeWidth: 2,
|
|
229
229
|
className: y,
|
|
230
230
|
onClick: s ? a : void 0,
|
|
@@ -235,7 +235,7 @@ const xn = ({
|
|
|
235
235
|
onKeyDown: s ? (h) => {
|
|
236
236
|
(h.key === "Enter" || h.key === " ") && (h.preventDefault(), a?.());
|
|
237
237
|
} : void 0,
|
|
238
|
-
...
|
|
238
|
+
...m
|
|
239
239
|
};
|
|
240
240
|
return /* @__PURE__ */ e(t, { ...x });
|
|
241
241
|
};
|
|
@@ -252,14 +252,14 @@ function $e(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start
|
|
|
252
252
|
const [l, o] = O({});
|
|
253
253
|
return yt(() => {
|
|
254
254
|
if (!t) return;
|
|
255
|
-
const
|
|
256
|
-
const
|
|
257
|
-
if (!
|
|
258
|
-
const y =
|
|
255
|
+
const m = () => {
|
|
256
|
+
const u = r.current;
|
|
257
|
+
if (!u) return;
|
|
258
|
+
const y = u.getBoundingClientRect(), x = window.innerHeight - y.bottom, h = y.top, b = a.startsWith("top"), v = b ? h < 200 && x > h : x < 200 && h > x, k = b !== v, g = { position: "fixed" };
|
|
259
259
|
k ? (g.bottom = window.innerHeight - y.top + n, g.maxHeight = Math.max(120, h - n * 2)) : (g.top = y.bottom + n, g.maxHeight = Math.max(120, x - n * 2)), a.endsWith("end") ? g.right = window.innerWidth - y.right : g.left = y.left, s && (g.width = y.width), o(g);
|
|
260
260
|
};
|
|
261
|
-
return
|
|
262
|
-
window.removeEventListener("scroll",
|
|
261
|
+
return m(), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m), () => {
|
|
262
|
+
window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
|
|
263
263
|
};
|
|
264
264
|
}, [t, r, n, s, a]), l;
|
|
265
265
|
}
|
|
@@ -271,11 +271,11 @@ const Ve = ({
|
|
|
271
271
|
rootClassName: a,
|
|
272
272
|
triggerClassName: l,
|
|
273
273
|
disabled: o = !1,
|
|
274
|
-
triggerLabel:
|
|
274
|
+
triggerLabel: m
|
|
275
275
|
}) => {
|
|
276
|
-
const [
|
|
276
|
+
const [u, y] = O(!1), x = se(null), h = se(null), b = $e(u, h, { placement: n });
|
|
277
277
|
X(() => {
|
|
278
|
-
if (!
|
|
278
|
+
if (!u) return;
|
|
279
279
|
const g = ($) => {
|
|
280
280
|
x.current && !x.current.contains($.target) && y(!1);
|
|
281
281
|
}, f = ($) => {
|
|
@@ -284,7 +284,7 @@ const Ve = ({
|
|
|
284
284
|
return document.addEventListener("mousedown", g), document.addEventListener("keydown", f), () => {
|
|
285
285
|
document.removeEventListener("mousedown", g), document.removeEventListener("keydown", f);
|
|
286
286
|
};
|
|
287
|
-
}, [
|
|
287
|
+
}, [u]);
|
|
288
288
|
const v = (g) => {
|
|
289
289
|
g.stopPropagation(), !o && y((f) => !f);
|
|
290
290
|
}, k = () => y(!1);
|
|
@@ -296,8 +296,8 @@ const Ve = ({
|
|
|
296
296
|
type: "button",
|
|
297
297
|
onClick: v,
|
|
298
298
|
disabled: o,
|
|
299
|
-
"aria-label":
|
|
300
|
-
"aria-expanded":
|
|
299
|
+
"aria-label": m,
|
|
300
|
+
"aria-expanded": u,
|
|
301
301
|
className: d(
|
|
302
302
|
"inline-flex items-center",
|
|
303
303
|
o && "cursor-not-allowed opacity-50",
|
|
@@ -306,7 +306,7 @@ const Ve = ({
|
|
|
306
306
|
children: t
|
|
307
307
|
}
|
|
308
308
|
),
|
|
309
|
-
|
|
309
|
+
u && /* @__PURE__ */ e(
|
|
310
310
|
"div",
|
|
311
311
|
{
|
|
312
312
|
className: d(
|
|
@@ -350,8 +350,8 @@ function Lt({
|
|
|
350
350
|
size: a = "md",
|
|
351
351
|
active: l = !1,
|
|
352
352
|
caret: o = !1,
|
|
353
|
-
menu:
|
|
354
|
-
menuClassName:
|
|
353
|
+
menu: m,
|
|
354
|
+
menuClassName: u,
|
|
355
355
|
onClear: y,
|
|
356
356
|
clearLabel: x = "Filter wissen",
|
|
357
357
|
onClick: h,
|
|
@@ -372,15 +372,15 @@ function Lt({
|
|
|
372
372
|
children: /* @__PURE__ */ e(Q, { icon: we, size: "xs" })
|
|
373
373
|
}
|
|
374
374
|
);
|
|
375
|
-
return
|
|
375
|
+
return m ? /* @__PURE__ */ i("span", { className: f, title: b, children: [
|
|
376
376
|
/* @__PURE__ */ e(
|
|
377
377
|
Ve,
|
|
378
378
|
{
|
|
379
379
|
trigger: $,
|
|
380
380
|
rootClassName: "h-full",
|
|
381
381
|
triggerClassName: d(C, "h-full"),
|
|
382
|
-
className: d("min-w-menu p-1.5",
|
|
383
|
-
children:
|
|
382
|
+
className: d("min-w-menu p-1.5", u),
|
|
383
|
+
children: m
|
|
384
384
|
}
|
|
385
385
|
),
|
|
386
386
|
q
|
|
@@ -413,7 +413,7 @@ const It = {
|
|
|
413
413
|
warning: "bg-warning-soft",
|
|
414
414
|
error: "bg-danger-soft",
|
|
415
415
|
info: "bg-info-soft"
|
|
416
|
-
},
|
|
416
|
+
}, gn = ({
|
|
417
417
|
variant: t = "default",
|
|
418
418
|
size: r = "md",
|
|
419
419
|
color: n = "primary",
|
|
@@ -421,12 +421,12 @@ const It = {
|
|
|
421
421
|
external: a = !1,
|
|
422
422
|
className: l,
|
|
423
423
|
children: o,
|
|
424
|
-
href:
|
|
425
|
-
target:
|
|
424
|
+
href: m,
|
|
425
|
+
target: u,
|
|
426
426
|
rel: y,
|
|
427
427
|
...x
|
|
428
428
|
}) => {
|
|
429
|
-
const h = a ||
|
|
429
|
+
const h = a || m && (m.startsWith("http") || m.startsWith("mailto:")), b = d(
|
|
430
430
|
"inline-flex items-center gap-1 underline-offset-2",
|
|
431
431
|
"transition-colors duration-fast ease-out",
|
|
432
432
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
@@ -442,8 +442,8 @@ const It = {
|
|
|
442
442
|
l
|
|
443
443
|
), v = {
|
|
444
444
|
...x,
|
|
445
|
-
href: s ? void 0 :
|
|
446
|
-
target: h ? "_blank" :
|
|
445
|
+
href: s ? void 0 : m,
|
|
446
|
+
target: h ? "_blank" : u,
|
|
447
447
|
rel: h ? "noopener noreferrer" : y,
|
|
448
448
|
"aria-disabled": s || void 0
|
|
449
449
|
};
|
|
@@ -463,28 +463,28 @@ function Ft({
|
|
|
463
463
|
tone: a = "sunk",
|
|
464
464
|
fullWidth: l = !1,
|
|
465
465
|
className: o,
|
|
466
|
-
"aria-label":
|
|
466
|
+
"aria-label": m
|
|
467
467
|
}) {
|
|
468
468
|
return /* @__PURE__ */ e(
|
|
469
469
|
"div",
|
|
470
470
|
{
|
|
471
471
|
role: "tablist",
|
|
472
|
-
"aria-label":
|
|
472
|
+
"aria-label": m,
|
|
473
473
|
className: d(
|
|
474
474
|
"gap-0.5 rounded-md p-0.5",
|
|
475
475
|
a === "track" ? "bg-surface-track" : "bg-surface-sunk",
|
|
476
476
|
l ? "flex w-full" : "inline-flex",
|
|
477
477
|
o
|
|
478
478
|
),
|
|
479
|
-
children: t.map((
|
|
480
|
-
const y =
|
|
479
|
+
children: t.map((u) => {
|
|
480
|
+
const y = u.value === r;
|
|
481
481
|
return /* @__PURE__ */ e(
|
|
482
482
|
"button",
|
|
483
483
|
{
|
|
484
484
|
role: "tab",
|
|
485
485
|
"aria-selected": y,
|
|
486
486
|
type: "button",
|
|
487
|
-
onClick: () => n(
|
|
487
|
+
onClick: () => n(u.value),
|
|
488
488
|
className: d(
|
|
489
489
|
"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-sm",
|
|
490
490
|
"transition-colors duration-fast ease-out",
|
|
@@ -493,9 +493,9 @@ function Ft({
|
|
|
493
493
|
Ot[s],
|
|
494
494
|
y ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
|
|
495
495
|
),
|
|
496
|
-
children:
|
|
496
|
+
children: u.label
|
|
497
497
|
},
|
|
498
|
-
|
|
498
|
+
u.value
|
|
499
499
|
);
|
|
500
500
|
})
|
|
501
501
|
}
|
|
@@ -517,11 +517,11 @@ function qe({
|
|
|
517
517
|
icon: a,
|
|
518
518
|
options: l,
|
|
519
519
|
disabled: o = !1,
|
|
520
|
-
loading:
|
|
521
|
-
menuPlacement:
|
|
520
|
+
loading: m = !1,
|
|
521
|
+
menuPlacement: u = "bottom-end",
|
|
522
522
|
menuLabel: y = "More options"
|
|
523
523
|
}) {
|
|
524
|
-
const x = o ||
|
|
524
|
+
const x = o || m, h = l.length > 0;
|
|
525
525
|
return /* @__PURE__ */ i("div", { className: d("inline-flex items-center", n === "primary" && "gap-0.5"), children: [
|
|
526
526
|
/* @__PURE__ */ e(
|
|
527
527
|
ae,
|
|
@@ -530,7 +530,7 @@ function qe({
|
|
|
530
530
|
size: s,
|
|
531
531
|
onClick: r,
|
|
532
532
|
disabled: o,
|
|
533
|
-
loading:
|
|
533
|
+
loading: m,
|
|
534
534
|
leftIcon: a,
|
|
535
535
|
className: d(h && "rounded-r-none"),
|
|
536
536
|
children: t
|
|
@@ -539,7 +539,7 @@ function qe({
|
|
|
539
539
|
h && /* @__PURE__ */ e(
|
|
540
540
|
Ve,
|
|
541
541
|
{
|
|
542
|
-
placement:
|
|
542
|
+
placement: u,
|
|
543
543
|
disabled: x,
|
|
544
544
|
triggerLabel: y,
|
|
545
545
|
className: "min-w-menu py-1",
|
|
@@ -605,11 +605,11 @@ const Ht = {
|
|
|
605
605
|
indeterminate: a = !1,
|
|
606
606
|
containerClassName: l,
|
|
607
607
|
labelClassName: o,
|
|
608
|
-
className:
|
|
609
|
-
id:
|
|
608
|
+
className: m,
|
|
609
|
+
id: u,
|
|
610
610
|
...y
|
|
611
611
|
}, x) => {
|
|
612
|
-
const h = oe.useId(), b =
|
|
612
|
+
const h = oe.useId(), b = u || `checkbox-${h}`, v = !!n, k = oe.useRef(null), g = oe.useCallback(
|
|
613
613
|
(f) => {
|
|
614
614
|
k.current = f, typeof x == "function" ? x(f) : x && typeof x == "object" && (x.current = f);
|
|
615
615
|
},
|
|
@@ -637,7 +637,7 @@ const Ht = {
|
|
|
637
637
|
"disabled:cursor-not-allowed disabled:bg-surface-hover",
|
|
638
638
|
Ht[s],
|
|
639
639
|
v ? "border-danger-border" : "border-border-strong",
|
|
640
|
-
|
|
640
|
+
m
|
|
641
641
|
),
|
|
642
642
|
...y
|
|
643
643
|
}
|
|
@@ -672,8 +672,8 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
672
672
|
required: a = !1,
|
|
673
673
|
size: l = "md",
|
|
674
674
|
className: o,
|
|
675
|
-
minDate:
|
|
676
|
-
maxDate:
|
|
675
|
+
minDate: m,
|
|
676
|
+
maxDate: u,
|
|
677
677
|
format: y = "MM/dd/yyyy",
|
|
678
678
|
withTime: x = !1
|
|
679
679
|
}, h) => {
|
|
@@ -703,7 +703,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
703
703
|
N.push(new Date(U)), U.setDate(U.getDate() + 1);
|
|
704
704
|
return N;
|
|
705
705
|
}, I = (c) => {
|
|
706
|
-
if (c.getMonth() === k.getMonth() && !(
|
|
706
|
+
if (c.getMonth() === k.getMonth() && !(m && c < m) && !(u && c > u)) {
|
|
707
707
|
if (x) {
|
|
708
708
|
const p = new Date(c);
|
|
709
709
|
p.setHours(t?.getHours() ?? 0, t?.getMinutes() ?? 0, 0, 0), r?.(p);
|
|
@@ -797,7 +797,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
797
797
|
] }),
|
|
798
798
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((c) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: c }, c)) }),
|
|
799
799
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: ce.map((c, S) => {
|
|
800
|
-
const p = c.getMonth() === k.getMonth(), _ = t && c.toDateString() === t.toDateString(), N = c.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), U = !p ||
|
|
800
|
+
const p = c.getMonth() === k.getMonth(), _ = t && c.toDateString() === t.toDateString(), N = c.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), U = !p || m && c < m || u && c > u;
|
|
801
801
|
return /* @__PURE__ */ e(
|
|
802
802
|
"button",
|
|
803
803
|
{
|
|
@@ -864,8 +864,8 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
864
864
|
fullWidth: a = !1,
|
|
865
865
|
disabled: l = !1,
|
|
866
866
|
options: o,
|
|
867
|
-
placeholder:
|
|
868
|
-
containerClassName:
|
|
867
|
+
placeholder: m,
|
|
868
|
+
containerClassName: u,
|
|
869
869
|
labelClassName: y,
|
|
870
870
|
className: x,
|
|
871
871
|
id: h,
|
|
@@ -929,7 +929,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
929
929
|
return;
|
|
930
930
|
}
|
|
931
931
|
c((F) => [...F, z]), _(z.value), te(""), v || I(!1);
|
|
932
|
-
}, P = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") :
|
|
932
|
+
}, P = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : m || "Select options" : N?.label || m || "Select an option";
|
|
933
933
|
return /* @__PURE__ */ i(
|
|
934
934
|
"div",
|
|
935
935
|
{
|
|
@@ -937,7 +937,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
937
937
|
className: d(
|
|
938
938
|
"relative flex flex-col",
|
|
939
939
|
a && "w-full",
|
|
940
|
-
|
|
940
|
+
u
|
|
941
941
|
),
|
|
942
942
|
...C,
|
|
943
943
|
children: [
|
|
@@ -1020,14 +1020,14 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
1020
1020
|
}
|
|
1021
1021
|
),
|
|
1022
1022
|
/* @__PURE__ */ i("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
|
|
1023
|
-
|
|
1023
|
+
m && !v && /* @__PURE__ */ e(
|
|
1024
1024
|
"li",
|
|
1025
1025
|
{
|
|
1026
1026
|
className: "cursor-pointer px-3 py-1.5 text-sm text-text-muted hover:bg-surface-hover",
|
|
1027
1027
|
onClick: () => {
|
|
1028
1028
|
g?.(""), I(!1);
|
|
1029
1029
|
},
|
|
1030
|
-
children:
|
|
1030
|
+
children: m
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
1033
|
re.map((D) => {
|
|
@@ -1091,15 +1091,15 @@ const Jt = {
|
|
|
1091
1091
|
fullWidth: a = !1,
|
|
1092
1092
|
startIcon: l,
|
|
1093
1093
|
endIcon: o,
|
|
1094
|
-
loading:
|
|
1095
|
-
containerClassName:
|
|
1094
|
+
loading: m = !1,
|
|
1095
|
+
containerClassName: u,
|
|
1096
1096
|
labelClassName: y,
|
|
1097
1097
|
className: x,
|
|
1098
1098
|
id: h,
|
|
1099
1099
|
...b
|
|
1100
1100
|
}, v) => {
|
|
1101
1101
|
const k = oe.useId(), g = h || `textfield-${k}`, f = !!n, $ = n || r ? `${g}-description` : void 0;
|
|
1102
|
-
return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full",
|
|
1102
|
+
return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full", u), children: [
|
|
1103
1103
|
t && /* @__PURE__ */ e(
|
|
1104
1104
|
"label",
|
|
1105
1105
|
{
|
|
@@ -1125,14 +1125,14 @@ const Jt = {
|
|
|
1125
1125
|
We,
|
|
1126
1126
|
Jt[s],
|
|
1127
1127
|
l && "pl-9",
|
|
1128
|
-
(o ||
|
|
1128
|
+
(o || m) && "pr-9",
|
|
1129
1129
|
Ke(f),
|
|
1130
1130
|
x
|
|
1131
1131
|
),
|
|
1132
1132
|
...b
|
|
1133
1133
|
}
|
|
1134
1134
|
),
|
|
1135
|
-
(o ||
|
|
1135
|
+
(o || m) && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted", children: m ? /* @__PURE__ */ e(
|
|
1136
1136
|
"span",
|
|
1137
1137
|
{
|
|
1138
1138
|
"aria-hidden": !0,
|
|
@@ -1160,9 +1160,9 @@ function Yt({
|
|
|
1160
1160
|
size: a = "md",
|
|
1161
1161
|
placeholder: l,
|
|
1162
1162
|
templatePlaceholder: o,
|
|
1163
|
-
showTemplate:
|
|
1163
|
+
showTemplate: m = !0
|
|
1164
1164
|
}) {
|
|
1165
|
-
const [
|
|
1165
|
+
const [u, y] = O([]);
|
|
1166
1166
|
X(() => {
|
|
1167
1167
|
let h = !0;
|
|
1168
1168
|
return Promise.resolve(n?.()).then((b) => {
|
|
@@ -1180,12 +1180,12 @@ function Yt({
|
|
|
1180
1180
|
size: a,
|
|
1181
1181
|
fullWidth: !0,
|
|
1182
1182
|
value: x.folderId ?? "",
|
|
1183
|
-
options:
|
|
1183
|
+
options: u.map((h) => ({ value: h.id, label: h.name })),
|
|
1184
1184
|
placeholder: l ?? "Select a folder",
|
|
1185
1185
|
onChange: (h) => r?.({ ...x, folderId: h })
|
|
1186
1186
|
}
|
|
1187
1187
|
),
|
|
1188
|
-
|
|
1188
|
+
m && /* @__PURE__ */ e(
|
|
1189
1189
|
Ne,
|
|
1190
1190
|
{
|
|
1191
1191
|
size: a,
|
|
@@ -1216,8 +1216,8 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
|
|
|
1216
1216
|
fullWidth: a = !1,
|
|
1217
1217
|
startIcon: l = /* @__PURE__ */ e(Xt, {}),
|
|
1218
1218
|
loading: o = !1,
|
|
1219
|
-
containerClassName:
|
|
1220
|
-
labelClassName:
|
|
1219
|
+
containerClassName: m,
|
|
1220
|
+
labelClassName: u,
|
|
1221
1221
|
className: y,
|
|
1222
1222
|
id: x,
|
|
1223
1223
|
options: h,
|
|
@@ -1278,7 +1278,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
|
|
|
1278
1278
|
className: ge(
|
|
1279
1279
|
"flex flex-col",
|
|
1280
1280
|
a ? "w-full" : "",
|
|
1281
|
-
|
|
1281
|
+
m || "",
|
|
1282
1282
|
"relative"
|
|
1283
1283
|
),
|
|
1284
1284
|
ref: V,
|
|
@@ -1290,7 +1290,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
|
|
|
1290
1290
|
className: ge(
|
|
1291
1291
|
"block text-sm font-medium mb-1",
|
|
1292
1292
|
G ? "text-danger-fg" : "text-text",
|
|
1293
|
-
|
|
1293
|
+
u || ""
|
|
1294
1294
|
),
|
|
1295
1295
|
children: t
|
|
1296
1296
|
}
|
|
@@ -1396,8 +1396,8 @@ const Ge = xe(
|
|
|
1396
1396
|
clearLabel: a = "Clear search",
|
|
1397
1397
|
containerClassName: l,
|
|
1398
1398
|
className: o,
|
|
1399
|
-
disabled:
|
|
1400
|
-
...
|
|
1399
|
+
disabled: m,
|
|
1400
|
+
...u
|
|
1401
1401
|
}, y) => /* @__PURE__ */ i(
|
|
1402
1402
|
"div",
|
|
1403
1403
|
{
|
|
@@ -1408,7 +1408,7 @@ const Ge = xe(
|
|
|
1408
1408
|
"flex items-center gap-2 rounded-md bg-surface-sunk px-2.5 text-text-muted",
|
|
1409
1409
|
"transition-colors duration-fast ease-out",
|
|
1410
1410
|
s === "sm" ? "h-control-sm" : "h-control-md",
|
|
1411
|
-
|
|
1411
|
+
m && "opacity-60",
|
|
1412
1412
|
l
|
|
1413
1413
|
),
|
|
1414
1414
|
children: [
|
|
@@ -1419,7 +1419,7 @@ const Ge = xe(
|
|
|
1419
1419
|
ref: y,
|
|
1420
1420
|
type: "search",
|
|
1421
1421
|
value: t,
|
|
1422
|
-
disabled:
|
|
1422
|
+
disabled: m,
|
|
1423
1423
|
onChange: (x) => r(x.target.value),
|
|
1424
1424
|
className: d(
|
|
1425
1425
|
// The forms base layer hands every input a white fill, a 1px border
|
|
@@ -1434,7 +1434,7 @@ const Ge = xe(
|
|
|
1434
1434
|
"[&::-webkit-search-cancel-button]:appearance-none",
|
|
1435
1435
|
o
|
|
1436
1436
|
),
|
|
1437
|
-
...
|
|
1437
|
+
...u
|
|
1438
1438
|
}
|
|
1439
1439
|
),
|
|
1440
1440
|
t ? /* @__PURE__ */ e(
|
|
@@ -1454,7 +1454,7 @@ const Ge = xe(
|
|
|
1454
1454
|
Ge.displayName = "SearchField";
|
|
1455
1455
|
const tr = xe(
|
|
1456
1456
|
({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
|
|
1457
|
-
const
|
|
1457
|
+
const m = /* @__PURE__ */ e(
|
|
1458
1458
|
"span",
|
|
1459
1459
|
{
|
|
1460
1460
|
"aria-hidden": !0,
|
|
@@ -1493,12 +1493,12 @@ const tr = xe(
|
|
|
1493
1493
|
role: "switch",
|
|
1494
1494
|
checked: t,
|
|
1495
1495
|
disabled: s,
|
|
1496
|
-
onChange: (
|
|
1496
|
+
onChange: (u) => r(u.target.checked),
|
|
1497
1497
|
className: "peer sr-only",
|
|
1498
1498
|
...l
|
|
1499
1499
|
}
|
|
1500
1500
|
),
|
|
1501
|
-
/* @__PURE__ */ e("span", { className: "inline-flex rounded-full peer-focus-visible:focus-ring", children:
|
|
1501
|
+
/* @__PURE__ */ e("span", { className: "inline-flex rounded-full peer-focus-visible:focus-ring", children: m }),
|
|
1502
1502
|
n && /* @__PURE__ */ e("span", { className: "text-sm text-text", children: n })
|
|
1503
1503
|
]
|
|
1504
1504
|
}
|
|
@@ -1528,29 +1528,29 @@ function rr({
|
|
|
1528
1528
|
{
|
|
1529
1529
|
className: "grid gap-2 bg-surface-hover p-3",
|
|
1530
1530
|
style: { gridTemplateColumns: `repeat(${s}, minmax(0, 1fr))` },
|
|
1531
|
-
children: Array.from({ length: s }).map((o,
|
|
1531
|
+
children: Array.from({ length: s }).map((o, m) => /* @__PURE__ */ e(
|
|
1532
1532
|
"div",
|
|
1533
1533
|
{
|
|
1534
1534
|
className: "h-4 w-2/3 rounded-sm bg-border-strong"
|
|
1535
1535
|
},
|
|
1536
|
-
`header-${
|
|
1536
|
+
`header-${m}`
|
|
1537
1537
|
))
|
|
1538
1538
|
}
|
|
1539
1539
|
),
|
|
1540
|
-
Array.from({ length: a }).map((o,
|
|
1540
|
+
Array.from({ length: a }).map((o, m) => /* @__PURE__ */ e(
|
|
1541
1541
|
"div",
|
|
1542
1542
|
{
|
|
1543
1543
|
className: "grid gap-2 border-t border-border-subtle p-3",
|
|
1544
1544
|
style: { gridTemplateColumns: `repeat(${s}, minmax(0, 1fr))` },
|
|
1545
|
-
children: Array.from({ length: s }).map((
|
|
1545
|
+
children: Array.from({ length: s }).map((u, y) => /* @__PURE__ */ e(
|
|
1546
1546
|
"div",
|
|
1547
1547
|
{
|
|
1548
1548
|
className: "h-4 w-full rounded-sm bg-surface-hover"
|
|
1549
1549
|
},
|
|
1550
|
-
`cell-${
|
|
1550
|
+
`cell-${m}-${y}`
|
|
1551
1551
|
))
|
|
1552
1552
|
},
|
|
1553
|
-
`row-${
|
|
1553
|
+
`row-${m}`
|
|
1554
1554
|
))
|
|
1555
1555
|
] })
|
|
1556
1556
|
] }) });
|
|
@@ -1563,8 +1563,8 @@ const nr = ({
|
|
|
1563
1563
|
placement: a = "bottom-start",
|
|
1564
1564
|
disabled: l = !1,
|
|
1565
1565
|
className: o,
|
|
1566
|
-
showCheck:
|
|
1567
|
-
header:
|
|
1566
|
+
showCheck: m = !0,
|
|
1567
|
+
header: u
|
|
1568
1568
|
}) => {
|
|
1569
1569
|
const [y, x] = O(!1), [h, b] = O(null), [v, k] = O({ top: 0, left: 0 }), g = se(null), f = se(null), $ = se(null), C = se(null), q = $e(y, f, { placement: a }), T = se(null), G = () => Array.from(
|
|
1570
1570
|
C.current?.querySelectorAll("button[data-option-value]:not(:disabled)") ?? []
|
|
@@ -1653,7 +1653,7 @@ const nr = ({
|
|
|
1653
1653
|
}
|
|
1654
1654
|
),
|
|
1655
1655
|
y && /* @__PURE__ */ e("div", { ref: C, className: ce, style: q, onKeyDown: V, children: /* @__PURE__ */ i("div", { className: "p-2", role: "menu", children: [
|
|
1656
|
-
|
|
1656
|
+
u && (typeof u == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted uppercase tracking-label px-3 py-2", children: u }) : u),
|
|
1657
1657
|
r.map((c, S) => {
|
|
1658
1658
|
if (c.divider)
|
|
1659
1659
|
return /* @__PURE__ */ e(
|
|
@@ -1691,7 +1691,7 @@ const nr = ({
|
|
|
1691
1691
|
] })
|
|
1692
1692
|
] }),
|
|
1693
1693
|
/* @__PURE__ */ i("div", { className: "flex items-center space-x-2", children: [
|
|
1694
|
-
|
|
1694
|
+
m && n === c.value && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
|
|
1695
1695
|
p && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
|
|
1696
1696
|
] })
|
|
1697
1697
|
]
|
|
@@ -1749,7 +1749,7 @@ const nr = ({
|
|
|
1749
1749
|
N.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: N.description })
|
|
1750
1750
|
] })
|
|
1751
1751
|
] }),
|
|
1752
|
-
|
|
1752
|
+
m && re && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
|
|
1753
1753
|
]
|
|
1754
1754
|
},
|
|
1755
1755
|
N.value
|
|
@@ -1808,7 +1808,7 @@ const nr = ({
|
|
|
1808
1808
|
sm: "p-2",
|
|
1809
1809
|
md: "px-5 py-4",
|
|
1810
1810
|
lg: "p-6"
|
|
1811
|
-
},
|
|
1811
|
+
}, pn = ({
|
|
1812
1812
|
actions: t = [],
|
|
1813
1813
|
onBack: r,
|
|
1814
1814
|
backLabel: n = "Back",
|
|
@@ -1828,7 +1828,7 @@ const nr = ({
|
|
|
1828
1828
|
),
|
|
1829
1829
|
l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
|
|
1830
1830
|
/* @__PURE__ */ e(Je, { actions: t, className: d(!l && "ml-auto") })
|
|
1831
|
-
] }),
|
|
1831
|
+
] }), vn = (t) => (r) => t(r instanceof Date ? r : null), yn = (t) => (r) => t(typeof r == "string" ? r : ""), ar = {
|
|
1832
1832
|
none: "px-0",
|
|
1833
1833
|
sm: "px-2",
|
|
1834
1834
|
md: "px-3.5",
|
|
@@ -1853,17 +1853,17 @@ const cr = (t) => {
|
|
|
1853
1853
|
Ae,
|
|
1854
1854
|
{
|
|
1855
1855
|
value: t.value,
|
|
1856
|
-
onChange: (
|
|
1856
|
+
onChange: (m) => t.onChange(m),
|
|
1857
1857
|
placeholder: t.placeholder || t.label,
|
|
1858
1858
|
className: d("min-w-40", o && "border-info text-info-fg")
|
|
1859
1859
|
}
|
|
1860
1860
|
);
|
|
1861
1861
|
}
|
|
1862
|
-
const n = (o) => t.options?.find((
|
|
1862
|
+
const n = (o) => t.options?.find((m) => m.value === o)?.label ?? String(o), s = (o) => Array.isArray(t.value) ? t.value.includes(o) : t.value === o, a = (o) => {
|
|
1863
1863
|
if (!t.multiSelect) return t.onChange(o);
|
|
1864
|
-
const
|
|
1864
|
+
const m = Array.isArray(t.value) ? t.value : [];
|
|
1865
1865
|
t.onChange(
|
|
1866
|
-
|
|
1866
|
+
m.includes(o) ? m.filter((u) => u !== o) : [...m, o]
|
|
1867
1867
|
);
|
|
1868
1868
|
}, l = r.length > 0;
|
|
1869
1869
|
return /* @__PURE__ */ e(
|
|
@@ -1876,24 +1876,24 @@ const cr = (t) => {
|
|
|
1876
1876
|
label: l ? `${t.label}: ${r.map(n).join(", ")}` : t.label,
|
|
1877
1877
|
title: t.label,
|
|
1878
1878
|
onClear: () => t.onChange(t.multiSelect ? [] : "all"),
|
|
1879
|
-
menu: (o) => /* @__PURE__ */ e("div", { role: "listbox", className: "flex flex-col", children: t.options?.map((
|
|
1879
|
+
menu: (o) => /* @__PURE__ */ e("div", { role: "listbox", className: "flex flex-col", children: t.options?.map((m) => /* @__PURE__ */ e(
|
|
1880
1880
|
"button",
|
|
1881
1881
|
{
|
|
1882
1882
|
type: "button",
|
|
1883
1883
|
role: "option",
|
|
1884
|
-
"aria-selected": s(
|
|
1884
|
+
"aria-selected": s(m.value),
|
|
1885
1885
|
onClick: () => {
|
|
1886
|
-
a(
|
|
1886
|
+
a(m.value), t.multiSelect || o();
|
|
1887
1887
|
},
|
|
1888
1888
|
className: d(
|
|
1889
1889
|
"flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-sm",
|
|
1890
1890
|
"transition-colors duration-fast ease-out hover:bg-surface-hover",
|
|
1891
1891
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
1892
|
-
s(
|
|
1892
|
+
s(m.value) ? "font-medium text-text" : "text-text-muted"
|
|
1893
1893
|
),
|
|
1894
|
-
children:
|
|
1894
|
+
children: m.label
|
|
1895
1895
|
},
|
|
1896
|
-
|
|
1896
|
+
m.value
|
|
1897
1897
|
)) })
|
|
1898
1898
|
}
|
|
1899
1899
|
);
|
|
@@ -1905,8 +1905,8 @@ const cr = (t) => {
|
|
|
1905
1905
|
searchPlaceholder: a = "Search...",
|
|
1906
1906
|
searchValue: l,
|
|
1907
1907
|
onSearchChange: o,
|
|
1908
|
-
filters:
|
|
1909
|
-
toolbarActions:
|
|
1908
|
+
filters: m = [],
|
|
1909
|
+
toolbarActions: u = [],
|
|
1910
1910
|
paginated: y = !1,
|
|
1911
1911
|
defaultPageSize: x = 10,
|
|
1912
1912
|
actions: h = [],
|
|
@@ -1941,7 +1941,7 @@ const cr = (t) => {
|
|
|
1941
1941
|
return String(ue || "").toLowerCase().includes(le);
|
|
1942
1942
|
}));
|
|
1943
1943
|
}
|
|
1944
|
-
return
|
|
1944
|
+
return m.forEach((W) => {
|
|
1945
1945
|
W.value && W.value !== "all" && (E = E.filter((le) => {
|
|
1946
1946
|
const ie = r.find((ue) => ue.id === W.id);
|
|
1947
1947
|
if (!ie) return !0;
|
|
@@ -1949,7 +1949,7 @@ const cr = (t) => {
|
|
|
1949
1949
|
return String(R || "") === W.value;
|
|
1950
1950
|
}));
|
|
1951
1951
|
}), E;
|
|
1952
|
-
}, [t, ce, K, r, s,
|
|
1952
|
+
}, [t, ce, K, r, s, m]), re = pe(() => {
|
|
1953
1953
|
if (!c.column || !c.direction) return U;
|
|
1954
1954
|
const E = r.find((W) => W.id === c.column);
|
|
1955
1955
|
return E ? [...U].sort((W, le) => {
|
|
@@ -1987,7 +1987,7 @@ const cr = (t) => {
|
|
|
1987
1987
|
_((E) => ({ ...E, page: 0 }));
|
|
1988
1988
|
}, [ce, c]), X(() => {
|
|
1989
1989
|
_((E) => ({ ...E, page: 0 }));
|
|
1990
|
-
}, [
|
|
1990
|
+
}, [m.map((E) => E.value).join(",")]);
|
|
1991
1991
|
const z = re.length, F = Math.ceil(z / p.pageSize), j = p.page * p.pageSize + 1, B = Math.min(j + p.pageSize - 1, z), M = ee.length > 0 && ee.every((E) => {
|
|
1992
1992
|
const W = f(E, 0);
|
|
1993
1993
|
return k.some(
|
|
@@ -1998,7 +1998,7 @@ const cr = (t) => {
|
|
|
1998
1998
|
return k.some(
|
|
1999
1999
|
(le, ie) => f(le, ie) === W
|
|
2000
2000
|
);
|
|
2001
|
-
}), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s ||
|
|
2001
|
+
}), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s || m.length > 0 || u.length > 0, fe = y && z > 0, De = fe || C !== void 0;
|
|
2002
2002
|
return /* @__PURE__ */ i("div", { className: d("flex min-w-0 flex-col", V), children: [
|
|
2003
2003
|
be && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
|
|
2004
2004
|
s && /* @__PURE__ */ e(
|
|
@@ -2010,8 +2010,8 @@ const cr = (t) => {
|
|
|
2010
2010
|
containerClassName: "w-full sm:w-66"
|
|
2011
2011
|
}
|
|
2012
2012
|
),
|
|
2013
|
-
|
|
2014
|
-
|
|
2013
|
+
m.map((E) => /* @__PURE__ */ e(cr, { ...E }, E.id)),
|
|
2014
|
+
u.length > 0 && /* @__PURE__ */ e(Je, { actions: u, className: "ml-auto" })
|
|
2015
2015
|
] }),
|
|
2016
2016
|
/* @__PURE__ */ i("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
|
|
2017
2017
|
n && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
@@ -2206,37 +2206,37 @@ const cr = (t) => {
|
|
|
2206
2206
|
] })
|
|
2207
2207
|
] })
|
|
2208
2208
|
] });
|
|
2209
|
-
}, ir = Nt(null),
|
|
2209
|
+
}, ir = Nt(null), Nn = ({
|
|
2210
2210
|
items: t,
|
|
2211
2211
|
activeTab: r,
|
|
2212
2212
|
onTabChange: n,
|
|
2213
2213
|
className: s
|
|
2214
2214
|
}) => {
|
|
2215
|
-
const [a, l] = O(t[0]?.id || ""), o = r || a,
|
|
2216
|
-
n ? n(
|
|
2215
|
+
const [a, l] = O(t[0]?.id || ""), o = r || a, m = (u) => {
|
|
2216
|
+
n ? n(u) : l(u);
|
|
2217
2217
|
};
|
|
2218
|
-
return /* @__PURE__ */ e("div", { className: d("border-b border-border", s), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: t.map((
|
|
2218
|
+
return /* @__PURE__ */ e("div", { className: d("border-b border-border", s), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: t.map((u) => /* @__PURE__ */ e(
|
|
2219
2219
|
"button",
|
|
2220
2220
|
{
|
|
2221
|
-
onClick: () => !
|
|
2222
|
-
disabled:
|
|
2221
|
+
onClick: () => !u.disabled && m(u.id),
|
|
2222
|
+
disabled: u.disabled,
|
|
2223
2223
|
className: d(
|
|
2224
2224
|
"border-b-2 py-2 px-1 text-sm font-medium transition-colors duration-fast",
|
|
2225
2225
|
{
|
|
2226
|
-
"border-accent-border text-text": o ===
|
|
2227
|
-
"border-transparent text-text-muted hover:text-text": o !==
|
|
2228
|
-
"border-transparent text-disabled cursor-not-allowed":
|
|
2226
|
+
"border-accent-border text-text": o === u.id,
|
|
2227
|
+
"border-transparent text-text-muted hover:text-text": o !== u.id && !u.disabled,
|
|
2228
|
+
"border-transparent text-disabled cursor-not-allowed": u.disabled
|
|
2229
2229
|
}
|
|
2230
2230
|
),
|
|
2231
2231
|
children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
|
|
2232
|
-
|
|
2233
|
-
|
|
2232
|
+
u.label,
|
|
2233
|
+
u.badge && /* @__PURE__ */ e("span", { className: d(
|
|
2234
2234
|
"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
|
|
2235
|
-
o ===
|
|
2236
|
-
), children:
|
|
2235
|
+
o === u.id ? "bg-accent-soft text-accent" : "bg-surface-hover text-text-muted"
|
|
2236
|
+
), children: u.badge })
|
|
2237
2237
|
] })
|
|
2238
2238
|
},
|
|
2239
|
-
|
|
2239
|
+
u.id
|
|
2240
2240
|
)) }) });
|
|
2241
2241
|
}, dr = ({
|
|
2242
2242
|
items: t,
|
|
@@ -2247,10 +2247,10 @@ const cr = (t) => {
|
|
|
2247
2247
|
size: l = "md",
|
|
2248
2248
|
className: o
|
|
2249
2249
|
}) => {
|
|
2250
|
-
const [
|
|
2250
|
+
const [m, u] = O(
|
|
2251
2251
|
r || n || t[0]?.id || ""
|
|
2252
|
-
), y = n ||
|
|
2253
|
-
s ? s(g) :
|
|
2252
|
+
), y = n || m, x = (g) => {
|
|
2253
|
+
s ? s(g) : u(g);
|
|
2254
2254
|
}, h = {
|
|
2255
2255
|
activeTab: y,
|
|
2256
2256
|
setActiveTab: x
|
|
@@ -2332,8 +2332,8 @@ function Ye({
|
|
|
2332
2332
|
closeOnBackdropClick: a = !0,
|
|
2333
2333
|
closeOnEscape: l = !0,
|
|
2334
2334
|
className: o,
|
|
2335
|
-
backdropClassName:
|
|
2336
|
-
children:
|
|
2335
|
+
backdropClassName: m,
|
|
2336
|
+
children: u,
|
|
2337
2337
|
footer: y,
|
|
2338
2338
|
showCloseButton: x = !0
|
|
2339
2339
|
}) {
|
|
@@ -2357,7 +2357,7 @@ function Ye({
|
|
|
2357
2357
|
"fixed inset-0 z-modal flex items-center justify-center p-4",
|
|
2358
2358
|
"bg-scrim",
|
|
2359
2359
|
// 'animate-fade-in',
|
|
2360
|
-
|
|
2360
|
+
m
|
|
2361
2361
|
),
|
|
2362
2362
|
onClick: v,
|
|
2363
2363
|
children: /* @__PURE__ */ i(
|
|
@@ -2395,7 +2395,7 @@ function Ye({
|
|
|
2395
2395
|
}
|
|
2396
2396
|
)
|
|
2397
2397
|
] }),
|
|
2398
|
-
/* @__PURE__ */ e("div", { className: "p-6", children:
|
|
2398
|
+
/* @__PURE__ */ e("div", { className: "p-6", children: u }),
|
|
2399
2399
|
y && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: y })
|
|
2400
2400
|
]
|
|
2401
2401
|
}
|
|
@@ -2443,8 +2443,8 @@ const mr = {
|
|
|
2443
2443
|
align: a = "left",
|
|
2444
2444
|
truncate: l = !1,
|
|
2445
2445
|
italic: o = !1,
|
|
2446
|
-
underline:
|
|
2447
|
-
lineHeight:
|
|
2446
|
+
underline: m = !1,
|
|
2447
|
+
lineHeight: u = "normal",
|
|
2448
2448
|
as: y,
|
|
2449
2449
|
className: x,
|
|
2450
2450
|
children: h,
|
|
@@ -2463,9 +2463,9 @@ const mr = {
|
|
|
2463
2463
|
hr[s],
|
|
2464
2464
|
xr[a],
|
|
2465
2465
|
// Line height only overrides the body variant
|
|
2466
|
-
t === "body" && br[
|
|
2466
|
+
t === "body" && br[u],
|
|
2467
2467
|
o && "italic",
|
|
2468
|
-
|
|
2468
|
+
m && "underline",
|
|
2469
2469
|
l && "truncate",
|
|
2470
2470
|
x
|
|
2471
2471
|
);
|
|
@@ -2487,8 +2487,8 @@ const pr = ({
|
|
|
2487
2487
|
error: a,
|
|
2488
2488
|
disabled: l,
|
|
2489
2489
|
accept: o,
|
|
2490
|
-
onListFiles:
|
|
2491
|
-
onListMounts:
|
|
2490
|
+
onListFiles: m,
|
|
2491
|
+
onListMounts: u,
|
|
2492
2492
|
onUploadFile: y,
|
|
2493
2493
|
onDownloadFile: x,
|
|
2494
2494
|
onRegisterFile: h
|
|
@@ -2504,7 +2504,7 @@ const pr = ({
|
|
|
2504
2504
|
const _ = async () => {
|
|
2505
2505
|
I(!0);
|
|
2506
2506
|
try {
|
|
2507
|
-
const M = await
|
|
2507
|
+
const M = await u?.();
|
|
2508
2508
|
M?.data && g(M.data);
|
|
2509
2509
|
} catch (M) {
|
|
2510
2510
|
console.error("Failed to load mounts", M);
|
|
@@ -2515,7 +2515,7 @@ const pr = ({
|
|
|
2515
2515
|
if (f) {
|
|
2516
2516
|
I(!0);
|
|
2517
2517
|
try {
|
|
2518
|
-
const M = await
|
|
2518
|
+
const M = await m?.({ mountId: f.id, name: H, path: C });
|
|
2519
2519
|
M?.data && G(M.data);
|
|
2520
2520
|
} catch (M) {
|
|
2521
2521
|
console.error("Failed to load files", M);
|
|
@@ -2874,8 +2874,8 @@ const pr = ({
|
|
|
2874
2874
|
fullWidth: a = !1,
|
|
2875
2875
|
loading: l = !1,
|
|
2876
2876
|
containerClassName: o,
|
|
2877
|
-
labelClassName:
|
|
2878
|
-
className:
|
|
2877
|
+
labelClassName: m,
|
|
2878
|
+
className: u,
|
|
2879
2879
|
id: y,
|
|
2880
2880
|
rows: x = 4,
|
|
2881
2881
|
...h
|
|
@@ -2889,7 +2889,7 @@ const pr = ({
|
|
|
2889
2889
|
className: d(
|
|
2890
2890
|
Ue,
|
|
2891
2891
|
g ? "text-danger-fg" : "text-text-muted",
|
|
2892
|
-
|
|
2892
|
+
m
|
|
2893
2893
|
),
|
|
2894
2894
|
children: t
|
|
2895
2895
|
}
|
|
@@ -2908,7 +2908,7 @@ const pr = ({
|
|
|
2908
2908
|
"resize-y leading-relaxed",
|
|
2909
2909
|
vr[s],
|
|
2910
2910
|
Ke(g),
|
|
2911
|
-
|
|
2911
|
+
u
|
|
2912
2912
|
),
|
|
2913
2913
|
...h
|
|
2914
2914
|
}
|
|
@@ -2943,8 +2943,8 @@ function yr(t, r, n) {
|
|
|
2943
2943
|
const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
|
|
2944
2944
|
let l = a;
|
|
2945
2945
|
for (let o = 0; o < s.length - 1; o++) {
|
|
2946
|
-
const
|
|
2947
|
-
l[
|
|
2946
|
+
const m = s[o], u = l[m];
|
|
2947
|
+
l[m] = u && typeof u == "object" ? Array.isArray(u) ? [...u] : { ...u } : {}, l = l[m];
|
|
2948
2948
|
}
|
|
2949
2949
|
return l[s[s.length - 1]] = n, a;
|
|
2950
2950
|
}
|
|
@@ -2972,7 +2972,7 @@ function wr({
|
|
|
2972
2972
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
|
|
2973
2973
|
] });
|
|
2974
2974
|
}
|
|
2975
|
-
const
|
|
2975
|
+
const wn = ({
|
|
2976
2976
|
groups: t,
|
|
2977
2977
|
data: r,
|
|
2978
2978
|
onSubmit: n,
|
|
@@ -2980,8 +2980,8 @@ const Nn = ({
|
|
|
2980
2980
|
onChange: a,
|
|
2981
2981
|
transform: l,
|
|
2982
2982
|
validate: o,
|
|
2983
|
-
submitButton:
|
|
2984
|
-
cancelButton:
|
|
2983
|
+
submitButton: m = { label: "Submit", variant: "primary" },
|
|
2984
|
+
cancelButton: u = { label: "Cancel", variant: "outline" },
|
|
2985
2985
|
showButtons: y = !0,
|
|
2986
2986
|
layout: x = "vertical",
|
|
2987
2987
|
size: h = "md",
|
|
@@ -3535,30 +3535,30 @@ const Nn = ({
|
|
|
3535
3535
|
ae,
|
|
3536
3536
|
{
|
|
3537
3537
|
type: "button",
|
|
3538
|
-
variant:
|
|
3539
|
-
size:
|
|
3540
|
-
disabled:
|
|
3538
|
+
variant: u.variant ?? "ghost",
|
|
3539
|
+
size: u.size || ce,
|
|
3540
|
+
disabled: u.disabled || b,
|
|
3541
3541
|
onClick: s,
|
|
3542
|
-
className:
|
|
3543
|
-
children:
|
|
3542
|
+
className: u.className,
|
|
3543
|
+
children: u.label
|
|
3544
3544
|
}
|
|
3545
3545
|
),
|
|
3546
3546
|
/* @__PURE__ */ e(
|
|
3547
3547
|
ae,
|
|
3548
3548
|
{
|
|
3549
3549
|
type: "submit",
|
|
3550
|
-
variant:
|
|
3551
|
-
size:
|
|
3552
|
-
disabled:
|
|
3550
|
+
variant: m.variant,
|
|
3551
|
+
size: m.size || ce,
|
|
3552
|
+
disabled: m.disabled || b,
|
|
3553
3553
|
loading: b,
|
|
3554
|
-
className:
|
|
3555
|
-
children:
|
|
3554
|
+
className: m.className,
|
|
3555
|
+
children: m.label
|
|
3556
3556
|
}
|
|
3557
3557
|
)
|
|
3558
3558
|
] }) })
|
|
3559
3559
|
] });
|
|
3560
3560
|
};
|
|
3561
|
-
function
|
|
3561
|
+
function kn({
|
|
3562
3562
|
open: t,
|
|
3563
3563
|
title: r,
|
|
3564
3564
|
description: n,
|
|
@@ -3566,23 +3566,23 @@ function wn({
|
|
|
3566
3566
|
cancelLabel: a = "Annuleren",
|
|
3567
3567
|
tone: l = "default",
|
|
3568
3568
|
loading: o = !1,
|
|
3569
|
-
onConfirm:
|
|
3570
|
-
onCancel:
|
|
3569
|
+
onConfirm: m,
|
|
3570
|
+
onCancel: u
|
|
3571
3571
|
}) {
|
|
3572
3572
|
return /* @__PURE__ */ e(
|
|
3573
3573
|
Ye,
|
|
3574
3574
|
{
|
|
3575
3575
|
open: t,
|
|
3576
|
-
onClose:
|
|
3576
|
+
onClose: u,
|
|
3577
3577
|
title: r,
|
|
3578
3578
|
size: "sm",
|
|
3579
3579
|
footer: /* @__PURE__ */ i("div", { className: "flex w-full items-center justify-end gap-2", children: [
|
|
3580
|
-
/* @__PURE__ */ e(ae, { variant: "ghost", onClick:
|
|
3580
|
+
/* @__PURE__ */ e(ae, { variant: "ghost", onClick: u, disabled: o, children: a }),
|
|
3581
3581
|
/* @__PURE__ */ e(
|
|
3582
3582
|
ae,
|
|
3583
3583
|
{
|
|
3584
3584
|
variant: l === "danger" ? "destructive" : "primary",
|
|
3585
|
-
onClick:
|
|
3585
|
+
onClick: m,
|
|
3586
3586
|
loading: o,
|
|
3587
3587
|
children: s
|
|
3588
3588
|
}
|
|
@@ -3616,7 +3616,7 @@ const kr = {
|
|
|
3616
3616
|
info: "bg-info",
|
|
3617
3617
|
note: "bg-note"
|
|
3618
3618
|
};
|
|
3619
|
-
function
|
|
3619
|
+
function Cn({
|
|
3620
3620
|
variant: t = "default",
|
|
3621
3621
|
size: r = "md",
|
|
3622
3622
|
dot: n = !1,
|
|
@@ -3624,8 +3624,8 @@ function kn({
|
|
|
3624
3624
|
dismissible: a = !1,
|
|
3625
3625
|
onDismiss: l,
|
|
3626
3626
|
className: o,
|
|
3627
|
-
children:
|
|
3628
|
-
...
|
|
3627
|
+
children: m,
|
|
3628
|
+
...u
|
|
3629
3629
|
}) {
|
|
3630
3630
|
return /* @__PURE__ */ i(
|
|
3631
3631
|
"span",
|
|
@@ -3639,7 +3639,7 @@ function kn({
|
|
|
3639
3639
|
Cr[r],
|
|
3640
3640
|
o
|
|
3641
3641
|
),
|
|
3642
|
-
...
|
|
3642
|
+
...u,
|
|
3643
3643
|
children: [
|
|
3644
3644
|
n && /* @__PURE__ */ e(
|
|
3645
3645
|
"span",
|
|
@@ -3650,8 +3650,8 @@ function kn({
|
|
|
3650
3650
|
)
|
|
3651
3651
|
}
|
|
3652
3652
|
),
|
|
3653
|
-
s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0",
|
|
3654
|
-
|
|
3653
|
+
s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0", m && "mr-1"), children: s }),
|
|
3654
|
+
m,
|
|
3655
3655
|
a && l && /* @__PURE__ */ e(
|
|
3656
3656
|
"button",
|
|
3657
3657
|
{
|
|
@@ -3669,7 +3669,7 @@ const Er = {
|
|
|
3669
3669
|
neutral: "bg-surface-hover text-text-muted",
|
|
3670
3670
|
success: "bg-success-soft text-success-fg"
|
|
3671
3671
|
};
|
|
3672
|
-
function
|
|
3672
|
+
function Sn({
|
|
3673
3673
|
icon: t,
|
|
3674
3674
|
tone: r = "neutral",
|
|
3675
3675
|
title: n,
|
|
@@ -3677,7 +3677,7 @@ function Cn({
|
|
|
3677
3677
|
actions: a,
|
|
3678
3678
|
card: l = !1,
|
|
3679
3679
|
className: o,
|
|
3680
|
-
...
|
|
3680
|
+
...m
|
|
3681
3681
|
}) {
|
|
3682
3682
|
return /* @__PURE__ */ i(
|
|
3683
3683
|
"div",
|
|
@@ -3687,7 +3687,7 @@ function Cn({
|
|
|
3687
3687
|
l && "rounded-lg border border-border bg-surface px-11 py-9 shadow-overlay",
|
|
3688
3688
|
o
|
|
3689
3689
|
),
|
|
3690
|
-
...
|
|
3690
|
+
...m,
|
|
3691
3691
|
children: [
|
|
3692
3692
|
t != null && /* @__PURE__ */ e("span", { className: d("flex size-disc items-center justify-center rounded-full text-2xl", Er[r]), children: t }),
|
|
3693
3693
|
/* @__PURE__ */ e("div", { className: "text-lg font-semibold text-text", children: n }),
|
|
@@ -3697,7 +3697,7 @@ function Cn({
|
|
|
3697
3697
|
}
|
|
3698
3698
|
);
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function En({ children: t, className: r, ...n }) {
|
|
3701
3701
|
return /* @__PURE__ */ e(
|
|
3702
3702
|
"kbd",
|
|
3703
3703
|
{
|
|
@@ -3717,7 +3717,7 @@ const zr = {
|
|
|
3717
3717
|
accent: "bg-accent",
|
|
3718
3718
|
success: "bg-success"
|
|
3719
3719
|
};
|
|
3720
|
-
function
|
|
3720
|
+
function zn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
|
|
3721
3721
|
const l = Math.max(0, Math.min(100, t));
|
|
3722
3722
|
return /* @__PURE__ */ e(
|
|
3723
3723
|
"div",
|
|
@@ -3756,7 +3756,7 @@ const $r = {
|
|
|
3756
3756
|
lg: "text-base",
|
|
3757
3757
|
xl: "text-lg"
|
|
3758
3758
|
};
|
|
3759
|
-
function
|
|
3759
|
+
function Mn({
|
|
3760
3760
|
size: t = "md",
|
|
3761
3761
|
variant: r = "primary",
|
|
3762
3762
|
label: n = "Loading...",
|
|
@@ -3838,7 +3838,7 @@ const _r = {
|
|
|
3838
3838
|
"cat-4": "bg-cat-4",
|
|
3839
3839
|
"cat-5": "bg-cat-5"
|
|
3840
3840
|
};
|
|
3841
|
-
function
|
|
3841
|
+
function $n({
|
|
3842
3842
|
tone: t = "neutral",
|
|
3843
3843
|
shape: r = "round",
|
|
3844
3844
|
pulse: n = !1,
|
|
@@ -3861,7 +3861,7 @@ function Mn({
|
|
|
3861
3861
|
}
|
|
3862
3862
|
);
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function Dn({
|
|
3865
3865
|
steps: t,
|
|
3866
3866
|
current: r,
|
|
3867
3867
|
variant: n = "numbered",
|
|
@@ -3869,35 +3869,35 @@ function $n({
|
|
|
3869
3869
|
className: a
|
|
3870
3870
|
}) {
|
|
3871
3871
|
const l = t.indexOf(r), o = { role: s ? "group" : void 0, "aria-label": s, "aria-hidden": s ? void 0 : !0 };
|
|
3872
|
-
return n === "dots" ? /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-1.5", a), children: t.map((
|
|
3872
|
+
return n === "dots" ? /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-1.5", a), children: t.map((m, u) => /* @__PURE__ */ e(
|
|
3873
3873
|
"span",
|
|
3874
3874
|
{
|
|
3875
3875
|
className: d(
|
|
3876
3876
|
"h-step-bar rounded-full transition-all duration-fast ease-out",
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3877
|
+
u === l ? "w-5 bg-accent" : "w-3.5",
|
|
3878
|
+
u < l && "bg-border-strong",
|
|
3879
|
+
u > l && "bg-border"
|
|
3880
3880
|
)
|
|
3881
3881
|
},
|
|
3882
|
-
|
|
3883
|
-
)) }) : /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-2", a), children: t.map((
|
|
3882
|
+
m
|
|
3883
|
+
)) }) : /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-2", a), children: t.map((m, u) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
3884
3884
|
/* @__PURE__ */ e(
|
|
3885
3885
|
"span",
|
|
3886
3886
|
{
|
|
3887
|
-
"aria-current":
|
|
3887
|
+
"aria-current": u === l ? "step" : void 0,
|
|
3888
3888
|
className: d(
|
|
3889
3889
|
"flex size-tile-sm items-center justify-center rounded-full text-xs font-medium",
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3890
|
+
u === l && "bg-accent text-accent-fg",
|
|
3891
|
+
u < l && "bg-accent-soft text-accent",
|
|
3892
|
+
u > l && "bg-surface-hover text-text-muted"
|
|
3893
3893
|
),
|
|
3894
|
-
children:
|
|
3894
|
+
children: u + 1
|
|
3895
3895
|
}
|
|
3896
3896
|
),
|
|
3897
|
-
|
|
3898
|
-
] },
|
|
3897
|
+
u < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
|
|
3898
|
+
] }, m)) });
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function Tn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
|
|
3901
3901
|
return /* @__PURE__ */ i(
|
|
3902
3902
|
"div",
|
|
3903
3903
|
{
|
|
@@ -3919,54 +3919,59 @@ function Dn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-
|
|
|
3919
3919
|
);
|
|
3920
3920
|
}
|
|
3921
3921
|
const Ar = {
|
|
3922
|
+
default: "bg-avatar text-avatar-fg",
|
|
3923
|
+
in: "bg-avatar-in text-avatar-in-fg",
|
|
3924
|
+
out: "bg-accent text-accent-fg",
|
|
3925
|
+
note: "bg-avatar-note text-avatar-note-fg"
|
|
3926
|
+
}, Lr = {
|
|
3922
3927
|
xs: "w-5 h-5 text-xs",
|
|
3923
3928
|
sm: "w-6 h-6 text-xs",
|
|
3924
3929
|
md: "w-7 h-7 text-base",
|
|
3925
3930
|
lg: "w-9 h-9 text-sm"
|
|
3926
3931
|
};
|
|
3927
|
-
function
|
|
3932
|
+
function Ir(t) {
|
|
3928
3933
|
if (!t) return "?";
|
|
3929
3934
|
const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
|
|
3930
3935
|
return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
|
|
3931
3936
|
}
|
|
3932
|
-
const
|
|
3933
|
-
const [
|
|
3934
|
-
//
|
|
3935
|
-
// of every surface it sits on, so the monogram floated instead of
|
|
3936
|
-
// a disc.
|
|
3937
|
-
|
|
3938
|
-
"inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none bg-avatar text-avatar-fg",
|
|
3937
|
+
const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
|
|
3938
|
+
const [o, m] = oe.useState(!1), u = d(
|
|
3939
|
+
// Its own token and not `surface-hover`: at 0.972 the plate was within a few
|
|
3940
|
+
// percent of every surface it sits on, so the monogram floated instead of
|
|
3941
|
+
// sitting in a disc.
|
|
3942
|
+
"inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none",
|
|
3939
3943
|
Ar[n],
|
|
3940
|
-
s
|
|
3944
|
+
Lr[s],
|
|
3945
|
+
a
|
|
3941
3946
|
);
|
|
3942
|
-
return r && !
|
|
3947
|
+
return r && !o ? /* @__PURE__ */ e(
|
|
3943
3948
|
"img",
|
|
3944
3949
|
{
|
|
3945
3950
|
src: r,
|
|
3946
3951
|
alt: t ?? "",
|
|
3947
|
-
title:
|
|
3952
|
+
title: l ?? t,
|
|
3948
3953
|
className: d(u, "object-cover"),
|
|
3949
|
-
onError: () =>
|
|
3954
|
+
onError: () => m(!0)
|
|
3950
3955
|
}
|
|
3951
|
-
) : /* @__PURE__ */ e("span", { className: u, title:
|
|
3952
|
-
}, Re = "ring-surface",
|
|
3956
|
+
) : /* @__PURE__ */ e("span", { className: u, title: l ?? t, "aria-label": t, children: Ir(t) });
|
|
3957
|
+
}, Re = "ring-surface", jr = "ring-surface-accent", _n = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
|
|
3953
3958
|
if (t.length === 0) return null;
|
|
3954
3959
|
const a = t.slice(0, r), l = t.length - a.length;
|
|
3955
3960
|
return /* @__PURE__ */ i("span", { className: d("inline-flex items-center", s), children: [
|
|
3956
|
-
a.map((o,
|
|
3957
|
-
|
|
3961
|
+
a.map((o, m) => /* @__PURE__ */ e(
|
|
3962
|
+
Pr,
|
|
3958
3963
|
{
|
|
3959
3964
|
name: o.name,
|
|
3960
3965
|
src: o.src,
|
|
3961
3966
|
size: n,
|
|
3962
3967
|
title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
|
|
3963
3968
|
className: d(
|
|
3964
|
-
|
|
3965
|
-
o.owner ?
|
|
3969
|
+
m > 0 && "-ml-2",
|
|
3970
|
+
o.owner ? jr : Re,
|
|
3966
3971
|
o.seen === !1 && "opacity-40"
|
|
3967
3972
|
)
|
|
3968
3973
|
},
|
|
3969
|
-
o.id ?? `${o.name}-${
|
|
3974
|
+
o.id ?? `${o.name}-${m}`
|
|
3970
3975
|
)),
|
|
3971
3976
|
l > 0 && /* @__PURE__ */ i(
|
|
3972
3977
|
"span",
|
|
@@ -3991,12 +3996,12 @@ const Ir = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
|
3991
3996
|
chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
|
|
3992
3997
|
tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
|
|
3993
3998
|
note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
|
|
3994
|
-
},
|
|
3999
|
+
}, Or = {
|
|
3995
4000
|
sm: "size-avatar-xs rounded-sm text-xs",
|
|
3996
4001
|
md: "size-avatar-sm rounded-md text-xs",
|
|
3997
4002
|
lg: "size-avatar-lg rounded-md text-base"
|
|
3998
4003
|
};
|
|
3999
|
-
function
|
|
4004
|
+
function An({ channel: t, children: r, size: n = "md", className: s, title: a }) {
|
|
4000
4005
|
const l = He[t in He ? t : "note"];
|
|
4001
4006
|
return /* @__PURE__ */ e(
|
|
4002
4007
|
"span",
|
|
@@ -4004,7 +4009,7 @@ function _n({ channel: t, children: r, size: n = "md", className: s, title: a })
|
|
|
4004
4009
|
title: a,
|
|
4005
4010
|
className: d(
|
|
4006
4011
|
"inline-flex shrink-0 items-center justify-center font-bold",
|
|
4007
|
-
|
|
4012
|
+
Or[n],
|
|
4008
4013
|
l.fg,
|
|
4009
4014
|
l.bg,
|
|
4010
4015
|
s
|
|
@@ -4013,7 +4018,7 @@ function _n({ channel: t, children: r, size: n = "md", className: s, title: a })
|
|
|
4013
4018
|
}
|
|
4014
4019
|
);
|
|
4015
4020
|
}
|
|
4016
|
-
const
|
|
4021
|
+
const Ln = ({
|
|
4017
4022
|
src: t,
|
|
4018
4023
|
alt: r,
|
|
4019
4024
|
size: n = "md",
|
|
@@ -4021,8 +4026,8 @@ const An = ({
|
|
|
4021
4026
|
radius: a = "md",
|
|
4022
4027
|
showLoading: l = !0,
|
|
4023
4028
|
showError: o = !0,
|
|
4024
|
-
fallback:
|
|
4025
|
-
loadingContent:
|
|
4029
|
+
fallback: m,
|
|
4030
|
+
loadingContent: u,
|
|
4026
4031
|
errorContent: y,
|
|
4027
4032
|
className: x,
|
|
4028
4033
|
onLoad: h,
|
|
@@ -4032,8 +4037,8 @@ const An = ({
|
|
|
4032
4037
|
const [k, g] = O(!0), [f, $] = O(!1), [C, q] = O(t), T = (K) => {
|
|
4033
4038
|
g(!1), $(!1), h?.(K);
|
|
4034
4039
|
}, G = (K) => {
|
|
4035
|
-
if (g(!1), $(!0),
|
|
4036
|
-
q(
|
|
4040
|
+
if (g(!1), $(!0), m && C !== m) {
|
|
4041
|
+
q(m), $(!1), g(!0);
|
|
4037
4042
|
return;
|
|
4038
4043
|
}
|
|
4039
4044
|
b?.(K);
|
|
@@ -4090,11 +4095,11 @@ const An = ({
|
|
|
4090
4095
|
onError: G
|
|
4091
4096
|
}
|
|
4092
4097
|
),
|
|
4093
|
-
k && l && /* @__PURE__ */ e("div", { className: H, children:
|
|
4098
|
+
k && l && /* @__PURE__ */ e("div", { className: H, children: u || te }),
|
|
4094
4099
|
f && o && /* @__PURE__ */ e("div", { className: H, children: y || J })
|
|
4095
4100
|
] });
|
|
4096
4101
|
};
|
|
4097
|
-
function
|
|
4102
|
+
function In({
|
|
4098
4103
|
icon: t,
|
|
4099
4104
|
onClick: r,
|
|
4100
4105
|
children: n
|
|
@@ -4117,7 +4122,7 @@ function Ln({
|
|
|
4117
4122
|
}
|
|
4118
4123
|
);
|
|
4119
4124
|
}
|
|
4120
|
-
function
|
|
4125
|
+
function Pn({
|
|
4121
4126
|
items: t,
|
|
4122
4127
|
getRowKey: r,
|
|
4123
4128
|
variant: n = "divided",
|
|
@@ -4125,8 +4130,8 @@ function In({
|
|
|
4125
4130
|
renderItem: a,
|
|
4126
4131
|
trailing: l,
|
|
4127
4132
|
onSelect: o,
|
|
4128
|
-
onActiveIndexChange:
|
|
4129
|
-
isActive:
|
|
4133
|
+
onActiveIndexChange: m,
|
|
4134
|
+
isActive: u,
|
|
4130
4135
|
unread: y,
|
|
4131
4136
|
dimmed: x,
|
|
4132
4137
|
groupBy: h,
|
|
@@ -4190,7 +4195,7 @@ function In({
|
|
|
4190
4195
|
if (t.length === 0 && H)
|
|
4191
4196
|
return /* @__PURE__ */ e("div", { className: ee, children: H });
|
|
4192
4197
|
const Y = t.length > 0 && C.length === t.length, P = C.length > 0 && !Y, D = (z, F, j) => {
|
|
4193
|
-
const B =
|
|
4198
|
+
const B = u?.(z, F) ?? !1, M = y?.(z, F) ?? !1, L = x?.(z, F) ?? !1, Z = $ && N(z);
|
|
4194
4199
|
return /* @__PURE__ */ i(
|
|
4195
4200
|
"li",
|
|
4196
4201
|
{
|
|
@@ -4200,7 +4205,7 @@ function In({
|
|
|
4200
4205
|
"data-list-row": "",
|
|
4201
4206
|
"aria-current": B || void 0,
|
|
4202
4207
|
onClick: () => o(z, F),
|
|
4203
|
-
onFocus: () =>
|
|
4208
|
+
onFocus: () => m?.(F),
|
|
4204
4209
|
onKeyDown: (ne) => {
|
|
4205
4210
|
ne.key !== "Enter" && ne.key !== " " || (ne.preventDefault(), o(z, F));
|
|
4206
4211
|
}
|
|
@@ -4353,7 +4358,7 @@ function In({
|
|
|
4353
4358
|
] }) })
|
|
4354
4359
|
] });
|
|
4355
4360
|
}
|
|
4356
|
-
function
|
|
4361
|
+
function jn({
|
|
4357
4362
|
side: t,
|
|
4358
4363
|
continued: r = !1,
|
|
4359
4364
|
tone: n = "default",
|
|
@@ -4366,7 +4371,10 @@ function Pn({
|
|
|
4366
4371
|
className: d(
|
|
4367
4372
|
// A bubble never spans the whole column; it narrows further from md,
|
|
4368
4373
|
// where the thread itself is wide enough for the difference to matter.
|
|
4369
|
-
|
|
4374
|
+
// No shadow: a bubble is an inner card, and inner cards separate
|
|
4375
|
+
// themselves with a fill. The shadow was doing the separating while both
|
|
4376
|
+
// sides were white.
|
|
4377
|
+
"min-w-0 max-w-bubble md:max-w-bubble-md",
|
|
4370
4378
|
// No outline on an ordinary message: its fill already separates it from
|
|
4371
4379
|
// the thread, and a border on every bubble turns a conversation into a
|
|
4372
4380
|
// stack of boxes. The flagged tones keep theirs — there the outline is
|
|
@@ -4375,7 +4383,11 @@ function Pn({
|
|
|
4375
4383
|
// tone === "note" && "border border-note-border",
|
|
4376
4384
|
// The tight corner points back at the sender.
|
|
4377
4385
|
t === "out" ? "rounded-lg rounded-tr-sm" : "rounded-lg rounded-tl-sm",
|
|
4378
|
-
|
|
4386
|
+
// Sent is a pale blue, received the neutral sunk grey — the same pair the
|
|
4387
|
+
// full-width feed cards use, so a chat thread and a mail thread say
|
|
4388
|
+
// "ours" and "theirs" the same way. Both used to be white on white,
|
|
4389
|
+
// which left the corner radius as the only cue.
|
|
4390
|
+
n === "note" ? "bg-note-soft" : t === "out" ? "bg-bubble-out-soft" : "bg-surface-sunk",
|
|
4379
4391
|
r && "mt-1",
|
|
4380
4392
|
s
|
|
4381
4393
|
),
|
|
@@ -4383,18 +4395,18 @@ function Pn({
|
|
|
4383
4395
|
}
|
|
4384
4396
|
);
|
|
4385
4397
|
}
|
|
4386
|
-
const
|
|
4398
|
+
const Fr = {
|
|
4387
4399
|
default: "text-text",
|
|
4388
4400
|
urgent: "text-danger-fg",
|
|
4389
4401
|
success: "text-success-fg"
|
|
4390
4402
|
};
|
|
4391
|
-
function
|
|
4403
|
+
function On({ value: t, label: r, tone: n = "default", className: s, ...a }) {
|
|
4392
4404
|
return /* @__PURE__ */ i("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
|
|
4393
|
-
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold",
|
|
4405
|
+
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Fr[n]), children: t }),
|
|
4394
4406
|
/* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
|
|
4395
4407
|
] });
|
|
4396
4408
|
}
|
|
4397
|
-
const
|
|
4409
|
+
const Fn = ({
|
|
4398
4410
|
surface: t = !1,
|
|
4399
4411
|
title: r,
|
|
4400
4412
|
subtitle: n,
|
|
@@ -4402,8 +4414,8 @@ const On = ({
|
|
|
4402
4414
|
actions: a = [],
|
|
4403
4415
|
children: l,
|
|
4404
4416
|
className: o,
|
|
4405
|
-
backLabel:
|
|
4406
|
-
backClassName:
|
|
4417
|
+
backLabel: m = "Back",
|
|
4418
|
+
backClassName: u,
|
|
4407
4419
|
onBack: y,
|
|
4408
4420
|
editable: x = !1,
|
|
4409
4421
|
onTitleChange: h
|
|
@@ -4472,7 +4484,20 @@ const On = ({
|
|
|
4472
4484
|
}
|
|
4473
4485
|
)
|
|
4474
4486
|
] }),
|
|
4475
|
-
s &&
|
|
4487
|
+
s && // A string meta is one line and ellipsises; a node may be a row
|
|
4488
|
+
// of controls (the interaction header's property line) that has
|
|
4489
|
+
// to be allowed to wrap — `truncate` would clip it to one line
|
|
4490
|
+
// and hide the last properties.
|
|
4491
|
+
/* @__PURE__ */ e(
|
|
4492
|
+
"div",
|
|
4493
|
+
{
|
|
4494
|
+
className: d(
|
|
4495
|
+
"mt-1 min-w-0 text-sm text-text-subtle",
|
|
4496
|
+
typeof s == "string" && "truncate"
|
|
4497
|
+
),
|
|
4498
|
+
children: s
|
|
4499
|
+
}
|
|
4500
|
+
)
|
|
4476
4501
|
] })
|
|
4477
4502
|
] }) }),
|
|
4478
4503
|
a.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: a.map(
|
|
@@ -4506,7 +4531,7 @@ const On = ({
|
|
|
4506
4531
|
]
|
|
4507
4532
|
}
|
|
4508
4533
|
);
|
|
4509
|
-
},
|
|
4534
|
+
}, Br = /<[a-z][\s\S]*>/i, Rr = [
|
|
4510
4535
|
"[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
|
|
4511
4536
|
"[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
|
|
4512
4537
|
"[&_strong]:font-semibold [&_em]:italic",
|
|
@@ -4521,7 +4546,7 @@ const On = ({
|
|
|
4521
4546
|
"[&_table]:my-1.5 [&_table]:w-full [&_table]:border-collapse [&_table]:text-xs",
|
|
4522
4547
|
"[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
|
|
4523
4548
|
"[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1"
|
|
4524
|
-
].join(" "),
|
|
4549
|
+
].join(" "), Hr = {
|
|
4525
4550
|
p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
|
|
4526
4551
|
a: (t) => /* @__PURE__ */ e("a", { className: "text-accent underline underline-offset-2 hover:opacity-80", target: "_blank", rel: "noopener noreferrer", ...t }),
|
|
4527
4552
|
strong: (t) => /* @__PURE__ */ e("strong", { className: "font-semibold", ...t }),
|
|
@@ -4544,17 +4569,22 @@ const On = ({
|
|
|
4544
4569
|
th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
|
|
4545
4570
|
td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
|
|
4546
4571
|
};
|
|
4547
|
-
function
|
|
4572
|
+
function Bn({ text: t, className: r, as: n }) {
|
|
4548
4573
|
const s = t ?? "";
|
|
4549
|
-
return (n ? n === "html" :
|
|
4574
|
+
return (n ? n === "html" : Br.test(s)) ? /* @__PURE__ */ e(
|
|
4550
4575
|
"div",
|
|
4551
4576
|
{
|
|
4552
|
-
className: d("break-words",
|
|
4577
|
+
className: d("break-words", Rr, r),
|
|
4553
4578
|
dangerouslySetInnerHTML: { __html: kt.sanitize(s, { ADD_ATTR: ["target", "rel"] }) }
|
|
4554
4579
|
}
|
|
4555
|
-
) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Ct, { remarkPlugins: [St], components:
|
|
4580
|
+
) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Ct, { remarkPlugins: [St], components: Hr, children: s }) });
|
|
4556
4581
|
}
|
|
4557
|
-
|
|
4582
|
+
const Rn = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ i("div", { className: d("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
|
|
4583
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-2xs font-semibold uppercase tracking-label text-text-subtle", children: t }),
|
|
4584
|
+
r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
|
|
4585
|
+
n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
|
|
4586
|
+
] });
|
|
4587
|
+
function Hn({ label: t, trailing: r, align: n = "center", className: s }) {
|
|
4558
4588
|
const a = /* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border-subtle", "aria-hidden": !0 });
|
|
4559
4589
|
return !t && !r ? /* @__PURE__ */ e("div", { className: d("flex items-center py-2", s), children: a }) : /* @__PURE__ */ i("div", { className: d("flex items-center gap-3 py-2", s), children: [
|
|
4560
4590
|
n === "center" && a,
|
|
@@ -4563,7 +4593,7 @@ function Bn({ label: t, trailing: r, align: n = "center", className: s }) {
|
|
|
4563
4593
|
r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
|
|
4564
4594
|
] });
|
|
4565
4595
|
}
|
|
4566
|
-
function
|
|
4596
|
+
function Vn({
|
|
4567
4597
|
label: t,
|
|
4568
4598
|
description: r,
|
|
4569
4599
|
control: n,
|
|
@@ -4590,7 +4620,7 @@ function Rn({
|
|
|
4590
4620
|
}
|
|
4591
4621
|
);
|
|
4592
4622
|
}
|
|
4593
|
-
function
|
|
4623
|
+
function qn({
|
|
4594
4624
|
icon: t,
|
|
4595
4625
|
title: r,
|
|
4596
4626
|
description: n,
|
|
@@ -4610,7 +4640,7 @@ function Hn({
|
|
|
4610
4640
|
/* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
|
|
4611
4641
|
] });
|
|
4612
4642
|
}
|
|
4613
|
-
function
|
|
4643
|
+
function Un({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
4614
4644
|
return /* @__PURE__ */ i(
|
|
4615
4645
|
"button",
|
|
4616
4646
|
{
|
|
@@ -4628,13 +4658,13 @@ function Vn({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
|
4628
4658
|
}
|
|
4629
4659
|
);
|
|
4630
4660
|
}
|
|
4631
|
-
function
|
|
4661
|
+
function Vr(t, r) {
|
|
4632
4662
|
return r.split(".").reduce(
|
|
4633
4663
|
(n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
|
|
4634
4664
|
t
|
|
4635
4665
|
);
|
|
4636
4666
|
}
|
|
4637
|
-
const
|
|
4667
|
+
const Wn = ({
|
|
4638
4668
|
groups: t,
|
|
4639
4669
|
data: r,
|
|
4640
4670
|
size: n = "md",
|
|
@@ -4655,9 +4685,9 @@ const qn = ({
|
|
|
4655
4685
|
if (!h) return String(x || "-");
|
|
4656
4686
|
const b = h.find((v) => v.value === x);
|
|
4657
4687
|
return b ? b.label : String(x || "-");
|
|
4658
|
-
},
|
|
4688
|
+
}, m = he(
|
|
4659
4689
|
(x) => {
|
|
4660
|
-
const h =
|
|
4690
|
+
const h = Vr(r, x.name);
|
|
4661
4691
|
if (x.type === "array") {
|
|
4662
4692
|
const v = h;
|
|
4663
4693
|
return !v || v.length === 0 ? /* @__PURE__ */ e(
|
|
@@ -4797,7 +4827,7 @@ const qn = ({
|
|
|
4797
4827
|
);
|
|
4798
4828
|
},
|
|
4799
4829
|
[r]
|
|
4800
|
-
),
|
|
4830
|
+
), u = he(
|
|
4801
4831
|
(x) => {
|
|
4802
4832
|
if (x.conditional && !x.conditional(r))
|
|
4803
4833
|
return null;
|
|
@@ -4861,7 +4891,7 @@ const qn = ({
|
|
|
4861
4891
|
children: v.label
|
|
4862
4892
|
}
|
|
4863
4893
|
),
|
|
4864
|
-
|
|
4894
|
+
m(v)
|
|
4865
4895
|
]
|
|
4866
4896
|
},
|
|
4867
4897
|
v.name
|
|
@@ -4871,7 +4901,7 @@ const qn = ({
|
|
|
4871
4901
|
x.id
|
|
4872
4902
|
);
|
|
4873
4903
|
},
|
|
4874
|
-
[r,
|
|
4904
|
+
[r, m]
|
|
4875
4905
|
), y = d(
|
|
4876
4906
|
"space-y-6",
|
|
4877
4907
|
{
|
|
@@ -4882,7 +4912,7 @@ const qn = ({
|
|
|
4882
4912
|
},
|
|
4883
4913
|
s
|
|
4884
4914
|
);
|
|
4885
|
-
return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(
|
|
4915
|
+
return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(u) }) });
|
|
4886
4916
|
}, Xe = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
|
|
4887
4917
|
const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
|
|
4888
4918
|
if (a)
|
|
@@ -4899,10 +4929,10 @@ const qn = ({
|
|
|
4899
4929
|
]
|
|
4900
4930
|
}
|
|
4901
4931
|
),
|
|
4902
|
-
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((
|
|
4932
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((u, y) => /* @__PURE__ */ e(
|
|
4903
4933
|
Xe,
|
|
4904
4934
|
{
|
|
4905
|
-
item:
|
|
4935
|
+
item: u,
|
|
4906
4936
|
isSelectedHandler: r,
|
|
4907
4937
|
onClick: n,
|
|
4908
4938
|
depth: s + 1
|
|
@@ -4910,15 +4940,15 @@ const qn = ({
|
|
|
4910
4940
|
y
|
|
4911
4941
|
)) })
|
|
4912
4942
|
] });
|
|
4913
|
-
const o = t.action,
|
|
4943
|
+
const o = t.action, m = o?.visibility !== "always";
|
|
4914
4944
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
4915
4945
|
"div",
|
|
4916
4946
|
{
|
|
4917
4947
|
role: "button",
|
|
4918
4948
|
tabIndex: 0,
|
|
4919
4949
|
onClick: () => t.path && n?.(t.path),
|
|
4920
|
-
onKeyDown: (
|
|
4921
|
-
(
|
|
4950
|
+
onKeyDown: (u) => {
|
|
4951
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), t.path && n?.(t.path));
|
|
4922
4952
|
},
|
|
4923
4953
|
className: d(
|
|
4924
4954
|
// De kolom ligt op de backdrop, niet op een paneel: het actieve item
|
|
@@ -4947,7 +4977,7 @@ const qn = ({
|
|
|
4947
4977
|
className: d(
|
|
4948
4978
|
"shrink-0 text-xs tabular-nums",
|
|
4949
4979
|
l ? "rounded-full bg-accent px-1.5 font-semibold text-accent-fg" : "text-text-subtle",
|
|
4950
|
-
o &&
|
|
4980
|
+
o && m && "group-hover/item:hidden group-focus-within/item:hidden"
|
|
4951
4981
|
),
|
|
4952
4982
|
children: t.count
|
|
4953
4983
|
}
|
|
@@ -4958,16 +4988,16 @@ const qn = ({
|
|
|
4958
4988
|
type: "button",
|
|
4959
4989
|
"aria-label": o.label,
|
|
4960
4990
|
title: o.label,
|
|
4961
|
-
onClick: (
|
|
4962
|
-
|
|
4991
|
+
onClick: (u) => {
|
|
4992
|
+
u.stopPropagation(), o.onClick();
|
|
4963
4993
|
},
|
|
4964
|
-
onKeyDown: (
|
|
4994
|
+
onKeyDown: (u) => u.stopPropagation(),
|
|
4965
4995
|
className: d(
|
|
4966
4996
|
"flex size-5 shrink-0 items-center justify-center rounded-sm",
|
|
4967
4997
|
"text-text-subtle transition-colors duration-fast ease-out",
|
|
4968
4998
|
"hover:bg-page-hover hover:text-text",
|
|
4969
4999
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
4970
|
-
|
|
5000
|
+
m && "opacity-0 group-hover/item:opacity-100 focus-visible:opacity-100"
|
|
4971
5001
|
),
|
|
4972
5002
|
children: o.icon
|
|
4973
5003
|
}
|
|
@@ -4975,7 +5005,7 @@ const qn = ({
|
|
|
4975
5005
|
]
|
|
4976
5006
|
}
|
|
4977
5007
|
) });
|
|
4978
|
-
},
|
|
5008
|
+
}, Kn = ({
|
|
4979
5009
|
items: t,
|
|
4980
5010
|
isSelectedHandler: r,
|
|
4981
5011
|
onClick: n,
|
|
@@ -4993,7 +5023,7 @@ const qn = ({
|
|
|
4993
5023
|
l
|
|
4994
5024
|
)
|
|
4995
5025
|
) })
|
|
4996
|
-
] }),
|
|
5026
|
+
] }), qr = {
|
|
4997
5027
|
xs: "text-xs",
|
|
4998
5028
|
sm: "text-sm",
|
|
4999
5029
|
md: "text-base",
|
|
@@ -5002,13 +5032,13 @@ const qn = ({
|
|
|
5002
5032
|
"2xl": "text-2xl",
|
|
5003
5033
|
"3xl": "text-3xl",
|
|
5004
5034
|
"4xl": "text-3xl"
|
|
5005
|
-
},
|
|
5035
|
+
}, Ur = {
|
|
5006
5036
|
light: "font-normal",
|
|
5007
5037
|
normal: "font-normal",
|
|
5008
5038
|
medium: "font-medium",
|
|
5009
5039
|
semibold: "font-semibold",
|
|
5010
5040
|
bold: "font-bold"
|
|
5011
|
-
},
|
|
5041
|
+
}, Wr = {
|
|
5012
5042
|
primary: "text-text",
|
|
5013
5043
|
secondary: "text-text-muted",
|
|
5014
5044
|
accent: "text-accent",
|
|
@@ -5018,11 +5048,11 @@ const qn = ({
|
|
|
5018
5048
|
info: "text-info-fg",
|
|
5019
5049
|
neutral: "text-text",
|
|
5020
5050
|
current: "text-current"
|
|
5021
|
-
},
|
|
5051
|
+
}, Kr = {
|
|
5022
5052
|
left: "text-left",
|
|
5023
5053
|
center: "text-center",
|
|
5024
5054
|
right: "text-right"
|
|
5025
|
-
},
|
|
5055
|
+
}, Gn = ({
|
|
5026
5056
|
level: t = 1,
|
|
5027
5057
|
size: r,
|
|
5028
5058
|
weight: n = "semibold",
|
|
@@ -5030,21 +5060,21 @@ const qn = ({
|
|
|
5030
5060
|
align: a = "left",
|
|
5031
5061
|
truncate: l = !1,
|
|
5032
5062
|
className: o,
|
|
5033
|
-
children:
|
|
5034
|
-
...
|
|
5063
|
+
children: m,
|
|
5064
|
+
...u
|
|
5035
5065
|
}) => {
|
|
5036
5066
|
const y = `h${t}`, x = d(
|
|
5037
5067
|
"font-sans text-pretty",
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5068
|
+
qr[r || Gr(t)],
|
|
5069
|
+
Ur[n],
|
|
5070
|
+
Wr[s],
|
|
5071
|
+
Kr[a],
|
|
5042
5072
|
l && "truncate",
|
|
5043
5073
|
o
|
|
5044
5074
|
);
|
|
5045
|
-
return /* @__PURE__ */ e(y, { className: x, ...
|
|
5075
|
+
return /* @__PURE__ */ e(y, { className: x, ...u, children: m });
|
|
5046
5076
|
};
|
|
5047
|
-
function
|
|
5077
|
+
function Gr(t) {
|
|
5048
5078
|
return {
|
|
5049
5079
|
1: "2xl",
|
|
5050
5080
|
2: "xl",
|
|
@@ -5054,7 +5084,7 @@ function Kr(t) {
|
|
|
5054
5084
|
6: "md"
|
|
5055
5085
|
}[t] || "md";
|
|
5056
5086
|
}
|
|
5057
|
-
const
|
|
5087
|
+
const Jn = ({
|
|
5058
5088
|
commands: t,
|
|
5059
5089
|
isOpen: r,
|
|
5060
5090
|
onClose: n,
|
|
@@ -5062,11 +5092,11 @@ const Kn = ({
|
|
|
5062
5092
|
initialCommandPath: a,
|
|
5063
5093
|
initialActiveIndex: l
|
|
5064
5094
|
}) => {
|
|
5065
|
-
const [o,
|
|
5095
|
+
const [o, m] = O(""), [u, y] = O(a || []), [x, h] = O(l || 0), b = se(null), v = se(null), g = (u.length ? t.find((f) => f.id === u[0])?.subCommands || [] : t).filter(
|
|
5066
5096
|
(f) => f.label.toLowerCase().includes(o.toLowerCase())
|
|
5067
5097
|
);
|
|
5068
5098
|
return X(() => {
|
|
5069
|
-
r || (
|
|
5099
|
+
r || (m(""), y(a || []), h(l || 0));
|
|
5070
5100
|
}, [r]), X(() => {
|
|
5071
5101
|
const f = ($) => {
|
|
5072
5102
|
if (r) {
|
|
@@ -5082,12 +5112,12 @@ const Kn = ({
|
|
|
5082
5112
|
);
|
|
5083
5113
|
else if ($.key === "Enter") {
|
|
5084
5114
|
const C = g[x];
|
|
5085
|
-
C && (C.subCommands ? (y([...
|
|
5115
|
+
C && (C.subCommands ? (y([...u, C.id]), h(0)) : C.action && (C.action(), n()));
|
|
5086
5116
|
}
|
|
5087
5117
|
}
|
|
5088
5118
|
};
|
|
5089
5119
|
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
5090
|
-
}, [r, n, g, x,
|
|
5120
|
+
}, [r, n, g, x, u]), X(() => {
|
|
5091
5121
|
const f = ($) => {
|
|
5092
5122
|
b.current && !b.current.contains($.target) && n();
|
|
5093
5123
|
};
|
|
@@ -5110,7 +5140,7 @@ const Kn = ({
|
|
|
5110
5140
|
autoFocus: !0,
|
|
5111
5141
|
placeholder: s?.searchPlaceholder || "Search commands...",
|
|
5112
5142
|
value: o,
|
|
5113
|
-
onChange: (f) =>
|
|
5143
|
+
onChange: (f) => m(f.target.value),
|
|
5114
5144
|
className: "w-full border-0 bg-transparent py-2 text-text focus:outline-none"
|
|
5115
5145
|
}
|
|
5116
5146
|
)
|
|
@@ -5128,7 +5158,7 @@ const Kn = ({
|
|
|
5128
5158
|
"data-index": $,
|
|
5129
5159
|
className: `flex items-center p-2 cursor-pointer rounded-md ${$ === x ? "bg-accent-soft text-accent" : "text-text"}`,
|
|
5130
5160
|
onClick: () => {
|
|
5131
|
-
f.subCommands ? (y([...
|
|
5161
|
+
f.subCommands ? (y([...u, f.id]), h(0)) : f.action && (f.action(), n());
|
|
5132
5162
|
},
|
|
5133
5163
|
onMouseEnter: () => h($),
|
|
5134
5164
|
children: [
|
|
@@ -5159,7 +5189,7 @@ const Kn = ({
|
|
|
5159
5189
|
]
|
|
5160
5190
|
}
|
|
5161
5191
|
) }) : null;
|
|
5162
|
-
},
|
|
5192
|
+
}, Jr = {
|
|
5163
5193
|
none: "p-0",
|
|
5164
5194
|
xs: "p-1",
|
|
5165
5195
|
sm: "p-2",
|
|
@@ -5167,7 +5197,7 @@ const Kn = ({
|
|
|
5167
5197
|
lg: "p-6",
|
|
5168
5198
|
xl: "p-8",
|
|
5169
5199
|
"2xl": "p-12"
|
|
5170
|
-
},
|
|
5200
|
+
}, Yr = {
|
|
5171
5201
|
none: "m-0",
|
|
5172
5202
|
xs: "m-1",
|
|
5173
5203
|
sm: "m-2",
|
|
@@ -5175,7 +5205,7 @@ const Kn = ({
|
|
|
5175
5205
|
lg: "m-6",
|
|
5176
5206
|
xl: "m-8",
|
|
5177
5207
|
"2xl": "m-12"
|
|
5178
|
-
},
|
|
5208
|
+
}, Xr = {
|
|
5179
5209
|
none: "",
|
|
5180
5210
|
primary: "bg-accent text-accent-fg",
|
|
5181
5211
|
secondary: "bg-surface-hover",
|
|
@@ -5191,26 +5221,26 @@ const Kn = ({
|
|
|
5191
5221
|
backdrop: "bg-page",
|
|
5192
5222
|
editor: "bg-surface",
|
|
5193
5223
|
input: "bg-surface-input"
|
|
5194
|
-
},
|
|
5224
|
+
}, Zr = {
|
|
5195
5225
|
none: "rounded-none",
|
|
5196
5226
|
sm: "rounded-sm",
|
|
5197
5227
|
md: "rounded-md",
|
|
5198
5228
|
lg: "rounded-lg",
|
|
5199
5229
|
xl: "rounded-xl",
|
|
5200
5230
|
full: "rounded-full"
|
|
5201
|
-
},
|
|
5231
|
+
}, Qr = {
|
|
5202
5232
|
none: "shadow-none",
|
|
5203
5233
|
sm: "shadow-none",
|
|
5204
5234
|
md: "shadow-overlay",
|
|
5205
5235
|
lg: "shadow-overlay",
|
|
5206
5236
|
xl: "shadow-modal",
|
|
5207
5237
|
"2xl": "shadow-modal"
|
|
5208
|
-
},
|
|
5238
|
+
}, en = {
|
|
5209
5239
|
none: "border-0",
|
|
5210
5240
|
sm: "border",
|
|
5211
5241
|
md: "border-2",
|
|
5212
5242
|
lg: "border-4"
|
|
5213
|
-
},
|
|
5243
|
+
}, tn = {
|
|
5214
5244
|
primary: "border-accent-border",
|
|
5215
5245
|
secondary: "border-border",
|
|
5216
5246
|
accent: "border-accent-border",
|
|
@@ -5229,30 +5259,30 @@ const Kn = ({
|
|
|
5229
5259
|
shadow: a,
|
|
5230
5260
|
border: l,
|
|
5231
5261
|
borderColor: o,
|
|
5232
|
-
className:
|
|
5233
|
-
children:
|
|
5262
|
+
className: m,
|
|
5263
|
+
children: u,
|
|
5234
5264
|
...y
|
|
5235
5265
|
}, x) => /* @__PURE__ */ e(
|
|
5236
5266
|
"div",
|
|
5237
5267
|
{
|
|
5238
5268
|
ref: x,
|
|
5239
5269
|
className: d(
|
|
5240
|
-
t &&
|
|
5241
|
-
r &&
|
|
5242
|
-
n &&
|
|
5243
|
-
s &&
|
|
5244
|
-
a &&
|
|
5245
|
-
l &&
|
|
5246
|
-
o &&
|
|
5247
|
-
|
|
5270
|
+
t && Jr[t],
|
|
5271
|
+
r && Yr[r],
|
|
5272
|
+
n && Xr[n],
|
|
5273
|
+
s && Zr[s],
|
|
5274
|
+
a && Qr[a],
|
|
5275
|
+
l && en[l],
|
|
5276
|
+
o && tn[o],
|
|
5277
|
+
m
|
|
5248
5278
|
),
|
|
5249
5279
|
...y,
|
|
5250
|
-
children:
|
|
5280
|
+
children: u
|
|
5251
5281
|
}
|
|
5252
5282
|
)
|
|
5253
5283
|
);
|
|
5254
5284
|
Ze.displayName = "Box";
|
|
5255
|
-
const
|
|
5285
|
+
const Yn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
|
|
5256
5286
|
Ze,
|
|
5257
5287
|
{
|
|
5258
5288
|
background: "module",
|
|
@@ -5267,7 +5297,7 @@ const Gn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
|
|
|
5267
5297
|
]
|
|
5268
5298
|
}
|
|
5269
5299
|
);
|
|
5270
|
-
function
|
|
5300
|
+
function Xn({
|
|
5271
5301
|
identifier: t,
|
|
5272
5302
|
resourceLoader: r,
|
|
5273
5303
|
framework: n = "react",
|
|
@@ -5276,7 +5306,7 @@ function Jn({
|
|
|
5276
5306
|
componentProps: l,
|
|
5277
5307
|
className: o
|
|
5278
5308
|
}) {
|
|
5279
|
-
const
|
|
5309
|
+
const m = se(null), [u, y] = O(!0), [x, h] = O(!1), [b, v] = O(null), k = se(null);
|
|
5280
5310
|
se(null);
|
|
5281
5311
|
const g = se(r);
|
|
5282
5312
|
return g.current = r, X(() => {
|
|
@@ -5297,8 +5327,8 @@ function Jn({
|
|
|
5297
5327
|
f = !1;
|
|
5298
5328
|
};
|
|
5299
5329
|
}, [t, n]), X(() => {
|
|
5300
|
-
if (
|
|
5301
|
-
const f =
|
|
5330
|
+
if (u || !b || n === "react") return;
|
|
5331
|
+
const f = m.current;
|
|
5302
5332
|
if (f) {
|
|
5303
5333
|
if (n === "svelte") {
|
|
5304
5334
|
const $ = b.default || b, C = new $({ target: f, props: l || {} });
|
|
@@ -5311,15 +5341,15 @@ function Jn({
|
|
|
5311
5341
|
};
|
|
5312
5342
|
}
|
|
5313
5343
|
}
|
|
5314
|
-
}, [b, n,
|
|
5344
|
+
}, [b, n, u]), X(() => {
|
|
5315
5345
|
n === "svelte" && k.current && k.current.$set?.(l);
|
|
5316
|
-
}, [l, n]), /* @__PURE__ */ i("div", { ref:
|
|
5317
|
-
|
|
5318
|
-
!
|
|
5346
|
+
}, [l, n]), /* @__PURE__ */ i("div", { ref: m, className: o, style: { display: "contents" }, children: [
|
|
5347
|
+
u && s,
|
|
5348
|
+
!u && x && a,
|
|
5319
5349
|
n === "react" && !x && b && /* @__PURE__ */ e(b, { ...l })
|
|
5320
5350
|
] });
|
|
5321
5351
|
}
|
|
5322
|
-
class
|
|
5352
|
+
class Zn extends wt {
|
|
5323
5353
|
constructor() {
|
|
5324
5354
|
super(...arguments), this.state = {
|
|
5325
5355
|
hasError: !1,
|
|
@@ -5348,74 +5378,75 @@ class Yn extends wt {
|
|
|
5348
5378
|
}
|
|
5349
5379
|
}
|
|
5350
5380
|
export {
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5381
|
+
Tn as AssistantCard,
|
|
5382
|
+
Pr as Avatar,
|
|
5383
|
+
_n as AvatarStack,
|
|
5384
|
+
Cn as Badge,
|
|
5355
5385
|
Ze as Box,
|
|
5356
5386
|
ae as Button,
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5387
|
+
bn as ButtonGroup,
|
|
5388
|
+
Yn as Card,
|
|
5389
|
+
An as ChannelBadge,
|
|
5360
5390
|
ye as Checkbox,
|
|
5361
|
-
|
|
5362
|
-
|
|
5391
|
+
Jn as CommandPalette,
|
|
5392
|
+
kn as ConfirmDialog,
|
|
5363
5393
|
rr as ContentLoading,
|
|
5364
5394
|
Ae as DatePicker,
|
|
5365
5395
|
nr as Dropdown,
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5396
|
+
Sn as EmptyState,
|
|
5397
|
+
Zn as ErrorBoundary,
|
|
5398
|
+
Xn as FederatedResource,
|
|
5369
5399
|
Lt as FilterChip,
|
|
5370
5400
|
Yt as FolderSelect,
|
|
5371
|
-
|
|
5401
|
+
wn as Form,
|
|
5372
5402
|
wr as FormSection,
|
|
5373
|
-
|
|
5403
|
+
Gn as Heading,
|
|
5374
5404
|
Q as Icon,
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5405
|
+
Ln as Image,
|
|
5406
|
+
En as Kbd,
|
|
5407
|
+
On as KpiCard,
|
|
5408
|
+
gn as Link,
|
|
5409
|
+
Pn as List,
|
|
5410
|
+
In as ListBulkAction,
|
|
5411
|
+
fn as MeetingGrid,
|
|
5412
|
+
jn as MessageBubble,
|
|
5383
5413
|
Ye as Modal,
|
|
5384
|
-
|
|
5385
|
-
|
|
5414
|
+
Fn as PageHeader,
|
|
5415
|
+
pn as PageToolbar,
|
|
5386
5416
|
Je as PageToolbarActions,
|
|
5387
|
-
|
|
5417
|
+
hn as ParticipantTile,
|
|
5388
5418
|
Ve as Popover,
|
|
5389
|
-
|
|
5390
|
-
|
|
5419
|
+
zn as ProgressBar,
|
|
5420
|
+
Bn as RichText,
|
|
5391
5421
|
Ge as SearchField,
|
|
5392
5422
|
er as SearchableTextField,
|
|
5393
|
-
|
|
5423
|
+
Rn as SectionCaption,
|
|
5424
|
+
Hn as SectionDivider,
|
|
5394
5425
|
Ft as SegmentedToggle,
|
|
5395
5426
|
Ce as Select,
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5427
|
+
Vn as SettingsRow,
|
|
5428
|
+
qn as SettingsSection,
|
|
5429
|
+
Kn as SidebarMenu,
|
|
5430
|
+
Un as SourceChip,
|
|
5431
|
+
Mn as Spinner,
|
|
5401
5432
|
qe as SplitButton,
|
|
5402
|
-
|
|
5403
|
-
|
|
5433
|
+
$n as StatusDot,
|
|
5434
|
+
Dn as StepIndicator,
|
|
5404
5435
|
pr as StorageInput,
|
|
5405
5436
|
tr as Switch,
|
|
5406
|
-
|
|
5437
|
+
Nn as TabBar,
|
|
5407
5438
|
Fe as Table,
|
|
5408
5439
|
dr as Tabs,
|
|
5409
5440
|
me as Text,
|
|
5410
5441
|
Le as TextArea,
|
|
5411
5442
|
Ne as TextField,
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5443
|
+
xn as VideoSurface,
|
|
5444
|
+
Wn as View,
|
|
5445
|
+
mn as catTone,
|
|
5415
5446
|
d as cn,
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5447
|
+
un as createSizes,
|
|
5448
|
+
dn as createVariants,
|
|
5449
|
+
vn as dateFilterHandler,
|
|
5450
|
+
yn as selectFilterHandler
|
|
5420
5451
|
};
|
|
5421
5452
|
//# sourceMappingURL=index.js.map
|