@postenbring/hedwig-react 0.0.44 → 0.0.45

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 (96) hide show
  1. package/dist/{chunk-PF6PZIZS.mjs → chunk-4RAMNETH.mjs} +1 -1
  2. package/dist/{chunk-DOJ2ZKNV.mjs → chunk-5NWYVPBZ.mjs} +1 -1
  3. package/dist/chunk-67OMX7FP.mjs +5 -0
  4. package/dist/{chunk-2QZF65FK.mjs → chunk-6IJTNHP4.mjs} +5 -1
  5. package/dist/{chunk-K3BGDNWO.mjs → chunk-E55KF755.mjs} +2 -2
  6. package/dist/{chunk-6KVF3ELJ.mjs → chunk-HZMQWFYP.mjs} +2 -2
  7. package/dist/chunk-IAPRPJQO.mjs +30 -0
  8. package/dist/{chunk-QAYPCD5Z.mjs → chunk-JYEDLLKF.mjs} +21 -12
  9. package/dist/chunk-N5VPBR6T.mjs +129 -0
  10. package/dist/chunk-OKWNTFU5.mjs +5 -0
  11. package/dist/{chunk-SX37JSDS.mjs → chunk-OPW2JS5I.mjs} +1 -1
  12. package/dist/chunk-PPUNMHOX.mjs +0 -0
  13. package/dist/chunk-QMB26PCT.mjs +72 -0
  14. package/dist/{chunk-45BJGKVZ.mjs → chunk-S4F2KVFJ.mjs} +1 -1
  15. package/dist/{chunk-Y2KP4RF2.mjs → chunk-T4IRPRA6.mjs} +2 -2
  16. package/dist/form/error-message/error-message.d.mts +12 -0
  17. package/dist/form/error-message/error-message.d.ts +12 -0
  18. package/dist/form/error-message/error-message.js +66 -0
  19. package/dist/form/error-message/error-message.mjs +7 -0
  20. package/dist/form/error-message/index.d.mts +3 -0
  21. package/dist/form/error-message/index.d.ts +3 -0
  22. package/dist/form/error-message/index.js +72 -0
  23. package/dist/form/error-message/index.mjs +8 -0
  24. package/dist/form/fieldset/fieldset.d.mts +20 -0
  25. package/dist/form/fieldset/fieldset.d.ts +20 -0
  26. package/dist/{input-group/input-group.js → form/fieldset/fieldset.js} +65 -61
  27. package/dist/form/fieldset/fieldset.mjs +9 -0
  28. package/dist/form/fieldset/index.d.mts +2 -0
  29. package/dist/form/fieldset/index.d.ts +2 -0
  30. package/dist/form/fieldset/index.js +152 -0
  31. package/dist/form/fieldset/index.mjs +10 -0
  32. package/dist/form/index.d.mts +6 -0
  33. package/dist/form/index.d.ts +6 -0
  34. package/dist/form/index.js +375 -0
  35. package/dist/form/index.mjs +28 -0
  36. package/dist/{input/input.js → form/input/index.js} +70 -27
  37. package/dist/form/input/index.mjs +12 -0
  38. package/dist/{input/index.js → form/input/input.js} +60 -31
  39. package/dist/form/input/input.mjs +11 -0
  40. package/dist/form/input-group/index.d.mts +2 -0
  41. package/dist/form/input-group/index.d.ts +2 -0
  42. package/dist/{textarea/textarea.js → form/input-group/index.js} +60 -50
  43. package/dist/form/input-group/index.mjs +10 -0
  44. package/dist/{input-group → form/input-group}/input-group.d.mts +1 -7
  45. package/dist/{input-group → form/input-group}/input-group.d.ts +1 -7
  46. package/dist/{input-group/index.js → form/input-group/input-group.js} +51 -21
  47. package/dist/form/input-group/input-group.mjs +9 -0
  48. package/dist/{select/select.js → form/select/index.js} +70 -27
  49. package/dist/form/select/index.mjs +12 -0
  50. package/dist/{select/index.js → form/select/select.js} +60 -31
  51. package/dist/form/select/select.mjs +11 -0
  52. package/dist/form/textarea/index.js +217 -0
  53. package/dist/form/textarea/index.mjs +12 -0
  54. package/dist/{textarea/index.js → form/textarea/textarea.js} +60 -31
  55. package/dist/form/textarea/textarea.mjs +11 -0
  56. package/dist/index.d.mts +7 -6
  57. package/dist/index.d.ts +7 -6
  58. package/dist/index.js +412 -240
  59. package/dist/index.mjs +35 -27
  60. package/dist/list/description-list.d.mts +4 -4
  61. package/dist/list/description-list.d.ts +4 -4
  62. package/dist/list/index.mjs +3 -3
  63. package/dist/modal/index.d.mts +5 -2
  64. package/dist/modal/index.d.ts +5 -2
  65. package/dist/modal/index.js +71 -3
  66. package/dist/modal/index.mjs +2 -2
  67. package/dist/modal/modal.d.mts +20 -2
  68. package/dist/modal/modal.d.ts +20 -2
  69. package/dist/modal/modal.js +77 -5
  70. package/dist/modal/modal.mjs +9 -3
  71. package/dist/tabs/index.mjs +2 -2
  72. package/package.json +2 -2
  73. package/dist/chunk-OB6UNSKV.mjs +0 -60
  74. package/dist/input/index.mjs +0 -10
  75. package/dist/input/input.mjs +0 -9
  76. package/dist/input-group/index.d.mts +0 -2
  77. package/dist/input-group/index.d.ts +0 -2
  78. package/dist/input-group/index.mjs +0 -8
  79. package/dist/input-group/input-group.mjs +0 -7
  80. package/dist/select/index.mjs +0 -10
  81. package/dist/select/select.mjs +0 -9
  82. package/dist/textarea/index.mjs +0 -10
  83. package/dist/textarea/textarea.mjs +0 -9
  84. package/dist/{chunk-WUMZCEIJ.mjs → chunk-BSX4IA3X.mjs} +3 -3
  85. /package/dist/{input → form/input}/index.d.mts +0 -0
  86. /package/dist/{input → form/input}/index.d.ts +0 -0
  87. /package/dist/{input → form/input}/input.d.mts +0 -0
  88. /package/dist/{input → form/input}/input.d.ts +0 -0
  89. /package/dist/{select → form/select}/index.d.mts +0 -0
  90. /package/dist/{select → form/select}/index.d.ts +0 -0
  91. /package/dist/{select → form/select}/select.d.mts +0 -0
  92. /package/dist/{select → form/select}/select.d.ts +0 -0
  93. /package/dist/{textarea → form/textarea}/index.d.mts +0 -0
  94. /package/dist/{textarea → form/textarea}/index.d.ts +0 -0
  95. /package/dist/{textarea → form/textarea}/textarea.d.mts +0 -0
  96. /package/dist/{textarea → form/textarea}/textarea.d.ts +0 -0
package/dist/index.js CHANGED
@@ -67,6 +67,7 @@ __export(src_exports, {
67
67
  Container: () => Container,
68
68
  DarkBadge: () => DarkBadge,
69
69
  DescriptionList: () => DescriptionList,
70
+ Fieldset: () => Fieldset,
70
71
  Input: () => Input,
71
72
  Link: () => Link,
72
73
  LinkList: () => LinkList,
@@ -598,41 +599,138 @@ var CardComponent = Card;
598
599
  CardComponent.Media = CardMediaComponent;
599
600
  CardComponent.Body = CardBodyComponent;
600
601
 
601
- // src/input/index.tsx
602
+ // src/form/fieldset/index.tsx
602
603
  var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
603
604
  var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
604
605
  var import_body8 = require("@postenbring/hedwig-css/dist/body.css");
605
- var import_input = require("@postenbring/hedwig-css/dist/input.css");
606
- var import_input_group4 = require("@postenbring/hedwig-css/dist/input-group.css");
606
+ var import_fieldset = require("@postenbring/hedwig-css/dist/fieldset.css");
607
607
 
608
- // src/input/input.tsx
609
- var import_react10 = require("react");
608
+ // src/form/fieldset/fieldset.tsx
609
+ var import_react9 = require("react");
610
610
  var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
611
611
 
612
- // src/input-group/index.tsx
612
+ // src/form/error-message/index.tsx
613
613
  var import_fonts7 = require("@postenbring/hedwig-css/dist/fonts.css");
614
614
  var import_tokens7 = require("@postenbring/hedwig-css/dist/tokens.css");
615
615
  var import_body7 = require("@postenbring/hedwig-css/dist/body.css");
616
- var import_input_group = require("@postenbring/hedwig-css/dist/input-group.css");
616
+ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.css");
617
617
 
618
- // src/input-group/input-group.tsx
619
- var import_react9 = require("react");
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
- var InputGroup = (0, import_react9.forwardRef)(function InputGroup2(_a, ref) {
621
+ function ErrorMessage({
622
+ children,
623
+ id,
624
+ className,
625
+ _unstableAriaLiveOnErrorMessage
626
+ }) {
627
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
628
+ "div",
629
+ __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
630
+ "aria-live": "polite",
631
+ "aria-relevant": "additions removals"
632
+ }), {
633
+ className: (0, import_typed_classname10.clsx)("hds-error-message", className),
634
+ id,
635
+ children
636
+ })
637
+ );
638
+ }
639
+
640
+ // src/form/fieldset/fieldset.tsx
641
+ var import_jsx_runtime11 = require("react/jsx-runtime");
642
+ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
643
+ var _b = _a, {
644
+ className,
645
+ style,
646
+ errorMessage,
647
+ legendProps: _c = {}
648
+ } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
649
+ legend,
650
+ children,
651
+ _unstableAriaLiveOnErrorMessage = false
652
+ } = _e, rest = __objRest(_e, [
653
+ "className",
654
+ "style",
655
+ "errorMessage",
656
+ "legendProps",
657
+ "legend",
658
+ "children",
659
+ "_unstableAriaLiveOnErrorMessage"
660
+ ]);
661
+ const errorMessageId = (0, import_react9.useId)();
662
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
663
+ "fieldset",
664
+ __spreadProps(__spreadValues({
665
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
666
+ "aria-invalid": errorMessage ? true : void 0,
667
+ className: (0, import_typed_classname11.clsx)("hds-fieldset", className),
668
+ ref,
669
+ style
670
+ }, rest), {
671
+ children: [
672
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
673
+ "legend",
674
+ __spreadProps(__spreadValues({
675
+ className: (0, import_typed_classname11.clsx)(
676
+ "hds-fieldset__legend",
677
+ { [`hds-fieldset__legend--${legendSize}`]: legendSize },
678
+ legendClassName
679
+ )
680
+ }, legendProps), {
681
+ children: legend
682
+ })
683
+ ),
684
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-fieldset__input-wrapper"), children }),
685
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
686
+ ErrorMessage,
687
+ {
688
+ _unstableAriaLiveOnErrorMessage,
689
+ id: errorMessageId,
690
+ children: errorMessage
691
+ }
692
+ )
693
+ ]
694
+ })
695
+ );
696
+ });
697
+
698
+ // src/form/input/index.tsx
699
+ var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
700
+ var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
701
+ var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
702
+ var import_input = require("@postenbring/hedwig-css/dist/input.css");
703
+ var import_input_group4 = require("@postenbring/hedwig-css/dist/input-group.css");
704
+
705
+ // src/form/input/input.tsx
706
+ var import_react11 = require("react");
707
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
708
+
709
+ // src/form/input-group/index.tsx
710
+ var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
711
+ var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
712
+ var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
713
+ var import_input_group = require("@postenbring/hedwig-css/dist/input-group.css");
714
+
715
+ // src/form/input-group/input-group.tsx
716
+ var import_react10 = require("react");
717
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
718
+ var import_jsx_runtime12 = require("react/jsx-runtime");
719
+ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
623
720
  var _b = _a, {
624
721
  id,
625
722
  className,
626
723
  style,
627
724
  variant = "default",
628
725
  errorMessage,
629
- labelProps,
726
+ labelProps: _c = {}
727
+ } = _b, _d = _c, { className: labelClassName } = _d, labelProps = __objRest(_d, ["className"]), _e = _b, {
630
728
  label,
631
729
  disabled,
632
730
  readOnly,
633
731
  children,
634
732
  _unstableAriaLiveOnErrorMessage = false
635
- } = _b, rest = __objRest(_b, [
733
+ } = _e, rest = __objRest(_e, [
636
734
  "id",
637
735
  "className",
638
736
  "style",
@@ -645,25 +743,25 @@ var InputGroup = (0, import_react9.forwardRef)(function InputGroup2(_a, ref) {
645
743
  "children",
646
744
  "_unstableAriaLiveOnErrorMessage"
647
745
  ]);
648
- const errorMessageId = (0, import_react9.useId)();
649
- const inputId = (0, import_react9.useId)();
746
+ const errorMessageId = (0, import_react10.useId)();
747
+ const inputId = (0, import_react10.useId)();
650
748
  const renderInput = () => {
651
- const input = import_react9.Children.toArray(children)[0];
652
- if (!(0, import_react9.isValidElement)(input)) {
749
+ const input = import_react10.Children.toArray(children)[0];
750
+ if (!(0, import_react10.isValidElement)(input)) {
653
751
  return;
654
752
  }
655
- return (0, import_react9.cloneElement)(input, __spreadProps(__spreadValues({
753
+ return (0, import_react10.cloneElement)(input, __spreadProps(__spreadValues({
656
754
  "aria-describedby": errorMessage ? errorMessageId : void 0,
657
755
  "aria-invalid": errorMessage ? true : void 0,
658
756
  id: id || inputId
659
757
  }, input.props), {
660
- className: (0, import_typed_classname10.clsx)("hds-input-group__input", input.props.className)
758
+ className: (0, import_typed_classname12.clsx)("hds-input-group__input", input.props.className)
661
759
  }));
662
760
  };
663
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
761
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
664
762
  "div",
665
763
  __spreadProps(__spreadValues({
666
- className: (0, import_typed_classname10.clsx)(
764
+ className: (0, import_typed_classname12.clsx)(
667
765
  "hds-input-group",
668
766
  {
669
767
  [`hds-input-group--${variant}`]: variant,
@@ -675,35 +773,40 @@ var InputGroup = (0, import_react9.forwardRef)(function InputGroup2(_a, ref) {
675
773
  style
676
774
  }, rest), {
677
775
  children: [
678
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input-group__label" }, labelProps), { htmlFor: id || inputId, children: label })),
679
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
776
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
777
+ "label",
778
+ __spreadProps(__spreadValues({
779
+ className: (0, import_typed_classname12.clsx)("hds-input-group__label", labelClassName)
780
+ }, labelProps), {
781
+ htmlFor: id || inputId,
782
+ children: label
783
+ })
784
+ ),
785
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
680
786
  "div",
681
787
  {
682
- className: (0, import_typed_classname10.clsx)("hds-input-group__input-wrapper"),
788
+ className: (0, import_typed_classname12.clsx)("hds-input-group__input-wrapper"),
683
789
  "data-disabled": disabled,
684
790
  "data-readonly": readOnly,
685
791
  children: renderInput()
686
792
  }
687
793
  ),
688
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
689
- "div",
690
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
691
- "aria-live": "polite",
692
- "aria-relevant": "additions removals"
693
- }), {
694
- className: "hds-input-group__error-message",
794
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
795
+ ErrorMessage,
796
+ {
797
+ _unstableAriaLiveOnErrorMessage,
695
798
  id: errorMessageId,
696
- children: !!errorMessage && errorMessage
697
- })
799
+ children: errorMessage
800
+ }
698
801
  )
699
802
  ]
700
803
  })
701
804
  );
702
805
  });
703
806
 
704
- // src/input/input.tsx
705
- var import_jsx_runtime11 = require("react/jsx-runtime");
706
- var Input = (0, import_react10.forwardRef)(function Input2(_a, ref) {
807
+ // src/form/input/input.tsx
808
+ var import_jsx_runtime13 = require("react/jsx-runtime");
809
+ var Input = (0, import_react11.forwardRef)(function Input2(_a, ref) {
707
810
  var _b = _a, {
708
811
  className,
709
812
  variant,
@@ -727,11 +830,11 @@ var Input = (0, import_react10.forwardRef)(function Input2(_a, ref) {
727
830
  "readOnly",
728
831
  "_unstableAriaLiveOnErrorMessage"
729
832
  ]);
730
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
833
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
731
834
  InputGroup,
732
835
  {
733
836
  _unstableAriaLiveOnErrorMessage,
734
- className: (0, import_typed_classname11.clsx)("hds-input", className),
837
+ className: (0, import_typed_classname13.clsx)("hds-input", className),
735
838
  disabled,
736
839
  errorMessage,
737
840
  id,
@@ -740,29 +843,119 @@ var Input = (0, import_react10.forwardRef)(function Input2(_a, ref) {
740
843
  readOnly,
741
844
  style,
742
845
  variant,
743
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
846
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
744
847
  }
745
848
  );
746
849
  });
747
850
  Input.displayName = "Input";
748
851
 
852
+ // src/form/select/index.tsx
853
+ var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
854
+ var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
855
+ var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
856
+ var import_select = require("@postenbring/hedwig-css/dist/select.css");
857
+ var import_input_group6 = require("@postenbring/hedwig-css/dist/input-group.css");
858
+
859
+ // src/form/select/select.tsx
860
+ var import_react12 = require("react");
861
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
862
+ var import_jsx_runtime14 = require("react/jsx-runtime");
863
+ var Select = (0, import_react12.forwardRef)(function Select2(_a, ref) {
864
+ 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"]);
865
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
866
+ InputGroup,
867
+ {
868
+ className: (0, import_typed_classname14.clsx)("hds-select", className),
869
+ disabled,
870
+ errorMessage,
871
+ id,
872
+ label,
873
+ labelProps,
874
+ style,
875
+ variant,
876
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
877
+ }
878
+ );
879
+ });
880
+ Select.displayName = "Select";
881
+
882
+ // src/form/textarea/index.tsx
883
+ var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
884
+ var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
885
+ var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
886
+ var import_textarea = require("@postenbring/hedwig-css/dist/textarea.css");
887
+ var import_input_group8 = require("@postenbring/hedwig-css/dist/input-group.css");
888
+
889
+ // src/form/textarea/textarea.tsx
890
+ var import_react13 = require("react");
891
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
892
+ var import_jsx_runtime15 = require("react/jsx-runtime");
893
+ var Textarea = (0, import_react13.forwardRef)(function Textarea2(_a, ref) {
894
+ 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"]);
895
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
896
+ InputGroup,
897
+ {
898
+ className: (0, import_typed_classname15.clsx)("hds-textarea", className),
899
+ disabled,
900
+ errorMessage,
901
+ id,
902
+ label,
903
+ labelProps,
904
+ readOnly,
905
+ style,
906
+ variant,
907
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
908
+ }
909
+ );
910
+ });
911
+ Textarea.displayName = "Textarea";
912
+
913
+ // src/layout/index.tsx
914
+ var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
915
+ var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
916
+ var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
917
+ var import_container = require("@postenbring/hedwig-css/dist/container.css");
918
+
919
+ // src/layout/container/container.tsx
920
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
921
+ var import_react14 = require("react");
922
+ var import_jsx_runtime16 = require("react/jsx-runtime");
923
+ var Container = (0, import_react14.forwardRef)(
924
+ (_a, ref) => {
925
+ var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
926
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
927
+ Component,
928
+ __spreadProps(__spreadValues({}, rest), {
929
+ className: (0, import_typed_classname16.clsx)(
930
+ "hds-container",
931
+ { "hds-container--slim": variant === "slim" },
932
+ className
933
+ ),
934
+ ref,
935
+ children
936
+ })
937
+ );
938
+ }
939
+ );
940
+ Container.displayName = "Container";
941
+
749
942
  // src/link/index.tsx
750
- var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
751
- var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
752
- var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
943
+ var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
944
+ var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
945
+ var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
753
946
  var import_link = require("@postenbring/hedwig-css/dist/link.css");
754
947
 
755
948
  // src/link/link.tsx
756
- var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
757
- var import_react11 = require("react");
758
- var import_jsx_runtime12 = require("react/jsx-runtime");
759
- var Link = (0, import_react11.forwardRef)(
949
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
950
+ var import_react15 = require("react");
951
+ var import_jsx_runtime17 = require("react/jsx-runtime");
952
+ var Link = (0, import_react15.forwardRef)(
760
953
  (_a, ref) => {
761
954
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
762
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
955
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
763
956
  Component,
764
957
  __spreadProps(__spreadValues({
765
- className: (0, import_typed_classname12.clsx)(
958
+ className: (0, import_typed_classname17.clsx)(
766
959
  "hds-link",
767
960
  variant !== "underline" && `hds-link--${variant}`,
768
961
  size !== "medium" && `hds-link--${size}`,
@@ -778,15 +971,15 @@ var Link = (0, import_react11.forwardRef)(
778
971
  Link.displayName = "Link";
779
972
 
780
973
  // src/list/index.tsx
781
- var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
782
- var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
783
- var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
974
+ var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
975
+ var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
976
+ var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
784
977
  var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
785
978
  var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
786
979
 
787
980
  // src/list/description-list.tsx
788
- var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
789
- var import_jsx_runtime13 = require("react/jsx-runtime");
981
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
982
+ var import_jsx_runtime18 = require("react/jsx-runtime");
790
983
  function DescriptionList(_a) {
791
984
  var _b = _a, {
792
985
  variant = "vertical",
@@ -795,10 +988,10 @@ function DescriptionList(_a) {
795
988
  "variant",
796
989
  "className"
797
990
  ]);
798
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
991
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
799
992
  "dl",
800
993
  __spreadValues({
801
- className: (0, import_typed_classname13.clsx)(
994
+ className: (0, import_typed_classname18.clsx)(
802
995
  "hds-description-list",
803
996
  {
804
997
  "hds-description-list--horizontal": variant === "horizontal"
@@ -811,8 +1004,8 @@ function DescriptionList(_a) {
811
1004
  DescriptionList.displayName = "DescriptionList";
812
1005
 
813
1006
  // src/list/list.tsx
814
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
815
- var import_jsx_runtime14 = require("react/jsx-runtime");
1007
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1008
+ var import_jsx_runtime19 = require("react/jsx-runtime");
816
1009
  function BaseList(_a) {
817
1010
  var _b = _a, {
818
1011
  as: ListTag = "ul",
@@ -827,10 +1020,10 @@ function BaseList(_a) {
827
1020
  "size",
828
1021
  "className"
829
1022
  ]);
830
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1023
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
831
1024
  ListTag,
832
1025
  __spreadProps(__spreadValues({
833
- className: (0, import_typed_classname14.clsx)(
1026
+ className: (0, import_typed_classname19.clsx)(
834
1027
  "hds-list",
835
1028
  `hds-list--${size}`,
836
1029
  {
@@ -844,44 +1037,44 @@ function BaseList(_a) {
844
1037
  );
845
1038
  }
846
1039
  function UnorderedList(props) {
847
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1040
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
848
1041
  }
849
1042
  function OrderedList(props) {
850
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1043
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
851
1044
  }
852
1045
  BaseList.displayName = "BaseList";
853
1046
  OrderedList.displayName = "OrderedList";
854
1047
  UnorderedList.displayName = "UnorderedList";
855
1048
 
856
1049
  // src/list/link-list.tsx
857
- var import_jsx_runtime15 = require("react/jsx-runtime");
1050
+ var import_jsx_runtime20 = require("react/jsx-runtime");
858
1051
  function LinkList(props) {
859
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
1052
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
860
1053
  }
861
1054
  LinkList.displayName = "LinkList";
862
1055
 
863
1056
  // src/message/index.tsx
864
- var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
865
- var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
866
- var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
1057
+ var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1058
+ var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1059
+ var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
867
1060
  var import_box4 = require("@postenbring/hedwig-css/dist/box.css");
868
1061
  var import_message = require("@postenbring/hedwig-css/dist/message.css");
869
1062
 
870
1063
  // src/message/message.tsx
871
- var import_react12 = require("react");
872
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
873
- var import_jsx_runtime16 = require("react/jsx-runtime");
874
- var Message = (0, import_react12.forwardRef)(
1064
+ var import_react16 = require("react");
1065
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1066
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1067
+ var Message = (0, import_react16.forwardRef)(
875
1068
  (_a, ref) => {
876
1069
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
877
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1070
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
878
1071
  Box,
879
1072
  __spreadProps(__spreadValues({
880
- className: (0, import_typed_classname15.clsx)(`hds-message`, `hds-message--${variant}`, className),
1073
+ className: (0, import_typed_classname20.clsx)(`hds-message`, `hds-message--${variant}`, className),
881
1074
  ref
882
1075
  }, rest), {
883
1076
  children: [
884
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_typed_classname15.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1077
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: (0, import_typed_classname20.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
885
1078
  children
886
1079
  ]
887
1080
  })
@@ -889,26 +1082,26 @@ var Message = (0, import_react12.forwardRef)(
889
1082
  }
890
1083
  );
891
1084
  Message.displayName = "Message";
892
- var MessageTitle = (0, import_react12.forwardRef)(
1085
+ var MessageTitle = (0, import_react16.forwardRef)(
893
1086
  (_a, ref) => {
894
1087
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
895
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1088
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
896
1089
  Component,
897
1090
  __spreadValues({
898
- className: (0, import_typed_classname15.clsx)("hds-message__title", className),
1091
+ className: (0, import_typed_classname20.clsx)("hds-message__title", className),
899
1092
  ref
900
1093
  }, rest)
901
1094
  );
902
1095
  }
903
1096
  );
904
1097
  MessageTitle.displayName = "Message.Title";
905
- var MessageDescription = (0, import_react12.forwardRef)(
1098
+ var MessageDescription = (0, import_react16.forwardRef)(
906
1099
  (_a, ref) => {
907
1100
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
908
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1101
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
909
1102
  Component,
910
1103
  __spreadValues({
911
- className: (0, import_typed_classname15.clsx)("hds-message__description", className),
1104
+ className: (0, import_typed_classname20.clsx)("hds-message__description", className),
912
1105
  ref
913
1106
  }, rest)
914
1107
  );
@@ -922,19 +1115,19 @@ MessageComponent.Title = MessageTitle;
922
1115
  MessageComponent.Description = MessageDescription;
923
1116
 
924
1117
  // src/modal/index.tsx
925
- var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
926
- var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
927
- var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
1118
+ var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1119
+ var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1120
+ var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
928
1121
  var import_box6 = require("@postenbring/hedwig-css/dist/box.css");
929
1122
  var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
930
1123
 
931
1124
  // src/modal/modal.tsx
932
- var import_react14 = require("react");
933
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1125
+ var import_react18 = require("react");
1126
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
934
1127
 
935
1128
  // src/utils.ts
936
1129
  var React2 = __toESM(require("react"));
937
- var import_react13 = require("react");
1130
+ var import_react17 = require("react");
938
1131
  function useMergeRefs(refs) {
939
1132
  return React2.useMemo(() => {
940
1133
  if (refs.every((ref) => ref === null)) {
@@ -952,16 +1145,16 @@ function useMergeRefs(refs) {
952
1145
  }, refs);
953
1146
  }
954
1147
  function useResize(ref) {
955
- const [width, setWidth] = (0, import_react13.useState)(0);
956
- const [height, setHeight] = (0, import_react13.useState)(0);
957
- const handleResize = (0, import_react13.useCallback)(() => {
1148
+ const [width, setWidth] = (0, import_react17.useState)(0);
1149
+ const [height, setHeight] = (0, import_react17.useState)(0);
1150
+ const handleResize = (0, import_react17.useCallback)(() => {
958
1151
  var _a, _b, _c, _d;
959
1152
  if ((ref == null ? void 0 : ref.current) !== null) {
960
1153
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
961
1154
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
962
1155
  }
963
1156
  }, [ref]);
964
- (0, import_react13.useEffect)(() => {
1157
+ (0, import_react17.useEffect)(() => {
965
1158
  window.addEventListener("load", handleResize);
966
1159
  window.addEventListener("resize", handleResize);
967
1160
  return () => {
@@ -969,31 +1162,48 @@ function useResize(ref) {
969
1162
  window.removeEventListener("resize", handleResize);
970
1163
  };
971
1164
  }, [ref, handleResize]);
972
- (0, import_react13.useEffect)(() => {
1165
+ (0, import_react17.useEffect)(() => {
973
1166
  handleResize();
974
1167
  }, []);
975
1168
  return { width, height };
976
1169
  }
977
1170
 
978
1171
  // src/modal/modal.tsx
979
- var import_jsx_runtime17 = require("react/jsx-runtime");
980
- var Modal = (0, import_react14.forwardRef)(
1172
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1173
+ var Modal = (0, import_react18.forwardRef)(
981
1174
  (_a, ref) => {
982
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
983
- const modalRef = (0, import_react14.useRef)(null);
1175
+ var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1176
+ const modalRef = (0, import_react18.useRef)(null);
984
1177
  const mergedRef = useMergeRefs([modalRef, ref]);
985
- function onClose() {
1178
+ function onCloseButtonClick() {
986
1179
  var _a2;
987
1180
  (_a2 = modalRef.current) == null ? void 0 : _a2.close();
988
1181
  return false;
989
1182
  }
990
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1183
+ useScrollLock(modalRef, "hds-modal-scroll-lock");
1184
+ (0, import_react18.useEffect)(() => {
1185
+ if (modalRef.current && open !== void 0) {
1186
+ if (open && !modalRef.current.open) {
1187
+ modalRef.current.showModal();
1188
+ } else if (!open && modalRef.current.open) {
1189
+ modalRef.current.close();
1190
+ }
1191
+ }
1192
+ }, [modalRef, open]);
1193
+ function onDialogClick(e) {
1194
+ if (closeOnBackdropClick && e.target === modalRef.current) {
1195
+ modalRef.current.close();
1196
+ }
1197
+ onClick == null ? void 0 : onClick(e);
1198
+ }
1199
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
991
1200
  Box,
992
1201
  __spreadProps(__spreadValues({
993
1202
  as: "dialog",
994
- className: (0, import_typed_classname16.clsx)("hds-modal", className),
1203
+ className: (0, import_typed_classname21.clsx)("hds-modal", className),
995
1204
  closeable: true,
996
- onClose,
1205
+ onClick: onDialogClick,
1206
+ onClose: onCloseButtonClick,
997
1207
  ref: mergedRef,
998
1208
  variant: "white"
999
1209
  }, rest), {
@@ -1003,67 +1213,88 @@ var Modal = (0, import_react14.forwardRef)(
1003
1213
  }
1004
1214
  );
1005
1215
  Modal.displayName = "Modal";
1006
- var ModalHeader = (0, import_react14.forwardRef)(
1216
+ var ModalHeader = (0, import_react18.forwardRef)(
1007
1217
  (_a, ref) => {
1008
1218
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1009
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1219
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1010
1220
  Component,
1011
1221
  __spreadValues({
1012
- className: (0, import_typed_classname16.clsx)("hds-modal__header", className),
1222
+ className: (0, import_typed_classname21.clsx)("hds-modal__header", className),
1013
1223
  ref
1014
1224
  }, rest)
1015
1225
  );
1016
1226
  }
1017
1227
  );
1018
1228
  ModalHeader.displayName = "Modal.Header";
1229
+ var ModalContent = (0, import_react18.forwardRef)(
1230
+ (_a, ref) => {
1231
+ var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1232
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1233
+ Component,
1234
+ __spreadValues({
1235
+ className: (0, import_typed_classname21.clsx)("hds-modal__content", className),
1236
+ ref
1237
+ }, rest)
1238
+ );
1239
+ }
1240
+ );
1241
+ ModalContent.displayName = "Modal.Content";
1242
+ var ModalFooter = (0, import_react18.forwardRef)(
1243
+ (_a, ref) => {
1244
+ var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1245
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1246
+ Component,
1247
+ __spreadValues({
1248
+ className: (0, import_typed_classname21.clsx)("hds-modal__footer", className),
1249
+ ref
1250
+ }, rest)
1251
+ );
1252
+ }
1253
+ );
1254
+ ModalFooter.displayName = "Modal.Footer";
1255
+ function useScrollLock(modalRef, bodyClass) {
1256
+ (0, import_react18.useEffect)(() => {
1257
+ if (!modalRef.current)
1258
+ return;
1259
+ if (modalRef.current.open)
1260
+ document.body.classList.add(bodyClass);
1261
+ const observer = new MutationObserver(() => {
1262
+ var _a;
1263
+ if ((_a = modalRef.current) == null ? void 0 : _a.open)
1264
+ document.body.classList.add(bodyClass);
1265
+ else
1266
+ document.body.classList.remove(bodyClass);
1267
+ });
1268
+ observer.observe(modalRef.current, {
1269
+ attributes: true,
1270
+ attributeFilter: ["open"]
1271
+ });
1272
+ return () => {
1273
+ observer.disconnect();
1274
+ document.body.classList.remove(bodyClass);
1275
+ };
1276
+ }, [bodyClass, modalRef]);
1277
+ }
1019
1278
 
1020
1279
  // src/modal/index.tsx
1021
1280
  var ModalComponent = Modal;
1022
1281
  ModalComponent.Header = ModalHeader;
1023
-
1024
- // src/select/index.tsx
1025
- var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
1026
- var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
1027
- var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
1028
- var import_select = require("@postenbring/hedwig-css/dist/select.css");
1029
- var import_input_group6 = require("@postenbring/hedwig-css/dist/input-group.css");
1030
-
1031
- // src/select/select.tsx
1032
- var import_react15 = require("react");
1033
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1034
- var import_jsx_runtime18 = require("react/jsx-runtime");
1035
- var Select = (0, import_react15.forwardRef)(function Select2(_a, ref) {
1036
- 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"]);
1037
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1038
- InputGroup,
1039
- {
1040
- className: (0, import_typed_classname17.clsx)("hds-select", className),
1041
- disabled,
1042
- errorMessage,
1043
- id,
1044
- label,
1045
- labelProps,
1046
- style,
1047
- variant,
1048
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1049
- }
1050
- );
1051
- });
1052
- Select.displayName = "Select";
1282
+ ModalComponent.Content = ModalContent;
1283
+ ModalComponent.Footer = ModalFooter;
1053
1284
 
1054
1285
  // src/tabs/index.tsx
1055
- var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
1056
- var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
1057
- var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
1286
+ var import_fonts18 = require("@postenbring/hedwig-css/dist/fonts.css");
1287
+ var import_tokens18 = require("@postenbring/hedwig-css/dist/tokens.css");
1288
+ var import_body18 = require("@postenbring/hedwig-css/dist/body.css");
1058
1289
  var import_tabs = require("@postenbring/hedwig-css/dist/tabs.css");
1059
1290
 
1060
1291
  // src/tabs/tabs.tsx
1061
- var import_react17 = require("react");
1062
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1292
+ var import_react20 = require("react");
1293
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1063
1294
 
1064
1295
  // src/tabs/context.ts
1065
- var import_react16 = require("react");
1066
- var TabsContext = (0, import_react16.createContext)({
1296
+ var import_react19 = require("react");
1297
+ var TabsContext = (0, import_react19.createContext)({
1067
1298
  mounted: false,
1068
1299
  activeTabId: void 0,
1069
1300
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
@@ -1072,12 +1303,12 @@ var TabsContext = (0, import_react16.createContext)({
1072
1303
  });
1073
1304
 
1074
1305
  // src/tabs/tabs.tsx
1075
- var import_jsx_runtime19 = require("react/jsx-runtime");
1076
- var Tabs = (0, import_react17.forwardRef)(
1306
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1307
+ var Tabs = (0, import_react20.forwardRef)(
1077
1308
  (_a, ref) => {
1078
1309
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1079
- const [activeTabId, setActiveTabId] = (0, import_react17.useState)(defaultTab);
1080
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname18.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1310
+ const [activeTabId, setActiveTabId] = (0, import_react20.useState)(defaultTab);
1311
+ 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)(
1081
1312
  TabsContext.Provider,
1082
1313
  {
1083
1314
  value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
@@ -1089,19 +1320,19 @@ var Tabs = (0, import_react17.forwardRef)(
1089
1320
  Tabs.displayName = "Tabs";
1090
1321
 
1091
1322
  // src/tabs/tabs-list.tsx
1092
- var import_react18 = require("react");
1093
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1094
- var import_jsx_runtime20 = require("react/jsx-runtime");
1323
+ var import_react21 = require("react");
1324
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1325
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1095
1326
  function TabsList(_a) {
1096
1327
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1097
- const tabsListRef = (0, import_react18.useRef)(null);
1328
+ const tabsListRef = (0, import_react21.useRef)(null);
1098
1329
  const { width: tabsWidth } = useResize(tabsListRef);
1099
1330
  const { innerWidth } = window;
1100
1331
  const wideEnough = innerWidth >= tabsWidth;
1101
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1332
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1102
1333
  "div",
1103
1334
  __spreadProps(__spreadValues({
1104
- className: (0, import_typed_classname19.clsx)(
1335
+ className: (0, import_typed_classname23.clsx)(
1105
1336
  "hds-tabs--list",
1106
1337
  direction === "horizontal" ? {
1107
1338
  [`hds-tabs--list-horizontal`]: wideEnough,
@@ -1119,10 +1350,10 @@ function TabsList(_a) {
1119
1350
  );
1120
1351
  }
1121
1352
  TabsList.displayName = "Tabs.List";
1122
- var Tab = (0, import_react18.forwardRef)(
1353
+ var Tab = (0, import_react21.forwardRef)(
1123
1354
  (_a, ref) => {
1124
1355
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
1125
- const context = (0, import_react18.useContext)(TabsContext);
1356
+ const context = (0, import_react21.useContext)(TabsContext);
1126
1357
  if (!context.mounted) {
1127
1358
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1128
1359
  }
@@ -1131,10 +1362,10 @@ var Tab = (0, import_react18.forwardRef)(
1131
1362
  context.toggleActiveTabId(tabId);
1132
1363
  onClick && onClick(e);
1133
1364
  };
1134
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1365
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1135
1366
  Component,
1136
1367
  __spreadProps(__spreadValues({
1137
- className: (0, import_typed_classname19.clsx)(
1368
+ className: (0, import_typed_classname23.clsx)(
1138
1369
  "hds-tabs--tab",
1139
1370
  { "hds-tabs--tab-active": context.activeTabId === tabId },
1140
1371
  className
@@ -1152,23 +1383,23 @@ var Tab = (0, import_react18.forwardRef)(
1152
1383
  Tab.displayName = "Tabs.Tab";
1153
1384
 
1154
1385
  // src/tabs/tabs-content.tsx
1155
- var import_react19 = require("react");
1156
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1157
- var import_jsx_runtime21 = require("react/jsx-runtime");
1386
+ var import_react22 = require("react");
1387
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1388
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1158
1389
  function TabsContents(_a) {
1159
1390
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1160
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname20.clsx)("hds-tabs--contents") }, rest), { children }));
1391
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)("hds-tabs--contents") }, rest), { children }));
1161
1392
  }
1162
1393
  TabsContents.displayName = "Tabs.Contents";
1163
- var TabsContent = (0, import_react19.forwardRef)(
1394
+ var TabsContent = (0, import_react22.forwardRef)(
1164
1395
  (_a, ref) => {
1165
1396
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1166
- const context = (0, import_react19.useContext)(TabsContext);
1397
+ const context = (0, import_react22.useContext)(TabsContext);
1167
1398
  if (!context.mounted) {
1168
1399
  throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1169
1400
  }
1170
1401
  if (context.activeTabId === forTabId) {
1171
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1402
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1172
1403
  }
1173
1404
  return null;
1174
1405
  }
@@ -1182,59 +1413,28 @@ TabsComponent.Tab = Tab;
1182
1413
  TabsComponent.Contents = TabsContents;
1183
1414
  TabsComponent.Content = TabsContent;
1184
1415
 
1185
- // src/textarea/index.tsx
1186
- var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
1187
- var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
1188
- var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
1189
- var import_textarea = require("@postenbring/hedwig-css/dist/textarea.css");
1190
- var import_input_group8 = require("@postenbring/hedwig-css/dist/input-group.css");
1191
-
1192
- // src/textarea/textarea.tsx
1193
- var import_react20 = require("react");
1194
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1195
- var import_jsx_runtime22 = require("react/jsx-runtime");
1196
- var Textarea = (0, import_react20.forwardRef)(function Textarea2(_a, ref) {
1197
- 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"]);
1198
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1199
- InputGroup,
1200
- {
1201
- className: (0, import_typed_classname21.clsx)("hds-textarea", className),
1202
- disabled,
1203
- errorMessage,
1204
- id,
1205
- label,
1206
- labelProps,
1207
- readOnly,
1208
- style,
1209
- variant,
1210
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1211
- }
1212
- );
1213
- });
1214
- Textarea.displayName = "Textarea";
1215
-
1216
1416
  // src/warning-banner/index.tsx
1217
- var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1218
- var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1219
- var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1417
+ var import_fonts19 = require("@postenbring/hedwig-css/dist/fonts.css");
1418
+ var import_tokens19 = require("@postenbring/hedwig-css/dist/tokens.css");
1419
+ var import_body19 = require("@postenbring/hedwig-css/dist/body.css");
1220
1420
  var import_warning_banner = require("@postenbring/hedwig-css/dist/warning-banner.css");
1221
1421
 
1222
1422
  // src/warning-banner/warning-banner.tsx
1223
- var import_react21 = require("react");
1224
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1225
- var import_jsx_runtime23 = require("react/jsx-runtime");
1226
- var WarningBanner = (0, import_react21.forwardRef)(
1423
+ var import_react23 = require("react");
1424
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1425
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1426
+ var WarningBanner = (0, import_react23.forwardRef)(
1227
1427
  (_a, ref) => {
1228
1428
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1229
1429
  const expandable = !!description;
1230
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname22.clsx)("hds-warning-banner", className), ref, children: [
1231
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1232
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(WarningBannerDescription, { children: description }) : null
1430
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname25.clsx)("hds-warning-banner", className), ref, children: [
1431
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1432
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(WarningBannerDescription, { children: description }) : null
1233
1433
  ] }));
1234
1434
  }
1235
1435
  );
1236
1436
  WarningBanner.displayName = "WarningBanner";
1237
- var WarningBannerTitle = (0, import_react21.forwardRef)(
1437
+ var WarningBannerTitle = (0, import_react23.forwardRef)(
1238
1438
  (_a, ref) => {
1239
1439
  var _b = _a, {
1240
1440
  variant,
@@ -1247,12 +1447,12 @@ var WarningBannerTitle = (0, import_react21.forwardRef)(
1247
1447
  "children",
1248
1448
  "className"
1249
1449
  ]);
1250
- const [open, setOpen] = (0, import_react21.useState)(false);
1450
+ const [open, setOpen] = (0, import_react23.useState)(false);
1251
1451
  if (variant === "expandable") {
1252
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1452
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1253
1453
  Component,
1254
1454
  __spreadProps(__spreadValues({
1255
- className: (0, import_typed_classname22.clsx)(
1455
+ className: (0, import_typed_classname25.clsx)(
1256
1456
  "hds-warning-banner__title",
1257
1457
  "hds-warning-banner__title-trigger",
1258
1458
  { "hds-warning-banner--closed": !open },
@@ -1265,8 +1465,8 @@ var WarningBannerTitle = (0, import_react21.forwardRef)(
1265
1465
  type: "button"
1266
1466
  }, rest), {
1267
1467
  children: [
1268
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children }),
1269
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: (0, import_typed_classname22.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1468
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children }),
1469
+ /* @__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)(
1270
1470
  "svg",
1271
1471
  {
1272
1472
  fill: "none",
@@ -1274,17 +1474,17 @@ var WarningBannerTitle = (0, import_react21.forwardRef)(
1274
1474
  viewBox: "0 0 24 24",
1275
1475
  width: "24",
1276
1476
  xmlns: "http://www.w3.org/2000/svg",
1277
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime23.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" }) })
1477
+ 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" }) })
1278
1478
  }
1279
1479
  ) })
1280
1480
  ]
1281
1481
  })
1282
1482
  );
1283
1483
  }
1284
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1484
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1285
1485
  Component,
1286
1486
  __spreadProps(__spreadValues({
1287
- className: (0, import_typed_classname22.clsx)("hds-warning-banner__title", className),
1487
+ className: (0, import_typed_classname25.clsx)("hds-warning-banner__title", className),
1288
1488
  ref
1289
1489
  }, rest), {
1290
1490
  children
@@ -1293,48 +1493,19 @@ var WarningBannerTitle = (0, import_react21.forwardRef)(
1293
1493
  }
1294
1494
  );
1295
1495
  WarningBannerTitle.displayName = "WarningBannerTitle";
1296
- var WarningBannerDescription = (0, import_react21.forwardRef)(
1496
+ var WarningBannerDescription = (0, import_react23.forwardRef)(
1297
1497
  (_a, ref) => {
1298
1498
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1299
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1499
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1300
1500
  Component,
1301
1501
  __spreadValues({
1302
- className: (0, import_typed_classname22.clsx)("hds-warning-banner__description", className),
1502
+ className: (0, import_typed_classname25.clsx)("hds-warning-banner__description", className),
1303
1503
  ref
1304
1504
  }, rest)
1305
1505
  );
1306
1506
  }
1307
1507
  );
1308
1508
  WarningBannerDescription.displayName = "WarningBannerDescription";
1309
-
1310
- // src/layout/index.tsx
1311
- var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1312
- var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1313
- var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
1314
- var import_container = require("@postenbring/hedwig-css/dist/container.css");
1315
-
1316
- // src/layout/container/container.tsx
1317
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1318
- var import_react22 = require("react");
1319
- var import_jsx_runtime24 = require("react/jsx-runtime");
1320
- var Container = (0, import_react22.forwardRef)(
1321
- (_a, ref) => {
1322
- var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
1323
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1324
- Component,
1325
- __spreadProps(__spreadValues({}, rest), {
1326
- className: (0, import_typed_classname23.clsx)(
1327
- "hds-container",
1328
- { "hds-container--slim": variant === "slim" },
1329
- className
1330
- ),
1331
- ref,
1332
- children
1333
- })
1334
- );
1335
- }
1336
- );
1337
- Container.displayName = "Container";
1338
1509
  // Annotate the CommonJS export names for ESM import in node:
1339
1510
  0 && (module.exports = {
1340
1511
  Accordion,
@@ -1345,6 +1516,7 @@ Container.displayName = "Container";
1345
1516
  Container,
1346
1517
  DarkBadge,
1347
1518
  DescriptionList,
1519
+ Fieldset,
1348
1520
  Input,
1349
1521
  Link,
1350
1522
  LinkList,