@postenbring/hedwig-react 2.0.0 → 2.1.1

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