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