@postenbring/hedwig-react 4.1.2 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/accordion/accordion-content.js.map +1 -1
  2. package/dist/accordion/accordion-content.mjs +3 -3
  3. package/dist/accordion/accordion.js.map +1 -1
  4. package/dist/accordion/accordion.mjs +4 -4
  5. package/dist/accordion/index.js.map +1 -1
  6. package/dist/accordion/index.mjs +4 -4
  7. package/dist/{chunk-77M2ZTP7.mjs → chunk-3V4GFS46.mjs} +11 -1
  8. package/dist/chunk-3V4GFS46.mjs.map +1 -0
  9. package/dist/chunk-4K54KSRB.mjs +113 -0
  10. package/dist/chunk-4K54KSRB.mjs.map +1 -0
  11. package/dist/{chunk-HEDGKRGC.mjs → chunk-54HLJVAF.mjs} +6 -32
  12. package/dist/chunk-54HLJVAF.mjs.map +1 -0
  13. package/dist/chunk-5M6MEYM7.mjs +1 -0
  14. package/dist/{chunk-Z56XN4AZ.mjs → chunk-6O5AEAIL.mjs} +14 -5
  15. package/dist/chunk-6O5AEAIL.mjs.map +1 -0
  16. package/dist/chunk-77UAHNU6.mjs +24 -0
  17. package/dist/chunk-77UAHNU6.mjs.map +1 -0
  18. package/dist/{chunk-LHIG6RW7.mjs → chunk-7REW23LO.mjs} +6 -6
  19. package/dist/chunk-7REW23LO.mjs.map +1 -0
  20. package/dist/chunk-BUFV457A.mjs +103 -0
  21. package/dist/chunk-BUFV457A.mjs.map +1 -0
  22. package/dist/chunk-CD4LCDK3.mjs +27 -0
  23. package/dist/chunk-CD4LCDK3.mjs.map +1 -0
  24. package/dist/chunk-CSIXGT7P.mjs +1 -0
  25. package/dist/chunk-CVE23PMJ.mjs +1 -0
  26. package/dist/chunk-CVE23PMJ.mjs.map +1 -0
  27. package/dist/chunk-D2XZT2RA.mjs +17 -0
  28. package/dist/chunk-D2XZT2RA.mjs.map +1 -0
  29. package/dist/chunk-D7L7OLFL.mjs +65 -0
  30. package/dist/chunk-D7L7OLFL.mjs.map +1 -0
  31. package/dist/{chunk-5RXT5GLF.mjs → chunk-F6QJWZJX.mjs} +2 -2
  32. package/dist/{chunk-UYLKAPXD.mjs → chunk-GICUX46A.mjs} +2 -2
  33. package/dist/{chunk-JFTUBOIF.mjs → chunk-GIFDGUFW.mjs} +27 -9
  34. package/dist/chunk-GIFDGUFW.mjs.map +1 -0
  35. package/dist/{chunk-SF6EDUHP.mjs → chunk-HOLFVKXQ.mjs} +2 -2
  36. package/dist/chunk-J2DJ6ELO.mjs +64 -0
  37. package/dist/chunk-J2DJ6ELO.mjs.map +1 -0
  38. package/dist/{chunk-GYI4NCUY.mjs → chunk-KPNAC2WN.mjs} +2 -2
  39. package/dist/{chunk-WNYCOHSD.mjs → chunk-NAXSP4VU.mjs} +2 -2
  40. package/dist/chunk-NMW3IWZ4.mjs +65 -0
  41. package/dist/chunk-NMW3IWZ4.mjs.map +1 -0
  42. package/dist/{chunk-R6MQFVHE.mjs → chunk-O55OTMJ5.mjs} +2 -2
  43. package/dist/{chunk-E6OOFTRQ.mjs → chunk-OHPDYPZ5.mjs} +14 -8
  44. package/dist/chunk-OHPDYPZ5.mjs.map +1 -0
  45. package/dist/{chunk-B4D2GO6E.mjs → chunk-QDG2QLFV.mjs} +2 -2
  46. package/dist/{chunk-B6T36QDV.mjs → chunk-QTC4ATZD.mjs} +2 -2
  47. package/dist/{chunk-AGIY7SFP.mjs → chunk-SO7TS4TS.mjs} +2 -2
  48. package/dist/{chunk-HBGFFKP3.mjs → chunk-WVCJV74B.mjs} +2 -2
  49. package/dist/{chunk-EDPWJWQO.mjs → chunk-YQT2TN3U.mjs} +2 -2
  50. package/dist/footer/footer.js.map +1 -1
  51. package/dist/footer/footer.mjs +5 -5
  52. package/dist/footer/index.js.map +1 -1
  53. package/dist/footer/index.mjs +5 -5
  54. package/dist/form/checkbox/checkbox.d.ts +10 -1
  55. package/dist/form/checkbox/checkbox.d.ts.map +1 -1
  56. package/dist/form/checkbox/checkbox.js +167 -65
  57. package/dist/form/checkbox/checkbox.js.map +1 -1
  58. package/dist/form/checkbox/checkbox.mjs +11 -4
  59. package/dist/form/checkbox/index.js +167 -65
  60. package/dist/form/checkbox/index.js.map +1 -1
  61. package/dist/form/checkbox/index.mjs +11 -4
  62. package/dist/form/date-picker/date-picker.d.ts.map +1 -1
  63. package/dist/form/date-picker/date-picker.js +72 -39
  64. package/dist/form/date-picker/date-picker.js.map +1 -1
  65. package/dist/form/date-picker/date-picker.mjs +8 -4
  66. package/dist/form/date-picker/index.js +72 -39
  67. package/dist/form/date-picker/index.js.map +1 -1
  68. package/dist/form/date-picker/index.mjs +8 -4
  69. package/dist/form/error-message/error-message.d.ts +2 -0
  70. package/dist/form/error-message/error-message.d.ts.map +1 -1
  71. package/dist/form/error-message/error-message.js +15 -2
  72. package/dist/form/error-message/error-message.js.map +1 -1
  73. package/dist/form/error-message/error-message.mjs +3 -1
  74. package/dist/form/error-message/index.js +15 -2
  75. package/dist/form/error-message/index.js.map +1 -1
  76. package/dist/form/error-message/index.mjs +3 -1
  77. package/dist/form/error-summary/error-summary.js.map +1 -1
  78. package/dist/form/error-summary/error-summary.mjs +4 -4
  79. package/dist/form/error-summary/index.js.map +1 -1
  80. package/dist/form/error-summary/index.mjs +4 -4
  81. package/dist/form/fieldset/fieldset-description.d.ts +12 -0
  82. package/dist/form/fieldset/fieldset-description.d.ts.map +1 -0
  83. package/dist/form/fieldset/fieldset-description.js +51 -0
  84. package/dist/form/fieldset/fieldset-description.js.map +1 -0
  85. package/dist/form/fieldset/fieldset-description.mjs +8 -0
  86. package/dist/form/fieldset/fieldset-description.mjs.map +1 -0
  87. package/dist/form/fieldset/fieldset-legend.d.ts +9 -0
  88. package/dist/form/fieldset/fieldset-legend.d.ts.map +1 -0
  89. package/dist/form/fieldset/fieldset-legend.js +72 -0
  90. package/dist/form/fieldset/fieldset-legend.js.map +1 -0
  91. package/dist/form/fieldset/fieldset-legend.mjs +8 -0
  92. package/dist/form/fieldset/fieldset-legend.mjs.map +1 -0
  93. package/dist/form/fieldset/fieldset.d.ts +30 -6
  94. package/dist/form/fieldset/fieldset.d.ts.map +1 -1
  95. package/dist/form/fieldset/fieldset.js +107 -29
  96. package/dist/form/fieldset/fieldset.js.map +1 -1
  97. package/dist/form/fieldset/fieldset.mjs +9 -2
  98. package/dist/form/fieldset/index.d.ts +2 -0
  99. package/dist/form/fieldset/index.d.ts.map +1 -1
  100. package/dist/form/fieldset/index.js +111 -29
  101. package/dist/form/fieldset/index.js.map +1 -1
  102. package/dist/form/fieldset/index.mjs +16 -3
  103. package/dist/form/index.d.ts +1 -0
  104. package/dist/form/index.d.ts.map +1 -1
  105. package/dist/form/index.js +443 -252
  106. package/dist/form/index.js.map +1 -1
  107. package/dist/form/index.mjs +38 -25
  108. package/dist/form/input/index.js +99 -32
  109. package/dist/form/input/index.js.map +1 -1
  110. package/dist/form/input/index.mjs +8 -3
  111. package/dist/form/input/input.d.ts.map +1 -1
  112. package/dist/form/input/input.js +99 -32
  113. package/dist/form/input/input.js.map +1 -1
  114. package/dist/form/input/input.mjs +8 -3
  115. package/dist/form/input-group/index.js +55 -16
  116. package/dist/form/input-group/index.js.map +1 -1
  117. package/dist/form/input-group/index.mjs +7 -2
  118. package/dist/form/input-group/input-group.d.ts +8 -0
  119. package/dist/form/input-group/input-group.d.ts.map +1 -1
  120. package/dist/form/input-group/input-group.js +55 -16
  121. package/dist/form/input-group/input-group.js.map +1 -1
  122. package/dist/form/input-group/input-group.mjs +7 -2
  123. package/dist/form/radio-button/index.js +136 -80
  124. package/dist/form/radio-button/index.js.map +1 -1
  125. package/dist/form/radio-button/index.mjs +12 -5
  126. package/dist/form/radio-button/radio-button.d.ts +2 -10
  127. package/dist/form/radio-button/radio-button.d.ts.map +1 -1
  128. package/dist/form/radio-button/radio-button.js +136 -80
  129. package/dist/form/radio-button/radio-button.js.map +1 -1
  130. package/dist/form/radio-button/radio-button.mjs +12 -5
  131. package/dist/form/radio-button/radio-group.d.ts +11 -13
  132. package/dist/form/radio-button/radio-group.d.ts.map +1 -1
  133. package/dist/form/radio-button/radio-group.js +120 -42
  134. package/dist/form/radio-button/radio-group.js.map +1 -1
  135. package/dist/form/radio-button/radio-group.mjs +11 -4
  136. package/dist/form/select/index.js +88 -20
  137. package/dist/form/select/index.js.map +1 -1
  138. package/dist/form/select/index.mjs +8 -3
  139. package/dist/form/select/select.d.ts.map +1 -1
  140. package/dist/form/select/select.js +88 -20
  141. package/dist/form/select/select.js.map +1 -1
  142. package/dist/form/select/select.mjs +8 -3
  143. package/dist/form/textarea/index.js +88 -20
  144. package/dist/form/textarea/index.js.map +1 -1
  145. package/dist/form/textarea/index.mjs +8 -3
  146. package/dist/form/textarea/textarea.d.ts.map +1 -1
  147. package/dist/form/textarea/textarea.js +88 -20
  148. package/dist/form/textarea/textarea.js.map +1 -1
  149. package/dist/form/textarea/textarea.mjs +8 -3
  150. package/dist/form/validation-message/index.d.ts +3 -0
  151. package/dist/form/validation-message/index.d.ts.map +1 -0
  152. package/dist/form/validation-message/index.js +81 -0
  153. package/dist/form/validation-message/index.js.map +1 -0
  154. package/dist/form/validation-message/index.mjs +9 -0
  155. package/dist/form/validation-message/index.mjs.map +1 -0
  156. package/dist/form/validation-message/validation-message.d.ts +8 -0
  157. package/dist/form/validation-message/validation-message.d.ts.map +1 -0
  158. package/dist/form/validation-message/validation-message.js +79 -0
  159. package/dist/form/validation-message/validation-message.js.map +1 -0
  160. package/dist/form/validation-message/validation-message.mjs +8 -0
  161. package/dist/form/validation-message/validation-message.mjs.map +1 -0
  162. package/dist/index.js +652 -459
  163. package/dist/index.js.map +1 -1
  164. package/dist/index.mjs +67 -52
  165. package/dist/modal/index.js.map +1 -1
  166. package/dist/modal/index.mjs +2 -2
  167. package/dist/modal/modal.js.map +1 -1
  168. package/dist/modal/modal.mjs +2 -2
  169. package/dist/navbar/index.js.map +1 -1
  170. package/dist/navbar/index.mjs +3 -3
  171. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  172. package/dist/navbar/navbar-expandable-menu.mjs +2 -2
  173. package/dist/navbar/navbar.js.map +1 -1
  174. package/dist/navbar/navbar.mjs +3 -3
  175. package/dist/skeleton/index.js.map +1 -1
  176. package/dist/skeleton/index.mjs +3 -3
  177. package/dist/skeleton/skeleton.js.map +1 -1
  178. package/dist/skeleton/skeleton.mjs +3 -3
  179. package/dist/tabs/index.js.map +1 -1
  180. package/dist/tabs/index.mjs +3 -3
  181. package/dist/tabs/tabs-list.js.map +1 -1
  182. package/dist/tabs/tabs-list.mjs +2 -2
  183. package/dist/tabs/tabs.js.map +1 -1
  184. package/dist/tabs/tabs.mjs +3 -3
  185. package/dist/utils/auto-animate-height.js.map +1 -1
  186. package/dist/utils/auto-animate-height.mjs +2 -2
  187. package/dist/utils/index.js +11 -0
  188. package/dist/utils/index.js.map +1 -1
  189. package/dist/utils/index.mjs +4 -2
  190. package/dist/utils/utils.d.ts +4 -0
  191. package/dist/utils/utils.d.ts.map +1 -1
  192. package/dist/utils/utils.js +11 -0
  193. package/dist/utils/utils.js.map +1 -1
  194. package/dist/utils/utils.mjs +3 -1
  195. package/package.json +4 -4
  196. package/src/form/checkbox/checkbox.tsx +32 -11
  197. package/src/form/date-picker/date-picker.tsx +7 -1
  198. package/src/form/error-message/error-message.tsx +8 -14
  199. package/src/form/fieldset/fieldset-description.tsx +17 -0
  200. package/src/form/fieldset/fieldset-legend.tsx +22 -0
  201. package/src/form/fieldset/fieldset.stories.tsx +2 -1
  202. package/src/form/fieldset/fieldset.tsx +95 -26
  203. package/src/form/fieldset/index.tsx +2 -0
  204. package/src/form/index.tsx +1 -0
  205. package/src/form/input/input.tsx +23 -8
  206. package/src/form/input-group/input-group.tsx +22 -7
  207. package/src/form/radio-button/radio-button.stories.tsx +0 -1
  208. package/src/form/radio-button/radio-button.tsx +8 -34
  209. package/src/form/radio-button/radio-group.tsx +20 -19
  210. package/src/form/select/select.tsx +19 -2
  211. package/src/form/textarea/textarea.tsx +19 -2
  212. package/src/form/validation-message/index.tsx +2 -0
  213. package/src/form/validation-message/validation-message.stories.tsx +20 -0
  214. package/src/form/validation-message/validation-message.tsx +23 -0
  215. package/src/utils/utils.ts +16 -0
  216. package/dist/chunk-6BDVJ3J2.mjs +0 -37
  217. package/dist/chunk-6BDVJ3J2.mjs.map +0 -1
  218. package/dist/chunk-77M2ZTP7.mjs.map +0 -1
  219. package/dist/chunk-7T2GDVFS.mjs +0 -37
  220. package/dist/chunk-7T2GDVFS.mjs.map +0 -1
  221. package/dist/chunk-BO3EWZGA.mjs +0 -78
  222. package/dist/chunk-BO3EWZGA.mjs.map +0 -1
  223. package/dist/chunk-BOPY5K4T.mjs +0 -1
  224. package/dist/chunk-E6OOFTRQ.mjs.map +0 -1
  225. package/dist/chunk-HEDGKRGC.mjs.map +0 -1
  226. package/dist/chunk-IZFODQCF.mjs +0 -36
  227. package/dist/chunk-IZFODQCF.mjs.map +0 -1
  228. package/dist/chunk-JFTUBOIF.mjs.map +0 -1
  229. package/dist/chunk-LHIG6RW7.mjs.map +0 -1
  230. package/dist/chunk-LMF3QGSF.mjs +0 -1
  231. package/dist/chunk-Z2ZPTZ6F.mjs +0 -69
  232. package/dist/chunk-Z2ZPTZ6F.mjs.map +0 -1
  233. package/dist/chunk-Z56XN4AZ.mjs.map +0 -1
  234. package/src/form/error-message/error-message.stories.tsx +0 -20
  235. /package/dist/{chunk-BOPY5K4T.mjs.map → chunk-5M6MEYM7.mjs.map} +0 -0
  236. /package/dist/{chunk-LMF3QGSF.mjs.map → chunk-CSIXGT7P.mjs.map} +0 -0
  237. /package/dist/{chunk-5RXT5GLF.mjs.map → chunk-F6QJWZJX.mjs.map} +0 -0
  238. /package/dist/{chunk-UYLKAPXD.mjs.map → chunk-GICUX46A.mjs.map} +0 -0
  239. /package/dist/{chunk-SF6EDUHP.mjs.map → chunk-HOLFVKXQ.mjs.map} +0 -0
  240. /package/dist/{chunk-GYI4NCUY.mjs.map → chunk-KPNAC2WN.mjs.map} +0 -0
  241. /package/dist/{chunk-WNYCOHSD.mjs.map → chunk-NAXSP4VU.mjs.map} +0 -0
  242. /package/dist/{chunk-R6MQFVHE.mjs.map → chunk-O55OTMJ5.mjs.map} +0 -0
  243. /package/dist/{chunk-B4D2GO6E.mjs.map → chunk-QDG2QLFV.mjs.map} +0 -0
  244. /package/dist/{chunk-B6T36QDV.mjs.map → chunk-QTC4ATZD.mjs.map} +0 -0
  245. /package/dist/{chunk-AGIY7SFP.mjs.map → chunk-SO7TS4TS.mjs.map} +0 -0
  246. /package/dist/{chunk-HBGFFKP3.mjs.map → chunk-WVCJV74B.mjs.map} +0 -0
  247. /package/dist/{chunk-EDPWJWQO.mjs.map → chunk-YQT2TN3U.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -91,6 +91,8 @@ __export(index_exports, {
91
91
  ErrorMessage: () => ErrorMessage,
92
92
  ErrorSummary: () => ErrorSummary,
93
93
  Fieldset: () => Fieldset,
94
+ FieldsetDescription: () => FieldsetDescription,
95
+ FieldsetLegend: () => FieldsetLegend,
94
96
  Figure: () => Figure,
95
97
  Footer: () => Footer,
96
98
  FooterButtonLink: () => FooterButtonLink,
@@ -143,8 +145,10 @@ __export(index_exports, {
143
145
  Textarea: () => Textarea,
144
146
  UnorderedList: () => UnorderedList,
145
147
  VStack: () => VStack,
148
+ ValidationMessage: () => ValidationMessage,
146
149
  WarningBanner: () => WarningBanner,
147
150
  focusTrap: () => focusTrap,
151
+ getValidationMessageValue: () => getValidationMessageValue,
148
152
  inertPropValue: () => inertPropValue,
149
153
  useFieldsetContext: () => useFieldsetContext,
150
154
  useHydrated: () => useHydrated,
@@ -284,6 +288,15 @@ function useHydrated() {
284
288
  () => false
285
289
  );
286
290
  }
291
+ function getValidationMessageValue(validationMessage, errorMessage) {
292
+ if (validationMessage) {
293
+ if (typeof validationMessage === "object" && "value" in validationMessage) {
294
+ return validationMessage.value;
295
+ }
296
+ return validationMessage;
297
+ }
298
+ return errorMessage;
299
+ }
287
300
  function focusTrap(element) {
288
301
  var _a, _b;
289
302
  if (element === document.body) return () => {
@@ -1037,21 +1050,21 @@ var Figure = (0, import_react17.forwardRef)(
1037
1050
  Figure.displayName = "Figure";
1038
1051
 
1039
1052
  // src/form/checkbox/checkbox.tsx
1040
- var import_react20 = require("react");
1041
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
1053
+ var import_react23 = require("react");
1054
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1042
1055
 
1043
- // src/form/error-message/error-message.tsx
1056
+ // src/form/validation-message/validation-message.tsx
1044
1057
  var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
1045
1058
  var import_react18 = require("react");
1046
1059
  var import_jsx_runtime16 = require("react/jsx-runtime");
1047
- var ErrorMessage = (0, import_react18.forwardRef)(
1060
+ var ValidationMessage = (0, import_react18.forwardRef)(
1048
1061
  (_a, ref) => {
1049
1062
  var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
1050
1063
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1051
1064
  "div",
1052
1065
  __spreadProps(__spreadValues({
1053
1066
  "aria-live": "polite",
1054
- className: (0, import_typed_classname15.clsx)("hds-error-message", className),
1067
+ className: (0, import_typed_classname15.clsx)("hds-validation-message", className),
1055
1068
  id,
1056
1069
  ref
1057
1070
  }, rest), {
@@ -1060,137 +1073,229 @@ var ErrorMessage = (0, import_react18.forwardRef)(
1060
1073
  );
1061
1074
  }
1062
1075
  );
1076
+ ValidationMessage.displayName = "ValidationMessage";
1077
+
1078
+ // src/form/error-message/error-message.tsx
1079
+ var import_react19 = require("react");
1080
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1081
+ var ErrorMessage = (0, import_react19.forwardRef)(
1082
+ (_a, ref) => {
1083
+ var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
1084
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ValidationMessage, __spreadProps(__spreadValues({ id, "data-color": "error", className }, rest), { ref, children }));
1085
+ }
1086
+ );
1063
1087
  ErrorMessage.displayName = "ErrorMessage";
1064
1088
 
1065
1089
  // src/form/fieldset/fieldset.tsx
1066
- var import_react19 = require("react");
1090
+ var import_react22 = require("react");
1091
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
1092
+
1093
+ // src/form/fieldset/fieldset-description.tsx
1094
+ var import_react20 = require("react");
1095
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1096
+ var FieldsetDescription = (0, import_react20.forwardRef)(
1097
+ function FieldsetDescription2(rest, ref) {
1098
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", __spreadValues({ className: "hds-fieldset__description", ref }, rest));
1099
+ }
1100
+ );
1101
+
1102
+ // src/form/fieldset/fieldset-legend.tsx
1103
+ var import_react21 = require("react");
1067
1104
  var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
1068
- var import_jsx_runtime17 = require("react/jsx-runtime");
1069
- var FieldsetContext = (0, import_react19.createContext)({ hasError: false });
1070
- var useFieldsetContext = () => (0, import_react19.useContext)(FieldsetContext);
1071
- var Fieldset = (0, import_react19.forwardRef)(function Fieldset2(_a, ref) {
1105
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1106
+ var FieldsetLegend = (0, import_react21.forwardRef)(
1107
+ function FieldsetLegend2(_a, ref) {
1108
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1109
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1110
+ "legend",
1111
+ __spreadValues({
1112
+ className: (0, import_typed_classname16.clsx)("hds-fieldset__legend", className),
1113
+ ref
1114
+ }, rest)
1115
+ );
1116
+ }
1117
+ );
1118
+ FieldsetLegend.displayName = "Fieldset.Legend";
1119
+
1120
+ // src/form/fieldset/fieldset.tsx
1121
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1122
+ var FieldsetContext = (0, import_react22.createContext)({
1123
+ hasError: false,
1124
+ size: ""
1125
+ });
1126
+ var useFieldsetContext = () => (0, import_react22.useContext)(FieldsetContext);
1127
+ var Fieldset = (0, import_react22.forwardRef)(function Fieldset2(_a, ref) {
1072
1128
  var _b = _a, {
1073
1129
  className,
1074
1130
  style,
1131
+ "data-color": dataColor = void 0,
1132
+ validationMessage,
1133
+ validationMessageProps,
1075
1134
  errorMessage,
1076
1135
  errorMessageProps,
1077
- legendProps: _c = {}
1078
- } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
1136
+ legendProps,
1079
1137
  legend,
1138
+ size = "",
1080
1139
  children
1081
- } = _e, rest = __objRest(_e, [
1140
+ } = _b, rest = __objRest(_b, [
1082
1141
  "className",
1083
1142
  "style",
1143
+ "data-color",
1144
+ "validationMessage",
1145
+ "validationMessageProps",
1084
1146
  "errorMessage",
1085
1147
  "errorMessageProps",
1086
1148
  "legendProps",
1087
1149
  "legend",
1150
+ "size",
1088
1151
  "children"
1089
1152
  ]);
1090
- const errorMessageId = (0, import_react19.useId)();
1091
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1153
+ const validationMessageId = (0, import_react22.useId)();
1154
+ const validationColor = errorMessage ? "error" : dataColor;
1155
+ const validationMessageValue = getValidationMessageValue(validationMessage, errorMessage);
1156
+ const childArray = import_react22.Children.toArray(children);
1157
+ const legendChild = childArray.find(
1158
+ (child) => (0, import_react22.isValidElement)(child) && child.type === FieldsetLegend
1159
+ );
1160
+ const contentChildren = legendChild ? childArray.filter((child) => child !== legendChild) : childArray;
1161
+ let renderedLegend = null;
1162
+ if (legendChild) {
1163
+ renderedLegend = (0, import_react22.cloneElement)(legendChild, __spreadProps(__spreadValues(__spreadValues({}, legendProps), legendChild.props), {
1164
+ className: (0, import_typed_classname17.clsx)(
1165
+ legendProps == null ? void 0 : legendProps.className,
1166
+ legendChild.props.className
1167
+ )
1168
+ }));
1169
+ } else if (legend !== void 0) {
1170
+ renderedLegend = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FieldsetLegend, __spreadProps(__spreadValues({}, legendProps), { children: legend }));
1171
+ }
1172
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1092
1173
  "fieldset",
1093
1174
  __spreadProps(__spreadValues({
1094
- "aria-describedby": errorMessage ? errorMessageId : void 0,
1175
+ "aria-describedby": validationMessageValue ? validationMessageId : void 0,
1095
1176
  "aria-invalid": errorMessage ? true : void 0,
1096
- className: (0, import_typed_classname16.clsx)("hds-fieldset", className),
1177
+ className: (0, import_typed_classname17.clsx)("hds-fieldset", { [`hds-fieldset--${size}`]: size }, className),
1178
+ "data-color": validationColor,
1097
1179
  ref,
1098
1180
  style
1099
1181
  }, rest), {
1100
1182
  children: [
1101
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1102
- "legend",
1183
+ renderedLegend,
1184
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage), size }, children: contentChildren }),
1185
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1186
+ ValidationMessage,
1103
1187
  __spreadProps(__spreadValues({
1104
- className: (0, import_typed_classname16.clsx)(
1105
- "hds-fieldset__legend",
1106
- { [`hds-fieldset__legend--${legendSize}`]: legendSize },
1107
- legendClassName
1108
- )
1109
- }, legendProps), {
1110
- children: legend
1188
+ id: validationMessageId
1189
+ }, validationMessageProps != null ? validationMessageProps : errorMessageProps), {
1190
+ children: validationMessageValue
1111
1191
  })
1112
- ),
1113
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage) }, children }),
1114
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1192
+ )
1115
1193
  ]
1116
1194
  })
1117
1195
  );
1118
1196
  });
1197
+ Fieldset.Description = FieldsetDescription;
1198
+ Fieldset.Legend = FieldsetLegend;
1119
1199
 
1120
1200
  // src/form/checkbox/checkbox.tsx
1121
- var import_jsx_runtime18 = require("react/jsx-runtime");
1122
- var Checkbox = (0, import_react20.forwardRef)(
1201
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1202
+ var Checkbox = (0, import_react23.forwardRef)(
1123
1203
  (_a, ref) => {
1124
1204
  var _b = _a, {
1125
1205
  variant = "plain",
1126
1206
  hasError: hasErrorProp,
1207
+ validationMessage,
1208
+ validationMessageProps,
1127
1209
  errorMessage,
1128
1210
  errorMessageProps,
1129
1211
  title,
1130
1212
  children,
1131
- className
1213
+ className,
1214
+ size = ""
1132
1215
  } = _b, rest = __objRest(_b, [
1133
1216
  "variant",
1134
1217
  "hasError",
1218
+ "validationMessage",
1219
+ "validationMessageProps",
1135
1220
  "errorMessage",
1136
1221
  "errorMessageProps",
1137
1222
  "title",
1138
1223
  "children",
1139
- "className"
1224
+ "className",
1225
+ "size"
1140
1226
  ]);
1141
- const errorMessageId = (0, import_react20.useId)();
1142
- const { hasError: hasFieldsetError } = useFieldsetContext();
1227
+ const validationMessageId = (0, import_react23.useId)();
1228
+ const { hasError: hasFieldsetError, size: fieldsetSize } = useFieldsetContext();
1143
1229
  const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
1144
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: (0, import_typed_classname17.clsx)("hds-checkbox-wrapper"), children: [
1145
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1146
- "div",
1147
- {
1148
- className: (0, import_typed_classname17.clsx)(
1149
- "hds-checkbox",
1230
+ const effectiveSize = size || fieldsetSize;
1231
+ const validationMessageValue = getValidationMessageValue(validationMessage, errorMessage);
1232
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1233
+ "div",
1234
+ {
1235
+ className: (0, import_typed_classname18.clsx)("hds-checkbox-wrapper", {
1236
+ "hds-checkbox-wrapper--small": effectiveSize === "small"
1237
+ }),
1238
+ children: [
1239
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1240
+ "div",
1150
1241
  {
1151
- [`hds-checkbox--${variant}`]: variant === "bounding-box",
1152
- "hds-checkbox--error": hasError
1153
- },
1154
- className
1155
- ),
1156
- children: [
1157
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { children: [
1158
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1159
- "input",
1160
- __spreadProps(__spreadValues({}, rest), {
1161
- "aria-invalid": hasError ? true : void 0,
1162
- "aria-describedby": errorMessage ? errorMessageId : void 0,
1163
- ref,
1164
- type: "checkbox"
1165
- })
1242
+ className: (0, import_typed_classname18.clsx)(
1243
+ "hds-checkbox",
1244
+ {
1245
+ [`hds-checkbox--${variant}`]: variant === "bounding-box"
1246
+ },
1247
+ className
1166
1248
  ),
1167
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
1168
- title ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
1169
- ] }),
1170
- title ? children : null
1171
- ]
1172
- }
1173
- ),
1174
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1175
- ] });
1249
+ children: [
1250
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { children: [
1251
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1252
+ "input",
1253
+ __spreadValues({
1254
+ "aria-invalid": hasError ? true : void 0,
1255
+ "aria-describedby": validationMessageValue ? validationMessageId : void 0,
1256
+ ref,
1257
+ type: "checkbox"
1258
+ }, rest)
1259
+ ),
1260
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
1261
+ title ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
1262
+ ] }),
1263
+ title ? children : null
1264
+ ]
1265
+ }
1266
+ ),
1267
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1268
+ ValidationMessage,
1269
+ __spreadProps(__spreadValues({
1270
+ id: validationMessageId
1271
+ }, validationMessageProps != null ? validationMessageProps : errorMessageProps), {
1272
+ children: validationMessageValue
1273
+ })
1274
+ )
1275
+ ]
1276
+ }
1277
+ );
1176
1278
  }
1177
1279
  );
1178
1280
  Checkbox.displayName = "Checkbox";
1179
1281
 
1180
1282
  // src/form/date-picker/date-picker.tsx
1181
- var import_react22 = require("react");
1182
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1283
+ var import_react25 = require("react");
1284
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1183
1285
 
1184
1286
  // src/form/input-group/input-group.tsx
1185
- var import_react21 = require("react");
1186
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1187
- var import_jsx_runtime19 = require("react/jsx-runtime");
1188
- var InputGroup = (0, import_react21.forwardRef)(function InputGroup2(_a, ref) {
1287
+ var import_react24 = require("react");
1288
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1289
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1290
+ var InputGroup = (0, import_react24.forwardRef)(function InputGroup2(_a, ref) {
1189
1291
  var _b = _a, {
1190
1292
  id,
1191
1293
  className,
1192
1294
  style,
1295
+ "data-color": dataColor = void 0,
1193
1296
  size = "large",
1297
+ validationMessage,
1298
+ validationMessageProps,
1194
1299
  errorMessage,
1195
1300
  errorMessageProps,
1196
1301
  labelProps: _c = {}
@@ -1203,7 +1308,10 @@ var InputGroup = (0, import_react21.forwardRef)(function InputGroup2(_a, ref) {
1203
1308
  "id",
1204
1309
  "className",
1205
1310
  "style",
1311
+ "data-color",
1206
1312
  "size",
1313
+ "validationMessage",
1314
+ "validationMessageProps",
1207
1315
  "errorMessage",
1208
1316
  "errorMessageProps",
1209
1317
  "labelProps",
@@ -1212,72 +1320,83 @@ var InputGroup = (0, import_react21.forwardRef)(function InputGroup2(_a, ref) {
1212
1320
  "readOnly",
1213
1321
  "children"
1214
1322
  ]);
1215
- const errorMessageId = (0, import_react21.useId)();
1216
- const inputId = (0, import_react21.useId)();
1323
+ const validationMessageId = (0, import_react24.useId)();
1324
+ const inputId = (0, import_react24.useId)();
1325
+ const validationColor = errorMessage ? "error" : dataColor;
1326
+ const validationMessageValue = getValidationMessageValue(validationMessage, errorMessage);
1217
1327
  const renderInput = () => {
1218
1328
  var _a2;
1219
1329
  const inputProps = {
1220
- "aria-describedby": errorMessage ? errorMessageId : void 0,
1330
+ "aria-describedby": validationMessage ? validationMessageId : void 0,
1221
1331
  "aria-invalid": errorMessage ? true : void 0,
1222
1332
  id: id != null ? id : inputId,
1223
- className: (0, import_typed_classname18.clsx)("hds-input-group__input")
1333
+ className: (0, import_typed_classname19.clsx)("hds-input-group__input")
1224
1334
  };
1225
1335
  if (typeof children === "function") {
1226
1336
  return children(inputProps);
1227
1337
  }
1228
- const input = import_react21.Children.toArray(children)[0];
1229
- if (!(0, import_react21.isValidElement)(input)) {
1338
+ const input = import_react24.Children.toArray(children)[0];
1339
+ if (!(0, import_react24.isValidElement)(input)) {
1230
1340
  return;
1231
1341
  }
1232
- return (0, import_react21.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
1342
+ return (0, import_react24.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
1233
1343
  className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
1234
1344
  }));
1235
1345
  };
1236
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1346
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1237
1347
  "div",
1238
1348
  __spreadProps(__spreadValues({
1239
- className: (0, import_typed_classname18.clsx)(
1349
+ className: (0, import_typed_classname19.clsx)(
1240
1350
  "hds-input-group",
1241
1351
  {
1242
- [`hds-input-group--${size}`]: size,
1243
- "hds-input-group--error": errorMessage
1352
+ [`hds-input-group--${size}`]: size
1244
1353
  },
1245
1354
  className
1246
1355
  ),
1247
1356
  ref,
1248
- style
1357
+ style,
1358
+ "data-color": validationColor
1249
1359
  }, rest), {
1250
1360
  children: [
1251
- label !== null && label !== void 0 && label !== false && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1361
+ label !== null && label !== void 0 && label !== false && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1252
1362
  "label",
1253
1363
  __spreadProps(__spreadValues({
1254
- className: (0, import_typed_classname18.clsx)("hds-input-group__label", labelClassName)
1364
+ className: (0, import_typed_classname19.clsx)("hds-input-group__label", labelClassName)
1255
1365
  }, labelProps), {
1256
1366
  htmlFor: id != null ? id : inputId,
1257
1367
  children: label
1258
1368
  })
1259
1369
  ),
1260
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1370
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1261
1371
  "div",
1262
1372
  {
1263
- className: (0, import_typed_classname18.clsx)("hds-input-group__input-wrapper"),
1373
+ className: (0, import_typed_classname19.clsx)("hds-input-group__input-wrapper"),
1264
1374
  "data-disabled": disabled,
1265
1375
  "data-readonly": readOnly,
1266
1376
  children: renderInput()
1267
1377
  }
1268
1378
  ),
1269
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ErrorMessage, __spreadProps(__spreadValues({ id: errorMessageId }, errorMessageProps), { children: errorMessage }))
1379
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1380
+ ValidationMessage,
1381
+ __spreadProps(__spreadValues({
1382
+ id: validationMessageId
1383
+ }, validationMessageProps != null ? validationMessageProps : errorMessageProps), {
1384
+ children: validationMessageValue
1385
+ })
1386
+ )
1270
1387
  ]
1271
1388
  })
1272
1389
  );
1273
1390
  });
1274
1391
 
1275
1392
  // src/form/date-picker/date-picker.tsx
1276
- var import_jsx_runtime20 = require("react/jsx-runtime");
1277
- var DatePicker = (0, import_react22.forwardRef)(function DatePicker2(_a, ref) {
1393
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1394
+ var DatePicker = (0, import_react25.forwardRef)(function DatePicker2(_a, ref) {
1278
1395
  var _b = _a, {
1279
1396
  className,
1280
1397
  size,
1398
+ validationMessage,
1399
+ validationMessageProps,
1281
1400
  errorMessage,
1282
1401
  labelProps,
1283
1402
  label,
@@ -1285,10 +1404,13 @@ var DatePicker = (0, import_react22.forwardRef)(function DatePicker2(_a, ref) {
1285
1404
  style,
1286
1405
  disabled,
1287
1406
  readOnly,
1407
+ "data-color": dataColor,
1288
1408
  calendarButtonTitle = "\xC5pne kalender"
1289
1409
  } = _b, rest = __objRest(_b, [
1290
1410
  "className",
1291
1411
  "size",
1412
+ "validationMessage",
1413
+ "validationMessageProps",
1292
1414
  "errorMessage",
1293
1415
  "labelProps",
1294
1416
  "label",
@@ -1296,15 +1418,18 @@ var DatePicker = (0, import_react22.forwardRef)(function DatePicker2(_a, ref) {
1296
1418
  "style",
1297
1419
  "disabled",
1298
1420
  "readOnly",
1421
+ "data-color",
1299
1422
  "calendarButtonTitle"
1300
1423
  ]);
1301
- const inputRef = (0, import_react22.useRef)(null);
1424
+ const inputRef = (0, import_react25.useRef)(null);
1302
1425
  const mergedRef = useMergeRefs([inputRef, ref]);
1303
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1426
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1304
1427
  InputGroup,
1305
1428
  {
1306
- className: (0, import_typed_classname19.clsx)("hds-date-picker", className),
1429
+ className: (0, import_typed_classname20.clsx)("hds-date-picker", className),
1307
1430
  disabled,
1431
+ validationMessage,
1432
+ validationMessageProps,
1308
1433
  errorMessage,
1309
1434
  id,
1310
1435
  label,
@@ -1312,20 +1437,21 @@ var DatePicker = (0, import_react22.forwardRef)(function DatePicker2(_a, ref) {
1312
1437
  readOnly,
1313
1438
  style,
1314
1439
  size,
1315
- children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1316
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1440
+ "data-color": dataColor,
1441
+ children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1442
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1317
1443
  "input",
1318
- __spreadProps(__spreadValues(__spreadValues({}, rest), inputProps), {
1444
+ __spreadValues(__spreadProps(__spreadValues({}, inputProps), {
1319
1445
  disabled,
1320
1446
  readOnly,
1321
1447
  ref: mergedRef,
1322
1448
  type: "date"
1323
- })
1449
+ }), rest)
1324
1450
  ),
1325
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1451
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1326
1452
  "button",
1327
1453
  {
1328
- className: (0, import_typed_classname19.clsx)("hds-date-picker__calendar-button"),
1454
+ className: (0, import_typed_classname20.clsx)("hds-date-picker__calendar-button"),
1329
1455
  type: "button",
1330
1456
  title: calendarButtonTitle,
1331
1457
  onClick: () => {
@@ -1341,22 +1467,22 @@ var DatePicker = (0, import_react22.forwardRef)(function DatePicker2(_a, ref) {
1341
1467
  DatePicker.displayName = "DatePicker";
1342
1468
 
1343
1469
  // src/form/error-summary/error-summary.tsx
1344
- var import_react26 = require("react");
1345
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1470
+ var import_react29 = require("react");
1471
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1346
1472
  var import_react_slot9 = require("@radix-ui/react-slot");
1347
1473
 
1348
1474
  // src/list/list.tsx
1349
- var import_react23 = require("react");
1350
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1351
- var import_jsx_runtime21 = require("react/jsx-runtime");
1352
- var UnorderedList = (0, import_react23.forwardRef)(
1475
+ var import_react26 = require("react");
1476
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1477
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1478
+ var UnorderedList = (0, import_react26.forwardRef)(
1353
1479
  (_a, ref) => {
1354
1480
  var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
1355
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1481
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1356
1482
  "ul",
1357
1483
  __spreadValues({
1358
1484
  ref,
1359
- className: (0, import_typed_classname20.clsx)(
1485
+ className: (0, import_typed_classname21.clsx)(
1360
1486
  "hds-list",
1361
1487
  size !== "default" && `hds-list--${size}`,
1362
1488
  className
@@ -1366,14 +1492,14 @@ var UnorderedList = (0, import_react23.forwardRef)(
1366
1492
  }
1367
1493
  );
1368
1494
  UnorderedList.displayName = "UnorderedList";
1369
- var OrderedList = (0, import_react23.forwardRef)(
1495
+ var OrderedList = (0, import_react26.forwardRef)(
1370
1496
  (_a, ref) => {
1371
1497
  var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1372
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1498
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1373
1499
  "ol",
1374
1500
  __spreadValues({
1375
1501
  ref,
1376
- className: (0, import_typed_classname20.clsx)(
1502
+ className: (0, import_typed_classname21.clsx)(
1377
1503
  "hds-list",
1378
1504
  size !== "default" && `hds-list--${size}`,
1379
1505
  className
@@ -1385,17 +1511,17 @@ var OrderedList = (0, import_react23.forwardRef)(
1385
1511
  OrderedList.displayName = "OrderedList";
1386
1512
 
1387
1513
  // src/list/link-list.tsx
1388
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1389
- var import_react24 = require("react");
1390
- var import_jsx_runtime22 = require("react/jsx-runtime");
1391
- var LinkList = (0, import_react24.forwardRef)(
1514
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1515
+ var import_react27 = require("react");
1516
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1517
+ var LinkList = (0, import_react27.forwardRef)(
1392
1518
  (_a, ref) => {
1393
1519
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1394
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1520
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1395
1521
  UnorderedList,
1396
1522
  __spreadValues({
1397
1523
  ref,
1398
- className: (0, import_typed_classname21.clsx)("hds-list--link-list", className)
1524
+ className: (0, import_typed_classname22.clsx)("hds-list--link-list", className)
1399
1525
  }, rest)
1400
1526
  );
1401
1527
  }
@@ -1404,18 +1530,18 @@ LinkList.displayName = "LinkList";
1404
1530
 
1405
1531
  // src/link/link.tsx
1406
1532
  var React3 = require("react");
1407
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1408
- var import_react25 = require("react");
1533
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1534
+ var import_react28 = require("react");
1409
1535
  var import_react_slot8 = require("@radix-ui/react-slot");
1410
- var import_jsx_runtime23 = require("react/jsx-runtime");
1411
- var Link = (0, import_react25.forwardRef)(
1536
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1537
+ var Link = (0, import_react28.forwardRef)(
1412
1538
  (_a, ref) => {
1413
1539
  var _b = _a, { asChild, children, variant = "underline", size = "default", icon, className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "icon", "className"]);
1414
1540
  const Component = asChild ? import_react_slot8.Slot : "a";
1415
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1541
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1416
1542
  Component,
1417
1543
  __spreadProps(__spreadValues({
1418
- className: (0, import_typed_classname22.clsx)(
1544
+ className: (0, import_typed_classname23.clsx)(
1419
1545
  "hds-link",
1420
1546
  variant !== "underline" && `hds-link--${variant}`,
1421
1547
  size !== "default" && `hds-link--${size}`,
@@ -1474,30 +1600,30 @@ function labelForInput(input) {
1474
1600
  }
1475
1601
 
1476
1602
  // src/form/error-summary/error-summary.tsx
1477
- var import_jsx_runtime24 = require("react/jsx-runtime");
1478
- var ErrorSummaryHeading = (0, import_react26.forwardRef)((_a, ref) => {
1603
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1604
+ var ErrorSummaryHeading = (0, import_react29.forwardRef)((_a, ref) => {
1479
1605
  var _b = _a, { asChild, children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["asChild", "children", "as", "autoFocus"]);
1480
- const focusRef = (0, import_react26.useRef)(null);
1606
+ const focusRef = (0, import_react29.useRef)(null);
1481
1607
  const mergedRef = useMergeRefs([focusRef, ref]);
1482
1608
  const Component = asChild ? import_react_slot9.Slot : Tag;
1483
- (0, import_react26.useEffect)(() => {
1609
+ (0, import_react29.useEffect)(() => {
1484
1610
  setTimeout(() => {
1485
1611
  if (focusRef.current && autoFocus) {
1486
1612
  focusRef.current.focus();
1487
1613
  }
1488
1614
  });
1489
1615
  }, []);
1490
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname23.clsx)(`hds-error-summary__title`), ref: mergedRef, tabIndex: -1 }, rest), { children }));
1616
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)(`hds-error-summary__title`), ref: mergedRef, tabIndex: -1 }, rest), { children }));
1491
1617
  });
1492
1618
  ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1493
- var ErrorSummaryList = (0, import_react26.forwardRef)(
1619
+ var ErrorSummaryList = (0, import_react29.forwardRef)(
1494
1620
  (_a, ref) => {
1495
1621
  var _b = _a, { children, size = "small" } = _b, rest = __objRest(_b, ["children", "size"]);
1496
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref }, rest), { children }));
1622
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref }, rest), { children }));
1497
1623
  }
1498
1624
  );
1499
1625
  ErrorSummaryList.displayName = "ErrorSummary.List";
1500
- var ErrorSummaryItem = (0, import_react26.forwardRef)(
1626
+ var ErrorSummaryItem = (0, import_react29.forwardRef)(
1501
1627
  (_a, ref) => {
1502
1628
  var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1503
1629
  function onClick(e) {
@@ -1507,20 +1633,20 @@ var ErrorSummaryItem = (0, import_react26.forwardRef)(
1507
1633
  e.preventDefault();
1508
1634
  }
1509
1635
  }
1510
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("li", __spreadProps(__spreadValues({ className: (0, import_typed_classname23.clsx)(`hds-error-summary__list-item`), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1636
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)(`hds-error-summary__list-item`), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1511
1637
  }
1512
1638
  );
1513
1639
  ErrorSummaryItem.displayName = "ErrorSummary.Item";
1514
- var ErrorSummary = (0, import_react26.forwardRef)(
1640
+ var ErrorSummary = (0, import_react29.forwardRef)(
1515
1641
  (_a, ref) => {
1516
1642
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1517
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1643
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1518
1644
  Box,
1519
1645
  __spreadProps(__spreadValues({
1520
1646
  "data-color": "error",
1521
1647
  ref
1522
1648
  }, rest), {
1523
- className: (0, import_typed_classname23.clsx)(`hds-error-summary`, className),
1649
+ className: (0, import_typed_classname24.clsx)(`hds-error-summary`, className),
1524
1650
  children
1525
1651
  })
1526
1652
  );
@@ -1532,52 +1658,80 @@ ErrorSummary.List = ErrorSummaryList;
1532
1658
  ErrorSummary.Item = ErrorSummaryItem;
1533
1659
 
1534
1660
  // src/form/input/input.tsx
1535
- var import_react27 = require("react");
1536
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1537
- var import_jsx_runtime25 = require("react/jsx-runtime");
1538
- var Input = (0, import_react27.forwardRef)(function Input2(_a, ref) {
1539
- var _b = _a, { className, size, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "size", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1540
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1541
- InputGroup,
1542
- {
1543
- className: (0, import_typed_classname24.clsx)("hds-input", className),
1544
- disabled,
1661
+ var import_react30 = require("react");
1662
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1663
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1664
+ var Input = (0, import_react30.forwardRef)(
1665
+ (_a, ref) => {
1666
+ var _b = _a, {
1667
+ className,
1668
+ size,
1669
+ validationMessage,
1545
1670
  errorMessage,
1546
- id,
1547
- label,
1548
1671
  labelProps,
1549
- readOnly,
1672
+ label,
1673
+ id,
1550
1674
  style,
1551
- size,
1552
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1553
- }
1554
- );
1555
- });
1675
+ disabled,
1676
+ readOnly,
1677
+ "data-color": dataColor
1678
+ } = _b, rest = __objRest(_b, [
1679
+ "className",
1680
+ "size",
1681
+ "validationMessage",
1682
+ "errorMessage",
1683
+ "labelProps",
1684
+ "label",
1685
+ "id",
1686
+ "style",
1687
+ "disabled",
1688
+ "readOnly",
1689
+ "data-color"
1690
+ ]);
1691
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1692
+ InputGroup,
1693
+ {
1694
+ className: (0, import_typed_classname25.clsx)("hds-input", className),
1695
+ disabled,
1696
+ validationMessage,
1697
+ errorMessage,
1698
+ id,
1699
+ label,
1700
+ labelProps,
1701
+ readOnly,
1702
+ style,
1703
+ size,
1704
+ "data-color": dataColor,
1705
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", __spreadValues({ disabled, readOnly, ref }, rest))
1706
+ }
1707
+ );
1708
+ }
1709
+ );
1556
1710
  Input.displayName = "Input";
1557
1711
 
1558
1712
  // src/form/radio-button/radio-button.tsx
1559
- var import_react29 = require("react");
1560
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1713
+ var import_react32 = require("react");
1714
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1561
1715
 
1562
1716
  // src/form/radio-button/radio-group.tsx
1563
- var import_react28 = require("react");
1564
- var import_jsx_runtime26 = require("react/jsx-runtime");
1565
- var RadioGroupContext = (0, import_react28.createContext)({
1717
+ var import_react31 = require("react");
1718
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1719
+ var RadioGroupContext = (0, import_react31.createContext)({
1566
1720
  name: void 0,
1567
- hasError: false,
1568
- onChange: () => {
1569
- return void 0;
1570
- }
1721
+ onChange: () => void 0,
1722
+ size: void 0
1571
1723
  });
1572
- var useRadioGroupContext = () => (0, import_react28.useContext)(RadioGroupContext);
1573
- var RadioGroup = (0, import_react28.forwardRef)(function RadioGroup2(_a, ref) {
1574
- var _b = _a, { name, value, errorMessage, onChange, children } = _b, rest = __objRest(_b, ["name", "value", "errorMessage", "onChange", "children"]);
1575
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(RadioGroupContext.Provider, { value: { name, value, hasError: Boolean(errorMessage), onChange }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Fieldset, __spreadProps(__spreadValues({ errorMessage }, rest), { ref, children })) });
1724
+ var useRadioGroupContext = () => (0, import_react31.useContext)(RadioGroupContext);
1725
+ var RadioGroup = (0, import_react31.forwardRef)(function RadioGroup2(_a, ref) {
1726
+ var _b = _a, { name, value, onChange, children, size } = _b, rest = __objRest(_b, ["name", "value", "onChange", "children", "size"]);
1727
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadioGroupContext.Provider, { value: { name, value, onChange, size }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Fieldset, __spreadProps(__spreadValues({ size }, rest), { ref, children })) });
1576
1728
  });
1729
+ RadioGroup.Description = FieldsetDescription;
1730
+ RadioGroup.Legend = FieldsetLegend;
1577
1731
  RadioGroup.displayName = "RadioGroup";
1578
1732
 
1579
1733
  // src/form/radio-button/radio-button.tsx
1580
- var import_jsx_runtime27 = require("react/jsx-runtime");
1734
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1581
1735
  var isChecked = ({
1582
1736
  checked,
1583
1737
  selectedValue,
@@ -1587,48 +1741,25 @@ var isChecked = ({
1587
1741
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1588
1742
  return void 0;
1589
1743
  };
1590
- var RadioButton = (0, import_react29.forwardRef)(
1744
+ var RadioButton = (0, import_react32.forwardRef)(
1591
1745
  (_a, ref) => {
1592
- var _b = _a, {
1593
- checked,
1594
- value,
1595
- variant = "plain",
1596
- hasError: hasErrorProp,
1597
- title,
1598
- children,
1599
- className
1600
- } = _b, rest = __objRest(_b, [
1601
- "checked",
1602
- "value",
1603
- "variant",
1604
- "hasError",
1605
- "title",
1606
- "children",
1607
- "className"
1608
- ]);
1609
- const _a2 = useRadioGroupContext(), {
1610
- value: selectedValue,
1611
- hasError: hasRadioGroupError
1612
- } = _a2, context = __objRest(_a2, [
1613
- "value",
1614
- "hasError"
1615
- ]);
1616
- const { hasError: hasFieldsetError } = useFieldsetContext();
1617
- const hasError = hasFieldsetError || hasRadioGroupError || hasErrorProp;
1618
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1746
+ var _b = _a, { checked, value, variant = "plain", title, children, className, size = "" } = _b, rest = __objRest(_b, ["checked", "value", "variant", "title", "children", "className", "size"]);
1747
+ const _a2 = useRadioGroupContext(), { value: selectedValue, size: groupSize } = _a2, context = __objRest(_a2, ["value", "size"]);
1748
+ const effectiveSize = size || groupSize;
1749
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1619
1750
  "div",
1620
1751
  {
1621
- className: (0, import_typed_classname25.clsx)(
1752
+ className: (0, import_typed_classname26.clsx)(
1622
1753
  "hds-radio-button",
1623
1754
  {
1624
1755
  [`hds-radio-button--${variant}`]: variant === "bounding-box",
1625
- "hds-radio-button--error": hasError
1756
+ [`hds-radio-button--${effectiveSize}`]: effectiveSize === "small"
1626
1757
  },
1627
1758
  className
1628
1759
  ),
1629
1760
  children: [
1630
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
1631
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1761
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { children: [
1762
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1632
1763
  "input",
1633
1764
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1634
1765
  checked: isChecked({ checked, selectedValue, value }),
@@ -1637,8 +1768,8 @@ var RadioButton = (0, import_react29.forwardRef)(
1637
1768
  type: "radio"
1638
1769
  })
1639
1770
  ),
1640
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1641
- title ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1771
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1772
+ title ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1642
1773
  ] }),
1643
1774
  title ? children : null
1644
1775
  ]
@@ -1649,16 +1780,16 @@ var RadioButton = (0, import_react29.forwardRef)(
1649
1780
  RadioButton.displayName = "RadioButton";
1650
1781
 
1651
1782
  // src/form/search-wrapper/search-wrapper.tsx
1652
- var import_react30 = require("react");
1653
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1654
- var import_jsx_runtime28 = require("react/jsx-runtime");
1655
- var SearchWrapper = (0, import_react30.forwardRef)(function SearchWrapper2(_a, ref) {
1783
+ var import_react33 = require("react");
1784
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1785
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1786
+ var SearchWrapper = (0, import_react33.forwardRef)(function SearchWrapper2(_a, ref) {
1656
1787
  var _b = _a, { id, className, style, children } = _b, rest = __objRest(_b, ["id", "className", "style", "children"]);
1657
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1788
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1658
1789
  "div",
1659
1790
  __spreadProps(__spreadValues({
1660
1791
  id,
1661
- className: (0, import_typed_classname26.clsx)("hds-search-wrapper", className),
1792
+ className: (0, import_typed_classname27.clsx)("hds-search-wrapper", className),
1662
1793
  ref,
1663
1794
  style
1664
1795
  }, rest), {
@@ -1669,39 +1800,96 @@ var SearchWrapper = (0, import_react30.forwardRef)(function SearchWrapper2(_a, r
1669
1800
  SearchWrapper.displayName = "SearchWrapper";
1670
1801
 
1671
1802
  // src/form/select/select.tsx
1672
- var import_react31 = require("react");
1673
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1674
- var import_jsx_runtime29 = require("react/jsx-runtime");
1675
- var Select = (0, import_react31.forwardRef)(function Select2(_a, ref) {
1676
- var _b = _a, { className, size, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["className", "size", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
1677
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1803
+ var import_react34 = require("react");
1804
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1805
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1806
+ var Select = (0, import_react34.forwardRef)(function Select2(_a, ref) {
1807
+ var _b = _a, {
1808
+ className,
1809
+ size,
1810
+ validationMessage,
1811
+ validationMessageProps,
1812
+ errorMessage,
1813
+ labelProps,
1814
+ label,
1815
+ id,
1816
+ style,
1817
+ disabled,
1818
+ "data-color": dataColor,
1819
+ children
1820
+ } = _b, rest = __objRest(_b, [
1821
+ "className",
1822
+ "size",
1823
+ "validationMessage",
1824
+ "validationMessageProps",
1825
+ "errorMessage",
1826
+ "labelProps",
1827
+ "label",
1828
+ "id",
1829
+ "style",
1830
+ "disabled",
1831
+ "data-color",
1832
+ "children"
1833
+ ]);
1834
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1678
1835
  InputGroup,
1679
1836
  {
1680
- className: (0, import_typed_classname27.clsx)("hds-select", className),
1837
+ className: (0, import_typed_classname28.clsx)("hds-select", className),
1681
1838
  disabled,
1839
+ validationMessage,
1840
+ validationMessageProps,
1682
1841
  errorMessage,
1683
1842
  id,
1684
1843
  label,
1685
1844
  labelProps,
1686
1845
  style,
1687
1846
  size,
1688
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
1847
+ "data-color": dataColor,
1848
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("select", __spreadProps(__spreadValues({ disabled, ref }, rest), { children }))
1689
1849
  }
1690
1850
  );
1691
1851
  });
1692
1852
  Select.displayName = "Select";
1693
1853
 
1694
1854
  // src/form/textarea/textarea.tsx
1695
- var import_react32 = require("react");
1696
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1697
- var import_jsx_runtime30 = require("react/jsx-runtime");
1698
- var Textarea = (0, import_react32.forwardRef)(function Textarea2(_a, ref) {
1699
- var _b = _a, { className, size, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "size", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1700
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1855
+ var import_react35 = require("react");
1856
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1857
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1858
+ var Textarea = (0, import_react35.forwardRef)(function Textarea2(_a, ref) {
1859
+ var _b = _a, {
1860
+ className,
1861
+ size,
1862
+ validationMessage,
1863
+ validationMessageProps,
1864
+ errorMessage,
1865
+ labelProps,
1866
+ label,
1867
+ id,
1868
+ style,
1869
+ disabled,
1870
+ readOnly,
1871
+ "data-color": dataColor
1872
+ } = _b, rest = __objRest(_b, [
1873
+ "className",
1874
+ "size",
1875
+ "validationMessage",
1876
+ "validationMessageProps",
1877
+ "errorMessage",
1878
+ "labelProps",
1879
+ "label",
1880
+ "id",
1881
+ "style",
1882
+ "disabled",
1883
+ "readOnly",
1884
+ "data-color"
1885
+ ]);
1886
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1701
1887
  InputGroup,
1702
1888
  {
1703
- className: (0, import_typed_classname28.clsx)("hds-textarea", className),
1889
+ className: (0, import_typed_classname29.clsx)("hds-textarea", className),
1704
1890
  disabled,
1891
+ validationMessage,
1892
+ validationMessageProps,
1705
1893
  errorMessage,
1706
1894
  id,
1707
1895
  label,
@@ -1709,40 +1897,41 @@ var Textarea = (0, import_react32.forwardRef)(function Textarea2(_a, ref) {
1709
1897
  readOnly,
1710
1898
  style,
1711
1899
  size,
1712
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1900
+ "data-color": dataColor,
1901
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("textarea", __spreadValues({ disabled, readOnly, ref }, rest))
1713
1902
  }
1714
1903
  );
1715
1904
  });
1716
1905
  Textarea.displayName = "Textarea";
1717
1906
 
1718
1907
  // src/footer/footer.tsx
1719
- var import_react33 = require("react");
1720
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1908
+ var import_react36 = require("react");
1909
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1721
1910
  var import_react_slot10 = require("@radix-ui/react-slot");
1722
- var import_jsx_runtime31 = require("react/jsx-runtime");
1723
- var FooterLogo = (0, import_react33.forwardRef)(
1911
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1912
+ var FooterLogo = (0, import_react36.forwardRef)(
1724
1913
  (_a, ref) => {
1725
1914
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1726
1915
  const Component = asChild ? import_react_slot10.Slot : "div";
1727
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname29.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1916
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname30.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1728
1917
  }
1729
1918
  );
1730
1919
  FooterLogo.displayName = "Footer.Logo";
1731
- var FooterButtonLink = (0, import_react33.forwardRef)(
1920
+ var FooterButtonLink = (0, import_react36.forwardRef)(
1732
1921
  (_a, ref) => {
1733
1922
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1734
1923
  const Component = asChild ? import_react_slot10.Slot : "a";
1735
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { asChild: true, variant: "secondary", className: (0, import_typed_classname29.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1924
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { asChild: true, variant: "secondary", className: (0, import_typed_classname30.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1736
1925
  }
1737
1926
  );
1738
1927
  FooterButtonLink.displayName = "FooterButton";
1739
- var FooterLinkSections = (0, import_react33.forwardRef)(
1928
+ var FooterLinkSections = (0, import_react36.forwardRef)(
1740
1929
  (_a, ref) => {
1741
1930
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1742
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1931
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1743
1932
  Accordion,
1744
1933
  __spreadProps(__spreadValues({
1745
- className: (0, import_typed_classname29.clsx)("hds-footer__link-sections", className),
1934
+ className: (0, import_typed_classname30.clsx)("hds-footer__link-sections", className),
1746
1935
  ref
1747
1936
  }, rest), {
1748
1937
  children
@@ -1751,40 +1940,40 @@ var FooterLinkSections = (0, import_react33.forwardRef)(
1751
1940
  }
1752
1941
  );
1753
1942
  FooterLinkSections.displayName = "Footer.LinkSections";
1754
- var FooterLinkSection = (0, import_react33.forwardRef)(
1943
+ var FooterLinkSection = (0, import_react36.forwardRef)(
1755
1944
  (_a, ref) => {
1756
1945
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
1757
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LinkList, { children });
1758
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1759
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1946
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LinkList, { children });
1947
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
1948
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1760
1949
  Accordion.Item,
1761
1950
  __spreadProps(__spreadValues({
1762
- className: (0, import_typed_classname29.clsx)(`hds-footer__link-section`, className),
1951
+ className: (0, import_typed_classname30.clsx)(`hds-footer__link-section`, className),
1763
1952
  ref
1764
1953
  }, rest), {
1765
1954
  children: [
1766
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Accordion.Header, { children: heading }),
1767
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Accordion.Content, { children: linkListChildren })
1955
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Accordion.Header, { children: heading }),
1956
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Accordion.Content, { children: linkListChildren })
1768
1957
  ]
1769
1958
  })
1770
1959
  ),
1771
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_typed_classname29.clsx)(`hds-footer__link-section`, className), children: [
1772
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h2", { children: heading }),
1960
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: (0, import_typed_classname30.clsx)(`hds-footer__link-section`, className), children: [
1961
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { children: heading }),
1773
1962
  linkListChildren
1774
1963
  ] })
1775
1964
  ] });
1776
1965
  }
1777
1966
  );
1778
1967
  FooterLinkSection.displayName = "Footer.LinkSection";
1779
- var Footer = (0, import_react33.forwardRef)(
1968
+ var Footer = (0, import_react36.forwardRef)(
1780
1969
  (_a, ref) => {
1781
1970
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
1782
1971
  const Component = asChild ? import_react_slot10.Slot : "footer";
1783
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1972
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1784
1973
  Component,
1785
1974
  __spreadProps(__spreadValues({
1786
1975
  "data-color-scheme": "dark",
1787
- className: (0, import_typed_classname29.clsx)(
1976
+ className: (0, import_typed_classname30.clsx)(
1788
1977
  `hds-footer`,
1789
1978
  variant === "slim" && "hds-footer--slim",
1790
1979
  className
@@ -1804,10 +1993,10 @@ Footer.LinkSection = FooterLinkSection;
1804
1993
 
1805
1994
  // src/help-text/help-text.tsx
1806
1995
  var Popover = __toESM(require("@radix-ui/react-popover"));
1807
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1808
- var import_react34 = require("react");
1809
- var import_jsx_runtime32 = require("react/jsx-runtime");
1810
- var HelpText = (0, import_react34.forwardRef)(
1996
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
1997
+ var import_react37 = require("react");
1998
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1999
+ var HelpText = (0, import_react37.forwardRef)(
1811
2000
  (_a, ref) => {
1812
2001
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
1813
2002
  return (
@@ -1815,24 +2004,24 @@ var HelpText = (0, import_react34.forwardRef)(
1815
2004
  // In the future we can use the native popover api, but as of writing, though all browsers support it
1816
2005
  // it's not far enough back to be used in production
1817
2006
  // https://caniuse.com/mdn-html_elements_input_popovertarget
1818
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Popover.Root, { children: [
1819
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2007
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Popover.Root, { children: [
2008
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1820
2009
  "button",
1821
2010
  __spreadProps(__spreadValues({
1822
2011
  ref,
1823
- className: (0, import_typed_classname30.clsx)("hds-help-text-button", className),
2012
+ className: (0, import_typed_classname31.clsx)("hds-help-text-button", className),
1824
2013
  title,
1825
2014
  type: "button"
1826
2015
  }, rest), {
1827
2016
  children
1828
2017
  })
1829
2018
  ) }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2019
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1831
2020
  Box,
1832
2021
  __spreadProps(__spreadValues({}, boxProps), {
1833
- className: (0, import_typed_classname30.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
2022
+ className: (0, import_typed_classname31.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
1834
2023
  children: [
1835
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box.CloseButton, {}) }),
2024
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Box.CloseButton, {}) }),
1836
2025
  helpText
1837
2026
  ]
1838
2027
  })
@@ -1844,18 +2033,18 @@ var HelpText = (0, import_react34.forwardRef)(
1844
2033
  HelpText.displayName = "HelpText";
1845
2034
 
1846
2035
  // src/layout/container/container.tsx
1847
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
2036
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1848
2037
  var import_react_slot11 = require("@radix-ui/react-slot");
1849
- var import_react35 = require("react");
1850
- var import_jsx_runtime33 = require("react/jsx-runtime");
1851
- var Container = (0, import_react35.forwardRef)(
2038
+ var import_react38 = require("react");
2039
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2040
+ var Container = (0, import_react38.forwardRef)(
1852
2041
  (_a, ref) => {
1853
2042
  var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
1854
2043
  const Component = asChild ? import_react_slot11.Slot : Tag;
1855
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2044
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1856
2045
  Component,
1857
2046
  __spreadProps(__spreadValues({}, rest), {
1858
- className: (0, import_typed_classname31.clsx)(
2047
+ className: (0, import_typed_classname32.clsx)(
1859
2048
  "hds-container",
1860
2049
  { "hds-container--slim": variant === "slim" },
1861
2050
  className
@@ -1869,9 +2058,9 @@ var Container = (0, import_react35.forwardRef)(
1869
2058
  Container.displayName = "Container";
1870
2059
 
1871
2060
  // src/layout/grid/grid.tsx
1872
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
2061
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1873
2062
  var import_react_slot12 = require("@radix-ui/react-slot");
1874
- var import_react36 = require("react");
2063
+ var import_react39 = require("react");
1875
2064
 
1876
2065
  // src/layout/responsive.ts
1877
2066
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -1892,17 +2081,17 @@ function getSpacingVariable(size) {
1892
2081
  }
1893
2082
 
1894
2083
  // src/layout/grid/grid.tsx
1895
- var import_jsx_runtime34 = require("react/jsx-runtime");
1896
- var GridItem = (0, import_react36.forwardRef)(
2084
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2085
+ var GridItem = (0, import_react39.forwardRef)(
1897
2086
  (_a, ref) => {
1898
2087
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
1899
2088
  const Component = asChild ? import_react_slot12.Slot : "div";
1900
2089
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
1901
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2090
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1902
2091
  Component,
1903
2092
  __spreadProps(__spreadValues({
1904
2093
  style,
1905
- className: (0, import_typed_classname32.clsx)("hds-grid__item", className),
2094
+ className: (0, import_typed_classname33.clsx)("hds-grid__item", className),
1906
2095
  ref
1907
2096
  }, rest), {
1908
2097
  children
@@ -1911,16 +2100,16 @@ var GridItem = (0, import_react36.forwardRef)(
1911
2100
  }
1912
2101
  );
1913
2102
  GridItem.displayName = "Grid.Item";
1914
- var Grid = (0, import_react36.forwardRef)(
2103
+ var Grid = (0, import_react39.forwardRef)(
1915
2104
  (_a, ref) => {
1916
2105
  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"]);
1917
2106
  const Component = asChild ? import_react_slot12.Slot : "div";
1918
2107
  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"));
1919
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2108
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1920
2109
  Component,
1921
2110
  __spreadProps(__spreadValues({
1922
2111
  style,
1923
- className: (0, import_typed_classname32.clsx)("hds-grid", className),
2112
+ className: (0, import_typed_classname33.clsx)("hds-grid", className),
1924
2113
  ref
1925
2114
  }, rest), {
1926
2115
  children
@@ -1933,11 +2122,11 @@ Grid.Item = GridItem;
1933
2122
 
1934
2123
  // src/layout/stack/stack.tsx
1935
2124
  var React4 = require("react");
1936
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1937
- var import_react37 = require("react");
2125
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2126
+ var import_react40 = require("react");
1938
2127
  var import_react_slot13 = require("@radix-ui/react-slot");
1939
- var import_jsx_runtime35 = require("react/jsx-runtime");
1940
- var Stack = (0, import_react37.forwardRef)(
2128
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2129
+ var Stack = (0, import_react40.forwardRef)(
1941
2130
  (_a, ref) => {
1942
2131
  var _b = _a, {
1943
2132
  children,
@@ -1966,11 +2155,11 @@ var Stack = (0, import_react37.forwardRef)(
1966
2155
  ]);
1967
2156
  const Component = asChild ? import_react_slot13.Slot : "div";
1968
2157
  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));
1969
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1970
2159
  Component,
1971
2160
  __spreadProps(__spreadValues({
1972
2161
  style,
1973
- className: (0, import_typed_classname33.clsx)("hds-stack", className),
2162
+ className: (0, import_typed_classname34.clsx)("hds-stack", className),
1974
2163
  ref
1975
2164
  }, rest), {
1976
2165
  children
@@ -1979,59 +2168,59 @@ var Stack = (0, import_react37.forwardRef)(
1979
2168
  }
1980
2169
  );
1981
2170
  Stack.displayName = "Stack";
1982
- var HStack = (0, import_react37.forwardRef)((props, ref) => {
1983
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
2171
+ var HStack = (0, import_react40.forwardRef)((props, ref) => {
2172
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
1984
2173
  });
1985
2174
  HStack.displayName = "HStack";
1986
- var VStack = (0, import_react37.forwardRef)((props, ref) => {
1987
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
2175
+ var VStack = (0, import_react40.forwardRef)((props, ref) => {
2176
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
1988
2177
  });
1989
2178
  VStack.displayName = "VStack";
1990
2179
 
1991
2180
  // src/message/message.tsx
1992
- var import_react38 = require("react");
1993
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2181
+ var import_react41 = require("react");
2182
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
1994
2183
  var import_react_slot14 = require("@radix-ui/react-slot");
1995
- var import_jsx_runtime36 = require("react/jsx-runtime");
1996
- var MessageTitle = (0, import_react38.forwardRef)(
2184
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2185
+ var MessageTitle = (0, import_react41.forwardRef)(
1997
2186
  (_a, ref) => {
1998
2187
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1999
2188
  const Component = asChild ? import_react_slot14.Slot : "div";
2000
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2189
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2001
2190
  Component,
2002
2191
  __spreadValues({
2003
- className: (0, import_typed_classname34.clsx)("hds-message__title", className),
2192
+ className: (0, import_typed_classname35.clsx)("hds-message__title", className),
2004
2193
  ref
2005
2194
  }, rest)
2006
2195
  );
2007
2196
  }
2008
2197
  );
2009
2198
  MessageTitle.displayName = "Message.Title";
2010
- var MessageDescription = (0, import_react38.forwardRef)(
2199
+ var MessageDescription = (0, import_react41.forwardRef)(
2011
2200
  (_a, ref) => {
2012
2201
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2013
2202
  const Component = asChild ? import_react_slot14.Slot : "div";
2014
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2203
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2015
2204
  Component,
2016
2205
  __spreadValues({
2017
- className: (0, import_typed_classname34.clsx)("hds-message__description", className),
2206
+ className: (0, import_typed_classname35.clsx)("hds-message__description", className),
2018
2207
  ref
2019
2208
  }, rest)
2020
2209
  );
2021
2210
  }
2022
2211
  );
2023
2212
  MessageDescription.displayName = "Message.Description";
2024
- var Message = (0, import_react38.forwardRef)(
2213
+ var Message = (0, import_react41.forwardRef)(
2025
2214
  (_a, ref) => {
2026
2215
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
2027
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2216
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2028
2217
  Box,
2029
2218
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, variant === "warning" ? { "data-color-scheme": "light" } : {}), {
2030
- className: (0, import_typed_classname34.clsx)(`hds-message`, `hds-message--${variant}`, className),
2219
+ className: (0, import_typed_classname35.clsx)(`hds-message`, `hds-message--${variant}`, className),
2031
2220
  ref
2032
2221
  }), rest), {
2033
2222
  children: [
2034
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: (0, import_typed_classname34.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
2223
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: (0, import_typed_classname35.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
2035
2224
  children
2036
2225
  ]
2037
2226
  })
@@ -2043,56 +2232,56 @@ Message.Title = MessageTitle;
2043
2232
  Message.Description = MessageDescription;
2044
2233
 
2045
2234
  // src/modal/modal.tsx
2046
- var import_react39 = require("react");
2047
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2235
+ var import_react42 = require("react");
2236
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2048
2237
  var import_react_slot15 = require("@radix-ui/react-slot");
2049
- var import_jsx_runtime37 = require("react/jsx-runtime");
2050
- var ModalHeader = (0, import_react39.forwardRef)(
2238
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2239
+ var ModalHeader = (0, import_react42.forwardRef)(
2051
2240
  (_a, ref) => {
2052
2241
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2053
2242
  const Component = asChild ? import_react_slot15.Slot : "h1";
2054
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2243
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2055
2244
  Component,
2056
2245
  __spreadValues({
2057
- className: (0, import_typed_classname35.clsx)("hds-modal__header", className),
2246
+ className: (0, import_typed_classname36.clsx)("hds-modal__header", className),
2058
2247
  ref
2059
2248
  }, rest)
2060
2249
  );
2061
2250
  }
2062
2251
  );
2063
2252
  ModalHeader.displayName = "Modal.Header";
2064
- var ModalContent = (0, import_react39.forwardRef)(
2253
+ var ModalContent = (0, import_react42.forwardRef)(
2065
2254
  (_a, ref) => {
2066
2255
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2067
2256
  const Component = asChild ? import_react_slot15.Slot : "div";
2068
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2257
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2069
2258
  Component,
2070
2259
  __spreadValues({
2071
- className: (0, import_typed_classname35.clsx)("hds-modal__content", className),
2260
+ className: (0, import_typed_classname36.clsx)("hds-modal__content", className),
2072
2261
  ref
2073
2262
  }, rest)
2074
2263
  );
2075
2264
  }
2076
2265
  );
2077
2266
  ModalContent.displayName = "Modal.Content";
2078
- var ModalFooter = (0, import_react39.forwardRef)(
2267
+ var ModalFooter = (0, import_react42.forwardRef)(
2079
2268
  (_a, ref) => {
2080
2269
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2081
2270
  const Component = asChild ? import_react_slot15.Slot : "footer";
2082
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2271
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2083
2272
  Component,
2084
2273
  __spreadValues({
2085
- className: (0, import_typed_classname35.clsx)("hds-modal__footer", className),
2274
+ className: (0, import_typed_classname36.clsx)("hds-modal__footer", className),
2086
2275
  ref
2087
2276
  }, rest)
2088
2277
  );
2089
2278
  }
2090
2279
  );
2091
2280
  ModalFooter.displayName = "Modal.Footer";
2092
- var Modal = (0, import_react39.forwardRef)(
2281
+ var Modal = (0, import_react42.forwardRef)(
2093
2282
  (_a, ref) => {
2094
2283
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
2095
- const modalRef = (0, import_react39.useRef)(null);
2284
+ const modalRef = (0, import_react42.useRef)(null);
2096
2285
  const mergedRef = useMergeRefs([modalRef, ref]);
2097
2286
  function onCloseButtonClick() {
2098
2287
  var _a2;
@@ -2100,7 +2289,7 @@ var Modal = (0, import_react39.forwardRef)(
2100
2289
  return false;
2101
2290
  }
2102
2291
  useScrollLock(modalRef, "hds-modal-scroll-lock");
2103
- (0, import_react39.useEffect)(() => {
2292
+ (0, import_react42.useEffect)(() => {
2104
2293
  if (modalRef.current && open !== void 0) {
2105
2294
  if (open && !modalRef.current.open) {
2106
2295
  modalRef.current.showModal();
@@ -2115,16 +2304,16 @@ var Modal = (0, import_react39.forwardRef)(
2115
2304
  }
2116
2305
  onClick == null ? void 0 : onClick(e);
2117
2306
  }
2118
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2307
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2119
2308
  Box,
2120
2309
  {
2121
2310
  asChild: true,
2122
- className: (0, import_typed_classname35.clsx)("hds-modal", className),
2311
+ className: (0, import_typed_classname36.clsx)("hds-modal", className),
2123
2312
  closeable: true,
2124
2313
  onClick: onDialogClick,
2125
2314
  onClose: onCloseButtonClick,
2126
2315
  variant: "white",
2127
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
2316
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
2128
2317
  }
2129
2318
  );
2130
2319
  }
@@ -2134,7 +2323,7 @@ Modal.Header = ModalHeader;
2134
2323
  Modal.Content = ModalContent;
2135
2324
  Modal.Footer = ModalFooter;
2136
2325
  function useScrollLock(modalRef, bodyClass) {
2137
- (0, import_react39.useEffect)(() => {
2326
+ (0, import_react42.useEffect)(() => {
2138
2327
  if (!modalRef.current) return;
2139
2328
  if (modalRef.current.open) document.body.classList.add(bodyClass);
2140
2329
  const observer = new MutationObserver(() => {
@@ -2154,18 +2343,18 @@ function useScrollLock(modalRef, bodyClass) {
2154
2343
  }
2155
2344
 
2156
2345
  // src/navbar/navbar.tsx
2157
- var import_react41 = require("react");
2158
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2346
+ var import_react44 = require("react");
2347
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2159
2348
  var import_react_slot16 = require("@radix-ui/react-slot");
2160
2349
 
2161
2350
  // src/navbar/navbar-expandable-menu.tsx
2162
- var import_react40 = require("react");
2163
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2351
+ var import_react43 = require("react");
2352
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2164
2353
 
2165
2354
  // src/navbar/icons.tsx
2166
- var import_jsx_runtime38 = require("react/jsx-runtime");
2355
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2167
2356
  function CloseIcon2() {
2168
- return /* @__PURE__ */ (0, import_jsx_runtime38.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_runtime38.jsx)(
2357
+ return /* @__PURE__ */ (0, import_jsx_runtime41.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_runtime41.jsx)(
2169
2358
  "path",
2170
2359
  {
2171
2360
  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",
@@ -2174,7 +2363,7 @@ function CloseIcon2() {
2174
2363
  ) });
2175
2364
  }
2176
2365
  function MenuIcon() {
2177
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2366
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2178
2367
  "path",
2179
2368
  {
2180
2369
  fill: "currentColor",
@@ -2184,35 +2373,35 @@ function MenuIcon() {
2184
2373
  }
2185
2374
 
2186
2375
  // src/navbar/navbar-expandable-menu.tsx
2187
- var import_jsx_runtime39 = require("react/jsx-runtime");
2188
- var ExpandableMenuContext = (0, import_react40.createContext)(null);
2376
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2377
+ var ExpandableMenuContext = (0, import_react43.createContext)(null);
2189
2378
  var useNavbarExpendableMenuContext = () => {
2190
- const value = (0, import_react40.useContext)(ExpandableMenuContext);
2379
+ const value = (0, import_react43.useContext)(ExpandableMenuContext);
2191
2380
  if (value === null) {
2192
2381
  throw new Error("useNavbarExpendableMenuContext must be used within a Navbar.ExpandableMenu");
2193
2382
  }
2194
2383
  return value;
2195
2384
  };
2196
2385
  function NavbarExpandableMenu({ children }) {
2197
- const contentId = (0, import_react40.useId)();
2198
- const [open, setOpen] = (0, import_react40.useState)(false);
2199
- (0, import_react40.useEffect)(() => {
2386
+ const contentId = (0, import_react43.useId)();
2387
+ const [open, setOpen] = (0, import_react43.useState)(false);
2388
+ (0, import_react43.useEffect)(() => {
2200
2389
  if (open) {
2201
2390
  window.scrollTo(0, 0);
2202
- document.body.classList.add((0, import_typed_classname36.clsx)("hds-navbar-scroll-lock"));
2391
+ document.body.classList.add((0, import_typed_classname37.clsx)("hds-navbar-scroll-lock"));
2203
2392
  const releaseFocusTrap2 = focusTrap(
2204
- document.getElementsByClassName((0, import_typed_classname36.clsx)("hds-navbar"))[0]
2393
+ document.getElementsByClassName((0, import_typed_classname37.clsx)("hds-navbar"))[0]
2205
2394
  );
2206
2395
  return () => {
2207
- document.body.classList.remove((0, import_typed_classname36.clsx)("hds-navbar-scroll-lock"));
2396
+ document.body.classList.remove((0, import_typed_classname37.clsx)("hds-navbar-scroll-lock"));
2208
2397
  releaseFocusTrap2();
2209
2398
  };
2210
2399
  }
2211
2400
  }, [open]);
2212
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2401
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2213
2402
  }
2214
2403
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
2215
- var NavbarExpandableMenuTrigger = (0, import_react40.forwardRef)(
2404
+ var NavbarExpandableMenuTrigger = (0, import_react43.forwardRef)(
2216
2405
  (_a, ref) => {
2217
2406
  var _b = _a, {
2218
2407
  whenClosedText,
@@ -2233,13 +2422,13 @@ var NavbarExpandableMenuTrigger = (0, import_react40.forwardRef)(
2233
2422
  function toggleOpen() {
2234
2423
  setOpen(!open);
2235
2424
  }
2236
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2425
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2237
2426
  "button",
2238
2427
  __spreadProps(__spreadValues({
2239
2428
  "aria-expanded": open,
2240
2429
  "aria-controls": contentId,
2241
2430
  "aria-label": open ? whenOpenHelperTitle : whenClosedHelperTitle,
2242
- className: (0, import_typed_classname36.clsx)(
2431
+ className: (0, import_typed_classname37.clsx)(
2243
2432
  "hds-navbar__item",
2244
2433
  className,
2245
2434
  open ? "hds-navbar__item--open" : "hds-navbar__item--closed"
@@ -2251,53 +2440,53 @@ var NavbarExpandableMenuTrigger = (0, import_react40.forwardRef)(
2251
2440
  style: __spreadValues({ position: "relative" }, style)
2252
2441
  }, rest), {
2253
2442
  children: [
2254
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2255
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname36.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2256
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname36.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2443
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2444
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname37.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2445
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname37.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2257
2446
  ] }),
2258
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { style: { width: 32, height: 32 }, children: open ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CloseIcon2, {}) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(MenuIcon, {}) })
2447
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { style: { width: 32, height: 32 }, children: open ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CloseIcon2, {}) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MenuIcon, {}) })
2259
2448
  ]
2260
2449
  })
2261
2450
  );
2262
2451
  }
2263
2452
  );
2264
2453
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenuTrigger";
2265
- var NavbarExpandableMenuContent = (0, import_react40.forwardRef)((_a, ref) => {
2454
+ var NavbarExpandableMenuContent = (0, import_react43.forwardRef)((_a, ref) => {
2266
2455
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2267
2456
  const { contentId, open } = useNavbarExpendableMenuContext();
2268
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2457
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2269
2458
  "section",
2270
2459
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
2271
2460
  id: contentId,
2272
- className: (0, import_typed_classname36.clsx)("hds-navbar__expandable-menu-content", className),
2461
+ className: (0, import_typed_classname37.clsx)("hds-navbar__expandable-menu-content", className),
2273
2462
  "data-state": open ? "open" : "closed"
2274
2463
  }), { inert: inertPropValue(!open) }), {
2275
2464
  ref,
2276
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: (0, import_typed_classname36.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2465
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_typed_classname37.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2277
2466
  })
2278
2467
  );
2279
2468
  });
2280
2469
  NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenuContent";
2281
2470
 
2282
2471
  // src/navbar/navbar.tsx
2283
- var import_jsx_runtime40 = require("react/jsx-runtime");
2284
- var NavbarLogo = (0, import_react41.forwardRef)(
2472
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2473
+ var NavbarLogo = (0, import_react44.forwardRef)(
2285
2474
  (_a, ref) => {
2286
2475
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
2287
2476
  const Component = asChild ? import_react_slot16.Slot : "div";
2288
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2477
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname38.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2289
2478
  }
2290
2479
  );
2291
2480
  NavbarLogo.displayName = "Navbar.Logo";
2292
- var NavbarLogoAndServiceText = (0, import_react41.forwardRef)(
2481
+ var NavbarLogoAndServiceText = (0, import_react44.forwardRef)(
2293
2482
  (_a, ref) => {
2294
2483
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
2295
2484
  const Component = asChild ? import_react_slot16.Slot : "div";
2296
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2485
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2297
2486
  Component,
2298
2487
  __spreadProps(__spreadValues({
2299
2488
  ref,
2300
- className: (0, import_typed_classname37.clsx)(
2489
+ className: (0, import_typed_classname38.clsx)(
2301
2490
  "hds-navbar__logo-and-service-text",
2302
2491
  `hds-navbar__logo-and-service-text--${variant}`,
2303
2492
  className
@@ -2309,29 +2498,29 @@ var NavbarLogoAndServiceText = (0, import_react41.forwardRef)(
2309
2498
  }
2310
2499
  );
2311
2500
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
2312
- var NavbarItemIcon = (0, import_react41.forwardRef)(
2501
+ var NavbarItemIcon = (0, import_react44.forwardRef)(
2313
2502
  (_a, ref) => {
2314
2503
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2315
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_slot16.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2504
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_slot16.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname38.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2316
2505
  }
2317
2506
  );
2318
2507
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
2319
- var NavbarItem = (0, import_react41.forwardRef)(
2508
+ var NavbarItem = (0, import_react44.forwardRef)(
2320
2509
  (_a, ref) => {
2321
2510
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2322
2511
  const Component = asChild ? import_react_slot16.Slot : "div";
2323
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2512
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname38.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2324
2513
  }
2325
2514
  );
2326
2515
  NavbarItem.displayName = "Navbar.Item";
2327
- var NavbarButtonItem = (0, import_react41.forwardRef)(
2516
+ var NavbarButtonItem = (0, import_react44.forwardRef)(
2328
2517
  (_a, ref) => {
2329
2518
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2330
2519
  const Component = asChild ? import_react_slot16.Slot : "button";
2331
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2520
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2332
2521
  Component,
2333
2522
  __spreadProps(__spreadValues({
2334
- className: (0, import_typed_classname37.clsx)("hds-navbar__item", className),
2523
+ className: (0, import_typed_classname38.clsx)("hds-navbar__item", className),
2335
2524
  ref,
2336
2525
  type: "button"
2337
2526
  }, rest), {
@@ -2341,36 +2530,36 @@ var NavbarButtonItem = (0, import_react41.forwardRef)(
2341
2530
  }
2342
2531
  );
2343
2532
  NavbarButtonItem.displayName = "Navbar.ButtonItem";
2344
- var NavbarLinkItem = (0, import_react41.forwardRef)(
2533
+ var NavbarLinkItem = (0, import_react44.forwardRef)(
2345
2534
  (_a, ref) => {
2346
2535
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2347
2536
  const Component = asChild ? import_react_slot16.Slot : "a";
2348
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname37.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2537
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname38.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2349
2538
  }
2350
2539
  );
2351
2540
  NavbarLinkItem.displayName = "Navbar.LinkItem";
2352
- var NavbarNavigation = (0, import_react41.forwardRef)(
2541
+ var NavbarNavigation = (0, import_react44.forwardRef)(
2353
2542
  (_a, ref) => {
2354
2543
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2355
2544
  const Component = asChild ? import_react_slot16.Slot : "div";
2356
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2545
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2357
2546
  Component,
2358
2547
  __spreadValues({
2359
- className: (0, import_typed_classname37.clsx)("hds-navbar__navigation", className),
2548
+ className: (0, import_typed_classname38.clsx)("hds-navbar__navigation", className),
2360
2549
  ref
2361
2550
  }, rest)
2362
2551
  );
2363
2552
  }
2364
2553
  );
2365
2554
  NavbarNavigation.displayName = "Navbar.Navigation";
2366
- var Navbar = (0, import_react41.forwardRef)(
2555
+ var Navbar = (0, import_react44.forwardRef)(
2367
2556
  (_a, ref) => {
2368
2557
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
2369
2558
  const Component = asChild ? import_react_slot16.Slot : "header";
2370
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2559
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2371
2560
  Component,
2372
2561
  __spreadProps(__spreadValues({
2373
- className: (0, import_typed_classname37.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2562
+ className: (0, import_typed_classname38.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2374
2563
  ref
2375
2564
  }, rest), {
2376
2565
  children
@@ -2391,17 +2580,17 @@ Navbar.ItemIcon = NavbarItemIcon;
2391
2580
  Navbar.Navigation = NavbarNavigation;
2392
2581
 
2393
2582
  // src/show-more/show-more.tsx
2394
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2395
- var import_react42 = require("react");
2396
- var import_jsx_runtime41 = require("react/jsx-runtime");
2397
- var ShowMoreButton = (0, import_react42.forwardRef)(
2583
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2584
+ var import_react45 = require("react");
2585
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2586
+ var ShowMoreButton = (0, import_react45.forwardRef)(
2398
2587
  (_a, ref) => {
2399
2588
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
2400
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2589
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2401
2590
  "button",
2402
2591
  __spreadProps(__spreadValues({
2403
2592
  ref,
2404
- className: (0, import_typed_classname38.clsx)(
2593
+ className: (0, import_typed_classname39.clsx)(
2405
2594
  "hds-show-more",
2406
2595
  variant === "show-more-show-less" && "hds-show-more--show-less",
2407
2596
  className
@@ -2411,7 +2600,7 @@ var ShowMoreButton = (0, import_react42.forwardRef)(
2411
2600
  }, rest), {
2412
2601
  children: [
2413
2602
  text,
2414
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: (0, import_typed_classname38.clsx)("hds-show-more__icon") })
2603
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: (0, import_typed_classname39.clsx)("hds-show-more__icon") })
2415
2604
  ]
2416
2605
  })
2417
2606
  );
@@ -2420,11 +2609,11 @@ var ShowMoreButton = (0, import_react42.forwardRef)(
2420
2609
  ShowMoreButton.displayName = "ShowMoreButton";
2421
2610
 
2422
2611
  // src/skeleton/skeleton.tsx
2423
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2612
+ var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2424
2613
  var import_react_slot17 = require("@radix-ui/react-slot");
2425
- var import_react43 = require("react");
2426
- var import_jsx_runtime42 = require("react/jsx-runtime");
2427
- var Skeleton = (0, import_react43.forwardRef)(
2614
+ var import_react46 = require("react");
2615
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2616
+ var Skeleton = (0, import_react46.forwardRef)(
2428
2617
  (_a, ref) => {
2429
2618
  var _b = _a, {
2430
2619
  as: Tag = "div",
@@ -2448,10 +2637,10 @@ var Skeleton = (0, import_react43.forwardRef)(
2448
2637
  "style"
2449
2638
  ]);
2450
2639
  const Component = asChild ? import_react_slot17.Slot : Tag;
2451
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2640
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2452
2641
  Component,
2453
2642
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2454
- className: (0, import_typed_classname39.clsx)(
2643
+ className: (0, import_typed_classname40.clsx)(
2455
2644
  "hds-skeleton",
2456
2645
  `hds-skeleton--${variant}`,
2457
2646
  !animation && `hds-skeleton--no-animation`,
@@ -2470,19 +2659,19 @@ var Skeleton = (0, import_react43.forwardRef)(
2470
2659
  Skeleton.displayName = "Skeleton";
2471
2660
 
2472
2661
  // src/spinner/spinner.tsx
2473
- var import_react44 = require("react");
2474
- var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2475
- var import_jsx_runtime43 = require("react/jsx-runtime");
2476
- var Spinner = (0, import_react44.forwardRef)(
2662
+ var import_react47 = require("react");
2663
+ var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2664
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2665
+ var Spinner = (0, import_react47.forwardRef)(
2477
2666
  (_a, ref) => {
2478
2667
  var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
2479
2668
  const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
2480
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2669
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2481
2670
  "div",
2482
2671
  __spreadValues({
2483
2672
  title,
2484
2673
  style,
2485
- className: (0, import_typed_classname40.clsx)(
2674
+ className: (0, import_typed_classname41.clsx)(
2486
2675
  "hds-spinner",
2487
2676
  `hds-spinner--${size}`,
2488
2677
  delay && "hds-spinner--delay",
@@ -2496,10 +2685,10 @@ var Spinner = (0, import_react44.forwardRef)(
2496
2685
  Spinner.displayName = "Spinner";
2497
2686
 
2498
2687
  // src/step-indicator/step-indicator.tsx
2499
- var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2500
- var import_react45 = require("react");
2501
- var import_jsx_runtime44 = require("react/jsx-runtime");
2502
- var StepIndicator = (0, import_react45.forwardRef)(
2688
+ var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2689
+ var import_react48 = require("react");
2690
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2691
+ var StepIndicator = (0, import_react48.forwardRef)(
2503
2692
  (_a, ref) => {
2504
2693
  var _b = _a, {
2505
2694
  activeStep,
@@ -2518,27 +2707,27 @@ var StepIndicator = (0, import_react45.forwardRef)(
2518
2707
  "title",
2519
2708
  "titleAs"
2520
2709
  ]);
2521
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2710
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2522
2711
  "div",
2523
2712
  __spreadProps(__spreadValues({
2524
2713
  ref,
2525
- className: (0, import_typed_classname41.clsx)("hds-step-indicator", className),
2714
+ className: (0, import_typed_classname42.clsx)("hds-step-indicator", className),
2526
2715
  lang
2527
2716
  }, rest), {
2528
2717
  children: [
2529
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: (0, import_typed_classname41.clsx)("hds-step-indicator__header"), children: [
2530
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: (0, import_typed_classname41.clsx)("hds-step-indicator__left-label"), children: label }),
2531
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2718
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0, import_typed_classname42.clsx)("hds-step-indicator__header"), children: [
2719
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: (0, import_typed_classname42.clsx)("hds-step-indicator__left-label"), children: label }),
2720
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2532
2721
  ] }),
2533
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: (0, import_typed_classname41.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2722
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: (0, import_typed_classname42.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2534
2723
  "div",
2535
2724
  {
2536
- className: (0, import_typed_classname41.clsx)("hds-step-indicator__step"),
2725
+ className: (0, import_typed_classname42.clsx)("hds-step-indicator__step"),
2537
2726
  "data-state": getStepState(i + 1, activeStep)
2538
2727
  },
2539
2728
  i
2540
2729
  )) }),
2541
- title ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TitleComponent, { className: (0, import_typed_classname41.clsx)("hds-step-indicator__title"), children: title }) : null
2730
+ title ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TitleComponent, { className: (0, import_typed_classname42.clsx)("hds-step-indicator__title"), children: title }) : null
2542
2731
  ]
2543
2732
  })
2544
2733
  );
@@ -2562,18 +2751,18 @@ function getStepState(renderedStep, activeStep) {
2562
2751
  }
2563
2752
 
2564
2753
  // src/styled-html/styled-html.tsx
2565
- var import_react46 = require("react");
2566
- var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2754
+ var import_react49 = require("react");
2755
+ var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2567
2756
  var import_react_slot18 = require("@radix-ui/react-slot");
2568
- var import_jsx_runtime45 = require("react/jsx-runtime");
2569
- var StyledHtml = (0, import_react46.forwardRef)(
2757
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2758
+ var StyledHtml = (0, import_react49.forwardRef)(
2570
2759
  (_a, ref) => {
2571
2760
  var _b = _a, { asChild, children, size, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "className"]);
2572
2761
  const Component = asChild ? import_react_slot18.Slot : "div";
2573
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2762
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2574
2763
  Component,
2575
2764
  __spreadProps(__spreadValues({
2576
- className: (0, import_typed_classname42.clsx)(
2765
+ className: (0, import_typed_classname43.clsx)(
2577
2766
  `hds-styled-html`,
2578
2767
  size === "small" && "hds-styled-html--small",
2579
2768
  className
@@ -2588,20 +2777,20 @@ var StyledHtml = (0, import_react46.forwardRef)(
2588
2777
  StyledHtml.displayName = "StyledHtml";
2589
2778
 
2590
2779
  // src/table/table.tsx
2591
- var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2592
- var import_react47 = require("react");
2593
- var import_jsx_runtime46 = require("react/jsx-runtime");
2594
- var Table = (0, import_react47.forwardRef)(
2780
+ var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2781
+ var import_react50 = require("react");
2782
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2783
+ var Table = (0, import_react50.forwardRef)(
2595
2784
  (_a, ref) => {
2596
2785
  var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2597
- const descriptionId = (0, import_react47.useId)();
2598
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2599
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2786
+ const descriptionId = (0, import_react50.useId)();
2787
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
2788
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2600
2789
  "table",
2601
2790
  __spreadProps(__spreadValues({
2602
2791
  "aria-describedby": description ? descriptionId : void 0,
2603
2792
  ref,
2604
- className: (0, import_typed_classname43.clsx)(
2793
+ className: (0, import_typed_classname44.clsx)(
2605
2794
  "hds-table",
2606
2795
  {
2607
2796
  "hds-table--compressed": size === "compressed",
@@ -2611,27 +2800,27 @@ var Table = (0, import_react47.forwardRef)(
2611
2800
  )
2612
2801
  }, rest), {
2613
2802
  children: [
2614
- caption ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("caption", { children: caption }) : null,
2803
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("caption", { children: caption }) : null,
2615
2804
  children
2616
2805
  ]
2617
2806
  })
2618
2807
  ),
2619
- description ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: (0, import_typed_classname43.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2808
+ description ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: (0, import_typed_classname44.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2620
2809
  ] });
2621
2810
  }
2622
2811
  );
2623
2812
  Table.displayName = "Table";
2624
2813
 
2625
2814
  // src/tabs/tabs.tsx
2626
- var import_react51 = require("react");
2627
- var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2815
+ var import_react54 = require("react");
2816
+ var import_typed_classname47 = require("@postenbring/hedwig-css/typed-classname");
2628
2817
  var import_react_slot20 = require("@radix-ui/react-slot");
2629
2818
 
2630
2819
  // src/tabs/context.ts
2631
- var import_react48 = require("react");
2632
- var TabsContext = (0, import_react48.createContext)(null);
2820
+ var import_react51 = require("react");
2821
+ var TabsContext = (0, import_react51.createContext)(null);
2633
2822
  function useTabsContext() {
2634
- const context = (0, import_react48.useContext)(TabsContext);
2823
+ const context = (0, import_react51.useContext)(TabsContext);
2635
2824
  if (!context) {
2636
2825
  throw new Error(
2637
2826
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2641,25 +2830,25 @@ function useTabsContext() {
2641
2830
  }
2642
2831
 
2643
2832
  // src/tabs/tabs-content.tsx
2644
- var import_react49 = require("react");
2645
- var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2833
+ var import_react52 = require("react");
2834
+ var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2646
2835
  var import_react_slot19 = require("@radix-ui/react-slot");
2647
- var import_jsx_runtime47 = require("react/jsx-runtime");
2648
- var TabsContents = (0, import_react49.forwardRef)(
2836
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2837
+ var TabsContents = (0, import_react52.forwardRef)(
2649
2838
  (_a, ref) => {
2650
2839
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2651
2840
  const Component = asChild ? import_react_slot19.Slot : "div";
2652
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname44.clsx)("hds-tabs__contents") }, rest), { children }));
2841
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname45.clsx)("hds-tabs__contents") }, rest), { children }));
2653
2842
  }
2654
2843
  );
2655
2844
  TabsContents.displayName = "Tabs.Contents";
2656
- var TabsContent = (0, import_react49.forwardRef)(
2845
+ var TabsContent = (0, import_react52.forwardRef)(
2657
2846
  (_a, ref) => {
2658
2847
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2659
2848
  const context = useTabsContext();
2660
2849
  const Component = asChild ? import_react_slot19.Slot : "div";
2661
2850
  if (context.activeTabId === forTabId) {
2662
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2851
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2663
2852
  }
2664
2853
  return null;
2665
2854
  }
@@ -2667,21 +2856,21 @@ var TabsContent = (0, import_react49.forwardRef)(
2667
2856
  TabsContent.displayName = "Tabs.Content";
2668
2857
 
2669
2858
  // src/tabs/tabs-list.tsx
2670
- var import_react50 = require("react");
2671
- var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2672
- var import_jsx_runtime48 = require("react/jsx-runtime");
2673
- var TabsList = (0, import_react50.forwardRef)(
2859
+ var import_react53 = require("react");
2860
+ var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2861
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2862
+ var TabsList = (0, import_react53.forwardRef)(
2674
2863
  (_a, ref) => {
2675
2864
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2676
2865
  const { activeTabId } = useTabsContext();
2677
- const tabsListRef = (0, import_react50.useRef)(null);
2866
+ const tabsListRef = (0, import_react53.useRef)(null);
2678
2867
  const mergedRef = useMergeRefs([tabsListRef, ref]);
2679
2868
  const { width: tabsWidth } = useResize(tabsListRef);
2680
2869
  const isClientSide = useHydrated();
2681
2870
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2682
2871
  const wideEnough = innerWidth >= tabsWidth;
2683
- const previousTabId = (0, import_react50.useRef)(activeTabId);
2684
- (0, import_react50.useEffect)(() => {
2872
+ const previousTabId = (0, import_react53.useRef)(activeTabId);
2873
+ (0, import_react53.useEffect)(() => {
2685
2874
  const tabList = tabsListRef.current;
2686
2875
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2687
2876
  if (!activeTab || !tabList) return;
@@ -2705,10 +2894,10 @@ var TabsList = (0, import_react50.forwardRef)(
2705
2894
  }
2706
2895
  previousTabId.current = activeTabId;
2707
2896
  }, [activeTabId, innerWidth]);
2708
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2897
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2709
2898
  "div",
2710
2899
  __spreadProps(__spreadValues({
2711
- className: (0, import_typed_classname45.clsx)(
2900
+ className: (0, import_typed_classname46.clsx)(
2712
2901
  "hds-tabs__list",
2713
2902
  direction === "horizontal" ? {
2714
2903
  "hds-tabs__list--horizontal": wideEnough,
@@ -2727,7 +2916,7 @@ var TabsList = (0, import_react50.forwardRef)(
2727
2916
  }
2728
2917
  );
2729
2918
  TabsList.displayName = "Tabs.List";
2730
- var TabsTab = (0, import_react50.forwardRef)(
2919
+ var TabsTab = (0, import_react53.forwardRef)(
2731
2920
  (_a, ref) => {
2732
2921
  var _b = _a, { children, tabId, className, onClick } = _b, rest = __objRest(_b, ["children", "tabId", "className", "onClick"]);
2733
2922
  const context = useTabsContext();
@@ -2736,10 +2925,10 @@ var TabsTab = (0, import_react50.forwardRef)(
2736
2925
  context.toggleActiveTabId(tabId);
2737
2926
  onClick == null ? void 0 : onClick(e);
2738
2927
  };
2739
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2928
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2740
2929
  "button",
2741
2930
  __spreadProps(__spreadValues({
2742
- className: (0, import_typed_classname45.clsx)(
2931
+ className: (0, import_typed_classname46.clsx)(
2743
2932
  "hds-tabs__tab",
2744
2933
  { "hds-tabs__tab--active": context.activeTabId === tabId },
2745
2934
  className
@@ -2758,13 +2947,13 @@ var TabsTab = (0, import_react50.forwardRef)(
2758
2947
  TabsTab.displayName = "Tabs.Tab";
2759
2948
 
2760
2949
  // src/tabs/tabs.tsx
2761
- var import_jsx_runtime49 = require("react/jsx-runtime");
2762
- var Tabs = (0, import_react51.forwardRef)(
2950
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2951
+ var Tabs = (0, import_react54.forwardRef)(
2763
2952
  (_a, ref) => {
2764
2953
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
2765
- const [activeTabId, setActiveTabId] = (0, import_react51.useState)(defaultTab);
2954
+ const [activeTabId, setActiveTabId] = (0, import_react54.useState)(defaultTab);
2766
2955
  const Component = asChild ? import_react_slot20.Slot : "div";
2767
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname46.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2956
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname47.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
2768
2957
  }
2769
2958
  );
2770
2959
  Tabs.displayName = "Tabs";
@@ -2774,10 +2963,10 @@ Tabs.Contents = TabsContents;
2774
2963
  Tabs.Content = TabsContent;
2775
2964
 
2776
2965
  // src/text/text.tsx
2777
- var import_react52 = require("react");
2778
- var import_typed_classname47 = require("@postenbring/hedwig-css/typed-classname");
2966
+ var import_react55 = require("react");
2967
+ var import_typed_classname48 = require("@postenbring/hedwig-css/typed-classname");
2779
2968
  var import_react_slot21 = require("@radix-ui/react-slot");
2780
- var import_jsx_runtime50 = require("react/jsx-runtime");
2969
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2781
2970
  var defaultHTMLTag = {
2782
2971
  "h1-display": "h1",
2783
2972
  h1: "h1",
@@ -2793,7 +2982,7 @@ var defaultHTMLTag = {
2793
2982
  caption: "p",
2794
2983
  "caption-title": "p"
2795
2984
  };
2796
- var Text = (0, import_react52.forwardRef)(
2985
+ var Text = (0, import_react55.forwardRef)(
2797
2986
  (_a, ref) => {
2798
2987
  var _b = _a, {
2799
2988
  as: Tag,
@@ -2814,10 +3003,10 @@ var Text = (0, import_react52.forwardRef)(
2814
3003
  ]);
2815
3004
  const Component = asChild ? import_react_slot21.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
2816
3005
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
2817
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3006
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2818
3007
  Component,
2819
3008
  __spreadProps(__spreadValues({
2820
- className: (0, import_typed_classname47.clsx)(
3009
+ className: (0, import_typed_classname48.clsx)(
2821
3010
  `hds-text-${variant}`,
2822
3011
  sizeModifier && `hds-text--${sizeModifier}`,
2823
3012
  spacing && "hds-text--spacing",
@@ -2833,16 +3022,16 @@ var Text = (0, import_react52.forwardRef)(
2833
3022
  Text.displayName = "Text";
2834
3023
 
2835
3024
  // src/warning-banner/warning-banner.tsx
2836
- var import_react53 = require("react");
2837
- var import_typed_classname48 = require("@postenbring/hedwig-css/typed-classname");
2838
- var import_jsx_runtime51 = require("react/jsx-runtime");
2839
- var WarningBanner = (0, import_react53.forwardRef)(
3025
+ var import_react56 = require("react");
3026
+ var import_typed_classname49 = require("@postenbring/hedwig-css/typed-classname");
3027
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3028
+ var WarningBanner = (0, import_react56.forwardRef)(
2840
3029
  (_a, ref) => {
2841
3030
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
2842
- const descriptionId = (0, import_react53.useId)();
3031
+ const descriptionId = (0, import_react56.useId)();
2843
3032
  const expandable = !!description;
2844
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname48.clsx)("hds-warning-banner", className), ref, children: [
2845
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3033
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname49.clsx)("hds-warning-banner", className), ref, children: [
3034
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2846
3035
  WarningBannerTitle,
2847
3036
  {
2848
3037
  variant: expandable ? "expandable" : "default",
@@ -2850,22 +3039,22 @@ var WarningBanner = (0, import_react53.forwardRef)(
2850
3039
  children: title
2851
3040
  }
2852
3041
  ),
2853
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
3042
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
2854
3043
  ] }));
2855
3044
  }
2856
3045
  );
2857
3046
  WarningBanner.displayName = "WarningBanner";
2858
- var WarningBannerTitle = (0, import_react53.forwardRef)((_a, ref) => {
3047
+ var WarningBannerTitle = (0, import_react56.forwardRef)((_a, ref) => {
2859
3048
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
2860
- const [open, setOpen] = (0, import_react53.useState)(false);
3049
+ const [open, setOpen] = (0, import_react56.useState)(false);
2861
3050
  if (variant === "expandable") {
2862
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3051
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2863
3052
  "button",
2864
3053
  __spreadProps(__spreadValues({}, rest), {
2865
3054
  "aria-expanded": open,
2866
3055
  "aria-controls": descriptionId,
2867
3056
  "data-state": open ? "open" : "closed",
2868
- className: (0, import_typed_classname48.clsx)(
3057
+ className: (0, import_typed_classname49.clsx)(
2869
3058
  "hds-warning-banner__title",
2870
3059
  "hds-warning-banner__title-trigger",
2871
3060
  className
@@ -2875,28 +3064,28 @@ var WarningBannerTitle = (0, import_react53.forwardRef)((_a, ref) => {
2875
3064
  },
2876
3065
  ref,
2877
3066
  type: "button",
2878
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children })
3067
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children })
2879
3068
  })
2880
3069
  );
2881
3070
  }
2882
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3071
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2883
3072
  "p",
2884
3073
  __spreadProps(__spreadValues({}, rest), {
2885
- className: (0, import_typed_classname48.clsx)("hds-warning-banner__title", className),
3074
+ className: (0, import_typed_classname49.clsx)("hds-warning-banner__title", className),
2886
3075
  ref,
2887
3076
  children
2888
3077
  })
2889
3078
  );
2890
3079
  });
2891
3080
  WarningBannerTitle.displayName = "WarningBannerTitle";
2892
- var WarningBannerDescription = (0, import_react53.forwardRef)(
3081
+ var WarningBannerDescription = (0, import_react56.forwardRef)(
2893
3082
  (_a, ref) => {
2894
3083
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
2895
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3084
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2896
3085
  "p",
2897
3086
  __spreadValues({
2898
3087
  id,
2899
- className: (0, import_typed_classname48.clsx)("hds-warning-banner__description", className),
3088
+ className: (0, import_typed_classname49.clsx)("hds-warning-banner__description", className),
2900
3089
  ref
2901
3090
  }, rest)
2902
3091
  );
@@ -2937,6 +3126,8 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2937
3126
  ErrorMessage,
2938
3127
  ErrorSummary,
2939
3128
  Fieldset,
3129
+ FieldsetDescription,
3130
+ FieldsetLegend,
2940
3131
  Figure,
2941
3132
  Footer,
2942
3133
  FooterButtonLink,
@@ -2989,8 +3180,10 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2989
3180
  Textarea,
2990
3181
  UnorderedList,
2991
3182
  VStack,
3183
+ ValidationMessage,
2992
3184
  WarningBanner,
2993
3185
  focusTrap,
3186
+ getValidationMessageValue,
2994
3187
  inertPropValue,
2995
3188
  useFieldsetContext,
2996
3189
  useHydrated,