@postenbring/hedwig-react 0.0.47 → 0.0.49

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 (103) hide show
  1. package/dist/button/button.d.mts +12 -5
  2. package/dist/button/button.d.ts +12 -5
  3. package/dist/button/button.js +5 -2
  4. package/dist/button/button.mjs +1 -1
  5. package/dist/button/index.js +5 -2
  6. package/dist/button/index.mjs +1 -1
  7. package/dist/card/card.d.mts +29 -5
  8. package/dist/card/card.d.ts +29 -5
  9. package/dist/card/card.js +26 -32
  10. package/dist/card/card.mjs +1 -1
  11. package/dist/card/index.d.mts +9 -8
  12. package/dist/card/index.d.ts +9 -8
  13. package/dist/card/index.js +26 -32
  14. package/dist/card/index.mjs +2 -2
  15. package/dist/{chunk-3WUAXFB3.mjs → chunk-3WKOOAQL.mjs} +7 -7
  16. package/dist/{chunk-S7FSULI3.mjs → chunk-52YSOWMY.mjs} +1 -1
  17. package/dist/{chunk-6KRJB36T.mjs → chunk-CCNB2ABL.mjs} +6 -15
  18. package/dist/chunk-ERFGFY3Q.mjs +5 -0
  19. package/dist/{chunk-J5QNIAFL.mjs → chunk-JAHBNZTG.mjs} +4 -13
  20. package/dist/{chunk-DOWBGRCN.mjs → chunk-JOKO7Y7O.mjs} +3 -3
  21. package/dist/chunk-JTHBBJZW.mjs +5 -0
  22. package/dist/{chunk-MUGMWWNN.mjs → chunk-LCFKBPZC.mjs} +1 -1
  23. package/dist/{chunk-B3SD7RZV.mjs → chunk-OEOI74US.mjs} +26 -32
  24. package/dist/{chunk-4KBVX3Y7.mjs → chunk-OSCKYUZ3.mjs} +1 -1
  25. package/dist/{chunk-RNALWA7A.mjs → chunk-OX5NTX6M.mjs} +2 -25
  26. package/dist/{chunk-YBSM5D5N.mjs → chunk-PTLX7PHW.mjs} +5 -2
  27. package/dist/chunk-RBOWRO3L.mjs +18 -0
  28. package/dist/chunk-RSL23FEW.mjs +26 -0
  29. package/dist/chunk-SDR3TESK.mjs +39 -0
  30. package/dist/chunk-ZDZR5FVC.mjs +39 -0
  31. package/dist/form/checkbox/checkbox.d.mts +10 -0
  32. package/dist/form/checkbox/checkbox.d.ts +10 -0
  33. package/dist/form/checkbox/checkbox.js +86 -0
  34. package/dist/form/checkbox/checkbox.mjs +7 -0
  35. package/dist/form/checkbox/index.d.mts +2 -0
  36. package/dist/form/checkbox/index.d.ts +2 -0
  37. package/dist/form/checkbox/index.js +92 -0
  38. package/dist/form/checkbox/index.mjs +8 -0
  39. package/dist/form/error-message/error-message.d.mts +1 -2
  40. package/dist/form/error-message/error-message.d.ts +1 -2
  41. package/dist/form/error-message/error-message.js +4 -28
  42. package/dist/form/error-message/error-message.mjs +1 -1
  43. package/dist/form/error-message/index.js +4 -28
  44. package/dist/form/error-message/index.mjs +1 -1
  45. package/dist/form/fieldset/fieldset.d.mts +0 -1
  46. package/dist/form/fieldset/fieldset.d.ts +0 -1
  47. package/dist/form/fieldset/fieldset.js +7 -23
  48. package/dist/form/fieldset/fieldset.mjs +2 -2
  49. package/dist/form/fieldset/index.js +7 -23
  50. package/dist/form/fieldset/index.mjs +2 -2
  51. package/dist/form/index.d.mts +2 -0
  52. package/dist/form/index.d.ts +2 -0
  53. package/dist/form/index.js +89 -61
  54. package/dist/form/index.mjs +17 -7
  55. package/dist/form/input/index.js +10 -49
  56. package/dist/form/input/index.mjs +3 -3
  57. package/dist/form/input/input.js +10 -49
  58. package/dist/form/input/input.mjs +3 -3
  59. package/dist/form/input-group/index.js +9 -25
  60. package/dist/form/input-group/index.mjs +2 -2
  61. package/dist/form/input-group/input-group.d.mts +0 -1
  62. package/dist/form/input-group/input-group.d.ts +0 -1
  63. package/dist/form/input-group/input-group.js +9 -25
  64. package/dist/form/input-group/input-group.mjs +2 -2
  65. package/dist/form/radiobutton/index.d.mts +2 -0
  66. package/dist/form/radiobutton/index.d.ts +2 -0
  67. package/dist/form/radiobutton/index.js +92 -0
  68. package/dist/form/radiobutton/index.mjs +8 -0
  69. package/dist/form/radiobutton/radiobutton.d.mts +10 -0
  70. package/dist/form/radiobutton/radiobutton.d.ts +10 -0
  71. package/dist/form/radiobutton/radiobutton.js +86 -0
  72. package/dist/form/radiobutton/radiobutton.mjs +7 -0
  73. package/dist/form/select/index.js +9 -25
  74. package/dist/form/select/index.mjs +3 -3
  75. package/dist/form/select/select.js +9 -25
  76. package/dist/form/select/select.mjs +3 -3
  77. package/dist/form/textarea/index.js +9 -25
  78. package/dist/form/textarea/index.mjs +3 -3
  79. package/dist/form/textarea/textarea.js +9 -25
  80. package/dist/form/textarea/textarea.mjs +3 -3
  81. package/dist/index.d.mts +3 -1
  82. package/dist/index.d.ts +3 -1
  83. package/dist/index.js +273 -240
  84. package/dist/index.mjs +26 -16
  85. package/dist/list/index.js +10 -2
  86. package/dist/list/index.mjs +1 -1
  87. package/dist/list/link-list.d.mts +1 -1
  88. package/dist/list/link-list.d.ts +1 -1
  89. package/dist/list/link-list.js +10 -2
  90. package/dist/list/link-list.mjs +1 -1
  91. package/dist/navbar/index.js +3 -3
  92. package/dist/navbar/index.mjs +1 -1
  93. package/dist/navbar/navbar-expandable-menu.js +3 -3
  94. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  95. package/dist/{prose/prose.d.mts → styled-html/styled-html.d.mts} +9 -15
  96. package/dist/{prose/prose.d.ts → styled-html/styled-html.d.ts} +9 -15
  97. package/dist/{prose/prose.js → styled-html/styled-html.js} +11 -11
  98. package/dist/styled-html/styled-html.mjs +7 -0
  99. package/package.json +5 -5
  100. package/dist/chunk-R7GQHCN4.mjs +0 -30
  101. package/dist/chunk-X5URKHFD.mjs +0 -18
  102. package/dist/prose/prose.mjs +0 -7
  103. /package/dist/{chunk-PPUNMHOX.mjs → chunk-5OGUAHLN.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ErrorMessage
3
- } from "../../chunk-R7GQHCN4.mjs";
3
+ } from "../../chunk-RBOWRO3L.mjs";
4
4
  import "../../chunk-FKR5F35B.mjs";
5
5
  export {
6
6
  ErrorMessage
@@ -1,25 +1,8 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
- var __spreadValues = (a, b) => {
12
- for (var prop in b || (b = {}))
13
- if (__hasOwnProp.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- if (__getOwnPropSymbols)
16
- for (var prop of __getOwnPropSymbols(b)) {
17
- if (__propIsEnum.call(b, prop))
18
- __defNormalProp(a, prop, b[prop]);
19
- }
20
- return a;
21
- };
22
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
6
  var __export = (target, all) => {
24
7
  for (var name in all)
25
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -48,22 +31,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
48
31
  // src/form/error-message/error-message.tsx
49
32
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
50
33
  var import_jsx_runtime = require("react/jsx-runtime");
51
- function ErrorMessage({
52
- children,
53
- id,
54
- className,
55
- _unstableAriaLiveOnErrorMessage
56
- }) {
34
+ function ErrorMessage({ children, id, className }) {
57
35
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
58
36
  "div",
59
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
60
- "aria-live": "polite",
61
- "aria-relevant": "additions removals"
62
- }), {
37
+ {
38
+ "aria-live": "assertive",
63
39
  className: (0, import_typed_classname.clsx)("hds-error-message", className),
64
40
  id,
65
41
  children
66
- })
42
+ }
67
43
  );
68
44
  }
69
45
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,7 @@
1
1
  import "../../chunk-67OMX7FP.mjs";
2
2
  import {
3
3
  ErrorMessage
4
- } from "../../chunk-R7GQHCN4.mjs";
4
+ } from "../../chunk-RBOWRO3L.mjs";
5
5
  import "../../chunk-FKR5F35B.mjs";
6
6
  export {
7
7
  ErrorMessage
@@ -10,7 +10,6 @@ interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
10
10
  };
11
11
  legend: ReactNode;
12
12
  children: ReactNode;
13
- _unstableAriaLiveOnErrorMessage?: boolean;
14
13
  }
15
14
  /**
16
15
  * 🚨 WORK IN PROGRESS 🚨
@@ -10,7 +10,6 @@ interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
10
10
  };
11
11
  legend: ReactNode;
12
12
  children: ReactNode;
13
- _unstableAriaLiveOnErrorMessage?: boolean;
14
13
  }
15
14
  /**
16
15
  * 🚨 WORK IN PROGRESS 🚨
@@ -64,22 +64,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
64
64
  // src/form/error-message/error-message.tsx
65
65
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
66
66
  var import_jsx_runtime = require("react/jsx-runtime");
67
- function ErrorMessage({
68
- children,
69
- id,
70
- className,
71
- _unstableAriaLiveOnErrorMessage
72
- }) {
67
+ function ErrorMessage({ children, id, className }) {
73
68
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
69
  "div",
75
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
76
- "aria-live": "polite",
77
- "aria-relevant": "additions removals"
78
- }), {
70
+ {
71
+ "aria-live": "assertive",
79
72
  className: (0, import_typed_classname.clsx)("hds-error-message", className),
80
73
  id,
81
74
  children
82
- })
75
+ }
83
76
  );
84
77
  }
85
78
 
@@ -93,16 +86,14 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
93
86
  legendProps: _c = {}
94
87
  } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
95
88
  legend,
96
- children,
97
- _unstableAriaLiveOnErrorMessage = false
89
+ children
98
90
  } = _e, rest = __objRest(_e, [
99
91
  "className",
100
92
  "style",
101
93
  "errorMessage",
102
94
  "legendProps",
103
95
  "legend",
104
- "children",
105
- "_unstableAriaLiveOnErrorMessage"
96
+ "children"
106
97
  ]);
107
98
  const errorMessageId = (0, import_react.useId)();
108
99
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
@@ -128,14 +119,7 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
128
119
  })
129
120
  ),
130
121
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_typed_classname2.clsx)("hds-fieldset__input-wrapper"), children }),
131
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
132
- ErrorMessage,
133
- {
134
- _unstableAriaLiveOnErrorMessage,
135
- id: errorMessageId,
136
- children: errorMessage
137
- }
138
- )
122
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
139
123
  ]
140
124
  })
141
125
  );
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Fieldset
3
- } from "../../chunk-J5QNIAFL.mjs";
3
+ } from "../../chunk-JAHBNZTG.mjs";
4
4
  import "../../chunk-67OMX7FP.mjs";
5
- import "../../chunk-R7GQHCN4.mjs";
5
+ import "../../chunk-RBOWRO3L.mjs";
6
6
  import "../../chunk-FKR5F35B.mjs";
7
7
  export {
8
8
  Fieldset
@@ -70,22 +70,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
70
70
  // src/form/error-message/error-message.tsx
71
71
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
72
72
  var import_jsx_runtime = require("react/jsx-runtime");
73
- function ErrorMessage({
74
- children,
75
- id,
76
- className,
77
- _unstableAriaLiveOnErrorMessage
78
- }) {
73
+ function ErrorMessage({ children, id, className }) {
79
74
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
75
  "div",
81
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
82
- "aria-live": "polite",
83
- "aria-relevant": "additions removals"
84
- }), {
76
+ {
77
+ "aria-live": "assertive",
85
78
  className: (0, import_typed_classname.clsx)("hds-error-message", className),
86
79
  id,
87
80
  children
88
- })
81
+ }
89
82
  );
90
83
  }
91
84
 
@@ -99,16 +92,14 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
99
92
  legendProps: _c = {}
100
93
  } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
101
94
  legend,
102
- children,
103
- _unstableAriaLiveOnErrorMessage = false
95
+ children
104
96
  } = _e, rest = __objRest(_e, [
105
97
  "className",
106
98
  "style",
107
99
  "errorMessage",
108
100
  "legendProps",
109
101
  "legend",
110
- "children",
111
- "_unstableAriaLiveOnErrorMessage"
102
+ "children"
112
103
  ]);
113
104
  const errorMessageId = (0, import_react.useId)();
114
105
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
@@ -134,14 +125,7 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
134
125
  })
135
126
  ),
136
127
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_typed_classname2.clsx)("hds-fieldset__input-wrapper"), children }),
137
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
138
- ErrorMessage,
139
- {
140
- _unstableAriaLiveOnErrorMessage,
141
- id: errorMessageId,
142
- children: errorMessage
143
- }
144
- )
128
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
145
129
  ]
146
130
  })
147
131
  );
@@ -1,9 +1,9 @@
1
1
  import "../../chunk-OKWNTFU5.mjs";
2
2
  import {
3
3
  Fieldset
4
- } from "../../chunk-J5QNIAFL.mjs";
4
+ } from "../../chunk-JAHBNZTG.mjs";
5
5
  import "../../chunk-67OMX7FP.mjs";
6
- import "../../chunk-R7GQHCN4.mjs";
6
+ import "../../chunk-RBOWRO3L.mjs";
7
7
  import "../../chunk-FKR5F35B.mjs";
8
8
  export {
9
9
  Fieldset
@@ -2,5 +2,7 @@ export { Fieldset, FieldsetProps } from './fieldset/fieldset.mjs';
2
2
  export { Input, InputProps } from './input/input.mjs';
3
3
  export { Select, SelectProps } from './select/select.mjs';
4
4
  export { Textarea, TextareaProps } from './textarea/textarea.mjs';
5
+ export { Checkbox, CheckboxProps } from './checkbox/checkbox.mjs';
6
+ export { Radiobutton, RadiobuttonProps } from './radiobutton/radiobutton.mjs';
5
7
  import 'react';
6
8
  import './input-group/input-group.mjs';
@@ -2,5 +2,7 @@ export { Fieldset, FieldsetProps } from './fieldset/fieldset.js';
2
2
  export { Input, InputProps } from './input/input.js';
3
3
  export { Select, SelectProps } from './select/select.js';
4
4
  export { Textarea, TextareaProps } from './textarea/textarea.js';
5
+ export { Checkbox, CheckboxProps } from './checkbox/checkbox.js';
6
+ export { Radiobutton, RadiobuttonProps } from './radiobutton/radiobutton.js';
5
7
  import 'react';
6
8
  import './input-group/input-group.js';
@@ -49,8 +49,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/form/index.tsx
50
50
  var form_exports = {};
51
51
  __export(form_exports, {
52
+ Checkbox: () => Checkbox,
52
53
  Fieldset: () => Fieldset,
53
54
  Input: () => Input,
55
+ Radiobutton: () => Radiobutton,
54
56
  Select: () => Select,
55
57
  Textarea: () => Textarea
56
58
  });
@@ -75,22 +77,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
75
77
  // src/form/error-message/error-message.tsx
76
78
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
77
79
  var import_jsx_runtime = require("react/jsx-runtime");
78
- function ErrorMessage({
79
- children,
80
- id,
81
- className,
82
- _unstableAriaLiveOnErrorMessage
83
- }) {
80
+ function ErrorMessage({ children, id, className }) {
84
81
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
82
  "div",
86
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
87
- "aria-live": "polite",
88
- "aria-relevant": "additions removals"
89
- }), {
83
+ {
84
+ "aria-live": "assertive",
90
85
  className: (0, import_typed_classname.clsx)("hds-error-message", className),
91
86
  id,
92
87
  children
93
- })
88
+ }
94
89
  );
95
90
  }
96
91
 
@@ -104,16 +99,14 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
104
99
  legendProps: _c = {}
105
100
  } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
106
101
  legend,
107
- children,
108
- _unstableAriaLiveOnErrorMessage = false
102
+ children
109
103
  } = _e, rest = __objRest(_e, [
110
104
  "className",
111
105
  "style",
112
106
  "errorMessage",
113
107
  "legendProps",
114
108
  "legend",
115
- "children",
116
- "_unstableAriaLiveOnErrorMessage"
109
+ "children"
117
110
  ]);
118
111
  const errorMessageId = (0, import_react.useId)();
119
112
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
@@ -139,14 +132,7 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
139
132
  })
140
133
  ),
141
134
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_typed_classname2.clsx)("hds-fieldset__input-wrapper"), children }),
142
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
143
- ErrorMessage,
144
- {
145
- _unstableAriaLiveOnErrorMessage,
146
- id: errorMessageId,
147
- children: errorMessage
148
- }
149
- )
135
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
150
136
  ]
151
137
  })
152
138
  );
@@ -185,8 +171,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
185
171
  label,
186
172
  disabled,
187
173
  readOnly,
188
- children,
189
- _unstableAriaLiveOnErrorMessage = false
174
+ children
190
175
  } = _e, rest = __objRest(_e, [
191
176
  "id",
192
177
  "className",
@@ -197,8 +182,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
197
182
  "label",
198
183
  "disabled",
199
184
  "readOnly",
200
- "children",
201
- "_unstableAriaLiveOnErrorMessage"
185
+ "children"
202
186
  ]);
203
187
  const errorMessageId = (0, import_react2.useId)();
204
188
  const inputId = (0, import_react2.useId)();
@@ -210,7 +194,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
210
194
  return (0, import_react2.cloneElement)(input, __spreadProps(__spreadValues({
211
195
  "aria-describedby": errorMessage ? errorMessageId : void 0,
212
196
  "aria-invalid": errorMessage ? true : void 0,
213
- id: id || inputId
197
+ id: id != null ? id : inputId
214
198
  }, input.props), {
215
199
  className: (0, import_typed_classname3.clsx)("hds-input-group__input", input.props.className)
216
200
  }));
@@ -235,7 +219,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
235
219
  __spreadProps(__spreadValues({
236
220
  className: (0, import_typed_classname3.clsx)("hds-input-group__label", labelClassName)
237
221
  }, labelProps), {
238
- htmlFor: id || inputId,
222
+ htmlFor: id != null ? id : inputId,
239
223
  children: label
240
224
  })
241
225
  ),
@@ -248,14 +232,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
248
232
  children: renderInput()
249
233
  }
250
234
  ),
251
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
252
- ErrorMessage,
253
- {
254
- _unstableAriaLiveOnErrorMessage,
255
- id: errorMessageId,
256
- children: errorMessage
257
- }
258
- )
235
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
259
236
  ]
260
237
  })
261
238
  );
@@ -264,33 +241,10 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
264
241
  // src/form/input/input.tsx
265
242
  var import_jsx_runtime4 = require("react/jsx-runtime");
266
243
  var Input = (0, import_react3.forwardRef)(function Input2(_a, ref) {
267
- var _b = _a, {
268
- className,
269
- variant,
270
- errorMessage,
271
- labelProps,
272
- label,
273
- id,
274
- style,
275
- disabled,
276
- readOnly,
277
- _unstableAriaLiveOnErrorMessage
278
- } = _b, rest = __objRest(_b, [
279
- "className",
280
- "variant",
281
- "errorMessage",
282
- "labelProps",
283
- "label",
284
- "id",
285
- "style",
286
- "disabled",
287
- "readOnly",
288
- "_unstableAriaLiveOnErrorMessage"
289
- ]);
244
+ 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"]);
290
245
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
291
246
  InputGroup,
292
247
  {
293
- _unstableAriaLiveOnErrorMessage,
294
248
  className: (0, import_typed_classname4.clsx)("hds-input", className),
295
249
  disabled,
296
250
  errorMessage,
@@ -366,10 +320,84 @@ var Textarea = (0, import_react5.forwardRef)(function Textarea2(_a, ref) {
366
320
  );
367
321
  });
368
322
  Textarea.displayName = "Textarea";
323
+
324
+ // src/form/checkbox/index.tsx
325
+ var import_fonts7 = require("@postenbring/hedwig-css/dist/fonts.css");
326
+ var import_tokens7 = require("@postenbring/hedwig-css/dist/tokens.css");
327
+ var import_body7 = require("@postenbring/hedwig-css/dist/body.css");
328
+ var import_checkbox = require("@postenbring/hedwig-css/dist/checkbox.css");
329
+
330
+ // src/form/checkbox/checkbox.tsx
331
+ var import_react6 = require("react");
332
+ var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
333
+ var import_jsx_runtime7 = require("react/jsx-runtime");
334
+ var Checkbox = (0, import_react6.forwardRef)(
335
+ (_a, ref) => {
336
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
337
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
338
+ "label",
339
+ {
340
+ className: (0, import_typed_classname7.clsx)(
341
+ "hds-checkbox",
342
+ {
343
+ [`hds-checkbox--${variant}`]: variant === "bounding-box",
344
+ "hds-checkbox--error": hasError
345
+ },
346
+ className
347
+ ),
348
+ children: [
349
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
350
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
351
+ title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "hds-checkbox__title", children: title }) : null,
352
+ children
353
+ ]
354
+ }
355
+ );
356
+ }
357
+ );
358
+ Checkbox.displayName = "Checkbox";
359
+
360
+ // src/form/radiobutton/index.tsx
361
+ var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
362
+ var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
363
+ var import_body8 = require("@postenbring/hedwig-css/dist/body.css");
364
+ var import_radiobutton = require("@postenbring/hedwig-css/dist/radiobutton.css");
365
+
366
+ // src/form/radiobutton/radiobutton.tsx
367
+ var import_react7 = require("react");
368
+ var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
369
+ var import_jsx_runtime8 = require("react/jsx-runtime");
370
+ var Radiobutton = (0, import_react7.forwardRef)(
371
+ (_a, ref) => {
372
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
373
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
374
+ "label",
375
+ {
376
+ className: (0, import_typed_classname8.clsx)(
377
+ "hds-radiobutton",
378
+ {
379
+ [`hds-radiobutton--${variant}`]: variant === "bounding-box",
380
+ "hds-radiobutton--error": hasError
381
+ },
382
+ className
383
+ ),
384
+ children: [
385
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
386
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
387
+ title ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "hds-radiobutton__title", children: title }) : null,
388
+ children
389
+ ]
390
+ }
391
+ );
392
+ }
393
+ );
394
+ Radiobutton.displayName = "Radiobutton";
369
395
  // Annotate the CommonJS export names for ESM import in node:
370
396
  0 && (module.exports = {
397
+ Checkbox,
371
398
  Fieldset,
372
399
  Input,
400
+ Radiobutton,
373
401
  Select,
374
402
  Textarea
375
403
  });
@@ -1,28 +1,38 @@
1
- import "../chunk-PPUNMHOX.mjs";
1
+ import "../chunk-5OGUAHLN.mjs";
2
+ import "../chunk-ERFGFY3Q.mjs";
3
+ import {
4
+ Radiobutton
5
+ } from "../chunk-ZDZR5FVC.mjs";
2
6
  import "../chunk-OPW2JS5I.mjs";
3
7
  import {
4
8
  Select
5
- } from "../chunk-MUGMWWNN.mjs";
9
+ } from "../chunk-LCFKBPZC.mjs";
6
10
  import "../chunk-5NWYVPBZ.mjs";
7
11
  import {
8
12
  Textarea
9
- } from "../chunk-4KBVX3Y7.mjs";
13
+ } from "../chunk-OSCKYUZ3.mjs";
14
+ import "../chunk-JTHBBJZW.mjs";
15
+ import {
16
+ Checkbox
17
+ } from "../chunk-SDR3TESK.mjs";
10
18
  import "../chunk-OKWNTFU5.mjs";
11
19
  import {
12
20
  Fieldset
13
- } from "../chunk-J5QNIAFL.mjs";
21
+ } from "../chunk-JAHBNZTG.mjs";
14
22
  import "../chunk-4RAMNETH.mjs";
15
23
  import {
16
24
  Input
17
- } from "../chunk-RNALWA7A.mjs";
25
+ } from "../chunk-OX5NTX6M.mjs";
18
26
  import "../chunk-S4F2KVFJ.mjs";
19
- import "../chunk-6KRJB36T.mjs";
27
+ import "../chunk-CCNB2ABL.mjs";
20
28
  import "../chunk-67OMX7FP.mjs";
21
- import "../chunk-R7GQHCN4.mjs";
29
+ import "../chunk-RBOWRO3L.mjs";
22
30
  import "../chunk-FKR5F35B.mjs";
23
31
  export {
32
+ Checkbox,
24
33
  Fieldset,
25
34
  Input,
35
+ Radiobutton,
26
36
  Select,
27
37
  Textarea
28
38
  };
@@ -81,22 +81,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
81
81
  // src/form/error-message/error-message.tsx
82
82
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
83
83
  var import_jsx_runtime = require("react/jsx-runtime");
84
- function ErrorMessage({
85
- children,
86
- id,
87
- className,
88
- _unstableAriaLiveOnErrorMessage
89
- }) {
84
+ function ErrorMessage({ children, id, className }) {
90
85
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
86
  "div",
92
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
93
- "aria-live": "polite",
94
- "aria-relevant": "additions removals"
95
- }), {
87
+ {
88
+ "aria-live": "assertive",
96
89
  className: (0, import_typed_classname.clsx)("hds-error-message", className),
97
90
  id,
98
91
  children
99
- })
92
+ }
100
93
  );
101
94
  }
102
95
 
@@ -114,8 +107,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
114
107
  label,
115
108
  disabled,
116
109
  readOnly,
117
- children,
118
- _unstableAriaLiveOnErrorMessage = false
110
+ children
119
111
  } = _e, rest = __objRest(_e, [
120
112
  "id",
121
113
  "className",
@@ -126,8 +118,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
126
118
  "label",
127
119
  "disabled",
128
120
  "readOnly",
129
- "children",
130
- "_unstableAriaLiveOnErrorMessage"
121
+ "children"
131
122
  ]);
132
123
  const errorMessageId = (0, import_react.useId)();
133
124
  const inputId = (0, import_react.useId)();
@@ -139,7 +130,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
139
130
  return (0, import_react.cloneElement)(input, __spreadProps(__spreadValues({
140
131
  "aria-describedby": errorMessage ? errorMessageId : void 0,
141
132
  "aria-invalid": errorMessage ? true : void 0,
142
- id: id || inputId
133
+ id: id != null ? id : inputId
143
134
  }, input.props), {
144
135
  className: (0, import_typed_classname2.clsx)("hds-input-group__input", input.props.className)
145
136
  }));
@@ -164,7 +155,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
164
155
  __spreadProps(__spreadValues({
165
156
  className: (0, import_typed_classname2.clsx)("hds-input-group__label", labelClassName)
166
157
  }, labelProps), {
167
- htmlFor: id || inputId,
158
+ htmlFor: id != null ? id : inputId,
168
159
  children: label
169
160
  })
170
161
  ),
@@ -177,14 +168,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
177
168
  children: renderInput()
178
169
  }
179
170
  ),
180
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
181
- ErrorMessage,
182
- {
183
- _unstableAriaLiveOnErrorMessage,
184
- id: errorMessageId,
185
- children: errorMessage
186
- }
187
- )
171
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
188
172
  ]
189
173
  })
190
174
  );
@@ -193,33 +177,10 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
193
177
  // src/form/input/input.tsx
194
178
  var import_jsx_runtime3 = require("react/jsx-runtime");
195
179
  var Input = (0, import_react2.forwardRef)(function Input2(_a, ref) {
196
- var _b = _a, {
197
- className,
198
- variant,
199
- errorMessage,
200
- labelProps,
201
- label,
202
- id,
203
- style,
204
- disabled,
205
- readOnly,
206
- _unstableAriaLiveOnErrorMessage
207
- } = _b, rest = __objRest(_b, [
208
- "className",
209
- "variant",
210
- "errorMessage",
211
- "labelProps",
212
- "label",
213
- "id",
214
- "style",
215
- "disabled",
216
- "readOnly",
217
- "_unstableAriaLiveOnErrorMessage"
218
- ]);
180
+ 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"]);
219
181
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
220
182
  InputGroup,
221
183
  {
222
- _unstableAriaLiveOnErrorMessage,
223
184
  className: (0, import_typed_classname3.clsx)("hds-input", className),
224
185
  disabled,
225
186
  errorMessage,
@@ -1,11 +1,11 @@
1
1
  import "../../chunk-4RAMNETH.mjs";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-RNALWA7A.mjs";
4
+ } from "../../chunk-OX5NTX6M.mjs";
5
5
  import "../../chunk-S4F2KVFJ.mjs";
6
- import "../../chunk-6KRJB36T.mjs";
6
+ import "../../chunk-CCNB2ABL.mjs";
7
7
  import "../../chunk-67OMX7FP.mjs";
8
- import "../../chunk-R7GQHCN4.mjs";
8
+ import "../../chunk-RBOWRO3L.mjs";
9
9
  import "../../chunk-FKR5F35B.mjs";
10
10
  export {
11
11
  Input