@juwel-development/design-system 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,11 +105,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
105
105
  }, ne = (e) => {
106
106
  let t = e.reduce((e, t) => e + t.weight, 0), n = e.map((e) => `var(${e.minWidth}) * ${t / e.weight}`);
107
107
  return `calc(${e.length - 1} * var(--column-layout-gap) + max(${n.join(", ")}))`;
108
- }, re = (e) => e.some((e) => e.maxWidth !== void 0) ? Math.min(1, ...e.map((e) => e.weight)) : 1, ie = (e) => o(e) && e.type === i, ae = (e) => o(e) && e.type === A, O = (e) => r.toArray(e).flatMap((e) => ie(e) ? O(e.props.children) : ae(e) ? [e] : []), k = (e) => r.map(e, (e) => ie(e) ? /* @__PURE__ */ t(i, { children: k(e.props.children) }) : ae(e) ? /* @__PURE__ */ t(E.Provider, {
108
+ }, re = (e) => e.some((e) => e.maxWidth !== void 0) ? Math.min(1, ...e.map((e) => e.weight)) : 1, ie = (e) => o(e) && e.type === i, ae = (e) => o(e) && e.type === k, oe = (e) => r.toArray(e).flatMap((e) => ie(e) ? oe(e.props.children) : ae(e) ? [e] : []), O = (e) => r.map(e, (e) => ie(e) ? /* @__PURE__ */ t(i, { children: O(e.props.children) }) : ae(e) ? /* @__PURE__ */ t(E.Provider, {
109
109
  value: !0,
110
110
  children: e
111
- }) : e), oe = ({ gap: e, fill: n, children: r, testId: i }) => {
112
- let a = O(r).map(D), o = a.length === 0 ? void 0 : {
111
+ }) : e), se = ({ gap: e, fill: n, children: r, testId: i }) => {
112
+ let a = oe(r).map(D), o = a.length === 0 ? void 0 : {
113
113
  "--column-layout-threshold": ne(a),
114
114
  "--column-layout-growth-unit": re(a)
115
115
  }, s = /* @__PURE__ */ t("div", {
@@ -119,13 +119,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
119
119
  }),
120
120
  style: o,
121
121
  "data-testid": i,
122
- children: k(r)
122
+ children: O(r)
123
123
  });
124
124
  return n ? /* @__PURE__ */ t("div", {
125
125
  className: T(),
126
126
  children: s
127
127
  }) : s;
128
- }, A = ({ weight: e, maxWidth: n, children: r, testId: i }) => {
128
+ }, k = ({ weight: e, maxWidth: n, children: r, testId: i }) => {
129
129
  if (!c(E)) throw new S();
130
130
  let a = {
131
131
  "--column-layout-weight": e,
@@ -140,45 +140,45 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
140
140
  children: r
141
141
  })
142
142
  });
143
- }, j = {
144
- Root: oe,
145
- Column: A
146
- }, M = .5, N = (e, t) => Math.abs(e - t) <= M, P = (e) => {
143
+ }, A = {
144
+ Root: se,
145
+ Column: k
146
+ }, j = .5, M = (e, t) => Math.abs(e - t) <= j, N = (e) => {
147
147
  let t = [];
148
- for (let { top: n } of e) t.some((e) => N(e, n)) || t.push(n);
149
- let n = t.map((t) => Math.max(...e.filter((e) => N(t, e.top)).map((e) => e.controlEdge)));
148
+ for (let { top: n } of e) t.some((e) => M(e, n)) || t.push(n);
149
+ let n = t.map((t) => Math.max(...e.filter((e) => M(t, e.top)).map((e) => e.controlEdge)));
150
150
  return e.map(({ top: e, controlEdge: r }) => {
151
- let i = t.findIndex((t) => N(t, e));
151
+ let i = t.findIndex((t) => M(t, e));
152
152
  return (n[i] ?? r) - r;
153
153
  });
154
- }, F = class extends Error {
154
+ }, P = class extends Error {
155
155
  constructor(e) {
156
156
  super(`FieldRow.${e} must be composed inside FieldRow.Root`), this.name = "FieldRowCompositionError";
157
157
  }
158
- }, I = class extends Error {
158
+ }, F = class extends Error {
159
159
  constructor(e) {
160
160
  super(`FieldRow configuration: ${e}`), this.name = "FieldRowConfigurationError";
161
161
  }
162
- }, L = y("flex flex-wrap items-start gap-y-[var(--space-stack)]", {
162
+ }, I = y("flex flex-wrap items-start gap-y-[var(--space-stack)]", {
163
163
  variants: { gap: {
164
164
  stack: "gap-x-[var(--space-stack)]",
165
165
  region: "gap-x-[var(--space-region)]"
166
166
  } },
167
167
  defaultVariants: { gap: "stack" }
168
- }), R = y("shrink basis-0"), z = y("", {
168
+ }), L = y("shrink basis-0"), R = y("", {
169
169
  variants: { part: {
170
170
  item: "min-w-0 max-w-full flex-none",
171
171
  group: "flex flex-wrap items-end gap-[var(--space-stack)]"
172
172
  } },
173
173
  defaultVariants: { part: "item" }
174
- }), se = /^--[A-Za-z0-9_-]+$/, B = ":scope > [data-field-row-item]", ce = a(void 0), le = (e) => {
174
+ }), z = /^--[A-Za-z0-9_-]+$/, B = ":scope > [data-field-row-item]", ce = a(void 0), le = (e) => {
175
175
  let t = c(ce);
176
- if (t === void 0) throw new F(e);
176
+ if (t === void 0) throw new P(e);
177
177
  return t;
178
178
  }, ue = (e) => {
179
- if (!(Number.isFinite(e) && e > 0)) throw new I(`weight must be a positive finite number, got ${e}`);
179
+ if (!(Number.isFinite(e) && e > 0)) throw new F(`weight must be a positive finite number, got ${e}`);
180
180
  }, de = (e) => {
181
- if (!se.test(e)) throw new I(`minWidth must name a CSS custom property such as --search-field-min-width, got ${JSON.stringify(e)}`);
181
+ if (!z.test(e)) throw new F(`minWidth must name a CSS custom property such as --search-field-min-width, got ${JSON.stringify(e)}`);
182
182
  }, fe = (e) => {
183
183
  let t = e.querySelector("label[for]")?.getAttribute("for");
184
184
  if (!t) return;
@@ -201,7 +201,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
201
201
  controlEdge: (i === void 0 ? r.bottom : me(i, n).getBoundingClientRect().bottom) - r.top
202
202
  };
203
203
  }, V = (e) => {
204
- let t = Array.from(e.querySelectorAll(B)), n = P(t.map(he));
204
+ let t = Array.from(e.querySelectorAll(B)), n = N(t.map(he));
205
205
  t.forEach((e, t) => {
206
206
  let r = n[t] ?? 0, i = Number.parseFloat(e.style.paddingTop) || 0;
207
207
  Math.abs(i - r) > .01 && (e.style.paddingTop = r === 0 ? "" : `${r}px`);
@@ -224,7 +224,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
224
224
  }
225
225
  }), d(() => () => a.current?.disconnect(), []), /* @__PURE__ */ t("div", {
226
226
  ref: i,
227
- className: L({ gap: e }),
227
+ className: I({ gap: e }),
228
228
  "data-testid": r,
229
229
  children: /* @__PURE__ */ t(ce, {
230
230
  value: { align: s },
@@ -236,7 +236,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
236
236
  let { align: a } = le("Field");
237
237
  return ue(n), de(r), d(() => a()), /* @__PURE__ */ t("div", {
238
238
  "data-field-row-item": !0,
239
- className: R(),
239
+ className: L(),
240
240
  "data-testid": i,
241
241
  style: {
242
242
  flexGrow: n,
@@ -249,10 +249,10 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
249
249
  let { align: r } = le("Actions");
250
250
  return d(() => r()), /* @__PURE__ */ t("div", {
251
251
  "data-field-row-item": !0,
252
- className: z(),
252
+ className: R(),
253
253
  "data-testid": n,
254
254
  children: /* @__PURE__ */ t("div", {
255
- className: z({ part: "group" }),
255
+ className: R({ part: "group" }),
256
256
  children: e
257
257
  })
258
258
  });
@@ -590,7 +590,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
590
590
  constructor(e) {
591
591
  super(`Table configuration is invalid: ${e}`), this.name = "TableConfigurationError";
592
592
  }
593
- }, W = "comfortable", G = "marker", st = y([
593
+ }, W = "comfortable", st = "marker", ct = y([
594
594
  "overflow-x-auto",
595
595
  "[&[data-icon-actions]]:p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
596
596
  "[&[data-icon-actions]]:m-[calc(-1*(var(--focus-ring-width)+var(--focus-ring-offset)))]",
@@ -636,9 +636,9 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
636
636
  defaultVariants: {
637
637
  density: W,
638
638
  captionVisibility: "visible",
639
- selectionTreatment: G
639
+ selectionTreatment: st
640
640
  }
641
- }), ct = y([
641
+ }), lt = y([
642
642
  "border-t border-solid border-border",
643
643
  "[&[aria-selected=true]>*:first-child]:relative",
644
644
  "[&[aria-selected=true]>*:first-child]:before:absolute [&[aria-selected=true]>*:first-child]:before:inset-y-0 [&[aria-selected=true]>*:first-child]:before:left-0",
@@ -649,7 +649,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
649
649
  false: ""
650
650
  } },
651
651
  defaultVariants: { interactive: !1 }
652
- }), lt = [
652
+ }), ut = [
653
653
  "a[href]",
654
654
  "button",
655
655
  "input",
@@ -675,11 +675,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
675
675
  "[role=\"searchbox\"]",
676
676
  "[role=\"slider\"]",
677
677
  "[role=\"spinbutton\"]"
678
- ].join(", "), ut = (e, t) => {
678
+ ].join(", "), dt = (e, t) => {
679
679
  if (!(t instanceof Element)) return !1;
680
- let n = t.closest(lt);
680
+ let n = t.closest(ut);
681
681
  return n !== null && n !== e && e.contains(n);
682
- }, dt = /* @__PURE__ */ new Set(["Enter", " "]), ft = y("px-[var(--table-cell-padding-inline)] py-[var(--table-cell-padding-block)] text-small first:pl-0 last:pr-0", {
682
+ }, ft = /* @__PURE__ */ new Set(["Enter", " "]), pt = y("px-[var(--table-cell-padding-inline)] py-[var(--table-cell-padding-block)] text-small first:pl-0 last:pr-0", {
683
683
  variants: {
684
684
  variant: {
685
685
  value: "font-body text-foreground tabular-nums",
@@ -695,23 +695,23 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
695
695
  variant: "value",
696
696
  align: "left"
697
697
  }
698
- }), pt = y("px-[var(--table-cell-padding-inline)] py-[var(--table-cell-padding-block)] font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
698
+ }), mt = y("px-[var(--table-cell-padding-inline)] py-[var(--table-cell-padding-block)] font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
699
699
  variants: { align: {
700
700
  left: "text-left",
701
701
  right: "text-right",
702
702
  center: "text-center"
703
703
  } },
704
704
  defaultVariants: { align: "left" }
705
- }), mt = (e) => `var(--table-column-${e})`, ht = (e, t) => {
705
+ }), ht = (e) => `var(--table-column-${e})`, gt = (e, t) => {
706
706
  if (e.width === "icon-action") return "max-content";
707
- let n = e.minWidth === void 0 ? void 0 : mt(e.minWidth);
707
+ let n = e.minWidth === void 0 ? void 0 : ht(e.minWidth);
708
708
  if (e.width !== void 0) {
709
- let t = mt(e.width);
709
+ let t = ht(e.width);
710
710
  return n === void 0 ? t : `max(${n}, ${t})`;
711
711
  }
712
712
  if (!Number.isFinite(e.weight) || e.weight <= 0) throw new ot(`column ${t + 1} needs a positive finite weight (got ${e.weight})`);
713
713
  return `minmax(${n ?? "0"}, ${e.weight}fr)`;
714
- }, gt = (e) => e === void 0 || e.length === 0 ? void 0 : e.map(ht).join(" "), _t = (e, t, n, r) => {
714
+ }, _t = (e) => e === void 0 || e.length === 0 ? void 0 : e.map(gt).join(" "), vt = (e, t, n, r) => {
715
715
  let [i, a] = m(!0);
716
716
  return d(() => {
717
717
  let i = e.current;
@@ -745,14 +745,14 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
745
745
  n,
746
746
  r
747
747
  ]), i;
748
- }, vt = (e) => {
748
+ }, yt = (e) => {
749
749
  let t = e.currentTarget, n = e.target;
750
750
  if (n === t) return;
751
751
  let r = t.getBoundingClientRect(), i = t.querySelector(":scope > table > thead"), a = n.getBoundingClientRect(), o = Number.parseFloat(getComputedStyle(t).paddingTop) || 0, s = r.top + t.clientTop + (i?.getBoundingClientRect().height ?? 0) + 2 * o, c = r.top + t.clientTop + t.clientHeight - o;
752
752
  i?.contains(n) || (a.top < s ? t.scrollTop += a.top - s : a.bottom > c && (t.scrollTop += a.bottom - c)), a.left < r.left + o ? t.scrollLeft += a.left - r.left - o : a.right > r.left + t.clientLeft + t.clientWidth - o && (t.scrollLeft += a.right - r.left - t.clientLeft - t.clientWidth + o);
753
- }, yt = {
753
+ }, bt = {
754
754
  Root: ({ caption: e, captionVisibility: r, bounded: i, selectionTreatment: a, notes: o, columns: s, density: c, children: l, testId: u }) => {
755
- let d = p(null), f = p(null), m = p(null), h = gt(s), g = _t(d, f, m, i === !0), _ = h === void 0 ? void 0 : { "--table-columns": h }, v = h === void 0 ? void 0 : s?.length, y = /* @__PURE__ */ n("table", {
755
+ let d = p(null), f = p(null), m = p(null), h = _t(s), g = vt(d, f, m, i === !0), _ = h === void 0 ? void 0 : { "--table-columns": h }, v = h === void 0 ? void 0 : s?.length, y = /* @__PURE__ */ n("table", {
756
756
  ref: f,
757
757
  role: "table",
758
758
  children: [/* @__PURE__ */ t("caption", {
@@ -761,7 +761,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
761
761
  }), l]
762
762
  });
763
763
  return o === void 0 && !i ? /* @__PURE__ */ t("section", {
764
- className: st({
764
+ className: ct({
765
765
  density: c,
766
766
  captionVisibility: r,
767
767
  selectionTreatment: a,
@@ -771,15 +771,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
771
771
  "data-columns": v,
772
772
  "data-icon-actions": s?.some((e) => e.width === "icon-action") || void 0,
773
773
  "data-density": c ?? W,
774
- "data-selection-treatment": a ?? G,
774
+ "data-selection-treatment": a ?? st,
775
775
  "data-testid": u,
776
776
  "aria-label": e,
777
777
  tabIndex: 0,
778
778
  children: y
779
779
  }) : /* @__PURE__ */ t("div", {
780
780
  ref: d,
781
- onFocus: i ? vt : void 0,
782
- className: st({
781
+ onFocus: i ? yt : void 0,
782
+ className: ct({
783
783
  density: c,
784
784
  captionVisibility: r,
785
785
  selectionTreatment: a,
@@ -791,7 +791,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
791
791
  "data-columns": v,
792
792
  "data-icon-actions": s?.some((e) => e.width === "icon-action") || void 0,
793
793
  "data-density": c ?? W,
794
- "data-selection-treatment": a ?? G,
794
+ "data-selection-treatment": a ?? st,
795
795
  "data-testid": u,
796
796
  role: g ? "group" : void 0,
797
797
  "aria-label": g ? e : void 0,
@@ -819,13 +819,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
819
819
  return () => e?.unsubscribe();
820
820
  }, [i]);
821
821
  let s = (e) => {
822
- ut(e.currentTarget, e.target) || r?.next();
822
+ dt(e.currentTarget, e.target) || r?.next();
823
823
  }, c = (e) => {
824
- e.target !== e.currentTarget || !dt.has(e.key) || (e.key === " " && e.preventDefault(), e.repeat || r?.next());
824
+ e.target !== e.currentTarget || !ft.has(e.key) || (e.key === " " && e.preventDefault(), e.repeat || r?.next());
825
825
  }, l = r !== void 0;
826
826
  return /* @__PURE__ */ t("tr", {
827
827
  role: "row",
828
- className: ct({ interactive: l }),
828
+ className: lt({ interactive: l }),
829
829
  "data-testid": n,
830
830
  tabIndex: l ? 0 : void 0,
831
831
  "aria-selected": i === void 0 ? void 0 : a,
@@ -838,19 +838,19 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
838
838
  role: e === "row" ? "rowheader" : "columnheader",
839
839
  scope: e,
840
840
  "aria-sort": r,
841
- className: pt({ align: n }),
841
+ className: mt({ align: n }),
842
842
  children: i
843
843
  }),
844
844
  Cell: ({ variant: e, align: n, children: r }) => /* @__PURE__ */ t("td", {
845
845
  role: "cell",
846
- className: ft({
846
+ className: pt({
847
847
  variant: e,
848
848
  align: n
849
849
  }),
850
850
  "data-variant": e ?? "value",
851
851
  children: r
852
852
  })
853
- }, bt = y("font-secondary text-label tracking-label font-medium", {
853
+ }, xt = y("font-secondary text-label tracking-label font-medium", {
854
854
  variants: { color: {
855
855
  foreground: "text-foreground",
856
856
  muted: "text-muted",
@@ -860,11 +860,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
860
860
  info: "text-info"
861
861
  } },
862
862
  defaultVariants: { color: "muted" }
863
- }), xt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("p", {
864
- className: bt({ color: n }),
863
+ }), St = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("p", {
864
+ className: xt({ color: n }),
865
865
  "data-testid": r,
866
866
  children: e
867
- }), St = y("font-heading text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
867
+ }), Ct = y("font-heading text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
868
868
  variants: { color: {
869
869
  foreground: "text-foreground",
870
870
  muted: "text-muted",
@@ -874,11 +874,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
874
874
  info: "text-info"
875
875
  } },
876
876
  defaultVariants: { color: "foreground" }
877
- }), Ct = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h1", {
878
- className: St({ color: n }),
877
+ }), wt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h1", {
878
+ className: Ct({ color: n }),
879
879
  "data-testid": r,
880
880
  children: e
881
- }), wt = y("font-heading text-title leading-title tracking-optical", {
881
+ }), Tt = y("font-heading text-title leading-title tracking-optical", {
882
882
  variants: { color: {
883
883
  foreground: "text-foreground",
884
884
  muted: "text-muted",
@@ -888,11 +888,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
888
888
  info: "text-info"
889
889
  } },
890
890
  defaultVariants: { color: "foreground" }
891
- }), Tt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h2", {
892
- className: wt({ color: n }),
891
+ }), Et = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h2", {
892
+ className: Tt({ color: n }),
893
893
  "data-testid": r,
894
894
  children: e
895
- }), Et = y("font-heading text-subtitle leading-subtitle", {
895
+ }), Dt = y("font-heading text-subtitle leading-subtitle", {
896
896
  variants: { color: {
897
897
  foreground: "text-foreground",
898
898
  muted: "text-muted",
@@ -902,11 +902,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
902
902
  info: "text-info"
903
903
  } },
904
904
  defaultVariants: { color: "foreground" }
905
- }), Dt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h3", {
906
- className: Et({ color: n }),
905
+ }), Ot = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h3", {
906
+ className: Dt({ color: n }),
907
907
  "data-testid": r,
908
908
  children: e
909
- }), Ot = y("font-heading text-body leading-body font-bold", {
909
+ }), kt = y("font-heading text-body leading-body font-bold", {
910
910
  variants: { color: {
911
911
  foreground: "text-foreground",
912
912
  muted: "text-muted",
@@ -916,11 +916,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
916
916
  info: "text-info"
917
917
  } },
918
918
  defaultVariants: { color: "foreground" }
919
- }), kt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h4", {
920
- className: Ot({ color: n }),
919
+ }), At = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h4", {
920
+ className: kt({ color: n }),
921
921
  "data-testid": r,
922
922
  children: e
923
- }), At = y("font-heading text-body leading-body font-semibold", {
923
+ }), jt = y("font-heading text-body leading-body font-semibold", {
924
924
  variants: { color: {
925
925
  foreground: "text-foreground",
926
926
  muted: "text-muted",
@@ -930,11 +930,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
930
930
  info: "text-info"
931
931
  } },
932
932
  defaultVariants: { color: "foreground" }
933
- }), jt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h5", {
934
- className: At({ color: n }),
933
+ }), Mt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h5", {
934
+ className: jt({ color: n }),
935
935
  "data-testid": r,
936
936
  children: e
937
- }), Mt = y("font-heading text-body leading-body font-medium", {
937
+ }), Nt = y("font-heading text-body leading-body font-medium", {
938
938
  variants: { color: {
939
939
  foreground: "text-foreground",
940
940
  muted: "text-muted",
@@ -944,11 +944,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
944
944
  info: "text-info"
945
945
  } },
946
946
  defaultVariants: { color: "foreground" }
947
- }), Nt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h6", {
948
- className: Mt({ color: n }),
947
+ }), Pt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h6", {
948
+ className: Nt({ color: n }),
949
949
  "data-testid": r,
950
950
  children: e
951
- }), Pt = y("font-secondary text-small", {
951
+ }), Ft = y("font-secondary text-small", {
952
952
  variants: {
953
953
  emphasis: {
954
954
  regular: "",
@@ -972,15 +972,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
972
972
  truncate: !1,
973
973
  emphasis: "regular"
974
974
  }
975
- }), Ft = ({ children: e, color: n, emphasis: r, truncate: i, testId: a }) => /* @__PURE__ */ t("p", {
976
- className: Pt({
975
+ }), It = ({ children: e, color: n, emphasis: r, truncate: i, testId: a }) => /* @__PURE__ */ t("p", {
976
+ className: Ft({
977
977
  color: n,
978
978
  emphasis: r,
979
979
  truncate: i
980
980
  }),
981
981
  "data-testid": a,
982
982
  children: e
983
- }), It = y("font-body text-body leading-body", {
983
+ }), Lt = y("font-body text-body leading-body", {
984
984
  variants: {
985
985
  emphasis: {
986
986
  regular: "",
@@ -1004,21 +1004,21 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1004
1004
  truncate: !1,
1005
1005
  emphasis: "regular"
1006
1006
  }
1007
- }), Lt = ({ children: e, color: n, emphasis: r, truncate: i, testId: a }) => /* @__PURE__ */ t("p", {
1008
- className: It({
1007
+ }), Rt = ({ children: e, color: n, emphasis: r, truncate: i, testId: a }) => /* @__PURE__ */ t("p", {
1008
+ className: Lt({
1009
1009
  color: n,
1010
1010
  emphasis: r,
1011
1011
  truncate: i
1012
1012
  }),
1013
1013
  "data-testid": a,
1014
1014
  children: e
1015
- }), Rt = y("flex flex-col gap-[var(--space-stack)]", {
1015
+ }), zt = y("flex flex-col gap-[var(--space-stack)]", {
1016
1016
  variants: { variant: {
1017
1017
  default: "max-w-[var(--measure)]",
1018
1018
  letter: "min-w-0 max-w-[min(100%,var(--measure-letter))] font-letter text-letter"
1019
1019
  } },
1020
1020
  defaultVariants: { variant: "default" }
1021
- }), zt = a(!1), Bt = y("font-body text-lede leading-lede text-foreground"), Vt = y("", {
1021
+ }), Bt = a(!1), Vt = y("font-body text-lede leading-lede text-foreground"), Ht = y("", {
1022
1022
  variants: {
1023
1023
  letter: {
1024
1024
  false: "font-body text-body leading-body",
@@ -1037,76 +1037,76 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1037
1037
  letter: !1,
1038
1038
  color: "foreground"
1039
1039
  }
1040
- }), Ht = y("font-body text-small text-muted"), Ut = {
1041
- Root: ({ children: e, testId: n, variant: r }) => /* @__PURE__ */ t(zt, {
1040
+ }), Ut = y("font-body text-small text-muted"), Wt = {
1041
+ Root: ({ children: e, testId: n, variant: r }) => /* @__PURE__ */ t(Bt, {
1042
1042
  value: r === "letter",
1043
1043
  children: /* @__PURE__ */ t("div", {
1044
- className: Rt({ variant: r }),
1044
+ className: zt({ variant: r }),
1045
1045
  "data-testid": n,
1046
1046
  children: e
1047
1047
  })
1048
1048
  }),
1049
1049
  Lede: ({ children: e }) => /* @__PURE__ */ t("p", {
1050
- className: Bt(),
1050
+ className: Vt(),
1051
1051
  children: e
1052
1052
  }),
1053
1053
  Body: ({ color: e, children: n }) => /* @__PURE__ */ t("p", {
1054
- className: Vt({
1054
+ className: Ht({
1055
1055
  color: e,
1056
- letter: c(zt)
1056
+ letter: c(Bt)
1057
1057
  }),
1058
1058
  children: n
1059
1059
  }),
1060
1060
  Tail: ({ children: e }) => /* @__PURE__ */ t("p", {
1061
- className: Ht(),
1061
+ className: Ut(),
1062
1062
  children: e
1063
1063
  })
1064
- }, K = "font-control text-body text-balance wrap-anywhere rounded-[var(--radius-control)] select-none inline-flex flex-row items-center justify-center gap-2", Wt = y("transition-colors duration-[var(--motion-duration-color)] cursor-pointer disabled:cursor-not-allowed outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
1064
+ }, G = "font-control text-body text-balance wrap-anywhere rounded-[var(--radius-control)] select-none inline-flex flex-row items-center justify-center gap-2", Gt = y("transition-colors duration-[var(--motion-duration-color)] cursor-pointer disabled:cursor-not-allowed outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
1065
1065
  variants: { variant: {
1066
- primary: `${K} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-primary text-primary-foreground hover:bg-primary-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
1067
- secondary: `${K} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-secondary text-secondary-foreground hover:bg-secondary-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
1068
- ghost: `${K} px-2 py-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)] disabled:bg-disabled disabled:hover:bg-disabled-hover`,
1069
- outlined: `${K} px-[calc(1rem_-_1px)] sm:px-[calc(1.5rem_-_1px)] py-[calc(0.5rem_-_1px)] min-w-[min(var(--control-min-width),100%)] border border-solid border-secondary bg-transparent text-secondary hover:bg-backing disabled:border-disabled disabled:text-muted disabled:hover:bg-transparent`,
1070
- destructive: `${K} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-error text-error-foreground hover:bg-error-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
1066
+ primary: `${G} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-primary text-primary-foreground hover:bg-primary-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
1067
+ secondary: `${G} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-secondary text-secondary-foreground hover:bg-secondary-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
1068
+ ghost: `${G} px-2 py-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)] disabled:bg-disabled disabled:hover:bg-disabled-hover`,
1069
+ outlined: `${G} px-[calc(1rem_-_1px)] sm:px-[calc(1.5rem_-_1px)] py-[calc(0.5rem_-_1px)] min-w-[min(var(--control-min-width),100%)] border border-solid border-secondary bg-transparent text-secondary hover:bg-backing disabled:border-disabled disabled:text-muted disabled:hover:bg-transparent`,
1070
+ destructive: `${G} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-error text-error-foreground hover:bg-error-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
1071
1071
  link: "inline p-0 min-w-0 max-w-full whitespace-normal wrap-anywhere bg-transparent [font:inherit] [letter-spacing:inherit] [text-align:inherit] text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] enabled:hover:decoration-[length:var(--underline-thickness-hover)] disabled:text-disabled",
1072
1072
  plain: "inline p-0 min-w-0 max-w-full whitespace-normal wrap-anywhere bg-transparent [font:inherit] [letter-spacing:inherit] [color:inherit] [text-align:inherit] disabled:text-disabled"
1073
1073
  } },
1074
1074
  defaultVariants: { variant: "primary" }
1075
- }), Gt = ({ children: e, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ t("button", {
1075
+ }), Kt = ({ children: e, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ t("button", {
1076
1076
  type: s,
1077
1077
  "data-testid": r,
1078
- className: Wt({ variant: i }),
1078
+ className: Gt({ variant: i }),
1079
1079
  onClick: () => a?.next(),
1080
1080
  disabled: n,
1081
1081
  "aria-label": o,
1082
1082
  children: e
1083
- }), Kt = class extends Error {
1083
+ }), qt = class extends Error {
1084
1084
  constructor(e) {
1085
1085
  super(`Choices.${e} must be composed inside Choices.Root`), this.name = "ChoicesCompositionError";
1086
1086
  }
1087
- }, qt = y("flex flex-col gap-[var(--space-stack)]"), Jt = y([
1087
+ }, Jt = y("flex flex-col gap-[var(--space-stack)]"), Yt = y([
1088
1088
  "group/choice flex w-full flex-row items-start gap-3 text-left",
1089
1089
  "rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent aria-checked:border-foreground",
1090
1090
  "px-3 py-2",
1091
1091
  "cursor-pointer disabled:cursor-not-allowed",
1092
1092
  "transition-colors duration-[var(--motion-duration-color)]",
1093
1093
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
1094
- ].join(" ")), Yt = a(void 0), Xt = (e) => {
1095
- let t = c(Yt);
1096
- if (t === void 0) throw new Kt(e);
1094
+ ].join(" ")), Xt = a(void 0), Zt = (e) => {
1095
+ let t = c(Xt);
1096
+ if (t === void 0) throw new qt(e);
1097
1097
  return t;
1098
- }, Zt = (e, t) => {
1098
+ }, Qt = (e, t) => {
1099
1099
  let n = e.closest("[role=\"radiogroup\"]");
1100
1100
  if (n === null) return;
1101
1101
  let r = Array.from(n.querySelectorAll(":scope > [role=\"radio\"]"));
1102
1102
  return r[(r.indexOf(e) + t + r.length) % r.length];
1103
- }, Qt = {
1103
+ }, $t = {
1104
1104
  ArrowDown: 1,
1105
1105
  ArrowRight: 1,
1106
1106
  ArrowUp: -1,
1107
1107
  ArrowLeft: -1
1108
- }, $t = {
1109
- Root: ({ selected: e, onSelect$: n, label: r, inert: i, children: a, testId: o }) => /* @__PURE__ */ t(Yt.Provider, {
1108
+ }, en = {
1109
+ Root: ({ selected: e, onSelect$: n, label: r, inert: i, children: a, testId: o }) => /* @__PURE__ */ t(Xt.Provider, {
1110
1110
  value: {
1111
1111
  selected: e,
1112
1112
  onSelect$: n,
@@ -1116,13 +1116,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1116
1116
  role: "radiogroup",
1117
1117
  "aria-label": r,
1118
1118
  "aria-disabled": i === !0 ? "true" : void 0,
1119
- className: qt(),
1119
+ className: Jt(),
1120
1120
  "data-testid": o,
1121
1121
  children: a
1122
1122
  })
1123
1123
  }),
1124
1124
  Choice: ({ value: e, children: r, description: i, testId: a }) => {
1125
- let { selected: o, onSelect$: s, inert: c } = Xt("Choice"), l = o === e, d = u(), f = `${d}-name`, p = `${d}-description`;
1125
+ let { selected: o, onSelect$: s, inert: c } = Zt("Choice"), l = o === e, d = u(), f = `${d}-name`, p = `${d}-description`;
1126
1126
  return /* @__PURE__ */ n("button", {
1127
1127
  type: "button",
1128
1128
  role: "radio",
@@ -1133,15 +1133,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1133
1133
  disabled: c,
1134
1134
  "data-value": e,
1135
1135
  "data-testid": a,
1136
- className: Jt(),
1136
+ className: Yt(),
1137
1137
  onClick: () => {
1138
1138
  l || s.next(e);
1139
1139
  },
1140
1140
  onKeyDown: (e) => {
1141
- let t = Qt[e.key];
1141
+ let t = $t[e.key];
1142
1142
  if (t === void 0 || c) return;
1143
1143
  e.preventDefault();
1144
- let n = Zt(e.currentTarget, t);
1144
+ let n = Qt(e.currentTarget, t);
1145
1145
  if (n === void 0) return;
1146
1146
  n.focus();
1147
1147
  let r = n.dataset.value;
@@ -1167,14 +1167,14 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1167
1167
  })]
1168
1168
  });
1169
1169
  }
1170
- }, en = y("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted", {
1170
+ }, tn = y("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted", {
1171
1171
  variants: { variant: {
1172
1172
  text: "",
1173
1173
  email: "",
1174
1174
  url: ""
1175
1175
  } },
1176
1176
  defaultVariants: { variant: "text" }
1177
- }), tn = ({ label: e, name: r, variant: i, required: a, optionalLabel: o, invalid: s, disabled: c, defaultValue: d, placeholder: f, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
1177
+ }), nn = ({ label: e, name: r, variant: i, required: a, optionalLabel: o, invalid: s, disabled: c, defaultValue: d, placeholder: f, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
1178
1178
  let b = u(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, s ? C : void 0].filter(Boolean).join(" ") || void 0, T = p(null);
1179
1179
  return l(() => {
1180
1180
  let e = v?.subscribe(() => {
@@ -1194,7 +1194,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1194
1194
  id: x,
1195
1195
  name: r,
1196
1196
  type: i ?? "text",
1197
- className: en({ variant: i }),
1197
+ className: tn({ variant: i }),
1198
1198
  required: a,
1199
1199
  disabled: c,
1200
1200
  defaultValue: d,
@@ -1221,7 +1221,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1221
1221
  })
1222
1222
  ]
1223
1223
  });
1224
- }, nn = y("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
1224
+ }, rn = y("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
1225
1225
  variants: { treatment: {
1226
1226
  prose: "text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:decoration-[length:var(--underline-thickness-hover)]",
1227
1227
  quiet: "font-secondary text-muted no-underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] transition-colors duration-[var(--motion-duration-color)] hover:text-foreground hover:underline",
@@ -1229,15 +1229,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1229
1229
  graphic: "text-inherit no-underline"
1230
1230
  } },
1231
1231
  defaultVariants: { treatment: "prose" }
1232
- }), rn = ({ href: e, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ t("a", {
1232
+ }), an = ({ href: e, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ t("a", {
1233
1233
  href: e,
1234
- className: nn({ treatment: r }),
1234
+ className: rn({ treatment: r }),
1235
1235
  target: i ? "_blank" : void 0,
1236
1236
  rel: i ? "noopener noreferrer" : void 0,
1237
1237
  "aria-current": a ? "page" : void 0,
1238
1238
  "data-testid": o,
1239
1239
  children: n
1240
- }), an = (e, t, n, r) => {
1240
+ }), on = (e, t, n, r) => {
1241
1241
  let i = Math.max(e.length - 1, 0) * r;
1242
1242
  if (e.reduce((e, t) => e + t, 0) + i <= n) return e.length;
1243
1243
  let a = 0, o = t;
@@ -1246,11 +1246,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1246
1246
  o += t + r, a += 1;
1247
1247
  }
1248
1248
  return a;
1249
- }, on = class extends Error {
1249
+ }, sn = class extends Error {
1250
1250
  constructor(e) {
1251
1251
  super(`MultiSelect.${e} must be composed inside MultiSelect.Root`), this.name = "MultiSelectCompositionError";
1252
1252
  }
1253
- }, sn = "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", cn = `relative inline-flex shrink-0 cursor-pointer items-center rounded-[var(--radius-control)] bg-backing px-2 py-0.5 font-secondary text-small text-foreground disabled:cursor-not-allowed disabled:text-muted pointer-events-auto ${sn}`, q = y("", {
1253
+ }, cn = "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", ln = `relative inline-flex shrink-0 cursor-pointer items-center rounded-[var(--radius-control)] bg-backing px-2 py-0.5 font-secondary text-small text-foreground disabled:cursor-not-allowed disabled:text-muted pointer-events-auto ${cn}`, K = y("", {
1254
1254
  variants: { part: {
1255
1255
  root: [
1256
1256
  "relative flex flex-col gap-[var(--space-stack)]",
@@ -1263,7 +1263,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1263
1263
  "font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)]",
1264
1264
  "data-[disabled]:border-disabled data-[disabled]:text-muted"
1265
1265
  ].join(" "),
1266
- trigger: `absolute inset-0 flex cursor-pointer items-center justify-end rounded-[var(--radius-control)] bg-transparent px-3 text-muted disabled:cursor-not-allowed ${sn}`,
1266
+ trigger: `absolute inset-0 flex cursor-pointer items-center justify-end rounded-[var(--radius-control)] bg-transparent px-3 text-muted disabled:cursor-not-allowed ${cn}`,
1267
1267
  clip: "relative min-w-0 flex-1 overflow-hidden p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] -m-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] pointer-events-none",
1268
1268
  track: "relative flex min-h-[calc(var(--text-body)*var(--leading-body))] items-center gap-1",
1269
1269
  chip: [
@@ -1271,9 +1271,9 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1271
1271
  "rounded-[var(--radius-control)] bg-backing py-0.5 pr-0.5 pl-2 font-secondary text-small text-foreground",
1272
1272
  "group-data-[disabled]/field:text-muted data-[overflow]:invisible data-[overflow]:absolute"
1273
1273
  ].join(" "),
1274
- count: cn,
1275
- countMeasure: `${cn} invisible absolute`,
1276
- iconButton: `relative inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-[var(--radius-control)] text-muted transition-colors duration-[var(--motion-duration-color)] hover:text-foreground disabled:cursor-not-allowed disabled:hover:text-muted ${sn}`,
1274
+ count: ln,
1275
+ countMeasure: `${ln} invisible absolute`,
1276
+ iconButton: `relative inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-[var(--radius-control)] text-muted transition-colors duration-[var(--motion-duration-color)] hover:text-foreground disabled:cursor-not-allowed disabled:hover:text-muted ${cn}`,
1277
1277
  surface: [
1278
1278
  "absolute left-0 right-0 z-10 flex flex-col gap-1 overflow-y-auto p-1",
1279
1279
  "rounded-[var(--radius-control)] border border-solid border-border bg-surface shadow-[var(--elevation-floating)]",
@@ -1282,22 +1282,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1282
1282
  ].join(" ")
1283
1283
  } },
1284
1284
  defaultVariants: { part: "root" }
1285
- }), ln = y([
1285
+ }), un = y([
1286
1286
  "group/option flex w-full flex-row items-center gap-3 text-left",
1287
1287
  "rounded-[var(--radius-control)] bg-transparent px-3 py-2 hover:bg-backing",
1288
1288
  "cursor-pointer disabled:cursor-not-allowed",
1289
1289
  "transition-colors duration-[var(--motion-duration-color)]",
1290
1290
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
1291
- ].join(" ")), un = 8, dn = a(void 0), fn = (e) => {
1292
- let t = c(dn);
1293
- if (t === void 0) throw new on(e);
1291
+ ].join(" ")), dn = 8, fn = a(void 0), pn = (e) => {
1292
+ let t = c(fn);
1293
+ if (t === void 0) throw new sn(e);
1294
1294
  return t;
1295
- }, J = (e) => (t) => {
1295
+ }, q = (e) => (t) => {
1296
1296
  e.current = t ?? void 0;
1297
- }, pn = (e) => e.getBoundingClientRect().width, mn = (e) => r.toArray(e).flatMap((e) => {
1297
+ }, mn = (e) => e.getBoundingClientRect().width, hn = (e) => r.toArray(e).flatMap((e) => {
1298
1298
  if (!o(e)) return [];
1299
- if (e.type === i) return mn(e.props.children);
1300
- if (e.type === Cn) {
1299
+ if (e.type === i) return hn(e.props.children);
1300
+ if (e.type === wn) {
1301
1301
  let { value: t, children: n } = e.props;
1302
1302
  return [{
1303
1303
  value: t,
@@ -1305,19 +1305,19 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1305
1305
  }];
1306
1306
  }
1307
1307
  return [];
1308
- }), hn = (e) => Array.from(e.querySelectorAll("[data-multiselect-chip]:not([data-overflow]) button")), gn = (e) => {
1308
+ }), gn = (e) => Array.from(e.querySelectorAll("[data-multiselect-chip]:not([data-overflow]) button")), _n = (e) => {
1309
1309
  let t = document.activeElement;
1310
1310
  return !e.contains(t) || t instanceof Element && t.closest("[data-overflow]") !== null;
1311
- }, _n = (e) => e.querySelector("[role=\"checkbox\"][aria-checked=\"true\"]") ?? e.querySelector("[role=\"checkbox\"]") ?? void 0, vn = (e, t) => [...new Set(e.map(({ value: e }) => e).filter((e) => t.has(e)))], yn = (e) => e.kind === "firstOption" || !e.control.isConnected, bn = (e, t, n, r) => {
1311
+ }, vn = (e) => e.querySelector("[role=\"checkbox\"][aria-checked=\"true\"]") ?? e.querySelector("[role=\"checkbox\"]") ?? void 0, yn = (e, t) => [...new Set(e.map(({ value: e }) => e).filter((e) => t.has(e)))], bn = (e) => e.kind === "firstOption" || !e.control.isConnected, xn = (e, t, n, r) => {
1312
1312
  switch (e.kind) {
1313
- case "firstOption": return r === void 0 ? void 0 : _n(r);
1313
+ case "firstOption": return r === void 0 ? void 0 : vn(r);
1314
1314
  case "afterRemoval": {
1315
- let r = hn(t);
1315
+ let r = gn(t);
1316
1316
  return r[e.index] ?? r[e.index - 1] ?? n;
1317
1317
  }
1318
1318
  case "afterClear": return n;
1319
1319
  }
1320
- }, xn = () => /* @__PURE__ */ t("svg", {
1320
+ }, Sn = () => /* @__PURE__ */ t("svg", {
1321
1321
  "aria-hidden": !0,
1322
1322
  focusable: !1,
1323
1323
  viewBox: "0 0 16 16",
@@ -1329,8 +1329,8 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1329
1329
  strokeWidth: 1.5,
1330
1330
  strokeLinecap: "round"
1331
1331
  })
1332
- }), Sn = ({ label: e, selected$: r, onChange$: i, emptyLabel: a, removeLabel: o, clearLabel: s, overflowLabel: c, hint: h, disabled: g, testId: _, children: v }) => {
1333
- let y = u(), b = `${y}-label`, x = `${y}-trigger`, S = `${y}-options`, C = `${y}-hint`, w = `${y}-empty`, T = g === !0, [ee, E] = m([]), [te, D] = m(!1), [ne, re] = m(void 0), [ie, ae] = m("below"), [, O] = f((e) => e + 1, 0), k = p(void 0), oe = p(void 0), A = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(!1), F = te && !T, I = mn(v), L = new Set(ee), R = I.filter((e) => L.has(e.value)), z = ne === void 0 ? R.length : Math.min(ne, R.length), se = R.length - z;
1332
+ }), Cn = ({ label: e, selected$: r, onChange$: i, emptyLabel: a, removeLabel: o, clearLabel: s, overflowLabel: c, hint: h, disabled: g, testId: _, children: v }) => {
1333
+ let y = u(), b = `${y}-label`, x = `${y}-trigger`, S = `${y}-options`, C = `${y}-hint`, w = `${y}-empty`, T = g === !0, [ee, E] = m([]), [te, D] = m(!1), [ne, re] = m(void 0), [ie, ae] = m("below"), [, oe] = f((e) => e + 1, 0), O = p(void 0), se = p(void 0), k = p(void 0), A = p(void 0), j = p(void 0), M = p(void 0), N = p(!1), P = te && !T, F = hn(v), I = new Set(ee), L = F.filter((e) => I.has(e.value)), R = ne === void 0 ? L.length : Math.min(ne, L.length), z = L.length - R;
1334
1334
  d(() => {
1335
1335
  E([]);
1336
1336
  let e = r.subscribe((e) => E(e));
@@ -1338,77 +1338,77 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1338
1338
  }, [r]), l(() => {
1339
1339
  T && D(!1);
1340
1340
  }, [T]), d(() => {
1341
- let e = j.current;
1341
+ let e = A.current;
1342
1342
  if (e === void 0 || typeof ResizeObserver > "u") return;
1343
- let t = new ResizeObserver(() => O());
1343
+ let t = new ResizeObserver(() => oe());
1344
1344
  return t.observe(e), () => t.disconnect();
1345
1345
  }, []), d(() => {
1346
- let e = j.current;
1346
+ let e = A.current;
1347
1347
  if (e === void 0) return;
1348
- let t = Array.from(e.querySelectorAll("[data-multiselect-chip]")), n = e.querySelector("[data-multiselect-count]"), r = Number.parseFloat(getComputedStyle(e).columnGap) || 0, i = an(t.map(pn), n === null ? 0 : pn(n), pn(e), r);
1348
+ let t = Array.from(e.querySelectorAll("[data-multiselect-chip]")), n = e.querySelector("[data-multiselect-count]"), r = Number.parseFloat(getComputedStyle(e).columnGap) || 0, i = on(t.map(mn), n === null ? 0 : mn(n), mn(e), r);
1349
1349
  re((e) => e === i ? e : i);
1350
1350
  }), d(() => {
1351
- let e = oe.current, t = M.current;
1352
- if (!F || e === void 0 || t === void 0) return;
1353
- let n = e.getBoundingClientRect(), r = window.innerHeight - n.bottom - un, i = n.top - un, a = t.scrollHeight > r && i > r;
1351
+ let e = se.current, t = j.current;
1352
+ if (!P || e === void 0 || t === void 0) return;
1353
+ let n = e.getBoundingClientRect(), r = window.innerHeight - n.bottom - dn, i = n.top - dn, a = t.scrollHeight > r && i > r;
1354
1354
  t.style.setProperty("--multiselect-surface-max-height", `${Math.max(a ? i : r, 0)}px`), ae(a ? "above" : "below");
1355
1355
  }), l(() => {
1356
- if (!F) return;
1356
+ if (!P) return;
1357
1357
  let e = (e) => {
1358
- let t = k.current;
1359
- t !== void 0 && e.target instanceof Node && !t.contains(e.target) && (P.current = !1, N.current = void 0, D(!1));
1358
+ let t = O.current;
1359
+ t !== void 0 && e.target instanceof Node && !t.contains(e.target) && (N.current = !1, M.current = void 0, D(!1));
1360
1360
  };
1361
1361
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
1362
- }, [F]), d(() => {
1363
- let e = k.current, t = A.current;
1362
+ }, [P]), d(() => {
1363
+ let e = O.current, t = k.current;
1364
1364
  if (e === void 0 || t === void 0) return;
1365
- let n = N.current;
1366
- n !== void 0 && yn(n) ? (N.current = void 0, bn(n, e, t, F ? M.current : void 0)?.focus()) : n === void 0 && P.current && gn(e) && t.focus(), P.current = e.contains(document.activeElement);
1365
+ let n = M.current;
1366
+ n !== void 0 && bn(n) ? (M.current = void 0, xn(n, e, t, P ? j.current : void 0)?.focus()) : n === void 0 && N.current && _n(e) && t.focus(), N.current = e.contains(document.activeElement);
1367
1367
  });
1368
1368
  let B = (e) => {
1369
- i.next(vn(I, e));
1369
+ i.next(yn(F, e));
1370
1370
  }, ce = (e) => {
1371
1371
  if (T) return;
1372
- let t = new Set(L);
1372
+ let t = new Set(I);
1373
1373
  t.delete(e) || t.add(e), B(t);
1374
1374
  }, le = (e, t) => (n) => {
1375
1375
  if (T) return;
1376
- document.activeElement === n.currentTarget && (N.current = {
1376
+ document.activeElement === n.currentTarget && (M.current = {
1377
1377
  kind: "afterRemoval",
1378
1378
  index: t,
1379
1379
  control: n.currentTarget
1380
1380
  });
1381
- let r = new Set(L);
1381
+ let r = new Set(I);
1382
1382
  r.delete(e), B(r);
1383
1383
  }, ue = (e) => {
1384
- T || (document.activeElement === e.currentTarget && (N.current = {
1384
+ T || (document.activeElement === e.currentTarget && (M.current = {
1385
1385
  kind: "afterClear",
1386
1386
  control: e.currentTarget
1387
1387
  }), i.next([]));
1388
1388
  }, de = (e) => {
1389
- T || (e.detail === 0 && (N.current = { kind: "firstOption" }), D(!0));
1389
+ T || (e.detail === 0 && (M.current = { kind: "firstOption" }), D(!0));
1390
1390
  }, fe = (e) => {
1391
- F ? D(!1) : de(e);
1391
+ P ? D(!1) : de(e);
1392
1392
  }, pe = (e) => {
1393
1393
  if (e.key !== "ArrowDown" || T) return;
1394
1394
  e.preventDefault();
1395
- let t = M.current;
1396
- F && t !== void 0 ? _n(t)?.focus() : (N.current = { kind: "firstOption" }, D(!0));
1395
+ let t = j.current;
1396
+ P && t !== void 0 ? vn(t)?.focus() : (M.current = { kind: "firstOption" }, D(!0));
1397
1397
  }, me = (e) => {
1398
- e.key !== "Escape" || !F || (e.preventDefault(), e.stopPropagation(), D(!1), A.current?.focus());
1398
+ e.key !== "Escape" || !P || (e.preventDefault(), e.stopPropagation(), D(!1), k.current?.focus());
1399
1399
  }, he = (e) => {
1400
- P.current = !0;
1401
- let t = N.current;
1402
- t !== void 0 && t.kind !== "firstOption" && e.target !== t.control && (N.current = void 0);
1400
+ N.current = !0;
1401
+ let t = M.current;
1402
+ t !== void 0 && t.kind !== "firstOption" && e.target !== t.control && (M.current = void 0);
1403
1403
  }, V = (e) => {
1404
- let t = k.current, n = e.relatedTarget;
1405
- t !== void 0 && n instanceof Node && t.contains(n) || e.target.isConnected && (P.current = !1, N.current = void 0, D(!1));
1404
+ let t = O.current, n = e.relatedTarget;
1405
+ t !== void 0 && n instanceof Node && t.contains(n) || e.target.isConnected && (N.current = !1, M.current = void 0, D(!1));
1406
1406
  }, ge = (e) => {
1407
1407
  (!(e.target instanceof Element) || e.target.closest("button") === null) && e.preventDefault();
1408
- }, _e = [R.length === 0 ? w : void 0, h ? C : void 0].filter(Boolean).join(" ") || void 0;
1408
+ }, _e = [L.length === 0 ? w : void 0, h ? C : void 0].filter(Boolean).join(" ") || void 0;
1409
1409
  return /* @__PURE__ */ n("div", {
1410
- ref: J(k),
1411
- className: q(),
1410
+ ref: q(O),
1411
+ className: K(),
1412
1412
  onKeyDown: me,
1413
1413
  onFocus: he,
1414
1414
  onBlur: V,
@@ -1419,22 +1419,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1419
1419
  children: e
1420
1420
  }),
1421
1421
  /* @__PURE__ */ n("div", {
1422
- ref: J(oe),
1422
+ ref: q(se),
1423
1423
  "data-multiselect-field": !0,
1424
1424
  "data-disabled": T || void 0,
1425
- className: q({ part: "field" }),
1425
+ className: K({ part: "field" }),
1426
1426
  children: [
1427
1427
  /* @__PURE__ */ t("button", {
1428
- ref: J(A),
1428
+ ref: q(k),
1429
1429
  id: x,
1430
1430
  type: "button",
1431
1431
  "aria-labelledby": b,
1432
- "aria-expanded": F,
1433
- "aria-controls": F ? S : void 0,
1432
+ "aria-expanded": P,
1433
+ "aria-controls": P ? S : void 0,
1434
1434
  "aria-describedby": _e,
1435
1435
  disabled: T,
1436
1436
  "data-testid": _,
1437
- className: q({ part: "trigger" }),
1437
+ className: K({ part: "trigger" }),
1438
1438
  onClick: fe,
1439
1439
  onKeyDown: pe,
1440
1440
  children: /* @__PURE__ */ t("svg", {
@@ -1453,25 +1453,25 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1453
1453
  })
1454
1454
  }),
1455
1455
  /* @__PURE__ */ t("div", {
1456
- className: q({ part: "clip" }),
1456
+ className: K({ part: "clip" }),
1457
1457
  children: /* @__PURE__ */ n("div", {
1458
- ref: J(j),
1458
+ ref: q(A),
1459
1459
  "data-multiselect-track": !0,
1460
- className: q({ part: "track" }),
1460
+ className: K({ part: "track" }),
1461
1461
  children: [
1462
- R.length === 0 && /* @__PURE__ */ t("span", {
1462
+ L.length === 0 && /* @__PURE__ */ t("span", {
1463
1463
  id: w,
1464
1464
  className: "truncate text-muted",
1465
1465
  children: a
1466
1466
  }),
1467
- R.map(({ value: e, label: r }, i) => {
1468
- let a = i >= z;
1467
+ L.map(({ value: e, label: r }, i) => {
1468
+ let a = i >= R;
1469
1469
  return /* @__PURE__ */ n("span", {
1470
1470
  "data-multiselect-chip": !0,
1471
1471
  "data-overflow": a || void 0,
1472
1472
  "aria-hidden": a || void 0,
1473
1473
  inert: a || void 0,
1474
- className: q({ part: "chip" }),
1474
+ className: K({ part: "chip" }),
1475
1475
  children: [/* @__PURE__ */ t("span", {
1476
1476
  className: "truncate",
1477
1477
  children: r
@@ -1480,35 +1480,35 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1480
1480
  "aria-label": o.replaceAll("{label}", r),
1481
1481
  disabled: T,
1482
1482
  tabIndex: a ? -1 : void 0,
1483
- className: q({ part: "iconButton" }),
1483
+ className: K({ part: "iconButton" }),
1484
1484
  onClick: le(e, i),
1485
- children: /* @__PURE__ */ t(xn, {})
1485
+ children: /* @__PURE__ */ t(Sn, {})
1486
1486
  })]
1487
1487
  }, e);
1488
1488
  }),
1489
- se > 0 && /* @__PURE__ */ t("button", {
1489
+ z > 0 && /* @__PURE__ */ t("button", {
1490
1490
  type: "button",
1491
1491
  disabled: T,
1492
- className: q({ part: "count" }),
1492
+ className: K({ part: "count" }),
1493
1493
  onClick: de,
1494
- children: c.replaceAll("{count}", String(se))
1494
+ children: c.replaceAll("{count}", String(z))
1495
1495
  }),
1496
- R.length > 0 && /* @__PURE__ */ t("span", {
1496
+ L.length > 0 && /* @__PURE__ */ t("span", {
1497
1497
  "aria-hidden": !0,
1498
1498
  "data-multiselect-count": !0,
1499
- className: q({ part: "countMeasure" }),
1500
- children: c.replaceAll("{count}", String(R.length))
1499
+ className: K({ part: "countMeasure" }),
1500
+ children: c.replaceAll("{count}", String(L.length))
1501
1501
  })
1502
1502
  ]
1503
1503
  })
1504
1504
  }),
1505
- R.length > 0 ? /* @__PURE__ */ t("button", {
1505
+ L.length > 0 ? /* @__PURE__ */ t("button", {
1506
1506
  type: "button",
1507
1507
  "aria-label": s,
1508
1508
  disabled: T,
1509
- className: q({ part: "iconButton" }),
1509
+ className: K({ part: "iconButton" }),
1510
1510
  onClick: ue,
1511
- children: /* @__PURE__ */ t(xn, {})
1511
+ children: /* @__PURE__ */ t(Sn, {})
1512
1512
  }) : /* @__PURE__ */ t("span", {
1513
1513
  "aria-hidden": !0,
1514
1514
  className: "size-6 shrink-0"
@@ -1517,17 +1517,17 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1517
1517
  "aria-hidden": !0,
1518
1518
  className: "size-6 shrink-0"
1519
1519
  }),
1520
- F && /* @__PURE__ */ t("div", {
1521
- ref: J(M),
1520
+ P && /* @__PURE__ */ t("div", {
1521
+ ref: q(j),
1522
1522
  id: S,
1523
1523
  role: "group",
1524
1524
  "aria-labelledby": b,
1525
1525
  "data-placement": ie,
1526
- className: q({ part: "surface" }),
1526
+ className: K({ part: "surface" }),
1527
1527
  onMouseDown: ge,
1528
- children: /* @__PURE__ */ t(dn, {
1528
+ children: /* @__PURE__ */ t(fn, {
1529
1529
  value: {
1530
- selected: L,
1530
+ selected: I,
1531
1531
  disabled: T,
1532
1532
  toggle: ce
1533
1533
  },
@@ -1542,15 +1542,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1542
1542
  })
1543
1543
  ]
1544
1544
  });
1545
- }, Cn = ({ value: e, children: r, testId: i }) => {
1546
- let { selected: a, disabled: o, toggle: s } = fn("Option"), c = a.has(e);
1545
+ }, wn = ({ value: e, children: r, testId: i }) => {
1546
+ let { selected: a, disabled: o, toggle: s } = pn("Option"), c = a.has(e);
1547
1547
  return /* @__PURE__ */ n("button", {
1548
1548
  type: "button",
1549
1549
  role: "checkbox",
1550
1550
  "aria-checked": c,
1551
1551
  disabled: o,
1552
1552
  "data-testid": i,
1553
- className: ln(),
1553
+ className: un(),
1554
1554
  onClick: () => s(e),
1555
1555
  children: [/* @__PURE__ */ t("span", {
1556
1556
  className: "flex size-[var(--choice-marker-size)] shrink-0 items-center justify-center border border-solid border-control-border group-aria-checked/option:border-foreground",
@@ -1573,10 +1573,10 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1573
1573
  children: r
1574
1574
  })]
1575
1575
  });
1576
- }, wn = {
1577
- Root: Sn,
1578
- Option: Cn
1579
- }, Tn = y("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted"), En = ({ label: e, name: r, required: i, optionalLabel: a, hint: o, invalid: s, errorMessage: c, disabled: d, placeholder: f, defaultValue: m, onInput$: h, reset$: g, testId: _ }) => {
1576
+ }, Tn = {
1577
+ Root: Cn,
1578
+ Option: wn
1579
+ }, En = y("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted"), Dn = ({ label: e, name: r, required: i, optionalLabel: a, hint: o, invalid: s, errorMessage: c, disabled: d, placeholder: f, defaultValue: m, onInput$: h, reset$: g, testId: _ }) => {
1580
1580
  let v = u(), y = `${v}-control`, b = `${v}-hint`, x = `${v}-error`, S = [o ? b : void 0, s ? x : void 0].filter(Boolean).join(" ") || void 0, C = p(null);
1581
1581
  return l(() => {
1582
1582
  let e = g?.subscribe(() => {
@@ -1597,7 +1597,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1597
1597
  name: r,
1598
1598
  type: "text",
1599
1599
  inputMode: "decimal",
1600
- className: Tn(),
1600
+ className: En(),
1601
1601
  required: i,
1602
1602
  disabled: d,
1603
1603
  defaultValue: m,
@@ -1623,7 +1623,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1623
1623
  })
1624
1624
  ]
1625
1625
  });
1626
- }, Dn = y([
1626
+ }, On = y([
1627
1627
  "flex flex-col gap-[var(--space-stack)]",
1628
1628
  "[&>label]:font-secondary [&>label]:font-medium [&>label]:text-body [&>label]:text-foreground",
1629
1629
  "[&>span]:font-secondary [&>span]:text-muted [&>span]:text-small",
@@ -1632,11 +1632,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1632
1632
  "[&>select]:font-control [&>select]:text-body [&>select]:text-foreground [&>select]:transition-colors [&>select]:duration-[var(--motion-duration-color)]",
1633
1633
  "[&>select]:outline-focus-ring [&>select]:outline-offset-[var(--focus-ring-offset)] [&>select]:focus-visible:outline [&>select]:focus-visible:outline-[length:var(--focus-ring-width)]",
1634
1634
  "[&>select:user-invalid]:border-error [&>select]:aria-[invalid=true]:border-error [&>select]:disabled:cursor-not-allowed [&>select]:disabled:border-disabled [&>select]:disabled:text-muted"
1635
- ].join(" ")), On = {
1635
+ ].join(" ")), kn = {
1636
1636
  Root: ({ label: e, name: r, required: i, optionalLabel: a, disabled: o, invalid: s, hint: c, errorMessage: l, testId: d, defaultValue: f, onChange$: p, placeholder: m, children: h }) => {
1637
1637
  let g = u(), _ = `${g}-control`, v = `${g}-hint`, y = `${g}-error`, b = [c ? v : void 0, s && l ? y : void 0].filter(Boolean).join(" ") || void 0;
1638
1638
  return /* @__PURE__ */ n("div", {
1639
- className: Dn(),
1639
+ className: On(),
1640
1640
  children: [
1641
1641
  /* @__PURE__ */ t("label", {
1642
1642
  htmlFor: _,
@@ -1675,11 +1675,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1675
1675
  "data-testid": r,
1676
1676
  children: n
1677
1677
  })
1678
- }, Y = class extends Error {
1678
+ }, J = class extends Error {
1679
1679
  constructor(e) {
1680
1680
  super(`Slider configuration: ${e}`), this.name = "SliderConfigurationError";
1681
1681
  }
1682
- }, kn = y([
1682
+ }, An = y([
1683
1683
  "block h-[var(--slider-thumb-size)] w-full cursor-pointer appearance-none bg-transparent",
1684
1684
  "disabled:cursor-not-allowed",
1685
1685
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
@@ -1690,13 +1690,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1690
1690
  "[&::-moz-range-track]:h-[var(--slider-track-thickness)] [&::-moz-range-track]:rounded-[var(--radius-control)] [&::-moz-range-track]:bg-control-border",
1691
1691
  "[&::-moz-range-thumb]:size-[var(--slider-thumb-size)] [&::-moz-range-thumb]:rounded-[var(--radius-control)] [&::-moz-range-thumb]:border-none [&::-moz-range-thumb]:bg-foreground",
1692
1692
  "[&:disabled::-moz-range-track]:bg-disabled [&:disabled::-moz-range-thumb]:bg-disabled"
1693
- ].join(" ")), An = (e) => {
1694
- for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new Y(`\`${t}\` must be a finite number, got ${n}`);
1695
- if (e.min >= e.max) throw new Y(`\`min\` (${e.min}) must be below \`max\` (${e.max})`);
1696
- if (e.step <= 0) throw new Y(`\`step\` (${e.step}) must be positive`);
1697
- }, jn = ({ min: e, max: r, step: i = 1, value: a, onInput$: o, label: s, valueText: c, disabled: l, testId: d }) => {
1693
+ ].join(" ")), jn = (e) => {
1694
+ for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new J(`\`${t}\` must be a finite number, got ${n}`);
1695
+ if (e.min >= e.max) throw new J(`\`min\` (${e.min}) must be below \`max\` (${e.max})`);
1696
+ if (e.step <= 0) throw new J(`\`step\` (${e.step}) must be positive`);
1697
+ }, Mn = ({ min: e, max: r, step: i = 1, value: a, onInput$: o, label: s, valueText: c, disabled: l, testId: d }) => {
1698
1698
  let f = `${u()}-control`;
1699
- return An({
1699
+ return jn({
1700
1700
  min: e,
1701
1701
  max: r,
1702
1702
  step: i,
@@ -1710,7 +1710,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1710
1710
  }), /* @__PURE__ */ t("input", {
1711
1711
  id: f,
1712
1712
  type: "range",
1713
- className: kn(),
1713
+ className: An(),
1714
1714
  min: e,
1715
1715
  max: r,
1716
1716
  step: i,
@@ -1721,7 +1721,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1721
1721
  onChange: (e) => o.next(e.currentTarget.valueAsNumber)
1722
1722
  })]
1723
1723
  });
1724
- }, Mn = class extends Error {
1724
+ }, Y = class extends Error {
1725
1725
  constructor(e) {
1726
1726
  super(`Stepper.${e} must be composed inside Stepper.Root`), this.name = "StepperCompositionError";
1727
1727
  }
@@ -1744,7 +1744,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1744
1744
  "forced-colors:[&>[data-marker]]:bg-[Canvas] forced-colors:[&>[data-marker]]:text-[CanvasText] forced-colors:[&>[data-marker]]:border-[CanvasText]"
1745
1745
  ]), In = y("min-h-0 min-w-0 flex-auto outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"), Ln = a(void 0), Rn = (e) => r.toArray(e).flatMap((e) => o(e) && e.type === i ? Rn(e.props.children) : [e]), zn = a(void 0), Bn = (e) => {
1746
1746
  let t = c(zn);
1747
- if (t === void 0) throw new Mn(e);
1747
+ if (t === void 0) throw new Y(e);
1748
1748
  return t;
1749
1749
  }, Vn = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), Hn = (e) => {
1750
1750
  e.currentTarget.scrollIntoView({
@@ -1792,7 +1792,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1792
1792
  },
1793
1793
  Step: ({ value: e, label: r, status: i, valueText: a, statusContent: o, testId: s }) => {
1794
1794
  let { active: l, onSelect$: u, baseId: d } = Bn("Step"), f = c(Ln);
1795
- if (f === void 0) throw new Mn("Step (inside List)");
1795
+ if (f === void 0) throw new Y("Step (inside List)");
1796
1796
  let p = l === e;
1797
1797
  return /* @__PURE__ */ n("button", {
1798
1798
  type: "button",
@@ -1915,21 +1915,21 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1915
1915
  ].join(" ")), Qn = y("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", { variants: { fill: {
1916
1916
  true: "min-h-0 min-w-0 flex-auto",
1917
1917
  false: ""
1918
- } } }), $n = a(void 0), Z = (e) => {
1918
+ } } }), $n = a(void 0), er = (e) => {
1919
1919
  let t = c($n);
1920
1920
  if (t === void 0) throw new Jn(e);
1921
1921
  return t;
1922
- }, er = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), tr = (e) => {
1922
+ }, tr = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), nr = (e) => {
1923
1923
  e.currentTarget.scrollIntoView({
1924
1924
  block: "nearest",
1925
1925
  inline: "nearest"
1926
1926
  });
1927
- }, nr = (e, t) => `${e}tab-${er(t)}`, rr = (e, t) => `${e}panel-${er(t)}`, ir = (e, t) => {
1927
+ }, rr = (e, t) => `${e}tab-${tr(t)}`, ir = (e, t) => `${e}panel-${tr(t)}`, ar = (e, t) => {
1928
1928
  let n = e.closest("[role=\"tablist\"]");
1929
1929
  if (n === null) return;
1930
1930
  let r = Array.from(n.querySelectorAll(":scope > [role=\"tab\"]"));
1931
1931
  return r[(r.indexOf(e) + t + r.length) % r.length];
1932
- }, ar = {
1932
+ }, or = {
1933
1933
  Root: ({ active: e, onSelect$: n, label: r, fill: i, children: a, testId: o }) => {
1934
1934
  let s = u();
1935
1935
  return /* @__PURE__ */ t($n.Provider, {
@@ -1948,7 +1948,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1948
1948
  });
1949
1949
  },
1950
1950
  List: ({ children: e, testId: n }) => {
1951
- let { label: r, fill: i } = Z("List");
1951
+ let { label: r, fill: i } = er("List");
1952
1952
  return /* @__PURE__ */ t("div", {
1953
1953
  role: "tablist",
1954
1954
  "aria-label": r,
@@ -1958,13 +1958,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1958
1958
  });
1959
1959
  },
1960
1960
  Tab: ({ value: e, children: n, testId: r }) => {
1961
- let { active: i, onSelect$: a, baseId: o } = Z("Tab"), s = i === e;
1961
+ let { active: i, onSelect$: a, baseId: o } = er("Tab"), s = i === e;
1962
1962
  return /* @__PURE__ */ t("button", {
1963
1963
  type: "button",
1964
1964
  role: "tab",
1965
- id: nr(o, e),
1965
+ id: rr(o, e),
1966
1966
  "aria-selected": s,
1967
- "aria-controls": rr(o, e),
1967
+ "aria-controls": ir(o, e),
1968
1968
  tabIndex: s ? 0 : -1,
1969
1969
  "data-value": e,
1970
1970
  "data-testid": r,
@@ -1973,22 +1973,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1973
1973
  onKeyDown: (e) => {
1974
1974
  if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
1975
1975
  e.preventDefault();
1976
- let t = ir(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
1976
+ let t = ar(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
1977
1977
  if (t === void 0) return;
1978
1978
  t.focus();
1979
1979
  let n = t.dataset.value;
1980
1980
  n !== void 0 && a.next(n);
1981
1981
  },
1982
- onFocus: tr,
1982
+ onFocus: nr,
1983
1983
  children: n
1984
1984
  });
1985
1985
  },
1986
1986
  Panel: ({ value: e, children: n, testId: r }) => {
1987
- let { active: i, baseId: a, fill: o } = Z("Panel"), s = i === e;
1987
+ let { active: i, baseId: a, fill: o } = er("Panel"), s = i === e;
1988
1988
  return /* @__PURE__ */ t("div", {
1989
1989
  role: "tabpanel",
1990
- id: rr(a, e),
1991
- "aria-labelledby": nr(a, e),
1990
+ id: ir(a, e),
1991
+ "aria-labelledby": rr(a, e),
1992
1992
  hidden: !s,
1993
1993
  tabIndex: s ? 0 : void 0,
1994
1994
  className: Qn({ fill: o }),
@@ -1996,7 +1996,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
1996
1996
  children: s ? n : void 0
1997
1997
  });
1998
1998
  }
1999
- }, or = y("block min-h-24 w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted"), sr = ({ label: e, name: r, required: i, optionalLabel: a, invalid: o, disabled: s, defaultValue: c, placeholder: d, autocomplete: f, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
1999
+ }, sr = y("block min-h-24 w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted"), cr = ({ label: e, name: r, required: i, optionalLabel: a, invalid: o, disabled: s, defaultValue: c, placeholder: d, autocomplete: f, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
2000
2000
  let y = u(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, o ? S : void 0].filter(Boolean).join(" ") || void 0, w = p(null);
2001
2001
  return l(() => {
2002
2002
  let e = _?.subscribe(() => {
@@ -2015,7 +2015,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2015
2015
  ref: w,
2016
2016
  id: b,
2017
2017
  name: r,
2018
- className: or(),
2018
+ className: sr(),
2019
2019
  required: i,
2020
2020
  disabled: s,
2021
2021
  defaultValue: c,
@@ -2042,29 +2042,29 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2042
2042
  })
2043
2043
  ]
2044
2044
  });
2045
- }, cr = y([
2045
+ }, lr = y([
2046
2046
  "flex flex-col items-center",
2047
2047
  "min-h-[var(--cover-height)]",
2048
2048
  "px-[var(--gutter)] py-[var(--space-region)]"
2049
- ].join(" ")), lr = "my-auto max-w-full", ur = ({ children: e, foot: r, testId: i }) => {
2049
+ ].join(" ")), ur = "my-auto max-w-full", dr = ({ children: e, foot: r, testId: i }) => {
2050
2050
  let a = r != null && typeof r != "boolean";
2051
2051
  return /* @__PURE__ */ n("div", {
2052
- className: cr(),
2052
+ className: lr(),
2053
2053
  "data-testid": i,
2054
2054
  children: [/* @__PURE__ */ t("div", {
2055
- className: lr,
2055
+ className: ur,
2056
2056
  children: e
2057
2057
  }), a && /* @__PURE__ */ t("div", { children: r })]
2058
2058
  });
2059
- }, dr = class extends Error {
2059
+ }, fr = class extends Error {
2060
2060
  constructor(e) {
2061
2061
  super(`Dialog.${e} must be composed inside Dialog.Root`), this.name = "DialogCompositionError";
2062
2062
  }
2063
- }, fr = class extends Error {
2063
+ }, pr = class extends Error {
2064
2064
  constructor() {
2065
2065
  super("A Dialog takes exactly one accessible naming source: a visible Dialog.Title or ariaLabel on Dialog.Root, never both"), this.name = "DialogNamingError";
2066
2066
  }
2067
- }, pr = y([
2067
+ }, mr = y([
2068
2068
  "open:flex open:flex-col m-auto p-0 overflow-hidden",
2069
2069
  "bg-surface text-foreground",
2070
2070
  "rounded-[var(--radius-dialog)] shadow-[var(--elevation-floating)]",
@@ -2075,7 +2075,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2075
2075
  content: ["w-[32rem] max-w-[calc(100vw-2*var(--gutter))]", "max-h-[calc(100dvh-2*var(--space-region))]"].join(" ")
2076
2076
  } },
2077
2077
  defaultVariants: { extent: "screen" }
2078
- }), mr = y(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[&:has(+[data-dialog-member=description])]:pb-0"].join(" ")), hr = y(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[[data-dialog-member=title]+&]:mt-[var(--space-stack)] [[data-dialog-member=title]+&]:pt-0"].join(" ")), gr = y([
2078
+ }), hr = y(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[&:has(+[data-dialog-member=description])]:pb-0"].join(" ")), gr = y(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[[data-dialog-member=title]+&]:mt-[var(--space-stack)] [[data-dialog-member=title]+&]:pt-0"].join(" ")), _r = y([
2079
2079
  "grow shrink min-h-0 min-w-0",
2080
2080
  "px-[var(--space-region)] py-[var(--space-region)]",
2081
2081
  "[&:not(:first-child)]:border-t [&:not(:first-child)]:border-border"
@@ -2085,21 +2085,21 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2085
2085
  child: "flex flex-col"
2086
2086
  } },
2087
2087
  defaultVariants: { scrollOwner: "body" }
2088
- }), _r = y([
2088
+ }), vr = y([
2089
2089
  "flex flex-row flex-wrap items-center justify-end gap-[var(--space-stack)] shrink-0",
2090
2090
  "px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]",
2091
2091
  "[[data-dialog-member=content]+&]:border-t [[data-dialog-member=content]+&]:border-border"
2092
- ].join(" ")), vr = a(void 0), Q = (e) => {
2093
- let t = c(vr);
2094
- if (t === void 0) throw new dr(e);
2092
+ ].join(" ")), yr = a(void 0), Z = (e) => {
2093
+ let t = c(yr);
2094
+ if (t === void 0) throw new fr(e);
2095
2095
  return t;
2096
- }, yr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", br = (e, { presented: t, opener: n }) => {
2096
+ }, br = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", xr = (e, { presented: t, opener: n }) => {
2097
2097
  if (e === void 0 || e.open) return;
2098
2098
  let r = document.activeElement;
2099
- n.current = r instanceof HTMLElement && r !== document.body ? r : void 0, e.showModal(), t.current = !0, e.querySelector(yr)?.focus();
2100
- }, $ = (e, { presented: t }) => {
2099
+ n.current = r instanceof HTMLElement && r !== document.body ? r : void 0, e.showModal(), t.current = !0, e.querySelector(br)?.focus();
2100
+ }, Q = (e, { presented: t }) => {
2101
2101
  t.current = !1, e?.open && e.close();
2102
- }, xr = {
2102
+ }, Sr = {
2103
2103
  Root: ({ children: e, onDismiss$: n, showDialog$: r, extent: i, ariaLabel: a, testId: o }) => {
2104
2104
  let c = u(), d = p(void 0), f = p(!1), h = p(void 0), [g] = m(() => ({
2105
2105
  presented: f,
@@ -2119,23 +2119,23 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2119
2119
  isLabelled: a !== void 0,
2120
2120
  registerNamePart: y
2121
2121
  }, x = () => {
2122
- n.next(), r === void 0 ? $(d.current, g) : r.next(!1);
2122
+ n.next(), r === void 0 ? Q(d.current, g) : r.next(!1);
2123
2123
  };
2124
2124
  return l(() => {
2125
- if (r === void 0) return br(d.current, g), () => $(d.current, g);
2125
+ if (r === void 0) return xr(d.current, g), () => Q(d.current, g);
2126
2126
  let e = r.subscribe((e) => {
2127
- e ? br(d.current, g) : $(d.current, g);
2127
+ e ? xr(d.current, g) : Q(d.current, g);
2128
2128
  });
2129
2129
  return () => {
2130
- e.unsubscribe(), $(d.current, g);
2130
+ e.unsubscribe(), Q(d.current, g);
2131
2131
  };
2132
- }, [r, g]), /* @__PURE__ */ t(vr.Provider, {
2132
+ }, [r, g]), /* @__PURE__ */ t(yr.Provider, {
2133
2133
  value: b,
2134
2134
  children: /* @__PURE__ */ t("dialog", {
2135
2135
  ref: (e) => {
2136
2136
  d.current = e ?? void 0, e?.setAttribute("headingreset", "");
2137
2137
  },
2138
- className: pr({ extent: i }),
2138
+ className: mr({ extent: i }),
2139
2139
  "aria-label": a,
2140
2140
  "aria-labelledby": a === void 0 && _.title ? b.titleId : void 0,
2141
2141
  "aria-describedby": _.description ? b.descriptionId : void 0,
@@ -2151,7 +2151,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2151
2151
  let e = f.current;
2152
2152
  f.current = !1;
2153
2153
  let t = h.current;
2154
- h.current = void 0, t?.isConnected && (t.matches(yr) || t.hasAttribute("tabindex")) && t.focus(), e && r?.next(!1);
2154
+ h.current = void 0, t?.isConnected && (t.matches(br) || t.hasAttribute("tabindex")) && t.focus(), e && r?.next(!1);
2155
2155
  },
2156
2156
  "data-testid": o,
2157
2157
  children: e
@@ -2159,11 +2159,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2159
2159
  });
2160
2160
  },
2161
2161
  Title: ({ children: e, testId: n }) => {
2162
- let { titleId: r, isLabelled: i, registerNamePart: a } = Q("Title");
2163
- if (l(() => a("title"), [a]), i) throw new fr();
2162
+ let { titleId: r, isLabelled: i, registerNamePart: a } = Z("Title");
2163
+ if (l(() => a("title"), [a]), i) throw new pr();
2164
2164
  return /* @__PURE__ */ t("div", {
2165
2165
  "data-dialog-member": "title",
2166
- className: mr(),
2166
+ className: hr(),
2167
2167
  "data-testid": n,
2168
2168
  children: /* @__PURE__ */ t("h1", {
2169
2169
  id: r,
@@ -2173,10 +2173,10 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2173
2173
  });
2174
2174
  },
2175
2175
  Description: ({ children: e, testId: n }) => {
2176
- let { descriptionId: r, registerNamePart: i } = Q("Description");
2176
+ let { descriptionId: r, registerNamePart: i } = Z("Description");
2177
2177
  return l(() => i("description"), [i]), /* @__PURE__ */ t("div", {
2178
2178
  "data-dialog-member": "description",
2179
- className: hr(),
2179
+ className: gr(),
2180
2180
  "data-testid": n,
2181
2181
  children: /* @__PURE__ */ t("p", {
2182
2182
  id: r,
@@ -2185,33 +2185,33 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2185
2185
  })
2186
2186
  });
2187
2187
  },
2188
- Content: ({ children: e, scrollOwner: n, testId: r }) => (Q("Content"), /* @__PURE__ */ t("div", {
2188
+ Content: ({ children: e, scrollOwner: n, testId: r }) => (Z("Content"), /* @__PURE__ */ t("div", {
2189
2189
  "data-dialog-member": "content",
2190
- className: gr({ scrollOwner: n }),
2190
+ className: _r({ scrollOwner: n }),
2191
2191
  "data-testid": r,
2192
2192
  children: e
2193
2193
  })),
2194
- Actions: ({ children: e, testId: n }) => (Q("Actions"), /* @__PURE__ */ t("div", {
2194
+ Actions: ({ children: e, testId: n }) => (Z("Actions"), /* @__PURE__ */ t("div", {
2195
2195
  "data-dialog-member": "actions",
2196
- className: _r(),
2196
+ className: vr(),
2197
2197
  "data-testid": n,
2198
2198
  children: e
2199
2199
  }))
2200
- }, Sr = y("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
2200
+ }, Cr = y("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
2201
2201
  variants: { edge: {
2202
2202
  none: "",
2203
2203
  rule: "border-t border-solid border-rule"
2204
2204
  } },
2205
2205
  defaultVariants: { edge: "rule" }
2206
- }), Cr = ({ edge: e, children: n, testId: r }) => /* @__PURE__ */ t("footer", {
2207
- className: Sr({ edge: e }),
2206
+ }), wr = ({ edge: e, children: n, testId: r }) => /* @__PURE__ */ t("footer", {
2207
+ className: Cr({ edge: e }),
2208
2208
  "data-testid": r,
2209
2209
  children: n
2210
- }), wr = class extends Error {
2210
+ }), Tr = class extends Error {
2211
2211
  constructor(e) {
2212
2212
  super(`Form configuration is invalid: ${e}`), this.name = "FormConfigurationError";
2213
2213
  }
2214
- }, Tr = y("font-secondary text-small", {
2214
+ }, Er = y("font-secondary text-small", {
2215
2215
  variants: { state: {
2216
2216
  idle: "text-muted",
2217
2217
  sending: "text-muted",
@@ -2219,13 +2219,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2219
2219
  failed: "text-error"
2220
2220
  } },
2221
2221
  defaultVariants: { state: "idle" }
2222
- }), Er = {
2222
+ }), Dr = {
2223
2223
  sent: "status",
2224
2224
  failed: "alert"
2225
- }, Dr = ({ action: e, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
2225
+ }, Or = ({ action: e, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
2226
2226
  let l = s != null && typeof s != "boolean";
2227
- if (i === "sent" && !l) throw new wr("Form in the `sent` state must be given a `note` - it is the outcome message.");
2228
- let u = i !== "sent", d = Er[i];
2227
+ if (i === "sent" && !l) throw new Tr("Form in the `sent` state must be given a `note` - it is the outcome message.");
2228
+ let u = i !== "sent", d = Dr[i];
2229
2229
  return /* @__PURE__ */ n("form", {
2230
2230
  action: e,
2231
2231
  method: r,
@@ -2243,12 +2243,12 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2243
2243
  }),
2244
2244
  l && /* @__PURE__ */ t("p", {
2245
2245
  role: d,
2246
- className: Tr({ state: i }),
2246
+ className: Er({ state: i }),
2247
2247
  children: s
2248
2248
  })
2249
2249
  ]
2250
2250
  });
2251
- }, Or = y([
2251
+ }, kr = y([
2252
2252
  "flex items-baseline",
2253
2253
  "font-secondary text-label leading-label tracking-label text-muted",
2254
2254
  "py-[var(--space-region)] px-[var(--gutter)]",
@@ -2268,68 +2268,68 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2268
2268
  edge: "rule",
2269
2269
  mode: "navigation"
2270
2270
  }
2271
- }), kr = [
2271
+ }), Ar = [
2272
2272
  "inline-flex shrink-0 items-center",
2273
2273
  "min-h-[calc(var(--text-label)*var(--leading-label))]",
2274
2274
  "min-w-[var(--standing-min-width)]"
2275
- ].join(" "), Ar = "flex flex-wrap items-baseline gap-[var(--space-region)]", jr = "min-w-0 wrap-anywhere", Mr = "ms-auto", Nr = (e) => e != null && typeof e != "boolean" && e !== "", Pr = ({ edge: r, testId: i, standing: a, navName: o, children: s, status: c, action: l }) => {
2275
+ ].join(" "), jr = "flex flex-wrap items-baseline gap-[var(--space-region)]", Mr = "min-w-0 wrap-anywhere", Nr = "ms-auto", Pr = (e) => e != null && typeof e != "boolean" && e !== "", Fr = ({ edge: r, testId: i, standing: a, navName: o, children: s, status: c, action: l }) => {
2276
2276
  let u = c !== void 0 || l !== void 0;
2277
2277
  return /* @__PURE__ */ t("header", {
2278
- className: Or({
2278
+ className: kr({
2279
2279
  edge: r,
2280
2280
  mode: u ? "statusAction" : "navigation"
2281
2281
  }),
2282
2282
  "data-testid": i,
2283
- children: u ? /* @__PURE__ */ n(e, { children: [Nr(c) && /* @__PURE__ */ t("div", {
2284
- className: jr,
2285
- children: c
2286
- }), Nr(l) && /* @__PURE__ */ t("div", {
2283
+ children: u ? /* @__PURE__ */ n(e, { children: [Pr(c) && /* @__PURE__ */ t("div", {
2287
2284
  className: Mr,
2285
+ children: c
2286
+ }), Pr(l) && /* @__PURE__ */ t("div", {
2287
+ className: Nr,
2288
2288
  children: l
2289
2289
  })] }) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
2290
- className: kr,
2290
+ className: Ar,
2291
2291
  children: a
2292
2292
  }), /* @__PURE__ */ t("nav", {
2293
2293
  "aria-label": o,
2294
- className: Ar,
2294
+ className: jr,
2295
2295
  children: s
2296
2296
  })] })
2297
2297
  });
2298
- }, Fr = y("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
2298
+ }, Ir = y("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
2299
2299
  variants: { place: {
2300
2300
  start: "justify-start",
2301
2301
  center: "justify-center",
2302
2302
  between: "justify-between"
2303
2303
  } },
2304
2304
  defaultVariants: { place: "center" }
2305
- }), Ir = ({ place: e, children: n, testId: r }) => /* @__PURE__ */ t("div", {
2306
- className: Fr({ place: e }),
2305
+ }), Lr = ({ place: e, children: n, testId: r }) => /* @__PURE__ */ t("div", {
2306
+ className: Ir({ place: e }),
2307
2307
  "data-testid": r,
2308
2308
  children: n
2309
- }), Lr = y("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), Rr = y("font-heading text-title leading-title tracking-optical text-foreground"), zr = y("font-body text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), Br = y("font-body text-small text-muted max-w-[var(--measure)]"), Vr = ({ title: e, lede: r, intro: i, testId: a }) => /* @__PURE__ */ n("header", {
2310
- className: Lr(),
2309
+ }), Rr = y("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), zr = y("font-heading text-title leading-title tracking-optical text-foreground"), Br = y("font-body text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), Vr = y("font-body text-small text-muted max-w-[var(--measure)]"), Hr = ({ title: e, lede: r, intro: i, testId: a }) => /* @__PURE__ */ n("header", {
2310
+ className: Rr(),
2311
2311
  "data-testid": a,
2312
2312
  children: [
2313
2313
  /* @__PURE__ */ t("h1", {
2314
- className: Rr(),
2314
+ className: zr(),
2315
2315
  children: e
2316
2316
  }),
2317
2317
  r !== void 0 && /* @__PURE__ */ t("p", {
2318
- className: zr(),
2318
+ className: Br(),
2319
2319
  children: r
2320
2320
  }),
2321
2321
  i !== void 0 && /* @__PURE__ */ t("p", {
2322
- className: Br(),
2322
+ className: Vr(),
2323
2323
  children: i
2324
2324
  })
2325
2325
  ]
2326
- }), Hr = y("box-border flex h-full min-h-0 min-w-0 flex-col gap-[var(--space-stack)] border border-solid border-border bg-surface text-foreground p-[var(--space-box-inset)] [overflow-wrap:anywhere]"), Ur = y("min-w-0 shrink-0"), Wr = y("min-h-0 min-w-0 flex-[0_1_auto]", {
2326
+ }), Ur = a(null), Wr = y("box-border flex h-full min-h-0 min-w-0 flex-col gap-[var(--space-stack)] border border-solid border-border bg-surface text-foreground p-[var(--space-box-inset)] [overflow-wrap:anywhere]"), Gr = y("min-w-0 shrink-0"), Kr = y("min-h-0 min-w-0 flex-[0_1_auto]", {
2327
2327
  variants: { scrollOwner: {
2328
2328
  body: "[&>div]:flow-root [&>div]:w-fit [&>div]:min-w-full [&>div]:p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] overflow-auto overscroll-contain outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
2329
2329
  child: ""
2330
2330
  } },
2331
2331
  defaultVariants: { scrollOwner: "body" }
2332
- }), Gr = (e, t, n) => {
2332
+ }), qr = (e, t, n) => {
2333
2333
  let [r, i] = m(!0);
2334
2334
  return d(() => {
2335
2335
  let r = e.current;
@@ -2351,24 +2351,66 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2351
2351
  t,
2352
2352
  n
2353
2353
  ]), r;
2354
- }, Kr = {
2355
- Root: ({ children: e, name: n, testId: r }) => /* @__PURE__ */ t("div", {
2356
- className: Hr(),
2357
- role: n ? "group" : void 0,
2358
- "aria-label": n || void 0,
2359
- "data-testid": r,
2360
- children: e
2361
- }),
2354
+ }, $ = (e) => Number.parseFloat(e) || 0, Jr = (e) => {
2355
+ let t = getComputedStyle(e);
2356
+ return $(t.paddingTop) + $(t.paddingBottom) + $(t.borderTopWidth) + $(t.borderBottomWidth);
2357
+ }, Yr = (e) => {
2358
+ let t = 0;
2359
+ for (let n of [e, ...e.querySelectorAll("*")]) {
2360
+ let r = getComputedStyle(n);
2361
+ if (r.display === "none") continue;
2362
+ let i = $(r.lineHeight) || $(r.fontSize), a = $(getComputedStyle(e.firstElementChild ?? e).paddingTop), o = n.matches("tr, button, input, select, textarea, [role=\"button\"]") ? n.getBoundingClientRect().height : i;
2363
+ t = Math.max(t, o + 2 * a);
2364
+ }
2365
+ let n = e.querySelector("table"), r = n ? Array.from(n.children).filter((e) => e.matches("caption, thead")).reduce((e, t) => e + t.getBoundingClientRect().height, 0) : 0;
2366
+ return t + r + Jr(e);
2367
+ }, Xr = (e) => {
2368
+ let t = c(Ur), [n, r] = m(!1);
2369
+ return d(() => {
2370
+ let n = e.current, i = t;
2371
+ if (!n || !i) return;
2372
+ let a = () => {
2373
+ let e = Array.from(n.children), t = e.find((e) => e.hasAttribute("data-pane-body")), a = e.filter((e) => e !== t).reduce((e, t) => e + t.getBoundingClientRect().height, 0), o = Math.max(0, e.length - 1) * $(getComputedStyle(n).rowGap);
2374
+ r(i.getBoundingClientRect().height < a + o + Jr(n) + (t instanceof HTMLElement ? Yr(t) : 0));
2375
+ }, o = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(a), s = () => {
2376
+ o?.disconnect(), o?.observe(i), o?.observe(n);
2377
+ for (let e of n.querySelectorAll("*")) o?.observe(e);
2378
+ a();
2379
+ };
2380
+ s();
2381
+ let c = new MutationObserver(s);
2382
+ return c.observe(n, {
2383
+ childList: !0,
2384
+ subtree: !0,
2385
+ characterData: !0
2386
+ }), window.addEventListener("resize", a), () => {
2387
+ o?.disconnect(), c.disconnect(), window.removeEventListener("resize", a);
2388
+ };
2389
+ }, [t, e]), n;
2390
+ }, Zr = {
2391
+ Root: ({ children: e, name: n, testId: r }) => {
2392
+ let i = p(null), a = Xr(i);
2393
+ return /* @__PURE__ */ t("div", {
2394
+ ref: i,
2395
+ "data-screen-unusable": a || void 0,
2396
+ className: Wr(),
2397
+ role: n ? "group" : void 0,
2398
+ "aria-label": n || void 0,
2399
+ "data-testid": r,
2400
+ children: e
2401
+ });
2402
+ },
2362
2403
  Head: ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
2363
- className: Ur(),
2404
+ className: Gr(),
2364
2405
  "data-testid": n,
2365
2406
  children: e
2366
2407
  }),
2367
2408
  Body: ({ children: e, ariaLabel: n, scrollOwner: r, testId: i }) => {
2368
- let a = p(null), o = p(null), s = r !== "child", c = Gr(a, o, s) && s;
2409
+ let a = p(null), o = p(null), s = r !== "child", c = qr(a, o, s) && s;
2369
2410
  return /* @__PURE__ */ t("div", {
2411
+ "data-pane-body": "",
2370
2412
  ref: a,
2371
- className: Wr({ scrollOwner: r ?? "body" }),
2413
+ className: Kr({ scrollOwner: r ?? "body" }),
2372
2414
  role: c ? "group" : void 0,
2373
2415
  "aria-label": c ? n : void 0,
2374
2416
  tabIndex: c ? 0 : void 0,
@@ -2380,33 +2422,50 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2380
2422
  });
2381
2423
  },
2382
2424
  Foot: ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
2383
- className: Ur(),
2425
+ className: Gr(),
2384
2426
  "data-testid": n,
2385
2427
  children: e
2386
2428
  })
2387
- }, qr = y("max-h-full max-w-full min-h-0 min-w-0 outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
2429
+ }, Qr = y("box-border grid h-full min-h-0 min-w-0 grid-rows-[minmax(0,1fr)] px-[var(--gutter)] py-[var(--space-region)] [&:has(>header)]:grid-rows-[auto_minmax(0,1fr)] [&:has(>header)]:gap-[var(--space-region)]"), $r = y("min-w-0"), ei = y("h-full min-h-0 min-w-0 [&>div]:h-full [&:has([data-screen-unusable])>div]:h-auto"), ti = ({ heading: e, children: r, testId: i }) => {
2430
+ let [a, o] = m(null);
2431
+ return /* @__PURE__ */ n("main", {
2432
+ className: Qr(),
2433
+ "data-testid": i,
2434
+ children: [e != null && e !== !1 && /* @__PURE__ */ t("header", {
2435
+ className: $r(),
2436
+ children: e
2437
+ }), /* @__PURE__ */ t("div", {
2438
+ ref: o,
2439
+ className: ei(),
2440
+ children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Ur.Provider, {
2441
+ value: a,
2442
+ children: r
2443
+ }) })
2444
+ })]
2445
+ });
2446
+ }, ni = y("max-h-full max-w-full min-h-0 min-w-0 outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
2388
2447
  variants: { axis: {
2389
2448
  both: "overflow-auto",
2390
2449
  horizontal: "overflow-x-auto overflow-y-hidden",
2391
2450
  vertical: "overflow-y-auto overflow-x-hidden"
2392
2451
  } },
2393
2452
  defaultVariants: { axis: "both" }
2394
- }), Jr = y("p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]", {
2453
+ }), ri = y("p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]", {
2395
2454
  variants: { axis: {
2396
2455
  both: "w-fit min-w-full",
2397
2456
  horizontal: "w-fit min-w-full",
2398
2457
  vertical: "w-full"
2399
2458
  } },
2400
2459
  defaultVariants: { axis: "both" }
2401
- }), Yr = (e, t) => {
2460
+ }), ii = (e, t) => {
2402
2461
  let n = e.scrollWidth > e.clientWidth, r = e.scrollHeight > e.clientHeight;
2403
2462
  return t !== "vertical" && n || t !== "horizontal" && r;
2404
- }, Xr = (e, t, n) => {
2463
+ }, ai = (e, t, n) => {
2405
2464
  let [r, i] = m(!0);
2406
2465
  return d(() => {
2407
2466
  let r = e.current;
2408
2467
  if (r === null) return;
2409
- let a = () => i(Yr(r, n) || r === document.activeElement);
2468
+ let a = () => i(ii(r, n) || r === document.activeElement);
2410
2469
  a();
2411
2470
  let o = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(a);
2412
2471
  return o?.observe(r), t.current !== null && o?.observe(t.current), window.addEventListener("resize", a), r.addEventListener("blur", a), () => {
@@ -2417,22 +2476,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2417
2476
  t,
2418
2477
  n
2419
2478
  ]), r;
2420
- }, Zr = ({ axis: e, ariaLabel: n, children: r, testId: i }) => {
2421
- let a = p(null), o = p(null), s = Xr(a, o, e ?? "both");
2479
+ }, oi = ({ axis: e, ariaLabel: n, children: r, testId: i }) => {
2480
+ let a = p(null), o = p(null), s = ai(a, o, e ?? "both");
2422
2481
  return /* @__PURE__ */ t("div", {
2423
2482
  ref: a,
2424
- className: qr({ axis: e }),
2483
+ className: ni({ axis: e }),
2425
2484
  "data-testid": i,
2426
2485
  role: s ? "group" : void 0,
2427
2486
  "aria-label": s ? n : void 0,
2428
2487
  tabIndex: s ? 0 : void 0,
2429
2488
  children: /* @__PURE__ */ t("div", {
2430
2489
  ref: o,
2431
- className: Jr({ axis: e }),
2490
+ className: ri({ axis: e }),
2432
2491
  children: r
2433
2492
  })
2434
2493
  });
2435
- }, Qr = y([
2494
+ }, si = y([
2436
2495
  "relative",
2437
2496
  "py-[var(--space-band)]",
2438
2497
  "[[data-section]+&]:border-t [[data-section]+&]:border-solid [[data-section]+&]:border-rule"
@@ -2442,19 +2501,19 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2442
2501
  full: ""
2443
2502
  } },
2444
2503
  defaultVariants: { bleed: "inset" }
2445
- }), $r = ({ bleed: e, name: n, children: r, testId: i }) => /* @__PURE__ */ t("section", {
2504
+ }), ci = ({ bleed: e, name: n, children: r, testId: i }) => /* @__PURE__ */ t("section", {
2446
2505
  "data-section": "",
2447
- className: Qr({ bleed: e }),
2506
+ className: si({ bleed: e }),
2448
2507
  "aria-label": n,
2449
2508
  "data-testid": i,
2450
2509
  children: r
2451
- }), ei = y("h-dvh min-w-0 overflow-clip grid grid-rows-[auto_minmax(0,1fr)]"), ti = y("min-h-0 min-w-0 overflow-auto overscroll-contain p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] outline-focus-ring focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-offset-[calc(-1*var(--focus-ring-width))]", {
2510
+ }), li = y("h-dvh min-w-0 overflow-clip grid grid-rows-[auto_minmax(0,1fr)]"), ui = y("min-h-0 min-w-0 overflow-auto overscroll-contain p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] outline-focus-ring focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-offset-[calc(-1*var(--focus-ring-width))]", {
2452
2511
  variants: { mode: {
2453
2512
  console: "[&>div]:h-full",
2454
2513
  page: "[&>div]:min-h-full"
2455
2514
  } },
2456
2515
  defaultVariants: { mode: "console" }
2457
- }), ni = (e) => {
2516
+ }), di = (e) => {
2458
2517
  let [t, n] = m(!0);
2459
2518
  return d(() => {
2460
2519
  let t = e.current;
@@ -2476,21 +2535,21 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2476
2535
  i?.disconnect(), o.disconnect(), window.removeEventListener("resize", r), t.removeEventListener("blur", r);
2477
2536
  };
2478
2537
  }, [e]), t;
2479
- }, ri = ({ bar: e, children: r, ariaLabel: i, mode: a, testId: o }) => {
2480
- let s = p(null), c = ni(s);
2538
+ }, fi = ({ bar: e, children: r, ariaLabel: i, mode: a, testId: o }) => {
2539
+ let s = p(null), c = di(s);
2481
2540
  return /* @__PURE__ */ n("div", {
2482
- className: ei(),
2541
+ className: li(),
2483
2542
  "data-testid": o,
2484
2543
  children: [/* @__PURE__ */ t("div", { children: e }), /* @__PURE__ */ t("div", {
2485
2544
  ref: s,
2486
- className: ti({ mode: a }),
2545
+ className: ui({ mode: a }),
2487
2546
  role: c ? "group" : void 0,
2488
2547
  "aria-label": c ? i : void 0,
2489
2548
  tabIndex: c ? 0 : void 0,
2490
2549
  children: /* @__PURE__ */ t("div", { children: r })
2491
2550
  })]
2492
2551
  });
2493
- }, ii = y([
2552
+ }, pi = y([
2494
2553
  "grid gap-[var(--space-region)] lg:grid-cols-[12rem_minmax(0,1fr)]",
2495
2554
  "[&>div:first-child]:border-solid [&>div:first-child]:border-border [&>div:first-child]:border-b [&>div:first-child]:pb-[var(--space-stack)]",
2496
2555
  "lg:[&>div:first-child]:border-b-0 lg:[&>div:first-child]:border-r lg:[&>div:first-child]:pb-0 lg:[&>div:first-child]:pr-[var(--space-stack)]",
@@ -2503,7 +2562,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2503
2562
  true: "min-h-full lg:h-full lg:min-h-0 lg:grid-rows-[minmax(0,1fr)] lg:[&>div]:min-h-0 lg:[&>div]:h-full lg:[&>div:first-child>nav]:max-h-full"
2504
2563
  } },
2505
2564
  defaultVariants: { fill: !1 }
2506
- }), ai = (e) => {
2565
+ }), mi = (e) => {
2507
2566
  if (!e) return;
2508
2567
  let t = [];
2509
2568
  for (let n = e.parentElement; n && n !== e.ownerDocument.documentElement; n = n.parentElement) t.push(n);
@@ -2520,7 +2579,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2520
2579
  return window.addEventListener("resize", n), () => {
2521
2580
  r?.disconnect(), window.removeEventListener("resize", n), e.style.removeProperty("--sidebar-scrollport-height");
2522
2581
  };
2523
- }, oi = y([
2582
+ }, hi = y([
2524
2583
  "w-full text-left font-secondary text-label tracking-label wrap-anywhere",
2525
2584
  "underline-offset-[var(--underline-offset)]",
2526
2585
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
@@ -2531,11 +2590,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2531
2590
  inert: "text-muted cursor-not-allowed"
2532
2591
  } },
2533
2592
  defaultVariants: { state: "usable" }
2534
- }), si = a(void 0), ci = ({ entryKey: e, children: n, inert: r, testId: i }) => {
2535
- let a = c(si), o = a !== void 0 && a.active === e;
2593
+ }), gi = a(void 0), _i = ({ entryKey: e, children: n, inert: r, testId: i }) => {
2594
+ let a = c(gi), o = a !== void 0 && a.active === e;
2536
2595
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("button", {
2537
2596
  type: "button",
2538
- className: oi({ state: r ? "inert" : o ? "active" : "usable" }),
2597
+ className: hi({ state: r ? "inert" : o ? "active" : "usable" }),
2539
2598
  disabled: r,
2540
2599
  "aria-current": o ? "true" : void 0,
2541
2600
  "data-testid": i,
@@ -2544,31 +2603,31 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2544
2603
  },
2545
2604
  children: n
2546
2605
  }) });
2547
- }, li = ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
2606
+ }, vi = ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
2548
2607
  "data-testid": n,
2549
2608
  children: e
2550
- }), ui = {
2609
+ }), yi = {
2551
2610
  Root: ({ active: e, label: i, onSelect$: a, children: s, testId: c, fill: l }) => {
2552
2611
  let u = r.toArray(s).filter(o);
2553
2612
  return /* @__PURE__ */ n("div", {
2554
- className: ii({ fill: l }),
2613
+ className: pi({ fill: l }),
2555
2614
  "data-testid": c,
2556
2615
  children: [/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("nav", {
2557
- ref: l ? void 0 : ai,
2616
+ ref: l ? void 0 : mi,
2558
2617
  "aria-label": i,
2559
- children: /* @__PURE__ */ t(si, {
2618
+ children: /* @__PURE__ */ t(gi, {
2560
2619
  value: {
2561
2620
  active: e,
2562
2621
  onSelect$: a
2563
2622
  },
2564
- children: /* @__PURE__ */ t("ul", { children: u.filter((e) => e.type === ci) })
2623
+ children: /* @__PURE__ */ t("ul", { children: u.filter((e) => e.type === _i) })
2565
2624
  })
2566
- }) }), u.filter((e) => e.type === li)]
2625
+ }) }), u.filter((e) => e.type === vi)]
2567
2626
  });
2568
2627
  },
2569
- Item: ci,
2570
- Content: li
2571
- }, di = {
2628
+ Item: _i,
2629
+ Content: vi
2630
+ }, bi = {
2572
2631
  surface: "#ffffff",
2573
2632
  selectedSurface: "#f8fafc",
2574
2633
  selectedError: "#cd2d7d",
@@ -2597,7 +2656,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2597
2656
  errorHover: "#be185d",
2598
2657
  errorForeground: "#ffffff",
2599
2658
  info: "#0e7490"
2600
- }, fi = {
2659
+ }, xi = {
2601
2660
  surface: "#0f172a",
2602
2661
  selectedSurface: "#151e30",
2603
2662
  selectedError: "#f48fb1",
@@ -2628,4 +2687,4 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
2628
2687
  info: "#22d3ee"
2629
2688
  };
2630
2689
  //#endregion
2631
- export { be as Box, Se as Brandmark, Gt as Button, we as Callout, De as Checklist, $t as Choices, Kt as ChoicesCompositionError, x as Cluster, Ae as Collection, j as ColumnLayout, S as ColumnLayoutCompositionError, C as ColumnLayoutConfigurationError, ur as Cover, Ve as DefinitionList, je as DefinitionListConfigurationError, xr as Dialog, dr as DialogCompositionError, fr as DialogNamingError, xt as Eyebrow, ge as FieldRow, F as FieldRowCompositionError, I as FieldRowConfigurationError, Ue as Figure, Cr as Footer, Dr as Form, wr as FormConfigurationError, Ct as H1, Tt as H2, Dt as H3, kt as H4, jt as H5, Nt as H6, Pr as Header, Ir as Hero, Je as Icon, tn as Input, rn as Link, Qe as Meter, U as MeterConfigurationError, wn as MultiSelect, on as MultiSelectCompositionError, Ft as Note, En as NumberInput, Lt as P, Vr as PageHead, Kr as Pane, Ut as Prose, rt as Rail, at as Rule, Zr as ScrollContainer, $r as Section, On as Select, ri as Shell, ui as Sidebar, jn as Slider, Y as SliderConfigurationError, ve as Stack, Gn as Stepper, Mn as StepperCompositionError, qn as Switch, yt as Table, ot as TableConfigurationError, ar as Tabs, Jn as TabsCompositionError, sr as TextArea, fi as dark, di as light };
2690
+ export { be as Box, Se as Brandmark, Kt as Button, we as Callout, De as Checklist, en as Choices, qt as ChoicesCompositionError, x as Cluster, Ae as Collection, A as ColumnLayout, S as ColumnLayoutCompositionError, C as ColumnLayoutConfigurationError, dr as Cover, Ve as DefinitionList, je as DefinitionListConfigurationError, Sr as Dialog, fr as DialogCompositionError, pr as DialogNamingError, St as Eyebrow, ge as FieldRow, P as FieldRowCompositionError, F as FieldRowConfigurationError, Ue as Figure, wr as Footer, Or as Form, Tr as FormConfigurationError, wt as H1, Et as H2, Ot as H3, At as H4, Mt as H5, Pt as H6, Fr as Header, Lr as Hero, Je as Icon, nn as Input, an as Link, Qe as Meter, U as MeterConfigurationError, Tn as MultiSelect, sn as MultiSelectCompositionError, It as Note, Dn as NumberInput, Rt as P, Hr as PageHead, Zr as Pane, Wt as Prose, rt as Rail, at as Rule, ti as Screen, oi as ScrollContainer, ci as Section, kn as Select, fi as Shell, yi as Sidebar, Mn as Slider, J as SliderConfigurationError, ve as Stack, Gn as Stepper, Y as StepperCompositionError, qn as Switch, bt as Table, ot as TableConfigurationError, or as Tabs, Jn as TabsCompositionError, cr as TextArea, xi as dark, bi as light };