@hirobius/design-system 0.19.0 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,25 +10,25 @@ import { cva as D } from "class-variance-authority";
10
10
  import { Info as Ve, TriangleAlert as xt, CircleX as kt, CircleCheck as $t, Check as le, Circle as Ct, ChevronRight as Ie, Github as pa, ArrowUpRight as ua, Copy as ma, Loader2 as ha, X as Ge, Minus as St, ChevronDown as Dt, Calendar as je, ChevronsUpDown as fa, ChevronLeft as ga, Plus as va, Link as ya } from "lucide-react";
11
11
  import x, { tokenValues as Ye } from "./tokens.js";
12
12
  import { cn as m } from "./cn.js";
13
- import { $ as ee, a0 as O, a1 as ba, a2 as ge, B as Ze, a as ve, a3 as Tt, a4 as se, a5 as te, a6 as wa, a7 as xa, a8 as ka, a9 as $a, aa as Fe, ab as qt, ac as Ca, ad as Sa, ae as Nt, af as Pt, ag as Da, ah as nt, ai as Ta, aj as ot, ak as qa, al as ne, g as Me, am as Rt, S as ae, k as It, T as me, an as st, N as We, ao as Na, ap as Se, d as Pa, e as Ra, f as Ia, h as Ma, i as Ea, j as Oa, D as za, F as La, L as Ha, O as Aa, P as Ba, R as Va, l as Fa, m as Wa, n as _a, o as Ua, p as Ga } from "./chunks/activity-feed-DIMeUJpW.js";
14
- import { A as Rd, b as Id, aq as Md, ar as Ed, as as Od, at as zd, au as Ld, av as Hd, aw as Ad, C as Bd, ax as Vd, ay as Fd, az as Wd, aA as _d, aB as Ud, aC as Gd, aD as jd, aE as Yd, aF as Zd, aG as Xd, E as Kd, G as Qd, aH as Jd, aI as ec, c as tc, q as ac, r as rc, s as ic, t as nc, u as oc, v as sc, aJ as lc, aK as dc, w as cc, x as pc, y as uc, z as mc, H as hc, I as fc, J as gc, K as vc, M as yc, Q as bc, U as wc, V as xc, W as kc, X as $c, Y as Cc, Z as Sc, _ as Dc, aL as Tc, aM as qc, aN as Nc, aO as Pc, aP as Rc, aQ as Ic } from "./chunks/activity-feed-DIMeUJpW.js";
15
- import { F as ja, u as qe, a as Xe } from "./chunks/LanguageContext-CH_bwzCq.js";
16
- import { H as Ec } from "./chunks/LanguageContext-CH_bwzCq.js";
13
+ import { $ as ee, a0 as O, a1 as ba, a2 as ge, B as Ze, a as ve, a3 as Tt, a4 as se, a5 as te, a6 as wa, a7 as xa, a8 as ka, a9 as $a, aa as Fe, ab as qt, ac as Ca, ad as Sa, ae as Nt, af as Pt, ag as Da, ah as nt, ai as Ta, aj as ot, ak as qa, al as ne, g as Me, am as Rt, S as ae, k as It, T as me, an as st, N as We, ao as Na, ap as Se, d as Pa, e as Ra, f as Ia, h as Ma, i as Ea, j as Oa, D as za, F as La, L as Ha, O as Aa, P as Ba, R as Va, l as Fa, m as Wa, n as _a, o as Ua, p as Ga } from "./chunks/activity-feed-BGQ6v3wc.js";
14
+ import { A as Rd, b as Id, aq as Md, ar as Ed, as as Od, at as zd, au as Ld, av as Hd, aw as Ad, C as Bd, ax as Vd, ay as Fd, az as Wd, aA as _d, aB as Ud, aC as Gd, aD as jd, aE as Yd, aF as Zd, aG as Xd, E as Kd, G as Qd, aH as Jd, aI as ec, c as tc, q as ac, r as rc, s as ic, t as nc, u as oc, v as sc, aJ as lc, aK as dc, w as cc, x as pc, y as uc, z as mc, H as hc, I as fc, J as gc, K as vc, M as yc, Q as bc, U as wc, V as xc, W as kc, X as $c, Y as Cc, Z as Sc, _ as Dc, aL as Tc, aM as qc, aN as Nc, aO as Pc, aP as Rc, aQ as Ic } from "./chunks/activity-feed-BGQ6v3wc.js";
15
+ import { F as ja, u as qe, a as Xe } from "./chunks/LanguageContext-BxdCwiFg.js";
16
+ import { H as Ec } from "./chunks/LanguageContext-BxdCwiFg.js";
17
17
  import * as F from "@radix-ui/react-dropdown-menu";
18
18
  import * as ye from "@radix-ui/react-popover";
19
19
  import * as he from "@radix-ui/react-tooltip";
20
20
  import * as lt from "@radix-ui/react-toggle-group";
21
21
  import * as K from "@radix-ui/react-select";
22
- import { u as Ya } from "./chunks/TokenDisplayContext-evZi_214.js";
22
+ import { u as Ya } from "./chunks/TokenDisplayContext-DKYJMVWk.js";
23
23
  import * as Za from "@radix-ui/react-toggle";
24
24
  import * as Xa from "@radix-ui/react-aspect-ratio";
25
25
  import * as Ee from "@radix-ui/react-hover-card";
26
26
  import * as W from "@radix-ui/react-context-menu";
27
27
  import * as Oe from "@radix-ui/react-tabs";
28
- import { F as Ka } from "./chunks/form-BvNNnJ0t.js";
29
- import { b as zc, a as Lc, u as Hc } from "./chunks/form-BvNNnJ0t.js";
28
+ import { F as Ka } from "./chunks/form-COP3vK9_.js";
29
+ import { b as zc, a as Lc, u as Hc } from "./chunks/form-COP3vK9_.js";
30
30
  import * as ce from "@radix-ui/react-toast";
31
- const Qa = D(
31
+ const Qa = /* @__PURE__ */ D(
32
32
  "flex gap-[var(--semantic-space-scale-xs)] p-[var(--semantic-space-scale-xs)] rounded-[var(--primitive-radius-4)]",
33
33
  // tier-ok: 4px primitive radius, no semantic 4px token
34
34
  {
@@ -51,7 +51,7 @@ const Qa = D(
51
51
  danger: { icon: kt, colorVar: "var(--semantic-color-feedback-error)" },
52
52
  warning: { icon: xt, colorVar: "var(--semantic-color-feedback-warning)" },
53
53
  info: { icon: Ve, colorVar: "var(--semantic-color-feedback-info)" }
54
- }, js = X.forwardRef(function({ tone: a = "info", title: e, children: t }, r) {
54
+ }, js = /* @__PURE__ */ X.forwardRef(function({ tone: a = "info", title: e, children: t }, r) {
55
55
  const { icon: n, colorVar: s } = Ja[a], l = !!e, c = ee("productive");
56
56
  return /* @__PURE__ */ f(
57
57
  A.div,
@@ -119,7 +119,7 @@ const Qa = D(
119
119
  ]
120
120
  }
121
121
  );
122
- }), er = D(
122
+ }), er = /* @__PURE__ */ D(
123
123
  "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground font-medium uppercase select-none",
124
124
  {
125
125
  variants: {
@@ -137,27 +137,29 @@ function tr(i) {
137
137
  const a = i.trim().split(/\s+/).filter(Boolean);
138
138
  return a.length === 0 ? "" : a.length === 1 ? a[0].slice(0, 2) : (a[0][0] ?? "") + (a[a.length - 1][0] ?? "");
139
139
  }
140
- const Ys = g.forwardRef(function({ className: a, size: e, src: t, alt: r, initials: n, ...s }, l) {
141
- const [c, d] = g.useState(!1), p = !!t && !c, u = n || tr(r);
142
- return /* @__PURE__ */ o(
143
- "span",
144
- {
145
- ref: l,
146
- "data-size": e ?? "md",
147
- className: m(er({ size: e }), a),
148
- ...s,
149
- children: p ? /* @__PURE__ */ o(
150
- "img",
151
- {
152
- src: t,
153
- alt: r,
154
- className: "h-full w-full object-cover",
155
- onError: () => d(!0)
156
- }
157
- ) : /* @__PURE__ */ o("span", { "aria-label": r, role: "img", children: u })
158
- }
159
- );
160
- }), ar = D(
140
+ const Ys = /* @__PURE__ */ g.forwardRef(
141
+ function({ className: a, size: e, src: t, alt: r, initials: n, ...s }, l) {
142
+ const [c, d] = g.useState(!1), p = !!t && !c, u = n || tr(r);
143
+ return /* @__PURE__ */ o(
144
+ "span",
145
+ {
146
+ ref: l,
147
+ "data-size": e ?? "md",
148
+ className: m(er({ size: e }), a),
149
+ ...s,
150
+ children: p ? /* @__PURE__ */ o(
151
+ "img",
152
+ {
153
+ src: t,
154
+ alt: r,
155
+ className: "h-full w-full object-cover",
156
+ onError: () => d(!0)
157
+ }
158
+ ) : /* @__PURE__ */ o("span", { "aria-label": r, role: "img", children: u })
159
+ }
160
+ );
161
+ }
162
+ ), ar = /* @__PURE__ */ D(
161
163
  "inline-flex w-fit items-center justify-center whitespace-nowrap box-border leading-none uppercase font-medium text-xs tracking-caps h-[var(--component-badge-height)] min-w-[var(--component-badge-minWidth)] px-[var(--component-badge-paddingX)] py-[var(--component-badge-paddingY)] rounded-[var(--component-badge-radius)]",
162
164
  {
163
165
  variants: {
@@ -172,7 +174,7 @@ const Ys = g.forwardRef(function({ className: a, size: e, src: t, alt: r, initia
172
174
  },
173
175
  defaultVariants: { tone: "neutral" }
174
176
  }
175
- ), Zs = g.forwardRef(function({ className: a, tone: e, as: t = "span", children: r, ...n }, s) {
177
+ ), Zs = /* @__PURE__ */ g.forwardRef(function({ className: a, tone: e, as: t = "span", children: r, ...n }, s) {
176
178
  return /* @__PURE__ */ o(
177
179
  t,
178
180
  {
@@ -335,7 +337,7 @@ function kr(i) {
335
337
  }
336
338
  return a;
337
339
  }
338
- const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children: r, ...n }, s) {
340
+ const Xs = /* @__PURE__ */ X.forwardRef(function({ as: a = "div", sx: e, className: t, children: r, ...n }, s) {
339
341
  const l = e ? kr(e) : void 0;
340
342
  return /* @__PURE__ */ o(
341
343
  a,
@@ -348,33 +350,38 @@ const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children:
348
350
  children: r
349
351
  }
350
352
  );
351
- }), $r = D("border-l-[3px] p-[var(--semantic-space-surface-padding)]", {
352
- variants: {
353
- tone: {
354
- accent: "border-l-[color:var(--semantic-color-content-accent)] bg-[color:var(--semantic-color-surface-raised)]",
355
- info: "border-l-feedback-info bg-[color:var(--semantic-color-surface-raised)]",
356
- success: "border-l-feedback-success bg-[color:var(--semantic-color-surface-raised)]",
357
- warning: "border-l-feedback-warning bg-[color:var(--semantic-color-surface-raised)]",
358
- danger: "border-l-feedback-danger bg-[color:var(--semantic-color-surface-page)]"
353
+ }), $r = /* @__PURE__ */ D(
354
+ "border-l-[3px] p-[var(--semantic-space-surface-padding)]",
355
+ {
356
+ variants: {
357
+ tone: {
358
+ accent: "border-l-[color:var(--semantic-color-content-accent)] bg-[color:var(--semantic-color-surface-raised)]",
359
+ info: "border-l-feedback-info bg-[color:var(--semantic-color-surface-raised)]",
360
+ success: "border-l-feedback-success bg-[color:var(--semantic-color-surface-raised)]",
361
+ warning: "border-l-feedback-warning bg-[color:var(--semantic-color-surface-raised)]",
362
+ danger: "border-l-feedback-danger bg-[color:var(--semantic-color-surface-page)]"
363
+ },
364
+ italic: {
365
+ true: "italic",
366
+ false: "not-italic"
367
+ }
359
368
  },
360
- italic: {
361
- true: "italic",
362
- false: "not-italic"
363
- }
364
- },
365
- defaultVariants: { tone: "info", italic: !1 }
366
- }), Ks = g.forwardRef(function({ tone: a = "info", italic: e = !1, className: t, children: r, ...n }, s) {
367
- return /* @__PURE__ */ o(
368
- "div",
369
- {
370
- ref: s,
371
- "data-tone": a,
372
- className: m($r({ tone: a, italic: e }), t),
373
- ...n,
374
- children: r
375
- }
376
- );
377
- }), Cr = D("text-sm", {
369
+ defaultVariants: { tone: "info", italic: !1 }
370
+ }
371
+ ), Ks = /* @__PURE__ */ g.forwardRef(
372
+ function({ tone: a = "info", italic: e = !1, className: t, children: r, ...n }, s) {
373
+ return /* @__PURE__ */ o(
374
+ "div",
375
+ {
376
+ ref: s,
377
+ "data-tone": a,
378
+ className: m($r({ tone: a, italic: e }), t),
379
+ ...n,
380
+ children: r
381
+ }
382
+ );
383
+ }
384
+ ), Cr = /* @__PURE__ */ D("text-sm", {
378
385
  variants: {
379
386
  tone: {
380
387
  neutral: "text-foreground",
@@ -389,7 +396,7 @@ const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children:
389
396
  }
390
397
  },
391
398
  defaultVariants: { tone: "neutral", mono: !1 }
392
- }), Qs = g.forwardRef(function({ label: a, value: e, tone: t, mono: r, className: n, children: s, ...l }, c) {
399
+ }), Qs = /* @__PURE__ */ g.forwardRef(function({ label: a, value: e, tone: t, mono: r, className: n, children: s, ...l }, c) {
393
400
  const d = s ?? e;
394
401
  return /* @__PURE__ */ f(
395
402
  "div",
@@ -404,7 +411,7 @@ const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children:
404
411
  ]
405
412
  }
406
413
  );
407
- }), Sr = D("m-0 text-2xl font-medium leading-tight", {
414
+ }), Sr = /* @__PURE__ */ D("m-0 text-2xl font-medium leading-tight", {
408
415
  variants: {
409
416
  tone: {
410
417
  neutral: "text-foreground",
@@ -415,7 +422,7 @@ const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children:
415
422
  }
416
423
  },
417
424
  defaultVariants: { tone: "neutral" }
418
- }), Js = g.forwardRef(function({ label: a, value: e, sub: t, tone: r, className: n, ...s }, l) {
425
+ }), Js = /* @__PURE__ */ g.forwardRef(function({ label: a, value: e, sub: t, tone: r, className: n, ...s }, l) {
419
426
  return /* @__PURE__ */ f(
420
427
  "div",
421
428
  {
@@ -430,7 +437,7 @@ const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children:
430
437
  ]
431
438
  }
432
439
  );
433
- }), Dr = D("mt-1.5 h-2 w-2 shrink-0 rounded-full", {
440
+ }), Dr = /* @__PURE__ */ D("mt-1.5 h-2 w-2 shrink-0 rounded-full", {
434
441
  variants: {
435
442
  tone: {
436
443
  neutral: "bg-border",
@@ -441,7 +448,7 @@ const Xs = X.forwardRef(function({ as: a = "div", sx: e, className: t, children:
441
448
  }
442
449
  },
443
450
  defaultVariants: { tone: "neutral" }
444
- }), el = g.forwardRef(
451
+ }), el = /* @__PURE__ */ g.forwardRef(
445
452
  function({ tone: a, title: e, notes: t, trailing: r, className: n, ...s }, l) {
446
453
  return /* @__PURE__ */ f(
447
454
  "div",
@@ -620,7 +627,7 @@ function al({
620
627
  ] }, v.key)) })
621
628
  ] });
622
629
  }
623
- const Er = D("m-0 shrink-0 border-solid", {
630
+ const Er = /* @__PURE__ */ D("m-0 shrink-0 border-solid", {
624
631
  variants: {
625
632
  orientation: {
626
633
  horizontal: "w-full self-stretch border-t",
@@ -632,23 +639,25 @@ const Er = D("m-0 shrink-0 border-solid", {
632
639
  }
633
640
  },
634
641
  defaultVariants: { orientation: "horizontal", variant: "default" }
635
- }), rl = g.forwardRef(function({ orientation: a = "horizontal", variant: e, spacing: t, strong: r, style: n, className: s, ...l }, c) {
636
- const d = r !== void 0 ? r ? "strong" : "default" : e, p = a === "horizontal";
637
- return /* @__PURE__ */ o(
638
- "hr",
639
- {
640
- ref: c,
641
- "aria-orientation": a ?? "horizontal",
642
- "data-variant": d ?? "default",
643
- className: m(Er({ orientation: a, variant: d }), s),
644
- style: {
645
- ...p ? { marginTop: t, marginBottom: t } : { marginLeft: t, marginRight: t },
646
- ...n
647
- },
648
- ...l
649
- }
650
- );
651
- }), Or = F.Root, zr = F.Trigger, Lr = F.Group, Hr = F.RadioGroup, Ar = F.Sub, Et = ge(F.Portal), Ot = "z-50 min-w-32 overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-overlay", ze = "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:ring-2 data-[highlighted]:ring-inset data-[highlighted]:ring-ring data-[disabled]:pointer-events-none data-[disabled]:opacity-50", Br = g.forwardRef(function({ className: a, sideOffset: e = 4, container: t, ...r }, n) {
642
+ }), rl = /* @__PURE__ */ g.forwardRef(
643
+ function({ orientation: a = "horizontal", variant: e, spacing: t, strong: r, style: n, className: s, ...l }, c) {
644
+ const d = r !== void 0 ? r ? "strong" : "default" : e, p = a === "horizontal";
645
+ return /* @__PURE__ */ o(
646
+ "hr",
647
+ {
648
+ ref: c,
649
+ "aria-orientation": a ?? "horizontal",
650
+ "data-variant": d ?? "default",
651
+ className: m(Er({ orientation: a, variant: d }), s),
652
+ style: {
653
+ ...p ? { marginTop: t, marginBottom: t } : { marginLeft: t, marginRight: t },
654
+ ...n
655
+ },
656
+ ...l
657
+ }
658
+ );
659
+ }
660
+ ), Or = F.Root, zr = F.Trigger, Lr = F.Group, Hr = F.RadioGroup, Ar = F.Sub, Et = /* @__PURE__ */ ge(F.Portal), Ot = "z-50 min-w-32 overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-overlay", ze = "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:ring-2 data-[highlighted]:ring-inset data-[highlighted]:ring-ring data-[disabled]:pointer-events-none data-[disabled]:opacity-50", Br = /* @__PURE__ */ g.forwardRef(function({ className: a, sideOffset: e = 4, container: t, ...r }, n) {
652
661
  return /* @__PURE__ */ o(Et, { container: t, children: /* @__PURE__ */ o(
653
662
  F.Content,
654
663
  {
@@ -659,19 +668,19 @@ const Er = D("m-0 shrink-0 border-solid", {
659
668
  ...r
660
669
  }
661
670
  ) });
662
- }), Vr = g.forwardRef(function({ className: a, ...e }, t) {
671
+ }), Vr = /* @__PURE__ */ g.forwardRef(function({ className: a, ...e }, t) {
663
672
  return /* @__PURE__ */ o(F.Item, { ref: t, className: m(ze, a), ...e });
664
- }), Fr = g.forwardRef(function({ className: a, children: e, ...t }, r) {
673
+ }), Fr = /* @__PURE__ */ g.forwardRef(function({ className: a, children: e, ...t }, r) {
665
674
  return /* @__PURE__ */ f(F.CheckboxItem, { ref: r, className: m(ze, "pl-6", a), ...t, children: [
666
675
  /* @__PURE__ */ o("span", { className: "absolute left-2 inline-flex items-center justify-center", children: /* @__PURE__ */ o(F.ItemIndicator, { children: /* @__PURE__ */ o(O, { icon: le, size: 14, color: "currentColor", "aria-hidden": !0 }) }) }),
667
676
  e
668
677
  ] });
669
- }), Wr = g.forwardRef(function({ className: a, children: e, ...t }, r) {
678
+ }), Wr = /* @__PURE__ */ g.forwardRef(function({ className: a, children: e, ...t }, r) {
670
679
  return /* @__PURE__ */ f(F.RadioItem, { ref: r, className: m(ze, "pl-6", a), ...t, children: [
671
680
  /* @__PURE__ */ o("span", { className: "absolute left-2 inline-flex items-center justify-center", children: /* @__PURE__ */ o(F.ItemIndicator, { children: /* @__PURE__ */ o(O, { icon: Ct, size: 6, color: "currentColor", "aria-hidden": !0, className: "fill-current" }) }) }),
672
681
  e
673
682
  ] });
674
- }), _r = g.forwardRef(function({ className: a, ...e }, t) {
683
+ }), _r = /* @__PURE__ */ g.forwardRef(function({ className: a, ...e }, t) {
675
684
  return /* @__PURE__ */ o(
676
685
  F.Label,
677
686
  {
@@ -680,7 +689,7 @@ const Er = D("m-0 shrink-0 border-solid", {
680
689
  ...e
681
690
  }
682
691
  );
683
- }), Ur = g.forwardRef(function({ className: a, ...e }, t) {
692
+ }), Ur = /* @__PURE__ */ g.forwardRef(function({ className: a, ...e }, t) {
684
693
  return /* @__PURE__ */ o(
685
694
  F.Separator,
686
695
  {
@@ -689,7 +698,7 @@ const Er = D("m-0 shrink-0 border-solid", {
689
698
  ...e
690
699
  }
691
700
  );
692
- }), Gr = g.forwardRef(function({ className: a, children: e, ...t }, r) {
701
+ }), Gr = /* @__PURE__ */ g.forwardRef(function({ className: a, children: e, ...t }, r) {
693
702
  return /* @__PURE__ */ f(
694
703
  F.SubTrigger,
695
704
  {
@@ -702,7 +711,7 @@ const Er = D("m-0 shrink-0 border-solid", {
702
711
  ]
703
712
  }
704
713
  );
705
- }), jr = g.forwardRef(function({ className: a, container: e, ...t }, r) {
714
+ }), jr = /* @__PURE__ */ g.forwardRef(function({ className: a, container: e, ...t }, r) {
706
715
  return /* @__PURE__ */ o(Et, { container: e, children: /* @__PURE__ */ o(F.SubContent, { ref: r, className: m(Ot, a), ...t }) });
707
716
  }), j = ((i) => /* @__PURE__ */ o(Or, { ...i }));
708
717
  j.Trigger = zr;
@@ -717,7 +726,7 @@ j.Group = Lr;
717
726
  j.Sub = Ar;
718
727
  j.SubTrigger = Gr;
719
728
  j.SubContent = jr;
720
- const Yr = ye.Root, Zr = ye.Trigger, Xr = ye.Anchor, Kr = ye.Close, Qr = ge(ye.Portal), Jr = g.forwardRef(function({ className: a, align: e = "center", sideOffset: t = 4, container: r, ...n }, s) {
729
+ const Yr = ye.Root, Zr = ye.Trigger, Xr = ye.Anchor, Kr = ye.Close, Qr = /* @__PURE__ */ ge(ye.Portal), Jr = /* @__PURE__ */ g.forwardRef(function({ className: a, align: e = "center", sideOffset: t = 4, container: r, ...n }, s) {
721
730
  return /* @__PURE__ */ o(Qr, { container: r, children: /* @__PURE__ */ o(
722
731
  ye.Content,
723
732
  {
@@ -738,7 +747,7 @@ B.Trigger = Zr;
738
747
  B.Anchor = Xr;
739
748
  B.Content = Jr;
740
749
  B.Close = Kr;
741
- const ei = ge(he.Portal), ti = g.forwardRef(function({ className: a, sideOffset: e = 6, children: t, container: r, ...n }, s) {
750
+ const ei = /* @__PURE__ */ ge(he.Portal), ti = /* @__PURE__ */ g.forwardRef(function({ className: a, sideOffset: e = 6, children: t, container: r, ...n }, s) {
742
751
  return /* @__PURE__ */ o(ei, { container: r, children: /* @__PURE__ */ f(
743
752
  he.Content,
744
753
  {
@@ -777,7 +786,7 @@ const ei = ge(he.Portal), ti = g.forwardRef(function({ className: a, sideOffset:
777
786
  }) => /* @__PURE__ */ o(he.Provider, { delayDuration: i, children: /* @__PURE__ */ o(he.Root, { ...e, children: a }) }));
778
787
  zt.Trigger = he.Trigger;
779
788
  zt.Content = ti;
780
- const ai = D("flex flex-col", {
789
+ const ai = /* @__PURE__ */ D("flex flex-col", {
781
790
  variants: {
782
791
  // tier-ok: subgrid-gap/component-gap resolve to var(--primitive-space-1)/-2 exactly
783
792
  // (tokens.generated.css) — mechanical alias swap, hds#186
@@ -787,33 +796,38 @@ const ai = D("flex flex-col", {
787
796
  }
788
797
  },
789
798
  defaultVariants: { gap: "px8" }
790
- }), ri = D("m-0 text-[color:var(--semantic-color-content-primary)]", {
791
- variants: {
792
- level: {
793
- heading1: "[font-size:var(--semantic-typography-h1-font-size)] [font-weight:var(--semantic-typography-h1-font-weight)] [line-height:var(--semantic-typography-h1-line-height)] [letter-spacing:var(--semantic-typography-h1-letter-spacing)]",
794
- heading2: "[font-size:var(--semantic-typography-h2-font-size)] [font-weight:var(--semantic-typography-h2-font-weight)] [line-height:var(--semantic-typography-h2-line-height)] [letter-spacing:var(--semantic-typography-h2-letter-spacing)]",
795
- heading3: "[font-size:var(--semantic-typography-h3-font-size)] [font-weight:var(--semantic-typography-h3-font-weight)] [line-height:var(--semantic-typography-h3-line-height)] [letter-spacing:var(--semantic-typography-h3-letter-spacing)]"
799
+ }), ri = /* @__PURE__ */ D(
800
+ "m-0 text-[color:var(--semantic-color-content-primary)]",
801
+ {
802
+ variants: {
803
+ level: {
804
+ heading1: "[font-size:var(--semantic-typography-h1-font-size)] [font-weight:var(--semantic-typography-h1-font-weight)] [line-height:var(--semantic-typography-h1-line-height)] [letter-spacing:var(--semantic-typography-h1-letter-spacing)]",
805
+ heading2: "[font-size:var(--semantic-typography-h2-font-size)] [font-weight:var(--semantic-typography-h2-font-weight)] [line-height:var(--semantic-typography-h2-line-height)] [letter-spacing:var(--semantic-typography-h2-letter-spacing)]",
806
+ heading3: "[font-size:var(--semantic-typography-h3-font-size)] [font-weight:var(--semantic-typography-h3-font-weight)] [line-height:var(--semantic-typography-h3-line-height)] [letter-spacing:var(--semantic-typography-h3-letter-spacing)]"
807
+ }
796
808
  }
797
809
  }
798
- }), ii = "m-0 leading-[1.5] text-[color:var(--semantic-color-content-secondary)] [font-size:var(--semantic-typography-body-font-size)] [font-weight:var(--semantic-typography-body-font-weight)]", ni = {
810
+ ), ii = "m-0 leading-[1.5] text-[color:var(--semantic-color-content-secondary)] [font-size:var(--semantic-typography-body-font-size)] [font-weight:var(--semantic-typography-body-font-weight)]", ni = {
799
811
  heading1: "h1",
800
812
  heading2: "h2",
801
813
  heading3: "h3"
802
- }, il = re(function({
803
- heading: a,
804
- subheading: e,
805
- level: t,
806
- gap: r = "px8",
807
- as: n = "div",
808
- headingAs: s,
809
- subheadingAs: l = "p"
810
- }, c) {
811
- const d = s ?? ni[t];
812
- return /* @__PURE__ */ f(n, { ref: c, className: m(ai({ gap: r })), children: [
813
- /* @__PURE__ */ o(d, { className: m(ri({ level: t })), children: a }),
814
- /* @__PURE__ */ o(l, { className: ii, children: e })
815
- ] });
816
- }), mt = {
814
+ }, il = /* @__PURE__ */ re(
815
+ function({
816
+ heading: a,
817
+ subheading: e,
818
+ level: t,
819
+ gap: r = "px8",
820
+ as: n = "div",
821
+ headingAs: s,
822
+ subheadingAs: l = "p"
823
+ }, c) {
824
+ const d = s ?? ni[t];
825
+ return /* @__PURE__ */ f(n, { ref: c, className: m(ai({ gap: r })), children: [
826
+ /* @__PURE__ */ o(d, { className: m(ri({ level: t })), children: a }),
827
+ /* @__PURE__ */ o(l, { className: ii, children: e })
828
+ ] });
829
+ }
830
+ ), mt = {
817
831
  link: {
818
832
  display: "grid",
819
833
  gridTemplateColumns: "auto minmax(0, 1fr) auto",
@@ -932,22 +946,34 @@ const oi = {
932
946
  sm: "small",
933
947
  md: "medium",
934
948
  lg: "large"
935
- }, Te = re(function({ icon: a, variant: e, size: t, iconSize: r, iconColor: n, label: s, disabled: l, "aria-label": c, ...d }, p) {
936
- const u = r ?? oi[t ?? "md"];
937
- return /* @__PURE__ */ o(
938
- Ze,
939
- {
940
- ref: p,
941
- iconOnly: !0,
942
- size: t,
943
- variant: e,
944
- disabled: l,
945
- "aria-label": s ?? c ?? "Icon button",
946
- iconLeft: /* @__PURE__ */ o(O, { icon: a, size: u, color: n ?? "currentColor" }),
947
- ...d
948
- }
949
- );
950
- }), si = D(
949
+ }, Te = /* @__PURE__ */ re(
950
+ function({
951
+ icon: a,
952
+ variant: e,
953
+ size: t,
954
+ iconSize: r,
955
+ iconColor: n,
956
+ label: s,
957
+ disabled: l,
958
+ "aria-label": c,
959
+ ...d
960
+ }, p) {
961
+ const u = r ?? oi[t ?? "md"];
962
+ return /* @__PURE__ */ o(
963
+ Ze,
964
+ {
965
+ ref: p,
966
+ iconOnly: !0,
967
+ size: t,
968
+ variant: e,
969
+ disabled: l,
970
+ "aria-label": s ?? c ?? "Icon button",
971
+ iconLeft: /* @__PURE__ */ o(O, { icon: a, size: u, color: n ?? "currentColor" }),
972
+ ...d
973
+ }
974
+ );
975
+ }
976
+ ), si = /* @__PURE__ */ D(
951
977
  "inline-flex max-w-[var(--semantic-typography-mono-max-width)] items-center whitespace-nowrap rounded-none border-0 bg-[var(--component-badge-bg)] px-[var(--semantic-space-subgrid-gap)] text-foreground [font-family:var(--semantic-typography-mono-font-family)] [font-size:var(--semantic-typography-mono-font-size)] [font-weight:var(--semantic-typography-mono-font-weight)] [letter-spacing:var(--semantic-typography-mono-letter-spacing)]",
952
978
  {
953
979
  variants: {
@@ -1007,7 +1033,7 @@ function ol({
1007
1033
  }
1008
1034
  ) : d;
1009
1035
  }
1010
- const li = D(
1036
+ const li = /* @__PURE__ */ D(
1011
1037
  "flex w-full rounded-md border bg-background text-foreground ring-offset-background transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground disabled:opacity-70",
1012
1038
  {
1013
1039
  variants: {
@@ -1056,7 +1082,7 @@ const li = D(
1056
1082
  iconClass: "size-5",
1057
1083
  iconWrap: "[&_svg]:size-5"
1058
1084
  }
1059
- }, ci = g.forwardRef(function({
1085
+ }, ci = /* @__PURE__ */ g.forwardRef(function({
1060
1086
  type: a = "text",
1061
1087
  size: e = "md",
1062
1088
  textStyle: t = "body",
@@ -1175,7 +1201,7 @@ const li = D(
1175
1201
  s && !_ && /* @__PURE__ */ o("span", { id: V, className: "text-xs text-muted-foreground", children: s }),
1176
1202
  M && (p || R === "error") && /* @__PURE__ */ o("span", { id: _, role: "alert", className: "text-xs text-destructive", children: p || "Field error" })
1177
1203
  ] });
1178
- }), pi = D(
1204
+ }), pi = /* @__PURE__ */ D(
1179
1205
  "flex w-full rounded-md border bg-background px-3 py-2 text-sm text-foreground ring-offset-background transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground disabled:opacity-70",
1180
1206
  {
1181
1207
  variants: {
@@ -1194,42 +1220,44 @@ const li = D(
1194
1220
  invalid: !1
1195
1221
  }
1196
1222
  }
1197
- ), sl = g.forwardRef(function({
1198
- id: a,
1199
- label: e,
1200
- helperText: t,
1201
- error: r,
1202
- errorMessage: n,
1203
- disabled: s,
1204
- resize: l = "vertical",
1205
- rows: c = 4,
1206
- className: d,
1207
- textareaClassName: p,
1208
- ...u
1209
- }, h) {
1210
- const v = g.useId(), y = a ?? v, b = !!r, S = t ? `${y}-hint` : void 0, C = b && n ? `${y}-error` : void 0, N = [S, C].filter(Boolean).join(" ") || void 0, P = s ? "disabled" : b ? "error" : "default";
1211
- return /* @__PURE__ */ f("div", { className: m("flex flex-col gap-1.5", d), children: [
1212
- e && /* @__PURE__ */ o("label", { htmlFor: y, className: "text-xs font-medium text-muted-foreground", children: e }),
1213
- /* @__PURE__ */ o(
1214
- "textarea",
1215
- {
1216
- ref: h,
1217
- id: y,
1218
- rows: c,
1219
- disabled: s,
1220
- "aria-disabled": s || void 0,
1221
- "aria-describedby": N,
1222
- "aria-errormessage": C,
1223
- "aria-invalid": b || void 0,
1224
- "data-state": P,
1225
- className: m(pi({ resize: l, invalid: b }), p),
1226
- ...u
1227
- }
1228
- ),
1229
- t && !C && /* @__PURE__ */ o("span", { id: S, className: "text-xs text-muted-foreground", children: t }),
1230
- b && n && /* @__PURE__ */ o("span", { id: C, role: "alert", className: "text-xs text-destructive", children: n })
1231
- ] });
1232
- });
1223
+ ), sl = /* @__PURE__ */ g.forwardRef(
1224
+ function({
1225
+ id: a,
1226
+ label: e,
1227
+ helperText: t,
1228
+ error: r,
1229
+ errorMessage: n,
1230
+ disabled: s,
1231
+ resize: l = "vertical",
1232
+ rows: c = 4,
1233
+ className: d,
1234
+ textareaClassName: p,
1235
+ ...u
1236
+ }, h) {
1237
+ const v = g.useId(), y = a ?? v, b = !!r, S = t ? `${y}-hint` : void 0, C = b && n ? `${y}-error` : void 0, N = [S, C].filter(Boolean).join(" ") || void 0, P = s ? "disabled" : b ? "error" : "default";
1238
+ return /* @__PURE__ */ f("div", { className: m("flex flex-col gap-1.5", d), children: [
1239
+ e && /* @__PURE__ */ o("label", { htmlFor: y, className: "text-xs font-medium text-muted-foreground", children: e }),
1240
+ /* @__PURE__ */ o(
1241
+ "textarea",
1242
+ {
1243
+ ref: h,
1244
+ id: y,
1245
+ rows: c,
1246
+ disabled: s,
1247
+ "aria-disabled": s || void 0,
1248
+ "aria-describedby": N,
1249
+ "aria-errormessage": C,
1250
+ "aria-invalid": b || void 0,
1251
+ "data-state": P,
1252
+ className: m(pi({ resize: l, invalid: b }), p),
1253
+ ...u
1254
+ }
1255
+ ),
1256
+ t && !C && /* @__PURE__ */ o("span", { id: S, className: "text-xs text-muted-foreground", children: t }),
1257
+ b && n && /* @__PURE__ */ o("span", { id: C, role: "alert", className: "text-xs text-destructive", children: n })
1258
+ ] });
1259
+ }
1260
+ );
1233
1261
  function Ke({
1234
1262
  disabled: i,
1235
1263
  frozenState: a = null
@@ -1256,7 +1284,7 @@ function Ke({
1256
1284
  }
1257
1285
  };
1258
1286
  }
1259
- const ui = D(
1287
+ const ui = /* @__PURE__ */ D(
1260
1288
  "relative inline-flex items-center gap-[var(--semantic-space-subgrid-gap)] rounded-md py-[var(--semantic-space-subgrid-gap)] px-[var(--semantic-space-scale-xs)] select-none",
1261
1289
  {
1262
1290
  variants: {
@@ -1270,7 +1298,7 @@ const ui = D(
1270
1298
  },
1271
1299
  defaultVariants: { state: "rest" }
1272
1300
  }
1273
- ), mi = D("absolute inset-0 m-0 opacity-0", {
1301
+ ), mi = /* @__PURE__ */ D("absolute inset-0 m-0 opacity-0", {
1274
1302
  variants: {
1275
1303
  state: {
1276
1304
  rest: "cursor-pointer",
@@ -1281,7 +1309,7 @@ const ui = D(
1281
1309
  }
1282
1310
  },
1283
1311
  defaultVariants: { state: "rest" }
1284
- }), hi = D(
1312
+ }), hi = /* @__PURE__ */ D(
1285
1313
  "inline-flex shrink-0 items-center justify-center w-[var(--semantic-size-control-md)] h-[var(--semantic-size-control-md)] rounded-[var(--semantic-radius-control)] border-solid border-[length:var(--semantic-borderWidth-emphasis)] outline-offset-2",
1286
1314
  {
1287
1315
  variants: {
@@ -1333,84 +1361,86 @@ const ui = D(
1333
1361
  function fi(i, a) {
1334
1362
  typeof i == "function" ? i(a) : i && (i.current = a);
1335
1363
  }
1336
- const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !1, onFocus: n, onBlur: s, disabled: l, ...c }, d) {
1337
- const p = Be(null), u = qe(), { visualState: h, isHover: v, isFocused: y, isPressed: b, isDisabled: S, handlers: C } = Ke({
1338
- disabled: l,
1339
- frozenState: u
1340
- });
1341
- Ue(() => {
1342
- p.current && (p.current.indeterminate = r);
1343
- }, [r]);
1344
- const N = e || r, P = S ? "var(--semantic-color-content-disabled)" : "var(--semantic-color-content-onAccent)", k = ee("productive");
1345
- return /* @__PURE__ */ f(
1346
- A.label,
1347
- {
1348
- whileTap: S ? void 0 : { scale: 0.99 },
1349
- transition: { duration: k.duration, ease: k.easing },
1350
- onMouseEnter: C.onMouseEnter,
1351
- onMouseLeave: C.onMouseLeave,
1352
- onPointerDown: C.onPointerDown,
1353
- onPointerUp: C.onPointerUp,
1354
- onPointerCancel: C.onPointerCancel,
1355
- className: ui({ state: h }),
1356
- children: [
1357
- /* @__PURE__ */ o(
1358
- "input",
1359
- {
1360
- ref: (T) => {
1361
- p.current = T, fi(d, T);
1362
- },
1363
- type: "checkbox",
1364
- checked: e,
1365
- disabled: S,
1366
- "aria-checked": r ? "mixed" : e,
1367
- onChange: (T) => t(T.target.checked),
1368
- onFocus: (T) => {
1369
- C.onFocus(), n == null || n(T);
1370
- },
1371
- onBlur: (T) => {
1372
- C.onBlur(), s == null || s(T);
1373
- },
1374
- className: mi({ state: h }),
1375
- ...c
1376
- }
1377
- ),
1378
- /* @__PURE__ */ o(
1379
- A.span,
1380
- {
1381
- "aria-hidden": "true",
1382
- animate: { scale: b ? 0.94 : v || y ? 1.04 : 1 },
1383
- transition: {
1384
- duration: k.duration,
1385
- ease: k.easing
1386
- },
1387
- className: hi({ state: h, on: N }),
1388
- style: {
1389
- transition: `background-color ${k.duration}s ease, border-color ${k.duration}s ease`
1390
- },
1391
- children: r ? /* @__PURE__ */ o(O, { icon: St, size: 14, color: P, "aria-hidden": !0 }) : e ? /* @__PURE__ */ o(O, { icon: le, size: 14, color: P, "aria-hidden": !0 }) : null
1392
- }
1393
- ),
1394
- /* @__PURE__ */ o(
1395
- A.span,
1396
- {
1397
- className: "text-secondary",
1398
- animate: { x: b ? x.space.px1 : 0 },
1399
- transition: {
1400
- duration: k.duration,
1401
- ease: k.easing
1402
- },
1403
- style: {
1404
- ...x.typeStyles.ui,
1405
- color: S ? "var(--semantic-color-content-disabled)" : "var(--semantic-color-content-primary)"
1406
- },
1407
- children: a
1408
- }
1409
- )
1410
- ]
1411
- }
1412
- );
1413
- }), gi = D("absolute inset-0 m-0 opacity-0", {
1364
+ const ll = /* @__PURE__ */ re(
1365
+ function({ label: a, checked: e, onChange: t, indeterminate: r = !1, onFocus: n, onBlur: s, disabled: l, ...c }, d) {
1366
+ const p = Be(null), u = qe(), { visualState: h, isHover: v, isFocused: y, isPressed: b, isDisabled: S, handlers: C } = Ke({
1367
+ disabled: l,
1368
+ frozenState: u
1369
+ });
1370
+ Ue(() => {
1371
+ p.current && (p.current.indeterminate = r);
1372
+ }, [r]);
1373
+ const N = e || r, P = S ? "var(--semantic-color-content-disabled)" : "var(--semantic-color-content-onAccent)", k = ee("productive");
1374
+ return /* @__PURE__ */ f(
1375
+ A.label,
1376
+ {
1377
+ whileTap: S ? void 0 : { scale: 0.99 },
1378
+ transition: { duration: k.duration, ease: k.easing },
1379
+ onMouseEnter: C.onMouseEnter,
1380
+ onMouseLeave: C.onMouseLeave,
1381
+ onPointerDown: C.onPointerDown,
1382
+ onPointerUp: C.onPointerUp,
1383
+ onPointerCancel: C.onPointerCancel,
1384
+ className: ui({ state: h }),
1385
+ children: [
1386
+ /* @__PURE__ */ o(
1387
+ "input",
1388
+ {
1389
+ ref: (T) => {
1390
+ p.current = T, fi(d, T);
1391
+ },
1392
+ type: "checkbox",
1393
+ checked: e,
1394
+ disabled: S,
1395
+ "aria-checked": r ? "mixed" : e,
1396
+ onChange: (T) => t(T.target.checked),
1397
+ onFocus: (T) => {
1398
+ C.onFocus(), n == null || n(T);
1399
+ },
1400
+ onBlur: (T) => {
1401
+ C.onBlur(), s == null || s(T);
1402
+ },
1403
+ className: mi({ state: h }),
1404
+ ...c
1405
+ }
1406
+ ),
1407
+ /* @__PURE__ */ o(
1408
+ A.span,
1409
+ {
1410
+ "aria-hidden": "true",
1411
+ animate: { scale: b ? 0.94 : v || y ? 1.04 : 1 },
1412
+ transition: {
1413
+ duration: k.duration,
1414
+ ease: k.easing
1415
+ },
1416
+ className: hi({ state: h, on: N }),
1417
+ style: {
1418
+ transition: `background-color ${k.duration}s ease, border-color ${k.duration}s ease`
1419
+ },
1420
+ children: r ? /* @__PURE__ */ o(O, { icon: St, size: 14, color: P, "aria-hidden": !0 }) : e ? /* @__PURE__ */ o(O, { icon: le, size: 14, color: P, "aria-hidden": !0 }) : null
1421
+ }
1422
+ ),
1423
+ /* @__PURE__ */ o(
1424
+ A.span,
1425
+ {
1426
+ className: "text-secondary",
1427
+ animate: { x: b ? x.space.px1 : 0 },
1428
+ transition: {
1429
+ duration: k.duration,
1430
+ ease: k.easing
1431
+ },
1432
+ style: {
1433
+ ...x.typeStyles.ui,
1434
+ color: S ? "var(--semantic-color-content-disabled)" : "var(--semantic-color-content-primary)"
1435
+ },
1436
+ children: a
1437
+ }
1438
+ )
1439
+ ]
1440
+ }
1441
+ );
1442
+ }
1443
+ ), gi = /* @__PURE__ */ D("absolute inset-0 m-0 opacity-0", {
1414
1444
  variants: {
1415
1445
  state: {
1416
1446
  rest: "cursor-pointer",
@@ -1421,7 +1451,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1421
1451
  }
1422
1452
  },
1423
1453
  defaultVariants: { state: "rest" }
1424
- }), vi = D(
1454
+ }), vi = /* @__PURE__ */ D(
1425
1455
  "relative inline-flex items-center gap-[var(--semantic-space-subgrid-gap)] select-none",
1426
1456
  {
1427
1457
  variants: {
@@ -1435,7 +1465,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1435
1465
  },
1436
1466
  defaultVariants: { state: "rest" }
1437
1467
  }
1438
- ), yi = D(
1468
+ ), yi = /* @__PURE__ */ D(
1439
1469
  // tier-ok: primitive.size.20 / primitive.radius.full mirror checkbox's glyph box model 1:1 — no semantic alias for either
1440
1470
  "inline-flex shrink-0 items-center justify-center w-[var(--primitive-size-20)] h-[var(--primitive-size-20)] rounded-[var(--primitive-radius-full)] border-solid border-[length:var(--primitive-borderWidth-sm)]",
1441
1471
  {
@@ -1476,7 +1506,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1476
1506
  ],
1477
1507
  defaultVariants: { state: "rest", on: !1 }
1478
1508
  }
1479
- ), bi = D(
1509
+ ), bi = /* @__PURE__ */ D(
1480
1510
  // `inline-block` is the other half of the #225 fix: the dot's declared
1481
1511
  // width/height are ignored under the browser's default `display: inline`.
1482
1512
  // tier-ok: radius-full (9999px) is the mathematical "fully round" constant — one possible value, not a design-scale choice. hds#186/hds#242
@@ -1490,7 +1520,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1490
1520
  },
1491
1521
  defaultVariants: { disabled: !1 }
1492
1522
  }
1493
- ), dl = re(function({
1523
+ ), dl = /* @__PURE__ */ re(function({
1494
1524
  label: a,
1495
1525
  checked: e,
1496
1526
  onChange: t,
@@ -1600,7 +1630,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1600
1630
  ]
1601
1631
  }
1602
1632
  );
1603
- }), cl = re(function({ label: a, min: e, max: t, step: r = 1, value: n, onChange: s }, l) {
1633
+ }), cl = /* @__PURE__ */ re(function({ label: a, min: e, max: t, step: r = 1, value: n, onChange: s }, l) {
1604
1634
  const [c, d] = G(!1), p = t - e, h = `${(p <= 0 ? 0 : Math.min(Math.max((n - e) / p, 0), 1)) * 100}%`, v = ee("productive"), y = ee("expressive");
1605
1635
  return (
1606
1636
  // eslint-disable-next-line tailwindcss/no-arbitrary-value -- token-driven gap; var()-based, no Tailwind-theme utility exists
@@ -1676,7 +1706,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1676
1706
  ] })
1677
1707
  ] })
1678
1708
  );
1679
- }), Qe = (i) => parseFloat(i), wi = Qe(Ye.primitive.size[40]), xi = Qe(Ye.primitive.size[20]), Lt = Qe(Ye.primitive.size[16]), ki = (xi - Lt) / 2, $i = wi - Lt - ki * 2, Ci = D(
1709
+ }), Qe = (i) => parseFloat(i), wi = Qe(Ye.primitive.size[40]), xi = Qe(Ye.primitive.size[20]), Lt = Qe(Ye.primitive.size[16]), ki = (xi - Lt) / 2, $i = wi - Lt - ki * 2, Ci = /* @__PURE__ */ D(
1680
1710
  "relative inline-flex items-center gap-[var(--semantic-space-subgrid-gap)] rounded-md py-[var(--semantic-space-subgrid-gap)] px-[var(--semantic-space-scale-xs)] outline-offset-2 select-none",
1681
1711
  {
1682
1712
  variants: {
@@ -1690,7 +1720,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1690
1720
  },
1691
1721
  defaultVariants: { state: "rest" }
1692
1722
  }
1693
- ), Si = D("absolute inset-0 m-0 opacity-0", {
1723
+ ), Si = /* @__PURE__ */ D("absolute inset-0 m-0 opacity-0", {
1694
1724
  variants: {
1695
1725
  state: {
1696
1726
  rest: "cursor-pointer",
@@ -1701,7 +1731,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1701
1731
  }
1702
1732
  },
1703
1733
  defaultVariants: { state: "rest" }
1704
- }), Di = D(
1734
+ }), Di = /* @__PURE__ */ D(
1705
1735
  // tier-ok: primitive.size.40 / primitive.size.20 / primitive.radius.full — no semantic alias for toggle-track geometry yet (same gap as checkbox/radio's glyph sizing)
1706
1736
  "inline-flex shrink-0 items-center rounded-[var(--primitive-radius-full)] border-solid border-[length:var(--primitive-borderWidth-sm)] p-[var(--semantic-space-subgrid-xs)] w-[var(--primitive-size-40)] h-[var(--primitive-size-20)]",
1707
1737
  {
@@ -1737,10 +1767,10 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1737
1767
  ],
1738
1768
  defaultVariants: { on: !1, disabled: !1 }
1739
1769
  }
1740
- ), Ti = D(
1770
+ ), Ti = /* @__PURE__ */ D(
1741
1771
  // tier-ok: primitive.size.16 / primitive.radius.full — no semantic alias for toggle-thumb geometry yet
1742
1772
  "pointer-events-none block w-[var(--primitive-size-16)] h-[var(--primitive-size-16)] rounded-[var(--primitive-radius-full)] bg-[var(--semantic-color-surface-page)]"
1743
- ), pl = re(function({ label: a, checked: e, onChange: t, onFocus: r, onBlur: n, disabled: s, ...l }, c) {
1773
+ ), pl = /* @__PURE__ */ re(function({ label: a, checked: e, onChange: t, onFocus: r, onBlur: n, disabled: s, ...l }, c) {
1744
1774
  const d = qe(), { visualState: p, isHover: u, isFocused: h, isPressed: v, isDisabled: y, handlers: b } = Ke({
1745
1775
  disabled: s,
1746
1776
  frozenState: d
@@ -1827,7 +1857,7 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1827
1857
  ]
1828
1858
  }
1829
1859
  );
1830
- }), qi = D("w-full overflow-hidden rounded-full bg-muted", {
1860
+ }), qi = /* @__PURE__ */ D("w-full overflow-hidden rounded-full bg-muted", {
1831
1861
  variants: {
1832
1862
  size: {
1833
1863
  sm: "h-1",
@@ -1840,33 +1870,35 @@ const ll = re(function({ label: a, checked: e, onChange: t, indeterminate: r = !
1840
1870
  function Ni(i) {
1841
1871
  return Math.max(0, Math.min(100, i));
1842
1872
  }
1843
- const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label: r = "Progress", ...n }, s) {
1844
- const l = t == null, c = l ? 100 : Ni(t);
1845
- return /* @__PURE__ */ o(
1846
- "div",
1847
- {
1848
- ref: s,
1849
- role: "progressbar",
1850
- "aria-label": r,
1851
- "aria-valuemin": l ? void 0 : 0,
1852
- "aria-valuemax": l ? void 0 : 100,
1853
- "aria-valuenow": l ? void 0 : Math.round(c),
1854
- "data-state": l ? "indeterminate" : "determinate",
1855
- className: m(qi({ size: e }), a),
1856
- ...n,
1857
- children: /* @__PURE__ */ o(
1858
- "div",
1859
- {
1860
- className: m(
1861
- "h-full rounded-full bg-accent transition-[width] duration-300 ease-out",
1862
- l && "animate-pulse motion-reduce:animate-none"
1863
- ),
1864
- style: { width: `${c}%` }
1865
- }
1866
- )
1867
- }
1868
- );
1869
- }), Pi = D("hds-skeleton block", {
1873
+ const ul = /* @__PURE__ */ g.forwardRef(
1874
+ function({ className: a, size: e, value: t = null, label: r = "Progress", ...n }, s) {
1875
+ const l = t == null, c = l ? 100 : Ni(t);
1876
+ return /* @__PURE__ */ o(
1877
+ "div",
1878
+ {
1879
+ ref: s,
1880
+ role: "progressbar",
1881
+ "aria-label": r,
1882
+ "aria-valuemin": l ? void 0 : 0,
1883
+ "aria-valuemax": l ? void 0 : 100,
1884
+ "aria-valuenow": l ? void 0 : Math.round(c),
1885
+ "data-state": l ? "indeterminate" : "determinate",
1886
+ className: m(qi({ size: e }), a),
1887
+ ...n,
1888
+ children: /* @__PURE__ */ o(
1889
+ "div",
1890
+ {
1891
+ className: m(
1892
+ "h-full rounded-full bg-accent transition-[width] duration-300 ease-out",
1893
+ l && "animate-pulse motion-reduce:animate-none"
1894
+ ),
1895
+ style: { width: `${c}%` }
1896
+ }
1897
+ )
1898
+ }
1899
+ );
1900
+ }
1901
+ ), Pi = /* @__PURE__ */ D("hds-skeleton block", {
1870
1902
  variants: {
1871
1903
  variant: {
1872
1904
  text: "rounded",
@@ -1875,20 +1907,22 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
1875
1907
  }
1876
1908
  },
1877
1909
  defaultVariants: { variant: "rectangular" }
1878
- }), ml = g.forwardRef(function({ className: a, variant: e = "rectangular", width: t, height: r, style: n, ...s }, l) {
1879
- const c = r ?? (e === "text" ? "1em" : void 0);
1880
- return /* @__PURE__ */ o(
1881
- "div",
1882
- {
1883
- ref: l,
1884
- "aria-hidden": "true",
1885
- "data-variant": e,
1886
- className: m(Pi({ variant: e }), a),
1887
- style: { width: t, height: c, ...n },
1888
- ...s
1889
- }
1890
- );
1891
- }), Ri = D(
1910
+ }), ml = /* @__PURE__ */ g.forwardRef(
1911
+ function({ className: a, variant: e = "rectangular", width: t, height: r, style: n, ...s }, l) {
1912
+ const c = r ?? (e === "text" ? "1em" : void 0);
1913
+ return /* @__PURE__ */ o(
1914
+ "div",
1915
+ {
1916
+ ref: l,
1917
+ "aria-hidden": "true",
1918
+ "data-variant": e,
1919
+ className: m(Pi({ variant: e }), a),
1920
+ style: { width: t, height: c, ...n },
1921
+ ...s
1922
+ }
1923
+ );
1924
+ }
1925
+ ), Ri = /* @__PURE__ */ D(
1892
1926
  "inline-block shrink-0 animate-spin rounded-full border-solid border-current border-t-transparent align-middle motion-reduce:animate-none",
1893
1927
  {
1894
1928
  variants: {
@@ -1900,19 +1934,21 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
1900
1934
  },
1901
1935
  defaultVariants: { size: "md" }
1902
1936
  }
1903
- ), hl = g.forwardRef(function({ className: a, size: e, label: t = "Loading", ...r }, n) {
1904
- return /* @__PURE__ */ o(
1905
- "span",
1906
- {
1907
- ref: n,
1908
- role: "status",
1909
- "aria-label": t,
1910
- "data-size": e ?? "md",
1911
- className: m(Ri({ size: e }), a),
1912
- ...r
1913
- }
1914
- );
1915
- }), Ii = D(
1937
+ ), hl = /* @__PURE__ */ g.forwardRef(
1938
+ function({ className: a, size: e, label: t = "Loading", ...r }, n) {
1939
+ return /* @__PURE__ */ o(
1940
+ "span",
1941
+ {
1942
+ ref: n,
1943
+ role: "status",
1944
+ "aria-label": t,
1945
+ "data-size": e ?? "md",
1946
+ className: m(Ri({ size: e }), a),
1947
+ ...r
1948
+ }
1949
+ );
1950
+ }
1951
+ ), Ii = /* @__PURE__ */ D(
1916
1952
  "inline-flex max-w-full flex-col items-start self-start gap-[var(--semantic-space-scale-xs)] p-0",
1917
1953
  {
1918
1954
  variants: {
@@ -1923,7 +1959,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
1923
1959
  },
1924
1960
  defaultVariants: { fullWidth: !1 }
1925
1961
  }
1926
- ), Mi = D(
1962
+ ), Mi = /* @__PURE__ */ D(
1927
1963
  "flex max-w-full items-stretch gap-[var(--semantic-space-subgrid-gap)] overflow-x-auto overflow-y-hidden rounded-lg border border-solid border-[var(--semantic-color-border-default)] [scrollbar-width:thin]",
1928
1964
  {
1929
1965
  variants: {
@@ -1938,7 +1974,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
1938
1974
  },
1939
1975
  defaultVariants: { variant: "primary", fullWidth: !1 }
1940
1976
  }
1941
- ), Ei = D(
1977
+ ), Ei = /* @__PURE__ */ D(
1942
1978
  "relative m-0 flex flex-col items-center justify-center gap-[var(--semantic-space-subgrid-hairline)] rounded-md border-0 bg-transparent py-[var(--semantic-space-subgrid-gap)] text-center transition-[color,outline-color,transform] duration-[var(--hds-motion-productive-duration)] ease-[var(--hds-motion-productive-easing)]",
1943
1979
  {
1944
1980
  variants: {
@@ -2014,7 +2050,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2014
2050
  disabled: !1
2015
2051
  }
2016
2052
  }
2017
- ), Oi = D(
2053
+ ), Oi = /* @__PURE__ */ D(
2018
2054
  "pointer-events-none absolute inset-0 z-0 rounded-md bg-transparent shadow-none",
2019
2055
  {
2020
2056
  variants: {
@@ -2097,7 +2133,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2097
2133
  ],
2098
2134
  defaultVariants: { variant: "primary", active: !1, interaction: "rest", disabled: !1 }
2099
2135
  }
2100
- ), zi = D(
2136
+ ), zi = /* @__PURE__ */ D(
2101
2137
  // tier-ok: primitive.zIndex.10 (the discrete 0/10/100/1000 stacking scale, reached as hds.zIndex.focus) has no semantic alias — same primitive ref the pre-Tailwind inline style used
2102
2138
  "relative z-[var(--primitive-zIndex-10)] text-xs font-medium text-[var(--semantic-color-content-secondary)]",
2103
2139
  {
@@ -2118,7 +2154,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2118
2154
  ],
2119
2155
  defaultVariants: { variant: "primary", active: !1, interaction: "rest", disabled: !1 }
2120
2156
  }
2121
- ), Li = D(
2157
+ ), Li = /* @__PURE__ */ D(
2122
2158
  // tier-ok: primitive.borderWidth.sm (the 2px accent/selection-ring weight) has no semantic alias — same primitive ref the pre-Tailwind inline style used
2123
2159
  "outline outline-[length:var(--primitive-borderWidth-sm)] outline-offset-[length:var(--semantic-space-subgrid-gap)]",
2124
2160
  {
@@ -2130,10 +2166,10 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2130
2166
  },
2131
2167
  defaultVariants: { variant: "primary" }
2132
2168
  }
2133
- ), Hi = D(
2169
+ ), Hi = /* @__PURE__ */ D(
2134
2170
  // tier-ok: primitive.zIndex.10, reached as hds.zIndex.focus, has no semantic alias — same primitive ref the pre-Tailwind inline style used
2135
2171
  "relative z-[var(--primitive-zIndex-10)] max-w-[60ch] text-sm font-medium leading-5 text-current"
2136
- ), fl = re(
2172
+ ), fl = /* @__PURE__ */ re(
2137
2173
  function({
2138
2174
  label: a,
2139
2175
  "aria-label": e,
@@ -2251,7 +2287,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2251
2287
  )
2252
2288
  ] });
2253
2289
  }
2254
- ), Ai = ge(K.Portal), gl = re(function({ label: a, showLabel: e = !0, options: t, value: r, onChange: n, container: s }, l) {
2290
+ ), Ai = /* @__PURE__ */ ge(K.Portal), gl = /* @__PURE__ */ re(function({ label: a, showLabel: e = !0, options: t, value: r, onChange: n, container: s }, l) {
2255
2291
  const c = t.find((d) => d.value === r) ?? t[0];
2256
2292
  return /* @__PURE__ */ f("div", { className: "flex flex-col", children: [
2257
2293
  e ? /* @__PURE__ */ o(
@@ -2312,13 +2348,13 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2312
2348
  ) })
2313
2349
  ] })
2314
2350
  ] });
2315
- }), Bi = D(
2351
+ }), Bi = /* @__PURE__ */ D(
2316
2352
  // 44px is the WCAG 2.5.5 / platform HIG minimum interactive target — a
2317
2353
  // regulatory floor, not a design-scale choice; no semantic size scale exists
2318
2354
  // yet for dimensional primitives (see hds#186 follow-up).
2319
2355
  // tier-ok: regulatory a11y constant, not a design decision. hds#186
2320
2356
  "group inline-flex min-w-[var(--primitive-size-interactive-min)] cursor-pointer select-none items-center justify-center border-0 bg-transparent p-0 text-inherit transition-colors disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"
2321
- ), Vi = D(
2357
+ ), Vi = /* @__PURE__ */ D(
2322
2358
  "pointer-events-none box-border inline-flex min-h-[var(--component-tag-minHeight)] min-w-[var(--component-tag-minWidth)] items-center justify-center whitespace-nowrap rounded-[var(--component-tag-radius)] border border-solid px-[var(--component-tag-paddingX)] py-[var(--component-tag-paddingY)] text-xs font-medium leading-none transition-colors",
2323
2359
  {
2324
2360
  variants: {
@@ -2329,7 +2365,7 @@ const ul = g.forwardRef(function({ className: a, size: e, value: t = null, label
2329
2365
  },
2330
2366
  defaultVariants: { selected: !1 }
2331
2367
  }
2332
- ), Fi = g.forwardRef(function({ children: a, active: e = !1, className: t, type: r = "button", ...n }, s) {
2368
+ ), Fi = /* @__PURE__ */ g.forwardRef(function({ children: a, active: e = !1, className: t, type: r = "button", ...n }, s) {
2333
2369
  return /* @__PURE__ */ o(
2334
2370
  "button",
2335
2371
  {
@@ -2483,7 +2519,7 @@ function* At(i, a = [], e = null) {
2483
2519
  for (const n of Object.keys(t))
2484
2520
  Zi.has(n) || (yield* At(t[n], [...a, n], r));
2485
2521
  }
2486
- const on = Ht, sn = [...At(on)], ln = D(
2522
+ const on = Ht, sn = [...At(on)], ln = /* @__PURE__ */ D(
2487
2523
  // tier-ok: primitive.space.2 (8px shell padding) has no semantic alias — same primitive ref Token.module.css used
2488
2524
  "[font:inherit] mb-0 box-border flex items-center whitespace-normal border border-solid border-[var(--component-button-secondary-border-rest)] rounded-[var(--semantic-radius-action)] bg-[var(--component-button-secondary-bg-rest)] p-[var(--primitive-space-2)] text-left text-inherit",
2489
2525
  {
@@ -2528,7 +2564,7 @@ const on = Ht, sn = [...At(on)], ln = D(
2528
2564
  nowrap: !1
2529
2565
  }
2530
2566
  }
2531
- ), dn = D(
2567
+ ), dn = /* @__PURE__ */ D(
2532
2568
  "flex w-full min-w-0 max-w-full gap-[var(--semantic-space-subgrid-gap)]",
2533
2569
  {
2534
2570
  variants: {
@@ -2539,7 +2575,7 @@ const on = Ht, sn = [...At(on)], ln = D(
2539
2575
  },
2540
2576
  defaultVariants: { sourceNode: !1 }
2541
2577
  }
2542
- ), cn = D(
2578
+ ), cn = /* @__PURE__ */ D(
2543
2579
  // tier-ok: primitive.typography.family.mono (Geist Mono stack) has no semantic alias — same primitive ref hds.typeStyles.technical used
2544
2580
  "relative block w-full max-w-full min-w-0 font-normal leading-none text-[13px] [font-family:var(--primitive-typography-family-mono)]",
2545
2581
  {
@@ -2778,7 +2814,7 @@ function xn(i) {
2778
2814
  'Token variant="diagram" is deprecated and resolves to variant="node" (removed in 1.0.0); migrate to variant="node".'
2779
2815
  ), /* @__PURE__ */ o(wn, { ...i })) : /* @__PURE__ */ o(Bt, { ...i });
2780
2816
  }
2781
- const kn = D(
2817
+ const kn = /* @__PURE__ */ D(
2782
2818
  "inline-flex items-center justify-center whitespace-nowrap align-middle select-none rounded border border-border bg-muted font-medium text-muted-foreground",
2783
2819
  {
2784
2820
  variants: {
@@ -2790,7 +2826,7 @@ const kn = D(
2790
2826
  },
2791
2827
  defaultVariants: { size: "md" }
2792
2828
  }
2793
- ), vl = g.forwardRef(function({ className: a, size: e, children: t, ...r }, n) {
2829
+ ), vl = /* @__PURE__ */ g.forwardRef(function({ className: a, size: e, children: t, ...r }, n) {
2794
2830
  return /* @__PURE__ */ o(
2795
2831
  "kbd",
2796
2832
  {
@@ -2801,7 +2837,7 @@ const kn = D(
2801
2837
  children: t
2802
2838
  }
2803
2839
  );
2804
- }), $n = D("inline-block shrink-0 rounded-full", {
2840
+ }), $n = /* @__PURE__ */ D("inline-block shrink-0 rounded-full", {
2805
2841
  variants: {
2806
2842
  tone: {
2807
2843
  neutral: "bg-muted-foreground",
@@ -2818,18 +2854,20 @@ const kn = D(
2818
2854
  }
2819
2855
  },
2820
2856
  defaultVariants: { tone: "neutral", size: "md" }
2821
- }), yl = g.forwardRef(function({ className: a, tone: e, size: t, label: r, ...n }, s) {
2822
- return /* @__PURE__ */ o(
2823
- "span",
2824
- {
2825
- ref: s,
2826
- "data-tone": e ?? "neutral",
2827
- className: m($n({ tone: e, size: t }), a),
2828
- ...r ? { role: "status", "aria-label": r } : { "aria-hidden": !0 },
2829
- ...n
2830
- }
2831
- );
2832
- });
2857
+ }), yl = /* @__PURE__ */ g.forwardRef(
2858
+ function({ className: a, tone: e, size: t, label: r, ...n }, s) {
2859
+ return /* @__PURE__ */ o(
2860
+ "span",
2861
+ {
2862
+ ref: s,
2863
+ "data-tone": e ?? "neutral",
2864
+ className: m($n({ tone: e, size: t }), a),
2865
+ ...r ? { role: "status", "aria-label": r } : { "aria-hidden": !0 },
2866
+ ...n
2867
+ }
2868
+ );
2869
+ }
2870
+ );
2833
2871
  function ft(i) {
2834
2872
  return i instanceof Date ? i : new Date(i);
2835
2873
  }
@@ -2853,48 +2891,55 @@ const Dn = {
2853
2891
  date: { dateStyle: "medium" },
2854
2892
  time: { timeStyle: "short" },
2855
2893
  datetime: { dateStyle: "medium", timeStyle: "short" }
2856
- }, bl = g.forwardRef(function({ className: a, date: e, format: t = "datetime", locale: r, now: n, ...s }, l) {
2857
- const c = ft(e), d = Number.isNaN(c.getTime()) ? void 0 : c.toISOString();
2858
- let p;
2859
- return Number.isNaN(c.getTime()) ? p = "" : t === "relative" ? p = Sn(c, n != null ? ft(n) : /* @__PURE__ */ new Date(), r) : p = new Intl.DateTimeFormat(r, Dn[t]).format(c), /* @__PURE__ */ o(
2860
- "time",
2861
- {
2862
- ref: l,
2863
- dateTime: d,
2864
- "data-format": t,
2865
- className: m("tabular-nums", a),
2866
- ...s,
2867
- children: p
2868
- }
2869
- );
2870
- }), Tn = D("border-l-2 border-border pl-4 font-medium text-foreground", {
2871
- variants: {
2872
- size: {
2873
- sm: "text-sm",
2874
- md: "text-base",
2875
- lg: "text-lg"
2876
- }
2877
- },
2878
- defaultVariants: { size: "md" }
2879
- }), wl = g.forwardRef(function({ className: a, size: e, attribution: t, children: r, ...n }, s) {
2880
- return /* @__PURE__ */ f(
2881
- "blockquote",
2882
- {
2883
- ref: s,
2884
- "data-size": e ?? "md",
2885
- className: m(Tn({ size: e }), a),
2886
- ...n,
2887
- children: [
2888
- r,
2889
- t != null && /* @__PURE__ */ o("footer", { className: "mt-2 text-sm font-medium text-muted-foreground", children: t })
2890
- ]
2891
- }
2892
- );
2893
- }), xl = g.forwardRef(
2894
+ }, bl = /* @__PURE__ */ g.forwardRef(
2895
+ function({ className: a, date: e, format: t = "datetime", locale: r, now: n, ...s }, l) {
2896
+ const c = ft(e), d = Number.isNaN(c.getTime()) ? void 0 : c.toISOString();
2897
+ let p;
2898
+ return Number.isNaN(c.getTime()) ? p = "" : t === "relative" ? p = Sn(c, n != null ? ft(n) : /* @__PURE__ */ new Date(), r) : p = new Intl.DateTimeFormat(r, Dn[t]).format(c), /* @__PURE__ */ o(
2899
+ "time",
2900
+ {
2901
+ ref: l,
2902
+ dateTime: d,
2903
+ "data-format": t,
2904
+ className: m("tabular-nums", a),
2905
+ ...s,
2906
+ children: p
2907
+ }
2908
+ );
2909
+ }
2910
+ ), Tn = /* @__PURE__ */ D(
2911
+ "border-l-2 border-border pl-4 font-medium text-foreground",
2912
+ {
2913
+ variants: {
2914
+ size: {
2915
+ sm: "text-sm",
2916
+ md: "text-base",
2917
+ lg: "text-lg"
2918
+ }
2919
+ },
2920
+ defaultVariants: { size: "md" }
2921
+ }
2922
+ ), wl = /* @__PURE__ */ g.forwardRef(
2923
+ function({ className: a, size: e, attribution: t, children: r, ...n }, s) {
2924
+ return /* @__PURE__ */ f(
2925
+ "blockquote",
2926
+ {
2927
+ ref: s,
2928
+ "data-size": e ?? "md",
2929
+ className: m(Tn({ size: e }), a),
2930
+ ...n,
2931
+ children: [
2932
+ r,
2933
+ t != null && /* @__PURE__ */ o("footer", { className: "mt-2 text-sm font-medium text-muted-foreground", children: t })
2934
+ ]
2935
+ }
2936
+ );
2937
+ }
2938
+ ), xl = /* @__PURE__ */ g.forwardRef(
2894
2939
  function({ as: a = "span", className: e, children: t, ...r }, n) {
2895
2940
  return /* @__PURE__ */ o(a, { ref: n, className: m("sr-only", e), ...r, children: t });
2896
2941
  }
2897
- ), qn = D(
2942
+ ), qn = /* @__PURE__ */ D(
2898
2943
  "inline-flex -ml-2 shrink-0 items-center justify-center rounded-full bg-muted font-medium text-muted-foreground ring-2 ring-background",
2899
2944
  {
2900
2945
  variants: {
@@ -2906,56 +2951,63 @@ const Dn = {
2906
2951
  },
2907
2952
  defaultVariants: { size: "md" }
2908
2953
  }
2909
- ), kl = g.forwardRef(function({ className: a, children: e, max: t, size: r, ...n }, s) {
2910
- const l = r ?? "md", c = g.Children.toArray(e).filter(g.isValidElement), d = t && t > 0 ? t : c.length, p = c.slice(0, d), u = c.length - p.length;
2911
- return /* @__PURE__ */ f(
2912
- "div",
2913
- {
2914
- ref: s,
2915
- role: "group",
2916
- "data-size": l,
2917
- className: m("flex items-center", a),
2918
- ...n,
2919
- children: [
2920
- p.map(
2921
- (h, v) => g.cloneElement(h, {
2922
- key: h.key ?? v,
2923
- size: l,
2924
- className: m(
2925
- "ring-2 ring-background",
2926
- v > 0 && "-ml-2",
2927
- h.props.className
2928
- )
2929
- })
2930
- ),
2931
- u > 0 && /* @__PURE__ */ f("span", { "aria-label": `+${u} more`, className: qn({ size: r }), children: [
2932
- "+",
2933
- u
2934
- ] })
2935
- ]
2936
- }
2937
- );
2938
- }), Nn = D("isolate inline-flex [&>*]:relative [&>*:focus-visible]:z-10", {
2939
- variants: {
2940
- orientation: {
2941
- horizontal: "flex-row [&>*:not(:first-child)]:-ml-px [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",
2942
- vertical: "flex-col [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none"
2943
- }
2944
- },
2945
- defaultVariants: { orientation: "horizontal" }
2946
- }), $l = g.forwardRef(function({ className: a, orientation: e, children: t, ...r }, n) {
2947
- return /* @__PURE__ */ o(
2948
- "div",
2949
- {
2950
- ref: n,
2951
- role: "group",
2952
- "data-orientation": e ?? "horizontal",
2953
- className: m(Nn({ orientation: e }), a),
2954
- ...r,
2955
- children: t
2956
- }
2957
- );
2958
- }), Pn = D(
2954
+ ), kl = /* @__PURE__ */ g.forwardRef(
2955
+ function({ className: a, children: e, max: t, size: r, ...n }, s) {
2956
+ const l = r ?? "md", c = g.Children.toArray(e).filter(g.isValidElement), d = t && t > 0 ? t : c.length, p = c.slice(0, d), u = c.length - p.length;
2957
+ return /* @__PURE__ */ f(
2958
+ "div",
2959
+ {
2960
+ ref: s,
2961
+ role: "group",
2962
+ "data-size": l,
2963
+ className: m("flex items-center", a),
2964
+ ...n,
2965
+ children: [
2966
+ p.map(
2967
+ (h, v) => g.cloneElement(h, {
2968
+ key: h.key ?? v,
2969
+ size: l,
2970
+ className: m(
2971
+ "ring-2 ring-background",
2972
+ v > 0 && "-ml-2",
2973
+ h.props.className
2974
+ )
2975
+ })
2976
+ ),
2977
+ u > 0 && /* @__PURE__ */ f("span", { "aria-label": `+${u} more`, className: qn({ size: r }), children: [
2978
+ "+",
2979
+ u
2980
+ ] })
2981
+ ]
2982
+ }
2983
+ );
2984
+ }
2985
+ ), Nn = /* @__PURE__ */ D(
2986
+ "isolate inline-flex [&>*]:relative [&>*:focus-visible]:z-10",
2987
+ {
2988
+ variants: {
2989
+ orientation: {
2990
+ horizontal: "flex-row [&>*:not(:first-child)]:-ml-px [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",
2991
+ vertical: "flex-col [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none"
2992
+ }
2993
+ },
2994
+ defaultVariants: { orientation: "horizontal" }
2995
+ }
2996
+ ), $l = /* @__PURE__ */ g.forwardRef(
2997
+ function({ className: a, orientation: e, children: t, ...r }, n) {
2998
+ return /* @__PURE__ */ o(
2999
+ "div",
3000
+ {
3001
+ ref: n,
3002
+ role: "group",
3003
+ "data-orientation": e ?? "horizontal",
3004
+ className: m(Nn({ orientation: e }), a),
3005
+ ...r,
3006
+ children: t
3007
+ }
3008
+ );
3009
+ }
3010
+ ), Pn = /* @__PURE__ */ D(
2959
3011
  "flex items-center gap-2 w-full rounded-md border border-input bg-background px-3 text-foreground ring-offset-background transition-colors focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 has-[input:disabled]:cursor-not-allowed has-[input:disabled]:bg-muted has-[input:disabled]:opacity-70",
2960
3012
  {
2961
3013
  variants: {
@@ -2967,25 +3019,27 @@ const Dn = {
2967
3019
  },
2968
3020
  defaultVariants: { size: "md" }
2969
3021
  }
2970
- ), Cl = g.forwardRef(function({ className: a, size: e, leading: t, trailing: r, disabled: n, ...s }, l) {
2971
- return /* @__PURE__ */ f("div", { "data-size": e ?? "md", className: m(Pn({ size: e }), a), children: [
2972
- t != null && /* @__PURE__ */ o("span", { className: "shrink-0 text-muted-foreground", "aria-hidden": "true", children: t }),
2973
- /* @__PURE__ */ o(
2974
- "input",
2975
- {
2976
- ref: l,
2977
- disabled: n,
2978
- className: "h-full w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
2979
- ...s
2980
- }
2981
- ),
2982
- r != null && /* @__PURE__ */ o("span", { className: "shrink-0 text-muted-foreground", "aria-hidden": "true", children: r })
2983
- ] });
2984
- }), Rn = {
3022
+ ), Cl = /* @__PURE__ */ g.forwardRef(
3023
+ function({ className: a, size: e, leading: t, trailing: r, disabled: n, ...s }, l) {
3024
+ return /* @__PURE__ */ f("div", { "data-size": e ?? "md", className: m(Pn({ size: e }), a), children: [
3025
+ t != null && /* @__PURE__ */ o("span", { className: "shrink-0 text-muted-foreground", "aria-hidden": "true", children: t }),
3026
+ /* @__PURE__ */ o(
3027
+ "input",
3028
+ {
3029
+ ref: l,
3030
+ disabled: n,
3031
+ className: "h-full w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
3032
+ ...s
3033
+ }
3034
+ ),
3035
+ r != null && /* @__PURE__ */ o("span", { className: "shrink-0 text-muted-foreground", "aria-hidden": "true", children: r })
3036
+ ] });
3037
+ }
3038
+ ), Rn = {
2985
3039
  sm: { box: 16, stroke: 2 },
2986
3040
  md: { box: 24, stroke: 3 },
2987
3041
  lg: { box: 32, stroke: 3 }
2988
- }, In = D("inline-flex", {
3042
+ }, In = /* @__PURE__ */ D("inline-flex", {
2989
3043
  variants: {
2990
3044
  tone: {
2991
3045
  neutral: "text-primary",
@@ -2996,62 +3050,60 @@ const Dn = {
2996
3050
  }
2997
3051
  },
2998
3052
  defaultVariants: { tone: "neutral" }
2999
- }), Sl = g.forwardRef(
3000
- function({ className: a, value: e = 0, max: t = 100, size: r = "md", tone: n, indeterminate: s = !1, label: l, ...c }, d) {
3001
- const { box: p, stroke: u } = Rn[r], h = (p - u) / 2, v = 2 * Math.PI * h, y = Math.min(Math.max(e, 0), t), b = t > 0 ? y / t : 0, S = s ? v * 0.75 : v * (1 - b);
3002
- return /* @__PURE__ */ o(
3003
- "span",
3004
- {
3005
- ref: d,
3006
- role: "progressbar",
3007
- "aria-label": l,
3008
- "aria-valuemin": s ? void 0 : 0,
3009
- "aria-valuemax": s ? void 0 : t,
3010
- "aria-valuenow": s ? void 0 : y,
3011
- "data-size": r,
3012
- "data-tone": n ?? "neutral",
3013
- className: m(In({ tone: n }), a),
3014
- ...c,
3015
- children: /* @__PURE__ */ f(
3016
- "svg",
3017
- {
3018
- width: p,
3019
- height: p,
3020
- viewBox: `0 0 ${p} ${p}`,
3021
- fill: "none",
3022
- className: s ? "animate-spin" : void 0,
3023
- children: [
3024
- /* @__PURE__ */ o(
3025
- "circle",
3026
- {
3027
- cx: p / 2,
3028
- cy: p / 2,
3029
- r: h,
3030
- strokeWidth: u,
3031
- className: "stroke-muted"
3032
- }
3033
- ),
3034
- /* @__PURE__ */ o(
3035
- "circle",
3036
- {
3037
- cx: p / 2,
3038
- cy: p / 2,
3039
- r: h,
3040
- strokeWidth: u,
3041
- strokeLinecap: "round",
3042
- strokeDasharray: v,
3043
- strokeDashoffset: S,
3044
- className: "stroke-current",
3045
- transform: `rotate(-90 ${p / 2} ${p / 2})`
3046
- }
3047
- )
3048
- ]
3049
- }
3050
- )
3051
- }
3052
- );
3053
- }
3054
- ), Mn = D(
3053
+ }), Sl = /* @__PURE__ */ g.forwardRef(function({ className: a, value: e = 0, max: t = 100, size: r = "md", tone: n, indeterminate: s = !1, label: l, ...c }, d) {
3054
+ const { box: p, stroke: u } = Rn[r], h = (p - u) / 2, v = 2 * Math.PI * h, y = Math.min(Math.max(e, 0), t), b = t > 0 ? y / t : 0, S = s ? v * 0.75 : v * (1 - b);
3055
+ return /* @__PURE__ */ o(
3056
+ "span",
3057
+ {
3058
+ ref: d,
3059
+ role: "progressbar",
3060
+ "aria-label": l,
3061
+ "aria-valuemin": s ? void 0 : 0,
3062
+ "aria-valuemax": s ? void 0 : t,
3063
+ "aria-valuenow": s ? void 0 : y,
3064
+ "data-size": r,
3065
+ "data-tone": n ?? "neutral",
3066
+ className: m(In({ tone: n }), a),
3067
+ ...c,
3068
+ children: /* @__PURE__ */ f(
3069
+ "svg",
3070
+ {
3071
+ width: p,
3072
+ height: p,
3073
+ viewBox: `0 0 ${p} ${p}`,
3074
+ fill: "none",
3075
+ className: s ? "animate-spin" : void 0,
3076
+ children: [
3077
+ /* @__PURE__ */ o(
3078
+ "circle",
3079
+ {
3080
+ cx: p / 2,
3081
+ cy: p / 2,
3082
+ r: h,
3083
+ strokeWidth: u,
3084
+ className: "stroke-muted"
3085
+ }
3086
+ ),
3087
+ /* @__PURE__ */ o(
3088
+ "circle",
3089
+ {
3090
+ cx: p / 2,
3091
+ cy: p / 2,
3092
+ r: h,
3093
+ strokeWidth: u,
3094
+ strokeLinecap: "round",
3095
+ strokeDasharray: v,
3096
+ strokeDashoffset: S,
3097
+ className: "stroke-current",
3098
+ transform: `rotate(-90 ${p / 2} ${p / 2})`
3099
+ }
3100
+ )
3101
+ ]
3102
+ }
3103
+ )
3104
+ }
3105
+ );
3106
+ }), Mn = /* @__PURE__ */ D(
3055
3107
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium transition-colors hds-focus disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
3056
3108
  {
3057
3109
  variants: {
@@ -3067,7 +3119,7 @@ const Dn = {
3067
3119
  },
3068
3120
  defaultVariants: { variant: "secondary", size: "md" }
3069
3121
  }
3070
- ), Dl = g.forwardRef(function({ className: a, variant: e, size: t, ...r }, n) {
3122
+ ), Dl = /* @__PURE__ */ g.forwardRef(function({ className: a, variant: e, size: t, ...r }, n) {
3071
3123
  return /* @__PURE__ */ o(
3072
3124
  Za.Root,
3073
3125
  {
@@ -3077,9 +3129,9 @@ const Dn = {
3077
3129
  ...r
3078
3130
  }
3079
3131
  );
3080
- }), En = g.forwardRef(function({ ratio: a = 1, ...e }, t) {
3132
+ }), En = /* @__PURE__ */ g.forwardRef(function({ ratio: a = 1, ...e }, t) {
3081
3133
  return /* @__PURE__ */ o(Xa.Root, { ref: t, ratio: a, ...e });
3082
- }), On = Ee.Root, zn = Ee.Trigger, Ln = ge(Ee.Portal), Hn = g.forwardRef(function({ className: a, align: e = "center", sideOffset: t = 6, container: r, ...n }, s) {
3134
+ }), On = Ee.Root, zn = Ee.Trigger, Ln = /* @__PURE__ */ ge(Ee.Portal), Hn = /* @__PURE__ */ g.forwardRef(function({ className: a, align: e = "center", sideOffset: t = 6, container: r, ...n }, s) {
3083
3135
  return /* @__PURE__ */ o(Ln, { container: r, children: /* @__PURE__ */ o(
3084
3136
  Ee.Content,
3085
3137
  {
@@ -3097,7 +3149,7 @@ const Dn = {
3097
3149
  }), Vt = On;
3098
3150
  Vt.Trigger = zn;
3099
3151
  Vt.Content = Hn;
3100
- const An = W.Root, Bn = W.Trigger, Vn = W.Group, Fn = W.RadioGroup, Wn = W.Sub, Ft = ge(W.Portal), Wt = "z-50 min-w-32 overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-overlay", Le = "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hds-focus data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", _n = g.forwardRef(function({ className: a, container: e, ...t }, r) {
3152
+ const An = W.Root, Bn = W.Trigger, Vn = W.Group, Fn = W.RadioGroup, Wn = W.Sub, Ft = /* @__PURE__ */ ge(W.Portal), Wt = "z-50 min-w-32 overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-overlay", Le = "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hds-focus data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", _n = /* @__PURE__ */ g.forwardRef(function({ className: a, container: e, ...t }, r) {
3101
3153
  return /* @__PURE__ */ o(Ft, { container: e, children: /* @__PURE__ */ o(
3102
3154
  W.Content,
3103
3155
  {
@@ -3107,19 +3159,19 @@ const An = W.Root, Bn = W.Trigger, Vn = W.Group, Fn = W.RadioGroup, Wn = W.Sub,
3107
3159
  ...t
3108
3160
  }
3109
3161
  ) });
3110
- }), Un = g.forwardRef(function({ className: a, ...e }, t) {
3162
+ }), Un = /* @__PURE__ */ g.forwardRef(function({ className: a, ...e }, t) {
3111
3163
  return /* @__PURE__ */ o(W.Item, { ref: t, className: m(Le, a), ...e });
3112
- }), Gn = g.forwardRef(function({ className: a, children: e, ...t }, r) {
3164
+ }), Gn = /* @__PURE__ */ g.forwardRef(function({ className: a, children: e, ...t }, r) {
3113
3165
  return /* @__PURE__ */ f(W.CheckboxItem, { ref: r, className: m(Le, "pl-6", a), ...t, children: [
3114
3166
  /* @__PURE__ */ o("span", { className: "absolute left-2 inline-flex items-center justify-center", children: /* @__PURE__ */ o(W.ItemIndicator, { children: /* @__PURE__ */ o(O, { icon: le, size: 14, color: "currentColor", "aria-hidden": !0 }) }) }),
3115
3167
  e
3116
3168
  ] });
3117
- }), jn = g.forwardRef(function({ className: a, children: e, ...t }, r) {
3169
+ }), jn = /* @__PURE__ */ g.forwardRef(function({ className: a, children: e, ...t }, r) {
3118
3170
  return /* @__PURE__ */ f(W.RadioItem, { ref: r, className: m(Le, "pl-6", a), ...t, children: [
3119
3171
  /* @__PURE__ */ o("span", { className: "absolute left-2 inline-flex items-center justify-center", children: /* @__PURE__ */ o(W.ItemIndicator, { children: /* @__PURE__ */ o(O, { icon: Ct, size: 6, color: "currentColor", "aria-hidden": !0, className: "fill-current" }) }) }),
3120
3172
  e
3121
3173
  ] });
3122
- }), Yn = g.forwardRef(function({ className: a, ...e }, t) {
3174
+ }), Yn = /* @__PURE__ */ g.forwardRef(function({ className: a, ...e }, t) {
3123
3175
  return /* @__PURE__ */ o(
3124
3176
  W.Label,
3125
3177
  {
@@ -3128,7 +3180,7 @@ const An = W.Root, Bn = W.Trigger, Vn = W.Group, Fn = W.RadioGroup, Wn = W.Sub,
3128
3180
  ...e
3129
3181
  }
3130
3182
  );
3131
- }), Zn = g.forwardRef(function({ className: a, ...e }, t) {
3183
+ }), Zn = /* @__PURE__ */ g.forwardRef(function({ className: a, ...e }, t) {
3132
3184
  return /* @__PURE__ */ o(
3133
3185
  W.Separator,
3134
3186
  {
@@ -3137,7 +3189,7 @@ const An = W.Root, Bn = W.Trigger, Vn = W.Group, Fn = W.RadioGroup, Wn = W.Sub,
3137
3189
  ...e
3138
3190
  }
3139
3191
  );
3140
- }), Xn = g.forwardRef(function({ className: a, children: e, ...t }, r) {
3192
+ }), Xn = /* @__PURE__ */ g.forwardRef(function({ className: a, children: e, ...t }, r) {
3141
3193
  return /* @__PURE__ */ f(
3142
3194
  W.SubTrigger,
3143
3195
  {
@@ -3150,7 +3202,7 @@ const An = W.Root, Bn = W.Trigger, Vn = W.Group, Fn = W.RadioGroup, Wn = W.Sub,
3150
3202
  ]
3151
3203
  }
3152
3204
  );
3153
- }), Kn = g.forwardRef(function({ className: a, container: e, ...t }, r) {
3205
+ }), Kn = /* @__PURE__ */ g.forwardRef(function({ className: a, container: e, ...t }, r) {
3154
3206
  return /* @__PURE__ */ o(Ft, { container: e, children: /* @__PURE__ */ o(W.SubContent, { ref: r, className: m(Wt, a), ...t }) });
3155
3207
  }), Y = ((i) => /* @__PURE__ */ o(An, { ...i }));
3156
3208
  Y.Trigger = Bn;
@@ -3165,7 +3217,7 @@ Y.Group = Vn;
3165
3217
  Y.Sub = Wn;
3166
3218
  Y.SubTrigger = Xn;
3167
3219
  Y.SubContent = Kn;
3168
- const gt = D("", {
3220
+ const gt = /* @__PURE__ */ D("", {
3169
3221
  variants: {
3170
3222
  orientation: {
3171
3223
  vertical: "flex flex-col gap-3",
@@ -3173,7 +3225,7 @@ const gt = D("", {
3173
3225
  }
3174
3226
  },
3175
3227
  defaultVariants: { orientation: "vertical" }
3176
- }), Tl = g.forwardRef(
3228
+ }), Tl = /* @__PURE__ */ g.forwardRef(
3177
3229
  function({ className: a, items: e, orientation: t = "vertical", variant: r = "plain", footer: n, ...s }, l) {
3178
3230
  return r === "divided" ? /* @__PURE__ */ f(
3179
3231
  "dl",
@@ -3258,7 +3310,7 @@ const gt = D("", {
3258
3310
  }
3259
3311
  );
3260
3312
  }
3261
- ), Qn = D(
3313
+ ), Qn = /* @__PURE__ */ D(
3262
3314
  "w-full text-left rounded-lg border bg-card p-4 text-foreground transition-colors hds-focus disabled:opacity-50 disabled:pointer-events-none",
3263
3315
  {
3264
3316
  variants: {
@@ -3269,126 +3321,124 @@ const gt = D("", {
3269
3321
  },
3270
3322
  defaultVariants: { selected: !1 }
3271
3323
  }
3272
- ), ql = g.forwardRef(
3273
- function({ className: a, selected: e = !1, onSelectedChange: t, disabled: r, onClick: n, ...s }, l) {
3274
- return /* @__PURE__ */ o(
3275
- "button",
3276
- {
3277
- ref: l,
3278
- type: "button",
3279
- role: "checkbox",
3280
- "aria-checked": e,
3281
- "data-state": e ? "checked" : "unchecked",
3282
- disabled: r,
3283
- onClick: (c) => {
3284
- n == null || n(c), t == null || t(!e);
3285
- },
3286
- className: m(Qn({ selected: e }), a),
3287
- ...s
3324
+ ), ql = /* @__PURE__ */ g.forwardRef(function({ className: a, selected: e = !1, onSelectedChange: t, disabled: r, onClick: n, ...s }, l) {
3325
+ return /* @__PURE__ */ o(
3326
+ "button",
3327
+ {
3328
+ ref: l,
3329
+ type: "button",
3330
+ role: "checkbox",
3331
+ "aria-checked": e,
3332
+ "data-state": e ? "checked" : "unchecked",
3333
+ disabled: r,
3334
+ onClick: (c) => {
3335
+ n == null || n(c), t == null || t(!e);
3336
+ },
3337
+ className: m(Qn({ selected: e }), a),
3338
+ ...s
3339
+ }
3340
+ );
3341
+ }), Nl = /* @__PURE__ */ g.forwardRef(
3342
+ function({ value: a, onChange: e, placeholder: t, disabled: r, className: n, id: s, "aria-label": l, ...c }, d) {
3343
+ const [p, u] = g.useState("");
3344
+ function h() {
3345
+ const b = p.trim();
3346
+ b !== "" && (e([...a, b]), u(""));
3347
+ }
3348
+ function v(b) {
3349
+ if (b.key === "Enter") {
3350
+ b.preventDefault(), h();
3351
+ return;
3288
3352
  }
3289
- );
3290
- }
3291
- ), Nl = g.forwardRef(function({ value: a, onChange: e, placeholder: t, disabled: r, className: n, id: s, "aria-label": l, ...c }, d) {
3292
- const [p, u] = g.useState("");
3293
- function h() {
3294
- const b = p.trim();
3295
- b !== "" && (e([...a, b]), u(""));
3296
- }
3297
- function v(b) {
3298
- if (b.key === "Enter") {
3299
- b.preventDefault(), h();
3300
- return;
3353
+ b.key === "Backspace" && p === "" && a.length > 0 && e(a.slice(0, -1));
3301
3354
  }
3302
- b.key === "Backspace" && p === "" && a.length > 0 && e(a.slice(0, -1));
3303
- }
3304
- function y(b) {
3305
- e(a.filter((S, C) => C !== b));
3306
- }
3307
- return /* @__PURE__ */ f(
3308
- "div",
3309
- {
3310
- className: m(
3311
- "flex flex-wrap items-center gap-1.5 min-h-10 w-full rounded-md border border-input bg-background px-2 py-1 text-sm transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
3312
- r && "cursor-not-allowed bg-muted text-muted-foreground",
3313
- n
3314
- ),
3315
- children: [
3316
- a.map((b, S) => /* @__PURE__ */ f("span", { className: "inline-flex items-center gap-1", children: [
3317
- /* @__PURE__ */ o(Fi, { children: b }),
3355
+ function y(b) {
3356
+ e(a.filter((S, C) => C !== b));
3357
+ }
3358
+ return /* @__PURE__ */ f(
3359
+ "div",
3360
+ {
3361
+ className: m(
3362
+ "flex flex-wrap items-center gap-1.5 min-h-10 w-full rounded-md border border-input bg-background px-2 py-1 text-sm transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
3363
+ r && "cursor-not-allowed bg-muted text-muted-foreground",
3364
+ n
3365
+ ),
3366
+ children: [
3367
+ a.map((b, S) => /* @__PURE__ */ f("span", { className: "inline-flex items-center gap-1", children: [
3368
+ /* @__PURE__ */ o(Fi, { children: b }),
3369
+ /* @__PURE__ */ o(
3370
+ "button",
3371
+ {
3372
+ type: "button",
3373
+ onClick: () => y(S),
3374
+ disabled: r,
3375
+ "aria-label": `Remove ${b}`,
3376
+ className: "inline-flex size-[var(--primitive-size-interactive-minCompact)] shrink-0 items-center justify-center rounded-sm text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3377
+ children: /* @__PURE__ */ o(Ge, { className: "size-3", "aria-hidden": "true" })
3378
+ }
3379
+ )
3380
+ ] }, `${b}-${S}`)),
3318
3381
  /* @__PURE__ */ o(
3319
- "button",
3382
+ "input",
3320
3383
  {
3321
- type: "button",
3322
- onClick: () => y(S),
3384
+ ref: d,
3385
+ id: s,
3386
+ "aria-label": l,
3387
+ type: "text",
3388
+ value: p,
3389
+ onChange: (b) => u(b.target.value),
3390
+ onKeyDown: v,
3391
+ placeholder: a.length === 0 ? t : void 0,
3323
3392
  disabled: r,
3324
- "aria-label": `Remove ${b}`,
3325
- className: "inline-flex size-[var(--primitive-size-interactive-minCompact)] shrink-0 items-center justify-center rounded-sm text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3326
- children: /* @__PURE__ */ o(Ge, { className: "size-3", "aria-hidden": "true" })
3393
+ className: "min-w-24 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
3394
+ ...c
3327
3395
  }
3328
3396
  )
3329
- ] }, `${b}-${S}`)),
3397
+ ]
3398
+ }
3399
+ );
3400
+ }
3401
+ ), Jn = "relative flex w-full cursor-pointer select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hds-focus hover:bg-accent hover:text-accent-foreground focus-within:bg-accent focus-within:text-accent-foreground focus-within:ring-2 focus-within:ring-inset focus-within:ring-ring", Pl = /* @__PURE__ */ g.forwardRef(function({ options: a, value: e, onChange: t, placeholder: r = "Select…", disabled: n = !1, className: s }, l) {
3402
+ const [c, d] = g.useState(!1), p = g.useId();
3403
+ function u(h) {
3404
+ const v = e.includes(h) ? e.filter((y) => y !== h) : [...e, h];
3405
+ t(v);
3406
+ }
3407
+ return /* @__PURE__ */ f(B, { open: c, onOpenChange: d, children: [
3408
+ /* @__PURE__ */ o(B.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
3409
+ "button",
3410
+ {
3411
+ ref: l,
3412
+ type: "button",
3413
+ disabled: n,
3414
+ className: m(
3415
+ "hds-focus inline-flex h-10 items-center justify-between gap-2 rounded-md border border-input",
3416
+ "bg-background px-3 text-sm text-foreground hover:bg-accent hover:border-ring",
3417
+ "disabled:pointer-events-none disabled:opacity-50",
3418
+ s
3419
+ ),
3420
+ children: /* @__PURE__ */ o("span", { className: m("truncate", e.length === 0 && "text-muted-foreground"), children: e.length === 0 ? r : `${e.length} selected` })
3421
+ }
3422
+ ) }),
3423
+ /* @__PURE__ */ o(B.Content, { align: "start", className: "w-64 p-1", children: /* @__PURE__ */ o("div", { className: "max-h-60 overflow-y-auto", children: a.map((h) => {
3424
+ const v = e.includes(h.value), y = `${p}-${h.value}`;
3425
+ return /* @__PURE__ */ f("label", { htmlFor: y, className: Jn, children: [
3426
+ /* @__PURE__ */ o("span", { className: "pointer-events-none absolute left-2 inline-flex items-center justify-center", children: v ? /* @__PURE__ */ o(O, { icon: le, size: 14, color: "currentColor", "aria-hidden": !0 }) : null }),
3330
3427
  /* @__PURE__ */ o(
3331
3428
  "input",
3332
3429
  {
3333
- ref: d,
3334
- id: s,
3335
- "aria-label": l,
3336
- type: "text",
3337
- value: p,
3338
- onChange: (b) => u(b.target.value),
3339
- onKeyDown: v,
3340
- placeholder: a.length === 0 ? t : void 0,
3341
- disabled: r,
3342
- className: "min-w-24 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
3343
- ...c
3430
+ id: y,
3431
+ type: "checkbox",
3432
+ checked: v,
3433
+ onChange: () => u(h.value),
3434
+ className: "sr-only"
3344
3435
  }
3345
- )
3346
- ]
3347
- }
3348
- );
3349
- }), Jn = "relative flex w-full cursor-pointer select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hds-focus hover:bg-accent hover:text-accent-foreground focus-within:bg-accent focus-within:text-accent-foreground focus-within:ring-2 focus-within:ring-inset focus-within:ring-ring", Pl = g.forwardRef(
3350
- function({ options: a, value: e, onChange: t, placeholder: r = "Select…", disabled: n = !1, className: s }, l) {
3351
- const [c, d] = g.useState(!1), p = g.useId();
3352
- function u(h) {
3353
- const v = e.includes(h) ? e.filter((y) => y !== h) : [...e, h];
3354
- t(v);
3355
- }
3356
- return /* @__PURE__ */ f(B, { open: c, onOpenChange: d, children: [
3357
- /* @__PURE__ */ o(B.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
3358
- "button",
3359
- {
3360
- ref: l,
3361
- type: "button",
3362
- disabled: n,
3363
- className: m(
3364
- "hds-focus inline-flex h-10 items-center justify-between gap-2 rounded-md border border-input",
3365
- "bg-background px-3 text-sm text-foreground hover:bg-accent hover:border-ring",
3366
- "disabled:pointer-events-none disabled:opacity-50",
3367
- s
3368
- ),
3369
- children: /* @__PURE__ */ o("span", { className: m("truncate", e.length === 0 && "text-muted-foreground"), children: e.length === 0 ? r : `${e.length} selected` })
3370
- }
3371
- ) }),
3372
- /* @__PURE__ */ o(B.Content, { align: "start", className: "w-64 p-1", children: /* @__PURE__ */ o("div", { className: "max-h-60 overflow-y-auto", children: a.map((h) => {
3373
- const v = e.includes(h.value), y = `${p}-${h.value}`;
3374
- return /* @__PURE__ */ f("label", { htmlFor: y, className: Jn, children: [
3375
- /* @__PURE__ */ o("span", { className: "pointer-events-none absolute left-2 inline-flex items-center justify-center", children: v ? /* @__PURE__ */ o(O, { icon: le, size: 14, color: "currentColor", "aria-hidden": !0 }) : null }),
3376
- /* @__PURE__ */ o(
3377
- "input",
3378
- {
3379
- id: y,
3380
- type: "checkbox",
3381
- checked: v,
3382
- onChange: () => u(h.value),
3383
- className: "sr-only"
3384
- }
3385
- ),
3386
- /* @__PURE__ */ o("span", { className: "truncate", children: h.label })
3387
- ] }, h.value);
3388
- }) }) })
3389
- ] });
3390
- }
3391
- );
3436
+ ),
3437
+ /* @__PURE__ */ o("span", { className: "truncate", children: h.label })
3438
+ ] }, h.value);
3439
+ }) }) })
3440
+ ] });
3441
+ });
3392
3442
  function eo() {
3393
3443
  return Object.assign({}, Tt());
3394
3444
  }
@@ -4981,7 +5031,7 @@ function Yt(i, a, e, t) {
4981
5031
  function Ko(i) {
4982
5032
  return i.match(jo)[1].replace(Yo, "'");
4983
5033
  }
4984
- const Qo = D(
5034
+ const Qo = /* @__PURE__ */ D(
4985
5035
  "flex w-full rounded-md border border-input bg-background text-foreground ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-70",
4986
5036
  {
4987
5037
  variants: {
@@ -4993,135 +5043,137 @@ const Qo = D(
4993
5043
  },
4994
5044
  defaultVariants: { size: "md" }
4995
5045
  }
4996
- ), Jo = g.forwardRef(function({ className: a, size: e, ...t }, r) {
4997
- return /* @__PURE__ */ o(
4998
- "input",
4999
- {
5000
- ref: r,
5001
- type: "time",
5002
- className: m(Qo({ size: e }), a),
5003
- ...t
5004
- }
5005
- );
5006
- }), Rl = g.forwardRef(function({
5007
- value: a,
5008
- onChange: e,
5009
- displayFormat: t = "yyyy-MM-dd",
5010
- placeholder: r,
5011
- disabled: n = !1,
5012
- id: s,
5013
- "aria-label": l
5014
- }, c) {
5015
- const [d, p] = g.useState(!1), [u, h] = g.useState(() => a ? ne(a, t) : "");
5016
- g.useEffect(() => {
5017
- h(a ? ne(a, t) : "");
5018
- }, [a, t]);
5019
- function v() {
5020
- if (u === "") {
5021
- e == null || e(void 0);
5022
- return;
5023
- }
5024
- const y = Yt(u, t, /* @__PURE__ */ new Date());
5025
- Rt(y) && (e == null || e(y));
5046
+ ), Jo = /* @__PURE__ */ g.forwardRef(
5047
+ function({ className: a, size: e, ...t }, r) {
5048
+ return /* @__PURE__ */ o(
5049
+ "input",
5050
+ {
5051
+ ref: r,
5052
+ type: "time",
5053
+ className: m(Qo({ size: e }), a),
5054
+ ...t
5055
+ }
5056
+ );
5026
5057
  }
5027
- return /* @__PURE__ */ f(
5028
- "div",
5029
- {
5030
- className: m(
5031
- "flex h-10 w-full items-center gap-2 rounded-md border border-input bg-background px-3",
5032
- "transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
5033
- n && "cursor-not-allowed opacity-70"
5034
- ),
5035
- children: [
5036
- /* @__PURE__ */ o(
5037
- "input",
5038
- {
5039
- ref: c,
5040
- id: s,
5041
- "aria-label": l,
5042
- type: "text",
5043
- value: u,
5044
- placeholder: r ?? t.toLowerCase(),
5045
- disabled: n,
5046
- onChange: (y) => h(y.target.value),
5047
- onBlur: v,
5048
- className: "flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed min-w-0"
5049
- }
5050
- ),
5051
- /* @__PURE__ */ f(B, { open: d, onOpenChange: p, children: [
5052
- /* @__PURE__ */ o(B.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
5053
- "button",
5054
- {
5055
- type: "button",
5056
- "aria-label": "Open calendar",
5057
- disabled: n,
5058
- className: "text-muted-foreground hover:text-foreground hds-focus disabled:pointer-events-none disabled:opacity-50 shrink-0",
5059
- children: /* @__PURE__ */ o(je, { className: "size-4", "aria-hidden": "true" })
5060
- }
5061
- ) }),
5062
- /* @__PURE__ */ o(B.Content, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ o(
5063
- Me,
5064
- {
5065
- mode: "single",
5066
- selected: a,
5067
- defaultMonth: a,
5068
- onSelect: (y) => {
5069
- e == null || e(y), p(!1);
5070
- }
5071
- }
5072
- ) })
5073
- ] })
5074
- ]
5075
- }
5076
- );
5077
- }), Il = g.forwardRef(
5058
+ ), Rl = /* @__PURE__ */ g.forwardRef(
5078
5059
  function({
5079
5060
  value: a,
5080
5061
  onChange: e,
5081
5062
  displayFormat: t = "yyyy-MM-dd",
5082
- placeholder: r = "Select date range",
5063
+ placeholder: r,
5083
5064
  disabled: n = !1,
5084
- numberOfMonths: s = 2,
5085
- id: l,
5086
- "aria-label": c
5087
- }, d) {
5088
- const [p, u] = g.useState(!1), h = a != null && a.from ? `${ne(a.from, t)}${a.to ? ` – ${ne(a.to, t)}` : ""}` : null;
5089
- return /* @__PURE__ */ f(B, { open: p, onOpenChange: u, children: [
5090
- /* @__PURE__ */ o(B.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
5091
- "button",
5092
- {
5093
- ref: d,
5094
- id: l,
5095
- type: "button",
5096
- disabled: n,
5097
- "aria-label": c,
5098
- className: m(
5099
- "inline-flex items-center gap-2 h-10 w-full rounded-md border border-input bg-background px-3 text-sm text-left transition-colors hds-focus disabled:opacity-50 disabled:pointer-events-none"
5065
+ id: s,
5066
+ "aria-label": l
5067
+ }, c) {
5068
+ const [d, p] = g.useState(!1), [u, h] = g.useState(() => a ? ne(a, t) : "");
5069
+ g.useEffect(() => {
5070
+ h(a ? ne(a, t) : "");
5071
+ }, [a, t]);
5072
+ function v() {
5073
+ if (u === "") {
5074
+ e == null || e(void 0);
5075
+ return;
5076
+ }
5077
+ const y = Yt(u, t, /* @__PURE__ */ new Date());
5078
+ Rt(y) && (e == null || e(y));
5079
+ }
5080
+ return /* @__PURE__ */ f(
5081
+ "div",
5082
+ {
5083
+ className: m(
5084
+ "flex h-10 w-full items-center gap-2 rounded-md border border-input bg-background px-3",
5085
+ "transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
5086
+ n && "cursor-not-allowed opacity-70"
5087
+ ),
5088
+ children: [
5089
+ /* @__PURE__ */ o(
5090
+ "input",
5091
+ {
5092
+ ref: c,
5093
+ id: s,
5094
+ "aria-label": l,
5095
+ type: "text",
5096
+ value: u,
5097
+ placeholder: r ?? t.toLowerCase(),
5098
+ disabled: n,
5099
+ onChange: (y) => h(y.target.value),
5100
+ onBlur: v,
5101
+ className: "flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed min-w-0"
5102
+ }
5100
5103
  ),
5101
- children: [
5102
- /* @__PURE__ */ o(je, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }),
5103
- /* @__PURE__ */ o("span", { className: m("truncate", !h && "text-muted-foreground"), children: h ?? r })
5104
- ]
5105
- }
5106
- ) }),
5107
- /* @__PURE__ */ o(B.Content, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ o(
5108
- Me,
5109
- {
5110
- mode: "range",
5111
- numberOfMonths: s,
5112
- selected: a,
5113
- onSelect: (v) => e == null ? void 0 : e(v),
5114
- defaultMonth: a == null ? void 0 : a.from
5115
- }
5116
- ) })
5117
- ] });
5104
+ /* @__PURE__ */ f(B, { open: d, onOpenChange: p, children: [
5105
+ /* @__PURE__ */ o(B.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
5106
+ "button",
5107
+ {
5108
+ type: "button",
5109
+ "aria-label": "Open calendar",
5110
+ disabled: n,
5111
+ className: "text-muted-foreground hover:text-foreground hds-focus disabled:pointer-events-none disabled:opacity-50 shrink-0",
5112
+ children: /* @__PURE__ */ o(je, { className: "size-4", "aria-hidden": "true" })
5113
+ }
5114
+ ) }),
5115
+ /* @__PURE__ */ o(B.Content, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ o(
5116
+ Me,
5117
+ {
5118
+ mode: "single",
5119
+ selected: a,
5120
+ defaultMonth: a,
5121
+ onSelect: (y) => {
5122
+ e == null || e(y), p(!1);
5123
+ }
5124
+ }
5125
+ ) })
5126
+ ] })
5127
+ ]
5128
+ }
5129
+ );
5118
5130
  }
5119
- );
5131
+ ), Il = /* @__PURE__ */ g.forwardRef(function({
5132
+ value: a,
5133
+ onChange: e,
5134
+ displayFormat: t = "yyyy-MM-dd",
5135
+ placeholder: r = "Select date range",
5136
+ disabled: n = !1,
5137
+ numberOfMonths: s = 2,
5138
+ id: l,
5139
+ "aria-label": c
5140
+ }, d) {
5141
+ const [p, u] = g.useState(!1), h = a != null && a.from ? `${ne(a.from, t)}${a.to ? ` – ${ne(a.to, t)}` : ""}` : null;
5142
+ return /* @__PURE__ */ f(B, { open: p, onOpenChange: u, children: [
5143
+ /* @__PURE__ */ o(B.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
5144
+ "button",
5145
+ {
5146
+ ref: d,
5147
+ id: l,
5148
+ type: "button",
5149
+ disabled: n,
5150
+ "aria-label": c,
5151
+ className: m(
5152
+ "inline-flex items-center gap-2 h-10 w-full rounded-md border border-input bg-background px-3 text-sm text-left transition-colors hds-focus disabled:opacity-50 disabled:pointer-events-none"
5153
+ ),
5154
+ children: [
5155
+ /* @__PURE__ */ o(je, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }),
5156
+ /* @__PURE__ */ o("span", { className: m("truncate", !h && "text-muted-foreground"), children: h ?? r })
5157
+ ]
5158
+ }
5159
+ ) }),
5160
+ /* @__PURE__ */ o(B.Content, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ o(
5161
+ Me,
5162
+ {
5163
+ mode: "range",
5164
+ numberOfMonths: s,
5165
+ selected: a,
5166
+ onSelect: (v) => e == null ? void 0 : e(v),
5167
+ defaultMonth: a == null ? void 0 : a.from
5168
+ }
5169
+ ) })
5170
+ ] });
5171
+ });
5120
5172
  function es(i, a) {
5121
5173
  const [e, t] = a.split(":").map((n) => Number.parseInt(n, 10)), r = new Date(i);
5122
5174
  return r.setHours(Number.isFinite(e) ? e : 0, Number.isFinite(t) ? t : 0, 0, 0), r;
5123
5175
  }
5124
- const Ml = g.forwardRef(
5176
+ const Ml = /* @__PURE__ */ g.forwardRef(
5125
5177
  function({ value: a, onChange: e, dateFormat: t = "yyyy-MM-dd", disabled: r = !1, id: n, "aria-label": s }, l) {
5126
5178
  const [c, d] = g.useState(!1), [p, u] = g.useState(() => a ? ne(a, t) : ""), [h, v] = g.useState(() => a ? ne(a, "HH:mm") : "");
5127
5179
  g.useEffect(() => {
@@ -5217,7 +5269,7 @@ const Ml = g.forwardRef(
5217
5269
  normal: "var(--semantic-space-scale-md)",
5218
5270
  inset: "var(--semantic-space-scale-lg)",
5219
5271
  spacious: "var(--semantic-space-scale-xl)"
5220
- }, El = X.forwardRef(function({ children: a, maxWidth: e = "content", gutter: t, className: r, style: n, as: s = "div" }, l) {
5272
+ }, El = /* @__PURE__ */ X.forwardRef(function({ children: a, maxWidth: e = "content", gutter: t, className: r, style: n, as: s = "div" }, l) {
5221
5273
  return /* @__PURE__ */ o(
5222
5274
  s,
5223
5275
  {
@@ -5240,79 +5292,88 @@ const Ml = g.forwardRef(
5240
5292
  normal: "var(--semantic-space-scale-md)",
5241
5293
  inset: "var(--semantic-space-scale-lg)",
5242
5294
  spacious: "var(--semantic-space-scale-xl)"
5243
- }, Ol = X.forwardRef(function({
5244
- children: a,
5245
- side: e = "start",
5246
- sideWidth: t = "16rem",
5247
- contentMin: r = "50%",
5248
- gap: n = "normal",
5249
- className: s,
5250
- style: l,
5251
- as: c = "div"
5252
- }, d) {
5253
- const [p, u] = a;
5254
- return /* @__PURE__ */ f(
5255
- c,
5256
- {
5257
- ref: d,
5258
- className: s,
5259
- "data-hds-component": "Sidebar",
5260
- "data-hds-metrics": `side:${e}`,
5261
- style: {
5262
- display: "flex",
5263
- flexWrap: "wrap",
5264
- gap: as[n],
5265
- ...l
5266
- },
5267
- children: [
5268
- /* @__PURE__ */ o("div", { style: { flexBasis: t, flexGrow: 1, order: e === "end" ? 2 : 1 }, children: p }),
5269
- /* @__PURE__ */ o(
5270
- "div",
5271
- {
5272
- style: { flexBasis: 0, flexGrow: 999, minWidth: r, order: e === "end" ? 1 : 2 },
5273
- children: u
5274
- }
5275
- )
5276
- ]
5277
- }
5278
- );
5279
- }), rs = {
5295
+ }, Ol = /* @__PURE__ */ X.forwardRef(
5296
+ function({
5297
+ children: a,
5298
+ side: e = "start",
5299
+ sideWidth: t = "16rem",
5300
+ contentMin: r = "50%",
5301
+ gap: n = "normal",
5302
+ className: s,
5303
+ style: l,
5304
+ as: c = "div"
5305
+ }, d) {
5306
+ const [p, u] = a;
5307
+ return /* @__PURE__ */ f(
5308
+ c,
5309
+ {
5310
+ ref: d,
5311
+ className: s,
5312
+ "data-hds-component": "Sidebar",
5313
+ "data-hds-metrics": `side:${e}`,
5314
+ style: {
5315
+ display: "flex",
5316
+ flexWrap: "wrap",
5317
+ gap: as[n],
5318
+ ...l
5319
+ },
5320
+ children: [
5321
+ /* @__PURE__ */ o("div", { style: { flexBasis: t, flexGrow: 1, order: e === "end" ? 2 : 1 }, children: p }),
5322
+ /* @__PURE__ */ o(
5323
+ "div",
5324
+ {
5325
+ style: {
5326
+ flexBasis: 0,
5327
+ flexGrow: 999,
5328
+ minWidth: r,
5329
+ order: e === "end" ? 1 : 2
5330
+ },
5331
+ children: u
5332
+ }
5333
+ )
5334
+ ]
5335
+ }
5336
+ );
5337
+ }
5338
+ ), rs = {
5280
5339
  tight: "var(--semantic-space-scale-sm)",
5281
5340
  normal: "var(--semantic-space-scale-md)",
5282
5341
  inset: "var(--semantic-space-scale-lg)",
5283
5342
  spacious: "var(--semantic-space-scale-xl)"
5284
- }, zl = X.forwardRef(function({ children: a, threshold: e = "30rem", gap: t = "normal", limit: r, className: n, style: s, as: l = "div" }, c) {
5285
- const d = X.Children.toArray(a), p = r !== void 0 && d.length > r;
5286
- return /* @__PURE__ */ o(
5287
- l,
5288
- {
5289
- ref: c,
5290
- className: n,
5291
- "data-hds-component": "Switcher",
5292
- "data-hds-metrics": `threshold:${e}`,
5293
- style: {
5294
- display: "flex",
5295
- flexWrap: "wrap",
5296
- gap: rs[t],
5297
- ...p && { flexDirection: "column" },
5298
- ...s
5299
- },
5300
- children: d.map((u, h) => /* @__PURE__ */ o(
5301
- "div",
5302
- {
5303
- style: p ? void 0 : { flexGrow: 1, flexBasis: `calc((${e} - 100%) * 999)` },
5304
- children: u
5343
+ }, zl = /* @__PURE__ */ X.forwardRef(
5344
+ function({ children: a, threshold: e = "30rem", gap: t = "normal", limit: r, className: n, style: s, as: l = "div" }, c) {
5345
+ const d = X.Children.toArray(a), p = r !== void 0 && d.length > r;
5346
+ return /* @__PURE__ */ o(
5347
+ l,
5348
+ {
5349
+ ref: c,
5350
+ className: n,
5351
+ "data-hds-component": "Switcher",
5352
+ "data-hds-metrics": `threshold:${e}`,
5353
+ style: {
5354
+ display: "flex",
5355
+ flexWrap: "wrap",
5356
+ gap: rs[t],
5357
+ ...p && { flexDirection: "column" },
5358
+ ...s
5305
5359
  },
5306
- h
5307
- ))
5308
- }
5309
- );
5310
- }), is = {
5360
+ children: d.map((u, h) => /* @__PURE__ */ o(
5361
+ "div",
5362
+ {
5363
+ style: p ? void 0 : { flexGrow: 1, flexBasis: `calc((${e} - 100%) * 999)` },
5364
+ children: u
5365
+ },
5366
+ h
5367
+ ))
5368
+ }
5369
+ );
5370
+ }
5371
+ ), is = {
5311
5372
  tight: "var(--semantic-space-scale-sm)",
5312
5373
  normal: "var(--semantic-space-scale-md)",
5313
5374
  inset: "var(--semantic-space-scale-lg)",
5314
5375
  spacious: "var(--semantic-space-scale-xl)"
5315
- }, Ll = X.forwardRef(function({
5376
+ }, Ll = /* @__PURE__ */ X.forwardRef(function({
5316
5377
  children: a,
5317
5378
  centerSlot: e,
5318
5379
  header: t,
@@ -5350,7 +5411,7 @@ const Ml = g.forwardRef(
5350
5411
  sm: x.borderRadius.sm,
5351
5412
  md: x.borderRadius.md,
5352
5413
  full: x.borderRadius.full
5353
- }, Hl = X.forwardRef(function({ children: a, ratio: e = 16 / 9, radius: t = "md", className: r, style: n, as: s = "div" }, l) {
5414
+ }, Hl = /* @__PURE__ */ X.forwardRef(function({ children: a, ratio: e = 16 / 9, radius: t = "md", className: r, style: n, as: s = "div" }, l) {
5354
5415
  return /* @__PURE__ */ o(
5355
5416
  s,
5356
5417
  {
@@ -5371,7 +5432,7 @@ const Ml = g.forwardRef(
5371
5432
  normal: "var(--semantic-space-scale-md)",
5372
5433
  inset: "var(--semantic-space-scale-lg)",
5373
5434
  spacious: "var(--semantic-space-scale-xl)"
5374
- }, Al = X.forwardRef(function({ children: a, amount: e = "normal", axis: t = "x", className: r, style: n, as: s = "div" }, l) {
5435
+ }, Al = /* @__PURE__ */ X.forwardRef(function({ children: a, amount: e = "normal", axis: t = "x", className: r, style: n, as: s = "div" }, l) {
5375
5436
  const c = `calc(-1 * ${os[e]})`;
5376
5437
  return /* @__PURE__ */ o(
5377
5438
  s,
@@ -5388,7 +5449,7 @@ const Ml = g.forwardRef(
5388
5449
  children: a
5389
5450
  }
5390
5451
  );
5391
- }), Bl = X.forwardRef(function({ children: a, top: e = "0", className: t, style: r, as: n = "div" }, s) {
5452
+ }), Bl = /* @__PURE__ */ X.forwardRef(function({ children: a, top: e = "0", className: t, style: r, as: n = "div" }, s) {
5392
5453
  return /* @__PURE__ */ o(
5393
5454
  n,
5394
5455
  {
@@ -5542,7 +5603,7 @@ const ss = {
5542
5603
  xs: "8px",
5543
5604
  sm: "12px",
5544
5605
  md: "16px"
5545
- }, Gl = g.forwardRef(
5606
+ }, Gl = /* @__PURE__ */ g.forwardRef(
5546
5607
  function({ minTileWidth: a = "260px", gap: e = "sm", className: t, style: r, children: n, ...s }, l) {
5547
5608
  return /* @__PURE__ */ o(
5548
5609
  "div",
@@ -5563,28 +5624,30 @@ const ss = {
5563
5624
  }
5564
5625
  );
5565
5626
  }
5566
- ), jl = g.forwardRef(function({ tone: a = "neutral", title: e, notes: t, trailing: r, className: n, ...s }, l) {
5567
- return /* @__PURE__ */ f(
5568
- "div",
5569
- {
5570
- ref: l,
5571
- "data-hds-component": "StatusTile",
5572
- "data-hds-metrics": `tone:${a}`,
5573
- className: m(
5574
- "flex h-full items-start gap-3 rounded-lg bg-[var(--semantic-color-surface-raised)] p-4",
5575
- n
5576
- ),
5577
- ...s,
5578
- children: [
5579
- /* @__PURE__ */ f("div", { className: "min-w-0 flex-1", children: [
5580
- /* @__PURE__ */ o("p", { className: "m-0 text-sm text-foreground", children: e }),
5581
- t == null ? void 0 : t.map((c, d) => /* @__PURE__ */ o("p", { className: "m-0 mt-1 text-xs text-muted-foreground", children: c }, d))
5582
- ] }),
5583
- r && /* @__PURE__ */ o("div", { className: "shrink-0", children: r })
5584
- ]
5585
- }
5586
- );
5587
- }), ls = D("", {
5627
+ ), jl = /* @__PURE__ */ g.forwardRef(
5628
+ function({ tone: a = "neutral", title: e, notes: t, trailing: r, className: n, ...s }, l) {
5629
+ return /* @__PURE__ */ f(
5630
+ "div",
5631
+ {
5632
+ ref: l,
5633
+ "data-hds-component": "StatusTile",
5634
+ "data-hds-metrics": `tone:${a}`,
5635
+ className: m(
5636
+ "flex h-full items-start gap-3 rounded-lg bg-[var(--semantic-color-surface-raised)] p-4",
5637
+ n
5638
+ ),
5639
+ ...s,
5640
+ children: [
5641
+ /* @__PURE__ */ f("div", { className: "min-w-0 flex-1", children: [
5642
+ /* @__PURE__ */ o("p", { className: "m-0 text-sm text-foreground", children: e }),
5643
+ t == null ? void 0 : t.map((c, d) => /* @__PURE__ */ o("p", { className: "m-0 mt-1 text-xs text-muted-foreground", children: c }, d))
5644
+ ] }),
5645
+ r && /* @__PURE__ */ o("div", { className: "shrink-0", children: r })
5646
+ ]
5647
+ }
5648
+ );
5649
+ }
5650
+ ), ls = /* @__PURE__ */ D("", {
5588
5651
  variants: {
5589
5652
  current: {
5590
5653
  true: "text-foreground",
@@ -5592,183 +5655,187 @@ const ss = {
5592
5655
  }
5593
5656
  },
5594
5657
  defaultVariants: { current: !1 }
5595
- }), Yl = g.forwardRef(function({ items: a, label: e = "Breadcrumb", className: t, ...r }, n) {
5596
- const { LinkComponent: s } = Xe();
5597
- return /* @__PURE__ */ o("nav", { ref: n, "aria-label": e, className: m("w-full", t), ...r, children: /* @__PURE__ */ o("ol", { className: "flex flex-wrap items-center gap-2", children: a.map((l, c) => {
5598
- const d = c === a.length - 1, p = !!l.href && !d;
5599
- return /* @__PURE__ */ f("li", { className: "inline-flex items-center gap-2", children: [
5600
- p ? /* @__PURE__ */ o(
5601
- s,
5602
- {
5603
- to: l.href,
5604
- style: x.typeStyles.ui,
5605
- className: "hds-focus text-muted-foreground transition-colors hover:text-foreground",
5606
- children: l.label
5607
- }
5608
- ) : /* @__PURE__ */ o(
5609
- "span",
5610
- {
5611
- "aria-current": d ? "page" : void 0,
5612
- style: x.typeStyles.ui,
5613
- className: ls({ current: d }),
5614
- children: l.label
5615
- }
5616
- ),
5617
- !d && /* @__PURE__ */ o(
5618
- O,
5619
- {
5620
- icon: Ie,
5621
- size: "small",
5622
- color: "var(--semantic-color-content-secondary)",
5623
- "aria-hidden": !0
5624
- }
5625
- )
5626
- ] }, `${l.label}-${c}`);
5627
- }) }) });
5628
- }), Zl = g.forwardRef(function({
5629
- options: a,
5630
- value: e,
5631
- onChange: t,
5632
- placeholder: r = "Select…",
5633
- searchPlaceholder: n = "Search…",
5634
- emptyMessage: s = "No results",
5635
- "aria-label": l,
5636
- className: c,
5637
- disabled: d = !1
5638
- }, p) {
5639
- const [u, h] = g.useState(!1), [v, y] = g.useState(""), [b, S] = g.useState(0), C = g.useId(), N = `${C}-list`, P = a.find((w) => w.value === e) ?? null, k = g.useMemo(() => {
5640
- const w = v.trim().toLowerCase();
5641
- return w ? a.filter((q) => q.label.toLowerCase().includes(w)) : a;
5642
- }, [a, v]);
5643
- function T(w) {
5644
- w.disabled || (t(w.value), h(!1), y(""));
5645
- }
5646
- function R(w) {
5647
- if (k.length !== 0) {
5648
- if (w.key === "ArrowDown")
5649
- w.preventDefault(), S((q) => (q + 1) % k.length);
5650
- else if (w.key === "ArrowUp")
5651
- w.preventDefault(), S((q) => (q - 1 + k.length) % k.length);
5652
- else if (w.key === "Enter") {
5653
- w.preventDefault();
5654
- const q = k[b];
5655
- q && T(q);
5656
- }
5657
- }
5658
- }
5659
- const M = k[b] ? `${C}-opt-${k[b].value}` : void 0;
5660
- return /* @__PURE__ */ f(
5661
- B,
5662
- {
5663
- open: u,
5664
- onOpenChange: (w) => {
5665
- h(w), w || y("");
5666
- },
5667
- children: [
5668
- /* @__PURE__ */ o(B.Anchor, { asChild: !0, children: /* @__PURE__ */ f(
5669
- "button",
5658
+ }), Yl = /* @__PURE__ */ g.forwardRef(
5659
+ function({ items: a, label: e = "Breadcrumb", className: t, ...r }, n) {
5660
+ const { LinkComponent: s } = Xe();
5661
+ return /* @__PURE__ */ o("nav", { ref: n, "aria-label": e, className: m("w-full", t), ...r, children: /* @__PURE__ */ o("ol", { className: "flex flex-wrap items-center gap-2", children: a.map((l, c) => {
5662
+ const d = c === a.length - 1, p = !!l.href && !d;
5663
+ return /* @__PURE__ */ f("li", { className: "inline-flex items-center gap-2", children: [
5664
+ p ? /* @__PURE__ */ o(
5665
+ s,
5670
5666
  {
5671
- ref: p,
5672
- type: "button",
5673
- role: "combobox",
5674
- "aria-expanded": u,
5675
- "aria-haspopup": "listbox",
5676
- "aria-controls": u ? N : void 0,
5677
- "aria-label": l,
5678
- disabled: d,
5679
- onClick: () => h((w) => !w),
5680
- className: m(
5681
- "hds-focus flex h-10 w-full items-center justify-between gap-2 rounded-md border border-input",
5682
- "bg-background px-3 text-sm text-foreground",
5683
- "disabled:cursor-not-allowed disabled:opacity-50",
5684
- c
5685
- ),
5686
- children: [
5687
- /* @__PURE__ */ o("span", { className: m("truncate", !P && "text-muted-foreground"), children: P ? P.label : r }),
5688
- /* @__PURE__ */ o(
5689
- O,
5690
- {
5691
- icon: fa,
5692
- size: "small",
5693
- color: "var(--semantic-color-content-secondary)",
5694
- "aria-hidden": !0
5695
- }
5696
- )
5697
- ]
5667
+ to: l.href,
5668
+ style: x.typeStyles.ui,
5669
+ className: "hds-focus text-muted-foreground transition-colors hover:text-foreground",
5670
+ children: l.label
5698
5671
  }
5699
- ) }),
5700
- /* @__PURE__ */ f(
5701
- B.Content,
5672
+ ) : /* @__PURE__ */ o(
5673
+ "span",
5702
5674
  {
5703
- align: "start",
5704
- className: "p-0",
5705
- style: { width: "var(--radix-popover-trigger-width)" },
5706
- children: [
5707
- /* @__PURE__ */ o(
5708
- "input",
5709
- {
5710
- type: "text",
5711
- value: v,
5712
- autoFocus: !0,
5713
- role: "combobox",
5714
- "aria-expanded": !0,
5715
- "aria-controls": N,
5716
- "aria-autocomplete": "list",
5717
- "aria-activedescendant": M,
5718
- "aria-label": n,
5719
- placeholder: n,
5720
- onChange: (w) => {
5721
- y(w.target.value), S(0);
5722
- },
5723
- onKeyDown: R,
5724
- className: m(
5725
- "hds-focus h-10 w-full border-b border-border bg-transparent px-3 text-sm text-foreground",
5726
- "outline-none placeholder:text-muted-foreground"
5727
- )
5728
- }
5729
- ),
5730
- /* @__PURE__ */ o(
5731
- "ul",
5732
- {
5733
- id: N,
5734
- role: "listbox",
5735
- "aria-label": l ?? r,
5736
- className: "max-h-60 overflow-y-auto p-1",
5737
- children: k.length === 0 ? /* @__PURE__ */ o("li", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: s }) : k.map((w, q) => {
5738
- const V = w.value === e, _ = q === b;
5739
- return /* @__PURE__ */ o("li", { children: /* @__PURE__ */ f(
5740
- "button",
5741
- {
5742
- type: "button",
5743
- id: `${C}-opt-${w.value}`,
5744
- role: "option",
5745
- "aria-selected": V,
5746
- "data-active": _ ? "true" : void 0,
5747
- disabled: w.disabled,
5748
- onMouseEnter: () => S(q),
5749
- onClick: () => T(w),
5750
- className: m(
5751
- "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none",
5752
- "data-[active=true]:bg-accent data-[active=true]:text-accent-foreground",
5753
- "data-[active=true]:ring-2 data-[active=true]:ring-inset data-[active=true]:ring-ring",
5754
- "disabled:pointer-events-none disabled:opacity-50"
5755
- ),
5756
- children: [
5757
- /* @__PURE__ */ o("span", { className: "flex size-4 items-center justify-center", children: V ? /* @__PURE__ */ o(O, { icon: le, size: "small", color: "currentColor", "aria-hidden": !0 }) : null }),
5758
- /* @__PURE__ */ o("span", { className: "truncate", children: w.label })
5759
- ]
5760
- }
5761
- ) }, w.value);
5762
- })
5763
- }
5764
- )
5765
- ]
5675
+ "aria-current": d ? "page" : void 0,
5676
+ style: x.typeStyles.ui,
5677
+ className: ls({ current: d }),
5678
+ children: l.label
5679
+ }
5680
+ ),
5681
+ !d && /* @__PURE__ */ o(
5682
+ O,
5683
+ {
5684
+ icon: Ie,
5685
+ size: "small",
5686
+ color: "var(--semantic-color-content-secondary)",
5687
+ "aria-hidden": !0
5766
5688
  }
5767
5689
  )
5768
- ]
5690
+ ] }, `${l.label}-${c}`);
5691
+ }) }) });
5692
+ }
5693
+ ), Zl = /* @__PURE__ */ g.forwardRef(
5694
+ function({
5695
+ options: a,
5696
+ value: e,
5697
+ onChange: t,
5698
+ placeholder: r = "Select…",
5699
+ searchPlaceholder: n = "Search…",
5700
+ emptyMessage: s = "No results",
5701
+ "aria-label": l,
5702
+ className: c,
5703
+ disabled: d = !1
5704
+ }, p) {
5705
+ const [u, h] = g.useState(!1), [v, y] = g.useState(""), [b, S] = g.useState(0), C = g.useId(), N = `${C}-list`, P = a.find((w) => w.value === e) ?? null, k = g.useMemo(() => {
5706
+ const w = v.trim().toLowerCase();
5707
+ return w ? a.filter((q) => q.label.toLowerCase().includes(w)) : a;
5708
+ }, [a, v]);
5709
+ function T(w) {
5710
+ w.disabled || (t(w.value), h(!1), y(""));
5711
+ }
5712
+ function R(w) {
5713
+ if (k.length !== 0) {
5714
+ if (w.key === "ArrowDown")
5715
+ w.preventDefault(), S((q) => (q + 1) % k.length);
5716
+ else if (w.key === "ArrowUp")
5717
+ w.preventDefault(), S((q) => (q - 1 + k.length) % k.length);
5718
+ else if (w.key === "Enter") {
5719
+ w.preventDefault();
5720
+ const q = k[b];
5721
+ q && T(q);
5722
+ }
5723
+ }
5769
5724
  }
5770
- );
5771
- }), ds = D(
5725
+ const M = k[b] ? `${C}-opt-${k[b].value}` : void 0;
5726
+ return /* @__PURE__ */ f(
5727
+ B,
5728
+ {
5729
+ open: u,
5730
+ onOpenChange: (w) => {
5731
+ h(w), w || y("");
5732
+ },
5733
+ children: [
5734
+ /* @__PURE__ */ o(B.Anchor, { asChild: !0, children: /* @__PURE__ */ f(
5735
+ "button",
5736
+ {
5737
+ ref: p,
5738
+ type: "button",
5739
+ role: "combobox",
5740
+ "aria-expanded": u,
5741
+ "aria-haspopup": "listbox",
5742
+ "aria-controls": u ? N : void 0,
5743
+ "aria-label": l,
5744
+ disabled: d,
5745
+ onClick: () => h((w) => !w),
5746
+ className: m(
5747
+ "hds-focus flex h-10 w-full items-center justify-between gap-2 rounded-md border border-input",
5748
+ "bg-background px-3 text-sm text-foreground",
5749
+ "disabled:cursor-not-allowed disabled:opacity-50",
5750
+ c
5751
+ ),
5752
+ children: [
5753
+ /* @__PURE__ */ o("span", { className: m("truncate", !P && "text-muted-foreground"), children: P ? P.label : r }),
5754
+ /* @__PURE__ */ o(
5755
+ O,
5756
+ {
5757
+ icon: fa,
5758
+ size: "small",
5759
+ color: "var(--semantic-color-content-secondary)",
5760
+ "aria-hidden": !0
5761
+ }
5762
+ )
5763
+ ]
5764
+ }
5765
+ ) }),
5766
+ /* @__PURE__ */ f(
5767
+ B.Content,
5768
+ {
5769
+ align: "start",
5770
+ className: "p-0",
5771
+ style: { width: "var(--radix-popover-trigger-width)" },
5772
+ children: [
5773
+ /* @__PURE__ */ o(
5774
+ "input",
5775
+ {
5776
+ type: "text",
5777
+ value: v,
5778
+ autoFocus: !0,
5779
+ role: "combobox",
5780
+ "aria-expanded": !0,
5781
+ "aria-controls": N,
5782
+ "aria-autocomplete": "list",
5783
+ "aria-activedescendant": M,
5784
+ "aria-label": n,
5785
+ placeholder: n,
5786
+ onChange: (w) => {
5787
+ y(w.target.value), S(0);
5788
+ },
5789
+ onKeyDown: R,
5790
+ className: m(
5791
+ "hds-focus h-10 w-full border-b border-border bg-transparent px-3 text-sm text-foreground",
5792
+ "outline-none placeholder:text-muted-foreground"
5793
+ )
5794
+ }
5795
+ ),
5796
+ /* @__PURE__ */ o(
5797
+ "ul",
5798
+ {
5799
+ id: N,
5800
+ role: "listbox",
5801
+ "aria-label": l ?? r,
5802
+ className: "max-h-60 overflow-y-auto p-1",
5803
+ children: k.length === 0 ? /* @__PURE__ */ o("li", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: s }) : k.map((w, q) => {
5804
+ const V = w.value === e, _ = q === b;
5805
+ return /* @__PURE__ */ o("li", { children: /* @__PURE__ */ f(
5806
+ "button",
5807
+ {
5808
+ type: "button",
5809
+ id: `${C}-opt-${w.value}`,
5810
+ role: "option",
5811
+ "aria-selected": V,
5812
+ "data-active": _ ? "true" : void 0,
5813
+ disabled: w.disabled,
5814
+ onMouseEnter: () => S(q),
5815
+ onClick: () => T(w),
5816
+ className: m(
5817
+ "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none",
5818
+ "data-[active=true]:bg-accent data-[active=true]:text-accent-foreground",
5819
+ "data-[active=true]:ring-2 data-[active=true]:ring-inset data-[active=true]:ring-ring",
5820
+ "disabled:pointer-events-none disabled:opacity-50"
5821
+ ),
5822
+ children: [
5823
+ /* @__PURE__ */ o("span", { className: "flex size-4 items-center justify-center", children: V ? /* @__PURE__ */ o(O, { icon: le, size: "small", color: "currentColor", "aria-hidden": !0 }) : null }),
5824
+ /* @__PURE__ */ o("span", { className: "truncate", children: w.label })
5825
+ ]
5826
+ }
5827
+ ) }, w.value);
5828
+ })
5829
+ }
5830
+ )
5831
+ ]
5832
+ }
5833
+ )
5834
+ ]
5835
+ }
5836
+ );
5837
+ }
5838
+ ), ds = /* @__PURE__ */ D(
5772
5839
  "flex w-full cursor-pointer items-center gap-[var(--semantic-space-sidebar-gap)] text-left text-primary transition-[border-color,box-shadow,color]",
5773
5840
  {
5774
5841
  variants: {
@@ -5785,101 +5852,103 @@ const ss = {
5785
5852
  panel: x.semantic.space.sidebar.gap,
5786
5853
  nav: x.semantic.space.sidebar.sectionGap,
5787
5854
  card: x.semantic.space.scale.xs
5788
- }, ps = X.forwardRef(function({
5789
- label: a,
5790
- defaultOpen: e = !1,
5791
- open: t,
5792
- onOpenChange: r,
5793
- variant: n = "panel",
5794
- accent: s = !1,
5795
- className: l,
5796
- triggerStyle: c,
5797
- contentStyle: d,
5798
- children: p
5799
- }, u) {
5800
- const [h, v] = G(e), y = wt(), b = Be(null), S = Be(null), C = t ?? h, N = C ? "open" : "closed", P = ee("productive");
5801
- function k() {
5802
- var V, _;
5803
- const q = !C;
5804
- !q && ((V = S.current) != null && V.contains(document.activeElement)) && ((_ = b.current) == null || _.focus()), t === void 0 && v(q), r == null || r(q);
5805
- }
5806
- const T = m(
5807
- "hds-focus",
5808
- ds({ variant: n }),
5809
- n === "nav" ? "hds-text-hover hds-bg-hover-neutral" : "",
5810
- l
5811
- ), R = C ? cs[n] : 0, M = typeof a == "string" ? /* @__PURE__ */ o(
5812
- "span",
5813
- {
5814
- className: "m-0 text-current",
5815
- style: n === "nav" ? x.typeStyles.ui : x.typeStyles.caption,
5816
- children: a
5817
- }
5818
- ) : a, w = /* @__PURE__ */ f(na, { children: [
5819
- /* @__PURE__ */ f(
5820
- "button",
5855
+ }, ps = /* @__PURE__ */ X.forwardRef(
5856
+ function({
5857
+ label: a,
5858
+ defaultOpen: e = !1,
5859
+ open: t,
5860
+ onOpenChange: r,
5861
+ variant: n = "panel",
5862
+ accent: s = !1,
5863
+ className: l,
5864
+ triggerStyle: c,
5865
+ contentStyle: d,
5866
+ children: p
5867
+ }, u) {
5868
+ const [h, v] = G(e), y = wt(), b = Be(null), S = Be(null), C = t ?? h, N = C ? "open" : "closed", P = ee("productive");
5869
+ function k() {
5870
+ var V, _;
5871
+ const q = !C;
5872
+ !q && ((V = S.current) != null && V.contains(document.activeElement)) && ((_ = b.current) == null || _.focus()), t === void 0 && v(q), r == null || r(q);
5873
+ }
5874
+ const T = m(
5875
+ "hds-focus",
5876
+ ds({ variant: n }),
5877
+ n === "nav" ? "hds-text-hover hds-bg-hover-neutral" : "",
5878
+ l
5879
+ ), R = C ? cs[n] : 0, M = typeof a == "string" ? /* @__PURE__ */ o(
5880
+ "span",
5821
5881
  {
5822
- ref: b,
5823
- type: "button",
5824
- onClick: k,
5825
- "aria-expanded": C,
5826
- "aria-controls": y,
5827
- "data-state": N,
5828
- className: T,
5829
- style: c,
5830
- children: [
5831
- /* @__PURE__ */ o("div", { className: "grid min-w-0 flex-1 items-start gap-[var(--semantic-space-subgrid-gap)]", children: M }),
5832
- /* @__PURE__ */ o(
5833
- A.span,
5882
+ className: "m-0 text-current",
5883
+ style: n === "nav" ? x.typeStyles.ui : x.typeStyles.caption,
5884
+ children: a
5885
+ }
5886
+ ) : a, w = /* @__PURE__ */ f(na, { children: [
5887
+ /* @__PURE__ */ f(
5888
+ "button",
5889
+ {
5890
+ ref: b,
5891
+ type: "button",
5892
+ onClick: k,
5893
+ "aria-expanded": C,
5894
+ "aria-controls": y,
5895
+ "data-state": N,
5896
+ className: T,
5897
+ style: c,
5898
+ children: [
5899
+ /* @__PURE__ */ o("div", { className: "grid min-w-0 flex-1 items-start gap-[var(--semantic-space-subgrid-gap)]", children: M }),
5900
+ /* @__PURE__ */ o(
5901
+ A.span,
5902
+ {
5903
+ "aria-hidden": "true",
5904
+ animate: { rotate: C ? 0 : -90 },
5905
+ transition: {
5906
+ duration: P.duration,
5907
+ ease: P.easing
5908
+ },
5909
+ className: "inline-grid size-[var(--hds-icon-small)] shrink-0 origin-center place-items-center self-center overflow-hidden leading-none",
5910
+ children: /* @__PURE__ */ o(O, { icon: Dt, size: "small", color: "currentColor" })
5911
+ }
5912
+ )
5913
+ ]
5914
+ }
5915
+ ),
5916
+ /* @__PURE__ */ o(ca, { initial: !1, children: C && /* @__PURE__ */ o(
5917
+ A.div,
5918
+ {
5919
+ ref: S,
5920
+ id: y,
5921
+ initial: { opacity: 0, height: 0 },
5922
+ animate: { opacity: 1, height: "auto" },
5923
+ exit: { opacity: 0, height: 0 },
5924
+ transition: {
5925
+ duration: P.duration,
5926
+ ease: P.easing
5927
+ },
5928
+ className: "overflow-hidden",
5929
+ children: /* @__PURE__ */ o(
5930
+ "div",
5834
5931
  {
5835
- "aria-hidden": "true",
5836
- animate: { rotate: C ? 0 : -90 },
5837
- transition: {
5838
- duration: P.duration,
5839
- ease: P.easing
5932
+ style: {
5933
+ ...d
5840
5934
  },
5841
- className: "inline-grid size-[var(--hds-icon-small)] shrink-0 origin-center place-items-center self-center overflow-hidden leading-none",
5842
- children: /* @__PURE__ */ o(O, { icon: Dt, size: "small", color: "currentColor" })
5935
+ children: p
5843
5936
  }
5844
5937
  )
5845
- ]
5846
- }
5847
- ),
5848
- /* @__PURE__ */ o(ca, { initial: !1, children: C && /* @__PURE__ */ o(
5849
- A.div,
5938
+ }
5939
+ ) })
5940
+ ] });
5941
+ return n === "nav" ? /* @__PURE__ */ o(ae, { ref: u, gap: "tight", style: { gap: R }, children: w }) : /* @__PURE__ */ o(
5942
+ ve,
5850
5943
  {
5851
- ref: S,
5852
- id: y,
5853
- initial: { opacity: 0, height: 0 },
5854
- animate: { opacity: 1, height: "auto" },
5855
- exit: { opacity: 0, height: 0 },
5856
- transition: {
5857
- duration: P.duration,
5858
- ease: P.easing
5859
- },
5860
- className: "overflow-hidden",
5861
- children: /* @__PURE__ */ o(
5862
- "div",
5863
- {
5864
- style: {
5865
- ...d
5866
- },
5867
- children: p
5868
- }
5869
- )
5944
+ ref: u,
5945
+ padding: "component",
5946
+ className: n === "card" ? "overflow-hidden" : void 0,
5947
+ children: /* @__PURE__ */ o(ae, { gap: "tight", style: { gap: R }, children: w })
5870
5948
  }
5871
- ) })
5872
- ] });
5873
- return n === "nav" ? /* @__PURE__ */ o(ae, { ref: u, gap: "tight", style: { gap: R }, children: w }) : /* @__PURE__ */ o(
5874
- ve,
5875
- {
5876
- ref: u,
5877
- padding: "component",
5878
- className: n === "card" ? "overflow-hidden" : void 0,
5879
- children: /* @__PURE__ */ o(ae, { gap: "tight", style: { gap: R }, children: w })
5880
- }
5881
- );
5882
- }), us = {
5949
+ );
5950
+ }
5951
+ ), us = {
5883
5952
  previewBody: {
5884
5953
  display: "flex",
5885
5954
  flexDirection: "column",
@@ -6004,15 +6073,18 @@ function Xl({
6004
6073
  function vs(i, a, e = !1) {
6005
6074
  return e ? i === a : i === a || i.startsWith(`${a}/`);
6006
6075
  }
6007
- const ys = D("text-[var(--semantic-color-content-secondary)]", {
6008
- variants: {
6009
- variant: {
6010
- side: "",
6011
- toc: ""
6012
- }
6013
- },
6014
- defaultVariants: { variant: "side" }
6015
- });
6076
+ const ys = /* @__PURE__ */ D(
6077
+ "text-[var(--semantic-color-content-secondary)]",
6078
+ {
6079
+ variants: {
6080
+ variant: {
6081
+ side: "",
6082
+ toc: ""
6083
+ }
6084
+ },
6085
+ defaultVariants: { variant: "side" }
6086
+ }
6087
+ );
6016
6088
  function Kl({
6017
6089
  label: i,
6018
6090
  variant: a = "side",
@@ -6104,55 +6176,57 @@ function bs(i, a, e = 1) {
6104
6176
  const r = Math.max(i - e, 1), n = Math.min(i + e, a), s = r > 2, l = n < a - 1;
6105
6177
  return !s && l ? [...Pe(1, e * 2 + 3), "ellipsis", a] : s && !l ? [1, "ellipsis", ...Pe(a - (e * 2 + 2), a)] : [1, "ellipsis", ...Pe(r, n), "ellipsis", a];
6106
6178
  }
6107
- const Ql = g.forwardRef(function({ page: a, count: e, onPageChange: t, siblingCount: r = 1, label: n = "Pagination", className: s, ...l }, c) {
6108
- if (e <= 1) return null;
6109
- const d = bs(a, e, r), p = (u) => t(Math.max(1, Math.min(e, u)));
6110
- return /* @__PURE__ */ o("nav", { ref: c, "aria-label": n, className: m("w-full", s), ...l, children: /* @__PURE__ */ f("ul", { className: "flex flex-wrap items-center gap-1", children: [
6111
- /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
6112
- Te,
6113
- {
6114
- icon: ga,
6115
- size: "sm",
6116
- variant: "tertiary",
6117
- "aria-label": "Previous page",
6118
- disabled: a <= 1,
6119
- onClick: () => p(a - 1)
6120
- }
6121
- ) }),
6122
- d.map(
6123
- (u, h) => u === "ellipsis" ? /* @__PURE__ */ o(
6124
- "li",
6179
+ const Ql = /* @__PURE__ */ g.forwardRef(
6180
+ function({ page: a, count: e, onPageChange: t, siblingCount: r = 1, label: n = "Pagination", className: s, ...l }, c) {
6181
+ if (e <= 1) return null;
6182
+ const d = bs(a, e, r), p = (u) => t(Math.max(1, Math.min(e, u)));
6183
+ return /* @__PURE__ */ o("nav", { ref: c, "aria-label": n, className: m("w-full", s), ...l, children: /* @__PURE__ */ f("ul", { className: "flex flex-wrap items-center gap-1", children: [
6184
+ /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
6185
+ Te,
6125
6186
  {
6126
- "aria-hidden": "true",
6127
- className: "px-2 text-muted-foreground select-none",
6128
- children: "…"
6129
- },
6130
- `ellipsis-${h}`
6131
- ) : /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
6132
- Ze,
6187
+ icon: ga,
6188
+ size: "sm",
6189
+ variant: "tertiary",
6190
+ "aria-label": "Previous page",
6191
+ disabled: a <= 1,
6192
+ onClick: () => p(a - 1)
6193
+ }
6194
+ ) }),
6195
+ d.map(
6196
+ (u, h) => u === "ellipsis" ? /* @__PURE__ */ o(
6197
+ "li",
6198
+ {
6199
+ "aria-hidden": "true",
6200
+ className: "px-2 text-muted-foreground select-none",
6201
+ children: "…"
6202
+ },
6203
+ `ellipsis-${h}`
6204
+ ) : /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
6205
+ Ze,
6206
+ {
6207
+ variant: u === a ? "secondary" : "tertiary",
6208
+ size: "sm",
6209
+ "aria-label": `Page ${u}`,
6210
+ "aria-current": u === a ? "page" : void 0,
6211
+ onClick: () => p(u),
6212
+ children: u
6213
+ }
6214
+ ) }, u)
6215
+ ),
6216
+ /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
6217
+ Te,
6133
6218
  {
6134
- variant: u === a ? "secondary" : "tertiary",
6219
+ icon: Ie,
6135
6220
  size: "sm",
6136
- "aria-label": `Page ${u}`,
6137
- "aria-current": u === a ? "page" : void 0,
6138
- onClick: () => p(u),
6139
- children: u
6221
+ variant: "tertiary",
6222
+ "aria-label": "Next page",
6223
+ disabled: a >= e,
6224
+ onClick: () => p(a + 1)
6140
6225
  }
6141
- ) }, u)
6142
- ),
6143
- /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
6144
- Te,
6145
- {
6146
- icon: Ie,
6147
- size: "sm",
6148
- variant: "tertiary",
6149
- "aria-label": "Next page",
6150
- disabled: a >= e,
6151
- onClick: () => p(a + 1)
6152
- }
6153
- ) })
6154
- ] }) });
6155
- });
6226
+ ) })
6227
+ ] }) });
6228
+ }
6229
+ );
6156
6230
  function Jl({ title: i, children: a, controls: e }) {
6157
6231
  fe(
6158
6232
  "sketch-deprecated",
@@ -6304,7 +6378,7 @@ const xs = {
6304
6378
  userSelect: "none",
6305
6379
  color: "var(--semantic-color-content-primary)",
6306
6380
  textAlign: "left"
6307
- }, ks = D("flex w-full min-w-0 flex-col", {
6381
+ }, ks = /* @__PURE__ */ D("flex w-full min-w-0 flex-col", {
6308
6382
  variants: {
6309
6383
  size: {
6310
6384
  hero: "gap-[var(--semantic-space-scale-xs)]",
@@ -6363,65 +6437,67 @@ const xs = {
6363
6437
  titleVariant: "heading2",
6364
6438
  descriptionVariant: "ui"
6365
6439
  }
6366
- }, td = re(function({
6367
- title: a,
6368
- description: e,
6369
- eyebrow: t,
6370
- size: r,
6371
- align: n = "left",
6372
- id: s,
6373
- as: l = "div",
6374
- titleAs: c,
6375
- descriptionAs: d = "div"
6376
- }, p) {
6377
- const u = Ss[r], h = c ?? u.titleTag, v = n === "center", [y, b] = G(!1);
6378
- function S() {
6379
- navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}#${s}`), b(!0), setTimeout(() => b(!1), 2e3);
6440
+ }, td = /* @__PURE__ */ re(
6441
+ function({
6442
+ title: a,
6443
+ description: e,
6444
+ eyebrow: t,
6445
+ size: r,
6446
+ align: n = "left",
6447
+ id: s,
6448
+ as: l = "div",
6449
+ titleAs: c,
6450
+ descriptionAs: d = "div"
6451
+ }, p) {
6452
+ const u = Ss[r], h = c ?? u.titleTag, v = n === "center", [y, b] = G(!1);
6453
+ function S() {
6454
+ navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}#${s}`), b(!0), setTimeout(() => b(!1), 2e3);
6455
+ }
6456
+ const C = r === "numbered" && !!s;
6457
+ return /* @__PURE__ */ f(l, { ref: p, className: ks({ size: r, align: n }), children: [
6458
+ t ? /* @__PURE__ */ o(
6459
+ me,
6460
+ {
6461
+ variant: "ui",
6462
+ as: "p",
6463
+ className: m(ue, v && bt),
6464
+ children: t
6465
+ }
6466
+ ) : null,
6467
+ C ? /* @__PURE__ */ o("div", { className: "hds-doc-section-header flex", children: /* @__PURE__ */ o(me, { variant: u.titleVariant, as: h, children: /* @__PURE__ */ f(
6468
+ "button",
6469
+ {
6470
+ type: "button",
6471
+ onClick: S,
6472
+ className: "hds-focus",
6473
+ "aria-label": `Copy link to ${a}`,
6474
+ style: xs,
6475
+ children: [
6476
+ /* @__PURE__ */ o("span", { className: u.titleClassName, children: a }),
6477
+ /* @__PURE__ */ o(
6478
+ "span",
6479
+ {
6480
+ "aria-hidden": "true",
6481
+ "data-copied": y ? "true" : void 0,
6482
+ className: "hds-doc-section-copy-icon flex flex-shrink-0 items-center text-accent-foreground",
6483
+ children: y ? /* @__PURE__ */ o(O, { icon: le, size: "small", color: "var(--semantic-color-content-accent)" }) : /* @__PURE__ */ o(O, { icon: ya, size: "small", color: "var(--semantic-color-content-accent)" })
6484
+ }
6485
+ )
6486
+ ]
6487
+ }
6488
+ ) }) }) : /* @__PURE__ */ o(me, { variant: u.titleVariant, as: h, className: u.titleClassName, children: a }),
6489
+ e ? /* @__PURE__ */ o(
6490
+ me,
6491
+ {
6492
+ variant: u.descriptionVariant,
6493
+ as: d,
6494
+ className: m(u.descriptionClassName, v && bt),
6495
+ children: e
6496
+ }
6497
+ ) : null
6498
+ ] });
6380
6499
  }
6381
- const C = r === "numbered" && !!s;
6382
- return /* @__PURE__ */ f(l, { ref: p, className: ks({ size: r, align: n }), children: [
6383
- t ? /* @__PURE__ */ o(
6384
- me,
6385
- {
6386
- variant: "ui",
6387
- as: "p",
6388
- className: m(ue, v && bt),
6389
- children: t
6390
- }
6391
- ) : null,
6392
- C ? /* @__PURE__ */ o("div", { className: "hds-doc-section-header flex", children: /* @__PURE__ */ o(me, { variant: u.titleVariant, as: h, children: /* @__PURE__ */ f(
6393
- "button",
6394
- {
6395
- type: "button",
6396
- onClick: S,
6397
- className: "hds-focus",
6398
- "aria-label": `Copy link to ${a}`,
6399
- style: xs,
6400
- children: [
6401
- /* @__PURE__ */ o("span", { className: u.titleClassName, children: a }),
6402
- /* @__PURE__ */ o(
6403
- "span",
6404
- {
6405
- "aria-hidden": "true",
6406
- "data-copied": y ? "true" : void 0,
6407
- className: "hds-doc-section-copy-icon flex flex-shrink-0 items-center text-accent-foreground",
6408
- children: y ? /* @__PURE__ */ o(O, { icon: le, size: "small", color: "var(--semantic-color-content-accent)" }) : /* @__PURE__ */ o(O, { icon: ya, size: "small", color: "var(--semantic-color-content-accent)" })
6409
- }
6410
- )
6411
- ]
6412
- }
6413
- ) }) }) : /* @__PURE__ */ o(me, { variant: u.titleVariant, as: h, className: u.titleClassName, children: a }),
6414
- e ? /* @__PURE__ */ o(
6415
- me,
6416
- {
6417
- variant: u.descriptionVariant,
6418
- as: d,
6419
- className: m(u.descriptionClassName, v && bt),
6420
- children: e
6421
- }
6422
- ) : null
6423
- ] });
6424
- }), Ds = D("", {
6500
+ ), Ds = /* @__PURE__ */ D("", {
6425
6501
  variants: {
6426
6502
  tone: {
6427
6503
  neutral: "text-muted-foreground",
@@ -6432,7 +6508,7 @@ const xs = {
6432
6508
  }
6433
6509
  },
6434
6510
  defaultVariants: { tone: "neutral" }
6435
- }), Xt = g.createContext(null);
6511
+ }), Xt = /* @__PURE__ */ g.createContext(null);
6436
6512
  function ad() {
6437
6513
  const i = g.useContext(Xt);
6438
6514
  if (!i) throw new Error("useToast must be used within a <ToastProvider>");
@@ -6530,7 +6606,7 @@ function id({
6530
6606
  /* @__PURE__ */ o(Se, { maxWidth: "max", children: /* @__PURE__ */ o(De, { slotLabel: "Case study content", minHeight: "320px", children: t }) })
6531
6607
  ] }) });
6532
6608
  }
6533
- const qs = da(null);
6609
+ const qs = /* @__PURE__ */ da(null);
6534
6610
  function Ns() {
6535
6611
  return la(qs);
6536
6612
  }
@@ -6584,7 +6660,7 @@ function nd({
6584
6660
  }) {
6585
6661
  return /* @__PURE__ */ o("div", { className: "hds-page-enter", style: { marginTop: 0, paddingTop: 0 }, children: /* @__PURE__ */ o(Ms, { contentSlot: i, contentMaxWidth: a }) });
6586
6662
  }
6587
- const Es = "var(--semantic-space-sidebar-railWidth)", od = g.forwardRef(
6663
+ const Es = "var(--semantic-space-sidebar-railWidth)", od = /* @__PURE__ */ g.forwardRef(
6588
6664
  function({ leftRail: a, children: e, rightRail: t, topOffset: r = "0px", className: n, style: s }, l) {
6589
6665
  const c = {
6590
6666
  position: "sticky",