@gryt/ui 0.6.0 → 0.7.1

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