@snowpact/react-tanstack-query-table 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -24,11 +24,11 @@ declare interface ActionCellProps<T, K> {
24
24
  export declare type BaseAction = {
25
25
  icon: IconComponent;
26
26
  label: string;
27
- className?: string;
28
27
  display?: 'button' | 'dropdown';
29
28
  hidden?: boolean;
30
29
  disabled?: boolean;
31
30
  showLabel?: boolean;
31
+ className?: string;
32
32
  };
33
33
 
34
34
  /**
@@ -359,7 +359,7 @@ export declare interface SortButtonProps {
359
359
  column: Column<any, any>;
360
360
  }
361
361
 
362
- export declare type TableAction<T, K = unknown> = ClickAction<T> | LinkAction<T> | EndpointAction<T, K> | ((item: T) => ClickAction<T>) | ((item: T) => LinkAction<T>) | ((item: T) => EndpointAction<T, K>);
362
+ export declare type TableAction<T, K = unknown> = ClickAction<T> | LinkAction<T> | EndpointAction<T, K> | ((item: T) => ClickAction<T> | LinkAction<T> | EndpointAction<T, K>);
363
363
 
364
364
  /** Tooltip component rendered via portal */
365
365
  export declare function Tooltip({ label, x, y }: TooltipState): ReactPortal;
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ const le = ({ children: e, ...t }) => /* @__PURE__ */ p(
48
48
  /* @__PURE__ */ p("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
49
49
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
50
50
  ] }), Ws = Wn;
51
- function X(...e) {
51
+ function q(...e) {
52
52
  const t = [], n = (o) => {
53
53
  if (o) {
54
54
  if (typeof o == "string")
@@ -800,7 +800,7 @@ const ta = (e, t, n, o) => {
800
800
  onMouseLeave: o,
801
801
  disabled: r,
802
802
  title: s,
803
- className: X("snow-btn", i),
803
+ className: q("snow-btn", i),
804
804
  ...c,
805
805
  children: e
806
806
  }
@@ -834,7 +834,7 @@ function jt(...e) {
834
834
  };
835
835
  };
836
836
  }
837
- function Z(...e) {
837
+ function X(...e) {
838
838
  return d.useCallback(jt(...e), e);
839
839
  }
840
840
  function Ze(e, t = []) {
@@ -1020,14 +1020,14 @@ function Un(e) {
1020
1020
  a.displayName = t;
1021
1021
  const s = e + "CollectionSlot", c = /* @__PURE__ */ gt(s), u = Ke.forwardRef(
1022
1022
  (m, v) => {
1023
- const { scope: b, children: C } = m, y = i(s, b), S = Z(v, y.collectionRef);
1023
+ const { scope: b, children: C } = m, y = i(s, b), S = X(v, y.collectionRef);
1024
1024
  return /* @__PURE__ */ p(c, { ref: S, children: C });
1025
1025
  }
1026
1026
  );
1027
1027
  u.displayName = s;
1028
1028
  const l = e + "CollectionItemSlot", f = "data-radix-collection-item", h = /* @__PURE__ */ gt(l), g = Ke.forwardRef(
1029
1029
  (m, v) => {
1030
- const { scope: b, children: C, ...y } = m, S = Ke.useRef(null), R = Z(v, S), A = i(l, b);
1030
+ const { scope: b, children: C, ...y } = m, S = Ke.useRef(null), R = X(v, S), A = i(l, b);
1031
1031
  return Ke.useEffect(() => (A.itemMap.set(S, { ref: S, ...y }), () => void A.itemMap.delete(S))), /* @__PURE__ */ p(h, { [f]: "", ref: R, children: C });
1032
1032
  }
1033
1033
  );
@@ -1086,7 +1086,7 @@ var va = "DismissableLayer", Pn = "dismissableLayer.update", wa = "dismissableLa
1086
1086
  onInteractOutside: a,
1087
1087
  onDismiss: s,
1088
1088
  ...c
1089
- } = e, u = d.useContext(tr), [l, f] = d.useState(null), h = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => f(E)), m = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(v), C = l ? m.indexOf(l) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= b, R = Sa((E) => {
1089
+ } = e, u = d.useContext(tr), [l, f] = d.useState(null), h = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = X(t, (E) => f(E)), m = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(v), C = l ? m.indexOf(l) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= b, R = Sa((E) => {
1090
1090
  const x = E.target, I = [...u.branches].some((T) => T.contains(x));
1091
1091
  !S || I || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
1092
1092
  }, h), A = xa((E) => {
@@ -1126,7 +1126,7 @@ var va = "DismissableLayer", Pn = "dismissableLayer.update", wa = "dismissableLa
1126
1126
  );
1127
1127
  Hn.displayName = va;
1128
1128
  var ba = "DismissableLayerBranch", Ca = d.forwardRef((e, t) => {
1129
- const n = d.useContext(tr), o = d.useRef(null), r = Z(t, o);
1129
+ const n = d.useContext(tr), o = d.useRef(null), r = X(t, o);
1130
1130
  return d.useEffect(() => {
1131
1131
  const i = o.current;
1132
1132
  if (i)
@@ -1208,7 +1208,7 @@ var mn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Eo
1208
1208
  onMountAutoFocus: r,
1209
1209
  onUnmountAutoFocus: i,
1210
1210
  ...a
1211
- } = e, [s, c] = d.useState(null), u = Me(r), l = Me(i), f = d.useRef(null), h = Z(t, (m) => c(m)), g = d.useRef({
1211
+ } = e, [s, c] = d.useState(null), u = Me(r), l = Me(i), f = d.useRef(null), h = X(t, (m) => c(m)), g = d.useRef({
1212
1212
  paused: !1,
1213
1213
  pause() {
1214
1214
  this.paused = !0;
@@ -2694,7 +2694,7 @@ var qn = "Popper", [vr, Qt] = Ze(qn), [zc, wr] = vr(qn), yr = (e) => {
2694
2694
  yr.displayName = qn;
2695
2695
  var br = "PopperAnchor", Cr = d.forwardRef(
2696
2696
  (e, t) => {
2697
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = wr(br, n), a = d.useRef(null), s = Z(t, a), c = d.useRef(null);
2697
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = wr(br, n), a = d.useRef(null), s = X(t, a), c = d.useRef(null);
2698
2698
  return d.useEffect(() => {
2699
2699
  const u = c.current;
2700
2700
  c.current = (o == null ? void 0 : o.current) || a.current, u !== c.current && i.onAnchorChange(c.current);
@@ -2720,7 +2720,7 @@ var Jn = "PopperContent", [jc, Yc] = vr(Jn), Sr = d.forwardRef(
2720
2720
  updatePositionStrategy: g = "optimized",
2721
2721
  onPlaced: w,
2722
2722
  ...m
2723
- } = e, v = wr(Jn, n), [b, C] = d.useState(null), y = Z(t, (se) => C(se)), [S, R] = d.useState(null), A = Gc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), T = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, D = Array.isArray(u) ? u : [u], L = D.length > 0, $ = {
2723
+ } = e, v = wr(Jn, n), [b, C] = d.useState(null), y = X(t, (se) => C(se)), [S, R] = d.useState(null), A = Gc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), T = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, D = Array.isArray(u) ? u : [u], L = D.length > 0, $ = {
2724
2724
  padding: T,
2725
2725
  boundary: D.filter(Zc),
2726
2726
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2897,7 +2897,7 @@ function Qc(e, t) {
2897
2897
  return d.useReducer((n, o) => t[n][o] ?? n, e);
2898
2898
  }
2899
2899
  var at = (e) => {
2900
- const { present: t, children: n } = e, o = el(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = Z(o.ref, tl(r));
2900
+ const { present: t, children: n } = e, o = el(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = X(o.ref, tl(r));
2901
2901
  return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: i }) : null;
2902
2902
  };
2903
2903
  at.displayName = "Presence";
@@ -2977,7 +2977,7 @@ var al = d.forwardRef((e, t) => {
2977
2977
  onEntryFocus: u,
2978
2978
  preventScrollOnEntryFocus: l = !1,
2979
2979
  ...f
2980
- } = e, h = d.useRef(null), g = Z(t, h), w = Yt(i), [m, v] = mt({
2980
+ } = e, h = d.useRef(null), g = X(t, h), w = Yt(i), [m, v] = mt({
2981
2981
  prop: a,
2982
2982
  defaultProp: s ?? null,
2983
2983
  onChange: c,
@@ -3708,7 +3708,7 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
3708
3708
  }
3709
3709
  ), cu = d.forwardRef(
3710
3710
  (e, t) => {
3711
- const n = Je(ve, e.__scopeMenu), o = d.useRef(null), r = Z(t, o);
3711
+ const n = Je(ve, e.__scopeMenu), o = d.useRef(null), r = X(t, o);
3712
3712
  return d.useEffect(() => {
3713
3713
  const i = o.current;
3714
3714
  if (i) return $r(i);
@@ -3759,7 +3759,7 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
3759
3759
  onDismiss: g,
3760
3760
  disableOutsideScroll: w,
3761
3761
  ...m
3762
- } = e, v = Je(ve, n), b = Et(ve, n), C = nn(n), y = Yr(n), S = tu(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), I = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), G = w ? eo : d.Fragment, O = w ? { as: uu, allowPinchZoom: !0 } : void 0, B = (P) => {
3762
+ } = e, v = Je(ve, n), b = Et(ve, n), C = nn(n), y = Yr(n), S = tu(n), [R, A] = d.useState(null), E = d.useRef(null), x = X(t, E, v.onContentChange), I = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), G = w ? eo : d.Fragment, O = w ? { as: uu, allowPinchZoom: !0 } : void 0, B = (P) => {
3763
3763
  var M, W;
3764
3764
  const j = T.current + P, J = S().filter((K) => !K.disabled), oe = document.activeElement, we = (M = J.find((K) => K.ref.current === oe)) == null ? void 0 : M.textValue, de = J.map((K) => K.textValue), ye = Su(de, j, we), ie = (W = J.find((K) => K.textValue === ye)) == null ? void 0 : W.ref.current;
3765
3765
  (function K(H) {
@@ -3896,7 +3896,7 @@ var fu = "MenuLabel", Qr = d.forwardRef(
3896
3896
  Qr.displayName = fu;
3897
3897
  var Ut = "MenuItem", Ko = "menu.itemSelect", on = d.forwardRef(
3898
3898
  (e, t) => {
3899
- const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = Et(Ut, e.__scopeMenu), s = oo(Ut, e.__scopeMenu), c = Z(t, i), u = d.useRef(!1), l = () => {
3899
+ const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = Et(Ut, e.__scopeMenu), s = oo(Ut, e.__scopeMenu), c = X(t, i), u = d.useRef(!1), l = () => {
3900
3900
  const f = i.current;
3901
3901
  if (!n && f) {
3902
3902
  const h = new CustomEvent(Ko, { bubbles: !0, cancelable: !0 });
@@ -3929,7 +3929,7 @@ var Ut = "MenuItem", Ko = "menu.itemSelect", on = d.forwardRef(
3929
3929
  on.displayName = Ut;
3930
3930
  var ei = d.forwardRef(
3931
3931
  (e, t) => {
3932
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = oo(Ut, n), s = Yr(n), c = d.useRef(null), u = Z(t, c), [l, f] = d.useState(!1), [h, g] = d.useState("");
3932
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = oo(Ut, n), s = Yr(n), c = d.useRef(null), u = X(t, c), [l, f] = d.useState(!1), [h, g] = d.useState("");
3933
3933
  return d.useEffect(() => {
3934
3934
  const w = c.current;
3935
3935
  w && g((w.textContent ?? "").trim());
@@ -4139,7 +4139,7 @@ var yu = "MenuSub", [Gf, ui] = qe(yu), ft = "MenuSubTrigger", di = d.forwardRef(
4139
4139
  di.displayName = ft;
4140
4140
  var fi = "MenuSubContent", pi = d.forwardRef(
4141
4141
  (e, t) => {
4142
- const n = Zr(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(ve, e.__scopeMenu), a = Et(ve, e.__scopeMenu), s = ui(fi, e.__scopeMenu), c = d.useRef(null), u = Z(t, c);
4142
+ const n = Zr(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(ve, e.__scopeMenu), a = Et(ve, e.__scopeMenu), s = ui(fi, e.__scopeMenu), c = d.useRef(null), u = X(t, c);
4143
4143
  return /* @__PURE__ */ p(yt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(at, { present: o || i.open, children: /* @__PURE__ */ p(yt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4144
4144
  ro,
4145
4145
  {
@@ -4405,7 +4405,7 @@ function vd({ align: e = "end", sideOffset: t = 4, className: n, children: o })
4405
4405
  {
4406
4406
  align: e,
4407
4407
  sideOffset: t,
4408
- className: X("snow-dropdown-content", n),
4408
+ className: q("snow-dropdown-content", n),
4409
4409
  children: o
4410
4410
  }
4411
4411
  ) });
@@ -4417,7 +4417,7 @@ function wd({ onClick: e, disabled: t, className: n, asChild: o, children: r })
4417
4417
  onClick: e,
4418
4418
  disabled: t,
4419
4419
  asChild: o,
4420
- className: X("snow-dropdown-item", n),
4420
+ className: q("snow-dropdown-item", n),
4421
4421
  children: r
4422
4422
  }
4423
4423
  );
@@ -4428,7 +4428,7 @@ function yd({ checked: e, onCheckedChange: t, className: n, children: o }) {
4428
4428
  {
4429
4429
  checked: e,
4430
4430
  onCheckedChange: t,
4431
- className: X("snow-dropdown-checkbox-item", n),
4431
+ className: q("snow-dropdown-checkbox-item", n),
4432
4432
  children: [
4433
4433
  /* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(pd, { children: /* @__PURE__ */ p(Yo, { className: "snow-size-4" }) }) }),
4434
4434
  o
@@ -4554,7 +4554,7 @@ function Pd({ table: e }) {
4554
4554
  ] });
4555
4555
  }
4556
4556
  function Td({ className: e }) {
4557
- return /* @__PURE__ */ p("div", { className: X("snow-skeleton", e) });
4557
+ return /* @__PURE__ */ p("div", { className: q("snow-skeleton", e) });
4558
4558
  }
4559
4559
  function Go(e, [t, n]) {
4560
4560
  return Math.min(n, Math.max(t, e));
@@ -4678,7 +4678,7 @@ var _d = [" ", "Enter", "ArrowUp", "ArrowDown"], Od = [" ", "Enter"], Ye = "Sele
4678
4678
  Ii.displayName = Ye;
4679
4679
  var Mi = "SelectTrigger", Ni = d.forwardRef(
4680
4680
  (e, t) => {
4681
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = cn(n), a = Ve(Mi, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), u = an(n), l = d.useRef("touch"), [f, h, g] = qi((m) => {
4681
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = cn(n), a = Ve(Mi, n), s = a.disabled || o, c = X(t, a.onTriggerChange), u = an(n), l = d.useRef("touch"), [f, h, g] = qi((m) => {
4682
4682
  const v = u().filter((y) => !y.disabled), b = v.find((y) => y.value === a.value), C = Ji(v, m, b);
4683
4683
  C !== void 0 && a.onValueChange(C.value);
4684
4684
  }), w = (m) => {
@@ -4722,7 +4722,7 @@ var Mi = "SelectTrigger", Ni = d.forwardRef(
4722
4722
  Ni.displayName = Mi;
4723
4723
  var _i = "SelectValue", Oi = d.forwardRef(
4724
4724
  (e, t) => {
4725
- const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, c = Ve(_i, n), { onValueNodeHasChildrenChange: u } = c, l = i !== void 0, f = Z(t, c.onValueNodeChange);
4725
+ const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, c = Ve(_i, n), { onValueNodeHasChildrenChange: u } = c, l = i !== void 0, f = X(t, c.onValueNodeChange);
4726
4726
  return re(() => {
4727
4727
  u(l);
4728
4728
  }, [u, l]), /* @__PURE__ */ p(
@@ -4784,7 +4784,7 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
4784
4784
  avoidCollisions: v,
4785
4785
  //
4786
4786
  ...b
4787
- } = e, C = Ve(Xe, n), [y, S] = d.useState(null), [R, A] = d.useState(null), E = Z(t, (M) => S(M)), [x, I] = d.useState(null), [T, D] = d.useState(
4787
+ } = e, C = Ve(Xe, n), [y, S] = d.useState(null), [R, A] = d.useState(null), E = X(t, (M) => S(M)), [x, I] = d.useState(null), [T, D] = d.useState(
4788
4788
  null
4789
4789
  ), L = an(n), [$, F] = d.useState(!1), G = d.useRef(!1);
4790
4790
  d.useEffect(() => {
@@ -4934,7 +4934,7 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
4934
4934
  );
4935
4935
  $i.displayName = Bd;
4936
4936
  var Ud = "SelectItemAlignedPosition", Vi = d.forwardRef((e, t) => {
4937
- const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ve(Xe, n), a = Be(Xe, n), [s, c] = d.useState(null), [u, l] = d.useState(null), f = Z(t, (E) => l(E)), h = an(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: C } = a, y = d.useCallback(() => {
4937
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ve(Xe, n), a = Be(Xe, n), [s, c] = d.useState(null), [u, l] = d.useState(null), f = X(t, (E) => l(E)), h = an(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: C } = a, y = d.useCallback(() => {
4938
4938
  if (i.trigger && i.valueNode && s && u && m && v && b) {
4939
4939
  const E = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(), T = b.getBoundingClientRect();
4940
4940
  if (i.dir !== "rtl") {
@@ -5069,7 +5069,7 @@ var Hd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
5069
5069
  Fn.displayName = Hd;
5070
5070
  var [Kd, co] = lt(Xe, {}), Ln = "SelectViewport", Bi = d.forwardRef(
5071
5071
  (e, t) => {
5072
- const { __scopeSelect: n, nonce: o, ...r } = e, i = Be(Ln, n), a = co(Ln, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
5072
+ const { __scopeSelect: n, nonce: o, ...r } = e, i = Be(Ln, n), a = co(Ln, n), s = X(t, i.onViewportChange), c = d.useRef(0);
5073
5073
  return /* @__PURE__ */ k(Gt, { children: [
5074
5074
  /* @__PURE__ */ p(
5075
5075
  "style",
@@ -5142,7 +5142,7 @@ var Kt = "SelectItem", [Xd, Hi] = lt(Kt), Ki = d.forwardRef(
5142
5142
  disabled: r = !1,
5143
5143
  textValue: i,
5144
5144
  ...a
5145
- } = e, s = Ve(Kt, n), c = Be(Kt, n), u = s.value === o, [l, f] = d.useState(i ?? ""), [h, g] = d.useState(!1), w = Z(
5145
+ } = e, s = Ve(Kt, n), c = Be(Kt, n), u = s.value === o, [l, f] = d.useState(i ?? ""), [h, g] = d.useState(!1), w = X(
5146
5146
  t,
5147
5147
  (C) => {
5148
5148
  var y;
@@ -5220,7 +5220,7 @@ var Kt = "SelectItem", [Xd, Hi] = lt(Kt), Ki = d.forwardRef(
5220
5220
  Ki.displayName = Kt;
5221
5221
  var pt = "SelectItemText", Gi = d.forwardRef(
5222
5222
  (e, t) => {
5223
- const { __scopeSelect: n, className: o, style: r, ...i } = e, a = Ve(pt, n), s = Be(pt, n), c = Hi(pt, n), u = Ld(pt, n), [l, f] = d.useState(null), h = Z(
5223
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, a = Ve(pt, n), s = Be(pt, n), c = Hi(pt, n), u = Ld(pt, n), [l, f] = d.useState(null), h = X(
5224
5224
  t,
5225
5225
  (b) => f(b),
5226
5226
  c.onItemTextChange,
@@ -5247,7 +5247,7 @@ var zi = "SelectItemIndicator", ji = d.forwardRef(
5247
5247
  );
5248
5248
  ji.displayName = zi;
5249
5249
  var $n = "SelectScrollUpButton", Zd = d.forwardRef((e, t) => {
5250
- const n = Be($n, e.__scopeSelect), o = co($n, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5250
+ const n = Be($n, e.__scopeSelect), o = co($n, e.__scopeSelect), [r, i] = d.useState(!1), a = X(t, o.onScrollButtonChange);
5251
5251
  return re(() => {
5252
5252
  if (n.viewport && n.isPositioned) {
5253
5253
  let s = function() {
@@ -5271,7 +5271,7 @@ var $n = "SelectScrollUpButton", Zd = d.forwardRef((e, t) => {
5271
5271
  });
5272
5272
  Zd.displayName = $n;
5273
5273
  var Vn = "SelectScrollDownButton", qd = d.forwardRef((e, t) => {
5274
- const n = Be(Vn, e.__scopeSelect), o = co(Vn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5274
+ const n = Be(Vn, e.__scopeSelect), o = co(Vn, e.__scopeSelect), [r, i] = d.useState(!1), a = X(t, o.onScrollButtonChange);
5275
5275
  return re(() => {
5276
5276
  if (n.viewport && n.isPositioned) {
5277
5277
  let s = function() {
@@ -5337,7 +5337,7 @@ var Bn = "SelectArrow", ef = d.forwardRef(
5337
5337
  ef.displayName = Bn;
5338
5338
  var tf = "SelectBubbleInput", Xi = d.forwardRef(
5339
5339
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5340
- const r = d.useRef(null), i = Z(o, r), a = Id(t);
5340
+ const r = d.useRef(null), i = X(o, r), a = Id(t);
5341
5341
  return d.useEffect(() => {
5342
5342
  const s = r.current;
5343
5343
  if (!s) return;
@@ -5395,7 +5395,7 @@ function hf({ value: e, onValueChange: t, children: n }) {
5395
5395
  return /* @__PURE__ */ p(of, { value: e, onValueChange: t, children: n });
5396
5396
  }
5397
5397
  function mf({ className: e, children: t }) {
5398
- return /* @__PURE__ */ k(rf, { className: X("snow-select-trigger", e), children: [
5398
+ return /* @__PURE__ */ k(rf, { className: q("snow-select-trigger", e), children: [
5399
5399
  t,
5400
5400
  /* @__PURE__ */ p(af, { asChild: !0, children: /* @__PURE__ */ p(Ws, { className: "snow-select-icon" }) })
5401
5401
  ] });
@@ -5644,7 +5644,7 @@ function Pf({ value: e, onValueChange: t, children: n }) {
5644
5644
  return /* @__PURE__ */ p(Ef, { value: e, onValueChange: t, children: n });
5645
5645
  }
5646
5646
  function Tf({ children: e, className: t }) {
5647
- return /* @__PURE__ */ p(Rf, { className: X("snow-tabs-list", t), children: e });
5647
+ return /* @__PURE__ */ p(Rf, { className: q("snow-tabs-list", t), children: e });
5648
5648
  }
5649
5649
  function If({ value: e, children: t }) {
5650
5650
  return /* @__PURE__ */ p(Af, { value: e, className: "snow-tabs-trigger", children: t });
@@ -5672,7 +5672,7 @@ const uo = jo(
5672
5672
  onChange: t,
5673
5673
  onKeyDown: n,
5674
5674
  placeholder: o,
5675
- className: X("snow-input", a && "snow-state-active", r),
5675
+ className: q("snow-input", a && "snow-state-active", r),
5676
5676
  ...s
5677
5677
  }
5678
5678
  )
@@ -5702,7 +5702,7 @@ function _f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5702
5702
  isActive: i
5703
5703
  }
5704
5704
  ),
5705
- /* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(Xo, { className: X(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
5705
+ /* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(Xo, { className: q(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
5706
5706
  ] }) });
5707
5707
  }
5708
5708
  function Of({
@@ -5729,9 +5729,9 @@ function Of({
5729
5729
  if (e.options.length === 0) return null;
5730
5730
  const f = () => a === 0 ? e.label : a === 1 ? s[0] : a === 2 ? s.join(", ") : `${s.slice(0, 2).join(", ")} +${a - 2}`;
5731
5731
  return /* @__PURE__ */ k(te.Root, { children: [
5732
- /* @__PURE__ */ p(te.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Pe, { className: X("snow-filter-btn snow-w-full snow-justify-between", a > 0 && "snow-state-active"), children: [
5732
+ /* @__PURE__ */ p(te.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Pe, { className: q("snow-filter-btn snow-w-full snow-justify-between", a > 0 && "snow-state-active"), children: [
5733
5733
  /* @__PURE__ */ k("div", { className: "snow-filter-btn-content", children: [
5734
- e.multipleSelection ? /* @__PURE__ */ p(Ls, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Fs, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5734
+ e.multipleSelection ? /* @__PURE__ */ p(Ls, { className: q("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Fs, { className: q("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5735
5735
  /* @__PURE__ */ p("span", { className: "snow-truncate", children: f() })
5736
5736
  ] }),
5737
5737
  /* @__PURE__ */ p(Wn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
@@ -5829,9 +5829,9 @@ function cs({
5829
5829
  ht(() => {
5830
5830
  W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
5831
5831
  }, [m, dn, W]);
5832
- const ne = r === "server", us = s !== void 0 ? Math.ceil(s / M.pageSize) : void 0, ds = !ne || s !== void 0, fn = Se(() => Object.entries(V).map(([Y, Q]) => ({ id: Y, value: Q })), [V]), fs = Ce((Y, Q, q) => {
5832
+ const ne = r === "server", us = s !== void 0 ? Math.ceil(s / M.pageSize) : void 0, ds = !ne || s !== void 0, fn = Se(() => Object.entries(V).map(([Y, Q]) => ({ id: Y, value: Q })), [V]), fs = Ce((Y, Q, Z) => {
5833
5833
  const ge = Y.getValue(Q);
5834
- return q.includes(String(ge));
5834
+ return Z.includes(String(ge));
5835
5835
  }, []), Oe = Rs({
5836
5836
  data: e,
5837
5837
  columns: t,
@@ -5863,8 +5863,8 @@ function cs({
5863
5863
  globalFilterFn: l ? ta : void 0
5864
5864
  } : {}
5865
5865
  }), ps = (Y, Q) => {
5866
- const q = String(Y), ge = { ...V };
5867
- Q.length === 0 ? delete ge[q] : ge[q] = Q, z(ge);
5866
+ const Z = String(Y), ge = { ...V };
5867
+ Q.length === 0 ? delete ge[Z] : ge[Z] = Q, z(ge);
5868
5868
  }, hs = l || I || f && f.length > 0 || A, ms = Se(() => ne ? e.length : Oe.getRowModel().rows.length, [ne, e.length, Oe, K, fn]), gs = Se(() => ne && s !== void 0 ? s : Oe.getFilteredRowModel().rows.length, [ne, s, Oe, e.length, K, fn]);
5869
5869
  return /* @__PURE__ */ k("div", { className: "snow-table-container snow-table-root", "data-testid": "datatable", children: [
5870
5870
  o && !n && /* @__PURE__ */ p("div", { className: "snow-table-loading-overlay" }),
@@ -5910,23 +5910,23 @@ function cs({
5910
5910
  /* @__PURE__ */ p(
5911
5911
  "div",
5912
5912
  {
5913
- className: X(
5913
+ className: q(
5914
5914
  "snow-table-wrapper",
5915
5915
  $ && "snow-responsive-container"
5916
5916
  ),
5917
5917
  children: /* @__PURE__ */ k("table", { className: "snow-table", "data-testid": "datatable-table", children: [
5918
- /* @__PURE__ */ p("thead", { className: X("snow-table-header", $ && "snow-responsive-thead"), children: Oe.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((Q) => {
5918
+ /* @__PURE__ */ p("thead", { className: q("snow-table-header", $ && "snow-responsive-thead"), children: Oe.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((Q) => {
5919
5919
  var ge;
5920
- const q = (ge = Q.column.columnDef) == null ? void 0 : ge.meta;
5920
+ const Z = (ge = Q.column.columnDef) == null ? void 0 : ge.meta;
5921
5921
  return /* @__PURE__ */ p(
5922
5922
  "th",
5923
5923
  {
5924
- className: X("snow-table-header-cell", y && "snow-cursor-pointer"),
5924
+ className: q("snow-table-header-cell", y && "snow-cursor-pointer"),
5925
5925
  onClick: Q.column.getToggleSortingHandler(),
5926
5926
  style: {
5927
- "--snow-col-width": q == null ? void 0 : q.width,
5928
- "--snow-col-min-width": q == null ? void 0 : q.minWidth,
5929
- "--snow-col-max-width": q == null ? void 0 : q.maxWidth
5927
+ "--snow-col-width": Z == null ? void 0 : Z.width,
5928
+ "--snow-col-min-width": Z == null ? void 0 : Z.minWidth,
5929
+ "--snow-col-max-width": Z == null ? void 0 : Z.maxWidth
5930
5930
  },
5931
5931
  children: Q.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
5932
5932
  /* @__PURE__ */ p("h3", { children: ho(Q.column.columnDef.header, Q.getContext()) }),
@@ -5936,16 +5936,16 @@ function cs({
5936
5936
  Q.id
5937
5937
  );
5938
5938
  }) }, Y.id)) }),
5939
- n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: M.pageSize > 10 ? 10 : M.pageSize }).map((Y, Q) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": Q % 2 === 1 }), children: t.map((q, ge) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Td, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${ge}`)) }, Q)) }) : ms > 0 ? /* @__PURE__ */ p(
5939
+ n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: M.pageSize > 10 ? 10 : M.pageSize }).map((Y, Q) => /* @__PURE__ */ p("tr", { className: q({ "snow-table-row-alternate": Q % 2 === 1 }), children: t.map((Z, ge) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Td, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${ge}`)) }, Q)) }) : ms > 0 ? /* @__PURE__ */ p(
5940
5940
  "tbody",
5941
5941
  {
5942
- className: X("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
5942
+ className: q("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
5943
5943
  "data-testid": "datatable-body",
5944
5944
  children: Oe.getRowModel().rows.map((Y, Q) => /* @__PURE__ */ p(
5945
5945
  "tr",
5946
5946
  {
5947
5947
  "data-testid": `datatable-row-${Y.id}`,
5948
- className: X(
5948
+ className: q(
5949
5949
  "snow-table-row snow-transition-all snow-duration-300 snow-ease-in-out",
5950
5950
  {
5951
5951
  "snow-table-row-alternate": Q % 2 === 1,
@@ -5953,18 +5953,18 @@ function cs({
5953
5953
  },
5954
5954
  $ && "snow-responsive-row"
5955
5955
  ),
5956
- children: Y.getVisibleCells().map((q, ge) => {
5956
+ children: Y.getVisibleCells().map((Z, ge) => {
5957
5957
  var po;
5958
- const vs = typeof q.column.columnDef.header == "string" ? q.column.columnDef.header : q.column.id, ws = ge === Y.getVisibleCells().length - 1, ee = (po = q.column.columnDef) == null ? void 0 : po.meta;
5958
+ const vs = typeof Z.column.columnDef.header == "string" ? Z.column.columnDef.header : Z.column.id, ws = ge === Y.getVisibleCells().length - 1, ee = (po = Z.column.columnDef) == null ? void 0 : po.meta;
5959
5959
  return /* @__PURE__ */ k(
5960
5960
  "td",
5961
5961
  {
5962
5962
  onClick: () => E && !(ee != null && ee.disableColumnClick) && E(Y.original),
5963
- className: X(
5963
+ className: q(
5964
5964
  E && !(ee != null && ee.disableColumnClick) && "snow-cursor-pointer",
5965
5965
  (ee == null ? void 0 : ee.center) && "snow-align-middle snow-text-center",
5966
5966
  (ee == null ? void 0 : ee.maxWidth) !== void 0 && "snow-cell-truncate",
5967
- $ ? X("snow-responsive-cell", ws && "snow-responsive-cell-last") : "snow-table-cell"
5967
+ $ ? q("snow-responsive-cell", ws && "snow-responsive-cell-last") : "snow-table-cell"
5968
5968
  ),
5969
5969
  style: {
5970
5970
  "--snow-col-width": ee == null ? void 0 : ee.width,
@@ -5973,10 +5973,10 @@ function cs({
5973
5973
  },
5974
5974
  children: [
5975
5975
  $ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: vs }),
5976
- /* @__PURE__ */ p("span", { className: X($ && "snow-responsive-cell-content"), children: ho(q.column.columnDef.cell, q.getContext()) })
5976
+ /* @__PURE__ */ p("span", { className: q($ && "snow-responsive-cell-content"), children: ho(Z.column.columnDef.cell, Z.getContext()) })
5977
5977
  ]
5978
5978
  },
5979
- q.id
5979
+ Z.id
5980
5980
  );
5981
5981
  })
5982
5982
  },
@@ -6055,7 +6055,7 @@ function Lf({ item: e, actions: t, onAction: n }) {
6055
6055
  to: g,
6056
6056
  target: h.external ? "_blank" : void 0,
6057
6057
  rel: h.external ? "noopener noreferrer" : void 0,
6058
- className: X("snow-action-link", l.showLabel ? "snow-px-3" : "snow-w-8"),
6058
+ className: q("snow-action-link", l.showLabel ? "snow-px-3" : "snow-w-8", l.className),
6059
6059
  disabled: l.disabled,
6060
6060
  children: [
6061
6061
  /* @__PURE__ */ p(f, { className: "snow-size-4" }),
@@ -6070,7 +6070,7 @@ function Lf({ item: e, actions: t, onAction: n }) {
6070
6070
  return /* @__PURE__ */ k(
6071
6071
  Pe,
6072
6072
  {
6073
- className: X("snow-action-btn", l.showLabel ? "" : "snow-btn-icon", l.className),
6073
+ className: q("snow-action-btn", l.showLabel ? "" : "snow-btn-icon", l.className),
6074
6074
  onClick: () => s(l),
6075
6075
  disabled: l.disabled,
6076
6076
  onMouseEnter: (h) => r.show(l.label, h.currentTarget),
@@ -6097,7 +6097,7 @@ function Lf({ item: e, actions: t, onAction: n }) {
6097
6097
  rel: h.external ? "noopener noreferrer" : void 0,
6098
6098
  className: l.className,
6099
6099
  children: [
6100
- /* @__PURE__ */ p(f, { className: X("snow-mr-2 snow-size-4", l.className) }),
6100
+ /* @__PURE__ */ p(f, { className: "snow-mr-2 snow-size-4" }),
6101
6101
  l.label
6102
6102
  ]
6103
6103
  }
@@ -6110,7 +6110,7 @@ function Lf({ item: e, actions: t, onAction: n }) {
6110
6110
  disabled: l.disabled,
6111
6111
  className: l.className,
6112
6112
  children: [
6113
- /* @__PURE__ */ p(f, { className: X("snow-mr-2 snow-size-4", l.className) }),
6113
+ /* @__PURE__ */ p(f, { className: "snow-mr-2 snow-size-4" }),
6114
6114
  l.label
6115
6115
  ]
6116
6116
  },