@opencxh/ui-kit 3.120.1 → 3.120.3
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +511 -505
- package/dist/index.js.map +1 -1
- package/dist/src/content/PageToolbar.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { clsx as Ue } from "clsx";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as c, jsx as e, Fragment as he } from "react/jsx-runtime";
|
|
3
3
|
import { VideoOff as qe, User as We, MicOff as Ke, Mic as _e, X as ye, ChevronDown as ge, ExternalLink as Ge, Calendar as Je, ChevronLeft as Ne, ChevronRight as we, ChevronDownIcon as Ye, Loader2 as Xe, Search as ke, Check as De, ChevronUp as Ze, ChevronsLeft as Qe, ChevronsRight as et, FileText as ze, HardDrive as Te, ArrowLeft as tt, FolderPlus as rt, Upload as nt, Folder as Ae, Trash2 as st, Plus as at, Sparkles as lt, ImageOff as ot, Pencil as ct, ArrowUpRight as it } from "lucide-react";
|
|
4
4
|
import le, { useRef as se, useEffect as Q, forwardRef as ue, useState as U, useLayoutEffect as dt, useMemo as fe, useCallback as de, createContext as ut, Component as mt } from "react";
|
|
5
5
|
function d(...t) {
|
|
6
6
|
return Ue(t);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function qr(t) {
|
|
9
9
|
return (r, n) => t[r]?.[n] || "";
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Wr(t) {
|
|
12
12
|
return (r) => t[r] || "";
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Kr({ tiles: t, pinned: r, className: n }) {
|
|
15
15
|
if (r)
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ c("div", { className: d("flex flex-col md:flex-row gap-2 h-full min-h-0", n), children: [
|
|
17
17
|
/* @__PURE__ */ e("div", { className: "flex-1 min-h-0", children: r }),
|
|
18
|
-
t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((a,
|
|
18
|
+
t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((a, o) => /* @__PURE__ */ e("div", { className: "min-w-40 md:min-w-0", children: a }, o)) })
|
|
19
19
|
] });
|
|
20
20
|
const s = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
|
|
21
|
-
return /* @__PURE__ */ e("div", { className: d("grid gap-2 h-full", s, n), children: t.map((a,
|
|
21
|
+
return /* @__PURE__ */ e("div", { className: d("grid gap-2 h-full", s, n), children: t.map((a, o) => /* @__PURE__ */ e("div", { children: a }, o)) });
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function _r({
|
|
24
24
|
name: t,
|
|
25
25
|
avatarUrl: r,
|
|
26
26
|
muted: n,
|
|
27
27
|
speaking: s,
|
|
28
28
|
hasVideo: a,
|
|
29
|
-
videoSlot:
|
|
30
|
-
className:
|
|
29
|
+
videoSlot: o,
|
|
30
|
+
className: l,
|
|
31
31
|
fill: u
|
|
32
32
|
}) {
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ c(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
className: d(
|
|
37
37
|
"relative rounded-lg overflow-hidden bg-video-surface flex items-center justify-center",
|
|
38
38
|
u ? "h-full w-full" : "aspect-video",
|
|
39
39
|
s && "ring-2 ring-speaking",
|
|
40
|
-
|
|
40
|
+
l
|
|
41
41
|
),
|
|
42
42
|
children: [
|
|
43
|
-
a &&
|
|
44
|
-
/* @__PURE__ */
|
|
43
|
+
a && o ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: o }) : /* @__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(qe, { className: "w-8 h-8" }) : /* @__PURE__ */ e(We, { className: "w-8 h-8" }) }) }),
|
|
44
|
+
/* @__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: [
|
|
45
45
|
n ? /* @__PURE__ */ e(Ke, { className: "w-3 h-3" }) : /* @__PURE__ */ e(_e, { className: "w-3 h-3" }),
|
|
46
46
|
/* @__PURE__ */ e("span", { className: "truncate max-w-35", children: t })
|
|
47
47
|
] })
|
|
@@ -49,13 +49,13 @@ function Kr({
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Gr({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
|
|
53
53
|
const a = se(null);
|
|
54
54
|
return Q(() => {
|
|
55
55
|
if (!r || !a.current) return;
|
|
56
|
-
const
|
|
56
|
+
const o = t(a.current);
|
|
57
57
|
return () => {
|
|
58
|
-
typeof
|
|
58
|
+
typeof o == "function" && o(), a.current && (a.current.innerHTML = "");
|
|
59
59
|
};
|
|
60
60
|
}, [t, r]), /* @__PURE__ */ e(
|
|
61
61
|
"div",
|
|
@@ -105,8 +105,8 @@ const ft = {
|
|
|
105
105
|
fullWidth: n = !1,
|
|
106
106
|
loading: s = !1,
|
|
107
107
|
leftIcon: a,
|
|
108
|
-
rightIcon:
|
|
109
|
-
iconOnly:
|
|
108
|
+
rightIcon: o,
|
|
109
|
+
iconOnly: l = !1,
|
|
110
110
|
shape: u = "default",
|
|
111
111
|
className: x,
|
|
112
112
|
children: y,
|
|
@@ -114,7 +114,7 @@ const ft = {
|
|
|
114
114
|
...m
|
|
115
115
|
}, h) => {
|
|
116
116
|
const g = f || s;
|
|
117
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ c(
|
|
118
118
|
"button",
|
|
119
119
|
{
|
|
120
120
|
ref: h,
|
|
@@ -127,7 +127,7 @@ const ft = {
|
|
|
127
127
|
"disabled:cursor-not-allowed disabled:border-border-subtle",
|
|
128
128
|
"disabled:text-text-disabled",
|
|
129
129
|
ft[t],
|
|
130
|
-
|
|
130
|
+
l ? xt[r] : ht[r],
|
|
131
131
|
(n || r === "full") && "w-full",
|
|
132
132
|
s && "cursor-wait",
|
|
133
133
|
x
|
|
@@ -144,23 +144,23 @@ const ft = {
|
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
!s && a && /* @__PURE__ */ e("span", { className: "flex items-center justify-center shrink-0", children: a }),
|
|
147
|
-
!
|
|
148
|
-
!s &&
|
|
149
|
-
|
|
147
|
+
!l && y,
|
|
148
|
+
!s && o && /* @__PURE__ */ e("span", { className: "flex items-center justify-center shrink-0", children: o }),
|
|
149
|
+
l && !s && !a && !o && y
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
);
|
|
155
155
|
te.displayName = "Button";
|
|
156
|
-
const
|
|
156
|
+
const Jr = ({
|
|
157
157
|
children: t,
|
|
158
158
|
size: r = "md",
|
|
159
159
|
orientation: n = "horizontal",
|
|
160
160
|
attached: s = !0,
|
|
161
161
|
className: a
|
|
162
162
|
}) => {
|
|
163
|
-
const
|
|
163
|
+
const o = d(
|
|
164
164
|
"inline-flex",
|
|
165
165
|
{
|
|
166
166
|
// Orientation
|
|
@@ -182,7 +182,7 @@ const Gr = ({
|
|
|
182
182
|
},
|
|
183
183
|
a
|
|
184
184
|
);
|
|
185
|
-
return /* @__PURE__ */ e("div", { className:
|
|
185
|
+
return /* @__PURE__ */ e("div", { className: o, role: "group", children: t });
|
|
186
186
|
}, bt = {
|
|
187
187
|
primary: "text-text",
|
|
188
188
|
secondary: "text-text-muted",
|
|
@@ -199,8 +199,8 @@ const Gr = ({
|
|
|
199
199
|
color: n = "current",
|
|
200
200
|
clickable: s = !1,
|
|
201
201
|
onClick: a,
|
|
202
|
-
className:
|
|
203
|
-
"aria-label":
|
|
202
|
+
className: o,
|
|
203
|
+
"aria-label": l,
|
|
204
204
|
...u
|
|
205
205
|
}) => {
|
|
206
206
|
const x = typeof r == "number" ? r : gt(r), y = d(
|
|
@@ -210,14 +210,14 @@ const Gr = ({
|
|
|
210
210
|
"cursor-pointer rounded-sm transition-opacity duration-fast ease-out hover:opacity-80",
|
|
211
211
|
"focus-visible:outline-none focus-visible:focus-ring"
|
|
212
212
|
],
|
|
213
|
-
|
|
213
|
+
o
|
|
214
214
|
), f = {
|
|
215
215
|
size: x,
|
|
216
216
|
strokeWidth: 2,
|
|
217
217
|
className: y,
|
|
218
218
|
onClick: s ? a : void 0,
|
|
219
|
-
"aria-label":
|
|
220
|
-
"aria-hidden":
|
|
219
|
+
"aria-label": l,
|
|
220
|
+
"aria-hidden": l ? void 0 : !0,
|
|
221
221
|
role: s ? "button" : void 0,
|
|
222
222
|
tabIndex: s ? 0 : void 0,
|
|
223
223
|
onKeyDown: s ? (m) => {
|
|
@@ -242,40 +242,40 @@ const pt = {
|
|
|
242
242
|
warning: "border-warning-border bg-warning-soft text-warning-fg hover:bg-surface-hover",
|
|
243
243
|
danger: "border-danger-border bg-danger-soft text-danger-fg hover:bg-surface-hover"
|
|
244
244
|
};
|
|
245
|
-
function
|
|
245
|
+
function Yr({
|
|
246
246
|
label: t,
|
|
247
247
|
icon: r,
|
|
248
248
|
tone: n = "default",
|
|
249
249
|
shape: s = "pill",
|
|
250
250
|
size: a = "md",
|
|
251
|
-
active:
|
|
252
|
-
caret:
|
|
251
|
+
active: o = !1,
|
|
252
|
+
caret: l = !1,
|
|
253
253
|
onClear: u,
|
|
254
254
|
clearLabel: x = "Filter wissen",
|
|
255
255
|
onClick: y,
|
|
256
256
|
title: f,
|
|
257
257
|
className: m
|
|
258
258
|
}) {
|
|
259
|
-
const h =
|
|
259
|
+
const h = o && !!u, g = s === "pill" ? "rounded-full" : "rounded-md", N = d(
|
|
260
260
|
// A button's default cursor is an arrow, so it has to be asked for.
|
|
261
261
|
"inline-flex cursor-pointer select-none items-center text-sm font-semibold",
|
|
262
262
|
a === "sm" ? "h-control-sm" : "h-control-md",
|
|
263
263
|
"transition-colors duration-fast ease-out",
|
|
264
264
|
g,
|
|
265
265
|
// Picking a value outranks whatever the value happens to mean.
|
|
266
|
-
|
|
266
|
+
o ? "bg-accent text-accent-fg" : d("border", pt[n]),
|
|
267
267
|
m
|
|
268
|
-
), v = /* @__PURE__ */
|
|
268
|
+
), v = /* @__PURE__ */ c(he, { children: [
|
|
269
269
|
r,
|
|
270
270
|
t,
|
|
271
|
-
|
|
271
|
+
l && /* @__PURE__ */ e(Y, { icon: ge, size: "xs" })
|
|
272
272
|
] }), b = d(
|
|
273
273
|
"inline-flex items-center gap-1.5 pl-3",
|
|
274
274
|
g,
|
|
275
275
|
h ? "pr-1.5" : "pr-3",
|
|
276
276
|
"focus-visible:outline-none focus-visible:focus-ring"
|
|
277
277
|
);
|
|
278
|
-
return h ? /* @__PURE__ */
|
|
278
|
+
return h ? /* @__PURE__ */ c("span", { className: N, title: f, children: [
|
|
279
279
|
/* @__PURE__ */ e("button", { type: "button", onClick: y, className: b, children: v }),
|
|
280
280
|
/* @__PURE__ */ e(
|
|
281
281
|
"button",
|
|
@@ -313,14 +313,14 @@ const vt = {
|
|
|
313
313
|
warning: "bg-warning-soft",
|
|
314
314
|
error: "bg-danger-soft",
|
|
315
315
|
info: "bg-info-soft"
|
|
316
|
-
},
|
|
316
|
+
}, Xr = ({
|
|
317
317
|
variant: t = "default",
|
|
318
318
|
size: r = "md",
|
|
319
319
|
color: n = "primary",
|
|
320
320
|
disabled: s = !1,
|
|
321
321
|
external: a = !1,
|
|
322
|
-
className:
|
|
323
|
-
children:
|
|
322
|
+
className: o,
|
|
323
|
+
children: l,
|
|
324
324
|
href: u,
|
|
325
325
|
target: x,
|
|
326
326
|
rel: y,
|
|
@@ -339,7 +339,7 @@ const vt = {
|
|
|
339
339
|
Nt[n]
|
|
340
340
|
],
|
|
341
341
|
s && "pointer-events-none cursor-not-allowed text-text-disabled opacity-50",
|
|
342
|
-
|
|
342
|
+
o
|
|
343
343
|
), g = {
|
|
344
344
|
...f,
|
|
345
345
|
href: s ? void 0 : u,
|
|
@@ -347,37 +347,37 @@ const vt = {
|
|
|
347
347
|
rel: m ? "noopener noreferrer" : y,
|
|
348
348
|
"aria-disabled": s || void 0
|
|
349
349
|
};
|
|
350
|
-
return /* @__PURE__ */
|
|
351
|
-
|
|
350
|
+
return /* @__PURE__ */ c("a", { className: h, ...g, children: [
|
|
351
|
+
l,
|
|
352
352
|
m && /* @__PURE__ */ e(Ge, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
|
|
353
353
|
] });
|
|
354
354
|
}, wt = {
|
|
355
355
|
sm: "h-control-sm px-3 text-sm",
|
|
356
356
|
md: "h-control-md px-3 text-sm"
|
|
357
357
|
};
|
|
358
|
-
function
|
|
358
|
+
function Zr({
|
|
359
359
|
options: t,
|
|
360
360
|
value: r,
|
|
361
361
|
onChange: n,
|
|
362
362
|
size: s = "sm",
|
|
363
363
|
className: a,
|
|
364
|
-
"aria-label":
|
|
364
|
+
"aria-label": o
|
|
365
365
|
}) {
|
|
366
366
|
return /* @__PURE__ */ e(
|
|
367
367
|
"div",
|
|
368
368
|
{
|
|
369
369
|
role: "tablist",
|
|
370
|
-
"aria-label":
|
|
370
|
+
"aria-label": o,
|
|
371
371
|
className: d("inline-flex gap-0.5 rounded-md bg-surface-hover p-0.5", a),
|
|
372
|
-
children: t.map((
|
|
373
|
-
const u =
|
|
372
|
+
children: t.map((l) => {
|
|
373
|
+
const u = l.value === r;
|
|
374
374
|
return /* @__PURE__ */ e(
|
|
375
375
|
"button",
|
|
376
376
|
{
|
|
377
377
|
role: "tab",
|
|
378
378
|
"aria-selected": u,
|
|
379
379
|
type: "button",
|
|
380
|
-
onClick: () => n(
|
|
380
|
+
onClick: () => n(l.value),
|
|
381
381
|
className: d(
|
|
382
382
|
"inline-flex items-center justify-center rounded-sm",
|
|
383
383
|
"transition-colors duration-fast ease-out",
|
|
@@ -385,28 +385,28 @@ function Xr({
|
|
|
385
385
|
wt[s],
|
|
386
386
|
u ? "bg-surface text-text font-semibold" : "text-text-muted hover:text-text"
|
|
387
387
|
),
|
|
388
|
-
children:
|
|
388
|
+
children: l.label
|
|
389
389
|
},
|
|
390
|
-
|
|
390
|
+
l.value
|
|
391
391
|
);
|
|
392
392
|
})
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
396
|
function Ce(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
|
|
397
|
-
const [
|
|
397
|
+
const [o, l] = U({});
|
|
398
398
|
return dt(() => {
|
|
399
399
|
if (!t) return;
|
|
400
400
|
const u = () => {
|
|
401
401
|
const x = r.current;
|
|
402
402
|
if (!x) return;
|
|
403
403
|
const y = x.getBoundingClientRect(), f = window.innerHeight - y.bottom, m = y.top, h = a.startsWith("top"), g = h ? m < 200 && f > m : f < 200 && m > f, N = h !== g, v = { position: "fixed" };
|
|
404
|
-
N ? (v.bottom = window.innerHeight - y.top + n, v.maxHeight = Math.max(120, m - n * 2)) : (v.top = y.bottom + n, v.maxHeight = Math.max(120, f - n * 2)), a.endsWith("end") ? v.right = window.innerWidth - y.right : v.left = y.left, s && (v.width = y.width),
|
|
404
|
+
N ? (v.bottom = window.innerHeight - y.top + n, v.maxHeight = Math.max(120, m - n * 2)) : (v.top = y.bottom + n, v.maxHeight = Math.max(120, f - n * 2)), a.endsWith("end") ? v.right = window.innerWidth - y.right : v.left = y.left, s && (v.width = y.width), l(v);
|
|
405
405
|
};
|
|
406
406
|
return u(), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
|
|
407
407
|
window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
|
|
408
408
|
};
|
|
409
|
-
}, [t, r, n, s, a]),
|
|
409
|
+
}, [t, r, n, s, a]), o;
|
|
410
410
|
}
|
|
411
411
|
const kt = ({
|
|
412
412
|
trigger: t,
|
|
@@ -414,8 +414,8 @@ const kt = ({
|
|
|
414
414
|
placement: n = "bottom-start",
|
|
415
415
|
className: s,
|
|
416
416
|
rootClassName: a,
|
|
417
|
-
triggerClassName:
|
|
418
|
-
disabled:
|
|
417
|
+
triggerClassName: o,
|
|
418
|
+
disabled: l = !1,
|
|
419
419
|
triggerLabel: u
|
|
420
420
|
}) => {
|
|
421
421
|
const [x, y] = U(!1), f = se(null), m = se(null), h = Ce(x, m, { placement: n });
|
|
@@ -431,22 +431,22 @@ const kt = ({
|
|
|
431
431
|
};
|
|
432
432
|
}, [x]);
|
|
433
433
|
const g = (v) => {
|
|
434
|
-
v.stopPropagation(), !
|
|
434
|
+
v.stopPropagation(), !l && y((b) => !b);
|
|
435
435
|
}, N = () => y(!1);
|
|
436
|
-
return /* @__PURE__ */
|
|
436
|
+
return /* @__PURE__ */ c("div", { ref: f, className: d("relative inline-flex", a), children: [
|
|
437
437
|
/* @__PURE__ */ e(
|
|
438
438
|
"button",
|
|
439
439
|
{
|
|
440
440
|
ref: m,
|
|
441
441
|
type: "button",
|
|
442
442
|
onClick: g,
|
|
443
|
-
disabled:
|
|
443
|
+
disabled: l,
|
|
444
444
|
"aria-label": u,
|
|
445
445
|
"aria-expanded": x,
|
|
446
446
|
className: d(
|
|
447
447
|
"inline-flex items-center",
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
l && "cursor-not-allowed opacity-50",
|
|
449
|
+
o
|
|
450
450
|
),
|
|
451
451
|
children: t
|
|
452
452
|
}
|
|
@@ -479,21 +479,21 @@ function Oe({
|
|
|
479
479
|
variant: n = "primary",
|
|
480
480
|
size: s = "md",
|
|
481
481
|
icon: a,
|
|
482
|
-
options:
|
|
483
|
-
disabled:
|
|
482
|
+
options: o,
|
|
483
|
+
disabled: l = !1,
|
|
484
484
|
loading: u = !1,
|
|
485
485
|
menuPlacement: x = "bottom-end",
|
|
486
486
|
menuLabel: y = "More options"
|
|
487
487
|
}) {
|
|
488
|
-
const f =
|
|
489
|
-
return /* @__PURE__ */
|
|
488
|
+
const f = l || u, m = o.length > 0;
|
|
489
|
+
return /* @__PURE__ */ c("div", { className: "inline-flex items-center gap-px", children: [
|
|
490
490
|
/* @__PURE__ */ e(
|
|
491
491
|
te,
|
|
492
492
|
{
|
|
493
493
|
variant: n,
|
|
494
494
|
size: s,
|
|
495
495
|
onClick: r,
|
|
496
|
-
disabled:
|
|
496
|
+
disabled: l,
|
|
497
497
|
loading: u,
|
|
498
498
|
leftIcon: a,
|
|
499
499
|
className: d(m && "rounded-r-none"),
|
|
@@ -521,7 +521,7 @@ function Oe({
|
|
|
521
521
|
children: /* @__PURE__ */ e(ge, { className: "size-icon-md" })
|
|
522
522
|
}
|
|
523
523
|
),
|
|
524
|
-
children: (h) => /* @__PURE__ */ e(he, { children:
|
|
524
|
+
children: (h) => /* @__PURE__ */ e(he, { children: o.map((g) => /* @__PURE__ */ c(
|
|
525
525
|
"button",
|
|
526
526
|
{
|
|
527
527
|
type: "button",
|
|
@@ -567,8 +567,8 @@ const zt = {
|
|
|
567
567
|
error: n,
|
|
568
568
|
size: s = "md",
|
|
569
569
|
indeterminate: a = !1,
|
|
570
|
-
containerClassName:
|
|
571
|
-
labelClassName:
|
|
570
|
+
containerClassName: o,
|
|
571
|
+
labelClassName: l,
|
|
572
572
|
className: u,
|
|
573
573
|
id: x,
|
|
574
574
|
...y
|
|
@@ -581,8 +581,8 @@ const zt = {
|
|
|
581
581
|
);
|
|
582
582
|
return le.useEffect(() => {
|
|
583
583
|
N.current && (N.current.indeterminate = a);
|
|
584
|
-
}, [a]), /* @__PURE__ */
|
|
585
|
-
/* @__PURE__ */
|
|
584
|
+
}, [a]), /* @__PURE__ */ c("div", { className: d("flex flex-col", o), children: [
|
|
585
|
+
/* @__PURE__ */ c("div", { className: d("flex items-center gap-3", Et[s]), children: [
|
|
586
586
|
/* @__PURE__ */ e(
|
|
587
587
|
"input",
|
|
588
588
|
{
|
|
@@ -604,7 +604,7 @@ const zt = {
|
|
|
604
604
|
...y
|
|
605
605
|
}
|
|
606
606
|
),
|
|
607
|
-
t && /* @__PURE__ */
|
|
607
|
+
t && /* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
608
608
|
/* @__PURE__ */ e(
|
|
609
609
|
"label",
|
|
610
610
|
{
|
|
@@ -613,7 +613,7 @@ const zt = {
|
|
|
613
613
|
"cursor-pointer",
|
|
614
614
|
g ? "text-danger-fg" : "text-text",
|
|
615
615
|
Mt[s],
|
|
616
|
-
|
|
616
|
+
l
|
|
617
617
|
),
|
|
618
618
|
children: t
|
|
619
619
|
}
|
|
@@ -632,8 +632,8 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
632
632
|
placeholder: n = "Select date",
|
|
633
633
|
disabled: s = !1,
|
|
634
634
|
required: a = !1,
|
|
635
|
-
size:
|
|
636
|
-
className:
|
|
635
|
+
size: o = "md",
|
|
636
|
+
className: l,
|
|
637
637
|
minDate: u,
|
|
638
638
|
maxDate: x,
|
|
639
639
|
format: y = "MM/dd/yyyy",
|
|
@@ -686,12 +686,12 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
686
686
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
687
687
|
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
688
688
|
{
|
|
689
|
-
"h-control-sm px-3 text-sm":
|
|
690
|
-
"h-control-md px-3 text-base":
|
|
691
|
-
"h-control-lg px-3 text-base":
|
|
692
|
-
"h-control-md w-full px-3 text-base":
|
|
689
|
+
"h-control-sm px-3 text-sm": o === "sm",
|
|
690
|
+
"h-control-md px-3 text-base": o === "md",
|
|
691
|
+
"h-control-lg px-3 text-base": o === "lg",
|
|
692
|
+
"h-control-md w-full px-3 text-base": o === "full"
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
l
|
|
695
695
|
), ce = H(), k = [
|
|
696
696
|
"January",
|
|
697
697
|
"February",
|
|
@@ -706,8 +706,8 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
706
706
|
"November",
|
|
707
707
|
"December"
|
|
708
708
|
];
|
|
709
|
-
return /* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ c("div", { ref: b, className: "relative", children: [
|
|
710
|
+
/* @__PURE__ */ c("div", { ref: L, className: "relative", children: [
|
|
711
711
|
/* @__PURE__ */ e(
|
|
712
712
|
"input",
|
|
713
713
|
{
|
|
@@ -733,8 +733,8 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
733
733
|
}
|
|
734
734
|
)
|
|
735
735
|
] }),
|
|
736
|
-
h && /* @__PURE__ */
|
|
737
|
-
/* @__PURE__ */
|
|
736
|
+
h && /* @__PURE__ */ c("div", { style: A, className: "fixed z-overlay overflow-auto rounded-lg border border-border bg-surface p-4 shadow-overlay min-w-panel", children: [
|
|
737
|
+
/* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
|
|
738
738
|
/* @__PURE__ */ e(
|
|
739
739
|
"button",
|
|
740
740
|
{
|
|
@@ -743,7 +743,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
743
743
|
children: /* @__PURE__ */ e(Dt, {})
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
|
|
747
747
|
k[N.getMonth()],
|
|
748
748
|
" ",
|
|
749
749
|
N.getFullYear()
|
|
@@ -779,7 +779,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
779
779
|
S
|
|
780
780
|
);
|
|
781
781
|
}) }),
|
|
782
|
-
f && /* @__PURE__ */
|
|
782
|
+
f && /* @__PURE__ */ c("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-3", children: [
|
|
783
783
|
/* @__PURE__ */ e("label", { htmlFor: "datepicker-time", className: "text-sm text-text-muted", children: "Tijd" }),
|
|
784
784
|
/* @__PURE__ */ e(
|
|
785
785
|
"input",
|
|
@@ -792,7 +792,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
792
792
|
}
|
|
793
793
|
)
|
|
794
794
|
] }),
|
|
795
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ c("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-border", children: [
|
|
796
796
|
/* @__PURE__ */ e(
|
|
797
797
|
"button",
|
|
798
798
|
{
|
|
@@ -824,8 +824,8 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
824
824
|
error: n,
|
|
825
825
|
size: s = "md",
|
|
826
826
|
fullWidth: a = !1,
|
|
827
|
-
disabled:
|
|
828
|
-
options:
|
|
827
|
+
disabled: o = !1,
|
|
828
|
+
options: l,
|
|
829
829
|
placeholder: u,
|
|
830
830
|
containerClassName: x,
|
|
831
831
|
labelClassName: y,
|
|
@@ -839,7 +839,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
839
839
|
onCreateOption: L,
|
|
840
840
|
...A
|
|
841
841
|
}, X) => {
|
|
842
|
-
const $ = m || `select-${Math.random().toString(36).substr(2, 9)}`, Z = !!n, [H, P] = le.useState(!1), [F, re] = le.useState(""), V = le.useRef(null), _ = le.useRef(null), ce = Ce(H, _, { matchWidth: !0 }), [k, i] = le.useState(
|
|
842
|
+
const $ = m || `select-${Math.random().toString(36).substr(2, 9)}`, Z = !!n, [H, P] = le.useState(!1), [F, re] = le.useState(""), V = le.useRef(null), _ = le.useRef(null), ce = Ce(H, _, { matchWidth: !0 }), [k, i] = le.useState(l);
|
|
843
843
|
le.useImperativeHandle(X, () => V.current), le.useEffect(() => {
|
|
844
844
|
const M = (D) => {
|
|
845
845
|
V.current && !V.current.contains(D.target) && P(!1);
|
|
@@ -863,12 +863,12 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
863
863
|
);
|
|
864
864
|
le.useEffect(() => {
|
|
865
865
|
i((M) => {
|
|
866
|
-
const D = [...
|
|
866
|
+
const D = [...l];
|
|
867
867
|
return M.forEach((E) => {
|
|
868
868
|
!S(D, E.value) && !S(D, E.label) && D.push(E);
|
|
869
869
|
}), w(D, N);
|
|
870
870
|
});
|
|
871
|
-
}, [
|
|
871
|
+
}, [l, N, w, S]);
|
|
872
872
|
const T = (M) => {
|
|
873
873
|
if (g) {
|
|
874
874
|
const D = Array.isArray(N) ? N : [], E = D.includes(M) ? D.filter((q) => q !== M) : [...D, M];
|
|
@@ -892,7 +892,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
892
892
|
}
|
|
893
893
|
i((q) => [...q, E]), T(E.value), re(""), g || P(!1);
|
|
894
894
|
}, B = () => g ? ee.length > 0 ? ee.map((M) => M.label).join(", ") : u || "Select options" : C?.label || u || "Select an option";
|
|
895
|
-
return /* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ c(
|
|
896
896
|
"div",
|
|
897
897
|
{
|
|
898
898
|
ref: V,
|
|
@@ -916,14 +916,14 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
916
916
|
children: t
|
|
917
917
|
}
|
|
918
918
|
),
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
920
|
+
/* @__PURE__ */ c(
|
|
921
921
|
"button",
|
|
922
922
|
{
|
|
923
923
|
ref: _,
|
|
924
924
|
type: "button",
|
|
925
925
|
id: $,
|
|
926
|
-
disabled:
|
|
926
|
+
disabled: o,
|
|
927
927
|
onClick: () => P(!H),
|
|
928
928
|
className: d(
|
|
929
929
|
"flex w-full items-center justify-between gap-2 rounded-md border transition-colors duration-fast text-left",
|
|
@@ -949,7 +949,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
949
949
|
]
|
|
950
950
|
}
|
|
951
951
|
),
|
|
952
|
-
H && /* @__PURE__ */
|
|
952
|
+
H && /* @__PURE__ */ c("div", { style: ce, className: "fixed z-overlay flex flex-col overflow-hidden rounded-lg border border-border bg-surface shadow-overlay", children: [
|
|
953
953
|
h && /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e(
|
|
954
954
|
"input",
|
|
955
955
|
{
|
|
@@ -966,7 +966,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
966
966
|
)
|
|
967
967
|
}
|
|
968
968
|
) }),
|
|
969
|
-
ne && /* @__PURE__ */
|
|
969
|
+
ne && /* @__PURE__ */ c(
|
|
970
970
|
"div",
|
|
971
971
|
{
|
|
972
972
|
className: d(
|
|
@@ -981,7 +981,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
981
981
|
]
|
|
982
982
|
}
|
|
983
983
|
),
|
|
984
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ c("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
|
|
985
985
|
u && !g && /* @__PURE__ */ e(
|
|
986
986
|
"li",
|
|
987
987
|
{
|
|
@@ -1004,7 +1004,7 @@ const $t = () => /* @__PURE__ */ e(Y, { icon: Je, size: "md", color: "current" }
|
|
|
1004
1004
|
M.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover",
|
|
1005
1005
|
D && "bg-accent-soft text-accent font-semibold"
|
|
1006
1006
|
),
|
|
1007
|
-
children: /* @__PURE__ */
|
|
1007
|
+
children: /* @__PURE__ */ c("div", { className: "flex items-center", children: [
|
|
1008
1008
|
g && /* @__PURE__ */ e(
|
|
1009
1009
|
"input",
|
|
1010
1010
|
{
|
|
@@ -1051,8 +1051,8 @@ const Lt = {
|
|
|
1051
1051
|
error: n,
|
|
1052
1052
|
size: s = "md",
|
|
1053
1053
|
fullWidth: a = !1,
|
|
1054
|
-
startIcon:
|
|
1055
|
-
endIcon:
|
|
1054
|
+
startIcon: o,
|
|
1055
|
+
endIcon: l,
|
|
1056
1056
|
loading: u = !1,
|
|
1057
1057
|
containerClassName: x,
|
|
1058
1058
|
labelClassName: y,
|
|
@@ -1061,7 +1061,7 @@ const Lt = {
|
|
|
1061
1061
|
...h
|
|
1062
1062
|
}, g) => {
|
|
1063
1063
|
const N = le.useId(), v = m || `textfield-${N}`, b = !!n, L = n || r ? `${v}-description` : void 0;
|
|
1064
|
-
return /* @__PURE__ */
|
|
1064
|
+
return /* @__PURE__ */ c("div", { className: d("flex flex-col", a && "w-full", x), children: [
|
|
1065
1065
|
t && /* @__PURE__ */ e(
|
|
1066
1066
|
"label",
|
|
1067
1067
|
{
|
|
@@ -1074,8 +1074,8 @@ const Lt = {
|
|
|
1074
1074
|
children: t
|
|
1075
1075
|
}
|
|
1076
1076
|
),
|
|
1077
|
-
/* @__PURE__ */
|
|
1078
|
-
|
|
1077
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
1078
|
+
o && /* @__PURE__ */ e("span", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-text-muted", children: o }),
|
|
1079
1079
|
/* @__PURE__ */ e(
|
|
1080
1080
|
"input",
|
|
1081
1081
|
{
|
|
@@ -1090,21 +1090,21 @@ const Lt = {
|
|
|
1090
1090
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
1091
1091
|
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
1092
1092
|
Lt[s],
|
|
1093
|
-
|
|
1094
|
-
(
|
|
1093
|
+
o && "pl-9",
|
|
1094
|
+
(l || u) && "pr-9",
|
|
1095
1095
|
b ? "border-danger-border bg-danger-soft" : "border-border hover:border-border-strong",
|
|
1096
1096
|
f
|
|
1097
1097
|
),
|
|
1098
1098
|
...h
|
|
1099
1099
|
}
|
|
1100
1100
|
),
|
|
1101
|
-
(
|
|
1101
|
+
(l || u) && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted", children: u ? /* @__PURE__ */ e(
|
|
1102
1102
|
"span",
|
|
1103
1103
|
{
|
|
1104
1104
|
"aria-hidden": !0,
|
|
1105
1105
|
className: "size-icon-md animate-spin rounded-full border-2 border-border border-t-transparent"
|
|
1106
1106
|
}
|
|
1107
|
-
) :
|
|
1107
|
+
) : l })
|
|
1108
1108
|
] }),
|
|
1109
1109
|
(n || r) && /* @__PURE__ */ e(
|
|
1110
1110
|
"p",
|
|
@@ -1124,8 +1124,8 @@ function It({
|
|
|
1124
1124
|
onListFolders: n,
|
|
1125
1125
|
disabled: s,
|
|
1126
1126
|
size: a = "md",
|
|
1127
|
-
placeholder:
|
|
1128
|
-
templatePlaceholder:
|
|
1127
|
+
placeholder: o,
|
|
1128
|
+
templatePlaceholder: l,
|
|
1129
1129
|
showTemplate: u = !0
|
|
1130
1130
|
}) {
|
|
1131
1131
|
const [x, y] = U([]);
|
|
@@ -1139,7 +1139,7 @@ function It({
|
|
|
1139
1139
|
};
|
|
1140
1140
|
}, []);
|
|
1141
1141
|
const f = t ?? {};
|
|
1142
|
-
return /* @__PURE__ */
|
|
1142
|
+
return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
1143
1143
|
/* @__PURE__ */ e(
|
|
1144
1144
|
ve,
|
|
1145
1145
|
{
|
|
@@ -1147,7 +1147,7 @@ function It({
|
|
|
1147
1147
|
fullWidth: !0,
|
|
1148
1148
|
value: f.folderId ?? "",
|
|
1149
1149
|
options: x.map((m) => ({ value: m.id, label: m.name })),
|
|
1150
|
-
placeholder:
|
|
1150
|
+
placeholder: o ?? "Select a folder",
|
|
1151
1151
|
onChange: (m) => r?.({ ...f, folderId: m })
|
|
1152
1152
|
}
|
|
1153
1153
|
),
|
|
@@ -1157,7 +1157,7 @@ function It({
|
|
|
1157
1157
|
size: a,
|
|
1158
1158
|
disabled: s ?? !1,
|
|
1159
1159
|
value: f.pathTemplate ?? "",
|
|
1160
|
-
placeholder:
|
|
1160
|
+
placeholder: l ?? "Sub-path e.g. {yyyy}/{mm}/{dd} (optional)",
|
|
1161
1161
|
onChange: (m) => r?.({ ...f, pathTemplate: m.target.value })
|
|
1162
1162
|
}
|
|
1163
1163
|
)
|
|
@@ -1180,8 +1180,8 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1180
1180
|
error: n,
|
|
1181
1181
|
size: s = "md",
|
|
1182
1182
|
fullWidth: a = !1,
|
|
1183
|
-
startIcon:
|
|
1184
|
-
loading:
|
|
1183
|
+
startIcon: o = /* @__PURE__ */ e(jt, {}),
|
|
1184
|
+
loading: l = !1,
|
|
1185
1185
|
containerClassName: u,
|
|
1186
1186
|
labelClassName: x,
|
|
1187
1187
|
className: y,
|
|
@@ -1237,8 +1237,8 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1237
1237
|
re(B.label), _(!1), S(!1), g && g(B.value);
|
|
1238
1238
|
}, ee = () => {
|
|
1239
1239
|
(m.length > 0 || h) && (_(!0), S(!1));
|
|
1240
|
-
}, ae =
|
|
1241
|
-
return /* @__PURE__ */
|
|
1240
|
+
}, ae = l || ce, ne = V && (w.length > 0 || ae), K = fe(() => X || P, [X]);
|
|
1241
|
+
return /* @__PURE__ */ c(
|
|
1242
1242
|
"div",
|
|
1243
1243
|
{
|
|
1244
1244
|
className: me(
|
|
@@ -1261,8 +1261,8 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1261
1261
|
children: t
|
|
1262
1262
|
}
|
|
1263
1263
|
),
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
|
|
1264
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
1265
|
+
o && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: me("text-text-muted", Ee[s]), children: o }) }),
|
|
1266
1266
|
/* @__PURE__ */ e(
|
|
1267
1267
|
"input",
|
|
1268
1268
|
{
|
|
@@ -1279,7 +1279,7 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1279
1279
|
// Size styles
|
|
1280
1280
|
Ot[s],
|
|
1281
1281
|
// Icon padding
|
|
1282
|
-
|
|
1282
|
+
o ? "pl-10" : "",
|
|
1283
1283
|
"pr-10",
|
|
1284
1284
|
// Altijd padding rechts voor de dropdown/loading icon
|
|
1285
1285
|
// State styles
|
|
@@ -1289,7 +1289,7 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1289
1289
|
...A
|
|
1290
1290
|
}
|
|
1291
1291
|
),
|
|
1292
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: ae ||
|
|
1292
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: ae || l ? (
|
|
1293
1293
|
// Loading Spinner
|
|
1294
1294
|
/* @__PURE__ */ e(
|
|
1295
1295
|
Xe,
|
|
@@ -1330,7 +1330,7 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1330
1330
|
children: B.label
|
|
1331
1331
|
},
|
|
1332
1332
|
B.value
|
|
1333
|
-
)) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-text-muted", children: ae ||
|
|
1333
|
+
)) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-text-muted", children: ae || l ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
|
|
1334
1334
|
}
|
|
1335
1335
|
),
|
|
1336
1336
|
(n || r) && /* @__PURE__ */ e(
|
|
@@ -1343,7 +1343,7 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1343
1343
|
children: n || r
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
1346
|
-
h && /* @__PURE__ */
|
|
1346
|
+
h && /* @__PURE__ */ c("p", { className: "mt-2 text-xs text-success-fg", children: [
|
|
1347
1347
|
"Huidige zoekterm (niet-gedebounced): ",
|
|
1348
1348
|
String(F)
|
|
1349
1349
|
] })
|
|
@@ -1354,7 +1354,7 @@ const me = (...t) => t.filter(Boolean).join(" "), jt = (t) => /* @__PURE__ */ e(
|
|
|
1354
1354
|
);
|
|
1355
1355
|
Ft.displayName = "SearchableTextField";
|
|
1356
1356
|
const Bt = ue(
|
|
1357
|
-
({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...
|
|
1357
|
+
({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...o }, l) => {
|
|
1358
1358
|
const u = /* @__PURE__ */ e(
|
|
1359
1359
|
"span",
|
|
1360
1360
|
{
|
|
@@ -1377,7 +1377,7 @@ const Bt = ue(
|
|
|
1377
1377
|
)
|
|
1378
1378
|
}
|
|
1379
1379
|
);
|
|
1380
|
-
return /* @__PURE__ */
|
|
1380
|
+
return /* @__PURE__ */ c(
|
|
1381
1381
|
"label",
|
|
1382
1382
|
{
|
|
1383
1383
|
className: d(
|
|
@@ -1389,14 +1389,14 @@ const Bt = ue(
|
|
|
1389
1389
|
/* @__PURE__ */ e(
|
|
1390
1390
|
"input",
|
|
1391
1391
|
{
|
|
1392
|
-
ref:
|
|
1392
|
+
ref: l,
|
|
1393
1393
|
type: "checkbox",
|
|
1394
1394
|
role: "switch",
|
|
1395
1395
|
checked: t,
|
|
1396
1396
|
disabled: s,
|
|
1397
1397
|
onChange: (x) => r(x.target.checked),
|
|
1398
1398
|
className: "peer sr-only",
|
|
1399
|
-
...
|
|
1399
|
+
...o
|
|
1400
1400
|
}
|
|
1401
1401
|
),
|
|
1402
1402
|
/* @__PURE__ */ e("span", { className: "inline-flex rounded-full peer-focus-visible:focus-ring", children: u }),
|
|
@@ -1414,22 +1414,22 @@ function Rt({
|
|
|
1414
1414
|
tableColumns: s = 6,
|
|
1415
1415
|
tableRows: a = 8
|
|
1416
1416
|
}) {
|
|
1417
|
-
const
|
|
1418
|
-
return r ? /* @__PURE__ */ e(
|
|
1419
|
-
!n && /* @__PURE__ */
|
|
1417
|
+
const o = ({ children: l }) => t === "inline" ? /* @__PURE__ */ e(he, { children: l }) : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: l });
|
|
1418
|
+
return r ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e("div", { className: "w-full max-w-6xl mx-auto animate-pulse", children: r }) }) : /* @__PURE__ */ e(o, { children: /* @__PURE__ */ c("div", { className: "w-full mx-auto space-y-6 animate-pulse", children: [
|
|
1419
|
+
!n && /* @__PURE__ */ c(he, { children: [
|
|
1420
1420
|
/* @__PURE__ */ e("div", { className: "h-6 w-1/4 rounded-sm bg-surface-hover" }),
|
|
1421
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ c("div", { className: "space-y-2", children: [
|
|
1422
1422
|
/* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded-sm bg-surface-hover" }),
|
|
1423
1423
|
/* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded-sm bg-surface-hover" })
|
|
1424
1424
|
] })
|
|
1425
1425
|
] }),
|
|
1426
|
-
n && /* @__PURE__ */
|
|
1426
|
+
n && /* @__PURE__ */ c("div", { className: "rounded-lg overflow-hidden", children: [
|
|
1427
1427
|
/* @__PURE__ */ e(
|
|
1428
1428
|
"div",
|
|
1429
1429
|
{
|
|
1430
1430
|
className: "grid gap-2 bg-surface-hover p-3",
|
|
1431
1431
|
style: { gridTemplateColumns: `repeat(${s}, minmax(0, 1fr))` },
|
|
1432
|
-
children: Array.from({ length: s }).map((
|
|
1432
|
+
children: Array.from({ length: s }).map((l, u) => /* @__PURE__ */ e(
|
|
1433
1433
|
"div",
|
|
1434
1434
|
{
|
|
1435
1435
|
className: "h-4 w-2/3 rounded-sm bg-border-strong"
|
|
@@ -1438,7 +1438,7 @@ function Rt({
|
|
|
1438
1438
|
))
|
|
1439
1439
|
}
|
|
1440
1440
|
),
|
|
1441
|
-
Array.from({ length: a }).map((
|
|
1441
|
+
Array.from({ length: a }).map((l, u) => /* @__PURE__ */ e(
|
|
1442
1442
|
"div",
|
|
1443
1443
|
{
|
|
1444
1444
|
className: "grid gap-2 border-t border-border-subtle p-3",
|
|
@@ -1462,8 +1462,8 @@ const Vt = ({
|
|
|
1462
1462
|
value: n,
|
|
1463
1463
|
onSelect: s,
|
|
1464
1464
|
placement: a = "bottom-start",
|
|
1465
|
-
disabled:
|
|
1466
|
-
className:
|
|
1465
|
+
disabled: o = !1,
|
|
1466
|
+
className: l,
|
|
1467
1467
|
showCheck: u = !0,
|
|
1468
1468
|
header: x
|
|
1469
1469
|
}) => {
|
|
@@ -1512,7 +1512,7 @@ const Vt = ({
|
|
|
1512
1512
|
$.current && clearTimeout($.current);
|
|
1513
1513
|
}, []);
|
|
1514
1514
|
const P = (i) => {
|
|
1515
|
-
i.stopPropagation(), !
|
|
1515
|
+
i.stopPropagation(), !o && (f(!y), h(null), $.current && (clearTimeout($.current), $.current = null));
|
|
1516
1516
|
}, F = (i, S, w) => {
|
|
1517
1517
|
i.stopPropagation(), !S.disabled && !S.divider && (!S.children || S.children.length === 0) && (s?.(S.value, w), f(!1), h(null));
|
|
1518
1518
|
}, re = (i) => {
|
|
@@ -1530,13 +1530,13 @@ const Vt = ({
|
|
|
1530
1530
|
"fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
|
|
1531
1531
|
"max-h-60 overflow-auto"
|
|
1532
1532
|
);
|
|
1533
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ c(
|
|
1534
1534
|
"div",
|
|
1535
1535
|
{
|
|
1536
1536
|
ref: v,
|
|
1537
1537
|
className: d(
|
|
1538
1538
|
"relative flex flex-row items-center justify-center rounded-lg hover:bg-surface-hover",
|
|
1539
|
-
|
|
1539
|
+
l
|
|
1540
1540
|
),
|
|
1541
1541
|
children: [
|
|
1542
1542
|
/* @__PURE__ */ e(
|
|
@@ -1544,16 +1544,16 @@ const Vt = ({
|
|
|
1544
1544
|
{
|
|
1545
1545
|
ref: b,
|
|
1546
1546
|
onClick: P,
|
|
1547
|
-
disabled:
|
|
1547
|
+
disabled: o,
|
|
1548
1548
|
"aria-haspopup": "menu",
|
|
1549
1549
|
"aria-expanded": y,
|
|
1550
1550
|
className: d("inline-flex items-center justify-center", {
|
|
1551
|
-
"opacity-50 cursor-not-allowed":
|
|
1551
|
+
"opacity-50 cursor-not-allowed": o
|
|
1552
1552
|
}),
|
|
1553
1553
|
children: t
|
|
1554
1554
|
}
|
|
1555
1555
|
),
|
|
1556
|
-
y && /* @__PURE__ */ e("div", { ref: A, className: ce, style: X, onKeyDown: H, children: /* @__PURE__ */
|
|
1556
|
+
y && /* @__PURE__ */ e("div", { ref: A, className: ce, style: X, onKeyDown: H, children: /* @__PURE__ */ c("div", { className: "p-2", role: "menu", children: [
|
|
1557
1557
|
x && (typeof x == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted uppercase tracking-label px-3 py-2", children: x }) : x),
|
|
1558
1558
|
r.map((i, S) => {
|
|
1559
1559
|
if (i.divider)
|
|
@@ -1565,8 +1565,8 @@ const Vt = ({
|
|
|
1565
1565
|
`divider-${S}`
|
|
1566
1566
|
);
|
|
1567
1567
|
const w = i.children && i.children.length > 0, T = m === i.value;
|
|
1568
|
-
return /* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1568
|
+
return /* @__PURE__ */ c("div", { className: "relative group", children: [
|
|
1569
|
+
/* @__PURE__ */ c(
|
|
1570
1570
|
"button",
|
|
1571
1571
|
{
|
|
1572
1572
|
"data-option-value": i.value,
|
|
@@ -1584,14 +1584,14 @@ const Vt = ({
|
|
|
1584
1584
|
}
|
|
1585
1585
|
),
|
|
1586
1586
|
children: [
|
|
1587
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
|
|
1588
1588
|
i.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: i.icon }),
|
|
1589
|
-
/* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
1590
1590
|
/* @__PURE__ */ e("span", { className: "font-base truncate", children: i.label }),
|
|
1591
1591
|
i.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: i.description })
|
|
1592
1592
|
] })
|
|
1593
1593
|
] }),
|
|
1594
|
-
/* @__PURE__ */
|
|
1594
|
+
/* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
|
|
1595
1595
|
u && n === i.value && /* @__PURE__ */ e(De, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
|
|
1596
1596
|
w && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
|
|
1597
1597
|
] })
|
|
@@ -1627,7 +1627,7 @@ const Vt = ({
|
|
|
1627
1627
|
const ae = typeof n == "object" && n[i.value] && n[i.value].includes(
|
|
1628
1628
|
C.value
|
|
1629
1629
|
) || n === C.value;
|
|
1630
|
-
return /* @__PURE__ */
|
|
1630
|
+
return /* @__PURE__ */ c(
|
|
1631
1631
|
"button",
|
|
1632
1632
|
{
|
|
1633
1633
|
onClick: (ne) => _(
|
|
@@ -1643,9 +1643,9 @@ const Vt = ({
|
|
|
1643
1643
|
}
|
|
1644
1644
|
),
|
|
1645
1645
|
children: [
|
|
1646
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
|
|
1647
1647
|
C.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: C.icon }),
|
|
1648
|
-
/* @__PURE__ */
|
|
1648
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
1649
1649
|
/* @__PURE__ */ e("span", { className: "font-base truncate", children: C.label }),
|
|
1650
1650
|
C.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: C.description })
|
|
1651
1651
|
] })
|
|
@@ -1666,7 +1666,7 @@ const Vt = ({
|
|
|
1666
1666
|
const T = w.children ? w.children.filter((C) => !C.divider).length : 0;
|
|
1667
1667
|
return S + 1 + T;
|
|
1668
1668
|
}, 0);
|
|
1669
|
-
return i > 1 && /* @__PURE__ */ e("div", { className: "border-t border-border mt-2 pt-2", children: /* @__PURE__ */
|
|
1669
|
+
return i > 1 && /* @__PURE__ */ e("div", { className: "border-t border-border mt-2 pt-2", children: /* @__PURE__ */ c("div", { className: "text-xs text-text-muted px-3 py-1", children: [
|
|
1670
1670
|
i,
|
|
1671
1671
|
" options available"
|
|
1672
1672
|
] }) });
|
|
@@ -1688,15 +1688,15 @@ const Vt = ({
|
|
|
1688
1688
|
placeholder: t.placeholder || `Select ${t.label.toLowerCase()}`,
|
|
1689
1689
|
className: "min-w-40 border border-border bg-surface text-text hover:bg-surface-hover"
|
|
1690
1690
|
}
|
|
1691
|
-
) }) : /* @__PURE__ */ e("div", { className: "flex items-center space-x-1 max-w-60", children: /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */
|
|
1692
|
-
/* @__PURE__ */
|
|
1691
|
+
) }) : /* @__PURE__ */ e("div", { className: "flex items-center space-x-1 max-w-60", children: /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ c("details", { className: "group", children: [
|
|
1692
|
+
/* @__PURE__ */ c("summary", { className: "flex h-control-md cursor-pointer items-center gap-2 rounded-full border border-border bg-surface px-3 text-sm font-semibold text-text hover:bg-surface-hover", children: [
|
|
1693
1693
|
/* @__PURE__ */ e("span", { children: t.label }),
|
|
1694
1694
|
/* @__PURE__ */ e("span", { className: "text-text", children: t.multiSelect && Array.isArray(t.value) ? t.value?.map(
|
|
1695
1695
|
(s) => t.options?.find((a) => a.value === s)?.label
|
|
1696
1696
|
).join(", ") : t.options?.find((s) => s.value === t.value)?.label }),
|
|
1697
1697
|
/* @__PURE__ */ e("span", { className: "text-text-muted text-sm group-open:rotate-180 transition-transform", children: /* @__PURE__ */ e(Be, {}) })
|
|
1698
1698
|
] }),
|
|
1699
|
-
/* @__PURE__ */
|
|
1699
|
+
/* @__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: [
|
|
1700
1700
|
t.options?.map((s) => /* @__PURE__ */ e(
|
|
1701
1701
|
"button",
|
|
1702
1702
|
{
|
|
@@ -1728,8 +1728,8 @@ const Vt = ({
|
|
|
1728
1728
|
loading: n = !1,
|
|
1729
1729
|
searchable: s = !1,
|
|
1730
1730
|
searchPlaceholder: a = "Search...",
|
|
1731
|
-
filters:
|
|
1732
|
-
paginated:
|
|
1731
|
+
filters: o = [],
|
|
1732
|
+
paginated: l = !1,
|
|
1733
1733
|
pageSizeOptions: u = [10, 25, 50, 100],
|
|
1734
1734
|
defaultPageSize: x = 10,
|
|
1735
1735
|
actions: y = [],
|
|
@@ -1763,7 +1763,7 @@ const Vt = ({
|
|
|
1763
1763
|
return String(oe || "").toLowerCase().includes(G);
|
|
1764
1764
|
}));
|
|
1765
1765
|
}
|
|
1766
|
-
return
|
|
1766
|
+
return o.forEach((O) => {
|
|
1767
1767
|
O.value && O.value !== "all" && (p = p.filter((G) => {
|
|
1768
1768
|
const J = r.find((oe) => oe.id === O.id);
|
|
1769
1769
|
if (!J) return !0;
|
|
@@ -1771,7 +1771,7 @@ const Vt = ({
|
|
|
1771
1771
|
return String(j || "") === O.value;
|
|
1772
1772
|
}));
|
|
1773
1773
|
}), p;
|
|
1774
|
-
}, [t, H, r, s,
|
|
1774
|
+
}, [t, H, r, s, o]), i = fe(() => {
|
|
1775
1775
|
if (!F.column || !F.direction) return k;
|
|
1776
1776
|
const p = r.find((O) => O.id === F.column);
|
|
1777
1777
|
return p ? [...k].sort((O, G) => {
|
|
@@ -1780,10 +1780,10 @@ const Vt = ({
|
|
|
1780
1780
|
return J < j ? oe = -1 : J > j && (oe = 1), F.direction === "desc" ? -oe : oe;
|
|
1781
1781
|
}) : k;
|
|
1782
1782
|
}, [k, F, r]), S = fe(() => {
|
|
1783
|
-
if (!
|
|
1783
|
+
if (!l) return i;
|
|
1784
1784
|
const p = V.page * V.pageSize, O = p + V.pageSize;
|
|
1785
1785
|
return i.slice(p, O);
|
|
1786
|
-
}, [i, V,
|
|
1786
|
+
}, [i, V, l]), w = de(
|
|
1787
1787
|
(p) => {
|
|
1788
1788
|
r.find((G) => G.id === p)?.sortable && re((G) => G.column !== p ? { column: p, direction: "asc" } : G.direction === "asc" ? { column: p, direction: "desc" } : { column: null, direction: null });
|
|
1789
1789
|
},
|
|
@@ -1811,7 +1811,7 @@ const Vt = ({
|
|
|
1811
1811
|
_((p) => ({ ...p, page: 0 }));
|
|
1812
1812
|
}, [H, F]), Q(() => {
|
|
1813
1813
|
_((p) => ({ ...p, page: 0 }));
|
|
1814
|
-
}, [
|
|
1814
|
+
}, [o.map((p) => p.value).join(",")]);
|
|
1815
1815
|
const ne = i.length, K = Math.ceil(ne / V.pageSize), B = V.page * V.pageSize + 1, M = Math.min(B + V.pageSize - 1, ne), D = S.length > 0 && S.every((p) => {
|
|
1816
1816
|
const O = N(p, 0);
|
|
1817
1817
|
return h.some(
|
|
@@ -1831,9 +1831,9 @@ const Vt = ({
|
|
|
1831
1831
|
"hover:bg-surface-sunk": b,
|
|
1832
1832
|
"cursor-pointer": f
|
|
1833
1833
|
});
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
-
(s ||
|
|
1836
|
-
|
|
1834
|
+
return /* @__PURE__ */ c("div", { className: "space-y-4", children: [
|
|
1835
|
+
(s || o.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: [
|
|
1836
|
+
o.map((p) => /* @__PURE__ */ e(Jt, { ...p }, p.id)),
|
|
1837
1837
|
/* @__PURE__ */ e("div", { className: "w-full sm:w-auto sm:ml-auto min-w-menu", children: /* @__PURE__ */ e(
|
|
1838
1838
|
xe,
|
|
1839
1839
|
{
|
|
@@ -1845,7 +1845,7 @@ const Vt = ({
|
|
|
1845
1845
|
}
|
|
1846
1846
|
) })
|
|
1847
1847
|
] }) }),
|
|
1848
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ c("div", { className: "relative w-full overflow-x-auto min-h-100", children: [
|
|
1849
1849
|
n && /* @__PURE__ */ e("div", { className: "flex items-center justify-center z-10", children: /* @__PURE__ */ e(
|
|
1850
1850
|
Rt,
|
|
1851
1851
|
{
|
|
@@ -1854,8 +1854,8 @@ const Vt = ({
|
|
|
1854
1854
|
tableColumns: r.length
|
|
1855
1855
|
}
|
|
1856
1856
|
) }),
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
/* @__PURE__ */ e("thead", { className: W, children: /* @__PURE__ */
|
|
1857
|
+
/* @__PURE__ */ c("table", { ref: ce, className: d(q, "min-w-full"), children: [
|
|
1858
|
+
/* @__PURE__ */ e("thead", { className: W, children: /* @__PURE__ */ c("tr", { children: [
|
|
1859
1859
|
m && /* @__PURE__ */ e("th", { className: d(z, "w-12"), children: /* @__PURE__ */ e(
|
|
1860
1860
|
"input",
|
|
1861
1861
|
{
|
|
@@ -1886,9 +1886,9 @@ const Vt = ({
|
|
|
1886
1886
|
),
|
|
1887
1887
|
style: { width: p.width },
|
|
1888
1888
|
onClick: () => p.sortable && w(p.id),
|
|
1889
|
-
children: /* @__PURE__ */
|
|
1889
|
+
children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
1890
1890
|
p.headerCell ? p.headerCell() : p.header,
|
|
1891
|
-
p.sortable && /* @__PURE__ */
|
|
1891
|
+
p.sortable && /* @__PURE__ */ c(
|
|
1892
1892
|
"div",
|
|
1893
1893
|
{
|
|
1894
1894
|
className: d(
|
|
@@ -1931,7 +1931,7 @@ const Vt = ({
|
|
|
1931
1931
|
const G = N(p, O), J = h.some(
|
|
1932
1932
|
(j, oe) => N(j, oe) === G
|
|
1933
1933
|
);
|
|
1934
|
-
return /* @__PURE__ */
|
|
1934
|
+
return /* @__PURE__ */ c(
|
|
1935
1935
|
"tr",
|
|
1936
1936
|
{
|
|
1937
1937
|
className: d(
|
|
@@ -1974,7 +1974,7 @@ const Vt = ({
|
|
|
1974
1974
|
y.length > 0 && /* @__PURE__ */ e("td", { className: z, children: /* @__PURE__ */ e(
|
|
1975
1975
|
Vt,
|
|
1976
1976
|
{
|
|
1977
|
-
trigger: /* @__PURE__ */
|
|
1977
|
+
trigger: /* @__PURE__ */ c("div", { className: "inline-flex items-center gap-1 px-2 py-1 text-sm text-text-muted hover:text-text", children: [
|
|
1978
1978
|
/* @__PURE__ */ e("span", { children: "Options" }),
|
|
1979
1979
|
/* @__PURE__ */ e(Be, {})
|
|
1980
1980
|
] }),
|
|
@@ -2000,9 +2000,9 @@ const Vt = ({
|
|
|
2000
2000
|
}) })
|
|
2001
2001
|
] })
|
|
2002
2002
|
] }),
|
|
2003
|
-
|
|
2004
|
-
/* @__PURE__ */
|
|
2005
|
-
/* @__PURE__ */
|
|
2003
|
+
l && ne > 0 && /* @__PURE__ */ c("div", { className: "flex items-center justify-between px-6", children: [
|
|
2004
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-4", children: [
|
|
2005
|
+
/* @__PURE__ */ c("span", { className: "text-sm text-text-muted", children: [
|
|
2006
2006
|
"Showing ",
|
|
2007
2007
|
B,
|
|
2008
2008
|
" to ",
|
|
@@ -2011,7 +2011,7 @@ const Vt = ({
|
|
|
2011
2011
|
ne,
|
|
2012
2012
|
" results"
|
|
2013
2013
|
] }),
|
|
2014
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
2015
2015
|
/* @__PURE__ */ e("span", { className: "text-sm text-text-muted", children: "Rows per page:" }),
|
|
2016
2016
|
/* @__PURE__ */ e(
|
|
2017
2017
|
"select",
|
|
@@ -2024,7 +2024,7 @@ const Vt = ({
|
|
|
2024
2024
|
)
|
|
2025
2025
|
] })
|
|
2026
2026
|
] }),
|
|
2027
|
-
/* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
|
|
2028
2028
|
/* @__PURE__ */ e(
|
|
2029
2029
|
te,
|
|
2030
2030
|
{
|
|
@@ -2047,7 +2047,7 @@ const Vt = ({
|
|
|
2047
2047
|
children: /* @__PURE__ */ e(Wt, {})
|
|
2048
2048
|
}
|
|
2049
2049
|
),
|
|
2050
|
-
/* @__PURE__ */
|
|
2050
|
+
/* @__PURE__ */ c("span", { className: "px-3 py-1 text-sm text-text-muted", children: [
|
|
2051
2051
|
"Page ",
|
|
2052
2052
|
V.page + 1,
|
|
2053
2053
|
" of ",
|
|
@@ -2078,14 +2078,14 @@ const Vt = ({
|
|
|
2078
2078
|
] })
|
|
2079
2079
|
] })
|
|
2080
2080
|
] });
|
|
2081
|
-
}, Yt = ut(null),
|
|
2081
|
+
}, Yt = ut(null), Qr = ({
|
|
2082
2082
|
items: t,
|
|
2083
2083
|
activeTab: r,
|
|
2084
2084
|
onTabChange: n,
|
|
2085
2085
|
className: s
|
|
2086
2086
|
}) => {
|
|
2087
|
-
const [a,
|
|
2088
|
-
n ? n(x) :
|
|
2087
|
+
const [a, o] = U(t[0]?.id || ""), l = r || a, u = (x) => {
|
|
2088
|
+
n ? n(x) : o(x);
|
|
2089
2089
|
};
|
|
2090
2090
|
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((x) => /* @__PURE__ */ e(
|
|
2091
2091
|
"button",
|
|
@@ -2095,16 +2095,16 @@ const Vt = ({
|
|
|
2095
2095
|
className: d(
|
|
2096
2096
|
"border-b-2 py-2 px-1 text-sm font-medium transition-colors duration-fast",
|
|
2097
2097
|
{
|
|
2098
|
-
"border-accent-border text-text":
|
|
2099
|
-
"border-transparent text-text-muted hover:text-text":
|
|
2098
|
+
"border-accent-border text-text": l === x.id,
|
|
2099
|
+
"border-transparent text-text-muted hover:text-text": l !== x.id && !x.disabled,
|
|
2100
2100
|
"border-transparent text-disabled cursor-not-allowed": x.disabled
|
|
2101
2101
|
}
|
|
2102
2102
|
),
|
|
2103
|
-
children: /* @__PURE__ */
|
|
2103
|
+
children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
|
|
2104
2104
|
x.label,
|
|
2105
2105
|
x.badge && /* @__PURE__ */ e("span", { className: d(
|
|
2106
2106
|
"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
|
|
2107
|
-
|
|
2107
|
+
l === x.id ? "bg-accent-soft text-accent" : "bg-surface-hover text-text-muted"
|
|
2108
2108
|
), children: x.badge })
|
|
2109
2109
|
] })
|
|
2110
2110
|
},
|
|
@@ -2116,8 +2116,8 @@ const Vt = ({
|
|
|
2116
2116
|
activeTab: n,
|
|
2117
2117
|
onTabChange: s,
|
|
2118
2118
|
variant: a = "default",
|
|
2119
|
-
size:
|
|
2120
|
-
className:
|
|
2119
|
+
size: o = "md",
|
|
2120
|
+
className: l
|
|
2121
2121
|
}) => {
|
|
2122
2122
|
const [u, x] = U(
|
|
2123
2123
|
r || n || t[0]?.id || ""
|
|
@@ -2134,12 +2134,12 @@ const Vt = ({
|
|
|
2134
2134
|
"space-x-1": a === "pills",
|
|
2135
2135
|
"space-x-8": a === "default" || a === "underline"
|
|
2136
2136
|
},
|
|
2137
|
-
|
|
2137
|
+
l
|
|
2138
2138
|
), N = (v, b) => {
|
|
2139
2139
|
const L = "transition-colors duration-fast font-medium", A = {
|
|
2140
|
-
"text-xs px-2 py-1":
|
|
2141
|
-
"text-sm px-3 py-2":
|
|
2142
|
-
"text-base px-4 py-3":
|
|
2140
|
+
"text-xs px-2 py-1": o === "sm",
|
|
2141
|
+
"text-sm px-3 py-2": o === "md",
|
|
2142
|
+
"text-base px-4 py-3": o === "lg"
|
|
2143
2143
|
}, X = {
|
|
2144
2144
|
// Default variant
|
|
2145
2145
|
"border-b-2 -mb-px": a === "default",
|
|
@@ -2160,7 +2160,7 @@ const Vt = ({
|
|
|
2160
2160
|
} : {};
|
|
2161
2161
|
return d(L, A, X, $, Z, H);
|
|
2162
2162
|
};
|
|
2163
|
-
return /* @__PURE__ */ e(Yt.Provider, { value: m, children: /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ e(Yt.Provider, { value: m, children: /* @__PURE__ */ c("div", { children: [
|
|
2164
2164
|
/* @__PURE__ */ e("div", { className: g, role: "tablist", children: t.map((v) => /* @__PURE__ */ e(
|
|
2165
2165
|
"button",
|
|
2166
2166
|
{
|
|
@@ -2171,7 +2171,7 @@ const Vt = ({
|
|
|
2171
2171
|
disabled: v.disabled,
|
|
2172
2172
|
onClick: () => !v.disabled && f(v.id),
|
|
2173
2173
|
className: N(v, y === v.id),
|
|
2174
|
-
children: /* @__PURE__ */
|
|
2174
|
+
children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
|
|
2175
2175
|
v.label,
|
|
2176
2176
|
v.badge && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-surface-hover text-text-muted", children: v.badge })
|
|
2177
2177
|
] })
|
|
@@ -2202,8 +2202,8 @@ function Re({
|
|
|
2202
2202
|
title: n,
|
|
2203
2203
|
size: s = "md",
|
|
2204
2204
|
closeOnBackdropClick: a = !0,
|
|
2205
|
-
closeOnEscape:
|
|
2206
|
-
className:
|
|
2205
|
+
closeOnEscape: o = !0,
|
|
2206
|
+
className: l,
|
|
2207
2207
|
backdropClassName: u,
|
|
2208
2208
|
children: x,
|
|
2209
2209
|
footer: y,
|
|
@@ -2211,12 +2211,12 @@ function Re({
|
|
|
2211
2211
|
}) {
|
|
2212
2212
|
const m = se(null), h = se(null);
|
|
2213
2213
|
Q(() => {
|
|
2214
|
-
if (!t || !
|
|
2214
|
+
if (!t || !o) return;
|
|
2215
2215
|
const N = (v) => {
|
|
2216
2216
|
v.key === "Escape" && r();
|
|
2217
2217
|
};
|
|
2218
2218
|
return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
|
|
2219
|
-
}, [t,
|
|
2219
|
+
}, [t, o, r]), Q(() => (t ? (h.current = document.activeElement, m.current && m.current.focus(), document.body.style.overflow = "hidden") : (h.current && h.current.focus(), document.body.style.overflow = ""), () => {
|
|
2220
2220
|
document.body.style.overflow = "";
|
|
2221
2221
|
}), [t]);
|
|
2222
2222
|
const g = (N) => {
|
|
@@ -2232,7 +2232,7 @@ function Re({
|
|
|
2232
2232
|
u
|
|
2233
2233
|
),
|
|
2234
2234
|
onClick: g,
|
|
2235
|
-
children: /* @__PURE__ */
|
|
2235
|
+
children: /* @__PURE__ */ c(
|
|
2236
2236
|
"div",
|
|
2237
2237
|
{
|
|
2238
2238
|
ref: m,
|
|
@@ -2241,14 +2241,14 @@ function Re({
|
|
|
2241
2241
|
// 'animate-scale-in',
|
|
2242
2242
|
"focus:outline-none",
|
|
2243
2243
|
Zt[s],
|
|
2244
|
-
|
|
2244
|
+
l
|
|
2245
2245
|
),
|
|
2246
2246
|
role: "dialog",
|
|
2247
2247
|
"aria-modal": "true",
|
|
2248
2248
|
"aria-labelledby": n ? "modal-title" : void 0,
|
|
2249
2249
|
tabIndex: -1,
|
|
2250
2250
|
children: [
|
|
2251
|
-
(n || f) && /* @__PURE__ */
|
|
2251
|
+
(n || f) && /* @__PURE__ */ c("div", { className: "flex items-center justify-between p-6 pb-0", children: [
|
|
2252
2252
|
n && /* @__PURE__ */ e(
|
|
2253
2253
|
"span",
|
|
2254
2254
|
{
|
|
@@ -2313,8 +2313,8 @@ const Qt = {
|
|
|
2313
2313
|
weight: n = "normal",
|
|
2314
2314
|
color: s = "current",
|
|
2315
2315
|
align: a = "left",
|
|
2316
|
-
truncate:
|
|
2317
|
-
italic:
|
|
2316
|
+
truncate: o = !1,
|
|
2317
|
+
italic: l = !1,
|
|
2318
2318
|
underline: u = !1,
|
|
2319
2319
|
lineHeight: x = "normal",
|
|
2320
2320
|
as: y,
|
|
@@ -2336,9 +2336,9 @@ const Qt = {
|
|
|
2336
2336
|
rr[a],
|
|
2337
2337
|
// Line height only overrides the body variant
|
|
2338
2338
|
t === "body" && nr[x],
|
|
2339
|
-
|
|
2339
|
+
l && "italic",
|
|
2340
2340
|
u && "underline",
|
|
2341
|
-
|
|
2341
|
+
o && "truncate",
|
|
2342
2342
|
f
|
|
2343
2343
|
);
|
|
2344
2344
|
return /* @__PURE__ */ e(g, { className: L, ...h, children: m });
|
|
@@ -2357,8 +2357,8 @@ const ar = ({
|
|
|
2357
2357
|
label: n,
|
|
2358
2358
|
placeholder: s = "Select or upload a file",
|
|
2359
2359
|
error: a,
|
|
2360
|
-
disabled:
|
|
2361
|
-
accept:
|
|
2360
|
+
disabled: o,
|
|
2361
|
+
accept: l,
|
|
2362
2362
|
onListFiles: u,
|
|
2363
2363
|
onListMounts: x,
|
|
2364
2364
|
onUploadFile: y,
|
|
@@ -2508,7 +2508,7 @@ const ar = ({
|
|
|
2508
2508
|
id: "name",
|
|
2509
2509
|
header: "Name",
|
|
2510
2510
|
accessor: "name",
|
|
2511
|
-
cell: (z, I) => /* @__PURE__ */
|
|
2511
|
+
cell: (z, I) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
2512
2512
|
/* @__PURE__ */ e(
|
|
2513
2513
|
Y,
|
|
2514
2514
|
{
|
|
@@ -2553,7 +2553,7 @@ const ar = ({
|
|
|
2553
2553
|
id: "name",
|
|
2554
2554
|
header: "Mount Name",
|
|
2555
2555
|
accessor: "name",
|
|
2556
|
-
cell: (z) => /* @__PURE__ */
|
|
2556
|
+
cell: (z) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
|
|
2557
2557
|
/* @__PURE__ */ e(Y, { icon: Te, size: "sm", color: "primary" }),
|
|
2558
2558
|
/* @__PURE__ */ e("span", { children: z })
|
|
2559
2559
|
] })
|
|
@@ -2566,22 +2566,22 @@ const ar = ({
|
|
|
2566
2566
|
cell: (z, I) => /* @__PURE__ */ e(te, { size: "sm", variant: "outline", onClick: () => L(I), children: "Open" })
|
|
2567
2567
|
}
|
|
2568
2568
|
];
|
|
2569
|
-
return /* @__PURE__ */
|
|
2569
|
+
return /* @__PURE__ */ c("div", { className: "space-y-1", children: [
|
|
2570
2570
|
n && /* @__PURE__ */ e(ie, { variant: "label", size: "sm", weight: "medium", children: n }),
|
|
2571
|
-
/* @__PURE__ */
|
|
2571
|
+
/* @__PURE__ */ c(
|
|
2572
2572
|
"div",
|
|
2573
2573
|
{
|
|
2574
|
-
onClick: () => !
|
|
2574
|
+
onClick: () => !o && g(!0),
|
|
2575
2575
|
className: d(
|
|
2576
2576
|
"flex items-center gap-3 px-3 py-2 border rounded-lg cursor-pointer transition-colors",
|
|
2577
2577
|
"hover:border-border-strong bg-surface",
|
|
2578
2578
|
a ? "border-danger-border" : "border-border",
|
|
2579
|
-
|
|
2579
|
+
o && "opacity-50 cursor-not-allowed bg-surface-sunk"
|
|
2580
2580
|
),
|
|
2581
2581
|
children: [
|
|
2582
2582
|
/* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(Y, { icon: V ? ze : Te, color: V ? "primary" : "secondary" }) }),
|
|
2583
2583
|
/* @__PURE__ */ e("div", { className: "flex-grow truncate", children: V ? /* @__PURE__ */ e("span", { className: "text-sm text-text font-medium", children: V.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-text-muted", children: s }) }),
|
|
2584
|
-
V && !
|
|
2584
|
+
V && !o && /* @__PURE__ */ e(
|
|
2585
2585
|
"button",
|
|
2586
2586
|
{
|
|
2587
2587
|
onClick: B,
|
|
@@ -2610,8 +2610,8 @@ const ar = ({
|
|
|
2610
2610
|
{
|
|
2611
2611
|
id: "remote",
|
|
2612
2612
|
label: "Platform Storage",
|
|
2613
|
-
content: /* @__PURE__ */ e("div", { className: "space-y-4", children: b ? /* @__PURE__ */
|
|
2614
|
-
/* @__PURE__ */
|
|
2613
|
+
content: /* @__PURE__ */ e("div", { className: "space-y-4", children: b ? /* @__PURE__ */ c(he, { children: [
|
|
2614
|
+
/* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
2615
2615
|
/* @__PURE__ */ e(
|
|
2616
2616
|
te,
|
|
2617
2617
|
{
|
|
@@ -2636,7 +2636,7 @@ const ar = ({
|
|
|
2636
2636
|
size: "sm"
|
|
2637
2637
|
}
|
|
2638
2638
|
) }),
|
|
2639
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
|
|
2640
2640
|
/* @__PURE__ */ e(
|
|
2641
2641
|
te,
|
|
2642
2642
|
{
|
|
@@ -2665,12 +2665,12 @@ const ar = ({
|
|
|
2665
2665
|
className: "hidden",
|
|
2666
2666
|
ref: w,
|
|
2667
2667
|
onChange: ae,
|
|
2668
|
-
accept:
|
|
2668
|
+
accept: l
|
|
2669
2669
|
}
|
|
2670
2670
|
)
|
|
2671
2671
|
] })
|
|
2672
2672
|
] }),
|
|
2673
|
-
ce && /* @__PURE__ */
|
|
2673
|
+
ce && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
|
|
2674
2674
|
/* @__PURE__ */ e(Y, { icon: Ae, size: "sm", color: "warning" }),
|
|
2675
2675
|
/* @__PURE__ */ e(
|
|
2676
2676
|
xe,
|
|
@@ -2709,15 +2709,15 @@ const ar = ({
|
|
|
2709
2709
|
{
|
|
2710
2710
|
id: "local",
|
|
2711
2711
|
label: "Local File",
|
|
2712
|
-
content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */
|
|
2712
|
+
content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-border rounded-xl bg-surface-sunk/50", children: [
|
|
2713
2713
|
/* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Y, { icon: ze, size: "xl", color: "primary" }) }),
|
|
2714
2714
|
/* @__PURE__ */ e(ie, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
|
|
2715
|
-
/* @__PURE__ */
|
|
2715
|
+
/* @__PURE__ */ c(ie, { variant: "body", size: "sm", className: "text-text-muted mt-1 mb-6 text-center max-w-xs", children: [
|
|
2716
2716
|
"This file will be used directly in the form and will ",
|
|
2717
2717
|
/* @__PURE__ */ e("strong", { children: "not" }),
|
|
2718
2718
|
" be uploaded to platform storage."
|
|
2719
2719
|
] }),
|
|
2720
|
-
/* @__PURE__ */
|
|
2720
|
+
/* @__PURE__ */ c("label", { className: "cursor-pointer", children: [
|
|
2721
2721
|
/* @__PURE__ */ e(te, { variant: "primary", size: "lg", loading: H, className: "pointer-events-none", children: "Browse Local File" }),
|
|
2722
2722
|
/* @__PURE__ */ e(
|
|
2723
2723
|
"input",
|
|
@@ -2725,7 +2725,7 @@ const ar = ({
|
|
|
2725
2725
|
type: "file",
|
|
2726
2726
|
className: "hidden",
|
|
2727
2727
|
onChange: ee,
|
|
2728
|
-
accept:
|
|
2728
|
+
accept: l,
|
|
2729
2729
|
disabled: H
|
|
2730
2730
|
}
|
|
2731
2731
|
)
|
|
@@ -2750,8 +2750,8 @@ const ar = ({
|
|
|
2750
2750
|
error: n,
|
|
2751
2751
|
size: s = "md",
|
|
2752
2752
|
fullWidth: a = !1,
|
|
2753
|
-
loading:
|
|
2754
|
-
containerClassName:
|
|
2753
|
+
loading: o = !1,
|
|
2754
|
+
containerClassName: l,
|
|
2755
2755
|
labelClassName: u,
|
|
2756
2756
|
className: x,
|
|
2757
2757
|
id: y,
|
|
@@ -2759,7 +2759,7 @@ const ar = ({
|
|
|
2759
2759
|
...m
|
|
2760
2760
|
}, h) => {
|
|
2761
2761
|
const g = le.useId(), N = y || `textarea-${g}`, v = !!n, b = n || r ? `${N}-description` : void 0;
|
|
2762
|
-
return /* @__PURE__ */
|
|
2762
|
+
return /* @__PURE__ */ c("div", { className: d("flex flex-col", a && "w-full", l), children: [
|
|
2763
2763
|
t && /* @__PURE__ */ e(
|
|
2764
2764
|
"label",
|
|
2765
2765
|
{
|
|
@@ -2772,7 +2772,7 @@ const ar = ({
|
|
|
2772
2772
|
children: t
|
|
2773
2773
|
}
|
|
2774
2774
|
),
|
|
2775
|
-
/* @__PURE__ */
|
|
2775
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
2776
2776
|
/* @__PURE__ */ e(
|
|
2777
2777
|
"textarea",
|
|
2778
2778
|
{
|
|
@@ -2794,7 +2794,7 @@ const ar = ({
|
|
|
2794
2794
|
...m
|
|
2795
2795
|
}
|
|
2796
2796
|
),
|
|
2797
|
-
|
|
2797
|
+
o && /* @__PURE__ */ e(
|
|
2798
2798
|
"span",
|
|
2799
2799
|
{
|
|
2800
2800
|
"aria-hidden": !0,
|
|
@@ -2822,31 +2822,31 @@ function Ie(t, r) {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
function or(t, r, n) {
|
|
2824
2824
|
const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
|
|
2825
|
-
let
|
|
2826
|
-
for (let
|
|
2827
|
-
const u = s[
|
|
2828
|
-
|
|
2825
|
+
let o = a;
|
|
2826
|
+
for (let l = 0; l < s.length - 1; l++) {
|
|
2827
|
+
const u = s[l], x = o[u];
|
|
2828
|
+
o[u] = x && typeof x == "object" ? Array.isArray(x) ? [...x] : { ...x } : {}, o = o[u];
|
|
2829
2829
|
}
|
|
2830
|
-
return
|
|
2830
|
+
return o[s[s.length - 1]] = n, a;
|
|
2831
2831
|
}
|
|
2832
2832
|
function cr(t, r) {
|
|
2833
2833
|
const n = r.split("."), s = Array.isArray(t) ? [...t] : { ...t };
|
|
2834
2834
|
let a = s;
|
|
2835
|
-
for (let
|
|
2836
|
-
const
|
|
2837
|
-
if (!a[
|
|
2838
|
-
a[
|
|
2835
|
+
for (let o = 0; o < n.length - 1; o++) {
|
|
2836
|
+
const l = n[o];
|
|
2837
|
+
if (!a[l] || typeof a[l] != "object") return s;
|
|
2838
|
+
a[l] = Array.isArray(a[l]) ? [...a[l]] : { ...a[l] }, a = a[l];
|
|
2839
2839
|
}
|
|
2840
2840
|
return delete a[n[n.length - 1]], s;
|
|
2841
2841
|
}
|
|
2842
|
-
const
|
|
2842
|
+
const en = ({
|
|
2843
2843
|
groups: t,
|
|
2844
2844
|
data: r,
|
|
2845
2845
|
onSubmit: n,
|
|
2846
2846
|
onCancel: s,
|
|
2847
2847
|
onChange: a,
|
|
2848
|
-
transform:
|
|
2849
|
-
validate:
|
|
2848
|
+
transform: o,
|
|
2849
|
+
validate: l,
|
|
2850
2850
|
submitButton: u = { label: "Submit", variant: "primary" },
|
|
2851
2851
|
cancelButton: x = { label: "Cancel", variant: "outline" },
|
|
2852
2852
|
showButtons: y = !0,
|
|
@@ -2923,16 +2923,16 @@ const Qr = ({
|
|
|
2923
2923
|
);
|
|
2924
2924
|
C && (i[T.name] = C);
|
|
2925
2925
|
}
|
|
2926
|
-
if (
|
|
2927
|
-
const T =
|
|
2926
|
+
if (l) {
|
|
2927
|
+
const T = l(b);
|
|
2928
2928
|
T && Object.assign(i, T);
|
|
2929
2929
|
}
|
|
2930
2930
|
if (X(i), Object.keys(i).some((T) => i[T]))
|
|
2931
2931
|
return;
|
|
2932
|
-
const w =
|
|
2932
|
+
const w = o ? o(b) : b;
|
|
2933
2933
|
await n?.(b, w);
|
|
2934
2934
|
},
|
|
2935
|
-
[b, t, H,
|
|
2935
|
+
[b, t, H, l, o, n, h]
|
|
2936
2936
|
), re = de(
|
|
2937
2937
|
(k) => {
|
|
2938
2938
|
const i = Ie(b, k.name), S = $[k.name] ? A[k.name] : void 0, w = k.disabled || h, T = {
|
|
@@ -2999,7 +2999,7 @@ const Qr = ({
|
|
|
2999
2999
|
}
|
|
3000
3000
|
);
|
|
3001
3001
|
case "radio":
|
|
3002
|
-
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: k.options?.map((C) => /* @__PURE__ */
|
|
3002
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: k.options?.map((C) => /* @__PURE__ */ c(
|
|
3003
3003
|
"label",
|
|
3004
3004
|
{
|
|
3005
3005
|
className: "flex cursor-pointer items-center gap-2 text-base text-text",
|
|
@@ -3108,16 +3108,16 @@ const Qr = ({
|
|
|
3108
3108
|
[M]: D
|
|
3109
3109
|
}, P(k.name, E);
|
|
3110
3110
|
};
|
|
3111
|
-
return /* @__PURE__ */
|
|
3112
|
-
C.map((B, M) => /* @__PURE__ */
|
|
3111
|
+
return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
3112
|
+
C.map((B, M) => /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
|
|
3113
3113
|
/* @__PURE__ */ e("div", { className: "grid flex-1 gap-2 sm:grid-cols-2", children: k.arrayFields?.map((D) => {
|
|
3114
3114
|
const E = ee?.[M]?.[D.name];
|
|
3115
|
-
return /* @__PURE__ */
|
|
3115
|
+
return /* @__PURE__ */ c(
|
|
3116
3116
|
"div",
|
|
3117
3117
|
{
|
|
3118
3118
|
className: "flex flex-col gap-1",
|
|
3119
3119
|
children: [
|
|
3120
|
-
M === 0 && /* @__PURE__ */
|
|
3120
|
+
M === 0 && /* @__PURE__ */ c("label", { className: "block text-xs font-semibold uppercase tracking-label text-text-subtle", children: [
|
|
3121
3121
|
D.label,
|
|
3122
3122
|
D.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
|
|
3123
3123
|
] }),
|
|
@@ -3204,7 +3204,7 @@ const Qr = ({
|
|
|
3204
3204
|
}
|
|
3205
3205
|
);
|
|
3206
3206
|
case "radio":
|
|
3207
|
-
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: D.options?.map((R) => /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: D.options?.map((R) => /* @__PURE__ */ c(
|
|
3208
3208
|
"label",
|
|
3209
3209
|
{
|
|
3210
3210
|
className: "flex cursor-pointer items-center gap-2 text-base text-text",
|
|
@@ -3259,7 +3259,7 @@ const Qr = ({
|
|
|
3259
3259
|
});
|
|
3260
3260
|
// Add other field types here as needed
|
|
3261
3261
|
default:
|
|
3262
|
-
return /* @__PURE__ */
|
|
3262
|
+
return /* @__PURE__ */ c("p", { children: [
|
|
3263
3263
|
"Unsupported field type in array:",
|
|
3264
3264
|
" ",
|
|
3265
3265
|
D.type
|
|
@@ -3287,7 +3287,7 @@ const Qr = ({
|
|
|
3287
3287
|
}
|
|
3288
3288
|
)
|
|
3289
3289
|
] }, M)),
|
|
3290
|
-
/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ c(
|
|
3291
3291
|
te,
|
|
3292
3292
|
{
|
|
3293
3293
|
type: "button",
|
|
@@ -3325,16 +3325,16 @@ const Qr = ({
|
|
|
3325
3325
|
},
|
|
3326
3326
|
k.className
|
|
3327
3327
|
);
|
|
3328
|
-
return /* @__PURE__ */
|
|
3328
|
+
return /* @__PURE__ */ c(
|
|
3329
3329
|
"div",
|
|
3330
3330
|
{
|
|
3331
3331
|
className: "flex flex-col gap-4 px-5 py-4 not-first:border-t not-first:border-border-subtle sm:flex-row sm:gap-5",
|
|
3332
3332
|
children: [
|
|
3333
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ c("div", { className: "w-full shrink-0 sm:w-form-label", children: [
|
|
3334
3334
|
/* @__PURE__ */ e("span", { className: "text-sm font-semibold text-text", children: k.title }),
|
|
3335
3335
|
k.description && /* @__PURE__ */ e("p", { className: "mt-1 text-xs leading-4 text-text-subtle", children: k.description })
|
|
3336
3336
|
] }),
|
|
3337
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e("div", { className: S, children: i.map((w) => ($[w.name] && A[w.name], /* @__PURE__ */
|
|
3337
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e("div", { className: S, children: i.map((w) => ($[w.name] && A[w.name], /* @__PURE__ */ c(
|
|
3338
3338
|
"div",
|
|
3339
3339
|
{
|
|
3340
3340
|
className: d(
|
|
@@ -3346,7 +3346,7 @@ const Qr = ({
|
|
|
3346
3346
|
gridColumn: typeof w.width == "number" ? `span ${w.width} / span ${w.width}` : void 0
|
|
3347
3347
|
},
|
|
3348
3348
|
children: [
|
|
3349
|
-
w.type !== "custom" && w.type !== "checkbox" && /* @__PURE__ */
|
|
3349
|
+
w.type !== "custom" && w.type !== "checkbox" && /* @__PURE__ */ c("label", { className: "block text-xs font-semibold uppercase tracking-label text-text-subtle", children: [
|
|
3350
3350
|
w.label,
|
|
3351
3351
|
w.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
|
|
3352
3352
|
] }),
|
|
@@ -3371,10 +3371,10 @@ const Qr = ({
|
|
|
3371
3371
|
},
|
|
3372
3372
|
g
|
|
3373
3373
|
), ce = m === "full" ? "md" : m;
|
|
3374
|
-
return /* @__PURE__ */
|
|
3374
|
+
return /* @__PURE__ */ c("form", { ref: N, onSubmit: F, className: _, children: [
|
|
3375
3375
|
!y && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
|
|
3376
3376
|
/* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(V) }),
|
|
3377
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle bg-surface-sunk px-5 py-3", children: y && /* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle bg-surface-sunk px-5 py-3", children: y && /* @__PURE__ */ c(he, { children: [
|
|
3378
3378
|
/* @__PURE__ */ e("div", { className: "ml-auto" }),
|
|
3379
3379
|
s && /* @__PURE__ */ e(
|
|
3380
3380
|
te,
|
|
@@ -3403,14 +3403,14 @@ const Qr = ({
|
|
|
3403
3403
|
] }) })
|
|
3404
3404
|
] });
|
|
3405
3405
|
};
|
|
3406
|
-
function
|
|
3406
|
+
function tn({
|
|
3407
3407
|
open: t,
|
|
3408
3408
|
title: r,
|
|
3409
3409
|
description: n,
|
|
3410
3410
|
confirmLabel: s = "Bevestigen",
|
|
3411
3411
|
cancelLabel: a = "Annuleren",
|
|
3412
|
-
tone:
|
|
3413
|
-
loading:
|
|
3412
|
+
tone: o = "default",
|
|
3413
|
+
loading: l = !1,
|
|
3414
3414
|
onConfirm: u,
|
|
3415
3415
|
onCancel: x
|
|
3416
3416
|
}) {
|
|
@@ -3421,14 +3421,14 @@ function en({
|
|
|
3421
3421
|
onClose: x,
|
|
3422
3422
|
title: r,
|
|
3423
3423
|
size: "sm",
|
|
3424
|
-
footer: /* @__PURE__ */
|
|
3425
|
-
/* @__PURE__ */ e(te, { variant: "ghost", onClick: x, disabled:
|
|
3424
|
+
footer: /* @__PURE__ */ c("div", { className: "flex w-full items-center justify-end gap-2", children: [
|
|
3425
|
+
/* @__PURE__ */ e(te, { variant: "ghost", onClick: x, disabled: l, children: a }),
|
|
3426
3426
|
/* @__PURE__ */ e(
|
|
3427
3427
|
te,
|
|
3428
3428
|
{
|
|
3429
|
-
variant:
|
|
3429
|
+
variant: o === "danger" ? "destructive" : "primary",
|
|
3430
3430
|
onClick: u,
|
|
3431
|
-
loading:
|
|
3431
|
+
loading: l,
|
|
3432
3432
|
children: s
|
|
3433
3433
|
}
|
|
3434
3434
|
)
|
|
@@ -3461,18 +3461,18 @@ const ir = {
|
|
|
3461
3461
|
info: "bg-info",
|
|
3462
3462
|
note: "bg-note"
|
|
3463
3463
|
};
|
|
3464
|
-
function
|
|
3464
|
+
function rn({
|
|
3465
3465
|
variant: t = "default",
|
|
3466
3466
|
size: r = "md",
|
|
3467
3467
|
dot: n = !1,
|
|
3468
3468
|
icon: s,
|
|
3469
3469
|
dismissible: a = !1,
|
|
3470
|
-
onDismiss:
|
|
3471
|
-
className:
|
|
3470
|
+
onDismiss: o,
|
|
3471
|
+
className: l,
|
|
3472
3472
|
children: u,
|
|
3473
3473
|
...x
|
|
3474
3474
|
}) {
|
|
3475
|
-
return /* @__PURE__ */
|
|
3475
|
+
return /* @__PURE__ */ c(
|
|
3476
3476
|
"span",
|
|
3477
3477
|
{
|
|
3478
3478
|
className: d(
|
|
@@ -3482,7 +3482,7 @@ function tn({
|
|
|
3482
3482
|
ir[t],
|
|
3483
3483
|
// Size styles
|
|
3484
3484
|
dr[r],
|
|
3485
|
-
|
|
3485
|
+
l
|
|
3486
3486
|
),
|
|
3487
3487
|
...x,
|
|
3488
3488
|
children: [
|
|
@@ -3497,10 +3497,10 @@ function tn({
|
|
|
3497
3497
|
),
|
|
3498
3498
|
s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0", u && "mr-1"), children: s }),
|
|
3499
3499
|
u,
|
|
3500
|
-
a &&
|
|
3500
|
+
a && o && /* @__PURE__ */ e(
|
|
3501
3501
|
"button",
|
|
3502
3502
|
{
|
|
3503
|
-
onClick:
|
|
3503
|
+
onClick: o,
|
|
3504
3504
|
className: "ml-1.5 flex-shrink-0 hover:opacity-70 transition-opacity",
|
|
3505
3505
|
"aria-label": "Remove badge",
|
|
3506
3506
|
children: /* @__PURE__ */ e(Y, { icon: ye, size: "xs", color: "current" })
|
|
@@ -3514,23 +3514,23 @@ const mr = {
|
|
|
3514
3514
|
neutral: "bg-surface-hover text-text-muted",
|
|
3515
3515
|
success: "bg-success-soft text-success-fg"
|
|
3516
3516
|
};
|
|
3517
|
-
function
|
|
3517
|
+
function nn({
|
|
3518
3518
|
icon: t,
|
|
3519
3519
|
tone: r = "neutral",
|
|
3520
3520
|
title: n,
|
|
3521
3521
|
description: s,
|
|
3522
3522
|
actions: a,
|
|
3523
|
-
card:
|
|
3524
|
-
className:
|
|
3523
|
+
card: o = !1,
|
|
3524
|
+
className: l,
|
|
3525
3525
|
...u
|
|
3526
3526
|
}) {
|
|
3527
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ c(
|
|
3528
3528
|
"div",
|
|
3529
3529
|
{
|
|
3530
3530
|
className: d(
|
|
3531
3531
|
"flex flex-col items-center gap-2.5 text-center",
|
|
3532
|
-
|
|
3533
|
-
|
|
3532
|
+
o && "rounded-lg border border-border bg-surface px-11 py-9 shadow-overlay",
|
|
3533
|
+
l
|
|
3534
3534
|
),
|
|
3535
3535
|
...u,
|
|
3536
3536
|
children: [
|
|
@@ -3542,7 +3542,7 @@ function rn({
|
|
|
3542
3542
|
}
|
|
3543
3543
|
);
|
|
3544
3544
|
}
|
|
3545
|
-
function
|
|
3545
|
+
function sn({ children: t, className: r, ...n }) {
|
|
3546
3546
|
return /* @__PURE__ */ e(
|
|
3547
3547
|
"kbd",
|
|
3548
3548
|
{
|
|
@@ -3562,13 +3562,13 @@ const fr = {
|
|
|
3562
3562
|
accent: "bg-accent",
|
|
3563
3563
|
success: "bg-success"
|
|
3564
3564
|
};
|
|
3565
|
-
function
|
|
3566
|
-
const
|
|
3565
|
+
function an({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
|
|
3566
|
+
const o = Math.max(0, Math.min(100, t));
|
|
3567
3567
|
return /* @__PURE__ */ e(
|
|
3568
3568
|
"div",
|
|
3569
3569
|
{
|
|
3570
3570
|
role: "progressbar",
|
|
3571
|
-
"aria-valuenow": Math.round(
|
|
3571
|
+
"aria-valuenow": Math.round(o),
|
|
3572
3572
|
"aria-valuemin": 0,
|
|
3573
3573
|
"aria-valuemax": 100,
|
|
3574
3574
|
className: d("w-full overflow-hidden rounded-full bg-surface-hover", fr[n], s),
|
|
@@ -3577,7 +3577,7 @@ function sn({ value: t, variant: r = "accent", size: n = "md", className: s, ...
|
|
|
3577
3577
|
"div",
|
|
3578
3578
|
{
|
|
3579
3579
|
className: d("h-full rounded-full transition-[width] duration-300 ease-out", hr[r]),
|
|
3580
|
-
style: { width: `${
|
|
3580
|
+
style: { width: `${o}%` }
|
|
3581
3581
|
}
|
|
3582
3582
|
)
|
|
3583
3583
|
}
|
|
@@ -3601,15 +3601,15 @@ const xr = {
|
|
|
3601
3601
|
lg: "text-base",
|
|
3602
3602
|
xl: "text-lg"
|
|
3603
3603
|
};
|
|
3604
|
-
function
|
|
3604
|
+
function ln({
|
|
3605
3605
|
size: t = "md",
|
|
3606
3606
|
variant: r = "primary",
|
|
3607
3607
|
label: n = "Loading...",
|
|
3608
3608
|
showLabel: s = !1,
|
|
3609
3609
|
className: a,
|
|
3610
|
-
...
|
|
3610
|
+
...o
|
|
3611
3611
|
}) {
|
|
3612
|
-
return /* @__PURE__ */
|
|
3612
|
+
return /* @__PURE__ */ c(
|
|
3613
3613
|
"div",
|
|
3614
3614
|
{
|
|
3615
3615
|
className: d(
|
|
@@ -3617,9 +3617,9 @@ function an({
|
|
|
3617
3617
|
s ? "flex-col space-y-2" : "",
|
|
3618
3618
|
a
|
|
3619
3619
|
),
|
|
3620
|
-
...
|
|
3620
|
+
...o,
|
|
3621
3621
|
children: [
|
|
3622
|
-
/* @__PURE__ */
|
|
3622
|
+
/* @__PURE__ */ c(
|
|
3623
3623
|
"svg",
|
|
3624
3624
|
{
|
|
3625
3625
|
className: d(
|
|
@@ -3683,7 +3683,7 @@ const pr = {
|
|
|
3683
3683
|
"cat-4": "bg-cat-4",
|
|
3684
3684
|
"cat-5": "bg-cat-5"
|
|
3685
3685
|
};
|
|
3686
|
-
function
|
|
3686
|
+
function on({
|
|
3687
3687
|
tone: t = "neutral",
|
|
3688
3688
|
shape: r = "round",
|
|
3689
3689
|
pulse: n = !1,
|
|
@@ -3706,35 +3706,35 @@ function ln({
|
|
|
3706
3706
|
}
|
|
3707
3707
|
);
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function cn({
|
|
3710
3710
|
steps: t,
|
|
3711
3711
|
current: r,
|
|
3712
3712
|
variant: n = "numbered",
|
|
3713
3713
|
label: s,
|
|
3714
3714
|
className: a
|
|
3715
3715
|
}) {
|
|
3716
|
-
const
|
|
3717
|
-
return n === "dots" ? /* @__PURE__ */ e("div", { ...
|
|
3716
|
+
const o = t.indexOf(r), l = { role: s ? "group" : void 0, "aria-label": s, "aria-hidden": s ? void 0 : !0 };
|
|
3717
|
+
return n === "dots" ? /* @__PURE__ */ e("div", { ...l, className: d("flex items-center gap-1.5", a), children: t.map((u, x) => /* @__PURE__ */ e(
|
|
3718
3718
|
"span",
|
|
3719
3719
|
{
|
|
3720
3720
|
className: d(
|
|
3721
3721
|
"h-step-bar rounded-full transition-all duration-fast ease-out",
|
|
3722
|
-
x ===
|
|
3723
|
-
x <
|
|
3724
|
-
x >
|
|
3722
|
+
x === o ? "w-5 bg-accent" : "w-3.5",
|
|
3723
|
+
x < o && "bg-border-strong",
|
|
3724
|
+
x > o && "bg-border"
|
|
3725
3725
|
)
|
|
3726
3726
|
},
|
|
3727
3727
|
u
|
|
3728
|
-
)) }) : /* @__PURE__ */ e("div", { ...
|
|
3728
|
+
)) }) : /* @__PURE__ */ e("div", { ...l, className: d("flex items-center gap-2", a), children: t.map((u, x) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
3729
3729
|
/* @__PURE__ */ e(
|
|
3730
3730
|
"span",
|
|
3731
3731
|
{
|
|
3732
|
-
"aria-current": x ===
|
|
3732
|
+
"aria-current": x === o ? "step" : void 0,
|
|
3733
3733
|
className: d(
|
|
3734
3734
|
"flex size-tile-sm items-center justify-center rounded-full text-xs font-medium",
|
|
3735
|
-
x ===
|
|
3736
|
-
x <
|
|
3737
|
-
x >
|
|
3735
|
+
x === o && "bg-accent text-accent-fg",
|
|
3736
|
+
x < o && "bg-accent-soft text-accent",
|
|
3737
|
+
x > o && "bg-surface-hover text-text-muted"
|
|
3738
3738
|
),
|
|
3739
3739
|
children: x + 1
|
|
3740
3740
|
}
|
|
@@ -3742,8 +3742,8 @@ function on({
|
|
|
3742
3742
|
x < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
|
|
3743
3743
|
] }, u)) });
|
|
3744
3744
|
}
|
|
3745
|
-
function
|
|
3746
|
-
return /* @__PURE__ */
|
|
3745
|
+
function dn({ title: t, icon: r = /* @__PURE__ */ e(lt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...o }) {
|
|
3746
|
+
return /* @__PURE__ */ c(
|
|
3747
3747
|
"div",
|
|
3748
3748
|
{
|
|
3749
3749
|
className: d(
|
|
@@ -3751,9 +3751,9 @@ function cn({ title: t, icon: r = /* @__PURE__ */ e(lt, { className: "size-icon-
|
|
|
3751
3751
|
"border-assistant-border bg-assistant-soft",
|
|
3752
3752
|
a
|
|
3753
3753
|
),
|
|
3754
|
-
...
|
|
3754
|
+
...o,
|
|
3755
3755
|
children: [
|
|
3756
|
-
/* @__PURE__ */
|
|
3756
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-assistant", children: [
|
|
3757
3757
|
/* @__PURE__ */ e("span", { "aria-hidden": !0, children: r }),
|
|
3758
3758
|
/* @__PURE__ */ e("span", { className: "text-sm font-semibold", children: t }),
|
|
3759
3759
|
n && /* @__PURE__ */ e("span", { className: "ml-auto", children: n })
|
|
@@ -3775,41 +3775,41 @@ function yr(t) {
|
|
|
3775
3775
|
return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
|
|
3776
3776
|
}
|
|
3777
3777
|
const Nr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
3778
|
-
const [
|
|
3778
|
+
const [o, l] = le.useState(!1), u = d(
|
|
3779
3779
|
"inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none bg-surface-hover text-text",
|
|
3780
3780
|
vr[n],
|
|
3781
3781
|
s
|
|
3782
3782
|
);
|
|
3783
|
-
return r && !
|
|
3783
|
+
return r && !o ? /* @__PURE__ */ e(
|
|
3784
3784
|
"img",
|
|
3785
3785
|
{
|
|
3786
3786
|
src: r,
|
|
3787
3787
|
alt: t ?? "",
|
|
3788
3788
|
title: a ?? t,
|
|
3789
3789
|
className: d(u, "object-cover"),
|
|
3790
|
-
onError: () =>
|
|
3790
|
+
onError: () => l(!0)
|
|
3791
3791
|
}
|
|
3792
3792
|
) : /* @__PURE__ */ e("span", { className: u, title: a ?? t, "aria-label": t, children: yr(t) });
|
|
3793
|
-
}, je = "ring-surface", wr = "ring-surface-accent",
|
|
3793
|
+
}, je = "ring-surface", wr = "ring-surface-accent", un = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
|
|
3794
3794
|
if (t.length === 0) return null;
|
|
3795
|
-
const a = t.slice(0, r),
|
|
3796
|
-
return /* @__PURE__ */
|
|
3797
|
-
a.map((
|
|
3795
|
+
const a = t.slice(0, r), o = t.length - a.length;
|
|
3796
|
+
return /* @__PURE__ */ c("span", { className: d("inline-flex items-center", s), children: [
|
|
3797
|
+
a.map((l, u) => /* @__PURE__ */ e(
|
|
3798
3798
|
Nr,
|
|
3799
3799
|
{
|
|
3800
|
-
name:
|
|
3801
|
-
src:
|
|
3800
|
+
name: l.name,
|
|
3801
|
+
src: l.src,
|
|
3802
3802
|
size: n,
|
|
3803
|
-
title:
|
|
3803
|
+
title: l.name ? l.seen === !1 ? `${l.name} — nog niet gelezen` : l.name : void 0,
|
|
3804
3804
|
className: d(
|
|
3805
3805
|
u > 0 && "-ml-2",
|
|
3806
|
-
|
|
3807
|
-
|
|
3806
|
+
l.owner ? wr : je,
|
|
3807
|
+
l.seen === !1 && "opacity-40"
|
|
3808
3808
|
)
|
|
3809
3809
|
},
|
|
3810
|
-
|
|
3810
|
+
l.id ?? `${l.name}-${u}`
|
|
3811
3811
|
)),
|
|
3812
|
-
|
|
3812
|
+
o > 0 && /* @__PURE__ */ c(
|
|
3813
3813
|
"span",
|
|
3814
3814
|
{
|
|
3815
3815
|
className: d(
|
|
@@ -3819,7 +3819,7 @@ const Nr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
|
3819
3819
|
),
|
|
3820
3820
|
children: [
|
|
3821
3821
|
"+",
|
|
3822
|
-
|
|
3822
|
+
o
|
|
3823
3823
|
]
|
|
3824
3824
|
}
|
|
3825
3825
|
)
|
|
@@ -3835,8 +3835,8 @@ const Nr = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
|
|
|
3835
3835
|
md: "size-avatar-sm rounded-md text-xs",
|
|
3836
3836
|
lg: "size-avatar-lg rounded-md text-base"
|
|
3837
3837
|
};
|
|
3838
|
-
function
|
|
3839
|
-
const
|
|
3838
|
+
function mn({ channel: t, children: r, size: n = "md", className: s, title: a }) {
|
|
3839
|
+
const o = Pe[t in Pe ? t : "note"];
|
|
3840
3840
|
return /* @__PURE__ */ e(
|
|
3841
3841
|
"span",
|
|
3842
3842
|
{
|
|
@@ -3844,22 +3844,22 @@ function un({ channel: t, children: r, size: n = "md", className: s, title: a })
|
|
|
3844
3844
|
className: d(
|
|
3845
3845
|
"inline-flex shrink-0 items-center justify-center font-bold",
|
|
3846
3846
|
kr[n],
|
|
3847
|
-
|
|
3848
|
-
|
|
3847
|
+
o.fg,
|
|
3848
|
+
o.bg,
|
|
3849
3849
|
s
|
|
3850
3850
|
),
|
|
3851
3851
|
children: r
|
|
3852
3852
|
}
|
|
3853
3853
|
);
|
|
3854
3854
|
}
|
|
3855
|
-
const
|
|
3855
|
+
const fn = ({
|
|
3856
3856
|
src: t,
|
|
3857
3857
|
alt: r,
|
|
3858
3858
|
size: n = "md",
|
|
3859
3859
|
aspectRatio: s = "auto",
|
|
3860
3860
|
radius: a = "md",
|
|
3861
|
-
showLoading:
|
|
3862
|
-
showError:
|
|
3861
|
+
showLoading: o = !0,
|
|
3862
|
+
showError: l = !0,
|
|
3863
3863
|
fallback: u,
|
|
3864
3864
|
loadingContent: x,
|
|
3865
3865
|
errorContent: y,
|
|
@@ -3913,11 +3913,11 @@ const mn = ({
|
|
|
3913
3913
|
), F = d(
|
|
3914
3914
|
"absolute inset-0 flex items-center justify-center",
|
|
3915
3915
|
"text-text-muted"
|
|
3916
|
-
), re = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), V = /* @__PURE__ */
|
|
3916
|
+
), re = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), V = /* @__PURE__ */ c("div", { className: "text-center", children: [
|
|
3917
3917
|
/* @__PURE__ */ e(Y, { icon: ot, size: "lg", className: "mx-auto mb-1" }),
|
|
3918
3918
|
/* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
|
|
3919
3919
|
] });
|
|
3920
|
-
return /* @__PURE__ */
|
|
3920
|
+
return /* @__PURE__ */ c("div", { className: H, children: [
|
|
3921
3921
|
/* @__PURE__ */ e(
|
|
3922
3922
|
"img",
|
|
3923
3923
|
{
|
|
@@ -3929,18 +3929,18 @@ const mn = ({
|
|
|
3929
3929
|
onError: Z
|
|
3930
3930
|
}
|
|
3931
3931
|
),
|
|
3932
|
-
N &&
|
|
3933
|
-
b &&
|
|
3932
|
+
N && o && /* @__PURE__ */ e("div", { className: F, children: x || re }),
|
|
3933
|
+
b && l && /* @__PURE__ */ e("div", { className: F, children: y || V })
|
|
3934
3934
|
] });
|
|
3935
3935
|
};
|
|
3936
|
-
function
|
|
3936
|
+
function hn({
|
|
3937
3937
|
items: t,
|
|
3938
3938
|
getRowKey: r,
|
|
3939
3939
|
variant: n = "divided",
|
|
3940
3940
|
leading: s,
|
|
3941
3941
|
renderItem: a,
|
|
3942
|
-
trailing:
|
|
3943
|
-
onSelect:
|
|
3942
|
+
trailing: o,
|
|
3943
|
+
onSelect: l,
|
|
3944
3944
|
onActiveIndexChange: u,
|
|
3945
3945
|
isActive: x,
|
|
3946
3946
|
unread: y,
|
|
@@ -3987,7 +3987,7 @@ function fn({
|
|
|
3987
3987
|
_
|
|
3988
3988
|
);
|
|
3989
3989
|
if (re)
|
|
3990
|
-
return /* @__PURE__ */ e("div", { className: ne, children: Array.from({ length: V }).map((E, q) => /* @__PURE__ */
|
|
3990
|
+
return /* @__PURE__ */ e("div", { className: ne, children: Array.from({ length: V }).map((E, q) => /* @__PURE__ */ c(
|
|
3991
3991
|
"div",
|
|
3992
3992
|
{
|
|
3993
3993
|
className: d(
|
|
@@ -4007,26 +4007,26 @@ function fn({
|
|
|
4007
4007
|
return /* @__PURE__ */ e("div", { className: ne, children: F });
|
|
4008
4008
|
const K = t.length > 0 && A.length === t.length, B = A.length > 0 && !K, M = (E, q, R) => {
|
|
4009
4009
|
const W = x?.(E, q) ?? !1, z = y?.(E, q) ?? !1, I = f?.(E, q) ?? !1, p = L && C(E);
|
|
4010
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ c(
|
|
4011
4011
|
"li",
|
|
4012
4012
|
{
|
|
4013
|
-
...
|
|
4013
|
+
...l ? {
|
|
4014
4014
|
role: "button",
|
|
4015
4015
|
tabIndex: 0,
|
|
4016
4016
|
"data-list-row": "",
|
|
4017
4017
|
"aria-current": W || void 0,
|
|
4018
|
-
onClick: () =>
|
|
4018
|
+
onClick: () => l(E, q),
|
|
4019
4019
|
onFocus: () => u?.(q),
|
|
4020
4020
|
onKeyDown: (O) => {
|
|
4021
|
-
O.key !== "Enter" && O.key !== " " || (O.preventDefault(),
|
|
4021
|
+
O.key !== "Enter" && O.key !== " " || (O.preventDefault(), l(E, q));
|
|
4022
4022
|
}
|
|
4023
4023
|
} : {},
|
|
4024
4024
|
className: d(
|
|
4025
4025
|
"flex items-center gap-3 px-4 py-2 text-base",
|
|
4026
4026
|
"transition-colors duration-fast ease-out",
|
|
4027
4027
|
n === "divided" && !R && "border-t border-border-subtle",
|
|
4028
|
-
|
|
4029
|
-
W || p ? "bg-accent-soft text-text" :
|
|
4028
|
+
l && "cursor-pointer focus-visible:outline-none focus-visible:focus-ring",
|
|
4029
|
+
W || p ? "bg-accent-soft text-text" : l && "hover:bg-surface-hover",
|
|
4030
4030
|
z && "font-bold",
|
|
4031
4031
|
I && "opacity-55"
|
|
4032
4032
|
),
|
|
@@ -4048,7 +4048,7 @@ function fn({
|
|
|
4048
4048
|
),
|
|
4049
4049
|
s && /* @__PURE__ */ e("span", { className: "shrink-0", children: s(E, q) }),
|
|
4050
4050
|
/* @__PURE__ */ e("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: a ? a(E, q) : String(E) }),
|
|
4051
|
-
|
|
4051
|
+
o && /* @__PURE__ */ e("span", { className: "shrink-0 text-xs text-text-subtle", children: o(E, q) })
|
|
4052
4052
|
]
|
|
4053
4053
|
},
|
|
4054
4054
|
T(E, q)
|
|
@@ -4081,7 +4081,7 @@ function fn({
|
|
|
4081
4081
|
),
|
|
4082
4082
|
"aria-expanded": v ? !p : void 0,
|
|
4083
4083
|
style: N ? { top: H ? 28 : 0 } : void 0,
|
|
4084
|
-
children: g ? g(W, I.map((j) => j.item)) : /* @__PURE__ */
|
|
4084
|
+
children: g ? g(W, I.map((j) => j.item)) : /* @__PURE__ */ c(he, { children: [
|
|
4085
4085
|
v && /* @__PURE__ */ e(
|
|
4086
4086
|
we,
|
|
4087
4087
|
{
|
|
@@ -4106,8 +4106,8 @@ function fn({
|
|
|
4106
4106
|
];
|
|
4107
4107
|
});
|
|
4108
4108
|
})();
|
|
4109
|
-
return /* @__PURE__ */
|
|
4110
|
-
L && A.length > 0 && /* @__PURE__ */
|
|
4109
|
+
return /* @__PURE__ */ c("div", { ref: S, className: ne, onKeyDown: l ? w : void 0, children: [
|
|
4110
|
+
L && A.length > 0 && /* @__PURE__ */ c("div", { className: "flex items-center gap-3 border-b border-border-subtle bg-surface-sunk px-4 py-2", children: [
|
|
4111
4111
|
/* @__PURE__ */ e(
|
|
4112
4112
|
be,
|
|
4113
4113
|
{
|
|
@@ -4117,7 +4117,7 @@ function fn({
|
|
|
4117
4117
|
"aria-label": "Alles selecteren"
|
|
4118
4118
|
}
|
|
4119
4119
|
),
|
|
4120
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ c("span", { className: "text-xs text-text-subtle", children: [
|
|
4121
4121
|
A.length,
|
|
4122
4122
|
" geselecteerd"
|
|
4123
4123
|
] }),
|
|
@@ -4137,7 +4137,7 @@ function fn({
|
|
|
4137
4137
|
/* @__PURE__ */ e("ul", { "aria-label": ce, className: "flex flex-col", children: D })
|
|
4138
4138
|
] });
|
|
4139
4139
|
}
|
|
4140
|
-
function
|
|
4140
|
+
function xn({
|
|
4141
4141
|
side: t,
|
|
4142
4142
|
continued: r = !1,
|
|
4143
4143
|
tone: n = "default",
|
|
@@ -4173,20 +4173,20 @@ const Cr = {
|
|
|
4173
4173
|
urgent: "border-danger-border",
|
|
4174
4174
|
success: "border-border"
|
|
4175
4175
|
};
|
|
4176
|
-
function
|
|
4177
|
-
return /* @__PURE__ */
|
|
4176
|
+
function bn({ value: t, label: r, tone: n = "default", className: s, ...a }) {
|
|
4177
|
+
return /* @__PURE__ */ c("div", { className: d("rounded-xl border bg-surface px-4 py-3.5", Sr[n], s), ...a, children: [
|
|
4178
4178
|
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Cr[n]), children: t }),
|
|
4179
4179
|
/* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
|
|
4180
4180
|
] });
|
|
4181
4181
|
}
|
|
4182
|
-
const
|
|
4182
|
+
const gn = ({
|
|
4183
4183
|
surface: t = !1,
|
|
4184
4184
|
title: r,
|
|
4185
4185
|
subtitle: n,
|
|
4186
4186
|
meta: s,
|
|
4187
4187
|
actions: a = [],
|
|
4188
|
-
children:
|
|
4189
|
-
className:
|
|
4188
|
+
children: o,
|
|
4189
|
+
className: l,
|
|
4190
4190
|
backLabel: u = "Back",
|
|
4191
4191
|
backClassName: x,
|
|
4192
4192
|
onBack: y,
|
|
@@ -4206,20 +4206,20 @@ const bn = ({
|
|
|
4206
4206
|
}, X = ($) => {
|
|
4207
4207
|
$.key === "Enter" ? b.current?.blur() : $.key === "Escape" && (v(r), g(!1));
|
|
4208
4208
|
};
|
|
4209
|
-
return /* @__PURE__ */
|
|
4209
|
+
return /* @__PURE__ */ c(
|
|
4210
4210
|
"div",
|
|
4211
4211
|
{
|
|
4212
4212
|
className: d(
|
|
4213
4213
|
"p-5 pb-3",
|
|
4214
4214
|
// App-bar treatment: own background, full-bleed, closed with a rule.
|
|
4215
4215
|
t && "bg-surface border-b border-border",
|
|
4216
|
-
|
|
4216
|
+
l
|
|
4217
4217
|
),
|
|
4218
4218
|
children: [
|
|
4219
|
-
/* @__PURE__ */
|
|
4220
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */
|
|
4219
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
|
|
4220
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c("div", { className: "flex items-start gap-4 text-text", children: [
|
|
4221
4221
|
y && /* @__PURE__ */ e(te, { variant: "secondary", onClick: y, leftIcon: /* @__PURE__ */ e(Y, { icon: Ne, size: "sm" }), iconOnly: !0 }),
|
|
4222
|
-
/* @__PURE__ */
|
|
4222
|
+
/* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
|
|
4223
4223
|
h ? /* @__PURE__ */ e(
|
|
4224
4224
|
"input",
|
|
4225
4225
|
{
|
|
@@ -4231,7 +4231,7 @@ const bn = ({
|
|
|
4231
4231
|
onKeyDown: X,
|
|
4232
4232
|
className: "text-1xl font-semibold bg-transparent border-b-1 border-border rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0 w-full"
|
|
4233
4233
|
}
|
|
4234
|
-
) : /* @__PURE__ */
|
|
4234
|
+
) : /* @__PURE__ */ c("div", { className: "group flex items-baseline gap-2.5 min-w-0", children: [
|
|
4235
4235
|
/* @__PURE__ */ e(
|
|
4236
4236
|
"h2",
|
|
4237
4237
|
{
|
|
@@ -4284,20 +4284,26 @@ const bn = ({
|
|
|
4284
4284
|
)
|
|
4285
4285
|
) })
|
|
4286
4286
|
] }),
|
|
4287
|
-
|
|
4287
|
+
o && /* @__PURE__ */ e("div", { className: "mt-4", children: o })
|
|
4288
4288
|
]
|
|
4289
4289
|
}
|
|
4290
4290
|
);
|
|
4291
|
-
},
|
|
4291
|
+
}, zr = {
|
|
4292
|
+
none: "px-0",
|
|
4293
|
+
sm: "px-2",
|
|
4294
|
+
md: "px-4",
|
|
4295
|
+
lg: "px-6"
|
|
4296
|
+
}, pn = ({
|
|
4292
4297
|
actions: t = [],
|
|
4293
4298
|
onBack: r,
|
|
4294
4299
|
backLabel: n = "Back",
|
|
4295
4300
|
className: s,
|
|
4296
|
-
|
|
4297
|
-
|
|
4301
|
+
padding: a = "md",
|
|
4302
|
+
children: o
|
|
4303
|
+
}) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2 mb-3", zr[a], s), children: [
|
|
4298
4304
|
r && /* @__PURE__ */ e(te, { variant: "secondary", onClick: r, leftIcon: /* @__PURE__ */ e(Y, { icon: Ne, size: "sm" }), iconOnly: !0 }),
|
|
4299
|
-
|
|
4300
|
-
t.length > 0 && /* @__PURE__ */ e("div", { className: d("flex flex-wrap gap-2", !
|
|
4305
|
+
o && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: o }),
|
|
4306
|
+
t.length > 0 && /* @__PURE__ */ e("div", { className: d("flex flex-wrap gap-2", !o && "ml-auto"), children: t.map(
|
|
4301
4307
|
(l) => l.splitOptions && l.splitOptions.length > 0 ? /* @__PURE__ */ e(
|
|
4302
4308
|
Oe,
|
|
4303
4309
|
{
|
|
@@ -4314,8 +4320,8 @@ const bn = ({
|
|
|
4314
4320
|
{
|
|
4315
4321
|
variant: l.variant ?? "secondary",
|
|
4316
4322
|
size: "sm",
|
|
4317
|
-
onClick: (
|
|
4318
|
-
|
|
4323
|
+
onClick: (u) => {
|
|
4324
|
+
u.stopPropagation(), u.target.blur(), l.onClick();
|
|
4319
4325
|
},
|
|
4320
4326
|
disabled: l.disabled,
|
|
4321
4327
|
leftIcon: l.icon,
|
|
@@ -4325,34 +4331,34 @@ const bn = ({
|
|
|
4325
4331
|
)
|
|
4326
4332
|
) })
|
|
4327
4333
|
] });
|
|
4328
|
-
function
|
|
4334
|
+
function vn({ label: t, trailing: r, align: n = "center", className: s }) {
|
|
4329
4335
|
const a = /* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border-subtle", "aria-hidden": !0 });
|
|
4330
|
-
return !t && !r ? /* @__PURE__ */ e("div", { className: d("flex items-center py-2", s), children: a }) : /* @__PURE__ */
|
|
4336
|
+
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: [
|
|
4331
4337
|
n === "center" && a,
|
|
4332
4338
|
/* @__PURE__ */ e("span", { className: "shrink-0 text-xs font-medium text-text-muted", children: t }),
|
|
4333
4339
|
a,
|
|
4334
4340
|
r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
|
|
4335
4341
|
] });
|
|
4336
4342
|
}
|
|
4337
|
-
function
|
|
4343
|
+
function yn({
|
|
4338
4344
|
label: t,
|
|
4339
4345
|
description: r,
|
|
4340
4346
|
control: n,
|
|
4341
4347
|
bordered: s = !1,
|
|
4342
4348
|
disabled: a = !1,
|
|
4343
|
-
className:
|
|
4349
|
+
className: o
|
|
4344
4350
|
}) {
|
|
4345
|
-
return /* @__PURE__ */
|
|
4351
|
+
return /* @__PURE__ */ c(
|
|
4346
4352
|
"div",
|
|
4347
4353
|
{
|
|
4348
4354
|
className: d(
|
|
4349
4355
|
"flex items-center justify-between gap-4 py-2",
|
|
4350
4356
|
s && "rounded-lg border border-border px-3",
|
|
4351
4357
|
a && "opacity-50",
|
|
4352
|
-
|
|
4358
|
+
o
|
|
4353
4359
|
),
|
|
4354
4360
|
children: [
|
|
4355
|
-
/* @__PURE__ */
|
|
4361
|
+
/* @__PURE__ */ c("div", { className: "min-w-0", children: [
|
|
4356
4362
|
/* @__PURE__ */ e("div", { className: "text-sm text-text", children: t }),
|
|
4357
4363
|
r && /* @__PURE__ */ e("div", { className: "text-xs text-text-muted", children: r })
|
|
4358
4364
|
] }),
|
|
@@ -4361,18 +4367,18 @@ function vn({
|
|
|
4361
4367
|
}
|
|
4362
4368
|
);
|
|
4363
4369
|
}
|
|
4364
|
-
function
|
|
4370
|
+
function Nn({
|
|
4365
4371
|
icon: t,
|
|
4366
4372
|
title: r,
|
|
4367
4373
|
description: n,
|
|
4368
4374
|
actions: s,
|
|
4369
4375
|
children: a,
|
|
4370
|
-
className:
|
|
4376
|
+
className: o
|
|
4371
4377
|
}) {
|
|
4372
|
-
return /* @__PURE__ */
|
|
4373
|
-
/* @__PURE__ */
|
|
4378
|
+
return /* @__PURE__ */ c("section", { className: d("flex flex-col gap-2", o), children: [
|
|
4379
|
+
/* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
|
|
4374
4380
|
t && /* @__PURE__ */ e(Y, { icon: t, size: "md", color: "secondary", className: "mt-0.5" }),
|
|
4375
|
-
/* @__PURE__ */
|
|
4381
|
+
/* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
|
|
4376
4382
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-text", children: r }),
|
|
4377
4383
|
n && /* @__PURE__ */ e("p", { className: "text-xs text-text-muted", children: n })
|
|
4378
4384
|
] }),
|
|
@@ -4381,8 +4387,8 @@ function yn({
|
|
|
4381
4387
|
/* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
|
|
4382
4388
|
] });
|
|
4383
4389
|
}
|
|
4384
|
-
function
|
|
4385
|
-
return /* @__PURE__ */
|
|
4390
|
+
function wn({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
4391
|
+
return /* @__PURE__ */ c(
|
|
4386
4392
|
"button",
|
|
4387
4393
|
{
|
|
4388
4394
|
type: "button",
|
|
@@ -4399,13 +4405,13 @@ function Nn({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
|
4399
4405
|
}
|
|
4400
4406
|
);
|
|
4401
4407
|
}
|
|
4402
|
-
function
|
|
4408
|
+
function Er(t, r) {
|
|
4403
4409
|
return r.split(".").reduce(
|
|
4404
4410
|
(n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
|
|
4405
4411
|
t
|
|
4406
4412
|
);
|
|
4407
4413
|
}
|
|
4408
|
-
const
|
|
4414
|
+
const kn = ({
|
|
4409
4415
|
groups: t,
|
|
4410
4416
|
data: r,
|
|
4411
4417
|
size: n = "md",
|
|
@@ -4422,13 +4428,13 @@ const wn = ({
|
|
|
4422
4428
|
} catch {
|
|
4423
4429
|
return String(f);
|
|
4424
4430
|
}
|
|
4425
|
-
},
|
|
4431
|
+
}, o = (f) => f ? "Ja" : "Nee", l = (f, m) => {
|
|
4426
4432
|
if (!m) return String(f || "-");
|
|
4427
4433
|
const h = m.find((g) => g.value === f);
|
|
4428
4434
|
return h ? h.label : String(f || "-");
|
|
4429
4435
|
}, u = de(
|
|
4430
4436
|
(f) => {
|
|
4431
|
-
const m =
|
|
4437
|
+
const m = Er(r, f.name);
|
|
4432
4438
|
if (f.type === "array") {
|
|
4433
4439
|
const g = m;
|
|
4434
4440
|
return !g || g.length === 0 ? /* @__PURE__ */ e(
|
|
@@ -4439,12 +4445,12 @@ const wn = ({
|
|
|
4439
4445
|
className: "text-text-muted",
|
|
4440
4446
|
children: "Geen items"
|
|
4441
4447
|
}
|
|
4442
|
-
) : /* @__PURE__ */ e("div", { className: "space-y-3", children: g.map((N, v) => /* @__PURE__ */
|
|
4448
|
+
) : /* @__PURE__ */ e("div", { className: "space-y-3", children: g.map((N, v) => /* @__PURE__ */ c(
|
|
4443
4449
|
"div",
|
|
4444
4450
|
{
|
|
4445
4451
|
className: "p-4 border border-border rounded-xl space-y-3",
|
|
4446
4452
|
children: [
|
|
4447
|
-
/* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */
|
|
4453
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ c(
|
|
4448
4454
|
ie,
|
|
4449
4455
|
{
|
|
4450
4456
|
variant: "label",
|
|
@@ -4472,13 +4478,13 @@ const wn = ({
|
|
|
4472
4478
|
break;
|
|
4473
4479
|
case "select":
|
|
4474
4480
|
case "radio":
|
|
4475
|
-
A =
|
|
4481
|
+
A = l(
|
|
4476
4482
|
L,
|
|
4477
4483
|
b.options
|
|
4478
4484
|
);
|
|
4479
4485
|
break;
|
|
4480
4486
|
case "checkbox":
|
|
4481
|
-
A =
|
|
4487
|
+
A = o(L);
|
|
4482
4488
|
break;
|
|
4483
4489
|
case "date":
|
|
4484
4490
|
A = a(L);
|
|
@@ -4491,7 +4497,7 @@ const wn = ({
|
|
|
4491
4497
|
default:
|
|
4492
4498
|
A = String(L || "-");
|
|
4493
4499
|
}
|
|
4494
|
-
return b.format && (A = b.format(L, N)), /* @__PURE__ */
|
|
4500
|
+
return b.format && (A = b.format(L, N)), /* @__PURE__ */ c("div", { className: "space-y-1", children: [
|
|
4495
4501
|
/* @__PURE__ */ e(
|
|
4496
4502
|
ie,
|
|
4497
4503
|
{
|
|
@@ -4546,10 +4552,10 @@ const wn = ({
|
|
|
4546
4552
|
break;
|
|
4547
4553
|
case "select":
|
|
4548
4554
|
case "radio":
|
|
4549
|
-
h =
|
|
4555
|
+
h = l(m, f.options);
|
|
4550
4556
|
break;
|
|
4551
4557
|
case "checkbox":
|
|
4552
|
-
h =
|
|
4558
|
+
h = o(m);
|
|
4553
4559
|
break;
|
|
4554
4560
|
case "date":
|
|
4555
4561
|
h = a(m);
|
|
@@ -4588,12 +4594,12 @@ const wn = ({
|
|
|
4588
4594
|
},
|
|
4589
4595
|
f.className
|
|
4590
4596
|
);
|
|
4591
|
-
return /* @__PURE__ */
|
|
4597
|
+
return /* @__PURE__ */ c(
|
|
4592
4598
|
"div",
|
|
4593
4599
|
{
|
|
4594
4600
|
className: "grid grid-cols-1 md:grid-cols-3 gap-8 p-6 border border-border rounded-xl",
|
|
4595
4601
|
children: [
|
|
4596
|
-
/* @__PURE__ */
|
|
4602
|
+
/* @__PURE__ */ c("div", { className: "md:col-span-1", children: [
|
|
4597
4603
|
/* @__PURE__ */ e(
|
|
4598
4604
|
ie,
|
|
4599
4605
|
{
|
|
@@ -4614,7 +4620,7 @@ const wn = ({
|
|
|
4614
4620
|
}
|
|
4615
4621
|
)
|
|
4616
4622
|
] }),
|
|
4617
|
-
/* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: h, children: m.map((g) => /* @__PURE__ */
|
|
4623
|
+
/* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: h, children: m.map((g) => /* @__PURE__ */ c(
|
|
4618
4624
|
"div",
|
|
4619
4625
|
{
|
|
4620
4626
|
className: "space-y-1",
|
|
@@ -4655,9 +4661,9 @@ const wn = ({
|
|
|
4655
4661
|
);
|
|
4656
4662
|
return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(x) }) });
|
|
4657
4663
|
}, Ve = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
|
|
4658
|
-
const a = !!(t.children && t.children.length > 0),
|
|
4659
|
-
return a ? /* @__PURE__ */
|
|
4660
|
-
/* @__PURE__ */
|
|
4664
|
+
const a = !!(t.children && t.children.length > 0), o = r ? r(t.path) : !1;
|
|
4665
|
+
return a ? /* @__PURE__ */ c("li", { children: [
|
|
4666
|
+
/* @__PURE__ */ c(
|
|
4661
4667
|
"div",
|
|
4662
4668
|
{
|
|
4663
4669
|
className: d(
|
|
@@ -4669,30 +4675,30 @@ const wn = ({
|
|
|
4669
4675
|
]
|
|
4670
4676
|
}
|
|
4671
4677
|
),
|
|
4672
|
-
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-0.5", children: t.children?.map((
|
|
4678
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-0.5", children: t.children?.map((l, u) => /* @__PURE__ */ e(
|
|
4673
4679
|
Ve,
|
|
4674
4680
|
{
|
|
4675
|
-
item:
|
|
4681
|
+
item: l,
|
|
4676
4682
|
isSelectedHandler: r,
|
|
4677
4683
|
onClick: n,
|
|
4678
4684
|
depth: s + 1
|
|
4679
4685
|
},
|
|
4680
4686
|
u
|
|
4681
4687
|
)) })
|
|
4682
|
-
] }) : /* @__PURE__ */ e("li", { children: /* @__PURE__ */
|
|
4688
|
+
] }) : /* @__PURE__ */ e("li", { children: /* @__PURE__ */ c(
|
|
4683
4689
|
"div",
|
|
4684
4690
|
{
|
|
4685
4691
|
role: "button",
|
|
4686
4692
|
tabIndex: 0,
|
|
4687
4693
|
onClick: () => t.path && n?.(t.path),
|
|
4688
|
-
onKeyDown: (
|
|
4689
|
-
(
|
|
4694
|
+
onKeyDown: (l) => {
|
|
4695
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), t.path && n?.(t.path));
|
|
4690
4696
|
},
|
|
4691
4697
|
className: d(
|
|
4692
4698
|
"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-base no-underline",
|
|
4693
4699
|
"transition-colors duration-fast ease-out",
|
|
4694
4700
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
4695
|
-
|
|
4701
|
+
o ? "bg-accent-soft font-semibold text-accent" : "text-text-muted hover:bg-surface-hover hover:text-text"
|
|
4696
4702
|
),
|
|
4697
4703
|
children: [
|
|
4698
4704
|
t.icon && /* @__PURE__ */ e("span", { className: "flex w-5 shrink-0 items-center justify-center", children: t.icon }),
|
|
@@ -4702,7 +4708,7 @@ const wn = ({
|
|
|
4702
4708
|
{
|
|
4703
4709
|
className: d(
|
|
4704
4710
|
"shrink-0 text-xs tabular-nums",
|
|
4705
|
-
|
|
4711
|
+
o ? "rounded-full bg-accent px-2 font-semibold text-accent-fg" : "text-text-subtle"
|
|
4706
4712
|
),
|
|
4707
4713
|
children: t.count
|
|
4708
4714
|
}
|
|
@@ -4710,17 +4716,17 @@ const wn = ({
|
|
|
4710
4716
|
]
|
|
4711
4717
|
}
|
|
4712
4718
|
) });
|
|
4713
|
-
},
|
|
4719
|
+
}, Cn = ({
|
|
4714
4720
|
title: t,
|
|
4715
4721
|
actionIcons: r,
|
|
4716
4722
|
items: n,
|
|
4717
4723
|
isSelectedHandler: s,
|
|
4718
4724
|
onClick: a,
|
|
4719
|
-
preMenuItemsComponent:
|
|
4720
|
-
}) => /* @__PURE__ */
|
|
4721
|
-
/* @__PURE__ */
|
|
4725
|
+
preMenuItemsComponent: o
|
|
4726
|
+
}) => /* @__PURE__ */ c("nav", { className: "flex h-full shrink-0 flex-col p-3 pt-4", children: [
|
|
4727
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 px-2 pb-3", children: [
|
|
4722
4728
|
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-lg font-semibold text-text", children: t }),
|
|
4723
|
-
r && r.length > 0 && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1", children: r.map((
|
|
4729
|
+
r && r.length > 0 && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1", children: r.map((l, u) => /* @__PURE__ */ e(
|
|
4724
4730
|
"span",
|
|
4725
4731
|
{
|
|
4726
4732
|
className: d(
|
|
@@ -4728,24 +4734,24 @@ const wn = ({
|
|
|
4728
4734
|
"transition-colors duration-fast ease-out hover:bg-surface-hover hover:text-text-strong",
|
|
4729
4735
|
"focus-visible:outline-none focus-visible:focus-ring"
|
|
4730
4736
|
),
|
|
4731
|
-
children:
|
|
4737
|
+
children: l
|
|
4732
4738
|
},
|
|
4733
4739
|
u
|
|
4734
4740
|
)) })
|
|
4735
4741
|
] }),
|
|
4736
|
-
|
|
4742
|
+
o && /* @__PURE__ */ e("div", { className: "px-1 pb-3", children: o }),
|
|
4737
4743
|
/* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto", children: n.map(
|
|
4738
|
-
(
|
|
4744
|
+
(l, u) => !l.path && !l.label && !l.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, u) : /* @__PURE__ */ e(
|
|
4739
4745
|
Ve,
|
|
4740
4746
|
{
|
|
4741
|
-
item:
|
|
4747
|
+
item: l,
|
|
4742
4748
|
isSelectedHandler: s,
|
|
4743
4749
|
onClick: a
|
|
4744
4750
|
},
|
|
4745
4751
|
u
|
|
4746
4752
|
)
|
|
4747
4753
|
) })
|
|
4748
|
-
] }),
|
|
4754
|
+
] }), Mr = {
|
|
4749
4755
|
xs: "text-xs",
|
|
4750
4756
|
sm: "text-sm",
|
|
4751
4757
|
md: "text-base",
|
|
@@ -4754,13 +4760,13 @@ const wn = ({
|
|
|
4754
4760
|
"2xl": "text-2xl",
|
|
4755
4761
|
"3xl": "text-3xl",
|
|
4756
4762
|
"4xl": "text-3xl"
|
|
4757
|
-
},
|
|
4763
|
+
}, $r = {
|
|
4758
4764
|
light: "font-normal",
|
|
4759
4765
|
normal: "font-normal",
|
|
4760
4766
|
medium: "font-medium",
|
|
4761
4767
|
semibold: "font-semibold",
|
|
4762
4768
|
bold: "font-bold"
|
|
4763
|
-
},
|
|
4769
|
+
}, Dr = {
|
|
4764
4770
|
primary: "text-text",
|
|
4765
4771
|
secondary: "text-text-muted",
|
|
4766
4772
|
accent: "text-accent",
|
|
@@ -4770,33 +4776,33 @@ const wn = ({
|
|
|
4770
4776
|
info: "text-info-fg",
|
|
4771
4777
|
neutral: "text-text",
|
|
4772
4778
|
current: "text-current"
|
|
4773
|
-
},
|
|
4779
|
+
}, Tr = {
|
|
4774
4780
|
left: "text-left",
|
|
4775
4781
|
center: "text-center",
|
|
4776
4782
|
right: "text-right"
|
|
4777
|
-
},
|
|
4783
|
+
}, Sn = ({
|
|
4778
4784
|
level: t = 1,
|
|
4779
4785
|
size: r,
|
|
4780
4786
|
weight: n = "semibold",
|
|
4781
4787
|
color: s = "current",
|
|
4782
4788
|
align: a = "left",
|
|
4783
|
-
truncate:
|
|
4784
|
-
className:
|
|
4789
|
+
truncate: o = !1,
|
|
4790
|
+
className: l,
|
|
4785
4791
|
children: u,
|
|
4786
4792
|
...x
|
|
4787
4793
|
}) => {
|
|
4788
4794
|
const y = `h${t}`, f = d(
|
|
4789
4795
|
"font-sans text-pretty",
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
+
Mr[r || Ar(t)],
|
|
4797
|
+
$r[n],
|
|
4798
|
+
Dr[s],
|
|
4799
|
+
Tr[a],
|
|
4800
|
+
o && "truncate",
|
|
4801
|
+
l
|
|
4796
4802
|
);
|
|
4797
4803
|
return /* @__PURE__ */ e(y, { className: f, ...x, children: u });
|
|
4798
4804
|
};
|
|
4799
|
-
function
|
|
4805
|
+
function Ar(t) {
|
|
4800
4806
|
return {
|
|
4801
4807
|
1: "2xl",
|
|
4802
4808
|
2: "xl",
|
|
@@ -4806,19 +4812,19 @@ function Tr(t) {
|
|
|
4806
4812
|
6: "md"
|
|
4807
4813
|
}[t] || "md";
|
|
4808
4814
|
}
|
|
4809
|
-
const
|
|
4815
|
+
const zn = ({
|
|
4810
4816
|
commands: t,
|
|
4811
4817
|
isOpen: r,
|
|
4812
4818
|
onClose: n,
|
|
4813
4819
|
labels: s,
|
|
4814
4820
|
initialCommandPath: a,
|
|
4815
|
-
initialActiveIndex:
|
|
4821
|
+
initialActiveIndex: o
|
|
4816
4822
|
}) => {
|
|
4817
|
-
const [
|
|
4818
|
-
(b) => b.label.toLowerCase().includes(
|
|
4823
|
+
const [l, u] = U(""), [x, y] = U(a || []), [f, m] = U(o || 0), h = se(null), g = se(null), v = (x.length ? t.find((b) => b.id === x[0])?.subCommands || [] : t).filter(
|
|
4824
|
+
(b) => b.label.toLowerCase().includes(l.toLowerCase())
|
|
4819
4825
|
);
|
|
4820
4826
|
return Q(() => {
|
|
4821
|
-
r || (u(""), y(a || []), m(
|
|
4827
|
+
r || (u(""), y(a || []), m(o || 0));
|
|
4822
4828
|
}, [r]), Q(() => {
|
|
4823
4829
|
const b = (L) => {
|
|
4824
4830
|
if (r) {
|
|
@@ -4847,13 +4853,13 @@ const Sn = ({
|
|
|
4847
4853
|
}, [r, n]), Q(() => {
|
|
4848
4854
|
if (!r) return;
|
|
4849
4855
|
g.current?.querySelector(`[data-index="${f}"]`)?.scrollIntoView({ block: "nearest" });
|
|
4850
|
-
}, [f, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */
|
|
4856
|
+
}, [f, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */ c(
|
|
4851
4857
|
"div",
|
|
4852
4858
|
{
|
|
4853
4859
|
className: "flex flex-col w-full max-w-lg max-h-dialog p-2 mx-auto rounded-lg border border-border shadow-modal bg-surface",
|
|
4854
4860
|
ref: h,
|
|
4855
4861
|
children: [
|
|
4856
|
-
/* @__PURE__ */
|
|
4862
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
|
|
4857
4863
|
/* @__PURE__ */ e(ke, { className: "w-4 h-4 text-text-muted shrink-0" }),
|
|
4858
4864
|
/* @__PURE__ */ e(
|
|
4859
4865
|
"input",
|
|
@@ -4861,20 +4867,20 @@ const Sn = ({
|
|
|
4861
4867
|
type: "text",
|
|
4862
4868
|
autoFocus: !0,
|
|
4863
4869
|
placeholder: s?.searchPlaceholder || "Search commands...",
|
|
4864
|
-
value:
|
|
4870
|
+
value: l,
|
|
4865
4871
|
onChange: (b) => u(b.target.value),
|
|
4866
4872
|
className: "w-full border-0 bg-transparent py-2 text-text focus:outline-none"
|
|
4867
4873
|
}
|
|
4868
4874
|
)
|
|
4869
4875
|
] }),
|
|
4870
|
-
/* @__PURE__ */
|
|
4876
|
+
/* @__PURE__ */ c(
|
|
4871
4877
|
"div",
|
|
4872
4878
|
{
|
|
4873
4879
|
ref: g,
|
|
4874
4880
|
className: "mt-2 pt-2 text-sm border-t border-border max-h-dialog-list overflow-y-auto",
|
|
4875
4881
|
children: [
|
|
4876
4882
|
v.length === 0 && /* @__PURE__ */ e("div", { className: "text-text-muted text-center text-sm", children: s?.noCommandsFound || "No commands found" }),
|
|
4877
|
-
v.map((b, L) => /* @__PURE__ */
|
|
4883
|
+
v.map((b, L) => /* @__PURE__ */ c(
|
|
4878
4884
|
"div",
|
|
4879
4885
|
{
|
|
4880
4886
|
"data-index": L,
|
|
@@ -4894,16 +4900,16 @@ const Sn = ({
|
|
|
4894
4900
|
]
|
|
4895
4901
|
}
|
|
4896
4902
|
),
|
|
4897
|
-
/* @__PURE__ */
|
|
4898
|
-
/* @__PURE__ */
|
|
4903
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-4 px-3 pt-2 mt-2 text-xs text-text-muted border-t border-border", children: [
|
|
4904
|
+
/* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
|
|
4899
4905
|
/* @__PURE__ */ e("kbd", { className: "inline-flex items-center justify-center min-w-5 px-1 py-0.5 rounded border border-border bg-surface-sunk text-xs font-medium not-italic", children: "↑↓" }),
|
|
4900
4906
|
s?.navigate || "to navigate"
|
|
4901
4907
|
] }),
|
|
4902
|
-
/* @__PURE__ */
|
|
4908
|
+
/* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
|
|
4903
4909
|
/* @__PURE__ */ e("kbd", { className: "inline-flex items-center justify-center min-w-5 px-1 py-0.5 rounded border border-border bg-surface-sunk text-xs font-medium not-italic", children: "↵" }),
|
|
4904
4910
|
s?.select || "to select"
|
|
4905
4911
|
] }),
|
|
4906
|
-
/* @__PURE__ */
|
|
4912
|
+
/* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
|
|
4907
4913
|
/* @__PURE__ */ e("kbd", { className: "inline-flex items-center justify-center min-w-5 px-1 py-0.5 rounded border border-border bg-surface-sunk text-xs font-medium not-italic", children: "Esc" }),
|
|
4908
4914
|
s?.close || "to close"
|
|
4909
4915
|
] })
|
|
@@ -4911,7 +4917,7 @@ const Sn = ({
|
|
|
4911
4917
|
]
|
|
4912
4918
|
}
|
|
4913
4919
|
) }) : null;
|
|
4914
|
-
},
|
|
4920
|
+
}, Lr = {
|
|
4915
4921
|
none: "p-0",
|
|
4916
4922
|
xs: "p-1",
|
|
4917
4923
|
sm: "p-2",
|
|
@@ -4919,7 +4925,7 @@ const Sn = ({
|
|
|
4919
4925
|
lg: "p-6",
|
|
4920
4926
|
xl: "p-8",
|
|
4921
4927
|
"2xl": "p-12"
|
|
4922
|
-
},
|
|
4928
|
+
}, Ir = {
|
|
4923
4929
|
none: "m-0",
|
|
4924
4930
|
xs: "m-1",
|
|
4925
4931
|
sm: "m-2",
|
|
@@ -4927,7 +4933,7 @@ const Sn = ({
|
|
|
4927
4933
|
lg: "m-6",
|
|
4928
4934
|
xl: "m-8",
|
|
4929
4935
|
"2xl": "m-12"
|
|
4930
|
-
},
|
|
4936
|
+
}, jr = {
|
|
4931
4937
|
none: "",
|
|
4932
4938
|
primary: "bg-accent text-accent-fg",
|
|
4933
4939
|
secondary: "bg-surface-hover",
|
|
@@ -4943,26 +4949,26 @@ const Sn = ({
|
|
|
4943
4949
|
backdrop: "bg-page",
|
|
4944
4950
|
editor: "bg-surface",
|
|
4945
4951
|
input: "bg-surface-input"
|
|
4946
|
-
},
|
|
4952
|
+
}, Pr = {
|
|
4947
4953
|
none: "rounded-none",
|
|
4948
4954
|
sm: "rounded-sm",
|
|
4949
4955
|
md: "rounded-md",
|
|
4950
4956
|
lg: "rounded-lg",
|
|
4951
4957
|
xl: "rounded-xl",
|
|
4952
4958
|
full: "rounded-full"
|
|
4953
|
-
},
|
|
4959
|
+
}, Or = {
|
|
4954
4960
|
none: "shadow-none",
|
|
4955
4961
|
sm: "shadow-none",
|
|
4956
4962
|
md: "shadow-overlay",
|
|
4957
4963
|
lg: "shadow-overlay",
|
|
4958
4964
|
xl: "shadow-modal",
|
|
4959
4965
|
"2xl": "shadow-modal"
|
|
4960
|
-
},
|
|
4966
|
+
}, Fr = {
|
|
4961
4967
|
none: "border-0",
|
|
4962
4968
|
sm: "border",
|
|
4963
4969
|
md: "border-2",
|
|
4964
4970
|
lg: "border-4"
|
|
4965
|
-
},
|
|
4971
|
+
}, Br = {
|
|
4966
4972
|
primary: "border-accent-border",
|
|
4967
4973
|
secondary: "border-border",
|
|
4968
4974
|
accent: "border-accent-border",
|
|
@@ -4979,8 +4985,8 @@ const Sn = ({
|
|
|
4979
4985
|
background: n,
|
|
4980
4986
|
radius: s,
|
|
4981
4987
|
shadow: a,
|
|
4982
|
-
border:
|
|
4983
|
-
borderColor:
|
|
4988
|
+
border: o,
|
|
4989
|
+
borderColor: l,
|
|
4984
4990
|
className: u,
|
|
4985
4991
|
children: x,
|
|
4986
4992
|
...y
|
|
@@ -4989,13 +4995,13 @@ const Sn = ({
|
|
|
4989
4995
|
{
|
|
4990
4996
|
ref: f,
|
|
4991
4997
|
className: d(
|
|
4992
|
-
t &&
|
|
4993
|
-
r &&
|
|
4994
|
-
n &&
|
|
4995
|
-
s &&
|
|
4996
|
-
a &&
|
|
4997
|
-
|
|
4998
|
-
|
|
4998
|
+
t && Lr[t],
|
|
4999
|
+
r && Ir[r],
|
|
5000
|
+
n && jr[n],
|
|
5001
|
+
s && Pr[s],
|
|
5002
|
+
a && Or[a],
|
|
5003
|
+
o && Fr[o],
|
|
5004
|
+
l && Br[l],
|
|
4999
5005
|
u
|
|
5000
5006
|
),
|
|
5001
5007
|
...y,
|
|
@@ -5004,7 +5010,7 @@ const Sn = ({
|
|
|
5004
5010
|
)
|
|
5005
5011
|
);
|
|
5006
5012
|
He.displayName = "Box";
|
|
5007
|
-
const
|
|
5013
|
+
const En = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
|
|
5008
5014
|
He,
|
|
5009
5015
|
{
|
|
5010
5016
|
background: "module",
|
|
@@ -5019,15 +5025,15 @@ const zn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ o(
|
|
|
5019
5025
|
]
|
|
5020
5026
|
}
|
|
5021
5027
|
);
|
|
5022
|
-
function
|
|
5028
|
+
function Mn({
|
|
5023
5029
|
identifier: t,
|
|
5024
5030
|
resourceLoader: r,
|
|
5025
5031
|
framework: n = "react",
|
|
5026
5032
|
fallback: s,
|
|
5027
5033
|
componentProps: a,
|
|
5028
|
-
className:
|
|
5034
|
+
className: o
|
|
5029
5035
|
}) {
|
|
5030
|
-
const
|
|
5036
|
+
const l = se(null), [u, x] = U(!0), [y, f] = U(null), m = se(null);
|
|
5031
5037
|
return se(null), Q(() => {
|
|
5032
5038
|
let h = !0;
|
|
5033
5039
|
return (async () => {
|
|
@@ -5047,7 +5053,7 @@ function En({
|
|
|
5047
5053
|
};
|
|
5048
5054
|
}, [t, r]), Q(() => {
|
|
5049
5055
|
if (u || !y || n === "react") return;
|
|
5050
|
-
const h =
|
|
5056
|
+
const h = l.current;
|
|
5051
5057
|
if (h) {
|
|
5052
5058
|
if (n === "svelte") {
|
|
5053
5059
|
const g = y.default || y, N = new g({ target: h, props: a || {} });
|
|
@@ -5062,12 +5068,12 @@ function En({
|
|
|
5062
5068
|
}
|
|
5063
5069
|
}, [y, n, u]), Q(() => {
|
|
5064
5070
|
n === "svelte" && m.current && m.current.$set?.(a);
|
|
5065
|
-
}, [a, n]), /* @__PURE__ */
|
|
5071
|
+
}, [a, n]), /* @__PURE__ */ c("div", { ref: l, className: o, style: { display: "contents" }, children: [
|
|
5066
5072
|
u && s,
|
|
5067
5073
|
n === "react" && y && /* @__PURE__ */ e(y, { ...a })
|
|
5068
5074
|
] });
|
|
5069
5075
|
}
|
|
5070
|
-
class
|
|
5076
|
+
class $n extends mt {
|
|
5071
5077
|
constructor() {
|
|
5072
5078
|
super(...arguments), this.state = {
|
|
5073
5079
|
hasError: !1,
|
|
@@ -5081,7 +5087,7 @@ class Mn extends mt {
|
|
|
5081
5087
|
console.error(`[ErrorBoundary] Error in ${this.props.name || "Component"}:`, r, n);
|
|
5082
5088
|
}
|
|
5083
5089
|
render() {
|
|
5084
|
-
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */
|
|
5090
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ c("div", { className: "p-4 m-4 border border-danger-border bg-danger-soft rounded-lg", children: [
|
|
5085
5091
|
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold text-danger-fg", children: "Something went wrong" }),
|
|
5086
5092
|
/* @__PURE__ */ e("p", { className: "text-sm text-danger-fg mt-1", children: this.props.name ? `Error in ${this.props.name}` : "The component failed to render." }),
|
|
5087
5093
|
/* @__PURE__ */ e(
|
|
@@ -5096,66 +5102,66 @@ class Mn extends mt {
|
|
|
5096
5102
|
}
|
|
5097
5103
|
}
|
|
5098
5104
|
export {
|
|
5099
|
-
|
|
5105
|
+
dn as AssistantCard,
|
|
5100
5106
|
Nr as Avatar,
|
|
5101
|
-
|
|
5102
|
-
|
|
5107
|
+
un as AvatarStack,
|
|
5108
|
+
rn as Badge,
|
|
5103
5109
|
He as Box,
|
|
5104
5110
|
te as Button,
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5111
|
+
Jr as ButtonGroup,
|
|
5112
|
+
En as Card,
|
|
5113
|
+
mn as ChannelBadge,
|
|
5108
5114
|
be as Checkbox,
|
|
5109
|
-
|
|
5110
|
-
|
|
5115
|
+
zn as CommandPalette,
|
|
5116
|
+
tn as ConfirmDialog,
|
|
5111
5117
|
Rt as ContentLoading,
|
|
5112
5118
|
Me as DatePicker,
|
|
5113
5119
|
Vt as Dropdown,
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5120
|
+
nn as EmptyState,
|
|
5121
|
+
$n as ErrorBoundary,
|
|
5122
|
+
Mn as FederatedResource,
|
|
5123
|
+
Yr as FilterChip,
|
|
5118
5124
|
It as FolderSelect,
|
|
5119
|
-
|
|
5120
|
-
|
|
5125
|
+
en as Form,
|
|
5126
|
+
Sn as Heading,
|
|
5121
5127
|
Y as Icon,
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5128
|
+
fn as Image,
|
|
5129
|
+
sn as Kbd,
|
|
5130
|
+
bn as KpiCard,
|
|
5131
|
+
Xr as Link,
|
|
5132
|
+
hn as List,
|
|
5133
|
+
Kr as MeetingGrid,
|
|
5134
|
+
xn as MessageBubble,
|
|
5129
5135
|
Re as Modal,
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5136
|
+
gn as PageHeader,
|
|
5137
|
+
pn as PageToolbar,
|
|
5138
|
+
_r as ParticipantTile,
|
|
5133
5139
|
kt as Popover,
|
|
5134
|
-
|
|
5140
|
+
an as ProgressBar,
|
|
5135
5141
|
Ft as SearchableTextField,
|
|
5136
|
-
|
|
5137
|
-
|
|
5142
|
+
vn as SectionDivider,
|
|
5143
|
+
Zr as SegmentedToggle,
|
|
5138
5144
|
ve as Select,
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5145
|
+
yn as SettingsRow,
|
|
5146
|
+
Nn as SettingsSection,
|
|
5147
|
+
Cn as SidebarMenu,
|
|
5148
|
+
wn as SourceChip,
|
|
5149
|
+
ln as Spinner,
|
|
5144
5150
|
Oe as SplitButton,
|
|
5145
|
-
|
|
5146
|
-
|
|
5151
|
+
on as StatusDot,
|
|
5152
|
+
cn as StepIndicator,
|
|
5147
5153
|
ar as StorageInput,
|
|
5148
5154
|
Bt as Switch,
|
|
5149
|
-
|
|
5155
|
+
Qr as TabBar,
|
|
5150
5156
|
Le as Table,
|
|
5151
5157
|
Xt as Tabs,
|
|
5152
5158
|
ie as Text,
|
|
5153
5159
|
$e as TextArea,
|
|
5154
5160
|
xe as TextField,
|
|
5155
|
-
|
|
5156
|
-
|
|
5161
|
+
Gr as VideoSurface,
|
|
5162
|
+
kn as View,
|
|
5157
5163
|
d as cn,
|
|
5158
|
-
|
|
5159
|
-
|
|
5164
|
+
Wr as createSizes,
|
|
5165
|
+
qr as createVariants
|
|
5160
5166
|
};
|
|
5161
5167
|
//# sourceMappingURL=index.js.map
|