@chaibuilder/sdk 2.4.4 → 2.4.6
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/{code-editor-CJfScsxg.js → code-editor-0HrsuGAE.js} +1 -1
- package/dist/{code-editor-Dy-oKXKY.cjs → code-editor-67qfXwGU.cjs} +1 -1
- package/dist/core.cjs +4 -4
- package/dist/core.js +773 -731
- package/dist/{CssImportModal-DXUM3oRB.js → css-import-modal-CcUf6F6T.js} +1 -1
- package/dist/{CssImportModal-CUuK4FZH.cjs → css-import-modal-CdOK43Be.cjs} +1 -1
- package/dist/{toggle-D0REpYUl.cjs → toggle-BgZfmuec.cjs} +1 -1
- package/dist/{toggle-BKtuoy5e.js → toggle-CyXEVUOu.js} +241 -244
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/package.json +5 -5
|
@@ -12,14 +12,14 @@ import * as R from "@radix-ui/react-hover-card";
|
|
|
12
12
|
import * as A from "@radix-ui/react-label";
|
|
13
13
|
import * as g from "@radix-ui/react-scroll-area";
|
|
14
14
|
import * as x from "@radix-ui/react-tabs";
|
|
15
|
+
import * as w from "@radix-ui/react-slider";
|
|
16
|
+
import * as c from "@radix-ui/react-select";
|
|
17
|
+
import * as P from "@radix-ui/react-separator";
|
|
18
|
+
import * as C from "@radix-ui/react-switch";
|
|
15
19
|
import * as f from "@radix-ui/react-alert-dialog";
|
|
16
20
|
import { Slot as q } from "@radix-ui/react-slot";
|
|
17
|
-
import * as C from "@radix-ui/react-switch";
|
|
18
21
|
import * as v from "@radix-ui/react-avatar";
|
|
19
|
-
import * as P from "@radix-ui/react-separator";
|
|
20
22
|
import * as l from "@radix-ui/react-context-menu";
|
|
21
|
-
import * as c from "@radix-ui/react-select";
|
|
22
|
-
import * as w from "@radix-ui/react-slider";
|
|
23
23
|
import * as M from "@radix-ui/react-toggle";
|
|
24
24
|
import { clsx as X } from "clsx";
|
|
25
25
|
import { twMerge as $ } from "tailwind-merge";
|
|
@@ -552,53 +552,115 @@ const Be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
552
552
|
}
|
|
553
553
|
));
|
|
554
554
|
Be.displayName = x.Content.displayName;
|
|
555
|
-
const
|
|
556
|
-
|
|
555
|
+
const Oe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(
|
|
556
|
+
w.Root,
|
|
557
|
+
{
|
|
558
|
+
ref: t,
|
|
559
|
+
className: s("relative flex w-full touch-none select-none items-center", a),
|
|
560
|
+
...e,
|
|
561
|
+
children: [
|
|
562
|
+
/* @__PURE__ */ o(w.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-300", children: /* @__PURE__ */ o(w.Range, { className: "absolute h-full bg-neutral-900" }) }),
|
|
563
|
+
/* @__PURE__ */ o(w.Thumb, { className: "block h-4 w-4 rounded-full border border-neutral-900 bg-neutral-900 shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-900 disabled:pointer-events-none disabled:opacity-50" })
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
));
|
|
567
|
+
Oe.displayName = w.Root.displayName;
|
|
568
|
+
const et = c.Root, at = c.Group, tt = c.Value, Ue = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
|
|
569
|
+
c.Trigger,
|
|
557
570
|
{
|
|
571
|
+
ref: n,
|
|
558
572
|
className: s(
|
|
559
|
-
"
|
|
573
|
+
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",
|
|
560
574
|
a
|
|
561
575
|
),
|
|
576
|
+
...t,
|
|
577
|
+
children: [
|
|
578
|
+
e,
|
|
579
|
+
/* @__PURE__ */ o(c.Icon, { asChild: !0, children: /* @__PURE__ */ o(k, { className: "h-4 w-4 opacity-50" }) })
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
));
|
|
583
|
+
Ue.displayName = c.Trigger.displayName;
|
|
584
|
+
const G = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
585
|
+
c.ScrollUpButton,
|
|
586
|
+
{
|
|
587
|
+
ref: t,
|
|
588
|
+
className: s("flex cursor-default items-center justify-center py-1", a),
|
|
562
589
|
...e,
|
|
563
|
-
|
|
590
|
+
children: /* @__PURE__ */ o(E, { className: "h-4 w-4" })
|
|
564
591
|
}
|
|
565
592
|
));
|
|
566
|
-
G.displayName =
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
/* @__PURE__ */ o(
|
|
570
|
-
f.Content,
|
|
571
|
-
{
|
|
572
|
-
ref: t,
|
|
573
|
-
className: s(
|
|
574
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
575
|
-
a
|
|
576
|
-
),
|
|
577
|
-
...e
|
|
578
|
-
}
|
|
579
|
-
)
|
|
580
|
-
] }));
|
|
581
|
-
Ue.displayName = f.Content.displayName;
|
|
582
|
-
const Ee = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
|
|
583
|
-
Ee.displayName = "AlertDialogHeader";
|
|
584
|
-
const qe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
585
|
-
qe.displayName = "AlertDialogFooter";
|
|
586
|
-
const Xe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
|
|
587
|
-
Xe.displayName = f.Title.displayName;
|
|
588
|
-
const $e = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
|
|
589
|
-
$e.displayName = f.Description.displayName;
|
|
590
|
-
const Je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Action, { ref: t, className: s(T(), a), ...e }));
|
|
591
|
-
Je.displayName = f.Action.displayName;
|
|
592
|
-
const Ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
593
|
-
f.Cancel,
|
|
593
|
+
G.displayName = c.ScrollUpButton.displayName;
|
|
594
|
+
const H = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
595
|
+
c.ScrollDownButton,
|
|
594
596
|
{
|
|
595
597
|
ref: t,
|
|
596
|
-
className: s(
|
|
597
|
-
...e
|
|
598
|
+
className: s("flex cursor-default items-center justify-center py-1", a),
|
|
599
|
+
...e,
|
|
600
|
+
children: /* @__PURE__ */ o(k, { className: "h-4 w-4" })
|
|
601
|
+
}
|
|
602
|
+
));
|
|
603
|
+
H.displayName = c.ScrollDownButton.displayName;
|
|
604
|
+
const Ee = r.forwardRef(({ className: a, children: e, position: t = "popper", ...n }, m) => /* @__PURE__ */ o(c.Portal, { children: /* @__PURE__ */ p(
|
|
605
|
+
c.Content,
|
|
606
|
+
{
|
|
607
|
+
ref: m,
|
|
608
|
+
className: s(
|
|
609
|
+
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
|
|
610
|
+
t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
611
|
+
a
|
|
612
|
+
),
|
|
613
|
+
position: t,
|
|
614
|
+
...n,
|
|
615
|
+
children: [
|
|
616
|
+
/* @__PURE__ */ o(G, {}),
|
|
617
|
+
/* @__PURE__ */ o(
|
|
618
|
+
c.Viewport,
|
|
619
|
+
{
|
|
620
|
+
className: s(
|
|
621
|
+
"p-1",
|
|
622
|
+
t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
623
|
+
),
|
|
624
|
+
children: e
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
/* @__PURE__ */ o(H, {})
|
|
628
|
+
]
|
|
629
|
+
}
|
|
630
|
+
) }));
|
|
631
|
+
Ee.displayName = c.Content.displayName;
|
|
632
|
+
const qe = 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 }));
|
|
633
|
+
qe.displayName = c.Label.displayName;
|
|
634
|
+
const Xe = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
|
|
635
|
+
c.Item,
|
|
636
|
+
{
|
|
637
|
+
ref: n,
|
|
638
|
+
className: s(
|
|
639
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
640
|
+
a
|
|
641
|
+
),
|
|
642
|
+
...t,
|
|
643
|
+
children: [
|
|
644
|
+
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(c.ItemIndicator, { children: /* @__PURE__ */ o(S, { className: "h-4 w-4" }) }) }),
|
|
645
|
+
/* @__PURE__ */ o(c.ItemText, { children: e })
|
|
646
|
+
]
|
|
598
647
|
}
|
|
599
648
|
));
|
|
600
|
-
|
|
601
|
-
const
|
|
649
|
+
Xe.displayName = c.Item.displayName;
|
|
650
|
+
const $e = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(c.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
|
|
651
|
+
$e.displayName = c.Separator.displayName;
|
|
652
|
+
const Je = r.forwardRef(({ className: a, orientation: e = "horizontal", decorative: t = !0, ...n }, m) => /* @__PURE__ */ o(
|
|
653
|
+
P.Root,
|
|
654
|
+
{
|
|
655
|
+
ref: m,
|
|
656
|
+
decorative: t,
|
|
657
|
+
orientation: e,
|
|
658
|
+
className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
|
|
659
|
+
...n
|
|
660
|
+
}
|
|
661
|
+
));
|
|
662
|
+
Je.displayName = P.Root.displayName;
|
|
663
|
+
const Ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
602
664
|
C.Root,
|
|
603
665
|
{
|
|
604
666
|
className: s(
|
|
@@ -617,8 +679,54 @@ const Qe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
617
679
|
)
|
|
618
680
|
}
|
|
619
681
|
));
|
|
620
|
-
|
|
621
|
-
const
|
|
682
|
+
Ke.displayName = C.Root.displayName;
|
|
683
|
+
const ot = f.Root, st = f.Trigger, Qe = f.Portal, F = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
684
|
+
f.Overlay,
|
|
685
|
+
{
|
|
686
|
+
className: s(
|
|
687
|
+
"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",
|
|
688
|
+
a
|
|
689
|
+
),
|
|
690
|
+
...e,
|
|
691
|
+
ref: t
|
|
692
|
+
}
|
|
693
|
+
));
|
|
694
|
+
F.displayName = f.Overlay.displayName;
|
|
695
|
+
const We = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(Qe, { children: [
|
|
696
|
+
/* @__PURE__ */ o(F, {}),
|
|
697
|
+
/* @__PURE__ */ o(
|
|
698
|
+
f.Content,
|
|
699
|
+
{
|
|
700
|
+
ref: t,
|
|
701
|
+
className: s(
|
|
702
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
703
|
+
a
|
|
704
|
+
),
|
|
705
|
+
...e
|
|
706
|
+
}
|
|
707
|
+
)
|
|
708
|
+
] }));
|
|
709
|
+
We.displayName = f.Content.displayName;
|
|
710
|
+
const Ye = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
|
|
711
|
+
Ye.displayName = "AlertDialogHeader";
|
|
712
|
+
const Ze = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
713
|
+
Ze.displayName = "AlertDialogFooter";
|
|
714
|
+
const ea = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
|
|
715
|
+
ea.displayName = f.Title.displayName;
|
|
716
|
+
const aa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
|
|
717
|
+
aa.displayName = f.Description.displayName;
|
|
718
|
+
const ta = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Action, { ref: t, className: s(T(), a), ...e }));
|
|
719
|
+
ta.displayName = f.Action.displayName;
|
|
720
|
+
const oa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
721
|
+
f.Cancel,
|
|
722
|
+
{
|
|
723
|
+
ref: t,
|
|
724
|
+
className: s(T({ variant: "outline" }), "mt-2 sm:mt-0", a),
|
|
725
|
+
...e
|
|
726
|
+
}
|
|
727
|
+
));
|
|
728
|
+
oa.displayName = f.Cancel.displayName;
|
|
729
|
+
const sa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
622
730
|
v.Root,
|
|
623
731
|
{
|
|
624
732
|
ref: t,
|
|
@@ -629,8 +737,8 @@ const We = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
629
737
|
...e
|
|
630
738
|
}
|
|
631
739
|
));
|
|
632
|
-
|
|
633
|
-
const
|
|
740
|
+
sa.displayName = v.Root.displayName;
|
|
741
|
+
const ra = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
634
742
|
v.Image,
|
|
635
743
|
{
|
|
636
744
|
ref: t,
|
|
@@ -638,8 +746,8 @@ const Ye = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
638
746
|
...e
|
|
639
747
|
}
|
|
640
748
|
));
|
|
641
|
-
|
|
642
|
-
const
|
|
749
|
+
ra.displayName = v.Image.displayName;
|
|
750
|
+
const na = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
643
751
|
v.Fallback,
|
|
644
752
|
{
|
|
645
753
|
ref: t,
|
|
@@ -650,19 +758,8 @@ const Ze = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
650
758
|
...e
|
|
651
759
|
}
|
|
652
760
|
));
|
|
653
|
-
|
|
654
|
-
const
|
|
655
|
-
P.Root,
|
|
656
|
-
{
|
|
657
|
-
ref: m,
|
|
658
|
-
decorative: t,
|
|
659
|
-
orientation: e,
|
|
660
|
-
className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
|
|
661
|
-
...n
|
|
662
|
-
}
|
|
663
|
-
));
|
|
664
|
-
ea.displayName = P.Root.displayName;
|
|
665
|
-
const tt = d.Root, ot = d.Trigger, st = d.Close, aa = d.Portal, H = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
761
|
+
na.displayName = v.Fallback.displayName;
|
|
762
|
+
const rt = d.Root, nt = d.Trigger, dt = d.Close, da = d.Portal, B = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
666
763
|
d.Overlay,
|
|
667
764
|
{
|
|
668
765
|
className: s(
|
|
@@ -673,8 +770,8 @@ const tt = d.Root, ot = d.Trigger, st = d.Close, aa = d.Portal, H = r.forwardRef
|
|
|
673
770
|
ref: t
|
|
674
771
|
}
|
|
675
772
|
));
|
|
676
|
-
|
|
677
|
-
const
|
|
773
|
+
B.displayName = d.Overlay.displayName;
|
|
774
|
+
const ia = N(
|
|
678
775
|
"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",
|
|
679
776
|
{
|
|
680
777
|
variants: {
|
|
@@ -689,10 +786,10 @@ const ta = N(
|
|
|
689
786
|
side: "right"
|
|
690
787
|
}
|
|
691
788
|
}
|
|
692
|
-
),
|
|
693
|
-
({ side: a = "right", className: e, children: t, ...n }, m) => /* @__PURE__ */ p(
|
|
694
|
-
/* @__PURE__ */ o(
|
|
695
|
-
/* @__PURE__ */ p(d.Content, { ref: m, className: s(
|
|
789
|
+
), la = r.forwardRef(
|
|
790
|
+
({ side: a = "right", className: e, children: t, ...n }, m) => /* @__PURE__ */ p(da, { children: [
|
|
791
|
+
/* @__PURE__ */ o(B, {}),
|
|
792
|
+
/* @__PURE__ */ p(d.Content, { ref: m, className: s(ia({ side: a }), e), ...n, children: [
|
|
696
793
|
/* @__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: [
|
|
697
794
|
/* @__PURE__ */ o(z, { className: "h-4 w-4" }),
|
|
698
795
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
@@ -701,16 +798,16 @@ const ta = N(
|
|
|
701
798
|
] })
|
|
702
799
|
] })
|
|
703
800
|
);
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
const
|
|
801
|
+
la.displayName = d.Content.displayName;
|
|
802
|
+
const ca = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
|
|
803
|
+
ca.displayName = "SheetHeader";
|
|
804
|
+
const ma = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
805
|
+
ma.displayName = "SheetFooter";
|
|
806
|
+
const pa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", a), ...e }));
|
|
807
|
+
pa.displayName = d.Title.displayName;
|
|
808
|
+
const fa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
|
|
809
|
+
fa.displayName = d.Description.displayName;
|
|
810
|
+
const it = l.Root, lt = l.Trigger, ct = l.Group, mt = l.Portal, pt = l.Sub, ft = l.RadioGroup, ua = r.forwardRef(({ className: a, inset: e, children: t, ...n }, m) => /* @__PURE__ */ p(
|
|
714
811
|
l.SubTrigger,
|
|
715
812
|
{
|
|
716
813
|
ref: m,
|
|
@@ -726,8 +823,8 @@ const rt = l.Root, nt = l.Trigger, dt = l.Group, it = l.Portal, lt = l.Sub, ct =
|
|
|
726
823
|
]
|
|
727
824
|
}
|
|
728
825
|
));
|
|
729
|
-
|
|
730
|
-
const
|
|
826
|
+
ua.displayName = l.SubTrigger.displayName;
|
|
827
|
+
const ga = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
731
828
|
l.SubContent,
|
|
732
829
|
{
|
|
733
830
|
ref: t,
|
|
@@ -738,8 +835,8 @@ const la = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
738
835
|
...e
|
|
739
836
|
}
|
|
740
837
|
));
|
|
741
|
-
|
|
742
|
-
const
|
|
838
|
+
ga.displayName = l.SubContent.displayName;
|
|
839
|
+
const ba = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Portal, { children: /* @__PURE__ */ o(
|
|
743
840
|
l.Content,
|
|
744
841
|
{
|
|
745
842
|
ref: t,
|
|
@@ -750,8 +847,8 @@ const ca = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Porta
|
|
|
750
847
|
...e
|
|
751
848
|
}
|
|
752
849
|
) }));
|
|
753
|
-
|
|
754
|
-
const
|
|
850
|
+
ba.displayName = l.Content.displayName;
|
|
851
|
+
const xa = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
|
|
755
852
|
l.Item,
|
|
756
853
|
{
|
|
757
854
|
ref: n,
|
|
@@ -763,8 +860,8 @@ const ma = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */
|
|
|
763
860
|
...t
|
|
764
861
|
}
|
|
765
862
|
));
|
|
766
|
-
|
|
767
|
-
const
|
|
863
|
+
xa.displayName = l.Item.displayName;
|
|
864
|
+
const ha = r.forwardRef(({ className: a, children: e, checked: t, ...n }, m) => /* @__PURE__ */ p(
|
|
768
865
|
l.CheckboxItem,
|
|
769
866
|
{
|
|
770
867
|
ref: m,
|
|
@@ -780,8 +877,8 @@ const pa = r.forwardRef(({ className: a, children: e, checked: t, ...n }, m) =>
|
|
|
780
877
|
]
|
|
781
878
|
}
|
|
782
879
|
));
|
|
783
|
-
|
|
784
|
-
const
|
|
880
|
+
ha.displayName = l.CheckboxItem.displayName;
|
|
881
|
+
const ya = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
|
|
785
882
|
l.RadioItem,
|
|
786
883
|
{
|
|
787
884
|
ref: n,
|
|
@@ -796,8 +893,8 @@ const fa = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
|
|
|
796
893
|
]
|
|
797
894
|
}
|
|
798
895
|
));
|
|
799
|
-
|
|
800
|
-
const
|
|
896
|
+
ya.displayName = l.RadioItem.displayName;
|
|
897
|
+
const Na = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
|
|
801
898
|
l.Label,
|
|
802
899
|
{
|
|
803
900
|
ref: n,
|
|
@@ -805,111 +902,11 @@ const ua = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */
|
|
|
805
902
|
...t
|
|
806
903
|
}
|
|
807
904
|
));
|
|
808
|
-
|
|
809
|
-
const
|
|
810
|
-
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
const mt = c.Root, pt = c.Group, ft = c.Value, xa = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
|
|
814
|
-
c.Trigger,
|
|
815
|
-
{
|
|
816
|
-
ref: n,
|
|
817
|
-
className: s(
|
|
818
|
-
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",
|
|
819
|
-
a
|
|
820
|
-
),
|
|
821
|
-
...t,
|
|
822
|
-
children: [
|
|
823
|
-
e,
|
|
824
|
-
/* @__PURE__ */ o(c.Icon, { asChild: !0, children: /* @__PURE__ */ o(k, { className: "h-4 w-4 opacity-50" }) })
|
|
825
|
-
]
|
|
826
|
-
}
|
|
827
|
-
));
|
|
828
|
-
xa.displayName = c.Trigger.displayName;
|
|
829
|
-
const F = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
830
|
-
c.ScrollUpButton,
|
|
831
|
-
{
|
|
832
|
-
ref: t,
|
|
833
|
-
className: s("flex cursor-default items-center justify-center py-1", a),
|
|
834
|
-
...e,
|
|
835
|
-
children: /* @__PURE__ */ o(E, { className: "h-4 w-4" })
|
|
836
|
-
}
|
|
837
|
-
));
|
|
838
|
-
F.displayName = c.ScrollUpButton.displayName;
|
|
839
|
-
const B = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
840
|
-
c.ScrollDownButton,
|
|
841
|
-
{
|
|
842
|
-
ref: t,
|
|
843
|
-
className: s("flex cursor-default items-center justify-center py-1", a),
|
|
844
|
-
...e,
|
|
845
|
-
children: /* @__PURE__ */ o(k, { className: "h-4 w-4" })
|
|
846
|
-
}
|
|
847
|
-
));
|
|
848
|
-
B.displayName = c.ScrollDownButton.displayName;
|
|
849
|
-
const ha = r.forwardRef(({ className: a, children: e, position: t = "popper", ...n }, m) => /* @__PURE__ */ o(c.Portal, { children: /* @__PURE__ */ p(
|
|
850
|
-
c.Content,
|
|
851
|
-
{
|
|
852
|
-
ref: m,
|
|
853
|
-
className: s(
|
|
854
|
-
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
|
|
855
|
-
t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
856
|
-
a
|
|
857
|
-
),
|
|
858
|
-
position: t,
|
|
859
|
-
...n,
|
|
860
|
-
children: [
|
|
861
|
-
/* @__PURE__ */ o(F, {}),
|
|
862
|
-
/* @__PURE__ */ o(
|
|
863
|
-
c.Viewport,
|
|
864
|
-
{
|
|
865
|
-
className: s(
|
|
866
|
-
"p-1",
|
|
867
|
-
t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
868
|
-
),
|
|
869
|
-
children: e
|
|
870
|
-
}
|
|
871
|
-
),
|
|
872
|
-
/* @__PURE__ */ o(B, {})
|
|
873
|
-
]
|
|
874
|
-
}
|
|
875
|
-
) }));
|
|
876
|
-
ha.displayName = c.Content.displayName;
|
|
877
|
-
const ya = 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 }));
|
|
878
|
-
ya.displayName = c.Label.displayName;
|
|
879
|
-
const Na = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
|
|
880
|
-
c.Item,
|
|
881
|
-
{
|
|
882
|
-
ref: n,
|
|
883
|
-
className: s(
|
|
884
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
885
|
-
a
|
|
886
|
-
),
|
|
887
|
-
...t,
|
|
888
|
-
children: [
|
|
889
|
-
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(c.ItemIndicator, { children: /* @__PURE__ */ o(S, { className: "h-4 w-4" }) }) }),
|
|
890
|
-
/* @__PURE__ */ o(c.ItemText, { children: e })
|
|
891
|
-
]
|
|
892
|
-
}
|
|
893
|
-
));
|
|
894
|
-
Na.displayName = c.Item.displayName;
|
|
895
|
-
const va = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(c.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
|
|
896
|
-
va.displayName = c.Separator.displayName;
|
|
897
|
-
const wa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(
|
|
898
|
-
w.Root,
|
|
899
|
-
{
|
|
900
|
-
ref: t,
|
|
901
|
-
className: s(
|
|
902
|
-
"relative flex w-full touch-none select-none items-center",
|
|
903
|
-
a
|
|
904
|
-
),
|
|
905
|
-
...e,
|
|
906
|
-
children: [
|
|
907
|
-
/* @__PURE__ */ o(w.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ o(w.Range, { className: "absolute h-full bg-primary" }) }),
|
|
908
|
-
/* @__PURE__ */ o(w.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
909
|
-
]
|
|
910
|
-
}
|
|
911
|
-
));
|
|
912
|
-
wa.displayName = w.Root.displayName;
|
|
905
|
+
Na.displayName = l.Label.displayName;
|
|
906
|
+
const va = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-border", a), ...e }));
|
|
907
|
+
va.displayName = l.Separator.displayName;
|
|
908
|
+
const wa = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
|
|
909
|
+
wa.displayName = "ContextMenuShortcut";
|
|
913
910
|
const Ra = N(
|
|
914
911
|
"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",
|
|
915
912
|
{
|
|
@@ -932,7 +929,7 @@ const Ra = N(
|
|
|
932
929
|
), Ca = r.forwardRef(({ className: a, variant: e, size: t, ...n }, m) => /* @__PURE__ */ o(M.Root, { ref: m, className: s(Ra({ variant: e, size: t, className: a })), ...n }));
|
|
933
930
|
Ca.displayName = M.Root.displayName;
|
|
934
931
|
export {
|
|
935
|
-
|
|
932
|
+
ua as $,
|
|
936
933
|
Qa as A,
|
|
937
934
|
Ka as B,
|
|
938
935
|
ze as C,
|
|
@@ -947,22 +944,22 @@ export {
|
|
|
947
944
|
Ne as L,
|
|
948
945
|
ve as M,
|
|
949
946
|
ye as N,
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
947
|
+
it as O,
|
|
948
|
+
ha as P,
|
|
949
|
+
ba as Q,
|
|
950
|
+
ct as R,
|
|
951
|
+
xa as S,
|
|
952
|
+
Na as T,
|
|
953
|
+
mt as U,
|
|
954
|
+
ft as V,
|
|
955
|
+
ya as W,
|
|
956
|
+
va as X,
|
|
957
|
+
wa as Y,
|
|
958
|
+
pt as Z,
|
|
959
|
+
ga as _,
|
|
963
960
|
Se as a,
|
|
964
961
|
He as a$,
|
|
965
|
-
|
|
962
|
+
lt as a0,
|
|
966
963
|
le as a1,
|
|
967
964
|
Ba as a2,
|
|
968
965
|
j as a3,
|
|
@@ -973,30 +970,30 @@ export {
|
|
|
973
970
|
ce as a8,
|
|
974
971
|
fe as a9,
|
|
975
972
|
V as aA,
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
973
|
+
et as aB,
|
|
974
|
+
Ee as aC,
|
|
975
|
+
at as aD,
|
|
976
|
+
Xe as aE,
|
|
977
|
+
qe as aF,
|
|
978
|
+
H as aG,
|
|
979
|
+
G as aH,
|
|
980
|
+
$e as aI,
|
|
981
|
+
Ue as aJ,
|
|
982
|
+
tt as aK,
|
|
983
|
+
Je as aL,
|
|
984
|
+
rt as aM,
|
|
985
|
+
dt as aN,
|
|
986
|
+
la as aO,
|
|
987
|
+
fa as aP,
|
|
988
|
+
ma as aQ,
|
|
989
|
+
ca as aR,
|
|
990
|
+
B as aS,
|
|
991
|
+
da as aT,
|
|
992
|
+
pa as aU,
|
|
993
|
+
nt as aV,
|
|
997
994
|
Ha as aW,
|
|
998
|
-
|
|
999
|
-
|
|
995
|
+
Oe as aX,
|
|
996
|
+
Ke as aY,
|
|
1000
997
|
Za as aZ,
|
|
1001
998
|
Be as a_,
|
|
1002
999
|
Fa as aa,
|
|
@@ -1039,20 +1036,20 @@ export {
|
|
|
1039
1036
|
re as d,
|
|
1040
1037
|
de as e,
|
|
1041
1038
|
ne as f,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1039
|
+
ot as g,
|
|
1040
|
+
ta as h,
|
|
1041
|
+
oa as i,
|
|
1042
|
+
We as j,
|
|
1043
|
+
aa as k,
|
|
1044
|
+
Ze as l,
|
|
1045
|
+
Ye as m,
|
|
1046
|
+
F as n,
|
|
1047
|
+
Qe as o,
|
|
1048
|
+
ea as p,
|
|
1049
|
+
st as q,
|
|
1050
|
+
sa as r,
|
|
1051
|
+
ra as s,
|
|
1052
|
+
na as t,
|
|
1056
1053
|
Ce as u,
|
|
1057
1054
|
J as v,
|
|
1058
1055
|
T as w,
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./toggle-BgZfmuec.cjs");exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.Alert=e.Alert;exports.AlertDescription=e.AlertDescription;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogOverlay=e.AlertDialogOverlay;exports.AlertDialogPortal=e.AlertDialogPortal;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.AlertTitle=e.AlertTitle;exports.Avatar=e.Avatar;exports.AvatarFallback=e.AvatarFallback;exports.AvatarImage=e.AvatarImage;exports.Badge=e.Badge;exports.Button=e.Button;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogClose=e.DialogClose;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogOverlay=e.DialogOverlay;exports.DialogPortal=e.DialogPortal;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverAnchor=e.PopoverAnchor;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectScrollDownButton=e.SelectScrollDownButton;exports.SelectScrollUpButton=e.SelectScrollUpButton;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Separator=e.Separator;exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetOverlay=e.SheetOverlay;exports.SheetPortal=e.SheetPortal;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;exports.Skeleton=e.Skeleton;exports.Slider=e.Slider;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toggle=e.Toggle;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.toggleVariants=e.toggleVariants;
|