@postenbring/hedwig-react 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/accordion/accordion-content.d.ts.map +1 -1
  2. package/dist/accordion/accordion-content.js +0 -1
  3. package/dist/accordion/accordion-content.js.map +1 -1
  4. package/dist/accordion/accordion-content.mjs +1 -1
  5. package/dist/accordion/accordion.js +0 -1
  6. package/dist/accordion/accordion.js.map +1 -1
  7. package/dist/accordion/accordion.mjs +2 -2
  8. package/dist/accordion/index.js +0 -1
  9. package/dist/accordion/index.js.map +1 -1
  10. package/dist/accordion/index.mjs +2 -2
  11. package/dist/{chunk-JZXZYEPG.mjs → chunk-5FWY7FIX.mjs} +1 -2
  12. package/dist/chunk-5FWY7FIX.mjs.map +1 -0
  13. package/dist/{chunk-ROQH67YP.mjs → chunk-6DWIJEHQ.mjs} +2 -2
  14. package/dist/{chunk-6BXKRPR3.mjs → chunk-AXEAIXG7.mjs} +2 -2
  15. package/dist/{chunk-QRGGURVO.mjs → chunk-BO3EWZGA.mjs} +6 -4
  16. package/dist/chunk-BO3EWZGA.mjs.map +1 -0
  17. package/dist/{chunk-TWUAXAMR.mjs → chunk-BYFBK3J7.mjs} +1 -1
  18. package/dist/chunk-BYFBK3J7.mjs.map +1 -0
  19. package/dist/chunk-CKAL5ZJZ.mjs +45 -0
  20. package/dist/chunk-CKAL5ZJZ.mjs.map +1 -0
  21. package/dist/{chunk-CXX4SXJG.mjs → chunk-CKG2XRMX.mjs} +2 -2
  22. package/dist/{chunk-YS7HBWOI.mjs → chunk-E6OOFTRQ.mjs} +2 -2
  23. package/dist/{chunk-WUPLEZEY.mjs → chunk-GVO57ZWU.mjs} +2 -2
  24. package/dist/{chunk-UL2V2Z5B.mjs → chunk-HEDGKRGC.mjs} +3 -3
  25. package/dist/chunk-IJSEJZ3W.mjs +1 -0
  26. package/dist/{chunk-S3QSGJX2.mjs → chunk-ITLZQ47H.mjs} +2 -2
  27. package/dist/{chunk-NIYDN3Y3.mjs → chunk-JEAGKB4V.mjs} +2 -2
  28. package/dist/{chunk-Z2TMKU5V.mjs → chunk-KNGG6M2I.mjs} +5 -5
  29. package/dist/chunk-KPPLVGZ3.mjs +1 -0
  30. package/dist/chunk-KPPLVGZ3.mjs.map +1 -0
  31. package/dist/{chunk-CC5QWW52.mjs → chunk-LHIG6RW7.mjs} +2 -2
  32. package/dist/chunk-LHIG6RW7.mjs.map +1 -0
  33. package/dist/chunk-VU2GCAM4.mjs +81 -0
  34. package/dist/chunk-VU2GCAM4.mjs.map +1 -0
  35. package/dist/{chunk-5UGT7L7R.mjs → chunk-XZ43OSZ5.mjs} +5 -3
  36. package/dist/chunk-XZ43OSZ5.mjs.map +1 -0
  37. package/dist/{chunk-JQGB77SS.mjs → chunk-Z2ZPTZ6F.mjs} +5 -3
  38. package/dist/chunk-Z2ZPTZ6F.mjs.map +1 -0
  39. package/dist/footer/footer.js +0 -1
  40. package/dist/footer/footer.js.map +1 -1
  41. package/dist/footer/footer.mjs +3 -3
  42. package/dist/footer/index.js +0 -1
  43. package/dist/footer/index.js.map +1 -1
  44. package/dist/footer/index.mjs +3 -3
  45. package/dist/form/checkbox/checkbox.d.ts +2 -0
  46. package/dist/form/checkbox/checkbox.d.ts.map +1 -1
  47. package/dist/form/checkbox/checkbox.js +7 -3
  48. package/dist/form/checkbox/checkbox.js.map +1 -1
  49. package/dist/form/checkbox/checkbox.mjs +3 -3
  50. package/dist/form/checkbox/index.js +7 -3
  51. package/dist/form/checkbox/index.js.map +1 -1
  52. package/dist/form/checkbox/index.mjs +3 -3
  53. package/dist/form/date-picker/date-picker.js +4 -2
  54. package/dist/form/date-picker/date-picker.js.map +1 -1
  55. package/dist/form/date-picker/date-picker.mjs +3 -3
  56. package/dist/form/date-picker/index.js +4 -2
  57. package/dist/form/date-picker/index.js.map +1 -1
  58. package/dist/form/date-picker/index.mjs +3 -3
  59. package/dist/form/error-message/error-message.js +1 -1
  60. package/dist/form/error-message/error-message.js.map +1 -1
  61. package/dist/form/error-message/error-message.mjs +1 -1
  62. package/dist/form/error-message/index.js +1 -1
  63. package/dist/form/error-message/index.js.map +1 -1
  64. package/dist/form/error-message/index.mjs +1 -1
  65. package/dist/form/error-summary/error-summary.d.ts +65 -0
  66. package/dist/form/error-summary/error-summary.d.ts.map +1 -0
  67. package/dist/form/error-summary/error-summary.js +379 -0
  68. package/dist/form/error-summary/error-summary.js.map +1 -0
  69. package/dist/form/error-summary/error-summary.mjs +26 -0
  70. package/dist/form/error-summary/error-summary.mjs.map +1 -0
  71. package/dist/form/error-summary/focus.d.ts +9 -0
  72. package/dist/form/error-summary/focus.d.ts.map +1 -0
  73. package/dist/form/error-summary/focus.js +69 -0
  74. package/dist/form/error-summary/focus.js.map +1 -0
  75. package/dist/form/error-summary/focus.mjs +8 -0
  76. package/dist/form/error-summary/focus.mjs.map +1 -0
  77. package/dist/form/error-summary/index.d.ts +3 -0
  78. package/dist/form/error-summary/index.d.ts.map +1 -0
  79. package/dist/form/error-summary/index.js +375 -0
  80. package/dist/form/error-summary/index.js.map +1 -0
  81. package/dist/form/error-summary/index.mjs +21 -0
  82. package/dist/form/error-summary/index.mjs.map +1 -0
  83. package/dist/form/fieldset/fieldset.d.ts +2 -0
  84. package/dist/form/fieldset/fieldset.d.ts.map +1 -1
  85. package/dist/form/fieldset/fieldset.js +4 -2
  86. package/dist/form/fieldset/fieldset.js.map +1 -1
  87. package/dist/form/fieldset/fieldset.mjs +2 -2
  88. package/dist/form/fieldset/index.js +4 -2
  89. package/dist/form/fieldset/index.js.map +1 -1
  90. package/dist/form/fieldset/index.mjs +2 -2
  91. package/dist/form/index.d.ts +1 -0
  92. package/dist/form/index.d.ts.map +1 -1
  93. package/dist/form/index.js +333 -39
  94. package/dist/form/index.js.map +1 -1
  95. package/dist/form/index.mjs +29 -13
  96. package/dist/form/input/index.js +4 -2
  97. package/dist/form/input/index.js.map +1 -1
  98. package/dist/form/input/index.mjs +3 -3
  99. package/dist/form/input/input.js +4 -2
  100. package/dist/form/input/input.js.map +1 -1
  101. package/dist/form/input/input.mjs +3 -3
  102. package/dist/form/input-group/index.js +4 -2
  103. package/dist/form/input-group/index.js.map +1 -1
  104. package/dist/form/input-group/index.mjs +2 -2
  105. package/dist/form/input-group/input-group.d.ts +2 -0
  106. package/dist/form/input-group/input-group.d.ts.map +1 -1
  107. package/dist/form/input-group/input-group.js +4 -2
  108. package/dist/form/input-group/input-group.js.map +1 -1
  109. package/dist/form/input-group/input-group.mjs +2 -2
  110. package/dist/form/radio-button/index.js +4 -2
  111. package/dist/form/radio-button/index.js.map +1 -1
  112. package/dist/form/radio-button/index.mjs +4 -4
  113. package/dist/form/radio-button/radio-button.js +4 -2
  114. package/dist/form/radio-button/radio-button.js.map +1 -1
  115. package/dist/form/radio-button/radio-button.mjs +4 -4
  116. package/dist/form/radio-button/radio-group.js +4 -2
  117. package/dist/form/radio-button/radio-group.js.map +1 -1
  118. package/dist/form/radio-button/radio-group.mjs +3 -3
  119. package/dist/form/select/index.js +4 -2
  120. package/dist/form/select/index.js.map +1 -1
  121. package/dist/form/select/index.mjs +3 -3
  122. package/dist/form/select/select.js +4 -2
  123. package/dist/form/select/select.js.map +1 -1
  124. package/dist/form/select/select.mjs +3 -3
  125. package/dist/form/textarea/index.js +4 -2
  126. package/dist/form/textarea/index.js.map +1 -1
  127. package/dist/form/textarea/index.mjs +3 -3
  128. package/dist/form/textarea/textarea.js +4 -2
  129. package/dist/form/textarea/textarea.js.map +1 -1
  130. package/dist/form/textarea/textarea.mjs +3 -3
  131. package/dist/index.js +573 -474
  132. package/dist/index.js.map +1 -1
  133. package/dist/index.mjs +48 -42
  134. package/dist/layout/index.mjs +3 -3
  135. package/dist/message/index.js.map +1 -1
  136. package/dist/message/index.mjs +1 -1
  137. package/dist/message/message.d.ts +2 -2
  138. package/dist/message/message.d.ts.map +1 -1
  139. package/dist/message/message.js.map +1 -1
  140. package/dist/message/message.mjs +1 -1
  141. package/dist/tabs/index.mjs +5 -5
  142. package/dist/tabs/tabs.mjs +2 -2
  143. package/package.json +3 -3
  144. package/src/accordion/accordion-content.tsx +0 -1
  145. package/src/form/checkbox/checkbox.tsx +6 -2
  146. package/src/form/error-message/error-message.tsx +1 -1
  147. package/src/form/error-summary/error-summary.stories.tsx +29 -0
  148. package/src/form/error-summary/error-summary.tsx +151 -0
  149. package/src/form/error-summary/focus.ts +66 -0
  150. package/src/form/error-summary/index.tsx +2 -0
  151. package/src/form/fieldset/fieldset.tsx +6 -2
  152. package/src/form/index.tsx +1 -0
  153. package/src/form/input-group/input-group.tsx +6 -2
  154. package/src/message/message.tsx +2 -2
  155. package/dist/chunk-5UGT7L7R.mjs.map +0 -1
  156. package/dist/chunk-CC5QWW52.mjs.map +0 -1
  157. package/dist/chunk-JQGB77SS.mjs.map +0 -1
  158. package/dist/chunk-JZXZYEPG.mjs.map +0 -1
  159. package/dist/chunk-QRGGURVO.mjs.map +0 -1
  160. package/dist/chunk-TWUAXAMR.mjs.map +0 -1
  161. package/dist/chunk-XFKD6EEJ.mjs +0 -1
  162. /package/dist/{chunk-ROQH67YP.mjs.map → chunk-6DWIJEHQ.mjs.map} +0 -0
  163. /package/dist/{chunk-6BXKRPR3.mjs.map → chunk-AXEAIXG7.mjs.map} +0 -0
  164. /package/dist/{chunk-CXX4SXJG.mjs.map → chunk-CKG2XRMX.mjs.map} +0 -0
  165. /package/dist/{chunk-YS7HBWOI.mjs.map → chunk-E6OOFTRQ.mjs.map} +0 -0
  166. /package/dist/{chunk-WUPLEZEY.mjs.map → chunk-GVO57ZWU.mjs.map} +0 -0
  167. /package/dist/{chunk-UL2V2Z5B.mjs.map → chunk-HEDGKRGC.mjs.map} +0 -0
  168. /package/dist/{chunk-XFKD6EEJ.mjs.map → chunk-IJSEJZ3W.mjs.map} +0 -0
  169. /package/dist/{chunk-S3QSGJX2.mjs.map → chunk-ITLZQ47H.mjs.map} +0 -0
  170. /package/dist/{chunk-NIYDN3Y3.mjs.map → chunk-JEAGKB4V.mjs.map} +0 -0
  171. /package/dist/{chunk-Z2TMKU5V.mjs.map → chunk-KNGG6M2I.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -85,6 +85,7 @@ __export(src_exports, {
85
85
  DatePicker: () => DatePicker,
86
86
  DescriptionList: () => DescriptionList,
87
87
  ErrorMessage: () => ErrorMessage,
88
+ ErrorSummary: () => ErrorSummary,
88
89
  Fieldset: () => Fieldset,
89
90
  Figure: () => Figure,
90
91
  Footer: () => Footer,
@@ -235,7 +236,6 @@ var AccordionContent = (0, import_react4.forwardRef)(
235
236
  "div",
236
237
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
237
238
  id: context.contentId,
238
- "aria-hidden": !context.open,
239
239
  "data-state": context.open ? "open" : "closed"
240
240
  }, { inert: context.open ? void 0 : "true" }), {
241
241
  className: (0, import_typed_classname3.clsx)("hds-accordion-item-content", className),
@@ -652,7 +652,7 @@ var ErrorMessage = (0, import_react14.forwardRef)(
652
652
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
653
653
  "div",
654
654
  __spreadProps(__spreadValues({
655
- "aria-live": "assertive",
655
+ "aria-live": "polite",
656
656
  className: (0, import_typed_classname13.clsx)("hds-error-message", className),
657
657
  id,
658
658
  ref
@@ -675,6 +675,7 @@ var Fieldset = (0, import_react15.forwardRef)(function Fieldset2(_a, ref) {
675
675
  className,
676
676
  style,
677
677
  errorMessage,
678
+ errorMessageProps,
678
679
  legendProps: _c = {}
679
680
  } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
680
681
  legend,
@@ -683,6 +684,7 @@ var Fieldset = (0, import_react15.forwardRef)(function Fieldset2(_a, ref) {
683
684
  "className",
684
685
  "style",
685
686
  "errorMessage",
687
+ "errorMessageProps",
686
688
  "legendProps",
687
689
  "legend",
688
690
  "children"
@@ -711,7 +713,7 @@ var Fieldset = (0, import_react15.forwardRef)(function Fieldset2(_a, ref) {
711
713
  })
712
714
  ),
713
715
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
714
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
716
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
715
717
  ]
716
718
  })
717
719
  );
@@ -725,6 +727,7 @@ var Checkbox = (0, import_react16.forwardRef)(
725
727
  variant = "plain",
726
728
  hasError: hasErrorProp,
727
729
  errorMessage,
730
+ errorMessageProps,
728
731
  title,
729
732
  children,
730
733
  className
@@ -732,6 +735,7 @@ var Checkbox = (0, import_react16.forwardRef)(
732
735
  "variant",
733
736
  "hasError",
734
737
  "errorMessage",
738
+ "errorMessageProps",
735
739
  "title",
736
740
  "children",
737
741
  "className"
@@ -769,7 +773,7 @@ var Checkbox = (0, import_react16.forwardRef)(
769
773
  ]
770
774
  }
771
775
  ),
772
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
776
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
773
777
  ] });
774
778
  }
775
779
  );
@@ -790,6 +794,7 @@ var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
790
794
  style,
791
795
  variant = "default",
792
796
  errorMessage,
797
+ errorMessageProps,
793
798
  labelProps: _c = {}
794
799
  } = _b, _d = _c, { className: labelClassName } = _d, labelProps = __objRest(_d, ["className"]), _e = _b, {
795
800
  label,
@@ -802,6 +807,7 @@ var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
802
807
  "style",
803
808
  "variant",
804
809
  "errorMessage",
810
+ "errorMessageProps",
805
811
  "labelProps",
806
812
  "label",
807
813
  "disabled",
@@ -862,7 +868,7 @@ var InputGroup = (0, import_react17.forwardRef)(function InputGroup2(_a, ref) {
862
868
  children: renderInput()
863
869
  }
864
870
  ),
865
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
871
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
866
872
  ]
867
873
  })
868
874
  );
@@ -1015,16 +1021,342 @@ var DatePicker = (0, import_react19.forwardRef)(function DatePicker2(_a, ref) {
1015
1021
  });
1016
1022
  DatePicker.displayName = "DatePicker";
1017
1023
 
1018
- // src/form/input/input.tsx
1024
+ // src/form/error-summary/error-summary.tsx
1025
+ var import_react25 = require("react");
1026
+
1027
+ // src/message/message.tsx
1019
1028
  var import_react20 = require("react");
1020
1029
  var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1030
+ var import_react_slot7 = require("@radix-ui/react-slot");
1021
1031
  var import_jsx_runtime18 = require("react/jsx-runtime");
1022
- var Input = (0, import_react20.forwardRef)(function Input2(_a, ref) {
1032
+ var MessageTitle = (0, import_react20.forwardRef)(
1033
+ (_a, ref) => {
1034
+ var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1035
+ const Component = asChild ? import_react_slot7.Slot : "div";
1036
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1037
+ Component,
1038
+ __spreadValues({
1039
+ className: (0, import_typed_classname18.clsx)("hds-message__title", className),
1040
+ ref
1041
+ }, rest)
1042
+ );
1043
+ }
1044
+ );
1045
+ MessageTitle.displayName = "Message.Title";
1046
+ var MessageDescription = (0, import_react20.forwardRef)(
1047
+ (_a, ref) => {
1048
+ var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1049
+ const Component = asChild ? import_react_slot7.Slot : "div";
1050
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1051
+ Component,
1052
+ __spreadValues({
1053
+ className: (0, import_typed_classname18.clsx)("hds-message__description", className),
1054
+ ref
1055
+ }, rest)
1056
+ );
1057
+ }
1058
+ );
1059
+ MessageDescription.displayName = "Message.Description";
1060
+ var Message = (0, import_react20.forwardRef)(
1061
+ (_a, ref) => {
1062
+ var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1063
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1064
+ Box,
1065
+ __spreadProps(__spreadValues({
1066
+ className: (0, import_typed_classname18.clsx)(`hds-message`, `hds-message--${variant}`, className),
1067
+ ref
1068
+ }, rest), {
1069
+ children: [
1070
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: (0, import_typed_classname18.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1071
+ children
1072
+ ]
1073
+ })
1074
+ );
1075
+ }
1076
+ );
1077
+ Message.displayName = "Message";
1078
+ Message.Title = MessageTitle;
1079
+ Message.Description = MessageDescription;
1080
+
1081
+ // src/list/list.tsx
1082
+ var import_react21 = require("react");
1083
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1084
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1085
+ var UnorderedList = (0, import_react21.forwardRef)(
1086
+ (_a, ref) => {
1087
+ var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1088
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1089
+ "ul",
1090
+ __spreadValues({
1091
+ ref,
1092
+ className: (0, import_typed_classname19.clsx)("hds-list", `hds-list--${size}`, className)
1093
+ }, rest)
1094
+ );
1095
+ }
1096
+ );
1097
+ UnorderedList.displayName = "UnorderedList";
1098
+ var OrderedList = (0, import_react21.forwardRef)(
1099
+ (_a, ref) => {
1100
+ var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1101
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1102
+ "ol",
1103
+ __spreadValues({
1104
+ ref,
1105
+ className: (0, import_typed_classname19.clsx)("hds-list", `hds-list--${size}`, className)
1106
+ }, rest)
1107
+ );
1108
+ }
1109
+ );
1110
+ OrderedList.displayName = "OrderedList";
1111
+
1112
+ // src/list/link-list.tsx
1113
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1114
+ var import_react22 = require("react");
1115
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1116
+ var LinkList = (0, import_react22.forwardRef)(
1117
+ (_a, ref) => {
1118
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1119
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1120
+ UnorderedList,
1121
+ __spreadValues({
1122
+ ref,
1123
+ className: (0, import_typed_classname20.clsx)("hds-list--link-list", className)
1124
+ }, rest)
1125
+ );
1126
+ }
1127
+ );
1128
+ LinkList.displayName = "LinkList";
1129
+
1130
+ // src/link/link.tsx
1131
+ var React2 = require("react");
1132
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1133
+ var import_react23 = require("react");
1134
+ var import_react_slot8 = require("@radix-ui/react-slot");
1135
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1136
+ var Link = (0, import_react23.forwardRef)(
1137
+ (_a, ref) => {
1138
+ var _b = _a, { asChild, children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "className"]);
1139
+ const Component = asChild ? import_react_slot8.Slot : "a";
1140
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1141
+ Component,
1142
+ __spreadProps(__spreadValues({
1143
+ className: (0, import_typed_classname21.clsx)(
1144
+ "hds-link",
1145
+ variant !== "underline" && `hds-link--${variant}`,
1146
+ size !== "medium" && `hds-link--${size}`,
1147
+ className
1148
+ ),
1149
+ ref
1150
+ }, rest), {
1151
+ children
1152
+ })
1153
+ );
1154
+ }
1155
+ );
1156
+ Link.displayName = "Link";
1157
+
1158
+ // src/utils/auto-animate-height.tsx
1159
+ var import_react24 = require("react");
1160
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1161
+ var AutoAnimateHeight = (0, import_react24.forwardRef)(
1162
+ (_a, ref) => {
1163
+ var _b = _a, {
1164
+ children,
1165
+ style,
1166
+ animationDuration = "quick",
1167
+ animationEasing = "normal",
1168
+ onTransitionEnd
1169
+ } = _b, rest = __objRest(_b, [
1170
+ "children",
1171
+ "style",
1172
+ "animationDuration",
1173
+ "animationEasing",
1174
+ "onTransitionEnd"
1175
+ ]);
1176
+ var _a2, _b2;
1177
+ const rootRef = (0, import_react24.useRef)(null);
1178
+ const mergedRef = useMergeRefs([rootRef, ref]);
1179
+ const measurementRef = (0, import_react24.useRef)(null);
1180
+ const [height, setHeight] = (0, import_react24.useState)(
1181
+ void 0
1182
+ );
1183
+ const [clonedChildren, setClonedChildren] = (0, import_react24.useState)(
1184
+ () => (0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children }), {})
1185
+ );
1186
+ (0, import_react24.useEffect)(() => {
1187
+ var _a3;
1188
+ if (!rootRef.current) return;
1189
+ if (!measurementRef.current) return;
1190
+ if (document.body.scrollHeight === 0) return;
1191
+ const currentMeasurement = measurementRef.current;
1192
+ const { height: newHeight } = currentMeasurement.getBoundingClientRect();
1193
+ let previouslyObservedHeight = newHeight;
1194
+ const resizeObserver = new ResizeObserver(() => {
1195
+ const { height: resizedHeight } = currentMeasurement.getBoundingClientRect();
1196
+ if (resizedHeight === previouslyObservedHeight) return;
1197
+ previouslyObservedHeight = resizedHeight;
1198
+ setHeight({ height: resizedHeight, shouldAnimate: false });
1199
+ });
1200
+ resizeObserver.observe(currentMeasurement);
1201
+ setHeight({ height: newHeight, shouldAnimate: true });
1202
+ const nextClonedChildren = (0, import_react24.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children }), {});
1203
+ if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
1204
+ setClonedChildren(nextClonedChildren);
1205
+ return () => {
1206
+ resizeObserver.disconnect();
1207
+ };
1208
+ }
1209
+ const currentRoot = rootRef.current;
1210
+ function onTransitionEndHandler(e) {
1211
+ if (e.propertyName !== "height") return;
1212
+ setClonedChildren(nextClonedChildren);
1213
+ }
1214
+ currentRoot.addEventListener("transitionend", onTransitionEndHandler);
1215
+ return () => {
1216
+ resizeObserver.disconnect();
1217
+ currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
1218
+ };
1219
+ }, [children]);
1220
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1221
+ "div",
1222
+ __spreadProps(__spreadValues({
1223
+ ref: mergedRef,
1224
+ onTransitionEnd,
1225
+ style: __spreadValues({
1226
+ position: "relative",
1227
+ overflow: "hidden",
1228
+ height: (_b2 = height == null ? void 0 : height.height) != null ? _b2 : (_a2 = measurementRef.current) == null ? void 0 : _a2.getBoundingClientRect().height,
1229
+ transitionProperty: (height == null ? void 0 : height.shouldAnimate) ? "height" : "none",
1230
+ transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,
1231
+ transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`,
1232
+ willChange: "height"
1233
+ }, style)
1234
+ }, rest), {
1235
+ children: [
1236
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1237
+ "div",
1238
+ {
1239
+ "aria-hidden": true,
1240
+ ref: measurementRef,
1241
+ style: {
1242
+ position: "absolute",
1243
+ visibility: "hidden",
1244
+ pointerEvents: "none"
1245
+ },
1246
+ children
1247
+ }
1248
+ ),
1249
+ clonedChildren
1250
+ ]
1251
+ })
1252
+ );
1253
+ }
1254
+ );
1255
+ AutoAnimateHeight.displayName = "AutoAnimateHeight";
1256
+
1257
+ // src/form/error-summary/focus.ts
1258
+ function focusWithLegendOrLabelInViewport(id) {
1259
+ var _a;
1260
+ const input = document.getElementById(id);
1261
+ if (!input) {
1262
+ return false;
1263
+ }
1264
+ const legendOrLabel = (_a = maybeLegendForInput(input)) != null ? _a : labelForInput(input);
1265
+ if (!legendOrLabel) {
1266
+ return false;
1267
+ }
1268
+ legendOrLabel.scrollIntoView();
1269
+ input.focus({ preventScroll: true });
1270
+ return true;
1271
+ }
1272
+ function maybeLegendForInput(input) {
1273
+ const fieldset = input.closest("fieldset");
1274
+ if (!fieldset) {
1275
+ return null;
1276
+ }
1277
+ const legend = fieldset.querySelector("legend");
1278
+ if (!legend) {
1279
+ return null;
1280
+ }
1281
+ if (input instanceof HTMLInputElement && (input.type === "checkbox" || input.type === "radio")) {
1282
+ return legend;
1283
+ }
1284
+ const legendTop = legend.getBoundingClientRect().top;
1285
+ const inputRect = input.getBoundingClientRect();
1286
+ if (inputRect.height && window.innerHeight) {
1287
+ const inputBottom = inputRect.top + inputRect.height;
1288
+ if (inputBottom - legendTop < window.innerHeight / 2) {
1289
+ return legend;
1290
+ }
1291
+ }
1292
+ }
1293
+ function labelForInput(input) {
1294
+ var _a;
1295
+ return (_a = document.querySelector(`label[for='${input.getAttribute("id")}']`)) != null ? _a : input.closest("label");
1296
+ }
1297
+
1298
+ // src/form/error-summary/error-summary.tsx
1299
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1300
+ var ErrorSummaryHeading = (0, import_react25.forwardRef)((_a, ref) => {
1301
+ var _b = _a, { children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["children", "as", "autoFocus"]);
1302
+ const focusRef = (0, import_react25.useRef)(null);
1303
+ const mergedRef = useMergeRefs([focusRef, ref]);
1304
+ (0, import_react25.useEffect)(() => {
1305
+ setTimeout(() => {
1306
+ if (focusRef.current && autoFocus) {
1307
+ focusRef.current.focus();
1308
+ }
1309
+ });
1310
+ }, []);
1311
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Message.Title, __spreadProps(__spreadValues({ ref: mergedRef, tabIndex: -1, asChild: true }, rest), { children: Tag ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Tag, { children }) : children }));
1312
+ });
1313
+ ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1314
+ var ErrorSummaryList = (0, import_react25.forwardRef)(
1315
+ (_a, ref) => {
1316
+ var _b = _a, { children, style: _style, size = "small" } = _b, rest = __objRest(_b, ["children", "style", "size"]);
1317
+ const style = __spreadValues({
1318
+ // Match the link `solid` style, which black underline
1319
+ "--_hds-list-marker-color": "var(--hds-ui-colors-black)"
1320
+ }, _style);
1321
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Message.Description, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref, style }, rest), { children })) });
1322
+ }
1323
+ );
1324
+ ErrorSummaryList.displayName = "ErrorSummary.List";
1325
+ var ErrorSummaryItem = (0, import_react25.forwardRef)(
1326
+ (_a, ref) => {
1327
+ var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1328
+ function onClick(e) {
1329
+ var _a2;
1330
+ (_a2 = linkProps == null ? void 0 : linkProps.onClick) == null ? void 0 : _a2.call(linkProps, e);
1331
+ if (focusWithLegendOrLabelInViewport(href.replace("#", ""))) {
1332
+ e.preventDefault();
1333
+ }
1334
+ }
1335
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1336
+ }
1337
+ );
1338
+ ErrorSummaryItem.displayName = "ErrorSummary.Item";
1339
+ var ErrorSummary = (0, import_react25.forwardRef)(
1340
+ (_a, ref) => {
1341
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1342
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Message, __spreadProps(__spreadValues({ variant: "warning", ref }, rest), { children }));
1343
+ }
1344
+ );
1345
+ ErrorSummary.displayName = "ErrorSummary";
1346
+ ErrorSummary.Heading = ErrorSummaryHeading;
1347
+ ErrorSummary.List = ErrorSummaryList;
1348
+ ErrorSummary.Item = ErrorSummaryItem;
1349
+
1350
+ // src/form/input/input.tsx
1351
+ var import_react26 = require("react");
1352
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1353
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1354
+ var Input = (0, import_react26.forwardRef)(function Input2(_a, ref) {
1023
1355
  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"]);
1024
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1356
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1025
1357
  InputGroup,
1026
1358
  {
1027
- className: (0, import_typed_classname18.clsx)("hds-input", className),
1359
+ className: (0, import_typed_classname22.clsx)("hds-input", className),
1028
1360
  disabled,
1029
1361
  errorMessage,
1030
1362
  id,
@@ -1033,35 +1365,35 @@ var Input = (0, import_react20.forwardRef)(function Input2(_a, ref) {
1033
1365
  readOnly,
1034
1366
  style,
1035
1367
  variant,
1036
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1368
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1037
1369
  }
1038
1370
  );
1039
1371
  });
1040
1372
  Input.displayName = "Input";
1041
1373
 
1042
1374
  // src/form/radio-button/radio-button.tsx
1043
- var import_react22 = require("react");
1044
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1375
+ var import_react28 = require("react");
1376
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1045
1377
 
1046
1378
  // src/form/radio-button/radio-group.tsx
1047
- var import_react21 = require("react");
1048
- var import_jsx_runtime19 = require("react/jsx-runtime");
1049
- var RadioGroupContext = (0, import_react21.createContext)({
1379
+ var import_react27 = require("react");
1380
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1381
+ var RadioGroupContext = (0, import_react27.createContext)({
1050
1382
  name: void 0,
1051
1383
  hasError: false,
1052
1384
  onChange: () => {
1053
1385
  return void 0;
1054
1386
  }
1055
1387
  });
1056
- var useRadioGroupContext = () => (0, import_react21.useContext)(RadioGroupContext);
1057
- var RadioGroup = (0, import_react21.forwardRef)(function RadioGroup2(_a, ref) {
1388
+ var useRadioGroupContext = () => (0, import_react27.useContext)(RadioGroupContext);
1389
+ var RadioGroup = (0, import_react27.forwardRef)(function RadioGroup2(_a, ref) {
1058
1390
  var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1059
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1391
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1060
1392
  });
1061
1393
  RadioGroup.displayName = "RadioGroup";
1062
1394
 
1063
1395
  // src/form/radio-button/radio-button.tsx
1064
- var import_jsx_runtime20 = require("react/jsx-runtime");
1396
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1065
1397
  var isChecked = ({
1066
1398
  checked,
1067
1399
  selectedValue,
@@ -1071,7 +1403,7 @@ var isChecked = ({
1071
1403
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1072
1404
  return void 0;
1073
1405
  };
1074
- var RadioButton = (0, import_react22.forwardRef)(
1406
+ var RadioButton = (0, import_react28.forwardRef)(
1075
1407
  (_a, ref) => {
1076
1408
  var _b = _a, {
1077
1409
  checked,
@@ -1099,10 +1431,10 @@ var RadioButton = (0, import_react22.forwardRef)(
1099
1431
  ]);
1100
1432
  const { hasError: hasFieldsetError } = useFieldsetContext();
1101
1433
  const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
1102
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1434
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1103
1435
  "div",
1104
1436
  {
1105
- className: (0, import_typed_classname19.clsx)(
1437
+ className: (0, import_typed_classname23.clsx)(
1106
1438
  "hds-radio-button",
1107
1439
  {
1108
1440
  [`hds-radio-button--${variant}`]: variant === "bounding-box",
@@ -1111,8 +1443,8 @@ var RadioButton = (0, import_react22.forwardRef)(
1111
1443
  className
1112
1444
  ),
1113
1445
  children: [
1114
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { children: [
1115
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1446
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { children: [
1447
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1116
1448
  "input",
1117
1449
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1118
1450
  checked: isChecked({ checked, selectedValue, value }),
@@ -1121,8 +1453,8 @@ var RadioButton = (0, import_react22.forwardRef)(
1121
1453
  type: "radio"
1122
1454
  })
1123
1455
  ),
1124
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1125
- title ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1456
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1457
+ title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1126
1458
  ] }),
1127
1459
  title ? children : null
1128
1460
  ]
@@ -1133,15 +1465,15 @@ var RadioButton = (0, import_react22.forwardRef)(
1133
1465
  RadioButton.displayName = "RadioButton";
1134
1466
 
1135
1467
  // src/form/select/select.tsx
1136
- var import_react23 = require("react");
1137
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1138
- var import_jsx_runtime21 = require("react/jsx-runtime");
1139
- var Select = (0, import_react23.forwardRef)(function Select2(_a, ref) {
1468
+ var import_react29 = require("react");
1469
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1470
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1471
+ var Select = (0, import_react29.forwardRef)(function Select2(_a, ref) {
1140
1472
  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"]);
1141
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1473
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1142
1474
  InputGroup,
1143
1475
  {
1144
- className: (0, import_typed_classname20.clsx)("hds-select", className),
1476
+ className: (0, import_typed_classname24.clsx)("hds-select", className),
1145
1477
  disabled,
1146
1478
  errorMessage,
1147
1479
  id,
@@ -1149,22 +1481,22 @@ var Select = (0, import_react23.forwardRef)(function Select2(_a, ref) {
1149
1481
  labelProps,
1150
1482
  style,
1151
1483
  variant,
1152
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1484
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1153
1485
  }
1154
1486
  );
1155
1487
  });
1156
1488
  Select.displayName = "Select";
1157
1489
 
1158
1490
  // src/form/textarea/textarea.tsx
1159
- var import_react24 = require("react");
1160
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1161
- var import_jsx_runtime22 = require("react/jsx-runtime");
1162
- var Textarea = (0, import_react24.forwardRef)(function Textarea2(_a, ref) {
1491
+ var import_react30 = require("react");
1492
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1493
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1494
+ var Textarea = (0, import_react30.forwardRef)(function Textarea2(_a, ref) {
1163
1495
  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"]);
1164
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1496
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1165
1497
  InputGroup,
1166
1498
  {
1167
- className: (0, import_typed_classname21.clsx)("hds-textarea", className),
1499
+ className: (0, import_typed_classname25.clsx)("hds-textarea", className),
1168
1500
  disabled,
1169
1501
  errorMessage,
1170
1502
  id,
@@ -1173,93 +1505,40 @@ var Textarea = (0, import_react24.forwardRef)(function Textarea2(_a, ref) {
1173
1505
  readOnly,
1174
1506
  style,
1175
1507
  variant,
1176
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1508
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1177
1509
  }
1178
1510
  );
1179
1511
  });
1180
1512
  Textarea.displayName = "Textarea";
1181
1513
 
1182
1514
  // src/footer/footer.tsx
1183
- var import_react27 = require("react");
1184
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1185
- var import_react_slot7 = require("@radix-ui/react-slot");
1186
-
1187
- // src/list/link-list.tsx
1188
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1189
- var import_react26 = require("react");
1190
-
1191
- // src/list/list.tsx
1192
- var import_react25 = require("react");
1193
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1194
- var import_jsx_runtime23 = require("react/jsx-runtime");
1195
- var UnorderedList = (0, import_react25.forwardRef)(
1196
- (_a, ref) => {
1197
- var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1198
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1199
- "ul",
1200
- __spreadValues({
1201
- ref,
1202
- className: (0, import_typed_classname22.clsx)("hds-list", `hds-list--${size}`, className)
1203
- }, rest)
1204
- );
1205
- }
1206
- );
1207
- UnorderedList.displayName = "UnorderedList";
1208
- var OrderedList = (0, import_react25.forwardRef)(
1209
- (_a, ref) => {
1210
- var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1211
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1212
- "ol",
1213
- __spreadValues({
1214
- ref,
1215
- className: (0, import_typed_classname22.clsx)("hds-list", `hds-list--${size}`, className)
1216
- }, rest)
1217
- );
1218
- }
1219
- );
1220
- OrderedList.displayName = "OrderedList";
1221
-
1222
- // src/list/link-list.tsx
1223
- var import_jsx_runtime24 = require("react/jsx-runtime");
1224
- var LinkList = (0, import_react26.forwardRef)(
1225
- (_a, ref) => {
1226
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1227
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1228
- UnorderedList,
1229
- __spreadValues({
1230
- ref,
1231
- className: (0, import_typed_classname23.clsx)("hds-list--link-list", className)
1232
- }, rest)
1233
- );
1234
- }
1235
- );
1236
- LinkList.displayName = "LinkList";
1237
-
1238
- // src/footer/footer.tsx
1239
- var import_jsx_runtime25 = require("react/jsx-runtime");
1240
- var FooterLogo = (0, import_react27.forwardRef)(
1515
+ var import_react31 = require("react");
1516
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1517
+ var import_react_slot9 = require("@radix-ui/react-slot");
1518
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1519
+ var FooterLogo = (0, import_react31.forwardRef)(
1241
1520
  (_a, ref) => {
1242
1521
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1243
- const Component = asChild ? import_react_slot7.Slot : "div";
1244
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1522
+ const Component = asChild ? import_react_slot9.Slot : "div";
1523
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname26.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1245
1524
  }
1246
1525
  );
1247
1526
  FooterLogo.displayName = "Footer.Logo";
1248
- var FooterButtonLink = (0, import_react27.forwardRef)(
1527
+ var FooterButtonLink = (0, import_react31.forwardRef)(
1249
1528
  (_a, ref) => {
1250
1529
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1251
- const Component = asChild ? import_react_slot7.Slot : "a";
1252
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button, { asChild: true, variant: "primary-outline", className: (0, import_typed_classname24.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1530
+ const Component = asChild ? import_react_slot9.Slot : "a";
1531
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { asChild: true, variant: "primary-outline", className: (0, import_typed_classname26.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1253
1532
  }
1254
1533
  );
1255
1534
  FooterButtonLink.displayName = "FooterButton";
1256
- var FooterLinkSections = (0, import_react27.forwardRef)(
1535
+ var FooterLinkSections = (0, import_react31.forwardRef)(
1257
1536
  (_a, ref) => {
1258
1537
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1259
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1538
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1260
1539
  Accordion,
1261
1540
  __spreadProps(__spreadValues({
1262
- className: (0, import_typed_classname24.clsx)("hds-footer__link-sections", className),
1541
+ className: (0, import_typed_classname26.clsx)("hds-footer__link-sections", className),
1263
1542
  ref
1264
1543
  }, rest), {
1265
1544
  children
@@ -1268,39 +1547,39 @@ var FooterLinkSections = (0, import_react27.forwardRef)(
1268
1547
  }
1269
1548
  );
1270
1549
  FooterLinkSections.displayName = "Footer.LinkSections";
1271
- var FooterLinkSection = (0, import_react27.forwardRef)(
1550
+ var FooterLinkSection = (0, import_react31.forwardRef)(
1272
1551
  (_a, ref) => {
1273
1552
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1274
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(LinkList, { children });
1275
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1276
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1553
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(LinkList, { children });
1554
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1555
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1277
1556
  Accordion.Item,
1278
1557
  __spreadProps(__spreadValues({
1279
- className: (0, import_typed_classname24.clsx)(`hds-footer__link-section`, className),
1558
+ className: (0, import_typed_classname26.clsx)(`hds-footer__link-section`, className),
1280
1559
  ref
1281
1560
  }, rest), {
1282
1561
  children: [
1283
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Accordion.Header, { children: heading }),
1284
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Accordion.Content, { children: linkListChildren })
1562
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Accordion.Header, { children: heading }),
1563
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Accordion.Content, { children: linkListChildren })
1285
1564
  ]
1286
1565
  })
1287
1566
  ),
1288
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: (0, import_typed_classname24.clsx)(`hds-footer__link-section`, className), children: [
1289
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("h2", { children: heading }),
1567
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: (0, import_typed_classname26.clsx)(`hds-footer__link-section`, className), children: [
1568
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h2", { children: heading }),
1290
1569
  linkListChildren
1291
1570
  ] })
1292
1571
  ] });
1293
1572
  }
1294
1573
  );
1295
1574
  FooterLinkSection.displayName = "Footer.LinkSection";
1296
- var Footer = (0, import_react27.forwardRef)(
1575
+ var Footer = (0, import_react31.forwardRef)(
1297
1576
  (_a, ref) => {
1298
1577
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1299
- const Component = asChild ? import_react_slot7.Slot : "footer";
1300
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1578
+ const Component = asChild ? import_react_slot9.Slot : "footer";
1579
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1301
1580
  Component,
1302
1581
  __spreadProps(__spreadValues({
1303
- className: (0, import_typed_classname24.clsx)(
1582
+ className: (0, import_typed_classname26.clsx)(
1304
1583
  `hds-footer`,
1305
1584
  variant === "slim" && "hds-footer--slim",
1306
1585
  className
@@ -1320,10 +1599,10 @@ Footer.LinkSection = FooterLinkSection;
1320
1599
 
1321
1600
  // src/help-text/help-text.tsx
1322
1601
  var Popover = __toESM(require("@radix-ui/react-popover"));
1323
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1324
- var import_react28 = require("react");
1325
- var import_jsx_runtime26 = require("react/jsx-runtime");
1326
- var HelpText = (0, import_react28.forwardRef)(
1602
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1603
+ var import_react32 = require("react");
1604
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1605
+ var HelpText = (0, import_react32.forwardRef)(
1327
1606
  (_a, ref) => {
1328
1607
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1329
1608
  return (
@@ -1331,24 +1610,24 @@ var HelpText = (0, import_react28.forwardRef)(
1331
1610
  // In the future we can use the native popover api, but as of writing, though all browsers support it
1332
1611
  // it's not far enough back to be used in production
1333
1612
  // https://caniuse.com/mdn-html_elements_input_popovertarget
1334
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Popover.Root, { children: [
1335
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1613
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Popover.Root, { children: [
1614
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1336
1615
  "button",
1337
1616
  __spreadProps(__spreadValues({
1338
1617
  ref,
1339
- className: (0, import_typed_classname25.clsx)("hds-help-text-button", className),
1618
+ className: (0, import_typed_classname27.clsx)("hds-help-text-button", className),
1340
1619
  title,
1341
1620
  type: "button"
1342
1621
  }, rest), {
1343
1622
  children
1344
1623
  })
1345
1624
  ) }),
1346
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1625
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1347
1626
  Box,
1348
1627
  __spreadProps(__spreadValues({}, boxProps), {
1349
- className: (0, import_typed_classname25.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1628
+ className: (0, import_typed_classname27.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1350
1629
  children: [
1351
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Box.CloseButton, {}) }),
1630
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Box.CloseButton, {}) }),
1352
1631
  helpText
1353
1632
  ]
1354
1633
  })
@@ -1360,18 +1639,18 @@ var HelpText = (0, import_react28.forwardRef)(
1360
1639
  HelpText.displayName = "HelpText";
1361
1640
 
1362
1641
  // src/layout/container/container.tsx
1363
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1364
- var import_react_slot8 = require("@radix-ui/react-slot");
1365
- var import_react29 = require("react");
1366
- var import_jsx_runtime27 = require("react/jsx-runtime");
1367
- var Container = (0, import_react29.forwardRef)(
1642
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1643
+ var import_react_slot10 = require("@radix-ui/react-slot");
1644
+ var import_react33 = require("react");
1645
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1646
+ var Container = (0, import_react33.forwardRef)(
1368
1647
  (_a, ref) => {
1369
1648
  var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
1370
- const Component = asChild ? import_react_slot8.Slot : Tag;
1371
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1649
+ const Component = asChild ? import_react_slot10.Slot : Tag;
1650
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1372
1651
  Component,
1373
1652
  __spreadProps(__spreadValues({}, rest), {
1374
- className: (0, import_typed_classname26.clsx)(
1653
+ className: (0, import_typed_classname28.clsx)(
1375
1654
  "hds-container",
1376
1655
  { "hds-container--slim": variant === "slim" },
1377
1656
  className
@@ -1385,9 +1664,9 @@ var Container = (0, import_react29.forwardRef)(
1385
1664
  Container.displayName = "Container";
1386
1665
 
1387
1666
  // src/layout/grid/grid.tsx
1388
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1389
- var import_react_slot9 = require("@radix-ui/react-slot");
1390
- var import_react30 = require("react");
1667
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1668
+ var import_react_slot11 = require("@radix-ui/react-slot");
1669
+ var import_react34 = require("react");
1391
1670
 
1392
1671
  // src/layout/responsive.ts
1393
1672
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1408,17 +1687,17 @@ function getSpacingVariable(size) {
1408
1687
  }
1409
1688
 
1410
1689
  // src/layout/grid/grid.tsx
1411
- var import_jsx_runtime28 = require("react/jsx-runtime");
1412
- var GridItem = (0, import_react30.forwardRef)(
1690
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1691
+ var GridItem = (0, import_react34.forwardRef)(
1413
1692
  (_a, ref) => {
1414
1693
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1415
- const Component = asChild ? import_react_slot9.Slot : "div";
1694
+ const Component = asChild ? import_react_slot11.Slot : "div";
1416
1695
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1417
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1696
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1418
1697
  Component,
1419
1698
  __spreadProps(__spreadValues({
1420
1699
  style,
1421
- className: (0, import_typed_classname27.clsx)("hds-grid__item", className),
1700
+ className: (0, import_typed_classname29.clsx)("hds-grid__item", className),
1422
1701
  ref
1423
1702
  }, rest), {
1424
1703
  children
@@ -1427,16 +1706,16 @@ var GridItem = (0, import_react30.forwardRef)(
1427
1706
  }
1428
1707
  );
1429
1708
  GridItem.displayName = "Grid.Item";
1430
- var Grid = (0, import_react30.forwardRef)(
1709
+ var Grid = (0, import_react34.forwardRef)(
1431
1710
  (_a, ref) => {
1432
1711
  var _b = _a, { children, asChild, className, span, center, style: _style, gap, gapX, gapY } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap", "gapX", "gapY"]);
1433
- const Component = asChild ? import_react_slot9.Slot : "div";
1712
+ const Component = asChild ? import_react_slot11.Slot : "div";
1434
1713
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
1435
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1714
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1436
1715
  Component,
1437
1716
  __spreadProps(__spreadValues({
1438
1717
  style,
1439
- className: (0, import_typed_classname27.clsx)("hds-grid", className),
1718
+ className: (0, import_typed_classname29.clsx)("hds-grid", className),
1440
1719
  ref
1441
1720
  }, rest), {
1442
1721
  children
@@ -1448,12 +1727,12 @@ Grid.displayName = "Grid";
1448
1727
  Grid.Item = GridItem;
1449
1728
 
1450
1729
  // src/layout/stack/stack.tsx
1451
- var React2 = require("react");
1452
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1453
- var import_react31 = require("react");
1454
- var import_react_slot10 = require("@radix-ui/react-slot");
1455
- var import_jsx_runtime29 = require("react/jsx-runtime");
1456
- var Stack = (0, import_react31.forwardRef)(
1730
+ var React3 = require("react");
1731
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1732
+ var import_react35 = require("react");
1733
+ var import_react_slot12 = require("@radix-ui/react-slot");
1734
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1735
+ var Stack = (0, import_react35.forwardRef)(
1457
1736
  (_a, ref) => {
1458
1737
  var _b = _a, {
1459
1738
  children,
@@ -1480,13 +1759,13 @@ var Stack = (0, import_react31.forwardRef)(
1480
1759
  "align",
1481
1760
  "justify"
1482
1761
  ]);
1483
- const Component = asChild ? import_react_slot10.Slot : "div";
1762
+ const Component = asChild ? import_react_slot12.Slot : "div";
1484
1763
  const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
1485
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1764
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1486
1765
  Component,
1487
1766
  __spreadProps(__spreadValues({
1488
1767
  style,
1489
- className: (0, import_typed_classname28.clsx)("hds-stack", className),
1768
+ className: (0, import_typed_classname30.clsx)("hds-stack", className),
1490
1769
  ref
1491
1770
  }, rest), {
1492
1771
  children
@@ -1495,107 +1774,25 @@ var Stack = (0, import_react31.forwardRef)(
1495
1774
  }
1496
1775
  );
1497
1776
  Stack.displayName = "Stack";
1498
- var HStack = (0, import_react31.forwardRef)((props, ref) => {
1499
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1777
+ var HStack = (0, import_react35.forwardRef)((props, ref) => {
1778
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1500
1779
  });
1501
1780
  HStack.displayName = "HStack";
1502
- var VStack = (0, import_react31.forwardRef)((props, ref) => {
1503
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1781
+ var VStack = (0, import_react35.forwardRef)((props, ref) => {
1782
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1504
1783
  });
1505
1784
  VStack.displayName = "VStack";
1506
1785
 
1507
- // src/link/link.tsx
1508
- var React3 = require("react");
1509
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1510
- var import_react32 = require("react");
1511
- var import_react_slot11 = require("@radix-ui/react-slot");
1512
- var import_jsx_runtime30 = require("react/jsx-runtime");
1513
- var Link = (0, import_react32.forwardRef)(
1514
- (_a, ref) => {
1515
- var _b = _a, { asChild, children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "className"]);
1516
- const Component = asChild ? import_react_slot11.Slot : "a";
1517
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1518
- Component,
1519
- __spreadProps(__spreadValues({
1520
- className: (0, import_typed_classname29.clsx)(
1521
- "hds-link",
1522
- variant !== "underline" && `hds-link--${variant}`,
1523
- size !== "medium" && `hds-link--${size}`,
1524
- className
1525
- ),
1526
- ref
1527
- }, rest), {
1528
- children
1529
- })
1530
- );
1531
- }
1532
- );
1533
- Link.displayName = "Link";
1534
-
1535
- // src/message/message.tsx
1536
- var import_react33 = require("react");
1537
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1538
- var import_react_slot12 = require("@radix-ui/react-slot");
1539
- var import_jsx_runtime31 = require("react/jsx-runtime");
1540
- var MessageTitle = (0, import_react33.forwardRef)(
1541
- (_a, ref) => {
1542
- var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1543
- const Component = asChild ? import_react_slot12.Slot : "div";
1544
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1545
- Component,
1546
- __spreadValues({
1547
- className: (0, import_typed_classname30.clsx)("hds-message__title", className),
1548
- ref
1549
- }, rest)
1550
- );
1551
- }
1552
- );
1553
- MessageTitle.displayName = "Message.Title";
1554
- var MessageDescription = (0, import_react33.forwardRef)(
1555
- (_a, ref) => {
1556
- var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1557
- const Component = asChild ? import_react_slot12.Slot : "div";
1558
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1559
- Component,
1560
- __spreadValues({
1561
- className: (0, import_typed_classname30.clsx)("hds-message__description", className),
1562
- ref
1563
- }, rest)
1564
- );
1565
- }
1566
- );
1567
- MessageDescription.displayName = "Message.Description";
1568
- var Message = (0, import_react33.forwardRef)(
1569
- (_a, ref) => {
1570
- var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1571
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1572
- Box,
1573
- __spreadProps(__spreadValues({
1574
- className: (0, import_typed_classname30.clsx)(`hds-message`, `hds-message--${variant}`, className),
1575
- ref
1576
- }, rest), {
1577
- children: [
1578
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: (0, import_typed_classname30.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1579
- children
1580
- ]
1581
- })
1582
- );
1583
- }
1584
- );
1585
- Message.displayName = "Message";
1586
- Message.Title = MessageTitle;
1587
- Message.Description = MessageDescription;
1588
-
1589
1786
  // src/modal/modal.tsx
1590
- var import_react34 = require("react");
1787
+ var import_react36 = require("react");
1591
1788
  var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1592
1789
  var import_react_slot13 = require("@radix-ui/react-slot");
1593
- var import_jsx_runtime32 = require("react/jsx-runtime");
1594
- var ModalHeader = (0, import_react34.forwardRef)(
1790
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1791
+ var ModalHeader = (0, import_react36.forwardRef)(
1595
1792
  (_a, ref) => {
1596
1793
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1597
1794
  const Component = asChild ? import_react_slot13.Slot : "h1";
1598
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1795
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1599
1796
  Component,
1600
1797
  __spreadValues({
1601
1798
  className: (0, import_typed_classname31.clsx)("hds-modal__header", className),
@@ -1605,11 +1802,11 @@ var ModalHeader = (0, import_react34.forwardRef)(
1605
1802
  }
1606
1803
  );
1607
1804
  ModalHeader.displayName = "Modal.Header";
1608
- var ModalContent = (0, import_react34.forwardRef)(
1805
+ var ModalContent = (0, import_react36.forwardRef)(
1609
1806
  (_a, ref) => {
1610
1807
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1611
1808
  const Component = asChild ? import_react_slot13.Slot : "div";
1612
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1809
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1613
1810
  Component,
1614
1811
  __spreadValues({
1615
1812
  className: (0, import_typed_classname31.clsx)("hds-modal__content", className),
@@ -1619,11 +1816,11 @@ var ModalContent = (0, import_react34.forwardRef)(
1619
1816
  }
1620
1817
  );
1621
1818
  ModalContent.displayName = "Modal.Content";
1622
- var ModalFooter = (0, import_react34.forwardRef)(
1819
+ var ModalFooter = (0, import_react36.forwardRef)(
1623
1820
  (_a, ref) => {
1624
1821
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1625
1822
  const Component = asChild ? import_react_slot13.Slot : "footer";
1626
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1823
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1627
1824
  Component,
1628
1825
  __spreadValues({
1629
1826
  className: (0, import_typed_classname31.clsx)("hds-modal__footer", className),
@@ -1633,10 +1830,10 @@ var ModalFooter = (0, import_react34.forwardRef)(
1633
1830
  }
1634
1831
  );
1635
1832
  ModalFooter.displayName = "Modal.Footer";
1636
- var Modal = (0, import_react34.forwardRef)(
1833
+ var Modal = (0, import_react36.forwardRef)(
1637
1834
  (_a, ref) => {
1638
1835
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1639
- const modalRef = (0, import_react34.useRef)(null);
1836
+ const modalRef = (0, import_react36.useRef)(null);
1640
1837
  const mergedRef = useMergeRefs([modalRef, ref]);
1641
1838
  function onCloseButtonClick() {
1642
1839
  var _a2;
@@ -1644,7 +1841,7 @@ var Modal = (0, import_react34.forwardRef)(
1644
1841
  return false;
1645
1842
  }
1646
1843
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1647
- (0, import_react34.useEffect)(() => {
1844
+ (0, import_react36.useEffect)(() => {
1648
1845
  if (modalRef.current && open !== void 0) {
1649
1846
  if (open && !modalRef.current.open) {
1650
1847
  modalRef.current.showModal();
@@ -1659,7 +1856,7 @@ var Modal = (0, import_react34.forwardRef)(
1659
1856
  }
1660
1857
  onClick == null ? void 0 : onClick(e);
1661
1858
  }
1662
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1859
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1663
1860
  Box,
1664
1861
  {
1665
1862
  asChild: true,
@@ -1668,7 +1865,7 @@ var Modal = (0, import_react34.forwardRef)(
1668
1865
  onClick: onDialogClick,
1669
1866
  onClose: onCloseButtonClick,
1670
1867
  variant: "white",
1671
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
1868
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
1672
1869
  }
1673
1870
  );
1674
1871
  }
@@ -1678,7 +1875,7 @@ Modal.Header = ModalHeader;
1678
1875
  Modal.Content = ModalContent;
1679
1876
  Modal.Footer = ModalFooter;
1680
1877
  function useScrollLock(modalRef, bodyClass) {
1681
- (0, import_react34.useEffect)(() => {
1878
+ (0, import_react36.useEffect)(() => {
1682
1879
  if (!modalRef.current) return;
1683
1880
  if (modalRef.current.open) document.body.classList.add(bodyClass);
1684
1881
  const observer = new MutationObserver(() => {
@@ -1698,18 +1895,18 @@ function useScrollLock(modalRef, bodyClass) {
1698
1895
  }
1699
1896
 
1700
1897
  // src/navbar/navbar.tsx
1701
- var import_react36 = require("react");
1898
+ var import_react38 = require("react");
1702
1899
  var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1703
1900
  var import_react_slot14 = require("@radix-ui/react-slot");
1704
1901
 
1705
1902
  // src/navbar/navbar-expandable-menu.tsx
1706
- var import_react35 = require("react");
1903
+ var import_react37 = require("react");
1707
1904
  var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1708
1905
 
1709
1906
  // src/navbar/icons.tsx
1710
- var import_jsx_runtime33 = require("react/jsx-runtime");
1907
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1711
1908
  function CloseIcon() {
1712
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1909
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1713
1910
  "path",
1714
1911
  {
1715
1912
  d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
@@ -1718,7 +1915,7 @@ function CloseIcon() {
1718
1915
  ) });
1719
1916
  }
1720
1917
  function MenuIcon() {
1721
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1918
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1722
1919
  "path",
1723
1920
  {
1724
1921
  fill: "currentColor",
@@ -1728,19 +1925,19 @@ function MenuIcon() {
1728
1925
  }
1729
1926
 
1730
1927
  // src/navbar/navbar-expandable-menu.tsx
1731
- var import_jsx_runtime34 = require("react/jsx-runtime");
1732
- var ExpandableMenuContext = (0, import_react35.createContext)(null);
1928
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1929
+ var ExpandableMenuContext = (0, import_react37.createContext)(null);
1733
1930
  var useNavbarExpendableMenuContext = () => {
1734
- const value = (0, import_react35.useContext)(ExpandableMenuContext);
1931
+ const value = (0, import_react37.useContext)(ExpandableMenuContext);
1735
1932
  if (value === null) {
1736
1933
  throw new Error("useNavbarExpendableMenuContext must be used within a Navbar.ExpandableMenu");
1737
1934
  }
1738
1935
  return value;
1739
1936
  };
1740
1937
  function NavbarExpandableMenu({ children }) {
1741
- const contentId = (0, import_react35.useId)();
1742
- const [open, setOpen] = (0, import_react35.useState)(false);
1743
- (0, import_react35.useEffect)(() => {
1938
+ const contentId = (0, import_react37.useId)();
1939
+ const [open, setOpen] = (0, import_react37.useState)(false);
1940
+ (0, import_react37.useEffect)(() => {
1744
1941
  if (open) {
1745
1942
  window.scrollTo(0, 0);
1746
1943
  document.body.classList.add((0, import_typed_classname32.clsx)("hds-navbar-scroll-lock"));
@@ -1753,10 +1950,10 @@ function NavbarExpandableMenu({ children }) {
1753
1950
  };
1754
1951
  }
1755
1952
  }, [open]);
1756
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
1953
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
1757
1954
  }
1758
1955
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
1759
- var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1956
+ var NavbarExpandableMenuTrigger = (0, import_react37.forwardRef)(
1760
1957
  (_a, ref) => {
1761
1958
  var _b = _a, {
1762
1959
  whenClosedText,
@@ -1774,9 +1971,9 @@ var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1774
1971
  "className"
1775
1972
  ]);
1776
1973
  const { contentId, open, setOpen } = useNavbarExpendableMenuContext();
1777
- const [textWidth, setTextWidth] = (0, import_react35.useState)(void 0);
1778
- const measurementId = (0, import_react35.useId)();
1779
- (0, import_react35.useEffect)(() => {
1974
+ const [textWidth, setTextWidth] = (0, import_react37.useState)(void 0);
1975
+ const measurementId = (0, import_react37.useId)();
1976
+ (0, import_react37.useEffect)(() => {
1780
1977
  var _a2, _b2, _c, _d;
1781
1978
  const widthWhenOpen = (_b2 = (_a2 = document.getElementById(`${measurementId}-when-open`)) == null ? void 0 : _a2.getBoundingClientRect().width) != null ? _b2 : 0;
1782
1979
  const widthWhenClosed = (_d = (_c = document.getElementById(`${measurementId}-when-closed`)) == null ? void 0 : _c.getBoundingClientRect().width) != null ? _d : 0;
@@ -1784,11 +1981,11 @@ var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1784
1981
  }, [measurementId]);
1785
1982
  const text = open ? whenOpenText : whenClosedText;
1786
1983
  const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
1787
- const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(MenuIcon, {});
1984
+ const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MenuIcon, {});
1788
1985
  function toggleOpen() {
1789
1986
  setOpen(!open);
1790
1987
  }
1791
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1988
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1792
1989
  "button",
1793
1990
  __spreadProps(__spreadValues({
1794
1991
  "aria-expanded": open,
@@ -1801,7 +1998,7 @@ var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1801
1998
  style: __spreadValues({ position: "relative" }, style)
1802
1999
  }, rest), {
1803
2000
  children: [
1804
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2001
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1805
2002
  "span",
1806
2003
  {
1807
2004
  id: `${measurementId}-when-closed`,
@@ -1815,7 +2012,7 @@ var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1815
2012
  children: whenOpenText
1816
2013
  }
1817
2014
  ),
1818
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2015
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1819
2016
  "span",
1820
2017
  {
1821
2018
  id: `${measurementId}-when-open`,
@@ -1829,7 +2026,7 @@ var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1829
2026
  children: whenClosedText
1830
2027
  }
1831
2028
  ),
1832
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2029
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1833
2030
  "span",
1834
2031
  {
1835
2032
  style: { width: textWidth, whiteSpace: "nowrap" },
@@ -1837,17 +2034,17 @@ var NavbarExpandableMenuTrigger = (0, import_react35.forwardRef)(
1837
2034
  children: text
1838
2035
  }
1839
2036
  ),
1840
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { style: { width: 32, height: 32 }, children: icon })
2037
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { style: { width: 32, height: 32 }, children: icon })
1841
2038
  ]
1842
2039
  })
1843
2040
  );
1844
2041
  }
1845
2042
  );
1846
2043
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenuTrigger";
1847
- var NavbarExpandableMenuContent = (0, import_react35.forwardRef)((_a, ref) => {
2044
+ var NavbarExpandableMenuContent = (0, import_react37.forwardRef)((_a, ref) => {
1848
2045
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1849
2046
  const { contentId, open } = useNavbarExpendableMenuContext();
1850
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2047
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1851
2048
  "section",
1852
2049
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
1853
2050
  id: contentId,
@@ -1855,27 +2052,27 @@ var NavbarExpandableMenuContent = (0, import_react35.forwardRef)((_a, ref) => {
1855
2052
  "data-state": open ? "open" : "closed"
1856
2053
  }), { inert: open ? void 0 : "true" }), {
1857
2054
  ref,
1858
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: (0, import_typed_classname32.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2055
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: (0, import_typed_classname32.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1859
2056
  })
1860
2057
  );
1861
2058
  });
1862
2059
  NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenuContent";
1863
2060
 
1864
2061
  // src/navbar/navbar.tsx
1865
- var import_jsx_runtime35 = require("react/jsx-runtime");
1866
- var NavbarLogo = (0, import_react36.forwardRef)(
2062
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2063
+ var NavbarLogo = (0, import_react38.forwardRef)(
1867
2064
  (_a, ref) => {
1868
2065
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1869
2066
  const Component = asChild ? import_react_slot14.Slot : "div";
1870
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2067
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
1871
2068
  }
1872
2069
  );
1873
2070
  NavbarLogo.displayName = "Navbar.Logo";
1874
- var NavbarLogoAndServiceText = (0, import_react36.forwardRef)(
2071
+ var NavbarLogoAndServiceText = (0, import_react38.forwardRef)(
1875
2072
  (_a, ref) => {
1876
2073
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
1877
2074
  const Component = asChild ? import_react_slot14.Slot : "div";
1878
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2075
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1879
2076
  Component,
1880
2077
  __spreadProps(__spreadValues({
1881
2078
  ref,
@@ -1891,26 +2088,26 @@ var NavbarLogoAndServiceText = (0, import_react36.forwardRef)(
1891
2088
  }
1892
2089
  );
1893
2090
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
1894
- var NavbarItemIcon = (0, import_react36.forwardRef)(
2091
+ var NavbarItemIcon = (0, import_react38.forwardRef)(
1895
2092
  (_a, ref) => {
1896
2093
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1897
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_slot14.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2094
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_slot14.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
1898
2095
  }
1899
2096
  );
1900
2097
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
1901
- var NavbarItem = (0, import_react36.forwardRef)(
2098
+ var NavbarItem = (0, import_react38.forwardRef)(
1902
2099
  (_a, ref) => {
1903
2100
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
1904
2101
  const Component = asChild ? import_react_slot14.Slot : "div";
1905
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2102
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className), ref }, rest), { children }));
1906
2103
  }
1907
2104
  );
1908
2105
  NavbarItem.displayName = "Navbar.Item";
1909
- var NavbarButtonItem = (0, import_react36.forwardRef)(
2106
+ var NavbarButtonItem = (0, import_react38.forwardRef)(
1910
2107
  (_a, ref) => {
1911
2108
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
1912
2109
  const Component = asChild ? import_react_slot14.Slot : "button";
1913
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2110
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1914
2111
  Component,
1915
2112
  __spreadProps(__spreadValues({
1916
2113
  className: (0, import_typed_classname33.clsx)("hds-navbar__item", className),
@@ -1923,19 +2120,19 @@ var NavbarButtonItem = (0, import_react36.forwardRef)(
1923
2120
  }
1924
2121
  );
1925
2122
  NavbarButtonItem.displayName = "Navbar.ButtonItem";
1926
- var NavbarLinkItem = (0, import_react36.forwardRef)(
2123
+ var NavbarLinkItem = (0, import_react38.forwardRef)(
1927
2124
  (_a, ref) => {
1928
2125
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
1929
2126
  const Component = asChild ? import_react_slot14.Slot : "a";
1930
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2127
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-navbar__item", className), ref }, rest), { children }));
1931
2128
  }
1932
2129
  );
1933
2130
  NavbarLinkItem.displayName = "Navbar.LinkItem";
1934
- var NavbarNavigation = (0, import_react36.forwardRef)(
2131
+ var NavbarNavigation = (0, import_react38.forwardRef)(
1935
2132
  (_a, ref) => {
1936
2133
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1937
2134
  const Component = asChild ? import_react_slot14.Slot : "div";
1938
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2135
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1939
2136
  Component,
1940
2137
  __spreadValues({
1941
2138
  className: (0, import_typed_classname33.clsx)("hds-navbar__navigation", className),
@@ -1945,11 +2142,11 @@ var NavbarNavigation = (0, import_react36.forwardRef)(
1945
2142
  }
1946
2143
  );
1947
2144
  NavbarNavigation.displayName = "Navbar.Navigation";
1948
- var Navbar = (0, import_react36.forwardRef)(
2145
+ var Navbar = (0, import_react38.forwardRef)(
1949
2146
  (_a, ref) => {
1950
2147
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
1951
2148
  const Component = asChild ? import_react_slot14.Slot : "header";
1952
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2149
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1953
2150
  Component,
1954
2151
  __spreadProps(__spreadValues({
1955
2152
  className: (0, import_typed_classname33.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
@@ -1974,12 +2171,12 @@ Navbar.Navigation = NavbarNavigation;
1974
2171
 
1975
2172
  // src/show-more/show-more.tsx
1976
2173
  var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
1977
- var import_react37 = require("react");
1978
- var import_jsx_runtime36 = require("react/jsx-runtime");
1979
- var ShowMoreButton = (0, import_react37.forwardRef)(
2174
+ var import_react39 = require("react");
2175
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2176
+ var ShowMoreButton = (0, import_react39.forwardRef)(
1980
2177
  (_a, ref) => {
1981
2178
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
1982
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2179
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1983
2180
  "button",
1984
2181
  __spreadProps(__spreadValues({
1985
2182
  ref,
@@ -1993,7 +2190,7 @@ var ShowMoreButton = (0, import_react37.forwardRef)(
1993
2190
  }, rest), {
1994
2191
  children: [
1995
2192
  text,
1996
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: (0, import_typed_classname34.clsx)("hds-show-more__icon") })
2193
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: (0, import_typed_classname34.clsx)("hds-show-more__icon") })
1997
2194
  ]
1998
2195
  })
1999
2196
  );
@@ -2004,9 +2201,9 @@ ShowMoreButton.displayName = "ShowMoreButton";
2004
2201
  // src/skeleton/skeleton.tsx
2005
2202
  var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2006
2203
  var import_react_slot15 = require("@radix-ui/react-slot");
2007
- var import_react38 = require("react");
2008
- var import_jsx_runtime37 = require("react/jsx-runtime");
2009
- var Skeleton = (0, import_react38.forwardRef)(
2204
+ var import_react40 = require("react");
2205
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2206
+ var Skeleton = (0, import_react40.forwardRef)(
2010
2207
  (_a, ref) => {
2011
2208
  var _b = _a, {
2012
2209
  as: Tag = "div",
@@ -2030,7 +2227,7 @@ var Skeleton = (0, import_react38.forwardRef)(
2030
2227
  "style"
2031
2228
  ]);
2032
2229
  const Component = asChild ? import_react_slot15.Slot : Tag;
2033
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2230
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2034
2231
  Component,
2035
2232
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2036
2233
  className: (0, import_typed_classname35.clsx)(
@@ -2052,14 +2249,14 @@ var Skeleton = (0, import_react38.forwardRef)(
2052
2249
  Skeleton.displayName = "Skeleton";
2053
2250
 
2054
2251
  // src/spinner/spinner.tsx
2055
- var import_react39 = require("react");
2252
+ var import_react41 = require("react");
2056
2253
  var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2057
- var import_jsx_runtime38 = require("react/jsx-runtime");
2058
- var Spinner = (0, import_react39.forwardRef)(
2254
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2255
+ var Spinner = (0, import_react41.forwardRef)(
2059
2256
  (_a, ref) => {
2060
2257
  var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
2061
2258
  const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
2062
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2259
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2063
2260
  "div",
2064
2261
  __spreadValues({
2065
2262
  title,
@@ -2079,9 +2276,9 @@ Spinner.displayName = "Spinner";
2079
2276
 
2080
2277
  // src/step-indicator/step-indicator.tsx
2081
2278
  var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2082
- var import_react40 = require("react");
2083
- var import_jsx_runtime39 = require("react/jsx-runtime");
2084
- var StepIndicator = (0, import_react40.forwardRef)(
2279
+ var import_react42 = require("react");
2280
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2281
+ var StepIndicator = (0, import_react42.forwardRef)(
2085
2282
  (_a, ref) => {
2086
2283
  var _b = _a, {
2087
2284
  activeStep,
@@ -2100,7 +2297,7 @@ var StepIndicator = (0, import_react40.forwardRef)(
2100
2297
  "title",
2101
2298
  "titleAs"
2102
2299
  ]);
2103
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2300
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2104
2301
  "div",
2105
2302
  __spreadProps(__spreadValues({
2106
2303
  ref,
@@ -2108,11 +2305,11 @@ var StepIndicator = (0, import_react40.forwardRef)(
2108
2305
  lang
2109
2306
  }, rest), {
2110
2307
  children: [
2111
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__header"), children: [
2112
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__left-label"), children: label }),
2113
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2308
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__header"), children: [
2309
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__left-label"), children: label }),
2310
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2114
2311
  ] }),
2115
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2312
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: (0, import_typed_classname37.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2116
2313
  "div",
2117
2314
  {
2118
2315
  className: (0, import_typed_classname37.clsx)("hds-step-indicator__step"),
@@ -2120,7 +2317,7 @@ var StepIndicator = (0, import_react40.forwardRef)(
2120
2317
  },
2121
2318
  i
2122
2319
  )) }),
2123
- title ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TitleComponent, { className: (0, import_typed_classname37.clsx)("hds-step-indicator__title"), children: title }) : null
2320
+ title ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TitleComponent, { className: (0, import_typed_classname37.clsx)("hds-step-indicator__title"), children: title }) : null
2124
2321
  ]
2125
2322
  })
2126
2323
  );
@@ -2144,15 +2341,15 @@ function getStepState(renderedStep, activeStep) {
2144
2341
  }
2145
2342
 
2146
2343
  // src/styled-html/styled-html.tsx
2147
- var import_react41 = require("react");
2344
+ var import_react43 = require("react");
2148
2345
  var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2149
2346
  var import_react_slot16 = require("@radix-ui/react-slot");
2150
- var import_jsx_runtime40 = require("react/jsx-runtime");
2151
- var StyledHtml = (0, import_react41.forwardRef)(
2347
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2348
+ var StyledHtml = (0, import_react43.forwardRef)(
2152
2349
  (_a, ref) => {
2153
2350
  var _b = _a, { asChild, children, size, unstable_darkmode: darkmode = false, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "unstable_darkmode", "className"]);
2154
2351
  const Component = asChild ? import_react_slot16.Slot : "div";
2155
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2352
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2156
2353
  Component,
2157
2354
  __spreadProps(__spreadValues({
2158
2355
  className: (0, import_typed_classname38.clsx)(
@@ -2172,14 +2369,14 @@ StyledHtml.displayName = "StyledHtml";
2172
2369
 
2173
2370
  // src/table/table.tsx
2174
2371
  var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2175
- var import_react42 = require("react");
2176
- var import_jsx_runtime41 = require("react/jsx-runtime");
2177
- var Table = (0, import_react42.forwardRef)(
2372
+ var import_react44 = require("react");
2373
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2374
+ var Table = (0, import_react44.forwardRef)(
2178
2375
  (_a, ref) => {
2179
2376
  var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2180
- const descriptionId = (0, import_react42.useId)();
2181
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
2182
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2377
+ const descriptionId = (0, import_react44.useId)();
2378
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2379
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2183
2380
  "table",
2184
2381
  __spreadProps(__spreadValues({
2185
2382
  "aria-describedby": description ? descriptionId : void 0,
@@ -2194,27 +2391,27 @@ var Table = (0, import_react42.forwardRef)(
2194
2391
  )
2195
2392
  }, rest), {
2196
2393
  children: [
2197
- caption ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("caption", { children: caption }) : null,
2394
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("caption", { children: caption }) : null,
2198
2395
  children
2199
2396
  ]
2200
2397
  })
2201
2398
  ),
2202
- description ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: (0, import_typed_classname39.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2399
+ description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: (0, import_typed_classname39.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2203
2400
  ] });
2204
2401
  }
2205
2402
  );
2206
2403
  Table.displayName = "Table";
2207
2404
 
2208
2405
  // src/tabs/tabs.tsx
2209
- var import_react46 = require("react");
2406
+ var import_react48 = require("react");
2210
2407
  var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2211
2408
  var import_react_slot18 = require("@radix-ui/react-slot");
2212
2409
 
2213
2410
  // src/tabs/context.ts
2214
- var import_react43 = require("react");
2215
- var TabsContext = (0, import_react43.createContext)(null);
2411
+ var import_react45 = require("react");
2412
+ var TabsContext = (0, import_react45.createContext)(null);
2216
2413
  function useTabsContext() {
2217
- const context = (0, import_react43.useContext)(TabsContext);
2414
+ const context = (0, import_react45.useContext)(TabsContext);
2218
2415
  if (!context) {
2219
2416
  throw new Error(
2220
2417
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2224,25 +2421,25 @@ function useTabsContext() {
2224
2421
  }
2225
2422
 
2226
2423
  // src/tabs/tabs-content.tsx
2227
- var import_react44 = require("react");
2424
+ var import_react46 = require("react");
2228
2425
  var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2229
2426
  var import_react_slot17 = require("@radix-ui/react-slot");
2230
- var import_jsx_runtime42 = require("react/jsx-runtime");
2231
- var TabsContents = (0, import_react44.forwardRef)(
2427
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2428
+ var TabsContents = (0, import_react46.forwardRef)(
2232
2429
  (_a, ref) => {
2233
2430
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2234
2431
  const Component = asChild ? import_react_slot17.Slot : "div";
2235
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname40.clsx)("hds-tabs__contents") }, rest), { children }));
2432
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname40.clsx)("hds-tabs__contents") }, rest), { children }));
2236
2433
  }
2237
2434
  );
2238
2435
  TabsContents.displayName = "Tabs.Contents";
2239
- var TabsContent = (0, import_react44.forwardRef)(
2436
+ var TabsContent = (0, import_react46.forwardRef)(
2240
2437
  (_a, ref) => {
2241
2438
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2242
2439
  const context = useTabsContext();
2243
2440
  const Component = asChild ? import_react_slot17.Slot : "div";
2244
2441
  if (context.activeTabId === forTabId) {
2245
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2442
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2246
2443
  }
2247
2444
  return null;
2248
2445
  }
@@ -2250,21 +2447,21 @@ var TabsContent = (0, import_react44.forwardRef)(
2250
2447
  TabsContent.displayName = "Tabs.Content";
2251
2448
 
2252
2449
  // src/tabs/tabs-list.tsx
2253
- var import_react45 = require("react");
2450
+ var import_react47 = require("react");
2254
2451
  var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2255
- var import_jsx_runtime43 = require("react/jsx-runtime");
2256
- var TabsList = (0, import_react45.forwardRef)(
2452
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2453
+ var TabsList = (0, import_react47.forwardRef)(
2257
2454
  (_a, ref) => {
2258
2455
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2259
2456
  const { activeTabId } = useTabsContext();
2260
- const tabsListRef = (0, import_react45.useRef)(null);
2457
+ const tabsListRef = (0, import_react47.useRef)(null);
2261
2458
  const mergedRef = useMergeRefs([tabsListRef, ref]);
2262
2459
  const { width: tabsWidth } = useResize(tabsListRef);
2263
2460
  const isClientSide = useHydrated();
2264
2461
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2265
2462
  const wideEnough = innerWidth >= tabsWidth;
2266
- const previousTabId = (0, import_react45.useRef)(activeTabId);
2267
- (0, import_react45.useEffect)(() => {
2463
+ const previousTabId = (0, import_react47.useRef)(activeTabId);
2464
+ (0, import_react47.useEffect)(() => {
2268
2465
  const tabList = tabsListRef.current;
2269
2466
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2270
2467
  if (!activeTab || !tabList) return;
@@ -2288,7 +2485,7 @@ var TabsList = (0, import_react45.forwardRef)(
2288
2485
  }
2289
2486
  previousTabId.current = activeTabId;
2290
2487
  }, [activeTabId, innerWidth]);
2291
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2488
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2292
2489
  "div",
2293
2490
  __spreadProps(__spreadValues({
2294
2491
  className: (0, import_typed_classname41.clsx)(
@@ -2310,7 +2507,7 @@ var TabsList = (0, import_react45.forwardRef)(
2310
2507
  }
2311
2508
  );
2312
2509
  TabsList.displayName = "Tabs.List";
2313
- var TabsTab = (0, import_react45.forwardRef)(
2510
+ var TabsTab = (0, import_react47.forwardRef)(
2314
2511
  (_a, ref) => {
2315
2512
  var _b = _a, { children, tabId, className, onClick } = _b, rest = __objRest(_b, ["children", "tabId", "className", "onClick"]);
2316
2513
  const context = useTabsContext();
@@ -2319,7 +2516,7 @@ var TabsTab = (0, import_react45.forwardRef)(
2319
2516
  context.toggleActiveTabId(tabId);
2320
2517
  onClick == null ? void 0 : onClick(e);
2321
2518
  };
2322
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2519
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2323
2520
  "button",
2324
2521
  __spreadProps(__spreadValues({
2325
2522
  className: (0, import_typed_classname41.clsx)(
@@ -2341,13 +2538,13 @@ var TabsTab = (0, import_react45.forwardRef)(
2341
2538
  TabsTab.displayName = "Tabs.Tab";
2342
2539
 
2343
2540
  // src/tabs/tabs.tsx
2344
- var import_jsx_runtime44 = require("react/jsx-runtime");
2345
- var Tabs = (0, import_react46.forwardRef)(
2541
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2542
+ var Tabs = (0, import_react48.forwardRef)(
2346
2543
  (_a, ref) => {
2347
2544
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
2348
- const [activeTabId, setActiveTabId] = (0, import_react46.useState)(defaultTab);
2545
+ const [activeTabId, setActiveTabId] = (0, import_react48.useState)(defaultTab);
2349
2546
  const Component = asChild ? import_react_slot18.Slot : "div";
2350
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname42.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2547
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname42.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2351
2548
  }
2352
2549
  );
2353
2550
  Tabs.displayName = "Tabs";
@@ -2357,10 +2554,10 @@ Tabs.Contents = TabsContents;
2357
2554
  Tabs.Content = TabsContent;
2358
2555
 
2359
2556
  // src/text/text.tsx
2360
- var import_react47 = require("react");
2557
+ var import_react49 = require("react");
2361
2558
  var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2362
2559
  var import_react_slot19 = require("@radix-ui/react-slot");
2363
- var import_jsx_runtime45 = require("react/jsx-runtime");
2560
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2364
2561
  var defaultHTMLTag = {
2365
2562
  "h1-display": "h1",
2366
2563
  h1: "h1",
@@ -2376,7 +2573,7 @@ var defaultHTMLTag = {
2376
2573
  caption: "p",
2377
2574
  "caption-title": "p"
2378
2575
  };
2379
- var Text = (0, import_react47.forwardRef)(
2576
+ var Text = (0, import_react49.forwardRef)(
2380
2577
  (_a, ref) => {
2381
2578
  var _b = _a, {
2382
2579
  as: Tag,
@@ -2397,7 +2594,7 @@ var Text = (0, import_react47.forwardRef)(
2397
2594
  ]);
2398
2595
  const Component = asChild ? import_react_slot19.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2399
2596
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2400
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2597
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2401
2598
  Component,
2402
2599
  __spreadProps(__spreadValues({
2403
2600
  className: (0, import_typed_classname43.clsx)(
@@ -2415,116 +2612,17 @@ var Text = (0, import_react47.forwardRef)(
2415
2612
  );
2416
2613
  Text.displayName = "Text";
2417
2614
 
2418
- // src/utils/auto-animate-height.tsx
2419
- var import_react48 = require("react");
2420
- var import_jsx_runtime46 = require("react/jsx-runtime");
2421
- var AutoAnimateHeight = (0, import_react48.forwardRef)(
2422
- (_a, ref) => {
2423
- var _b = _a, {
2424
- children,
2425
- style,
2426
- animationDuration = "quick",
2427
- animationEasing = "normal",
2428
- onTransitionEnd
2429
- } = _b, rest = __objRest(_b, [
2430
- "children",
2431
- "style",
2432
- "animationDuration",
2433
- "animationEasing",
2434
- "onTransitionEnd"
2435
- ]);
2436
- var _a2, _b2;
2437
- const rootRef = (0, import_react48.useRef)(null);
2438
- const mergedRef = useMergeRefs([rootRef, ref]);
2439
- const measurementRef = (0, import_react48.useRef)(null);
2440
- const [height, setHeight] = (0, import_react48.useState)(
2441
- void 0
2442
- );
2443
- const [clonedChildren, setClonedChildren] = (0, import_react48.useState)(
2444
- () => (0, import_react48.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children }), {})
2445
- );
2446
- (0, import_react48.useEffect)(() => {
2447
- var _a3;
2448
- if (!rootRef.current) return;
2449
- if (!measurementRef.current) return;
2450
- if (document.body.scrollHeight === 0) return;
2451
- const currentMeasurement = measurementRef.current;
2452
- const { height: newHeight } = currentMeasurement.getBoundingClientRect();
2453
- let previouslyObservedHeight = newHeight;
2454
- const resizeObserver = new ResizeObserver(() => {
2455
- const { height: resizedHeight } = currentMeasurement.getBoundingClientRect();
2456
- if (resizedHeight === previouslyObservedHeight) return;
2457
- previouslyObservedHeight = resizedHeight;
2458
- setHeight({ height: resizedHeight, shouldAnimate: false });
2459
- });
2460
- resizeObserver.observe(currentMeasurement);
2461
- setHeight({ height: newHeight, shouldAnimate: true });
2462
- const nextClonedChildren = (0, import_react48.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children }), {});
2463
- if (newHeight >= ((_a3 = height == null ? void 0 : height.height) != null ? _a3 : 0)) {
2464
- setClonedChildren(nextClonedChildren);
2465
- return () => {
2466
- resizeObserver.disconnect();
2467
- };
2468
- }
2469
- const currentRoot = rootRef.current;
2470
- function onTransitionEndHandler(e) {
2471
- if (e.propertyName !== "height") return;
2472
- setClonedChildren(nextClonedChildren);
2473
- }
2474
- currentRoot.addEventListener("transitionend", onTransitionEndHandler);
2475
- return () => {
2476
- resizeObserver.disconnect();
2477
- currentRoot.removeEventListener("transitionend", onTransitionEndHandler);
2478
- };
2479
- }, [children]);
2480
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2481
- "div",
2482
- __spreadProps(__spreadValues({
2483
- ref: mergedRef,
2484
- onTransitionEnd,
2485
- style: __spreadValues({
2486
- position: "relative",
2487
- overflow: "hidden",
2488
- height: (_b2 = height == null ? void 0 : height.height) != null ? _b2 : (_a2 = measurementRef.current) == null ? void 0 : _a2.getBoundingClientRect().height,
2489
- transitionProperty: (height == null ? void 0 : height.shouldAnimate) ? "height" : "none",
2490
- transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,
2491
- transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`,
2492
- willChange: "height"
2493
- }, style)
2494
- }, rest), {
2495
- children: [
2496
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2497
- "div",
2498
- {
2499
- "aria-hidden": true,
2500
- ref: measurementRef,
2501
- style: {
2502
- position: "absolute",
2503
- visibility: "hidden",
2504
- pointerEvents: "none"
2505
- },
2506
- children
2507
- }
2508
- ),
2509
- clonedChildren
2510
- ]
2511
- })
2512
- );
2513
- }
2514
- );
2515
- AutoAnimateHeight.displayName = "AutoAnimateHeight";
2516
-
2517
2615
  // src/warning-banner/warning-banner.tsx
2518
- var import_react49 = require("react");
2616
+ var import_react50 = require("react");
2519
2617
  var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2520
- var import_jsx_runtime47 = require("react/jsx-runtime");
2521
- var WarningBanner = (0, import_react49.forwardRef)(
2618
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2619
+ var WarningBanner = (0, import_react50.forwardRef)(
2522
2620
  (_a, ref) => {
2523
2621
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2524
- const descriptionId = (0, import_react49.useId)();
2622
+ const descriptionId = (0, import_react50.useId)();
2525
2623
  const expandable = !!description;
2526
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname44.clsx)("hds-warning-banner", className), ref, children: [
2527
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2624
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname44.clsx)("hds-warning-banner", className), ref, children: [
2625
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2528
2626
  WarningBannerTitle,
2529
2627
  {
2530
2628
  variant: expandable ? "expandable" : "default",
@@ -2532,16 +2630,16 @@ var WarningBanner = (0, import_react49.forwardRef)(
2532
2630
  children: title
2533
2631
  }
2534
2632
  ),
2535
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2633
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2536
2634
  ] }));
2537
2635
  }
2538
2636
  );
2539
2637
  WarningBanner.displayName = "WarningBanner";
2540
- var WarningBannerTitle = (0, import_react49.forwardRef)((_a, ref) => {
2638
+ var WarningBannerTitle = (0, import_react50.forwardRef)((_a, ref) => {
2541
2639
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
2542
- const [open, setOpen] = (0, import_react49.useState)(false);
2640
+ const [open, setOpen] = (0, import_react50.useState)(false);
2543
2641
  if (variant === "expandable") {
2544
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2642
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2545
2643
  "button",
2546
2644
  __spreadProps(__spreadValues({}, rest), {
2547
2645
  "aria-expanded": open,
@@ -2557,11 +2655,11 @@ var WarningBannerTitle = (0, import_react49.forwardRef)((_a, ref) => {
2557
2655
  },
2558
2656
  ref,
2559
2657
  type: "button",
2560
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { children })
2658
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children })
2561
2659
  })
2562
2660
  );
2563
2661
  }
2564
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2662
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2565
2663
  "p",
2566
2664
  __spreadProps(__spreadValues({}, rest), {
2567
2665
  className: (0, import_typed_classname44.clsx)("hds-warning-banner__title", className),
@@ -2571,10 +2669,10 @@ var WarningBannerTitle = (0, import_react49.forwardRef)((_a, ref) => {
2571
2669
  );
2572
2670
  });
2573
2671
  WarningBannerTitle.displayName = "WarningBannerTitle";
2574
- var WarningBannerDescription = (0, import_react49.forwardRef)(
2672
+ var WarningBannerDescription = (0, import_react50.forwardRef)(
2575
2673
  (_a, ref) => {
2576
2674
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
2577
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2675
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2578
2676
  "p",
2579
2677
  __spreadValues({
2580
2678
  id,
@@ -2613,6 +2711,7 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2613
2711
  DatePicker,
2614
2712
  DescriptionList,
2615
2713
  ErrorMessage,
2714
+ ErrorSummary,
2616
2715
  Fieldset,
2617
2716
  Figure,
2618
2717
  Footer,