@postenbring/hedwig-react 0.0.47 → 0.0.48

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.
package/dist/index.js CHANGED
@@ -64,6 +64,7 @@ __export(src_exports, {
64
64
  Box: () => BoxComponent,
65
65
  Breadcrumbs: () => Breadcrumbs,
66
66
  Card: () => CardComponent,
67
+ Checkbox: () => Checkbox,
67
68
  Container: () => Container,
68
69
  DarkBadge: () => DarkBadge,
69
70
  DescriptionList: () => DescriptionList,
@@ -76,6 +77,7 @@ __export(src_exports, {
76
77
  OrderedList: () => OrderedList,
77
78
  PrimaryButton: () => PrimaryButton,
78
79
  Prose: () => Prose,
80
+ Radiobutton: () => Radiobutton,
79
81
  SecondaryButton: () => SecondaryButton,
80
82
  Select: () => Select,
81
83
  Tabs: () => TabsComponent,
@@ -911,23 +913,95 @@ var Textarea = (0, import_react13.forwardRef)(function Textarea2(_a, ref) {
911
913
  });
912
914
  Textarea.displayName = "Textarea";
913
915
 
914
- // src/layout/index.tsx
916
+ // src/form/checkbox/index.tsx
915
917
  var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
916
918
  var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
917
919
  var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
918
- var import_container = require("@postenbring/hedwig-css/dist/container.css");
920
+ var import_checkbox = require("@postenbring/hedwig-css/dist/checkbox.css");
919
921
 
920
- // src/layout/container/container.tsx
921
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
922
+ // src/form/checkbox/checkbox.tsx
922
923
  var import_react14 = require("react");
924
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
923
925
  var import_jsx_runtime16 = require("react/jsx-runtime");
924
- var Container = (0, import_react14.forwardRef)(
926
+ var Checkbox = (0, import_react14.forwardRef)(
927
+ (_a, ref) => {
928
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
929
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
930
+ "label",
931
+ {
932
+ className: (0, import_typed_classname16.clsx)(
933
+ "hds-checkbox",
934
+ {
935
+ [`hds-checkbox--${variant}`]: variant === "bounding-box",
936
+ "hds-checkbox--error": hasError
937
+ },
938
+ className
939
+ ),
940
+ children: [
941
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "checkbox" })),
942
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "hds-checkbox__checkmark" }),
943
+ title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hds-checkbox__-title", children: title }) : null,
944
+ children
945
+ ]
946
+ }
947
+ );
948
+ }
949
+ );
950
+ Checkbox.displayName = "Checkbox";
951
+
952
+ // src/form/radiobutton/index.tsx
953
+ var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
954
+ var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
955
+ var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
956
+ var import_radiobutton = require("@postenbring/hedwig-css/dist/radiobutton.css");
957
+
958
+ // src/form/radiobutton/radiobutton.tsx
959
+ var import_react15 = require("react");
960
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
961
+ var import_jsx_runtime17 = require("react/jsx-runtime");
962
+ var Radiobutton = (0, import_react15.forwardRef)(
963
+ (_a, ref) => {
964
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
965
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
966
+ "label",
967
+ {
968
+ className: (0, import_typed_classname17.clsx)(
969
+ "hds-radiobutton",
970
+ {
971
+ [`hds-radiobutton--${variant}`]: variant === "bounding-box",
972
+ "hds-radiobutton--error": hasError
973
+ },
974
+ className
975
+ ),
976
+ children: [
977
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
978
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "hds-radiobutton__checkmark" }),
979
+ title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-radiobutton__title", children: title }) : null,
980
+ children
981
+ ]
982
+ }
983
+ );
984
+ }
985
+ );
986
+ Radiobutton.displayName = "Radiobutton";
987
+
988
+ // src/layout/index.tsx
989
+ var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
990
+ var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
991
+ var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
992
+ var import_container = require("@postenbring/hedwig-css/dist/container.css");
993
+
994
+ // src/layout/container/container.tsx
995
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
996
+ var import_react16 = require("react");
997
+ var import_jsx_runtime18 = require("react/jsx-runtime");
998
+ var Container = (0, import_react16.forwardRef)(
925
999
  (_a, ref) => {
926
1000
  var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
927
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1001
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
928
1002
  Component,
929
1003
  __spreadProps(__spreadValues({}, rest), {
930
- className: (0, import_typed_classname16.clsx)(
1004
+ className: (0, import_typed_classname18.clsx)(
931
1005
  "hds-container",
932
1006
  { "hds-container--slim": variant === "slim" },
933
1007
  className
@@ -941,22 +1015,22 @@ var Container = (0, import_react14.forwardRef)(
941
1015
  Container.displayName = "Container";
942
1016
 
943
1017
  // src/link/index.tsx
944
- var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
945
- var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
946
- var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
1018
+ var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1019
+ var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1020
+ var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
947
1021
  var import_link = require("@postenbring/hedwig-css/dist/link.css");
948
1022
 
949
1023
  // src/link/link.tsx
950
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
951
- var import_react15 = require("react");
952
- var import_jsx_runtime17 = require("react/jsx-runtime");
953
- var Link = (0, import_react15.forwardRef)(
1024
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1025
+ var import_react17 = require("react");
1026
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1027
+ var Link = (0, import_react17.forwardRef)(
954
1028
  (_a, ref) => {
955
1029
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
956
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1030
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
957
1031
  Component,
958
1032
  __spreadProps(__spreadValues({
959
- className: (0, import_typed_classname17.clsx)(
1033
+ className: (0, import_typed_classname19.clsx)(
960
1034
  "hds-link",
961
1035
  variant !== "underline" && `hds-link--${variant}`,
962
1036
  size !== "medium" && `hds-link--${size}`,
@@ -972,15 +1046,15 @@ var Link = (0, import_react15.forwardRef)(
972
1046
  Link.displayName = "Link";
973
1047
 
974
1048
  // src/list/index.tsx
975
- var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
976
- var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
977
- var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
1049
+ var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1050
+ var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1051
+ var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
978
1052
  var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
979
1053
  var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
980
1054
 
981
1055
  // src/list/description-list.tsx
982
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
983
- var import_jsx_runtime18 = require("react/jsx-runtime");
1056
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1057
+ var import_jsx_runtime20 = require("react/jsx-runtime");
984
1058
  function DescriptionList(_a) {
985
1059
  var _b = _a, {
986
1060
  variant = "vertical",
@@ -989,10 +1063,10 @@ function DescriptionList(_a) {
989
1063
  "variant",
990
1064
  "className"
991
1065
  ]);
992
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1066
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
993
1067
  "dl",
994
1068
  __spreadValues({
995
- className: (0, import_typed_classname18.clsx)(
1069
+ className: (0, import_typed_classname20.clsx)(
996
1070
  "hds-description-list",
997
1071
  {
998
1072
  "hds-description-list--horizontal": variant === "horizontal"
@@ -1005,8 +1079,8 @@ function DescriptionList(_a) {
1005
1079
  DescriptionList.displayName = "DescriptionList";
1006
1080
 
1007
1081
  // src/list/list.tsx
1008
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1009
- var import_jsx_runtime19 = require("react/jsx-runtime");
1082
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1083
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1010
1084
  function BaseList(_a) {
1011
1085
  var _b = _a, {
1012
1086
  as: ListTag = "ul",
@@ -1021,10 +1095,10 @@ function BaseList(_a) {
1021
1095
  "size",
1022
1096
  "className"
1023
1097
  ]);
1024
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1098
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1025
1099
  ListTag,
1026
1100
  __spreadProps(__spreadValues({
1027
- className: (0, import_typed_classname19.clsx)(
1101
+ className: (0, import_typed_classname21.clsx)(
1028
1102
  "hds-list",
1029
1103
  `hds-list--${size}`,
1030
1104
  {
@@ -1038,44 +1112,44 @@ function BaseList(_a) {
1038
1112
  );
1039
1113
  }
1040
1114
  function UnorderedList(props) {
1041
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1115
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
1042
1116
  }
1043
1117
  function OrderedList(props) {
1044
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1118
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
1045
1119
  }
1046
1120
  BaseList.displayName = "BaseList";
1047
1121
  OrderedList.displayName = "OrderedList";
1048
1122
  UnorderedList.displayName = "UnorderedList";
1049
1123
 
1050
1124
  // src/list/link-list.tsx
1051
- var import_jsx_runtime20 = require("react/jsx-runtime");
1125
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1052
1126
  function LinkList(props) {
1053
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
1127
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
1054
1128
  }
1055
1129
  LinkList.displayName = "LinkList";
1056
1130
 
1057
1131
  // src/message/index.tsx
1058
- var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1059
- var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1060
- var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1132
+ var import_fonts18 = require("@postenbring/hedwig-css/dist/fonts.css");
1133
+ var import_tokens18 = require("@postenbring/hedwig-css/dist/tokens.css");
1134
+ var import_body18 = require("@postenbring/hedwig-css/dist/body.css");
1061
1135
  var import_box4 = require("@postenbring/hedwig-css/dist/box.css");
1062
1136
  var import_message = require("@postenbring/hedwig-css/dist/message.css");
1063
1137
 
1064
1138
  // src/message/message.tsx
1065
- var import_react16 = require("react");
1066
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1067
- var import_jsx_runtime21 = require("react/jsx-runtime");
1068
- var Message = (0, import_react16.forwardRef)(
1139
+ var import_react18 = require("react");
1140
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1141
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1142
+ var Message = (0, import_react18.forwardRef)(
1069
1143
  (_a, ref) => {
1070
1144
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1071
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1145
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1072
1146
  Box,
1073
1147
  __spreadProps(__spreadValues({
1074
- className: (0, import_typed_classname20.clsx)(`hds-message`, `hds-message--${variant}`, className),
1148
+ className: (0, import_typed_classname22.clsx)(`hds-message`, `hds-message--${variant}`, className),
1075
1149
  ref
1076
1150
  }, rest), {
1077
1151
  children: [
1078
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: (0, import_typed_classname20.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1152
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: (0, import_typed_classname22.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1079
1153
  children
1080
1154
  ]
1081
1155
  })
@@ -1083,26 +1157,26 @@ var Message = (0, import_react16.forwardRef)(
1083
1157
  }
1084
1158
  );
1085
1159
  Message.displayName = "Message";
1086
- var MessageTitle = (0, import_react16.forwardRef)(
1160
+ var MessageTitle = (0, import_react18.forwardRef)(
1087
1161
  (_a, ref) => {
1088
1162
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1089
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1163
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1090
1164
  Component,
1091
1165
  __spreadValues({
1092
- className: (0, import_typed_classname20.clsx)("hds-message__title", className),
1166
+ className: (0, import_typed_classname22.clsx)("hds-message__title", className),
1093
1167
  ref
1094
1168
  }, rest)
1095
1169
  );
1096
1170
  }
1097
1171
  );
1098
1172
  MessageTitle.displayName = "Message.Title";
1099
- var MessageDescription = (0, import_react16.forwardRef)(
1173
+ var MessageDescription = (0, import_react18.forwardRef)(
1100
1174
  (_a, ref) => {
1101
1175
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1102
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1176
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1103
1177
  Component,
1104
1178
  __spreadValues({
1105
- className: (0, import_typed_classname20.clsx)("hds-message__description", className),
1179
+ className: (0, import_typed_classname22.clsx)("hds-message__description", className),
1106
1180
  ref
1107
1181
  }, rest)
1108
1182
  );
@@ -1116,21 +1190,21 @@ MessageComponent.Title = MessageTitle;
1116
1190
  MessageComponent.Description = MessageDescription;
1117
1191
 
1118
1192
  // src/modal/index.tsx
1119
- var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1120
- var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1121
- var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
1193
+ var import_fonts19 = require("@postenbring/hedwig-css/dist/fonts.css");
1194
+ var import_tokens19 = require("@postenbring/hedwig-css/dist/tokens.css");
1195
+ var import_body19 = require("@postenbring/hedwig-css/dist/body.css");
1122
1196
  var import_box6 = require("@postenbring/hedwig-css/dist/box.css");
1123
1197
  var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
1124
1198
 
1125
1199
  // src/modal/modal.tsx
1126
- var import_react18 = require("react");
1127
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1200
+ var import_react20 = require("react");
1201
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1128
1202
 
1129
1203
  // src/utils.ts
1130
- var React2 = __toESM(require("react"));
1131
- var import_react17 = require("react");
1204
+ var React4 = __toESM(require("react"));
1205
+ var import_react19 = require("react");
1132
1206
  function useMergeRefs(refs) {
1133
- return React2.useMemo(() => {
1207
+ return React4.useMemo(() => {
1134
1208
  if (refs.every((ref) => ref === null)) {
1135
1209
  return null;
1136
1210
  }
@@ -1146,16 +1220,16 @@ function useMergeRefs(refs) {
1146
1220
  }, refs);
1147
1221
  }
1148
1222
  function useResize(ref) {
1149
- const [width, setWidth] = (0, import_react17.useState)(0);
1150
- const [height, setHeight] = (0, import_react17.useState)(0);
1151
- const handleResize = (0, import_react17.useCallback)(() => {
1223
+ const [width, setWidth] = (0, import_react19.useState)(0);
1224
+ const [height, setHeight] = (0, import_react19.useState)(0);
1225
+ const handleResize = (0, import_react19.useCallback)(() => {
1152
1226
  var _a, _b, _c, _d;
1153
1227
  if ((ref == null ? void 0 : ref.current) !== null) {
1154
1228
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
1155
1229
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
1156
1230
  }
1157
1231
  }, [ref]);
1158
- (0, import_react17.useEffect)(() => {
1232
+ (0, import_react19.useEffect)(() => {
1159
1233
  window.addEventListener("load", handleResize);
1160
1234
  window.addEventListener("resize", handleResize);
1161
1235
  return () => {
@@ -1163,18 +1237,18 @@ function useResize(ref) {
1163
1237
  window.removeEventListener("resize", handleResize);
1164
1238
  };
1165
1239
  }, [ref, handleResize]);
1166
- (0, import_react17.useEffect)(() => {
1240
+ (0, import_react19.useEffect)(() => {
1167
1241
  handleResize();
1168
1242
  }, []);
1169
1243
  return { width, height };
1170
1244
  }
1171
1245
 
1172
1246
  // src/modal/modal.tsx
1173
- var import_jsx_runtime22 = require("react/jsx-runtime");
1174
- var Modal = (0, import_react18.forwardRef)(
1247
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1248
+ var Modal = (0, import_react20.forwardRef)(
1175
1249
  (_a, ref) => {
1176
1250
  var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1177
- const modalRef = (0, import_react18.useRef)(null);
1251
+ const modalRef = (0, import_react20.useRef)(null);
1178
1252
  const mergedRef = useMergeRefs([modalRef, ref]);
1179
1253
  function onCloseButtonClick() {
1180
1254
  var _a2;
@@ -1182,7 +1256,7 @@ var Modal = (0, import_react18.forwardRef)(
1182
1256
  return false;
1183
1257
  }
1184
1258
  useScrollLock(modalRef, "hds-modal-scroll-lock");
1185
- (0, import_react18.useEffect)(() => {
1259
+ (0, import_react20.useEffect)(() => {
1186
1260
  if (modalRef.current && open !== void 0) {
1187
1261
  if (open && !modalRef.current.open) {
1188
1262
  modalRef.current.showModal();
@@ -1197,11 +1271,11 @@ var Modal = (0, import_react18.forwardRef)(
1197
1271
  }
1198
1272
  onClick == null ? void 0 : onClick(e);
1199
1273
  }
1200
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1274
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1201
1275
  Box,
1202
1276
  __spreadProps(__spreadValues({
1203
1277
  as: "dialog",
1204
- className: (0, import_typed_classname21.clsx)("hds-modal", className),
1278
+ className: (0, import_typed_classname23.clsx)("hds-modal", className),
1205
1279
  closeable: true,
1206
1280
  onClick: onDialogClick,
1207
1281
  onClose: onCloseButtonClick,
@@ -1214,39 +1288,39 @@ var Modal = (0, import_react18.forwardRef)(
1214
1288
  }
1215
1289
  );
1216
1290
  Modal.displayName = "Modal";
1217
- var ModalHeader = (0, import_react18.forwardRef)(
1291
+ var ModalHeader = (0, import_react20.forwardRef)(
1218
1292
  (_a, ref) => {
1219
1293
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1220
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1294
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1221
1295
  Component,
1222
1296
  __spreadValues({
1223
- className: (0, import_typed_classname21.clsx)("hds-modal__header", className),
1297
+ className: (0, import_typed_classname23.clsx)("hds-modal__header", className),
1224
1298
  ref
1225
1299
  }, rest)
1226
1300
  );
1227
1301
  }
1228
1302
  );
1229
1303
  ModalHeader.displayName = "Modal.Header";
1230
- var ModalContent = (0, import_react18.forwardRef)(
1304
+ var ModalContent = (0, import_react20.forwardRef)(
1231
1305
  (_a, ref) => {
1232
1306
  var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1233
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1307
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1234
1308
  Component,
1235
1309
  __spreadValues({
1236
- className: (0, import_typed_classname21.clsx)("hds-modal__content", className),
1310
+ className: (0, import_typed_classname23.clsx)("hds-modal__content", className),
1237
1311
  ref
1238
1312
  }, rest)
1239
1313
  );
1240
1314
  }
1241
1315
  );
1242
1316
  ModalContent.displayName = "Modal.Content";
1243
- var ModalFooter = (0, import_react18.forwardRef)(
1317
+ var ModalFooter = (0, import_react20.forwardRef)(
1244
1318
  (_a, ref) => {
1245
1319
  var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1246
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1320
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1247
1321
  Component,
1248
1322
  __spreadValues({
1249
- className: (0, import_typed_classname21.clsx)("hds-modal__footer", className),
1323
+ className: (0, import_typed_classname23.clsx)("hds-modal__footer", className),
1250
1324
  ref
1251
1325
  }, rest)
1252
1326
  );
@@ -1254,7 +1328,7 @@ var ModalFooter = (0, import_react18.forwardRef)(
1254
1328
  );
1255
1329
  ModalFooter.displayName = "Modal.Footer";
1256
1330
  function useScrollLock(modalRef, bodyClass) {
1257
- (0, import_react18.useEffect)(() => {
1331
+ (0, import_react20.useEffect)(() => {
1258
1332
  if (!modalRef.current)
1259
1333
  return;
1260
1334
  if (modalRef.current.open)
@@ -1284,18 +1358,18 @@ ModalComponent.Content = ModalContent;
1284
1358
  ModalComponent.Footer = ModalFooter;
1285
1359
 
1286
1360
  // src/tabs/index.tsx
1287
- var import_fonts18 = require("@postenbring/hedwig-css/dist/fonts.css");
1288
- var import_tokens18 = require("@postenbring/hedwig-css/dist/tokens.css");
1289
- var import_body18 = require("@postenbring/hedwig-css/dist/body.css");
1361
+ var import_fonts20 = require("@postenbring/hedwig-css/dist/fonts.css");
1362
+ var import_tokens20 = require("@postenbring/hedwig-css/dist/tokens.css");
1363
+ var import_body20 = require("@postenbring/hedwig-css/dist/body.css");
1290
1364
  var import_tabs = require("@postenbring/hedwig-css/dist/tabs.css");
1291
1365
 
1292
1366
  // src/tabs/tabs.tsx
1293
- var import_react20 = require("react");
1294
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1367
+ var import_react22 = require("react");
1368
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1295
1369
 
1296
1370
  // src/tabs/context.ts
1297
- var import_react19 = require("react");
1298
- var TabsContext = (0, import_react19.createContext)({
1371
+ var import_react21 = require("react");
1372
+ var TabsContext = (0, import_react21.createContext)({
1299
1373
  mounted: false,
1300
1374
  activeTabId: void 0,
1301
1375
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
@@ -1304,12 +1378,12 @@ var TabsContext = (0, import_react19.createContext)({
1304
1378
  });
1305
1379
 
1306
1380
  // src/tabs/tabs.tsx
1307
- var import_jsx_runtime23 = require("react/jsx-runtime");
1308
- var Tabs = (0, import_react20.forwardRef)(
1381
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1382
+ var Tabs = (0, import_react22.forwardRef)(
1309
1383
  (_a, ref) => {
1310
1384
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1311
- const [activeTabId, setActiveTabId] = (0, import_react20.useState)(defaultTab);
1312
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname22.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1385
+ const [activeTabId, setActiveTabId] = (0, import_react22.useState)(defaultTab);
1386
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1313
1387
  TabsContext.Provider,
1314
1388
  {
1315
1389
  value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
@@ -1321,19 +1395,19 @@ var Tabs = (0, import_react20.forwardRef)(
1321
1395
  Tabs.displayName = "Tabs";
1322
1396
 
1323
1397
  // src/tabs/tabs-list.tsx
1324
- var import_react21 = require("react");
1325
- var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1326
- var import_jsx_runtime24 = require("react/jsx-runtime");
1398
+ var import_react23 = require("react");
1399
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1400
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1327
1401
  function TabsList(_a) {
1328
1402
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1329
- const tabsListRef = (0, import_react21.useRef)(null);
1403
+ const tabsListRef = (0, import_react23.useRef)(null);
1330
1404
  const { width: tabsWidth } = useResize(tabsListRef);
1331
1405
  const { innerWidth } = window;
1332
1406
  const wideEnough = innerWidth >= tabsWidth;
1333
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1407
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1334
1408
  "div",
1335
1409
  __spreadProps(__spreadValues({
1336
- className: (0, import_typed_classname23.clsx)(
1410
+ className: (0, import_typed_classname25.clsx)(
1337
1411
  "hds-tabs--list",
1338
1412
  direction === "horizontal" ? {
1339
1413
  [`hds-tabs--list-horizontal`]: wideEnough,
@@ -1351,10 +1425,10 @@ function TabsList(_a) {
1351
1425
  );
1352
1426
  }
1353
1427
  TabsList.displayName = "Tabs.List";
1354
- var Tab = (0, import_react21.forwardRef)(
1428
+ var Tab = (0, import_react23.forwardRef)(
1355
1429
  (_a, ref) => {
1356
1430
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
1357
- const context = (0, import_react21.useContext)(TabsContext);
1431
+ const context = (0, import_react23.useContext)(TabsContext);
1358
1432
  if (!context.mounted) {
1359
1433
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1360
1434
  }
@@ -1363,10 +1437,10 @@ var Tab = (0, import_react21.forwardRef)(
1363
1437
  context.toggleActiveTabId(tabId);
1364
1438
  onClick && onClick(e);
1365
1439
  };
1366
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1440
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1367
1441
  Component,
1368
1442
  __spreadProps(__spreadValues({
1369
- className: (0, import_typed_classname23.clsx)(
1443
+ className: (0, import_typed_classname25.clsx)(
1370
1444
  "hds-tabs--tab",
1371
1445
  { "hds-tabs--tab-active": context.activeTabId === tabId },
1372
1446
  className
@@ -1384,23 +1458,23 @@ var Tab = (0, import_react21.forwardRef)(
1384
1458
  Tab.displayName = "Tabs.Tab";
1385
1459
 
1386
1460
  // src/tabs/tabs-content.tsx
1387
- var import_react22 = require("react");
1388
- var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1389
- var import_jsx_runtime25 = require("react/jsx-runtime");
1461
+ var import_react24 = require("react");
1462
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1463
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1390
1464
  function TabsContents(_a) {
1391
1465
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1392
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname24.clsx)("hds-tabs--contents") }, rest), { children }));
1466
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname26.clsx)("hds-tabs--contents") }, rest), { children }));
1393
1467
  }
1394
1468
  TabsContents.displayName = "Tabs.Contents";
1395
- var TabsContent = (0, import_react22.forwardRef)(
1469
+ var TabsContent = (0, import_react24.forwardRef)(
1396
1470
  (_a, ref) => {
1397
1471
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1398
- const context = (0, import_react22.useContext)(TabsContext);
1472
+ const context = (0, import_react24.useContext)(TabsContext);
1399
1473
  if (!context.mounted) {
1400
1474
  throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1401
1475
  }
1402
1476
  if (context.activeTabId === forTabId) {
1403
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1477
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1404
1478
  }
1405
1479
  return null;
1406
1480
  }
@@ -1415,27 +1489,27 @@ TabsComponent.Contents = TabsContents;
1415
1489
  TabsComponent.Content = TabsContent;
1416
1490
 
1417
1491
  // src/warning-banner/index.tsx
1418
- var import_fonts19 = require("@postenbring/hedwig-css/dist/fonts.css");
1419
- var import_tokens19 = require("@postenbring/hedwig-css/dist/tokens.css");
1420
- var import_body19 = require("@postenbring/hedwig-css/dist/body.css");
1492
+ var import_fonts21 = require("@postenbring/hedwig-css/dist/fonts.css");
1493
+ var import_tokens21 = require("@postenbring/hedwig-css/dist/tokens.css");
1494
+ var import_body21 = require("@postenbring/hedwig-css/dist/body.css");
1421
1495
  var import_warning_banner = require("@postenbring/hedwig-css/dist/warning-banner.css");
1422
1496
 
1423
1497
  // src/warning-banner/warning-banner.tsx
1424
- var import_react23 = require("react");
1425
- var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1426
- var import_jsx_runtime26 = require("react/jsx-runtime");
1427
- var WarningBanner = (0, import_react23.forwardRef)(
1498
+ var import_react25 = require("react");
1499
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1500
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1501
+ var WarningBanner = (0, import_react25.forwardRef)(
1428
1502
  (_a, ref) => {
1429
1503
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1430
1504
  const expandable = !!description;
1431
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname25.clsx)("hds-warning-banner", className), ref, children: [
1432
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1433
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(WarningBannerDescription, { children: description }) : null
1505
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname27.clsx)("hds-warning-banner", className), ref, children: [
1506
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1507
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(WarningBannerDescription, { children: description }) : null
1434
1508
  ] }));
1435
1509
  }
1436
1510
  );
1437
1511
  WarningBanner.displayName = "WarningBanner";
1438
- var WarningBannerTitle = (0, import_react23.forwardRef)(
1512
+ var WarningBannerTitle = (0, import_react25.forwardRef)(
1439
1513
  (_a, ref) => {
1440
1514
  var _b = _a, {
1441
1515
  variant,
@@ -1448,12 +1522,12 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1448
1522
  "children",
1449
1523
  "className"
1450
1524
  ]);
1451
- const [open, setOpen] = (0, import_react23.useState)(false);
1525
+ const [open, setOpen] = (0, import_react25.useState)(false);
1452
1526
  if (variant === "expandable") {
1453
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1527
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1454
1528
  Component,
1455
1529
  __spreadProps(__spreadValues({
1456
- className: (0, import_typed_classname25.clsx)(
1530
+ className: (0, import_typed_classname27.clsx)(
1457
1531
  "hds-warning-banner__title",
1458
1532
  "hds-warning-banner__title-trigger",
1459
1533
  { "hds-warning-banner--closed": !open },
@@ -1466,8 +1540,8 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1466
1540
  type: "button"
1467
1541
  }, rest), {
1468
1542
  children: [
1469
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children }),
1470
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: (0, import_typed_classname25.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1543
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children }),
1544
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: (0, import_typed_classname27.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1471
1545
  "svg",
1472
1546
  {
1473
1547
  fill: "none",
@@ -1475,17 +1549,17 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1475
1549
  viewBox: "0 0 24 24",
1476
1550
  width: "24",
1477
1551
  xmlns: "http://www.w3.org/2000/svg",
1478
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z" }) })
1552
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z" }) })
1479
1553
  }
1480
1554
  ) })
1481
1555
  ]
1482
1556
  })
1483
1557
  );
1484
1558
  }
1485
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1559
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1486
1560
  Component,
1487
1561
  __spreadProps(__spreadValues({
1488
- className: (0, import_typed_classname25.clsx)("hds-warning-banner__title", className),
1562
+ className: (0, import_typed_classname27.clsx)("hds-warning-banner__title", className),
1489
1563
  ref
1490
1564
  }, rest), {
1491
1565
  children
@@ -1494,13 +1568,13 @@ var WarningBannerTitle = (0, import_react23.forwardRef)(
1494
1568
  }
1495
1569
  );
1496
1570
  WarningBannerTitle.displayName = "WarningBannerTitle";
1497
- var WarningBannerDescription = (0, import_react23.forwardRef)(
1571
+ var WarningBannerDescription = (0, import_react25.forwardRef)(
1498
1572
  (_a, ref) => {
1499
1573
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1500
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1574
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1501
1575
  Component,
1502
1576
  __spreadValues({
1503
- className: (0, import_typed_classname25.clsx)("hds-warning-banner__description", className),
1577
+ className: (0, import_typed_classname27.clsx)("hds-warning-banner__description", className),
1504
1578
  ref
1505
1579
  }, rest)
1506
1580
  );
@@ -1509,22 +1583,22 @@ var WarningBannerDescription = (0, import_react23.forwardRef)(
1509
1583
  WarningBannerDescription.displayName = "WarningBannerDescription";
1510
1584
 
1511
1585
  // src/prose/index.ts
1512
- var import_fonts20 = require("@postenbring/hedwig-css/dist/fonts.css");
1513
- var import_tokens20 = require("@postenbring/hedwig-css/dist/tokens.css");
1514
- var import_body20 = require("@postenbring/hedwig-css/dist/body.css");
1586
+ var import_fonts22 = require("@postenbring/hedwig-css/dist/fonts.css");
1587
+ var import_tokens22 = require("@postenbring/hedwig-css/dist/tokens.css");
1588
+ var import_body22 = require("@postenbring/hedwig-css/dist/body.css");
1515
1589
  var import_prose = require("@postenbring/hedwig-css/dist/prose.css");
1516
1590
 
1517
1591
  // src/prose/prose.tsx
1518
- var import_react24 = require("react");
1519
- var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1520
- var import_jsx_runtime27 = require("react/jsx-runtime");
1521
- var Prose = (0, import_react24.forwardRef)(
1592
+ var import_react26 = require("react");
1593
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1594
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1595
+ var Prose = (0, import_react26.forwardRef)(
1522
1596
  (_a, ref) => {
1523
1597
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
1524
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1598
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1525
1599
  Component,
1526
1600
  __spreadProps(__spreadValues({
1527
- className: (0, import_typed_classname26.clsx)(
1601
+ className: (0, import_typed_classname28.clsx)(
1528
1602
  `hds-prose`,
1529
1603
  size === "small" && "hds-prose--small",
1530
1604
  darkmode && "hds-prose--darkmode",
@@ -1545,6 +1619,7 @@ Prose.displayName = "Prose";
1545
1619
  Box,
1546
1620
  Breadcrumbs,
1547
1621
  Card,
1622
+ Checkbox,
1548
1623
  Container,
1549
1624
  DarkBadge,
1550
1625
  DescriptionList,
@@ -1557,6 +1632,7 @@ Prose.displayName = "Prose";
1557
1632
  OrderedList,
1558
1633
  PrimaryButton,
1559
1634
  Prose,
1635
+ Radiobutton,
1560
1636
  SecondaryButton,
1561
1637
  Select,
1562
1638
  Tabs,