@postenbring/hedwig-react 4.6.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/chip/chip-group.d.ts +26 -0
  2. package/dist/chip/chip-group.d.ts.map +1 -0
  3. package/dist/chip/chip-group.js +79 -0
  4. package/dist/chip/chip-group.js.map +1 -0
  5. package/dist/chip/chip-group.mjs +8 -0
  6. package/dist/chip/chip-group.mjs.map +1 -0
  7. package/dist/chip/chip.d.ts +108 -0
  8. package/dist/chip/chip.d.ts.map +1 -0
  9. package/dist/chip/chip.js +189 -0
  10. package/dist/chip/chip.js.map +1 -0
  11. package/dist/chip/chip.mjs +8 -0
  12. package/dist/chip/chip.mjs.map +1 -0
  13. package/dist/chip/index.d.ts +5 -0
  14. package/dist/chip/index.d.ts.map +1 -0
  15. package/dist/chip/index.js +215 -0
  16. package/dist/chip/index.js.map +1 -0
  17. package/dist/chip/index.mjs +13 -0
  18. package/dist/chip/index.mjs.map +1 -0
  19. package/dist/chunk-KQPAJB4B.mjs +145 -0
  20. package/dist/chunk-KQPAJB4B.mjs.map +1 -0
  21. package/dist/chunk-PNYTWKKD.mjs +1 -0
  22. package/dist/chunk-PNYTWKKD.mjs.map +1 -0
  23. package/dist/chunk-VQPQ7RLE.mjs +32 -0
  24. package/dist/chunk-VQPQ7RLE.mjs.map +1 -0
  25. package/dist/form/error-summary/error-summary.mjs +1 -1
  26. package/dist/form/error-summary/index.mjs +1 -1
  27. package/dist/form/index.mjs +17 -17
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +632 -474
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +93 -84
  33. package/dist/layout/index.mjs +6 -6
  34. package/dist/navbar/icons.d.ts +2 -2
  35. package/dist/navbar/icons.d.ts.map +1 -1
  36. package/dist/navbar/navbar-expandable-menu.d.ts +1 -1
  37. package/dist/navbar/navbar-expandable-menu.d.ts.map +1 -1
  38. package/package.json +4 -4
  39. package/src/chip/chip-group.tsx +45 -0
  40. package/src/chip/chip.stories.tsx +197 -0
  41. package/src/chip/chip.tsx +266 -0
  42. package/src/chip/index.tsx +4 -0
  43. package/src/index.ts +1 -0
package/dist/index.js CHANGED
@@ -85,6 +85,8 @@ __export(index_exports, {
85
85
  CardMedia: () => CardMedia,
86
86
  CardMediaImg: () => CardMediaImg,
87
87
  Checkbox: () => Checkbox,
88
+ Chip: () => Chip,
89
+ ChipGroup: () => ChipGroup,
88
90
  Container: () => Container,
89
91
  DatePicker: () => DatePicker,
90
92
  DescriptionList: () => DescriptionList,
@@ -1022,18 +1024,172 @@ Card.BodyAction = CardBodyAction;
1022
1024
  Card.BodyActionRow = CardBodyActionRow;
1023
1025
  Card.BodyActionArrow = CardBodyActionArrow;
1024
1026
 
1025
- // src/description-list/description-list.tsx
1027
+ // src/chip/chip.tsx
1026
1028
  var import_react16 = require("react");
1027
1029
  var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname");
1030
+ var import_react_slot7 = require("@radix-ui/react-slot");
1028
1031
  var import_jsx_runtime14 = require("react/jsx-runtime");
1029
- var DescriptionList = (0, import_react16.forwardRef)(
1032
+ function chipClassName(type, variant, className) {
1033
+ return (0, import_typed_classname13.clsx)(
1034
+ "hds-chip",
1035
+ // The button type has no type-specific styles, so it has no modifier class
1036
+ type !== "button" && `hds-chip--${type}`,
1037
+ { "hds-chip--secondary": variant === "secondary" },
1038
+ className
1039
+ );
1040
+ }
1041
+ var InputChip = (0, import_react16.forwardRef)(
1042
+ function InputChip2(_a, ref) {
1043
+ var _b = _a, { type, variant = "primary", className, style, children } = _b, inputProps = __objRest(_b, ["type", "variant", "className", "style", "children"]);
1044
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: chipClassName(type, variant, className), style, children: [
1045
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", __spreadProps(__spreadValues({}, inputProps), { ref, type, className: "hds-chip__input" })),
1046
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "hds-chip__indicator", "aria-hidden": "true" }),
1047
+ children
1048
+ ] });
1049
+ }
1050
+ );
1051
+ var RemovableChip = (0, import_react16.forwardRef)(function RemovableChip2(_a, ref) {
1052
+ var _b = _a, {
1053
+ type,
1054
+ variant = "primary",
1055
+ className,
1056
+ onRemove,
1057
+ removeLabel = "Fjern",
1058
+ onClick,
1059
+ children
1060
+ } = _b, buttonProps = __objRest(_b, [
1061
+ "type",
1062
+ "variant",
1063
+ "className",
1064
+ "onRemove",
1065
+ "removeLabel",
1066
+ "onClick",
1067
+ "children"
1068
+ ]);
1069
+ const ariaLabel = typeof children === "string" || typeof children === "number" ? `${removeLabel} ${children}` : void 0;
1070
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1071
+ "button",
1072
+ __spreadProps(__spreadValues({
1073
+ "aria-label": ariaLabel
1074
+ }, buttonProps), {
1075
+ ref,
1076
+ type: "button",
1077
+ className: chipClassName(type, variant, className),
1078
+ onClick: (event) => {
1079
+ onClick == null ? void 0 : onClick(event);
1080
+ if (!event.defaultPrevented) onRemove == null ? void 0 : onRemove(event);
1081
+ },
1082
+ children: [
1083
+ children,
1084
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "hds-chip__remove", "aria-hidden": "true" })
1085
+ ]
1086
+ })
1087
+ );
1088
+ });
1089
+ var ButtonChip = (0, import_react16.forwardRef)(function ButtonChip2(_a, ref) {
1090
+ var _b = _a, { type, variant = "primary", className, asChild } = _b, buttonProps = __objRest(_b, ["type", "variant", "className", "asChild"]);
1091
+ const classNames = chipClassName(type, variant, className);
1092
+ if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_slot7.Slot, __spreadProps(__spreadValues({}, buttonProps), { ref, className: classNames }));
1093
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", __spreadProps(__spreadValues({}, buttonProps), { ref, type: "button", className: classNames }));
1094
+ });
1095
+ var ToggleChip = (0, import_react16.forwardRef)(function ToggleChip2(_a, ref) {
1096
+ var _b = _a, {
1097
+ type,
1098
+ variant = "primary",
1099
+ className,
1100
+ icon,
1101
+ pressedIcon,
1102
+ pressed: pressedProp,
1103
+ defaultPressed = false,
1104
+ onPressedChange,
1105
+ onClick,
1106
+ children
1107
+ } = _b, buttonProps = __objRest(_b, [
1108
+ "type",
1109
+ "variant",
1110
+ "className",
1111
+ "icon",
1112
+ "pressedIcon",
1113
+ "pressed",
1114
+ "defaultPressed",
1115
+ "onPressedChange",
1116
+ "onClick",
1117
+ "children"
1118
+ ]);
1119
+ const [pressedState, setPressedState] = (0, import_react16.useState)(defaultPressed);
1120
+ const isControlled = pressedProp !== void 0;
1121
+ const pressed = isControlled ? pressedProp : pressedState;
1122
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1123
+ "button",
1124
+ __spreadProps(__spreadValues({}, buttonProps), {
1125
+ ref,
1126
+ type: "button",
1127
+ "aria-pressed": pressed,
1128
+ className: chipClassName(type, variant, className),
1129
+ onClick: (event) => {
1130
+ onClick == null ? void 0 : onClick(event);
1131
+ if (event.defaultPrevented) return;
1132
+ if (!isControlled) setPressedState(!pressed);
1133
+ onPressedChange == null ? void 0 : onPressedChange(!pressed);
1134
+ },
1135
+ children: [
1136
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "hds-chip__icon", "aria-hidden": "true", children: pressed && pressedIcon ? pressedIcon : icon }),
1137
+ children
1138
+ ]
1139
+ })
1140
+ );
1141
+ });
1142
+ var Chip = (0, import_react16.forwardRef)((props, ref) => {
1143
+ const inputRef = ref;
1144
+ const buttonRef = ref;
1145
+ switch (props.type) {
1146
+ case "radio":
1147
+ case "checkbox":
1148
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InputChip, __spreadProps(__spreadValues({}, props), { ref: inputRef }));
1149
+ case "removable":
1150
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(RemovableChip, __spreadProps(__spreadValues({}, props), { ref: buttonRef }));
1151
+ case "button":
1152
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ButtonChip, __spreadProps(__spreadValues({}, props), { ref: buttonRef }));
1153
+ case "toggle":
1154
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ToggleChip, __spreadProps(__spreadValues({}, props), { ref: buttonRef }));
1155
+ }
1156
+ });
1157
+ Chip.displayName = "Chip";
1158
+
1159
+ // src/chip/chip-group.tsx
1160
+ var import_react17 = require("react");
1161
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
1162
+ var import_react_slot8 = require("@radix-ui/react-slot");
1163
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1164
+ var ChipGroup = (0, import_react17.forwardRef)(
1165
+ (_a, ref) => {
1166
+ var _b = _a, { layout = "wrap", asChild, className, children } = _b, rest = __objRest(_b, ["layout", "asChild", "className", "children"]);
1167
+ const Component = asChild ? import_react_slot8.Slot : "div";
1168
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1169
+ Component,
1170
+ __spreadProps(__spreadValues({
1171
+ className: (0, import_typed_classname14.clsx)("hds-chip-group", `hds-chip-group--${layout}`, className),
1172
+ ref
1173
+ }, rest), {
1174
+ children
1175
+ })
1176
+ );
1177
+ }
1178
+ );
1179
+ ChipGroup.displayName = "ChipGroup";
1180
+
1181
+ // src/description-list/description-list.tsx
1182
+ var import_react18 = require("react");
1183
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
1184
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1185
+ var DescriptionList = (0, import_react18.forwardRef)(
1030
1186
  (_a, ref) => {
1031
1187
  var _b = _a, { variant = "vertical", className } = _b, rest = __objRest(_b, ["variant", "className"]);
1032
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1188
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1033
1189
  "dl",
1034
1190
  __spreadValues({
1035
1191
  ref,
1036
- className: (0, import_typed_classname13.clsx)(
1192
+ className: (0, import_typed_classname15.clsx)(
1037
1193
  "hds-description-list",
1038
1194
  {
1039
1195
  "hds-description-list--horizontal": variant === "horizontal"
@@ -1047,35 +1203,35 @@ var DescriptionList = (0, import_react16.forwardRef)(
1047
1203
  DescriptionList.displayName = "DescriptionList";
1048
1204
 
1049
1205
  // src/figure/figure.tsx
1050
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname");
1051
- var import_react_slot7 = require("@radix-ui/react-slot");
1052
- var import_react17 = require("react");
1053
- var import_jsx_runtime15 = require("react/jsx-runtime");
1054
- var Figure = (0, import_react17.forwardRef)(
1206
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
1207
+ var import_react_slot9 = require("@radix-ui/react-slot");
1208
+ var import_react19 = require("react");
1209
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1210
+ var Figure = (0, import_react19.forwardRef)(
1055
1211
  (_a, ref) => {
1056
1212
  var _b = _a, { children, asChild, className } = _b, rest = __objRest(_b, ["children", "asChild", "className"]);
1057
- const Component = asChild ? import_react_slot7.Slot : "figure";
1058
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname14.clsx)("hds-figure", className) }, rest), { children }));
1213
+ const Component = asChild ? import_react_slot9.Slot : "figure";
1214
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname16.clsx)("hds-figure", className) }, rest), { children }));
1059
1215
  }
1060
1216
  );
1061
1217
  Figure.displayName = "Figure";
1062
1218
 
1063
1219
  // src/form/checkbox/checkbox.tsx
1064
- var import_react23 = require("react");
1065
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1220
+ var import_react25 = require("react");
1221
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1066
1222
 
1067
1223
  // src/form/validation-message/validation-message.tsx
1068
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname");
1069
- var import_react18 = require("react");
1070
- var import_jsx_runtime16 = require("react/jsx-runtime");
1071
- var ValidationMessage = (0, import_react18.forwardRef)(
1224
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
1225
+ var import_react20 = require("react");
1226
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1227
+ var ValidationMessage = (0, import_react20.forwardRef)(
1072
1228
  (_a, ref) => {
1073
1229
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1074
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1230
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1075
1231
  "div",
1076
1232
  __spreadValues({
1077
1233
  "aria-live": "polite",
1078
- className: (0, import_typed_classname15.clsx)("hds-validation-message", className),
1234
+ className: (0, import_typed_classname17.clsx)("hds-validation-message", className),
1079
1235
  ref
1080
1236
  }, rest)
1081
1237
  );
@@ -1084,40 +1240,40 @@ var ValidationMessage = (0, import_react18.forwardRef)(
1084
1240
  ValidationMessage.displayName = "ValidationMessage";
1085
1241
 
1086
1242
  // src/form/error-message/error-message.tsx
1087
- var import_react19 = require("react");
1088
- var import_jsx_runtime17 = require("react/jsx-runtime");
1089
- var ErrorMessage = (0, import_react19.forwardRef)(
1243
+ var import_react21 = require("react");
1244
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1245
+ var ErrorMessage = (0, import_react21.forwardRef)(
1090
1246
  (_a, ref) => {
1091
1247
  var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
1092
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ValidationMessage, __spreadProps(__spreadValues({ id, "data-color": "error", className }, rest), { ref, children }));
1248
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ValidationMessage, __spreadProps(__spreadValues({ id, "data-color": "error", className }, rest), { ref, children }));
1093
1249
  }
1094
1250
  );
1095
1251
  ErrorMessage.displayName = "ErrorMessage";
1096
1252
 
1097
1253
  // src/form/fieldset/fieldset.tsx
1098
- var import_react22 = require("react");
1099
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname");
1254
+ var import_react24 = require("react");
1255
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1100
1256
 
1101
1257
  // src/form/fieldset/fieldset-description.tsx
1102
- var import_react20 = require("react");
1103
- var import_jsx_runtime18 = require("react/jsx-runtime");
1104
- var FieldsetDescription = (0, import_react20.forwardRef)(
1258
+ var import_react22 = require("react");
1259
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1260
+ var FieldsetDescription = (0, import_react22.forwardRef)(
1105
1261
  function FieldsetDescription2(rest, ref) {
1106
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", __spreadValues({ className: "hds-fieldset__description", ref }, rest));
1262
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", __spreadValues({ className: "hds-fieldset__description", ref }, rest));
1107
1263
  }
1108
1264
  );
1109
1265
 
1110
1266
  // src/form/fieldset/fieldset-legend.tsx
1111
- var import_react21 = require("react");
1112
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname");
1113
- var import_jsx_runtime19 = require("react/jsx-runtime");
1114
- var FieldsetLegend = (0, import_react21.forwardRef)(
1267
+ var import_react23 = require("react");
1268
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname");
1269
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1270
+ var FieldsetLegend = (0, import_react23.forwardRef)(
1115
1271
  function FieldsetLegend2(_a, ref) {
1116
1272
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1117
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1273
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1118
1274
  "legend",
1119
1275
  __spreadValues({
1120
- className: (0, import_typed_classname16.clsx)("hds-fieldset__legend", className),
1276
+ className: (0, import_typed_classname18.clsx)("hds-fieldset__legend", className),
1121
1277
  ref
1122
1278
  }, rest)
1123
1279
  );
@@ -1126,13 +1282,13 @@ var FieldsetLegend = (0, import_react21.forwardRef)(
1126
1282
  FieldsetLegend.displayName = "Fieldset.Legend";
1127
1283
 
1128
1284
  // src/form/fieldset/fieldset.tsx
1129
- var import_jsx_runtime20 = require("react/jsx-runtime");
1130
- var FieldsetContext = (0, import_react22.createContext)({
1285
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1286
+ var FieldsetContext = (0, import_react24.createContext)({
1131
1287
  hasError: false,
1132
1288
  size: ""
1133
1289
  });
1134
- var useFieldsetContext = () => (0, import_react22.useContext)(FieldsetContext);
1135
- var Fieldset = (0, import_react22.forwardRef)(function Fieldset2(_a, ref) {
1290
+ var useFieldsetContext = () => (0, import_react24.useContext)(FieldsetContext);
1291
+ var Fieldset = (0, import_react24.forwardRef)(function Fieldset2(_a, ref) {
1136
1292
  var _b = _a, {
1137
1293
  className,
1138
1294
  style,
@@ -1158,39 +1314,39 @@ var Fieldset = (0, import_react22.forwardRef)(function Fieldset2(_a, ref) {
1158
1314
  "size",
1159
1315
  "children"
1160
1316
  ]);
1161
- const validationMessageId = (0, import_react22.useId)();
1317
+ const validationMessageId = (0, import_react24.useId)();
1162
1318
  const validationColor = errorMessage ? "error" : dataColor;
1163
1319
  const validationMessageValue = getValidationMessageValue(validationMessage, errorMessage);
1164
- const childArray = import_react22.Children.toArray(children);
1320
+ const childArray = import_react24.Children.toArray(children);
1165
1321
  const legendChild = childArray.find(
1166
- (child) => (0, import_react22.isValidElement)(child) && child.type === FieldsetLegend
1322
+ (child) => (0, import_react24.isValidElement)(child) && child.type === FieldsetLegend
1167
1323
  );
1168
1324
  const contentChildren = legendChild ? childArray.filter((child) => child !== legendChild) : childArray;
1169
1325
  let renderedLegend = null;
1170
1326
  if (legendChild) {
1171
- renderedLegend = (0, import_react22.cloneElement)(legendChild, __spreadProps(__spreadValues(__spreadValues({}, legendProps), legendChild.props), {
1172
- className: (0, import_typed_classname17.clsx)(
1327
+ renderedLegend = (0, import_react24.cloneElement)(legendChild, __spreadProps(__spreadValues(__spreadValues({}, legendProps), legendChild.props), {
1328
+ className: (0, import_typed_classname19.clsx)(
1173
1329
  legendProps == null ? void 0 : legendProps.className,
1174
1330
  legendChild.props.className
1175
1331
  )
1176
1332
  }));
1177
1333
  } else if (legend !== void 0) {
1178
- renderedLegend = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FieldsetLegend, __spreadProps(__spreadValues({}, legendProps), { children: legend }));
1334
+ renderedLegend = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FieldsetLegend, __spreadProps(__spreadValues({}, legendProps), { children: legend }));
1179
1335
  }
1180
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1336
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1181
1337
  "fieldset",
1182
1338
  __spreadProps(__spreadValues({
1183
1339
  "aria-describedby": validationMessageValue ? validationMessageId : void 0,
1184
1340
  "aria-invalid": errorMessage ? true : void 0,
1185
- className: (0, import_typed_classname17.clsx)("hds-fieldset", { [`hds-fieldset--${size}`]: size }, className),
1341
+ className: (0, import_typed_classname19.clsx)("hds-fieldset", { [`hds-fieldset--${size}`]: size }, className),
1186
1342
  "data-color": validationColor,
1187
1343
  ref,
1188
1344
  style
1189
1345
  }, rest), {
1190
1346
  children: [
1191
1347
  renderedLegend,
1192
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage), size }, children: contentChildren }),
1193
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1348
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FieldsetContext.Provider, { value: { hasError: Boolean(errorMessage), size }, children: contentChildren }),
1349
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1194
1350
  ValidationMessage,
1195
1351
  __spreadProps(__spreadValues({
1196
1352
  id: validationMessageId
@@ -1206,8 +1362,8 @@ Fieldset.Description = FieldsetDescription;
1206
1362
  Fieldset.Legend = FieldsetLegend;
1207
1363
 
1208
1364
  // src/form/checkbox/checkbox.tsx
1209
- var import_jsx_runtime21 = require("react/jsx-runtime");
1210
- var Checkbox = (0, import_react23.forwardRef)(
1365
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1366
+ var Checkbox = (0, import_react25.forwardRef)(
1211
1367
  (_a, ref) => {
1212
1368
  var _b = _a, {
1213
1369
  variant = "plain",
@@ -1232,22 +1388,22 @@ var Checkbox = (0, import_react23.forwardRef)(
1232
1388
  "className",
1233
1389
  "size"
1234
1390
  ]);
1235
- const validationMessageId = (0, import_react23.useId)();
1391
+ const validationMessageId = (0, import_react25.useId)();
1236
1392
  const { hasError: hasFieldsetError, size: fieldsetSize } = useFieldsetContext();
1237
1393
  const hasError = !!errorMessage || hasFieldsetError || hasErrorProp;
1238
1394
  const effectiveSize = size || fieldsetSize;
1239
1395
  const validationMessageValue = getValidationMessageValue(validationMessage, errorMessage);
1240
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1396
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1241
1397
  "div",
1242
1398
  {
1243
- className: (0, import_typed_classname18.clsx)("hds-checkbox-wrapper", {
1399
+ className: (0, import_typed_classname20.clsx)("hds-checkbox-wrapper", {
1244
1400
  "hds-checkbox-wrapper--small": effectiveSize === "small"
1245
1401
  }),
1246
1402
  children: [
1247
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1403
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1248
1404
  "div",
1249
1405
  {
1250
- className: (0, import_typed_classname18.clsx)(
1406
+ className: (0, import_typed_classname20.clsx)(
1251
1407
  "hds-checkbox",
1252
1408
  {
1253
1409
  [`hds-checkbox--${variant}`]: variant === "bounding-box"
@@ -1255,8 +1411,8 @@ var Checkbox = (0, import_react23.forwardRef)(
1255
1411
  className
1256
1412
  ),
1257
1413
  children: [
1258
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { children: [
1259
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1414
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { children: [
1415
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1260
1416
  "input",
1261
1417
  __spreadValues({
1262
1418
  "aria-invalid": hasError ? true : void 0,
@@ -1265,14 +1421,14 @@ var Checkbox = (0, import_react23.forwardRef)(
1265
1421
  type: "checkbox"
1266
1422
  }, rest)
1267
1423
  ),
1268
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
1269
- title ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
1424
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
1425
+ title ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
1270
1426
  ] }),
1271
1427
  title ? children : null
1272
1428
  ]
1273
1429
  }
1274
1430
  ),
1275
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1431
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1276
1432
  ValidationMessage,
1277
1433
  __spreadProps(__spreadValues({
1278
1434
  id: validationMessageId
@@ -1288,14 +1444,14 @@ var Checkbox = (0, import_react23.forwardRef)(
1288
1444
  Checkbox.displayName = "Checkbox";
1289
1445
 
1290
1446
  // src/form/date-picker/date-picker.tsx
1291
- var import_react25 = require("react");
1292
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname");
1447
+ var import_react27 = require("react");
1448
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1293
1449
 
1294
1450
  // src/form/input-group/input-group.tsx
1295
- var import_react24 = require("react");
1296
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname");
1297
- var import_jsx_runtime22 = require("react/jsx-runtime");
1298
- var InputGroup = (0, import_react24.forwardRef)(function InputGroup2(_a, ref) {
1451
+ var import_react26 = require("react");
1452
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1453
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1454
+ var InputGroup = (0, import_react26.forwardRef)(function InputGroup2(_a, ref) {
1299
1455
  var _b = _a, {
1300
1456
  id,
1301
1457
  className,
@@ -1328,8 +1484,8 @@ var InputGroup = (0, import_react24.forwardRef)(function InputGroup2(_a, ref) {
1328
1484
  "readOnly",
1329
1485
  "children"
1330
1486
  ]);
1331
- const validationMessageId = (0, import_react24.useId)();
1332
- const inputId = (0, import_react24.useId)();
1487
+ const validationMessageId = (0, import_react26.useId)();
1488
+ const inputId = (0, import_react26.useId)();
1333
1489
  const validationColor = errorMessage ? "error" : dataColor;
1334
1490
  const validationMessageValue = getValidationMessageValue(validationMessage, errorMessage);
1335
1491
  const renderInput = () => {
@@ -1338,23 +1494,23 @@ var InputGroup = (0, import_react24.forwardRef)(function InputGroup2(_a, ref) {
1338
1494
  "aria-describedby": validationMessage ? validationMessageId : void 0,
1339
1495
  "aria-invalid": errorMessage ? true : void 0,
1340
1496
  id: id != null ? id : inputId,
1341
- className: (0, import_typed_classname19.clsx)("hds-input-group__input")
1497
+ className: (0, import_typed_classname21.clsx)("hds-input-group__input")
1342
1498
  };
1343
1499
  if (typeof children === "function") {
1344
1500
  return children(inputProps);
1345
1501
  }
1346
- const input = import_react24.Children.toArray(children)[0];
1347
- if (!(0, import_react24.isValidElement)(input)) {
1502
+ const input = import_react26.Children.toArray(children)[0];
1503
+ if (!(0, import_react26.isValidElement)(input)) {
1348
1504
  return;
1349
1505
  }
1350
- return (0, import_react24.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
1506
+ return (0, import_react26.cloneElement)(input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), input.props), {
1351
1507
  className: `${inputProps.className} ${(_a2 = input.props.className) != null ? _a2 : ""}`
1352
1508
  }));
1353
1509
  };
1354
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1510
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1355
1511
  "div",
1356
1512
  __spreadProps(__spreadValues({
1357
- className: (0, import_typed_classname19.clsx)(
1513
+ className: (0, import_typed_classname21.clsx)(
1358
1514
  "hds-input-group",
1359
1515
  {
1360
1516
  [`hds-input-group--${size}`]: size
@@ -1366,25 +1522,25 @@ var InputGroup = (0, import_react24.forwardRef)(function InputGroup2(_a, ref) {
1366
1522
  "data-color": validationColor
1367
1523
  }, rest), {
1368
1524
  children: [
1369
- label !== null && label !== void 0 && label !== false && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1525
+ label !== null && label !== void 0 && label !== false && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1370
1526
  "label",
1371
1527
  __spreadProps(__spreadValues({
1372
- className: (0, import_typed_classname19.clsx)("hds-input-group__label", labelClassName)
1528
+ className: (0, import_typed_classname21.clsx)("hds-input-group__label", labelClassName)
1373
1529
  }, labelProps), {
1374
1530
  htmlFor: id != null ? id : inputId,
1375
1531
  children: label
1376
1532
  })
1377
1533
  ),
1378
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1534
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1379
1535
  "div",
1380
1536
  {
1381
- className: (0, import_typed_classname19.clsx)("hds-input-group__input-wrapper"),
1537
+ className: (0, import_typed_classname21.clsx)("hds-input-group__input-wrapper"),
1382
1538
  "data-disabled": disabled,
1383
1539
  "data-readonly": readOnly,
1384
1540
  children: renderInput()
1385
1541
  }
1386
1542
  ),
1387
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1543
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1388
1544
  ValidationMessage,
1389
1545
  __spreadProps(__spreadValues({
1390
1546
  id: validationMessageId
@@ -1398,8 +1554,8 @@ var InputGroup = (0, import_react24.forwardRef)(function InputGroup2(_a, ref) {
1398
1554
  });
1399
1555
 
1400
1556
  // src/form/date-picker/date-picker.tsx
1401
- var import_jsx_runtime23 = require("react/jsx-runtime");
1402
- var DatePicker = (0, import_react25.forwardRef)(function DatePicker2(_a, ref) {
1557
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1558
+ var DatePicker = (0, import_react27.forwardRef)(function DatePicker2(_a, ref) {
1403
1559
  var _b = _a, {
1404
1560
  className,
1405
1561
  size,
@@ -1429,12 +1585,12 @@ var DatePicker = (0, import_react25.forwardRef)(function DatePicker2(_a, ref) {
1429
1585
  "data-color",
1430
1586
  "calendarButtonTitle"
1431
1587
  ]);
1432
- const inputRef = (0, import_react25.useRef)(null);
1588
+ const inputRef = (0, import_react27.useRef)(null);
1433
1589
  const mergedRef = useMergeRefs([inputRef, ref]);
1434
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1590
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1435
1591
  InputGroup,
1436
1592
  {
1437
- className: (0, import_typed_classname20.clsx)("hds-date-picker", className),
1593
+ className: (0, import_typed_classname22.clsx)("hds-date-picker", className),
1438
1594
  disabled,
1439
1595
  validationMessage,
1440
1596
  validationMessageProps,
@@ -1446,8 +1602,8 @@ var DatePicker = (0, import_react25.forwardRef)(function DatePicker2(_a, ref) {
1446
1602
  style,
1447
1603
  size,
1448
1604
  "data-color": dataColor,
1449
- children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1450
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1605
+ children: (inputProps) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1606
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1451
1607
  "input",
1452
1608
  __spreadValues(__spreadProps(__spreadValues({}, inputProps), {
1453
1609
  disabled,
@@ -1456,10 +1612,10 @@ var DatePicker = (0, import_react25.forwardRef)(function DatePicker2(_a, ref) {
1456
1612
  type: "date"
1457
1613
  }), rest)
1458
1614
  ),
1459
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1615
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1460
1616
  "button",
1461
1617
  {
1462
- className: (0, import_typed_classname20.clsx)("hds-date-picker__calendar-button"),
1618
+ className: (0, import_typed_classname22.clsx)("hds-date-picker__calendar-button"),
1463
1619
  type: "button",
1464
1620
  title: calendarButtonTitle,
1465
1621
  onClick: () => {
@@ -1475,22 +1631,22 @@ var DatePicker = (0, import_react25.forwardRef)(function DatePicker2(_a, ref) {
1475
1631
  DatePicker.displayName = "DatePicker";
1476
1632
 
1477
1633
  // src/form/error-summary/error-summary.tsx
1478
- var import_react29 = require("react");
1479
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1480
- var import_react_slot9 = require("@radix-ui/react-slot");
1634
+ var import_react31 = require("react");
1635
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1636
+ var import_react_slot11 = require("@radix-ui/react-slot");
1481
1637
 
1482
1638
  // src/list/list.tsx
1483
- var import_react26 = require("react");
1484
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname");
1485
- var import_jsx_runtime24 = require("react/jsx-runtime");
1486
- var UnorderedList = (0, import_react26.forwardRef)(
1639
+ var import_react28 = require("react");
1640
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1641
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1642
+ var UnorderedList = (0, import_react28.forwardRef)(
1487
1643
  (_a, ref) => {
1488
1644
  var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
1489
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1645
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1490
1646
  "ul",
1491
1647
  __spreadValues({
1492
1648
  ref,
1493
- className: (0, import_typed_classname21.clsx)(
1649
+ className: (0, import_typed_classname23.clsx)(
1494
1650
  "hds-list",
1495
1651
  size !== "default" && `hds-list--${size}`,
1496
1652
  className
@@ -1500,14 +1656,14 @@ var UnorderedList = (0, import_react26.forwardRef)(
1500
1656
  }
1501
1657
  );
1502
1658
  UnorderedList.displayName = "UnorderedList";
1503
- var OrderedList = (0, import_react26.forwardRef)(
1659
+ var OrderedList = (0, import_react28.forwardRef)(
1504
1660
  (_a, ref) => {
1505
1661
  var _b = _a, { size = "medium", className } = _b, rest = __objRest(_b, ["size", "className"]);
1506
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1662
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1507
1663
  "ol",
1508
1664
  __spreadValues({
1509
1665
  ref,
1510
- className: (0, import_typed_classname21.clsx)(
1666
+ className: (0, import_typed_classname23.clsx)(
1511
1667
  "hds-list",
1512
1668
  size !== "default" && `hds-list--${size}`,
1513
1669
  className
@@ -1519,17 +1675,17 @@ var OrderedList = (0, import_react26.forwardRef)(
1519
1675
  OrderedList.displayName = "OrderedList";
1520
1676
 
1521
1677
  // src/list/link-list.tsx
1522
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname");
1523
- var import_react27 = require("react");
1524
- var import_jsx_runtime25 = require("react/jsx-runtime");
1525
- var LinkList = (0, import_react27.forwardRef)(
1678
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname");
1679
+ var import_react29 = require("react");
1680
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1681
+ var LinkList = (0, import_react29.forwardRef)(
1526
1682
  (_a, ref) => {
1527
1683
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1528
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1684
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1529
1685
  UnorderedList,
1530
1686
  __spreadValues({
1531
1687
  ref,
1532
- className: (0, import_typed_classname22.clsx)("hds-list--link-list", className)
1688
+ className: (0, import_typed_classname24.clsx)("hds-list--link-list", className)
1533
1689
  }, rest)
1534
1690
  );
1535
1691
  }
@@ -1538,18 +1694,18 @@ LinkList.displayName = "LinkList";
1538
1694
 
1539
1695
  // src/link/link.tsx
1540
1696
  var React3 = require("react");
1541
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname");
1542
- var import_react28 = require("react");
1543
- var import_react_slot8 = require("@radix-ui/react-slot");
1544
- var import_jsx_runtime26 = require("react/jsx-runtime");
1545
- var Link = (0, import_react28.forwardRef)(
1697
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1698
+ var import_react30 = require("react");
1699
+ var import_react_slot10 = require("@radix-ui/react-slot");
1700
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1701
+ var Link = (0, import_react30.forwardRef)(
1546
1702
  (_a, ref) => {
1547
1703
  var _b = _a, { asChild, children, variant = "underline", size = "default", icon, className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "icon", "className"]);
1548
- const Component = asChild ? import_react_slot8.Slot : "a";
1549
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1704
+ const Component = asChild ? import_react_slot10.Slot : "a";
1705
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1550
1706
  Component,
1551
1707
  __spreadProps(__spreadValues({
1552
- className: (0, import_typed_classname23.clsx)(
1708
+ className: (0, import_typed_classname25.clsx)(
1553
1709
  "hds-link",
1554
1710
  variant !== "underline" && `hds-link--${variant}`,
1555
1711
  size !== "default" && `hds-link--${size}`,
@@ -1608,30 +1764,30 @@ function labelForInput(input) {
1608
1764
  }
1609
1765
 
1610
1766
  // src/form/error-summary/error-summary.tsx
1611
- var import_jsx_runtime27 = require("react/jsx-runtime");
1612
- var ErrorSummaryHeading = (0, import_react29.forwardRef)((_a, ref) => {
1767
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1768
+ var ErrorSummaryHeading = (0, import_react31.forwardRef)((_a, ref) => {
1613
1769
  var _b = _a, { asChild, children, as: Tag2, autoFocus = true } = _b, rest = __objRest(_b, ["asChild", "children", "as", "autoFocus"]);
1614
- const focusRef = (0, import_react29.useRef)(null);
1770
+ const focusRef = (0, import_react31.useRef)(null);
1615
1771
  const mergedRef = useMergeRefs([focusRef, ref]);
1616
- const Component = asChild ? import_react_slot9.Slot : Tag2;
1617
- (0, import_react29.useEffect)(() => {
1772
+ const Component = asChild ? import_react_slot11.Slot : Tag2;
1773
+ (0, import_react31.useEffect)(() => {
1618
1774
  setTimeout(() => {
1619
1775
  if (focusRef.current && autoFocus) {
1620
1776
  focusRef.current.focus();
1621
1777
  }
1622
1778
  });
1623
1779
  }, []);
1624
- 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 }));
1780
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname26.clsx)(`hds-error-summary__title`), ref: mergedRef, tabIndex: -1 }, rest), { children }));
1625
1781
  });
1626
1782
  ErrorSummaryHeading.displayName = "ErrorSummary.Heading";
1627
- var ErrorSummaryList = (0, import_react29.forwardRef)(
1783
+ var ErrorSummaryList = (0, import_react31.forwardRef)(
1628
1784
  (_a, ref) => {
1629
1785
  var _b = _a, { children, size = "small" } = _b, rest = __objRest(_b, ["children", "size"]);
1630
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref }, rest), { children }));
1786
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(UnorderedList, __spreadProps(__spreadValues({ size, ref }, rest), { children }));
1631
1787
  }
1632
1788
  );
1633
1789
  ErrorSummaryList.displayName = "ErrorSummary.List";
1634
- var ErrorSummaryItem = (0, import_react29.forwardRef)(
1790
+ var ErrorSummaryItem = (0, import_react31.forwardRef)(
1635
1791
  (_a, ref) => {
1636
1792
  var _b = _a, { children, href, linkProps } = _b, rest = __objRest(_b, ["children", "href", "linkProps"]);
1637
1793
  function onClick(e) {
@@ -1641,20 +1797,20 @@ var ErrorSummaryItem = (0, import_react29.forwardRef)(
1641
1797
  e.preventDefault();
1642
1798
  }
1643
1799
  }
1644
- 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 })) }));
1800
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", __spreadProps(__spreadValues({ className: (0, import_typed_classname26.clsx)(`hds-error-summary__list-item`), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Link, __spreadProps(__spreadValues({ size: "small", href, variant: "solid" }, linkProps), { onClick, children })) }));
1645
1801
  }
1646
1802
  );
1647
1803
  ErrorSummaryItem.displayName = "ErrorSummary.Item";
1648
- var ErrorSummary = (0, import_react29.forwardRef)(
1804
+ var ErrorSummary = (0, import_react31.forwardRef)(
1649
1805
  (_a, ref) => {
1650
1806
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1651
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1807
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1652
1808
  Box,
1653
1809
  __spreadProps(__spreadValues({
1654
1810
  "data-color": "error",
1655
1811
  ref
1656
1812
  }, rest), {
1657
- className: (0, import_typed_classname24.clsx)(`hds-error-summary`, className),
1813
+ className: (0, import_typed_classname26.clsx)(`hds-error-summary`, className),
1658
1814
  children
1659
1815
  })
1660
1816
  );
@@ -1666,10 +1822,10 @@ ErrorSummary.List = ErrorSummaryList;
1666
1822
  ErrorSummary.Item = ErrorSummaryItem;
1667
1823
 
1668
1824
  // src/form/input/input.tsx
1669
- var import_react30 = require("react");
1670
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname");
1671
- var import_jsx_runtime28 = require("react/jsx-runtime");
1672
- var Input = (0, import_react30.forwardRef)(
1825
+ var import_react32 = require("react");
1826
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1827
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1828
+ var Input = (0, import_react32.forwardRef)(
1673
1829
  (_a, ref) => {
1674
1830
  var _b = _a, {
1675
1831
  className,
@@ -1696,10 +1852,10 @@ var Input = (0, import_react30.forwardRef)(
1696
1852
  "readOnly",
1697
1853
  "data-color"
1698
1854
  ]);
1699
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1855
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1700
1856
  InputGroup,
1701
1857
  {
1702
- className: (0, import_typed_classname25.clsx)("hds-input", className),
1858
+ className: (0, import_typed_classname27.clsx)("hds-input", className),
1703
1859
  disabled,
1704
1860
  validationMessage,
1705
1861
  errorMessage,
@@ -1710,7 +1866,7 @@ var Input = (0, import_react30.forwardRef)(
1710
1866
  style,
1711
1867
  size,
1712
1868
  "data-color": dataColor,
1713
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", __spreadValues({ disabled, readOnly, ref }, rest))
1869
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", __spreadValues({ disabled, readOnly, ref }, rest))
1714
1870
  }
1715
1871
  );
1716
1872
  }
@@ -1718,28 +1874,28 @@ var Input = (0, import_react30.forwardRef)(
1718
1874
  Input.displayName = "Input";
1719
1875
 
1720
1876
  // src/form/radio-button/radio-button.tsx
1721
- var import_react32 = require("react");
1722
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1877
+ var import_react34 = require("react");
1878
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1723
1879
 
1724
1880
  // src/form/radio-button/radio-group.tsx
1725
- var import_react31 = require("react");
1726
- var import_jsx_runtime29 = require("react/jsx-runtime");
1727
- var RadioGroupContext = (0, import_react31.createContext)({
1881
+ var import_react33 = require("react");
1882
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1883
+ var RadioGroupContext = (0, import_react33.createContext)({
1728
1884
  name: void 0,
1729
1885
  onChange: () => void 0,
1730
1886
  size: void 0
1731
1887
  });
1732
- var useRadioGroupContext = () => (0, import_react31.useContext)(RadioGroupContext);
1733
- var RadioGroup = (0, import_react31.forwardRef)(function RadioGroup2(_a, ref) {
1888
+ var useRadioGroupContext = () => (0, import_react33.useContext)(RadioGroupContext);
1889
+ var RadioGroup = (0, import_react33.forwardRef)(function RadioGroup2(_a, ref) {
1734
1890
  var _b = _a, { name, value, onChange, children, size } = _b, rest = __objRest(_b, ["name", "value", "onChange", "children", "size"]);
1735
- 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 })) });
1891
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadioGroupContext.Provider, { value: { name, value, onChange, size }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Fieldset, __spreadProps(__spreadValues({ size }, rest), { ref, children })) });
1736
1892
  });
1737
1893
  RadioGroup.Description = FieldsetDescription;
1738
1894
  RadioGroup.Legend = FieldsetLegend;
1739
1895
  RadioGroup.displayName = "RadioGroup";
1740
1896
 
1741
1897
  // src/form/radio-button/radio-button.tsx
1742
- var import_jsx_runtime30 = require("react/jsx-runtime");
1898
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1743
1899
  var isChecked = ({
1744
1900
  checked,
1745
1901
  selectedValue,
@@ -1749,15 +1905,15 @@ var isChecked = ({
1749
1905
  if (typeof selectedValue !== "undefined") return value === selectedValue;
1750
1906
  return void 0;
1751
1907
  };
1752
- var RadioButton = (0, import_react32.forwardRef)(
1908
+ var RadioButton = (0, import_react34.forwardRef)(
1753
1909
  (_a, ref) => {
1754
1910
  var _b = _a, { checked, value, variant = "plain", title, children, className, size = "" } = _b, rest = __objRest(_b, ["checked", "value", "variant", "title", "children", "className", "size"]);
1755
1911
  const _a2 = useRadioGroupContext(), { value: selectedValue, size: groupSize } = _a2, context = __objRest(_a2, ["value", "size"]);
1756
1912
  const effectiveSize = size || groupSize;
1757
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1913
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1758
1914
  "div",
1759
1915
  {
1760
- className: (0, import_typed_classname26.clsx)(
1916
+ className: (0, import_typed_classname28.clsx)(
1761
1917
  "hds-radio-button",
1762
1918
  {
1763
1919
  [`hds-radio-button--${variant}`]: variant === "bounding-box",
@@ -1766,8 +1922,8 @@ var RadioButton = (0, import_react32.forwardRef)(
1766
1922
  className
1767
1923
  ),
1768
1924
  children: [
1769
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { children: [
1770
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1925
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("label", { children: [
1926
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1771
1927
  "input",
1772
1928
  __spreadProps(__spreadValues(__spreadValues({}, context), rest), {
1773
1929
  checked: isChecked({ checked, selectedValue, value }),
@@ -1776,8 +1932,8 @@ var RadioButton = (0, import_react32.forwardRef)(
1776
1932
  type: "radio"
1777
1933
  })
1778
1934
  ),
1779
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1780
- title ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1935
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { "aria-hidden": true, className: "hds-radio-button__checkmark" }),
1936
+ title ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "hds-radio-button__title", children: title }) : children
1781
1937
  ] }),
1782
1938
  title ? children : null
1783
1939
  ]
@@ -1788,22 +1944,22 @@ var RadioButton = (0, import_react32.forwardRef)(
1788
1944
  RadioButton.displayName = "RadioButton";
1789
1945
 
1790
1946
  // src/form/search-wrapper/search-wrapper.tsx
1791
- var import_react33 = require("react");
1792
- var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname");
1793
- var import_jsx_runtime31 = require("react/jsx-runtime");
1794
- var SearchWrapper = (0, import_react33.forwardRef)(
1947
+ var import_react35 = require("react");
1948
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1949
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1950
+ var SearchWrapper = (0, import_react35.forwardRef)(
1795
1951
  (_a, ref) => {
1796
1952
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1797
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", __spreadValues({ className: (0, import_typed_classname27.clsx)("hds-search-wrapper", className), ref }, rest));
1953
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", __spreadValues({ className: (0, import_typed_classname29.clsx)("hds-search-wrapper", className), ref }, rest));
1798
1954
  }
1799
1955
  );
1800
1956
  SearchWrapper.displayName = "SearchWrapper";
1801
1957
 
1802
1958
  // src/form/select/select.tsx
1803
- var import_react34 = require("react");
1804
- var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname");
1805
- var import_jsx_runtime32 = require("react/jsx-runtime");
1806
- var Select = (0, import_react34.forwardRef)(
1959
+ var import_react36 = require("react");
1960
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1961
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1962
+ var Select = (0, import_react36.forwardRef)(
1807
1963
  (_a, ref) => {
1808
1964
  var _b = _a, {
1809
1965
  className,
@@ -1832,10 +1988,10 @@ var Select = (0, import_react34.forwardRef)(
1832
1988
  "data-color",
1833
1989
  "children"
1834
1990
  ]);
1835
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1991
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1836
1992
  InputGroup,
1837
1993
  {
1838
- className: (0, import_typed_classname28.clsx)("hds-select", className),
1994
+ className: (0, import_typed_classname30.clsx)("hds-select", className),
1839
1995
  disabled,
1840
1996
  validationMessage,
1841
1997
  validationMessageProps,
@@ -1846,7 +2002,7 @@ var Select = (0, import_react34.forwardRef)(
1846
2002
  style,
1847
2003
  size,
1848
2004
  "data-color": dataColor,
1849
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("select", __spreadProps(__spreadValues({ disabled, ref }, rest), { children }))
2005
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("select", __spreadProps(__spreadValues({ disabled, ref }, rest), { children }))
1850
2006
  }
1851
2007
  );
1852
2008
  }
@@ -1854,41 +2010,41 @@ var Select = (0, import_react34.forwardRef)(
1854
2010
  Select.displayName = "Select";
1855
2011
 
1856
2012
  // src/form/suggestions/suggestions.tsx
1857
- var import_react37 = require("react");
1858
- var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
2013
+ var import_react39 = require("react");
2014
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1859
2015
 
1860
2016
  // src/form/suggestions/suggestions-wrapper.tsx
1861
- var import_react35 = require("react");
1862
- var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname");
1863
- var import_jsx_runtime33 = require("react/jsx-runtime");
1864
- var SuggestionsWrapper = (0, import_react35.forwardRef)(
2017
+ var import_react37 = require("react");
2018
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname");
2019
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2020
+ var SuggestionsWrapper = (0, import_react37.forwardRef)(
1865
2021
  (_a, ref) => {
1866
2022
  var _b = _a, { as: Tag2 = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1867
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Tag2, __spreadValues({ className: (0, import_typed_classname29.clsx)("hds-suggestions-wrapper", className), ref }, rest));
2023
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Tag2, __spreadValues({ className: (0, import_typed_classname31.clsx)("hds-suggestions-wrapper", className), ref }, rest));
1868
2024
  }
1869
2025
  );
1870
2026
  SuggestionsWrapper.displayName = "Suggestions.Wrapper";
1871
2027
 
1872
2028
  // src/form/suggestions/suggestions-item.tsx
1873
- var import_react36 = require("react");
1874
- var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname");
1875
- var import_react_slot10 = require("@radix-ui/react-slot");
1876
- var import_jsx_runtime34 = require("react/jsx-runtime");
1877
- var SuggestionsItem = (0, import_react36.forwardRef)(
2029
+ var import_react38 = require("react");
2030
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
2031
+ var import_react_slot12 = require("@radix-ui/react-slot");
2032
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2033
+ var SuggestionsItem = (0, import_react38.forwardRef)(
1878
2034
  (_a, ref) => {
1879
2035
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1880
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", __spreadValues({ className: (0, import_typed_classname30.clsx)("hds-suggestions-item", className), ref }, rest));
2036
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", __spreadValues({ className: (0, import_typed_classname32.clsx)("hds-suggestions-item", className), ref }, rest));
1881
2037
  }
1882
2038
  );
1883
2039
  SuggestionsItem.displayName = "Suggestions.Item";
1884
- var SuggestionsItemAction = (0, import_react36.forwardRef)(
2040
+ var SuggestionsItemAction = (0, import_react38.forwardRef)(
1885
2041
  (_a, ref) => {
1886
2042
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
1887
- const Component = asChild ? import_react_slot10.Slot : "a";
1888
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2043
+ const Component = asChild ? import_react_slot12.Slot : "a";
2044
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1889
2045
  Component,
1890
2046
  __spreadValues({
1891
- className: (0, import_typed_classname30.clsx)("hds-suggestions-item__action", className),
2047
+ className: (0, import_typed_classname32.clsx)("hds-suggestions-item__action", className),
1892
2048
  ref
1893
2049
  }, rest)
1894
2050
  );
@@ -1897,22 +2053,22 @@ var SuggestionsItemAction = (0, import_react36.forwardRef)(
1897
2053
  SuggestionsItemAction.displayName = "Suggestions.ItemAction";
1898
2054
 
1899
2055
  // src/form/suggestions/suggestions.tsx
1900
- var import_jsx_runtime35 = require("react/jsx-runtime");
1901
- var Suggestions = (0, import_react37.forwardRef)(
2056
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2057
+ var Suggestions = (0, import_react39.forwardRef)(
1902
2058
  (_a, ref) => {
1903
2059
  var _b = _a, { as = "ul", size = "default", className } = _b, rest = __objRest(_b, ["as", "size", "className"]);
1904
- const classes = (0, import_typed_classname31.clsx)(
2060
+ const classes = (0, import_typed_classname33.clsx)(
1905
2061
  "hds-suggestions",
1906
2062
  size !== "default" && `hds-suggestions--${size}`,
1907
2063
  className
1908
2064
  );
1909
- return as === "ol" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2065
+ return as === "ol" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1910
2066
  "ol",
1911
2067
  __spreadValues({
1912
2068
  className: classes,
1913
2069
  ref
1914
2070
  }, rest)
1915
- ) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", __spreadValues({ className: classes, ref }, rest));
2071
+ ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("ul", __spreadValues({ className: classes, ref }, rest));
1916
2072
  }
1917
2073
  );
1918
2074
  Suggestions.displayName = "Suggestions";
@@ -1923,10 +2079,10 @@ Suggestions.ItemAction = SuggestionsItemAction;
1923
2079
  Suggestions.Wrapper = SuggestionsWrapper;
1924
2080
 
1925
2081
  // src/form/textarea/textarea.tsx
1926
- var import_react38 = require("react");
1927
- var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname");
1928
- var import_jsx_runtime36 = require("react/jsx-runtime");
1929
- var Textarea = (0, import_react38.forwardRef)(function Textarea2(_a, ref) {
2082
+ var import_react40 = require("react");
2083
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2084
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2085
+ var Textarea = (0, import_react40.forwardRef)(function Textarea2(_a, ref) {
1930
2086
  var _b = _a, {
1931
2087
  className,
1932
2088
  size,
@@ -1954,10 +2110,10 @@ var Textarea = (0, import_react38.forwardRef)(function Textarea2(_a, ref) {
1954
2110
  "readOnly",
1955
2111
  "data-color"
1956
2112
  ]);
1957
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2113
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1958
2114
  InputGroup,
1959
2115
  {
1960
- className: (0, import_typed_classname32.clsx)("hds-textarea", className),
2116
+ className: (0, import_typed_classname34.clsx)("hds-textarea", className),
1961
2117
  disabled,
1962
2118
  validationMessage,
1963
2119
  validationMessageProps,
@@ -1969,40 +2125,40 @@ var Textarea = (0, import_react38.forwardRef)(function Textarea2(_a, ref) {
1969
2125
  style,
1970
2126
  size,
1971
2127
  "data-color": dataColor,
1972
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("textarea", __spreadValues({ disabled, readOnly, ref }, rest))
2128
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("textarea", __spreadValues({ disabled, readOnly, ref }, rest))
1973
2129
  }
1974
2130
  );
1975
2131
  });
1976
2132
  Textarea.displayName = "Textarea";
1977
2133
 
1978
2134
  // src/footer/footer.tsx
1979
- var import_react39 = require("react");
1980
- var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname");
1981
- var import_react_slot11 = require("@radix-ui/react-slot");
1982
- var import_jsx_runtime37 = require("react/jsx-runtime");
1983
- var FooterLogo = (0, import_react39.forwardRef)(
2135
+ var import_react41 = require("react");
2136
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2137
+ var import_react_slot13 = require("@radix-ui/react-slot");
2138
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2139
+ var FooterLogo = (0, import_react41.forwardRef)(
1984
2140
  (_a, ref) => {
1985
2141
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1986
- const Component = asChild ? import_react_slot11.Slot : "div";
1987
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
2142
+ const Component = asChild ? import_react_slot13.Slot : "div";
2143
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname35.clsx)(`hds-footer__logo`, className), ref }, rest), { children }));
1988
2144
  }
1989
2145
  );
1990
2146
  FooterLogo.displayName = "Footer.Logo";
1991
- var FooterButtonLink = (0, import_react39.forwardRef)(
2147
+ var FooterButtonLink = (0, import_react41.forwardRef)(
1992
2148
  (_a, ref) => {
1993
2149
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
1994
- const Component = asChild ? import_react_slot11.Slot : "a";
1995
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { asChild: true, variant: "secondary", className: (0, import_typed_classname33.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
2150
+ const Component = asChild ? import_react_slot13.Slot : "a";
2151
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { asChild: true, variant: "secondary", className: (0, import_typed_classname35.clsx)(className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, __spreadProps(__spreadValues({ ref }, rest), { children })) });
1996
2152
  }
1997
2153
  );
1998
2154
  FooterButtonLink.displayName = "FooterButton";
1999
- var FooterLinkSections = (0, import_react39.forwardRef)(
2155
+ var FooterLinkSections = (0, import_react41.forwardRef)(
2000
2156
  (_a, ref) => {
2001
2157
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2002
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_jsx_runtime37.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2003
2159
  Accordion,
2004
2160
  __spreadProps(__spreadValues({
2005
- className: (0, import_typed_classname33.clsx)("hds-footer__link-sections", className),
2161
+ className: (0, import_typed_classname35.clsx)("hds-footer__link-sections", className),
2006
2162
  ref
2007
2163
  }, rest), {
2008
2164
  children
@@ -2011,40 +2167,40 @@ var FooterLinkSections = (0, import_react39.forwardRef)(
2011
2167
  }
2012
2168
  );
2013
2169
  FooterLinkSections.displayName = "Footer.LinkSections";
2014
- var FooterLinkSection = (0, import_react39.forwardRef)(
2170
+ var FooterLinkSection = (0, import_react41.forwardRef)(
2015
2171
  (_a, ref) => {
2016
2172
  var _b = _a, { heading, children, className } = _b, rest = __objRest(_b, ["heading", "children", "className"]);
2017
- const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(LinkList, { children });
2018
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
2019
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2173
+ const linkListChildren = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LinkList, { children });
2174
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
2175
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2020
2176
  Accordion.Item,
2021
2177
  __spreadProps(__spreadValues({
2022
- className: (0, import_typed_classname33.clsx)(`hds-footer__link-section`, className),
2178
+ className: (0, import_typed_classname35.clsx)(`hds-footer__link-section`, className),
2023
2179
  ref
2024
2180
  }, rest), {
2025
2181
  children: [
2026
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Accordion.Header, { children: heading }),
2027
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Accordion.Content, { children: linkListChildren })
2182
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Accordion.Header, { children: heading }),
2183
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Accordion.Content, { children: linkListChildren })
2028
2184
  ]
2029
2185
  })
2030
2186
  ),
2031
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: (0, import_typed_classname33.clsx)(`hds-footer__link-section`, className), children: [
2032
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h2", { children: heading }),
2187
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: (0, import_typed_classname35.clsx)(`hds-footer__link-section`, className), children: [
2188
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h2", { children: heading }),
2033
2189
  linkListChildren
2034
2190
  ] })
2035
2191
  ] });
2036
2192
  }
2037
2193
  );
2038
2194
  FooterLinkSection.displayName = "Footer.LinkSection";
2039
- var Footer = (0, import_react39.forwardRef)(
2195
+ var Footer = (0, import_react41.forwardRef)(
2040
2196
  (_a, ref) => {
2041
2197
  var _b = _a, { children, className, variant, asChild } = _b, rest = __objRest(_b, ["children", "className", "variant", "asChild"]);
2042
- const Component = asChild ? import_react_slot11.Slot : "footer";
2043
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2198
+ const Component = asChild ? import_react_slot13.Slot : "footer";
2199
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2044
2200
  Component,
2045
2201
  __spreadProps(__spreadValues({
2046
2202
  "data-color-scheme": "dark",
2047
- className: (0, import_typed_classname33.clsx)(
2203
+ className: (0, import_typed_classname35.clsx)(
2048
2204
  `hds-footer`,
2049
2205
  variant === "slim" && "hds-footer--slim",
2050
2206
  className
@@ -2064,10 +2220,10 @@ Footer.LinkSection = FooterLinkSection;
2064
2220
 
2065
2221
  // src/help-text/help-text.tsx
2066
2222
  var Popover = __toESM(require("@radix-ui/react-popover"));
2067
- var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname");
2068
- var import_react40 = require("react");
2069
- var import_jsx_runtime38 = require("react/jsx-runtime");
2070
- var HelpText = (0, import_react40.forwardRef)(
2223
+ var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2224
+ var import_react42 = require("react");
2225
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2226
+ var HelpText = (0, import_react42.forwardRef)(
2071
2227
  (_a, ref) => {
2072
2228
  var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
2073
2229
  return (
@@ -2075,24 +2231,24 @@ var HelpText = (0, import_react40.forwardRef)(
2075
2231
  // In the future we can use the native popover api, but as of writing, though all browsers support it
2076
2232
  // it's not far enough back to be used in production
2077
2233
  // https://caniuse.com/mdn-html_elements_input_popovertarget
2078
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Popover.Root, { children: [
2079
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2234
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Popover.Root, { children: [
2235
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2080
2236
  "button",
2081
2237
  __spreadProps(__spreadValues({
2082
2238
  ref,
2083
- className: (0, import_typed_classname34.clsx)("hds-help-text-button", className),
2239
+ className: (0, import_typed_classname36.clsx)("hds-help-text-button", className),
2084
2240
  title,
2085
2241
  type: "button"
2086
2242
  }, rest), {
2087
2243
  children
2088
2244
  })
2089
2245
  ) }),
2090
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2246
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2091
2247
  Box,
2092
2248
  __spreadProps(__spreadValues({}, boxProps), {
2093
- className: (0, import_typed_classname34.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
2249
+ className: (0, import_typed_classname36.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
2094
2250
  children: [
2095
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Box.CloseButton, {}) }),
2251
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Box.CloseButton, {}) }),
2096
2252
  helpText
2097
2253
  ]
2098
2254
  })
@@ -2104,18 +2260,18 @@ var HelpText = (0, import_react40.forwardRef)(
2104
2260
  HelpText.displayName = "HelpText";
2105
2261
 
2106
2262
  // src/layout/container/container.tsx
2107
- var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname");
2108
- var import_react_slot12 = require("@radix-ui/react-slot");
2109
- var import_react41 = require("react");
2110
- var import_jsx_runtime39 = require("react/jsx-runtime");
2111
- var Container = (0, import_react41.forwardRef)(
2263
+ var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2264
+ var import_react_slot14 = require("@radix-ui/react-slot");
2265
+ var import_react43 = require("react");
2266
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2267
+ var Container = (0, import_react43.forwardRef)(
2112
2268
  (_a, ref) => {
2113
2269
  var _b = _a, { as: Tag2 = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
2114
- const Component = asChild ? import_react_slot12.Slot : Tag2;
2115
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2270
+ const Component = asChild ? import_react_slot14.Slot : Tag2;
2271
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2116
2272
  Component,
2117
2273
  __spreadProps(__spreadValues({}, rest), {
2118
- className: (0, import_typed_classname35.clsx)(
2274
+ className: (0, import_typed_classname37.clsx)(
2119
2275
  "hds-container",
2120
2276
  { "hds-container--slim": variant === "slim" },
2121
2277
  className
@@ -2129,9 +2285,9 @@ var Container = (0, import_react41.forwardRef)(
2129
2285
  Container.displayName = "Container";
2130
2286
 
2131
2287
  // src/layout/grid/grid.tsx
2132
- var import_typed_classname36 = require("@postenbring/hedwig-css/typed-classname");
2133
- var import_react_slot13 = require("@radix-ui/react-slot");
2134
- var import_react42 = require("react");
2288
+ var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2289
+ var import_react_slot15 = require("@radix-ui/react-slot");
2290
+ var import_react44 = require("react");
2135
2291
 
2136
2292
  // src/layout/responsive.ts
2137
2293
  function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
@@ -2152,17 +2308,17 @@ function getSpacingVariable(size) {
2152
2308
  }
2153
2309
 
2154
2310
  // src/layout/grid/grid.tsx
2155
- var import_jsx_runtime40 = require("react/jsx-runtime");
2156
- var GridItem = (0, import_react42.forwardRef)(
2311
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2312
+ var GridItem = (0, import_react44.forwardRef)(
2157
2313
  (_a, ref) => {
2158
2314
  var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
2159
- const Component = asChild ? import_react_slot13.Slot : "div";
2315
+ const Component = asChild ? import_react_slot15.Slot : "div";
2160
2316
  const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
2161
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2317
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2162
2318
  Component,
2163
2319
  __spreadProps(__spreadValues({
2164
2320
  style,
2165
- className: (0, import_typed_classname36.clsx)("hds-grid__item", className),
2321
+ className: (0, import_typed_classname38.clsx)("hds-grid__item", className),
2166
2322
  ref
2167
2323
  }, rest), {
2168
2324
  children
@@ -2171,16 +2327,16 @@ var GridItem = (0, import_react42.forwardRef)(
2171
2327
  }
2172
2328
  );
2173
2329
  GridItem.displayName = "Grid.Item";
2174
- var Grid = (0, import_react42.forwardRef)(
2330
+ var Grid = (0, import_react44.forwardRef)(
2175
2331
  (_a, ref) => {
2176
2332
  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"]);
2177
- const Component = asChild ? import_react_slot13.Slot : "div";
2333
+ const Component = asChild ? import_react_slot15.Slot : "div";
2178
2334
  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"));
2179
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2335
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2180
2336
  Component,
2181
2337
  __spreadProps(__spreadValues({
2182
2338
  style,
2183
- className: (0, import_typed_classname36.clsx)("hds-grid", className),
2339
+ className: (0, import_typed_classname38.clsx)("hds-grid", className),
2184
2340
  ref
2185
2341
  }, rest), {
2186
2342
  children
@@ -2193,11 +2349,11 @@ Grid.Item = GridItem;
2193
2349
 
2194
2350
  // src/layout/stack/stack.tsx
2195
2351
  var React4 = require("react");
2196
- var import_typed_classname37 = require("@postenbring/hedwig-css/typed-classname");
2197
- var import_react43 = require("react");
2198
- var import_react_slot14 = require("@radix-ui/react-slot");
2199
- var import_jsx_runtime41 = require("react/jsx-runtime");
2200
- var Stack = (0, import_react43.forwardRef)(
2352
+ var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2353
+ var import_react45 = require("react");
2354
+ var import_react_slot16 = require("@radix-ui/react-slot");
2355
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2356
+ var Stack = (0, import_react45.forwardRef)(
2201
2357
  (_a, ref) => {
2202
2358
  var _b = _a, {
2203
2359
  children,
@@ -2224,13 +2380,13 @@ var Stack = (0, import_react43.forwardRef)(
2224
2380
  "align",
2225
2381
  "justify"
2226
2382
  ]);
2227
- const Component = asChild ? import_react_slot14.Slot : "div";
2383
+ const Component = asChild ? import_react_slot16.Slot : "div";
2228
2384
  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));
2229
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2385
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2230
2386
  Component,
2231
2387
  __spreadProps(__spreadValues({
2232
2388
  style,
2233
- className: (0, import_typed_classname37.clsx)("hds-stack", className),
2389
+ className: (0, import_typed_classname39.clsx)("hds-stack", className),
2234
2390
  ref
2235
2391
  }, rest), {
2236
2392
  children
@@ -2239,59 +2395,59 @@ var Stack = (0, import_react43.forwardRef)(
2239
2395
  }
2240
2396
  );
2241
2397
  Stack.displayName = "Stack";
2242
- var HStack = (0, import_react43.forwardRef)((props, ref) => {
2243
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
2398
+ var HStack = (0, import_react45.forwardRef)((props, ref) => {
2399
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
2244
2400
  });
2245
2401
  HStack.displayName = "HStack";
2246
- var VStack = (0, import_react43.forwardRef)((props, ref) => {
2247
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
2402
+ var VStack = (0, import_react45.forwardRef)((props, ref) => {
2403
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
2248
2404
  });
2249
2405
  VStack.displayName = "VStack";
2250
2406
 
2251
2407
  // src/message/message.tsx
2252
- var import_react44 = require("react");
2253
- var import_typed_classname38 = require("@postenbring/hedwig-css/typed-classname");
2254
- var import_react_slot15 = require("@radix-ui/react-slot");
2255
- var import_jsx_runtime42 = require("react/jsx-runtime");
2256
- var MessageTitle = (0, import_react44.forwardRef)(
2408
+ var import_react46 = require("react");
2409
+ var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2410
+ var import_react_slot17 = require("@radix-ui/react-slot");
2411
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2412
+ var MessageTitle = (0, import_react46.forwardRef)(
2257
2413
  (_a, ref) => {
2258
2414
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2259
- const Component = asChild ? import_react_slot15.Slot : "div";
2260
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2415
+ const Component = asChild ? import_react_slot17.Slot : "div";
2416
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2261
2417
  Component,
2262
2418
  __spreadValues({
2263
- className: (0, import_typed_classname38.clsx)("hds-message__title", className),
2419
+ className: (0, import_typed_classname40.clsx)("hds-message__title", className),
2264
2420
  ref
2265
2421
  }, rest)
2266
2422
  );
2267
2423
  }
2268
2424
  );
2269
2425
  MessageTitle.displayName = "Message.Title";
2270
- var MessageDescription = (0, import_react44.forwardRef)(
2426
+ var MessageDescription = (0, import_react46.forwardRef)(
2271
2427
  (_a, ref) => {
2272
2428
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2273
- const Component = asChild ? import_react_slot15.Slot : "div";
2274
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2429
+ const Component = asChild ? import_react_slot17.Slot : "div";
2430
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2275
2431
  Component,
2276
2432
  __spreadValues({
2277
- className: (0, import_typed_classname38.clsx)("hds-message__description", className),
2433
+ className: (0, import_typed_classname40.clsx)("hds-message__description", className),
2278
2434
  ref
2279
2435
  }, rest)
2280
2436
  );
2281
2437
  }
2282
2438
  );
2283
2439
  MessageDescription.displayName = "Message.Description";
2284
- var Message = (0, import_react44.forwardRef)(
2440
+ var Message = (0, import_react46.forwardRef)(
2285
2441
  (_a, ref) => {
2286
2442
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
2287
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2443
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2288
2444
  Box,
2289
2445
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, variant === "warning" ? { "data-color-scheme": "light" } : {}), {
2290
- className: (0, import_typed_classname38.clsx)(`hds-message`, `hds-message--${variant}`, className),
2446
+ className: (0, import_typed_classname40.clsx)(`hds-message`, `hds-message--${variant}`, className),
2291
2447
  ref
2292
2448
  }), rest), {
2293
2449
  children: [
2294
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_typed_classname38.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
2450
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: (0, import_typed_classname40.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
2295
2451
  children
2296
2452
  ]
2297
2453
  })
@@ -2303,56 +2459,56 @@ Message.Title = MessageTitle;
2303
2459
  Message.Description = MessageDescription;
2304
2460
 
2305
2461
  // src/modal/modal.tsx
2306
- var import_react45 = require("react");
2307
- var import_typed_classname39 = require("@postenbring/hedwig-css/typed-classname");
2308
- var import_react_slot16 = require("@radix-ui/react-slot");
2309
- var import_jsx_runtime43 = require("react/jsx-runtime");
2310
- var ModalHeader = (0, import_react45.forwardRef)(
2462
+ var import_react47 = require("react");
2463
+ var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2464
+ var import_react_slot18 = require("@radix-ui/react-slot");
2465
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2466
+ var ModalHeader = (0, import_react47.forwardRef)(
2311
2467
  (_a, ref) => {
2312
2468
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2313
- const Component = asChild ? import_react_slot16.Slot : "h1";
2314
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2469
+ const Component = asChild ? import_react_slot18.Slot : "h1";
2470
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2315
2471
  Component,
2316
2472
  __spreadValues({
2317
- className: (0, import_typed_classname39.clsx)("hds-modal__header", className),
2473
+ className: (0, import_typed_classname41.clsx)("hds-modal__header", className),
2318
2474
  ref
2319
2475
  }, rest)
2320
2476
  );
2321
2477
  }
2322
2478
  );
2323
2479
  ModalHeader.displayName = "Modal.Header";
2324
- var ModalContent = (0, import_react45.forwardRef)(
2480
+ var ModalContent = (0, import_react47.forwardRef)(
2325
2481
  (_a, ref) => {
2326
2482
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2327
- const Component = asChild ? import_react_slot16.Slot : "div";
2328
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2483
+ const Component = asChild ? import_react_slot18.Slot : "div";
2484
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2329
2485
  Component,
2330
2486
  __spreadValues({
2331
- className: (0, import_typed_classname39.clsx)("hds-modal__content", className),
2487
+ className: (0, import_typed_classname41.clsx)("hds-modal__content", className),
2332
2488
  ref
2333
2489
  }, rest)
2334
2490
  );
2335
2491
  }
2336
2492
  );
2337
2493
  ModalContent.displayName = "Modal.Content";
2338
- var ModalFooter = (0, import_react45.forwardRef)(
2494
+ var ModalFooter = (0, import_react47.forwardRef)(
2339
2495
  (_a, ref) => {
2340
2496
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2341
- const Component = asChild ? import_react_slot16.Slot : "footer";
2342
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2497
+ const Component = asChild ? import_react_slot18.Slot : "footer";
2498
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2343
2499
  Component,
2344
2500
  __spreadValues({
2345
- className: (0, import_typed_classname39.clsx)("hds-modal__footer", className),
2501
+ className: (0, import_typed_classname41.clsx)("hds-modal__footer", className),
2346
2502
  ref
2347
2503
  }, rest)
2348
2504
  );
2349
2505
  }
2350
2506
  );
2351
2507
  ModalFooter.displayName = "Modal.Footer";
2352
- var Modal = (0, import_react45.forwardRef)(
2508
+ var Modal = (0, import_react47.forwardRef)(
2353
2509
  (_a, ref) => {
2354
2510
  var _b = _a, { children, className, open, closeOnBackdropClick, closeButtonProps, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "closeButtonProps", "onClick"]);
2355
- const modalRef = (0, import_react45.useRef)(null);
2511
+ const modalRef = (0, import_react47.useRef)(null);
2356
2512
  const mergedRef = useMergeRefs([modalRef, ref]);
2357
2513
  function onCloseButtonClick() {
2358
2514
  var _a2;
@@ -2360,7 +2516,7 @@ var Modal = (0, import_react45.forwardRef)(
2360
2516
  return false;
2361
2517
  }
2362
2518
  useScrollLock(modalRef, "hds-modal-scroll-lock");
2363
- (0, import_react45.useEffect)(() => {
2519
+ (0, import_react47.useEffect)(() => {
2364
2520
  if (modalRef.current && open !== void 0) {
2365
2521
  if (open && !modalRef.current.open) {
2366
2522
  modalRef.current.showModal();
@@ -2375,17 +2531,17 @@ var Modal = (0, import_react45.forwardRef)(
2375
2531
  }
2376
2532
  onClick == null ? void 0 : onClick(e);
2377
2533
  }
2378
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2534
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2379
2535
  Box,
2380
2536
  {
2381
2537
  asChild: true,
2382
- className: (0, import_typed_classname39.clsx)("hds-modal", className),
2538
+ className: (0, import_typed_classname41.clsx)("hds-modal", className),
2383
2539
  closeable: true,
2384
2540
  onClick: onDialogClick,
2385
2541
  onClose: onCloseButtonClick,
2386
2542
  variant: "white",
2387
2543
  closeButtonProps,
2388
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
2544
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("dialog", __spreadProps(__spreadValues({ ref: mergedRef }, rest), { children }))
2389
2545
  }
2390
2546
  );
2391
2547
  }
@@ -2395,7 +2551,7 @@ Modal.Header = ModalHeader;
2395
2551
  Modal.Content = ModalContent;
2396
2552
  Modal.Footer = ModalFooter;
2397
2553
  function useScrollLock(modalRef, bodyClass) {
2398
- (0, import_react45.useEffect)(() => {
2554
+ (0, import_react47.useEffect)(() => {
2399
2555
  if (!modalRef.current) return;
2400
2556
  if (modalRef.current.open) document.body.classList.add(bodyClass);
2401
2557
  const observer = new MutationObserver(() => {
@@ -2415,18 +2571,18 @@ function useScrollLock(modalRef, bodyClass) {
2415
2571
  }
2416
2572
 
2417
2573
  // src/navbar/navbar.tsx
2418
- var import_react47 = require("react");
2419
- var import_typed_classname41 = require("@postenbring/hedwig-css/typed-classname");
2420
- var import_react_slot17 = require("@radix-ui/react-slot");
2574
+ var import_react49 = require("react");
2575
+ var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2576
+ var import_react_slot19 = require("@radix-ui/react-slot");
2421
2577
 
2422
2578
  // src/navbar/navbar-expandable-menu.tsx
2423
- var import_react46 = require("react");
2424
- var import_typed_classname40 = require("@postenbring/hedwig-css/typed-classname");
2579
+ var import_react48 = require("react");
2580
+ var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2425
2581
 
2426
2582
  // src/navbar/icons.tsx
2427
- var import_jsx_runtime44 = require("react/jsx-runtime");
2583
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2428
2584
  function CloseIcon2() {
2429
- return /* @__PURE__ */ (0, import_jsx_runtime44.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_runtime44.jsx)(
2585
+ return /* @__PURE__ */ (0, import_jsx_runtime46.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_runtime46.jsx)(
2430
2586
  "path",
2431
2587
  {
2432
2588
  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",
@@ -2435,7 +2591,7 @@ function CloseIcon2() {
2435
2591
  ) });
2436
2592
  }
2437
2593
  function MenuIcon() {
2438
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2594
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2439
2595
  "path",
2440
2596
  {
2441
2597
  fill: "currentColor",
@@ -2445,35 +2601,35 @@ function MenuIcon() {
2445
2601
  }
2446
2602
 
2447
2603
  // src/navbar/navbar-expandable-menu.tsx
2448
- var import_jsx_runtime45 = require("react/jsx-runtime");
2449
- var ExpandableMenuContext = (0, import_react46.createContext)(null);
2604
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2605
+ var ExpandableMenuContext = (0, import_react48.createContext)(null);
2450
2606
  var useNavbarExpendableMenuContext = () => {
2451
- const value = (0, import_react46.useContext)(ExpandableMenuContext);
2607
+ const value = (0, import_react48.useContext)(ExpandableMenuContext);
2452
2608
  if (value === null) {
2453
2609
  throw new Error("useNavbarExpendableMenuContext must be used within a Navbar.ExpandableMenu");
2454
2610
  }
2455
2611
  return value;
2456
2612
  };
2457
2613
  function NavbarExpandableMenu({ children }) {
2458
- const contentId = (0, import_react46.useId)();
2459
- const [open, setOpen] = (0, import_react46.useState)(false);
2460
- (0, import_react46.useEffect)(() => {
2614
+ const contentId = (0, import_react48.useId)();
2615
+ const [open, setOpen] = (0, import_react48.useState)(false);
2616
+ (0, import_react48.useEffect)(() => {
2461
2617
  if (open) {
2462
2618
  window.scrollTo(0, 0);
2463
- document.body.classList.add((0, import_typed_classname40.clsx)("hds-navbar-scroll-lock"));
2619
+ document.body.classList.add((0, import_typed_classname42.clsx)("hds-navbar-scroll-lock"));
2464
2620
  const releaseFocusTrap2 = focusTrap(
2465
- document.getElementsByClassName((0, import_typed_classname40.clsx)("hds-navbar"))[0]
2621
+ document.getElementsByClassName((0, import_typed_classname42.clsx)("hds-navbar"))[0]
2466
2622
  );
2467
2623
  return () => {
2468
- document.body.classList.remove((0, import_typed_classname40.clsx)("hds-navbar-scroll-lock"));
2624
+ document.body.classList.remove((0, import_typed_classname42.clsx)("hds-navbar-scroll-lock"));
2469
2625
  releaseFocusTrap2();
2470
2626
  };
2471
2627
  }
2472
2628
  }, [open]);
2473
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2629
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ExpandableMenuContext.Provider, { value: { contentId, open, setOpen }, children });
2474
2630
  }
2475
2631
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
2476
- var NavbarExpandableMenuTrigger = (0, import_react46.forwardRef)(
2632
+ var NavbarExpandableMenuTrigger = (0, import_react48.forwardRef)(
2477
2633
  (_a, ref) => {
2478
2634
  var _b = _a, {
2479
2635
  whenClosedText,
@@ -2494,13 +2650,13 @@ var NavbarExpandableMenuTrigger = (0, import_react46.forwardRef)(
2494
2650
  function toggleOpen() {
2495
2651
  setOpen(!open);
2496
2652
  }
2497
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2653
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2498
2654
  "button",
2499
2655
  __spreadProps(__spreadValues({
2500
2656
  "aria-expanded": open,
2501
2657
  "aria-controls": contentId,
2502
2658
  "aria-label": open ? whenOpenHelperTitle : whenClosedHelperTitle,
2503
- className: (0, import_typed_classname40.clsx)(
2659
+ className: (0, import_typed_classname42.clsx)(
2504
2660
  "hds-navbar__item",
2505
2661
  className,
2506
2662
  open ? "hds-navbar__item--open" : "hds-navbar__item--closed"
@@ -2512,53 +2668,53 @@ var NavbarExpandableMenuTrigger = (0, import_react46.forwardRef)(
2512
2668
  style: __spreadValues({ position: "relative" }, style)
2513
2669
  }, rest), {
2514
2670
  children: [
2515
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2516
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname40.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2517
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname40.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2671
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "hds-navbar__item-responsive-text", children: [
2672
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { "aria-hidden": !open, className: (0, import_typed_classname42.clsx)("hds-navbar__item-whenopentext"), children: whenOpenText }),
2673
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { "aria-hidden": open, className: (0, import_typed_classname42.clsx)("hds-navbar__item-whenclosedtext"), children: whenClosedText })
2518
2674
  ] }),
2519
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { style: { width: 32, height: 32 }, children: open ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CloseIcon2, {}) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(MenuIcon, {}) })
2675
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { style: { width: 32, height: 32 }, children: open ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CloseIcon2, {}) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MenuIcon, {}) })
2520
2676
  ]
2521
2677
  })
2522
2678
  );
2523
2679
  }
2524
2680
  );
2525
2681
  NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenuTrigger";
2526
- var NavbarExpandableMenuContent = (0, import_react46.forwardRef)((_a, ref) => {
2682
+ var NavbarExpandableMenuContent = (0, import_react48.forwardRef)((_a, ref) => {
2527
2683
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2528
2684
  const { contentId, open } = useNavbarExpendableMenuContext();
2529
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2685
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2530
2686
  "section",
2531
2687
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
2532
2688
  id: contentId,
2533
- className: (0, import_typed_classname40.clsx)("hds-navbar__expandable-menu-content", className),
2689
+ className: (0, import_typed_classname42.clsx)("hds-navbar__expandable-menu-content", className),
2534
2690
  "data-state": open ? "open" : "closed"
2535
2691
  }), { inert: inertPropValue(!open) }), {
2536
2692
  ref,
2537
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: (0, import_typed_classname40.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2693
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: (0, import_typed_classname42.clsx)("hds-navbar__expandable-menu-content-inner"), children })
2538
2694
  })
2539
2695
  );
2540
2696
  });
2541
2697
  NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenuContent";
2542
2698
 
2543
2699
  // src/navbar/navbar.tsx
2544
- var import_jsx_runtime46 = require("react/jsx-runtime");
2545
- var NavbarLogo = (0, import_react47.forwardRef)(
2700
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2701
+ var NavbarLogo = (0, import_react49.forwardRef)(
2546
2702
  (_a, ref) => {
2547
2703
  var _b = _a, { children, className, asChild } = _b, rest = __objRest(_b, ["children", "className", "asChild"]);
2548
- const Component = asChild ? import_react_slot17.Slot : "div";
2549
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname41.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2704
+ const Component = asChild ? import_react_slot19.Slot : "div";
2705
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname43.clsx)(`hds-navbar__logo`, className), ref }, rest), { children }));
2550
2706
  }
2551
2707
  );
2552
2708
  NavbarLogo.displayName = "Navbar.Logo";
2553
- var NavbarLogoAndServiceText = (0, import_react47.forwardRef)(
2709
+ var NavbarLogoAndServiceText = (0, import_react49.forwardRef)(
2554
2710
  (_a, ref) => {
2555
2711
  var _b = _a, { children, asChild, variant, className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "className"]);
2556
- const Component = asChild ? import_react_slot17.Slot : "div";
2557
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2712
+ const Component = asChild ? import_react_slot19.Slot : "div";
2713
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2558
2714
  Component,
2559
2715
  __spreadProps(__spreadValues({
2560
2716
  ref,
2561
- className: (0, import_typed_classname41.clsx)(
2717
+ className: (0, import_typed_classname43.clsx)(
2562
2718
  "hds-navbar__logo-and-service-text",
2563
2719
  `hds-navbar__logo-and-service-text--${variant}`,
2564
2720
  className
@@ -2570,29 +2726,29 @@ var NavbarLogoAndServiceText = (0, import_react47.forwardRef)(
2570
2726
  }
2571
2727
  );
2572
2728
  NavbarLogoAndServiceText.displayName = "Navbar.NavbarLogoAndText";
2573
- var NavbarItemIcon = (0, import_react47.forwardRef)(
2729
+ var NavbarItemIcon = (0, import_react49.forwardRef)(
2574
2730
  (_a, ref) => {
2575
2731
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2576
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_slot17.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname41.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2732
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_slot19.Slot, __spreadProps(__spreadValues({ className: (0, import_typed_classname43.clsx)("hds-navbar__item-icon", className), ref }, rest), { children }));
2577
2733
  }
2578
2734
  );
2579
2735
  NavbarItemIcon.displayName = "Navbar.ItemIcon";
2580
- var NavbarItem = (0, import_react47.forwardRef)(
2736
+ var NavbarItem = (0, import_react49.forwardRef)(
2581
2737
  (_a, ref) => {
2582
2738
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2583
- const Component = asChild ? import_react_slot17.Slot : "div";
2584
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname41.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2739
+ const Component = asChild ? import_react_slot19.Slot : "div";
2740
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname43.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2585
2741
  }
2586
2742
  );
2587
2743
  NavbarItem.displayName = "Navbar.Item";
2588
- var NavbarButtonItem = (0, import_react47.forwardRef)(
2744
+ var NavbarButtonItem = (0, import_react49.forwardRef)(
2589
2745
  (_a, ref) => {
2590
2746
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2591
- const Component = asChild ? import_react_slot17.Slot : "button";
2592
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2747
+ const Component = asChild ? import_react_slot19.Slot : "button";
2748
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2593
2749
  Component,
2594
2750
  __spreadProps(__spreadValues({
2595
- className: (0, import_typed_classname41.clsx)("hds-navbar__item", className),
2751
+ className: (0, import_typed_classname43.clsx)("hds-navbar__item", className),
2596
2752
  ref,
2597
2753
  type: "button"
2598
2754
  }, rest), {
@@ -2602,36 +2758,36 @@ var NavbarButtonItem = (0, import_react47.forwardRef)(
2602
2758
  }
2603
2759
  );
2604
2760
  NavbarButtonItem.displayName = "Navbar.ButtonItem";
2605
- var NavbarLinkItem = (0, import_react47.forwardRef)(
2761
+ var NavbarLinkItem = (0, import_react49.forwardRef)(
2606
2762
  (_a, ref) => {
2607
2763
  var _b = _a, { asChild, children, className } = _b, rest = __objRest(_b, ["asChild", "children", "className"]);
2608
- const Component = asChild ? import_react_slot17.Slot : "a";
2609
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname41.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2764
+ const Component = asChild ? import_react_slot19.Slot : "a";
2765
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname43.clsx)("hds-navbar__item", className), ref }, rest), { children }));
2610
2766
  }
2611
2767
  );
2612
2768
  NavbarLinkItem.displayName = "Navbar.LinkItem";
2613
- var NavbarNavigation = (0, import_react47.forwardRef)(
2769
+ var NavbarNavigation = (0, import_react49.forwardRef)(
2614
2770
  (_a, ref) => {
2615
2771
  var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
2616
- const Component = asChild ? import_react_slot17.Slot : "div";
2617
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2772
+ const Component = asChild ? import_react_slot19.Slot : "div";
2773
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2618
2774
  Component,
2619
2775
  __spreadValues({
2620
- className: (0, import_typed_classname41.clsx)("hds-navbar__navigation", className),
2776
+ className: (0, import_typed_classname43.clsx)("hds-navbar__navigation", className),
2621
2777
  ref
2622
2778
  }, rest)
2623
2779
  );
2624
2780
  }
2625
2781
  );
2626
2782
  NavbarNavigation.displayName = "Navbar.Navigation";
2627
- var Navbar = (0, import_react47.forwardRef)(
2783
+ var Navbar = (0, import_react49.forwardRef)(
2628
2784
  (_a, ref) => {
2629
2785
  var _b = _a, { asChild, children, className, variant } = _b, rest = __objRest(_b, ["asChild", "children", "className", "variant"]);
2630
- const Component = asChild ? import_react_slot17.Slot : "header";
2631
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2786
+ const Component = asChild ? import_react_slot19.Slot : "header";
2787
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2632
2788
  Component,
2633
2789
  __spreadProps(__spreadValues({
2634
- className: (0, import_typed_classname41.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2790
+ className: (0, import_typed_classname43.clsx)("hds-navbar", variant && `hds-navbar--${variant}`, className),
2635
2791
  ref
2636
2792
  }, rest), {
2637
2793
  children
@@ -2652,17 +2808,17 @@ Navbar.ItemIcon = NavbarItemIcon;
2652
2808
  Navbar.Navigation = NavbarNavigation;
2653
2809
 
2654
2810
  // src/show-more/show-more.tsx
2655
- var import_typed_classname42 = require("@postenbring/hedwig-css/typed-classname");
2656
- var import_react48 = require("react");
2657
- var import_jsx_runtime47 = require("react/jsx-runtime");
2658
- var ShowMoreButton = (0, import_react48.forwardRef)(
2811
+ var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2812
+ var import_react50 = require("react");
2813
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2814
+ var ShowMoreButton = (0, import_react50.forwardRef)(
2659
2815
  (_a, ref) => {
2660
2816
  var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
2661
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2817
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2662
2818
  "button",
2663
2819
  __spreadProps(__spreadValues({
2664
2820
  ref,
2665
- className: (0, import_typed_classname42.clsx)(
2821
+ className: (0, import_typed_classname44.clsx)(
2666
2822
  "hds-show-more",
2667
2823
  variant === "show-more-show-less" && "hds-show-more--show-less",
2668
2824
  className
@@ -2672,7 +2828,7 @@ var ShowMoreButton = (0, import_react48.forwardRef)(
2672
2828
  }, rest), {
2673
2829
  children: [
2674
2830
  text,
2675
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: (0, import_typed_classname42.clsx)("hds-show-more__icon") })
2831
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: (0, import_typed_classname44.clsx)("hds-show-more__icon") })
2676
2832
  ]
2677
2833
  })
2678
2834
  );
@@ -2681,11 +2837,11 @@ var ShowMoreButton = (0, import_react48.forwardRef)(
2681
2837
  ShowMoreButton.displayName = "ShowMoreButton";
2682
2838
 
2683
2839
  // src/skeleton/skeleton.tsx
2684
- var import_typed_classname43 = require("@postenbring/hedwig-css/typed-classname");
2685
- var import_react_slot18 = require("@radix-ui/react-slot");
2686
- var import_react49 = require("react");
2687
- var import_jsx_runtime48 = require("react/jsx-runtime");
2688
- var Skeleton = (0, import_react49.forwardRef)(
2840
+ var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2841
+ var import_react_slot20 = require("@radix-ui/react-slot");
2842
+ var import_react51 = require("react");
2843
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2844
+ var Skeleton = (0, import_react51.forwardRef)(
2689
2845
  (_a, ref) => {
2690
2846
  var _b = _a, {
2691
2847
  as: Tag2 = "div",
@@ -2708,11 +2864,11 @@ var Skeleton = (0, import_react49.forwardRef)(
2708
2864
  "className",
2709
2865
  "style"
2710
2866
  ]);
2711
- const Component = asChild ? import_react_slot18.Slot : Tag2;
2712
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2867
+ const Component = asChild ? import_react_slot20.Slot : Tag2;
2868
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2713
2869
  Component,
2714
2870
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
2715
- className: (0, import_typed_classname43.clsx)(
2871
+ className: (0, import_typed_classname45.clsx)(
2716
2872
  "hds-skeleton",
2717
2873
  `hds-skeleton--${variant}`,
2718
2874
  !animation && `hds-skeleton--no-animation`,
@@ -2731,19 +2887,19 @@ var Skeleton = (0, import_react49.forwardRef)(
2731
2887
  Skeleton.displayName = "Skeleton";
2732
2888
 
2733
2889
  // src/spinner/spinner.tsx
2734
- var import_react50 = require("react");
2735
- var import_typed_classname44 = require("@postenbring/hedwig-css/typed-classname");
2736
- var import_jsx_runtime49 = require("react/jsx-runtime");
2737
- var Spinner = (0, import_react50.forwardRef)(
2890
+ var import_react52 = require("react");
2891
+ var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2892
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2893
+ var Spinner = (0, import_react52.forwardRef)(
2738
2894
  (_a, ref) => {
2739
2895
  var _b = _a, { size = "medium", title = "", delay = false, className, style: _style } = _b, rest = __objRest(_b, ["size", "title", "delay", "className", "style"]);
2740
2896
  const style = __spreadValues(__spreadValues({}, _style), typeof delay === "string" && { "--hds-spinner-delay": delay });
2741
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2897
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2742
2898
  "div",
2743
2899
  __spreadValues({
2744
2900
  title,
2745
2901
  style,
2746
- className: (0, import_typed_classname44.clsx)(
2902
+ className: (0, import_typed_classname46.clsx)(
2747
2903
  "hds-spinner",
2748
2904
  `hds-spinner--${size}`,
2749
2905
  delay && "hds-spinner--delay",
@@ -2757,10 +2913,10 @@ var Spinner = (0, import_react50.forwardRef)(
2757
2913
  Spinner.displayName = "Spinner";
2758
2914
 
2759
2915
  // src/step-indicator/step-indicator.tsx
2760
- var import_typed_classname45 = require("@postenbring/hedwig-css/typed-classname");
2761
- var import_react51 = require("react");
2762
- var import_jsx_runtime50 = require("react/jsx-runtime");
2763
- var StepIndicator = (0, import_react51.forwardRef)(
2916
+ var import_typed_classname47 = require("@postenbring/hedwig-css/typed-classname");
2917
+ var import_react53 = require("react");
2918
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2919
+ var StepIndicator = (0, import_react53.forwardRef)(
2764
2920
  (_a, ref) => {
2765
2921
  var _b = _a, {
2766
2922
  activeStep,
@@ -2779,27 +2935,27 @@ var StepIndicator = (0, import_react51.forwardRef)(
2779
2935
  "title",
2780
2936
  "titleAs"
2781
2937
  ]);
2782
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2938
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2783
2939
  "div",
2784
2940
  __spreadProps(__spreadValues({
2785
2941
  ref,
2786
- className: (0, import_typed_classname45.clsx)("hds-step-indicator", className),
2942
+ className: (0, import_typed_classname47.clsx)("hds-step-indicator", className),
2787
2943
  lang
2788
2944
  }, rest), {
2789
2945
  children: [
2790
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: (0, import_typed_classname45.clsx)("hds-step-indicator__header"), children: [
2791
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: (0, import_typed_classname45.clsx)("hds-step-indicator__left-label"), children: label }),
2792
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2946
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: (0, import_typed_classname47.clsx)("hds-step-indicator__header"), children: [
2947
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: (0, import_typed_classname47.clsx)("hds-step-indicator__left-label"), children: label }),
2948
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
2793
2949
  ] }),
2794
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0, import_typed_classname45.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2950
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: (0, import_typed_classname47.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2795
2951
  "div",
2796
2952
  {
2797
- className: (0, import_typed_classname45.clsx)("hds-step-indicator__step"),
2953
+ className: (0, import_typed_classname47.clsx)("hds-step-indicator__step"),
2798
2954
  "data-state": getStepState(i + 1, activeStep)
2799
2955
  },
2800
2956
  i
2801
2957
  )) }),
2802
- title ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TitleComponent, { className: (0, import_typed_classname45.clsx)("hds-step-indicator__title"), children: title }) : null
2958
+ title ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TitleComponent, { className: (0, import_typed_classname47.clsx)("hds-step-indicator__title"), children: title }) : null
2803
2959
  ]
2804
2960
  })
2805
2961
  );
@@ -2823,18 +2979,18 @@ function getStepState(renderedStep, activeStep) {
2823
2979
  }
2824
2980
 
2825
2981
  // src/styled-html/styled-html.tsx
2826
- var import_react52 = require("react");
2827
- var import_typed_classname46 = require("@postenbring/hedwig-css/typed-classname");
2828
- var import_react_slot19 = require("@radix-ui/react-slot");
2829
- var import_jsx_runtime51 = require("react/jsx-runtime");
2830
- var StyledHtml = (0, import_react52.forwardRef)(
2982
+ var import_react54 = require("react");
2983
+ var import_typed_classname48 = require("@postenbring/hedwig-css/typed-classname");
2984
+ var import_react_slot21 = require("@radix-ui/react-slot");
2985
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2986
+ var StyledHtml = (0, import_react54.forwardRef)(
2831
2987
  (_a, ref) => {
2832
2988
  var _b = _a, { asChild, children, size, className } = _b, rest = __objRest(_b, ["asChild", "children", "size", "className"]);
2833
- const Component = asChild ? import_react_slot19.Slot : "div";
2834
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2989
+ const Component = asChild ? import_react_slot21.Slot : "div";
2990
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2835
2991
  Component,
2836
2992
  __spreadProps(__spreadValues({
2837
- className: (0, import_typed_classname46.clsx)(
2993
+ className: (0, import_typed_classname48.clsx)(
2838
2994
  `hds-styled-html`,
2839
2995
  size === "small" && "hds-styled-html--small",
2840
2996
  className
@@ -2849,20 +3005,20 @@ var StyledHtml = (0, import_react52.forwardRef)(
2849
3005
  StyledHtml.displayName = "StyledHtml";
2850
3006
 
2851
3007
  // src/table/table.tsx
2852
- var import_typed_classname47 = require("@postenbring/hedwig-css/typed-classname");
2853
- var import_react53 = require("react");
2854
- var import_jsx_runtime52 = require("react/jsx-runtime");
2855
- var Table = (0, import_react53.forwardRef)(
3008
+ var import_typed_classname49 = require("@postenbring/hedwig-css/typed-classname");
3009
+ var import_react55 = require("react");
3010
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3011
+ var Table = (0, import_react55.forwardRef)(
2856
3012
  (_a, ref) => {
2857
3013
  var _b = _a, { children, className, size, caption, description } = _b, rest = __objRest(_b, ["children", "className", "size", "caption", "description"]);
2858
- const descriptionId = (0, import_react53.useId)();
2859
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
2860
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
3014
+ const descriptionId = (0, import_react55.useId)();
3015
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
3016
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2861
3017
  "table",
2862
3018
  __spreadProps(__spreadValues({
2863
3019
  "aria-describedby": description ? descriptionId : void 0,
2864
3020
  ref,
2865
- className: (0, import_typed_classname47.clsx)(
3021
+ className: (0, import_typed_classname49.clsx)(
2866
3022
  "hds-table",
2867
3023
  {
2868
3024
  "hds-table--compressed": size === "compressed",
@@ -2872,27 +3028,27 @@ var Table = (0, import_react53.forwardRef)(
2872
3028
  )
2873
3029
  }, rest), {
2874
3030
  children: [
2875
- caption ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("caption", { children: caption }) : null,
3031
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("caption", { children: caption }) : null,
2876
3032
  children
2877
3033
  ]
2878
3034
  })
2879
3035
  ),
2880
- description ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: (0, import_typed_classname47.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
3036
+ description ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: (0, import_typed_classname49.clsx)("hds-table-description"), id: descriptionId, children: description }) : null
2881
3037
  ] });
2882
3038
  }
2883
3039
  );
2884
3040
  Table.displayName = "Table";
2885
3041
 
2886
3042
  // src/tabs/tabs.tsx
2887
- var import_react57 = require("react");
2888
- var import_typed_classname50 = require("@postenbring/hedwig-css/typed-classname");
2889
- var import_react_slot21 = require("@radix-ui/react-slot");
3043
+ var import_react59 = require("react");
3044
+ var import_typed_classname52 = require("@postenbring/hedwig-css/typed-classname");
3045
+ var import_react_slot23 = require("@radix-ui/react-slot");
2890
3046
 
2891
3047
  // src/tabs/context.ts
2892
- var import_react54 = require("react");
2893
- var TabsContext = (0, import_react54.createContext)(null);
3048
+ var import_react56 = require("react");
3049
+ var TabsContext = (0, import_react56.createContext)(null);
2894
3050
  function useTabsContext() {
2895
- const context = (0, import_react54.useContext)(TabsContext);
3051
+ const context = (0, import_react56.useContext)(TabsContext);
2896
3052
  if (!context) {
2897
3053
  throw new Error(
2898
3054
  "Tabs context required. Did you use `<Tabs.List />`, `<Tabs.Tab />`, or `<Tabs.Content />` outside of <Tabs/>?"
@@ -2902,25 +3058,25 @@ function useTabsContext() {
2902
3058
  }
2903
3059
 
2904
3060
  // src/tabs/tabs-content.tsx
2905
- var import_react55 = require("react");
2906
- var import_typed_classname48 = require("@postenbring/hedwig-css/typed-classname");
2907
- var import_react_slot20 = require("@radix-ui/react-slot");
2908
- var import_jsx_runtime53 = require("react/jsx-runtime");
2909
- var TabsContents = (0, import_react55.forwardRef)(
3061
+ var import_react57 = require("react");
3062
+ var import_typed_classname50 = require("@postenbring/hedwig-css/typed-classname");
3063
+ var import_react_slot22 = require("@radix-ui/react-slot");
3064
+ var import_jsx_runtime55 = require("react/jsx-runtime");
3065
+ var TabsContents = (0, import_react57.forwardRef)(
2910
3066
  (_a, ref) => {
2911
3067
  var _b = _a, { asChild, children } = _b, rest = __objRest(_b, ["asChild", "children"]);
2912
- const Component = asChild ? import_react_slot20.Slot : "div";
2913
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname48.clsx)("hds-tabs__contents") }, rest), { children }));
3068
+ const Component = asChild ? import_react_slot22.Slot : "div";
3069
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component, __spreadProps(__spreadValues({ ref, className: (0, import_typed_classname50.clsx)("hds-tabs__contents") }, rest), { children }));
2914
3070
  }
2915
3071
  );
2916
3072
  TabsContents.displayName = "Tabs.Contents";
2917
- var TabsContent = (0, import_react55.forwardRef)(
3073
+ var TabsContent = (0, import_react57.forwardRef)(
2918
3074
  (_a, ref) => {
2919
3075
  var _b = _a, { asChild, forTabId, children } = _b, rest = __objRest(_b, ["asChild", "forTabId", "children"]);
2920
3076
  const context = useTabsContext();
2921
- const Component = asChild ? import_react_slot20.Slot : "div";
3077
+ const Component = asChild ? import_react_slot22.Slot : "div";
2922
3078
  if (context.activeTabId === forTabId) {
2923
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
3079
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
2924
3080
  }
2925
3081
  return null;
2926
3082
  }
@@ -2928,21 +3084,21 @@ var TabsContent = (0, import_react55.forwardRef)(
2928
3084
  TabsContent.displayName = "Tabs.Content";
2929
3085
 
2930
3086
  // src/tabs/tabs-list.tsx
2931
- var import_react56 = require("react");
2932
- var import_typed_classname49 = require("@postenbring/hedwig-css/typed-classname");
2933
- var import_jsx_runtime54 = require("react/jsx-runtime");
2934
- var TabsList = (0, import_react56.forwardRef)(
3087
+ var import_react58 = require("react");
3088
+ var import_typed_classname51 = require("@postenbring/hedwig-css/typed-classname");
3089
+ var import_jsx_runtime56 = require("react/jsx-runtime");
3090
+ var TabsList = (0, import_react58.forwardRef)(
2935
3091
  (_a, ref) => {
2936
3092
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
2937
3093
  const { activeTabId } = useTabsContext();
2938
- const tabsListRef = (0, import_react56.useRef)(null);
3094
+ const tabsListRef = (0, import_react58.useRef)(null);
2939
3095
  const mergedRef = useMergeRefs([tabsListRef, ref]);
2940
3096
  const { width: tabsWidth } = useResize(tabsListRef);
2941
3097
  const isClientSide = useHydrated();
2942
3098
  const { innerWidth } = isClientSide ? window : { innerWidth: 1e3 };
2943
3099
  const wideEnough = innerWidth >= tabsWidth;
2944
- const previousTabId = (0, import_react56.useRef)(activeTabId);
2945
- (0, import_react56.useEffect)(() => {
3100
+ const previousTabId = (0, import_react58.useRef)(activeTabId);
3101
+ (0, import_react58.useEffect)(() => {
2946
3102
  const tabList = tabsListRef.current;
2947
3103
  const activeTab = tabList == null ? void 0 : tabList.querySelector(`[data-tabid="${activeTabId}"]`);
2948
3104
  if (!activeTab || !tabList) return;
@@ -2966,10 +3122,10 @@ var TabsList = (0, import_react56.forwardRef)(
2966
3122
  }
2967
3123
  previousTabId.current = activeTabId;
2968
3124
  }, [activeTabId, innerWidth]);
2969
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3125
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2970
3126
  "div",
2971
3127
  __spreadProps(__spreadValues({
2972
- className: (0, import_typed_classname49.clsx)(
3128
+ className: (0, import_typed_classname51.clsx)(
2973
3129
  "hds-tabs__list",
2974
3130
  direction === "horizontal" ? {
2975
3131
  "hds-tabs__list--horizontal": wideEnough,
@@ -2988,7 +3144,7 @@ var TabsList = (0, import_react56.forwardRef)(
2988
3144
  }
2989
3145
  );
2990
3146
  TabsList.displayName = "Tabs.List";
2991
- var TabsTab = (0, import_react56.forwardRef)(
3147
+ var TabsTab = (0, import_react58.forwardRef)(
2992
3148
  (_a, ref) => {
2993
3149
  var _b = _a, { children, tabId, className, onClick } = _b, rest = __objRest(_b, ["children", "tabId", "className", "onClick"]);
2994
3150
  const context = useTabsContext();
@@ -2997,10 +3153,10 @@ var TabsTab = (0, import_react56.forwardRef)(
2997
3153
  context.toggleActiveTabId(tabId);
2998
3154
  onClick == null ? void 0 : onClick(e);
2999
3155
  };
3000
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3156
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3001
3157
  "button",
3002
3158
  __spreadProps(__spreadValues({
3003
- className: (0, import_typed_classname49.clsx)(
3159
+ className: (0, import_typed_classname51.clsx)(
3004
3160
  "hds-tabs__tab",
3005
3161
  { "hds-tabs__tab--active": context.activeTabId === tabId },
3006
3162
  className
@@ -3019,13 +3175,13 @@ var TabsTab = (0, import_react56.forwardRef)(
3019
3175
  TabsTab.displayName = "Tabs.Tab";
3020
3176
 
3021
3177
  // src/tabs/tabs.tsx
3022
- var import_jsx_runtime55 = require("react/jsx-runtime");
3023
- var Tabs = (0, import_react57.forwardRef)(
3178
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3179
+ var Tabs = (0, import_react59.forwardRef)(
3024
3180
  (_a, ref) => {
3025
3181
  var _b = _a, { asChild, defaultTab, children } = _b, rest = __objRest(_b, ["asChild", "defaultTab", "children"]);
3026
- const [activeTabId, setActiveTabId] = (0, import_react57.useState)(defaultTab);
3027
- const Component = asChild ? import_react_slot21.Slot : "div";
3028
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname50.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
3182
+ const [activeTabId, setActiveTabId] = (0, import_react59.useState)(defaultTab);
3183
+ const Component = asChild ? import_react_slot23.Slot : "div";
3184
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname52.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TabsContext.Provider, { value: { activeTabId, toggleActiveTabId: setActiveTabId }, children }) }));
3029
3185
  }
3030
3186
  );
3031
3187
  Tabs.displayName = "Tabs";
@@ -3035,20 +3191,20 @@ Tabs.Contents = TabsContents;
3035
3191
  Tabs.Content = TabsContent;
3036
3192
 
3037
3193
  // src/tag/tag.tsx
3038
- var import_typed_classname51 = require("@postenbring/hedwig-css/typed-classname");
3039
- var import_react_slot22 = require("@radix-ui/react-slot");
3040
- var import_react58 = require("react");
3041
- var import_jsx_runtime56 = require("react/jsx-runtime");
3042
- var Tag = (0, import_react58.forwardRef)(
3194
+ var import_typed_classname53 = require("@postenbring/hedwig-css/typed-classname");
3195
+ var import_react_slot24 = require("@radix-ui/react-slot");
3196
+ var import_react60 = require("react");
3197
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3198
+ var Tag = (0, import_react60.forwardRef)(
3043
3199
  (_a, ref) => {
3044
3200
  var _b = _a, { "data-color": color, children, asChild, size = "default", className } = _b, rest = __objRest(_b, ["data-color", "children", "asChild", "size", "className"]);
3045
- const Component = asChild ? import_react_slot22.Slot : "span";
3046
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3201
+ const Component = asChild ? import_react_slot24.Slot : "span";
3202
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3047
3203
  Component,
3048
3204
  __spreadProps(__spreadValues({
3049
3205
  "data-color": color,
3050
3206
  ref,
3051
- className: (0, import_typed_classname51.clsx)("hds-tag", { "hds-tag--small": size === "small" }, className)
3207
+ className: (0, import_typed_classname53.clsx)("hds-tag", { "hds-tag--small": size === "small" }, className)
3052
3208
  }, rest), {
3053
3209
  children
3054
3210
  })
@@ -3058,10 +3214,10 @@ var Tag = (0, import_react58.forwardRef)(
3058
3214
  Tag.displayName = "Tag";
3059
3215
 
3060
3216
  // src/text/text.tsx
3061
- var import_react59 = require("react");
3062
- var import_typed_classname52 = require("@postenbring/hedwig-css/typed-classname");
3063
- var import_react_slot23 = require("@radix-ui/react-slot");
3064
- var import_jsx_runtime57 = require("react/jsx-runtime");
3217
+ var import_react61 = require("react");
3218
+ var import_typed_classname54 = require("@postenbring/hedwig-css/typed-classname");
3219
+ var import_react_slot25 = require("@radix-ui/react-slot");
3220
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3065
3221
  var defaultHTMLTag = {
3066
3222
  "h1-display": "h1",
3067
3223
  h1: "h1",
@@ -3077,7 +3233,7 @@ var defaultHTMLTag = {
3077
3233
  caption: "p",
3078
3234
  "caption-title": "p"
3079
3235
  };
3080
- var Text = (0, import_react59.forwardRef)(
3236
+ var Text = (0, import_react61.forwardRef)(
3081
3237
  (_a, ref) => {
3082
3238
  var _b = _a, {
3083
3239
  as: Tag2,
@@ -3096,12 +3252,12 @@ var Text = (0, import_react59.forwardRef)(
3096
3252
  "children",
3097
3253
  "className"
3098
3254
  ]);
3099
- const Component = asChild ? import_react_slot23.Slot : Tag2 != null ? Tag2 : defaultHTMLTag[variant];
3255
+ const Component = asChild ? import_react_slot25.Slot : Tag2 != null ? Tag2 : defaultHTMLTag[variant];
3100
3256
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
3101
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3257
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3102
3258
  Component,
3103
3259
  __spreadProps(__spreadValues({
3104
- className: (0, import_typed_classname52.clsx)(
3260
+ className: (0, import_typed_classname54.clsx)(
3105
3261
  `hds-text-${variant}`,
3106
3262
  sizeModifier && `hds-text--${sizeModifier}`,
3107
3263
  spacing && "hds-text--spacing",
@@ -3117,16 +3273,16 @@ var Text = (0, import_react59.forwardRef)(
3117
3273
  Text.displayName = "Text";
3118
3274
 
3119
3275
  // src/warning-banner/warning-banner.tsx
3120
- var import_react60 = require("react");
3121
- var import_typed_classname53 = require("@postenbring/hedwig-css/typed-classname");
3122
- var import_jsx_runtime58 = require("react/jsx-runtime");
3123
- var WarningBanner = (0, import_react60.forwardRef)(
3276
+ var import_react62 = require("react");
3277
+ var import_typed_classname55 = require("@postenbring/hedwig-css/typed-classname");
3278
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3279
+ var WarningBanner = (0, import_react62.forwardRef)(
3124
3280
  (_a, ref) => {
3125
3281
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
3126
- const descriptionId = (0, import_react60.useId)();
3282
+ const descriptionId = (0, import_react62.useId)();
3127
3283
  const expandable = !!description;
3128
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname53.clsx)("hds-warning-banner", className), ref, children: [
3129
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3284
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname55.clsx)("hds-warning-banner", className), ref, children: [
3285
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3130
3286
  WarningBannerTitle,
3131
3287
  {
3132
3288
  variant: expandable ? "expandable" : "default",
@@ -3134,22 +3290,22 @@ var WarningBanner = (0, import_react60.forwardRef)(
3134
3290
  children: title
3135
3291
  }
3136
3292
  ),
3137
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
3293
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
3138
3294
  ] }));
3139
3295
  }
3140
3296
  );
3141
3297
  WarningBanner.displayName = "WarningBanner";
3142
- var WarningBannerTitle = (0, import_react60.forwardRef)((_a, ref) => {
3298
+ var WarningBannerTitle = (0, import_react62.forwardRef)((_a, ref) => {
3143
3299
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
3144
- const [open, setOpen] = (0, import_react60.useState)(false);
3300
+ const [open, setOpen] = (0, import_react62.useState)(false);
3145
3301
  if (variant === "expandable") {
3146
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3302
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3147
3303
  "button",
3148
3304
  __spreadProps(__spreadValues({}, rest), {
3149
3305
  "aria-expanded": open,
3150
3306
  "aria-controls": descriptionId,
3151
3307
  "data-state": open ? "open" : "closed",
3152
- className: (0, import_typed_classname53.clsx)(
3308
+ className: (0, import_typed_classname55.clsx)(
3153
3309
  "hds-warning-banner__title",
3154
3310
  "hds-warning-banner__title-trigger",
3155
3311
  className
@@ -3159,28 +3315,28 @@ var WarningBannerTitle = (0, import_react60.forwardRef)((_a, ref) => {
3159
3315
  },
3160
3316
  ref,
3161
3317
  type: "button",
3162
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children })
3318
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { children })
3163
3319
  })
3164
3320
  );
3165
3321
  }
3166
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3322
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3167
3323
  "p",
3168
3324
  __spreadProps(__spreadValues({}, rest), {
3169
- className: (0, import_typed_classname53.clsx)("hds-warning-banner__title", className),
3325
+ className: (0, import_typed_classname55.clsx)("hds-warning-banner__title", className),
3170
3326
  ref,
3171
3327
  children
3172
3328
  })
3173
3329
  );
3174
3330
  });
3175
3331
  WarningBannerTitle.displayName = "WarningBannerTitle";
3176
- var WarningBannerDescription = (0, import_react60.forwardRef)(
3332
+ var WarningBannerDescription = (0, import_react62.forwardRef)(
3177
3333
  (_a, ref) => {
3178
3334
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
3179
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3335
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3180
3336
  "p",
3181
3337
  __spreadValues({
3182
3338
  id,
3183
- className: (0, import_typed_classname53.clsx)("hds-warning-banner__description", className),
3339
+ className: (0, import_typed_classname55.clsx)("hds-warning-banner__description", className),
3184
3340
  ref
3185
3341
  }, rest)
3186
3342
  );
@@ -3215,6 +3371,8 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
3215
3371
  CardMedia,
3216
3372
  CardMediaImg,
3217
3373
  Checkbox,
3374
+ Chip,
3375
+ ChipGroup,
3218
3376
  Container,
3219
3377
  DatePicker,
3220
3378
  DescriptionList,