@skalar-saas/design-system 0.1.147 → 0.1.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5,8 +5,8 @@ import L, { createContext as ze, useContext as Ie, useState as D, useRef as F, u
5
5
  import { Transition as Se, Dialog as Ne, Combobox as rt, Menu as Ra, Tab as Pe } from "@headlessui/react";
6
6
  import { motion as ge, AnimatePresence as bn } from "framer-motion";
7
7
  import oe, { clsx as p } from "clsx";
8
- import { ArrowRight as _n, Add as ue, ArrowDown2 as je, ArrowRight2 as wt, ArrowLeft2 as ct, InfoCircle as Ye, Element3 as Ea, More as dt, SearchNormal as Ha, Hashtag as Zn, AddCircle as Va, Copy as Bn, Like1 as vn, Dislike as wn, Refresh as $a, Category as Un, ArrowUp2 as yt, SearchNormal1 as We, Danger as Aa, Box2 as Gn, Warning2 as ja, ArrowRotateRight as Wa, CloseCircle as Oa, TickCircle as Kn, Eye as Ee, EyeSlash as it, HambergerMenu as Ct, Task as Fa, Clock as _a, Trash as Ut, RowVertical as Za, RowHorizontal as Ba, Setting as Oe, Google as Ua, Apple as Ga, Grid5 as qn, ExportSquare as Ka, Component as qa, Calendar as Qa, Edit2 as Xa, Link as Ya, Timer as Ja, Record as es, I3Dcube as ts } from "iconsax-react";
9
8
  import { twMerge as j } from "tailwind-merge";
9
+ import { ArrowRight as _n, Add as ue, ArrowDown2 as je, ArrowRight2 as wt, ArrowLeft2 as ct, InfoCircle as Ye, Element3 as Ea, More as dt, SearchNormal as Ha, Hashtag as Zn, AddCircle as Va, Copy as Bn, Like1 as vn, Dislike as wn, Refresh as $a, Category as Un, ArrowUp2 as yt, SearchNormal1 as We, Danger as Aa, Box2 as Gn, Warning2 as ja, ArrowRotateRight as Wa, CloseCircle as Oa, TickCircle as Kn, Eye as Ee, EyeSlash as it, HambergerMenu as Ct, Task as Fa, Clock as _a, Trash as Ut, RowVertical as Za, RowHorizontal as Ba, Setting as Oe, Google as Ua, Apple as Ga, Grid5 as qn, ExportSquare as Ka, Component as qa, Calendar as Qa, Edit2 as Xa, Link as Ya, Timer as Ja, Record as es, I3Dcube as ts } from "iconsax-react";
10
10
  import * as fe from "@radix-ui/react-tooltip";
11
11
  import { TooltipProvider as ns } from "@radix-ui/react-tooltip";
12
12
  import { createPortal as Je } from "react-dom";
@@ -520,8 +520,8 @@ const rr = ({
520
520
  internalPanelsWidth: $,
521
521
  panelState: b
522
522
  };
523
- const O = F(o), E = F(u), T = F(h);
524
- O.current = o, E.current = u, T.current = h;
523
+ const W = F(o), E = F(u), T = F(h);
524
+ W.current = o, E.current = u, T.current = h;
525
525
  const _ = Q((U) => {
526
526
  w.current && (v.current = !0, !x.current && (x.current = requestAnimationFrame(() => {
527
527
  x.current = null;
@@ -536,13 +536,13 @@ const rr = ({
536
536
  Y,
537
537
  be
538
538
  ), Ge = Ue < C.current && Ps(Ue);
539
- Ge !== y.current && (y.current = Ge, T.current(t, Ge)), O.current(t, Ue);
539
+ Ge !== y.current && (y.current = Ge, T.current(t, Ge)), W.current(t, Ue);
540
540
  })));
541
541
  }, [t, g]), se = Q(() => {
542
542
  if (!w.current) return;
543
543
  w.current = !1, document.body.style.userSelect = "", document.body.style.cursor = "";
544
544
  const U = v.current && y.current, { panelState: K } = R.current;
545
- !U && K && K.width < yn(K.width) && O.current(t, yn(K.width)), v.current = !1, y.current = !1, E.current(t, U), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", se);
545
+ !U && K && K.width < yn(K.width) && W.current(t, yn(K.width)), v.current = !1, y.current = !1, E.current(t, U), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", se);
546
546
  }, [t, _]), le = Q(() => {
547
547
  w.current = !0, document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
548
548
  const { panelState: U } = R.current;
@@ -694,14 +694,14 @@ function vd(t) {
694
694
  (T) => T.id === v ? { ...T, open: !0, width: R } : T
695
695
  )
696
696
  };
697
- const z = A.length * re.snapMinWidth, $ = V - z, O = Math.min(R, Math.max(re.snapMinWidth, $)), E = V - O;
697
+ const z = A.length * re.snapMinWidth, $ = V - z, W = Math.min(R, Math.max(re.snapMinWidth, $)), E = V - W;
698
698
  if (I > 0 && E < I) {
699
699
  const T = E / I;
700
700
  return {
701
701
  ...x,
702
702
  [C]: x[C].map((_) => {
703
703
  if (_.id === v)
704
- return { ..._, open: !0, width: O };
704
+ return { ..._, open: !0, width: W };
705
705
  if (_.open) {
706
706
  const se = Math.max(re.snapMinWidth, _.width * T);
707
707
  return { ..._, width: se };
@@ -713,7 +713,7 @@ function vd(t) {
713
713
  return {
714
714
  ...x,
715
715
  [C]: x[C].map(
716
- (T) => T.id === v ? { ...T, open: !0, width: O } : T
716
+ (T) => T.id === v ? { ...T, open: !0, width: W } : T
717
717
  )
718
718
  };
719
719
  });
@@ -734,12 +734,12 @@ function vd(t) {
734
734
  R.length * re.snapMinWidth,
735
735
  // Minimum for all other panels
736
736
  H - z
737
- ), O = A - $, E = $ / H;
737
+ ), W = A - $, E = $ / H;
738
738
  return {
739
739
  ...y,
740
740
  [S]: y[S].map((T) => {
741
741
  if (T.id === v)
742
- return { ...T, width: O };
742
+ return { ...T, width: W };
743
743
  if (T.open) {
744
744
  const _ = Math.max(re.snapMinWidth, T.width * E);
745
745
  return { ...T, width: _ };
@@ -767,9 +767,9 @@ function vd(t) {
767
767
  (E) => E.id === v ? { ...E, open: !0, width: P } : E
768
768
  )
769
769
  };
770
- const V = H.length * re.snapMinWidth, z = I - V, $ = Math.min(P, Math.max(re.snapMinWidth, z)), O = I - $;
771
- if (A > 0 && O < A) {
772
- const E = O / A;
770
+ const V = H.length * re.snapMinWidth, z = I - V, $ = Math.min(P, Math.max(re.snapMinWidth, z)), W = I - $;
771
+ if (A > 0 && W < A) {
772
+ const E = W / A;
773
773
  return {
774
774
  ...x,
775
775
  [C]: x[C].map((T) => {
@@ -926,7 +926,7 @@ const As = L.memo(({
926
926
  Z(() => () => {
927
927
  document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", z);
928
928
  }, [V, z]);
929
- const O = r ? `calc(100% - ${C}px)` : "100%", E = a === "right" ? "animate-slideInRight" : "animate-slideInLeft", T = a === "right" ? "animate-slideOutRight" : "animate-slideOutLeft", _ = a === "right" ? "left" : "right", se = k ? "0ms" : `${l}ms`, le = () => (
929
+ const W = r ? `calc(100% - ${C}px)` : "100%", E = a === "right" ? "animate-slideInRight" : "animate-slideInLeft", T = a === "right" ? "animate-slideOutRight" : "animate-slideOutLeft", _ = a === "right" ? "left" : "right", se = k ? "0ms" : `${l}ms`, le = () => (
930
930
  // Wrapper is `relative` (not overflow-hidden) so the handle that sticks
931
931
  // out with translate-x-full is not clipped. The inner div applies
932
932
  // overflow + animation classes to the content itself.
@@ -989,7 +989,7 @@ const As = L.memo(({
989
989
  o
990
990
  ),
991
991
  style: {
992
- width: O,
992
+ width: W,
993
993
  transition: "width",
994
994
  transitionDuration: se
995
995
  },
@@ -2113,7 +2113,7 @@ const Me = (t) => t !== void 0 && {
2113
2113
  g,
2114
2114
  y,
2115
2115
  o
2116
- )), O = /* @__PURE__ */ c(G, { children: [
2116
+ )), W = /* @__PURE__ */ c(G, { children: [
2117
2117
  (s === "leading" || s === "both") && I && /* @__PURE__ */ e("span", { className: `group-disabled:!text-disabled ${R[r].leading}`, children: I }),
2118
2118
  s !== "only" && l,
2119
2119
  s === "only" && I && /* @__PURE__ */ e("span", { className: "group-disabled:!text-disabled", children: I }),
@@ -2127,8 +2127,8 @@ const Me = (t) => t !== void 0 && {
2127
2127
  style: { width: N[r], height: N[r] }
2128
2128
  }
2129
2129
  ) }),
2130
- /* @__PURE__ */ e("span", { className: "invisible inline-flex items-center", children: O })
2131
- ] }) : O });
2130
+ /* @__PURE__ */ e("span", { className: "invisible inline-flex items-center", children: W })
2131
+ ] }) : W });
2132
2132
  });
2133
2133
  M.displayName = "Button";
2134
2134
  const cr = ze(void 0), St = () => {
@@ -3831,7 +3831,7 @@ const Si = {
3831
3831
  lg: 32,
3832
3832
  xl: 36,
3833
3833
  "2xl": 40
3834
- }, W = ({
3834
+ }, O = ({
3835
3835
  size: t = "md",
3836
3836
  children: n,
3837
3837
  color: r = "currentColor",
@@ -3903,7 +3903,7 @@ const Si = {
3903
3903
  ),
3904
3904
  ...h,
3905
3905
  children: [
3906
- t && /* @__PURE__ */ e("span", { className: l, children: /* @__PURE__ */ e(W, { size: i, children: t }) }),
3906
+ t && /* @__PURE__ */ e("span", { className: l, children: /* @__PURE__ */ e(O, { size: i, children: t }) }),
3907
3907
  n && /* @__PURE__ */ e(
3908
3908
  "span",
3909
3909
  {
@@ -4047,7 +4047,7 @@ const Si = {
4047
4047
  md: "text-base",
4048
4048
  lg: "text-lg",
4049
4049
  xl: "text-xl"
4050
- }, z = I && V[I] || void 0, $ = I && !V[I] ? { fontSize: I } : void 0, O = (X) => {
4050
+ }, z = I && V[I] || void 0, $ = I && !V[I] ? { fontSize: I } : void 0, W = (X) => {
4051
4051
  const he = X.currentTarget;
4052
4052
  he.style.height = "auto", he.style.height = `${he.scrollHeight}px`, C.onChange && C.onChange(X);
4053
4053
  }, E = m, T = E ? /^[a-z]+-[a-z0-9-]+$/i.test(E) ? `var(--${E})` : E : void 0, _ = b || void 0, se = (X) => {
@@ -4087,7 +4087,7 @@ const Si = {
4087
4087
  style: { backgroundColor: T },
4088
4088
  children: [
4089
4089
  i && /* @__PURE__ */ e(
4090
- W,
4090
+ O,
4091
4091
  {
4092
4092
  size: N.iconSize,
4093
4093
  className: j(p(
@@ -4105,7 +4105,7 @@ const Si = {
4105
4105
  disabled: o,
4106
4106
  className: j(le, "resize-none overflow-hidden"),
4107
4107
  style: { fontWeight: _, ...$ },
4108
- onInput: O,
4108
+ onInput: W,
4109
4109
  rows: 1,
4110
4110
  ...C
4111
4111
  }
@@ -4131,7 +4131,7 @@ const Si = {
4131
4131
  children: R ? /* @__PURE__ */ e(ei, { size: N.iconSize }) : /* @__PURE__ */ e(Js, { size: N.iconSize })
4132
4132
  }
4133
4133
  ) : a ? /* @__PURE__ */ e(
4134
- W,
4134
+ O,
4135
4135
  {
4136
4136
  size: N.iconSize,
4137
4137
  className: j(p(
@@ -4258,7 +4258,7 @@ const $i = {
4258
4258
  onClick: V,
4259
4259
  ...z
4260
4260
  }) => {
4261
- const $ = $i[t], O = (se) => {
4261
+ const $ = $i[t], W = (se) => {
4262
4262
  se.stopPropagation();
4263
4263
  }, E = (se) => {
4264
4264
  x?.(se.target.checked);
@@ -4271,7 +4271,7 @@ const $i = {
4271
4271
  f && (n ? "cursor-not-allowed" : "cursor-pointer"),
4272
4272
  g && !n && g
4273
4273
  ), H), _ = /* @__PURE__ */ c(G, { children: [
4274
- r && /* @__PURE__ */ e("div", { onClick: O, className: p("flex items-center", $.checkboxMargin), children: /* @__PURE__ */ e(
4274
+ r && /* @__PURE__ */ e("div", { onClick: W, className: p("flex items-center", $.checkboxMargin), children: /* @__PURE__ */ e(
4275
4275
  Fe,
4276
4276
  {
4277
4277
  size: $.checkbox,
@@ -4283,14 +4283,14 @@ const $i = {
4283
4283
  ) }),
4284
4284
  /* @__PURE__ */ c("div", { className: j(p("flex items-center", $.middleGap), A), children: [
4285
4285
  s && y && /* @__PURE__ */ e("div", { className: p("shrink-0", n && "opacity-50"), children: /* @__PURE__ */ e(
4286
- W,
4286
+ O,
4287
4287
  {
4288
4288
  size: $.leadingImage,
4289
4289
  imageUrl: y,
4290
4290
  alt: C
4291
4291
  }
4292
4292
  ) }),
4293
- i && /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(W, { size: $.leadingIcon, color: n ? "var(--text-disabled)" : b || "var(--med-em)", children: S || /* @__PURE__ */ e(Ea, {}) }) }),
4293
+ i && /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(O, { size: $.leadingIcon, color: n ? "var(--text-disabled)" : b || "var(--med-em)", children: S || /* @__PURE__ */ e(Ea, {}) }) }),
4294
4294
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-0 justify-start items-start min-w-0 shrink mr-8", children: [
4295
4295
  /* @__PURE__ */ e(
4296
4296
  "span",
@@ -4317,7 +4317,7 @@ const $i = {
4317
4317
  ] })
4318
4318
  ] }),
4319
4319
  /* @__PURE__ */ c("div", { className: p("flex items-center ml-auto", $.rightGap), children: [
4320
- l && /* @__PURE__ */ e(W, { size: $.trailingIcon, color: n ? "var(--text-disabled)" : "var(--high-em)", children: k || /* @__PURE__ */ e(wt, {}) }),
4320
+ l && /* @__PURE__ */ e(O, { size: $.trailingIcon, color: n ? "var(--text-disabled)" : "var(--high-em)", children: k || /* @__PURE__ */ e(wt, {}) }),
4321
4321
  d && N && /* @__PURE__ */ e(
4322
4322
  $e,
4323
4323
  {
@@ -4840,7 +4840,7 @@ const Fi = {
4840
4840
  onClick: n,
4841
4841
  className: "p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em",
4842
4842
  "aria-label": "Copy message",
4843
- children: /* @__PURE__ */ e(W, { size: "sm", children: /* @__PURE__ */ e(Bn, {}) })
4843
+ children: /* @__PURE__ */ e(O, { size: "sm", children: /* @__PURE__ */ e(Bn, {}) })
4844
4844
  }
4845
4845
  ),
4846
4846
  /* @__PURE__ */ e(
@@ -4849,7 +4849,7 @@ const Fi = {
4849
4849
  onClick: u,
4850
4850
  className: "p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em",
4851
4851
  "aria-label": "Like message",
4852
- children: /* @__PURE__ */ e(W, { size: "sm", children: a ? /* @__PURE__ */ e(vn, { variant: "Bold" }) : /* @__PURE__ */ e(vn, { variant: "Outline" }) })
4852
+ children: /* @__PURE__ */ e(O, { size: "sm", children: a ? /* @__PURE__ */ e(vn, { variant: "Bold" }) : /* @__PURE__ */ e(vn, { variant: "Outline" }) })
4853
4853
  }
4854
4854
  ),
4855
4855
  /* @__PURE__ */ e(
@@ -4858,7 +4858,7 @@ const Fi = {
4858
4858
  onClick: h,
4859
4859
  className: "p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em",
4860
4860
  "aria-label": "Dislike message",
4861
- children: /* @__PURE__ */ e(W, { size: "sm", children: d ? /* @__PURE__ */ e(wn, { variant: "Bold" }) : /* @__PURE__ */ e(wn, { variant: "Outline" }) })
4861
+ children: /* @__PURE__ */ e(O, { size: "sm", children: d ? /* @__PURE__ */ e(wn, { variant: "Bold" }) : /* @__PURE__ */ e(wn, { variant: "Outline" }) })
4862
4862
  }
4863
4863
  ),
4864
4864
  /* @__PURE__ */ e(
@@ -4867,7 +4867,7 @@ const Fi = {
4867
4867
  onClick: i,
4868
4868
  className: "p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em",
4869
4869
  "aria-label": "Refresh response",
4870
- children: /* @__PURE__ */ e(W, { size: "sm", children: /* @__PURE__ */ e($a, {}) })
4870
+ children: /* @__PURE__ */ e(O, { size: "sm", children: /* @__PURE__ */ e($a, {}) })
4871
4871
  }
4872
4872
  )
4873
4873
  ] });
@@ -4961,11 +4961,11 @@ const Fi = {
4961
4961
  onMessageDislikeClick: z,
4962
4962
  onMessageRefreshClick: $
4963
4963
  }) => {
4964
- const O = L.useMemo(() => i === "none" ? "" : `${i === "left" ? "border-l" : "border-r"} ${a === "surface-3" ? "border-surface-3" : "border-surface-4"}`, [i, a]);
4964
+ const W = L.useMemo(() => i === "none" ? "" : `${i === "left" ? "border-l" : "border-r"} ${a === "surface-3" ? "border-surface-3" : "border-surface-4"}`, [i, a]);
4965
4965
  return /* @__PURE__ */ c(
4966
4966
  "div",
4967
4967
  {
4968
- className: `h-full w-full flex flex-col bg-white ${O} ${s || ""}`,
4968
+ className: `h-full w-full flex flex-col bg-white ${W} ${s || ""}`,
4969
4969
  children: [
4970
4970
  l && /* @__PURE__ */ c(G, { children: [
4971
4971
  /* @__PURE__ */ e("div", { style: { height: `${d}px` }, children: /* @__PURE__ */ e(
@@ -5349,7 +5349,7 @@ const Ji = {
5349
5349
  borderRadius: N = "rounded-lg"
5350
5350
  }) => {
5351
5351
  const [P, R] = D(""), H = sl[r][n], A = ll[s], I = al[t], V = P === "" ? h : h.filter(
5352
- (O) => O.label.toLowerCase().includes(P.toLowerCase())
5352
+ (W) => W.label.toLowerCase().includes(P.toLowerCase())
5353
5353
  ), z = j(
5354
5354
  p(
5355
5355
  "w-full flex-1 bg-transparent focus:outline-none",
@@ -5378,26 +5378,26 @@ const Ji = {
5378
5378
  {
5379
5379
  className: z,
5380
5380
  placeholder: g,
5381
- onChange: (O) => R(O.target.value),
5382
- displayValue: (O) => O?.label
5381
+ onChange: (W) => R(W.target.value),
5382
+ displayValue: (W) => W?.label
5383
5383
  }
5384
5384
  ),
5385
5385
  I.showTrailingChevron && !u && /* @__PURE__ */ e(rt.Button, { className: p("flex items-center", { "w-full h-full justify-center": t === "only_icon" }), children: /* @__PURE__ */ e(je, { size: A.icon, color: y }) }),
5386
5386
  I.showTrailingAddon && u && /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: u })
5387
5387
  ] }),
5388
- /* @__PURE__ */ e(rt.Options, { className: "absolute z-10 mt-1 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm", children: V.length === 0 && P !== "" ? /* @__PURE__ */ e("div", { className: "relative cursor-default select-none px-4 py-2 text-gray-700", children: "Nothing found." }) : V.map((O) => /* @__PURE__ */ e(
5388
+ /* @__PURE__ */ e(rt.Options, { className: "absolute z-10 mt-1 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm", children: V.length === 0 && P !== "" ? /* @__PURE__ */ e("div", { className: "relative cursor-default select-none px-4 py-2 text-gray-700", children: "Nothing found." }) : V.map((W) => /* @__PURE__ */ e(
5389
5389
  rt.Option,
5390
5390
  {
5391
- value: O,
5391
+ value: W,
5392
5392
  className: ({ active: E }) => j(
5393
5393
  p(
5394
5394
  "relative cursor-default select-none py-2 pl-4 pr-4",
5395
5395
  E ? `${C} ${S}` : k
5396
5396
  )
5397
5397
  ),
5398
- children: O.label
5398
+ children: W.label
5399
5399
  },
5400
- O.id
5400
+ W.id
5401
5401
  )) })
5402
5402
  ] }) }),
5403
5403
  a && /* @__PURE__ */ c("div", { className: p("flex items-center gap-1.5 text-sm", H.hint), children: [
@@ -5531,7 +5531,7 @@ const Ji = {
5531
5531
  onClick: S ? f : void 0,
5532
5532
  suppressHydrationWarning: !0,
5533
5533
  children: [
5534
- i && /* @__PURE__ */ e("div", { className: "flex items-center shrink-0", children: /* @__PURE__ */ e(W, { size: C, className: a, children: i }) }),
5534
+ i && /* @__PURE__ */ e("div", { className: "flex items-center shrink-0", children: /* @__PURE__ */ e(O, { size: C, className: a, children: i }) }),
5535
5535
  /* @__PURE__ */ e(
5536
5536
  "span",
5537
5537
  {
@@ -5549,7 +5549,7 @@ const Ji = {
5549
5549
  s
5550
5550
  ),
5551
5551
  onClick: (P) => P.stopPropagation(),
5552
- children: /* @__PURE__ */ e(W, { size: C, className: s, children: r })
5552
+ children: /* @__PURE__ */ e(O, { size: C, className: s, children: r })
5553
5553
  }
5554
5554
  ) }),
5555
5555
  /* @__PURE__ */ e(fe.Portal, { children: /* @__PURE__ */ c(
@@ -5567,7 +5567,7 @@ const Ji = {
5567
5567
  ]
5568
5568
  }
5569
5569
  ) })
5570
- ] }) : r ? /* @__PURE__ */ e("div", { className: p("flex items-center shrink-0", s), children: /* @__PURE__ */ e(W, { size: C, className: s, children: r }) }) : null
5570
+ ] }) : r ? /* @__PURE__ */ e("div", { className: p("flex items-center shrink-0", s), children: /* @__PURE__ */ e(O, { size: C, className: s, children: r }) }) : null
5571
5571
  ]
5572
5572
  }
5573
5573
  );
@@ -5639,7 +5639,7 @@ const ol = {
5639
5639
  Z(() => {
5640
5640
  I || $("");
5641
5641
  }, [I]);
5642
- const O = S && z.trim() ? a.filter(
5642
+ const W = S && z.trim() ? a.filter(
5643
5643
  (Y) => String(Y.title ?? "").toLowerCase().includes(z.trim().toLowerCase())
5644
5644
  ) : a, [E, T] = D(null), [_, se] = D(!1), le = a.find((Y) => Y.id === u);
5645
5645
  Z(() => {
@@ -5785,10 +5785,10 @@ const ol = {
5785
5785
  }
5786
5786
  )
5787
5787
  ] }),
5788
- O.length === 0 ? /* @__PURE__ */ e("div", { className: "px-4 py-3 text-sm text-low-em", children: "Sin resultados" }) : /* @__PURE__ */ e(
5788
+ W.length === 0 ? /* @__PURE__ */ e("div", { className: "px-4 py-3 text-sm text-low-em", children: "Sin resultados" }) : /* @__PURE__ */ e(
5789
5789
  Le,
5790
5790
  {
5791
- items: O.map(({ id: Y, ...be }) => ({ id: Y, ...be })),
5791
+ items: W.map(({ id: Y, ...be }) => ({ id: Y, ...be })),
5792
5792
  size: R,
5793
5793
  floating: !1,
5794
5794
  onSelect: U,
@@ -5941,7 +5941,7 @@ class Xd extends Da {
5941
5941
  }
5942
5942
  }
5943
5943
  const hl = L.memo(({
5944
- icon: t = /* @__PURE__ */ e(W, { className: "text-danger-main", size: "2xl", children: /* @__PURE__ */ e(Aa, {}) }),
5944
+ icon: t = /* @__PURE__ */ e(O, { className: "text-danger-main", size: "2xl", children: /* @__PURE__ */ e(Aa, {}) }),
5945
5945
  title: n = "Something went wrong",
5946
5946
  message: r,
5947
5947
  error: s,
@@ -5990,7 +5990,7 @@ ${s.stack}`
5990
5990
  });
5991
5991
  hl.displayName = "ErrorState";
5992
5992
  const et = L.memo(({
5993
- icon: t = /* @__PURE__ */ e(W, { size: 56, children: /* @__PURE__ */ e(Gn, {}) }),
5993
+ icon: t = /* @__PURE__ */ e(O, { size: 56, children: /* @__PURE__ */ e(Gn, {}) }),
5994
5994
  description: n,
5995
5995
  actionLabel: r,
5996
5996
  onAction: s,
@@ -6141,7 +6141,7 @@ const Yd = ({
6141
6141
  ),
6142
6142
  onClick: i,
6143
6143
  children: [
6144
- t && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(W, { size: 20, color: "var(--low-em)", children: t }) }),
6144
+ t && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(O, { size: 20, color: "var(--low-em)", children: t }) }),
6145
6145
  n && /* @__PURE__ */ e("span", { className: "font-inter font-semibold text-[10px] text-low-em mt-1", children: n })
6146
6146
  ]
6147
6147
  }
@@ -6725,7 +6725,7 @@ const xl = {
6725
6725
  size: k,
6726
6726
  ...N
6727
6727
  }, P) => {
6728
- const [R, H] = D(""), [A, I] = D(!1), [V, z] = D(-1), $ = F(null), O = o !== void 0, E = O ? o : R, T = Ai(E, n);
6728
+ const [R, H] = D(""), [A, I] = D(!1), [V, z] = D(-1), $ = F(null), W = o !== void 0, E = W ? o : R, T = Ai(E, n);
6729
6729
  Z(() => {
6730
6730
  T && t && t(T);
6731
6731
  }, [T, t]), Z(() => {
@@ -6738,7 +6738,7 @@ const xl = {
6738
6738
  }, []);
6739
6739
  const _ = (B) => {
6740
6740
  const ie = B.target.value;
6741
- O || H(ie), u && u(B), ie && a.length > 0 ? (I(!0), z(-1)) : I(!1);
6741
+ W || H(ie), u && u(B), ie && a.length > 0 ? (I(!0), z(-1)) : I(!1);
6742
6742
  }, se = (B) => {
6743
6743
  if (B.key === "Enter") {
6744
6744
  if (B.preventDefault(), A && V >= 0 && V < a.length) {
@@ -6757,12 +6757,12 @@ const xl = {
6757
6757
  const B = {
6758
6758
  target: { value: "" }
6759
6759
  };
6760
- O || H(""), u && u(B), I(!1), z(-1);
6760
+ W || H(""), u && u(B), I(!1), z(-1);
6761
6761
  }, he = (B) => {
6762
6762
  const ie = {
6763
6763
  target: { value: B }
6764
6764
  };
6765
- O || H(B), u && u(ie), l && l(B), I(!1), z(-1);
6765
+ W || H(B), u && u(ie), l && l(B), I(!1), z(-1);
6766
6766
  }, U = i ? "danger" : "default", K = r ? /* @__PURE__ */ e(
6767
6767
  Wa,
6768
6768
  {
@@ -7813,8 +7813,8 @@ const dn = ({
7813
7813
  ...v,
7814
7814
  children: [
7815
7815
  /* @__PURE__ */ c("div", { className: "flex-row flex justify-between", children: [
7816
- /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ e(W, { className: "!rounded-4", size: "2xl", imageUrl: n }) }),
7817
- /* @__PURE__ */ e("div", { className: "flex w-fit", children: /* @__PURE__ */ e(M, { ref: a, size: "sm", leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(si, {}) }), icons: "only", hierarchy: "secondary", variant: "neutral", onClick: i }) })
7816
+ /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ e(O, { className: "!rounded-4", size: "2xl", imageUrl: n }) }),
7817
+ /* @__PURE__ */ e("div", { className: "flex w-fit", children: /* @__PURE__ */ e(M, { ref: a, size: "sm", leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(si, {}) }), icons: "only", hierarchy: "secondary", variant: "neutral", onClick: i }) })
7818
7818
  ] }),
7819
7819
  /* @__PURE__ */ c("div", { className: "flex-col flex justify-between gap-4", children: [
7820
7820
  /* @__PURE__ */ c("div", { className: "flex gap-5 items-center", children: [
@@ -8005,7 +8005,7 @@ const Pn = ({
8005
8005
  ]
8006
8006
  }
8007
8007
  ), P = () => {
8008
- const R = b.strokeWidth, H = x, A = x / 2 + R, I = (x - b.strokeWidth) / 2, V = R / 2, z = A - R / 2, $ = x - R / 2, O = A - R / 2, E = Math.PI * I * 2, T = E - h / 100 * E;
8008
+ const R = b.strokeWidth, H = x, A = x / 2 + R, I = (x - b.strokeWidth) / 2, V = R / 2, z = A - R / 2, $ = x - R / 2, W = A - R / 2, E = Math.PI * I * 2, T = E - h / 100 * E;
8009
8009
  return /* @__PURE__ */ c(
8010
8010
  "svg",
8011
8011
  {
@@ -8027,7 +8027,7 @@ const Pn = ({
8027
8027
  /* @__PURE__ */ e(
8028
8028
  "path",
8029
8029
  {
8030
- d: `M${V},${z} A${I},${I} 0 1,1 ${$},${O}`,
8030
+ d: `M${V},${z} A${I},${I} 0 1,1 ${$},${W}`,
8031
8031
  fill: "none",
8032
8032
  strokeLinecap: "round",
8033
8033
  strokeLinejoin: "round",
@@ -8040,7 +8040,7 @@ const Pn = ({
8040
8040
  /* @__PURE__ */ e(
8041
8041
  "path",
8042
8042
  {
8043
- d: `M${V},${z} A${I},${I} 0 1,1 ${$},${O}`,
8043
+ d: `M${V},${z} A${I},${I} 0 1,1 ${$},${W}`,
8044
8044
  fill: "none",
8045
8045
  strokeLinecap: "round",
8046
8046
  strokeLinejoin: "round",
@@ -9829,41 +9829,53 @@ const co = {
9829
9829
  showBorder: h = !0,
9830
9830
  headerHeight: m,
9831
9831
  tabPaddingX: f,
9832
- tabListClassName: g
9832
+ tabListClassName: g,
9833
+ collapseToIconsBelow: b
9833
9834
  }) => {
9834
- const b = t === "line-icons" || t === "only-icon" ? Vn.line : Vn[t], w = h ? b.list : b.list.replace(/border-b\s+border-surface-3/g, "").trim(), v = {};
9835
- m && (v.height = `${m}px`, v.alignItems = "flex-end");
9836
- const x = () => typeof l == "number" ? "" : l in Et ? Et[l] : Et.sm, y = typeof l == "number" ? { marginTop: `${l}px` } : {}, C = d ? {
9835
+ const w = L.useRef(null), [v, x] = L.useState(!1);
9836
+ L.useEffect(() => {
9837
+ if (!b) return;
9838
+ const z = w.current;
9839
+ if (!z) return;
9840
+ const $ = () => x(z.getBoundingClientRect().width < b);
9841
+ $();
9842
+ const W = new ResizeObserver($);
9843
+ return W.observe(z), () => W.disconnect();
9844
+ }, [b]);
9845
+ const y = !!b && v && t === "line-icons", C = t === "line-icons" || t === "only-icon", S = t !== "only-icon" && !y, k = t === "only-icon" || y, N = t === "line-icons" || t === "only-icon" ? Vn.line : Vn[t], P = h ? N.list : N.list.replace(/border-b\s+border-surface-3/g, "").trim(), R = {};
9846
+ m && (R.height = `${m}px`, R.alignItems = "flex-end");
9847
+ const H = () => typeof l == "number" ? "" : l in Et ? Et[l] : Et.sm, A = typeof l == "number" ? { marginTop: `${l}px` } : {}, I = d ? {
9837
9848
  height: "100%",
9838
9849
  maxHeight: "100%",
9839
9850
  overflow: "hidden",
9840
9851
  display: "flex",
9841
9852
  flexDirection: "column"
9842
- } : {}, S = d ? { height: "100%", maxHeight: "100%", flex: 1 } : {};
9843
- return /* @__PURE__ */ e("div", { className: p("w-full", r), style: C, children: /* @__PURE__ */ c(
9853
+ } : {}, V = d ? { height: "100%", maxHeight: "100%", flex: 1 } : {};
9854
+ return /* @__PURE__ */ e("div", { ref: w, className: p("w-full", r), style: I, children: /* @__PURE__ */ c(
9844
9855
  Pe.Group,
9845
9856
  {
9846
9857
  selectedIndex: s,
9847
9858
  onChange: i,
9848
9859
  as: "div",
9849
9860
  className: d ? "flex flex-col overflow-hidden" : void 0,
9850
- style: S,
9861
+ style: V,
9851
9862
  children: [
9852
9863
  /* @__PURE__ */ e(
9853
9864
  Pe.List,
9854
9865
  {
9855
- className: p(w, g),
9856
- style: v,
9857
- children: n.map((k) => /* @__PURE__ */ e(
9866
+ className: p(P, g),
9867
+ style: R,
9868
+ children: n.map((z) => /* @__PURE__ */ e(
9858
9869
  Pe,
9859
9870
  {
9860
- className: ({ selected: N }) => p(b.tab, N ? b.selected : b.unselected),
9871
+ title: k ? z.label : void 0,
9872
+ className: ({ selected: $ }) => p(N.tab, $ ? N.selected : N.unselected),
9861
9873
  style: {
9862
9874
  ...a ? { paddingBottom: a } : {},
9863
9875
  ...f !== void 0 ? { paddingLeft: `${f}px`, paddingRight: `${f}px` } : {}
9864
9876
  },
9865
- children: ({ selected: N }) => {
9866
- const P = N && k.selectedIcon ? k.selectedIcon : k.icon;
9877
+ children: ({ selected: $ }) => {
9878
+ const W = $ && z.selectedIcon ? z.selectedIcon : z.icon;
9867
9879
  return /* @__PURE__ */ c(
9868
9880
  "div",
9869
9881
  {
@@ -9872,36 +9884,36 @@ const co = {
9872
9884
  Me(o)
9873
9885
  ),
9874
9886
  children: [
9875
- (t === "line-icons" || t === "only-icon") && P && L.isValidElement(P) && L.cloneElement(
9876
- P,
9887
+ C && W && L.isValidElement(W) && L.cloneElement(
9888
+ W,
9877
9889
  {
9878
9890
  size: u,
9879
9891
  color: "currentColor"
9880
9892
  }
9881
9893
  ),
9882
- t !== "only-icon" && k.label
9894
+ S && /* @__PURE__ */ e("span", { className: "whitespace-nowrap", children: z.label })
9883
9895
  ]
9884
9896
  }
9885
9897
  );
9886
9898
  }
9887
9899
  },
9888
- k.id
9900
+ z.id
9889
9901
  ))
9890
9902
  }
9891
9903
  ),
9892
9904
  /* @__PURE__ */ e(
9893
9905
  Pe.Panels,
9894
9906
  {
9895
- className: x(),
9907
+ className: H(),
9896
9908
  style: d ? {
9897
9909
  display: "flex",
9898
9910
  flexDirection: "column",
9899
9911
  flex: 1,
9900
9912
  minHeight: 0,
9901
9913
  overflow: "hidden",
9902
- ...y
9903
- } : y,
9904
- children: n.map((k) => /* @__PURE__ */ e(
9914
+ ...A
9915
+ } : A,
9916
+ children: n.map((z) => /* @__PURE__ */ e(
9905
9917
  Pe.Panel,
9906
9918
  {
9907
9919
  style: d ? {
@@ -9910,9 +9922,9 @@ const co = {
9910
9922
  overflowY: "auto",
9911
9923
  maxHeight: "100%"
9912
9924
  } : void 0,
9913
- children: k.content
9925
+ children: z.content
9914
9926
  },
9915
- k.id
9927
+ z.id
9916
9928
  ))
9917
9929
  }
9918
9930
  )
@@ -9958,7 +9970,7 @@ const co = {
9958
9970
  onClick: w,
9959
9971
  className: "h-full hover:bg-surface-bg cursor-pointer px-6 border-r border-surface-3 shrink-0",
9960
9972
  "aria-label": "Scroll left",
9961
- children: /* @__PURE__ */ e(W, { className: "text-med-em", size: "xs", children: /* @__PURE__ */ e(ct, {}) })
9973
+ children: /* @__PURE__ */ e(O, { className: "text-med-em", size: "xs", children: /* @__PURE__ */ e(ct, {}) })
9962
9974
  }
9963
9975
  ),
9964
9976
  /* @__PURE__ */ e(
@@ -9987,7 +9999,7 @@ const co = {
9987
9999
  S.stopPropagation(), l(y);
9988
10000
  },
9989
10001
  className: "cursor-pointer",
9990
- leadingIcon: /* @__PURE__ */ e(W, { size: "xs", className: "text-med-em", children: /* @__PURE__ */ e(me, {}) }),
10002
+ leadingIcon: /* @__PURE__ */ e(O, { size: "xs", className: "text-med-em", children: /* @__PURE__ */ e(me, {}) }),
9991
10003
  "aria-label": "Close tab",
9992
10004
  icons: "only",
9993
10005
  variant: "neutral",
@@ -10007,7 +10019,7 @@ const co = {
10007
10019
  onClick: a || v,
10008
10020
  className: "h-full hover:bg-surface-bg cursor-pointer px-6 border-x border-surface-3",
10009
10021
  "aria-label": "Scroll right",
10010
- children: /* @__PURE__ */ e(W, { className: "text-low-em", size: "xs", children: /* @__PURE__ */ e(wt, {}) })
10022
+ children: /* @__PURE__ */ e(O, { className: "text-low-em", size: "xs", children: /* @__PURE__ */ e(wt, {}) })
10011
10023
  }
10012
10024
  ),
10013
10025
  i && /* @__PURE__ */ e(
@@ -10016,7 +10028,7 @@ const co = {
10016
10028
  onClick: i,
10017
10029
  className: `h-full hover:bg-surface-bg cursor-pointer px-6 ${f ? "" : "border-l border-surface-3"}`,
10018
10030
  "aria-label": "Add new tab",
10019
- children: /* @__PURE__ */ e(W, { className: "text-low-em", size: 12, children: /* @__PURE__ */ e(ue, {}) })
10031
+ children: /* @__PURE__ */ e(O, { className: "text-low-em", size: 12, children: /* @__PURE__ */ e(ue, {}) })
10020
10032
  }
10021
10033
  )
10022
10034
  ] })
@@ -11054,7 +11066,7 @@ const zu = ({
11054
11066
  children: [
11055
11067
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-6 px-10 py-8 border-b border-b-surface-3", children: [
11056
11068
  /* @__PURE__ */ c("div", { className: "flex items-center gap-5", children: [
11057
- /* @__PURE__ */ e("span", { className: "flex size-12 shrink-0 items-center justify-center rounded-5 bg-surface-2 text-high-em", children: /* @__PURE__ */ e(W, { size: "sm-md", children: n }) }),
11069
+ /* @__PURE__ */ e("span", { className: "flex size-12 shrink-0 items-center justify-center rounded-5 bg-surface-2 text-high-em", children: /* @__PURE__ */ e(O, { size: "sm-md", children: n }) }),
11058
11070
  /* @__PURE__ */ c("div", { className: "flex flex-col min-w-0", children: [
11059
11071
  /* @__PURE__ */ e("span", { className: "text-high-em font-semibold truncate", children: r }),
11060
11072
  /* @__PURE__ */ e("span", { className: "text-med-em text-sm", children: s })
@@ -11127,7 +11139,7 @@ const Ht = {
11127
11139
  children: [
11128
11140
  /* @__PURE__ */ c("div", { className: "flex items-center justify-between gap-3", children: [
11129
11141
  /* @__PURE__ */ c("div", { className: "flex min-w-0 items-center gap-3", children: [
11130
- /* @__PURE__ */ e("span", { className: "flex size-10 shrink-0 items-center justify-center rounded-4 bg-surface-2 text-high-em", children: /* @__PURE__ */ e(W, { size: "sm", children: n }) }),
11142
+ /* @__PURE__ */ e("span", { className: "flex size-10 shrink-0 items-center justify-center rounded-4 bg-surface-2 text-high-em", children: /* @__PURE__ */ e(O, { size: "sm", children: n }) }),
11131
11143
  /* @__PURE__ */ e("span", { className: "truncate font-semibold text-high-em", children: r })
11132
11144
  ] }),
11133
11145
  /* @__PURE__ */ c("div", { className: "relative shrink-0", children: [
@@ -11189,11 +11201,11 @@ const mn = ne(({
11189
11201
  break;
11190
11202
  }
11191
11203
  }, w = [
11192
- ...a ? [{ value: "maximize", icon: /* @__PURE__ */ e(W, { size: 12, children: /* @__PURE__ */ e(Xt, {}) }) }] : [],
11204
+ ...a ? [{ value: "maximize", icon: /* @__PURE__ */ e(O, { size: 12, children: /* @__PURE__ */ e(Xt, {}) }) }] : [],
11193
11205
  ...l ? [{ value: "text-block", label: n }] : [],
11194
- ...d ? [{ value: "edit", icon: /* @__PURE__ */ e(W, { size: 12, children: /* @__PURE__ */ e(ci, {}) }) }] : [],
11195
- ...o ? [{ value: "copy", icon: /* @__PURE__ */ e(W, { size: 12, children: /* @__PURE__ */ e(Yt, {}) }) }] : [],
11196
- ...u ? [{ value: "trash", icon: /* @__PURE__ */ e(W, { size: 12, children: /* @__PURE__ */ e(Jt, {}) }) }] : []
11206
+ ...d ? [{ value: "edit", icon: /* @__PURE__ */ e(O, { size: 12, children: /* @__PURE__ */ e(ci, {}) }) }] : [],
11207
+ ...o ? [{ value: "copy", icon: /* @__PURE__ */ e(O, { size: 12, children: /* @__PURE__ */ e(Yt, {}) }) }] : [],
11208
+ ...u ? [{ value: "trash", icon: /* @__PURE__ */ e(O, { size: 12, children: /* @__PURE__ */ e(Jt, {}) }) }] : []
11197
11209
  ];
11198
11210
  return /* @__PURE__ */ c(
11199
11211
  "div",
@@ -11784,7 +11796,7 @@ const zt = ({
11784
11796
  ref: m,
11785
11797
  title: t.title,
11786
11798
  description: t.description,
11787
- icon: l?.(t) ?? /* @__PURE__ */ e(W, {}),
11799
+ icon: l?.(t) ?? /* @__PURE__ */ e(O, {}),
11788
11800
  onMaximize: f("maximize"),
11789
11801
  onTextBlock: f("text-block"),
11790
11802
  onEdit: f("edit"),
@@ -12098,7 +12110,7 @@ const zt = ({
12098
12110
  {
12099
12111
  title: k.title,
12100
12112
  description: k.description,
12101
- icon: l?.(k) ?? /* @__PURE__ */ e(W, {}),
12113
+ icon: l?.(k) ?? /* @__PURE__ */ e(O, {}),
12102
12114
  onMaximize: N("maximize"),
12103
12115
  onTextBlock: N("text-block"),
12104
12116
  onEdit: N("edit"),
@@ -12332,7 +12344,7 @@ const oa = ({
12332
12344
  size: "xs",
12333
12345
  icons: "only",
12334
12346
  className: p("cursor-pointer", !s && "invisible"),
12335
- leadingIcon: s && /* @__PURE__ */ e(W, { size: "sm", children: s }),
12347
+ leadingIcon: s && /* @__PURE__ */ e(O, { size: "sm", children: s }),
12336
12348
  onClick: i,
12337
12349
  disabled: n || !i
12338
12350
  }
@@ -12347,7 +12359,7 @@ const oa = ({
12347
12359
  size: "xs",
12348
12360
  icons: "only",
12349
12361
  className: "cursor-pointer",
12350
- leadingIcon: /* @__PURE__ */ e(W, { size: "sm", children: l ?? /* @__PURE__ */ e(me, { className: "text-high-em" }) }),
12362
+ leadingIcon: /* @__PURE__ */ e(O, { size: "sm", children: l ?? /* @__PURE__ */ e(me, { className: "text-high-em" }) }),
12351
12363
  onClick: d ?? (() => u(!1)),
12352
12364
  disabled: n
12353
12365
  }
@@ -12664,7 +12676,7 @@ const Zo = {
12664
12676
  hierarchy: "primary",
12665
12677
  size: "sm",
12666
12678
  icons: "only",
12667
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Oe, {}) }),
12679
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Oe, {}) }),
12668
12680
  onClick: i
12669
12681
  }
12670
12682
  ),
@@ -12719,7 +12731,7 @@ const Zo = {
12719
12731
  value: m,
12720
12732
  onChange: (V) => f(V.target.value),
12721
12733
  placeholder: R,
12722
- trailingIcon: /* @__PURE__ */ e(W, { children: w ? /* @__PURE__ */ e(
12734
+ trailingIcon: /* @__PURE__ */ e(O, { children: w ? /* @__PURE__ */ e(
12723
12735
  Ee,
12724
12736
  {
12725
12737
  onClick: () => v(!1),
@@ -12744,7 +12756,7 @@ const Zo = {
12744
12756
  value: g,
12745
12757
  onChange: (V) => b(V.target.value),
12746
12758
  placeholder: H,
12747
- trailingIcon: /* @__PURE__ */ e(W, { children: x ? /* @__PURE__ */ e(
12759
+ trailingIcon: /* @__PURE__ */ e(O, { children: x ? /* @__PURE__ */ e(
12748
12760
  Ee,
12749
12761
  {
12750
12762
  onClick: () => y(!1),
@@ -12803,7 +12815,7 @@ const Zo = {
12803
12815
  hierarchy: "primary",
12804
12816
  size: "sm",
12805
12817
  icons: "only",
12806
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Oe, {}) }),
12818
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Oe, {}) }),
12807
12819
  onClick: l
12808
12820
  }
12809
12821
  ),
@@ -12877,7 +12889,7 @@ const Zo = {
12877
12889
  hierarchy: "primary",
12878
12890
  size: "sm",
12879
12891
  icons: "only",
12880
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Oe, {}) }),
12892
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Oe, {}) }),
12881
12893
  onClick: i
12882
12894
  }
12883
12895
  ),
@@ -12892,7 +12904,7 @@ const Zo = {
12892
12904
  value: d,
12893
12905
  onChange: (N) => o(N.target.value),
12894
12906
  placeholder: v,
12895
- trailingIcon: /* @__PURE__ */ e(W, { children: m ? /* @__PURE__ */ e(Ee, { onClick: () => f(!1), className: "cursor-pointer" }) : /* @__PURE__ */ e(it, { onClick: () => f(!0), className: "cursor-pointer" }) }),
12907
+ trailingIcon: /* @__PURE__ */ e(O, { children: m ? /* @__PURE__ */ e(Ee, { onClick: () => f(!1), className: "cursor-pointer" }) : /* @__PURE__ */ e(it, { onClick: () => f(!0), className: "cursor-pointer" }) }),
12896
12908
  required: !0
12897
12909
  }
12898
12910
  ),
@@ -12903,7 +12915,7 @@ const Zo = {
12903
12915
  value: u,
12904
12916
  onChange: (N) => h(N.target.value),
12905
12917
  placeholder: x,
12906
- trailingIcon: /* @__PURE__ */ e(W, { children: g ? /* @__PURE__ */ e(Ee, { onClick: () => b(!1), className: "cursor-pointer" }) : /* @__PURE__ */ e(it, { onClick: () => b(!0), className: "cursor-pointer" }) }),
12918
+ trailingIcon: /* @__PURE__ */ e(O, { children: g ? /* @__PURE__ */ e(Ee, { onClick: () => b(!1), className: "cursor-pointer" }) : /* @__PURE__ */ e(it, { onClick: () => b(!0), className: "cursor-pointer" }) }),
12907
12919
  required: !0
12908
12920
  }
12909
12921
  ),
@@ -12956,7 +12968,7 @@ const Zo = {
12956
12968
  hierarchy: "primary",
12957
12969
  size: "sm",
12958
12970
  icons: "only",
12959
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Oe, {}) }),
12971
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Oe, {}) }),
12960
12972
  onClick: s
12961
12973
  }
12962
12974
  ),
@@ -13002,7 +13014,7 @@ const Zo = {
13002
13014
  hierarchy: "primary",
13003
13015
  size: "sm",
13004
13016
  icons: "only",
13005
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Oe, {}) }),
13017
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Oe, {}) }),
13006
13018
  onClick: a
13007
13019
  }
13008
13020
  ),
@@ -13014,7 +13026,7 @@ const Zo = {
13014
13026
  hierarchy: "primary",
13015
13027
  size: "lg",
13016
13028
  icons: "leading",
13017
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Ua, {}) }),
13029
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Ua, {}) }),
13018
13030
  onClick: r,
13019
13031
  className: "w-full",
13020
13032
  children: h
@@ -13027,7 +13039,7 @@ const Zo = {
13027
13039
  hierarchy: "primary",
13028
13040
  size: "lg",
13029
13041
  icons: "leading",
13030
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Ga, {}) }),
13042
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Ga, {}) }),
13031
13043
  onClick: s,
13032
13044
  children: m
13033
13045
  }
@@ -13113,7 +13125,7 @@ const Zo = {
13113
13125
  hierarchy: "primary",
13114
13126
  size: "sm",
13115
13127
  icons: "only",
13116
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Oe, {}) }),
13128
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(Oe, {}) }),
13117
13129
  onClick: o
13118
13130
  }
13119
13131
  ),
@@ -13466,7 +13478,7 @@ const qo = ({
13466
13478
  {
13467
13479
  title: v.title,
13468
13480
  description: v.description,
13469
- leadingIcon: /* @__PURE__ */ e(W, { className: `${v.isDisabled ? "text-disabled" : ""}`, children: v.icon }),
13481
+ leadingIcon: /* @__PURE__ */ e(O, { className: `${v.isDisabled ? "text-disabled" : ""}`, children: v.icon }),
13470
13482
  showCheckbox: !1,
13471
13483
  showLeadingImage: !1,
13472
13484
  showDescription: !!v.description,
@@ -13487,7 +13499,7 @@ const qo = ({
13487
13499
  },
13488
13500
  v.id
13489
13501
  )) : /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center p-10 text-center gap-10", children: [
13490
- /* @__PURE__ */ e(W, { size: "lg", children: /* @__PURE__ */ e(Gn, {}) }),
13502
+ /* @__PURE__ */ e(O, { size: "lg", children: /* @__PURE__ */ e(Gn, {}) }),
13491
13503
  /* @__PURE__ */ e("p", { className: "text-sm font-medium text-low-em", children: t.length === 0 ? "You don't have any Widgets created yet" : "No widgets found" })
13492
13504
  ] }) })
13493
13505
  ]
@@ -13591,7 +13603,7 @@ const qo = ({
13591
13603
  hierarchy: "secondary",
13592
13604
  size: "sm",
13593
13605
  icons: "only",
13594
- leadingIcon: /* @__PURE__ */ e(W, { size: "md", children: /* @__PURE__ */ e(Ct, {}) }),
13606
+ leadingIcon: /* @__PURE__ */ e(O, { size: "md", children: /* @__PURE__ */ e(Ct, {}) }),
13595
13607
  className: "cursor-grab active:cursor-grabbing shrink-0 text-disabled",
13596
13608
  "aria-label": "Drag to reorder"
13597
13609
  }
@@ -14474,7 +14486,7 @@ const yc = ({ field: t, onChange: n, onAction: r }) => {
14474
14486
  className: "flex items-center justify-between w-full h-[38px] px-4 cursor-pointer",
14475
14487
  children: [
14476
14488
  /* @__PURE__ */ e("span", { className: "text-xs font-semibold text-med-em", children: t }),
14477
- /* @__PURE__ */ e(W, { size: "sm", children: i ? /* @__PURE__ */ e(yt, {}) : /* @__PURE__ */ e(je, {}) })
14489
+ /* @__PURE__ */ e(O, { size: "sm", children: i ? /* @__PURE__ */ e(yt, {}) : /* @__PURE__ */ e(je, {}) })
14478
14490
  ]
14479
14491
  }
14480
14492
  ),
@@ -14672,7 +14684,7 @@ function Tc({
14672
14684
  ),
14673
14685
  children: [
14674
14686
  /* @__PURE__ */ e("span", { className: p("flex-1 min-w-0 truncate text-left", S.text, R), children: N || s }),
14675
- /* @__PURE__ */ e("span", { className: p("shrink-0 flex items-center", a === "sm" ? "pl-1.5" : "pl-2"), children: /* @__PURE__ */ e(W, { size: S.iconSize, color: f, children: m ?? /* @__PURE__ */ e(Qa, {}) }) })
14687
+ /* @__PURE__ */ e("span", { className: p("shrink-0 flex items-center", a === "sm" ? "pl-1.5" : "pl-2"), children: /* @__PURE__ */ e(O, { size: S.iconSize, color: f, children: m ?? /* @__PURE__ */ e(Qa, {}) }) })
14676
14688
  ]
14677
14689
  }
14678
14690
  ),
@@ -14828,7 +14840,7 @@ function Rc({ operatorConfig: t, values: n, valueOptions: r, fieldItems: s, onVa
14828
14840
  hierarchy: "secondary",
14829
14841
  size: "xs",
14830
14842
  icons: "only",
14831
- leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(W, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
14843
+ leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(O, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
14832
14844
  onClick: () => i(n.filter((m, f) => f !== h)),
14833
14845
  "aria-label": "Remove value"
14834
14846
  }
@@ -14842,7 +14854,7 @@ function Rc({ operatorConfig: t, values: n, valueOptions: r, fieldItems: s, onVa
14842
14854
  hierarchy: "primary",
14843
14855
  size: "sm",
14844
14856
  icons: "only",
14845
- leadingIcon: /* @__PURE__ */ e(W, { size: 14, children: /* @__PURE__ */ e(ue, {}) }),
14857
+ leadingIcon: /* @__PURE__ */ e(O, { size: 14, children: /* @__PURE__ */ e(ue, {}) }),
14846
14858
  onClick: () => i([...n, ""]),
14847
14859
  "aria-label": "Add value"
14848
14860
  }
@@ -14914,7 +14926,7 @@ function Ec({
14914
14926
  onChange: o
14915
14927
  }
14916
14928
  ) }),
14917
- i?.connector === "arrow" && /* @__PURE__ */ e("span", { className: "shrink-0", children: /* @__PURE__ */ e(W, { size: "sm", color: "var(--med-em)", children: /* @__PURE__ */ e(_n, {}) }) }),
14929
+ i?.connector === "arrow" && /* @__PURE__ */ e("span", { className: "shrink-0", children: /* @__PURE__ */ e(O, { size: "sm", color: "var(--med-em)", children: /* @__PURE__ */ e(_n, {}) }) }),
14918
14930
  /* @__PURE__ */ e(
14919
14931
  Rc,
14920
14932
  {
@@ -14934,7 +14946,7 @@ function Ec({
14934
14946
  hierarchy: "secondary",
14935
14947
  size: "sm",
14936
14948
  icons: "only",
14937
- leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(W, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
14949
+ leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(O, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
14938
14950
  onClick: () => s(t.id),
14939
14951
  "aria-label": "Delete condition"
14940
14952
  }
@@ -14980,7 +14992,7 @@ function Vc({
14980
14992
  dropdownIndex: u = 0,
14981
14993
  className: h
14982
14994
  }) {
14983
- const m = /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(ue, {}) }), f = [
14995
+ const m = /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(ue, {}) }), f = [
14984
14996
  ...d ? [{ value: "and", icon: m, label: "And" }] : [],
14985
14997
  ...o ? [{ value: "or", icon: m, label: "Or" }] : []
14986
14998
  ], g = f.length > 0 ? /* @__PURE__ */ e(
@@ -15080,7 +15092,7 @@ function Uu({
15080
15092
  hierarchy: "secondary",
15081
15093
  size: "sm",
15082
15094
  icons: "only",
15083
- leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(W, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
15095
+ leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(O, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
15084
15096
  onClick: () => l(o.id),
15085
15097
  "aria-label": "Remove branch"
15086
15098
  }
@@ -15096,7 +15108,7 @@ function Uu({
15096
15108
  variant: "neutral",
15097
15109
  hierarchy: "secondary",
15098
15110
  size: "sm",
15099
- leadingIcon: /* @__PURE__ */ e(W, { size: 14, children: /* @__PURE__ */ e(ue, {}) }),
15111
+ leadingIcon: /* @__PURE__ */ e(O, { size: 14, children: /* @__PURE__ */ e(ue, {}) }),
15100
15112
  onClick: a,
15101
15113
  children: "Add Else If"
15102
15114
  }
@@ -15175,7 +15187,7 @@ function Gu({
15175
15187
  hierarchy: "primary",
15176
15188
  size: "xs",
15177
15189
  icons: "leading",
15178
- leadingIcon: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(ue, {}) }),
15190
+ leadingIcon: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(ue, {}) }),
15179
15191
  onClick: s,
15180
15192
  children: "Add expression"
15181
15193
  }
@@ -15190,7 +15202,7 @@ function Gu({
15190
15202
  hierarchy: "secondary",
15191
15203
  size: "xs",
15192
15204
  icons: "only",
15193
- leadingIcon: /* @__PURE__ */ e(W, { size: "xs", children: /* @__PURE__ */ e(me, {}) }),
15205
+ leadingIcon: /* @__PURE__ */ e(O, { size: "xs", children: /* @__PURE__ */ e(me, {}) }),
15194
15206
  onClick: a,
15195
15207
  "aria-label": "Close"
15196
15208
  }
@@ -15208,7 +15220,7 @@ function Gu({
15208
15220
  hierarchy: "secondary",
15209
15221
  size: "sm",
15210
15222
  icons: "only",
15211
- leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(W, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
15223
+ leadingIcon: /* @__PURE__ */ e("span", { className: "contents", children: /* @__PURE__ */ e(O, { size: "xs", children: /* @__PURE__ */ e(me, {}) }) }),
15212
15224
  onClick: () => i(h),
15213
15225
  "aria-label": "Remove expression"
15214
15226
  }
@@ -15592,9 +15604,9 @@ const Uc = {
15592
15604
  v(null), y(null);
15593
15605
  const { active: V, over: z } = I;
15594
15606
  if (!z || V.id === z.id) return;
15595
- const $ = String(V.id), O = String(z.id), E = k.find((le) => le.id === O), T = E ? z.data.current?.columnName ?? t.find((le) => S(le.name).some((X) => X.id === O))?.name : z.data.current?.columnName;
15607
+ const $ = String(V.id), W = String(z.id), E = k.find((le) => le.id === W), T = E ? z.data.current?.columnName ?? t.find((le) => S(le.name).some((X) => X.id === W))?.name : z.data.current?.columnName;
15596
15608
  if (!T) return;
15597
- const _ = S(T).filter((le) => le.id !== $), se = E ? Math.max(0, _.findIndex((le) => le.id === O)) : _.length;
15609
+ const _ = S(T).filter((le) => le.id !== $), se = E ? Math.max(0, _.findIndex((le) => le.id === W)) : _.length;
15598
15610
  m?.($, T, se);
15599
15611
  },
15600
15612
  onDragCancel: () => {
@@ -15659,7 +15671,7 @@ const Be = ({ children: t, className: n }) => /* @__PURE__ */ e(
15659
15671
  }) => /* @__PURE__ */ c("div", { className: p("flex flex-col", s), children: [
15660
15672
  /* @__PURE__ */ c("div", { className: "flex items-center justify-between gap-10", children: [
15661
15673
  /* @__PURE__ */ e("span", { className: "text-lg font-medium text-med-em leading-snug", children: t }),
15662
- n && /* @__PURE__ */ e(W, { size: "md", color: "currentColor", children: n })
15674
+ n && /* @__PURE__ */ e(O, { size: "md", color: "currentColor", children: n })
15663
15675
  ] }),
15664
15676
  /* @__PURE__ */ e("span", { className: "text-2xl font-semibold text-high-em font-space-grotesk", children: r })
15665
15677
  ] }), Ku = ({ className: t, ...n }) => /* @__PURE__ */ e(Be, { className: t, children: /* @__PURE__ */ e(It, { ...n }) }), qu = ({
@@ -15730,7 +15742,7 @@ const Be = ({ children: t, className: n }) => /* @__PURE__ */ e(
15730
15742
  n
15731
15743
  ] })
15732
15744
  ] }),
15733
- /* @__PURE__ */ e(W, { size: "md", color: "currentColor", children: r ?? /* @__PURE__ */ e(Ja, {}) })
15745
+ /* @__PURE__ */ e(O, { size: "md", color: "currentColor", children: r ?? /* @__PURE__ */ e(Ja, {}) })
15734
15746
  ] }),
15735
15747
  /* @__PURE__ */ e(Ma, { items: s, size: "xs" })
15736
15748
  ] }), Xu = ({
@@ -15851,10 +15863,10 @@ const Be = ({ children: t, className: n }) => /* @__PURE__ */ e(
15851
15863
  const h = s !== void 0, [m, f] = D(r), [g, b] = D(s ?? n), [w, v] = D(!1), [x, y] = D(!1), C = F(null), S = (m - t) / (n - t) * 100, k = h ? (g - t) / (n - t) * 100 : 100, N = Q(
15852
15864
  (z) => {
15853
15865
  if (!C.current) return t;
15854
- const $ = C.current.getBoundingClientRect(), O = Math.max(
15866
+ const $ = C.current.getBoundingClientRect(), W = Math.max(
15855
15867
  0,
15856
15868
  Math.min(100, (z - $.left) / $.width * 100)
15857
- ), E = t + O / 100 * (n - t), T = Math.round(E / i) * i;
15869
+ ), E = t + W / 100 * (n - t), T = Math.round(E / i) * i;
15858
15870
  return Math.max(t, Math.min(n, T));
15859
15871
  },
15860
15872
  [t, n, i]
@@ -15901,8 +15913,8 @@ const Be = ({ children: t, className: n }) => /* @__PURE__ */ e(
15901
15913
  if (!h)
15902
15914
  f($), d && d($);
15903
15915
  else {
15904
- const O = Math.abs($ - m), E = Math.abs($ - g);
15905
- if (O < E) {
15916
+ const W = Math.abs($ - m), E = Math.abs($ - g);
15917
+ if (W < E) {
15906
15918
  const T = Math.min($, g);
15907
15919
  f(T), d && d([T, g]);
15908
15920
  } else {
@@ -15939,7 +15951,7 @@ const Be = ({ children: t, className: n }) => /* @__PURE__ */ e(
15939
15951
  }
15940
15952
  );
15941
15953
  if (a === "labelTop" && l.length > 0) {
15942
- const O = Math.round(z / n * (l.length - 1)), E = l[O] || "";
15954
+ const W = Math.round(z / n * (l.length - 1)), E = l[W] || "";
15943
15955
  return /* @__PURE__ */ e(
15944
15956
  "div",
15945
15957
  {
@@ -15955,7 +15967,7 @@ const Be = ({ children: t, className: n }) => /* @__PURE__ */ e(
15955
15967
  );
15956
15968
  }
15957
15969
  if (a === "labelBottom" && l.length > 0) {
15958
- const O = Math.round(z / n * (l.length - 1)), E = l[O] || "";
15970
+ const W = Math.round(z / n * (l.length - 1)), E = l[W] || "";
15959
15971
  return /* @__PURE__ */ e(
15960
15972
  "div",
15961
15973
  {
@@ -16216,7 +16228,7 @@ export {
16216
16228
  ml as GridDraggableItem,
16217
16229
  an as Header,
16218
16230
  fo as HeaderTabs,
16219
- W as Icon,
16231
+ O as Icon,
16220
16232
  eu as ImageUploader,
16221
16233
  ar as InfoIcon,
16222
16234
  tu as InfoLabel,