@blocknote/shadcn 0.13.2 → 0.13.4

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.
@@ -1,4 +1,4 @@
1
- import * as p from "react";
1
+ import * as g from "react";
2
2
  import $e, { createContext as vr, useContext as br, forwardRef as N, useMemo as We } from "react";
3
3
  import { ComponentsContext as xr, BlockNoteViewRaw as hr } from "@blocknote/react";
4
4
  import { cva as Q } from "class-variance-authority";
@@ -31,9 +31,9 @@ function _r() {
31
31
  return Y;
32
32
  Be = 1;
33
33
  var r = $e, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
34
- function u(x, m, g) {
34
+ function c(x, m, p) {
35
35
  var b, _ = {}, P = null, B = null;
36
- g !== void 0 && (P = "" + g), m.key !== void 0 && (P = "" + m.key), m.ref !== void 0 && (B = m.ref);
36
+ p !== void 0 && (P = "" + p), m.key !== void 0 && (P = "" + m.key), m.ref !== void 0 && (B = m.ref);
37
37
  for (b in m)
38
38
  a.call(m, b) && !d.hasOwnProperty(b) && (_[b] = m[b]);
39
39
  if (x && x.defaultProps)
@@ -41,7 +41,7 @@ function _r() {
41
41
  _[b] === void 0 && (_[b] = m[b]);
42
42
  return { $$typeof: t, type: x, key: P, ref: B, props: _, _owner: i.current };
43
43
  }
44
- return Y.Fragment = o, Y.jsx = u, Y.jsxs = u, Y;
44
+ return Y.Fragment = o, Y.jsx = c, Y.jsxs = c, Y;
45
45
  }
46
46
  var U = {};
47
47
  /**
@@ -56,7 +56,7 @@ var U = {};
56
56
  var ze;
57
57
  function Er() {
58
58
  return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
59
- var r = $e, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), x = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), me = Symbol.iterator, Ft = "@@iterator";
59
+ var r = $e, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), x = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), me = Symbol.iterator, Ft = "@@iterator";
60
60
  function kt(e) {
61
61
  if (e === null || typeof e != "object")
62
62
  return null;
@@ -84,7 +84,7 @@ function Er() {
84
84
  var Bt = !1, zt = !1, Vt = !1, At = !1, $t = !1, pe;
85
85
  pe = Symbol.for("react.module.reference");
86
86
  function Wt(e) {
87
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || $t || e === i || e === g || e === b || At || e === B || Bt || zt || Vt || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === _ || e.$$typeof === u || e.$$typeof === x || e.$$typeof === m || // This needs to include all possible module reference object
87
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || $t || e === i || e === p || e === b || At || e === B || Bt || zt || Vt || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === _ || e.$$typeof === c || e.$$typeof === x || e.$$typeof === m || // This needs to include all possible module reference object
88
88
  // types supported by any Flight configuration anywhere since
89
89
  // we don't know which Flight build this will end up being used
90
90
  // with.
@@ -116,7 +116,7 @@ function Er() {
116
116
  return "Profiler";
117
117
  case i:
118
118
  return "StrictMode";
119
- case g:
119
+ case p:
120
120
  return "Suspense";
121
121
  case b:
122
122
  return "SuspenseList";
@@ -126,7 +126,7 @@ function Er() {
126
126
  case x:
127
127
  var s = e;
128
128
  return ge(s) + ".Consumer";
129
- case u:
129
+ case c:
130
130
  var l = e;
131
131
  return ge(l._context) + ".Provider";
132
132
  case m:
@@ -312,7 +312,7 @@ function Er() {
312
312
  if (typeof e == "string")
313
313
  return H(e);
314
314
  switch (e) {
315
- case g:
315
+ case p:
316
316
  return H("Suspense");
317
317
  case b:
318
318
  return H("SuspenseList");
@@ -642,7 +642,7 @@ Check the top-level render call using <` + l + ">.");
642
642
  }
643
643
  process.env.NODE_ENV === "production" ? de.exports = _r() : de.exports = Er();
644
644
  var n = de.exports;
645
- function c(...r) {
645
+ function u(...r) {
646
646
  return Cr(yr(r));
647
647
  }
648
648
  const Ke = Q(
@@ -662,7 +662,7 @@ const Ke = Q(
662
662
  }
663
663
  );
664
664
  function Pr({ className: r, variant: t, ...o }) {
665
- return /* @__PURE__ */ n.jsx("div", { className: c(Ke({ variant: t }), r), ...o });
665
+ return /* @__PURE__ */ n.jsx("div", { className: u(Ke({ variant: t }), r), ...o });
666
666
  }
667
667
  const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
668
668
  __proto__: null,
@@ -692,13 +692,13 @@ const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
692
692
  size: "default"
693
693
  }
694
694
  }
695
- ), Ze = p.forwardRef(
695
+ ), Ze = g.forwardRef(
696
696
  ({ className: r, variant: t, size: o, asChild: a = !1, ...i }, d) => {
697
- const u = a ? Ye : "button";
697
+ const c = a ? Ye : "button";
698
698
  return /* @__PURE__ */ n.jsx(
699
- u,
699
+ c,
700
700
  {
701
- className: c(Xe({ variant: t, size: o, className: r })),
701
+ className: u(Xe({ variant: t, size: o, className: r })),
702
702
  ref: d,
703
703
  ...i
704
704
  }
@@ -710,11 +710,11 @@ const Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
710
710
  __proto__: null,
711
711
  Button: Ze,
712
712
  buttonVariants: Xe
713
- }, Symbol.toStringTag, { value: "Module" })), Qe = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
713
+ }, Symbol.toStringTag, { value: "Module" })), Qe = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
714
714
  "div",
715
715
  {
716
716
  ref: o,
717
- className: c(
717
+ className: u(
718
718
  "rounded-lg border bg-card text-card-foreground shadow-sm",
719
719
  r
720
720
  ),
@@ -722,20 +722,20 @@ const Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
722
722
  }
723
723
  ));
724
724
  Qe.displayName = "Card";
725
- const et = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
725
+ const et = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
726
726
  "div",
727
727
  {
728
728
  ref: o,
729
- className: c("flex flex-col space-y-1.5 p-6", r),
729
+ className: u("flex flex-col space-y-1.5 p-6", r),
730
730
  ...t
731
731
  }
732
732
  ));
733
733
  et.displayName = "CardHeader";
734
- const tt = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
734
+ const tt = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
735
735
  "h3",
736
736
  {
737
737
  ref: o,
738
- className: c(
738
+ className: u(
739
739
  "text-2xl font-semibold leading-none tracking-tight",
740
740
  r
741
741
  ),
@@ -743,22 +743,22 @@ const tt = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
743
743
  }
744
744
  ));
745
745
  tt.displayName = "CardTitle";
746
- const rt = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
746
+ const rt = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
747
747
  "p",
748
748
  {
749
749
  ref: o,
750
- className: c("text-sm text-muted-foreground", r),
750
+ className: u("text-sm text-muted-foreground", r),
751
751
  ...t
752
752
  }
753
753
  ));
754
754
  rt.displayName = "CardDescription";
755
- const ot = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx("div", { ref: o, className: c("p-6 pt-0", r), ...t }));
755
+ const ot = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx("div", { ref: o, className: u("p-6 pt-0", r), ...t }));
756
756
  ot.displayName = "CardContent";
757
- const nt = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
757
+ const nt = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
758
758
  "div",
759
759
  {
760
760
  ref: o,
761
- className: c("flex items-center p-6 pt-0", r),
761
+ className: u("flex items-center p-6 pt-0", r),
762
762
  ...t
763
763
  }
764
764
  ));
@@ -771,11 +771,11 @@ const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
771
771
  CardFooter: nt,
772
772
  CardHeader: et,
773
773
  CardTitle: tt
774
- }, Symbol.toStringTag, { value: "Module" })), Ir = w.Root, Fr = w.Trigger, kr = w.Group, Lr = w.Portal, Br = w.Sub, zr = w.RadioGroup, at = p.forwardRef(({ className: r, inset: t, children: o, ...a }, i) => /* @__PURE__ */ n.jsxs(
774
+ }, Symbol.toStringTag, { value: "Module" })), Ir = w.Root, Fr = w.Trigger, kr = w.Group, Lr = w.Portal, Br = w.Sub, zr = w.RadioGroup, at = g.forwardRef(({ className: r, inset: t, children: o, ...a }, i) => /* @__PURE__ */ n.jsxs(
775
775
  w.SubTrigger,
776
776
  {
777
777
  ref: i,
778
- className: c(
778
+ className: u(
779
779
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
780
780
  t && "pl-8",
781
781
  r
@@ -788,11 +788,11 @@ const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
788
788
  }
789
789
  ));
790
790
  at.displayName = w.SubTrigger.displayName;
791
- const st = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
791
+ const st = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
792
792
  w.SubContent,
793
793
  {
794
794
  ref: o,
795
- className: c(
795
+ className: u(
796
796
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
797
797
  r
798
798
  ),
@@ -800,14 +800,14 @@ const st = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
800
800
  }
801
801
  ));
802
802
  st.displayName = w.SubContent.displayName;
803
- const it = p.forwardRef(({ className: r, sideOffset: t = 4, ...o }, a) => (
803
+ const it = g.forwardRef(({ className: r, sideOffset: t = 4, ...o }, a) => (
804
804
  // <DropdownMenuPrimitive.Portal>
805
805
  /* @__PURE__ */ n.jsx(
806
806
  w.Content,
807
807
  {
808
808
  ref: a,
809
809
  sideOffset: t,
810
- className: c(
810
+ className: u(
811
811
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",
812
812
  r
813
813
  ),
@@ -816,11 +816,11 @@ const it = p.forwardRef(({ className: r, sideOffset: t = 4, ...o }, a) => (
816
816
  )
817
817
  ));
818
818
  it.displayName = w.Content.displayName;
819
- const lt = p.forwardRef(({ className: r, inset: t, ...o }, a) => /* @__PURE__ */ n.jsx(
819
+ const lt = g.forwardRef(({ className: r, inset: t, ...o }, a) => /* @__PURE__ */ n.jsx(
820
820
  w.Item,
821
821
  {
822
822
  ref: a,
823
- className: c(
823
+ className: u(
824
824
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
825
825
  t && "pl-8",
826
826
  r
@@ -829,11 +829,11 @@ const lt = p.forwardRef(({ className: r, inset: t, ...o }, a) => /* @__PURE__ */
829
829
  }
830
830
  ));
831
831
  lt.displayName = w.Item.displayName;
832
- const dt = p.forwardRef(({ className: r, children: t, checked: o, ...a }, i) => /* @__PURE__ */ n.jsxs(
832
+ const dt = g.forwardRef(({ className: r, children: t, checked: o, ...a }, i) => /* @__PURE__ */ n.jsxs(
833
833
  w.CheckboxItem,
834
834
  {
835
835
  ref: i,
836
- className: c(
836
+ className: u(
837
837
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
838
838
  r
839
839
  ),
@@ -846,11 +846,11 @@ const dt = p.forwardRef(({ className: r, children: t, checked: o, ...a }, i) =>
846
846
  }
847
847
  ));
848
848
  dt.displayName = w.CheckboxItem.displayName;
849
- const ct = p.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__ */ n.jsxs(
849
+ const ct = g.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__ */ n.jsxs(
850
850
  w.RadioItem,
851
851
  {
852
852
  ref: a,
853
- className: c(
853
+ className: u(
854
854
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
855
855
  r
856
856
  ),
@@ -862,11 +862,11 @@ const ct = p.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__
862
862
  }
863
863
  ));
864
864
  ct.displayName = w.RadioItem.displayName;
865
- const ut = p.forwardRef(({ className: r, inset: t, ...o }, a) => /* @__PURE__ */ n.jsx(
865
+ const ut = g.forwardRef(({ className: r, inset: t, ...o }, a) => /* @__PURE__ */ n.jsx(
866
866
  w.Label,
867
867
  {
868
868
  ref: a,
869
- className: c(
869
+ className: u(
870
870
  "px-2 py-1.5 text-sm font-semibold",
871
871
  t && "pl-8",
872
872
  r
@@ -875,11 +875,11 @@ const ut = p.forwardRef(({ className: r, inset: t, ...o }, a) => /* @__PURE__ */
875
875
  }
876
876
  ));
877
877
  ut.displayName = w.Label.displayName;
878
- const ft = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
878
+ const ft = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
879
879
  w.Separator,
880
880
  {
881
881
  ref: o,
882
- className: c("-mx-1 my-1 h-px bg-muted", r),
882
+ className: u("-mx-1 my-1 h-px bg-muted", r),
883
883
  ...t
884
884
  }
885
885
  ));
@@ -890,7 +890,7 @@ const mt = ({
890
890
  }) => /* @__PURE__ */ n.jsx(
891
891
  "span",
892
892
  {
893
- className: c("ml-auto text-xs tracking-widest opacity-60", r),
893
+ className: u("ml-auto text-xs tracking-widest opacity-60", r),
894
894
  ...t
895
895
  }
896
896
  );
@@ -914,11 +914,11 @@ const Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
914
914
  DropdownMenuTrigger: Fr
915
915
  }, Symbol.toStringTag, { value: "Module" })), Ar = Q(
916
916
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
917
- ), ce = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
917
+ ), ce = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
918
918
  He.Root,
919
919
  {
920
920
  ref: o,
921
- className: c(Ar(), r),
921
+ className: u(Ar(), r),
922
922
  ...t
923
923
  }
924
924
  ));
@@ -926,12 +926,12 @@ ce.displayName = He.Root.displayName;
926
926
  const $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
927
927
  __proto__: null,
928
928
  Label: ce
929
- }, Symbol.toStringTag, { value: "Module" })), Wr = Sr, pt = p.createContext(
929
+ }, Symbol.toStringTag, { value: "Module" })), Wr = Sr, pt = g.createContext(
930
930
  {}
931
931
  ), Yr = ({
932
932
  ...r
933
933
  }) => /* @__PURE__ */ n.jsx(pt.Provider, { value: { name: r.name }, children: /* @__PURE__ */ n.jsx(Tr, { ...r }) }), q = () => {
934
- const r = p.useContext(pt), t = p.useContext(gt), { getFieldState: o, formState: a } = Nr(), i = o(r.name, a);
934
+ const r = g.useContext(pt), t = g.useContext(gt), { getFieldState: o, formState: a } = Nr(), i = o(r.name, a);
935
935
  if (!r)
936
936
  throw new Error("useFormField should be used within <FormField>");
937
937
  const { id: d } = t;
@@ -943,27 +943,27 @@ const $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
943
943
  formMessageId: `${d}-form-item-message`,
944
944
  ...i
945
945
  };
946
- }, gt = p.createContext(
946
+ }, gt = g.createContext(
947
947
  {}
948
- ), vt = p.forwardRef(({ className: r, ...t }, o) => {
949
- const a = p.useId();
950
- return /* @__PURE__ */ n.jsx(gt.Provider, { value: { id: a }, children: /* @__PURE__ */ n.jsx("div", { ref: o, className: c("space-y-2", r), ...t }) });
948
+ ), vt = g.forwardRef(({ className: r, ...t }, o) => {
949
+ const a = g.useId();
950
+ return /* @__PURE__ */ n.jsx(gt.Provider, { value: { id: a }, children: /* @__PURE__ */ n.jsx("div", { ref: o, className: u("space-y-2", r), ...t }) });
951
951
  });
952
952
  vt.displayName = "FormItem";
953
- const bt = p.forwardRef(({ className: r, ...t }, o) => {
953
+ const bt = g.forwardRef(({ className: r, ...t }, o) => {
954
954
  const { error: a, formItemId: i } = q();
955
955
  return /* @__PURE__ */ n.jsx(
956
956
  ce,
957
957
  {
958
958
  ref: o,
959
- className: c(a && "text-destructive", r),
959
+ className: u(a && "text-destructive", r),
960
960
  htmlFor: i,
961
961
  ...t
962
962
  }
963
963
  );
964
964
  });
965
965
  bt.displayName = "FormLabel";
966
- const xt = p.forwardRef(({ ...r }, t) => {
966
+ const xt = g.forwardRef(({ ...r }, t) => {
967
967
  const { error: o, formItemId: a, formDescriptionId: i, formMessageId: d } = q();
968
968
  return /* @__PURE__ */ n.jsx(
969
969
  Ye,
@@ -977,29 +977,29 @@ const xt = p.forwardRef(({ ...r }, t) => {
977
977
  );
978
978
  });
979
979
  xt.displayName = "FormControl";
980
- const ht = p.forwardRef(({ className: r, ...t }, o) => {
980
+ const ht = g.forwardRef(({ className: r, ...t }, o) => {
981
981
  const { formDescriptionId: a } = q();
982
982
  return /* @__PURE__ */ n.jsx(
983
983
  "p",
984
984
  {
985
985
  ref: o,
986
986
  id: a,
987
- className: c("text-sm text-muted-foreground", r),
987
+ className: u("text-sm text-muted-foreground", r),
988
988
  ...t
989
989
  }
990
990
  );
991
991
  });
992
992
  ht.displayName = "FormDescription";
993
- const yt = p.forwardRef(({ className: r, children: t, ...o }, a) => {
994
- const { error: i, formMessageId: d } = q(), u = i ? String(i == null ? void 0 : i.message) : t;
995
- return u ? /* @__PURE__ */ n.jsx(
993
+ const yt = g.forwardRef(({ className: r, children: t, ...o }, a) => {
994
+ const { error: i, formMessageId: d } = q(), c = i ? String(i == null ? void 0 : i.message) : t;
995
+ return c ? /* @__PURE__ */ n.jsx(
996
996
  "p",
997
997
  {
998
998
  ref: a,
999
999
  id: d,
1000
- className: c("text-sm font-medium text-destructive", r),
1000
+ className: u("text-sm font-medium text-destructive", r),
1001
1001
  ...o,
1002
- children: u
1002
+ children: c
1003
1003
  }
1004
1004
  ) : null;
1005
1005
  });
@@ -1014,12 +1014,12 @@ const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1014
1014
  FormLabel: bt,
1015
1015
  FormMessage: yt,
1016
1016
  useFormField: q
1017
- }, Symbol.toStringTag, { value: "Module" })), Ct = p.forwardRef(
1017
+ }, Symbol.toStringTag, { value: "Module" })), Ct = g.forwardRef(
1018
1018
  ({ className: r, type: t, ...o }, a) => /* @__PURE__ */ n.jsx(
1019
1019
  "input",
1020
1020
  {
1021
1021
  type: t,
1022
- className: c(
1022
+ className: u(
1023
1023
  "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1024
1024
  r
1025
1025
  ),
@@ -1032,7 +1032,7 @@ Ct.displayName = "Input";
1032
1032
  const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1033
1033
  __proto__: null,
1034
1034
  Input: Ct
1035
- }, Symbol.toStringTag, { value: "Module" })), qr = ee.Root, Hr = ee.Trigger, jt = p.forwardRef(({ className: r, align: t = "center", sideOffset: o = 4, ...a }, i) => (
1035
+ }, Symbol.toStringTag, { value: "Module" })), qr = ee.Root, Hr = ee.Trigger, jt = g.forwardRef(({ className: r, align: t = "center", sideOffset: o = 4, ...a }, i) => (
1036
1036
  // <PopoverPrimitive.Portal>
1037
1037
  /* @__PURE__ */ n.jsx(
1038
1038
  ee.Content,
@@ -1040,7 +1040,7 @@ const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1040
1040
  ref: i,
1041
1041
  align: t,
1042
1042
  sideOffset: o,
1043
- className: c(
1043
+ className: u(
1044
1044
  "z-50 w-72 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",
1045
1045
  r
1046
1046
  ),
@@ -1054,11 +1054,11 @@ const Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1054
1054
  Popover: qr,
1055
1055
  PopoverContent: jt,
1056
1056
  PopoverTrigger: Hr
1057
- }, Symbol.toStringTag, { value: "Module" })), Kr = T.Root, Xr = T.Group, Zr = T.Value, wt = p.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__ */ n.jsxs(
1057
+ }, Symbol.toStringTag, { value: "Module" })), Kr = T.Root, Xr = T.Group, Zr = T.Value, wt = g.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__ */ n.jsxs(
1058
1058
  T.Trigger,
1059
1059
  {
1060
1060
  ref: a,
1061
- className: c(
1061
+ className: u(
1062
1062
  "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
1063
1063
  r
1064
1064
  ),
@@ -1070,11 +1070,11 @@ const Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1070
1070
  }
1071
1071
  ));
1072
1072
  wt.displayName = T.Trigger.displayName;
1073
- const ue = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1073
+ const ue = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1074
1074
  T.ScrollUpButton,
1075
1075
  {
1076
1076
  ref: o,
1077
- className: c(
1077
+ className: u(
1078
1078
  "flex cursor-default items-center justify-center py-1",
1079
1079
  r
1080
1080
  ),
@@ -1083,11 +1083,11 @@ const ue = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1083
1083
  }
1084
1084
  ));
1085
1085
  ue.displayName = T.ScrollUpButton.displayName;
1086
- const fe = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1086
+ const fe = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1087
1087
  T.ScrollDownButton,
1088
1088
  {
1089
1089
  ref: o,
1090
- className: c(
1090
+ className: u(
1091
1091
  "flex cursor-default items-center justify-center py-1",
1092
1092
  r
1093
1093
  ),
@@ -1096,13 +1096,13 @@ const fe = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1096
1096
  }
1097
1097
  ));
1098
1098
  fe.displayName = T.ScrollDownButton.displayName;
1099
- const Nt = p.forwardRef(({ className: r, children: t, position: o = "popper", ...a }, i) => (
1099
+ const Nt = g.forwardRef(({ className: r, children: t, position: o = "popper", ...a }, i) => (
1100
1100
  // <SelectPrimitive.Portal>
1101
1101
  /* @__PURE__ */ n.jsxs(
1102
1102
  T.Content,
1103
1103
  {
1104
1104
  ref: i,
1105
- className: c(
1105
+ className: u(
1106
1106
  "relative z-50 max-h-96 min-w-[8rem] overflow-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",
1107
1107
  o === "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",
1108
1108
  r
@@ -1114,7 +1114,7 @@ const Nt = p.forwardRef(({ className: r, children: t, position: o = "popper", ..
1114
1114
  /* @__PURE__ */ n.jsx(
1115
1115
  T.Viewport,
1116
1116
  {
1117
- className: c(
1117
+ className: u(
1118
1118
  "p-1",
1119
1119
  o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1120
1120
  ),
@@ -1127,20 +1127,20 @@ const Nt = p.forwardRef(({ className: r, children: t, position: o = "popper", ..
1127
1127
  )
1128
1128
  ));
1129
1129
  Nt.displayName = T.Content.displayName;
1130
- const St = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1130
+ const St = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1131
1131
  T.Label,
1132
1132
  {
1133
1133
  ref: o,
1134
- className: c("py-1.5 pl-8 pr-2 text-sm font-semibold", r),
1134
+ className: u("py-1.5 pl-8 pr-2 text-sm font-semibold", r),
1135
1135
  ...t
1136
1136
  }
1137
1137
  ));
1138
1138
  St.displayName = T.Label.displayName;
1139
- const Tt = p.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__ */ n.jsxs(
1139
+ const Tt = g.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__ */ n.jsxs(
1140
1140
  T.Item,
1141
1141
  {
1142
1142
  ref: a,
1143
- className: c(
1143
+ className: u(
1144
1144
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1145
1145
  r
1146
1146
  ),
@@ -1152,11 +1152,11 @@ const Tt = p.forwardRef(({ className: r, children: t, ...o }, a) => /* @__PURE__
1152
1152
  }
1153
1153
  ));
1154
1154
  Tt.displayName = T.Item.displayName;
1155
- const Rt = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1155
+ const Rt = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1156
1156
  T.Separator,
1157
1157
  {
1158
1158
  ref: o,
1159
- className: c("-mx-1 my-1 h-px bg-muted", r),
1159
+ className: u("-mx-1 my-1 h-px bg-muted", r),
1160
1160
  ...t
1161
1161
  }
1162
1162
  ));
@@ -1173,11 +1173,11 @@ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1173
1173
  SelectSeparator: Rt,
1174
1174
  SelectTrigger: wt,
1175
1175
  SelectValue: Zr
1176
- }, Symbol.toStringTag, { value: "Module" })), eo = L.Root, _t = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1176
+ }, Symbol.toStringTag, { value: "Module" })), eo = L.Root, _t = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1177
1177
  L.List,
1178
1178
  {
1179
1179
  ref: o,
1180
- className: c(
1180
+ className: u(
1181
1181
  "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
1182
1182
  r
1183
1183
  ),
@@ -1185,11 +1185,11 @@ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1185
1185
  }
1186
1186
  ));
1187
1187
  _t.displayName = L.List.displayName;
1188
- const Et = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1188
+ const Et = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1189
1189
  L.Trigger,
1190
1190
  {
1191
1191
  ref: o,
1192
- className: c(
1192
+ className: u(
1193
1193
  "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 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-sm",
1194
1194
  r
1195
1195
  ),
@@ -1197,11 +1197,11 @@ const Et = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1197
1197
  }
1198
1198
  ));
1199
1199
  Et.displayName = L.Trigger.displayName;
1200
- const Pt = p.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1200
+ const Pt = g.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ n.jsx(
1201
1201
  L.Content,
1202
1202
  {
1203
1203
  ref: o,
1204
- className: c(
1204
+ className: u(
1205
1205
  "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1206
1206
  r
1207
1207
  ),
@@ -1234,11 +1234,11 @@ const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1234
1234
  size: "default"
1235
1235
  }
1236
1236
  }
1237
- ), Mt = p.forwardRef(({ className: r, variant: t, size: o, ...a }, i) => /* @__PURE__ */ n.jsx(
1237
+ ), Mt = g.forwardRef(({ className: r, variant: t, size: o, ...a }, i) => /* @__PURE__ */ n.jsx(
1238
1238
  Je.Root,
1239
1239
  {
1240
1240
  ref: i,
1241
- className: c(Dt({ variant: t, size: o, className: r })),
1241
+ className: u(Dt({ variant: t, size: o, className: r })),
1242
1242
  ...a
1243
1243
  }
1244
1244
  ));
@@ -1247,12 +1247,12 @@ const ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1247
1247
  __proto__: null,
1248
1248
  Toggle: Mt,
1249
1249
  toggleVariants: Dt
1250
- }, Symbol.toStringTag, { value: "Module" })), oo = G.Provider, no = G.Root, ao = G.Trigger, Ot = p.forwardRef(({ className: r, sideOffset: t = 4, ...o }, a) => /* @__PURE__ */ n.jsx(
1250
+ }, Symbol.toStringTag, { value: "Module" })), oo = G.Provider, no = G.Root, ao = G.Trigger, Ot = g.forwardRef(({ className: r, sideOffset: t = 4, ...o }, a) => /* @__PURE__ */ n.jsx(
1251
1251
  G.Content,
1252
1252
  {
1253
1253
  ref: a,
1254
1254
  sideOffset: t,
1255
- className: c(
1255
+ className: u(
1256
1256
  "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
1257
1257
  r
1258
1258
  ),
@@ -1311,14 +1311,14 @@ const lo = (r) => {
1311
1311
  ...d
1312
1312
  } = r;
1313
1313
  j(d);
1314
- const u = R();
1314
+ const c = R();
1315
1315
  return i ? /* @__PURE__ */ n.jsx(
1316
- u.DropdownMenu.DropdownMenuSub,
1316
+ c.DropdownMenu.DropdownMenuSub,
1317
1317
  {
1318
1318
  onOpenChange: o,
1319
1319
  children: t
1320
1320
  }
1321
- ) : /* @__PURE__ */ n.jsx(u.DropdownMenu.DropdownMenu, { onOpenChange: o, children: t });
1321
+ ) : /* @__PURE__ */ n.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: o, children: t });
1322
1322
  }, fo = (r) => {
1323
1323
  const { children: t, sub: o, ...a } = r;
1324
1324
  j(a);
@@ -1332,16 +1332,16 @@ const lo = (r) => {
1332
1332
  }, mo = N((r, t) => {
1333
1333
  const { className: o, children: a, sub: i, ...d } = r;
1334
1334
  j(d);
1335
- const u = R();
1335
+ const c = R();
1336
1336
  return i ? /* @__PURE__ */ n.jsx(
1337
- u.DropdownMenu.DropdownMenuSubContent,
1337
+ c.DropdownMenu.DropdownMenuSubContent,
1338
1338
  {
1339
1339
  className: o,
1340
1340
  ref: t,
1341
1341
  children: a
1342
1342
  }
1343
1343
  ) : /* @__PURE__ */ n.jsx(
1344
- u.DropdownMenu.DropdownMenuContent,
1344
+ c.DropdownMenu.DropdownMenuContent,
1345
1345
  {
1346
1346
  className: o,
1347
1347
  ref: t,
@@ -1349,16 +1349,16 @@ const lo = (r) => {
1349
1349
  }
1350
1350
  );
1351
1351
  }), po = N((r, t) => {
1352
- const { className: o, children: a, icon: i, checked: d, subTrigger: u, onClick: x, ...m } = r;
1352
+ const { className: o, children: a, icon: i, checked: d, subTrigger: c, onClick: x, ...m } = r;
1353
1353
  j(m);
1354
- const g = R();
1355
- return u ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1354
+ const p = R();
1355
+ return c ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1356
1356
  i,
1357
1357
  a
1358
1358
  ] }) : d !== void 0 ? /* @__PURE__ */ n.jsxs(
1359
- g.DropdownMenu.DropdownMenuCheckboxItem,
1359
+ p.DropdownMenu.DropdownMenuCheckboxItem,
1360
1360
  {
1361
- className: c(o, "gap-1"),
1361
+ className: u(o, "gap-1"),
1362
1362
  ref: t,
1363
1363
  checked: d,
1364
1364
  onClick: x,
@@ -1369,7 +1369,7 @@ const lo = (r) => {
1369
1369
  ]
1370
1370
  }
1371
1371
  ) : /* @__PURE__ */ n.jsxs(
1372
- g.DropdownMenu.DropdownMenuItem,
1372
+ p.DropdownMenu.DropdownMenuItem,
1373
1373
  {
1374
1374
  className: o,
1375
1375
  ref: t,
@@ -1378,7 +1378,7 @@ const lo = (r) => {
1378
1378
  children: [
1379
1379
  i,
1380
1380
  a,
1381
- u && /* @__PURE__ */ n.jsx(Ue, { className: "ml-auto h-4 w-4" })
1381
+ c && /* @__PURE__ */ n.jsx(Ue, { className: "ml-auto h-4 w-4" })
1382
1382
  ]
1383
1383
  }
1384
1384
  );
@@ -1411,30 +1411,30 @@ const lo = (r) => {
1411
1411
  tabs: a,
1412
1412
  defaultOpenTab: i,
1413
1413
  openTab: d,
1414
- setOpenTab: u,
1414
+ setOpenTab: c,
1415
1415
  loading: x,
1416
1416
  // TODO: implement loader
1417
1417
  ...m
1418
1418
  } = r;
1419
1419
  j(m);
1420
- const g = R();
1420
+ const p = R();
1421
1421
  return /* @__PURE__ */ n.jsxs(
1422
- g.Tabs.Tabs,
1422
+ p.Tabs.Tabs,
1423
1423
  {
1424
- className: c(o, "bg-popover p-2 rounded-lg"),
1424
+ className: u(o, "bg-popover p-2 rounded-lg"),
1425
1425
  ref: t,
1426
1426
  value: d,
1427
1427
  defaultValue: i,
1428
- onValueChange: u,
1428
+ onValueChange: c,
1429
1429
  children: [
1430
- /* @__PURE__ */ n.jsx(g.Tabs.TabsList, { children: a.map((b) => /* @__PURE__ */ n.jsx(g.Tabs.TabsTrigger, { value: b.name, children: b.name }, b.name)) }),
1431
- a.map((b) => /* @__PURE__ */ n.jsx(g.Tabs.TabsContent, { value: b.name, children: /* @__PURE__ */ n.jsx(g.Card.Card, { children: /* @__PURE__ */ n.jsx(g.Card.CardContent, { className: "p-4", children: b.tabPanel }) }) }, b.name))
1430
+ /* @__PURE__ */ n.jsx(p.Tabs.TabsList, { children: a.map((b) => /* @__PURE__ */ n.jsx(p.Tabs.TabsTrigger, { value: b.name, children: b.name }, b.name)) }),
1431
+ a.map((b) => /* @__PURE__ */ n.jsx(p.Tabs.TabsContent, { value: b.name, children: /* @__PURE__ */ n.jsx(p.Card.Card, { children: /* @__PURE__ */ n.jsx(p.Card.CardContent, { className: "p-4", children: b.tabPanel }) }) }, b.name))
1432
1432
  ]
1433
1433
  }
1434
1434
  );
1435
1435
  }), xo = N((r, t) => {
1436
- const { className: o, children: a, onClick: i, label: d, ...u } = r;
1437
- j(u);
1436
+ const { className: o, children: a, onClick: i, label: d, ...c } = r;
1437
+ j(c);
1438
1438
  const x = R();
1439
1439
  return /* @__PURE__ */ n.jsx(
1440
1440
  x.Button.Button,
@@ -1448,18 +1448,19 @@ const lo = (r) => {
1448
1448
  }
1449
1449
  );
1450
1450
  }), ho = N((r, t) => {
1451
- const { className: o, value: a, placeholder: i, onChange: d, ...u } = r;
1452
- j(u);
1453
- const x = R();
1451
+ const { className: o, accept: a, value: i, placeholder: d, onChange: c, ...x } = r;
1452
+ j(x);
1453
+ const m = R();
1454
1454
  return /* @__PURE__ */ n.jsx(
1455
- x.Input.Input,
1455
+ m.Input.Input,
1456
1456
  {
1457
1457
  type: "file",
1458
1458
  className: o,
1459
1459
  ref: t,
1460
- value: a ? a.name : void 0,
1461
- onChange: async (m) => d == null ? void 0 : d(m.target.files[0]),
1462
- placeholder: i
1460
+ accept: a,
1461
+ value: i ? i.name : void 0,
1462
+ onChange: async (p) => c == null ? void 0 : c(p.target.files[0]),
1463
+ placeholder: d
1463
1464
  }
1464
1465
  );
1465
1466
  }), yo = N((r, t) => {
@@ -1467,7 +1468,7 @@ const lo = (r) => {
1467
1468
  return j(i), /* @__PURE__ */ n.jsx(
1468
1469
  "div",
1469
1470
  {
1470
- className: c(
1471
+ className: u(
1471
1472
  o,
1472
1473
  "flex flex-col gap-2 items-start justify-center"
1473
1474
  ),
@@ -1476,19 +1477,19 @@ const lo = (r) => {
1476
1477
  }
1477
1478
  );
1478
1479
  }), Co = N((r, t) => {
1479
- const { className: o, value: a, placeholder: i, onKeyDown: d, onChange: u, ...x } = r;
1480
+ const { className: o, value: a, placeholder: i, onKeyDown: d, onChange: c, ...x } = r;
1480
1481
  j(x);
1481
1482
  const m = R();
1482
1483
  return /* @__PURE__ */ n.jsx(
1483
1484
  m.Input.Input,
1484
1485
  {
1485
1486
  "data-test": "embed-input",
1486
- className: c(o, "w-80"),
1487
+ className: u(o, "w-80"),
1487
1488
  ref: t,
1488
1489
  value: a,
1489
1490
  placeholder: i,
1490
1491
  onKeyDown: d,
1491
- onChange: u
1492
+ onChange: c
1492
1493
  }
1493
1494
  );
1494
1495
  }), jo = (r) => {
@@ -1512,12 +1513,12 @@ const lo = (r) => {
1512
1513
  ), No = N((r, t) => {
1513
1514
  const { className: o, variant: a, children: i, ...d } = r;
1514
1515
  j(d);
1515
- const u = R();
1516
+ const c = R();
1516
1517
  return /* @__PURE__ */ n.jsx(
1517
- u.Popover.PopoverContent,
1518
+ c.Popover.PopoverContent,
1518
1519
  {
1519
1520
  sideOffset: 8,
1520
- className: c(
1521
+ className: u(
1521
1522
  o,
1522
1523
  "flex flex-col gap-2",
1523
1524
  a === "panel-popover" ? "p-0 border-none shadow-none max-w-none w-fit" : ""
@@ -1535,10 +1536,10 @@ const lo = (r) => {
1535
1536
  children: a,
1536
1537
  icon: i,
1537
1538
  onClick: d,
1538
- onDragEnd: u,
1539
+ onDragEnd: c,
1539
1540
  onDragStart: x,
1540
1541
  draggable: m,
1541
- label: g,
1542
+ label: p,
1542
1543
  ...b
1543
1544
  } = r;
1544
1545
  j(b, !1);
@@ -1547,12 +1548,12 @@ const lo = (r) => {
1547
1548
  _.Button.Button,
1548
1549
  {
1549
1550
  variant: "ghost",
1550
- className: c(o, "text-gray-400"),
1551
+ className: u(o, "text-gray-400"),
1551
1552
  ref: t,
1552
- "aria-label": g,
1553
+ "aria-label": p,
1553
1554
  onClick: d,
1554
1555
  onDragStart: x,
1555
- onDragEnd: u,
1556
+ onDragEnd: c,
1556
1557
  draggable: m,
1557
1558
  ...b,
1558
1559
  children: [
@@ -1568,7 +1569,7 @@ const lo = (r) => {
1568
1569
  {
1569
1570
  id: i,
1570
1571
  role: "listbox",
1571
- className: c(
1572
+ className: u(
1572
1573
  "z-50 min-w-[8rem] overflow-auto rounded-md border bg-popover p-1 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",
1573
1574
  o
1574
1575
  ),
@@ -1581,7 +1582,7 @@ const lo = (r) => {
1581
1582
  return j(i), /* @__PURE__ */ n.jsx(
1582
1583
  "div",
1583
1584
  {
1584
- className: c(
1585
+ className: u(
1585
1586
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1586
1587
  o
1587
1588
  ),
@@ -1590,17 +1591,17 @@ const lo = (r) => {
1590
1591
  }
1591
1592
  );
1592
1593
  }), Eo = N((r, t) => {
1593
- const o = R(), { className: a, item: i, isSelected: d, onClick: u, id: x, ...m } = r;
1594
+ const o = R(), { className: a, item: i, isSelected: d, onClick: c, id: x, ...m } = r;
1594
1595
  return j(m), /* @__PURE__ */ n.jsxs(
1595
1596
  "div",
1596
1597
  {
1597
- className: c(
1598
+ className: u(
1598
1599
  "relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1599
1600
  a
1600
1601
  ),
1601
1602
  ref: t,
1602
1603
  id: x,
1603
- onClick: u,
1604
+ onClick: c,
1604
1605
  role: "option",
1605
1606
  "aria-selected": d || void 0,
1606
1607
  children: [
@@ -1618,7 +1619,7 @@ const lo = (r) => {
1618
1619
  return j(i), /* @__PURE__ */ n.jsx(
1619
1620
  "div",
1620
1621
  {
1621
- className: c("px-2 py-1.5 text-sm font-semibold", o),
1622
+ className: u("px-2 py-1.5 text-sm font-semibold", o),
1622
1623
  ref: t,
1623
1624
  children: a
1624
1625
  }
@@ -1632,25 +1633,25 @@ const lo = (r) => {
1632
1633
  children: a,
1633
1634
  draggable: i,
1634
1635
  onDragStart: d,
1635
- onDragEnd: u,
1636
+ onDragEnd: c,
1636
1637
  style: x,
1637
1638
  label: m,
1638
- ...g
1639
+ ...p
1639
1640
  } = r;
1640
- j(g, !1);
1641
+ j(p, !1);
1641
1642
  const b = R();
1642
1643
  return /* @__PURE__ */ n.jsx(
1643
1644
  b.Button.Button,
1644
1645
  {
1645
1646
  variant: "ghost",
1646
- className: c(o, "p-0 h-fit w-fit text-gray-400"),
1647
+ className: u(o, "p-0 h-fit w-fit text-gray-400"),
1647
1648
  ref: t,
1648
1649
  "aria-label": m,
1649
1650
  draggable: i,
1650
1651
  onDragStart: d,
1651
- onDragEnd: u,
1652
+ onDragEnd: c,
1652
1653
  style: x,
1653
- ...g,
1654
+ ...p,
1654
1655
  children: a
1655
1656
  }
1656
1657
  );
@@ -1663,10 +1664,10 @@ const lo = (r) => {
1663
1664
  icon: i,
1664
1665
  // TODO: implement
1665
1666
  value: d,
1666
- autoFocus: u,
1667
+ autoFocus: c,
1667
1668
  placeholder: x,
1668
1669
  onKeyDown: m,
1669
- onChange: g,
1670
+ onChange: p,
1670
1671
  onSubmit: b,
1671
1672
  ..._
1672
1673
  } = r;
@@ -1680,11 +1681,11 @@ const lo = (r) => {
1680
1681
  className: t,
1681
1682
  id: a,
1682
1683
  name: o,
1683
- autoFocus: u,
1684
+ autoFocus: c,
1684
1685
  placeholder: x,
1685
1686
  value: d,
1686
1687
  onKeyDown: m,
1687
- onChange: g,
1688
+ onChange: p,
1688
1689
  onSubmit: b
1689
1690
  }
1690
1691
  )
@@ -1693,24 +1694,24 @@ const lo = (r) => {
1693
1694
  {
1694
1695
  "aria-label": o,
1695
1696
  name: o,
1696
- autoFocus: u,
1697
+ autoFocus: c,
1697
1698
  placeholder: x,
1698
1699
  value: d,
1699
1700
  onKeyDown: m,
1700
- onChange: g,
1701
+ onChange: p,
1701
1702
  onSubmit: b
1702
1703
  }
1703
1704
  );
1704
1705
  }
1705
1706
  ), Ve = N(
1706
1707
  (r, t) => {
1707
- const { className: o, children: a, onMouseEnter: i, onMouseLeave: d, ...u } = r;
1708
- j(u);
1708
+ const { className: o, children: a, onMouseEnter: i, onMouseLeave: d, ...c } = r;
1709
+ j(c);
1709
1710
  const x = R();
1710
1711
  return /* @__PURE__ */ n.jsx(x.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ n.jsx(
1711
1712
  "div",
1712
1713
  {
1713
- className: c(
1714
+ className: u(
1714
1715
  o,
1715
1716
  "flex gap-1 p-1 bg-popover text-popover-foreground border rounded-lg shadow-md"
1716
1717
  ),
@@ -1728,10 +1729,10 @@ const lo = (r) => {
1728
1729
  children: a,
1729
1730
  mainTooltip: i,
1730
1731
  secondaryTooltip: d,
1731
- icon: u,
1732
+ icon: c,
1732
1733
  isSelected: x,
1733
1734
  isDisabled: m,
1734
- onClick: g,
1735
+ onClick: p,
1735
1736
  label: b,
1736
1737
  ..._
1737
1738
  } = r;
@@ -1742,24 +1743,24 @@ const lo = (r) => {
1742
1743
  className: o,
1743
1744
  variant: "ghost",
1744
1745
  disabled: m,
1745
- onClick: g,
1746
+ onClick: p,
1746
1747
  ref: t,
1747
1748
  "aria-label": b,
1748
1749
  ..._,
1749
1750
  children: [
1750
- u,
1751
+ c,
1751
1752
  a
1752
1753
  ]
1753
1754
  }
1754
1755
  ) : /* @__PURE__ */ n.jsxs(
1755
1756
  P.Toggle.Toggle,
1756
1757
  {
1757
- className: c(
1758
+ className: u(
1758
1759
  o,
1759
1760
  "data-[state=open]:bg-accent data-[state=closed]:text-accent-foreground"
1760
1761
  ),
1761
1762
  "aria-label": b,
1762
- onClick: g,
1763
+ onClick: p,
1763
1764
  pressed: x,
1764
1765
  disabled: m,
1765
1766
  "data-state": x ? "on" : "off",
@@ -1767,7 +1768,7 @@ const lo = (r) => {
1767
1768
  ref: t,
1768
1769
  ..._,
1769
1770
  children: [
1770
- u,
1771
+ c,
1771
1772
  a
1772
1773
  ]
1773
1774
  }
@@ -1789,29 +1790,29 @@ const lo = (r) => {
1789
1790
  ), Io = N((r, t) => {
1790
1791
  const { className: o, items: a, isDisabled: i, ...d } = r;
1791
1792
  j(d);
1792
- const u = R(), x = (g) => /* @__PURE__ */ n.jsxs("div", { className: "flex gap-1 items-center", children: [
1793
- g.icon,
1794
- g.text
1795
- ] }), m = a.filter((g) => g.isSelected)[0];
1793
+ const c = R(), x = (p) => /* @__PURE__ */ n.jsxs("div", { className: "flex gap-1 items-center", children: [
1794
+ p.icon,
1795
+ p.text
1796
+ ] }), m = a.filter((p) => p.isSelected)[0];
1796
1797
  return m ? /* @__PURE__ */ n.jsxs(
1797
- u.Select.Select,
1798
+ c.Select.Select,
1798
1799
  {
1799
1800
  value: m.text,
1800
- onValueChange: (g) => {
1801
+ onValueChange: (p) => {
1801
1802
  var b, _;
1802
- return (_ = (b = a.find((P) => P.text === g)).onClick) == null ? void 0 : _.call(b);
1803
+ return (_ = (b = a.find((P) => P.text === p)).onClick) == null ? void 0 : _.call(b);
1803
1804
  },
1804
1805
  disabled: i,
1805
1806
  children: [
1806
- /* @__PURE__ */ n.jsx(u.Select.SelectTrigger, { className: "border-none", children: /* @__PURE__ */ n.jsx(u.Select.SelectValue, {}) }),
1807
- /* @__PURE__ */ n.jsx(u.Select.SelectContent, { className: o, ref: t, children: a.map((g) => /* @__PURE__ */ n.jsx(
1808
- u.Select.SelectItem,
1807
+ /* @__PURE__ */ n.jsx(c.Select.SelectTrigger, { className: "border-none", children: /* @__PURE__ */ n.jsx(c.Select.SelectValue, {}) }),
1808
+ /* @__PURE__ */ n.jsx(c.Select.SelectContent, { className: o, ref: t, children: a.map((p) => /* @__PURE__ */ n.jsx(
1809
+ c.Select.SelectItem,
1809
1810
  {
1810
- disabled: g.isDisabled,
1811
- value: g.text,
1812
- children: /* @__PURE__ */ n.jsx(x, { ...g })
1811
+ disabled: p.isDisabled,
1812
+ value: p.text,
1813
+ children: /* @__PURE__ */ n.jsx(x, { ...p })
1813
1814
  },
1814
- g.text
1815
+ p.text
1815
1816
  )) })
1816
1817
  ]
1817
1818
  }
@@ -1823,7 +1824,7 @@ const Fo = {
1823
1824
  Button: Ae,
1824
1825
  Select: Io
1825
1826
  },
1826
- ImagePanel: {
1827
+ FilePanel: {
1827
1828
  Root: bo,
1828
1829
  Button: xo,
1829
1830
  FileInput: ho,