@postenbring/hedwig-react 0.0.48 → 0.0.50
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.
- package/dist/button/button.d.mts +12 -5
- package/dist/button/button.d.ts +12 -5
- package/dist/button/button.js +5 -2
- package/dist/button/button.mjs +1 -1
- package/dist/button/index.js +5 -2
- package/dist/button/index.mjs +1 -1
- package/dist/card/card.d.mts +29 -5
- package/dist/card/card.d.ts +29 -5
- package/dist/card/card.js +26 -32
- package/dist/card/card.mjs +1 -1
- package/dist/card/index.d.mts +9 -8
- package/dist/card/index.d.ts +9 -8
- package/dist/card/index.js +26 -32
- package/dist/card/index.mjs +2 -2
- package/dist/{chunk-3WUAXFB3.mjs → chunk-3WKOOAQL.mjs} +7 -7
- package/dist/{chunk-S7FSULI3.mjs → chunk-52YSOWMY.mjs} +1 -1
- package/dist/{chunk-6KRJB36T.mjs → chunk-CCNB2ABL.mjs} +6 -15
- package/dist/{chunk-J5QNIAFL.mjs → chunk-JAHBNZTG.mjs} +4 -13
- package/dist/{chunk-DOWBGRCN.mjs → chunk-JOKO7Y7O.mjs} +3 -3
- package/dist/{chunk-MUGMWWNN.mjs → chunk-LCFKBPZC.mjs} +1 -1
- package/dist/{chunk-B3SD7RZV.mjs → chunk-OEOI74US.mjs} +26 -32
- package/dist/{chunk-4KBVX3Y7.mjs → chunk-OSCKYUZ3.mjs} +1 -1
- package/dist/{chunk-RNALWA7A.mjs → chunk-OX5NTX6M.mjs} +2 -25
- package/dist/{chunk-YBSM5D5N.mjs → chunk-PTLX7PHW.mjs} +5 -2
- package/dist/chunk-RBOWRO3L.mjs +18 -0
- package/dist/chunk-RSL23FEW.mjs +26 -0
- package/dist/{chunk-JTBZ4UL4.mjs → chunk-SDR3TESK.mjs} +3 -3
- package/dist/{chunk-IXH7S7RI.mjs → chunk-ZDZR5FVC.mjs} +1 -1
- package/dist/form/checkbox/checkbox.js +3 -3
- package/dist/form/checkbox/checkbox.mjs +1 -1
- package/dist/form/checkbox/index.js +3 -3
- package/dist/form/checkbox/index.mjs +1 -1
- package/dist/form/error-message/error-message.d.mts +1 -2
- package/dist/form/error-message/error-message.d.ts +1 -2
- package/dist/form/error-message/error-message.js +4 -28
- package/dist/form/error-message/error-message.mjs +1 -1
- package/dist/form/error-message/index.js +4 -28
- package/dist/form/error-message/index.mjs +1 -1
- package/dist/form/fieldset/fieldset.d.mts +0 -1
- package/dist/form/fieldset/fieldset.d.ts +0 -1
- package/dist/form/fieldset/fieldset.js +7 -23
- package/dist/form/fieldset/fieldset.mjs +2 -2
- package/dist/form/fieldset/index.js +7 -23
- package/dist/form/fieldset/index.mjs +2 -2
- package/dist/form/index.js +17 -65
- package/dist/form/index.mjs +8 -8
- package/dist/form/input/index.js +10 -49
- package/dist/form/input/index.mjs +3 -3
- package/dist/form/input/input.js +10 -49
- package/dist/form/input/input.mjs +3 -3
- package/dist/form/input-group/index.js +9 -25
- package/dist/form/input-group/index.mjs +2 -2
- package/dist/form/input-group/input-group.d.mts +0 -1
- package/dist/form/input-group/input-group.d.ts +0 -1
- package/dist/form/input-group/input-group.js +9 -25
- package/dist/form/input-group/input-group.mjs +2 -2
- package/dist/form/radiobutton/index.js +1 -1
- package/dist/form/radiobutton/index.mjs +1 -1
- package/dist/form/radiobutton/radiobutton.js +1 -1
- package/dist/form/radiobutton/radiobutton.mjs +1 -1
- package/dist/form/select/index.js +9 -25
- package/dist/form/select/index.mjs +3 -3
- package/dist/form/select/select.js +9 -25
- package/dist/form/select/select.mjs +3 -3
- package/dist/form/textarea/index.js +9 -25
- package/dist/form/textarea/index.mjs +3 -3
- package/dist/form/textarea/textarea.js +9 -25
- package/dist/form/textarea/textarea.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +93 -136
- package/dist/index.mjs +17 -17
- package/dist/list/index.js +10 -2
- package/dist/list/index.mjs +1 -1
- package/dist/list/link-list.d.mts +1 -1
- package/dist/list/link-list.d.ts +1 -1
- package/dist/list/link-list.js +10 -2
- package/dist/list/link-list.mjs +1 -1
- package/dist/navbar/index.js +3 -3
- package/dist/navbar/index.mjs +1 -1
- package/dist/navbar/navbar-expandable-menu.js +3 -3
- package/dist/navbar/navbar-expandable-menu.mjs +1 -1
- package/dist/{prose/prose.d.mts → styled-html/styled-html.d.mts} +9 -15
- package/dist/{prose/prose.d.ts → styled-html/styled-html.d.ts} +9 -15
- package/dist/{prose/prose.js → styled-html/styled-html.js} +11 -11
- package/dist/styled-html/styled-html.mjs +7 -0
- package/package.json +5 -5
- package/dist/chunk-R7GQHCN4.mjs +0 -30
- package/dist/chunk-X5URKHFD.mjs +0 -18
- package/dist/prose/prose.mjs +0 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../chunk-OKWNTFU5.mjs";
|
|
2
2
|
import {
|
|
3
3
|
Fieldset
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-JAHBNZTG.mjs";
|
|
5
5
|
import "../../chunk-67OMX7FP.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-RBOWRO3L.mjs";
|
|
7
7
|
import "../../chunk-FKR5F35B.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Fieldset
|
package/dist/form/index.js
CHANGED
|
@@ -77,22 +77,15 @@ var import_error_message = require("@postenbring/hedwig-css/dist/error-message.c
|
|
|
77
77
|
// src/form/error-message/error-message.tsx
|
|
78
78
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
79
79
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
80
|
-
function ErrorMessage({
|
|
81
|
-
children,
|
|
82
|
-
id,
|
|
83
|
-
className,
|
|
84
|
-
_unstableAriaLiveOnErrorMessage
|
|
85
|
-
}) {
|
|
80
|
+
function ErrorMessage({ children, id, className }) {
|
|
86
81
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
82
|
"div",
|
|
88
|
-
|
|
89
|
-
"aria-live": "
|
|
90
|
-
"aria-relevant": "additions removals"
|
|
91
|
-
}), {
|
|
83
|
+
{
|
|
84
|
+
"aria-live": "assertive",
|
|
92
85
|
className: (0, import_typed_classname.clsx)("hds-error-message", className),
|
|
93
86
|
id,
|
|
94
87
|
children
|
|
95
|
-
}
|
|
88
|
+
}
|
|
96
89
|
);
|
|
97
90
|
}
|
|
98
91
|
|
|
@@ -106,16 +99,14 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
|
|
|
106
99
|
legendProps: _c = {}
|
|
107
100
|
} = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
|
|
108
101
|
legend,
|
|
109
|
-
children
|
|
110
|
-
_unstableAriaLiveOnErrorMessage = false
|
|
102
|
+
children
|
|
111
103
|
} = _e, rest = __objRest(_e, [
|
|
112
104
|
"className",
|
|
113
105
|
"style",
|
|
114
106
|
"errorMessage",
|
|
115
107
|
"legendProps",
|
|
116
108
|
"legend",
|
|
117
|
-
"children"
|
|
118
|
-
"_unstableAriaLiveOnErrorMessage"
|
|
109
|
+
"children"
|
|
119
110
|
]);
|
|
120
111
|
const errorMessageId = (0, import_react.useId)();
|
|
121
112
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
@@ -141,14 +132,7 @@ var Fieldset = (0, import_react.forwardRef)(function Fieldset2(_a, ref) {
|
|
|
141
132
|
})
|
|
142
133
|
),
|
|
143
134
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_typed_classname2.clsx)("hds-fieldset__input-wrapper"), children }),
|
|
144
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
145
|
-
ErrorMessage,
|
|
146
|
-
{
|
|
147
|
-
_unstableAriaLiveOnErrorMessage,
|
|
148
|
-
id: errorMessageId,
|
|
149
|
-
children: errorMessage
|
|
150
|
-
}
|
|
151
|
-
)
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
|
|
152
136
|
]
|
|
153
137
|
})
|
|
154
138
|
);
|
|
@@ -187,8 +171,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
|
|
|
187
171
|
label,
|
|
188
172
|
disabled,
|
|
189
173
|
readOnly,
|
|
190
|
-
children
|
|
191
|
-
_unstableAriaLiveOnErrorMessage = false
|
|
174
|
+
children
|
|
192
175
|
} = _e, rest = __objRest(_e, [
|
|
193
176
|
"id",
|
|
194
177
|
"className",
|
|
@@ -199,8 +182,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
|
|
|
199
182
|
"label",
|
|
200
183
|
"disabled",
|
|
201
184
|
"readOnly",
|
|
202
|
-
"children"
|
|
203
|
-
"_unstableAriaLiveOnErrorMessage"
|
|
185
|
+
"children"
|
|
204
186
|
]);
|
|
205
187
|
const errorMessageId = (0, import_react2.useId)();
|
|
206
188
|
const inputId = (0, import_react2.useId)();
|
|
@@ -212,7 +194,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
|
|
|
212
194
|
return (0, import_react2.cloneElement)(input, __spreadProps(__spreadValues({
|
|
213
195
|
"aria-describedby": errorMessage ? errorMessageId : void 0,
|
|
214
196
|
"aria-invalid": errorMessage ? true : void 0,
|
|
215
|
-
id: id
|
|
197
|
+
id: id != null ? id : inputId
|
|
216
198
|
}, input.props), {
|
|
217
199
|
className: (0, import_typed_classname3.clsx)("hds-input-group__input", input.props.className)
|
|
218
200
|
}));
|
|
@@ -237,7 +219,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
|
|
|
237
219
|
__spreadProps(__spreadValues({
|
|
238
220
|
className: (0, import_typed_classname3.clsx)("hds-input-group__label", labelClassName)
|
|
239
221
|
}, labelProps), {
|
|
240
|
-
htmlFor: id
|
|
222
|
+
htmlFor: id != null ? id : inputId,
|
|
241
223
|
children: label
|
|
242
224
|
})
|
|
243
225
|
),
|
|
@@ -250,14 +232,7 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
|
|
|
250
232
|
children: renderInput()
|
|
251
233
|
}
|
|
252
234
|
),
|
|
253
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
254
|
-
ErrorMessage,
|
|
255
|
-
{
|
|
256
|
-
_unstableAriaLiveOnErrorMessage,
|
|
257
|
-
id: errorMessageId,
|
|
258
|
-
children: errorMessage
|
|
259
|
-
}
|
|
260
|
-
)
|
|
235
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
|
|
261
236
|
]
|
|
262
237
|
})
|
|
263
238
|
);
|
|
@@ -266,33 +241,10 @@ var InputGroup = (0, import_react2.forwardRef)(function InputGroup2(_a, ref) {
|
|
|
266
241
|
// src/form/input/input.tsx
|
|
267
242
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
268
243
|
var Input = (0, import_react3.forwardRef)(function Input2(_a, ref) {
|
|
269
|
-
var _b = _a, {
|
|
270
|
-
className,
|
|
271
|
-
variant,
|
|
272
|
-
errorMessage,
|
|
273
|
-
labelProps,
|
|
274
|
-
label,
|
|
275
|
-
id,
|
|
276
|
-
style,
|
|
277
|
-
disabled,
|
|
278
|
-
readOnly,
|
|
279
|
-
_unstableAriaLiveOnErrorMessage
|
|
280
|
-
} = _b, rest = __objRest(_b, [
|
|
281
|
-
"className",
|
|
282
|
-
"variant",
|
|
283
|
-
"errorMessage",
|
|
284
|
-
"labelProps",
|
|
285
|
-
"label",
|
|
286
|
-
"id",
|
|
287
|
-
"style",
|
|
288
|
-
"disabled",
|
|
289
|
-
"readOnly",
|
|
290
|
-
"_unstableAriaLiveOnErrorMessage"
|
|
291
|
-
]);
|
|
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"]);
|
|
292
245
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
293
246
|
InputGroup,
|
|
294
247
|
{
|
|
295
|
-
_unstableAriaLiveOnErrorMessage,
|
|
296
248
|
className: (0, import_typed_classname4.clsx)("hds-input", className),
|
|
297
249
|
disabled,
|
|
298
250
|
errorMessage,
|
|
@@ -394,9 +346,9 @@ var Checkbox = (0, import_react6.forwardRef)(
|
|
|
394
346
|
className
|
|
395
347
|
),
|
|
396
348
|
children: [
|
|
397
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "checkbox" })),
|
|
398
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "hds-checkbox__checkmark" }),
|
|
399
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "hds-
|
|
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,
|
|
400
352
|
children
|
|
401
353
|
]
|
|
402
354
|
}
|
|
@@ -431,7 +383,7 @@ var Radiobutton = (0, import_react7.forwardRef)(
|
|
|
431
383
|
),
|
|
432
384
|
children: [
|
|
433
385
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
|
|
434
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hds-radiobutton__checkmark" }),
|
|
386
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
|
|
435
387
|
title ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "hds-radiobutton__title", children: title }) : null,
|
|
436
388
|
children
|
|
437
389
|
]
|
package/dist/form/index.mjs
CHANGED
|
@@ -2,31 +2,31 @@ import "../chunk-5OGUAHLN.mjs";
|
|
|
2
2
|
import "../chunk-ERFGFY3Q.mjs";
|
|
3
3
|
import {
|
|
4
4
|
Radiobutton
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZDZR5FVC.mjs";
|
|
6
6
|
import "../chunk-OPW2JS5I.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Select
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-LCFKBPZC.mjs";
|
|
10
10
|
import "../chunk-5NWYVPBZ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Textarea
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-OSCKYUZ3.mjs";
|
|
14
14
|
import "../chunk-JTHBBJZW.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Checkbox
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-SDR3TESK.mjs";
|
|
18
18
|
import "../chunk-OKWNTFU5.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Fieldset
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-JAHBNZTG.mjs";
|
|
22
22
|
import "../chunk-4RAMNETH.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Input
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-OX5NTX6M.mjs";
|
|
26
26
|
import "../chunk-S4F2KVFJ.mjs";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-CCNB2ABL.mjs";
|
|
28
28
|
import "../chunk-67OMX7FP.mjs";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-RBOWRO3L.mjs";
|
|
30
30
|
import "../chunk-FKR5F35B.mjs";
|
|
31
31
|
export {
|
|
32
32
|
Checkbox,
|
package/dist/form/input/index.js
CHANGED
|
@@ -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
|
-
|
|
93
|
-
"aria-live": "
|
|
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
|
|
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
|
|
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-
|
|
4
|
+
} from "../../chunk-OX5NTX6M.mjs";
|
|
5
5
|
import "../../chunk-S4F2KVFJ.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-CCNB2ABL.mjs";
|
|
7
7
|
import "../../chunk-67OMX7FP.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-RBOWRO3L.mjs";
|
|
9
9
|
import "../../chunk-FKR5F35B.mjs";
|
|
10
10
|
export {
|
|
11
11
|
Input
|
package/dist/form/input/input.js
CHANGED
|
@@ -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
|
-
|
|
86
|
-
"aria-live": "
|
|
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
|
|
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
|
|
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-
|
|
3
|
+
} from "../../chunk-OX5NTX6M.mjs";
|
|
4
4
|
import "../../chunk-S4F2KVFJ.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-CCNB2ABL.mjs";
|
|
6
6
|
import "../../chunk-67OMX7FP.mjs";
|
|
7
|
-
import "../../chunk-
|
|
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
|
-
|
|
82
|
-
"aria-live": "
|
|
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
|
|
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
|
|
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-
|
|
4
|
+
} from "../../chunk-CCNB2ABL.mjs";
|
|
5
5
|
import "../../chunk-67OMX7FP.mjs";
|
|
6
|
-
import "../../chunk-
|
|
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
|
-
|
|
76
|
-
"aria-live": "
|
|
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
|
|
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
|
|
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
|
);
|