@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
@@ -23,14 +23,14 @@ const L = n.forwardRef(({ className: h, error: u, indeterminate: a, checked: s,
23
23
  className: v(
24
24
  "peer flex items-center justify-center h-ico-md w-ico-md shrink-0 rounded-ds-sm",
25
25
  "border border-surface-border-strong",
26
- "bg-surface-3",
26
+ "bg-surface-raised-hover",
27
27
  "transition-colors duration-fast-01 ease-productive-standard",
28
28
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
29
29
  "disabled:cursor-not-allowed disabled:opacity-action-disabled",
30
- "data-[state=unchecked]:hover:border-accent-7 data-[state=unchecked]:hover:bg-surface-4",
30
+ "data-[state=unchecked]:hover:border-accent-7 data-[state=unchecked]:hover:bg-surface-raised-active",
31
31
  "data-[state=checked]:bg-accent-9 data-[state=checked]:border-accent-7 data-[state=checked]:text-accent-fg",
32
32
  "data-[state=indeterminate]:bg-accent-9 data-[state=indeterminate]:border-accent-7 data-[state=indeterminate]:text-accent-fg",
33
- u && "border-error-7 bg-error-2",
33
+ u && "border-error-7 bg-error-3",
34
34
  h
35
35
  ),
36
36
  ...m,
package/dist/ui/chip.js CHANGED
@@ -12,7 +12,7 @@ const j = h(
12
12
  {
13
13
  variants: {
14
14
  variant: {
15
- subtle: "bg-surface-2 text-surface-fg border border-transparent",
15
+ subtle: "bg-surface-raised text-surface-fg border border-transparent",
16
16
  outline: "bg-transparent text-surface-fg border border-surface-border-strong"
17
17
  },
18
18
  size: {
@@ -69,8 +69,8 @@ const j = h(
69
69
  }
70
70
  }
71
71
  ), R = f.forwardRef(
72
- ({ label: t, variant: i, size: l, color: g, icon: o, onClick: s, onDismiss: c, disabled: r, className: d, ...m }, b) => {
73
- const e = !!s, u = e ? n.button : n.span, y = e && !r ? "cursor-pointer hover:bg-surface-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9" : "", x = r ? "opacity-action-disabled cursor-not-allowed" : "";
72
+ ({ label: t, variant: i, size: l, color: d, icon: o, onClick: s, onDismiss: c, disabled: r, className: g, ...m }, b) => {
73
+ const e = !!s, u = e ? n.button : n.span, y = e && !r ? "cursor-pointer hover:bg-surface-raised-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9" : "", x = r ? "opacity-action-disabled cursor-not-allowed" : "";
74
74
  return /* @__PURE__ */ p(
75
75
  u,
76
76
  {
@@ -80,7 +80,7 @@ const j = h(
80
80
  exit: { opacity: 0, scale: 0.8 },
81
81
  whileTap: e && !r ? { scale: 0.97 } : void 0,
82
82
  transition: w.snappy,
83
- className: k(j({ variant: i, size: l, color: g }), y, x, d),
83
+ className: k(j({ variant: i, size: l, color: d }), y, x, g),
84
84
  onClick: e ? s : void 0,
85
85
  disabled: e ? r : void 0,
86
86
  type: e ? "button" : void 0,
package/dist/ui/code.js CHANGED
@@ -7,7 +7,7 @@ const m = f.forwardRef(
7
7
  {
8
8
  ref: s,
9
9
  className: t(
10
- "overflow-x-auto rounded-ds-md border border-surface-border-strong bg-surface-2 p-ds-05 font-mono text-ds-sm leading-ds-relaxed text-surface-fg",
10
+ "overflow-x-auto rounded-ds-md border border-surface-border-strong bg-surface-raised p-ds-05 font-mono text-ds-sm leading-ds-relaxed text-surface-fg",
11
11
  e
12
12
  ),
13
13
  ...d,
@@ -18,7 +18,7 @@ const m = f.forwardRef(
18
18
  {
19
19
  ref: s,
20
20
  className: t(
21
- "rounded-ds-sm bg-surface-3 border border-surface-border px-ds-02 py-ds-01 font-mono text-ds-sm text-surface-fg",
21
+ "rounded-ds-sm bg-surface-raised-hover border border-surface-border px-ds-02 py-ds-01 font-mono text-ds-sm text-surface-fg",
22
22
  e
23
23
  ),
24
24
  ...d,
@@ -56,7 +56,7 @@ const b = m.forwardRef(
56
56
  },
57
57
  maxLength: 7,
58
58
  className: c(
59
- "h-ds-sm w-[90px] rounded-ds-md border border-surface-border-strong bg-surface-1 px-ds-03 font-mono text-ds-md text-surface-fg transition-colors",
59
+ "h-ds-sm w-[90px] rounded-ds-md border border-surface-border-strong bg-surface-overlay px-ds-03 font-mono text-ds-md text-surface-fg transition-colors",
60
60
  "focus:border-accent-7 focus:outline-none focus:ring-1 focus:ring-accent-9",
61
61
  o && "cursor-not-allowed opacity-50"
62
62
  )
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as d, Fragment as G } from "react/jsx-runtime";
2
+ import { jsx as a, jsxs as o, Fragment as G } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
4
  import { b as U, c as q, P as J, d as Q } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as W, IconSearch as Y, IconCheck as Z, IconX as V } from "@tabler/icons-react";
@@ -8,8 +8,8 @@ import { tweens as ee, springs as se } from "./lib/motion.js";
8
8
  import { m as te } from "../_chunks/framer.js";
9
9
  const P = 2, re = 36, ae = r.forwardRef(
10
10
  ({
11
- options: u,
12
- value: f,
11
+ options: f,
12
+ value: u,
13
13
  onValueChange: b,
14
14
  placeholder: S = "Select...",
15
15
  searchPlaceholder: A = "Search...",
@@ -23,15 +23,15 @@ const P = 2, re = 36, ae = r.forwardRef(
23
23
  accessibleLabel: H,
24
24
  ...M
25
25
  }, O) => {
26
- const [m, w] = r.useState(!1), [g, y] = r.useState(""), [c, o] = r.useState(-1), k = r.useRef(null), N = r.useRef(null), R = r.useId(), I = r.useId(), n = r.useMemo(() => f == null ? [] : Array.isArray(f) ? f : [f], [f]), i = r.useMemo(
27
- () => g ? u.filter(
28
- (e) => e.label.toLowerCase().includes(g.toLowerCase())
29
- ) : u,
30
- [u, g]
26
+ const [m, w] = r.useState(!1), [v, y] = r.useState(""), [c, d] = r.useState(-1), k = r.useRef(null), N = r.useRef(null), R = r.useId(), I = r.useId(), n = r.useMemo(() => u == null ? [] : Array.isArray(u) ? u : [u], [u]), i = r.useMemo(
27
+ () => v ? f.filter(
28
+ (e) => e.label.toLowerCase().includes(v.toLowerCase())
29
+ ) : f,
30
+ [f, v]
31
31
  ), _ = r.useCallback(
32
32
  (e) => n.includes(e),
33
33
  [n]
34
- ), v = r.useCallback(
34
+ ), g = r.useCallback(
35
35
  (e) => {
36
36
  if (h) {
37
37
  const s = n.includes(e) ? n.filter((t) => t !== e) : [...n, e];
@@ -49,7 +49,7 @@ const P = 2, re = 36, ae = r.forwardRef(
49
49
  [n, b]
50
50
  ), X = r.useCallback(
51
51
  (e) => {
52
- x || (w(e), e || (y(""), o(-1)));
52
+ x || (w(e), e || (y(""), d(-1)));
53
53
  },
54
54
  [x]
55
55
  );
@@ -80,19 +80,19 @@ const P = 2, re = 36, ae = r.forwardRef(
80
80
  case "ArrowDown": {
81
81
  e.preventDefault();
82
82
  const s = C(c, 1);
83
- o(s);
83
+ d(s);
84
84
  break;
85
85
  }
86
86
  case "ArrowUp": {
87
87
  e.preventDefault();
88
88
  const s = C(c, -1);
89
- o(s);
89
+ d(s);
90
90
  break;
91
91
  }
92
92
  case "Home": {
93
93
  e.preventDefault();
94
94
  const s = i.findIndex((t) => !t.disabled);
95
- o(s);
95
+ d(s);
96
96
  break;
97
97
  }
98
98
  case "End": {
@@ -103,20 +103,20 @@ const P = 2, re = 36, ae = r.forwardRef(
103
103
  s = t;
104
104
  break;
105
105
  }
106
- o(s);
106
+ d(s);
107
107
  break;
108
108
  }
109
109
  case "Enter": {
110
- e.preventDefault(), c >= 0 && c < i.length && !i[c].disabled && v(i[c].value);
110
+ e.preventDefault(), c >= 0 && c < i.length && !i[c].disabled && g(i[c].value);
111
111
  break;
112
112
  }
113
113
  case "Escape": {
114
- e.preventDefault(), w(!1), y(""), o(-1);
114
+ e.preventDefault(), w(!1), y(""), d(-1);
115
115
  break;
116
116
  }
117
117
  }
118
118
  },
119
- [c, i, C, v]
119
+ [c, i, C, g]
120
120
  );
121
121
  r.useEffect(() => {
122
122
  var e;
@@ -127,15 +127,15 @@ const P = 2, re = 36, ae = r.forwardRef(
127
127
  }, [c]);
128
128
  const z = r.useCallback(() => {
129
129
  if (n.length === 0) return null;
130
- const e = u.find((s) => s.value === n[0]);
130
+ const e = f.find((s) => s.value === n[0]);
131
131
  return (e == null ? void 0 : e.label) ?? null;
132
- }, [n, u]), B = () => {
132
+ }, [n, f]), B = () => {
133
133
  if (h && n.length > 0) {
134
134
  const e = n.slice(0, P), s = n.length - P;
135
- return /* @__PURE__ */ d("span", { className: "flex flex-1 flex-wrap items-center gap-ds-02 overflow-hidden", children: [
135
+ return /* @__PURE__ */ o("span", { className: "flex flex-1 flex-wrap items-center gap-ds-02 overflow-hidden", children: [
136
136
  e.map((t) => {
137
- const l = u.find((D) => D.value === t);
138
- return l ? /* @__PURE__ */ d(
137
+ const l = f.find((D) => D.value === t);
138
+ return l ? /* @__PURE__ */ o(
139
139
  "span",
140
140
  {
141
141
  className: "inline-flex items-center gap-ds-01 rounded-ds-md bg-accent-2 px-ds-03 py-[1px] text-ds-sm",
@@ -145,7 +145,7 @@ const P = 2, re = 36, ae = r.forwardRef(
145
145
  "button",
146
146
  {
147
147
  type: "button",
148
- className: "inline-flex items-center justify-center rounded-ds-full outline-none hover:scale-110 hover:bg-surface-3 transition-transform duration-fast-01 ease-productive-standard",
148
+ className: "inline-flex items-center justify-center rounded-ds-full outline-none hover:scale-110 hover:bg-surface-raised-hover transition-transform duration-fast-01 ease-productive-standard",
149
149
  onClick: (D) => K(D, t),
150
150
  "aria-label": `Remove ${l.label}`,
151
151
  tabIndex: -1,
@@ -157,7 +157,7 @@ const P = 2, re = 36, ae = r.forwardRef(
157
157
  t
158
158
  ) : null;
159
159
  }),
160
- s > 0 && /* @__PURE__ */ d("span", { className: "text-ds-sm text-surface-fg-muted", children: [
160
+ s > 0 && /* @__PURE__ */ o("span", { className: "text-ds-sm text-surface-fg-muted", children: [
161
161
  "+",
162
162
  s,
163
163
  " more"
@@ -171,8 +171,8 @@ const P = 2, re = 36, ae = r.forwardRef(
171
171
  }
172
172
  return /* @__PURE__ */ a("span", { className: "flex-1 truncate text-left text-surface-fg-subtle", children: S });
173
173
  };
174
- return /* @__PURE__ */ a(U, { open: m, onOpenChange: X, children: /* @__PURE__ */ d("div", { className: p("relative", T), ...M, children: [
175
- /* @__PURE__ */ a(q, { asChild: !0, disabled: x, children: /* @__PURE__ */ d(
174
+ return /* @__PURE__ */ a(U, { open: m, onOpenChange: X, children: /* @__PURE__ */ o("div", { className: p("relative", T), ...M, children: [
175
+ /* @__PURE__ */ a(q, { asChild: !0, disabled: x, children: /* @__PURE__ */ o(
176
176
  "button",
177
177
  {
178
178
  ref: O,
@@ -184,7 +184,7 @@ const P = 2, re = 36, ae = r.forwardRef(
184
184
  "aria-label": H ?? S,
185
185
  disabled: x,
186
186
  className: p(
187
- "flex h-ds-md w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-3 px-ds-04 py-ds-03 text-ds-md",
187
+ "flex h-ds-md w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-raised-hover px-ds-04 py-ds-03 text-ds-md",
188
188
  "transition-colors duration-fast-01 ease-productive-standard",
189
189
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7",
190
190
  "disabled:cursor-not-allowed disabled:opacity-action-disabled",
@@ -207,17 +207,17 @@ const P = 2, re = 36, ae = r.forwardRef(
207
207
  var s;
208
208
  e.preventDefault(), (s = k.current) == null || s.focus();
209
209
  },
210
- children: /* @__PURE__ */ d(
210
+ children: /* @__PURE__ */ o(
211
211
  te.div,
212
212
  {
213
213
  initial: { opacity: 0, scale: 0.95 },
214
214
  animate: { opacity: 1, scale: 1 },
215
215
  transition: { ...se.snappy, opacity: ee.fade },
216
216
  className: p(
217
- "z-popover w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-ds-lg border border-surface-border bg-surface-1 shadow-02"
217
+ "z-popover w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-ds-lg border border-surface-border bg-surface-overlay shadow-floating"
218
218
  ),
219
219
  children: [
220
- /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-02 border-b border-surface-border px-ds-04", children: [
220
+ /* @__PURE__ */ o("div", { className: "flex items-center gap-ds-02 border-b border-surface-border px-ds-04", children: [
221
221
  /* @__PURE__ */ a(Y, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-subtle", "aria-hidden": "true" }),
222
222
  /* @__PURE__ */ a(
223
223
  "input",
@@ -226,9 +226,9 @@ const P = 2, re = 36, ae = r.forwardRef(
226
226
  type: "text",
227
227
  className: "flex-1 bg-transparent py-ds-03 text-ds-md outline-none placeholder:text-surface-fg-subtle",
228
228
  placeholder: A,
229
- value: g,
229
+ value: v,
230
230
  onChange: (e) => {
231
- y(e.target.value), o(-1);
231
+ y(e.target.value), d(-1);
232
232
  },
233
233
  onKeyDown: F,
234
234
  "aria-autocomplete": "list",
@@ -249,7 +249,7 @@ const P = 2, re = 36, ae = r.forwardRef(
249
249
  style: { maxHeight: `${j * re}px` },
250
250
  children: i.map((e, s) => {
251
251
  const t = _(e.value);
252
- return /* @__PURE__ */ d(
252
+ return /* @__PURE__ */ o(
253
253
  "li",
254
254
  {
255
255
  id: `${R}-option-${s}`,
@@ -264,17 +264,17 @@ const P = 2, re = 36, ae = r.forwardRef(
264
264
  e.disabled && "pointer-events-none opacity-action-disabled"
265
265
  ),
266
266
  onClick: () => {
267
- e.disabled || v(e.value);
267
+ e.disabled || g(e.value);
268
268
  },
269
269
  onKeyDown: (l) => {
270
- !e.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), v(e.value));
270
+ !e.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), g(e.value));
271
271
  },
272
272
  onMouseEnter: () => {
273
- e.disabled || o(s);
273
+ e.disabled || d(s);
274
274
  },
275
275
  children: [
276
276
  e.icon && /* @__PURE__ */ a("span", { className: "flex h-ico-sm w-ico-sm items-center justify-center shrink-0", children: e.icon }),
277
- /* @__PURE__ */ a("span", { className: "flex flex-1 flex-col", children: E ? E(e, t) : /* @__PURE__ */ d(G, { children: [
277
+ /* @__PURE__ */ a("span", { className: "flex flex-1 flex-col", children: E ? E(e, t) : /* @__PURE__ */ o(G, { children: [
278
278
  /* @__PURE__ */ a("span", { children: e.label }),
279
279
  e.description && /* @__PURE__ */ a("span", { className: "text-ds-sm text-surface-fg-muted", children: e.description })
280
280
  ] }) }),
@@ -39,7 +39,7 @@ const oe = P, E = n.forwardRef(({ className: e, inset: a, children: t, ...o }, r
39
39
  {
40
40
  ref: r,
41
41
  className: d(
42
- "flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-2 focus:text-surface-fg data-[state=open]:bg-surface-2 data-[state=open]:text-surface-fg",
42
+ "flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[state=open]:bg-surface-raised data-[state=open]:text-surface-fg",
43
43
  a && "pl-ds-07",
44
44
  e
45
45
  ),
@@ -68,7 +68,7 @@ const F = n.forwardRef(({ className: e, children: a, ...t }, o) => {
68
68
  exit: { opacity: 0, scale: 0.95 },
69
69
  transition: { ...v.snappy, opacity: w.fade },
70
70
  className: d(
71
- "z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
71
+ "z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
72
72
  e
73
73
  ),
74
74
  children: a
@@ -95,7 +95,7 @@ const H = n.forwardRef(({ className: e, children: a, ...t }, o) => {
95
95
  exit: { opacity: 0, scale: 0.95 },
96
96
  transition: { ...v.snappy, opacity: w.fade },
97
97
  className: d(
98
- "z-popover rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
98
+ "z-popover rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
99
99
  e
100
100
  ),
101
101
  children: a
@@ -110,7 +110,7 @@ const J = n.forwardRef(({ className: e, inset: a, ...t }, o) => /* @__PURE__ */
110
110
  {
111
111
  ref: o,
112
112
  className: d(
113
- "relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
113
+ "relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
114
114
  a && "pl-ds-07",
115
115
  e
116
116
  ),
@@ -123,7 +123,7 @@ const K = n.forwardRef(({ className: e, children: a, checked: t, ...o }, r) => /
123
123
  {
124
124
  ref: r,
125
125
  className: d(
126
- "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
126
+ "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
127
127
  e
128
128
  ),
129
129
  checked: t,
@@ -140,7 +140,7 @@ const Q = n.forwardRef(({ className: e, children: a, ...t }, o) => /* @__PURE__
140
140
  {
141
141
  ref: o,
142
142
  className: d(
143
- "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
143
+ "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
144
144
  e
145
145
  ),
146
146
  ...t,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import { jsxs as o, jsx as s } from "react/jsx-runtime";
3
3
  import { IconSearch as v, IconColumns3 as w, IconTextResize as D, IconDownload as N } from "@tabler/icons-react";
4
4
  import { DropdownMenu as y, DropdownMenuTrigger as T, DropdownMenuContent as k, DropdownMenuLabel as I, DropdownMenuSeparator as L, DropdownMenuCheckboxItem as j } from "./dropdown-menu.js";
5
5
  import { cn as f } from "./lib/utils.js";
@@ -14,7 +14,7 @@ const b = {
14
14
  }, g = f(
15
15
  "h-ds-sm px-ds-03 rounded-ds-md",
16
16
  "border border-surface-border-strong",
17
- "hover:bg-surface-2",
17
+ "hover:bg-surface-raised",
18
18
  "text-ds-sm flex items-center gap-ds-02 transition-colors"
19
19
  ), d = "text-surface-fg-subtle";
20
20
  function S(n) {
@@ -45,9 +45,9 @@ function R({
45
45
  ...a
46
46
  }) {
47
47
  const i = n.getAllColumns().filter((e) => e.getCanHide() && e.id !== "_select");
48
- return /* @__PURE__ */ s("div", { className: f("flex items-center gap-ds-03 pb-ds-04", t), ...a, children: [
49
- m && /* @__PURE__ */ s("div", { className: "flex flex-1 items-center gap-ds-02", children: [
50
- /* @__PURE__ */ o(
48
+ return /* @__PURE__ */ o("div", { className: f("flex items-center gap-ds-03 pb-ds-04", t), ...a, children: [
49
+ m && /* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-ds-02", children: [
50
+ /* @__PURE__ */ s(
51
51
  v,
52
52
  {
53
53
  size: 16,
@@ -55,7 +55,7 @@ function R({
55
55
  "aria-hidden": "true"
56
56
  }
57
57
  ),
58
- /* @__PURE__ */ o(
58
+ /* @__PURE__ */ s(
59
59
  "input",
60
60
  {
61
61
  type: "text",
@@ -72,26 +72,26 @@ function R({
72
72
  }
73
73
  )
74
74
  ] }),
75
- /* @__PURE__ */ s("div", { className: "ml-auto flex items-center gap-ds-03", children: [
76
- i.length > 0 && /* @__PURE__ */ s(y, { children: [
77
- /* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ s(
75
+ /* @__PURE__ */ o("div", { className: "ml-auto flex items-center gap-ds-03", children: [
76
+ i.length > 0 && /* @__PURE__ */ o(y, { children: [
77
+ /* @__PURE__ */ s(T, { asChild: !0, children: /* @__PURE__ */ o(
78
78
  "button",
79
79
  {
80
80
  type: "button",
81
81
  className: g,
82
82
  "aria-label": "Toggle column visibility",
83
83
  children: [
84
- /* @__PURE__ */ o(w, { size: 16, className: d }),
84
+ /* @__PURE__ */ s(w, { size: 16, className: d }),
85
85
  "Columns"
86
86
  ]
87
87
  }
88
88
  ) }),
89
- /* @__PURE__ */ s(k, { align: "end", className: "w-40", children: [
90
- /* @__PURE__ */ o(I, { children: "Toggle columns" }),
91
- /* @__PURE__ */ o(L, {}),
89
+ /* @__PURE__ */ o(k, { align: "end", className: "w-40", children: [
90
+ /* @__PURE__ */ s(I, { children: "Toggle columns" }),
91
+ /* @__PURE__ */ s(L, {}),
92
92
  i.map((e) => {
93
93
  const h = e.columnDef.header, C = typeof h == "string" ? h : e.id;
94
- return /* @__PURE__ */ o(
94
+ return /* @__PURE__ */ s(
95
95
  j,
96
96
  {
97
97
  checked: e.getIsVisible(),
@@ -103,7 +103,7 @@ function R({
103
103
  })
104
104
  ] })
105
105
  ] }),
106
- /* @__PURE__ */ s(
106
+ /* @__PURE__ */ o(
107
107
  "button",
108
108
  {
109
109
  type: "button",
@@ -112,12 +112,12 @@ function R({
112
112
  "aria-label": `Table density: ${b[l]}. Click to change.`,
113
113
  title: `Density: ${b[l]}`,
114
114
  children: [
115
- /* @__PURE__ */ o(D, { size: 16, className: d }),
115
+ /* @__PURE__ */ s(D, { size: 16, className: d }),
116
116
  b[l]
117
117
  ]
118
118
  }
119
119
  ),
120
- r && /* @__PURE__ */ s(
120
+ r && /* @__PURE__ */ o(
121
121
  "button",
122
122
  {
123
123
  type: "button",
@@ -125,7 +125,7 @@ function R({
125
125
  onClick: () => S(n),
126
126
  "aria-label": "Export table as CSV",
127
127
  children: [
128
- /* @__PURE__ */ o(N, { size: 16, className: d }),
128
+ /* @__PURE__ */ s(N, { size: 16, className: d }),
129
129
  "Export"
130
130
  ]
131
131
  }