@postenbring/hedwig-react 0.0.32 → 0.0.34

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 (71) hide show
  1. package/dist/box/box.js +2 -2
  2. package/dist/box/box.mjs +1 -1
  3. package/dist/box/index.js +2 -2
  4. package/dist/box/index.mjs +1 -1
  5. package/dist/card/card.d.mts +19 -0
  6. package/dist/card/card.d.ts +19 -0
  7. package/dist/card/card.js +137 -0
  8. package/dist/card/card.mjs +21 -0
  9. package/dist/card/index.d.mts +35 -0
  10. package/dist/card/index.d.ts +35 -0
  11. package/dist/card/index.js +155 -0
  12. package/dist/card/index.mjs +23 -0
  13. package/dist/{chunk-CB472XH7.mjs → chunk-5MNVIJJ2.mjs} +1 -1
  14. package/dist/chunk-CP4CKVIA.mjs +76 -0
  15. package/dist/chunk-FB5VUC62.mjs +29 -0
  16. package/dist/chunk-FJQCHTJZ.mjs +5 -0
  17. package/dist/chunk-GD4NFQGX.mjs +32 -0
  18. package/dist/chunk-K2HIKZ7F.mjs +5 -0
  19. package/dist/chunk-LWMZV362.mjs +83 -0
  20. package/dist/{chunk-X4D24ZRP.mjs → chunk-QZIJ2OXE.mjs} +1 -1
  21. package/dist/{chunk-QV33ZHNO.mjs → chunk-SQULBVH7.mjs} +1 -1
  22. package/dist/{chunk-RXUPE4MM.mjs → chunk-SWZLMDKJ.mjs} +2 -2
  23. package/dist/{chunk-YFBW5ZRC.mjs → chunk-TUJCKNKR.mjs} +1 -1
  24. package/dist/chunk-VLMLWQKD.mjs +100 -0
  25. package/dist/chunk-VS4HRMMY.mjs +30 -0
  26. package/dist/index.d.mts +13 -9
  27. package/dist/index.d.ts +13 -9
  28. package/dist/index.js +797 -569
  29. package/dist/index.mjs +52 -22
  30. package/dist/layout/container/container.d.mts +10 -0
  31. package/dist/layout/container/container.d.ts +10 -0
  32. package/dist/layout/container/container.js +79 -0
  33. package/dist/layout/container/container.mjs +7 -0
  34. package/dist/layout/index.d.mts +3 -0
  35. package/dist/layout/index.d.ts +3 -0
  36. package/dist/layout/index.js +85 -0
  37. package/dist/layout/index.mjs +8 -0
  38. package/dist/message/index.d.mts +1 -1
  39. package/dist/message/index.d.ts +1 -1
  40. package/dist/message/index.js +2 -2
  41. package/dist/message/index.mjs +3 -3
  42. package/dist/message/message.js +2 -2
  43. package/dist/message/message.mjs +2 -2
  44. package/dist/modal/index.js +2 -2
  45. package/dist/modal/index.mjs +3 -3
  46. package/dist/modal/modal.js +2 -2
  47. package/dist/modal/modal.mjs +2 -2
  48. package/dist/navbar/index.d.mts +16 -0
  49. package/dist/navbar/index.d.ts +16 -0
  50. package/dist/navbar/index.js +154 -0
  51. package/dist/navbar/index.mjs +25 -0
  52. package/dist/navbar/navbar-expandable-menu.d.mts +38 -0
  53. package/dist/navbar/navbar-expandable-menu.d.ts +38 -0
  54. package/dist/navbar/navbar-expandable-menu.js +125 -0
  55. package/dist/navbar/navbar-expandable-menu.mjs +11 -0
  56. package/dist/navbar/navbar.d.mts +16 -0
  57. package/dist/navbar/navbar.d.ts +16 -0
  58. package/dist/navbar/navbar.js +77 -0
  59. package/dist/navbar/navbar.mjs +9 -0
  60. package/dist/tabs/index.mjs +2 -2
  61. package/dist/tabs/tabs-list.mjs +2 -2
  62. package/dist/warning-banner/index.d.mts +3 -0
  63. package/dist/warning-banner/index.d.ts +3 -0
  64. package/dist/warning-banner/index.js +230 -0
  65. package/dist/warning-banner/index.mjs +10 -0
  66. package/dist/warning-banner/warning-banner.d.mts +10 -0
  67. package/dist/warning-banner/warning-banner.d.ts +10 -0
  68. package/dist/warning-banner/warning-banner.js +224 -0
  69. package/dist/warning-banner/warning-banner.mjs +9 -0
  70. package/package.json +3 -3
  71. package/dist/{chunk-NVMNXQ5Q.mjs → chunk-YPD2CH5T.mjs} +3 -3
package/dist/index.js CHANGED
@@ -68,6 +68,15 @@ __export(src_exports, {
68
68
  Box: () => Box,
69
69
  BoxCloseButton: () => BoxCloseButton,
70
70
  Breadcrumbs: () => Breadcrumbs,
71
+ Card: () => CardComponent,
72
+ CardBody: () => CardBody,
73
+ CardBodyAction: () => CardBodyAction,
74
+ CardBodyDescription: () => CardBodyDescription,
75
+ CardBodyOverline: () => CardBodyOverline,
76
+ CardBodyTitle: () => CardBodyTitle,
77
+ CardMedia: () => CardMedia,
78
+ CardMediaImg: () => CardMediaImg,
79
+ Container: () => Container,
71
80
  DarkBadge: () => DarkBadge,
72
81
  DescriptionDetails: () => DescriptionDetails,
73
82
  DescriptionList: () => DescriptionList,
@@ -92,120 +101,194 @@ __export(src_exports, {
92
101
  Textarea: () => Textarea,
93
102
  UnorderedList: () => UnorderedList,
94
103
  WarningBadge: () => WarningBadge,
104
+ WarningBanner: () => WarningBanner,
95
105
  WhiteBadge: () => WhiteBadge
96
106
  });
97
107
  module.exports = __toCommonJS(src_exports);
98
108
 
99
- // src/button/index.tsx
109
+ // src/accordion/index.tsx
100
110
  var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
101
111
  var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
102
112
  var import_body = require("@postenbring/hedwig-css/dist/body.css");
103
- var import_button = require("@postenbring/hedwig-css/dist/button.css");
113
+ var import_accordion = require("@postenbring/hedwig-css/dist/accordion.css");
104
114
 
105
- // src/button/button.tsx
106
- var import_react = require("react");
115
+ // src/accordion/accordion.tsx
116
+ var import_react2 = require("react");
107
117
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
118
+
119
+ // src/accordion/context.ts
120
+ var import_react = require("react");
121
+ var AccordionContext = (0, import_react.createContext)({
122
+ variant: "multiple",
123
+ mounted: false,
124
+ openItems: [],
125
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
126
+ toggleOpenItem: (id) => {
127
+ }
128
+ });
129
+ var AccordionItemContext = (0, import_react.createContext)(null);
130
+
131
+ // src/accordion/accordion.tsx
108
132
  var import_jsx_runtime = require("react/jsx-runtime");
109
- var BaseButton = (0, import_react.forwardRef)(
133
+ var Accordion = (0, import_react2.forwardRef)(
110
134
  (_a, ref) => {
111
- var _b = _a, {
112
- as: Component = "button",
113
- children,
114
- variant,
115
- size = "medium",
116
- fullWidth = false,
117
- fill = "contained",
118
- icon,
119
- className
120
- } = _b, rest = __objRest(_b, [
121
- "as",
122
- "children",
123
- "variant",
124
- "size",
125
- "fullWidth",
126
- "fill",
127
- "icon",
128
- "className"
129
- ]);
130
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
131
- Component,
132
- __spreadProps(__spreadValues({
133
- className: (0, import_typed_classname.clsx)(
134
- "hds-button",
135
- `hds-button--${size}`,
136
- {
137
- [`hds-button--${variant}`]: fill === "contained",
138
- [`hds-button--outline-${variant}`]: fill === "outlined",
139
- "hds-button--full": fullWidth === true,
140
- "hds-button--mobile-full": fullWidth === "mobile",
141
- "hds-button--icon-only": icon && !children
142
- },
143
- className
144
- ),
145
- ref
146
- }, rest), {
147
- children: [
148
- icon && !children ? icon : null,
149
- children
150
- ]
151
- })
152
- );
153
- }
154
- );
155
- BaseButton.displayName = "BaseButton";
156
- var PrimaryButton = (0, import_react.forwardRef)(
157
- (props, ref) => {
158
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
159
- }
160
- );
161
- PrimaryButton.displayName = "PrimaryButton";
162
- var SecondaryButton = (0, import_react.forwardRef)(
163
- (props, ref) => {
164
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
135
+ var _b = _a, { as: Component = "div", children, className, variant = "multiple" } = _b, rest = __objRest(_b, ["as", "children", "className", "variant"]);
136
+ const [openItems, setOpenItems] = (0, import_react2.useState)([]);
137
+ const toggleOpenItem = (itemId) => {
138
+ if (variant === "single") {
139
+ setOpenItems([itemId]);
140
+ } else {
141
+ setOpenItems(
142
+ openItems.includes(itemId) ? openItems.filter((id) => id !== itemId) : [...openItems, itemId]
143
+ );
144
+ }
145
+ };
146
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContext.Provider, { value: { variant, openItems, toggleOpenItem, mounted: true }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-accordion", className), ref, children })) });
165
147
  }
166
148
  );
167
- SecondaryButton.displayName = "SecondaryButton";
168
-
169
- // src/link/index.tsx
170
- var import_fonts2 = require("@postenbring/hedwig-css/dist/fonts.css");
171
- var import_tokens2 = require("@postenbring/hedwig-css/dist/tokens.css");
172
- var import_body2 = require("@postenbring/hedwig-css/dist/body.css");
173
- var import_link = require("@postenbring/hedwig-css/dist/link.css");
149
+ Accordion.displayName = "Accordion";
174
150
 
175
- // src/link/link.tsx
151
+ // src/accordion/accordion-item.tsx
152
+ var import_react3 = require("react");
176
153
  var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
177
- var import_react2 = require("react");
178
154
  var import_jsx_runtime2 = require("react/jsx-runtime");
179
- var Link = (0, import_react2.forwardRef)(
155
+ var AccordionItem = (0, import_react3.forwardRef)(
180
156
  (_a, ref) => {
181
- var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
157
+ var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
158
+ const context = (0, import_react3.useContext)(AccordionContext);
159
+ const [open, setOpen] = (0, import_react3.useState)(false);
160
+ const accordionItemId = (0, import_react3.useId)();
161
+ const handleOpen = () => {
162
+ setOpen(!open);
163
+ if (context.variant === "single") {
164
+ context.toggleOpenItem(accordionItemId);
165
+ }
166
+ };
167
+ if (!context.mounted) {
168
+ throw new Error("Context required. Did you use <AccordionItem/> outside of <Accordion/>?");
169
+ }
170
+ (0, import_react3.useEffect)(() => {
171
+ if (context.variant === "multiple") {
172
+ return;
173
+ }
174
+ if (open && !context.openItems.includes(accordionItemId)) {
175
+ setOpen(false);
176
+ }
177
+ }, [context.openItems]);
182
178
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
183
179
  Component,
184
- __spreadProps(__spreadValues({
180
+ __spreadProps(__spreadValues({}, rest), {
185
181
  className: (0, import_typed_classname2.clsx)(
186
- "hds-link",
187
- variant !== "underline" && `hds-link--${variant}`,
188
- size !== "medium" && `hds-link--${size}`,
182
+ "hds-accordion-item",
183
+ {
184
+ "hds-accordion-item__expanded": open
185
+ },
189
186
  className
190
187
  ),
191
- ref
192
- }, rest), {
193
- children
188
+ ref,
189
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AccordionItemContext.Provider, { value: { open, setOpen: handleOpen }, children })
194
190
  })
195
191
  );
196
192
  }
197
193
  );
198
- Link.displayName = "Link";
194
+ AccordionItem.displayName = "AccordionItem";
195
+
196
+ // src/accordion/accordion-trigger.tsx
197
+ var import_react4 = require("react");
198
+ var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
199
+ var import_jsx_runtime3 = require("react/jsx-runtime");
200
+ var AccordionTrigger = (0, import_react4.forwardRef)((_a, ref) => {
201
+ var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
202
+ const itemContext = (0, import_react4.useContext)(AccordionItemContext);
203
+ if (itemContext === null) {
204
+ return null;
205
+ }
206
+ const expandOrCollapse = (e) => {
207
+ itemContext.setOpen(!itemContext.open);
208
+ onClick && onClick(e);
209
+ };
210
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
211
+ Component,
212
+ __spreadProps(__spreadValues({}, rest), {
213
+ "aria-expanded": itemContext.open,
214
+ className: (0, import_typed_classname3.clsx)(
215
+ "hds-accordion-item-trigger",
216
+ { "hds-accordion-item-trigger--open": itemContext.open },
217
+ className
218
+ ),
219
+ onClick: expandOrCollapse,
220
+ ref,
221
+ type: "button",
222
+ children: [
223
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: (0, import_typed_classname3.clsx)("hds-accordion-item-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
224
+ "svg",
225
+ {
226
+ fill: "none",
227
+ height: "24",
228
+ viewBox: "0 0 24 24",
229
+ width: "24",
230
+ xmlns: "http://www.w3.org/2000/svg",
231
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { className: "hds-accordion-item-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
232
+ "path",
233
+ {
234
+ className: "hds-accordion-item-trigger--icon-chevron_down",
235
+ 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"
236
+ }
237
+ ) })
238
+ }
239
+ ) }),
240
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children })
241
+ ]
242
+ })
243
+ );
244
+ });
245
+ AccordionTrigger.displayName = "AccordionTrigger";
246
+
247
+ // src/accordion/accordion-content.tsx
248
+ var import_react5 = require("react");
249
+ var import_typed_classname4 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
250
+ var import_jsx_runtime4 = require("react/jsx-runtime");
251
+ var AccordionContent = (0, import_react5.forwardRef)((_a, ref) => {
252
+ var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
253
+ const context = (0, import_react5.useContext)(AccordionItemContext);
254
+ if (context === null) {
255
+ return null;
256
+ }
257
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
258
+ Component,
259
+ __spreadProps(__spreadValues({}, rest), {
260
+ className: (0, import_typed_classname4.clsx)(
261
+ "hds-accordion-item-content",
262
+ {
263
+ "hds-accordion-item-content--closed": !context.open
264
+ },
265
+ className
266
+ ),
267
+ ref,
268
+ children
269
+ })
270
+ );
271
+ });
272
+ AccordionContent.displayName = "AccordionContent";
273
+
274
+ // src/accordion/index.tsx
275
+ var AccordionComponent = Accordion;
276
+ AccordionComponent.Item = AccordionItem;
277
+ AccordionComponent.Trigger = AccordionTrigger;
278
+ AccordionComponent.Content = AccordionContent;
279
+ AccordionComponent.Item.displayName = "Accordion.Item";
280
+ AccordionComponent.Trigger.displayName = "Accordion.Trigger";
281
+ AccordionComponent.Content.displayName = "Accordion.Content";
199
282
 
200
283
  // src/badge/index.tsx
201
- var import_fonts3 = require("@postenbring/hedwig-css/dist/fonts.css");
202
- var import_tokens3 = require("@postenbring/hedwig-css/dist/tokens.css");
203
- var import_body3 = require("@postenbring/hedwig-css/dist/body.css");
284
+ var import_fonts2 = require("@postenbring/hedwig-css/dist/fonts.css");
285
+ var import_tokens2 = require("@postenbring/hedwig-css/dist/tokens.css");
286
+ var import_body2 = require("@postenbring/hedwig-css/dist/body.css");
204
287
  var import_badge = require("@postenbring/hedwig-css/dist/badge.css");
205
288
 
206
289
  // src/badge/badge.tsx
207
- var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
208
- var import_jsx_runtime3 = require("react/jsx-runtime");
290
+ var import_typed_classname5 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
291
+ var import_jsx_runtime5 = require("react/jsx-runtime");
209
292
  function BaseBadge(_a) {
210
293
  var _b = _a, {
211
294
  children,
@@ -218,10 +301,10 @@ function BaseBadge(_a) {
218
301
  "size",
219
302
  "className"
220
303
  ]);
221
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
304
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
222
305
  "span",
223
306
  __spreadProps(__spreadValues({
224
- className: (0, import_typed_classname3.clsx)(
307
+ className: (0, import_typed_classname5.clsx)(
225
308
  "hds-badge",
226
309
  `hds-badge--${size}`,
227
310
  `hds-badge--${variant}`,
@@ -234,130 +317,37 @@ function BaseBadge(_a) {
234
317
  }
235
318
  BaseBadge.displayName = "BaseBadge";
236
319
  function Badge(props) {
237
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "lighter" }));
320
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "lighter" }));
238
321
  }
239
322
  Badge.displayName = "Badge";
240
323
  function DarkBadge(props) {
241
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "dark" }));
324
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "dark" }));
242
325
  }
243
326
  DarkBadge.displayName = "DarkBadge";
244
327
  function WhiteBadge(props) {
245
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "white" }));
328
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "white" }));
246
329
  }
247
330
  WhiteBadge.displayName = "WhiteBadge";
248
331
  function WarningBadge(props) {
249
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "warning" }));
332
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "warning" }));
250
333
  }
251
334
  WarningBadge.displayName = "WarningBadge";
252
335
 
253
- // src/list/index.tsx
254
- var import_fonts4 = require("@postenbring/hedwig-css/dist/fonts.css");
255
- var import_tokens4 = require("@postenbring/hedwig-css/dist/tokens.css");
256
- var import_body4 = require("@postenbring/hedwig-css/dist/body.css");
257
- var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
258
- var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
259
-
260
- // src/list/description-list.tsx
261
- var import_typed_classname4 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
262
- var import_jsx_runtime4 = require("react/jsx-runtime");
263
- function DescriptionDetails(_a) {
264
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
265
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
266
- }
267
- function DescriptionTerm(_a) {
268
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
269
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
270
- }
271
- function DescriptionList(_a) {
272
- var _b = _a, {
273
- variant = "vertical",
274
- className
275
- } = _b, rest = __objRest(_b, [
276
- "variant",
277
- "className"
278
- ]);
279
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
280
- "dl",
281
- __spreadValues({
282
- className: (0, import_typed_classname4.clsx)(
283
- "hds-description-list",
284
- {
285
- "hds-description-list--horizontal": variant === "horizontal"
286
- },
287
- className
288
- )
289
- }, rest)
290
- );
291
- }
292
- DescriptionList.displayName = "DescriptionList";
293
- DescriptionTerm.displayName = "DescriptionTerm";
294
- DescriptionDetails.displayName = "DescriptionDetails";
295
-
296
- // src/list/list.tsx
297
- var import_typed_classname5 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
298
- var import_jsx_runtime5 = require("react/jsx-runtime");
299
- function BaseList(_a) {
300
- var _b = _a, {
301
- as: ListTag = "ul",
302
- children,
303
- listStyle = "inherit",
304
- size = "medium",
305
- className
306
- } = _b, rest = __objRest(_b, [
307
- "as",
308
- "children",
309
- "listStyle",
310
- "size",
311
- "className"
312
- ]);
313
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
314
- ListTag,
315
- __spreadProps(__spreadValues({
316
- className: (0, import_typed_classname5.clsx)(
317
- "hds-list",
318
- `hds-list--${size}`,
319
- {
320
- "hds-list--no-bullets": listStyle === "no-bullets"
321
- },
322
- className
323
- )
324
- }, rest), {
325
- children
326
- })
327
- );
328
- }
329
- function UnorderedList(props) {
330
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
331
- }
332
- function OrderedList(props) {
333
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
334
- }
335
- BaseList.displayName = "BaseList";
336
- OrderedList.displayName = "OrderedList";
337
- UnorderedList.displayName = "UnorderedList";
338
-
339
- // src/list/link-list.tsx
340
- var import_jsx_runtime6 = require("react/jsx-runtime");
341
- function LinkList(props) {
342
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
343
- }
344
- LinkList.displayName = "LinkList";
345
-
346
- // src/box/index.tsx
347
- var import_fonts5 = require("@postenbring/hedwig-css/dist/fonts.css");
348
- var import_tokens5 = require("@postenbring/hedwig-css/dist/tokens.css");
349
- var import_body5 = require("@postenbring/hedwig-css/dist/body.css");
350
- var import_box = require("@postenbring/hedwig-css/dist/box.css");
336
+ // src/box/index.tsx
337
+ var import_fonts3 = require("@postenbring/hedwig-css/dist/fonts.css");
338
+ var import_tokens3 = require("@postenbring/hedwig-css/dist/tokens.css");
339
+ var import_body3 = require("@postenbring/hedwig-css/dist/body.css");
340
+ var import_box = require("@postenbring/hedwig-css/dist/box.css");
351
341
 
352
342
  // src/box/box.tsx
353
- var import_react3 = require("react");
343
+ var import_react6 = require("react");
354
344
  var import_typed_classname6 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
355
- var import_jsx_runtime7 = require("react/jsx-runtime");
356
- var Box = (0, import_react3.forwardRef)(
345
+ var import_jsx_runtime6 = require("react/jsx-runtime");
346
+ var Box = (0, import_react6.forwardRef)(
357
347
  (_a, ref) => {
358
348
  var _b = _a, {
359
349
  as: Component = "div",
360
- variant = "light-grey",
350
+ variant,
361
351
  closeable = false,
362
352
  onClose: onCloseProp,
363
353
  closed: closedProp,
@@ -374,8 +364,8 @@ var Box = (0, import_react3.forwardRef)(
374
364
  "children",
375
365
  "className"
376
366
  ]);
377
- const [closedState, setClosedState] = (0, import_react3.useState)(false);
378
- const onClose = (0, import_react3.useCallback)(() => {
367
+ const [closedState, setClosedState] = (0, import_react6.useState)(false);
368
+ const onClose = (0, import_react6.useCallback)(() => {
379
369
  if (onCloseProp) {
380
370
  const result = onCloseProp();
381
371
  if (result === true) {
@@ -386,19 +376,19 @@ var Box = (0, import_react3.forwardRef)(
386
376
  }
387
377
  }, []);
388
378
  const closed = closedProp != null ? closedProp : closedState;
389
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
379
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
390
380
  Component,
391
381
  __spreadProps(__spreadValues({
392
382
  className: (0, import_typed_classname6.clsx)(
393
383
  "hds-box",
394
- `hds-box--${variant}`,
384
+ variant && `hds-box--${variant}`,
395
385
  { "hds-box--closed": closed },
396
386
  className
397
387
  ),
398
388
  ref
399
389
  }, rest), {
400
390
  children: [
401
- closeable ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
391
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
402
392
  children
403
393
  ]
404
394
  })
@@ -406,10 +396,10 @@ var Box = (0, import_react3.forwardRef)(
406
396
  }
407
397
  );
408
398
  Box.displayName = "Box";
409
- var BoxCloseButton = (0, import_react3.forwardRef)(
399
+ var BoxCloseButton = (0, import_react6.forwardRef)(
410
400
  (_a, ref) => {
411
401
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
412
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
402
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
413
403
  "button",
414
404
  __spreadValues({
415
405
  className: (0, import_typed_classname6.clsx)("hds-box__close-button", className),
@@ -421,308 +411,447 @@ var BoxCloseButton = (0, import_react3.forwardRef)(
421
411
  );
422
412
  BoxCloseButton.displayName = "BoxCloseButton";
423
413
 
424
- // src/message/index.tsx
425
- var import_fonts6 = require("@postenbring/hedwig-css/dist/fonts.css");
426
- var import_tokens6 = require("@postenbring/hedwig-css/dist/tokens.css");
427
- var import_body6 = require("@postenbring/hedwig-css/dist/body.css");
428
- var import_box3 = require("@postenbring/hedwig-css/dist/box.css");
429
- var import_message = require("@postenbring/hedwig-css/dist/message.css");
414
+ // src/breadcrumb/index.tsx
415
+ var import_fonts4 = require("@postenbring/hedwig-css/dist/fonts.css");
416
+ var import_tokens4 = require("@postenbring/hedwig-css/dist/tokens.css");
417
+ var import_body4 = require("@postenbring/hedwig-css/dist/body.css");
418
+ var import_breadcrumb = require("@postenbring/hedwig-css/dist/breadcrumb.css");
430
419
 
431
- // src/message/message.tsx
432
- var import_react4 = require("react");
420
+ // src/breadcrumb/breadcrumb.tsx
433
421
  var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
422
+ var import_jsx_runtime7 = require("react/jsx-runtime");
423
+ function Breadcrumbs(_a) {
424
+ var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
425
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", __spreadProps(__spreadValues({}, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname7.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
426
+ }
427
+ Breadcrumbs.displayName = "Breadcrumbs";
428
+
429
+ // src/button/index.tsx
430
+ var import_fonts5 = require("@postenbring/hedwig-css/dist/fonts.css");
431
+ var import_tokens5 = require("@postenbring/hedwig-css/dist/tokens.css");
432
+ var import_body5 = require("@postenbring/hedwig-css/dist/body.css");
433
+ var import_button = require("@postenbring/hedwig-css/dist/button.css");
434
+
435
+ // src/button/button.tsx
436
+ var import_react7 = require("react");
437
+ var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
434
438
  var import_jsx_runtime8 = require("react/jsx-runtime");
435
- var Message = (0, import_react4.forwardRef)(
439
+ var BaseButton = (0, import_react7.forwardRef)(
436
440
  (_a, ref) => {
437
- var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
441
+ var _b = _a, {
442
+ as: Component = "button",
443
+ children,
444
+ variant,
445
+ size = "medium",
446
+ fullWidth = false,
447
+ fill = "contained",
448
+ icon,
449
+ className
450
+ } = _b, rest = __objRest(_b, [
451
+ "as",
452
+ "children",
453
+ "variant",
454
+ "size",
455
+ "fullWidth",
456
+ "fill",
457
+ "icon",
458
+ "className"
459
+ ]);
438
460
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
439
- Box,
461
+ Component,
440
462
  __spreadProps(__spreadValues({
441
- className: (0, import_typed_classname7.clsx)(`hds-message`, `hds-message--${variant}`, className),
463
+ className: (0, import_typed_classname8.clsx)(
464
+ "hds-button",
465
+ `hds-button--${size}`,
466
+ {
467
+ [`hds-button--${variant}`]: fill === "contained",
468
+ [`hds-button--outline-${variant}`]: fill === "outlined",
469
+ "hds-button--full": fullWidth === true,
470
+ "hds-button--mobile-full": fullWidth === "mobile",
471
+ "hds-button--icon-only": icon && !children
472
+ },
473
+ className
474
+ ),
442
475
  ref
443
476
  }, rest), {
444
477
  children: [
445
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: (0, import_typed_classname7.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
478
+ icon && !children ? icon : null,
446
479
  children
447
480
  ]
448
481
  })
449
482
  );
450
483
  }
451
484
  );
452
- Message.displayName = "Message";
453
- var MessageTitle = (0, import_react4.forwardRef)(
454
- (_a, ref) => {
455
- var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
456
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
457
- Component,
458
- __spreadValues({
459
- className: (0, import_typed_classname7.clsx)("hds-message__title", className),
460
- ref
461
- }, rest)
462
- );
485
+ BaseButton.displayName = "BaseButton";
486
+ var PrimaryButton = (0, import_react7.forwardRef)(
487
+ (props, ref) => {
488
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
463
489
  }
464
490
  );
465
- MessageTitle.displayName = "MessageTitle";
466
- var MessageDescription = (0, import_react4.forwardRef)(
467
- (_a, ref) => {
468
- var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
469
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
470
- Component,
471
- __spreadValues({
472
- className: (0, import_typed_classname7.clsx)("hds-message__description", className),
473
- ref
474
- }, rest)
475
- );
491
+ PrimaryButton.displayName = "PrimaryButton";
492
+ var SecondaryButton = (0, import_react7.forwardRef)(
493
+ (props, ref) => {
494
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
476
495
  }
477
496
  );
478
- MessageDescription.displayName = "MessageDescription";
479
-
480
- // src/message/index.tsx
481
- var MessageComponent = Message;
482
- MessageComponent.Title = MessageTitle;
483
- MessageComponent.Description = MessageDescription;
484
- MessageComponent.Title.displayName = "Message.Title";
485
- MessageComponent.Description.displayName = "Message.Description";
486
-
487
- // src/accordion/index.tsx
488
- var import_fonts7 = require("@postenbring/hedwig-css/dist/fonts.css");
489
- var import_tokens7 = require("@postenbring/hedwig-css/dist/tokens.css");
490
- var import_body7 = require("@postenbring/hedwig-css/dist/body.css");
491
- var import_accordion = require("@postenbring/hedwig-css/dist/accordion.css");
492
-
493
- // src/accordion/accordion.tsx
494
- var import_react6 = require("react");
495
- var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
497
+ SecondaryButton.displayName = "SecondaryButton";
496
498
 
497
- // src/accordion/context.ts
498
- var import_react5 = require("react");
499
- var AccordionContext = (0, import_react5.createContext)({
500
- variant: "multiple",
501
- mounted: false,
502
- openItems: [],
503
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
504
- toggleOpenItem: (id) => {
505
- }
506
- });
507
- var AccordionItemContext = (0, import_react5.createContext)(null);
499
+ // src/card/index.tsx
500
+ var import_fonts6 = require("@postenbring/hedwig-css/dist/fonts.css");
501
+ var import_tokens6 = require("@postenbring/hedwig-css/dist/tokens.css");
502
+ var import_body6 = require("@postenbring/hedwig-css/dist/body.css");
503
+ var import_card = require("@postenbring/hedwig-css/dist/card.css");
508
504
 
509
- // src/accordion/accordion.tsx
505
+ // src/card/card.tsx
506
+ var import_react8 = require("react");
507
+ var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
510
508
  var import_jsx_runtime9 = require("react/jsx-runtime");
511
- var Accordion = (0, import_react6.forwardRef)(
509
+ var Card = (0, import_react8.forwardRef)(
512
510
  (_a, ref) => {
513
- var _b = _a, { as: Component = "div", children, className, variant = "multiple" } = _b, rest = __objRest(_b, ["as", "children", "className", "variant"]);
514
- const [openItems, setOpenItems] = (0, import_react6.useState)([]);
515
- const toggleOpenItem = (itemId) => {
516
- if (variant === "single") {
517
- setOpenItems([itemId]);
518
- } else {
519
- setOpenItems(
520
- openItems.includes(itemId) ? openItems.filter((id) => id !== itemId) : [...openItems, itemId]
521
- );
522
- }
523
- };
524
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AccordionContext.Provider, { value: { variant, openItems, toggleOpenItem, mounted: true }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname8.clsx)("hds-accordion", className), ref, children })) });
511
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
512
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card", className), ref, children }));
525
513
  }
526
514
  );
527
- Accordion.displayName = "Accordion";
528
-
529
- // src/accordion/accordion-item.tsx
530
- var import_react7 = require("react");
531
- var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
532
- var import_jsx_runtime10 = require("react/jsx-runtime");
533
- var AccordionItem = (0, import_react7.forwardRef)(
515
+ Card.displayName = "Card";
516
+ var CardMedia = (0, import_react8.forwardRef)(
534
517
  (_a, ref) => {
535
- var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
536
- const context = (0, import_react7.useContext)(AccordionContext);
537
- const [open, setOpen] = (0, import_react7.useState)(false);
538
- const accordionItemId = (0, import_react7.useId)();
539
- const handleOpen = () => {
540
- setOpen(!open);
541
- if (context.variant === "single") {
542
- context.toggleOpenItem(accordionItemId);
543
- }
544
- };
545
- if (!context.mounted) {
546
- throw new Error("Context required. Did you use <AccordionItem/> outside of <Accordion/>?");
547
- }
548
- (0, import_react7.useEffect)(() => {
549
- if (context.variant === "multiple") {
550
- return;
551
- }
552
- if (open && !context.openItems.includes(accordionItemId)) {
553
- setOpen(false);
554
- }
555
- }, [context.openItems]);
556
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
518
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
519
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__media", className), ref, children }));
520
+ }
521
+ );
522
+ CardMedia.displayName = "Card.Media";
523
+ var CardMediaImg = (0, import_react8.forwardRef)(
524
+ (_a, ref) => {
525
+ var _b = _a, { as: Component = "img", className } = _b, rest = __objRest(_b, ["as", "className"]);
526
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
557
527
  Component,
558
528
  __spreadProps(__spreadValues({}, rest), {
559
- className: (0, import_typed_classname9.clsx)(
560
- "hds-accordion-item",
561
- {
562
- "hds-accordion-item__expanded": open
563
- },
564
- className
565
- ),
566
- ref,
567
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AccordionItemContext.Provider, { value: { open, setOpen: handleOpen }, children })
529
+ className: (0, import_typed_classname9.clsx)("hds-card__media__img", className),
530
+ ref
568
531
  })
569
532
  );
570
533
  }
571
534
  );
572
- AccordionItem.displayName = "AccordionItem";
535
+ CardMediaImg.displayName = "Card.Media.Img";
536
+ var CardBody = (0, import_react8.forwardRef)(
537
+ (_a, ref) => {
538
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
539
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__body", className), ref, children }));
540
+ }
541
+ );
542
+ CardBody.displayName = "Card.Body";
543
+ var CardBodyOverline = (0, import_react8.forwardRef)(
544
+ (_a, ref) => {
545
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
546
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__overline", className), ref, children }));
547
+ }
548
+ );
549
+ CardBodyOverline.displayName = "Card.Body.Overline";
550
+ var CardBodyTitle = (0, import_react8.forwardRef)(
551
+ (_a, ref) => {
552
+ var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
553
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__title", className), ref, children }));
554
+ }
555
+ );
556
+ CardBodyTitle.displayName = "Card.Body.Title";
557
+ var CardBodyDescription = (0, import_react8.forwardRef)(
558
+ (_a, ref) => {
559
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
560
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)(className), ref, children }));
561
+ }
562
+ );
563
+ CardBodyDescription.displayName = "Card.Body.Description";
564
+ var CardBodyAction = (0, import_react8.forwardRef)(
565
+ (_a, ref) => {
566
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
567
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className, ref, children }));
568
+ }
569
+ );
570
+ CardBodyAction.displayName = "Card.Body.Action";
573
571
 
574
- // src/accordion/accordion-trigger.tsx
575
- var import_react8 = require("react");
572
+ // src/card/index.tsx
573
+ var CardMediaComponent = CardMedia;
574
+ CardMediaComponent.Img = CardMediaImg;
575
+ var CardBodyComponent = CardBody;
576
+ CardBodyComponent.Overline = CardBodyOverline;
577
+ CardBodyComponent.Title = CardBodyTitle;
578
+ CardBodyComponent.Description = CardBodyDescription;
579
+ CardBodyComponent.Action = CardBodyAction;
580
+ var CardComponent = Card;
581
+ CardComponent.Media = CardMediaComponent;
582
+ CardComponent.Body = CardBodyComponent;
583
+
584
+ // src/input/index.tsx
585
+ var import_fonts7 = require("@postenbring/hedwig-css/dist/fonts.css");
586
+ var import_tokens7 = require("@postenbring/hedwig-css/dist/tokens.css");
587
+ var import_body7 = require("@postenbring/hedwig-css/dist/body.css");
588
+ var import_input = require("@postenbring/hedwig-css/dist/input.css");
589
+
590
+ // src/input/input.tsx
591
+ var import_react9 = require("react");
576
592
  var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
577
- var import_jsx_runtime11 = require("react/jsx-runtime");
578
- var AccordionTrigger = (0, import_react8.forwardRef)((_a, ref) => {
579
- var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
580
- const itemContext = (0, import_react8.useContext)(AccordionItemContext);
581
- if (itemContext === null) {
582
- return null;
583
- }
584
- const expandOrCollapse = (e) => {
585
- itemContext.setOpen(!itemContext.open);
586
- onClick && onClick(e);
587
- };
588
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
589
- Component,
590
- __spreadProps(__spreadValues({}, rest), {
591
- "aria-expanded": itemContext.open,
593
+ var import_jsx_runtime10 = require("react/jsx-runtime");
594
+ var Input = (0, import_react9.forwardRef)(function Input2(_a, ref) {
595
+ var _b = _a, {
596
+ variant = "default",
597
+ errorMessage,
598
+ labelProps,
599
+ label,
600
+ id,
601
+ className,
602
+ disabled,
603
+ readOnly
604
+ } = _b, rest = __objRest(_b, [
605
+ "variant",
606
+ "errorMessage",
607
+ "labelProps",
608
+ "label",
609
+ "id",
610
+ "className",
611
+ "disabled",
612
+ "readOnly"
613
+ ]);
614
+ const errorMessageId = (0, import_react9.useId)();
615
+ const inputId = (0, import_react9.useId)();
616
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
617
+ "div",
618
+ {
592
619
  className: (0, import_typed_classname10.clsx)(
593
- "hds-accordion-item-trigger",
594
- { "hds-accordion-item-trigger--open": itemContext.open },
620
+ "hds-input",
621
+ {
622
+ [`hds-input--${variant}`]: variant,
623
+ "hds-input--error": errorMessage
624
+ },
595
625
  className
596
626
  ),
597
- onClick: expandOrCollapse,
598
- ref,
599
- type: "button",
600
627
  children: [
601
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: (0, import_typed_classname10.clsx)("hds-accordion-item-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
602
- "svg",
628
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
629
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
630
+ "div",
603
631
  {
604
- fill: "none",
605
- height: "24",
606
- viewBox: "0 0 24 24",
607
- width: "24",
608
- xmlns: "http://www.w3.org/2000/svg",
609
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("g", { className: "hds-accordion-item-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
610
- "path",
611
- {
612
- className: "hds-accordion-item-trigger--icon-chevron_down",
613
- 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"
614
- }
615
- ) })
632
+ className: (0, import_typed_classname10.clsx)("hds-input__input-wrapper"),
633
+ "data-disabled": disabled,
634
+ "data-readonly": readOnly,
635
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
636
+ "input",
637
+ __spreadProps(__spreadValues({}, rest), {
638
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
639
+ className: "hds-input__input",
640
+ disabled,
641
+ id: id || inputId,
642
+ readOnly,
643
+ ref
644
+ })
645
+ )
616
646
  }
617
- ) }),
618
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children })
647
+ ),
648
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
619
649
  ]
620
- })
650
+ }
621
651
  );
622
652
  });
623
- AccordionTrigger.displayName = "AccordionTrigger";
624
653
 
625
- // src/accordion/accordion-content.tsx
626
- var import_react9 = require("react");
654
+ // src/link/index.tsx
655
+ var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
656
+ var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
657
+ var import_body8 = require("@postenbring/hedwig-css/dist/body.css");
658
+ var import_link = require("@postenbring/hedwig-css/dist/link.css");
659
+
660
+ // src/link/link.tsx
627
661
  var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
628
- var import_jsx_runtime12 = require("react/jsx-runtime");
629
- var AccordionContent = (0, import_react9.forwardRef)((_a, ref) => {
630
- var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
631
- const context = (0, import_react9.useContext)(AccordionItemContext);
632
- if (context === null) {
633
- return null;
662
+ var import_react10 = require("react");
663
+ var import_jsx_runtime11 = require("react/jsx-runtime");
664
+ var Link = (0, import_react10.forwardRef)(
665
+ (_a, ref) => {
666
+ var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
667
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
668
+ Component,
669
+ __spreadProps(__spreadValues({
670
+ className: (0, import_typed_classname11.clsx)(
671
+ "hds-link",
672
+ variant !== "underline" && `hds-link--${variant}`,
673
+ size !== "medium" && `hds-link--${size}`,
674
+ className
675
+ ),
676
+ ref
677
+ }, rest), {
678
+ children
679
+ })
680
+ );
634
681
  }
682
+ );
683
+ Link.displayName = "Link";
684
+
685
+ // src/list/index.tsx
686
+ var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
687
+ var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
688
+ var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
689
+ var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
690
+ var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
691
+
692
+ // src/list/description-list.tsx
693
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
694
+ var import_jsx_runtime12 = require("react/jsx-runtime");
695
+ function DescriptionDetails(_a) {
696
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
697
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
698
+ }
699
+ function DescriptionTerm(_a) {
700
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
701
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
702
+ }
703
+ function DescriptionList(_a) {
704
+ var _b = _a, {
705
+ variant = "vertical",
706
+ className
707
+ } = _b, rest = __objRest(_b, [
708
+ "variant",
709
+ "className"
710
+ ]);
635
711
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
636
- Component,
637
- __spreadProps(__spreadValues({}, rest), {
638
- className: (0, import_typed_classname11.clsx)(
639
- "hds-accordion-item-content",
712
+ "dl",
713
+ __spreadValues({
714
+ className: (0, import_typed_classname12.clsx)(
715
+ "hds-description-list",
640
716
  {
641
- "hds-accordion-item-content--closed": !context.open
717
+ "hds-description-list--horizontal": variant === "horizontal"
642
718
  },
643
719
  className
644
- ),
645
- ref,
646
- children
647
- })
720
+ )
721
+ }, rest)
648
722
  );
649
- });
650
- AccordionContent.displayName = "AccordionContent";
651
-
652
- // src/accordion/index.tsx
653
- var AccordionComponent = Accordion;
654
- AccordionComponent.Item = AccordionItem;
655
- AccordionComponent.Trigger = AccordionTrigger;
656
- AccordionComponent.Content = AccordionContent;
657
- AccordionComponent.Item.displayName = "Accordion.Item";
658
- AccordionComponent.Trigger.displayName = "Accordion.Trigger";
659
- AccordionComponent.Content.displayName = "Accordion.Content";
660
-
661
- // src/select/index.tsx
662
- var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
663
- var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
664
- var import_body8 = require("@postenbring/hedwig-css/dist/body.css");
665
- var import_select = require("@postenbring/hedwig-css/dist/select.css");
723
+ }
724
+ DescriptionList.displayName = "DescriptionList";
725
+ DescriptionTerm.displayName = "DescriptionTerm";
726
+ DescriptionDetails.displayName = "DescriptionDetails";
666
727
 
667
- // src/select/select.tsx
668
- var import_react10 = require("react");
669
- var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
728
+ // src/list/list.tsx
729
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
670
730
  var import_jsx_runtime13 = require("react/jsx-runtime");
671
- function Select(_a) {
731
+ function BaseList(_a) {
672
732
  var _b = _a, {
673
- id,
674
- label,
675
- variant,
676
- errorMessage,
677
- className,
678
- disabled,
679
- children
733
+ as: ListTag = "ul",
734
+ children,
735
+ listStyle = "inherit",
736
+ size = "medium",
737
+ className
680
738
  } = _b, rest = __objRest(_b, [
681
- "id",
682
- "label",
683
- "variant",
684
- "errorMessage",
685
- "className",
686
- "disabled",
687
- "children"
739
+ "as",
740
+ "children",
741
+ "listStyle",
742
+ "size",
743
+ "className"
688
744
  ]);
689
- const errorMessageId = (0, import_react10.useId)();
690
- const selectId = (0, import_react10.useId)();
691
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
692
- "div",
693
- {
694
- className: (0, import_typed_classname12.clsx)(
695
- "hds-select",
745
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
746
+ ListTag,
747
+ __spreadProps(__spreadValues({
748
+ className: (0, import_typed_classname13.clsx)(
749
+ "hds-list",
750
+ `hds-list--${size}`,
696
751
  {
697
- [`hds-select--${variant}`]: variant,
698
- "hds-select--error": errorMessage
752
+ "hds-list--no-bullets": listStyle === "no-bullets"
699
753
  },
700
754
  className
701
- ),
702
- children: [
703
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("label", { className: "hds-select__label", htmlFor: selectId, children: label }),
704
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-select__select-wrapper"), "data-disabled": disabled, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("select", __spreadProps(__spreadValues({ className: "hds-select__select", disabled, id: id || selectId }, rest), { children })) }),
705
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "hds-select__error-message", id: errorMessageId, children: errorMessage })
706
- ]
707
- }
755
+ )
756
+ }, rest), {
757
+ children
758
+ })
708
759
  );
709
760
  }
710
- Select.displayName = "Select";
761
+ function UnorderedList(props) {
762
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
763
+ }
764
+ function OrderedList(props) {
765
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
766
+ }
767
+ BaseList.displayName = "BaseList";
768
+ OrderedList.displayName = "OrderedList";
769
+ UnorderedList.displayName = "UnorderedList";
770
+
771
+ // src/list/link-list.tsx
772
+ var import_jsx_runtime14 = require("react/jsx-runtime");
773
+ function LinkList(props) {
774
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
775
+ }
776
+ LinkList.displayName = "LinkList";
777
+
778
+ // src/message/index.tsx
779
+ var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
780
+ var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
781
+ var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
782
+ var import_box3 = require("@postenbring/hedwig-css/dist/box.css");
783
+ var import_message = require("@postenbring/hedwig-css/dist/message.css");
784
+
785
+ // src/message/message.tsx
786
+ var import_react11 = require("react");
787
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
788
+ var import_jsx_runtime15 = require("react/jsx-runtime");
789
+ var Message = (0, import_react11.forwardRef)(
790
+ (_a, ref) => {
791
+ var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
792
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
793
+ Box,
794
+ __spreadProps(__spreadValues({
795
+ className: (0, import_typed_classname14.clsx)(`hds-message`, `hds-message--${variant}`, className),
796
+ ref
797
+ }, rest), {
798
+ children: [
799
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: (0, import_typed_classname14.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
800
+ children
801
+ ]
802
+ })
803
+ );
804
+ }
805
+ );
806
+ Message.displayName = "Message";
807
+ var MessageTitle = (0, import_react11.forwardRef)(
808
+ (_a, ref) => {
809
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
810
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
811
+ Component,
812
+ __spreadValues({
813
+ className: (0, import_typed_classname14.clsx)("hds-message__title", className),
814
+ ref
815
+ }, rest)
816
+ );
817
+ }
818
+ );
819
+ MessageTitle.displayName = "MessageTitle";
820
+ var MessageDescription = (0, import_react11.forwardRef)(
821
+ (_a, ref) => {
822
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
823
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
824
+ Component,
825
+ __spreadValues({
826
+ className: (0, import_typed_classname14.clsx)("hds-message__description", className),
827
+ ref
828
+ }, rest)
829
+ );
830
+ }
831
+ );
832
+ MessageDescription.displayName = "MessageDescription";
833
+
834
+ // src/message/index.tsx
835
+ var MessageComponent = Message;
836
+ MessageComponent.Title = MessageTitle;
837
+ MessageComponent.Description = MessageDescription;
838
+ MessageComponent.Title.displayName = "Message.Title";
839
+ MessageComponent.Description.displayName = "Message.Description";
711
840
 
712
841
  // src/modal/index.tsx
713
- var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
714
- var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
715
- var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
842
+ var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
843
+ var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
844
+ var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
716
845
  var import_box5 = require("@postenbring/hedwig-css/dist/box.css");
717
846
  var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
718
847
 
719
848
  // src/modal/modal.tsx
720
- var import_react12 = require("react");
721
- var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
849
+ var import_react13 = require("react");
850
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
722
851
 
723
852
  // src/utils.ts
724
853
  var React2 = __toESM(require("react"));
725
- var import_react11 = require("react");
854
+ var import_react12 = require("react");
726
855
  function useMergeRefs(refs) {
727
856
  return React2.useMemo(() => {
728
857
  if (refs.every((ref) => ref === null)) {
@@ -740,16 +869,16 @@ function useMergeRefs(refs) {
740
869
  }, refs);
741
870
  }
742
871
  function useResize(ref) {
743
- const [width, setWidth] = (0, import_react11.useState)(0);
744
- const [height, setHeight] = (0, import_react11.useState)(0);
745
- const handleResize = (0, import_react11.useCallback)(() => {
872
+ const [width, setWidth] = (0, import_react12.useState)(0);
873
+ const [height, setHeight] = (0, import_react12.useState)(0);
874
+ const handleResize = (0, import_react12.useCallback)(() => {
746
875
  var _a, _b, _c, _d;
747
876
  if ((ref == null ? void 0 : ref.current) !== null) {
748
877
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
749
878
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
750
879
  }
751
880
  }, [ref]);
752
- (0, import_react11.useEffect)(() => {
881
+ (0, import_react12.useEffect)(() => {
753
882
  window.addEventListener("load", handleResize);
754
883
  window.addEventListener("resize", handleResize);
755
884
  return () => {
@@ -757,29 +886,29 @@ function useResize(ref) {
757
886
  window.removeEventListener("resize", handleResize);
758
887
  };
759
888
  }, [ref, handleResize]);
760
- (0, import_react11.useEffect)(() => {
889
+ (0, import_react12.useEffect)(() => {
761
890
  handleResize();
762
891
  }, []);
763
892
  return { width, height };
764
893
  }
765
894
 
766
895
  // src/modal/modal.tsx
767
- var import_jsx_runtime14 = require("react/jsx-runtime");
768
- var Modal = (0, import_react12.forwardRef)(
896
+ var import_jsx_runtime16 = require("react/jsx-runtime");
897
+ var Modal = (0, import_react13.forwardRef)(
769
898
  (_a, ref) => {
770
899
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
771
- const modalRef = (0, import_react12.useRef)(null);
900
+ const modalRef = (0, import_react13.useRef)(null);
772
901
  const mergedRef = useMergeRefs([modalRef, ref]);
773
902
  function onClose() {
774
903
  var _a2;
775
904
  (_a2 = modalRef.current) == null ? void 0 : _a2.close();
776
905
  return false;
777
906
  }
778
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
907
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
779
908
  Box,
780
909
  __spreadProps(__spreadValues({
781
910
  as: "dialog",
782
- className: (0, import_typed_classname13.clsx)("hds-modal", className),
911
+ className: (0, import_typed_classname15.clsx)("hds-modal", className),
783
912
  closeable: true,
784
913
  onClose,
785
914
  ref: mergedRef,
@@ -791,13 +920,13 @@ var Modal = (0, import_react12.forwardRef)(
791
920
  }
792
921
  );
793
922
  Modal.displayName = "Modal";
794
- var ModalHeader = (0, import_react12.forwardRef)(
923
+ var ModalHeader = (0, import_react13.forwardRef)(
795
924
  (_a, ref) => {
796
925
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
797
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
926
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
798
927
  Component,
799
928
  __spreadValues({
800
- className: (0, import_typed_classname13.clsx)("hds-modal__header", className),
929
+ className: (0, import_typed_classname15.clsx)("hds-modal__header", className),
801
930
  ref
802
931
  }, rest)
803
932
  );
@@ -810,34 +939,70 @@ var ModalComponent = Modal;
810
939
  ModalComponent.Header = ModalHeader;
811
940
  ModalComponent.Header.displayName = "Modal";
812
941
 
813
- // src/breadcrumb/index.tsx
814
- var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
815
- var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
816
- var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
817
- var import_breadcrumb = require("@postenbring/hedwig-css/dist/breadcrumb.css");
942
+ // src/select/index.tsx
943
+ var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
944
+ var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
945
+ var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
946
+ var import_select = require("@postenbring/hedwig-css/dist/select.css");
818
947
 
819
- // src/breadcrumb/breadcrumb.tsx
820
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
821
- var import_jsx_runtime15 = require("react/jsx-runtime");
822
- function Breadcrumbs(_a) {
823
- var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
824
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("nav", __spreadProps(__spreadValues({}, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname14.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
948
+ // src/select/select.tsx
949
+ var import_react14 = require("react");
950
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
951
+ var import_jsx_runtime17 = require("react/jsx-runtime");
952
+ function Select(_a) {
953
+ var _b = _a, {
954
+ id,
955
+ label,
956
+ variant,
957
+ errorMessage,
958
+ className,
959
+ disabled,
960
+ children
961
+ } = _b, rest = __objRest(_b, [
962
+ "id",
963
+ "label",
964
+ "variant",
965
+ "errorMessage",
966
+ "className",
967
+ "disabled",
968
+ "children"
969
+ ]);
970
+ const errorMessageId = (0, import_react14.useId)();
971
+ const selectId = (0, import_react14.useId)();
972
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
973
+ "div",
974
+ {
975
+ className: (0, import_typed_classname16.clsx)(
976
+ "hds-select",
977
+ {
978
+ [`hds-select--${variant}`]: variant,
979
+ "hds-select--error": errorMessage
980
+ },
981
+ className
982
+ ),
983
+ children: [
984
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { className: "hds-select__label", htmlFor: selectId, children: label }),
985
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0, import_typed_classname16.clsx)("hds-select__select-wrapper"), "data-disabled": disabled, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("select", __spreadProps(__spreadValues({ className: "hds-select__select", disabled, id: id || selectId }, rest), { children })) }),
986
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "hds-select__error-message", id: errorMessageId, children: errorMessage })
987
+ ]
988
+ }
989
+ );
825
990
  }
826
- Breadcrumbs.displayName = "Breadcrumbs";
991
+ Select.displayName = "Select";
827
992
 
828
993
  // src/tabs/index.tsx
829
- var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
830
- var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
831
- var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
994
+ var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
995
+ var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
996
+ var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
832
997
  var import_tabs = require("@postenbring/hedwig-css/dist/tabs.css");
833
998
 
834
999
  // src/tabs/tabs.tsx
835
- var import_react14 = require("react");
836
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1000
+ var import_react16 = require("react");
1001
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
837
1002
 
838
1003
  // src/tabs/context.ts
839
- var import_react13 = require("react");
840
- var TabsContext = (0, import_react13.createContext)({
1004
+ var import_react15 = require("react");
1005
+ var TabsContext = (0, import_react15.createContext)({
841
1006
  mounted: false,
842
1007
  activeTabId: void 0,
843
1008
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
@@ -846,12 +1011,12 @@ var TabsContext = (0, import_react13.createContext)({
846
1011
  });
847
1012
 
848
1013
  // src/tabs/tabs.tsx
849
- var import_jsx_runtime16 = require("react/jsx-runtime");
850
- var Tabs = (0, import_react14.forwardRef)(
1014
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1015
+ var Tabs = (0, import_react16.forwardRef)(
851
1016
  (_a, ref) => {
852
1017
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
853
- const [activeTabId, setActiveTabId] = (0, import_react14.useState)(defaultTab);
854
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname15.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1018
+ const [activeTabId, setActiveTabId] = (0, import_react16.useState)(defaultTab);
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname17.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
855
1020
  TabsContext.Provider,
856
1021
  {
857
1022
  value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
@@ -863,19 +1028,19 @@ var Tabs = (0, import_react14.forwardRef)(
863
1028
  Tabs.displayName = "Tabs";
864
1029
 
865
1030
  // src/tabs/tabs-list.tsx
866
- var import_react15 = require("react");
867
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
868
- var import_jsx_runtime17 = require("react/jsx-runtime");
1031
+ var import_react17 = require("react");
1032
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1033
+ var import_jsx_runtime19 = require("react/jsx-runtime");
869
1034
  function TabList(_a) {
870
1035
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
871
- const tabsListRef = (0, import_react15.useRef)(null);
1036
+ const tabsListRef = (0, import_react17.useRef)(null);
872
1037
  const { width: tabsWidth } = useResize(tabsListRef);
873
1038
  const { innerWidth } = window;
874
1039
  const wideEnough = innerWidth >= tabsWidth;
875
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1040
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
876
1041
  "div",
877
1042
  __spreadProps(__spreadValues({
878
- className: (0, import_typed_classname16.clsx)(
1043
+ className: (0, import_typed_classname18.clsx)(
879
1044
  "hds-tabs--list",
880
1045
  direction === "horizontal" ? {
881
1046
  [`hds-tabs--list-horizontal`]: wideEnough,
@@ -893,10 +1058,10 @@ function TabList(_a) {
893
1058
  );
894
1059
  }
895
1060
  TabList.displayName = "TabList";
896
- var Tab = (0, import_react15.forwardRef)(
1061
+ var Tab = (0, import_react17.forwardRef)(
897
1062
  (_a, ref) => {
898
1063
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
899
- const context = (0, import_react15.useContext)(TabsContext);
1064
+ const context = (0, import_react17.useContext)(TabsContext);
900
1065
  if (!context.mounted) {
901
1066
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
902
1067
  }
@@ -905,10 +1070,10 @@ var Tab = (0, import_react15.forwardRef)(
905
1070
  context.toggleActiveTabId(tabId);
906
1071
  onClick && onClick(e);
907
1072
  };
908
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1073
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
909
1074
  Component,
910
1075
  __spreadProps(__spreadValues({
911
- className: (0, import_typed_classname16.clsx)(
1076
+ className: (0, import_typed_classname18.clsx)(
912
1077
  "hds-tabs--tab",
913
1078
  { "hds-tabs--tab-active": context.activeTabId === tabId },
914
1079
  className
@@ -926,110 +1091,40 @@ var Tab = (0, import_react15.forwardRef)(
926
1091
  Tab.displayName = "Tab";
927
1092
 
928
1093
  // src/tabs/tabs-content.tsx
929
- var import_react16 = require("react");
930
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
931
- var import_jsx_runtime18 = require("react/jsx-runtime");
1094
+ var import_react18 = require("react");
1095
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1096
+ var import_jsx_runtime20 = require("react/jsx-runtime");
932
1097
  function TabContents(_a) {
933
1098
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
934
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname17.clsx)("hds-tabs--contents") }, rest), { children }));
1099
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname19.clsx)("hds-tabs--contents") }, rest), { children }));
935
1100
  }
936
1101
  TabContents.displayName = "TabContents";
937
- var TabContent = (0, import_react16.forwardRef)(
1102
+ var TabContent = (0, import_react18.forwardRef)(
938
1103
  (_a, ref) => {
939
1104
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
940
- const context = (0, import_react16.useContext)(TabsContext);
1105
+ const context = (0, import_react18.useContext)(TabsContext);
941
1106
  if (!context.mounted) {
942
1107
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
943
1108
  }
944
1109
  if (context.activeTabId === forTabId) {
945
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1110
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
946
1111
  }
947
1112
  return null;
948
1113
  }
949
1114
  );
950
1115
  TabContent.displayName = "TabContent";
951
1116
 
952
- // src/input/index.tsx
953
- var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
954
- var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
955
- var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
956
- var import_input = require("@postenbring/hedwig-css/dist/input.css");
957
-
958
- // src/input/input.tsx
959
- var import_react17 = require("react");
960
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
961
- var import_jsx_runtime19 = require("react/jsx-runtime");
962
- var Input = (0, import_react17.forwardRef)(function Input2(_a, ref) {
963
- var _b = _a, {
964
- variant = "default",
965
- errorMessage,
966
- labelProps,
967
- label,
968
- id,
969
- className,
970
- disabled,
971
- readOnly
972
- } = _b, rest = __objRest(_b, [
973
- "variant",
974
- "errorMessage",
975
- "labelProps",
976
- "label",
977
- "id",
978
- "className",
979
- "disabled",
980
- "readOnly"
981
- ]);
982
- const errorMessageId = (0, import_react17.useId)();
983
- const inputId = (0, import_react17.useId)();
984
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
985
- "div",
986
- {
987
- className: (0, import_typed_classname18.clsx)(
988
- "hds-input",
989
- {
990
- [`hds-input--${variant}`]: variant,
991
- "hds-input--error": errorMessage
992
- },
993
- className
994
- ),
995
- children: [
996
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
997
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
998
- "div",
999
- {
1000
- className: (0, import_typed_classname18.clsx)("hds-input__input-wrapper"),
1001
- "data-disabled": disabled,
1002
- "data-readonly": readOnly,
1003
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1004
- "input",
1005
- __spreadProps(__spreadValues({}, rest), {
1006
- "aria-describedby": errorMessage ? errorMessageId : void 0,
1007
- className: "hds-input__input",
1008
- disabled,
1009
- id: id || inputId,
1010
- readOnly,
1011
- ref
1012
- })
1013
- )
1014
- }
1015
- ),
1016
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
1017
- ]
1018
- }
1019
- );
1020
- });
1021
-
1022
1117
  // src/textarea/index.tsx
1023
- var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
1024
- var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
1025
- var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
1118
+ var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
1119
+ var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
1120
+ var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
1026
1121
  var import_textarea = require("@postenbring/hedwig-css/dist/textarea.css");
1027
1122
 
1028
1123
  // src/textarea/textarea.tsx
1029
- var import_react18 = require("react");
1030
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1031
- var import_jsx_runtime20 = require("react/jsx-runtime");
1032
- var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1124
+ var import_react19 = require("react");
1125
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1126
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1127
+ var Textarea = (0, import_react19.forwardRef)(function Textarea2(_a, ref) {
1033
1128
  var _b = _a, {
1034
1129
  variant = "default",
1035
1130
  errorMessage,
@@ -1049,12 +1144,12 @@ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1049
1144
  "disabled",
1050
1145
  "readOnly"
1051
1146
  ]);
1052
- const errorMessageId = (0, import_react18.useId)();
1053
- const inputId = (0, import_react18.useId)();
1054
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1147
+ const errorMessageId = (0, import_react19.useId)();
1148
+ const inputId = (0, import_react19.useId)();
1149
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1055
1150
  "div",
1056
1151
  {
1057
- className: (0, import_typed_classname19.clsx)(
1152
+ className: (0, import_typed_classname20.clsx)(
1058
1153
  "hds-textarea",
1059
1154
  {
1060
1155
  [`hds-textarea--${variant}`]: variant,
@@ -1063,14 +1158,14 @@ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1063
1158
  className
1064
1159
  ),
1065
1160
  children: [
1066
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("label", __spreadProps(__spreadValues({ className: "hds-textarea__label" }, labelProps), { htmlFor: id || inputId, children: label })),
1067
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1161
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", __spreadProps(__spreadValues({ className: "hds-textarea__label" }, labelProps), { htmlFor: id || inputId, children: label })),
1162
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1068
1163
  "div",
1069
1164
  {
1070
- className: (0, import_typed_classname19.clsx)("hds-textarea__textarea-wrapper"),
1165
+ className: (0, import_typed_classname20.clsx)("hds-textarea__textarea-wrapper"),
1071
1166
  "data-disabled": disabled,
1072
1167
  "data-readonly": readOnly,
1073
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1168
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1074
1169
  "textarea",
1075
1170
  __spreadProps(__spreadValues({}, rest), {
1076
1171
  "aria-describedby": errorMessage ? errorMessageId : void 0,
@@ -1083,11 +1178,134 @@ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1083
1178
  )
1084
1179
  }
1085
1180
  ),
1086
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "hds-textarea__error-message", id: errorMessageId, children: errorMessage })
1181
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "hds-textarea__error-message", id: errorMessageId, children: errorMessage })
1087
1182
  ]
1088
1183
  }
1089
1184
  );
1090
1185
  });
1186
+
1187
+ // src/warning-banner/index.tsx
1188
+ var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
1189
+ var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
1190
+ var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
1191
+ var import_warning_banner = require("@postenbring/hedwig-css/dist/warning-banner.css");
1192
+
1193
+ // src/warning-banner/warning-banner.tsx
1194
+ var import_react20 = require("react");
1195
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1196
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1197
+ var WarningBanner = (0, import_react20.forwardRef)(
1198
+ (_a, ref) => {
1199
+ var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1200
+ const expandable = !!description;
1201
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Box, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname21.clsx)("hds-warning-banner", className), ref, children: [
1202
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1203
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(WarningBannerDescription, { children: description }) : null
1204
+ ] }));
1205
+ }
1206
+ );
1207
+ WarningBanner.displayName = "WarningBanner";
1208
+ var WarningBannerTitle = (0, import_react20.forwardRef)(
1209
+ (_a, ref) => {
1210
+ var _b = _a, {
1211
+ variant,
1212
+ as: Component = variant === "expandable" ? "button" : "p",
1213
+ children,
1214
+ className
1215
+ } = _b, rest = __objRest(_b, [
1216
+ "variant",
1217
+ "as",
1218
+ "children",
1219
+ "className"
1220
+ ]);
1221
+ const [open, setOpen] = (0, import_react20.useState)(false);
1222
+ if (variant === "expandable") {
1223
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1224
+ Component,
1225
+ __spreadProps(__spreadValues({
1226
+ className: (0, import_typed_classname21.clsx)(
1227
+ "hds-warning-banner__title",
1228
+ "hds-warning-banner__title-trigger",
1229
+ { "hds-warning-banner--closed": !open },
1230
+ className
1231
+ ),
1232
+ onClick: () => {
1233
+ setOpen(!open);
1234
+ },
1235
+ ref,
1236
+ type: "button"
1237
+ }, rest), {
1238
+ children: [
1239
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children }),
1240
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: (0, import_typed_classname21.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1241
+ "svg",
1242
+ {
1243
+ fill: "none",
1244
+ height: "24",
1245
+ viewBox: "0 0 24 24",
1246
+ width: "24",
1247
+ xmlns: "http://www.w3.org/2000/svg",
1248
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime22.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" }) })
1249
+ }
1250
+ ) })
1251
+ ]
1252
+ })
1253
+ );
1254
+ }
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1256
+ Component,
1257
+ __spreadProps(__spreadValues({
1258
+ className: (0, import_typed_classname21.clsx)("hds-warning-banner__title", className),
1259
+ ref
1260
+ }, rest), {
1261
+ children
1262
+ })
1263
+ );
1264
+ }
1265
+ );
1266
+ WarningBannerTitle.displayName = "WarningBannerTitle";
1267
+ var WarningBannerDescription = (0, import_react20.forwardRef)(
1268
+ (_a, ref) => {
1269
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1270
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1271
+ Component,
1272
+ __spreadValues({
1273
+ className: (0, import_typed_classname21.clsx)("hds-warning-banner__description", className),
1274
+ ref
1275
+ }, rest)
1276
+ );
1277
+ }
1278
+ );
1279
+ WarningBannerDescription.displayName = "WarningBannerDescription";
1280
+
1281
+ // src/layout/index.tsx
1282
+ var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1283
+ var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1284
+ var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1285
+ var import_container = require("@postenbring/hedwig-css/dist/container.css");
1286
+
1287
+ // src/layout/container/container.tsx
1288
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1289
+ var import_react21 = require("react");
1290
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1291
+ var Container = (0, import_react21.forwardRef)(
1292
+ (_a, ref) => {
1293
+ var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
1294
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1295
+ Component,
1296
+ __spreadProps(__spreadValues({}, rest), {
1297
+ className: (0, import_typed_classname22.clsx)(
1298
+ "hds-container",
1299
+ { "hds-container--slim": variant === "slim" },
1300
+ className
1301
+ ),
1302
+ ref,
1303
+ children
1304
+ })
1305
+ );
1306
+ }
1307
+ );
1308
+ Container.displayName = "Container";
1091
1309
  // Annotate the CommonJS export names for ESM import in node:
1092
1310
  0 && (module.exports = {
1093
1311
  Accordion,
@@ -1099,6 +1317,15 @@ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1099
1317
  Box,
1100
1318
  BoxCloseButton,
1101
1319
  Breadcrumbs,
1320
+ Card,
1321
+ CardBody,
1322
+ CardBodyAction,
1323
+ CardBodyDescription,
1324
+ CardBodyOverline,
1325
+ CardBodyTitle,
1326
+ CardMedia,
1327
+ CardMediaImg,
1328
+ Container,
1102
1329
  DarkBadge,
1103
1330
  DescriptionDetails,
1104
1331
  DescriptionList,
@@ -1123,5 +1350,6 @@ var Textarea = (0, import_react18.forwardRef)(function Textarea2(_a, ref) {
1123
1350
  Textarea,
1124
1351
  UnorderedList,
1125
1352
  WarningBadge,
1353
+ WarningBanner,
1126
1354
  WhiteBadge
1127
1355
  });