@mittwald/flow-react-components 0.1.0-alpha.52 → 0.1.0-alpha.53
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/RadioGroup.js +36 -31
- package/dist/styles.css +1 -1
- package/package.json +19 -19
package/dist/RadioGroup.js
CHANGED
|
@@ -1,58 +1,63 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
4
|
+
import * as d from "react-aria-components";
|
|
5
|
+
import p from "clsx";
|
|
6
6
|
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
-
import { P as
|
|
7
|
+
import { P as f } from "./PropsContextProvider-B6QiUIPM.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { F as
|
|
10
|
+
import { F as u } from "./FieldError-CQNWNYnn.js";
|
|
11
|
+
import { TunnelProvider as E, TunnelExit as c } from "@mittwald/react-tunnel";
|
|
12
|
+
import { s as e } from "./FormField.module-DHK6nIcD.js";
|
|
11
13
|
import "@tabler/icons-react";
|
|
12
14
|
import "html-react-parser";
|
|
13
|
-
import "
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
import { I as N } from "./IconCheck-C_3X4AJ_.js";
|
|
16
|
+
const k = "flow--radio-group", b = "flow--radio-group--radio-options", m = {
|
|
17
|
+
radioGroup: k,
|
|
18
|
+
radioOptions: b
|
|
19
|
+
}, L = (t) => {
|
|
20
|
+
const { children: a, className: s, ...i } = t, l = p(
|
|
21
|
+
m.radioGroup,
|
|
22
|
+
e.formField,
|
|
23
|
+
s
|
|
24
|
+
), n = {
|
|
23
25
|
Label: {
|
|
24
|
-
className:
|
|
26
|
+
className: e.label,
|
|
27
|
+
tunnelId: "label"
|
|
25
28
|
},
|
|
26
29
|
FieldDescription: {
|
|
27
|
-
className:
|
|
30
|
+
className: e.fieldDescription,
|
|
31
|
+
tunnelId: "fieldDescription"
|
|
28
32
|
},
|
|
29
33
|
FieldError: {
|
|
30
|
-
className:
|
|
34
|
+
className: e.customFieldError,
|
|
35
|
+
tunnelId: "fieldError"
|
|
31
36
|
}
|
|
32
37
|
};
|
|
33
|
-
return /* @__PURE__ */ o.createElement(
|
|
34
|
-
},
|
|
35
|
-
radio:
|
|
36
|
-
content:
|
|
37
|
-
icon:
|
|
38
|
-
checkmark:
|
|
39
|
-
label:
|
|
38
|
+
return /* @__PURE__ */ o.createElement(d.RadioGroup, { ...i, className: l }, /* @__PURE__ */ o.createElement(f, { props: n }, /* @__PURE__ */ o.createElement(E, null, /* @__PURE__ */ o.createElement(c, { id: "label" }), /* @__PURE__ */ o.createElement("div", { className: m.radioOptions }, a), /* @__PURE__ */ o.createElement(c, { id: "fieldDescription" }), /* @__PURE__ */ o.createElement(c, { id: "fieldError" }))), /* @__PURE__ */ o.createElement(u, { className: e.fieldError }));
|
|
39
|
+
}, g = "flow--radio-group--radio", h = "flow--radio-group--radio--content", w = "flow--radio-group--radio--icon", x = "flow--radio-group--radio--checkmark", C = "flow--radio-group--radio--label", r = {
|
|
40
|
+
radio: g,
|
|
41
|
+
content: h,
|
|
42
|
+
icon: w,
|
|
43
|
+
checkmark: x,
|
|
44
|
+
label: C
|
|
40
45
|
}, j = (t) => {
|
|
41
|
-
const { children: a, className: s, ...
|
|
46
|
+
const { children: a, className: s, ...i } = t, l = p(r.radio, s), n = {
|
|
42
47
|
Icon: {
|
|
43
|
-
className:
|
|
48
|
+
className: r.icon
|
|
44
49
|
},
|
|
45
50
|
Text: {
|
|
46
|
-
className:
|
|
51
|
+
className: r.label
|
|
47
52
|
},
|
|
48
53
|
Content: {
|
|
49
|
-
className:
|
|
54
|
+
className: r.content
|
|
50
55
|
}
|
|
51
56
|
};
|
|
52
|
-
return /* @__PURE__ */ o.createElement(
|
|
57
|
+
return /* @__PURE__ */ o.createElement(d.Radio, { ...i, className: l }, /* @__PURE__ */ o.createElement(f, { props: n }, a), /* @__PURE__ */ o.createElement(N, { className: r.checkmark }));
|
|
53
58
|
};
|
|
54
59
|
export {
|
|
55
60
|
j as Radio,
|
|
56
|
-
|
|
57
|
-
|
|
61
|
+
L as RadioGroup,
|
|
62
|
+
L as default
|
|
58
63
|
};
|