@dlbcodes/ui 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +449 -418
- package/dist/lib/components/form/Input.vue.d.ts +1 -1
- package/dist/lib/components/form/Textarea.vue.d.ts +1 -1
- package/dist/lib/components/form/combobox/ComboboxInput.vue.d.ts +1 -1
- package/dist/lib/components/form/multiselect/MultiSelectTrigger.vue.d.ts +1 -1
- package/dist/lib/components/form/select/SelectTrigger.vue.d.ts +1 -1
- package/dist/lib/components/primitives/Badge.vue.d.ts +1 -1
- package/dist/lib/components/primitives/alert/Alert.vue.d.ts +1 -1
- package/dist/lib/styles/tokens.css +222 -103
- package/dist/lib/variants/alert.d.ts +1 -1
- package/dist/lib/variants/badge.d.ts +1 -1
- package/dist/lib/variants/input.d.ts +1 -1
- package/package.json +7 -2
package/dist/index.js
CHANGED
|
@@ -26,23 +26,26 @@ var qe = j([
|
|
|
26
26
|
"active:not-aria-[haspopup]:translate-y-px",
|
|
27
27
|
"disabled:pointer-events-none",
|
|
28
28
|
"disabled:opacity-50",
|
|
29
|
+
"aria-disabled:pointer-events-none",
|
|
30
|
+
"aria-disabled:opacity-50",
|
|
29
31
|
"focus-visible:outline-none",
|
|
30
32
|
"focus-visible:ring-2",
|
|
31
33
|
"focus-visible:ring-offset-2",
|
|
32
|
-
"focus-visible:ring-
|
|
34
|
+
"focus-visible:ring-ring",
|
|
35
|
+
"focus-visible:ring-offset-background",
|
|
33
36
|
"[&_svg]:pointer-events-none",
|
|
34
37
|
"[&_svg]:shrink-0",
|
|
35
38
|
"[&_svg:not([class*='size-'])]:size-4"
|
|
36
39
|
].join(" "), {
|
|
37
40
|
variants: {
|
|
38
41
|
variant: {
|
|
39
|
-
primary: "border border-brand
|
|
40
|
-
secondary: "border border-border
|
|
41
|
-
destructive: "border border-
|
|
42
|
-
outline: "border border-border
|
|
43
|
-
ghost: "text-
|
|
44
|
-
link: "inline-flex text-brand-
|
|
45
|
-
icon: "relative inline-grid place-items-center text-
|
|
42
|
+
primary: "border border-brand bg-brand text-brand-foreground hover:brightness-110",
|
|
43
|
+
secondary: "border border-border bg-background text-foreground hover:bg-accent aria-expanded:bg-accent",
|
|
44
|
+
destructive: "border border-destructive bg-destructive text-destructive-foreground hover:brightness-110",
|
|
45
|
+
outline: "border border-border bg-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground aria-expanded:bg-accent aria-expanded:text-accent-foreground",
|
|
46
|
+
ghost: "text-foreground hover:bg-accent aria-expanded:bg-accent",
|
|
47
|
+
link: "inline-flex text-brand underline-offset-4 hover:underline",
|
|
48
|
+
icon: "relative inline-grid place-items-center text-muted-foreground hover:bg-accent hover:text-accent-foreground aria-expanded:bg-accent aria-expanded:text-accent-foreground"
|
|
46
49
|
},
|
|
47
50
|
size: {
|
|
48
51
|
xl: "h-14 rounded-xl px-6 text-base",
|
|
@@ -75,7 +78,7 @@ var qe = j([
|
|
|
75
78
|
setup(e) {
|
|
76
79
|
let t = e;
|
|
77
80
|
return (n, r) => (b(), o("span", Je, [(b(), o("svg", {
|
|
78
|
-
class: h(D(F)("size-6 animate-spin text-
|
|
81
|
+
class: h(D(F)("size-6 animate-spin text-muted-foreground/70", t.class)),
|
|
79
82
|
xmlns: "http://www.w3.org/2000/svg",
|
|
80
83
|
fill: "none",
|
|
81
84
|
viewBox: "0 0 24 24",
|
|
@@ -152,7 +155,7 @@ var qe = j([
|
|
|
152
155
|
"shrink-0",
|
|
153
156
|
"overflow-hidden",
|
|
154
157
|
"whitespace-nowrap",
|
|
155
|
-
"rounded",
|
|
158
|
+
"rounded-sm",
|
|
156
159
|
"border",
|
|
157
160
|
"px-2",
|
|
158
161
|
"py-0.5",
|
|
@@ -164,13 +167,13 @@ var qe = j([
|
|
|
164
167
|
"[&>svg]:size-3"
|
|
165
168
|
].join(" "), {
|
|
166
169
|
variants: { variant: {
|
|
167
|
-
success: "border-success-border bg-success-
|
|
168
|
-
|
|
169
|
-
info: "border-info-border bg-info-
|
|
170
|
-
destructive: "border-
|
|
171
|
-
neutral: "border-border
|
|
172
|
-
primary: "border-brand
|
|
173
|
-
outline: "border-border
|
|
170
|
+
success: "border-success-border bg-success-subtle text-success",
|
|
171
|
+
warning: "border-warning-border bg-warning-subtle text-warning",
|
|
172
|
+
info: "border-info-border bg-info-subtle text-info",
|
|
173
|
+
destructive: "border-destructive-border bg-destructive-subtle text-destructive",
|
|
174
|
+
neutral: "border-border bg-secondary text-secondary-foreground",
|
|
175
|
+
primary: "border-brand bg-brand text-brand-foreground",
|
|
176
|
+
outline: "border-border bg-transparent text-muted-foreground"
|
|
174
177
|
} },
|
|
175
178
|
defaultVariants: { variant: "neutral" }
|
|
176
179
|
}), $e = /* @__PURE__ */ u({
|
|
@@ -196,42 +199,41 @@ var qe = j([
|
|
|
196
199
|
"justify-center",
|
|
197
200
|
"w-full",
|
|
198
201
|
"uppercase",
|
|
199
|
-
"text-
|
|
200
|
-
"bg-
|
|
202
|
+
"text-foreground",
|
|
203
|
+
"bg-muted",
|
|
201
204
|
"border",
|
|
202
|
-
"border-border
|
|
205
|
+
"border-border",
|
|
203
206
|
"overflow-hidden"
|
|
204
207
|
].join(" "), [
|
|
205
208
|
"*:overflow-hidden",
|
|
206
|
-
"*:bg-
|
|
209
|
+
"*:bg-card",
|
|
207
210
|
"*:shadow-xs",
|
|
208
|
-
"*:rounded-2xl",
|
|
209
|
-
"*:dark:bg-dark-950",
|
|
210
211
|
"*:dark:border",
|
|
211
|
-
"*:dark:border-
|
|
212
|
-
"*:dark:shadow-[inset_-
|
|
212
|
+
"*:dark:border-background",
|
|
213
|
+
"*:dark:shadow-[inset_-1px_1px_2px_0px_oklch(1_0_0/15%)]"
|
|
213
214
|
].join(" ")].join(" "), {
|
|
214
215
|
variants: { size: {
|
|
215
|
-
"10xl": "text-3xl size-30 xl:size-40 p-1 rounded-3xl *:rounded-[
|
|
216
|
-
"9xl": "text-3xl size-30 p-1 rounded-3xl *:rounded-[
|
|
217
|
-
"8xl": "text-3xl size-28 p-1 rounded-3xl *:rounded-[
|
|
218
|
-
"7xl": "text-3xl size-26 p-1 rounded-3xl *:rounded-[
|
|
219
|
-
"6xl": "text-3xl size-24 p-1 rounded-3xl *:rounded-[
|
|
220
|
-
"5xl": "text-3xl size-22 p-1 rounded-3xl *:rounded-[
|
|
221
|
-
"4xl": "text-4xl size-20 p-1 rounded-3xl *:rounded-[
|
|
222
|
-
"3xl": "text-xl size-18 p-1 rounded-2xl *:rounded-
|
|
223
|
-
"2xl": "size-16",
|
|
224
|
-
xl: "size-14 rounded-xl *:rounded-[
|
|
225
|
-
lg: "size-12 p-0.5 rounded-xl *:rounded-[
|
|
226
|
-
base: "size-10 rounded-xl *:rounded-[
|
|
227
|
-
sm: "size-8 rounded-xl *:rounded-[
|
|
228
|
-
xs: "size-6 rounded-md"
|
|
216
|
+
"10xl": "text-3xl size-30 xl:size-40 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
217
|
+
"9xl": "text-3xl size-30 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
218
|
+
"8xl": "text-3xl size-28 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
219
|
+
"7xl": "text-3xl size-26 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
220
|
+
"6xl": "text-3xl size-24 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
221
|
+
"5xl": "text-3xl size-22 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
222
|
+
"4xl": "text-4xl size-20 p-1 rounded-3xl *:rounded-[calc(var(--radius)*2.2-0.25rem)]",
|
|
223
|
+
"3xl": "text-xl size-18 p-1 rounded-2xl *:rounded-[calc(var(--radius)*1.8-0.25rem)]",
|
|
224
|
+
"2xl": "size-16 rounded-xl *:rounded-[calc(var(--radius)*1.4-1px)]",
|
|
225
|
+
xl: "size-14 rounded-xl *:rounded-[calc(var(--radius)*1.4-1px)]",
|
|
226
|
+
lg: "size-12 p-0.5 rounded-xl *:rounded-[calc(var(--radius)*1.4-0.125rem)]",
|
|
227
|
+
base: "size-10 rounded-xl *:rounded-[calc(var(--radius)*1.4-1px)]",
|
|
228
|
+
sm: "size-8 rounded-xl *:rounded-[calc(var(--radius)*1.4-1px)]",
|
|
229
|
+
xs: "size-6 rounded-md *:rounded-[calc(var(--radius)*0.8-1px)]"
|
|
229
230
|
} },
|
|
230
231
|
defaultVariants: { size: "base" }
|
|
231
|
-
}), tt = ["src", "alt"], nt =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
}), tt = ["src", "alt"], nt = [
|
|
233
|
+
"role",
|
|
234
|
+
"aria-label",
|
|
235
|
+
"aria-hidden"
|
|
236
|
+
], rt = /* @__PURE__ */ u({
|
|
235
237
|
__name: "Avatar",
|
|
236
238
|
props: {
|
|
237
239
|
size: { default: "base" },
|
|
@@ -246,16 +248,29 @@ var qe = j([
|
|
|
246
248
|
] }
|
|
247
249
|
},
|
|
248
250
|
setup(e) {
|
|
249
|
-
let t = e, n = r(() => {
|
|
250
|
-
let e =
|
|
251
|
-
return e ? e.
|
|
252
|
-
}),
|
|
253
|
-
|
|
251
|
+
let t = e, n = r(() => t.name?.trim() || ""), i = r(() => {
|
|
252
|
+
let e = Array.from(n.value)[0];
|
|
253
|
+
return e ? e.toUpperCase() : "?";
|
|
254
|
+
}), a = S(!1);
|
|
255
|
+
k(() => t.src, () => {
|
|
256
|
+
a.value = !1;
|
|
257
|
+
});
|
|
258
|
+
let s = r(() => !!t.src && !a.value);
|
|
259
|
+
return (r, c) => (b(), o("div", { class: h(D(F)(D(et)({ size: e.size }), t.class)) }, [s.value ? (b(), o("img", {
|
|
254
260
|
key: 0,
|
|
255
261
|
src: e.src,
|
|
256
|
-
alt:
|
|
257
|
-
class: "size-full
|
|
258
|
-
|
|
262
|
+
alt: n.value,
|
|
263
|
+
class: "size-full object-cover",
|
|
264
|
+
loading: "lazy",
|
|
265
|
+
decoding: "async",
|
|
266
|
+
onError: c[0] ||= (e) => a.value = !0
|
|
267
|
+
}, null, 40, tt)) : (b(), o("div", {
|
|
268
|
+
key: 1,
|
|
269
|
+
class: "flex size-full items-center justify-center",
|
|
270
|
+
role: n.value ? "img" : void 0,
|
|
271
|
+
"aria-label": n.value || void 0,
|
|
272
|
+
"aria-hidden": n.value ? void 0 : !0
|
|
273
|
+
}, E(i.value), 9, nt))], 2));
|
|
259
274
|
}
|
|
260
275
|
}), it = /* @__PURE__ */ u({
|
|
261
276
|
__name: "Kbd",
|
|
@@ -268,7 +283,7 @@ var qe = j([
|
|
|
268
283
|
] } },
|
|
269
284
|
setup(e) {
|
|
270
285
|
let t = e;
|
|
271
|
-
return (e, n) => (b(), o("kbd", { class: h(D(F)("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-
|
|
286
|
+
return (e, n) => (b(), o("kbd", { class: h(D(F)("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground", t.class)) }, [C(e.$slots, "default")], 2));
|
|
272
287
|
}
|
|
273
288
|
}), at = ["aria-label", "role"], ot = /* @__PURE__ */ u({
|
|
274
289
|
__name: "KbdGroup",
|
|
@@ -306,7 +321,7 @@ var qe = j([
|
|
|
306
321
|
let t = e;
|
|
307
322
|
return (e, n) => (b(), o("label", {
|
|
308
323
|
for: t.for,
|
|
309
|
-
class: h(D(F)("cursor-pointer select-none text-sm font-medium text-
|
|
324
|
+
class: h(D(F)("cursor-pointer select-none text-sm font-medium text-foreground", t.class))
|
|
310
325
|
}, [C(e.$slots, "default")], 10, st));
|
|
311
326
|
}
|
|
312
327
|
}), lt = j("shrink-0 bg-border-subtle", {
|
|
@@ -351,7 +366,7 @@ var qe = j([
|
|
|
351
366
|
setup(e) {
|
|
352
367
|
let t = e;
|
|
353
368
|
return (e, n) => (b(), o("div", {
|
|
354
|
-
class: h(D(F)("animate-pulse rounded-md bg-
|
|
369
|
+
class: h(D(F)("animate-pulse rounded-md bg-accent", t.class)),
|
|
355
370
|
"aria-hidden": "true"
|
|
356
371
|
}, null, 2));
|
|
357
372
|
}
|
|
@@ -359,7 +374,10 @@ var qe = j([
|
|
|
359
374
|
"aria-valuemax",
|
|
360
375
|
"aria-valuenow",
|
|
361
376
|
"aria-label"
|
|
362
|
-
], mt =
|
|
377
|
+
], mt = {
|
|
378
|
+
key: 0,
|
|
379
|
+
class: "h-full w-2/5 rounded-full bg-brand animate-progress-indeterminate motion-reduce:w-full motion-reduce:animate-pulse"
|
|
380
|
+
}, ht = /* @__PURE__ */ u({
|
|
363
381
|
__name: "Progress",
|
|
364
382
|
props: {
|
|
365
383
|
value: {},
|
|
@@ -374,20 +392,21 @@ var qe = j([
|
|
|
374
392
|
] }
|
|
375
393
|
},
|
|
376
394
|
setup(e) {
|
|
377
|
-
let t = e, n = r(() => t.value === void 0 ? 0 : Math.min(Math.max(t.value, 0), t.max) / t.max * 100);
|
|
378
|
-
return (r,
|
|
395
|
+
let t = e, n = r(() => t.value === void 0), i = r(() => t.value === void 0 ? 0 : Math.min(Math.max(t.value, 0), t.max) / t.max * 100);
|
|
396
|
+
return (r, a) => (b(), o("div", {
|
|
379
397
|
role: "progressbar",
|
|
380
398
|
"aria-valuemin": 0,
|
|
381
399
|
"aria-valuemax": e.max,
|
|
382
400
|
"aria-valuenow": e.value,
|
|
383
401
|
"aria-label": e.label,
|
|
384
|
-
class: h(D(F)("relative h-1 w-full overflow-hidden rounded-full bg-
|
|
385
|
-
}, [
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
402
|
+
class: h(D(F)("relative h-1 w-full overflow-hidden rounded-full bg-muted", t.class))
|
|
403
|
+
}, [n.value ? (b(), o("div", mt)) : (b(), o("div", {
|
|
404
|
+
key: 1,
|
|
405
|
+
class: "size-full rounded-full bg-brand transition-transform duration-300",
|
|
406
|
+
style: g({ transform: `translateX(-${100 - i.value}%)` })
|
|
407
|
+
}, null, 4))], 10, pt));
|
|
389
408
|
}
|
|
390
|
-
}),
|
|
409
|
+
}), gt = /* @__PURE__ */ u({
|
|
391
410
|
__name: "Panel",
|
|
392
411
|
props: { class: { type: [
|
|
393
412
|
Boolean,
|
|
@@ -398,9 +417,9 @@ var qe = j([
|
|
|
398
417
|
] } },
|
|
399
418
|
setup(e) {
|
|
400
419
|
let t = e;
|
|
401
|
-
return (e, n) => (b(), o("div", { class: h(D(F)("flex flex-col shrink-0 w-full p-1 bg-
|
|
420
|
+
return (e, n) => (b(), o("div", { class: h(D(F)("flex flex-col shrink-0 w-full p-1 bg-muted border border-border rounded-3xl shadow-xs overflow-hidden", t.class)) }, [C(e.$slots, "default")], 2));
|
|
402
421
|
}
|
|
403
|
-
}),
|
|
422
|
+
}), _t = /* @__PURE__ */ u({
|
|
404
423
|
__name: "PanelHeader",
|
|
405
424
|
props: { class: { type: [
|
|
406
425
|
Boolean,
|
|
@@ -413,7 +432,7 @@ var qe = j([
|
|
|
413
432
|
let t = e;
|
|
414
433
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex items-center px-3 py-2", t.class)) }, [C(e.$slots, "default")], 2));
|
|
415
434
|
}
|
|
416
|
-
}),
|
|
435
|
+
}), vt = /* @__PURE__ */ u({
|
|
417
436
|
__name: "PanelContent",
|
|
418
437
|
props: { class: { type: [
|
|
419
438
|
Boolean,
|
|
@@ -424,9 +443,9 @@ var qe = j([
|
|
|
424
443
|
] } },
|
|
425
444
|
setup(e) {
|
|
426
445
|
let t = e;
|
|
427
|
-
return (e, n) => (b(), o("div", { class: h(D(F)("h-full overflow-hidden p-2 bg-
|
|
446
|
+
return (e, n) => (b(), o("div", { class: h(D(F)("h-full overflow-hidden p-2 bg-card shadow-xs rounded-[calc(var(--radius)*2.2-0.25rem)]", t.class)) }, [C(e.$slots, "default")], 2));
|
|
428
447
|
}
|
|
429
|
-
}),
|
|
448
|
+
}), yt = /* @__PURE__ */ u({
|
|
430
449
|
__name: "PanelFooter",
|
|
431
450
|
props: { class: { type: [
|
|
432
451
|
Boolean,
|
|
@@ -439,7 +458,7 @@ var qe = j([
|
|
|
439
458
|
let t = e;
|
|
440
459
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex items-center px-3 py-2", t.class)) }, [C(e.$slots, "default")], 2));
|
|
441
460
|
}
|
|
442
|
-
}),
|
|
461
|
+
}), bt = /* @__PURE__ */ u({
|
|
443
462
|
__name: "Tabs",
|
|
444
463
|
props: {
|
|
445
464
|
defaultIndex: { default: 0 },
|
|
@@ -476,17 +495,17 @@ var qe = j([
|
|
|
476
495
|
"class"
|
|
477
496
|
]));
|
|
478
497
|
}
|
|
479
|
-
}),
|
|
480
|
-
"flex items-center gap-x-2 rounded-
|
|
481
|
-
"outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
498
|
+
}), xt = j("flex w-fit items-center gap-1 rounded-xl border border-border bg-muted p-1"), St = j([
|
|
499
|
+
"flex items-center gap-x-2 rounded-lg px-4 py-1.5 text-sm font-medium transition-all",
|
|
500
|
+
"outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-muted",
|
|
482
501
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
483
502
|
].join(" "), {
|
|
484
503
|
variants: { selected: {
|
|
485
|
-
true: "bg-
|
|
486
|
-
false: "text-
|
|
504
|
+
true: "bg-background text-foreground shadow-sm dark:bg-accent",
|
|
505
|
+
false: "text-muted-foreground not-disabled:hover:text-foreground"
|
|
487
506
|
} },
|
|
488
507
|
defaultVariants: { selected: !1 }
|
|
489
|
-
}),
|
|
508
|
+
}), Ct = /* @__PURE__ */ u({
|
|
490
509
|
__name: "TabsList",
|
|
491
510
|
props: { class: { type: [
|
|
492
511
|
Boolean,
|
|
@@ -497,12 +516,12 @@ var qe = j([
|
|
|
497
516
|
] } },
|
|
498
517
|
setup(e) {
|
|
499
518
|
let t = e;
|
|
500
|
-
return (e, n) => (b(), i(D(je), { class: h(D(F)(D(
|
|
519
|
+
return (e, n) => (b(), i(D(je), { class: h(D(F)(D(xt)(), t.class)) }, {
|
|
501
520
|
default: A(() => [C(e.$slots, "default")]),
|
|
502
521
|
_: 3
|
|
503
522
|
}, 8, ["class"]));
|
|
504
523
|
}
|
|
505
|
-
}),
|
|
524
|
+
}), wt = /* @__PURE__ */ u({
|
|
506
525
|
__name: "TabsTrigger",
|
|
507
526
|
props: {
|
|
508
527
|
disabled: { type: Boolean },
|
|
@@ -522,12 +541,12 @@ var qe = j([
|
|
|
522
541
|
}, {
|
|
523
542
|
default: A(({ selected: e }) => [s("button", {
|
|
524
543
|
type: "button",
|
|
525
|
-
class: h(D(F)(D(
|
|
544
|
+
class: h(D(F)(D(St)({ selected: e }), t.class))
|
|
526
545
|
}, [C(n.$slots, "default", { selected: e })], 2)]),
|
|
527
546
|
_: 3
|
|
528
547
|
}, 8, ["disabled"]));
|
|
529
548
|
}
|
|
530
|
-
}),
|
|
549
|
+
}), Tt = /* @__PURE__ */ u({
|
|
531
550
|
__name: "TabsPanels",
|
|
532
551
|
props: { class: { type: [
|
|
533
552
|
Boolean,
|
|
@@ -543,7 +562,7 @@ var qe = j([
|
|
|
543
562
|
_: 3
|
|
544
563
|
}, 8, ["class"]));
|
|
545
564
|
}
|
|
546
|
-
}),
|
|
565
|
+
}), Et = /* @__PURE__ */ u({
|
|
547
566
|
__name: "TabsContent",
|
|
548
567
|
props: { class: { type: [
|
|
549
568
|
Boolean,
|
|
@@ -559,7 +578,7 @@ var qe = j([
|
|
|
559
578
|
_: 3
|
|
560
579
|
}, 8, ["class"]));
|
|
561
580
|
}
|
|
562
|
-
}),
|
|
581
|
+
}), Dt = /* @__PURE__ */ u({
|
|
563
582
|
__name: "Disclosure",
|
|
564
583
|
props: {
|
|
565
584
|
defaultOpen: {
|
|
@@ -585,7 +604,7 @@ var qe = j([
|
|
|
585
604
|
_: 3
|
|
586
605
|
}, 8, ["default-open", "class"]));
|
|
587
606
|
}
|
|
588
|
-
}),
|
|
607
|
+
}), Ot = { class: "flex-1 outline-none" }, kt = /* @__PURE__ */ u({
|
|
589
608
|
__name: "DisclosureTrigger",
|
|
590
609
|
props: { class: { type: [
|
|
591
610
|
Boolean,
|
|
@@ -596,15 +615,15 @@ var qe = j([
|
|
|
596
615
|
] } },
|
|
597
616
|
setup(e) {
|
|
598
617
|
let t = e;
|
|
599
|
-
return (e, n) => (b(), i(D(ge), { class: h(D(F)("flex w-full items-center justify-between gap-2 py-4 text-left text-sm font-medium text-
|
|
600
|
-
default: A(({ open: t }) => [s("span",
|
|
601
|
-
class: h(["size-4 shrink-0 text-
|
|
618
|
+
return (e, n) => (b(), i(D(ge), { class: h(D(F)("flex w-full items-center justify-between gap-2 py-4 text-left text-sm font-medium text-foreground transition-colors", "focus-visible:outline-none hover:text-muted-foreground focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background rounded-lg", t.class)) }, {
|
|
619
|
+
default: A(({ open: t }) => [s("span", Ot, [C(e.$slots, "default", { open: t })]), l(D(Pe), {
|
|
620
|
+
class: h(["size-4 shrink-0 text-muted-foreground/70 transition-transform duration-200", t && "rotate-180"]),
|
|
602
621
|
"aria-hidden": "true"
|
|
603
622
|
}, null, 8, ["class"])]),
|
|
604
623
|
_: 3
|
|
605
624
|
}, 8, ["class"]));
|
|
606
625
|
}
|
|
607
|
-
}),
|
|
626
|
+
}), At = /* @__PURE__ */ u({
|
|
608
627
|
__name: "DisclosureContent",
|
|
609
628
|
props: { class: { type: [
|
|
610
629
|
Boolean,
|
|
@@ -615,27 +634,27 @@ var qe = j([
|
|
|
615
634
|
] } },
|
|
616
635
|
setup(e) {
|
|
617
636
|
let t = e;
|
|
618
|
-
return (e, n) => (b(), i(D(_e), { class: h(D(F)("pb-4 text-sm text-
|
|
637
|
+
return (e, n) => (b(), i(D(_e), { class: h(D(F)("pb-4 text-sm text-muted-foreground", t.class)) }, {
|
|
619
638
|
default: A(() => [C(e.$slots, "default")]),
|
|
620
639
|
_: 3
|
|
621
640
|
}, 8, ["class"]));
|
|
622
641
|
}
|
|
623
|
-
}),
|
|
642
|
+
}), jt = j("relative flex w-full gap-3 rounded-xl border px-4 py-3 text-sm", {
|
|
624
643
|
variants: { variant: {
|
|
625
|
-
neutral: "bg-
|
|
626
|
-
info: "bg-info-
|
|
627
|
-
success: "bg-success-
|
|
628
|
-
warning: "bg-warning-
|
|
629
|
-
|
|
644
|
+
neutral: "bg-muted border-border text-foreground",
|
|
645
|
+
info: "bg-info-subtle border-info-border text-info",
|
|
646
|
+
success: "bg-success-subtle border-success-border text-success",
|
|
647
|
+
warning: "bg-warning-subtle border-warning-border text-warning",
|
|
648
|
+
destructive: "bg-destructive-subtle border-destructive-border text-destructive"
|
|
630
649
|
} },
|
|
631
650
|
defaultVariants: { variant: "neutral" }
|
|
632
|
-
}),
|
|
651
|
+
}), Mt = {
|
|
633
652
|
key: 0,
|
|
634
653
|
class: "mt-0.5 shrink-0 [&>svg]:size-5"
|
|
635
|
-
},
|
|
654
|
+
}, Nt = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Pt = {
|
|
636
655
|
key: 1,
|
|
637
656
|
class: "shrink-0"
|
|
638
|
-
},
|
|
657
|
+
}, Ft = /* @__PURE__ */ u({
|
|
639
658
|
__name: "Alert",
|
|
640
659
|
props: {
|
|
641
660
|
variant: { default: "neutral" },
|
|
@@ -651,14 +670,14 @@ var qe = j([
|
|
|
651
670
|
let t = e;
|
|
652
671
|
return (n, r) => (b(), o("div", {
|
|
653
672
|
role: "alert",
|
|
654
|
-
class: h(D(F)(D(
|
|
673
|
+
class: h(D(F)(D(jt)({ variant: e.variant }), t.class))
|
|
655
674
|
}, [
|
|
656
|
-
n.$slots.icon ? (b(), o("span",
|
|
657
|
-
s("div",
|
|
658
|
-
n.$slots.action ? (b(), o("div",
|
|
675
|
+
n.$slots.icon ? (b(), o("span", Mt, [C(n.$slots, "icon")])) : a("", !0),
|
|
676
|
+
s("div", Nt, [C(n.$slots, "default")]),
|
|
677
|
+
n.$slots.action ? (b(), o("div", Pt, [C(n.$slots, "action")])) : a("", !0)
|
|
659
678
|
], 2));
|
|
660
679
|
}
|
|
661
|
-
}),
|
|
680
|
+
}), It = /* @__PURE__ */ u({
|
|
662
681
|
__name: "AlertTitle",
|
|
663
682
|
props: { class: { type: [
|
|
664
683
|
Boolean,
|
|
@@ -671,7 +690,7 @@ var qe = j([
|
|
|
671
690
|
let t = e;
|
|
672
691
|
return (e, n) => (b(), o("div", { class: h(D(F)("font-medium", t.class)) }, [C(e.$slots, "default")], 2));
|
|
673
692
|
}
|
|
674
|
-
}),
|
|
693
|
+
}), Lt = /* @__PURE__ */ u({
|
|
675
694
|
__name: "AlertDescription",
|
|
676
695
|
props: { class: { type: [
|
|
677
696
|
Boolean,
|
|
@@ -684,7 +703,7 @@ var qe = j([
|
|
|
684
703
|
let t = e;
|
|
685
704
|
return (e, n) => (b(), o("div", { class: h(D(F)("text-sm opacity-90", t.class)) }, [C(e.$slots, "default")], 2));
|
|
686
705
|
}
|
|
687
|
-
}),
|
|
706
|
+
}), Rt = /* @__PURE__ */ u({
|
|
688
707
|
__name: "Empty",
|
|
689
708
|
props: { class: { type: [
|
|
690
709
|
Boolean,
|
|
@@ -695,9 +714,9 @@ var qe = j([
|
|
|
695
714
|
] } },
|
|
696
715
|
setup(e) {
|
|
697
716
|
let t = e;
|
|
698
|
-
return (e, n) => (b(), o("div", { class: h(D(F)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border border-dashed border-border
|
|
717
|
+
return (e, n) => (b(), o("div", { class: h(D(F)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border border-dashed border-border p-8 text-center text-balance", t.class)) }, [C(e.$slots, "default")], 2));
|
|
699
718
|
}
|
|
700
|
-
}),
|
|
719
|
+
}), zt = /* @__PURE__ */ u({
|
|
701
720
|
__name: "EmptyHeader",
|
|
702
721
|
props: { class: { type: [
|
|
703
722
|
Boolean,
|
|
@@ -710,13 +729,13 @@ var qe = j([
|
|
|
710
729
|
let t = e;
|
|
711
730
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex max-w-sm flex-col items-center gap-2", t.class)) }, [C(e.$slots, "default")], 2));
|
|
712
731
|
}
|
|
713
|
-
}),
|
|
732
|
+
}), Bt = j("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
714
733
|
variants: { variant: {
|
|
715
734
|
default: "bg-transparent",
|
|
716
|
-
icon: "
|
|
735
|
+
icon: "size-10 rounded-xl bg-muted text-foreground [&_svg:not([class*='size-'])]:size-5"
|
|
717
736
|
} },
|
|
718
737
|
defaultVariants: { variant: "default" }
|
|
719
|
-
}),
|
|
738
|
+
}), Vt = /* @__PURE__ */ u({
|
|
720
739
|
__name: "EmptyMedia",
|
|
721
740
|
props: {
|
|
722
741
|
variant: { default: "default" },
|
|
@@ -730,9 +749,9 @@ var qe = j([
|
|
|
730
749
|
},
|
|
731
750
|
setup(e) {
|
|
732
751
|
let t = e;
|
|
733
|
-
return (e, n) => (b(), o("div", { class: h(D(F)(D(
|
|
752
|
+
return (e, n) => (b(), o("div", { class: h(D(F)(D(Bt)({ variant: t.variant }), t.class)) }, [C(e.$slots, "default")], 2));
|
|
734
753
|
}
|
|
735
|
-
}),
|
|
754
|
+
}), Ht = /* @__PURE__ */ u({
|
|
736
755
|
__name: "EmptyTitle",
|
|
737
756
|
props: { class: { type: [
|
|
738
757
|
Boolean,
|
|
@@ -743,9 +762,9 @@ var qe = j([
|
|
|
743
762
|
] } },
|
|
744
763
|
setup(e) {
|
|
745
764
|
let t = e;
|
|
746
|
-
return (e, n) => (b(), o("p", { class: h(D(F)("text-base font-medium tracking-tight text-
|
|
765
|
+
return (e, n) => (b(), o("p", { class: h(D(F)("text-base font-medium tracking-tight text-foreground", t.class)) }, [C(e.$slots, "default")], 2));
|
|
747
766
|
}
|
|
748
|
-
}),
|
|
767
|
+
}), Ut = /* @__PURE__ */ u({
|
|
749
768
|
__name: "EmptyDescription",
|
|
750
769
|
props: { class: { type: [
|
|
751
770
|
Boolean,
|
|
@@ -756,9 +775,9 @@ var qe = j([
|
|
|
756
775
|
] } },
|
|
757
776
|
setup(e) {
|
|
758
777
|
let t = e;
|
|
759
|
-
return (e, n) => (b(), o("p", { class: h(D(F)("text-sm leading-relaxed text-
|
|
778
|
+
return (e, n) => (b(), o("p", { class: h(D(F)("text-sm leading-relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 hover:[&>a]:text-brand", t.class)) }, [C(e.$slots, "default")], 2));
|
|
760
779
|
}
|
|
761
|
-
}),
|
|
780
|
+
}), Wt = /* @__PURE__ */ u({
|
|
762
781
|
__name: "EmptyContent",
|
|
763
782
|
props: { class: { type: [
|
|
764
783
|
Boolean,
|
|
@@ -771,19 +790,19 @@ var qe = j([
|
|
|
771
790
|
let t = e;
|
|
772
791
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex w-full max-w-sm min-w-0 flex-col items-center gap-3 text-sm text-balance", t.class)) }, [C(e.$slots, "default")], 2));
|
|
773
792
|
}
|
|
774
|
-
}),
|
|
775
|
-
x(
|
|
793
|
+
}), Gt = Symbol("SidebarContext"), Kt = (e) => {
|
|
794
|
+
x(Gt, e);
|
|
776
795
|
}, I = () => {
|
|
777
|
-
let e = d(
|
|
796
|
+
let e = d(Gt);
|
|
778
797
|
if (!e) throw Error("Sidebar components must be used within a <SidebarProvider>.");
|
|
779
798
|
return e;
|
|
780
|
-
},
|
|
799
|
+
}, qt = /* @__PURE__ */ u({
|
|
781
800
|
__name: "SidebarProvider",
|
|
782
801
|
setup(e) {
|
|
783
802
|
let t = We("(max-width: 767px)"), n = S(!1), r = S(!1);
|
|
784
803
|
return k(t, (e) => {
|
|
785
804
|
e || (n.value = !1);
|
|
786
|
-
}),
|
|
805
|
+
}), Kt({
|
|
787
806
|
isMobile: t,
|
|
788
807
|
mobileOpen: n,
|
|
789
808
|
collapsed: r,
|
|
@@ -798,7 +817,7 @@ var qe = j([
|
|
|
798
817
|
}
|
|
799
818
|
}), (e, t) => C(e.$slots, "default");
|
|
800
819
|
}
|
|
801
|
-
}),
|
|
820
|
+
}), Jt = /* @__PURE__ */ u({
|
|
802
821
|
__name: "Sidebar",
|
|
803
822
|
props: { class: { type: [
|
|
804
823
|
Boolean,
|
|
@@ -809,13 +828,13 @@ var qe = j([
|
|
|
809
828
|
] } },
|
|
810
829
|
setup(t) {
|
|
811
830
|
let r = t, { isMobile: i, mobileOpen: s, collapsed: c, close: u } = I(), d = Ge(typeof document < "u" ? document.body : null);
|
|
812
|
-
k(s, (e) => {
|
|
813
|
-
d.value = e &&
|
|
814
|
-
})
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
831
|
+
return k([s, i], ([e, t]) => {
|
|
832
|
+
d.value = e && t;
|
|
833
|
+
}, { immediate: !0 }), _(() => {
|
|
834
|
+
d.value = !1;
|
|
835
|
+
}), Be("Escape", () => {
|
|
836
|
+
i.value && s.value && u();
|
|
837
|
+
}), (t, d) => D(i) ? (b(), o(e, { key: 1 }, [l(n, {
|
|
819
838
|
"enter-active-class": "transition-opacity duration-200",
|
|
820
839
|
"enter-from-class": "opacity-0",
|
|
821
840
|
"leave-active-class": "transition-opacity duration-200",
|
|
@@ -835,17 +854,16 @@ var qe = j([
|
|
|
835
854
|
}, {
|
|
836
855
|
default: A(() => [D(s) ? (b(), o("aside", {
|
|
837
856
|
key: 0,
|
|
838
|
-
class: h(D(F)("fixed inset-y-0 left-0 z-50 flex h-full w-64 flex-col border-r border-border
|
|
839
|
-
tabindex: "-1"
|
|
840
|
-
|
|
841
|
-
}, [C(t.$slots, "default")], 34)) : a("", !0)]),
|
|
857
|
+
class: h(D(F)("fixed inset-y-0 left-0 z-50 flex h-full w-64 flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground", r.class)),
|
|
858
|
+
tabindex: "-1"
|
|
859
|
+
}, [C(t.$slots, "default")], 2)) : a("", !0)]),
|
|
842
860
|
_: 3
|
|
843
861
|
})], 64)) : (b(), o(e, { key: 0 }, [D(c) ? a("", !0) : (b(), o("aside", {
|
|
844
862
|
key: 0,
|
|
845
|
-
class: h(D(F)("flex h-full w-64 flex-col border-r border-border
|
|
863
|
+
class: h(D(F)("flex h-full w-64 flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground", r.class))
|
|
846
864
|
}, [C(t.$slots, "default")], 2))], 64));
|
|
847
865
|
}
|
|
848
|
-
}),
|
|
866
|
+
}), Yt = /* @__PURE__ */ u({
|
|
849
867
|
__name: "SidebarTrigger",
|
|
850
868
|
props: { class: { type: [
|
|
851
869
|
Boolean,
|
|
@@ -858,12 +876,12 @@ var qe = j([
|
|
|
858
876
|
let t = e, { toggle: n } = I();
|
|
859
877
|
return (e, r) => (b(), o("button", {
|
|
860
878
|
type: "button",
|
|
861
|
-
class: h(D(F)("inline-flex size-
|
|
879
|
+
class: h(D(F)("inline-flex size-10 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground", "outline-none focus-visible:ring-2 focus-visible:ring-ring", t.class)),
|
|
862
880
|
"aria-label": "Toggle navigation",
|
|
863
881
|
onClick: r[0] ||= (...e) => D(n) && D(n)(...e)
|
|
864
882
|
}, [l(D(Le), { class: "size-5" })], 2));
|
|
865
883
|
}
|
|
866
|
-
}),
|
|
884
|
+
}), Xt = /* @__PURE__ */ u({
|
|
867
885
|
__name: "SidebarHeader",
|
|
868
886
|
props: { class: { type: [
|
|
869
887
|
Boolean,
|
|
@@ -876,7 +894,7 @@ var qe = j([
|
|
|
876
894
|
let t = e;
|
|
877
895
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex items-center gap-2 px-4 py-4", t.class)) }, [C(e.$slots, "default")], 2));
|
|
878
896
|
}
|
|
879
|
-
}),
|
|
897
|
+
}), Zt = /* @__PURE__ */ u({
|
|
880
898
|
__name: "SidebarContent",
|
|
881
899
|
props: { class: { type: [
|
|
882
900
|
Boolean,
|
|
@@ -889,7 +907,7 @@ var qe = j([
|
|
|
889
907
|
let t = e;
|
|
890
908
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex-1 overflow-y-auto scrollbar-thin px-2 py-2", t.class)) }, [C(e.$slots, "default")], 2));
|
|
891
909
|
}
|
|
892
|
-
}),
|
|
910
|
+
}), Qt = /* @__PURE__ */ u({
|
|
893
911
|
__name: "SidebarFooter",
|
|
894
912
|
props: { class: { type: [
|
|
895
913
|
Boolean,
|
|
@@ -902,10 +920,10 @@ var qe = j([
|
|
|
902
920
|
let t = e;
|
|
903
921
|
return (e, n) => (b(), o("div", { class: h(D(F)("mt-auto px-4 py-4", t.class)) }, [C(e.$slots, "default")], 2));
|
|
904
922
|
}
|
|
905
|
-
}),
|
|
923
|
+
}), $t = {
|
|
906
924
|
key: 0,
|
|
907
|
-
class: "px-3 pb-1 text-xs font-medium uppercase tracking-wider text-
|
|
908
|
-
},
|
|
925
|
+
class: "px-3 pb-1 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/60"
|
|
926
|
+
}, en = /* @__PURE__ */ u({
|
|
909
927
|
__name: "SidebarGroup",
|
|
910
928
|
props: {
|
|
911
929
|
label: {},
|
|
@@ -919,19 +937,19 @@ var qe = j([
|
|
|
919
937
|
},
|
|
920
938
|
setup(e) {
|
|
921
939
|
let t = e;
|
|
922
|
-
return (n, r) => (b(), o("div", { class: h(D(F)("flex flex-col gap-0.5 py-2", t.class)) }, [e.label ? (b(), o("p",
|
|
940
|
+
return (n, r) => (b(), o("div", { class: h(D(F)("flex flex-col gap-0.5 py-2", t.class)) }, [e.label ? (b(), o("p", $t, E(e.label), 1)) : a("", !0), C(n.$slots, "default")], 2));
|
|
923
941
|
}
|
|
924
|
-
}),
|
|
942
|
+
}), tn = j([
|
|
925
943
|
"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
926
|
-
"outline-none focus-visible:ring-2 focus-visible:ring-
|
|
944
|
+
"outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
927
945
|
"[&_svg]:size-4 [&_svg]:shrink-0"
|
|
928
946
|
].join(" "), {
|
|
929
947
|
variants: { active: {
|
|
930
|
-
true: "bg-
|
|
931
|
-
false: "text-
|
|
948
|
+
true: "bg-sidebar-accent text-sidebar-accent-foreground",
|
|
949
|
+
false: "text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
|
|
932
950
|
} },
|
|
933
951
|
defaultVariants: { active: !1 }
|
|
934
|
-
}),
|
|
952
|
+
}), nn = /* @__PURE__ */ u({
|
|
935
953
|
__name: "SidebarItem",
|
|
936
954
|
props: {
|
|
937
955
|
as: { default: "a" },
|
|
@@ -960,7 +978,7 @@ var qe = j([
|
|
|
960
978
|
n.isMobile.value && n.close();
|
|
961
979
|
};
|
|
962
980
|
return (n, a) => (b(), i(w(e.disabled ? "span" : e.as), {
|
|
963
|
-
class: h(D(F)(D(
|
|
981
|
+
class: h(D(F)(D(tn)({ active: e.active }), e.disabled && "pointer-events-none opacity-50", t.class)),
|
|
964
982
|
"aria-disabled": e.disabled || void 0,
|
|
965
983
|
tabindex: e.disabled ? -1 : void 0,
|
|
966
984
|
onClick: r
|
|
@@ -973,7 +991,7 @@ var qe = j([
|
|
|
973
991
|
"tabindex"
|
|
974
992
|
]));
|
|
975
993
|
}
|
|
976
|
-
}), L = Symbol("Field"),
|
|
994
|
+
}), L = Symbol("Field"), rn = ["data-invalid", "data-disabled"], an = /* @__PURE__ */ u({
|
|
977
995
|
__name: "Field",
|
|
978
996
|
props: {
|
|
979
997
|
id: {},
|
|
@@ -1015,9 +1033,9 @@ var qe = j([
|
|
|
1015
1033
|
"data-invalid": e.invalid || void 0,
|
|
1016
1034
|
"data-disabled": e.disabled || void 0,
|
|
1017
1035
|
class: h(D(F)(c.value, t.class))
|
|
1018
|
-
}, [C(n.$slots, "default")], 10,
|
|
1036
|
+
}, [C(n.$slots, "default")], 10, rn));
|
|
1019
1037
|
}
|
|
1020
|
-
}),
|
|
1038
|
+
}), on = ["for"], sn = /* @__PURE__ */ u({
|
|
1021
1039
|
__name: "FieldLabel",
|
|
1022
1040
|
props: {
|
|
1023
1041
|
for: {},
|
|
@@ -1033,10 +1051,10 @@ var qe = j([
|
|
|
1033
1051
|
let t = e, n = d(L, null), i = r(() => t.for ?? n?.id.value), a = r(() => n?.required.value ?? !1);
|
|
1034
1052
|
return (e, n) => (b(), o("label", {
|
|
1035
1053
|
for: i.value,
|
|
1036
|
-
class: h(D(F)("w-fit select-none text-sm font-medium text-
|
|
1037
|
-
}, [C(e.$slots, "default")], 10,
|
|
1054
|
+
class: h(D(F)("w-fit select-none text-sm font-medium text-muted-foreground", a.value && "after:ml-0.5 after:text-destructive after:content-['*']", t.class))
|
|
1055
|
+
}, [C(e.$slots, "default")], 10, on));
|
|
1038
1056
|
}
|
|
1039
|
-
}),
|
|
1057
|
+
}), cn = ["id"], ln = /* @__PURE__ */ u({
|
|
1040
1058
|
__name: "FieldDescription",
|
|
1041
1059
|
props: { class: { type: [
|
|
1042
1060
|
Boolean,
|
|
@@ -1049,10 +1067,10 @@ var qe = j([
|
|
|
1049
1067
|
let t = e, n = d(L, null);
|
|
1050
1068
|
return (e, r) => (b(), o("p", {
|
|
1051
1069
|
id: D(n)?.descriptionId.value,
|
|
1052
|
-
class: h(D(F)("text-xs text-
|
|
1053
|
-
}, [C(e.$slots, "default")], 10,
|
|
1070
|
+
class: h(D(F)("text-xs text-muted-foreground", t.class))
|
|
1071
|
+
}, [C(e.$slots, "default")], 10, cn));
|
|
1054
1072
|
}
|
|
1055
|
-
}),
|
|
1073
|
+
}), un = ["id"], dn = /* @__PURE__ */ u({
|
|
1056
1074
|
__name: "FieldError",
|
|
1057
1075
|
props: { class: { type: [
|
|
1058
1076
|
Boolean,
|
|
@@ -1066,10 +1084,10 @@ var qe = j([
|
|
|
1066
1084
|
return (e, r) => (b(), o("p", {
|
|
1067
1085
|
id: D(n)?.errorId.value,
|
|
1068
1086
|
role: "alert",
|
|
1069
|
-
class: h(D(F)("text-sm text-
|
|
1070
|
-
}, [C(e.$slots, "default")], 10,
|
|
1087
|
+
class: h(D(F)("text-sm text-destructive", t.class))
|
|
1088
|
+
}, [C(e.$slots, "default")], 10, un));
|
|
1071
1089
|
}
|
|
1072
|
-
}),
|
|
1090
|
+
}), fn = /* @__PURE__ */ u({
|
|
1073
1091
|
__name: "FieldContent",
|
|
1074
1092
|
props: { class: { type: [
|
|
1075
1093
|
Boolean,
|
|
@@ -1082,17 +1100,17 @@ var qe = j([
|
|
|
1082
1100
|
let t = e;
|
|
1083
1101
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex flex-col gap-y-0.5", t.class)) }, [C(e.$slots, "default")], 2));
|
|
1084
1102
|
}
|
|
1085
|
-
}), R = Symbol("Select"), z = j("flex w-full items-center rounded-lg cursor-pointer select-none text-base outline-none transition-colors data-active:bg-
|
|
1103
|
+
}), R = Symbol("Select"), z = j("flex w-full items-center rounded-lg cursor-pointer select-none text-base outline-none transition-colors data-active:bg-accent data-active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50", {
|
|
1086
1104
|
variants: { indicator: {
|
|
1087
1105
|
none: "gap-x-2 px-2 py-1.5",
|
|
1088
1106
|
"trailing-check": "relative gap-x-2 py-2 pl-3 pr-9",
|
|
1089
1107
|
"leading-control": "gap-x-2 px-3 py-2"
|
|
1090
1108
|
} },
|
|
1091
1109
|
defaultVariants: { indicator: "none" }
|
|
1092
|
-
}),
|
|
1110
|
+
}), pn = ["data-active"], mn = {
|
|
1093
1111
|
key: 0,
|
|
1094
1112
|
class: "absolute inset-y-0 right-0 flex items-center pr-3 text-accent-pro-200"
|
|
1095
|
-
},
|
|
1113
|
+
}, hn = /* @__PURE__ */ u({
|
|
1096
1114
|
__name: "SelectItem",
|
|
1097
1115
|
props: {
|
|
1098
1116
|
value: {},
|
|
@@ -1132,14 +1150,14 @@ var qe = j([
|
|
|
1132
1150
|
}, [C(t.$slots, "default", {
|
|
1133
1151
|
active: n,
|
|
1134
1152
|
selected: r
|
|
1135
|
-
}, () => [c(E(e.label), 1)])], 2), r ? (b(), o("span",
|
|
1153
|
+
}, () => [c(E(e.label), 1)])], 2), r ? (b(), o("span", mn, [l(D(Ie), {
|
|
1136
1154
|
class: "size-5",
|
|
1137
1155
|
"aria-hidden": "true"
|
|
1138
|
-
})])) : a("", !0)], 10,
|
|
1156
|
+
})])) : a("", !0)], 10, pn)]),
|
|
1139
1157
|
_: 3
|
|
1140
1158
|
}, 8, ["value", "disabled"])), [[re, p.value]]);
|
|
1141
1159
|
}
|
|
1142
|
-
}),
|
|
1160
|
+
}), gn = /* @__PURE__ */ u({
|
|
1143
1161
|
__name: "Select",
|
|
1144
1162
|
props: {
|
|
1145
1163
|
modelValue: {},
|
|
@@ -1162,7 +1180,7 @@ var qe = j([
|
|
|
1162
1180
|
}
|
|
1163
1181
|
if (typeof n != "object") return;
|
|
1164
1182
|
let r = n;
|
|
1165
|
-
r.type ===
|
|
1183
|
+
r.type === hn && r.props?.value && r.props?.label && (e[r.props.value] = r.props.label), Array.isArray(r.children) && t(r.children);
|
|
1166
1184
|
let i = r.children;
|
|
1167
1185
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
1168
1186
|
let e = i.default;
|
|
@@ -1221,26 +1239,32 @@ var qe = j([
|
|
|
1221
1239
|
"w-full",
|
|
1222
1240
|
"min-w-0",
|
|
1223
1241
|
"border",
|
|
1224
|
-
"transition-[color,box-shadow]",
|
|
1242
|
+
"transition-[color,border-color,box-shadow]",
|
|
1225
1243
|
"outline-none",
|
|
1226
1244
|
"focus-visible:outline-none",
|
|
1227
|
-
"focus-within:border-
|
|
1245
|
+
"focus-within:border-foreground",
|
|
1228
1246
|
"focus-within:ring-1",
|
|
1229
|
-
"focus-within:ring-
|
|
1247
|
+
"focus-within:ring-foreground",
|
|
1230
1248
|
"disabled:pointer-events-none",
|
|
1231
|
-
"disabled:opacity-50"
|
|
1249
|
+
"disabled:opacity-50",
|
|
1250
|
+
"aria-disabled:pointer-events-none",
|
|
1251
|
+
"aria-disabled:opacity-50",
|
|
1252
|
+
"has-disabled:pointer-events-none",
|
|
1253
|
+
"has-disabled:opacity-50"
|
|
1232
1254
|
].join(" "), {
|
|
1233
1255
|
variants: {
|
|
1234
1256
|
variant: {
|
|
1235
|
-
primary: "bg-
|
|
1236
|
-
contrast: "bg-
|
|
1257
|
+
primary: "bg-muted border-input text-foreground font-medium",
|
|
1258
|
+
contrast: "bg-background border-input text-foreground font-medium"
|
|
1237
1259
|
},
|
|
1238
1260
|
size: {
|
|
1239
|
-
|
|
1240
|
-
|
|
1261
|
+
sm: "h-8 rounded-lg px-1 text-base md:text-sm",
|
|
1262
|
+
base: "h-10 rounded-xl px-3.5 text-base md:text-sm",
|
|
1263
|
+
lg: "h-12 rounded-xl px-3.5 text-base",
|
|
1264
|
+
xl: "h-14 rounded-xl px-4 text-base"
|
|
1241
1265
|
},
|
|
1242
1266
|
invalid: {
|
|
1243
|
-
true: "border-
|
|
1267
|
+
true: "border-destructive ring-1 ring-destructive focus-within:border-destructive focus-within:ring-destructive",
|
|
1244
1268
|
false: ""
|
|
1245
1269
|
}
|
|
1246
1270
|
},
|
|
@@ -1249,7 +1273,7 @@ var qe = j([
|
|
|
1249
1273
|
size: "base",
|
|
1250
1274
|
invalid: !1
|
|
1251
1275
|
}
|
|
1252
|
-
}),
|
|
1276
|
+
}), _n = { class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2" }, vn = /* @__PURE__ */ u({
|
|
1253
1277
|
__name: "SelectTrigger",
|
|
1254
1278
|
props: {
|
|
1255
1279
|
placeholder: { default: "Select an option" },
|
|
@@ -1277,7 +1301,7 @@ var qe = j([
|
|
|
1277
1301
|
default: A(() => [s("span", { class: h(["block truncate", !D(n).selected.value && "text-text-tertiary"]) }, [C(a.$slots, "default", {
|
|
1278
1302
|
selected: D(n).selected.value,
|
|
1279
1303
|
label: D(n).selectedLabel.value
|
|
1280
|
-
}, () => [c(E(D(n).selected.value ? D(n).selectedLabel.value : e.placeholder), 1)])], 2), s("span",
|
|
1304
|
+
}, () => [c(E(D(n).selected.value ? D(n).selectedLabel.value : e.placeholder), 1)])], 2), s("span", _n, [l(D(Fe), {
|
|
1281
1305
|
class: "size-5 text-text-tertiary",
|
|
1282
1306
|
"aria-hidden": "true"
|
|
1283
1307
|
})])]),
|
|
@@ -1292,7 +1316,7 @@ var qe = j([
|
|
|
1292
1316
|
_: 3
|
|
1293
1317
|
}));
|
|
1294
1318
|
}
|
|
1295
|
-
}), V = j("max-h-80 overflow-y-auto rounded-2xl bg-
|
|
1319
|
+
}), V = j("max-h-80 overflow-y-auto rounded-2xl bg-popover text-popover-foreground p-2 shadow-lg ring-1 ring-border focus-visible:outline-none", {
|
|
1296
1320
|
variants: { size: {
|
|
1297
1321
|
fit: "w-fit",
|
|
1298
1322
|
full: "w-full",
|
|
@@ -1311,7 +1335,7 @@ var qe = j([
|
|
|
1311
1335
|
leave: "transition-none",
|
|
1312
1336
|
leaveFrom: "opacity-100",
|
|
1313
1337
|
leaveTo: "opacity-0"
|
|
1314
|
-
},
|
|
1338
|
+
}, yn = /* @__PURE__ */ u({
|
|
1315
1339
|
__name: "SelectContent",
|
|
1316
1340
|
props: {
|
|
1317
1341
|
width: { default: "full" },
|
|
@@ -1345,12 +1369,12 @@ var qe = j([
|
|
|
1345
1369
|
"leave-to"
|
|
1346
1370
|
]));
|
|
1347
1371
|
}
|
|
1348
|
-
}),
|
|
1372
|
+
}), bn = [
|
|
1349
1373
|
"id",
|
|
1350
1374
|
"value",
|
|
1351
1375
|
"placeholder",
|
|
1352
1376
|
"aria-label"
|
|
1353
|
-
],
|
|
1377
|
+
], xn = /* @__PURE__ */ u({
|
|
1354
1378
|
__name: "SearchInput",
|
|
1355
1379
|
props: {
|
|
1356
1380
|
modelValue: {},
|
|
@@ -1380,21 +1404,21 @@ var qe = j([
|
|
|
1380
1404
|
onInput: i,
|
|
1381
1405
|
onClick: n[0] ||= oe(() => {}, ["stop"]),
|
|
1382
1406
|
onKeydown: n[1] ||= oe(() => {}, ["stop"])
|
|
1383
|
-
}, null, 40,
|
|
1407
|
+
}, null, 40, bn)], 2));
|
|
1384
1408
|
}
|
|
1385
|
-
}),
|
|
1409
|
+
}), Sn = /* @__PURE__ */ u({
|
|
1386
1410
|
__name: "SelectSearch",
|
|
1387
1411
|
props: { placeholder: { default: "Search..." } },
|
|
1388
1412
|
setup(e) {
|
|
1389
1413
|
let t = d(R);
|
|
1390
1414
|
if (!t) throw Error("SelectSearch must be used inside Select");
|
|
1391
|
-
return (n, r) => (b(), i(
|
|
1415
|
+
return (n, r) => (b(), i(xn, {
|
|
1392
1416
|
modelValue: D(t).query.value,
|
|
1393
1417
|
"onUpdate:modelValue": r[0] ||= (e) => D(t).query.value = e,
|
|
1394
1418
|
placeholder: e.placeholder
|
|
1395
1419
|
}, null, 8, ["modelValue", "placeholder"]));
|
|
1396
1420
|
}
|
|
1397
|
-
}),
|
|
1421
|
+
}), Cn = Symbol("MultiSelect"), wn = /* @__PURE__ */ u({
|
|
1398
1422
|
__name: "MultiSelect",
|
|
1399
1423
|
props: /*@__PURE__*/ f({
|
|
1400
1424
|
options: {},
|
|
@@ -1435,7 +1459,7 @@ var qe = j([
|
|
|
1435
1459
|
}, p = () => {
|
|
1436
1460
|
n.value = [];
|
|
1437
1461
|
};
|
|
1438
|
-
return x(
|
|
1462
|
+
return x(Cn, {
|
|
1439
1463
|
isSelected: (e) => o.value.has(e),
|
|
1440
1464
|
toggle: d,
|
|
1441
1465
|
query: a,
|
|
@@ -1471,7 +1495,7 @@ var qe = j([
|
|
|
1471
1495
|
_: 3
|
|
1472
1496
|
}, 8, ["class"]));
|
|
1473
1497
|
}
|
|
1474
|
-
}),
|
|
1498
|
+
}), Tn = { class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2" }, En = /* @__PURE__ */ u({
|
|
1475
1499
|
__name: "MultiSelectTrigger",
|
|
1476
1500
|
props: {
|
|
1477
1501
|
label: {},
|
|
@@ -1500,7 +1524,7 @@ var qe = j([
|
|
|
1500
1524
|
size: e.size
|
|
1501
1525
|
}), "relative cursor-pointer", t.class))
|
|
1502
1526
|
}, {
|
|
1503
|
-
default: A(() => [s("span", { class: h(["block truncate", e.empty && "text-text-tertiary"]) }, [C(r.$slots, "default", {}, () => [c(E(e.label), 1)])], 2), s("span",
|
|
1527
|
+
default: A(() => [s("span", { class: h(["block truncate", e.empty && "text-text-tertiary"]) }, [C(r.$slots, "default", {}, () => [c(E(e.label), 1)])], 2), s("span", Tn, [l(D(Fe), {
|
|
1504
1528
|
class: "size-4 text-text-tertiary",
|
|
1505
1529
|
"aria-hidden": "true"
|
|
1506
1530
|
})])]),
|
|
@@ -1515,7 +1539,7 @@ var qe = j([
|
|
|
1515
1539
|
_: 3
|
|
1516
1540
|
}));
|
|
1517
1541
|
}
|
|
1518
|
-
}),
|
|
1542
|
+
}), Dn = /* @__PURE__ */ u({
|
|
1519
1543
|
__name: "MultiSelectContent",
|
|
1520
1544
|
props: {
|
|
1521
1545
|
size: { default: "xs" },
|
|
@@ -1555,32 +1579,22 @@ var qe = j([
|
|
|
1555
1579
|
"leave-to"
|
|
1556
1580
|
]));
|
|
1557
1581
|
}
|
|
1558
|
-
}),
|
|
1559
|
-
let t = d(
|
|
1582
|
+
}), On = (e) => {
|
|
1583
|
+
let t = d(Cn, null);
|
|
1560
1584
|
if (!t) throw Error(`${e} must be used inside <MultiSelect>.`);
|
|
1561
1585
|
return t;
|
|
1562
|
-
},
|
|
1586
|
+
}, kn = /* @__PURE__ */ u({
|
|
1563
1587
|
__name: "MultiSelectSearch",
|
|
1564
1588
|
props: { placeholder: { default: "Search..." } },
|
|
1565
1589
|
setup(e) {
|
|
1566
|
-
let t =
|
|
1567
|
-
return (n, r) => (b(), i(
|
|
1590
|
+
let t = On("MultiSelectSearch");
|
|
1591
|
+
return (n, r) => (b(), i(xn, {
|
|
1568
1592
|
modelValue: D(t).query.value,
|
|
1569
1593
|
"onUpdate:modelValue": r[0] ||= (e) => D(t).query.value = e,
|
|
1570
1594
|
placeholder: e.placeholder
|
|
1571
1595
|
}, null, 8, ["modelValue", "placeholder"]));
|
|
1572
1596
|
}
|
|
1573
|
-
}),
|
|
1574
|
-
key: 0,
|
|
1575
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1576
|
-
viewBox: "0 0 24 24",
|
|
1577
|
-
fill: "none",
|
|
1578
|
-
stroke: "currentColor",
|
|
1579
|
-
"stroke-width": "3",
|
|
1580
|
-
"stroke-linecap": "round",
|
|
1581
|
-
"stroke-linejoin": "round",
|
|
1582
|
-
class: "pointer-events-none size-3 text-text-inverse"
|
|
1583
|
-
}, An = [
|
|
1597
|
+
}), An = [
|
|
1584
1598
|
"id",
|
|
1585
1599
|
"checked",
|
|
1586
1600
|
"required",
|
|
@@ -1588,17 +1602,7 @@ var qe = j([
|
|
|
1588
1602
|
"aria-invalid",
|
|
1589
1603
|
"aria-required",
|
|
1590
1604
|
"aria-describedby"
|
|
1591
|
-
], jn = {
|
|
1592
|
-
key: 0,
|
|
1593
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1594
|
-
viewBox: "0 0 24 24",
|
|
1595
|
-
fill: "none",
|
|
1596
|
-
stroke: "currentColor",
|
|
1597
|
-
"stroke-width": "3",
|
|
1598
|
-
"stroke-linecap": "round",
|
|
1599
|
-
"stroke-linejoin": "round",
|
|
1600
|
-
class: "pointer-events-none size-3 text-text-inverse"
|
|
1601
|
-
}, Mn = /* @__PURE__ */ u({
|
|
1605
|
+
], jn = /* @__PURE__ */ u({
|
|
1602
1606
|
__name: "Checkbox",
|
|
1603
1607
|
props: {
|
|
1604
1608
|
id: {},
|
|
@@ -1623,35 +1627,55 @@ var qe = j([
|
|
|
1623
1627
|
},
|
|
1624
1628
|
emits: ["update:modelValue"],
|
|
1625
1629
|
setup(e, { emit: t }) {
|
|
1626
|
-
let n = e, i = t, c = d(L, null), l = r(() => ({
|
|
1627
|
-
id: n.id ?? c?.id.value,
|
|
1630
|
+
let n = e, i = t, c = d(L, null), l = O(), u = r(() => ({
|
|
1631
|
+
id: n.id ?? c?.id.value ?? l,
|
|
1628
1632
|
required: n.required || (c?.required.value ?? !1),
|
|
1629
1633
|
disabled: n.disabled || (c?.disabled.value ?? !1),
|
|
1630
1634
|
invalid: n.invalid || (c?.invalid.value ?? !1),
|
|
1631
1635
|
describedById: c?.describedById.value
|
|
1632
|
-
})),
|
|
1636
|
+
})), f = r(() => F("flex size-4 shrink-0 items-center justify-center rounded-[calc(var(--radius)*0.4)] border transition-colors", u.value.invalid ? "border-destructive bg-destructive/10" : n.modelValue ? "border-primary bg-primary" : "border-border-strong bg-background")), p = r(() => F("pointer-events-none size-3", u.value.invalid ? "text-destructive" : "text-primary-foreground")), m = (e) => {
|
|
1633
1637
|
i("update:modelValue", e.target.checked);
|
|
1634
1638
|
};
|
|
1635
|
-
return (t,
|
|
1639
|
+
return (t, r) => e.visual ? (b(), o("div", {
|
|
1640
|
+
key: 0,
|
|
1641
|
+
class: h(D(F)(f.value, n.class))
|
|
1642
|
+
}, [e.modelValue ? (b(), o("svg", {
|
|
1636
1643
|
key: 0,
|
|
1637
|
-
|
|
1638
|
-
|
|
1644
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1645
|
+
viewBox: "0 0 24 24",
|
|
1646
|
+
fill: "none",
|
|
1647
|
+
stroke: "currentColor",
|
|
1648
|
+
"stroke-width": "3",
|
|
1649
|
+
"stroke-linecap": "round",
|
|
1650
|
+
"stroke-linejoin": "round",
|
|
1651
|
+
class: h(p.value)
|
|
1652
|
+
}, [...r[0] ||= [s("path", { d: "M5 13l4 4L19 7" }, null, -1)]], 2)) : a("", !0)], 2)) : (b(), o("label", {
|
|
1639
1653
|
key: 1,
|
|
1640
|
-
class: h(["inline-flex",
|
|
1654
|
+
class: h(["inline-flex", u.value.disabled && "opacity-50"])
|
|
1641
1655
|
}, [s("input", {
|
|
1642
|
-
id:
|
|
1656
|
+
id: u.value.id,
|
|
1643
1657
|
type: "checkbox",
|
|
1644
1658
|
checked: e.modelValue,
|
|
1645
|
-
required:
|
|
1646
|
-
disabled:
|
|
1647
|
-
"aria-invalid":
|
|
1648
|
-
"aria-required":
|
|
1649
|
-
"aria-describedby":
|
|
1659
|
+
required: u.value.required,
|
|
1660
|
+
disabled: u.value.disabled,
|
|
1661
|
+
"aria-invalid": u.value.invalid || void 0,
|
|
1662
|
+
"aria-required": u.value.required || void 0,
|
|
1663
|
+
"aria-describedby": u.value.describedById,
|
|
1650
1664
|
class: "peer sr-only",
|
|
1651
|
-
onChange:
|
|
1652
|
-
}, null, 40, An), s("div", { class: h(D(F)(
|
|
1665
|
+
onChange: m
|
|
1666
|
+
}, null, 40, An), s("div", { class: h(D(F)(f.value, "cursor-pointer peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background peer-disabled:cursor-not-allowed", n.class)) }, [e.modelValue ? (b(), o("svg", {
|
|
1667
|
+
key: 0,
|
|
1668
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1669
|
+
viewBox: "0 0 24 24",
|
|
1670
|
+
fill: "none",
|
|
1671
|
+
stroke: "currentColor",
|
|
1672
|
+
"stroke-width": "3",
|
|
1673
|
+
"stroke-linecap": "round",
|
|
1674
|
+
"stroke-linejoin": "round",
|
|
1675
|
+
class: h(p.value)
|
|
1676
|
+
}, [...r[1] ||= [s("path", { d: "M5 13l4 4L19 7" }, null, -1)]], 2)) : a("", !0)], 2)], 2));
|
|
1653
1677
|
}
|
|
1654
|
-
}),
|
|
1678
|
+
}), Mn = ["disabled", "aria-pressed"], Nn = /* @__PURE__ */ u({
|
|
1655
1679
|
__name: "MultiSelectItem",
|
|
1656
1680
|
props: {
|
|
1657
1681
|
value: {},
|
|
@@ -1659,19 +1683,19 @@ var qe = j([
|
|
|
1659
1683
|
disabled: { type: Boolean }
|
|
1660
1684
|
},
|
|
1661
1685
|
setup(e) {
|
|
1662
|
-
let t = e, n =
|
|
1686
|
+
let t = e, n = On("MultiSelectItem"), i = r(() => n.isSelected(t.value)), a = r(() => n.matchesQuery(t.label));
|
|
1663
1687
|
return (t, r) => ae((b(), o("button", {
|
|
1664
1688
|
type: "button",
|
|
1665
1689
|
disabled: e.disabled,
|
|
1666
1690
|
"aria-pressed": i.value,
|
|
1667
1691
|
class: h(D(F)(D(z)({ indicator: "leading-control" }), "text-left hover:bg-bg-surface")),
|
|
1668
1692
|
onClick: r[0] ||= (t) => D(n).toggle(e.value)
|
|
1669
|
-
}, [l(
|
|
1693
|
+
}, [l(jn, {
|
|
1670
1694
|
"model-value": i.value,
|
|
1671
1695
|
visual: ""
|
|
1672
|
-
}, null, 8, ["model-value"]), C(t.$slots, "default", { selected: i.value }, () => [s("span", { class: h(["truncate", i.value ? "font-medium" : "font-normal"]) }, E(e.label), 3)])], 10,
|
|
1696
|
+
}, null, 8, ["model-value"]), C(t.$slots, "default", { selected: i.value }, () => [s("span", { class: h(["truncate", i.value ? "font-medium" : "font-normal"]) }, E(e.label), 3)])], 10, Mn)), [[re, a.value]]);
|
|
1673
1697
|
}
|
|
1674
|
-
}),
|
|
1698
|
+
}), Pn = /* @__PURE__ */ u({
|
|
1675
1699
|
__name: "Dropdown",
|
|
1676
1700
|
props: {
|
|
1677
1701
|
placement: { default: "bottom-start" },
|
|
@@ -1705,7 +1729,7 @@ var qe = j([
|
|
|
1705
1729
|
_: 3
|
|
1706
1730
|
}, 8, ["class"]));
|
|
1707
1731
|
}
|
|
1708
|
-
}),
|
|
1732
|
+
}), Fn = /* @__PURE__ */ u({
|
|
1709
1733
|
__name: "DropdownTrigger",
|
|
1710
1734
|
props: {
|
|
1711
1735
|
asChild: { type: Boolean },
|
|
@@ -1722,7 +1746,7 @@ var qe = j([
|
|
|
1722
1746
|
return (n, r) => (b(), i(D(P), null, {
|
|
1723
1747
|
default: A(() => [l(D(Ce), {
|
|
1724
1748
|
as: e.asChild ? "template" : void 0,
|
|
1725
|
-
class: h(e.asChild ? void 0 : D(F)("cursor-pointer rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-
|
|
1749
|
+
class: h(e.asChild ? void 0 : D(F)("cursor-pointer rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background", t.class))
|
|
1726
1750
|
}, {
|
|
1727
1751
|
default: A(({ open: e }) => [C(n.$slots, "default", { open: e })]),
|
|
1728
1752
|
_: 3
|
|
@@ -1730,7 +1754,7 @@ var qe = j([
|
|
|
1730
1754
|
_: 3
|
|
1731
1755
|
}));
|
|
1732
1756
|
}
|
|
1733
|
-
}),
|
|
1757
|
+
}), In = /* @__PURE__ */ u({
|
|
1734
1758
|
__name: "DropdownContent",
|
|
1735
1759
|
props: {
|
|
1736
1760
|
size: { default: "full" },
|
|
@@ -1767,7 +1791,7 @@ var qe = j([
|
|
|
1767
1791
|
"leave-to"
|
|
1768
1792
|
]));
|
|
1769
1793
|
}
|
|
1770
|
-
}),
|
|
1794
|
+
}), Ln = ["disabled", "data-active"], Rn = /* @__PURE__ */ u({
|
|
1771
1795
|
__name: "DropdownItem",
|
|
1772
1796
|
props: {
|
|
1773
1797
|
disabled: { type: Boolean },
|
|
@@ -1787,16 +1811,16 @@ var qe = j([
|
|
|
1787
1811
|
type: "button",
|
|
1788
1812
|
disabled: e.disabled,
|
|
1789
1813
|
"data-active": i || void 0,
|
|
1790
|
-
class: h(D(F)(D(z)(), "text-
|
|
1814
|
+
class: h(D(F)(D(z)(), "text-foreground text-sm", n.class)),
|
|
1791
1815
|
onClick: a[0] ||= (e) => r("select")
|
|
1792
|
-
}, [C(t.$slots, "default", { active: i })], 10,
|
|
1816
|
+
}, [C(t.$slots, "default", { active: i })], 10, Ln)]),
|
|
1793
1817
|
_: 3
|
|
1794
1818
|
}, 8, ["disabled"]));
|
|
1795
1819
|
}
|
|
1796
|
-
}), U = Symbol("Combobox"),
|
|
1820
|
+
}), U = Symbol("Combobox"), zn = ["data-active"], Bn = {
|
|
1797
1821
|
key: 0,
|
|
1798
1822
|
class: "absolute inset-y-0 right-0 flex items-center pr-3 text-accent-pro-200"
|
|
1799
|
-
},
|
|
1823
|
+
}, Vn = /* @__PURE__ */ u({
|
|
1800
1824
|
__name: "ComboboxItem",
|
|
1801
1825
|
props: {
|
|
1802
1826
|
value: {},
|
|
@@ -1834,14 +1858,14 @@ var qe = j([
|
|
|
1834
1858
|
}, [C(t.$slots, "default", {
|
|
1835
1859
|
active: n,
|
|
1836
1860
|
selected: r
|
|
1837
|
-
}, () => [c(E(e.label), 1)])], 2), r ? (b(), o("span",
|
|
1861
|
+
}, () => [c(E(e.label), 1)])], 2), r ? (b(), o("span", Bn, [l(D(Ie), {
|
|
1838
1862
|
class: "size-5",
|
|
1839
1863
|
"aria-hidden": "true"
|
|
1840
|
-
})])) : a("", !0)], 10,
|
|
1864
|
+
})])) : a("", !0)], 10, zn)]),
|
|
1841
1865
|
_: 3
|
|
1842
1866
|
}, 8, ["value", "disabled"])), [[re, m.value]]);
|
|
1843
1867
|
}
|
|
1844
|
-
}),
|
|
1868
|
+
}), Hn = /* @__PURE__ */ u({
|
|
1845
1869
|
__name: "Combobox",
|
|
1846
1870
|
props: {
|
|
1847
1871
|
modelValue: {},
|
|
@@ -1860,7 +1884,7 @@ var qe = j([
|
|
|
1860
1884
|
}
|
|
1861
1885
|
if (typeof n != "object") return;
|
|
1862
1886
|
let r = n;
|
|
1863
|
-
r.type ===
|
|
1887
|
+
r.type === Vn && r.props?.value && r.props?.label && (e[r.props.value] = r.props.label), Array.isArray(r.children) && t(r.children);
|
|
1864
1888
|
let i = r.children;
|
|
1865
1889
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
1866
1890
|
let e = i.default;
|
|
@@ -1922,7 +1946,7 @@ var qe = j([
|
|
|
1922
1946
|
_: 3
|
|
1923
1947
|
}, 8, ["modelValue"]));
|
|
1924
1948
|
}
|
|
1925
|
-
}),
|
|
1949
|
+
}), Un = ["data-invalid"], Wn = /* @__PURE__ */ u({
|
|
1926
1950
|
__name: "ComboboxInput",
|
|
1927
1951
|
props: {
|
|
1928
1952
|
placeholder: { default: "Search..." },
|
|
@@ -1965,11 +1989,11 @@ var qe = j([
|
|
|
1965
1989
|
"aria-hidden": "true"
|
|
1966
1990
|
})]),
|
|
1967
1991
|
_: 1
|
|
1968
|
-
})], 10,
|
|
1992
|
+
})], 10, Un)]),
|
|
1969
1993
|
_: 1
|
|
1970
1994
|
}));
|
|
1971
1995
|
}
|
|
1972
|
-
}),
|
|
1996
|
+
}), Gn = /* @__PURE__ */ u({
|
|
1973
1997
|
__name: "ComboboxContent",
|
|
1974
1998
|
props: {
|
|
1975
1999
|
width: { default: "full" },
|
|
@@ -2004,18 +2028,21 @@ var qe = j([
|
|
|
2004
2028
|
"leave-to"
|
|
2005
2029
|
]));
|
|
2006
2030
|
}
|
|
2007
|
-
}),
|
|
2031
|
+
}), Kn = {
|
|
2008
2032
|
key: 0,
|
|
2009
2033
|
class: "px-3 py-6 text-center text-sm text-text-tertiary"
|
|
2010
|
-
},
|
|
2034
|
+
}, qn = /* @__PURE__ */ u({
|
|
2011
2035
|
__name: "ComboboxEmpty",
|
|
2012
2036
|
setup(e) {
|
|
2013
2037
|
let t = d(U);
|
|
2014
2038
|
if (!t) throw Error("ComboboxEmpty must be used inside Combobox");
|
|
2015
2039
|
let n = r(() => t.hasQuery.value && t.visibleCount.value === 0);
|
|
2016
|
-
return (e, t) => n.value ? (b(), o("div",
|
|
2040
|
+
return (e, t) => n.value ? (b(), o("div", Kn, [C(e.$slots, "default", {}, () => [t[0] ||= c("No results found.", -1)])])) : a("", !0);
|
|
2017
2041
|
}
|
|
2018
|
-
}),
|
|
2042
|
+
}), Jn = ["data-invalid"], Yn = {
|
|
2043
|
+
key: 0,
|
|
2044
|
+
class: "flex items-center gap-1 text-muted-foreground"
|
|
2045
|
+
}, Xn = [
|
|
2019
2046
|
"id",
|
|
2020
2047
|
"type",
|
|
2021
2048
|
"value",
|
|
@@ -2026,7 +2053,7 @@ var qe = j([
|
|
|
2026
2053
|
"aria-required",
|
|
2027
2054
|
"aria-describedby",
|
|
2028
2055
|
"data-invalid"
|
|
2029
|
-
],
|
|
2056
|
+
], Zn = /* @__PURE__ */ u({
|
|
2030
2057
|
inheritAttrs: !1,
|
|
2031
2058
|
__name: "Input",
|
|
2032
2059
|
props: /*@__PURE__*/ f({
|
|
@@ -2060,42 +2087,42 @@ var qe = j([
|
|
|
2060
2087
|
}),
|
|
2061
2088
|
emits: ["update:modelValue"],
|
|
2062
2089
|
setup(e) {
|
|
2063
|
-
let t = e, n = te(e, "modelValue"), i = d(L, null),
|
|
2090
|
+
let t = e, n = te(e, "modelValue"), i = d(L, null), c = O(), l = r(() => t.id ?? i?.id.value ?? c), u = r(() => t.invalid ?? i?.invalid.value ?? !1), f = r(() => t.disabled ?? i?.disabled.value ?? !1), m = r(() => t.required ?? i?.required.value ?? !1), g = r(() => i?.describedById.value), _ = r(() => F(B({
|
|
2064
2091
|
variant: t.variant,
|
|
2065
2092
|
size: t.size,
|
|
2066
|
-
invalid:
|
|
2067
|
-
}), t.class)),
|
|
2093
|
+
invalid: u.value
|
|
2094
|
+
}), t.class)), v = S(null), y = (e) => {
|
|
2068
2095
|
let t = e.target;
|
|
2069
|
-
t !==
|
|
2070
|
-
},
|
|
2096
|
+
t !== v.value && (t.closest("button, a, input, select, textarea, [tabindex]") || v.value?.focus());
|
|
2097
|
+
}, x = (e) => {
|
|
2071
2098
|
n.value = e.target.value;
|
|
2072
2099
|
};
|
|
2073
2100
|
return (t, r) => (b(), o("div", {
|
|
2074
|
-
class: h(
|
|
2075
|
-
"data-invalid":
|
|
2076
|
-
onClick:
|
|
2077
|
-
}, [
|
|
2101
|
+
class: h(_.value),
|
|
2102
|
+
"data-invalid": u.value || void 0,
|
|
2103
|
+
onClick: y
|
|
2104
|
+
}, [t.$slots.default ? (b(), o("span", Yn, [C(t.$slots, "default")])) : a("", !0), s("input", p({
|
|
2078
2105
|
ref_key: "inputRef",
|
|
2079
|
-
ref:
|
|
2106
|
+
ref: v
|
|
2080
2107
|
}, t.$attrs, {
|
|
2081
|
-
id:
|
|
2108
|
+
id: l.value,
|
|
2082
2109
|
type: e.type,
|
|
2083
2110
|
value: n.value ?? "",
|
|
2084
|
-
disabled:
|
|
2111
|
+
disabled: f.value,
|
|
2085
2112
|
placeholder: e.placeholder,
|
|
2086
|
-
required:
|
|
2087
|
-
"aria-invalid":
|
|
2088
|
-
"aria-required":
|
|
2089
|
-
"aria-describedby":
|
|
2090
|
-
"data-invalid":
|
|
2091
|
-
class: "h-full w-full bg-transparent text-
|
|
2092
|
-
onInput:
|
|
2093
|
-
}), null, 16,
|
|
2094
|
-
}
|
|
2095
|
-
}),
|
|
2113
|
+
required: m.value,
|
|
2114
|
+
"aria-invalid": u.value || void 0,
|
|
2115
|
+
"aria-required": m.value || void 0,
|
|
2116
|
+
"aria-describedby": g.value,
|
|
2117
|
+
"data-invalid": u.value || void 0,
|
|
2118
|
+
class: "h-full w-full bg-transparent text-foreground/70 outline-none transition-colors group-hover:text-foreground focus:text-foreground disabled:cursor-not-allowed",
|
|
2119
|
+
onInput: x
|
|
2120
|
+
}), null, 16, Xn)], 10, Jn));
|
|
2121
|
+
}
|
|
2122
|
+
}), Qn = ["data-invalid"], $n = {
|
|
2096
2123
|
key: 0,
|
|
2097
|
-
class: "flex items-center gap-1 text-
|
|
2098
|
-
},
|
|
2124
|
+
class: "flex items-center gap-1 text-muted-foreground"
|
|
2125
|
+
}, er = [
|
|
2099
2126
|
"id",
|
|
2100
2127
|
"rows",
|
|
2101
2128
|
"value",
|
|
@@ -2106,7 +2133,7 @@ var qe = j([
|
|
|
2106
2133
|
"aria-required",
|
|
2107
2134
|
"aria-describedby",
|
|
2108
2135
|
"data-invalid"
|
|
2109
|
-
],
|
|
2136
|
+
], tr = /* @__PURE__ */ u({
|
|
2110
2137
|
__name: "Textarea",
|
|
2111
2138
|
props: /*@__PURE__*/ f({
|
|
2112
2139
|
variant: { default: "primary" },
|
|
@@ -2143,7 +2170,7 @@ var qe = j([
|
|
|
2143
2170
|
}),
|
|
2144
2171
|
emits: ["update:modelValue"],
|
|
2145
2172
|
setup(e) {
|
|
2146
|
-
let t = e, n = te(e, "modelValue"), i = d(L, null), c = O(), l = r(() => t.id ?? i?.id.value ?? c), u = r(() => t.invalid ?? i?.invalid.value ?? !1), f = r(() => t.disabled ?? i?.disabled.value ?? !1), p = r(() => t.required ?? i?.required.value ?? !1), _ = r(() => i?.describedById.value), v = r(() => ({ minHeight:
|
|
2173
|
+
let t = e, n = te(e, "modelValue"), i = d(L, null), c = O(), l = r(() => t.id ?? i?.id.value ?? c), u = r(() => t.invalid ?? i?.invalid.value ?? !1), f = r(() => t.disabled ?? i?.disabled.value ?? !1), p = r(() => t.required ?? i?.required.value ?? !1), _ = r(() => i?.describedById.value), v = r(() => ({ minHeight: `calc(${t.rows}lh + 1rem)` })), y = S(), { triggerResize: x } = Ke({
|
|
2147
2174
|
element: y,
|
|
2148
2175
|
input: r(() => String(n.value ?? "")),
|
|
2149
2176
|
styleProp: "height"
|
|
@@ -2161,7 +2188,7 @@ var qe = j([
|
|
|
2161
2188
|
return (t, r) => (b(), o("div", {
|
|
2162
2189
|
class: h(w.value),
|
|
2163
2190
|
"data-invalid": u.value || void 0
|
|
2164
|
-
}, [t.$slots.default ? (b(), o("span",
|
|
2191
|
+
}, [t.$slots.default ? (b(), o("span", $n, [C(t.$slots, "default")])) : a("", !0), s("textarea", {
|
|
2165
2192
|
id: l.value,
|
|
2166
2193
|
ref_key: "textareaEl",
|
|
2167
2194
|
ref: y,
|
|
@@ -2175,18 +2202,18 @@ var qe = j([
|
|
|
2175
2202
|
"aria-required": p.value || void 0,
|
|
2176
2203
|
"aria-describedby": _.value,
|
|
2177
2204
|
"data-invalid": u.value || void 0,
|
|
2178
|
-
class: h(D(F)("w-full bg-transparent py-2 text-
|
|
2205
|
+
class: h(D(F)("w-full bg-transparent py-2 text-foreground/70 outline-none transition-colors group-hover:text-foreground focus:text-foreground disabled:cursor-not-allowed", e.autosize ? "resize-none max-h-60 overflow-y-auto scrollbar-thin pr-3.5" : "resize-none")),
|
|
2179
2206
|
onInput: T
|
|
2180
|
-
}, null, 46,
|
|
2207
|
+
}, null, 46, er)], 10, Qn));
|
|
2181
2208
|
}
|
|
2182
|
-
}),
|
|
2209
|
+
}), nr = [
|
|
2183
2210
|
"id",
|
|
2184
2211
|
"checked",
|
|
2185
2212
|
"aria-checked",
|
|
2186
2213
|
"aria-label",
|
|
2187
2214
|
"aria-describedby",
|
|
2188
2215
|
"disabled"
|
|
2189
|
-
],
|
|
2216
|
+
], rr = /* @__PURE__ */ u({
|
|
2190
2217
|
__name: "Switch",
|
|
2191
2218
|
props: {
|
|
2192
2219
|
modelValue: { type: Boolean },
|
|
@@ -2213,7 +2240,7 @@ var qe = j([
|
|
|
2213
2240
|
})), u = (e) => {
|
|
2214
2241
|
i("update:modelValue", e.target.checked);
|
|
2215
2242
|
};
|
|
2216
|
-
return (t, r) => (b(), o("label", { class: h(["relative inline-flex", l.value.disabled && "opacity-
|
|
2243
|
+
return (t, r) => (b(), o("label", { class: h(["relative inline-flex", l.value.disabled && "opacity-50"]) }, [s("input", {
|
|
2217
2244
|
id: l.value.id,
|
|
2218
2245
|
type: "checkbox",
|
|
2219
2246
|
role: "switch",
|
|
@@ -2224,9 +2251,9 @@ var qe = j([
|
|
|
2224
2251
|
disabled: l.value.disabled,
|
|
2225
2252
|
class: "peer sr-only",
|
|
2226
2253
|
onChange: u
|
|
2227
|
-
}, null, 40,
|
|
2254
|
+
}, null, 40, nr), s("div", { class: h(D(F)("h-6 w-11 cursor-pointer rounded-full bg-input transition-colors", "after:absolute after:inset-s-0.5 after:top-0.5 after:size-5 after:rounded-full after:border after:border-border-strong after:bg-background after:transition-all after:content-['']", "peer-checked:bg-primary peer-checked:after:translate-x-5 peer-checked:after:border-primary rtl:peer-checked:after:-translate-x-5", "peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-background", "peer-disabled:cursor-not-allowed", n.class)) }, null, 2)], 2));
|
|
2228
2255
|
}
|
|
2229
|
-
}),
|
|
2256
|
+
}), ir = /* @__PURE__ */ u({
|
|
2230
2257
|
__name: "Popover",
|
|
2231
2258
|
props: {
|
|
2232
2259
|
placement: { default: "bottom-end" },
|
|
@@ -2258,7 +2285,7 @@ var qe = j([
|
|
|
2258
2285
|
_: 3
|
|
2259
2286
|
}, 8, ["class"]));
|
|
2260
2287
|
}
|
|
2261
|
-
}),
|
|
2288
|
+
}), ar = /* @__PURE__ */ u({
|
|
2262
2289
|
__name: "PopoverTrigger",
|
|
2263
2290
|
props: {
|
|
2264
2291
|
asChild: { type: Boolean },
|
|
@@ -2283,7 +2310,7 @@ var qe = j([
|
|
|
2283
2310
|
_: 3
|
|
2284
2311
|
}));
|
|
2285
2312
|
}
|
|
2286
|
-
}),
|
|
2313
|
+
}), or = /* @__PURE__ */ u({
|
|
2287
2314
|
__name: "PopoverContent",
|
|
2288
2315
|
props: {
|
|
2289
2316
|
size: { default: "xs" },
|
|
@@ -2322,7 +2349,7 @@ var qe = j([
|
|
|
2322
2349
|
}
|
|
2323
2350
|
});
|
|
2324
2351
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2325
|
-
var
|
|
2352
|
+
var sr = (e) => e != null, cr = [
|
|
2326
2353
|
"input:not([inert]):not([inert] *)",
|
|
2327
2354
|
"select:not([inert]):not([inert] *)",
|
|
2328
2355
|
"textarea:not([inert]):not([inert] *)",
|
|
@@ -2334,7 +2361,7 @@ var cr = (e) => e != null, lr = [
|
|
|
2334
2361
|
"[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)",
|
|
2335
2362
|
"details>summary:first-of-type:not([inert]):not([inert] *)",
|
|
2336
2363
|
"details:not([inert]):not([inert] *)"
|
|
2337
|
-
], W = /* #__PURE__ */
|
|
2364
|
+
], W = /* #__PURE__ */ cr.join(","), lr = typeof Element > "u", G = lr ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, K = !lr && Element.prototype.getRootNode ? function(e) {
|
|
2338
2365
|
return e?.getRootNode?.call(e);
|
|
2339
2366
|
} : function(e) {
|
|
2340
2367
|
return e?.ownerDocument;
|
|
@@ -2342,10 +2369,10 @@ var cr = (e) => e != null, lr = [
|
|
|
2342
2369
|
t === void 0 && (t = !0);
|
|
2343
2370
|
var n = e?.getAttribute?.call(e, "inert");
|
|
2344
2371
|
return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : q(e.parentNode));
|
|
2345
|
-
},
|
|
2372
|
+
}, ur = function(e) {
|
|
2346
2373
|
var t = e?.getAttribute?.call(e, "contenteditable");
|
|
2347
2374
|
return t === "" || t === "true";
|
|
2348
|
-
},
|
|
2375
|
+
}, dr = function(e, t, n) {
|
|
2349
2376
|
if (q(e)) return [];
|
|
2350
2377
|
var r = Array.prototype.slice.apply(e.querySelectorAll(W));
|
|
2351
2378
|
return t && G.call(e, W) && r.unshift(e), r = r.filter(n), r;
|
|
@@ -2371,27 +2398,27 @@ var cr = (e) => e != null, lr = [
|
|
|
2371
2398
|
}
|
|
2372
2399
|
}
|
|
2373
2400
|
return r;
|
|
2374
|
-
},
|
|
2401
|
+
}, fr = function(e) {
|
|
2375
2402
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
2376
2403
|
}, Y = function(e) {
|
|
2377
2404
|
if (!e) throw Error("No node provided");
|
|
2378
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
2379
|
-
},
|
|
2405
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || ur(e)) && !fr(e) ? 0 : e.tabIndex;
|
|
2406
|
+
}, pr = function(e, t) {
|
|
2380
2407
|
var n = Y(e);
|
|
2381
|
-
return n < 0 && t && !
|
|
2382
|
-
},
|
|
2408
|
+
return n < 0 && t && !fr(e) ? 0 : n;
|
|
2409
|
+
}, mr = function(e, t) {
|
|
2383
2410
|
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
2384
|
-
},
|
|
2411
|
+
}, hr = function(e) {
|
|
2385
2412
|
return e.tagName === "INPUT";
|
|
2413
|
+
}, gr = function(e) {
|
|
2414
|
+
return hr(e) && e.type === "hidden";
|
|
2386
2415
|
}, _r = function(e) {
|
|
2387
|
-
return gr(e) && e.type === "hidden";
|
|
2388
|
-
}, vr = function(e) {
|
|
2389
2416
|
return e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(e) {
|
|
2390
2417
|
return e.tagName === "SUMMARY";
|
|
2391
2418
|
});
|
|
2392
|
-
},
|
|
2419
|
+
}, vr = function(e, t) {
|
|
2393
2420
|
for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n];
|
|
2394
|
-
},
|
|
2421
|
+
}, yr = function(e) {
|
|
2395
2422
|
if (!e.name) return !0;
|
|
2396
2423
|
var t = e.form || K(e), n = function(e) {
|
|
2397
2424
|
return t.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
|
|
@@ -2402,13 +2429,13 @@ var cr = (e) => e != null, lr = [
|
|
|
2402
2429
|
} catch (e) {
|
|
2403
2430
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message), !1;
|
|
2404
2431
|
}
|
|
2405
|
-
var i =
|
|
2432
|
+
var i = vr(r, e.form);
|
|
2406
2433
|
return !i || i === e;
|
|
2434
|
+
}, br = function(e) {
|
|
2435
|
+
return hr(e) && e.type === "radio";
|
|
2407
2436
|
}, xr = function(e) {
|
|
2408
|
-
return
|
|
2437
|
+
return br(e) && !yr(e);
|
|
2409
2438
|
}, Sr = function(e) {
|
|
2410
|
-
return xr(e) && !br(e);
|
|
2411
|
-
}, Cr = function(e) {
|
|
2412
2439
|
var t = e && K(e), n = t?.host, r = !1;
|
|
2413
2440
|
if (t && t !== e) {
|
|
2414
2441
|
var i, a, o;
|
|
@@ -2418,10 +2445,10 @@ var cr = (e) => e != null, lr = [
|
|
|
2418
2445
|
}
|
|
2419
2446
|
}
|
|
2420
2447
|
return r;
|
|
2421
|
-
},
|
|
2448
|
+
}, Cr = function(e) {
|
|
2422
2449
|
var t = e.getBoundingClientRect(), n = t.width, r = t.height;
|
|
2423
2450
|
return n === 0 && r === 0;
|
|
2424
|
-
},
|
|
2451
|
+
}, wr = function(e, t) {
|
|
2425
2452
|
var n = t.displayCheck, r = t.getShadowRoot;
|
|
2426
2453
|
if (n === "full-native" && "checkVisibility" in e) return !e.checkVisibility({
|
|
2427
2454
|
checkOpacity: !1,
|
|
@@ -2437,16 +2464,16 @@ var cr = (e) => e != null, lr = [
|
|
|
2437
2464
|
if (typeof r == "function") {
|
|
2438
2465
|
for (var a = e; e;) {
|
|
2439
2466
|
var o = e.parentElement, s = K(e);
|
|
2440
|
-
if (o && !o.shadowRoot && r(o) === !0) return
|
|
2467
|
+
if (o && !o.shadowRoot && r(o) === !0) return Cr(e);
|
|
2441
2468
|
e = e.assignedSlot ? e.assignedSlot : !o && s !== e.ownerDocument ? s.host : o;
|
|
2442
2469
|
}
|
|
2443
2470
|
e = a;
|
|
2444
2471
|
}
|
|
2445
|
-
if (
|
|
2472
|
+
if (Sr(e)) return !e.getClientRects().length;
|
|
2446
2473
|
if (n !== "legacy-full") return !0;
|
|
2447
|
-
} else if (n === "non-zero-area") return
|
|
2474
|
+
} else if (n === "non-zero-area") return Cr(e);
|
|
2448
2475
|
return !1;
|
|
2449
|
-
},
|
|
2476
|
+
}, Tr = function(e) {
|
|
2450
2477
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t;) {
|
|
2451
2478
|
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
2452
2479
|
for (var n = 0; n < t.children.length; n++) {
|
|
@@ -2458,17 +2485,17 @@ var cr = (e) => e != null, lr = [
|
|
|
2458
2485
|
t = t.parentElement;
|
|
2459
2486
|
}
|
|
2460
2487
|
return !1;
|
|
2488
|
+
}, Er = function(e, t) {
|
|
2489
|
+
return !(t.disabled || gr(t) || wr(t, e) || _r(t) || Tr(t));
|
|
2461
2490
|
}, Dr = function(e, t) {
|
|
2462
|
-
return !(
|
|
2463
|
-
}, Or = function(e
|
|
2464
|
-
return !(Sr(t) || Y(t) < 0 || !Dr(e, t));
|
|
2465
|
-
}, kr = function(e) {
|
|
2491
|
+
return !(xr(t) || Y(t) < 0 || !Er(e, t));
|
|
2492
|
+
}, Or = function(e) {
|
|
2466
2493
|
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
2467
2494
|
return !!(isNaN(t) || t >= 0);
|
|
2468
|
-
},
|
|
2495
|
+
}, kr = function(e) {
|
|
2469
2496
|
var t = [], n = [];
|
|
2470
2497
|
return e.forEach(function(e, r) {
|
|
2471
|
-
var i = !!e.scopeParent, a = i ? e.scopeParent : e, o =
|
|
2498
|
+
var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = pr(a, i), s = i ? kr(e.candidates) : a;
|
|
2472
2499
|
o === 0 ? i ? t.push.apply(t, s) : t.push(a) : n.push({
|
|
2473
2500
|
documentOrder: r,
|
|
2474
2501
|
tabIndex: o,
|
|
@@ -2476,43 +2503,43 @@ var cr = (e) => e != null, lr = [
|
|
|
2476
2503
|
isScope: i,
|
|
2477
2504
|
content: s
|
|
2478
2505
|
});
|
|
2479
|
-
}), n.sort(
|
|
2506
|
+
}), n.sort(mr).reduce(function(e, t) {
|
|
2480
2507
|
return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e;
|
|
2481
2508
|
}, []).concat(t);
|
|
2482
|
-
},
|
|
2483
|
-
return t ||= {},
|
|
2484
|
-
filter:
|
|
2509
|
+
}, Ar = function(e, t) {
|
|
2510
|
+
return t ||= {}, kr(t.getShadowRoot ? J([e], t.includeContainer, {
|
|
2511
|
+
filter: Dr.bind(null, t),
|
|
2485
2512
|
flatten: !1,
|
|
2486
2513
|
getShadowRoot: t.getShadowRoot,
|
|
2487
|
-
shadowRootFilter:
|
|
2488
|
-
}) :
|
|
2489
|
-
},
|
|
2514
|
+
shadowRootFilter: Or
|
|
2515
|
+
}) : dr(e, t.includeContainer, Dr.bind(null, t)));
|
|
2516
|
+
}, jr = function(e, t) {
|
|
2490
2517
|
return t ||= {}, t.getShadowRoot ? J([e], t.includeContainer, {
|
|
2491
|
-
filter:
|
|
2518
|
+
filter: Er.bind(null, t),
|
|
2492
2519
|
flatten: !0,
|
|
2493
2520
|
getShadowRoot: t.getShadowRoot
|
|
2494
|
-
}) :
|
|
2521
|
+
}) : dr(e, t.includeContainer, Er.bind(null, t));
|
|
2495
2522
|
}, X = function(e, t) {
|
|
2496
2523
|
if (t ||= {}, !e) throw Error("No node provided");
|
|
2497
|
-
return G.call(e, W) === !1 ? !1 :
|
|
2498
|
-
},
|
|
2524
|
+
return G.call(e, W) === !1 ? !1 : Dr(t, e);
|
|
2525
|
+
}, Mr = /* #__PURE__ */ cr.concat("iframe:not([inert]):not([inert] *)").join(","), Nr = function(e, t) {
|
|
2499
2526
|
if (t ||= {}, !e) throw Error("No node provided");
|
|
2500
|
-
return G.call(e,
|
|
2527
|
+
return G.call(e, Mr) === !1 ? !1 : Er(t, e);
|
|
2501
2528
|
};
|
|
2502
2529
|
//#endregion
|
|
2503
2530
|
//#region node_modules/focus-trap/dist/focus-trap.esm.js
|
|
2504
|
-
function
|
|
2531
|
+
function Pr(e, t) {
|
|
2505
2532
|
(t == null || t > e.length) && (t = e.length);
|
|
2506
2533
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2507
2534
|
return r;
|
|
2508
2535
|
}
|
|
2509
|
-
function
|
|
2510
|
-
if (Array.isArray(e)) return
|
|
2536
|
+
function Fr(e) {
|
|
2537
|
+
if (Array.isArray(e)) return Pr(e);
|
|
2511
2538
|
}
|
|
2512
|
-
function
|
|
2539
|
+
function Ir(e, t) {
|
|
2513
2540
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2514
2541
|
if (!n) {
|
|
2515
|
-
if (Array.isArray(e) || (n =
|
|
2542
|
+
if (Array.isArray(e) || (n = Gr(e)) || t) {
|
|
2516
2543
|
n && (e = n);
|
|
2517
2544
|
var r = 0, i = function() {};
|
|
2518
2545
|
return {
|
|
@@ -2552,21 +2579,21 @@ function Lr(e, t) {
|
|
|
2552
2579
|
}
|
|
2553
2580
|
};
|
|
2554
2581
|
}
|
|
2555
|
-
function
|
|
2556
|
-
return (t =
|
|
2582
|
+
function Lr(e, t, n) {
|
|
2583
|
+
return (t = Wr(t)) in e ? Object.defineProperty(e, t, {
|
|
2557
2584
|
value: n,
|
|
2558
2585
|
enumerable: !0,
|
|
2559
2586
|
configurable: !0,
|
|
2560
2587
|
writable: !0
|
|
2561
2588
|
}) : e[t] = n, e;
|
|
2562
2589
|
}
|
|
2563
|
-
function
|
|
2590
|
+
function Rr(e) {
|
|
2564
2591
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2565
2592
|
}
|
|
2566
|
-
function
|
|
2593
|
+
function zr() {
|
|
2567
2594
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2568
2595
|
}
|
|
2569
|
-
function
|
|
2596
|
+
function Br(e, t) {
|
|
2570
2597
|
var n = Object.keys(e);
|
|
2571
2598
|
if (Object.getOwnPropertySymbols) {
|
|
2572
2599
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2576,21 +2603,21 @@ function Vr(e, t) {
|
|
|
2576
2603
|
}
|
|
2577
2604
|
return n;
|
|
2578
2605
|
}
|
|
2579
|
-
function
|
|
2606
|
+
function Vr(e) {
|
|
2580
2607
|
for (var t = 1; t < arguments.length; t++) {
|
|
2581
2608
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2582
|
-
t % 2 ?
|
|
2583
|
-
|
|
2584
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2609
|
+
t % 2 ? Br(Object(n), !0).forEach(function(t) {
|
|
2610
|
+
Lr(e, t, n[t]);
|
|
2611
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Br(Object(n)).forEach(function(t) {
|
|
2585
2612
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2586
2613
|
});
|
|
2587
2614
|
}
|
|
2588
2615
|
return e;
|
|
2589
2616
|
}
|
|
2590
|
-
function
|
|
2591
|
-
return
|
|
2617
|
+
function Hr(e) {
|
|
2618
|
+
return Fr(e) || Rr(e) || Gr(e) || zr();
|
|
2592
2619
|
}
|
|
2593
|
-
function
|
|
2620
|
+
function Ur(e, t) {
|
|
2594
2621
|
if (typeof e != "object" || !e) return e;
|
|
2595
2622
|
var n = e[Symbol.toPrimitive];
|
|
2596
2623
|
if (n !== void 0) {
|
|
@@ -2600,15 +2627,15 @@ function Wr(e, t) {
|
|
|
2600
2627
|
}
|
|
2601
2628
|
return (t === "string" ? String : Number)(e);
|
|
2602
2629
|
}
|
|
2603
|
-
function
|
|
2604
|
-
var t =
|
|
2630
|
+
function Wr(e) {
|
|
2631
|
+
var t = Ur(e, "string");
|
|
2605
2632
|
return typeof t == "symbol" ? t : t + "";
|
|
2606
2633
|
}
|
|
2607
|
-
function
|
|
2634
|
+
function Gr(e, t) {
|
|
2608
2635
|
if (e) {
|
|
2609
|
-
if (typeof e == "string") return
|
|
2636
|
+
if (typeof e == "string") return Pr(e, t);
|
|
2610
2637
|
var n = {}.toString.call(e).slice(8, -1);
|
|
2611
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2638
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Pr(e, t) : void 0;
|
|
2612
2639
|
}
|
|
2613
2640
|
}
|
|
2614
2641
|
var Z = {
|
|
@@ -2631,32 +2658,32 @@ var Z = {
|
|
|
2631
2658
|
var t = Z.getActiveTrap(e);
|
|
2632
2659
|
t && !t._isManuallyPaused() && t._setPausedState(!1);
|
|
2633
2660
|
}
|
|
2634
|
-
},
|
|
2661
|
+
}, Kr = function(e) {
|
|
2635
2662
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
2636
|
-
},
|
|
2663
|
+
}, qr = function(e) {
|
|
2637
2664
|
return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
|
|
2638
2665
|
}, Q = function(e) {
|
|
2639
2666
|
return e?.key === "Tab" || e?.keyCode === 9;
|
|
2640
|
-
},
|
|
2667
|
+
}, Jr = function(e) {
|
|
2641
2668
|
return Q(e) && !e.shiftKey;
|
|
2642
|
-
},
|
|
2669
|
+
}, Yr = function(e) {
|
|
2643
2670
|
return Q(e) && e.shiftKey;
|
|
2644
|
-
},
|
|
2671
|
+
}, Xr = function(e) {
|
|
2645
2672
|
return setTimeout(e, 0);
|
|
2646
2673
|
}, $ = function(e) {
|
|
2647
2674
|
var t = [...arguments].slice(1);
|
|
2648
2675
|
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
2649
|
-
},
|
|
2676
|
+
}, Zr = function(e) {
|
|
2650
2677
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
2651
|
-
},
|
|
2652
|
-
var n = t?.document || document, r = t?.trapStack ||
|
|
2678
|
+
}, Qr = [], $r = function(e, t) {
|
|
2679
|
+
var n = t?.document || document, r = t?.trapStack || Qr, i = Vr({
|
|
2653
2680
|
returnFocusOnDeactivate: !0,
|
|
2654
2681
|
escapeDeactivates: !0,
|
|
2655
2682
|
delayInitialFocus: !0,
|
|
2656
2683
|
delayReturnFocus: !0,
|
|
2657
2684
|
isolateSubtrees: !1,
|
|
2658
|
-
isKeyForward:
|
|
2659
|
-
isKeyBackward:
|
|
2685
|
+
isKeyForward: Jr,
|
|
2686
|
+
isKeyBackward: Yr
|
|
2660
2687
|
}, t), a = {
|
|
2661
2688
|
containers: [],
|
|
2662
2689
|
containerGroups: [],
|
|
@@ -2682,7 +2709,7 @@ var Z = {
|
|
|
2682
2709
|
});
|
|
2683
2710
|
}, l = function(e) {
|
|
2684
2711
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.hasFallback, a = r === void 0 ? !1 : r, o = t.params, s = o === void 0 ? [] : o, c = i[e];
|
|
2685
|
-
if (typeof c == "function" && (c = c.apply(void 0,
|
|
2712
|
+
if (typeof c == "function" && (c = c.apply(void 0, Hr(s))), c === !0 && (c = void 0), !c) {
|
|
2686
2713
|
if (c === void 0 || c === !1) return c;
|
|
2687
2714
|
throw Error(`\`${e}\` was specified but was not a node, or did not return a node`);
|
|
2688
2715
|
}
|
|
@@ -2702,7 +2729,7 @@ var Z = {
|
|
|
2702
2729
|
}, d = function() {
|
|
2703
2730
|
var e = l("initialFocus", { hasFallback: !0 });
|
|
2704
2731
|
if (e === !1) return !1;
|
|
2705
|
-
if (e === void 0 || e && !
|
|
2732
|
+
if (e === void 0 || e && !Nr(e, i.tabbableOptions)) {
|
|
2706
2733
|
var t = u(n);
|
|
2707
2734
|
if (c(t) >= 0) e = t;
|
|
2708
2735
|
else {
|
|
@@ -2714,7 +2741,7 @@ var Z = {
|
|
|
2714
2741
|
return e;
|
|
2715
2742
|
}, f = function() {
|
|
2716
2743
|
if (a.containerGroups = a.containers.map(function(e) {
|
|
2717
|
-
var t =
|
|
2744
|
+
var t = Ar(e, i.tabbableOptions), n = jr(e, i.tabbableOptions), r = t.length > 0 ? t[0] : void 0, a = t.length > 0 ? t[t.length - 1] : void 0, o = n.find(function(e) {
|
|
2718
2745
|
return X(e);
|
|
2719
2746
|
}), s = n.slice().reverse().find(function(e) {
|
|
2720
2747
|
return X(e);
|
|
@@ -2751,14 +2778,14 @@ var Z = {
|
|
|
2751
2778
|
p(d());
|
|
2752
2779
|
return;
|
|
2753
2780
|
}
|
|
2754
|
-
e.focus({ preventScroll: !!i.preventScroll }), a.mostRecentlyFocusedNode = e,
|
|
2781
|
+
e.focus({ preventScroll: !!i.preventScroll }), a.mostRecentlyFocusedNode = e, Kr(e) && e.select();
|
|
2755
2782
|
}
|
|
2756
2783
|
}, m = function(e) {
|
|
2757
2784
|
var t = l("setReturnFocus", { params: [e] });
|
|
2758
2785
|
return t || (t === !1 ? !1 : e);
|
|
2759
2786
|
}, h = function(e) {
|
|
2760
2787
|
var t = e.target, n = e.event, r = e.isBackward, o = r === void 0 ? !1 : r;
|
|
2761
|
-
t ||=
|
|
2788
|
+
t ||= Zr(n), f();
|
|
2762
2789
|
var s = null;
|
|
2763
2790
|
if (a.tabbableGroups.length > 0) {
|
|
2764
2791
|
var u = c(t, n), d = u >= 0 ? a.containerGroups[u] : void 0;
|
|
@@ -2768,7 +2795,7 @@ var Z = {
|
|
|
2768
2795
|
var n = e.firstTabbableNode;
|
|
2769
2796
|
return t === n;
|
|
2770
2797
|
});
|
|
2771
|
-
if (p < 0 && (d.container === t ||
|
|
2798
|
+
if (p < 0 && (d.container === t || Nr(t, i.tabbableOptions) && !X(t, i.tabbableOptions) && !d.nextTabbableNode(t, !1)) && (p = u), p >= 0) {
|
|
2772
2799
|
var m = p === 0 ? a.tabbableGroups.length - 1 : p - 1, h = a.tabbableGroups[m];
|
|
2773
2800
|
s = Y(t) >= 0 ? h.lastTabbableNode : h.lastDomTabbableNode;
|
|
2774
2801
|
} else Q(n) || (s = d.nextTabbableNode(t, !1));
|
|
@@ -2777,7 +2804,7 @@ var Z = {
|
|
|
2777
2804
|
var n = e.lastTabbableNode;
|
|
2778
2805
|
return t === n;
|
|
2779
2806
|
});
|
|
2780
|
-
if (g < 0 && (d.container === t ||
|
|
2807
|
+
if (g < 0 && (d.container === t || Nr(t, i.tabbableOptions) && !X(t, i.tabbableOptions) && !d.nextTabbableNode(t)) && (g = u), g >= 0) {
|
|
2781
2808
|
var _ = g === a.tabbableGroups.length - 1 ? 0 : g + 1, v = a.tabbableGroups[_];
|
|
2782
2809
|
s = Y(t) >= 0 ? v.firstTabbableNode : v.firstDomTabbableNode;
|
|
2783
2810
|
} else Q(n) || (s = d.nextTabbableNode(t));
|
|
@@ -2785,7 +2812,7 @@ var Z = {
|
|
|
2785
2812
|
} else s = l("fallbackFocus");
|
|
2786
2813
|
return s;
|
|
2787
2814
|
}, g = function(e) {
|
|
2788
|
-
if (!(c(
|
|
2815
|
+
if (!(c(Zr(e), e) >= 0)) {
|
|
2789
2816
|
if ($(i.clickOutsideDeactivates, e)) {
|
|
2790
2817
|
o.deactivate({ returnFocus: i.returnFocusOnDeactivate });
|
|
2791
2818
|
return;
|
|
@@ -2793,7 +2820,7 @@ var Z = {
|
|
|
2793
2820
|
$(i.allowOutsideClick, e) || e.preventDefault();
|
|
2794
2821
|
}
|
|
2795
2822
|
}, _ = function(e) {
|
|
2796
|
-
var t =
|
|
2823
|
+
var t = Zr(e), n = c(t, e) >= 0;
|
|
2797
2824
|
if (n || t instanceof Document) n && (a.mostRecentlyFocusedNode = t);
|
|
2798
2825
|
else {
|
|
2799
2826
|
e.stopImmediatePropagation();
|
|
@@ -2829,15 +2856,15 @@ var Z = {
|
|
|
2829
2856
|
}, y = function(e) {
|
|
2830
2857
|
(i.isKeyForward(e) || i.isKeyBackward(e)) && v(e, i.isKeyBackward(e));
|
|
2831
2858
|
}, b = function(e) {
|
|
2832
|
-
|
|
2859
|
+
qr(e) && $(i.escapeDeactivates, e) !== !1 && (e.preventDefault(), o.deactivate());
|
|
2833
2860
|
}, x = function(e) {
|
|
2834
|
-
c(
|
|
2861
|
+
c(Zr(e), e) >= 0 || $(i.clickOutsideDeactivates, e) || $(i.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
|
|
2835
2862
|
}, S = function() {
|
|
2836
2863
|
if (a.active) {
|
|
2837
2864
|
Z.activateTrap(r, o);
|
|
2838
2865
|
var e;
|
|
2839
2866
|
return i.delayInitialFocus ? e = new Promise(function(e) {
|
|
2840
|
-
a.delayInitialFocusTimer =
|
|
2867
|
+
a.delayInitialFocusTimer = Xr(function() {
|
|
2841
2868
|
p(d()), e();
|
|
2842
2869
|
});
|
|
2843
2870
|
}) : p(d()), n.addEventListener("focusin", _, !0), n.addEventListener("mousedown", g, {
|
|
@@ -2856,7 +2883,7 @@ var Z = {
|
|
|
2856
2883
|
}
|
|
2857
2884
|
}, C = function(e) {
|
|
2858
2885
|
a.active && !a.paused && o._setSubtreeIsolation(!1), a.adjacentElements.clear(), a.alreadySilent.clear();
|
|
2859
|
-
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r =
|
|
2886
|
+
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = Ir(e), i;
|
|
2860
2887
|
try {
|
|
2861
2888
|
for (r.s(); !(i = r.n()).done;) {
|
|
2862
2889
|
var s = i.value;
|
|
@@ -2865,7 +2892,7 @@ var Z = {
|
|
|
2865
2892
|
t.add(l);
|
|
2866
2893
|
var u = l.parentElement, d = [];
|
|
2867
2894
|
u ? d = u.children : !u && c && (d = l.getRootNode().children, u = l.getRootNode().host, c = typeof ShadowRoot < "u" && u.getRootNode() instanceof ShadowRoot);
|
|
2868
|
-
var f =
|
|
2895
|
+
var f = Ir(d), p;
|
|
2869
2896
|
try {
|
|
2870
2897
|
for (f.s(); !(p = f.n()).done;) {
|
|
2871
2898
|
var m = p.value;
|
|
@@ -2942,7 +2969,7 @@ var Z = {
|
|
|
2942
2969
|
},
|
|
2943
2970
|
deactivate: function(e) {
|
|
2944
2971
|
if (!a.active) return this;
|
|
2945
|
-
var t =
|
|
2972
|
+
var t = Vr({
|
|
2946
2973
|
onDeactivate: i.onDeactivate,
|
|
2947
2974
|
onPostDeactivate: i.onPostDeactivate,
|
|
2948
2975
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
@@ -2953,7 +2980,7 @@ var Z = {
|
|
|
2953
2980
|
var f = function() {
|
|
2954
2981
|
d && p(m(a.nodeFocusedBeforeActivation)), c?.({ trap: o });
|
|
2955
2982
|
}, h = function() {
|
|
2956
|
-
u && d ?
|
|
2983
|
+
u && d ? Xr(f) : f();
|
|
2957
2984
|
};
|
|
2958
2985
|
return d && l ? (l(m(a.nodeFocusedBeforeActivation)).then(h, h), this) : (h(), this);
|
|
2959
2986
|
},
|
|
@@ -3013,13 +3040,13 @@ var Z = {
|
|
|
3013
3040
|
};
|
|
3014
3041
|
//#endregion
|
|
3015
3042
|
//#region node_modules/@vueuse/integrations/dist/useFocusTrap.js
|
|
3016
|
-
function
|
|
3043
|
+
function ei(e, t = {}) {
|
|
3017
3044
|
let n, { immediate: i, ...a } = t, o = T(!1), s = T(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
3018
3045
|
return k(r(() => Ve(ee(e)).map((e) => {
|
|
3019
3046
|
let t = ee(e);
|
|
3020
3047
|
return typeof t == "string" ? t : Ue(t);
|
|
3021
|
-
}).filter(
|
|
3022
|
-
if (e.length) if (!n) n =
|
|
3048
|
+
}).filter(sr)), (e) => {
|
|
3049
|
+
if (e.length) if (!n) n = $r(e, {
|
|
3023
3050
|
...a,
|
|
3024
3051
|
onActivate(e) {
|
|
3025
3052
|
o.value = !0, t.onActivate && t.onActivate(e);
|
|
@@ -3047,11 +3074,11 @@ function ti(e, t = {}) {
|
|
|
3047
3074
|
}
|
|
3048
3075
|
//#endregion
|
|
3049
3076
|
//#region lib/components/overlays/modal/modal-context.ts
|
|
3050
|
-
var
|
|
3051
|
-
let e = d(
|
|
3077
|
+
var ti = Symbol("ModalContext"), ni = (e) => x(ti, e), ri = () => {
|
|
3078
|
+
let e = d(ti, null);
|
|
3052
3079
|
if (!e) throw Error("Modal parts must be used inside <Modal>.");
|
|
3053
3080
|
return e;
|
|
3054
|
-
},
|
|
3081
|
+
}, ii = j(["relative flex max-h-[calc(100dvh-100px)] w-full flex-col overflow-y-auto", "rounded-t-3xl md:rounded-3xl border border-border-subtle bg-popover text-popover-foreground shadow-xs"].join(" "), {
|
|
3055
3082
|
variants: { size: {
|
|
3056
3083
|
sm: "md:max-w-sm",
|
|
3057
3084
|
md: "md:max-w-md",
|
|
@@ -3064,7 +3091,7 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3064
3091
|
full: "md:max-w-full h-full rounded-t-none md:rounded-none"
|
|
3065
3092
|
} },
|
|
3066
3093
|
defaultVariants: { size: "md" }
|
|
3067
|
-
}),
|
|
3094
|
+
}), ai = ["aria-labelledby", "aria-describedby"], oi = /* @__PURE__ */ u({
|
|
3068
3095
|
__name: "Modal",
|
|
3069
3096
|
props: {
|
|
3070
3097
|
modelValue: { type: Boolean },
|
|
@@ -3098,26 +3125,29 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3098
3125
|
Be("Escape", (e) => {
|
|
3099
3126
|
c.modelValue && (e.preventDefault(), d("escape"));
|
|
3100
3127
|
});
|
|
3101
|
-
let m = Ge(typeof document < "u" ? document.body : null), g = S(null), { activate:
|
|
3128
|
+
let m = Ge(typeof document < "u" ? document.body : null), g = S(null), { activate: v, deactivate: y } = ei(g, {
|
|
3102
3129
|
immediate: !1,
|
|
3103
3130
|
escapeDeactivates: !1,
|
|
3104
|
-
allowOutsideClick: !0
|
|
3105
|
-
|
|
3106
|
-
|
|
3131
|
+
allowOutsideClick: !0,
|
|
3132
|
+
fallbackFocus: () => g.value
|
|
3133
|
+
}), x = S(void 0), w = S(void 0);
|
|
3134
|
+
return ni({
|
|
3107
3135
|
attemptClose: (e) => {
|
|
3108
3136
|
d(e);
|
|
3109
3137
|
},
|
|
3110
3138
|
close: f,
|
|
3111
|
-
labelId:
|
|
3139
|
+
labelId: x,
|
|
3112
3140
|
setLabelId: (e) => {
|
|
3113
|
-
|
|
3141
|
+
x.value = e;
|
|
3114
3142
|
},
|
|
3115
|
-
descriptionId:
|
|
3143
|
+
descriptionId: w,
|
|
3116
3144
|
setDescriptionId: (e) => {
|
|
3117
|
-
|
|
3145
|
+
w.value = e;
|
|
3118
3146
|
}
|
|
3119
3147
|
}), k(() => c.modelValue, (e) => {
|
|
3120
|
-
m.value = e, e ||
|
|
3148
|
+
m.value = e, e || y();
|
|
3149
|
+
}, { immediate: !0 }), _(() => {
|
|
3150
|
+
m.value = !1, y();
|
|
3121
3151
|
}), (r, u) => (b(), i(t, { to: "body" }, [l(n, {
|
|
3122
3152
|
"enter-active-class": "transition-opacity duration-200",
|
|
3123
3153
|
"enter-from-class": "opacity-0",
|
|
@@ -3128,7 +3158,7 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3128
3158
|
}, {
|
|
3129
3159
|
default: A(() => [e.modelValue ? (b(), o("div", {
|
|
3130
3160
|
key: 0,
|
|
3131
|
-
class: "fixed inset-0 z-50 flex items-end justify-center bg-
|
|
3161
|
+
class: "fixed inset-0 z-50 flex items-end justify-center bg-black/50 backdrop-blur-xs md:items-center",
|
|
3132
3162
|
onClick: oe(p, ["self"])
|
|
3133
3163
|
}, [l(n, {
|
|
3134
3164
|
appear: "",
|
|
@@ -3138,23 +3168,24 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3138
3168
|
"leave-active-class": "transition-all duration-200",
|
|
3139
3169
|
"leave-from-class": "opacity-100 scale-100",
|
|
3140
3170
|
"leave-to-class": "opacity-0 scale-95",
|
|
3141
|
-
onAfterEnter: u[0] ||= () => D(
|
|
3171
|
+
onAfterEnter: u[0] ||= () => D(v)()
|
|
3142
3172
|
}, {
|
|
3143
3173
|
default: A(() => [s("div", {
|
|
3144
3174
|
ref_key: "dialogRef",
|
|
3145
3175
|
ref: g,
|
|
3146
|
-
|
|
3176
|
+
tabindex: "-1",
|
|
3177
|
+
class: h(D(F)(D(ii)({ size: e.size }), "focus:outline-none", c.class)),
|
|
3147
3178
|
role: "dialog",
|
|
3148
3179
|
"aria-modal": "true",
|
|
3149
|
-
"aria-labelledby":
|
|
3150
|
-
"aria-describedby":
|
|
3151
|
-
}, [C(r.$slots, "default", { close: f })], 10,
|
|
3180
|
+
"aria-labelledby": x.value,
|
|
3181
|
+
"aria-describedby": w.value
|
|
3182
|
+
}, [C(r.$slots, "default", { close: f })], 10, ai)]),
|
|
3152
3183
|
_: 3
|
|
3153
3184
|
})])) : a("", !0)]),
|
|
3154
3185
|
_: 3
|
|
3155
3186
|
})]));
|
|
3156
3187
|
}
|
|
3157
|
-
}),
|
|
3188
|
+
}), si = /* @__PURE__ */ u({
|
|
3158
3189
|
__name: "ModalHeader",
|
|
3159
3190
|
props: { class: { type: [
|
|
3160
3191
|
Boolean,
|
|
@@ -3167,7 +3198,7 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3167
3198
|
let t = e;
|
|
3168
3199
|
return (e, n) => (b(), o("div", { class: h(D(F)("relative flex flex-col px-6 pb-2 pr-12 pt-4", t.class)) }, [C(e.$slots, "default")], 2));
|
|
3169
3200
|
}
|
|
3170
|
-
}),
|
|
3201
|
+
}), ci = ["id"], li = /* @__PURE__ */ u({
|
|
3171
3202
|
__name: "ModalTitle",
|
|
3172
3203
|
props: { class: { type: [
|
|
3173
3204
|
Boolean,
|
|
@@ -3177,13 +3208,13 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3177
3208
|
Array
|
|
3178
3209
|
] } },
|
|
3179
3210
|
setup(e) {
|
|
3180
|
-
let t = e, { setLabelId: n } =
|
|
3211
|
+
let t = e, { setLabelId: n } = ri(), r = O();
|
|
3181
3212
|
return v(() => n(r)), y(() => n(void 0)), (e, n) => (b(), o("h2", {
|
|
3182
3213
|
id: D(r),
|
|
3183
3214
|
class: h(D(F)("text-lg font-medium text-text-primary", t.class))
|
|
3184
|
-
}, [C(e.$slots, "default")], 10,
|
|
3215
|
+
}, [C(e.$slots, "default")], 10, ci));
|
|
3185
3216
|
}
|
|
3186
|
-
}),
|
|
3217
|
+
}), ui = ["id"], di = /* @__PURE__ */ u({
|
|
3187
3218
|
__name: "ModalDescription",
|
|
3188
3219
|
props: { class: { type: [
|
|
3189
3220
|
Boolean,
|
|
@@ -3193,13 +3224,13 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3193
3224
|
Array
|
|
3194
3225
|
] } },
|
|
3195
3226
|
setup(e) {
|
|
3196
|
-
let t = e, { setDescriptionId: n } =
|
|
3227
|
+
let t = e, { setDescriptionId: n } = ri(), r = O();
|
|
3197
3228
|
return v(() => n(r)), y(() => n(void 0)), (e, n) => (b(), o("p", {
|
|
3198
3229
|
id: D(r),
|
|
3199
|
-
class: h(D(F)("text-sm text-
|
|
3200
|
-
}, [C(e.$slots, "default")], 10,
|
|
3230
|
+
class: h(D(F)("text-sm text-muted-foreground", t.class))
|
|
3231
|
+
}, [C(e.$slots, "default")], 10, ui));
|
|
3201
3232
|
}
|
|
3202
|
-
}),
|
|
3233
|
+
}), fi = /* @__PURE__ */ u({
|
|
3203
3234
|
__name: "ModalContent",
|
|
3204
3235
|
props: { class: { type: [
|
|
3205
3236
|
Boolean,
|
|
@@ -3210,9 +3241,9 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3210
3241
|
] } },
|
|
3211
3242
|
setup(e) {
|
|
3212
3243
|
let t = e;
|
|
3213
|
-
return (e, n) => (b(), o("div", { class: h(D(F)("px-6 py-2 text-
|
|
3244
|
+
return (e, n) => (b(), o("div", { class: h(D(F)("px-6 py-2 text-foreground", t.class)) }, [C(e.$slots, "default")], 2));
|
|
3214
3245
|
}
|
|
3215
|
-
}),
|
|
3246
|
+
}), pi = /* @__PURE__ */ u({
|
|
3216
3247
|
__name: "ModalFooter",
|
|
3217
3248
|
props: { class: { type: [
|
|
3218
3249
|
Boolean,
|
|
@@ -3225,7 +3256,7 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3225
3256
|
let t = e;
|
|
3226
3257
|
return (e, n) => (b(), o("div", { class: h(D(F)("flex items-center justify-end gap-3 px-6 pb-4 pt-2", t.class)) }, [C(e.$slots, "default")], 2));
|
|
3227
3258
|
}
|
|
3228
|
-
}),
|
|
3259
|
+
}), mi = /* @__PURE__ */ u({
|
|
3229
3260
|
__name: "ModalClose",
|
|
3230
3261
|
props: { class: { type: [
|
|
3231
3262
|
Boolean,
|
|
@@ -3235,7 +3266,7 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3235
3266
|
Array
|
|
3236
3267
|
] } },
|
|
3237
3268
|
setup(e) {
|
|
3238
|
-
let t = e, { attemptClose: n } =
|
|
3269
|
+
let t = e, { attemptClose: n } = ri();
|
|
3239
3270
|
return (e, r) => (b(), i(Ze, {
|
|
3240
3271
|
variant: "icon",
|
|
3241
3272
|
size: "icon",
|
|
@@ -3249,4 +3280,4 @@ var ni = Symbol("ModalContext"), ri = (e) => x(ni, e), ii = () => {
|
|
|
3249
3280
|
}
|
|
3250
3281
|
});
|
|
3251
3282
|
//#endregion
|
|
3252
|
-
export {
|
|
3283
|
+
export { Ft as Alert, Lt as AlertDescription, It as AlertTitle, rt as Avatar, $e as Badge, Ze as Button, jn as Checkbox, Hn as Combobox, Gn as ComboboxContent, qn as ComboboxEmpty, Wn as ComboboxInput, Vn as ComboboxItem, Dt as Disclosure, At as DisclosureContent, kt as DisclosureTrigger, Pn as Dropdown, In as DropdownContent, Rn as DropdownItem, Fn as DropdownTrigger, Rt as Empty, Wt as EmptyContent, Ut as EmptyDescription, zt as EmptyHeader, Vt as EmptyMedia, Ht as EmptyTitle, an as Field, fn as FieldContent, ln as FieldDescription, dn as FieldError, L as FieldKey, sn as FieldLabel, Zn as Input, it as Kbd, ot as KbdGroup, ct as Label, oi as Modal, mi as ModalClose, fi as ModalContent, di as ModalDescription, pi as ModalFooter, si as ModalHeader, li as ModalTitle, wn as MultiSelect, Dn as MultiSelectContent, Nn as MultiSelectItem, kn as MultiSelectSearch, En as MultiSelectTrigger, gt as Panel, vt as PanelContent, yt as PanelFooter, _t as PanelHeader, ir as Popover, or as PopoverContent, ar as PopoverTrigger, ht as Progress, gn as Select, yn as SelectContent, hn as SelectItem, Sn as SelectSearch, vn as SelectTrigger, dt as Separator, Jt as Sidebar, Zt as SidebarContent, Qt as SidebarFooter, en as SidebarGroup, Xt as SidebarHeader, nn as SidebarItem, qt as SidebarProvider, Yt as SidebarTrigger, ft as Skeleton, Xe as Spinner, rr as Switch, bt as Tabs, Et as TabsContent, Ct as TabsList, Tt as TabsPanels, wt as TabsTrigger, tr as Textarea, Qe as badgeVariants, qe as buttonVariants, F as cn, B as inputVariants, V as popoverVariants, I as useSidebar };
|