@juwel-development/design-system 3.2.0 → 3.4.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.
@@ -1,35 +1,35 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { useEffect as n, useId as r, useRef as i } from "react";
2
+ import { Children as n, createContext as r, isValidElement as i, useContext as a, useEffect as o, useId as s, useRef as c } from "react";
3
3
  import './index.css';//#region node_modules/clsx/dist/clsx.mjs
4
- function a(e) {
4
+ function l(e) {
5
5
  var t, n, r = "";
6
6
  if (typeof e == "string" || typeof e == "number") r += e;
7
7
  else if (typeof e == "object") {
8
8
  if (Array.isArray(e)) {
9
9
  var i = e.length;
10
- for (t = 0; t < i; t++) e[t] && (n = a(e[t])) && (r && (r += " "), r += n);
10
+ for (t = 0; t < i; t++) e[t] && (n = l(e[t])) && (r && (r += " "), r += n);
11
11
  } else for (n in e) e[n] && (r && (r += " "), r += n);
12
12
  }
13
13
  return r;
14
14
  }
15
- function o() {
16
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = a(e)) && (r && (r += " "), r += t);
15
+ function u() {
16
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = l(e)) && (r && (r += " "), r += t);
17
17
  return r;
18
18
  }
19
19
  //#endregion
20
20
  //#region node_modules/class-variance-authority/dist/index.mjs
21
- var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e, t) => (n) => {
22
- if (t?.variants == null) return c(e, n?.class, n?.className);
21
+ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e, t) => (n) => {
22
+ if (t?.variants == null) return f(e, n?.class, n?.className);
23
23
  let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
24
24
  let t = n?.[e], a = i?.[e];
25
25
  if (t === null) return null;
26
- let o = s(t) || s(a);
26
+ let o = d(t) || d(a);
27
27
  return r[e][o];
28
28
  }), o = n && Object.entries(n).reduce((e, t) => {
29
29
  let [n, r] = t;
30
30
  return r === void 0 || (e[n] = r), e;
31
31
  }, {});
32
- return c(e, a, t?.compoundVariants?.reduce((e, t) => {
32
+ return f(e, a, t?.compoundVariants?.reduce((e, t) => {
33
33
  let { class: n, className: r, ...a } = t;
34
34
  return Object.entries(a).every((e) => {
35
35
  let [t, n] = e;
@@ -46,7 +46,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
46
46
  r
47
47
  ] : e;
48
48
  }, []), n?.class, n?.className);
49
- }, u = l("flex flex-wrap items-baseline gap-y-[var(--space-stack)]", {
49
+ }, m = p("flex flex-wrap items-baseline gap-y-[var(--space-stack)]", {
50
50
  variants: {
51
51
  gap: {
52
52
  stack: "gap-x-[var(--space-stack)]",
@@ -61,14 +61,14 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
61
61
  gap: "region",
62
62
  justify: "start"
63
63
  }
64
- }), d = ({ gap: t, justify: n, children: r, testId: i }) => /* @__PURE__ */ e("div", {
65
- className: u({
64
+ }), h = ({ gap: t, justify: n, children: r, testId: i }) => /* @__PURE__ */ e("div", {
65
+ className: m({
66
66
  gap: t,
67
67
  justify: n
68
68
  }),
69
69
  "data-testid": i,
70
70
  children: r
71
- }), f = l("flex", {
71
+ }), g = p("flex", {
72
72
  variants: {
73
73
  gap: {
74
74
  stack: "gap-[var(--space-stack)]",
@@ -77,7 +77,11 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
77
77
  measure: {
78
78
  true: "max-w-[var(--measure)]",
79
79
  false: "",
80
- action: "w-full max-w-[var(--measure-action)]"
80
+ action: "w-[var(--measure-action)] max-w-full mx-auto"
81
+ },
82
+ align: {
83
+ start: "text-start",
84
+ center: "text-center"
81
85
  },
82
86
  direction: {
83
87
  column: "flex-col",
@@ -89,69 +93,82 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
89
93
  measure: !1,
90
94
  direction: "column"
91
95
  }
92
- }), p = ({ gap: t, measure: n, direction: r, children: i, testId: a }) => /* @__PURE__ */ e("div", {
93
- className: f({
96
+ }), _ = ({ gap: t, measure: n, direction: r, align: i, children: a, testId: o }) => /* @__PURE__ */ e("div", {
97
+ className: g({
94
98
  gap: t,
95
99
  measure: n,
96
- direction: r
100
+ direction: r,
101
+ align: i
97
102
  }),
98
- "data-testid": a,
99
- children: i
100
- }), m = l("inline-flex", { variants: { cut: {
103
+ "data-testid": o,
104
+ children: a
105
+ }), v = p("inline-flex", { variants: { cut: {
101
106
  full: "",
102
107
  compact: ""
103
- } } }), h = ({ name: t, cut: n, children: r, testId: i }) => t === "" ? /* @__PURE__ */ e("span", {
108
+ } } }), y = ({ name: t, cut: n, children: r, testId: i }) => t === "" ? /* @__PURE__ */ e("span", {
104
109
  "aria-hidden": "true",
105
110
  "data-cut": n,
106
- className: m({ cut: n }),
111
+ className: v({ cut: n }),
107
112
  "data-testid": i,
108
113
  children: r
109
114
  }) : /* @__PURE__ */ e("span", {
110
115
  role: "img",
111
116
  "aria-label": t,
112
117
  "data-cut": n,
113
- className: m({ cut: n }),
118
+ className: v({ cut: n }),
114
119
  "data-testid": i,
115
120
  children: r
116
- }), g = l("m-0 list-none p-0"), _ = l([
121
+ }), b = p("m-0 list-none p-0"), x = p([
117
122
  "flex items-start gap-3 font-primary text-body leading-body text-foreground",
118
123
  "before:mt-[0.35em] before:size-[calc(var(--tick-length)*0.7)] before:shrink-0 before:rotate-45 before:[border-top:var(--tick-thickness)_solid_var(--color-rule)] before:[border-right:var(--tick-thickness)_solid_var(--color-rule)] before:content-['']",
119
124
  "[&:not(:first-child)]:mt-[var(--space-stack)] [&:not(:first-child)]:border-border [&:not(:first-child)]:border-t [&:not(:first-child)]:border-solid [&:not(:first-child)]:pt-[var(--space-stack)]"
120
- ].join(" ")), v = {
125
+ ].join(" ")), S = {
121
126
  Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("ul", {
122
- className: g(),
127
+ className: b(),
123
128
  role: "list",
124
129
  "data-testid": n,
125
130
  children: t
126
131
  }),
127
132
  Item: ({ children: t }) => /* @__PURE__ */ e("li", {
128
- className: _(),
133
+ className: x(),
134
+ children: t
135
+ })
136
+ }, C = p("m-0 list-none p-0"), w = p("py-[var(--space-collection-item)] [&+li]:border-t [&+li]:border-solid [&+li]:border-border"), T = {
137
+ Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("ul", {
138
+ className: C(),
139
+ role: "list",
140
+ "data-testid": n,
141
+ children: t
142
+ }),
143
+ Item: ({ children: t, testId: n }) => /* @__PURE__ */ e("li", {
144
+ className: w(),
145
+ "data-testid": n,
129
146
  children: t
130
147
  })
131
- }, y = l([
148
+ }, ee = p([
132
149
  "grid gap-[var(--space-stack)] py-6",
133
150
  "border-b border-solid border-border first:border-t",
134
151
  "lg:grid-cols-[16rem_minmax(0,1fr)] lg:items-baseline lg:gap-x-12",
135
152
  "lg:[&>dt]:col-start-1 lg:[&>dd]:col-start-2 lg:[&>dd]:row-start-1"
136
- ].join(" ")), b = l("font-primary text-subtitle leading-subtitle text-foreground"), x = l("font-primary text-body leading-body text-muted max-w-[var(--measure)]"), S = {
153
+ ].join(" ")), E = p("font-primary text-subtitle leading-subtitle text-foreground"), te = p("font-primary text-body leading-body text-muted max-w-[var(--measure)]"), ne = {
137
154
  Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("dl", {
138
155
  "data-testid": n,
139
156
  children: t
140
157
  }),
141
158
  Item: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
142
- className: y(),
159
+ className: ee(),
143
160
  "data-testid": n,
144
161
  children: t
145
162
  }),
146
163
  Term: ({ children: t }) => /* @__PURE__ */ e("dt", {
147
- className: b(),
164
+ className: E(),
148
165
  children: t
149
166
  }),
150
167
  Description: ({ children: t }) => /* @__PURE__ */ e("dd", {
151
- className: x(),
168
+ className: te(),
152
169
  children: t
153
170
  })
154
- }, C = l("block w-full object-cover bg-backing", {
171
+ }, re = p("block w-full object-cover bg-backing", {
155
172
  variants: {
156
173
  ratio: {
157
174
  portrait: "aspect-portrait",
@@ -168,13 +185,13 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
168
185
  }
169
186
  },
170
187
  defaultVariants: { focus: "center" }
171
- }), w = ({ src: n, alt: r, width: i, height: a, ratio: o, focus: s, responsive: c, caption: l, overlay: u, priority: d, testId: f }) => {
188
+ }), ie = ({ src: n, alt: r, width: i, height: a, ratio: o, focus: s, responsive: c, caption: l, overlay: u, priority: d, testId: f }) => {
172
189
  let p = u != null && typeof u != "boolean", m = /* @__PURE__ */ e("img", {
173
190
  src: n,
174
191
  alt: r,
175
192
  width: i,
176
193
  height: a,
177
- className: C({
194
+ className: re({
178
195
  ratio: o,
179
196
  focus: s
180
197
  }),
@@ -197,21 +214,51 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
197
214
  children: l
198
215
  })]
199
216
  });
200
- }, T = l(["grid gap-[var(--space-stack)]", "lg:grid-cols-[10rem_minmax(0,1fr)] lg:items-start lg:gap-x-12"].join(" ")), E = l("lg:sticky lg:top-6"), ee = l("block border-b border-solid border-border pb-1 font-secondary text-label tracking-label text-muted"), te = l("block pt-1 font-secondary text-label tracking-label text-foreground"), D = {
217
+ }, D = class extends Error {
218
+ constructor(e) {
219
+ super(`Meter configuration is invalid: ${e}`), this.name = "MeterConfigurationError";
220
+ }
221
+ }, ae = p("w-full h-[var(--meter-track-thickness)] bg-meter-track border border-solid border-rule"), oe = p("h-full w-[calc(var(--meter-level)*100%)]", {
222
+ variants: { treatment: {
223
+ neutral: "bg-meter-fill",
224
+ depleting: "bg-[color-mix(in_oklab,var(--color-meter-fill)_calc(var(--meter-level)*100%),var(--color-error))]"
225
+ } },
226
+ defaultVariants: { treatment: "neutral" }
227
+ }), se = ({ value: t, min: n = 0, max: r, treatment: i, label: a, valueText: o, testId: s }) => {
228
+ if (!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r)) throw new D(`value, min and max must be finite numbers (got value=${t}, min=${n}, max=${r})`);
229
+ if (n >= r) throw new D(`min must be less than max (got min=${n}, max=${r})`);
230
+ if (t < n || t > r) throw new D(`value must lie within [min, max] (got value=${t}, min=${n}, max=${r})`);
231
+ let c = { "--meter-level": (t - n) / (r - n) };
232
+ return /* @__PURE__ */ e("div", {
233
+ role: "meter",
234
+ "aria-valuenow": t,
235
+ "aria-valuemin": n,
236
+ "aria-valuemax": r,
237
+ "aria-label": a,
238
+ "aria-valuetext": o,
239
+ "data-testid": s,
240
+ className: ae(),
241
+ style: c,
242
+ children: /* @__PURE__ */ e("div", {
243
+ "aria-hidden": "true",
244
+ className: oe({ treatment: i })
245
+ })
246
+ });
247
+ }, ce = p(["grid gap-[var(--space-stack)]", "lg:grid-cols-[10rem_minmax(0,1fr)] lg:items-start lg:gap-x-12"].join(" ")), le = p("lg:sticky lg:top-6"), ue = p("block border-b border-solid border-border pb-1 font-secondary text-label tracking-label text-muted"), O = p("block pt-1 font-secondary text-label tracking-label text-foreground"), k = {
201
248
  Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
202
- className: T(),
249
+ className: ce(),
203
250
  "data-testid": n,
204
251
  children: t
205
252
  }),
206
253
  Index: ({ number: n, children: r, testId: i }) => /* @__PURE__ */ t("div", {
207
- className: E(),
254
+ className: le(),
208
255
  "data-testid": i,
209
256
  "aria-hidden": "true",
210
257
  children: [n !== void 0 && /* @__PURE__ */ e("span", {
211
- className: ee(),
258
+ className: ue(),
212
259
  children: n
213
260
  }), /* @__PURE__ */ e("span", {
214
- className: te(),
261
+ className: O(),
215
262
  children: r
216
263
  })]
217
264
  }),
@@ -219,7 +266,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
219
266
  "data-testid": n,
220
267
  children: t
221
268
  })
222
- }, O = l([
269
+ }, A = p([
223
270
  "[&:not([data-notes])]:overflow-x-auto",
224
271
  "[&>table]:w-full [&>table]:border-collapse [&>table]:text-left",
225
272
  "[&_caption]:pb-3 [&_caption]:text-left [&_caption]:font-secondary [&_caption]:text-label [&_caption]:tracking-label [&_caption]:text-muted",
@@ -228,7 +275,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
228
275
  "[&[data-notes=content]>table]:max-md:block",
229
276
  "[&[data-notes=content]_thead]:max-md:block [&[data-notes=content]_tbody]:max-md:block [&[data-notes=content]_tfoot]:max-md:block",
230
277
  "[&[data-notes=content]_tr]:max-md:block [&[data-notes=content]_td]:max-md:block [&[data-notes=content]_th]:max-md:block"
231
- ].join(" ")), k = l("border-t border-solid border-border"), A = l("px-4 py-2 text-small first:pl-0 last:pr-0", {
278
+ ].join(" ")), j = p("border-t border-solid border-border"), M = p("px-4 py-2 text-small first:pl-0 last:pr-0", {
232
279
  variants: {
233
280
  variant: {
234
281
  value: "font-primary text-foreground tabular-nums",
@@ -244,24 +291,24 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
244
291
  variant: "value",
245
292
  align: "left"
246
293
  }
247
- }), j = l("px-4 py-2 font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
294
+ }), N = p("px-4 py-2 font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
248
295
  variants: { align: {
249
296
  left: "text-left",
250
297
  right: "text-right",
251
298
  center: "text-center"
252
299
  } },
253
300
  defaultVariants: { align: "left" }
254
- }), M = {
301
+ }), P = {
255
302
  Root: ({ caption: n, notes: r, children: i, testId: a }) => {
256
303
  let o = /* @__PURE__ */ t("table", { children: [/* @__PURE__ */ e("caption", { children: n }), i] });
257
304
  return r === void 0 ? /* @__PURE__ */ e("section", {
258
- className: O(),
305
+ className: A(),
259
306
  "data-testid": a,
260
307
  "aria-label": n,
261
308
  tabIndex: 0,
262
309
  children: o
263
310
  }) : /* @__PURE__ */ e("div", {
264
- className: O(),
311
+ className: A(),
265
312
  "data-notes": r,
266
313
  "data-testid": a,
267
314
  children: o
@@ -271,162 +318,162 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
271
318
  Body: ({ children: t }) => /* @__PURE__ */ e("tbody", { children: t }),
272
319
  Footer: ({ children: t }) => /* @__PURE__ */ e("tfoot", { children: t }),
273
320
  Row: ({ children: t, testId: n }) => /* @__PURE__ */ e("tr", {
274
- className: k(),
321
+ className: j(),
275
322
  "data-testid": n,
276
323
  children: t
277
324
  }),
278
325
  HeaderCell: ({ scope: t, align: n, children: r }) => /* @__PURE__ */ e("th", {
279
326
  scope: t,
280
- className: j({ align: n }),
327
+ className: N({ align: n }),
281
328
  children: r
282
329
  }),
283
330
  Cell: ({ variant: t, align: n, children: r }) => /* @__PURE__ */ e("td", {
284
- className: A({
331
+ className: M({
285
332
  variant: t,
286
333
  align: n
287
334
  }),
288
335
  "data-variant": t ?? "value",
289
336
  children: r
290
337
  })
291
- }, N = l("font-secondary text-label tracking-label font-medium", {
338
+ }, F = p("font-secondary text-label tracking-label font-medium", {
292
339
  variants: { color: {
293
340
  foreground: "text-foreground",
294
341
  muted: "text-muted"
295
342
  } },
296
343
  defaultVariants: { color: "muted" }
297
- }), P = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
298
- className: N({ color: n }),
344
+ }), I = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
345
+ className: F({ color: n }),
299
346
  "data-testid": r,
300
347
  children: t
301
- }), F = l("font-primary text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
348
+ }), L = p("font-primary text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
302
349
  variants: { color: {
303
350
  foreground: "text-foreground",
304
351
  muted: "text-muted"
305
352
  } },
306
353
  defaultVariants: { color: "foreground" }
307
- }), I = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h1", {
308
- className: F({ color: n }),
354
+ }), R = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h1", {
355
+ className: L({ color: n }),
309
356
  "data-testid": r,
310
357
  children: t
311
- }), L = l("font-primary text-title leading-title tracking-optical", {
358
+ }), z = p("font-primary text-title leading-title tracking-optical", {
312
359
  variants: { color: {
313
360
  foreground: "text-foreground",
314
361
  muted: "text-muted"
315
362
  } },
316
363
  defaultVariants: { color: "foreground" }
317
- }), R = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h2", {
318
- className: L({ color: n }),
364
+ }), B = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h2", {
365
+ className: z({ color: n }),
319
366
  "data-testid": r,
320
367
  children: t
321
- }), z = l("font-primary text-subtitle leading-subtitle", {
368
+ }), V = p("font-primary text-subtitle leading-subtitle", {
322
369
  variants: { color: {
323
370
  foreground: "text-foreground",
324
371
  muted: "text-muted"
325
372
  } },
326
373
  defaultVariants: { color: "foreground" }
327
- }), B = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h3", {
328
- className: z({ color: n }),
374
+ }), H = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h3", {
375
+ className: V({ color: n }),
329
376
  "data-testid": r,
330
377
  children: t
331
- }), V = l("font-primary text-body leading-body font-bold", {
378
+ }), U = p("font-primary text-body leading-body font-bold", {
332
379
  variants: { color: {
333
380
  foreground: "text-foreground",
334
381
  muted: "text-muted"
335
382
  } },
336
383
  defaultVariants: { color: "foreground" }
337
- }), H = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h4", {
338
- className: V({ color: n }),
384
+ }), de = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h4", {
385
+ className: U({ color: n }),
339
386
  "data-testid": r,
340
387
  children: t
341
- }), U = l("font-primary text-body leading-body font-semibold", {
388
+ }), fe = p("font-primary text-body leading-body font-semibold", {
342
389
  variants: { color: {
343
390
  foreground: "text-foreground",
344
391
  muted: "text-muted"
345
392
  } },
346
393
  defaultVariants: { color: "foreground" }
347
- }), W = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h5", {
348
- className: U({ color: n }),
394
+ }), pe = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h5", {
395
+ className: fe({ color: n }),
349
396
  "data-testid": r,
350
397
  children: t
351
- }), G = l("font-primary text-body leading-body font-medium", {
398
+ }), me = p("font-primary text-body leading-body font-medium", {
352
399
  variants: { color: {
353
400
  foreground: "text-foreground",
354
401
  muted: "text-muted"
355
402
  } },
356
403
  defaultVariants: { color: "foreground" }
357
- }), K = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h6", {
358
- className: G({ color: n }),
404
+ }), he = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h6", {
405
+ className: me({ color: n }),
359
406
  "data-testid": r,
360
407
  children: t
361
- }), q = l("font-secondary text-small", {
408
+ }), ge = p("font-secondary text-small", {
362
409
  variants: { color: {
363
410
  foreground: "text-foreground",
364
411
  muted: "text-muted"
365
412
  } },
366
413
  defaultVariants: { color: "foreground" }
367
- }), J = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
368
- className: q({ color: n }),
414
+ }), _e = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
415
+ className: ge({ color: n }),
369
416
  "data-testid": r,
370
417
  children: t
371
- }), Y = l("font-primary text-body leading-body", {
418
+ }), ve = p("font-primary text-body leading-body", {
372
419
  variants: { color: {
373
420
  foreground: "text-foreground",
374
421
  muted: "text-muted"
375
422
  } },
376
423
  defaultVariants: { color: "foreground" }
377
- }), X = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
378
- className: Y({ color: n }),
424
+ }), ye = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
425
+ className: ve({ color: n }),
379
426
  "data-testid": r,
380
427
  children: t
381
- }), Z = l("flex max-w-[var(--measure)] flex-col gap-[var(--space-stack)]"), Q = l("font-primary text-lede leading-lede text-foreground"), ne = l("font-primary text-body leading-body", {
428
+ }), be = p("flex max-w-[var(--measure)] flex-col gap-[var(--space-stack)]"), xe = p("font-primary text-lede leading-lede text-foreground"), Se = p("font-primary text-body leading-body", {
382
429
  variants: { color: {
383
430
  foreground: "text-foreground",
384
431
  muted: "text-muted"
385
432
  } },
386
433
  defaultVariants: { color: "foreground" }
387
- }), re = l("font-primary text-small text-muted"), ie = {
434
+ }), Ce = p("font-primary text-small text-muted"), we = {
388
435
  Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
389
- className: Z(),
436
+ className: be(),
390
437
  "data-testid": n,
391
438
  children: t
392
439
  }),
393
440
  Lede: ({ children: t }) => /* @__PURE__ */ e("p", {
394
- className: Q(),
441
+ className: xe(),
395
442
  children: t
396
443
  }),
397
444
  Body: ({ color: t, children: n }) => /* @__PURE__ */ e("p", {
398
- className: ne({ color: t }),
445
+ className: Se({ color: t }),
399
446
  children: n
400
447
  }),
401
448
  Tail: ({ children: t }) => /* @__PURE__ */ e("p", {
402
- className: re(),
449
+ className: Ce(),
403
450
  children: t
404
451
  })
405
- }, ae = l("font-primary text-body transition-colors duration-[var(--motion-duration-color)] rounded-[var(--radius-control)] py-2 sm:py-2 disabled:bg-disabled disabled:hover:bg-disabled-hover cursor-pointer disabled:cursor-not-allowed select-none text-nowrap inline-flex flex-row items-center justify-center gap-2 outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
452
+ }, Te = p("font-primary text-body transition-colors duration-[var(--motion-duration-color)] rounded-[var(--radius-control)] py-2 sm:py-2 disabled:bg-disabled disabled:hover:bg-disabled-hover cursor-pointer disabled:cursor-not-allowed select-none text-nowrap inline-flex flex-row items-center justify-center gap-2 outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
406
453
  variants: { variant: {
407
454
  primary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-primary text-primary-foreground hover:bg-primary-hover",
408
455
  secondary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-secondary text-secondary-foreground hover:bg-secondary-hover",
409
456
  ghost: "px-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)]"
410
457
  } },
411
458
  defaultVariants: { variant: "primary" }
412
- }), oe = ({ children: t, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ e("button", {
459
+ }), Ee = ({ children: t, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ e("button", {
413
460
  type: s,
414
461
  "data-testid": r,
415
- className: ae({ variant: i }),
462
+ className: Te({ variant: i }),
416
463
  onClick: () => a?.next(),
417
464
  disabled: n,
418
465
  "aria-label": o,
419
466
  children: t
420
- }), se = l("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-primary 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", {
467
+ }), De = p("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-primary 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", {
421
468
  variants: { variant: {
422
469
  text: "",
423
470
  email: "",
424
471
  url: ""
425
472
  } },
426
473
  defaultVariants: { variant: "text" }
427
- }), ce = ({ label: a, name: o, variant: s, required: c, optionalLabel: l, invalid: u, disabled: d, defaultValue: f, placeholder: p, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
428
- let b = r(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, u ? C : void 0].filter(Boolean).join(" ") || void 0, T = i(null);
429
- return n(() => {
474
+ }), Oe = ({ label: n, name: r, variant: i, required: a, optionalLabel: l, invalid: u, disabled: d, defaultValue: f, placeholder: p, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
475
+ let b = s(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, u ? C : void 0].filter(Boolean).join(" ") || void 0, T = c(null);
476
+ return o(() => {
430
477
  let e = v?.subscribe(() => {
431
478
  T.current && (T.current.value = "");
432
479
  });
@@ -437,15 +484,15 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
437
484
  /* @__PURE__ */ e("label", {
438
485
  htmlFor: x,
439
486
  className: "font-secondary font-medium text-body text-foreground",
440
- children: a
487
+ children: n
441
488
  }),
442
489
  /* @__PURE__ */ e("input", {
443
490
  ref: T,
444
491
  id: x,
445
- name: o,
446
- type: s ?? "text",
447
- className: se({ variant: s }),
448
- required: c,
492
+ name: r,
493
+ type: i ?? "text",
494
+ className: De({ variant: i }),
495
+ required: a,
449
496
  disabled: d,
450
497
  defaultValue: f,
451
498
  placeholder: p,
@@ -455,7 +502,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
455
502
  "data-testid": y,
456
503
  onInput: (e) => _?.next(e.currentTarget.value)
457
504
  }),
458
- !c && l && /* @__PURE__ */ e("span", {
505
+ !a && l && /* @__PURE__ */ e("span", {
459
506
  className: "font-secondary text-muted text-small",
460
507
  children: l
461
508
  }),
@@ -471,7 +518,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
471
518
  })
472
519
  ]
473
520
  });
474
- }, le = l("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
521
+ }, ke = p("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
475
522
  variants: { treatment: {
476
523
  prose: "text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:decoration-[length:var(--underline-thickness-hover)]",
477
524
  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",
@@ -479,17 +526,149 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
479
526
  graphic: "text-inherit no-underline"
480
527
  } },
481
528
  defaultVariants: { treatment: "prose" }
482
- }), ue = ({ href: t, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ e("a", {
529
+ }), Ae = ({ href: t, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ e("a", {
483
530
  href: t,
484
- className: le({ treatment: r }),
531
+ className: ke({ treatment: r }),
485
532
  target: i ? "_blank" : void 0,
486
533
  rel: i ? "noopener noreferrer" : void 0,
487
534
  "aria-current": a ? "page" : void 0,
488
535
  "data-testid": o,
489
536
  children: n
490
- }), de = l("block min-h-24 w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-primary 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"), fe = ({ label: a, name: o, required: s, optionalLabel: c, invalid: l, disabled: u, defaultValue: d, placeholder: f, autocomplete: p, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
491
- let y = r(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, l ? S : void 0].filter(Boolean).join(" ") || void 0, w = i(null);
492
- return n(() => {
537
+ }), W = class extends Error {
538
+ constructor(e) {
539
+ super(`Slider configuration: ${e}`), this.name = "SliderConfigurationError";
540
+ }
541
+ }, je = p([
542
+ "block h-[var(--slider-thumb-size)] w-full cursor-pointer appearance-none bg-transparent",
543
+ "disabled:cursor-not-allowed",
544
+ "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
545
+ "[&::-webkit-slider-runnable-track]:h-[var(--slider-track-thickness)] [&::-webkit-slider-runnable-track]:rounded-[var(--radius-control)] [&::-webkit-slider-runnable-track]:bg-control-border",
546
+ "[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:size-[var(--slider-thumb-size)] [&::-webkit-slider-thumb]:rounded-[var(--radius-control)] [&::-webkit-slider-thumb]:bg-foreground",
547
+ "[&::-webkit-slider-thumb]:mt-[calc((var(--slider-track-thickness)-var(--slider-thumb-size))/2)]",
548
+ "[&:disabled::-webkit-slider-runnable-track]:bg-disabled [&:disabled::-webkit-slider-thumb]:bg-disabled",
549
+ "[&::-moz-range-track]:h-[var(--slider-track-thickness)] [&::-moz-range-track]:rounded-[var(--radius-control)] [&::-moz-range-track]:bg-control-border",
550
+ "[&::-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",
551
+ "[&:disabled::-moz-range-track]:bg-disabled [&:disabled::-moz-range-thumb]:bg-disabled"
552
+ ].join(" ")), Me = (e) => {
553
+ for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new W(`\`${t}\` must be a finite number, got ${n}`);
554
+ if (e.min >= e.max) throw new W(`\`min\` (${e.min}) must be below \`max\` (${e.max})`);
555
+ if (e.step <= 0) throw new W(`\`step\` (${e.step}) must be positive`);
556
+ if (e.value < e.min || e.value > e.max) throw new W(`\`value\` (${e.value}) must lie within [${e.min}, ${e.max}]`);
557
+ }, Ne = ({ min: t, max: n, step: r = 1, value: i, onInput$: a, label: o, valueText: s, disabled: c, testId: l }) => (Me({
558
+ min: t,
559
+ max: n,
560
+ step: r,
561
+ value: i
562
+ }), /* @__PURE__ */ e("input", {
563
+ type: "range",
564
+ className: je(),
565
+ min: t,
566
+ max: n,
567
+ step: r,
568
+ value: i,
569
+ disabled: c,
570
+ "aria-label": o,
571
+ "aria-valuetext": s,
572
+ "data-testid": l,
573
+ onChange: (e) => a.next(e.currentTarget.valueAsNumber)
574
+ })), Pe = class extends Error {
575
+ constructor(e) {
576
+ super(`Tabs.${e} must be composed inside Tabs.Root`), this.name = "TabsCompositionError";
577
+ }
578
+ }, Fe = p([
579
+ "flex flex-row overflow-x-auto",
580
+ "p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
581
+ "m-[calc(-1*(var(--focus-ring-width)+var(--focus-ring-offset)))]",
582
+ "scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]"
583
+ ].join(" ")), Ie = p([
584
+ "font-secondary text-label tracking-label",
585
+ "text-muted hover:text-foreground aria-selected:text-foreground",
586
+ "border-b-[length:var(--tab-marker-thickness)] border-solid border-transparent aria-selected:border-foreground",
587
+ "shrink-0 cursor-pointer select-none text-nowrap px-[var(--tab-inset-inline)] py-[var(--tab-inset-block)]",
588
+ "transition-colors duration-[var(--motion-duration-color)]",
589
+ "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
590
+ ].join(" ")), Le = p("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"), G = r(void 0), K = (e) => {
591
+ let t = a(G);
592
+ if (t === void 0) throw new Pe(e);
593
+ return t;
594
+ }, q = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), Re = (e) => {
595
+ e.currentTarget.scrollIntoView({
596
+ block: "nearest",
597
+ inline: "nearest"
598
+ });
599
+ }, J = (e, t) => `${e}tab-${q(t)}`, Y = (e, t) => `${e}panel-${q(t)}`, ze = (e, t) => {
600
+ let n = e.closest("[role=\"tablist\"]");
601
+ if (n === null) return;
602
+ let r = Array.from(n.querySelectorAll(":scope > [role=\"tab\"]"));
603
+ return r[(r.indexOf(e) + t + r.length) % r.length];
604
+ }, Be = {
605
+ Root: ({ active: t, onSelect$: n, label: r, children: i, testId: a }) => {
606
+ let o = s();
607
+ return /* @__PURE__ */ e(G.Provider, {
608
+ value: {
609
+ active: t,
610
+ onSelect$: n,
611
+ label: r,
612
+ baseId: o
613
+ },
614
+ children: /* @__PURE__ */ e("div", {
615
+ "data-testid": a,
616
+ children: i
617
+ })
618
+ });
619
+ },
620
+ List: ({ children: t, testId: n }) => {
621
+ let { label: r } = K("List");
622
+ return /* @__PURE__ */ e("div", {
623
+ role: "tablist",
624
+ "aria-label": r,
625
+ className: Fe(),
626
+ "data-testid": n,
627
+ children: t
628
+ });
629
+ },
630
+ Tab: ({ value: t, children: n, testId: r }) => {
631
+ let { active: i, onSelect$: a, baseId: o } = K("Tab"), s = i === t;
632
+ return /* @__PURE__ */ e("button", {
633
+ type: "button",
634
+ role: "tab",
635
+ id: J(o, t),
636
+ "aria-selected": s,
637
+ "aria-controls": Y(o, t),
638
+ tabIndex: s ? 0 : -1,
639
+ "data-value": t,
640
+ "data-testid": r,
641
+ className: Ie(),
642
+ onClick: () => a.next(t),
643
+ onKeyDown: (e) => {
644
+ if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
645
+ e.preventDefault();
646
+ let t = ze(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
647
+ if (t === void 0) return;
648
+ t.focus();
649
+ let n = t.dataset.value;
650
+ n !== void 0 && a.next(n);
651
+ },
652
+ onFocus: Re,
653
+ children: n
654
+ });
655
+ },
656
+ Panel: ({ value: t, children: n, testId: r }) => {
657
+ let { active: i, baseId: a } = K("Panel"), o = i === t;
658
+ return /* @__PURE__ */ e("div", {
659
+ role: "tabpanel",
660
+ id: Y(a, t),
661
+ "aria-labelledby": J(a, t),
662
+ hidden: !o,
663
+ tabIndex: o ? 0 : void 0,
664
+ className: Le(),
665
+ "data-testid": r,
666
+ children: o ? n : void 0
667
+ });
668
+ }
669
+ }, Ve = p("block min-h-24 w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-primary 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"), He = ({ label: n, name: r, required: i, optionalLabel: a, invalid: l, disabled: u, defaultValue: d, placeholder: f, autocomplete: p, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
670
+ let y = s(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, l ? S : void 0].filter(Boolean).join(" ") || void 0, w = c(null);
671
+ return o(() => {
493
672
  let e = _?.subscribe(() => {
494
673
  w.current && (w.current.value = "");
495
674
  });
@@ -500,14 +679,14 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
500
679
  /* @__PURE__ */ e("label", {
501
680
  htmlFor: b,
502
681
  className: "font-secondary font-medium text-body text-foreground",
503
- children: a
682
+ children: n
504
683
  }),
505
684
  /* @__PURE__ */ e("textarea", {
506
685
  ref: w,
507
686
  id: b,
508
- name: o,
509
- className: de(),
510
- required: s,
687
+ name: r,
688
+ className: Ve(),
689
+ required: i,
511
690
  disabled: u,
512
691
  defaultValue: d,
513
692
  placeholder: f,
@@ -517,9 +696,9 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
517
696
  "data-testid": v,
518
697
  onInput: (e) => g?.next(e.currentTarget.value)
519
698
  }),
520
- !s && c && /* @__PURE__ */ e("span", {
699
+ !i && a && /* @__PURE__ */ e("span", {
521
700
  className: "font-secondary text-muted text-small",
522
- children: c
701
+ children: a
523
702
  }),
524
703
  m && /* @__PURE__ */ e("p", {
525
704
  id: x,
@@ -533,31 +712,31 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
533
712
  })
534
713
  ]
535
714
  });
536
- }, pe = l([
715
+ }, Ue = p([
537
716
  "flex flex-col items-center",
538
717
  "min-h-[var(--cover-height)]",
539
718
  "px-[var(--gutter)] py-[var(--space-region)]"
540
- ].join(" ")), me = "my-auto", he = ({ children: n, foot: r, testId: i }) => {
719
+ ].join(" ")), We = "my-auto max-w-full", Ge = ({ children: n, foot: r, testId: i }) => {
541
720
  let a = r != null && typeof r != "boolean";
542
721
  return /* @__PURE__ */ t("div", {
543
- className: pe(),
722
+ className: Ue(),
544
723
  "data-testid": i,
545
724
  children: [/* @__PURE__ */ e("div", {
546
- className: me,
725
+ className: We,
547
726
  children: n
548
727
  }), a && /* @__PURE__ */ e("div", { children: r })]
549
728
  });
550
- }, ge = l("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
729
+ }, Ke = p("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
551
730
  variants: { edge: {
552
731
  none: "",
553
732
  rule: "border-t border-solid border-rule"
554
733
  } },
555
734
  defaultVariants: { edge: "rule" }
556
- }), _e = ({ edge: t, children: n, testId: r }) => /* @__PURE__ */ e("footer", {
557
- className: ge({ edge: t }),
735
+ }), qe = ({ edge: t, children: n, testId: r }) => /* @__PURE__ */ e("footer", {
736
+ className: Ke({ edge: t }),
558
737
  "data-testid": r,
559
738
  children: n
560
- }), ve = l("font-secondary text-small", {
739
+ }), Je = p("font-secondary text-small", {
561
740
  variants: { state: {
562
741
  idle: "text-muted",
563
742
  sending: "text-muted",
@@ -565,13 +744,13 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
565
744
  failed: "text-error"
566
745
  } },
567
746
  defaultVariants: { state: "idle" }
568
- }), ye = {
747
+ }), Ye = {
569
748
  sent: "status",
570
749
  failed: "alert"
571
- }, be = ({ action: n, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
750
+ }, Xe = ({ action: n, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
572
751
  let l = s != null && typeof s != "boolean";
573
752
  if (i === "sent" && !l) throw Error("Form in the `sent` state must be given a `note` - it is the outcome message.");
574
- let u = i !== "sent", d = ye[i];
753
+ let u = i !== "sent", d = Ye[i];
575
754
  return /* @__PURE__ */ t("form", {
576
755
  action: n,
577
756
  method: r,
@@ -589,12 +768,12 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
589
768
  }),
590
769
  l && /* @__PURE__ */ e("p", {
591
770
  role: d,
592
- className: ve({ state: i }),
771
+ className: Je({ state: i }),
593
772
  children: s
594
773
  })
595
774
  ]
596
775
  });
597
- }, xe = l([
776
+ }, Ze = p([
598
777
  "flex items-baseline justify-between",
599
778
  "font-secondary text-label leading-label tracking-label text-muted",
600
779
  "py-[var(--space-region)] px-[var(--gutter)]",
@@ -605,50 +784,50 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
605
784
  rule: "border-b border-solid border-rule"
606
785
  } },
607
786
  defaultVariants: { edge: "rule" }
608
- }), Se = [
787
+ }), Qe = [
609
788
  "inline-flex shrink-0 items-center",
610
789
  "min-h-[calc(var(--text-label)*var(--leading-label))]",
611
790
  "min-w-[var(--standing-min-width)]"
612
- ].join(" "), Ce = ({ edge: n, standing: r, navName: i, children: a, testId: o }) => /* @__PURE__ */ t("header", {
613
- className: xe({ edge: n }),
791
+ ].join(" "), $e = ({ edge: n, standing: r, navName: i, children: a, testId: o }) => /* @__PURE__ */ t("header", {
792
+ className: Ze({ edge: n }),
614
793
  "data-testid": o,
615
794
  children: [/* @__PURE__ */ e("div", {
616
- className: Se,
795
+ className: Qe,
617
796
  children: r
618
797
  }), /* @__PURE__ */ e("nav", {
619
798
  "aria-label": i,
620
799
  className: "flex flex-wrap items-baseline gap-[var(--space-region)]",
621
800
  children: a
622
801
  })]
623
- }), we = l("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
802
+ }), et = p("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
624
803
  variants: { place: {
625
804
  start: "justify-start",
626
805
  center: "justify-center",
627
806
  between: "justify-between"
628
807
  } },
629
808
  defaultVariants: { place: "center" }
630
- }), Te = ({ place: t, children: n, testId: r }) => /* @__PURE__ */ e("div", {
631
- className: we({ place: t }),
809
+ }), tt = ({ place: t, children: n, testId: r }) => /* @__PURE__ */ e("div", {
810
+ className: et({ place: t }),
632
811
  "data-testid": r,
633
812
  children: n
634
- }), Ee = l("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), De = l("font-primary text-title leading-title tracking-optical text-foreground"), $ = l("font-primary text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), Oe = l("font-primary text-small text-muted max-w-[var(--measure)]"), ke = ({ title: n, lede: r, intro: i, testId: a }) => /* @__PURE__ */ t("header", {
635
- className: Ee(),
813
+ }), nt = p("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), rt = p("font-primary text-title leading-title tracking-optical text-foreground"), it = p("font-primary text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), X = p("font-primary text-small text-muted max-w-[var(--measure)]"), at = ({ title: n, lede: r, intro: i, testId: a }) => /* @__PURE__ */ t("header", {
814
+ className: nt(),
636
815
  "data-testid": a,
637
816
  children: [
638
817
  /* @__PURE__ */ e("h1", {
639
- className: De(),
818
+ className: rt(),
640
819
  children: n
641
820
  }),
642
821
  r !== void 0 && /* @__PURE__ */ e("p", {
643
- className: $(),
822
+ className: it(),
644
823
  children: r
645
824
  }),
646
825
  i !== void 0 && /* @__PURE__ */ e("p", {
647
- className: Oe(),
826
+ className: X(),
648
827
  children: i
649
828
  })
650
829
  ]
651
- }), Ae = l([
830
+ }), ot = p([
652
831
  "relative",
653
832
  "py-[var(--space-band)]",
654
833
  "[[data-section]+&]:border-t [[data-section]+&]:border-solid [[data-section]+&]:border-rule"
@@ -658,13 +837,82 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
658
837
  full: ""
659
838
  } },
660
839
  defaultVariants: { bleed: "inset" }
661
- }), je = ({ bleed: t, name: n, children: r, testId: i }) => /* @__PURE__ */ e("section", {
840
+ }), st = ({ bleed: t, name: n, children: r, testId: i }) => /* @__PURE__ */ e("section", {
662
841
  "data-section": "",
663
- className: Ae({ bleed: t }),
842
+ className: ot({ bleed: t }),
664
843
  "aria-label": n,
665
844
  "data-testid": i,
666
845
  children: r
667
- }), Me = {
846
+ }), ct = p([
847
+ "grid gap-[var(--space-region)] lg:grid-cols-[12rem_minmax(0,1fr)]",
848
+ "[&>div:first-child]:border-solid [&>div:first-child]:border-border [&>div:first-child]:border-b [&>div:first-child]:pb-[var(--space-stack)]",
849
+ "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)]",
850
+ "lg:[&>div:first-child>nav]:sticky lg:[&>div:first-child>nav]:top-0 lg:[&>div:first-child>nav]:max-h-[min(100dvh,var(--sidebar-scrollport-height,100dvh))] lg:[&>div:first-child>nav]:overflow-y-auto",
851
+ "[&>div:first-child>nav]:p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] lg:[&>div:first-child>nav]:scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
852
+ "[&>div:first-child>nav>ul]:flex [&>div:first-child>nav>ul]:flex-col [&>div:first-child>nav>ul]:gap-[var(--space-stack)]"
853
+ ].join(" ")), lt = (e) => {
854
+ if (!e) return;
855
+ let t = [];
856
+ for (let n = e.parentElement; n && n !== e.ownerDocument.documentElement; n = n.parentElement) t.push(n);
857
+ let n = () => {
858
+ let n = t.find((e) => /^(auto|scroll|hidden|overlay)$/.test(getComputedStyle(e).overflowY));
859
+ n ? e.style.setProperty("--sidebar-scrollport-height", `${n.clientHeight}px`) : e.style.removeProperty("--sidebar-scrollport-height");
860
+ };
861
+ n();
862
+ let r = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(n);
863
+ for (let e of t) r?.observe(e);
864
+ return window.addEventListener("resize", n), () => {
865
+ r?.disconnect(), window.removeEventListener("resize", n), e.style.removeProperty("--sidebar-scrollport-height");
866
+ };
867
+ }, ut = p([
868
+ "w-full text-left font-secondary text-label tracking-label",
869
+ "underline-offset-[var(--underline-offset)]",
870
+ "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
871
+ ].join(" "), {
872
+ variants: { state: {
873
+ active: "text-foreground underline decoration-[length:var(--underline-thickness)] cursor-pointer",
874
+ usable: "text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] cursor-pointer",
875
+ inert: "text-muted cursor-not-allowed"
876
+ } },
877
+ defaultVariants: { state: "usable" }
878
+ }), Z = r(void 0), Q = ({ entryKey: t, children: n, inert: r, testId: i }) => {
879
+ let o = a(Z), s = o !== void 0 && o.active === t;
880
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", {
881
+ type: "button",
882
+ className: ut({ state: r ? "inert" : s ? "active" : "usable" }),
883
+ disabled: r,
884
+ "aria-current": s ? "true" : void 0,
885
+ "data-testid": i,
886
+ onClick: () => {
887
+ s || o?.onSelect$.next(t);
888
+ },
889
+ children: n
890
+ }) });
891
+ }, $ = ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
892
+ "data-testid": n,
893
+ children: t
894
+ }), dt = {
895
+ Root: ({ active: r, label: a, onSelect$: o, children: s, testId: c }) => {
896
+ let l = n.toArray(s).filter(i);
897
+ return /* @__PURE__ */ t("div", {
898
+ className: ct(),
899
+ "data-testid": c,
900
+ children: [/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("nav", {
901
+ ref: lt,
902
+ "aria-label": a,
903
+ children: /* @__PURE__ */ e(Z, {
904
+ value: {
905
+ active: r,
906
+ onSelect$: o
907
+ },
908
+ children: /* @__PURE__ */ e("ul", { children: l.filter((e) => e.type === Q) })
909
+ })
910
+ }) }), l.filter((e) => e.type === $)]
911
+ });
912
+ },
913
+ Item: Q,
914
+ Content: $
915
+ }, ft = {
668
916
  surface: "#ffffff",
669
917
  foreground: "#0f172a",
670
918
  muted: "#64748b",
@@ -672,6 +920,8 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
672
920
  controlBorder: "#64748b",
673
921
  rule: "#808fa3",
674
922
  backing: "#f1f5f9",
923
+ meterFill: "#0f172a",
924
+ meterTrack: "#e2e8f0",
675
925
  primary: "#7c3aed",
676
926
  primaryHover: "#6d28d9",
677
927
  primaryForeground: "#f8fafc",
@@ -686,7 +936,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
686
936
  warning: "#f59e0b",
687
937
  error: "#d63384",
688
938
  info: "#06b6d4"
689
- }, Ne = {
939
+ }, pt = {
690
940
  surface: "#0f172a",
691
941
  foreground: "#f8fafc",
692
942
  muted: "#94a3b8",
@@ -694,6 +944,8 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
694
944
  controlBorder: "#94a3b8",
695
945
  rule: "#5b6a80",
696
946
  backing: "#1e293b",
947
+ meterFill: "#f8fafc",
948
+ meterTrack: "#334155",
697
949
  primary: "#8b5cf6",
698
950
  primaryHover: "#a78bfa",
699
951
  primaryForeground: "#020617",
@@ -710,4 +962,4 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
710
962
  info: "#22d3ee"
711
963
  };
712
964
  //#endregion
713
- export { h as Brandmark, oe as Button, v as Checklist, d as Cluster, he as Cover, S as DefinitionList, P as Eyebrow, w as Figure, _e as Footer, be as Form, I as H1, R as H2, B as H3, H as H4, W as H5, K as H6, Ce as Header, Te as Hero, ce as Input, ue as Link, J as Note, X as P, ke as PageHead, ie as Prose, D as Rail, je as Section, p as Stack, M as Table, fe as TextArea, Ne as dark, Me as light };
965
+ export { y as Brandmark, Ee as Button, S as Checklist, h as Cluster, T as Collection, Ge as Cover, ne as DefinitionList, I as Eyebrow, ie as Figure, qe as Footer, Xe as Form, R as H1, B as H2, H as H3, de as H4, pe as H5, he as H6, $e as Header, tt as Hero, Oe as Input, Ae as Link, se as Meter, _e as Note, ye as P, at as PageHead, we as Prose, k as Rail, st as Section, dt as Sidebar, Ne as Slider, _ as Stack, P as Table, Be as Tabs, He as TextArea, pt as dark, ft as light };