@devalok/shilp-sutra 0.33.2 → 0.34.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 (61) hide show
  1. package/dist/_chunks/badge-group.js +9 -9
  2. package/dist/_chunks/date-time-picker.js +6 -6
  3. package/dist/_chunks/document-preview.js +6 -6
  4. package/dist/_chunks/file-preview.js +1 -1
  5. package/dist/_chunks/image-preview.js +4 -4
  6. package/dist/_chunks/tree-view.js +1 -1
  7. package/dist/_chunks/typing-indicator.js +2 -2
  8. package/dist/_chunks/use-calendar.js +2 -2
  9. package/dist/ai/command-bar.js +2 -2
  10. package/dist/composed/command-palette.js +1 -1
  11. package/dist/composed/inline-edit.js +5 -5
  12. package/dist/composed/master-detail.js +30 -30
  13. package/dist/composed/multi-select-popover.js +1 -1
  14. package/dist/composed/page-header.js +9 -9
  15. package/dist/composed/rich-chat-input.js +8 -8
  16. package/dist/composed/rich-text-editor.js +16 -16
  17. package/dist/shell/top-bar.js +29 -29
  18. package/dist/tailwind/index.cjs +2 -11
  19. package/dist/tailwind/preset.d.ts.map +1 -1
  20. package/dist/tailwind/preset.js +2 -11
  21. package/dist/ui/accordion.js +11 -11
  22. package/dist/ui/alert-dialog.js +5 -5
  23. package/dist/ui/alert.js +1 -1
  24. package/dist/ui/autocomplete.js +1 -1
  25. package/dist/ui/banner.js +4 -4
  26. package/dist/ui/breadcrumb.js +10 -10
  27. package/dist/ui/button.js +1 -1
  28. package/dist/ui/checkbox.js +9 -9
  29. package/dist/ui/color-input.js +27 -27
  30. package/dist/ui/combobox.js +4 -4
  31. package/dist/ui/context-menu.js +9 -9
  32. package/dist/ui/data-table-body.js +8 -8
  33. package/dist/ui/data-table-header.js +1 -1
  34. package/dist/ui/data-table-toolbar.js +1 -1
  35. package/dist/ui/data-table.js +1 -1
  36. package/dist/ui/dialog.js +7 -7
  37. package/dist/ui/dropdown-menu.js +46 -46
  38. package/dist/ui/hover-card.js +3 -3
  39. package/dist/ui/input-otp.d.ts.map +1 -1
  40. package/dist/ui/input.js +8 -8
  41. package/dist/ui/link.js +4 -4
  42. package/dist/ui/menubar.js +52 -52
  43. package/dist/ui/navigation-menu.js +15 -15
  44. package/dist/ui/number-input.js +5 -5
  45. package/dist/ui/pagination.js +1 -1
  46. package/dist/ui/popover.js +32 -32
  47. package/dist/ui/radio.js +6 -6
  48. package/dist/ui/segmented-control.js +1 -1
  49. package/dist/ui/select.js +2 -2
  50. package/dist/ui/sheet.js +8 -8
  51. package/dist/ui/sidebar.js +5 -5
  52. package/dist/ui/slider.js +4 -4
  53. package/dist/ui/split-button.js +3 -3
  54. package/dist/ui/switch.js +4 -4
  55. package/dist/ui/tabs.js +2 -2
  56. package/dist/ui/textarea.js +4 -4
  57. package/dist/ui/toast.js +2 -2
  58. package/dist/ui/toggle.js +4 -4
  59. package/llms-full.txt +1 -1
  60. package/llms.txt +12 -0
  61. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AAMrD,QAAA,MAAM,QAAQ;;;;;kBAQE,GAAG;;;;;;;;;;;;;kBAAH,GAAG;;;;;;;;2FAKjB,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,YAAY;WAEiC,MAAM;wCAuBvD,CAAA;AAGF,QAAA,MAAM,iBAAiB,mKAOrB,CAAA;AAGF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE3E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AAMrD,QAAA,MAAM,QAAQ;;;;;kBAUV,GAAD;;;;;;;;;;;;;kBAAC,GAAD;;;;;;;;2FAGD,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,YAAY;WAEiC,MAAM;wCAuBvD,CAAA;AAGF,QAAA,MAAM,iBAAiB,mKAOrB,CAAA;AAGF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE3E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
package/dist/ui/input.js CHANGED
@@ -12,7 +12,7 @@ const w = B(
12
12
  "border border-surface-border rounded-ds-md",
13
13
  "hover:bg-surface-raised-active",
14
14
  "transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
15
- "focus-within:outline-none focus-within:ring-2 focus-within:ring-accent-9 focus-within:ring-offset-2 focus-within:border-surface-border",
15
+ "focus-within:outline-hidden focus-within:ring-2 focus-within:ring-accent-9 focus-within:ring-offset-2 focus-within:border-surface-border",
16
16
  "has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-action-disabled",
17
17
  "has-[:read-only]:bg-surface-raised has-[:read-only]:cursor-default"
18
18
  ],
@@ -52,9 +52,9 @@ const w = B(
52
52
  startIcon: M,
53
53
  endIcon: k,
54
54
  wrapperClassName: P,
55
- ...o
55
+ ...a
56
56
  }, R) => {
57
- const e = N ?? "md", t = D(), n = z ?? (t.state === "helper" ? void 0 : t.state), S = o["aria-describedby"] ?? t.helperTextId, V = o["aria-required"] ?? t.required, d = T ?? M, i = j ?? k, a = !!d, c = !!i, l = q ?? (typeof d == "string" ? "label" : "icon"), u = I ?? (typeof i == "string" ? "label" : "icon"), p = {
57
+ const e = N ?? "md", t = D(), n = z ?? (t.state === "helper" ? void 0 : t.state), S = a["aria-describedby"] ?? t.helperTextId, V = a["aria-required"] ?? t.required, d = T ?? M, i = j ?? k, o = !!d, c = !!i, l = q ?? (typeof d == "string" ? "label" : "icon"), u = I ?? (typeof i == "string" ? "label" : "icon"), p = {
58
58
  xs: "px-ds-02",
59
59
  sm: "px-ds-02",
60
60
  md: "px-ds-03",
@@ -81,7 +81,7 @@ const w = B(
81
81
  P
82
82
  ),
83
83
  children: [
84
- a && l === "label" && /* @__PURE__ */ s(
84
+ o && l === "label" && /* @__PURE__ */ s(
85
85
  "span",
86
86
  {
87
87
  className: r(
@@ -96,7 +96,7 @@ const w = B(
96
96
  children: d
97
97
  }
98
98
  ),
99
- a && l === "icon" && /* @__PURE__ */ s(h, { size: g[e], children: /* @__PURE__ */ s(
99
+ o && l === "icon" && /* @__PURE__ */ s(h, { size: g[e], children: /* @__PURE__ */ s(
100
100
  "span",
101
101
  {
102
102
  className: r(
@@ -112,13 +112,13 @@ const w = B(
112
112
  {
113
113
  type: y,
114
114
  className: r(
115
- "flex-1 min-w-0 h-full bg-transparent outline-none font-sans",
115
+ "flex-1 min-w-0 h-full bg-transparent outline-hidden font-sans",
116
116
  "placeholder:text-surface-fg-subtle",
117
117
  "disabled:cursor-not-allowed",
118
118
  "read-only:cursor-default",
119
119
  E[e],
120
120
  // Remove left padding when start icon section is present (icon provides visual space)
121
- a && l === "icon" && "pl-0",
121
+ o && l === "icon" && "pl-0",
122
122
  // Remove right padding when end icon section is present
123
123
  c && u === "icon" && "pr-0",
124
124
  v
@@ -127,7 +127,7 @@ const w = B(
127
127
  "aria-describedby": S,
128
128
  "aria-required": V || void 0,
129
129
  ref: R,
130
- ...o
130
+ ...a
131
131
  }
132
132
  ),
133
133
  c && u === "label" && /* @__PURE__ */ s(
package/dist/ui/link.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
2
+ import { jsx as n } from "react/jsx-runtime";
3
3
  import { S as a } from "../_chunks/primitives.js";
4
4
  import * as c from "react";
5
5
  import { cn as s } from "./lib/utils.js";
6
6
  const d = c.forwardRef(
7
- ({ className: o, inline: e = !0, asChild: t = !1, ...r }, n) => /* @__PURE__ */ i(
7
+ ({ className: o, inline: e = !0, asChild: t = !1, ...r }, i) => /* @__PURE__ */ n(
8
8
  t ? a : "a",
9
9
  {
10
- ref: n,
10
+ ref: i,
11
11
  className: s(
12
12
  "text-accent-11 underline decoration-transparent hover:decoration-current underline-offset-2",
13
13
  "hover:text-accent-12 active:opacity-80 transition-[color,text-decoration-color,opacity] duration-fast-01 ease-productive-standard",
14
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
14
+ "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
15
15
  e ? "inline" : "block",
16
16
  o
17
17
  ),
@@ -1,34 +1,34 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
3
- import * as t from "react";
4
- import { aV as p, aW as f, aX as b, aY as g, aZ as y, a_ as h, a$ as N, b0 as x, b1 as v, b2 as M, b3 as w, b4 as R, b5 as k, b6 as _, b7 as j, b8 as z } from "../_chunks/primitives.js";
3
+ import * as o from "react";
4
+ import { aV as p, aW as f, aX as b, aY as g, aZ as h, a_ as y, a$ as N, b0 as x, b1 as v, b2 as M, b3 as w, b4 as R, b5 as k, b6 as _, b7 as j, b8 as z } from "../_chunks/primitives.js";
5
5
  import { IconChevronRight as G, IconCheck as P, IconCircle as T } from "@tabler/icons-react";
6
- import { cn as n } from "./lib/utils.js";
6
+ import { cn as d } from "./lib/utils.js";
7
7
  import { tweens as O, springs as A } from "./lib/motion.js";
8
8
  import { Icon as C } from "./icon.js";
9
9
  import { A as L, m as U } from "../_chunks/framer.js";
10
- const S = t.createContext(!1), V = (e) => /* @__PURE__ */ r(j, { ...e });
10
+ const S = o.createContext(!1), V = (e) => /* @__PURE__ */ r(j, { ...e });
11
11
  V.displayName = "MenubarMenu";
12
- const te = k, ne = y, W = ({
12
+ const oe = k, de = h, W = ({
13
13
  open: e,
14
14
  defaultOpen: s = !1,
15
15
  onOpenChange: a,
16
- ...o
16
+ ...t
17
17
  }) => {
18
- const [d, c] = t.useState(s), i = e !== void 0, u = i ? e : d, I = t.useCallback(
18
+ const [n, c] = o.useState(s), i = e !== void 0, u = i ? e : n, I = o.useCallback(
19
19
  (m) => {
20
20
  i || c(m), a?.(m);
21
21
  },
22
22
  [i, a]
23
23
  );
24
- return /* @__PURE__ */ r(S.Provider, { value: u, children: /* @__PURE__ */ r(z, { open: u, onOpenChange: I, ...o }) });
24
+ return /* @__PURE__ */ r(S.Provider, { value: u, children: /* @__PURE__ */ r(z, { open: u, onOpenChange: I, ...t }) });
25
25
  };
26
26
  W.displayName = "MenubarSub";
27
- const de = _, X = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
27
+ const ne = _, X = o.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
28
28
  p,
29
29
  {
30
30
  ref: a,
31
- className: n(
31
+ className: d(
32
32
  "flex h-ds-sm-plus items-center space-x-ds-02 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 shadow-raised",
33
33
  e
34
34
  ),
@@ -36,28 +36,28 @@ const de = _, X = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
36
36
  }
37
37
  ));
38
38
  X.displayName = p.displayName;
39
- const Y = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
39
+ const Y = o.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
40
40
  f,
41
41
  {
42
42
  ref: a,
43
- className: n(
44
- "flex cursor-default select-none items-center rounded-ds-sm px-ds-04 py-ds-02 text-ds-md font-medium outline-none transition-colors hover:bg-surface-raised-hover focus-visible:bg-surface-raised-hover data-[state=open]:bg-surface-raised-hover",
43
+ className: d(
44
+ "flex cursor-default select-none items-center rounded-ds-sm px-ds-04 py-ds-02 text-ds-md font-medium outline-hidden transition-colors hover:bg-surface-raised-hover focus-visible:bg-surface-raised-hover data-[state=open]:bg-surface-raised-hover",
45
45
  e
46
46
  ),
47
47
  ...s
48
48
  }
49
49
  ));
50
50
  Y.displayName = f.displayName;
51
- const Z = t.forwardRef(({ className: e, inset: s, children: a, ...o }, d) => /* @__PURE__ */ l(
51
+ const Z = o.forwardRef(({ className: e, inset: s, children: a, ...t }, n) => /* @__PURE__ */ l(
52
52
  b,
53
53
  {
54
- ref: d,
55
- className: n(
56
- "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",
54
+ ref: n,
55
+ className: d(
56
+ "flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-hidden 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",
57
57
  s && "pl-ds-07",
58
58
  e
59
59
  ),
60
- ...o,
60
+ ...t,
61
61
  children: [
62
62
  a,
63
63
  /* @__PURE__ */ r(C, { icon: G, size: "sm", className: "ml-auto" })
@@ -65,12 +65,12 @@ const Z = t.forwardRef(({ className: e, inset: s, children: a, ...o }, d) => /*
65
65
  }
66
66
  ));
67
67
  Z.displayName = b.displayName;
68
- const $ = t.forwardRef(({ className: e, children: s, ...a }, o) => {
69
- const d = t.useContext(S);
70
- return /* @__PURE__ */ r(L, { children: d && /* @__PURE__ */ r(
68
+ const $ = o.forwardRef(({ className: e, children: s, ...a }, t) => {
69
+ const n = o.useContext(S);
70
+ return /* @__PURE__ */ r(L, { children: n && /* @__PURE__ */ r(
71
71
  g,
72
72
  {
73
- ref: o,
73
+ ref: t,
74
74
  forceMount: !0,
75
75
  asChild: !0,
76
76
  ...a,
@@ -81,7 +81,7 @@ const $ = t.forwardRef(({ className: e, children: s, ...a }, o) => {
81
81
  animate: { opacity: 1, scale: 1 },
82
82
  exit: { opacity: 0, scale: 0.95 },
83
83
  transition: { ...A.snappy, opacity: O.fade },
84
- className: n(
84
+ className: d(
85
85
  "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",
86
86
  e
87
87
  ),
@@ -92,31 +92,31 @@ const $ = t.forwardRef(({ className: e, children: s, ...a }, o) => {
92
92
  ) });
93
93
  });
94
94
  $.displayName = g.displayName;
95
- const q = t.forwardRef(
96
- ({ className: e, align: s = "start", alignOffset: a = -4, sideOffset: o = 8, children: d, ...c }, i) => /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(
97
- h,
95
+ const q = o.forwardRef(
96
+ ({ className: e, align: s = "start", alignOffset: a = -4, sideOffset: t = 8, children: n, ...c }, i) => /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(
97
+ y,
98
98
  {
99
99
  ref: i,
100
100
  align: s,
101
101
  alignOffset: a,
102
- sideOffset: o,
103
- className: n(
102
+ sideOffset: t,
103
+ className: d(
104
104
  "z-popover min-w-[12rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
105
105
  "data-[state=open]:animate-popover-in data-[state=closed]:animate-popover-out",
106
106
  e
107
107
  ),
108
108
  ...c,
109
- children: d
109
+ children: n
110
110
  }
111
111
  ) })
112
112
  );
113
- q.displayName = h.displayName;
114
- const B = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */ r(
113
+ q.displayName = y.displayName;
114
+ const B = o.forwardRef(({ className: e, inset: s, ...a }, t) => /* @__PURE__ */ r(
115
115
  N,
116
116
  {
117
- ref: o,
118
- className: n(
119
- "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 focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
117
+ ref: t,
118
+ className: d(
119
+ "relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-hidden transition-colors focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
120
120
  s && "pl-ds-07",
121
121
  e
122
122
  ),
@@ -124,16 +124,16 @@ const B = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
124
124
  }
125
125
  ));
126
126
  B.displayName = N.displayName;
127
- const D = t.forwardRef(({ className: e, children: s, checked: a, ...o }, d) => /* @__PURE__ */ l(
127
+ const D = o.forwardRef(({ className: e, children: s, checked: a, ...t }, n) => /* @__PURE__ */ l(
128
128
  x,
129
129
  {
130
- ref: d,
131
- className: n(
132
- "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 focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
130
+ ref: n,
131
+ className: d(
132
+ "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-hidden transition-colors focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
133
133
  e
134
134
  ),
135
135
  checked: a,
136
- ...o,
136
+ ...t,
137
137
  children: [
138
138
  /* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(C, { icon: P, size: "sm" }) }) }),
139
139
  s
@@ -141,12 +141,12 @@ const D = t.forwardRef(({ className: e, children: s, checked: a, ...o }, d) => /
141
141
  }
142
142
  ));
143
143
  D.displayName = x.displayName;
144
- const E = t.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__ */ l(
144
+ const E = o.forwardRef(({ className: e, children: s, ...a }, t) => /* @__PURE__ */ l(
145
145
  M,
146
146
  {
147
- ref: o,
148
- className: n(
149
- "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 focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
147
+ ref: t,
148
+ className: d(
149
+ "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-hidden transition-colors focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
150
150
  e
151
151
  ),
152
152
  ...a,
@@ -157,11 +157,11 @@ const E = t.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__
157
157
  }
158
158
  ));
159
159
  E.displayName = M.displayName;
160
- const F = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */ r(
160
+ const F = o.forwardRef(({ className: e, inset: s, ...a }, t) => /* @__PURE__ */ r(
161
161
  w,
162
162
  {
163
- ref: o,
164
- className: n(
163
+ ref: t,
164
+ className: d(
165
165
  "px-ds-03 py-ds-02b text-ds-md font-semibold",
166
166
  s && "pl-ds-07",
167
167
  e
@@ -170,11 +170,11 @@ const F = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
170
170
  }
171
171
  ));
172
172
  F.displayName = w.displayName;
173
- const H = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
173
+ const H = o.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
174
174
  R,
175
175
  {
176
176
  ref: a,
177
- className: n("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
177
+ className: d("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
178
178
  ...s
179
179
  }
180
180
  ));
@@ -185,7 +185,7 @@ const J = ({
185
185
  }) => /* @__PURE__ */ r(
186
186
  "span",
187
187
  {
188
- className: n(
188
+ className: d(
189
189
  "ml-auto text-ds-sm text-surface-fg-subtle",
190
190
  e
191
191
  ),
@@ -197,12 +197,12 @@ export {
197
197
  X as Menubar,
198
198
  D as MenubarCheckboxItem,
199
199
  q as MenubarContent,
200
- te as MenubarGroup,
200
+ oe as MenubarGroup,
201
201
  B as MenubarItem,
202
202
  F as MenubarLabel,
203
203
  V as MenubarMenu,
204
- ne as MenubarPortal,
205
- de as MenubarRadioGroup,
204
+ de as MenubarPortal,
205
+ ne as MenubarRadioGroup,
206
206
  E as MenubarRadioItem,
207
207
  H as MenubarSeparator,
208
208
  J as MenubarShortcut,
@@ -3,7 +3,7 @@ import { jsxs as v, jsx as c } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
4
  import { b9 as N, ba as h, bb as w, bc as x, bd as R, be as M, bf as O, bg as V } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as L } from "@tabler/icons-react";
6
- import { cn as u } from "./lib/utils.js";
6
+ import { cn as d } from "./lib/utils.js";
7
7
  import { tweens as g, springs as I } from "./lib/motion.js";
8
8
  import { Icon as S } from "./icon.js";
9
9
  import { m as y } from "../_chunks/framer.js";
@@ -11,7 +11,7 @@ const W = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__PURE__
11
11
  N,
12
12
  {
13
13
  ref: r,
14
- className: u(
14
+ className: d(
15
15
  "relative z-raised flex max-w-max flex-1 items-center justify-center",
16
16
  n
17
17
  ),
@@ -27,7 +27,7 @@ const z = a.forwardRef(({ className: n, ...o }, t) => /* @__PURE__ */ c(
27
27
  h,
28
28
  {
29
29
  ref: t,
30
- className: u(
30
+ className: d(
31
31
  "group flex flex-1 list-none items-center justify-center space-x-ds-02",
32
32
  n
33
33
  ),
@@ -39,8 +39,8 @@ const P = O, D = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__
39
39
  w,
40
40
  {
41
41
  ref: r,
42
- className: u(
43
- "group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-ds-md bg-transparent px-ds-05 py-ds-03 text-ds-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled",
42
+ className: d(
43
+ "group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-ds-md bg-transparent px-ds-05 py-ds-03 text-ds-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled",
44
44
  n
45
45
  ),
46
46
  ...t,
@@ -68,8 +68,8 @@ const b = {
68
68
  a.useEffect(() => {
69
69
  const s = r.current;
70
70
  if (!s) return;
71
- const d = s.getAttribute("data-motion");
72
- d && l(d);
71
+ const u = s.getAttribute("data-motion");
72
+ u && l(u);
73
73
  const f = new MutationObserver((A) => {
74
74
  for (const C of A)
75
75
  if (C.attributeName === "data-motion") {
@@ -84,7 +84,7 @@ const b = {
84
84
  x,
85
85
  {
86
86
  ref: m,
87
- className: u(
87
+ className: d(
88
88
  "left-0 top-0 w-full md:absolute md:w-auto",
89
89
  n
90
90
  ),
@@ -116,16 +116,16 @@ const Q = V, j = a.forwardRef(({ className: n, ...o }, t) => {
116
116
  if (!e) return;
117
117
  const p = e.getAttribute("data-state");
118
118
  l(p === "open");
119
- const s = new MutationObserver((d) => {
120
- for (const f of d)
119
+ const s = new MutationObserver((u) => {
120
+ for (const f of u)
121
121
  f.attributeName === "data-state" && l(e.getAttribute("data-state") === "open");
122
122
  });
123
123
  return s.observe(e, { attributes: !0, attributeFilter: ["data-state"] }), () => s.disconnect();
124
- }, []), /* @__PURE__ */ v("div", { className: u("absolute left-0 top-full flex justify-center"), children: [
124
+ }, []), /* @__PURE__ */ v("div", { className: d("absolute left-0 top-full flex justify-center"), children: [
125
125
  /* @__PURE__ */ c(
126
126
  R,
127
127
  {
128
- className: u(
128
+ className: d(
129
129
  "origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]",
130
130
  n
131
131
  ),
@@ -158,8 +158,8 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
158
158
  if (!e) return;
159
159
  const p = e.getAttribute("data-state");
160
160
  l(p === "visible");
161
- const s = new MutationObserver((d) => {
162
- for (const f of d)
161
+ const s = new MutationObserver((u) => {
162
+ for (const f of u)
163
163
  f.attributeName === "data-state" && l(e.getAttribute("data-state") === "visible");
164
164
  });
165
165
  return s.observe(e, { attributes: !0, attributeFilter: ["data-state"] }), () => s.disconnect();
@@ -167,7 +167,7 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
167
167
  M,
168
168
  {
169
169
  ref: m,
170
- className: u(
170
+ className: d(
171
171
  "top-full z-base flex h-ds-02b items-end justify-center overflow-hidden",
172
172
  n
173
173
  ),
@@ -15,9 +15,9 @@ const M = w.forwardRef(
15
15
  disabled: c = !1,
16
16
  className: m,
17
17
  "aria-label": b,
18
- ...u
18
+ ...d
19
19
  }, p) => {
20
- const d = D(), h = b ?? (u.id || d.helperTextId ? void 0 : "Numeric value"), v = (s) => {
20
+ const u = D(), h = b ?? (d.id || u.helperTextId ? void 0 : "Numeric value"), v = (s) => {
21
21
  const e = s.target.value.trim();
22
22
  if (e === "" || e === "-") {
23
23
  n?.(t >= 0 ? t : 0);
@@ -68,9 +68,9 @@ const M = w.forwardRef(
68
68
  step: i,
69
69
  disabled: c,
70
70
  "aria-label": h,
71
- "aria-describedby": u["aria-describedby"] ?? d.helperTextId,
72
- className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
73
- ...u
71
+ "aria-describedby": d["aria-describedby"] ?? u.helperTextId,
72
+ className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
73
+ ...d
74
74
  }
75
75
  ),
76
76
  /* @__PURE__ */ a(
@@ -34,7 +34,7 @@ const u = o.forwardRef(
34
34
  ref: t,
35
35
  "aria-current": i ? "page" : void 0,
36
36
  className: r(
37
- "inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium tabular-nums transition-colors 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 active:scale-95",
37
+ "inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium tabular-nums transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled active:scale-95",
38
38
  i ? "bg-accent-9 text-accent-fg" : "hover:bg-surface-raised-hover text-surface-fg",
39
39
  e
40
40
  ),
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as h } from "react/jsx-runtime";
3
- import * as n from "react";
3
+ import * as s from "react";
4
4
  import { ab as P, a6 as R, a5 as M, a7 as w, q as N, r as y, p as A, o as O, bh as j } from "../_chunks/primitives.js";
5
5
  import { cn as g } from "./lib/utils.js";
6
6
  import { tweens as v, springs as z } from "./lib/motion.js";
@@ -8,21 +8,21 @@ import { useIsMobile as E } from "../hooks/use-mobile.js";
8
8
  import { u as k, A as b, m as p } from "../_chunks/framer.js";
9
9
  function B({
10
10
  open: t,
11
- onOpenChange: s,
11
+ onOpenChange: a,
12
12
  children: i,
13
- className: l,
14
- dragHandle: c = !0,
15
- swipeable: d = !0,
16
- title: a
13
+ className: d,
14
+ dragHandle: l = !0,
15
+ swipeable: c = !0,
16
+ title: n
17
17
  }) {
18
- const o = k(), r = n.useRef(null), u = n.useCallback(
18
+ const o = k(), r = s.useRef(null), u = s.useCallback(
19
19
  (f, m) => {
20
20
  const C = r.current?.getBoundingClientRect().height ?? 300;
21
- (m.offset.y > C * 0.3 || m.velocity.y > 500) && s(!1);
21
+ (m.offset.y > C * 0.3 || m.velocity.y > 500) && a(!1);
22
22
  },
23
- [s]
23
+ [a]
24
24
  );
25
- return /* @__PURE__ */ e(P, { open: t, onOpenChange: s, children: /* @__PURE__ */ e(b, { children: t && /* @__PURE__ */ h(R, { forceMount: !0, children: [
25
+ return /* @__PURE__ */ e(P, { open: t, onOpenChange: a, children: /* @__PURE__ */ e(b, { children: t && /* @__PURE__ */ h(R, { forceMount: !0, children: [
26
26
  /* @__PURE__ */ e(M, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ e(
27
27
  p.div,
28
28
  {
@@ -38,25 +38,25 @@ function B({
38
38
  {
39
39
  forceMount: !0,
40
40
  asChild: !0,
41
- "aria-label": a,
41
+ "aria-label": n,
42
42
  children: /* @__PURE__ */ h(
43
43
  p.div,
44
44
  {
45
45
  ref: r,
46
46
  className: g(
47
- "fixed inset-x-0 bottom-0 z-modal max-h-[85vh] overflow-y-auto rounded-t-ds-xl border-t border-surface-border-strong bg-surface-overlay shadow-overlay outline-none",
48
- l
47
+ "fixed inset-x-0 bottom-0 z-modal max-h-[85vh] overflow-y-auto rounded-t-ds-xl border-t border-surface-border-strong bg-surface-overlay shadow-overlay outline-hidden",
48
+ d
49
49
  ),
50
50
  initial: { y: "100%" },
51
51
  animate: { y: 0 },
52
52
  exit: { y: "100%" },
53
53
  transition: o ? { duration: 0 } : { type: "spring", damping: 30, stiffness: 300 },
54
- drag: d && !o ? "y" : !1,
54
+ drag: c && !o ? "y" : !1,
55
55
  dragConstraints: { top: 0 },
56
56
  dragElastic: 0.2,
57
57
  onDragEnd: u,
58
58
  children: [
59
- c && /* @__PURE__ */ e("div", { className: "flex justify-center pt-ds-03 pb-ds-02", children: /* @__PURE__ */ e("div", { className: "h-1 w-8 rounded-ds-full bg-surface-border" }) }),
59
+ l && /* @__PURE__ */ e("div", { className: "flex justify-center pt-ds-03 pb-ds-02", children: /* @__PURE__ */ e("div", { className: "h-1 w-8 rounded-ds-full bg-surface-border" }) }),
60
60
  /* @__PURE__ */ e("div", { className: "px-ds-05 pb-ds-06", children: i })
61
61
  ]
62
62
  }
@@ -65,28 +65,28 @@ function B({
65
65
  )
66
66
  ] }) }) });
67
67
  }
68
- const x = n.createContext({ open: !1, onClose: () => {
68
+ const x = s.createContext({ open: !1, onClose: () => {
69
69
  } }), D = ({
70
70
  open: t,
71
- defaultOpen: s = !1,
71
+ defaultOpen: a = !1,
72
72
  onOpenChange: i,
73
- ...l
73
+ ...d
74
74
  }) => {
75
- const [c, d] = n.useState(s), a = t !== void 0, o = a ? t : c, r = n.useCallback(
75
+ const [l, c] = s.useState(a), n = t !== void 0, o = n ? t : l, r = s.useCallback(
76
76
  (f) => {
77
- a || d(f), i?.(f);
77
+ n || c(f), i?.(f);
78
78
  },
79
- [a, i]
80
- ), u = n.useMemo(
79
+ [n, i]
80
+ ), u = s.useMemo(
81
81
  () => ({ open: o, onClose: () => r(!1) }),
82
82
  [o, r]
83
83
  );
84
- return /* @__PURE__ */ e(x.Provider, { value: u, children: /* @__PURE__ */ e(O, { open: o, onOpenChange: r, ...l }) });
84
+ return /* @__PURE__ */ e(x.Provider, { value: u, children: /* @__PURE__ */ e(O, { open: o, onOpenChange: r, ...d }) });
85
85
  };
86
86
  D.displayName = "Popover";
87
- const _ = A, $ = j, S = n.forwardRef(({ className: t, align: s = "center", sideOffset: i = 4, children: l, ...c }, d) => {
88
- const a = E(), { open: o, onClose: r } = n.useContext(x);
89
- return a ? /* @__PURE__ */ e(
87
+ const _ = A, $ = j, S = s.forwardRef(({ className: t, align: a = "center", sideOffset: i = 4, children: d, ...l }, c) => {
88
+ const n = E(), { open: o, onClose: r } = s.useContext(x);
89
+ return n ? /* @__PURE__ */ e(
90
90
  B,
91
91
  {
92
92
  open: o,
@@ -95,17 +95,17 @@ const _ = A, $ = j, S = n.forwardRef(({ className: t, align: s = "center", sideO
95
95
  },
96
96
  title: "Options",
97
97
  className: t,
98
- children: l
98
+ children: d
99
99
  }
100
100
  ) : /* @__PURE__ */ e(b, { children: o && /* @__PURE__ */ e(N, { forceMount: !0, children: /* @__PURE__ */ e(
101
101
  y,
102
102
  {
103
- ref: d,
104
- align: s,
103
+ ref: c,
104
+ align: a,
105
105
  sideOffset: i,
106
106
  forceMount: !0,
107
107
  asChild: !0,
108
- ...c,
108
+ ...l,
109
109
  children: /* @__PURE__ */ e(
110
110
  p.div,
111
111
  {
@@ -114,10 +114,10 @@ const _ = A, $ = j, S = n.forwardRef(({ className: t, align: s = "center", sideO
114
114
  exit: { opacity: 0, scale: 0.95 },
115
115
  transition: { ...z.snappy, opacity: v.fade },
116
116
  className: g(
117
- "z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 text-surface-fg shadow-floating outline-none",
117
+ "z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 text-surface-fg shadow-floating outline-hidden",
118
118
  t
119
119
  ),
120
- children: l
120
+ children: d
121
121
  }
122
122
  )
123
123
  }
package/dist/ui/radio.js CHANGED
@@ -12,11 +12,11 @@ const p = {
12
12
  sm: "h-5 w-5",
13
13
  md: "h-6 w-6",
14
14
  lg: "h-7 w-7"
15
- }, b = {
15
+ }, h = {
16
16
  sm: "h-1.5 w-1.5",
17
17
  md: "h-ds-03 w-ds-03",
18
18
  lg: "h-2.5 w-2.5"
19
- }, h = c.forwardRef(({ className: r, size: a = "md", ...s }, d) => /* @__PURE__ */ e(
19
+ }, b = c.forwardRef(({ className: r, size: a = "md", ...s }, d) => /* @__PURE__ */ e(
20
20
  t,
21
21
  {
22
22
  ref: d,
@@ -25,7 +25,7 @@ const p = {
25
25
  p[a],
26
26
  "border border-surface-border-strong bg-surface-raised-hover",
27
27
  "transition-colors duration-fast-01",
28
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
28
+ "focus-visible:outline-hidden 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
30
  "hover:border-accent-7 hover:bg-surface-raised-active",
31
31
  "data-[state=checked]:border-accent-7",
@@ -39,13 +39,13 @@ const p = {
39
39
  initial: { scale: 0 },
40
40
  animate: { scale: 1 },
41
41
  transition: m.bouncy,
42
- children: /* @__PURE__ */ e(l, { className: o(b[a], "fill-accent-9 text-accent-11") })
42
+ children: /* @__PURE__ */ e(l, { className: o(h[a], "fill-accent-9 text-accent-11") })
43
43
  }
44
44
  ) })
45
45
  }
46
46
  ));
47
- h.displayName = t.displayName;
47
+ b.displayName = t.displayName;
48
48
  export {
49
49
  u as RadioGroup,
50
- h as RadioGroupItem
50
+ b as RadioGroupItem
51
51
  };