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