@mkbabb/glass-ui 2.0.0 → 2.1.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/glass-ui.js CHANGED
@@ -47,12 +47,12 @@ import { a as dn, i as fn, n as pn, r as D, t as mn } from "./useBreakpoint-BHlX
47
47
  import { n as hn, r as gn, t as _n } from "./useGlassRenderer-DMDdMH55.js";
48
48
  import { t as vn } from "./useSortable-Ck0rBJ4g.js";
49
49
  import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, guardReactiveProps as L, mergeProps as R, normalizeClass as z, normalizeProps as B, openBlock as V, ref as yn, renderList as H, renderSlot as U, resolveDynamicComponent as W, toDisplayString as G, toRaw as bn, unref as K, withCtx as q, withModifiers as xn } from "vue";
50
- import { AccordionContent as Sn, AccordionHeader as Cn, AccordionItem as wn, AccordionRoot as Tn, AccordionTrigger as En, AvatarFallback as Dn, AvatarImage as On, AvatarRoot as kn, CheckboxIndicator as An, CheckboxRoot as jn, NumberFieldDecrement as Mn, NumberFieldIncrement as Nn, NumberFieldInput as Pn, NumberFieldRoot as Fn, RadioGroupIndicator as In, RadioGroupItem as Ln, RadioGroupRoot as Rn, TabsContent as zn, TabsIndicator as Bn, TabsList as Vn, TabsRoot as Hn, TabsTrigger as Un, TagsInputInput as Wn, TagsInputItem as Gn, TagsInputItemDelete as Kn, TagsInputItemText as qn, TagsInputRoot as Jn, useForwardProps as J, useForwardPropsEmits as Y } from "reka-ui";
50
+ import { AccordionContent as Sn, AccordionHeader as Cn, AccordionItem as wn, AccordionRoot as Tn, AccordionTrigger as En, AvatarFallback as Dn, AvatarImage as On, AvatarRoot as kn, CheckboxIndicator as An, CheckboxRoot as jn, NumberFieldDecrement as Mn, NumberFieldIncrement as Nn, NumberFieldInput as Pn, NumberFieldRoot as Fn, RadioGroupIndicator as In, RadioGroupItem as Ln, RadioGroupRoot as Rn, TabsContent as zn, TabsIndicator as Bn, TabsList as Vn, TabsRoot as Hn, TabsTrigger as Un, TagsInputInput as Wn, TagsInputItem as Gn, TagsInputItemDelete as Kn, TagsInputItemText as qn, TagsInputRoot as Jn, useEmitAsProps as Yn, useForwardProps as J, useForwardPropsEmits as Y } from "reka-ui";
51
51
  import { cva as X } from "class-variance-authority";
52
- import { DrawerClose as Yn, DrawerContent as Xn, DrawerDescription as Zn, DrawerOverlay as Qn, DrawerPortal as $n, DrawerPortal as er, DrawerRoot as tr, DrawerTitle as nr, DrawerTrigger as rr } from "vaul-vue";
52
+ import { DrawerClose as Xn, DrawerContent as Zn, DrawerDescription as Qn, DrawerOverlay as $n, DrawerPortal as er, DrawerPortal as tr, DrawerRoot as nr, DrawerTitle as rr, DrawerTrigger as ir } from "vaul-vue";
53
53
  //#endregion
54
54
  //#region src/components/ui/accordion/Accordion.vue
55
- var ir = /* @__PURE__ */ I({
55
+ var ar = /* @__PURE__ */ I({
56
56
  __name: "Accordion",
57
57
  props: {
58
58
  collapsible: { type: Boolean },
@@ -74,7 +74,7 @@ var ir = /* @__PURE__ */ I({
74
74
  _: 3
75
75
  }, 16));
76
76
  }
77
- }), ar = /* @__PURE__ */ I({
77
+ }), or = /* @__PURE__ */ I({
78
78
  __name: "AccordionContent",
79
79
  props: {
80
80
  forceMount: { type: Boolean },
@@ -98,7 +98,7 @@ var ir = /* @__PURE__ */ I({
98
98
  _: 3
99
99
  }, 16));
100
100
  }
101
- }), or = /* @__PURE__ */ I({
101
+ }), sr = /* @__PURE__ */ I({
102
102
  __name: "AccordionItem",
103
103
  props: {
104
104
  disabled: { type: Boolean },
@@ -124,16 +124,16 @@ var ir = /* @__PURE__ */ I({
124
124
  _: 3
125
125
  }, 16, ["class"]));
126
126
  }
127
- }), sr = t("minus", [["path", {
127
+ }), cr = t("minus", [["path", {
128
128
  d: "M5 12h14",
129
129
  key: "1ays0h"
130
- }]]), cr = t("plus", [["path", {
130
+ }]]), lr = t("plus", [["path", {
131
131
  d: "M5 12h14",
132
132
  key: "1ays0h"
133
133
  }], ["path", {
134
134
  d: "M12 5v14",
135
135
  key: "s699le"
136
- }]]), lr = /* @__PURE__ */ I({
136
+ }]]), ur = /* @__PURE__ */ I({
137
137
  __name: "AccordionTrigger",
138
138
  props: {
139
139
  asChild: { type: Boolean },
@@ -159,7 +159,7 @@ var ir = /* @__PURE__ */ I({
159
159
  _: 3
160
160
  }));
161
161
  }
162
- }), ur = /* @__PURE__ */ I({
162
+ }), dr = /* @__PURE__ */ I({
163
163
  __name: "Alert",
164
164
  props: {
165
165
  class: { type: [
@@ -179,7 +179,7 @@ var ir = /* @__PURE__ */ I({
179
179
  role: "alert"
180
180
  }, [U(r.$slots, "default")], 2));
181
181
  }
182
- }), dr = /* @__PURE__ */ I({
182
+ }), fr = /* @__PURE__ */ I({
183
183
  __name: "AlertDescription",
184
184
  props: { class: { type: [
185
185
  Boolean,
@@ -195,7 +195,7 @@ var ir = /* @__PURE__ */ I({
195
195
  class: z(K(e)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", n.class))
196
196
  }, [U(t.$slots, "default")], 2));
197
197
  }
198
- }), fr = /* @__PURE__ */ I({
198
+ }), pr = /* @__PURE__ */ I({
199
199
  __name: "AlertTitle",
200
200
  props: { class: { type: [
201
201
  Boolean,
@@ -217,7 +217,7 @@ var ir = /* @__PURE__ */ I({
217
217
  destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
218
218
  } },
219
219
  defaultVariants: { variant: "default" }
220
- }), pr = /* @__PURE__ */ I({
220
+ }), mr = /* @__PURE__ */ I({
221
221
  __name: "Avatar",
222
222
  props: {
223
223
  class: { type: [
@@ -240,7 +240,7 @@ var ir = /* @__PURE__ */ I({
240
240
  _: 3
241
241
  }, 8, ["class"]));
242
242
  }
243
- }), mr = /* @__PURE__ */ I({
243
+ }), hr = /* @__PURE__ */ I({
244
244
  __name: "AvatarImage",
245
245
  props: {
246
246
  src: {},
@@ -253,7 +253,7 @@ var ir = /* @__PURE__ */ I({
253
253
  let t = e;
254
254
  return (e, n) => (V(), A(K(On), R(t, { class: "h-full w-full object-cover" }), null, 16));
255
255
  }
256
- }), hr = /* @__PURE__ */ I({
256
+ }), gr = /* @__PURE__ */ I({
257
257
  __name: "AvatarFallback",
258
258
  props: {
259
259
  delayMs: {},
@@ -277,7 +277,7 @@ var ir = /* @__PURE__ */ I({
277
277
  circle: "rounded-pill",
278
278
  square: "rounded-input"
279
279
  }
280
- } }), gr = /* @__PURE__ */ I({
280
+ } }), _r = /* @__PURE__ */ I({
281
281
  __name: "Checkbox",
282
282
  props: {
283
283
  defaultValue: {},
@@ -313,7 +313,7 @@ var ir = /* @__PURE__ */ I({
313
313
  _: 3
314
314
  }, 16, ["class"]));
315
315
  }
316
- }), _r = /* @__PURE__ */ I({
316
+ }), vr = /* @__PURE__ */ I({
317
317
  __name: "TableCaption",
318
318
  props: { class: { type: [
319
319
  Boolean,
@@ -326,20 +326,23 @@ var ir = /* @__PURE__ */ I({
326
326
  let n = t;
327
327
  return (t, r) => (V(), M("caption", { class: z(K(e)("mt-4 text-sm text-muted-foreground", n.class)) }, [U(t.$slots, "default")], 2));
328
328
  }
329
- }), vr = /* @__PURE__ */ I({
329
+ }), yr = /* @__PURE__ */ I({
330
330
  __name: "Drawer",
331
331
  props: {
332
332
  activeSnapPoint: {},
333
333
  closeThreshold: {},
334
334
  shouldScaleBackground: {
335
335
  type: Boolean,
336
- default: !0
336
+ default: void 0
337
337
  },
338
338
  setBackgroundColorOnScale: { type: Boolean },
339
339
  scrollLockTimeout: {},
340
340
  fixed: { type: Boolean },
341
341
  dismissible: { type: Boolean },
342
- modal: { type: Boolean },
342
+ modal: {
343
+ type: Boolean,
344
+ default: void 0
345
+ },
343
346
  open: { type: Boolean },
344
347
  defaultOpen: { type: Boolean },
345
348
  nested: { type: Boolean },
@@ -347,8 +350,9 @@ var ir = /* @__PURE__ */ I({
347
350
  noBodyStyles: { type: Boolean },
348
351
  handleOnly: { type: Boolean },
349
352
  preventScrollRestoration: { type: Boolean },
350
- snapPoints: {},
351
- fadeFromIndex: {}
353
+ snapPoints: { default: void 0 },
354
+ fadeFromIndex: {},
355
+ mode: { default: "modal" }
352
356
  },
353
357
  emits: [
354
358
  "drag",
@@ -359,8 +363,21 @@ var ir = /* @__PURE__ */ I({
359
363
  "animationEnd"
360
364
  ],
361
365
  setup(e, { emit: t }) {
362
- let n = Y(e, t);
363
- return (e, t) => (V(), A(K(tr), B(L(K(n))), {
366
+ let n = e, r = Yn(t), i = [
367
+ .12,
368
+ .5,
369
+ 1
370
+ ], a = k(() => {
371
+ let { mode: e, ...t } = n, a = e === "live-behind";
372
+ return {
373
+ ...t,
374
+ modal: n.modal ?? !a,
375
+ shouldScaleBackground: n.shouldScaleBackground ?? !a,
376
+ snapPoints: n.snapPoints ?? (a ? i : void 0),
377
+ ...r
378
+ };
379
+ });
380
+ return (e, t) => (V(), A(K(nr), B(L(a.value)), {
364
381
  default: q(() => [U(e.$slots, "default")]),
365
382
  _: 3
366
383
  }, 16));
@@ -384,9 +401,9 @@ var ir = /* @__PURE__ */ I({
384
401
  let { class: e, ...t } = n;
385
402
  return t;
386
403
  });
387
- return (t, i) => (V(), A(K(Qn), R(r.value, { class: K(e)("fixed inset-0 z-overlay bg-overlay-scrim-strong [backdrop-filter:var(--glass-blur-wash)]", n.class) }), null, 16, ["class"]));
404
+ return (t, i) => (V(), A(K($n), R(r.value, { class: K(e)("fixed inset-0 z-overlay bg-overlay-scrim-strong [backdrop-filter:var(--glass-blur-wash)]", n.class) }), null, 16, ["class"]));
388
405
  }
389
- }), yr = /* @__PURE__ */ I({
406
+ }), br = /* @__PURE__ */ I({
390
407
  __name: "DrawerContent",
391
408
  props: {
392
409
  forceMount: { type: Boolean },
@@ -399,7 +416,11 @@ var ir = /* @__PURE__ */ I({
399
416
  String,
400
417
  Object,
401
418
  Array
402
- ] }
419
+ ] },
420
+ showOverlay: {
421
+ type: Boolean,
422
+ default: !0
423
+ }
403
424
  },
404
425
  emits: [
405
426
  "escapeKeyDown",
@@ -411,15 +432,18 @@ var ir = /* @__PURE__ */ I({
411
432
  ],
412
433
  setup(t, { emit: n }) {
413
434
  let r = t, i = Y(r, n);
414
- return (t, n) => (V(), A(K(er), null, {
415
- default: q(() => [F($), F(K(Xn), R(K(i), { class: K(e)("fixed inset-x-0 bottom-0 z-modal mt-24 flex h-auto flex-col rounded-t-[var(--radius-panel)] border bg-background", r.class) }), {
416
- default: q(() => [n[0] ||= N("div", { class: "mx-auto mt-4 h-2 w-[100px] rounded-pill bg-muted" }, null, -1), U(t.$slots, "default")]),
435
+ return (t, n) => (V(), A(K(tr), null, {
436
+ default: q(() => [r.showOverlay ? (V(), A($, { key: 0 })) : j("", !0), F(K(Zn), R(K(i), { class: K(e)("glass-drawer", r.class) }), {
437
+ default: q(() => [n[0] ||= N("div", {
438
+ class: "glass-drawer-handle",
439
+ "aria-hidden": "true"
440
+ }, [N("span", { class: "glass-drawer-grip" })], -1), U(t.$slots, "default")]),
417
441
  _: 3
418
442
  }, 16, ["class"])]),
419
443
  _: 3
420
444
  }));
421
445
  }
422
- }), br = /* @__PURE__ */ I({
446
+ }), xr = /* @__PURE__ */ I({
423
447
  __name: "DrawerHeader",
424
448
  props: { class: { type: [
425
449
  Boolean,
@@ -432,7 +456,7 @@ var ir = /* @__PURE__ */ I({
432
456
  let n = t;
433
457
  return (t, r) => (V(), M("div", { class: z(K(e)("grid gap-1.5 p-4 text-center sm:text-left", n.class)) }, [U(t.$slots, "default")], 2));
434
458
  }
435
- }), xr = /* @__PURE__ */ I({
459
+ }), Sr = /* @__PURE__ */ I({
436
460
  __name: "DrawerFooter",
437
461
  props: { class: { type: [
438
462
  Boolean,
@@ -445,7 +469,7 @@ var ir = /* @__PURE__ */ I({
445
469
  let n = t;
446
470
  return (t, r) => (V(), M("div", { class: z(K(e)("mt-auto flex flex-col gap-2 p-4", n.class)) }, [U(t.$slots, "default")], 2));
447
471
  }
448
- }), Sr = /* @__PURE__ */ I({
472
+ }), Cr = /* @__PURE__ */ I({
449
473
  __name: "DrawerTitle",
450
474
  props: {
451
475
  asChild: { type: Boolean },
@@ -463,12 +487,12 @@ var ir = /* @__PURE__ */ I({
463
487
  let { class: e, ...t } = n;
464
488
  return t;
465
489
  });
466
- return (t, i) => (V(), A(K(nr), R(r.value, { class: K(e)("text-subheading leading-none tracking-tight", n.class) }), {
490
+ return (t, i) => (V(), A(K(rr), R(r.value, { class: K(e)("text-subheading leading-none tracking-tight", n.class) }), {
467
491
  default: q(() => [U(t.$slots, "default")]),
468
492
  _: 3
469
493
  }, 16, ["class"]));
470
494
  }
471
- }), Cr = /* @__PURE__ */ I({
495
+ }), wr = /* @__PURE__ */ I({
472
496
  __name: "DrawerDescription",
473
497
  props: {
474
498
  asChild: { type: Boolean },
@@ -486,12 +510,12 @@ var ir = /* @__PURE__ */ I({
486
510
  let { class: e, ...t } = n;
487
511
  return t;
488
512
  });
489
- return (t, i) => (V(), A(K(Zn), R(r.value, { class: K(e)("text-sm text-muted-foreground", n.class) }), {
513
+ return (t, i) => (V(), A(K(Qn), R(r.value, { class: K(e)("text-sm text-muted-foreground", n.class) }), {
490
514
  default: q(() => [U(t.$slots, "default")]),
491
515
  _: 3
492
516
  }, 16, ["class"]));
493
517
  }
494
- }), wr = /* @__PURE__ */ I({
518
+ }), Tr = /* @__PURE__ */ I({
495
519
  __name: "MetricPill",
496
520
  props: {
497
521
  amount: {},
@@ -537,16 +561,16 @@ var ir = /* @__PURE__ */ I({
537
561
  "data-density"
538
562
  ]));
539
563
  }
540
- }), Tr = { class: "truncate" }, Er = {
564
+ }), Er = { class: "truncate" }, Dr = {
541
565
  key: 0,
542
566
  class: "mr-2"
543
- }, Dr = {
567
+ }, Or = {
544
568
  key: 0,
545
569
  class: "flex flex-wrap gap-1 mt-2"
546
- }, Or = {
570
+ }, kr = {
547
571
  key: 0,
548
572
  class: "mr-1"
549
- }, kr = /* @__PURE__ */ I({
573
+ }, Ar = /* @__PURE__ */ I({
550
574
  __name: "MultiSelect",
551
575
  props: {
552
576
  options: {},
@@ -585,7 +609,7 @@ var ir = /* @__PURE__ */ I({
585
609
  disabled: t.disabled,
586
610
  class: "w-full justify-between text-left font-normal"
587
611
  }, {
588
- default: q(() => [N("span", Tr, G(l.value), 1), F(K(r), { class: "ml-2 h-4 w-4 shrink-0 opacity-50" })]),
612
+ default: q(() => [N("span", Er, G(l.value), 1), F(K(r), { class: "ml-2 h-4 w-4 shrink-0 opacity-50" })]),
589
613
  _: 1
590
614
  }, 8, ["aria-expanded", "disabled"])]),
591
615
  _: 1
@@ -610,7 +634,7 @@ var ir = /* @__PURE__ */ I({
610
634
  }, {
611
635
  default: q(() => [
612
636
  F(K(n), { class: z(K(e)("mr-2 h-4 w-4", t.modelValue.includes(r.value) ? "opacity-100" : "opacity-0")) }, null, 8, ["class"]),
613
- u(r.icon) ? (V(), M("span", Er, G(r.icon), 1)) : d(r.icon) ? (V(), A(W(d(r.icon)), {
637
+ u(r.icon) ? (V(), M("span", Dr, G(r.icon), 1)) : d(r.icon) ? (V(), A(W(d(r.icon)), {
614
638
  key: 1,
615
639
  class: "mr-2 h-4 w-4 shrink-0",
616
640
  "aria-hidden": "true"
@@ -629,13 +653,13 @@ var ir = /* @__PURE__ */ I({
629
653
  _: 1
630
654
  })]),
631
655
  _: 1
632
- }, 8, ["open"]), c.value.length > 0 ? (V(), M("div", Dr, [(V(!0), M(O, null, H(c.value, (e) => (V(), A(K(h), {
656
+ }, 8, ["open"]), c.value.length > 0 ? (V(), M("div", Or, [(V(!0), M(O, null, H(c.value, (e) => (V(), A(K(h), {
633
657
  key: e.value,
634
658
  variant: "secondary",
635
659
  class: "text-xs px-2 py-1"
636
660
  }, {
637
661
  default: q(() => [
638
- u(e.icon) ? (V(), M("span", Or, G(e.icon), 1)) : d(e.icon) ? (V(), A(W(d(e.icon)), {
662
+ u(e.icon) ? (V(), M("span", kr, G(e.icon), 1)) : d(e.icon) ? (V(), A(W(d(e.icon)), {
639
663
  key: 1,
640
664
  class: "mr-1 h-3 w-3 shrink-0",
641
665
  "aria-hidden": "true"
@@ -654,7 +678,7 @@ var ir = /* @__PURE__ */ I({
654
678
  _: 2
655
679
  }, 1024))), 128))])) : j("", !0)], 64));
656
680
  }
657
- }), Ar = /* @__PURE__ */ I({
681
+ }), jr = /* @__PURE__ */ I({
658
682
  __name: "NumberField",
659
683
  props: {
660
684
  defaultValue: {},
@@ -694,7 +718,7 @@ var ir = /* @__PURE__ */ I({
694
718
  _: 3
695
719
  }, 16, ["class"]));
696
720
  }
697
- }), jr = /* @__PURE__ */ I({
721
+ }), Mr = /* @__PURE__ */ I({
698
722
  inheritAttrs: !1,
699
723
  __name: "NumberFieldInput",
700
724
  setup(t) {
@@ -703,7 +727,7 @@ var ir = /* @__PURE__ */ I({
703
727
  class: K(e)("focus-ring flex h-10 w-full rounded-input border border-input bg-background py-2 text-sm text-center placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-disabled")
704
728
  }), null, 16, ["class"]));
705
729
  }
706
- }), Mr = /* @__PURE__ */ I({
730
+ }), Nr = /* @__PURE__ */ I({
707
731
  __name: "NumberFieldIncrement",
708
732
  props: {
709
733
  disabled: { type: Boolean },
@@ -728,13 +752,13 @@ var ir = /* @__PURE__ */ I({
728
752
  size: "icon",
729
753
  class: z(K(e)("absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20", n.class))
730
754
  }, {
731
- default: q(() => [U(t.$slots, "default", {}, () => [F(K(cr), { class: "size-[var(--icon-sm)]" })])]),
755
+ default: q(() => [U(t.$slots, "default", {}, () => [F(K(lr), { class: "size-[var(--icon-sm)]" })])]),
732
756
  _: 3
733
757
  }, 8, ["class"])]),
734
758
  _: 3
735
759
  }, 16));
736
760
  }
737
- }), Nr = /* @__PURE__ */ I({
761
+ }), Pr = /* @__PURE__ */ I({
738
762
  __name: "NumberFieldDecrement",
739
763
  props: {
740
764
  disabled: { type: Boolean },
@@ -759,13 +783,13 @@ var ir = /* @__PURE__ */ I({
759
783
  size: "icon",
760
784
  class: z(K(e)("absolute top-1/2 -translate-y-1/2 left-0 disabled:cursor-not-allowed disabled:opacity-20", n.class))
761
785
  }, {
762
- default: q(() => [U(t.$slots, "default", {}, () => [F(K(sr), { class: "size-[var(--icon-sm)]" })])]),
786
+ default: q(() => [U(t.$slots, "default", {}, () => [F(K(cr), { class: "size-[var(--icon-sm)]" })])]),
763
787
  _: 3
764
788
  }, 8, ["class"])]),
765
789
  _: 3
766
790
  }, 16));
767
791
  }
768
- }), Pr = /* @__PURE__ */ I({
792
+ }), Fr = /* @__PURE__ */ I({
769
793
  __name: "NumberFieldContent",
770
794
  props: { class: { type: [
771
795
  Boolean,
@@ -778,7 +802,7 @@ var ir = /* @__PURE__ */ I({
778
802
  let n = t;
779
803
  return (t, r) => (V(), M("div", { class: z(K(e)("relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5", n.class)) }, [U(t.$slots, "default")], 2));
780
804
  }
781
- }), Fr = /* @__PURE__ */ I({
805
+ }), Ir = /* @__PURE__ */ I({
782
806
  __name: "RadioGroup",
783
807
  props: {
784
808
  modelValue: {},
@@ -810,7 +834,7 @@ var ir = /* @__PURE__ */ I({
810
834
  _: 3
811
835
  }, 16, ["class"]));
812
836
  }
813
- }), Ir = /* @__PURE__ */ I({
837
+ }), Lr = /* @__PURE__ */ I({
814
838
  __name: "RadioGroupItem",
815
839
  props: {
816
840
  id: {},
@@ -841,10 +865,10 @@ var ir = /* @__PURE__ */ I({
841
865
  _: 1
842
866
  }, 16, ["class"]));
843
867
  }
844
- }), Lr = {
868
+ }), Rr = {
845
869
  key: 1,
846
870
  class: "flex flex-col gap-1"
847
- }, Rr = /* @__PURE__ */ I({
871
+ }, zr = /* @__PURE__ */ I({
848
872
  __name: "Section",
849
873
  props: {
850
874
  title: {},
@@ -890,14 +914,14 @@ var ir = /* @__PURE__ */ I({
890
914
  key: 0,
891
915
  class: "!absolute inset-0"
892
916
  })) : j("", !0),
893
- t.title || a.$slots.header ? (V(), M("header", Lr, [U(a.$slots, "header", {}, () => [N("h2", { class: z(K(e)(r[n.tone], n.titleClass)) }, G(t.title), 3)]), t.description || a.$slots.description ? (V(), M("p", {
917
+ t.title || a.$slots.header ? (V(), M("header", Rr, [U(a.$slots, "header", {}, () => [N("h2", { class: z(K(e)(r[n.tone], n.titleClass)) }, G(t.title), 3)]), t.description || a.$slots.description ? (V(), M("p", {
894
918
  key: 0,
895
919
  class: z(K(e)("section-description", n.descriptionClass))
896
920
  }, [U(a.$slots, "description", {}, () => [P(G(t.description), 1)])], 2)) : j("", !0)])) : j("", !0),
897
921
  U(a.$slots, "default")
898
922
  ], 2));
899
923
  }
900
- }), zr = /* @__PURE__ */ I({
924
+ }), Br = /* @__PURE__ */ I({
901
925
  __name: "Tabs",
902
926
  props: {
903
927
  defaultValue: {},
@@ -917,7 +941,7 @@ var ir = /* @__PURE__ */ I({
917
941
  _: 3
918
942
  }, 16));
919
943
  }
920
- }), Br = /* @__PURE__ */ I({
944
+ }), Vr = /* @__PURE__ */ I({
921
945
  __name: "TabsTrigger",
922
946
  props: {
923
947
  value: {},
@@ -942,7 +966,7 @@ var ir = /* @__PURE__ */ I({
942
966
  _: 3
943
967
  }, 16, ["class"]));
944
968
  }
945
- }), Vr = /* @__PURE__ */ I({
969
+ }), Hr = /* @__PURE__ */ I({
946
970
  __name: "TabsList",
947
971
  props: {
948
972
  loop: { type: Boolean },
@@ -966,7 +990,7 @@ var ir = /* @__PURE__ */ I({
966
990
  _: 3
967
991
  }, 16, ["class"]));
968
992
  }
969
- }), Hr = /* @__PURE__ */ I({
993
+ }), Ur = /* @__PURE__ */ I({
970
994
  __name: "TabsContent",
971
995
  props: {
972
996
  value: {},
@@ -991,7 +1015,7 @@ var ir = /* @__PURE__ */ I({
991
1015
  _: 3
992
1016
  }, 16, ["class"]));
993
1017
  }
994
- }), Ur = /* @__PURE__ */ I({
1018
+ }), Wr = /* @__PURE__ */ I({
995
1019
  __name: "TabsIndicator",
996
1020
  props: {
997
1021
  asChild: { type: Boolean },
@@ -1011,7 +1035,7 @@ var ir = /* @__PURE__ */ I({
1011
1035
  });
1012
1036
  return (t, i) => (V(), A(K(Bn), R(r.value, { class: K(e)("absolute left-0 h-[--reka-tabs-indicator-size] translate-x-[--reka-tabs-indicator-position] rounded-pill bg-secondary/80 transition-[width,transform] duration-[var(--duration-normal)] ease-[var(--spring-snappy)]", n.class) }), null, 16, ["class"]));
1013
1037
  }
1014
- }), Wr = /* @__PURE__ */ I({
1038
+ }), Gr = /* @__PURE__ */ I({
1015
1039
  __name: "TagsInput",
1016
1040
  props: {
1017
1041
  modelValue: {},
@@ -1055,7 +1079,7 @@ var ir = /* @__PURE__ */ I({
1055
1079
  _: 3
1056
1080
  }, 16, ["class"]));
1057
1081
  }
1058
- }), Gr = /* @__PURE__ */ I({
1082
+ }), Kr = /* @__PURE__ */ I({
1059
1083
  __name: "TagsInputInput",
1060
1084
  props: {
1061
1085
  placeholder: {},
@@ -1078,7 +1102,7 @@ var ir = /* @__PURE__ */ I({
1078
1102
  }));
1079
1103
  return (t, i) => (V(), A(K(Wn), R(K(r), { class: K(e)("text-sm min-h-6 focus:outline-none flex-1 bg-transparent px-1", n.class) }), null, 16, ["class"]));
1080
1104
  }
1081
- }), Kr = /* @__PURE__ */ I({
1105
+ }), qr = /* @__PURE__ */ I({
1082
1106
  __name: "TagsInputItem",
1083
1107
  props: {
1084
1108
  value: {},
@@ -1103,7 +1127,7 @@ var ir = /* @__PURE__ */ I({
1103
1127
  _: 3
1104
1128
  }, 16, ["class"]));
1105
1129
  }
1106
- }), qr = /* @__PURE__ */ I({
1130
+ }), Jr = /* @__PURE__ */ I({
1107
1131
  __name: "TagsInputItemDelete",
1108
1132
  props: {
1109
1133
  asChild: { type: Boolean },
@@ -1126,7 +1150,7 @@ var ir = /* @__PURE__ */ I({
1126
1150
  _: 3
1127
1151
  }, 16, ["class"]));
1128
1152
  }
1129
- }), Jr = /* @__PURE__ */ I({
1153
+ }), Yr = /* @__PURE__ */ I({
1130
1154
  __name: "TagsInputItemText",
1131
1155
  props: {
1132
1156
  asChild: { type: Boolean },
@@ -1148,4 +1172,4 @@ var ir = /* @__PURE__ */ I({
1148
1172
  }
1149
1173
  });
1150
1174
  //#endregion
1151
- export { ir as Accordion, ar as AccordionContent, or as AccordionItem, lr as AccordionTrigger, ur as Alert, dr as AlertDescription, fr as AlertTitle, pr as Avatar, hr as AvatarFallback, mr as AvatarImage, h as Badge, g as Button, te as CONFIGURATOR_DENSITY_KEY, pe as Card, fe as CardContent, me as CardDescription, he as CardFooter, ue as CardHeader, de as CardTitle, Qt as ChassisDivider, gr as Checkbox, _e as Collapsible, ve as CollapsibleContent, ge as CollapsibleTrigger, y as Command, ye as CommandDialog, S as CommandEmpty, b as CommandGroup, _ as CommandInput, v as CommandItem, x as CommandList, be as CommandSeparator, xe as CommandShortcut, ne as Configurator, ae as ConfiguratorLayer, re as ConfiguratorRow, je as ContextMenu, f as ContextMenuCheckboxItem, Me as ContextMenuContent, o as ContextMenuItem, d as ContextMenuLabel, c as ContextMenuRadioGroup, u as ContextMenuRadioItem, s as ContextMenuSeparator, a as ContextMenuShortcut, p as ContextMenuSubContent, l as ContextMenuSubTrigger, C as ContextMenuTrigger, Ve as DataTable, Le as DataTablePagination, Se as Dialog, ke as DialogClose, Ce as DialogContent, Oe as DialogDescription, Ae as DialogFooter, we as DialogHeader, Ee as DialogScrollContent, Te as DialogTitle, De as DialogTrigger, on as DiscoGlyph, vr as Drawer, Yn as DrawerClose, yr as DrawerContent, Cr as DrawerDescription, xr as DrawerFooter, br as DrawerHeader, $ as DrawerOverlay, $n as DrawerPortal, Sr as DrawerTitle, rr as DrawerTrigger, qe as DropdownMenu, Ye as DropdownMenuCheckboxItem, $e as DropdownMenuContent, Ke as DropdownMenuGroup, rt as DropdownMenuItem, Ue as DropdownMenuLabel, nt as DropdownMenuPortal, Ge as DropdownMenuRadioGroup, We as DropdownMenuRadioItem, Qe as DropdownMenuSeparator, tt as DropdownMenuShortcut, Je as DropdownMenuSub, Ze as DropdownMenuSubContent, et as DropdownMenuSubTrigger, Xe as DropdownMenuTrigger, rn as GLYPH_FACE_SILHOUETTE_KEY, an as GlyphFace, at as HoverCard, ot as HoverCardContent, it as HoverCardTrigger, sn as HoverPopover, $t as InstrumentChassis, en as InstrumentRail, st as Label, wr as MetricPill, kr as MultiSelect, i as Notification, Ar as NumberField, Pr as NumberFieldContent, Nr as NumberFieldDecrement, Mr as NumberFieldIncrement, jr as NumberFieldInput, T as Popover, E as PopoverContent, w as PopoverTrigger, lt as Progress, Fr as RadioGroup, Ir as RadioGroupItem, ln as ScrollingText, Rr as Section, gt as Select, ft as SelectContent, vt as SelectGroup, ht as SelectItem, yt as SelectLabel, _t as SelectScrollDownButton, pt as SelectScrollUpButton, bt as SelectSeparator, dt as SelectTrigger, mt as SelectValue, xt as Separator, Tt as Sheet, kt as SheetClose, Dt as SheetContent, Ot as SheetDescription, Et as SheetFooter, St as SheetHeader, wt as SheetTitle, Ct as SheetTrigger, ze as Skeleton, Nt as Slider, Ft as Switch, He as Table, Ie as TableBody, _r as TableCaption, Pe as TableCell, Fe as TableEmpty, Be as TableHead, Re as TableHeader, Ne as TableRow, zr as Tabs, Hr as TabsContent, Ur as TabsIndicator, Vr as TabsList, Br as TabsTrigger, Wr as TagsInput, Gr as TagsInputInput, Kr as TagsInputItem, qr as TagsInputItemDelete, Jr as TagsInputItemText, Lt as Toast, Ht as ToastAction, Bt as ToastClose, It as ToastDescription, Rt as ToastTitle, Ut as Toaster, Wt as Toggle, Gt as ToggleGroup, qt as ToggleGroupItem, Jt as Tooltip, Xt as TooltipContent, Zt as TooltipProvider, Yt as TooltipTrigger, Z as alertVariants, Q as avatarVariants, ce as badgeVariants, le as buttonVariants, e as cn, D as copyToClipboard, _n as createGlassFilter, hn as destroyGlassFilter, ie as provideConfiguratorDensity, tn as provideGlyphFaceSilhouette, At as sheetVariants, Pt as sliderVariants, zt as toast, Kt as toggleVariants, mn as useBreakpoint, fn as useClipboard, se as useConfiguratorState, gn as useGlassRenderer, un as useInterval, oe as useOptionalConfiguratorDensity, nn as useOptionalGlyphFaceSilhouette, cn as useResizeObserver, vn as useSortable, jt as useTimer, Vt as useToast, dn as useTokenColor, Mt as useTouchGate, pn as useViewportReady };
1175
+ export { ar as Accordion, or as AccordionContent, sr as AccordionItem, ur as AccordionTrigger, dr as Alert, fr as AlertDescription, pr as AlertTitle, mr as Avatar, gr as AvatarFallback, hr as AvatarImage, h as Badge, g as Button, te as CONFIGURATOR_DENSITY_KEY, pe as Card, fe as CardContent, me as CardDescription, he as CardFooter, ue as CardHeader, de as CardTitle, Qt as ChassisDivider, _r as Checkbox, _e as Collapsible, ve as CollapsibleContent, ge as CollapsibleTrigger, y as Command, ye as CommandDialog, S as CommandEmpty, b as CommandGroup, _ as CommandInput, v as CommandItem, x as CommandList, be as CommandSeparator, xe as CommandShortcut, ne as Configurator, ae as ConfiguratorLayer, re as ConfiguratorRow, je as ContextMenu, f as ContextMenuCheckboxItem, Me as ContextMenuContent, o as ContextMenuItem, d as ContextMenuLabel, c as ContextMenuRadioGroup, u as ContextMenuRadioItem, s as ContextMenuSeparator, a as ContextMenuShortcut, p as ContextMenuSubContent, l as ContextMenuSubTrigger, C as ContextMenuTrigger, Ve as DataTable, Le as DataTablePagination, Se as Dialog, ke as DialogClose, Ce as DialogContent, Oe as DialogDescription, Ae as DialogFooter, we as DialogHeader, Ee as DialogScrollContent, Te as DialogTitle, De as DialogTrigger, on as DiscoGlyph, yr as Drawer, Xn as DrawerClose, br as DrawerContent, wr as DrawerDescription, Sr as DrawerFooter, xr as DrawerHeader, $ as DrawerOverlay, er as DrawerPortal, Cr as DrawerTitle, ir as DrawerTrigger, qe as DropdownMenu, Ye as DropdownMenuCheckboxItem, $e as DropdownMenuContent, Ke as DropdownMenuGroup, rt as DropdownMenuItem, Ue as DropdownMenuLabel, nt as DropdownMenuPortal, Ge as DropdownMenuRadioGroup, We as DropdownMenuRadioItem, Qe as DropdownMenuSeparator, tt as DropdownMenuShortcut, Je as DropdownMenuSub, Ze as DropdownMenuSubContent, et as DropdownMenuSubTrigger, Xe as DropdownMenuTrigger, rn as GLYPH_FACE_SILHOUETTE_KEY, an as GlyphFace, at as HoverCard, ot as HoverCardContent, it as HoverCardTrigger, sn as HoverPopover, $t as InstrumentChassis, en as InstrumentRail, st as Label, Tr as MetricPill, Ar as MultiSelect, i as Notification, jr as NumberField, Fr as NumberFieldContent, Pr as NumberFieldDecrement, Nr as NumberFieldIncrement, Mr as NumberFieldInput, T as Popover, E as PopoverContent, w as PopoverTrigger, lt as Progress, Ir as RadioGroup, Lr as RadioGroupItem, ln as ScrollingText, zr as Section, gt as Select, ft as SelectContent, vt as SelectGroup, ht as SelectItem, yt as SelectLabel, _t as SelectScrollDownButton, pt as SelectScrollUpButton, bt as SelectSeparator, dt as SelectTrigger, mt as SelectValue, xt as Separator, Tt as Sheet, kt as SheetClose, Dt as SheetContent, Ot as SheetDescription, Et as SheetFooter, St as SheetHeader, wt as SheetTitle, Ct as SheetTrigger, ze as Skeleton, Nt as Slider, Ft as Switch, He as Table, Ie as TableBody, vr as TableCaption, Pe as TableCell, Fe as TableEmpty, Be as TableHead, Re as TableHeader, Ne as TableRow, Br as Tabs, Ur as TabsContent, Wr as TabsIndicator, Hr as TabsList, Vr as TabsTrigger, Gr as TagsInput, Kr as TagsInputInput, qr as TagsInputItem, Jr as TagsInputItemDelete, Yr as TagsInputItemText, Lt as Toast, Ht as ToastAction, Bt as ToastClose, It as ToastDescription, Rt as ToastTitle, Ut as Toaster, Wt as Toggle, Gt as ToggleGroup, qt as ToggleGroupItem, Jt as Tooltip, Xt as TooltipContent, Zt as TooltipProvider, Yt as TooltipTrigger, Z as alertVariants, Q as avatarVariants, ce as badgeVariants, le as buttonVariants, e as cn, D as copyToClipboard, _n as createGlassFilter, hn as destroyGlassFilter, ie as provideConfiguratorDensity, tn as provideGlyphFaceSilhouette, At as sheetVariants, Pt as sliderVariants, zt as toast, Kt as toggleVariants, mn as useBreakpoint, fn as useClipboard, se as useConfiguratorState, gn as useGlassRenderer, un as useInterval, oe as useOptionalConfiguratorDensity, nn as useOptionalGlyphFaceSilhouette, cn as useResizeObserver, vn as useSortable, jt as useTimer, Vt as useToast, dn as useTokenColor, Mt as useTouchGate, pn as useViewportReady };
@@ -69,14 +69,17 @@ var _ = /* @__PURE__ */ i({
69
69
  __name: "SortableHandle",
70
70
  props: { as: { default: "span" } },
71
71
  setup(e) {
72
+ let t = e, i = n(() => t.as === "span");
72
73
  return (t, n) => (s(), r(u(e.as), {
73
74
  class: "sortable-handle",
74
- "data-sortable-handle": ""
75
+ "data-sortable-handle": "",
76
+ role: i.value ? "button" : void 0,
77
+ tabindex: i.value ? 0 : void 0
75
78
  }, {
76
79
  default: p(() => [l(t.$slots, "default", {}, void 0, !0)]),
77
80
  _: 3
78
- }));
81
+ }, 8, ["role", "tabindex"]));
79
82
  }
80
- }), [["__scopeId", "data-v-57437fb5"]]);
83
+ }), [["__scopeId", "data-v-695f8df8"]]);
81
84
  //#endregion
82
85
  export { m as SORTABLE_CONTEXT, y as SortableHandle, v as SortableItem, _ as SortableList, h as provideSortableContext, g as useSortableContext };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
2
  import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, toDisplayString as l, unref as u } from "vue";
3
3
  //#region src/components/custom/status-dot/StatusDot.vue?vue&type=script&setup=true&lang.ts
4
- var d = {
4
+ var d = ["role"], f = {
5
5
  key: 0,
6
6
  class: "text-xs leading-none text-muted-foreground"
7
- }, f = /* @__PURE__ */ a({
7
+ }, p = /* @__PURE__ */ a({
8
8
  name: "StatusDot",
9
9
  __name: "StatusDot",
10
10
  props: {
@@ -25,31 +25,34 @@ var d = {
25
25
  ] }
26
26
  },
27
27
  setup(a) {
28
- let f = a, p = t(() => {
29
- switch (f.size) {
28
+ let p = a, m = t(() => {
29
+ switch (p.size) {
30
30
  case "xs": return "h-1.5 w-1.5";
31
31
  case "md": return "h-2.5 w-2.5";
32
32
  default: return "h-2 w-2";
33
33
  }
34
- }), m = t(() => f.variant === "custom" ? f.color ?? "var(--muted-foreground)" : {
34
+ }), h = t(() => p.variant === "custom" ? p.color ?? "var(--muted-foreground)" : {
35
35
  active: "var(--color-status-active, hsl(142 71% 45%))",
36
36
  paused: "var(--color-status-paused, hsl(48 96% 53%))",
37
37
  idle: "var(--color-status-idle, var(--muted-foreground))",
38
38
  error: "var(--color-status-error, var(--destructive))"
39
- }[f.variant]), h = t(() => ({ backgroundColor: m.value })), g = t(() => ({ backgroundColor: m.value }));
40
- return (t, m) => (c(), r("span", { class: o(u(e)("inline-flex items-center gap-1.5 align-middle", f.class)) }, [i("span", {
41
- class: o(u(e)("relative inline-flex shrink-0 rounded-pill", p.value)),
42
- style: s(h.value)
39
+ }[p.variant]), g = t(() => ({ backgroundColor: h.value })), _ = t(() => ({ backgroundColor: h.value }));
40
+ return (t, h) => (c(), r("span", {
41
+ role: t.$attrs["aria-label"] == null ? void 0 : "img",
42
+ class: o(u(e)("inline-flex items-center gap-1.5 align-middle", p.class))
43
+ }, [i("span", {
44
+ class: o(u(e)("relative inline-flex shrink-0 rounded-pill", m.value)),
45
+ style: s(g.value)
43
46
  }, [a.pulse ? (c(), r("span", {
44
47
  key: 0,
45
48
  "aria-hidden": "true",
46
49
  class: "absolute inset-0 rounded-pill opacity-60 motion-safe:animate-ping",
47
- style: s(g.value)
50
+ style: s(_.value)
48
51
  }, null, 4)) : n("", !0), i("span", {
49
52
  class: "relative inline-block h-full w-full rounded-pill",
50
- style: s(h.value)
51
- }, null, 4)], 6), a.label ? (c(), r("span", d, l(a.label), 1)) : n("", !0)], 2));
53
+ style: s(g.value)
54
+ }, null, 4)], 6), a.label ? (c(), r("span", f, l(a.label), 1)) : n("", !0)], 10, d));
52
55
  }
53
56
  });
54
57
  //#endregion
55
- export { f as StatusDot };
58
+ export { p as StatusDot };