@postenbring/hedwig-react 2.2.0 → 2.2.1

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 (116) hide show
  1. package/dist/accordion/accordion-content.d.ts.map +1 -1
  2. package/dist/accordion/accordion-content.js +22 -6
  3. package/dist/accordion/accordion-content.js.map +1 -1
  4. package/dist/accordion/accordion-content.mjs +4 -1
  5. package/dist/accordion/accordion.js +24 -6
  6. package/dist/accordion/accordion.js.map +1 -1
  7. package/dist/accordion/accordion.mjs +5 -2
  8. package/dist/accordion/index.js +24 -6
  9. package/dist/accordion/index.js.map +1 -1
  10. package/dist/accordion/index.mjs +5 -2
  11. package/dist/{chunk-GVO57ZWU.mjs → chunk-23IZCRJA.mjs} +2 -2
  12. package/dist/{chunk-KNGG6M2I.mjs → chunk-5RXT5GLF.mjs} +2 -2
  13. package/dist/{chunk-ILFK3VKS.mjs → chunk-77M2ZTP7.mjs} +6 -3
  14. package/dist/chunk-77M2ZTP7.mjs.map +1 -0
  15. package/dist/{chunk-5FWY7FIX.mjs → chunk-AGIY7SFP.mjs} +5 -2
  16. package/dist/chunk-AGIY7SFP.mjs.map +1 -0
  17. package/dist/{chunk-WLESNP6Z.mjs → chunk-B6T36QDV.mjs} +5 -2
  18. package/dist/chunk-B6T36QDV.mjs.map +1 -0
  19. package/dist/{chunk-GXIKHXWC.mjs → chunk-EQFY63YP.mjs} +2 -2
  20. package/dist/{chunk-KCEWKQ4W.mjs → chunk-GYI4NCUY.mjs} +2 -2
  21. package/dist/{chunk-J5SCUELT.mjs → chunk-HBGFFKP3.mjs} +2 -2
  22. package/dist/{chunk-4C76JM3T.mjs → chunk-I4NL4ESV.mjs} +2 -2
  23. package/dist/{chunk-DTU7AXY3.mjs → chunk-NUP7ZBVE.mjs} +2 -2
  24. package/dist/{chunk-CKG2XRMX.mjs → chunk-R6MQFVHE.mjs} +2 -2
  25. package/dist/{chunk-DRSAVDIE.mjs → chunk-W6CFPK2C.mjs} +5 -4
  26. package/dist/chunk-W6CFPK2C.mjs.map +1 -0
  27. package/dist/{chunk-ZSYBCM2L.mjs → chunk-W7CPW23K.mjs} +27 -18
  28. package/dist/chunk-W7CPW23K.mjs.map +1 -0
  29. package/dist/footer/footer.js +37 -19
  30. package/dist/footer/footer.js.map +1 -1
  31. package/dist/footer/footer.mjs +6 -3
  32. package/dist/footer/index.js +37 -19
  33. package/dist/footer/index.js.map +1 -1
  34. package/dist/footer/index.mjs +6 -3
  35. package/dist/form/date-picker/date-picker.js +1 -0
  36. package/dist/form/date-picker/date-picker.js.map +1 -1
  37. package/dist/form/date-picker/date-picker.mjs +2 -2
  38. package/dist/form/date-picker/index.js +1 -0
  39. package/dist/form/date-picker/index.js.map +1 -1
  40. package/dist/form/date-picker/index.mjs +2 -2
  41. package/dist/form/error-summary/error-summary.d.ts +5 -5
  42. package/dist/form/error-summary/error-summary.d.ts.map +1 -1
  43. package/dist/form/error-summary/error-summary.js +47 -93
  44. package/dist/form/error-summary/error-summary.js.map +1 -1
  45. package/dist/form/error-summary/error-summary.mjs +5 -6
  46. package/dist/form/error-summary/index.js +47 -93
  47. package/dist/form/error-summary/index.js.map +1 -1
  48. package/dist/form/error-summary/index.mjs +5 -6
  49. package/dist/form/index.js +75 -121
  50. package/dist/form/index.js.map +1 -1
  51. package/dist/form/index.mjs +6 -7
  52. package/dist/index.js +555 -540
  53. package/dist/index.js.map +1 -1
  54. package/dist/index.mjs +34 -32
  55. package/dist/modal/index.js +1 -0
  56. package/dist/modal/index.js.map +1 -1
  57. package/dist/modal/index.mjs +2 -2
  58. package/dist/modal/modal.js +1 -0
  59. package/dist/modal/modal.js.map +1 -1
  60. package/dist/modal/modal.mjs +2 -2
  61. package/dist/navbar/index.js +3 -1
  62. package/dist/navbar/index.js.map +1 -1
  63. package/dist/navbar/index.mjs +3 -3
  64. package/dist/navbar/navbar-expandable-menu.d.ts.map +1 -1
  65. package/dist/navbar/navbar-expandable-menu.js +3 -1
  66. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  67. package/dist/navbar/navbar-expandable-menu.mjs +2 -2
  68. package/dist/navbar/navbar.js +3 -1
  69. package/dist/navbar/navbar.js.map +1 -1
  70. package/dist/navbar/navbar.mjs +3 -3
  71. package/dist/skeleton/index.js +20 -2
  72. package/dist/skeleton/index.js.map +1 -1
  73. package/dist/skeleton/index.mjs +4 -1
  74. package/dist/skeleton/skeleton.d.ts.map +1 -1
  75. package/dist/skeleton/skeleton.js +20 -2
  76. package/dist/skeleton/skeleton.js.map +1 -1
  77. package/dist/skeleton/skeleton.mjs +4 -1
  78. package/dist/tabs/index.js +1 -0
  79. package/dist/tabs/index.js.map +1 -1
  80. package/dist/tabs/index.mjs +3 -3
  81. package/dist/tabs/tabs-list.js +1 -0
  82. package/dist/tabs/tabs-list.js.map +1 -1
  83. package/dist/tabs/tabs-list.mjs +2 -2
  84. package/dist/tabs/tabs.js +1 -0
  85. package/dist/tabs/tabs.js.map +1 -1
  86. package/dist/tabs/tabs.mjs +3 -3
  87. package/dist/utils/auto-animate-height.js +1 -0
  88. package/dist/utils/auto-animate-height.js.map +1 -1
  89. package/dist/utils/auto-animate-height.mjs +2 -2
  90. package/dist/utils/index.js +4 -0
  91. package/dist/utils/index.js.map +1 -1
  92. package/dist/utils/index.mjs +4 -2
  93. package/dist/utils/utils.d.ts +4 -0
  94. package/dist/utils/utils.d.ts.map +1 -1
  95. package/dist/utils/utils.js +4 -0
  96. package/dist/utils/utils.js.map +1 -1
  97. package/dist/utils/utils.mjs +3 -1
  98. package/package.json +2 -2
  99. package/src/accordion/accordion-content.tsx +2 -1
  100. package/src/form/error-summary/error-summary.tsx +32 -31
  101. package/src/navbar/navbar-expandable-menu.tsx +3 -2
  102. package/src/skeleton/skeleton.tsx +2 -1
  103. package/src/utils/utils.ts +14 -1
  104. package/dist/chunk-5FWY7FIX.mjs.map +0 -1
  105. package/dist/chunk-DRSAVDIE.mjs.map +0 -1
  106. package/dist/chunk-ILFK3VKS.mjs.map +0 -1
  107. package/dist/chunk-WLESNP6Z.mjs.map +0 -1
  108. package/dist/chunk-ZSYBCM2L.mjs.map +0 -1
  109. /package/dist/{chunk-GVO57ZWU.mjs.map → chunk-23IZCRJA.mjs.map} +0 -0
  110. /package/dist/{chunk-KNGG6M2I.mjs.map → chunk-5RXT5GLF.mjs.map} +0 -0
  111. /package/dist/{chunk-GXIKHXWC.mjs.map → chunk-EQFY63YP.mjs.map} +0 -0
  112. /package/dist/{chunk-KCEWKQ4W.mjs.map → chunk-GYI4NCUY.mjs.map} +0 -0
  113. /package/dist/{chunk-J5SCUELT.mjs.map → chunk-HBGFFKP3.mjs.map} +0 -0
  114. /package/dist/{chunk-4C76JM3T.mjs.map → chunk-I4NL4ESV.mjs.map} +0 -0
  115. /package/dist/{chunk-DTU7AXY3.mjs.map → chunk-NUP7ZBVE.mjs.map} +0 -0
  116. /package/dist/{chunk-CKG2XRMX.mjs.map → chunk-R6MQFVHE.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -144,6 +144,7 @@ __export(index_exports, {
144
144
  VStack: () => VStack,
145
145
  WarningBanner: () => WarningBanner,
146
146
  focusTrap: () => focusTrap,
147
+ inertPropValue: () => inertPropValue,
147
148
  useFieldsetContext: () => useFieldsetContext,
148
149
  useHydrated: () => useHydrated,
149
150
  useMergeRefs: () => useMergeRefs,
@@ -154,7 +155,7 @@ __export(index_exports, {
154
155
  module.exports = __toCommonJS(index_exports);
155
156
 
156
157
  // src/accordion/accordion.tsx
157
- var import_react5 = require("react");
158
+ var import_react7 = require("react");
158
159
  var import_typed_classname4 = require("@postenbring/hedwig-css/typed-classname");
159
160
 
160
161
  // src/accordion/accordion-item.tsx
@@ -226,26 +227,208 @@ var AccordionHeader = (0, import_react3.forwardRef)(
226
227
  AccordionHeader.displayName = "Accordion.Header";
227
228
 
228
229
  // src/accordion/accordion-content.tsx
229
- var import_react4 = require("react");
230
+ var import_react6 = require("react");
230
231
  var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname");
232
+
233
+ // src/utils/utils.ts
234
+ var React = __toESM(require("react"));
235
+ var import_react4 = require("react");
236
+ function useMergeRefs(refs) {
237
+ return React.useMemo(() => {
238
+ if (refs.every((ref) => ref === null)) {
239
+ return null;
240
+ }
241
+ return (value) => {
242
+ refs.forEach((ref) => {
243
+ if (typeof ref === "function") {
244
+ ref(value);
245
+ } else if (ref !== null) {
246
+ ref.current = value;
247
+ }
248
+ });
249
+ };
250
+ }, refs);
251
+ }
252
+ function useResize(ref) {
253
+ const [width, setWidth] = (0, import_react4.useState)(0);
254
+ const [height, setHeight] = (0, import_react4.useState)(0);
255
+ const handleResize = (0, import_react4.useCallback)(() => {
256
+ var _a, _b, _c, _d;
257
+ if ((ref == null ? void 0 : ref.current) !== null) {
258
+ setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
259
+ setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
260
+ }
261
+ }, [ref]);
262
+ (0, import_react4.useEffect)(() => {
263
+ window.addEventListener("load", handleResize);
264
+ window.addEventListener("resize", handleResize);
265
+ return () => {
266
+ window.removeEventListener("load", handleResize);
267
+ window.removeEventListener("resize", handleResize);
268
+ };
269
+ }, [ref, handleResize]);
270
+ (0, import_react4.useEffect)(() => {
271
+ handleResize();
272
+ }, []);
273
+ return { width, height };
274
+ }
275
+ function subscribe() {
276
+ return () => {
277
+ };
278
+ }
279
+ function useHydrated() {
280
+ return React.useSyncExternalStore(
281
+ subscribe,
282
+ () => true,
283
+ () => false
284
+ );
285
+ }
286
+ function focusTrap(element) {
287
+ var _a, _b;
288
+ if (element === document.body) return () => {
289
+ };
290
+ let inertElements = [];
291
+ for (let el = element; el; el = el.parentElement) {
292
+ if (el === document.body) break;
293
+ for (const sibling of (_b = (_a = el.parentElement) == null ? void 0 : _a.children) != null ? _b : []) {
294
+ if (sibling === el) continue;
295
+ if (!(sibling instanceof HTMLElement)) continue;
296
+ if (sibling.hasAttribute("inert")) continue;
297
+ sibling.setAttribute("inert", "true");
298
+ inertElements.push(sibling);
299
+ }
300
+ }
301
+ return () => {
302
+ releaseFocusTrap(inertElements);
303
+ inertElements = [];
304
+ };
305
+ }
306
+ function releaseFocusTrap(inertElements) {
307
+ for (const el of inertElements) {
308
+ el.removeAttribute("inert");
309
+ }
310
+ }
311
+ var inertBooleanSupported = Number(import_react4.version.split(".")[0]) >= 19;
312
+ var inertPropValue = inertBooleanSupported ? (x) => x : (x) => x ? "" : void 0;
313
+
314
+ // src/utils/auto-animate-height.tsx
315
+ var import_react5 = require("react");
231
316
  var import_jsx_runtime3 = require("react/jsx-runtime");
232
- var AccordionContent = (0, import_react4.forwardRef)(
317
+ var AutoAnimateHeight = (0, import_react5.forwardRef)(
318
+ (_a, ref) => {
319
+ var _b = _a, {
320
+ children,
321
+ style,
322
+ animationDuration = "quick",
323
+ animationEasing = "normal",
324
+ onTransitionEnd
325
+ } = _b, rest = __objRest(_b, [
326
+ "children",
327
+ "style",
328
+ "animationDuration",
329
+ "animationEasing",
330
+ "onTransitionEnd"
331
+ ]);
332
+ var _a2, _b2;
333
+ const rootRef = (0, import_react5.useRef)(null);
334
+ const mergedRef = useMergeRefs([rootRef, ref]);
335
+ const measurementRef = (0, import_react5.useRef)(null);
336
+ const [height, setHeight] = (0, import_react5.useState)(
337
+ void 0
338
+ );
339
+ const [clonedChildren, setClonedChildren] = (0, import_react5.useState)(
340
+ () => (0, import_react5.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children }), {})
341
+ );
342
+ (0, import_react5.useEffect)(() => {
343
+ var _a3;
344
+ if (!rootRef.current) return;
345
+ if (!measurementRef.current) return;
346
+ if (document.body.scrollHeight === 0) return;
347
+ const currentMeasurement = measurementRef.current;
348
+ const { height: newHeight } = currentMeasurement.getBoundingClientRect();
349
+ let previouslyObservedHeight = newHeight;
350
+ const resizeObserver = new ResizeObserver(() => {
351
+ const { height: resizedHeight } = currentMeasurement.getBoundingClientRect();
352
+ if (resizedHeight === previouslyObservedHeight) return;
353
+ previouslyObservedHeight = resizedHeight;
354
+ setHeight({ height: resizedHeight, shouldAnimate: false });
355
+ });
356
+ resizeObserver.observe(currentMeasurement);
357
+ setHeight({ height: newHeight, shouldAnimate: true });
358
+ const nextClonedChildren = (0, import_react5.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children }), {});
359
+ if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
360
+ setClonedChildren(nextClonedChildren);
361
+ return () => {
362
+ resizeObserver.disconnect();
363
+ };
364
+ }
365
+ const currentRoot = rootRef.current;
366
+ function onTransitionEndHandler(e) {
367
+ if (e.propertyName !== "height") return;
368
+ setClonedChildren(nextClonedChildren);
369
+ }
370
+ currentRoot.addEventListener("transitionend", onTransitionEndHandler);
371
+ return () => {
372
+ resizeObserver.disconnect();
373
+ currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
374
+ };
375
+ }, [children]);
376
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
377
+ "div",
378
+ __spreadProps(__spreadValues({
379
+ ref: mergedRef,
380
+ onTransitionEnd,
381
+ style: __spreadValues({
382
+ position: "relative",
383
+ overflow: "hidden",
384
+ height: (_b2 = height == null ? void 0 : height.height) != null ? _b2 : (_a2 = measurementRef.current) == null ? void 0 : _a2.getBoundingClientRect().height,
385
+ transitionProperty: (height == null ? void 0 : height.shouldAnimate) ? "height" : "none",
386
+ transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,
387
+ transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`,
388
+ willChange: "height"
389
+ }, style)
390
+ }, rest), {
391
+ children: [
392
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
393
+ "div",
394
+ {
395
+ "aria-hidden": true,
396
+ ref: measurementRef,
397
+ style: {
398
+ position: "absolute",
399
+ visibility: "hidden",
400
+ pointerEvents: "none"
401
+ },
402
+ children
403
+ }
404
+ ),
405
+ clonedChildren
406
+ ]
407
+ })
408
+ );
409
+ }
410
+ );
411
+ AutoAnimateHeight.displayName = "AutoAnimateHeight";
412
+
413
+ // src/accordion/accordion-content.tsx
414
+ var import_jsx_runtime4 = require("react/jsx-runtime");
415
+ var AccordionContent = (0, import_react6.forwardRef)(
233
416
  (_a, ref) => {
234
417
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
235
- const context = (0, import_react4.useContext)(AccordionItemContext);
418
+ const context = (0, import_react6.useContext)(AccordionItemContext);
236
419
  if (context === null) {
237
420
  return null;
238
421
  }
239
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
422
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
240
423
  "div",
241
424
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
242
425
  id: context.contentId,
243
426
  "data-state": context.open ? "open" : "closed"
244
- }, { inert: context.open ? void 0 : "true" }), {
427
+ }, { inert: inertPropValue(!context.open) }), {
245
428
  className: (0, import_typed_classname3.clsx)("hds-accordion-item-content", className),
246
429
  ref
247
430
  }), rest), {
248
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_typed_classname3.clsx)("hds-accordion-item-content-inner"), children })
431
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_typed_classname3.clsx)("hds-accordion-item-content-inner"), children })
249
432
  })
250
433
  );
251
434
  }
@@ -253,11 +436,11 @@ var AccordionContent = (0, import_react4.forwardRef)(
253
436
  AccordionContent.displayName = "Accordion.Content";
254
437
 
255
438
  // src/accordion/accordion.tsx
256
- var import_jsx_runtime4 = require("react/jsx-runtime");
257
- var Accordion = (0, import_react5.forwardRef)(
439
+ var import_jsx_runtime5 = require("react/jsx-runtime");
440
+ var Accordion = (0, import_react7.forwardRef)(
258
441
  (_a, ref) => {
259
442
  var _b = _a, { children, className, indent = true } = _b, rest = __objRest(_b, ["children", "className", "indent"]);
260
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
443
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
261
444
  "div",
262
445
  __spreadProps(__spreadValues({}, rest), {
263
446
  className: (0, import_typed_classname4.clsx)(
@@ -277,19 +460,19 @@ Accordion.Header = AccordionHeader;
277
460
  Accordion.Content = AccordionContent;
278
461
 
279
462
  // src/alert/alert.tsx
280
- var import_react7 = require("react");
463
+ var import_react9 = require("react");
281
464
  var import_typed_classname6 = require("@postenbring/hedwig-css/typed-classname");
282
465
  var import_react_slot2 = require("@radix-ui/react-slot");
283
466
 
284
467
  // src/box/box.tsx
285
- var import_react6 = require("react");
468
+ var import_react8 = require("react");
286
469
  var import_typed_classname5 = require("@postenbring/hedwig-css/typed-classname");
287
470
  var import_react_slot = require("@radix-ui/react-slot");
288
- var import_jsx_runtime5 = require("react/jsx-runtime");
289
- var BoxCloseButton = (0, import_react6.forwardRef)(
471
+ var import_jsx_runtime6 = require("react/jsx-runtime");
472
+ var BoxCloseButton = (0, import_react8.forwardRef)(
290
473
  (_a, ref) => {
291
474
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
292
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
475
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
293
476
  "button",
294
477
  __spreadValues({
295
478
  className: (0, import_typed_classname5.clsx)("hds-box__close-button", className),
@@ -300,7 +483,7 @@ var BoxCloseButton = (0, import_react6.forwardRef)(
300
483
  }
301
484
  );
302
485
  BoxCloseButton.displayName = "Box.CloseButton";
303
- var Box = (0, import_react6.forwardRef)(
486
+ var Box = (0, import_react8.forwardRef)(
304
487
  (_a, ref) => {
305
488
  var _b = _a, {
306
489
  asChild,
@@ -321,8 +504,8 @@ var Box = (0, import_react6.forwardRef)(
321
504
  "children",
322
505
  "className"
323
506
  ]);
324
- const [closedState, setClosedState] = (0, import_react6.useState)(false);
325
- const onClose = (0, import_react6.useCallback)(() => {
507
+ const [closedState, setClosedState] = (0, import_react8.useState)(false);
508
+ const onClose = (0, import_react8.useCallback)(() => {
326
509
  if (onCloseProp) {
327
510
  const result = onCloseProp();
328
511
  if (result === true) {
@@ -334,7 +517,7 @@ var Box = (0, import_react6.forwardRef)(
334
517
  }, []);
335
518
  const closed = closedProp != null ? closedProp : closedState;
336
519
  const Component = asChild ? import_react_slot.Slot : "div";
337
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
520
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
338
521
  Component,
339
522
  __spreadProps(__spreadValues({
340
523
  className: (0, import_typed_classname5.clsx)(
@@ -346,8 +529,8 @@ var Box = (0, import_react6.forwardRef)(
346
529
  ref
347
530
  }, rest), {
348
531
  children: [
349
- closeable ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
350
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_slot.Slottable, { children })
532
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
533
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_slot.Slottable, { children })
351
534
  ]
352
535
  })
353
536
  );
@@ -357,20 +540,20 @@ Box.displayName = "Box";
357
540
  Box.CloseButton = BoxCloseButton;
358
541
 
359
542
  // src/alert/alert.tsx
360
- var import_jsx_runtime6 = require("react/jsx-runtime");
361
- var AlertTitle = (0, import_react7.forwardRef)(
543
+ var import_jsx_runtime7 = require("react/jsx-runtime");
544
+ var AlertTitle = (0, import_react9.forwardRef)(
362
545
  (_a, ref) => {
363
546
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
364
547
  const Component = asChild ? import_react_slot2.Slot : "div";
365
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Component, __spreadValues({ className: (0, import_typed_classname6.clsx)("hds-alert__title", className), ref }, rest));
548
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Component, __spreadValues({ className: (0, import_typed_classname6.clsx)("hds-alert__title", className), ref }, rest));
366
549
  }
367
550
  );
368
551
  AlertTitle.displayName = "Alert.Title";
369
- var AlertDescription = (0, import_react7.forwardRef)(
552
+ var AlertDescription = (0, import_react9.forwardRef)(
370
553
  (_a, ref) => {
371
554
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
372
555
  const Component = asChild ? import_react_slot2.Slot : "div";
373
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
556
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
374
557
  Component,
375
558
  __spreadValues({
376
559
  className: (0, import_typed_classname6.clsx)("hds-alert__description", className),
@@ -380,17 +563,17 @@ var AlertDescription = (0, import_react7.forwardRef)(
380
563
  }
381
564
  );
382
565
  AlertDescription.displayName = "Alert.Description";
383
- var Alert = (0, import_react7.forwardRef)(
566
+ var Alert = (0, import_react9.forwardRef)(
384
567
  (_a, ref) => {
385
568
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
386
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
569
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
387
570
  Box,
388
571
  __spreadProps(__spreadValues({
389
572
  className: (0, import_typed_classname6.clsx)(`hds-alert`, `hds-alert--${variant}`, className),
390
573
  ref
391
574
  }, rest), {
392
575
  children: [
393
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_typed_classname6.clsx)("hds-alert--neutral__icon", iconClassName), children: icon }),
576
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_typed_classname6.clsx)("hds-alert--neutral__icon", iconClassName), children: icon }),
394
577
  children
395
578
  ]
396
579
  })
@@ -404,13 +587,13 @@ Alert.Description = AlertDescription;
404
587
  // src/badge/badge.tsx
405
588
  var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname");
406
589
  var import_react_slot3 = require("@radix-ui/react-slot");
407
- var import_react8 = require("react");
408
- var import_jsx_runtime7 = require("react/jsx-runtime");
409
- var Badge = (0, import_react8.forwardRef)(
590
+ var import_react10 = require("react");
591
+ var import_jsx_runtime8 = require("react/jsx-runtime");
592
+ var Badge = (0, import_react10.forwardRef)(
410
593
  (_a, ref) => {
411
594
  var _b = _a, { children, asChild, variant = "lighter", size = "small", className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "size", "className"]);
412
595
  const Component = asChild ? import_react_slot3.Slot : "span";
413
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
596
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
414
597
  Component,
415
598
  __spreadProps(__spreadValues({
416
599
  ref,
@@ -431,13 +614,13 @@ Badge.displayName = "Badge";
431
614
  // src/blockquote/blockquote.tsx
432
615
  var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname");
433
616
  var import_react_slot4 = require("@radix-ui/react-slot");
434
- var import_react9 = require("react");
435
- var import_jsx_runtime8 = require("react/jsx-runtime");
436
- var Blockquote = (0, import_react9.forwardRef)(
617
+ var import_react11 = require("react");
618
+ var import_jsx_runtime9 = require("react/jsx-runtime");
619
+ var Blockquote = (0, import_react11.forwardRef)(
437
620
  (_a, ref) => {
438
621
  var _b = _a, { children, asChild, className, variant } = _b, rest = __objRest(_b, ["children", "asChild", "className", "variant"]);
439
622
  const Component = asChild ? import_react_slot4.Slot : "blockquote";
440
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
623
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
441
624
  Component,
442
625
  __spreadProps(__spreadValues({
443
626
  ref,
@@ -455,23 +638,23 @@ var Blockquote = (0, import_react9.forwardRef)(
455
638
  Blockquote.displayName = "Blockquote";
456
639
 
457
640
  // src/breadcrumbs/breadcrumbs.tsx
458
- var import_react10 = require("react");
641
+ var import_react12 = require("react");
459
642
  var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname");
460
- var import_jsx_runtime9 = require("react/jsx-runtime");
461
- var Breadcrumbs = (0, import_react10.forwardRef)(
643
+ var import_jsx_runtime10 = require("react/jsx-runtime");
644
+ var Breadcrumbs = (0, import_react12.forwardRef)(
462
645
  (_a, ref) => {
463
646
  var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
464
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("nav", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname9.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
647
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("nav", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname9.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
465
648
  }
466
649
  );
467
650
  Breadcrumbs.displayName = "Breadcrumbs";
468
651
 
469
652
  // src/button/button.tsx
470
- var import_react11 = require("react");
653
+ var import_react13 = require("react");
471
654
  var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname");
472
655
  var import_react_slot5 = require("@radix-ui/react-slot");
473
- var import_jsx_runtime10 = require("react/jsx-runtime");
474
- var Button = (0, import_react11.forwardRef)(
656
+ var import_jsx_runtime11 = require("react/jsx-runtime");
657
+ var Button = (0, import_react13.forwardRef)(
475
658
  (_a, ref) => {
476
659
  var _b = _a, {
477
660
  asChild,
@@ -491,7 +674,7 @@ var Button = (0, import_react11.forwardRef)(
491
674
  "className"
492
675
  ]);
493
676
  const Component = asChild ? import_react_slot5.Slot : "button";
494
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
677
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
495
678
  Component,
496
679
  __spreadProps(__spreadValues({
497
680
  className: (0, import_typed_classname10.clsx)(
@@ -517,14 +700,14 @@ var Button = (0, import_react11.forwardRef)(
517
700
  Button.displayName = "Button";
518
701
 
519
702
  // src/button-list/button-list.tsx
520
- var import_react12 = require("react");
703
+ var import_react14 = require("react");
521
704
  var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname");
522
- var import_jsx_runtime11 = require("react/jsx-runtime");
523
- var ButtonList = (0, import_react12.forwardRef)(
705
+ var import_jsx_runtime12 = require("react/jsx-runtime");
706
+ var ButtonList = (0, import_react14.forwardRef)(
524
707
  (_a, ref) => {
525
708
  var _b = _a, { variant = "default", className, children } = _b, rest = __objRest(_b, ["variant", "className", "children"]);
526
709
  const Component = "div";
527
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
710
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
528
711
  Component,
529
712
  __spreadProps(__spreadValues({
530
713
  className: (0, import_typed_classname11.clsx)("hds-button-list", `hds-button-list--${variant}`, className),
@@ -538,23 +721,23 @@ var ButtonList = (0, import_react12.forwardRef)(
538
721
  ButtonList.displayName = "ButtonList";
539
722
 
540
723
  // src/card/card.tsx
541
- var import_react13 = require("react");
724
+ var import_react15 = require("react");
542
725
  var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
543
726
  var import_react_slot6 = require("@radix-ui/react-slot");
544
- var import_jsx_runtime12 = require("react/jsx-runtime");
545
- var CardMedia = (0, import_react13.forwardRef)(
727
+ var import_jsx_runtime13 = require("react/jsx-runtime");
728
+ var CardMedia = (0, import_react15.forwardRef)(
546
729
  (_a, ref) => {
547
730
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
548
731
  const Component = asChild ? import_react_slot6.Slot : "div";
549
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname12.clsx)("hds-card__media", className), ref, children }));
732
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname12.clsx)("hds-card__media", className), ref, children }));
550
733
  }
551
734
  );
552
735
  CardMedia.displayName = "Card.Media";
553
- var CardMediaImg = (0, import_react13.forwardRef)(
736
+ var CardMediaImg = (0, import_react15.forwardRef)(
554
737
  (_a, ref) => {
555
738
  var _b = _a, { asChild, variant, className } = _b, rest = __objRest(_b, ["asChild", "variant", "className"]);
556
739
  const Component = asChild ? import_react_slot6.Slot : "img";
557
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
740
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
558
741
  Component,
559
742
  __spreadProps(__spreadValues({}, rest), {
560
743
  className: (0, import_typed_classname12.clsx)(
@@ -568,18 +751,18 @@ var CardMediaImg = (0, import_react13.forwardRef)(
568
751
  }
569
752
  );
570
753
  CardMediaImg.displayName = "Card.MediaImg";
571
- var CardBody = (0, import_react13.forwardRef)(
754
+ var CardBody = (0, import_react15.forwardRef)(
572
755
  (_a, ref) => {
573
756
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
574
757
  const Component = asChild ? import_react_slot6.Slot : "div";
575
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname12.clsx)("hds-card__body", className), ref, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-card__centerbody", className), children }) }));
758
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname12.clsx)("hds-card__body", className), ref, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-card__centerbody", className), children }) }));
576
759
  }
577
760
  );
578
761
  CardBody.displayName = "Card.Body";
579
- var CardBodyHeader = (0, import_react13.forwardRef)((_a, ref) => {
762
+ var CardBodyHeader = (0, import_react15.forwardRef)((_a, ref) => {
580
763
  var _b = _a, { as: Tag, asChild, className, children } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children"]);
581
764
  const Component = asChild ? import_react_slot6.Slot : Tag;
582
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
765
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
583
766
  Component,
584
767
  __spreadProps(__spreadValues({}, rest), {
585
768
  className: (0, import_typed_classname12.clsx)("hds-card__body-header", className),
@@ -589,11 +772,11 @@ var CardBodyHeader = (0, import_react13.forwardRef)((_a, ref) => {
589
772
  );
590
773
  });
591
774
  CardBodyHeader.displayName = "Card.BodyHeader";
592
- var CardBodyHeaderOverline = (0, import_react13.forwardRef)(
775
+ var CardBodyHeaderOverline = (0, import_react15.forwardRef)(
593
776
  (_a, ref) => {
594
777
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
595
778
  const Component = asChild ? import_react_slot6.Slot : "span";
596
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
779
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
597
780
  Component,
598
781
  __spreadProps(__spreadValues({}, rest), {
599
782
  className: (0, import_typed_classname12.clsx)("hds-card__body-header-overline", className),
@@ -604,11 +787,11 @@ var CardBodyHeaderOverline = (0, import_react13.forwardRef)(
604
787
  }
605
788
  );
606
789
  CardBodyHeaderOverline.displayName = "Card.BodyHeaderOverline";
607
- var CardBodyHeaderTitle = (0, import_react13.forwardRef)(
790
+ var CardBodyHeaderTitle = (0, import_react15.forwardRef)(
608
791
  (_a, ref) => {
609
792
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
610
793
  const Component = asChild ? import_react_slot6.Slot : "div";
611
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
794
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
612
795
  Component,
613
796
  __spreadProps(__spreadValues({}, rest), {
614
797
  className: (0, import_typed_classname12.clsx)("hds-card__body-header-title", className),
@@ -619,11 +802,11 @@ var CardBodyHeaderTitle = (0, import_react13.forwardRef)(
619
802
  }
620
803
  );
621
804
  CardBodyHeaderTitle.displayName = "Card.BodyHeaderTitle";
622
- var CardBodyDescription = (0, import_react13.forwardRef)(
805
+ var CardBodyDescription = (0, import_react15.forwardRef)(
623
806
  (_a, ref) => {
624
807
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
625
808
  const Component = asChild ? import_react_slot6.Slot : "p";
626
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
809
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
627
810
  Component,
628
811
  __spreadProps(__spreadValues({}, rest), {
629
812
  className: (0, import_typed_classname12.clsx)("hds-card__body-description", className),
@@ -634,11 +817,11 @@ var CardBodyDescription = (0, import_react13.forwardRef)(
634
817
  }
635
818
  );
636
819
  CardBodyDescription.displayName = "Card.BodyDescription";
637
- var CardBodyAction = (0, import_react13.forwardRef)(
820
+ var CardBodyAction = (0, import_react15.forwardRef)(
638
821
  (_a, ref) => {
639
822
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
640
823
  const Component = asChild ? import_react_slot6.Slot : "div";
641
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
824
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
642
825
  Component,
643
826
  __spreadProps(__spreadValues({}, rest), {
644
827
  className: (0, import_typed_classname12.clsx)("hds-card__body-action", className),
@@ -649,11 +832,11 @@ var CardBodyAction = (0, import_react13.forwardRef)(
649
832
  }
650
833
  );
651
834
  CardBodyAction.displayName = "Card.BodyAction";
652
- var CardBodyActionRow = (0, import_react13.forwardRef)(
835
+ var CardBodyActionRow = (0, import_react15.forwardRef)(
653
836
  (_a, ref) => {
654
837
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
655
838
  const Component = asChild ? import_react_slot6.Slot : "div";
656
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
839
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
657
840
  Component,
658
841
  __spreadProps(__spreadValues({}, rest), {
659
842
  className: (0, import_typed_classname12.clsx)("hds-card__body-action-row", className),
@@ -664,11 +847,11 @@ var CardBodyActionRow = (0, import_react13.forwardRef)(
664
847
  }
665
848
  );
666
849
  CardBodyActionRow.displayName = "Card.BodyActionRow";
667
- var CardBodyActionArrow = (0, import_react13.forwardRef)(
850
+ var CardBodyActionArrow = (0, import_react15.forwardRef)(
668
851
  (_a, ref) => {
669
852
  var _b = _a, { asChild, className, direction } = _b, rest = __objRest(_b, ["asChild", "className", "direction"]);
670
853
  const Component = asChild ? import_react_slot6.Slot : "span";
671
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
854
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
672
855
  Component,
673
856
  __spreadProps(__spreadValues({}, rest), {
674
857
  className: (0, import_typed_classname12.clsx)(
@@ -682,7 +865,7 @@ var CardBodyActionArrow = (0, import_react13.forwardRef)(
682
865
  }
683
866
  );
684
867
  CardBodyActionArrow.displayName = "Card.BodyActionArrow";
685
- var Card = (0, import_react13.forwardRef)(
868
+ var Card = (0, import_react15.forwardRef)(
686
869
  (_a, ref) => {
687
870
  var _b = _a, {
688
871
  as: Tag = "section",
@@ -703,7 +886,7 @@ var Card = (0, import_react13.forwardRef)(
703
886
  ]);
704
887
  const Component = asChild ? import_react_slot6.Slot : Tag;
705
888
  const effectiveColor = variant === "focus" && !color ? "darker" : color;
706
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
889
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
707
890
  Component,
708
891
  __spreadProps(__spreadValues({}, rest), {
709
892
  className: (0, import_typed_classname12.clsx)(
@@ -719,7 +902,7 @@ var Card = (0, import_react13.forwardRef)(
719
902
  className
720
903
  ),
721
904
  ref,
722
- children: variant === "full-width" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-card__layoutwrapper", className), children }) : children
905
+ children: variant === "full-width" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-card__layoutwrapper", className), children }) : children
723
906
  })
724
907
  );
725
908
  }
@@ -737,13 +920,13 @@ Card.BodyActionRow = CardBodyActionRow;
737
920
  Card.BodyActionArrow = CardBodyActionArrow;
738
921
 
739
922
  // src/description-list/description-list.tsx
740
- var import_react14 = require("react");
923
+ var import_react16 = require("react");
741
924
  var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
742
- var import_jsx_runtime13 = require("react/jsx-runtime");
743
- var DescriptionList = (0, import_react14.forwardRef)(
925
+ var import_jsx_runtime14 = require("react/jsx-runtime");
926
+ var DescriptionList = (0, import_react16.forwardRef)(
744
927
  (_a, ref) => {
745
928
  var _b = _a, { variant = "vertical", className } = _b, rest = __objRest(_b, ["variant", "className"]);
746
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
929
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
747
930
  "dl",
748
931
  __spreadValues({
749
932
  ref,
@@ -763,29 +946,29 @@ DescriptionList.displayName = "DescriptionList";
763
946
  // src/figure/figure.tsx
764
947
  var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
765
948
  var import_react_slot7 = require("@radix-ui/react-slot");
766
- var import_react15 = require("react");
767
- var import_jsx_runtime14 = require("react/jsx-runtime");
768
- var Figure = (0, import_react15.forwardRef)(
949
+ var import_react17 = require("react");
950
+ var import_jsx_runtime15 = require("react/jsx-runtime");
951
+ var Figure = (0, import_react17.forwardRef)(
769
952
  (_a, ref) => {
770
953
  var _b = _a, { children, asChild, className } = _b, rest = __objRest(_b, ["children", "asChild", "className"]);
771
954
  const Component = asChild ? import_react_slot7.Slot : "figure";
772
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname14.clsx)("hds-figure", className) }, rest), { children }));
955
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname14.clsx)("hds-figure", className) }, rest), { children }));
773
956
  }
774
957
  );
775
958
  Figure.displayName = "Figure";
776
959
 
777
960
  // src/form/checkbox/checkbox.tsx
778
- var import_react18 = require("react");
961
+ var import_react20 = require("react");
779
962
  var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
780
963
 
781
964
  // src/form/error-message/error-message.tsx
782
965
  var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
783
- var import_react16 = require("react");
784
- var import_jsx_runtime15 = require("react/jsx-runtime");
785
- var ErrorMessage = (0, import_react16.forwardRef)(
966
+ var import_react18 = require("react");
967
+ var import_jsx_runtime16 = require("react/jsx-runtime");
968
+ var ErrorMessage = (0, import_react18.forwardRef)(
786
969
  (_a, ref) => {
787
970
  var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
788
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
971
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
789
972
  "div",
790
973
  __spreadProps(__spreadValues({
791
974
  "aria-live": "polite",
@@ -801,12 +984,12 @@ var ErrorMessage = (0, import_react16.forwardRef)(
801
984
  ErrorMessage.displayName = "ErrorMessage";
802
985
 
803
986
  // src/form/fieldset/fieldset.tsx
804
- var import_react17 = require("react");
987
+ var import_react19 = require("react");
805
988
  var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
806
- var import_jsx_runtime16 = require("react/jsx-runtime");
807
- var FieldsetContext = (0, import_react17.createContext)({ hasError: false });
808
- var useFieldsetContext = () => (0, import_react17.useContext)(FieldsetContext);
809
- var Fieldset = (0, import_react17.forwardRef)(function Fieldset2(_a, ref) {
989
+ var import_jsx_runtime17 = require("react/jsx-runtime");
990
+ var FieldsetContext = (0, import_react19.createContext)({ hasError: false });
991
+ var useFieldsetContext = () => (0, import_react19.useContext)(FieldsetContext);
992
+ var Fieldset = (0, import_react19.forwardRef)(function Fieldset2(_a, ref) {
810
993
  var _b = _a, {
811
994
  className,
812
995
  style,
@@ -825,8 +1008,8 @@ var Fieldset = (0, import_react17.forwardRef)(function Fieldset2(_a, ref) {
825
1008
  "legend",
826
1009
  "children"
827
1010
  ]);
828
- const errorMessageId = (0, import_react17.useId)();
829
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1011
+ const errorMessageId = (0, import_react19.useId)();
1012
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
830
1013
  "fieldset",
831
1014
  __spreadProps(__spreadValues({
832
1015
  "aria-describedby": errorMessage ? errorMessageId : void 0,
@@ -836,7 +1019,7 @@ var Fieldset = (0, import_react17.forwardRef)(function Fieldset2(_a, ref) {
836
1019
  style
837
1020
  }, rest), {
838
1021
  children: [
839
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1022
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
840
1023
  "legend",
841
1024
  __spreadProps(__spreadValues({
842
1025
  className: (0, import_typed_classname16.clsx)(
@@ -848,16 +1031,16 @@ var Fieldset = (0, import_react17.forwardRef)(function Fieldset2(_a, ref) {
848
1031
  children: legend
849
1032
  })
850
1033
  ),
851
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
852
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1034
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
1035
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
853
1036
  ]
854
1037
  })
855
1038
  );
856
1039
  });
857
1040
 
858
1041
  // src/form/checkbox/checkbox.tsx
859
- var import_jsx_runtime17 = require("react/jsx-runtime");
860
- var Checkbox = (0, import_react18.forwardRef)(
1042
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1043
+ var Checkbox = (0, import_react20.forwardRef)(
861
1044
  (_a, ref) => {
862
1045
  var _b = _a, {
863
1046
  variant = "plain",
@@ -876,11 +1059,11 @@ var Checkbox = (0, import_react18.forwardRef)(
876
1059
  "children",
877
1060
  "className"
878
1061
  ]);
879
- const errorMessageId = (0, import_react18.useId)();
1062
+ const errorMessageId = (0, import_react20.useId)();
880
1063
  const { hasError: hasFieldsetError } = useFieldsetContext();
881
1064
  const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
882
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: (0, import_typed_classname17.clsx)("hds-checkbox-wrapper"), children: [
883
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1065
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: (0, import_typed_classname17.clsx)("hds-checkbox-wrapper"), children: [
1066
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
884
1067
  "div",
885
1068
  {
886
1069
  className: (0, import_typed_classname17.clsx)(
@@ -892,8 +1075,8 @@ var Checkbox = (0, import_react18.forwardRef)(
892
1075
  className
893
1076
  ),
894
1077
  children: [
895
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { children: [
896
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1078
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { children: [
1079
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
897
1080
  "input",
898
1081
  __spreadProps(__spreadValues({}, rest), {
899
1082
  "aria-invalid": hasError ? true : void 0,
@@ -902,28 +1085,28 @@ var Checkbox = (0, import_react18.forwardRef)(
902
1085
  type: "checkbox"
903
1086
  })
904
1087
  ),
905
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
906
- title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
1088
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
1089
+ title ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
907
1090
  ] }),
908
1091
  title ? children : null
909
1092
  ]
910
1093
  }
911
1094
  ),
912
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1095
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
913
1096
  ] });
914
1097
  }
915
1098
  );
916
1099
  Checkbox.displayName = "Checkbox";
917
1100
 
918
1101
  // src/form/date-picker/date-picker.tsx
919
- var import_react21 = require("react");
1102
+ var import_react22 = require("react");
920
1103
  var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
921
1104
 
922
1105
  // src/form/input-group/input-group.tsx
923
- var import_react19 = require("react");
1106
+ var import_react21 = require("react");
924
1107
  var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
925
- var import_jsx_runtime18 = require("react/jsx-runtime");
926
- var InputGroup = (0, import_react19.forwardRef)(function InputGroup2(_a, ref) {
1108
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1109
+ var InputGroup = (0, import_react21.forwardRef)(function InputGroup2(_a, ref) {
927
1110
  var _b = _a, {
928
1111
  id,
929
1112
  className,
@@ -950,8 +1133,8 @@ var InputGroup = (0, import_react19.forwardRef)(function InputGroup2(_a, ref) {
950
1133
  "readOnly",
951
1134
  "children"
952
1135
  ]);
953
- const errorMessageId = (0, import_react19.useId)();
954
- const inputId = (0, import_react19.useId)();
1136
+ const errorMessageId = (0, import_react21.useId)();
1137
+ const inputId = (0, import_react21.useId)();
955
1138
  const renderInput = () => {
956
1139
  var _a2;
957
1140
  const inputProps = {
@@ -963,15 +1146,15 @@ var InputGroup = (0, import_react19.forwardRef)(function InputGroup2(_a, ref) {
963
1146
  if (typeof children === "function") {
964
1147
  return children(inputProps);
965
1148
  }
966
- const input = import_react19.Children.toArray(children)[0];
967
- if (!(0, import_react19.isValidElement)(input)) {
1149
+ const input = import_react21.Children.toArray(children)[0];
1150
+ if (!(0, import_react21.isValidElement)(input)) {
968
1151
  return;
969
1152
  }
970
- return (0, import_react19.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
1153
+ return (0, import_react21.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
971
1154
  className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
972
1155
  }));
973
1156
  };
974
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1157
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
975
1158
  "div",
976
1159
  __spreadProps(__spreadValues({
977
1160
  className: (0, import_typed_classname18.clsx)(
@@ -986,7 +1169,7 @@ var InputGroup = (0, import_react19.forwardRef)(function InputGroup2(_a, ref) {
986
1169
  style
987
1170
  }, rest), {
988
1171
  children: [
989
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1172
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
990
1173
  "label",
991
1174
  __spreadProps(__spreadValues({
992
1175
  className: (0, import_typed_classname18.clsx)("hds-input-group__label", labelClassName)
@@ -995,7 +1178,7 @@ var InputGroup = (0, import_react19.forwardRef)(function InputGroup2(_a, ref) {
995
1178
  children: label
996
1179
  })
997
1180
  ),
998
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1181
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
999
1182
  "div",
1000
1183
  {
1001
1184
  className: (0, import_typed_classname18.clsx)("hds-input-group__input-wrapper"),
@@ -1004,94 +1187,15 @@ var InputGroup = (0, import_react19.forwardRef)(function InputGroup2(_a, ref) {
1004
1187
  children: renderInput()
1005
1188
  }
1006
1189
  ),
1007
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1190
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1008
1191
  ]
1009
1192
  })
1010
1193
  );
1011
1194
  });
1012
1195
 
1013
- // src/utils/utils.ts
1014
- var React2 = __toESM(require("react"));
1015
- var import_react20 = require("react");
1016
- function useMergeRefs(refs) {
1017
- return React2.useMemo(() => {
1018
- if (refs.every((ref) => ref === null)) {
1019
- return null;
1020
- }
1021
- return (value) => {
1022
- refs.forEach((ref) => {
1023
- if (typeof ref === "function") {
1024
- ref(value);
1025
- } else if (ref !== null) {
1026
- ref.current = value;
1027
- }
1028
- });
1029
- };
1030
- }, refs);
1031
- }
1032
- function useResize(ref) {
1033
- const [width, setWidth] = (0, import_react20.useState)(0);
1034
- const [height, setHeight] = (0, import_react20.useState)(0);
1035
- const handleResize = (0, import_react20.useCallback)(() => {
1036
- var _a, _b, _c, _d;
1037
- if ((ref == null ? void 0 : ref.current) !== null) {
1038
- setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
1039
- setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
1040
- }
1041
- }, [ref]);
1042
- (0, import_react20.useEffect)(() => {
1043
- window.addEventListener("load", handleResize);
1044
- window.addEventListener("resize", handleResize);
1045
- return () => {
1046
- window.removeEventListener("load", handleResize);
1047
- window.removeEventListener("resize", handleResize);
1048
- };
1049
- }, [ref, handleResize]);
1050
- (0, import_react20.useEffect)(() => {
1051
- handleResize();
1052
- }, []);
1053
- return { width, height };
1054
- }
1055
- function subscribe() {
1056
- return () => {
1057
- };
1058
- }
1059
- function useHydrated() {
1060
- return React2.useSyncExternalStore(
1061
- subscribe,
1062
- () => true,
1063
- () => false
1064
- );
1065
- }
1066
- function focusTrap(element) {
1067
- var _a, _b;
1068
- if (element === document.body) return () => {
1069
- };
1070
- let inertElements = [];
1071
- for (let el = element; el; el = el.parentElement) {
1072
- if (el === document.body) break;
1073
- for (const sibling of (_b = (_a = el.parentElement) == null ? void 0 : _a.children) != null ? _b : []) {
1074
- if (sibling === el) continue;
1075
- if (!(sibling instanceof HTMLElement)) continue;
1076
- if (sibling.hasAttribute("inert")) continue;
1077
- sibling.setAttribute("inert", "true");
1078
- inertElements.push(sibling);
1079
- }
1080
- }
1081
- return () => {
1082
- releaseFocusTrap(inertElements);
1083
- inertElements = [];
1084
- };
1085
- }
1086
- function releaseFocusTrap(inertElements) {
1087
- for (const el of inertElements) {
1088
- el.removeAttribute("inert");
1089
- }
1090
- }
1091
-
1092
1196
  // src/form/date-picker/date-picker.tsx
1093
- var import_jsx_runtime19 = require("react/jsx-runtime");
1094
- var DatePicker = (0, import_react21.forwardRef)(function DatePicker2(_a, ref) {
1197
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1198
+ var DatePicker = (0, import_react22.forwardRef)(function DatePicker2(_a, ref) {
1095
1199
  var _b = _a, {
1096
1200
  className,
1097
1201
  variant,
@@ -1115,9 +1219,9 @@ var DatePicker = (0, import_react21.forwardRef)(function DatePicker2(_a, ref) {
1115
1219
  "readOnly",
1116
1220
  "calendarButtonTitle"
1117
1221
  ]);
1118
- const inputRef = (0, import_react21.useRef)(null);
1222
+ const inputRef = (0, import_react22.useRef)(null);
1119
1223
  const mergedRef = useMergeRefs([inputRef, ref]);
1120
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1224
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1121
1225
  InputGroup,
1122
1226
  {
1123
1227
  className: (0, import_typed_classname19.clsx)("hds-date-picker", className),
@@ -1129,8 +1233,8 @@ var DatePicker = (0, import_react21.forwardRef)(function DatePicker2(_a, ref) {
1129
1233
  readOnly,
1130
1234
  style,
1131
1235
  variant,
1132
- children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1133
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1236
+ children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1237
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1134
1238
  "input",
1135
1239
  __spreadProps(__spreadValues(__spreadValues({}, rest), inputProps), {
1136
1240
  disabled,
@@ -1139,7 +1243,7 @@ var DatePicker = (0, import_react21.forwardRef)(function DatePicker2(_a, ref) {
1139
1243
  type: "date"
1140
1244
  })
1141
1245
  ),
1142
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1246
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1143
1247
  "button",
1144
1248
  {
1145
1249
  className: (0, import_typed_classname19.clsx)("hds-date-picker__calendar-button"),
@@ -1158,65 +1262,13 @@ var DatePicker = (0, import_react21.forwardRef)(function DatePicker2(_a, ref) {
1158
1262
  DatePicker.displayName = "DatePicker";
1159
1263
 
1160
1264
  // src/form/error-summary/error-summary.tsx
1161
- var import_react27 = require("react");
1162
-
1163
- // src/message/message.tsx
1164
- var import_react22 = require("react");
1165
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1166
- var import_react_slot8 = require("@radix-ui/react-slot");
1167
- var import_jsx_runtime20 = require("react/jsx-runtime");
1168
- var MessageTitle = (0, import_react22.forwardRef)(
1169
- (_a, ref) => {
1170
- var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1171
- const Component = asChild ? import_react_slot8.Slot : "div";
1172
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1173
- Component,
1174
- __spreadValues({
1175
- className: (0, import_typed_classname20.clsx)("hds-message__title", className),
1176
- ref
1177
- }, rest)
1178
- );
1179
- }
1180
- );
1181
- MessageTitle.displayName = "Message.Title";
1182
- var MessageDescription = (0, import_react22.forwardRef)(
1183
- (_a, ref) => {
1184
- var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1185
- const Component = asChild ? import_react_slot8.Slot : "div";
1186
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1187
- Component,
1188
- __spreadValues({
1189
- className: (0, import_typed_classname20.clsx)("hds-message__description", className),
1190
- ref
1191
- }, rest)
1192
- );
1193
- }
1194
- );
1195
- MessageDescription.displayName = "Message.Description";
1196
- var Message = (0, import_react22.forwardRef)(
1197
- (_a, ref) => {
1198
- var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1199
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1200
- Box,
1201
- __spreadProps(__spreadValues({
1202
- className: (0, import_typed_classname20.clsx)(`hds-message`, `hds-message--${variant}`, className),
1203
- ref
1204
- }, rest), {
1205
- children: [
1206
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: (0, import_typed_classname20.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1207
- children
1208
- ]
1209
- })
1210
- );
1211
- }
1212
- );
1213
- Message.displayName = "Message";
1214
- Message.Title = MessageTitle;
1215
- Message.Description = MessageDescription;
1265
+ var import_react26 = require("react");
1266
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1267
+ var import_react_slot9 = require("@radix-ui/react-slot");
1216
1268
 
1217
1269
  // src/list/list.tsx
1218
1270
  var import_react23 = require("react");
1219
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1271
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1220
1272
  var import_jsx_runtime21 = require("react/jsx-runtime");
1221
1273
  var UnorderedList = (0, import_react23.forwardRef)(
1222
1274
  (_a, ref) => {
@@ -1225,7 +1277,7 @@ var UnorderedList = (0, import_react23.forwardRef)(
1225
1277
  "ul",
1226
1278
  __spreadValues({
1227
1279
  ref,
1228
- className: (0, import_typed_classname21.clsx)(
1280
+ className: (0, import_typed_classname20.clsx)(
1229
1281
  "hds-list",
1230
1282
  size !== "default" && `hds-list--${size}`,
1231
1283
  className
@@ -1242,7 +1294,7 @@ var OrderedList = (0, import_react23.forwardRef)(
1242
1294
  "ol",
1243
1295
  __spreadValues({
1244
1296
  ref,
1245
- className: (0, import_typed_classname21.clsx)(
1297
+ className: (0, import_typed_classname20.clsx)(
1246
1298
  "hds-list",
1247
1299
  size !== "default" && `hds-list--${size}`,
1248
1300
  className
@@ -1254,7 +1306,7 @@ var OrderedList = (0, import_react23.forwardRef)(
1254
1306
  OrderedList.displayName = "OrderedList";
1255
1307
 
1256
1308
  // src/list/link-list.tsx
1257
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1309
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1258
1310
  var import_react24 = require("react");
1259
1311
  var import_jsx_runtime22 = require("react/jsx-runtime");
1260
1312
  var LinkList = (0, import_react24.forwardRef)(
@@ -1264,7 +1316,7 @@ var LinkList = (0, import_react24.forwardRef)(
1264
1316
  UnorderedList,
1265
1317
  __spreadValues({
1266
1318
  ref,
1267
- className: (0, import_typed_classname22.clsx)("hds-list--link-list", className)
1319
+ className: (0, import_typed_classname21.clsx)("hds-list--link-list", className)
1268
1320
  }, rest)
1269
1321
  );
1270
1322
  }
@@ -1273,18 +1325,18 @@ LinkList.displayName = "LinkList";
1273
1325
 
1274
1326
  // src/link/link.tsx
1275
1327
  var React3 = require("react");
1276
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1328
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1277
1329
  var import_react25 = require("react");
1278
- var import_react_slot9 = require("@radix-ui/react-slot");
1330
+ var import_react_slot8 = require("@radix-ui/react-slot");
1279
1331
  var import_jsx_runtime23 = require("react/jsx-runtime");
1280
1332
  var Link = (0, import_react25.forwardRef)(
1281
1333
  (_a, ref) => {
1282
1334
  var _b = _a, { asChild, children, variant = "underline", size = "default", icon, className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "icon", "className"]);
1283
- const Component = asChild ? import_react_slot9.Slot : "a";
1335
+ const Component = asChild ? import_react_slot8.Slot : "a";
1284
1336
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1285
1337
  Component,
1286
1338
  __spreadProps(__spreadValues({
1287
- className: (0, import_typed_classname23.clsx)(
1339
+ className: (0, import_typed_classname22.clsx)(
1288
1340
  "hds-link",
1289
1341
  variant !== "underline" && `hds-link--${variant}`,
1290
1342
  size !== "default" && `hds-link--${size}`,
@@ -1301,105 +1353,6 @@ var Link = (0, import_react25.forwardRef)(
1301
1353
  );
1302
1354
  Link.displayName = "Link";
1303
1355
 
1304
- // src/utils/auto-animate-height.tsx
1305
- var import_react26 = require("react");
1306
- var import_jsx_runtime24 = require("react/jsx-runtime");
1307
- var AutoAnimateHeight = (0, import_react26.forwardRef)(
1308
- (_a, ref) => {
1309
- var _b = _a, {
1310
- children,
1311
- style,
1312
- animationDuration = "quick",
1313
- animationEasing = "normal",
1314
- onTransitionEnd
1315
- } = _b, rest = __objRest(_b, [
1316
- "children",
1317
- "style",
1318
- "animationDuration",
1319
- "animationEasing",
1320
- "onTransitionEnd"
1321
- ]);
1322
- var _a2, _b2;
1323
- const rootRef = (0, import_react26.useRef)(null);
1324
- const mergedRef = useMergeRefs([rootRef, ref]);
1325
- const measurementRef = (0, import_react26.useRef)(null);
1326
- const [height, setHeight] = (0, import_react26.useState)(
1327
- void 0
1328
- );
1329
- const [clonedChildren, setClonedChildren] = (0, import_react26.useState)(
1330
- () => (0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children }), {})
1331
- );
1332
- (0, import_react26.useEffect)(() => {
1333
- var _a3;
1334
- if (!rootRef.current) return;
1335
- if (!measurementRef.current) return;
1336
- if (document.body.scrollHeight === 0) return;
1337
- const currentMeasurement = measurementRef.current;
1338
- const { height: newHeight } = currentMeasurement.getBoundingClientRect();
1339
- let previouslyObservedHeight = newHeight;
1340
- const resizeObserver = new ResizeObserver(() => {
1341
- const { height: resizedHeight } = currentMeasurement.getBoundingClientRect();
1342
- if (resizedHeight === previouslyObservedHeight) return;
1343
- previouslyObservedHeight = resizedHeight;
1344
- setHeight({ height: resizedHeight, shouldAnimate: false });
1345
- });
1346
- resizeObserver.observe(currentMeasurement);
1347
- setHeight({ height: newHeight, shouldAnimate: true });
1348
- const nextClonedChildren = (0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children }), {});
1349
- if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
1350
- setClonedChildren(nextClonedChildren);
1351
- return () => {
1352
- resizeObserver.disconnect();
1353
- };
1354
- }
1355
- const currentRoot = rootRef.current;
1356
- function onTransitionEndHandler(e) {
1357
- if (e.propertyName !== "height") return;
1358
- setClonedChildren(nextClonedChildren);
1359
- }
1360
- currentRoot.addEventListener("transitionend", onTransitionEndHandler);
1361
- return () => {
1362
- resizeObserver.disconnect();
1363
- currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
1364
- };
1365
- }, [children]);
1366
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1367
- "div",
1368
- __spreadProps(__spreadValues({
1369
- ref: mergedRef,
1370
- onTransitionEnd,
1371
- style: __spreadValues({
1372
- position: "relative",
1373
- overflow: "hidden",
1374
- height: (_b2 = height == null ? void 0 : height.height) != null ? _b2 : (_a2 = measurementRef.current) == null ? void 0 : _a2.getBoundingClientRect().height,
1375
- transitionProperty: (height == null ? void 0 : height.shouldAnimate) ? "height" : "none",
1376
- transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,
1377
- transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`,
1378
- willChange: "height"
1379
- }, style)
1380
- }, rest), {
1381
- children: [
1382
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1383
- "div",
1384
- {
1385
- "aria-hidden": true,
1386
- ref: measurementRef,
1387
- style: {
1388
- position: "absolute",
1389
- visibility: "hidden",
1390
- pointerEvents: "none"
1391
- },
1392
- children
1393
- }
1394
- ),
1395
- clonedChildren
1396
- ]
1397
- })
1398
- );
1399
- }
1400
- );
1401
- AutoAnimateHeight.displayName = "AutoAnimateHeight";
1402
-
1403
1356
  // src/form/error-summary/focus.ts
1404
1357
  function focusWithLegendOrLabelInViewport(id) {
1405
1358
  var _a;
@@ -1442,33 +1395,30 @@ function labelForInput(input) {
1442
1395
  }
1443
1396
 
1444
1397
  // src/form/error-summary/error-summary.tsx
1445
- var import_jsx_runtime25 = require("react/jsx-runtime");
1446
- var ErrorSummaryHeading = (0, import_react27.forwardRef)((_a, ref) => {
1447
- var _b = _a, { children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["children", "as", "autoFocus"]);
1448
- const focusRef = (0, import_react27.useRef)(null);
1398
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1399
+ var ErrorSummaryHeading = (0, import_react26.forwardRef)((_a, ref) => {
1400
+ var _b = _a, { asChild, children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["asChild", "children", "as", "autoFocus"]);
1401
+ const focusRef = (0, import_react26.useRef)(null);
1449
1402
  const mergedRef = useMergeRefs([focusRef, ref]);
1450
- (0, import_react27.useEffect)(() => {
1403
+ const Component = asChild ? import_react_slot9.Slot : Tag;
1404
+ (0, import_react26.useEffect)(() => {
1451
1405
  setTimeout(() => {
1452
1406
  if (focusRef.current && autoFocus) {
1453
1407
  focusRef.current.focus();
1454
1408
  }
1455
1409
  });
1456
1410
  }, []);
1457
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Message.Title, __spreadProps(__spreadValues({ ref: mergedRef, tabIndex: -1, asChild: true }, rest), { children: Tag ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Tag, { children }) : children }));
1411
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname23.clsx)(`hds-error-summary__title`), ref: mergedRef, tabIndex: -1 }, rest), { children }));
1458
1412
  });
1459
1413
  ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1460
- var ErrorSummaryList = (0, import_react27.forwardRef)(
1414
+ var ErrorSummaryList = (0, import_react26.forwardRef)(
1461
1415
  (_a, ref) => {
1462
- var _b = _a, { children, style: _style, size = "small" } = _b, rest = __objRest(_b, ["children", "style", "size"]);
1463
- const style = __spreadValues({
1464
- // Match the link `solid` style, which black underline
1465
- "--_hds-list-marker-color": "var(--hds-ui-colors-black)"
1466
- }, _style);
1467
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Message.Description, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref, style }, rest), { children })) });
1416
+ var _b = _a, { children, size = "small" } = _b, rest = __objRest(_b, ["children", "size"]);
1417
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref }, rest), { children }));
1468
1418
  }
1469
1419
  );
1470
1420
  ErrorSummaryList.displayName = "ErrorSummary.List";
1471
- var ErrorSummaryItem = (0, import_react27.forwardRef)(
1421
+ var ErrorSummaryItem = (0, import_react26.forwardRef)(
1472
1422
  (_a, ref) => {
1473
1423
  var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1474
1424
  function onClick(e) {
@@ -1478,14 +1428,24 @@ var ErrorSummaryItem = (0, import_react27.forwardRef)(
1478
1428
  e.preventDefault();
1479
1429
  }
1480
1430
  }
1481
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("li", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1431
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("li", __spreadProps(__spreadValues({ className: (0, import_typed_classname23.clsx)(`hds-error-summary__list-item`), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1432
+ Link,
1433
+ __spreadProps(__spreadValues({
1434
+ size: "small",
1435
+ href,
1436
+ variant: "inverted-no-underline"
1437
+ }, linkProps), {
1438
+ onClick,
1439
+ children
1440
+ })
1441
+ ) }));
1482
1442
  }
1483
1443
  );
1484
1444
  ErrorSummaryItem.displayName = "ErrorSummary.Item";
1485
- var ErrorSummary = (0, import_react27.forwardRef)(
1445
+ var ErrorSummary = (0, import_react26.forwardRef)(
1486
1446
  (_a, ref) => {
1487
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1488
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Message, __spreadProps(__spreadValues({ variant: "warning", ref }, rest), { children }));
1447
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1448
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box, __spreadProps(__spreadValues({ ref }, rest), { className: (0, import_typed_classname23.clsx)(`hds-error-summary`, className), children }));
1489
1449
  }
1490
1450
  );
1491
1451
  ErrorSummary.displayName = "ErrorSummary";
@@ -1494,12 +1454,12 @@ ErrorSummary.List = ErrorSummaryList;
1494
1454
  ErrorSummary.Item = ErrorSummaryItem;
1495
1455
 
1496
1456
  // src/form/input/input.tsx
1497
- var import_react28 = require("react");
1457
+ var import_react27 = require("react");
1498
1458
  var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1499
- var import_jsx_runtime26 = require("react/jsx-runtime");
1500
- var Input = (0, import_react28.forwardRef)(function Input2(_a, ref) {
1459
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1460
+ var Input = (0, import_react27.forwardRef)(function Input2(_a, ref) {
1501
1461
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1502
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1462
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1503
1463
  InputGroup,
1504
1464
  {
1505
1465
  className: (0, import_typed_classname24.clsx)("hds-input", className),
@@ -1511,35 +1471,35 @@ var Input = (0, import_react28.forwardRef)(function Input2(_a, ref) {
1511
1471
  readOnly,
1512
1472
  style,
1513
1473
  variant,
1514
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1474
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1515
1475
  }
1516
1476
  );
1517
1477
  });
1518
1478
  Input.displayName = "Input";
1519
1479
 
1520
1480
  // src/form/radio-button/radio-button.tsx
1521
- var import_react30 = require("react");
1481
+ var import_react29 = require("react");
1522
1482
  var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1523
1483
 
1524
1484
  // src/form/radio-button/radio-group.tsx
1525
- var import_react29 = require("react");
1526
- var import_jsx_runtime27 = require("react/jsx-runtime");
1527
- var RadioGroupContext = (0, import_react29.createContext)({
1485
+ var import_react28 = require("react");
1486
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1487
+ var RadioGroupContext = (0, import_react28.createContext)({
1528
1488
  name: void 0,
1529
1489
  hasError: false,
1530
1490
  onChange: () => {
1531
1491
  return void 0;
1532
1492
  }
1533
1493
  });
1534
- var useRadioGroupContext = () => (0, import_react29.useContext)(RadioGroupContext);
1535
- var RadioGroup = (0, import_react29.forwardRef)(function RadioGroup2(_a, ref) {
1494
+ var useRadioGroupContext = () => (0, import_react28.useContext)(RadioGroupContext);
1495
+ var RadioGroup = (0, import_react28.forwardRef)(function RadioGroup2(_a, ref) {
1536
1496
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1537
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1497
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1538
1498
  });
1539
1499
  RadioGroup.displayName = "RadioGroup";
1540
1500
 
1541
1501
  // src/form/radio-button/radio-button.tsx
1542
- var import_jsx_runtime28 = require("react/jsx-runtime");
1502
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1543
1503
  var isChecked = ({
1544
1504
  checked,
1545
1505
  selectedValue,
@@ -1549,7 +1509,7 @@ var isChecked = ({
1549
1509
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1550
1510
  return void 0;
1551
1511
  };
1552
- var RadioButton = (0, import_react30.forwardRef)(
1512
+ var RadioButton = (0, import_react29.forwardRef)(
1553
1513
  (_a, ref) => {
1554
1514
  var _b = _a, {
1555
1515
  checked,
@@ -1577,7 +1537,7 @@ var RadioButton = (0, import_react30.forwardRef)(
1577
1537
  ]);
1578
1538
  const { hasError: hasFieldsetError } = useFieldsetContext();
1579
1539
  const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
1580
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1540
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1581
1541
  "div",
1582
1542
  {
1583
1543
  className: (0, import_typed_classname25.clsx)(
@@ -1589,8 +1549,8 @@ var RadioButton = (0, import_react30.forwardRef)(
1589
1549
  className
1590
1550
  ),
1591
1551
  children: [
1592
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { children: [
1593
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1552
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
1553
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1594
1554
  "input",
1595
1555
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1596
1556
  checked: isChecked({ checked, selectedValue, value }),
@@ -1599,8 +1559,8 @@ var RadioButton = (0, import_react30.forwardRef)(
1599
1559
  type: "radio"
1600
1560
  })
1601
1561
  ),
1602
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1603
- title ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1562
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1563
+ title ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1604
1564
  ] }),
1605
1565
  title ? children : null
1606
1566
  ]
@@ -1611,12 +1571,12 @@ var RadioButton = (0, import_react30.forwardRef)(
1611
1571
  RadioButton.displayName = "RadioButton";
1612
1572
 
1613
1573
  // src/form/select/select.tsx
1614
- var import_react31 = require("react");
1574
+ var import_react30 = require("react");
1615
1575
  var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1616
- var import_jsx_runtime29 = require("react/jsx-runtime");
1617
- var Select = (0, import_react31.forwardRef)(function Select2(_a, ref) {
1576
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1577
+ var Select = (0, import_react30.forwardRef)(function Select2(_a, ref) {
1618
1578
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
1619
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1579
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1620
1580
  InputGroup,
1621
1581
  {
1622
1582
  className: (0, import_typed_classname26.clsx)("hds-select", className),
@@ -1627,19 +1587,19 @@ var Select = (0, import_react31.forwardRef)(function Select2(_a, ref) {
1627
1587
  labelProps,
1628
1588
  style,
1629
1589
  variant,
1630
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1590
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1631
1591
  }
1632
1592
  );
1633
1593
  });
1634
1594
  Select.displayName = "Select";
1635
1595
 
1636
1596
  // src/form/textarea/textarea.tsx
1637
- var import_react32 = require("react");
1597
+ var import_react31 = require("react");
1638
1598
  var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1639
- var import_jsx_runtime30 = require("react/jsx-runtime");
1640
- var Textarea = (0, import_react32.forwardRef)(function Textarea2(_a, ref) {
1599
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1600
+ var Textarea = (0, import_react31.forwardRef)(function Textarea2(_a, ref) {
1641
1601
  var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1642
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1602
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1643
1603
  InputGroup,
1644
1604
  {
1645
1605
  className: (0, import_typed_classname27.clsx)("hds-textarea", className),
@@ -1651,37 +1611,37 @@ var Textarea = (0, import_react32.forwardRef)(function Textarea2(_a, ref) {
1651
1611
  readOnly,
1652
1612
  style,
1653
1613
  variant,
1654
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1614
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1655
1615
  }
1656
1616
  );
1657
1617
  });
1658
1618
  Textarea.displayName = "Textarea";
1659
1619
 
1660
1620
  // src/footer/footer.tsx
1661
- var import_react33 = require("react");
1621
+ var import_react32 = require("react");
1662
1622
  var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1663
1623
  var import_react_slot10 = require("@radix-ui/react-slot");
1664
- var import_jsx_runtime31 = require("react/jsx-runtime");
1665
- var FooterLogo = (0, import_react33.forwardRef)(
1624
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1625
+ var FooterLogo = (0, import_react32.forwardRef)(
1666
1626
  (_a, ref) => {
1667
1627
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1668
1628
  const Component = asChild ? import_react_slot10.Slot : "div";
1669
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname28.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1629
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname28.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1670
1630
  }
1671
1631
  );
1672
1632
  FooterLogo.displayName = "Footer.Logo";
1673
- var FooterButtonLink = (0, import_react33.forwardRef)(
1633
+ var FooterButtonLink = (0, import_react32.forwardRef)(
1674
1634
  (_a, ref) => {
1675
1635
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1676
1636
  const Component = asChild ? import_react_slot10.Slot : "a";
1677
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { asChild: true, variant: "inverted", className: (0, import_typed_classname28.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1637
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { asChild: true, variant: "inverted", className: (0, import_typed_classname28.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1678
1638
  }
1679
1639
  );
1680
1640
  FooterButtonLink.displayName = "FooterButton";
1681
- var FooterLinkSections = (0, import_react33.forwardRef)(
1641
+ var FooterLinkSections = (0, import_react32.forwardRef)(
1682
1642
  (_a, ref) => {
1683
1643
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1684
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1644
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1685
1645
  Accordion,
1686
1646
  __spreadProps(__spreadValues({
1687
1647
  className: (0, import_typed_classname28.clsx)("hds-footer__link-sections", className),
@@ -1693,36 +1653,36 @@ var FooterLinkSections = (0, import_react33.forwardRef)(
1693
1653
  }
1694
1654
  );
1695
1655
  FooterLinkSections.displayName = "Footer.LinkSections";
1696
- var FooterLinkSection = (0, import_react33.forwardRef)(
1656
+ var FooterLinkSection = (0, import_react32.forwardRef)(
1697
1657
  (_a, ref) => {
1698
1658
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1699
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LinkList, { children });
1700
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1701
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1659
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkList, { children });
1660
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1661
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1702
1662
  Accordion.Item,
1703
1663
  __spreadProps(__spreadValues({
1704
1664
  className: (0, import_typed_classname28.clsx)(`hds-footer__link-section`, className),
1705
1665
  ref
1706
1666
  }, rest), {
1707
1667
  children: [
1708
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Accordion.Header, { children: heading }),
1709
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Accordion.Content, { children: linkListChildren })
1668
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Header, { children: heading }),
1669
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Content, { children: linkListChildren })
1710
1670
  ]
1711
1671
  })
1712
1672
  ),
1713
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_typed_classname28.clsx)(`hds-footer__link-section`, className), children: [
1714
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h2", { children: heading }),
1673
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_typed_classname28.clsx)(`hds-footer__link-section`, className), children: [
1674
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { children: heading }),
1715
1675
  linkListChildren
1716
1676
  ] })
1717
1677
  ] });
1718
1678
  }
1719
1679
  );
1720
1680
  FooterLinkSection.displayName = "Footer.LinkSection";
1721
- var Footer = (0, import_react33.forwardRef)(
1681
+ var Footer = (0, import_react32.forwardRef)(
1722
1682
  (_a, ref) => {
1723
1683
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1724
1684
  const Component = asChild ? import_react_slot10.Slot : "footer";
1725
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1685
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1726
1686
  Component,
1727
1687
  __spreadProps(__spreadValues({
1728
1688
  className: (0, import_typed_classname28.clsx)(
@@ -1746,9 +1706,9 @@ Footer.LinkSection = FooterLinkSection;
1746
1706
  // src/help-text/help-text.tsx
1747
1707
  var Popover = __toESM(require("@radix-ui/react-popover"));
1748
1708
  var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1749
- var import_react34 = require("react");
1750
- var import_jsx_runtime32 = require("react/jsx-runtime");
1751
- var HelpText = (0, import_react34.forwardRef)(
1709
+ var import_react33 = require("react");
1710
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1711
+ var HelpText = (0, import_react33.forwardRef)(
1752
1712
  (_a, ref) => {
1753
1713
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1754
1714
  return (
@@ -1756,8 +1716,8 @@ var HelpText = (0, import_react34.forwardRef)(
1756
1716
  // In the future we can use the native popover api, but as of writing, though all browsers support it
1757
1717
  // it's not far enough back to be used in production
1758
1718
  // https://caniuse.com/mdn-html_elements_input_popovertarget
1759
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Popover.Root, { children: [
1760
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1719
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover.Root, { children: [
1720
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1761
1721
  "button",
1762
1722
  __spreadProps(__spreadValues({
1763
1723
  ref,
@@ -1768,12 +1728,12 @@ var HelpText = (0, import_react34.forwardRef)(
1768
1728
  children
1769
1729
  })
1770
1730
  ) }),
1771
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1731
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1772
1732
  Box,
1773
1733
  __spreadProps(__spreadValues({}, boxProps), {
1774
1734
  className: (0, import_typed_classname29.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1775
1735
  children: [
1776
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box.CloseButton, {}) }),
1736
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Box.CloseButton, {}) }),
1777
1737
  helpText
1778
1738
  ]
1779
1739
  })
@@ -1787,13 +1747,13 @@ HelpText.displayName = "HelpText";
1787
1747
  // src/layout/container/container.tsx
1788
1748
  var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1789
1749
  var import_react_slot11 = require("@radix-ui/react-slot");
1790
- var import_react35 = require("react");
1791
- var import_jsx_runtime33 = require("react/jsx-runtime");
1792
- var Container = (0, import_react35.forwardRef)(
1750
+ var import_react34 = require("react");
1751
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1752
+ var Container = (0, import_react34.forwardRef)(
1793
1753
  (_a, ref) => {
1794
1754
  var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
1795
1755
  const Component = asChild ? import_react_slot11.Slot : Tag;
1796
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1756
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1797
1757
  Component,
1798
1758
  __spreadProps(__spreadValues({}, rest), {
1799
1759
  className: (0, import_typed_classname30.clsx)(
@@ -1812,7 +1772,7 @@ Container.displayName = "Container";
1812
1772
  // src/layout/grid/grid.tsx
1813
1773
  var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1814
1774
  var import_react_slot12 = require("@radix-ui/react-slot");
1815
- var import_react36 = require("react");
1775
+ var import_react35 = require("react");
1816
1776
 
1817
1777
  // src/layout/responsive.ts
1818
1778
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1833,13 +1793,13 @@ function getSpacingVariable(size) {
1833
1793
  }
1834
1794
 
1835
1795
  // src/layout/grid/grid.tsx
1836
- var import_jsx_runtime34 = require("react/jsx-runtime");
1837
- var GridItem = (0, import_react36.forwardRef)(
1796
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1797
+ var GridItem = (0, import_react35.forwardRef)(
1838
1798
  (_a, ref) => {
1839
1799
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1840
1800
  const Component = asChild ? import_react_slot12.Slot : "div";
1841
1801
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1842
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1802
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1843
1803
  Component,
1844
1804
  __spreadProps(__spreadValues({
1845
1805
  style,
@@ -1852,12 +1812,12 @@ var GridItem = (0, import_react36.forwardRef)(
1852
1812
  }
1853
1813
  );
1854
1814
  GridItem.displayName = "Grid.Item";
1855
- var Grid = (0, import_react36.forwardRef)(
1815
+ var Grid = (0, import_react35.forwardRef)(
1856
1816
  (_a, ref) => {
1857
1817
  var _b = _a, { children, asChild, className, span, center, style: _style, gap, gapX, gapY } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap", "gapX", "gapY"]);
1858
1818
  const Component = asChild ? import_react_slot12.Slot : "div";
1859
1819
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
1860
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1820
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1861
1821
  Component,
1862
1822
  __spreadProps(__spreadValues({
1863
1823
  style,
@@ -1875,10 +1835,10 @@ Grid.Item = GridItem;
1875
1835
  // src/layout/stack/stack.tsx
1876
1836
  var React4 = require("react");
1877
1837
  var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1878
- var import_react37 = require("react");
1838
+ var import_react36 = require("react");
1879
1839
  var import_react_slot13 = require("@radix-ui/react-slot");
1880
- var import_jsx_runtime35 = require("react/jsx-runtime");
1881
- var Stack = (0, import_react37.forwardRef)(
1840
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1841
+ var Stack = (0, import_react36.forwardRef)(
1882
1842
  (_a, ref) => {
1883
1843
  var _b = _a, {
1884
1844
  children,
@@ -1907,7 +1867,7 @@ var Stack = (0, import_react37.forwardRef)(
1907
1867
  ]);
1908
1868
  const Component = asChild ? import_react_slot13.Slot : "div";
1909
1869
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
1910
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1870
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1911
1871
  Component,
1912
1872
  __spreadProps(__spreadValues({
1913
1873
  style,
@@ -1920,28 +1880,82 @@ var Stack = (0, import_react37.forwardRef)(
1920
1880
  }
1921
1881
  );
1922
1882
  Stack.displayName = "Stack";
1923
- var HStack = (0, import_react37.forwardRef)((props, ref) => {
1924
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1883
+ var HStack = (0, import_react36.forwardRef)((props, ref) => {
1884
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1925
1885
  });
1926
1886
  HStack.displayName = "HStack";
1927
- var VStack = (0, import_react37.forwardRef)((props, ref) => {
1928
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1887
+ var VStack = (0, import_react36.forwardRef)((props, ref) => {
1888
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1929
1889
  });
1930
1890
  VStack.displayName = "VStack";
1931
1891
 
1932
- // src/modal/modal.tsx
1933
- var import_react38 = require("react");
1892
+ // src/message/message.tsx
1893
+ var import_react37 = require("react");
1934
1894
  var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1935
1895
  var import_react_slot14 = require("@radix-ui/react-slot");
1896
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1897
+ var MessageTitle = (0, import_react37.forwardRef)(
1898
+ (_a, ref) => {
1899
+ var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1900
+ const Component = asChild ? import_react_slot14.Slot : "div";
1901
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1902
+ Component,
1903
+ __spreadValues({
1904
+ className: (0, import_typed_classname33.clsx)("hds-message__title", className),
1905
+ ref
1906
+ }, rest)
1907
+ );
1908
+ }
1909
+ );
1910
+ MessageTitle.displayName = "Message.Title";
1911
+ var MessageDescription = (0, import_react37.forwardRef)(
1912
+ (_a, ref) => {
1913
+ var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1914
+ const Component = asChild ? import_react_slot14.Slot : "div";
1915
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1916
+ Component,
1917
+ __spreadValues({
1918
+ className: (0, import_typed_classname33.clsx)("hds-message__description", className),
1919
+ ref
1920
+ }, rest)
1921
+ );
1922
+ }
1923
+ );
1924
+ MessageDescription.displayName = "Message.Description";
1925
+ var Message = (0, import_react37.forwardRef)(
1926
+ (_a, ref) => {
1927
+ var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1928
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1929
+ Box,
1930
+ __spreadProps(__spreadValues({
1931
+ className: (0, import_typed_classname33.clsx)(`hds-message`, `hds-message--${variant}`, className),
1932
+ ref
1933
+ }, rest), {
1934
+ children: [
1935
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: (0, import_typed_classname33.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1936
+ children
1937
+ ]
1938
+ })
1939
+ );
1940
+ }
1941
+ );
1942
+ Message.displayName = "Message";
1943
+ Message.Title = MessageTitle;
1944
+ Message.Description = MessageDescription;
1945
+
1946
+ // src/modal/modal.tsx
1947
+ var import_react38 = require("react");
1948
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1949
+ var import_react_slot15 = require("@radix-ui/react-slot");
1936
1950
  var import_jsx_runtime36 = require("react/jsx-runtime");
1937
1951
  var ModalHeader = (0, import_react38.forwardRef)(
1938
1952
  (_a, ref) => {
1939
1953
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1940
- const Component = asChild ? import_react_slot14.Slot : "h1";
1954
+ const Component = asChild ? import_react_slot15.Slot : "h1";
1941
1955
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1942
1956
  Component,
1943
1957
  __spreadValues({
1944
- className: (0, import_typed_classname33.clsx)("hds-modal__header", className),
1958
+ className: (0, import_typed_classname34.clsx)("hds-modal__header", className),
1945
1959
  ref
1946
1960
  }, rest)
1947
1961
  );
@@ -1951,11 +1965,11 @@ ModalHeader.displayName = "Modal.Header";
1951
1965
  var ModalContent = (0, import_react38.forwardRef)(
1952
1966
  (_a, ref) => {
1953
1967
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1954
- const Component = asChild ? import_react_slot14.Slot : "div";
1968
+ const Component = asChild ? import_react_slot15.Slot : "div";
1955
1969
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1956
1970
  Component,
1957
1971
  __spreadValues({
1958
- className: (0, import_typed_classname33.clsx)("hds-modal__content", className),
1972
+ className: (0, import_typed_classname34.clsx)("hds-modal__content", className),
1959
1973
  ref
1960
1974
  }, rest)
1961
1975
  );
@@ -1965,11 +1979,11 @@ ModalContent.displayName = "Modal.Content";
1965
1979
  var ModalFooter = (0, import_react38.forwardRef)(
1966
1980
  (_a, ref) => {
1967
1981
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1968
- const Component = asChild ? import_react_slot14.Slot : "footer";
1982
+ const Component = asChild ? import_react_slot15.Slot : "footer";
1969
1983
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1970
1984
  Component,
1971
1985
  __spreadValues({
1972
- className: (0, import_typed_classname33.clsx)("hds-modal__footer", className),
1986
+ className: (0, import_typed_classname34.clsx)("hds-modal__footer", className),
1973
1987
  ref
1974
1988
  }, rest)
1975
1989
  );
@@ -2006,7 +2020,7 @@ var Modal = (0, import_react38.forwardRef)(
2006
2020
  Box,
2007
2021
  {
2008
2022
  asChild: true,
2009
- className: (0, import_typed_classname33.clsx)("hds-modal", className),
2023
+ className: (0, import_typed_classname34.clsx)("hds-modal", className),
2010
2024
  closeable: true,
2011
2025
  onClick: onDialogClick,
2012
2026
  onClose: onCloseButtonClick,
@@ -2042,12 +2056,12 @@ function useScrollLock(modalRef, bodyClass) {
2042
2056
 
2043
2057
  // src/navbar/navbar.tsx
2044
2058
  var import_react40 = require("react");
2045
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2046
- var import_react_slot15 = require("@radix-ui/react-slot");
2059
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2060
+ var import_react_slot16 = require("@radix-ui/react-slot");
2047
2061
 
2048
2062
  // src/navbar/navbar-expandable-menu.tsx
2049
2063
  var import_react39 = require("react");
2050
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2064
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2051
2065
 
2052
2066
  // src/navbar/icons.tsx
2053
2067
  var import_jsx_runtime37 = require("react/jsx-runtime");
@@ -2086,12 +2100,12 @@ function NavbarExpandableMenu({ children }) {
2086
2100
  (0, import_react39.useEffect)(() => {
2087
2101
  if (open) {
2088
2102
  window.scrollTo(0, 0);
2089
- document.body.classList.add((0, import_typed_classname34.clsx)("hds-navbar-scroll-lock"));
2103
+ document.body.classList.add((0, import_typed_classname35.clsx)("hds-navbar-scroll-lock"));
2090
2104
  const releaseFocusTrap2 = focusTrap(
2091
- document.getElementsByClassName((0, import_typed_classname34.clsx)("hds-navbar"))[0]
2105
+ document.getElementsByClassName((0, import_typed_classname35.clsx)("hds-navbar"))[0]
2092
2106
  );
2093
2107
  return () => {
2094
- document.body.classList.remove((0, import_typed_classname34.clsx)("hds-navbar-scroll-lock"));
2108
+ document.body.classList.remove((0, import_typed_classname35.clsx)("hds-navbar-scroll-lock"));
2095
2109
  releaseFocusTrap2();
2096
2110
  };
2097
2111
  }
@@ -2125,7 +2139,7 @@ var NavbarExpandableMenuTrigger = (0, import_react39.forwardRef)(
2125
2139
  __spreadProps(__spreadValues({
2126
2140
  "aria-expanded": open,
2127
2141
  "aria-controls": contentId,
2128
- className: (0, import_typed_classname34.clsx)(
2142
+ className: (0, import_typed_classname35.clsx)(
2129
2143
  "hds-navbar__item",
2130
2144
  className,
2131
2145
  open ? "hds-navbar__item--open" : "hds-navbar__item--closed"
@@ -2138,8 +2152,8 @@ var NavbarExpandableMenuTrigger = (0, import_react39.forwardRef)(
2138
2152
  }, rest), {
2139
2153
  children: [
2140
2154
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2141
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname34.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2142
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname34.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2155
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname35.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2156
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname35.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2143
2157
  ] }),
2144
2158
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { style: { width: 32, height: 32 }, children: open ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MenuIcon, {}) })
2145
2159
  ]
@@ -2155,11 +2169,11 @@ var NavbarExpandableMenuContent = (0, import_react39.forwardRef)((_a, ref) => {
2155
2169
  "section",
2156
2170
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
2157
2171
  id: contentId,
2158
- className: (0, import_typed_classname34.clsx)("hds-navbar__expandable-menu-content", className),
2172
+ className: (0, import_typed_classname35.clsx)("hds-navbar__expandable-menu-content", className),
2159
2173
  "data-state": open ? "open" : "closed"
2160
- }), { inert: open ? void 0 : "true" }), {
2174
+ }), { inert: inertPropValue(!open) }), {
2161
2175
  ref,
2162
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_typed_classname34.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2176
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_typed_classname35.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2163
2177
  })
2164
2178
  );
2165
2179
  });
@@ -2170,20 +2184,20 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
2170
2184
  var NavbarLogo = (0, import_react40.forwardRef)(
2171
2185
  (_a, ref) => {
2172
2186
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
2173
- const Component = asChild ? import_react_slot15.Slot : "div";
2174
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2187
+ const Component = asChild ? import_react_slot16.Slot : "div";
2188
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname36.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2175
2189
  }
2176
2190
  );
2177
2191
  NavbarLogo.displayName = "Navbar.Logo";
2178
2192
  var NavbarLogoAndServiceText = (0, import_react40.forwardRef)(
2179
2193
  (_a, ref) => {
2180
2194
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
2181
- const Component = asChild ? import_react_slot15.Slot : "div";
2195
+ const Component = asChild ? import_react_slot16.Slot : "div";
2182
2196
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2183
2197
  Component,
2184
2198
  __spreadProps(__spreadValues({
2185
2199
  ref,
2186
- className: (0, import_typed_classname35.clsx)(
2200
+ className: (0, import_typed_classname36.clsx)(
2187
2201
  "hds-navbar__logo-and-service-text",
2188
2202
  `hds-navbar__logo-and-service-text--${variant}`,
2189
2203
  className
@@ -2198,26 +2212,26 @@ NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
2198
2212
  var NavbarItemIcon = (0, import_react40.forwardRef)(
2199
2213
  (_a, ref) => {
2200
2214
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2201
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_slot15.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2215
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_slot16.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname36.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2202
2216
  }
2203
2217
  );
2204
2218
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
2205
2219
  var NavbarItem = (0, import_react40.forwardRef)(
2206
2220
  (_a, ref) => {
2207
2221
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2208
- const Component = asChild ? import_react_slot15.Slot : "div";
2209
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2222
+ const Component = asChild ? import_react_slot16.Slot : "div";
2223
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname36.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2210
2224
  }
2211
2225
  );
2212
2226
  NavbarItem.displayName = "Navbar.Item";
2213
2227
  var NavbarButtonItem = (0, import_react40.forwardRef)(
2214
2228
  (_a, ref) => {
2215
2229
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2216
- const Component = asChild ? import_react_slot15.Slot : "button";
2230
+ const Component = asChild ? import_react_slot16.Slot : "button";
2217
2231
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2218
2232
  Component,
2219
2233
  __spreadProps(__spreadValues({
2220
- className: (0, import_typed_classname35.clsx)("hds-navbar__item", className),
2234
+ className: (0, import_typed_classname36.clsx)("hds-navbar__item", className),
2221
2235
  ref,
2222
2236
  type: "button"
2223
2237
  }, rest), {
@@ -2230,19 +2244,19 @@ NavbarButtonItem.displayName = "Navbar.ButtonItem";
2230
2244
  var NavbarLinkItem = (0, import_react40.forwardRef)(
2231
2245
  (_a, ref) => {
2232
2246
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2233
- const Component = asChild ? import_react_slot15.Slot : "a";
2234
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2247
+ const Component = asChild ? import_react_slot16.Slot : "a";
2248
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname36.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2235
2249
  }
2236
2250
  );
2237
2251
  NavbarLinkItem.displayName = "Navbar.LinkItem";
2238
2252
  var NavbarNavigation = (0, import_react40.forwardRef)(
2239
2253
  (_a, ref) => {
2240
2254
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2241
- const Component = asChild ? import_react_slot15.Slot : "div";
2255
+ const Component = asChild ? import_react_slot16.Slot : "div";
2242
2256
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2243
2257
  Component,
2244
2258
  __spreadValues({
2245
- className: (0, import_typed_classname35.clsx)("hds-navbar__navigation", className),
2259
+ className: (0, import_typed_classname36.clsx)("hds-navbar__navigation", className),
2246
2260
  ref
2247
2261
  }, rest)
2248
2262
  );
@@ -2252,11 +2266,11 @@ NavbarNavigation.displayName = "Navbar.Navigation";
2252
2266
  var Navbar = (0, import_react40.forwardRef)(
2253
2267
  (_a, ref) => {
2254
2268
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
2255
- const Component = asChild ? import_react_slot15.Slot : "header";
2269
+ const Component = asChild ? import_react_slot16.Slot : "header";
2256
2270
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2257
2271
  Component,
2258
2272
  __spreadProps(__spreadValues({
2259
- className: (0, import_typed_classname35.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2273
+ className: (0, import_typed_classname36.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2260
2274
  ref
2261
2275
  }, rest), {
2262
2276
  children
@@ -2277,7 +2291,7 @@ Navbar.ItemIcon = NavbarItemIcon;
2277
2291
  Navbar.Navigation = NavbarNavigation;
2278
2292
 
2279
2293
  // src/show-more/show-more.tsx
2280
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2294
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2281
2295
  var import_react41 = require("react");
2282
2296
  var import_jsx_runtime40 = require("react/jsx-runtime");
2283
2297
  var ShowMoreButton = (0, import_react41.forwardRef)(
@@ -2287,7 +2301,7 @@ var ShowMoreButton = (0, import_react41.forwardRef)(
2287
2301
  "button",
2288
2302
  __spreadProps(__spreadValues({
2289
2303
  ref,
2290
- className: (0, import_typed_classname36.clsx)(
2304
+ className: (0, import_typed_classname37.clsx)(
2291
2305
  "hds-show-more",
2292
2306
  variant === "show-more-show-less" && "hds-show-more--show-less",
2293
2307
  className
@@ -2297,7 +2311,7 @@ var ShowMoreButton = (0, import_react41.forwardRef)(
2297
2311
  }, rest), {
2298
2312
  children: [
2299
2313
  text,
2300
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: (0, import_typed_classname36.clsx)("hds-show-more__icon") })
2314
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: (0, import_typed_classname37.clsx)("hds-show-more__icon") })
2301
2315
  ]
2302
2316
  })
2303
2317
  );
@@ -2306,8 +2320,8 @@ var ShowMoreButton = (0, import_react41.forwardRef)(
2306
2320
  ShowMoreButton.displayName = "ShowMoreButton";
2307
2321
 
2308
2322
  // src/skeleton/skeleton.tsx
2309
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2310
- var import_react_slot16 = require("@radix-ui/react-slot");
2323
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2324
+ var import_react_slot17 = require("@radix-ui/react-slot");
2311
2325
  var import_react42 = require("react");
2312
2326
  var import_jsx_runtime41 = require("react/jsx-runtime");
2313
2327
  var Skeleton = (0, import_react42.forwardRef)(
@@ -2333,11 +2347,11 @@ var Skeleton = (0, import_react42.forwardRef)(
2333
2347
  "className",
2334
2348
  "style"
2335
2349
  ]);
2336
- const Component = asChild ? import_react_slot16.Slot : Tag;
2350
+ const Component = asChild ? import_react_slot17.Slot : Tag;
2337
2351
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2338
2352
  Component,
2339
2353
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2340
- className: (0, import_typed_classname37.clsx)(
2354
+ className: (0, import_typed_classname38.clsx)(
2341
2355
  "hds-skeleton",
2342
2356
  `hds-skeleton--${variant}`,
2343
2357
  !animation && `hds-skeleton--no-animation`,
@@ -2345,7 +2359,7 @@ var Skeleton = (0, import_react42.forwardRef)(
2345
2359
  ),
2346
2360
  style: __spreadProps(__spreadValues({}, style), { width, height }),
2347
2361
  "aria-hidden": true
2348
- }, { inert: "true" }), {
2362
+ }, { inert: inertPropValue(true) }), {
2349
2363
  ref
2350
2364
  }), rest), {
2351
2365
  children
@@ -2357,7 +2371,7 @@ Skeleton.displayName = "Skeleton";
2357
2371
 
2358
2372
  // src/spinner/spinner.tsx
2359
2373
  var import_react43 = require("react");
2360
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2374
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2361
2375
  var import_jsx_runtime42 = require("react/jsx-runtime");
2362
2376
  var Spinner = (0, import_react43.forwardRef)(
2363
2377
  (_a, ref) => {
@@ -2368,7 +2382,7 @@ var Spinner = (0, import_react43.forwardRef)(
2368
2382
  __spreadValues({
2369
2383
  title,
2370
2384
  style,
2371
- className: (0, import_typed_classname38.clsx)(
2385
+ className: (0, import_typed_classname39.clsx)(
2372
2386
  "hds-spinner",
2373
2387
  `hds-spinner--${size}`,
2374
2388
  delay && "hds-spinner--delay",
@@ -2382,7 +2396,7 @@ var Spinner = (0, import_react43.forwardRef)(
2382
2396
  Spinner.displayName = "Spinner";
2383
2397
 
2384
2398
  // src/step-indicator/step-indicator.tsx
2385
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2399
+ var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2386
2400
  var import_react44 = require("react");
2387
2401
  var import_jsx_runtime43 = require("react/jsx-runtime");
2388
2402
  var StepIndicator = (0, import_react44.forwardRef)(
@@ -2408,23 +2422,23 @@ var StepIndicator = (0, import_react44.forwardRef)(
2408
2422
  "div",
2409
2423
  __spreadProps(__spreadValues({
2410
2424
  ref,
2411
- className: (0, import_typed_classname39.clsx)("hds-step-indicator", className),
2425
+ className: (0, import_typed_classname40.clsx)("hds-step-indicator", className),
2412
2426
  lang
2413
2427
  }, rest), {
2414
2428
  children: [
2415
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: (0, import_typed_classname39.clsx)("hds-step-indicator__header"), children: [
2416
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_typed_classname39.clsx)("hds-step-indicator__left-label"), children: label }),
2429
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: (0, import_typed_classname40.clsx)("hds-step-indicator__header"), children: [
2430
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_typed_classname40.clsx)("hds-step-indicator__left-label"), children: label }),
2417
2431
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2418
2432
  ] }),
2419
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: (0, import_typed_classname39.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2433
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: (0, import_typed_classname40.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2420
2434
  "div",
2421
2435
  {
2422
- className: (0, import_typed_classname39.clsx)("hds-step-indicator__step"),
2436
+ className: (0, import_typed_classname40.clsx)("hds-step-indicator__step"),
2423
2437
  "data-state": getStepState(i + 1, activeStep)
2424
2438
  },
2425
2439
  i
2426
2440
  )) }),
2427
- title ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TitleComponent, { className: (0, import_typed_classname39.clsx)("hds-step-indicator__title"), children: title }) : null
2441
+ title ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TitleComponent, { className: (0, import_typed_classname40.clsx)("hds-step-indicator__title"), children: title }) : null
2428
2442
  ]
2429
2443
  })
2430
2444
  );
@@ -2449,17 +2463,17 @@ function getStepState(renderedStep, activeStep) {
2449
2463
 
2450
2464
  // src/styled-html/styled-html.tsx
2451
2465
  var import_react45 = require("react");
2452
- var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2453
- var import_react_slot17 = require("@radix-ui/react-slot");
2466
+ var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2467
+ var import_react_slot18 = require("@radix-ui/react-slot");
2454
2468
  var import_jsx_runtime44 = require("react/jsx-runtime");
2455
2469
  var StyledHtml = (0, import_react45.forwardRef)(
2456
2470
  (_a, ref) => {
2457
2471
  var _b = _a, { asChild, children, size, unstable_darkmode: darkmode = false, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "unstable_darkmode", "className"]);
2458
- const Component = asChild ? import_react_slot17.Slot : "div";
2472
+ const Component = asChild ? import_react_slot18.Slot : "div";
2459
2473
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2460
2474
  Component,
2461
2475
  __spreadProps(__spreadValues({
2462
- className: (0, import_typed_classname40.clsx)(
2476
+ className: (0, import_typed_classname41.clsx)(
2463
2477
  `hds-styled-html`,
2464
2478
  size === "small" && "hds-styled-html--small",
2465
2479
  darkmode && "hds-styled-html--darkmode",
@@ -2475,7 +2489,7 @@ var StyledHtml = (0, import_react45.forwardRef)(
2475
2489
  StyledHtml.displayName = "StyledHtml";
2476
2490
 
2477
2491
  // src/table/table.tsx
2478
- var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2492
+ var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2479
2493
  var import_react46 = require("react");
2480
2494
  var import_jsx_runtime45 = require("react/jsx-runtime");
2481
2495
  var Table = (0, import_react46.forwardRef)(
@@ -2488,7 +2502,7 @@ var Table = (0, import_react46.forwardRef)(
2488
2502
  __spreadProps(__spreadValues({
2489
2503
  "aria-describedby": description ? descriptionId : void 0,
2490
2504
  ref,
2491
- className: (0, import_typed_classname41.clsx)(
2505
+ className: (0, import_typed_classname42.clsx)(
2492
2506
  "hds-table",
2493
2507
  {
2494
2508
  "hds-table--compressed": size === "compressed",
@@ -2503,7 +2517,7 @@ var Table = (0, import_react46.forwardRef)(
2503
2517
  ]
2504
2518
  })
2505
2519
  ),
2506
- description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: (0, import_typed_classname41.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2520
+ description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: (0, import_typed_classname42.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2507
2521
  ] });
2508
2522
  }
2509
2523
  );
@@ -2511,8 +2525,8 @@ Table.displayName = "Table";
2511
2525
 
2512
2526
  // src/tabs/tabs.tsx
2513
2527
  var import_react50 = require("react");
2514
- var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2515
- var import_react_slot19 = require("@radix-ui/react-slot");
2528
+ var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2529
+ var import_react_slot20 = require("@radix-ui/react-slot");
2516
2530
 
2517
2531
  // src/tabs/context.ts
2518
2532
  var import_react47 = require("react");
@@ -2529,14 +2543,14 @@ function useTabsContext() {
2529
2543
 
2530
2544
  // src/tabs/tabs-content.tsx
2531
2545
  var import_react48 = require("react");
2532
- var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2533
- var import_react_slot18 = require("@radix-ui/react-slot");
2546
+ var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2547
+ var import_react_slot19 = require("@radix-ui/react-slot");
2534
2548
  var import_jsx_runtime46 = require("react/jsx-runtime");
2535
2549
  var TabsContents = (0, import_react48.forwardRef)(
2536
2550
  (_a, ref) => {
2537
2551
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2538
- const Component = asChild ? import_react_slot18.Slot : "div";
2539
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname42.clsx)("hds-tabs__contents") }, rest), { children }));
2552
+ const Component = asChild ? import_react_slot19.Slot : "div";
2553
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname43.clsx)("hds-tabs__contents") }, rest), { children }));
2540
2554
  }
2541
2555
  );
2542
2556
  TabsContents.displayName = "Tabs.Contents";
@@ -2544,7 +2558,7 @@ var TabsContent = (0, import_react48.forwardRef)(
2544
2558
  (_a, ref) => {
2545
2559
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2546
2560
  const context = useTabsContext();
2547
- const Component = asChild ? import_react_slot18.Slot : "div";
2561
+ const Component = asChild ? import_react_slot19.Slot : "div";
2548
2562
  if (context.activeTabId === forTabId) {
2549
2563
  return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2550
2564
  }
@@ -2555,7 +2569,7 @@ TabsContent.displayName = "Tabs.Content";
2555
2569
 
2556
2570
  // src/tabs/tabs-list.tsx
2557
2571
  var import_react49 = require("react");
2558
- var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2572
+ var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2559
2573
  var import_jsx_runtime47 = require("react/jsx-runtime");
2560
2574
  var TabsList = (0, import_react49.forwardRef)(
2561
2575
  (_a, ref) => {
@@ -2595,7 +2609,7 @@ var TabsList = (0, import_react49.forwardRef)(
2595
2609
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2596
2610
  "div",
2597
2611
  __spreadProps(__spreadValues({
2598
- className: (0, import_typed_classname43.clsx)(
2612
+ className: (0, import_typed_classname44.clsx)(
2599
2613
  "hds-tabs__list",
2600
2614
  direction === "horizontal" ? {
2601
2615
  "hds-tabs__list--horizontal": wideEnough,
@@ -2626,7 +2640,7 @@ var TabsTab = (0, import_react49.forwardRef)(
2626
2640
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2627
2641
  "button",
2628
2642
  __spreadProps(__spreadValues({
2629
- className: (0, import_typed_classname43.clsx)(
2643
+ className: (0, import_typed_classname44.clsx)(
2630
2644
  "hds-tabs__tab",
2631
2645
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2632
2646
  className
@@ -2650,8 +2664,8 @@ var Tabs = (0, import_react50.forwardRef)(
2650
2664
  (_a, ref) => {
2651
2665
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
2652
2666
  const [activeTabId, setActiveTabId] = (0, import_react50.useState)(defaultTab);
2653
- const Component = asChild ? import_react_slot19.Slot : "div";
2654
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname44.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2667
+ const Component = asChild ? import_react_slot20.Slot : "div";
2668
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname45.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2655
2669
  }
2656
2670
  );
2657
2671
  Tabs.displayName = "Tabs";
@@ -2662,8 +2676,8 @@ Tabs.Content = TabsContent;
2662
2676
 
2663
2677
  // src/text/text.tsx
2664
2678
  var import_react51 = require("react");
2665
- var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2666
- var import_react_slot20 = require("@radix-ui/react-slot");
2679
+ var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2680
+ var import_react_slot21 = require("@radix-ui/react-slot");
2667
2681
  var import_jsx_runtime49 = require("react/jsx-runtime");
2668
2682
  var defaultHTMLTag = {
2669
2683
  "h1-display": "h1",
@@ -2699,12 +2713,12 @@ var Text = (0, import_react51.forwardRef)(
2699
2713
  "children",
2700
2714
  "className"
2701
2715
  ]);
2702
- const Component = asChild ? import_react_slot20.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2716
+ const Component = asChild ? import_react_slot21.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2703
2717
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2704
2718
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2705
2719
  Component,
2706
2720
  __spreadProps(__spreadValues({
2707
- className: (0, import_typed_classname45.clsx)(
2721
+ className: (0, import_typed_classname46.clsx)(
2708
2722
  `hds-text-${variant}`,
2709
2723
  sizeModifier && `hds-text--${sizeModifier}`,
2710
2724
  spacing && "hds-text--spacing",
@@ -2721,14 +2735,14 @@ Text.displayName = "Text";
2721
2735
 
2722
2736
  // src/warning-banner/warning-banner.tsx
2723
2737
  var import_react52 = require("react");
2724
- var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2738
+ var import_typed_classname47 = require("@postenbring/hedwig-css/typed-classname");
2725
2739
  var import_jsx_runtime50 = require("react/jsx-runtime");
2726
2740
  var WarningBanner = (0, import_react52.forwardRef)(
2727
2741
  (_a, ref) => {
2728
2742
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2729
2743
  const descriptionId = (0, import_react52.useId)();
2730
2744
  const expandable = !!description;
2731
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname46.clsx)("hds-warning-banner", className), ref, children: [
2745
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname47.clsx)("hds-warning-banner", className), ref, children: [
2732
2746
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2733
2747
  WarningBannerTitle,
2734
2748
  {
@@ -2752,7 +2766,7 @@ var WarningBannerTitle = (0, import_react52.forwardRef)((_a, ref) => {
2752
2766
  "aria-expanded": open,
2753
2767
  "aria-controls": descriptionId,
2754
2768
  "data-state": open ? "open" : "closed",
2755
- className: (0, import_typed_classname46.clsx)(
2769
+ className: (0, import_typed_classname47.clsx)(
2756
2770
  "hds-warning-banner__title",
2757
2771
  "hds-warning-banner__title-trigger",
2758
2772
  className
@@ -2769,7 +2783,7 @@ var WarningBannerTitle = (0, import_react52.forwardRef)((_a, ref) => {
2769
2783
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2770
2784
  "p",
2771
2785
  __spreadProps(__spreadValues({}, rest), {
2772
- className: (0, import_typed_classname46.clsx)("hds-warning-banner__title", className),
2786
+ className: (0, import_typed_classname47.clsx)("hds-warning-banner__title", className),
2773
2787
  ref,
2774
2788
  children
2775
2789
  })
@@ -2783,7 +2797,7 @@ var WarningBannerDescription = (0, import_react52.forwardRef)(
2783
2797
  "p",
2784
2798
  __spreadValues({
2785
2799
  id,
2786
- className: (0, import_typed_classname46.clsx)("hds-warning-banner__description", className),
2800
+ className: (0, import_typed_classname47.clsx)("hds-warning-banner__description", className),
2787
2801
  ref
2788
2802
  }, rest)
2789
2803
  );
@@ -2877,6 +2891,7 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2877
2891
  VStack,
2878
2892
  WarningBanner,
2879
2893
  focusTrap,
2894
+ inertPropValue,
2880
2895
  useFieldsetContext,
2881
2896
  useHydrated,
2882
2897
  useMergeRefs,