@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
@@ -178,15 +178,28 @@ const o = {
178
178
  "secondary-12": "var(--color-secondary-12)",
179
179
  "secondary-fg": "var(--color-secondary-fg)",
180
180
  // ═══ NEW: Surface ═══
181
- "surface-1": "var(--color-surface-1)",
182
- "surface-2": "var(--color-surface-2)",
183
- "surface-3": "var(--color-surface-3)",
184
- "surface-4": "var(--color-surface-4)",
181
+ "surface-base": "var(--color-surface-base)",
182
+ "surface-sunken": "var(--color-surface-sunken)",
183
+ "surface-raised": "var(--color-surface-raised)",
184
+ "surface-overlay": "var(--color-surface-overlay)",
185
+ "surface-raised-hover": "var(--color-surface-raised-hover)",
186
+ "surface-raised-active": "var(--color-surface-raised-active)",
187
+ "surface-inverted": "var(--color-surface-inverted)",
188
+ "surface-inverted-fg": "var(--color-surface-inverted-fg)",
189
+ "surface-disabled": "var(--color-surface-disabled)",
190
+ "surface-fg-disabled": "var(--color-surface-fg-disabled)",
191
+ // Deprecated — remove in next major
192
+ "surface-1": "var(--color-surface-base)",
193
+ "surface-2": "var(--color-surface-raised)",
194
+ "surface-3": "var(--color-surface-raised-hover)",
195
+ "surface-4": "var(--color-surface-raised-active)",
185
196
  "surface-fg": "var(--color-surface-fg)",
186
197
  "surface-fg-muted": "var(--color-surface-fg-muted)",
187
198
  "surface-fg-subtle": "var(--color-surface-fg-subtle)",
188
199
  "surface-border": "var(--color-surface-border)",
189
200
  "surface-border-strong": "var(--color-surface-border-strong)",
201
+ "surface-border-subtle": "var(--color-surface-border-subtle)",
202
+ backdrop: "var(--color-backdrop)",
190
203
  // ═══ NEW: Status (step subsets) ═══
191
204
  "error-3": "var(--color-error-3)",
192
205
  "error-7": "var(--color-error-7)",
@@ -310,12 +323,21 @@ const o = {
310
323
  "gradient-brand-dark": "var(--gradient-brand-dark)"
311
324
  },
312
325
  boxShadow: {
313
- "01": "var(--shadow-01)",
314
- "02": "var(--shadow-02)",
315
- "03": "var(--shadow-03)",
316
- "04": "var(--shadow-04)",
317
- "05": "var(--shadow-05)",
318
- brand: "var(--shadow-brand)"
326
+ raised: "var(--shadow-raised)",
327
+ "raised-hover": "var(--shadow-raised-hover)",
328
+ floating: "var(--shadow-floating)",
329
+ overlay: "var(--shadow-overlay)",
330
+ brand: "var(--shadow-brand)",
331
+ glow: "var(--shadow-glow)",
332
+ inset: "var(--shadow-inset)",
333
+ "ring-sm": "var(--shadow-ring-sm)",
334
+ ring: "var(--shadow-ring)",
335
+ // Deprecated — remove in next major
336
+ "01": "var(--shadow-raised)",
337
+ "02": "var(--shadow-raised-hover)",
338
+ "03": "var(--shadow-floating)",
339
+ "04": "var(--shadow-overlay)",
340
+ "05": "var(--shadow-overlay)"
319
341
  },
320
342
  transitionDuration: {
321
343
  instant: "var(--duration-instant)",
@@ -358,7 +380,7 @@ const o = {
358
380
  ".focus-ring": {
359
381
  "&:focus-visible": {
360
382
  outline: "none",
361
- "box-shadow": "0 0 0 2px var(--color-surface-1), 0 0 0 4px var(--color-accent-9)"
383
+ "box-shadow": "0 0 0 2px var(--color-surface-base), 0 0 0 4px var(--color-accent-9)"
362
384
  }
363
385
  },
364
386
  ".focus-ring-inset": {
@@ -49,6 +49,7 @@
49
49
 
50
50
  /* ── Neutral — Warm grays — H:350 ── */
51
51
  --neutral-0: #ffffff;
52
+ --color-surface-0: oklch(0.945 0.008 360);
52
53
  --neutral-1: oklch(0.99 0.0003 350);
53
54
  --neutral-2: oklch(0.97 0.0008 350);
54
55
  --neutral-3: oklch(0.93 0.0018 350);
@@ -248,6 +249,7 @@
248
249
  --purple-12: oklch(0.88 0.0316 300);
249
250
 
250
251
  /* ── Neutral — Warm grays — H:350 ── */
252
+ --color-surface-0: oklch(0.07 0.008 360);
251
253
  --neutral-1: oklch(0.11 0.0002 350);
252
254
  --neutral-2: oklch(0.17 0.0007 350);
253
255
  --neutral-3: oklch(0.23 0.0019 350);
@@ -97,15 +97,31 @@
97
97
  /* ═══════════════════════════════════════════════════════════
98
98
  SURFACE
99
99
  ═══════════════════════════════════════════════════════════ */
100
- --color-surface-1: var(--neutral-1);
101
- --color-surface-2: var(--neutral-2);
102
- --color-surface-3: var(--neutral-3);
103
- --color-surface-4: var(--neutral-4);
100
+ /* Semantic surface tokens */
101
+ --color-surface-base: var(--neutral-2); /* 0.97L — slightly grey page (Stripe/Linear pattern) */
102
+ --color-surface-sunken: var(--color-surface-0);
103
+ --color-surface-raised: var(--neutral-1); /* 0.99L — white cards float above the page */
104
+ --color-surface-overlay: var(--neutral-1); /* same as raised — floating elements are white */
105
+ --color-surface-raised-hover: var(--neutral-3);
106
+ --color-surface-raised-active: var(--neutral-4);
107
+ --color-surface-inverted: var(--neutral-12);
108
+ --color-surface-inverted-fg: var(--neutral-1);
109
+ --color-surface-disabled: var(--neutral-2);
110
+ --color-surface-fg-disabled: var(--neutral-8);
111
+
112
+ /* Deprecated — remove in next major */
113
+ --color-surface-1: var(--color-surface-base);
114
+ --color-surface-2: var(--color-surface-raised);
115
+ --color-surface-3: var(--color-surface-raised-hover);
116
+ --color-surface-4: var(--color-surface-raised-active);
117
+
104
118
  --color-surface-fg: var(--neutral-12);
105
119
  --color-surface-fg-muted: var(--neutral-11);
106
120
  --color-surface-fg-subtle: var(--neutral-8);
107
121
  --color-surface-border: var(--neutral-5);
108
122
  --color-surface-border-strong: var(--neutral-6);
123
+ --color-surface-border-subtle: var(--neutral-4);
124
+ --color-backdrop: oklch(0 0 0 / 0.4);
109
125
 
110
126
  /* ═══════════════════════════════════════════════════════════
111
127
  STATUS — Error
@@ -258,12 +274,59 @@
258
274
  /* ═══════════════════════════════════════════════════════════
259
275
  SHADOWS
260
276
  ═══════════════════════════════════════════════════════════ */
261
- --shadow-01: 0 1px 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.10), 0 2px 6px oklch(0 0 0 / 0.08);
262
- --shadow-02: 0 1px 2px oklch(0 0 0 / 0.08), 0 4px 8px oklch(0 0 0 / 0.12), 0 8px 24px oklch(0 0 0 / 0.10);
263
- --shadow-03: 0 2px 4px oklch(0 0 0 / 0.08), 0 8px 16px oklch(0 0 0 / 0.12), 0 16px 40px oklch(0 0 0 / 0.10);
264
- --shadow-04: 0 2px 4px oklch(0 0 0 / 0.10), 0 12px 24px oklch(0 0 0 / 0.14), 0 24px 56px oklch(0 0 0 / 0.12);
277
+
278
+ /* Shadow color: cool blue tint for natural depth */
279
+ --shadow-color: 0.15 0.015 260;
280
+ --shadow-strength: 1;
281
+
282
+ /* Shadow transition */
283
+ --shadow-transition: box-shadow var(--duration-fast-02) var(--ease-productive-standard);
284
+
285
+ /* Shadow primitives (internal) */
286
+ --shadow-xs:
287
+ 0 0 0 1px oklch(var(--shadow-color) / calc(0.035 * var(--shadow-strength))),
288
+ 0 0.5px 1px -0.5px oklch(var(--shadow-color) / calc(0.045 * var(--shadow-strength))),
289
+ 0 1.5px 3px -1px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
290
+ 0 3px 7px -2px oklch(var(--shadow-color) / calc(0.03 * var(--shadow-strength)));
291
+ --shadow-sm:
292
+ 0 0 0 1px oklch(var(--shadow-color) / calc(0.035 * var(--shadow-strength))),
293
+ 0 0.5px 1px -0.5px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
294
+ 0 2px 4px -1.5px oklch(var(--shadow-color) / calc(0.045 * var(--shadow-strength))),
295
+ 0 6px 12px -3px oklch(var(--shadow-color) / calc(0.035 * var(--shadow-strength))),
296
+ 0 14px 28px -8px oklch(var(--shadow-color) / calc(0.025 * var(--shadow-strength)));
297
+ --shadow-md:
298
+ 0 0 0 1px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
299
+ 0 1px 2px -1px oklch(var(--shadow-color) / calc(0.05 * var(--shadow-strength))),
300
+ 0 4px 8px -2px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
301
+ 0 10px 20px -5px oklch(var(--shadow-color) / calc(0.035 * var(--shadow-strength))),
302
+ 0 24px 44px -12px oklch(var(--shadow-color) / calc(0.025 * var(--shadow-strength)));
303
+ --shadow-lg:
304
+ 0 0 0 1px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
305
+ 0 1px 2px -1px oklch(var(--shadow-color) / calc(0.05 * var(--shadow-strength))),
306
+ 0 3px 6px -2px oklch(var(--shadow-color) / calc(0.045 * var(--shadow-strength))),
307
+ 0 8px 16px -4px oklch(var(--shadow-color) / calc(0.04 * var(--shadow-strength))),
308
+ 0 18px 34px -8px oklch(var(--shadow-color) / calc(0.03 * var(--shadow-strength))),
309
+ 0 40px 64px -16px oklch(var(--shadow-color) / calc(0.025 * var(--shadow-strength)));
265
310
  --shadow-05: 0 4px 8px oklch(0 0 0 / 0.10), 0 16px 32px oklch(0 0 0 / 0.16), 0 32px 64px oklch(0 0 0 / 0.14);
266
- --shadow-brand: 0 4px 16px oklch(0.55 0.19 360 / 0.25);
311
+
312
+ /* Semantic elevation shadows (public API) */
313
+ --shadow-raised: var(--shadow-xs);
314
+ --shadow-raised-hover: var(--shadow-sm);
315
+ --shadow-floating: var(--shadow-md);
316
+ --shadow-overlay: var(--shadow-lg);
317
+
318
+ /* Effect shadows */
319
+ --shadow-brand: 0 2px 8px oklch(0.55 0.19 360 / 0.20), 0 6px 20px oklch(0.55 0.19 360 / 0.15);
320
+ --shadow-glow: 0 0 0 1.5px oklch(0.55 0.19 360 / 0.20), 0 0 7px oklch(0.55 0.19 360 / 0.12);
321
+ --shadow-inset: inset 0 1px 2px oklch(var(--shadow-color) / calc(0.08 * var(--shadow-strength))), inset 0 2px 5px oklch(var(--shadow-color) / calc(0.06 * var(--shadow-strength)));
322
+ --shadow-ring-sm: 0 0 0 1px var(--color-surface-border);
323
+ --shadow-ring: 0 0 0 2px oklch(0.55 0.19 360 / 0.30);
324
+
325
+ /* Deprecated shadow aliases */
326
+ --shadow-01: var(--shadow-raised);
327
+ --shadow-02: var(--shadow-raised-hover);
328
+ --shadow-03: var(--shadow-floating);
329
+ --shadow-04: var(--shadow-overlay);
267
330
 
268
331
  /* ═══════════════════════════════════════════════════════════
269
332
  SIZES
@@ -354,8 +417,15 @@
354
417
 
355
418
  /* Dark mode borders need lower contrast — bright borders look harsh.
356
419
  Drop to step 3/4 for subtle resting borders that don't overpower surfaces */
420
+ /* Dark mode: restore base/raised to original direction (raised = lighter than base) */
421
+ --color-surface-base: var(--neutral-1); /* 0.11L — dark page */
422
+ --color-surface-raised: var(--neutral-2); /* 0.17L — lighter cards */
423
+
357
424
  --color-surface-border: var(--neutral-3);
358
425
  --color-surface-border-strong: var(--neutral-4);
426
+ --color-surface-overlay: oklch(0.13 0.0002 350);
427
+ --color-surface-border-subtle: var(--neutral-2);
428
+ --color-backdrop: oklch(0 0 0 / 0.6);
359
429
 
360
430
  /* Overlay */
361
431
  --color-overlay: oklch(0 0 0 / 0.70);
@@ -372,12 +442,11 @@
372
442
  --color-skeleton-shimmer: var(--neutral-3);
373
443
 
374
444
  /* Shadows (heavier in dark mode) */
375
- --shadow-01: 0 1px 1px oklch(0 0 0 / 0.15), 0 1px 3px oklch(0 0 0 / 0.25), 0 2px 6px oklch(0 0 0 / 0.20);
376
- --shadow-02: 0 1px 2px oklch(0 0 0 / 0.20), 0 4px 8px oklch(0 0 0 / 0.30), 0 8px 24px oklch(0 0 0 / 0.25);
377
- --shadow-03: 0 2px 4px oklch(0 0 0 / 0.20), 0 8px 16px oklch(0 0 0 / 0.30), 0 16px 40px oklch(0 0 0 / 0.25);
378
- --shadow-04: 0 2px 4px oklch(0 0 0 / 0.25), 0 12px 24px oklch(0 0 0 / 0.35), 0 24px 56px oklch(0 0 0 / 0.30);
445
+ --shadow-strength: 2.5;
379
446
  --shadow-05: 0 4px 8px oklch(0 0 0 / 0.25), 0 16px 32px oklch(0 0 0 / 0.40), 0 32px 64px oklch(0 0 0 / 0.35);
380
- --shadow-brand: 0 4px 16px oklch(0.55 0.19 360 / 0.35);
447
+ --shadow-brand: 0 2px 8px oklch(0.55 0.19 360 / 0.30), 0 6px 20px oklch(0.55 0.19 360 / 0.20);
448
+ --shadow-glow: 0 0 0 1.5px oklch(0.55 0.19 360 / 0.35), 0 0 10px oklch(0.55 0.19 360 / 0.20);
449
+ --shadow-ring: 0 0 0 2px oklch(0.55 0.19 360 / 0.45);
381
450
 
382
451
  /* Gradients */
383
452
  --gradient-brand-light: linear-gradient(135deg, var(--pink-9), var(--purple-9));
@@ -372,7 +372,7 @@
372
372
 
373
373
  .prose-devsabha code {
374
374
  font-size: 12px;
375
- background: var(--color-surface-3);
375
+ background: var(--color-surface-raised-hover);
376
376
  border-radius: 4px;
377
377
  padding: 0.15em 0.4em;
378
378
  }
@@ -20,7 +20,7 @@ const N = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__
20
20
  {
21
21
  ref: r,
22
22
  className: i(
23
- "group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:bg-surface-2 rounded-ds-md data-[state=open]:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
23
+ "group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:bg-surface-raised rounded-ds-md data-[state=open]:bg-surface-raised focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
24
24
  o
25
25
  ),
26
26
  ...t,
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as h } from "react/jsx-runtime";
2
+ import { jsx as s, jsxs as h } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { O as p, w as R, x as u, y as g, D as x, A as y, z as b, B as C, E as j } from "../_chunks/primitives.js";
4
+ import { O as p, w as R, x as u, y as g, D as y, A as x, z as b, B as C, E as j } from "../_chunks/primitives.js";
5
5
  import { cn as i } from "./lib/utils.js";
6
6
  import { tweens as f, springs as M } from "./lib/motion.js";
7
7
  import { A as T, m } from "../_chunks/framer.js";
8
8
  const v = o.createContext({ open: !1 }), z = () => o.useContext(v), P = ({
9
9
  open: t,
10
- defaultOpen: s,
10
+ defaultOpen: a,
11
11
  onOpenChange: e,
12
12
  ...r
13
13
  }) => {
14
- const [l, A] = o.useState(s ?? !1), n = t !== void 0, d = n ? t : l, D = o.useCallback(
14
+ const [l, A] = o.useState(a ?? !1), n = t !== void 0, d = n ? t : l, D = o.useCallback(
15
15
  (c) => {
16
16
  n || A(c), e == null || e(c);
17
17
  },
18
18
  [n, e]
19
19
  ), w = o.useMemo(() => ({ open: d }), [d]);
20
- return /* @__PURE__ */ a(v.Provider, { value: w, children: /* @__PURE__ */ a(C, { open: d, onOpenChange: D, ...r }) });
20
+ return /* @__PURE__ */ s(v.Provider, { value: w, children: /* @__PURE__ */ s(C, { open: d, onOpenChange: D, ...r }) });
21
21
  };
22
22
  P.displayName = "AlertDialog";
23
- const L = j, F = R, N = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
23
+ const L = j, F = R, N = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
24
24
  p,
25
25
  {
26
26
  ref: e,
@@ -29,14 +29,14 @@ const L = j, F = R, N = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__
29
29
  "fixed inset-0 z-modal bg-overlay",
30
30
  t
31
31
  ),
32
- ...s
32
+ ...a
33
33
  }
34
34
  ));
35
35
  N.displayName = p.displayName;
36
- const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
36
+ const H = o.forwardRef(({ className: t, children: a, ...e }, r) => {
37
37
  const { open: l } = z();
38
- return /* @__PURE__ */ a(T, { children: l && /* @__PURE__ */ h(F, { forceMount: !0, children: [
39
- /* @__PURE__ */ a(N, { asChild: !0, children: /* @__PURE__ */ a(
38
+ return /* @__PURE__ */ s(T, { children: l && /* @__PURE__ */ h(F, { forceMount: !0, children: [
39
+ /* @__PURE__ */ s(N, { asChild: !0, children: /* @__PURE__ */ s(
40
40
  m.div,
41
41
  {
42
42
  initial: { opacity: 0 },
@@ -45,14 +45,14 @@ const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
45
45
  transition: f.fade
46
46
  }
47
47
  ) }),
48
- /* @__PURE__ */ a(
48
+ /* @__PURE__ */ s(
49
49
  u,
50
50
  {
51
51
  ref: r,
52
52
  forceMount: !0,
53
53
  asChild: !0,
54
54
  ...e,
55
- children: /* @__PURE__ */ a(
55
+ children: /* @__PURE__ */ s(
56
56
  m.div,
57
57
  {
58
58
  initial: { opacity: 0, scale: 0.95, x: "-50%", y: "-50%" },
@@ -60,10 +60,10 @@ const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
60
60
  exit: { opacity: 0, scale: 0.95, x: "-50%", y: "-50%" },
61
61
  transition: { ...M.smooth, opacity: f.fade },
62
62
  className: i(
63
- "fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg gap-ds-05 border border-surface-border-strong bg-surface-1 p-ds-06 shadow-04 rounded-ds-xl",
63
+ "fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg gap-ds-05 border border-surface-border-strong bg-surface-overlay p-ds-06 shadow-overlay rounded-ds-xl",
64
64
  t
65
65
  ),
66
- children: s
66
+ children: a
67
67
  }
68
68
  )
69
69
  }
@@ -72,7 +72,7 @@ const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
72
72
  });
73
73
  H.displayName = u.displayName;
74
74
  const O = o.forwardRef(
75
- ({ className: t, ...s }, e) => /* @__PURE__ */ a(
75
+ ({ className: t, ...a }, e) => /* @__PURE__ */ s(
76
76
  "div",
77
77
  {
78
78
  ref: e,
@@ -80,13 +80,13 @@ const O = o.forwardRef(
80
80
  "flex flex-col space-y-ds-02b text-center sm:text-left",
81
81
  t
82
82
  ),
83
- ...s
83
+ ...a
84
84
  }
85
85
  )
86
86
  );
87
87
  O.displayName = "AlertDialogHeader";
88
88
  const k = o.forwardRef(
89
- ({ className: t, ...s }, e) => /* @__PURE__ */ a(
89
+ ({ className: t, ...a }, e) => /* @__PURE__ */ s(
90
90
  "div",
91
91
  {
92
92
  ref: e,
@@ -94,12 +94,12 @@ const k = o.forwardRef(
94
94
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
95
95
  t
96
96
  ),
97
- ...s
97
+ ...a
98
98
  }
99
99
  )
100
100
  );
101
101
  k.displayName = "AlertDialogFooter";
102
- const B = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
102
+ const B = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
103
103
  g,
104
104
  {
105
105
  ref: e,
@@ -107,40 +107,40 @@ const B = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
107
107
  "text-ds-lg font-semibold",
108
108
  t
109
109
  ),
110
- ...s
110
+ ...a
111
111
  }
112
112
  ));
113
113
  B.displayName = g.displayName;
114
- const E = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
115
- x,
114
+ const E = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
115
+ y,
116
116
  {
117
117
  ref: e,
118
118
  className: i("text-ds-md text-surface-fg-muted", t),
119
- ...s
119
+ ...a
120
120
  }
121
121
  ));
122
- E.displayName = x.displayName;
123
- const I = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
124
- y,
122
+ E.displayName = y.displayName;
123
+ const I = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
124
+ x,
125
125
  {
126
126
  ref: e,
127
127
  className: i(
128
- "inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
128
+ "inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-raised focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
129
129
  t
130
130
  ),
131
- ...s
131
+ ...a
132
132
  }
133
133
  ));
134
- I.displayName = y.displayName;
135
- const S = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
134
+ I.displayName = x.displayName;
135
+ const S = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
136
136
  b,
137
137
  {
138
138
  ref: e,
139
139
  className: i(
140
- "inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-transparent text-surface-fg-muted border border-surface-border-strong hover:bg-surface-2 hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
140
+ "inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-transparent text-surface-fg-muted border border-surface-border-strong hover:bg-surface-raised hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
141
141
  t
142
142
  ),
143
- ...s
143
+ ...a
144
144
  }
145
145
  ));
146
146
  S.displayName = b.displayName;
package/dist/ui/alert.js CHANGED
@@ -2,11 +2,11 @@
2
2
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
3
3
  import { IconInfoCircle as o, IconAlertCircle as v, IconAlertTriangle as x, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
4
4
  import * as r from "react";
5
- import { ag as w } from "../_chunks/vendor-utils.js";
6
- import { cn as h } from "./lib/utils.js";
5
+ import { ag as h } from "../_chunks/vendor-utils.js";
6
+ import { cn as w } from "./lib/utils.js";
7
7
  import { springs as y, motionProps as I } from "./lib/motion.js";
8
8
  import { A as C, m as A } from "../_chunks/framer.js";
9
- const k = w(
9
+ const k = h(
10
10
  "relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
11
11
  {
12
12
  variants: {
@@ -29,13 +29,13 @@ const k = w(
29
29
  { variant: "subtle", color: "success", className: "bg-success-3 border-success-7 text-success-11" },
30
30
  { variant: "subtle", color: "warning", className: "bg-warning-3 border-warning-7 text-warning-11" },
31
31
  { variant: "subtle", color: "error", className: "bg-error-3 border-error-7 text-error-11" },
32
- { variant: "subtle", color: "neutral", className: "bg-surface-2 border-surface-border-strong text-surface-fg [&>svg]:text-surface-fg-muted" },
32
+ { variant: "subtle", color: "neutral", className: "bg-surface-raised border-surface-border-strong text-surface-fg [&>svg]:text-surface-fg-muted" },
33
33
  // filled (solid bg, white text)
34
34
  { variant: "filled", color: "info", className: "bg-info-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
35
35
  { variant: "filled", color: "success", className: "bg-success-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
36
36
  { variant: "filled", color: "warning", className: "bg-warning-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
37
37
  { variant: "filled", color: "error", className: "bg-error-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
38
- { variant: "filled", color: "neutral", className: "bg-surface-3 text-surface-fg border-transparent [&>svg]:text-surface-fg-muted" },
38
+ { variant: "filled", color: "neutral", className: "bg-surface-raised-hover text-surface-fg border-transparent [&>svg]:text-surface-fg-muted" },
39
39
  // outline (transparent bg, colored border)
40
40
  { variant: "outline", color: "info", className: "bg-transparent border-info-7 text-info-11" },
41
41
  { variant: "outline", color: "success", className: "bg-transparent border-success-7 text-success-11" },
@@ -52,25 +52,25 @@ const k = w(
52
52
  error: v,
53
53
  neutral: o
54
54
  }, j = r.forwardRef(
55
- ({ className: c, variant: i = "subtle", color: t = "info", title: a, onDismiss: s, children: l, ...f }, u) => {
56
- const d = V[t ?? "info"], [m, g] = r.useState(!0), b = r.useCallback(() => {
55
+ ({ className: c, variant: i = "subtle", color: a = "info", title: t, onDismiss: s, children: l, ...f }, d) => {
56
+ const u = V[a ?? "info"], [m, g] = r.useState(!0), b = r.useCallback(() => {
57
57
  g(!1);
58
58
  }, []);
59
59
  return /* @__PURE__ */ e(C, { onExitComplete: s, children: m && /* @__PURE__ */ n(
60
60
  A.div,
61
61
  {
62
- ref: u,
62
+ ref: d,
63
63
  initial: { opacity: 1, y: 0 },
64
64
  animate: { opacity: 1, y: 0 },
65
65
  exit: { opacity: 0, y: -8 },
66
66
  transition: y.snappy,
67
- className: h(k({ variant: i, color: t }), c),
67
+ className: w(k({ variant: i, color: a }), c),
68
68
  role: "alert",
69
69
  ...I(f),
70
70
  children: [
71
- /* @__PURE__ */ e(d, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
71
+ /* @__PURE__ */ e(u, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
72
72
  /* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: [
73
- a && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: a }),
73
+ t && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: t }),
74
74
  /* @__PURE__ */ e("div", { className: "text-ds-md text-surface-fg-muted", children: l })
75
75
  ] }),
76
76
  s && /* @__PURE__ */ e(
@@ -78,7 +78,7 @@ const k = w(
78
78
  {
79
79
  type: "button",
80
80
  onClick: b,
81
- className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-3 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
81
+ className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-raised-hover active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
82
82
  "aria-label": "Dismiss",
83
83
  children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm" })
84
84
  }
@@ -22,7 +22,7 @@ const q = {
22
22
  id: E,
23
23
  ...N
24
24
  }, c) => {
25
- const $ = t.useId(), k = E || $, v = `${k}-listbox`, D = `${k}-option`, [m, y] = t.useState((s == null ? void 0 : s.label) ?? ""), [l, i] = t.useState(!1), [r, n] = t.useState(-1), M = t.useRef(null), S = t.useRef(null), x = t.useRef(), C = t.useCallback(
25
+ const $ = t.useId(), v = E || $, k = `${v}-listbox`, D = `${v}-option`, [m, y] = t.useState((s == null ? void 0 : s.label) ?? ""), [l, i] = t.useState(!1), [r, a] = t.useState(-1), M = t.useRef(null), S = t.useRef(null), x = t.useRef(), C = t.useCallback(
26
26
  (e) => {
27
27
  M.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
28
28
  },
@@ -33,12 +33,12 @@ const q = {
33
33
  }, [s]), t.useEffect(() => () => {
34
34
  x.current && clearTimeout(x.current);
35
35
  }, []);
36
- const a = t.useMemo(
36
+ const n = t.useMemo(
37
37
  () => m ? h.filter((e) => e.label.toLowerCase().includes(m.toLowerCase())) : h,
38
38
  [h, m]
39
39
  ), p = t.useCallback(
40
40
  (e) => {
41
- y(e.label), i(!1), n(-1), u == null || u(e);
41
+ y(e.label), i(!1), a(-1), u == null || u(e);
42
42
  },
43
43
  [u]
44
44
  ), K = t.useCallback(
@@ -49,20 +49,20 @@ const q = {
49
49
  }
50
50
  switch (e.key) {
51
51
  case "ArrowDown":
52
- e.preventDefault(), n((o) => Math.min(o + 1, a.length - 1));
52
+ e.preventDefault(), a((o) => Math.min(o + 1, n.length - 1));
53
53
  break;
54
54
  case "ArrowUp":
55
- e.preventDefault(), n((o) => Math.max(o - 1, 0));
55
+ e.preventDefault(), a((o) => Math.max(o - 1, 0));
56
56
  break;
57
57
  case "Enter":
58
- e.preventDefault(), r >= 0 && a[r] && p(a[r]);
58
+ e.preventDefault(), r >= 0 && n[r] && p(n[r]);
59
59
  break;
60
60
  case "Escape":
61
- i(!1), n(-1);
61
+ i(!1), a(-1);
62
62
  break;
63
63
  }
64
64
  },
65
- [l, a, r, p]
65
+ [l, n, r, p]
66
66
  ), O = r >= 0 ? `${D}-${r}` : void 0;
67
67
  return /* @__PURE__ */ T("div", { className: b("relative", A), ...N, children: [
68
68
  /* @__PURE__ */ f(
@@ -73,19 +73,19 @@ const q = {
73
73
  role: "combobox",
74
74
  "aria-expanded": l,
75
75
  "aria-autocomplete": "list",
76
- "aria-controls": l ? v : void 0,
76
+ "aria-controls": l ? k : void 0,
77
77
  "aria-activedescendant": O,
78
78
  value: m,
79
79
  placeholder: I,
80
80
  disabled: w,
81
81
  className: b(
82
- "flex h-ds-md w-full rounded-ds-md border border-surface-border-strong bg-surface-3 px-ds-04 py-ds-03 font-sans text-ds-md text-surface-fg placeholder:text-surface-fg-subtle",
82
+ "flex h-ds-md w-full rounded-ds-md border border-surface-border-strong bg-surface-raised-hover px-ds-04 py-ds-03 font-sans text-ds-md text-surface-fg placeholder:text-surface-fg-subtle",
83
83
  "outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-[var(--border-focus-offset)]",
84
84
  "transition-colors duration-fast-01",
85
85
  w && "opacity-action-disabled cursor-not-allowed"
86
86
  ),
87
87
  onChange: (e) => {
88
- y(e.target.value), i(!0), n(-1);
88
+ y(e.target.value), i(!0), a(-1);
89
89
  },
90
90
  onFocus: () => i(!0),
91
91
  onBlur: () => {
@@ -97,7 +97,7 @@ const q = {
97
97
  /* @__PURE__ */ f(P, { children: l && /* @__PURE__ */ f(
98
98
  g.ul,
99
99
  {
100
- id: v,
100
+ id: k,
101
101
  ref: S,
102
102
  role: "listbox",
103
103
  initial: "hidden",
@@ -105,10 +105,10 @@ const q = {
105
105
  exit: "hidden",
106
106
  variants: q,
107
107
  className: b(
108
- "absolute z-popover mt-ds-02 w-full overflow-auto rounded-ds-md border border-surface-border-strong bg-surface-1 shadow-02",
108
+ "absolute z-popover mt-ds-02 w-full overflow-auto rounded-ds-md border border-surface-border-strong bg-surface-overlay shadow-raised-hover",
109
109
  "max-h-60"
110
110
  ),
111
- children: a.length === 0 ? /* @__PURE__ */ f(
111
+ children: n.length === 0 ? /* @__PURE__ */ f(
112
112
  g.li,
113
113
  {
114
114
  initial: { opacity: 0 },
@@ -117,7 +117,7 @@ const q = {
117
117
  className: "px-ds-04 py-ds-03 text-ds-md text-surface-fg-muted",
118
118
  children: R
119
119
  }
120
- ) : a.map((e, o) => /* @__PURE__ */ f(
120
+ ) : n.map((e, o) => /* @__PURE__ */ f(
121
121
  g.li,
122
122
  {
123
123
  id: `${D}-${o}`,
@@ -134,7 +134,7 @@ const q = {
134
134
  onKeyDown: (d) => {
135
135
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), p(e));
136
136
  },
137
- onMouseEnter: () => n(o),
137
+ onMouseEnter: () => a(o),
138
138
  children: e.label
139
139
  },
140
140
  e.value
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAUjE,eAAO,MAAM,cAAc;;;8EAmB1B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAoE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,EACnF,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,SAAS,CAAA;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,MAAM,qFA6EV,CAAA;AAGF,QAAA,MAAM,WAAW,gKAgBf,CAAA;AAGF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,6FAiClB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAYjE,eAAO,MAAM,cAAc;;;8EAmB1B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AA6E7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,EACnF,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,SAAS,CAAA;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,MAAM,qFA+EV,CAAA;AAGF,QAAA,MAAM,WAAW,gKAgBf,CAAA;AAGF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,6FAmClB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}