@postenbring/hedwig-react 0.0.40 → 0.0.42

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 (82) hide show
  1. package/README.md +3 -0
  2. package/dist/accordion/accordion-content.js +4 -10
  3. package/dist/accordion/accordion-content.mjs +2 -2
  4. package/dist/accordion/accordion-header.d.mts +9 -0
  5. package/dist/accordion/accordion-header.d.ts +9 -0
  6. package/dist/accordion/{accordion-trigger.js → accordion-header.js} +12 -36
  7. package/dist/accordion/accordion-header.mjs +8 -0
  8. package/dist/accordion/accordion-item.d.mts +15 -3
  9. package/dist/accordion/accordion-item.d.ts +15 -3
  10. package/dist/accordion/accordion-item.js +21 -26
  11. package/dist/accordion/accordion-item.mjs +2 -2
  12. package/dist/accordion/accordion.d.mts +4 -12
  13. package/dist/accordion/accordion.d.ts +4 -12
  14. package/dist/accordion/accordion.js +15 -28
  15. package/dist/accordion/accordion.mjs +1 -2
  16. package/dist/accordion/index.d.mts +4 -4
  17. package/dist/accordion/index.d.ts +4 -4
  18. package/dist/accordion/index.js +53 -71
  19. package/dist/accordion/index.mjs +6 -6
  20. package/dist/chunk-2Y3E37N3.mjs +34 -0
  21. package/dist/chunk-45BJGKVZ.mjs +5 -0
  22. package/dist/chunk-6XTXM4YQ.mjs +47 -0
  23. package/dist/{chunk-PWHALENY.mjs → chunk-DOJ2ZKNV.mjs} +1 -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-SBHXDOBW.mjs +35 -0
  31. package/dist/chunk-SDJXW6U7.mjs +32 -0
  32. package/dist/{chunk-R5ISWMI6.mjs → chunk-SX37JSDS.mjs} +1 -0
  33. package/dist/chunk-Y34HUVFV.mjs +56 -0
  34. package/dist/index.d.mts +2 -1
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.js +314 -322
  37. package/dist/index.mjs +25 -23
  38. package/dist/input/index.d.mts +1 -0
  39. package/dist/input/index.d.ts +1 -0
  40. package/dist/input/index.js +102 -30
  41. package/dist/input/index.mjs +4 -2
  42. package/dist/input/input.d.mts +3 -8
  43. package/dist/input/input.d.ts +3 -8
  44. package/dist/input/input.js +99 -28
  45. package/dist/input/input.mjs +3 -1
  46. package/dist/input-group/index.d.mts +2 -0
  47. package/dist/input-group/index.d.ts +2 -0
  48. package/dist/input-group/index.js +148 -0
  49. package/dist/input-group/index.mjs +8 -0
  50. package/dist/input-group/input-group.d.mts +25 -0
  51. package/dist/input-group/input-group.d.ts +25 -0
  52. package/dist/input-group/input-group.js +142 -0
  53. package/dist/input-group/input-group.mjs +7 -0
  54. package/dist/list/index.mjs +3 -3
  55. package/dist/select/index.d.mts +2 -1
  56. package/dist/select/index.d.ts +2 -1
  57. package/dist/select/index.js +91 -19
  58. package/dist/select/index.mjs +4 -2
  59. package/dist/select/select.d.mts +5 -11
  60. package/dist/select/select.d.ts +5 -11
  61. package/dist/select/select.js +88 -17
  62. package/dist/select/select.mjs +3 -1
  63. package/dist/tabs/index.mjs +2 -2
  64. package/dist/textarea/index.d.mts +1 -0
  65. package/dist/textarea/index.d.ts +1 -0
  66. package/dist/textarea/index.js +81 -27
  67. package/dist/textarea/index.mjs +4 -2
  68. package/dist/textarea/textarea.d.mts +3 -8
  69. package/dist/textarea/textarea.d.ts +3 -8
  70. package/dist/textarea/textarea.js +78 -25
  71. package/dist/textarea/textarea.mjs +3 -1
  72. package/package.json +13 -2
  73. package/dist/accordion/accordion-trigger.d.mts +0 -9
  74. package/dist/accordion/accordion-trigger.d.ts +0 -9
  75. package/dist/accordion/accordion-trigger.mjs +0 -8
  76. package/dist/chunk-2V6SWZ5G.mjs +0 -16
  77. package/dist/chunk-4WI2BHHB.mjs +0 -63
  78. package/dist/chunk-5YF6SR4S.mjs +0 -73
  79. package/dist/chunk-GMGUONH5.mjs +0 -34
  80. package/dist/chunk-IT4L33S6.mjs +0 -54
  81. package/dist/chunk-MRJYCUBY.mjs +0 -76
  82. 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,167 @@ 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
+ variant,
695
+ errorMessage,
696
+ labelProps,
697
+ label,
698
+ id,
699
+ style,
700
+ disabled,
701
+ readOnly,
702
+ _unstableAriaLiveOnErrorMessage
703
+ } = _b, rest = __objRest(_b, [
704
+ "variant",
705
+ "errorMessage",
706
+ "labelProps",
707
+ "label",
708
+ "id",
709
+ "style",
710
+ "disabled",
711
+ "readOnly",
712
+ "_unstableAriaLiveOnErrorMessage"
713
+ ]);
714
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
715
+ InputGroup,
716
+ {
717
+ _unstableAriaLiveOnErrorMessage,
718
+ className: (0, import_typed_classname11.clsx)("hds-input"),
719
+ disabled,
720
+ errorMessage,
721
+ id,
722
+ label,
723
+ labelProps,
724
+ readOnly,
725
+ variant,
726
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref, style }))
674
727
  }
675
728
  );
676
729
  });
730
+ Input.displayName = "Input";
677
731
 
678
732
  // 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");
733
+ var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
734
+ var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
735
+ var import_body9 = require("@postenbring/hedwig-css/dist/body.css");
682
736
  var import_link = require("@postenbring/hedwig-css/dist/link.css");
683
737
 
684
738
  // 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)(
739
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
740
+ var import_react11 = require("react");
741
+ var import_jsx_runtime12 = require("react/jsx-runtime");
742
+ var Link = (0, import_react11.forwardRef)(
689
743
  (_a, ref) => {
690
744
  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)(
745
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
692
746
  Component,
693
747
  __spreadProps(__spreadValues({
694
- className: (0, import_typed_classname11.clsx)(
748
+ className: (0, import_typed_classname12.clsx)(
695
749
  "hds-link",
696
750
  variant !== "underline" && `hds-link--${variant}`,
697
751
  size !== "medium" && `hds-link--${size}`,
@@ -707,15 +761,15 @@ var Link = (0, import_react10.forwardRef)(
707
761
  Link.displayName = "Link";
708
762
 
709
763
  // 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");
764
+ var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
765
+ var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
766
+ var import_body10 = require("@postenbring/hedwig-css/dist/body.css");
713
767
  var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
714
768
  var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
715
769
 
716
770
  // 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");
771
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
772
+ var import_jsx_runtime13 = require("react/jsx-runtime");
719
773
  function DescriptionList(_a) {
720
774
  var _b = _a, {
721
775
  variant = "vertical",
@@ -724,10 +778,10 @@ function DescriptionList(_a) {
724
778
  "variant",
725
779
  "className"
726
780
  ]);
727
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
781
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
728
782
  "dl",
729
783
  __spreadValues({
730
- className: (0, import_typed_classname12.clsx)(
784
+ className: (0, import_typed_classname13.clsx)(
731
785
  "hds-description-list",
732
786
  {
733
787
  "hds-description-list--horizontal": variant === "horizontal"
@@ -740,8 +794,8 @@ function DescriptionList(_a) {
740
794
  DescriptionList.displayName = "DescriptionList";
741
795
 
742
796
  // 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");
797
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
798
+ var import_jsx_runtime14 = require("react/jsx-runtime");
745
799
  function BaseList(_a) {
746
800
  var _b = _a, {
747
801
  as: ListTag = "ul",
@@ -756,10 +810,10 @@ function BaseList(_a) {
756
810
  "size",
757
811
  "className"
758
812
  ]);
759
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
813
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
760
814
  ListTag,
761
815
  __spreadProps(__spreadValues({
762
- className: (0, import_typed_classname13.clsx)(
816
+ className: (0, import_typed_classname14.clsx)(
763
817
  "hds-list",
764
818
  `hds-list--${size}`,
765
819
  {
@@ -773,44 +827,44 @@ function BaseList(_a) {
773
827
  );
774
828
  }
775
829
  function UnorderedList(props) {
776
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
830
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
777
831
  }
778
832
  function OrderedList(props) {
779
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
833
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
780
834
  }
781
835
  BaseList.displayName = "BaseList";
782
836
  OrderedList.displayName = "OrderedList";
783
837
  UnorderedList.displayName = "UnorderedList";
784
838
 
785
839
  // src/list/link-list.tsx
786
- var import_jsx_runtime14 = require("react/jsx-runtime");
840
+ var import_jsx_runtime15 = require("react/jsx-runtime");
787
841
  function LinkList(props) {
788
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
842
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
789
843
  }
790
844
  LinkList.displayName = "LinkList";
791
845
 
792
846
  // 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");
847
+ var import_fonts11 = require("@postenbring/hedwig-css/dist/fonts.css");
848
+ var import_tokens11 = require("@postenbring/hedwig-css/dist/tokens.css");
849
+ var import_body11 = require("@postenbring/hedwig-css/dist/body.css");
796
850
  var import_box4 = require("@postenbring/hedwig-css/dist/box.css");
797
851
  var import_message = require("@postenbring/hedwig-css/dist/message.css");
798
852
 
799
853
  // 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)(
854
+ var import_react12 = require("react");
855
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
856
+ var import_jsx_runtime16 = require("react/jsx-runtime");
857
+ var Message = (0, import_react12.forwardRef)(
804
858
  (_a, ref) => {
805
859
  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)(
860
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
807
861
  Box,
808
862
  __spreadProps(__spreadValues({
809
- className: (0, import_typed_classname14.clsx)(`hds-message`, `hds-message--${variant}`, className),
863
+ className: (0, import_typed_classname15.clsx)(`hds-message`, `hds-message--${variant}`, className),
810
864
  ref
811
865
  }, rest), {
812
866
  children: [
813
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: (0, import_typed_classname14.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
867
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_typed_classname15.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
814
868
  children
815
869
  ]
816
870
  })
@@ -818,26 +872,26 @@ var Message = (0, import_react11.forwardRef)(
818
872
  }
819
873
  );
820
874
  Message.displayName = "Message";
821
- var MessageTitle = (0, import_react11.forwardRef)(
875
+ var MessageTitle = (0, import_react12.forwardRef)(
822
876
  (_a, ref) => {
823
877
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
824
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
878
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
825
879
  Component,
826
880
  __spreadValues({
827
- className: (0, import_typed_classname14.clsx)("hds-message__title", className),
881
+ className: (0, import_typed_classname15.clsx)("hds-message__title", className),
828
882
  ref
829
883
  }, rest)
830
884
  );
831
885
  }
832
886
  );
833
887
  MessageTitle.displayName = "Message.Title";
834
- var MessageDescription = (0, import_react11.forwardRef)(
888
+ var MessageDescription = (0, import_react12.forwardRef)(
835
889
  (_a, ref) => {
836
890
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
837
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
891
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
838
892
  Component,
839
893
  __spreadValues({
840
- className: (0, import_typed_classname14.clsx)("hds-message__description", className),
894
+ className: (0, import_typed_classname15.clsx)("hds-message__description", className),
841
895
  ref
842
896
  }, rest)
843
897
  );
@@ -851,19 +905,19 @@ MessageComponent.Title = MessageTitle;
851
905
  MessageComponent.Description = MessageDescription;
852
906
 
853
907
  // 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");
908
+ var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
909
+ var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
910
+ var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
857
911
  var import_box6 = require("@postenbring/hedwig-css/dist/box.css");
858
912
  var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
859
913
 
860
914
  // src/modal/modal.tsx
861
- var import_react13 = require("react");
862
- var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
915
+ var import_react14 = require("react");
916
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
863
917
 
864
918
  // src/utils.ts
865
919
  var React2 = __toESM(require("react"));
866
- var import_react12 = require("react");
920
+ var import_react13 = require("react");
867
921
  function useMergeRefs(refs) {
868
922
  return React2.useMemo(() => {
869
923
  if (refs.every((ref) => ref === null)) {
@@ -881,16 +935,16 @@ function useMergeRefs(refs) {
881
935
  }, refs);
882
936
  }
883
937
  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)(() => {
938
+ const [width, setWidth] = (0, import_react13.useState)(0);
939
+ const [height, setHeight] = (0, import_react13.useState)(0);
940
+ const handleResize = (0, import_react13.useCallback)(() => {
887
941
  var _a, _b, _c, _d;
888
942
  if ((ref == null ? void 0 : ref.current) !== null) {
889
943
  setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
890
944
  setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
891
945
  }
892
946
  }, [ref]);
893
- (0, import_react12.useEffect)(() => {
947
+ (0, import_react13.useEffect)(() => {
894
948
  window.addEventListener("load", handleResize);
895
949
  window.addEventListener("resize", handleResize);
896
950
  return () => {
@@ -898,29 +952,29 @@ function useResize(ref) {
898
952
  window.removeEventListener("resize", handleResize);
899
953
  };
900
954
  }, [ref, handleResize]);
901
- (0, import_react12.useEffect)(() => {
955
+ (0, import_react13.useEffect)(() => {
902
956
  handleResize();
903
957
  }, []);
904
958
  return { width, height };
905
959
  }
906
960
 
907
961
  // src/modal/modal.tsx
908
- var import_jsx_runtime16 = require("react/jsx-runtime");
909
- var Modal = (0, import_react13.forwardRef)(
962
+ var import_jsx_runtime17 = require("react/jsx-runtime");
963
+ var Modal = (0, import_react14.forwardRef)(
910
964
  (_a, ref) => {
911
965
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
912
- const modalRef = (0, import_react13.useRef)(null);
966
+ const modalRef = (0, import_react14.useRef)(null);
913
967
  const mergedRef = useMergeRefs([modalRef, ref]);
914
968
  function onClose() {
915
969
  var _a2;
916
970
  (_a2 = modalRef.current) == null ? void 0 : _a2.close();
917
971
  return false;
918
972
  }
919
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
973
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
920
974
  Box,
921
975
  __spreadProps(__spreadValues({
922
976
  as: "dialog",
923
- className: (0, import_typed_classname15.clsx)("hds-modal", className),
977
+ className: (0, import_typed_classname16.clsx)("hds-modal", className),
924
978
  closeable: true,
925
979
  onClose,
926
980
  ref: mergedRef,
@@ -932,13 +986,13 @@ var Modal = (0, import_react13.forwardRef)(
932
986
  }
933
987
  );
934
988
  Modal.displayName = "Modal";
935
- var ModalHeader = (0, import_react13.forwardRef)(
989
+ var ModalHeader = (0, import_react14.forwardRef)(
936
990
  (_a, ref) => {
937
991
  var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
938
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
992
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
939
993
  Component,
940
994
  __spreadValues({
941
- className: (0, import_typed_classname15.clsx)("hds-modal__header", className),
995
+ className: (0, import_typed_classname16.clsx)("hds-modal__header", className),
942
996
  ref
943
997
  }, rest)
944
998
  );
@@ -951,69 +1005,47 @@ var ModalComponent = Modal;
951
1005
  ModalComponent.Header = ModalHeader;
952
1006
 
953
1007
  // 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");
1008
+ var import_fonts13 = require("@postenbring/hedwig-css/dist/fonts.css");
1009
+ var import_tokens13 = require("@postenbring/hedwig-css/dist/tokens.css");
1010
+ var import_body13 = require("@postenbring/hedwig-css/dist/body.css");
957
1011
  var import_select = require("@postenbring/hedwig-css/dist/select.css");
1012
+ var import_input_group6 = require("@postenbring/hedwig-css/dist/input-group.css");
958
1013
 
959
1014
  // 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",
1015
+ var import_react15 = require("react");
1016
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1017
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1018
+ var Select = (0, import_react15.forwardRef)(function Select2(_a, ref) {
1019
+ var _b = _a, { variant, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
1020
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1021
+ InputGroup,
985
1022
  {
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
- ]
1023
+ className: (0, import_typed_classname17.clsx)("hds-select"),
1024
+ disabled,
1025
+ errorMessage,
1026
+ id,
1027
+ label,
1028
+ labelProps,
1029
+ variant,
1030
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, style, children }))
999
1031
  }
1000
1032
  );
1001
- }
1033
+ });
1002
1034
  Select.displayName = "Select";
1003
1035
 
1004
1036
  // 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");
1037
+ var import_fonts14 = require("@postenbring/hedwig-css/dist/fonts.css");
1038
+ var import_tokens14 = require("@postenbring/hedwig-css/dist/tokens.css");
1039
+ var import_body14 = require("@postenbring/hedwig-css/dist/body.css");
1008
1040
  var import_tabs = require("@postenbring/hedwig-css/dist/tabs.css");
1009
1041
 
1010
1042
  // src/tabs/tabs.tsx
1011
- var import_react16 = require("react");
1012
- var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1043
+ var import_react17 = require("react");
1044
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1013
1045
 
1014
1046
  // src/tabs/context.ts
1015
- var import_react15 = require("react");
1016
- var TabsContext = (0, import_react15.createContext)({
1047
+ var import_react16 = require("react");
1048
+ var TabsContext = (0, import_react16.createContext)({
1017
1049
  mounted: false,
1018
1050
  activeTabId: void 0,
1019
1051
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
@@ -1022,12 +1054,12 @@ var TabsContext = (0, import_react15.createContext)({
1022
1054
  });
1023
1055
 
1024
1056
  // src/tabs/tabs.tsx
1025
- var import_jsx_runtime18 = require("react/jsx-runtime");
1026
- var Tabs = (0, import_react16.forwardRef)(
1057
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1058
+ var Tabs = (0, import_react17.forwardRef)(
1027
1059
  (_a, ref) => {
1028
1060
  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)(
1061
+ const [activeTabId, setActiveTabId] = (0, import_react17.useState)(defaultTab);
1062
+ 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
1063
  TabsContext.Provider,
1032
1064
  {
1033
1065
  value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
@@ -1039,19 +1071,19 @@ var Tabs = (0, import_react16.forwardRef)(
1039
1071
  Tabs.displayName = "Tabs";
1040
1072
 
1041
1073
  // 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");
1074
+ var import_react18 = require("react");
1075
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1076
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1045
1077
  function TabsList(_a) {
1046
1078
  var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1047
- const tabsListRef = (0, import_react17.useRef)(null);
1079
+ const tabsListRef = (0, import_react18.useRef)(null);
1048
1080
  const { width: tabsWidth } = useResize(tabsListRef);
1049
1081
  const { innerWidth } = window;
1050
1082
  const wideEnough = innerWidth >= tabsWidth;
1051
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1083
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1052
1084
  "div",
1053
1085
  __spreadProps(__spreadValues({
1054
- className: (0, import_typed_classname18.clsx)(
1086
+ className: (0, import_typed_classname19.clsx)(
1055
1087
  "hds-tabs--list",
1056
1088
  direction === "horizontal" ? {
1057
1089
  [`hds-tabs--list-horizontal`]: wideEnough,
@@ -1069,10 +1101,10 @@ function TabsList(_a) {
1069
1101
  );
1070
1102
  }
1071
1103
  TabsList.displayName = "Tabs.List";
1072
- var Tab = (0, import_react17.forwardRef)(
1104
+ var Tab = (0, import_react18.forwardRef)(
1073
1105
  (_a, ref) => {
1074
1106
  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);
1107
+ const context = (0, import_react18.useContext)(TabsContext);
1076
1108
  if (!context.mounted) {
1077
1109
  throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1078
1110
  }
@@ -1081,10 +1113,10 @@ var Tab = (0, import_react17.forwardRef)(
1081
1113
  context.toggleActiveTabId(tabId);
1082
1114
  onClick && onClick(e);
1083
1115
  };
1084
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1116
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1085
1117
  Component,
1086
1118
  __spreadProps(__spreadValues({
1087
- className: (0, import_typed_classname18.clsx)(
1119
+ className: (0, import_typed_classname19.clsx)(
1088
1120
  "hds-tabs--tab",
1089
1121
  { "hds-tabs--tab-active": context.activeTabId === tabId },
1090
1122
  className
@@ -1102,23 +1134,23 @@ var Tab = (0, import_react17.forwardRef)(
1102
1134
  Tab.displayName = "Tabs.Tab";
1103
1135
 
1104
1136
  // 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");
1137
+ var import_react19 = require("react");
1138
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1139
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1108
1140
  function TabsContents(_a) {
1109
1141
  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 }));
1142
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname20.clsx)("hds-tabs--contents") }, rest), { children }));
1111
1143
  }
1112
1144
  TabsContents.displayName = "Tabs.Contents";
1113
- var TabsContent = (0, import_react18.forwardRef)(
1145
+ var TabsContent = (0, import_react19.forwardRef)(
1114
1146
  (_a, ref) => {
1115
1147
  var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1116
- const context = (0, import_react18.useContext)(TabsContext);
1148
+ const context = (0, import_react19.useContext)(TabsContext);
1117
1149
  if (!context.mounted) {
1118
1150
  throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1119
1151
  }
1120
1152
  if (context.activeTabId === forTabId) {
1121
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1153
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1122
1154
  }
1123
1155
  return null;
1124
1156
  }
@@ -1133,97 +1165,57 @@ TabsComponent.Contents = TabsContents;
1133
1165
  TabsComponent.Content = TabsContent;
1134
1166
 
1135
1167
  // 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");
1168
+ var import_fonts15 = require("@postenbring/hedwig-css/dist/fonts.css");
1169
+ var import_tokens15 = require("@postenbring/hedwig-css/dist/tokens.css");
1170
+ var import_body15 = require("@postenbring/hedwig-css/dist/body.css");
1139
1171
  var import_textarea = require("@postenbring/hedwig-css/dist/textarea.css");
1172
+ var import_input_group8 = require("@postenbring/hedwig-css/dist/input-group.css");
1140
1173
 
1141
1174
  // 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",
1175
+ var import_react20 = require("react");
1176
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1177
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1178
+ var Textarea = (0, import_react20.forwardRef)(function Textarea2(_a, ref) {
1179
+ var _b = _a, { variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
1180
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1181
+ InputGroup,
1169
1182
  {
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
- ]
1183
+ className: (0, import_typed_classname21.clsx)("hds-textarea"),
1184
+ disabled,
1185
+ errorMessage,
1186
+ id,
1187
+ label,
1188
+ labelProps,
1189
+ readOnly,
1190
+ variant,
1191
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref, style }))
1201
1192
  }
1202
1193
  );
1203
1194
  });
1195
+ Textarea.displayName = "Textarea";
1204
1196
 
1205
1197
  // 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");
1198
+ var import_fonts16 = require("@postenbring/hedwig-css/dist/fonts.css");
1199
+ var import_tokens16 = require("@postenbring/hedwig-css/dist/tokens.css");
1200
+ var import_body16 = require("@postenbring/hedwig-css/dist/body.css");
1209
1201
  var import_warning_banner = require("@postenbring/hedwig-css/dist/warning-banner.css");
1210
1202
 
1211
1203
  // 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)(
1204
+ var import_react21 = require("react");
1205
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1206
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1207
+ var WarningBanner = (0, import_react21.forwardRef)(
1216
1208
  (_a, ref) => {
1217
1209
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1218
1210
  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
1211
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname22.clsx)("hds-warning-banner", className), ref, children: [
1212
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1213
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(WarningBannerDescription, { children: description }) : null
1222
1214
  ] }));
1223
1215
  }
1224
1216
  );
1225
1217
  WarningBanner.displayName = "WarningBanner";
1226
- var WarningBannerTitle = (0, import_react20.forwardRef)(
1218
+ var WarningBannerTitle = (0, import_react21.forwardRef)(
1227
1219
  (_a, ref) => {
1228
1220
  var _b = _a, {
1229
1221
  variant,
@@ -1236,12 +1228,12 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1236
1228
  "children",
1237
1229
  "className"
1238
1230
  ]);
1239
- const [open, setOpen] = (0, import_react20.useState)(false);
1231
+ const [open, setOpen] = (0, import_react21.useState)(false);
1240
1232
  if (variant === "expandable") {
1241
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1233
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1242
1234
  Component,
1243
1235
  __spreadProps(__spreadValues({
1244
- className: (0, import_typed_classname21.clsx)(
1236
+ className: (0, import_typed_classname22.clsx)(
1245
1237
  "hds-warning-banner__title",
1246
1238
  "hds-warning-banner__title-trigger",
1247
1239
  { "hds-warning-banner--closed": !open },
@@ -1254,8 +1246,8 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1254
1246
  type: "button"
1255
1247
  }, rest), {
1256
1248
  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)(
1249
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children }),
1250
+ /* @__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
1251
  "svg",
1260
1252
  {
1261
1253
  fill: "none",
@@ -1263,17 +1255,17 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1263
1255
  viewBox: "0 0 24 24",
1264
1256
  width: "24",
1265
1257
  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" }) })
1258
+ 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
1259
  }
1268
1260
  ) })
1269
1261
  ]
1270
1262
  })
1271
1263
  );
1272
1264
  }
1273
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1265
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1274
1266
  Component,
1275
1267
  __spreadProps(__spreadValues({
1276
- className: (0, import_typed_classname21.clsx)("hds-warning-banner__title", className),
1268
+ className: (0, import_typed_classname22.clsx)("hds-warning-banner__title", className),
1277
1269
  ref
1278
1270
  }, rest), {
1279
1271
  children
@@ -1282,13 +1274,13 @@ var WarningBannerTitle = (0, import_react20.forwardRef)(
1282
1274
  }
1283
1275
  );
1284
1276
  WarningBannerTitle.displayName = "WarningBannerTitle";
1285
- var WarningBannerDescription = (0, import_react20.forwardRef)(
1277
+ var WarningBannerDescription = (0, import_react21.forwardRef)(
1286
1278
  (_a, ref) => {
1287
1279
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1288
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1280
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1289
1281
  Component,
1290
1282
  __spreadValues({
1291
- className: (0, import_typed_classname21.clsx)("hds-warning-banner__description", className),
1283
+ className: (0, import_typed_classname22.clsx)("hds-warning-banner__description", className),
1292
1284
  ref
1293
1285
  }, rest)
1294
1286
  );
@@ -1297,22 +1289,22 @@ var WarningBannerDescription = (0, import_react20.forwardRef)(
1297
1289
  WarningBannerDescription.displayName = "WarningBannerDescription";
1298
1290
 
1299
1291
  // 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");
1292
+ var import_fonts17 = require("@postenbring/hedwig-css/dist/fonts.css");
1293
+ var import_tokens17 = require("@postenbring/hedwig-css/dist/tokens.css");
1294
+ var import_body17 = require("@postenbring/hedwig-css/dist/body.css");
1303
1295
  var import_container = require("@postenbring/hedwig-css/dist/container.css");
1304
1296
 
1305
1297
  // 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)(
1298
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1299
+ var import_react22 = require("react");
1300
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1301
+ var Container = (0, import_react22.forwardRef)(
1310
1302
  (_a, ref) => {
1311
1303
  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)(
1304
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1313
1305
  Component,
1314
1306
  __spreadProps(__spreadValues({}, rest), {
1315
- className: (0, import_typed_classname22.clsx)(
1307
+ className: (0, import_typed_classname23.clsx)(
1316
1308
  "hds-container",
1317
1309
  { "hds-container--slim": variant === "slim" },
1318
1310
  className