@postenbring/hedwig-react 0.0.71 → 0.0.73

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 (123) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +99 -28
  2. package/dist/_tsup-dts-rollup.d.ts +99 -28
  3. package/dist/{breadcrumb/index.js → breadcrumbs/breadcrumbs.js} +12 -11
  4. package/dist/breadcrumbs/breadcrumbs.js.map +1 -0
  5. package/dist/{breadcrumb/breadcrumb.mjs → breadcrumbs/breadcrumbs.mjs} +2 -2
  6. package/dist/{breadcrumb/breadcrumb.js → breadcrumbs/index.js} +14 -9
  7. package/dist/breadcrumbs/index.js.map +1 -0
  8. package/dist/breadcrumbs/index.mjs +9 -0
  9. package/dist/button/button.js +1 -4
  10. package/dist/button/button.js.map +1 -1
  11. package/dist/button/button.mjs +1 -1
  12. package/dist/button/index.js +1 -4
  13. package/dist/button/index.js.map +1 -1
  14. package/dist/button/index.mjs +1 -1
  15. package/dist/chunk-3LYJRAOC.mjs +1 -0
  16. package/dist/{chunk-OUHO4LGN.mjs → chunk-BWFFP6BB.mjs} +2 -5
  17. package/dist/chunk-BWFFP6BB.mjs.map +1 -0
  18. package/dist/chunk-CFAH2LID.mjs +1 -0
  19. package/dist/{chunk-K2HG7WRK.mjs → chunk-CSAEHQ4R.mjs} +2 -2
  20. package/dist/{chunk-ZRFDCZ62.mjs → chunk-CSFSJGLY.mjs} +5 -5
  21. package/dist/chunk-E2RTLHMZ.mjs +54 -0
  22. package/dist/chunk-E2RTLHMZ.mjs.map +1 -0
  23. package/dist/chunk-EMI7NAO2.mjs +45 -0
  24. package/dist/chunk-EMI7NAO2.mjs.map +1 -0
  25. package/dist/chunk-GGEQEVZ4.mjs +22 -0
  26. package/dist/chunk-GGEQEVZ4.mjs.map +1 -0
  27. package/dist/chunk-HSIL53A5.mjs +118 -0
  28. package/dist/chunk-HSIL53A5.mjs.map +1 -0
  29. package/dist/chunk-ISAHCU7C.mjs +1 -0
  30. package/dist/chunk-ISAHCU7C.mjs.map +1 -0
  31. package/dist/chunk-JBWAZQKM.mjs +1 -0
  32. package/dist/chunk-JBWAZQKM.mjs.map +1 -0
  33. package/dist/{chunk-O32FZU7E.mjs → chunk-S3BGPCLK.mjs} +4 -4
  34. package/dist/{chunk-FOZSX44S.mjs → chunk-VM345XBI.mjs} +6 -6
  35. package/dist/chunk-Z753E3XF.mjs +33 -0
  36. package/dist/chunk-Z753E3XF.mjs.map +1 -0
  37. package/dist/description-list/description-list.d.mts +1 -1
  38. package/dist/description-list/description-list.d.ts +1 -1
  39. package/dist/description-list/description-list.js +19 -21
  40. package/dist/description-list/description-list.js.map +1 -1
  41. package/dist/description-list/description-list.mjs +1 -1
  42. package/dist/description-list/index.js +19 -21
  43. package/dist/description-list/index.js.map +1 -1
  44. package/dist/description-list/index.mjs +1 -1
  45. package/dist/footer/footer.js +1 -4
  46. package/dist/footer/footer.js.map +1 -1
  47. package/dist/footer/footer.mjs +2 -2
  48. package/dist/footer/index.js +1 -4
  49. package/dist/footer/index.js.map +1 -1
  50. package/dist/footer/index.mjs +3 -3
  51. package/dist/form/index.mjs +14 -14
  52. package/dist/help-text/help-text.d.mts +1 -0
  53. package/dist/help-text/help-text.d.ts +1 -0
  54. package/dist/help-text/help-text.js +186 -0
  55. package/dist/help-text/help-text.js.map +1 -0
  56. package/dist/help-text/help-text.mjs +10 -0
  57. package/dist/help-text/help-text.mjs.map +1 -0
  58. package/dist/help-text/index.d.mts +1 -0
  59. package/dist/help-text/index.d.ts +1 -0
  60. package/dist/help-text/index.js +188 -0
  61. package/dist/help-text/index.js.map +1 -0
  62. package/dist/help-text/index.mjs +11 -0
  63. package/dist/help-text/index.mjs.map +1 -0
  64. package/dist/index-no-css.d.mts +2 -0
  65. package/dist/index-no-css.d.ts +2 -0
  66. package/dist/index-no-css.js +414 -316
  67. package/dist/index-no-css.js.map +1 -1
  68. package/dist/index-no-css.mjs +112 -102
  69. package/dist/index.d.mts +2 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.js +414 -316
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.mjs +112 -102
  74. package/dist/index.mjs.map +1 -1
  75. package/dist/layout/index.mjs +6 -6
  76. package/dist/navbar/index.mjs +5 -5
  77. package/dist/show-more/index.js +91 -39
  78. package/dist/show-more/index.js.map +1 -1
  79. package/dist/show-more/index.mjs +2 -1
  80. package/dist/table/index.d.mts +1 -0
  81. package/dist/table/index.d.ts +1 -0
  82. package/dist/table/index.js +94 -0
  83. package/dist/table/index.js.map +1 -0
  84. package/dist/table/index.mjs +9 -0
  85. package/dist/table/index.mjs.map +1 -0
  86. package/dist/table/table.d.mts +1 -0
  87. package/dist/table/table.d.ts +1 -0
  88. package/dist/table/table.js +92 -0
  89. package/dist/table/table.js.map +1 -0
  90. package/dist/table/table.mjs +8 -0
  91. package/dist/table/table.mjs.map +1 -0
  92. package/dist/tabs/index.mjs +5 -5
  93. package/dist/utilities/auto-animate-height.js +89 -37
  94. package/dist/utilities/auto-animate-height.js.map +1 -1
  95. package/dist/utilities/auto-animate-height.mjs +2 -1
  96. package/dist/utilities/index.js +89 -37
  97. package/dist/utilities/index.js.map +1 -1
  98. package/dist/utilities/index.mjs +2 -1
  99. package/package.json +6 -5
  100. package/dist/breadcrumb/breadcrumb.js.map +0 -1
  101. package/dist/breadcrumb/index.js.map +0 -1
  102. package/dist/breadcrumb/index.mjs +0 -9
  103. package/dist/chunk-AKYK3XFN.mjs +0 -95
  104. package/dist/chunk-AKYK3XFN.mjs.map +0 -1
  105. package/dist/chunk-OUHO4LGN.mjs.map +0 -1
  106. package/dist/chunk-XMB45ILT.mjs +0 -35
  107. package/dist/chunk-XMB45ILT.mjs.map +0 -1
  108. package/dist/chunk-YKDKFWP2.mjs +0 -19
  109. package/dist/chunk-YKDKFWP2.mjs.map +0 -1
  110. package/dist/chunk-YWNVB7TY.mjs +0 -1
  111. package/dist/chunk-ZOCMUEOX.mjs +0 -1
  112. package/dist/{breadcrumb/breadcrumb.d.mts → breadcrumbs/breadcrumbs.d.mts} +1 -1
  113. package/dist/{breadcrumb/breadcrumb.d.ts → breadcrumbs/breadcrumbs.d.ts} +1 -1
  114. /package/dist/{breadcrumb/breadcrumb.mjs.map → breadcrumbs/breadcrumbs.mjs.map} +0 -0
  115. /package/dist/{breadcrumb → breadcrumbs}/index.d.mts +0 -0
  116. /package/dist/{breadcrumb → breadcrumbs}/index.d.ts +0 -0
  117. /package/dist/{breadcrumb → breadcrumbs}/index.mjs.map +0 -0
  118. /package/dist/{chunk-YWNVB7TY.mjs.map → chunk-3LYJRAOC.mjs.map} +0 -0
  119. /package/dist/{chunk-ZOCMUEOX.mjs.map → chunk-CFAH2LID.mjs.map} +0 -0
  120. /package/dist/{chunk-K2HG7WRK.mjs.map → chunk-CSAEHQ4R.mjs.map} +0 -0
  121. /package/dist/{chunk-ZRFDCZ62.mjs.map → chunk-CSFSJGLY.mjs.map} +0 -0
  122. /package/dist/{chunk-O32FZU7E.mjs.map → chunk-S3BGPCLK.mjs.map} +0 -0
  123. /package/dist/{chunk-FOZSX44S.mjs.map → chunk-VM345XBI.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -89,6 +89,7 @@ __export(src_exports, {
89
89
  Grid: () => GridComponent,
90
90
  GridItem: () => GridItem,
91
91
  HStack: () => HStack,
92
+ HelpText: () => HelpText,
92
93
  Input: () => Input,
93
94
  Link: () => Link,
94
95
  LinkList: () => LinkList,
@@ -115,6 +116,7 @@ __export(src_exports, {
115
116
  Stack: () => Stack,
116
117
  StepIndicator: () => StepIndicator,
117
118
  StyledHtml: () => StyledHtml,
119
+ Table: () => Table,
118
120
  Tabs: () => TabsComponent,
119
121
  TabsContent: () => TabsContent,
120
122
  TabsContents: () => TabsContents,
@@ -403,20 +405,23 @@ BoxCloseButton.displayName = "Box.CloseButton";
403
405
  var BoxComponent = Box;
404
406
  BoxComponent.CloseButton = BoxCloseButton;
405
407
 
406
- // src/breadcrumb/breadcrumb.tsx
408
+ // src/breadcrumbs/breadcrumbs.tsx
409
+ var import_react7 = require("react");
407
410
  var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname");
408
411
  var import_jsx_runtime7 = require("react/jsx-runtime");
409
- function Breadcrumbs(_a) {
410
- var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
411
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", __spreadProps(__spreadValues({}, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname7.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
412
- }
412
+ var Breadcrumbs = (0, import_react7.forwardRef)(
413
+ (_a, ref) => {
414
+ var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
415
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname7.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
416
+ }
417
+ );
413
418
  Breadcrumbs.displayName = "Breadcrumbs";
414
419
 
415
420
  // src/button/button.tsx
416
- var import_react7 = require("react");
421
+ var import_react8 = require("react");
417
422
  var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname");
418
423
  var import_jsx_runtime8 = require("react/jsx-runtime");
419
- var BaseButton = (0, import_react7.forwardRef)(
424
+ var BaseButton = (0, import_react8.forwardRef)(
420
425
  (_a, ref) => {
421
426
  var _b = _a, {
422
427
  as: Component = "button",
@@ -437,9 +442,6 @@ var BaseButton = (0, import_react7.forwardRef)(
437
442
  "icon",
438
443
  "className"
439
444
  ]);
440
- if (fill === "outlined") {
441
- console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
442
- }
443
445
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
444
446
  Component,
445
447
  __spreadProps(__spreadValues({
@@ -448,7 +450,7 @@ var BaseButton = (0, import_react7.forwardRef)(
448
450
  `hds-button--${size}`,
449
451
  {
450
452
  [`hds-button--${variant}`]: fill === "contained",
451
- [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
453
+ [`hds-button--outline-${variant}`]: fill === "outline",
452
454
  "hds-button--full": fullWidth === true,
453
455
  "hds-button--mobile-full": fullWidth === "mobile",
454
456
  "hds-button--icon-only": icon && !children
@@ -466,13 +468,13 @@ var BaseButton = (0, import_react7.forwardRef)(
466
468
  }
467
469
  );
468
470
  BaseButton.displayName = "BaseButton";
469
- var PrimaryButton = (0, import_react7.forwardRef)(
471
+ var PrimaryButton = (0, import_react8.forwardRef)(
470
472
  (props, ref) => {
471
473
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
472
474
  }
473
475
  );
474
476
  PrimaryButton.displayName = "PrimaryButton";
475
- var SecondaryButton = (0, import_react7.forwardRef)(
477
+ var SecondaryButton = (0, import_react8.forwardRef)(
476
478
  (props, ref) => {
477
479
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
478
480
  }
@@ -480,22 +482,22 @@ var SecondaryButton = (0, import_react7.forwardRef)(
480
482
  SecondaryButton.displayName = "SecondaryButton";
481
483
 
482
484
  // src/card/card.tsx
483
- var import_react8 = require("react");
485
+ var import_react9 = require("react");
484
486
  var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname");
485
487
  var import_jsx_runtime9 = require("react/jsx-runtime");
486
- var Card = (0, import_react8.forwardRef)((_a, ref) => {
488
+ var Card = (0, import_react9.forwardRef)((_a, ref) => {
487
489
  var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
488
490
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card", className), ref, children }));
489
491
  });
490
492
  Card.displayName = "Card";
491
- var CardMedia = (0, import_react8.forwardRef)(
493
+ var CardMedia = (0, import_react9.forwardRef)(
492
494
  (_a, ref) => {
493
495
  var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
494
496
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__media", className), ref, children }));
495
497
  }
496
498
  );
497
499
  CardMedia.displayName = "Card.Media";
498
- var CardMediaImg = (0, import_react8.forwardRef)(
500
+ var CardMediaImg = (0, import_react9.forwardRef)(
499
501
  (_a, ref) => {
500
502
  var _b = _a, { as: Component = "img", className } = _b, rest = __objRest(_b, ["as", "className"]);
501
503
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
@@ -508,14 +510,14 @@ var CardMediaImg = (0, import_react8.forwardRef)(
508
510
  }
509
511
  );
510
512
  CardMediaImg.displayName = "Card.Media.Img";
511
- var CardBody = (0, import_react8.forwardRef)(
513
+ var CardBody = (0, import_react9.forwardRef)(
512
514
  (_a, ref) => {
513
515
  var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
514
516
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__body", className), ref, children }));
515
517
  }
516
518
  );
517
519
  CardBody.displayName = "Card.Body";
518
- var CardBodyHeader = (0, import_react8.forwardRef)((_a, ref) => {
520
+ var CardBodyHeader = (0, import_react9.forwardRef)((_a, ref) => {
519
521
  var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
520
522
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
521
523
  Component,
@@ -527,7 +529,7 @@ var CardBodyHeader = (0, import_react8.forwardRef)((_a, ref) => {
527
529
  );
528
530
  });
529
531
  CardBodyHeader.displayName = "Card.Body.Header";
530
- var CardBodyHeaderOverline = (0, import_react8.forwardRef)((_a, ref) => {
532
+ var CardBodyHeaderOverline = (0, import_react9.forwardRef)((_a, ref) => {
531
533
  var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
532
534
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
533
535
  Component,
@@ -539,7 +541,7 @@ var CardBodyHeaderOverline = (0, import_react8.forwardRef)((_a, ref) => {
539
541
  );
540
542
  });
541
543
  CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
542
- var CardBodyHeaderTitle = (0, import_react8.forwardRef)((_a, ref) => {
544
+ var CardBodyHeaderTitle = (0, import_react9.forwardRef)((_a, ref) => {
543
545
  var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
544
546
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
545
547
  Component,
@@ -551,7 +553,7 @@ var CardBodyHeaderTitle = (0, import_react8.forwardRef)((_a, ref) => {
551
553
  );
552
554
  });
553
555
  CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
554
- var CardBodyDescription = (0, import_react8.forwardRef)(
556
+ var CardBodyDescription = (0, import_react9.forwardRef)(
555
557
  (_a, ref) => {
556
558
  var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
557
559
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
@@ -565,7 +567,7 @@ var CardBodyDescription = (0, import_react8.forwardRef)(
565
567
  }
566
568
  );
567
569
  CardBodyDescription.displayName = "Card.Body.Description";
568
- var CardBodyAction = (0, import_react8.forwardRef)(
570
+ var CardBodyAction = (0, import_react9.forwardRef)(
569
571
  (_a, ref) => {
570
572
  var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
571
573
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
@@ -579,7 +581,7 @@ var CardBodyAction = (0, import_react8.forwardRef)(
579
581
  }
580
582
  );
581
583
  CardBodyAction.displayName = "Card.Body.Action";
582
- var CardBodyActionArrow = (0, import_react8.forwardRef)((_a, ref) => {
584
+ var CardBodyActionArrow = (0, import_react9.forwardRef)((_a, ref) => {
583
585
  var _b = _a, { as: Component = "span", className } = _b, rest = __objRest(_b, ["as", "className"]);
584
586
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
585
587
  Component,
@@ -608,33 +610,31 @@ CardComponent.Media = CardMediaComponent;
608
610
  CardComponent.Body = CardBodyComponent;
609
611
 
610
612
  // src/description-list/description-list.tsx
613
+ var import_react10 = require("react");
611
614
  var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname");
612
615
  var import_jsx_runtime10 = require("react/jsx-runtime");
613
- function DescriptionList(_a) {
614
- var _b = _a, {
615
- variant = "vertical",
616
- className
617
- } = _b, rest = __objRest(_b, [
618
- "variant",
619
- "className"
620
- ]);
621
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
622
- "dl",
623
- __spreadValues({
624
- className: (0, import_typed_classname10.clsx)(
625
- "hds-description-list",
626
- {
627
- "hds-description-list--horizontal": variant === "horizontal"
628
- },
629
- className
630
- )
631
- }, rest)
632
- );
633
- }
616
+ var DescriptionList = (0, import_react10.forwardRef)(
617
+ (_a, ref) => {
618
+ var _b = _a, { variant = "vertical", className } = _b, rest = __objRest(_b, ["variant", "className"]);
619
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
620
+ "dl",
621
+ __spreadValues({
622
+ ref,
623
+ className: (0, import_typed_classname10.clsx)(
624
+ "hds-description-list",
625
+ {
626
+ "hds-description-list--horizontal": variant === "horizontal"
627
+ },
628
+ className
629
+ )
630
+ }, rest)
631
+ );
632
+ }
633
+ );
634
634
  DescriptionList.displayName = "DescriptionList";
635
635
 
636
636
  // src/form/checkbox/checkbox.tsx
637
- var import_react10 = require("react");
637
+ var import_react12 = require("react");
638
638
  var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
639
639
 
640
640
  // src/form/error-message/error-message.tsx
@@ -653,12 +653,12 @@ function ErrorMessage({ children, id, className }) {
653
653
  }
654
654
 
655
655
  // src/form/fieldset/fieldset.tsx
656
- var import_react9 = require("react");
656
+ var import_react11 = require("react");
657
657
  var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
658
658
  var import_jsx_runtime12 = require("react/jsx-runtime");
659
- var FieldsetContext = (0, import_react9.createContext)({ hasError: false });
660
- var useFieldsetContext = () => (0, import_react9.useContext)(FieldsetContext);
661
- var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
659
+ var FieldsetContext = (0, import_react11.createContext)({ hasError: false });
660
+ var useFieldsetContext = () => (0, import_react11.useContext)(FieldsetContext);
661
+ var Fieldset = (0, import_react11.forwardRef)(function Fieldset2(_a, ref) {
662
662
  var _b = _a, {
663
663
  className,
664
664
  style,
@@ -675,7 +675,7 @@ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
675
675
  "legend",
676
676
  "children"
677
677
  ]);
678
- const errorMessageId = (0, import_react9.useId)();
678
+ const errorMessageId = (0, import_react11.useId)();
679
679
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
680
680
  "fieldset",
681
681
  __spreadProps(__spreadValues({
@@ -707,7 +707,7 @@ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
707
707
 
708
708
  // src/form/checkbox/checkbox.tsx
709
709
  var import_jsx_runtime13 = require("react/jsx-runtime");
710
- var Checkbox = (0, import_react10.forwardRef)(
710
+ var Checkbox = (0, import_react12.forwardRef)(
711
711
  (_a, ref) => {
712
712
  var _b = _a, {
713
713
  variant = "plain",
@@ -724,7 +724,7 @@ var Checkbox = (0, import_react10.forwardRef)(
724
724
  "children",
725
725
  "className"
726
726
  ]);
727
- const errorMessageId = (0, import_react10.useId)();
727
+ const errorMessageId = (0, import_react12.useId)();
728
728
  const { hasError: hasFieldsetError } = useFieldsetContext();
729
729
  const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
730
730
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_typed_classname13.clsx)("hds-checkbox-wrapper"), children: [
@@ -764,14 +764,14 @@ var Checkbox = (0, import_react10.forwardRef)(
764
764
  Checkbox.displayName = "Checkbox";
765
765
 
766
766
  // src/form/date-picker/date-picker.tsx
767
- var import_react13 = require("react");
767
+ var import_react15 = require("react");
768
768
  var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
769
769
 
770
770
  // src/form/input-group/input-group.tsx
771
- var import_react11 = require("react");
771
+ var import_react13 = require("react");
772
772
  var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
773
773
  var import_jsx_runtime14 = require("react/jsx-runtime");
774
- var InputGroup = (0, import_react11.forwardRef)(function InputGroup2(_a, ref) {
774
+ var InputGroup = (0, import_react13.forwardRef)(function InputGroup2(_a, ref) {
775
775
  var _b = _a, {
776
776
  id,
777
777
  className,
@@ -796,8 +796,8 @@ var InputGroup = (0, import_react11.forwardRef)(function InputGroup2(_a, ref) {
796
796
  "readOnly",
797
797
  "children"
798
798
  ]);
799
- const errorMessageId = (0, import_react11.useId)();
800
- const inputId = (0, import_react11.useId)();
799
+ const errorMessageId = (0, import_react13.useId)();
800
+ const inputId = (0, import_react13.useId)();
801
801
  const renderInput = () => {
802
802
  var _a2;
803
803
  const inputProps = {
@@ -809,11 +809,11 @@ var InputGroup = (0, import_react11.forwardRef)(function InputGroup2(_a, ref) {
809
809
  if (typeof children === "function") {
810
810
  return children(inputProps);
811
811
  }
812
- const input = import_react11.Children.toArray(children)[0];
813
- if (!(0, import_react11.isValidElement)(input)) {
812
+ const input = import_react13.Children.toArray(children)[0];
813
+ if (!(0, import_react13.isValidElement)(input)) {
814
814
  return;
815
815
  }
816
- return (0, import_react11.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
816
+ return (0, import_react13.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
817
817
  className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
818
818
  }));
819
819
  };
@@ -858,7 +858,7 @@ var InputGroup = (0, import_react11.forwardRef)(function InputGroup2(_a, ref) {
858
858
 
859
859
  // src/utils.ts
860
860
  var React2 = __toESM(require("react"));
861
- var import_react12 = require("react");
861
+ var import_react14 = require("react");
862
862
  function useMergeRefs(refs) {
863
863
  return React2.useMemo(() => {
864
864
  if (refs.every((ref) => ref === null)) {
@@ -876,16 +876,16 @@ function useMergeRefs(refs) {
876
876
  }, refs);
877
877
  }
878
878
  function useResize(ref) {
879
- const [width, setWidth] = (0, import_react12.useState)(0);
880
- const [height, setHeight] = (0, import_react12.useState)(0);
881
- const handleResize = (0, import_react12.useCallback)(() => {
879
+ const [width, setWidth] = (0, import_react14.useState)(0);
880
+ const [height, setHeight] = (0, import_react14.useState)(0);
881
+ const handleResize = (0, import_react14.useCallback)(() => {
882
882
  var _a, _b, _c, _d;
883
883
  if ((ref == null ? void 0 : ref.current) !== null) {
884
884
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
885
885
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
886
886
  }
887
887
  }, [ref]);
888
- (0, import_react12.useEffect)(() => {
888
+ (0, import_react14.useEffect)(() => {
889
889
  window.addEventListener("load", handleResize);
890
890
  window.addEventListener("resize", handleResize);
891
891
  return () => {
@@ -893,7 +893,7 @@ function useResize(ref) {
893
893
  window.removeEventListener("resize", handleResize);
894
894
  };
895
895
  }, [ref, handleResize]);
896
- (0, import_react12.useEffect)(() => {
896
+ (0, import_react14.useEffect)(() => {
897
897
  handleResize();
898
898
  }, []);
899
899
  return { width, height };
@@ -912,7 +912,7 @@ function useHydrated() {
912
912
 
913
913
  // src/form/date-picker/date-picker.tsx
914
914
  var import_jsx_runtime15 = require("react/jsx-runtime");
915
- var DatePicker = (0, import_react13.forwardRef)(function DatePicker2(_a, ref) {
915
+ var DatePicker = (0, import_react15.forwardRef)(function DatePicker2(_a, ref) {
916
916
  var _b = _a, {
917
917
  className,
918
918
  variant,
@@ -936,7 +936,7 @@ var DatePicker = (0, import_react13.forwardRef)(function DatePicker2(_a, ref) {
936
936
  "readOnly",
937
937
  "calendarButtonTitle"
938
938
  ]);
939
- const inputRef = (0, import_react13.useRef)(null);
939
+ const inputRef = (0, import_react15.useRef)(null);
940
940
  const mergedRef = useMergeRefs([inputRef, ref]);
941
941
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
942
942
  InputGroup,
@@ -979,10 +979,10 @@ var DatePicker = (0, import_react13.forwardRef)(function DatePicker2(_a, ref) {
979
979
  DatePicker.displayName = "DatePicker";
980
980
 
981
981
  // src/form/input/input.tsx
982
- var import_react14 = require("react");
982
+ var import_react16 = require("react");
983
983
  var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
984
984
  var import_jsx_runtime16 = require("react/jsx-runtime");
985
- var Input = (0, import_react14.forwardRef)(function Input2(_a, ref) {
985
+ var Input = (0, import_react16.forwardRef)(function Input2(_a, ref) {
986
986
  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"]);
987
987
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
988
988
  InputGroup,
@@ -1003,20 +1003,20 @@ var Input = (0, import_react14.forwardRef)(function Input2(_a, ref) {
1003
1003
  Input.displayName = "Input";
1004
1004
 
1005
1005
  // src/form/radiobutton/radiobutton.tsx
1006
- var import_react16 = require("react");
1006
+ var import_react18 = require("react");
1007
1007
  var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
1008
1008
 
1009
1009
  // src/form/radiobutton/radiogroup.tsx
1010
- var import_react15 = require("react");
1010
+ var import_react17 = require("react");
1011
1011
  var import_jsx_runtime17 = require("react/jsx-runtime");
1012
- var RadioGroupContext = (0, import_react15.createContext)({
1012
+ var RadioGroupContext = (0, import_react17.createContext)({
1013
1013
  hasError: false,
1014
1014
  onChange: () => {
1015
1015
  return void 0;
1016
1016
  }
1017
1017
  });
1018
- var useRadioGroupContext = () => (0, import_react15.useContext)(RadioGroupContext);
1019
- var RadioGroup = (0, import_react15.forwardRef)(function RadioGroup2(_a, ref) {
1018
+ var useRadioGroupContext = () => (0, import_react17.useContext)(RadioGroupContext);
1019
+ var RadioGroup = (0, import_react17.forwardRef)(function RadioGroup2(_a, ref) {
1020
1020
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1021
1021
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1022
1022
  });
@@ -1035,7 +1035,7 @@ var isChecked = ({
1035
1035
  return value === selectedValue;
1036
1036
  return void 0;
1037
1037
  };
1038
- var Radiobutton = (0, import_react16.forwardRef)(
1038
+ var Radiobutton = (0, import_react18.forwardRef)(
1039
1039
  (_a, ref) => {
1040
1040
  var _b = _a, {
1041
1041
  checked,
@@ -1097,10 +1097,10 @@ var Radiobutton = (0, import_react16.forwardRef)(
1097
1097
  Radiobutton.displayName = "Radiobutton";
1098
1098
 
1099
1099
  // src/form/select/select.tsx
1100
- var import_react17 = require("react");
1100
+ var import_react19 = require("react");
1101
1101
  var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1102
1102
  var import_jsx_runtime19 = require("react/jsx-runtime");
1103
- var Select = (0, import_react17.forwardRef)(function Select2(_a, ref) {
1103
+ var Select = (0, import_react19.forwardRef)(function Select2(_a, ref) {
1104
1104
  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"]);
1105
1105
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1106
1106
  InputGroup,
@@ -1120,10 +1120,10 @@ var Select = (0, import_react17.forwardRef)(function Select2(_a, ref) {
1120
1120
  Select.displayName = "Select";
1121
1121
 
1122
1122
  // src/form/textarea/textarea.tsx
1123
- var import_react18 = require("react");
1123
+ var import_react20 = require("react");
1124
1124
  var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1125
1125
  var import_jsx_runtime20 = require("react/jsx-runtime");
1126
- var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1126
+ var Textarea = (0, import_react20.forwardRef)(function Textarea2(_a, ref) {
1127
1127
  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"]);
1128
1128
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1129
1129
  InputGroup,
@@ -1144,7 +1144,7 @@ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1144
1144
  Textarea.displayName = "Textarea";
1145
1145
 
1146
1146
  // src/footer/footer.tsx
1147
- var import_react19 = require("react");
1147
+ var import_react21 = require("react");
1148
1148
  var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1149
1149
  var import_react_slot = require("@radix-ui/react-slot");
1150
1150
 
@@ -1190,7 +1190,7 @@ LinkList.displayName = "LinkList";
1190
1190
 
1191
1191
  // src/footer/footer.tsx
1192
1192
  var import_jsx_runtime23 = require("react/jsx-runtime");
1193
- var Footer = (0, import_react19.forwardRef)(
1193
+ var Footer = (0, import_react21.forwardRef)(
1194
1194
  (_a, ref) => {
1195
1195
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1196
1196
  const Component = asChild ? import_react_slot.Slot : "footer";
@@ -1210,7 +1210,7 @@ var Footer = (0, import_react19.forwardRef)(
1210
1210
  }
1211
1211
  );
1212
1212
  Footer.displayName = "Footer";
1213
- var FooterButtonLink = (0, import_react19.forwardRef)(
1213
+ var FooterButtonLink = (0, import_react21.forwardRef)(
1214
1214
  (_a, ref) => {
1215
1215
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1216
1216
  const Component = asChild ? import_react_slot.Slot : "a";
@@ -1231,7 +1231,7 @@ var FooterButtonLink = (0, import_react19.forwardRef)(
1231
1231
  }
1232
1232
  );
1233
1233
  FooterButtonLink.displayName = "FooterButton";
1234
- var FooterLogo = (0, import_react19.forwardRef)(
1234
+ var FooterLogo = (0, import_react21.forwardRef)(
1235
1235
  (_a, ref) => {
1236
1236
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1237
1237
  const Component = asChild ? import_react_slot.Slot : "div";
@@ -1239,7 +1239,7 @@ var FooterLogo = (0, import_react19.forwardRef)(
1239
1239
  }
1240
1240
  );
1241
1241
  FooterLogo.displayName = "Footer.Logo";
1242
- var FooterLinkSections = (0, import_react19.forwardRef)(
1242
+ var FooterLinkSections = (0, import_react21.forwardRef)(
1243
1243
  (_a, ref) => {
1244
1244
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1245
1245
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
@@ -1254,7 +1254,7 @@ var FooterLinkSections = (0, import_react19.forwardRef)(
1254
1254
  }
1255
1255
  );
1256
1256
  FooterLinkSections.displayName = "Footer.LinkSections";
1257
- var FooterLinkSection = (0, import_react19.forwardRef)(
1257
+ var FooterLinkSection = (0, import_react21.forwardRef)(
1258
1258
  (_a, ref) => {
1259
1259
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1260
1260
  const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(LinkList, { children });
@@ -1287,17 +1287,58 @@ FooterComponent.ButtonLink = FooterButtonLink;
1287
1287
  FooterComponent.LinkSections = FooterLinkSections;
1288
1288
  FooterComponent.LinkSection = FooterLinkSection;
1289
1289
 
1290
- // src/layout/container/container.tsx
1290
+ // src/help-text/help-text.tsx
1291
+ var Popover = __toESM(require("@radix-ui/react-popover"));
1291
1292
  var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1292
- var import_react20 = require("react");
1293
+ var import_react22 = require("react");
1293
1294
  var import_jsx_runtime24 = require("react/jsx-runtime");
1294
- var Container = (0, import_react20.forwardRef)(
1295
+ var HelpText = (0, import_react22.forwardRef)(
1296
+ (_a, ref) => {
1297
+ var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1298
+ return (
1299
+ // NOTE: Using radix's [Popover component](https://www.radix-ui.com/primitives/docs/components/popover)
1300
+ // In the future we can use the native popover api, but as of writing, though all browsers support it
1301
+ // it's not far enough back to be used in production
1302
+ // https://caniuse.com/mdn-html_elements_input_popovertarget
1303
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Popover.Root, { children: [
1304
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1305
+ "button",
1306
+ __spreadProps(__spreadValues({
1307
+ ref,
1308
+ className: (0, import_typed_classname23.clsx)("hds-help-text-button", className),
1309
+ title,
1310
+ type: "button"
1311
+ }, rest), {
1312
+ children
1313
+ })
1314
+ ) }),
1315
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1316
+ BoxComponent,
1317
+ __spreadProps(__spreadValues({}, boxProps), {
1318
+ className: (0, import_typed_classname23.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1319
+ children: [
1320
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BoxComponent.CloseButton, {}) }),
1321
+ helpText
1322
+ ]
1323
+ })
1324
+ ) }) })
1325
+ ] })
1326
+ );
1327
+ }
1328
+ );
1329
+ HelpText.displayName = "HelpText";
1330
+
1331
+ // src/layout/container/container.tsx
1332
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1333
+ var import_react23 = require("react");
1334
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1335
+ var Container = (0, import_react23.forwardRef)(
1295
1336
  (_a, ref) => {
1296
1337
  var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
1297
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1338
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1298
1339
  Component,
1299
1340
  __spreadProps(__spreadValues({}, rest), {
1300
- className: (0, import_typed_classname23.clsx)(
1341
+ className: (0, import_typed_classname24.clsx)(
1301
1342
  "hds-container",
1302
1343
  { "hds-container--slim": variant === "slim" },
1303
1344
  className
@@ -1311,9 +1352,9 @@ var Container = (0, import_react20.forwardRef)(
1311
1352
  Container.displayName = "Container";
1312
1353
 
1313
1354
  // src/layout/grid/grid.tsx
1314
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1355
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1315
1356
  var import_react_slot2 = require("@radix-ui/react-slot");
1316
- var import_react21 = require("react");
1357
+ var import_react24 = require("react");
1317
1358
 
1318
1359
  // src/layout/responsive.ts
1319
1360
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1335,17 +1376,17 @@ function getSpacingVariable(size) {
1335
1376
  }
1336
1377
 
1337
1378
  // src/layout/grid/grid.tsx
1338
- var import_jsx_runtime25 = require("react/jsx-runtime");
1339
- var Grid = (0, import_react21.forwardRef)(
1379
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1380
+ var Grid = (0, import_react24.forwardRef)(
1340
1381
  (_a, ref) => {
1341
1382
  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"]);
1342
1383
  const Component = asChild ? import_react_slot2.Slot : "div";
1343
1384
  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"));
1344
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1385
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1345
1386
  Component,
1346
1387
  __spreadProps(__spreadValues({
1347
1388
  style,
1348
- className: (0, import_typed_classname24.clsx)("hds-grid", className),
1389
+ className: (0, import_typed_classname25.clsx)("hds-grid", className),
1349
1390
  ref
1350
1391
  }, rest), {
1351
1392
  children
@@ -1354,16 +1395,16 @@ var Grid = (0, import_react21.forwardRef)(
1354
1395
  }
1355
1396
  );
1356
1397
  Grid.displayName = "Grid";
1357
- var GridItem = (0, import_react21.forwardRef)(
1398
+ var GridItem = (0, import_react24.forwardRef)(
1358
1399
  (_a, ref) => {
1359
1400
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1360
1401
  const Component = asChild ? import_react_slot2.Slot : "div";
1361
1402
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1362
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1403
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1363
1404
  Component,
1364
1405
  __spreadProps(__spreadValues({
1365
1406
  style,
1366
- className: (0, import_typed_classname24.clsx)("hds-grid__item", className),
1407
+ className: (0, import_typed_classname25.clsx)("hds-grid__item", className),
1367
1408
  ref
1368
1409
  }, rest), {
1369
1410
  children
@@ -1379,11 +1420,11 @@ GridComponent.Item = GridItem;
1379
1420
 
1380
1421
  // src/layout/stack/stack.tsx
1381
1422
  var React5 = require("react");
1382
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1383
- var import_react22 = require("react");
1423
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1424
+ var import_react25 = require("react");
1384
1425
  var import_react_slot3 = require("@radix-ui/react-slot");
1385
- var import_jsx_runtime26 = require("react/jsx-runtime");
1386
- var Stack = (0, import_react22.forwardRef)(
1426
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1427
+ var Stack = (0, import_react25.forwardRef)(
1387
1428
  (_a, ref) => {
1388
1429
  var _b = _a, {
1389
1430
  children,
@@ -1412,11 +1453,11 @@ var Stack = (0, import_react22.forwardRef)(
1412
1453
  ]);
1413
1454
  const Component = asChild ? import_react_slot3.Slot : "div";
1414
1455
  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));
1415
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1456
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1416
1457
  Component,
1417
1458
  __spreadProps(__spreadValues({
1418
1459
  style,
1419
- className: (0, import_typed_classname25.clsx)("hds-stack", className),
1460
+ className: (0, import_typed_classname26.clsx)("hds-stack", className),
1420
1461
  ref
1421
1462
  }, rest), {
1422
1463
  children
@@ -1425,27 +1466,27 @@ var Stack = (0, import_react22.forwardRef)(
1425
1466
  }
1426
1467
  );
1427
1468
  Stack.displayName = "Stack";
1428
- var HStack = (0, import_react22.forwardRef)((props, ref) => {
1429
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1469
+ var HStack = (0, import_react25.forwardRef)((props, ref) => {
1470
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1430
1471
  });
1431
1472
  HStack.displayName = "HStack";
1432
- var VStack = (0, import_react22.forwardRef)((props, ref) => {
1433
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1473
+ var VStack = (0, import_react25.forwardRef)((props, ref) => {
1474
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1434
1475
  });
1435
1476
  VStack.displayName = "VStack";
1436
1477
 
1437
1478
  // src/link/link.tsx
1438
1479
  var React6 = require("react");
1439
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1440
- var import_react23 = require("react");
1441
- var import_jsx_runtime27 = require("react/jsx-runtime");
1442
- var Link = (0, import_react23.forwardRef)(
1480
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1481
+ var import_react26 = require("react");
1482
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1483
+ var Link = (0, import_react26.forwardRef)(
1443
1484
  (_a, ref) => {
1444
1485
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
1445
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1486
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1446
1487
  Component,
1447
1488
  __spreadProps(__spreadValues({
1448
- className: (0, import_typed_classname26.clsx)(
1489
+ className: (0, import_typed_classname27.clsx)(
1449
1490
  "hds-link",
1450
1491
  variant !== "underline" && `hds-link--${variant}`,
1451
1492
  size !== "medium" && `hds-link--${size}`,
@@ -1461,20 +1502,20 @@ var Link = (0, import_react23.forwardRef)(
1461
1502
  Link.displayName = "Link";
1462
1503
 
1463
1504
  // src/message/message.tsx
1464
- var import_react24 = require("react");
1465
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1466
- var import_jsx_runtime28 = require("react/jsx-runtime");
1467
- var Message = (0, import_react24.forwardRef)(
1505
+ var import_react27 = require("react");
1506
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1507
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1508
+ var Message = (0, import_react27.forwardRef)(
1468
1509
  (_a, ref) => {
1469
1510
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1470
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1511
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1471
1512
  Box,
1472
1513
  __spreadProps(__spreadValues({
1473
- className: (0, import_typed_classname27.clsx)(`hds-message`, `hds-message--${variant}`, className),
1514
+ className: (0, import_typed_classname28.clsx)(`hds-message`, `hds-message--${variant}`, className),
1474
1515
  ref
1475
1516
  }, rest), {
1476
1517
  children: [
1477
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: (0, import_typed_classname27.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1518
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: (0, import_typed_classname28.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1478
1519
  children
1479
1520
  ]
1480
1521
  })
@@ -1482,26 +1523,26 @@ var Message = (0, import_react24.forwardRef)(
1482
1523
  }
1483
1524
  );
1484
1525
  Message.displayName = "Message";
1485
- var MessageTitle = (0, import_react24.forwardRef)(
1526
+ var MessageTitle = (0, import_react27.forwardRef)(
1486
1527
  (_a, ref) => {
1487
1528
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1488
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1529
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1489
1530
  Component,
1490
1531
  __spreadValues({
1491
- className: (0, import_typed_classname27.clsx)("hds-message__title", className),
1532
+ className: (0, import_typed_classname28.clsx)("hds-message__title", className),
1492
1533
  ref
1493
1534
  }, rest)
1494
1535
  );
1495
1536
  }
1496
1537
  );
1497
1538
  MessageTitle.displayName = "Message.Title";
1498
- var MessageDescription = (0, import_react24.forwardRef)(
1539
+ var MessageDescription = (0, import_react27.forwardRef)(
1499
1540
  (_a, ref) => {
1500
1541
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1501
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1542
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1502
1543
  Component,
1503
1544
  __spreadValues({
1504
- className: (0, import_typed_classname27.clsx)("hds-message__description", className),
1545
+ className: (0, import_typed_classname28.clsx)("hds-message__description", className),
1505
1546
  ref
1506
1547
  }, rest)
1507
1548
  );
@@ -1515,13 +1556,13 @@ MessageComponent.Title = MessageTitle;
1515
1556
  MessageComponent.Description = MessageDescription;
1516
1557
 
1517
1558
  // src/modal/modal.tsx
1518
- var import_react25 = require("react");
1519
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1520
- var import_jsx_runtime29 = require("react/jsx-runtime");
1521
- var Modal = (0, import_react25.forwardRef)(
1559
+ var import_react28 = require("react");
1560
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1561
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1562
+ var Modal = (0, import_react28.forwardRef)(
1522
1563
  (_a, ref) => {
1523
1564
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1524
- const modalRef = (0, import_react25.useRef)(null);
1565
+ const modalRef = (0, import_react28.useRef)(null);
1525
1566
  const mergedRef = useMergeRefs([modalRef, ref]);
1526
1567
  function onCloseButtonClick() {
1527
1568
  var _a2;
@@ -1529,7 +1570,7 @@ var Modal = (0, import_react25.forwardRef)(
1529
1570
  return false;
1530
1571
  }
1531
1572
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1532
- (0, import_react25.useEffect)(() => {
1573
+ (0, import_react28.useEffect)(() => {
1533
1574
  if (modalRef.current && open !== void 0) {
1534
1575
  if (open && !modalRef.current.open) {
1535
1576
  modalRef.current.showModal();
@@ -1544,11 +1585,11 @@ var Modal = (0, import_react25.forwardRef)(
1544
1585
  }
1545
1586
  onClick == null ? void 0 : onClick(e);
1546
1587
  }
1547
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1588
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1548
1589
  Box,
1549
1590
  __spreadProps(__spreadValues({
1550
1591
  as: "dialog",
1551
- className: (0, import_typed_classname28.clsx)("hds-modal", className),
1592
+ className: (0, import_typed_classname29.clsx)("hds-modal", className),
1552
1593
  closeable: true,
1553
1594
  onClick: onDialogClick,
1554
1595
  onClose: onCloseButtonClick,
@@ -1561,39 +1602,39 @@ var Modal = (0, import_react25.forwardRef)(
1561
1602
  }
1562
1603
  );
1563
1604
  Modal.displayName = "Modal";
1564
- var ModalHeader = (0, import_react25.forwardRef)(
1605
+ var ModalHeader = (0, import_react28.forwardRef)(
1565
1606
  (_a, ref) => {
1566
1607
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1567
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1608
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1568
1609
  Component,
1569
1610
  __spreadValues({
1570
- className: (0, import_typed_classname28.clsx)("hds-modal__header", className),
1611
+ className: (0, import_typed_classname29.clsx)("hds-modal__header", className),
1571
1612
  ref
1572
1613
  }, rest)
1573
1614
  );
1574
1615
  }
1575
1616
  );
1576
1617
  ModalHeader.displayName = "Modal.Header";
1577
- var ModalContent = (0, import_react25.forwardRef)(
1618
+ var ModalContent = (0, import_react28.forwardRef)(
1578
1619
  (_a, ref) => {
1579
1620
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1580
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1621
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1581
1622
  Component,
1582
1623
  __spreadValues({
1583
- className: (0, import_typed_classname28.clsx)("hds-modal__content", className),
1624
+ className: (0, import_typed_classname29.clsx)("hds-modal__content", className),
1584
1625
  ref
1585
1626
  }, rest)
1586
1627
  );
1587
1628
  }
1588
1629
  );
1589
1630
  ModalContent.displayName = "Modal.Content";
1590
- var ModalFooter = (0, import_react25.forwardRef)(
1631
+ var ModalFooter = (0, import_react28.forwardRef)(
1591
1632
  (_a, ref) => {
1592
1633
  var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1593
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1634
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1594
1635
  Component,
1595
1636
  __spreadValues({
1596
- className: (0, import_typed_classname28.clsx)("hds-modal__footer", className),
1637
+ className: (0, import_typed_classname29.clsx)("hds-modal__footer", className),
1597
1638
  ref
1598
1639
  }, rest)
1599
1640
  );
@@ -1601,7 +1642,7 @@ var ModalFooter = (0, import_react25.forwardRef)(
1601
1642
  );
1602
1643
  ModalFooter.displayName = "Modal.Footer";
1603
1644
  function useScrollLock(modalRef, bodyClass) {
1604
- (0, import_react25.useEffect)(() => {
1645
+ (0, import_react28.useEffect)(() => {
1605
1646
  if (!modalRef.current)
1606
1647
  return;
1607
1648
  if (modalRef.current.open)
@@ -1631,17 +1672,17 @@ ModalComponent.Content = ModalContent;
1631
1672
  ModalComponent.Footer = ModalFooter;
1632
1673
 
1633
1674
  // src/navbar/navbar.tsx
1634
- var import_react26 = require("react");
1635
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1675
+ var import_react29 = require("react");
1676
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1636
1677
  var import_react_slot4 = require("@radix-ui/react-slot");
1637
- var import_jsx_runtime30 = require("react/jsx-runtime");
1638
- var Navbar = (0, import_react26.forwardRef)(
1678
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1679
+ var Navbar = (0, import_react29.forwardRef)(
1639
1680
  (_a, ref) => {
1640
1681
  var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
1641
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1682
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1642
1683
  "header",
1643
1684
  __spreadProps(__spreadValues({
1644
- className: (0, import_typed_classname29.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
1685
+ className: (0, import_typed_classname30.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
1645
1686
  ref
1646
1687
  }, rest), {
1647
1688
  children
@@ -1650,22 +1691,22 @@ var Navbar = (0, import_react26.forwardRef)(
1650
1691
  }
1651
1692
  );
1652
1693
  Navbar.displayName = "Navbar";
1653
- var NavbarLogo = (0, import_react26.forwardRef)(
1694
+ var NavbarLogo = (0, import_react29.forwardRef)(
1654
1695
  (_a, ref) => {
1655
1696
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1656
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadValues({ className: (0, import_typed_classname29.clsx)("hds-navbar__logo", className), ref }, rest));
1697
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, __spreadValues({ className: (0, import_typed_classname30.clsx)("hds-navbar__logo", className), ref }, rest));
1657
1698
  }
1658
1699
  );
1659
1700
  NavbarLogo.displayName = "Navbar.Logo";
1660
- var NavbarLogoAndServiceText = (0, import_react26.forwardRef)(
1701
+ var NavbarLogoAndServiceText = (0, import_react29.forwardRef)(
1661
1702
  (_a, ref) => {
1662
1703
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
1663
1704
  const Component = asChild ? import_react_slot4.Slot : "div";
1664
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1705
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1665
1706
  Component,
1666
1707
  __spreadProps(__spreadValues({
1667
1708
  ref,
1668
- className: (0, import_typed_classname29.clsx)(
1709
+ className: (0, import_typed_classname30.clsx)(
1669
1710
  "hds-navbar__logo-and-service-text",
1670
1711
  `hds-navbar__logo-and-service-text--${variant}`,
1671
1712
  className
@@ -1677,10 +1718,10 @@ var NavbarLogoAndServiceText = (0, import_react26.forwardRef)(
1677
1718
  }
1678
1719
  );
1679
1720
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
1680
- var NavbarButton = (0, import_react26.forwardRef)(
1721
+ var NavbarButton = (0, import_react29.forwardRef)(
1681
1722
  (_a, ref) => {
1682
1723
  var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
1683
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname29.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1724
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname30.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1684
1725
  children,
1685
1726
  " ",
1686
1727
  icon
@@ -1688,12 +1729,12 @@ var NavbarButton = (0, import_react26.forwardRef)(
1688
1729
  }
1689
1730
  );
1690
1731
  NavbarButton.displayName = "Navbar.Button";
1691
- var NavbarNavigation = (0, import_react26.forwardRef)((_a, ref) => {
1732
+ var NavbarNavigation = (0, import_react29.forwardRef)((_a, ref) => {
1692
1733
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1693
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1734
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1694
1735
  Component,
1695
1736
  __spreadValues({
1696
- className: (0, import_typed_classname29.clsx)("hds-navbar__navigation", className),
1737
+ className: (0, import_typed_classname30.clsx)("hds-navbar__navigation", className),
1697
1738
  ref
1698
1739
  }, rest)
1699
1740
  );
@@ -1701,15 +1742,15 @@ var NavbarNavigation = (0, import_react26.forwardRef)((_a, ref) => {
1701
1742
  NavbarNavigation.displayName = "Navbar.Navigation";
1702
1743
 
1703
1744
  // src/navbar/navbar-expandable-menu.tsx
1704
- var import_react27 = require("react");
1745
+ var import_react30 = require("react");
1705
1746
  var import_client = require("react-dom/client");
1706
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1747
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1707
1748
  var import_focus_trap_react = __toESM(require("focus-trap-react"));
1708
1749
 
1709
1750
  // src/navbar/icons.tsx
1710
- var import_jsx_runtime31 = require("react/jsx-runtime");
1751
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1711
1752
  function CloseIcon() {
1712
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { "aria-hidden": true, viewBox: "0 0 384 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1753
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("svg", { "aria-hidden": true, viewBox: "0 0 384 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1713
1754
  "path",
1714
1755
  {
1715
1756
  d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z",
@@ -1718,7 +1759,7 @@ function CloseIcon() {
1718
1759
  ) });
1719
1760
  }
1720
1761
  function MenuIcon() {
1721
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { role: "img", viewBox: "0 0 448 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1762
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("svg", { role: "img", viewBox: "0 0 448 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1722
1763
  "path",
1723
1764
  {
1724
1765
  d: "M0 88C0 74.7 10.7 64 24 64H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H424c13.3 0 24 10.7 24 24z",
@@ -1728,32 +1769,32 @@ function MenuIcon() {
1728
1769
  }
1729
1770
 
1730
1771
  // src/navbar/navbar-expandable-menu.tsx
1731
- var import_jsx_runtime32 = require("react/jsx-runtime");
1732
- var expandableMenuContext = (0, import_react27.createContext)([
1772
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1773
+ var expandableMenuContext = (0, import_react30.createContext)([
1733
1774
  false,
1734
1775
  () => {
1735
1776
  }
1736
1777
  ]);
1737
- var useNavbarExpendableMenuContext = () => (0, import_react27.useContext)(expandableMenuContext);
1778
+ var useNavbarExpendableMenuContext = () => (0, import_react30.useContext)(expandableMenuContext);
1738
1779
  function NavbarExpandableMenu({ children }) {
1739
- const [open, setOpen] = (0, import_react27.useState)(false);
1780
+ const [open, setOpen] = (0, import_react30.useState)(false);
1740
1781
  const isClientSide = useHydrated();
1741
1782
  const toggleOpen = () => {
1742
1783
  const nextOpenState = !open;
1743
1784
  setOpen(nextOpenState);
1744
1785
  if (nextOpenState) {
1745
1786
  window.scrollTo(0, 0);
1746
- document.body.classList.add((0, import_typed_classname30.clsx)("hds-navbar-scroll-lock"));
1787
+ document.body.classList.add((0, import_typed_classname31.clsx)("hds-navbar-scroll-lock"));
1747
1788
  } else {
1748
- document.body.classList.remove((0, import_typed_classname30.clsx)("hds-navbar-scroll-lock"));
1789
+ document.body.classList.remove((0, import_typed_classname31.clsx)("hds-navbar-scroll-lock"));
1749
1790
  }
1750
1791
  };
1751
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(expandableMenuContext.Provider, { value: [open, toggleOpen], children: [
1752
- open && isClientSide ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1792
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(expandableMenuContext.Provider, { value: [open, toggleOpen], children: [
1793
+ open && isClientSide ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1753
1794
  import_focus_trap_react.default,
1754
1795
  {
1755
1796
  containerElements: [
1756
- document.getElementsByClassName((0, import_typed_classname30.clsx)("hds-navbar"))[0]
1797
+ document.getElementsByClassName((0, import_typed_classname31.clsx)("hds-navbar"))[0]
1757
1798
  ]
1758
1799
  }
1759
1800
  ) : null,
@@ -1781,12 +1822,12 @@ function RenderButton(_a) {
1781
1822
  "toggleOpen",
1782
1823
  "width"
1783
1824
  ]);
1784
- const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MenuIcon, {});
1825
+ const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MenuIcon, {});
1785
1826
  const style = width ? { width } : {};
1786
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1827
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1787
1828
  "button",
1788
1829
  __spreadProps(__spreadValues({
1789
- className: (0, import_typed_classname30.clsx)("hds-navbar__button", className),
1830
+ className: (0, import_typed_classname31.clsx)("hds-navbar__button", className),
1790
1831
  onClick: toggleOpen,
1791
1832
  ref: ref != null ? ref : innerRef,
1792
1833
  style,
@@ -1794,14 +1835,14 @@ function RenderButton(_a) {
1794
1835
  type: "button"
1795
1836
  }, rest), {
1796
1837
  children: [
1797
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: (0, import_typed_classname30.clsx)("hds-navbar__button-responsive-text"), children: text }),
1838
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: (0, import_typed_classname31.clsx)("hds-navbar__button-responsive-text"), children: text }),
1798
1839
  " ",
1799
1840
  icon
1800
1841
  ]
1801
1842
  })
1802
1843
  );
1803
1844
  }
1804
- var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1845
+ var NavbarExpandableMenuTrigger = (0, import_react30.forwardRef)(
1805
1846
  (_a, ref) => {
1806
1847
  var _b = _a, {
1807
1848
  whenClosedText,
@@ -1817,8 +1858,8 @@ var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1817
1858
  "className"
1818
1859
  ]);
1819
1860
  const [open, toggleOpen] = useNavbarExpendableMenuContext();
1820
- const [width, setWidth] = (0, import_react27.useState)(0);
1821
- const measureButtonRef = (0, import_react27.useRef)(null);
1861
+ const [width, setWidth] = (0, import_react30.useState)(0);
1862
+ const measureButtonRef = (0, import_react30.useRef)(null);
1822
1863
  const text = open ? whenOpenText : whenClosedText;
1823
1864
  const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
1824
1865
  const measureButton = (element, callback) => {
@@ -1836,9 +1877,9 @@ var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1836
1877
  };
1837
1878
  setTimeout(getWidth, 0);
1838
1879
  };
1839
- (0, import_react27.useEffect)(() => {
1880
+ (0, import_react30.useEffect)(() => {
1840
1881
  measureButton(
1841
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1882
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1842
1883
  RenderButton,
1843
1884
  __spreadValues({
1844
1885
  className: className ? className : "",
@@ -1849,7 +1890,7 @@ var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1849
1890
  ),
1850
1891
  (closedWidth) => {
1851
1892
  measureButton(
1852
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1893
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1853
1894
  RenderButton,
1854
1895
  __spreadValues({
1855
1896
  className: className ? className : "",
@@ -1866,7 +1907,7 @@ var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1866
1907
  }
1867
1908
  );
1868
1909
  }, [className, rest, title, whenClosedText, whenOpenText]);
1869
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1910
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1870
1911
  RenderButton,
1871
1912
  __spreadValues({
1872
1913
  className: className ? className : "",
@@ -1881,17 +1922,17 @@ var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1881
1922
  }
1882
1923
  );
1883
1924
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenu.Trigger";
1884
- var NavbarExpandableMenuContent = (0, import_react27.forwardRef)((_a, ref) => {
1925
+ var NavbarExpandableMenuContent = (0, import_react30.forwardRef)((_a, ref) => {
1885
1926
  var _b = _a, { as: Component = "section", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
1886
1927
  const [open] = useNavbarExpendableMenuContext();
1887
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1928
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1888
1929
  Component,
1889
1930
  __spreadProps(__spreadValues({}, rest), {
1890
- className: (0, import_typed_classname30.clsx)("hds-navbar__expandable-menu-content", className),
1931
+ className: (0, import_typed_classname31.clsx)("hds-navbar__expandable-menu-content", className),
1891
1932
  "data-state": open ? "open" : "closed",
1892
1933
  inert: open ? void 0 : "true",
1893
1934
  ref,
1894
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: (0, import_typed_classname30.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1935
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0, import_typed_classname31.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1895
1936
  })
1896
1937
  );
1897
1938
  });
@@ -1909,71 +1950,91 @@ NavbarComponent.Button = NavbarButton;
1909
1950
  NavbarComponent.Navigation = NavbarNavigation;
1910
1951
 
1911
1952
  // src/utilities/auto-animate-height.tsx
1912
- var import_react28 = require("react");
1913
- var import_react_dom = require("react-dom");
1914
- var import_jsx_runtime33 = require("react/jsx-runtime");
1915
- var animationDurationToValue = {
1916
- quick: 100,
1917
- normal: 300,
1918
- slow: 700
1919
- };
1920
- var AutoAnimateHeight = (0, import_react28.forwardRef)(
1953
+ var import_react31 = require("react");
1954
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1955
+ var AutoAnimateHeight = (0, import_react31.forwardRef)(
1921
1956
  (_a, ref) => {
1922
1957
  var _b = _a, {
1923
1958
  as: Component = "div",
1924
1959
  children,
1925
1960
  style,
1926
1961
  animationDuration = "quick",
1927
- animationEasing = "normal"
1962
+ animationEasing = "normal",
1963
+ onTransitionEnd
1928
1964
  } = _b, rest = __objRest(_b, [
1929
1965
  "as",
1930
1966
  "children",
1931
1967
  "style",
1932
1968
  "animationDuration",
1933
- "animationEasing"
1969
+ "animationEasing",
1970
+ "onTransitionEnd"
1934
1971
  ]);
1935
- const timeoutRef = (0, import_react28.useRef)(null);
1936
- const measurementRef = (0, import_react28.useRef)(null);
1937
- const [height, setHeight] = (0, import_react28.useState)(void 0);
1938
- const [clonedChildren, setClonedChildren] = (0, import_react28.useState)(
1939
- () => (0, import_react28.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children }), {})
1972
+ var _a2, _b2;
1973
+ const rootRef = (0, import_react31.useRef)(null);
1974
+ const mergedRef = useMergeRefs([rootRef, ref]);
1975
+ const measurementRef = (0, import_react31.useRef)(null);
1976
+ const [height, setHeight] = (0, import_react31.useState)(
1977
+ void 0
1940
1978
  );
1941
- (0, import_react28.useEffect)(() => {
1942
- if (measurementRef.current) {
1943
- const { height: newHeight } = measurementRef.current.getBoundingClientRect();
1944
- if (timeoutRef.current) {
1945
- clearTimeout(timeoutRef.current);
1946
- }
1947
- if (newHeight < (height != null ? height : 0)) {
1948
- setTimeout(() => {
1949
- (0, import_react_dom.flushSync)(() => {
1950
- setHeight(newHeight);
1951
- });
1952
- timeoutRef.current = setTimeout(() => {
1953
- setClonedChildren((0, import_react28.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children }), {}));
1954
- }, animationDurationToValue[animationDuration]);
1955
- });
1956
- } else {
1957
- setHeight(newHeight);
1958
- setClonedChildren((0, import_react28.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children }), {}));
1959
- }
1979
+ const [clonedChildren, setClonedChildren] = (0, import_react31.useState)(
1980
+ () => (0, import_react31.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children }), {})
1981
+ );
1982
+ (0, import_react31.useEffect)(() => {
1983
+ var _a3;
1984
+ if (!rootRef.current)
1985
+ return;
1986
+ if (!measurementRef.current)
1987
+ return;
1988
+ if (document.body.scrollHeight === 0)
1989
+ return;
1990
+ const currentMeasurement = measurementRef.current;
1991
+ const { height: newHeight } = currentMeasurement.getBoundingClientRect();
1992
+ let previouslyObservedHeight = newHeight;
1993
+ const resizeObserver = new ResizeObserver(() => {
1994
+ const { height: resizedHeight } = currentMeasurement.getBoundingClientRect();
1995
+ if (resizedHeight === previouslyObservedHeight)
1996
+ return;
1997
+ previouslyObservedHeight = resizedHeight;
1998
+ setHeight({ height: resizedHeight, shouldAnimate: false });
1999
+ });
2000
+ resizeObserver.observe(currentMeasurement);
2001
+ setHeight({ height: newHeight, shouldAnimate: true });
2002
+ const nextClonedChildren = (0, import_react31.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children }), {});
2003
+ if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
2004
+ setClonedChildren(nextClonedChildren);
2005
+ return () => {
2006
+ resizeObserver.disconnect();
2007
+ };
1960
2008
  }
2009
+ const currentRoot = rootRef.current;
2010
+ function onTransitionEndHandler(e) {
2011
+ if (e.propertyName !== "height")
2012
+ return;
2013
+ setClonedChildren(nextClonedChildren);
2014
+ }
2015
+ currentRoot.addEventListener("transitionend", onTransitionEndHandler);
2016
+ return () => {
2017
+ resizeObserver.disconnect();
2018
+ currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
2019
+ };
1961
2020
  }, [children]);
1962
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2021
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1963
2022
  Component,
1964
2023
  __spreadProps(__spreadValues({
1965
- ref,
2024
+ ref: mergedRef,
2025
+ onTransitionEnd,
1966
2026
  style: __spreadValues({
1967
2027
  position: "relative",
1968
2028
  overflow: "hidden",
1969
- height,
1970
- transitionProperty: "height",
2029
+ height: (_b2 = height == null ? void 0 : height.height) != null ? _b2 : (_a2 = measurementRef.current) == null ? void 0 : _a2.getBoundingClientRect().height,
2030
+ transitionProperty: (height == null ? void 0 : height.shouldAnimate) ? "height" : "none",
1971
2031
  transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,
1972
- transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`
2032
+ transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`,
2033
+ willChange: "height"
1973
2034
  }, style)
1974
2035
  }, rest), {
1975
2036
  children: [
1976
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2037
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1977
2038
  "div",
1978
2039
  {
1979
2040
  "aria-hidden": true,
@@ -1994,17 +2055,17 @@ var AutoAnimateHeight = (0, import_react28.forwardRef)(
1994
2055
  AutoAnimateHeight.displayName = "AutoAnimateHeight";
1995
2056
 
1996
2057
  // src/show-more/show-more.tsx
1997
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1998
- var import_react29 = require("react");
1999
- var import_jsx_runtime34 = require("react/jsx-runtime");
2000
- var ShowMoreButton = (0, import_react29.forwardRef)(
2058
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
2059
+ var import_react32 = require("react");
2060
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2061
+ var ShowMoreButton = (0, import_react32.forwardRef)(
2001
2062
  (_a, ref) => {
2002
2063
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
2003
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2064
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2004
2065
  "button",
2005
2066
  __spreadProps(__spreadValues({
2006
2067
  ref,
2007
- className: (0, import_typed_classname31.clsx)(
2068
+ className: (0, import_typed_classname32.clsx)(
2008
2069
  "hds-show-more",
2009
2070
  variant === "show-more-show-less" && "hds-show-more--show-less",
2010
2071
  className
@@ -2014,7 +2075,7 @@ var ShowMoreButton = (0, import_react29.forwardRef)(
2014
2075
  }, rest), {
2015
2076
  children: [
2016
2077
  text,
2017
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: (0, import_typed_classname31.clsx)("hds-show-more__icon") })
2078
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: (0, import_typed_classname32.clsx)("hds-show-more__icon") })
2018
2079
  ]
2019
2080
  })
2020
2081
  );
@@ -2024,10 +2085,10 @@ ShowMoreButton.displayName = "ShowMoreButton";
2024
2085
 
2025
2086
  // src/skeleton/skeleton.tsx
2026
2087
  var React10 = require("react");
2027
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
2028
- var import_react30 = require("react");
2029
- var import_jsx_runtime35 = require("react/jsx-runtime");
2030
- var Skeleton = (0, import_react30.forwardRef)(
2088
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
2089
+ var import_react33 = require("react");
2090
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2091
+ var Skeleton = (0, import_react33.forwardRef)(
2031
2092
  (_a, ref) => {
2032
2093
  var _b = _a, {
2033
2094
  as: Component = "div",
@@ -2048,10 +2109,10 @@ var Skeleton = (0, import_react30.forwardRef)(
2048
2109
  "className",
2049
2110
  "style"
2050
2111
  ]);
2051
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2112
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2052
2113
  Component,
2053
2114
  __spreadProps(__spreadValues({
2054
- className: (0, import_typed_classname32.clsx)(
2115
+ className: (0, import_typed_classname33.clsx)(
2055
2116
  "hds-skeleton",
2056
2117
  `hds-skeleton--${variant}`,
2057
2118
  !animation && `hds-skeleton--no-animation`,
@@ -2069,10 +2130,10 @@ var Skeleton = (0, import_react30.forwardRef)(
2069
2130
  Skeleton.displayName = "Skeleton";
2070
2131
 
2071
2132
  // src/step-indicator/step-indicator.tsx
2072
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
2073
- var import_react31 = require("react");
2074
- var import_jsx_runtime36 = require("react/jsx-runtime");
2075
- var StepIndicator = (0, import_react31.forwardRef)(
2133
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2134
+ var import_react34 = require("react");
2135
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2136
+ var StepIndicator = (0, import_react34.forwardRef)(
2076
2137
  (_a, ref) => {
2077
2138
  var _b = _a, {
2078
2139
  activeStep,
@@ -2091,27 +2152,27 @@ var StepIndicator = (0, import_react31.forwardRef)(
2091
2152
  "title",
2092
2153
  "titleAs"
2093
2154
  ]);
2094
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2155
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2095
2156
  "div",
2096
2157
  __spreadProps(__spreadValues({
2097
2158
  ref,
2098
- className: (0, import_typed_classname33.clsx)("hds-step-indicator", className),
2159
+ className: (0, import_typed_classname34.clsx)("hds-step-indicator", className),
2099
2160
  lang
2100
2161
  }, rest), {
2101
2162
  children: [
2102
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0, import_typed_classname33.clsx)("hds-step-indicator__header"), children: [
2103
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: (0, import_typed_classname33.clsx)("hds-step-indicator__left-label"), children: label }),
2104
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2163
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: (0, import_typed_classname34.clsx)("hds-step-indicator__header"), children: [
2164
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: (0, import_typed_classname34.clsx)("hds-step-indicator__left-label"), children: label }),
2165
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2105
2166
  ] }),
2106
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: (0, import_typed_classname33.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2167
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_typed_classname34.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2107
2168
  "div",
2108
2169
  {
2109
- className: (0, import_typed_classname33.clsx)("hds-step-indicator__step"),
2170
+ className: (0, import_typed_classname34.clsx)("hds-step-indicator__step"),
2110
2171
  "data-state": getStepState(i + 1, activeStep)
2111
2172
  },
2112
2173
  i
2113
2174
  )) }),
2114
- title ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TitleComponent, { className: (0, import_typed_classname33.clsx)("hds-step-indicator__title"), children: title }) : null
2175
+ title ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TitleComponent, { className: (0, import_typed_classname34.clsx)("hds-step-indicator__title"), children: title }) : null
2115
2176
  ]
2116
2177
  })
2117
2178
  );
@@ -2135,16 +2196,16 @@ function getStepState(renderedStep, activeStep) {
2135
2196
  }
2136
2197
 
2137
2198
  // src/styled-html/styled-html.tsx
2138
- var import_react32 = require("react");
2139
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2140
- var import_jsx_runtime37 = require("react/jsx-runtime");
2141
- var StyledHtml = (0, import_react32.forwardRef)(
2199
+ var import_react35 = require("react");
2200
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2201
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2202
+ var StyledHtml = (0, import_react35.forwardRef)(
2142
2203
  (_a, ref) => {
2143
2204
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
2144
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2205
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2145
2206
  Component,
2146
2207
  __spreadProps(__spreadValues({
2147
- className: (0, import_typed_classname34.clsx)(
2208
+ className: (0, import_typed_classname35.clsx)(
2148
2209
  `hds-styled-html`,
2149
2210
  size === "small" && "hds-styled-html--small",
2150
2211
  darkmode && "hds-styled-html--darkmode",
@@ -2159,15 +2220,50 @@ var StyledHtml = (0, import_react32.forwardRef)(
2159
2220
  );
2160
2221
  StyledHtml.displayName = "StyledHtml";
2161
2222
 
2223
+ // src/table/table.tsx
2224
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2225
+ var import_react36 = require("react");
2226
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2227
+ var Table = (0, import_react36.forwardRef)(
2228
+ (_a, ref) => {
2229
+ var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2230
+ const descriptionId = (0, import_react36.useId)();
2231
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
2232
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2233
+ "table",
2234
+ __spreadProps(__spreadValues({
2235
+ "aria-describedby": description ? descriptionId : void 0,
2236
+ ref,
2237
+ className: (0, import_typed_classname36.clsx)(
2238
+ "hds-table",
2239
+ {
2240
+ "hds-table--compressed": size === "compressed",
2241
+ "hds-table--mobile-compressed": size === "mobile-compressed"
2242
+ },
2243
+ className
2244
+ )
2245
+ }, rest), {
2246
+ children: [
2247
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("caption", { children: caption }) : null,
2248
+ children
2249
+ ]
2250
+ })
2251
+ ),
2252
+ description ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: (0, import_typed_classname36.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2253
+ ] });
2254
+ }
2255
+ );
2256
+ Table.displayName = "Table";
2257
+
2162
2258
  // src/tabs/tabs.tsx
2163
- var import_react34 = require("react");
2164
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2259
+ var import_react38 = require("react");
2260
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2165
2261
 
2166
2262
  // src/tabs/context.ts
2167
- var import_react33 = require("react");
2168
- var TabsContext = (0, import_react33.createContext)(null);
2263
+ var import_react37 = require("react");
2264
+ var TabsContext = (0, import_react37.createContext)(null);
2169
2265
  function useTabsContext() {
2170
- const context = (0, import_react33.useContext)(TabsContext);
2266
+ const context = (0, import_react37.useContext)(TabsContext);
2171
2267
  if (!context) {
2172
2268
  throw new Error(
2173
2269
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2177,30 +2273,30 @@ function useTabsContext() {
2177
2273
  }
2178
2274
 
2179
2275
  // src/tabs/tabs.tsx
2180
- var import_jsx_runtime38 = require("react/jsx-runtime");
2181
- var Tabs = (0, import_react34.forwardRef)(
2276
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2277
+ var Tabs = (0, import_react38.forwardRef)(
2182
2278
  (_a, ref) => {
2183
2279
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
2184
- const [activeTabId, setActiveTabId] = (0, import_react34.useState)(defaultTab);
2185
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2280
+ const [activeTabId, setActiveTabId] = (0, import_react38.useState)(defaultTab);
2281
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2186
2282
  }
2187
2283
  );
2188
2284
  Tabs.displayName = "Tabs";
2189
2285
 
2190
2286
  // src/tabs/tabs-list.tsx
2191
- var import_react35 = require("react");
2192
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2193
- var import_jsx_runtime39 = require("react/jsx-runtime");
2287
+ var import_react39 = require("react");
2288
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2289
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2194
2290
  function TabsList(_a) {
2195
2291
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2196
2292
  const { activeTabId } = useTabsContext();
2197
- const tabsListRef = (0, import_react35.useRef)(null);
2293
+ const tabsListRef = (0, import_react39.useRef)(null);
2198
2294
  const { width: tabsWidth } = useResize(tabsListRef);
2199
2295
  const isClientSide = useHydrated();
2200
2296
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2201
2297
  const wideEnough = innerWidth >= tabsWidth;
2202
- const previousTabId = (0, import_react35.useRef)(activeTabId);
2203
- (0, import_react35.useEffect)(() => {
2298
+ const previousTabId = (0, import_react39.useRef)(activeTabId);
2299
+ (0, import_react39.useEffect)(() => {
2204
2300
  const tabList = tabsListRef.current;
2205
2301
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2206
2302
  if (!activeTab || !tabList)
@@ -2225,10 +2321,10 @@ function TabsList(_a) {
2225
2321
  }
2226
2322
  previousTabId.current = activeTabId;
2227
2323
  }, [activeTabId, innerWidth]);
2228
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2324
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2229
2325
  "div",
2230
2326
  __spreadProps(__spreadValues({
2231
- className: (0, import_typed_classname36.clsx)(
2327
+ className: (0, import_typed_classname38.clsx)(
2232
2328
  "hds-tabs__list",
2233
2329
  direction === "horizontal" ? {
2234
2330
  "hds-tabs__list--horizontal": wideEnough,
@@ -2246,7 +2342,7 @@ function TabsList(_a) {
2246
2342
  );
2247
2343
  }
2248
2344
  TabsList.displayName = "Tabs.List";
2249
- var TabsTab = (0, import_react35.forwardRef)(
2345
+ var TabsTab = (0, import_react39.forwardRef)(
2250
2346
  (_a, ref) => {
2251
2347
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
2252
2348
  const context = useTabsContext();
@@ -2255,10 +2351,10 @@ var TabsTab = (0, import_react35.forwardRef)(
2255
2351
  context.toggleActiveTabId(tabId);
2256
2352
  onClick && onClick(e);
2257
2353
  };
2258
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2354
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2259
2355
  Component,
2260
2356
  __spreadProps(__spreadValues({
2261
- className: (0, import_typed_classname36.clsx)(
2357
+ className: (0, import_typed_classname38.clsx)(
2262
2358
  "hds-tabs__tab",
2263
2359
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2264
2360
  className
@@ -2276,20 +2372,20 @@ var TabsTab = (0, import_react35.forwardRef)(
2276
2372
  TabsTab.displayName = "Tabs.Tab";
2277
2373
 
2278
2374
  // src/tabs/tabs-content.tsx
2279
- var import_react36 = require("react");
2280
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2281
- var import_jsx_runtime40 = require("react/jsx-runtime");
2375
+ var import_react40 = require("react");
2376
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2377
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2282
2378
  function TabsContents(_a) {
2283
2379
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
2284
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)("hds-tabs__contents") }, rest), { children }));
2380
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname39.clsx)("hds-tabs__contents") }, rest), { children }));
2285
2381
  }
2286
2382
  TabsContents.displayName = "Tabs.Contents";
2287
- var TabsContent = (0, import_react36.forwardRef)(
2383
+ var TabsContent = (0, import_react40.forwardRef)(
2288
2384
  (_a, ref) => {
2289
2385
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
2290
2386
  const context = useTabsContext();
2291
2387
  if (context.activeTabId === forTabId) {
2292
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2388
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2293
2389
  }
2294
2390
  return null;
2295
2391
  }
@@ -2304,9 +2400,9 @@ TabsComponent.Contents = TabsContents;
2304
2400
  TabsComponent.Content = TabsContent;
2305
2401
 
2306
2402
  // src/text/text.tsx
2307
- var import_react37 = require("react");
2308
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2309
- var import_jsx_runtime41 = require("react/jsx-runtime");
2403
+ var import_react41 = require("react");
2404
+ var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2405
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2310
2406
  var defaultHTMLTag = {
2311
2407
  "h1-display": "h1",
2312
2408
  h1: "h1",
@@ -2322,7 +2418,7 @@ var defaultHTMLTag = {
2322
2418
  caption: "p",
2323
2419
  "caption-title": "p"
2324
2420
  };
2325
- var Text = (0, import_react37.forwardRef)(
2421
+ var Text = (0, import_react41.forwardRef)(
2326
2422
  (_a, ref) => {
2327
2423
  var _b = _a, {
2328
2424
  as,
@@ -2341,10 +2437,10 @@ var Text = (0, import_react37.forwardRef)(
2341
2437
  ]);
2342
2438
  const Component = as != null ? as : defaultHTMLTag[variant];
2343
2439
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2344
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2440
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2345
2441
  Component,
2346
2442
  __spreadProps(__spreadValues({
2347
- className: (0, import_typed_classname38.clsx)(
2443
+ className: (0, import_typed_classname40.clsx)(
2348
2444
  `hds-text-${variant}`,
2349
2445
  sizeModifier && `hds-text--${sizeModifier}`,
2350
2446
  spacing && "hds-text--spacing",
@@ -2360,7 +2456,7 @@ var Text = (0, import_react37.forwardRef)(
2360
2456
  Text.displayName = "Text";
2361
2457
 
2362
2458
  // src/text/index.tsx
2363
- var import_jsx_runtime42 = require("react/jsx-runtime");
2459
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2364
2460
  var TextH1Display = textVariant("h1-display", "TextH1Display");
2365
2461
  var TextH1 = textVariant("h1", "TextH1");
2366
2462
  var TextH2 = textVariant("h2", "TextH2");
@@ -2391,28 +2487,28 @@ var variantToHtmlTag = {
2391
2487
  };
2392
2488
  function textVariant(variant, displayName) {
2393
2489
  function WrappedText(props) {
2394
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
2490
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
2395
2491
  }
2396
2492
  WrappedText.displayName = displayName;
2397
2493
  return WrappedText;
2398
2494
  }
2399
2495
 
2400
2496
  // src/warning-banner/warning-banner.tsx
2401
- var import_react38 = require("react");
2402
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2403
- var import_jsx_runtime43 = require("react/jsx-runtime");
2404
- var WarningBanner = (0, import_react38.forwardRef)(
2497
+ var import_react42 = require("react");
2498
+ var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2499
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2500
+ var WarningBanner = (0, import_react42.forwardRef)(
2405
2501
  (_a, ref) => {
2406
2502
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2407
2503
  const expandable = !!description;
2408
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname39.clsx)("hds-warning-banner", className), ref, children: [
2409
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
2410
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(WarningBannerDescription, { children: description }) : null
2504
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname41.clsx)("hds-warning-banner", className), ref, children: [
2505
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
2506
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(WarningBannerDescription, { children: description }) : null
2411
2507
  ] }));
2412
2508
  }
2413
2509
  );
2414
2510
  WarningBanner.displayName = "WarningBanner";
2415
- var WarningBannerTitle = (0, import_react38.forwardRef)(
2511
+ var WarningBannerTitle = (0, import_react42.forwardRef)(
2416
2512
  (_a, ref) => {
2417
2513
  var _b = _a, {
2418
2514
  variant,
@@ -2425,12 +2521,12 @@ var WarningBannerTitle = (0, import_react38.forwardRef)(
2425
2521
  "children",
2426
2522
  "className"
2427
2523
  ]);
2428
- const [open, setOpen] = (0, import_react38.useState)(false);
2524
+ const [open, setOpen] = (0, import_react42.useState)(false);
2429
2525
  if (variant === "expandable") {
2430
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2526
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2431
2527
  Component,
2432
2528
  __spreadProps(__spreadValues({
2433
- className: (0, import_typed_classname39.clsx)(
2529
+ className: (0, import_typed_classname41.clsx)(
2434
2530
  "hds-warning-banner__title",
2435
2531
  "hds-warning-banner__title-trigger",
2436
2532
  { "hds-warning-banner--closed": !open },
@@ -2442,14 +2538,14 @@ var WarningBannerTitle = (0, import_react38.forwardRef)(
2442
2538
  ref,
2443
2539
  type: "button"
2444
2540
  }, rest), {
2445
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children })
2541
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children })
2446
2542
  })
2447
2543
  );
2448
2544
  }
2449
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2545
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2450
2546
  Component,
2451
2547
  __spreadProps(__spreadValues({
2452
- className: (0, import_typed_classname39.clsx)("hds-warning-banner__title", className),
2548
+ className: (0, import_typed_classname41.clsx)("hds-warning-banner__title", className),
2453
2549
  ref
2454
2550
  }, rest), {
2455
2551
  children
@@ -2458,13 +2554,13 @@ var WarningBannerTitle = (0, import_react38.forwardRef)(
2458
2554
  }
2459
2555
  );
2460
2556
  WarningBannerTitle.displayName = "WarningBannerTitle";
2461
- var WarningBannerDescription = (0, import_react38.forwardRef)(
2557
+ var WarningBannerDescription = (0, import_react42.forwardRef)(
2462
2558
  (_a, ref) => {
2463
2559
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
2464
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2560
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2465
2561
  Component,
2466
2562
  __spreadValues({
2467
- className: (0, import_typed_classname39.clsx)("hds-warning-banner__description", className),
2563
+ className: (0, import_typed_classname41.clsx)("hds-warning-banner__description", className),
2468
2564
  ref
2469
2565
  }, rest)
2470
2566
  );
@@ -2503,6 +2599,7 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2503
2599
  Grid,
2504
2600
  GridItem,
2505
2601
  HStack,
2602
+ HelpText,
2506
2603
  Input,
2507
2604
  Link,
2508
2605
  LinkList,
@@ -2529,6 +2626,7 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2529
2626
  Stack,
2530
2627
  StepIndicator,
2531
2628
  StyledHtml,
2629
+ Table,
2532
2630
  Tabs,
2533
2631
  TabsContent,
2534
2632
  TabsContents,