@gryt/ui 0.5.0 → 0.6.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,42 +1,42 @@
1
1
  import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
- import { Tooltip as D } from "@base-ui/react/tooltip";
2
+ import { Tooltip as I } from "@base-ui/react/tooltip";
3
3
  import { Button as it } from "@base-ui/react/button";
4
- import { forwardRef as s, useRef as st, useCallback as U, useLayoutEffect as pt, useState as bt, useEffect as ft, useSyncExternalStore as xt, useContext as W, createContext as ht } from "react";
5
- import { clsx as wt } from "clsx";
6
- import { twMerge as vt } from "tailwind-merge";
4
+ import { forwardRef as s, useRef as st, useCallback as U, useLayoutEffect as ft, useState as xt, useEffect as ht, useSyncExternalStore as wt, useContext as W, createContext as vt } from "react";
5
+ import { clsx as Nt } from "clsx";
6
+ import { twMerge as Pt } from "tailwind-merge";
7
7
  import { Field as E } from "@base-ui/react/field";
8
- import { PaperPlaneTilt as Nt, X as ct, Check as lt, CaretUpDown as Pt, CircleNotch as kt, CaretDown as Tt, Minus as $t, Plus as Ct } from "@phosphor-icons/react";
8
+ import { PaperPlaneTilt as kt, X as ct, Check as lt, CaretUpDown as Tt, CircleNotch as Ct, CaretDown as $t, Minus as St, Plus as Rt } from "@phosphor-icons/react";
9
9
  import { Avatar as X } from "@base-ui/react/avatar";
10
10
  import { Checkbox as q } from "@base-ui/react/checkbox";
11
11
  import { Radio as tt } from "@base-ui/react/radio";
12
- import { RadioGroup as St } from "@base-ui/react/radio-group";
12
+ import { RadioGroup as It } from "@base-ui/react/radio-group";
13
13
  import { Switch as et } from "@base-ui/react/switch";
14
14
  import { Slider as B } from "@base-ui/react/slider";
15
15
  import { Select as x } from "@base-ui/react/select";
16
- import { Separator as Rt } from "@base-ui/react/separator";
16
+ import { Separator as Dt } from "@base-ui/react/separator";
17
17
  import { Progress as O } from "@base-ui/react/progress";
18
- import { Dialog as $ } from "@base-ui/react/dialog";
18
+ import { Dialog as C } from "@base-ui/react/dialog";
19
19
  import { Drawer as v } from "@base-ui/react/drawer";
20
- import { Menu as A } from "@base-ui/react/menu";
20
+ import { Menu as D } from "@base-ui/react/menu";
21
21
  import { Tabs as V } from "@base-ui/react/tabs";
22
22
  import { Accordion as F } from "@base-ui/react/accordion";
23
23
  import { ContextMenu as T } from "@base-ui/react/context-menu";
24
24
  import { Popover as P } from "@base-ui/react/popover";
25
25
  import { Toast as k } from "@base-ui/react/toast";
26
26
  import { ScrollArea as j } from "@base-ui/react/scroll-area";
27
- import { Toggle as It } from "@base-ui/react/toggle";
28
- import { ToggleGroup as Dt } from "@base-ui/react/toggle-group";
27
+ import { Toggle as At } from "@base-ui/react/toggle";
28
+ import { ToggleGroup as Mt } from "@base-ui/react/toggle-group";
29
29
  import { Meter as z } from "@base-ui/react/meter";
30
- import { AlertDialog as C } from "@base-ui/react/alert-dialog";
30
+ import { AlertDialog as $ } from "@base-ui/react/alert-dialog";
31
31
  import { Autocomplete as p } from "@base-ui/react/autocomplete";
32
32
  import { Combobox as g } from "@base-ui/react/combobox";
33
- import { CheckboxGroup as At } from "@base-ui/react/checkbox-group";
33
+ import { CheckboxGroup as Lt } from "@base-ui/react/checkbox-group";
34
34
  import { Collapsible as Q } from "@base-ui/react/collapsible";
35
- import { Form as Mt } from "@base-ui/react/form";
35
+ import { Form as jt } from "@base-ui/react/form";
36
36
  import { Fieldset as dt } from "@base-ui/react/fieldset";
37
- import { Menubar as Lt } from "@base-ui/react/menubar";
37
+ import { Menubar as Gt } from "@base-ui/react/menubar";
38
38
  import { NavigationMenu as h } from "@base-ui/react/navigation-menu";
39
- import { NumberField as I } from "@base-ui/react/number-field";
39
+ import { NumberField as R } from "@base-ui/react/number-field";
40
40
  import { OTPField as rt } from "@base-ui/react/otp-field";
41
41
  import { PreviewCard as M } from "@base-ui/react/preview-card";
42
42
  import { Toolbar as L } from "@base-ui/react/toolbar";
@@ -69,7 +69,7 @@ const ot = {
69
69
  full: 999
70
70
  }
71
71
  };
72
- function jt(a = {}) {
72
+ function Bt(a = {}) {
73
73
  const t = { ...ot.color, ...a.color }, e = { ...ot.radius, ...a.radius };
74
74
  return {
75
75
  "--gryt-bg": t.bg,
@@ -118,33 +118,33 @@ function jt(a = {}) {
118
118
  "--gryt-radius-full": `${e.full}px`
119
119
  };
120
120
  }
121
- function Gt(a) {
121
+ function zt(a) {
122
122
  return Object.keys(a).some((t) => t.startsWith("--"));
123
123
  }
124
- function no({
124
+ function so({
125
125
  children: a,
126
126
  className: t,
127
127
  theme: e,
128
128
  tooltipDelay: r = 400
129
129
  }) {
130
- const i = e && Gt(e) ? e : jt(e ?? {});
131
- return /* @__PURE__ */ o("div", { className: t, style: i, children: /* @__PURE__ */ o(D.Provider, { delay: r, children: a }) });
130
+ const i = e && zt(e) ? e : Bt(e ?? {});
131
+ return /* @__PURE__ */ o("div", { className: t, style: i, children: /* @__PURE__ */ o(I.Provider, { delay: r, children: a }) });
132
132
  }
133
133
  function n(...a) {
134
- return vt(wt(a));
134
+ return Pt(Nt(a));
135
135
  }
136
- const Bt = {
136
+ const Ft = {
137
137
  primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",
138
138
  secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",
139
139
  neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",
140
140
  danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",
141
141
  ghost: "bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
142
- }, zt = {
142
+ }, Vt = {
143
143
  xsmall: "min-h-8 px-3 text-xs",
144
144
  small: "min-h-9 px-4 text-sm",
145
145
  medium: "min-h-10 px-5 text-sm",
146
146
  large: "min-h-12 px-6 text-base"
147
- }, Ft = s(
147
+ }, Et = s(
148
148
  function({
149
149
  children: t,
150
150
  className: e,
@@ -169,12 +169,18 @@ const Bt = {
169
169
  "duration-(--gryt-dur-spring) ease-spring",
170
170
  // Press travels further than hover, so the button reads as being
171
171
  // pushed down rather than just acknowledging the cursor.
172
- "motion-safe:hover:not-data-disabled:scale-[1.03]",
173
- "motion-safe:active:not-data-disabled:scale-[0.96]",
172
+ // A button that opens something does not grow under the cursor.
173
+ // Base UI positions the popup against the trigger's measured box, and
174
+ // it keeps measuring while the popup is open — so a trigger that
175
+ // scales on hover drags its own menu a pixel or two sideways every
176
+ // time the pointer crosses it. aria-haspopup is how the trigger says
177
+ // that is what it is; Base UI puts it there, nothing to pass.
178
+ "motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.03]",
179
+ "motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.96]",
174
180
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
175
181
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
176
- zt[i],
177
- Bt[l],
182
+ Vt[i],
183
+ Ft[l],
178
184
  e
179
185
  ),
180
186
  ...m,
@@ -186,53 +192,62 @@ const Bt = {
186
192
  }
187
193
  );
188
194
  }
189
- ), b = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", Vt = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", S = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", R = [
195
+ ), b = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", _t = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", gt = [
196
+ "w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
197
+ "text-gryt-text outline-none placeholder:text-gryt-muted",
198
+ "transition-colors duration-150 motion-reduce:transition-none",
199
+ "hover:border-gryt-accent-light focus:border-gryt-accent",
200
+ "disabled:cursor-not-allowed disabled:opacity-60"
201
+ ].join(" "), ut = {
202
+ small: "min-h-9 px-3 py-1.5 text-sm",
203
+ medium: "min-h-11 px-4 py-2.5 text-sm"
204
+ }, A = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", S = [
190
205
  // scale and translate are named explicitly because Tailwind v4 sets them as
191
206
  // standalone CSS properties rather than folding them into `transform`, so
192
207
  // transitioning `transform` would leave the popup snapping into place.
193
208
  "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
194
209
  "data-starting-style:scale-[0.98] data-starting-style:opacity-0",
195
210
  "data-ending-style:scale-[0.98] data-ending-style:opacity-0"
196
- ].join(" "), G = "data-disabled:cursor-not-allowed data-disabled:opacity-50", Et = {
211
+ ].join(" "), G = "data-disabled:cursor-not-allowed data-disabled:opacity-50", Ht = {
197
212
  primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
198
213
  secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
199
214
  neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
200
215
  danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
201
216
  success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
202
217
  warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
203
- }, gt = {
218
+ }, yt = {
204
219
  primary: "bg-gryt-accent",
205
220
  secondary: "bg-gryt-secondary",
206
221
  neutral: "bg-gryt-surface-hover",
207
222
  danger: "bg-gryt-danger",
208
223
  success: "bg-gryt-success",
209
224
  warning: "bg-gryt-warning"
210
- }, _t = {
225
+ }, Xt = {
211
226
  primary: "data-checked:border-gryt-accent",
212
227
  secondary: "data-checked:border-gryt-secondary",
213
228
  neutral: "data-checked:border-gryt-muted",
214
229
  danger: "data-checked:border-gryt-danger",
215
230
  success: "data-checked:border-gryt-success",
216
231
  warning: "data-checked:border-gryt-warning"
217
- }, Ht = {
232
+ }, Ot = {
218
233
  primary: "data-checked:bg-gryt-accent",
219
234
  secondary: "data-checked:bg-gryt-secondary",
220
235
  neutral: "data-checked:bg-gryt-surface-hover",
221
236
  danger: "data-checked:bg-gryt-danger",
222
237
  success: "data-checked:bg-gryt-success",
223
238
  warning: "data-checked:bg-gryt-warning"
224
- }, Xt = {
239
+ }, Yt = {
225
240
  primary: "text-gryt-accent hover:not-data-disabled:bg-gryt-accent/10",
226
241
  secondary: "text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary/10",
227
242
  neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
228
243
  danger: "text-gryt-danger hover:not-data-disabled:bg-gryt-danger/10",
229
244
  ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
230
- }, Ot = {
245
+ }, Ut = {
231
246
  xsmall: "h-8 w-8",
232
247
  small: "h-9 w-9",
233
248
  medium: "h-10 w-10",
234
249
  large: "h-12 w-12"
235
- }, io = s(
250
+ }, co = s(
236
251
  function({ className: t, size: e = "medium", tone: r = "neutral", ...i }, c) {
237
252
  return /* @__PURE__ */ o(
238
253
  it,
@@ -244,19 +259,25 @@ const Bt = {
244
259
  "rounded-(--gryt-radius-full) select-none",
245
260
  // scale rather than transform — see the note in Button.
246
261
  "transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring",
247
- "motion-safe:hover:not-data-disabled:scale-[1.06]",
248
- "motion-safe:active:not-data-disabled:scale-[0.94]",
262
+ // A button that opens something does not grow under the cursor.
263
+ // Base UI positions the popup against the trigger's measured box, and
264
+ // it keeps measuring while the popup is open — so a trigger that
265
+ // scales on hover drags its own menu a pixel or two sideways every
266
+ // time the pointer crosses it. aria-haspopup is how the trigger says
267
+ // that is what it is; Base UI puts it there, nothing to pass.
268
+ "motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.06]",
269
+ "motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.94]",
249
270
  b,
250
271
  G,
251
- Ot[e],
252
- Xt[r],
272
+ Ut[e],
273
+ Yt[r],
253
274
  t
254
275
  ),
255
276
  ...i
256
277
  }
257
278
  );
258
279
  }
259
- ), so = s(
280
+ ), lo = s(
260
281
  function({ className: t, elevated: e = !1, ...r }, i) {
261
282
  return /* @__PURE__ */ o(
262
283
  "div",
@@ -271,7 +292,7 @@ const Bt = {
271
292
  }
272
293
  );
273
294
  }
274
- ), co = s(
295
+ ), go = s(
275
296
  function({ children: t, className: e, from: r = "assistant", ...i }, c) {
276
297
  return /* @__PURE__ */ o(
277
298
  "div",
@@ -289,10 +310,7 @@ const Bt = {
289
310
  }
290
311
  );
291
312
  }
292
- ), Yt = {
293
- small: "min-h-9 px-3 py-1.5 text-sm",
294
- medium: "min-h-11 px-4 py-2.5 text-sm"
295
- }, lo = s(
313
+ ), uo = s(
296
314
  function({
297
315
  className: t,
298
316
  error: e = !1,
@@ -310,14 +328,11 @@ const Bt = {
310
328
  ref: y,
311
329
  render: m ? /* @__PURE__ */ o("textarea", { rows: l }) : void 0,
312
330
  className: n(
313
- "gryt-text-field-control w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
314
- "text-gryt-text outline-none placeholder:text-gryt-muted",
315
- "transition-colors duration-150",
316
- "hover:border-gryt-accent-light focus:border-gryt-accent",
317
- "disabled:cursor-not-allowed disabled:opacity-60",
331
+ "gryt-text-field-control",
332
+ gt,
318
333
  m && "resize-y leading-6",
319
334
  e ? "border-gryt-danger" : "border-gryt-border",
320
- Yt[u],
335
+ ut[u],
321
336
  t
322
337
  ),
323
338
  ...w
@@ -347,7 +362,7 @@ const Bt = {
347
362
  }
348
363
  );
349
364
  }
350
- ), go = s(
365
+ ), yo = s(
351
366
  function({
352
367
  className: t,
353
368
  disabled: e = !1,
@@ -368,7 +383,7 @@ const Bt = {
368
383
  K * r + Z
369
384
  )}px`;
370
385
  }, [r, i]);
371
- pt(N, [N, u.value]);
386
+ ft(N, [N, u.value]);
372
387
  function J(f) {
373
388
  if (!c) {
374
389
  f.preventDefault();
@@ -392,22 +407,22 @@ const Bt = {
392
407
  }
393
408
  ),
394
409
  /* @__PURE__ */ o(
395
- Ft,
410
+ Et,
396
411
  {
397
412
  type: "submit",
398
413
  disabled: e,
399
414
  size: "small",
400
- endIcon: /* @__PURE__ */ o(Nt, { size: 14, weight: "fill" }),
415
+ endIcon: /* @__PURE__ */ o(kt, { size: 14, weight: "fill" }),
401
416
  children: m
402
417
  }
403
418
  )
404
419
  ] });
405
420
  }
406
- ), Ut = {
421
+ ), Wt = {
407
422
  small: "h-8 w-8 text-xs",
408
423
  medium: "h-10 w-10 text-sm",
409
424
  large: "h-12 w-12 text-base"
410
- }, Wt = s(function({ alt: t, children: e, className: r, fallback: i, size: c = "medium", src: l, ...m }, u) {
425
+ }, Qt = s(function({ alt: t, children: e, className: r, fallback: i, size: c = "medium", src: l, ...m }, u) {
411
426
  return /* @__PURE__ */ d(
412
427
  X.Root,
413
428
  {
@@ -415,7 +430,7 @@ const Bt = {
415
430
  className: n(
416
431
  "gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
417
432
  "rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
418
- Ut[c],
433
+ Wt[c],
419
434
  r
420
435
  ),
421
436
  ...m,
@@ -432,7 +447,7 @@ const Bt = {
432
447
  ]
433
448
  }
434
449
  );
435
- }), uo = s(function({ active: t = !1, avatar: e, className: r, subtitle: i, title: c, ...l }, m) {
450
+ }), mo = s(function({ active: t = !1, avatar: e, className: r, subtitle: i, title: c, ...l }, m) {
436
451
  return /* @__PURE__ */ d(
437
452
  "button",
438
453
  {
@@ -446,7 +461,7 @@ const Bt = {
446
461
  ...l,
447
462
  children: [
448
463
  e ?? /* @__PURE__ */ o(
449
- Wt,
464
+ Qt,
450
465
  {
451
466
  size: "small",
452
467
  className: n(
@@ -471,7 +486,7 @@ const Bt = {
471
486
  ]
472
487
  }
473
488
  );
474
- }), yo = s(function({ badgeContent: t, children: e, className: r, max: i = 99, showZero: c = !1, ...l }, m) {
489
+ }), po = s(function({ badgeContent: t, children: e, className: r, max: i = 99, showZero: c = !1, ...l }, m) {
475
490
  const u = typeof t == "number" ? t : null, w = u !== null && u === 0 && !c, y = u !== null && u > i ? `${i}+` : t;
476
491
  return /* @__PURE__ */ d(
477
492
  "span",
@@ -496,21 +511,21 @@ const Bt = {
496
511
  ]
497
512
  }
498
513
  );
499
- }), Qt = {
514
+ }), Jt = {
500
515
  neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
501
516
  primary: "border-gryt-accent/40 bg-gryt-accent/12 text-gryt-accent",
502
517
  secondary: "border-gryt-secondary/40 bg-gryt-secondary/12 text-gryt-secondary",
503
518
  success: "border-gryt-success/40 bg-gryt-success/12 text-gryt-success",
504
519
  warning: "border-gryt-warning/40 bg-gryt-warning/12 text-gryt-warning",
505
520
  danger: "border-gryt-danger/40 bg-gryt-danger/12 text-gryt-danger"
506
- }, mo = s(function({ children: t, className: e, icon: r, label: i, onDelete: c, tone: l = "neutral", ...m }, u) {
521
+ }, bo = s(function({ children: t, className: e, icon: r, label: i, onDelete: c, tone: l = "neutral", ...m }, u) {
507
522
  return /* @__PURE__ */ d(
508
523
  "span",
509
524
  {
510
525
  ref: u,
511
526
  className: n(
512
527
  "gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
513
- Qt[l],
528
+ Jt[l],
514
529
  e
515
530
  ),
516
531
  ...m,
@@ -534,7 +549,7 @@ const Bt = {
534
549
  ]
535
550
  }
536
551
  );
537
- }), po = s(
552
+ }), fo = s(
538
553
  function({ className: t, tone: e = "primary", ...r }, i) {
539
554
  return /* @__PURE__ */ o(
540
555
  q.Root,
@@ -553,7 +568,7 @@ const Bt = {
553
568
  b,
554
569
  G,
555
570
  // Unchecked stays a neutral outline; the tone only paints once checked.
556
- Et[e],
571
+ Ht[e],
557
572
  t
558
573
  ),
559
574
  ...r,
@@ -577,7 +592,7 @@ const Bt = {
577
592
  }
578
593
  );
579
594
  }
580
- ), bo = s(function({ className: t, tone: e = "primary", ...r }, i) {
595
+ ), xo = s(function({ className: t, tone: e = "primary", ...r }, i) {
581
596
  return /* @__PURE__ */ o(
582
597
  tt.Root,
583
598
  {
@@ -592,7 +607,7 @@ const Bt = {
592
607
  b,
593
608
  G,
594
609
  // Border takes the tone when selected; the dot inside carries the fill.
595
- _t[e],
610
+ Xt[e],
596
611
  t
597
612
  ),
598
613
  ...r,
@@ -606,16 +621,16 @@ const Bt = {
606
621
  // From 0, for the same reason as the Checkbox tick — see the note there.
607
622
  "data-unchecked:scale-0 data-unchecked:opacity-0",
608
623
  "motion-reduce:transition-none",
609
- gt[e]
624
+ yt[e]
610
625
  )
611
626
  }
612
627
  )
613
628
  }
614
629
  );
615
- }), fo = s(
630
+ }), ho = s(
616
631
  function({ className: t, ...e }, r) {
617
632
  return /* @__PURE__ */ o(
618
- St,
633
+ It,
619
634
  {
620
635
  ref: r,
621
636
  className: n("gryt-radio-group flex flex-col gap-2", t),
@@ -623,7 +638,7 @@ const Bt = {
623
638
  }
624
639
  );
625
640
  }
626
- ), xo = s(
641
+ ), wo = s(
627
642
  function({ className: t, tone: e = "primary", ...r }, i) {
628
643
  return /* @__PURE__ */ o(
629
644
  et.Root,
@@ -639,7 +654,7 @@ const Bt = {
639
654
  "motion-safe:active:not-data-disabled:scale-[0.95]",
640
655
  b,
641
656
  G,
642
- Ht[e],
657
+ Ot[e],
643
658
  t
644
659
  ),
645
660
  ...r,
@@ -657,14 +672,14 @@ const Bt = {
657
672
  );
658
673
  }
659
674
  ), at = 3;
660
- function ho({
675
+ function vo({
661
676
  className: a,
662
677
  tone: t = "primary",
663
678
  "aria-label": e,
664
679
  ...r
665
680
  }) {
666
- const [i, c] = bt(!1), l = st(null);
667
- ft(() => {
681
+ const [i, c] = xt(!1), l = st(null);
682
+ ht(() => {
668
683
  if (!i && l.current === null)
669
684
  return;
670
685
  const y = () => {
@@ -698,7 +713,7 @@ function ho({
698
713
  "h-full rounded-(--gryt-radius-full) select-none",
699
714
  "transition-[width]",
700
715
  w,
701
- gt[t]
716
+ yt[t]
702
717
  )
703
718
  }
704
719
  ),
@@ -714,7 +729,7 @@ function ho({
714
729
  // hidden input inside it, so this has to match a descendant.
715
730
  // Without it the slider is the one control here you cannot see
716
731
  // yourself tab to.
717
- Vt
732
+ _t
718
733
  ),
719
734
  children: /* @__PURE__ */ o(
720
735
  "span",
@@ -733,11 +748,11 @@ function ho({
733
748
  }
734
749
  ) });
735
750
  }
736
- const Jt = {
751
+ const Kt = {
737
752
  small: "min-h-9 px-3 text-sm",
738
753
  medium: "min-h-11 px-4 text-sm"
739
754
  };
740
- function wo({
755
+ function No({
741
756
  className: a,
742
757
  label: t,
743
758
  options: e = [],
@@ -758,11 +773,11 @@ function wo({
758
773
  "transition-colors duration-150 hover:border-gryt-accent-light",
759
774
  "data-disabled:cursor-not-allowed data-disabled:opacity-60",
760
775
  b,
761
- Jt[i]
776
+ Kt[i]
762
777
  ),
763
778
  children: [
764
779
  /* @__PURE__ */ o(x.Value, { placeholder: r }),
765
- /* @__PURE__ */ o(x.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ o(Pt, { size: 16 }) })
780
+ /* @__PURE__ */ o(x.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ o(Tt, { size: 16 }) })
766
781
  ]
767
782
  }
768
783
  )
@@ -770,7 +785,7 @@ function wo({
770
785
  /* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(x.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ o(
771
786
  x.Popup,
772
787
  {
773
- className: n("min-w-(--anchor-width) p-1", S, R),
788
+ className: n("min-w-(--anchor-width) p-1", A, S),
774
789
  children: /* @__PURE__ */ o(x.List, { children: e.map((l) => /* @__PURE__ */ d(
775
790
  x.Item,
776
791
  {
@@ -793,22 +808,22 @@ function wo({
793
808
  ) }) })
794
809
  ] });
795
810
  }
796
- function vo({
811
+ function Po({
797
812
  children: a,
798
813
  className: t,
799
814
  side: e = "top",
800
815
  sideOffset: r = 8,
801
816
  title: i
802
817
  }) {
803
- return /* @__PURE__ */ d(D.Root, { children: [
804
- /* @__PURE__ */ o(D.Trigger, { render: a }),
805
- /* @__PURE__ */ o(D.Portal, { children: /* @__PURE__ */ o(D.Positioner, { side: e, sideOffset: r, children: /* @__PURE__ */ o(
806
- D.Popup,
818
+ return /* @__PURE__ */ d(I.Root, { children: [
819
+ /* @__PURE__ */ o(I.Trigger, { render: a }),
820
+ /* @__PURE__ */ o(I.Portal, { children: /* @__PURE__ */ o(I.Positioner, { side: e, sideOffset: r, children: /* @__PURE__ */ o(
821
+ I.Popup,
807
822
  {
808
823
  className: n(
809
824
  "gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised",
810
825
  "px-2.5 py-1.5 text-xs text-gryt-text",
811
- R,
826
+ S,
812
827
  t
813
828
  ),
814
829
  children: i
@@ -816,10 +831,10 @@ function vo({
816
831
  ) }) })
817
832
  ] });
818
833
  }
819
- const No = D.Provider, Po = s(
834
+ const ko = I.Provider, To = s(
820
835
  function({ className: t, orientation: e = "horizontal", ...r }, i) {
821
836
  return /* @__PURE__ */ o(
822
- Rt,
837
+ Dt,
823
838
  {
824
839
  ref: i,
825
840
  orientation: e,
@@ -832,7 +847,7 @@ const No = D.Provider, Po = s(
832
847
  }
833
848
  );
834
849
  }
835
- ), ko = s(function({ className: t, ...e }, r) {
850
+ ), Co = s(function({ className: t, ...e }, r) {
836
851
  return /* @__PURE__ */ o(
837
852
  "div",
838
853
  {
@@ -845,7 +860,7 @@ const No = D.Provider, Po = s(
845
860
  }
846
861
  );
847
862
  });
848
- function To({
863
+ function $o({
849
864
  children: a,
850
865
  className: t,
851
866
  subheader: e,
@@ -865,7 +880,7 @@ function To({
865
880
  }
866
881
  );
867
882
  }
868
- function $o({
883
+ function So({
869
884
  className: a,
870
885
  ...t
871
886
  }) {
@@ -880,7 +895,7 @@ function $o({
880
895
  }
881
896
  );
882
897
  }
883
- function Co({
898
+ function Ro({
884
899
  className: a,
885
900
  ...t
886
901
  }) {
@@ -895,12 +910,12 @@ function Co({
895
910
  }
896
911
  );
897
912
  }
898
- const Kt = {
913
+ const Zt = {
899
914
  info: "border-gryt-secondary/40 bg-gryt-secondary/10 text-gryt-secondary",
900
915
  success: "border-gryt-success/40 bg-gryt-success/10 text-gryt-success",
901
916
  warning: "border-gryt-warning/40 bg-gryt-warning/10 text-gryt-warning",
902
917
  error: "border-gryt-danger/40 bg-gryt-danger/10 text-gryt-danger"
903
- }, So = s(function({ className: t, severity: e = "info", ...r }, i) {
918
+ }, Io = s(function({ className: t, severity: e = "info", ...r }, i) {
904
919
  return /* @__PURE__ */ o(
905
920
  "div",
906
921
  {
@@ -908,31 +923,31 @@ const Kt = {
908
923
  role: "alert",
909
924
  className: n(
910
925
  "gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
911
- Kt[e],
926
+ Zt[e],
912
927
  t
913
928
  ),
914
929
  ...r
915
930
  }
916
931
  );
917
932
  });
918
- function Ro({ className: a, value: t = null, ...e }) {
933
+ function Do({ className: a, value: t = null, ...e }) {
919
934
  return /* @__PURE__ */ o(
920
935
  O.Root,
921
936
  {
922
937
  value: t,
923
938
  className: n("gryt-progress w-full", a),
924
939
  ...e,
925
- children: /* @__PURE__ */ o(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(O.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none" }) })
940
+ children: /* @__PURE__ */ o(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(O.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-300 ease-out motion-reduce:transition-none" }) })
926
941
  }
927
942
  );
928
943
  }
929
- function Io({
944
+ function Ao({
930
945
  className: a,
931
946
  size: t = 24,
932
947
  "aria-label": e = "Loading"
933
948
  }) {
934
949
  return /* @__PURE__ */ o(
935
- kt,
950
+ Ct,
936
951
  {
937
952
  role: "status",
938
953
  "aria-label": e,
@@ -945,13 +960,13 @@ function Io({
945
960
  }
946
961
  );
947
962
  }
948
- const Zt = {
963
+ const qt = {
949
964
  text: "h-4 rounded-(--gryt-radius-sm)",
950
965
  rounded: "rounded-(--gryt-radius-lg)",
951
966
  circular: "rounded-(--gryt-radius-full)",
952
967
  rectangular: "rounded-none"
953
968
  };
954
- function Do({
969
+ function Mo({
955
970
  className: a,
956
971
  height: t,
957
972
  style: e,
@@ -969,8 +984,14 @@ function Do({
969
984
  {
970
985
  "aria-hidden": "true",
971
986
  className: n(
972
- "gryt-skeleton bg-gryt-surface-raised motion-safe:animate-pulse",
973
- Zt[r],
987
+ // Not bg-gryt-surface-raised. #1e2028 against #1a1d24 is four points of
988
+ // luminance, which is invisible on a laptop screen at an angle — the
989
+ // placeholder that is meant to say "something is coming" said nothing.
990
+ // A white wash instead of a fixed colour, so it stays visible on any of
991
+ // the surfaces it can land on rather than only the one it was picked
992
+ // against, and it dims rather than brightens as it pulses.
993
+ "gryt-skeleton bg-white/9 motion-safe:animate-pulse",
994
+ qt[r],
974
995
  a
975
996
  ),
976
997
  style: l,
@@ -978,16 +999,16 @@ function Do({
978
999
  }
979
1000
  );
980
1001
  }
981
- const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", qt = s(
1002
+ const mt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", te = s(
982
1003
  function({ className: t, ...e }, r) {
983
1004
  return /* @__PURE__ */ o(
984
- $.Backdrop,
1005
+ C.Backdrop,
985
1006
  {
986
1007
  ref: r,
987
1008
  className: n(
988
1009
  "gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
989
1010
  "backdrop-blur-(--gryt-backdrop-blur)",
990
- ut,
1011
+ mt,
991
1012
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
992
1013
  t
993
1014
  ),
@@ -995,17 +1016,17 @@ const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
995
1016
  }
996
1017
  );
997
1018
  }
998
- ), te = s(
1019
+ ), ee = s(
999
1020
  function({ className: t, ...e }, r) {
1000
1021
  return /* @__PURE__ */ o(
1001
- $.Popup,
1022
+ C.Popup,
1002
1023
  {
1003
1024
  ref: r,
1004
1025
  className: n(
1005
1026
  "gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
1006
1027
  "flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
1007
1028
  "rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
1008
- ut,
1029
+ mt,
1009
1030
  "data-starting-style:scale-[0.98] data-starting-style:opacity-0",
1010
1031
  "data-ending-style:scale-[0.98] data-ending-style:opacity-0",
1011
1032
  t
@@ -1014,10 +1035,10 @@ const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
1014
1035
  }
1015
1036
  );
1016
1037
  }
1017
- ), ee = s(
1038
+ ), re = s(
1018
1039
  function({ className: t, ...e }, r) {
1019
1040
  return /* @__PURE__ */ o(
1020
- $.Title,
1041
+ C.Title,
1021
1042
  {
1022
1043
  ref: r,
1023
1044
  className: n(
@@ -1028,10 +1049,10 @@ const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
1028
1049
  }
1029
1050
  );
1030
1051
  }
1031
- ), re = s(
1052
+ ), oe = s(
1032
1053
  function({ className: t, ...e }, r) {
1033
1054
  return /* @__PURE__ */ o(
1034
- $.Description,
1055
+ C.Description,
1035
1056
  {
1036
1057
  ref: r,
1037
1058
  className: n(
@@ -1042,7 +1063,7 @@ const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
1042
1063
  }
1043
1064
  );
1044
1065
  }
1045
- ), oe = s(
1066
+ ), ae = s(
1046
1067
  function({ className: t, ...e }, r) {
1047
1068
  return /* @__PURE__ */ o(
1048
1069
  "div",
@@ -1056,45 +1077,45 @@ const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
1056
1077
  }
1057
1078
  );
1058
1079
  }
1059
- ), Ao = {
1060
- Root: $.Root,
1061
- Trigger: $.Trigger,
1062
- Portal: $.Portal,
1063
- Close: $.Close,
1064
- Backdrop: qt,
1065
- Popup: te,
1066
- Title: ee,
1067
- Description: re,
1068
- Footer: oe
1069
- }, ae = () => () => {
1080
+ ), Lo = {
1081
+ Root: C.Root,
1082
+ Trigger: C.Trigger,
1083
+ Portal: C.Portal,
1084
+ Close: C.Close,
1085
+ Backdrop: te,
1086
+ Popup: ee,
1087
+ Title: re,
1088
+ Description: oe,
1089
+ Footer: ae
1090
+ }, ne = () => () => {
1070
1091
  };
1071
- function ne(a) {
1092
+ function ie(a) {
1072
1093
  const t = U(
1073
1094
  (r) => {
1074
- if (typeof window > "u" || !window.matchMedia) return ae();
1095
+ if (typeof window > "u" || !window.matchMedia) return ne();
1075
1096
  const i = window.matchMedia(a);
1076
1097
  return i.addEventListener("change", r), () => i.removeEventListener("change", r);
1077
1098
  },
1078
1099
  [a]
1079
1100
  ), e = U(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(a).matches, [a]);
1080
- return xt(t, e, () => !1);
1101
+ return wt(t, e, () => !1);
1081
1102
  }
1082
- const ie = {
1103
+ const se = {
1083
1104
  left: "left",
1084
1105
  right: "right",
1085
1106
  top: "up",
1086
1107
  bottom: "down"
1087
- }, _ = ht("right"), se = {
1108
+ }, _ = vt("right"), ce = {
1088
1109
  left: "items-stretch justify-start",
1089
1110
  right: "items-stretch justify-end",
1090
1111
  top: "items-start justify-center",
1091
1112
  bottom: "items-end justify-center"
1092
- }, ce = {
1113
+ }, le = {
1093
1114
  left: "rounded-r-(--gryt-radius-xl)",
1094
1115
  right: "rounded-l-(--gryt-radius-xl)",
1095
1116
  top: "rounded-b-(--gryt-radius-xl)",
1096
1117
  bottom: "rounded-t-(--gryt-radius-xl)"
1097
- }, le = {
1118
+ }, de = {
1098
1119
  left: [
1099
1120
  "h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
1100
1121
  "-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
@@ -1124,16 +1145,16 @@ const ie = {
1124
1145
  "data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
1125
1146
  ].join(" ")
1126
1147
  };
1127
- function de({
1148
+ function ge({
1128
1149
  side: a = "right",
1129
1150
  sheetOnMobile: t = !0,
1130
1151
  children: e,
1131
1152
  ...r
1132
1153
  }) {
1133
- const i = ne("(max-width: 767px)"), c = t && i ? "bottom" : a;
1134
- return /* @__PURE__ */ o(_.Provider, { value: c, children: /* @__PURE__ */ o(v.Root, { swipeDirection: ie[c], ...r, children: e }) });
1154
+ const i = ie("(max-width: 767px)"), c = t && i ? "bottom" : a;
1155
+ return /* @__PURE__ */ o(_.Provider, { value: c, children: /* @__PURE__ */ o(v.Root, { swipeDirection: se[c], ...r, children: e }) });
1135
1156
  }
1136
- const ge = s(
1157
+ const ue = s(
1137
1158
  function({ className: t, ...e }, r) {
1138
1159
  const i = W(_);
1139
1160
  return /* @__PURE__ */ o(
@@ -1145,14 +1166,14 @@ const ge = s(
1145
1166
  // viewport is what has to sit above the page. Without it a sticky
1146
1167
  // site header renders over the panel.
1147
1168
  "gryt-drawer-viewport fixed inset-0 z-50 flex",
1148
- se[i],
1169
+ ce[i],
1149
1170
  t
1150
1171
  ),
1151
1172
  ...e
1152
1173
  }
1153
1174
  );
1154
1175
  }
1155
- ), ue = s(function({ className: t, ...e }, r) {
1176
+ ), ye = s(function({ className: t, ...e }, r) {
1156
1177
  const i = W(_);
1157
1178
  return /* @__PURE__ */ o(
1158
1179
  v.Popup,
@@ -1166,14 +1187,14 @@ const ge = s(
1166
1187
  // duration here turns a drag into a drag plus lag.
1167
1188
  "data-swiping:duration-0 data-swiping:select-none",
1168
1189
  "motion-reduce:transition-none",
1190
+ de[i],
1169
1191
  le[i],
1170
- ce[i],
1171
1192
  t
1172
1193
  ),
1173
1194
  ...e
1174
1195
  }
1175
1196
  );
1176
- }), ye = s(function({ className: t, ...e }, r) {
1197
+ }), me = s(function({ className: t, ...e }, r) {
1177
1198
  return /* @__PURE__ */ o(
1178
1199
  v.Backdrop,
1179
1200
  {
@@ -1194,7 +1215,7 @@ const ge = s(
1194
1215
  }
1195
1216
  );
1196
1217
  });
1197
- function me({ className: a }) {
1218
+ function pe({ className: a }) {
1198
1219
  const t = W(_);
1199
1220
  return t !== "bottom" && t !== "top" ? null : /* @__PURE__ */ o(
1200
1221
  "div",
@@ -1208,22 +1229,22 @@ function me({ className: a }) {
1208
1229
  }
1209
1230
  );
1210
1231
  }
1211
- const Mo = {
1212
- Root: de,
1232
+ const jo = {
1233
+ Root: ge,
1213
1234
  Trigger: v.Trigger,
1214
1235
  Portal: v.Portal,
1215
- Backdrop: ye,
1216
- Viewport: ge,
1217
- Popup: ue,
1236
+ Backdrop: me,
1237
+ Viewport: ue,
1238
+ Popup: ye,
1218
1239
  Content: v.Content,
1219
- Grabber: me,
1240
+ Grabber: pe,
1220
1241
  Close: v.Close,
1221
1242
  Title: v.Title,
1222
1243
  Description: v.Description
1223
- }, pe = s(
1244
+ }, be = s(
1224
1245
  function({ className: t, sideOffset: e = 8, ...r }, i) {
1225
1246
  return /* @__PURE__ */ o(
1226
- A.Positioner,
1247
+ D.Positioner,
1227
1248
  {
1228
1249
  ref: i,
1229
1250
  sideOffset: e,
@@ -1232,23 +1253,23 @@ const Mo = {
1232
1253
  }
1233
1254
  );
1234
1255
  }
1235
- ), be = s(function({ className: t, ...e }, r) {
1256
+ ), fe = s(function({ className: t, ...e }, r) {
1236
1257
  return /* @__PURE__ */ o(
1237
- A.Popup,
1258
+ D.Popup,
1238
1259
  {
1239
1260
  ref: r,
1240
1261
  className: n(
1241
1262
  "gryt-menu min-w-44 p-1 outline-none",
1263
+ A,
1242
1264
  S,
1243
- R,
1244
1265
  t
1245
1266
  ),
1246
1267
  ...e
1247
1268
  }
1248
1269
  );
1249
- }), fe = s(function({ className: t, ...e }, r) {
1270
+ }), xe = s(function({ className: t, ...e }, r) {
1250
1271
  return /* @__PURE__ */ o(
1251
- A.Item,
1272
+ D.Item,
1252
1273
  {
1253
1274
  ref: r,
1254
1275
  className: n(
@@ -1263,9 +1284,9 @@ const Mo = {
1263
1284
  ...e
1264
1285
  }
1265
1286
  );
1266
- }), xe = s(function({ className: t, ...e }, r) {
1287
+ }), he = s(function({ className: t, ...e }, r) {
1267
1288
  return /* @__PURE__ */ o(
1268
- A.Separator,
1289
+ D.Separator,
1269
1290
  {
1270
1291
  ref: r,
1271
1292
  className: n("gryt-menu-separator my-1 h-px bg-gryt-border", t),
@@ -1273,14 +1294,14 @@ const Mo = {
1273
1294
  }
1274
1295
  );
1275
1296
  }), Y = {
1276
- Root: A.Root,
1277
- Trigger: A.Trigger,
1278
- Portal: A.Portal,
1279
- Positioner: pe,
1280
- Popup: be,
1281
- Item: fe,
1282
- Separator: xe
1283
- }, he = s(function({ className: t, ...e }, r) {
1297
+ Root: D.Root,
1298
+ Trigger: D.Trigger,
1299
+ Portal: D.Portal,
1300
+ Positioner: be,
1301
+ Popup: fe,
1302
+ Item: xe,
1303
+ Separator: he
1304
+ }, we = s(function({ className: t, ...e }, r) {
1284
1305
  return /* @__PURE__ */ o(
1285
1306
  V.Root,
1286
1307
  {
@@ -1296,7 +1317,7 @@ const Mo = {
1296
1317
  ...e
1297
1318
  }
1298
1319
  );
1299
- }), we = s(function({ className: t, ...e }, r) {
1320
+ }), ve = s(function({ className: t, ...e }, r) {
1300
1321
  return /* @__PURE__ */ o(
1301
1322
  V.List,
1302
1323
  {
@@ -1313,7 +1334,7 @@ const Mo = {
1313
1334
  ...e
1314
1335
  }
1315
1336
  );
1316
- }), ve = s(function({ className: t, ...e }, r) {
1337
+ }), Ne = s(function({ className: t, ...e }, r) {
1317
1338
  return /* @__PURE__ */ o(
1318
1339
  V.Tab,
1319
1340
  {
@@ -1338,7 +1359,7 @@ const Mo = {
1338
1359
  ...e
1339
1360
  }
1340
1361
  );
1341
- }), Ne = s(
1362
+ }), Pe = s(
1342
1363
  function({ className: t, ...e }, r) {
1343
1364
  return /* @__PURE__ */ o(
1344
1365
  V.Indicator,
@@ -1365,7 +1386,7 @@ const Mo = {
1365
1386
  }
1366
1387
  );
1367
1388
  }
1368
- ), Pe = s(function({ className: t, ...e }, r) {
1389
+ ), ke = s(function({ className: t, ...e }, r) {
1369
1390
  return /* @__PURE__ */ o(
1370
1391
  V.Panel,
1371
1392
  {
@@ -1381,7 +1402,7 @@ const Mo = {
1381
1402
  ...e
1382
1403
  }
1383
1404
  );
1384
- }), Lo = Object.assign(he, { List: we, Tab: ve, Panel: Pe, Indicator: Ne }), ke = s(function({ className: t, ...e }, r) {
1405
+ }), Go = Object.assign(we, { List: ve, Tab: Ne, Panel: ke, Indicator: Pe }), Te = s(function({ className: t, ...e }, r) {
1385
1406
  return /* @__PURE__ */ o(
1386
1407
  F.Root,
1387
1408
  {
@@ -1393,7 +1414,7 @@ const Mo = {
1393
1414
  ...e
1394
1415
  }
1395
1416
  );
1396
- }), Te = s(
1417
+ }), Ce = s(
1397
1418
  function({ className: t, ...e }, r) {
1398
1419
  return /* @__PURE__ */ o(
1399
1420
  F.Item,
@@ -1422,7 +1443,7 @@ const Mo = {
1422
1443
  children: [
1423
1444
  t,
1424
1445
  r === void 0 ? /* @__PURE__ */ o(
1425
- Tt,
1446
+ $t,
1426
1447
  {
1427
1448
  size: 16,
1428
1449
  className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
@@ -1432,7 +1453,7 @@ const Mo = {
1432
1453
  }
1433
1454
  ) });
1434
1455
  }
1435
- ), Ce = s(
1456
+ ), Se = s(
1436
1457
  function({ children: t, className: e, ...r }, i) {
1437
1458
  return /* @__PURE__ */ o(
1438
1459
  F.Panel,
@@ -1452,7 +1473,7 @@ const Mo = {
1452
1473
  }
1453
1474
  );
1454
1475
  }
1455
- ), jo = Object.assign(ke, { Item: Te, Trigger: $e, Panel: Ce }), Se = s(
1476
+ ), Bo = Object.assign(Te, { Item: Ce, Trigger: $e, Panel: Se }), Re = s(
1456
1477
  function({ className: t, sideOffset: e = 2, ...r }, i) {
1457
1478
  return /* @__PURE__ */ o(
1458
1479
  T.Positioner,
@@ -1464,11 +1485,11 @@ const Mo = {
1464
1485
  }
1465
1486
  );
1466
1487
  }
1467
- ), Go = {
1488
+ ), zo = {
1468
1489
  Root: T.Root,
1469
1490
  Trigger: T.Trigger,
1470
1491
  Portal: T.Portal,
1471
- Positioner: Se,
1492
+ Positioner: Re,
1472
1493
  Popup: Y.Popup,
1473
1494
  Item: Y.Item,
1474
1495
  Separator: Y.Separator,
@@ -1476,7 +1497,7 @@ const Mo = {
1476
1497
  GroupLabel: T.GroupLabel,
1477
1498
  SubmenuRoot: T.SubmenuRoot,
1478
1499
  SubmenuTrigger: T.SubmenuTrigger
1479
- }, Re = s(
1500
+ }, Ie = s(
1480
1501
  function({ className: t, sideOffset: e = 8, ...r }, i) {
1481
1502
  return /* @__PURE__ */ o(
1482
1503
  P.Positioner,
@@ -1488,7 +1509,7 @@ const Mo = {
1488
1509
  }
1489
1510
  );
1490
1511
  }
1491
- ), Ie = s(
1512
+ ), De = s(
1492
1513
  function({ className: t, ...e }, r) {
1493
1514
  return /* @__PURE__ */ o(
1494
1515
  P.Popup,
@@ -1496,15 +1517,15 @@ const Mo = {
1496
1517
  ref: r,
1497
1518
  className: n(
1498
1519
  "gryt-popover max-w-[min(20rem,calc(100vw-2rem))] p-4 outline-none",
1520
+ A,
1499
1521
  S,
1500
- R,
1501
1522
  t
1502
1523
  ),
1503
1524
  ...e
1504
1525
  }
1505
1526
  );
1506
1527
  }
1507
- ), De = s(function({ className: t, ...e }, r) {
1528
+ ), Ae = s(function({ className: t, ...e }, r) {
1508
1529
  return /* @__PURE__ */ o(
1509
1530
  P.Title,
1510
1531
  {
@@ -1516,7 +1537,7 @@ const Mo = {
1516
1537
  ...e
1517
1538
  }
1518
1539
  );
1519
- }), Ae = s(function({ className: t, ...e }, r) {
1540
+ }), Me = s(function({ className: t, ...e }, r) {
1520
1541
  return /* @__PURE__ */ o(
1521
1542
  P.Description,
1522
1543
  {
@@ -1528,17 +1549,23 @@ const Mo = {
1528
1549
  ...e
1529
1550
  }
1530
1551
  );
1531
- }), Bo = {
1552
+ }), Fo = {
1532
1553
  Root: P.Root,
1533
1554
  Trigger: P.Trigger,
1534
1555
  Portal: P.Portal,
1535
- Positioner: Re,
1536
- Popup: Ie,
1537
- Title: De,
1538
- Description: Ae,
1556
+ Positioner: Ie,
1557
+ Popup: De,
1558
+ Title: Ae,
1559
+ Description: Me,
1539
1560
  Close: P.Close,
1540
1561
  Arrow: P.Arrow
1541
- }, Me = s(
1562
+ }, Le = {
1563
+ neutral: "border-white/8 bg-gryt-surface",
1564
+ info: "border-gryt-secondary/30 bg-gryt-secondary/8",
1565
+ success: "border-gryt-success/30 bg-gryt-success/8",
1566
+ warning: "border-gryt-warning/30 bg-gryt-warning/8",
1567
+ danger: "border-gryt-danger/30 bg-gryt-danger/8"
1568
+ }, je = s(
1542
1569
  function({ className: t, ...e }, r) {
1543
1570
  return /* @__PURE__ */ o(
1544
1571
  k.Viewport,
@@ -1553,14 +1580,20 @@ const Mo = {
1553
1580
  }
1554
1581
  );
1555
1582
  }
1556
- ), Le = s(function({ className: t, ...e }, r) {
1583
+ ), Ge = s(function({ className: t, severity: e = "neutral", ...r }, i) {
1557
1584
  return /* @__PURE__ */ o(
1558
1585
  k.Root,
1559
1586
  {
1560
- ref: r,
1587
+ ref: i,
1561
1588
  className: n(
1562
1589
  "gryt-toast relative flex flex-col p-3 pr-9",
1563
- S,
1590
+ // Not popupSurface. That border is --gryt-border, a solid slate line
1591
+ // that is right for a menu anchored to the thing that opened it and too
1592
+ // heavy for a card floating in the corner with nothing behind it. A
1593
+ // white hairline separates it from the page without drawing a box
1594
+ // around it.
1595
+ "rounded-(--gryt-radius-xl) border text-gryt-text",
1596
+ Le[e],
1564
1597
  // Swiping is a pointer gesture, so the toast follows the finger
1565
1598
  // through Base UI's swipe variables before it animates out.
1566
1599
  "transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
@@ -1569,10 +1602,10 @@ const Mo = {
1569
1602
  "motion-reduce:transition-none",
1570
1603
  t
1571
1604
  ),
1572
- ...e
1605
+ ...r
1573
1606
  }
1574
1607
  );
1575
- }), je = s(function({ className: t, ...e }, r) {
1608
+ }), Be = s(function({ className: t, ...e }, r) {
1576
1609
  return /* @__PURE__ */ o(
1577
1610
  k.Title,
1578
1611
  {
@@ -1584,7 +1617,7 @@ const Mo = {
1584
1617
  ...e
1585
1618
  }
1586
1619
  );
1587
- }), Ge = s(function({ className: t, ...e }, r) {
1620
+ }), ze = s(function({ className: t, ...e }, r) {
1588
1621
  return /* @__PURE__ */ o(
1589
1622
  k.Description,
1590
1623
  {
@@ -1596,7 +1629,7 @@ const Mo = {
1596
1629
  ...e
1597
1630
  }
1598
1631
  );
1599
- }), Be = s(function({ className: t, children: e, ...r }, i) {
1632
+ }), Fe = s(function({ className: t, children: e, ...r }, i) {
1600
1633
  return /* @__PURE__ */ o(
1601
1634
  k.Close,
1602
1635
  {
@@ -1613,7 +1646,7 @@ const Mo = {
1613
1646
  children: e ?? /* @__PURE__ */ o(ct, { size: 14, weight: "bold" })
1614
1647
  }
1615
1648
  );
1616
- }), ze = s(function({ className: t, ...e }, r) {
1649
+ }), Ve = s(function({ className: t, ...e }, r) {
1617
1650
  return /* @__PURE__ */ o(
1618
1651
  k.Action,
1619
1652
  {
@@ -1629,16 +1662,16 @@ const Mo = {
1629
1662
  ...e
1630
1663
  }
1631
1664
  );
1632
- }), zo = {
1665
+ }), Vo = {
1633
1666
  Provider: k.Provider,
1634
1667
  Portal: k.Portal,
1635
- Viewport: Me,
1636
- Root: Le,
1637
- Title: je,
1638
- Description: Ge,
1639
- Close: Be,
1640
- Action: ze
1641
- }, Fo = k.useToastManager, Fe = s(
1668
+ Viewport: je,
1669
+ Root: Ge,
1670
+ Title: Be,
1671
+ Description: ze,
1672
+ Close: Fe,
1673
+ Action: Ve
1674
+ }, Eo = k.useToastManager, Ee = s(
1642
1675
  function({ className: t, ...e }, r) {
1643
1676
  return /* @__PURE__ */ o(
1644
1677
  j.Root,
@@ -1649,7 +1682,7 @@ const Mo = {
1649
1682
  }
1650
1683
  );
1651
1684
  }
1652
- ), Ve = s(
1685
+ ), _e = s(
1653
1686
  function({ className: t, ...e }, r) {
1654
1687
  return /* @__PURE__ */ o(
1655
1688
  j.Viewport,
@@ -1664,7 +1697,7 @@ const Mo = {
1664
1697
  }
1665
1698
  );
1666
1699
  }
1667
- ), Ee = s(
1700
+ ), He = s(
1668
1701
  function({ className: t, orientation: e, ...r }, i) {
1669
1702
  return /* @__PURE__ */ o(
1670
1703
  j.Scrollbar,
@@ -1686,13 +1719,13 @@ const Mo = {
1686
1719
  }
1687
1720
  );
1688
1721
  }
1689
- ), Vo = {
1690
- Root: Fe,
1691
- Viewport: Ve,
1692
- Scrollbar: Ee,
1722
+ ), _o = {
1723
+ Root: Ee,
1724
+ Viewport: _e,
1725
+ Scrollbar: He,
1693
1726
  Content: j.Content,
1694
1727
  Corner: j.Corner
1695
- }, _e = {
1728
+ }, Xe = {
1696
1729
  primary: [
1697
1730
  "text-gryt-muted hover:not-data-disabled:bg-white/8",
1698
1731
  "data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
@@ -1713,15 +1746,15 @@ const Mo = {
1713
1746
  "data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
1714
1747
  "data-pressed:hover:not-data-disabled:bg-gryt-danger"
1715
1748
  ].join(" ")
1716
- }, He = {
1749
+ }, Oe = {
1717
1750
  xsmall: "h-8 min-w-8 px-2 text-xs",
1718
1751
  small: "h-9 min-w-9 px-2.5 text-sm",
1719
1752
  medium: "h-10 min-w-10 px-3 text-sm",
1720
1753
  large: "h-12 min-w-12 px-4 text-base"
1721
- }, Eo = s(
1754
+ }, Ho = s(
1722
1755
  function({ className: t, size: e = "medium", tone: r = "primary", ...i }, c) {
1723
1756
  return /* @__PURE__ */ o(
1724
- It,
1757
+ At,
1725
1758
  {
1726
1759
  ref: c,
1727
1760
  className: n(
@@ -1734,18 +1767,18 @@ const Mo = {
1734
1767
  "motion-safe:active:not-data-disabled:scale-[0.94]",
1735
1768
  b,
1736
1769
  G,
1737
- He[e],
1738
- _e[r],
1770
+ Oe[e],
1771
+ Xe[r],
1739
1772
  t
1740
1773
  ),
1741
1774
  ...i
1742
1775
  }
1743
1776
  );
1744
1777
  }
1745
- ), _o = s(
1778
+ ), Xo = s(
1746
1779
  function({ className: t, ...e }, r) {
1747
1780
  return /* @__PURE__ */ o(
1748
- Dt,
1781
+ Mt,
1749
1782
  {
1750
1783
  ref: r,
1751
1784
  className: n(
@@ -1757,13 +1790,13 @@ const Mo = {
1757
1790
  }
1758
1791
  );
1759
1792
  }
1760
- ), Xe = {
1793
+ ), Ye = {
1761
1794
  primary: "bg-gryt-accent",
1762
1795
  success: "bg-gryt-success",
1763
1796
  warning: "bg-gryt-warning",
1764
1797
  danger: "bg-gryt-danger"
1765
1798
  };
1766
- function Ho({
1799
+ function Oo({
1767
1800
  className: a,
1768
1801
  value: t,
1769
1802
  label: e,
@@ -1787,7 +1820,8 @@ function Ho({
1787
1820
  {
1788
1821
  className: n(
1789
1822
  "h-full rounded-(--gryt-radius-full)",
1790
- Xe[i]
1823
+ "transition-[width] duration-120 ease-out motion-reduce:transition-none",
1824
+ Ye[i]
1791
1825
  )
1792
1826
  }
1793
1827
  ) })
@@ -1795,10 +1829,10 @@ function Ho({
1795
1829
  }
1796
1830
  );
1797
1831
  }
1798
- const Oe = s(
1832
+ const Ue = s(
1799
1833
  function({ className: t, ...e }, r) {
1800
1834
  return /* @__PURE__ */ o(
1801
- C.Popup,
1835
+ $.Popup,
1802
1836
  {
1803
1837
  ref: r,
1804
1838
  className: n(
@@ -1815,9 +1849,9 @@ const Oe = s(
1815
1849
  }
1816
1850
  );
1817
1851
  }
1818
- ), Ye = s(function({ className: t, ...e }, r) {
1852
+ ), We = s(function({ className: t, ...e }, r) {
1819
1853
  return /* @__PURE__ */ o(
1820
- C.Backdrop,
1854
+ $.Backdrop,
1821
1855
  {
1822
1856
  ref: r,
1823
1857
  className: n(
@@ -1830,9 +1864,9 @@ const Oe = s(
1830
1864
  ...e
1831
1865
  }
1832
1866
  );
1833
- }), Ue = s(function({ className: t, ...e }, r) {
1867
+ }), Qe = s(function({ className: t, ...e }, r) {
1834
1868
  return /* @__PURE__ */ o(
1835
- C.Title,
1869
+ $.Title,
1836
1870
  {
1837
1871
  ref: r,
1838
1872
  className: n(
@@ -1842,9 +1876,9 @@ const Oe = s(
1842
1876
  ...e
1843
1877
  }
1844
1878
  );
1845
- }), We = s(function({ className: t, ...e }, r) {
1879
+ }), Je = s(function({ className: t, ...e }, r) {
1846
1880
  return /* @__PURE__ */ o(
1847
- C.Description,
1881
+ $.Description,
1848
1882
  {
1849
1883
  ref: r,
1850
1884
  className: n(
@@ -1854,16 +1888,16 @@ const Oe = s(
1854
1888
  ...e
1855
1889
  }
1856
1890
  );
1857
- }), Xo = {
1858
- Root: C.Root,
1859
- Trigger: C.Trigger,
1860
- Portal: C.Portal,
1861
- Backdrop: Ye,
1862
- Popup: Oe,
1863
- Title: Ue,
1864
- Description: We,
1865
- Close: C.Close
1866
- }, yt = [
1891
+ }), Yo = {
1892
+ Root: $.Root,
1893
+ Trigger: $.Trigger,
1894
+ Portal: $.Portal,
1895
+ Backdrop: We,
1896
+ Popup: Ue,
1897
+ Title: Qe,
1898
+ Description: Je,
1899
+ Close: $.Close
1900
+ }, pt = [
1867
1901
  "flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
1868
1902
  "px-3 py-2 text-sm text-gryt-text outline-none select-none",
1869
1903
  // Base UI drives keyboard and pointer highlight through one attribute, so
@@ -1871,20 +1905,21 @@ const Oe = s(
1871
1905
  "data-highlighted:bg-gryt-surface-raised",
1872
1906
  "data-selected:text-gryt-accent",
1873
1907
  "data-disabled:cursor-not-allowed data-disabled:opacity-50"
1874
- ].join(" "), mt = [
1875
- "w-full rounded-(--gryt-radius-input) border border-gryt-border bg-gryt-surface-raised",
1876
- "px-3 py-2 text-sm text-gryt-text outline-none placeholder:text-gryt-muted",
1908
+ ].join(" "), bt = [
1909
+ gt,
1910
+ ut.medium,
1911
+ "border-gryt-border",
1877
1912
  b
1878
- ].join(" "), Qe = s(function({ className: t, ...e }, r) {
1913
+ ].join(" "), Ke = s(function({ className: t, ...e }, r) {
1879
1914
  return /* @__PURE__ */ o(
1880
1915
  g.Input,
1881
1916
  {
1882
1917
  ref: r,
1883
- className: n("gryt-combobox-input", mt, t),
1918
+ className: n("gryt-combobox-input", bt, t),
1884
1919
  ...e
1885
1920
  }
1886
1921
  );
1887
- }), Je = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
1922
+ }), Ze = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
1888
1923
  return /* @__PURE__ */ o(
1889
1924
  g.Positioner,
1890
1925
  {
@@ -1894,7 +1929,7 @@ const Oe = s(
1894
1929
  ...r
1895
1930
  }
1896
1931
  );
1897
- }), Ke = s(
1932
+ }), qe = s(
1898
1933
  function({ className: t, ...e }, r) {
1899
1934
  return /* @__PURE__ */ o(
1900
1935
  g.Popup,
@@ -1902,24 +1937,24 @@ const Oe = s(
1902
1937
  ref: r,
1903
1938
  className: n(
1904
1939
  "gryt-combobox max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
1940
+ A,
1905
1941
  S,
1906
- R,
1907
1942
  t
1908
1943
  ),
1909
1944
  ...e
1910
1945
  }
1911
1946
  );
1912
1947
  }
1913
- ), Ze = s(function({ className: t, ...e }, r) {
1948
+ ), tr = s(function({ className: t, ...e }, r) {
1914
1949
  return /* @__PURE__ */ o(
1915
1950
  g.Item,
1916
1951
  {
1917
1952
  ref: r,
1918
- className: n("gryt-combobox-item", yt, t),
1953
+ className: n("gryt-combobox-item", pt, t),
1919
1954
  ...e
1920
1955
  }
1921
1956
  );
1922
- }), qe = s(function({ className: t, ...e }, r) {
1957
+ }), er = s(function({ className: t, ...e }, r) {
1923
1958
  return /* @__PURE__ */ o(
1924
1959
  g.Empty,
1925
1960
  {
@@ -1931,9 +1966,9 @@ const Oe = s(
1931
1966
  ...e
1932
1967
  }
1933
1968
  );
1934
- }), Oo = {
1969
+ }), Uo = {
1935
1970
  Root: g.Root,
1936
- Input: Qe,
1971
+ Input: Ke,
1937
1972
  InputGroup: g.InputGroup,
1938
1973
  Trigger: g.Trigger,
1939
1974
  Icon: g.Icon,
@@ -1943,25 +1978,25 @@ const Oe = s(
1943
1978
  Chip: g.Chip,
1944
1979
  ChipRemove: g.ChipRemove,
1945
1980
  Portal: g.Portal,
1946
- Positioner: Je,
1947
- Popup: Ke,
1981
+ Positioner: Ze,
1982
+ Popup: qe,
1948
1983
  List: g.List,
1949
- Item: Ze,
1984
+ Item: tr,
1950
1985
  ItemIndicator: g.ItemIndicator,
1951
1986
  Group: g.Group,
1952
1987
  GroupLabel: g.GroupLabel,
1953
- Empty: qe,
1988
+ Empty: er,
1954
1989
  Separator: g.Separator
1955
- }, tr = s(function({ className: t, ...e }, r) {
1990
+ }, rr = s(function({ className: t, ...e }, r) {
1956
1991
  return /* @__PURE__ */ o(
1957
1992
  p.Input,
1958
1993
  {
1959
1994
  ref: r,
1960
- className: n("gryt-autocomplete-input", mt, t),
1995
+ className: n("gryt-autocomplete-input", bt, t),
1961
1996
  ...e
1962
1997
  }
1963
1998
  );
1964
- }), er = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
1999
+ }), or = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
1965
2000
  return /* @__PURE__ */ o(
1966
2001
  p.Positioner,
1967
2002
  {
@@ -1971,30 +2006,30 @@ const Oe = s(
1971
2006
  ...r
1972
2007
  }
1973
2008
  );
1974
- }), rr = s(function({ className: t, ...e }, r) {
2009
+ }), ar = s(function({ className: t, ...e }, r) {
1975
2010
  return /* @__PURE__ */ o(
1976
2011
  p.Popup,
1977
2012
  {
1978
2013
  ref: r,
1979
2014
  className: n(
1980
2015
  "gryt-autocomplete max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
2016
+ A,
1981
2017
  S,
1982
- R,
1983
2018
  t
1984
2019
  ),
1985
2020
  ...e
1986
2021
  }
1987
2022
  );
1988
- }), or = s(function({ className: t, ...e }, r) {
2023
+ }), nr = s(function({ className: t, ...e }, r) {
1989
2024
  return /* @__PURE__ */ o(
1990
2025
  p.Item,
1991
2026
  {
1992
2027
  ref: r,
1993
- className: n("gryt-autocomplete-item", yt, t),
2028
+ className: n("gryt-autocomplete-item", pt, t),
1994
2029
  ...e
1995
2030
  }
1996
2031
  );
1997
- }), ar = s(function({ className: t, ...e }, r) {
2032
+ }), ir = s(function({ className: t, ...e }, r) {
1998
2033
  return /* @__PURE__ */ o(
1999
2034
  p.Empty,
2000
2035
  {
@@ -2006,27 +2041,27 @@ const Oe = s(
2006
2041
  ...e
2007
2042
  }
2008
2043
  );
2009
- }), Yo = {
2044
+ }), Wo = {
2010
2045
  Root: p.Root,
2011
- Input: tr,
2046
+ Input: rr,
2012
2047
  InputGroup: p.InputGroup,
2013
2048
  Trigger: p.Trigger,
2014
2049
  Icon: p.Icon,
2015
2050
  Clear: p.Clear,
2016
2051
  Value: p.Value,
2017
2052
  Portal: p.Portal,
2018
- Positioner: er,
2019
- Popup: rr,
2053
+ Positioner: or,
2054
+ Popup: ar,
2020
2055
  List: p.List,
2021
- Item: or,
2056
+ Item: nr,
2022
2057
  Group: p.Group,
2023
2058
  GroupLabel: p.GroupLabel,
2024
- Empty: ar,
2059
+ Empty: ir,
2025
2060
  Separator: p.Separator
2026
- }, Uo = s(
2061
+ }, Qo = s(
2027
2062
  function({ className: t, ...e }, r) {
2028
2063
  return /* @__PURE__ */ o(
2029
- At,
2064
+ Lt,
2030
2065
  {
2031
2066
  ref: r,
2032
2067
  className: n("gryt-checkbox-group flex flex-col gap-2", t),
@@ -2034,7 +2069,7 @@ const Oe = s(
2034
2069
  }
2035
2070
  );
2036
2071
  }
2037
- ), nr = s(
2072
+ ), sr = s(
2038
2073
  function({ className: t, ...e }, r) {
2039
2074
  return /* @__PURE__ */ o(
2040
2075
  Q.Trigger,
@@ -2052,7 +2087,7 @@ const Oe = s(
2052
2087
  }
2053
2088
  );
2054
2089
  }
2055
- ), ir = s(
2090
+ ), cr = s(
2056
2091
  function({ className: t, ...e }, r) {
2057
2092
  return /* @__PURE__ */ o(
2058
2093
  Q.Panel,
@@ -2071,20 +2106,20 @@ const Oe = s(
2071
2106
  }
2072
2107
  );
2073
2108
  }
2074
- ), Wo = {
2109
+ ), Jo = {
2075
2110
  Root: Q.Root,
2076
- Trigger: nr,
2077
- Panel: ir
2078
- }, Qo = s(function({ className: t, ...e }, r) {
2111
+ Trigger: sr,
2112
+ Panel: cr
2113
+ }, Ko = s(function({ className: t, ...e }, r) {
2079
2114
  return /* @__PURE__ */ o(
2080
- Mt,
2115
+ jt,
2081
2116
  {
2082
2117
  ref: r,
2083
2118
  className: n("gryt-form flex flex-col gap-(--gryt-space-lg)", t),
2084
2119
  ...e
2085
2120
  }
2086
2121
  );
2087
- }), sr = s(
2122
+ }), lr = s(
2088
2123
  function({ className: t, ...e }, r) {
2089
2124
  return /* @__PURE__ */ o(
2090
2125
  dt.Root,
@@ -2098,7 +2133,7 @@ const Oe = s(
2098
2133
  }
2099
2134
  );
2100
2135
  }
2101
- ), cr = s(function({ className: t, ...e }, r) {
2136
+ ), dr = s(function({ className: t, ...e }, r) {
2102
2137
  return /* @__PURE__ */ o(
2103
2138
  dt.Legend,
2104
2139
  {
@@ -2110,10 +2145,10 @@ const Oe = s(
2110
2145
  ...e
2111
2146
  }
2112
2147
  );
2113
- }), Jo = { Root: sr, Legend: cr }, Ko = s(
2148
+ }), Zo = { Root: lr, Legend: dr }, qo = s(
2114
2149
  function({ className: t, ...e }, r) {
2115
2150
  return /* @__PURE__ */ o(
2116
- Lt,
2151
+ Gt,
2117
2152
  {
2118
2153
  ref: r,
2119
2154
  className: n(
@@ -2125,7 +2160,7 @@ const Oe = s(
2125
2160
  }
2126
2161
  );
2127
2162
  }
2128
- ), lr = s(function({ className: t, ...e }, r) {
2163
+ ), gr = s(function({ className: t, ...e }, r) {
2129
2164
  return /* @__PURE__ */ o(
2130
2165
  h.Trigger,
2131
2166
  {
@@ -2141,21 +2176,21 @@ const Oe = s(
2141
2176
  ...e
2142
2177
  }
2143
2178
  );
2144
- }), dr = s(function({ className: t, ...e }, r) {
2179
+ }), ur = s(function({ className: t, ...e }, r) {
2145
2180
  return /* @__PURE__ */ o(
2146
2181
  h.Popup,
2147
2182
  {
2148
2183
  ref: r,
2149
2184
  className: n(
2150
2185
  "gryt-navigation-menu-popup outline-none",
2186
+ A,
2151
2187
  S,
2152
- R,
2153
2188
  t
2154
2189
  ),
2155
2190
  ...e
2156
2191
  }
2157
2192
  );
2158
- }), gr = s(function({ className: t, ...e }, r) {
2193
+ }), yr = s(function({ className: t, ...e }, r) {
2159
2194
  return /* @__PURE__ */ o(
2160
2195
  h.Viewport,
2161
2196
  {
@@ -2167,7 +2202,7 @@ const Oe = s(
2167
2202
  ...e
2168
2203
  }
2169
2204
  );
2170
- }), ur = s(function({ className: t, ...e }, r) {
2205
+ }), mr = s(function({ className: t, ...e }, r) {
2171
2206
  return /* @__PURE__ */ o(
2172
2207
  h.Link,
2173
2208
  {
@@ -2182,34 +2217,34 @@ const Oe = s(
2182
2217
  ...e
2183
2218
  }
2184
2219
  );
2185
- }), Zo = {
2220
+ }), ta = {
2186
2221
  Root: h.Root,
2187
2222
  List: h.List,
2188
2223
  Item: h.Item,
2189
- Trigger: lr,
2224
+ Trigger: gr,
2190
2225
  Content: h.Content,
2191
2226
  Portal: h.Portal,
2192
2227
  Positioner: h.Positioner,
2193
- Viewport: gr,
2194
- Popup: dr,
2195
- Link: ur,
2228
+ Viewport: yr,
2229
+ Popup: ur,
2230
+ Link: mr,
2196
2231
  Icon: h.Icon,
2197
2232
  Arrow: h.Arrow
2198
- }, nt = "flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50", qo = s(
2233
+ }, nt = "flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50", ea = s(
2199
2234
  function({ className: t, label: e, scrubbable: r = !1, ...i }, c) {
2200
2235
  return /* @__PURE__ */ d(
2201
- I.Root,
2236
+ R.Root,
2202
2237
  {
2203
2238
  ref: c,
2204
2239
  className: n("gryt-number-field flex flex-col gap-1.5", t),
2205
2240
  ...i,
2206
2241
  children: [
2207
- e && (r ? /* @__PURE__ */ d(I.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
2242
+ e && (r ? /* @__PURE__ */ d(R.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
2208
2243
  e,
2209
- /* @__PURE__ */ o(I.ScrubAreaCursor, {})
2244
+ /* @__PURE__ */ o(R.ScrubAreaCursor, {})
2210
2245
  ] }) : /* @__PURE__ */ o("span", { className: "text-sm text-gryt-muted", children: e })),
2211
2246
  /* @__PURE__ */ d(
2212
- I.Group,
2247
+ R.Group,
2213
2248
  {
2214
2249
  className: n(
2215
2250
  "flex w-fit items-center overflow-hidden rounded-(--gryt-radius-full)",
@@ -2219,15 +2254,15 @@ const Oe = s(
2219
2254
  ),
2220
2255
  children: [
2221
2256
  /* @__PURE__ */ o(
2222
- I.Decrement,
2257
+ R.Decrement,
2223
2258
  {
2224
2259
  "aria-label": "Decrease",
2225
2260
  className: n(nt, "rounded-l-(--gryt-radius-full)"),
2226
- children: /* @__PURE__ */ o($t, { size: 14, weight: "bold" })
2261
+ children: /* @__PURE__ */ o(St, { size: 14, weight: "bold" })
2227
2262
  }
2228
2263
  ),
2229
2264
  /* @__PURE__ */ o(
2230
- I.Input,
2265
+ R.Input,
2231
2266
  {
2232
2267
  className: n(
2233
2268
  "w-16 border-0 bg-transparent px-1 py-2 text-center",
@@ -2237,11 +2272,11 @@ const Oe = s(
2237
2272
  }
2238
2273
  ),
2239
2274
  /* @__PURE__ */ o(
2240
- I.Increment,
2275
+ R.Increment,
2241
2276
  {
2242
2277
  "aria-label": "Increase",
2243
2278
  className: n(nt, "rounded-r-(--gryt-radius-full)"),
2244
- children: /* @__PURE__ */ o(Ct, { size: 14, weight: "bold" })
2279
+ children: /* @__PURE__ */ o(Rt, { size: 14, weight: "bold" })
2245
2280
  }
2246
2281
  )
2247
2282
  ]
@@ -2251,7 +2286,7 @@ const Oe = s(
2251
2286
  }
2252
2287
  );
2253
2288
  }
2254
- ), ta = s(
2289
+ ), ra = s(
2255
2290
  function({ className: t, length: e = 6, ...r }, i) {
2256
2291
  return /* @__PURE__ */ o(
2257
2292
  rt.Root,
@@ -2277,7 +2312,7 @@ const Oe = s(
2277
2312
  }
2278
2313
  );
2279
2314
  }
2280
- ), yr = s(
2315
+ ), pr = s(
2281
2316
  function({ className: t, sideOffset: e = 8, ...r }, i) {
2282
2317
  return /* @__PURE__ */ o(
2283
2318
  M.Positioner,
@@ -2289,7 +2324,7 @@ const Oe = s(
2289
2324
  }
2290
2325
  );
2291
2326
  }
2292
- ), mr = s(
2327
+ ), br = s(
2293
2328
  function({ className: t, ...e }, r) {
2294
2329
  return /* @__PURE__ */ o(
2295
2330
  M.Popup,
@@ -2297,22 +2332,22 @@ const Oe = s(
2297
2332
  ref: r,
2298
2333
  className: n(
2299
2334
  "gryt-preview-card w-64 max-w-[calc(100vw-2rem)] p-4 outline-none",
2335
+ A,
2300
2336
  S,
2301
- R,
2302
2337
  t
2303
2338
  ),
2304
2339
  ...e
2305
2340
  }
2306
2341
  );
2307
2342
  }
2308
- ), ea = {
2343
+ ), oa = {
2309
2344
  Root: M.Root,
2310
2345
  Trigger: M.Trigger,
2311
2346
  Portal: M.Portal,
2312
- Positioner: yr,
2313
- Popup: mr,
2347
+ Positioner: pr,
2348
+ Popup: br,
2314
2349
  Arrow: M.Arrow
2315
- }, pr = s(function({ className: t, ...e }, r) {
2350
+ }, fr = s(function({ className: t, ...e }, r) {
2316
2351
  return /* @__PURE__ */ o(
2317
2352
  L.Root,
2318
2353
  {
@@ -2325,7 +2360,7 @@ const Oe = s(
2325
2360
  ...e
2326
2361
  }
2327
2362
  );
2328
- }), br = s(function({ className: t, ...e }, r) {
2363
+ }), xr = s(function({ className: t, ...e }, r) {
2329
2364
  return /* @__PURE__ */ o(
2330
2365
  L.Separator,
2331
2366
  {
@@ -2334,73 +2369,73 @@ const Oe = s(
2334
2369
  ...e
2335
2370
  }
2336
2371
  );
2337
- }), ra = {
2338
- Root: pr,
2372
+ }), aa = {
2373
+ Root: fr,
2339
2374
  Group: L.Group,
2340
2375
  Button: L.Button,
2341
2376
  Link: L.Link,
2342
2377
  Input: L.Input,
2343
- Separator: br
2378
+ Separator: xr
2344
2379
  };
2345
2380
  export {
2346
- jo as Accordion,
2347
- So as Alert,
2348
- Xo as AlertDialog,
2349
- Yo as Autocomplete,
2350
- Wt as Avatar,
2351
- yo as Badge,
2352
- Ft as Button,
2353
- ko as Card,
2354
- Co as CardActions,
2355
- $o as CardContent,
2356
- To as CardHeader,
2357
- po as Checkbox,
2358
- Uo as CheckboxGroup,
2359
- mo as Chip,
2360
- Wo as Collapsible,
2361
- Oo as Combobox,
2362
- go as Composer,
2363
- Go as ContextMenu,
2364
- uo as ConversationItem,
2365
- Ao as Dialog,
2366
- Po as Divider,
2367
- Mo as Drawer,
2368
- Jo as Fieldset,
2369
- Qo as Form,
2370
- no as GrytProvider,
2371
- io as IconButton,
2381
+ Bo as Accordion,
2382
+ Io as Alert,
2383
+ Yo as AlertDialog,
2384
+ Wo as Autocomplete,
2385
+ Qt as Avatar,
2386
+ po as Badge,
2387
+ Et as Button,
2388
+ Co as Card,
2389
+ Ro as CardActions,
2390
+ So as CardContent,
2391
+ $o as CardHeader,
2392
+ fo as Checkbox,
2393
+ Qo as CheckboxGroup,
2394
+ bo as Chip,
2395
+ Jo as Collapsible,
2396
+ Uo as Combobox,
2397
+ yo as Composer,
2398
+ zo as ContextMenu,
2399
+ mo as ConversationItem,
2400
+ Lo as Dialog,
2401
+ To as Divider,
2402
+ jo as Drawer,
2403
+ Zo as Fieldset,
2404
+ Ko as Form,
2405
+ so as GrytProvider,
2406
+ co as IconButton,
2372
2407
  Y as Menu,
2373
- Ko as Menubar,
2374
- co as MessageBubble,
2375
- Ho as Meter,
2376
- Zo as NavigationMenu,
2377
- qo as NumberField,
2378
- ta as OtpField,
2379
- Bo as Popover,
2380
- ea as PreviewCard,
2381
- Ro as Progress,
2382
- bo as Radio,
2383
- fo as RadioGroup,
2384
- Vo as ScrollArea,
2385
- wo as Select,
2386
- Do as Skeleton,
2387
- ho as Slider,
2388
- Io as Spinner,
2389
- so as Surface,
2390
- xo as Switch,
2391
- ve as Tab,
2392
- Lo as Tabs,
2393
- lo as TextField,
2394
- zo as Toast,
2395
- Eo as Toggle,
2396
- _o as ToggleGroup,
2397
- ra as Toolbar,
2398
- vo as Tooltip,
2399
- No as TooltipProvider,
2408
+ qo as Menubar,
2409
+ go as MessageBubble,
2410
+ Oo as Meter,
2411
+ ta as NavigationMenu,
2412
+ ea as NumberField,
2413
+ ra as OtpField,
2414
+ Fo as Popover,
2415
+ oa as PreviewCard,
2416
+ Do as Progress,
2417
+ xo as Radio,
2418
+ ho as RadioGroup,
2419
+ _o as ScrollArea,
2420
+ No as Select,
2421
+ Mo as Skeleton,
2422
+ vo as Slider,
2423
+ Ao as Spinner,
2424
+ lo as Surface,
2425
+ wo as Switch,
2426
+ Ne as Tab,
2427
+ Go as Tabs,
2428
+ uo as TextField,
2429
+ Vo as Toast,
2430
+ Ho as Toggle,
2431
+ Xo as ToggleGroup,
2432
+ aa as Toolbar,
2433
+ Po as Tooltip,
2434
+ ko as TooltipProvider,
2400
2435
  n as cn,
2401
- jt as createGrytTheme,
2436
+ Bt as createGrytTheme,
2402
2437
  ot as grytTokens,
2403
- ne as useMediaQuery,
2404
- Fo as useToastManager
2438
+ ie as useMediaQuery,
2439
+ Eo as useToastManager
2405
2440
  };
2406
2441
  //# sourceMappingURL=index.js.map