@postenbring/hedwig-react 1.5.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/button/button.d.ts +13 -7
  2. package/dist/button/button.d.ts.map +1 -1
  3. package/dist/button/button.js +5 -3
  4. package/dist/button/button.js.map +1 -1
  5. package/dist/button/button.mjs +1 -1
  6. package/dist/button/index.js +5 -3
  7. package/dist/button/index.js.map +1 -1
  8. package/dist/button/index.mjs +1 -1
  9. package/dist/button-list/button-list.d.ts +19 -0
  10. package/dist/button-list/button-list.d.ts.map +1 -0
  11. package/dist/button-list/button-list.js +78 -0
  12. package/dist/button-list/button-list.js.map +1 -0
  13. package/dist/button-list/button-list.mjs +8 -0
  14. package/dist/button-list/button-list.mjs.map +1 -0
  15. package/dist/button-list/index.d.ts +3 -0
  16. package/dist/button-list/index.d.ts.map +1 -0
  17. package/dist/button-list/index.js +80 -0
  18. package/dist/button-list/index.js.map +1 -0
  19. package/dist/button-list/index.mjs +9 -0
  20. package/dist/button-list/index.mjs.map +1 -0
  21. package/dist/card/card.d.ts +10 -0
  22. package/dist/card/card.d.ts.map +1 -1
  23. package/dist/card/card.js +6 -2
  24. package/dist/card/card.js.map +1 -1
  25. package/dist/card/card.mjs +1 -1
  26. package/dist/card/index.js +6 -2
  27. package/dist/card/index.js.map +1 -1
  28. package/dist/card/index.mjs +1 -1
  29. package/dist/{chunk-6DWIJEHQ.mjs → chunk-444SCBJD.mjs} +3 -3
  30. package/dist/chunk-444SCBJD.mjs.map +1 -0
  31. package/dist/{chunk-FUIKSOJF.mjs → chunk-6SVLMQUW.mjs} +4 -4
  32. package/dist/{chunk-BQR4ZRFT.mjs → chunk-CFAPQFEC.mjs} +5 -5
  33. package/dist/{chunk-6VKQ6IRG.mjs → chunk-GXIKHXWC.mjs} +1 -1
  34. package/dist/chunk-GXIKHXWC.mjs.map +1 -0
  35. package/dist/{chunk-NE6PE5W7.mjs → chunk-LDZIJR2D.mjs} +7 -3
  36. package/dist/chunk-LDZIJR2D.mjs.map +1 -0
  37. package/dist/chunk-ME746XCZ.mjs +31 -0
  38. package/dist/chunk-ME746XCZ.mjs.map +1 -0
  39. package/dist/{chunk-V5X3ZS23.mjs → chunk-OHDHIRAW.mjs} +5 -3
  40. package/dist/chunk-OHDHIRAW.mjs.map +1 -0
  41. package/dist/{chunk-AYCHNAU7.mjs → chunk-TYCGAA35.mjs} +6 -4
  42. package/dist/chunk-TYCGAA35.mjs.map +1 -0
  43. package/dist/chunk-Y6NOEN7R.mjs +1 -0
  44. package/dist/chunk-Y6NOEN7R.mjs.map +1 -0
  45. package/dist/{chunk-TC5PD4TA.mjs → chunk-YQMTDQSQ.mjs} +4 -4
  46. package/dist/footer/footer.js +6 -4
  47. package/dist/footer/footer.js.map +1 -1
  48. package/dist/footer/footer.mjs +2 -2
  49. package/dist/footer/index.js +6 -4
  50. package/dist/footer/index.js.map +1 -1
  51. package/dist/footer/index.mjs +2 -2
  52. package/dist/form/error-summary/error-summary.js +4 -2
  53. package/dist/form/error-summary/error-summary.js.map +1 -1
  54. package/dist/form/error-summary/error-summary.mjs +4 -4
  55. package/dist/form/error-summary/index.js +4 -2
  56. package/dist/form/error-summary/index.js.map +1 -1
  57. package/dist/form/error-summary/index.mjs +4 -4
  58. package/dist/form/index.js +4 -2
  59. package/dist/form/index.js.map +1 -1
  60. package/dist/form/index.mjs +18 -18
  61. package/dist/index.d.ts +1 -0
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +475 -444
  64. package/dist/index.js.map +1 -1
  65. package/dist/index.mjs +64 -59
  66. package/dist/layout/grid/grid.mjs +2 -2
  67. package/dist/layout/grid/index.mjs +2 -2
  68. package/dist/layout/index.mjs +3 -3
  69. package/dist/layout/stack/index.mjs +2 -2
  70. package/dist/layout/stack/stack.mjs +2 -2
  71. package/dist/link/index.js +4 -2
  72. package/dist/link/index.js.map +1 -1
  73. package/dist/link/index.mjs +1 -1
  74. package/dist/link/link.d.ts +9 -3
  75. package/dist/link/link.d.ts.map +1 -1
  76. package/dist/link/link.js +4 -2
  77. package/dist/link/link.js.map +1 -1
  78. package/dist/link/link.mjs +1 -1
  79. package/dist/modal/index.js.map +1 -1
  80. package/dist/modal/index.mjs +1 -1
  81. package/dist/modal/modal.d.ts +1 -1
  82. package/dist/modal/modal.js.map +1 -1
  83. package/dist/modal/modal.mjs +1 -1
  84. package/package.json +6 -6
  85. package/src/button/button.tsx +19 -10
  86. package/src/button-list/button-list.stories.tsx +27 -0
  87. package/src/button-list/button-list.tsx +37 -0
  88. package/src/button-list/index.tsx +3 -0
  89. package/src/card/card.tsx +16 -2
  90. package/src/footer/footer.tsx +1 -1
  91. package/src/index.ts +1 -0
  92. package/src/link/link.tsx +18 -5
  93. package/src/modal/modal.stories.tsx +1 -1
  94. package/src/modal/modal.tsx +1 -1
  95. package/dist/chunk-6DWIJEHQ.mjs.map +0 -1
  96. package/dist/chunk-6VKQ6IRG.mjs.map +0 -1
  97. package/dist/chunk-AYCHNAU7.mjs.map +0 -1
  98. package/dist/chunk-NE6PE5W7.mjs.map +0 -1
  99. package/dist/chunk-V5X3ZS23.mjs.map +0 -1
  100. /package/dist/{chunk-FUIKSOJF.mjs.map → chunk-6SVLMQUW.mjs.map} +0 -0
  101. /package/dist/{chunk-BQR4ZRFT.mjs.map → chunk-CFAPQFEC.mjs.map} +0 -0
  102. /package/dist/{chunk-TC5PD4TA.mjs.map → chunk-YQMTDQSQ.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -57,8 +57,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
57
57
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
58
 
59
59
  // src/index.ts
60
- var src_exports = {};
61
- __export(src_exports, {
60
+ var index_exports = {};
61
+ __export(index_exports, {
62
62
  Accordion: () => Accordion,
63
63
  AccordionContent: () => AccordionContent,
64
64
  AccordionHeader: () => AccordionHeader,
@@ -70,6 +70,7 @@ __export(src_exports, {
70
70
  BoxCloseButton: () => BoxCloseButton,
71
71
  Breadcrumbs: () => Breadcrumbs,
72
72
  Button: () => Button,
73
+ ButtonList: () => ButtonList,
73
74
  Card: () => Card,
74
75
  CardBody: () => CardBody,
75
76
  CardBodyAction: () => CardBodyAction,
@@ -147,7 +148,7 @@ __export(src_exports, {
147
148
  useRadioGroupContext: () => useRadioGroupContext,
148
149
  useResize: () => useResize
149
150
  });
150
- module.exports = __toCommonJS(src_exports);
151
+ module.exports = __toCommonJS(index_exports);
151
152
 
152
153
  // src/accordion/accordion.tsx
153
154
  var import_react5 = require("react");
@@ -423,9 +424,9 @@ var Button = (0, import_react10.forwardRef)(
423
424
  asChild,
424
425
  children,
425
426
  variant = "primary",
426
- size = "medium",
427
+ size = "large",
427
428
  fullWidth = false,
428
- icon,
429
+ icon = false,
429
430
  className
430
431
  } = _b, rest = __objRest(_b, [
431
432
  "asChild",
@@ -447,7 +448,9 @@ var Button = (0, import_react10.forwardRef)(
447
448
  {
448
449
  "hds-button--full": fullWidth === true,
449
450
  "hds-button--mobile-full": fullWidth === "mobile",
450
- "hds-button--icon-only": icon
451
+ "hds-button--only-icon": icon === true,
452
+ "hds-button--leading-icon": icon === "leading",
453
+ "hds-button--trailing-icon": icon === "trailing"
451
454
  },
452
455
  className
453
456
  ),
@@ -460,62 +463,87 @@ var Button = (0, import_react10.forwardRef)(
460
463
  );
461
464
  Button.displayName = "Button";
462
465
 
463
- // src/card/card.tsx
466
+ // src/button-list/button-list.tsx
464
467
  var import_react11 = require("react");
465
468
  var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname");
466
- var import_react_slot5 = require("@radix-ui/react-slot");
467
469
  var import_jsx_runtime10 = require("react/jsx-runtime");
468
- var CardMedia = (0, import_react11.forwardRef)(
470
+ var ButtonList = (0, import_react11.forwardRef)(
471
+ (_a, ref) => {
472
+ var _b = _a, { variant = "default", className, children } = _b, rest = __objRest(_b, ["variant", "className", "children"]);
473
+ const Component = "div";
474
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
475
+ Component,
476
+ __spreadProps(__spreadValues({
477
+ className: (0, import_typed_classname10.clsx)("hds-button-list", `hds-button-list--${variant}`, className),
478
+ ref
479
+ }, rest), {
480
+ children
481
+ })
482
+ );
483
+ }
484
+ );
485
+ ButtonList.displayName = "ButtonList";
486
+
487
+ // src/card/card.tsx
488
+ var import_react12 = require("react");
489
+ var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname");
490
+ var import_react_slot5 = require("@radix-ui/react-slot");
491
+ var import_jsx_runtime11 = require("react/jsx-runtime");
492
+ var CardMedia = (0, import_react12.forwardRef)(
469
493
  (_a, ref) => {
470
494
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
471
495
  const Component = asChild ? import_react_slot5.Slot : "div";
472
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname10.clsx)("hds-card__media", className), ref, children }));
496
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname11.clsx)("hds-card__media", className), ref, children }));
473
497
  }
474
498
  );
475
499
  CardMedia.displayName = "Card.Media";
476
- var CardMediaImg = (0, import_react11.forwardRef)(
500
+ var CardMediaImg = (0, import_react12.forwardRef)(
477
501
  (_a, ref) => {
478
- var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
502
+ var _b = _a, { asChild, variant, className } = _b, rest = __objRest(_b, ["asChild", "variant", "className"]);
479
503
  const Component = asChild ? import_react_slot5.Slot : "img";
480
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
504
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
481
505
  Component,
482
506
  __spreadProps(__spreadValues({}, rest), {
483
- className: (0, import_typed_classname10.clsx)("hds-card__media__img", className),
507
+ className: (0, import_typed_classname11.clsx)(
508
+ "hds-card__media__img",
509
+ { "hds-card__img__scale": variant === "scale" },
510
+ className
511
+ ),
484
512
  ref
485
513
  })
486
514
  );
487
515
  }
488
516
  );
489
517
  CardMediaImg.displayName = "Card.MediaImg";
490
- var CardBody = (0, import_react11.forwardRef)(
518
+ var CardBody = (0, import_react12.forwardRef)(
491
519
  (_a, ref) => {
492
520
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
493
521
  const Component = asChild ? import_react_slot5.Slot : "div";
494
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname10.clsx)("hds-card__body", className), ref, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: (0, import_typed_classname10.clsx)("hds-card__centerbody", className), children }) }));
522
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname11.clsx)("hds-card__body", className), ref, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-card__centerbody", className), children }) }));
495
523
  }
496
524
  );
497
525
  CardBody.displayName = "Card.Body";
498
- var CardBodyHeader = (0, import_react11.forwardRef)((_a, ref) => {
526
+ var CardBodyHeader = (0, import_react12.forwardRef)((_a, ref) => {
499
527
  var _b = _a, { as: Tag, asChild, className, children } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children"]);
500
528
  const Component = asChild ? import_react_slot5.Slot : Tag;
501
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
529
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
502
530
  Component,
503
531
  __spreadProps(__spreadValues({}, rest), {
504
- className: (0, import_typed_classname10.clsx)("hds-card__body-header", className),
532
+ className: (0, import_typed_classname11.clsx)("hds-card__body-header", className),
505
533
  ref,
506
534
  children
507
535
  })
508
536
  );
509
537
  });
510
538
  CardBodyHeader.displayName = "Card.BodyHeader";
511
- var CardBodyHeaderOverline = (0, import_react11.forwardRef)(
539
+ var CardBodyHeaderOverline = (0, import_react12.forwardRef)(
512
540
  (_a, ref) => {
513
541
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
514
542
  const Component = asChild ? import_react_slot5.Slot : "span";
515
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
543
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
516
544
  Component,
517
545
  __spreadProps(__spreadValues({}, rest), {
518
- className: (0, import_typed_classname10.clsx)("hds-card__body-header-overline", className),
546
+ className: (0, import_typed_classname11.clsx)("hds-card__body-header-overline", className),
519
547
  ref,
520
548
  children
521
549
  })
@@ -523,14 +551,14 @@ var CardBodyHeaderOverline = (0, import_react11.forwardRef)(
523
551
  }
524
552
  );
525
553
  CardBodyHeaderOverline.displayName = "Card.BodyHeaderOverline";
526
- var CardBodyHeaderTitle = (0, import_react11.forwardRef)(
554
+ var CardBodyHeaderTitle = (0, import_react12.forwardRef)(
527
555
  (_a, ref) => {
528
556
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
529
557
  const Component = asChild ? import_react_slot5.Slot : "div";
530
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
558
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
531
559
  Component,
532
560
  __spreadProps(__spreadValues({}, rest), {
533
- className: (0, import_typed_classname10.clsx)("hds-card__body-header-title", className),
561
+ className: (0, import_typed_classname11.clsx)("hds-card__body-header-title", className),
534
562
  ref,
535
563
  children
536
564
  })
@@ -538,14 +566,14 @@ var CardBodyHeaderTitle = (0, import_react11.forwardRef)(
538
566
  }
539
567
  );
540
568
  CardBodyHeaderTitle.displayName = "Card.BodyHeaderTitle";
541
- var CardBodyDescription = (0, import_react11.forwardRef)(
569
+ var CardBodyDescription = (0, import_react12.forwardRef)(
542
570
  (_a, ref) => {
543
571
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
544
572
  const Component = asChild ? import_react_slot5.Slot : "p";
545
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
573
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
546
574
  Component,
547
575
  __spreadProps(__spreadValues({}, rest), {
548
- className: (0, import_typed_classname10.clsx)("hds-card__body-description", className),
576
+ className: (0, import_typed_classname11.clsx)("hds-card__body-description", className),
549
577
  ref,
550
578
  children
551
579
  })
@@ -553,14 +581,14 @@ var CardBodyDescription = (0, import_react11.forwardRef)(
553
581
  }
554
582
  );
555
583
  CardBodyDescription.displayName = "Card.BodyDescription";
556
- var CardBodyAction = (0, import_react11.forwardRef)(
584
+ var CardBodyAction = (0, import_react12.forwardRef)(
557
585
  (_a, ref) => {
558
586
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
559
587
  const Component = asChild ? import_react_slot5.Slot : "div";
560
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
588
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
561
589
  Component,
562
590
  __spreadProps(__spreadValues({}, rest), {
563
- className: (0, import_typed_classname10.clsx)("hds-card__body-action", className),
591
+ className: (0, import_typed_classname11.clsx)("hds-card__body-action", className),
564
592
  ref,
565
593
  children
566
594
  })
@@ -568,14 +596,14 @@ var CardBodyAction = (0, import_react11.forwardRef)(
568
596
  }
569
597
  );
570
598
  CardBodyAction.displayName = "Card.BodyAction";
571
- var CardBodyActionRow = (0, import_react11.forwardRef)(
599
+ var CardBodyActionRow = (0, import_react12.forwardRef)(
572
600
  (_a, ref) => {
573
601
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
574
602
  const Component = asChild ? import_react_slot5.Slot : "div";
575
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
603
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
576
604
  Component,
577
605
  __spreadProps(__spreadValues({}, rest), {
578
- className: (0, import_typed_classname10.clsx)("hds-card__body-action-row", className),
606
+ className: (0, import_typed_classname11.clsx)("hds-card__body-action-row", className),
579
607
  ref,
580
608
  children
581
609
  })
@@ -583,14 +611,14 @@ var CardBodyActionRow = (0, import_react11.forwardRef)(
583
611
  }
584
612
  );
585
613
  CardBodyActionRow.displayName = "Card.BodyActionRow";
586
- var CardBodyActionArrow = (0, import_react11.forwardRef)(
614
+ var CardBodyActionArrow = (0, import_react12.forwardRef)(
587
615
  (_a, ref) => {
588
616
  var _b = _a, { asChild, className, direction } = _b, rest = __objRest(_b, ["asChild", "className", "direction"]);
589
617
  const Component = asChild ? import_react_slot5.Slot : "span";
590
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
618
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
591
619
  Component,
592
620
  __spreadProps(__spreadValues({}, rest), {
593
- className: (0, import_typed_classname10.clsx)(
621
+ className: (0, import_typed_classname11.clsx)(
594
622
  "hds-card__body-action-arrow",
595
623
  { "hds-card__body-action-arrow-up-right": direction === "up-right" },
596
624
  className
@@ -601,15 +629,15 @@ var CardBodyActionArrow = (0, import_react11.forwardRef)(
601
629
  }
602
630
  );
603
631
  CardBodyActionArrow.displayName = "Card.BodyActionArrow";
604
- var Card = (0, import_react11.forwardRef)(
632
+ var Card = (0, import_react12.forwardRef)(
605
633
  (_a, ref) => {
606
634
  var _b = _a, { as: Tag = "section", asChild, className, children, variant, color, imagePosition } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant", "color", "imagePosition"]);
607
635
  const Component = asChild ? import_react_slot5.Slot : Tag;
608
636
  const effectiveColor = variant === "focus" && !color ? "darker" : color;
609
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
637
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
610
638
  Component,
611
639
  __spreadProps(__spreadValues({}, rest), {
612
- className: (0, import_typed_classname10.clsx)(
640
+ className: (0, import_typed_classname11.clsx)(
613
641
  "hds-card",
614
642
  { "hds-card--full-width": variant === "full-width" },
615
643
  { "hds-card--miniature": variant === "miniature" },
@@ -621,7 +649,7 @@ var Card = (0, import_react11.forwardRef)(
621
649
  className
622
650
  ),
623
651
  ref,
624
- children: variant === "full-width" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: (0, import_typed_classname10.clsx)("hds-card__layoutwrapper", className), children }) : children
652
+ children: variant === "full-width" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-card__layoutwrapper", className), children }) : children
625
653
  })
626
654
  );
627
655
  }
@@ -639,17 +667,17 @@ Card.BodyActionRow = CardBodyActionRow;
639
667
  Card.BodyActionArrow = CardBodyActionArrow;
640
668
 
641
669
  // src/description-list/description-list.tsx
642
- var import_react12 = require("react");
643
- var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname");
644
- var import_jsx_runtime11 = require("react/jsx-runtime");
645
- var DescriptionList = (0, import_react12.forwardRef)(
670
+ var import_react13 = require("react");
671
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
672
+ var import_jsx_runtime12 = require("react/jsx-runtime");
673
+ var DescriptionList = (0, import_react13.forwardRef)(
646
674
  (_a, ref) => {
647
675
  var _b = _a, { variant = "vertical", className } = _b, rest = __objRest(_b, ["variant", "className"]);
648
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
676
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
649
677
  "dl",
650
678
  __spreadValues({
651
679
  ref,
652
- className: (0, import_typed_classname11.clsx)(
680
+ className: (0, import_typed_classname12.clsx)(
653
681
  "hds-description-list",
654
682
  {
655
683
  "hds-description-list--horizontal": variant === "horizontal"
@@ -663,35 +691,35 @@ var DescriptionList = (0, import_react12.forwardRef)(
663
691
  DescriptionList.displayName = "DescriptionList";
664
692
 
665
693
  // src/figure/figure.tsx
666
- var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
694
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
667
695
  var import_react_slot6 = require("@radix-ui/react-slot");
668
- var import_react13 = require("react");
669
- var import_jsx_runtime12 = require("react/jsx-runtime");
670
- var Figure = (0, import_react13.forwardRef)(
696
+ var import_react14 = require("react");
697
+ var import_jsx_runtime13 = require("react/jsx-runtime");
698
+ var Figure = (0, import_react14.forwardRef)(
671
699
  (_a, ref) => {
672
700
  var _b = _a, { children, asChild, className } = _b, rest = __objRest(_b, ["children", "asChild", "className"]);
673
701
  const Component = asChild ? import_react_slot6.Slot : "figure";
674
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname12.clsx)("hds-figure", className) }, rest), { children }));
702
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname13.clsx)("hds-figure", className) }, rest), { children }));
675
703
  }
676
704
  );
677
705
  Figure.displayName = "Figure";
678
706
 
679
707
  // src/form/checkbox/checkbox.tsx
680
- var import_react16 = require("react");
681
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
708
+ var import_react17 = require("react");
709
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
682
710
 
683
711
  // src/form/error-message/error-message.tsx
684
- var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
685
- var import_react14 = require("react");
686
- var import_jsx_runtime13 = require("react/jsx-runtime");
687
- var ErrorMessage = (0, import_react14.forwardRef)(
712
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
713
+ var import_react15 = require("react");
714
+ var import_jsx_runtime14 = require("react/jsx-runtime");
715
+ var ErrorMessage = (0, import_react15.forwardRef)(
688
716
  (_a, ref) => {
689
717
  var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
690
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
718
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
691
719
  "div",
692
720
  __spreadProps(__spreadValues({
693
721
  "aria-live": "polite",
694
- className: (0, import_typed_classname13.clsx)("hds-error-message", className),
722
+ className: (0, import_typed_classname14.clsx)("hds-error-message", className),
695
723
  id,
696
724
  ref
697
725
  }, rest), {
@@ -703,12 +731,12 @@ var ErrorMessage = (0, import_react14.forwardRef)(
703
731
  ErrorMessage.displayName = "ErrorMessage";
704
732
 
705
733
  // src/form/fieldset/fieldset.tsx
706
- var import_react15 = require("react");
707
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
708
- var import_jsx_runtime14 = require("react/jsx-runtime");
709
- var FieldsetContext = (0, import_react15.createContext)({ hasError: false });
710
- var useFieldsetContext = () => (0, import_react15.useContext)(FieldsetContext);
711
- var Fieldset = (0, import_react15.forwardRef)(function Fieldset2(_a, ref) {
734
+ var import_react16 = require("react");
735
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
736
+ var import_jsx_runtime15 = require("react/jsx-runtime");
737
+ var FieldsetContext = (0, import_react16.createContext)({ hasError: false });
738
+ var useFieldsetContext = () => (0, import_react16.useContext)(FieldsetContext);
739
+ var Fieldset = (0, import_react16.forwardRef)(function Fieldset2(_a, ref) {
712
740
  var _b = _a, {
713
741
  className,
714
742
  style,
@@ -727,21 +755,21 @@ var Fieldset = (0, import_react15.forwardRef)(function Fieldset2(_a, ref) {
727
755
  "legend",
728
756
  "children"
729
757
  ]);
730
- const errorMessageId = (0, import_react15.useId)();
731
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
758
+ const errorMessageId = (0, import_react16.useId)();
759
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
732
760
  "fieldset",
733
761
  __spreadProps(__spreadValues({
734
762
  "aria-describedby": errorMessage ? errorMessageId : void 0,
735
763
  "aria-invalid": errorMessage ? true : void 0,
736
- className: (0, import_typed_classname14.clsx)("hds-fieldset", className),
764
+ className: (0, import_typed_classname15.clsx)("hds-fieldset", className),
737
765
  ref,
738
766
  style
739
767
  }, rest), {
740
768
  children: [
741
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
769
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
742
770
  "legend",
743
771
  __spreadProps(__spreadValues({
744
- className: (0, import_typed_classname14.clsx)(
772
+ className: (0, import_typed_classname15.clsx)(
745
773
  "hds-fieldset__legend",
746
774
  { [`hds-fieldset__legend--${legendSize}`]: legendSize },
747
775
  legendClassName
@@ -750,16 +778,16 @@ var Fieldset = (0, import_react15.forwardRef)(function Fieldset2(_a, ref) {
750
778
  children: legend
751
779
  })
752
780
  ),
753
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
754
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
781
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
782
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
755
783
  ]
756
784
  })
757
785
  );
758
786
  });
759
787
 
760
788
  // src/form/checkbox/checkbox.tsx
761
- var import_jsx_runtime15 = require("react/jsx-runtime");
762
- var Checkbox = (0, import_react16.forwardRef)(
789
+ var import_jsx_runtime16 = require("react/jsx-runtime");
790
+ var Checkbox = (0, import_react17.forwardRef)(
763
791
  (_a, ref) => {
764
792
  var _b = _a, {
765
793
  variant = "plain",
@@ -778,14 +806,14 @@ var Checkbox = (0, import_react16.forwardRef)(
778
806
  "children",
779
807
  "className"
780
808
  ]);
781
- const errorMessageId = (0, import_react16.useId)();
809
+ const errorMessageId = (0, import_react17.useId)();
782
810
  const { hasError: hasFieldsetError } = useFieldsetContext();
783
811
  const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
784
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: (0, import_typed_classname15.clsx)("hds-checkbox-wrapper"), children: [
785
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
812
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: (0, import_typed_classname16.clsx)("hds-checkbox-wrapper"), children: [
813
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
786
814
  "div",
787
815
  {
788
- className: (0, import_typed_classname15.clsx)(
816
+ className: (0, import_typed_classname16.clsx)(
789
817
  "hds-checkbox",
790
818
  {
791
819
  [`hds-checkbox--${variant}`]: variant === "bounding-box",
@@ -794,8 +822,8 @@ var Checkbox = (0, import_react16.forwardRef)(
794
822
  className
795
823
  ),
796
824
  children: [
797
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { children: [
798
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
825
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { children: [
826
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
799
827
  "input",
800
828
  __spreadProps(__spreadValues({}, rest), {
801
829
  "aria-invalid": hasError ? true : void 0,
@@ -804,28 +832,28 @@ var Checkbox = (0, import_react16.forwardRef)(
804
832
  type: "checkbox"
805
833
  })
806
834
  ),
807
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
808
- title ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
835
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
836
+ title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
809
837
  ] }),
810
838
  title ? children : null
811
839
  ]
812
840
  }
813
841
  ),
814
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
842
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
815
843
  ] });
816
844
  }
817
845
  );
818
846
  Checkbox.displayName = "Checkbox";
819
847
 
820
848
  // src/form/date-picker/date-picker.tsx
821
- var import_react19 = require("react");
822
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
849
+ var import_react20 = require("react");
850
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
823
851
 
824
852
  // src/form/input-group/input-group.tsx
825
- var import_react17 = require("react");
826
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
827
- var import_jsx_runtime16 = require("react/jsx-runtime");
828
- var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
853
+ var import_react18 = require("react");
854
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
855
+ var import_jsx_runtime17 = require("react/jsx-runtime");
856
+ var InputGroup = (0, import_react18.forwardRef)(function InputGroup2(_a, ref) {
829
857
  var _b = _a, {
830
858
  id,
831
859
  className,
@@ -852,31 +880,31 @@ var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
852
880
  "readOnly",
853
881
  "children"
854
882
  ]);
855
- const errorMessageId = (0, import_react17.useId)();
856
- const inputId = (0, import_react17.useId)();
883
+ const errorMessageId = (0, import_react18.useId)();
884
+ const inputId = (0, import_react18.useId)();
857
885
  const renderInput = () => {
858
886
  var _a2;
859
887
  const inputProps = {
860
888
  "aria-describedby": errorMessage ? errorMessageId : void 0,
861
889
  "aria-invalid": errorMessage ? true : void 0,
862
890
  id: id != null ? id : inputId,
863
- className: (0, import_typed_classname16.clsx)("hds-input-group__input")
891
+ className: (0, import_typed_classname17.clsx)("hds-input-group__input")
864
892
  };
865
893
  if (typeof children === "function") {
866
894
  return children(inputProps);
867
895
  }
868
- const input = import_react17.Children.toArray(children)[0];
869
- if (!(0, import_react17.isValidElement)(input)) {
896
+ const input = import_react18.Children.toArray(children)[0];
897
+ if (!(0, import_react18.isValidElement)(input)) {
870
898
  return;
871
899
  }
872
- return (0, import_react17.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
900
+ return (0, import_react18.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
873
901
  className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
874
902
  }));
875
903
  };
876
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
904
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
877
905
  "div",
878
906
  __spreadProps(__spreadValues({
879
- className: (0, import_typed_classname16.clsx)(
907
+ className: (0, import_typed_classname17.clsx)(
880
908
  "hds-input-group",
881
909
  {
882
910
  [`hds-input-group--${variant}`]: variant,
@@ -888,25 +916,25 @@ var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
888
916
  style
889
917
  }, rest), {
890
918
  children: [
891
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
919
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
892
920
  "label",
893
921
  __spreadProps(__spreadValues({
894
- className: (0, import_typed_classname16.clsx)("hds-input-group__label", labelClassName)
922
+ className: (0, import_typed_classname17.clsx)("hds-input-group__label", labelClassName)
895
923
  }, labelProps), {
896
924
  htmlFor: id != null ? id : inputId,
897
925
  children: label
898
926
  })
899
927
  ),
900
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
928
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
901
929
  "div",
902
930
  {
903
- className: (0, import_typed_classname16.clsx)("hds-input-group__input-wrapper"),
931
+ className: (0, import_typed_classname17.clsx)("hds-input-group__input-wrapper"),
904
932
  "data-disabled": disabled,
905
933
  "data-readonly": readOnly,
906
934
  children: renderInput()
907
935
  }
908
936
  ),
909
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
937
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
910
938
  ]
911
939
  })
912
940
  );
@@ -914,7 +942,7 @@ var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
914
942
 
915
943
  // src/utils/utils.ts
916
944
  var React = __toESM(require("react"));
917
- var import_react18 = require("react");
945
+ var import_react19 = require("react");
918
946
  function useMergeRefs(refs) {
919
947
  return React.useMemo(() => {
920
948
  if (refs.every((ref) => ref === null)) {
@@ -932,16 +960,16 @@ function useMergeRefs(refs) {
932
960
  }, refs);
933
961
  }
934
962
  function useResize(ref) {
935
- const [width, setWidth] = (0, import_react18.useState)(0);
936
- const [height, setHeight] = (0, import_react18.useState)(0);
937
- const handleResize = (0, import_react18.useCallback)(() => {
963
+ const [width, setWidth] = (0, import_react19.useState)(0);
964
+ const [height, setHeight] = (0, import_react19.useState)(0);
965
+ const handleResize = (0, import_react19.useCallback)(() => {
938
966
  var _a, _b, _c, _d;
939
967
  if ((ref == null ? void 0 : ref.current) !== null) {
940
968
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
941
969
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
942
970
  }
943
971
  }, [ref]);
944
- (0, import_react18.useEffect)(() => {
972
+ (0, import_react19.useEffect)(() => {
945
973
  window.addEventListener("load", handleResize);
946
974
  window.addEventListener("resize", handleResize);
947
975
  return () => {
@@ -949,7 +977,7 @@ function useResize(ref) {
949
977
  window.removeEventListener("resize", handleResize);
950
978
  };
951
979
  }, [ref, handleResize]);
952
- (0, import_react18.useEffect)(() => {
980
+ (0, import_react19.useEffect)(() => {
953
981
  handleResize();
954
982
  }, []);
955
983
  return { width, height };
@@ -992,8 +1020,8 @@ function releaseFocusTrap(inertElements) {
992
1020
  }
993
1021
 
994
1022
  // src/form/date-picker/date-picker.tsx
995
- var import_jsx_runtime17 = require("react/jsx-runtime");
996
- var DatePicker = (0, import_react19.forwardRef)(function DatePicker2(_a, ref) {
1023
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1024
+ var DatePicker = (0, import_react20.forwardRef)(function DatePicker2(_a, ref) {
997
1025
  var _b = _a, {
998
1026
  className,
999
1027
  variant,
@@ -1017,12 +1045,12 @@ var DatePicker = (0, import_react19.forwardRef)(function DatePicker2(_a, ref) {
1017
1045
  "readOnly",
1018
1046
  "calendarButtonTitle"
1019
1047
  ]);
1020
- const inputRef = (0, import_react19.useRef)(null);
1048
+ const inputRef = (0, import_react20.useRef)(null);
1021
1049
  const mergedRef = useMergeRefs([inputRef, ref]);
1022
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1050
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1023
1051
  InputGroup,
1024
1052
  {
1025
- className: (0, import_typed_classname17.clsx)("hds-date-picker", className),
1053
+ className: (0, import_typed_classname18.clsx)("hds-date-picker", className),
1026
1054
  disabled,
1027
1055
  errorMessage,
1028
1056
  id,
@@ -1031,8 +1059,8 @@ var DatePicker = (0, import_react19.forwardRef)(function DatePicker2(_a, ref) {
1031
1059
  readOnly,
1032
1060
  style,
1033
1061
  variant,
1034
- children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
1035
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1062
+ children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
1063
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1036
1064
  "input",
1037
1065
  __spreadProps(__spreadValues(__spreadValues({}, rest), inputProps), {
1038
1066
  disabled,
@@ -1041,10 +1069,10 @@ var DatePicker = (0, import_react19.forwardRef)(function DatePicker2(_a, ref) {
1041
1069
  type: "date"
1042
1070
  })
1043
1071
  ),
1044
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1072
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1045
1073
  "button",
1046
1074
  {
1047
- className: (0, import_typed_classname17.clsx)("hds-date-picker__calendar-button"),
1075
+ className: (0, import_typed_classname18.clsx)("hds-date-picker__calendar-button"),
1048
1076
  type: "button",
1049
1077
  title: calendarButtonTitle,
1050
1078
  onClick: () => {
@@ -1060,52 +1088,52 @@ var DatePicker = (0, import_react19.forwardRef)(function DatePicker2(_a, ref) {
1060
1088
  DatePicker.displayName = "DatePicker";
1061
1089
 
1062
1090
  // src/form/error-summary/error-summary.tsx
1063
- var import_react25 = require("react");
1091
+ var import_react26 = require("react");
1064
1092
 
1065
1093
  // src/message/message.tsx
1066
- var import_react20 = require("react");
1067
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1094
+ var import_react21 = require("react");
1095
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1068
1096
  var import_react_slot7 = require("@radix-ui/react-slot");
1069
- var import_jsx_runtime18 = require("react/jsx-runtime");
1070
- var MessageTitle = (0, import_react20.forwardRef)(
1097
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1098
+ var MessageTitle = (0, import_react21.forwardRef)(
1071
1099
  (_a, ref) => {
1072
1100
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1073
1101
  const Component = asChild ? import_react_slot7.Slot : "div";
1074
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1102
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1075
1103
  Component,
1076
1104
  __spreadValues({
1077
- className: (0, import_typed_classname18.clsx)("hds-message__title", className),
1105
+ className: (0, import_typed_classname19.clsx)("hds-message__title", className),
1078
1106
  ref
1079
1107
  }, rest)
1080
1108
  );
1081
1109
  }
1082
1110
  );
1083
1111
  MessageTitle.displayName = "Message.Title";
1084
- var MessageDescription = (0, import_react20.forwardRef)(
1112
+ var MessageDescription = (0, import_react21.forwardRef)(
1085
1113
  (_a, ref) => {
1086
1114
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1087
1115
  const Component = asChild ? import_react_slot7.Slot : "div";
1088
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1116
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1089
1117
  Component,
1090
1118
  __spreadValues({
1091
- className: (0, import_typed_classname18.clsx)("hds-message__description", className),
1119
+ className: (0, import_typed_classname19.clsx)("hds-message__description", className),
1092
1120
  ref
1093
1121
  }, rest)
1094
1122
  );
1095
1123
  }
1096
1124
  );
1097
1125
  MessageDescription.displayName = "Message.Description";
1098
- var Message = (0, import_react20.forwardRef)(
1126
+ var Message = (0, import_react21.forwardRef)(
1099
1127
  (_a, ref) => {
1100
1128
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1101
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1102
1130
  Box,
1103
1131
  __spreadProps(__spreadValues({
1104
- className: (0, import_typed_classname18.clsx)(`hds-message`, `hds-message--${variant}`, className),
1132
+ className: (0, import_typed_classname19.clsx)(`hds-message`, `hds-message--${variant}`, className),
1105
1133
  ref
1106
1134
  }, rest), {
1107
1135
  children: [
1108
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: (0, import_typed_classname18.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1136
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_typed_classname19.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1109
1137
  children
1110
1138
  ]
1111
1139
  })
@@ -1117,30 +1145,30 @@ Message.Title = MessageTitle;
1117
1145
  Message.Description = MessageDescription;
1118
1146
 
1119
1147
  // src/list/list.tsx
1120
- var import_react21 = require("react");
1121
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1122
- var import_jsx_runtime19 = require("react/jsx-runtime");
1123
- var UnorderedList = (0, import_react21.forwardRef)(
1148
+ var import_react22 = require("react");
1149
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1150
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1151
+ var UnorderedList = (0, import_react22.forwardRef)(
1124
1152
  (_a, ref) => {
1125
1153
  var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1126
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1154
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1127
1155
  "ul",
1128
1156
  __spreadValues({
1129
1157
  ref,
1130
- className: (0, import_typed_classname19.clsx)("hds-list", `hds-list--${size}`, className)
1158
+ className: (0, import_typed_classname20.clsx)("hds-list", `hds-list--${size}`, className)
1131
1159
  }, rest)
1132
1160
  );
1133
1161
  }
1134
1162
  );
1135
1163
  UnorderedList.displayName = "UnorderedList";
1136
- var OrderedList = (0, import_react21.forwardRef)(
1164
+ var OrderedList = (0, import_react22.forwardRef)(
1137
1165
  (_a, ref) => {
1138
1166
  var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1139
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1167
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1140
1168
  "ol",
1141
1169
  __spreadValues({
1142
1170
  ref,
1143
- className: (0, import_typed_classname19.clsx)("hds-list", `hds-list--${size}`, className)
1171
+ className: (0, import_typed_classname20.clsx)("hds-list", `hds-list--${size}`, className)
1144
1172
  }, rest)
1145
1173
  );
1146
1174
  }
@@ -1148,17 +1176,17 @@ var OrderedList = (0, import_react21.forwardRef)(
1148
1176
  OrderedList.displayName = "OrderedList";
1149
1177
 
1150
1178
  // src/list/link-list.tsx
1151
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1152
- var import_react22 = require("react");
1153
- var import_jsx_runtime20 = require("react/jsx-runtime");
1154
- var LinkList = (0, import_react22.forwardRef)(
1179
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1180
+ var import_react23 = require("react");
1181
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1182
+ var LinkList = (0, import_react23.forwardRef)(
1155
1183
  (_a, ref) => {
1156
1184
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1157
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1185
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1158
1186
  UnorderedList,
1159
1187
  __spreadValues({
1160
1188
  ref,
1161
- className: (0, import_typed_classname20.clsx)("hds-list--link-list", className)
1189
+ className: (0, import_typed_classname21.clsx)("hds-list--link-list", className)
1162
1190
  }, rest)
1163
1191
  );
1164
1192
  }
@@ -1167,21 +1195,23 @@ LinkList.displayName = "LinkList";
1167
1195
 
1168
1196
  // src/link/link.tsx
1169
1197
  var React2 = require("react");
1170
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1171
- var import_react23 = require("react");
1198
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1199
+ var import_react24 = require("react");
1172
1200
  var import_react_slot8 = require("@radix-ui/react-slot");
1173
- var import_jsx_runtime21 = require("react/jsx-runtime");
1174
- var Link = (0, import_react23.forwardRef)(
1201
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1202
+ var Link = (0, import_react24.forwardRef)(
1175
1203
  (_a, ref) => {
1176
- var _b = _a, { asChild, children, variant = "underline", size = "default", className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "className"]);
1204
+ var _b = _a, { asChild, children, variant = "underline", size = "default", icon, className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "icon", "className"]);
1177
1205
  const Component = asChild ? import_react_slot8.Slot : "a";
1178
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1206
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1179
1207
  Component,
1180
1208
  __spreadProps(__spreadValues({
1181
- className: (0, import_typed_classname21.clsx)(
1209
+ className: (0, import_typed_classname22.clsx)(
1182
1210
  "hds-link",
1183
1211
  variant !== "underline" && `hds-link--${variant}`,
1184
- size !== "default" && size !== "medium" && `hds-link--${size}`,
1212
+ size !== "default" && `hds-link--${size}`,
1213
+ { "hds-link--trailing-icon": icon === "trailing" },
1214
+ { "hds-link--leading-icon": icon === "leading" },
1185
1215
  className
1186
1216
  ),
1187
1217
  ref
@@ -1194,9 +1224,9 @@ var Link = (0, import_react23.forwardRef)(
1194
1224
  Link.displayName = "Link";
1195
1225
 
1196
1226
  // src/utils/auto-animate-height.tsx
1197
- var import_react24 = require("react");
1198
- var import_jsx_runtime22 = require("react/jsx-runtime");
1199
- var AutoAnimateHeight = (0, import_react24.forwardRef)(
1227
+ var import_react25 = require("react");
1228
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1229
+ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1200
1230
  (_a, ref) => {
1201
1231
  var _b = _a, {
1202
1232
  children,
@@ -1212,16 +1242,16 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1212
1242
  "onTransitionEnd"
1213
1243
  ]);
1214
1244
  var _a2, _b2;
1215
- const rootRef = (0, import_react24.useRef)(null);
1245
+ const rootRef = (0, import_react25.useRef)(null);
1216
1246
  const mergedRef = useMergeRefs([rootRef, ref]);
1217
- const measurementRef = (0, import_react24.useRef)(null);
1218
- const [height, setHeight] = (0, import_react24.useState)(
1247
+ const measurementRef = (0, import_react25.useRef)(null);
1248
+ const [height, setHeight] = (0, import_react25.useState)(
1219
1249
  void 0
1220
1250
  );
1221
- const [clonedChildren, setClonedChildren] = (0, import_react24.useState)(
1222
- () => (0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children }), {})
1251
+ const [clonedChildren, setClonedChildren] = (0, import_react25.useState)(
1252
+ () => (0, import_react25.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children }), {})
1223
1253
  );
1224
- (0, import_react24.useEffect)(() => {
1254
+ (0, import_react25.useEffect)(() => {
1225
1255
  var _a3;
1226
1256
  if (!rootRef.current) return;
1227
1257
  if (!measurementRef.current) return;
@@ -1237,7 +1267,7 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1237
1267
  });
1238
1268
  resizeObserver.observe(currentMeasurement);
1239
1269
  setHeight({ height: newHeight, shouldAnimate: true });
1240
- const nextClonedChildren = (0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children }), {});
1270
+ const nextClonedChildren = (0, import_react25.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children }), {});
1241
1271
  if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
1242
1272
  setClonedChildren(nextClonedChildren);
1243
1273
  return () => {
@@ -1255,7 +1285,7 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1255
1285
  currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
1256
1286
  };
1257
1287
  }, [children]);
1258
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1288
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1259
1289
  "div",
1260
1290
  __spreadProps(__spreadValues({
1261
1291
  ref: mergedRef,
@@ -1271,7 +1301,7 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1271
1301
  }, style)
1272
1302
  }, rest), {
1273
1303
  children: [
1274
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1304
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1275
1305
  "div",
1276
1306
  {
1277
1307
  "aria-hidden": true,
@@ -1334,33 +1364,33 @@ function labelForInput(input) {
1334
1364
  }
1335
1365
 
1336
1366
  // src/form/error-summary/error-summary.tsx
1337
- var import_jsx_runtime23 = require("react/jsx-runtime");
1338
- var ErrorSummaryHeading = (0, import_react25.forwardRef)((_a, ref) => {
1367
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1368
+ var ErrorSummaryHeading = (0, import_react26.forwardRef)((_a, ref) => {
1339
1369
  var _b = _a, { children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["children", "as", "autoFocus"]);
1340
- const focusRef = (0, import_react25.useRef)(null);
1370
+ const focusRef = (0, import_react26.useRef)(null);
1341
1371
  const mergedRef = useMergeRefs([focusRef, ref]);
1342
- (0, import_react25.useEffect)(() => {
1372
+ (0, import_react26.useEffect)(() => {
1343
1373
  setTimeout(() => {
1344
1374
  if (focusRef.current && autoFocus) {
1345
1375
  focusRef.current.focus();
1346
1376
  }
1347
1377
  });
1348
1378
  }, []);
1349
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Message.Title, __spreadProps(__spreadValues({ ref: mergedRef, tabIndex: -1, asChild: true }, rest), { children: Tag ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Tag, { children }) : children }));
1379
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Message.Title, __spreadProps(__spreadValues({ ref: mergedRef, tabIndex: -1, asChild: true }, rest), { children: Tag ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Tag, { children }) : children }));
1350
1380
  });
1351
1381
  ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1352
- var ErrorSummaryList = (0, import_react25.forwardRef)(
1382
+ var ErrorSummaryList = (0, import_react26.forwardRef)(
1353
1383
  (_a, ref) => {
1354
1384
  var _b = _a, { children, style: _style, size = "small" } = _b, rest = __objRest(_b, ["children", "style", "size"]);
1355
1385
  const style = __spreadValues({
1356
1386
  // Match the link `solid` style, which black underline
1357
1387
  "--_hds-list-marker-color": "var(--hds-ui-colors-black)"
1358
1388
  }, _style);
1359
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Message.Description, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref, style }, rest), { children })) });
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Message.Description, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref, style }, rest), { children })) });
1360
1390
  }
1361
1391
  );
1362
1392
  ErrorSummaryList.displayName = "ErrorSummary.List";
1363
- var ErrorSummaryItem = (0, import_react25.forwardRef)(
1393
+ var ErrorSummaryItem = (0, import_react26.forwardRef)(
1364
1394
  (_a, ref) => {
1365
1395
  var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1366
1396
  function onClick(e) {
@@ -1370,14 +1400,14 @@ var ErrorSummaryItem = (0, import_react25.forwardRef)(
1370
1400
  e.preventDefault();
1371
1401
  }
1372
1402
  }
1373
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1403
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("li", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1374
1404
  }
1375
1405
  );
1376
1406
  ErrorSummaryItem.displayName = "ErrorSummary.Item";
1377
- var ErrorSummary = (0, import_react25.forwardRef)(
1407
+ var ErrorSummary = (0, import_react26.forwardRef)(
1378
1408
  (_a, ref) => {
1379
1409
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1380
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Message, __spreadProps(__spreadValues({ variant: "warning", ref }, rest), { children }));
1410
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Message, __spreadProps(__spreadValues({ variant: "warning", ref }, rest), { children }));
1381
1411
  }
1382
1412
  );
1383
1413
  ErrorSummary.displayName = "ErrorSummary";
@@ -1386,15 +1416,15 @@ ErrorSummary.List = ErrorSummaryList;
1386
1416
  ErrorSummary.Item = ErrorSummaryItem;
1387
1417
 
1388
1418
  // src/form/input/input.tsx
1389
- var import_react26 = require("react");
1390
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1391
- var import_jsx_runtime24 = require("react/jsx-runtime");
1392
- var Input = (0, import_react26.forwardRef)(function Input2(_a, ref) {
1419
+ var import_react27 = require("react");
1420
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1421
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1422
+ var Input = (0, import_react27.forwardRef)(function Input2(_a, ref) {
1393
1423
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1394
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1424
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1395
1425
  InputGroup,
1396
1426
  {
1397
- className: (0, import_typed_classname22.clsx)("hds-input", className),
1427
+ className: (0, import_typed_classname23.clsx)("hds-input", className),
1398
1428
  disabled,
1399
1429
  errorMessage,
1400
1430
  id,
@@ -1403,35 +1433,35 @@ var Input = (0, import_react26.forwardRef)(function Input2(_a, ref) {
1403
1433
  readOnly,
1404
1434
  style,
1405
1435
  variant,
1406
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1436
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1407
1437
  }
1408
1438
  );
1409
1439
  });
1410
1440
  Input.displayName = "Input";
1411
1441
 
1412
1442
  // src/form/radio-button/radio-button.tsx
1413
- var import_react28 = require("react");
1414
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1443
+ var import_react29 = require("react");
1444
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1415
1445
 
1416
1446
  // src/form/radio-button/radio-group.tsx
1417
- var import_react27 = require("react");
1418
- var import_jsx_runtime25 = require("react/jsx-runtime");
1419
- var RadioGroupContext = (0, import_react27.createContext)({
1447
+ var import_react28 = require("react");
1448
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1449
+ var RadioGroupContext = (0, import_react28.createContext)({
1420
1450
  name: void 0,
1421
1451
  hasError: false,
1422
1452
  onChange: () => {
1423
1453
  return void 0;
1424
1454
  }
1425
1455
  });
1426
- var useRadioGroupContext = () => (0, import_react27.useContext)(RadioGroupContext);
1427
- var RadioGroup = (0, import_react27.forwardRef)(function RadioGroup2(_a, ref) {
1456
+ var useRadioGroupContext = () => (0, import_react28.useContext)(RadioGroupContext);
1457
+ var RadioGroup = (0, import_react28.forwardRef)(function RadioGroup2(_a, ref) {
1428
1458
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1429
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1459
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1430
1460
  });
1431
1461
  RadioGroup.displayName = "RadioGroup";
1432
1462
 
1433
1463
  // src/form/radio-button/radio-button.tsx
1434
- var import_jsx_runtime26 = require("react/jsx-runtime");
1464
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1435
1465
  var isChecked = ({
1436
1466
  checked,
1437
1467
  selectedValue,
@@ -1441,7 +1471,7 @@ var isChecked = ({
1441
1471
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1442
1472
  return void 0;
1443
1473
  };
1444
- var RadioButton = (0, import_react28.forwardRef)(
1474
+ var RadioButton = (0, import_react29.forwardRef)(
1445
1475
  (_a, ref) => {
1446
1476
  var _b = _a, {
1447
1477
  checked,
@@ -1469,10 +1499,10 @@ var RadioButton = (0, import_react28.forwardRef)(
1469
1499
  ]);
1470
1500
  const { hasError: hasFieldsetError } = useFieldsetContext();
1471
1501
  const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
1472
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1502
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1473
1503
  "div",
1474
1504
  {
1475
- className: (0, import_typed_classname23.clsx)(
1505
+ className: (0, import_typed_classname24.clsx)(
1476
1506
  "hds-radio-button",
1477
1507
  {
1478
1508
  [`hds-radio-button--${variant}`]: variant === "bounding-box",
@@ -1481,8 +1511,8 @@ var RadioButton = (0, import_react28.forwardRef)(
1481
1511
  className
1482
1512
  ),
1483
1513
  children: [
1484
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { children: [
1485
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1514
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
1515
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1486
1516
  "input",
1487
1517
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1488
1518
  checked: isChecked({ checked, selectedValue, value }),
@@ -1491,8 +1521,8 @@ var RadioButton = (0, import_react28.forwardRef)(
1491
1521
  type: "radio"
1492
1522
  })
1493
1523
  ),
1494
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1495
- title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1524
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1525
+ title ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1496
1526
  ] }),
1497
1527
  title ? children : null
1498
1528
  ]
@@ -1503,15 +1533,15 @@ var RadioButton = (0, import_react28.forwardRef)(
1503
1533
  RadioButton.displayName = "RadioButton";
1504
1534
 
1505
1535
  // src/form/select/select.tsx
1506
- var import_react29 = require("react");
1507
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1508
- var import_jsx_runtime27 = require("react/jsx-runtime");
1509
- var Select = (0, import_react29.forwardRef)(function Select2(_a, ref) {
1536
+ var import_react30 = require("react");
1537
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1538
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1539
+ var Select = (0, import_react30.forwardRef)(function Select2(_a, ref) {
1510
1540
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
1511
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1541
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1512
1542
  InputGroup,
1513
1543
  {
1514
- className: (0, import_typed_classname24.clsx)("hds-select", className),
1544
+ className: (0, import_typed_classname25.clsx)("hds-select", className),
1515
1545
  disabled,
1516
1546
  errorMessage,
1517
1547
  id,
@@ -1519,22 +1549,22 @@ var Select = (0, import_react29.forwardRef)(function Select2(_a, ref) {
1519
1549
  labelProps,
1520
1550
  style,
1521
1551
  variant,
1522
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1552
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1523
1553
  }
1524
1554
  );
1525
1555
  });
1526
1556
  Select.displayName = "Select";
1527
1557
 
1528
1558
  // src/form/textarea/textarea.tsx
1529
- var import_react30 = require("react");
1530
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1531
- var import_jsx_runtime28 = require("react/jsx-runtime");
1532
- var Textarea = (0, import_react30.forwardRef)(function Textarea2(_a, ref) {
1559
+ var import_react31 = require("react");
1560
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1561
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1562
+ var Textarea = (0, import_react31.forwardRef)(function Textarea2(_a, ref) {
1533
1563
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1534
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1564
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1535
1565
  InputGroup,
1536
1566
  {
1537
- className: (0, import_typed_classname25.clsx)("hds-textarea", className),
1567
+ className: (0, import_typed_classname26.clsx)("hds-textarea", className),
1538
1568
  disabled,
1539
1569
  errorMessage,
1540
1570
  id,
@@ -1543,40 +1573,40 @@ var Textarea = (0, import_react30.forwardRef)(function Textarea2(_a, ref) {
1543
1573
  readOnly,
1544
1574
  style,
1545
1575
  variant,
1546
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1576
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1547
1577
  }
1548
1578
  );
1549
1579
  });
1550
1580
  Textarea.displayName = "Textarea";
1551
1581
 
1552
1582
  // src/footer/footer.tsx
1553
- var import_react31 = require("react");
1554
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1583
+ var import_react32 = require("react");
1584
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1555
1585
  var import_react_slot9 = require("@radix-ui/react-slot");
1556
- var import_jsx_runtime29 = require("react/jsx-runtime");
1557
- var FooterLogo = (0, import_react31.forwardRef)(
1586
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1587
+ var FooterLogo = (0, import_react32.forwardRef)(
1558
1588
  (_a, ref) => {
1559
1589
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1560
1590
  const Component = asChild ? import_react_slot9.Slot : "div";
1561
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname26.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1591
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname27.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1562
1592
  }
1563
1593
  );
1564
1594
  FooterLogo.displayName = "Footer.Logo";
1565
- var FooterButtonLink = (0, import_react31.forwardRef)(
1595
+ var FooterButtonLink = (0, import_react32.forwardRef)(
1566
1596
  (_a, ref) => {
1567
1597
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1568
1598
  const Component = asChild ? import_react_slot9.Slot : "a";
1569
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { asChild: true, variant: "primary-outline", className: (0, import_typed_classname26.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1599
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { asChild: true, variant: "inverted", className: (0, import_typed_classname27.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1570
1600
  }
1571
1601
  );
1572
1602
  FooterButtonLink.displayName = "FooterButton";
1573
- var FooterLinkSections = (0, import_react31.forwardRef)(
1603
+ var FooterLinkSections = (0, import_react32.forwardRef)(
1574
1604
  (_a, ref) => {
1575
1605
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1576
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1606
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1577
1607
  Accordion,
1578
1608
  __spreadProps(__spreadValues({
1579
- className: (0, import_typed_classname26.clsx)("hds-footer__link-sections", className),
1609
+ className: (0, import_typed_classname27.clsx)("hds-footer__link-sections", className),
1580
1610
  ref
1581
1611
  }, rest), {
1582
1612
  children
@@ -1585,39 +1615,39 @@ var FooterLinkSections = (0, import_react31.forwardRef)(
1585
1615
  }
1586
1616
  );
1587
1617
  FooterLinkSections.displayName = "Footer.LinkSections";
1588
- var FooterLinkSection = (0, import_react31.forwardRef)(
1618
+ var FooterLinkSection = (0, import_react32.forwardRef)(
1589
1619
  (_a, ref) => {
1590
1620
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1591
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(LinkList, { children });
1592
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1593
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1621
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkList, { children });
1622
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1623
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1594
1624
  Accordion.Item,
1595
1625
  __spreadProps(__spreadValues({
1596
- className: (0, import_typed_classname26.clsx)(`hds-footer__link-section`, className),
1626
+ className: (0, import_typed_classname27.clsx)(`hds-footer__link-section`, className),
1597
1627
  ref
1598
1628
  }, rest), {
1599
1629
  children: [
1600
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Accordion.Header, { children: heading }),
1601
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Accordion.Content, { children: linkListChildren })
1630
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Header, { children: heading }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Content, { children: linkListChildren })
1602
1632
  ]
1603
1633
  })
1604
1634
  ),
1605
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: (0, import_typed_classname26.clsx)(`hds-footer__link-section`, className), children: [
1606
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h2", { children: heading }),
1635
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_typed_classname27.clsx)(`hds-footer__link-section`, className), children: [
1636
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { children: heading }),
1607
1637
  linkListChildren
1608
1638
  ] })
1609
1639
  ] });
1610
1640
  }
1611
1641
  );
1612
1642
  FooterLinkSection.displayName = "Footer.LinkSection";
1613
- var Footer = (0, import_react31.forwardRef)(
1643
+ var Footer = (0, import_react32.forwardRef)(
1614
1644
  (_a, ref) => {
1615
1645
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1616
1646
  const Component = asChild ? import_react_slot9.Slot : "footer";
1617
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1647
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1618
1648
  Component,
1619
1649
  __spreadProps(__spreadValues({
1620
- className: (0, import_typed_classname26.clsx)(
1650
+ className: (0, import_typed_classname27.clsx)(
1621
1651
  `hds-footer`,
1622
1652
  variant === "slim" && "hds-footer--slim",
1623
1653
  className
@@ -1637,10 +1667,10 @@ Footer.LinkSection = FooterLinkSection;
1637
1667
 
1638
1668
  // src/help-text/help-text.tsx
1639
1669
  var Popover = __toESM(require("@radix-ui/react-popover"));
1640
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1641
- var import_react32 = require("react");
1642
- var import_jsx_runtime30 = require("react/jsx-runtime");
1643
- var HelpText = (0, import_react32.forwardRef)(
1670
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1671
+ var import_react33 = require("react");
1672
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1673
+ var HelpText = (0, import_react33.forwardRef)(
1644
1674
  (_a, ref) => {
1645
1675
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1646
1676
  return (
@@ -1648,24 +1678,24 @@ var HelpText = (0, import_react32.forwardRef)(
1648
1678
  // In the future we can use the native popover api, but as of writing, though all browsers support it
1649
1679
  // it's not far enough back to be used in production
1650
1680
  // https://caniuse.com/mdn-html_elements_input_popovertarget
1651
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Popover.Root, { children: [
1652
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1681
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover.Root, { children: [
1682
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1653
1683
  "button",
1654
1684
  __spreadProps(__spreadValues({
1655
1685
  ref,
1656
- className: (0, import_typed_classname27.clsx)("hds-help-text-button", className),
1686
+ className: (0, import_typed_classname28.clsx)("hds-help-text-button", className),
1657
1687
  title,
1658
1688
  type: "button"
1659
1689
  }, rest), {
1660
1690
  children
1661
1691
  })
1662
1692
  ) }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1693
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1664
1694
  Box,
1665
1695
  __spreadProps(__spreadValues({}, boxProps), {
1666
- className: (0, import_typed_classname27.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1696
+ className: (0, import_typed_classname28.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1667
1697
  children: [
1668
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Box.CloseButton, {}) }),
1698
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Box.CloseButton, {}) }),
1669
1699
  helpText
1670
1700
  ]
1671
1701
  })
@@ -1677,18 +1707,18 @@ var HelpText = (0, import_react32.forwardRef)(
1677
1707
  HelpText.displayName = "HelpText";
1678
1708
 
1679
1709
  // src/layout/container/container.tsx
1680
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1710
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1681
1711
  var import_react_slot10 = require("@radix-ui/react-slot");
1682
- var import_react33 = require("react");
1683
- var import_jsx_runtime31 = require("react/jsx-runtime");
1684
- var Container = (0, import_react33.forwardRef)(
1712
+ var import_react34 = require("react");
1713
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1714
+ var Container = (0, import_react34.forwardRef)(
1685
1715
  (_a, ref) => {
1686
1716
  var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
1687
1717
  const Component = asChild ? import_react_slot10.Slot : Tag;
1688
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1718
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1689
1719
  Component,
1690
1720
  __spreadProps(__spreadValues({}, rest), {
1691
- className: (0, import_typed_classname28.clsx)(
1721
+ className: (0, import_typed_classname29.clsx)(
1692
1722
  "hds-container",
1693
1723
  { "hds-container--slim": variant === "slim" },
1694
1724
  className
@@ -1702,9 +1732,9 @@ var Container = (0, import_react33.forwardRef)(
1702
1732
  Container.displayName = "Container";
1703
1733
 
1704
1734
  // src/layout/grid/grid.tsx
1705
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1735
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1706
1736
  var import_react_slot11 = require("@radix-ui/react-slot");
1707
- var import_react34 = require("react");
1737
+ var import_react35 = require("react");
1708
1738
 
1709
1739
  // src/layout/responsive.ts
1710
1740
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1725,17 +1755,17 @@ function getSpacingVariable(size) {
1725
1755
  }
1726
1756
 
1727
1757
  // src/layout/grid/grid.tsx
1728
- var import_jsx_runtime32 = require("react/jsx-runtime");
1729
- var GridItem = (0, import_react34.forwardRef)(
1758
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1759
+ var GridItem = (0, import_react35.forwardRef)(
1730
1760
  (_a, ref) => {
1731
1761
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1732
1762
  const Component = asChild ? import_react_slot11.Slot : "div";
1733
1763
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1734
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1764
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1735
1765
  Component,
1736
1766
  __spreadProps(__spreadValues({
1737
1767
  style,
1738
- className: (0, import_typed_classname29.clsx)("hds-grid__item", className),
1768
+ className: (0, import_typed_classname30.clsx)("hds-grid__item", className),
1739
1769
  ref
1740
1770
  }, rest), {
1741
1771
  children
@@ -1744,16 +1774,16 @@ var GridItem = (0, import_react34.forwardRef)(
1744
1774
  }
1745
1775
  );
1746
1776
  GridItem.displayName = "Grid.Item";
1747
- var Grid = (0, import_react34.forwardRef)(
1777
+ var Grid = (0, import_react35.forwardRef)(
1748
1778
  (_a, ref) => {
1749
1779
  var _b = _a, { children, asChild, className, span, center, style: _style, gap, gapX, gapY } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap", "gapX", "gapY"]);
1750
1780
  const Component = asChild ? import_react_slot11.Slot : "div";
1751
1781
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
1752
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1782
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1753
1783
  Component,
1754
1784
  __spreadProps(__spreadValues({
1755
1785
  style,
1756
- className: (0, import_typed_classname29.clsx)("hds-grid", className),
1786
+ className: (0, import_typed_classname30.clsx)("hds-grid", className),
1757
1787
  ref
1758
1788
  }, rest), {
1759
1789
  children
@@ -1766,11 +1796,11 @@ Grid.Item = GridItem;
1766
1796
 
1767
1797
  // src/layout/stack/stack.tsx
1768
1798
  var React3 = require("react");
1769
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1770
- var import_react35 = require("react");
1799
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1800
+ var import_react36 = require("react");
1771
1801
  var import_react_slot12 = require("@radix-ui/react-slot");
1772
- var import_jsx_runtime33 = require("react/jsx-runtime");
1773
- var Stack = (0, import_react35.forwardRef)(
1802
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1803
+ var Stack = (0, import_react36.forwardRef)(
1774
1804
  (_a, ref) => {
1775
1805
  var _b = _a, {
1776
1806
  children,
@@ -1799,11 +1829,11 @@ var Stack = (0, import_react35.forwardRef)(
1799
1829
  ]);
1800
1830
  const Component = asChild ? import_react_slot12.Slot : "div";
1801
1831
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
1802
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1832
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1803
1833
  Component,
1804
1834
  __spreadProps(__spreadValues({
1805
1835
  style,
1806
- className: (0, import_typed_classname30.clsx)("hds-stack", className),
1836
+ className: (0, import_typed_classname31.clsx)("hds-stack", className),
1807
1837
  ref
1808
1838
  }, rest), {
1809
1839
  children
@@ -1812,66 +1842,66 @@ var Stack = (0, import_react35.forwardRef)(
1812
1842
  }
1813
1843
  );
1814
1844
  Stack.displayName = "Stack";
1815
- var HStack = (0, import_react35.forwardRef)((props, ref) => {
1816
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1845
+ var HStack = (0, import_react36.forwardRef)((props, ref) => {
1846
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1817
1847
  });
1818
1848
  HStack.displayName = "HStack";
1819
- var VStack = (0, import_react35.forwardRef)((props, ref) => {
1820
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1849
+ var VStack = (0, import_react36.forwardRef)((props, ref) => {
1850
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1821
1851
  });
1822
1852
  VStack.displayName = "VStack";
1823
1853
 
1824
1854
  // src/modal/modal.tsx
1825
- var import_react36 = require("react");
1826
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1855
+ var import_react37 = require("react");
1856
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1827
1857
  var import_react_slot13 = require("@radix-ui/react-slot");
1828
- var import_jsx_runtime34 = require("react/jsx-runtime");
1829
- var ModalHeader = (0, import_react36.forwardRef)(
1858
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1859
+ var ModalHeader = (0, import_react37.forwardRef)(
1830
1860
  (_a, ref) => {
1831
1861
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1832
1862
  const Component = asChild ? import_react_slot13.Slot : "h1";
1833
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1863
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1834
1864
  Component,
1835
1865
  __spreadValues({
1836
- className: (0, import_typed_classname31.clsx)("hds-modal__header", className),
1866
+ className: (0, import_typed_classname32.clsx)("hds-modal__header", className),
1837
1867
  ref
1838
1868
  }, rest)
1839
1869
  );
1840
1870
  }
1841
1871
  );
1842
1872
  ModalHeader.displayName = "Modal.Header";
1843
- var ModalContent = (0, import_react36.forwardRef)(
1873
+ var ModalContent = (0, import_react37.forwardRef)(
1844
1874
  (_a, ref) => {
1845
1875
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1846
1876
  const Component = asChild ? import_react_slot13.Slot : "div";
1847
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1877
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1848
1878
  Component,
1849
1879
  __spreadValues({
1850
- className: (0, import_typed_classname31.clsx)("hds-modal__content", className),
1880
+ className: (0, import_typed_classname32.clsx)("hds-modal__content", className),
1851
1881
  ref
1852
1882
  }, rest)
1853
1883
  );
1854
1884
  }
1855
1885
  );
1856
1886
  ModalContent.displayName = "Modal.Content";
1857
- var ModalFooter = (0, import_react36.forwardRef)(
1887
+ var ModalFooter = (0, import_react37.forwardRef)(
1858
1888
  (_a, ref) => {
1859
1889
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1860
1890
  const Component = asChild ? import_react_slot13.Slot : "footer";
1861
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1891
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1862
1892
  Component,
1863
1893
  __spreadValues({
1864
- className: (0, import_typed_classname31.clsx)("hds-modal__footer", className),
1894
+ className: (0, import_typed_classname32.clsx)("hds-modal__footer", className),
1865
1895
  ref
1866
1896
  }, rest)
1867
1897
  );
1868
1898
  }
1869
1899
  );
1870
1900
  ModalFooter.displayName = "Modal.Footer";
1871
- var Modal = (0, import_react36.forwardRef)(
1901
+ var Modal = (0, import_react37.forwardRef)(
1872
1902
  (_a, ref) => {
1873
1903
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1874
- const modalRef = (0, import_react36.useRef)(null);
1904
+ const modalRef = (0, import_react37.useRef)(null);
1875
1905
  const mergedRef = useMergeRefs([modalRef, ref]);
1876
1906
  function onCloseButtonClick() {
1877
1907
  var _a2;
@@ -1879,7 +1909,7 @@ var Modal = (0, import_react36.forwardRef)(
1879
1909
  return false;
1880
1910
  }
1881
1911
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1882
- (0, import_react36.useEffect)(() => {
1912
+ (0, import_react37.useEffect)(() => {
1883
1913
  if (modalRef.current && open !== void 0) {
1884
1914
  if (open && !modalRef.current.open) {
1885
1915
  modalRef.current.showModal();
@@ -1894,16 +1924,16 @@ var Modal = (0, import_react36.forwardRef)(
1894
1924
  }
1895
1925
  onClick == null ? void 0 : onClick(e);
1896
1926
  }
1897
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1927
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1898
1928
  Box,
1899
1929
  {
1900
1930
  asChild: true,
1901
- className: (0, import_typed_classname31.clsx)("hds-modal", className),
1931
+ className: (0, import_typed_classname32.clsx)("hds-modal", className),
1902
1932
  closeable: true,
1903
1933
  onClick: onDialogClick,
1904
1934
  onClose: onCloseButtonClick,
1905
1935
  variant: "white",
1906
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
1936
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
1907
1937
  }
1908
1938
  );
1909
1939
  }
@@ -1913,7 +1943,7 @@ Modal.Header = ModalHeader;
1913
1943
  Modal.Content = ModalContent;
1914
1944
  Modal.Footer = ModalFooter;
1915
1945
  function useScrollLock(modalRef, bodyClass) {
1916
- (0, import_react36.useEffect)(() => {
1946
+ (0, import_react37.useEffect)(() => {
1917
1947
  if (!modalRef.current) return;
1918
1948
  if (modalRef.current.open) document.body.classList.add(bodyClass);
1919
1949
  const observer = new MutationObserver(() => {
@@ -1933,18 +1963,18 @@ function useScrollLock(modalRef, bodyClass) {
1933
1963
  }
1934
1964
 
1935
1965
  // src/navbar/navbar.tsx
1936
- var import_react38 = require("react");
1937
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1966
+ var import_react39 = require("react");
1967
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1938
1968
  var import_react_slot14 = require("@radix-ui/react-slot");
1939
1969
 
1940
1970
  // src/navbar/navbar-expandable-menu.tsx
1941
- var import_react37 = require("react");
1942
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1971
+ var import_react38 = require("react");
1972
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1943
1973
 
1944
1974
  // src/navbar/icons.tsx
1945
- var import_jsx_runtime35 = require("react/jsx-runtime");
1975
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1946
1976
  function CloseIcon() {
1947
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1977
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1948
1978
  "path",
1949
1979
  {
1950
1980
  d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
@@ -1953,7 +1983,7 @@ function CloseIcon() {
1953
1983
  ) });
1954
1984
  }
1955
1985
  function MenuIcon() {
1956
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1986
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1957
1987
  "path",
1958
1988
  {
1959
1989
  fill: "currentColor",
@@ -1963,35 +1993,35 @@ function MenuIcon() {
1963
1993
  }
1964
1994
 
1965
1995
  // src/navbar/navbar-expandable-menu.tsx
1966
- var import_jsx_runtime36 = require("react/jsx-runtime");
1967
- var ExpandableMenuContext = (0, import_react37.createContext)(null);
1996
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1997
+ var ExpandableMenuContext = (0, import_react38.createContext)(null);
1968
1998
  var useNavbarExpendableMenuContext = () => {
1969
- const value = (0, import_react37.useContext)(ExpandableMenuContext);
1999
+ const value = (0, import_react38.useContext)(ExpandableMenuContext);
1970
2000
  if (value === null) {
1971
2001
  throw new Error("useNavbarExpendableMenuContext must be used within a Navbar.ExpandableMenu");
1972
2002
  }
1973
2003
  return value;
1974
2004
  };
1975
2005
  function NavbarExpandableMenu({ children }) {
1976
- const contentId = (0, import_react37.useId)();
1977
- const [open, setOpen] = (0, import_react37.useState)(false);
1978
- (0, import_react37.useEffect)(() => {
2006
+ const contentId = (0, import_react38.useId)();
2007
+ const [open, setOpen] = (0, import_react38.useState)(false);
2008
+ (0, import_react38.useEffect)(() => {
1979
2009
  if (open) {
1980
2010
  window.scrollTo(0, 0);
1981
- document.body.classList.add((0, import_typed_classname32.clsx)("hds-navbar-scroll-lock"));
2011
+ document.body.classList.add((0, import_typed_classname33.clsx)("hds-navbar-scroll-lock"));
1982
2012
  const releaseFocusTrap2 = focusTrap(
1983
- document.getElementsByClassName((0, import_typed_classname32.clsx)("hds-navbar"))[0]
2013
+ document.getElementsByClassName((0, import_typed_classname33.clsx)("hds-navbar"))[0]
1984
2014
  );
1985
2015
  return () => {
1986
- document.body.classList.remove((0, import_typed_classname32.clsx)("hds-navbar-scroll-lock"));
2016
+ document.body.classList.remove((0, import_typed_classname33.clsx)("hds-navbar-scroll-lock"));
1987
2017
  releaseFocusTrap2();
1988
2018
  };
1989
2019
  }
1990
2020
  }, [open]);
1991
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2021
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
1992
2022
  }
1993
2023
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
1994
- var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
2024
+ var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
1995
2025
  (_a, ref) => {
1996
2026
  var _b = _a, {
1997
2027
  whenClosedText,
@@ -2009,9 +2039,9 @@ var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
2009
2039
  "className"
2010
2040
  ]);
2011
2041
  const { contentId, open, setOpen } = useNavbarExpendableMenuContext();
2012
- const [textWidth, setTextWidth] = (0, import_react37.useState)(void 0);
2013
- const measurementId = (0, import_react37.useId)();
2014
- (0, import_react37.useEffect)(() => {
2042
+ const [textWidth, setTextWidth] = (0, import_react38.useState)(void 0);
2043
+ const measurementId = (0, import_react38.useId)();
2044
+ (0, import_react38.useEffect)(() => {
2015
2045
  var _a2, _b2, _c, _d;
2016
2046
  const widthWhenOpen = (_b2 = (_a2 = document.getElementById(`${measurementId}-when-open`)) == null ? void 0 : _a2.getBoundingClientRect().width) != null ? _b2 : 0;
2017
2047
  const widthWhenClosed = (_d = (_c = document.getElementById(`${measurementId}-when-closed`)) == null ? void 0 : _c.getBoundingClientRect().width) != null ? _d : 0;
@@ -2019,16 +2049,16 @@ var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
2019
2049
  }, [measurementId]);
2020
2050
  const text = open ? whenOpenText : whenClosedText;
2021
2051
  const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
2022
- const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MenuIcon, {});
2052
+ const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MenuIcon, {});
2023
2053
  function toggleOpen() {
2024
2054
  setOpen(!open);
2025
2055
  }
2026
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2056
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2027
2057
  "button",
2028
2058
  __spreadProps(__spreadValues({
2029
2059
  "aria-expanded": open,
2030
2060
  "aria-controls": contentId,
2031
- className: (0, import_typed_classname32.clsx)("hds-navbar__item", className),
2061
+ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className),
2032
2062
  onClick: toggleOpen,
2033
2063
  ref,
2034
2064
  title,
@@ -2036,7 +2066,7 @@ var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
2036
2066
  style: __spreadValues({ position: "relative" }, style)
2037
2067
  }, rest), {
2038
2068
  children: [
2039
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2069
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2040
2070
  "span",
2041
2071
  {
2042
2072
  id: `${measurementId}-when-closed`,
@@ -2050,7 +2080,7 @@ var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
2050
2080
  children: whenOpenText
2051
2081
  }
2052
2082
  ),
2053
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2083
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2054
2084
  "span",
2055
2085
  {
2056
2086
  id: `${measurementId}-when-open`,
@@ -2064,57 +2094,57 @@ var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
2064
2094
  children: whenClosedText
2065
2095
  }
2066
2096
  ),
2067
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2097
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2068
2098
  "span",
2069
2099
  {
2070
2100
  style: { width: textWidth, whiteSpace: "nowrap" },
2071
- className: (0, import_typed_classname32.clsx)("hds-navbar__item-responsive-text"),
2101
+ className: (0, import_typed_classname33.clsx)("hds-navbar__item-responsive-text"),
2072
2102
  children: text
2073
2103
  }
2074
2104
  ),
2075
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { style: { width: 32, height: 32 }, children: icon })
2105
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { style: { width: 32, height: 32 }, children: icon })
2076
2106
  ]
2077
2107
  })
2078
2108
  );
2079
2109
  }
2080
2110
  );
2081
2111
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenuTrigger";
2082
- var NavbarExpandableMenuContent = (0, import_react37.forwardRef)((_a, ref) => {
2112
+ var NavbarExpandableMenuContent = (0, import_react38.forwardRef)((_a, ref) => {
2083
2113
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2084
2114
  const { contentId, open } = useNavbarExpendableMenuContext();
2085
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2115
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2086
2116
  "section",
2087
2117
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
2088
2118
  id: contentId,
2089
- className: (0, import_typed_classname32.clsx)("hds-navbar__expandable-menu-content", className),
2119
+ className: (0, import_typed_classname33.clsx)("hds-navbar__expandable-menu-content", className),
2090
2120
  "data-state": open ? "open" : "closed"
2091
2121
  }), { inert: open ? void 0 : "true" }), {
2092
2122
  ref,
2093
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: (0, import_typed_classname32.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2123
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_typed_classname33.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2094
2124
  })
2095
2125
  );
2096
2126
  });
2097
2127
  NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenuContent";
2098
2128
 
2099
2129
  // src/navbar/navbar.tsx
2100
- var import_jsx_runtime37 = require("react/jsx-runtime");
2101
- var NavbarLogo = (0, import_react38.forwardRef)(
2130
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2131
+ var NavbarLogo = (0, import_react39.forwardRef)(
2102
2132
  (_a, ref) => {
2103
2133
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
2104
2134
  const Component = asChild ? import_react_slot14.Slot : "div";
2105
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2135
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2106
2136
  }
2107
2137
  );
2108
2138
  NavbarLogo.displayName = "Navbar.Logo";
2109
- var NavbarLogoAndServiceText = (0, import_react38.forwardRef)(
2139
+ var NavbarLogoAndServiceText = (0, import_react39.forwardRef)(
2110
2140
  (_a, ref) => {
2111
2141
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
2112
2142
  const Component = asChild ? import_react_slot14.Slot : "div";
2113
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2143
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2114
2144
  Component,
2115
2145
  __spreadProps(__spreadValues({
2116
2146
  ref,
2117
- className: (0, import_typed_classname33.clsx)(
2147
+ className: (0, import_typed_classname34.clsx)(
2118
2148
  "hds-navbar__logo-and-service-text",
2119
2149
  `hds-navbar__logo-and-service-text--${variant}`,
2120
2150
  className
@@ -2126,29 +2156,29 @@ var NavbarLogoAndServiceText = (0, import_react38.forwardRef)(
2126
2156
  }
2127
2157
  );
2128
2158
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
2129
- var NavbarItemIcon = (0, import_react38.forwardRef)(
2159
+ var NavbarItemIcon = (0, import_react39.forwardRef)(
2130
2160
  (_a, ref) => {
2131
2161
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2132
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_slot14.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2162
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_slot14.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2133
2163
  }
2134
2164
  );
2135
2165
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
2136
- var NavbarItem = (0, import_react38.forwardRef)(
2166
+ var NavbarItem = (0, import_react39.forwardRef)(
2137
2167
  (_a, ref) => {
2138
2168
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2139
2169
  const Component = asChild ? import_react_slot14.Slot : "div";
2140
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2170
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2141
2171
  }
2142
2172
  );
2143
2173
  NavbarItem.displayName = "Navbar.Item";
2144
- var NavbarButtonItem = (0, import_react38.forwardRef)(
2174
+ var NavbarButtonItem = (0, import_react39.forwardRef)(
2145
2175
  (_a, ref) => {
2146
2176
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2147
2177
  const Component = asChild ? import_react_slot14.Slot : "button";
2148
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2178
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2149
2179
  Component,
2150
2180
  __spreadProps(__spreadValues({
2151
- className: (0, import_typed_classname33.clsx)("hds-navbar__item", className),
2181
+ className: (0, import_typed_classname34.clsx)("hds-navbar__item", className),
2152
2182
  ref,
2153
2183
  type: "button"
2154
2184
  }, rest), {
@@ -2158,36 +2188,36 @@ var NavbarButtonItem = (0, import_react38.forwardRef)(
2158
2188
  }
2159
2189
  );
2160
2190
  NavbarButtonItem.displayName = "Navbar.ButtonItem";
2161
- var NavbarLinkItem = (0, import_react38.forwardRef)(
2191
+ var NavbarLinkItem = (0, import_react39.forwardRef)(
2162
2192
  (_a, ref) => {
2163
2193
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2164
2194
  const Component = asChild ? import_react_slot14.Slot : "a";
2165
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2195
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2166
2196
  }
2167
2197
  );
2168
2198
  NavbarLinkItem.displayName = "Navbar.LinkItem";
2169
- var NavbarNavigation = (0, import_react38.forwardRef)(
2199
+ var NavbarNavigation = (0, import_react39.forwardRef)(
2170
2200
  (_a, ref) => {
2171
2201
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2172
2202
  const Component = asChild ? import_react_slot14.Slot : "div";
2173
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2203
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2174
2204
  Component,
2175
2205
  __spreadValues({
2176
- className: (0, import_typed_classname33.clsx)("hds-navbar__navigation", className),
2206
+ className: (0, import_typed_classname34.clsx)("hds-navbar__navigation", className),
2177
2207
  ref
2178
2208
  }, rest)
2179
2209
  );
2180
2210
  }
2181
2211
  );
2182
2212
  NavbarNavigation.displayName = "Navbar.Navigation";
2183
- var Navbar = (0, import_react38.forwardRef)(
2213
+ var Navbar = (0, import_react39.forwardRef)(
2184
2214
  (_a, ref) => {
2185
2215
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
2186
2216
  const Component = asChild ? import_react_slot14.Slot : "header";
2187
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2217
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2188
2218
  Component,
2189
2219
  __spreadProps(__spreadValues({
2190
- className: (0, import_typed_classname33.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2220
+ className: (0, import_typed_classname34.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2191
2221
  ref
2192
2222
  }, rest), {
2193
2223
  children
@@ -2208,17 +2238,17 @@ Navbar.ItemIcon = NavbarItemIcon;
2208
2238
  Navbar.Navigation = NavbarNavigation;
2209
2239
 
2210
2240
  // src/show-more/show-more.tsx
2211
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2212
- var import_react39 = require("react");
2213
- var import_jsx_runtime38 = require("react/jsx-runtime");
2214
- var ShowMoreButton = (0, import_react39.forwardRef)(
2241
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2242
+ var import_react40 = require("react");
2243
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2244
+ var ShowMoreButton = (0, import_react40.forwardRef)(
2215
2245
  (_a, ref) => {
2216
2246
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
2217
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2247
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2218
2248
  "button",
2219
2249
  __spreadProps(__spreadValues({
2220
2250
  ref,
2221
- className: (0, import_typed_classname34.clsx)(
2251
+ className: (0, import_typed_classname35.clsx)(
2222
2252
  "hds-show-more",
2223
2253
  variant === "show-more-show-less" && "hds-show-more--show-less",
2224
2254
  className
@@ -2228,7 +2258,7 @@ var ShowMoreButton = (0, import_react39.forwardRef)(
2228
2258
  }, rest), {
2229
2259
  children: [
2230
2260
  text,
2231
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: (0, import_typed_classname34.clsx)("hds-show-more__icon") })
2261
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: (0, import_typed_classname35.clsx)("hds-show-more__icon") })
2232
2262
  ]
2233
2263
  })
2234
2264
  );
@@ -2237,11 +2267,11 @@ var ShowMoreButton = (0, import_react39.forwardRef)(
2237
2267
  ShowMoreButton.displayName = "ShowMoreButton";
2238
2268
 
2239
2269
  // src/skeleton/skeleton.tsx
2240
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2270
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2241
2271
  var import_react_slot15 = require("@radix-ui/react-slot");
2242
- var import_react40 = require("react");
2243
- var import_jsx_runtime39 = require("react/jsx-runtime");
2244
- var Skeleton = (0, import_react40.forwardRef)(
2272
+ var import_react41 = require("react");
2273
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2274
+ var Skeleton = (0, import_react41.forwardRef)(
2245
2275
  (_a, ref) => {
2246
2276
  var _b = _a, {
2247
2277
  as: Tag = "div",
@@ -2265,10 +2295,10 @@ var Skeleton = (0, import_react40.forwardRef)(
2265
2295
  "style"
2266
2296
  ]);
2267
2297
  const Component = asChild ? import_react_slot15.Slot : Tag;
2268
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2298
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2269
2299
  Component,
2270
2300
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2271
- className: (0, import_typed_classname35.clsx)(
2301
+ className: (0, import_typed_classname36.clsx)(
2272
2302
  "hds-skeleton",
2273
2303
  `hds-skeleton--${variant}`,
2274
2304
  !animation && `hds-skeleton--no-animation`,
@@ -2287,19 +2317,19 @@ var Skeleton = (0, import_react40.forwardRef)(
2287
2317
  Skeleton.displayName = "Skeleton";
2288
2318
 
2289
2319
  // src/spinner/spinner.tsx
2290
- var import_react41 = require("react");
2291
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2292
- var import_jsx_runtime40 = require("react/jsx-runtime");
2293
- var Spinner = (0, import_react41.forwardRef)(
2320
+ var import_react42 = require("react");
2321
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2322
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2323
+ var Spinner = (0, import_react42.forwardRef)(
2294
2324
  (_a, ref) => {
2295
2325
  var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
2296
2326
  const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
2297
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2327
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2298
2328
  "div",
2299
2329
  __spreadValues({
2300
2330
  title,
2301
2331
  style,
2302
- className: (0, import_typed_classname36.clsx)(
2332
+ className: (0, import_typed_classname37.clsx)(
2303
2333
  "hds-spinner",
2304
2334
  `hds-spinner--${size}`,
2305
2335
  delay && "hds-spinner--delay",
@@ -2313,10 +2343,10 @@ var Spinner = (0, import_react41.forwardRef)(
2313
2343
  Spinner.displayName = "Spinner";
2314
2344
 
2315
2345
  // src/step-indicator/step-indicator.tsx
2316
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2317
- var import_react42 = require("react");
2318
- var import_jsx_runtime41 = require("react/jsx-runtime");
2319
- var StepIndicator = (0, import_react42.forwardRef)(
2346
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2347
+ var import_react43 = require("react");
2348
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2349
+ var StepIndicator = (0, import_react43.forwardRef)(
2320
2350
  (_a, ref) => {
2321
2351
  var _b = _a, {
2322
2352
  activeStep,
@@ -2335,27 +2365,27 @@ var StepIndicator = (0, import_react42.forwardRef)(
2335
2365
  "title",
2336
2366
  "titleAs"
2337
2367
  ]);
2338
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2368
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2339
2369
  "div",
2340
2370
  __spreadProps(__spreadValues({
2341
2371
  ref,
2342
- className: (0, import_typed_classname37.clsx)("hds-step-indicator", className),
2372
+ className: (0, import_typed_classname38.clsx)("hds-step-indicator", className),
2343
2373
  lang
2344
2374
  }, rest), {
2345
2375
  children: [
2346
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__header"), children: [
2347
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__left-label"), children: label }),
2348
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2376
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__header"), children: [
2377
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__left-label"), children: label }),
2378
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2349
2379
  ] }),
2350
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2380
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2351
2381
  "div",
2352
2382
  {
2353
- className: (0, import_typed_classname37.clsx)("hds-step-indicator__step"),
2383
+ className: (0, import_typed_classname38.clsx)("hds-step-indicator__step"),
2354
2384
  "data-state": getStepState(i + 1, activeStep)
2355
2385
  },
2356
2386
  i
2357
2387
  )) }),
2358
- title ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TitleComponent, { className: (0, import_typed_classname37.clsx)("hds-step-indicator__title"), children: title }) : null
2388
+ title ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TitleComponent, { className: (0, import_typed_classname38.clsx)("hds-step-indicator__title"), children: title }) : null
2359
2389
  ]
2360
2390
  })
2361
2391
  );
@@ -2379,18 +2409,18 @@ function getStepState(renderedStep, activeStep) {
2379
2409
  }
2380
2410
 
2381
2411
  // src/styled-html/styled-html.tsx
2382
- var import_react43 = require("react");
2383
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2412
+ var import_react44 = require("react");
2413
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2384
2414
  var import_react_slot16 = require("@radix-ui/react-slot");
2385
- var import_jsx_runtime42 = require("react/jsx-runtime");
2386
- var StyledHtml = (0, import_react43.forwardRef)(
2415
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2416
+ var StyledHtml = (0, import_react44.forwardRef)(
2387
2417
  (_a, ref) => {
2388
2418
  var _b = _a, { asChild, children, size, unstable_darkmode: darkmode = false, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "unstable_darkmode", "className"]);
2389
2419
  const Component = asChild ? import_react_slot16.Slot : "div";
2390
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2420
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2391
2421
  Component,
2392
2422
  __spreadProps(__spreadValues({
2393
- className: (0, import_typed_classname38.clsx)(
2423
+ className: (0, import_typed_classname39.clsx)(
2394
2424
  `hds-styled-html`,
2395
2425
  size === "small" && "hds-styled-html--small",
2396
2426
  darkmode && "hds-styled-html--darkmode",
@@ -2406,20 +2436,20 @@ var StyledHtml = (0, import_react43.forwardRef)(
2406
2436
  StyledHtml.displayName = "StyledHtml";
2407
2437
 
2408
2438
  // src/table/table.tsx
2409
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2410
- var import_react44 = require("react");
2411
- var import_jsx_runtime43 = require("react/jsx-runtime");
2412
- var Table = (0, import_react44.forwardRef)(
2439
+ var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2440
+ var import_react45 = require("react");
2441
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2442
+ var Table = (0, import_react45.forwardRef)(
2413
2443
  (_a, ref) => {
2414
2444
  var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2415
- const descriptionId = (0, import_react44.useId)();
2416
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2417
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2445
+ const descriptionId = (0, import_react45.useId)();
2446
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
2447
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2418
2448
  "table",
2419
2449
  __spreadProps(__spreadValues({
2420
2450
  "aria-describedby": description ? descriptionId : void 0,
2421
2451
  ref,
2422
- className: (0, import_typed_classname39.clsx)(
2452
+ className: (0, import_typed_classname40.clsx)(
2423
2453
  "hds-table",
2424
2454
  {
2425
2455
  "hds-table--compressed": size === "compressed",
@@ -2429,27 +2459,27 @@ var Table = (0, import_react44.forwardRef)(
2429
2459
  )
2430
2460
  }, rest), {
2431
2461
  children: [
2432
- caption ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("caption", { children: caption }) : null,
2462
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("caption", { children: caption }) : null,
2433
2463
  children
2434
2464
  ]
2435
2465
  })
2436
2466
  ),
2437
- description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: (0, import_typed_classname39.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2467
+ description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: (0, import_typed_classname40.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2438
2468
  ] });
2439
2469
  }
2440
2470
  );
2441
2471
  Table.displayName = "Table";
2442
2472
 
2443
2473
  // src/tabs/tabs.tsx
2444
- var import_react48 = require("react");
2445
- var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2474
+ var import_react49 = require("react");
2475
+ var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2446
2476
  var import_react_slot18 = require("@radix-ui/react-slot");
2447
2477
 
2448
2478
  // src/tabs/context.ts
2449
- var import_react45 = require("react");
2450
- var TabsContext = (0, import_react45.createContext)(null);
2479
+ var import_react46 = require("react");
2480
+ var TabsContext = (0, import_react46.createContext)(null);
2451
2481
  function useTabsContext() {
2452
- const context = (0, import_react45.useContext)(TabsContext);
2482
+ const context = (0, import_react46.useContext)(TabsContext);
2453
2483
  if (!context) {
2454
2484
  throw new Error(
2455
2485
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2459,25 +2489,25 @@ function useTabsContext() {
2459
2489
  }
2460
2490
 
2461
2491
  // src/tabs/tabs-content.tsx
2462
- var import_react46 = require("react");
2463
- var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2492
+ var import_react47 = require("react");
2493
+ var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2464
2494
  var import_react_slot17 = require("@radix-ui/react-slot");
2465
- var import_jsx_runtime44 = require("react/jsx-runtime");
2466
- var TabsContents = (0, import_react46.forwardRef)(
2495
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2496
+ var TabsContents = (0, import_react47.forwardRef)(
2467
2497
  (_a, ref) => {
2468
2498
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2469
2499
  const Component = asChild ? import_react_slot17.Slot : "div";
2470
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname40.clsx)("hds-tabs__contents") }, rest), { children }));
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname41.clsx)("hds-tabs__contents") }, rest), { children }));
2471
2501
  }
2472
2502
  );
2473
2503
  TabsContents.displayName = "Tabs.Contents";
2474
- var TabsContent = (0, import_react46.forwardRef)(
2504
+ var TabsContent = (0, import_react47.forwardRef)(
2475
2505
  (_a, ref) => {
2476
2506
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2477
2507
  const context = useTabsContext();
2478
2508
  const Component = asChild ? import_react_slot17.Slot : "div";
2479
2509
  if (context.activeTabId === forTabId) {
2480
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2481
2511
  }
2482
2512
  return null;
2483
2513
  }
@@ -2485,21 +2515,21 @@ var TabsContent = (0, import_react46.forwardRef)(
2485
2515
  TabsContent.displayName = "Tabs.Content";
2486
2516
 
2487
2517
  // src/tabs/tabs-list.tsx
2488
- var import_react47 = require("react");
2489
- var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2490
- var import_jsx_runtime45 = require("react/jsx-runtime");
2491
- var TabsList = (0, import_react47.forwardRef)(
2518
+ var import_react48 = require("react");
2519
+ var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2520
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2521
+ var TabsList = (0, import_react48.forwardRef)(
2492
2522
  (_a, ref) => {
2493
2523
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2494
2524
  const { activeTabId } = useTabsContext();
2495
- const tabsListRef = (0, import_react47.useRef)(null);
2525
+ const tabsListRef = (0, import_react48.useRef)(null);
2496
2526
  const mergedRef = useMergeRefs([tabsListRef, ref]);
2497
2527
  const { width: tabsWidth } = useResize(tabsListRef);
2498
2528
  const isClientSide = useHydrated();
2499
2529
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2500
2530
  const wideEnough = innerWidth >= tabsWidth;
2501
- const previousTabId = (0, import_react47.useRef)(activeTabId);
2502
- (0, import_react47.useEffect)(() => {
2531
+ const previousTabId = (0, import_react48.useRef)(activeTabId);
2532
+ (0, import_react48.useEffect)(() => {
2503
2533
  const tabList = tabsListRef.current;
2504
2534
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2505
2535
  if (!activeTab || !tabList) return;
@@ -2523,10 +2553,10 @@ var TabsList = (0, import_react47.forwardRef)(
2523
2553
  }
2524
2554
  previousTabId.current = activeTabId;
2525
2555
  }, [activeTabId, innerWidth]);
2526
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2556
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2527
2557
  "div",
2528
2558
  __spreadProps(__spreadValues({
2529
- className: (0, import_typed_classname41.clsx)(
2559
+ className: (0, import_typed_classname42.clsx)(
2530
2560
  "hds-tabs__list",
2531
2561
  direction === "horizontal" ? {
2532
2562
  "hds-tabs__list--horizontal": wideEnough,
@@ -2545,7 +2575,7 @@ var TabsList = (0, import_react47.forwardRef)(
2545
2575
  }
2546
2576
  );
2547
2577
  TabsList.displayName = "Tabs.List";
2548
- var TabsTab = (0, import_react47.forwardRef)(
2578
+ var TabsTab = (0, import_react48.forwardRef)(
2549
2579
  (_a, ref) => {
2550
2580
  var _b = _a, { children, tabId, className, onClick } = _b, rest = __objRest(_b, ["children", "tabId", "className", "onClick"]);
2551
2581
  const context = useTabsContext();
@@ -2554,10 +2584,10 @@ var TabsTab = (0, import_react47.forwardRef)(
2554
2584
  context.toggleActiveTabId(tabId);
2555
2585
  onClick == null ? void 0 : onClick(e);
2556
2586
  };
2557
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2587
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2558
2588
  "button",
2559
2589
  __spreadProps(__spreadValues({
2560
- className: (0, import_typed_classname41.clsx)(
2590
+ className: (0, import_typed_classname42.clsx)(
2561
2591
  "hds-tabs__tab",
2562
2592
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2563
2593
  className
@@ -2576,13 +2606,13 @@ var TabsTab = (0, import_react47.forwardRef)(
2576
2606
  TabsTab.displayName = "Tabs.Tab";
2577
2607
 
2578
2608
  // src/tabs/tabs.tsx
2579
- var import_jsx_runtime46 = require("react/jsx-runtime");
2580
- var Tabs = (0, import_react48.forwardRef)(
2609
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2610
+ var Tabs = (0, import_react49.forwardRef)(
2581
2611
  (_a, ref) => {
2582
2612
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
2583
- const [activeTabId, setActiveTabId] = (0, import_react48.useState)(defaultTab);
2613
+ const [activeTabId, setActiveTabId] = (0, import_react49.useState)(defaultTab);
2584
2614
  const Component = asChild ? import_react_slot18.Slot : "div";
2585
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname42.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2615
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname43.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2586
2616
  }
2587
2617
  );
2588
2618
  Tabs.displayName = "Tabs";
@@ -2592,10 +2622,10 @@ Tabs.Contents = TabsContents;
2592
2622
  Tabs.Content = TabsContent;
2593
2623
 
2594
2624
  // src/text/text.tsx
2595
- var import_react49 = require("react");
2596
- var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2625
+ var import_react50 = require("react");
2626
+ var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2597
2627
  var import_react_slot19 = require("@radix-ui/react-slot");
2598
- var import_jsx_runtime47 = require("react/jsx-runtime");
2628
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2599
2629
  var defaultHTMLTag = {
2600
2630
  "h1-display": "h1",
2601
2631
  h1: "h1",
@@ -2611,7 +2641,7 @@ var defaultHTMLTag = {
2611
2641
  caption: "p",
2612
2642
  "caption-title": "p"
2613
2643
  };
2614
- var Text = (0, import_react49.forwardRef)(
2644
+ var Text = (0, import_react50.forwardRef)(
2615
2645
  (_a, ref) => {
2616
2646
  var _b = _a, {
2617
2647
  as: Tag,
@@ -2632,10 +2662,10 @@ var Text = (0, import_react49.forwardRef)(
2632
2662
  ]);
2633
2663
  const Component = asChild ? import_react_slot19.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2634
2664
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2635
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2665
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2636
2666
  Component,
2637
2667
  __spreadProps(__spreadValues({
2638
- className: (0, import_typed_classname43.clsx)(
2668
+ className: (0, import_typed_classname44.clsx)(
2639
2669
  `hds-text-${variant}`,
2640
2670
  sizeModifier && `hds-text--${sizeModifier}`,
2641
2671
  spacing && "hds-text--spacing",
@@ -2651,16 +2681,16 @@ var Text = (0, import_react49.forwardRef)(
2651
2681
  Text.displayName = "Text";
2652
2682
 
2653
2683
  // src/warning-banner/warning-banner.tsx
2654
- var import_react50 = require("react");
2655
- var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2656
- var import_jsx_runtime48 = require("react/jsx-runtime");
2657
- var WarningBanner = (0, import_react50.forwardRef)(
2684
+ var import_react51 = require("react");
2685
+ var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2686
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2687
+ var WarningBanner = (0, import_react51.forwardRef)(
2658
2688
  (_a, ref) => {
2659
2689
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2660
- const descriptionId = (0, import_react50.useId)();
2690
+ const descriptionId = (0, import_react51.useId)();
2661
2691
  const expandable = !!description;
2662
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname44.clsx)("hds-warning-banner", className), ref, children: [
2663
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2692
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname45.clsx)("hds-warning-banner", className), ref, children: [
2693
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2664
2694
  WarningBannerTitle,
2665
2695
  {
2666
2696
  variant: expandable ? "expandable" : "default",
@@ -2668,22 +2698,22 @@ var WarningBanner = (0, import_react50.forwardRef)(
2668
2698
  children: title
2669
2699
  }
2670
2700
  ),
2671
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2701
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2672
2702
  ] }));
2673
2703
  }
2674
2704
  );
2675
2705
  WarningBanner.displayName = "WarningBanner";
2676
- var WarningBannerTitle = (0, import_react50.forwardRef)((_a, ref) => {
2706
+ var WarningBannerTitle = (0, import_react51.forwardRef)((_a, ref) => {
2677
2707
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
2678
- const [open, setOpen] = (0, import_react50.useState)(false);
2708
+ const [open, setOpen] = (0, import_react51.useState)(false);
2679
2709
  if (variant === "expandable") {
2680
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2710
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2681
2711
  "button",
2682
2712
  __spreadProps(__spreadValues({}, rest), {
2683
2713
  "aria-expanded": open,
2684
2714
  "aria-controls": descriptionId,
2685
2715
  "data-state": open ? "open" : "closed",
2686
- className: (0, import_typed_classname44.clsx)(
2716
+ className: (0, import_typed_classname45.clsx)(
2687
2717
  "hds-warning-banner__title",
2688
2718
  "hds-warning-banner__title-trigger",
2689
2719
  className
@@ -2693,28 +2723,28 @@ var WarningBannerTitle = (0, import_react50.forwardRef)((_a, ref) => {
2693
2723
  },
2694
2724
  ref,
2695
2725
  type: "button",
2696
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children })
2726
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children })
2697
2727
  })
2698
2728
  );
2699
2729
  }
2700
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2730
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2701
2731
  "p",
2702
2732
  __spreadProps(__spreadValues({}, rest), {
2703
- className: (0, import_typed_classname44.clsx)("hds-warning-banner__title", className),
2733
+ className: (0, import_typed_classname45.clsx)("hds-warning-banner__title", className),
2704
2734
  ref,
2705
2735
  children
2706
2736
  })
2707
2737
  );
2708
2738
  });
2709
2739
  WarningBannerTitle.displayName = "WarningBannerTitle";
2710
- var WarningBannerDescription = (0, import_react50.forwardRef)(
2740
+ var WarningBannerDescription = (0, import_react51.forwardRef)(
2711
2741
  (_a, ref) => {
2712
2742
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
2713
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2743
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2714
2744
  "p",
2715
2745
  __spreadValues({
2716
2746
  id,
2717
- className: (0, import_typed_classname44.clsx)("hds-warning-banner__description", className),
2747
+ className: (0, import_typed_classname45.clsx)("hds-warning-banner__description", className),
2718
2748
  ref
2719
2749
  }, rest)
2720
2750
  );
@@ -2734,6 +2764,7 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2734
2764
  BoxCloseButton,
2735
2765
  Breadcrumbs,
2736
2766
  Button,
2767
+ ButtonList,
2737
2768
  Card,
2738
2769
  CardBody,
2739
2770
  CardBodyAction,