@devalok/shilp-sutra 0.22.2 → 0.23.0

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 (79) hide show
  1. package/dist/_chunks/tree-view.js +26 -26
  2. package/dist/_chunks/use-calendar.js +106 -106
  3. package/dist/composed/activity-feed.js +10 -10
  4. package/dist/composed/avatar-group.js +74 -75
  5. package/dist/composed/command-palette.js +8 -8
  6. package/dist/composed/content-card.js +10 -10
  7. package/dist/composed/empty-state.js +6 -6
  8. package/dist/composed/error-boundary.js +2 -2
  9. package/dist/composed/loading-skeleton.js +83 -83
  10. package/dist/composed/member-picker.js +6 -6
  11. package/dist/composed/page-skeletons.js +5 -5
  12. package/dist/composed/rich-text-editor.js +63 -63
  13. package/dist/composed/schedule-view.js +26 -26
  14. package/dist/composed/status-badge.js +8 -8
  15. package/dist/shell/bottom-navbar.js +4 -4
  16. package/dist/shell/notification-center.js +29 -29
  17. package/dist/shell/notification-preferences.js +2 -2
  18. package/dist/shell/sidebar.js +6 -6
  19. package/dist/shell/top-bar.js +71 -71
  20. package/dist/tailwind/index.cjs +33 -11
  21. package/dist/tailwind/preset.d.ts.map +1 -1
  22. package/dist/tailwind/preset.js +33 -11
  23. package/dist/tokens/primitives.css +2 -0
  24. package/dist/tokens/semantic.css +83 -14
  25. package/dist/tokens/typography.css +1 -1
  26. package/dist/ui/accordion.js +1 -1
  27. package/dist/ui/alert-dialog.js +32 -32
  28. package/dist/ui/alert.js +12 -12
  29. package/dist/ui/autocomplete.js +16 -16
  30. package/dist/ui/avatar.d.ts.map +1 -1
  31. package/dist/ui/avatar.js +81 -74
  32. package/dist/ui/badge.js +2 -2
  33. package/dist/ui/banner.js +1 -1
  34. package/dist/ui/button.js +8 -8
  35. package/dist/ui/card.d.ts +1 -1
  36. package/dist/ui/card.js +10 -10
  37. package/dist/ui/charts/index.js +312 -312
  38. package/dist/ui/checkbox.js +3 -3
  39. package/dist/ui/chip.js +4 -4
  40. package/dist/ui/code.js +2 -2
  41. package/dist/ui/color-input.js +1 -1
  42. package/dist/ui/combobox.js +37 -37
  43. package/dist/ui/context-menu.js +6 -6
  44. package/dist/ui/data-table-toolbar.js +18 -18
  45. package/dist/ui/data-table.js +132 -132
  46. package/dist/ui/dialog.js +12 -12
  47. package/dist/ui/dropdown-menu.js +67 -67
  48. package/dist/ui/file-upload.js +3 -3
  49. package/dist/ui/hover-card.js +13 -13
  50. package/dist/ui/input-otp.js +9 -9
  51. package/dist/ui/input.js +10 -10
  52. package/dist/ui/menubar.js +33 -33
  53. package/dist/ui/navigation-menu.js +52 -52
  54. package/dist/ui/number-input.js +14 -14
  55. package/dist/ui/pagination.js +25 -25
  56. package/dist/ui/popover.js +17 -17
  57. package/dist/ui/progress.js +1 -1
  58. package/dist/ui/radio.js +2 -2
  59. package/dist/ui/search-input.js +3 -3
  60. package/dist/ui/segmented-control.d.ts +1 -1
  61. package/dist/ui/segmented-control.js +16 -16
  62. package/dist/ui/select.js +17 -17
  63. package/dist/ui/sheet.js +21 -21
  64. package/dist/ui/sidebar.js +13 -13
  65. package/dist/ui/slider.js +2 -2
  66. package/dist/ui/stat-card.js +52 -52
  67. package/dist/ui/stepper.js +1 -1
  68. package/dist/ui/switch.js +11 -11
  69. package/dist/ui/table.js +19 -19
  70. package/dist/ui/tabs.js +2 -2
  71. package/dist/ui/textarea.js +6 -6
  72. package/dist/ui/toast.js +3 -3
  73. package/dist/ui/toggle.js +7 -7
  74. package/dist/ui/tooltip.js +17 -17
  75. package/docs/components/composed/avatar-group.md +5 -0
  76. package/docs/components/ui/avatar.md +4 -0
  77. package/llms-full.txt +10 -1
  78. package/llms.txt +66 -5
  79. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { jsxs as d, jsx as n } from "react/jsx-runtime";
3
- import nt, { useState as u, useRef as V, useEffect as D, useCallback as j, useMemo as lt } from "react";
4
- import { useReactTable as st, getExpandedRowModel as ot, getPaginationRowModel as at, getFilteredRowModel as ct, getSortedRowModel as rt, getCoreRowModel as dt, flexRender as te } from "@tanstack/react-table";
3
+ import nt, { useState as u, useRef as V, useEffect as D, useCallback as j, useMemo as st } from "react";
4
+ import { useReactTable as lt, getExpandedRowModel as at, getPaginationRowModel as ot, getFilteredRowModel as rt, getSortedRowModel as ct, getCoreRowModel as dt, flexRender as te } from "@tanstack/react-table";
5
5
  import { useVirtualizer as it } from "@tanstack/react-virtual";
6
6
  import { IconArrowUp as ut, IconArrowDown as ft, IconArrowsSort as mt, IconSearch as gt, IconChevronLeft as pt, IconChevronRight as Ne, IconX as ht } from "@tabler/icons-react";
7
7
  import { Table as bt, TableHeader as xt, TableRow as z, TableHead as we, TableBody as A, TableCell as O } from "./table.js";
8
8
  import { Button as yt } from "./button.js";
9
9
  import { Checkbox as ke } from "./checkbox.js";
10
10
  import { Skeleton as Re } from "./skeleton.js";
11
- import { cn as a } from "./lib/utils.js";
11
+ import { cn as o } from "./lib/utils.js";
12
12
  import { springs as ne } from "./lib/motion.js";
13
13
  import { DataTableToolbar as St } from "./data-table-toolbar.js";
14
- import { A as Ct, m as le } from "../_chunks/framer.js";
14
+ import { A as Ct, m as se } from "../_chunks/framer.js";
15
15
  const Nt = {
16
16
  compact: "py-ds-02",
17
17
  standard: "py-ds-05",
@@ -41,9 +41,9 @@ function wt({
41
41
  onKeyDown: (i) => {
42
42
  i.key === "Enter" ? (i.preventDefault(), h()) : i.key === "Escape" && (i.preventDefault(), K());
43
43
  },
44
- className: a(
44
+ className: o(
45
45
  "h-ds-xs-plus w-full rounded-ds-md",
46
- "border border-accent-7 bg-surface-3",
46
+ "border border-accent-7 bg-surface-raised-hover",
47
47
  "px-ds-02 text-ds-sm",
48
48
  "text-surface-fg placeholder:text-surface-fg-subtle",
49
49
  "outline-none focus:border-accent-7"
@@ -66,31 +66,31 @@ function Rt({
66
66
  pageSizeOptions: ze,
67
67
  selectable: C = !1,
68
68
  onSelectionChange: G,
69
- toolbar: se = !1,
69
+ toolbar: le = !1,
70
70
  density: De = "standard",
71
71
  columnPinning: N,
72
72
  editable: Ie = !1,
73
73
  onCellEdit: L,
74
74
  expandable: $ = !1,
75
- renderExpanded: oe,
75
+ renderExpanded: ae,
76
76
  virtualRows: b = !1,
77
77
  virtualRowHeight: Ee = 48,
78
78
  maxHeight: Fe = 600,
79
79
  onSort: F,
80
- emptyState: ae,
80
+ emptyState: oe,
81
81
  loading: Te = !1,
82
82
  selectedIds: Y,
83
- selectableFilter: ce,
83
+ selectableFilter: re,
84
84
  getRowId: g,
85
- pagination: s,
85
+ pagination: l,
86
86
  singleExpand: U = !1,
87
87
  stickyHeader: Me = !1,
88
88
  onRowClick: T,
89
89
  bulkActions: _
90
90
  }) {
91
- const [Ve, re] = u([]), [je, $e] = u([]), [W, X] = u(""), [_e, q] = u({
92
- pageIndex: s ? s.page - 1 : 0,
93
- pageSize: (s == null ? void 0 : s.pageSize) ?? E ?? 10
91
+ const [Ve, ce] = u([]), [je, $e] = u([]), [W, X] = u(""), [_e, q] = u({
92
+ pageIndex: l ? l.page - 1 : 0,
93
+ pageSize: (l == null ? void 0 : l.pageSize) ?? E ?? 10
94
94
  }), [x, de] = u({}), [He, Ae] = u({}), [ie, Oe] = u({
95
95
  left: (N == null ? void 0 : N.left) ?? [],
96
96
  right: (N == null ? void 0 : N.right) ?? []
@@ -104,39 +104,39 @@ function Rt({
104
104
  }), de(e);
105
105
  }
106
106
  }, [Y]), D(() => {
107
- s && q((e) => ({
107
+ l && q((e) => ({
108
108
  ...e,
109
- pageIndex: s.page - 1,
110
- pageSize: s.pageSize
109
+ pageIndex: l.page - 1,
110
+ pageSize: l.pageSize
111
111
  }));
112
- }, [s == null ? void 0 : s.page, s == null ? void 0 : s.pageSize]);
112
+ }, [l == null ? void 0 : l.page, l == null ? void 0 : l.pageSize]);
113
113
  const Ge = j(
114
114
  (e) => {
115
- re((t) => {
116
- const l = typeof e == "function" ? e(t) : e;
117
- return F && (l.length === 0 && t.length > 0 ? F(t[0].id, !1) : l.length > 0 && F(l[0].id, l[0].desc ? "desc" : "asc")), l;
115
+ ce((t) => {
116
+ const s = typeof e == "function" ? e(t) : e;
117
+ return F && (s.length === 0 && t.length > 0 ? F(t[0].id, !1) : s.length > 0 && F(s[0].id, s[0].desc ? "desc" : "asc")), s;
118
118
  });
119
119
  },
120
120
  [F]
121
121
  ), Le = j(
122
122
  (e) => {
123
123
  fe((t) => {
124
- const l = typeof e == "function" ? e(t) : e;
125
- if (!U || l === !0 || typeof l != "object") return l;
126
- const o = typeof t == "object" ? Object.keys(t).filter((m) => t[m]) : [], R = Object.keys(l).filter((m) => l[m]).filter((m) => !o.includes(m));
127
- return R.length > 0 ? { [R[R.length - 1]]: !0 } : l;
124
+ const s = typeof e == "function" ? e(t) : e;
125
+ if (!U || s === !0 || typeof s != "object") return s;
126
+ const a = typeof t == "object" ? Object.keys(t).filter((m) => t[m]) : [], R = Object.keys(s).filter((m) => s[m]).filter((m) => !a.includes(m));
127
+ return R.length > 0 ? { [R[R.length - 1]]: !0 } : s;
128
128
  });
129
129
  },
130
130
  [U]
131
- ), Z = V(s == null ? void 0 : s.onPageChange);
131
+ ), Z = V(l == null ? void 0 : l.onPageChange);
132
132
  D(() => {
133
- Z.current = s == null ? void 0 : s.onPageChange;
134
- }, [s == null ? void 0 : s.onPageChange]);
133
+ Z.current = l == null ? void 0 : l.onPageChange;
134
+ }, [l == null ? void 0 : l.onPageChange]);
135
135
  const Ye = j(
136
136
  (e) => {
137
137
  q((t) => {
138
- const l = typeof e == "function" ? e(t) : e;
139
- return Z.current && l.pageIndex !== t.pageIndex && Z.current(l.pageIndex + 1), l;
138
+ const s = typeof e == "function" ? e(t) : e;
139
+ return Z.current && s.pageIndex !== t.pageIndex && Z.current(s.pageIndex + 1), s;
140
140
  });
141
141
  },
142
142
  []
@@ -172,12 +172,12 @@ function Rt({
172
172
  type: "button",
173
173
  onClick: () => e.toggleExpanded(),
174
174
  "aria-label": e.getIsExpanded() ? "Collapse row" : "Expand row",
175
- className: "flex items-center justify-center p-ds-01 rounded-ds-sm hover:bg-surface-2 transition-colors",
175
+ className: "flex items-center justify-center p-ds-01 rounded-ds-sm hover:bg-surface-raised transition-colors",
176
176
  children: /* @__PURE__ */ n(
177
177
  Ne,
178
178
  {
179
179
  size: 16,
180
- className: a(
180
+ className: o(
181
181
  "transition-transform duration-moderate-02",
182
182
  e.getIsExpanded() && "rotate-90"
183
183
  ),
@@ -193,12 +193,12 @@ function Rt({
193
193
  ...C ? [Ue] : [],
194
194
  ...$ ? [We] : [],
195
195
  ...B
196
- ], M = !!s, v = i || M, y = {
196
+ ], M = !!l, v = i || M, y = {
197
197
  columnVisibility: He,
198
198
  columnPinning: ie
199
199
  };
200
200
  S && (y.sorting = Ve), (p || h) && (y.columnFilters = je, y.globalFilter = W), v && (y.pagination = _e), C && (y.rowSelection = x), $ && (y.expanded = Ke);
201
- const ge = S && !!F, c = st({
201
+ const ge = S && !!F, r = lt({
202
202
  data: f,
203
203
  columns: k,
204
204
  state: y,
@@ -206,30 +206,30 @@ function Rt({
206
206
  onColumnPinningChange: Oe,
207
207
  getCoreRowModel: dt(),
208
208
  ...S && {
209
- onSortingChange: ge ? Ge : re,
210
- ...ge ? { manualSorting: !0 } : { getSortedRowModel: rt() }
209
+ onSortingChange: ge ? Ge : ce,
210
+ ...ge ? { manualSorting: !0 } : { getSortedRowModel: ct() }
211
211
  },
212
212
  ...(p || h) && {
213
213
  onColumnFiltersChange: $e,
214
214
  onGlobalFilterChange: X,
215
- getFilteredRowModel: ct()
215
+ getFilteredRowModel: rt()
216
216
  },
217
217
  ...v && {
218
218
  onPaginationChange: M ? Ye : q,
219
219
  ...M ? {
220
220
  manualPagination: !0,
221
221
  pageCount: Math.ceil(
222
- s.total / s.pageSize
222
+ l.total / l.pageSize
223
223
  )
224
- } : { getPaginationRowModel: at() }
224
+ } : { getPaginationRowModel: ot() }
225
225
  },
226
226
  ...C && {
227
227
  onRowSelectionChange: de,
228
- enableRowSelection: ce ? (e) => ce(e.original) : !0
228
+ enableRowSelection: re ? (e) => re(e.original) : !0
229
229
  },
230
230
  ...$ && {
231
231
  onExpandedChange: U ? Le : fe,
232
- getExpandedRowModel: ot()
232
+ getExpandedRowModel: at()
233
233
  },
234
234
  ...g && {
235
235
  getRowId: (e) => g(e)
@@ -243,81 +243,81 @@ function Rt({
243
243
  return;
244
244
  }
245
245
  if (!P.current) return;
246
- const e = Object.keys(x).filter((l) => x[l]), t = f.filter((l, o) => {
247
- const r = g ? g(f[o]) : String(o);
248
- return e.includes(r);
246
+ const e = Object.keys(x).filter((s) => x[s]), t = f.filter((s, a) => {
247
+ const c = g ? g(f[a]) : String(a);
248
+ return e.includes(c);
249
249
  });
250
250
  P.current(t);
251
251
  }, [x, f, g]);
252
252
  function pe(e) {
253
- const { left: t = [], right: l = [] } = ie, o = t.indexOf(e), r = l.indexOf(e);
254
- return o !== -1 ? {
255
- className: "sticky bg-surface-1 z-raised",
253
+ const { left: t = [], right: s = [] } = ie, a = t.indexOf(e), c = s.indexOf(e);
254
+ return a !== -1 ? {
255
+ className: "sticky bg-surface-base z-raised",
256
256
  style: { left: 0 }
257
- } : r !== -1 ? {
258
- className: "sticky bg-surface-1 z-raised",
257
+ } : c !== -1 ? {
258
+ className: "sticky bg-surface-base z-raised",
259
259
  style: { right: 0 }
260
260
  } : { className: "", style: {} };
261
261
  }
262
262
  function Xe(e) {
263
263
  if (!Ie || e === "_select" || e === "_expand") return !1;
264
- const t = c.getColumn(e);
264
+ const t = r.getColumn(e);
265
265
  if (!t) return !1;
266
- const l = t.columnDef.meta;
267
- return (l == null ? void 0 : l.enableEditing) !== !1;
266
+ const s = t.columnDef.meta;
267
+ return (s == null ? void 0 : s.enableEditing) !== !1;
268
268
  }
269
- const he = Nt[ue], H = c.getRowModel().rows, be = it({
269
+ const he = Nt[ue], H = r.getRowModel().rows, be = it({
270
270
  count: b ? H.length : 0,
271
271
  getScrollElement: () => me.current,
272
272
  estimateSize: () => Ee,
273
273
  overscan: 10
274
- }), qe = (s == null ? void 0 : s.pageSize) ?? E ?? 5, Je = k.length, Qe = j(
274
+ }), qe = (l == null ? void 0 : l.pageSize) ?? E ?? 5, Je = k.length, Qe = j(
275
275
  (e, t) => {
276
276
  !T || t.target.closest(kt) || T(e);
277
277
  },
278
278
  [T]
279
279
  );
280
280
  function xe(e, t) {
281
- const l = e.getVisibleCells();
281
+ const s = e.getVisibleCells();
282
282
  return /* @__PURE__ */ n(
283
283
  z,
284
284
  {
285
285
  "data-state": e.getIsSelected() && "selected",
286
286
  style: t,
287
- className: a(
287
+ className: o(
288
288
  b ? "absolute w-full flex" : void 0,
289
289
  T && "cursor-pointer"
290
290
  ),
291
- onClick: T ? (o) => Qe(e.original, o) : void 0,
292
- children: l.map((o) => {
293
- const r = pe(o.column.id), R = (w == null ? void 0 : w.rowIndex) === e.index && (w == null ? void 0 : w.columnId) === o.column.id;
291
+ onClick: T ? (a) => Qe(e.original, a) : void 0,
292
+ children: s.map((a) => {
293
+ const c = pe(a.column.id), R = (w == null ? void 0 : w.rowIndex) === e.index && (w == null ? void 0 : w.columnId) === a.column.id;
294
294
  return /* @__PURE__ */ n(
295
295
  O,
296
296
  {
297
- className: a(
297
+ className: o(
298
298
  he,
299
- r.className,
299
+ c.className,
300
300
  b && "flex-1"
301
301
  ),
302
- style: r.style,
302
+ style: c.style,
303
303
  onDoubleClick: () => {
304
- Xe(o.column.id) && J({
304
+ Xe(a.column.id) && J({
305
305
  rowIndex: e.index,
306
- columnId: o.column.id
306
+ columnId: a.column.id
307
307
  });
308
308
  },
309
309
  children: R ? /* @__PURE__ */ n(
310
310
  wt,
311
311
  {
312
- initialValue: String(o.getValue() ?? ""),
312
+ initialValue: String(a.getValue() ?? ""),
313
313
  onSave: (m) => {
314
- L == null || L(e.index, o.column.id, m), J(null);
314
+ L == null || L(e.index, a.column.id, m), J(null);
315
315
  },
316
316
  onCancel: () => J(null)
317
317
  }
318
- ) : te(o.column.columnDef.cell, o.getContext())
318
+ ) : te(a.column.columnDef.cell, a.getContext())
319
319
  },
320
- o.id
320
+ a.id
321
321
  );
322
322
  })
323
323
  },
@@ -325,7 +325,7 @@ function Rt({
325
325
  );
326
326
  }
327
327
  function Ze(e, t) {
328
- return !$ || !e.getIsExpanded() || !oe ? null : /* @__PURE__ */ n(
328
+ return !$ || !e.getIsExpanded() || !ae ? null : /* @__PURE__ */ n(
329
329
  z,
330
330
  {
331
331
  style: t,
@@ -334,11 +334,11 @@ function Rt({
334
334
  O,
335
335
  {
336
336
  colSpan: k.length,
337
- className: a(
338
- "bg-surface-2 p-ds-05",
337
+ className: o(
338
+ "bg-surface-raised p-ds-05",
339
339
  b && "flex-1"
340
340
  ),
341
- children: oe(e.original)
341
+ children: ae(e.original)
342
342
  }
343
343
  )
344
344
  },
@@ -347,18 +347,18 @@ function Rt({
347
347
  }
348
348
  function ve() {
349
349
  const e = ["w-3/4", "w-1/2", "w-2/3", "w-full"];
350
- return /* @__PURE__ */ n(A, { children: Array.from({ length: qe }, (t, l) => /* @__PURE__ */ n(z, { children: Array.from({ length: Je }, (o, r) => {
350
+ return /* @__PURE__ */ n(A, { children: Array.from({ length: qe }, (t, s) => /* @__PURE__ */ n(z, { children: Array.from({ length: Je }, (a, c) => {
351
351
  var Se, Ce;
352
- const m = (((Se = k[r]) == null ? void 0 : Se.id) ?? ((Ce = k[r]) == null ? void 0 : Ce.header)) === "_select";
352
+ const m = (((Se = k[c]) == null ? void 0 : Se.id) ?? ((Ce = k[c]) == null ? void 0 : Ce.header)) === "_select";
353
353
  return /* @__PURE__ */ n(
354
354
  O,
355
355
  {
356
356
  className: he,
357
- children: m ? /* @__PURE__ */ n(Re, { variant: "text", className: "h-4 w-4", animation: "pulse" }) : /* @__PURE__ */ n(Re, { variant: "text", className: a("h-4", e[r % e.length]), animation: "pulse" })
357
+ children: m ? /* @__PURE__ */ n(Re, { variant: "text", className: "h-4 w-4", animation: "pulse" }) : /* @__PURE__ */ n(Re, { variant: "text", className: o("h-4", e[c % e.length]), animation: "pulse" })
358
358
  },
359
- `skeleton-${l}-${r}`
359
+ `skeleton-${s}-${c}`
360
360
  );
361
- }) }, `skeleton-${l}`)) });
361
+ }) }, `skeleton-${s}`)) });
362
362
  }
363
363
  function Pe() {
364
364
  if (Te)
@@ -368,11 +368,11 @@ function Rt({
368
368
  O,
369
369
  {
370
370
  colSpan: k.length,
371
- className: a(
371
+ className: o(
372
372
  "h-24 text-center",
373
- !ae && "text-surface-fg-subtle"
373
+ !oe && "text-surface-fg-subtle"
374
374
  ),
375
- children: ae || I || "No results."
375
+ children: oe || I || "No results."
376
376
  }
377
377
  ) }) });
378
378
  if (b) {
@@ -384,15 +384,15 @@ function Rt({
384
384
  height: `${t}px`,
385
385
  position: "relative"
386
386
  },
387
- children: e.map((l) => {
388
- const o = H[l.index];
389
- return xe(o, {
387
+ children: e.map((s) => {
388
+ const a = H[s.index];
389
+ return xe(a, {
390
390
  position: "absolute",
391
391
  top: 0,
392
392
  left: 0,
393
393
  width: "100%",
394
- height: `${l.size}px`,
395
- transform: `translateY(${l.start}px)`
394
+ height: `${s.size}px`,
395
+ transform: `translateY(${s.start}px)`
396
396
  });
397
397
  })
398
398
  }
@@ -403,37 +403,37 @@ function Rt({
403
403
  Ze(e)
404
404
  ] }, e.id)) });
405
405
  }
406
- const ee = lt(() => {
406
+ const ee = st(() => {
407
407
  if (!_ || !C) return [];
408
408
  const e = Object.keys(x).filter((t) => x[t]);
409
- return f.filter((t, l) => {
410
- const o = g ? g(f[l]) : String(l);
411
- return e.includes(o);
409
+ return f.filter((t, s) => {
410
+ const a = g ? g(f[s]) : String(s);
411
+ return e.includes(a);
412
412
  });
413
- }, [_, C, x, f, g]), et = ee.length > 0, tt = M ? s.total : c.getFilteredRowModel().rows.length, ye = /* @__PURE__ */ d(bt, { children: [
413
+ }, [_, C, x, f, g]), et = ee.length > 0, tt = M ? l.total : r.getFilteredRowModel().rows.length, ye = /* @__PURE__ */ d(bt, { children: [
414
414
  /* @__PURE__ */ d(
415
415
  xt,
416
416
  {
417
- className: a(
418
- Me && "sticky top-0 z-10 bg-surface-1"
417
+ className: o(
418
+ Me && "sticky top-0 z-10 bg-surface-base"
419
419
  ),
420
420
  children: [
421
- c.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => {
422
- const l = S && t.column.getCanSort(), o = t.column.getIsSorted(), r = pe(t.column.id);
421
+ r.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => {
422
+ const s = S && t.column.getCanSort(), a = t.column.getIsSorted(), c = pe(t.column.id);
423
423
  return /* @__PURE__ */ n(
424
424
  we,
425
425
  {
426
- className: r.className,
427
- style: r.style,
428
- children: t.isPlaceholder ? null : l ? /* @__PURE__ */ d(
426
+ className: c.className,
427
+ style: c.style,
428
+ children: t.isPlaceholder ? null : s ? /* @__PURE__ */ d(
429
429
  "button",
430
430
  {
431
431
  type: "button",
432
- className: a(
432
+ className: o(
433
433
  "flex items-center gap-ds-01 font-medium",
434
434
  "cursor-pointer select-none",
435
435
  "-ml-ds-01 rounded-ds-sm px-ds-01 py-ds-01",
436
- "hover:bg-surface-2 transition-colors"
436
+ "hover:bg-surface-raised transition-colors"
437
437
  ),
438
438
  onClick: t.column.getToggleSortingHandler(),
439
439
  "aria-label": `Sort by ${typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : t.column.id}`,
@@ -442,8 +442,8 @@ function Rt({
442
442
  t.column.columnDef.header,
443
443
  t.getContext()
444
444
  ),
445
- /* @__PURE__ */ n(Ct, { mode: "wait", initial: !1, children: o === "asc" ? /* @__PURE__ */ n(
446
- le.span,
445
+ /* @__PURE__ */ n(Ct, { mode: "wait", initial: !1, children: a === "asc" ? /* @__PURE__ */ n(
446
+ se.span,
447
447
  {
448
448
  initial: { opacity: 0, rotate: 90 },
449
449
  animate: { opacity: 1, rotate: 0 },
@@ -459,8 +459,8 @@ function Rt({
459
459
  )
460
460
  },
461
461
  "asc"
462
- ) : o === "desc" ? /* @__PURE__ */ n(
463
- le.span,
462
+ ) : a === "desc" ? /* @__PURE__ */ n(
463
+ se.span,
464
464
  {
465
465
  initial: { opacity: 0, rotate: -90 },
466
466
  animate: { opacity: 1, rotate: 0 },
@@ -477,7 +477,7 @@ function Rt({
477
477
  },
478
478
  "desc"
479
479
  ) : /* @__PURE__ */ n(
480
- le.span,
480
+ se.span,
481
481
  {
482
482
  initial: { opacity: 0 },
483
483
  animate: { opacity: 1 },
@@ -504,17 +504,17 @@ function Rt({
504
504
  t.id
505
505
  );
506
506
  }) }, e.id)),
507
- p && c.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => /* @__PURE__ */ n(we, { className: "py-ds-01", children: t.isPlaceholder || t.column.columnDef.enableColumnFilter === !1 ? null : /* @__PURE__ */ n(
507
+ p && r.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => /* @__PURE__ */ n(we, { className: "py-ds-01", children: t.isPlaceholder || t.column.columnDef.enableColumnFilter === !1 ? null : /* @__PURE__ */ n(
508
508
  "input",
509
509
  {
510
510
  type: "text",
511
511
  value: t.column.getFilterValue() ?? "",
512
- onChange: (l) => t.column.setFilterValue(l.target.value),
512
+ onChange: (s) => t.column.setFilterValue(s.target.value),
513
513
  placeholder: `Filter ${typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : ""}...`,
514
514
  "aria-label": `Filter ${typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : t.column.id}`,
515
- className: a(
515
+ className: o(
516
516
  "h-ds-xs-plus w-full rounded-ds-md",
517
- "border border-surface-border-strong bg-surface-3",
517
+ "border border-surface-border-strong bg-surface-raised-hover",
518
518
  "px-ds-02 text-ds-sm",
519
519
  "text-surface-fg placeholder:text-surface-fg-subtle",
520
520
  "outline-none focus:border-accent-7"
@@ -526,11 +526,11 @@ function Rt({
526
526
  ),
527
527
  Pe()
528
528
  ] });
529
- return /* @__PURE__ */ d("div", { className: a(K), children: [
530
- se && /* @__PURE__ */ n(
529
+ return /* @__PURE__ */ d("div", { className: o(K), children: [
530
+ le && /* @__PURE__ */ n(
531
531
  St,
532
532
  {
533
- table: c,
533
+ table: r,
534
534
  globalFilter: h,
535
535
  globalFilterValue: W,
536
536
  onGlobalFilterChange: X,
@@ -538,7 +538,7 @@ function Rt({
538
538
  onDensityChange: Be
539
539
  }
540
540
  ),
541
- h && !se && /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03 pb-ds-04 border-b border-surface-border mb-ds-04", children: [
541
+ h && !le && /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03 pb-ds-04 border-b border-surface-border mb-ds-04", children: [
542
542
  /* @__PURE__ */ n(
543
543
  gt,
544
544
  {
@@ -555,7 +555,7 @@ function Rt({
555
555
  onChange: (e) => X(e.target.value),
556
556
  placeholder: "Search all columns...",
557
557
  "aria-label": "Search all columns",
558
- className: a(
558
+ className: o(
559
559
  "flex-1 bg-transparent text-ds-md",
560
560
  "text-surface-fg placeholder:text-surface-fg-subtle",
561
561
  "outline-none"
@@ -580,14 +580,14 @@ function Rt({
580
580
  !M && /* @__PURE__ */ n(
581
581
  "select",
582
582
  {
583
- value: c.getState().pagination.pageSize,
583
+ value: r.getState().pagination.pageSize,
584
584
  onChange: (e) => {
585
- c.setPageSize(Number(e.target.value));
585
+ r.setPageSize(Number(e.target.value));
586
586
  },
587
587
  "aria-label": "Rows per page",
588
- className: a(
588
+ className: o(
589
589
  "h-ds-sm rounded-ds-md",
590
- "border border-surface-border-strong bg-surface-3",
590
+ "border border-surface-border-strong bg-surface-raised-hover",
591
591
  "px-ds-03 text-ds-sm",
592
592
  "text-surface-fg"
593
593
  ),
@@ -601,13 +601,13 @@ function Rt({
601
601
  "button",
602
602
  {
603
603
  type: "button",
604
- disabled: !c.getCanPreviousPage(),
605
- onClick: () => c.previousPage(),
604
+ disabled: !r.getCanPreviousPage(),
605
+ onClick: () => r.previousPage(),
606
606
  "aria-label": "Previous page",
607
- className: a(
607
+ className: o(
608
608
  "h-ds-sm w-ds-sm flex items-center justify-center",
609
609
  "rounded-ds-md border border-surface-border-strong",
610
- "enabled:hover:bg-surface-2",
610
+ "enabled:hover:bg-surface-raised",
611
611
  "disabled:opacity-action-disabled disabled:cursor-not-allowed",
612
612
  "transition-colors"
613
613
  ),
@@ -616,22 +616,22 @@ function Rt({
616
616
  ),
617
617
  /* @__PURE__ */ d("span", { className: "text-ds-sm text-surface-fg-muted", children: [
618
618
  "Page ",
619
- c.getState().pagination.pageIndex + 1,
619
+ r.getState().pagination.pageIndex + 1,
620
620
  " of",
621
621
  " ",
622
- c.getPageCount()
622
+ r.getPageCount()
623
623
  ] }),
624
624
  /* @__PURE__ */ n(
625
625
  "button",
626
626
  {
627
627
  type: "button",
628
- disabled: !c.getCanNextPage(),
629
- onClick: () => c.nextPage(),
628
+ disabled: !r.getCanNextPage(),
629
+ onClick: () => r.nextPage(),
630
630
  "aria-label": "Next page",
631
- className: a(
631
+ className: o(
632
632
  "h-ds-sm w-ds-sm flex items-center justify-center",
633
633
  "rounded-ds-md border border-surface-border-strong",
634
- "enabled:hover:bg-surface-2",
634
+ "enabled:hover:bg-surface-raised",
635
635
  "disabled:opacity-action-disabled disabled:cursor-not-allowed",
636
636
  "transition-colors"
637
637
  ),
@@ -643,10 +643,10 @@ function Rt({
643
643
  _ && C && et && /* @__PURE__ */ d(
644
644
  "div",
645
645
  {
646
- className: a(
646
+ className: o(
647
647
  "fixed bottom-6 left-1/2 -translate-x-1/2 z-50",
648
648
  "flex items-center gap-ds-04 px-ds-05 py-ds-03",
649
- "rounded-ds-lg border border-surface-border-strong bg-surface-1 shadow-lg",
649
+ "rounded-ds-lg border border-surface-border-strong bg-surface-overlay shadow-floating",
650
650
  "animate-in slide-in-from-bottom-2"
651
651
  ),
652
652
  role: "toolbar",
@@ -672,11 +672,11 @@ function Rt({
672
672
  "button",
673
673
  {
674
674
  type: "button",
675
- onClick: () => c.resetRowSelection(),
675
+ onClick: () => r.resetRowSelection(),
676
676
  "aria-label": "Clear selection",
677
- className: a(
677
+ className: o(
678
678
  "flex items-center justify-center p-ds-01",
679
- "rounded-ds-sm hover:bg-surface-2 transition-colors",
679
+ "rounded-ds-sm hover:bg-surface-raised transition-colors",
680
680
  "text-surface-fg-muted hover:text-surface-fg"
681
681
  ),
682
682
  children: /* @__PURE__ */ n(ht, { size: 16, "aria-hidden": "true" })