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