@rafal.lemieszewski/tide-ui 0.84.2 → 0.84.3

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.
Files changed (96) hide show
  1. package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
  2. package/dist/cjs/components/fundamental/country-dropdown.cjs +1 -1
  3. package/dist/cjs/components/fundamental/icon.cjs +1 -1
  4. package/dist/cjs/components/fundamental/tree.cjs +1 -1
  5. package/dist/cjs/components/product/data-table.cjs +1 -1
  6. package/dist/cjs/lib/index.cjs +1 -1
  7. package/dist/es/components/fundamental/accordion.js +3 -3
  8. package/dist/es/components/fundamental/alert-dialog.js +5 -5
  9. package/dist/es/components/fundamental/alert.js +3 -3
  10. package/dist/es/components/fundamental/avatar-group.js +1 -1
  11. package/dist/es/components/fundamental/avatar.js +3 -3
  12. package/dist/es/components/fundamental/badge.js +1 -1
  13. package/dist/es/components/fundamental/breadcrumb.js +6 -6
  14. package/dist/es/components/fundamental/button-group.js +3 -3
  15. package/dist/es/components/fundamental/button.js +1 -1
  16. package/dist/es/components/fundamental/card.js +6 -6
  17. package/dist/es/components/fundamental/checkbox.js +1 -1
  18. package/dist/es/components/fundamental/collapsible.js +2 -2
  19. package/dist/es/components/fundamental/command.js +7 -7
  20. package/dist/es/components/fundamental/date-picker.js +2 -2
  21. package/dist/es/components/fundamental/dialog.js +3 -3
  22. package/dist/es/components/fundamental/drawer.js +4 -4
  23. package/dist/es/components/fundamental/dropdown-menu.js +25 -25
  24. package/dist/es/components/fundamental/empty.js +6 -6
  25. package/dist/es/components/fundamental/file-upload.js +9 -9
  26. package/dist/es/components/fundamental/form-field.js +15 -15
  27. package/dist/es/components/fundamental/hover-card.js +1 -1
  28. package/dist/es/components/fundamental/icon.js +115 -120
  29. package/dist/es/components/fundamental/input-group.js +6 -6
  30. package/dist/es/components/fundamental/input.js +1 -1
  31. package/dist/es/components/fundamental/kbd.js +2 -2
  32. package/dist/es/components/fundamental/label.js +1 -1
  33. package/dist/es/components/fundamental/month-picker.js +1 -1
  34. package/dist/es/components/fundamental/pagination.js +1 -1
  35. package/dist/es/components/fundamental/popover.js +1 -1
  36. package/dist/es/components/fundamental/progress.js +1 -1
  37. package/dist/es/components/fundamental/radio-group.js +2 -2
  38. package/dist/es/components/fundamental/scroll-area.js +2 -2
  39. package/dist/es/components/fundamental/select.js +5 -5
  40. package/dist/es/components/fundamental/separator.js +1 -1
  41. package/dist/es/components/fundamental/sheet.js +4 -4
  42. package/dist/es/components/fundamental/sidebar.js +25 -25
  43. package/dist/es/components/fundamental/skeleton.js +5 -5
  44. package/dist/es/components/fundamental/slider.js +1 -1
  45. package/dist/es/components/fundamental/spinner.js +5 -5
  46. package/dist/es/components/fundamental/switch.js +1 -1
  47. package/dist/es/components/fundamental/table.js +10 -10
  48. package/dist/es/components/fundamental/tabs.js +5 -5
  49. package/dist/es/components/fundamental/tag.js +2 -2
  50. package/dist/es/components/fundamental/text-link.js +1 -1
  51. package/dist/es/components/fundamental/textarea.js +1 -1
  52. package/dist/es/components/fundamental/toggle-group.js +2 -2
  53. package/dist/es/components/fundamental/toggle.js +1 -1
  54. package/dist/es/components/fundamental/tooltip.js +1 -1
  55. package/dist/es/components/fundamental/tree.js +2 -2
  56. package/dist/es/components/product/activity-log.js +12 -12
  57. package/dist/es/components/product/attributes-list.js +13 -13
  58. package/dist/es/components/product/bookmarks.js +2 -2
  59. package/dist/es/components/product/data-table.js +365 -351
  60. package/dist/es/components/product/filters.js +3 -3
  61. package/dist/es/components/product/fixture-status.js +1 -1
  62. package/dist/es/lib/index.js +328 -368
  63. package/dist/types/bookmarks.d.ts +2 -0
  64. package/dist/types/calendar.d.ts +2 -0
  65. package/dist/types/chart.d.ts +2 -0
  66. package/dist/types/components/core-index.d.cts +135 -0
  67. package/dist/types/components/core-index.d.ts +135 -0
  68. package/dist/types/components/fundamental/avatar.d.ts +3 -3
  69. package/dist/types/components/fundamental/badge.d.ts +2 -2
  70. package/dist/types/components/fundamental/button-group.d.ts +1 -1
  71. package/dist/types/components/fundamental/calendar.d.cts +7 -0
  72. package/dist/types/components/fundamental/chart.d.cts +95 -0
  73. package/dist/types/components/fundamental/command.d.ts +1 -1
  74. package/dist/types/components/fundamental/country-dropdown.d.cts +34 -0
  75. package/dist/types/components/fundamental/date-picker.d.cts +30 -0
  76. package/dist/types/components/fundamental/form-field.d.ts +1 -1
  77. package/dist/types/components/fundamental/resizable.d.cts +23 -0
  78. package/dist/types/components/fundamental/resizable.d.ts +1 -1
  79. package/dist/types/components/fundamental/spinner.d.ts +1 -1
  80. package/dist/types/components/fundamental/table.d.ts +3 -3
  81. package/dist/types/components/product/bookmarks.d.cts +90 -0
  82. package/dist/types/components/product/data-table.d.cts +802 -0
  83. package/dist/types/components/product/filters.d.cts +124 -0
  84. package/dist/types/components/product/linked-chart.d.cts +22 -0
  85. package/dist/types/country-dropdown.d.ts +2 -0
  86. package/dist/types/data-table.d.ts +2 -0
  87. package/dist/types/date-picker.d.ts +2 -0
  88. package/dist/types/filters.d.ts +2 -0
  89. package/dist/types/index.d.ts +2 -0
  90. package/dist/types/lib/index.d.cts +104 -3
  91. package/dist/types/lib/index.d.ts +104 -3
  92. package/dist/types/linked-chart.d.ts +2 -0
  93. package/dist/types/resizable.d.ts +2 -0
  94. package/package.json +94 -12
  95. /package/dist/cjs/components/{index.cjs → core-index.cjs} +0 -0
  96. /package/dist/es/components/{index.js → core-index.js} +0 -0
@@ -1,26 +1,26 @@
1
- import { jsx as t, Fragment as ee, jsxs as v } from "react/jsx-runtime";
1
+ import { jsx as t, Fragment as ee, jsxs as b } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import { useReactTable as os, getFacetedMinMaxValues as as, getFacetedUniqueValues as ls, getFacetedRowModel as is, getGroupedRowModel as cs, getExpandedRowModel as ds, getSortedRowModel as us, getPaginationRowModel as fs, getFilteredRowModel as gs, getCoreRowModel as ms, flexRender as be } from "@tanstack/react-table";
4
- import { useReactTable as ko } from "@tanstack/react-table";
4
+ import { useReactTable as To } from "@tanstack/react-table";
5
5
  import { useSensors as hs, useSensor as wr, MouseSensor as ps, TouchSensor as vs, DndContext as bs, closestCenter as xs } from "@dnd-kit/core";
6
6
  import { SortableContext as ys, horizontalListSortingStrategy as Cs, arrayMove as ws, useSortable as Ss } from "@dnd-kit/sortable";
7
7
  import { CSS as Ns } from "@dnd-kit/utilities";
8
- import { cn as F } from "../../lib/utils.js";
8
+ import { cn as V } from "../../lib/utils.js";
9
9
  import { Button as Me } from "../fundamental/button.js";
10
10
  import { Input as ft } from "../fundamental/input.js";
11
11
  import { AutocompleteSearch as Rs } from "../fundamental/autocomplete-search.js";
12
12
  import { Table as Is, TableHeader as Es, TableRow as G, TableHead as ut, TableBody as Ds, TableCell as le } from "../fundamental/table.js";
13
- import { Select as zs, SelectTrigger as ks, SelectValue as Bs, SelectContent as Ts, SelectItem as Sr } from "../fundamental/select.js";
13
+ import { Select as ks, SelectTrigger as zs, SelectValue as Bs, SelectContent as Ts, SelectItem as Sr } from "../fundamental/select.js";
14
14
  import { Checkbox as gt } from "../fundamental/checkbox.js";
15
- import { Icon as H } from "../fundamental/icon.js";
15
+ import { Icon as W } from "../fundamental/icon.js";
16
16
  import { Badge as xe } from "../fundamental/badge.js";
17
- import { Popover as Pr, PopoverTrigger as Fr, PopoverContent as Vr } from "../fundamental/popover.js";
18
- import { Command as $r, CommandInput as jr, CommandList as Ar, CommandEmpty as Lr, CommandGroup as Or, CommandItem as Wr } from "../fundamental/command.js";
17
+ import { Popover as Pr, PopoverTrigger as Vr, PopoverContent as Fr } from "../fundamental/popover.js";
18
+ import { Command as $r, CommandInput as jr, CommandList as Ar, CommandEmpty as Lr, CommandGroup as Or, CommandItem as Hr } from "../fundamental/command.js";
19
19
  import { Pagination as Ms } from "../fundamental/pagination.js";
20
20
  import { Skeleton as Nr } from "../fundamental/skeleton.js";
21
21
  import { Spinner as qe } from "../fundamental/spinner.js";
22
22
  import { DataTableSettingsMenu as Ps } from "./data-table-settings-menu.js";
23
- import { TooltipProvider as Fs, Tooltip as Vs, TooltipTrigger as $s, TooltipContent as js } from "../fundamental/tooltip.js";
23
+ import { TooltipProvider as Vs, Tooltip as Fs, TooltipTrigger as $s, TooltipContent as js } from "../fundamental/tooltip.js";
24
24
  function As(c, s) {
25
25
  const [i, a] = l.useState(c);
26
26
  return l.useEffect(() => {
@@ -32,14 +32,14 @@ function As(c, s) {
32
32
  };
33
33
  }, [c, s]), i;
34
34
  }
35
- const Te = l.memo(function({ children: s, align: i = "left" }) {
35
+ const Te = /* @__PURE__ */ l.memo(function({ children: s, align: i = "left" }) {
36
36
  const a = l.useRef(null), [f, x] = l.useState(!1), [y, h] = l.useState("");
37
37
  return l.useEffect(() => {
38
38
  const p = a.current;
39
39
  if (!p) return;
40
- let b;
41
- const I = () => {
42
- clearTimeout(b), b = setTimeout(() => {
40
+ let v;
41
+ const R = () => {
42
+ clearTimeout(v), v = setTimeout(() => {
43
43
  if (a.current) {
44
44
  const T = a.current.scrollWidth > a.current.clientWidth, C = a.current.firstElementChild, A = C ? C.scrollWidth > C.clientWidth : !1;
45
45
  x(T || A);
@@ -50,18 +50,18 @@ const Te = l.memo(function({ children: s, align: i = "left" }) {
50
50
  const T = a.current.scrollWidth > a.current.clientWidth, C = a.current.firstElementChild, A = C ? C.scrollWidth > C.clientWidth : !1;
51
51
  x(T || A);
52
52
  }
53
- const D = new ResizeObserver(I);
53
+ const D = new ResizeObserver(R);
54
54
  return D.observe(p), () => {
55
- clearTimeout(b), D.disconnect();
55
+ clearTimeout(v), D.disconnect();
56
56
  };
57
57
  }, [s]), l.useEffect(() => {
58
58
  a.current && h(a.current.textContent || "");
59
- }, [s]), f ? /* @__PURE__ */ v(Vs, { children: [
59
+ }, [s]), f ? /* @__PURE__ */ b(Fs, { children: [
60
60
  /* @__PURE__ */ t($s, { asChild: !0, children: /* @__PURE__ */ t(
61
61
  "div",
62
62
  {
63
63
  ref: a,
64
- className: F("min-w-0 overflow-hidden truncate [&>*]:truncate", i === "right" && "text-right"),
64
+ className: V("min-w-0 overflow-hidden truncate [&>*]:truncate", i === "right" && "text-right"),
65
65
  children: s
66
66
  }
67
67
  ) }),
@@ -70,7 +70,7 @@ const Te = l.memo(function({ children: s, align: i = "left" }) {
70
70
  "div",
71
71
  {
72
72
  ref: a,
73
- className: F("min-w-0 overflow-hidden truncate [&>*]:truncate", i === "right" && "text-right"),
73
+ className: V("min-w-0 overflow-hidden truncate [&>*]:truncate", i === "right" && "text-right"),
74
74
  children: s
75
75
  }
76
76
  );
@@ -81,6 +81,20 @@ const Te = l.memo(function({ children: s, align: i = "left" }) {
81
81
  if (!i || i.length === 0) return !0;
82
82
  const a = c.getValue(s);
83
83
  return i.includes(a);
84
+ }, Eo = (c, s, i, a) => {
85
+ if (!i || i.trim() === "") return !0;
86
+ const f = String(i).toLowerCase(), x = (h) => {
87
+ const p = h.getAllCells().map((v) => v.column.id);
88
+ for (const v of p) {
89
+ const R = h.getValue(v);
90
+ if (R != null && String(R).toLowerCase().includes(f))
91
+ return !0;
92
+ }
93
+ return !1;
94
+ };
95
+ c.getParentRow?.()?.getParentRow?.() || c.getParentRow?.();
96
+ const y = x(c);
97
+ return a && y && a({ itemRank: 1 }), y;
84
98
  };
85
99
  function Os(c, s) {
86
100
  for (const i of c) {
@@ -102,10 +116,10 @@ function Ir(c) {
102
116
  const s = Math.min(...c), i = Math.max(...c);
103
117
  return s === i ? String(s) : `${s} – ${i}`;
104
118
  }
105
- function Ws(c) {
119
+ function Hs(c) {
106
120
  return c.length === 0 ? "" : `Avg: ${(c.reduce((a, f) => a + f, 0) / c.length).toFixed(2)}`;
107
121
  }
108
- function Hs(c) {
122
+ function Ws(c) {
109
123
  return c.length === 0 ? "" : `Total: ${c.reduce((i, a) => i + a, 0)}`;
110
124
  }
111
125
  function Er(c) {
@@ -125,23 +139,23 @@ function Gs(c) {
125
139
  f > i && (i = f, a = x);
126
140
  }), `${a} (${i})`;
127
141
  }
128
- function zr(c) {
142
+ function kr(c) {
129
143
  if (c.length === 0) return "";
130
144
  const i = c.map((y) => y instanceof Date ? y : new Date(y)).filter((y) => !isNaN(y.getTime()));
131
145
  if (i.length === 0) return "";
132
146
  const a = new Date(Math.min(...i.map((y) => y.getTime()))), f = new Date(Math.max(...i.map((y) => y.getTime()))), x = (y) => y.toISOString().split("T")[0];
133
147
  return a.getTime() === f.getTime() ? x(a) : `${x(a)} – ${x(f)}`;
134
148
  }
135
- function kr(c, s, i) {
149
+ function zr(c, s, i) {
136
150
  const a = c.columnDef;
137
151
  if (c.id === i || a?.meta?.renderInGroupedRows || a?.meta?.aggregation === !1) return null;
138
152
  if (typeof a?.meta?.aggregation == "function") {
139
- const I = "accessorKey" in a ? a.accessorKey : void 0;
140
- return a.meta.aggregation(s, I);
153
+ const R = "accessorKey" in a ? a.accessorKey : void 0;
154
+ return a.meta.aggregation(s, R);
141
155
  }
142
156
  const f = "accessorKey" in a ? a.accessorKey : void 0, x = "accessorFn" in a ? a.accessorFn : void 0, y = f || x;
143
157
  if (!y) return null;
144
- const h = s.map((I) => typeof y == "function" ? y(I.original, I.index) : I.original?.[y]).filter((I) => I != null);
158
+ const h = s.map((R) => typeof y == "function" ? y(R.original, R.index) : R.original?.[y]).filter((R) => R != null);
145
159
  if (h.length === 0) return null;
146
160
  const p = a?.meta?.aggregation;
147
161
  if (p && typeof p == "string")
@@ -149,9 +163,9 @@ function kr(c, s, i) {
149
163
  case "range":
150
164
  return Ir(h);
151
165
  case "average":
152
- return Ws(h);
153
- case "sum":
154
166
  return Hs(h);
167
+ case "sum":
168
+ return Ws(h);
155
169
  case "count":
156
170
  return Er(h.length);
157
171
  case "uniqueCount":
@@ -162,7 +176,7 @@ function kr(c, s, i) {
162
176
  case "mostCommon":
163
177
  return Gs(h.map(String));
164
178
  case "dateRange":
165
- return zr(h);
179
+ return kr(h);
166
180
  default:
167
181
  return null;
168
182
  }
@@ -175,16 +189,16 @@ function kr(c, s, i) {
175
189
  a?.meta?.label || String(c.id)
176
190
  );
177
191
  case "date":
178
- return zr(h);
192
+ return kr(h);
179
193
  default:
180
194
  return Er(h.length);
181
195
  }
182
196
  }
183
197
  function Br({ columns: c, rows: s, showRowBorder: i = !0, showCellBorder: a = !0, skipHeader: f = !1, enableResponsiveWrapper: x = !0 }) {
184
198
  const y = x ? "h-4 w-full max-w-full" : "h-4 w-[120px]", h = x ? "h-4 w-full max-w-full" : "h-4 w-[100px]";
185
- return /* @__PURE__ */ v(ee, { children: [
186
- !f && /* @__PURE__ */ t(G, { showBorder: i, children: Array.from({ length: c }).map((p, b) => /* @__PURE__ */ t(ut, { showBorder: a, className: "overflow-hidden", children: /* @__PURE__ */ t(Nr, { className: y }) }, b)) }),
187
- Array.from({ length: s }).map((p, b) => /* @__PURE__ */ t(G, { showBorder: i, children: Array.from({ length: c }).map((I, D) => /* @__PURE__ */ t(
199
+ return /* @__PURE__ */ b(ee, { children: [
200
+ !f && /* @__PURE__ */ t(G, { showBorder: i, children: Array.from({ length: c }).map((p, v) => /* @__PURE__ */ t(ut, { showBorder: a, className: "overflow-hidden", children: /* @__PURE__ */ t(Nr, { className: y }) }, v)) }),
201
+ Array.from({ length: s }).map((p, v) => /* @__PURE__ */ t(G, { showBorder: i, children: Array.from({ length: c }).map((R, D) => /* @__PURE__ */ t(
188
202
  le,
189
203
  {
190
204
  showBorder: a,
@@ -193,16 +207,16 @@ function Br({ columns: c, rows: s, showRowBorder: i = !0, showCellBorder: a = !0
193
207
  children: /* @__PURE__ */ t(Nr, { className: h })
194
208
  },
195
209
  D
196
- )) }, b))
210
+ )) }, v))
197
211
  ] });
198
212
  }
199
- const _s = l.memo(function({
213
+ const _s = /* @__PURE__ */ l.memo(function({
200
214
  title: s = "No data",
201
215
  description: i = "No items to display",
202
216
  action: a,
203
217
  customContent: f
204
218
  }) {
205
- return f ? /* @__PURE__ */ t(ee, { children: f }) : /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-[var(--space-2xl)] text-center", children: [
219
+ return f ? /* @__PURE__ */ t(ee, { children: f }) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center py-[var(--space-2xl)] text-center", children: [
206
220
  /* @__PURE__ */ t("p", { className: "text-body-medium-md text-[var(--color-text-primary)]", children: s }),
207
221
  i && /* @__PURE__ */ t("p", { className: "text-body-sm text-[var(--color-text-secondary)] mt-[var(--space-xs)]", children: i }),
208
222
  a && /* @__PURE__ */ t(
@@ -216,13 +230,13 @@ const _s = l.memo(function({
216
230
  }
217
231
  )
218
232
  ] });
219
- }), qs = l.memo(function({
233
+ }), qs = /* @__PURE__ */ l.memo(function({
220
234
  title: s = "No results found",
221
235
  description: i = "Try adjusting your search or filters",
222
236
  action: a,
223
237
  customContent: f
224
238
  }) {
225
- return f ? /* @__PURE__ */ t(ee, { children: f }) : /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-[var(--space-2xl)] text-center", children: [
239
+ return f ? /* @__PURE__ */ t(ee, { children: f }) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center py-[var(--space-2xl)] text-center", children: [
226
240
  /* @__PURE__ */ t("p", { className: "text-body-medium-md text-[var(--color-text-primary)]", children: s }),
227
241
  i && /* @__PURE__ */ t("p", { className: "text-body-sm text-[var(--color-text-secondary)] mt-[var(--space-xs)]", children: i }),
228
242
  a && /* @__PURE__ */ t(
@@ -236,12 +250,12 @@ const _s = l.memo(function({
236
250
  }
237
251
  )
238
252
  ] });
239
- }), Us = l.memo(function({
253
+ }), Us = /* @__PURE__ */ l.memo(function({
240
254
  error: s,
241
255
  onRetry: i,
242
256
  customContent: a
243
257
  }) {
244
- return a ? /* @__PURE__ */ t(ee, { children: a }) : /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-[var(--space-2xl)] text-center", children: [
258
+ return a ? /* @__PURE__ */ t(ee, { children: a }) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center py-[var(--space-2xl)] text-center", children: [
245
259
  /* @__PURE__ */ t("p", { className: "text-body-medium-md text-[var(--color-text-primary)]", children: "Something went wrong" }),
246
260
  /* @__PURE__ */ t("p", { className: "text-body-sm text-[var(--color-text-secondary)] mt-[var(--space-xs)]", children: s?.message || "An error occurred while loading data" }),
247
261
  i && /* @__PURE__ */ t(
@@ -255,9 +269,9 @@ const _s = l.memo(function({
255
269
  }
256
270
  )
257
271
  ] });
258
- }), Js = l.memo(function() {
272
+ }), Js = /* @__PURE__ */ l.memo(function() {
259
273
  return /* @__PURE__ */ t("div", { className: "absolute top-0 left-0 right-0 h-[2px] overflow-hidden", children: /* @__PURE__ */ t("div", { className: "h-full w-full bg-[var(--color-background-brand)] animate-pulse" }) });
260
- }), Ks = l.memo(function({
274
+ }), Ks = /* @__PURE__ */ l.memo(function({
261
275
  table: s,
262
276
  searchKey: i,
263
277
  searchPlaceholder: a = "Search...",
@@ -266,15 +280,15 @@ const _s = l.memo(function({
266
280
  globalFilter: y = "",
267
281
  onGlobalFilterChange: h,
268
282
  enableGlobalFaceting: p = !1,
269
- enableGrouping: b = !1,
270
- showSettingsMenu: I = !1,
283
+ enableGrouping: v = !1,
284
+ showSettingsMenu: R = !1,
271
285
  enableAutocomplete: D = !1,
272
286
  autocompleteSuggestions: T = [],
273
287
  autocompleteMinCharacters: C = 2
274
288
  }) {
275
289
  const A = s.getState().columnFilters.length > 0 || f && y.length > 0;
276
- return /* @__PURE__ */ v("div", { className: "flex items-center justify-between", children: [
277
- /* @__PURE__ */ v("div", { className: "flex flex-1 items-center space-x-2", children: [
290
+ return /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
291
+ /* @__PURE__ */ b("div", { className: "flex flex-1 items-center space-x-2", children: [
278
292
  f && h && /* @__PURE__ */ t(ee, { children: D && T.length > 0 ? /* @__PURE__ */ t(
279
293
  Rs,
280
294
  {
@@ -306,7 +320,7 @@ const _s = l.memo(function({
306
320
  ),
307
321
  s.getAllColumns().filter((P) => P.getCanFilter() && P.columnDef.meta?.filterVariant).map((P) => /* @__PURE__ */ t(Qs, { column: P }, P.id)),
308
322
  p && /* @__PURE__ */ t(Xs, { table: s }),
309
- A && /* @__PURE__ */ v(
323
+ A && /* @__PURE__ */ b(
310
324
  Me,
311
325
  {
312
326
  variant: "ghost",
@@ -316,22 +330,22 @@ const _s = l.memo(function({
316
330
  className: "h-8 px-2 lg:px-3",
317
331
  children: [
318
332
  "Reset",
319
- /* @__PURE__ */ t(H, { name: "x", className: "ml-2 h-4 w-4" })
333
+ /* @__PURE__ */ t(W, { name: "x", className: "ml-2 h-4 w-4" })
320
334
  ]
321
335
  }
322
336
  )
323
337
  ] }),
324
- I && /* @__PURE__ */ t("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ t(Hr, { table: s, enableGrouping: b }) })
338
+ R && /* @__PURE__ */ t("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ t(Wr, { table: s, enableGrouping: v }) })
325
339
  ] });
326
- }), Xs = l.memo(function({ table: s }) {
340
+ }), Xs = /* @__PURE__ */ l.memo(function({ table: s }) {
327
341
  const [i, a] = l.useState([]), f = s.getAllColumns().filter(
328
342
  (h) => h.columnDef.meta?.filterOptions && h.getCanFilter()
329
343
  ), x = l.useMemo(() => {
330
344
  const h = /* @__PURE__ */ new Map();
331
345
  return f.forEach((p) => {
332
- const b = p.getFacetedUniqueValues(), I = p.columnDef.meta?.filterOptions || [], D = p.columnDef.meta?.label || p.columnDef.header;
333
- b.forEach((T, C) => {
334
- const A = I.find((P) => P.value === C);
346
+ const v = p.getFacetedUniqueValues(), R = p.columnDef.meta?.filterOptions || [], D = p.columnDef.meta?.label || p.columnDef.header;
347
+ v.forEach((T, C) => {
348
+ const A = R.find((P) => P.value === C);
335
349
  if (A && T > 0) {
336
350
  const P = `${D}:${C}`;
337
351
  h.set(P, {
@@ -341,48 +355,48 @@ const _s = l.memo(function({
341
355
  });
342
356
  }
343
357
  });
344
- }), Array.from(h.entries()).map(([p, b]) => ({
358
+ }), Array.from(h.entries()).map(([p, v]) => ({
345
359
  key: p,
346
360
  value: p.split(":")[1],
347
- ...b
348
- })).sort((p, b) => b.count - p.count);
361
+ ...v
362
+ })).sort((p, v) => v.count - p.count);
349
363
  }, [f]), y = (h) => {
350
- const p = i.includes(h) ? i.filter((b) => b !== h) : [...i, h];
351
- a(p), f.forEach((b) => {
352
- const I = b.columnDef.meta?.filterOptions || [], D = p.filter(
353
- (T) => I.some((C) => C.value === T)
364
+ const p = i.includes(h) ? i.filter((v) => v !== h) : [...i, h];
365
+ a(p), f.forEach((v) => {
366
+ const R = v.columnDef.meta?.filterOptions || [], D = p.filter(
367
+ (T) => R.some((C) => C.value === T)
354
368
  );
355
- D.length > 0 ? b.columnDef.meta?.filterVariant === "multiselect" ? b.setFilterValue(D) : b.columnDef.meta?.filterVariant === "select" && b.setFilterValue(D[0]) : b.setFilterValue(void 0);
369
+ D.length > 0 ? v.columnDef.meta?.filterVariant === "multiselect" ? v.setFilterValue(D) : v.columnDef.meta?.filterVariant === "select" && v.setFilterValue(D[0]) : v.setFilterValue(void 0);
356
370
  });
357
371
  };
358
- return x.length === 0 ? null : /* @__PURE__ */ v(Pr, { children: [
359
- /* @__PURE__ */ t(Fr, { asChild: !0, children: /* @__PURE__ */ v(Me, { variant: "ghost", size: "s", className: "h-8 border-dashed", children: [
360
- /* @__PURE__ */ t(H, { name: "filter", className: "mr-2 h-4 w-4" }),
372
+ return x.length === 0 ? null : /* @__PURE__ */ b(Pr, { children: [
373
+ /* @__PURE__ */ t(Vr, { asChild: !0, children: /* @__PURE__ */ b(Me, { variant: "ghost", size: "s", className: "h-8 border-dashed", children: [
374
+ /* @__PURE__ */ t(W, { name: "filter", className: "mr-2 h-4 w-4" }),
361
375
  "Global Faceting",
362
- i.length > 0 && /* @__PURE__ */ v(ee, { children: [
376
+ i.length > 0 && /* @__PURE__ */ b(ee, { children: [
363
377
  /* @__PURE__ */ t("div", { className: "mx-2 h-4 w-px bg-[var(--color-border-primary)]" }),
364
- /* @__PURE__ */ v(xe, { className: "rounded-s px-1 font-normal", children: [
378
+ /* @__PURE__ */ b(xe, { className: "rounded-s px-1 font-normal", children: [
365
379
  i.length,
366
380
  " selected"
367
381
  ] })
368
382
  ] })
369
383
  ] }) }),
370
- /* @__PURE__ */ t(Vr, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ v($r, { children: [
384
+ /* @__PURE__ */ t(Fr, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ b($r, { children: [
371
385
  /* @__PURE__ */ t(jr, { placeholder: "Search values across all columns..." }),
372
- /* @__PURE__ */ v(Ar, { children: [
386
+ /* @__PURE__ */ b(Ar, { children: [
373
387
  /* @__PURE__ */ t(Lr, { children: "No results found" }),
374
388
  /* @__PURE__ */ t(Or, { children: x.map((h) => {
375
389
  const p = i.includes(h.value);
376
390
  return /* @__PURE__ */ t(
377
- Wr,
391
+ Hr,
378
392
  {
379
393
  onSelect: () => y(h.value),
380
- children: /* @__PURE__ */ v("div", { className: "flex items-center justify-between flex-1", children: [
381
- /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
394
+ children: /* @__PURE__ */ b("div", { className: "flex items-center justify-between flex-1", children: [
395
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
382
396
  /* @__PURE__ */ t(gt, { checked: p }),
383
- /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
397
+ /* @__PURE__ */ b("div", { className: "flex flex-col", children: [
384
398
  /* @__PURE__ */ t("span", { className: "text-body-sm", children: h.label }),
385
- /* @__PURE__ */ v("span", { className: "text-caption-sm text-[var(--color-text-secondary)]", children: [
399
+ /* @__PURE__ */ b("span", { className: "text-caption-sm text-[var(--color-text-secondary)]", children: [
386
400
  "in ",
387
401
  h.column
388
402
  ] })
@@ -397,29 +411,29 @@ const _s = l.memo(function({
397
411
  ] })
398
412
  ] }) })
399
413
  ] });
400
- }), Qs = l.memo(function({ column: s }) {
414
+ }), Qs = /* @__PURE__ */ l.memo(function({ column: s }) {
401
415
  const { filterVariant: i, filterOptions: a, label: f, placeholder: x } = s.columnDef.meta || {}, y = s.getFilterValue(), h = s.getFacetedUniqueValues();
402
416
  if (i === "select" && a)
403
- return /* @__PURE__ */ v(
404
- zs,
417
+ return /* @__PURE__ */ b(
418
+ ks,
405
419
  {
406
420
  value: y || "all",
407
421
  onValueChange: (p) => s.setFilterValue(p === "all" ? "" : p),
408
422
  children: [
409
- /* @__PURE__ */ t(ks, { className: "h-8 w-[150px]", children: /* @__PURE__ */ t(Bs, { placeholder: x || `Filter ${f}` }) }),
410
- /* @__PURE__ */ v(Ts, { children: [
411
- /* @__PURE__ */ v(Sr, { value: "all", children: [
423
+ /* @__PURE__ */ t(zs, { className: "h-8 w-[150px]", children: /* @__PURE__ */ t(Bs, { placeholder: x || `Filter ${f}` }) }),
424
+ /* @__PURE__ */ b(Ts, { children: [
425
+ /* @__PURE__ */ b(Sr, { value: "all", children: [
412
426
  "All ",
413
427
  f
414
428
  ] }),
415
429
  a.map((p) => {
416
- const b = h.get(p.value) || 0;
417
- return /* @__PURE__ */ t(Sr, { value: p.value, children: /* @__PURE__ */ v("div", { className: "flex items-center justify-between w-full gap-2", children: [
418
- /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
430
+ const v = h.get(p.value) || 0;
431
+ return /* @__PURE__ */ t(Sr, { value: p.value, children: /* @__PURE__ */ b("div", { className: "flex items-center justify-between w-full gap-2", children: [
432
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
419
433
  p.icon && /* @__PURE__ */ t(p.icon, { className: "h-4 w-4" }),
420
434
  p.label
421
435
  ] }),
422
- b > 0 && /* @__PURE__ */ t(xe, { className: "ml-auto text-caption-sm px-1 py-0", children: b })
436
+ v > 0 && /* @__PURE__ */ t(xe, { className: "ml-auto text-caption-sm px-1 py-0", children: v })
423
437
  ] }) }, p.value);
424
438
  })
425
439
  ] })
@@ -428,42 +442,42 @@ const _s = l.memo(function({
428
442
  );
429
443
  if (i === "multiselect" && a) {
430
444
  const p = y || [];
431
- return /* @__PURE__ */ v(Pr, { children: [
432
- /* @__PURE__ */ t(Fr, { asChild: !0, children: /* @__PURE__ */ v(Me, { variant: "ghost", size: "s", className: "h-8 border-dashed", children: [
433
- /* @__PURE__ */ t(H, { name: "plus-circle", className: "mr-2 h-4 w-4" }),
445
+ return /* @__PURE__ */ b(Pr, { children: [
446
+ /* @__PURE__ */ t(Vr, { asChild: !0, children: /* @__PURE__ */ b(Me, { variant: "ghost", size: "s", className: "h-8 border-dashed", children: [
447
+ /* @__PURE__ */ t(W, { name: "plus-circle", className: "mr-2 h-4 w-4" }),
434
448
  f,
435
- p.length > 0 && /* @__PURE__ */ v(ee, { children: [
449
+ p.length > 0 && /* @__PURE__ */ b(ee, { children: [
436
450
  /* @__PURE__ */ t("div", { className: "mx-2 h-4 w-px bg-[var(--color-border-primary)]" }),
437
451
  /* @__PURE__ */ t(xe, { className: "rounded-s px-1 font-normal lg:hidden", children: p.length }),
438
- /* @__PURE__ */ t("div", { className: "hidden space-x-1 lg:flex", children: p.length > 2 ? /* @__PURE__ */ v(xe, { className: "rounded-s px-1 font-normal", children: [
452
+ /* @__PURE__ */ t("div", { className: "hidden space-x-1 lg:flex", children: p.length > 2 ? /* @__PURE__ */ b(xe, { className: "rounded-s px-1 font-normal", children: [
439
453
  p.length,
440
454
  " selected"
441
- ] }) : a.filter((b) => p.includes(b.value)).map((b) => /* @__PURE__ */ t(xe, { className: "rounded-s px-1 font-normal", children: b.label }, b.value)) })
455
+ ] }) : a.filter((v) => p.includes(v.value)).map((v) => /* @__PURE__ */ t(xe, { className: "rounded-s px-1 font-normal", children: v.label }, v.value)) })
442
456
  ] })
443
457
  ] }) }),
444
- /* @__PURE__ */ t(Vr, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ v($r, { children: [
458
+ /* @__PURE__ */ t(Fr, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ b($r, { children: [
445
459
  /* @__PURE__ */ t(jr, { placeholder: x || `Search ${f}...` }),
446
- /* @__PURE__ */ v(Ar, { children: [
460
+ /* @__PURE__ */ b(Ar, { children: [
447
461
  /* @__PURE__ */ t(Lr, { children: "No results found" }),
448
- /* @__PURE__ */ t(Or, { children: a.map((b) => {
449
- const I = p.includes(b.value), D = h.get(b.value) || 0;
462
+ /* @__PURE__ */ t(Or, { children: a.map((v) => {
463
+ const R = p.includes(v.value), D = h.get(v.value) || 0;
450
464
  return /* @__PURE__ */ t(
451
- Wr,
465
+ Hr,
452
466
  {
453
467
  onSelect: () => {
454
- const T = I ? p.filter((C) => C !== b.value) : [...p, b.value];
468
+ const T = R ? p.filter((C) => C !== v.value) : [...p, v.value];
455
469
  s.setFilterValue(T.length ? T : void 0);
456
470
  },
457
- children: /* @__PURE__ */ v("div", { className: "flex items-center justify-between flex-1", children: [
458
- /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
459
- /* @__PURE__ */ t(gt, { checked: I }),
460
- b.icon && /* @__PURE__ */ t(b.icon, { className: "h-4 w-4" }),
461
- /* @__PURE__ */ t("span", { children: b.label })
471
+ children: /* @__PURE__ */ b("div", { className: "flex items-center justify-between flex-1", children: [
472
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
473
+ /* @__PURE__ */ t(gt, { checked: R }),
474
+ v.icon && /* @__PURE__ */ t(v.icon, { className: "h-4 w-4" }),
475
+ /* @__PURE__ */ t("span", { children: v.label })
462
476
  ] }),
463
477
  D > 0 && /* @__PURE__ */ t(xe, { className: "ml-auto text-caption-sm px-1 py-0", children: D })
464
478
  ] })
465
479
  },
466
- b.value
480
+ v.value
467
481
  );
468
482
  }) })
469
483
  ] })
@@ -488,31 +502,31 @@ const _s = l.memo(function({
488
502
  className: "h-8 w-[150px]"
489
503
  }
490
504
  );
491
- }), Ys = l.memo(function({ header: s, enableColumnOrdering: i, children: a }) {
505
+ }), Ys = /* @__PURE__ */ l.memo(function({ header: s, enableColumnOrdering: i, children: a }) {
492
506
  const {
493
507
  attributes: f,
494
508
  listeners: x,
495
509
  setNodeRef: y,
496
510
  transform: h,
497
511
  transition: p,
498
- isDragging: b
512
+ isDragging: v
499
513
  } = Ss({
500
514
  id: s.id,
501
515
  disabled: !i
502
- }), I = {
516
+ }), R = {
503
517
  transform: Ns.Translate.toString(h),
504
518
  // Only translate, no scale
505
519
  transition: p,
506
- opacity: b ? 0.5 : 1
520
+ opacity: v ? 0.5 : 1
507
521
  };
508
- return i ? /* @__PURE__ */ v(
522
+ return i ? /* @__PURE__ */ b(
509
523
  "div",
510
524
  {
511
525
  ref: y,
512
- style: I,
513
- className: F(
526
+ style: R,
527
+ className: V(
514
528
  "relative flex items-center",
515
- b && "z-50"
529
+ v && "z-50"
516
530
  ),
517
531
  children: [
518
532
  /* @__PURE__ */ t("div", { className: "flex-1", children: a }),
@@ -523,7 +537,7 @@ const _s = l.memo(function({
523
537
  ...f,
524
538
  ...x,
525
539
  children: /* @__PURE__ */ t(
526
- H,
540
+ W,
527
541
  {
528
542
  name: "grip-vertical",
529
543
  className: "h-3 w-3 text-[var(--color-text-tertiary)]"
@@ -534,7 +548,7 @@ const _s = l.memo(function({
534
548
  ]
535
549
  }
536
550
  ) : /* @__PURE__ */ t(ee, { children: a });
537
- }), Hr = l.memo(function({ table: s, enableGrouping: i = !1 }) {
551
+ }), Wr = /* @__PURE__ */ l.memo(function({ table: s, enableGrouping: i = !1 }) {
538
552
  const a = s.getAllColumns().filter((N) => N.getCanSort()).map((N) => ({
539
553
  id: N.id,
540
554
  label: N.columnDef.meta?.label || N.columnDef.header || N.id
@@ -544,15 +558,15 @@ const _s = l.memo(function({
544
558
  })), x = s.getAllColumns().filter((N) => typeof N.accessorFn < "u" && N.getCanHide()).map((N) => ({
545
559
  id: N.id,
546
560
  label: N.columnDef.meta?.label || N.columnDef.header || N.id
547
- })), y = x.filter((N) => s.getColumn(N.id)?.getIsVisible()).map((N) => N.id), h = s.getState().sorting[0], p = h?.id, b = h?.desc ? "desc" : "asc", D = s.getState().grouping[0] || "";
561
+ })), y = x.filter((N) => s.getColumn(N.id)?.getIsVisible()).map((N) => N.id), h = s.getState().sorting[0], p = h?.id, v = h?.desc ? "desc" : "asc", D = s.getState().grouping[0] || "";
548
562
  return /* @__PURE__ */ t(
549
563
  Ps,
550
564
  {
551
565
  sortableColumns: a,
552
566
  selectedSortColumn: p,
553
- sortDirection: b,
567
+ sortDirection: v,
554
568
  onSortChange: (N) => {
555
- s.setSorting([{ id: N, desc: b === "desc" }]);
569
+ s.setSorting([{ id: N, desc: v === "desc" }]);
556
570
  },
557
571
  onSortDirectionChange: (N) => {
558
572
  h && s.setSorting([{ id: h.id, desc: N === "desc" }]);
@@ -569,17 +583,16 @@ const _s = l.memo(function({
569
583
  }
570
584
  }
571
585
  );
572
- });
573
- l.memo(function({
586
+ }), Do = /* @__PURE__ */ l.memo(function({
574
587
  column: s,
575
588
  title: i,
576
589
  className: a
577
590
  }) {
578
591
  const f = s.columnDef.meta?.align || "left", x = s.columnDef.meta?.truncate !== !1, y = s.getIsSorted();
579
- return s.getCanSort() ? /* @__PURE__ */ v(
592
+ return s.getCanSort() ? /* @__PURE__ */ b(
580
593
  "div",
581
594
  {
582
- className: F(
595
+ className: V(
583
596
  "flex items-center gap-1",
584
597
  f === "right" && "justify-end",
585
598
  y && "!text-[var(--color-text-brand-bold)]",
@@ -587,7 +600,7 @@ l.memo(function({
587
600
  ),
588
601
  children: [
589
602
  y && /* @__PURE__ */ t(
590
- H,
603
+ W,
591
604
  {
592
605
  name: y === "desc" ? "arrow-down-wide-narrow" : "arrow-down-narrow-wide",
593
606
  className: "h-4 w-4 !text-[var(--color-icon-brand-bold)]"
@@ -596,9 +609,8 @@ l.memo(function({
596
609
  x ? /* @__PURE__ */ t(Te, { align: f, children: /* @__PURE__ */ t("span", { children: i }) }) : /* @__PURE__ */ t("span", { children: i })
597
610
  ]
598
611
  }
599
- ) : x ? /* @__PURE__ */ t(Te, { align: f, children: /* @__PURE__ */ t("div", { className: F(f === "right" ? "text-right" : "text-left", a), children: i }) }) : /* @__PURE__ */ t("div", { className: F(f === "right" ? "text-right" : "text-left", a), children: i });
600
- });
601
- const Zs = l.memo(function({
612
+ ) : x ? /* @__PURE__ */ t(Te, { align: f, children: /* @__PURE__ */ t("div", { className: V(f === "right" ? "text-right" : "text-left", a), children: i }) }) : /* @__PURE__ */ t("div", { className: V(f === "right" ? "text-right" : "text-left", a), children: i });
613
+ }), Zs = /* @__PURE__ */ l.memo(function({
602
614
  table: s,
603
615
  enableGrouping: i = !1,
604
616
  hideChildrenForSingleItemGroups: a = {},
@@ -608,22 +620,22 @@ const Zs = l.memo(function({
608
620
  paginationVariant: h = "full",
609
621
  pageSizeOptions: p = [10, 25, 50, 100]
610
622
  }) {
611
- const b = s.getState().pagination.pageIndex + 1, I = s.getState().pagination.pageSize, D = i && !s.options.manualPagination ? s.getPrePaginationRowModel().rows.filter((P) => P.depth === 0).length : s.getRowCount(), T = s.getFilteredSelectedRowModel().rows.length, C = (P) => {
623
+ const v = s.getState().pagination.pageIndex + 1, R = s.getState().pagination.pageSize, D = i && !s.options.manualPagination ? s.getPrePaginationRowModel().rows.filter((P) => P.depth === 0).length : s.getRowCount(), T = s.getFilteredSelectedRowModel().rows.length, C = (P) => {
612
624
  s.setPageIndex(P - 1);
613
625
  }, A = (P) => {
614
626
  s.setPageSize(P);
615
627
  };
616
- return /* @__PURE__ */ v("div", { className: "flex items-center justify-between", children: [
617
- /* @__PURE__ */ t("div", { className: "flex-1 text-body-sm text-[var(--color-text-secondary)]", children: f ? /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-m)]", children: [
628
+ return /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
629
+ /* @__PURE__ */ t("div", { className: "flex-1 text-body-sm text-[var(--color-text-secondary)]", children: f ? /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-m)]", children: [
618
630
  f,
619
- T > 0 && /* @__PURE__ */ v("span", { children: [
631
+ T > 0 && /* @__PURE__ */ b("span", { children: [
620
632
  "· ",
621
633
  T,
622
634
  " of ",
623
635
  D,
624
636
  " row(s) selected"
625
637
  ] })
626
- ] }) : T > 0 && /* @__PURE__ */ v("span", { children: [
638
+ ] }) : T > 0 && /* @__PURE__ */ b("span", { children: [
627
639
  T,
628
640
  " of ",
629
641
  D,
@@ -633,9 +645,9 @@ const Zs = l.memo(function({
633
645
  Ms,
634
646
  {
635
647
  variant: h,
636
- currentPage: b,
648
+ currentPage: v,
637
649
  totalItems: D,
638
- pageSize: I,
650
+ pageSize: R,
639
651
  onPageChange: C,
640
652
  onPageSizeChange: A,
641
653
  pageSizeOptions: p,
@@ -644,7 +656,7 @@ const Zs = l.memo(function({
644
656
  }
645
657
  )
646
658
  ] });
647
- }), eo = l.memo(function({
659
+ }), eo = /* @__PURE__ */ l.memo(function({
648
660
  onLoadMore: s,
649
661
  isLoading: i
650
662
  }) {
@@ -678,7 +690,7 @@ function to(c) {
678
690
  return i(c), s;
679
691
  }
680
692
  function Tr(c, s) {
681
- const { enableGrouping: i, enableExpanding: a, nestedRowStyling: f, expandingRowColors: x, maxDepth: y } = s, h = c.depth, p = c.getIsGrouped?.(), b = c.getIsExpanded(), I = c.subRows && c.subRows.length > 0, D = I ? b ? "expanded" : "collapsed" : "leaf", T = () => {
693
+ const { enableGrouping: i, enableExpanding: a, nestedRowStyling: f, expandingRowColors: x, maxDepth: y } = s, h = c.depth, p = c.getIsGrouped?.(), v = c.getIsExpanded(), R = c.subRows && c.subRows.length > 0, D = R ? v ? "expanded" : "collapsed" : "leaf", T = () => {
682
694
  let C = c;
683
695
  for (; C; ) {
684
696
  if (C.getIsExpanded()) return !0;
@@ -706,13 +718,13 @@ function Tr(c, s) {
706
718
  if (C === 0 && x.children)
707
719
  return x.children;
708
720
  if (C > 0) {
709
- if (b && x.expandedParent)
721
+ if (v && x.expandedParent)
710
722
  return x.expandedParent;
711
- if (!b && x.collapsedParent)
723
+ if (!v && x.collapsedParent)
712
724
  return x.collapsedParent;
713
725
  }
714
726
  }
715
- return p ? b ? "var(--blue-50)" : "var(--color-background-neutral-subtlest)" : i && h === 1 ? "var(--blue-25)" : a && !p ? h === 0 && (!I || !T()) ? "" : (y - h) % 2 === 0 ? "var(--blue-25)" : "var(--blue-50)" : "";
727
+ return p ? v ? "var(--blue-50)" : "var(--color-background-neutral-subtlest)" : i && h === 1 ? "var(--blue-25)" : a && !p ? h === 0 && (!R || !T()) ? "" : (y - h) % 2 === 0 ? "var(--blue-25)" : "var(--blue-50)" : "";
716
728
  }
717
729
  function ro(c, s) {
718
730
  if (s) {
@@ -723,14 +735,14 @@ function ro(c, s) {
723
735
  }
724
736
  }
725
737
  function Mr(c, s, i, a, f, x) {
726
- const y = c.groupingColumnId, h = f[y] ?? !1, p = x[y] ?? !1, I = h && p && c.subRows.length <= 1 ? null : c.subRows.length > 1 ? /* @__PURE__ */ t(
738
+ const y = c.groupingColumnId, h = f[y] ?? !1, p = x[y] ?? !1, R = h && p && c.subRows.length <= 1 ? null : c.subRows.length > 1 ? /* @__PURE__ */ t(
727
739
  "button",
728
740
  {
729
741
  tabIndex: -1,
730
742
  onClick: c.getToggleExpandedHandler(),
731
743
  className: "flex h-[var(--size-s)] w-[var(--size-s)] cursor-pointer items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
732
744
  children: /* @__PURE__ */ t(
733
- H,
745
+ W,
734
746
  {
735
747
  name: a ? "chevron-down" : "chevron-right",
736
748
  className: "h-3 w-3"
@@ -747,18 +759,18 @@ function Mr(c, s, i, a, f, x) {
747
759
  const C = T.columnDef;
748
760
  if (C.aggregatedCell) {
749
761
  const A = c.getAllCells().find((P) => P.column.id === i);
750
- return /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)] font-medium text-[var(--color-text-primary)]", children: [
751
- I,
752
- /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)]", children: [
762
+ return /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)] font-medium text-[var(--color-text-primary)]", children: [
763
+ R,
764
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)]", children: [
753
765
  A ? be(C.aggregatedCell, A.getContext()) : null,
754
766
  D
755
767
  ] })
756
768
  ] });
757
769
  } else {
758
770
  const A = c.subRows[0]?.original?.[i];
759
- return /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)] font-medium text-[var(--color-text-primary)]", children: [
760
- I,
761
- /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)]", children: [
771
+ return /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)] font-medium text-[var(--color-text-primary)]", children: [
772
+ R,
773
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)]", children: [
762
774
  /* @__PURE__ */ t("span", { className: "font-medium", children: String(A) }),
763
775
  D
764
776
  ] })
@@ -766,15 +778,15 @@ function Mr(c, s, i, a, f, x) {
766
778
  }
767
779
  }
768
780
  }
769
- return /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)] font-medium text-[var(--color-text-primary)]", children: [
770
- I,
771
- /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)]", children: [
781
+ return /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)] font-medium text-[var(--color-text-primary)]", children: [
782
+ R,
783
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)]", children: [
772
784
  /* @__PURE__ */ t("span", { className: "font-medium", children: String(c.getGroupingValue(c.groupingColumnId)) }),
773
785
  D
774
786
  ] })
775
787
  ] });
776
788
  }
777
- function Eo({
789
+ function ko({
778
790
  columns: c,
779
791
  data: s,
780
792
  searchKey: i,
@@ -784,8 +796,8 @@ function Eo({
784
796
  className: y,
785
797
  stickyHeader: h = !1,
786
798
  stickyFirstColumn: p = !1,
787
- stickyLeftColumns: b = 0,
788
- stickyRightColumns: I = 0,
799
+ stickyLeftColumns: v = 0,
800
+ stickyRightColumns: R = 0,
789
801
  enableResponsiveWrapper: D = !0,
790
802
  showScrollIndicators: T = !1,
791
803
  minTableWidth: C = "900px",
@@ -809,14 +821,14 @@ function Eo({
809
821
  getSubRows: Jr,
810
822
  expandingRowColors: O,
811
823
  nestedRowStyling: pt,
812
- enableGrouping: k = !1,
824
+ enableGrouping: z = !1,
813
825
  groupedColumnMode: Kr = !1,
814
826
  enableManualGrouping: Xr = !1,
815
827
  groupDisplayColumn: Xe,
816
828
  hideChildrenForSingleItemGroups: ye = {},
817
- hideExpanderForSingleItemGroups: Ft = {},
829
+ hideExpanderForSingleItemGroups: Vt = {},
818
830
  enableRowPinning: Ee = !1,
819
- keepPinnedRows: Vt = !0,
831
+ keepPinnedRows: Ft = !0,
820
832
  enableVirtualization: Qr = !1,
821
833
  // virtualContainerHeight = 600,
822
834
  // virtualRowHeight = 40,
@@ -831,7 +843,7 @@ function Eo({
831
843
  pageSizeOptions: en = [10, 25, 50, 100],
832
844
  footerLabel: tn,
833
845
  onTableReady: bt,
834
- initialState: Fe,
846
+ initialState: Ve,
835
847
  // Controlled state props
836
848
  sorting: $t,
837
849
  onSortingChange: rn,
@@ -847,17 +859,17 @@ function Eo({
847
859
  onPaginationChange: ln,
848
860
  expanded: Ce,
849
861
  onExpandedChange: yt,
850
- renderSectionHeaderRow: Wt,
862
+ renderSectionHeaderRow: Ht,
851
863
  renderSubComponent: J,
852
864
  getRowCanExpand: cn,
853
- autoExpandChildren: Ht = !1,
865
+ autoExpandChildren: Wt = !1,
854
866
  // Row click props
855
867
  onRowClick: K,
856
868
  isRowClickable: we,
857
869
  clickableRowClassName: Gt,
858
870
  groupPreservingSearch: Ze = !1,
859
871
  // Active row props
860
- activeRowId: Ve,
872
+ activeRowId: Fe,
861
873
  activeRowClassName: _t,
862
874
  getRowId: Ct,
863
875
  onActiveRowChange: qt,
@@ -902,10 +914,10 @@ function Eo({
902
914
  subComponentError: Yt,
903
915
  onExpandError: $e
904
916
  }) {
905
- const st = D || !!(b && b > 0) || !!(I && I > 0), [In, En] = l.useState([]), [Dn, zn] = l.useState({}), [kn, Bn] = l.useState(Fe?.grouping || []), [Tn, Mn] = l.useState(() => {
917
+ const st = D || !!(v && v > 0) || !!(R && R > 0), [In, En] = l.useState([]), [Dn, kn] = l.useState({}), [zn, Bn] = l.useState(Ve?.grouping || []), [Tn, Mn] = l.useState(() => {
906
918
  const e = c.map((r) => r.id || r.accessorKey || `column-${Math.random()}`);
907
919
  return fe ? ["select", ...e] : e;
908
- }), [Pn, Fn] = l.useState(xt || Fe?.columnSizing || {}), [Vn, $n] = l.useState(() => {
920
+ }), [Pn, Vn] = l.useState(xt || Ve?.columnSizing || {}), [Fn, $n] = l.useState(() => {
909
921
  if (ht && Y) {
910
922
  const e = localStorage.getItem(`${Y}-pagination`);
911
923
  if (e)
@@ -917,16 +929,16 @@ function Eo({
917
929
  console.warn("Failed to parse saved pagination:", r);
918
930
  }
919
931
  }
920
- return Fe?.pagination || { pageIndex: 0, pageSize: 10 };
921
- }), [Zt, jn] = l.useState([]), [ze, An] = l.useState({}), [St, er] = l.useState(""), [Ln, tr] = l.useState(Fe?.expanded || {}), [On, Wn] = l.useState(Fe?.rowPinning || { top: [], bottom: [] }), [Hn, ot] = l.useState(""), [X, Nt] = l.useState([-1, 0]), Rt = l.useRef(null), je = l.useRef(/* @__PURE__ */ new Map()), Ae = l.useRef(/* @__PURE__ */ new Map());
932
+ return Ve?.pagination || { pageIndex: 0, pageSize: 10 };
933
+ }), [Zt, jn] = l.useState([]), [ke, An] = l.useState({}), [St, er] = l.useState(""), [Ln, tr] = l.useState(Ve?.expanded || {}), [On, Hn] = l.useState(Ve?.rowPinning || { top: [], bottom: [] }), [Wn, ot] = l.useState(""), [X, Nt] = l.useState([-1, 0]), Rt = l.useRef(null), je = l.useRef(/* @__PURE__ */ new Map()), Ae = l.useRef(/* @__PURE__ */ new Map());
922
934
  l.useEffect(() => () => {
923
935
  je.current.forEach((e) => e.abort()), Ae.current.forEach((e) => e.abort());
924
936
  }, []), l.useEffect(() => {
925
- wt && wt(ze);
926
- }, [ze, wt]), l.useEffect(() => {
927
- qt?.(Ve);
928
- }, [Ve, qt]);
929
- const rr = $t !== void 0, nr = jt !== void 0, sr = At !== void 0, or = Lt !== void 0, ar = xt !== void 0, lr = Ot !== void 0, It = Ce !== void 0, ge = rr ? $t : In, Gn = nr ? jt : Dn, me = sr ? At : kn, Le = or ? Lt : Tn, at = ar ? xt : Pn, re = lr ? Ot : Vn, Q = It ? Ce : Ln, _n = rr ? rn : En, qn = nr ? nn : zn, Un = sr ? sn : Bn, ir = or ? on : Mn, cr = ar ? an : Fn, Jn = lr ? ln : $n, Et = l.useCallback(
937
+ wt && wt(ke);
938
+ }, [ke, wt]), l.useEffect(() => {
939
+ qt?.(Fe);
940
+ }, [Fe, qt]);
941
+ const rr = $t !== void 0, nr = jt !== void 0, sr = At !== void 0, or = Lt !== void 0, ar = xt !== void 0, lr = Ot !== void 0, It = Ce !== void 0, ge = rr ? $t : In, Gn = nr ? jt : Dn, me = sr ? At : zn, Le = or ? Lt : Tn, at = ar ? xt : Pn, re = lr ? Ot : Fn, Q = It ? Ce : Ln, _n = rr ? rn : En, qn = nr ? nn : kn, Un = sr ? sn : Bn, ir = or ? on : Mn, cr = ar ? an : Vn, Jn = lr ? ln : $n, Et = l.useCallback(
930
942
  (e) => {
931
943
  const r = typeof e == "object" && e !== null && !(e instanceof Function) && Object.keys(e).length === 0;
932
944
  if (It && yt) {
@@ -956,15 +968,15 @@ function Eo({
956
968
  return n.forEach((m) => {
957
969
  let S = !1;
958
970
  for (const B in m) {
959
- const V = m[B];
960
- if (V != null && String(V).toLowerCase().includes(u)) {
971
+ const F = m[B];
972
+ if (F != null && String(F).toLowerCase().includes(u)) {
961
973
  S = !0;
962
974
  break;
963
975
  }
964
976
  }
965
977
  S && r.forEach((B) => {
966
- const V = m[B];
967
- V != null && g.add(String(V));
978
+ const F = m[B];
979
+ F != null && g.add(String(F));
968
980
  });
969
981
  }), (m) => {
970
982
  for (const S of r) {
@@ -1019,11 +1031,11 @@ function Eo({
1019
1031
  if (!e.getIsGrouped()) return !0;
1020
1032
  const n = e.groupingColumnId;
1021
1033
  return (ye[n] ?? !1) && e.subRows && e.subRows.length === 1;
1022
- }, [K, we, ye]), ur = (e) => e ? "![box-shadow:inset_3px_0_0_0_var(--color-border-brand-bold),inset_0_-1px_0_0_var(--color-border-primary-medium)]" : "![box-shadow:inset_3px_0_0_0_var(--color-border-brand-bold)]", ke = l.useCallback((e) => {
1023
- if (!Ve) return !1;
1034
+ }, [K, we, ye]), ur = (e) => e ? "![box-shadow:inset_3px_0_0_0_var(--color-border-brand-bold),inset_0_-1px_0_0_var(--color-border-primary-medium)]" : "![box-shadow:inset_3px_0_0_0_var(--color-border-brand-bold)]", ze = l.useCallback((e) => {
1035
+ if (!Fe) return !1;
1024
1036
  const r = Ct ? e.id : e.original?.id !== void 0 ? e.original.id : e.id;
1025
- return String(r) === String(Ve);
1026
- }, [Ve, Ct]), Oe = l.useMemo(() => p ? 1 : b || 0, [p, b]), Ne = l.useMemo(() => I || 0, [I]), fr = l.useMemo(() => {
1037
+ return String(r) === String(Fe);
1038
+ }, [Fe, Ct]), Oe = l.useMemo(() => p ? 1 : v || 0, [p, v]), Ne = l.useMemo(() => R || 0, [R]), fr = l.useMemo(() => {
1027
1039
  const e = /* @__PURE__ */ new Set();
1028
1040
  return c.forEach((r) => {
1029
1041
  if (r.cell) {
@@ -1031,7 +1043,7 @@ function Eo({
1031
1043
  n && e.add(String(n));
1032
1044
  }
1033
1045
  }), e;
1034
- }, [c]), zt = l.useMemo(() => {
1046
+ }, [c]), kt = l.useMemo(() => {
1035
1047
  const e = c.map((r) => {
1036
1048
  let n = {
1037
1049
  ...r,
@@ -1078,9 +1090,9 @@ function Eo({
1078
1090
  label: "Select"
1079
1091
  }
1080
1092
  }, ...e] : e;
1081
- }, [c, fe]), kt = l.useMemo(() => s, [s]), Qn = l.useMemo(() => !Ze || !L ? Rr : dr(L, me, kt), [Ze, L, me, kt, dr]), w = os({
1082
- data: kt,
1083
- columns: zt,
1093
+ }, [c, fe]), zt = l.useMemo(() => s, [s]), Qn = l.useMemo(() => !Ze || !L ? Rr : dr(L, me, zt), [Ze, L, me, zt, dr]), w = os({
1094
+ data: zt,
1095
+ columns: kt,
1084
1096
  getRowId: Ct,
1085
1097
  filterFns: {
1086
1098
  fuzzy: Rr,
@@ -1090,7 +1102,7 @@ function Eo({
1090
1102
  sorting: ge,
1091
1103
  columnFilters: Zt,
1092
1104
  columnVisibility: Gn,
1093
- rowSelection: ze,
1105
+ rowSelection: ke,
1094
1106
  globalFilter: L,
1095
1107
  columnSizing: at,
1096
1108
  expanded: Q,
@@ -1121,11 +1133,11 @@ function Eo({
1121
1133
  // Only paginate top-level rows, not expanded children
1122
1134
  autoResetPageIndex: !1,
1123
1135
  // Prevent pagination from resetting on data/filter/grouping changes
1124
- enableGrouping: k,
1136
+ enableGrouping: z,
1125
1137
  groupedColumnMode: Kr,
1126
1138
  manualGrouping: Xr,
1127
1139
  enableRowPinning: Ee,
1128
- keepPinnedRows: Vt,
1140
+ keepPinnedRows: Ft,
1129
1141
  onRowSelectionChange: An,
1130
1142
  onSortingChange: _n,
1131
1143
  onColumnFiltersChange: jn,
@@ -1134,7 +1146,7 @@ function Eo({
1134
1146
  onColumnSizingChange: cr,
1135
1147
  onExpandedChange: Et,
1136
1148
  onGroupingChange: Un,
1137
- onRowPinningChange: Wn,
1149
+ onRowPinningChange: Hn,
1138
1150
  onColumnOrderChange: ir,
1139
1151
  onPaginationChange: Jn,
1140
1152
  getCoreRowModel: ms(),
@@ -1143,7 +1155,7 @@ function Eo({
1143
1155
  getPaginationRowModel: et || Qr ? void 0 : fs(),
1144
1156
  getSortedRowModel: Kt ? void 0 : us(),
1145
1157
  getExpandedRowModel: _ ? ds() : void 0,
1146
- getGroupedRowModel: k ? cs() : void 0,
1158
+ getGroupedRowModel: z ? cs() : void 0,
1147
1159
  getFacetedRowModel: is(),
1148
1160
  getFacetedUniqueValues: ls(),
1149
1161
  getFacetedMinMaxValues: as()
@@ -1151,12 +1163,12 @@ function Eo({
1151
1163
  () => to(w.getRowModel().rows),
1152
1164
  [w.getRowModel().rows]
1153
1165
  ), it = l.useMemo(() => {
1154
- if (!k) return null;
1166
+ if (!z) return null;
1155
1167
  const e = /* @__PURE__ */ new Map();
1156
1168
  return w.getGroupedRowModel?.()?.rows?.forEach((n) => {
1157
1169
  n.subRows && n.subRows.length > 0 && e.set(n.id, n.subRows);
1158
1170
  }), e;
1159
- }, [k, w]), { flatVisibleRows: ct, rowIdToFlatIndex: gr } = l.useMemo(() => {
1171
+ }, [z, w]), { flatVisibleRows: ct, rowIdToFlatIndex: gr } = l.useMemo(() => {
1160
1172
  const e = [], r = /* @__PURE__ */ new Map(), n = (g) => {
1161
1173
  const m = e.length;
1162
1174
  e.push(g), r.set(g.id, m), g.getIsExpanded() && (g.subRows && g.subRows.length > 0 ? g.subRows : it?.get(g.id) || []).forEach(n);
@@ -1164,11 +1176,11 @@ function Eo({
1164
1176
  return w.getRowModel().rows.filter((g) => J || g.depth === 0).forEach(n), { flatVisibleRows: e, rowIdToFlatIndex: r };
1165
1177
  }, [w, Q, it, J]), mr = l.useRef(void 0);
1166
1178
  l.useEffect(() => {
1167
- if (!k) return;
1179
+ if (!z) return;
1168
1180
  const r = w.getPrePaginationRowModel().rows.filter((g) => g.depth === 0).length, n = re.pageSize, u = Math.max(1, Math.ceil(r / n));
1169
1181
  mr.current !== u && (mr.current = u, w.setPageCount(u));
1170
1182
  }, [
1171
- k,
1183
+ z,
1172
1184
  // NOTE: Deliberately NOT including 'table' to avoid re-running on every render
1173
1185
  // We access table methods inside but only re-run when these stable values change:
1174
1186
  re.pageSize,
@@ -1179,18 +1191,18 @@ function Eo({
1179
1191
  ]);
1180
1192
  const hr = l.useRef({});
1181
1193
  l.useEffect(() => {
1182
- if (!Ht) return;
1194
+ if (!Wt) return;
1183
1195
  const e = w.getState().expanded, r = hr.current, n = { ...e };
1184
1196
  let u = !1;
1185
1197
  w.getRowModel().rows.forEach((g) => {
1186
1198
  const m = g.id, S = e[m] === !0, B = r[m] === !0;
1187
- S && !B && g.subRows && g.subRows.length > 0 && g.subRows.forEach((V) => {
1188
- e[V.id] !== !0 && (n[V.id] = !0, u = !0);
1199
+ S && !B && g.subRows && g.subRows.length > 0 && g.subRows.forEach((F) => {
1200
+ e[F.id] !== !0 && (n[F.id] = !0, u = !0);
1189
1201
  });
1190
1202
  }), hr.current = e, u && Et(n);
1191
1203
  }, [
1192
1204
  Q,
1193
- Ht
1205
+ Wt
1194
1206
  // NOTE: Deliberately NOT including 'table' to avoid re-running on every render
1195
1207
  ]);
1196
1208
  const pr = l.useRef({});
@@ -1211,8 +1223,8 @@ function Eo({
1211
1223
  const m = w.getRow(n);
1212
1224
  if (!m) return;
1213
1225
  if (tt && Qt) {
1214
- const S = m.getIsGrouped() || m.subRows && m.subRows.length === 0 && m.getCanExpand(), B = rt?.[n] === !0, V = m.subRows && m.subRows.length > 0;
1215
- if (S && !B && !V) {
1226
+ const S = m.getIsGrouped() || m.subRows && m.subRows.length === 0 && m.getCanExpand(), B = rt?.[n] === !0, F = m.subRows && m.subRows.length > 0;
1227
+ if (S && !B && !F) {
1216
1228
  const o = new AbortController();
1217
1229
  je.current.set(n, o), Promise.resolve(tt(m)).catch((M) => {
1218
1230
  M?.name !== "AbortError" && $e && $e(m, M, "children");
@@ -1223,8 +1235,8 @@ function Eo({
1223
1235
  }
1224
1236
  if (De && J && !m.getIsGrouped() && m.depth === 0 && !(nt?.[n] === !0)) {
1225
1237
  const B = new AbortController();
1226
- Ae.current.set(n, B), Promise.resolve(De(m)).catch((V) => {
1227
- V?.name !== "AbortError" && $e && $e(m, V, "subComponent");
1238
+ Ae.current.set(n, B), Promise.resolve(De(m)).catch((F) => {
1239
+ F?.name !== "AbortError" && $e && $e(m, F, "subComponent");
1228
1240
  }).finally(() => {
1229
1241
  Ae.current.delete(n);
1230
1242
  });
@@ -1242,7 +1254,7 @@ function Eo({
1242
1254
  $e
1243
1255
  // NOTE: Deliberately NOT including 'table' to avoid re-running on every render
1244
1256
  ]), l.useEffect(() => {
1245
- if (!Ze || !L || !k)
1257
+ if (!Ze || !L || !z)
1246
1258
  return;
1247
1259
  const e = {};
1248
1260
  w.getFilteredRowModel().rows.forEach((n) => {
@@ -1251,7 +1263,7 @@ function Eo({
1251
1263
  const u = Object.keys(n).sort().join(","), g = Object.keys(e).sort().join(",");
1252
1264
  return u === g ? n : e;
1253
1265
  });
1254
- }, [L, Ze, k]);
1266
+ }, [L, Ze, z]);
1255
1267
  const vr = l.useRef(me), br = l.useRef(ge);
1256
1268
  l.useEffect(() => {
1257
1269
  if (!et) return;
@@ -1272,9 +1284,9 @@ function Eo({
1272
1284
  ot(`${e} result${e !== 1 ? "s" : ""} found for "${L}"`);
1273
1285
  }
1274
1286
  }, [L, w]), l.useEffect(() => {
1275
- const e = Object.keys(ze).filter((r) => ze[r]).length;
1287
+ const e = Object.keys(ke).filter((r) => ke[r]).length;
1276
1288
  e > 0 && ot(`${e} row${e !== 1 ? "s" : ""} selected`);
1277
- }, [ze]), l.useEffect(() => {
1289
+ }, [ke]), l.useEffect(() => {
1278
1290
  const [e, r] = X, n = ct.length, u = w.getVisibleLeafColumns();
1279
1291
  let g = e, m = r;
1280
1292
  e >= 0 && e >= n && (g = Math.max(n - 1, -1)), r >= u.length && (m = Math.max(u.length - 1, 0)), (g !== e || m !== r) && Nt([g, m]);
@@ -1282,7 +1294,7 @@ function Eo({
1282
1294
  const e = w.getPageCount();
1283
1295
  e > 1 && ot(`Page ${re.pageIndex + 1} of ${e}`);
1284
1296
  }, [re.pageIndex, w]);
1285
- const We = l.useCallback((e, r) => {
1297
+ const He = l.useCallback((e, r) => {
1286
1298
  if (!r || !e) return e;
1287
1299
  const n = e.toLowerCase(), u = r.toLowerCase(), g = [];
1288
1300
  let m = 0, S = n.indexOf(u);
@@ -1324,9 +1336,9 @@ function Eo({
1324
1336
  }, []), dt = l.useCallback((e, r) => r ? he(e).toLowerCase().includes(r.toLowerCase()) : !1, [he]), ce = l.useCallback((e, r) => {
1325
1337
  if (!r || e == null) return e;
1326
1338
  if (typeof e == "string")
1327
- return We(e, r);
1339
+ return He(e, r);
1328
1340
  if (typeof e == "number")
1329
- return We(String(e), r);
1341
+ return He(String(e), r);
1330
1342
  if (Array.isArray(e))
1331
1343
  return e.map((n, u) => /* @__PURE__ */ t(l.Fragment, { children: ce(n, r) }, u));
1332
1344
  if (l.isValidElement(e)) {
@@ -1357,7 +1369,7 @@ function Eo({
1357
1369
  );
1358
1370
  }
1359
1371
  return e;
1360
- }, [We]), Be = l.useCallback((e) => {
1372
+ }, [He]), Be = l.useCallback((e) => {
1361
1373
  if (!ie || !L)
1362
1374
  return be(e.column.columnDef.cell, e.getContext());
1363
1375
  if (fr.has(e.column.id)) {
@@ -1367,10 +1379,10 @@ function Eo({
1367
1379
  const n = e.getValue();
1368
1380
  if (typeof n == "string" || typeof n == "number") {
1369
1381
  const u = String(n);
1370
- return We(u, L);
1382
+ return He(u, L);
1371
1383
  }
1372
1384
  return be(e.column.columnDef.cell, e.getContext());
1373
- }, [ie, L, We, fr, dt, ce]), xr = l.useCallback((e) => {
1385
+ }, [ie, L, He, fr, dt, ce]), xr = l.useCallback((e) => {
1374
1386
  if (!ie || !L)
1375
1387
  return be(e.column.columnDef.aggregatedCell, e.getContext());
1376
1388
  const r = be(e.column.columnDef.aggregatedCell, e.getContext());
@@ -1407,7 +1419,7 @@ function Eo({
1407
1419
  }
1408
1420
  }
1409
1421
  }, rs = l.useCallback((e) => {
1410
- const [r, n] = X, u = w.getVisibleLeafColumns(), g = ct, m = u.length, S = g.length, B = -1, V = S - 1;
1422
+ const [r, n] = X, u = w.getVisibleLeafColumns(), g = ct, m = u.length, S = g.length, B = -1, F = S - 1;
1411
1423
  let o = r, M = n, $ = !1;
1412
1424
  switch (e.key) {
1413
1425
  case "ArrowRight":
@@ -1417,7 +1429,7 @@ function Eo({
1417
1429
  n > 0 && (M = n - 1, $ = !0);
1418
1430
  break;
1419
1431
  case "ArrowDown":
1420
- r < V && (o = r + 1, $ = !0);
1432
+ r < F && (o = r + 1, $ = !0);
1421
1433
  break;
1422
1434
  case "ArrowUp":
1423
1435
  r > B && (o = r - 1, $ = !0);
@@ -1426,10 +1438,10 @@ function Eo({
1426
1438
  (e.ctrlKey || e.metaKey) && (o = B), M = 0, $ = !0;
1427
1439
  break;
1428
1440
  case "End":
1429
- (e.ctrlKey || e.metaKey) && (o = V), M = m - 1, $ = !0;
1441
+ (e.ctrlKey || e.metaKey) && (o = F), M = m - 1, $ = !0;
1430
1442
  break;
1431
1443
  case "PageDown":
1432
- o = Math.min(r + 10, V), $ = !0;
1444
+ o = Math.min(r + 10, F), $ = !0;
1433
1445
  break;
1434
1446
  case "PageUp":
1435
1447
  o = Math.max(r - 10, B), $ = !0;
@@ -1441,7 +1453,7 @@ function Eo({
1441
1453
  d?.id === "select" && fe && e.key === " " ? (w.toggleAllPageRowsSelected(), $ = !0) : d?.getCanSort() && (d.toggleSorting(), $ = !0);
1442
1454
  } else {
1443
1455
  const d = g[r];
1444
- d && ((_ || k) && d.getCanExpand() ? (d.toggleExpanded(), $ = !0) : fe && e.key === " " && (d.toggleSelected(), $ = !0), !$ && e.key === "Enter" && K && Se(d) && (Dt(d, e), $ = !0));
1456
+ d && ((_ || z) && d.getCanExpand() ? (d.toggleExpanded(), $ = !0) : fe && e.key === " " && (d.toggleSelected(), $ = !0), !$ && e.key === "Enter" && K && Se(d) && (Dt(d, e), $ = !0));
1445
1457
  }
1446
1458
  break;
1447
1459
  case "Escape":
@@ -1450,23 +1462,23 @@ function Eo({
1450
1462
  }
1451
1463
  if ($ && (e.preventDefault(), e.stopPropagation(), o !== r || M !== n)) {
1452
1464
  Nt([o, M]);
1453
- const d = o === -1 ? `[data-header-col="${M}"]` : `[data-row="${o}"][data-col="${M}"]`, z = Rt.current?.querySelector(d);
1454
- z && z.focus();
1465
+ const d = o === -1 ? `[data-header-col="${M}"]` : `[data-row="${o}"][data-col="${M}"]`, k = Rt.current?.querySelector(d);
1466
+ k && k.focus();
1455
1467
  }
1456
- }, [X, w, ct, _, k, fe]), ns = l.useCallback((e) => {
1468
+ }, [X, w, ct, _, z, fe]), ns = l.useCallback((e) => {
1457
1469
  Rt.current?.contains(e.relatedTarget) || Nt([-1, 0]);
1458
- }, []), He = l.useMemo(() => {
1470
+ }, []), We = l.useMemo(() => {
1459
1471
  const e = w.getVisibleFlatColumns(), r = /* @__PURE__ */ new Map();
1460
1472
  let n = 0;
1461
1473
  e.forEach((g, m) => {
1462
- const S = m < Oe, B = m >= e.length - Ne, V = S && m === Oe - 1, o = B && m === e.length - Ne;
1474
+ const S = m < Oe, B = m >= e.length - Ne, F = S && m === Oe - 1, o = B && m === e.length - Ne;
1463
1475
  r.set(g.id, {
1464
1476
  isLeftSticky: S,
1465
1477
  isRightSticky: B,
1466
1478
  leftPosition: n,
1467
1479
  rightPosition: 0,
1468
1480
  // Will be calculated below
1469
- isRightmostLeftSticky: V,
1481
+ isRightmostLeftSticky: F,
1470
1482
  isLeftmostRightSticky: o,
1471
1483
  columnIndex: m
1472
1484
  }), n += g.getSize();
@@ -1480,10 +1492,10 @@ function Eo({
1480
1492
  }, [w.getVisibleFlatColumns(), Oe, Ne]), Ge = (e, r = !1, n = !0) => {
1481
1493
  if (!e || typeof e.getSize != "function")
1482
1494
  return {};
1483
- const u = He.data.get(e.id);
1495
+ const u = We.data.get(e.id);
1484
1496
  if (!u || !u.isLeftSticky && !u.isRightSticky)
1485
1497
  return {};
1486
- const { isLeftSticky: g, isRightSticky: m, leftPosition: S, rightPosition: B, isRightmostLeftSticky: V, isLeftmostRightSticky: o } = u;
1498
+ const { isLeftSticky: g, isRightSticky: m, leftPosition: S, rightPosition: B, isRightmostLeftSticky: F, isLeftmostRightSticky: o } = u;
1487
1499
  if (g) {
1488
1500
  const M = {
1489
1501
  position: "sticky",
@@ -1493,7 +1505,7 @@ function Eo({
1493
1505
  minWidth: `${e.getSize()}px`,
1494
1506
  maxWidth: `${e.getSize()}px`
1495
1507
  };
1496
- return V && r ? {
1508
+ return F && r ? {
1497
1509
  ...M,
1498
1510
  backgroundImage: "linear-gradient(to right, var(--grey-25) calc(100% - 3px), var(--color-border-primary-medium) calc(100% - 3px), var(--color-border-primary-medium) 100%)",
1499
1511
  backgroundColor: "transparent"
@@ -1518,19 +1530,19 @@ function Eo({
1518
1530
  }, ss = (e) => {
1519
1531
  if (!e || typeof e.getSize != "function")
1520
1532
  return "";
1521
- const r = He.data.get(e.id);
1533
+ const r = We.data.get(e.id);
1522
1534
  return r ? r.isRightmostLeftSticky ? "border-r-[3px] border-[var(--color-border-primary-medium)]" : r.isLeftmostRightSticky ? "border-l-[3px] border-[var(--color-border-primary-medium)]" : "" : "";
1523
1535
  }, Bt = (e) => {
1524
1536
  if (!e || typeof e.getSize != "function")
1525
1537
  return !1;
1526
- const r = He.data.get(e.id);
1538
+ const r = We.data.get(e.id);
1527
1539
  return r ? r.isRightmostLeftSticky || r.isLeftmostRightSticky : !1;
1528
1540
  }, Tt = (e) => {
1529
1541
  if (!e || typeof e.getSize != "function" || Ne === 0)
1530
1542
  return !1;
1531
- const r = He.data.get(e.id);
1532
- return r ? r.columnIndex === He.allColumns.length - Ne - 1 : !1;
1533
- }, Cr = (e, r = !1) => !te || !e.getCanResize() || !!E.showCellBorder ? "" : F(
1543
+ const r = We.data.get(e.id);
1544
+ return r ? r.columnIndex === We.allColumns.length - Ne - 1 : !1;
1545
+ }, Cr = (e, r = !1) => !te || !e.getCanResize() || !!E.showCellBorder ? "" : V(
1534
1546
  // Right side indicator - hidden for last column
1535
1547
  !r && [
1536
1548
  "after:content-[''] after:absolute after:right-px after:top-1/2 after:-translate-y-1/2",
@@ -1546,23 +1558,23 @@ function Eo({
1546
1558
  "before:opacity-0 hover:before:opacity-100",
1547
1559
  "before:transition-opacity before:pointer-events-none before:z-10"
1548
1560
  );
1549
- return /* @__PURE__ */ t(Fs, { children: /* @__PURE__ */ t(
1561
+ return /* @__PURE__ */ t(Vs, { children: /* @__PURE__ */ t(
1550
1562
  bs,
1551
1563
  {
1552
1564
  sensors: Zn,
1553
1565
  collisionDetection: xs,
1554
1566
  onDragStart: es,
1555
1567
  onDragEnd: ts,
1556
- children: /* @__PURE__ */ v("div", { className: F(
1568
+ children: /* @__PURE__ */ b("div", { className: V(
1557
1569
  "border border-[var(--color-border-primary-medium)] bg-[var(--color-surface-primary)] overflow-hidden rounded-l",
1558
1570
  // Remove bottom border when no pagination to avoid double border with last row
1559
1571
  !vt && "border-b-0",
1560
1572
  y
1561
1573
  ), children: [
1562
- Pe && (f || ie) && /* @__PURE__ */ v("div", { className: "border-b border-[var(--color-border-primary-medium)] bg-[var(--color-surface-primary)] px-[var(--space-l)] py-[var(--space-m)]", children: [
1563
- f && /* @__PURE__ */ v("div", { className: "flex justify-between items-center", children: [
1574
+ Pe && (f || ie) && /* @__PURE__ */ b("div", { className: "border-b border-[var(--color-border-primary-medium)] bg-[var(--color-surface-primary)] px-[var(--space-l)] py-[var(--space-m)]", children: [
1575
+ f && /* @__PURE__ */ b("div", { className: "flex justify-between items-center", children: [
1564
1576
  /* @__PURE__ */ t("h3", { className: "text-heading-sm font-semibold text-[var(--color-text-primary)]", children: f }),
1565
- /* @__PURE__ */ t(Hr, { table: w, enableGrouping: k })
1577
+ /* @__PURE__ */ t(Wr, { table: w, enableGrouping: z })
1566
1578
  ] }),
1567
1579
  /* @__PURE__ */ t(
1568
1580
  Ks,
@@ -1576,20 +1588,20 @@ function Eo({
1576
1588
  globalFilter: St,
1577
1589
  onGlobalFilterChange: er,
1578
1590
  enableGlobalFaceting: qr,
1579
- enableGrouping: k,
1591
+ enableGrouping: z,
1580
1592
  enableAutocomplete: mt,
1581
1593
  autocompleteSuggestions: Xn,
1582
1594
  autocompleteMinCharacters: _r
1583
1595
  }
1584
1596
  )
1585
1597
  ] }),
1586
- /* @__PURE__ */ v(
1598
+ /* @__PURE__ */ b(
1587
1599
  "div",
1588
1600
  {
1589
1601
  ref: Rt,
1590
1602
  onKeyDown: rs,
1591
1603
  onFocus: ns,
1592
- className: F(
1604
+ className: V(
1593
1605
  "relative",
1594
1606
  st && [
1595
1607
  "overflow-x-auto",
@@ -1600,7 +1612,7 @@ function Eo({
1600
1612
  ]
1601
1613
  ),
1602
1614
  children: [
1603
- T && /* @__PURE__ */ v(ee, { children: [
1615
+ T && /* @__PURE__ */ b(ee, { children: [
1604
1616
  /* @__PURE__ */ t("div", { className: "absolute top-0 left-0 bottom-0 w-8 bg-gradient-to-r from-[var(--color-surface-primary)] to-transparent z-10 pointer-events-none opacity-0 transition-opacity" }),
1605
1617
  /* @__PURE__ */ t("div", { className: "absolute top-0 right-0 bottom-0 w-8 bg-gradient-to-l from-[var(--color-surface-primary)] to-transparent z-10 pointer-events-none opacity-0 transition-opacity" })
1606
1618
  ] }),
@@ -1611,10 +1623,10 @@ function Eo({
1611
1623
  "aria-live": "polite",
1612
1624
  "aria-atomic": "true",
1613
1625
  className: "sr-only",
1614
- children: Hn
1626
+ children: Wn
1615
1627
  }
1616
1628
  ),
1617
- /* @__PURE__ */ v(
1629
+ /* @__PURE__ */ b(
1618
1630
  Is,
1619
1631
  {
1620
1632
  ref: Yn,
@@ -1622,7 +1634,7 @@ function Eo({
1622
1634
  "aria-label": x || f,
1623
1635
  "aria-rowcount": s.length,
1624
1636
  "aria-colcount": w.getVisibleLeafColumns().length,
1625
- className: F(
1637
+ className: V(
1626
1638
  "border-separate border-spacing-0",
1627
1639
  // Required for sticky columns to work properly
1628
1640
  te && "table-fixed"
@@ -1641,7 +1653,7 @@ function Eo({
1641
1653
  },
1642
1654
  e.id
1643
1655
  )) }),
1644
- /* @__PURE__ */ t(Es, { className: F(
1656
+ /* @__PURE__ */ t(Es, { className: V(
1645
1657
  h && [
1646
1658
  "sticky top-0 z-20",
1647
1659
  "after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-[var(--color-border-primary-medium)]"
@@ -1659,7 +1671,7 @@ function Eo({
1659
1671
  }
1660
1672
  ) : Yr && Qe && Qe.length > 0 ? (
1661
1673
  // Nested headers rendering
1662
- /* @__PURE__ */ v(ee, { children: [
1674
+ /* @__PURE__ */ b(ee, { children: [
1663
1675
  /* @__PURE__ */ t(G, { showBorder: E.showRowBorder, children: Qe.map((e, r) => {
1664
1676
  const n = e.columns.length, u = Ge(e, !0, E.showRowBorder);
1665
1677
  return /* @__PURE__ */ t(
@@ -1667,7 +1679,7 @@ function Eo({
1667
1679
  {
1668
1680
  colSpan: n,
1669
1681
  showBorder: E.showCellBorder,
1670
- className: F(
1682
+ className: V(
1671
1683
  "text-center bg-[var(--color-background-neutral-subtlest)] font-medium border-b border-[var(--color-border-primary-medium)]",
1672
1684
  h && "z-20",
1673
1685
  !Pe && r === 0 && "rounded-tl-l",
@@ -1694,7 +1706,7 @@ function Eo({
1694
1706
  "data-header-col": r,
1695
1707
  tabIndex: X[0] === -1 && X[1] === r ? 0 : -1,
1696
1708
  showBorder: g || m || Tt(e.column) ? !1 : E.showCellBorder,
1697
- className: F(
1709
+ className: V(
1698
1710
  h && "z-20",
1699
1711
  (Oe > 0 || Ne > 0) && "z-30",
1700
1712
  te && "relative overflow-visible group",
@@ -1707,7 +1719,7 @@ function Eo({
1707
1719
  // For table-fixed layout, all columns need explicit width
1708
1720
  ...te && !n.width ? { width: e.column.getSize() } : {}
1709
1721
  },
1710
- children: /* @__PURE__ */ v("div", { className: F(
1722
+ children: /* @__PURE__ */ b("div", { className: V(
1711
1723
  u === "right" ? "text-right" : "text-left"
1712
1724
  ), children: [
1713
1725
  e.isPlaceholder ? null : be(
@@ -1723,7 +1735,7 @@ function Eo({
1723
1735
  children: /* @__PURE__ */ t(
1724
1736
  "div",
1725
1737
  {
1726
- className: F(
1738
+ className: V(
1727
1739
  "absolute right-1 top-0 h-full w-1",
1728
1740
  "hover:bg-[var(--color-border-primary-medium)] active:bg-[var(--color-border-primary-medium)]",
1729
1741
  e.column.getIsResizing() && "bg-[var(--color-border-primary-medium)]"
@@ -1756,7 +1768,7 @@ function Eo({
1756
1768
  "data-header-col": n,
1757
1769
  tabIndex: X[0] === -1 && X[1] === n ? 0 : -1,
1758
1770
  showBorder: m || S || Tt(r.column) ? !1 : E.showCellBorder,
1759
- className: F(
1771
+ className: V(
1760
1772
  h && "z-20",
1761
1773
  (Oe > 0 || Ne > 0) && "z-30",
1762
1774
  te && "relative overflow-visible group",
@@ -1772,7 +1784,7 @@ function Eo({
1772
1784
  // For table-fixed layout, all columns need explicit width
1773
1785
  ...te && !u.width ? { width: r.column.getSize() } : {}
1774
1786
  },
1775
- children: /* @__PURE__ */ t(Ys, { header: r, enableColumnOrdering: Ye, children: /* @__PURE__ */ v("div", { className: F(
1787
+ children: /* @__PURE__ */ t(Ys, { header: r, enableColumnOrdering: Ye, children: /* @__PURE__ */ b("div", { className: V(
1776
1788
  g === "right" ? "text-right" : "text-left"
1777
1789
  ), children: [
1778
1790
  r.isPlaceholder ? null : be(
@@ -1788,7 +1800,7 @@ function Eo({
1788
1800
  children: /* @__PURE__ */ t(
1789
1801
  "div",
1790
1802
  {
1791
- className: F(
1803
+ className: V(
1792
1804
  "absolute right-1 top-0 h-full w-1",
1793
1805
  "hover:bg-[var(--color-border-primary-medium)] active:bg-[var(--color-border-primary-medium)]",
1794
1806
  r.column.getIsResizing() && "bg-[var(--color-border-primary-medium)]"
@@ -1806,7 +1818,7 @@ function Eo({
1806
1818
  e.id
1807
1819
  ))
1808
1820
  ) }),
1809
- /* @__PURE__ */ v(Ds, { children: [
1821
+ /* @__PURE__ */ b(Ds, { children: [
1810
1822
  Nn && !A && s.length > 0 && /* @__PURE__ */ t("tr", { className: "absolute top-0 left-0 right-0 z-50 h-0", children: /* @__PURE__ */ t("td", { colSpan: w.getVisibleLeafColumns().length, className: "p-0", children: /* @__PURE__ */ t(Js, {}) }) }),
1811
1823
  Jt ? /* @__PURE__ */ t(G, { showBorder: !1, className: "h-[300px]", children: /* @__PURE__ */ t(
1812
1824
  le,
@@ -1842,12 +1854,12 @@ function Eo({
1842
1854
  w.getRowModel().rows?.length ? (
1843
1855
  // Manual cross-page pinning: organize rows with pinned rows at top/bottom of every page
1844
1856
  (() => {
1845
- if (!Ee || !Vt) {
1846
- const o = /* @__PURE__ */ new Set(), M = w.getRowModel().rows.filter((d) => J || d.depth === 0), $ = (d, z, W) => {
1857
+ if (!Ee || !Ft) {
1858
+ const o = /* @__PURE__ */ new Set(), M = w.getRowModel().rows.filter((d) => J || d.depth === 0), $ = (d, k, H) => {
1847
1859
  if (o.has(d.id)) return null;
1848
1860
  o.add(d.id);
1849
1861
  const q = gr.get(d.id) ?? -1;
1850
- return /* @__PURE__ */ v(l.Fragment, { children: [
1862
+ return /* @__PURE__ */ b(l.Fragment, { children: [
1851
1863
  /* @__PURE__ */ t(
1852
1864
  G,
1853
1865
  {
@@ -1856,7 +1868,7 @@ function Eo({
1856
1868
  "aria-rowindex": q + 2,
1857
1869
  "aria-selected": fe ? d.getIsSelected() : void 0,
1858
1870
  "aria-expanded": d.getCanExpand() ? d.getIsExpanded() : void 0,
1859
- className: F(
1871
+ className: V(
1860
1872
  "group",
1861
1873
  // Selected row styling
1862
1874
  d.getIsSelected() && "bg-[var(--blue-25)]",
@@ -1866,13 +1878,13 @@ function Eo({
1866
1878
  // Nested row background colors (grouped and expanding)
1867
1879
  (() => {
1868
1880
  const j = d.getIsGrouped?.() ? "font-medium" : "", ne = Tr(d, {
1869
- enableGrouping: k,
1881
+ enableGrouping: z,
1870
1882
  enableExpanding: _,
1871
1883
  nestedRowStyling: pt,
1872
1884
  expandingRowColors: O,
1873
1885
  maxDepth: lt
1874
1886
  });
1875
- return F(ne ? `bg-[${ne}]` : "", j);
1887
+ return V(ne ? `bg-[${ne}]` : "", j);
1876
1888
  })(),
1877
1889
  // Row click styling with smart hover
1878
1890
  K && Se(d) && (Gt || "cursor-pointer hover:[background-image:linear-gradient(rgba(0,0,0,0.02),rgba(0,0,0,0.02))]")
@@ -1880,13 +1892,13 @@ function Eo({
1880
1892
  style: {
1881
1893
  height: ro(d.depth, pt)
1882
1894
  },
1883
- onClick: K && Se(d) ? (R) => Dt(d, R) : void 0,
1895
+ onClick: K && Se(d) ? (I) => Dt(d, I) : void 0,
1884
1896
  role: "row",
1885
1897
  "aria-label": K && Se(d) ? `View details for row ${d.id}` : void 0,
1886
- "aria-current": ke(d) ? "true" : void 0,
1887
- children: d.getVisibleCells().map((R, j) => {
1888
- const ne = Ge(R.column, !1, E.showRowBorder), U = j === 0, _e = _ && d.getCanExpand() || k && d.getIsGrouped(), de = d.getIsExpanded(), ue = d.depth, Mt = k && d.getIsGrouped();
1889
- let Re = Wt?.(d);
1898
+ "aria-current": ze(d) ? "true" : void 0,
1899
+ children: d.getVisibleCells().map((I, j) => {
1900
+ const ne = Ge(I.column, !1, E.showRowBorder), U = j === 0, _e = _ && d.getCanExpand() || z && d.getIsGrouped(), de = d.getIsExpanded(), ue = d.depth, Mt = z && d.getIsGrouped();
1901
+ let Re = Ht?.(d);
1890
1902
  if (Re == null)
1891
1903
  for (const oe of d.getVisibleCells()) {
1892
1904
  const ae = oe.column.columnDef.sectionHeaderCell;
@@ -1901,7 +1913,7 @@ function Eo({
1901
1913
  const se = Re != null;
1902
1914
  if (se && !U)
1903
1915
  return null;
1904
- const Z = k && d.depth > 0 && j === 0 && !W;
1916
+ const Z = z && d.depth > 0 && j === 0 && !H;
1905
1917
  return /* @__PURE__ */ t(
1906
1918
  le,
1907
1919
  {
@@ -1910,23 +1922,23 @@ function Eo({
1910
1922
  "data-row": q,
1911
1923
  "data-col": j,
1912
1924
  tabIndex: X[0] === q && X[1] === j ? 0 : -1,
1913
- showBorder: Bt(R.column) || Tt(R.column) ? !1 : E.showCellBorder,
1925
+ showBorder: Bt(I.column) || Tt(I.column) ? !1 : E.showCellBorder,
1914
1926
  showRowBorder: E.showRowBorder,
1915
- verticalAlign: R.column.columnDef.meta?.verticalAlign || Ie,
1927
+ verticalAlign: I.column.columnDef.meta?.verticalAlign || Ie,
1916
1928
  colSpan: se ? d.getVisibleCells().length : void 0,
1917
1929
  "data-section-header": se ? !0 : void 0,
1918
- className: F(
1930
+ className: V(
1919
1931
  // Active row indicator on first cell
1920
- U && ke(d) && (_t || ur(Z ? !1 : E.showRowBorder)),
1932
+ U && ze(d) && (_t || ur(Z ? !1 : E.showRowBorder)),
1921
1933
  // Add sticky border classes for body cells (skip for section headers)
1922
- !se && ss(R.column),
1934
+ !se && ss(I.column),
1923
1935
  // Sticky columns need higher z-index and explicit backgrounds
1924
1936
  Object.keys(ne).length > 0 && [
1925
1937
  "z-10",
1926
1938
  // Match row backgrounds for sticky cells to prevent transparency
1927
1939
  (() => {
1928
1940
  const oe = Tr(d, {
1929
- enableGrouping: k,
1941
+ enableGrouping: z,
1930
1942
  enableExpanding: _,
1931
1943
  nestedRowStyling: pt,
1932
1944
  expandingRowColors: O,
@@ -1938,7 +1950,7 @@ function Eo({
1938
1950
  // Section header background
1939
1951
  se && "bg-[var(--blue-50)]",
1940
1952
  // Remove bottom border from first column child rows (except last), but not when row is active
1941
- Z && !ke(d) && "![box-shadow:none]",
1953
+ Z && !ze(d) && "![box-shadow:none]",
1942
1954
  // Focus ring for keyboard navigation
1943
1955
  "focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-[var(--color-border-brand-bold)]"
1944
1956
  ),
@@ -1952,23 +1964,23 @@ function Eo({
1952
1964
  Re
1953
1965
  ) : Mt ? (
1954
1966
  // Grouped row rendering - only show content in first cell
1955
- U ? Mr(d, w, Xe, de, ye, Ft) : R.column.columnDef.meta?.renderInGroupedRows ? (
1967
+ U ? Mr(d, w, Xe, de, ye, Vt) : I.column.columnDef.meta?.renderInGroupedRows ? (
1956
1968
  // Render custom cell content for columns with renderInGroupedRows flag
1957
- Be(R)
1958
- ) : R.column.columnDef.aggregatedCell ? (
1969
+ Be(I)
1970
+ ) : I.column.columnDef.aggregatedCell ? (
1959
1971
  // Render custom aggregatedCell if defined
1960
- xr(R)
1972
+ xr(I)
1961
1973
  ) : (
1962
1974
  // Calculate and show aggregation for other columns in grouped row
1963
1975
  (() => {
1964
- const oe = kr(
1965
- R.column,
1976
+ const oe = zr(
1977
+ I.column,
1966
1978
  d.subRows,
1967
1979
  d.groupingColumnId
1968
1980
  );
1969
1981
  if (!oe) return /* @__PURE__ */ t("div", {});
1970
- const ae = R.column.columnDef.meta?.align || "left";
1971
- return /* @__PURE__ */ t(Te, { align: ae, children: /* @__PURE__ */ t("span", { className: F(
1982
+ const ae = I.column.columnDef.meta?.align || "left";
1983
+ return /* @__PURE__ */ t(Te, { align: ae, children: /* @__PURE__ */ t("span", { className: V(
1972
1984
  "text-[var(--color-text-secondary)] text-body-sm",
1973
1985
  ae === "right" ? "tabular-nums" : ""
1974
1986
  ), children: oe }) });
@@ -1976,7 +1988,7 @@ function Eo({
1976
1988
  )
1977
1989
  ) : (
1978
1990
  // Regular row rendering
1979
- /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)]", children: [
1991
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)]", children: [
1980
1992
  U && _e && /* @__PURE__ */ t(
1981
1993
  "button",
1982
1994
  {
@@ -1984,7 +1996,7 @@ function Eo({
1984
1996
  onClick: d.getToggleExpandedHandler(),
1985
1997
  className: "flex h-[var(--size-s)] w-[var(--size-s)] cursor-pointer items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
1986
1998
  children: /* @__PURE__ */ t(
1987
- H,
1999
+ W,
1988
2000
  {
1989
2001
  name: de ? "chevron-down" : "chevron-right",
1990
2002
  className: "h-3 w-3"
@@ -1992,7 +2004,7 @@ function Eo({
1992
2004
  )
1993
2005
  }
1994
2006
  ),
1995
- U && Ee && !Mt && /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
2007
+ U && Ee && !Mt && /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
1996
2008
  d.getIsPinned() !== "top" && /* @__PURE__ */ t(
1997
2009
  "button",
1998
2010
  {
@@ -2000,7 +2012,7 @@ function Eo({
2000
2012
  onClick: () => d.pin("top"),
2001
2013
  className: "opacity-0 group-hover:opacity-100 flex h-[var(--size-s)] w-[var(--size-s)] items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2002
2014
  title: "Pin to top",
2003
- children: /* @__PURE__ */ t(H, { name: "arrow-up-to-line", className: "h-3 w-3" })
2015
+ children: /* @__PURE__ */ t(W, { name: "arrow-up-to-line", className: "h-3 w-3" })
2004
2016
  }
2005
2017
  ),
2006
2018
  d.getIsPinned() !== "bottom" && /* @__PURE__ */ t(
@@ -2010,7 +2022,7 @@ function Eo({
2010
2022
  onClick: () => d.pin("bottom"),
2011
2023
  className: "opacity-0 group-hover:opacity-100 flex h-[var(--size-s)] w-[var(--size-s)] items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2012
2024
  title: "Pin to bottom",
2013
- children: /* @__PURE__ */ t(H, { name: "arrow-down-to-line", className: "h-3 w-3" })
2025
+ children: /* @__PURE__ */ t(W, { name: "arrow-down-to-line", className: "h-3 w-3" })
2014
2026
  }
2015
2027
  ),
2016
2028
  d.getIsPinned() && /* @__PURE__ */ t(
@@ -2020,25 +2032,25 @@ function Eo({
2020
2032
  onClick: () => d.pin(!1),
2021
2033
  className: "opacity-0 group-hover:opacity-100 flex h-[var(--size-s)] w-[var(--size-s)] items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2022
2034
  title: "Unpin row",
2023
- children: /* @__PURE__ */ t(H, { name: "x", className: "h-3 w-3" })
2035
+ children: /* @__PURE__ */ t(W, { name: "x", className: "h-3 w-3" })
2024
2036
  }
2025
2037
  )
2026
2038
  ] }),
2027
- U && !_e && !Ee && (_ || k) && /* @__PURE__ */ t("div", { className: "h-[var(--size-s)] w-[var(--size-s)]" }),
2028
- /* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: k && d.depth > 0 && (R.column.id === d.getParentRow()?.groupingColumnId || R.column.id === Xe) ? (
2039
+ U && !_e && !Ee && (_ || z) && /* @__PURE__ */ t("div", { className: "h-[var(--size-s)] w-[var(--size-s)]" }),
2040
+ /* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: z && d.depth > 0 && (I.column.id === d.getParentRow()?.groupingColumnId || I.column.id === Xe) ? (
2029
2041
  // Hide grouped column and groupDisplayColumn in detail rows
2030
2042
  /* @__PURE__ */ t("div", {})
2031
- ) : R.column.columnDef.meta?.truncate !== !1 ? (
2043
+ ) : I.column.columnDef.meta?.truncate !== !1 ? (
2032
2044
  // Wrap in TruncatedCell for overflow handling with tooltip
2033
- /* @__PURE__ */ t(Te, { align: R.column.columnDef.meta?.align, children: Be(R) })
2045
+ /* @__PURE__ */ t(Te, { align: I.column.columnDef.meta?.align, children: Be(I) })
2034
2046
  ) : (
2035
2047
  // No truncation for this column
2036
- Be(R)
2048
+ Be(I)
2037
2049
  ) })
2038
2050
  ] })
2039
2051
  )
2040
2052
  },
2041
- R.id
2053
+ I.id
2042
2054
  );
2043
2055
  })
2044
2056
  }
@@ -2051,7 +2063,7 @@ function Eo({
2051
2063
  showRowBorder: E.showRowBorder,
2052
2064
  verticalAlign: Ie,
2053
2065
  className: "py-[var(--space-m)]",
2054
- children: /* @__PURE__ */ v("div", { className: "flex items-center justify-center gap-[var(--space-s)]", children: [
2066
+ children: /* @__PURE__ */ b("div", { className: "flex items-center justify-center gap-[var(--space-s)]", children: [
2055
2067
  /* @__PURE__ */ t(qe, { size: "s" }),
2056
2068
  /* @__PURE__ */ t("span", { className: "text-body-sm text-[var(--color-text-secondary)]", children: "Loading..." })
2057
2069
  ] })
@@ -2066,9 +2078,9 @@ function Eo({
2066
2078
  verticalAlign: Ie,
2067
2079
  className: "p-0",
2068
2080
  "data-section-header": !0,
2069
- children: Yt?.[d.id] ? /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-[var(--space-l)] gap-[var(--space-s)]", children: [
2070
- /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)] text-[var(--color-text-danger)]", children: [
2071
- /* @__PURE__ */ t(H, { name: "alert-circle", className: "h-4 w-4" }),
2081
+ children: Yt?.[d.id] ? /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center py-[var(--space-l)] gap-[var(--space-s)]", children: [
2082
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)] text-[var(--color-text-danger)]", children: [
2083
+ /* @__PURE__ */ t(W, { name: "alert-circle", className: "h-4 w-4" }),
2072
2084
  /* @__PURE__ */ t("span", { className: "text-body-sm", children: Yt[d.id]?.message || "Failed to load details" })
2073
2085
  ] }),
2074
2086
  De && /* @__PURE__ */ t(
@@ -2079,7 +2091,7 @@ function Eo({
2079
2091
  children: "Try again"
2080
2092
  }
2081
2093
  )
2082
- ] }) : nt?.[d.id] ? /* @__PURE__ */ v("div", { className: "flex items-center justify-center py-[var(--space-l)]", children: [
2094
+ ] }) : nt?.[d.id] ? /* @__PURE__ */ b("div", { className: "flex items-center justify-center py-[var(--space-l)]", children: [
2083
2095
  /* @__PURE__ */ t(qe, { size: "s" }),
2084
2096
  /* @__PURE__ */ t("span", { className: "ml-[var(--space-s)] text-body-sm text-[var(--color-text-secondary)]", children: "Loading details..." })
2085
2097
  ] }) : J(d)
@@ -2087,35 +2099,35 @@ function Eo({
2087
2099
  ) }),
2088
2100
  (() => {
2089
2101
  if (J) return null;
2090
- const R = d.subRows && d.subRows.length > 0 ? d.subRows : it?.get(d.id) || [];
2091
- if (R.length === 0) return null;
2102
+ const I = d.subRows && d.subRows.length > 0 ? d.subRows : it?.get(d.id) || [];
2103
+ if (I.length === 0) return null;
2092
2104
  let j = d.getIsExpanded();
2093
- return !j && Q === !0 && d.getCanExpand() && (j = !0), !j && typeof Q == "object" && Q !== null && Q[d.id] && (j = !0), j ? R.map(
2094
- (ne, U) => $(ne, U, U === R.length - 1)
2105
+ return !j && Q === !0 && d.getCanExpand() && (j = !0), !j && typeof Q == "object" && Q !== null && Q[d.id] && (j = !0), j ? I.map(
2106
+ (ne, U) => $(ne, U, U === I.length - 1)
2095
2107
  ) : null;
2096
2108
  })()
2097
2109
  ] }, d.id);
2098
2110
  };
2099
2111
  return M.map(
2100
- (d, z) => $(d, z, z === M.length - 1)
2112
+ (d, k) => $(d, k, k === M.length - 1)
2101
2113
  );
2102
2114
  }
2103
2115
  const e = w.getCoreRowModel().rows, r = w.getRowModel().rows, n = e.filter((o) => o.getIsPinned() === "top"), u = e.filter((o) => o.getIsPinned() === "bottom"), g = r.filter((o) => !o.getIsPinned()), m = [
2104
2116
  ...n,
2105
2117
  ...g,
2106
2118
  ...u
2107
- ], S = /* @__PURE__ */ new Set(), B = m.filter((o) => J || o.depth === 0), V = (o, M, $) => {
2119
+ ], S = /* @__PURE__ */ new Set(), B = m.filter((o) => J || o.depth === 0), F = (o, M, $) => {
2108
2120
  if (S.has(o.id)) return null;
2109
2121
  S.add(o.id);
2110
2122
  const d = gr.get(o.id) ?? -1;
2111
- return /* @__PURE__ */ v(l.Fragment, { children: [
2123
+ return /* @__PURE__ */ b(l.Fragment, { children: [
2112
2124
  /* @__PURE__ */ t(
2113
2125
  G,
2114
2126
  {
2115
2127
  "data-state": o.getIsSelected() && "selected",
2116
2128
  showBorder: E.showRowBorder,
2117
2129
  "aria-rowindex": d + 2,
2118
- className: F(
2130
+ className: V(
2119
2131
  "group",
2120
2132
  // Selected row styling
2121
2133
  o.getIsSelected() && "bg-[var(--blue-25)]",
@@ -2126,10 +2138,10 @@ function Eo({
2126
2138
  o.getIsGrouped?.() && o.getIsExpanded() && "bg-[var(--blue-50)] font-medium",
2127
2139
  o.getIsGrouped?.() && !o.getIsExpanded() && "bg-[var(--color-background-neutral-subtlest)] font-medium",
2128
2140
  // Second level (children of grouped rows) - blue-25
2129
- k && o.depth === 1 && "bg-[var(--blue-25)]",
2141
+ z && o.depth === 1 && "bg-[var(--blue-25)]",
2130
2142
  // Bottom-up alternating colors for expanding rows (only when expanded)
2131
2143
  _ && !o.getIsGrouped?.() && (() => {
2132
- const z = o.subRows && o.subRows.length > 0, W = () => {
2144
+ const k = o.subRows && o.subRows.length > 0, H = () => {
2133
2145
  let j = o;
2134
2146
  for (; j; ) {
2135
2147
  if (j.getIsExpanded()) return !0;
@@ -2137,9 +2149,9 @@ function Eo({
2137
2149
  }
2138
2150
  return !1;
2139
2151
  };
2140
- if (o.depth === 0 && (!z || !W()))
2152
+ if (o.depth === 0 && (!k || !H()))
2141
2153
  return "";
2142
- const q = lt - o.depth, R = q % 2 === 0 ? "bg-[var(--blue-25)]" : "bg-[var(--blue-50)]";
2154
+ const q = lt - o.depth, I = q % 2 === 0 ? "bg-[var(--blue-25)]" : "bg-[var(--blue-50)]";
2143
2155
  if (O) {
2144
2156
  if (q === 0 && O.children)
2145
2157
  return `bg-[${O.children}]`;
@@ -2148,18 +2160,18 @@ function Eo({
2148
2160
  if (q > 0 && !o.getIsExpanded() && O.collapsedParent)
2149
2161
  return `bg-[${O.collapsedParent}]`;
2150
2162
  }
2151
- return R;
2163
+ return I;
2152
2164
  })(),
2153
2165
  // Row click styling with smart hover
2154
2166
  K && Se(o) && (Gt || "cursor-pointer hover:[background-image:linear-gradient(rgba(0,0,0,0.02),rgba(0,0,0,0.02))]")
2155
2167
  ),
2156
- onClick: K && Se(o) ? (z) => Dt(o, z) : void 0,
2168
+ onClick: K && Se(o) ? (k) => Dt(o, k) : void 0,
2157
2169
  role: "row",
2158
2170
  "aria-label": K && Se(o) ? `View details for row ${o.id}` : void 0,
2159
- "aria-current": ke(o) ? "true" : void 0,
2160
- children: o.getVisibleCells().map((z, W) => {
2161
- const q = Ge(z.column, !1, E.showRowBorder), R = W === 0, j = _ && o.getCanExpand() || k && o.getIsGrouped(), ne = o.getIsExpanded(), U = o.depth, _e = k && o.getIsGrouped();
2162
- let de = Wt?.(o);
2171
+ "aria-current": ze(o) ? "true" : void 0,
2172
+ children: o.getVisibleCells().map((k, H) => {
2173
+ const q = Ge(k.column, !1, E.showRowBorder), I = H === 0, j = _ && o.getCanExpand() || z && o.getIsGrouped(), ne = o.getIsExpanded(), U = o.depth, _e = z && o.getIsGrouped();
2174
+ let de = Ht?.(o);
2163
2175
  if (de == null)
2164
2176
  for (const pe of o.getVisibleCells()) {
2165
2177
  const ve = pe.column.columnDef.sectionHeaderCell;
@@ -2172,24 +2184,24 @@ function Eo({
2172
2184
  }
2173
2185
  }
2174
2186
  const ue = de != null;
2175
- if (ue && !R)
2187
+ if (ue && !I)
2176
2188
  return null;
2177
- const se = k && o.depth > 0 && W === 0 && !$;
2189
+ const se = z && o.depth > 0 && H === 0 && !$;
2178
2190
  return /* @__PURE__ */ t(
2179
2191
  le,
2180
2192
  {
2181
2193
  role: "gridcell",
2182
- "aria-colindex": W + 1,
2194
+ "aria-colindex": H + 1,
2183
2195
  "data-row": d,
2184
- "data-col": W,
2185
- tabIndex: X[0] === d && X[1] === W ? 0 : -1,
2196
+ "data-col": H,
2197
+ tabIndex: X[0] === d && X[1] === H ? 0 : -1,
2186
2198
  showBorder: E.showCellBorder,
2187
2199
  showRowBorder: E.showRowBorder,
2188
- verticalAlign: z.column.columnDef.meta?.verticalAlign || Ie,
2200
+ verticalAlign: k.column.columnDef.meta?.verticalAlign || Ie,
2189
2201
  colSpan: ue ? o.getVisibleCells().length : void 0,
2190
- className: F(
2202
+ className: V(
2191
2203
  // Active row indicator on first cell
2192
- R && ke(o) && (_t || ur(se ? !1 : E.showRowBorder)),
2204
+ I && ze(o) && (_t || ur(se ? !1 : E.showRowBorder)),
2193
2205
  // Focus ring for keyboard navigation
2194
2206
  "focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-[var(--color-border-brand-bold)]",
2195
2207
  // Sticky columns need higher z-index and explicit backgrounds
@@ -2201,7 +2213,7 @@ function Eo({
2201
2213
  // Grouped collapsed rows
2202
2214
  o.getIsGrouped?.() && !o.getIsExpanded() && "bg-[var(--color-background-neutral-subtlest)]",
2203
2215
  // Second level rows (children of grouped rows)
2204
- k && o.depth === 1 && "bg-[var(--blue-25)]",
2216
+ z && o.depth === 1 && "bg-[var(--blue-25)]",
2205
2217
  // Bottom-up alternating colors for expanding rows (only when expanded)
2206
2218
  _ && !o.getIsGrouped?.() && (() => {
2207
2219
  const pe = o.subRows && o.subRows.length > 0, ve = () => {
@@ -2226,43 +2238,43 @@ function Eo({
2226
2238
  return oe;
2227
2239
  })(),
2228
2240
  // Default rows (not grouped, not expanding)
2229
- !o.getIsGrouped?.() && !(k && o.depth === 1) && !_ && "bg-[var(--color-surface-primary)]"
2241
+ !o.getIsGrouped?.() && !(z && o.depth === 1) && !_ && "bg-[var(--color-surface-primary)]"
2230
2242
  ],
2231
2243
  // Section header background
2232
2244
  ue && "bg-[var(--blue-50)]",
2233
2245
  // Remove bottom border from first column child rows (except last), but not when row is active
2234
- se && !ke(o) && "![box-shadow:none]"
2246
+ se && !ze(o) && "![box-shadow:none]"
2235
2247
  ),
2236
2248
  style: {
2237
2249
  ...q,
2238
- width: z.column.getSize(),
2250
+ width: k.column.getSize(),
2239
2251
  // Section header: fixed height with no padding
2240
2252
  ...ue ? { height: "32px", padding: "0" } : {},
2241
2253
  // Add left padding for nested rows
2242
- paddingLeft: R && U > 0 && !ue ? `calc(var(--space-m) + ${U * 20}px)` : void 0
2254
+ paddingLeft: I && U > 0 && !ue ? `calc(var(--space-m) + ${U * 20}px)` : void 0
2243
2255
  },
2244
2256
  children: ue ? (
2245
2257
  // Section header row - render custom content
2246
2258
  de
2247
2259
  ) : _e ? (
2248
2260
  // Grouped row rendering - only show content in first cell
2249
- R ? Mr(o, w, Xe, ne, ye, Ft) : z.column.columnDef.meta?.renderInGroupedRows ? (
2261
+ I ? Mr(o, w, Xe, ne, ye, Vt) : k.column.columnDef.meta?.renderInGroupedRows ? (
2250
2262
  // Render custom cell content for columns with renderInGroupedRows flag
2251
- Be(z)
2252
- ) : z.column.columnDef.aggregatedCell ? (
2263
+ Be(k)
2264
+ ) : k.column.columnDef.aggregatedCell ? (
2253
2265
  // Render custom aggregatedCell if defined
2254
- xr(z)
2266
+ xr(k)
2255
2267
  ) : (
2256
2268
  // Calculate and show aggregation for other columns in grouped row
2257
2269
  (() => {
2258
- const pe = kr(
2259
- z.column,
2270
+ const pe = zr(
2271
+ k.column,
2260
2272
  o.subRows,
2261
2273
  o.groupingColumnId
2262
2274
  );
2263
2275
  if (!pe) return /* @__PURE__ */ t("div", {});
2264
- const ve = z.column.columnDef.meta?.align || "left";
2265
- return /* @__PURE__ */ t(Te, { align: ve, children: /* @__PURE__ */ t("span", { className: F(
2276
+ const ve = k.column.columnDef.meta?.align || "left";
2277
+ return /* @__PURE__ */ t(Te, { align: ve, children: /* @__PURE__ */ t("span", { className: V(
2266
2278
  "text-[var(--color-text-secondary)] text-body-sm",
2267
2279
  ve === "right" ? "tabular-nums" : ""
2268
2280
  ), children: pe }) });
@@ -2270,14 +2282,14 @@ function Eo({
2270
2282
  )
2271
2283
  ) : (
2272
2284
  // Regular row rendering
2273
- /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-s)]", children: [
2274
- R && j && /* @__PURE__ */ t(
2285
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-[var(--space-s)]", children: [
2286
+ I && j && /* @__PURE__ */ t(
2275
2287
  "button",
2276
2288
  {
2277
2289
  onClick: o.getToggleExpandedHandler(),
2278
2290
  className: "flex h-[var(--size-s)] w-[var(--size-s)] cursor-pointer items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2279
2291
  children: /* @__PURE__ */ t(
2280
- H,
2292
+ W,
2281
2293
  {
2282
2294
  name: ne ? "chevron-down" : "chevron-right",
2283
2295
  className: "h-3 w-3"
@@ -2285,14 +2297,14 @@ function Eo({
2285
2297
  )
2286
2298
  }
2287
2299
  ),
2288
- R && Ee && !_e && /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
2300
+ I && Ee && !_e && /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
2289
2301
  o.getIsPinned() !== "top" && /* @__PURE__ */ t(
2290
2302
  "button",
2291
2303
  {
2292
2304
  onClick: () => o.pin("top"),
2293
2305
  className: "opacity-0 group-hover:opacity-100 flex h-[var(--size-s)] w-[var(--size-s)] items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2294
2306
  title: "Pin to top",
2295
- children: /* @__PURE__ */ t(H, { name: "arrow-up-to-line", className: "h-3 w-3" })
2307
+ children: /* @__PURE__ */ t(W, { name: "arrow-up-to-line", className: "h-3 w-3" })
2296
2308
  }
2297
2309
  ),
2298
2310
  o.getIsPinned() !== "bottom" && /* @__PURE__ */ t(
@@ -2301,7 +2313,7 @@ function Eo({
2301
2313
  onClick: () => o.pin("bottom"),
2302
2314
  className: "opacity-0 group-hover:opacity-100 flex h-[var(--size-s)] w-[var(--size-s)] items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2303
2315
  title: "Pin to bottom",
2304
- children: /* @__PURE__ */ t(H, { name: "arrow-down-to-line", className: "h-3 w-3" })
2316
+ children: /* @__PURE__ */ t(W, { name: "arrow-down-to-line", className: "h-3 w-3" })
2305
2317
  }
2306
2318
  ),
2307
2319
  o.getIsPinned() && /* @__PURE__ */ t(
@@ -2310,25 +2322,25 @@ function Eo({
2310
2322
  onClick: () => o.pin(!1),
2311
2323
  className: "opacity-0 group-hover:opacity-100 flex h-[var(--size-s)] w-[var(--size-s)] items-center justify-center rounded-s text-[var(--color-text-secondary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
2312
2324
  title: "Unpin row",
2313
- children: /* @__PURE__ */ t(H, { name: "x", className: "h-3 w-3" })
2325
+ children: /* @__PURE__ */ t(W, { name: "x", className: "h-3 w-3" })
2314
2326
  }
2315
2327
  )
2316
2328
  ] }),
2317
- R && !j && !Ee && (_ || k) && /* @__PURE__ */ t("div", { className: "h-[var(--size-s)] w-[var(--size-s)]" }),
2318
- /* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: k && o.depth > 0 && (z.column.id === o.getParentRow()?.groupingColumnId || z.column.id === Xe) ? (
2329
+ I && !j && !Ee && (_ || z) && /* @__PURE__ */ t("div", { className: "h-[var(--size-s)] w-[var(--size-s)]" }),
2330
+ /* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: z && o.depth > 0 && (k.column.id === o.getParentRow()?.groupingColumnId || k.column.id === Xe) ? (
2319
2331
  // Hide grouped column and groupDisplayColumn in detail rows
2320
2332
  /* @__PURE__ */ t("div", {})
2321
- ) : z.column.columnDef.meta?.truncate !== !1 ? (
2333
+ ) : k.column.columnDef.meta?.truncate !== !1 ? (
2322
2334
  // Wrap in TruncatedCell for overflow handling with tooltip
2323
- /* @__PURE__ */ t(Te, { align: z.column.columnDef.meta?.align, children: Be(z) })
2335
+ /* @__PURE__ */ t(Te, { align: k.column.columnDef.meta?.align, children: Be(k) })
2324
2336
  ) : (
2325
2337
  // No truncation for this column
2326
- Be(z)
2338
+ Be(k)
2327
2339
  ) })
2328
2340
  ] })
2329
2341
  )
2330
2342
  },
2331
- z.id
2343
+ k.id
2332
2344
  );
2333
2345
  })
2334
2346
  }
@@ -2341,7 +2353,7 @@ function Eo({
2341
2353
  showRowBorder: E.showRowBorder,
2342
2354
  verticalAlign: Ie,
2343
2355
  className: "py-[var(--space-m)]",
2344
- children: /* @__PURE__ */ v("div", { className: "flex items-center justify-center gap-[var(--space-s)]", children: [
2356
+ children: /* @__PURE__ */ b("div", { className: "flex items-center justify-center gap-[var(--space-s)]", children: [
2345
2357
  /* @__PURE__ */ t(qe, { size: "s" }),
2346
2358
  /* @__PURE__ */ t("span", { className: "text-body-sm text-[var(--color-text-secondary)]", children: "Loading..." })
2347
2359
  ] })
@@ -2356,7 +2368,7 @@ function Eo({
2356
2368
  verticalAlign: Ie,
2357
2369
  className: "p-0",
2358
2370
  "data-section-header": !0,
2359
- children: nt?.[o.id] ? /* @__PURE__ */ v("div", { className: "flex items-center justify-center py-[var(--space-l)]", children: [
2371
+ children: nt?.[o.id] ? /* @__PURE__ */ b("div", { className: "flex items-center justify-center py-[var(--space-l)]", children: [
2360
2372
  /* @__PURE__ */ t(qe, { size: "s" }),
2361
2373
  /* @__PURE__ */ t("span", { className: "ml-[var(--space-s)] text-body-sm text-[var(--color-text-secondary)]", children: "Loading details..." })
2362
2374
  ] }) : J(o)
@@ -2364,17 +2376,17 @@ function Eo({
2364
2376
  ) }),
2365
2377
  (() => {
2366
2378
  if (J) return null;
2367
- const z = o.subRows && o.subRows.length > 0 ? o.subRows : it?.get(o.id) || [];
2368
- if (z.length === 0) return null;
2369
- let W = o.getIsExpanded();
2370
- return !W && Q === !0 && o.getCanExpand() && (W = !0), !W && typeof Q == "object" && Q !== null && Q[o.id] && (W = !0), W ? z.map(
2371
- (q, R) => V(q, R, R === z.length - 1)
2379
+ const k = o.subRows && o.subRows.length > 0 ? o.subRows : it?.get(o.id) || [];
2380
+ if (k.length === 0) return null;
2381
+ let H = o.getIsExpanded();
2382
+ return !H && Q === !0 && o.getCanExpand() && (H = !0), !H && typeof Q == "object" && Q !== null && Q[o.id] && (H = !0), H ? k.map(
2383
+ (q, I) => F(q, I, I === k.length - 1)
2372
2384
  ) : null;
2373
2385
  })()
2374
2386
  ] }, o.id);
2375
2387
  };
2376
2388
  return B.map(
2377
- (o, M) => V(o, M, M === B.length - 1)
2389
+ (o, M) => F(o, M, M === B.length - 1)
2378
2390
  );
2379
2391
  })()
2380
2392
  ) : (
@@ -2382,7 +2394,7 @@ function Eo({
2382
2394
  Zt.length > 0 || St !== "" ? /* @__PURE__ */ t(G, { showBorder: !1, className: "h-[300px]", children: /* @__PURE__ */ t(
2383
2395
  le,
2384
2396
  {
2385
- colSpan: zt.length,
2397
+ colSpan: kt.length,
2386
2398
  className: "text-center",
2387
2399
  showBorder: !1,
2388
2400
  showRowBorder: !1,
@@ -2399,7 +2411,7 @@ function Eo({
2399
2411
  ) }) : /* @__PURE__ */ t(G, { showBorder: !1, className: "h-[300px]", children: /* @__PURE__ */ t(
2400
2412
  le,
2401
2413
  {
2402
- colSpan: zt.length,
2414
+ colSpan: kt.length,
2403
2415
  className: "text-center",
2404
2416
  showBorder: !1,
2405
2417
  showRowBorder: !1,
@@ -2427,7 +2439,7 @@ function Eo({
2427
2439
  Zs,
2428
2440
  {
2429
2441
  table: w,
2430
- enableGrouping: k,
2442
+ enableGrouping: z,
2431
2443
  hideChildrenForSingleItemGroups: ye,
2432
2444
  footerLabel: tn,
2433
2445
  onNextPageHover: dn,
@@ -2448,12 +2460,14 @@ function Eo({
2448
2460
  ) });
2449
2461
  }
2450
2462
  export {
2451
- Eo as DataTable,
2463
+ ko as DataTable,
2464
+ Do as DataTableColumnHeader,
2452
2465
  Qs as DataTableFilter,
2453
2466
  Zs as DataTablePagination,
2454
2467
  Br as DataTableSkeleton,
2455
2468
  Ks as DataTableToolbar,
2456
2469
  Rr as fuzzyFilter,
2470
+ Eo as groupPreservingGlobalFilter,
2457
2471
  Ls as multiSelectFilter,
2458
- ko as useReactTable
2472
+ To as useReactTable
2459
2473
  };