@postenbring/hedwig-react 0.0.47 → 0.0.49

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 (103) hide show
  1. package/dist/button/button.d.mts +12 -5
  2. package/dist/button/button.d.ts +12 -5
  3. package/dist/button/button.js +5 -2
  4. package/dist/button/button.mjs +1 -1
  5. package/dist/button/index.js +5 -2
  6. package/dist/button/index.mjs +1 -1
  7. package/dist/card/card.d.mts +29 -5
  8. package/dist/card/card.d.ts +29 -5
  9. package/dist/card/card.js +26 -32
  10. package/dist/card/card.mjs +1 -1
  11. package/dist/card/index.d.mts +9 -8
  12. package/dist/card/index.d.ts +9 -8
  13. package/dist/card/index.js +26 -32
  14. package/dist/card/index.mjs +2 -2
  15. package/dist/{chunk-3WUAXFB3.mjs → chunk-3WKOOAQL.mjs} +7 -7
  16. package/dist/{chunk-S7FSULI3.mjs → chunk-52YSOWMY.mjs} +1 -1
  17. package/dist/{chunk-6KRJB36T.mjs → chunk-CCNB2ABL.mjs} +6 -15
  18. package/dist/chunk-ERFGFY3Q.mjs +5 -0
  19. package/dist/{chunk-J5QNIAFL.mjs → chunk-JAHBNZTG.mjs} +4 -13
  20. package/dist/{chunk-DOWBGRCN.mjs → chunk-JOKO7Y7O.mjs} +3 -3
  21. package/dist/chunk-JTHBBJZW.mjs +5 -0
  22. package/dist/{chunk-MUGMWWNN.mjs → chunk-LCFKBPZC.mjs} +1 -1
  23. package/dist/{chunk-B3SD7RZV.mjs → chunk-OEOI74US.mjs} +26 -32
  24. package/dist/{chunk-4KBVX3Y7.mjs → chunk-OSCKYUZ3.mjs} +1 -1
  25. package/dist/{chunk-RNALWA7A.mjs → chunk-OX5NTX6M.mjs} +2 -25
  26. package/dist/{chunk-YBSM5D5N.mjs → chunk-PTLX7PHW.mjs} +5 -2
  27. package/dist/chunk-RBOWRO3L.mjs +18 -0
  28. package/dist/chunk-RSL23FEW.mjs +26 -0
  29. package/dist/chunk-SDR3TESK.mjs +39 -0
  30. package/dist/chunk-ZDZR5FVC.mjs +39 -0
  31. package/dist/form/checkbox/checkbox.d.mts +10 -0
  32. package/dist/form/checkbox/checkbox.d.ts +10 -0
  33. package/dist/form/checkbox/checkbox.js +86 -0
  34. package/dist/form/checkbox/checkbox.mjs +7 -0
  35. package/dist/form/checkbox/index.d.mts +2 -0
  36. package/dist/form/checkbox/index.d.ts +2 -0
  37. package/dist/form/checkbox/index.js +92 -0
  38. package/dist/form/checkbox/index.mjs +8 -0
  39. package/dist/form/error-message/error-message.d.mts +1 -2
  40. package/dist/form/error-message/error-message.d.ts +1 -2
  41. package/dist/form/error-message/error-message.js +4 -28
  42. package/dist/form/error-message/error-message.mjs +1 -1
  43. package/dist/form/error-message/index.js +4 -28
  44. package/dist/form/error-message/index.mjs +1 -1
  45. package/dist/form/fieldset/fieldset.d.mts +0 -1
  46. package/dist/form/fieldset/fieldset.d.ts +0 -1
  47. package/dist/form/fieldset/fieldset.js +7 -23
  48. package/dist/form/fieldset/fieldset.mjs +2 -2
  49. package/dist/form/fieldset/index.js +7 -23
  50. package/dist/form/fieldset/index.mjs +2 -2
  51. package/dist/form/index.d.mts +2 -0
  52. package/dist/form/index.d.ts +2 -0
  53. package/dist/form/index.js +89 -61
  54. package/dist/form/index.mjs +17 -7
  55. package/dist/form/input/index.js +10 -49
  56. package/dist/form/input/index.mjs +3 -3
  57. package/dist/form/input/input.js +10 -49
  58. package/dist/form/input/input.mjs +3 -3
  59. package/dist/form/input-group/index.js +9 -25
  60. package/dist/form/input-group/index.mjs +2 -2
  61. package/dist/form/input-group/input-group.d.mts +0 -1
  62. package/dist/form/input-group/input-group.d.ts +0 -1
  63. package/dist/form/input-group/input-group.js +9 -25
  64. package/dist/form/input-group/input-group.mjs +2 -2
  65. package/dist/form/radiobutton/index.d.mts +2 -0
  66. package/dist/form/radiobutton/index.d.ts +2 -0
  67. package/dist/form/radiobutton/index.js +92 -0
  68. package/dist/form/radiobutton/index.mjs +8 -0
  69. package/dist/form/radiobutton/radiobutton.d.mts +10 -0
  70. package/dist/form/radiobutton/radiobutton.d.ts +10 -0
  71. package/dist/form/radiobutton/radiobutton.js +86 -0
  72. package/dist/form/radiobutton/radiobutton.mjs +7 -0
  73. package/dist/form/select/index.js +9 -25
  74. package/dist/form/select/index.mjs +3 -3
  75. package/dist/form/select/select.js +9 -25
  76. package/dist/form/select/select.mjs +3 -3
  77. package/dist/form/textarea/index.js +9 -25
  78. package/dist/form/textarea/index.mjs +3 -3
  79. package/dist/form/textarea/textarea.js +9 -25
  80. package/dist/form/textarea/textarea.mjs +3 -3
  81. package/dist/index.d.mts +3 -1
  82. package/dist/index.d.ts +3 -1
  83. package/dist/index.js +273 -240
  84. package/dist/index.mjs +26 -16
  85. package/dist/list/index.js +10 -2
  86. package/dist/list/index.mjs +1 -1
  87. package/dist/list/link-list.d.mts +1 -1
  88. package/dist/list/link-list.d.ts +1 -1
  89. package/dist/list/link-list.js +10 -2
  90. package/dist/list/link-list.mjs +1 -1
  91. package/dist/navbar/index.js +3 -3
  92. package/dist/navbar/index.mjs +1 -1
  93. package/dist/navbar/navbar-expandable-menu.js +3 -3
  94. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  95. package/dist/{prose/prose.d.mts → styled-html/styled-html.d.mts} +9 -15
  96. package/dist/{prose/prose.d.ts → styled-html/styled-html.d.ts} +9 -15
  97. package/dist/{prose/prose.js → styled-html/styled-html.js} +11 -11
  98. package/dist/styled-html/styled-html.mjs +7 -0
  99. package/package.json +5 -5
  100. package/dist/chunk-R7GQHCN4.mjs +0 -30
  101. package/dist/chunk-X5URKHFD.mjs +0 -18
  102. package/dist/prose/prose.mjs +0 -7
  103. /package/dist/{chunk-PPUNMHOX.mjs → chunk-5OGUAHLN.mjs} +0 -0
package/dist/index.js CHANGED
@@ -64,6 +64,7 @@ __export(src_exports, {
64
64
  Box: () => BoxComponent,
65
65
  Breadcrumbs: () => Breadcrumbs,
66
66
  Card: () => CardComponent,
67
+ Checkbox: () => Checkbox,
67
68
  Container: () => Container,
68
69
  DarkBadge: () => DarkBadge,
69
70
  DescriptionList: () => DescriptionList,
@@ -75,9 +76,10 @@ __export(src_exports, {
75
76
  Modal: () => ModalComponent,
76
77
  OrderedList: () => OrderedList,
77
78
  PrimaryButton: () => PrimaryButton,
78
- Prose: () => Prose,
79
+ Radiobutton: () => Radiobutton,
79
80
  SecondaryButton: () => SecondaryButton,
80
81
  Select: () => Select,
82
+ StyledHtml: () => StyledHtml,
81
83
  Tabs: () => TabsComponent,
82
84
  Textarea: () => Textarea,
83
85
  UnorderedList: () => UnorderedList,
@@ -421,6 +423,9 @@ var BaseButton = (0, import_react7.forwardRef)(
421
423
  "icon",
422
424
  "className"
423
425
  ]);
426
+ if (fill === "outlined") {
427
+ console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
428
+ }
424
429
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
425
430
  Component,
426
431
  __spreadProps(__spreadValues({
@@ -429,8 +434,8 @@ var BaseButton = (0, import_react7.forwardRef)(
429
434
  `hds-button--${size}`,
430
435
  {
431
436
  [`hds-button--${variant}`]: fill === "contained",
432
- [`hds-button--outline-${variant}`]: fill === "outlined",
433
- "hds-button--full": fullWidth === true,
437
+ [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
438
+ "hds-button--full": fullWidth,
434
439
  "hds-button--mobile-full": fullWidth === "mobile",
435
440
  "hds-button--icon-only": icon && !children
436
441
  },
@@ -470,12 +475,10 @@ var import_card = require("@postenbring/hedwig-css/dist/card.css");
470
475
  var import_react8 = require("react");
471
476
  var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
472
477
  var import_jsx_runtime9 = require("react/jsx-runtime");
473
- var Card = (0, import_react8.forwardRef)(
474
- (_a, ref) => {
475
- var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
476
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card", className), ref, children }));
477
- }
478
- );
478
+ var Card = (0, import_react8.forwardRef)((_a, ref) => {
479
+ var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
480
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card", className), ref, children }));
481
+ });
479
482
  Card.displayName = "Card";
480
483
  var CardMedia = (0, import_react8.forwardRef)(
481
484
  (_a, ref) => {
@@ -504,19 +507,17 @@ var CardBody = (0, import_react8.forwardRef)(
504
507
  }
505
508
  );
506
509
  CardBody.displayName = "Card.Body";
507
- var CardBodyHeader = (0, import_react8.forwardRef)(
508
- (_a, ref) => {
509
- var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
510
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
511
- Component,
512
- __spreadProps(__spreadValues({}, rest), {
513
- className: (0, import_typed_classname9.clsx)("hds-card__body-header", className),
514
- ref,
515
- children
516
- })
517
- );
518
- }
519
- );
510
+ var CardBodyHeader = (0, import_react8.forwardRef)((_a, ref) => {
511
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
512
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
513
+ Component,
514
+ __spreadProps(__spreadValues({}, rest), {
515
+ className: (0, import_typed_classname9.clsx)("hds-card__body-header", className),
516
+ ref,
517
+ children
518
+ })
519
+ );
520
+ });
520
521
  CardBodyHeader.displayName = "Card.Body.Header";
521
522
  var CardBodyHeaderOverline = (0, import_react8.forwardRef)((_a, ref) => {
522
523
  var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
@@ -530,19 +531,17 @@ var CardBodyHeaderOverline = (0, import_react8.forwardRef)((_a, ref) => {
530
531
  );
531
532
  });
532
533
  CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
533
- var CardBodyHeaderTitle = (0, import_react8.forwardRef)(
534
- (_a, ref) => {
535
- var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
536
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
537
- Component,
538
- __spreadProps(__spreadValues({}, rest), {
539
- className: (0, import_typed_classname9.clsx)("hds-card__body-header-title", className),
540
- ref,
541
- children
542
- })
543
- );
544
- }
545
- );
534
+ var CardBodyHeaderTitle = (0, import_react8.forwardRef)((_a, ref) => {
535
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
536
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
537
+ Component,
538
+ __spreadProps(__spreadValues({}, rest), {
539
+ className: (0, import_typed_classname9.clsx)("hds-card__body-header-title", className),
540
+ ref,
541
+ children
542
+ })
543
+ );
544
+ });
546
545
  CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
547
546
  var CardBodyDescription = (0, import_react8.forwardRef)(
548
547
  (_a, ref) => {
@@ -619,22 +618,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
619
618
  // src/form/error-message/error-message.tsx
620
619
  var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
621
620
  var import_jsx_runtime10 = require("react/jsx-runtime");
622
- function ErrorMessage({
623
- children,
624
- id,
625
- className,
626
- _unstableAriaLiveOnErrorMessage
627
- }) {
621
+ function ErrorMessage({ children, id, className }) {
628
622
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
629
623
  "div",
630
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
631
- "aria-live": "polite",
632
- "aria-relevant": "additions removals"
633
- }), {
624
+ {
625
+ "aria-live": "assertive",
634
626
  className: (0, import_typed_classname10.clsx)("hds-error-message", className),
635
627
  id,
636
628
  children
637
- })
629
+ }
638
630
  );
639
631
  }
640
632
 
@@ -648,16 +640,14 @@ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
648
640
  legendProps: _c = {}
649
641
  } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
650
642
  legend,
651
- children,
652
- _unstableAriaLiveOnErrorMessage = false
643
+ children
653
644
  } = _e, rest = __objRest(_e, [
654
645
  "className",
655
646
  "style",
656
647
  "errorMessage",
657
648
  "legendProps",
658
649
  "legend",
659
- "children",
660
- "_unstableAriaLiveOnErrorMessage"
650
+ "children"
661
651
  ]);
662
652
  const errorMessageId = (0, import_react9.useId)();
663
653
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
@@ -683,14 +673,7 @@ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
683
673
  })
684
674
  ),
685
675
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-fieldset__input-wrapper"), children }),
686
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
687
- ErrorMessage,
688
- {
689
- _unstableAriaLiveOnErrorMessage,
690
- id: errorMessageId,
691
- children: errorMessage
692
- }
693
- )
676
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
694
677
  ]
695
678
  })
696
679
  );
@@ -729,8 +712,7 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
729
712
  label,
730
713
  disabled,
731
714
  readOnly,
732
- children,
733
- _unstableAriaLiveOnErrorMessage = false
715
+ children
734
716
  } = _e, rest = __objRest(_e, [
735
717
  "id",
736
718
  "className",
@@ -741,8 +723,7 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
741
723
  "label",
742
724
  "disabled",
743
725
  "readOnly",
744
- "children",
745
- "_unstableAriaLiveOnErrorMessage"
726
+ "children"
746
727
  ]);
747
728
  const errorMessageId = (0, import_react10.useId)();
748
729
  const inputId = (0, import_react10.useId)();
@@ -754,7 +735,7 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
754
735
  return (0, import_react10.cloneElement)(input, __spreadProps(__spreadValues({
755
736
  "aria-describedby": errorMessage ? errorMessageId : void 0,
756
737
  "aria-invalid": errorMessage ? true : void 0,
757
- id: id || inputId
738
+ id: id != null ? id : inputId
758
739
  }, input.props), {
759
740
  className: (0, import_typed_classname12.clsx)("hds-input-group__input", input.props.className)
760
741
  }));
@@ -779,7 +760,7 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
779
760
  __spreadProps(__spreadValues({
780
761
  className: (0, import_typed_classname12.clsx)("hds-input-group__label", labelClassName)
781
762
  }, labelProps), {
782
- htmlFor: id || inputId,
763
+ htmlFor: id != null ? id : inputId,
783
764
  children: label
784
765
  })
785
766
  ),
@@ -792,14 +773,7 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
792
773
  children: renderInput()
793
774
  }
794
775
  ),
795
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
796
- ErrorMessage,
797
- {
798
- _unstableAriaLiveOnErrorMessage,
799
- id: errorMessageId,
800
- children: errorMessage
801
- }
802
- )
776
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
803
777
  ]
804
778
  })
805
779
  );
@@ -808,33 +782,10 @@ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
808
782
  // src/form/input/input.tsx
809
783
  var import_jsx_runtime13 = require("react/jsx-runtime");
810
784
  var Input = (0, import_react11.forwardRef)(function Input2(_a, ref) {
811
- var _b = _a, {
812
- className,
813
- variant,
814
- errorMessage,
815
- labelProps,
816
- label,
817
- id,
818
- style,
819
- disabled,
820
- readOnly,
821
- _unstableAriaLiveOnErrorMessage
822
- } = _b, rest = __objRest(_b, [
823
- "className",
824
- "variant",
825
- "errorMessage",
826
- "labelProps",
827
- "label",
828
- "id",
829
- "style",
830
- "disabled",
831
- "readOnly",
832
- "_unstableAriaLiveOnErrorMessage"
833
- ]);
785
+ 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"]);
834
786
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
835
787
  InputGroup,
836
788
  {
837
- _unstableAriaLiveOnErrorMessage,
838
789
  className: (0, import_typed_classname13.clsx)("hds-input", className),
839
790
  disabled,
840
791
  errorMessage,
@@ -911,23 +862,95 @@ var Textarea = (0, import_react13.forwardRef)(function Textarea2(_a, ref) {
911
862
  });
912
863
  Textarea.displayName = "Textarea";
913
864
 
914
- // src/layout/index.tsx
865
+ // src/form/checkbox/index.tsx
915
866
  var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
916
867
  var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
917
868
  var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
918
- var import_container = require("@postenbring/hedwig-css/dist/container.css");
869
+ var import_checkbox = require("@postenbring/hedwig-css/dist/checkbox.css");
919
870
 
920
- // src/layout/container/container.tsx
921
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
871
+ // src/form/checkbox/checkbox.tsx
922
872
  var import_react14 = require("react");
873
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
923
874
  var import_jsx_runtime16 = require("react/jsx-runtime");
924
- var Container = (0, import_react14.forwardRef)(
875
+ var Checkbox = (0, import_react14.forwardRef)(
876
+ (_a, ref) => {
877
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
878
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
879
+ "label",
880
+ {
881
+ className: (0, import_typed_classname16.clsx)(
882
+ "hds-checkbox",
883
+ {
884
+ [`hds-checkbox--${variant}`]: variant === "bounding-box",
885
+ "hds-checkbox--error": hasError
886
+ },
887
+ className
888
+ ),
889
+ children: [
890
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
891
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
892
+ title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hds-checkbox__title", children: title }) : null,
893
+ children
894
+ ]
895
+ }
896
+ );
897
+ }
898
+ );
899
+ Checkbox.displayName = "Checkbox";
900
+
901
+ // src/form/radiobutton/index.tsx
902
+ var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
903
+ var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
904
+ var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
905
+ var import_radiobutton = require("@postenbring/hedwig-css/dist/radiobutton.css");
906
+
907
+ // src/form/radiobutton/radiobutton.tsx
908
+ var import_react15 = require("react");
909
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
910
+ var import_jsx_runtime17 = require("react/jsx-runtime");
911
+ var Radiobutton = (0, import_react15.forwardRef)(
912
+ (_a, ref) => {
913
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
914
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
915
+ "label",
916
+ {
917
+ className: (0, import_typed_classname17.clsx)(
918
+ "hds-radiobutton",
919
+ {
920
+ [`hds-radiobutton--${variant}`]: variant === "bounding-box",
921
+ "hds-radiobutton--error": hasError
922
+ },
923
+ className
924
+ ),
925
+ children: [
926
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
927
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
928
+ title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-radiobutton__title", children: title }) : null,
929
+ children
930
+ ]
931
+ }
932
+ );
933
+ }
934
+ );
935
+ Radiobutton.displayName = "Radiobutton";
936
+
937
+ // src/layout/index.tsx
938
+ var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
939
+ var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
940
+ var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
941
+ var import_container = require("@postenbring/hedwig-css/dist/container.css");
942
+
943
+ // src/layout/container/container.tsx
944
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
945
+ var import_react16 = require("react");
946
+ var import_jsx_runtime18 = require("react/jsx-runtime");
947
+ var Container = (0, import_react16.forwardRef)(
925
948
  (_a, ref) => {
926
949
  var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
927
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
950
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
928
951
  Component,
929
952
  __spreadProps(__spreadValues({}, rest), {
930
- className: (0, import_typed_classname16.clsx)(
953
+ className: (0, import_typed_classname18.clsx)(
931
954
  "hds-container",
932
955
  { "hds-container--slim": variant === "slim" },
933
956
  className
@@ -941,22 +964,22 @@ var Container = (0, import_react14.forwardRef)(
941
964
  Container.displayName = "Container";
942
965
 
943
966
  // src/link/index.tsx
944
- var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
945
- var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
946
- var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
967
+ var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
968
+ var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
969
+ var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
947
970
  var import_link = require("@postenbring/hedwig-css/dist/link.css");
948
971
 
949
972
  // src/link/link.tsx
950
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
951
- var import_react15 = require("react");
952
- var import_jsx_runtime17 = require("react/jsx-runtime");
953
- var Link = (0, import_react15.forwardRef)(
973
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
974
+ var import_react17 = require("react");
975
+ var import_jsx_runtime19 = require("react/jsx-runtime");
976
+ var Link = (0, import_react17.forwardRef)(
954
977
  (_a, ref) => {
955
978
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
956
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
979
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
957
980
  Component,
958
981
  __spreadProps(__spreadValues({
959
- className: (0, import_typed_classname17.clsx)(
982
+ className: (0, import_typed_classname19.clsx)(
960
983
  "hds-link",
961
984
  variant !== "underline" && `hds-link--${variant}`,
962
985
  size !== "medium" && `hds-link--${size}`,
@@ -972,15 +995,15 @@ var Link = (0, import_react15.forwardRef)(
972
995
  Link.displayName = "Link";
973
996
 
974
997
  // src/list/index.tsx
975
- var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
976
- var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
977
- var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
998
+ var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
999
+ var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1000
+ var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
978
1001
  var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
979
1002
  var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
980
1003
 
981
1004
  // src/list/description-list.tsx
982
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
983
- var import_jsx_runtime18 = require("react/jsx-runtime");
1005
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1006
+ var import_jsx_runtime20 = require("react/jsx-runtime");
984
1007
  function DescriptionList(_a) {
985
1008
  var _b = _a, {
986
1009
  variant = "vertical",
@@ -989,10 +1012,10 @@ function DescriptionList(_a) {
989
1012
  "variant",
990
1013
  "className"
991
1014
  ]);
992
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1015
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
993
1016
  "dl",
994
1017
  __spreadValues({
995
- className: (0, import_typed_classname18.clsx)(
1018
+ className: (0, import_typed_classname20.clsx)(
996
1019
  "hds-description-list",
997
1020
  {
998
1021
  "hds-description-list--horizontal": variant === "horizontal"
@@ -1005,8 +1028,8 @@ function DescriptionList(_a) {
1005
1028
  DescriptionList.displayName = "DescriptionList";
1006
1029
 
1007
1030
  // src/list/list.tsx
1008
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1009
- var import_jsx_runtime19 = require("react/jsx-runtime");
1031
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1032
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1010
1033
  function BaseList(_a) {
1011
1034
  var _b = _a, {
1012
1035
  as: ListTag = "ul",
@@ -1021,10 +1044,10 @@ function BaseList(_a) {
1021
1044
  "size",
1022
1045
  "className"
1023
1046
  ]);
1024
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1047
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1025
1048
  ListTag,
1026
1049
  __spreadProps(__spreadValues({
1027
- className: (0, import_typed_classname19.clsx)(
1050
+ className: (0, import_typed_classname21.clsx)(
1028
1051
  "hds-list",
1029
1052
  `hds-list--${size}`,
1030
1053
  {
@@ -1038,44 +1061,52 @@ function BaseList(_a) {
1038
1061
  );
1039
1062
  }
1040
1063
  function UnorderedList(props) {
1041
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1064
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1042
1065
  }
1043
1066
  function OrderedList(props) {
1044
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1067
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1045
1068
  }
1046
1069
  BaseList.displayName = "BaseList";
1047
1070
  OrderedList.displayName = "OrderedList";
1048
1071
  UnorderedList.displayName = "UnorderedList";
1049
1072
 
1050
1073
  // src/list/link-list.tsx
1051
- var import_jsx_runtime20 = require("react/jsx-runtime");
1052
- function LinkList(props) {
1053
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
1074
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1075
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1076
+ function LinkList(_a) {
1077
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1078
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1079
+ UnorderedList,
1080
+ __spreadValues({
1081
+ className: (0, import_typed_classname22.clsx)("hds-list--link-list", className),
1082
+ listStyle: "no-bullets"
1083
+ }, rest)
1084
+ );
1054
1085
  }
1055
1086
  LinkList.displayName = "LinkList";
1056
1087
 
1057
1088
  // src/message/index.tsx
1058
- var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1059
- var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1060
- var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1089
+ var import_fonts18 = require("@postenbring/hedwig-css/dist/fonts.css");
1090
+ var import_tokens18 = require("@postenbring/hedwig-css/dist/tokens.css");
1091
+ var import_body18 = require("@postenbring/hedwig-css/dist/body.css");
1061
1092
  var import_box4 = require("@postenbring/hedwig-css/dist/box.css");
1062
1093
  var import_message = require("@postenbring/hedwig-css/dist/message.css");
1063
1094
 
1064
1095
  // src/message/message.tsx
1065
- var import_react16 = require("react");
1066
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1067
- var import_jsx_runtime21 = require("react/jsx-runtime");
1068
- var Message = (0, import_react16.forwardRef)(
1096
+ var import_react18 = require("react");
1097
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1098
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1099
+ var Message = (0, import_react18.forwardRef)(
1069
1100
  (_a, ref) => {
1070
1101
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1071
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1102
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1072
1103
  Box,
1073
1104
  __spreadProps(__spreadValues({
1074
- className: (0, import_typed_classname20.clsx)(`hds-message`, `hds-message--${variant}`, className),
1105
+ className: (0, import_typed_classname23.clsx)(`hds-message`, `hds-message--${variant}`, className),
1075
1106
  ref
1076
1107
  }, rest), {
1077
1108
  children: [
1078
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: (0, import_typed_classname20.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1109
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: (0, import_typed_classname23.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1079
1110
  children
1080
1111
  ]
1081
1112
  })
@@ -1083,26 +1114,26 @@ var Message = (0, import_react16.forwardRef)(
1083
1114
  }
1084
1115
  );
1085
1116
  Message.displayName = "Message";
1086
- var MessageTitle = (0, import_react16.forwardRef)(
1117
+ var MessageTitle = (0, import_react18.forwardRef)(
1087
1118
  (_a, ref) => {
1088
1119
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1089
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1120
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1090
1121
  Component,
1091
1122
  __spreadValues({
1092
- className: (0, import_typed_classname20.clsx)("hds-message__title", className),
1123
+ className: (0, import_typed_classname23.clsx)("hds-message__title", className),
1093
1124
  ref
1094
1125
  }, rest)
1095
1126
  );
1096
1127
  }
1097
1128
  );
1098
1129
  MessageTitle.displayName = "Message.Title";
1099
- var MessageDescription = (0, import_react16.forwardRef)(
1130
+ var MessageDescription = (0, import_react18.forwardRef)(
1100
1131
  (_a, ref) => {
1101
1132
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1102
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1133
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1103
1134
  Component,
1104
1135
  __spreadValues({
1105
- className: (0, import_typed_classname20.clsx)("hds-message__description", className),
1136
+ className: (0, import_typed_classname23.clsx)("hds-message__description", className),
1106
1137
  ref
1107
1138
  }, rest)
1108
1139
  );
@@ -1116,21 +1147,21 @@ MessageComponent.Title = MessageTitle;
1116
1147
  MessageComponent.Description = MessageDescription;
1117
1148
 
1118
1149
  // src/modal/index.tsx
1119
- var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1120
- var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1121
- var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
1150
+ var import_fonts19 = require("@postenbring/hedwig-css/dist/fonts.css");
1151
+ var import_tokens19 = require("@postenbring/hedwig-css/dist/tokens.css");
1152
+ var import_body19 = require("@postenbring/hedwig-css/dist/body.css");
1122
1153
  var import_box6 = require("@postenbring/hedwig-css/dist/box.css");
1123
1154
  var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
1124
1155
 
1125
1156
  // src/modal/modal.tsx
1126
- var import_react18 = require("react");
1127
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1157
+ var import_react20 = require("react");
1158
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1128
1159
 
1129
1160
  // src/utils.ts
1130
- var React2 = __toESM(require("react"));
1131
- var import_react17 = require("react");
1161
+ var React4 = __toESM(require("react"));
1162
+ var import_react19 = require("react");
1132
1163
  function useMergeRefs(refs) {
1133
- return React2.useMemo(() => {
1164
+ return React4.useMemo(() => {
1134
1165
  if (refs.every((ref) => ref === null)) {
1135
1166
  return null;
1136
1167
  }
@@ -1146,16 +1177,16 @@ function useMergeRefs(refs) {
1146
1177
  }, refs);
1147
1178
  }
1148
1179
  function useResize(ref) {
1149
- const [width, setWidth] = (0, import_react17.useState)(0);
1150
- const [height, setHeight] = (0, import_react17.useState)(0);
1151
- const handleResize = (0, import_react17.useCallback)(() => {
1180
+ const [width, setWidth] = (0, import_react19.useState)(0);
1181
+ const [height, setHeight] = (0, import_react19.useState)(0);
1182
+ const handleResize = (0, import_react19.useCallback)(() => {
1152
1183
  var _a, _b, _c, _d;
1153
1184
  if ((ref == null ? void 0 : ref.current) !== null) {
1154
1185
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
1155
1186
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
1156
1187
  }
1157
1188
  }, [ref]);
1158
- (0, import_react17.useEffect)(() => {
1189
+ (0, import_react19.useEffect)(() => {
1159
1190
  window.addEventListener("load", handleResize);
1160
1191
  window.addEventListener("resize", handleResize);
1161
1192
  return () => {
@@ -1163,18 +1194,18 @@ function useResize(ref) {
1163
1194
  window.removeEventListener("resize", handleResize);
1164
1195
  };
1165
1196
  }, [ref, handleResize]);
1166
- (0, import_react17.useEffect)(() => {
1197
+ (0, import_react19.useEffect)(() => {
1167
1198
  handleResize();
1168
1199
  }, []);
1169
1200
  return { width, height };
1170
1201
  }
1171
1202
 
1172
1203
  // src/modal/modal.tsx
1173
- var import_jsx_runtime22 = require("react/jsx-runtime");
1174
- var Modal = (0, import_react18.forwardRef)(
1204
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1205
+ var Modal = (0, import_react20.forwardRef)(
1175
1206
  (_a, ref) => {
1176
1207
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1177
- const modalRef = (0, import_react18.useRef)(null);
1208
+ const modalRef = (0, import_react20.useRef)(null);
1178
1209
  const mergedRef = useMergeRefs([modalRef, ref]);
1179
1210
  function onCloseButtonClick() {
1180
1211
  var _a2;
@@ -1182,7 +1213,7 @@ var Modal = (0, import_react18.forwardRef)(
1182
1213
  return false;
1183
1214
  }
1184
1215
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1185
- (0, import_react18.useEffect)(() => {
1216
+ (0, import_react20.useEffect)(() => {
1186
1217
  if (modalRef.current && open !== void 0) {
1187
1218
  if (open && !modalRef.current.open) {
1188
1219
  modalRef.current.showModal();
@@ -1197,11 +1228,11 @@ var Modal = (0, import_react18.forwardRef)(
1197
1228
  }
1198
1229
  onClick == null ? void 0 : onClick(e);
1199
1230
  }
1200
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1231
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1201
1232
  Box,
1202
1233
  __spreadProps(__spreadValues({
1203
1234
  as: "dialog",
1204
- className: (0, import_typed_classname21.clsx)("hds-modal", className),
1235
+ className: (0, import_typed_classname24.clsx)("hds-modal", className),
1205
1236
  closeable: true,
1206
1237
  onClick: onDialogClick,
1207
1238
  onClose: onCloseButtonClick,
@@ -1214,39 +1245,39 @@ var Modal = (0, import_react18.forwardRef)(
1214
1245
  }
1215
1246
  );
1216
1247
  Modal.displayName = "Modal";
1217
- var ModalHeader = (0, import_react18.forwardRef)(
1248
+ var ModalHeader = (0, import_react20.forwardRef)(
1218
1249
  (_a, ref) => {
1219
1250
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1220
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1251
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1221
1252
  Component,
1222
1253
  __spreadValues({
1223
- className: (0, import_typed_classname21.clsx)("hds-modal__header", className),
1254
+ className: (0, import_typed_classname24.clsx)("hds-modal__header", className),
1224
1255
  ref
1225
1256
  }, rest)
1226
1257
  );
1227
1258
  }
1228
1259
  );
1229
1260
  ModalHeader.displayName = "Modal.Header";
1230
- var ModalContent = (0, import_react18.forwardRef)(
1261
+ var ModalContent = (0, import_react20.forwardRef)(
1231
1262
  (_a, ref) => {
1232
1263
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1233
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1264
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1234
1265
  Component,
1235
1266
  __spreadValues({
1236
- className: (0, import_typed_classname21.clsx)("hds-modal__content", className),
1267
+ className: (0, import_typed_classname24.clsx)("hds-modal__content", className),
1237
1268
  ref
1238
1269
  }, rest)
1239
1270
  );
1240
1271
  }
1241
1272
  );
1242
1273
  ModalContent.displayName = "Modal.Content";
1243
- var ModalFooter = (0, import_react18.forwardRef)(
1274
+ var ModalFooter = (0, import_react20.forwardRef)(
1244
1275
  (_a, ref) => {
1245
1276
  var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1246
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1277
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1247
1278
  Component,
1248
1279
  __spreadValues({
1249
- className: (0, import_typed_classname21.clsx)("hds-modal__footer", className),
1280
+ className: (0, import_typed_classname24.clsx)("hds-modal__footer", className),
1250
1281
  ref
1251
1282
  }, rest)
1252
1283
  );
@@ -1254,7 +1285,7 @@ var ModalFooter = (0, import_react18.forwardRef)(
1254
1285
  );
1255
1286
  ModalFooter.displayName = "Modal.Footer";
1256
1287
  function useScrollLock(modalRef, bodyClass) {
1257
- (0, import_react18.useEffect)(() => {
1288
+ (0, import_react20.useEffect)(() => {
1258
1289
  if (!modalRef.current)
1259
1290
  return;
1260
1291
  if (modalRef.current.open)
@@ -1284,18 +1315,18 @@ ModalComponent.Content = ModalContent;
1284
1315
  ModalComponent.Footer = ModalFooter;
1285
1316
 
1286
1317
  // src/tabs/index.tsx
1287
- var import_fonts18 = require("@postenbring/hedwig-css/dist/fonts.css");
1288
- var import_tokens18 = require("@postenbring/hedwig-css/dist/tokens.css");
1289
- var import_body18 = require("@postenbring/hedwig-css/dist/body.css");
1318
+ var import_fonts20 = require("@postenbring/hedwig-css/dist/fonts.css");
1319
+ var import_tokens20 = require("@postenbring/hedwig-css/dist/tokens.css");
1320
+ var import_body20 = require("@postenbring/hedwig-css/dist/body.css");
1290
1321
  var import_tabs = require("@postenbring/hedwig-css/dist/tabs.css");
1291
1322
 
1292
1323
  // src/tabs/tabs.tsx
1293
- var import_react20 = require("react");
1294
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1324
+ var import_react22 = require("react");
1325
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1295
1326
 
1296
1327
  // src/tabs/context.ts
1297
- var import_react19 = require("react");
1298
- var TabsContext = (0, import_react19.createContext)({
1328
+ var import_react21 = require("react");
1329
+ var TabsContext = (0, import_react21.createContext)({
1299
1330
  mounted: false,
1300
1331
  activeTabId: void 0,
1301
1332
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
@@ -1304,12 +1335,12 @@ var TabsContext = (0, import_react19.createContext)({
1304
1335
  });
1305
1336
 
1306
1337
  // src/tabs/tabs.tsx
1307
- var import_jsx_runtime23 = require("react/jsx-runtime");
1308
- var Tabs = (0, import_react20.forwardRef)(
1338
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1339
+ var Tabs = (0, import_react22.forwardRef)(
1309
1340
  (_a, ref) => {
1310
1341
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1311
- const [activeTabId, setActiveTabId] = (0, import_react20.useState)(defaultTab);
1312
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname22.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1342
+ const [activeTabId, setActiveTabId] = (0, import_react22.useState)(defaultTab);
1343
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname25.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1313
1344
  TabsContext.Provider,
1314
1345
  {
1315
1346
  value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
@@ -1321,19 +1352,19 @@ var Tabs = (0, import_react20.forwardRef)(
1321
1352
  Tabs.displayName = "Tabs";
1322
1353
 
1323
1354
  // src/tabs/tabs-list.tsx
1324
- var import_react21 = require("react");
1325
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1326
- var import_jsx_runtime24 = require("react/jsx-runtime");
1355
+ var import_react23 = require("react");
1356
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1357
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1327
1358
  function TabsList(_a) {
1328
1359
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1329
- const tabsListRef = (0, import_react21.useRef)(null);
1360
+ const tabsListRef = (0, import_react23.useRef)(null);
1330
1361
  const { width: tabsWidth } = useResize(tabsListRef);
1331
1362
  const { innerWidth } = window;
1332
1363
  const wideEnough = innerWidth >= tabsWidth;
1333
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1364
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1334
1365
  "div",
1335
1366
  __spreadProps(__spreadValues({
1336
- className: (0, import_typed_classname23.clsx)(
1367
+ className: (0, import_typed_classname26.clsx)(
1337
1368
  "hds-tabs--list",
1338
1369
  direction === "horizontal" ? {
1339
1370
  [`hds-tabs--list-horizontal`]: wideEnough,
@@ -1351,10 +1382,10 @@ function TabsList(_a) {
1351
1382
  );
1352
1383
  }
1353
1384
  TabsList.displayName = "Tabs.List";
1354
- var Tab = (0, import_react21.forwardRef)(
1385
+ var Tab = (0, import_react23.forwardRef)(
1355
1386
  (_a, ref) => {
1356
1387
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
1357
- const context = (0, import_react21.useContext)(TabsContext);
1388
+ const context = (0, import_react23.useContext)(TabsContext);
1358
1389
  if (!context.mounted) {
1359
1390
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1360
1391
  }
@@ -1363,10 +1394,10 @@ var Tab = (0, import_react21.forwardRef)(
1363
1394
  context.toggleActiveTabId(tabId);
1364
1395
  onClick && onClick(e);
1365
1396
  };
1366
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1397
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1367
1398
  Component,
1368
1399
  __spreadProps(__spreadValues({
1369
- className: (0, import_typed_classname23.clsx)(
1400
+ className: (0, import_typed_classname26.clsx)(
1370
1401
  "hds-tabs--tab",
1371
1402
  { "hds-tabs--tab-active": context.activeTabId === tabId },
1372
1403
  className
@@ -1384,23 +1415,23 @@ var Tab = (0, import_react21.forwardRef)(
1384
1415
  Tab.displayName = "Tabs.Tab";
1385
1416
 
1386
1417
  // src/tabs/tabs-content.tsx
1387
- var import_react22 = require("react");
1388
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1389
- var import_jsx_runtime25 = require("react/jsx-runtime");
1418
+ var import_react24 = require("react");
1419
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1420
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1390
1421
  function TabsContents(_a) {
1391
1422
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1392
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)("hds-tabs--contents") }, rest), { children }));
1423
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname27.clsx)("hds-tabs--contents") }, rest), { children }));
1393
1424
  }
1394
1425
  TabsContents.displayName = "Tabs.Contents";
1395
- var TabsContent = (0, import_react22.forwardRef)(
1426
+ var TabsContent = (0, import_react24.forwardRef)(
1396
1427
  (_a, ref) => {
1397
1428
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1398
- const context = (0, import_react22.useContext)(TabsContext);
1429
+ const context = (0, import_react24.useContext)(TabsContext);
1399
1430
  if (!context.mounted) {
1400
1431
  throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1401
1432
  }
1402
1433
  if (context.activeTabId === forTabId) {
1403
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1434
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1404
1435
  }
1405
1436
  return null;
1406
1437
  }
@@ -1415,27 +1446,27 @@ TabsComponent.Contents = TabsContents;
1415
1446
  TabsComponent.Content = TabsContent;
1416
1447
 
1417
1448
  // src/warning-banner/index.tsx
1418
- var import_fonts19 = require("@postenbring/hedwig-css/dist/fonts.css");
1419
- var import_tokens19 = require("@postenbring/hedwig-css/dist/tokens.css");
1420
- var import_body19 = require("@postenbring/hedwig-css/dist/body.css");
1449
+ var import_fonts21 = require("@postenbring/hedwig-css/dist/fonts.css");
1450
+ var import_tokens21 = require("@postenbring/hedwig-css/dist/tokens.css");
1451
+ var import_body21 = require("@postenbring/hedwig-css/dist/body.css");
1421
1452
  var import_warning_banner = require("@postenbring/hedwig-css/dist/warning-banner.css");
1422
1453
 
1423
1454
  // src/warning-banner/warning-banner.tsx
1424
- var import_react23 = require("react");
1425
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1426
- var import_jsx_runtime26 = require("react/jsx-runtime");
1427
- var WarningBanner = (0, import_react23.forwardRef)(
1455
+ var import_react25 = require("react");
1456
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1457
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1458
+ var WarningBanner = (0, import_react25.forwardRef)(
1428
1459
  (_a, ref) => {
1429
1460
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1430
1461
  const expandable = !!description;
1431
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname25.clsx)("hds-warning-banner", className), ref, children: [
1432
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1433
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(WarningBannerDescription, { children: description }) : null
1462
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname28.clsx)("hds-warning-banner", className), ref, children: [
1463
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1464
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(WarningBannerDescription, { children: description }) : null
1434
1465
  ] }));
1435
1466
  }
1436
1467
  );
1437
1468
  WarningBanner.displayName = "WarningBanner";
1438
- var WarningBannerTitle = (0, import_react23.forwardRef)(
1469
+ var WarningBannerTitle = (0, import_react25.forwardRef)(
1439
1470
  (_a, ref) => {
1440
1471
  var _b = _a, {
1441
1472
  variant,
@@ -1448,12 +1479,12 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1448
1479
  "children",
1449
1480
  "className"
1450
1481
  ]);
1451
- const [open, setOpen] = (0, import_react23.useState)(false);
1482
+ const [open, setOpen] = (0, import_react25.useState)(false);
1452
1483
  if (variant === "expandable") {
1453
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1484
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1454
1485
  Component,
1455
1486
  __spreadProps(__spreadValues({
1456
- className: (0, import_typed_classname25.clsx)(
1487
+ className: (0, import_typed_classname28.clsx)(
1457
1488
  "hds-warning-banner__title",
1458
1489
  "hds-warning-banner__title-trigger",
1459
1490
  { "hds-warning-banner--closed": !open },
@@ -1466,8 +1497,8 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1466
1497
  type: "button"
1467
1498
  }, rest), {
1468
1499
  children: [
1469
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children }),
1470
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: (0, import_typed_classname25.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1500
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children }),
1501
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: (0, import_typed_classname28.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1471
1502
  "svg",
1472
1503
  {
1473
1504
  fill: "none",
@@ -1475,17 +1506,17 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1475
1506
  viewBox: "0 0 24 24",
1476
1507
  width: "24",
1477
1508
  xmlns: "http://www.w3.org/2000/svg",
1478
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z" }) })
1509
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z" }) })
1479
1510
  }
1480
1511
  ) })
1481
1512
  ]
1482
1513
  })
1483
1514
  );
1484
1515
  }
1485
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1516
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1486
1517
  Component,
1487
1518
  __spreadProps(__spreadValues({
1488
- className: (0, import_typed_classname25.clsx)("hds-warning-banner__title", className),
1519
+ className: (0, import_typed_classname28.clsx)("hds-warning-banner__title", className),
1489
1520
  ref
1490
1521
  }, rest), {
1491
1522
  children
@@ -1494,13 +1525,13 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1494
1525
  }
1495
1526
  );
1496
1527
  WarningBannerTitle.displayName = "WarningBannerTitle";
1497
- var WarningBannerDescription = (0, import_react23.forwardRef)(
1528
+ var WarningBannerDescription = (0, import_react25.forwardRef)(
1498
1529
  (_a, ref) => {
1499
1530
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1500
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1531
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1501
1532
  Component,
1502
1533
  __spreadValues({
1503
- className: (0, import_typed_classname25.clsx)("hds-warning-banner__description", className),
1534
+ className: (0, import_typed_classname28.clsx)("hds-warning-banner__description", className),
1504
1535
  ref
1505
1536
  }, rest)
1506
1537
  );
@@ -1508,26 +1539,26 @@ var WarningBannerDescription = (0, import_react23.forwardRef)(
1508
1539
  );
1509
1540
  WarningBannerDescription.displayName = "WarningBannerDescription";
1510
1541
 
1511
- // src/prose/index.ts
1512
- var import_fonts20 = require("@postenbring/hedwig-css/dist/fonts.css");
1513
- var import_tokens20 = require("@postenbring/hedwig-css/dist/tokens.css");
1514
- var import_body20 = require("@postenbring/hedwig-css/dist/body.css");
1515
- var import_prose = require("@postenbring/hedwig-css/dist/prose.css");
1542
+ // src/styled-html/index.ts
1543
+ var import_fonts22 = require("@postenbring/hedwig-css/dist/fonts.css");
1544
+ var import_tokens22 = require("@postenbring/hedwig-css/dist/tokens.css");
1545
+ var import_body22 = require("@postenbring/hedwig-css/dist/body.css");
1546
+ var import_styled_html = require("@postenbring/hedwig-css/dist/styled-html.css");
1516
1547
 
1517
- // src/prose/prose.tsx
1518
- var import_react24 = require("react");
1519
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1520
- var import_jsx_runtime27 = require("react/jsx-runtime");
1521
- var Prose = (0, import_react24.forwardRef)(
1548
+ // src/styled-html/styled-html.tsx
1549
+ var import_react26 = require("react");
1550
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1551
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1552
+ var StyledHtml = (0, import_react26.forwardRef)(
1522
1553
  (_a, ref) => {
1523
1554
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
1524
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1555
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1525
1556
  Component,
1526
1557
  __spreadProps(__spreadValues({
1527
- className: (0, import_typed_classname26.clsx)(
1528
- `hds-prose`,
1529
- size === "small" && "hds-prose--small",
1530
- darkmode && "hds-prose--darkmode",
1558
+ className: (0, import_typed_classname29.clsx)(
1559
+ `hds-styled-html`,
1560
+ size === "small" && "hds-styled-html--small",
1561
+ darkmode && "hds-styled-html--darkmode",
1531
1562
  className
1532
1563
  ),
1533
1564
  ref
@@ -1537,7 +1568,7 @@ var Prose = (0, import_react24.forwardRef)(
1537
1568
  );
1538
1569
  }
1539
1570
  );
1540
- Prose.displayName = "Prose";
1571
+ StyledHtml.displayName = "Prose";
1541
1572
  // Annotate the CommonJS export names for ESM import in node:
1542
1573
  0 && (module.exports = {
1543
1574
  Accordion,
@@ -1545,6 +1576,7 @@ Prose.displayName = "Prose";
1545
1576
  Box,
1546
1577
  Breadcrumbs,
1547
1578
  Card,
1579
+ Checkbox,
1548
1580
  Container,
1549
1581
  DarkBadge,
1550
1582
  DescriptionList,
@@ -1556,9 +1588,10 @@ Prose.displayName = "Prose";
1556
1588
  Modal,
1557
1589
  OrderedList,
1558
1590
  PrimaryButton,
1559
- Prose,
1591
+ Radiobutton,
1560
1592
  SecondaryButton,
1561
1593
  Select,
1594
+ StyledHtml,
1562
1595
  Tabs,
1563
1596
  Textarea,
1564
1597
  UnorderedList,