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