@gryt/ui 0.8.0 → 0.10.0

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