@chaibuilder/sdk 2.3.0 → 2.3.2

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.
@@ -8,20 +8,20 @@ import * as d from "@radix-ui/react-dialog";
8
8
  import * as h from "@radix-ui/react-popover";
9
9
  import * as y from "@radix-ui/react-tooltip";
10
10
  import * as b from "@radix-ui/react-accordion";
11
+ import * as R from "@radix-ui/react-hover-card";
12
+ import * as A from "@radix-ui/react-label";
13
+ import * as g from "@radix-ui/react-scroll-area";
14
+ import * as x from "@radix-ui/react-tabs";
11
15
  import * as f from "@radix-ui/react-alert-dialog";
12
16
  import { Slot as $ } from "@radix-ui/react-slot";
17
+ import * as C from "@radix-ui/react-switch";
13
18
  import * as v from "@radix-ui/react-avatar";
19
+ import * as P from "@radix-ui/react-separator";
14
20
  import * as l from "@radix-ui/react-context-menu";
15
- import * as R from "@radix-ui/react-hover-card";
16
- import * as A from "@radix-ui/react-label";
17
- import * as g from "@radix-ui/react-scroll-area";
18
21
  import * as c from "@radix-ui/react-select";
19
- import * as P from "@radix-ui/react-separator";
20
22
  import * as w from "@radix-ui/react-slider";
21
23
  import { useTheme as q } from "next-themes";
22
24
  import { Toaster as X } from "sonner";
23
- import * as C from "@radix-ui/react-switch";
24
- import * as x from "@radix-ui/react-tabs";
25
25
  import * as M from "@radix-ui/react-toggle";
26
26
  import { clsx as J } from "clsx";
27
27
  import { twMerge as K } from "tailwind-merge";
@@ -437,7 +437,124 @@ const Ie = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
437
437
  }
438
438
  ));
439
439
  Ie.displayName = b.Content.displayName;
440
- const at = f.Root, tt = f.Trigger, ze = f.Portal, V = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
440
+ const at = R.Root, tt = R.Trigger, ze = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...n }, m) => /* @__PURE__ */ o(
441
+ R.Content,
442
+ {
443
+ ref: m,
444
+ align: e,
445
+ sideOffset: t,
446
+ className: s(
447
+ "z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
448
+ a
449
+ ),
450
+ ...n
451
+ }
452
+ ));
453
+ ze.displayName = R.Content.displayName;
454
+ const Ae = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
455
+ "textarea",
456
+ {
457
+ className: s(
458
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
459
+ a
460
+ ),
461
+ ref: t,
462
+ ...e
463
+ }
464
+ ));
465
+ Ae.displayName = "Textarea";
466
+ const Pe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", a), ...e }));
467
+ Pe.displayName = "Card";
468
+ const Me = r.forwardRef(
469
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", a), ...e })
470
+ );
471
+ Me.displayName = "CardHeader";
472
+ const _e = r.forwardRef(
473
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("font-semibold leading-none tracking-tight", a), ...e })
474
+ );
475
+ _e.displayName = "CardTitle";
476
+ const je = r.forwardRef(
477
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm text-muted-foreground", a), ...e })
478
+ );
479
+ je.displayName = "CardDescription";
480
+ const Le = r.forwardRef(
481
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("p-6 pt-0", a), ...e })
482
+ );
483
+ Le.displayName = "CardContent";
484
+ const Ve = r.forwardRef(
485
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex items-center p-6 pt-0", a), ...e })
486
+ );
487
+ Ve.displayName = "CardFooter";
488
+ const Ge = N(
489
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
490
+ ), He = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
491
+ A.Root,
492
+ {
493
+ ref: t,
494
+ className: s(Ge(), a),
495
+ ...e
496
+ }
497
+ ));
498
+ He.displayName = A.Root.displayName;
499
+ const Be = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(g.Root, { ref: n, className: s("relative overflow-hidden", a), ...t, children: [
500
+ /* @__PURE__ */ o(g.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
501
+ /* @__PURE__ */ o(V, {}),
502
+ /* @__PURE__ */ o(g.Corner, {})
503
+ ] }));
504
+ Be.displayName = g.Root.displayName;
505
+ const V = r.forwardRef(({ className: a, orientation: e = "vertical", ...t }, n) => /* @__PURE__ */ o(
506
+ g.ScrollAreaScrollbar,
507
+ {
508
+ ref: n,
509
+ orientation: e,
510
+ className: s(
511
+ "flex touch-none select-none transition-colors",
512
+ e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
513
+ e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
514
+ a
515
+ ),
516
+ ...t,
517
+ children: /* @__PURE__ */ o(g.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
518
+ }
519
+ ));
520
+ V.displayName = g.ScrollAreaScrollbar.displayName;
521
+ const ot = x.Root, Fe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
522
+ x.List,
523
+ {
524
+ ref: t,
525
+ className: s(
526
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
527
+ a
528
+ ),
529
+ ...e
530
+ }
531
+ ));
532
+ Fe.displayName = x.List.displayName;
533
+ const Oe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
534
+ x.Trigger,
535
+ {
536
+ ref: t,
537
+ className: s(
538
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
539
+ a
540
+ ),
541
+ ...e
542
+ }
543
+ ));
544
+ Oe.displayName = x.Trigger.displayName;
545
+ const Ue = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
546
+ x.Content,
547
+ {
548
+ ref: t,
549
+ className: s(
550
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
551
+ a
552
+ ),
553
+ ...e
554
+ }
555
+ ));
556
+ Ue.displayName = x.Content.displayName;
557
+ const st = f.Root, rt = f.Trigger, Ee = f.Portal, G = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
441
558
  f.Overlay,
442
559
  {
443
560
  className: s(
@@ -448,9 +565,9 @@ const at = f.Root, tt = f.Trigger, ze = f.Portal, V = r.forwardRef(({ className:
448
565
  ref: t
449
566
  }
450
567
  ));
451
- V.displayName = f.Overlay.displayName;
452
- const Ae = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(ze, { children: [
453
- /* @__PURE__ */ o(V, {}),
568
+ G.displayName = f.Overlay.displayName;
569
+ const $e = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(Ee, { children: [
570
+ /* @__PURE__ */ o(G, {}),
454
571
  /* @__PURE__ */ o(
455
572
  f.Content,
456
573
  {
@@ -463,18 +580,18 @@ const Ae = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(ze, { c
463
580
  }
464
581
  )
465
582
  ] }));
466
- Ae.displayName = f.Content.displayName;
467
- const Pe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
468
- Pe.displayName = "AlertDialogHeader";
469
- const Me = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
470
- Me.displayName = "AlertDialogFooter";
471
- const _e = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
472
- _e.displayName = f.Title.displayName;
473
- const je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
474
- je.displayName = f.Description.displayName;
475
- const Le = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Action, { ref: t, className: s(T(), a), ...e }));
476
- Le.displayName = f.Action.displayName;
477
- const Ve = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
583
+ $e.displayName = f.Content.displayName;
584
+ const qe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
585
+ qe.displayName = "AlertDialogHeader";
586
+ const Xe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
587
+ Xe.displayName = "AlertDialogFooter";
588
+ const Je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
589
+ Je.displayName = f.Title.displayName;
590
+ const Ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
591
+ Ke.displayName = f.Description.displayName;
592
+ const Qe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Action, { ref: t, className: s(T(), a), ...e }));
593
+ Qe.displayName = f.Action.displayName;
594
+ const We = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
478
595
  f.Cancel,
479
596
  {
480
597
  ref: t,
@@ -482,8 +599,28 @@ const Ve = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
482
599
  ...e
483
600
  }
484
601
  ));
485
- Ve.displayName = f.Cancel.displayName;
486
- const Ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
602
+ We.displayName = f.Cancel.displayName;
603
+ const Ye = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
604
+ C.Root,
605
+ {
606
+ className: s(
607
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
608
+ a
609
+ ),
610
+ ...e,
611
+ ref: t,
612
+ children: /* @__PURE__ */ o(
613
+ C.Thumb,
614
+ {
615
+ className: s(
616
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
617
+ )
618
+ }
619
+ )
620
+ }
621
+ ));
622
+ Ye.displayName = C.Root.displayName;
623
+ const Ze = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
487
624
  v.Root,
488
625
  {
489
626
  ref: t,
@@ -494,8 +631,8 @@ const Ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
494
631
  ...e
495
632
  }
496
633
  ));
497
- Ge.displayName = v.Root.displayName;
498
- const He = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
634
+ Ze.displayName = v.Root.displayName;
635
+ const ea = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
499
636
  v.Image,
500
637
  {
501
638
  ref: t,
@@ -503,8 +640,8 @@ const He = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
503
640
  ...e
504
641
  }
505
642
  ));
506
- He.displayName = v.Image.displayName;
507
- const Be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
643
+ ea.displayName = v.Image.displayName;
644
+ const aa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
508
645
  v.Fallback,
509
646
  {
510
647
  ref: t,
@@ -515,30 +652,67 @@ const Be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
515
652
  ...e
516
653
  }
517
654
  ));
518
- Be.displayName = v.Fallback.displayName;
519
- const Fe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", a), ...e }));
520
- Fe.displayName = "Card";
521
- const Oe = r.forwardRef(
522
- ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", a), ...e })
523
- );
524
- Oe.displayName = "CardHeader";
525
- const Ue = r.forwardRef(
526
- ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("font-semibold leading-none tracking-tight", a), ...e })
527
- );
528
- Ue.displayName = "CardTitle";
529
- const Ee = r.forwardRef(
530
- ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm text-muted-foreground", a), ...e })
531
- );
532
- Ee.displayName = "CardDescription";
533
- const $e = r.forwardRef(
534
- ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("p-6 pt-0", a), ...e })
535
- );
536
- $e.displayName = "CardContent";
537
- const qe = r.forwardRef(
538
- ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex items-center p-6 pt-0", a), ...e })
655
+ aa.displayName = v.Fallback.displayName;
656
+ const ta = r.forwardRef(({ className: a, orientation: e = "horizontal", decorative: t = !0, ...n }, m) => /* @__PURE__ */ o(
657
+ P.Root,
658
+ {
659
+ ref: m,
660
+ decorative: t,
661
+ orientation: e,
662
+ className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
663
+ ...n
664
+ }
665
+ ));
666
+ ta.displayName = P.Root.displayName;
667
+ const nt = d.Root, dt = d.Trigger, it = d.Close, oa = d.Portal, H = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
668
+ d.Overlay,
669
+ {
670
+ className: s(
671
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
672
+ a
673
+ ),
674
+ ...e,
675
+ ref: t
676
+ }
677
+ ));
678
+ H.displayName = d.Overlay.displayName;
679
+ const sa = N(
680
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
681
+ {
682
+ variants: {
683
+ side: {
684
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
685
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
686
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
687
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
688
+ }
689
+ },
690
+ defaultVariants: {
691
+ side: "right"
692
+ }
693
+ }
694
+ ), ra = r.forwardRef(
695
+ ({ side: a = "right", className: e, children: t, ...n }, m) => /* @__PURE__ */ p(oa, { children: [
696
+ /* @__PURE__ */ o(H, {}),
697
+ /* @__PURE__ */ p(d.Content, { ref: m, className: s(sa({ side: a }), e), ...n, children: [
698
+ /* @__PURE__ */ p(d.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
699
+ /* @__PURE__ */ o(z, { className: "h-4 w-4" }),
700
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
701
+ ] }),
702
+ t
703
+ ] })
704
+ ] })
539
705
  );
540
- qe.displayName = "CardFooter";
541
- const ot = l.Root, st = l.Trigger, rt = l.Group, nt = l.Portal, dt = l.Sub, it = l.RadioGroup, Xe = r.forwardRef(({ className: a, inset: e, children: t, ...n }, m) => /* @__PURE__ */ p(
706
+ ra.displayName = d.Content.displayName;
707
+ const na = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
708
+ na.displayName = "SheetHeader";
709
+ const da = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
710
+ da.displayName = "SheetFooter";
711
+ const ia = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", a), ...e }));
712
+ ia.displayName = d.Title.displayName;
713
+ const la = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
714
+ la.displayName = d.Description.displayName;
715
+ const lt = l.Root, ct = l.Trigger, mt = l.Group, pt = l.Portal, ft = l.Sub, ut = l.RadioGroup, ca = r.forwardRef(({ className: a, inset: e, children: t, ...n }, m) => /* @__PURE__ */ p(
542
716
  l.SubTrigger,
543
717
  {
544
718
  ref: m,
@@ -554,8 +728,8 @@ const ot = l.Root, st = l.Trigger, rt = l.Group, nt = l.Portal, dt = l.Sub, it =
554
728
  ]
555
729
  }
556
730
  ));
557
- Xe.displayName = l.SubTrigger.displayName;
558
- const Je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
731
+ ca.displayName = l.SubTrigger.displayName;
732
+ const ma = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
559
733
  l.SubContent,
560
734
  {
561
735
  ref: t,
@@ -566,8 +740,8 @@ const Je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
566
740
  ...e
567
741
  }
568
742
  ));
569
- Je.displayName = l.SubContent.displayName;
570
- const Ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Portal, { children: /* @__PURE__ */ o(
743
+ ma.displayName = l.SubContent.displayName;
744
+ const pa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Portal, { children: /* @__PURE__ */ o(
571
745
  l.Content,
572
746
  {
573
747
  ref: t,
@@ -578,8 +752,8 @@ const Ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Porta
578
752
  ...e
579
753
  }
580
754
  ) }));
581
- Ke.displayName = l.Content.displayName;
582
- const Qe = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
755
+ pa.displayName = l.Content.displayName;
756
+ const fa = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
583
757
  l.Item,
584
758
  {
585
759
  ref: n,
@@ -591,8 +765,8 @@ const Qe = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */
591
765
  ...t
592
766
  }
593
767
  ));
594
- Qe.displayName = l.Item.displayName;
595
- const We = r.forwardRef(({ className: a, children: e, checked: t, ...n }, m) => /* @__PURE__ */ p(
768
+ fa.displayName = l.Item.displayName;
769
+ const ua = r.forwardRef(({ className: a, children: e, checked: t, ...n }, m) => /* @__PURE__ */ p(
596
770
  l.CheckboxItem,
597
771
  {
598
772
  ref: m,
@@ -608,8 +782,8 @@ const We = r.forwardRef(({ className: a, children: e, checked: t, ...n }, m) =>
608
782
  ]
609
783
  }
610
784
  ));
611
- We.displayName = l.CheckboxItem.displayName;
612
- const Ye = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
785
+ ua.displayName = l.CheckboxItem.displayName;
786
+ const ga = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
613
787
  l.RadioItem,
614
788
  {
615
789
  ref: n,
@@ -624,8 +798,8 @@ const Ye = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
624
798
  ]
625
799
  }
626
800
  ));
627
- Ye.displayName = l.RadioItem.displayName;
628
- const Ze = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
801
+ ga.displayName = l.RadioItem.displayName;
802
+ const ba = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
629
803
  l.Label,
630
804
  {
631
805
  ref: n,
@@ -633,59 +807,12 @@ const Ze = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */
633
807
  ...t
634
808
  }
635
809
  ));
636
- Ze.displayName = l.Label.displayName;
637
- const ea = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-border", a), ...e }));
638
- ea.displayName = l.Separator.displayName;
639
- const aa = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
640
- aa.displayName = "ContextMenuShortcut";
641
- const lt = R.Root, ct = R.Trigger, ta = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...n }, m) => /* @__PURE__ */ o(
642
- R.Content,
643
- {
644
- ref: m,
645
- align: e,
646
- sideOffset: t,
647
- className: s(
648
- "z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
649
- a
650
- ),
651
- ...n
652
- }
653
- ));
654
- ta.displayName = R.Content.displayName;
655
- const oa = N(
656
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
657
- ), sa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
658
- A.Root,
659
- {
660
- ref: t,
661
- className: s(oa(), a),
662
- ...e
663
- }
664
- ));
665
- sa.displayName = A.Root.displayName;
666
- const ra = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(g.Root, { ref: n, className: s("relative overflow-hidden", a), ...t, children: [
667
- /* @__PURE__ */ o(g.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
668
- /* @__PURE__ */ o(G, {}),
669
- /* @__PURE__ */ o(g.Corner, {})
670
- ] }));
671
- ra.displayName = g.Root.displayName;
672
- const G = r.forwardRef(({ className: a, orientation: e = "vertical", ...t }, n) => /* @__PURE__ */ o(
673
- g.ScrollAreaScrollbar,
674
- {
675
- ref: n,
676
- orientation: e,
677
- className: s(
678
- "flex touch-none select-none transition-colors",
679
- e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
680
- e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
681
- a
682
- ),
683
- ...t,
684
- children: /* @__PURE__ */ o(g.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
685
- }
686
- ));
687
- G.displayName = g.ScrollAreaScrollbar.displayName;
688
- const mt = c.Root, pt = c.Group, ft = c.Value, na = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
810
+ ba.displayName = l.Label.displayName;
811
+ const xa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-border", a), ...e }));
812
+ xa.displayName = l.Separator.displayName;
813
+ const ha = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
814
+ ha.displayName = "ContextMenuShortcut";
815
+ const gt = c.Root, bt = c.Group, xt = c.Value, ya = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
689
816
  c.Trigger,
690
817
  {
691
818
  ref: n,
@@ -700,8 +827,8 @@ const mt = c.Root, pt = c.Group, ft = c.Value, na = r.forwardRef(({ className: a
700
827
  ]
701
828
  }
702
829
  ));
703
- na.displayName = c.Trigger.displayName;
704
- const H = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
830
+ ya.displayName = c.Trigger.displayName;
831
+ const B = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
705
832
  c.ScrollUpButton,
706
833
  {
707
834
  ref: t,
@@ -710,8 +837,8 @@ const H = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
710
837
  children: /* @__PURE__ */ o(E, { className: "h-4 w-4" })
711
838
  }
712
839
  ));
713
- H.displayName = c.ScrollUpButton.displayName;
714
- const B = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
840
+ B.displayName = c.ScrollUpButton.displayName;
841
+ const F = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
715
842
  c.ScrollDownButton,
716
843
  {
717
844
  ref: t,
@@ -720,8 +847,8 @@ const B = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
720
847
  children: /* @__PURE__ */ o(k, { className: "h-4 w-4" })
721
848
  }
722
849
  ));
723
- B.displayName = c.ScrollDownButton.displayName;
724
- const da = r.forwardRef(({ className: a, children: e, position: t = "popper", ...n }, m) => /* @__PURE__ */ o(c.Portal, { children: /* @__PURE__ */ p(
850
+ F.displayName = c.ScrollDownButton.displayName;
851
+ const Na = r.forwardRef(({ className: a, children: e, position: t = "popper", ...n }, m) => /* @__PURE__ */ o(c.Portal, { children: /* @__PURE__ */ p(
725
852
  c.Content,
726
853
  {
727
854
  ref: m,
@@ -733,7 +860,7 @@ const da = r.forwardRef(({ className: a, children: e, position: t = "popper", ..
733
860
  position: t,
734
861
  ...n,
735
862
  children: [
736
- /* @__PURE__ */ o(H, {}),
863
+ /* @__PURE__ */ o(B, {}),
737
864
  /* @__PURE__ */ o(
738
865
  c.Viewport,
739
866
  {
@@ -744,14 +871,14 @@ const da = r.forwardRef(({ className: a, children: e, position: t = "popper", ..
744
871
  children: e
745
872
  }
746
873
  ),
747
- /* @__PURE__ */ o(B, {})
874
+ /* @__PURE__ */ o(F, {})
748
875
  ]
749
876
  }
750
877
  ) }));
751
- da.displayName = c.Content.displayName;
752
- const ia = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(c.Label, { ref: t, className: s("px-2 py-1.5 text-sm font-semibold", a), ...e }));
753
- ia.displayName = c.Label.displayName;
754
- const la = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
878
+ Na.displayName = c.Content.displayName;
879
+ const va = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(c.Label, { ref: t, className: s("px-2 py-1.5 text-sm font-semibold", a), ...e }));
880
+ va.displayName = c.Label.displayName;
881
+ const wa = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
755
882
  c.Item,
756
883
  {
757
884
  ref: n,
@@ -766,69 +893,10 @@ const la = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
766
893
  ]
767
894
  }
768
895
  ));
769
- la.displayName = c.Item.displayName;
770
- const ca = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(c.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
771
- ca.displayName = c.Separator.displayName;
772
- const ma = r.forwardRef(({ className: a, orientation: e = "horizontal", decorative: t = !0, ...n }, m) => /* @__PURE__ */ o(
773
- P.Root,
774
- {
775
- ref: m,
776
- decorative: t,
777
- orientation: e,
778
- className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
779
- ...n
780
- }
781
- ));
782
- ma.displayName = P.Root.displayName;
783
- const ut = d.Root, gt = d.Trigger, bt = d.Close, pa = d.Portal, F = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
784
- d.Overlay,
785
- {
786
- className: s(
787
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
788
- a
789
- ),
790
- ...e,
791
- ref: t
792
- }
793
- ));
794
- F.displayName = d.Overlay.displayName;
795
- const fa = N(
796
- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
797
- {
798
- variants: {
799
- side: {
800
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
801
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
802
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
803
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
804
- }
805
- },
806
- defaultVariants: {
807
- side: "right"
808
- }
809
- }
810
- ), ua = r.forwardRef(
811
- ({ side: a = "right", className: e, children: t, ...n }, m) => /* @__PURE__ */ p(pa, { children: [
812
- /* @__PURE__ */ o(F, {}),
813
- /* @__PURE__ */ p(d.Content, { ref: m, className: s(fa({ side: a }), e), ...n, children: [
814
- /* @__PURE__ */ p(d.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
815
- /* @__PURE__ */ o(z, { className: "h-4 w-4" }),
816
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
817
- ] }),
818
- t
819
- ] })
820
- ] })
821
- );
822
- ua.displayName = d.Content.displayName;
823
- const ga = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
824
- ga.displayName = "SheetHeader";
825
- const ba = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
826
- ba.displayName = "SheetFooter";
827
- const xa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", a), ...e }));
828
- xa.displayName = d.Title.displayName;
829
- const ha = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
830
- ha.displayName = d.Description.displayName;
831
- const ya = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(
896
+ wa.displayName = c.Item.displayName;
897
+ const Ra = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(c.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
898
+ Ra.displayName = c.Separator.displayName;
899
+ const Ca = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(
832
900
  w.Root,
833
901
  {
834
902
  ref: t,
@@ -843,8 +911,8 @@ const ya = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(
843
911
  ]
844
912
  }
845
913
  ));
846
- ya.displayName = w.Root.displayName;
847
- const xt = ({ ...a }) => {
914
+ Ca.displayName = w.Root.displayName;
915
+ const ht = ({ ...a }) => {
848
916
  const { theme: e = "system" } = q();
849
917
  return /* @__PURE__ */ o(
850
918
  X,
@@ -862,75 +930,7 @@ const xt = ({ ...a }) => {
862
930
  ...a
863
931
  }
864
932
  );
865
- }, Na = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
866
- C.Root,
867
- {
868
- className: s(
869
- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
870
- a
871
- ),
872
- ...e,
873
- ref: t,
874
- children: /* @__PURE__ */ o(
875
- C.Thumb,
876
- {
877
- className: s(
878
- "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
879
- )
880
- }
881
- )
882
- }
883
- ));
884
- Na.displayName = C.Root.displayName;
885
- const ht = x.Root, va = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
886
- x.List,
887
- {
888
- ref: t,
889
- className: s(
890
- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
891
- a
892
- ),
893
- ...e
894
- }
895
- ));
896
- va.displayName = x.List.displayName;
897
- const wa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
898
- x.Trigger,
899
- {
900
- ref: t,
901
- className: s(
902
- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
903
- a
904
- ),
905
- ...e
906
- }
907
- ));
908
- wa.displayName = x.Trigger.displayName;
909
- const Ra = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
910
- x.Content,
911
- {
912
- ref: t,
913
- className: s(
914
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
915
- a
916
- ),
917
- ...e
918
- }
919
- ));
920
- Ra.displayName = x.Content.displayName;
921
- const Ca = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
922
- "textarea",
923
- {
924
- className: s(
925
- "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
926
- a
927
- ),
928
- ref: t,
929
- ...e
930
- }
931
- ));
932
- Ca.displayName = "Textarea";
933
- const Sa = N(
933
+ }, Sa = N(
934
934
  "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
935
935
  {
936
936
  variants: {
@@ -952,12 +952,12 @@ const Sa = N(
952
952
  ), ka = r.forwardRef(({ className: a, variant: e, size: t, ...n }, m) => /* @__PURE__ */ o(M.Root, { ref: m, className: s(Sa({ variant: e, size: t, className: a })), ...n }));
953
953
  ka.displayName = M.Root.displayName;
954
954
  export {
955
- Xe as $,
955
+ ca as $,
956
956
  et as A,
957
957
  Za as B,
958
- Fe as C,
959
- Oe as D,
960
- Ue as E,
958
+ Pe as C,
959
+ Me as D,
960
+ _e as E,
961
961
  L as F,
962
962
  qa as G,
963
963
  xe as H,
@@ -967,22 +967,22 @@ export {
967
967
  we as L,
968
968
  Re as M,
969
969
  ve as N,
970
- ot as O,
971
- We as P,
972
- Ke as Q,
973
- rt as R,
974
- Qe as S,
975
- Ze as T,
976
- nt as U,
977
- it as V,
978
- Ye as W,
979
- ea as X,
980
- aa as Y,
981
- dt as Z,
982
- Je as _,
970
+ lt as O,
971
+ ua as P,
972
+ pa as Q,
973
+ mt as R,
974
+ fa as S,
975
+ ba as T,
976
+ pt as U,
977
+ ut as V,
978
+ ga as W,
979
+ xa as X,
980
+ ha as Y,
981
+ ft as Z,
982
+ ma as _,
983
983
  Te as a,
984
- Ra as a$,
985
- st as a0,
984
+ Ue as a$,
985
+ ct as a0,
986
986
  me as a1,
987
987
  $a as a2,
988
988
  j as a3,
@@ -992,33 +992,33 @@ export {
992
992
  _ as a7,
993
993
  pe as a8,
994
994
  ge as a9,
995
- G as aA,
996
- mt as aB,
997
- da as aC,
998
- pt as aD,
999
- la as aE,
1000
- ia as aF,
1001
- B as aG,
1002
- H as aH,
1003
- ca as aI,
1004
- na as aJ,
1005
- ft as aK,
1006
- ma as aL,
1007
- ut as aM,
1008
- bt as aN,
1009
- ua as aO,
1010
- ha as aP,
1011
- ba as aQ,
1012
- ga as aR,
1013
- F as aS,
1014
- pa as aT,
1015
- xa as aU,
1016
- gt as aV,
995
+ V as aA,
996
+ gt as aB,
997
+ Na as aC,
998
+ bt as aD,
999
+ wa as aE,
1000
+ va as aF,
1001
+ F as aG,
1002
+ B as aH,
1003
+ Ra as aI,
1004
+ ya as aJ,
1005
+ xt as aK,
1006
+ ta as aL,
1007
+ nt as aM,
1008
+ it as aN,
1009
+ ra as aO,
1010
+ la as aP,
1011
+ da as aQ,
1012
+ na as aR,
1013
+ H as aS,
1014
+ oa as aT,
1015
+ ia as aU,
1016
+ dt as aV,
1017
1017
  Ua as aW,
1018
- ya as aX,
1019
- xt as aY,
1020
- Na as aZ,
1021
- ht as a_,
1018
+ Ca as aX,
1019
+ ht as aY,
1020
+ Ye as aZ,
1021
+ ot as a_,
1022
1022
  Ea as aa,
1023
1023
  Va as ab,
1024
1024
  ae as ac,
@@ -1035,20 +1035,20 @@ export {
1035
1035
  Y as an,
1036
1036
  W as ao,
1037
1037
  Ga as ap,
1038
- lt as aq,
1039
- ta as ar,
1040
- ct as as,
1038
+ at as aq,
1039
+ ze as ar,
1040
+ tt as as,
1041
1041
  ce as at,
1042
- sa as au,
1042
+ He as au,
1043
1043
  Xa as av,
1044
1044
  Ka as aw,
1045
1045
  Ce as ax,
1046
1046
  Ja as ay,
1047
- ra as az,
1047
+ Be as az,
1048
1048
  De as b,
1049
- va as b0,
1050
- wa as b1,
1051
- Ca as b2,
1049
+ Fe as b0,
1050
+ Oe as b1,
1051
+ Ae as b2,
1052
1052
  ka as b3,
1053
1053
  Sa as b4,
1054
1054
  Wa as b5,
@@ -1060,24 +1060,24 @@ export {
1060
1060
  de as d,
1061
1061
  le as e,
1062
1062
  ie as f,
1063
- at as g,
1064
- Le as h,
1065
- Ve as i,
1066
- Ae as j,
1067
- je as k,
1068
- Me as l,
1069
- Pe as m,
1070
- V as n,
1071
- ze as o,
1072
- _e as p,
1073
- tt as q,
1074
- Ge as r,
1075
- He as s,
1076
- Be as t,
1063
+ st as g,
1064
+ Qe as h,
1065
+ We as i,
1066
+ $e as j,
1067
+ Ke as k,
1068
+ Xe as l,
1069
+ qe as m,
1070
+ G as n,
1071
+ Ee as o,
1072
+ Je as p,
1073
+ rt as q,
1074
+ Ze as r,
1075
+ ea as s,
1076
+ aa as t,
1077
1077
  ke as u,
1078
1078
  Q as v,
1079
1079
  T as w,
1080
- $e as x,
1081
- Ee as y,
1082
- qe as z
1080
+ Le as x,
1081
+ je as y,
1082
+ Ve as z
1083
1083
  };