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