@postenbring/hedwig-react 0.0.41 → 0.0.43

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 (81) hide show
  1. package/dist/accordion/accordion-content.js +4 -10
  2. package/dist/accordion/accordion-content.mjs +2 -2
  3. package/dist/accordion/accordion-header.d.mts +9 -0
  4. package/dist/accordion/accordion-header.d.ts +9 -0
  5. package/dist/accordion/{accordion-trigger.js → accordion-header.js} +12 -36
  6. package/dist/accordion/accordion-header.mjs +8 -0
  7. package/dist/accordion/accordion-item.d.mts +15 -3
  8. package/dist/accordion/accordion-item.d.ts +15 -3
  9. package/dist/accordion/accordion-item.js +21 -26
  10. package/dist/accordion/accordion-item.mjs +2 -2
  11. package/dist/accordion/accordion.d.mts +4 -12
  12. package/dist/accordion/accordion.d.ts +4 -12
  13. package/dist/accordion/accordion.js +15 -28
  14. package/dist/accordion/accordion.mjs +1 -2
  15. package/dist/accordion/index.d.mts +4 -4
  16. package/dist/accordion/index.d.ts +4 -4
  17. package/dist/accordion/index.js +53 -71
  18. package/dist/accordion/index.mjs +6 -6
  19. package/dist/chunk-45BJGKVZ.mjs +5 -0
  20. package/dist/chunk-6KVF3ELJ.mjs +59 -0
  21. package/dist/chunk-6XTXM4YQ.mjs +47 -0
  22. package/dist/{chunk-PWHALENY.mjs → chunk-DOJ2ZKNV.mjs} +1 -0
  23. package/dist/chunk-K3BGDNWO.mjs +35 -0
  24. package/dist/{chunk-GSYDQFIT.mjs → chunk-KYCCTJI6.mjs} +7 -7
  25. package/dist/{chunk-NXFD7TFE.mjs → chunk-PF6PZIZS.mjs} +1 -0
  26. package/dist/chunk-PHTGLF6Y.mjs +7 -0
  27. package/dist/{chunk-JKZ3OR7W.mjs → chunk-Q3SWHAU3.mjs} +5 -3
  28. package/dist/chunk-QAYPCD5Z.mjs +95 -0
  29. package/dist/{chunk-XAIX3HTW.mjs → chunk-QC72RAQS.mjs} +23 -21
  30. package/dist/chunk-SDJXW6U7.mjs +32 -0
  31. package/dist/{chunk-R5ISWMI6.mjs → chunk-SX37JSDS.mjs} +1 -0
  32. package/dist/chunk-Y2KP4RF2.mjs +36 -0
  33. package/dist/index.d.mts +2 -1
  34. package/dist/index.d.ts +2 -1
  35. package/dist/index.js +319 -322
  36. package/dist/index.mjs +25 -23
  37. package/dist/input/index.d.mts +1 -0
  38. package/dist/input/index.d.ts +1 -0
  39. package/dist/input/index.js +105 -30
  40. package/dist/input/index.mjs +4 -2
  41. package/dist/input/input.d.mts +3 -8
  42. package/dist/input/input.d.ts +3 -8
  43. package/dist/input/input.js +102 -28
  44. package/dist/input/input.mjs +3 -1
  45. package/dist/input-group/index.d.mts +2 -0
  46. package/dist/input-group/index.d.ts +2 -0
  47. package/dist/input-group/index.js +148 -0
  48. package/dist/input-group/index.mjs +8 -0
  49. package/dist/input-group/input-group.d.mts +25 -0
  50. package/dist/input-group/input-group.d.ts +25 -0
  51. package/dist/input-group/input-group.js +142 -0
  52. package/dist/input-group/input-group.mjs +7 -0
  53. package/dist/list/index.mjs +3 -3
  54. package/dist/select/index.d.mts +2 -1
  55. package/dist/select/index.d.ts +2 -1
  56. package/dist/select/index.js +92 -19
  57. package/dist/select/index.mjs +4 -2
  58. package/dist/select/select.d.mts +5 -11
  59. package/dist/select/select.d.ts +5 -11
  60. package/dist/select/select.js +89 -17
  61. package/dist/select/select.mjs +3 -1
  62. package/dist/tabs/index.mjs +2 -2
  63. package/dist/textarea/index.d.mts +1 -0
  64. package/dist/textarea/index.d.ts +1 -0
  65. package/dist/textarea/index.js +82 -27
  66. package/dist/textarea/index.mjs +4 -2
  67. package/dist/textarea/textarea.d.mts +3 -8
  68. package/dist/textarea/textarea.d.ts +3 -8
  69. package/dist/textarea/textarea.js +79 -25
  70. package/dist/textarea/textarea.mjs +3 -1
  71. package/package.json +2 -2
  72. package/dist/accordion/accordion-trigger.d.mts +0 -9
  73. package/dist/accordion/accordion-trigger.d.ts +0 -9
  74. package/dist/accordion/accordion-trigger.mjs +0 -8
  75. package/dist/chunk-2V6SWZ5G.mjs +0 -16
  76. package/dist/chunk-4WI2BHHB.mjs +0 -63
  77. package/dist/chunk-5YF6SR4S.mjs +0 -73
  78. package/dist/chunk-GMGUONH5.mjs +0 -34
  79. package/dist/chunk-IT4L33S6.mjs +0 -54
  80. package/dist/chunk-MRJYCUBY.mjs +0 -76
  81. package/dist/{chunk-BSX4IA3X.mjs → chunk-WUMZCEIJ.mjs} +3 -3
package/dist/index.js CHANGED
@@ -92,37 +92,24 @@ var import_body = require("@postenbring/hedwig-css/dist/body.css");
92
92
  var import_accordion = require("@postenbring/hedwig-css/dist/accordion.css");
93
93
 
94
94
  // src/accordion/accordion.tsx
95
- var import_react2 = require("react");
96
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
97
-
98
- // src/accordion/context.ts
99
95
  var import_react = require("react");
100
- var AccordionContext = (0, import_react.createContext)({
101
- variant: "multiple",
102
- mounted: false,
103
- openItems: [],
104
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
105
- toggleOpenItem: (id) => {
106
- }
107
- });
108
- var AccordionItemContext = (0, import_react.createContext)(null);
109
-
110
- // src/accordion/accordion.tsx
96
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
111
97
  var import_jsx_runtime = require("react/jsx-runtime");
112
- var Accordion = (0, import_react2.forwardRef)(
98
+ var Accordion = (0, import_react.forwardRef)(
113
99
  (_a, ref) => {
114
- var _b = _a, { as: Component = "div", children, className, variant = "multiple" } = _b, rest = __objRest(_b, ["as", "children", "className", "variant"]);
115
- const [openItems, setOpenItems] = (0, import_react2.useState)([]);
116
- const toggleOpenItem = (itemId) => {
117
- if (variant === "single") {
118
- setOpenItems([itemId]);
119
- } else {
120
- setOpenItems(
121
- openItems.includes(itemId) ? openItems.filter((id) => id !== itemId) : [...openItems, itemId]
122
- );
123
- }
124
- };
125
- 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 })) });
100
+ var _b = _a, { as: Component = "div", children, className, indent = true } = _b, rest = __objRest(_b, ["as", "children", "className", "indent"]);
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
+ Component,
103
+ __spreadProps(__spreadValues({}, rest), {
104
+ className: (0, import_typed_classname.clsx)(
105
+ "hds-accordion",
106
+ !indent && "hds-accordion--no-indent",
107
+ className
108
+ ),
109
+ ref,
110
+ children
111
+ })
112
+ );
126
113
  }
127
114
  );
128
115
  Accordion.displayName = "Accordion";
@@ -130,30 +117,39 @@ Accordion.displayName = "Accordion";
130
117
  // src/accordion/accordion-item.tsx
131
118
  var import_react3 = require("react");
132
119
  var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
120
+
121
+ // src/accordion/context.ts
122
+ var import_react2 = require("react");
123
+ var AccordionItemContext = (0, import_react2.createContext)(null);
124
+
125
+ // src/accordion/accordion-item.tsx
133
126
  var import_jsx_runtime2 = require("react/jsx-runtime");
134
127
  var AccordionItem = (0, import_react3.forwardRef)(
135
128
  (_a, ref) => {
136
- var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
137
- const context = (0, import_react3.useContext)(AccordionContext);
138
- const [open, setOpen] = (0, import_react3.useState)(false);
139
- const accordionItemId = (0, import_react3.useId)();
129
+ var _b = _a, {
130
+ as: Component = "div",
131
+ children,
132
+ defaultOpen,
133
+ open: outerOpen,
134
+ onOpenChange,
135
+ className
136
+ } = _b, rest = __objRest(_b, [
137
+ "as",
138
+ "children",
139
+ "defaultOpen",
140
+ "open",
141
+ "onOpenChange",
142
+ "className"
143
+ ]);
144
+ const [innerOpen, setInnerOpen] = (0, import_react3.useState)(defaultOpen != null ? defaultOpen : false);
145
+ const open = outerOpen != null ? outerOpen : innerOpen;
140
146
  const handleOpen = () => {
141
- setOpen(!open);
142
- if (context.variant === "single") {
143
- context.toggleOpenItem(accordionItemId);
147
+ if (outerOpen !== void 0) {
148
+ onOpenChange && onOpenChange(!open);
149
+ } else {
150
+ setInnerOpen(!open);
144
151
  }
145
152
  };
146
- if (!context.mounted) {
147
- throw new Error("Context required. Did you use <AccordionItem/> outside of <Accordion/>?");
148
- }
149
- (0, import_react3.useEffect)(() => {
150
- if (context.variant === "multiple") {
151
- return;
152
- }
153
- if (open && !context.openItems.includes(accordionItemId)) {
154
- setOpen(false);
155
- }
156
- }, [context.openItems]);
157
153
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
158
154
  Component,
159
155
  __spreadProps(__spreadValues({}, rest), {
@@ -172,11 +168,11 @@ var AccordionItem = (0, import_react3.forwardRef)(
172
168
  );
173
169
  AccordionItem.displayName = "Accordion.Item";
174
170
 
175
- // src/accordion/accordion-trigger.tsx
171
+ // src/accordion/accordion-header.tsx
176
172
  var import_react4 = require("react");
177
173
  var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
178
174
  var import_jsx_runtime3 = require("react/jsx-runtime");
179
- var AccordionTrigger = (0, import_react4.forwardRef)((_a, ref) => {
175
+ var AccordionHeader = (0, import_react4.forwardRef)((_a, ref) => {
180
176
  var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
181
177
  const itemContext = (0, import_react4.useContext)(AccordionItemContext);
182
178
  if (itemContext === null) {
@@ -191,37 +187,21 @@ var AccordionTrigger = (0, import_react4.forwardRef)((_a, ref) => {
191
187
  __spreadProps(__spreadValues({}, rest), {
192
188
  "aria-expanded": itemContext.open,
193
189
  className: (0, import_typed_classname3.clsx)(
194
- "hds-accordion-item-trigger",
195
- { "hds-accordion-item-trigger--open": itemContext.open },
190
+ "hds-accordion-item-header",
191
+ { "hds-accordion-item-header--open": itemContext.open },
196
192
  className
197
193
  ),
198
194
  onClick: expandOrCollapse,
199
195
  ref,
200
196
  type: "button",
201
197
  children: [
202
- /* @__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)(
203
- "svg",
204
- {
205
- fill: "none",
206
- height: "24",
207
- viewBox: "0 0 24 24",
208
- width: "24",
209
- xmlns: "http://www.w3.org/2000/svg",
210
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { className: "hds-accordion-item-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
211
- "path",
212
- {
213
- className: "hds-accordion-item-trigger--icon-chevron_down",
214
- 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"
215
- }
216
- ) })
217
- }
218
- ) }),
198
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: (0, import_typed_classname3.clsx)("hds-accordion-item-header--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime3.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" }) }) }) }),
219
199
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children })
220
200
  ]
221
201
  })
222
202
  );
223
203
  });
224
- AccordionTrigger.displayName = "Accordion.Trigger";
204
+ AccordionHeader.displayName = "Accordion.Header";
225
205
 
226
206
  // src/accordion/accordion-content.tsx
227
207
  var import_react5 = require("react");
@@ -235,7 +215,9 @@ var AccordionContent = (0, import_react5.forwardRef)((_a, ref) => {
235
215
  }
236
216
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
237
217
  Component,
238
- __spreadProps(__spreadValues({}, rest), {
218
+ __spreadProps(__spreadValues({
219
+ "aria-hidden": !context.open
220
+ }, rest), {
239
221
  className: (0, import_typed_classname4.clsx)(
240
222
  "hds-accordion-item-content",
241
223
  {
@@ -244,7 +226,7 @@ var AccordionContent = (0, import_react5.forwardRef)((_a, ref) => {
244
226
  className
245
227
  ),
246
228
  ref,
247
- children
229
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_typed_classname4.clsx)("hds-accordion-item-content-inner"), children })
248
230
  })
249
231
  );
250
232
  });
@@ -253,7 +235,7 @@ AccordionContent.displayName = "Accordion.Content";
253
235
  // src/accordion/index.tsx
254
236
  var AccordionComponent = Accordion;
255
237
  AccordionComponent.Item = AccordionItem;
256
- AccordionComponent.Trigger = AccordionTrigger;
238
+ AccordionComponent.Header = AccordionHeader;
257
239
  AccordionComponent.Content = AccordionContent;
258
240
 
259
241
  // src/badge/index.tsx
@@ -603,95 +585,170 @@ CardComponent.Media = CardMediaComponent;
603
585
  CardComponent.Body = CardBodyComponent;
604
586
 
605
587
  // src/input/index.tsx
588
+ var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
589
+ var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
590
+ var import_body8 = require("@postenbring/hedwig-css/dist/body.css");
591
+ var import_input = require("@postenbring/hedwig-css/dist/input.css");
592
+ var import_input_group4 = require("@postenbring/hedwig-css/dist/input-group.css");
593
+
594
+ // src/input/input.tsx
595
+ var import_react10 = require("react");
596
+ var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
597
+
598
+ // src/input-group/index.tsx
606
599
  var import_fonts7 = require("@postenbring/hedwig-css/dist/fonts.css");
607
600
  var import_tokens7 = require("@postenbring/hedwig-css/dist/tokens.css");
608
601
  var import_body7 = require("@postenbring/hedwig-css/dist/body.css");
609
- var import_input = require("@postenbring/hedwig-css/dist/input.css");
602
+ var import_input_group = require("@postenbring/hedwig-css/dist/input-group.css");
610
603
 
611
- // src/input/input.tsx
604
+ // src/input-group/input-group.tsx
612
605
  var import_react9 = require("react");
613
606
  var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
614
607
  var import_jsx_runtime10 = require("react/jsx-runtime");
615
- var Input = (0, import_react9.forwardRef)(function Input2(_a, ref) {
608
+ var InputGroup = (0, import_react9.forwardRef)(function InputGroup2(_a, ref) {
616
609
  var _b = _a, {
610
+ id,
611
+ className,
612
+ style,
617
613
  variant = "default",
618
614
  errorMessage,
619
615
  labelProps,
620
616
  label,
621
- id,
622
- style,
623
- className,
624
617
  disabled,
625
- readOnly
618
+ readOnly,
619
+ children,
620
+ _unstableAriaLiveOnErrorMessage = false
626
621
  } = _b, rest = __objRest(_b, [
622
+ "id",
623
+ "className",
624
+ "style",
627
625
  "variant",
628
626
  "errorMessage",
629
627
  "labelProps",
630
628
  "label",
631
- "id",
632
- "style",
633
- "className",
634
629
  "disabled",
635
- "readOnly"
630
+ "readOnly",
631
+ "children",
632
+ "_unstableAriaLiveOnErrorMessage"
636
633
  ]);
637
634
  const errorMessageId = (0, import_react9.useId)();
638
635
  const inputId = (0, import_react9.useId)();
636
+ const renderInput = () => {
637
+ const input = import_react9.Children.toArray(children)[0];
638
+ if (!(0, import_react9.isValidElement)(input)) {
639
+ return;
640
+ }
641
+ return (0, import_react9.cloneElement)(input, __spreadProps(__spreadValues({
642
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
643
+ "aria-invalid": errorMessage ? true : void 0,
644
+ id: id || inputId
645
+ }, input.props), {
646
+ className: (0, import_typed_classname10.clsx)("hds-input-group__input", input.props.className)
647
+ }));
648
+ };
639
649
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
640
650
  "div",
641
- {
651
+ __spreadProps(__spreadValues({
642
652
  className: (0, import_typed_classname10.clsx)(
643
- "hds-input",
653
+ "hds-input-group",
644
654
  {
645
- [`hds-input--${variant}`]: variant,
646
- "hds-input--error": errorMessage
655
+ [`hds-input-group--${variant}`]: variant,
656
+ "hds-input-group--error": errorMessage
647
657
  },
648
658
  className
649
659
  ),
650
- style,
660
+ ref,
661
+ style
662
+ }, rest), {
651
663
  children: [
652
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
664
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input-group__label" }, labelProps), { htmlFor: id || inputId, children: label })),
653
665
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
654
666
  "div",
655
667
  {
656
- className: (0, import_typed_classname10.clsx)("hds-input__input-wrapper"),
668
+ className: (0, import_typed_classname10.clsx)("hds-input-group__input-wrapper"),
657
669
  "data-disabled": disabled,
658
670
  "data-readonly": readOnly,
659
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
660
- "input",
661
- __spreadProps(__spreadValues({}, rest), {
662
- "aria-describedby": errorMessage ? errorMessageId : void 0,
663
- className: "hds-input__input",
664
- disabled,
665
- id: id || inputId,
666
- readOnly,
667
- ref
668
- })
669
- )
671
+ children: renderInput()
670
672
  }
671
673
  ),
672
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
674
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
675
+ "div",
676
+ __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
677
+ "aria-live": "polite",
678
+ "aria-relevant": "additions removals"
679
+ }), {
680
+ className: "hds-input-group__error-message",
681
+ id: errorMessageId,
682
+ children: !!errorMessage && errorMessage
683
+ })
684
+ )
673
685
  ]
686
+ })
687
+ );
688
+ });
689
+
690
+ // src/input/input.tsx
691
+ var import_jsx_runtime11 = require("react/jsx-runtime");
692
+ var Input = (0, import_react10.forwardRef)(function Input2(_a, ref) {
693
+ var _b = _a, {
694
+ className,
695
+ variant,
696
+ errorMessage,
697
+ labelProps,
698
+ label,
699
+ id,
700
+ style,
701
+ disabled,
702
+ readOnly,
703
+ _unstableAriaLiveOnErrorMessage
704
+ } = _b, rest = __objRest(_b, [
705
+ "className",
706
+ "variant",
707
+ "errorMessage",
708
+ "labelProps",
709
+ "label",
710
+ "id",
711
+ "style",
712
+ "disabled",
713
+ "readOnly",
714
+ "_unstableAriaLiveOnErrorMessage"
715
+ ]);
716
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
717
+ InputGroup,
718
+ {
719
+ _unstableAriaLiveOnErrorMessage,
720
+ className: (0, import_typed_classname11.clsx)("hds-input", className),
721
+ disabled,
722
+ errorMessage,
723
+ id,
724
+ label,
725
+ labelProps,
726
+ readOnly,
727
+ style,
728
+ variant,
729
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
674
730
  }
675
731
  );
676
732
  });
733
+ Input.displayName = "Input";
677
734
 
678
735
  // src/link/index.tsx
679
- var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
680
- var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
681
- var import_body8 = require("@postenbring/hedwig-css/dist/body.css");
736
+ var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
737
+ var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
738
+ var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
682
739
  var import_link = require("@postenbring/hedwig-css/dist/link.css");
683
740
 
684
741
  // src/link/link.tsx
685
- var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
686
- var import_react10 = require("react");
687
- var import_jsx_runtime11 = require("react/jsx-runtime");
688
- var Link = (0, import_react10.forwardRef)(
742
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
743
+ var import_react11 = require("react");
744
+ var import_jsx_runtime12 = require("react/jsx-runtime");
745
+ var Link = (0, import_react11.forwardRef)(
689
746
  (_a, ref) => {
690
747
  var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
691
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
748
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
692
749
  Component,
693
750
  __spreadProps(__spreadValues({
694
- className: (0, import_typed_classname11.clsx)(
751
+ className: (0, import_typed_classname12.clsx)(
695
752
  "hds-link",
696
753
  variant !== "underline" && `hds-link--${variant}`,
697
754
  size !== "medium" && `hds-link--${size}`,
@@ -707,15 +764,15 @@ var Link = (0, import_react10.forwardRef)(
707
764
  Link.displayName = "Link";
708
765
 
709
766
  // src/list/index.tsx
710
- var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
711
- var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
712
- var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
767
+ var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
768
+ var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
769
+ var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
713
770
  var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
714
771
  var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
715
772
 
716
773
  // src/list/description-list.tsx
717
- var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
718
- var import_jsx_runtime12 = require("react/jsx-runtime");
774
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
775
+ var import_jsx_runtime13 = require("react/jsx-runtime");
719
776
  function DescriptionList(_a) {
720
777
  var _b = _a, {
721
778
  variant = "vertical",
@@ -724,10 +781,10 @@ function DescriptionList(_a) {
724
781
  "variant",
725
782
  "className"
726
783
  ]);
727
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
784
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
728
785
  "dl",
729
786
  __spreadValues({
730
- className: (0, import_typed_classname12.clsx)(
787
+ className: (0, import_typed_classname13.clsx)(
731
788
  "hds-description-list",
732
789
  {
733
790
  "hds-description-list--horizontal": variant === "horizontal"
@@ -740,8 +797,8 @@ function DescriptionList(_a) {
740
797
  DescriptionList.displayName = "DescriptionList";
741
798
 
742
799
  // src/list/list.tsx
743
- var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
744
- var import_jsx_runtime13 = require("react/jsx-runtime");
800
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
801
+ var import_jsx_runtime14 = require("react/jsx-runtime");
745
802
  function BaseList(_a) {
746
803
  var _b = _a, {
747
804
  as: ListTag = "ul",
@@ -756,10 +813,10 @@ function BaseList(_a) {
756
813
  "size",
757
814
  "className"
758
815
  ]);
759
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
816
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
760
817
  ListTag,
761
818
  __spreadProps(__spreadValues({
762
- className: (0, import_typed_classname13.clsx)(
819
+ className: (0, import_typed_classname14.clsx)(
763
820
  "hds-list",
764
821
  `hds-list--${size}`,
765
822
  {
@@ -773,44 +830,44 @@ function BaseList(_a) {
773
830
  );
774
831
  }
775
832
  function UnorderedList(props) {
776
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
833
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
777
834
  }
778
835
  function OrderedList(props) {
779
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
836
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
780
837
  }
781
838
  BaseList.displayName = "BaseList";
782
839
  OrderedList.displayName = "OrderedList";
783
840
  UnorderedList.displayName = "UnorderedList";
784
841
 
785
842
  // src/list/link-list.tsx
786
- var import_jsx_runtime14 = require("react/jsx-runtime");
843
+ var import_jsx_runtime15 = require("react/jsx-runtime");
787
844
  function LinkList(props) {
788
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
845
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
789
846
  }
790
847
  LinkList.displayName = "LinkList";
791
848
 
792
849
  // src/message/index.tsx
793
- var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
794
- var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
795
- var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
850
+ var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
851
+ var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
852
+ var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
796
853
  var import_box4 = require("@postenbring/hedwig-css/dist/box.css");
797
854
  var import_message = require("@postenbring/hedwig-css/dist/message.css");
798
855
 
799
856
  // src/message/message.tsx
800
- var import_react11 = require("react");
801
- var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
802
- var import_jsx_runtime15 = require("react/jsx-runtime");
803
- var Message = (0, import_react11.forwardRef)(
857
+ var import_react12 = require("react");
858
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
859
+ var import_jsx_runtime16 = require("react/jsx-runtime");
860
+ var Message = (0, import_react12.forwardRef)(
804
861
  (_a, ref) => {
805
862
  var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
806
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
863
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
807
864
  Box,
808
865
  __spreadProps(__spreadValues({
809
- className: (0, import_typed_classname14.clsx)(`hds-message`, `hds-message--${variant}`, className),
866
+ className: (0, import_typed_classname15.clsx)(`hds-message`, `hds-message--${variant}`, className),
810
867
  ref
811
868
  }, rest), {
812
869
  children: [
813
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: (0, import_typed_classname14.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
870
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_typed_classname15.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
814
871
  children
815
872
  ]
816
873
  })
@@ -818,26 +875,26 @@ var Message = (0, import_react11.forwardRef)(
818
875
  }
819
876
  );
820
877
  Message.displayName = "Message";
821
- var MessageTitle = (0, import_react11.forwardRef)(
878
+ var MessageTitle = (0, import_react12.forwardRef)(
822
879
  (_a, ref) => {
823
880
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
824
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
881
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
825
882
  Component,
826
883
  __spreadValues({
827
- className: (0, import_typed_classname14.clsx)("hds-message__title", className),
884
+ className: (0, import_typed_classname15.clsx)("hds-message__title", className),
828
885
  ref
829
886
  }, rest)
830
887
  );
831
888
  }
832
889
  );
833
890
  MessageTitle.displayName = "Message.Title";
834
- var MessageDescription = (0, import_react11.forwardRef)(
891
+ var MessageDescription = (0, import_react12.forwardRef)(
835
892
  (_a, ref) => {
836
893
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
837
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
894
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
838
895
  Component,
839
896
  __spreadValues({
840
- className: (0, import_typed_classname14.clsx)("hds-message__description", className),
897
+ className: (0, import_typed_classname15.clsx)("hds-message__description", className),
841
898
  ref
842
899
  }, rest)
843
900
  );
@@ -851,19 +908,19 @@ MessageComponent.Title = MessageTitle;
851
908
  MessageComponent.Description = MessageDescription;
852
909
 
853
910
  // src/modal/index.tsx
854
- var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
855
- var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
856
- var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
911
+ var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
912
+ var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
913
+ var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
857
914
  var import_box6 = require("@postenbring/hedwig-css/dist/box.css");
858
915
  var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
859
916
 
860
917
  // src/modal/modal.tsx
861
- var import_react13 = require("react");
862
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
918
+ var import_react14 = require("react");
919
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
863
920
 
864
921
  // src/utils.ts
865
922
  var React2 = __toESM(require("react"));
866
- var import_react12 = require("react");
923
+ var import_react13 = require("react");
867
924
  function useMergeRefs(refs) {
868
925
  return React2.useMemo(() => {
869
926
  if (refs.every((ref) => ref === null)) {
@@ -881,16 +938,16 @@ function useMergeRefs(refs) {
881
938
  }, refs);
882
939
  }
883
940
  function useResize(ref) {
884
- const [width, setWidth] = (0, import_react12.useState)(0);
885
- const [height, setHeight] = (0, import_react12.useState)(0);
886
- const handleResize = (0, import_react12.useCallback)(() => {
941
+ const [width, setWidth] = (0, import_react13.useState)(0);
942
+ const [height, setHeight] = (0, import_react13.useState)(0);
943
+ const handleResize = (0, import_react13.useCallback)(() => {
887
944
  var _a, _b, _c, _d;
888
945
  if ((ref == null ? void 0 : ref.current) !== null) {
889
946
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
890
947
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
891
948
  }
892
949
  }, [ref]);
893
- (0, import_react12.useEffect)(() => {
950
+ (0, import_react13.useEffect)(() => {
894
951
  window.addEventListener("load", handleResize);
895
952
  window.addEventListener("resize", handleResize);
896
953
  return () => {
@@ -898,29 +955,29 @@ function useResize(ref) {
898
955
  window.removeEventListener("resize", handleResize);
899
956
  };
900
957
  }, [ref, handleResize]);
901
- (0, import_react12.useEffect)(() => {
958
+ (0, import_react13.useEffect)(() => {
902
959
  handleResize();
903
960
  }, []);
904
961
  return { width, height };
905
962
  }
906
963
 
907
964
  // src/modal/modal.tsx
908
- var import_jsx_runtime16 = require("react/jsx-runtime");
909
- var Modal = (0, import_react13.forwardRef)(
965
+ var import_jsx_runtime17 = require("react/jsx-runtime");
966
+ var Modal = (0, import_react14.forwardRef)(
910
967
  (_a, ref) => {
911
968
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
912
- const modalRef = (0, import_react13.useRef)(null);
969
+ const modalRef = (0, import_react14.useRef)(null);
913
970
  const mergedRef = useMergeRefs([modalRef, ref]);
914
971
  function onClose() {
915
972
  var _a2;
916
973
  (_a2 = modalRef.current) == null ? void 0 : _a2.close();
917
974
  return false;
918
975
  }
919
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
976
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
920
977
  Box,
921
978
  __spreadProps(__spreadValues({
922
979
  as: "dialog",
923
- className: (0, import_typed_classname15.clsx)("hds-modal", className),
980
+ className: (0, import_typed_classname16.clsx)("hds-modal", className),
924
981
  closeable: true,
925
982
  onClose,
926
983
  ref: mergedRef,
@@ -932,13 +989,13 @@ var Modal = (0, import_react13.forwardRef)(
932
989
  }
933
990
  );
934
991
  Modal.displayName = "Modal";
935
- var ModalHeader = (0, import_react13.forwardRef)(
992
+ var ModalHeader = (0, import_react14.forwardRef)(
936
993
  (_a, ref) => {
937
994
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
938
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
995
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
939
996
  Component,
940
997
  __spreadValues({
941
- className: (0, import_typed_classname15.clsx)("hds-modal__header", className),
998
+ className: (0, import_typed_classname16.clsx)("hds-modal__header", className),
942
999
  ref
943
1000
  }, rest)
944
1001
  );
@@ -951,69 +1008,48 @@ var ModalComponent = Modal;
951
1008
  ModalComponent.Header = ModalHeader;
952
1009
 
953
1010
  // src/select/index.tsx
954
- var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
955
- var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
956
- var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
1011
+ var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
1012
+ var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
1013
+ var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
957
1014
  var import_select = require("@postenbring/hedwig-css/dist/select.css");
1015
+ var import_input_group6 = require("@postenbring/hedwig-css/dist/input-group.css");
958
1016
 
959
1017
  // src/select/select.tsx
960
- var import_react14 = require("react");
961
- var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
962
- var import_jsx_runtime17 = require("react/jsx-runtime");
963
- function Select(_a) {
964
- var _b = _a, {
965
- id,
966
- label,
967
- variant,
968
- errorMessage,
969
- className,
970
- disabled,
971
- children
972
- } = _b, rest = __objRest(_b, [
973
- "id",
974
- "label",
975
- "variant",
976
- "errorMessage",
977
- "className",
978
- "disabled",
979
- "children"
980
- ]);
981
- const errorMessageId = (0, import_react14.useId)();
982
- const selectId = (0, import_react14.useId)();
983
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
984
- "div",
1018
+ var import_react15 = require("react");
1019
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1020
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1021
+ var Select = (0, import_react15.forwardRef)(function Select2(_a, ref) {
1022
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
1023
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1024
+ InputGroup,
985
1025
  {
986
- className: (0, import_typed_classname16.clsx)(
987
- "hds-select",
988
- {
989
- [`hds-select--${variant}`]: variant,
990
- "hds-select--error": errorMessage
991
- },
992
- className
993
- ),
994
- children: [
995
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { className: "hds-select__label", htmlFor: selectId, children: label }),
996
- /* @__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 })) }),
997
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "hds-select__error-message", id: errorMessageId, children: errorMessage })
998
- ]
1026
+ className: (0, import_typed_classname17.clsx)("hds-select", className),
1027
+ disabled,
1028
+ errorMessage,
1029
+ id,
1030
+ label,
1031
+ labelProps,
1032
+ style,
1033
+ variant,
1034
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
999
1035
  }
1000
1036
  );
1001
- }
1037
+ });
1002
1038
  Select.displayName = "Select";
1003
1039
 
1004
1040
  // src/tabs/index.tsx
1005
- var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
1006
- var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
1007
- var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
1041
+ var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
1042
+ var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
1043
+ var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
1008
1044
  var import_tabs = require("@postenbring/hedwig-css/dist/tabs.css");
1009
1045
 
1010
1046
  // src/tabs/tabs.tsx
1011
- var import_react16 = require("react");
1012
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1047
+ var import_react17 = require("react");
1048
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1013
1049
 
1014
1050
  // src/tabs/context.ts
1015
- var import_react15 = require("react");
1016
- var TabsContext = (0, import_react15.createContext)({
1051
+ var import_react16 = require("react");
1052
+ var TabsContext = (0, import_react16.createContext)({
1017
1053
  mounted: false,
1018
1054
  activeTabId: void 0,
1019
1055
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
@@ -1022,12 +1058,12 @@ var TabsContext = (0, import_react15.createContext)({
1022
1058
  });
1023
1059
 
1024
1060
  // src/tabs/tabs.tsx
1025
- var import_jsx_runtime18 = require("react/jsx-runtime");
1026
- var Tabs = (0, import_react16.forwardRef)(
1061
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1062
+ var Tabs = (0, import_react17.forwardRef)(
1027
1063
  (_a, ref) => {
1028
1064
  var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1029
- const [activeTabId, setActiveTabId] = (0, import_react16.useState)(defaultTab);
1030
- 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)(
1065
+ const [activeTabId, setActiveTabId] = (0, import_react17.useState)(defaultTab);
1066
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname18.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1031
1067
  TabsContext.Provider,
1032
1068
  {
1033
1069
  value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
@@ -1039,19 +1075,19 @@ var Tabs = (0, import_react16.forwardRef)(
1039
1075
  Tabs.displayName = "Tabs";
1040
1076
 
1041
1077
  // src/tabs/tabs-list.tsx
1042
- var import_react17 = require("react");
1043
- var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1044
- var import_jsx_runtime19 = require("react/jsx-runtime");
1078
+ var import_react18 = require("react");
1079
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1080
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1045
1081
  function TabsList(_a) {
1046
1082
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1047
- const tabsListRef = (0, import_react17.useRef)(null);
1083
+ const tabsListRef = (0, import_react18.useRef)(null);
1048
1084
  const { width: tabsWidth } = useResize(tabsListRef);
1049
1085
  const { innerWidth } = window;
1050
1086
  const wideEnough = innerWidth >= tabsWidth;
1051
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1087
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1052
1088
  "div",
1053
1089
  __spreadProps(__spreadValues({
1054
- className: (0, import_typed_classname18.clsx)(
1090
+ className: (0, import_typed_classname19.clsx)(
1055
1091
  "hds-tabs--list",
1056
1092
  direction === "horizontal" ? {
1057
1093
  [`hds-tabs--list-horizontal`]: wideEnough,
@@ -1069,10 +1105,10 @@ function TabsList(_a) {
1069
1105
  );
1070
1106
  }
1071
1107
  TabsList.displayName = "Tabs.List";
1072
- var Tab = (0, import_react17.forwardRef)(
1108
+ var Tab = (0, import_react18.forwardRef)(
1073
1109
  (_a, ref) => {
1074
1110
  var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
1075
- const context = (0, import_react17.useContext)(TabsContext);
1111
+ const context = (0, import_react18.useContext)(TabsContext);
1076
1112
  if (!context.mounted) {
1077
1113
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1078
1114
  }
@@ -1081,10 +1117,10 @@ var Tab = (0, import_react17.forwardRef)(
1081
1117
  context.toggleActiveTabId(tabId);
1082
1118
  onClick && onClick(e);
1083
1119
  };
1084
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1120
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1085
1121
  Component,
1086
1122
  __spreadProps(__spreadValues({
1087
- className: (0, import_typed_classname18.clsx)(
1123
+ className: (0, import_typed_classname19.clsx)(
1088
1124
  "hds-tabs--tab",
1089
1125
  { "hds-tabs--tab-active": context.activeTabId === tabId },
1090
1126
  className
@@ -1102,23 +1138,23 @@ var Tab = (0, import_react17.forwardRef)(
1102
1138
  Tab.displayName = "Tabs.Tab";
1103
1139
 
1104
1140
  // src/tabs/tabs-content.tsx
1105
- var import_react18 = require("react");
1106
- var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1107
- var import_jsx_runtime20 = require("react/jsx-runtime");
1141
+ var import_react19 = require("react");
1142
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1143
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1108
1144
  function TabsContents(_a) {
1109
1145
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1110
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname19.clsx)("hds-tabs--contents") }, rest), { children }));
1146
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname20.clsx)("hds-tabs--contents") }, rest), { children }));
1111
1147
  }
1112
1148
  TabsContents.displayName = "Tabs.Contents";
1113
- var TabsContent = (0, import_react18.forwardRef)(
1149
+ var TabsContent = (0, import_react19.forwardRef)(
1114
1150
  (_a, ref) => {
1115
1151
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1116
- const context = (0, import_react18.useContext)(TabsContext);
1152
+ const context = (0, import_react19.useContext)(TabsContext);
1117
1153
  if (!context.mounted) {
1118
1154
  throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1119
1155
  }
1120
1156
  if (context.activeTabId === forTabId) {
1121
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1157
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1122
1158
  }
1123
1159
  return null;
1124
1160
  }
@@ -1133,97 +1169,58 @@ TabsComponent.Contents = TabsContents;
1133
1169
  TabsComponent.Content = TabsContent;
1134
1170
 
1135
1171
  // src/textarea/index.tsx
1136
- var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
1137
- var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
1138
- var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
1172
+ var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
1173
+ var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
1174
+ var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
1139
1175
  var import_textarea = require("@postenbring/hedwig-css/dist/textarea.css");
1176
+ var import_input_group8 = require("@postenbring/hedwig-css/dist/input-group.css");
1140
1177
 
1141
1178
  // src/textarea/textarea.tsx
1142
- var import_react19 = require("react");
1143
- var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1144
- var import_jsx_runtime21 = require("react/jsx-runtime");
1145
- var Textarea = (0, import_react19.forwardRef)(function Textarea2(_a, ref) {
1146
- var _b = _a, {
1147
- variant = "default",
1148
- errorMessage,
1149
- labelProps,
1150
- label,
1151
- id,
1152
- className,
1153
- disabled,
1154
- readOnly
1155
- } = _b, rest = __objRest(_b, [
1156
- "variant",
1157
- "errorMessage",
1158
- "labelProps",
1159
- "label",
1160
- "id",
1161
- "className",
1162
- "disabled",
1163
- "readOnly"
1164
- ]);
1165
- const errorMessageId = (0, import_react19.useId)();
1166
- const inputId = (0, import_react19.useId)();
1167
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1168
- "div",
1179
+ var import_react20 = require("react");
1180
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1181
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1182
+ var Textarea = (0, import_react20.forwardRef)(function Textarea2(_a, ref) {
1183
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1184
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1185
+ InputGroup,
1169
1186
  {
1170
- className: (0, import_typed_classname20.clsx)(
1171
- "hds-textarea",
1172
- {
1173
- [`hds-textarea--${variant}`]: variant,
1174
- "hds-textarea--error": errorMessage
1175
- },
1176
- className
1177
- ),
1178
- children: [
1179
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", __spreadProps(__spreadValues({ className: "hds-textarea__label" }, labelProps), { htmlFor: id || inputId, children: label })),
1180
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1181
- "div",
1182
- {
1183
- className: (0, import_typed_classname20.clsx)("hds-textarea__textarea-wrapper"),
1184
- "data-disabled": disabled,
1185
- "data-readonly": readOnly,
1186
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1187
- "textarea",
1188
- __spreadProps(__spreadValues({}, rest), {
1189
- "aria-describedby": errorMessage ? errorMessageId : void 0,
1190
- className: "hds-textarea__textarea",
1191
- disabled,
1192
- id: id || inputId,
1193
- readOnly,
1194
- ref
1195
- })
1196
- )
1197
- }
1198
- ),
1199
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "hds-textarea__error-message", id: errorMessageId, children: errorMessage })
1200
- ]
1187
+ className: (0, import_typed_classname21.clsx)("hds-textarea", className),
1188
+ disabled,
1189
+ errorMessage,
1190
+ id,
1191
+ label,
1192
+ labelProps,
1193
+ readOnly,
1194
+ style,
1195
+ variant,
1196
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
1201
1197
  }
1202
1198
  );
1203
1199
  });
1200
+ Textarea.displayName = "Textarea";
1204
1201
 
1205
1202
  // src/warning-banner/index.tsx
1206
- var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
1207
- var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
1208
- var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
1203
+ var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1204
+ var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1205
+ var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1209
1206
  var import_warning_banner = require("@postenbring/hedwig-css/dist/warning-banner.css");
1210
1207
 
1211
1208
  // src/warning-banner/warning-banner.tsx
1212
- var import_react20 = require("react");
1213
- var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1214
- var import_jsx_runtime22 = require("react/jsx-runtime");
1215
- var WarningBanner = (0, import_react20.forwardRef)(
1209
+ var import_react21 = require("react");
1210
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1211
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1212
+ var WarningBanner = (0, import_react21.forwardRef)(
1216
1213
  (_a, ref) => {
1217
1214
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1218
1215
  const expandable = !!description;
1219
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname21.clsx)("hds-warning-banner", className), ref, children: [
1220
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1221
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(WarningBannerDescription, { children: description }) : null
1216
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname22.clsx)("hds-warning-banner", className), ref, children: [
1217
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1218
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(WarningBannerDescription, { children: description }) : null
1222
1219
  ] }));
1223
1220
  }
1224
1221
  );
1225
1222
  WarningBanner.displayName = "WarningBanner";
1226
- var WarningBannerTitle = (0, import_react20.forwardRef)(
1223
+ var WarningBannerTitle = (0, import_react21.forwardRef)(
1227
1224
  (_a, ref) => {
1228
1225
  var _b = _a, {
1229
1226
  variant,
@@ -1236,12 +1233,12 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1236
1233
  "children",
1237
1234
  "className"
1238
1235
  ]);
1239
- const [open, setOpen] = (0, import_react20.useState)(false);
1236
+ const [open, setOpen] = (0, import_react21.useState)(false);
1240
1237
  if (variant === "expandable") {
1241
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1238
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1242
1239
  Component,
1243
1240
  __spreadProps(__spreadValues({
1244
- className: (0, import_typed_classname21.clsx)(
1241
+ className: (0, import_typed_classname22.clsx)(
1245
1242
  "hds-warning-banner__title",
1246
1243
  "hds-warning-banner__title-trigger",
1247
1244
  { "hds-warning-banner--closed": !open },
@@ -1254,8 +1251,8 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1254
1251
  type: "button"
1255
1252
  }, rest), {
1256
1253
  children: [
1257
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children }),
1258
- /* @__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)(
1254
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children }),
1255
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: (0, import_typed_classname22.clsx)("hds-warning-banner__title-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1259
1256
  "svg",
1260
1257
  {
1261
1258
  fill: "none",
@@ -1263,17 +1260,17 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1263
1260
  viewBox: "0 0 24 24",
1264
1261
  width: "24",
1265
1262
  xmlns: "http://www.w3.org/2000/svg",
1266
- 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" }) })
1263
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("g", { className: "hds-warning-banner__title-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime23.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" }) })
1267
1264
  }
1268
1265
  ) })
1269
1266
  ]
1270
1267
  })
1271
1268
  );
1272
1269
  }
1273
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1270
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1274
1271
  Component,
1275
1272
  __spreadProps(__spreadValues({
1276
- className: (0, import_typed_classname21.clsx)("hds-warning-banner__title", className),
1273
+ className: (0, import_typed_classname22.clsx)("hds-warning-banner__title", className),
1277
1274
  ref
1278
1275
  }, rest), {
1279
1276
  children
@@ -1282,13 +1279,13 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1282
1279
  }
1283
1280
  );
1284
1281
  WarningBannerTitle.displayName = "WarningBannerTitle";
1285
- var WarningBannerDescription = (0, import_react20.forwardRef)(
1282
+ var WarningBannerDescription = (0, import_react21.forwardRef)(
1286
1283
  (_a, ref) => {
1287
1284
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1288
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1285
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1289
1286
  Component,
1290
1287
  __spreadValues({
1291
- className: (0, import_typed_classname21.clsx)("hds-warning-banner__description", className),
1288
+ className: (0, import_typed_classname22.clsx)("hds-warning-banner__description", className),
1292
1289
  ref
1293
1290
  }, rest)
1294
1291
  );
@@ -1297,22 +1294,22 @@ var WarningBannerDescription = (0, import_react20.forwardRef)(
1297
1294
  WarningBannerDescription.displayName = "WarningBannerDescription";
1298
1295
 
1299
1296
  // src/layout/index.tsx
1300
- var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1301
- var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1302
- var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1297
+ var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1298
+ var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1299
+ var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
1303
1300
  var import_container = require("@postenbring/hedwig-css/dist/container.css");
1304
1301
 
1305
1302
  // src/layout/container/container.tsx
1306
- var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1307
- var import_react21 = require("react");
1308
- var import_jsx_runtime23 = require("react/jsx-runtime");
1309
- var Container = (0, import_react21.forwardRef)(
1303
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1304
+ var import_react22 = require("react");
1305
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1306
+ var Container = (0, import_react22.forwardRef)(
1310
1307
  (_a, ref) => {
1311
1308
  var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
1312
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1309
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1313
1310
  Component,
1314
1311
  __spreadProps(__spreadValues({}, rest), {
1315
- className: (0, import_typed_classname22.clsx)(
1312
+ className: (0, import_typed_classname23.clsx)(
1316
1313
  "hds-container",
1317
1314
  { "hds-container--slim": variant === "slim" },
1318
1315
  className