@opencxh/ui-kit 3.136.3 → 3.136.4
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 +310 -316
- package/dist/index.js.map +1 -1
- package/dist/src/input/TextField.d.ts +17 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { clsx as
|
|
1
|
+
import { clsx as Je } from "clsx";
|
|
2
2
|
import { jsxs as c, jsx as e, Fragment as xe } from "react/jsx-runtime";
|
|
3
|
-
import { VideoOff as
|
|
4
|
-
import oe, { useRef as se, useEffect as Q, forwardRef as me, useState as R, useLayoutEffect as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import { VideoOff as Ye, User as Xe, MicOff as Ze, Mic as Qe, X as ge, ChevronDown as ve, ExternalLink as et, Calendar as tt, ChevronLeft as ke, ChevronRight as Ce, ChevronDownIcon as rt, Loader2 as nt, Search as Se, Check as Te, ChevronUp as st, ChevronsLeft as at, ChevronsRight as lt, FileText as Ee, HardDrive as _e, ArrowLeft as ot, FolderPlus as ct, Upload as it, Folder as Ae, Trash2 as dt, Plus as ut, Sparkles as mt, ImageOff as ft, Pencil as ht, ArrowUpRight as xt } from "lucide-react";
|
|
4
|
+
import oe, { useRef as se, useEffect as Q, forwardRef as me, useState as R, useLayoutEffect as bt, useMemo as he, useCallback as ue, createContext as pt, Component as gt } from "react";
|
|
5
|
+
import vt from "dompurify";
|
|
6
|
+
import yt from "react-markdown";
|
|
7
|
+
import Nt from "remark-gfm";
|
|
8
8
|
function d(...t) {
|
|
9
|
-
return
|
|
9
|
+
return Je(t);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function sn(t) {
|
|
12
12
|
return (r, n) => t[r]?.[n] || "";
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function an(t) {
|
|
15
15
|
return (r) => t[r] || "";
|
|
16
16
|
}
|
|
17
17
|
const Le = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
|
|
18
|
-
function
|
|
18
|
+
function ln(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 Le[r % Le.length];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function on({ tiles: t, pinned: r, className: n }) {
|
|
24
24
|
if (r)
|
|
25
25
|
return /* @__PURE__ */ c("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 an({ 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 cn({
|
|
33
33
|
name: t,
|
|
34
34
|
avatarUrl: r,
|
|
35
35
|
muted: n,
|
|
@@ -49,16 +49,16 @@ function ln({
|
|
|
49
49
|
o
|
|
50
50
|
),
|
|
51
51
|
children: [
|
|
52
|
-
a && l ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: l }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: r ? /* @__PURE__ */ e("img", { src: r, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-video-surface-strong flex items-center justify-center", children: a ? /* @__PURE__ */ e(
|
|
52
|
+
a && l ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: l }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: r ? /* @__PURE__ */ e("img", { src: r, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-video-surface-strong flex items-center justify-center", children: a ? /* @__PURE__ */ e(Ye, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Xe, { className: "w-8 h-8" }) }) }),
|
|
53
53
|
/* @__PURE__ */ c("div", { className: "absolute bottom-2 left-2 flex items-center gap-1.5 px-2 py-1 rounded bg-video-overlay text-white text-xs", children: [
|
|
54
|
-
n ? /* @__PURE__ */ e(
|
|
54
|
+
n ? /* @__PURE__ */ e(Ze, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Qe, { className: "w-3 h-3" }),
|
|
55
55
|
/* @__PURE__ */ e("span", { className: "truncate max-w-35", children: t })
|
|
56
56
|
] })
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function dn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
|
|
62
62
|
const a = se(null);
|
|
63
63
|
return Q(() => {
|
|
64
64
|
if (!r || !a.current) return;
|
|
@@ -78,7 +78,7 @@ function on({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
|
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const wt = {
|
|
82
82
|
primary: "bg-accent text-accent-fg hover:bg-accent-hover disabled:bg-surface-hover",
|
|
83
83
|
secondary: "bg-surface-sunk text-text-strong hover:bg-surface-hover disabled:bg-surface-hover",
|
|
84
84
|
// No resting fill, so no disabled fill either — a greyed-out plate where
|
|
@@ -91,7 +91,7 @@ const yt = {
|
|
|
91
91
|
success: "bg-success text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
|
|
92
92
|
warning: "bg-warning text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
|
|
93
93
|
"danger-solid": "bg-danger text-text-inverse hover:opacity-90 disabled:bg-surface-hover"
|
|
94
|
-
},
|
|
94
|
+
}, kt = {
|
|
95
95
|
xs: "h-control-xs px-2 text-xs",
|
|
96
96
|
sm: "h-control-sm px-3 text-sm",
|
|
97
97
|
md: "h-control-md px-4 text-sm",
|
|
@@ -99,7 +99,7 @@ const yt = {
|
|
|
99
99
|
xl: "h-control-xl px-6 text-base",
|
|
100
100
|
"2xl": "h-control-2xl px-6 text-base",
|
|
101
101
|
full: "h-control-md px-4 text-sm"
|
|
102
|
-
},
|
|
102
|
+
}, Ct = {
|
|
103
103
|
xs: "h-control-xs w-6",
|
|
104
104
|
sm: "h-control-sm w-7",
|
|
105
105
|
md: "h-control-md w-8",
|
|
@@ -138,8 +138,8 @@ const yt = {
|
|
|
138
138
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
139
139
|
"disabled:cursor-not-allowed disabled:border-border-subtle",
|
|
140
140
|
"disabled:text-text-disabled",
|
|
141
|
-
|
|
142
|
-
o ?
|
|
141
|
+
wt[t],
|
|
142
|
+
o ? Ct[r] : kt[r],
|
|
143
143
|
(n || r === "full") && "w-full",
|
|
144
144
|
s && "cursor-wait",
|
|
145
145
|
u
|
|
@@ -165,7 +165,7 @@ const yt = {
|
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
ne.displayName = "Button";
|
|
168
|
-
const
|
|
168
|
+
const un = ({
|
|
169
169
|
children: t,
|
|
170
170
|
size: r = "md",
|
|
171
171
|
orientation: n = "horizontal",
|
|
@@ -195,7 +195,7 @@ const cn = ({
|
|
|
195
195
|
a
|
|
196
196
|
);
|
|
197
197
|
return /* @__PURE__ */ e("div", { className: l, role: "group", children: t });
|
|
198
|
-
},
|
|
198
|
+
}, St = {
|
|
199
199
|
primary: "text-text",
|
|
200
200
|
secondary: "text-text-muted",
|
|
201
201
|
accent: "text-accent",
|
|
@@ -215,9 +215,9 @@ const cn = ({
|
|
|
215
215
|
"aria-label": o,
|
|
216
216
|
...h
|
|
217
217
|
}) => {
|
|
218
|
-
const u = typeof r == "number" ? r :
|
|
218
|
+
const u = typeof r == "number" ? r : zt(r), N = d(
|
|
219
219
|
"inline-block shrink-0",
|
|
220
|
-
|
|
220
|
+
St[n],
|
|
221
221
|
s && [
|
|
222
222
|
"cursor-pointer rounded-sm transition-opacity duration-fast ease-out hover:opacity-80",
|
|
223
223
|
"focus-visible:outline-none focus-visible:focus-ring"
|
|
@@ -239,7 +239,7 @@ const cn = ({
|
|
|
239
239
|
};
|
|
240
240
|
return /* @__PURE__ */ e(t, { ...m });
|
|
241
241
|
};
|
|
242
|
-
function
|
|
242
|
+
function zt(t) {
|
|
243
243
|
return {
|
|
244
244
|
xs: 12,
|
|
245
245
|
sm: 14,
|
|
@@ -248,14 +248,14 @@ function Ct(t) {
|
|
|
248
248
|
xl: 24
|
|
249
249
|
}[t];
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const Et = {
|
|
252
252
|
none: "hover:bg-surface-sunk hover:text-text",
|
|
253
253
|
default: "bg-surface-sunk text-text-muted hover:text-text",
|
|
254
254
|
muted: "bg-surface-sunk text-text-subtle hover:text-text",
|
|
255
255
|
warning: "bg-warning-soft text-warning-fg",
|
|
256
256
|
danger: "bg-danger-soft text-danger-fg"
|
|
257
257
|
};
|
|
258
|
-
function
|
|
258
|
+
function mn({
|
|
259
259
|
label: t,
|
|
260
260
|
icon: r,
|
|
261
261
|
tone: n = "default",
|
|
@@ -276,7 +276,7 @@ function dn({
|
|
|
276
276
|
"transition-colors duration-fast ease-out",
|
|
277
277
|
p,
|
|
278
278
|
// Picking a value outranks whatever the value happens to mean.
|
|
279
|
-
l ? "bg-info-soft text-info-fg" :
|
|
279
|
+
l ? "bg-info-soft text-info-fg" : Et[n],
|
|
280
280
|
f
|
|
281
281
|
), g = /* @__PURE__ */ c(xe, { children: [
|
|
282
282
|
r,
|
|
@@ -302,13 +302,13 @@ function dn({
|
|
|
302
302
|
)
|
|
303
303
|
] }) : /* @__PURE__ */ e("button", { type: "button", title: m, onClick: N, className: d(C, x), children: g });
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const Mt = {
|
|
306
306
|
xs: "text-xs",
|
|
307
307
|
sm: "text-sm",
|
|
308
308
|
md: "text-base",
|
|
309
309
|
lg: "text-md",
|
|
310
310
|
xl: "text-lg"
|
|
311
|
-
},
|
|
311
|
+
}, $t = {
|
|
312
312
|
primary: "text-text hover:text-info-fg hover:underline",
|
|
313
313
|
info: "text-info-fg hover:underline",
|
|
314
314
|
secondary: "text-text-muted hover:text-text",
|
|
@@ -317,7 +317,7 @@ const zt = {
|
|
|
317
317
|
success: "text-success-fg hover:underline",
|
|
318
318
|
warning: "text-warning-fg hover:underline",
|
|
319
319
|
error: "text-danger-fg hover:underline"
|
|
320
|
-
},
|
|
320
|
+
}, Dt = {
|
|
321
321
|
primary: "bg-accent-soft",
|
|
322
322
|
accent: "bg-accent-soft",
|
|
323
323
|
secondary: "bg-surface-hover",
|
|
@@ -326,7 +326,7 @@ const zt = {
|
|
|
326
326
|
warning: "bg-warning-soft",
|
|
327
327
|
error: "bg-danger-soft",
|
|
328
328
|
info: "bg-info-soft"
|
|
329
|
-
},
|
|
329
|
+
}, fn = ({
|
|
330
330
|
variant: t = "default",
|
|
331
331
|
size: r = "md",
|
|
332
332
|
color: n = "primary",
|
|
@@ -343,13 +343,13 @@ const zt = {
|
|
|
343
343
|
"inline-flex items-center gap-1 underline-offset-2",
|
|
344
344
|
"transition-colors duration-fast ease-out",
|
|
345
345
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
346
|
-
|
|
347
|
-
!s &&
|
|
346
|
+
Mt[r],
|
|
347
|
+
!s && $t[n],
|
|
348
348
|
t === "subtle" && "no-underline opacity-70 hover:opacity-100",
|
|
349
349
|
t === "underline" && "underline decoration-1 hover:decoration-2",
|
|
350
350
|
t === "button" && [
|
|
351
351
|
"h-control-md rounded-md px-3 font-semibold no-underline hover:no-underline",
|
|
352
|
-
|
|
352
|
+
Dt[n]
|
|
353
353
|
],
|
|
354
354
|
s && "pointer-events-none cursor-not-allowed text-text-disabled opacity-50",
|
|
355
355
|
l
|
|
@@ -362,13 +362,13 @@ const zt = {
|
|
|
362
362
|
};
|
|
363
363
|
return /* @__PURE__ */ c("a", { className: b, ...p, children: [
|
|
364
364
|
o,
|
|
365
|
-
f && /* @__PURE__ */ e(
|
|
365
|
+
f && /* @__PURE__ */ e(et, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
|
|
366
366
|
] });
|
|
367
|
-
},
|
|
367
|
+
}, Tt = {
|
|
368
368
|
sm: "h-control-sm px-3 text-sm",
|
|
369
369
|
md: "h-control-md px-3 text-sm"
|
|
370
370
|
};
|
|
371
|
-
function
|
|
371
|
+
function hn({
|
|
372
372
|
options: t,
|
|
373
373
|
value: r,
|
|
374
374
|
onChange: n,
|
|
@@ -395,7 +395,7 @@ function mn({
|
|
|
395
395
|
"inline-flex items-center justify-center rounded-sm",
|
|
396
396
|
"transition-colors duration-fast ease-out",
|
|
397
397
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
398
|
-
|
|
398
|
+
Tt[s],
|
|
399
399
|
h ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
|
|
400
400
|
),
|
|
401
401
|
children: o.label
|
|
@@ -408,7 +408,7 @@ function mn({
|
|
|
408
408
|
}
|
|
409
409
|
function ze(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
|
|
410
410
|
const [l, o] = R({});
|
|
411
|
-
return
|
|
411
|
+
return bt(() => {
|
|
412
412
|
if (!t) return;
|
|
413
413
|
const h = () => {
|
|
414
414
|
const u = r.current;
|
|
@@ -421,7 +421,7 @@ function ze(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start
|
|
|
421
421
|
};
|
|
422
422
|
}, [t, r, n, s, a]), l;
|
|
423
423
|
}
|
|
424
|
-
const
|
|
424
|
+
const _t = ({
|
|
425
425
|
trigger: t,
|
|
426
426
|
children: r,
|
|
427
427
|
placement: n = "bottom-start",
|
|
@@ -478,11 +478,11 @@ const Dt = ({
|
|
|
478
478
|
}
|
|
479
479
|
)
|
|
480
480
|
] });
|
|
481
|
-
},
|
|
481
|
+
}, At = {
|
|
482
482
|
primary: "bg-accent text-accent-fg hover:bg-accent-hover",
|
|
483
483
|
secondary: "border border-border bg-surface text-text hover:bg-surface-hover",
|
|
484
484
|
outline: "border border-accent-border text-accent hover:bg-accent-soft"
|
|
485
|
-
},
|
|
485
|
+
}, Lt = {
|
|
486
486
|
sm: "h-control-sm w-7",
|
|
487
487
|
md: "h-control-md w-8"
|
|
488
488
|
};
|
|
@@ -514,7 +514,7 @@ function Re({
|
|
|
514
514
|
}
|
|
515
515
|
),
|
|
516
516
|
f && /* @__PURE__ */ e(
|
|
517
|
-
|
|
517
|
+
_t,
|
|
518
518
|
{
|
|
519
519
|
placement: u,
|
|
520
520
|
disabled: m,
|
|
@@ -527,8 +527,8 @@ function Re({
|
|
|
527
527
|
className: d(
|
|
528
528
|
"inline-flex items-center justify-center rounded-md rounded-l-none",
|
|
529
529
|
"transition-colors duration-fast ease-out",
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
At[n],
|
|
531
|
+
Lt[s],
|
|
532
532
|
m && "cursor-not-allowed opacity-50"
|
|
533
533
|
),
|
|
534
534
|
children: /* @__PURE__ */ e(ve, { className: "size-icon-md" })
|
|
@@ -558,17 +558,17 @@ function Re({
|
|
|
558
558
|
)
|
|
559
559
|
] });
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const It = {
|
|
562
562
|
sm: "size-checkbox-sm",
|
|
563
563
|
md: "size-checkbox",
|
|
564
564
|
lg: "size-checkbox-lg",
|
|
565
565
|
full: "size-checkbox"
|
|
566
|
-
},
|
|
566
|
+
}, jt = {
|
|
567
567
|
sm: "min-h-control-sm",
|
|
568
568
|
md: "min-h-control-md",
|
|
569
569
|
lg: "min-h-control-lg",
|
|
570
570
|
full: "min-h-control-md"
|
|
571
|
-
},
|
|
571
|
+
}, Pt = {
|
|
572
572
|
sm: "text-sm",
|
|
573
573
|
md: "text-base",
|
|
574
574
|
lg: "text-md",
|
|
@@ -595,7 +595,7 @@ const At = {
|
|
|
595
595
|
return oe.useEffect(() => {
|
|
596
596
|
C.current && (C.current.indeterminate = a);
|
|
597
597
|
}, [a]), /* @__PURE__ */ c("div", { className: d("flex flex-col", l), children: [
|
|
598
|
-
/* @__PURE__ */ c("div", { className: d("flex items-center gap-3",
|
|
598
|
+
/* @__PURE__ */ c("div", { className: d("flex items-center gap-3", jt[s]), children: [
|
|
599
599
|
/* @__PURE__ */ e(
|
|
600
600
|
"input",
|
|
601
601
|
{
|
|
@@ -604,13 +604,15 @@ const At = {
|
|
|
604
604
|
type: "checkbox",
|
|
605
605
|
"aria-invalid": p || void 0,
|
|
606
606
|
className: d(
|
|
607
|
-
//
|
|
608
|
-
//
|
|
609
|
-
|
|
607
|
+
// radius-xs (5px): its own step on the scale. At 16px the 9px
|
|
608
|
+
// button radius reads as a circle and the 7px chip radius still
|
|
609
|
+
// rounds the corners away — a checkbox has to stay a square you
|
|
610
|
+
// can aim at, with the corner just knocked off.
|
|
611
|
+
"shrink-0 rounded-xs border accent-accent",
|
|
610
612
|
"transition-colors duration-fast ease-out",
|
|
611
613
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
612
614
|
"disabled:cursor-not-allowed disabled:bg-surface-hover",
|
|
613
|
-
|
|
615
|
+
It[s],
|
|
614
616
|
p ? "border-danger-border" : "border-border-strong",
|
|
615
617
|
h
|
|
616
618
|
),
|
|
@@ -625,7 +627,7 @@ const At = {
|
|
|
625
627
|
className: d(
|
|
626
628
|
"cursor-pointer",
|
|
627
629
|
p ? "text-danger-fg" : "text-text",
|
|
628
|
-
|
|
630
|
+
Pt[s],
|
|
629
631
|
o
|
|
630
632
|
),
|
|
631
633
|
children: t
|
|
@@ -639,7 +641,7 @@ const At = {
|
|
|
639
641
|
}
|
|
640
642
|
);
|
|
641
643
|
pe.displayName = "Checkbox";
|
|
642
|
-
const
|
|
644
|
+
const Ot = () => /* @__PURE__ */ e(Y, { icon: tt, size: "md", color: "current" }), Ft = () => /* @__PURE__ */ e(Y, { icon: ke, size: "md", color: "current" }), Bt = () => /* @__PURE__ */ e(Y, { icon: Ce, size: "md", color: "current" }), $e = me(({
|
|
643
645
|
value: t,
|
|
644
646
|
onChange: r,
|
|
645
647
|
placeholder: n = "Select date",
|
|
@@ -693,7 +695,7 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
693
695
|
}, re = () => {
|
|
694
696
|
r?.(null), p(!1);
|
|
695
697
|
}, P = d(
|
|
696
|
-
"w-full border border-border rounded-
|
|
698
|
+
"w-full border border-border-strong rounded-tile transition-colors duration-fast",
|
|
697
699
|
"bg-surface text-text",
|
|
698
700
|
"placeholder:text-text-muted",
|
|
699
701
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
@@ -742,7 +744,7 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
742
744
|
onClick: () => !s && p(!b),
|
|
743
745
|
disabled: s,
|
|
744
746
|
className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-muted",
|
|
745
|
-
children: /* @__PURE__ */ e(
|
|
747
|
+
children: /* @__PURE__ */ e(Ot, {})
|
|
746
748
|
}
|
|
747
749
|
)
|
|
748
750
|
] }),
|
|
@@ -753,7 +755,7 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
753
755
|
{
|
|
754
756
|
onClick: q,
|
|
755
757
|
className: "p-1 hover:bg-surface-hover rounded",
|
|
756
|
-
children: /* @__PURE__ */ e(
|
|
758
|
+
children: /* @__PURE__ */ e(Ft, {})
|
|
757
759
|
}
|
|
758
760
|
),
|
|
759
761
|
/* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
|
|
@@ -766,7 +768,7 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
766
768
|
{
|
|
767
769
|
onClick: K,
|
|
768
770
|
className: "p-1 hover:bg-surface-hover rounded",
|
|
769
|
-
children: /* @__PURE__ */ e(
|
|
771
|
+
children: /* @__PURE__ */ e(Bt, {})
|
|
770
772
|
}
|
|
771
773
|
)
|
|
772
774
|
] }),
|
|
@@ -825,7 +827,7 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
825
827
|
] })
|
|
826
828
|
] })
|
|
827
829
|
] });
|
|
828
|
-
}),
|
|
830
|
+
}), Rt = {
|
|
829
831
|
sm: "h-control-sm px-3 text-sm",
|
|
830
832
|
md: "h-control-md px-3 text-sm",
|
|
831
833
|
lg: "h-control-lg px-3 text-base",
|
|
@@ -939,18 +941,18 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
939
941
|
disabled: l,
|
|
940
942
|
onClick: () => I(!U),
|
|
941
943
|
className: d(
|
|
942
|
-
"flex w-full items-center justify-between gap-2 rounded-
|
|
944
|
+
"flex w-full items-center justify-between gap-2 rounded-tile border transition-colors duration-fast text-left",
|
|
943
945
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
944
946
|
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
945
947
|
"bg-surface",
|
|
946
|
-
|
|
947
|
-
X ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border text-text",
|
|
948
|
+
Rt[s],
|
|
949
|
+
X ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
|
|
948
950
|
m
|
|
949
951
|
),
|
|
950
952
|
children: [
|
|
951
953
|
/* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: j() }),
|
|
952
954
|
/* @__PURE__ */ e(
|
|
953
|
-
|
|
955
|
+
rt,
|
|
954
956
|
{
|
|
955
957
|
size: 16,
|
|
956
958
|
className: d(
|
|
@@ -1052,12 +1054,12 @@ const jt = () => /* @__PURE__ */ e(Y, { icon: Qe, size: "md", color: "current" }
|
|
|
1052
1054
|
}
|
|
1053
1055
|
);
|
|
1054
1056
|
we.displayName = "Select";
|
|
1055
|
-
const
|
|
1057
|
+
const Ht = {
|
|
1056
1058
|
sm: "h-control-sm px-3 text-sm",
|
|
1057
1059
|
md: "h-control-md px-3 text-base",
|
|
1058
1060
|
lg: "h-control-lg px-3 text-base",
|
|
1059
1061
|
full: "h-control-md px-3 text-base"
|
|
1060
|
-
}, He = "mb-1.5 block text-
|
|
1062
|
+
}, He = "mb-1.5 block text-sm font-medium", Ve = "block w-full rounded-tile border bg-surface-input text-text transition-colors duration-fast ease-out placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled", qe = (t) => t ? "border-danger-border bg-danger-soft" : "border-border-strong", be = me(
|
|
1061
1063
|
({
|
|
1062
1064
|
label: t,
|
|
1063
1065
|
helperText: r,
|
|
@@ -1081,7 +1083,7 @@ const Bt = {
|
|
|
1081
1083
|
htmlFor: g,
|
|
1082
1084
|
className: d(
|
|
1083
1085
|
He,
|
|
1084
|
-
x ? "text-danger-fg" : "text-text-
|
|
1086
|
+
x ? "text-danger-fg" : "text-text-muted",
|
|
1085
1087
|
N
|
|
1086
1088
|
),
|
|
1087
1089
|
children: t
|
|
@@ -1097,15 +1099,11 @@ const Bt = {
|
|
|
1097
1099
|
"aria-invalid": x || void 0,
|
|
1098
1100
|
"aria-describedby": D,
|
|
1099
1101
|
className: d(
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
"placeholder:text-text-subtle",
|
|
1103
|
-
"focus-visible:outline-none focus-visible:focus-ring",
|
|
1104
|
-
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
1105
|
-
Bt[s],
|
|
1102
|
+
Ve,
|
|
1103
|
+
Ht[s],
|
|
1106
1104
|
l && "pl-9",
|
|
1107
1105
|
(o || h) && "pr-9",
|
|
1108
|
-
x
|
|
1106
|
+
qe(x),
|
|
1109
1107
|
m
|
|
1110
1108
|
),
|
|
1111
1109
|
...b
|
|
@@ -1131,7 +1129,7 @@ const Bt = {
|
|
|
1131
1129
|
}
|
|
1132
1130
|
);
|
|
1133
1131
|
be.displayName = "TextField";
|
|
1134
|
-
function
|
|
1132
|
+
function Vt({
|
|
1135
1133
|
value: t,
|
|
1136
1134
|
onChange: r,
|
|
1137
1135
|
onListFolders: n,
|
|
@@ -1176,7 +1174,7 @@ function Rt({
|
|
|
1176
1174
|
)
|
|
1177
1175
|
] });
|
|
1178
1176
|
}
|
|
1179
|
-
const fe = (...t) => t.filter(Boolean).join(" "),
|
|
1177
|
+
const fe = (...t) => t.filter(Boolean).join(" "), qt = (t) => /* @__PURE__ */ e(Se, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Ut = (t) => /* @__PURE__ */ e(ve, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Wt = {
|
|
1180
1178
|
sm: "h-control-sm px-3 text-sm",
|
|
1181
1179
|
md: "h-control-md px-3 text-base",
|
|
1182
1180
|
lg: "h-control-lg px-3 text-base",
|
|
@@ -1186,14 +1184,14 @@ const fe = (...t) => t.filter(Boolean).join(" "), Ht = (t) => /* @__PURE__ */ e(
|
|
|
1186
1184
|
md: "h-5 w-5",
|
|
1187
1185
|
lg: "h-6 w-6",
|
|
1188
1186
|
full: "h-6 w-6"
|
|
1189
|
-
},
|
|
1187
|
+
}, Kt = me(
|
|
1190
1188
|
({
|
|
1191
1189
|
label: t,
|
|
1192
1190
|
helperText: r,
|
|
1193
1191
|
error: n,
|
|
1194
1192
|
size: s = "md",
|
|
1195
1193
|
fullWidth: a = !1,
|
|
1196
|
-
startIcon: l = /* @__PURE__ */ e(
|
|
1194
|
+
startIcon: l = /* @__PURE__ */ e(qt, {}),
|
|
1197
1195
|
loading: o = !1,
|
|
1198
1196
|
containerClassName: h,
|
|
1199
1197
|
labelClassName: u,
|
|
@@ -1286,17 +1284,17 @@ const fe = (...t) => t.filter(Boolean).join(" "), Ht = (t) => /* @__PURE__ */ e(
|
|
|
1286
1284
|
onFocus: ee,
|
|
1287
1285
|
className: fe(
|
|
1288
1286
|
// Base styles
|
|
1289
|
-
"block w-full rounded-
|
|
1287
|
+
"block w-full rounded-tile border bg-surface-input transition-colors duration-fast ease-out",
|
|
1290
1288
|
"placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring",
|
|
1291
1289
|
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
1292
1290
|
// Size styles
|
|
1293
|
-
|
|
1291
|
+
Wt[s],
|
|
1294
1292
|
// Icon padding
|
|
1295
1293
|
l ? "pl-10" : "",
|
|
1296
1294
|
"pr-10",
|
|
1297
1295
|
// Altijd padding rechts voor de dropdown/loading icon
|
|
1298
1296
|
// State styles
|
|
1299
|
-
X ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border text-text",
|
|
1297
|
+
X ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
|
|
1300
1298
|
N || ""
|
|
1301
1299
|
),
|
|
1302
1300
|
...E
|
|
@@ -1305,7 +1303,7 @@ const fe = (...t) => t.filter(Boolean).join(" "), Ht = (t) => /* @__PURE__ */ e(
|
|
|
1305
1303
|
/* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: ae || o ? (
|
|
1306
1304
|
// Loading Spinner
|
|
1307
1305
|
/* @__PURE__ */ e(
|
|
1308
|
-
|
|
1306
|
+
nt,
|
|
1309
1307
|
{
|
|
1310
1308
|
className: fe("animate-spin text-info-fg", Me[s]),
|
|
1311
1309
|
"aria-hidden": !0
|
|
@@ -1314,7 +1312,7 @@ const fe = (...t) => t.filter(Boolean).join(" "), Ht = (t) => /* @__PURE__ */ e(
|
|
|
1314
1312
|
) : (
|
|
1315
1313
|
// Dropdown Chevron
|
|
1316
1314
|
/* @__PURE__ */ e(
|
|
1317
|
-
|
|
1315
|
+
Ut,
|
|
1318
1316
|
{
|
|
1319
1317
|
className: fe(
|
|
1320
1318
|
"text-text-muted cursor-pointer transition-transform",
|
|
@@ -1365,8 +1363,8 @@ const fe = (...t) => t.filter(Boolean).join(" "), Ht = (t) => /* @__PURE__ */ e(
|
|
|
1365
1363
|
);
|
|
1366
1364
|
}
|
|
1367
1365
|
);
|
|
1368
|
-
|
|
1369
|
-
const
|
|
1366
|
+
Kt.displayName = "SearchableTextField";
|
|
1367
|
+
const Gt = me(
|
|
1370
1368
|
({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
|
|
1371
1369
|
const h = /* @__PURE__ */ e(
|
|
1372
1370
|
"span",
|
|
@@ -1419,8 +1417,8 @@ const Wt = me(
|
|
|
1419
1417
|
);
|
|
1420
1418
|
}
|
|
1421
1419
|
);
|
|
1422
|
-
|
|
1423
|
-
function
|
|
1420
|
+
Gt.displayName = "Switch";
|
|
1421
|
+
function Jt({
|
|
1424
1422
|
variant: t = "page",
|
|
1425
1423
|
children: r,
|
|
1426
1424
|
showTableSkeleton: n = !1,
|
|
@@ -1469,7 +1467,7 @@ function Kt({
|
|
|
1469
1467
|
] })
|
|
1470
1468
|
] }) });
|
|
1471
1469
|
}
|
|
1472
|
-
const
|
|
1470
|
+
const Yt = ({
|
|
1473
1471
|
trigger: t,
|
|
1474
1472
|
options: r,
|
|
1475
1473
|
value: n,
|
|
@@ -1688,7 +1686,7 @@ const Gt = ({
|
|
|
1688
1686
|
]
|
|
1689
1687
|
}
|
|
1690
1688
|
);
|
|
1691
|
-
},
|
|
1689
|
+
}, xn = (t) => (r) => t(r instanceof Date ? r : null), bn = (t) => (r) => t(typeof r == "string" ? r : ""), Ie = {
|
|
1692
1690
|
none: "pl-0",
|
|
1693
1691
|
sm: "pl-2",
|
|
1694
1692
|
md: "pl-4",
|
|
@@ -1698,7 +1696,7 @@ const Gt = ({
|
|
|
1698
1696
|
sm: "pr-2",
|
|
1699
1697
|
md: "pr-4",
|
|
1700
1698
|
lg: "pr-6"
|
|
1701
|
-
},
|
|
1699
|
+
}, Xt = () => /* @__PURE__ */ e(Y, { icon: Se, size: "md", color: "current" }), Zt = ({ active: t }) => /* @__PURE__ */ e(Y, { icon: st, size: "sm", className: t ? "text-text" : "text-text-subtle" }), Qt = ({ active: t }) => /* @__PURE__ */ e(Y, { icon: ve, size: "sm", className: t ? "text-text" : "text-text-subtle" }), er = () => /* @__PURE__ */ e(Y, { icon: ke, size: "md", color: "current" }), tr = () => /* @__PURE__ */ e(Y, { icon: Ce, size: "md", color: "current" }), rr = () => /* @__PURE__ */ e(Y, { icon: at, size: "md", color: "current" }), nr = () => /* @__PURE__ */ e(Y, { icon: lt, size: "md", color: "current" }), Ue = () => /* @__PURE__ */ e(Y, { icon: ve, size: "md", color: "current" }), sr = (t) => {
|
|
1702
1700
|
const r = (s) => t.multiSelect && Array.isArray(t.value) ? t.value?.includes(s) : t.value === s, n = (s) => {
|
|
1703
1701
|
t.multiSelect && Array.isArray(t.value) ? t.onChange(t.value.filter((a) => a !== s)) : t.onChange(s);
|
|
1704
1702
|
};
|
|
@@ -1717,7 +1715,7 @@ const Gt = ({
|
|
|
1717
1715
|
/* @__PURE__ */ e("span", { className: "text-text", children: t.multiSelect && Array.isArray(t.value) ? t.value?.map(
|
|
1718
1716
|
(s) => t.options?.find((a) => a.value === s)?.label
|
|
1719
1717
|
).join(", ") : t.options?.find((s) => s.value === t.value)?.label }),
|
|
1720
|
-
/* @__PURE__ */ e("span", { className: "text-text-muted text-sm group-open:rotate-180 transition-transform", children: /* @__PURE__ */ e(
|
|
1718
|
+
/* @__PURE__ */ e("span", { className: "text-text-muted text-sm group-open:rotate-180 transition-transform", children: /* @__PURE__ */ e(Ue, {}) })
|
|
1721
1719
|
] }),
|
|
1722
1720
|
/* @__PURE__ */ c("div", { className: "absolute z-10 left-0 mt-1 bg-surface border border-border rounded-lg shadow-overlay p-2 w-48", children: [
|
|
1723
1721
|
t.options?.map((s) => /* @__PURE__ */ e(
|
|
@@ -1857,21 +1855,21 @@ const Gt = ({
|
|
|
1857
1855
|
});
|
|
1858
1856
|
return /* @__PURE__ */ c("div", { className: "space-y-4", children: [
|
|
1859
1857
|
(s || l.length > 0) && /* @__PURE__ */ e("div", { className: "px-4 pt-4 pb-2", children: /* @__PURE__ */ c("div", { className: "flex flex-wrap gap-4 items-start", children: [
|
|
1860
|
-
l.map((v) => /* @__PURE__ */ e(
|
|
1858
|
+
l.map((v) => /* @__PURE__ */ e(sr, { ...v }, v.id)),
|
|
1861
1859
|
/* @__PURE__ */ e("div", { className: "w-full sm:w-auto sm:ml-auto min-w-menu", children: /* @__PURE__ */ e(
|
|
1862
1860
|
be,
|
|
1863
1861
|
{
|
|
1864
1862
|
placeholder: a,
|
|
1865
1863
|
value: I,
|
|
1866
1864
|
onChange: (v) => q(v.target.value),
|
|
1867
|
-
startIcon: /* @__PURE__ */ e(
|
|
1865
|
+
startIcon: /* @__PURE__ */ e(Xt, {}),
|
|
1868
1866
|
className: "max-w-sm"
|
|
1869
1867
|
}
|
|
1870
1868
|
) })
|
|
1871
1869
|
] }) }),
|
|
1872
1870
|
/* @__PURE__ */ c("div", { className: "relative w-full overflow-x-auto min-h-100", children: [
|
|
1873
1871
|
n && /* @__PURE__ */ e("div", { className: "flex items-center justify-center z-10", children: /* @__PURE__ */ e(
|
|
1874
|
-
|
|
1872
|
+
Jt,
|
|
1875
1873
|
{
|
|
1876
1874
|
showTableSkeleton: !0,
|
|
1877
1875
|
tableRows: 10,
|
|
@@ -1923,13 +1921,13 @@ const Gt = ({
|
|
|
1923
1921
|
),
|
|
1924
1922
|
children: [
|
|
1925
1923
|
/* @__PURE__ */ e(
|
|
1926
|
-
|
|
1924
|
+
Zt,
|
|
1927
1925
|
{
|
|
1928
1926
|
active: K.column === v.id && K.direction === "asc"
|
|
1929
1927
|
}
|
|
1930
1928
|
),
|
|
1931
1929
|
/* @__PURE__ */ e(
|
|
1932
|
-
|
|
1930
|
+
Qt,
|
|
1933
1931
|
{
|
|
1934
1932
|
active: K.column === v.id && K.direction === "desc"
|
|
1935
1933
|
}
|
|
@@ -2003,11 +2001,11 @@ const Gt = ({
|
|
|
2003
2001
|
);
|
|
2004
2002
|
}),
|
|
2005
2003
|
N.length > 0 && /* @__PURE__ */ e("td", { className: L, children: /* @__PURE__ */ e(
|
|
2006
|
-
|
|
2004
|
+
Yt,
|
|
2007
2005
|
{
|
|
2008
2006
|
trigger: /* @__PURE__ */ c("div", { className: "inline-flex items-center gap-1 px-2 py-1 text-sm text-text-muted hover:text-text", children: [
|
|
2009
2007
|
/* @__PURE__ */ e("span", { children: "Options" }),
|
|
2010
|
-
/* @__PURE__ */ e(
|
|
2008
|
+
/* @__PURE__ */ e(Ue, {})
|
|
2011
2009
|
] }),
|
|
2012
2010
|
options: N.map((F) => ({
|
|
2013
2011
|
value: F.id,
|
|
@@ -2064,7 +2062,7 @@ const Gt = ({
|
|
|
2064
2062
|
onClick: () => w(0),
|
|
2065
2063
|
disabled: P.page === 0,
|
|
2066
2064
|
iconOnly: !0,
|
|
2067
|
-
children: /* @__PURE__ */ e(
|
|
2065
|
+
children: /* @__PURE__ */ e(rr, {})
|
|
2068
2066
|
}
|
|
2069
2067
|
),
|
|
2070
2068
|
/* @__PURE__ */ e(
|
|
@@ -2075,7 +2073,7 @@ const Gt = ({
|
|
|
2075
2073
|
onClick: () => w(P.page - 1),
|
|
2076
2074
|
disabled: P.page === 0,
|
|
2077
2075
|
iconOnly: !0,
|
|
2078
|
-
children: /* @__PURE__ */ e(
|
|
2076
|
+
children: /* @__PURE__ */ e(er, {})
|
|
2079
2077
|
}
|
|
2080
2078
|
),
|
|
2081
2079
|
/* @__PURE__ */ c("span", { className: "px-3 py-1 text-sm text-text-muted", children: [
|
|
@@ -2092,7 +2090,7 @@ const Gt = ({
|
|
|
2092
2090
|
onClick: () => w(P.page + 1),
|
|
2093
2091
|
disabled: P.page >= j - 1,
|
|
2094
2092
|
iconOnly: !0,
|
|
2095
|
-
children: /* @__PURE__ */ e(
|
|
2093
|
+
children: /* @__PURE__ */ e(tr, {})
|
|
2096
2094
|
}
|
|
2097
2095
|
),
|
|
2098
2096
|
/* @__PURE__ */ e(
|
|
@@ -2103,13 +2101,13 @@ const Gt = ({
|
|
|
2103
2101
|
onClick: () => w(j - 1),
|
|
2104
2102
|
disabled: P.page >= j - 1,
|
|
2105
2103
|
iconOnly: !0,
|
|
2106
|
-
children: /* @__PURE__ */ e(
|
|
2104
|
+
children: /* @__PURE__ */ e(nr, {})
|
|
2107
2105
|
}
|
|
2108
2106
|
)
|
|
2109
2107
|
] })
|
|
2110
2108
|
] })
|
|
2111
2109
|
] });
|
|
2112
|
-
},
|
|
2110
|
+
}, ar = pt(null), pn = ({
|
|
2113
2111
|
items: t,
|
|
2114
2112
|
activeTab: r,
|
|
2115
2113
|
onTabChange: n,
|
|
@@ -2141,7 +2139,7 @@ const Gt = ({
|
|
|
2141
2139
|
},
|
|
2142
2140
|
u.id
|
|
2143
2141
|
)) }) });
|
|
2144
|
-
},
|
|
2142
|
+
}, lr = ({
|
|
2145
2143
|
items: t,
|
|
2146
2144
|
defaultTab: r,
|
|
2147
2145
|
activeTab: n,
|
|
@@ -2191,7 +2189,7 @@ const Gt = ({
|
|
|
2191
2189
|
} : {};
|
|
2192
2190
|
return d(D, E, W, T, X, U);
|
|
2193
2191
|
};
|
|
2194
|
-
return /* @__PURE__ */ e(
|
|
2192
|
+
return /* @__PURE__ */ e(ar.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
|
|
2195
2193
|
/* @__PURE__ */ e("div", { className: p, role: "tablist", children: t.map((g) => /* @__PURE__ */ e(
|
|
2196
2194
|
"button",
|
|
2197
2195
|
{
|
|
@@ -2220,14 +2218,14 @@ const Gt = ({
|
|
|
2220
2218
|
}
|
|
2221
2219
|
)
|
|
2222
2220
|
] }) });
|
|
2223
|
-
},
|
|
2221
|
+
}, or = {
|
|
2224
2222
|
sm: "max-w-md",
|
|
2225
2223
|
md: "max-w-lg",
|
|
2226
2224
|
lg: "max-w-2xl",
|
|
2227
2225
|
xl: "max-w-4xl",
|
|
2228
2226
|
full: "max-w-full mx-4"
|
|
2229
2227
|
};
|
|
2230
|
-
function
|
|
2228
|
+
function We({
|
|
2231
2229
|
open: t,
|
|
2232
2230
|
onClose: r,
|
|
2233
2231
|
title: n,
|
|
@@ -2271,7 +2269,7 @@ function qe({
|
|
|
2271
2269
|
"relative w-full bg-surface rounded-lg shadow-modal",
|
|
2272
2270
|
// 'animate-scale-in',
|
|
2273
2271
|
"focus:outline-none",
|
|
2274
|
-
|
|
2272
|
+
or[s],
|
|
2275
2273
|
o
|
|
2276
2274
|
),
|
|
2277
2275
|
role: "dialog",
|
|
@@ -2306,19 +2304,19 @@ function qe({
|
|
|
2306
2304
|
}
|
|
2307
2305
|
) : null;
|
|
2308
2306
|
}
|
|
2309
|
-
const
|
|
2307
|
+
const cr = {
|
|
2310
2308
|
xs: "text-xs",
|
|
2311
2309
|
sm: "text-sm",
|
|
2312
2310
|
md: "text-base",
|
|
2313
2311
|
lg: "text-md",
|
|
2314
2312
|
xl: "text-lg"
|
|
2315
|
-
},
|
|
2313
|
+
}, ir = {
|
|
2316
2314
|
light: "font-normal",
|
|
2317
2315
|
normal: "font-normal",
|
|
2318
2316
|
medium: "font-medium",
|
|
2319
2317
|
semibold: "font-semibold",
|
|
2320
2318
|
bold: "font-bold"
|
|
2321
|
-
},
|
|
2319
|
+
}, dr = {
|
|
2322
2320
|
primary: "text-text",
|
|
2323
2321
|
secondary: "text-text-muted",
|
|
2324
2322
|
accent: "text-accent",
|
|
@@ -2329,12 +2327,12 @@ const lr = {
|
|
|
2329
2327
|
neutral: "text-text",
|
|
2330
2328
|
current: "text-current",
|
|
2331
2329
|
muted: "text-text-subtle"
|
|
2332
|
-
},
|
|
2330
|
+
}, ur = {
|
|
2333
2331
|
left: "text-left",
|
|
2334
2332
|
center: "text-center",
|
|
2335
2333
|
right: "text-right",
|
|
2336
2334
|
justify: "text-justify"
|
|
2337
|
-
},
|
|
2335
|
+
}, mr = {
|
|
2338
2336
|
tight: "leading-tight",
|
|
2339
2337
|
normal: "leading-normal",
|
|
2340
2338
|
relaxed: "leading-relaxed"
|
|
@@ -2353,20 +2351,20 @@ const lr = {
|
|
|
2353
2351
|
children: f,
|
|
2354
2352
|
...b
|
|
2355
2353
|
}) => {
|
|
2356
|
-
const p = N ||
|
|
2354
|
+
const p = N || fr(t), C = t === "caption", g = t === "label", x = t === "code", D = d(
|
|
2357
2355
|
"font-sans",
|
|
2358
2356
|
// Variant — caption and label pin their own size/weight
|
|
2359
2357
|
C && "text-xs text-text-subtle",
|
|
2360
2358
|
g && "text-xs font-semibold uppercase tracking-label text-text-subtle",
|
|
2361
2359
|
x && "font-mono text-sm rounded-sm bg-surface-hover px-1 py-0.5",
|
|
2362
2360
|
// Size — only where the variant does not pin it
|
|
2363
|
-
!C && !g && !x &&
|
|
2361
|
+
!C && !g && !x && cr[r],
|
|
2364
2362
|
// Weight — label owns its weight
|
|
2365
|
-
!g &&
|
|
2366
|
-
|
|
2367
|
-
|
|
2363
|
+
!g && ir[n],
|
|
2364
|
+
dr[s],
|
|
2365
|
+
ur[a],
|
|
2368
2366
|
// Line height only overrides the body variant
|
|
2369
|
-
t === "body" &&
|
|
2367
|
+
t === "body" && mr[u],
|
|
2370
2368
|
o && "italic",
|
|
2371
2369
|
h && "underline",
|
|
2372
2370
|
l && "truncate",
|
|
@@ -2374,7 +2372,7 @@ const lr = {
|
|
|
2374
2372
|
);
|
|
2375
2373
|
return /* @__PURE__ */ e(p, { className: D, ...b, children: f });
|
|
2376
2374
|
};
|
|
2377
|
-
function
|
|
2375
|
+
function fr(t) {
|
|
2378
2376
|
return {
|
|
2379
2377
|
body: "p",
|
|
2380
2378
|
caption: "span",
|
|
@@ -2382,7 +2380,7 @@ function ur(t) {
|
|
|
2382
2380
|
code: "code"
|
|
2383
2381
|
}[t] || "p";
|
|
2384
2382
|
}
|
|
2385
|
-
const
|
|
2383
|
+
const hr = ({
|
|
2386
2384
|
value: t,
|
|
2387
2385
|
onChange: r,
|
|
2388
2386
|
label: n,
|
|
@@ -2625,7 +2623,7 @@ const mr = ({
|
|
|
2625
2623
|
),
|
|
2626
2624
|
a && /* @__PURE__ */ e(de, { variant: "body", size: "xs", className: "text-danger-fg", children: a }),
|
|
2627
2625
|
/* @__PURE__ */ e(
|
|
2628
|
-
|
|
2626
|
+
We,
|
|
2629
2627
|
{
|
|
2630
2628
|
open: b,
|
|
2631
2629
|
onClose: () => {
|
|
@@ -2634,7 +2632,7 @@ const mr = ({
|
|
|
2634
2632
|
title: x ? `Explorer: ${x.name}` : "Select Storage Mount",
|
|
2635
2633
|
size: "lg",
|
|
2636
2634
|
children: /* @__PURE__ */ e(
|
|
2637
|
-
|
|
2635
|
+
lr,
|
|
2638
2636
|
{
|
|
2639
2637
|
variant: "pills",
|
|
2640
2638
|
items: [
|
|
@@ -2651,7 +2649,7 @@ const mr = ({
|
|
|
2651
2649
|
onClick: () => {
|
|
2652
2650
|
E && E !== "/" ? z() : D(null);
|
|
2653
2651
|
},
|
|
2654
|
-
leftIcon: /* @__PURE__ */ e(Y, { icon:
|
|
2652
|
+
leftIcon: /* @__PURE__ */ e(Y, { icon: ot, size: "xs" }),
|
|
2655
2653
|
children: E ? "Back" : "Back to Mounts"
|
|
2656
2654
|
}
|
|
2657
2655
|
),
|
|
@@ -2674,7 +2672,7 @@ const mr = ({
|
|
|
2674
2672
|
variant: "outline",
|
|
2675
2673
|
size: "sm",
|
|
2676
2674
|
onClick: () => k(!0),
|
|
2677
|
-
leftIcon: /* @__PURE__ */ e(Y, { icon:
|
|
2675
|
+
leftIcon: /* @__PURE__ */ e(Y, { icon: ct, size: "xs" }),
|
|
2678
2676
|
children: "New Folder"
|
|
2679
2677
|
}
|
|
2680
2678
|
),
|
|
@@ -2684,7 +2682,7 @@ const mr = ({
|
|
|
2684
2682
|
variant: "primary",
|
|
2685
2683
|
size: "sm",
|
|
2686
2684
|
onClick: () => y.current?.click(),
|
|
2687
|
-
leftIcon: /* @__PURE__ */ e(Y, { icon:
|
|
2685
|
+
leftIcon: /* @__PURE__ */ e(Y, { icon: it, size: "xs" }),
|
|
2688
2686
|
loading: U,
|
|
2689
2687
|
children: "Upload"
|
|
2690
2688
|
}
|
|
@@ -2769,7 +2767,7 @@ const mr = ({
|
|
|
2769
2767
|
}
|
|
2770
2768
|
)
|
|
2771
2769
|
] });
|
|
2772
|
-
},
|
|
2770
|
+
}, xr = {
|
|
2773
2771
|
sm: "px-3 py-1.5 text-sm",
|
|
2774
2772
|
md: "px-3 py-2 text-base",
|
|
2775
2773
|
lg: "px-3 py-2 text-md",
|
|
@@ -2797,7 +2795,7 @@ const mr = ({
|
|
|
2797
2795
|
htmlFor: C,
|
|
2798
2796
|
className: d(
|
|
2799
2797
|
He,
|
|
2800
|
-
g ? "text-danger-fg" : "text-text-
|
|
2798
|
+
g ? "text-danger-fg" : "text-text-muted",
|
|
2801
2799
|
h
|
|
2802
2800
|
),
|
|
2803
2801
|
children: t
|
|
@@ -2813,13 +2811,10 @@ const mr = ({
|
|
|
2813
2811
|
"aria-invalid": g || void 0,
|
|
2814
2812
|
"aria-describedby": x,
|
|
2815
2813
|
className: d(
|
|
2816
|
-
|
|
2817
|
-
"
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
2821
|
-
fr[s],
|
|
2822
|
-
g ? "border-danger-border bg-danger-soft" : "border-border hover:border-border-strong",
|
|
2814
|
+
Ve,
|
|
2815
|
+
"resize-y leading-relaxed",
|
|
2816
|
+
xr[s],
|
|
2817
|
+
qe(g),
|
|
2823
2818
|
u
|
|
2824
2819
|
),
|
|
2825
2820
|
...f
|
|
@@ -2851,7 +2846,7 @@ function Oe(t, r) {
|
|
|
2851
2846
|
t
|
|
2852
2847
|
);
|
|
2853
2848
|
}
|
|
2854
|
-
function
|
|
2849
|
+
function br(t, r, n) {
|
|
2855
2850
|
const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
|
|
2856
2851
|
let l = a;
|
|
2857
2852
|
for (let o = 0; o < s.length - 1; o++) {
|
|
@@ -2860,7 +2855,7 @@ function hr(t, r, n) {
|
|
|
2860
2855
|
}
|
|
2861
2856
|
return l[s[s.length - 1]] = n, a;
|
|
2862
2857
|
}
|
|
2863
|
-
function
|
|
2858
|
+
function pr(t, r) {
|
|
2864
2859
|
const n = r.split("."), s = Array.isArray(t) ? [...t] : { ...t };
|
|
2865
2860
|
let a = s;
|
|
2866
2861
|
for (let l = 0; l < n.length - 1; l++) {
|
|
@@ -2870,7 +2865,7 @@ function xr(t, r) {
|
|
|
2870
2865
|
}
|
|
2871
2866
|
return delete a[n[n.length - 1]], s;
|
|
2872
2867
|
}
|
|
2873
|
-
const
|
|
2868
|
+
const gn = ({
|
|
2874
2869
|
groups: t,
|
|
2875
2870
|
data: r,
|
|
2876
2871
|
onSubmit: n,
|
|
@@ -2927,12 +2922,12 @@ const bn = ({
|
|
|
2927
2922
|
[t]
|
|
2928
2923
|
), I = ue(
|
|
2929
2924
|
(k, i) => {
|
|
2930
|
-
let S =
|
|
2925
|
+
let S = br(
|
|
2931
2926
|
x,
|
|
2932
2927
|
k,
|
|
2933
2928
|
i
|
|
2934
2929
|
);
|
|
2935
|
-
t.flatMap((w) => w.items).find((w) => w.name === k)?.removeIfEmpty && (i == null || i === "") && (S =
|
|
2930
|
+
t.flatMap((w) => w.items).find((w) => w.name === k)?.removeIfEmpty && (i == null || i === "") && (S = pr(S, k)), D(S), X((w) => ({ ...w, [k]: !0 }));
|
|
2936
2931
|
const A = U(k, i, S);
|
|
2937
2932
|
W((w) => ({
|
|
2938
2933
|
...w,
|
|
@@ -3045,7 +3040,7 @@ const bn = ({
|
|
|
3045
3040
|
checked: i === w.value,
|
|
3046
3041
|
onChange: () => I(k.name, w.value),
|
|
3047
3042
|
disabled: y || w.disabled,
|
|
3048
|
-
className: "size-checkbox shrink-0 border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
|
|
3043
|
+
className: "size-checkbox shrink-0 rounded-xs border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
|
|
3049
3044
|
}
|
|
3050
3045
|
),
|
|
3051
3046
|
w.label
|
|
@@ -3065,7 +3060,7 @@ const bn = ({
|
|
|
3065
3060
|
);
|
|
3066
3061
|
case "file":
|
|
3067
3062
|
return /* @__PURE__ */ e(
|
|
3068
|
-
|
|
3063
|
+
hr,
|
|
3069
3064
|
{
|
|
3070
3065
|
...A,
|
|
3071
3066
|
value: i,
|
|
@@ -3098,7 +3093,7 @@ const bn = ({
|
|
|
3098
3093
|
);
|
|
3099
3094
|
case "folder":
|
|
3100
3095
|
return /* @__PURE__ */ e(
|
|
3101
|
-
|
|
3096
|
+
Vt,
|
|
3102
3097
|
{
|
|
3103
3098
|
value: i || {},
|
|
3104
3099
|
onChange: (w) => I(k.name, w),
|
|
@@ -3254,7 +3249,7 @@ const bn = ({
|
|
|
3254
3249
|
B.value
|
|
3255
3250
|
),
|
|
3256
3251
|
disabled: y || B.disabled,
|
|
3257
|
-
className: "size-checkbox shrink-0 border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
|
|
3252
|
+
className: "size-checkbox shrink-0 rounded-xs border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
|
|
3258
3253
|
}
|
|
3259
3254
|
),
|
|
3260
3255
|
B.label
|
|
@@ -3315,7 +3310,7 @@ const bn = ({
|
|
|
3315
3310
|
onClick: () => le(M),
|
|
3316
3311
|
disabled: y,
|
|
3317
3312
|
className: d("shrink-0", M === 0 && "mt-5"),
|
|
3318
|
-
children: /* @__PURE__ */ e(
|
|
3313
|
+
children: /* @__PURE__ */ e(dt, { className: "size-icon-md" })
|
|
3319
3314
|
}
|
|
3320
3315
|
)
|
|
3321
3316
|
] }, M)),
|
|
@@ -3325,7 +3320,7 @@ const bn = ({
|
|
|
3325
3320
|
type: "button",
|
|
3326
3321
|
variant: "secondary",
|
|
3327
3322
|
size: "sm",
|
|
3328
|
-
leftIcon: /* @__PURE__ */ e(
|
|
3323
|
+
leftIcon: /* @__PURE__ */ e(ut, { className: "size-icon-sm" }),
|
|
3329
3324
|
onClick: ae,
|
|
3330
3325
|
disabled: y,
|
|
3331
3326
|
children: [
|
|
@@ -3348,7 +3343,7 @@ const bn = ({
|
|
|
3348
3343
|
const i = k.items.filter((y) => !(y.hidden || y.conditional && !y.conditional(x)));
|
|
3349
3344
|
if (i.length === 0) return null;
|
|
3350
3345
|
const S = d(
|
|
3351
|
-
k.layout === "flex" ? "flex flex-wrap gap-3" : "grid gap-3",
|
|
3346
|
+
k.layout === "flex" ? "flex flex-wrap gap-3.5" : "grid gap-3.5",
|
|
3352
3347
|
k.layout !== "flex" && {
|
|
3353
3348
|
"grid-cols-1": !k.columns || k.columns === 1,
|
|
3354
3349
|
"grid-cols-2": k.columns === 2,
|
|
@@ -3360,11 +3355,11 @@ const bn = ({
|
|
|
3360
3355
|
return /* @__PURE__ */ c(
|
|
3361
3356
|
"div",
|
|
3362
3357
|
{
|
|
3363
|
-
className: "flex flex-col gap-4
|
|
3358
|
+
className: "flex flex-col gap-4 py-6 not-last:border-b not-last:border-border-subtle sm:flex-row sm:gap-8",
|
|
3364
3359
|
children: [
|
|
3365
3360
|
/* @__PURE__ */ c("div", { className: "w-full shrink-0 sm:w-form-label", children: [
|
|
3366
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
3367
|
-
k.description && /* @__PURE__ */ e("p", { className: "mt-1 text-
|
|
3361
|
+
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-text", children: k.title }),
|
|
3362
|
+
k.description && /* @__PURE__ */ e("p", { className: "mt-1 text-sm leading-relaxed text-pretty text-text-subtle", children: k.description })
|
|
3368
3363
|
] }),
|
|
3369
3364
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e("div", { className: S, children: i.map((y) => {
|
|
3370
3365
|
const A = T[y.name] ? E[y.name] : void 0;
|
|
@@ -3380,7 +3375,7 @@ const bn = ({
|
|
|
3380
3375
|
gridColumn: typeof y.width == "number" ? `span ${y.width} / span ${y.width}` : void 0
|
|
3381
3376
|
},
|
|
3382
3377
|
children: [
|
|
3383
|
-
y.type !== "custom" && y.type !== "checkbox" && /* @__PURE__ */ c("label", { className: "block text-
|
|
3378
|
+
y.type !== "custom" && y.type !== "checkbox" && /* @__PURE__ */ c("label", { className: "block text-sm font-medium text-text-muted", children: [
|
|
3384
3379
|
y.label,
|
|
3385
3380
|
y.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
|
|
3386
3381
|
] }),
|
|
@@ -3398,11 +3393,10 @@ const bn = ({
|
|
|
3398
3393
|
},
|
|
3399
3394
|
[x, T, E, K]
|
|
3400
3395
|
), P = d(
|
|
3401
|
-
"overflow-hidden rounded-lg border border-border bg-surface",
|
|
3402
3396
|
{
|
|
3403
|
-
"max-w-
|
|
3404
|
-
"max-w-
|
|
3405
|
-
"max-w-
|
|
3397
|
+
"max-w-settings": f === "sm",
|
|
3398
|
+
"max-w-form": f === "md",
|
|
3399
|
+
"max-w-6xl": f === "lg",
|
|
3406
3400
|
"max-w-full": f === "full"
|
|
3407
3401
|
},
|
|
3408
3402
|
p
|
|
@@ -3410,7 +3404,7 @@ const bn = ({
|
|
|
3410
3404
|
return /* @__PURE__ */ c("form", { ref: C, onSubmit: q, className: P, children: [
|
|
3411
3405
|
!N && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
|
|
3412
3406
|
/* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(re) }),
|
|
3413
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle
|
|
3407
|
+
N && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ c(xe, { children: [
|
|
3414
3408
|
/* @__PURE__ */ e("div", { className: "ml-auto" }),
|
|
3415
3409
|
s && /* @__PURE__ */ e(
|
|
3416
3410
|
ne,
|
|
@@ -3439,7 +3433,7 @@ const bn = ({
|
|
|
3439
3433
|
] }) })
|
|
3440
3434
|
] });
|
|
3441
3435
|
};
|
|
3442
|
-
function
|
|
3436
|
+
function vn({
|
|
3443
3437
|
open: t,
|
|
3444
3438
|
title: r,
|
|
3445
3439
|
description: n,
|
|
@@ -3451,7 +3445,7 @@ function pn({
|
|
|
3451
3445
|
onCancel: u
|
|
3452
3446
|
}) {
|
|
3453
3447
|
return /* @__PURE__ */ e(
|
|
3454
|
-
|
|
3448
|
+
We,
|
|
3455
3449
|
{
|
|
3456
3450
|
open: t,
|
|
3457
3451
|
onClose: u,
|
|
@@ -3473,7 +3467,7 @@ function pn({
|
|
|
3473
3467
|
}
|
|
3474
3468
|
);
|
|
3475
3469
|
}
|
|
3476
|
-
const
|
|
3470
|
+
const gr = {
|
|
3477
3471
|
default: "bg-surface-hover text-text",
|
|
3478
3472
|
primary: "bg-accent-soft text-accent",
|
|
3479
3473
|
secondary: "bg-surface-hover text-text-muted",
|
|
@@ -3483,11 +3477,11 @@ const br = {
|
|
|
3483
3477
|
info: "bg-info-soft text-info-fg",
|
|
3484
3478
|
// Internal-note amber. Never for customer-visible content.
|
|
3485
3479
|
note: "bg-note-soft text-note"
|
|
3486
|
-
},
|
|
3480
|
+
}, vr = {
|
|
3487
3481
|
sm: "px-2 py-0.5 text-xs",
|
|
3488
3482
|
md: "px-2.5 py-1 text-sm",
|
|
3489
3483
|
lg: "px-3 py-1.5 text-base"
|
|
3490
|
-
},
|
|
3484
|
+
}, yr = {
|
|
3491
3485
|
default: "bg-surface-hover",
|
|
3492
3486
|
primary: "bg-accent",
|
|
3493
3487
|
secondary: "bg-surface-hover",
|
|
@@ -3497,7 +3491,7 @@ const br = {
|
|
|
3497
3491
|
info: "bg-info",
|
|
3498
3492
|
note: "bg-note"
|
|
3499
3493
|
};
|
|
3500
|
-
function
|
|
3494
|
+
function yn({
|
|
3501
3495
|
variant: t = "default",
|
|
3502
3496
|
size: r = "md",
|
|
3503
3497
|
dot: n = !1,
|
|
@@ -3515,9 +3509,9 @@ function gn({
|
|
|
3515
3509
|
// Base styles
|
|
3516
3510
|
"inline-flex items-center font-medium rounded-full",
|
|
3517
3511
|
// Variant styles
|
|
3518
|
-
|
|
3512
|
+
gr[t],
|
|
3519
3513
|
// Size styles
|
|
3520
|
-
|
|
3514
|
+
vr[r],
|
|
3521
3515
|
o
|
|
3522
3516
|
),
|
|
3523
3517
|
...u,
|
|
@@ -3527,7 +3521,7 @@ function gn({
|
|
|
3527
3521
|
{
|
|
3528
3522
|
className: d(
|
|
3529
3523
|
"w-2 h-2 rounded-full mr-1.5",
|
|
3530
|
-
|
|
3524
|
+
yr[t]
|
|
3531
3525
|
)
|
|
3532
3526
|
}
|
|
3533
3527
|
),
|
|
@@ -3546,11 +3540,11 @@ function gn({
|
|
|
3546
3540
|
}
|
|
3547
3541
|
);
|
|
3548
3542
|
}
|
|
3549
|
-
const
|
|
3543
|
+
const Nr = {
|
|
3550
3544
|
neutral: "bg-surface-hover text-text-muted",
|
|
3551
3545
|
success: "bg-success-soft text-success-fg"
|
|
3552
3546
|
};
|
|
3553
|
-
function
|
|
3547
|
+
function Nn({
|
|
3554
3548
|
icon: t,
|
|
3555
3549
|
tone: r = "neutral",
|
|
3556
3550
|
title: n,
|
|
@@ -3570,7 +3564,7 @@ function vn({
|
|
|
3570
3564
|
),
|
|
3571
3565
|
...h,
|
|
3572
3566
|
children: [
|
|
3573
|
-
t != null && /* @__PURE__ */ e("span", { className: d("flex size-disc items-center justify-center rounded-full text-2xl",
|
|
3567
|
+
t != null && /* @__PURE__ */ e("span", { className: d("flex size-disc items-center justify-center rounded-full text-2xl", Nr[r]), children: t }),
|
|
3574
3568
|
/* @__PURE__ */ e("div", { className: "text-lg font-semibold text-text", children: n }),
|
|
3575
3569
|
s && /* @__PURE__ */ e("div", { className: "max-w-sm text-sm leading-relaxed text-text-muted", children: s }),
|
|
3576
3570
|
a && /* @__PURE__ */ e("div", { className: "flex gap-2 pt-1.5", children: a })
|
|
@@ -3578,7 +3572,7 @@ function vn({
|
|
|
3578
3572
|
}
|
|
3579
3573
|
);
|
|
3580
3574
|
}
|
|
3581
|
-
function
|
|
3575
|
+
function wn({ children: t, className: r, ...n }) {
|
|
3582
3576
|
return /* @__PURE__ */ e(
|
|
3583
3577
|
"kbd",
|
|
3584
3578
|
{
|
|
@@ -3591,14 +3585,14 @@ function yn({ children: t, className: r, ...n }) {
|
|
|
3591
3585
|
}
|
|
3592
3586
|
);
|
|
3593
3587
|
}
|
|
3594
|
-
const
|
|
3588
|
+
const wr = {
|
|
3595
3589
|
sm: "h-1",
|
|
3596
3590
|
md: "h-1.5"
|
|
3597
|
-
},
|
|
3591
|
+
}, kr = {
|
|
3598
3592
|
accent: "bg-accent",
|
|
3599
3593
|
success: "bg-success"
|
|
3600
3594
|
};
|
|
3601
|
-
function
|
|
3595
|
+
function kn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
|
|
3602
3596
|
const l = Math.max(0, Math.min(100, t));
|
|
3603
3597
|
return /* @__PURE__ */ e(
|
|
3604
3598
|
"div",
|
|
@@ -3607,37 +3601,37 @@ function Nn({ value: t, variant: r = "accent", size: n = "md", className: s, ...
|
|
|
3607
3601
|
"aria-valuenow": Math.round(l),
|
|
3608
3602
|
"aria-valuemin": 0,
|
|
3609
3603
|
"aria-valuemax": 100,
|
|
3610
|
-
className: d("w-full overflow-hidden rounded-full bg-surface-hover",
|
|
3604
|
+
className: d("w-full overflow-hidden rounded-full bg-surface-hover", wr[n], s),
|
|
3611
3605
|
...a,
|
|
3612
3606
|
children: /* @__PURE__ */ e(
|
|
3613
3607
|
"div",
|
|
3614
3608
|
{
|
|
3615
|
-
className: d("h-full rounded-full transition-[width] duration-300 ease-out",
|
|
3609
|
+
className: d("h-full rounded-full transition-[width] duration-300 ease-out", kr[r]),
|
|
3616
3610
|
style: { width: `${l}%` }
|
|
3617
3611
|
}
|
|
3618
3612
|
)
|
|
3619
3613
|
}
|
|
3620
3614
|
);
|
|
3621
3615
|
}
|
|
3622
|
-
const
|
|
3616
|
+
const Cr = {
|
|
3623
3617
|
xs: "h-3 w-3",
|
|
3624
3618
|
sm: "h-4 w-4",
|
|
3625
3619
|
md: "h-6 w-6",
|
|
3626
3620
|
lg: "h-8 w-8",
|
|
3627
3621
|
xl: "h-12 w-12"
|
|
3628
|
-
},
|
|
3622
|
+
}, Sr = {
|
|
3629
3623
|
primary: "text-accent",
|
|
3630
3624
|
secondary: "text-text-muted",
|
|
3631
3625
|
white: "text-white",
|
|
3632
3626
|
current: "text-current"
|
|
3633
|
-
},
|
|
3627
|
+
}, zr = {
|
|
3634
3628
|
xs: "text-xs",
|
|
3635
3629
|
sm: "text-sm",
|
|
3636
3630
|
md: "text-sm",
|
|
3637
3631
|
lg: "text-base",
|
|
3638
3632
|
xl: "text-lg"
|
|
3639
3633
|
};
|
|
3640
|
-
function
|
|
3634
|
+
function Cn({
|
|
3641
3635
|
size: t = "md",
|
|
3642
3636
|
variant: r = "primary",
|
|
3643
3637
|
label: n = "Loading...",
|
|
@@ -3660,8 +3654,8 @@ function wn({
|
|
|
3660
3654
|
{
|
|
3661
3655
|
className: d(
|
|
3662
3656
|
"animate-spin",
|
|
3663
|
-
|
|
3664
|
-
|
|
3657
|
+
Cr[t],
|
|
3658
|
+
Sr[r]
|
|
3665
3659
|
),
|
|
3666
3660
|
fill: "none",
|
|
3667
3661
|
viewBox: "0 0 24 24",
|
|
@@ -3695,7 +3689,7 @@ function wn({
|
|
|
3695
3689
|
{
|
|
3696
3690
|
className: d(
|
|
3697
3691
|
"text-text-muted",
|
|
3698
|
-
|
|
3692
|
+
zr[t]
|
|
3699
3693
|
),
|
|
3700
3694
|
children: n
|
|
3701
3695
|
}
|
|
@@ -3705,7 +3699,7 @@ function wn({
|
|
|
3705
3699
|
}
|
|
3706
3700
|
);
|
|
3707
3701
|
}
|
|
3708
|
-
const
|
|
3702
|
+
const Er = {
|
|
3709
3703
|
neutral: "bg-text-disabled",
|
|
3710
3704
|
accent: "bg-accent",
|
|
3711
3705
|
success: "bg-success",
|
|
@@ -3719,7 +3713,7 @@ const Sr = {
|
|
|
3719
3713
|
"cat-4": "bg-cat-4",
|
|
3720
3714
|
"cat-5": "bg-cat-5"
|
|
3721
3715
|
};
|
|
3722
|
-
function
|
|
3716
|
+
function Sn({
|
|
3723
3717
|
tone: t = "neutral",
|
|
3724
3718
|
shape: r = "round",
|
|
3725
3719
|
pulse: n = !1,
|
|
@@ -3735,14 +3729,14 @@ function kn({
|
|
|
3735
3729
|
className: d(
|
|
3736
3730
|
"inline-block size-dot shrink-0",
|
|
3737
3731
|
r === "round" ? "rounded-full" : "rounded-sm",
|
|
3738
|
-
|
|
3732
|
+
Er[t],
|
|
3739
3733
|
n && "animate-pulse",
|
|
3740
3734
|
a
|
|
3741
3735
|
)
|
|
3742
3736
|
}
|
|
3743
3737
|
);
|
|
3744
3738
|
}
|
|
3745
|
-
function
|
|
3739
|
+
function zn({
|
|
3746
3740
|
steps: t,
|
|
3747
3741
|
current: r,
|
|
3748
3742
|
variant: n = "numbered",
|
|
@@ -3778,7 +3772,7 @@ function Cn({
|
|
|
3778
3772
|
u < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
|
|
3779
3773
|
] }, h)) });
|
|
3780
3774
|
}
|
|
3781
|
-
function
|
|
3775
|
+
function En({ title: t, icon: r = /* @__PURE__ */ e(mt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
|
|
3782
3776
|
return /* @__PURE__ */ c(
|
|
3783
3777
|
"div",
|
|
3784
3778
|
{
|
|
@@ -3799,21 +3793,21 @@ function Sn({ title: t, icon: r = /* @__PURE__ */ e(dt, { className: "size-icon-
|
|
|
3799
3793
|
}
|
|
3800
3794
|
);
|
|
3801
3795
|
}
|
|
3802
|
-
const
|
|
3796
|
+
const Mr = {
|
|
3803
3797
|
xs: "w-5 h-5 text-xs",
|
|
3804
3798
|
sm: "w-6 h-6 text-xs",
|
|
3805
3799
|
md: "w-7 h-7 text-base",
|
|
3806
3800
|
lg: "w-9 h-9 text-sm"
|
|
3807
3801
|
};
|
|
3808
|
-
function
|
|
3802
|
+
function $r(t) {
|
|
3809
3803
|
if (!t) return "?";
|
|
3810
3804
|
const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
|
|
3811
3805
|
return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
|
|
3812
3806
|
}
|
|
3813
|
-
const
|
|
3807
|
+
const Dr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
3814
3808
|
const [l, o] = oe.useState(!1), h = d(
|
|
3815
3809
|
"inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none bg-surface-hover text-text",
|
|
3816
|
-
|
|
3810
|
+
Mr[n],
|
|
3817
3811
|
s
|
|
3818
3812
|
);
|
|
3819
3813
|
return r && !l ? /* @__PURE__ */ e(
|
|
@@ -3825,13 +3819,13 @@ const Mr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
|
3825
3819
|
className: d(h, "object-cover"),
|
|
3826
3820
|
onError: () => o(!0)
|
|
3827
3821
|
}
|
|
3828
|
-
) : /* @__PURE__ */ e("span", { className: h, title: a ?? t, "aria-label": t, children:
|
|
3829
|
-
}, Fe = "ring-surface",
|
|
3822
|
+
) : /* @__PURE__ */ e("span", { className: h, title: a ?? t, "aria-label": t, children: $r(t) });
|
|
3823
|
+
}, Fe = "ring-surface", Tr = "ring-surface-accent", Mn = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
|
|
3830
3824
|
if (t.length === 0) return null;
|
|
3831
3825
|
const a = t.slice(0, r), l = t.length - a.length;
|
|
3832
3826
|
return /* @__PURE__ */ c("span", { className: d("inline-flex items-center", s), children: [
|
|
3833
3827
|
a.map((o, h) => /* @__PURE__ */ e(
|
|
3834
|
-
|
|
3828
|
+
Dr,
|
|
3835
3829
|
{
|
|
3836
3830
|
name: o.name,
|
|
3837
3831
|
src: o.src,
|
|
@@ -3839,7 +3833,7 @@ const Mr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
|
3839
3833
|
title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
|
|
3840
3834
|
className: d(
|
|
3841
3835
|
h > 0 && "-ml-2",
|
|
3842
|
-
o.owner ?
|
|
3836
|
+
o.owner ? Tr : Fe,
|
|
3843
3837
|
o.seen === !1 && "opacity-40"
|
|
3844
3838
|
)
|
|
3845
3839
|
},
|
|
@@ -3866,12 +3860,12 @@ const Mr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
|
3866
3860
|
chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
|
|
3867
3861
|
tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
|
|
3868
3862
|
note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
|
|
3869
|
-
},
|
|
3863
|
+
}, _r = {
|
|
3870
3864
|
sm: "size-avatar-xs rounded-sm text-xs",
|
|
3871
3865
|
md: "size-avatar-sm rounded-md text-xs",
|
|
3872
3866
|
lg: "size-avatar-lg rounded-md text-base"
|
|
3873
3867
|
};
|
|
3874
|
-
function
|
|
3868
|
+
function $n({ channel: t, children: r, size: n = "md", className: s, title: a }) {
|
|
3875
3869
|
const l = Be[t in Be ? t : "note"];
|
|
3876
3870
|
return /* @__PURE__ */ e(
|
|
3877
3871
|
"span",
|
|
@@ -3879,7 +3873,7 @@ function En({ channel: t, children: r, size: n = "md", className: s, title: a })
|
|
|
3879
3873
|
title: a,
|
|
3880
3874
|
className: d(
|
|
3881
3875
|
"inline-flex shrink-0 items-center justify-center font-bold",
|
|
3882
|
-
|
|
3876
|
+
_r[n],
|
|
3883
3877
|
l.fg,
|
|
3884
3878
|
l.bg,
|
|
3885
3879
|
s
|
|
@@ -3888,7 +3882,7 @@ function En({ channel: t, children: r, size: n = "md", className: s, title: a })
|
|
|
3888
3882
|
}
|
|
3889
3883
|
);
|
|
3890
3884
|
}
|
|
3891
|
-
const
|
|
3885
|
+
const Dn = ({
|
|
3892
3886
|
src: t,
|
|
3893
3887
|
alt: r,
|
|
3894
3888
|
size: n = "md",
|
|
@@ -3950,7 +3944,7 @@ const Mn = ({
|
|
|
3950
3944
|
"absolute inset-0 flex items-center justify-center",
|
|
3951
3945
|
"text-text-muted"
|
|
3952
3946
|
), K = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), re = /* @__PURE__ */ c("div", { className: "text-center", children: [
|
|
3953
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
3947
|
+
/* @__PURE__ */ e(Y, { icon: ft, size: "lg", className: "mx-auto mb-1" }),
|
|
3954
3948
|
/* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
|
|
3955
3949
|
] });
|
|
3956
3950
|
return /* @__PURE__ */ c("div", { className: U, children: [
|
|
@@ -3969,7 +3963,7 @@ const Mn = ({
|
|
|
3969
3963
|
x && o && /* @__PURE__ */ e("div", { className: q, children: N || re })
|
|
3970
3964
|
] });
|
|
3971
3965
|
};
|
|
3972
|
-
function
|
|
3966
|
+
function Tn({
|
|
3973
3967
|
icon: t,
|
|
3974
3968
|
onClick: r,
|
|
3975
3969
|
children: n
|
|
@@ -3992,7 +3986,7 @@ function $n({
|
|
|
3992
3986
|
}
|
|
3993
3987
|
);
|
|
3994
3988
|
}
|
|
3995
|
-
function
|
|
3989
|
+
function _n({
|
|
3996
3990
|
items: t,
|
|
3997
3991
|
getRowKey: r,
|
|
3998
3992
|
variant: n = "divided",
|
|
@@ -4228,7 +4222,7 @@ function Dn({
|
|
|
4228
4222
|
] }) })
|
|
4229
4223
|
] });
|
|
4230
4224
|
}
|
|
4231
|
-
function
|
|
4225
|
+
function An({
|
|
4232
4226
|
side: t,
|
|
4233
4227
|
continued: r = !1,
|
|
4234
4228
|
tone: n = "default",
|
|
@@ -4258,18 +4252,18 @@ function Tn({
|
|
|
4258
4252
|
}
|
|
4259
4253
|
);
|
|
4260
4254
|
}
|
|
4261
|
-
const
|
|
4255
|
+
const Ar = {
|
|
4262
4256
|
default: "text-text",
|
|
4263
4257
|
urgent: "text-danger-fg",
|
|
4264
4258
|
success: "text-success-fg"
|
|
4265
4259
|
};
|
|
4266
|
-
function
|
|
4260
|
+
function Ln({ value: t, label: r, tone: n = "default", className: s, ...a }) {
|
|
4267
4261
|
return /* @__PURE__ */ c("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
|
|
4268
|
-
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold",
|
|
4262
|
+
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Ar[n]), children: t }),
|
|
4269
4263
|
/* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
|
|
4270
4264
|
] });
|
|
4271
4265
|
}
|
|
4272
|
-
const
|
|
4266
|
+
const In = ({
|
|
4273
4267
|
surface: t = !1,
|
|
4274
4268
|
title: r,
|
|
4275
4269
|
subtitle: n,
|
|
@@ -4339,7 +4333,7 @@ const An = ({
|
|
|
4339
4333
|
),
|
|
4340
4334
|
n && /* @__PURE__ */ e("span", { className: "shrink-0 text-base text-text-muted truncate", children: n }),
|
|
4341
4335
|
m && /* @__PURE__ */ e(
|
|
4342
|
-
|
|
4336
|
+
ht,
|
|
4343
4337
|
{
|
|
4344
4338
|
size: 15,
|
|
4345
4339
|
onClick: D,
|
|
@@ -4381,19 +4375,19 @@ const An = ({
|
|
|
4381
4375
|
]
|
|
4382
4376
|
}
|
|
4383
4377
|
);
|
|
4384
|
-
},
|
|
4378
|
+
}, Lr = {
|
|
4385
4379
|
none: "p-0",
|
|
4386
4380
|
sm: "p-2",
|
|
4387
4381
|
md: "p-4",
|
|
4388
4382
|
lg: "p-6"
|
|
4389
|
-
},
|
|
4383
|
+
}, jn = ({
|
|
4390
4384
|
actions: t = [],
|
|
4391
4385
|
onBack: r,
|
|
4392
4386
|
backLabel: n = "Back",
|
|
4393
4387
|
className: s,
|
|
4394
4388
|
padding: a = "md",
|
|
4395
4389
|
children: l
|
|
4396
|
-
}) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2 mb-3",
|
|
4390
|
+
}) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2 mb-3", Lr[a], s), children: [
|
|
4397
4391
|
r && /* @__PURE__ */ e(ne, { variant: "secondary", onClick: r, leftIcon: /* @__PURE__ */ e(Y, { icon: ke, size: "sm" }), iconOnly: !0 }),
|
|
4398
4392
|
l && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: l }),
|
|
4399
4393
|
t.length > 0 && /* @__PURE__ */ e("div", { className: d("flex flex-wrap gap-4", !l && "ml-auto"), children: t.map(
|
|
@@ -4423,7 +4417,7 @@ const An = ({
|
|
|
4423
4417
|
o.id
|
|
4424
4418
|
)
|
|
4425
4419
|
) })
|
|
4426
|
-
] }),
|
|
4420
|
+
] }), Ir = /<[a-z][\s\S]*>/i, jr = [
|
|
4427
4421
|
"[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
|
|
4428
4422
|
"[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
|
|
4429
4423
|
"[&_strong]:font-semibold [&_em]:italic",
|
|
@@ -4438,7 +4432,7 @@ const An = ({
|
|
|
4438
4432
|
"[&_table]:my-1.5 [&_table]:w-full [&_table]:border-collapse [&_table]:text-xs",
|
|
4439
4433
|
"[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
|
|
4440
4434
|
"[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1"
|
|
4441
|
-
].join(" "),
|
|
4435
|
+
].join(" "), Pr = {
|
|
4442
4436
|
p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
|
|
4443
4437
|
a: (t) => /* @__PURE__ */ e("a", { className: "text-accent underline underline-offset-2 hover:opacity-80", target: "_blank", rel: "noopener noreferrer", ...t }),
|
|
4444
4438
|
strong: (t) => /* @__PURE__ */ e("strong", { className: "font-semibold", ...t }),
|
|
@@ -4461,17 +4455,17 @@ const An = ({
|
|
|
4461
4455
|
th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
|
|
4462
4456
|
td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
|
|
4463
4457
|
};
|
|
4464
|
-
function
|
|
4458
|
+
function Pn({ text: t, className: r, as: n }) {
|
|
4465
4459
|
const s = t ?? "";
|
|
4466
|
-
return (n ? n === "html" :
|
|
4460
|
+
return (n ? n === "html" : Ir.test(s)) ? /* @__PURE__ */ e(
|
|
4467
4461
|
"div",
|
|
4468
4462
|
{
|
|
4469
|
-
className: d("break-words",
|
|
4470
|
-
dangerouslySetInnerHTML: { __html:
|
|
4463
|
+
className: d("break-words", jr, r),
|
|
4464
|
+
dangerouslySetInnerHTML: { __html: vt.sanitize(s, { ADD_ATTR: ["target", "rel"] }) }
|
|
4471
4465
|
}
|
|
4472
|
-
) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(
|
|
4466
|
+
) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(yt, { remarkPlugins: [Nt], components: Pr, children: s }) });
|
|
4473
4467
|
}
|
|
4474
|
-
function
|
|
4468
|
+
function On({ label: t, trailing: r, align: n = "center", className: s }) {
|
|
4475
4469
|
const a = /* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border-subtle", "aria-hidden": !0 });
|
|
4476
4470
|
return !t && !r ? /* @__PURE__ */ e("div", { className: d("flex items-center py-2", s), children: a }) : /* @__PURE__ */ c("div", { className: d("flex items-center gap-3 py-2", s), children: [
|
|
4477
4471
|
n === "center" && a,
|
|
@@ -4480,7 +4474,7 @@ function jn({ label: t, trailing: r, align: n = "center", className: s }) {
|
|
|
4480
4474
|
r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
|
|
4481
4475
|
] });
|
|
4482
4476
|
}
|
|
4483
|
-
function
|
|
4477
|
+
function Fn({
|
|
4484
4478
|
label: t,
|
|
4485
4479
|
description: r,
|
|
4486
4480
|
control: n,
|
|
@@ -4507,7 +4501,7 @@ function Pn({
|
|
|
4507
4501
|
}
|
|
4508
4502
|
);
|
|
4509
4503
|
}
|
|
4510
|
-
function
|
|
4504
|
+
function Bn({
|
|
4511
4505
|
icon: t,
|
|
4512
4506
|
title: r,
|
|
4513
4507
|
description: n,
|
|
@@ -4527,7 +4521,7 @@ function On({
|
|
|
4527
4521
|
/* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
|
|
4528
4522
|
] });
|
|
4529
4523
|
}
|
|
4530
|
-
function
|
|
4524
|
+
function Rn({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
4531
4525
|
return /* @__PURE__ */ c(
|
|
4532
4526
|
"button",
|
|
4533
4527
|
{
|
|
@@ -4540,18 +4534,18 @@ function Fn({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
|
4540
4534
|
children: [
|
|
4541
4535
|
r && /* @__PURE__ */ e("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full", style: { backgroundColor: r }, "aria-hidden": !0 }),
|
|
4542
4536
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: t }),
|
|
4543
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
4537
|
+
/* @__PURE__ */ e(Y, { icon: xt, size: "xs", className: "opacity-70" })
|
|
4544
4538
|
]
|
|
4545
4539
|
}
|
|
4546
4540
|
);
|
|
4547
4541
|
}
|
|
4548
|
-
function
|
|
4542
|
+
function Or(t, r) {
|
|
4549
4543
|
return r.split(".").reduce(
|
|
4550
4544
|
(n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
|
|
4551
4545
|
t
|
|
4552
4546
|
);
|
|
4553
4547
|
}
|
|
4554
|
-
const
|
|
4548
|
+
const Hn = ({
|
|
4555
4549
|
groups: t,
|
|
4556
4550
|
data: r,
|
|
4557
4551
|
size: n = "md",
|
|
@@ -4574,7 +4568,7 @@ const Bn = ({
|
|
|
4574
4568
|
return b ? b.label : String(m || "-");
|
|
4575
4569
|
}, h = ue(
|
|
4576
4570
|
(m) => {
|
|
4577
|
-
const f =
|
|
4571
|
+
const f = Or(r, m.name);
|
|
4578
4572
|
if (m.type === "array") {
|
|
4579
4573
|
const p = f;
|
|
4580
4574
|
return !p || p.length === 0 ? /* @__PURE__ */ e(
|
|
@@ -4800,7 +4794,7 @@ const Bn = ({
|
|
|
4800
4794
|
s
|
|
4801
4795
|
);
|
|
4802
4796
|
return /* @__PURE__ */ e("div", { className: N, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(u) }) });
|
|
4803
|
-
},
|
|
4797
|
+
}, Ke = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
|
|
4804
4798
|
const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
|
|
4805
4799
|
if (a)
|
|
4806
4800
|
return /* @__PURE__ */ c("li", { children: [
|
|
@@ -4817,7 +4811,7 @@ const Bn = ({
|
|
|
4817
4811
|
}
|
|
4818
4812
|
),
|
|
4819
4813
|
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((u, N) => /* @__PURE__ */ e(
|
|
4820
|
-
|
|
4814
|
+
Ke,
|
|
4821
4815
|
{
|
|
4822
4816
|
item: u,
|
|
4823
4817
|
isSelectedHandler: r,
|
|
@@ -4892,7 +4886,7 @@ const Bn = ({
|
|
|
4892
4886
|
]
|
|
4893
4887
|
}
|
|
4894
4888
|
) });
|
|
4895
|
-
},
|
|
4889
|
+
}, Vn = ({
|
|
4896
4890
|
items: t,
|
|
4897
4891
|
isSelectedHandler: r,
|
|
4898
4892
|
onClick: n,
|
|
@@ -4901,7 +4895,7 @@ const Bn = ({
|
|
|
4901
4895
|
s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
|
|
4902
4896
|
/* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-px overflow-y-auto", children: t.map(
|
|
4903
4897
|
(a, l) => !a.path && !a.label && !a.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, l) : /* @__PURE__ */ e(
|
|
4904
|
-
|
|
4898
|
+
Ke,
|
|
4905
4899
|
{
|
|
4906
4900
|
item: a,
|
|
4907
4901
|
isSelectedHandler: r,
|
|
@@ -4910,7 +4904,7 @@ const Bn = ({
|
|
|
4910
4904
|
l
|
|
4911
4905
|
)
|
|
4912
4906
|
) })
|
|
4913
|
-
] }),
|
|
4907
|
+
] }), Fr = {
|
|
4914
4908
|
xs: "text-xs",
|
|
4915
4909
|
sm: "text-sm",
|
|
4916
4910
|
md: "text-base",
|
|
@@ -4919,13 +4913,13 @@ const Bn = ({
|
|
|
4919
4913
|
"2xl": "text-2xl",
|
|
4920
4914
|
"3xl": "text-3xl",
|
|
4921
4915
|
"4xl": "text-3xl"
|
|
4922
|
-
},
|
|
4916
|
+
}, Br = {
|
|
4923
4917
|
light: "font-normal",
|
|
4924
4918
|
normal: "font-normal",
|
|
4925
4919
|
medium: "font-medium",
|
|
4926
4920
|
semibold: "font-semibold",
|
|
4927
4921
|
bold: "font-bold"
|
|
4928
|
-
},
|
|
4922
|
+
}, Rr = {
|
|
4929
4923
|
primary: "text-text",
|
|
4930
4924
|
secondary: "text-text-muted",
|
|
4931
4925
|
accent: "text-accent",
|
|
@@ -4935,11 +4929,11 @@ const Bn = ({
|
|
|
4935
4929
|
info: "text-info-fg",
|
|
4936
4930
|
neutral: "text-text",
|
|
4937
4931
|
current: "text-current"
|
|
4938
|
-
},
|
|
4932
|
+
}, Hr = {
|
|
4939
4933
|
left: "text-left",
|
|
4940
4934
|
center: "text-center",
|
|
4941
4935
|
right: "text-right"
|
|
4942
|
-
},
|
|
4936
|
+
}, qn = ({
|
|
4943
4937
|
level: t = 1,
|
|
4944
4938
|
size: r,
|
|
4945
4939
|
weight: n = "semibold",
|
|
@@ -4952,16 +4946,16 @@ const Bn = ({
|
|
|
4952
4946
|
}) => {
|
|
4953
4947
|
const N = `h${t}`, m = d(
|
|
4954
4948
|
"font-sans text-pretty",
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4949
|
+
Fr[r || Vr(t)],
|
|
4950
|
+
Br[n],
|
|
4951
|
+
Rr[s],
|
|
4952
|
+
Hr[a],
|
|
4959
4953
|
l && "truncate",
|
|
4960
4954
|
o
|
|
4961
4955
|
);
|
|
4962
4956
|
return /* @__PURE__ */ e(N, { className: m, ...u, children: h });
|
|
4963
4957
|
};
|
|
4964
|
-
function
|
|
4958
|
+
function Vr(t) {
|
|
4965
4959
|
return {
|
|
4966
4960
|
1: "2xl",
|
|
4967
4961
|
2: "xl",
|
|
@@ -4971,7 +4965,7 @@ function Rr(t) {
|
|
|
4971
4965
|
6: "md"
|
|
4972
4966
|
}[t] || "md";
|
|
4973
4967
|
}
|
|
4974
|
-
const
|
|
4968
|
+
const Un = ({
|
|
4975
4969
|
commands: t,
|
|
4976
4970
|
isOpen: r,
|
|
4977
4971
|
onClose: n,
|
|
@@ -5076,7 +5070,7 @@ const Vn = ({
|
|
|
5076
5070
|
]
|
|
5077
5071
|
}
|
|
5078
5072
|
) }) : null;
|
|
5079
|
-
},
|
|
5073
|
+
}, qr = {
|
|
5080
5074
|
none: "p-0",
|
|
5081
5075
|
xs: "p-1",
|
|
5082
5076
|
sm: "p-2",
|
|
@@ -5084,7 +5078,7 @@ const Vn = ({
|
|
|
5084
5078
|
lg: "p-6",
|
|
5085
5079
|
xl: "p-8",
|
|
5086
5080
|
"2xl": "p-12"
|
|
5087
|
-
},
|
|
5081
|
+
}, Ur = {
|
|
5088
5082
|
none: "m-0",
|
|
5089
5083
|
xs: "m-1",
|
|
5090
5084
|
sm: "m-2",
|
|
@@ -5092,7 +5086,7 @@ const Vn = ({
|
|
|
5092
5086
|
lg: "m-6",
|
|
5093
5087
|
xl: "m-8",
|
|
5094
5088
|
"2xl": "m-12"
|
|
5095
|
-
},
|
|
5089
|
+
}, Wr = {
|
|
5096
5090
|
none: "",
|
|
5097
5091
|
primary: "bg-accent text-accent-fg",
|
|
5098
5092
|
secondary: "bg-surface-hover",
|
|
@@ -5108,26 +5102,26 @@ const Vn = ({
|
|
|
5108
5102
|
backdrop: "bg-page",
|
|
5109
5103
|
editor: "bg-surface",
|
|
5110
5104
|
input: "bg-surface-input"
|
|
5111
|
-
},
|
|
5105
|
+
}, Kr = {
|
|
5112
5106
|
none: "rounded-none",
|
|
5113
5107
|
sm: "rounded-sm",
|
|
5114
5108
|
md: "rounded-md",
|
|
5115
5109
|
lg: "rounded-lg",
|
|
5116
5110
|
xl: "rounded-xl",
|
|
5117
5111
|
full: "rounded-full"
|
|
5118
|
-
},
|
|
5112
|
+
}, Gr = {
|
|
5119
5113
|
none: "shadow-none",
|
|
5120
5114
|
sm: "shadow-none",
|
|
5121
5115
|
md: "shadow-overlay",
|
|
5122
5116
|
lg: "shadow-overlay",
|
|
5123
5117
|
xl: "shadow-modal",
|
|
5124
5118
|
"2xl": "shadow-modal"
|
|
5125
|
-
},
|
|
5119
|
+
}, Jr = {
|
|
5126
5120
|
none: "border-0",
|
|
5127
5121
|
sm: "border",
|
|
5128
5122
|
md: "border-2",
|
|
5129
5123
|
lg: "border-4"
|
|
5130
|
-
},
|
|
5124
|
+
}, Yr = {
|
|
5131
5125
|
primary: "border-accent-border",
|
|
5132
5126
|
secondary: "border-border",
|
|
5133
5127
|
accent: "border-accent-border",
|
|
@@ -5137,7 +5131,7 @@ const Vn = ({
|
|
|
5137
5131
|
info: "border-info-border",
|
|
5138
5132
|
neutral: "border-border-subtle",
|
|
5139
5133
|
white: "border-border-subtle"
|
|
5140
|
-
},
|
|
5134
|
+
}, Ge = me(
|
|
5141
5135
|
({
|
|
5142
5136
|
padding: t,
|
|
5143
5137
|
margin: r,
|
|
@@ -5154,13 +5148,13 @@ const Vn = ({
|
|
|
5154
5148
|
{
|
|
5155
5149
|
ref: m,
|
|
5156
5150
|
className: d(
|
|
5157
|
-
t &&
|
|
5158
|
-
r &&
|
|
5159
|
-
n &&
|
|
5160
|
-
s &&
|
|
5161
|
-
a &&
|
|
5162
|
-
l &&
|
|
5163
|
-
o &&
|
|
5151
|
+
t && qr[t],
|
|
5152
|
+
r && Ur[r],
|
|
5153
|
+
n && Wr[n],
|
|
5154
|
+
s && Kr[s],
|
|
5155
|
+
a && Gr[a],
|
|
5156
|
+
l && Jr[l],
|
|
5157
|
+
o && Yr[o],
|
|
5164
5158
|
h
|
|
5165
5159
|
),
|
|
5166
5160
|
...N,
|
|
@@ -5168,9 +5162,9 @@ const Vn = ({
|
|
|
5168
5162
|
}
|
|
5169
5163
|
)
|
|
5170
5164
|
);
|
|
5171
|
-
|
|
5172
|
-
const
|
|
5173
|
-
|
|
5165
|
+
Ge.displayName = "Box";
|
|
5166
|
+
const Wn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
|
|
5167
|
+
Ge,
|
|
5174
5168
|
{
|
|
5175
5169
|
background: "module",
|
|
5176
5170
|
radius: "lg",
|
|
@@ -5184,7 +5178,7 @@ const qn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
|
|
|
5184
5178
|
]
|
|
5185
5179
|
}
|
|
5186
5180
|
);
|
|
5187
|
-
function
|
|
5181
|
+
function Kn({
|
|
5188
5182
|
identifier: t,
|
|
5189
5183
|
resourceLoader: r,
|
|
5190
5184
|
framework: n = "react",
|
|
@@ -5236,7 +5230,7 @@ function Un({
|
|
|
5236
5230
|
n === "react" && !m && b && /* @__PURE__ */ e(b, { ...l })
|
|
5237
5231
|
] });
|
|
5238
5232
|
}
|
|
5239
|
-
class
|
|
5233
|
+
class Gn extends gt {
|
|
5240
5234
|
constructor() {
|
|
5241
5235
|
super(...arguments), this.state = {
|
|
5242
5236
|
hasError: !1,
|
|
@@ -5265,71 +5259,71 @@ class Wn extends bt {
|
|
|
5265
5259
|
}
|
|
5266
5260
|
}
|
|
5267
5261
|
export {
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5262
|
+
En as AssistantCard,
|
|
5263
|
+
Dr as Avatar,
|
|
5264
|
+
Mn as AvatarStack,
|
|
5265
|
+
yn as Badge,
|
|
5266
|
+
Ge as Box,
|
|
5273
5267
|
ne as Button,
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5268
|
+
un as ButtonGroup,
|
|
5269
|
+
Wn as Card,
|
|
5270
|
+
$n as ChannelBadge,
|
|
5277
5271
|
pe as Checkbox,
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5272
|
+
Un as CommandPalette,
|
|
5273
|
+
vn as ConfirmDialog,
|
|
5274
|
+
Jt as ContentLoading,
|
|
5281
5275
|
$e as DatePicker,
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5276
|
+
Yt as Dropdown,
|
|
5277
|
+
Nn as EmptyState,
|
|
5278
|
+
Gn as ErrorBoundary,
|
|
5279
|
+
Kn as FederatedResource,
|
|
5280
|
+
mn as FilterChip,
|
|
5281
|
+
Vt as FolderSelect,
|
|
5282
|
+
gn as Form,
|
|
5283
|
+
qn as Heading,
|
|
5290
5284
|
Y as Icon,
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5285
|
+
Dn as Image,
|
|
5286
|
+
wn as Kbd,
|
|
5287
|
+
Ln as KpiCard,
|
|
5288
|
+
fn as Link,
|
|
5289
|
+
_n as List,
|
|
5290
|
+
Tn as ListBulkAction,
|
|
5291
|
+
on as MeetingGrid,
|
|
5292
|
+
An as MessageBubble,
|
|
5293
|
+
We as Modal,
|
|
5294
|
+
In as PageHeader,
|
|
5295
|
+
jn as PageToolbar,
|
|
5296
|
+
cn as ParticipantTile,
|
|
5297
|
+
_t as Popover,
|
|
5298
|
+
kn as ProgressBar,
|
|
5299
|
+
Pn as RichText,
|
|
5300
|
+
Kt as SearchableTextField,
|
|
5301
|
+
On as SectionDivider,
|
|
5302
|
+
hn as SegmentedToggle,
|
|
5309
5303
|
we as Select,
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5304
|
+
Fn as SettingsRow,
|
|
5305
|
+
Bn as SettingsSection,
|
|
5306
|
+
Vn as SidebarMenu,
|
|
5307
|
+
Rn as SourceChip,
|
|
5308
|
+
Cn as Spinner,
|
|
5315
5309
|
Re as SplitButton,
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5310
|
+
Sn as StatusDot,
|
|
5311
|
+
zn as StepIndicator,
|
|
5312
|
+
hr as StorageInput,
|
|
5313
|
+
Gt as Switch,
|
|
5314
|
+
pn as TabBar,
|
|
5321
5315
|
Pe as Table,
|
|
5322
|
-
|
|
5316
|
+
lr as Tabs,
|
|
5323
5317
|
de as Text,
|
|
5324
5318
|
De as TextArea,
|
|
5325
5319
|
be as TextField,
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5320
|
+
dn as VideoSurface,
|
|
5321
|
+
Hn as View,
|
|
5322
|
+
ln as catTone,
|
|
5329
5323
|
d as cn,
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5324
|
+
an as createSizes,
|
|
5325
|
+
sn as createVariants,
|
|
5326
|
+
xn as dateFilterHandler,
|
|
5327
|
+
bn as selectFilterHandler
|
|
5334
5328
|
};
|
|
5335
5329
|
//# sourceMappingURL=index.js.map
|