@mittwald/flow-react-components 0.1.0-alpha.51 → 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/Heading.js CHANGED
@@ -1,27 +1,28 @@
1
1
  "use client"
2
2
  /* */
3
- import e from "react";
4
- import l from "clsx";
5
- import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
6
- import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
3
+ import o from "react";
4
+ import c from "clsx";
5
+ import { C as l } from "./ClearPropsContext-CD1-9TZA.js";
6
+ import { P as p } from "./PropsContextProvider-B6QiUIPM.js";
7
7
  import "@react-aria/utils";
8
8
  import "./propsContext-Dx7WKmmM.js";
9
9
  import "remeda";
10
- import { f } from "./flowComponent-92d7kP4i.js";
11
- const h = "flow--heading", g = "flow--heading--icon", o = {
12
- heading: h,
13
- icon: g
14
- }, H = f("Heading", (t) => {
15
- const { children: n, className: r, level: s = 2, ...a } = t, i = l(o.heading, r), c = `h${s}`, m = {
10
+ import { f as d } from "./flowComponent-92d7kP4i.js";
11
+ import * as f from "react-aria-components";
12
+ const g = "flow--heading", h = "flow--heading--icon", e = {
13
+ heading: g,
14
+ icon: h
15
+ }, v = d("Heading", (t) => {
16
+ const { children: r, className: n, level: a = 2, ...s } = t, i = c(e.heading, n), m = {
16
17
  Icon: {
17
18
  "aria-hidden": !0,
18
19
  size: "s",
19
- className: o.icon
20
+ className: e.icon
20
21
  }
21
22
  };
22
- return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(c, { className: i, ...a }, /* @__PURE__ */ e.createElement(d, { props: m }, n)));
23
+ return /* @__PURE__ */ o.createElement(l, null, /* @__PURE__ */ o.createElement(f.Heading, { level: a, className: i, ...s }, /* @__PURE__ */ o.createElement(p, { props: m }, r)));
23
24
  });
24
25
  export {
25
- H as Heading,
26
- H as default
26
+ v as Heading,
27
+ v as default
27
28
  };
@@ -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
  };