@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
@@ -74,22 +74,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
74
74
  // src/form/error-message/error-message.tsx
75
75
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
76
76
  var import_jsx_runtime = require("react/jsx-runtime");
77
- function ErrorMessage({
78
- children,
79
- id,
80
- className,
81
- _unstableAriaLiveOnErrorMessage
82
- }) {
77
+ function ErrorMessage({ children, id, className }) {
83
78
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
79
  "div",
85
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
86
- "aria-live": "polite",
87
- "aria-relevant": "additions removals"
88
- }), {
80
+ {
81
+ "aria-live": "assertive",
89
82
  className: (0, import_typed_classname.clsx)("hds-error-message", className),
90
83
  id,
91
84
  children
92
- })
85
+ }
93
86
  );
94
87
  }
95
88
 
@@ -107,8 +100,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
107
100
  label,
108
101
  disabled,
109
102
  readOnly,
110
- children,
111
- _unstableAriaLiveOnErrorMessage = false
103
+ children
112
104
  } = _e, rest = __objRest(_e, [
113
105
  "id",
114
106
  "className",
@@ -119,8 +111,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
119
111
  "label",
120
112
  "disabled",
121
113
  "readOnly",
122
- "children",
123
- "_unstableAriaLiveOnErrorMessage"
114
+ "children"
124
115
  ]);
125
116
  const errorMessageId = (0, import_react.useId)();
126
117
  const inputId = (0, import_react.useId)();
@@ -132,7 +123,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
132
123
  return (0, import_react.cloneElement)(input, __spreadProps(__spreadValues({
133
124
  "aria-describedby": errorMessage ? errorMessageId : void 0,
134
125
  "aria-invalid": errorMessage ? true : void 0,
135
- id: id || inputId
126
+ id: id != null ? id : inputId
136
127
  }, input.props), {
137
128
  className: (0, import_typed_classname2.clsx)("hds-input-group__input", input.props.className)
138
129
  }));
@@ -157,7 +148,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
157
148
  __spreadProps(__spreadValues({
158
149
  className: (0, import_typed_classname2.clsx)("hds-input-group__label", labelClassName)
159
150
  }, labelProps), {
160
- htmlFor: id || inputId,
151
+ htmlFor: id != null ? id : inputId,
161
152
  children: label
162
153
  })
163
154
  ),
@@ -170,14 +161,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
170
161
  children: renderInput()
171
162
  }
172
163
  ),
173
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
174
- ErrorMessage,
175
- {
176
- _unstableAriaLiveOnErrorMessage,
177
- id: errorMessageId,
178
- children: errorMessage
179
- }
180
- )
164
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
181
165
  ]
182
166
  })
183
167
  );
@@ -186,33 +170,10 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
186
170
  // src/form/input/input.tsx
187
171
  var import_jsx_runtime3 = require("react/jsx-runtime");
188
172
  var Input = (0, import_react2.forwardRef)(function Input2(_a, ref) {
189
- var _b = _a, {
190
- className,
191
- variant,
192
- errorMessage,
193
- labelProps,
194
- label,
195
- id,
196
- style,
197
- disabled,
198
- readOnly,
199
- _unstableAriaLiveOnErrorMessage
200
- } = _b, rest = __objRest(_b, [
201
- "className",
202
- "variant",
203
- "errorMessage",
204
- "labelProps",
205
- "label",
206
- "id",
207
- "style",
208
- "disabled",
209
- "readOnly",
210
- "_unstableAriaLiveOnErrorMessage"
211
- ]);
173
+ 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"]);
212
174
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
213
175
  InputGroup,
214
176
  {
215
- _unstableAriaLiveOnErrorMessage,
216
177
  className: (0, import_typed_classname3.clsx)("hds-input", className),
217
178
  disabled,
218
179
  errorMessage,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Input
3
- } from "../../chunk-RNALWA7A.mjs";
3
+ } from "../../chunk-OX5NTX6M.mjs";
4
4
  import "../../chunk-S4F2KVFJ.mjs";
5
- import "../../chunk-6KRJB36T.mjs";
5
+ import "../../chunk-CCNB2ABL.mjs";
6
6
  import "../../chunk-67OMX7FP.mjs";
7
- import "../../chunk-R7GQHCN4.mjs";
7
+ import "../../chunk-RBOWRO3L.mjs";
8
8
  import "../../chunk-FKR5F35B.mjs";
9
9
  export {
10
10
  Input
@@ -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
 
@@ -103,8 +96,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
103
96
  label,
104
97
  disabled,
105
98
  readOnly,
106
- children,
107
- _unstableAriaLiveOnErrorMessage = false
99
+ children
108
100
  } = _e, rest = __objRest(_e, [
109
101
  "id",
110
102
  "className",
@@ -115,8 +107,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
115
107
  "label",
116
108
  "disabled",
117
109
  "readOnly",
118
- "children",
119
- "_unstableAriaLiveOnErrorMessage"
110
+ "children"
120
111
  ]);
121
112
  const errorMessageId = (0, import_react.useId)();
122
113
  const inputId = (0, import_react.useId)();
@@ -128,7 +119,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
128
119
  return (0, import_react.cloneElement)(input, __spreadProps(__spreadValues({
129
120
  "aria-describedby": errorMessage ? errorMessageId : void 0,
130
121
  "aria-invalid": errorMessage ? true : void 0,
131
- id: id || inputId
122
+ id: id != null ? id : inputId
132
123
  }, input.props), {
133
124
  className: (0, import_typed_classname2.clsx)("hds-input-group__input", input.props.className)
134
125
  }));
@@ -153,7 +144,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
153
144
  __spreadProps(__spreadValues({
154
145
  className: (0, import_typed_classname2.clsx)("hds-input-group__label", labelClassName)
155
146
  }, labelProps), {
156
- htmlFor: id || inputId,
147
+ htmlFor: id != null ? id : inputId,
157
148
  children: label
158
149
  })
159
150
  ),
@@ -166,14 +157,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
166
157
  children: renderInput()
167
158
  }
168
159
  ),
169
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
170
- ErrorMessage,
171
- {
172
- _unstableAriaLiveOnErrorMessage,
173
- id: errorMessageId,
174
- children: errorMessage
175
- }
176
- )
160
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
177
161
  ]
178
162
  })
179
163
  );
@@ -1,9 +1,9 @@
1
1
  import "../../chunk-S4F2KVFJ.mjs";
2
2
  import {
3
3
  InputGroup
4
- } from "../../chunk-6KRJB36T.mjs";
4
+ } from "../../chunk-CCNB2ABL.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
  InputGroup
@@ -12,7 +12,6 @@ interface InputGroupProps {
12
12
  disabled?: boolean;
13
13
  readOnly?: boolean;
14
14
  children: ReactNode;
15
- _unstableAriaLiveOnErrorMessage?: boolean;
16
15
  }
17
16
  declare const InputGroup: react.ForwardRefExoticComponent<InputGroupProps & react.RefAttributes<HTMLDivElement>>;
18
17
 
@@ -12,7 +12,6 @@ interface InputGroupProps {
12
12
  disabled?: boolean;
13
13
  readOnly?: boolean;
14
14
  children: ReactNode;
15
- _unstableAriaLiveOnErrorMessage?: boolean;
16
15
  }
17
16
  declare const InputGroup: react.ForwardRefExoticComponent<InputGroupProps & react.RefAttributes<HTMLDivElement>>;
18
17
 
@@ -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
 
@@ -97,8 +90,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
97
90
  label,
98
91
  disabled,
99
92
  readOnly,
100
- children,
101
- _unstableAriaLiveOnErrorMessage = false
93
+ children
102
94
  } = _e, rest = __objRest(_e, [
103
95
  "id",
104
96
  "className",
@@ -109,8 +101,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
109
101
  "label",
110
102
  "disabled",
111
103
  "readOnly",
112
- "children",
113
- "_unstableAriaLiveOnErrorMessage"
104
+ "children"
114
105
  ]);
115
106
  const errorMessageId = (0, import_react.useId)();
116
107
  const inputId = (0, import_react.useId)();
@@ -122,7 +113,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
122
113
  return (0, import_react.cloneElement)(input, __spreadProps(__spreadValues({
123
114
  "aria-describedby": errorMessage ? errorMessageId : void 0,
124
115
  "aria-invalid": errorMessage ? true : void 0,
125
- id: id || inputId
116
+ id: id != null ? id : inputId
126
117
  }, input.props), {
127
118
  className: (0, import_typed_classname2.clsx)("hds-input-group__input", input.props.className)
128
119
  }));
@@ -147,7 +138,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
147
138
  __spreadProps(__spreadValues({
148
139
  className: (0, import_typed_classname2.clsx)("hds-input-group__label", labelClassName)
149
140
  }, labelProps), {
150
- htmlFor: id || inputId,
141
+ htmlFor: id != null ? id : inputId,
151
142
  children: label
152
143
  })
153
144
  ),
@@ -160,14 +151,7 @@ var InputGroup = (0, import_react.forwardRef)(function InputGroup2(_a, ref) {
160
151
  children: renderInput()
161
152
  }
162
153
  ),
163
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
164
- ErrorMessage,
165
- {
166
- _unstableAriaLiveOnErrorMessage,
167
- id: errorMessageId,
168
- children: errorMessage
169
- }
170
- )
154
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
171
155
  ]
172
156
  })
173
157
  );
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  InputGroup
3
- } from "../../chunk-6KRJB36T.mjs";
3
+ } from "../../chunk-CCNB2ABL.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
  InputGroup
@@ -0,0 +1,2 @@
1
+ export { Radiobutton, RadiobuttonProps } from './radiobutton.mjs';
2
+ import 'react';
@@ -0,0 +1,2 @@
1
+ export { Radiobutton, RadiobuttonProps } from './radiobutton.js';
2
+ import 'react';
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ 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
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/form/radiobutton/index.tsx
50
+ var radiobutton_exports = {};
51
+ __export(radiobutton_exports, {
52
+ Radiobutton: () => Radiobutton
53
+ });
54
+ module.exports = __toCommonJS(radiobutton_exports);
55
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
56
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
57
+ var import_body = require("@postenbring/hedwig-css/dist/body.css");
58
+ var import_radiobutton = require("@postenbring/hedwig-css/dist/radiobutton.css");
59
+
60
+ // src/form/radiobutton/radiobutton.tsx
61
+ var import_react = require("react");
62
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
63
+ var import_jsx_runtime = require("react/jsx-runtime");
64
+ var Radiobutton = (0, import_react.forwardRef)(
65
+ (_a, ref) => {
66
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
67
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
68
+ "label",
69
+ {
70
+ className: (0, import_typed_classname.clsx)(
71
+ "hds-radiobutton",
72
+ {
73
+ [`hds-radiobutton--${variant}`]: variant === "bounding-box",
74
+ "hds-radiobutton--error": hasError
75
+ },
76
+ className
77
+ ),
78
+ children: [
79
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
80
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
81
+ title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "hds-radiobutton__title", children: title }) : null,
82
+ children
83
+ ]
84
+ }
85
+ );
86
+ }
87
+ );
88
+ Radiobutton.displayName = "Radiobutton";
89
+ // Annotate the CommonJS export names for ESM import in node:
90
+ 0 && (module.exports = {
91
+ Radiobutton
92
+ });
@@ -0,0 +1,8 @@
1
+ import "../../chunk-ERFGFY3Q.mjs";
2
+ import {
3
+ Radiobutton
4
+ } from "../../chunk-ZDZR5FVC.mjs";
5
+ import "../../chunk-FKR5F35B.mjs";
6
+ export {
7
+ Radiobutton
8
+ };
@@ -0,0 +1,10 @@
1
+ import react__default, { InputHTMLAttributes } from 'react';
2
+
3
+ interface RadiobuttonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
4
+ variant?: "plain" | "bounding-box";
5
+ hasError?: boolean;
6
+ title?: string;
7
+ }
8
+ declare const Radiobutton: react__default.ForwardRefExoticComponent<RadiobuttonProps & react__default.RefAttributes<HTMLInputElement>>;
9
+
10
+ export { Radiobutton, type RadiobuttonProps };
@@ -0,0 +1,10 @@
1
+ import react__default, { InputHTMLAttributes } from 'react';
2
+
3
+ interface RadiobuttonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
4
+ variant?: "plain" | "bounding-box";
5
+ hasError?: boolean;
6
+ title?: string;
7
+ }
8
+ declare const Radiobutton: react__default.ForwardRefExoticComponent<RadiobuttonProps & react__default.RefAttributes<HTMLInputElement>>;
9
+
10
+ export { Radiobutton, type RadiobuttonProps };
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ 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
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/form/radiobutton/radiobutton.tsx
50
+ var radiobutton_exports = {};
51
+ __export(radiobutton_exports, {
52
+ Radiobutton: () => Radiobutton
53
+ });
54
+ module.exports = __toCommonJS(radiobutton_exports);
55
+ var import_react = require("react");
56
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var Radiobutton = (0, import_react.forwardRef)(
59
+ (_a, ref) => {
60
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
62
+ "label",
63
+ {
64
+ className: (0, import_typed_classname.clsx)(
65
+ "hds-radiobutton",
66
+ {
67
+ [`hds-radiobutton--${variant}`]: variant === "bounding-box",
68
+ "hds-radiobutton--error": hasError
69
+ },
70
+ className
71
+ ),
72
+ children: [
73
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
75
+ title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "hds-radiobutton__title", children: title }) : null,
76
+ children
77
+ ]
78
+ }
79
+ );
80
+ }
81
+ );
82
+ Radiobutton.displayName = "Radiobutton";
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ Radiobutton
86
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Radiobutton
3
+ } from "../../chunk-ZDZR5FVC.mjs";
4
+ import "../../chunk-FKR5F35B.mjs";
5
+ export {
6
+ Radiobutton
7
+ };
@@ -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
  );
@@ -1,11 +1,11 @@
1
1
  import "../../chunk-OPW2JS5I.mjs";
2
2
  import {
3
3
  Select
4
- } from "../../chunk-MUGMWWNN.mjs";
4
+ } from "../../chunk-LCFKBPZC.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
  Select