@postenbring/hedwig-react 0.0.48 → 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.
- 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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RBOWRO3L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -19,16 +19,14 @@ var Fieldset = forwardRef(function Fieldset2(_a, ref) {
|
|
|
19
19
|
legendProps: _c = {}
|
|
20
20
|
} = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
|
|
21
21
|
legend,
|
|
22
|
-
children
|
|
23
|
-
_unstableAriaLiveOnErrorMessage = false
|
|
22
|
+
children
|
|
24
23
|
} = _e, rest = __objRest(_e, [
|
|
25
24
|
"className",
|
|
26
25
|
"style",
|
|
27
26
|
"errorMessage",
|
|
28
27
|
"legendProps",
|
|
29
28
|
"legend",
|
|
30
|
-
"children"
|
|
31
|
-
"_unstableAriaLiveOnErrorMessage"
|
|
29
|
+
"children"
|
|
32
30
|
]);
|
|
33
31
|
const errorMessageId = useId();
|
|
34
32
|
return /* @__PURE__ */ jsxs(
|
|
@@ -54,14 +52,7 @@ var Fieldset = forwardRef(function Fieldset2(_a, ref) {
|
|
|
54
52
|
})
|
|
55
53
|
),
|
|
56
54
|
/* @__PURE__ */ jsx("div", { className: clsx("hds-fieldset__input-wrapper"), children }),
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
ErrorMessage,
|
|
59
|
-
{
|
|
60
|
-
_unstableAriaLiveOnErrorMessage,
|
|
61
|
-
id: errorMessageId,
|
|
62
|
-
children: errorMessage
|
|
63
|
-
}
|
|
64
|
-
)
|
|
55
|
+
/* @__PURE__ */ jsx(ErrorMessage, { id: errorMessageId, children: errorMessage })
|
|
65
56
|
]
|
|
66
57
|
})
|
|
67
58
|
);
|
|
@@ -29079,7 +29079,7 @@ function RenderButton(_a) {
|
|
|
29079
29079
|
__spreadProps(__spreadValues({
|
|
29080
29080
|
className: clsx("hds-navbar__button", className),
|
|
29081
29081
|
onClick: toggleOpen,
|
|
29082
|
-
ref: ref
|
|
29082
|
+
ref: ref != null ? ref : innerRef,
|
|
29083
29083
|
style,
|
|
29084
29084
|
title,
|
|
29085
29085
|
type: "button"
|
|
@@ -29120,8 +29120,8 @@ var NavbarExpandableMenuTrigger = forwardRef(
|
|
|
29120
29120
|
const root = (0, import_client.createRoot)(container);
|
|
29121
29121
|
root.render(element);
|
|
29122
29122
|
const getWidth = () => {
|
|
29123
|
-
var _a2;
|
|
29124
|
-
callback(((_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth)
|
|
29123
|
+
var _a2, _b2;
|
|
29124
|
+
callback((_b2 = (_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0);
|
|
29125
29125
|
root.unmount();
|
|
29126
29126
|
c.removeChild(container);
|
|
29127
29127
|
};
|
|
@@ -8,12 +8,10 @@ import {
|
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var Card = forwardRef(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
);
|
|
11
|
+
var Card = forwardRef((_a, ref) => {
|
|
12
|
+
var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
13
|
+
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, rest), { className: clsx("hds-card", className), ref, children }));
|
|
14
|
+
});
|
|
17
15
|
Card.displayName = "Card";
|
|
18
16
|
var CardMedia = forwardRef(
|
|
19
17
|
(_a, ref) => {
|
|
@@ -42,19 +40,17 @@ var CardBody = forwardRef(
|
|
|
42
40
|
}
|
|
43
41
|
);
|
|
44
42
|
CardBody.displayName = "Card.Body";
|
|
45
|
-
var CardBodyHeader = forwardRef(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
);
|
|
43
|
+
var CardBodyHeader = forwardRef((_a, ref) => {
|
|
44
|
+
var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
Component,
|
|
47
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
48
|
+
className: clsx("hds-card__body-header", className),
|
|
49
|
+
ref,
|
|
50
|
+
children
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
});
|
|
58
54
|
CardBodyHeader.displayName = "Card.Body.Header";
|
|
59
55
|
var CardBodyHeaderOverline = forwardRef((_a, ref) => {
|
|
60
56
|
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
@@ -68,19 +64,17 @@ var CardBodyHeaderOverline = forwardRef((_a, ref) => {
|
|
|
68
64
|
);
|
|
69
65
|
});
|
|
70
66
|
CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
|
|
71
|
-
var CardBodyHeaderTitle = forwardRef(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
);
|
|
67
|
+
var CardBodyHeaderTitle = forwardRef((_a, ref) => {
|
|
68
|
+
var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
70
|
+
Component,
|
|
71
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
72
|
+
className: clsx("hds-card__body-header-title", className),
|
|
73
|
+
ref,
|
|
74
|
+
children
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
});
|
|
84
78
|
CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
85
79
|
var CardBodyDescription = forwardRef(
|
|
86
80
|
(_a, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InputGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CCNB2ABL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -12,33 +12,10 @@ import { forwardRef } from "react";
|
|
|
12
12
|
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
var Input = forwardRef(function Input2(_a, ref) {
|
|
15
|
-
var _b = _a, {
|
|
16
|
-
className,
|
|
17
|
-
variant,
|
|
18
|
-
errorMessage,
|
|
19
|
-
labelProps,
|
|
20
|
-
label,
|
|
21
|
-
id,
|
|
22
|
-
style,
|
|
23
|
-
disabled,
|
|
24
|
-
readOnly,
|
|
25
|
-
_unstableAriaLiveOnErrorMessage
|
|
26
|
-
} = _b, rest = __objRest(_b, [
|
|
27
|
-
"className",
|
|
28
|
-
"variant",
|
|
29
|
-
"errorMessage",
|
|
30
|
-
"labelProps",
|
|
31
|
-
"label",
|
|
32
|
-
"id",
|
|
33
|
-
"style",
|
|
34
|
-
"disabled",
|
|
35
|
-
"readOnly",
|
|
36
|
-
"_unstableAriaLiveOnErrorMessage"
|
|
37
|
-
]);
|
|
15
|
+
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"]);
|
|
38
16
|
return /* @__PURE__ */ jsx(
|
|
39
17
|
InputGroup,
|
|
40
18
|
{
|
|
41
|
-
_unstableAriaLiveOnErrorMessage,
|
|
42
19
|
className: clsx("hds-input", className),
|
|
43
20
|
disabled,
|
|
44
21
|
errorMessage,
|
|
@@ -29,6 +29,9 @@ var BaseButton = forwardRef(
|
|
|
29
29
|
"icon",
|
|
30
30
|
"className"
|
|
31
31
|
]);
|
|
32
|
+
if (fill === "outlined") {
|
|
33
|
+
console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
|
|
34
|
+
}
|
|
32
35
|
return /* @__PURE__ */ jsxs(
|
|
33
36
|
Component,
|
|
34
37
|
__spreadProps(__spreadValues({
|
|
@@ -37,8 +40,8 @@ var BaseButton = forwardRef(
|
|
|
37
40
|
`hds-button--${size}`,
|
|
38
41
|
{
|
|
39
42
|
[`hds-button--${variant}`]: fill === "contained",
|
|
40
|
-
[`hds-button--outline-${variant}`]: fill === "outlined",
|
|
41
|
-
"hds-button--full": fullWidth
|
|
43
|
+
[`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
|
|
44
|
+
"hds-button--full": fullWidth,
|
|
42
45
|
"hds-button--mobile-full": fullWidth === "mobile",
|
|
43
46
|
"hds-button--icon-only": icon && !children
|
|
44
47
|
},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/form/error-message/error-message.tsx
|
|
2
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
function ErrorMessage({ children, id, className }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
"aria-live": "assertive",
|
|
9
|
+
className: clsx("hds-error-message", className),
|
|
10
|
+
id,
|
|
11
|
+
children
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
ErrorMessage
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UnorderedList
|
|
3
|
+
} from "./chunk-BEXOLUXV.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "./chunk-FKR5F35B.mjs";
|
|
8
|
+
|
|
9
|
+
// src/list/link-list.tsx
|
|
10
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
function LinkList(_a) {
|
|
13
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
UnorderedList,
|
|
16
|
+
__spreadValues({
|
|
17
|
+
className: clsx("hds-list--link-list", className),
|
|
18
|
+
listStyle: "no-bullets"
|
|
19
|
+
}, rest)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
LinkList.displayName = "LinkList";
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
LinkList
|
|
26
|
+
};
|
|
@@ -23,9 +23,9 @@ var Checkbox = forwardRef(
|
|
|
23
23
|
className
|
|
24
24
|
),
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ jsx("input", __spreadProps(__spreadValues({}, rest), { ref, type: "checkbox" })),
|
|
27
|
-
/* @__PURE__ */ jsx("span", { className: "hds-checkbox__checkmark" }),
|
|
28
|
-
title ? /* @__PURE__ */ jsx("p", { className: "hds-
|
|
26
|
+
/* @__PURE__ */ jsx("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
|
|
27
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
|
|
28
|
+
title ? /* @__PURE__ */ jsx("p", { className: "hds-checkbox__title", children: title }) : null,
|
|
29
29
|
children
|
|
30
30
|
]
|
|
31
31
|
}
|
|
@@ -24,7 +24,7 @@ var Radiobutton = forwardRef(
|
|
|
24
24
|
),
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ jsx("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
|
|
27
|
-
/* @__PURE__ */ jsx("span", { className: "hds-radiobutton__checkmark" }),
|
|
27
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
|
|
28
28
|
title ? /* @__PURE__ */ jsx("p", { className: "hds-radiobutton__title", children: title }) : null,
|
|
29
29
|
children
|
|
30
30
|
]
|
|
@@ -70,9 +70,9 @@ var Checkbox = (0, import_react.forwardRef)(
|
|
|
70
70
|
className
|
|
71
71
|
),
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "checkbox" })),
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-checkbox__checkmark" }),
|
|
75
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "hds-
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
|
|
75
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "hds-checkbox__title", children: title }) : null,
|
|
76
76
|
children
|
|
77
77
|
]
|
|
78
78
|
}
|
|
@@ -76,9 +76,9 @@ var Checkbox = (0, import_react.forwardRef)(
|
|
|
76
76
|
className
|
|
77
77
|
),
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "checkbox" })),
|
|
80
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-checkbox__checkmark" }),
|
|
81
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "hds-
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
|
|
81
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "hds-checkbox__title", children: title }) : null,
|
|
82
82
|
children
|
|
83
83
|
]
|
|
84
84
|
}
|
|
@@ -5,8 +5,7 @@ interface ErrorMessageProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
id: string;
|
|
7
7
|
className?: string;
|
|
8
|
-
_unstableAriaLiveOnErrorMessage?: boolean;
|
|
9
8
|
}
|
|
10
|
-
declare function ErrorMessage({ children, id, className
|
|
9
|
+
declare function ErrorMessage({ children, id, className }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
11
10
|
|
|
12
11
|
export { ErrorMessage, type ErrorMessageProps };
|
|
@@ -5,8 +5,7 @@ interface ErrorMessageProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
id: string;
|
|
7
7
|
className?: string;
|
|
8
|
-
_unstableAriaLiveOnErrorMessage?: boolean;
|
|
9
8
|
}
|
|
10
|
-
declare function ErrorMessage({ children, id, className
|
|
9
|
+
declare function ErrorMessage({ children, id, className }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
11
10
|
|
|
12
11
|
export { ErrorMessage, type ErrorMessageProps };
|
|
@@ -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 });
|
|
@@ -42,22 +25,15 @@ __export(error_message_exports, {
|
|
|
42
25
|
module.exports = __toCommonJS(error_message_exports);
|
|
43
26
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
44
27
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
function ErrorMessage({
|
|
46
|
-
children,
|
|
47
|
-
id,
|
|
48
|
-
className,
|
|
49
|
-
_unstableAriaLiveOnErrorMessage
|
|
50
|
-
}) {
|
|
28
|
+
function ErrorMessage({ children, id, className }) {
|
|
51
29
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
30
|
"div",
|
|
53
|
-
|
|
54
|
-
"aria-live": "
|
|
55
|
-
"aria-relevant": "additions removals"
|
|
56
|
-
}), {
|
|
31
|
+
{
|
|
32
|
+
"aria-live": "assertive",
|
|
57
33
|
className: (0, import_typed_classname.clsx)("hds-error-message", className),
|
|
58
34
|
id,
|
|
59
35
|
children
|
|
60
|
-
}
|
|
36
|
+
}
|
|
61
37
|
);
|
|
62
38
|
}
|
|
63
39
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -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
|
-
|
|
60
|
-
"aria-live": "
|
|
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:
|
|
@@ -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
|
|
|
@@ -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-
|
|
3
|
+
} from "../../chunk-JAHBNZTG.mjs";
|
|
4
4
|
import "../../chunk-67OMX7FP.mjs";
|
|
5
|
-
import "../../chunk-
|
|
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
|
-
|
|
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
|
|
|
@@ -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
|
);
|