@postenbring/hedwig-react 4.1.2 → 4.2.1

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