@juwel-development/design-system 3.6.0 → 3.7.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.
@@ -275,7 +275,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
275
275
  "[&[data-notes=content]>table]:max-md:block",
276
276
  "[&[data-notes=content]_thead]:max-md:block [&[data-notes=content]_tbody]:max-md:block [&[data-notes=content]_tfoot]:max-md:block",
277
277
  "[&[data-notes=content]_tr]:max-md:block [&[data-notes=content]_td]:max-md:block [&[data-notes=content]_th]:max-md:block"
278
- ].join(" ")), O = h("border-t border-solid border-border"), k = h("px-4 py-2 text-small first:pl-0 last:pr-0", {
278
+ ].join(" ")), ge = h("border-t border-solid border-border"), O = h("px-4 py-2 text-small first:pl-0 last:pr-0", {
279
279
  variants: {
280
280
  variant: {
281
281
  value: "font-primary text-foreground tabular-nums",
@@ -291,14 +291,14 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
291
291
  variant: "value",
292
292
  align: "left"
293
293
  }
294
- }), A = h("px-4 py-2 font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
294
+ }), k = h("px-4 py-2 font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
295
295
  variants: { align: {
296
296
  left: "text-left",
297
297
  right: "text-right",
298
298
  center: "text-center"
299
299
  } },
300
300
  defaultVariants: { align: "left" }
301
- }), j = {
301
+ }), A = {
302
302
  Root: ({ caption: n, notes: r, children: i, testId: a }) => {
303
303
  let o = /* @__PURE__ */ t("table", { children: [/* @__PURE__ */ e("caption", { children: n }), i] });
304
304
  return r === void 0 ? /* @__PURE__ */ e("section", {
@@ -318,24 +318,24 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
318
318
  Body: ({ children: t }) => /* @__PURE__ */ e("tbody", { children: t }),
319
319
  Footer: ({ children: t }) => /* @__PURE__ */ e("tfoot", { children: t }),
320
320
  Row: ({ children: t, testId: n }) => /* @__PURE__ */ e("tr", {
321
- className: O(),
321
+ className: ge(),
322
322
  "data-testid": n,
323
323
  children: t
324
324
  }),
325
325
  HeaderCell: ({ scope: t, align: n, children: r }) => /* @__PURE__ */ e("th", {
326
326
  scope: t,
327
- className: A({ align: n }),
327
+ className: k({ align: n }),
328
328
  children: r
329
329
  }),
330
330
  Cell: ({ variant: t, align: n, children: r }) => /* @__PURE__ */ e("td", {
331
- className: k({
331
+ className: O({
332
332
  variant: t,
333
333
  align: n
334
334
  }),
335
335
  "data-variant": t ?? "value",
336
336
  children: r
337
337
  })
338
- }, M = h("font-secondary text-label tracking-label font-medium", {
338
+ }, j = h("font-secondary text-label tracking-label font-medium", {
339
339
  variants: { color: {
340
340
  foreground: "text-foreground",
341
341
  muted: "text-muted",
@@ -345,11 +345,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
345
345
  info: "text-info"
346
346
  } },
347
347
  defaultVariants: { color: "muted" }
348
- }), N = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
349
- className: M({ color: n }),
348
+ }), M = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
349
+ className: j({ color: n }),
350
350
  "data-testid": r,
351
351
  children: t
352
- }), P = h("font-primary text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
352
+ }), N = h("font-primary text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
353
353
  variants: { color: {
354
354
  foreground: "text-foreground",
355
355
  muted: "text-muted",
@@ -359,11 +359,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
359
359
  info: "text-info"
360
360
  } },
361
361
  defaultVariants: { color: "foreground" }
362
- }), F = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h1", {
363
- className: P({ color: n }),
362
+ }), P = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h1", {
363
+ className: N({ color: n }),
364
364
  "data-testid": r,
365
365
  children: t
366
- }), I = h("font-primary text-title leading-title tracking-optical", {
366
+ }), F = h("font-primary text-title leading-title tracking-optical", {
367
367
  variants: { color: {
368
368
  foreground: "text-foreground",
369
369
  muted: "text-muted",
@@ -373,11 +373,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
373
373
  info: "text-info"
374
374
  } },
375
375
  defaultVariants: { color: "foreground" }
376
- }), L = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h2", {
377
- className: I({ color: n }),
376
+ }), I = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h2", {
377
+ className: F({ color: n }),
378
378
  "data-testid": r,
379
379
  children: t
380
- }), R = h("font-primary text-subtitle leading-subtitle", {
380
+ }), L = h("font-primary text-subtitle leading-subtitle", {
381
381
  variants: { color: {
382
382
  foreground: "text-foreground",
383
383
  muted: "text-muted",
@@ -387,11 +387,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
387
387
  info: "text-info"
388
388
  } },
389
389
  defaultVariants: { color: "foreground" }
390
- }), ge = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h3", {
391
- className: R({ color: n }),
390
+ }), _e = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h3", {
391
+ className: L({ color: n }),
392
392
  "data-testid": r,
393
393
  children: t
394
- }), _e = h("font-primary text-body leading-body font-bold", {
394
+ }), ve = h("font-primary text-body leading-body font-bold", {
395
395
  variants: { color: {
396
396
  foreground: "text-foreground",
397
397
  muted: "text-muted",
@@ -401,11 +401,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
401
401
  info: "text-info"
402
402
  } },
403
403
  defaultVariants: { color: "foreground" }
404
- }), ve = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h4", {
405
- className: _e({ color: n }),
404
+ }), ye = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h4", {
405
+ className: ve({ color: n }),
406
406
  "data-testid": r,
407
407
  children: t
408
- }), ye = h("font-primary text-body leading-body font-semibold", {
408
+ }), be = h("font-primary text-body leading-body font-semibold", {
409
409
  variants: { color: {
410
410
  foreground: "text-foreground",
411
411
  muted: "text-muted",
@@ -415,11 +415,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
415
415
  info: "text-info"
416
416
  } },
417
417
  defaultVariants: { color: "foreground" }
418
- }), be = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h5", {
419
- className: ye({ color: n }),
418
+ }), xe = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h5", {
419
+ className: be({ color: n }),
420
420
  "data-testid": r,
421
421
  children: t
422
- }), xe = h("font-primary text-body leading-body font-medium", {
422
+ }), Se = h("font-primary text-body leading-body font-medium", {
423
423
  variants: { color: {
424
424
  foreground: "text-foreground",
425
425
  muted: "text-muted",
@@ -429,11 +429,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
429
429
  info: "text-info"
430
430
  } },
431
431
  defaultVariants: { color: "foreground" }
432
- }), Se = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h6", {
433
- className: xe({ color: n }),
432
+ }), Ce = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h6", {
433
+ className: Se({ color: n }),
434
434
  "data-testid": r,
435
435
  children: t
436
- }), Ce = h("font-secondary text-small", {
436
+ }), we = h("font-secondary text-small", {
437
437
  variants: { color: {
438
438
  foreground: "text-foreground",
439
439
  muted: "text-muted",
@@ -443,11 +443,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
443
443
  info: "text-info"
444
444
  } },
445
445
  defaultVariants: { color: "foreground" }
446
- }), we = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
447
- className: Ce({ color: n }),
446
+ }), Te = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
447
+ className: we({ color: n }),
448
448
  "data-testid": r,
449
449
  children: t
450
- }), Te = h("font-primary text-body leading-body", {
450
+ }), Ee = h("font-primary text-body leading-body", {
451
451
  variants: { color: {
452
452
  foreground: "text-foreground",
453
453
  muted: "text-muted",
@@ -457,11 +457,11 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
457
457
  info: "text-info"
458
458
  } },
459
459
  defaultVariants: { color: "foreground" }
460
- }), Ee = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
461
- className: Te({ color: n }),
460
+ }), De = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
461
+ className: Ee({ color: n }),
462
462
  "data-testid": r,
463
463
  children: t
464
- }), De = h("flex max-w-[var(--measure)] flex-col gap-[var(--space-stack)]"), Oe = h("font-primary text-lede leading-lede text-foreground"), ke = h("font-primary text-body leading-body", {
464
+ }), Oe = h("flex max-w-[var(--measure)] flex-col gap-[var(--space-stack)]"), ke = h("font-primary text-lede leading-lede text-foreground"), Ae = h("font-primary text-body leading-body", {
465
465
  variants: { color: {
466
466
  foreground: "text-foreground",
467
467
  muted: "text-muted",
@@ -471,47 +471,134 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
471
471
  info: "text-info"
472
472
  } },
473
473
  defaultVariants: { color: "foreground" }
474
- }), Ae = h("font-primary text-small text-muted"), je = {
474
+ }), je = h("font-primary text-small text-muted"), Me = {
475
475
  Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
476
- className: De(),
476
+ className: Oe(),
477
477
  "data-testid": n,
478
478
  children: t
479
479
  }),
480
480
  Lede: ({ children: t }) => /* @__PURE__ */ e("p", {
481
- className: Oe(),
481
+ className: ke(),
482
482
  children: t
483
483
  }),
484
484
  Body: ({ color: t, children: n }) => /* @__PURE__ */ e("p", {
485
- className: ke({ color: t }),
485
+ className: Ae({ color: t }),
486
486
  children: n
487
487
  }),
488
488
  Tail: ({ children: t }) => /* @__PURE__ */ e("p", {
489
- className: Ae(),
489
+ className: je(),
490
490
  children: t
491
491
  })
492
- }, Me = h("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)]", {
492
+ }, Ne = h("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)]", {
493
493
  variants: { variant: {
494
494
  primary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-primary text-primary-foreground hover:bg-primary-hover",
495
495
  secondary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-secondary text-secondary-foreground hover:bg-secondary-hover",
496
496
  ghost: "px-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)]"
497
497
  } },
498
498
  defaultVariants: { variant: "primary" }
499
- }), Ne = ({ children: t, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ e("button", {
499
+ }), Pe = ({ children: t, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ e("button", {
500
500
  type: s,
501
501
  "data-testid": r,
502
- className: Me({ variant: i }),
502
+ className: Ne({ variant: i }),
503
503
  onClick: () => a?.next(),
504
504
  disabled: n,
505
505
  "aria-label": o,
506
506
  children: t
507
- }), Pe = h("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", {
507
+ }), Fe = class extends Error {
508
+ constructor(e) {
509
+ super(`Choices.${e} must be composed inside Choices.Root`), this.name = "ChoicesCompositionError";
510
+ }
511
+ }, Ie = h("flex flex-col gap-[var(--space-stack)]"), Le = h([
512
+ "group/choice flex w-full flex-row items-start gap-3 text-left",
513
+ "rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent aria-checked:border-foreground",
514
+ "px-3 py-2",
515
+ "cursor-pointer disabled:cursor-not-allowed",
516
+ "transition-colors duration-[var(--motion-duration-color)]",
517
+ "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
518
+ ].join(" ")), R = r(void 0), Re = (e) => {
519
+ let t = o(R);
520
+ if (t === void 0) throw new Fe(e);
521
+ return t;
522
+ }, ze = (e, t) => {
523
+ let n = e.closest("[role=\"radiogroup\"]");
524
+ if (n === null) return;
525
+ let r = Array.from(n.querySelectorAll(":scope > [role=\"radio\"]"));
526
+ return r[(r.indexOf(e) + t + r.length) % r.length];
527
+ }, Be = {
528
+ ArrowDown: 1,
529
+ ArrowRight: 1,
530
+ ArrowUp: -1,
531
+ ArrowLeft: -1
532
+ }, Ve = {
533
+ Root: ({ selected: t, onSelect$: n, label: r, inert: i, children: a, testId: o }) => /* @__PURE__ */ e(R.Provider, {
534
+ value: {
535
+ selected: t,
536
+ onSelect$: n,
537
+ inert: i === !0
538
+ },
539
+ children: /* @__PURE__ */ e("div", {
540
+ role: "radiogroup",
541
+ "aria-label": r,
542
+ "aria-disabled": i === !0 ? "true" : void 0,
543
+ className: Ie(),
544
+ "data-testid": o,
545
+ children: a
546
+ })
547
+ }),
548
+ Choice: ({ value: n, children: r, description: i, testId: a }) => {
549
+ let { selected: o, onSelect$: s, inert: l } = Re("Choice"), u = o === n, d = c(), f = `${d}-name`, p = `${d}-description`;
550
+ return /* @__PURE__ */ t("button", {
551
+ type: "button",
552
+ role: "radio",
553
+ "aria-checked": u,
554
+ "aria-labelledby": f,
555
+ "aria-describedby": p,
556
+ tabIndex: u && !l ? 0 : -1,
557
+ disabled: l,
558
+ "data-value": n,
559
+ "data-testid": a,
560
+ className: Le(),
561
+ onClick: () => {
562
+ u || s.next(n);
563
+ },
564
+ onKeyDown: (e) => {
565
+ let t = Be[e.key];
566
+ if (t === void 0 || l) return;
567
+ e.preventDefault();
568
+ let n = ze(e.currentTarget, t);
569
+ if (n === void 0) return;
570
+ n.focus();
571
+ let r = n.dataset.value;
572
+ r !== void 0 && r !== o && s.next(r);
573
+ },
574
+ children: [/* @__PURE__ */ e("span", {
575
+ className: "mt-[0.3rem] flex size-[var(--choice-marker-size)] shrink-0 items-center justify-center rounded-[var(--radius-control)] border border-solid border-control-border",
576
+ children: u && /* @__PURE__ */ e("span", {
577
+ "data-choice-marker-dot": !0,
578
+ className: "size-[var(--choice-marker-dot-size)] rounded-[var(--radius-control)] bg-foreground"
579
+ })
580
+ }), /* @__PURE__ */ t("span", {
581
+ className: "flex min-w-0 flex-col",
582
+ children: [/* @__PURE__ */ e("span", {
583
+ id: f,
584
+ className: "font-secondary font-medium text-body text-foreground group-disabled/choice:text-muted",
585
+ children: r
586
+ }), /* @__PURE__ */ e("span", {
587
+ id: p,
588
+ className: "font-secondary text-muted text-small",
589
+ children: i
590
+ })]
591
+ })]
592
+ });
593
+ }
594
+ }, He = h("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", {
508
595
  variants: { variant: {
509
596
  text: "",
510
597
  email: "",
511
598
  url: ""
512
599
  } },
513
600
  defaultVariants: { variant: "text" }
514
- }), Fe = ({ label: n, name: r, variant: i, required: a, optionalLabel: o, invalid: u, disabled: d, defaultValue: f, placeholder: p, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
601
+ }), Ue = ({ label: n, name: r, variant: i, required: a, optionalLabel: o, invalid: u, disabled: d, defaultValue: f, placeholder: p, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
515
602
  let b = c(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, u ? C : void 0].filter(Boolean).join(" ") || void 0, T = l(null);
516
603
  return s(() => {
517
604
  let e = v?.subscribe(() => {
@@ -531,7 +618,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
531
618
  id: x,
532
619
  name: r,
533
620
  type: i ?? "text",
534
- className: Pe({ variant: i }),
621
+ className: He({ variant: i }),
535
622
  required: a,
536
623
  disabled: d,
537
624
  defaultValue: f,
@@ -558,7 +645,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
558
645
  })
559
646
  ]
560
647
  });
561
- }, Ie = h("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
648
+ }, We = h("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
562
649
  variants: { treatment: {
563
650
  prose: "text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:decoration-[length:var(--underline-thickness-hover)]",
564
651
  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",
@@ -566,9 +653,9 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
566
653
  graphic: "text-inherit no-underline"
567
654
  } },
568
655
  defaultVariants: { treatment: "prose" }
569
- }), Le = ({ href: t, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ e("a", {
656
+ }), Ge = ({ href: t, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ e("a", {
570
657
  href: t,
571
- className: Ie({ treatment: r }),
658
+ className: We({ treatment: r }),
572
659
  target: i ? "_blank" : void 0,
573
660
  rel: i ? "noopener noreferrer" : void 0,
574
661
  "aria-current": a ? "page" : void 0,
@@ -578,7 +665,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
578
665
  constructor(e) {
579
666
  super(`Slider configuration: ${e}`), this.name = "SliderConfigurationError";
580
667
  }
581
- }, Re = h([
668
+ }, Ke = h([
582
669
  "block h-[var(--slider-thumb-size)] w-full cursor-pointer appearance-none bg-transparent",
583
670
  "disabled:cursor-not-allowed",
584
671
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
@@ -589,19 +676,19 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
589
676
  "[&::-moz-range-track]:h-[var(--slider-track-thickness)] [&::-moz-range-track]:rounded-[var(--radius-control)] [&::-moz-range-track]:bg-control-border",
590
677
  "[&::-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",
591
678
  "[&:disabled::-moz-range-track]:bg-disabled [&:disabled::-moz-range-thumb]:bg-disabled"
592
- ].join(" ")), ze = (e) => {
679
+ ].join(" ")), qe = (e) => {
593
680
  for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new z(`\`${t}\` must be a finite number, got ${n}`);
594
681
  if (e.min >= e.max) throw new z(`\`min\` (${e.min}) must be below \`max\` (${e.max})`);
595
682
  if (e.step <= 0) throw new z(`\`step\` (${e.step}) must be positive`);
596
683
  if (e.value < e.min || e.value > e.max) throw new z(`\`value\` (${e.value}) must lie within [${e.min}, ${e.max}]`);
597
- }, Be = ({ min: t, max: n, step: r = 1, value: i, onInput$: a, label: o, valueText: s, disabled: c, testId: l }) => (ze({
684
+ }, Je = ({ min: t, max: n, step: r = 1, value: i, onInput$: a, label: o, valueText: s, disabled: c, testId: l }) => (qe({
598
685
  min: t,
599
686
  max: n,
600
687
  step: r,
601
688
  value: i
602
689
  }), /* @__PURE__ */ e("input", {
603
690
  type: "range",
604
- className: Re(),
691
+ className: Ke(),
605
692
  min: t,
606
693
  max: n,
607
694
  step: r,
@@ -611,37 +698,37 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
611
698
  "aria-valuetext": s,
612
699
  "data-testid": l,
613
700
  onChange: (e) => a.next(e.currentTarget.valueAsNumber)
614
- })), Ve = class extends Error {
701
+ })), Ye = class extends Error {
615
702
  constructor(e) {
616
703
  super(`Tabs.${e} must be composed inside Tabs.Root`), this.name = "TabsCompositionError";
617
704
  }
618
- }, He = h([
705
+ }, Xe = h([
619
706
  "flex flex-row overflow-x-auto",
620
707
  "p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
621
708
  "m-[calc(-1*(var(--focus-ring-width)+var(--focus-ring-offset)))]",
622
709
  "scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]"
623
- ].join(" ")), Ue = h([
710
+ ].join(" ")), Ze = h([
624
711
  "font-secondary text-label tracking-label",
625
712
  "text-muted hover:text-foreground aria-selected:text-foreground",
626
713
  "border-b-[length:var(--tab-marker-thickness)] border-solid border-transparent aria-selected:border-foreground",
627
714
  "shrink-0 cursor-pointer select-none text-nowrap px-[var(--tab-inset-inline)] py-[var(--tab-inset-block)]",
628
715
  "transition-colors duration-[var(--motion-duration-color)]",
629
716
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
630
- ].join(" ")), We = h("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"), B = r(void 0), V = (e) => {
717
+ ].join(" ")), Qe = h("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"), B = r(void 0), V = (e) => {
631
718
  let t = o(B);
632
- if (t === void 0) throw new Ve(e);
719
+ if (t === void 0) throw new Ye(e);
633
720
  return t;
634
- }, H = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), Ge = (e) => {
721
+ }, H = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), $e = (e) => {
635
722
  e.currentTarget.scrollIntoView({
636
723
  block: "nearest",
637
724
  inline: "nearest"
638
725
  });
639
- }, U = (e, t) => `${e}tab-${H(t)}`, W = (e, t) => `${e}panel-${H(t)}`, Ke = (e, t) => {
726
+ }, U = (e, t) => `${e}tab-${H(t)}`, W = (e, t) => `${e}panel-${H(t)}`, et = (e, t) => {
640
727
  let n = e.closest("[role=\"tablist\"]");
641
728
  if (n === null) return;
642
729
  let r = Array.from(n.querySelectorAll(":scope > [role=\"tab\"]"));
643
730
  return r[(r.indexOf(e) + t + r.length) % r.length];
644
- }, qe = {
731
+ }, tt = {
645
732
  Root: ({ active: t, onSelect$: n, label: r, children: i, testId: a }) => {
646
733
  let o = c();
647
734
  return /* @__PURE__ */ e(B.Provider, {
@@ -662,7 +749,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
662
749
  return /* @__PURE__ */ e("div", {
663
750
  role: "tablist",
664
751
  "aria-label": r,
665
- className: He(),
752
+ className: Xe(),
666
753
  "data-testid": n,
667
754
  children: t
668
755
  });
@@ -678,18 +765,18 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
678
765
  tabIndex: s ? 0 : -1,
679
766
  "data-value": t,
680
767
  "data-testid": r,
681
- className: Ue(),
768
+ className: Ze(),
682
769
  onClick: () => a.next(t),
683
770
  onKeyDown: (e) => {
684
771
  if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
685
772
  e.preventDefault();
686
- let t = Ke(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
773
+ let t = et(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
687
774
  if (t === void 0) return;
688
775
  t.focus();
689
776
  let n = t.dataset.value;
690
777
  n !== void 0 && a.next(n);
691
778
  },
692
- onFocus: Ge,
779
+ onFocus: $e,
693
780
  children: n
694
781
  });
695
782
  },
@@ -701,12 +788,12 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
701
788
  "aria-labelledby": U(a, t),
702
789
  hidden: !o,
703
790
  tabIndex: o ? 0 : void 0,
704
- className: We(),
791
+ className: Qe(),
705
792
  "data-testid": r,
706
793
  children: o ? n : void 0
707
794
  });
708
795
  }
709
- }, Je = h("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"), Ye = ({ label: n, name: r, required: i, optionalLabel: a, invalid: o, disabled: u, defaultValue: d, placeholder: f, autocomplete: p, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
796
+ }, nt = h("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"), rt = ({ label: n, name: r, required: i, optionalLabel: a, invalid: o, disabled: u, defaultValue: d, placeholder: f, autocomplete: p, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
710
797
  let y = c(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, o ? S : void 0].filter(Boolean).join(" ") || void 0, w = l(null);
711
798
  return s(() => {
712
799
  let e = _?.subscribe(() => {
@@ -725,7 +812,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
725
812
  ref: w,
726
813
  id: b,
727
814
  name: r,
728
- className: Je(),
815
+ className: nt(),
729
816
  required: i,
730
817
  disabled: u,
731
818
  defaultValue: d,
@@ -752,29 +839,29 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
752
839
  })
753
840
  ]
754
841
  });
755
- }, Xe = h([
842
+ }, it = h([
756
843
  "flex flex-col items-center",
757
844
  "min-h-[var(--cover-height)]",
758
845
  "px-[var(--gutter)] py-[var(--space-region)]"
759
- ].join(" ")), Ze = "my-auto max-w-full", Qe = ({ children: n, foot: r, testId: i }) => {
846
+ ].join(" ")), at = "my-auto max-w-full", ot = ({ children: n, foot: r, testId: i }) => {
760
847
  let a = r != null && typeof r != "boolean";
761
848
  return /* @__PURE__ */ t("div", {
762
- className: Xe(),
849
+ className: it(),
763
850
  "data-testid": i,
764
851
  children: [/* @__PURE__ */ e("div", {
765
- className: Ze,
852
+ className: at,
766
853
  children: n
767
854
  }), a && /* @__PURE__ */ e("div", { children: r })]
768
855
  });
769
- }, $e = class extends Error {
856
+ }, st = class extends Error {
770
857
  constructor(e) {
771
858
  super(`Dialog.${e} must be composed inside Dialog.Root`), this.name = "DialogCompositionError";
772
859
  }
773
- }, et = class extends Error {
860
+ }, ct = class extends Error {
774
861
  constructor() {
775
862
  super("A Dialog takes exactly one accessible naming source: a visible Dialog.Title or ariaLabel on Dialog.Root, never both"), this.name = "DialogNamingError";
776
863
  }
777
- }, tt = h([
864
+ }, lt = h([
778
865
  "open:flex open:flex-col m-auto p-0 overflow-hidden",
779
866
  "bg-surface text-foreground",
780
867
  "rounded-[var(--radius-dialog)] shadow-[var(--elevation-floating)]",
@@ -785,17 +872,17 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
785
872
  content: ["w-[32rem] max-w-[calc(100vw-2*var(--gutter))]", "max-h-[calc(100dvh-2*var(--space-region))]"].join(" ")
786
873
  } },
787
874
  defaultVariants: { extent: "screen" }
788
- }), nt = h(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[&:has(+[data-dialog-member=description])]:pb-0"].join(" ")), rt = h(["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(" ")), it = h([
875
+ }), ut = h(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[&:has(+[data-dialog-member=description])]:pb-0"].join(" ")), dt = h(["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(" ")), ft = h([
789
876
  "grow shrink min-h-0 overflow-y-auto",
790
877
  "px-[var(--space-region)] py-[var(--space-region)]",
791
878
  "[&:not(:first-child)]:border-t [&:not(:first-child)]:border-border"
792
- ].join(" ")), at = h([
879
+ ].join(" ")), pt = h([
793
880
  "flex flex-row flex-wrap items-center justify-end gap-[var(--space-stack)] shrink-0",
794
881
  "px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]",
795
882
  "[[data-dialog-member=content]+&]:border-t [[data-dialog-member=content]+&]:border-border"
796
883
  ].join(" ")), G = r(void 0), K = (e) => {
797
884
  let t = o(G);
798
- if (t === void 0) throw new $e(e);
885
+ if (t === void 0) throw new st(e);
799
886
  return t;
800
887
  }, q = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", J = (e, { presented: t, opener: n }) => {
801
888
  if (e === void 0 || e.open) return;
@@ -803,7 +890,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
803
890
  n.current = r instanceof HTMLElement && r !== document.body ? r : void 0, e.showModal(), t.current = !0, e.querySelector(q)?.focus();
804
891
  }, Y = (e, { presented: t }) => {
805
892
  t.current = !1, e?.open && e.close();
806
- }, ot = {
893
+ }, mt = {
807
894
  Root: ({ children: t, onDismiss$: n, showDialog$: r, extent: i, ariaLabel: o, testId: d }) => {
808
895
  let f = c(), p = l(void 0), m = l(!1), h = l(void 0), [g] = u(() => ({
809
896
  presented: m,
@@ -839,7 +926,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
839
926
  ref: (e) => {
840
927
  p.current = e ?? void 0, e?.setAttribute("headingreset", "");
841
928
  },
842
- className: tt({ extent: i }),
929
+ className: lt({ extent: i }),
843
930
  "aria-label": o,
844
931
  "aria-labelledby": o === void 0 && _.title ? b.titleId : void 0,
845
932
  "aria-describedby": _.description ? b.descriptionId : void 0,
@@ -864,10 +951,10 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
864
951
  },
865
952
  Title: ({ children: t, testId: n }) => {
866
953
  let { titleId: r, isLabelled: i, registerNamePart: a } = K("Title");
867
- if (s(() => a("title"), [a]), i) throw new et();
954
+ if (s(() => a("title"), [a]), i) throw new ct();
868
955
  return /* @__PURE__ */ e("div", {
869
956
  "data-dialog-member": "title",
870
- className: nt(),
957
+ className: ut(),
871
958
  "data-testid": n,
872
959
  children: /* @__PURE__ */ e("h1", {
873
960
  id: r,
@@ -880,7 +967,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
880
967
  let { descriptionId: r, registerNamePart: i } = K("Description");
881
968
  return s(() => i("description"), [i]), /* @__PURE__ */ e("div", {
882
969
  "data-dialog-member": "description",
883
- className: rt(),
970
+ className: dt(),
884
971
  "data-testid": n,
885
972
  children: /* @__PURE__ */ e("p", {
886
973
  id: r,
@@ -891,27 +978,27 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
891
978
  },
892
979
  Content: ({ children: t, testId: n }) => (K("Content"), /* @__PURE__ */ e("div", {
893
980
  "data-dialog-member": "content",
894
- className: it(),
981
+ className: ft(),
895
982
  "data-testid": n,
896
983
  children: t
897
984
  })),
898
985
  Actions: ({ children: t, testId: n }) => (K("Actions"), /* @__PURE__ */ e("div", {
899
986
  "data-dialog-member": "actions",
900
- className: at(),
987
+ className: pt(),
901
988
  "data-testid": n,
902
989
  children: t
903
990
  }))
904
- }, st = h("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
991
+ }, ht = h("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
905
992
  variants: { edge: {
906
993
  none: "",
907
994
  rule: "border-t border-solid border-rule"
908
995
  } },
909
996
  defaultVariants: { edge: "rule" }
910
- }), ct = ({ edge: t, children: n, testId: r }) => /* @__PURE__ */ e("footer", {
911
- className: st({ edge: t }),
997
+ }), gt = ({ edge: t, children: n, testId: r }) => /* @__PURE__ */ e("footer", {
998
+ className: ht({ edge: t }),
912
999
  "data-testid": r,
913
1000
  children: n
914
- }), lt = h("font-secondary text-small", {
1001
+ }), _t = h("font-secondary text-small", {
915
1002
  variants: { state: {
916
1003
  idle: "text-muted",
917
1004
  sending: "text-muted",
@@ -919,13 +1006,13 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
919
1006
  failed: "text-error"
920
1007
  } },
921
1008
  defaultVariants: { state: "idle" }
922
- }), ut = {
1009
+ }), vt = {
923
1010
  sent: "status",
924
1011
  failed: "alert"
925
- }, dt = ({ action: n, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
1012
+ }, yt = ({ action: n, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
926
1013
  let l = s != null && typeof s != "boolean";
927
1014
  if (i === "sent" && !l) throw Error("Form in the `sent` state must be given a `note` - it is the outcome message.");
928
- let u = i !== "sent", d = ut[i];
1015
+ let u = i !== "sent", d = vt[i];
929
1016
  return /* @__PURE__ */ t("form", {
930
1017
  action: n,
931
1018
  method: r,
@@ -943,12 +1030,12 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
943
1030
  }),
944
1031
  l && /* @__PURE__ */ e("p", {
945
1032
  role: d,
946
- className: lt({ state: i }),
1033
+ className: _t({ state: i }),
947
1034
  children: s
948
1035
  })
949
1036
  ]
950
1037
  });
951
- }, ft = h([
1038
+ }, bt = h([
952
1039
  "flex items-baseline justify-between",
953
1040
  "font-secondary text-label leading-label tracking-label text-muted",
954
1041
  "py-[var(--space-region)] px-[var(--gutter)]",
@@ -959,50 +1046,50 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
959
1046
  rule: "border-b border-solid border-rule"
960
1047
  } },
961
1048
  defaultVariants: { edge: "rule" }
962
- }), pt = [
1049
+ }), xt = [
963
1050
  "inline-flex shrink-0 items-center",
964
1051
  "min-h-[calc(var(--text-label)*var(--leading-label))]",
965
1052
  "min-w-[var(--standing-min-width)]"
966
- ].join(" "), mt = ({ edge: n, standing: r, navName: i, children: a, testId: o }) => /* @__PURE__ */ t("header", {
967
- className: ft({ edge: n }),
1053
+ ].join(" "), St = ({ edge: n, standing: r, navName: i, children: a, testId: o }) => /* @__PURE__ */ t("header", {
1054
+ className: bt({ edge: n }),
968
1055
  "data-testid": o,
969
1056
  children: [/* @__PURE__ */ e("div", {
970
- className: pt,
1057
+ className: xt,
971
1058
  children: r
972
1059
  }), /* @__PURE__ */ e("nav", {
973
1060
  "aria-label": i,
974
1061
  className: "flex flex-wrap items-baseline gap-[var(--space-region)]",
975
1062
  children: a
976
1063
  })]
977
- }), ht = h("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
1064
+ }), Ct = h("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
978
1065
  variants: { place: {
979
1066
  start: "justify-start",
980
1067
  center: "justify-center",
981
1068
  between: "justify-between"
982
1069
  } },
983
1070
  defaultVariants: { place: "center" }
984
- }), gt = ({ place: t, children: n, testId: r }) => /* @__PURE__ */ e("div", {
985
- className: ht({ place: t }),
1071
+ }), wt = ({ place: t, children: n, testId: r }) => /* @__PURE__ */ e("div", {
1072
+ className: Ct({ place: t }),
986
1073
  "data-testid": r,
987
1074
  children: n
988
- }), _t = h("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), vt = h("font-primary text-title leading-title tracking-optical text-foreground"), yt = h("font-primary text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), bt = h("font-primary text-small text-muted max-w-[var(--measure)]"), xt = ({ title: n, lede: r, intro: i, testId: a }) => /* @__PURE__ */ t("header", {
989
- className: _t(),
1075
+ }), Tt = h("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), Et = h("font-primary text-title leading-title tracking-optical text-foreground"), Dt = h("font-primary text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), Ot = h("font-primary text-small text-muted max-w-[var(--measure)]"), kt = ({ title: n, lede: r, intro: i, testId: a }) => /* @__PURE__ */ t("header", {
1076
+ className: Tt(),
990
1077
  "data-testid": a,
991
1078
  children: [
992
1079
  /* @__PURE__ */ e("h1", {
993
- className: vt(),
1080
+ className: Et(),
994
1081
  children: n
995
1082
  }),
996
1083
  r !== void 0 && /* @__PURE__ */ e("p", {
997
- className: yt(),
1084
+ className: Dt(),
998
1085
  children: r
999
1086
  }),
1000
1087
  i !== void 0 && /* @__PURE__ */ e("p", {
1001
- className: bt(),
1088
+ className: Ot(),
1002
1089
  children: i
1003
1090
  })
1004
1091
  ]
1005
- }), St = h([
1092
+ }), X = h([
1006
1093
  "relative",
1007
1094
  "py-[var(--space-band)]",
1008
1095
  "[[data-section]+&]:border-t [[data-section]+&]:border-solid [[data-section]+&]:border-rule"
@@ -1012,20 +1099,20 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1012
1099
  full: ""
1013
1100
  } },
1014
1101
  defaultVariants: { bleed: "inset" }
1015
- }), X = ({ bleed: t, name: n, children: r, testId: i }) => /* @__PURE__ */ e("section", {
1102
+ }), At = ({ bleed: t, name: n, children: r, testId: i }) => /* @__PURE__ */ e("section", {
1016
1103
  "data-section": "",
1017
- className: St({ bleed: t }),
1104
+ className: X({ bleed: t }),
1018
1105
  "aria-label": n,
1019
1106
  "data-testid": i,
1020
1107
  children: r
1021
- }), Ct = h([
1108
+ }), jt = h([
1022
1109
  "grid gap-[var(--space-region)] lg:grid-cols-[12rem_minmax(0,1fr)]",
1023
1110
  "[&>div:first-child]:border-solid [&>div:first-child]:border-border [&>div:first-child]:border-b [&>div:first-child]:pb-[var(--space-stack)]",
1024
1111
  "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)]",
1025
1112
  "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",
1026
1113
  "[&>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))]",
1027
1114
  "[&>div:first-child>nav>ul]:flex [&>div:first-child>nav>ul]:flex-col [&>div:first-child>nav>ul]:gap-[var(--space-stack)]"
1028
- ].join(" ")), wt = (e) => {
1115
+ ].join(" ")), Mt = (e) => {
1029
1116
  if (!e) return;
1030
1117
  let t = [];
1031
1118
  for (let n = e.parentElement; n && n !== e.ownerDocument.documentElement; n = n.parentElement) t.push(n);
@@ -1039,7 +1126,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1039
1126
  return window.addEventListener("resize", n), () => {
1040
1127
  r?.disconnect(), window.removeEventListener("resize", n), e.style.removeProperty("--sidebar-scrollport-height");
1041
1128
  };
1042
- }, Tt = h([
1129
+ }, Nt = h([
1043
1130
  "w-full text-left font-secondary text-label tracking-label",
1044
1131
  "underline-offset-[var(--underline-offset)]",
1045
1132
  "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
@@ -1054,7 +1141,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1054
1141
  let a = o(Z), s = a !== void 0 && a.active === t;
1055
1142
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", {
1056
1143
  type: "button",
1057
- className: Tt({ state: r ? "inert" : s ? "active" : "usable" }),
1144
+ className: Nt({ state: r ? "inert" : s ? "active" : "usable" }),
1058
1145
  disabled: r,
1059
1146
  "aria-current": s ? "true" : void 0,
1060
1147
  "data-testid": i,
@@ -1066,14 +1153,14 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1066
1153
  }, $ = ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
1067
1154
  "data-testid": n,
1068
1155
  children: t
1069
- }), Et = {
1156
+ }), Pt = {
1070
1157
  Root: ({ active: r, label: a, onSelect$: o, children: s, testId: c }) => {
1071
1158
  let l = n.toArray(s).filter(i);
1072
1159
  return /* @__PURE__ */ t("div", {
1073
- className: Ct(),
1160
+ className: jt(),
1074
1161
  "data-testid": c,
1075
1162
  children: [/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("nav", {
1076
- ref: wt,
1163
+ ref: Mt,
1077
1164
  "aria-label": a,
1078
1165
  children: /* @__PURE__ */ e(Z, {
1079
1166
  value: {
@@ -1087,7 +1174,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1087
1174
  },
1088
1175
  Item: Q,
1089
1176
  Content: $
1090
- }, Dt = {
1177
+ }, Ft = {
1091
1178
  surface: "#ffffff",
1092
1179
  foreground: "#0f172a",
1093
1180
  muted: "#64748b",
@@ -1112,7 +1199,7 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1112
1199
  warning: "#b45309",
1113
1200
  error: "#d63384",
1114
1201
  info: "#0e7490"
1115
- }, Ot = {
1202
+ }, It = {
1116
1203
  surface: "#0f172a",
1117
1204
  foreground: "#f8fafc",
1118
1205
  muted: "#94a3b8",
@@ -1139,4 +1226,4 @@ var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e
1139
1226
  info: "#22d3ee"
1140
1227
  };
1141
1228
  //#endregion
1142
- export { x as Brandmark, Ne as Button, w as Checklist, _ as Cluster, te as Collection, Qe as Cover, ae as DefinitionList, ot as Dialog, N as Eyebrow, se as Figure, ct as Footer, dt as Form, F as H1, L as H2, ge as H3, ve as H4, be as H5, Se as H6, mt as Header, gt as Hero, Fe as Input, Le as Link, ue as Meter, we as Note, Ee as P, xt as PageHead, je as Prose, he as Rail, X as Section, Et as Sidebar, Be as Slider, y as Stack, j as Table, qe as Tabs, Ye as TextArea, Ot as dark, Dt as light };
1229
+ export { x as Brandmark, Pe as Button, w as Checklist, Ve as Choices, _ as Cluster, te as Collection, ot as Cover, ae as DefinitionList, mt as Dialog, M as Eyebrow, se as Figure, gt as Footer, yt as Form, P as H1, I as H2, _e as H3, ye as H4, xe as H5, Ce as H6, St as Header, wt as Hero, Ue as Input, Ge as Link, ue as Meter, Te as Note, De as P, kt as PageHead, Me as Prose, he as Rail, At as Section, Pt as Sidebar, Je as Slider, y as Stack, A as Table, tt as Tabs, rt as TextArea, It as dark, Ft as light };