@postenbring/hedwig-react 0.0.7 → 0.0.9
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/accordion/accordion-item-trigger.js +26 -12
- package/dist/accordion/accordion-item-trigger.mjs +1 -1
- package/dist/accordion/index.js +28 -14
- package/dist/accordion/index.mjs +2 -2
- package/dist/badge/index.js +2 -2
- package/dist/badge/index.mjs +1 -1
- package/dist/box/index.js +2 -2
- package/dist/box/index.mjs +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button/index.mjs +1 -1
- package/dist/chunk-2QSL2PSS.mjs +63 -0
- package/dist/chunk-5NDZ66M6.mjs +5 -0
- package/dist/{chunk-XFA34LPW.mjs → chunk-6AW5BEDP.mjs} +2 -2
- package/dist/chunk-BJANCH4F.mjs +5 -0
- package/dist/chunk-N3EFZW7T.mjs +5 -0
- package/dist/{chunk-IOOSUX5O.mjs → chunk-QOVAYDPH.mjs} +2 -2
- package/dist/chunk-R55SMUE7.mjs +5 -0
- package/dist/chunk-TES7CVGU.mjs +34 -0
- package/dist/chunk-XJ44O3HY.mjs +58 -0
- package/dist/chunk-Z36ETKOZ.mjs +5 -0
- package/dist/index.js +87 -82
- package/dist/index.mjs +14 -14
- package/dist/input/index.d.mts +3 -0
- package/dist/input/index.d.ts +3 -0
- package/dist/input/index.js +121 -0
- package/dist/input/index.mjs +13 -0
- package/dist/input/input.mjs +3 -53
- package/dist/link/index.d.mts +1 -1
- package/dist/link/index.d.ts +1 -1
- package/dist/link/index.js +22 -31
- package/dist/link/index.mjs +2 -2
- package/dist/link/link.d.mts +2 -10
- package/dist/link/link.d.ts +2 -10
- package/dist/link/link.js +20 -29
- package/dist/link/link.mjs +1 -1
- package/dist/list/index.js +2 -2
- package/dist/list/index.mjs +6 -6
- package/dist/message/index.js +2 -2
- package/dist/message/index.mjs +1 -1
- package/package.json +3 -4
- package/dist/chunk-53AQCCBR.mjs +0 -43
- package/dist/chunk-AYGPUYPZ.mjs +0 -5
- package/dist/chunk-CYW3DUD2.mjs +0 -5
- package/dist/chunk-ID5KKZMK.mjs +0 -5
- package/dist/chunk-IECCJVMN.mjs +0 -49
- package/dist/chunk-PCKWBORI.mjs +0 -5
- package/dist/chunk-VZNNGRKM.mjs +0 -5
|
@@ -69,12 +69,6 @@ var AccordionItemContext = (0, import_react.createContext)(null);
|
|
|
69
69
|
|
|
70
70
|
// src/accordion/accordion-item-trigger.tsx
|
|
71
71
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
72
|
-
function FaArrowDownButNotReally() {
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "v " });
|
|
74
|
-
}
|
|
75
|
-
function FaArrowUpButNotReally() {
|
|
76
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "^ " });
|
|
77
|
-
}
|
|
78
72
|
var AccordionTrigger = (0, import_react2.forwardRef)((_a, ref) => {
|
|
79
73
|
var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
|
|
80
74
|
const itemContext = (0, import_react2.useContext)(AccordionItemContext);
|
|
@@ -85,18 +79,38 @@ var AccordionTrigger = (0, import_react2.forwardRef)((_a, ref) => {
|
|
|
85
79
|
itemContext.setOpen(!itemContext.open);
|
|
86
80
|
onClick && onClick(e);
|
|
87
81
|
};
|
|
88
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
89
83
|
Component,
|
|
90
84
|
__spreadProps(__spreadValues({}, rest), {
|
|
91
85
|
"aria-expanded": itemContext.open,
|
|
92
|
-
className: (0, import_typed_classname.clsx)(
|
|
86
|
+
className: (0, import_typed_classname.clsx)(
|
|
87
|
+
"hds-accordion-item-trigger",
|
|
88
|
+
{ "hds-accordion-item-trigger--open": itemContext.open },
|
|
89
|
+
className
|
|
90
|
+
),
|
|
93
91
|
onClick: expandOrCollapse,
|
|
94
92
|
ref,
|
|
95
93
|
type: "button",
|
|
96
|
-
children:
|
|
97
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (0, import_typed_classname.clsx)("hds-accordion-item-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
+
"svg",
|
|
97
|
+
{
|
|
98
|
+
fill: "none",
|
|
99
|
+
height: "24",
|
|
100
|
+
viewBox: "0 0 24 24",
|
|
101
|
+
width: "24",
|
|
102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
103
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { className: "hds-accordion-item-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
104
|
+
"path",
|
|
105
|
+
{
|
|
106
|
+
className: "hds-accordion-item-trigger--icon-chevron_down",
|
|
107
|
+
d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z"
|
|
108
|
+
}
|
|
109
|
+
) })
|
|
110
|
+
}
|
|
111
|
+
) }),
|
|
112
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })
|
|
113
|
+
]
|
|
100
114
|
})
|
|
101
115
|
);
|
|
102
116
|
});
|
package/dist/accordion/index.js
CHANGED
|
@@ -55,8 +55,8 @@ __export(accordion_exports, {
|
|
|
55
55
|
AccordionTrigger: () => AccordionTrigger
|
|
56
56
|
});
|
|
57
57
|
module.exports = __toCommonJS(accordion_exports);
|
|
58
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
59
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
58
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
59
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
60
60
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
61
61
|
var import_accordion = require("@postenbring/hedwig-css/dist/accordion.css");
|
|
62
62
|
|
|
@@ -145,12 +145,6 @@ AccordionItem.displayName = "AccordionItem";
|
|
|
145
145
|
var import_react4 = require("react");
|
|
146
146
|
var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
147
147
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
148
|
-
function FaArrowDownButNotReally() {
|
|
149
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "v " });
|
|
150
|
-
}
|
|
151
|
-
function FaArrowUpButNotReally() {
|
|
152
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "^ " });
|
|
153
|
-
}
|
|
154
148
|
var AccordionTrigger = (0, import_react4.forwardRef)((_a, ref) => {
|
|
155
149
|
var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
|
|
156
150
|
const itemContext = (0, import_react4.useContext)(AccordionItemContext);
|
|
@@ -161,18 +155,38 @@ var AccordionTrigger = (0, import_react4.forwardRef)((_a, ref) => {
|
|
|
161
155
|
itemContext.setOpen(!itemContext.open);
|
|
162
156
|
onClick && onClick(e);
|
|
163
157
|
};
|
|
164
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.
|
|
158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
165
159
|
Component,
|
|
166
160
|
__spreadProps(__spreadValues({}, rest), {
|
|
167
161
|
"aria-expanded": itemContext.open,
|
|
168
|
-
className: (0, import_typed_classname3.clsx)(
|
|
162
|
+
className: (0, import_typed_classname3.clsx)(
|
|
163
|
+
"hds-accordion-item-trigger",
|
|
164
|
+
{ "hds-accordion-item-trigger--open": itemContext.open },
|
|
165
|
+
className
|
|
166
|
+
),
|
|
169
167
|
onClick: expandOrCollapse,
|
|
170
168
|
ref,
|
|
171
169
|
type: "button",
|
|
172
|
-
children:
|
|
173
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: (0, import_typed_classname3.clsx)("hds-accordion-item-trigger--icon"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
172
|
+
"svg",
|
|
173
|
+
{
|
|
174
|
+
fill: "none",
|
|
175
|
+
height: "24",
|
|
176
|
+
viewBox: "0 0 24 24",
|
|
177
|
+
width: "24",
|
|
178
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
179
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { className: "hds-accordion-item-trigger--icon-chevron", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
180
|
+
"path",
|
|
181
|
+
{
|
|
182
|
+
className: "hds-accordion-item-trigger--icon-chevron_down",
|
|
183
|
+
d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z"
|
|
184
|
+
}
|
|
185
|
+
) })
|
|
186
|
+
}
|
|
187
|
+
) }),
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children })
|
|
189
|
+
]
|
|
176
190
|
})
|
|
177
191
|
);
|
|
178
192
|
});
|
package/dist/accordion/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-Z36ETKOZ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
AccordionContent
|
|
4
4
|
} from "../chunk-J7U4Z726.mjs";
|
|
5
5
|
import {
|
|
6
6
|
AccordionTrigger
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-2QSL2PSS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AccordionItem
|
|
10
10
|
} from "../chunk-L7DYK6OS.mjs";
|
package/dist/badge/index.js
CHANGED
|
@@ -55,8 +55,8 @@ __export(badge_exports, {
|
|
|
55
55
|
WhiteBadge: () => WhiteBadge
|
|
56
56
|
});
|
|
57
57
|
module.exports = __toCommonJS(badge_exports);
|
|
58
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
59
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
58
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
59
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
60
60
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
61
61
|
var import_badge = require("@postenbring/hedwig-css/dist/badge.css");
|
|
62
62
|
|
package/dist/badge/index.mjs
CHANGED
package/dist/box/index.js
CHANGED
|
@@ -53,8 +53,8 @@ __export(box_exports, {
|
|
|
53
53
|
BoxCloseButton: () => BoxCloseButton
|
|
54
54
|
});
|
|
55
55
|
module.exports = __toCommonJS(box_exports);
|
|
56
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
57
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
56
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
57
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
58
58
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
59
59
|
var import_box = require("@postenbring/hedwig-css/dist/box.css");
|
|
60
60
|
|
package/dist/box/index.mjs
CHANGED
package/dist/button/index.js
CHANGED
|
@@ -54,8 +54,8 @@ __export(button_exports, {
|
|
|
54
54
|
SecondaryButton: () => SecondaryButton
|
|
55
55
|
});
|
|
56
56
|
module.exports = __toCommonJS(button_exports);
|
|
57
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
58
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
57
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
58
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
59
59
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
60
60
|
var import_button = require("@postenbring/hedwig-css/dist/button.css");
|
|
61
61
|
|
package/dist/button/index.mjs
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AccordionItemContext
|
|
3
|
+
} from "./chunk-2V6SWZ5G.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadProps,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
9
|
+
|
|
10
|
+
// src/accordion/accordion-item-trigger.tsx
|
|
11
|
+
import { forwardRef, useContext } from "react";
|
|
12
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
var AccordionTrigger = forwardRef((_a, ref) => {
|
|
15
|
+
var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
|
|
16
|
+
const itemContext = useContext(AccordionItemContext);
|
|
17
|
+
if (itemContext === null) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const expandOrCollapse = (e) => {
|
|
21
|
+
itemContext.setOpen(!itemContext.open);
|
|
22
|
+
onClick && onClick(e);
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ jsxs(
|
|
25
|
+
Component,
|
|
26
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
27
|
+
"aria-expanded": itemContext.open,
|
|
28
|
+
className: clsx(
|
|
29
|
+
"hds-accordion-item-trigger",
|
|
30
|
+
{ "hds-accordion-item-trigger--open": itemContext.open },
|
|
31
|
+
className
|
|
32
|
+
),
|
|
33
|
+
onClick: expandOrCollapse,
|
|
34
|
+
ref,
|
|
35
|
+
type: "button",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx("span", { className: clsx("hds-accordion-item-trigger--icon"), children: /* @__PURE__ */ jsx(
|
|
38
|
+
"svg",
|
|
39
|
+
{
|
|
40
|
+
fill: "none",
|
|
41
|
+
height: "24",
|
|
42
|
+
viewBox: "0 0 24 24",
|
|
43
|
+
width: "24",
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
children: /* @__PURE__ */ jsx("g", { className: "hds-accordion-item-trigger--icon-chevron", children: /* @__PURE__ */ jsx(
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
className: "hds-accordion-item-trigger--icon-chevron_down",
|
|
49
|
+
d: "M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z"
|
|
50
|
+
}
|
|
51
|
+
) })
|
|
52
|
+
}
|
|
53
|
+
) }),
|
|
54
|
+
/* @__PURE__ */ jsx("span", { children })
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
);
|
|
58
|
+
});
|
|
59
|
+
AccordionTrigger.displayName = "AccordionTrigger";
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
AccordionTrigger
|
|
63
|
+
};
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "./chunk-X4D24ZRP.mjs";
|
|
6
6
|
|
|
7
7
|
// src/message/index.tsx
|
|
8
|
-
import "@postenbring/hedwig-
|
|
9
|
-
import "@postenbring/hedwig-
|
|
8
|
+
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
9
|
+
import "@postenbring/hedwig-css/dist/tokens.css";
|
|
10
10
|
import "@postenbring/hedwig-css/dist/base.css";
|
|
11
11
|
import "@postenbring/hedwig-css/dist/box.css";
|
|
12
12
|
import "@postenbring/hedwig-css/dist/message.css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/list/index.tsx
|
|
2
|
-
import "@postenbring/hedwig-
|
|
3
|
-
import "@postenbring/hedwig-
|
|
2
|
+
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
3
|
+
import "@postenbring/hedwig-css/dist/tokens.css";
|
|
4
4
|
import "@postenbring/hedwig-css/dist/base.css";
|
|
5
5
|
import "@postenbring/hedwig-css/dist/description-list.css";
|
|
6
6
|
import "@postenbring/hedwig-css/dist/list.css";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
6
|
+
|
|
7
|
+
// src/link/link.tsx
|
|
8
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
9
|
+
import { forwardRef } from "react";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var Link = forwardRef(
|
|
12
|
+
(_a, ref) => {
|
|
13
|
+
var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
Component,
|
|
16
|
+
__spreadProps(__spreadValues({
|
|
17
|
+
className: clsx(
|
|
18
|
+
"hds-link",
|
|
19
|
+
variant !== "underline" && `hds-link--${variant}`,
|
|
20
|
+
size !== "medium" && `hds-link--${size}`,
|
|
21
|
+
className
|
|
22
|
+
),
|
|
23
|
+
ref
|
|
24
|
+
}, rest), {
|
|
25
|
+
children
|
|
26
|
+
})
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
Link.displayName = "Link";
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
Link
|
|
34
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
6
|
+
|
|
7
|
+
// src/input/input.tsx
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function Input(_a) {
|
|
12
|
+
var _b = _a, {
|
|
13
|
+
variant = "default",
|
|
14
|
+
errorMessage,
|
|
15
|
+
labelProps,
|
|
16
|
+
label,
|
|
17
|
+
id,
|
|
18
|
+
className
|
|
19
|
+
} = _b, rest = __objRest(_b, [
|
|
20
|
+
"variant",
|
|
21
|
+
"errorMessage",
|
|
22
|
+
"labelProps",
|
|
23
|
+
"label",
|
|
24
|
+
"id",
|
|
25
|
+
"className"
|
|
26
|
+
]);
|
|
27
|
+
const errorMessageId = React.useId();
|
|
28
|
+
const inputId = React.useId();
|
|
29
|
+
return /* @__PURE__ */ jsxs(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: clsx(
|
|
33
|
+
"hds-input",
|
|
34
|
+
{
|
|
35
|
+
[`hds-input--${variant}`]: variant,
|
|
36
|
+
"hds-input--error": errorMessage
|
|
37
|
+
},
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsx("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
|
|
42
|
+
!!errorMessage && /* @__PURE__ */ jsx("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
"input",
|
|
45
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
46
|
+
"aria-describedby": errorMessageId,
|
|
47
|
+
className: "hds-input__input",
|
|
48
|
+
id: id || inputId
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
Input
|
|
58
|
+
};
|