@gryt/ui 0.5.0 → 0.7.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.
package/dist/index.js CHANGED
@@ -1,46 +1,198 @@
1
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
- import { Tooltip as D } from "@base-ui/react/tooltip";
3
- import { Button as it } from "@base-ui/react/button";
4
- import { forwardRef as s, useRef as st, useCallback as U, useLayoutEffect as pt, useState as bt, useEffect as ft, useSyncExternalStore as xt, useContext as W, createContext as ht } from "react";
5
- import { clsx as wt } from "clsx";
6
- import { twMerge as vt } from "tailwind-merge";
7
- import { Field as E } from "@base-ui/react/field";
8
- import { PaperPlaneTilt as Nt, X as ct, Check as lt, CaretUpDown as Pt, CircleNotch as kt, CaretDown as Tt, Minus as $t, Plus as Ct } from "@phosphor-icons/react";
9
- import { Avatar as X } from "@base-ui/react/avatar";
10
- import { Checkbox as q } from "@base-ui/react/checkbox";
11
- import { Radio as tt } from "@base-ui/react/radio";
12
- import { RadioGroup as St } from "@base-ui/react/radio-group";
13
- import { Switch as et } from "@base-ui/react/switch";
14
- import { Slider as B } from "@base-ui/react/slider";
15
- import { Select as x } from "@base-ui/react/select";
16
- import { Separator as Rt } from "@base-ui/react/separator";
17
- import { Progress as O } from "@base-ui/react/progress";
18
- import { Dialog as $ } from "@base-ui/react/dialog";
19
- import { Drawer as v } from "@base-ui/react/drawer";
20
- import { Menu as A } from "@base-ui/react/menu";
21
- import { Tabs as V } from "@base-ui/react/tabs";
22
- import { Accordion as F } from "@base-ui/react/accordion";
23
- import { ContextMenu as T } from "@base-ui/react/context-menu";
24
- import { Popover as P } from "@base-ui/react/popover";
25
- import { Toast as k } from "@base-ui/react/toast";
26
- import { ScrollArea as j } from "@base-ui/react/scroll-area";
27
- import { Toggle as It } from "@base-ui/react/toggle";
28
- import { ToggleGroup as Dt } from "@base-ui/react/toggle-group";
29
- import { Meter as z } from "@base-ui/react/meter";
30
- import { AlertDialog as C } from "@base-ui/react/alert-dialog";
31
- import { Autocomplete as p } from "@base-ui/react/autocomplete";
32
- import { Combobox as g } from "@base-ui/react/combobox";
33
- import { CheckboxGroup as At } from "@base-ui/react/checkbox-group";
34
- import { Collapsible as Q } from "@base-ui/react/collapsible";
35
- import { Form as Mt } from "@base-ui/react/form";
36
- import { Fieldset as dt } from "@base-ui/react/fieldset";
37
- import { Menubar as Lt } from "@base-ui/react/menubar";
38
- import { NavigationMenu as h } from "@base-ui/react/navigation-menu";
39
- import { NumberField as I } from "@base-ui/react/number-field";
40
- import { OTPField as rt } from "@base-ui/react/otp-field";
41
- import { PreviewCard as M } from "@base-ui/react/preview-card";
42
- import { Toolbar as L } from "@base-ui/react/toolbar";
43
- const ot = {
1
+ import { jsx as a, jsxs as p } from "react/jsx-runtime";
2
+ import { Tooltip as j } from "@base-ui/react/tooltip";
3
+ import { Button as bt } from "@base-ui/react/button";
4
+ import { forwardRef as i, useRef as ht, useCallback as at, useLayoutEffect as Lt, useState as Mt, useEffect as At, useSyncExternalStore as Dt, useContext as nt, createContext as jt } from "react";
5
+ import { clsx as Gt } from "clsx";
6
+ import { twMerge as Bt } from "tailwind-merge";
7
+ import { Field as Q } from "@base-ui/react/field";
8
+ import { PaperPlaneTilt as zt, X as xt, Check as wt, CaretUpDown as Ft, CircleNotch as Et, CaretDown as Vt, Minus as _t, Plus as Ht } from "@phosphor-icons/react";
9
+ import { Avatar as tt } from "@base-ui/react/avatar";
10
+ import { Checkbox as lt } from "@base-ui/react/checkbox";
11
+ import { Radio as dt } from "@base-ui/react/radio";
12
+ import { RadioGroup as Ot } from "@base-ui/react/radio-group";
13
+ import { Switch as gt } from "@base-ui/react/switch";
14
+ import { Slider as _ } from "@base-ui/react/slider";
15
+ import { Select as v } from "@base-ui/react/select";
16
+ import { Separator as Ut } from "@base-ui/react/separator";
17
+ import { Progress as et } from "@base-ui/react/progress";
18
+ import { Dialog as L } from "@base-ui/react/dialog";
19
+ import { Drawer as T } from "@base-ui/react/drawer";
20
+ import { Menu as G } from "@base-ui/react/menu";
21
+ import { Tabs as W } from "@base-ui/react/tabs";
22
+ import { Accordion as U } from "@base-ui/react/accordion";
23
+ import { ContextMenu as I } from "@base-ui/react/context-menu";
24
+ import { Popover as C } from "@base-ui/react/popover";
25
+ import { Toast as R } from "@base-ui/react/toast";
26
+ import { ScrollArea as E } from "@base-ui/react/scroll-area";
27
+ import { Toggle as Xt } from "@base-ui/react/toggle";
28
+ import { ToggleGroup as Yt } from "@base-ui/react/toggle-group";
29
+ import { Meter as H } from "@base-ui/react/meter";
30
+ import { AlertDialog as M } from "@base-ui/react/alert-dialog";
31
+ import { Autocomplete as h } from "@base-ui/react/autocomplete";
32
+ import { Combobox as b } from "@base-ui/react/combobox";
33
+ import { CheckboxGroup as Wt } from "@base-ui/react/checkbox-group";
34
+ import { Collapsible as st } from "@base-ui/react/collapsible";
35
+ import { Form as Qt } from "@base-ui/react/form";
36
+ import { Fieldset as vt } from "@base-ui/react/fieldset";
37
+ import { Menubar as Jt } from "@base-ui/react/menubar";
38
+ import { NavigationMenu as N } from "@base-ui/react/navigation-menu";
39
+ import { NumberField as D } from "@base-ui/react/number-field";
40
+ import { OTPField as ut } from "@base-ui/react/otp-field";
41
+ import { PreviewCard as z } from "@base-ui/react/preview-card";
42
+ import { Toolbar as F } from "@base-ui/react/toolbar";
43
+ function Kt(o) {
44
+ return o <= 0.04045 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4;
45
+ }
46
+ function rt(o) {
47
+ return o <= 31308e-7 ? 12.92 * o : 1.055 * o ** (1 / 2.4) - 0.055;
48
+ }
49
+ function O(o) {
50
+ return Math.min(1, Math.max(0, o));
51
+ }
52
+ function J(o) {
53
+ const e = o.replace("#", ""), r = e.length === 3 ? e.split("").map((t) => t + t).join("") : e;
54
+ return [
55
+ parseInt(r.slice(0, 2), 16) / 255,
56
+ parseInt(r.slice(2, 4), 16) / 255,
57
+ parseInt(r.slice(4, 6), 16) / 255
58
+ ];
59
+ }
60
+ function Nt([o, e, r]) {
61
+ const t = (n) => Math.round(O(n) * 255).toString(16).padStart(2, "0");
62
+ return `#${t(o)}${t(e)}${t(r)}`;
63
+ }
64
+ function X(o) {
65
+ const [e, r, t] = J(o).map(Kt), n = Math.cbrt(
66
+ 0.4122214708 * e + 0.5363325363 * r + 0.0514459929 * t
67
+ ), c = Math.cbrt(
68
+ 0.2119034982 * e + 0.6806995451 * r + 0.1073969566 * t
69
+ ), l = Math.cbrt(
70
+ 0.0883024619 * e + 0.2817188376 * r + 0.6299787005 * t
71
+ ), d = 0.2104542553 * n + 0.793617785 * c - 0.0040720468 * l, u = 1.9779984951 * n - 2.428592205 * c + 0.4505937099 * l, m = 0.0259040371 * n + 0.7827717662 * c - 0.808675766 * l;
72
+ return {
73
+ l: d,
74
+ c: Math.hypot(u, m),
75
+ h: (Math.atan2(m, u) * 180 / Math.PI + 360) % 360
76
+ };
77
+ }
78
+ function S({ l: o, c: e, h: r }) {
79
+ const t = e * Math.cos(r * Math.PI / 180), n = e * Math.sin(r * Math.PI / 180), c = (o + 0.3963377774 * t + 0.2158037573 * n) ** 3, l = (o - 0.1055613458 * t - 0.0638541728 * n) ** 3, d = (o - 0.0894841775 * t - 1.291485548 * n) ** 3;
80
+ return Nt([
81
+ rt(O(4.0767416621 * c - 3.3077115913 * l + 0.2309699292 * d)),
82
+ rt(O(-1.2684380046 * c + 2.6097574011 * l - 0.3413193965 * d)),
83
+ rt(O(-0.0041960863 * c - 0.7034186147 * l + 1.707614701 * d))
84
+ ]);
85
+ }
86
+ const Zt = [0.195, 0.24, 0.27, 0.3, 0.33, 0.37, 0.43, 0.52], qt = [0.014, 0.026, 0.04, 0.052, 0.062, 0.072, 0.084, 0.1];
87
+ function k(o, e) {
88
+ const { h: r } = X(o), t = Zt.map((d, u) => S({ l: d, c: qt[u], h: r }));
89
+ t.push(o, e);
90
+ const n = X(e).l, c = Math.min(0.95, Math.max(0.84, n + 0.04)), l = Math.min(0.98, Math.max(c + 0.06, 0.93));
91
+ return t.push(S({ l: c, c: 0.11, h: r })), t.push(S({ l, c: 0.055, h: r })), t;
92
+ }
93
+ const te = [
94
+ 0.187,
95
+ 0.231,
96
+ 0.245,
97
+ 0.268,
98
+ 0.289,
99
+ 0.31,
100
+ 0.355,
101
+ 0.425,
102
+ 0.52,
103
+ 0.57,
104
+ 0.627,
105
+ 0.908
106
+ ], ee = [
107
+ 0.011,
108
+ 0.014,
109
+ 0.016,
110
+ 0.019,
111
+ 0.022,
112
+ 0.024,
113
+ 0.026,
114
+ 0.026,
115
+ 0.02,
116
+ 0.012,
117
+ 0,
118
+ 8e-3
119
+ ];
120
+ function Pt(o) {
121
+ const e = {
122
+ 0: o.bg,
123
+ 1: o.surface,
124
+ 2: o.surfaceRaised,
125
+ 5: o.border,
126
+ 10: o.muted,
127
+ 11: o.text
128
+ }, r = X(o.border).h;
129
+ return te.map(
130
+ (t, n) => e[n] ?? S({ l: t, c: ee[n], h: r })
131
+ );
132
+ }
133
+ function Y(o, e) {
134
+ const r = J(e);
135
+ return o.map((t) => {
136
+ const n = J(t);
137
+ let c = 0;
138
+ for (let g = 0; g < 3; g++) {
139
+ const f = n[g], P = r[g];
140
+ f > P ? c = Math.max(c, P < 1 ? (f - P) / (1 - P) : 0) : f < P && (c = Math.max(c, P > 0 ? (P - f) / P : 0));
141
+ }
142
+ if (c < 1e-6) return "transparent";
143
+ const l = Nt(
144
+ n.map((g, f) => O(r[f] + (g - r[f]) / c))
145
+ ), [d, u, m] = J(l).map((g) => Math.round(g * 255));
146
+ return `rgb(${d} ${u} ${m} / ${(c * 100).toFixed(1)}%)`;
147
+ });
148
+ }
149
+ const re = [
150
+ 0.962,
151
+ 1,
152
+ 0.978,
153
+ 0.952,
154
+ 0.928,
155
+ 0.898,
156
+ 0.855,
157
+ 0.79,
158
+ 0.66,
159
+ 0.61,
160
+ 0.48,
161
+ 0.25
162
+ ], oe = [
163
+ 6e-3,
164
+ 0,
165
+ 4e-3,
166
+ 7e-3,
167
+ 0.01,
168
+ 0.013,
169
+ 0.016,
170
+ 0.018,
171
+ 0.016,
172
+ 0.014,
173
+ 0.012,
174
+ 0.014
175
+ ], ae = [0.975, 0.955, 0.93, 0.905, 0.878, 0.845, 0.795, 0.72], ne = [0.012, 0.024, 0.038, 0.05, 0.062, 0.074, 0.09, 0.11];
176
+ function Tt(o) {
177
+ const e = {
178
+ 0: o.bg,
179
+ 1: o.surface,
180
+ 2: o.surfaceRaised,
181
+ 5: o.border,
182
+ 10: o.muted,
183
+ 11: o.text
184
+ }, r = X(o.border).h;
185
+ return re.map(
186
+ (t, n) => e[n] ?? S({ l: t, c: oe[n], h: r })
187
+ );
188
+ }
189
+ function $(o) {
190
+ const { l: e, c: r, h: t } = X(o), n = ae.map(
191
+ (c, l) => S({ l: c, c: ne[l], h: t })
192
+ );
193
+ return n.push(o), n.push(S({ l: Math.max(0, e - 0.07), c: r, h: t })), n.push(S({ l: 0.5, c: 0.15, h: t })), n.push(S({ l: 0.33, c: 0.1, h: t })), n;
194
+ }
195
+ const y = {
44
196
  color: {
45
197
  bg: "#111318",
46
198
  surface: "#1a1d24",
@@ -49,7 +201,7 @@ const ot = {
49
201
  border: "#2b303d",
50
202
  text: "#e0e0e6",
51
203
  muted: "#888888",
52
- accent: "#968FF8",
204
+ accent: "#968ff8",
53
205
  accentLight: "#b4afff",
54
206
  secondary: "#7dd3fc",
55
207
  secondaryLight: "#bae6fd",
@@ -68,10 +220,77 @@ const ot = {
68
220
  xl: 28,
69
221
  full: 999
70
222
  }
223
+ }, K = {
224
+ bg: "#f1f2f7",
225
+ surface: "#ffffff",
226
+ surfaceRaised: "#f7f8fb",
227
+ border: "#dadde6",
228
+ muted: "#5b5d65",
229
+ text: "#1f2129"
230
+ }, yt = {
231
+ neutral: Pt({
232
+ bg: y.color.bg,
233
+ surface: y.color.surface,
234
+ surfaceRaised: y.color.surfaceRaised,
235
+ border: y.color.border,
236
+ muted: y.color.muted,
237
+ text: y.color.text
238
+ }),
239
+ accent: k(y.color.accent, y.color.accentLight),
240
+ secondary: k(
241
+ y.color.secondary,
242
+ y.color.secondaryLight
243
+ ),
244
+ success: k(y.color.success, y.color.success),
245
+ danger: k(y.color.danger, y.color.dangerLight),
246
+ warning: k(y.color.warning, y.color.warning)
247
+ }, mt = {
248
+ neutral: Tt(K),
249
+ accent: $(y.color.accent),
250
+ secondary: $(y.color.secondary),
251
+ success: $(y.color.success),
252
+ danger: $(y.color.danger),
253
+ warning: $(y.color.warning)
254
+ }, Lo = {
255
+ neutral: Y(yt.neutral, y.color.bg),
256
+ accent: Y(yt.accent, y.color.bg)
257
+ }, Mo = {
258
+ neutral: Y(mt.neutral, K.bg),
259
+ accent: Y(mt.accent, K.bg)
71
260
  };
72
- function jt(a = {}) {
73
- const t = { ...ot.color, ...a.color }, e = { ...ot.radius, ...a.radius };
261
+ function se(o = {}) {
262
+ const e = o.appearance === "light", t = { ...e ? { ...y.color, ...K } : y.color, ...o.color }, n = { ...y.radius, ...o.radius }, c = {
263
+ bg: t.bg,
264
+ surface: t.surface,
265
+ surfaceRaised: t.surfaceRaised,
266
+ border: t.border,
267
+ muted: t.muted,
268
+ text: t.text
269
+ }, l = e ? {
270
+ neutral: Tt(c),
271
+ accent: $(t.accent),
272
+ secondary: $(t.secondary),
273
+ success: $(t.success),
274
+ danger: $(t.danger),
275
+ warning: $(t.warning)
276
+ } : {
277
+ neutral: Pt(c),
278
+ accent: k(t.accent, t.accentLight),
279
+ secondary: k(t.secondary, t.secondaryLight),
280
+ success: k(t.success, t.success),
281
+ danger: k(t.danger, t.dangerLight),
282
+ warning: k(t.warning, t.warning)
283
+ }, d = {};
284
+ for (const [u, m] of Object.entries(l))
285
+ m.forEach((g, f) => {
286
+ d[`--gryt-${u}-${f + 1}`] = g, d[`--color-gryt-${u}-${f + 1}`] = g;
287
+ });
288
+ for (const u of ["neutral", "accent"])
289
+ Y(l[u], t.bg).forEach((m, g) => {
290
+ d[`--gryt-${u}-a${g + 1}`] = m, d[`--color-gryt-${u}-a${g + 1}`] = m;
291
+ });
74
292
  return {
293
+ ...d,
75
294
  "--gryt-bg": t.bg,
76
295
  "--gryt-surface": t.surface,
77
296
  "--gryt-surface-raised": t.surfaceRaised,
@@ -111,54 +330,54 @@ function jt(a = {}) {
111
330
  "--color-gryt-on-accent": t.onAccent,
112
331
  "--color-gryt-on-secondary": t.onSecondary,
113
332
  "--color-gryt-on-danger": t.onDanger,
114
- "--gryt-radius-sm": `${e.sm}px`,
115
- "--gryt-radius-md": `${e.md}px`,
116
- "--gryt-radius-lg": `${e.lg}px`,
117
- "--gryt-radius-xl": `${e.xl}px`,
118
- "--gryt-radius-full": `${e.full}px`
333
+ "--gryt-radius-sm": `${n.sm}px`,
334
+ "--gryt-radius-md": `${n.md}px`,
335
+ "--gryt-radius-lg": `${n.lg}px`,
336
+ "--gryt-radius-xl": `${n.xl}px`,
337
+ "--gryt-radius-full": `${n.full}px`
119
338
  };
120
339
  }
121
- function Gt(a) {
122
- return Object.keys(a).some((t) => t.startsWith("--"));
340
+ function ie(o) {
341
+ return Object.keys(o).some((e) => e.startsWith("--"));
123
342
  }
124
- function no({
125
- children: a,
126
- className: t,
127
- theme: e,
128
- tooltipDelay: r = 400
343
+ function Ao({
344
+ children: o,
345
+ className: e,
346
+ theme: r,
347
+ tooltipDelay: t = 400
129
348
  }) {
130
- const i = e && Gt(e) ? e : jt(e ?? {});
131
- return /* @__PURE__ */ o("div", { className: t, style: i, children: /* @__PURE__ */ o(D.Provider, { delay: r, children: a }) });
349
+ const n = r && ie(r) ? r : se(r ?? {});
350
+ return /* @__PURE__ */ a("div", { className: e, style: n, children: /* @__PURE__ */ a(j.Provider, { delay: t, children: o }) });
132
351
  }
133
- function n(...a) {
134
- return vt(wt(a));
352
+ function s(...o) {
353
+ return Bt(Gt(o));
135
354
  }
136
- const Bt = {
355
+ const ce = {
137
356
  primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",
138
357
  secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",
139
358
  neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",
140
359
  danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",
141
360
  ghost: "bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
142
- }, zt = {
361
+ }, le = {
143
362
  xsmall: "min-h-8 px-3 text-xs",
144
363
  small: "min-h-9 px-4 text-sm",
145
364
  medium: "min-h-10 px-5 text-sm",
146
365
  large: "min-h-12 px-6 text-base"
147
- }, Ft = s(
366
+ }, de = i(
148
367
  function({
149
- children: t,
150
- className: e,
151
- endIcon: r,
152
- size: i = "medium",
368
+ children: e,
369
+ className: r,
370
+ endIcon: t,
371
+ size: n = "medium",
153
372
  startIcon: c,
154
373
  tone: l = "primary",
155
- ...m
374
+ ...d
156
375
  }, u) {
157
- return /* @__PURE__ */ d(
158
- it,
376
+ return /* @__PURE__ */ p(
377
+ bt,
159
378
  {
160
379
  ref: u,
161
- className: n(
380
+ className: s(
162
381
  "gryt-button",
163
382
  "inline-flex items-center justify-center gap-2 border-0 shadow-none",
164
383
  "rounded-(--gryt-radius-full) font-semibold whitespace-nowrap select-none",
@@ -169,378 +388,393 @@ const Bt = {
169
388
  "duration-(--gryt-dur-spring) ease-spring",
170
389
  // Press travels further than hover, so the button reads as being
171
390
  // pushed down rather than just acknowledging the cursor.
172
- "motion-safe:hover:not-data-disabled:scale-[1.03]",
173
- "motion-safe:active:not-data-disabled:scale-[0.96]",
391
+ // A button that opens something does not grow under the cursor.
392
+ // Base UI positions the popup against the trigger's measured box, and
393
+ // it keeps measuring while the popup is open — so a trigger that
394
+ // scales on hover drags its own menu a pixel or two sideways every
395
+ // time the pointer crosses it. aria-haspopup is how the trigger says
396
+ // that is what it is; Base UI puts it there, nothing to pass.
397
+ "motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.03]",
398
+ "motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.96]",
174
399
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
175
400
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
176
- zt[i],
177
- Bt[l],
178
- e
401
+ le[n],
402
+ ce[l],
403
+ r
179
404
  ),
180
- ...m,
405
+ ...d,
181
406
  children: [
182
407
  c,
183
- t,
184
- r
408
+ e,
409
+ t
185
410
  ]
186
411
  }
187
412
  );
188
413
  }
189
- ), b = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", Vt = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", S = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", R = [
414
+ ), x = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", ge = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", kt = [
415
+ "w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
416
+ "text-gryt-text outline-none placeholder:text-gryt-muted",
417
+ "transition-colors duration-150 motion-reduce:transition-none",
418
+ "hover:border-gryt-accent-light focus:border-gryt-accent",
419
+ "disabled:cursor-not-allowed disabled:opacity-60"
420
+ ].join(" "), $t = {
421
+ small: "min-h-9 px-3 py-1.5 text-sm",
422
+ medium: "min-h-11 px-4 py-2.5 text-sm"
423
+ }, B = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", A = [
190
424
  // scale and translate are named explicitly because Tailwind v4 sets them as
191
425
  // standalone CSS properties rather than folding them into `transform`, so
192
426
  // transitioning `transform` would leave the popup snapping into place.
193
427
  "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
194
428
  "data-starting-style:scale-[0.98] data-starting-style:opacity-0",
195
429
  "data-ending-style:scale-[0.98] data-ending-style:opacity-0"
196
- ].join(" "), G = "data-disabled:cursor-not-allowed data-disabled:opacity-50", Et = {
430
+ ].join(" "), V = "data-disabled:cursor-not-allowed data-disabled:opacity-50", ue = {
197
431
  primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
198
432
  secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
199
433
  neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
200
434
  danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
201
435
  success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
202
436
  warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
203
- }, gt = {
437
+ }, Ct = {
204
438
  primary: "bg-gryt-accent",
205
439
  secondary: "bg-gryt-secondary",
206
440
  neutral: "bg-gryt-surface-hover",
207
441
  danger: "bg-gryt-danger",
208
442
  success: "bg-gryt-success",
209
443
  warning: "bg-gryt-warning"
210
- }, _t = {
444
+ }, ye = {
211
445
  primary: "data-checked:border-gryt-accent",
212
446
  secondary: "data-checked:border-gryt-secondary",
213
447
  neutral: "data-checked:border-gryt-muted",
214
448
  danger: "data-checked:border-gryt-danger",
215
449
  success: "data-checked:border-gryt-success",
216
450
  warning: "data-checked:border-gryt-warning"
217
- }, Ht = {
451
+ }, me = {
218
452
  primary: "data-checked:bg-gryt-accent",
219
453
  secondary: "data-checked:bg-gryt-secondary",
220
454
  neutral: "data-checked:bg-gryt-surface-hover",
221
455
  danger: "data-checked:bg-gryt-danger",
222
456
  success: "data-checked:bg-gryt-success",
223
457
  warning: "data-checked:bg-gryt-warning"
224
- }, Xt = {
458
+ }, pe = {
225
459
  primary: "text-gryt-accent hover:not-data-disabled:bg-gryt-accent/10",
226
460
  secondary: "text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary/10",
227
461
  neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
228
462
  danger: "text-gryt-danger hover:not-data-disabled:bg-gryt-danger/10",
229
463
  ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
230
- }, Ot = {
464
+ }, fe = {
231
465
  xsmall: "h-8 w-8",
232
466
  small: "h-9 w-9",
233
467
  medium: "h-10 w-10",
234
468
  large: "h-12 w-12"
235
- }, io = s(
236
- function({ className: t, size: e = "medium", tone: r = "neutral", ...i }, c) {
237
- return /* @__PURE__ */ o(
238
- it,
469
+ }, Do = i(
470
+ function({ className: e, size: r = "medium", tone: t = "neutral", ...n }, c) {
471
+ return /* @__PURE__ */ a(
472
+ bt,
239
473
  {
240
474
  ref: c,
241
- className: n(
475
+ className: s(
242
476
  "gryt-icon-button",
243
477
  "inline-flex shrink-0 items-center justify-center border-0 bg-transparent p-0",
244
478
  "rounded-(--gryt-radius-full) select-none",
245
479
  // scale rather than transform — see the note in Button.
246
480
  "transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring",
247
- "motion-safe:hover:not-data-disabled:scale-[1.06]",
248
- "motion-safe:active:not-data-disabled:scale-[0.94]",
249
- b,
250
- G,
251
- Ot[e],
252
- Xt[r],
253
- t
481
+ // A button that opens something does not grow under the cursor.
482
+ // Base UI positions the popup against the trigger's measured box, and
483
+ // it keeps measuring while the popup is open — so a trigger that
484
+ // scales on hover drags its own menu a pixel or two sideways every
485
+ // time the pointer crosses it. aria-haspopup is how the trigger says
486
+ // that is what it is; Base UI puts it there, nothing to pass.
487
+ "motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.06]",
488
+ "motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.94]",
489
+ x,
490
+ V,
491
+ fe[r],
492
+ pe[t],
493
+ e
254
494
  ),
255
- ...i
495
+ ...n
256
496
  }
257
497
  );
258
498
  }
259
- ), so = s(
260
- function({ className: t, elevated: e = !1, ...r }, i) {
261
- return /* @__PURE__ */ o(
499
+ ), jo = i(
500
+ function({ className: e, elevated: r = !1, ...t }, n) {
501
+ return /* @__PURE__ */ a(
262
502
  "div",
263
503
  {
264
- ref: i,
265
- className: n(
504
+ ref: n,
505
+ className: s(
266
506
  "gryt-surface rounded-(--gryt-radius-lg) border border-gryt-border p-4 text-gryt-text",
267
- e ? "bg-gryt-surface-raised" : "bg-gryt-surface",
268
- t
507
+ r ? "bg-gryt-surface-raised" : "bg-gryt-surface",
508
+ e
269
509
  ),
270
- ...r
510
+ ...t
271
511
  }
272
512
  );
273
513
  }
274
- ), co = s(
275
- function({ children: t, className: e, from: r = "assistant", ...i }, c) {
276
- return /* @__PURE__ */ o(
514
+ ), Go = i(
515
+ function({ children: e, className: r, from: t = "assistant", ...n }, c) {
516
+ return /* @__PURE__ */ a(
277
517
  "div",
278
518
  {
279
519
  ref: c,
280
- className: n(
520
+ className: s(
281
521
  "gryt-message-bubble",
282
- r === "user" && "ml-auto bg-gryt-accent text-gryt-on-accent",
283
- r === "assistant" && "mr-auto border border-gryt-border bg-gryt-surface text-gryt-text",
284
- r === "system" && "mx-auto border border-dashed border-gryt-border bg-transparent text-gryt-muted",
285
- e
522
+ t === "user" && "ml-auto bg-gryt-accent text-gryt-on-accent",
523
+ t === "assistant" && "mr-auto border border-gryt-border bg-gryt-surface text-gryt-text",
524
+ t === "system" && "mx-auto border border-dashed border-gryt-border bg-transparent text-gryt-muted",
525
+ r
286
526
  ),
287
- ...i,
288
- children: t
527
+ ...n,
528
+ children: e
289
529
  }
290
530
  );
291
531
  }
292
- ), Yt = {
293
- small: "min-h-9 px-3 py-1.5 text-sm",
294
- medium: "min-h-11 px-4 py-2.5 text-sm"
295
- }, lo = s(
532
+ ), Bo = i(
296
533
  function({
297
- className: t,
298
- error: e = !1,
299
- fieldClassName: r,
300
- helperText: i,
534
+ className: e,
535
+ error: r = !1,
536
+ fieldClassName: t,
537
+ helperText: n,
301
538
  label: c,
302
539
  minRows: l = 3,
303
- multiline: m = !1,
540
+ multiline: d = !1,
304
541
  size: u = "medium",
305
- ...w
306
- }, y) {
307
- const N = /* @__PURE__ */ o(
308
- E.Control,
542
+ ...m
543
+ }, g) {
544
+ const f = /* @__PURE__ */ a(
545
+ Q.Control,
309
546
  {
310
- ref: y,
311
- render: m ? /* @__PURE__ */ o("textarea", { rows: l }) : void 0,
312
- className: n(
313
- "gryt-text-field-control w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
314
- "text-gryt-text outline-none placeholder:text-gryt-muted",
315
- "transition-colors duration-150",
316
- "hover:border-gryt-accent-light focus:border-gryt-accent",
317
- "disabled:cursor-not-allowed disabled:opacity-60",
318
- m && "resize-y leading-6",
319
- e ? "border-gryt-danger" : "border-gryt-border",
320
- Yt[u],
321
- t
547
+ ref: g,
548
+ render: d ? /* @__PURE__ */ a("textarea", { rows: l }) : void 0,
549
+ className: s(
550
+ "gryt-text-field-control",
551
+ kt,
552
+ d && "resize-y leading-6",
553
+ r ? "border-gryt-danger" : "border-gryt-border",
554
+ $t[u],
555
+ e
322
556
  ),
323
- ...w
557
+ ...m
324
558
  }
325
559
  );
326
- return /* @__PURE__ */ d(
327
- E.Root,
560
+ return /* @__PURE__ */ p(
561
+ Q.Root,
328
562
  {
329
- className: n(
563
+ className: s(
330
564
  "gryt-text-field flex w-full flex-col gap-1.5",
331
- r
565
+ t
332
566
  ),
333
567
  children: [
334
- c ? /* @__PURE__ */ o(E.Label, { className: "text-xs font-medium text-gryt-muted", children: c }) : null,
335
- N,
336
- i ? /* @__PURE__ */ o(
337
- E.Description,
568
+ c ? /* @__PURE__ */ a(Q.Label, { className: "text-xs font-medium text-gryt-muted", children: c }) : null,
569
+ f,
570
+ n ? /* @__PURE__ */ a(
571
+ Q.Description,
338
572
  {
339
- className: n(
573
+ className: s(
340
574
  "text-xs",
341
- e ? "text-gryt-danger" : "text-gryt-muted"
575
+ r ? "text-gryt-danger" : "text-gryt-muted"
342
576
  ),
343
- children: i
577
+ children: n
344
578
  }
345
579
  ) : null
346
580
  ]
347
581
  }
348
582
  );
349
583
  }
350
- ), go = s(
584
+ ), zo = i(
351
585
  function({
352
- className: t,
353
- disabled: e = !1,
354
- maxRows: r = 8,
355
- minRows: i = 1,
586
+ className: e,
587
+ disabled: r = !1,
588
+ maxRows: t = 8,
589
+ minRows: n = 1,
356
590
  onSubmit: c,
357
591
  placeholder: l = "Message Gryt",
358
- submitLabel: m = "Send",
592
+ submitLabel: d = "Send",
359
593
  ...u
360
- }, w) {
361
- const y = st(null), N = U(() => {
362
- const f = y.current;
363
- if (!f)
594
+ }, m) {
595
+ const g = ht(null), f = at(() => {
596
+ const w = g.current;
597
+ if (!w)
364
598
  return;
365
- const H = window.getComputedStyle(f), K = parseFloat(H.lineHeight) || 24, Z = parseFloat(H.paddingTop) + parseFloat(H.paddingBottom);
366
- f.style.height = "auto", f.style.height = `${Math.min(
367
- Math.max(f.scrollHeight, K * i + Z),
368
- K * r + Z
599
+ const q = window.getComputedStyle(w), it = parseFloat(q.lineHeight) || 24, ct = parseFloat(q.paddingTop) + parseFloat(q.paddingBottom);
600
+ w.style.height = "auto", w.style.height = `${Math.min(
601
+ Math.max(w.scrollHeight, it * n + ct),
602
+ it * t + ct
369
603
  )}px`;
370
- }, [r, i]);
371
- pt(N, [N, u.value]);
372
- function J(f) {
604
+ }, [t, n]);
605
+ Lt(f, [f, u.value]);
606
+ function P(w) {
373
607
  if (!c) {
374
- f.preventDefault();
608
+ w.preventDefault();
375
609
  return;
376
610
  }
377
- c(f);
611
+ c(w);
378
612
  }
379
- return /* @__PURE__ */ d("form", { className: n("gryt-composer", t), onSubmit: J, children: [
380
- /* @__PURE__ */ o(
613
+ return /* @__PURE__ */ p("form", { className: s("gryt-composer", e), onSubmit: P, children: [
614
+ /* @__PURE__ */ a(
381
615
  "textarea",
382
616
  {
383
- ref: (f) => {
384
- y.current = f, typeof w == "function" ? w(f) : w && (w.current = f);
617
+ ref: (w) => {
618
+ g.current = w, typeof m == "function" ? m(w) : m && (m.current = w);
385
619
  },
386
- rows: i,
387
- disabled: e,
620
+ rows: n,
621
+ disabled: r,
388
622
  placeholder: l,
389
- onInput: N,
623
+ onInput: f,
390
624
  className: "gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",
391
625
  ...u
392
626
  }
393
627
  ),
394
- /* @__PURE__ */ o(
395
- Ft,
628
+ /* @__PURE__ */ a(
629
+ de,
396
630
  {
397
631
  type: "submit",
398
- disabled: e,
632
+ disabled: r,
399
633
  size: "small",
400
- endIcon: /* @__PURE__ */ o(Nt, { size: 14, weight: "fill" }),
401
- children: m
634
+ endIcon: /* @__PURE__ */ a(zt, { size: 14, weight: "fill" }),
635
+ children: d
402
636
  }
403
637
  )
404
638
  ] });
405
639
  }
406
- ), Ut = {
640
+ ), be = {
407
641
  small: "h-8 w-8 text-xs",
408
642
  medium: "h-10 w-10 text-sm",
409
643
  large: "h-12 w-12 text-base"
410
- }, Wt = s(function({ alt: t, children: e, className: r, fallback: i, size: c = "medium", src: l, ...m }, u) {
411
- return /* @__PURE__ */ d(
412
- X.Root,
644
+ }, he = i(function({ alt: e, children: r, className: t, fallback: n, size: c = "medium", src: l, ...d }, u) {
645
+ return /* @__PURE__ */ p(
646
+ tt.Root,
413
647
  {
414
648
  ref: u,
415
- className: n(
649
+ className: s(
416
650
  "gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
417
651
  "rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
418
- Ut[c],
419
- r
652
+ be[c],
653
+ t
420
654
  ),
421
- ...m,
655
+ ...d,
422
656
  children: [
423
- l ? /* @__PURE__ */ o(
424
- X.Image,
657
+ l ? /* @__PURE__ */ a(
658
+ tt.Image,
425
659
  {
426
660
  src: l,
427
- alt: t,
661
+ alt: e,
428
662
  className: "h-full w-full object-cover"
429
663
  }
430
664
  ) : null,
431
- /* @__PURE__ */ o(X.Fallback, { className: "flex h-full w-full items-center justify-center", children: i ?? e })
665
+ /* @__PURE__ */ a(tt.Fallback, { className: "flex h-full w-full items-center justify-center", children: n ?? r })
432
666
  ]
433
667
  }
434
668
  );
435
- }), uo = s(function({ active: t = !1, avatar: e, className: r, subtitle: i, title: c, ...l }, m) {
436
- return /* @__PURE__ */ d(
669
+ }), Fo = i(function({ active: e = !1, avatar: r, className: t, subtitle: n, title: c, ...l }, d) {
670
+ return /* @__PURE__ */ p(
437
671
  "button",
438
672
  {
439
- ref: m,
673
+ ref: d,
440
674
  type: "button",
441
- className: n(
675
+ className: s(
442
676
  "gryt-conversation-item",
443
- t ? "bg-gryt-accent text-gryt-on-accent" : "text-gryt-text hover:bg-white/5",
444
- r
677
+ e ? "bg-gryt-accent text-gryt-on-accent" : "text-gryt-text hover:bg-white/5",
678
+ t
445
679
  ),
446
680
  ...l,
447
681
  children: [
448
- e ?? /* @__PURE__ */ o(
449
- Wt,
682
+ r ?? /* @__PURE__ */ a(
683
+ he,
450
684
  {
451
685
  size: "small",
452
- className: n(
453
- t ? "bg-gryt-on-accent text-gryt-accent ring-transparent" : "bg-gryt-surface-raised text-gryt-text"
686
+ className: s(
687
+ e ? "bg-gryt-on-accent text-gryt-accent ring-transparent" : "bg-gryt-surface-raised text-gryt-text"
454
688
  ),
455
689
  children: c.slice(0, 1).toUpperCase()
456
690
  }
457
691
  ),
458
- /* @__PURE__ */ d("span", { className: "min-w-0 flex-1", children: [
459
- /* @__PURE__ */ o("span", { className: "block truncate text-sm font-semibold", children: c }),
460
- i ? /* @__PURE__ */ o(
692
+ /* @__PURE__ */ p("span", { className: "min-w-0 flex-1", children: [
693
+ /* @__PURE__ */ a("span", { className: "block truncate text-sm font-semibold", children: c }),
694
+ n ? /* @__PURE__ */ a(
461
695
  "span",
462
696
  {
463
- className: n(
697
+ className: s(
464
698
  "block truncate text-xs",
465
- t ? "text-gryt-on-accent/70" : "text-gryt-muted"
699
+ e ? "text-gryt-on-accent/70" : "text-gryt-muted"
466
700
  ),
467
- children: i
701
+ children: n
468
702
  }
469
703
  ) : null
470
704
  ] })
471
705
  ]
472
706
  }
473
707
  );
474
- }), yo = s(function({ badgeContent: t, children: e, className: r, max: i = 99, showZero: c = !1, ...l }, m) {
475
- const u = typeof t == "number" ? t : null, w = u !== null && u === 0 && !c, y = u !== null && u > i ? `${i}+` : t;
476
- return /* @__PURE__ */ d(
708
+ }), Eo = i(function({ badgeContent: e, children: r, className: t, max: n = 99, showZero: c = !1, ...l }, d) {
709
+ const u = typeof e == "number" ? e : null, m = u !== null && u === 0 && !c, g = u !== null && u > n ? `${n}+` : e;
710
+ return /* @__PURE__ */ p(
477
711
  "span",
478
712
  {
479
- ref: m,
480
- className: n("gryt-badge relative inline-flex", r),
713
+ ref: d,
714
+ className: s("gryt-badge relative inline-flex", t),
481
715
  ...l,
482
716
  children: [
483
- e,
484
- t !== void 0 && !w ? /* @__PURE__ */ o(
717
+ r,
718
+ e !== void 0 && !m ? /* @__PURE__ */ a(
485
719
  "span",
486
720
  {
487
- className: n(
721
+ className: s(
488
722
  "gryt-badge-dot absolute -top-1 -right-1 z-10 inline-flex items-center justify-center",
489
723
  "min-w-5 rounded-(--gryt-radius-full) px-1.5 py-0.5",
490
724
  "bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent",
491
725
  "ring-2 ring-gryt-bg"
492
726
  ),
493
- children: y
727
+ children: g
494
728
  }
495
729
  ) : null
496
730
  ]
497
731
  }
498
732
  );
499
- }), Qt = {
733
+ }), xe = {
500
734
  neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
501
735
  primary: "border-gryt-accent/40 bg-gryt-accent/12 text-gryt-accent",
502
736
  secondary: "border-gryt-secondary/40 bg-gryt-secondary/12 text-gryt-secondary",
503
737
  success: "border-gryt-success/40 bg-gryt-success/12 text-gryt-success",
504
738
  warning: "border-gryt-warning/40 bg-gryt-warning/12 text-gryt-warning",
505
739
  danger: "border-gryt-danger/40 bg-gryt-danger/12 text-gryt-danger"
506
- }, mo = s(function({ children: t, className: e, icon: r, label: i, onDelete: c, tone: l = "neutral", ...m }, u) {
507
- return /* @__PURE__ */ d(
740
+ }, Vo = i(function({ children: e, className: r, icon: t, label: n, onDelete: c, tone: l = "neutral", ...d }, u) {
741
+ return /* @__PURE__ */ p(
508
742
  "span",
509
743
  {
510
744
  ref: u,
511
- className: n(
745
+ className: s(
512
746
  "gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
513
- Qt[l],
514
- e
747
+ xe[l],
748
+ r
515
749
  ),
516
- ...m,
750
+ ...d,
517
751
  children: [
518
- r,
519
- i ?? t,
520
- c ? /* @__PURE__ */ o(
752
+ t,
753
+ n ?? e,
754
+ c ? /* @__PURE__ */ a(
521
755
  "button",
522
756
  {
523
757
  type: "button",
524
758
  "aria-label": "Remove",
525
759
  onClick: c,
526
- className: n(
760
+ className: s(
527
761
  "-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-(--gryt-radius-full)",
528
762
  "opacity-70 transition-opacity hover:opacity-100",
529
- b
763
+ x
530
764
  ),
531
- children: /* @__PURE__ */ o(ct, { size: 10, weight: "bold", "aria-hidden": "true" })
765
+ children: /* @__PURE__ */ a(xt, { size: 10, weight: "bold", "aria-hidden": "true" })
532
766
  }
533
767
  ) : null
534
768
  ]
535
769
  }
536
770
  );
537
- }), po = s(
538
- function({ className: t, tone: e = "primary", ...r }, i) {
539
- return /* @__PURE__ */ o(
540
- q.Root,
771
+ }), _o = i(
772
+ function({ className: e, tone: r = "primary", ...t }, n) {
773
+ return /* @__PURE__ */ a(
774
+ lt.Root,
541
775
  {
542
- ref: i,
543
- className: n(
776
+ ref: n,
777
+ className: s(
544
778
  "gryt-checkbox flex h-5 w-5 shrink-0 items-center justify-center",
545
779
  "rounded-(--gryt-radius-sm) border border-gryt-border bg-gryt-surface-raised",
546
780
  "transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring",
@@ -550,18 +784,18 @@ const Bt = {
550
784
  "hover:not-data-disabled:border-gryt-accent-light",
551
785
  "motion-safe:hover:not-data-disabled:scale-[1.08]",
552
786
  "motion-safe:active:not-data-disabled:scale-[0.92]",
553
- b,
554
- G,
787
+ x,
788
+ V,
555
789
  // Unchecked stays a neutral outline; the tone only paints once checked.
556
- Et[e],
557
- t
790
+ ue[r],
791
+ e
558
792
  ),
559
- ...r,
560
- children: /* @__PURE__ */ o(
561
- q.Indicator,
793
+ ...t,
794
+ children: /* @__PURE__ */ a(
795
+ lt.Indicator,
562
796
  {
563
797
  keepMounted: !0,
564
- className: n(
798
+ className: s(
565
799
  "flex origin-center",
566
800
  "transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring",
567
801
  // Scaling from 0 rather than from something near 1 is deliberate.
@@ -571,65 +805,65 @@ const Bt = {
571
805
  "data-unchecked:scale-0 data-unchecked:opacity-0",
572
806
  "motion-reduce:transition-none"
573
807
  ),
574
- children: /* @__PURE__ */ o(lt, { size: 12, weight: "bold" })
808
+ children: /* @__PURE__ */ a(wt, { size: 12, weight: "bold" })
575
809
  }
576
810
  )
577
811
  }
578
812
  );
579
813
  }
580
- ), bo = s(function({ className: t, tone: e = "primary", ...r }, i) {
581
- return /* @__PURE__ */ o(
582
- tt.Root,
814
+ ), Ho = i(function({ className: e, tone: r = "primary", ...t }, n) {
815
+ return /* @__PURE__ */ a(
816
+ dt.Root,
583
817
  {
584
- ref: i,
585
- className: n(
818
+ ref: n,
819
+ className: s(
586
820
  "gryt-radio flex h-5 w-5 shrink-0 items-center justify-center",
587
821
  "rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised",
588
822
  "transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring",
589
823
  "hover:not-data-disabled:border-gryt-accent-light",
590
824
  "motion-safe:hover:not-data-disabled:scale-[1.08]",
591
825
  "motion-safe:active:not-data-disabled:scale-[0.92]",
592
- b,
593
- G,
826
+ x,
827
+ V,
594
828
  // Border takes the tone when selected; the dot inside carries the fill.
595
- _t[e],
596
- t
829
+ ye[r],
830
+ e
597
831
  ),
598
- ...r,
599
- children: /* @__PURE__ */ o(
600
- tt.Indicator,
832
+ ...t,
833
+ children: /* @__PURE__ */ a(
834
+ dt.Indicator,
601
835
  {
602
836
  keepMounted: !0,
603
- className: n(
837
+ className: s(
604
838
  "h-2.5 w-2.5 origin-center rounded-(--gryt-radius-full)",
605
839
  "transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring",
606
840
  // From 0, for the same reason as the Checkbox tick — see the note there.
607
841
  "data-unchecked:scale-0 data-unchecked:opacity-0",
608
842
  "motion-reduce:transition-none",
609
- gt[e]
843
+ Ct[r]
610
844
  )
611
845
  }
612
846
  )
613
847
  }
614
848
  );
615
- }), fo = s(
616
- function({ className: t, ...e }, r) {
617
- return /* @__PURE__ */ o(
618
- St,
849
+ }), Oo = i(
850
+ function({ className: e, ...r }, t) {
851
+ return /* @__PURE__ */ a(
852
+ Ot,
619
853
  {
620
- ref: r,
621
- className: n("gryt-radio-group flex flex-col gap-2", t),
622
- ...e
854
+ ref: t,
855
+ className: s("gryt-radio-group flex flex-col gap-2", e),
856
+ ...r
623
857
  }
624
858
  );
625
859
  }
626
- ), xo = s(
627
- function({ className: t, tone: e = "primary", ...r }, i) {
628
- return /* @__PURE__ */ o(
629
- et.Root,
860
+ ), Uo = i(
861
+ function({ className: e, tone: r = "primary", ...t }, n) {
862
+ return /* @__PURE__ */ a(
863
+ gt.Root,
630
864
  {
631
- ref: i,
632
- className: n(
865
+ ref: n,
866
+ className: s(
633
867
  "gryt-switch relative inline-flex h-6 w-10 shrink-0 items-center",
634
868
  "rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised p-0.5",
635
869
  "transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring",
@@ -637,16 +871,16 @@ const Bt = {
637
871
  "hover:not-data-disabled:border-gryt-accent-light",
638
872
  "motion-safe:hover:not-data-disabled:scale-[1.05]",
639
873
  "motion-safe:active:not-data-disabled:scale-[0.95]",
640
- b,
641
- G,
642
- Ht[e],
643
- t
874
+ x,
875
+ V,
876
+ me[r],
877
+ e
644
878
  ),
645
- ...r,
646
- children: /* @__PURE__ */ o(
647
- et.Thumb,
879
+ ...t,
880
+ children: /* @__PURE__ */ a(
881
+ gt.Thumb,
648
882
  {
649
- className: n(
883
+ className: s(
650
884
  "h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text",
651
885
  "transition-transform duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
652
886
  "data-checked:translate-x-4 data-checked:bg-gryt-bg"
@@ -656,70 +890,70 @@ const Bt = {
656
890
  }
657
891
  );
658
892
  }
659
- ), at = 3;
660
- function ho({
661
- className: a,
662
- tone: t = "primary",
663
- "aria-label": e,
664
- ...r
893
+ ), pt = 3;
894
+ function Xo({
895
+ className: o,
896
+ tone: e = "primary",
897
+ "aria-label": r,
898
+ ...t
665
899
  }) {
666
- const [i, c] = bt(!1), l = st(null);
667
- ft(() => {
668
- if (!i && l.current === null)
900
+ const [n, c] = Mt(!1), l = ht(null);
901
+ At(() => {
902
+ if (!n && l.current === null)
669
903
  return;
670
- const y = () => {
904
+ const g = () => {
671
905
  l.current = null, c(!1);
672
906
  };
673
- return window.addEventListener("pointerup", y), window.addEventListener("pointercancel", y), () => {
674
- window.removeEventListener("pointerup", y), window.removeEventListener("pointercancel", y);
907
+ return window.addEventListener("pointerup", g), window.addEventListener("pointercancel", g), () => {
908
+ window.removeEventListener("pointerup", g), window.removeEventListener("pointercancel", g);
675
909
  };
676
- }, [i]);
677
- function m(y) {
678
- l.current = { x: y.clientX, y: y.clientY };
910
+ }, [n]);
911
+ function d(g) {
912
+ l.current = { x: g.clientX, y: g.clientY };
679
913
  }
680
- function u(y) {
681
- const N = l.current;
682
- if (N === null || i)
914
+ function u(g) {
915
+ const f = l.current;
916
+ if (f === null || n)
683
917
  return;
684
- (Math.abs(y.clientX - N.x) > at || Math.abs(y.clientY - N.y) > at) && c(!0);
918
+ (Math.abs(g.clientX - f.x) > pt || Math.abs(g.clientY - f.y) > pt) && c(!0);
685
919
  }
686
- const w = i ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
687
- return /* @__PURE__ */ o(B.Root, { className: n("gryt-slider w-full", a), ...r, children: /* @__PURE__ */ o(
688
- B.Control,
920
+ const m = n ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
921
+ return /* @__PURE__ */ a(_.Root, { className: s("gryt-slider w-full", o), ...t, children: /* @__PURE__ */ a(
922
+ _.Control,
689
923
  {
690
924
  className: "flex w-full touch-none items-center py-2 select-none",
691
- onPointerDown: m,
925
+ onPointerDown: d,
692
926
  onPointerMove: u,
693
- children: /* @__PURE__ */ d(B.Track, { className: "h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none", children: [
694
- /* @__PURE__ */ o(
695
- B.Indicator,
927
+ children: /* @__PURE__ */ p(_.Track, { className: "h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none", children: [
928
+ /* @__PURE__ */ a(
929
+ _.Indicator,
696
930
  {
697
- className: n(
931
+ className: s(
698
932
  "h-full rounded-(--gryt-radius-full) select-none",
699
933
  "transition-[width]",
700
- w,
701
- gt[t]
934
+ m,
935
+ Ct[e]
702
936
  )
703
937
  }
704
938
  ),
705
- /* @__PURE__ */ o(
706
- B.Thumb,
939
+ /* @__PURE__ */ a(
940
+ _.Thumb,
707
941
  {
708
- "aria-label": e,
709
- className: n(
942
+ "aria-label": r,
943
+ className: s(
710
944
  "group h-4 w-4 rounded-(--gryt-radius-full) select-none",
711
945
  "transition-[inset-inline-start]",
712
- w,
946
+ m,
713
947
  // The ring goes on the thumb but the focus lands on the visually
714
948
  // hidden input inside it, so this has to match a descendant.
715
949
  // Without it the slider is the one control here you cannot see
716
950
  // yourself tab to.
717
- Vt
951
+ ge
718
952
  ),
719
- children: /* @__PURE__ */ o(
953
+ children: /* @__PURE__ */ a(
720
954
  "span",
721
955
  {
722
- className: n(
956
+ className: s(
723
957
  "block h-full w-full rounded-(--gryt-radius-full) bg-gryt-text",
724
958
  "transition-[scale] duration-(--gryt-dur-spring) ease-spring",
725
959
  "motion-safe:group-hover:scale-[1.12] motion-safe:group-active:scale-[0.94]",
@@ -733,58 +967,58 @@ function ho({
733
967
  }
734
968
  ) });
735
969
  }
736
- const Jt = {
970
+ const we = {
737
971
  small: "min-h-9 px-3 text-sm",
738
972
  medium: "min-h-11 px-4 text-sm"
739
973
  };
740
- function wo({
741
- className: a,
742
- label: t,
743
- options: e = [],
744
- placeholder: r = "Select",
745
- size: i = "medium",
974
+ function Yo({
975
+ className: o,
976
+ label: e,
977
+ options: r = [],
978
+ placeholder: t = "Select",
979
+ size: n = "medium",
746
980
  ...c
747
981
  }) {
748
- return /* @__PURE__ */ d(x.Root, { items: e, ...c, children: [
749
- /* @__PURE__ */ d("div", { className: n("gryt-select flex w-full flex-col gap-1.5", a), children: [
750
- t ? /* @__PURE__ */ o(x.Label, { className: "text-xs font-medium text-gryt-muted", children: t }) : null,
751
- /* @__PURE__ */ d(
752
- x.Trigger,
982
+ return /* @__PURE__ */ p(v.Root, { items: r, ...c, children: [
983
+ /* @__PURE__ */ p("div", { className: s("gryt-select flex w-full flex-col gap-1.5", o), children: [
984
+ e ? /* @__PURE__ */ a(v.Label, { className: "text-xs font-medium text-gryt-muted", children: e }) : null,
985
+ /* @__PURE__ */ p(
986
+ v.Trigger,
753
987
  {
754
- className: n(
988
+ className: s(
755
989
  "flex w-full items-center justify-between gap-2",
756
990
  "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface-raised",
757
991
  "text-gryt-text select-none",
758
992
  "transition-colors duration-150 hover:border-gryt-accent-light",
759
993
  "data-disabled:cursor-not-allowed data-disabled:opacity-60",
760
- b,
761
- Jt[i]
994
+ x,
995
+ we[n]
762
996
  ),
763
997
  children: [
764
- /* @__PURE__ */ o(x.Value, { placeholder: r }),
765
- /* @__PURE__ */ o(x.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ o(Pt, { size: 16 }) })
998
+ /* @__PURE__ */ a(v.Value, { placeholder: t }),
999
+ /* @__PURE__ */ a(v.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ a(Ft, { size: 16 }) })
766
1000
  ]
767
1001
  }
768
1002
  )
769
1003
  ] }),
770
- /* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(x.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ o(
771
- x.Popup,
1004
+ /* @__PURE__ */ a(v.Portal, { children: /* @__PURE__ */ a(v.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ a(
1005
+ v.Popup,
772
1006
  {
773
- className: n("min-w-(--anchor-width) p-1", S, R),
774
- children: /* @__PURE__ */ o(x.List, { children: e.map((l) => /* @__PURE__ */ d(
775
- x.Item,
1007
+ className: s("min-w-(--anchor-width) p-1", B, A),
1008
+ children: /* @__PURE__ */ a(v.List, { children: r.map((l) => /* @__PURE__ */ p(
1009
+ v.Item,
776
1010
  {
777
1011
  value: l.value,
778
1012
  disabled: l.disabled,
779
- className: n(
1013
+ className: s(
780
1014
  "flex cursor-default items-center justify-between gap-2",
781
1015
  "rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text",
782
1016
  "outline-none select-none data-highlighted:bg-gryt-surface-raised",
783
1017
  "data-disabled:cursor-not-allowed data-disabled:opacity-50"
784
1018
  ),
785
1019
  children: [
786
- /* @__PURE__ */ o(x.ItemText, { children: l.label }),
787
- /* @__PURE__ */ o(x.ItemIndicator, { className: "text-gryt-accent", children: /* @__PURE__ */ o(lt, { size: 14, weight: "bold" }) })
1020
+ /* @__PURE__ */ a(v.ItemText, { children: l.label }),
1021
+ /* @__PURE__ */ a(v.ItemIndicator, { className: "text-gryt-accent", children: /* @__PURE__ */ a(wt, { size: 14, weight: "bold" }) })
788
1022
  ]
789
1023
  },
790
1024
  String(l.value)
@@ -793,308 +1027,314 @@ function wo({
793
1027
  ) }) })
794
1028
  ] });
795
1029
  }
796
- function vo({
797
- children: a,
798
- className: t,
799
- side: e = "top",
800
- sideOffset: r = 8,
801
- title: i
1030
+ function Wo({
1031
+ children: o,
1032
+ className: e,
1033
+ side: r = "top",
1034
+ sideOffset: t = 8,
1035
+ title: n
802
1036
  }) {
803
- return /* @__PURE__ */ d(D.Root, { children: [
804
- /* @__PURE__ */ o(D.Trigger, { render: a }),
805
- /* @__PURE__ */ o(D.Portal, { children: /* @__PURE__ */ o(D.Positioner, { side: e, sideOffset: r, children: /* @__PURE__ */ o(
806
- D.Popup,
1037
+ return /* @__PURE__ */ p(j.Root, { children: [
1038
+ /* @__PURE__ */ a(j.Trigger, { render: o }),
1039
+ /* @__PURE__ */ a(j.Portal, { children: /* @__PURE__ */ a(j.Positioner, { side: r, sideOffset: t, children: /* @__PURE__ */ a(
1040
+ j.Popup,
807
1041
  {
808
- className: n(
1042
+ className: s(
809
1043
  "gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised",
810
1044
  "px-2.5 py-1.5 text-xs text-gryt-text",
811
- R,
812
- t
1045
+ A,
1046
+ e
813
1047
  ),
814
- children: i
1048
+ children: n
815
1049
  }
816
1050
  ) }) })
817
1051
  ] });
818
1052
  }
819
- const No = D.Provider, Po = s(
820
- function({ className: t, orientation: e = "horizontal", ...r }, i) {
821
- return /* @__PURE__ */ o(
822
- Rt,
1053
+ const Qo = j.Provider, Jo = i(
1054
+ function({ className: e, orientation: r = "horizontal", ...t }, n) {
1055
+ return /* @__PURE__ */ a(
1056
+ Ut,
823
1057
  {
824
- ref: i,
825
- orientation: e,
826
- className: n(
1058
+ ref: n,
1059
+ orientation: r,
1060
+ className: s(
827
1061
  "gryt-divider bg-gryt-border",
828
- e === "vertical" ? "h-full w-px" : "h-px w-full",
829
- t
1062
+ r === "vertical" ? "h-full w-px" : "h-px w-full",
1063
+ e
830
1064
  ),
831
- ...r
1065
+ ...t
832
1066
  }
833
1067
  );
834
1068
  }
835
- ), ko = s(function({ className: t, ...e }, r) {
836
- return /* @__PURE__ */ o(
1069
+ ), Ko = i(function({ className: e, ...r }, t) {
1070
+ return /* @__PURE__ */ a(
837
1071
  "div",
838
1072
  {
839
- ref: r,
840
- className: n(
1073
+ ref: t,
1074
+ className: s(
841
1075
  "gryt-card rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",
842
- t
1076
+ e
843
1077
  ),
844
- ...e
1078
+ ...r
845
1079
  }
846
1080
  );
847
1081
  });
848
- function To({
849
- children: a,
850
- className: t,
851
- subheader: e,
852
- title: r,
853
- ...i
1082
+ function Zo({
1083
+ children: o,
1084
+ className: e,
1085
+ subheader: r,
1086
+ title: t,
1087
+ ...n
854
1088
  }) {
855
- return /* @__PURE__ */ d(
1089
+ return /* @__PURE__ */ p(
856
1090
  "div",
857
1091
  {
858
- className: n("gryt-card-header flex flex-col gap-1 p-4", t),
859
- ...i,
1092
+ className: s("gryt-card-header flex flex-col gap-1 p-4", e),
1093
+ ...n,
860
1094
  children: [
861
- r ? /* @__PURE__ */ o("span", { className: "text-base font-semibold text-gryt-text", children: r }) : null,
862
- e ? /* @__PURE__ */ o("span", { className: "text-sm text-gryt-muted", children: e }) : null,
863
- a
1095
+ t ? /* @__PURE__ */ a("span", { className: "text-base font-semibold text-gryt-text", children: t }) : null,
1096
+ r ? /* @__PURE__ */ a("span", { className: "text-sm text-gryt-muted", children: r }) : null,
1097
+ o
864
1098
  ]
865
1099
  }
866
1100
  );
867
1101
  }
868
- function $o({
869
- className: a,
870
- ...t
1102
+ function qo({
1103
+ className: o,
1104
+ ...e
871
1105
  }) {
872
- return /* @__PURE__ */ o(
1106
+ return /* @__PURE__ */ a(
873
1107
  "div",
874
1108
  {
875
- className: n(
1109
+ className: s(
876
1110
  "gryt-card-content px-4 pb-4 text-sm text-gryt-muted",
877
- a
1111
+ o
878
1112
  ),
879
- ...t
1113
+ ...e
880
1114
  }
881
1115
  );
882
1116
  }
883
- function Co({
884
- className: a,
885
- ...t
1117
+ function ta({
1118
+ className: o,
1119
+ ...e
886
1120
  }) {
887
- return /* @__PURE__ */ o(
1121
+ return /* @__PURE__ */ a(
888
1122
  "div",
889
1123
  {
890
- className: n(
1124
+ className: s(
891
1125
  "gryt-card-actions flex items-center gap-2 px-4 pb-4",
892
- a
1126
+ o
893
1127
  ),
894
- ...t
1128
+ ...e
895
1129
  }
896
1130
  );
897
1131
  }
898
- const Kt = {
1132
+ const ve = {
899
1133
  info: "border-gryt-secondary/40 bg-gryt-secondary/10 text-gryt-secondary",
900
1134
  success: "border-gryt-success/40 bg-gryt-success/10 text-gryt-success",
901
1135
  warning: "border-gryt-warning/40 bg-gryt-warning/10 text-gryt-warning",
902
1136
  error: "border-gryt-danger/40 bg-gryt-danger/10 text-gryt-danger"
903
- }, So = s(function({ className: t, severity: e = "info", ...r }, i) {
904
- return /* @__PURE__ */ o(
1137
+ }, ea = i(function({ className: e, severity: r = "info", ...t }, n) {
1138
+ return /* @__PURE__ */ a(
905
1139
  "div",
906
1140
  {
907
- ref: i,
1141
+ ref: n,
908
1142
  role: "alert",
909
- className: n(
1143
+ className: s(
910
1144
  "gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
911
- Kt[e],
912
- t
1145
+ ve[r],
1146
+ e
913
1147
  ),
914
- ...r
1148
+ ...t
915
1149
  }
916
1150
  );
917
1151
  });
918
- function Ro({ className: a, value: t = null, ...e }) {
919
- return /* @__PURE__ */ o(
920
- O.Root,
1152
+ function ra({ className: o, value: e = null, ...r }) {
1153
+ return /* @__PURE__ */ a(
1154
+ et.Root,
921
1155
  {
922
- value: t,
923
- className: n("gryt-progress w-full", a),
924
- ...e,
925
- children: /* @__PURE__ */ o(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(O.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none" }) })
1156
+ value: e,
1157
+ className: s("gryt-progress w-full", o),
1158
+ ...r,
1159
+ children: /* @__PURE__ */ a(et.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ a(et.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-300 ease-out motion-reduce:transition-none" }) })
926
1160
  }
927
1161
  );
928
1162
  }
929
- function Io({
930
- className: a,
931
- size: t = 24,
932
- "aria-label": e = "Loading"
1163
+ function oa({
1164
+ className: o,
1165
+ size: e = 24,
1166
+ "aria-label": r = "Loading"
933
1167
  }) {
934
- return /* @__PURE__ */ o(
935
- kt,
1168
+ return /* @__PURE__ */ a(
1169
+ Et,
936
1170
  {
937
1171
  role: "status",
938
- "aria-label": e,
939
- size: t,
1172
+ "aria-label": r,
1173
+ size: e,
940
1174
  weight: "bold",
941
- className: n(
1175
+ className: s(
942
1176
  "gryt-spinner text-gryt-accent motion-safe:animate-spin",
943
- a
1177
+ o
944
1178
  )
945
1179
  }
946
1180
  );
947
1181
  }
948
- const Zt = {
1182
+ const Ne = {
949
1183
  text: "h-4 rounded-(--gryt-radius-sm)",
950
1184
  rounded: "rounded-(--gryt-radius-lg)",
951
1185
  circular: "rounded-(--gryt-radius-full)",
952
1186
  rectangular: "rounded-none"
953
1187
  };
954
- function Do({
955
- className: a,
956
- height: t,
957
- style: e,
958
- variant: r = "text",
959
- width: i,
1188
+ function aa({
1189
+ className: o,
1190
+ height: e,
1191
+ style: r,
1192
+ variant: t = "text",
1193
+ width: n,
960
1194
  ...c
961
1195
  }) {
962
1196
  const l = {
963
- width: i,
964
- height: t,
965
- ...e
1197
+ width: n,
1198
+ height: e,
1199
+ ...r
966
1200
  };
967
- return /* @__PURE__ */ o(
1201
+ return /* @__PURE__ */ a(
968
1202
  "div",
969
1203
  {
970
1204
  "aria-hidden": "true",
971
- className: n(
972
- "gryt-skeleton bg-gryt-surface-raised motion-safe:animate-pulse",
973
- Zt[r],
974
- a
1205
+ className: s(
1206
+ // Not bg-gryt-surface-raised. #1e2028 against #1a1d24 is four points of
1207
+ // luminance, which is invisible on a laptop screen at an angle — the
1208
+ // placeholder that is meant to say "something is coming" said nothing.
1209
+ // A white wash instead of a fixed colour, so it stays visible on any of
1210
+ // the surfaces it can land on rather than only the one it was picked
1211
+ // against, and it dims rather than brightens as it pulses.
1212
+ "gryt-skeleton bg-white/9 motion-safe:animate-pulse",
1213
+ Ne[t],
1214
+ o
975
1215
  ),
976
1216
  style: l,
977
1217
  ...c
978
1218
  }
979
1219
  );
980
1220
  }
981
- const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", qt = s(
982
- function({ className: t, ...e }, r) {
983
- return /* @__PURE__ */ o(
984
- $.Backdrop,
1221
+ const St = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", Pe = i(
1222
+ function({ className: e, ...r }, t) {
1223
+ return /* @__PURE__ */ a(
1224
+ L.Backdrop,
985
1225
  {
986
- ref: r,
987
- className: n(
1226
+ ref: t,
1227
+ className: s(
988
1228
  "gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
989
1229
  "backdrop-blur-(--gryt-backdrop-blur)",
990
- ut,
1230
+ St,
991
1231
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
992
- t
1232
+ e
993
1233
  ),
994
- ...e
1234
+ ...r
995
1235
  }
996
1236
  );
997
1237
  }
998
- ), te = s(
999
- function({ className: t, ...e }, r) {
1000
- return /* @__PURE__ */ o(
1001
- $.Popup,
1238
+ ), Te = i(
1239
+ function({ className: e, ...r }, t) {
1240
+ return /* @__PURE__ */ a(
1241
+ L.Popup,
1002
1242
  {
1003
- ref: r,
1004
- className: n(
1243
+ ref: t,
1244
+ className: s(
1005
1245
  "gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
1006
1246
  "flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
1007
1247
  "rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
1008
- ut,
1248
+ St,
1009
1249
  "data-starting-style:scale-[0.98] data-starting-style:opacity-0",
1010
1250
  "data-ending-style:scale-[0.98] data-ending-style:opacity-0",
1011
- t
1251
+ e
1012
1252
  ),
1013
- ...e
1253
+ ...r
1014
1254
  }
1015
1255
  );
1016
1256
  }
1017
- ), ee = s(
1018
- function({ className: t, ...e }, r) {
1019
- return /* @__PURE__ */ o(
1020
- $.Title,
1257
+ ), ke = i(
1258
+ function({ className: e, ...r }, t) {
1259
+ return /* @__PURE__ */ a(
1260
+ L.Title,
1021
1261
  {
1022
- ref: r,
1023
- className: n(
1262
+ ref: t,
1263
+ className: s(
1024
1264
  "gryt-dialog-title text-base font-semibold text-gryt-text",
1025
- t
1265
+ e
1026
1266
  ),
1027
- ...e
1267
+ ...r
1028
1268
  }
1029
1269
  );
1030
1270
  }
1031
- ), re = s(
1032
- function({ className: t, ...e }, r) {
1033
- return /* @__PURE__ */ o(
1034
- $.Description,
1271
+ ), $e = i(
1272
+ function({ className: e, ...r }, t) {
1273
+ return /* @__PURE__ */ a(
1274
+ L.Description,
1035
1275
  {
1036
- ref: r,
1037
- className: n(
1276
+ ref: t,
1277
+ className: s(
1038
1278
  "gryt-dialog-description text-sm text-gryt-muted",
1039
- t
1279
+ e
1040
1280
  ),
1041
- ...e
1281
+ ...r
1042
1282
  }
1043
1283
  );
1044
1284
  }
1045
- ), oe = s(
1046
- function({ className: t, ...e }, r) {
1047
- return /* @__PURE__ */ o(
1285
+ ), Ce = i(
1286
+ function({ className: e, ...r }, t) {
1287
+ return /* @__PURE__ */ a(
1048
1288
  "div",
1049
1289
  {
1050
- ref: r,
1051
- className: n(
1290
+ ref: t,
1291
+ className: s(
1052
1292
  "gryt-dialog-footer flex justify-end gap-3",
1053
- t
1293
+ e
1054
1294
  ),
1055
- ...e
1295
+ ...r
1056
1296
  }
1057
1297
  );
1058
1298
  }
1059
- ), Ao = {
1060
- Root: $.Root,
1061
- Trigger: $.Trigger,
1062
- Portal: $.Portal,
1063
- Close: $.Close,
1064
- Backdrop: qt,
1065
- Popup: te,
1066
- Title: ee,
1067
- Description: re,
1068
- Footer: oe
1069
- }, ae = () => () => {
1299
+ ), na = {
1300
+ Root: L.Root,
1301
+ Trigger: L.Trigger,
1302
+ Portal: L.Portal,
1303
+ Close: L.Close,
1304
+ Backdrop: Pe,
1305
+ Popup: Te,
1306
+ Title: ke,
1307
+ Description: $e,
1308
+ Footer: Ce
1309
+ }, Se = () => () => {
1070
1310
  };
1071
- function ne(a) {
1072
- const t = U(
1073
- (r) => {
1074
- if (typeof window > "u" || !window.matchMedia) return ae();
1075
- const i = window.matchMedia(a);
1076
- return i.addEventListener("change", r), () => i.removeEventListener("change", r);
1311
+ function Re(o) {
1312
+ const e = at(
1313
+ (t) => {
1314
+ if (typeof window > "u" || !window.matchMedia) return Se();
1315
+ const n = window.matchMedia(o);
1316
+ return n.addEventListener("change", t), () => n.removeEventListener("change", t);
1077
1317
  },
1078
- [a]
1079
- ), e = U(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(a).matches, [a]);
1080
- return xt(t, e, () => !1);
1318
+ [o]
1319
+ ), r = at(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(o).matches, [o]);
1320
+ return Dt(e, r, () => !1);
1081
1321
  }
1082
- const ie = {
1322
+ const Ie = {
1083
1323
  left: "left",
1084
1324
  right: "right",
1085
1325
  top: "up",
1086
1326
  bottom: "down"
1087
- }, _ = ht("right"), se = {
1327
+ }, Z = jt("right"), Le = {
1088
1328
  left: "items-stretch justify-start",
1089
1329
  right: "items-stretch justify-end",
1090
1330
  top: "items-start justify-center",
1091
1331
  bottom: "items-end justify-center"
1092
- }, ce = {
1332
+ }, Me = {
1093
1333
  left: "rounded-r-(--gryt-radius-xl)",
1094
1334
  right: "rounded-l-(--gryt-radius-xl)",
1095
1335
  top: "rounded-b-(--gryt-radius-xl)",
1096
1336
  bottom: "rounded-t-(--gryt-radius-xl)"
1097
- }, le = {
1337
+ }, Ae = {
1098
1338
  left: [
1099
1339
  "h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
1100
1340
  "-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
@@ -1124,41 +1364,41 @@ const ie = {
1124
1364
  "data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
1125
1365
  ].join(" ")
1126
1366
  };
1127
- function de({
1128
- side: a = "right",
1129
- sheetOnMobile: t = !0,
1130
- children: e,
1131
- ...r
1367
+ function De({
1368
+ side: o = "right",
1369
+ sheetOnMobile: e = !0,
1370
+ children: r,
1371
+ ...t
1132
1372
  }) {
1133
- const i = ne("(max-width: 767px)"), c = t && i ? "bottom" : a;
1134
- return /* @__PURE__ */ o(_.Provider, { value: c, children: /* @__PURE__ */ o(v.Root, { swipeDirection: ie[c], ...r, children: e }) });
1373
+ const n = Re("(max-width: 767px)"), c = e && n ? "bottom" : o;
1374
+ return /* @__PURE__ */ a(Z.Provider, { value: c, children: /* @__PURE__ */ a(T.Root, { swipeDirection: Ie[c], ...t, children: r }) });
1135
1375
  }
1136
- const ge = s(
1137
- function({ className: t, ...e }, r) {
1138
- const i = W(_);
1139
- return /* @__PURE__ */ o(
1140
- v.Viewport,
1376
+ const je = i(
1377
+ function({ className: e, ...r }, t) {
1378
+ const n = nt(Z);
1379
+ return /* @__PURE__ */ a(
1380
+ T.Viewport,
1141
1381
  {
1142
- ref: r,
1143
- className: n(
1382
+ ref: t,
1383
+ className: s(
1144
1384
  // z-50 matters: the popup is no longer positioned itself, so the
1145
1385
  // viewport is what has to sit above the page. Without it a sticky
1146
1386
  // site header renders over the panel.
1147
1387
  "gryt-drawer-viewport fixed inset-0 z-50 flex",
1148
- se[i],
1149
- t
1388
+ Le[n],
1389
+ e
1150
1390
  ),
1151
- ...e
1391
+ ...r
1152
1392
  }
1153
1393
  );
1154
1394
  }
1155
- ), ue = s(function({ className: t, ...e }, r) {
1156
- const i = W(_);
1157
- return /* @__PURE__ */ o(
1158
- v.Popup,
1395
+ ), Ge = i(function({ className: e, ...r }, t) {
1396
+ const n = nt(Z);
1397
+ return /* @__PURE__ */ a(
1398
+ T.Popup,
1159
1399
  {
1160
- ref: r,
1161
- className: n(
1400
+ ref: t,
1401
+ className: s(
1162
1402
  "gryt-drawer flex flex-col gap-4 border-gryt-border bg-gryt-surface text-gryt-text",
1163
1403
  "overflow-y-auto overscroll-contain outline-none",
1164
1404
  "transition-transform duration-(--gryt-dur-spring-soft) ease-spring",
@@ -1166,19 +1406,19 @@ const ge = s(
1166
1406
  // duration here turns a drag into a drag plus lag.
1167
1407
  "data-swiping:duration-0 data-swiping:select-none",
1168
1408
  "motion-reduce:transition-none",
1169
- le[i],
1170
- ce[i],
1171
- t
1409
+ Ae[n],
1410
+ Me[n],
1411
+ e
1172
1412
  ),
1173
- ...e
1413
+ ...r
1174
1414
  }
1175
1415
  );
1176
- }), ye = s(function({ className: t, ...e }, r) {
1177
- return /* @__PURE__ */ o(
1178
- v.Backdrop,
1416
+ }), Be = i(function({ className: e, ...r }, t) {
1417
+ return /* @__PURE__ */ a(
1418
+ T.Backdrop,
1179
1419
  {
1180
- ref: r,
1181
- className: n(
1420
+ ref: t,
1421
+ className: s(
1182
1422
  "gryt-drawer-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60",
1183
1423
  "backdrop-blur-(--gryt-backdrop-blur)",
1184
1424
  // Lightens as the panel is dragged away, so letting go halfway does not
@@ -1188,137 +1428,137 @@ const ge = s(
1188
1428
  "data-swiping:duration-0",
1189
1429
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
1190
1430
  "motion-reduce:transition-none",
1191
- t
1431
+ e
1192
1432
  ),
1193
- ...e
1433
+ ...r
1194
1434
  }
1195
1435
  );
1196
1436
  });
1197
- function me({ className: a }) {
1198
- const t = W(_);
1199
- return t !== "bottom" && t !== "top" ? null : /* @__PURE__ */ o(
1437
+ function ze({ className: o }) {
1438
+ const e = nt(Z);
1439
+ return e !== "bottom" && e !== "top" ? null : /* @__PURE__ */ a(
1200
1440
  "div",
1201
1441
  {
1202
1442
  "aria-hidden": !0,
1203
- className: n(
1443
+ className: s(
1204
1444
  "gryt-drawer-grabber mx-auto h-1.5 w-10 shrink-0 rounded-(--gryt-radius-full) bg-gryt-border",
1205
- t === "top" && "order-last",
1206
- a
1445
+ e === "top" && "order-last",
1446
+ o
1207
1447
  )
1208
1448
  }
1209
1449
  );
1210
1450
  }
1211
- const Mo = {
1212
- Root: de,
1213
- Trigger: v.Trigger,
1214
- Portal: v.Portal,
1215
- Backdrop: ye,
1216
- Viewport: ge,
1217
- Popup: ue,
1218
- Content: v.Content,
1219
- Grabber: me,
1220
- Close: v.Close,
1221
- Title: v.Title,
1222
- Description: v.Description
1223
- }, pe = s(
1224
- function({ className: t, sideOffset: e = 8, ...r }, i) {
1225
- return /* @__PURE__ */ o(
1226
- A.Positioner,
1451
+ const sa = {
1452
+ Root: De,
1453
+ Trigger: T.Trigger,
1454
+ Portal: T.Portal,
1455
+ Backdrop: Be,
1456
+ Viewport: je,
1457
+ Popup: Ge,
1458
+ Content: T.Content,
1459
+ Grabber: ze,
1460
+ Close: T.Close,
1461
+ Title: T.Title,
1462
+ Description: T.Description
1463
+ }, Fe = i(
1464
+ function({ className: e, sideOffset: r = 8, ...t }, n) {
1465
+ return /* @__PURE__ */ a(
1466
+ G.Positioner,
1227
1467
  {
1228
- ref: i,
1229
- sideOffset: e,
1230
- className: n("gryt-menu-positioner outline-none", t),
1231
- ...r
1468
+ ref: n,
1469
+ sideOffset: r,
1470
+ className: s("gryt-menu-positioner outline-none", e),
1471
+ ...t
1232
1472
  }
1233
1473
  );
1234
1474
  }
1235
- ), be = s(function({ className: t, ...e }, r) {
1236
- return /* @__PURE__ */ o(
1237
- A.Popup,
1475
+ ), Ee = i(function({ className: e, ...r }, t) {
1476
+ return /* @__PURE__ */ a(
1477
+ G.Popup,
1238
1478
  {
1239
- ref: r,
1240
- className: n(
1479
+ ref: t,
1480
+ className: s(
1241
1481
  "gryt-menu min-w-44 p-1 outline-none",
1242
- S,
1243
- R,
1244
- t
1482
+ B,
1483
+ A,
1484
+ e
1245
1485
  ),
1246
- ...e
1486
+ ...r
1247
1487
  }
1248
1488
  );
1249
- }), fe = s(function({ className: t, ...e }, r) {
1250
- return /* @__PURE__ */ o(
1251
- A.Item,
1489
+ }), Ve = i(function({ className: e, ...r }, t) {
1490
+ return /* @__PURE__ */ a(
1491
+ G.Item,
1252
1492
  {
1253
- ref: r,
1254
- className: n(
1493
+ ref: t,
1494
+ className: s(
1255
1495
  "gryt-menu-item flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
1256
1496
  "px-3 py-2 text-sm text-gryt-text outline-none select-none",
1257
1497
  // Base UI drives keyboard and pointer highlight through the same
1258
1498
  // attribute, so arrow keys and the mouse land on identical styling.
1259
1499
  "data-highlighted:bg-gryt-surface-raised",
1260
1500
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
1261
- t
1501
+ e
1262
1502
  ),
1263
- ...e
1503
+ ...r
1264
1504
  }
1265
1505
  );
1266
- }), xe = s(function({ className: t, ...e }, r) {
1267
- return /* @__PURE__ */ o(
1268
- A.Separator,
1506
+ }), _e = i(function({ className: e, ...r }, t) {
1507
+ return /* @__PURE__ */ a(
1508
+ G.Separator,
1269
1509
  {
1270
- ref: r,
1271
- className: n("gryt-menu-separator my-1 h-px bg-gryt-border", t),
1272
- ...e
1510
+ ref: t,
1511
+ className: s("gryt-menu-separator my-1 h-px bg-gryt-border", e),
1512
+ ...r
1273
1513
  }
1274
1514
  );
1275
- }), Y = {
1276
- Root: A.Root,
1277
- Trigger: A.Trigger,
1278
- Portal: A.Portal,
1279
- Positioner: pe,
1280
- Popup: be,
1281
- Item: fe,
1282
- Separator: xe
1283
- }, he = s(function({ className: t, ...e }, r) {
1284
- return /* @__PURE__ */ o(
1285
- V.Root,
1515
+ }), ot = {
1516
+ Root: G.Root,
1517
+ Trigger: G.Trigger,
1518
+ Portal: G.Portal,
1519
+ Positioner: Fe,
1520
+ Popup: Ee,
1521
+ Item: Ve,
1522
+ Separator: _e
1523
+ }, He = i(function({ className: e, ...r }, t) {
1524
+ return /* @__PURE__ */ a(
1525
+ W.Root,
1286
1526
  {
1287
- ref: r,
1288
- className: n(
1527
+ ref: t,
1528
+ className: s(
1289
1529
  "gryt-tabs",
1290
1530
  // Vertical puts the rail and the panel side by side. min-w-0 on the
1291
1531
  // panel does the rest; without the flex here the panel lands under the
1292
1532
  // rail and the layout reads as a very tall accordion.
1293
1533
  "data-[orientation=vertical]:flex data-[orientation=vertical]:items-stretch",
1294
- t
1534
+ e
1295
1535
  ),
1296
- ...e
1536
+ ...r
1297
1537
  }
1298
1538
  );
1299
- }), we = s(function({ className: t, ...e }, r) {
1300
- return /* @__PURE__ */ o(
1301
- V.List,
1539
+ }), Oe = i(function({ className: e, ...r }, t) {
1540
+ return /* @__PURE__ */ a(
1541
+ W.List,
1302
1542
  {
1303
- ref: r,
1304
- className: n(
1543
+ ref: t,
1544
+ className: s(
1305
1545
  "gryt-tabs-list relative inline-flex items-center gap-1 rounded-(--gryt-radius-full) bg-gryt-surface-raised p-1",
1306
1546
  // A rail, not a pill: rows are full width and the corner radius drops
1307
1547
  // to lg, because a 999px radius on a tall box bows its short edges.
1308
1548
  "data-[orientation=vertical]:flex data-[orientation=vertical]:shrink-0",
1309
1549
  "data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",
1310
1550
  "data-[orientation=vertical]:rounded-(--gryt-radius-lg)",
1311
- t
1551
+ e
1312
1552
  ),
1313
- ...e
1553
+ ...r
1314
1554
  }
1315
1555
  );
1316
- }), ve = s(function({ className: t, ...e }, r) {
1317
- return /* @__PURE__ */ o(
1318
- V.Tab,
1556
+ }), Ue = i(function({ className: e, ...r }, t) {
1557
+ return /* @__PURE__ */ a(
1558
+ W.Tab,
1319
1559
  {
1320
- ref: r,
1321
- className: n(
1560
+ ref: t,
1561
+ className: s(
1322
1562
  "gryt-tab inline-flex min-h-8 items-center justify-center whitespace-nowrap",
1323
1563
  "rounded-(--gryt-radius-full) border-0 bg-transparent px-4 py-1.5",
1324
1564
  "text-sm font-medium text-gryt-muted select-none",
@@ -1332,20 +1572,20 @@ const Mo = {
1332
1572
  "data-[orientation=vertical]:min-h-9 data-[orientation=vertical]:justify-start",
1333
1573
  "data-[orientation=vertical]:gap-2.5 data-[orientation=vertical]:px-3",
1334
1574
  "data-[orientation=vertical]:rounded-(--gryt-radius-md)",
1335
- b,
1336
- t
1575
+ x,
1576
+ e
1337
1577
  ),
1338
- ...e
1578
+ ...r
1339
1579
  }
1340
1580
  );
1341
- }), Ne = s(
1342
- function({ className: t, ...e }, r) {
1343
- return /* @__PURE__ */ o(
1344
- V.Indicator,
1581
+ }), Xe = i(
1582
+ function({ className: e, ...r }, t) {
1583
+ return /* @__PURE__ */ a(
1584
+ W.Indicator,
1345
1585
  {
1346
- ref: r,
1586
+ ref: t,
1347
1587
  renderBeforeHydration: !0,
1348
- className: n(
1588
+ className: s(
1349
1589
  "gryt-tabs-indicator absolute top-1 left-0 z-0 h-[calc(100%-0.5rem)]",
1350
1590
  "w-(--active-tab-width) translate-x-(--active-tab-left)",
1351
1591
  "rounded-(--gryt-radius-full) bg-gryt-accent",
@@ -1359,340 +1599,352 @@ const Mo = {
1359
1599
  "[[data-orientation=vertical]_&]:translate-y-(--active-tab-top)",
1360
1600
  "[[data-orientation=vertical]_&]:rounded-(--gryt-radius-md)",
1361
1601
  "[[data-orientation=vertical]_&]:transition-[translate,height]",
1362
- t
1602
+ e
1363
1603
  ),
1364
- ...e
1604
+ ...r
1365
1605
  }
1366
1606
  );
1367
1607
  }
1368
- ), Pe = s(function({ className: t, ...e }, r) {
1369
- return /* @__PURE__ */ o(
1370
- V.Panel,
1608
+ ), Ye = i(function({ className: e, ...r }, t) {
1609
+ return /* @__PURE__ */ a(
1610
+ W.Panel,
1371
1611
  {
1372
- ref: r,
1373
- className: n(
1612
+ ref: t,
1613
+ className: s(
1374
1614
  "gryt-tabs-panel pt-3 text-sm text-gryt-text",
1375
1615
  // Beside the rail rather than under it, and allowed to shrink so long
1376
1616
  // content wraps instead of pushing the rail off screen.
1377
1617
  "data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:flex-1",
1378
1618
  "data-[orientation=vertical]:pt-0 data-[orientation=vertical]:pl-4",
1379
- t
1619
+ e
1380
1620
  ),
1381
- ...e
1621
+ ...r
1382
1622
  }
1383
1623
  );
1384
- }), Lo = Object.assign(he, { List: we, Tab: ve, Panel: Pe, Indicator: Ne }), ke = s(function({ className: t, ...e }, r) {
1385
- return /* @__PURE__ */ o(
1386
- F.Root,
1624
+ }), ia = Object.assign(He, { List: Oe, Tab: Ue, Panel: Ye, Indicator: Xe }), We = i(function({ className: e, ...r }, t) {
1625
+ return /* @__PURE__ */ a(
1626
+ U.Root,
1387
1627
  {
1388
- ref: r,
1389
- className: n(
1628
+ ref: t,
1629
+ className: s(
1390
1630
  "gryt-accordion flex w-full flex-col gap-2 rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface p-2",
1391
- t
1631
+ e
1392
1632
  ),
1393
- ...e
1633
+ ...r
1394
1634
  }
1395
1635
  );
1396
- }), Te = s(
1397
- function({ className: t, ...e }, r) {
1398
- return /* @__PURE__ */ o(
1399
- F.Item,
1636
+ }), Qe = i(
1637
+ function({ className: e, ...r }, t) {
1638
+ return /* @__PURE__ */ a(
1639
+ U.Item,
1400
1640
  {
1401
- ref: r,
1402
- className: n("gryt-accordion-item", t),
1403
- ...e
1641
+ ref: t,
1642
+ className: s("gryt-accordion-item", e),
1643
+ ...r
1404
1644
  }
1405
1645
  );
1406
1646
  }
1407
- ), $e = s(
1408
- function({ children: t, className: e, expandIcon: r, ...i }, c) {
1409
- return /* @__PURE__ */ o(F.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */ d(
1410
- F.Trigger,
1647
+ ), Je = i(
1648
+ function({ children: e, className: r, expandIcon: t, ...n }, c) {
1649
+ return /* @__PURE__ */ a(U.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */ p(
1650
+ U.Trigger,
1411
1651
  {
1412
1652
  ref: c,
1413
- className: n(
1653
+ className: s(
1414
1654
  "gryt-accordion-trigger flex w-full items-center justify-between gap-3",
1415
1655
  "rounded-(--gryt-radius-lg) border-0 bg-transparent px-3 py-2.5",
1416
1656
  "text-left text-sm font-medium text-gryt-text select-none",
1417
1657
  "transition-colors duration-150 hover:bg-gryt-surface-raised",
1418
- b,
1419
- e
1658
+ x,
1659
+ r
1420
1660
  ),
1421
- ...i,
1661
+ ...n,
1422
1662
  children: [
1423
- t,
1424
- r === void 0 ? /* @__PURE__ */ o(
1425
- Tt,
1663
+ e,
1664
+ t === void 0 ? /* @__PURE__ */ a(
1665
+ Vt,
1426
1666
  {
1427
1667
  size: 16,
1428
1668
  className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
1429
1669
  }
1430
- ) : r
1670
+ ) : t
1431
1671
  ]
1432
1672
  }
1433
1673
  ) });
1434
1674
  }
1435
- ), Ce = s(
1436
- function({ children: t, className: e, ...r }, i) {
1437
- return /* @__PURE__ */ o(
1438
- F.Panel,
1675
+ ), Ke = i(
1676
+ function({ children: e, className: r, ...t }, n) {
1677
+ return /* @__PURE__ */ a(
1678
+ U.Panel,
1439
1679
  {
1440
- ref: i,
1441
- className: n(
1680
+ ref: n,
1681
+ className: s(
1442
1682
  "gryt-accordion-panel overflow-hidden text-sm text-gryt-muted",
1443
1683
  // Base UI measures the panel and exposes the height as a variable,
1444
1684
  // which is what makes a real open and close transition possible.
1445
1685
  "h-[var(--accordion-panel-height)] transition-[height] duration-(--gryt-dur-spring-soft) ease-spring",
1446
1686
  "data-starting-style:h-0 data-ending-style:h-0",
1447
1687
  "motion-reduce:transition-none",
1448
- e
1688
+ r
1449
1689
  ),
1450
- ...r,
1451
- children: /* @__PURE__ */ o("div", { className: "px-3 pt-1 pb-3", children: t })
1690
+ ...t,
1691
+ children: /* @__PURE__ */ a("div", { className: "px-3 pt-1 pb-3", children: e })
1452
1692
  }
1453
1693
  );
1454
1694
  }
1455
- ), jo = Object.assign(ke, { Item: Te, Trigger: $e, Panel: Ce }), Se = s(
1456
- function({ className: t, sideOffset: e = 2, ...r }, i) {
1457
- return /* @__PURE__ */ o(
1458
- T.Positioner,
1695
+ ), ca = Object.assign(We, { Item: Qe, Trigger: Je, Panel: Ke }), Ze = i(
1696
+ function({ className: e, sideOffset: r = 2, ...t }, n) {
1697
+ return /* @__PURE__ */ a(
1698
+ I.Positioner,
1459
1699
  {
1460
- ref: i,
1461
- sideOffset: e,
1462
- className: n("gryt-context-menu-positioner outline-none", t),
1463
- ...r
1700
+ ref: n,
1701
+ sideOffset: r,
1702
+ className: s("gryt-context-menu-positioner outline-none", e),
1703
+ ...t
1464
1704
  }
1465
1705
  );
1466
1706
  }
1467
- ), Go = {
1468
- Root: T.Root,
1469
- Trigger: T.Trigger,
1470
- Portal: T.Portal,
1471
- Positioner: Se,
1472
- Popup: Y.Popup,
1473
- Item: Y.Item,
1474
- Separator: Y.Separator,
1475
- Group: T.Group,
1476
- GroupLabel: T.GroupLabel,
1477
- SubmenuRoot: T.SubmenuRoot,
1478
- SubmenuTrigger: T.SubmenuTrigger
1479
- }, Re = s(
1480
- function({ className: t, sideOffset: e = 8, ...r }, i) {
1481
- return /* @__PURE__ */ o(
1482
- P.Positioner,
1707
+ ), la = {
1708
+ Root: I.Root,
1709
+ Trigger: I.Trigger,
1710
+ Portal: I.Portal,
1711
+ Positioner: Ze,
1712
+ Popup: ot.Popup,
1713
+ Item: ot.Item,
1714
+ Separator: ot.Separator,
1715
+ Group: I.Group,
1716
+ GroupLabel: I.GroupLabel,
1717
+ SubmenuRoot: I.SubmenuRoot,
1718
+ SubmenuTrigger: I.SubmenuTrigger
1719
+ }, qe = i(
1720
+ function({ className: e, sideOffset: r = 8, ...t }, n) {
1721
+ return /* @__PURE__ */ a(
1722
+ C.Positioner,
1483
1723
  {
1484
- ref: i,
1485
- sideOffset: e,
1486
- className: n("gryt-popover-positioner outline-none", t),
1487
- ...r
1724
+ ref: n,
1725
+ sideOffset: r,
1726
+ className: s("gryt-popover-positioner outline-none", e),
1727
+ ...t
1488
1728
  }
1489
1729
  );
1490
1730
  }
1491
- ), Ie = s(
1492
- function({ className: t, ...e }, r) {
1493
- return /* @__PURE__ */ o(
1494
- P.Popup,
1731
+ ), tr = i(
1732
+ function({ className: e, ...r }, t) {
1733
+ return /* @__PURE__ */ a(
1734
+ C.Popup,
1495
1735
  {
1496
- ref: r,
1497
- className: n(
1736
+ ref: t,
1737
+ className: s(
1498
1738
  "gryt-popover max-w-[min(20rem,calc(100vw-2rem))] p-4 outline-none",
1499
- S,
1500
- R,
1501
- t
1739
+ B,
1740
+ A,
1741
+ e
1502
1742
  ),
1503
- ...e
1743
+ ...r
1504
1744
  }
1505
1745
  );
1506
1746
  }
1507
- ), De = s(function({ className: t, ...e }, r) {
1508
- return /* @__PURE__ */ o(
1509
- P.Title,
1747
+ ), er = i(function({ className: e, ...r }, t) {
1748
+ return /* @__PURE__ */ a(
1749
+ C.Title,
1510
1750
  {
1511
- ref: r,
1512
- className: n(
1751
+ ref: t,
1752
+ className: s(
1513
1753
  "gryt-popover-title text-sm font-semibold text-gryt-text",
1514
- t
1754
+ e
1515
1755
  ),
1516
- ...e
1756
+ ...r
1517
1757
  }
1518
1758
  );
1519
- }), Ae = s(function({ className: t, ...e }, r) {
1520
- return /* @__PURE__ */ o(
1521
- P.Description,
1759
+ }), rr = i(function({ className: e, ...r }, t) {
1760
+ return /* @__PURE__ */ a(
1761
+ C.Description,
1522
1762
  {
1523
- ref: r,
1524
- className: n(
1763
+ ref: t,
1764
+ className: s(
1525
1765
  "gryt-popover-description mt-1 text-sm leading-6 text-gryt-muted",
1526
- t
1766
+ e
1527
1767
  ),
1528
- ...e
1768
+ ...r
1529
1769
  }
1530
1770
  );
1531
- }), Bo = {
1532
- Root: P.Root,
1533
- Trigger: P.Trigger,
1534
- Portal: P.Portal,
1535
- Positioner: Re,
1536
- Popup: Ie,
1537
- Title: De,
1538
- Description: Ae,
1539
- Close: P.Close,
1540
- Arrow: P.Arrow
1541
- }, Me = s(
1542
- function({ className: t, ...e }, r) {
1543
- return /* @__PURE__ */ o(
1544
- k.Viewport,
1771
+ }), da = {
1772
+ Root: C.Root,
1773
+ Trigger: C.Trigger,
1774
+ Portal: C.Portal,
1775
+ Positioner: qe,
1776
+ Popup: tr,
1777
+ Title: er,
1778
+ Description: rr,
1779
+ Close: C.Close,
1780
+ Arrow: C.Arrow
1781
+ }, or = {
1782
+ neutral: "border-white/8 bg-gryt-surface",
1783
+ info: "border-gryt-secondary/30 bg-gryt-secondary/8",
1784
+ success: "border-gryt-success/30 bg-gryt-success/8",
1785
+ warning: "border-gryt-warning/30 bg-gryt-warning/8",
1786
+ danger: "border-gryt-danger/30 bg-gryt-danger/8"
1787
+ }, ar = i(
1788
+ function({ className: e, ...r }, t) {
1789
+ return /* @__PURE__ */ a(
1790
+ R.Viewport,
1545
1791
  {
1546
- ref: r,
1547
- className: n(
1792
+ ref: t,
1793
+ className: s(
1548
1794
  "gryt-toast-viewport fixed right-4 bottom-4 z-50 flex w-[min(22rem,calc(100vw-2rem))]",
1549
1795
  "flex-col gap-2 outline-none",
1550
- t
1796
+ e
1551
1797
  ),
1552
- ...e
1798
+ ...r
1553
1799
  }
1554
1800
  );
1555
1801
  }
1556
- ), Le = s(function({ className: t, ...e }, r) {
1557
- return /* @__PURE__ */ o(
1558
- k.Root,
1802
+ ), nr = i(function({ className: e, severity: r = "neutral", ...t }, n) {
1803
+ return /* @__PURE__ */ a(
1804
+ R.Root,
1559
1805
  {
1560
- ref: r,
1561
- className: n(
1806
+ ref: n,
1807
+ className: s(
1562
1808
  "gryt-toast relative flex flex-col p-3 pr-9",
1563
- S,
1809
+ // Not popupSurface. That border is --gryt-border, a solid slate line
1810
+ // that is right for a menu anchored to the thing that opened it and too
1811
+ // heavy for a card floating in the corner with nothing behind it. A
1812
+ // white hairline separates it from the page without drawing a box
1813
+ // around it.
1814
+ "rounded-(--gryt-radius-xl) border text-gryt-text",
1815
+ or[r],
1564
1816
  // Swiping is a pointer gesture, so the toast follows the finger
1565
1817
  // through Base UI's swipe variables before it animates out.
1566
1818
  "transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
1567
1819
  "data-starting-style:translate-y-2 data-starting-style:opacity-0",
1568
1820
  "data-ending-style:translate-y-2 data-ending-style:opacity-0",
1569
1821
  "motion-reduce:transition-none",
1570
- t
1822
+ e
1571
1823
  ),
1572
- ...e
1824
+ ...t
1573
1825
  }
1574
1826
  );
1575
- }), je = s(function({ className: t, ...e }, r) {
1576
- return /* @__PURE__ */ o(
1577
- k.Title,
1827
+ }), sr = i(function({ className: e, ...r }, t) {
1828
+ return /* @__PURE__ */ a(
1829
+ R.Title,
1578
1830
  {
1579
- ref: r,
1580
- className: n(
1831
+ ref: t,
1832
+ className: s(
1581
1833
  "gryt-toast-title text-sm font-semibold text-gryt-text",
1582
- t
1834
+ e
1583
1835
  ),
1584
- ...e
1836
+ ...r
1585
1837
  }
1586
1838
  );
1587
- }), Ge = s(function({ className: t, ...e }, r) {
1588
- return /* @__PURE__ */ o(
1589
- k.Description,
1839
+ }), ir = i(function({ className: e, ...r }, t) {
1840
+ return /* @__PURE__ */ a(
1841
+ R.Description,
1590
1842
  {
1591
- ref: r,
1592
- className: n(
1843
+ ref: t,
1844
+ className: s(
1593
1845
  "gryt-toast-description mt-0.5 text-sm leading-6 text-gryt-muted",
1594
- t
1846
+ e
1595
1847
  ),
1596
- ...e
1848
+ ...r
1597
1849
  }
1598
1850
  );
1599
- }), Be = s(function({ className: t, children: e, ...r }, i) {
1600
- return /* @__PURE__ */ o(
1601
- k.Close,
1851
+ }), cr = i(function({ className: e, children: r, ...t }, n) {
1852
+ return /* @__PURE__ */ a(
1853
+ R.Close,
1602
1854
  {
1603
- ref: i,
1855
+ ref: n,
1604
1856
  "aria-label": "Close",
1605
- className: n(
1857
+ className: s(
1606
1858
  "gryt-toast-close absolute top-2.5 right-2.5 inline-flex h-6 w-6 items-center justify-center",
1607
1859
  "rounded-(--gryt-radius-full) border-0 bg-transparent text-gryt-muted",
1608
1860
  "transition-colors hover:bg-white/8 hover:text-gryt-text motion-reduce:transition-none",
1609
1861
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
1610
- t
1862
+ e
1611
1863
  ),
1612
- ...r,
1613
- children: e ?? /* @__PURE__ */ o(ct, { size: 14, weight: "bold" })
1864
+ ...t,
1865
+ children: r ?? /* @__PURE__ */ a(xt, { size: 14, weight: "bold" })
1614
1866
  }
1615
1867
  );
1616
- }), ze = s(function({ className: t, ...e }, r) {
1617
- return /* @__PURE__ */ o(
1618
- k.Action,
1868
+ }), lr = i(function({ className: e, ...r }, t) {
1869
+ return /* @__PURE__ */ a(
1870
+ R.Action,
1619
1871
  {
1620
- ref: r,
1621
- className: n(
1872
+ ref: t,
1873
+ className: s(
1622
1874
  "gryt-toast-action mt-2 self-start rounded-(--gryt-radius-full) border-0",
1623
1875
  "bg-gryt-accent px-3 py-1.5 text-sm font-medium text-gryt-on-accent",
1624
1876
  "transition-[scale] duration-(--gryt-dur-spring) ease-spring",
1625
1877
  "motion-safe:hover:scale-[1.04] motion-safe:active:scale-[0.96]",
1626
1878
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
1627
- t
1879
+ e
1628
1880
  ),
1629
- ...e
1881
+ ...r
1630
1882
  }
1631
1883
  );
1632
- }), zo = {
1633
- Provider: k.Provider,
1634
- Portal: k.Portal,
1635
- Viewport: Me,
1636
- Root: Le,
1637
- Title: je,
1638
- Description: Ge,
1639
- Close: Be,
1640
- Action: ze
1641
- }, Fo = k.useToastManager, Fe = s(
1642
- function({ className: t, ...e }, r) {
1643
- return /* @__PURE__ */ o(
1644
- j.Root,
1884
+ }), ga = {
1885
+ Provider: R.Provider,
1886
+ Portal: R.Portal,
1887
+ Viewport: ar,
1888
+ Root: nr,
1889
+ Title: sr,
1890
+ Description: ir,
1891
+ Close: cr,
1892
+ Action: lr
1893
+ }, ua = R.useToastManager, dr = i(
1894
+ function({ className: e, ...r }, t) {
1895
+ return /* @__PURE__ */ a(
1896
+ E.Root,
1645
1897
  {
1646
- ref: r,
1647
- className: n("gryt-scroll-area relative", t),
1648
- ...e
1898
+ ref: t,
1899
+ className: s("gryt-scroll-area relative", e),
1900
+ ...r
1649
1901
  }
1650
1902
  );
1651
1903
  }
1652
- ), Ve = s(
1653
- function({ className: t, ...e }, r) {
1654
- return /* @__PURE__ */ o(
1655
- j.Viewport,
1904
+ ), gr = i(
1905
+ function({ className: e, ...r }, t) {
1906
+ return /* @__PURE__ */ a(
1907
+ E.Viewport,
1656
1908
  {
1657
- ref: r,
1658
- className: n(
1909
+ ref: t,
1910
+ className: s(
1659
1911
  "gryt-scroll-area-viewport h-full w-full overscroll-contain",
1660
1912
  "focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-gryt-accent-light",
1661
- t
1913
+ e
1662
1914
  ),
1663
- ...e
1915
+ ...r
1664
1916
  }
1665
1917
  );
1666
1918
  }
1667
- ), Ee = s(
1668
- function({ className: t, orientation: e, ...r }, i) {
1669
- return /* @__PURE__ */ o(
1670
- j.Scrollbar,
1919
+ ), ur = i(
1920
+ function({ className: e, orientation: r, ...t }, n) {
1921
+ return /* @__PURE__ */ a(
1922
+ E.Scrollbar,
1671
1923
  {
1672
- ref: i,
1673
- orientation: e,
1674
- className: n(
1924
+ ref: n,
1925
+ orientation: r,
1926
+ className: s(
1675
1927
  "gryt-scroll-area-scrollbar flex touch-none p-0.5 select-none",
1676
1928
  // Fades in on hover or while scrolling rather than sitting there
1677
1929
  // permanently — a chat sidebar is mostly not being scrolled.
1678
1930
  "opacity-0 transition-opacity duration-(--gryt-dur-fast)",
1679
1931
  "data-hovering:opacity-100 data-scrolling:opacity-100",
1680
1932
  "motion-reduce:transition-none",
1681
- e === "horizontal" ? "h-2 flex-col" : "w-2",
1682
- t
1933
+ r === "horizontal" ? "h-2 flex-col" : "w-2",
1934
+ e
1683
1935
  ),
1684
- ...r,
1685
- children: /* @__PURE__ */ o(j.Thumb, { className: "flex-1 rounded-(--gryt-radius-full) bg-gryt-border transition-colors hover:bg-gryt-muted motion-reduce:transition-none" })
1936
+ ...t,
1937
+ children: /* @__PURE__ */ a(E.Thumb, { className: "flex-1 rounded-(--gryt-radius-full) bg-gryt-border transition-colors hover:bg-gryt-muted motion-reduce:transition-none" })
1686
1938
  }
1687
1939
  );
1688
1940
  }
1689
- ), Vo = {
1690
- Root: Fe,
1691
- Viewport: Ve,
1692
- Scrollbar: Ee,
1693
- Content: j.Content,
1694
- Corner: j.Corner
1695
- }, _e = {
1941
+ ), ya = {
1942
+ Root: dr,
1943
+ Viewport: gr,
1944
+ Scrollbar: ur,
1945
+ Content: E.Content,
1946
+ Corner: E.Corner
1947
+ }, yr = {
1696
1948
  primary: [
1697
1949
  "text-gryt-muted hover:not-data-disabled:bg-white/8",
1698
1950
  "data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
@@ -1713,18 +1965,18 @@ const Mo = {
1713
1965
  "data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
1714
1966
  "data-pressed:hover:not-data-disabled:bg-gryt-danger"
1715
1967
  ].join(" ")
1716
- }, He = {
1968
+ }, mr = {
1717
1969
  xsmall: "h-8 min-w-8 px-2 text-xs",
1718
1970
  small: "h-9 min-w-9 px-2.5 text-sm",
1719
1971
  medium: "h-10 min-w-10 px-3 text-sm",
1720
1972
  large: "h-12 min-w-12 px-4 text-base"
1721
- }, Eo = s(
1722
- function({ className: t, size: e = "medium", tone: r = "primary", ...i }, c) {
1723
- return /* @__PURE__ */ o(
1724
- It,
1973
+ }, ma = i(
1974
+ function({ className: e, size: r = "medium", tone: t = "primary", ...n }, c) {
1975
+ return /* @__PURE__ */ a(
1976
+ Xt,
1725
1977
  {
1726
1978
  ref: c,
1727
- className: n(
1979
+ className: s(
1728
1980
  "gryt-toggle",
1729
1981
  "inline-flex shrink-0 items-center justify-center gap-2 border-0 bg-transparent",
1730
1982
  "rounded-(--gryt-radius-full) font-medium select-none",
@@ -1732,62 +1984,63 @@ const Mo = {
1732
1984
  "transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring",
1733
1985
  "motion-safe:hover:not-data-disabled:scale-[1.06]",
1734
1986
  "motion-safe:active:not-data-disabled:scale-[0.94]",
1735
- b,
1736
- G,
1737
- He[e],
1738
- _e[r],
1739
- t
1987
+ x,
1988
+ V,
1989
+ mr[r],
1990
+ yr[t],
1991
+ e
1740
1992
  ),
1741
- ...i
1993
+ ...n
1742
1994
  }
1743
1995
  );
1744
1996
  }
1745
- ), _o = s(
1746
- function({ className: t, ...e }, r) {
1747
- return /* @__PURE__ */ o(
1748
- Dt,
1997
+ ), pa = i(
1998
+ function({ className: e, ...r }, t) {
1999
+ return /* @__PURE__ */ a(
2000
+ Yt,
1749
2001
  {
1750
- ref: r,
1751
- className: n(
2002
+ ref: t,
2003
+ className: s(
1752
2004
  "gryt-toggle-group inline-flex items-center gap-1",
1753
2005
  "rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",
1754
- t
2006
+ e
1755
2007
  ),
1756
- ...e
2008
+ ...r
1757
2009
  }
1758
2010
  );
1759
2011
  }
1760
- ), Xe = {
2012
+ ), pr = {
1761
2013
  primary: "bg-gryt-accent",
1762
2014
  success: "bg-gryt-success",
1763
2015
  warning: "bg-gryt-warning",
1764
2016
  danger: "bg-gryt-danger"
1765
2017
  };
1766
- function Ho({
1767
- className: a,
1768
- value: t,
1769
- label: e,
1770
- showValue: r = !1,
1771
- tone: i = "primary",
2018
+ function fa({
2019
+ className: o,
2020
+ value: e,
2021
+ label: r,
2022
+ showValue: t = !1,
2023
+ tone: n = "primary",
1772
2024
  ...c
1773
2025
  }) {
1774
- return /* @__PURE__ */ d(
1775
- z.Root,
2026
+ return /* @__PURE__ */ p(
2027
+ H.Root,
1776
2028
  {
1777
- value: t,
1778
- className: n("gryt-meter flex w-full flex-col gap-1.5", a),
2029
+ value: e,
2030
+ className: s("gryt-meter flex w-full flex-col gap-1.5", o),
1779
2031
  ...c,
1780
2032
  children: [
1781
- (e || r) && /* @__PURE__ */ d("div", { className: "flex items-baseline justify-between gap-2", children: [
1782
- e ? /* @__PURE__ */ o(z.Label, { className: "text-sm text-gryt-muted", children: e }) : /* @__PURE__ */ o("span", {}),
1783
- r && /* @__PURE__ */ o(z.Value, { className: "font-mono text-xs text-gryt-muted tabular-nums" })
2033
+ (r || t) && /* @__PURE__ */ p("div", { className: "flex items-baseline justify-between gap-2", children: [
2034
+ r ? /* @__PURE__ */ a(H.Label, { className: "text-sm text-gryt-muted", children: r }) : /* @__PURE__ */ a("span", {}),
2035
+ t && /* @__PURE__ */ a(H.Value, { className: "font-mono text-xs text-gryt-muted tabular-nums" })
1784
2036
  ] }),
1785
- /* @__PURE__ */ o(z.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(
1786
- z.Indicator,
2037
+ /* @__PURE__ */ a(H.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ a(
2038
+ H.Indicator,
1787
2039
  {
1788
- className: n(
2040
+ className: s(
1789
2041
  "h-full rounded-(--gryt-radius-full)",
1790
- Xe[i]
2042
+ "transition-[width] duration-120 ease-out motion-reduce:transition-none",
2043
+ pr[n]
1791
2044
  )
1792
2045
  }
1793
2046
  ) })
@@ -1795,13 +2048,13 @@ function Ho({
1795
2048
  }
1796
2049
  );
1797
2050
  }
1798
- const Oe = s(
1799
- function({ className: t, ...e }, r) {
1800
- return /* @__PURE__ */ o(
1801
- C.Popup,
2051
+ const fr = i(
2052
+ function({ className: e, ...r }, t) {
2053
+ return /* @__PURE__ */ a(
2054
+ M.Popup,
1802
2055
  {
1803
- ref: r,
1804
- className: n(
2056
+ ref: t,
2057
+ className: s(
1805
2058
  "gryt-alert-dialog fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
1806
2059
  "flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
1807
2060
  "rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
@@ -1809,61 +2062,61 @@ const Oe = s(
1809
2062
  "transition-[opacity,scale] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
1810
2063
  "data-starting-style:scale-[0.98] data-starting-style:opacity-0",
1811
2064
  "data-ending-style:scale-[0.98] data-ending-style:opacity-0",
1812
- t
2065
+ e
1813
2066
  ),
1814
- ...e
2067
+ ...r
1815
2068
  }
1816
2069
  );
1817
2070
  }
1818
- ), Ye = s(function({ className: t, ...e }, r) {
1819
- return /* @__PURE__ */ o(
1820
- C.Backdrop,
2071
+ ), br = i(function({ className: e, ...r }, t) {
2072
+ return /* @__PURE__ */ a(
2073
+ M.Backdrop,
1821
2074
  {
1822
- ref: r,
1823
- className: n(
2075
+ ref: t,
2076
+ className: s(
1824
2077
  "gryt-alert-dialog-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60",
1825
2078
  "backdrop-blur-(--gryt-backdrop-blur)",
1826
2079
  "transition-opacity duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
1827
2080
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
1828
- t
2081
+ e
1829
2082
  ),
1830
- ...e
2083
+ ...r
1831
2084
  }
1832
2085
  );
1833
- }), Ue = s(function({ className: t, ...e }, r) {
1834
- return /* @__PURE__ */ o(
1835
- C.Title,
2086
+ }), hr = i(function({ className: e, ...r }, t) {
2087
+ return /* @__PURE__ */ a(
2088
+ M.Title,
1836
2089
  {
1837
- ref: r,
1838
- className: n(
2090
+ ref: t,
2091
+ className: s(
1839
2092
  "gryt-alert-dialog-title text-lg font-semibold text-gryt-text",
1840
- t
2093
+ e
1841
2094
  ),
1842
- ...e
2095
+ ...r
1843
2096
  }
1844
2097
  );
1845
- }), We = s(function({ className: t, ...e }, r) {
1846
- return /* @__PURE__ */ o(
1847
- C.Description,
2098
+ }), xr = i(function({ className: e, ...r }, t) {
2099
+ return /* @__PURE__ */ a(
2100
+ M.Description,
1848
2101
  {
1849
- ref: r,
1850
- className: n(
2102
+ ref: t,
2103
+ className: s(
1851
2104
  "gryt-alert-dialog-description text-sm leading-6 text-gryt-muted",
1852
- t
2105
+ e
1853
2106
  ),
1854
- ...e
2107
+ ...r
1855
2108
  }
1856
2109
  );
1857
- }), Xo = {
1858
- Root: C.Root,
1859
- Trigger: C.Trigger,
1860
- Portal: C.Portal,
1861
- Backdrop: Ye,
1862
- Popup: Oe,
1863
- Title: Ue,
1864
- Description: We,
1865
- Close: C.Close
1866
- }, yt = [
2110
+ }), ba = {
2111
+ Root: M.Root,
2112
+ Trigger: M.Trigger,
2113
+ Portal: M.Portal,
2114
+ Backdrop: br,
2115
+ Popup: fr,
2116
+ Title: hr,
2117
+ Description: xr,
2118
+ Close: M.Close
2119
+ }, Rt = [
1867
2120
  "flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
1868
2121
  "px-3 py-2 text-sm text-gryt-text outline-none select-none",
1869
2122
  // Base UI drives keyboard and pointer highlight through one attribute, so
@@ -1871,377 +2124,378 @@ const Oe = s(
1871
2124
  "data-highlighted:bg-gryt-surface-raised",
1872
2125
  "data-selected:text-gryt-accent",
1873
2126
  "data-disabled:cursor-not-allowed data-disabled:opacity-50"
1874
- ].join(" "), mt = [
1875
- "w-full rounded-(--gryt-radius-input) border border-gryt-border bg-gryt-surface-raised",
1876
- "px-3 py-2 text-sm text-gryt-text outline-none placeholder:text-gryt-muted",
1877
- b
1878
- ].join(" "), Qe = s(function({ className: t, ...e }, r) {
1879
- return /* @__PURE__ */ o(
1880
- g.Input,
2127
+ ].join(" "), It = [
2128
+ kt,
2129
+ $t.medium,
2130
+ "border-gryt-border",
2131
+ x
2132
+ ].join(" "), wr = i(function({ className: e, ...r }, t) {
2133
+ return /* @__PURE__ */ a(
2134
+ b.Input,
1881
2135
  {
1882
- ref: r,
1883
- className: n("gryt-combobox-input", mt, t),
1884
- ...e
2136
+ ref: t,
2137
+ className: s("gryt-combobox-input", It, e),
2138
+ ...r
1885
2139
  }
1886
2140
  );
1887
- }), Je = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
1888
- return /* @__PURE__ */ o(
1889
- g.Positioner,
2141
+ }), vr = i(function({ className: e, sideOffset: r = 6, ...t }, n) {
2142
+ return /* @__PURE__ */ a(
2143
+ b.Positioner,
1890
2144
  {
1891
- ref: i,
1892
- sideOffset: e,
1893
- className: n("gryt-combobox-positioner outline-none", t),
1894
- ...r
2145
+ ref: n,
2146
+ sideOffset: r,
2147
+ className: s("gryt-combobox-positioner outline-none", e),
2148
+ ...t
1895
2149
  }
1896
2150
  );
1897
- }), Ke = s(
1898
- function({ className: t, ...e }, r) {
1899
- return /* @__PURE__ */ o(
1900
- g.Popup,
2151
+ }), Nr = i(
2152
+ function({ className: e, ...r }, t) {
2153
+ return /* @__PURE__ */ a(
2154
+ b.Popup,
1901
2155
  {
1902
- ref: r,
1903
- className: n(
2156
+ ref: t,
2157
+ className: s(
1904
2158
  "gryt-combobox max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
1905
- S,
1906
- R,
1907
- t
2159
+ B,
2160
+ A,
2161
+ e
1908
2162
  ),
1909
- ...e
2163
+ ...r
1910
2164
  }
1911
2165
  );
1912
2166
  }
1913
- ), Ze = s(function({ className: t, ...e }, r) {
1914
- return /* @__PURE__ */ o(
1915
- g.Item,
2167
+ ), Pr = i(function({ className: e, ...r }, t) {
2168
+ return /* @__PURE__ */ a(
2169
+ b.Item,
1916
2170
  {
1917
- ref: r,
1918
- className: n("gryt-combobox-item", yt, t),
1919
- ...e
2171
+ ref: t,
2172
+ className: s("gryt-combobox-item", Rt, e),
2173
+ ...r
1920
2174
  }
1921
2175
  );
1922
- }), qe = s(function({ className: t, ...e }, r) {
1923
- return /* @__PURE__ */ o(
1924
- g.Empty,
2176
+ }), Tr = i(function({ className: e, ...r }, t) {
2177
+ return /* @__PURE__ */ a(
2178
+ b.Empty,
1925
2179
  {
1926
- ref: r,
1927
- className: n(
2180
+ ref: t,
2181
+ className: s(
1928
2182
  "gryt-combobox-empty px-3 py-2 text-sm text-gryt-muted",
1929
- t
2183
+ e
1930
2184
  ),
1931
- ...e
2185
+ ...r
1932
2186
  }
1933
2187
  );
1934
- }), Oo = {
1935
- Root: g.Root,
1936
- Input: Qe,
1937
- InputGroup: g.InputGroup,
1938
- Trigger: g.Trigger,
1939
- Icon: g.Icon,
1940
- Clear: g.Clear,
1941
- Value: g.Value,
1942
- Chips: g.Chips,
1943
- Chip: g.Chip,
1944
- ChipRemove: g.ChipRemove,
1945
- Portal: g.Portal,
1946
- Positioner: Je,
1947
- Popup: Ke,
1948
- List: g.List,
1949
- Item: Ze,
1950
- ItemIndicator: g.ItemIndicator,
1951
- Group: g.Group,
1952
- GroupLabel: g.GroupLabel,
1953
- Empty: qe,
1954
- Separator: g.Separator
1955
- }, tr = s(function({ className: t, ...e }, r) {
1956
- return /* @__PURE__ */ o(
1957
- p.Input,
2188
+ }), ha = {
2189
+ Root: b.Root,
2190
+ Input: wr,
2191
+ InputGroup: b.InputGroup,
2192
+ Trigger: b.Trigger,
2193
+ Icon: b.Icon,
2194
+ Clear: b.Clear,
2195
+ Value: b.Value,
2196
+ Chips: b.Chips,
2197
+ Chip: b.Chip,
2198
+ ChipRemove: b.ChipRemove,
2199
+ Portal: b.Portal,
2200
+ Positioner: vr,
2201
+ Popup: Nr,
2202
+ List: b.List,
2203
+ Item: Pr,
2204
+ ItemIndicator: b.ItemIndicator,
2205
+ Group: b.Group,
2206
+ GroupLabel: b.GroupLabel,
2207
+ Empty: Tr,
2208
+ Separator: b.Separator
2209
+ }, kr = i(function({ className: e, ...r }, t) {
2210
+ return /* @__PURE__ */ a(
2211
+ h.Input,
1958
2212
  {
1959
- ref: r,
1960
- className: n("gryt-autocomplete-input", mt, t),
1961
- ...e
2213
+ ref: t,
2214
+ className: s("gryt-autocomplete-input", It, e),
2215
+ ...r
1962
2216
  }
1963
2217
  );
1964
- }), er = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
1965
- return /* @__PURE__ */ o(
1966
- p.Positioner,
2218
+ }), $r = i(function({ className: e, sideOffset: r = 6, ...t }, n) {
2219
+ return /* @__PURE__ */ a(
2220
+ h.Positioner,
1967
2221
  {
1968
- ref: i,
1969
- sideOffset: e,
1970
- className: n("gryt-autocomplete-positioner outline-none", t),
1971
- ...r
2222
+ ref: n,
2223
+ sideOffset: r,
2224
+ className: s("gryt-autocomplete-positioner outline-none", e),
2225
+ ...t
1972
2226
  }
1973
2227
  );
1974
- }), rr = s(function({ className: t, ...e }, r) {
1975
- return /* @__PURE__ */ o(
1976
- p.Popup,
2228
+ }), Cr = i(function({ className: e, ...r }, t) {
2229
+ return /* @__PURE__ */ a(
2230
+ h.Popup,
1977
2231
  {
1978
- ref: r,
1979
- className: n(
2232
+ ref: t,
2233
+ className: s(
1980
2234
  "gryt-autocomplete max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
1981
- S,
1982
- R,
1983
- t
2235
+ B,
2236
+ A,
2237
+ e
1984
2238
  ),
1985
- ...e
2239
+ ...r
1986
2240
  }
1987
2241
  );
1988
- }), or = s(function({ className: t, ...e }, r) {
1989
- return /* @__PURE__ */ o(
1990
- p.Item,
2242
+ }), Sr = i(function({ className: e, ...r }, t) {
2243
+ return /* @__PURE__ */ a(
2244
+ h.Item,
1991
2245
  {
1992
- ref: r,
1993
- className: n("gryt-autocomplete-item", yt, t),
1994
- ...e
2246
+ ref: t,
2247
+ className: s("gryt-autocomplete-item", Rt, e),
2248
+ ...r
1995
2249
  }
1996
2250
  );
1997
- }), ar = s(function({ className: t, ...e }, r) {
1998
- return /* @__PURE__ */ o(
1999
- p.Empty,
2251
+ }), Rr = i(function({ className: e, ...r }, t) {
2252
+ return /* @__PURE__ */ a(
2253
+ h.Empty,
2000
2254
  {
2001
- ref: r,
2002
- className: n(
2255
+ ref: t,
2256
+ className: s(
2003
2257
  "gryt-autocomplete-empty px-3 py-2 text-sm text-gryt-muted",
2004
- t
2258
+ e
2005
2259
  ),
2006
- ...e
2260
+ ...r
2007
2261
  }
2008
2262
  );
2009
- }), Yo = {
2010
- Root: p.Root,
2011
- Input: tr,
2012
- InputGroup: p.InputGroup,
2013
- Trigger: p.Trigger,
2014
- Icon: p.Icon,
2015
- Clear: p.Clear,
2016
- Value: p.Value,
2017
- Portal: p.Portal,
2018
- Positioner: er,
2019
- Popup: rr,
2020
- List: p.List,
2021
- Item: or,
2022
- Group: p.Group,
2023
- GroupLabel: p.GroupLabel,
2024
- Empty: ar,
2025
- Separator: p.Separator
2026
- }, Uo = s(
2027
- function({ className: t, ...e }, r) {
2028
- return /* @__PURE__ */ o(
2029
- At,
2263
+ }), xa = {
2264
+ Root: h.Root,
2265
+ Input: kr,
2266
+ InputGroup: h.InputGroup,
2267
+ Trigger: h.Trigger,
2268
+ Icon: h.Icon,
2269
+ Clear: h.Clear,
2270
+ Value: h.Value,
2271
+ Portal: h.Portal,
2272
+ Positioner: $r,
2273
+ Popup: Cr,
2274
+ List: h.List,
2275
+ Item: Sr,
2276
+ Group: h.Group,
2277
+ GroupLabel: h.GroupLabel,
2278
+ Empty: Rr,
2279
+ Separator: h.Separator
2280
+ }, wa = i(
2281
+ function({ className: e, ...r }, t) {
2282
+ return /* @__PURE__ */ a(
2283
+ Wt,
2030
2284
  {
2031
- ref: r,
2032
- className: n("gryt-checkbox-group flex flex-col gap-2", t),
2033
- ...e
2285
+ ref: t,
2286
+ className: s("gryt-checkbox-group flex flex-col gap-2", e),
2287
+ ...r
2034
2288
  }
2035
2289
  );
2036
2290
  }
2037
- ), nr = s(
2038
- function({ className: t, ...e }, r) {
2039
- return /* @__PURE__ */ o(
2040
- Q.Trigger,
2291
+ ), Ir = i(
2292
+ function({ className: e, ...r }, t) {
2293
+ return /* @__PURE__ */ a(
2294
+ st.Trigger,
2041
2295
  {
2042
- ref: r,
2043
- className: n(
2296
+ ref: t,
2297
+ className: s(
2044
2298
  "gryt-collapsible-trigger flex w-full items-center justify-between gap-2",
2045
2299
  "rounded-(--gryt-radius-md) border-0 bg-transparent px-2 py-2 text-left",
2046
2300
  "text-sm font-medium text-gryt-text select-none",
2047
2301
  "transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
2048
- b,
2049
- t
2302
+ x,
2303
+ e
2050
2304
  ),
2051
- ...e
2305
+ ...r
2052
2306
  }
2053
2307
  );
2054
2308
  }
2055
- ), ir = s(
2056
- function({ className: t, ...e }, r) {
2057
- return /* @__PURE__ */ o(
2058
- Q.Panel,
2309
+ ), Lr = i(
2310
+ function({ className: e, ...r }, t) {
2311
+ return /* @__PURE__ */ a(
2312
+ st.Panel,
2059
2313
  {
2060
- ref: r,
2061
- className: n(
2314
+ ref: t,
2315
+ className: s(
2062
2316
  "gryt-collapsible-panel overflow-hidden",
2063
2317
  // Base UI measures the panel and exposes the height as a variable, so
2064
2318
  // this animates to the content's real height rather than to a guess.
2065
2319
  "h-(--collapsible-panel-height) transition-[height] duration-(--gryt-dur-spring) ease-spring",
2066
2320
  "data-starting-style:h-0 data-ending-style:h-0",
2067
2321
  "motion-reduce:transition-none",
2068
- t
2322
+ e
2069
2323
  ),
2070
- ...e
2324
+ ...r
2071
2325
  }
2072
2326
  );
2073
2327
  }
2074
- ), Wo = {
2075
- Root: Q.Root,
2076
- Trigger: nr,
2077
- Panel: ir
2078
- }, Qo = s(function({ className: t, ...e }, r) {
2079
- return /* @__PURE__ */ o(
2080
- Mt,
2328
+ ), va = {
2329
+ Root: st.Root,
2330
+ Trigger: Ir,
2331
+ Panel: Lr
2332
+ }, Na = i(function({ className: e, ...r }, t) {
2333
+ return /* @__PURE__ */ a(
2334
+ Qt,
2081
2335
  {
2082
- ref: r,
2083
- className: n("gryt-form flex flex-col gap-(--gryt-space-lg)", t),
2084
- ...e
2336
+ ref: t,
2337
+ className: s("gryt-form flex flex-col gap-(--gryt-space-lg)", e),
2338
+ ...r
2085
2339
  }
2086
2340
  );
2087
- }), sr = s(
2088
- function({ className: t, ...e }, r) {
2089
- return /* @__PURE__ */ o(
2090
- dt.Root,
2341
+ }), Mr = i(
2342
+ function({ className: e, ...r }, t) {
2343
+ return /* @__PURE__ */ a(
2344
+ vt.Root,
2091
2345
  {
2092
- ref: r,
2093
- className: n(
2346
+ ref: t,
2347
+ className: s(
2094
2348
  "gryt-fieldset flex min-w-0 flex-col gap-3 border-0 p-0",
2095
- t
2349
+ e
2096
2350
  ),
2097
- ...e
2351
+ ...r
2098
2352
  }
2099
2353
  );
2100
2354
  }
2101
- ), cr = s(function({ className: t, ...e }, r) {
2102
- return /* @__PURE__ */ o(
2103
- dt.Legend,
2355
+ ), Ar = i(function({ className: e, ...r }, t) {
2356
+ return /* @__PURE__ */ a(
2357
+ vt.Legend,
2104
2358
  {
2105
- ref: r,
2106
- className: n(
2359
+ ref: t,
2360
+ className: s(
2107
2361
  "gryt-fieldset-legend text-sm font-semibold text-gryt-text",
2108
- t
2362
+ e
2109
2363
  ),
2110
- ...e
2364
+ ...r
2111
2365
  }
2112
2366
  );
2113
- }), Jo = { Root: sr, Legend: cr }, Ko = s(
2114
- function({ className: t, ...e }, r) {
2115
- return /* @__PURE__ */ o(
2116
- Lt,
2367
+ }), Pa = { Root: Mr, Legend: Ar }, Ta = i(
2368
+ function({ className: e, ...r }, t) {
2369
+ return /* @__PURE__ */ a(
2370
+ Jt,
2117
2371
  {
2118
- ref: r,
2119
- className: n(
2372
+ ref: t,
2373
+ className: s(
2120
2374
  "gryt-menubar flex items-center gap-1",
2121
2375
  "rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface p-1",
2122
- t
2376
+ e
2123
2377
  ),
2124
- ...e
2378
+ ...r
2125
2379
  }
2126
2380
  );
2127
2381
  }
2128
- ), lr = s(function({ className: t, ...e }, r) {
2129
- return /* @__PURE__ */ o(
2130
- h.Trigger,
2382
+ ), Dr = i(function({ className: e, ...r }, t) {
2383
+ return /* @__PURE__ */ a(
2384
+ N.Trigger,
2131
2385
  {
2132
- ref: r,
2133
- className: n(
2386
+ ref: t,
2387
+ className: s(
2134
2388
  "gryt-navigation-menu-trigger flex items-center gap-1.5 rounded-(--gryt-radius-md)",
2135
2389
  "border-0 bg-transparent px-3 py-2 text-sm font-medium text-gryt-text select-none",
2136
2390
  "transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
2137
2391
  "data-popup-open:bg-gryt-surface-raised",
2138
- b,
2139
- t
2392
+ x,
2393
+ e
2140
2394
  ),
2141
- ...e
2395
+ ...r
2142
2396
  }
2143
2397
  );
2144
- }), dr = s(function({ className: t, ...e }, r) {
2145
- return /* @__PURE__ */ o(
2146
- h.Popup,
2398
+ }), jr = i(function({ className: e, ...r }, t) {
2399
+ return /* @__PURE__ */ a(
2400
+ N.Popup,
2147
2401
  {
2148
- ref: r,
2149
- className: n(
2402
+ ref: t,
2403
+ className: s(
2150
2404
  "gryt-navigation-menu-popup outline-none",
2151
- S,
2152
- R,
2153
- t
2405
+ B,
2406
+ A,
2407
+ e
2154
2408
  ),
2155
- ...e
2409
+ ...r
2156
2410
  }
2157
2411
  );
2158
- }), gr = s(function({ className: t, ...e }, r) {
2159
- return /* @__PURE__ */ o(
2160
- h.Viewport,
2412
+ }), Gr = i(function({ className: e, ...r }, t) {
2413
+ return /* @__PURE__ */ a(
2414
+ N.Viewport,
2161
2415
  {
2162
- ref: r,
2163
- className: n(
2416
+ ref: t,
2417
+ className: s(
2164
2418
  "gryt-navigation-menu-viewport relative overflow-hidden",
2165
- t
2419
+ e
2166
2420
  ),
2167
- ...e
2421
+ ...r
2168
2422
  }
2169
2423
  );
2170
- }), ur = s(function({ className: t, ...e }, r) {
2171
- return /* @__PURE__ */ o(
2172
- h.Link,
2424
+ }), Br = i(function({ className: e, ...r }, t) {
2425
+ return /* @__PURE__ */ a(
2426
+ N.Link,
2173
2427
  {
2174
- ref: r,
2175
- className: n(
2428
+ ref: t,
2429
+ className: s(
2176
2430
  "gryt-navigation-menu-link block rounded-(--gryt-radius-md) px-3 py-2",
2177
2431
  "text-sm text-gryt-text no-underline outline-none",
2178
2432
  "transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
2179
- b,
2180
- t
2433
+ x,
2434
+ e
2181
2435
  ),
2182
- ...e
2436
+ ...r
2183
2437
  }
2184
2438
  );
2185
- }), Zo = {
2186
- Root: h.Root,
2187
- List: h.List,
2188
- Item: h.Item,
2189
- Trigger: lr,
2190
- Content: h.Content,
2191
- Portal: h.Portal,
2192
- Positioner: h.Positioner,
2193
- Viewport: gr,
2194
- Popup: dr,
2195
- Link: ur,
2196
- Icon: h.Icon,
2197
- Arrow: h.Arrow
2198
- }, nt = "flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50", qo = s(
2199
- function({ className: t, label: e, scrubbable: r = !1, ...i }, c) {
2200
- return /* @__PURE__ */ d(
2201
- I.Root,
2439
+ }), ka = {
2440
+ Root: N.Root,
2441
+ List: N.List,
2442
+ Item: N.Item,
2443
+ Trigger: Dr,
2444
+ Content: N.Content,
2445
+ Portal: N.Portal,
2446
+ Positioner: N.Positioner,
2447
+ Viewport: Gr,
2448
+ Popup: jr,
2449
+ Link: Br,
2450
+ Icon: N.Icon,
2451
+ Arrow: N.Arrow
2452
+ }, ft = "flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50", $a = i(
2453
+ function({ className: e, label: r, scrubbable: t = !1, ...n }, c) {
2454
+ return /* @__PURE__ */ p(
2455
+ D.Root,
2202
2456
  {
2203
2457
  ref: c,
2204
- className: n("gryt-number-field flex flex-col gap-1.5", t),
2205
- ...i,
2458
+ className: s("gryt-number-field flex flex-col gap-1.5", e),
2459
+ ...n,
2206
2460
  children: [
2207
- e && (r ? /* @__PURE__ */ d(I.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
2208
- e,
2209
- /* @__PURE__ */ o(I.ScrubAreaCursor, {})
2210
- ] }) : /* @__PURE__ */ o("span", { className: "text-sm text-gryt-muted", children: e })),
2211
- /* @__PURE__ */ d(
2212
- I.Group,
2461
+ r && (t ? /* @__PURE__ */ p(D.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
2462
+ r,
2463
+ /* @__PURE__ */ a(D.ScrubAreaCursor, {})
2464
+ ] }) : /* @__PURE__ */ a("span", { className: "text-sm text-gryt-muted", children: r })),
2465
+ /* @__PURE__ */ p(
2466
+ D.Group,
2213
2467
  {
2214
- className: n(
2468
+ className: s(
2215
2469
  "flex w-fit items-center overflow-hidden rounded-(--gryt-radius-full)",
2216
2470
  "border border-gryt-border bg-gryt-surface-raised",
2217
2471
  "focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-gryt-accent-light",
2218
- G
2472
+ V
2219
2473
  ),
2220
2474
  children: [
2221
- /* @__PURE__ */ o(
2222
- I.Decrement,
2475
+ /* @__PURE__ */ a(
2476
+ D.Decrement,
2223
2477
  {
2224
2478
  "aria-label": "Decrease",
2225
- className: n(nt, "rounded-l-(--gryt-radius-full)"),
2226
- children: /* @__PURE__ */ o($t, { size: 14, weight: "bold" })
2479
+ className: s(ft, "rounded-l-(--gryt-radius-full)"),
2480
+ children: /* @__PURE__ */ a(_t, { size: 14, weight: "bold" })
2227
2481
  }
2228
2482
  ),
2229
- /* @__PURE__ */ o(
2230
- I.Input,
2483
+ /* @__PURE__ */ a(
2484
+ D.Input,
2231
2485
  {
2232
- className: n(
2486
+ className: s(
2233
2487
  "w-16 border-0 bg-transparent px-1 py-2 text-center",
2234
2488
  "font-mono text-sm text-gryt-text tabular-nums outline-none",
2235
- b
2489
+ x
2236
2490
  )
2237
2491
  }
2238
2492
  ),
2239
- /* @__PURE__ */ o(
2240
- I.Increment,
2493
+ /* @__PURE__ */ a(
2494
+ D.Increment,
2241
2495
  {
2242
2496
  "aria-label": "Increase",
2243
- className: n(nt, "rounded-r-(--gryt-radius-full)"),
2244
- children: /* @__PURE__ */ o(Ct, { size: 14, weight: "bold" })
2497
+ className: s(ft, "rounded-r-(--gryt-radius-full)"),
2498
+ children: /* @__PURE__ */ a(Ht, { size: 14, weight: "bold" })
2245
2499
  }
2246
2500
  )
2247
2501
  ]
@@ -2251,25 +2505,25 @@ const Oe = s(
2251
2505
  }
2252
2506
  );
2253
2507
  }
2254
- ), ta = s(
2255
- function({ className: t, length: e = 6, ...r }, i) {
2256
- return /* @__PURE__ */ o(
2257
- rt.Root,
2508
+ ), Ca = i(
2509
+ function({ className: e, length: r = 6, ...t }, n) {
2510
+ return /* @__PURE__ */ a(
2511
+ ut.Root,
2258
2512
  {
2259
- ref: i,
2260
- length: e,
2261
- className: n("gryt-otp-field flex gap-2", t),
2262
- ...r,
2263
- children: Array.from({ length: e }, (c, l) => /* @__PURE__ */ o(
2264
- rt.Input,
2513
+ ref: n,
2514
+ length: r,
2515
+ className: s("gryt-otp-field flex gap-2", e),
2516
+ ...t,
2517
+ children: Array.from({ length: r }, (c, l) => /* @__PURE__ */ a(
2518
+ ut.Input,
2265
2519
  {
2266
- className: n(
2520
+ className: s(
2267
2521
  "gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center",
2268
2522
  "border border-gryt-border bg-gryt-surface-raised",
2269
2523
  "font-mono text-lg text-gryt-text tabular-nums outline-none",
2270
2524
  "transition-colors duration-(--gryt-dur-fast) motion-reduce:transition-none",
2271
2525
  "data-filled:border-gryt-accent",
2272
- b
2526
+ x
2273
2527
  )
2274
2528
  },
2275
2529
  l
@@ -2277,130 +2531,135 @@ const Oe = s(
2277
2531
  }
2278
2532
  );
2279
2533
  }
2280
- ), yr = s(
2281
- function({ className: t, sideOffset: e = 8, ...r }, i) {
2282
- return /* @__PURE__ */ o(
2283
- M.Positioner,
2534
+ ), zr = i(
2535
+ function({ className: e, sideOffset: r = 8, ...t }, n) {
2536
+ return /* @__PURE__ */ a(
2537
+ z.Positioner,
2284
2538
  {
2285
- ref: i,
2286
- sideOffset: e,
2287
- className: n("gryt-preview-card-positioner outline-none", t),
2288
- ...r
2539
+ ref: n,
2540
+ sideOffset: r,
2541
+ className: s("gryt-preview-card-positioner outline-none", e),
2542
+ ...t
2289
2543
  }
2290
2544
  );
2291
2545
  }
2292
- ), mr = s(
2293
- function({ className: t, ...e }, r) {
2294
- return /* @__PURE__ */ o(
2295
- M.Popup,
2546
+ ), Fr = i(
2547
+ function({ className: e, ...r }, t) {
2548
+ return /* @__PURE__ */ a(
2549
+ z.Popup,
2296
2550
  {
2297
- ref: r,
2298
- className: n(
2551
+ ref: t,
2552
+ className: s(
2299
2553
  "gryt-preview-card w-64 max-w-[calc(100vw-2rem)] p-4 outline-none",
2300
- S,
2301
- R,
2302
- t
2554
+ B,
2555
+ A,
2556
+ e
2303
2557
  ),
2304
- ...e
2558
+ ...r
2305
2559
  }
2306
2560
  );
2307
2561
  }
2308
- ), ea = {
2309
- Root: M.Root,
2310
- Trigger: M.Trigger,
2311
- Portal: M.Portal,
2312
- Positioner: yr,
2313
- Popup: mr,
2314
- Arrow: M.Arrow
2315
- }, pr = s(function({ className: t, ...e }, r) {
2316
- return /* @__PURE__ */ o(
2317
- L.Root,
2562
+ ), Sa = {
2563
+ Root: z.Root,
2564
+ Trigger: z.Trigger,
2565
+ Portal: z.Portal,
2566
+ Positioner: zr,
2567
+ Popup: Fr,
2568
+ Arrow: z.Arrow
2569
+ }, Er = i(function({ className: e, ...r }, t) {
2570
+ return /* @__PURE__ */ a(
2571
+ F.Root,
2318
2572
  {
2319
- ref: r,
2320
- className: n(
2573
+ ref: t,
2574
+ className: s(
2321
2575
  "gryt-toolbar flex items-center gap-1",
2322
2576
  "rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",
2323
- t
2577
+ e
2324
2578
  ),
2325
- ...e
2579
+ ...r
2326
2580
  }
2327
2581
  );
2328
- }), br = s(function({ className: t, ...e }, r) {
2329
- return /* @__PURE__ */ o(
2330
- L.Separator,
2582
+ }), Vr = i(function({ className: e, ...r }, t) {
2583
+ return /* @__PURE__ */ a(
2584
+ F.Separator,
2331
2585
  {
2332
- ref: r,
2333
- className: n("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border", t),
2334
- ...e
2586
+ ref: t,
2587
+ className: s("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border", e),
2588
+ ...r
2335
2589
  }
2336
2590
  );
2337
- }), ra = {
2338
- Root: pr,
2339
- Group: L.Group,
2340
- Button: L.Button,
2341
- Link: L.Link,
2342
- Input: L.Input,
2343
- Separator: br
2591
+ }), Ra = {
2592
+ Root: Er,
2593
+ Group: F.Group,
2594
+ Button: F.Button,
2595
+ Link: F.Link,
2596
+ Input: F.Input,
2597
+ Separator: Vr
2344
2598
  };
2345
2599
  export {
2346
- jo as Accordion,
2347
- So as Alert,
2348
- Xo as AlertDialog,
2349
- Yo as Autocomplete,
2350
- Wt as Avatar,
2351
- yo as Badge,
2352
- Ft as Button,
2353
- ko as Card,
2354
- Co as CardActions,
2355
- $o as CardContent,
2356
- To as CardHeader,
2357
- po as Checkbox,
2358
- Uo as CheckboxGroup,
2359
- mo as Chip,
2360
- Wo as Collapsible,
2361
- Oo as Combobox,
2362
- go as Composer,
2363
- Go as ContextMenu,
2364
- uo as ConversationItem,
2365
- Ao as Dialog,
2366
- Po as Divider,
2367
- Mo as Drawer,
2368
- Jo as Fieldset,
2369
- Qo as Form,
2370
- no as GrytProvider,
2371
- io as IconButton,
2372
- Y as Menu,
2373
- Ko as Menubar,
2374
- co as MessageBubble,
2375
- Ho as Meter,
2376
- Zo as NavigationMenu,
2377
- qo as NumberField,
2378
- ta as OtpField,
2379
- Bo as Popover,
2380
- ea as PreviewCard,
2381
- Ro as Progress,
2382
- bo as Radio,
2383
- fo as RadioGroup,
2384
- Vo as ScrollArea,
2385
- wo as Select,
2386
- Do as Skeleton,
2387
- ho as Slider,
2388
- Io as Spinner,
2389
- so as Surface,
2390
- xo as Switch,
2391
- ve as Tab,
2392
- Lo as Tabs,
2393
- lo as TextField,
2394
- zo as Toast,
2395
- Eo as Toggle,
2396
- _o as ToggleGroup,
2397
- ra as Toolbar,
2398
- vo as Tooltip,
2399
- No as TooltipProvider,
2400
- n as cn,
2401
- jt as createGrytTheme,
2402
- ot as grytTokens,
2403
- ne as useMediaQuery,
2404
- Fo as useToastManager
2600
+ ca as Accordion,
2601
+ ea as Alert,
2602
+ ba as AlertDialog,
2603
+ xa as Autocomplete,
2604
+ he as Avatar,
2605
+ Eo as Badge,
2606
+ de as Button,
2607
+ Ko as Card,
2608
+ ta as CardActions,
2609
+ qo as CardContent,
2610
+ Zo as CardHeader,
2611
+ _o as Checkbox,
2612
+ wa as CheckboxGroup,
2613
+ Vo as Chip,
2614
+ va as Collapsible,
2615
+ ha as Combobox,
2616
+ zo as Composer,
2617
+ la as ContextMenu,
2618
+ Fo as ConversationItem,
2619
+ na as Dialog,
2620
+ Jo as Divider,
2621
+ sa as Drawer,
2622
+ Pa as Fieldset,
2623
+ Na as Form,
2624
+ Ao as GrytProvider,
2625
+ Do as IconButton,
2626
+ ot as Menu,
2627
+ Ta as Menubar,
2628
+ Go as MessageBubble,
2629
+ fa as Meter,
2630
+ ka as NavigationMenu,
2631
+ $a as NumberField,
2632
+ Ca as OtpField,
2633
+ da as Popover,
2634
+ Sa as PreviewCard,
2635
+ ra as Progress,
2636
+ Ho as Radio,
2637
+ Oo as RadioGroup,
2638
+ ya as ScrollArea,
2639
+ Yo as Select,
2640
+ aa as Skeleton,
2641
+ Xo as Slider,
2642
+ oa as Spinner,
2643
+ jo as Surface,
2644
+ Uo as Switch,
2645
+ Ue as Tab,
2646
+ ia as Tabs,
2647
+ Bo as TextField,
2648
+ ga as Toast,
2649
+ ma as Toggle,
2650
+ pa as ToggleGroup,
2651
+ Ra as Toolbar,
2652
+ Wo as Tooltip,
2653
+ Qo as TooltipProvider,
2654
+ s as cn,
2655
+ se as createGrytTheme,
2656
+ Lo as grytAlphaScales,
2657
+ Mo as grytAlphaScalesLight,
2658
+ K as grytLightTokens,
2659
+ yt as grytScales,
2660
+ mt as grytScalesLight,
2661
+ y as grytTokens,
2662
+ Re as useMediaQuery,
2663
+ ua as useToastManager
2405
2664
  };
2406
2665
  //# sourceMappingURL=index.js.map