@postenbring/hedwig-react 0.0.64 → 0.0.66

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 (208) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +301 -68
  2. package/dist/_tsup-dts-rollup.d.ts +301 -68
  3. package/dist/accordion/accordion-content.js +5 -9
  4. package/dist/accordion/accordion-content.js.map +1 -1
  5. package/dist/accordion/accordion-content.mjs +1 -1
  6. package/dist/accordion/accordion-header.js +6 -9
  7. package/dist/accordion/accordion-header.js.map +1 -1
  8. package/dist/accordion/accordion-header.mjs +1 -1
  9. package/dist/accordion/accordion-item.js +2 -7
  10. package/dist/accordion/accordion-item.js.map +1 -1
  11. package/dist/accordion/accordion-item.mjs +1 -1
  12. package/dist/accordion/index.js +13 -25
  13. package/dist/accordion/index.js.map +1 -1
  14. package/dist/accordion/index.mjs +4 -4
  15. package/dist/chunk-27XJO7E4.mjs +51 -0
  16. package/dist/chunk-27XJO7E4.mjs.map +1 -0
  17. package/dist/{chunk-POJTVNEO.mjs → chunk-2ICZ3Q7N.mjs} +1 -1
  18. package/dist/chunk-2ICZ3Q7N.mjs.map +1 -0
  19. package/dist/{chunk-H3VGHTDC.mjs → chunk-2JH4FG63.mjs} +2 -2
  20. package/dist/chunk-2JH4FG63.mjs.map +1 -0
  21. package/dist/{chunk-SAGJ5W7M.mjs → chunk-62F4I3MQ.mjs} +3 -8
  22. package/dist/{chunk-SAGJ5W7M.mjs.map → chunk-62F4I3MQ.mjs.map} +1 -1
  23. package/dist/{chunk-V4NGUB4I.mjs → chunk-6NGF7FFY.mjs} +2 -2
  24. package/dist/chunk-6NGF7FFY.mjs.map +1 -0
  25. package/dist/{chunk-BYDSISQZ.mjs → chunk-A47QULAK.mjs} +2 -2
  26. package/dist/{chunk-BYDSISQZ.mjs.map → chunk-A47QULAK.mjs.map} +1 -1
  27. package/dist/chunk-BZRCDLEW.mjs +118 -0
  28. package/dist/chunk-BZRCDLEW.mjs.map +1 -0
  29. package/dist/chunk-CLXHNRAI.mjs +104 -0
  30. package/dist/chunk-CLXHNRAI.mjs.map +1 -0
  31. package/dist/{chunk-37WVYY6X.mjs → chunk-DM4PJFLG.mjs} +6 -3
  32. package/dist/chunk-DM4PJFLG.mjs.map +1 -0
  33. package/dist/{chunk-KRGKVH5J.mjs → chunk-GUB3UCXO.mjs} +6 -10
  34. package/dist/chunk-GUB3UCXO.mjs.map +1 -0
  35. package/dist/{chunk-WGVZWX5L.mjs → chunk-HMB4TY2F.mjs} +14 -4
  36. package/dist/chunk-HMB4TY2F.mjs.map +1 -0
  37. package/dist/{chunk-5MDJP43L.mjs → chunk-IFGQR4J6.mjs} +10 -10
  38. package/dist/chunk-IFGQR4J6.mjs.map +1 -0
  39. package/dist/chunk-KQITCS3U.mjs +18 -0
  40. package/dist/chunk-KQITCS3U.mjs.map +1 -0
  41. package/dist/chunk-L4GQJETB.mjs +1 -0
  42. package/dist/{chunk-QSYU64U4.mjs → chunk-MRCE2Q7A.mjs} +2 -2
  43. package/dist/chunk-NE6W2PCD.mjs +9 -0
  44. package/dist/chunk-NE6W2PCD.mjs.map +1 -0
  45. package/dist/chunk-RHCMBJOT.mjs +76 -0
  46. package/dist/chunk-RHCMBJOT.mjs.map +1 -0
  47. package/dist/chunk-RXIP2JTE.mjs +19 -0
  48. package/dist/chunk-RXIP2JTE.mjs.map +1 -0
  49. package/dist/{chunk-EJADADIY.mjs → chunk-UWTGHSWT.mjs} +6 -9
  50. package/dist/chunk-UWTGHSWT.mjs.map +1 -0
  51. package/dist/{chunk-2E6XPNPX.mjs → chunk-X46LM2QH.mjs} +9 -6
  52. package/dist/chunk-X46LM2QH.mjs.map +1 -0
  53. package/dist/{chunk-DJRMXOCP.mjs → chunk-XIHKASNB.mjs} +4 -4
  54. package/dist/{chunk-MBBFU4IR.mjs → chunk-XVFQWVHO.mjs} +3 -9
  55. package/dist/{chunk-MBBFU4IR.mjs.map → chunk-XVFQWVHO.mjs.map} +1 -1
  56. package/dist/chunk-YWNVB7TY.mjs +1 -0
  57. package/dist/{chunk-FT5CX2W5.mjs → chunk-YXHXRUFX.mjs} +7 -10
  58. package/dist/chunk-YXHXRUFX.mjs.map +1 -0
  59. package/dist/chunk-ZTYEOZLK.mjs +18 -0
  60. package/dist/chunk-ZTYEOZLK.mjs.map +1 -0
  61. package/dist/footer/footer.d.mts +7 -0
  62. package/dist/footer/footer.d.ts +7 -0
  63. package/dist/footer/footer.js +401 -0
  64. package/dist/footer/footer.js.map +1 -0
  65. package/dist/footer/footer.mjs +26 -0
  66. package/dist/footer/footer.mjs.map +1 -0
  67. package/dist/footer/index.d.mts +7 -0
  68. package/dist/footer/index.d.ts +7 -0
  69. package/dist/footer/index.js +402 -0
  70. package/dist/footer/index.js.map +1 -0
  71. package/dist/footer/index.mjs +19 -0
  72. package/dist/footer/index.mjs.map +1 -0
  73. package/dist/form/checkbox/checkbox.js +122 -24
  74. package/dist/form/checkbox/checkbox.js.map +1 -1
  75. package/dist/form/checkbox/checkbox.mjs +5 -1
  76. package/dist/form/checkbox/index.js +122 -24
  77. package/dist/form/checkbox/index.js.map +1 -1
  78. package/dist/form/checkbox/index.mjs +5 -1
  79. package/dist/form/fieldset/fieldset.d.mts +1 -0
  80. package/dist/form/fieldset/fieldset.d.ts +1 -0
  81. package/dist/form/fieldset/fieldset.js +7 -3
  82. package/dist/form/fieldset/fieldset.js.map +1 -1
  83. package/dist/form/fieldset/fieldset.mjs +5 -3
  84. package/dist/form/fieldset/index.d.mts +1 -0
  85. package/dist/form/fieldset/index.d.ts +1 -0
  86. package/dist/form/fieldset/index.js +7 -3
  87. package/dist/form/fieldset/index.js.map +1 -1
  88. package/dist/form/fieldset/index.mjs +5 -3
  89. package/dist/form/index.d.mts +2 -1
  90. package/dist/form/index.d.ts +2 -1
  91. package/dist/form/index.js +68 -27
  92. package/dist/form/index.js.map +1 -1
  93. package/dist/form/index.mjs +20 -16
  94. package/dist/form/radiobutton/index.d.mts +1 -1
  95. package/dist/form/radiobutton/index.d.ts +1 -1
  96. package/dist/form/radiobutton/index.js +17 -8
  97. package/dist/form/radiobutton/index.js.map +1 -1
  98. package/dist/form/radiobutton/index.mjs +7 -5
  99. package/dist/form/radiobutton/radiobutton.js +13 -6
  100. package/dist/form/radiobutton/radiobutton.js.map +1 -1
  101. package/dist/form/radiobutton/radiobutton.mjs +3 -3
  102. package/dist/form/radiobutton/radiogroup.js +2 -1
  103. package/dist/form/radiobutton/radiogroup.js.map +1 -1
  104. package/dist/form/radiobutton/radiogroup.mjs +2 -2
  105. package/dist/index-no-css.d.mts +20 -7
  106. package/dist/index-no-css.d.ts +20 -7
  107. package/dist/index-no-css.js +537 -310
  108. package/dist/index-no-css.js.map +1 -1
  109. package/dist/index-no-css.mjs +100 -68
  110. package/dist/index.d.mts +20 -7
  111. package/dist/index.d.ts +20 -7
  112. package/dist/index.js +537 -310
  113. package/dist/index.js.map +1 -1
  114. package/dist/index.mjs +100 -68
  115. package/dist/index.mjs.map +1 -1
  116. package/dist/layout/index.d.mts +5 -1
  117. package/dist/layout/index.d.ts +5 -1
  118. package/dist/layout/index.js +62 -2
  119. package/dist/layout/index.js.map +1 -1
  120. package/dist/layout/index.mjs +12 -2
  121. package/dist/layout/responsive.d.mts +2 -0
  122. package/dist/layout/responsive.d.ts +2 -0
  123. package/dist/layout/responsive.js +42 -0
  124. package/dist/layout/responsive.js.map +1 -0
  125. package/dist/layout/responsive.mjs +8 -0
  126. package/dist/layout/responsive.mjs.map +1 -0
  127. package/dist/layout/spacing.d.mts +3 -0
  128. package/dist/layout/spacing.d.ts +3 -0
  129. package/dist/layout/spacing.js +33 -0
  130. package/dist/layout/spacing.js.map +1 -0
  131. package/dist/layout/spacing.mjs +8 -0
  132. package/dist/layout/spacing.mjs.map +1 -0
  133. package/dist/layout/stack/index.d.mts +4 -0
  134. package/dist/layout/stack/index.d.ts +4 -0
  135. package/dist/layout/stack/index.js +117 -0
  136. package/dist/layout/stack/index.js.map +1 -0
  137. package/dist/layout/stack/index.mjs +14 -0
  138. package/dist/layout/stack/index.mjs.map +1 -0
  139. package/dist/layout/stack/stack.d.mts +4 -0
  140. package/dist/layout/stack/stack.d.ts +4 -0
  141. package/dist/layout/stack/stack.js +115 -0
  142. package/dist/layout/stack/stack.js.map +1 -0
  143. package/dist/layout/stack/stack.mjs +14 -0
  144. package/dist/layout/stack/stack.mjs.map +1 -0
  145. package/dist/modal/index.js.map +1 -1
  146. package/dist/modal/index.mjs +2 -2
  147. package/dist/modal/modal.js.map +1 -1
  148. package/dist/modal/modal.mjs +1 -1
  149. package/dist/navbar/index.d.mts +1 -0
  150. package/dist/navbar/index.d.ts +1 -0
  151. package/dist/navbar/index.js +11 -7
  152. package/dist/navbar/index.js.map +1 -1
  153. package/dist/navbar/index.mjs +7 -4
  154. package/dist/navbar/navbar-expandable-menu.d.mts +1 -0
  155. package/dist/navbar/navbar-expandable-menu.d.ts +1 -0
  156. package/dist/navbar/navbar-expandable-menu.js +11 -7
  157. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  158. package/dist/navbar/navbar-expandable-menu.mjs +5 -3
  159. package/dist/skeleton/index.js +1 -1
  160. package/dist/skeleton/index.js.map +1 -1
  161. package/dist/skeleton/index.mjs +1 -1
  162. package/dist/skeleton/skeleton.js +1 -1
  163. package/dist/skeleton/skeleton.js.map +1 -1
  164. package/dist/skeleton/skeleton.mjs +1 -1
  165. package/dist/tabs/context.d.mts +1 -0
  166. package/dist/tabs/context.d.ts +1 -0
  167. package/dist/tabs/context.js +13 -8
  168. package/dist/tabs/context.js.map +1 -1
  169. package/dist/tabs/context.mjs +5 -3
  170. package/dist/tabs/index.d.mts +5 -5
  171. package/dist/tabs/index.d.ts +5 -5
  172. package/dist/tabs/index.js +59 -33
  173. package/dist/tabs/index.js.map +1 -1
  174. package/dist/tabs/index.mjs +16 -6
  175. package/dist/tabs/tabs-content.js +11 -11
  176. package/dist/tabs/tabs-content.js.map +1 -1
  177. package/dist/tabs/tabs-content.mjs +2 -2
  178. package/dist/tabs/tabs-list.d.mts +2 -2
  179. package/dist/tabs/tabs-list.d.ts +2 -2
  180. package/dist/tabs/tabs-list.js +49 -22
  181. package/dist/tabs/tabs-list.js.map +1 -1
  182. package/dist/tabs/tabs-list.mjs +6 -6
  183. package/dist/tabs/tabs.js +2 -14
  184. package/dist/tabs/tabs.js.map +1 -1
  185. package/dist/tabs/tabs.mjs +2 -2
  186. package/package.json +5 -5
  187. package/dist/chunk-2E6XPNPX.mjs.map +0 -1
  188. package/dist/chunk-33JD5XDW.mjs +0 -14
  189. package/dist/chunk-33JD5XDW.mjs.map +0 -1
  190. package/dist/chunk-37WVYY6X.mjs.map +0 -1
  191. package/dist/chunk-5MDJP43L.mjs.map +0 -1
  192. package/dist/chunk-EJADADIY.mjs.map +0 -1
  193. package/dist/chunk-FT5CX2W5.mjs.map +0 -1
  194. package/dist/chunk-H3VGHTDC.mjs.map +0 -1
  195. package/dist/chunk-H4GIHEB2.mjs +0 -1
  196. package/dist/chunk-KRGKVH5J.mjs.map +0 -1
  197. package/dist/chunk-OIQUYB26.mjs +0 -1
  198. package/dist/chunk-POJTVNEO.mjs.map +0 -1
  199. package/dist/chunk-PXHYOQPB.mjs +0 -42
  200. package/dist/chunk-PXHYOQPB.mjs.map +0 -1
  201. package/dist/chunk-V4NGUB4I.mjs.map +0 -1
  202. package/dist/chunk-WGVZWX5L.mjs.map +0 -1
  203. package/dist/chunk-XVZ44NGD.mjs +0 -80
  204. package/dist/chunk-XVZ44NGD.mjs.map +0 -1
  205. /package/dist/{chunk-H4GIHEB2.mjs.map → chunk-L4GQJETB.mjs.map} +0 -0
  206. /package/dist/{chunk-QSYU64U4.mjs.map → chunk-MRCE2Q7A.mjs.map} +0 -0
  207. /package/dist/{chunk-DJRMXOCP.mjs.map → chunk-XIHKASNB.mjs.map} +0 -0
  208. /package/dist/{chunk-OIQUYB26.mjs.map → chunk-YWNVB7TY.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -71,6 +71,8 @@ __export(src_exports, {
71
71
  DescriptionList: () => DescriptionList,
72
72
  ErrorMessage: () => ErrorMessage,
73
73
  Fieldset: () => Fieldset,
74
+ Footer: () => FooterComponent,
75
+ HStack: () => HStack,
74
76
  Input: () => Input,
75
77
  Link: () => Link,
76
78
  LinkList: () => LinkList,
@@ -85,9 +87,14 @@ __export(src_exports, {
85
87
  Select: () => Select,
86
88
  ShowMoreButton: () => ShowMoreButton,
87
89
  Skeleton: () => Skeleton,
90
+ Stack: () => Stack,
88
91
  StepIndicator: () => StepIndicator,
89
92
  StyledHtml: () => StyledHtml,
90
93
  Tabs: () => TabsComponent,
94
+ TabsContent: () => TabsContent,
95
+ TabsContents: () => TabsContents,
96
+ TabsList: () => TabsList,
97
+ TabsTab: () => TabsTab,
91
98
  Text: () => Text,
92
99
  TextBody: () => TextBody,
93
100
  TextBodySmall: () => TextBodySmall,
@@ -104,9 +111,13 @@ __export(src_exports, {
104
111
  TextTechnicalTitle: () => TextTechnicalTitle,
105
112
  Textarea: () => Textarea,
106
113
  UnorderedList: () => UnorderedList,
114
+ VStack: () => VStack,
107
115
  WarningBadge: () => WarningBadge,
108
116
  WarningBanner: () => WarningBanner,
109
- WhiteBadge: () => WhiteBadge
117
+ WhiteBadge: () => WhiteBadge,
118
+ useFieldsetContext: () => useFieldsetContext,
119
+ useNavbarExpendableMenuContext: () => useNavbarExpendableMenuContext,
120
+ useRadioGroupContext: () => useRadioGroupContext
110
121
  });
111
122
  module.exports = __toCommonJS(src_exports);
112
123
  var import_dist = require("@postenbring/hedwig-css/dist/index.css");
@@ -173,13 +184,8 @@ var AccordionItem = (0, import_react3.forwardRef)(
173
184
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
174
185
  Component,
175
186
  __spreadProps(__spreadValues({}, rest), {
176
- className: (0, import_typed_classname2.clsx)(
177
- "hds-accordion-item",
178
- {
179
- "hds-accordion-item__expanded": open
180
- },
181
- className
182
- ),
187
+ "data-state": open ? "open" : "closed",
188
+ className: (0, import_typed_classname2.clsx)("hds-accordion-item", className),
183
189
  ref,
184
190
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AccordionItemContext.Provider, { value: { open, setOpen: handleOpen }, children })
185
191
  })
@@ -194,23 +200,20 @@ var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname")
194
200
  var import_jsx_runtime3 = require("react/jsx-runtime");
195
201
  var AccordionHeader = (0, import_react4.forwardRef)((_a, ref) => {
196
202
  var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
197
- const itemContext = (0, import_react4.useContext)(AccordionItemContext);
198
- if (itemContext === null) {
203
+ const context = (0, import_react4.useContext)(AccordionItemContext);
204
+ if (context === null) {
199
205
  return null;
200
206
  }
201
207
  const expandOrCollapse = (e) => {
202
- itemContext.setOpen(!itemContext.open);
208
+ context.setOpen(!context.open);
203
209
  onClick && onClick(e);
204
210
  };
205
211
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
206
212
  Component,
207
213
  __spreadProps(__spreadValues({}, rest), {
208
- "aria-expanded": itemContext.open,
209
- className: (0, import_typed_classname3.clsx)(
210
- "hds-accordion-item-header",
211
- { "hds-accordion-item-header--open": itemContext.open },
212
- className
213
- ),
214
+ "aria-expanded": context.open,
215
+ "data-state": context.open ? "open" : "closed",
216
+ className: (0, import_typed_classname3.clsx)("hds-accordion-item-header", className),
214
217
  onClick: expandOrCollapse,
215
218
  ref,
216
219
  type: "button",
@@ -233,16 +236,12 @@ var AccordionContent = (0, import_react5.forwardRef)((_a, ref) => {
233
236
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
234
237
  Component,
235
238
  __spreadProps(__spreadValues({
236
- "aria-hidden": !context.open
239
+ "aria-hidden": !context.open,
240
+ "data-state": context.open ? "open" : "closed",
241
+ inert: context.open ? void 0 : "true",
242
+ className: (0, import_typed_classname4.clsx)("hds-accordion-item-content", className),
243
+ ref
237
244
  }, rest), {
238
- className: (0, import_typed_classname4.clsx)(
239
- "hds-accordion-item-content",
240
- {
241
- "hds-accordion-item-content--closed": !context.open
242
- },
243
- className
244
- ),
245
- ref,
246
245
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_typed_classname4.clsx)("hds-accordion-item-content-inner"), children })
247
246
  })
248
247
  );
@@ -630,6 +629,8 @@ function ErrorMessage({ children, id, className }) {
630
629
 
631
630
  // src/form/fieldset/fieldset.tsx
632
631
  var import_jsx_runtime12 = require("react/jsx-runtime");
632
+ var FieldsetContext = (0, import_react9.createContext)({ hasError: false });
633
+ var useFieldsetContext = () => (0, import_react9.useContext)(FieldsetContext);
633
634
  var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
634
635
  var _b = _a, {
635
636
  className,
@@ -670,7 +671,7 @@ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
670
671
  children: legend
671
672
  })
672
673
  ),
673
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-fieldset__input-wrapper"), children }),
674
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
674
675
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
675
676
  ]
676
677
  })
@@ -839,28 +840,56 @@ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname"
839
840
  var import_jsx_runtime17 = require("react/jsx-runtime");
840
841
  var Checkbox = (0, import_react14.forwardRef)(
841
842
  (_a, ref) => {
842
- var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
843
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
844
- "div",
845
- {
846
- className: (0, import_typed_classname17.clsx)(
847
- "hds-checkbox",
848
- {
849
- [`hds-checkbox--${variant}`]: variant === "bounding-box",
850
- "hds-checkbox--error": hasError
851
- },
852
- className
853
- ),
854
- children: [
855
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { children: [
856
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
857
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
858
- title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
859
- ] }),
860
- title ? children : null
861
- ]
862
- }
863
- );
843
+ var _b = _a, {
844
+ variant = "plain",
845
+ hasError: hasErrorProp,
846
+ errorMessage,
847
+ title,
848
+ children,
849
+ className
850
+ } = _b, rest = __objRest(_b, [
851
+ "variant",
852
+ "hasError",
853
+ "errorMessage",
854
+ "title",
855
+ "children",
856
+ "className"
857
+ ]);
858
+ const errorMessageId = (0, import_react14.useId)();
859
+ const { hasError: hasFieldsetError } = useFieldsetContext();
860
+ const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
861
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: (0, import_typed_classname17.clsx)("hds-checkbox-wrapper"), children: [
862
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
863
+ "div",
864
+ {
865
+ className: (0, import_typed_classname17.clsx)(
866
+ "hds-checkbox",
867
+ {
868
+ [`hds-checkbox--${variant}`]: variant === "bounding-box",
869
+ "hds-checkbox--error": hasError
870
+ },
871
+ className
872
+ ),
873
+ children: [
874
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { children: [
875
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
876
+ "input",
877
+ __spreadProps(__spreadValues({}, rest), {
878
+ "aria-invalid": hasError ? true : void 0,
879
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
880
+ ref,
881
+ type: "checkbox"
882
+ })
883
+ ),
884
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
885
+ title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
886
+ ] }),
887
+ title ? children : null
888
+ ]
889
+ }
890
+ ),
891
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage }) : null
892
+ ] });
864
893
  }
865
894
  );
866
895
  Checkbox.displayName = "Checkbox";
@@ -917,8 +946,15 @@ var Radiobutton = (0, import_react16.forwardRef)(
917
946
  "children",
918
947
  "className"
919
948
  ]);
920
- const _a2 = useRadioGroupContext(), { value: selectedValue, hasError: hasErrorContext } = _a2, context = __objRest(_a2, ["value", "hasError"]);
921
- const hasError = hasErrorContext || hasErrorProp;
949
+ const _a2 = useRadioGroupContext(), {
950
+ value: selectedValue,
951
+ hasError: hasRadioGroupError
952
+ } = _a2, context = __objRest(_a2, [
953
+ "value",
954
+ "hasError"
955
+ ]);
956
+ const { hasError: hasFieldsetError } = useFieldsetContext();
957
+ const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
922
958
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
923
959
  "div",
924
960
  {
@@ -952,17 +988,161 @@ var Radiobutton = (0, import_react16.forwardRef)(
952
988
  );
953
989
  Radiobutton.displayName = "Radiobutton";
954
990
 
955
- // src/layout/container/container.tsx
956
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
991
+ // src/footer/footer.tsx
957
992
  var import_react17 = require("react");
993
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
994
+ var import_react_slot = require("@radix-ui/react-slot");
995
+
996
+ // src/list/link-list.tsx
997
+ var React3 = require("react");
998
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
999
+
1000
+ // src/list/list.tsx
1001
+ var React2 = require("react");
1002
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
958
1003
  var import_jsx_runtime20 = require("react/jsx-runtime");
959
- var Container = (0, import_react17.forwardRef)(
1004
+ function BaseList(_a) {
1005
+ var _b = _a, {
1006
+ as: ListTag = "ul",
1007
+ children,
1008
+ size = "medium",
1009
+ className
1010
+ } = _b, rest = __objRest(_b, [
1011
+ "as",
1012
+ "children",
1013
+ "size",
1014
+ "className"
1015
+ ]);
1016
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname19.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
1017
+ }
1018
+ function UnorderedList(props) {
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1020
+ }
1021
+ function OrderedList(props) {
1022
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1023
+ }
1024
+ BaseList.displayName = "BaseList";
1025
+ OrderedList.displayName = "OrderedList";
1026
+ UnorderedList.displayName = "UnorderedList";
1027
+
1028
+ // src/list/link-list.tsx
1029
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1030
+ function LinkList(_a) {
1031
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1032
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname20.clsx)("hds-list--link-list", className) }, rest));
1033
+ }
1034
+ LinkList.displayName = "LinkList";
1035
+
1036
+ // src/footer/footer.tsx
1037
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1038
+ var Footer = (0, import_react17.forwardRef)(
1039
+ (_a, ref) => {
1040
+ var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1041
+ const Component = asChild ? import_react_slot.Slot : "footer";
1042
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1043
+ Component,
1044
+ __spreadProps(__spreadValues({
1045
+ className: (0, import_typed_classname21.clsx)(
1046
+ `hds-footer`,
1047
+ variant === "slim" && "hds-footer--slim",
1048
+ className
1049
+ ),
1050
+ ref
1051
+ }, rest), {
1052
+ children
1053
+ })
1054
+ );
1055
+ }
1056
+ );
1057
+ Footer.displayName = "Footer";
1058
+ var FooterButtonLink = (0, import_react17.forwardRef)(
1059
+ (_a, ref) => {
1060
+ var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1061
+ const Component = asChild ? import_react_slot.Slot : "a";
1062
+ return (
1063
+ // @ts-expect-error -- It's ok, types are a bit off
1064
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1065
+ PrimaryButton,
1066
+ __spreadProps(__spreadValues({
1067
+ as: Component,
1068
+ fill: "outline",
1069
+ className: (0, import_typed_classname21.clsx)(className),
1070
+ ref
1071
+ }, rest), {
1072
+ children
1073
+ })
1074
+ )
1075
+ );
1076
+ }
1077
+ );
1078
+ FooterButtonLink.displayName = "FooterButton";
1079
+ var FooterLogo = (0, import_react17.forwardRef)(
1080
+ (_a, ref) => {
1081
+ var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1082
+ const Component = asChild ? import_react_slot.Slot : "div";
1083
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname21.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1084
+ }
1085
+ );
1086
+ FooterLogo.displayName = "Footer.Logo";
1087
+ var FooterLinkSections = (0, import_react17.forwardRef)(
1088
+ (_a, ref) => {
1089
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1090
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1091
+ AccordionComponent,
1092
+ __spreadProps(__spreadValues({
1093
+ className: (0, import_typed_classname21.clsx)("hds-footer__link-sections", className),
1094
+ ref
1095
+ }, rest), {
1096
+ children
1097
+ })
1098
+ ) });
1099
+ }
1100
+ );
1101
+ FooterLinkSections.displayName = "Footer.LinkSections";
1102
+ var FooterLinkSection = (0, import_react17.forwardRef)(
1103
+ (_a, ref) => {
1104
+ var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1105
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(LinkList, { children });
1106
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
1107
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1108
+ AccordionComponent.Item,
1109
+ __spreadProps(__spreadValues({
1110
+ className: (0, import_typed_classname21.clsx)(`hds-footer__link-section`, className),
1111
+ ref
1112
+ }, rest), {
1113
+ children: [
1114
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionComponent.Header, { children: heading }),
1115
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionComponent.Content, { children: linkListChildren })
1116
+ ]
1117
+ })
1118
+ ),
1119
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: (0, import_typed_classname21.clsx)(`hds-footer__link-section`, className), children: [
1120
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { children: heading }),
1121
+ linkListChildren
1122
+ ] })
1123
+ ] });
1124
+ }
1125
+ );
1126
+ FooterLinkSection.displayName = "Footer.LinkSection";
1127
+
1128
+ // src/footer/index.tsx
1129
+ var FooterComponent = Footer;
1130
+ FooterComponent.Logo = FooterLogo;
1131
+ FooterComponent.ButtonLink = FooterButtonLink;
1132
+ FooterComponent.LinkSections = FooterLinkSections;
1133
+ FooterComponent.LinkSection = FooterLinkSection;
1134
+
1135
+ // src/layout/container/container.tsx
1136
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1137
+ var import_react18 = require("react");
1138
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1139
+ var Container = (0, import_react18.forwardRef)(
960
1140
  (_a, ref) => {
961
1141
  var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
962
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1142
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
963
1143
  Component,
964
1144
  __spreadProps(__spreadValues({}, rest), {
965
- className: (0, import_typed_classname19.clsx)(
1145
+ className: (0, import_typed_classname22.clsx)(
966
1146
  "hds-container",
967
1147
  { "hds-container--slim": variant === "slim" },
968
1148
  className
@@ -975,18 +1155,72 @@ var Container = (0, import_react17.forwardRef)(
975
1155
  );
976
1156
  Container.displayName = "Container";
977
1157
 
978
- // src/link/link.tsx
1158
+ // src/layout/stack/stack.tsx
979
1159
  var React4 = require("react");
980
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
981
- var import_react18 = require("react");
982
- var import_jsx_runtime21 = require("react/jsx-runtime");
983
- var Link = (0, import_react18.forwardRef)(
1160
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1161
+ var import_react19 = require("react");
1162
+ var import_react_slot2 = require("@radix-ui/react-slot");
1163
+
1164
+ // src/layout/spacing.ts
1165
+ function getSpacingVariable(size) {
1166
+ return `var(--hds-spacing-${size})`;
1167
+ }
1168
+
1169
+ // src/layout/responsive.ts
1170
+ function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
1171
+ if (!inputValues)
1172
+ return {};
1173
+ if (typeof inputValues !== "object") {
1174
+ return { [`${variable}-xsmall`]: valueTransformer(inputValues) };
1175
+ }
1176
+ const result = {};
1177
+ for (const [key, value] of Object.entries(inputValues)) {
1178
+ result[`${variable}-${key}`] = valueTransformer(value);
1179
+ }
1180
+ return result;
1181
+ }
1182
+
1183
+ // src/layout/stack/stack.tsx
1184
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1185
+ var Stack = (0, import_react19.forwardRef)(
1186
+ (_a, ref) => {
1187
+ var _b = _a, { children, asChild, className, style: _style, gap, direction, wrap, align, justify } = _b, rest = __objRest(_b, ["children", "asChild", "className", "style", "gap", "direction", "wrap", "align", "justify"]);
1188
+ const Component = asChild ? import_react_slot2.Slot : "div";
1189
+ const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
1190
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1191
+ Component,
1192
+ __spreadProps(__spreadValues({
1193
+ style,
1194
+ className: (0, import_typed_classname23.clsx)("hds-stack", className),
1195
+ ref
1196
+ }, rest), {
1197
+ children
1198
+ })
1199
+ );
1200
+ }
1201
+ );
1202
+ Stack.displayName = "Stack";
1203
+ var HStack = (0, import_react19.forwardRef)((props, ref) => {
1204
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1205
+ });
1206
+ HStack.displayName = "HStack";
1207
+ var VStack = (0, import_react19.forwardRef)((props, ref) => {
1208
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1209
+ });
1210
+ VStack.displayName = "VStack";
1211
+
1212
+ // src/link/link.tsx
1213
+ var React5 = require("react");
1214
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1215
+ var import_react20 = require("react");
1216
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1217
+ var Link = (0, import_react20.forwardRef)(
984
1218
  (_a, ref) => {
985
1219
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
986
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1220
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
987
1221
  Component,
988
1222
  __spreadProps(__spreadValues({
989
- className: (0, import_typed_classname20.clsx)(
1223
+ className: (0, import_typed_classname24.clsx)(
990
1224
  "hds-link",
991
1225
  variant !== "underline" && `hds-link--${variant}`,
992
1226
  size !== "medium" && `hds-link--${size}`,
@@ -1001,59 +1235,21 @@ var Link = (0, import_react18.forwardRef)(
1001
1235
  );
1002
1236
  Link.displayName = "Link";
1003
1237
 
1004
- // src/list/list.tsx
1005
- var React5 = require("react");
1006
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1007
- var import_jsx_runtime22 = require("react/jsx-runtime");
1008
- function BaseList(_a) {
1009
- var _b = _a, {
1010
- as: ListTag = "ul",
1011
- children,
1012
- size = "medium",
1013
- className
1014
- } = _b, rest = __objRest(_b, [
1015
- "as",
1016
- "children",
1017
- "size",
1018
- "className"
1019
- ]);
1020
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname21.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
1021
- }
1022
- function UnorderedList(props) {
1023
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1024
- }
1025
- function OrderedList(props) {
1026
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1027
- }
1028
- BaseList.displayName = "BaseList";
1029
- OrderedList.displayName = "OrderedList";
1030
- UnorderedList.displayName = "UnorderedList";
1031
-
1032
- // src/list/link-list.tsx
1033
- var React6 = require("react");
1034
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1035
- var import_jsx_runtime23 = require("react/jsx-runtime");
1036
- function LinkList(_a) {
1037
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1038
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname22.clsx)("hds-list--link-list", className) }, rest));
1039
- }
1040
- LinkList.displayName = "LinkList";
1041
-
1042
1238
  // src/message/message.tsx
1043
- var import_react19 = require("react");
1044
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1045
- var import_jsx_runtime24 = require("react/jsx-runtime");
1046
- var Message = (0, import_react19.forwardRef)(
1239
+ var import_react21 = require("react");
1240
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1241
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1242
+ var Message = (0, import_react21.forwardRef)(
1047
1243
  (_a, ref) => {
1048
1244
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1049
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1245
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1050
1246
  Box,
1051
1247
  __spreadProps(__spreadValues({
1052
- className: (0, import_typed_classname23.clsx)(`hds-message`, `hds-message--${variant}`, className),
1248
+ className: (0, import_typed_classname25.clsx)(`hds-message`, `hds-message--${variant}`, className),
1053
1249
  ref
1054
1250
  }, rest), {
1055
1251
  children: [
1056
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: (0, import_typed_classname23.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1252
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: (0, import_typed_classname25.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1057
1253
  children
1058
1254
  ]
1059
1255
  })
@@ -1061,26 +1257,26 @@ var Message = (0, import_react19.forwardRef)(
1061
1257
  }
1062
1258
  );
1063
1259
  Message.displayName = "Message";
1064
- var MessageTitle = (0, import_react19.forwardRef)(
1260
+ var MessageTitle = (0, import_react21.forwardRef)(
1065
1261
  (_a, ref) => {
1066
1262
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1067
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1263
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1068
1264
  Component,
1069
1265
  __spreadValues({
1070
- className: (0, import_typed_classname23.clsx)("hds-message__title", className),
1266
+ className: (0, import_typed_classname25.clsx)("hds-message__title", className),
1071
1267
  ref
1072
1268
  }, rest)
1073
1269
  );
1074
1270
  }
1075
1271
  );
1076
1272
  MessageTitle.displayName = "Message.Title";
1077
- var MessageDescription = (0, import_react19.forwardRef)(
1273
+ var MessageDescription = (0, import_react21.forwardRef)(
1078
1274
  (_a, ref) => {
1079
1275
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1080
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1276
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1081
1277
  Component,
1082
1278
  __spreadValues({
1083
- className: (0, import_typed_classname23.clsx)("hds-message__description", className),
1279
+ className: (0, import_typed_classname25.clsx)("hds-message__description", className),
1084
1280
  ref
1085
1281
  }, rest)
1086
1282
  );
@@ -1094,14 +1290,14 @@ MessageComponent.Title = MessageTitle;
1094
1290
  MessageComponent.Description = MessageDescription;
1095
1291
 
1096
1292
  // src/modal/modal.tsx
1097
- var import_react21 = require("react");
1098
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1293
+ var import_react23 = require("react");
1294
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1099
1295
 
1100
1296
  // src/utils.ts
1101
- var React8 = __toESM(require("react"));
1102
- var import_react20 = require("react");
1297
+ var React7 = __toESM(require("react"));
1298
+ var import_react22 = require("react");
1103
1299
  function useMergeRefs(refs) {
1104
- return React8.useMemo(() => {
1300
+ return React7.useMemo(() => {
1105
1301
  if (refs.every((ref) => ref === null)) {
1106
1302
  return null;
1107
1303
  }
@@ -1117,16 +1313,16 @@ function useMergeRefs(refs) {
1117
1313
  }, refs);
1118
1314
  }
1119
1315
  function useResize(ref) {
1120
- const [width, setWidth] = (0, import_react20.useState)(0);
1121
- const [height, setHeight] = (0, import_react20.useState)(0);
1122
- const handleResize = (0, import_react20.useCallback)(() => {
1316
+ const [width, setWidth] = (0, import_react22.useState)(0);
1317
+ const [height, setHeight] = (0, import_react22.useState)(0);
1318
+ const handleResize = (0, import_react22.useCallback)(() => {
1123
1319
  var _a, _b, _c, _d;
1124
1320
  if ((ref == null ? void 0 : ref.current) !== null) {
1125
1321
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
1126
1322
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
1127
1323
  }
1128
1324
  }, [ref]);
1129
- (0, import_react20.useEffect)(() => {
1325
+ (0, import_react22.useEffect)(() => {
1130
1326
  window.addEventListener("load", handleResize);
1131
1327
  window.addEventListener("resize", handleResize);
1132
1328
  return () => {
@@ -1134,18 +1330,18 @@ function useResize(ref) {
1134
1330
  window.removeEventListener("resize", handleResize);
1135
1331
  };
1136
1332
  }, [ref, handleResize]);
1137
- (0, import_react20.useEffect)(() => {
1333
+ (0, import_react22.useEffect)(() => {
1138
1334
  handleResize();
1139
1335
  }, []);
1140
1336
  return { width, height };
1141
1337
  }
1142
1338
 
1143
1339
  // src/modal/modal.tsx
1144
- var import_jsx_runtime25 = require("react/jsx-runtime");
1145
- var Modal = (0, import_react21.forwardRef)(
1340
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1341
+ var Modal = (0, import_react23.forwardRef)(
1146
1342
  (_a, ref) => {
1147
1343
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1148
- const modalRef = (0, import_react21.useRef)(null);
1344
+ const modalRef = (0, import_react23.useRef)(null);
1149
1345
  const mergedRef = useMergeRefs([modalRef, ref]);
1150
1346
  function onCloseButtonClick() {
1151
1347
  var _a2;
@@ -1153,7 +1349,7 @@ var Modal = (0, import_react21.forwardRef)(
1153
1349
  return false;
1154
1350
  }
1155
1351
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1156
- (0, import_react21.useEffect)(() => {
1352
+ (0, import_react23.useEffect)(() => {
1157
1353
  if (modalRef.current && open !== void 0) {
1158
1354
  if (open && !modalRef.current.open) {
1159
1355
  modalRef.current.showModal();
@@ -1168,11 +1364,11 @@ var Modal = (0, import_react21.forwardRef)(
1168
1364
  }
1169
1365
  onClick == null ? void 0 : onClick(e);
1170
1366
  }
1171
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1367
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1172
1368
  Box,
1173
1369
  __spreadProps(__spreadValues({
1174
1370
  as: "dialog",
1175
- className: (0, import_typed_classname24.clsx)("hds-modal", className),
1371
+ className: (0, import_typed_classname26.clsx)("hds-modal", className),
1176
1372
  closeable: true,
1177
1373
  onClick: onDialogClick,
1178
1374
  onClose: onCloseButtonClick,
@@ -1185,39 +1381,39 @@ var Modal = (0, import_react21.forwardRef)(
1185
1381
  }
1186
1382
  );
1187
1383
  Modal.displayName = "Modal";
1188
- var ModalHeader = (0, import_react21.forwardRef)(
1384
+ var ModalHeader = (0, import_react23.forwardRef)(
1189
1385
  (_a, ref) => {
1190
1386
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1191
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1387
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1192
1388
  Component,
1193
1389
  __spreadValues({
1194
- className: (0, import_typed_classname24.clsx)("hds-modal__header", className),
1390
+ className: (0, import_typed_classname26.clsx)("hds-modal__header", className),
1195
1391
  ref
1196
1392
  }, rest)
1197
1393
  );
1198
1394
  }
1199
1395
  );
1200
1396
  ModalHeader.displayName = "Modal.Header";
1201
- var ModalContent = (0, import_react21.forwardRef)(
1397
+ var ModalContent = (0, import_react23.forwardRef)(
1202
1398
  (_a, ref) => {
1203
1399
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1204
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1400
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1205
1401
  Component,
1206
1402
  __spreadValues({
1207
- className: (0, import_typed_classname24.clsx)("hds-modal__content", className),
1403
+ className: (0, import_typed_classname26.clsx)("hds-modal__content", className),
1208
1404
  ref
1209
1405
  }, rest)
1210
1406
  );
1211
1407
  }
1212
1408
  );
1213
1409
  ModalContent.displayName = "Modal.Content";
1214
- var ModalFooter = (0, import_react21.forwardRef)(
1410
+ var ModalFooter = (0, import_react23.forwardRef)(
1215
1411
  (_a, ref) => {
1216
1412
  var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1217
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1413
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1218
1414
  Component,
1219
1415
  __spreadValues({
1220
- className: (0, import_typed_classname24.clsx)("hds-modal__footer", className),
1416
+ className: (0, import_typed_classname26.clsx)("hds-modal__footer", className),
1221
1417
  ref
1222
1418
  }, rest)
1223
1419
  );
@@ -1225,7 +1421,7 @@ var ModalFooter = (0, import_react21.forwardRef)(
1225
1421
  );
1226
1422
  ModalFooter.displayName = "Modal.Footer";
1227
1423
  function useScrollLock(modalRef, bodyClass) {
1228
- (0, import_react21.useEffect)(() => {
1424
+ (0, import_react23.useEffect)(() => {
1229
1425
  if (!modalRef.current)
1230
1426
  return;
1231
1427
  if (modalRef.current.open)
@@ -1255,17 +1451,17 @@ ModalComponent.Content = ModalContent;
1255
1451
  ModalComponent.Footer = ModalFooter;
1256
1452
 
1257
1453
  // src/navbar/navbar.tsx
1258
- var import_react22 = require("react");
1259
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1260
- var import_react_slot = require("@radix-ui/react-slot");
1261
- var import_jsx_runtime26 = require("react/jsx-runtime");
1262
- var Navbar = (0, import_react22.forwardRef)(
1454
+ var import_react24 = require("react");
1455
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1456
+ var import_react_slot3 = require("@radix-ui/react-slot");
1457
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1458
+ var Navbar = (0, import_react24.forwardRef)(
1263
1459
  (_a, ref) => {
1264
1460
  var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
1265
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1266
1462
  "header",
1267
1463
  __spreadProps(__spreadValues({
1268
- className: (0, import_typed_classname25.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
1464
+ className: (0, import_typed_classname27.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
1269
1465
  ref
1270
1466
  }, rest), {
1271
1467
  children
@@ -1274,22 +1470,22 @@ var Navbar = (0, import_react22.forwardRef)(
1274
1470
  }
1275
1471
  );
1276
1472
  Navbar.displayName = "Navbar";
1277
- var NavbarLogo = (0, import_react22.forwardRef)(
1473
+ var NavbarLogo = (0, import_react24.forwardRef)(
1278
1474
  (_a, ref) => {
1279
1475
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1280
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Component, __spreadValues({ className: (0, import_typed_classname25.clsx)("hds-navbar__logo", className), ref }, rest));
1476
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Component, __spreadValues({ className: (0, import_typed_classname27.clsx)("hds-navbar__logo", className), ref }, rest));
1281
1477
  }
1282
1478
  );
1283
1479
  NavbarLogo.displayName = "Navbar.Logo";
1284
- var NavbarLogoAndServiceText = (0, import_react22.forwardRef)(
1480
+ var NavbarLogoAndServiceText = (0, import_react24.forwardRef)(
1285
1481
  (_a, ref) => {
1286
1482
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
1287
- const Component = asChild ? import_react_slot.Slot : "div";
1288
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1483
+ const Component = asChild ? import_react_slot3.Slot : "div";
1484
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1289
1485
  Component,
1290
1486
  __spreadProps(__spreadValues({
1291
1487
  ref,
1292
- className: (0, import_typed_classname25.clsx)(
1488
+ className: (0, import_typed_classname27.clsx)(
1293
1489
  "hds-navbar__logo-and-service-text",
1294
1490
  `hds-navbar__logo-and-service-text--${variant}`,
1295
1491
  className
@@ -1301,10 +1497,10 @@ var NavbarLogoAndServiceText = (0, import_react22.forwardRef)(
1301
1497
  }
1302
1498
  );
1303
1499
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
1304
- var NavbarButton = (0, import_react22.forwardRef)(
1500
+ var NavbarButton = (0, import_react24.forwardRef)(
1305
1501
  (_a, ref) => {
1306
1502
  var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
1307
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname25.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1503
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname27.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1308
1504
  children,
1309
1505
  " ",
1310
1506
  icon
@@ -1312,12 +1508,12 @@ var NavbarButton = (0, import_react22.forwardRef)(
1312
1508
  }
1313
1509
  );
1314
1510
  NavbarButton.displayName = "Navbar.Button";
1315
- var NavbarNavigation = (0, import_react22.forwardRef)((_a, ref) => {
1511
+ var NavbarNavigation = (0, import_react24.forwardRef)((_a, ref) => {
1316
1512
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1317
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1513
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1318
1514
  Component,
1319
1515
  __spreadValues({
1320
- className: (0, import_typed_classname25.clsx)("hds-navbar__navigation", className),
1516
+ className: (0, import_typed_classname27.clsx)("hds-navbar__navigation", className),
1321
1517
  ref
1322
1518
  }, rest)
1323
1519
  );
@@ -1325,15 +1521,15 @@ var NavbarNavigation = (0, import_react22.forwardRef)((_a, ref) => {
1325
1521
  NavbarNavigation.displayName = "Navbar.Navigation";
1326
1522
 
1327
1523
  // src/navbar/navbar-expandable-menu.tsx
1328
- var import_react23 = require("react");
1524
+ var import_react25 = require("react");
1329
1525
  var import_client = require("react-dom/client");
1330
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1526
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1331
1527
  var import_focus_trap_react = __toESM(require("focus-trap-react"));
1332
1528
 
1333
1529
  // src/navbar/icons.tsx
1334
- var import_jsx_runtime27 = require("react/jsx-runtime");
1530
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1335
1531
  function CloseIcon() {
1336
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("svg", { "aria-hidden": true, viewBox: "0 0 384 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1532
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { "aria-hidden": true, viewBox: "0 0 384 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1337
1533
  "path",
1338
1534
  {
1339
1535
  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",
@@ -1342,7 +1538,7 @@ function CloseIcon() {
1342
1538
  ) });
1343
1539
  }
1344
1540
  function MenuIcon() {
1345
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("svg", { role: "img", viewBox: "0 0 448 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1541
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { role: "img", viewBox: "0 0 448 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1346
1542
  "path",
1347
1543
  {
1348
1544
  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",
@@ -1352,27 +1548,28 @@ function MenuIcon() {
1352
1548
  }
1353
1549
 
1354
1550
  // src/navbar/navbar-expandable-menu.tsx
1355
- var import_jsx_runtime28 = require("react/jsx-runtime");
1356
- var navbarContext = (0, import_react23.createContext)([
1551
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1552
+ var expandableMenuContext = (0, import_react25.createContext)([
1357
1553
  false,
1358
1554
  () => {
1359
1555
  }
1360
1556
  ]);
1557
+ var useNavbarExpendableMenuContext = () => (0, import_react25.useContext)(expandableMenuContext);
1361
1558
  function NavbarExpandableMenu({ children }) {
1362
- const [open, setOpen] = (0, import_react23.useState)(false);
1559
+ const [open, setOpen] = (0, import_react25.useState)(false);
1363
1560
  const toggleOpen = () => {
1364
1561
  const nextOpenState = !open;
1365
1562
  setOpen(nextOpenState);
1366
1563
  if (nextOpenState) {
1367
1564
  window.scrollTo(0, 0);
1368
- document.body.classList.add((0, import_typed_classname26.clsx)("hds-navbar-scroll-lock"));
1565
+ document.body.classList.add((0, import_typed_classname28.clsx)("hds-navbar-scroll-lock"));
1369
1566
  } else {
1370
- document.body.classList.remove((0, import_typed_classname26.clsx)("hds-navbar-scroll-lock"));
1567
+ document.body.classList.remove((0, import_typed_classname28.clsx)("hds-navbar-scroll-lock"));
1371
1568
  }
1372
1569
  };
1373
- const navbarElement = document.getElementsByClassName((0, import_typed_classname26.clsx)("hds-navbar"))[0];
1374
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(navbarContext.Provider, { value: [open, toggleOpen], children: [
1375
- open ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_focus_trap_react.default, { containerElements: [navbarElement] }) : null,
1570
+ const navbarElement = document.getElementsByClassName((0, import_typed_classname28.clsx)("hds-navbar"))[0];
1571
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(expandableMenuContext.Provider, { value: [open, toggleOpen], children: [
1572
+ open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_focus_trap_react.default, { containerElements: [navbarElement] }) : null,
1376
1573
  children
1377
1574
  ] });
1378
1575
  }
@@ -1397,12 +1594,12 @@ function RenderButton(_a) {
1397
1594
  "toggleOpen",
1398
1595
  "width"
1399
1596
  ]);
1400
- const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(MenuIcon, {});
1597
+ const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenuIcon, {});
1401
1598
  const style = width ? { width } : {};
1402
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1599
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1403
1600
  "button",
1404
1601
  __spreadProps(__spreadValues({
1405
- className: (0, import_typed_classname26.clsx)("hds-navbar__button", className),
1602
+ className: (0, import_typed_classname28.clsx)("hds-navbar__button", className),
1406
1603
  onClick: toggleOpen,
1407
1604
  ref: ref != null ? ref : innerRef,
1408
1605
  style,
@@ -1410,14 +1607,14 @@ function RenderButton(_a) {
1410
1607
  type: "button"
1411
1608
  }, rest), {
1412
1609
  children: [
1413
- text,
1610
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: (0, import_typed_classname28.clsx)("hds-navbar__button-responsive-text"), children: text }),
1414
1611
  " ",
1415
1612
  icon
1416
1613
  ]
1417
1614
  })
1418
1615
  );
1419
1616
  }
1420
- var NavbarExpandableMenuTrigger = (0, import_react23.forwardRef)(
1617
+ var NavbarExpandableMenuTrigger = (0, import_react25.forwardRef)(
1421
1618
  (_a, ref) => {
1422
1619
  var _b = _a, {
1423
1620
  whenClosedText,
@@ -1432,9 +1629,9 @@ var NavbarExpandableMenuTrigger = (0, import_react23.forwardRef)(
1432
1629
  "whenOpenHelperTitle",
1433
1630
  "className"
1434
1631
  ]);
1435
- const [open, toggleOpen] = (0, import_react23.useContext)(navbarContext);
1436
- const [width, setWidth] = (0, import_react23.useState)(0);
1437
- const measureButtonRef = (0, import_react23.useRef)(null);
1632
+ const [open, toggleOpen] = useNavbarExpendableMenuContext();
1633
+ const [width, setWidth] = (0, import_react25.useState)(0);
1634
+ const measureButtonRef = (0, import_react25.useRef)(null);
1438
1635
  const text = open ? whenOpenText : whenClosedText;
1439
1636
  const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
1440
1637
  const measureButton = (element, callback) => {
@@ -1452,9 +1649,9 @@ var NavbarExpandableMenuTrigger = (0, import_react23.forwardRef)(
1452
1649
  };
1453
1650
  setTimeout(getWidth, 0);
1454
1651
  };
1455
- (0, import_react23.useEffect)(() => {
1652
+ (0, import_react25.useEffect)(() => {
1456
1653
  measureButton(
1457
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1654
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1458
1655
  RenderButton,
1459
1656
  __spreadValues({
1460
1657
  className: className ? className : "",
@@ -1465,7 +1662,7 @@ var NavbarExpandableMenuTrigger = (0, import_react23.forwardRef)(
1465
1662
  ),
1466
1663
  (closedWidth) => {
1467
1664
  measureButton(
1468
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1665
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1469
1666
  RenderButton,
1470
1667
  __spreadValues({
1471
1668
  className: className ? className : "",
@@ -1482,7 +1679,7 @@ var NavbarExpandableMenuTrigger = (0, import_react23.forwardRef)(
1482
1679
  }
1483
1680
  );
1484
1681
  }, [className, rest, title, whenClosedText, whenOpenText]);
1485
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1682
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1486
1683
  RenderButton,
1487
1684
  __spreadValues({
1488
1685
  className: className ? className : "",
@@ -1497,16 +1694,17 @@ var NavbarExpandableMenuTrigger = (0, import_react23.forwardRef)(
1497
1694
  }
1498
1695
  );
1499
1696
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenu.Trigger";
1500
- var NavbarExpandableMenuContent = (0, import_react23.forwardRef)((_a, ref) => {
1697
+ var NavbarExpandableMenuContent = (0, import_react25.forwardRef)((_a, ref) => {
1501
1698
  var _b = _a, { as: Component = "section", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
1502
- const [open] = (0, import_react23.useContext)(navbarContext);
1503
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1699
+ const [open] = useNavbarExpendableMenuContext();
1700
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1504
1701
  Component,
1505
1702
  __spreadProps(__spreadValues({}, rest), {
1506
- className: (0, import_typed_classname26.clsx)("hds-navbar__expandable-menu-content", className),
1703
+ className: (0, import_typed_classname28.clsx)("hds-navbar__expandable-menu-content", className),
1507
1704
  "data-state": open ? "open" : "closed",
1705
+ inert: open ? void 0 : "true",
1508
1706
  ref,
1509
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: (0, import_typed_classname26.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1707
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: (0, import_typed_classname28.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1510
1708
  })
1511
1709
  );
1512
1710
  });
@@ -1524,15 +1722,15 @@ NavbarComponent.Button = NavbarButton;
1524
1722
  NavbarComponent.Navigation = NavbarNavigation;
1525
1723
 
1526
1724
  // src/utilities/auto-animate-height.tsx
1527
- var import_react24 = require("react");
1725
+ var import_react26 = require("react");
1528
1726
  var import_react_dom = require("react-dom");
1529
- var import_jsx_runtime29 = require("react/jsx-runtime");
1727
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1530
1728
  var animationDurationToValue = {
1531
1729
  quick: 100,
1532
1730
  normal: 300,
1533
1731
  slow: 700
1534
1732
  };
1535
- var AutoAnimateHeight = (0, import_react24.forwardRef)(
1733
+ var AutoAnimateHeight = (0, import_react26.forwardRef)(
1536
1734
  (_a, ref) => {
1537
1735
  var _b = _a, {
1538
1736
  as: Component = "div",
@@ -1547,13 +1745,13 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1547
1745
  "animationDuration",
1548
1746
  "animationEasing"
1549
1747
  ]);
1550
- const timeoutRef = (0, import_react24.useRef)(null);
1551
- const measurementRef = (0, import_react24.useRef)(null);
1552
- const [height, setHeight] = (0, import_react24.useState)(void 0);
1553
- const [clonedChildren, setClonedChildren] = (0, import_react24.useState)(
1554
- () => (0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children }), {})
1748
+ const timeoutRef = (0, import_react26.useRef)(null);
1749
+ const measurementRef = (0, import_react26.useRef)(null);
1750
+ const [height, setHeight] = (0, import_react26.useState)(void 0);
1751
+ const [clonedChildren, setClonedChildren] = (0, import_react26.useState)(
1752
+ () => (0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children }), {})
1555
1753
  );
1556
- (0, import_react24.useEffect)(() => {
1754
+ (0, import_react26.useEffect)(() => {
1557
1755
  if (measurementRef.current) {
1558
1756
  const { height: newHeight } = measurementRef.current.getBoundingClientRect();
1559
1757
  if (timeoutRef.current) {
@@ -1565,16 +1763,16 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1565
1763
  setHeight(newHeight);
1566
1764
  });
1567
1765
  timeoutRef.current = setTimeout(() => {
1568
- setClonedChildren((0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children }), {}));
1766
+ setClonedChildren((0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children }), {}));
1569
1767
  }, animationDurationToValue[animationDuration]);
1570
1768
  });
1571
1769
  } else {
1572
1770
  setHeight(newHeight);
1573
- setClonedChildren((0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children }), {}));
1771
+ setClonedChildren((0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children }), {}));
1574
1772
  }
1575
1773
  }
1576
1774
  }, [children]);
1577
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1775
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1578
1776
  Component,
1579
1777
  __spreadProps(__spreadValues({
1580
1778
  ref,
@@ -1588,7 +1786,7 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1588
1786
  }, style)
1589
1787
  }, rest), {
1590
1788
  children: [
1591
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1789
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1592
1790
  "div",
1593
1791
  {
1594
1792
  "aria-hidden": true,
@@ -1609,17 +1807,17 @@ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1609
1807
  AutoAnimateHeight.displayName = "AutoAnimateHeight";
1610
1808
 
1611
1809
  // src/show-more/show-more.tsx
1612
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1613
- var import_react25 = require("react");
1614
- var import_jsx_runtime30 = require("react/jsx-runtime");
1615
- var ShowMoreButton = (0, import_react25.forwardRef)(
1810
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1811
+ var import_react27 = require("react");
1812
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1813
+ var ShowMoreButton = (0, import_react27.forwardRef)(
1616
1814
  (_a, ref) => {
1617
1815
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
1618
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1816
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1619
1817
  "button",
1620
1818
  __spreadProps(__spreadValues({
1621
1819
  ref,
1622
- className: (0, import_typed_classname27.clsx)(
1820
+ className: (0, import_typed_classname29.clsx)(
1623
1821
  "hds-show-more",
1624
1822
  variant === "show-more-show-less" && "hds-show-more--show-less",
1625
1823
  className
@@ -1629,7 +1827,7 @@ var ShowMoreButton = (0, import_react25.forwardRef)(
1629
1827
  }, rest), {
1630
1828
  children: [
1631
1829
  text,
1632
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: (0, import_typed_classname27.clsx)("hds-show-more__icon") })
1830
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: (0, import_typed_classname29.clsx)("hds-show-more__icon") })
1633
1831
  ]
1634
1832
  })
1635
1833
  );
@@ -1638,16 +1836,16 @@ var ShowMoreButton = (0, import_react25.forwardRef)(
1638
1836
  ShowMoreButton.displayName = "ShowMoreButton";
1639
1837
 
1640
1838
  // src/skeleton/skeleton.tsx
1641
- var React11 = require("react");
1642
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1643
- var import_react26 = require("react");
1644
- var import_jsx_runtime31 = require("react/jsx-runtime");
1645
- var Skeleton = (0, import_react26.forwardRef)(
1839
+ var React10 = require("react");
1840
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1841
+ var import_react28 = require("react");
1842
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1843
+ var Skeleton = (0, import_react28.forwardRef)(
1646
1844
  (_a, ref) => {
1647
1845
  var _b = _a, {
1648
1846
  as: Component = "div",
1649
1847
  children,
1650
- animation,
1848
+ animation = true,
1651
1849
  variant = "text",
1652
1850
  width,
1653
1851
  height,
@@ -1663,10 +1861,10 @@ var Skeleton = (0, import_react26.forwardRef)(
1663
1861
  "className",
1664
1862
  "style"
1665
1863
  ]);
1666
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1864
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1667
1865
  Component,
1668
1866
  __spreadProps(__spreadValues({
1669
- className: (0, import_typed_classname28.clsx)(
1867
+ className: (0, import_typed_classname30.clsx)(
1670
1868
  "hds-skeleton",
1671
1869
  `hds-skeleton--${variant}`,
1672
1870
  !animation && `hds-skeleton--no-animation`,
@@ -1684,10 +1882,10 @@ var Skeleton = (0, import_react26.forwardRef)(
1684
1882
  Skeleton.displayName = "Skeleton";
1685
1883
 
1686
1884
  // src/step-indicator/step-indicator.tsx
1687
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1688
- var import_react27 = require("react");
1689
- var import_jsx_runtime32 = require("react/jsx-runtime");
1690
- var StepIndicator = (0, import_react27.forwardRef)(
1885
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1886
+ var import_react29 = require("react");
1887
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1888
+ var StepIndicator = (0, import_react29.forwardRef)(
1691
1889
  (_a, ref) => {
1692
1890
  var _b = _a, {
1693
1891
  activeStep,
@@ -1706,27 +1904,27 @@ var StepIndicator = (0, import_react27.forwardRef)(
1706
1904
  "title",
1707
1905
  "titleAs"
1708
1906
  ]);
1709
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1907
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1710
1908
  "div",
1711
1909
  __spreadProps(__spreadValues({
1712
1910
  ref,
1713
- className: (0, import_typed_classname29.clsx)("hds-step-indicator", className),
1911
+ className: (0, import_typed_classname31.clsx)("hds-step-indicator", className),
1714
1912
  lang
1715
1913
  }, rest), {
1716
1914
  children: [
1717
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_typed_classname29.clsx)("hds-step-indicator__header"), children: [
1718
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: (0, import_typed_classname29.clsx)("hds-step-indicator__left-label"), children: label }),
1719
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
1915
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: (0, import_typed_classname31.clsx)("hds-step-indicator__header"), children: [
1916
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: (0, import_typed_classname31.clsx)("hds-step-indicator__left-label"), children: label }),
1917
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
1720
1918
  ] }),
1721
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: (0, import_typed_classname29.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1919
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: (0, import_typed_classname31.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1722
1920
  "div",
1723
1921
  {
1724
- className: (0, import_typed_classname29.clsx)("hds-step-indicator__step"),
1922
+ className: (0, import_typed_classname31.clsx)("hds-step-indicator__step"),
1725
1923
  "data-state": getStepState(i + 1, activeStep)
1726
1924
  },
1727
1925
  i
1728
1926
  )) }),
1729
- title ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TitleComponent, { className: (0, import_typed_classname29.clsx)("hds-step-indicator__title"), children: title }) : null
1927
+ title ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TitleComponent, { className: (0, import_typed_classname31.clsx)("hds-step-indicator__title"), children: title }) : null
1730
1928
  ]
1731
1929
  })
1732
1930
  );
@@ -1750,16 +1948,16 @@ function getStepState(renderedStep, activeStep) {
1750
1948
  }
1751
1949
 
1752
1950
  // src/styled-html/styled-html.tsx
1753
- var import_react28 = require("react");
1754
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1755
- var import_jsx_runtime33 = require("react/jsx-runtime");
1756
- var StyledHtml = (0, import_react28.forwardRef)(
1951
+ var import_react30 = require("react");
1952
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1953
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1954
+ var StyledHtml = (0, import_react30.forwardRef)(
1757
1955
  (_a, ref) => {
1758
1956
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
1759
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1957
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1760
1958
  Component,
1761
1959
  __spreadProps(__spreadValues({
1762
- className: (0, import_typed_classname30.clsx)(
1960
+ className: (0, import_typed_classname32.clsx)(
1763
1961
  `hds-styled-html`,
1764
1962
  size === "small" && "hds-styled-html--small",
1765
1963
  darkmode && "hds-styled-html--darkmode",
@@ -1775,56 +1973,80 @@ var StyledHtml = (0, import_react28.forwardRef)(
1775
1973
  StyledHtml.displayName = "StyledHtml";
1776
1974
 
1777
1975
  // src/tabs/tabs.tsx
1778
- var import_react30 = require("react");
1779
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1976
+ var import_react32 = require("react");
1977
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1780
1978
 
1781
1979
  // src/tabs/context.ts
1782
- var import_react29 = require("react");
1783
- var TabsContext = (0, import_react29.createContext)({
1784
- mounted: false,
1785
- activeTabId: void 0,
1786
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
1787
- toggleActiveTabId: (tabId) => {
1980
+ var import_react31 = require("react");
1981
+ var TabsContext = (0, import_react31.createContext)(null);
1982
+ function useTabsContext() {
1983
+ const context = (0, import_react31.useContext)(TabsContext);
1984
+ if (!context) {
1985
+ throw new Error(
1986
+ "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
1987
+ );
1788
1988
  }
1789
- });
1989
+ return context;
1990
+ }
1790
1991
 
1791
1992
  // src/tabs/tabs.tsx
1792
- var import_jsx_runtime34 = require("react/jsx-runtime");
1793
- var Tabs = (0, import_react30.forwardRef)(
1993
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1994
+ var Tabs = (0, import_react32.forwardRef)(
1794
1995
  (_a, ref) => {
1795
1996
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1796
- const [activeTabId, setActiveTabId] = (0, import_react30.useState)(defaultTab);
1797
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname31.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1798
- TabsContext.Provider,
1799
- {
1800
- value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
1801
- children
1802
- }
1803
- ) }));
1997
+ const [activeTabId, setActiveTabId] = (0, import_react32.useState)(defaultTab);
1998
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
1804
1999
  }
1805
2000
  );
1806
2001
  Tabs.displayName = "Tabs";
1807
2002
 
1808
2003
  // src/tabs/tabs-list.tsx
1809
- var import_react31 = require("react");
1810
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1811
- var import_jsx_runtime35 = require("react/jsx-runtime");
2004
+ var import_react33 = require("react");
2005
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2006
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1812
2007
  function TabsList(_a) {
1813
2008
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1814
- const tabsListRef = (0, import_react31.useRef)(null);
2009
+ const { activeTabId } = useTabsContext();
2010
+ const tabsListRef = (0, import_react33.useRef)(null);
1815
2011
  const { width: tabsWidth } = useResize(tabsListRef);
1816
2012
  const { innerWidth } = window;
1817
2013
  const wideEnough = innerWidth >= tabsWidth;
1818
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2014
+ const previousTabId = (0, import_react33.useRef)(activeTabId);
2015
+ (0, import_react33.useEffect)(() => {
2016
+ const tabList = tabsListRef.current;
2017
+ const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2018
+ if (!activeTab || !tabList)
2019
+ return;
2020
+ const { offsetHeight: containerHeight, offsetWidth: containerWidth } = tabList;
2021
+ const { offsetHeight, offsetWidth, offsetTop, offsetLeft } = activeTab;
2022
+ const height = offsetHeight / containerHeight;
2023
+ const width = offsetWidth / containerWidth;
2024
+ tabsListRef.current.style.setProperty("--_hds-tabs-marker-height", String(height));
2025
+ tabsListRef.current.style.setProperty("--_hds-tabs-marker-width", String(width));
2026
+ tabsListRef.current.style.setProperty("--_hds-tabs-marker-top", `${offsetTop}px`);
2027
+ tabsListRef.current.style.setProperty("--_hds-tabs-marker-left", `${offsetLeft}px`);
2028
+ if (previousTabId.current !== activeTabId) {
2029
+ tabsListRef.current.style.setProperty(
2030
+ "--_hds-tabs-marker-animated-color",
2031
+ "var(--_hds-tabs-marker-color)"
2032
+ );
2033
+ tabsListRef.current.style.setProperty(
2034
+ "--_hds-tabs-marker-border-fallback-color",
2035
+ "transparent"
2036
+ );
2037
+ }
2038
+ previousTabId.current = activeTabId;
2039
+ }, [activeTabId, innerWidth]);
2040
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1819
2041
  "div",
1820
2042
  __spreadProps(__spreadValues({
1821
- className: (0, import_typed_classname32.clsx)(
1822
- "hds-tabs--list",
2043
+ className: (0, import_typed_classname34.clsx)(
2044
+ "hds-tabs__list",
1823
2045
  direction === "horizontal" ? {
1824
- [`hds-tabs--list-horizontal`]: wideEnough,
1825
- "hds-tabs--list-vertical": !wideEnough
2046
+ "hds-tabs__list--horizontal": wideEnough,
2047
+ "hds-tabs__list--vertical": !wideEnough
1826
2048
  } : {
1827
- "hds-tabs--list-vertical": true
2049
+ "hds-tabs__list--vertical": true
1828
2050
  },
1829
2051
  className
1830
2052
  ),
@@ -1836,24 +2058,21 @@ function TabsList(_a) {
1836
2058
  );
1837
2059
  }
1838
2060
  TabsList.displayName = "Tabs.List";
1839
- var Tab = (0, import_react31.forwardRef)(
2061
+ var TabsTab = (0, import_react33.forwardRef)(
1840
2062
  (_a, ref) => {
1841
2063
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
1842
- const context = (0, import_react31.useContext)(TabsContext);
1843
- if (!context.mounted) {
1844
- throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1845
- }
2064
+ const context = useTabsContext();
1846
2065
  const toggleTab = (e) => {
1847
2066
  e.preventDefault();
1848
2067
  context.toggleActiveTabId(tabId);
1849
2068
  onClick && onClick(e);
1850
2069
  };
1851
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2070
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1852
2071
  Component,
1853
2072
  __spreadProps(__spreadValues({
1854
- className: (0, import_typed_classname32.clsx)(
1855
- "hds-tabs--tab",
1856
- { "hds-tabs--tab-active": context.activeTabId === tabId },
2073
+ className: (0, import_typed_classname34.clsx)(
2074
+ "hds-tabs__tab",
2075
+ { "hds-tabs__tab--active": context.activeTabId === tabId },
1857
2076
  className
1858
2077
  ),
1859
2078
  "data-tabid": tabId,
@@ -1866,26 +2085,23 @@ var Tab = (0, import_react31.forwardRef)(
1866
2085
  );
1867
2086
  }
1868
2087
  );
1869
- Tab.displayName = "Tabs.Tab";
2088
+ TabsTab.displayName = "Tabs.Tab";
1870
2089
 
1871
2090
  // src/tabs/tabs-content.tsx
1872
- var import_react32 = require("react");
1873
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1874
- var import_jsx_runtime36 = require("react/jsx-runtime");
2091
+ var import_react34 = require("react");
2092
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2093
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1875
2094
  function TabsContents(_a) {
1876
2095
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1877
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-tabs--contents") }, rest), { children }));
2096
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)("hds-tabs__contents") }, rest), { children }));
1878
2097
  }
1879
2098
  TabsContents.displayName = "Tabs.Contents";
1880
- var TabsContent = (0, import_react32.forwardRef)(
2099
+ var TabsContent = (0, import_react34.forwardRef)(
1881
2100
  (_a, ref) => {
1882
2101
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1883
- const context = (0, import_react32.useContext)(TabsContext);
1884
- if (!context.mounted) {
1885
- throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1886
- }
2102
+ const context = useTabsContext();
1887
2103
  if (context.activeTabId === forTabId) {
1888
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2104
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1889
2105
  }
1890
2106
  return null;
1891
2107
  }
@@ -1895,14 +2111,14 @@ TabsContent.displayName = "Tabs.Content";
1895
2111
  // src/tabs/index.tsx
1896
2112
  var TabsComponent = Tabs;
1897
2113
  TabsComponent.List = TabsList;
1898
- TabsComponent.Tab = Tab;
2114
+ TabsComponent.Tab = TabsTab;
1899
2115
  TabsComponent.Contents = TabsContents;
1900
2116
  TabsComponent.Content = TabsContent;
1901
2117
 
1902
2118
  // src/text/text.tsx
1903
- var import_react33 = require("react");
1904
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1905
- var import_jsx_runtime37 = require("react/jsx-runtime");
2119
+ var import_react35 = require("react");
2120
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2121
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1906
2122
  var defaultHTMLTag = {
1907
2123
  "h1-display": "h1",
1908
2124
  h1: "h1",
@@ -1918,7 +2134,7 @@ var defaultHTMLTag = {
1918
2134
  caption: "p",
1919
2135
  "caption-title": "p"
1920
2136
  };
1921
- var Text = (0, import_react33.forwardRef)(
2137
+ var Text = (0, import_react35.forwardRef)(
1922
2138
  (_a, ref) => {
1923
2139
  var _b = _a, {
1924
2140
  as,
@@ -1937,10 +2153,10 @@ var Text = (0, import_react33.forwardRef)(
1937
2153
  ]);
1938
2154
  const Component = as != null ? as : defaultHTMLTag[variant];
1939
2155
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
1940
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2156
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1941
2157
  Component,
1942
2158
  __spreadProps(__spreadValues({
1943
- className: (0, import_typed_classname34.clsx)(
2159
+ className: (0, import_typed_classname36.clsx)(
1944
2160
  `hds-text-${variant}`,
1945
2161
  sizeModifier && `hds-text--${sizeModifier}`,
1946
2162
  spacing && "hds-text--spacing",
@@ -1956,7 +2172,7 @@ var Text = (0, import_react33.forwardRef)(
1956
2172
  Text.displayName = "Text";
1957
2173
 
1958
2174
  // src/text/index.tsx
1959
- var import_jsx_runtime38 = require("react/jsx-runtime");
2175
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1960
2176
  var TextH1Display = textVariant("h1-display", "TextH1Display");
1961
2177
  var TextH1 = textVariant("h1", "TextH1");
1962
2178
  var TextH2 = textVariant("h2", "TextH2");
@@ -1987,28 +2203,28 @@ var variantToHtmlTag = {
1987
2203
  };
1988
2204
  function textVariant(variant, displayName) {
1989
2205
  function WrappedText(props) {
1990
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
2206
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
1991
2207
  }
1992
2208
  WrappedText.displayName = displayName;
1993
2209
  return WrappedText;
1994
2210
  }
1995
2211
 
1996
2212
  // src/warning-banner/warning-banner.tsx
1997
- var import_react34 = require("react");
1998
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
1999
- var import_jsx_runtime39 = require("react/jsx-runtime");
2000
- var WarningBanner = (0, import_react34.forwardRef)(
2213
+ var import_react36 = require("react");
2214
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2215
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2216
+ var WarningBanner = (0, import_react36.forwardRef)(
2001
2217
  (_a, ref) => {
2002
2218
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2003
2219
  const expandable = !!description;
2004
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname35.clsx)("hds-warning-banner", className), ref, children: [
2005
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
2006
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(WarningBannerDescription, { children: description }) : null
2220
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname37.clsx)("hds-warning-banner", className), ref, children: [
2221
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
2222
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(WarningBannerDescription, { children: description }) : null
2007
2223
  ] }));
2008
2224
  }
2009
2225
  );
2010
2226
  WarningBanner.displayName = "WarningBanner";
2011
- var WarningBannerTitle = (0, import_react34.forwardRef)(
2227
+ var WarningBannerTitle = (0, import_react36.forwardRef)(
2012
2228
  (_a, ref) => {
2013
2229
  var _b = _a, {
2014
2230
  variant,
@@ -2021,12 +2237,12 @@ var WarningBannerTitle = (0, import_react34.forwardRef)(
2021
2237
  "children",
2022
2238
  "className"
2023
2239
  ]);
2024
- const [open, setOpen] = (0, import_react34.useState)(false);
2240
+ const [open, setOpen] = (0, import_react36.useState)(false);
2025
2241
  if (variant === "expandable") {
2026
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2242
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2027
2243
  Component,
2028
2244
  __spreadProps(__spreadValues({
2029
- className: (0, import_typed_classname35.clsx)(
2245
+ className: (0, import_typed_classname37.clsx)(
2030
2246
  "hds-warning-banner__title",
2031
2247
  "hds-warning-banner__title-trigger",
2032
2248
  { "hds-warning-banner--closed": !open },
@@ -2038,14 +2254,14 @@ var WarningBannerTitle = (0, import_react34.forwardRef)(
2038
2254
  ref,
2039
2255
  type: "button"
2040
2256
  }, rest), {
2041
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children })
2257
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children })
2042
2258
  })
2043
2259
  );
2044
2260
  }
2045
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2261
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2046
2262
  Component,
2047
2263
  __spreadProps(__spreadValues({
2048
- className: (0, import_typed_classname35.clsx)("hds-warning-banner__title", className),
2264
+ className: (0, import_typed_classname37.clsx)("hds-warning-banner__title", className),
2049
2265
  ref
2050
2266
  }, rest), {
2051
2267
  children
@@ -2054,13 +2270,13 @@ var WarningBannerTitle = (0, import_react34.forwardRef)(
2054
2270
  }
2055
2271
  );
2056
2272
  WarningBannerTitle.displayName = "WarningBannerTitle";
2057
- var WarningBannerDescription = (0, import_react34.forwardRef)(
2273
+ var WarningBannerDescription = (0, import_react36.forwardRef)(
2058
2274
  (_a, ref) => {
2059
2275
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
2060
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2276
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2061
2277
  Component,
2062
2278
  __spreadValues({
2063
- className: (0, import_typed_classname35.clsx)("hds-warning-banner__description", className),
2279
+ className: (0, import_typed_classname37.clsx)("hds-warning-banner__description", className),
2064
2280
  ref
2065
2281
  }, rest)
2066
2282
  );
@@ -2081,6 +2297,8 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2081
2297
  DescriptionList,
2082
2298
  ErrorMessage,
2083
2299
  Fieldset,
2300
+ Footer,
2301
+ HStack,
2084
2302
  Input,
2085
2303
  Link,
2086
2304
  LinkList,
@@ -2095,9 +2313,14 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2095
2313
  Select,
2096
2314
  ShowMoreButton,
2097
2315
  Skeleton,
2316
+ Stack,
2098
2317
  StepIndicator,
2099
2318
  StyledHtml,
2100
2319
  Tabs,
2320
+ TabsContent,
2321
+ TabsContents,
2322
+ TabsList,
2323
+ TabsTab,
2101
2324
  Text,
2102
2325
  TextBody,
2103
2326
  TextBodySmall,
@@ -2114,8 +2337,12 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2114
2337
  TextTechnicalTitle,
2115
2338
  Textarea,
2116
2339
  UnorderedList,
2340
+ VStack,
2117
2341
  WarningBadge,
2118
2342
  WarningBanner,
2119
- WhiteBadge
2343
+ WhiteBadge,
2344
+ useFieldsetContext,
2345
+ useNavbarExpendableMenuContext,
2346
+ useRadioGroupContext
2120
2347
  });
2121
2348
  //# sourceMappingURL=index.js.map