@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.
@@ -1,58 +1,63 @@
1
1
  "use client"
2
2
  /* */
3
3
  import o from "react";
4
- import * as n from "react-aria-components";
5
- import m from "clsx";
4
+ import * as d from "react-aria-components";
5
+ import p from "clsx";
6
6
  import "./propsContext-Dx7WKmmM.js";
7
- import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
7
+ import { P as f } from "./PropsContextProvider-B6QiUIPM.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
- import { F as p } from "./FieldError-CQNWNYnn.js";
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 "@mittwald/react-tunnel";
14
- import { I as f } from "./IconCheck-C_3X4AJ_.js";
15
- const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-group--field-error", g = "flow--radio-group--custom-field-error", w = "flow--radio-group--field-description", r = {
16
- radioGroup: u,
17
- label: E,
18
- fieldError: N,
19
- customFieldError: g,
20
- fieldDescription: w
21
- }, T = (t) => {
22
- const { children: a, className: s, ...c } = t, i = m(r.radioGroup, s), l = {
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: r.label
26
+ className: e.label,
27
+ tunnelId: "label"
25
28
  },
26
29
  FieldDescription: {
27
- className: r.fieldDescription
30
+ className: e.fieldDescription,
31
+ tunnelId: "fieldDescription"
28
32
  },
29
33
  FieldError: {
30
- className: r.customFieldError
34
+ className: e.customFieldError,
35
+ tunnelId: "fieldError"
31
36
  }
32
37
  };
33
- return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(p, { className: r.fieldError }));
34
- }, b = "flow--radio-group--radio", k = "flow--radio-group--radio--content", h = "flow--radio-group--radio--icon", C = "flow--radio-group--radio--checkmark", F = "flow--radio-group--radio--label", e = {
35
- radio: b,
36
- content: k,
37
- icon: h,
38
- checkmark: C,
39
- label: F
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, ...c } = t, i = m(e.radio, s), l = {
46
+ const { children: a, className: s, ...i } = t, l = p(r.radio, s), n = {
42
47
  Icon: {
43
- className: e.icon
48
+ className: r.icon
44
49
  },
45
50
  Text: {
46
- className: e.label
51
+ className: r.label
47
52
  },
48
53
  Content: {
49
- className: e.content
54
+ className: r.content
50
55
  }
51
56
  };
52
- return /* @__PURE__ */ o.createElement(n.Radio, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(f, { className: e.checkmark }));
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
- T as RadioGroup,
57
- T as default
61
+ L as RadioGroup,
62
+ L as default
58
63
  };