@postenbring/hedwig-react 0.0.66 → 0.0.68

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 (201) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +310 -128
  2. package/dist/_tsup-dts-rollup.d.ts +310 -128
  3. package/dist/accordion/index.d.mts +3 -3
  4. package/dist/accordion/index.d.ts +3 -3
  5. package/dist/accordion/index.js +8 -2
  6. package/dist/accordion/index.js.map +1 -1
  7. package/dist/accordion/index.mjs +14 -5
  8. package/dist/box/index.d.mts +1 -1
  9. package/dist/box/index.d.ts +1 -1
  10. package/dist/box/index.js +4 -2
  11. package/dist/box/index.js.map +1 -1
  12. package/dist/box/index.mjs +6 -3
  13. package/dist/card/index.d.mts +2 -2
  14. package/dist/card/index.d.ts +2 -2
  15. package/dist/card/index.js +12 -2
  16. package/dist/card/index.js.map +1 -1
  17. package/dist/card/index.mjs +14 -3
  18. package/dist/{chunk-2ICZ3Q7N.mjs → chunk-2FXMUF6K.mjs} +2 -2
  19. package/dist/{chunk-X46LM2QH.mjs → chunk-3KZOKDKP.mjs} +13 -3
  20. package/dist/chunk-3KZOKDKP.mjs.map +1 -0
  21. package/dist/{chunk-CLXHNRAI.mjs → chunk-B56JZJOS.mjs} +5 -3
  22. package/dist/chunk-B56JZJOS.mjs.map +1 -0
  23. package/dist/chunk-BVG5VSZK.mjs +1 -0
  24. package/dist/{chunk-RVJD2UZF.mjs → chunk-DFH4YKQA.mjs} +2 -2
  25. package/dist/chunk-DFH4YKQA.mjs.map +1 -0
  26. package/dist/chunk-DIDVODBP.mjs +13 -0
  27. package/dist/chunk-DIDVODBP.mjs.map +1 -0
  28. package/dist/{chunk-AR2NOI4U.mjs → chunk-EJ7ANN7M.mjs} +1 -1
  29. package/dist/{chunk-AR2NOI4U.mjs.map → chunk-EJ7ANN7M.mjs.map} +1 -1
  30. package/dist/{chunk-ZTYEOZLK.mjs → chunk-F4STR6SD.mjs} +2 -2
  31. package/dist/chunk-F4STR6SD.mjs.map +1 -0
  32. package/dist/{chunk-2JH4FG63.mjs → chunk-FOZSX44S.mjs} +2 -2
  33. package/dist/{chunk-2JH4FG63.mjs.map → chunk-FOZSX44S.mjs.map} +1 -1
  34. package/dist/chunk-G2SOAFGS.mjs +86 -0
  35. package/dist/chunk-G2SOAFGS.mjs.map +1 -0
  36. package/dist/{chunk-RXIP2JTE.mjs → chunk-K2HG7WRK.mjs} +2 -2
  37. package/dist/{chunk-RXIP2JTE.mjs.map → chunk-K2HG7WRK.mjs.map} +1 -1
  38. package/dist/{chunk-RK6BB3HH.mjs → chunk-KTRIVJM3.mjs} +2 -2
  39. package/dist/{chunk-BZNDK3KJ.mjs → chunk-NMMFIRLZ.mjs} +1 -1
  40. package/dist/{chunk-BZNDK3KJ.mjs.map → chunk-NMMFIRLZ.mjs.map} +1 -1
  41. package/dist/{chunk-BZRCDLEW.mjs → chunk-O32FZU7E.mjs} +2 -2
  42. package/dist/{chunk-IAS3E2S3.mjs → chunk-PUESATBQ.mjs} +2 -2
  43. package/dist/{chunk-27XJO7E4.mjs → chunk-QGZU7Z2W.mjs} +2 -2
  44. package/dist/{chunk-MRCE2Q7A.mjs → chunk-QYSLVQ4F.mjs} +2 -2
  45. package/dist/{chunk-MRCE2Q7A.mjs.map → chunk-QYSLVQ4F.mjs.map} +1 -1
  46. package/dist/chunk-TDLSHJ4Z.mjs +1 -0
  47. package/dist/{chunk-SKI2APSK.mjs → chunk-TNU64NUN.mjs} +13 -7
  48. package/dist/chunk-TNU64NUN.mjs.map +1 -0
  49. package/dist/{chunk-JC6DBIFE.mjs → chunk-XE4UZBL2.mjs} +1 -1
  50. package/dist/{chunk-JC6DBIFE.mjs.map → chunk-XE4UZBL2.mjs.map} +1 -1
  51. package/dist/chunk-XFKD6EEJ.mjs +1 -0
  52. package/dist/chunk-XFKD6EEJ.mjs.map +1 -0
  53. package/dist/chunk-XNA5MFJC.mjs +59 -0
  54. package/dist/chunk-XNA5MFJC.mjs.map +1 -0
  55. package/dist/{chunk-XIHKASNB.mjs → chunk-XYIY6FHW.mjs} +1 -1
  56. package/dist/{chunk-XIHKASNB.mjs.map → chunk-XYIY6FHW.mjs.map} +1 -1
  57. package/dist/{chunk-6TI7ACBR.mjs → chunk-YC7MT6SO.mjs} +2 -2
  58. package/dist/{chunk-WCA2WPFS.mjs → chunk-ZL56N4UK.mjs} +14 -2
  59. package/dist/{chunk-WCA2WPFS.mjs.map → chunk-ZL56N4UK.mjs.map} +1 -1
  60. package/dist/chunk-ZQHLYAJU.mjs +1 -0
  61. package/dist/chunk-ZQHLYAJU.mjs.map +1 -0
  62. package/dist/{chunk-IFGQR4J6.mjs → chunk-ZRFDCZ62.mjs} +2 -2
  63. package/dist/footer/footer.js.map +1 -1
  64. package/dist/footer/footer.mjs +3 -3
  65. package/dist/footer/index.d.mts +3 -3
  66. package/dist/footer/index.d.ts +3 -3
  67. package/dist/footer/index.js +10 -2
  68. package/dist/footer/index.js.map +1 -1
  69. package/dist/footer/index.mjs +14 -5
  70. package/dist/form/date-picker/date-picker.d.mts +2 -0
  71. package/dist/form/date-picker/date-picker.d.ts +2 -0
  72. package/dist/form/date-picker/date-picker.js +265 -0
  73. package/dist/form/date-picker/date-picker.js.map +1 -0
  74. package/dist/form/date-picker/date-picker.mjs +13 -0
  75. package/dist/form/date-picker/date-picker.mjs.map +1 -0
  76. package/dist/form/date-picker/index.d.mts +2 -0
  77. package/dist/form/date-picker/index.d.ts +2 -0
  78. package/dist/form/date-picker/index.js +267 -0
  79. package/dist/form/date-picker/index.js.map +1 -0
  80. package/dist/form/date-picker/index.mjs +14 -0
  81. package/dist/form/date-picker/index.mjs.map +1 -0
  82. package/dist/form/index.d.mts +10 -8
  83. package/dist/form/index.d.ts +10 -8
  84. package/dist/form/index.js +239 -131
  85. package/dist/form/index.js.map +1 -1
  86. package/dist/form/index.mjs +12 -6
  87. package/dist/form/input/index.js +12 -6
  88. package/dist/form/input/index.js.map +1 -1
  89. package/dist/form/input/index.mjs +2 -2
  90. package/dist/form/input/input.js +12 -6
  91. package/dist/form/input/input.js.map +1 -1
  92. package/dist/form/input/input.mjs +2 -2
  93. package/dist/form/input-group/index.js +12 -6
  94. package/dist/form/input-group/index.js.map +1 -1
  95. package/dist/form/input-group/index.mjs +1 -1
  96. package/dist/form/input-group/input-group.js +12 -6
  97. package/dist/form/input-group/input-group.js.map +1 -1
  98. package/dist/form/input-group/input-group.mjs +1 -1
  99. package/dist/form/select/index.js +12 -6
  100. package/dist/form/select/index.js.map +1 -1
  101. package/dist/form/select/index.mjs +2 -2
  102. package/dist/form/select/select.js +12 -6
  103. package/dist/form/select/select.js.map +1 -1
  104. package/dist/form/select/select.mjs +2 -2
  105. package/dist/form/textarea/index.js +12 -6
  106. package/dist/form/textarea/index.js.map +1 -1
  107. package/dist/form/textarea/index.mjs +2 -2
  108. package/dist/form/textarea/textarea.js +12 -6
  109. package/dist/form/textarea/textarea.js.map +1 -1
  110. package/dist/form/textarea/textarea.mjs +2 -2
  111. package/dist/index-no-css.d.mts +31 -23
  112. package/dist/index-no-css.d.ts +31 -23
  113. package/dist/index-no-css.js +603 -414
  114. package/dist/index-no-css.js.map +1 -1
  115. package/dist/index-no-css.mjs +107 -40
  116. package/dist/index.d.mts +31 -23
  117. package/dist/index.d.ts +31 -23
  118. package/dist/index.js +603 -414
  119. package/dist/index.js.map +1 -1
  120. package/dist/index.mjs +107 -40
  121. package/dist/index.mjs.map +1 -1
  122. package/dist/layout/grid/grid.d.mts +4 -0
  123. package/dist/layout/grid/grid.d.ts +4 -0
  124. package/dist/layout/grid/grid.js +122 -0
  125. package/dist/layout/grid/grid.js.map +1 -0
  126. package/dist/layout/grid/grid.mjs +12 -0
  127. package/dist/layout/grid/grid.mjs.map +1 -0
  128. package/dist/layout/grid/index.d.mts +4 -0
  129. package/dist/layout/grid/index.d.ts +4 -0
  130. package/dist/layout/grid/index.js +128 -0
  131. package/dist/layout/grid/index.js.map +1 -0
  132. package/dist/layout/grid/index.mjs +14 -0
  133. package/dist/layout/grid/index.mjs.map +1 -0
  134. package/dist/layout/index.d.mts +5 -1
  135. package/dist/layout/index.d.ts +5 -1
  136. package/dist/layout/index.js +68 -18
  137. package/dist/layout/index.js.map +1 -1
  138. package/dist/layout/index.mjs +14 -5
  139. package/dist/layout/responsive.js +1 -1
  140. package/dist/layout/responsive.js.map +1 -1
  141. package/dist/layout/responsive.mjs +1 -1
  142. package/dist/layout/stack/index.js +1 -1
  143. package/dist/layout/stack/index.js.map +1 -1
  144. package/dist/layout/stack/index.mjs +3 -2
  145. package/dist/layout/stack/stack.js +1 -1
  146. package/dist/layout/stack/stack.js.map +1 -1
  147. package/dist/layout/stack/stack.mjs +2 -2
  148. package/dist/message/index.d.mts +2 -0
  149. package/dist/message/index.d.ts +2 -0
  150. package/dist/message/index.js +6 -2
  151. package/dist/message/index.js.map +1 -1
  152. package/dist/message/index.mjs +8 -3
  153. package/dist/message/message.d.mts +2 -2
  154. package/dist/message/message.d.ts +2 -2
  155. package/dist/modal/index.d.mts +2 -2
  156. package/dist/modal/index.d.ts +2 -2
  157. package/dist/modal/index.js +8 -2
  158. package/dist/modal/index.js.map +1 -1
  159. package/dist/modal/index.mjs +11 -4
  160. package/dist/modal/modal.js.map +1 -1
  161. package/dist/modal/modal.mjs +2 -2
  162. package/dist/navbar/index.d.mts +3 -3
  163. package/dist/navbar/index.d.ts +3 -3
  164. package/dist/navbar/index.js +41 -11
  165. package/dist/navbar/index.js.map +1 -1
  166. package/dist/navbar/index.mjs +13 -3
  167. package/dist/navbar/navbar-expandable-menu.js +33 -11
  168. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  169. package/dist/navbar/navbar-expandable-menu.mjs +2 -1
  170. package/dist/tabs/index.js +13 -1
  171. package/dist/tabs/index.js.map +1 -1
  172. package/dist/tabs/index.mjs +3 -3
  173. package/dist/tabs/tabs-list.js +13 -1
  174. package/dist/tabs/tabs-list.js.map +1 -1
  175. package/dist/tabs/tabs-list.mjs +2 -2
  176. package/dist/utils.d.mts +1 -0
  177. package/dist/utils.d.ts +1 -0
  178. package/dist/utils.js +13 -0
  179. package/dist/utils.js.map +1 -1
  180. package/dist/utils.mjs +3 -1
  181. package/dist/warning-banner/index.js.map +1 -1
  182. package/dist/warning-banner/index.mjs +2 -2
  183. package/dist/warning-banner/warning-banner.js.map +1 -1
  184. package/dist/warning-banner/warning-banner.mjs +2 -2
  185. package/package.json +6 -6
  186. package/dist/chunk-CLXHNRAI.mjs.map +0 -1
  187. package/dist/chunk-L4GQJETB.mjs +0 -1
  188. package/dist/chunk-RVJD2UZF.mjs.map +0 -1
  189. package/dist/chunk-SKI2APSK.mjs.map +0 -1
  190. package/dist/chunk-T24JZIQO.mjs +0 -1
  191. package/dist/chunk-X46LM2QH.mjs.map +0 -1
  192. package/dist/chunk-ZTYEOZLK.mjs.map +0 -1
  193. /package/dist/{chunk-2ICZ3Q7N.mjs.map → chunk-2FXMUF6K.mjs.map} +0 -0
  194. /package/dist/{chunk-L4GQJETB.mjs.map → chunk-BVG5VSZK.mjs.map} +0 -0
  195. /package/dist/{chunk-RK6BB3HH.mjs.map → chunk-KTRIVJM3.mjs.map} +0 -0
  196. /package/dist/{chunk-BZRCDLEW.mjs.map → chunk-O32FZU7E.mjs.map} +0 -0
  197. /package/dist/{chunk-IAS3E2S3.mjs.map → chunk-PUESATBQ.mjs.map} +0 -0
  198. /package/dist/{chunk-27XJO7E4.mjs.map → chunk-QGZU7Z2W.mjs.map} +0 -0
  199. /package/dist/{chunk-T24JZIQO.mjs.map → chunk-TDLSHJ4Z.mjs.map} +0 -0
  200. /package/dist/{chunk-6TI7ACBR.mjs.map → chunk-YC7MT6SO.mjs.map} +0 -0
  201. /package/dist/{chunk-IFGQR4J6.mjs.map → chunk-ZRFDCZ62.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -60,25 +60,50 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
60
60
  var src_exports = {};
61
61
  __export(src_exports, {
62
62
  Accordion: () => AccordionComponent,
63
+ AccordionContent: () => AccordionContent,
64
+ AccordionHeader: () => AccordionHeader,
65
+ AccordionItem: () => AccordionItem,
63
66
  AutoAnimateHeight: () => AutoAnimateHeight,
64
67
  Badge: () => Badge,
65
68
  Box: () => BoxComponent,
69
+ BoxCloseButton: () => BoxCloseButton,
66
70
  Breadcrumbs: () => Breadcrumbs,
67
71
  Card: () => CardComponent,
72
+ CardBody: () => CardBody,
73
+ CardBodyHeader: () => CardBodyHeader,
74
+ CardBodyHeaderOverline: () => CardBodyHeaderOverline,
75
+ CardMedia: () => CardMedia,
76
+ CardMediaImg: () => CardMediaImg,
68
77
  Checkbox: () => Checkbox,
69
78
  Container: () => Container,
70
79
  DarkBadge: () => DarkBadge,
80
+ DatePicker: () => DatePicker,
71
81
  DescriptionList: () => DescriptionList,
72
82
  ErrorMessage: () => ErrorMessage,
73
83
  Fieldset: () => Fieldset,
74
84
  Footer: () => FooterComponent,
85
+ FooterButtonLink: () => FooterButtonLink,
86
+ FooterLinkSection: () => FooterLinkSection,
87
+ FooterLinkSections: () => FooterLinkSections,
88
+ FooterLogo: () => FooterLogo,
89
+ Grid: () => GridComponent,
90
+ GridItem: () => GridItem,
75
91
  HStack: () => HStack,
76
92
  Input: () => Input,
77
93
  Link: () => Link,
78
94
  LinkList: () => LinkList,
79
95
  Message: () => MessageComponent,
96
+ MessageDescription: () => MessageDescription,
97
+ MessageTitle: () => MessageTitle,
80
98
  Modal: () => ModalComponent,
99
+ ModalContent: () => ModalContent,
100
+ ModalFooter: () => ModalFooter,
101
+ ModalHeader: () => ModalHeader,
81
102
  Navbar: () => NavbarComponent,
103
+ NavbarButton: () => NavbarButton,
104
+ NavbarLogo: () => NavbarLogo,
105
+ NavbarLogoAndServiceText: () => NavbarLogoAndServiceText,
106
+ NavbarNavigation: () => NavbarNavigation,
82
107
  OrderedList: () => OrderedList,
83
108
  PrimaryButton: () => PrimaryButton,
84
109
  RadioGroup: () => RadioGroup,
@@ -608,9 +633,9 @@ function DescriptionList(_a) {
608
633
  }
609
634
  DescriptionList.displayName = "DescriptionList";
610
635
 
611
- // src/form/fieldset/fieldset.tsx
612
- var import_react9 = require("react");
613
- var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
636
+ // src/form/checkbox/checkbox.tsx
637
+ var import_react10 = require("react");
638
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
614
639
 
615
640
  // src/form/error-message/error-message.tsx
616
641
  var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname");
@@ -628,6 +653,8 @@ function ErrorMessage({ children, id, className }) {
628
653
  }
629
654
 
630
655
  // src/form/fieldset/fieldset.tsx
656
+ var import_react9 = require("react");
657
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
631
658
  var import_jsx_runtime12 = require("react/jsx-runtime");
632
659
  var FieldsetContext = (0, import_react9.createContext)({ hasError: false });
633
660
  var useFieldsetContext = () => (0, import_react9.useContext)(FieldsetContext);
@@ -678,15 +705,73 @@ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
678
705
  );
679
706
  });
680
707
 
681
- // src/form/input/input.tsx
682
- var import_react11 = require("react");
683
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
708
+ // src/form/checkbox/checkbox.tsx
709
+ var import_jsx_runtime13 = require("react/jsx-runtime");
710
+ var Checkbox = (0, import_react10.forwardRef)(
711
+ (_a, ref) => {
712
+ var _b = _a, {
713
+ variant = "plain",
714
+ hasError: hasErrorProp,
715
+ errorMessage,
716
+ title,
717
+ children,
718
+ className
719
+ } = _b, rest = __objRest(_b, [
720
+ "variant",
721
+ "hasError",
722
+ "errorMessage",
723
+ "title",
724
+ "children",
725
+ "className"
726
+ ]);
727
+ const errorMessageId = (0, import_react10.useId)();
728
+ const { hasError: hasFieldsetError } = useFieldsetContext();
729
+ const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
730
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_typed_classname13.clsx)("hds-checkbox-wrapper"), children: [
731
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
732
+ "div",
733
+ {
734
+ className: (0, import_typed_classname13.clsx)(
735
+ "hds-checkbox",
736
+ {
737
+ [`hds-checkbox--${variant}`]: variant === "bounding-box",
738
+ "hds-checkbox--error": hasError
739
+ },
740
+ className
741
+ ),
742
+ children: [
743
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { children: [
744
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
745
+ "input",
746
+ __spreadProps(__spreadValues({}, rest), {
747
+ "aria-invalid": hasError ? true : void 0,
748
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
749
+ ref,
750
+ type: "checkbox"
751
+ })
752
+ ),
753
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
754
+ title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
755
+ ] }),
756
+ title ? children : null
757
+ ]
758
+ }
759
+ ),
760
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage }) : null
761
+ ] });
762
+ }
763
+ );
764
+ Checkbox.displayName = "Checkbox";
765
+
766
+ // src/form/date-picker/date-picker.tsx
767
+ var import_react13 = require("react");
768
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
684
769
 
685
770
  // src/form/input-group/input-group.tsx
686
- var import_react10 = require("react");
687
- var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
688
- var import_jsx_runtime13 = require("react/jsx-runtime");
689
- var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
771
+ var import_react11 = require("react");
772
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
773
+ var import_jsx_runtime14 = require("react/jsx-runtime");
774
+ var InputGroup = (0, import_react11.forwardRef)(function InputGroup2(_a, ref) {
690
775
  var _b = _a, {
691
776
  id,
692
777
  className,
@@ -711,25 +796,31 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
711
796
  "readOnly",
712
797
  "children"
713
798
  ]);
714
- const errorMessageId = (0, import_react10.useId)();
715
- const inputId = (0, import_react10.useId)();
799
+ const errorMessageId = (0, import_react11.useId)();
800
+ const inputId = (0, import_react11.useId)();
716
801
  const renderInput = () => {
717
- const input = import_react10.Children.toArray(children)[0];
718
- if (!(0, import_react10.isValidElement)(input)) {
719
- return;
720
- }
721
- return (0, import_react10.cloneElement)(input, __spreadProps(__spreadValues({
802
+ var _a2;
803
+ const inputProps = {
722
804
  "aria-describedby": errorMessage ? errorMessageId : void 0,
723
805
  "aria-invalid": errorMessage ? true : void 0,
724
- id: id != null ? id : inputId
725
- }, input.props), {
726
- className: (0, import_typed_classname13.clsx)("hds-input-group__input", input.props.className)
806
+ id: id != null ? id : inputId,
807
+ className: (0, import_typed_classname14.clsx)("hds-input-group__input")
808
+ };
809
+ if (typeof children === "function") {
810
+ return children(inputProps);
811
+ }
812
+ const input = import_react11.Children.toArray(children)[0];
813
+ if (!(0, import_react11.isValidElement)(input)) {
814
+ return;
815
+ }
816
+ return (0, import_react11.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
817
+ className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
727
818
  }));
728
819
  };
729
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
820
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
730
821
  "div",
731
822
  __spreadProps(__spreadValues({
732
- className: (0, import_typed_classname13.clsx)(
823
+ className: (0, import_typed_classname14.clsx)(
733
824
  "hds-input-group",
734
825
  {
735
826
  [`hds-input-group--${variant}`]: variant,
@@ -741,85 +832,162 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
741
832
  style
742
833
  }, rest), {
743
834
  children: [
744
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
835
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
745
836
  "label",
746
837
  __spreadProps(__spreadValues({
747
- className: (0, import_typed_classname13.clsx)("hds-input-group__label", labelClassName)
838
+ className: (0, import_typed_classname14.clsx)("hds-input-group__label", labelClassName)
748
839
  }, labelProps), {
749
840
  htmlFor: id != null ? id : inputId,
750
841
  children: label
751
842
  })
752
843
  ),
753
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
844
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
754
845
  "div",
755
846
  {
756
- className: (0, import_typed_classname13.clsx)("hds-input-group__input-wrapper"),
847
+ className: (0, import_typed_classname14.clsx)("hds-input-group__input-wrapper"),
757
848
  "data-disabled": disabled,
758
849
  "data-readonly": readOnly,
759
850
  children: renderInput()
760
851
  }
761
852
  ),
762
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
853
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
763
854
  ]
764
855
  })
765
856
  );
766
857
  });
767
858
 
768
- // src/form/input/input.tsx
769
- var import_jsx_runtime14 = require("react/jsx-runtime");
770
- var Input = (0, import_react11.forwardRef)(function Input2(_a, ref) {
771
- 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"]);
772
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
773
- InputGroup,
774
- {
775
- className: (0, import_typed_classname14.clsx)("hds-input", className),
776
- disabled,
777
- errorMessage,
778
- id,
779
- label,
780
- labelProps,
781
- readOnly,
782
- style,
783
- variant,
784
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
859
+ // src/utils.ts
860
+ var React2 = __toESM(require("react"));
861
+ var import_react12 = require("react");
862
+ function useMergeRefs(refs) {
863
+ return React2.useMemo(() => {
864
+ if (refs.every((ref) => ref === null)) {
865
+ return null;
866
+ }
867
+ return (value) => {
868
+ refs.forEach((ref) => {
869
+ if (typeof ref === "function") {
870
+ ref(value);
871
+ } else if (ref !== null) {
872
+ ref.current = value;
873
+ }
874
+ });
875
+ };
876
+ }, refs);
877
+ }
878
+ function useResize(ref) {
879
+ const [width, setWidth] = (0, import_react12.useState)(0);
880
+ const [height, setHeight] = (0, import_react12.useState)(0);
881
+ const handleResize = (0, import_react12.useCallback)(() => {
882
+ var _a, _b, _c, _d;
883
+ if ((ref == null ? void 0 : ref.current) !== null) {
884
+ setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
885
+ setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
785
886
  }
887
+ }, [ref]);
888
+ (0, import_react12.useEffect)(() => {
889
+ window.addEventListener("load", handleResize);
890
+ window.addEventListener("resize", handleResize);
891
+ return () => {
892
+ window.removeEventListener("load", handleResize);
893
+ window.removeEventListener("resize", handleResize);
894
+ };
895
+ }, [ref, handleResize]);
896
+ (0, import_react12.useEffect)(() => {
897
+ handleResize();
898
+ }, []);
899
+ return { width, height };
900
+ }
901
+ function subscribe() {
902
+ return () => {
903
+ };
904
+ }
905
+ function useHydrated() {
906
+ return React2.useSyncExternalStore(
907
+ subscribe,
908
+ () => true,
909
+ () => false
786
910
  );
787
- });
788
- Input.displayName = "Input";
911
+ }
789
912
 
790
- // src/form/select/select.tsx
791
- var import_react12 = require("react");
792
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
913
+ // src/form/date-picker/date-picker.tsx
793
914
  var import_jsx_runtime15 = require("react/jsx-runtime");
794
- var Select = (0, import_react12.forwardRef)(function Select2(_a, ref) {
795
- 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"]);
915
+ var DatePicker = (0, import_react13.forwardRef)(function DatePicker2(_a, ref) {
916
+ var _b = _a, {
917
+ className,
918
+ variant,
919
+ errorMessage,
920
+ labelProps,
921
+ label,
922
+ id,
923
+ style,
924
+ disabled,
925
+ readOnly,
926
+ calendarButtonTitle = "\xC5pne kalender"
927
+ } = _b, rest = __objRest(_b, [
928
+ "className",
929
+ "variant",
930
+ "errorMessage",
931
+ "labelProps",
932
+ "label",
933
+ "id",
934
+ "style",
935
+ "disabled",
936
+ "readOnly",
937
+ "calendarButtonTitle"
938
+ ]);
939
+ const inputRef = (0, import_react13.useRef)(null);
940
+ const mergedRef = useMergeRefs([inputRef, ref]);
796
941
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
797
942
  InputGroup,
798
943
  {
799
- className: (0, import_typed_classname15.clsx)("hds-select", className),
944
+ className: (0, import_typed_classname15.clsx)("hds-date-picker", className),
800
945
  disabled,
801
946
  errorMessage,
802
947
  id,
803
948
  label,
804
949
  labelProps,
950
+ readOnly,
805
951
  style,
806
952
  variant,
807
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
953
+ children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
954
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
955
+ "input",
956
+ __spreadProps(__spreadValues(__spreadValues({}, rest), inputProps), {
957
+ disabled,
958
+ readOnly,
959
+ ref: mergedRef,
960
+ type: "date"
961
+ })
962
+ ),
963
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
964
+ "button",
965
+ {
966
+ className: (0, import_typed_classname15.clsx)("hds-date-picker__calendar-button"),
967
+ type: "button",
968
+ title: calendarButtonTitle,
969
+ onClick: () => {
970
+ var _a2;
971
+ (_a2 = inputRef.current) == null ? void 0 : _a2.showPicker();
972
+ }
973
+ }
974
+ )
975
+ ] })
808
976
  }
809
977
  );
810
978
  });
811
- Select.displayName = "Select";
979
+ DatePicker.displayName = "DatePicker";
812
980
 
813
- // src/form/textarea/textarea.tsx
814
- var import_react13 = require("react");
981
+ // src/form/input/input.tsx
982
+ var import_react14 = require("react");
815
983
  var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
816
984
  var import_jsx_runtime16 = require("react/jsx-runtime");
817
- var Textarea = (0, import_react13.forwardRef)(function Textarea2(_a, ref) {
985
+ var Input = (0, import_react14.forwardRef)(function Input2(_a, ref) {
818
986
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
819
987
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
820
988
  InputGroup,
821
989
  {
822
- className: (0, import_typed_classname16.clsx)("hds-textarea", className),
990
+ className: (0, import_typed_classname16.clsx)("hds-input", className),
823
991
  disabled,
824
992
  errorMessage,
825
993
  id,
@@ -828,79 +996,19 @@ var Textarea = (0, import_react13.forwardRef)(function Textarea2(_a, ref) {
828
996
  readOnly,
829
997
  style,
830
998
  variant,
831
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
999
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
832
1000
  }
833
1001
  );
834
1002
  });
835
- Textarea.displayName = "Textarea";
836
-
837
- // src/form/checkbox/checkbox.tsx
838
- var import_react14 = require("react");
839
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
840
- var import_jsx_runtime17 = require("react/jsx-runtime");
841
- var Checkbox = (0, import_react14.forwardRef)(
842
- (_a, ref) => {
843
- var _b = _a, {
844
- variant = "plain",
845
- hasError: hasErrorProp,
846
- errorMessage,
847
- title,
848
- children,
849
- className
850
- } = _b, rest = __objRest(_b, [
851
- "variant",
852
- "hasError",
853
- "errorMessage",
854
- "title",
855
- "children",
856
- "className"
857
- ]);
858
- const errorMessageId = (0, import_react14.useId)();
859
- const { hasError: hasFieldsetError } = useFieldsetContext();
860
- const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
861
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: (0, import_typed_classname17.clsx)("hds-checkbox-wrapper"), children: [
862
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
863
- "div",
864
- {
865
- className: (0, import_typed_classname17.clsx)(
866
- "hds-checkbox",
867
- {
868
- [`hds-checkbox--${variant}`]: variant === "bounding-box",
869
- "hds-checkbox--error": hasError
870
- },
871
- className
872
- ),
873
- children: [
874
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { children: [
875
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
876
- "input",
877
- __spreadProps(__spreadValues({}, rest), {
878
- "aria-invalid": hasError ? true : void 0,
879
- "aria-describedby": errorMessage ? errorMessageId : void 0,
880
- ref,
881
- type: "checkbox"
882
- })
883
- ),
884
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
885
- title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
886
- ] }),
887
- title ? children : null
888
- ]
889
- }
890
- ),
891
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage }) : null
892
- ] });
893
- }
894
- );
895
- Checkbox.displayName = "Checkbox";
1003
+ Input.displayName = "Input";
896
1004
 
897
1005
  // src/form/radiobutton/radiobutton.tsx
898
1006
  var import_react16 = require("react");
899
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1007
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
900
1008
 
901
1009
  // src/form/radiobutton/radiogroup.tsx
902
1010
  var import_react15 = require("react");
903
- var import_jsx_runtime18 = require("react/jsx-runtime");
1011
+ var import_jsx_runtime17 = require("react/jsx-runtime");
904
1012
  var RadioGroupContext = (0, import_react15.createContext)({
905
1013
  hasError: false,
906
1014
  onChange: () => {
@@ -910,12 +1018,12 @@ var RadioGroupContext = (0, import_react15.createContext)({
910
1018
  var useRadioGroupContext = () => (0, import_react15.useContext)(RadioGroupContext);
911
1019
  var RadioGroup = (0, import_react15.forwardRef)(function RadioGroup2(_a, ref) {
912
1020
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
913
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1021
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
914
1022
  });
915
1023
  RadioGroup.displayName = "RadioGroup";
916
1024
 
917
1025
  // src/form/radiobutton/radiobutton.tsx
918
- var import_jsx_runtime19 = require("react/jsx-runtime");
1026
+ var import_jsx_runtime18 = require("react/jsx-runtime");
919
1027
  var isChecked = ({
920
1028
  checked,
921
1029
  selectedValue,
@@ -955,10 +1063,10 @@ var Radiobutton = (0, import_react16.forwardRef)(
955
1063
  ]);
956
1064
  const { hasError: hasFieldsetError } = useFieldsetContext();
957
1065
  const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
958
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1066
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
959
1067
  "div",
960
1068
  {
961
- className: (0, import_typed_classname18.clsx)(
1069
+ className: (0, import_typed_classname17.clsx)(
962
1070
  "hds-radiobutton",
963
1071
  {
964
1072
  [`hds-radiobutton--${variant}`]: variant === "bounding-box",
@@ -967,8 +1075,8 @@ var Radiobutton = (0, import_react16.forwardRef)(
967
1075
  className
968
1076
  ),
969
1077
  children: [
970
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { children: [
971
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1078
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { children: [
1079
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
972
1080
  "input",
973
1081
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
974
1082
  checked: isChecked({ checked, selectedValue, value }),
@@ -977,8 +1085,8 @@ var Radiobutton = (0, import_react16.forwardRef)(
977
1085
  type: "radio"
978
1086
  })
979
1087
  ),
980
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
981
- title ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "hds-radiobutton__title", children: title }) : children
1088
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
1089
+ title ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "hds-radiobutton__title", children: title }) : children
982
1090
  ] }),
983
1091
  title ? children : null
984
1092
  ]
@@ -988,19 +1096,66 @@ var Radiobutton = (0, import_react16.forwardRef)(
988
1096
  );
989
1097
  Radiobutton.displayName = "Radiobutton";
990
1098
 
991
- // src/footer/footer.tsx
1099
+ // src/form/select/select.tsx
992
1100
  var import_react17 = require("react");
993
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1101
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1102
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1103
+ var Select = (0, import_react17.forwardRef)(function Select2(_a, ref) {
1104
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
1105
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1106
+ InputGroup,
1107
+ {
1108
+ className: (0, import_typed_classname18.clsx)("hds-select", className),
1109
+ disabled,
1110
+ errorMessage,
1111
+ id,
1112
+ label,
1113
+ labelProps,
1114
+ style,
1115
+ variant,
1116
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1117
+ }
1118
+ );
1119
+ });
1120
+ Select.displayName = "Select";
1121
+
1122
+ // src/form/textarea/textarea.tsx
1123
+ var import_react18 = require("react");
1124
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1125
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1126
+ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1127
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1128
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1129
+ InputGroup,
1130
+ {
1131
+ className: (0, import_typed_classname19.clsx)("hds-textarea", className),
1132
+ disabled,
1133
+ errorMessage,
1134
+ id,
1135
+ label,
1136
+ labelProps,
1137
+ readOnly,
1138
+ style,
1139
+ variant,
1140
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1141
+ }
1142
+ );
1143
+ });
1144
+ Textarea.displayName = "Textarea";
1145
+
1146
+ // src/footer/footer.tsx
1147
+ var import_react19 = require("react");
1148
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
994
1149
  var import_react_slot = require("@radix-ui/react-slot");
995
1150
 
996
1151
  // src/list/link-list.tsx
997
- var React3 = require("react");
998
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1152
+ var React4 = require("react");
1153
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
999
1154
 
1000
1155
  // src/list/list.tsx
1001
- var React2 = require("react");
1002
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1003
- var import_jsx_runtime20 = require("react/jsx-runtime");
1156
+ var React3 = require("react");
1157
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1158
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1004
1159
  function BaseList(_a) {
1005
1160
  var _b = _a, {
1006
1161
  as: ListTag = "ul",
@@ -1013,36 +1168,36 @@ function BaseList(_a) {
1013
1168
  "size",
1014
1169
  "className"
1015
1170
  ]);
1016
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname19.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
1171
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname20.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
1017
1172
  }
1018
1173
  function UnorderedList(props) {
1019
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1174
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1020
1175
  }
1021
1176
  function OrderedList(props) {
1022
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1177
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1023
1178
  }
1024
1179
  BaseList.displayName = "BaseList";
1025
1180
  OrderedList.displayName = "OrderedList";
1026
1181
  UnorderedList.displayName = "UnorderedList";
1027
1182
 
1028
1183
  // src/list/link-list.tsx
1029
- var import_jsx_runtime21 = require("react/jsx-runtime");
1184
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1030
1185
  function LinkList(_a) {
1031
1186
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1032
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname20.clsx)("hds-list--link-list", className) }, rest));
1187
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname21.clsx)("hds-list--link-list", className) }, rest));
1033
1188
  }
1034
1189
  LinkList.displayName = "LinkList";
1035
1190
 
1036
1191
  // src/footer/footer.tsx
1037
- var import_jsx_runtime22 = require("react/jsx-runtime");
1038
- var Footer = (0, import_react17.forwardRef)(
1192
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1193
+ var Footer = (0, import_react19.forwardRef)(
1039
1194
  (_a, ref) => {
1040
1195
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1041
1196
  const Component = asChild ? import_react_slot.Slot : "footer";
1042
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1197
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1043
1198
  Component,
1044
1199
  __spreadProps(__spreadValues({
1045
- className: (0, import_typed_classname21.clsx)(
1200
+ className: (0, import_typed_classname22.clsx)(
1046
1201
  `hds-footer`,
1047
1202
  variant === "slim" && "hds-footer--slim",
1048
1203
  className
@@ -1055,18 +1210,18 @@ var Footer = (0, import_react17.forwardRef)(
1055
1210
  }
1056
1211
  );
1057
1212
  Footer.displayName = "Footer";
1058
- var FooterButtonLink = (0, import_react17.forwardRef)(
1213
+ var FooterButtonLink = (0, import_react19.forwardRef)(
1059
1214
  (_a, ref) => {
1060
1215
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1061
1216
  const Component = asChild ? import_react_slot.Slot : "a";
1062
1217
  return (
1063
1218
  // @ts-expect-error -- It's ok, types are a bit off
1064
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1219
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1065
1220
  PrimaryButton,
1066
1221
  __spreadProps(__spreadValues({
1067
1222
  as: Component,
1068
1223
  fill: "outline",
1069
- className: (0, import_typed_classname21.clsx)(className),
1224
+ className: (0, import_typed_classname22.clsx)(className),
1070
1225
  ref
1071
1226
  }, rest), {
1072
1227
  children
@@ -1076,21 +1231,21 @@ var FooterButtonLink = (0, import_react17.forwardRef)(
1076
1231
  }
1077
1232
  );
1078
1233
  FooterButtonLink.displayName = "FooterButton";
1079
- var FooterLogo = (0, import_react17.forwardRef)(
1234
+ var FooterLogo = (0, import_react19.forwardRef)(
1080
1235
  (_a, ref) => {
1081
1236
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1082
1237
  const Component = asChild ? import_react_slot.Slot : "div";
1083
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname21.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1238
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname22.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1084
1239
  }
1085
1240
  );
1086
1241
  FooterLogo.displayName = "Footer.Logo";
1087
- var FooterLinkSections = (0, import_react17.forwardRef)(
1242
+ var FooterLinkSections = (0, import_react19.forwardRef)(
1088
1243
  (_a, ref) => {
1089
1244
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1090
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1245
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1091
1246
  AccordionComponent,
1092
1247
  __spreadProps(__spreadValues({
1093
- className: (0, import_typed_classname21.clsx)("hds-footer__link-sections", className),
1248
+ className: (0, import_typed_classname22.clsx)("hds-footer__link-sections", className),
1094
1249
  ref
1095
1250
  }, rest), {
1096
1251
  children
@@ -1099,25 +1254,25 @@ var FooterLinkSections = (0, import_react17.forwardRef)(
1099
1254
  }
1100
1255
  );
1101
1256
  FooterLinkSections.displayName = "Footer.LinkSections";
1102
- var FooterLinkSection = (0, import_react17.forwardRef)(
1257
+ var FooterLinkSection = (0, import_react19.forwardRef)(
1103
1258
  (_a, ref) => {
1104
1259
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1105
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(LinkList, { children });
1106
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
1107
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1260
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(LinkList, { children });
1261
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1262
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1108
1263
  AccordionComponent.Item,
1109
1264
  __spreadProps(__spreadValues({
1110
- className: (0, import_typed_classname21.clsx)(`hds-footer__link-section`, className),
1265
+ className: (0, import_typed_classname22.clsx)(`hds-footer__link-section`, className),
1111
1266
  ref
1112
1267
  }, rest), {
1113
1268
  children: [
1114
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionComponent.Header, { children: heading }),
1115
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionComponent.Content, { children: linkListChildren })
1269
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AccordionComponent.Header, { children: heading }),
1270
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AccordionComponent.Content, { children: linkListChildren })
1116
1271
  ]
1117
1272
  })
1118
1273
  ),
1119
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: (0, import_typed_classname21.clsx)(`hds-footer__link-section`, className), children: [
1120
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { children: heading }),
1274
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: (0, import_typed_classname22.clsx)(`hds-footer__link-section`, className), children: [
1275
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h2", { children: heading }),
1121
1276
  linkListChildren
1122
1277
  ] })
1123
1278
  ] });
@@ -1133,16 +1288,16 @@ FooterComponent.LinkSections = FooterLinkSections;
1133
1288
  FooterComponent.LinkSection = FooterLinkSection;
1134
1289
 
1135
1290
  // src/layout/container/container.tsx
1136
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1137
- var import_react18 = require("react");
1138
- var import_jsx_runtime23 = require("react/jsx-runtime");
1139
- var Container = (0, import_react18.forwardRef)(
1291
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1292
+ var import_react20 = require("react");
1293
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1294
+ var Container = (0, import_react20.forwardRef)(
1140
1295
  (_a, ref) => {
1141
1296
  var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
1142
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1297
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1143
1298
  Component,
1144
1299
  __spreadProps(__spreadValues({}, rest), {
1145
- className: (0, import_typed_classname22.clsx)(
1300
+ className: (0, import_typed_classname23.clsx)(
1146
1301
  "hds-container",
1147
1302
  { "hds-container--slim": variant === "slim" },
1148
1303
  className
@@ -1155,23 +1310,17 @@ var Container = (0, import_react18.forwardRef)(
1155
1310
  );
1156
1311
  Container.displayName = "Container";
1157
1312
 
1158
- // src/layout/stack/stack.tsx
1159
- var React4 = require("react");
1160
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1161
- var import_react19 = require("react");
1313
+ // src/layout/grid/grid.tsx
1314
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1162
1315
  var import_react_slot2 = require("@radix-ui/react-slot");
1163
-
1164
- // src/layout/spacing.ts
1165
- function getSpacingVariable(size) {
1166
- return `var(--hds-spacing-${size})`;
1167
- }
1316
+ var import_react21 = require("react");
1168
1317
 
1169
1318
  // src/layout/responsive.ts
1170
1319
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
1171
1320
  if (!inputValues)
1172
1321
  return {};
1173
1322
  if (typeof inputValues !== "object") {
1174
- return { [`${variable}-xsmall`]: valueTransformer(inputValues) };
1323
+ return { [`${variable}-initial`]: valueTransformer(inputValues) };
1175
1324
  }
1176
1325
  const result = {};
1177
1326
  for (const [key, value] of Object.entries(inputValues)) {
@@ -1180,18 +1329,70 @@ function getResponsiveProps(variable, inputValues, valueTransformer = (value) =>
1180
1329
  return result;
1181
1330
  }
1182
1331
 
1332
+ // src/layout/spacing.ts
1333
+ function getSpacingVariable(size) {
1334
+ return `var(--hds-spacing-${size})`;
1335
+ }
1336
+
1337
+ // src/layout/grid/grid.tsx
1338
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1339
+ var Grid = (0, import_react21.forwardRef)(
1340
+ (_a, ref) => {
1341
+ var _b = _a, { children, asChild, className, span, center, style: _style, gap } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap"]);
1342
+ const Component = asChild ? import_react_slot2.Slot : "div";
1343
+ const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
1344
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1345
+ Component,
1346
+ __spreadProps(__spreadValues({
1347
+ style,
1348
+ className: (0, import_typed_classname24.clsx)("hds-grid", className),
1349
+ ref
1350
+ }, rest), {
1351
+ children
1352
+ })
1353
+ );
1354
+ }
1355
+ );
1356
+ Grid.displayName = "Grid";
1357
+ var GridItem = (0, import_react21.forwardRef)(
1358
+ (_a, ref) => {
1359
+ var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1360
+ const Component = asChild ? import_react_slot2.Slot : "div";
1361
+ const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1362
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1363
+ Component,
1364
+ __spreadProps(__spreadValues({
1365
+ style,
1366
+ className: (0, import_typed_classname24.clsx)("hds-grid__item", className),
1367
+ ref
1368
+ }, rest), {
1369
+ children
1370
+ })
1371
+ );
1372
+ }
1373
+ );
1374
+ GridItem.displayName = "Grid.Item";
1375
+
1376
+ // src/layout/grid/index.tsx
1377
+ var GridComponent = Grid;
1378
+ GridComponent.Item = GridItem;
1379
+
1183
1380
  // src/layout/stack/stack.tsx
1184
- var import_jsx_runtime24 = require("react/jsx-runtime");
1185
- var Stack = (0, import_react19.forwardRef)(
1381
+ var React5 = require("react");
1382
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1383
+ var import_react22 = require("react");
1384
+ var import_react_slot3 = require("@radix-ui/react-slot");
1385
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1386
+ var Stack = (0, import_react22.forwardRef)(
1186
1387
  (_a, ref) => {
1187
1388
  var _b = _a, { children, asChild, className, style: _style, gap, direction, wrap, align, justify } = _b, rest = __objRest(_b, ["children", "asChild", "className", "style", "gap", "direction", "wrap", "align", "justify"]);
1188
- const Component = asChild ? import_react_slot2.Slot : "div";
1389
+ const Component = asChild ? import_react_slot3.Slot : "div";
1189
1390
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, 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));
1190
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1391
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1191
1392
  Component,
1192
1393
  __spreadProps(__spreadValues({
1193
1394
  style,
1194
- className: (0, import_typed_classname23.clsx)("hds-stack", className),
1395
+ className: (0, import_typed_classname25.clsx)("hds-stack", className),
1195
1396
  ref
1196
1397
  }, rest), {
1197
1398
  children
@@ -1200,27 +1401,27 @@ var Stack = (0, import_react19.forwardRef)(
1200
1401
  }
1201
1402
  );
1202
1403
  Stack.displayName = "Stack";
1203
- var HStack = (0, import_react19.forwardRef)((props, ref) => {
1204
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1404
+ var HStack = (0, import_react22.forwardRef)((props, ref) => {
1405
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1205
1406
  });
1206
1407
  HStack.displayName = "HStack";
1207
- var VStack = (0, import_react19.forwardRef)((props, ref) => {
1208
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1408
+ var VStack = (0, import_react22.forwardRef)((props, ref) => {
1409
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1209
1410
  });
1210
1411
  VStack.displayName = "VStack";
1211
1412
 
1212
1413
  // src/link/link.tsx
1213
- var React5 = require("react");
1214
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1215
- var import_react20 = require("react");
1216
- var import_jsx_runtime25 = require("react/jsx-runtime");
1217
- var Link = (0, import_react20.forwardRef)(
1414
+ var React6 = require("react");
1415
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1416
+ var import_react23 = require("react");
1417
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1418
+ var Link = (0, import_react23.forwardRef)(
1218
1419
  (_a, ref) => {
1219
1420
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
1220
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1421
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1221
1422
  Component,
1222
1423
  __spreadProps(__spreadValues({
1223
- className: (0, import_typed_classname24.clsx)(
1424
+ className: (0, import_typed_classname26.clsx)(
1224
1425
  "hds-link",
1225
1426
  variant !== "underline" && `hds-link--${variant}`,
1226
1427
  size !== "medium" && `hds-link--${size}`,
@@ -1236,20 +1437,20 @@ var Link = (0, import_react20.forwardRef)(
1236
1437
  Link.displayName = "Link";
1237
1438
 
1238
1439
  // src/message/message.tsx
1239
- var import_react21 = require("react");
1240
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1241
- var import_jsx_runtime26 = require("react/jsx-runtime");
1242
- var Message = (0, import_react21.forwardRef)(
1440
+ var import_react24 = require("react");
1441
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1442
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1443
+ var Message = (0, import_react24.forwardRef)(
1243
1444
  (_a, ref) => {
1244
1445
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1245
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1446
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1246
1447
  Box,
1247
1448
  __spreadProps(__spreadValues({
1248
- className: (0, import_typed_classname25.clsx)(`hds-message`, `hds-message--${variant}`, className),
1449
+ className: (0, import_typed_classname27.clsx)(`hds-message`, `hds-message--${variant}`, className),
1249
1450
  ref
1250
1451
  }, rest), {
1251
1452
  children: [
1252
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: (0, import_typed_classname25.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1453
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: (0, import_typed_classname27.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1253
1454
  children
1254
1455
  ]
1255
1456
  })
@@ -1257,26 +1458,26 @@ var Message = (0, import_react21.forwardRef)(
1257
1458
  }
1258
1459
  );
1259
1460
  Message.displayName = "Message";
1260
- var MessageTitle = (0, import_react21.forwardRef)(
1461
+ var MessageTitle = (0, import_react24.forwardRef)(
1261
1462
  (_a, ref) => {
1262
1463
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1263
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1464
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1264
1465
  Component,
1265
1466
  __spreadValues({
1266
- className: (0, import_typed_classname25.clsx)("hds-message__title", className),
1467
+ className: (0, import_typed_classname27.clsx)("hds-message__title", className),
1267
1468
  ref
1268
1469
  }, rest)
1269
1470
  );
1270
1471
  }
1271
1472
  );
1272
1473
  MessageTitle.displayName = "Message.Title";
1273
- var MessageDescription = (0, import_react21.forwardRef)(
1474
+ var MessageDescription = (0, import_react24.forwardRef)(
1274
1475
  (_a, ref) => {
1275
1476
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1276
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1477
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1277
1478
  Component,
1278
1479
  __spreadValues({
1279
- className: (0, import_typed_classname25.clsx)("hds-message__description", className),
1480
+ className: (0, import_typed_classname27.clsx)("hds-message__description", className),
1280
1481
  ref
1281
1482
  }, rest)
1282
1483
  );
@@ -1290,58 +1491,13 @@ MessageComponent.Title = MessageTitle;
1290
1491
  MessageComponent.Description = MessageDescription;
1291
1492
 
1292
1493
  // src/modal/modal.tsx
1293
- var import_react23 = require("react");
1294
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1295
-
1296
- // src/utils.ts
1297
- var React7 = __toESM(require("react"));
1298
- var import_react22 = require("react");
1299
- function useMergeRefs(refs) {
1300
- return React7.useMemo(() => {
1301
- if (refs.every((ref) => ref === null)) {
1302
- return null;
1303
- }
1304
- return (value) => {
1305
- refs.forEach((ref) => {
1306
- if (typeof ref === "function") {
1307
- ref(value);
1308
- } else if (ref !== null) {
1309
- ref.current = value;
1310
- }
1311
- });
1312
- };
1313
- }, refs);
1314
- }
1315
- function useResize(ref) {
1316
- const [width, setWidth] = (0, import_react22.useState)(0);
1317
- const [height, setHeight] = (0, import_react22.useState)(0);
1318
- const handleResize = (0, import_react22.useCallback)(() => {
1319
- var _a, _b, _c, _d;
1320
- if ((ref == null ? void 0 : ref.current) !== null) {
1321
- setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
1322
- setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
1323
- }
1324
- }, [ref]);
1325
- (0, import_react22.useEffect)(() => {
1326
- window.addEventListener("load", handleResize);
1327
- window.addEventListener("resize", handleResize);
1328
- return () => {
1329
- window.removeEventListener("load", handleResize);
1330
- window.removeEventListener("resize", handleResize);
1331
- };
1332
- }, [ref, handleResize]);
1333
- (0, import_react22.useEffect)(() => {
1334
- handleResize();
1335
- }, []);
1336
- return { width, height };
1337
- }
1338
-
1339
- // src/modal/modal.tsx
1340
- var import_jsx_runtime27 = require("react/jsx-runtime");
1341
- var Modal = (0, import_react23.forwardRef)(
1494
+ var import_react25 = require("react");
1495
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1496
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1497
+ var Modal = (0, import_react25.forwardRef)(
1342
1498
  (_a, ref) => {
1343
1499
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1344
- const modalRef = (0, import_react23.useRef)(null);
1500
+ const modalRef = (0, import_react25.useRef)(null);
1345
1501
  const mergedRef = useMergeRefs([modalRef, ref]);
1346
1502
  function onCloseButtonClick() {
1347
1503
  var _a2;
@@ -1349,7 +1505,7 @@ var Modal = (0, import_react23.forwardRef)(
1349
1505
  return false;
1350
1506
  }
1351
1507
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1352
- (0, import_react23.useEffect)(() => {
1508
+ (0, import_react25.useEffect)(() => {
1353
1509
  if (modalRef.current && open !== void 0) {
1354
1510
  if (open && !modalRef.current.open) {
1355
1511
  modalRef.current.showModal();
@@ -1364,11 +1520,11 @@ var Modal = (0, import_react23.forwardRef)(
1364
1520
  }
1365
1521
  onClick == null ? void 0 : onClick(e);
1366
1522
  }
1367
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1523
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1368
1524
  Box,
1369
1525
  __spreadProps(__spreadValues({
1370
1526
  as: "dialog",
1371
- className: (0, import_typed_classname26.clsx)("hds-modal", className),
1527
+ className: (0, import_typed_classname28.clsx)("hds-modal", className),
1372
1528
  closeable: true,
1373
1529
  onClick: onDialogClick,
1374
1530
  onClose: onCloseButtonClick,
@@ -1381,39 +1537,39 @@ var Modal = (0, import_react23.forwardRef)(
1381
1537
  }
1382
1538
  );
1383
1539
  Modal.displayName = "Modal";
1384
- var ModalHeader = (0, import_react23.forwardRef)(
1540
+ var ModalHeader = (0, import_react25.forwardRef)(
1385
1541
  (_a, ref) => {
1386
1542
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1387
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1543
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1388
1544
  Component,
1389
1545
  __spreadValues({
1390
- className: (0, import_typed_classname26.clsx)("hds-modal__header", className),
1546
+ className: (0, import_typed_classname28.clsx)("hds-modal__header", className),
1391
1547
  ref
1392
1548
  }, rest)
1393
1549
  );
1394
1550
  }
1395
1551
  );
1396
1552
  ModalHeader.displayName = "Modal.Header";
1397
- var ModalContent = (0, import_react23.forwardRef)(
1553
+ var ModalContent = (0, import_react25.forwardRef)(
1398
1554
  (_a, ref) => {
1399
1555
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1400
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1556
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1401
1557
  Component,
1402
1558
  __spreadValues({
1403
- className: (0, import_typed_classname26.clsx)("hds-modal__content", className),
1559
+ className: (0, import_typed_classname28.clsx)("hds-modal__content", className),
1404
1560
  ref
1405
1561
  }, rest)
1406
1562
  );
1407
1563
  }
1408
1564
  );
1409
1565
  ModalContent.displayName = "Modal.Content";
1410
- var ModalFooter = (0, import_react23.forwardRef)(
1566
+ var ModalFooter = (0, import_react25.forwardRef)(
1411
1567
  (_a, ref) => {
1412
1568
  var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1413
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1569
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1414
1570
  Component,
1415
1571
  __spreadValues({
1416
- className: (0, import_typed_classname26.clsx)("hds-modal__footer", className),
1572
+ className: (0, import_typed_classname28.clsx)("hds-modal__footer", className),
1417
1573
  ref
1418
1574
  }, rest)
1419
1575
  );
@@ -1421,7 +1577,7 @@ var ModalFooter = (0, import_react23.forwardRef)(
1421
1577
  );
1422
1578
  ModalFooter.displayName = "Modal.Footer";
1423
1579
  function useScrollLock(modalRef, bodyClass) {
1424
- (0, import_react23.useEffect)(() => {
1580
+ (0, import_react25.useEffect)(() => {
1425
1581
  if (!modalRef.current)
1426
1582
  return;
1427
1583
  if (modalRef.current.open)
@@ -1451,17 +1607,17 @@ ModalComponent.Content = ModalContent;
1451
1607
  ModalComponent.Footer = ModalFooter;
1452
1608
 
1453
1609
  // src/navbar/navbar.tsx
1454
- var import_react24 = require("react");
1455
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1456
- var import_react_slot3 = require("@radix-ui/react-slot");
1457
- var import_jsx_runtime28 = require("react/jsx-runtime");
1458
- var Navbar = (0, import_react24.forwardRef)(
1610
+ var import_react26 = require("react");
1611
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1612
+ var import_react_slot4 = require("@radix-ui/react-slot");
1613
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1614
+ var Navbar = (0, import_react26.forwardRef)(
1459
1615
  (_a, ref) => {
1460
1616
  var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
1461
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1617
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1462
1618
  "header",
1463
1619
  __spreadProps(__spreadValues({
1464
- className: (0, import_typed_classname27.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
1620
+ className: (0, import_typed_classname29.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
1465
1621
  ref
1466
1622
  }, rest), {
1467
1623
  children
@@ -1470,22 +1626,22 @@ var Navbar = (0, import_react24.forwardRef)(
1470
1626
  }
1471
1627
  );
1472
1628
  Navbar.displayName = "Navbar";
1473
- var NavbarLogo = (0, import_react24.forwardRef)(
1629
+ var NavbarLogo = (0, import_react26.forwardRef)(
1474
1630
  (_a, ref) => {
1475
1631
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1476
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Component, __spreadValues({ className: (0, import_typed_classname27.clsx)("hds-navbar__logo", className), ref }, rest));
1632
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadValues({ className: (0, import_typed_classname29.clsx)("hds-navbar__logo", className), ref }, rest));
1477
1633
  }
1478
1634
  );
1479
1635
  NavbarLogo.displayName = "Navbar.Logo";
1480
- var NavbarLogoAndServiceText = (0, import_react24.forwardRef)(
1636
+ var NavbarLogoAndServiceText = (0, import_react26.forwardRef)(
1481
1637
  (_a, ref) => {
1482
1638
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
1483
- const Component = asChild ? import_react_slot3.Slot : "div";
1484
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1639
+ const Component = asChild ? import_react_slot4.Slot : "div";
1640
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1485
1641
  Component,
1486
1642
  __spreadProps(__spreadValues({
1487
1643
  ref,
1488
- className: (0, import_typed_classname27.clsx)(
1644
+ className: (0, import_typed_classname29.clsx)(
1489
1645
  "hds-navbar__logo-and-service-text",
1490
1646
  `hds-navbar__logo-and-service-text--${variant}`,
1491
1647
  className
@@ -1497,10 +1653,10 @@ var NavbarLogoAndServiceText = (0, import_react24.forwardRef)(
1497
1653
  }
1498
1654
  );
1499
1655
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
1500
- var NavbarButton = (0, import_react24.forwardRef)(
1656
+ var NavbarButton = (0, import_react26.forwardRef)(
1501
1657
  (_a, ref) => {
1502
1658
  var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
1503
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname27.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1659
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname29.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1504
1660
  children,
1505
1661
  " ",
1506
1662
  icon
@@ -1508,12 +1664,12 @@ var NavbarButton = (0, import_react24.forwardRef)(
1508
1664
  }
1509
1665
  );
1510
1666
  NavbarButton.displayName = "Navbar.Button";
1511
- var NavbarNavigation = (0, import_react24.forwardRef)((_a, ref) => {
1667
+ var NavbarNavigation = (0, import_react26.forwardRef)((_a, ref) => {
1512
1668
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1513
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1669
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1514
1670
  Component,
1515
1671
  __spreadValues({
1516
- className: (0, import_typed_classname27.clsx)("hds-navbar__navigation", className),
1672
+ className: (0, import_typed_classname29.clsx)("hds-navbar__navigation", className),
1517
1673
  ref
1518
1674
  }, rest)
1519
1675
  );
@@ -1521,15 +1677,15 @@ var NavbarNavigation = (0, import_react24.forwardRef)((_a, ref) => {
1521
1677
  NavbarNavigation.displayName = "Navbar.Navigation";
1522
1678
 
1523
1679
  // src/navbar/navbar-expandable-menu.tsx
1524
- var import_react25 = require("react");
1680
+ var import_react27 = require("react");
1525
1681
  var import_client = require("react-dom/client");
1526
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1682
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1527
1683
  var import_focus_trap_react = __toESM(require("focus-trap-react"));
1528
1684
 
1529
1685
  // src/navbar/icons.tsx
1530
- var import_jsx_runtime29 = require("react/jsx-runtime");
1686
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1531
1687
  function CloseIcon() {
1532
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { "aria-hidden": true, viewBox: "0 0 384 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1688
+ 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)(
1533
1689
  "path",
1534
1690
  {
1535
1691
  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",
@@ -1538,7 +1694,7 @@ function CloseIcon() {
1538
1694
  ) });
1539
1695
  }
1540
1696
  function MenuIcon() {
1541
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { role: "img", viewBox: "0 0 448 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1697
+ 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)(
1542
1698
  "path",
1543
1699
  {
1544
1700
  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",
@@ -1548,28 +1704,35 @@ function MenuIcon() {
1548
1704
  }
1549
1705
 
1550
1706
  // src/navbar/navbar-expandable-menu.tsx
1551
- var import_jsx_runtime30 = require("react/jsx-runtime");
1552
- var expandableMenuContext = (0, import_react25.createContext)([
1707
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1708
+ var expandableMenuContext = (0, import_react27.createContext)([
1553
1709
  false,
1554
1710
  () => {
1555
1711
  }
1556
1712
  ]);
1557
- var useNavbarExpendableMenuContext = () => (0, import_react25.useContext)(expandableMenuContext);
1713
+ var useNavbarExpendableMenuContext = () => (0, import_react27.useContext)(expandableMenuContext);
1558
1714
  function NavbarExpandableMenu({ children }) {
1559
- const [open, setOpen] = (0, import_react25.useState)(false);
1715
+ const [open, setOpen] = (0, import_react27.useState)(false);
1716
+ const isClientSide = useHydrated();
1560
1717
  const toggleOpen = () => {
1561
1718
  const nextOpenState = !open;
1562
1719
  setOpen(nextOpenState);
1563
1720
  if (nextOpenState) {
1564
1721
  window.scrollTo(0, 0);
1565
- document.body.classList.add((0, import_typed_classname28.clsx)("hds-navbar-scroll-lock"));
1722
+ document.body.classList.add((0, import_typed_classname30.clsx)("hds-navbar-scroll-lock"));
1566
1723
  } else {
1567
- document.body.classList.remove((0, import_typed_classname28.clsx)("hds-navbar-scroll-lock"));
1724
+ document.body.classList.remove((0, import_typed_classname30.clsx)("hds-navbar-scroll-lock"));
1568
1725
  }
1569
1726
  };
1570
- const navbarElement = document.getElementsByClassName((0, import_typed_classname28.clsx)("hds-navbar"))[0];
1571
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(expandableMenuContext.Provider, { value: [open, toggleOpen], children: [
1572
- open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_focus_trap_react.default, { containerElements: [navbarElement] }) : null,
1727
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(expandableMenuContext.Provider, { value: [open, toggleOpen], children: [
1728
+ open && isClientSide ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1729
+ import_focus_trap_react.default,
1730
+ {
1731
+ containerElements: [
1732
+ document.getElementsByClassName((0, import_typed_classname30.clsx)("hds-navbar"))[0]
1733
+ ]
1734
+ }
1735
+ ) : null,
1573
1736
  children
1574
1737
  ] });
1575
1738
  }
@@ -1594,12 +1757,12 @@ function RenderButton(_a) {
1594
1757
  "toggleOpen",
1595
1758
  "width"
1596
1759
  ]);
1597
- const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenuIcon, {});
1760
+ const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MenuIcon, {});
1598
1761
  const style = width ? { width } : {};
1599
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1762
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1600
1763
  "button",
1601
1764
  __spreadProps(__spreadValues({
1602
- className: (0, import_typed_classname28.clsx)("hds-navbar__button", className),
1765
+ className: (0, import_typed_classname30.clsx)("hds-navbar__button", className),
1603
1766
  onClick: toggleOpen,
1604
1767
  ref: ref != null ? ref : innerRef,
1605
1768
  style,
@@ -1607,14 +1770,14 @@ function RenderButton(_a) {
1607
1770
  type: "button"
1608
1771
  }, rest), {
1609
1772
  children: [
1610
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: (0, import_typed_classname28.clsx)("hds-navbar__button-responsive-text"), children: text }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: (0, import_typed_classname30.clsx)("hds-navbar__button-responsive-text"), children: text }),
1611
1774
  " ",
1612
1775
  icon
1613
1776
  ]
1614
1777
  })
1615
1778
  );
1616
1779
  }
1617
- var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1780
+ var NavbarExpandableMenuTrigger = (0, import_react27.forwardRef)(
1618
1781
  (_a, ref) => {
1619
1782
  var _b = _a, {
1620
1783
  whenClosedText,
@@ -1630,8 +1793,8 @@ var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1630
1793
  "className"
1631
1794
  ]);
1632
1795
  const [open, toggleOpen] = useNavbarExpendableMenuContext();
1633
- const [width, setWidth] = (0, import_react25.useState)(0);
1634
- const measureButtonRef = (0, import_react25.useRef)(null);
1796
+ const [width, setWidth] = (0, import_react27.useState)(0);
1797
+ const measureButtonRef = (0, import_react27.useRef)(null);
1635
1798
  const text = open ? whenOpenText : whenClosedText;
1636
1799
  const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
1637
1800
  const measureButton = (element, callback) => {
@@ -1649,9 +1812,9 @@ var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1649
1812
  };
1650
1813
  setTimeout(getWidth, 0);
1651
1814
  };
1652
- (0, import_react25.useEffect)(() => {
1815
+ (0, import_react27.useEffect)(() => {
1653
1816
  measureButton(
1654
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1817
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1655
1818
  RenderButton,
1656
1819
  __spreadValues({
1657
1820
  className: className ? className : "",
@@ -1662,7 +1825,7 @@ var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1662
1825
  ),
1663
1826
  (closedWidth) => {
1664
1827
  measureButton(
1665
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1828
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1666
1829
  RenderButton,
1667
1830
  __spreadValues({
1668
1831
  className: className ? className : "",
@@ -1679,7 +1842,7 @@ var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1679
1842
  }
1680
1843
  );
1681
1844
  }, [className, rest, title, whenClosedText, whenOpenText]);
1682
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1845
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1683
1846
  RenderButton,
1684
1847
  __spreadValues({
1685
1848
  className: className ? className : "",
@@ -1694,17 +1857,17 @@ var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1694
1857
  }
1695
1858
  );
1696
1859
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenu.Trigger";
1697
- var NavbarExpandableMenuContent = (0, import_react25.forwardRef)((_a, ref) => {
1860
+ var NavbarExpandableMenuContent = (0, import_react27.forwardRef)((_a, ref) => {
1698
1861
  var _b = _a, { as: Component = "section", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
1699
1862
  const [open] = useNavbarExpendableMenuContext();
1700
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1863
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1701
1864
  Component,
1702
1865
  __spreadProps(__spreadValues({}, rest), {
1703
- className: (0, import_typed_classname28.clsx)("hds-navbar__expandable-menu-content", className),
1866
+ className: (0, import_typed_classname30.clsx)("hds-navbar__expandable-menu-content", className),
1704
1867
  "data-state": open ? "open" : "closed",
1705
1868
  inert: open ? void 0 : "true",
1706
1869
  ref,
1707
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: (0, import_typed_classname28.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1870
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: (0, import_typed_classname30.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1708
1871
  })
1709
1872
  );
1710
1873
  });
@@ -1722,15 +1885,15 @@ NavbarComponent.Button = NavbarButton;
1722
1885
  NavbarComponent.Navigation = NavbarNavigation;
1723
1886
 
1724
1887
  // src/utilities/auto-animate-height.tsx
1725
- var import_react26 = require("react");
1888
+ var import_react28 = require("react");
1726
1889
  var import_react_dom = require("react-dom");
1727
- var import_jsx_runtime31 = require("react/jsx-runtime");
1890
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1728
1891
  var animationDurationToValue = {
1729
1892
  quick: 100,
1730
1893
  normal: 300,
1731
1894
  slow: 700
1732
1895
  };
1733
- var AutoAnimateHeight = (0, import_react26.forwardRef)(
1896
+ var AutoAnimateHeight = (0, import_react28.forwardRef)(
1734
1897
  (_a, ref) => {
1735
1898
  var _b = _a, {
1736
1899
  as: Component = "div",
@@ -1745,13 +1908,13 @@ var AutoAnimateHeight = (0, import_react26.forwardRef)(
1745
1908
  "animationDuration",
1746
1909
  "animationEasing"
1747
1910
  ]);
1748
- const timeoutRef = (0, import_react26.useRef)(null);
1749
- const measurementRef = (0, import_react26.useRef)(null);
1750
- const [height, setHeight] = (0, import_react26.useState)(void 0);
1751
- const [clonedChildren, setClonedChildren] = (0, import_react26.useState)(
1752
- () => (0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children }), {})
1911
+ const timeoutRef = (0, import_react28.useRef)(null);
1912
+ const measurementRef = (0, import_react28.useRef)(null);
1913
+ const [height, setHeight] = (0, import_react28.useState)(void 0);
1914
+ const [clonedChildren, setClonedChildren] = (0, import_react28.useState)(
1915
+ () => (0, import_react28.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children }), {})
1753
1916
  );
1754
- (0, import_react26.useEffect)(() => {
1917
+ (0, import_react28.useEffect)(() => {
1755
1918
  if (measurementRef.current) {
1756
1919
  const { height: newHeight } = measurementRef.current.getBoundingClientRect();
1757
1920
  if (timeoutRef.current) {
@@ -1763,16 +1926,16 @@ var AutoAnimateHeight = (0, import_react26.forwardRef)(
1763
1926
  setHeight(newHeight);
1764
1927
  });
1765
1928
  timeoutRef.current = setTimeout(() => {
1766
- setClonedChildren((0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children }), {}));
1929
+ setClonedChildren((0, import_react28.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children }), {}));
1767
1930
  }, animationDurationToValue[animationDuration]);
1768
1931
  });
1769
1932
  } else {
1770
1933
  setHeight(newHeight);
1771
- setClonedChildren((0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children }), {}));
1934
+ setClonedChildren((0, import_react28.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children }), {}));
1772
1935
  }
1773
1936
  }
1774
1937
  }, [children]);
1775
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1938
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1776
1939
  Component,
1777
1940
  __spreadProps(__spreadValues({
1778
1941
  ref,
@@ -1786,7 +1949,7 @@ var AutoAnimateHeight = (0, import_react26.forwardRef)(
1786
1949
  }, style)
1787
1950
  }, rest), {
1788
1951
  children: [
1789
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1952
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1790
1953
  "div",
1791
1954
  {
1792
1955
  "aria-hidden": true,
@@ -1807,17 +1970,17 @@ var AutoAnimateHeight = (0, import_react26.forwardRef)(
1807
1970
  AutoAnimateHeight.displayName = "AutoAnimateHeight";
1808
1971
 
1809
1972
  // src/show-more/show-more.tsx
1810
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1811
- var import_react27 = require("react");
1812
- var import_jsx_runtime32 = require("react/jsx-runtime");
1813
- var ShowMoreButton = (0, import_react27.forwardRef)(
1973
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1974
+ var import_react29 = require("react");
1975
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1976
+ var ShowMoreButton = (0, import_react29.forwardRef)(
1814
1977
  (_a, ref) => {
1815
1978
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
1816
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1979
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1817
1980
  "button",
1818
1981
  __spreadProps(__spreadValues({
1819
1982
  ref,
1820
- className: (0, import_typed_classname29.clsx)(
1983
+ className: (0, import_typed_classname31.clsx)(
1821
1984
  "hds-show-more",
1822
1985
  variant === "show-more-show-less" && "hds-show-more--show-less",
1823
1986
  className
@@ -1827,7 +1990,7 @@ var ShowMoreButton = (0, import_react27.forwardRef)(
1827
1990
  }, rest), {
1828
1991
  children: [
1829
1992
  text,
1830
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: (0, import_typed_classname29.clsx)("hds-show-more__icon") })
1993
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: (0, import_typed_classname31.clsx)("hds-show-more__icon") })
1831
1994
  ]
1832
1995
  })
1833
1996
  );
@@ -1837,10 +2000,10 @@ ShowMoreButton.displayName = "ShowMoreButton";
1837
2000
 
1838
2001
  // src/skeleton/skeleton.tsx
1839
2002
  var React10 = require("react");
1840
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1841
- var import_react28 = require("react");
1842
- var import_jsx_runtime33 = require("react/jsx-runtime");
1843
- var Skeleton = (0, import_react28.forwardRef)(
2003
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
2004
+ var import_react30 = require("react");
2005
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2006
+ var Skeleton = (0, import_react30.forwardRef)(
1844
2007
  (_a, ref) => {
1845
2008
  var _b = _a, {
1846
2009
  as: Component = "div",
@@ -1861,10 +2024,10 @@ var Skeleton = (0, import_react28.forwardRef)(
1861
2024
  "className",
1862
2025
  "style"
1863
2026
  ]);
1864
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2027
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1865
2028
  Component,
1866
2029
  __spreadProps(__spreadValues({
1867
- className: (0, import_typed_classname30.clsx)(
2030
+ className: (0, import_typed_classname32.clsx)(
1868
2031
  "hds-skeleton",
1869
2032
  `hds-skeleton--${variant}`,
1870
2033
  !animation && `hds-skeleton--no-animation`,
@@ -1882,10 +2045,10 @@ var Skeleton = (0, import_react28.forwardRef)(
1882
2045
  Skeleton.displayName = "Skeleton";
1883
2046
 
1884
2047
  // src/step-indicator/step-indicator.tsx
1885
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1886
- var import_react29 = require("react");
1887
- var import_jsx_runtime34 = require("react/jsx-runtime");
1888
- var StepIndicator = (0, import_react29.forwardRef)(
2048
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
2049
+ var import_react31 = require("react");
2050
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2051
+ var StepIndicator = (0, import_react31.forwardRef)(
1889
2052
  (_a, ref) => {
1890
2053
  var _b = _a, {
1891
2054
  activeStep,
@@ -1904,27 +2067,27 @@ var StepIndicator = (0, import_react29.forwardRef)(
1904
2067
  "title",
1905
2068
  "titleAs"
1906
2069
  ]);
1907
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2070
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1908
2071
  "div",
1909
2072
  __spreadProps(__spreadValues({
1910
2073
  ref,
1911
- className: (0, import_typed_classname31.clsx)("hds-step-indicator", className),
2074
+ className: (0, import_typed_classname33.clsx)("hds-step-indicator", className),
1912
2075
  lang
1913
2076
  }, rest), {
1914
2077
  children: [
1915
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: (0, import_typed_classname31.clsx)("hds-step-indicator__header"), children: [
1916
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: (0, import_typed_classname31.clsx)("hds-step-indicator__left-label"), children: label }),
1917
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2078
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0, import_typed_classname33.clsx)("hds-step-indicator__header"), children: [
2079
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: (0, import_typed_classname33.clsx)("hds-step-indicator__left-label"), children: label }),
2080
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
1918
2081
  ] }),
1919
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: (0, import_typed_classname31.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2082
+ /* @__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)(
1920
2083
  "div",
1921
2084
  {
1922
- className: (0, import_typed_classname31.clsx)("hds-step-indicator__step"),
2085
+ className: (0, import_typed_classname33.clsx)("hds-step-indicator__step"),
1923
2086
  "data-state": getStepState(i + 1, activeStep)
1924
2087
  },
1925
2088
  i
1926
2089
  )) }),
1927
- title ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TitleComponent, { className: (0, import_typed_classname31.clsx)("hds-step-indicator__title"), children: title }) : null
2090
+ title ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TitleComponent, { className: (0, import_typed_classname33.clsx)("hds-step-indicator__title"), children: title }) : null
1928
2091
  ]
1929
2092
  })
1930
2093
  );
@@ -1948,16 +2111,16 @@ function getStepState(renderedStep, activeStep) {
1948
2111
  }
1949
2112
 
1950
2113
  // src/styled-html/styled-html.tsx
1951
- var import_react30 = require("react");
1952
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1953
- var import_jsx_runtime35 = require("react/jsx-runtime");
1954
- var StyledHtml = (0, import_react30.forwardRef)(
2114
+ var import_react32 = require("react");
2115
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2116
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2117
+ var StyledHtml = (0, import_react32.forwardRef)(
1955
2118
  (_a, ref) => {
1956
2119
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
1957
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2120
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1958
2121
  Component,
1959
2122
  __spreadProps(__spreadValues({
1960
- className: (0, import_typed_classname32.clsx)(
2123
+ className: (0, import_typed_classname34.clsx)(
1961
2124
  `hds-styled-html`,
1962
2125
  size === "small" && "hds-styled-html--small",
1963
2126
  darkmode && "hds-styled-html--darkmode",
@@ -1973,14 +2136,14 @@ var StyledHtml = (0, import_react30.forwardRef)(
1973
2136
  StyledHtml.displayName = "StyledHtml";
1974
2137
 
1975
2138
  // src/tabs/tabs.tsx
1976
- var import_react32 = require("react");
1977
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
2139
+ var import_react34 = require("react");
2140
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
1978
2141
 
1979
2142
  // src/tabs/context.ts
1980
- var import_react31 = require("react");
1981
- var TabsContext = (0, import_react31.createContext)(null);
2143
+ var import_react33 = require("react");
2144
+ var TabsContext = (0, import_react33.createContext)(null);
1982
2145
  function useTabsContext() {
1983
- const context = (0, import_react31.useContext)(TabsContext);
2146
+ const context = (0, import_react33.useContext)(TabsContext);
1984
2147
  if (!context) {
1985
2148
  throw new Error(
1986
2149
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -1990,29 +2153,30 @@ function useTabsContext() {
1990
2153
  }
1991
2154
 
1992
2155
  // src/tabs/tabs.tsx
1993
- var import_jsx_runtime36 = require("react/jsx-runtime");
1994
- var Tabs = (0, import_react32.forwardRef)(
2156
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2157
+ var Tabs = (0, import_react34.forwardRef)(
1995
2158
  (_a, ref) => {
1996
2159
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1997
- const [activeTabId, setActiveTabId] = (0, import_react32.useState)(defaultTab);
1998
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2160
+ const [activeTabId, setActiveTabId] = (0, import_react34.useState)(defaultTab);
2161
+ 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 }) }));
1999
2162
  }
2000
2163
  );
2001
2164
  Tabs.displayName = "Tabs";
2002
2165
 
2003
2166
  // src/tabs/tabs-list.tsx
2004
- var import_react33 = require("react");
2005
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2006
- var import_jsx_runtime37 = require("react/jsx-runtime");
2167
+ var import_react35 = require("react");
2168
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2169
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2007
2170
  function TabsList(_a) {
2008
2171
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2009
2172
  const { activeTabId } = useTabsContext();
2010
- const tabsListRef = (0, import_react33.useRef)(null);
2173
+ const tabsListRef = (0, import_react35.useRef)(null);
2011
2174
  const { width: tabsWidth } = useResize(tabsListRef);
2012
- const { innerWidth } = window;
2175
+ const isClientSide = useHydrated();
2176
+ const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2013
2177
  const wideEnough = innerWidth >= tabsWidth;
2014
- const previousTabId = (0, import_react33.useRef)(activeTabId);
2015
- (0, import_react33.useEffect)(() => {
2178
+ const previousTabId = (0, import_react35.useRef)(activeTabId);
2179
+ (0, import_react35.useEffect)(() => {
2016
2180
  const tabList = tabsListRef.current;
2017
2181
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2018
2182
  if (!activeTab || !tabList)
@@ -2037,10 +2201,10 @@ function TabsList(_a) {
2037
2201
  }
2038
2202
  previousTabId.current = activeTabId;
2039
2203
  }, [activeTabId, innerWidth]);
2040
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2204
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2041
2205
  "div",
2042
2206
  __spreadProps(__spreadValues({
2043
- className: (0, import_typed_classname34.clsx)(
2207
+ className: (0, import_typed_classname36.clsx)(
2044
2208
  "hds-tabs__list",
2045
2209
  direction === "horizontal" ? {
2046
2210
  "hds-tabs__list--horizontal": wideEnough,
@@ -2058,7 +2222,7 @@ function TabsList(_a) {
2058
2222
  );
2059
2223
  }
2060
2224
  TabsList.displayName = "Tabs.List";
2061
- var TabsTab = (0, import_react33.forwardRef)(
2225
+ var TabsTab = (0, import_react35.forwardRef)(
2062
2226
  (_a, ref) => {
2063
2227
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
2064
2228
  const context = useTabsContext();
@@ -2067,10 +2231,10 @@ var TabsTab = (0, import_react33.forwardRef)(
2067
2231
  context.toggleActiveTabId(tabId);
2068
2232
  onClick && onClick(e);
2069
2233
  };
2070
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2234
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2071
2235
  Component,
2072
2236
  __spreadProps(__spreadValues({
2073
- className: (0, import_typed_classname34.clsx)(
2237
+ className: (0, import_typed_classname36.clsx)(
2074
2238
  "hds-tabs__tab",
2075
2239
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2076
2240
  className
@@ -2088,20 +2252,20 @@ var TabsTab = (0, import_react33.forwardRef)(
2088
2252
  TabsTab.displayName = "Tabs.Tab";
2089
2253
 
2090
2254
  // src/tabs/tabs-content.tsx
2091
- var import_react34 = require("react");
2092
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2093
- var import_jsx_runtime38 = require("react/jsx-runtime");
2255
+ var import_react36 = require("react");
2256
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2257
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2094
2258
  function TabsContents(_a) {
2095
2259
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
2096
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)("hds-tabs__contents") }, rest), { children }));
2260
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)("hds-tabs__contents") }, rest), { children }));
2097
2261
  }
2098
2262
  TabsContents.displayName = "Tabs.Contents";
2099
- var TabsContent = (0, import_react34.forwardRef)(
2263
+ var TabsContent = (0, import_react36.forwardRef)(
2100
2264
  (_a, ref) => {
2101
2265
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
2102
2266
  const context = useTabsContext();
2103
2267
  if (context.activeTabId === forTabId) {
2104
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2268
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2105
2269
  }
2106
2270
  return null;
2107
2271
  }
@@ -2116,9 +2280,9 @@ TabsComponent.Contents = TabsContents;
2116
2280
  TabsComponent.Content = TabsContent;
2117
2281
 
2118
2282
  // src/text/text.tsx
2119
- var import_react35 = require("react");
2120
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2121
- var import_jsx_runtime39 = require("react/jsx-runtime");
2283
+ var import_react37 = require("react");
2284
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2285
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2122
2286
  var defaultHTMLTag = {
2123
2287
  "h1-display": "h1",
2124
2288
  h1: "h1",
@@ -2134,7 +2298,7 @@ var defaultHTMLTag = {
2134
2298
  caption: "p",
2135
2299
  "caption-title": "p"
2136
2300
  };
2137
- var Text = (0, import_react35.forwardRef)(
2301
+ var Text = (0, import_react37.forwardRef)(
2138
2302
  (_a, ref) => {
2139
2303
  var _b = _a, {
2140
2304
  as,
@@ -2153,10 +2317,10 @@ var Text = (0, import_react35.forwardRef)(
2153
2317
  ]);
2154
2318
  const Component = as != null ? as : defaultHTMLTag[variant];
2155
2319
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2156
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2320
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2157
2321
  Component,
2158
2322
  __spreadProps(__spreadValues({
2159
- className: (0, import_typed_classname36.clsx)(
2323
+ className: (0, import_typed_classname38.clsx)(
2160
2324
  `hds-text-${variant}`,
2161
2325
  sizeModifier && `hds-text--${sizeModifier}`,
2162
2326
  spacing && "hds-text--spacing",
@@ -2172,7 +2336,7 @@ var Text = (0, import_react35.forwardRef)(
2172
2336
  Text.displayName = "Text";
2173
2337
 
2174
2338
  // src/text/index.tsx
2175
- var import_jsx_runtime40 = require("react/jsx-runtime");
2339
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2176
2340
  var TextH1Display = textVariant("h1-display", "TextH1Display");
2177
2341
  var TextH1 = textVariant("h1", "TextH1");
2178
2342
  var TextH2 = textVariant("h2", "TextH2");
@@ -2203,28 +2367,28 @@ var variantToHtmlTag = {
2203
2367
  };
2204
2368
  function textVariant(variant, displayName) {
2205
2369
  function WrappedText(props) {
2206
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
2370
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
2207
2371
  }
2208
2372
  WrappedText.displayName = displayName;
2209
2373
  return WrappedText;
2210
2374
  }
2211
2375
 
2212
2376
  // src/warning-banner/warning-banner.tsx
2213
- var import_react36 = require("react");
2214
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2215
- var import_jsx_runtime41 = require("react/jsx-runtime");
2216
- var WarningBanner = (0, import_react36.forwardRef)(
2377
+ var import_react38 = require("react");
2378
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2379
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2380
+ var WarningBanner = (0, import_react38.forwardRef)(
2217
2381
  (_a, ref) => {
2218
2382
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2219
2383
  const expandable = !!description;
2220
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname37.clsx)("hds-warning-banner", className), ref, children: [
2221
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
2222
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(WarningBannerDescription, { children: description }) : null
2384
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname39.clsx)("hds-warning-banner", className), ref, children: [
2385
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
2386
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(WarningBannerDescription, { children: description }) : null
2223
2387
  ] }));
2224
2388
  }
2225
2389
  );
2226
2390
  WarningBanner.displayName = "WarningBanner";
2227
- var WarningBannerTitle = (0, import_react36.forwardRef)(
2391
+ var WarningBannerTitle = (0, import_react38.forwardRef)(
2228
2392
  (_a, ref) => {
2229
2393
  var _b = _a, {
2230
2394
  variant,
@@ -2237,12 +2401,12 @@ var WarningBannerTitle = (0, import_react36.forwardRef)(
2237
2401
  "children",
2238
2402
  "className"
2239
2403
  ]);
2240
- const [open, setOpen] = (0, import_react36.useState)(false);
2404
+ const [open, setOpen] = (0, import_react38.useState)(false);
2241
2405
  if (variant === "expandable") {
2242
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2406
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2243
2407
  Component,
2244
2408
  __spreadProps(__spreadValues({
2245
- className: (0, import_typed_classname37.clsx)(
2409
+ className: (0, import_typed_classname39.clsx)(
2246
2410
  "hds-warning-banner__title",
2247
2411
  "hds-warning-banner__title-trigger",
2248
2412
  { "hds-warning-banner--closed": !open },
@@ -2254,14 +2418,14 @@ var WarningBannerTitle = (0, import_react36.forwardRef)(
2254
2418
  ref,
2255
2419
  type: "button"
2256
2420
  }, rest), {
2257
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children })
2421
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children })
2258
2422
  })
2259
2423
  );
2260
2424
  }
2261
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2425
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2262
2426
  Component,
2263
2427
  __spreadProps(__spreadValues({
2264
- className: (0, import_typed_classname37.clsx)("hds-warning-banner__title", className),
2428
+ className: (0, import_typed_classname39.clsx)("hds-warning-banner__title", className),
2265
2429
  ref
2266
2430
  }, rest), {
2267
2431
  children
@@ -2270,13 +2434,13 @@ var WarningBannerTitle = (0, import_react36.forwardRef)(
2270
2434
  }
2271
2435
  );
2272
2436
  WarningBannerTitle.displayName = "WarningBannerTitle";
2273
- var WarningBannerDescription = (0, import_react36.forwardRef)(
2437
+ var WarningBannerDescription = (0, import_react38.forwardRef)(
2274
2438
  (_a, ref) => {
2275
2439
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
2276
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2440
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2277
2441
  Component,
2278
2442
  __spreadValues({
2279
- className: (0, import_typed_classname37.clsx)("hds-warning-banner__description", className),
2443
+ className: (0, import_typed_classname39.clsx)("hds-warning-banner__description", className),
2280
2444
  ref
2281
2445
  }, rest)
2282
2446
  );
@@ -2286,25 +2450,50 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2286
2450
  // Annotate the CommonJS export names for ESM import in node:
2287
2451
  0 && (module.exports = {
2288
2452
  Accordion,
2453
+ AccordionContent,
2454
+ AccordionHeader,
2455
+ AccordionItem,
2289
2456
  AutoAnimateHeight,
2290
2457
  Badge,
2291
2458
  Box,
2459
+ BoxCloseButton,
2292
2460
  Breadcrumbs,
2293
2461
  Card,
2462
+ CardBody,
2463
+ CardBodyHeader,
2464
+ CardBodyHeaderOverline,
2465
+ CardMedia,
2466
+ CardMediaImg,
2294
2467
  Checkbox,
2295
2468
  Container,
2296
2469
  DarkBadge,
2470
+ DatePicker,
2297
2471
  DescriptionList,
2298
2472
  ErrorMessage,
2299
2473
  Fieldset,
2300
2474
  Footer,
2475
+ FooterButtonLink,
2476
+ FooterLinkSection,
2477
+ FooterLinkSections,
2478
+ FooterLogo,
2479
+ Grid,
2480
+ GridItem,
2301
2481
  HStack,
2302
2482
  Input,
2303
2483
  Link,
2304
2484
  LinkList,
2305
2485
  Message,
2486
+ MessageDescription,
2487
+ MessageTitle,
2306
2488
  Modal,
2489
+ ModalContent,
2490
+ ModalFooter,
2491
+ ModalHeader,
2307
2492
  Navbar,
2493
+ NavbarButton,
2494
+ NavbarLogo,
2495
+ NavbarLogoAndServiceText,
2496
+ NavbarNavigation,
2308
2497
  OrderedList,
2309
2498
  PrimaryButton,
2310
2499
  RadioGroup,