@postenbring/hedwig-react 2.1.4 → 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 (41) 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-4P4GPVKZ.mjs +63 -0
  14. package/dist/chunk-4P4GPVKZ.mjs.map +1 -0
  15. package/dist/{chunk-6SVLMQUW.mjs → chunk-FUIKSOJF.mjs} +4 -4
  16. package/dist/chunk-OVKUPO5U.mjs +1 -0
  17. package/dist/chunk-OVKUPO5U.mjs.map +1 -0
  18. package/dist/{chunk-YQMTDQSQ.mjs → chunk-TC5PD4TA.mjs} +4 -4
  19. package/dist/{chunk-4YCM72TQ.mjs → chunk-ZSYBCM2L.mjs} +4 -4
  20. package/dist/form/error-summary/error-summary.mjs +3 -3
  21. package/dist/form/error-summary/index.mjs +3 -3
  22. package/dist/form/index.mjs +15 -15
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +628 -572
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +70 -61
  28. package/dist/layout/grid/grid.mjs +2 -2
  29. package/dist/layout/grid/index.mjs +2 -2
  30. package/dist/layout/index.mjs +9 -9
  31. package/dist/layout/stack/index.mjs +2 -2
  32. package/dist/layout/stack/stack.mjs +2 -2
  33. package/dist/text/text.d.ts +1 -1
  34. package/package.json +5 -5
  35. package/src/alert/alert.stories.tsx +36 -0
  36. package/src/alert/alert.tsx +83 -0
  37. package/src/alert/index.tsx +2 -0
  38. package/src/index.ts +1 -0
  39. /package/dist/{chunk-6SVLMQUW.mjs.map → chunk-FUIKSOJF.mjs.map} +0 -0
  40. /package/dist/{chunk-YQMTDQSQ.mjs.map → chunk-TC5PD4TA.mjs.map} +0 -0
  41. /package/dist/{chunk-4YCM72TQ.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,17 +1215,17 @@ 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
1223
  var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
1171
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1224
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1172
1225
  "ul",
1173
1226
  __spreadValues({
1174
1227
  ref,
1175
- className: (0, import_typed_classname20.clsx)(
1228
+ className: (0, import_typed_classname21.clsx)(
1176
1229
  "hds-list",
1177
1230
  size !== "default" && `hds-list--${size}`,
1178
1231
  className
@@ -1182,14 +1235,14 @@ var UnorderedList = (0, import_react22.forwardRef)(
1182
1235
  }
1183
1236
  );
1184
1237
  UnorderedList.displayName = "UnorderedList";
1185
- var OrderedList = (0, import_react22.forwardRef)(
1238
+ var OrderedList = (0, import_react23.forwardRef)(
1186
1239
  (_a, ref) => {
1187
1240
  var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1188
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1241
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1189
1242
  "ol",
1190
1243
  __spreadValues({
1191
1244
  ref,
1192
- className: (0, import_typed_classname20.clsx)(
1245
+ className: (0, import_typed_classname21.clsx)(
1193
1246
  "hds-list",
1194
1247
  size !== "default" && `hds-list--${size}`,
1195
1248
  className
@@ -1201,17 +1254,17 @@ var OrderedList = (0, import_react22.forwardRef)(
1201
1254
  OrderedList.displayName = "OrderedList";
1202
1255
 
1203
1256
  // src/list/link-list.tsx
1204
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1205
- var import_react23 = require("react");
1206
- var import_jsx_runtime21 = require("react/jsx-runtime");
1207
- 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)(
1208
1261
  (_a, ref) => {
1209
1262
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1210
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1263
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1211
1264
  UnorderedList,
1212
1265
  __spreadValues({
1213
1266
  ref,
1214
- className: (0, import_typed_classname21.clsx)("hds-list--link-list", className)
1267
+ className: (0, import_typed_classname22.clsx)("hds-list--link-list", className)
1215
1268
  }, rest)
1216
1269
  );
1217
1270
  }
@@ -1219,19 +1272,19 @@ var LinkList = (0, import_react23.forwardRef)(
1219
1272
  LinkList.displayName = "LinkList";
1220
1273
 
1221
1274
  // src/link/link.tsx
1222
- var React2 = require("react");
1223
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1224
- var import_react24 = require("react");
1225
- var import_react_slot8 = require("@radix-ui/react-slot");
1226
- var import_jsx_runtime22 = require("react/jsx-runtime");
1227
- 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)(
1228
1281
  (_a, ref) => {
1229
1282
  var _b = _a, { asChild, children, variant = "underline", size = "default", icon, className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "icon", "className"]);
1230
- const Component = asChild ? import_react_slot8.Slot : "a";
1231
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1283
+ const Component = asChild ? import_react_slot9.Slot : "a";
1284
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1232
1285
  Component,
1233
1286
  __spreadProps(__spreadValues({
1234
- className: (0, import_typed_classname22.clsx)(
1287
+ className: (0, import_typed_classname23.clsx)(
1235
1288
  "hds-link",
1236
1289
  variant !== "underline" && `hds-link--${variant}`,
1237
1290
  size !== "default" && `hds-link--${size}`,
@@ -1249,9 +1302,9 @@ var Link = (0, import_react24.forwardRef)(
1249
1302
  Link.displayName = "Link";
1250
1303
 
1251
1304
  // src/utils/auto-animate-height.tsx
1252
- var import_react25 = require("react");
1253
- var import_jsx_runtime23 = require("react/jsx-runtime");
1254
- 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)(
1255
1308
  (_a, ref) => {
1256
1309
  var _b = _a, {
1257
1310
  children,
@@ -1267,16 +1320,16 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1267
1320
  "onTransitionEnd"
1268
1321
  ]);
1269
1322
  var _a2, _b2;
1270
- const rootRef = (0, import_react25.useRef)(null);
1323
+ const rootRef = (0, import_react26.useRef)(null);
1271
1324
  const mergedRef = useMergeRefs([rootRef, ref]);
1272
- const measurementRef = (0, import_react25.useRef)(null);
1273
- const [height, setHeight] = (0, import_react25.useState)(
1325
+ const measurementRef = (0, import_react26.useRef)(null);
1326
+ const [height, setHeight] = (0, import_react26.useState)(
1274
1327
  void 0
1275
1328
  );
1276
- const [clonedChildren, setClonedChildren] = (0, import_react25.useState)(
1277
- () => (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 }), {})
1278
1331
  );
1279
- (0, import_react25.useEffect)(() => {
1332
+ (0, import_react26.useEffect)(() => {
1280
1333
  var _a3;
1281
1334
  if (!rootRef.current) return;
1282
1335
  if (!measurementRef.current) return;
@@ -1292,7 +1345,7 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1292
1345
  });
1293
1346
  resizeObserver.observe(currentMeasurement);
1294
1347
  setHeight({ height: newHeight, shouldAnimate: true });
1295
- 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 }), {});
1296
1349
  if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
1297
1350
  setClonedChildren(nextClonedChildren);
1298
1351
  return () => {
@@ -1310,7 +1363,7 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1310
1363
  currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
1311
1364
  };
1312
1365
  }, [children]);
1313
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1366
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1314
1367
  "div",
1315
1368
  __spreadProps(__spreadValues({
1316
1369
  ref: mergedRef,
@@ -1326,7 +1379,7 @@ var AutoAnimateHeight = (0, import_react25.forwardRef)(
1326
1379
  }, style)
1327
1380
  }, rest), {
1328
1381
  children: [
1329
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1382
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1330
1383
  "div",
1331
1384
  {
1332
1385
  "aria-hidden": true,
@@ -1389,33 +1442,33 @@ function labelForInput(input) {
1389
1442
  }
1390
1443
 
1391
1444
  // src/form/error-summary/error-summary.tsx
1392
- var import_jsx_runtime24 = require("react/jsx-runtime");
1393
- 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) => {
1394
1447
  var _b = _a, { children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["children", "as", "autoFocus"]);
1395
- const focusRef = (0, import_react26.useRef)(null);
1448
+ const focusRef = (0, import_react27.useRef)(null);
1396
1449
  const mergedRef = useMergeRefs([focusRef, ref]);
1397
- (0, import_react26.useEffect)(() => {
1450
+ (0, import_react27.useEffect)(() => {
1398
1451
  setTimeout(() => {
1399
1452
  if (focusRef.current && autoFocus) {
1400
1453
  focusRef.current.focus();
1401
1454
  }
1402
1455
  });
1403
1456
  }, []);
1404
- 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 }));
1405
1458
  });
1406
1459
  ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1407
- var ErrorSummaryList = (0, import_react26.forwardRef)(
1460
+ var ErrorSummaryList = (0, import_react27.forwardRef)(
1408
1461
  (_a, ref) => {
1409
1462
  var _b = _a, { children, style: _style, size = "small" } = _b, rest = __objRest(_b, ["children", "style", "size"]);
1410
1463
  const style = __spreadValues({
1411
1464
  // Match the link `solid` style, which black underline
1412
1465
  "--_hds-list-marker-color": "var(--hds-ui-colors-black)"
1413
1466
  }, _style);
1414
- 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 })) });
1415
1468
  }
1416
1469
  );
1417
1470
  ErrorSummaryList.displayName = "ErrorSummary.List";
1418
- var ErrorSummaryItem = (0, import_react26.forwardRef)(
1471
+ var ErrorSummaryItem = (0, import_react27.forwardRef)(
1419
1472
  (_a, ref) => {
1420
1473
  var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1421
1474
  function onClick(e) {
@@ -1425,14 +1478,14 @@ var ErrorSummaryItem = (0, import_react26.forwardRef)(
1425
1478
  e.preventDefault();
1426
1479
  }
1427
1480
  }
1428
- 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 })) }));
1429
1482
  }
1430
1483
  );
1431
1484
  ErrorSummaryItem.displayName = "ErrorSummary.Item";
1432
- var ErrorSummary = (0, import_react26.forwardRef)(
1485
+ var ErrorSummary = (0, import_react27.forwardRef)(
1433
1486
  (_a, ref) => {
1434
1487
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1435
- 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 }));
1436
1489
  }
1437
1490
  );
1438
1491
  ErrorSummary.displayName = "ErrorSummary";
@@ -1441,15 +1494,15 @@ ErrorSummary.List = ErrorSummaryList;
1441
1494
  ErrorSummary.Item = ErrorSummaryItem;
1442
1495
 
1443
1496
  // src/form/input/input.tsx
1444
- var import_react27 = require("react");
1445
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1446
- var import_jsx_runtime25 = require("react/jsx-runtime");
1447
- 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) {
1448
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"]);
1449
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1502
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1450
1503
  InputGroup,
1451
1504
  {
1452
- className: (0, import_typed_classname23.clsx)("hds-input", className),
1505
+ className: (0, import_typed_classname24.clsx)("hds-input", className),
1453
1506
  disabled,
1454
1507
  errorMessage,
1455
1508
  id,
@@ -1458,35 +1511,35 @@ var Input = (0, import_react27.forwardRef)(function Input2(_a, ref) {
1458
1511
  readOnly,
1459
1512
  style,
1460
1513
  variant,
1461
- 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 }))
1462
1515
  }
1463
1516
  );
1464
1517
  });
1465
1518
  Input.displayName = "Input";
1466
1519
 
1467
1520
  // src/form/radio-button/radio-button.tsx
1468
- var import_react29 = require("react");
1469
- 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");
1470
1523
 
1471
1524
  // src/form/radio-button/radio-group.tsx
1472
- var import_react28 = require("react");
1473
- var import_jsx_runtime26 = require("react/jsx-runtime");
1474
- 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)({
1475
1528
  name: void 0,
1476
1529
  hasError: false,
1477
1530
  onChange: () => {
1478
1531
  return void 0;
1479
1532
  }
1480
1533
  });
1481
- var useRadioGroupContext = () => (0, import_react28.useContext)(RadioGroupContext);
1482
- 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) {
1483
1536
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1484
- 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 })) });
1485
1538
  });
1486
1539
  RadioGroup.displayName = "RadioGroup";
1487
1540
 
1488
1541
  // src/form/radio-button/radio-button.tsx
1489
- var import_jsx_runtime27 = require("react/jsx-runtime");
1542
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1490
1543
  var isChecked = ({
1491
1544
  checked,
1492
1545
  selectedValue,
@@ -1496,7 +1549,7 @@ var isChecked = ({
1496
1549
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1497
1550
  return void 0;
1498
1551
  };
1499
- var RadioButton = (0, import_react29.forwardRef)(
1552
+ var RadioButton = (0, import_react30.forwardRef)(
1500
1553
  (_a, ref) => {
1501
1554
  var _b = _a, {
1502
1555
  checked,
@@ -1524,10 +1577,10 @@ var RadioButton = (0, import_react29.forwardRef)(
1524
1577
  ]);
1525
1578
  const { hasError: hasFieldsetError } = useFieldsetContext();
1526
1579
  const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
1527
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1580
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1528
1581
  "div",
1529
1582
  {
1530
- className: (0, import_typed_classname24.clsx)(
1583
+ className: (0, import_typed_classname25.clsx)(
1531
1584
  "hds-radio-button",
1532
1585
  {
1533
1586
  [`hds-radio-button--${variant}`]: variant === "bounding-box",
@@ -1536,8 +1589,8 @@ var RadioButton = (0, import_react29.forwardRef)(
1536
1589
  className
1537
1590
  ),
1538
1591
  children: [
1539
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
1540
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1592
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { children: [
1593
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1541
1594
  "input",
1542
1595
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1543
1596
  checked: isChecked({ checked, selectedValue, value }),
@@ -1546,8 +1599,8 @@ var RadioButton = (0, import_react29.forwardRef)(
1546
1599
  type: "radio"
1547
1600
  })
1548
1601
  ),
1549
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1550
- 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
1551
1604
  ] }),
1552
1605
  title ? children : null
1553
1606
  ]
@@ -1558,15 +1611,15 @@ var RadioButton = (0, import_react29.forwardRef)(
1558
1611
  RadioButton.displayName = "RadioButton";
1559
1612
 
1560
1613
  // src/form/select/select.tsx
1561
- var import_react30 = require("react");
1562
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1563
- var import_jsx_runtime28 = require("react/jsx-runtime");
1564
- 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) {
1565
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"]);
1566
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1619
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1567
1620
  InputGroup,
1568
1621
  {
1569
- className: (0, import_typed_classname25.clsx)("hds-select", className),
1622
+ className: (0, import_typed_classname26.clsx)("hds-select", className),
1570
1623
  disabled,
1571
1624
  errorMessage,
1572
1625
  id,
@@ -1574,22 +1627,22 @@ var Select = (0, import_react30.forwardRef)(function Select2(_a, ref) {
1574
1627
  labelProps,
1575
1628
  style,
1576
1629
  variant,
1577
- 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 }))
1578
1631
  }
1579
1632
  );
1580
1633
  });
1581
1634
  Select.displayName = "Select";
1582
1635
 
1583
1636
  // src/form/textarea/textarea.tsx
1584
- var import_react31 = require("react");
1585
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1586
- var import_jsx_runtime29 = require("react/jsx-runtime");
1587
- 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) {
1588
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"]);
1589
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1642
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1590
1643
  InputGroup,
1591
1644
  {
1592
- className: (0, import_typed_classname26.clsx)("hds-textarea", className),
1645
+ className: (0, import_typed_classname27.clsx)("hds-textarea", className),
1593
1646
  disabled,
1594
1647
  errorMessage,
1595
1648
  id,
@@ -1598,40 +1651,40 @@ var Textarea = (0, import_react31.forwardRef)(function Textarea2(_a, ref) {
1598
1651
  readOnly,
1599
1652
  style,
1600
1653
  variant,
1601
- 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 }))
1602
1655
  }
1603
1656
  );
1604
1657
  });
1605
1658
  Textarea.displayName = "Textarea";
1606
1659
 
1607
1660
  // src/footer/footer.tsx
1608
- var import_react32 = require("react");
1609
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1610
- var import_react_slot9 = require("@radix-ui/react-slot");
1611
- var import_jsx_runtime30 = require("react/jsx-runtime");
1612
- 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)(
1613
1666
  (_a, ref) => {
1614
1667
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1615
- const Component = asChild ? import_react_slot9.Slot : "div";
1616
- 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 }));
1617
1670
  }
1618
1671
  );
1619
1672
  FooterLogo.displayName = "Footer.Logo";
1620
- var FooterButtonLink = (0, import_react32.forwardRef)(
1673
+ var FooterButtonLink = (0, import_react33.forwardRef)(
1621
1674
  (_a, ref) => {
1622
1675
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1623
- const Component = asChild ? import_react_slot9.Slot : "a";
1624
- 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 })) });
1625
1678
  }
1626
1679
  );
1627
1680
  FooterButtonLink.displayName = "FooterButton";
1628
- var FooterLinkSections = (0, import_react32.forwardRef)(
1681
+ var FooterLinkSections = (0, import_react33.forwardRef)(
1629
1682
  (_a, ref) => {
1630
1683
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1631
- 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)(
1632
1685
  Accordion,
1633
1686
  __spreadProps(__spreadValues({
1634
- className: (0, import_typed_classname27.clsx)("hds-footer__link-sections", className),
1687
+ className: (0, import_typed_classname28.clsx)("hds-footer__link-sections", className),
1635
1688
  ref
1636
1689
  }, rest), {
1637
1690
  children
@@ -1640,39 +1693,39 @@ var FooterLinkSections = (0, import_react32.forwardRef)(
1640
1693
  }
1641
1694
  );
1642
1695
  FooterLinkSections.displayName = "Footer.LinkSections";
1643
- var FooterLinkSection = (0, import_react32.forwardRef)(
1696
+ var FooterLinkSection = (0, import_react33.forwardRef)(
1644
1697
  (_a, ref) => {
1645
1698
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1646
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkList, { children });
1647
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1648
- /* @__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)(
1649
1702
  Accordion.Item,
1650
1703
  __spreadProps(__spreadValues({
1651
- className: (0, import_typed_classname27.clsx)(`hds-footer__link-section`, className),
1704
+ className: (0, import_typed_classname28.clsx)(`hds-footer__link-section`, className),
1652
1705
  ref
1653
1706
  }, rest), {
1654
1707
  children: [
1655
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Accordion.Header, { children: heading }),
1656
- /* @__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 })
1657
1710
  ]
1658
1711
  })
1659
1712
  ),
1660
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_typed_classname27.clsx)(`hds-footer__link-section`, className), children: [
1661
- /* @__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 }),
1662
1715
  linkListChildren
1663
1716
  ] })
1664
1717
  ] });
1665
1718
  }
1666
1719
  );
1667
1720
  FooterLinkSection.displayName = "Footer.LinkSection";
1668
- var Footer = (0, import_react32.forwardRef)(
1721
+ var Footer = (0, import_react33.forwardRef)(
1669
1722
  (_a, ref) => {
1670
1723
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1671
- const Component = asChild ? import_react_slot9.Slot : "footer";
1672
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1724
+ const Component = asChild ? import_react_slot10.Slot : "footer";
1725
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1673
1726
  Component,
1674
1727
  __spreadProps(__spreadValues({
1675
- className: (0, import_typed_classname27.clsx)(
1728
+ className: (0, import_typed_classname28.clsx)(
1676
1729
  `hds-footer`,
1677
1730
  variant === "slim" && "hds-footer--slim",
1678
1731
  className
@@ -1692,10 +1745,10 @@ Footer.LinkSection = FooterLinkSection;
1692
1745
 
1693
1746
  // src/help-text/help-text.tsx
1694
1747
  var Popover = __toESM(require("@radix-ui/react-popover"));
1695
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1696
- var import_react33 = require("react");
1697
- var import_jsx_runtime31 = require("react/jsx-runtime");
1698
- 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)(
1699
1752
  (_a, ref) => {
1700
1753
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1701
1754
  return (
@@ -1703,24 +1756,24 @@ var HelpText = (0, import_react33.forwardRef)(
1703
1756
  // In the future we can use the native popover api, but as of writing, though all browsers support it
1704
1757
  // it's not far enough back to be used in production
1705
1758
  // https://caniuse.com/mdn-html_elements_input_popovertarget
1706
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover.Root, { children: [
1707
- /* @__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)(
1708
1761
  "button",
1709
1762
  __spreadProps(__spreadValues({
1710
1763
  ref,
1711
- className: (0, import_typed_classname28.clsx)("hds-help-text-button", className),
1764
+ className: (0, import_typed_classname29.clsx)("hds-help-text-button", className),
1712
1765
  title,
1713
1766
  type: "button"
1714
1767
  }, rest), {
1715
1768
  children
1716
1769
  })
1717
1770
  ) }),
1718
- /* @__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)(
1719
1772
  Box,
1720
1773
  __spreadProps(__spreadValues({}, boxProps), {
1721
- 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),
1722
1775
  children: [
1723
- /* @__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, {}) }),
1724
1777
  helpText
1725
1778
  ]
1726
1779
  })
@@ -1732,18 +1785,18 @@ var HelpText = (0, import_react33.forwardRef)(
1732
1785
  HelpText.displayName = "HelpText";
1733
1786
 
1734
1787
  // src/layout/container/container.tsx
1735
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1736
- var import_react_slot10 = require("@radix-ui/react-slot");
1737
- var import_react34 = require("react");
1738
- var import_jsx_runtime32 = require("react/jsx-runtime");
1739
- 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)(
1740
1793
  (_a, ref) => {
1741
1794
  var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
1742
- const Component = asChild ? import_react_slot10.Slot : Tag;
1743
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1795
+ const Component = asChild ? import_react_slot11.Slot : Tag;
1796
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1744
1797
  Component,
1745
1798
  __spreadProps(__spreadValues({}, rest), {
1746
- className: (0, import_typed_classname29.clsx)(
1799
+ className: (0, import_typed_classname30.clsx)(
1747
1800
  "hds-container",
1748
1801
  { "hds-container--slim": variant === "slim" },
1749
1802
  className
@@ -1757,9 +1810,9 @@ var Container = (0, import_react34.forwardRef)(
1757
1810
  Container.displayName = "Container";
1758
1811
 
1759
1812
  // src/layout/grid/grid.tsx
1760
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1761
- var import_react_slot11 = require("@radix-ui/react-slot");
1762
- 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");
1763
1816
 
1764
1817
  // src/layout/responsive.ts
1765
1818
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1780,17 +1833,17 @@ function getSpacingVariable(size) {
1780
1833
  }
1781
1834
 
1782
1835
  // src/layout/grid/grid.tsx
1783
- var import_jsx_runtime33 = require("react/jsx-runtime");
1784
- var GridItem = (0, import_react35.forwardRef)(
1836
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1837
+ var GridItem = (0, import_react36.forwardRef)(
1785
1838
  (_a, ref) => {
1786
1839
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1787
- const Component = asChild ? import_react_slot11.Slot : "div";
1840
+ const Component = asChild ? import_react_slot12.Slot : "div";
1788
1841
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1789
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1842
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1790
1843
  Component,
1791
1844
  __spreadProps(__spreadValues({
1792
1845
  style,
1793
- className: (0, import_typed_classname30.clsx)("hds-grid__item", className),
1846
+ className: (0, import_typed_classname31.clsx)("hds-grid__item", className),
1794
1847
  ref
1795
1848
  }, rest), {
1796
1849
  children
@@ -1799,16 +1852,16 @@ var GridItem = (0, import_react35.forwardRef)(
1799
1852
  }
1800
1853
  );
1801
1854
  GridItem.displayName = "Grid.Item";
1802
- var Grid = (0, import_react35.forwardRef)(
1855
+ var Grid = (0, import_react36.forwardRef)(
1803
1856
  (_a, ref) => {
1804
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"]);
1805
- const Component = asChild ? import_react_slot11.Slot : "div";
1858
+ const Component = asChild ? import_react_slot12.Slot : "div";
1806
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"));
1807
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1860
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1808
1861
  Component,
1809
1862
  __spreadProps(__spreadValues({
1810
1863
  style,
1811
- className: (0, import_typed_classname30.clsx)("hds-grid", className),
1864
+ className: (0, import_typed_classname31.clsx)("hds-grid", className),
1812
1865
  ref
1813
1866
  }, rest), {
1814
1867
  children
@@ -1820,12 +1873,12 @@ Grid.displayName = "Grid";
1820
1873
  Grid.Item = GridItem;
1821
1874
 
1822
1875
  // src/layout/stack/stack.tsx
1823
- var React3 = require("react");
1824
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1825
- var import_react36 = require("react");
1826
- var import_react_slot12 = require("@radix-ui/react-slot");
1827
- var import_jsx_runtime34 = require("react/jsx-runtime");
1828
- 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)(
1829
1882
  (_a, ref) => {
1830
1883
  var _b = _a, {
1831
1884
  children,
@@ -1852,13 +1905,13 @@ var Stack = (0, import_react36.forwardRef)(
1852
1905
  "align",
1853
1906
  "justify"
1854
1907
  ]);
1855
- const Component = asChild ? import_react_slot12.Slot : "div";
1908
+ const Component = asChild ? import_react_slot13.Slot : "div";
1856
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));
1857
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1910
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1858
1911
  Component,
1859
1912
  __spreadProps(__spreadValues({
1860
1913
  style,
1861
- className: (0, import_typed_classname31.clsx)("hds-stack", className),
1914
+ className: (0, import_typed_classname32.clsx)("hds-stack", className),
1862
1915
  ref
1863
1916
  }, rest), {
1864
1917
  children
@@ -1867,66 +1920,66 @@ var Stack = (0, import_react36.forwardRef)(
1867
1920
  }
1868
1921
  );
1869
1922
  Stack.displayName = "Stack";
1870
- var HStack = (0, import_react36.forwardRef)((props, ref) => {
1871
- 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" }));
1872
1925
  });
1873
1926
  HStack.displayName = "HStack";
1874
- var VStack = (0, import_react36.forwardRef)((props, ref) => {
1875
- 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" }));
1876
1929
  });
1877
1930
  VStack.displayName = "VStack";
1878
1931
 
1879
1932
  // src/modal/modal.tsx
1880
- var import_react37 = require("react");
1881
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1882
- var import_react_slot13 = require("@radix-ui/react-slot");
1883
- var import_jsx_runtime35 = require("react/jsx-runtime");
1884
- 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)(
1885
1938
  (_a, ref) => {
1886
1939
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1887
- const Component = asChild ? import_react_slot13.Slot : "h1";
1888
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1940
+ const Component = asChild ? import_react_slot14.Slot : "h1";
1941
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1889
1942
  Component,
1890
1943
  __spreadValues({
1891
- className: (0, import_typed_classname32.clsx)("hds-modal__header", className),
1944
+ className: (0, import_typed_classname33.clsx)("hds-modal__header", className),
1892
1945
  ref
1893
1946
  }, rest)
1894
1947
  );
1895
1948
  }
1896
1949
  );
1897
1950
  ModalHeader.displayName = "Modal.Header";
1898
- var ModalContent = (0, import_react37.forwardRef)(
1951
+ var ModalContent = (0, import_react38.forwardRef)(
1899
1952
  (_a, ref) => {
1900
1953
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1901
- const Component = asChild ? import_react_slot13.Slot : "div";
1902
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1954
+ const Component = asChild ? import_react_slot14.Slot : "div";
1955
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1903
1956
  Component,
1904
1957
  __spreadValues({
1905
- className: (0, import_typed_classname32.clsx)("hds-modal__content", className),
1958
+ className: (0, import_typed_classname33.clsx)("hds-modal__content", className),
1906
1959
  ref
1907
1960
  }, rest)
1908
1961
  );
1909
1962
  }
1910
1963
  );
1911
1964
  ModalContent.displayName = "Modal.Content";
1912
- var ModalFooter = (0, import_react37.forwardRef)(
1965
+ var ModalFooter = (0, import_react38.forwardRef)(
1913
1966
  (_a, ref) => {
1914
1967
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1915
- const Component = asChild ? import_react_slot13.Slot : "footer";
1916
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1968
+ const Component = asChild ? import_react_slot14.Slot : "footer";
1969
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1917
1970
  Component,
1918
1971
  __spreadValues({
1919
- className: (0, import_typed_classname32.clsx)("hds-modal__footer", className),
1972
+ className: (0, import_typed_classname33.clsx)("hds-modal__footer", className),
1920
1973
  ref
1921
1974
  }, rest)
1922
1975
  );
1923
1976
  }
1924
1977
  );
1925
1978
  ModalFooter.displayName = "Modal.Footer";
1926
- var Modal = (0, import_react37.forwardRef)(
1979
+ var Modal = (0, import_react38.forwardRef)(
1927
1980
  (_a, ref) => {
1928
1981
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1929
- const modalRef = (0, import_react37.useRef)(null);
1982
+ const modalRef = (0, import_react38.useRef)(null);
1930
1983
  const mergedRef = useMergeRefs([modalRef, ref]);
1931
1984
  function onCloseButtonClick() {
1932
1985
  var _a2;
@@ -1934,7 +1987,7 @@ var Modal = (0, import_react37.forwardRef)(
1934
1987
  return false;
1935
1988
  }
1936
1989
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1937
- (0, import_react37.useEffect)(() => {
1990
+ (0, import_react38.useEffect)(() => {
1938
1991
  if (modalRef.current && open !== void 0) {
1939
1992
  if (open && !modalRef.current.open) {
1940
1993
  modalRef.current.showModal();
@@ -1949,16 +2002,16 @@ var Modal = (0, import_react37.forwardRef)(
1949
2002
  }
1950
2003
  onClick == null ? void 0 : onClick(e);
1951
2004
  }
1952
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2005
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1953
2006
  Box,
1954
2007
  {
1955
2008
  asChild: true,
1956
- className: (0, import_typed_classname32.clsx)("hds-modal", className),
2009
+ className: (0, import_typed_classname33.clsx)("hds-modal", className),
1957
2010
  closeable: true,
1958
2011
  onClick: onDialogClick,
1959
2012
  onClose: onCloseButtonClick,
1960
2013
  variant: "white",
1961
- 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 }))
1962
2015
  }
1963
2016
  );
1964
2017
  }
@@ -1968,7 +2021,7 @@ Modal.Header = ModalHeader;
1968
2021
  Modal.Content = ModalContent;
1969
2022
  Modal.Footer = ModalFooter;
1970
2023
  function useScrollLock(modalRef, bodyClass) {
1971
- (0, import_react37.useEffect)(() => {
2024
+ (0, import_react38.useEffect)(() => {
1972
2025
  if (!modalRef.current) return;
1973
2026
  if (modalRef.current.open) document.body.classList.add(bodyClass);
1974
2027
  const observer = new MutationObserver(() => {
@@ -1988,18 +2041,18 @@ function useScrollLock(modalRef, bodyClass) {
1988
2041
  }
1989
2042
 
1990
2043
  // src/navbar/navbar.tsx
1991
- var import_react39 = require("react");
1992
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1993
- 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");
1994
2047
 
1995
2048
  // src/navbar/navbar-expandable-menu.tsx
1996
- var import_react38 = require("react");
1997
- 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");
1998
2051
 
1999
2052
  // src/navbar/icons.tsx
2000
- var import_jsx_runtime36 = require("react/jsx-runtime");
2053
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2001
2054
  function CloseIcon() {
2002
- 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)(
2003
2056
  "path",
2004
2057
  {
2005
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",
@@ -2008,7 +2061,7 @@ function CloseIcon() {
2008
2061
  ) });
2009
2062
  }
2010
2063
  function MenuIcon() {
2011
- 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)(
2012
2065
  "path",
2013
2066
  {
2014
2067
  fill: "currentColor",
@@ -2018,35 +2071,35 @@ function MenuIcon() {
2018
2071
  }
2019
2072
 
2020
2073
  // src/navbar/navbar-expandable-menu.tsx
2021
- var import_jsx_runtime37 = require("react/jsx-runtime");
2022
- var ExpandableMenuContext = (0, import_react38.createContext)(null);
2074
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2075
+ var ExpandableMenuContext = (0, import_react39.createContext)(null);
2023
2076
  var useNavbarExpendableMenuContext = () => {
2024
- const value = (0, import_react38.useContext)(ExpandableMenuContext);
2077
+ const value = (0, import_react39.useContext)(ExpandableMenuContext);
2025
2078
  if (value === null) {
2026
2079
  throw new Error("useNavbarExpendableMenuContext must be used within a Navbar.ExpandableMenu");
2027
2080
  }
2028
2081
  return value;
2029
2082
  };
2030
2083
  function NavbarExpandableMenu({ children }) {
2031
- const contentId = (0, import_react38.useId)();
2032
- const [open, setOpen] = (0, import_react38.useState)(false);
2033
- (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)(() => {
2034
2087
  if (open) {
2035
2088
  window.scrollTo(0, 0);
2036
- 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"));
2037
2090
  const releaseFocusTrap2 = focusTrap(
2038
- document.getElementsByClassName((0, import_typed_classname33.clsx)("hds-navbar"))[0]
2091
+ document.getElementsByClassName((0, import_typed_classname34.clsx)("hds-navbar"))[0]
2039
2092
  );
2040
2093
  return () => {
2041
- 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"));
2042
2095
  releaseFocusTrap2();
2043
2096
  };
2044
2097
  }
2045
2098
  }, [open]);
2046
- 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 });
2047
2100
  }
2048
2101
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
2049
- var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
2102
+ var NavbarExpandableMenuTrigger = (0, import_react39.forwardRef)(
2050
2103
  (_a, ref) => {
2051
2104
  var _b = _a, {
2052
2105
  whenClosedText,
@@ -2067,12 +2120,12 @@ var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
2067
2120
  function toggleOpen() {
2068
2121
  setOpen(!open);
2069
2122
  }
2070
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2123
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2071
2124
  "button",
2072
2125
  __spreadProps(__spreadValues({
2073
2126
  "aria-expanded": open,
2074
2127
  "aria-controls": contentId,
2075
- className: (0, import_typed_classname33.clsx)(
2128
+ className: (0, import_typed_classname34.clsx)(
2076
2129
  "hds-navbar__item",
2077
2130
  className,
2078
2131
  open ? "hds-navbar__item--open" : "hds-navbar__item--closed"
@@ -2084,53 +2137,53 @@ var NavbarExpandableMenuTrigger = (0, import_react38.forwardRef)(
2084
2137
  style: __spreadValues({ position: "relative" }, style)
2085
2138
  }, rest), {
2086
2139
  children: [
2087
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2088
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname33.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2089
- /* @__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 })
2090
2143
  ] }),
2091
- /* @__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, {}) })
2092
2145
  ]
2093
2146
  })
2094
2147
  );
2095
2148
  }
2096
2149
  );
2097
2150
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenuTrigger";
2098
- var NavbarExpandableMenuContent = (0, import_react38.forwardRef)((_a, ref) => {
2151
+ var NavbarExpandableMenuContent = (0, import_react39.forwardRef)((_a, ref) => {
2099
2152
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2100
2153
  const { contentId, open } = useNavbarExpendableMenuContext();
2101
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2154
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2102
2155
  "section",
2103
2156
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
2104
2157
  id: contentId,
2105
- 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),
2106
2159
  "data-state": open ? "open" : "closed"
2107
2160
  }), { inert: open ? void 0 : "true" }), {
2108
2161
  ref,
2109
- 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 })
2110
2163
  })
2111
2164
  );
2112
2165
  });
2113
2166
  NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenuContent";
2114
2167
 
2115
2168
  // src/navbar/navbar.tsx
2116
- var import_jsx_runtime38 = require("react/jsx-runtime");
2117
- var NavbarLogo = (0, import_react39.forwardRef)(
2169
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2170
+ var NavbarLogo = (0, import_react40.forwardRef)(
2118
2171
  (_a, ref) => {
2119
2172
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
2120
- const Component = asChild ? import_react_slot14.Slot : "div";
2121
- 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 }));
2122
2175
  }
2123
2176
  );
2124
2177
  NavbarLogo.displayName = "Navbar.Logo";
2125
- var NavbarLogoAndServiceText = (0, import_react39.forwardRef)(
2178
+ var NavbarLogoAndServiceText = (0, import_react40.forwardRef)(
2126
2179
  (_a, ref) => {
2127
2180
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
2128
- const Component = asChild ? import_react_slot14.Slot : "div";
2129
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2181
+ const Component = asChild ? import_react_slot15.Slot : "div";
2182
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2130
2183
  Component,
2131
2184
  __spreadProps(__spreadValues({
2132
2185
  ref,
2133
- className: (0, import_typed_classname34.clsx)(
2186
+ className: (0, import_typed_classname35.clsx)(
2134
2187
  "hds-navbar__logo-and-service-text",
2135
2188
  `hds-navbar__logo-and-service-text--${variant}`,
2136
2189
  className
@@ -2142,29 +2195,29 @@ var NavbarLogoAndServiceText = (0, import_react39.forwardRef)(
2142
2195
  }
2143
2196
  );
2144
2197
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
2145
- var NavbarItemIcon = (0, import_react39.forwardRef)(
2198
+ var NavbarItemIcon = (0, import_react40.forwardRef)(
2146
2199
  (_a, ref) => {
2147
2200
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2148
- 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 }));
2149
2202
  }
2150
2203
  );
2151
2204
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
2152
- var NavbarItem = (0, import_react39.forwardRef)(
2205
+ var NavbarItem = (0, import_react40.forwardRef)(
2153
2206
  (_a, ref) => {
2154
2207
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2155
- const Component = asChild ? import_react_slot14.Slot : "div";
2156
- 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 }));
2157
2210
  }
2158
2211
  );
2159
2212
  NavbarItem.displayName = "Navbar.Item";
2160
- var NavbarButtonItem = (0, import_react39.forwardRef)(
2213
+ var NavbarButtonItem = (0, import_react40.forwardRef)(
2161
2214
  (_a, ref) => {
2162
2215
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2163
- const Component = asChild ? import_react_slot14.Slot : "button";
2164
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2216
+ const Component = asChild ? import_react_slot15.Slot : "button";
2217
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2165
2218
  Component,
2166
2219
  __spreadProps(__spreadValues({
2167
- className: (0, import_typed_classname34.clsx)("hds-navbar__item", className),
2220
+ className: (0, import_typed_classname35.clsx)("hds-navbar__item", className),
2168
2221
  ref,
2169
2222
  type: "button"
2170
2223
  }, rest), {
@@ -2174,36 +2227,36 @@ var NavbarButtonItem = (0, import_react39.forwardRef)(
2174
2227
  }
2175
2228
  );
2176
2229
  NavbarButtonItem.displayName = "Navbar.ButtonItem";
2177
- var NavbarLinkItem = (0, import_react39.forwardRef)(
2230
+ var NavbarLinkItem = (0, import_react40.forwardRef)(
2178
2231
  (_a, ref) => {
2179
2232
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2180
- const Component = asChild ? import_react_slot14.Slot : "a";
2181
- 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 }));
2182
2235
  }
2183
2236
  );
2184
2237
  NavbarLinkItem.displayName = "Navbar.LinkItem";
2185
- var NavbarNavigation = (0, import_react39.forwardRef)(
2238
+ var NavbarNavigation = (0, import_react40.forwardRef)(
2186
2239
  (_a, ref) => {
2187
2240
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2188
- const Component = asChild ? import_react_slot14.Slot : "div";
2189
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2241
+ const Component = asChild ? import_react_slot15.Slot : "div";
2242
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2190
2243
  Component,
2191
2244
  __spreadValues({
2192
- className: (0, import_typed_classname34.clsx)("hds-navbar__navigation", className),
2245
+ className: (0, import_typed_classname35.clsx)("hds-navbar__navigation", className),
2193
2246
  ref
2194
2247
  }, rest)
2195
2248
  );
2196
2249
  }
2197
2250
  );
2198
2251
  NavbarNavigation.displayName = "Navbar.Navigation";
2199
- var Navbar = (0, import_react39.forwardRef)(
2252
+ var Navbar = (0, import_react40.forwardRef)(
2200
2253
  (_a, ref) => {
2201
2254
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
2202
- const Component = asChild ? import_react_slot14.Slot : "header";
2203
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2255
+ const Component = asChild ? import_react_slot15.Slot : "header";
2256
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2204
2257
  Component,
2205
2258
  __spreadProps(__spreadValues({
2206
- 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),
2207
2260
  ref
2208
2261
  }, rest), {
2209
2262
  children
@@ -2224,17 +2277,17 @@ Navbar.ItemIcon = NavbarItemIcon;
2224
2277
  Navbar.Navigation = NavbarNavigation;
2225
2278
 
2226
2279
  // src/show-more/show-more.tsx
2227
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2228
- var import_react40 = require("react");
2229
- var import_jsx_runtime39 = require("react/jsx-runtime");
2230
- 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)(
2231
2284
  (_a, ref) => {
2232
2285
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
2233
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2286
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2234
2287
  "button",
2235
2288
  __spreadProps(__spreadValues({
2236
2289
  ref,
2237
- className: (0, import_typed_classname35.clsx)(
2290
+ className: (0, import_typed_classname36.clsx)(
2238
2291
  "hds-show-more",
2239
2292
  variant === "show-more-show-less" && "hds-show-more--show-less",
2240
2293
  className
@@ -2244,7 +2297,7 @@ var ShowMoreButton = (0, import_react40.forwardRef)(
2244
2297
  }, rest), {
2245
2298
  children: [
2246
2299
  text,
2247
- /* @__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") })
2248
2301
  ]
2249
2302
  })
2250
2303
  );
@@ -2253,11 +2306,11 @@ var ShowMoreButton = (0, import_react40.forwardRef)(
2253
2306
  ShowMoreButton.displayName = "ShowMoreButton";
2254
2307
 
2255
2308
  // src/skeleton/skeleton.tsx
2256
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2257
- var import_react_slot15 = require("@radix-ui/react-slot");
2258
- var import_react41 = require("react");
2259
- var import_jsx_runtime40 = require("react/jsx-runtime");
2260
- 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)(
2261
2314
  (_a, ref) => {
2262
2315
  var _b = _a, {
2263
2316
  as: Tag = "div",
@@ -2280,11 +2333,11 @@ var Skeleton = (0, import_react41.forwardRef)(
2280
2333
  "className",
2281
2334
  "style"
2282
2335
  ]);
2283
- const Component = asChild ? import_react_slot15.Slot : Tag;
2284
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2336
+ const Component = asChild ? import_react_slot16.Slot : Tag;
2337
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2285
2338
  Component,
2286
2339
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2287
- className: (0, import_typed_classname36.clsx)(
2340
+ className: (0, import_typed_classname37.clsx)(
2288
2341
  "hds-skeleton",
2289
2342
  `hds-skeleton--${variant}`,
2290
2343
  !animation && `hds-skeleton--no-animation`,
@@ -2303,19 +2356,19 @@ var Skeleton = (0, import_react41.forwardRef)(
2303
2356
  Skeleton.displayName = "Skeleton";
2304
2357
 
2305
2358
  // src/spinner/spinner.tsx
2306
- var import_react42 = require("react");
2307
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2308
- var import_jsx_runtime41 = require("react/jsx-runtime");
2309
- 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)(
2310
2363
  (_a, ref) => {
2311
2364
  var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
2312
2365
  const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
2313
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2366
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2314
2367
  "div",
2315
2368
  __spreadValues({
2316
2369
  title,
2317
2370
  style,
2318
- className: (0, import_typed_classname37.clsx)(
2371
+ className: (0, import_typed_classname38.clsx)(
2319
2372
  "hds-spinner",
2320
2373
  `hds-spinner--${size}`,
2321
2374
  delay && "hds-spinner--delay",
@@ -2329,10 +2382,10 @@ var Spinner = (0, import_react42.forwardRef)(
2329
2382
  Spinner.displayName = "Spinner";
2330
2383
 
2331
2384
  // src/step-indicator/step-indicator.tsx
2332
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2333
- var import_react43 = require("react");
2334
- var import_jsx_runtime42 = require("react/jsx-runtime");
2335
- 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)(
2336
2389
  (_a, ref) => {
2337
2390
  var _b = _a, {
2338
2391
  activeStep,
@@ -2351,27 +2404,27 @@ var StepIndicator = (0, import_react43.forwardRef)(
2351
2404
  "title",
2352
2405
  "titleAs"
2353
2406
  ]);
2354
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2407
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2355
2408
  "div",
2356
2409
  __spreadProps(__spreadValues({
2357
2410
  ref,
2358
- className: (0, import_typed_classname38.clsx)("hds-step-indicator", className),
2411
+ className: (0, import_typed_classname39.clsx)("hds-step-indicator", className),
2359
2412
  lang
2360
2413
  }, rest), {
2361
2414
  children: [
2362
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__header"), children: [
2363
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_typed_classname38.clsx)("hds-step-indicator__left-label"), children: label }),
2364
- /* @__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) })
2365
2418
  ] }),
2366
- /* @__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)(
2367
2420
  "div",
2368
2421
  {
2369
- className: (0, import_typed_classname38.clsx)("hds-step-indicator__step"),
2422
+ className: (0, import_typed_classname39.clsx)("hds-step-indicator__step"),
2370
2423
  "data-state": getStepState(i + 1, activeStep)
2371
2424
  },
2372
2425
  i
2373
2426
  )) }),
2374
- 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
2375
2428
  ]
2376
2429
  })
2377
2430
  );
@@ -2395,18 +2448,18 @@ function getStepState(renderedStep, activeStep) {
2395
2448
  }
2396
2449
 
2397
2450
  // src/styled-html/styled-html.tsx
2398
- var import_react44 = require("react");
2399
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2400
- var import_react_slot16 = require("@radix-ui/react-slot");
2401
- var import_jsx_runtime43 = require("react/jsx-runtime");
2402
- 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)(
2403
2456
  (_a, ref) => {
2404
2457
  var _b = _a, { asChild, children, size, unstable_darkmode: darkmode = false, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "unstable_darkmode", "className"]);
2405
- const Component = asChild ? import_react_slot16.Slot : "div";
2406
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2458
+ const Component = asChild ? import_react_slot17.Slot : "div";
2459
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2407
2460
  Component,
2408
2461
  __spreadProps(__spreadValues({
2409
- className: (0, import_typed_classname39.clsx)(
2462
+ className: (0, import_typed_classname40.clsx)(
2410
2463
  `hds-styled-html`,
2411
2464
  size === "small" && "hds-styled-html--small",
2412
2465
  darkmode && "hds-styled-html--darkmode",
@@ -2422,20 +2475,20 @@ var StyledHtml = (0, import_react44.forwardRef)(
2422
2475
  StyledHtml.displayName = "StyledHtml";
2423
2476
 
2424
2477
  // src/table/table.tsx
2425
- var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2426
- var import_react45 = require("react");
2427
- var import_jsx_runtime44 = require("react/jsx-runtime");
2428
- 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)(
2429
2482
  (_a, ref) => {
2430
2483
  var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2431
- const descriptionId = (0, import_react45.useId)();
2432
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
2433
- /* @__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)(
2434
2487
  "table",
2435
2488
  __spreadProps(__spreadValues({
2436
2489
  "aria-describedby": description ? descriptionId : void 0,
2437
2490
  ref,
2438
- className: (0, import_typed_classname40.clsx)(
2491
+ className: (0, import_typed_classname41.clsx)(
2439
2492
  "hds-table",
2440
2493
  {
2441
2494
  "hds-table--compressed": size === "compressed",
@@ -2445,27 +2498,27 @@ var Table = (0, import_react45.forwardRef)(
2445
2498
  )
2446
2499
  }, rest), {
2447
2500
  children: [
2448
- caption ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("caption", { children: caption }) : null,
2501
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("caption", { children: caption }) : null,
2449
2502
  children
2450
2503
  ]
2451
2504
  })
2452
2505
  ),
2453
- 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
2454
2507
  ] });
2455
2508
  }
2456
2509
  );
2457
2510
  Table.displayName = "Table";
2458
2511
 
2459
2512
  // src/tabs/tabs.tsx
2460
- var import_react49 = require("react");
2461
- var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2462
- 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");
2463
2516
 
2464
2517
  // src/tabs/context.ts
2465
- var import_react46 = require("react");
2466
- var TabsContext = (0, import_react46.createContext)(null);
2518
+ var import_react47 = require("react");
2519
+ var TabsContext = (0, import_react47.createContext)(null);
2467
2520
  function useTabsContext() {
2468
- const context = (0, import_react46.useContext)(TabsContext);
2521
+ const context = (0, import_react47.useContext)(TabsContext);
2469
2522
  if (!context) {
2470
2523
  throw new Error(
2471
2524
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2475,25 +2528,25 @@ function useTabsContext() {
2475
2528
  }
2476
2529
 
2477
2530
  // src/tabs/tabs-content.tsx
2478
- var import_react47 = require("react");
2479
- var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2480
- var import_react_slot17 = require("@radix-ui/react-slot");
2481
- var import_jsx_runtime45 = require("react/jsx-runtime");
2482
- 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)(
2483
2536
  (_a, ref) => {
2484
2537
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2485
- const Component = asChild ? import_react_slot17.Slot : "div";
2486
- 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 }));
2487
2540
  }
2488
2541
  );
2489
2542
  TabsContents.displayName = "Tabs.Contents";
2490
- var TabsContent = (0, import_react47.forwardRef)(
2543
+ var TabsContent = (0, import_react48.forwardRef)(
2491
2544
  (_a, ref) => {
2492
2545
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2493
2546
  const context = useTabsContext();
2494
- const Component = asChild ? import_react_slot17.Slot : "div";
2547
+ const Component = asChild ? import_react_slot18.Slot : "div";
2495
2548
  if (context.activeTabId === forTabId) {
2496
- 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 }));
2497
2550
  }
2498
2551
  return null;
2499
2552
  }
@@ -2501,21 +2554,21 @@ var TabsContent = (0, import_react47.forwardRef)(
2501
2554
  TabsContent.displayName = "Tabs.Content";
2502
2555
 
2503
2556
  // src/tabs/tabs-list.tsx
2504
- var import_react48 = require("react");
2505
- var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2506
- var import_jsx_runtime46 = require("react/jsx-runtime");
2507
- 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)(
2508
2561
  (_a, ref) => {
2509
2562
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2510
2563
  const { activeTabId } = useTabsContext();
2511
- const tabsListRef = (0, import_react48.useRef)(null);
2564
+ const tabsListRef = (0, import_react49.useRef)(null);
2512
2565
  const mergedRef = useMergeRefs([tabsListRef, ref]);
2513
2566
  const { width: tabsWidth } = useResize(tabsListRef);
2514
2567
  const isClientSide = useHydrated();
2515
2568
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2516
2569
  const wideEnough = innerWidth >= tabsWidth;
2517
- const previousTabId = (0, import_react48.useRef)(activeTabId);
2518
- (0, import_react48.useEffect)(() => {
2570
+ const previousTabId = (0, import_react49.useRef)(activeTabId);
2571
+ (0, import_react49.useEffect)(() => {
2519
2572
  const tabList = tabsListRef.current;
2520
2573
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2521
2574
  if (!activeTab || !tabList) return;
@@ -2539,10 +2592,10 @@ var TabsList = (0, import_react48.forwardRef)(
2539
2592
  }
2540
2593
  previousTabId.current = activeTabId;
2541
2594
  }, [activeTabId, innerWidth]);
2542
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2595
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2543
2596
  "div",
2544
2597
  __spreadProps(__spreadValues({
2545
- className: (0, import_typed_classname42.clsx)(
2598
+ className: (0, import_typed_classname43.clsx)(
2546
2599
  "hds-tabs__list",
2547
2600
  direction === "horizontal" ? {
2548
2601
  "hds-tabs__list--horizontal": wideEnough,
@@ -2561,7 +2614,7 @@ var TabsList = (0, import_react48.forwardRef)(
2561
2614
  }
2562
2615
  );
2563
2616
  TabsList.displayName = "Tabs.List";
2564
- var TabsTab = (0, import_react48.forwardRef)(
2617
+ var TabsTab = (0, import_react49.forwardRef)(
2565
2618
  (_a, ref) => {
2566
2619
  var _b = _a, { children, tabId, className, onClick } = _b, rest = __objRest(_b, ["children", "tabId", "className", "onClick"]);
2567
2620
  const context = useTabsContext();
@@ -2570,10 +2623,10 @@ var TabsTab = (0, import_react48.forwardRef)(
2570
2623
  context.toggleActiveTabId(tabId);
2571
2624
  onClick == null ? void 0 : onClick(e);
2572
2625
  };
2573
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2626
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2574
2627
  "button",
2575
2628
  __spreadProps(__spreadValues({
2576
- className: (0, import_typed_classname42.clsx)(
2629
+ className: (0, import_typed_classname43.clsx)(
2577
2630
  "hds-tabs__tab",
2578
2631
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2579
2632
  className
@@ -2592,13 +2645,13 @@ var TabsTab = (0, import_react48.forwardRef)(
2592
2645
  TabsTab.displayName = "Tabs.Tab";
2593
2646
 
2594
2647
  // src/tabs/tabs.tsx
2595
- var import_jsx_runtime47 = require("react/jsx-runtime");
2596
- var Tabs = (0, import_react49.forwardRef)(
2648
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2649
+ var Tabs = (0, import_react50.forwardRef)(
2597
2650
  (_a, ref) => {
2598
2651
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
2599
- const [activeTabId, setActiveTabId] = (0, import_react49.useState)(defaultTab);
2600
- const Component = asChild ? import_react_slot18.Slot : "div";
2601
- 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 }) }));
2602
2655
  }
2603
2656
  );
2604
2657
  Tabs.displayName = "Tabs";
@@ -2608,10 +2661,10 @@ Tabs.Contents = TabsContents;
2608
2661
  Tabs.Content = TabsContent;
2609
2662
 
2610
2663
  // src/text/text.tsx
2611
- var import_react50 = require("react");
2612
- var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2613
- var import_react_slot19 = require("@radix-ui/react-slot");
2614
- 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");
2615
2668
  var defaultHTMLTag = {
2616
2669
  "h1-display": "h1",
2617
2670
  h1: "h1",
@@ -2627,7 +2680,7 @@ var defaultHTMLTag = {
2627
2680
  caption: "p",
2628
2681
  "caption-title": "p"
2629
2682
  };
2630
- var Text = (0, import_react50.forwardRef)(
2683
+ var Text = (0, import_react51.forwardRef)(
2631
2684
  (_a, ref) => {
2632
2685
  var _b = _a, {
2633
2686
  as: Tag,
@@ -2646,12 +2699,12 @@ var Text = (0, import_react50.forwardRef)(
2646
2699
  "children",
2647
2700
  "className"
2648
2701
  ]);
2649
- 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];
2650
2703
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2651
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2704
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2652
2705
  Component,
2653
2706
  __spreadProps(__spreadValues({
2654
- className: (0, import_typed_classname44.clsx)(
2707
+ className: (0, import_typed_classname45.clsx)(
2655
2708
  `hds-text-${variant}`,
2656
2709
  sizeModifier && `hds-text--${sizeModifier}`,
2657
2710
  spacing && "hds-text--spacing",
@@ -2667,16 +2720,16 @@ var Text = (0, import_react50.forwardRef)(
2667
2720
  Text.displayName = "Text";
2668
2721
 
2669
2722
  // src/warning-banner/warning-banner.tsx
2670
- var import_react51 = require("react");
2671
- var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2672
- var import_jsx_runtime49 = require("react/jsx-runtime");
2673
- 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)(
2674
2727
  (_a, ref) => {
2675
2728
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2676
- const descriptionId = (0, import_react51.useId)();
2729
+ const descriptionId = (0, import_react52.useId)();
2677
2730
  const expandable = !!description;
2678
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname45.clsx)("hds-warning-banner", className), ref, children: [
2679
- /* @__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)(
2680
2733
  WarningBannerTitle,
2681
2734
  {
2682
2735
  variant: expandable ? "expandable" : "default",
@@ -2684,22 +2737,22 @@ var WarningBanner = (0, import_react51.forwardRef)(
2684
2737
  children: title
2685
2738
  }
2686
2739
  ),
2687
- 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
2688
2741
  ] }));
2689
2742
  }
2690
2743
  );
2691
2744
  WarningBanner.displayName = "WarningBanner";
2692
- var WarningBannerTitle = (0, import_react51.forwardRef)((_a, ref) => {
2745
+ var WarningBannerTitle = (0, import_react52.forwardRef)((_a, ref) => {
2693
2746
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
2694
- const [open, setOpen] = (0, import_react51.useState)(false);
2747
+ const [open, setOpen] = (0, import_react52.useState)(false);
2695
2748
  if (variant === "expandable") {
2696
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2749
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2697
2750
  "button",
2698
2751
  __spreadProps(__spreadValues({}, rest), {
2699
2752
  "aria-expanded": open,
2700
2753
  "aria-controls": descriptionId,
2701
2754
  "data-state": open ? "open" : "closed",
2702
- className: (0, import_typed_classname45.clsx)(
2755
+ className: (0, import_typed_classname46.clsx)(
2703
2756
  "hds-warning-banner__title",
2704
2757
  "hds-warning-banner__title-trigger",
2705
2758
  className
@@ -2709,28 +2762,28 @@ var WarningBannerTitle = (0, import_react51.forwardRef)((_a, ref) => {
2709
2762
  },
2710
2763
  ref,
2711
2764
  type: "button",
2712
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children })
2765
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children })
2713
2766
  })
2714
2767
  );
2715
2768
  }
2716
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2769
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2717
2770
  "p",
2718
2771
  __spreadProps(__spreadValues({}, rest), {
2719
- className: (0, import_typed_classname45.clsx)("hds-warning-banner__title", className),
2772
+ className: (0, import_typed_classname46.clsx)("hds-warning-banner__title", className),
2720
2773
  ref,
2721
2774
  children
2722
2775
  })
2723
2776
  );
2724
2777
  });
2725
2778
  WarningBannerTitle.displayName = "WarningBannerTitle";
2726
- var WarningBannerDescription = (0, import_react51.forwardRef)(
2779
+ var WarningBannerDescription = (0, import_react52.forwardRef)(
2727
2780
  (_a, ref) => {
2728
2781
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
2729
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2782
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2730
2783
  "p",
2731
2784
  __spreadValues({
2732
2785
  id,
2733
- className: (0, import_typed_classname45.clsx)("hds-warning-banner__description", className),
2786
+ className: (0, import_typed_classname46.clsx)("hds-warning-banner__description", className),
2734
2787
  ref
2735
2788
  }, rest)
2736
2789
  );
@@ -2743,6 +2796,9 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2743
2796
  AccordionContent,
2744
2797
  AccordionHeader,
2745
2798
  AccordionItem,
2799
+ Alert,
2800
+ AlertDescription,
2801
+ AlertTitle,
2746
2802
  AutoAnimateHeight,
2747
2803
  Badge,
2748
2804
  Blockquote,