@jinaan/uikit 0.1.49 → 0.1.51

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.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as s, Fragment as je } from "react/jsx-runtime";
2
- import { CircleNotch as ha, Robot as ga, Terminal as xa, Check as ae, Copy as ht, XCircle as va, Warning as Na, CheckCircle as ya, Info as wa, Minus as Ca, X as be, CaretDown as Y, CaretRight as gt, MagnifyingGlass as Sa, Columns as za, Lock as ka, DotsSixVertical as Da, FunnelSimple as dt, WarningCircle as Ta, CaretUp as Ma, CaretUpDown as Pa, CaretLeft as Ia } from "@phosphor-icons/react";
3
- import { forwardRef as f, useState as T, Children as xt, isValidElement as vt, useRef as _, useEffect as Z, useContext as O, useCallback as Nt, createContext as re, useId as ge, useMemo as De, useLayoutEffect as Ra, Fragment as ja } from "react";
2
+ import { CircleNotch as ha, Robot as ga, Terminal as xa, Check as ae, Copy as gt, XCircle as va, Warning as Na, CheckCircle as ya, Info as wa, Minus as Ca, X as be, CaretDown as Y, CaretRight as xt, MagnifyingGlass as Sa, Columns as za, Lock as ka, DotsSixVertical as Da, FunnelSimple as ct, WarningCircle as Ta, CaretUp as Ma, CaretUpDown as Pa, CaretLeft as Ia } from "@phosphor-icons/react";
3
+ import { forwardRef as f, useState as T, Children as vt, isValidElement as Nt, useRef as _, useEffect as Z, useContext as O, useCallback as yt, createContext as re, useId as ge, useMemo as De, useLayoutEffect as Ra, Fragment as ja } from "react";
4
4
  import { Slot as _a } from "@radix-ui/react-slot";
5
5
  import { cva as _e } from "class-variance-authority";
6
6
  import { clsx as Ea } from "clsx";
7
7
  import { twMerge as La } from "tailwind-merge";
8
8
  import * as Ee from "@radix-ui/react-avatar";
9
- import * as ct from "@radix-ui/react-checkbox";
9
+ import * as ut from "@radix-ui/react-checkbox";
10
10
  import * as E from "@radix-ui/react-dialog";
11
11
  import * as P from "@radix-ui/react-dropdown-menu";
12
12
  import * as R from "@radix-ui/react-select";
@@ -78,7 +78,7 @@ const qa = _e(
78
78
  fullWidth: x = !1,
79
79
  disabled: b,
80
80
  children: h,
81
- ...y
81
+ ...N
82
82
  }, k) => {
83
83
  const v = l ? _a : "button", D = Ga[n ?? "md"];
84
84
  return /* @__PURE__ */ e(
@@ -94,7 +94,7 @@ const qa = _e(
94
94
  c && "disabled:opacity-100",
95
95
  t
96
96
  ),
97
- ...y,
97
+ ...N,
98
98
  children: l ? h : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
99
99
  /* @__PURE__ */ s(
100
100
  "span",
@@ -158,13 +158,13 @@ function Ar({
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
160
  onClick: u,
161
- children: o ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ht, {})
161
+ children: o ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(gt, {})
162
162
  }
163
163
  )
164
164
  ] })
165
165
  ] });
166
166
  }
167
- const yt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
167
+ const wt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
168
168
  Ee.Root,
169
169
  {
170
170
  ref: n,
@@ -175,8 +175,8 @@ const yt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
175
175
  ...a
176
176
  }
177
177
  ));
178
- yt.displayName = "Avatar";
179
- const wt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
178
+ wt.displayName = "Avatar";
179
+ const Ct = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
180
180
  Ee.Image,
181
181
  {
182
182
  ref: n,
@@ -184,8 +184,8 @@ const wt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
184
184
  ...a
185
185
  }
186
186
  ));
187
- wt.displayName = "AvatarImage";
188
- const Ct = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
187
+ Ct.displayName = "AvatarImage";
188
+ const St = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
189
189
  Ee.Fallback,
190
190
  {
191
191
  ref: n,
@@ -196,7 +196,7 @@ const Ct = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
196
196
  ...a
197
197
  }
198
198
  ));
199
- Ct.displayName = "AvatarFallback";
199
+ St.displayName = "AvatarFallback";
200
200
  const Ha = _e(
201
201
  "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
202
202
  {
@@ -328,7 +328,7 @@ function Fr({ className: t, ...a }) {
328
328
  function Ja({ className: t, ...a }) {
329
329
  return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...a });
330
330
  }
331
- function ut({ className: t, ...a }) {
331
+ function mt({ className: t, ...a }) {
332
332
  return /* @__PURE__ */ e(
333
333
  "tr",
334
334
  {
@@ -388,7 +388,7 @@ function xe({
388
388
  panelClassName: x,
389
389
  footer: b,
390
390
  footerClassName: h,
391
- minHeight: y,
391
+ minHeight: N,
392
392
  scrollMode: k = "surface",
393
393
  headerContentRef: v
394
394
  }) {
@@ -442,7 +442,7 @@ function xe({
442
442
  Xa,
443
443
  {
444
444
  className: i(Qa[m], x),
445
- style: y ? { minHeight: y } : void 0,
445
+ style: N ? { minHeight: N } : void 0,
446
446
  children: l
447
447
  }
448
448
  );
@@ -468,8 +468,8 @@ function xe({
468
468
  ] });
469
469
  }
470
470
  function Za(t) {
471
- const a = xt.toArray(t), n = a.filter(
472
- (l) => vt(l) && l.type === St
471
+ const a = vt.toArray(t), n = a.filter(
472
+ (l) => Nt(l) && l.type === zt
473
473
  );
474
474
  return {
475
475
  header: n.length > 0 ? /* @__PURE__ */ e(je, { children: n }) : void 0,
@@ -483,7 +483,7 @@ const er = f(
483
483
  }
484
484
  );
485
485
  er.displayName = "Card";
486
- const St = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
486
+ const zt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
487
487
  "div",
488
488
  {
489
489
  ref: n,
@@ -494,7 +494,7 @@ const St = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
494
494
  ...a
495
495
  }
496
496
  ));
497
- St.displayName = "CardHeader";
497
+ zt.displayName = "CardHeader";
498
498
  const tr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
499
499
  "h2",
500
500
  {
@@ -532,7 +532,7 @@ const nr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
532
532
  ));
533
533
  nr.displayName = "CardFooter";
534
534
  const Pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
535
- ct.Root,
535
+ ut.Root,
536
536
  {
537
537
  ref: n,
538
538
  className: i(
@@ -544,26 +544,26 @@ const Pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
544
544
  t
545
545
  ),
546
546
  ...a,
547
- children: /* @__PURE__ */ e(ct.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(Ca, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ae, { className: "size-3", weight: "bold" }) })
547
+ children: /* @__PURE__ */ e(ut.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(Ca, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ae, { className: "size-3", weight: "bold" }) })
548
548
  }
549
549
  ));
550
550
  Pe.displayName = "Checkbox";
551
- function mt(t) {
551
+ function pt(t) {
552
552
  return t.width > 0 && t.height > 0;
553
553
  }
554
- function pt(t) {
554
+ function ft(t) {
555
555
  return Math.min(1, Math.max(0.1, t));
556
556
  }
557
557
  function lr(t, a) {
558
- return !mt(t) || !mt(a) ? null : {
558
+ return !pt(t) || !pt(a) ? null : {
559
559
  dx: t.left + t.width / 2 - (a.left + a.width / 2),
560
560
  dy: t.top + t.height / 2 - (a.top + a.height / 2),
561
- sx: pt(t.width / a.width),
562
- sy: pt(t.height / a.height)
561
+ sx: ft(t.width / a.width),
562
+ sy: ft(t.height / a.height)
563
563
  };
564
564
  }
565
- const zt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
566
- let W = null, ft = !1;
565
+ const kt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
566
+ let W = null, bt = !1;
567
567
  function Le(t) {
568
568
  const a = t.getBoundingClientRect();
569
569
  return a.width <= 0 || a.height <= 0 ? null : {
@@ -575,13 +575,13 @@ function Le(t) {
575
575
  }
576
576
  function Ie(t) {
577
577
  if (!(t instanceof Element)) return;
578
- const a = t.closest(zt);
578
+ const a = t.closest(kt);
579
579
  if (!a) return;
580
580
  const n = Le(a);
581
581
  n && (W = { rect: n, at: Date.now() });
582
582
  }
583
583
  function ir() {
584
- ft || typeof document > "u" || (ft = !0, document.addEventListener(
584
+ bt || typeof document > "u" || (bt = !0, document.addEventListener(
585
585
  "pointerdown",
586
586
  (t) => Ie(t.target),
587
587
  !0
@@ -600,9 +600,9 @@ function or(t) {
600
600
  }
601
601
  W = null;
602
602
  const a = document.activeElement;
603
- return a instanceof Element && a !== t && !t.contains(a) && a.matches(zt) ? Le(a) : null;
603
+ return a instanceof Element && a !== t && !t.contains(a) && a.matches(kt) ? Le(a) : null;
604
604
  }
605
- const sr = 250, kt = re(!1), Dt = re(() => {
605
+ const sr = 250, Dt = re(!1), Tt = re(() => {
606
606
  }), Ae = re(!1);
607
607
  function dr({
608
608
  open: t,
@@ -613,8 +613,8 @@ function dr({
613
613
  }) {
614
614
  const [m, u] = T(
615
615
  a ?? !1
616
- ), [c, x] = T(!1), b = _(!1), h = _(null), y = t ?? m, k = _(y);
617
- k.current = y;
616
+ ), [c, x] = T(!1), b = _(!1), h = _(null), N = t ?? m, k = _(N);
617
+ k.current = N;
618
618
  const v = t !== void 0;
619
619
  Z(() => ir(), []), Z(() => {
620
620
  t && (h.current && clearTimeout(h.current), b.current = !1, x(!1));
@@ -629,7 +629,7 @@ function dr({
629
629
  h.current && clearTimeout(h.current), b.current = !1, x(!1), v || u(!0), n == null || n(!0);
630
630
  return;
631
631
  }
632
- if (!y || b.current) return;
632
+ if (!N || b.current) return;
633
633
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
634
634
  v || u(!1), n == null || n(!1);
635
635
  return;
@@ -640,17 +640,17 @@ function dr({
640
640
  });
641
641
  }, sr);
642
642
  };
643
- return /* @__PURE__ */ e(Dt.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(kt.Provider, { value: c, children: /* @__PURE__ */ e(Ae.Provider, { value: !0, children: /* @__PURE__ */ e(
643
+ return /* @__PURE__ */ e(Tt.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(Dt.Provider, { value: c, children: /* @__PURE__ */ e(Ae.Provider, { value: !0, children: /* @__PURE__ */ e(
644
644
  E.Root,
645
645
  {
646
- open: y,
646
+ open: N,
647
647
  onOpenChange: D,
648
648
  ...o,
649
649
  children: l
650
650
  }
651
651
  ) }) }) });
652
652
  }
653
- const Tt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
653
+ const Mt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
654
654
  E.Trigger,
655
655
  {
656
656
  ref: n,
@@ -660,17 +660,17 @@ const Tt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
660
660
  ...a
661
661
  }
662
662
  ));
663
- Tt.displayName = "DialogTrigger";
664
- const Gr = E.Close, Mt = f(
663
+ Mt.displayName = "DialogTrigger";
664
+ const Gr = E.Close, Pt = f(
665
665
  ({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(E.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: a }) })
666
666
  );
667
- Mt.displayName = "DialogCancel";
668
- function Pt(t, a = !0) {
667
+ Pt.displayName = "DialogCancel";
668
+ function It(t, a = !0) {
669
669
  if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
670
670
  return;
671
671
  const n = Le(t);
672
672
  if (!n) {
673
- a && window.requestAnimationFrame(() => Pt(t, !1));
673
+ a && window.requestAnimationFrame(() => It(t, !1));
674
674
  return;
675
675
  }
676
676
  t.dataset.dialogMotionStarted = "true";
@@ -686,7 +686,7 @@ function Pt(t, a = !0) {
686
686
  function cr(t) {
687
687
  return t.replace(/dvh\b/g, "vh");
688
688
  }
689
- const It = f(
689
+ const Rt = f(
690
690
  ({
691
691
  className: t,
692
692
  children: a,
@@ -698,12 +698,12 @@ const It = f(
698
698
  onPointerDownOutside: c,
699
699
  ...x
700
700
  }, b) => {
701
- const h = O(kt), y = n === "top", k = y ? {
701
+ const h = O(Dt), N = n === "top", k = N ? {
702
702
  "--dialog-top-offset": l,
703
703
  "--dialog-top-offset-fallback": cr(l)
704
- } : void 0, v = O(Dt), D = _(null), S = Nt(
704
+ } : void 0, v = O(Tt), D = _(null), S = yt(
705
705
  (g) => {
706
- if (D.current = g, g && o === "auto" && Pt(g), typeof b == "function") {
706
+ if (D.current = g, g && o === "auto" && It(g), typeof b == "function") {
707
707
  b(g);
708
708
  return;
709
709
  }
@@ -734,7 +734,7 @@ const It = f(
734
734
  {
735
735
  className: i(
736
736
  "pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
737
- y ? "items-start" : "items-center"
737
+ N ? "items-start" : "items-center"
738
738
  ),
739
739
  children: /* @__PURE__ */ s(
740
740
  E.Content,
@@ -744,7 +744,7 @@ const It = f(
744
744
  className: i(
745
745
  "dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
746
746
  "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
747
- y && "dialog-anchor-top",
747
+ N && "dialog-anchor-top",
748
748
  o === "command" && "dialog-command-motion",
749
749
  h && "dialog-closing",
750
750
  "focus:outline-none",
@@ -771,7 +771,7 @@ const It = f(
771
771
  ] });
772
772
  }
773
773
  );
774
- It.displayName = "DialogContent";
774
+ Rt.displayName = "DialogContent";
775
775
  function ur({
776
776
  className: t,
777
777
  ...a
@@ -833,7 +833,7 @@ function fr({
833
833
  }
834
834
  );
835
835
  }
836
- const Rt = f(({ className: t, ...a }, n) => {
836
+ const jt = f(({ className: t, ...a }, n) => {
837
837
  const l = O(Ae) ? E.Title : "h2";
838
838
  return /* @__PURE__ */ e(
839
839
  l,
@@ -844,7 +844,7 @@ const Rt = f(({ className: t, ...a }, n) => {
844
844
  }
845
845
  );
846
846
  });
847
- Rt.displayName = "DialogTitle";
847
+ jt.displayName = "DialogTitle";
848
848
  const br = f(({ className: t, ...a }, n) => {
849
849
  const l = O(Ae) ? E.Description : "p";
850
850
  return /* @__PURE__ */ e(
@@ -857,7 +857,7 @@ const br = f(({ className: t, ...a }, n) => {
857
857
  );
858
858
  });
859
859
  br.displayName = "DialogDescription";
860
- const jt = re(null);
860
+ const _t = re(null);
861
861
  function hr({
862
862
  label: t,
863
863
  value: a,
@@ -869,7 +869,7 @@ function hr({
869
869
  ...c
870
870
  }) {
871
871
  const x = ge(), b = o ?? x;
872
- return /* @__PURE__ */ e(jt.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", m), ...c, children: [
872
+ return /* @__PURE__ */ e(_t.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", m), ...c, children: [
873
873
  /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
874
874
  u
875
875
  ] }) });
@@ -882,7 +882,7 @@ function gr({
882
882
  disabled: o = !1,
883
883
  className: m
884
884
  }) {
885
- const u = O(jt), c = ge();
885
+ const u = O(_t), c = ge();
886
886
  if (!u)
887
887
  throw new Error("RadioCard must be rendered inside a RadioGroup");
888
888
  const x = o || u.disabled, b = u.value === t;
@@ -947,17 +947,17 @@ function Hr({
947
947
  onConfirm: h
948
948
  }) {
949
949
  var S;
950
- const [y, k] = T(m ?? ((S = o[0]) == null ? void 0 : S.value) ?? ""), v = u ?? y;
950
+ const [N, k] = T(m ?? ((S = o[0]) == null ? void 0 : S.value) ?? ""), v = u ?? N;
951
951
  return /* @__PURE__ */ s(dr, { open: t, onOpenChange: a, children: [
952
- n ? /* @__PURE__ */ e(Tt, { asChild: !0, children: n }) : null,
952
+ n ? /* @__PURE__ */ e(Mt, { asChild: !0, children: n }) : null,
953
953
  /* @__PURE__ */ s(
954
- It,
954
+ Rt,
955
955
  {
956
956
  "aria-describedby": void 0,
957
957
  className: "max-w-[29.4rem] [&>button]:hidden",
958
958
  children: [
959
959
  /* @__PURE__ */ s(ur, { children: [
960
- /* @__PURE__ */ e(pr, { children: /* @__PURE__ */ e(Rt, { className: "text-xl", children: l }) }),
960
+ /* @__PURE__ */ e(pr, { children: /* @__PURE__ */ e(jt, { className: "text-xl", children: l }) }),
961
961
  /* @__PURE__ */ e(mr, { children: /* @__PURE__ */ e(hr, { label: l, value: v, onChange: (g) => {
962
962
  u === void 0 && k(g), c == null || c(g);
963
963
  }, children: o.map((g) => /* @__PURE__ */ e(
@@ -972,7 +972,7 @@ function Hr({
972
972
  )) }) })
973
973
  ] }),
974
974
  /* @__PURE__ */ s(fr, { className: "gap-3 pt-2.5", children: [
975
- /* @__PURE__ */ e(Mt, { className: "flex-1", children: x }),
975
+ /* @__PURE__ */ e(Pt, { className: "flex-1", children: x }),
976
976
  /* @__PURE__ */ e(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(v), children: b })
977
977
  ] })
978
978
  ]
@@ -989,7 +989,7 @@ function Vr({ code: t, label: a, className: n }) {
989
989
  header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
990
990
  action: {
991
991
  label: l ? "Copied" : "Copy",
992
- icon: l ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ht, {}),
992
+ icon: l ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(gt, {}),
993
993
  variant: "ghost",
994
994
  onClick: async () => {
995
995
  try {
@@ -1018,7 +1018,7 @@ const xr = {
1018
1018
  md: "left-[var(--control-pad-x-md)]",
1019
1019
  lg: "left-[var(--control-pad-x-lg)]",
1020
1020
  xl: "left-[var(--control-pad-x-xl)]"
1021
- }, bt = {
1021
+ }, ht = {
1022
1022
  sm: "right-[var(--control-pad-x-sm)]",
1023
1023
  md: "right-[var(--control-pad-x-md)]",
1024
1024
  lg: "right-[var(--control-pad-x-lg)]",
@@ -1041,13 +1041,13 @@ const xr = {
1041
1041
  defaultValue: x,
1042
1042
  error: b = !1,
1043
1043
  helperText: h,
1044
- id: y,
1044
+ id: N,
1045
1045
  "aria-describedby": k,
1046
1046
  disabled: v,
1047
1047
  readOnly: D,
1048
1048
  ...S
1049
1049
  }, g) => {
1050
- const j = ge(), I = y ?? j, A = !!h, F = !!(u && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), ne = A ? `${I}-description` : void 0, U = [k, ne].filter(Boolean).join(" ") || void 0, le = /* @__PURE__ */ e(
1050
+ const j = ge(), I = N ?? j, A = !!h, F = !!(u && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), ne = A ? `${I}-description` : void 0, U = [k, ne].filter(Boolean).join(" ") || void 0, le = /* @__PURE__ */ e(
1051
1051
  "input",
1052
1052
  {
1053
1053
  ref: g,
@@ -1102,7 +1102,7 @@ const xr = {
1102
1102
  onClick: u,
1103
1103
  className: i(
1104
1104
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1105
- bt[l]
1105
+ ht[l]
1106
1106
  ),
1107
1107
  children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", Te[l]), children: /* @__PURE__ */ e(be, {}) })
1108
1108
  }
@@ -1111,7 +1111,7 @@ const xr = {
1111
1111
  {
1112
1112
  className: i(
1113
1113
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1114
- bt[l]
1114
+ ht[l]
1115
1115
  ),
1116
1116
  "aria-hidden": !0,
1117
1117
  children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", Te[l]), children: m })
@@ -1132,8 +1132,8 @@ const xr = {
1132
1132
  Be.displayName = "Input";
1133
1133
  function $e(t, a) {
1134
1134
  let n = 0;
1135
- return xt.forEach(t, (l) => {
1136
- if (!vt(l)) return;
1135
+ return vt.forEach(t, (l) => {
1136
+ if (!Nt(l)) return;
1137
1137
  if (a.some((m) => m === l.type)) {
1138
1138
  n += 1;
1139
1139
  return;
@@ -1142,7 +1142,7 @@ function $e(t, a) {
1142
1142
  o && (n += $e(o, a));
1143
1143
  }), n;
1144
1144
  }
1145
- const _t = re(!1);
1145
+ const Et = re(!1);
1146
1146
  function Me({
1147
1147
  children: t,
1148
1148
  ...a
@@ -1150,12 +1150,12 @@ function Me({
1150
1150
  const n = $e(t, [
1151
1151
  he,
1152
1152
  ee,
1153
- Lt
1153
+ At
1154
1154
  ]) === 0;
1155
- return /* @__PURE__ */ e(_t.Provider, { value: n, children: /* @__PURE__ */ e(P.Root, { ...a, children: t }) });
1155
+ return /* @__PURE__ */ e(Et.Provider, { value: n, children: /* @__PURE__ */ e(P.Root, { ...a, children: t }) });
1156
1156
  }
1157
1157
  const me = f(({ className: t, disabled: a, ...n }, l) => {
1158
- const o = O(_t);
1158
+ const o = O(Et);
1159
1159
  return /* @__PURE__ */ e(
1160
1160
  P.Trigger,
1161
1161
  {
@@ -1167,7 +1167,7 @@ const me = f(({ className: t, disabled: a, ...n }, l) => {
1167
1167
  );
1168
1168
  });
1169
1169
  me.displayName = "DropdownMenuTrigger";
1170
- const Et = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1170
+ const Lt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1171
1171
  Y,
1172
1172
  {
1173
1173
  ref: n,
@@ -1179,7 +1179,7 @@ const Et = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1179
1179
  ...a
1180
1180
  }
1181
1181
  ));
1182
- Et.displayName = "DropdownMenuChevron";
1182
+ Lt.displayName = "DropdownMenuChevron";
1183
1183
  const Wr = P.Group, Or = P.Portal, pe = f(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
1184
1184
  P.Content,
1185
1185
  {
@@ -1240,7 +1240,7 @@ const fe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1240
1240
  }
1241
1241
  ));
1242
1242
  fe.displayName = "DropdownMenuLabel";
1243
- const Ur = P.Sub, Lt = f(({ className: t, inset: a, children: n, ...l }, o) => /* @__PURE__ */ s(
1243
+ const Ur = P.Sub, At = f(({ className: t, inset: a, children: n, ...l }, o) => /* @__PURE__ */ s(
1244
1244
  P.SubTrigger,
1245
1245
  {
1246
1246
  ref: o,
@@ -1254,11 +1254,11 @@ const Ur = P.Sub, Lt = f(({ className: t, inset: a, children: n, ...l }, o) => /
1254
1254
  ...l,
1255
1255
  children: [
1256
1256
  n,
1257
- /* @__PURE__ */ e(gt, { className: "ml-auto shrink-0" })
1257
+ /* @__PURE__ */ e(xt, { className: "ml-auto shrink-0" })
1258
1258
  ]
1259
1259
  }
1260
1260
  ));
1261
- Lt.displayName = "DropdownMenuSubTrigger";
1261
+ At.displayName = "DropdownMenuSubTrigger";
1262
1262
  const yr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1263
1263
  P.SubContent,
1264
1264
  {
@@ -1287,8 +1287,8 @@ const Re = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1287
1287
  }
1288
1288
  ));
1289
1289
  Re.displayName = "DropdownMenuSeparator";
1290
- const Xr = R.Group, At = R.Value;
1291
- function Bt({
1290
+ const Xr = R.Group, Bt = R.Value;
1291
+ function $t({
1292
1292
  children: t,
1293
1293
  disabled: a,
1294
1294
  ...n
@@ -1376,16 +1376,16 @@ function Cr({
1376
1376
  "div",
1377
1377
  {
1378
1378
  className: i(
1379
- "flex min-h-[22rem] flex-col items-center justify-center gap-5 px-6 py-16 text-center",
1379
+ "flex flex-col items-center justify-center gap-4 px-6 py-12 text-center",
1380
1380
  o
1381
1381
  ),
1382
1382
  children: [
1383
- t ? /* @__PURE__ */ e("div", { className: "flex size-[var(--table-empty-icon)] items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-table-muted [&_svg]:size-8", children: t }) : null,
1384
- /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1385
- /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: a }),
1386
- n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
1383
+ t ? /* @__PURE__ */ e("div", { className: "flex size-12 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-5", children: t }) : null,
1384
+ /* @__PURE__ */ s("div", { className: "space-y-1", children: [
1385
+ /* @__PURE__ */ e("p", { className: "text-base font-medium text-table-header-active", children: a }),
1386
+ n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-[13px] leading-5 text-table-muted", children: n }) : null
1387
1387
  ] }),
1388
- l ? /* @__PURE__ */ e("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
1388
+ l ? /* @__PURE__ */ e("div", { className: "text-table-accent", children: l }) : null
1389
1389
  ]
1390
1390
  }
1391
1391
  );
@@ -1403,9 +1403,9 @@ function Jr({
1403
1403
  image: n
1404
1404
  }) {
1405
1405
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1406
- /* @__PURE__ */ s(yt, { className: "size-8", children: [
1407
- n ? /* @__PURE__ */ e(wt, { src: n, alt: "" }) : null,
1408
- /* @__PURE__ */ e(Ct, { children: zr(t) })
1406
+ /* @__PURE__ */ s(wt, { className: "size-8", children: [
1407
+ n ? /* @__PURE__ */ e(Ct, { src: n, alt: "" }) : null,
1408
+ /* @__PURE__ */ e(St, { children: zr(t) })
1409
1409
  ] }),
1410
1410
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1411
1411
  /* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
@@ -1425,7 +1425,7 @@ function Kr({
1425
1425
  toolbarStart: x,
1426
1426
  toolbarEnd: b,
1427
1427
  columnPicker: h = !0,
1428
- tabs: y,
1428
+ tabs: N,
1429
1429
  activeTab: k,
1430
1430
  onTabChange: v,
1431
1431
  infoBanner: D,
@@ -1438,120 +1438,120 @@ function Kr({
1438
1438
  sort: ne,
1439
1439
  onSortChange: U,
1440
1440
  pageSize: le = 25,
1441
- pageSizeOptions: $t = [10, 25, 50, 100],
1442
- pagination: Ft = "auto",
1443
- tone: qt,
1444
- title: Gt,
1445
- description: Ht,
1446
- headerAction: Vt,
1447
- headerClassName: Wt,
1448
- panelClassName: Ot,
1449
- className: Ut
1441
+ pageSizeOptions: Ft = [10, 25, 50, 100],
1442
+ pagination: qt = "auto",
1443
+ tone: Gt,
1444
+ title: Ht,
1445
+ description: Vt,
1446
+ headerAction: Wt,
1447
+ headerClassName: Ot,
1448
+ panelClassName: Ut,
1449
+ className: Xt
1450
1450
  }) {
1451
1451
  const [Ge, He] = T(
1452
1452
  () => Object.fromEntries(
1453
1453
  a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1454
1454
  )
1455
- ), [Ve, We] = T(null), [Ne, Oe] = T(null), [Xt, Jt] = T(
1455
+ ), [Ve, We] = T(null), [Ne, Oe] = T(null), [Jt, Kt] = T(
1456
1456
  F ?? null
1457
- ), w = U ? ne ?? null : Xt, Kt = (r) => {
1458
- U ? U(r) : Jt(r);
1459
- }, [X, ie] = T(0), [B, Qt] = T(le), [q, ye] = T(/* @__PURE__ */ new Set()), [Yt, Zt] = T(/* @__PURE__ */ new Set()), ea = (r) => {
1460
- Zt((d) => {
1457
+ ), y = U ? ne ?? null : Jt, Qt = (r) => {
1458
+ U ? U(r) : Kt(r);
1459
+ }, [X, ie] = T(0), [B, Yt] = T(le), [q, ye] = T(/* @__PURE__ */ new Set()), [Zt, ea] = T(/* @__PURE__ */ new Set()), ta = (r) => {
1460
+ ea((d) => {
1461
1461
  const p = new Set(d);
1462
1462
  return p.has(r) ? p.delete(r) : p.add(r), p;
1463
1463
  });
1464
- }, [ta, we] = T([]), Ue = a.map((r) => r.id), Xe = new Map(a.map((r) => [r.id, r])), Je = Ve ? Ve.map((r) => Xe.get(r)).filter((r) => !!r) : a, G = Je.filter((r) => !Ge[r.id]), Ke = Je.filter((r) => Ge[r.id] && !r.required), Qe = (r) => !!r.required, aa = (r) => Xe.get(r), ra = (r, d) => {
1465
- const p = d ? aa(d) : void 0;
1466
- !p || Qe(p) || r === d || We((N) => {
1467
- const z = N ?? Ue;
1464
+ }, [aa, we] = T([]), Ue = a.map((r) => r.id), Xe = new Map(a.map((r) => [r.id, r])), Je = Ve ? Ve.map((r) => Xe.get(r)).filter((r) => !!r) : a, G = Je.filter((r) => !Ge[r.id]), Ke = Je.filter((r) => Ge[r.id] && !r.required), Qe = (r) => !!r.required, ra = (r) => Xe.get(r), na = (r, d) => {
1465
+ const p = d ? ra(d) : void 0;
1466
+ !p || Qe(p) || r === d || We((C) => {
1467
+ const z = C ?? Ue;
1468
1468
  return $a(z, z.indexOf(r), z.indexOf(d));
1469
1469
  });
1470
- }, na = (r) => {
1470
+ }, la = (r) => {
1471
1471
  He((d) => ({ ...d, [r]: !1 })), We((d) => d && d.includes(r) ? d : [...d ?? Ue, r]);
1472
- }, Ce = (c ?? []).filter((r) => ta.includes(r.id)), la = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), oe = De(() => {
1472
+ }, Ce = (c ?? []).filter((r) => aa.includes(r.id)), ia = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), oe = De(() => {
1473
1473
  let r = t;
1474
1474
  for (const p of c ?? [])
1475
- p.value.length > 0 && (r = r.filter((N) => p.match(N, p.value)));
1475
+ p.value.length > 0 && (r = r.filter((C) => p.match(C, p.value)));
1476
1476
  if (!u || !u.value.trim()) return r;
1477
1477
  const d = u.value.trim().toLowerCase();
1478
1478
  return r.filter((p) => u.keys(p).toLowerCase().includes(d));
1479
1479
  }, [t, u, c]), H = De(() => {
1480
- if (!w) return oe;
1481
- const r = a.find((p) => p.id === w.id);
1480
+ if (!y) return oe;
1481
+ const r = a.find((p) => p.id === y.id);
1482
1482
  if (!(r != null && r.sortValue)) return oe;
1483
- const d = w.dir === "asc" ? 1 : -1;
1484
- return [...oe].sort((p, N) => {
1485
- const z = r.sortValue(p), C = r.sortValue(N);
1486
- return z == null && C == null ? 0 : z == null ? 1 : C == null ? -1 : typeof z == "number" && typeof C == "number" ? (z - C) * d : String(z).localeCompare(String(C)) * d;
1483
+ const d = y.dir === "asc" ? 1 : -1;
1484
+ return [...oe].sort((p, C) => {
1485
+ const z = r.sortValue(p), w = r.sortValue(C);
1486
+ return z == null && w == null ? 0 : z == null ? 1 : w == null ? -1 : typeof z == "number" && typeof w == "number" ? (z - w) * d : String(z).localeCompare(String(w)) * d;
1487
1487
  });
1488
- }, [oe, w, a]), J = Math.max(1, Math.ceil(H.length / B)), ia = !l && !o && H.length > 0 && (Ft === "always" || H.length > B);
1488
+ }, [oe, y, a]), J = Math.max(1, Math.ceil(H.length / B)), oa = !l && !o && H.length > 0 && (qt === "always" || H.length > B);
1489
1489
  Z(() => {
1490
1490
  ie(0);
1491
- }, [u == null ? void 0 : u.value, B, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, k, la]), Z(() => {
1491
+ }, [u == null ? void 0 : u.value, B, y == null ? void 0 : y.id, y == null ? void 0 : y.dir, k, ia]), Z(() => {
1492
1492
  X > J - 1 && ie(J - 1);
1493
1493
  }, [X, J]);
1494
- const se = X * B, $ = H.slice(se, se + B), oa = (r) => {
1494
+ const se = X * B, $ = H.slice(se, se + B), sa = (r) => {
1495
1495
  if (!r.sortable) return;
1496
- const d = w;
1497
- Kt(
1496
+ const d = y;
1497
+ Qt(
1498
1498
  (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1499
1499
  );
1500
- }, Ye = $.length > 0 && $.every((r) => q.has(n(r))), sa = $.some((r) => q.has(n(r))), da = t.filter((r) => q.has(n(r))), ca = () => {
1500
+ }, Ye = $.length > 0 && $.every((r) => q.has(n(r))), da = $.some((r) => q.has(n(r))), ca = t.filter((r) => q.has(n(r))), ua = () => {
1501
1501
  ye((r) => {
1502
1502
  const d = new Set(r);
1503
1503
  return Ye ? $.forEach((p) => d.delete(n(p))) : $.forEach((p) => d.add(n(p))), d;
1504
1504
  });
1505
- }, ua = (r) => {
1505
+ }, ma = (r) => {
1506
1506
  ye((d) => {
1507
1507
  const p = new Set(d);
1508
1508
  return p.has(r) ? p.delete(r) : p.add(r), p;
1509
1509
  });
1510
- }, ma = !!(u || c != null && c.length || x || b), pa = (r) => (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, Ze = _(null), et = _(null), tt = _(null), at = _(null), [V, Se] = T([]), fa = G.map((r) => r.id).join("\0"), de = `${S ? "s" : "-"}|${j ? "a" : "-"}|${I ? "e" : "-"}|${fa}`, rt = _(de), ce = De(() => {
1510
+ }, pa = !!(u || c != null && c.length || x || b), fa = (r) => (y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? "ascending" : "descending" : void 0, Ze = _(null), et = _(null), tt = _(null), at = _(null), [V, Se] = T([]), ba = G.map((r) => r.id).join("\0"), de = `${S ? "s" : "-"}|${j ? "a" : "-"}|${I ? "e" : "-"}|${ba}`, rt = _(de), ce = De(() => {
1511
1511
  try {
1512
1512
  return JSON.stringify(t);
1513
1513
  } catch {
1514
1514
  return `rows:${t.length}`;
1515
1515
  }
1516
- }, [t]), nt = _(ce), ba = V.length > 0, ze = Nt(() => {
1516
+ }, [t]), nt = _(ce), lt = V.length > 0, ze = yt(() => {
1517
1517
  const r = tt.current, d = at.current;
1518
1518
  r && d && (r.style.transform = `translateX(${-d.scrollLeft}px)`);
1519
1519
  }, []);
1520
1520
  Ra(() => {
1521
1521
  const r = Ze.current;
1522
1522
  if (!r) return;
1523
- if (rt.current !== de || nt.current !== ce) {
1524
- rt.current = de, nt.current = ce, Se((N) => N.length === 0 ? N : []);
1525
- return;
1526
- }
1527
1523
  const d = () => {
1528
- var lt, it, ot;
1529
- const N = (it = (lt = r.tBodies[0]) == null ? void 0 : lt.rows.item(0)) == null ? void 0 : it.cells;
1530
- if (!N || N.length === 0) {
1524
+ var it, ot, st;
1525
+ const C = (ot = (it = r.tBodies[0]) == null ? void 0 : it.rows.item(0)) == null ? void 0 : ot.cells;
1526
+ if (!C || C.length === 0) {
1531
1527
  Se((L) => L.length === 0 ? L : []);
1532
1528
  return;
1533
1529
  }
1534
- const z = (ot = et.current) == null ? void 0 : ot.querySelectorAll("thead th"), C = Array.from(
1535
- N,
1530
+ const z = (st = et.current) == null ? void 0 : st.querySelectorAll("thead th"), w = Array.from(
1531
+ C,
1536
1532
  (L, ke) => {
1537
- var ue, st;
1533
+ var ue, dt;
1538
1534
  return Math.max(
1539
1535
  L.getBoundingClientRect().width,
1540
- ((st = (ue = z == null ? void 0 : z.item(ke)) == null ? void 0 : ue.querySelector("[data-col-sizer]")) == null ? void 0 : st.getBoundingClientRect().width) ?? 0
1536
+ ((dt = (ue = z == null ? void 0 : z.item(ke)) == null ? void 0 : ue.querySelector("[data-col-sizer]")) == null ? void 0 : dt.getBoundingClientRect().width) ?? 0
1541
1537
  );
1542
1538
  }
1543
1539
  );
1544
1540
  Se(
1545
- (L) => L.length === C.length && L.every((ke, ue) => ke === C[ue]) ? L : C
1541
+ (L) => L.length === w.length && L.every((ke, ue) => ke === w[ue]) ? L : w
1546
1542
  );
1547
1543
  };
1544
+ if ((rt.current !== de || nt.current !== ce) && (rt.current = de, nt.current = ce, lt)) {
1545
+ Se([]);
1546
+ return;
1547
+ }
1548
1548
  if (d(), ze(), typeof ResizeObserver > "u") return;
1549
1549
  const p = new ResizeObserver(d);
1550
1550
  return p.observe(r), () => p.disconnect();
1551
- }, [de, ce, ba, l, o, ze]);
1551
+ }, [de, ce, lt, l, o, ze]);
1552
1552
  const K = V.reduce((r, d) => r + d, 0);
1553
- return /* @__PURE__ */ s("div", { className: i("space-y-4", Ut), children: [
1554
- y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((r) => {
1553
+ return /* @__PURE__ */ s("div", { className: i("space-y-4", Xt), children: [
1554
+ N && N.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: N.map((r) => {
1555
1555
  const d = r.id === k;
1556
1556
  return /* @__PURE__ */ e(
1557
1557
  "button",
@@ -1569,7 +1569,7 @@ function Kr({
1569
1569
  r.id
1570
1570
  );
1571
1571
  }) }),
1572
- ma && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1572
+ pa && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1573
1573
  u && /* @__PURE__ */ e(
1574
1574
  Be,
1575
1575
  {
@@ -1592,7 +1592,7 @@ function Kr({
1592
1592
  variant: "secondary",
1593
1593
  size: "md",
1594
1594
  leadingIcon: /* @__PURE__ */ e(za, {}),
1595
- trailingIcon: /* @__PURE__ */ e(Et, {}),
1595
+ trailingIcon: /* @__PURE__ */ e(Lt, {}),
1596
1596
  children: "Columns"
1597
1597
  }
1598
1598
  ) }),
@@ -1613,12 +1613,12 @@ function Kr({
1613
1613
  p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), Oe(r.id);
1614
1614
  },
1615
1615
  onDragOver: (p) => {
1616
- Ne && (p.preventDefault(), ra(Ne, r.id));
1616
+ Ne && (p.preventDefault(), na(Ne, r.id));
1617
1617
  },
1618
1618
  onDrop: (p) => p.preventDefault(),
1619
1619
  onDragEnd: () => Oe(null),
1620
1620
  onCheckedChange: (p) => {
1621
- !p && !d && He((N) => ({ ...N, [r.id]: !0 }));
1621
+ !p && !d && He((C) => ({ ...C, [r.id]: !0 }));
1622
1622
  },
1623
1623
  onSelect: (p) => p.preventDefault(),
1624
1624
  className: "justify-between",
@@ -1646,7 +1646,7 @@ function Kr({
1646
1646
  ee,
1647
1647
  {
1648
1648
  checked: !1,
1649
- onCheckedChange: () => na(r.id),
1649
+ onCheckedChange: () => la(r.id),
1650
1650
  onSelect: (d) => d.preventDefault(),
1651
1651
  children: r.header
1652
1652
  },
@@ -1663,7 +1663,7 @@ function Kr({
1663
1663
  size: "md",
1664
1664
  iconOnly: !0,
1665
1665
  "aria-label": "Add filter",
1666
- children: /* @__PURE__ */ e(dt, {})
1666
+ children: /* @__PURE__ */ e(ct, {})
1667
1667
  }
1668
1668
  ) }),
1669
1669
  /* @__PURE__ */ e(pe, { align: "start", className: "w-54", children: c.map((r) => /* @__PURE__ */ e(
@@ -1682,7 +1682,7 @@ function Kr({
1682
1682
  Ce.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1683
1683
  Ce.map((r) => {
1684
1684
  const d = () => {
1685
- r.onChange([]), we((p) => p.filter((N) => N !== r.id));
1685
+ r.onChange([]), we((p) => p.filter((C) => C !== r.id));
1686
1686
  };
1687
1687
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1688
1688
  /* @__PURE__ */ e(
@@ -1699,7 +1699,7 @@ function Kr({
1699
1699
  ),
1700
1700
  /* @__PURE__ */ s(Me, { children: [
1701
1701
  /* @__PURE__ */ e(me, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1702
- /* @__PURE__ */ e(dt, {}),
1702
+ /* @__PURE__ */ e(ct, {}),
1703
1703
  /* @__PURE__ */ e("span", { className: "font-medium", children: r.label }),
1704
1704
  /* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1705
1705
  /* @__PURE__ */ e("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
@@ -1711,13 +1711,13 @@ function Kr({
1711
1711
  r.label
1712
1712
  ] }),
1713
1713
  r.options.map((p) => {
1714
- const N = r.value.includes(p.value);
1714
+ const C = r.value.includes(p.value);
1715
1715
  return /* @__PURE__ */ e(
1716
1716
  ee,
1717
1717
  {
1718
- checked: N,
1718
+ checked: C,
1719
1719
  onCheckedChange: () => r.onChange(
1720
- N ? r.value.filter((z) => z !== p.value) : [...r.value, p.value]
1720
+ C ? r.value.filter((z) => z !== p.value) : [...r.value, p.value]
1721
1721
  ),
1722
1722
  onSelect: (z) => z.preventDefault(),
1723
1723
  children: p.label
@@ -1756,7 +1756,7 @@ function Kr({
1756
1756
  size: "md",
1757
1757
  variant: r.variant ?? "outline",
1758
1758
  disabled: r.disabled,
1759
- onClick: () => void r.onRun(da),
1759
+ onClick: () => void r.onRun(ca),
1760
1760
  children: [
1761
1761
  r.icon,
1762
1762
  r.label
@@ -1782,12 +1782,12 @@ function Kr({
1782
1782
  {
1783
1783
  scrollMode: "panel",
1784
1784
  headerContentRef: tt,
1785
- action: Vt,
1786
- tone: qt,
1787
- title: Gt,
1788
- description: Ht,
1789
- headerClassName: Wt,
1790
- panelClassName: Ot,
1785
+ action: Wt,
1786
+ tone: Gt,
1787
+ title: Ht,
1788
+ description: Vt,
1789
+ headerClassName: Ot,
1790
+ panelClassName: Ut,
1791
1791
  header: (
1792
1792
  // Visible header band. Presentational (aria-sort lives on the body's
1793
1793
  // sr-only thead); widths are pinned to the measured body columns and
@@ -1811,8 +1811,8 @@ function Kr({
1811
1811
  Pe,
1812
1812
  {
1813
1813
  "aria-label": "Select all rows",
1814
- checked: Ye ? !0 : sa ? "indeterminate" : !1,
1815
- onCheckedChange: ca
1814
+ checked: Ye ? !0 : da ? "indeterminate" : !1,
1815
+ onCheckedChange: ua
1816
1816
  }
1817
1817
  ) }),
1818
1818
  I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-9 px-1.5" }),
@@ -1832,16 +1832,16 @@ function Kr({
1832
1832
  variant: "ghost",
1833
1833
  size: "xs",
1834
1834
  "aria-label": `Sort by ${r.header}`,
1835
- onClick: () => oa(r),
1835
+ onClick: () => sa(r),
1836
1836
  className: i(
1837
1837
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1838
1838
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1839
1839
  "active:scale-100 active:bg-transparent active:shadow-none",
1840
- (w == null ? void 0 : w.id) === r.id && "text-table-header-active"
1840
+ (y == null ? void 0 : y.id) === r.id && "text-table-header-active"
1841
1841
  ),
1842
1842
  children: [
1843
1843
  r.header,
1844
- (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? /* @__PURE__ */ e(Ma, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Pa, { className: "size-3.5 opacity-50" })
1844
+ (y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? /* @__PURE__ */ e(Ma, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Pa, { className: "size-3.5 opacity-50" })
1845
1845
  ]
1846
1846
  }
1847
1847
  ) : r.header
@@ -1890,64 +1890,64 @@ function Kr({
1890
1890
  /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1891
1891
  S && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1892
1892
  I && /* @__PURE__ */ e("th", { scope: "col", children: "Details" }),
1893
- G.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": pa(r), children: r.header }, r.id)),
1893
+ G.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": fa(r), children: r.header }, r.id)),
1894
1894
  j && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1895
1895
  ] }) }),
1896
1896
  /* @__PURE__ */ e(Ja, { children: $.map((r) => {
1897
- const d = n(r), p = q.has(d), N = Yt.has(d), z = G.length + (S ? 1 : 0) + (I ? 1 : 0) + (j ? 1 : 0);
1897
+ const d = n(r), p = q.has(d), C = Zt.has(d), z = G.length + (S ? 1 : 0) + (I ? 1 : 0) + (j ? 1 : 0);
1898
1898
  return /* @__PURE__ */ s(ja, { children: [
1899
1899
  /* @__PURE__ */ s(
1900
- ut,
1900
+ mt,
1901
1901
  {
1902
1902
  "data-state": p ? "selected" : void 0,
1903
1903
  onClick: A ? () => A(r) : void 0,
1904
1904
  className: A ? "cursor-pointer" : void 0,
1905
1905
  children: [
1906
- S && /* @__PURE__ */ e(Q, { className: "w-11", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
1906
+ S && /* @__PURE__ */ e(Q, { className: "w-11", onClick: (w) => w.stopPropagation(), children: /* @__PURE__ */ e(
1907
1907
  Pe,
1908
1908
  {
1909
1909
  "aria-label": "Select row",
1910
1910
  checked: p,
1911
- onCheckedChange: () => ua(d)
1911
+ onCheckedChange: () => ma(d)
1912
1912
  }
1913
1913
  ) }),
1914
- I && /* @__PURE__ */ e(Q, { className: "w-9 px-1.5", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
1914
+ I && /* @__PURE__ */ e(Q, { className: "w-9 px-1.5", onClick: (w) => w.stopPropagation(), children: /* @__PURE__ */ e(
1915
1915
  M,
1916
1916
  {
1917
1917
  type: "button",
1918
1918
  variant: "ghost",
1919
1919
  size: "icon",
1920
1920
  className: "size-7",
1921
- "aria-label": N ? "Collapse row" : "Expand row",
1922
- "aria-expanded": N,
1923
- onClick: () => ea(d),
1921
+ "aria-label": C ? "Collapse row" : "Expand row",
1922
+ "aria-expanded": C,
1923
+ onClick: () => ta(d),
1924
1924
  children: /* @__PURE__ */ e(
1925
1925
  Y,
1926
1926
  {
1927
1927
  className: i(
1928
1928
  "size-3.5 text-muted transition-transform motion-safe:duration-200",
1929
- N ? "" : "-rotate-90"
1929
+ C ? "" : "-rotate-90"
1930
1930
  ),
1931
1931
  weight: "bold"
1932
1932
  }
1933
1933
  )
1934
1934
  }
1935
1935
  ) }),
1936
- G.map((C) => /* @__PURE__ */ e(
1936
+ G.map((w) => /* @__PURE__ */ e(
1937
1937
  Q,
1938
1938
  {
1939
- "data-numeric": C.numeric ? "" : void 0,
1940
- className: i(C.align === "right" && "text-right", C.className),
1941
- children: C.cell(r)
1939
+ "data-numeric": w.numeric ? "" : void 0,
1940
+ className: i(w.align === "right" && "text-right", w.className),
1941
+ children: w.cell(r)
1942
1942
  },
1943
- C.id
1943
+ w.id
1944
1944
  )),
1945
1945
  j && /* @__PURE__ */ e(
1946
1946
  Q,
1947
1947
  {
1948
1948
  className: "w-44 px-4 text-right",
1949
- onClick: (C) => {
1950
- C.target.closest("button, a, input, [role='menuitem']") && C.stopPropagation();
1949
+ onClick: (w) => {
1950
+ w.target.closest("button, a, input, [role='menuitem']") && w.stopPropagation();
1951
1951
  },
1952
1952
  children: j(r)
1953
1953
  }
@@ -1955,7 +1955,7 @@ function Kr({
1955
1955
  ]
1956
1956
  }
1957
1957
  ),
1958
- I && N ? /* @__PURE__ */ e(ut, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
1958
+ I && C ? /* @__PURE__ */ e(mt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
1959
1959
  Q,
1960
1960
  {
1961
1961
  colSpan: z,
@@ -1970,7 +1970,7 @@ function Kr({
1970
1970
  ) })
1971
1971
  }
1972
1972
  ),
1973
- ia && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1973
+ oa && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1974
1974
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
1975
1975
  se + 1,
1976
1976
  "–",
@@ -1979,9 +1979,9 @@ function Kr({
1979
1979
  H.length
1980
1980
  ] }),
1981
1981
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1982
- /* @__PURE__ */ s(Bt, { value: String(B), onValueChange: (r) => Qt(Number(r)), children: [
1983
- /* @__PURE__ */ e(Fe, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(At, {}) }),
1984
- /* @__PURE__ */ e(qe, { children: $t.map((r) => /* @__PURE__ */ e(ve, { value: String(r), children: r }, r)) })
1982
+ /* @__PURE__ */ s($t, { value: String(B), onValueChange: (r) => Yt(Number(r)), children: [
1983
+ /* @__PURE__ */ e(Fe, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Bt, {}) }),
1984
+ /* @__PURE__ */ e(qe, { children: Ft.map((r) => /* @__PURE__ */ e(ve, { value: String(r), children: r }, r)) })
1985
1985
  ] }),
1986
1986
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
1987
1987
  /* @__PURE__ */ e(
@@ -2003,7 +2003,7 @@ function Kr({
2003
2003
  "aria-label": "Next page",
2004
2004
  disabled: X >= J - 1,
2005
2005
  onClick: () => ie((r) => Math.min(J - 1, r + 1)),
2006
- children: /* @__PURE__ */ e(gt, {})
2006
+ children: /* @__PURE__ */ e(xt, {})
2007
2007
  }
2008
2008
  )
2009
2009
  ] })
@@ -2034,12 +2034,12 @@ const kr = f(
2034
2034
  id: x,
2035
2035
  size: b,
2036
2036
  disabled: h,
2037
- ...y
2037
+ ...N
2038
2038
  }, k) => /* @__PURE__ */ s("div", { className: i("flex w-full items-stretch", t), children: [
2039
2039
  /* @__PURE__ */ e(
2040
2040
  Be,
2041
2041
  {
2042
- ...y,
2042
+ ...N,
2043
2043
  ref: k,
2044
2044
  id: x,
2045
2045
  size: b,
@@ -2051,7 +2051,7 @@ const kr = f(
2051
2051
  }
2052
2052
  ),
2053
2053
  /* @__PURE__ */ s(
2054
- Bt,
2054
+ $t,
2055
2055
  {
2056
2056
  value: l,
2057
2057
  onValueChange: o,
@@ -2066,7 +2066,7 @@ const kr = f(
2066
2066
  "min-w-28 shrink-0 rounded-l-none border border-(--input-border) border-l-0 px-3 text-[13px] font-normal",
2067
2067
  n
2068
2068
  ),
2069
- children: /* @__PURE__ */ e(At, { placeholder: c })
2069
+ children: /* @__PURE__ */ e(Bt, { placeholder: c })
2070
2070
  }
2071
2071
  ),
2072
2072
  /* @__PURE__ */ e(qe, { children: m.map((v) => /* @__PURE__ */ e(ve, { value: v.value, children: v.label }, v.value)) })
@@ -2197,9 +2197,9 @@ const tn = te.Provider, an = te.Root, rn = te.Trigger, Mr = f(({ className: t, s
2197
2197
  Mr.displayName = "TooltipContent";
2198
2198
  export {
2199
2199
  Ar as AgentPrompt,
2200
- yt as Avatar,
2201
- Ct as AvatarFallback,
2202
- wt as AvatarImage,
2200
+ wt as Avatar,
2201
+ St as AvatarFallback,
2202
+ Ct as AvatarImage,
2203
2203
  Wa as Badge,
2204
2204
  M as Button,
2205
2205
  Br as Callout,
@@ -2207,7 +2207,7 @@ export {
2207
2207
  rr as CardContent,
2208
2208
  ar as CardDescription,
2209
2209
  nr as CardFooter,
2210
- St as CardHeader,
2210
+ zt as CardHeader,
2211
2211
  tr as CardTitle,
2212
2212
  Pe as Checkbox,
2213
2213
  Hr as ChoiceDialog,
@@ -2216,18 +2216,18 @@ export {
2216
2216
  Jr as DataTableIdentity,
2217
2217
  dr as Dialog,
2218
2218
  mr as DialogBody,
2219
- Mt as DialogCancel,
2219
+ Pt as DialogCancel,
2220
2220
  Gr as DialogClose,
2221
- It as DialogContent,
2221
+ Rt as DialogContent,
2222
2222
  br as DialogDescription,
2223
2223
  fr as DialogFooter,
2224
2224
  pr as DialogHeader,
2225
2225
  ur as DialogPanel,
2226
- Rt as DialogTitle,
2227
- Tt as DialogTrigger,
2226
+ jt as DialogTitle,
2227
+ Mt as DialogTrigger,
2228
2228
  Me as DropdownMenu,
2229
2229
  ee as DropdownMenuCheckboxItem,
2230
- Et as DropdownMenuChevron,
2230
+ Lt as DropdownMenuChevron,
2231
2231
  pe as DropdownMenuContent,
2232
2232
  Wr as DropdownMenuGroup,
2233
2233
  he as DropdownMenuItem,
@@ -2236,7 +2236,7 @@ export {
2236
2236
  Re as DropdownMenuSeparator,
2237
2237
  Ur as DropdownMenuSub,
2238
2238
  yr as DropdownMenuSubContent,
2239
- Lt as DropdownMenuSubTrigger,
2239
+ At as DropdownMenuSubTrigger,
2240
2240
  me as DropdownMenuTrigger,
2241
2241
  Qr as EmptyState,
2242
2242
  Be as Input,
@@ -2246,13 +2246,13 @@ export {
2246
2246
  gr as RadioCard,
2247
2247
  hr as RadioGroup,
2248
2248
  Zr as Segmented,
2249
- Bt as Select,
2249
+ $t as Select,
2250
2250
  qe as SelectContent,
2251
2251
  Xr as SelectGroup,
2252
2252
  ve as SelectItem,
2253
2253
  wr as SelectLabel,
2254
2254
  Fe as SelectTrigger,
2255
- At as SelectValue,
2255
+ Bt as SelectValue,
2256
2256
  Tr as Separator,
2257
2257
  en as Skeleton,
2258
2258
  Fa as Spinner,
@@ -2264,7 +2264,7 @@ export {
2264
2264
  qr as TableHead,
2265
2265
  Fr as TableHeader,
2266
2266
  Xa as TablePanel,
2267
- ut as TableRow,
2267
+ mt as TableRow,
2268
2268
  xe as TableSurface,
2269
2269
  an as Tooltip,
2270
2270
  Mr as TooltipContent,