@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
package/dist/ui/dialog.js CHANGED
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as d } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { aa as g, ab as C, ac as f, ad as x, ae as y, af as N, ag as R, ah as j } from "../_chunks/primitives.js";
4
+ import { aa as g, ab as C, ac as f, ad as y, ae as x, af as v, ag as R, ah as j } from "../_chunks/primitives.js";
5
5
  import { IconX as M } from "@tabler/icons-react";
6
6
  import { cn as i } from "./lib/utils.js";
7
7
  import { tweens as p, springs as T } from "./lib/motion.js";
8
8
  import { A as P, m as u } from "../_chunks/framer.js";
9
- const v = t.createContext({ open: !1 }), z = () => t.useContext(v), A = ({
9
+ const N = t.createContext({ open: !1 }), z = () => t.useContext(N), A = ({
10
10
  open: a,
11
11
  defaultOpen: s,
12
12
  onOpenChange: e,
13
13
  ...r
14
14
  }) => {
15
- const [l, b] = t.useState(s ?? !1), n = a !== void 0, c = n ? a : l, h = t.useCallback(
15
+ const [l, h] = t.useState(s ?? !1), n = a !== void 0, c = n ? a : l, b = t.useCallback(
16
16
  (m) => {
17
- n || b(m), e == null || e(m);
17
+ n || h(m), e == null || e(m);
18
18
  },
19
19
  [n, e]
20
20
  ), w = t.useMemo(() => ({ open: c }), [c]);
21
- return /* @__PURE__ */ o(v.Provider, { value: w, children: /* @__PURE__ */ o(R, { open: c, onOpenChange: h, ...r }) });
21
+ return /* @__PURE__ */ o(N.Provider, { value: w, children: /* @__PURE__ */ o(R, { open: c, onOpenChange: b, ...r }) });
22
22
  };
23
23
  A.displayName = "Dialog";
24
- const K = j, F = C, L = x, D = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
24
+ const K = j, F = C, L = y, D = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
25
25
  g,
26
26
  {
27
27
  ref: e,
@@ -61,12 +61,12 @@ const H = t.forwardRef(({ className: a, children: s, ...e }, r) => {
61
61
  exit: { opacity: 0, scale: 0.95, x: "-50%", y: "-50%" },
62
62
  transition: { ...T.smooth, opacity: p.fade },
63
63
  className: i(
64
- "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",
64
+ "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",
65
65
  a
66
66
  ),
67
67
  children: [
68
68
  s,
69
- /* @__PURE__ */ d(x, { className: "absolute right-ds-05 top-ds-05 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-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
69
+ /* @__PURE__ */ d(y, { className: "absolute right-ds-05 top-ds-05 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-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
70
70
  /* @__PURE__ */ o(M, { className: "h-ico-lg w-ico-lg" }),
71
71
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
72
72
  ] })
@@ -116,7 +116,7 @@ const O = t.forwardRef(
116
116
  );
117
117
  O.displayName = "DialogFooter";
118
118
  const S = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
119
- y,
119
+ x,
120
120
  {
121
121
  ref: e,
122
122
  className: i(
@@ -126,16 +126,16 @@ const S = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
126
126
  ...s
127
127
  }
128
128
  ));
129
- S.displayName = y.displayName;
129
+ S.displayName = x.displayName;
130
130
  const V = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
131
- N,
131
+ v,
132
132
  {
133
133
  ref: e,
134
134
  className: i("text-ds-md text-surface-fg-muted", a),
135
135
  ...s
136
136
  }
137
137
  ));
138
- V.displayName = N.displayName;
138
+ V.displayName = v.displayName;
139
139
  export {
140
140
  A as Dialog,
141
141
  L as DialogClose,
@@ -1,68 +1,68 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as o } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import { X as f, Y as b, Z as w, _ as y, $ as g, a0 as x, a1 as h, a2 as v, a3 as N, a4 as M, a5 as P, a6 as _, a7 as j, a8 as G, a9 as T } from "../_chunks/primitives.js";
2
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
3
+ import * as t from "react";
4
+ import { X as f, Y as b, Z as y, _ as w, $ as g, a0 as v, a1 as h, a2 as x, a3 as N, a4 as M, a5 as P, a6 as _, a7 as j, a8 as G, a9 as T } from "../_chunks/primitives.js";
5
5
  import { IconChevronRight as z, IconCheck as A, IconCircle as L } from "@tabler/icons-react";
6
6
  import { cn as d } from "./lib/utils.js";
7
7
  import { tweens as D, springs as C } from "./lib/motion.js";
8
8
  import { A as R, m as S } from "../_chunks/framer.js";
9
- const I = r.createContext(!1), k = r.createContext(!1), U = ({
9
+ const I = t.createContext(!1), k = t.createContext(!1), U = ({
10
10
  open: s,
11
- defaultOpen: a = !1,
11
+ defaultOpen: o = !1,
12
12
  onOpenChange: e,
13
- ...t
13
+ ...r
14
14
  }) => {
15
- const [n, i] = r.useState(a), c = s !== void 0, l = c ? s : n, p = r.useCallback(
15
+ const [n, c] = t.useState(o), i = s !== void 0, l = i ? s : n, p = t.useCallback(
16
16
  (u) => {
17
- c || i(u), e == null || e(u);
17
+ i || c(u), e == null || e(u);
18
18
  },
19
- [c, e]
19
+ [i, e]
20
20
  );
21
- return /* @__PURE__ */ o(I.Provider, { value: l, children: /* @__PURE__ */ o(_, { open: l, onOpenChange: p, ...t }) });
21
+ return /* @__PURE__ */ a(I.Provider, { value: l, children: /* @__PURE__ */ a(_, { open: l, onOpenChange: p, ...r }) });
22
22
  };
23
23
  U.displayName = "DropdownMenu";
24
- const se = P, oe = j, ae = w, X = ({
24
+ const se = P, ae = j, oe = y, X = ({
25
25
  open: s,
26
- defaultOpen: a = !1,
26
+ defaultOpen: o = !1,
27
27
  onOpenChange: e,
28
- ...t
28
+ ...r
29
29
  }) => {
30
- const [n, i] = r.useState(a), c = s !== void 0, l = c ? s : n, p = r.useCallback(
30
+ const [n, c] = t.useState(o), i = s !== void 0, l = i ? s : n, p = t.useCallback(
31
31
  (u) => {
32
- c || i(u), e == null || e(u);
32
+ i || c(u), e == null || e(u);
33
33
  },
34
- [c, e]
34
+ [i, e]
35
35
  );
36
- return /* @__PURE__ */ o(k.Provider, { value: l, children: /* @__PURE__ */ o(T, { open: l, onOpenChange: p, ...t }) });
36
+ return /* @__PURE__ */ a(k.Provider, { value: l, children: /* @__PURE__ */ a(T, { open: l, onOpenChange: p, ...r }) });
37
37
  };
38
38
  X.displayName = "DropdownMenuSub";
39
- const te = G, Y = r.forwardRef(({ className: s, inset: a, children: e, ...t }, n) => /* @__PURE__ */ m(
39
+ const re = G, Y = t.forwardRef(({ className: s, inset: o, children: e, ...r }, n) => /* @__PURE__ */ m(
40
40
  f,
41
41
  {
42
42
  ref: n,
43
43
  className: d(
44
- "flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-2 data-[state=open]:bg-surface-2 [&_svg]:pointer-events-none [&_svg]:h-ico-sm [&_svg]:w-ico-sm [&_svg]:shrink-0",
45
- a && "pl-ds-07",
44
+ "flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-raised data-[state=open]:bg-surface-raised [&_svg]:pointer-events-none [&_svg]:h-ico-sm [&_svg]:w-ico-sm [&_svg]:shrink-0",
45
+ o && "pl-ds-07",
46
46
  s
47
47
  ),
48
- ...t,
48
+ ...r,
49
49
  children: [
50
50
  e,
51
- /* @__PURE__ */ o(z, { className: "ml-auto" })
51
+ /* @__PURE__ */ a(z, { className: "ml-auto" })
52
52
  ]
53
53
  }
54
54
  ));
55
55
  Y.displayName = f.displayName;
56
- const Z = r.forwardRef(({ className: s, children: a, ...e }, t) => {
57
- const n = r.useContext(k);
58
- return /* @__PURE__ */ o(R, { children: n && /* @__PURE__ */ o(
56
+ const Z = t.forwardRef(({ className: s, children: o, ...e }, r) => {
57
+ const n = t.useContext(k);
58
+ return /* @__PURE__ */ a(R, { children: n && /* @__PURE__ */ a(
59
59
  b,
60
60
  {
61
- ref: t,
61
+ ref: r,
62
62
  forceMount: !0,
63
63
  asChild: !0,
64
64
  ...e,
65
- children: /* @__PURE__ */ o(
65
+ children: /* @__PURE__ */ a(
66
66
  S.div,
67
67
  {
68
68
  initial: { opacity: 0, scale: 0.95 },
@@ -70,27 +70,27 @@ const Z = r.forwardRef(({ className: s, children: a, ...e }, t) => {
70
70
  exit: { opacity: 0, scale: 0.95 },
71
71
  transition: { ...C.snappy, opacity: D.fade },
72
72
  className: d(
73
- "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",
73
+ "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",
74
74
  s
75
75
  ),
76
- children: a
76
+ children: o
77
77
  }
78
78
  )
79
79
  }
80
80
  ) });
81
81
  });
82
82
  Z.displayName = b.displayName;
83
- const $ = r.forwardRef(({ className: s, sideOffset: a = 4, children: e, ...t }, n) => {
84
- const i = r.useContext(I);
85
- return /* @__PURE__ */ o(R, { children: i && /* @__PURE__ */ o(w, { forceMount: !0, children: /* @__PURE__ */ o(
86
- y,
83
+ const $ = t.forwardRef(({ className: s, sideOffset: o = 4, children: e, ...r }, n) => {
84
+ const c = t.useContext(I);
85
+ return /* @__PURE__ */ a(R, { children: c && /* @__PURE__ */ a(y, { forceMount: !0, children: /* @__PURE__ */ a(
86
+ w,
87
87
  {
88
88
  ref: n,
89
- sideOffset: a,
89
+ sideOffset: o,
90
90
  forceMount: !0,
91
91
  asChild: !0,
92
- ...t,
93
- children: /* @__PURE__ */ o(
92
+ ...r,
93
+ children: /* @__PURE__ */ a(
94
94
  S.div,
95
95
  {
96
96
  initial: { opacity: 0, scale: 0.95 },
@@ -98,7 +98,7 @@ const $ = r.forwardRef(({ className: s, sideOffset: a = 4, children: e, ...t },
98
98
  exit: { opacity: 0, scale: 0.95 },
99
99
  transition: { ...C.snappy, opacity: D.fade },
100
100
  className: d(
101
- "z-popover min-w-[8rem] rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
101
+ "z-popover min-w-[8rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
102
102
  s
103
103
  ),
104
104
  children: e
@@ -107,83 +107,83 @@ const $ = r.forwardRef(({ className: s, sideOffset: a = 4, children: e, ...t },
107
107
  }
108
108
  ) }) });
109
109
  });
110
- $.displayName = y.displayName;
111
- const q = r.forwardRef(({ className: s, inset: a, ...e }, t) => /* @__PURE__ */ o(
110
+ $.displayName = w.displayName;
111
+ const q = t.forwardRef(({ className: s, inset: o, ...e }, r) => /* @__PURE__ */ a(
112
112
  g,
113
113
  {
114
- ref: t,
114
+ ref: r,
115
115
  className: d(
116
- "relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-2 focus:bg-surface-2 focus:text-surface-fg active:bg-surface-3 data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
117
- a && "pl-ds-07",
116
+ "relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-raised focus:bg-surface-raised focus:text-surface-fg active:bg-surface-raised-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
117
+ o && "pl-ds-07",
118
118
  s
119
119
  ),
120
120
  ...e
121
121
  }
122
122
  ));
123
123
  q.displayName = g.displayName;
124
- const B = r.forwardRef(({ className: s, children: a, checked: e, ...t }, n) => /* @__PURE__ */ m(
125
- x,
124
+ const B = t.forwardRef(({ className: s, children: o, checked: e, ...r }, n) => /* @__PURE__ */ m(
125
+ v,
126
126
  {
127
127
  ref: n,
128
128
  className: d(
129
- "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 transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-2 focus:bg-surface-2 focus:text-surface-fg active:bg-surface-3 data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
129
+ "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 transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-raised focus:bg-surface-raised focus:text-surface-fg active:bg-surface-raised-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
130
130
  s
131
131
  ),
132
132
  checked: e,
133
- ...t,
133
+ ...r,
134
134
  children: [
135
- /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(A, { className: "h-ico-sm w-ico-sm" }) }) }),
136
- a
135
+ /* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ a(h, { children: /* @__PURE__ */ a(A, { className: "h-ico-sm w-ico-sm" }) }) }),
136
+ o
137
137
  ]
138
138
  }
139
139
  ));
140
- B.displayName = x.displayName;
141
- const E = r.forwardRef(({ className: s, children: a, ...e }, t) => /* @__PURE__ */ m(
142
- v,
140
+ B.displayName = v.displayName;
141
+ const E = t.forwardRef(({ className: s, children: o, ...e }, r) => /* @__PURE__ */ m(
142
+ x,
143
143
  {
144
- ref: t,
144
+ ref: r,
145
145
  className: d(
146
- "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 transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-2 focus:bg-surface-2 focus:text-surface-fg active:bg-surface-3 data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
146
+ "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 transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-raised focus:bg-surface-raised focus:text-surface-fg active:bg-surface-raised-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
147
147
  s
148
148
  ),
149
149
  ...e,
150
150
  children: [
151
- /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(L, { className: "h-2 w-2 fill-current" }) }) }),
152
- a
151
+ /* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ a(h, { children: /* @__PURE__ */ a(L, { className: "h-2 w-2 fill-current" }) }) }),
152
+ o
153
153
  ]
154
154
  }
155
155
  ));
156
- E.displayName = v.displayName;
157
- const F = r.forwardRef(({ className: s, inset: a, ...e }, t) => /* @__PURE__ */ o(
156
+ E.displayName = x.displayName;
157
+ const F = t.forwardRef(({ className: s, inset: o, ...e }, r) => /* @__PURE__ */ a(
158
158
  N,
159
159
  {
160
- ref: t,
160
+ ref: r,
161
161
  className: d(
162
162
  "px-ds-03 py-ds-02b text-ds-md font-semibold",
163
- a && "pl-ds-07",
163
+ o && "pl-ds-07",
164
164
  s
165
165
  ),
166
166
  ...e
167
167
  }
168
168
  ));
169
169
  F.displayName = N.displayName;
170
- const H = r.forwardRef(({ className: s, ...a }, e) => /* @__PURE__ */ o(
170
+ const H = t.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ a(
171
171
  M,
172
172
  {
173
173
  ref: e,
174
174
  className: d("-mx-ds-01 my-ds-02 h-px bg-surface-border", s),
175
- ...a
175
+ ...o
176
176
  }
177
177
  ));
178
178
  H.displayName = M.displayName;
179
179
  const J = ({
180
180
  className: s,
181
- ...a
182
- }) => /* @__PURE__ */ o(
181
+ ...o
182
+ }) => /* @__PURE__ */ a(
183
183
  "span",
184
184
  {
185
185
  className: d("ml-auto text-ds-sm text-surface-fg-subtle", s),
186
- ...a
186
+ ...o
187
187
  }
188
188
  );
189
189
  J.displayName = "DropdownMenuShortcut";
@@ -191,11 +191,11 @@ export {
191
191
  U as DropdownMenu,
192
192
  B as DropdownMenuCheckboxItem,
193
193
  $ as DropdownMenuContent,
194
- oe as DropdownMenuGroup,
194
+ ae as DropdownMenuGroup,
195
195
  q as DropdownMenuItem,
196
196
  F as DropdownMenuLabel,
197
- ae as DropdownMenuPortal,
198
- te as DropdownMenuRadioGroup,
197
+ oe as DropdownMenuPortal,
198
+ re as DropdownMenuRadioGroup,
199
199
  E as DropdownMenuRadioItem,
200
200
  H as DropdownMenuSeparator,
201
201
  J as DropdownMenuShortcut,
@@ -99,7 +99,7 @@ const J = r.forwardRef(
99
99
  "inline-flex items-center gap-ds-02 rounded-ds-md px-ds-03 py-ds-02",
100
100
  "text-ds-sm font-medium",
101
101
  "border border-surface-border-strong",
102
- "bg-surface-3 text-surface-fg-muted",
102
+ "bg-surface-raised-hover text-surface-fg-muted",
103
103
  "hover:bg-accent-2",
104
104
  "disabled:opacity-action-disabled disabled:cursor-not-allowed",
105
105
  "transition-colors"
@@ -165,7 +165,7 @@ const J = r.forwardRef(
165
165
  "flex flex-col items-center justify-center gap-ds-03 rounded-ds-lg",
166
166
  "border-2 border-dashed p-ds-08",
167
167
  "cursor-pointer",
168
- "border-surface-border-strong bg-surface-3",
168
+ "border-surface-border-strong bg-surface-raised-hover",
169
169
  b && "border-accent-7 bg-accent-2",
170
170
  s && "opacity-action-disabled cursor-not-allowed"
171
171
  ),
@@ -213,7 +213,7 @@ const J = r.forwardRef(
213
213
  "aria-valuenow": x,
214
214
  "aria-valuemin": 0,
215
215
  "aria-valuemax": 100,
216
- className: "h-2 w-full overflow-hidden rounded-ds-full bg-surface-3",
216
+ className: "h-2 w-full overflow-hidden rounded-ds-full bg-surface-raised-hover",
217
217
  children: /* @__PURE__ */ t(
218
218
  c.div,
219
219
  {
@@ -1,32 +1,32 @@
1
1
  "use client";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { r as u, s as p, t as C, u as v } from "../_chunks/primitives.js";
4
+ import { r as u, s as p, t as v, u as C } from "../_chunks/primitives.js";
5
5
  import { cn as y } from "./lib/utils.js";
6
- import { tweens as x, springs as b } from "./lib/motion.js";
7
- import { A as g, m as H } from "../_chunks/framer.js";
6
+ import { tweens as g, springs as x } from "./lib/motion.js";
7
+ import { A as b, m as H } from "../_chunks/framer.js";
8
8
  const m = t.createContext(!1), h = ({
9
- open: s,
10
- defaultOpen: a = !1,
9
+ open: a,
10
+ defaultOpen: s = !1,
11
11
  onOpenChange: e,
12
12
  ...n
13
13
  }) => {
14
- const [i, c] = t.useState(a), o = s !== void 0, d = o ? s : i, f = t.useCallback(
14
+ const [i, c] = t.useState(s), o = a !== void 0, d = o ? a : i, f = t.useCallback(
15
15
  (l) => {
16
16
  o || c(l), e == null || e(l);
17
17
  },
18
18
  [o, e]
19
19
  );
20
- return /* @__PURE__ */ r(m.Provider, { value: d, children: /* @__PURE__ */ r(v, { open: d, onOpenChange: f, ...n }) });
20
+ return /* @__PURE__ */ r(m.Provider, { value: d, children: /* @__PURE__ */ r(C, { open: d, onOpenChange: f, ...n }) });
21
21
  };
22
22
  h.displayName = "HoverCard";
23
- const T = C, w = t.forwardRef(({ className: s, align: a = "center", sideOffset: e = 4, children: n, ...i }, c) => {
23
+ const T = v, w = t.forwardRef(({ className: a, align: s = "center", sideOffset: e = 4, children: n, ...i }, c) => {
24
24
  const o = t.useContext(m);
25
- return /* @__PURE__ */ r(g, { children: o && /* @__PURE__ */ r(u, { forceMount: !0, children: /* @__PURE__ */ r(
25
+ return /* @__PURE__ */ r(b, { children: o && /* @__PURE__ */ r(u, { forceMount: !0, children: /* @__PURE__ */ r(
26
26
  p,
27
27
  {
28
28
  ref: c,
29
- align: a,
29
+ align: s,
30
30
  sideOffset: e,
31
31
  forceMount: !0,
32
32
  asChild: !0,
@@ -37,10 +37,10 @@ const T = C, w = t.forwardRef(({ className: s, align: a = "center", sideOffset:
37
37
  initial: { opacity: 0, scale: 0.95 },
38
38
  animate: { opacity: 1, scale: 1 },
39
39
  exit: { opacity: 0, scale: 0.95 },
40
- transition: { ...b.snappy, opacity: x.fade },
40
+ transition: { ...x.snappy, opacity: g.fade },
41
41
  className: y(
42
- "z-popover w-64 rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-05 shadow-03 outline-none",
43
- s
42
+ "z-popover w-64 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 shadow-floating outline-none",
43
+ a
44
44
  ),
45
45
  children: n
46
46
  }
@@ -1,45 +1,45 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
4
  import { OTPInput as m, OTPInputContext as u } from "input-otp";
5
5
  import { IconMinus as f } from "@tabler/icons-react";
6
6
  import { cn as o } from "./lib/utils.js";
7
- const x = a.forwardRef(({ className: e, containerClassName: t, ...s }, n) => /* @__PURE__ */ r(
7
+ const x = a.forwardRef(({ className: e, containerClassName: r, ...s }, n) => /* @__PURE__ */ t(
8
8
  m,
9
9
  {
10
10
  ref: n,
11
11
  containerClassName: o(
12
12
  "flex items-center gap-ds-03 has-[:disabled]:opacity-action-disabled",
13
- t
13
+ r
14
14
  ),
15
15
  className: o("disabled:cursor-not-allowed", e),
16
16
  ...s
17
17
  }
18
18
  ));
19
19
  x.displayName = "InputOTP";
20
- const b = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ r("div", { ref: s, className: o("flex items-center", e), ...t }));
20
+ const b = a.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t("div", { ref: s, className: o("flex items-center", e), ...r }));
21
21
  b.displayName = "InputOTPGroup";
22
- const I = a.forwardRef(({ index: e, className: t, ...s }, n) => {
22
+ const I = a.forwardRef(({ index: e, className: r, ...s }, n) => {
23
23
  const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: c } = i.slots[e];
24
24
  return /* @__PURE__ */ p(
25
25
  "div",
26
26
  {
27
27
  ref: n,
28
28
  className: o(
29
- "relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-01 transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
29
+ "relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-raised transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
30
30
  c && "z-raised ring-2 ring-accent-9",
31
- t
31
+ r
32
32
  ),
33
33
  ...s,
34
34
  children: [
35
35
  d,
36
- l && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" }) })
36
+ l && /* @__PURE__ */ t("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ t("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" }) })
37
37
  ]
38
38
  }
39
39
  );
40
40
  });
41
41
  I.displayName = "InputOTPSlot";
42
- const O = a.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
42
+ const O = a.forwardRef(({ ...e }, r) => /* @__PURE__ */ t("div", { ref: r, role: "separator", ...e, children: /* @__PURE__ */ t(f, {}) }));
43
43
  O.displayName = "InputOTPSeparator";
44
44
  export {
45
45
  x as InputOTP,
package/dist/ui/input.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as g } from "react/jsx-runtime";
2
+ import { jsx as o, jsxs as g } from "react/jsx-runtime";
3
3
  import * as v from "react";
4
4
  import { ag as p } from "../_chunks/vendor-utils.js";
5
5
  import { cn as d } from "./lib/utils.js";
@@ -9,14 +9,14 @@ import { m as w } from "../_chunks/framer.js";
9
9
  const y = p(
10
10
  [
11
11
  "flex w-full font-sans",
12
- "bg-surface-3 text-surface-fg",
12
+ "bg-surface-raised-hover text-surface-fg",
13
13
  "border border-surface-border rounded-ds-md",
14
14
  "placeholder:text-surface-fg-subtle",
15
- "hover:bg-surface-4",
15
+ "hover:bg-surface-raised-active",
16
16
  "transition-colors duration-fast-01 ease-productive-standard",
17
17
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-7 focus-visible:border-surface-border",
18
18
  "disabled:cursor-not-allowed disabled:opacity-action-disabled",
19
- "read-only:bg-surface-2 read-only:cursor-default"
19
+ "read-only:bg-surface-raised read-only:cursor-default"
20
20
  ],
21
21
  {
22
22
  variants: {
@@ -29,13 +29,13 @@ const y = p(
29
29
  defaultVariants: { size: "md" }
30
30
  }
31
31
  ), N = v.forwardRef(
32
- ({ className: n, type: l, state: m, size: t = "md", startIcon: e, endIcon: s, ...o }, u) => {
33
- const r = h(), i = m ?? (r.state === "helper" ? void 0 : r.state), f = o["aria-describedby"] ?? r.helperTextId, b = o["aria-required"] ?? r.required, c = /* @__PURE__ */ a(
32
+ ({ className: n, type: l, state: m, size: a = "md", startIcon: e, endIcon: s, ...t }, u) => {
33
+ const r = h(), i = m ?? (r.state === "helper" ? void 0 : r.state), f = t["aria-describedby"] ?? r.helperTextId, b = t["aria-required"] ?? r.required, c = /* @__PURE__ */ o(
34
34
  w.input,
35
35
  {
36
36
  type: l,
37
37
  className: d(
38
- y({ size: t }),
38
+ y({ size: a }),
39
39
  e && "pl-ds-07",
40
40
  s && "pr-ds-07",
41
41
  i === "error" && "border-error-7 focus-visible:ring-error-7",
@@ -47,13 +47,13 @@ const y = p(
47
47
  "aria-describedby": f,
48
48
  "aria-required": b || void 0,
49
49
  ref: u,
50
- ...x(o)
50
+ ...x(t)
51
51
  }
52
52
  );
53
53
  return !e && !s ? c : /* @__PURE__ */ g("div", { className: "relative flex items-center w-full", children: [
54
- e && /* @__PURE__ */ a("span", { className: d("absolute left-ds-03 flex items-center text-surface-fg-muted pointer-events-none", t === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: e }),
54
+ e && /* @__PURE__ */ o("span", { className: d("absolute left-ds-03 flex items-center text-surface-fg-muted pointer-events-none", a === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: e }),
55
55
  c,
56
- s && /* @__PURE__ */ a("span", { className: d("absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none", t === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: s })
56
+ s && /* @__PURE__ */ o("span", { className: d("absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none", a === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: s })
57
57
  ] });
58
58
  }
59
59
  );