@postenbring/hedwig-react 2.1.3 → 2.2.0

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 (72) hide show
  1. package/dist/alert/alert.d.ts +36 -0
  2. package/dist/alert/alert.d.ts.map +1 -0
  3. package/dist/alert/alert.js +186 -0
  4. package/dist/alert/alert.js.map +1 -0
  5. package/dist/alert/alert.mjs +13 -0
  6. package/dist/alert/alert.mjs.map +1 -0
  7. package/dist/alert/index.d.ts +3 -0
  8. package/dist/alert/index.d.ts.map +1 -0
  9. package/dist/alert/index.js +188 -0
  10. package/dist/alert/index.js.map +1 -0
  11. package/dist/alert/index.mjs +14 -0
  12. package/dist/alert/index.mjs.map +1 -0
  13. package/dist/{chunk-LGEGXOPU.mjs → chunk-3QHKPEXO.mjs} +12 -4
  14. package/dist/chunk-3QHKPEXO.mjs.map +1 -0
  15. package/dist/{chunk-444SCBJD.mjs → chunk-4C76JM3T.mjs} +2 -2
  16. package/dist/chunk-4P4GPVKZ.mjs +63 -0
  17. package/dist/chunk-4P4GPVKZ.mjs.map +1 -0
  18. package/dist/{chunk-6SVLMQUW.mjs → chunk-FUIKSOJF.mjs} +4 -4
  19. package/dist/{chunk-Z2ZCM4BE.mjs → chunk-OS24UCTD.mjs} +2 -2
  20. package/dist/chunk-OVKUPO5U.mjs +1 -0
  21. package/dist/chunk-OVKUPO5U.mjs.map +1 -0
  22. package/dist/{chunk-YQMTDQSQ.mjs → chunk-TC5PD4TA.mjs} +4 -4
  23. package/dist/{chunk-CFAPQFEC.mjs → chunk-ZSYBCM2L.mjs} +5 -5
  24. package/dist/footer/footer.js +11 -3
  25. package/dist/footer/footer.js.map +1 -1
  26. package/dist/footer/footer.mjs +3 -3
  27. package/dist/footer/index.js +11 -3
  28. package/dist/footer/index.js.map +1 -1
  29. package/dist/footer/index.mjs +3 -3
  30. package/dist/form/error-summary/error-summary.js +11 -3
  31. package/dist/form/error-summary/error-summary.js.map +1 -1
  32. package/dist/form/error-summary/error-summary.mjs +5 -5
  33. package/dist/form/error-summary/index.js +11 -3
  34. package/dist/form/error-summary/index.js.map +1 -1
  35. package/dist/form/error-summary/index.mjs +5 -5
  36. package/dist/form/index.js +11 -3
  37. package/dist/form/index.js.map +1 -1
  38. package/dist/form/index.mjs +17 -17
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +637 -573
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +73 -64
  44. package/dist/layout/grid/grid.mjs +2 -2
  45. package/dist/layout/grid/index.mjs +2 -2
  46. package/dist/layout/index.mjs +9 -9
  47. package/dist/layout/stack/index.mjs +2 -2
  48. package/dist/layout/stack/stack.mjs +2 -2
  49. package/dist/list/index.js +11 -3
  50. package/dist/list/index.js.map +1 -1
  51. package/dist/list/index.mjs +2 -2
  52. package/dist/list/link-list.js +11 -3
  53. package/dist/list/link-list.js.map +1 -1
  54. package/dist/list/link-list.mjs +2 -2
  55. package/dist/list/list.d.ts +1 -1
  56. package/dist/list/list.d.ts.map +1 -1
  57. package/dist/list/list.js +11 -3
  58. package/dist/list/list.js.map +1 -1
  59. package/dist/list/list.mjs +1 -1
  60. package/dist/text/text.d.ts +1 -1
  61. package/package.json +5 -5
  62. package/src/alert/alert.stories.tsx +36 -0
  63. package/src/alert/alert.tsx +83 -0
  64. package/src/alert/index.tsx +2 -0
  65. package/src/index.ts +1 -0
  66. package/src/list/list.tsx +12 -4
  67. package/dist/chunk-LGEGXOPU.mjs.map +0 -1
  68. /package/dist/{chunk-444SCBJD.mjs.map → chunk-4C76JM3T.mjs.map} +0 -0
  69. /package/dist/{chunk-6SVLMQUW.mjs.map → chunk-FUIKSOJF.mjs.map} +0 -0
  70. /package/dist/{chunk-Z2ZCM4BE.mjs.map → chunk-OS24UCTD.mjs.map} +0 -0
  71. /package/dist/{chunk-YQMTDQSQ.mjs.map → chunk-TC5PD4TA.mjs.map} +0 -0
  72. /package/dist/{chunk-CFAPQFEC.mjs.map → chunk-ZSYBCM2L.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -63,6 +63,9 @@ __export(index_exports, {
63
63
  AccordionContent: () => AccordionContent,
64
64
  AccordionHeader: () => AccordionHeader,
65
65
  AccordionItem: () => AccordionItem,
66
+ Alert: () => Alert,
67
+ AlertDescription: () => AlertDescription,
68
+ AlertTitle: () => AlertTitle,
66
69
  AutoAnimateHeight: () => AutoAnimateHeight,
67
70
  Badge: () => Badge,
68
71
  Blockquote: () => Blockquote,
@@ -273,71 +276,23 @@ Accordion.Item = AccordionItem;
273
276
  Accordion.Header = AccordionHeader;
274
277
  Accordion.Content = AccordionContent;
275
278
 
276
- // src/badge/badge.tsx
277
- var import_typed_classname5 = require("@postenbring/hedwig-css/typed-classname");
278
- var import_react_slot = require("@radix-ui/react-slot");
279
- var import_react6 = require("react");
280
- var import_jsx_runtime5 = require("react/jsx-runtime");
281
- var Badge = (0, import_react6.forwardRef)(
282
- (_a, ref) => {
283
- var _b = _a, { children, asChild, variant = "lighter", size = "small", className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "size", "className"]);
284
- const Component = asChild ? import_react_slot.Slot : "span";
285
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
286
- Component,
287
- __spreadProps(__spreadValues({
288
- ref,
289
- className: (0, import_typed_classname5.clsx)(
290
- "hds-badge",
291
- `hds-badge--${size}`,
292
- `hds-badge--${variant}`,
293
- className
294
- )
295
- }, rest), {
296
- children
297
- })
298
- );
299
- }
300
- );
301
- Badge.displayName = "Badge";
302
-
303
- // src/blockquote/blockquote.tsx
279
+ // src/alert/alert.tsx
280
+ var import_react7 = require("react");
304
281
  var import_typed_classname6 = require("@postenbring/hedwig-css/typed-classname");
305
282
  var import_react_slot2 = require("@radix-ui/react-slot");
306
- var import_react7 = require("react");
307
- var import_jsx_runtime6 = require("react/jsx-runtime");
308
- var Blockquote = (0, import_react7.forwardRef)(
309
- (_a, ref) => {
310
- var _b = _a, { children, asChild, className, variant } = _b, rest = __objRest(_b, ["children", "asChild", "className", "variant"]);
311
- const Component = asChild ? import_react_slot2.Slot : "blockquote";
312
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
313
- Component,
314
- __spreadProps(__spreadValues({
315
- ref,
316
- className: (0, import_typed_classname6.clsx)(
317
- "hds-blockquote",
318
- variant === "norwegian" && `hds-blockquote--norwegian`,
319
- className
320
- )
321
- }, rest), {
322
- children
323
- })
324
- );
325
- }
326
- );
327
- Blockquote.displayName = "Blockquote";
328
283
 
329
284
  // src/box/box.tsx
330
- var import_react8 = require("react");
331
- var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname");
332
- var import_react_slot3 = require("@radix-ui/react-slot");
333
- var import_jsx_runtime7 = require("react/jsx-runtime");
334
- var BoxCloseButton = (0, import_react8.forwardRef)(
285
+ var import_react6 = require("react");
286
+ var import_typed_classname5 = require("@postenbring/hedwig-css/typed-classname");
287
+ 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)(
335
290
  (_a, ref) => {
336
291
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
337
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
292
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
338
293
  "button",
339
294
  __spreadValues({
340
- className: (0, import_typed_classname7.clsx)("hds-box__close-button", className),
295
+ className: (0, import_typed_classname5.clsx)("hds-box__close-button", className),
341
296
  ref,
342
297
  type: "button"
343
298
  }, rest)
@@ -345,7 +300,7 @@ var BoxCloseButton = (0, import_react8.forwardRef)(
345
300
  }
346
301
  );
347
302
  BoxCloseButton.displayName = "Box.CloseButton";
348
- var Box = (0, import_react8.forwardRef)(
303
+ var Box = (0, import_react6.forwardRef)(
349
304
  (_a, ref) => {
350
305
  var _b = _a, {
351
306
  asChild,
@@ -366,8 +321,8 @@ var Box = (0, import_react8.forwardRef)(
366
321
  "children",
367
322
  "className"
368
323
  ]);
369
- const [closedState, setClosedState] = (0, import_react8.useState)(false);
370
- const onClose = (0, import_react8.useCallback)(() => {
324
+ const [closedState, setClosedState] = (0, import_react6.useState)(false);
325
+ const onClose = (0, import_react6.useCallback)(() => {
371
326
  if (onCloseProp) {
372
327
  const result = onCloseProp();
373
328
  if (result === true) {
@@ -378,11 +333,11 @@ var Box = (0, import_react8.forwardRef)(
378
333
  }
379
334
  }, []);
380
335
  const closed = closedProp != null ? closedProp : closedState;
381
- const Component = asChild ? import_react_slot3.Slot : "div";
382
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
336
+ const Component = asChild ? import_react_slot.Slot : "div";
337
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
383
338
  Component,
384
339
  __spreadProps(__spreadValues({
385
- className: (0, import_typed_classname7.clsx)(
340
+ className: (0, import_typed_classname5.clsx)(
386
341
  "hds-box",
387
342
  variant && `hds-box--${variant}`,
388
343
  { "hds-box--closed": closed },
@@ -391,8 +346,8 @@ var Box = (0, import_react8.forwardRef)(
391
346
  ref
392
347
  }, rest), {
393
348
  children: [
394
- closeable ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
395
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_slot3.Slottable, { 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 })
396
351
  ]
397
352
  })
398
353
  );
@@ -401,24 +356,122 @@ var Box = (0, import_react8.forwardRef)(
401
356
  Box.displayName = "Box";
402
357
  Box.CloseButton = BoxCloseButton;
403
358
 
404
- // src/breadcrumbs/breadcrumbs.tsx
405
- var import_react9 = require("react");
359
+ // src/alert/alert.tsx
360
+ var import_jsx_runtime6 = require("react/jsx-runtime");
361
+ var AlertTitle = (0, import_react7.forwardRef)(
362
+ (_a, ref) => {
363
+ var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
364
+ 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));
366
+ }
367
+ );
368
+ AlertTitle.displayName = "Alert.Title";
369
+ var AlertDescription = (0, import_react7.forwardRef)(
370
+ (_a, ref) => {
371
+ var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
372
+ const Component = asChild ? import_react_slot2.Slot : "div";
373
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
374
+ Component,
375
+ __spreadValues({
376
+ className: (0, import_typed_classname6.clsx)("hds-alert__description", className),
377
+ ref
378
+ }, rest)
379
+ );
380
+ }
381
+ );
382
+ AlertDescription.displayName = "Alert.Description";
383
+ var Alert = (0, import_react7.forwardRef)(
384
+ (_a, ref) => {
385
+ 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)(
387
+ Box,
388
+ __spreadProps(__spreadValues({
389
+ className: (0, import_typed_classname6.clsx)(`hds-alert`, `hds-alert--${variant}`, className),
390
+ ref
391
+ }, rest), {
392
+ children: [
393
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_typed_classname6.clsx)("hds-alert--neutral__icon", iconClassName), children: icon }),
394
+ children
395
+ ]
396
+ })
397
+ );
398
+ }
399
+ );
400
+ Alert.displayName = "Alert";
401
+ Alert.Title = AlertTitle;
402
+ Alert.Description = AlertDescription;
403
+
404
+ // src/badge/badge.tsx
405
+ var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname");
406
+ 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)(
410
+ (_a, ref) => {
411
+ var _b = _a, { children, asChild, variant = "lighter", size = "small", className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "size", "className"]);
412
+ const Component = asChild ? import_react_slot3.Slot : "span";
413
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
414
+ Component,
415
+ __spreadProps(__spreadValues({
416
+ ref,
417
+ className: (0, import_typed_classname7.clsx)(
418
+ "hds-badge",
419
+ `hds-badge--${size}`,
420
+ `hds-badge--${variant}`,
421
+ className
422
+ )
423
+ }, rest), {
424
+ children
425
+ })
426
+ );
427
+ }
428
+ );
429
+ Badge.displayName = "Badge";
430
+
431
+ // src/blockquote/blockquote.tsx
406
432
  var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname");
433
+ var import_react_slot4 = require("@radix-ui/react-slot");
434
+ var import_react9 = require("react");
407
435
  var import_jsx_runtime8 = require("react/jsx-runtime");
408
- var Breadcrumbs = (0, import_react9.forwardRef)(
436
+ var Blockquote = (0, import_react9.forwardRef)(
409
437
  (_a, ref) => {
410
- var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
411
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("nav", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname8.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
438
+ var _b = _a, { children, asChild, className, variant } = _b, rest = __objRest(_b, ["children", "asChild", "className", "variant"]);
439
+ const Component = asChild ? import_react_slot4.Slot : "blockquote";
440
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
441
+ Component,
442
+ __spreadProps(__spreadValues({
443
+ ref,
444
+ className: (0, import_typed_classname8.clsx)(
445
+ "hds-blockquote",
446
+ variant === "norwegian" && `hds-blockquote--norwegian`,
447
+ className
448
+ )
449
+ }, rest), {
450
+ children
451
+ })
452
+ );
412
453
  }
413
454
  );
414
- Breadcrumbs.displayName = "Breadcrumbs";
455
+ Blockquote.displayName = "Blockquote";
415
456
 
416
- // src/button/button.tsx
457
+ // src/breadcrumbs/breadcrumbs.tsx
417
458
  var import_react10 = require("react");
418
459
  var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname");
419
- var import_react_slot4 = require("@radix-ui/react-slot");
420
460
  var import_jsx_runtime9 = require("react/jsx-runtime");
421
- var Button = (0, import_react10.forwardRef)(
461
+ var Breadcrumbs = (0, import_react10.forwardRef)(
462
+ (_a, ref) => {
463
+ 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 })) }));
465
+ }
466
+ );
467
+ Breadcrumbs.displayName = "Breadcrumbs";
468
+
469
+ // src/button/button.tsx
470
+ var import_react11 = require("react");
471
+ var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname");
472
+ 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)(
422
475
  (_a, ref) => {
423
476
  var _b = _a, {
424
477
  asChild,
@@ -437,11 +490,11 @@ var Button = (0, import_react10.forwardRef)(
437
490
  "icon",
438
491
  "className"
439
492
  ]);
440
- const Component = asChild ? import_react_slot4.Slot : "button";
441
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
493
+ const Component = asChild ? import_react_slot5.Slot : "button";
494
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
442
495
  Component,
443
496
  __spreadProps(__spreadValues({
444
- className: (0, import_typed_classname9.clsx)(
497
+ className: (0, import_typed_classname10.clsx)(
445
498
  "hds-button",
446
499
  `hds-button--${size}`,
447
500
  `hds-button--${variant}`,
@@ -464,17 +517,17 @@ var Button = (0, import_react10.forwardRef)(
464
517
  Button.displayName = "Button";
465
518
 
466
519
  // src/button-list/button-list.tsx
467
- var import_react11 = require("react");
468
- var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname");
469
- var import_jsx_runtime10 = require("react/jsx-runtime");
470
- var ButtonList = (0, import_react11.forwardRef)(
520
+ var import_react12 = require("react");
521
+ 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)(
471
524
  (_a, ref) => {
472
525
  var _b = _a, { variant = "default", className, children } = _b, rest = __objRest(_b, ["variant", "className", "children"]);
473
526
  const Component = "div";
474
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
527
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
475
528
  Component,
476
529
  __spreadProps(__spreadValues({
477
- className: (0, import_typed_classname10.clsx)("hds-button-list", `hds-button-list--${variant}`, className),
530
+ className: (0, import_typed_classname11.clsx)("hds-button-list", `hds-button-list--${variant}`, className),
478
531
  ref
479
532
  }, rest), {
480
533
  children
@@ -485,26 +538,26 @@ var ButtonList = (0, import_react11.forwardRef)(
485
538
  ButtonList.displayName = "ButtonList";
486
539
 
487
540
  // src/card/card.tsx
488
- var import_react12 = require("react");
489
- var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname");
490
- var import_react_slot5 = require("@radix-ui/react-slot");
491
- var import_jsx_runtime11 = require("react/jsx-runtime");
492
- var CardMedia = (0, import_react12.forwardRef)(
541
+ var import_react13 = require("react");
542
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
543
+ 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)(
493
546
  (_a, ref) => {
494
547
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
495
- const Component = asChild ? import_react_slot5.Slot : "div";
496
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname11.clsx)("hds-card__media", className), ref, children }));
548
+ 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 }));
497
550
  }
498
551
  );
499
552
  CardMedia.displayName = "Card.Media";
500
- var CardMediaImg = (0, import_react12.forwardRef)(
553
+ var CardMediaImg = (0, import_react13.forwardRef)(
501
554
  (_a, ref) => {
502
555
  var _b = _a, { asChild, variant, className } = _b, rest = __objRest(_b, ["asChild", "variant", "className"]);
503
- const Component = asChild ? import_react_slot5.Slot : "img";
504
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
556
+ const Component = asChild ? import_react_slot6.Slot : "img";
557
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
505
558
  Component,
506
559
  __spreadProps(__spreadValues({}, rest), {
507
- className: (0, import_typed_classname11.clsx)(
560
+ className: (0, import_typed_classname12.clsx)(
508
561
  "hds-card__media__img",
509
562
  { "hds-card__img__scale": variant === "scale" },
510
563
  className
@@ -515,35 +568,35 @@ var CardMediaImg = (0, import_react12.forwardRef)(
515
568
  }
516
569
  );
517
570
  CardMediaImg.displayName = "Card.MediaImg";
518
- var CardBody = (0, import_react12.forwardRef)(
571
+ var CardBody = (0, import_react13.forwardRef)(
519
572
  (_a, ref) => {
520
573
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
521
- const Component = asChild ? import_react_slot5.Slot : "div";
522
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname11.clsx)("hds-card__body", className), ref, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-card__centerbody", className), children }) }));
574
+ 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 }) }));
523
576
  }
524
577
  );
525
578
  CardBody.displayName = "Card.Body";
526
- var CardBodyHeader = (0, import_react12.forwardRef)((_a, ref) => {
579
+ var CardBodyHeader = (0, import_react13.forwardRef)((_a, ref) => {
527
580
  var _b = _a, { as: Tag, asChild, className, children } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children"]);
528
- const Component = asChild ? import_react_slot5.Slot : Tag;
529
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
581
+ const Component = asChild ? import_react_slot6.Slot : Tag;
582
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
530
583
  Component,
531
584
  __spreadProps(__spreadValues({}, rest), {
532
- className: (0, import_typed_classname11.clsx)("hds-card__body-header", className),
585
+ className: (0, import_typed_classname12.clsx)("hds-card__body-header", className),
533
586
  ref,
534
587
  children
535
588
  })
536
589
  );
537
590
  });
538
591
  CardBodyHeader.displayName = "Card.BodyHeader";
539
- var CardBodyHeaderOverline = (0, import_react12.forwardRef)(
592
+ var CardBodyHeaderOverline = (0, import_react13.forwardRef)(
540
593
  (_a, ref) => {
541
594
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
542
- const Component = asChild ? import_react_slot5.Slot : "span";
543
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
595
+ const Component = asChild ? import_react_slot6.Slot : "span";
596
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
544
597
  Component,
545
598
  __spreadProps(__spreadValues({}, rest), {
546
- className: (0, import_typed_classname11.clsx)("hds-card__body-header-overline", className),
599
+ className: (0, import_typed_classname12.clsx)("hds-card__body-header-overline", className),
547
600
  ref,
548
601
  children
549
602
  })
@@ -551,14 +604,14 @@ var CardBodyHeaderOverline = (0, import_react12.forwardRef)(
551
604
  }
552
605
  );
553
606
  CardBodyHeaderOverline.displayName = "Card.BodyHeaderOverline";
554
- var CardBodyHeaderTitle = (0, import_react12.forwardRef)(
607
+ var CardBodyHeaderTitle = (0, import_react13.forwardRef)(
555
608
  (_a, ref) => {
556
609
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
557
- const Component = asChild ? import_react_slot5.Slot : "div";
558
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
610
+ const Component = asChild ? import_react_slot6.Slot : "div";
611
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
559
612
  Component,
560
613
  __spreadProps(__spreadValues({}, rest), {
561
- className: (0, import_typed_classname11.clsx)("hds-card__body-header-title", className),
614
+ className: (0, import_typed_classname12.clsx)("hds-card__body-header-title", className),
562
615
  ref,
563
616
  children
564
617
  })
@@ -566,14 +619,14 @@ var CardBodyHeaderTitle = (0, import_react12.forwardRef)(
566
619
  }
567
620
  );
568
621
  CardBodyHeaderTitle.displayName = "Card.BodyHeaderTitle";
569
- var CardBodyDescription = (0, import_react12.forwardRef)(
622
+ var CardBodyDescription = (0, import_react13.forwardRef)(
570
623
  (_a, ref) => {
571
624
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
572
- const Component = asChild ? import_react_slot5.Slot : "p";
573
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
625
+ const Component = asChild ? import_react_slot6.Slot : "p";
626
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
574
627
  Component,
575
628
  __spreadProps(__spreadValues({}, rest), {
576
- className: (0, import_typed_classname11.clsx)("hds-card__body-description", className),
629
+ className: (0, import_typed_classname12.clsx)("hds-card__body-description", className),
577
630
  ref,
578
631
  children
579
632
  })
@@ -581,14 +634,14 @@ var CardBodyDescription = (0, import_react12.forwardRef)(
581
634
  }
582
635
  );
583
636
  CardBodyDescription.displayName = "Card.BodyDescription";
584
- var CardBodyAction = (0, import_react12.forwardRef)(
637
+ var CardBodyAction = (0, import_react13.forwardRef)(
585
638
  (_a, ref) => {
586
639
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
587
- const Component = asChild ? import_react_slot5.Slot : "div";
588
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
640
+ const Component = asChild ? import_react_slot6.Slot : "div";
641
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
589
642
  Component,
590
643
  __spreadProps(__spreadValues({}, rest), {
591
- className: (0, import_typed_classname11.clsx)("hds-card__body-action", className),
644
+ className: (0, import_typed_classname12.clsx)("hds-card__body-action", className),
592
645
  ref,
593
646
  children
594
647
  })
@@ -596,14 +649,14 @@ var CardBodyAction = (0, import_react12.forwardRef)(
596
649
  }
597
650
  );
598
651
  CardBodyAction.displayName = "Card.BodyAction";
599
- var CardBodyActionRow = (0, import_react12.forwardRef)(
652
+ var CardBodyActionRow = (0, import_react13.forwardRef)(
600
653
  (_a, ref) => {
601
654
  var _b = _a, { asChild, className, children } = _b, rest = __objRest(_b, ["asChild", "className", "children"]);
602
- const Component = asChild ? import_react_slot5.Slot : "div";
603
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
655
+ const Component = asChild ? import_react_slot6.Slot : "div";
656
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
604
657
  Component,
605
658
  __spreadProps(__spreadValues({}, rest), {
606
- className: (0, import_typed_classname11.clsx)("hds-card__body-action-row", className),
659
+ className: (0, import_typed_classname12.clsx)("hds-card__body-action-row", className),
607
660
  ref,
608
661
  children
609
662
  })
@@ -611,14 +664,14 @@ var CardBodyActionRow = (0, import_react12.forwardRef)(
611
664
  }
612
665
  );
613
666
  CardBodyActionRow.displayName = "Card.BodyActionRow";
614
- var CardBodyActionArrow = (0, import_react12.forwardRef)(
667
+ var CardBodyActionArrow = (0, import_react13.forwardRef)(
615
668
  (_a, ref) => {
616
669
  var _b = _a, { asChild, className, direction } = _b, rest = __objRest(_b, ["asChild", "className", "direction"]);
617
- const Component = asChild ? import_react_slot5.Slot : "span";
618
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
670
+ const Component = asChild ? import_react_slot6.Slot : "span";
671
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
619
672
  Component,
620
673
  __spreadProps(__spreadValues({}, rest), {
621
- className: (0, import_typed_classname11.clsx)(
674
+ className: (0, import_typed_classname12.clsx)(
622
675
  "hds-card__body-action-arrow",
623
676
  { "hds-card__body-action-arrow-up-right": direction === "up-right" },
624
677
  className
@@ -629,7 +682,7 @@ var CardBodyActionArrow = (0, import_react12.forwardRef)(
629
682
  }
630
683
  );
631
684
  CardBodyActionArrow.displayName = "Card.BodyActionArrow";
632
- var Card = (0, import_react12.forwardRef)(
685
+ var Card = (0, import_react13.forwardRef)(
633
686
  (_a, ref) => {
634
687
  var _b = _a, {
635
688
  as: Tag = "section",
@@ -648,12 +701,12 @@ var Card = (0, import_react12.forwardRef)(
648
701
  "color",
649
702
  "imagePosition"
650
703
  ]);
651
- const Component = asChild ? import_react_slot5.Slot : Tag;
704
+ const Component = asChild ? import_react_slot6.Slot : Tag;
652
705
  const effectiveColor = variant === "focus" && !color ? "darker" : color;
653
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
706
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
654
707
  Component,
655
708
  __spreadProps(__spreadValues({}, rest), {
656
- className: (0, import_typed_classname11.clsx)(
709
+ className: (0, import_typed_classname12.clsx)(
657
710
  "hds-card",
658
711
  { "hds-card--full-width": variant === "full-width" },
659
712
  { "hds-card--miniature": variant === "miniature" },
@@ -666,7 +719,7 @@ var Card = (0, import_react12.forwardRef)(
666
719
  className
667
720
  ),
668
721
  ref,
669
- children: variant === "full-width" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-card__layoutwrapper", className), children }) : children
722
+ children: variant === "full-width" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-card__layoutwrapper", className), children }) : children
670
723
  })
671
724
  );
672
725
  }
@@ -684,17 +737,17 @@ Card.BodyActionRow = CardBodyActionRow;
684
737
  Card.BodyActionArrow = CardBodyActionArrow;
685
738
 
686
739
  // src/description-list/description-list.tsx
687
- var import_react13 = require("react");
688
- var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname");
689
- var import_jsx_runtime12 = require("react/jsx-runtime");
690
- var DescriptionList = (0, import_react13.forwardRef)(
740
+ var import_react14 = require("react");
741
+ 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)(
691
744
  (_a, ref) => {
692
745
  var _b = _a, { variant = "vertical", className } = _b, rest = __objRest(_b, ["variant", "className"]);
693
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
746
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
694
747
  "dl",
695
748
  __spreadValues({
696
749
  ref,
697
- className: (0, import_typed_classname12.clsx)(
750
+ className: (0, import_typed_classname13.clsx)(
698
751
  "hds-description-list",
699
752
  {
700
753
  "hds-description-list--horizontal": variant === "horizontal"
@@ -708,35 +761,35 @@ var DescriptionList = (0, import_react13.forwardRef)(
708
761
  DescriptionList.displayName = "DescriptionList";
709
762
 
710
763
  // src/figure/figure.tsx
711
- var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
712
- var import_react_slot6 = require("@radix-ui/react-slot");
713
- var import_react14 = require("react");
714
- var import_jsx_runtime13 = require("react/jsx-runtime");
715
- var Figure = (0, import_react14.forwardRef)(
764
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
765
+ 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)(
716
769
  (_a, ref) => {
717
770
  var _b = _a, { children, asChild, className } = _b, rest = __objRest(_b, ["children", "asChild", "className"]);
718
- const Component = asChild ? import_react_slot6.Slot : "figure";
719
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname13.clsx)("hds-figure", className) }, rest), { children }));
771
+ 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 }));
720
773
  }
721
774
  );
722
775
  Figure.displayName = "Figure";
723
776
 
724
777
  // src/form/checkbox/checkbox.tsx
725
- var import_react17 = require("react");
726
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
778
+ var import_react18 = require("react");
779
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
727
780
 
728
781
  // src/form/error-message/error-message.tsx
729
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
730
- var import_react15 = require("react");
731
- var import_jsx_runtime14 = require("react/jsx-runtime");
732
- var ErrorMessage = (0, import_react15.forwardRef)(
782
+ 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)(
733
786
  (_a, ref) => {
734
787
  var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
735
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
788
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
736
789
  "div",
737
790
  __spreadProps(__spreadValues({
738
791
  "aria-live": "polite",
739
- className: (0, import_typed_classname14.clsx)("hds-error-message", className),
792
+ className: (0, import_typed_classname15.clsx)("hds-error-message", className),
740
793
  id,
741
794
  ref
742
795
  }, rest), {
@@ -748,12 +801,12 @@ var ErrorMessage = (0, import_react15.forwardRef)(
748
801
  ErrorMessage.displayName = "ErrorMessage";
749
802
 
750
803
  // src/form/fieldset/fieldset.tsx
751
- var import_react16 = require("react");
752
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
753
- var import_jsx_runtime15 = require("react/jsx-runtime");
754
- var FieldsetContext = (0, import_react16.createContext)({ hasError: false });
755
- var useFieldsetContext = () => (0, import_react16.useContext)(FieldsetContext);
756
- var Fieldset = (0, import_react16.forwardRef)(function Fieldset2(_a, ref) {
804
+ var import_react17 = require("react");
805
+ 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) {
757
810
  var _b = _a, {
758
811
  className,
759
812
  style,
@@ -772,21 +825,21 @@ var Fieldset = (0, import_react16.forwardRef)(function Fieldset2(_a, ref) {
772
825
  "legend",
773
826
  "children"
774
827
  ]);
775
- const errorMessageId = (0, import_react16.useId)();
776
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
828
+ const errorMessageId = (0, import_react17.useId)();
829
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
777
830
  "fieldset",
778
831
  __spreadProps(__spreadValues({
779
832
  "aria-describedby": errorMessage ? errorMessageId : void 0,
780
833
  "aria-invalid": errorMessage ? true : void 0,
781
- className: (0, import_typed_classname15.clsx)("hds-fieldset", className),
834
+ className: (0, import_typed_classname16.clsx)("hds-fieldset", className),
782
835
  ref,
783
836
  style
784
837
  }, rest), {
785
838
  children: [
786
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
839
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
787
840
  "legend",
788
841
  __spreadProps(__spreadValues({
789
- className: (0, import_typed_classname15.clsx)(
842
+ className: (0, import_typed_classname16.clsx)(
790
843
  "hds-fieldset__legend",
791
844
  { [`hds-fieldset__legend--${legendSize}`]: legendSize },
792
845
  legendClassName
@@ -795,16 +848,16 @@ var Fieldset = (0, import_react16.forwardRef)(function Fieldset2(_a, ref) {
795
848
  children: legend
796
849
  })
797
850
  ),
798
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
799
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
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 }))
800
853
  ]
801
854
  })
802
855
  );
803
856
  });
804
857
 
805
858
  // src/form/checkbox/checkbox.tsx
806
- var import_jsx_runtime16 = require("react/jsx-runtime");
807
- var Checkbox = (0, import_react17.forwardRef)(
859
+ var import_jsx_runtime17 = require("react/jsx-runtime");
860
+ var Checkbox = (0, import_react18.forwardRef)(
808
861
  (_a, ref) => {
809
862
  var _b = _a, {
810
863
  variant = "plain",
@@ -823,14 +876,14 @@ var Checkbox = (0, import_react17.forwardRef)(
823
876
  "children",
824
877
  "className"
825
878
  ]);
826
- const errorMessageId = (0, import_react17.useId)();
879
+ const errorMessageId = (0, import_react18.useId)();
827
880
  const { hasError: hasFieldsetError } = useFieldsetContext();
828
881
  const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
829
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: (0, import_typed_classname16.clsx)("hds-checkbox-wrapper"), children: [
830
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
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)(
831
884
  "div",
832
885
  {
833
- className: (0, import_typed_classname16.clsx)(
886
+ className: (0, import_typed_classname17.clsx)(
834
887
  "hds-checkbox",
835
888
  {
836
889
  [`hds-checkbox--${variant}`]: variant === "bounding-box",
@@ -839,8 +892,8 @@ var Checkbox = (0, import_react17.forwardRef)(
839
892
  className
840
893
  ),
841
894
  children: [
842
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { children: [
843
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
895
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { children: [
896
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
844
897
  "input",
845
898
  __spreadProps(__spreadValues({}, rest), {
846
899
  "aria-invalid": hasError ? true : void 0,
@@ -849,28 +902,28 @@ var Checkbox = (0, import_react17.forwardRef)(
849
902
  type: "checkbox"
850
903
  })
851
904
  ),
852
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
853
- title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
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
854
907
  ] }),
855
908
  title ? children : null
856
909
  ]
857
910
  }
858
911
  ),
859
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
912
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
860
913
  ] });
861
914
  }
862
915
  );
863
916
  Checkbox.displayName = "Checkbox";
864
917
 
865
918
  // src/form/date-picker/date-picker.tsx
866
- var import_react20 = require("react");
867
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
919
+ var import_react21 = require("react");
920
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
868
921
 
869
922
  // src/form/input-group/input-group.tsx
870
- var import_react18 = require("react");
871
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
872
- var import_jsx_runtime17 = require("react/jsx-runtime");
873
- var InputGroup = (0, import_react18.forwardRef)(function InputGroup2(_a, ref) {
923
+ var import_react19 = require("react");
924
+ 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) {
874
927
  var _b = _a, {
875
928
  id,
876
929
  className,
@@ -897,31 +950,31 @@ var InputGroup = (0, import_react18.forwardRef)(function InputGroup2(_a, ref) {
897
950
  "readOnly",
898
951
  "children"
899
952
  ]);
900
- const errorMessageId = (0, import_react18.useId)();
901
- const inputId = (0, import_react18.useId)();
953
+ const errorMessageId = (0, import_react19.useId)();
954
+ const inputId = (0, import_react19.useId)();
902
955
  const renderInput = () => {
903
956
  var _a2;
904
957
  const inputProps = {
905
958
  "aria-describedby": errorMessage ? errorMessageId : void 0,
906
959
  "aria-invalid": errorMessage ? true : void 0,
907
960
  id: id != null ? id : inputId,
908
- className: (0, import_typed_classname17.clsx)("hds-input-group__input")
961
+ className: (0, import_typed_classname18.clsx)("hds-input-group__input")
909
962
  };
910
963
  if (typeof children === "function") {
911
964
  return children(inputProps);
912
965
  }
913
- const input = import_react18.Children.toArray(children)[0];
914
- if (!(0, import_react18.isValidElement)(input)) {
966
+ const input = import_react19.Children.toArray(children)[0];
967
+ if (!(0, import_react19.isValidElement)(input)) {
915
968
  return;
916
969
  }
917
- return (0, import_react18.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
970
+ return (0, import_react19.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
918
971
  className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
919
972
  }));
920
973
  };
921
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
974
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
922
975
  "div",
923
976
  __spreadProps(__spreadValues({
924
- className: (0, import_typed_classname17.clsx)(
977
+ className: (0, import_typed_classname18.clsx)(
925
978
  "hds-input-group",
926
979
  {
927
980
  [`hds-input-group--${variant}`]: variant,
@@ -933,35 +986,35 @@ var InputGroup = (0, import_react18.forwardRef)(function InputGroup2(_a, ref) {
933
986
  style
934
987
  }, rest), {
935
988
  children: [
936
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
989
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
937
990
  "label",
938
991
  __spreadProps(__spreadValues({
939
- className: (0, import_typed_classname17.clsx)("hds-input-group__label", labelClassName)
992
+ className: (0, import_typed_classname18.clsx)("hds-input-group__label", labelClassName)
940
993
  }, labelProps), {
941
994
  htmlFor: id != null ? id : inputId,
942
995
  children: label
943
996
  })
944
997
  ),
945
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
998
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
946
999
  "div",
947
1000
  {
948
- className: (0, import_typed_classname17.clsx)("hds-input-group__input-wrapper"),
1001
+ className: (0, import_typed_classname18.clsx)("hds-input-group__input-wrapper"),
949
1002
  "data-disabled": disabled,
950
1003
  "data-readonly": readOnly,
951
1004
  children: renderInput()
952
1005
  }
953
1006
  ),
954
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1007
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
955
1008
  ]
956
1009
  })
957
1010
  );
958
1011
  });
959
1012
 
960
1013
  // src/utils/utils.ts
961
- var React = __toESM(require("react"));
962
- var import_react19 = require("react");
1014
+ var React2 = __toESM(require("react"));
1015
+ var import_react20 = require("react");
963
1016
  function useMergeRefs(refs) {
964
- return React.useMemo(() => {
1017
+ return React2.useMemo(() => {
965
1018
  if (refs.every((ref) => ref === null)) {
966
1019
  return null;
967
1020
  }
@@ -977,16 +1030,16 @@ function useMergeRefs(refs) {
977
1030
  }, refs);
978
1031
  }
979
1032
  function useResize(ref) {
980
- const [width, setWidth] = (0, import_react19.useState)(0);
981
- const [height, setHeight] = (0, import_react19.useState)(0);
982
- const handleResize = (0, import_react19.useCallback)(() => {
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)(() => {
983
1036
  var _a, _b, _c, _d;
984
1037
  if ((ref == null ? void 0 : ref.current) !== null) {
985
1038
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
986
1039
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
987
1040
  }
988
1041
  }, [ref]);
989
- (0, import_react19.useEffect)(() => {
1042
+ (0, import_react20.useEffect)(() => {
990
1043
  window.addEventListener("load", handleResize);
991
1044
  window.addEventListener("resize", handleResize);
992
1045
  return () => {
@@ -994,7 +1047,7 @@ function useResize(ref) {
994
1047
  window.removeEventListener("resize", handleResize);
995
1048
  };
996
1049
  }, [ref, handleResize]);
997
- (0, import_react19.useEffect)(() => {
1050
+ (0, import_react20.useEffect)(() => {
998
1051
  handleResize();
999
1052
  }, []);
1000
1053
  return { width, height };
@@ -1004,7 +1057,7 @@ function subscribe() {
1004
1057
  };
1005
1058
  }
1006
1059
  function useHydrated() {
1007
- return React.useSyncExternalStore(
1060
+ return React2.useSyncExternalStore(
1008
1061
  subscribe,
1009
1062
  () => true,
1010
1063
  () => false
@@ -1037,8 +1090,8 @@ function releaseFocusTrap(inertElements) {
1037
1090
  }
1038
1091
 
1039
1092
  // src/form/date-picker/date-picker.tsx
1040
- var import_jsx_runtime18 = require("react/jsx-runtime");
1041
- var DatePicker = (0, import_react20.forwardRef)(function DatePicker2(_a, ref) {
1093
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1094
+ var DatePicker = (0, import_react21.forwardRef)(function DatePicker2(_a, ref) {
1042
1095
  var _b = _a, {
1043
1096
  className,
1044
1097
  variant,
@@ -1062,12 +1115,12 @@ var DatePicker = (0, import_react20.forwardRef)(function DatePicker2(_a, ref) {
1062
1115
  "readOnly",
1063
1116
  "calendarButtonTitle"
1064
1117
  ]);
1065
- const inputRef = (0, import_react20.useRef)(null);
1118
+ const inputRef = (0, import_react21.useRef)(null);
1066
1119
  const mergedRef = useMergeRefs([inputRef, ref]);
1067
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1120
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1068
1121
  InputGroup,
1069
1122
  {
1070
- className: (0, import_typed_classname18.clsx)("hds-date-picker", className),
1123
+ className: (0, import_typed_classname19.clsx)("hds-date-picker", className),
1071
1124
  disabled,
1072
1125
  errorMessage,
1073
1126
  id,
@@ -1076,8 +1129,8 @@ var DatePicker = (0, import_react20.forwardRef)(function DatePicker2(_a, ref) {
1076
1129
  readOnly,
1077
1130
  style,
1078
1131
  variant,
1079
- children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
1080
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1132
+ children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1133
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1081
1134
  "input",
1082
1135
  __spreadProps(__spreadValues(__spreadValues({}, rest), inputProps), {
1083
1136
  disabled,
@@ -1086,10 +1139,10 @@ var DatePicker = (0, import_react20.forwardRef)(function DatePicker2(_a, ref) {
1086
1139
  type: "date"
1087
1140
  })
1088
1141
  ),
1089
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1142
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1090
1143
  "button",
1091
1144
  {
1092
- className: (0, import_typed_classname18.clsx)("hds-date-picker__calendar-button"),
1145
+ className: (0, import_typed_classname19.clsx)("hds-date-picker__calendar-button"),
1093
1146
  type: "button",
1094
1147
  title: calendarButtonTitle,
1095
1148
  onClick: () => {
@@ -1105,52 +1158,52 @@ var DatePicker = (0, import_react20.forwardRef)(function DatePicker2(_a, ref) {
1105
1158
  DatePicker.displayName = "DatePicker";
1106
1159
 
1107
1160
  // src/form/error-summary/error-summary.tsx
1108
- var import_react26 = require("react");
1161
+ var import_react27 = require("react");
1109
1162
 
1110
1163
  // src/message/message.tsx
1111
- var import_react21 = require("react");
1112
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1113
- var import_react_slot7 = require("@radix-ui/react-slot");
1114
- var import_jsx_runtime19 = require("react/jsx-runtime");
1115
- var MessageTitle = (0, import_react21.forwardRef)(
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)(
1116
1169
  (_a, ref) => {
1117
1170
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1118
- const Component = asChild ? import_react_slot7.Slot : "div";
1119
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1171
+ const Component = asChild ? import_react_slot8.Slot : "div";
1172
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1120
1173
  Component,
1121
1174
  __spreadValues({
1122
- className: (0, import_typed_classname19.clsx)("hds-message__title", className),
1175
+ className: (0, import_typed_classname20.clsx)("hds-message__title", className),
1123
1176
  ref
1124
1177
  }, rest)
1125
1178
  );
1126
1179
  }
1127
1180
  );
1128
1181
  MessageTitle.displayName = "Message.Title";
1129
- var MessageDescription = (0, import_react21.forwardRef)(
1182
+ var MessageDescription = (0, import_react22.forwardRef)(
1130
1183
  (_a, ref) => {
1131
1184
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1132
- const Component = asChild ? import_react_slot7.Slot : "div";
1133
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1185
+ const Component = asChild ? import_react_slot8.Slot : "div";
1186
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1134
1187
  Component,
1135
1188
  __spreadValues({
1136
- className: (0, import_typed_classname19.clsx)("hds-message__description", className),
1189
+ className: (0, import_typed_classname20.clsx)("hds-message__description", className),
1137
1190
  ref
1138
1191
  }, rest)
1139
1192
  );
1140
1193
  }
1141
1194
  );
1142
1195
  MessageDescription.displayName = "Message.Description";
1143
- var Message = (0, import_react21.forwardRef)(
1196
+ var Message = (0, import_react22.forwardRef)(
1144
1197
  (_a, ref) => {
1145
1198
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1146
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1199
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1147
1200
  Box,
1148
1201
  __spreadProps(__spreadValues({
1149
- className: (0, import_typed_classname19.clsx)(`hds-message`, `hds-message--${variant}`, className),
1202
+ className: (0, import_typed_classname20.clsx)(`hds-message`, `hds-message--${variant}`, className),
1150
1203
  ref
1151
1204
  }, rest), {
1152
1205
  children: [
1153
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_typed_classname19.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1206
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: (0, import_typed_classname20.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1154
1207
  children
1155
1208
  ]
1156
1209
  })
@@ -1162,30 +1215,38 @@ Message.Title = MessageTitle;
1162
1215
  Message.Description = MessageDescription;
1163
1216
 
1164
1217
  // src/list/list.tsx
1165
- var import_react22 = require("react");
1166
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1167
- var import_jsx_runtime20 = require("react/jsx-runtime");
1168
- var UnorderedList = (0, import_react22.forwardRef)(
1218
+ var import_react23 = require("react");
1219
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1220
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1221
+ var UnorderedList = (0, import_react23.forwardRef)(
1169
1222
  (_a, ref) => {
1170
- var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1171
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1223
+ var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
1224
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1172
1225
  "ul",
1173
1226
  __spreadValues({
1174
1227
  ref,
1175
- className: (0, import_typed_classname20.clsx)("hds-list", `hds-list--${size}`, className)
1228
+ className: (0, import_typed_classname21.clsx)(
1229
+ "hds-list",
1230
+ size !== "default" && `hds-list--${size}`,
1231
+ className
1232
+ )
1176
1233
  }, rest)
1177
1234
  );
1178
1235
  }
1179
1236
  );
1180
1237
  UnorderedList.displayName = "UnorderedList";
1181
- var OrderedList = (0, import_react22.forwardRef)(
1238
+ var OrderedList = (0, import_react23.forwardRef)(
1182
1239
  (_a, ref) => {
1183
1240
  var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1184
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1241
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1185
1242
  "ol",
1186
1243
  __spreadValues({
1187
1244
  ref,
1188
- className: (0, import_typed_classname20.clsx)("hds-list", `hds-list--${size}`, className)
1245
+ className: (0, import_typed_classname21.clsx)(
1246
+ "hds-list",
1247
+ size !== "default" && `hds-list--${size}`,
1248
+ className
1249
+ )
1189
1250
  }, rest)
1190
1251
  );
1191
1252
  }
@@ -1193,17 +1254,17 @@ var OrderedList = (0, import_react22.forwardRef)(
1193
1254
  OrderedList.displayName = "OrderedList";
1194
1255
 
1195
1256
  // src/list/link-list.tsx
1196
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1197
- var import_react23 = require("react");
1198
- var import_jsx_runtime21 = require("react/jsx-runtime");
1199
- var LinkList = (0, import_react23.forwardRef)(
1257
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1258
+ var import_react24 = require("react");
1259
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1260
+ var LinkList = (0, import_react24.forwardRef)(
1200
1261
  (_a, ref) => {
1201
1262
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1202
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1263
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1203
1264
  UnorderedList,
1204
1265
  __spreadValues({
1205
1266
  ref,
1206
- className: (0, import_typed_classname21.clsx)("hds-list--link-list", className)
1267
+ className: (0, import_typed_classname22.clsx)("hds-list--link-list", className)
1207
1268
  }, rest)
1208
1269
  );
1209
1270
  }
@@ -1211,19 +1272,19 @@ var LinkList = (0, import_react23.forwardRef)(
1211
1272
  LinkList.displayName = "LinkList";
1212
1273
 
1213
1274
  // src/link/link.tsx
1214
- var React2 = require("react");
1215
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1216
- var import_react24 = require("react");
1217
- var import_react_slot8 = require("@radix-ui/react-slot");
1218
- var import_jsx_runtime22 = require("react/jsx-runtime");
1219
- var Link = (0, import_react24.forwardRef)(
1275
+ var React3 = require("react");
1276
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1277
+ var import_react25 = require("react");
1278
+ var import_react_slot9 = require("@radix-ui/react-slot");
1279
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1280
+ var Link = (0, import_react25.forwardRef)(
1220
1281
  (_a, ref) => {
1221
1282
  var _b = _a, { asChild, children, variant = "underline", size = "default", icon, className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "icon", "className"]);
1222
- const Component = asChild ? import_react_slot8.Slot : "a";
1223
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1283
+ const Component = asChild ? import_react_slot9.Slot : "a";
1284
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1224
1285
  Component,
1225
1286
  __spreadProps(__spreadValues({
1226
- className: (0, import_typed_classname22.clsx)(
1287
+ className: (0, import_typed_classname23.clsx)(
1227
1288
  "hds-link",
1228
1289
  variant !== "underline" && `hds-link--${variant}`,
1229
1290
  size !== "default" && `hds-link--${size}`,
@@ -1241,9 +1302,9 @@ var Link = (0, import_react24.forwardRef)(
1241
1302
  Link.displayName = "Link";
1242
1303
 
1243
1304
  // src/utils/auto-animate-height.tsx
1244
- var import_react25 = require("react");
1245
- var import_jsx_runtime23 = require("react/jsx-runtime");
1246
- var AutoAnimateHeight = (0, import_react25.forwardRef)(
1305
+ var import_react26 = require("react");
1306
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1307
+ var AutoAnimateHeight = (0, import_react26.forwardRef)(
1247
1308
  (_a, ref) => {
1248
1309
  var _b = _a, {
1249
1310
  children,
@@ -1259,16 +1320,16 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1259
1320
  "onTransitionEnd"
1260
1321
  ]);
1261
1322
  var _a2, _b2;
1262
- const rootRef = (0, import_react25.useRef)(null);
1323
+ const rootRef = (0, import_react26.useRef)(null);
1263
1324
  const mergedRef = useMergeRefs([rootRef, ref]);
1264
- const measurementRef = (0, import_react25.useRef)(null);
1265
- const [height, setHeight] = (0, import_react25.useState)(
1325
+ const measurementRef = (0, import_react26.useRef)(null);
1326
+ const [height, setHeight] = (0, import_react26.useState)(
1266
1327
  void 0
1267
1328
  );
1268
- const [clonedChildren, setClonedChildren] = (0, import_react25.useState)(
1269
- () => (0, import_react25.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children }), {})
1329
+ const [clonedChildren, setClonedChildren] = (0, import_react26.useState)(
1330
+ () => (0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children }), {})
1270
1331
  );
1271
- (0, import_react25.useEffect)(() => {
1332
+ (0, import_react26.useEffect)(() => {
1272
1333
  var _a3;
1273
1334
  if (!rootRef.current) return;
1274
1335
  if (!measurementRef.current) return;
@@ -1284,7 +1345,7 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1284
1345
  });
1285
1346
  resizeObserver.observe(currentMeasurement);
1286
1347
  setHeight({ height: newHeight, shouldAnimate: true });
1287
- const nextClonedChildren = (0, import_react25.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children }), {});
1348
+ const nextClonedChildren = (0, import_react26.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children }), {});
1288
1349
  if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
1289
1350
  setClonedChildren(nextClonedChildren);
1290
1351
  return () => {
@@ -1302,7 +1363,7 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1302
1363
  currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
1303
1364
  };
1304
1365
  }, [children]);
1305
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1366
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1306
1367
  "div",
1307
1368
  __spreadProps(__spreadValues({
1308
1369
  ref: mergedRef,
@@ -1318,7 +1379,7 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1318
1379
  }, style)
1319
1380
  }, rest), {
1320
1381
  children: [
1321
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1382
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1322
1383
  "div",
1323
1384
  {
1324
1385
  "aria-hidden": true,
@@ -1381,33 +1442,33 @@ function labelForInput(input) {
1381
1442
  }
1382
1443
 
1383
1444
  // src/form/error-summary/error-summary.tsx
1384
- var import_jsx_runtime24 = require("react/jsx-runtime");
1385
- var ErrorSummaryHeading = (0, import_react26.forwardRef)((_a, ref) => {
1445
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1446
+ var ErrorSummaryHeading = (0, import_react27.forwardRef)((_a, ref) => {
1386
1447
  var _b = _a, { children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["children", "as", "autoFocus"]);
1387
- const focusRef = (0, import_react26.useRef)(null);
1448
+ const focusRef = (0, import_react27.useRef)(null);
1388
1449
  const mergedRef = useMergeRefs([focusRef, ref]);
1389
- (0, import_react26.useEffect)(() => {
1450
+ (0, import_react27.useEffect)(() => {
1390
1451
  setTimeout(() => {
1391
1452
  if (focusRef.current && autoFocus) {
1392
1453
  focusRef.current.focus();
1393
1454
  }
1394
1455
  });
1395
1456
  }, []);
1396
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Message.Title, __spreadProps(__spreadValues({ ref: mergedRef, tabIndex: -1, asChild: true }, rest), { children: Tag ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Tag, { children }) : children }));
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 }));
1397
1458
  });
1398
1459
  ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1399
- var ErrorSummaryList = (0, import_react26.forwardRef)(
1460
+ var ErrorSummaryList = (0, import_react27.forwardRef)(
1400
1461
  (_a, ref) => {
1401
1462
  var _b = _a, { children, style: _style, size = "small" } = _b, rest = __objRest(_b, ["children", "style", "size"]);
1402
1463
  const style = __spreadValues({
1403
1464
  // Match the link `solid` style, which black underline
1404
1465
  "--_hds-list-marker-color": "var(--hds-ui-colors-black)"
1405
1466
  }, _style);
1406
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Message.Description, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref, style }, rest), { children })) });
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 })) });
1407
1468
  }
1408
1469
  );
1409
1470
  ErrorSummaryList.displayName = "ErrorSummary.List";
1410
- var ErrorSummaryItem = (0, import_react26.forwardRef)(
1471
+ var ErrorSummaryItem = (0, import_react27.forwardRef)(
1411
1472
  (_a, ref) => {
1412
1473
  var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1413
1474
  function onClick(e) {
@@ -1417,14 +1478,14 @@ var ErrorSummaryItem = (0, import_react26.forwardRef)(
1417
1478
  e.preventDefault();
1418
1479
  }
1419
1480
  }
1420
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("li", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
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 })) }));
1421
1482
  }
1422
1483
  );
1423
1484
  ErrorSummaryItem.displayName = "ErrorSummary.Item";
1424
- var ErrorSummary = (0, import_react26.forwardRef)(
1485
+ var ErrorSummary = (0, import_react27.forwardRef)(
1425
1486
  (_a, ref) => {
1426
1487
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1427
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Message, __spreadProps(__spreadValues({ variant: "warning", ref }, rest), { children }));
1488
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Message, __spreadProps(__spreadValues({ variant: "warning", ref }, rest), { children }));
1428
1489
  }
1429
1490
  );
1430
1491
  ErrorSummary.displayName = "ErrorSummary";
@@ -1433,15 +1494,15 @@ ErrorSummary.List = ErrorSummaryList;
1433
1494
  ErrorSummary.Item = ErrorSummaryItem;
1434
1495
 
1435
1496
  // src/form/input/input.tsx
1436
- var import_react27 = require("react");
1437
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1438
- var import_jsx_runtime25 = require("react/jsx-runtime");
1439
- var Input = (0, import_react27.forwardRef)(function Input2(_a, ref) {
1497
+ var import_react28 = require("react");
1498
+ 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) {
1440
1501
  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"]);
1441
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1502
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1442
1503
  InputGroup,
1443
1504
  {
1444
- className: (0, import_typed_classname23.clsx)("hds-input", className),
1505
+ className: (0, import_typed_classname24.clsx)("hds-input", className),
1445
1506
  disabled,
1446
1507
  errorMessage,
1447
1508
  id,
@@ -1450,35 +1511,35 @@ var Input = (0, import_react27.forwardRef)(function Input2(_a, ref) {
1450
1511
  readOnly,
1451
1512
  style,
1452
1513
  variant,
1453
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1514
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1454
1515
  }
1455
1516
  );
1456
1517
  });
1457
1518
  Input.displayName = "Input";
1458
1519
 
1459
1520
  // src/form/radio-button/radio-button.tsx
1460
- var import_react29 = require("react");
1461
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1521
+ var import_react30 = require("react");
1522
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1462
1523
 
1463
1524
  // src/form/radio-button/radio-group.tsx
1464
- var import_react28 = require("react");
1465
- var import_jsx_runtime26 = require("react/jsx-runtime");
1466
- var RadioGroupContext = (0, import_react28.createContext)({
1525
+ var import_react29 = require("react");
1526
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1527
+ var RadioGroupContext = (0, import_react29.createContext)({
1467
1528
  name: void 0,
1468
1529
  hasError: false,
1469
1530
  onChange: () => {
1470
1531
  return void 0;
1471
1532
  }
1472
1533
  });
1473
- var useRadioGroupContext = () => (0, import_react28.useContext)(RadioGroupContext);
1474
- var RadioGroup = (0, import_react28.forwardRef)(function RadioGroup2(_a, ref) {
1534
+ var useRadioGroupContext = () => (0, import_react29.useContext)(RadioGroupContext);
1535
+ var RadioGroup = (0, import_react29.forwardRef)(function RadioGroup2(_a, ref) {
1475
1536
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1476
- 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 })) });
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 })) });
1477
1538
  });
1478
1539
  RadioGroup.displayName = "RadioGroup";
1479
1540
 
1480
1541
  // src/form/radio-button/radio-button.tsx
1481
- var import_jsx_runtime27 = require("react/jsx-runtime");
1542
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1482
1543
  var isChecked = ({
1483
1544
  checked,
1484
1545
  selectedValue,
@@ -1488,7 +1549,7 @@ var isChecked = ({
1488
1549
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1489
1550
  return void 0;
1490
1551
  };
1491
- var RadioButton = (0, import_react29.forwardRef)(
1552
+ var RadioButton = (0, import_react30.forwardRef)(
1492
1553
  (_a, ref) => {
1493
1554
  var _b = _a, {
1494
1555
  checked,
@@ -1516,10 +1577,10 @@ var RadioButton = (0, import_react29.forwardRef)(
1516
1577
  ]);
1517
1578
  const { hasError: hasFieldsetError } = useFieldsetContext();
1518
1579
  const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
1519
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1580
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1520
1581
  "div",
1521
1582
  {
1522
- className: (0, import_typed_classname24.clsx)(
1583
+ className: (0, import_typed_classname25.clsx)(
1523
1584
  "hds-radio-button",
1524
1585
  {
1525
1586
  [`hds-radio-button--${variant}`]: variant === "bounding-box",
@@ -1528,8 +1589,8 @@ var RadioButton = (0, import_react29.forwardRef)(
1528
1589
  className
1529
1590
  ),
1530
1591
  children: [
1531
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
1532
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1592
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { children: [
1593
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1533
1594
  "input",
1534
1595
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1535
1596
  checked: isChecked({ checked, selectedValue, value }),
@@ -1538,8 +1599,8 @@ var RadioButton = (0, import_react29.forwardRef)(
1538
1599
  type: "radio"
1539
1600
  })
1540
1601
  ),
1541
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1542
- title ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
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
1543
1604
  ] }),
1544
1605
  title ? children : null
1545
1606
  ]
@@ -1550,15 +1611,15 @@ var RadioButton = (0, import_react29.forwardRef)(
1550
1611
  RadioButton.displayName = "RadioButton";
1551
1612
 
1552
1613
  // src/form/select/select.tsx
1553
- var import_react30 = require("react");
1554
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1555
- var import_jsx_runtime28 = require("react/jsx-runtime");
1556
- var Select = (0, import_react30.forwardRef)(function Select2(_a, ref) {
1614
+ var import_react31 = require("react");
1615
+ 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) {
1557
1618
  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"]);
1558
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1619
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1559
1620
  InputGroup,
1560
1621
  {
1561
- className: (0, import_typed_classname25.clsx)("hds-select", className),
1622
+ className: (0, import_typed_classname26.clsx)("hds-select", className),
1562
1623
  disabled,
1563
1624
  errorMessage,
1564
1625
  id,
@@ -1566,22 +1627,22 @@ var Select = (0, import_react30.forwardRef)(function Select2(_a, ref) {
1566
1627
  labelProps,
1567
1628
  style,
1568
1629
  variant,
1569
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1630
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1570
1631
  }
1571
1632
  );
1572
1633
  });
1573
1634
  Select.displayName = "Select";
1574
1635
 
1575
1636
  // src/form/textarea/textarea.tsx
1576
- var import_react31 = require("react");
1577
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1578
- var import_jsx_runtime29 = require("react/jsx-runtime");
1579
- var Textarea = (0, import_react31.forwardRef)(function Textarea2(_a, ref) {
1637
+ var import_react32 = require("react");
1638
+ 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) {
1580
1641
  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"]);
1581
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1642
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1582
1643
  InputGroup,
1583
1644
  {
1584
- className: (0, import_typed_classname26.clsx)("hds-textarea", className),
1645
+ className: (0, import_typed_classname27.clsx)("hds-textarea", className),
1585
1646
  disabled,
1586
1647
  errorMessage,
1587
1648
  id,
@@ -1590,40 +1651,40 @@ var Textarea = (0, import_react31.forwardRef)(function Textarea2(_a, ref) {
1590
1651
  readOnly,
1591
1652
  style,
1592
1653
  variant,
1593
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1654
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1594
1655
  }
1595
1656
  );
1596
1657
  });
1597
1658
  Textarea.displayName = "Textarea";
1598
1659
 
1599
1660
  // src/footer/footer.tsx
1600
- var import_react32 = require("react");
1601
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1602
- var import_react_slot9 = require("@radix-ui/react-slot");
1603
- var import_jsx_runtime30 = require("react/jsx-runtime");
1604
- var FooterLogo = (0, import_react32.forwardRef)(
1661
+ var import_react33 = require("react");
1662
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1663
+ 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)(
1605
1666
  (_a, ref) => {
1606
1667
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1607
- const Component = asChild ? import_react_slot9.Slot : "div";
1608
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname27.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1668
+ 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 }));
1609
1670
  }
1610
1671
  );
1611
1672
  FooterLogo.displayName = "Footer.Logo";
1612
- var FooterButtonLink = (0, import_react32.forwardRef)(
1673
+ var FooterButtonLink = (0, import_react33.forwardRef)(
1613
1674
  (_a, ref) => {
1614
1675
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1615
- const Component = asChild ? import_react_slot9.Slot : "a";
1616
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { asChild: true, variant: "inverted", className: (0, import_typed_classname27.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1676
+ 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 })) });
1617
1678
  }
1618
1679
  );
1619
1680
  FooterButtonLink.displayName = "FooterButton";
1620
- var FooterLinkSections = (0, import_react32.forwardRef)(
1681
+ var FooterLinkSections = (0, import_react33.forwardRef)(
1621
1682
  (_a, ref) => {
1622
1683
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1623
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1684
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1624
1685
  Accordion,
1625
1686
  __spreadProps(__spreadValues({
1626
- className: (0, import_typed_classname27.clsx)("hds-footer__link-sections", className),
1687
+ className: (0, import_typed_classname28.clsx)("hds-footer__link-sections", className),
1627
1688
  ref
1628
1689
  }, rest), {
1629
1690
  children
@@ -1632,39 +1693,39 @@ var FooterLinkSections = (0, import_react32.forwardRef)(
1632
1693
  }
1633
1694
  );
1634
1695
  FooterLinkSections.displayName = "Footer.LinkSections";
1635
- var FooterLinkSection = (0, import_react32.forwardRef)(
1696
+ var FooterLinkSection = (0, import_react33.forwardRef)(
1636
1697
  (_a, ref) => {
1637
1698
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1638
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkList, { children });
1639
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1640
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
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)(
1641
1702
  Accordion.Item,
1642
1703
  __spreadProps(__spreadValues({
1643
- className: (0, import_typed_classname27.clsx)(`hds-footer__link-section`, className),
1704
+ className: (0, import_typed_classname28.clsx)(`hds-footer__link-section`, className),
1644
1705
  ref
1645
1706
  }, rest), {
1646
1707
  children: [
1647
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Header, { children: heading }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Content, { children: linkListChildren })
1708
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Accordion.Header, { children: heading }),
1709
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Accordion.Content, { children: linkListChildren })
1649
1710
  ]
1650
1711
  })
1651
1712
  ),
1652
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_typed_classname27.clsx)(`hds-footer__link-section`, className), children: [
1653
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { children: heading }),
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 }),
1654
1715
  linkListChildren
1655
1716
  ] })
1656
1717
  ] });
1657
1718
  }
1658
1719
  );
1659
1720
  FooterLinkSection.displayName = "Footer.LinkSection";
1660
- var Footer = (0, import_react32.forwardRef)(
1721
+ var Footer = (0, import_react33.forwardRef)(
1661
1722
  (_a, ref) => {
1662
1723
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1663
- const Component = asChild ? import_react_slot9.Slot : "footer";
1664
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1724
+ const Component = asChild ? import_react_slot10.Slot : "footer";
1725
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1665
1726
  Component,
1666
1727
  __spreadProps(__spreadValues({
1667
- className: (0, import_typed_classname27.clsx)(
1728
+ className: (0, import_typed_classname28.clsx)(
1668
1729
  `hds-footer`,
1669
1730
  variant === "slim" && "hds-footer--slim",
1670
1731
  className
@@ -1684,10 +1745,10 @@ Footer.LinkSection = FooterLinkSection;
1684
1745
 
1685
1746
  // src/help-text/help-text.tsx
1686
1747
  var Popover = __toESM(require("@radix-ui/react-popover"));
1687
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1688
- var import_react33 = require("react");
1689
- var import_jsx_runtime31 = require("react/jsx-runtime");
1690
- var HelpText = (0, import_react33.forwardRef)(
1748
+ 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)(
1691
1752
  (_a, ref) => {
1692
1753
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1693
1754
  return (
@@ -1695,24 +1756,24 @@ var HelpText = (0, import_react33.forwardRef)(
1695
1756
  // In the future we can use the native popover api, but as of writing, though all browsers support it
1696
1757
  // it's not far enough back to be used in production
1697
1758
  // https://caniuse.com/mdn-html_elements_input_popovertarget
1698
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover.Root, { children: [
1699
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
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)(
1700
1761
  "button",
1701
1762
  __spreadProps(__spreadValues({
1702
1763
  ref,
1703
- className: (0, import_typed_classname28.clsx)("hds-help-text-button", className),
1764
+ className: (0, import_typed_classname29.clsx)("hds-help-text-button", className),
1704
1765
  title,
1705
1766
  type: "button"
1706
1767
  }, rest), {
1707
1768
  children
1708
1769
  })
1709
1770
  ) }),
1710
- /* @__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)(
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)(
1711
1772
  Box,
1712
1773
  __spreadProps(__spreadValues({}, boxProps), {
1713
- className: (0, import_typed_classname28.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1774
+ className: (0, import_typed_classname29.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1714
1775
  children: [
1715
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Box.CloseButton, {}) }),
1776
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box.CloseButton, {}) }),
1716
1777
  helpText
1717
1778
  ]
1718
1779
  })
@@ -1724,18 +1785,18 @@ var HelpText = (0, import_react33.forwardRef)(
1724
1785
  HelpText.displayName = "HelpText";
1725
1786
 
1726
1787
  // src/layout/container/container.tsx
1727
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1728
- var import_react_slot10 = require("@radix-ui/react-slot");
1729
- var import_react34 = require("react");
1730
- var import_jsx_runtime32 = require("react/jsx-runtime");
1731
- var Container = (0, import_react34.forwardRef)(
1788
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1789
+ 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)(
1732
1793
  (_a, ref) => {
1733
1794
  var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
1734
- const Component = asChild ? import_react_slot10.Slot : Tag;
1735
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1795
+ const Component = asChild ? import_react_slot11.Slot : Tag;
1796
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1736
1797
  Component,
1737
1798
  __spreadProps(__spreadValues({}, rest), {
1738
- className: (0, import_typed_classname29.clsx)(
1799
+ className: (0, import_typed_classname30.clsx)(
1739
1800
  "hds-container",
1740
1801
  { "hds-container--slim": variant === "slim" },
1741
1802
  className
@@ -1749,9 +1810,9 @@ var Container = (0, import_react34.forwardRef)(
1749
1810
  Container.displayName = "Container";
1750
1811
 
1751
1812
  // src/layout/grid/grid.tsx
1752
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1753
- var import_react_slot11 = require("@radix-ui/react-slot");
1754
- var import_react35 = require("react");
1813
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1814
+ var import_react_slot12 = require("@radix-ui/react-slot");
1815
+ var import_react36 = require("react");
1755
1816
 
1756
1817
  // src/layout/responsive.ts
1757
1818
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1772,17 +1833,17 @@ function getSpacingVariable(size) {
1772
1833
  }
1773
1834
 
1774
1835
  // src/layout/grid/grid.tsx
1775
- var import_jsx_runtime33 = require("react/jsx-runtime");
1776
- var GridItem = (0, import_react35.forwardRef)(
1836
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1837
+ var GridItem = (0, import_react36.forwardRef)(
1777
1838
  (_a, ref) => {
1778
1839
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1779
- const Component = asChild ? import_react_slot11.Slot : "div";
1840
+ const Component = asChild ? import_react_slot12.Slot : "div";
1780
1841
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1781
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1842
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1782
1843
  Component,
1783
1844
  __spreadProps(__spreadValues({
1784
1845
  style,
1785
- className: (0, import_typed_classname30.clsx)("hds-grid__item", className),
1846
+ className: (0, import_typed_classname31.clsx)("hds-grid__item", className),
1786
1847
  ref
1787
1848
  }, rest), {
1788
1849
  children
@@ -1791,16 +1852,16 @@ var GridItem = (0, import_react35.forwardRef)(
1791
1852
  }
1792
1853
  );
1793
1854
  GridItem.displayName = "Grid.Item";
1794
- var Grid = (0, import_react35.forwardRef)(
1855
+ var Grid = (0, import_react36.forwardRef)(
1795
1856
  (_a, ref) => {
1796
1857
  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"]);
1797
- const Component = asChild ? import_react_slot11.Slot : "div";
1858
+ const Component = asChild ? import_react_slot12.Slot : "div";
1798
1859
  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"));
1799
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1860
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1800
1861
  Component,
1801
1862
  __spreadProps(__spreadValues({
1802
1863
  style,
1803
- className: (0, import_typed_classname30.clsx)("hds-grid", className),
1864
+ className: (0, import_typed_classname31.clsx)("hds-grid", className),
1804
1865
  ref
1805
1866
  }, rest), {
1806
1867
  children
@@ -1812,12 +1873,12 @@ Grid.displayName = "Grid";
1812
1873
  Grid.Item = GridItem;
1813
1874
 
1814
1875
  // src/layout/stack/stack.tsx
1815
- var React3 = require("react");
1816
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1817
- var import_react36 = require("react");
1818
- var import_react_slot12 = require("@radix-ui/react-slot");
1819
- var import_jsx_runtime34 = require("react/jsx-runtime");
1820
- var Stack = (0, import_react36.forwardRef)(
1876
+ var React4 = require("react");
1877
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1878
+ var import_react37 = require("react");
1879
+ 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)(
1821
1882
  (_a, ref) => {
1822
1883
  var _b = _a, {
1823
1884
  children,
@@ -1844,13 +1905,13 @@ var Stack = (0, import_react36.forwardRef)(
1844
1905
  "align",
1845
1906
  "justify"
1846
1907
  ]);
1847
- const Component = asChild ? import_react_slot12.Slot : "div";
1908
+ const Component = asChild ? import_react_slot13.Slot : "div";
1848
1909
  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));
1849
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1910
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1850
1911
  Component,
1851
1912
  __spreadProps(__spreadValues({
1852
1913
  style,
1853
- className: (0, import_typed_classname31.clsx)("hds-stack", className),
1914
+ className: (0, import_typed_classname32.clsx)("hds-stack", className),
1854
1915
  ref
1855
1916
  }, rest), {
1856
1917
  children
@@ -1859,66 +1920,66 @@ var Stack = (0, import_react36.forwardRef)(
1859
1920
  }
1860
1921
  );
1861
1922
  Stack.displayName = "Stack";
1862
- var HStack = (0, import_react36.forwardRef)((props, ref) => {
1863
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1923
+ var HStack = (0, import_react37.forwardRef)((props, ref) => {
1924
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1864
1925
  });
1865
1926
  HStack.displayName = "HStack";
1866
- var VStack = (0, import_react36.forwardRef)((props, ref) => {
1867
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1927
+ var VStack = (0, import_react37.forwardRef)((props, ref) => {
1928
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1868
1929
  });
1869
1930
  VStack.displayName = "VStack";
1870
1931
 
1871
1932
  // src/modal/modal.tsx
1872
- var import_react37 = require("react");
1873
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1874
- var import_react_slot13 = require("@radix-ui/react-slot");
1875
- var import_jsx_runtime35 = require("react/jsx-runtime");
1876
- var ModalHeader = (0, import_react37.forwardRef)(
1933
+ var import_react38 = require("react");
1934
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1935
+ var import_react_slot14 = require("@radix-ui/react-slot");
1936
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1937
+ var ModalHeader = (0, import_react38.forwardRef)(
1877
1938
  (_a, ref) => {
1878
1939
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1879
- const Component = asChild ? import_react_slot13.Slot : "h1";
1880
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1940
+ const Component = asChild ? import_react_slot14.Slot : "h1";
1941
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1881
1942
  Component,
1882
1943
  __spreadValues({
1883
- className: (0, import_typed_classname32.clsx)("hds-modal__header", className),
1944
+ className: (0, import_typed_classname33.clsx)("hds-modal__header", className),
1884
1945
  ref
1885
1946
  }, rest)
1886
1947
  );
1887
1948
  }
1888
1949
  );
1889
1950
  ModalHeader.displayName = "Modal.Header";
1890
- var ModalContent = (0, import_react37.forwardRef)(
1951
+ var ModalContent = (0, import_react38.forwardRef)(
1891
1952
  (_a, ref) => {
1892
1953
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1893
- const Component = asChild ? import_react_slot13.Slot : "div";
1894
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1954
+ const Component = asChild ? import_react_slot14.Slot : "div";
1955
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1895
1956
  Component,
1896
1957
  __spreadValues({
1897
- className: (0, import_typed_classname32.clsx)("hds-modal__content", className),
1958
+ className: (0, import_typed_classname33.clsx)("hds-modal__content", className),
1898
1959
  ref
1899
1960
  }, rest)
1900
1961
  );
1901
1962
  }
1902
1963
  );
1903
1964
  ModalContent.displayName = "Modal.Content";
1904
- var ModalFooter = (0, import_react37.forwardRef)(
1965
+ var ModalFooter = (0, import_react38.forwardRef)(
1905
1966
  (_a, ref) => {
1906
1967
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1907
- const Component = asChild ? import_react_slot13.Slot : "footer";
1908
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1968
+ const Component = asChild ? import_react_slot14.Slot : "footer";
1969
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1909
1970
  Component,
1910
1971
  __spreadValues({
1911
- className: (0, import_typed_classname32.clsx)("hds-modal__footer", className),
1972
+ className: (0, import_typed_classname33.clsx)("hds-modal__footer", className),
1912
1973
  ref
1913
1974
  }, rest)
1914
1975
  );
1915
1976
  }
1916
1977
  );
1917
1978
  ModalFooter.displayName = "Modal.Footer";
1918
- var Modal = (0, import_react37.forwardRef)(
1979
+ var Modal = (0, import_react38.forwardRef)(
1919
1980
  (_a, ref) => {
1920
1981
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1921
- const modalRef = (0, import_react37.useRef)(null);
1982
+ const modalRef = (0, import_react38.useRef)(null);
1922
1983
  const mergedRef = useMergeRefs([modalRef, ref]);
1923
1984
  function onCloseButtonClick() {
1924
1985
  var _a2;
@@ -1926,7 +1987,7 @@ var Modal = (0, import_react37.forwardRef)(
1926
1987
  return false;
1927
1988
  }
1928
1989
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1929
- (0, import_react37.useEffect)(() => {
1990
+ (0, import_react38.useEffect)(() => {
1930
1991
  if (modalRef.current && open !== void 0) {
1931
1992
  if (open && !modalRef.current.open) {
1932
1993
  modalRef.current.showModal();
@@ -1941,16 +2002,16 @@ var Modal = (0, import_react37.forwardRef)(
1941
2002
  }
1942
2003
  onClick == null ? void 0 : onClick(e);
1943
2004
  }
1944
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2005
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1945
2006
  Box,
1946
2007
  {
1947
2008
  asChild: true,
1948
- className: (0, import_typed_classname32.clsx)("hds-modal", className),
2009
+ className: (0, import_typed_classname33.clsx)("hds-modal", className),
1949
2010
  closeable: true,
1950
2011
  onClick: onDialogClick,
1951
2012
  onClose: onCloseButtonClick,
1952
2013
  variant: "white",
1953
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
2014
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
1954
2015
  }
1955
2016
  );
1956
2017
  }
@@ -1960,7 +2021,7 @@ Modal.Header = ModalHeader;
1960
2021
  Modal.Content = ModalContent;
1961
2022
  Modal.Footer = ModalFooter;
1962
2023
  function useScrollLock(modalRef, bodyClass) {
1963
- (0, import_react37.useEffect)(() => {
2024
+ (0, import_react38.useEffect)(() => {
1964
2025
  if (!modalRef.current) return;
1965
2026
  if (modalRef.current.open) document.body.classList.add(bodyClass);
1966
2027
  const observer = new MutationObserver(() => {
@@ -1980,18 +2041,18 @@ function useScrollLock(modalRef, bodyClass) {
1980
2041
  }
1981
2042
 
1982
2043
  // src/navbar/navbar.tsx
1983
- var import_react39 = require("react");
1984
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1985
- var import_react_slot14 = require("@radix-ui/react-slot");
2044
+ 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");
1986
2047
 
1987
2048
  // src/navbar/navbar-expandable-menu.tsx
1988
- var import_react38 = require("react");
1989
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
2049
+ var import_react39 = require("react");
2050
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1990
2051
 
1991
2052
  // src/navbar/icons.tsx
1992
- var import_jsx_runtime36 = require("react/jsx-runtime");
2053
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1993
2054
  function CloseIcon() {
1994
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2055
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1995
2056
  "path",
1996
2057
  {
1997
2058
  d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
@@ -2000,7 +2061,7 @@ function CloseIcon() {
2000
2061
  ) });
2001
2062
  }
2002
2063
  function MenuIcon() {
2003
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2064
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2004
2065
  "path",
2005
2066
  {
2006
2067
  fill: "currentColor",
@@ -2010,35 +2071,35 @@ function MenuIcon() {
2010
2071
  }
2011
2072
 
2012
2073
  // src/navbar/navbar-expandable-menu.tsx
2013
- var import_jsx_runtime37 = require("react/jsx-runtime");
2014
- var ExpandableMenuContext = (0, import_react38.createContext)(null);
2074
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2075
+ var ExpandableMenuContext = (0, import_react39.createContext)(null);
2015
2076
  var useNavbarExpendableMenuContext = () => {
2016
- const value = (0, import_react38.useContext)(ExpandableMenuContext);
2077
+ const value = (0, import_react39.useContext)(ExpandableMenuContext);
2017
2078
  if (value === null) {
2018
2079
  throw new Error("useNavbarExpendableMenuContext must be used within a Navbar.ExpandableMenu");
2019
2080
  }
2020
2081
  return value;
2021
2082
  };
2022
2083
  function NavbarExpandableMenu({ children }) {
2023
- const contentId = (0, import_react38.useId)();
2024
- const [open, setOpen] = (0, import_react38.useState)(false);
2025
- (0, import_react38.useEffect)(() => {
2084
+ const contentId = (0, import_react39.useId)();
2085
+ const [open, setOpen] = (0, import_react39.useState)(false);
2086
+ (0, import_react39.useEffect)(() => {
2026
2087
  if (open) {
2027
2088
  window.scrollTo(0, 0);
2028
- document.body.classList.add((0, import_typed_classname33.clsx)("hds-navbar-scroll-lock"));
2089
+ document.body.classList.add((0, import_typed_classname34.clsx)("hds-navbar-scroll-lock"));
2029
2090
  const releaseFocusTrap2 = focusTrap(
2030
- document.getElementsByClassName((0, import_typed_classname33.clsx)("hds-navbar"))[0]
2091
+ document.getElementsByClassName((0, import_typed_classname34.clsx)("hds-navbar"))[0]
2031
2092
  );
2032
2093
  return () => {
2033
- document.body.classList.remove((0, import_typed_classname33.clsx)("hds-navbar-scroll-lock"));
2094
+ document.body.classList.remove((0, import_typed_classname34.clsx)("hds-navbar-scroll-lock"));
2034
2095
  releaseFocusTrap2();
2035
2096
  };
2036
2097
  }
2037
2098
  }, [open]);
2038
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2099
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2039
2100
  }
2040
2101
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
2041
- var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
2102
+ var NavbarExpandableMenuTrigger = (0, import_react39.forwardRef)(
2042
2103
  (_a, ref) => {
2043
2104
  var _b = _a, {
2044
2105
  whenClosedText,
@@ -2059,12 +2120,12 @@ var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
2059
2120
  function toggleOpen() {
2060
2121
  setOpen(!open);
2061
2122
  }
2062
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2123
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2063
2124
  "button",
2064
2125
  __spreadProps(__spreadValues({
2065
2126
  "aria-expanded": open,
2066
2127
  "aria-controls": contentId,
2067
- className: (0, import_typed_classname33.clsx)(
2128
+ className: (0, import_typed_classname34.clsx)(
2068
2129
  "hds-navbar__item",
2069
2130
  className,
2070
2131
  open ? "hds-navbar__item--open" : "hds-navbar__item--closed"
@@ -2076,53 +2137,53 @@ var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
2076
2137
  style: __spreadValues({ position: "relative" }, style)
2077
2138
  }, rest), {
2078
2139
  children: [
2079
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2080
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname33.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2081
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname33.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2140
+ /* @__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 })
2082
2143
  ] }),
2083
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { style: { width: 32, height: 32 }, children: open ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MenuIcon, {}) })
2144
+ /* @__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, {}) })
2084
2145
  ]
2085
2146
  })
2086
2147
  );
2087
2148
  }
2088
2149
  );
2089
2150
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenuTrigger";
2090
- var NavbarExpandableMenuContent = (0, import_react38.forwardRef)((_a, ref) => {
2151
+ var NavbarExpandableMenuContent = (0, import_react39.forwardRef)((_a, ref) => {
2091
2152
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2092
2153
  const { contentId, open } = useNavbarExpendableMenuContext();
2093
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2154
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2094
2155
  "section",
2095
2156
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
2096
2157
  id: contentId,
2097
- className: (0, import_typed_classname33.clsx)("hds-navbar__expandable-menu-content", className),
2158
+ className: (0, import_typed_classname34.clsx)("hds-navbar__expandable-menu-content", className),
2098
2159
  "data-state": open ? "open" : "closed"
2099
2160
  }), { inert: open ? void 0 : "true" }), {
2100
2161
  ref,
2101
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_typed_classname33.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2162
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_typed_classname34.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2102
2163
  })
2103
2164
  );
2104
2165
  });
2105
2166
  NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenuContent";
2106
2167
 
2107
2168
  // src/navbar/navbar.tsx
2108
- var import_jsx_runtime38 = require("react/jsx-runtime");
2109
- var NavbarLogo = (0, import_react39.forwardRef)(
2169
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2170
+ var NavbarLogo = (0, import_react40.forwardRef)(
2110
2171
  (_a, ref) => {
2111
2172
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
2112
- const Component = asChild ? import_react_slot14.Slot : "div";
2113
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
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 }));
2114
2175
  }
2115
2176
  );
2116
2177
  NavbarLogo.displayName = "Navbar.Logo";
2117
- var NavbarLogoAndServiceText = (0, import_react39.forwardRef)(
2178
+ var NavbarLogoAndServiceText = (0, import_react40.forwardRef)(
2118
2179
  (_a, ref) => {
2119
2180
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
2120
- const Component = asChild ? import_react_slot14.Slot : "div";
2121
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2181
+ const Component = asChild ? import_react_slot15.Slot : "div";
2182
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2122
2183
  Component,
2123
2184
  __spreadProps(__spreadValues({
2124
2185
  ref,
2125
- className: (0, import_typed_classname34.clsx)(
2186
+ className: (0, import_typed_classname35.clsx)(
2126
2187
  "hds-navbar__logo-and-service-text",
2127
2188
  `hds-navbar__logo-and-service-text--${variant}`,
2128
2189
  className
@@ -2134,29 +2195,29 @@ var NavbarLogoAndServiceText = (0, import_react39.forwardRef)(
2134
2195
  }
2135
2196
  );
2136
2197
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
2137
- var NavbarItemIcon = (0, import_react39.forwardRef)(
2198
+ var NavbarItemIcon = (0, import_react40.forwardRef)(
2138
2199
  (_a, ref) => {
2139
2200
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2140
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_slot14.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
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 }));
2141
2202
  }
2142
2203
  );
2143
2204
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
2144
- var NavbarItem = (0, import_react39.forwardRef)(
2205
+ var NavbarItem = (0, import_react40.forwardRef)(
2145
2206
  (_a, ref) => {
2146
2207
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2147
- const Component = asChild ? import_react_slot14.Slot : "div";
2148
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)("hds-navbar__item", className), ref }, rest), { children }));
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 }));
2149
2210
  }
2150
2211
  );
2151
2212
  NavbarItem.displayName = "Navbar.Item";
2152
- var NavbarButtonItem = (0, import_react39.forwardRef)(
2213
+ var NavbarButtonItem = (0, import_react40.forwardRef)(
2153
2214
  (_a, ref) => {
2154
2215
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2155
- const Component = asChild ? import_react_slot14.Slot : "button";
2156
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2216
+ const Component = asChild ? import_react_slot15.Slot : "button";
2217
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2157
2218
  Component,
2158
2219
  __spreadProps(__spreadValues({
2159
- className: (0, import_typed_classname34.clsx)("hds-navbar__item", className),
2220
+ className: (0, import_typed_classname35.clsx)("hds-navbar__item", className),
2160
2221
  ref,
2161
2222
  type: "button"
2162
2223
  }, rest), {
@@ -2166,36 +2227,36 @@ var NavbarButtonItem = (0, import_react39.forwardRef)(
2166
2227
  }
2167
2228
  );
2168
2229
  NavbarButtonItem.displayName = "Navbar.ButtonItem";
2169
- var NavbarLinkItem = (0, import_react39.forwardRef)(
2230
+ var NavbarLinkItem = (0, import_react40.forwardRef)(
2170
2231
  (_a, ref) => {
2171
2232
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2172
- const Component = asChild ? import_react_slot14.Slot : "a";
2173
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname34.clsx)("hds-navbar__item", className), ref }, rest), { children }));
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 }));
2174
2235
  }
2175
2236
  );
2176
2237
  NavbarLinkItem.displayName = "Navbar.LinkItem";
2177
- var NavbarNavigation = (0, import_react39.forwardRef)(
2238
+ var NavbarNavigation = (0, import_react40.forwardRef)(
2178
2239
  (_a, ref) => {
2179
2240
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2180
- const Component = asChild ? import_react_slot14.Slot : "div";
2181
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2241
+ const Component = asChild ? import_react_slot15.Slot : "div";
2242
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2182
2243
  Component,
2183
2244
  __spreadValues({
2184
- className: (0, import_typed_classname34.clsx)("hds-navbar__navigation", className),
2245
+ className: (0, import_typed_classname35.clsx)("hds-navbar__navigation", className),
2185
2246
  ref
2186
2247
  }, rest)
2187
2248
  );
2188
2249
  }
2189
2250
  );
2190
2251
  NavbarNavigation.displayName = "Navbar.Navigation";
2191
- var Navbar = (0, import_react39.forwardRef)(
2252
+ var Navbar = (0, import_react40.forwardRef)(
2192
2253
  (_a, ref) => {
2193
2254
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
2194
- const Component = asChild ? import_react_slot14.Slot : "header";
2195
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2255
+ const Component = asChild ? import_react_slot15.Slot : "header";
2256
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2196
2257
  Component,
2197
2258
  __spreadProps(__spreadValues({
2198
- className: (0, import_typed_classname34.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2259
+ className: (0, import_typed_classname35.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2199
2260
  ref
2200
2261
  }, rest), {
2201
2262
  children
@@ -2216,17 +2277,17 @@ Navbar.ItemIcon = NavbarItemIcon;
2216
2277
  Navbar.Navigation = NavbarNavigation;
2217
2278
 
2218
2279
  // src/show-more/show-more.tsx
2219
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2220
- var import_react40 = require("react");
2221
- var import_jsx_runtime39 = require("react/jsx-runtime");
2222
- var ShowMoreButton = (0, import_react40.forwardRef)(
2280
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2281
+ var import_react41 = require("react");
2282
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2283
+ var ShowMoreButton = (0, import_react41.forwardRef)(
2223
2284
  (_a, ref) => {
2224
2285
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
2225
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2286
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2226
2287
  "button",
2227
2288
  __spreadProps(__spreadValues({
2228
2289
  ref,
2229
- className: (0, import_typed_classname35.clsx)(
2290
+ className: (0, import_typed_classname36.clsx)(
2230
2291
  "hds-show-more",
2231
2292
  variant === "show-more-show-less" && "hds-show-more--show-less",
2232
2293
  className
@@ -2236,7 +2297,7 @@ var ShowMoreButton = (0, import_react40.forwardRef)(
2236
2297
  }, rest), {
2237
2298
  children: [
2238
2299
  text,
2239
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: (0, import_typed_classname35.clsx)("hds-show-more__icon") })
2300
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: (0, import_typed_classname36.clsx)("hds-show-more__icon") })
2240
2301
  ]
2241
2302
  })
2242
2303
  );
@@ -2245,11 +2306,11 @@ var ShowMoreButton = (0, import_react40.forwardRef)(
2245
2306
  ShowMoreButton.displayName = "ShowMoreButton";
2246
2307
 
2247
2308
  // src/skeleton/skeleton.tsx
2248
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2249
- var import_react_slot15 = require("@radix-ui/react-slot");
2250
- var import_react41 = require("react");
2251
- var import_jsx_runtime40 = require("react/jsx-runtime");
2252
- var Skeleton = (0, import_react41.forwardRef)(
2309
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2310
+ var import_react_slot16 = require("@radix-ui/react-slot");
2311
+ var import_react42 = require("react");
2312
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2313
+ var Skeleton = (0, import_react42.forwardRef)(
2253
2314
  (_a, ref) => {
2254
2315
  var _b = _a, {
2255
2316
  as: Tag = "div",
@@ -2272,11 +2333,11 @@ var Skeleton = (0, import_react41.forwardRef)(
2272
2333
  "className",
2273
2334
  "style"
2274
2335
  ]);
2275
- const Component = asChild ? import_react_slot15.Slot : Tag;
2276
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2336
+ const Component = asChild ? import_react_slot16.Slot : Tag;
2337
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2277
2338
  Component,
2278
2339
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2279
- className: (0, import_typed_classname36.clsx)(
2340
+ className: (0, import_typed_classname37.clsx)(
2280
2341
  "hds-skeleton",
2281
2342
  `hds-skeleton--${variant}`,
2282
2343
  !animation && `hds-skeleton--no-animation`,
@@ -2295,19 +2356,19 @@ var Skeleton = (0, import_react41.forwardRef)(
2295
2356
  Skeleton.displayName = "Skeleton";
2296
2357
 
2297
2358
  // src/spinner/spinner.tsx
2298
- var import_react42 = require("react");
2299
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2300
- var import_jsx_runtime41 = require("react/jsx-runtime");
2301
- var Spinner = (0, import_react42.forwardRef)(
2359
+ var import_react43 = require("react");
2360
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2361
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2362
+ var Spinner = (0, import_react43.forwardRef)(
2302
2363
  (_a, ref) => {
2303
2364
  var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
2304
2365
  const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
2305
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2366
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2306
2367
  "div",
2307
2368
  __spreadValues({
2308
2369
  title,
2309
2370
  style,
2310
- className: (0, import_typed_classname37.clsx)(
2371
+ className: (0, import_typed_classname38.clsx)(
2311
2372
  "hds-spinner",
2312
2373
  `hds-spinner--${size}`,
2313
2374
  delay && "hds-spinner--delay",
@@ -2321,10 +2382,10 @@ var Spinner = (0, import_react42.forwardRef)(
2321
2382
  Spinner.displayName = "Spinner";
2322
2383
 
2323
2384
  // src/step-indicator/step-indicator.tsx
2324
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2325
- var import_react43 = require("react");
2326
- var import_jsx_runtime42 = require("react/jsx-runtime");
2327
- var StepIndicator = (0, import_react43.forwardRef)(
2385
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2386
+ var import_react44 = require("react");
2387
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2388
+ var StepIndicator = (0, import_react44.forwardRef)(
2328
2389
  (_a, ref) => {
2329
2390
  var _b = _a, {
2330
2391
  activeStep,
@@ -2343,27 +2404,27 @@ var StepIndicator = (0, import_react43.forwardRef)(
2343
2404
  "title",
2344
2405
  "titleAs"
2345
2406
  ]);
2346
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2407
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2347
2408
  "div",
2348
2409
  __spreadProps(__spreadValues({
2349
2410
  ref,
2350
- className: (0, import_typed_classname38.clsx)("hds-step-indicator", className),
2411
+ className: (0, import_typed_classname39.clsx)("hds-step-indicator", className),
2351
2412
  lang
2352
2413
  }, rest), {
2353
2414
  children: [
2354
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__header"), children: [
2355
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__left-label"), children: label }),
2356
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
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 }),
2417
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2357
2418
  ] }),
2358
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
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)(
2359
2420
  "div",
2360
2421
  {
2361
- className: (0, import_typed_classname38.clsx)("hds-step-indicator__step"),
2422
+ className: (0, import_typed_classname39.clsx)("hds-step-indicator__step"),
2362
2423
  "data-state": getStepState(i + 1, activeStep)
2363
2424
  },
2364
2425
  i
2365
2426
  )) }),
2366
- title ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TitleComponent, { className: (0, import_typed_classname38.clsx)("hds-step-indicator__title"), children: title }) : null
2427
+ title ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TitleComponent, { className: (0, import_typed_classname39.clsx)("hds-step-indicator__title"), children: title }) : null
2367
2428
  ]
2368
2429
  })
2369
2430
  );
@@ -2387,18 +2448,18 @@ function getStepState(renderedStep, activeStep) {
2387
2448
  }
2388
2449
 
2389
2450
  // src/styled-html/styled-html.tsx
2390
- var import_react44 = require("react");
2391
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2392
- var import_react_slot16 = require("@radix-ui/react-slot");
2393
- var import_jsx_runtime43 = require("react/jsx-runtime");
2394
- var StyledHtml = (0, import_react44.forwardRef)(
2451
+ 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");
2454
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2455
+ var StyledHtml = (0, import_react45.forwardRef)(
2395
2456
  (_a, ref) => {
2396
2457
  var _b = _a, { asChild, children, size, unstable_darkmode: darkmode = false, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "unstable_darkmode", "className"]);
2397
- const Component = asChild ? import_react_slot16.Slot : "div";
2398
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2458
+ const Component = asChild ? import_react_slot17.Slot : "div";
2459
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2399
2460
  Component,
2400
2461
  __spreadProps(__spreadValues({
2401
- className: (0, import_typed_classname39.clsx)(
2462
+ className: (0, import_typed_classname40.clsx)(
2402
2463
  `hds-styled-html`,
2403
2464
  size === "small" && "hds-styled-html--small",
2404
2465
  darkmode && "hds-styled-html--darkmode",
@@ -2414,20 +2475,20 @@ var StyledHtml = (0, import_react44.forwardRef)(
2414
2475
  StyledHtml.displayName = "StyledHtml";
2415
2476
 
2416
2477
  // src/table/table.tsx
2417
- var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2418
- var import_react45 = require("react");
2419
- var import_jsx_runtime44 = require("react/jsx-runtime");
2420
- var Table = (0, import_react45.forwardRef)(
2478
+ var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2479
+ var import_react46 = require("react");
2480
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2481
+ var Table = (0, import_react46.forwardRef)(
2421
2482
  (_a, ref) => {
2422
2483
  var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2423
- const descriptionId = (0, import_react45.useId)();
2424
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
2425
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2484
+ const descriptionId = (0, import_react46.useId)();
2485
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
2486
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2426
2487
  "table",
2427
2488
  __spreadProps(__spreadValues({
2428
2489
  "aria-describedby": description ? descriptionId : void 0,
2429
2490
  ref,
2430
- className: (0, import_typed_classname40.clsx)(
2491
+ className: (0, import_typed_classname41.clsx)(
2431
2492
  "hds-table",
2432
2493
  {
2433
2494
  "hds-table--compressed": size === "compressed",
@@ -2437,27 +2498,27 @@ var Table = (0, import_react45.forwardRef)(
2437
2498
  )
2438
2499
  }, rest), {
2439
2500
  children: [
2440
- caption ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("caption", { children: caption }) : null,
2501
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("caption", { children: caption }) : null,
2441
2502
  children
2442
2503
  ]
2443
2504
  })
2444
2505
  ),
2445
- description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: (0, import_typed_classname40.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2506
+ description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: (0, import_typed_classname41.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2446
2507
  ] });
2447
2508
  }
2448
2509
  );
2449
2510
  Table.displayName = "Table";
2450
2511
 
2451
2512
  // src/tabs/tabs.tsx
2452
- var import_react49 = require("react");
2453
- var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2454
- var import_react_slot18 = require("@radix-ui/react-slot");
2513
+ 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");
2455
2516
 
2456
2517
  // src/tabs/context.ts
2457
- var import_react46 = require("react");
2458
- var TabsContext = (0, import_react46.createContext)(null);
2518
+ var import_react47 = require("react");
2519
+ var TabsContext = (0, import_react47.createContext)(null);
2459
2520
  function useTabsContext() {
2460
- const context = (0, import_react46.useContext)(TabsContext);
2521
+ const context = (0, import_react47.useContext)(TabsContext);
2461
2522
  if (!context) {
2462
2523
  throw new Error(
2463
2524
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2467,25 +2528,25 @@ function useTabsContext() {
2467
2528
  }
2468
2529
 
2469
2530
  // src/tabs/tabs-content.tsx
2470
- var import_react47 = require("react");
2471
- var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2472
- var import_react_slot17 = require("@radix-ui/react-slot");
2473
- var import_jsx_runtime45 = require("react/jsx-runtime");
2474
- var TabsContents = (0, import_react47.forwardRef)(
2531
+ 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");
2534
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2535
+ var TabsContents = (0, import_react48.forwardRef)(
2475
2536
  (_a, ref) => {
2476
2537
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2477
- const Component = asChild ? import_react_slot17.Slot : "div";
2478
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname41.clsx)("hds-tabs__contents") }, rest), { 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 }));
2479
2540
  }
2480
2541
  );
2481
2542
  TabsContents.displayName = "Tabs.Contents";
2482
- var TabsContent = (0, import_react47.forwardRef)(
2543
+ var TabsContent = (0, import_react48.forwardRef)(
2483
2544
  (_a, ref) => {
2484
2545
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2485
2546
  const context = useTabsContext();
2486
- const Component = asChild ? import_react_slot17.Slot : "div";
2547
+ const Component = asChild ? import_react_slot18.Slot : "div";
2487
2548
  if (context.activeTabId === forTabId) {
2488
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2549
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2489
2550
  }
2490
2551
  return null;
2491
2552
  }
@@ -2493,21 +2554,21 @@ var TabsContent = (0, import_react47.forwardRef)(
2493
2554
  TabsContent.displayName = "Tabs.Content";
2494
2555
 
2495
2556
  // src/tabs/tabs-list.tsx
2496
- var import_react48 = require("react");
2497
- var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2498
- var import_jsx_runtime46 = require("react/jsx-runtime");
2499
- var TabsList = (0, import_react48.forwardRef)(
2557
+ var import_react49 = require("react");
2558
+ var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2559
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2560
+ var TabsList = (0, import_react49.forwardRef)(
2500
2561
  (_a, ref) => {
2501
2562
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2502
2563
  const { activeTabId } = useTabsContext();
2503
- const tabsListRef = (0, import_react48.useRef)(null);
2564
+ const tabsListRef = (0, import_react49.useRef)(null);
2504
2565
  const mergedRef = useMergeRefs([tabsListRef, ref]);
2505
2566
  const { width: tabsWidth } = useResize(tabsListRef);
2506
2567
  const isClientSide = useHydrated();
2507
2568
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2508
2569
  const wideEnough = innerWidth >= tabsWidth;
2509
- const previousTabId = (0, import_react48.useRef)(activeTabId);
2510
- (0, import_react48.useEffect)(() => {
2570
+ const previousTabId = (0, import_react49.useRef)(activeTabId);
2571
+ (0, import_react49.useEffect)(() => {
2511
2572
  const tabList = tabsListRef.current;
2512
2573
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2513
2574
  if (!activeTab || !tabList) return;
@@ -2531,10 +2592,10 @@ var TabsList = (0, import_react48.forwardRef)(
2531
2592
  }
2532
2593
  previousTabId.current = activeTabId;
2533
2594
  }, [activeTabId, innerWidth]);
2534
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2595
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2535
2596
  "div",
2536
2597
  __spreadProps(__spreadValues({
2537
- className: (0, import_typed_classname42.clsx)(
2598
+ className: (0, import_typed_classname43.clsx)(
2538
2599
  "hds-tabs__list",
2539
2600
  direction === "horizontal" ? {
2540
2601
  "hds-tabs__list--horizontal": wideEnough,
@@ -2553,7 +2614,7 @@ var TabsList = (0, import_react48.forwardRef)(
2553
2614
  }
2554
2615
  );
2555
2616
  TabsList.displayName = "Tabs.List";
2556
- var TabsTab = (0, import_react48.forwardRef)(
2617
+ var TabsTab = (0, import_react49.forwardRef)(
2557
2618
  (_a, ref) => {
2558
2619
  var _b = _a, { children, tabId, className, onClick } = _b, rest = __objRest(_b, ["children", "tabId", "className", "onClick"]);
2559
2620
  const context = useTabsContext();
@@ -2562,10 +2623,10 @@ var TabsTab = (0, import_react48.forwardRef)(
2562
2623
  context.toggleActiveTabId(tabId);
2563
2624
  onClick == null ? void 0 : onClick(e);
2564
2625
  };
2565
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2626
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2566
2627
  "button",
2567
2628
  __spreadProps(__spreadValues({
2568
- className: (0, import_typed_classname42.clsx)(
2629
+ className: (0, import_typed_classname43.clsx)(
2569
2630
  "hds-tabs__tab",
2570
2631
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2571
2632
  className
@@ -2584,13 +2645,13 @@ var TabsTab = (0, import_react48.forwardRef)(
2584
2645
  TabsTab.displayName = "Tabs.Tab";
2585
2646
 
2586
2647
  // src/tabs/tabs.tsx
2587
- var import_jsx_runtime47 = require("react/jsx-runtime");
2588
- var Tabs = (0, import_react49.forwardRef)(
2648
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2649
+ var Tabs = (0, import_react50.forwardRef)(
2589
2650
  (_a, ref) => {
2590
2651
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
2591
- const [activeTabId, setActiveTabId] = (0, import_react49.useState)(defaultTab);
2592
- const Component = asChild ? import_react_slot18.Slot : "div";
2593
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname43.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2652
+ 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 }) }));
2594
2655
  }
2595
2656
  );
2596
2657
  Tabs.displayName = "Tabs";
@@ -2600,10 +2661,10 @@ Tabs.Contents = TabsContents;
2600
2661
  Tabs.Content = TabsContent;
2601
2662
 
2602
2663
  // src/text/text.tsx
2603
- var import_react50 = require("react");
2604
- var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2605
- var import_react_slot19 = require("@radix-ui/react-slot");
2606
- var import_jsx_runtime48 = require("react/jsx-runtime");
2664
+ 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");
2667
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2607
2668
  var defaultHTMLTag = {
2608
2669
  "h1-display": "h1",
2609
2670
  h1: "h1",
@@ -2619,7 +2680,7 @@ var defaultHTMLTag = {
2619
2680
  caption: "p",
2620
2681
  "caption-title": "p"
2621
2682
  };
2622
- var Text = (0, import_react50.forwardRef)(
2683
+ var Text = (0, import_react51.forwardRef)(
2623
2684
  (_a, ref) => {
2624
2685
  var _b = _a, {
2625
2686
  as: Tag,
@@ -2638,12 +2699,12 @@ var Text = (0, import_react50.forwardRef)(
2638
2699
  "children",
2639
2700
  "className"
2640
2701
  ]);
2641
- const Component = asChild ? import_react_slot19.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2702
+ const Component = asChild ? import_react_slot20.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2642
2703
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2643
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2704
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2644
2705
  Component,
2645
2706
  __spreadProps(__spreadValues({
2646
- className: (0, import_typed_classname44.clsx)(
2707
+ className: (0, import_typed_classname45.clsx)(
2647
2708
  `hds-text-${variant}`,
2648
2709
  sizeModifier && `hds-text--${sizeModifier}`,
2649
2710
  spacing && "hds-text--spacing",
@@ -2659,16 +2720,16 @@ var Text = (0, import_react50.forwardRef)(
2659
2720
  Text.displayName = "Text";
2660
2721
 
2661
2722
  // src/warning-banner/warning-banner.tsx
2662
- var import_react51 = require("react");
2663
- var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2664
- var import_jsx_runtime49 = require("react/jsx-runtime");
2665
- var WarningBanner = (0, import_react51.forwardRef)(
2723
+ var import_react52 = require("react");
2724
+ var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2725
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2726
+ var WarningBanner = (0, import_react52.forwardRef)(
2666
2727
  (_a, ref) => {
2667
2728
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2668
- const descriptionId = (0, import_react51.useId)();
2729
+ const descriptionId = (0, import_react52.useId)();
2669
2730
  const expandable = !!description;
2670
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname45.clsx)("hds-warning-banner", className), ref, children: [
2671
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2731
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname46.clsx)("hds-warning-banner", className), ref, children: [
2732
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2672
2733
  WarningBannerTitle,
2673
2734
  {
2674
2735
  variant: expandable ? "expandable" : "default",
@@ -2676,22 +2737,22 @@ var WarningBanner = (0, import_react51.forwardRef)(
2676
2737
  children: title
2677
2738
  }
2678
2739
  ),
2679
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2740
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2680
2741
  ] }));
2681
2742
  }
2682
2743
  );
2683
2744
  WarningBanner.displayName = "WarningBanner";
2684
- var WarningBannerTitle = (0, import_react51.forwardRef)((_a, ref) => {
2745
+ var WarningBannerTitle = (0, import_react52.forwardRef)((_a, ref) => {
2685
2746
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
2686
- const [open, setOpen] = (0, import_react51.useState)(false);
2747
+ const [open, setOpen] = (0, import_react52.useState)(false);
2687
2748
  if (variant === "expandable") {
2688
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2749
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2689
2750
  "button",
2690
2751
  __spreadProps(__spreadValues({}, rest), {
2691
2752
  "aria-expanded": open,
2692
2753
  "aria-controls": descriptionId,
2693
2754
  "data-state": open ? "open" : "closed",
2694
- className: (0, import_typed_classname45.clsx)(
2755
+ className: (0, import_typed_classname46.clsx)(
2695
2756
  "hds-warning-banner__title",
2696
2757
  "hds-warning-banner__title-trigger",
2697
2758
  className
@@ -2701,28 +2762,28 @@ var WarningBannerTitle = (0, import_react51.forwardRef)((_a, ref) => {
2701
2762
  },
2702
2763
  ref,
2703
2764
  type: "button",
2704
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children })
2765
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children })
2705
2766
  })
2706
2767
  );
2707
2768
  }
2708
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2769
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2709
2770
  "p",
2710
2771
  __spreadProps(__spreadValues({}, rest), {
2711
- className: (0, import_typed_classname45.clsx)("hds-warning-banner__title", className),
2772
+ className: (0, import_typed_classname46.clsx)("hds-warning-banner__title", className),
2712
2773
  ref,
2713
2774
  children
2714
2775
  })
2715
2776
  );
2716
2777
  });
2717
2778
  WarningBannerTitle.displayName = "WarningBannerTitle";
2718
- var WarningBannerDescription = (0, import_react51.forwardRef)(
2779
+ var WarningBannerDescription = (0, import_react52.forwardRef)(
2719
2780
  (_a, ref) => {
2720
2781
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
2721
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2782
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2722
2783
  "p",
2723
2784
  __spreadValues({
2724
2785
  id,
2725
- className: (0, import_typed_classname45.clsx)("hds-warning-banner__description", className),
2786
+ className: (0, import_typed_classname46.clsx)("hds-warning-banner__description", className),
2726
2787
  ref
2727
2788
  }, rest)
2728
2789
  );
@@ -2735,6 +2796,9 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2735
2796
  AccordionContent,
2736
2797
  AccordionHeader,
2737
2798
  AccordionItem,
2799
+ Alert,
2800
+ AlertDescription,
2801
+ AlertTitle,
2738
2802
  AutoAnimateHeight,
2739
2803
  Badge,
2740
2804
  Blockquote,