@mittwald/flow-react-components 0.1.0-alpha.243 → 0.1.0-alpha.245

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.
@@ -8,11 +8,11 @@ import { P as u } from "./PropsContextProvider-C6Z4XGp6.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import { TunnelProvider as p, TunnelExit as f } from "@mittwald/react-tunnel";
11
- const I = "flow--section--section-header", g = "flow--section--section-header--actions", l = {
11
+ const I = "flow--section--section-header", g = "flow--section--section-header--actions", a = {
12
12
  sectionHeader: I,
13
13
  actions: g
14
14
  }, E = (n) => {
15
- const { children: t, className: o } = n, r = m(l.sectionHeader, o), s = {
15
+ const { children: t, className: o } = n, r = m(a.sectionHeader, o), s = {
16
16
  Switch: {
17
17
  labelPosition: "leading",
18
18
  tunnelId: "actions"
@@ -47,24 +47,26 @@ const I = "flow--section--section-header", g = "flow--section--section-header--a
47
47
  },
48
48
  Heading: {
49
49
  level: 2,
50
- className: l.heading,
51
- levelVisual: 4
50
+ className: a.heading
51
+ },
52
+ Link: {
53
+ tunnelId: "actions"
52
54
  }
53
55
  };
54
- return /* @__PURE__ */ e.createElement("header", { className: r }, /* @__PURE__ */ e.createElement(u, { props: s }, /* @__PURE__ */ e.createElement(p, null, t, /* @__PURE__ */ e.createElement("div", { className: l.actions }, /* @__PURE__ */ e.createElement(f, { id: "actions" })))));
56
+ return /* @__PURE__ */ e.createElement("header", { className: r }, /* @__PURE__ */ e.createElement(u, { props: s }, /* @__PURE__ */ e.createElement(p, null, t, /* @__PURE__ */ e.createElement("div", { className: a.actions }, /* @__PURE__ */ e.createElement(f, { id: "actions" })))));
55
57
  }, C = d("Header", (n) => {
56
58
  const {
57
59
  children: t,
58
60
  refProp: o,
59
61
  elementType: r = "header",
60
62
  renderSectionHeader: s,
61
- className: a,
63
+ className: l,
62
64
  ...c
63
65
  } = n;
64
66
  if (s)
65
- return /* @__PURE__ */ e.createElement(E, { className: a }, t);
67
+ return /* @__PURE__ */ e.createElement(E, { className: l }, t);
66
68
  const i = r;
67
- return /* @__PURE__ */ e.createElement(i, { ...c, className: a, ref: o }, t);
69
+ return /* @__PURE__ */ e.createElement(i, { ...c, className: l, ref: o }, t);
68
70
  });
69
71
  export {
70
72
  C as H
package/dist/Header.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { H as e } from "./Header-BC3V_ugP.js";
3
+ import { H as e } from "./Header-B3rZAeBI.js";
4
4
  export {
5
5
  e as Header,
6
6
  e as default
@@ -0,0 +1,51 @@
1
+ "use client"
2
+ /* */
3
+ import e from "react";
4
+ import g from "clsx";
5
+ import { C as h } from "./ClearPropsContext-CUvsbMn8.js";
6
+ import { P as f } from "./PropsContextProvider-C6Z4XGp6.js";
7
+ import "@react-aria/utils";
8
+ import "./propsContext-DzAKlmhS.js";
9
+ import "remeda";
10
+ import { f as p } from "./flowComponent-DT1Ap-ot.js";
11
+ import * as x from "react-aria-components";
12
+ const w = "flow--heading", C = "flow--heading--dark", N = "flow--heading--light", P = "flow--heading--icon", u = "flow--heading--heading-content", E = "flow--heading--xs", H = "flow--heading--s", k = "flow--heading--m", v = "flow--heading--l", y = "flow--heading--xl", z = "flow--heading--xxl", o = {
13
+ heading: w,
14
+ dark: C,
15
+ light: N,
16
+ icon: P,
17
+ headingContent: u,
18
+ xs: E,
19
+ s: H,
20
+ m: k,
21
+ l: v,
22
+ xl: y,
23
+ xxl: z
24
+ }, q = p("Heading", (t) => {
25
+ const {
26
+ children: a,
27
+ className: s,
28
+ level: i = 2,
29
+ color: r = "primary",
30
+ size: n,
31
+ refProp: l,
32
+ ...c
33
+ } = t, d = g(
34
+ o.heading,
35
+ n && o[n],
36
+ o[r],
37
+ s
38
+ ), m = {
39
+ Icon: {
40
+ "aria-hidden": !0,
41
+ className: o.icon
42
+ },
43
+ StatusBadge: {
44
+ wrapWith: /* @__PURE__ */ e.createElement("div", { className: o.headingContent })
45
+ }
46
+ };
47
+ return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(x.Heading, { level: i, className: d, ...c, ref: l }, /* @__PURE__ */ e.createElement(f, { props: m }, a)));
48
+ });
49
+ export {
50
+ q as H
51
+ };
package/dist/Heading.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { H as e } from "./Heading-CYASkLvk.js";
3
+ import { H as e } from "./Heading-CIwOfNhx.js";
4
4
  export {
5
5
  e as Heading,
6
6
  e as default
@@ -19,10 +19,11 @@ const w = "flow--inline-alert", g = "flow--inline-alert--status-icon", C = "flow
19
19
  danger: x,
20
20
  success: A
21
21
  }, b = d("InlineAlert", (o) => {
22
- const { children: s, className: l, status: t = "info", refProp: r, ...a } = o, i = p(n.inlineAlert, n[t], l), c = {
22
+ const { children: s, className: l, status: t = "info", refProp: r, ...i } = o, a = p(n.inlineAlert, n[t], l), c = {
23
23
  Heading: {
24
24
  className: n.heading,
25
- level: 3
25
+ level: 3,
26
+ size: "s"
26
27
  },
27
28
  Content: {
28
29
  className: n.content,
@@ -31,7 +32,7 @@ const w = "flow--inline-alert", g = "flow--inline-alert--status-icon", C = "flow
31
32
  }
32
33
  }
33
34
  };
34
- return /* @__PURE__ */ e.createElement(m, null, /* @__PURE__ */ e.createElement("aside", { ...a, className: i, ref: r }, /* @__PURE__ */ e.createElement(u, { className: n.statusIcon, status: t }), /* @__PURE__ */ e.createElement(f, { props: c }, s)));
35
+ return /* @__PURE__ */ e.createElement(m, null, /* @__PURE__ */ e.createElement("aside", { ...i, className: a, ref: r }, /* @__PURE__ */ e.createElement(u, { className: n.statusIcon, status: t }), /* @__PURE__ */ e.createElement(f, { props: c }, s)));
35
36
  });
36
37
  export {
37
38
  b as InlineAlert,
package/dist/List.js CHANGED
@@ -31,8 +31,8 @@ import { makeObservable as he, observable as ut, computed as dt, action as U } f
31
31
  import "./context-Cf7tqFtF.js";
32
32
  import { u as ge } from "./useOnChange-C1Quwyuz.js";
33
33
  import { S as pe } from "./SearchField-CH1MrE_x.js";
34
- import { H as _ } from "./Heading-CYASkLvk.js";
35
- import { S as fe } from "./Section-CrnRDzAf.js";
34
+ import { H as _ } from "./Heading-CIwOfNhx.js";
35
+ import { S as fe } from "./Section-zAfrg72Q.js";
36
36
  import { getProperty as be } from "dot-prop";
37
37
  import { hash as St } from "object-code";
38
38
  import O from "zod";
package/dist/Modal.js CHANGED
@@ -12,7 +12,7 @@ import * as n from "react-aria-components";
12
12
  import "mobx";
13
13
  import { u as w } from "./useOverlayController-D8pgx8nV.js";
14
14
  import { O as E, a as h } from "./OverlayTrigger-bD8_mPel.js";
15
- import { H as O } from "./Header-BC3V_ugP.js";
15
+ import { H as O } from "./Header-B3rZAeBI.js";
16
16
  import { A as M } from "./Action-B6lMX6do.js";
17
17
  import { B as N } from "./Button-DPF2xiJl.js";
18
18
  import "@tabler/icons-react";
@@ -10,9 +10,9 @@ import { f as c } from "./flowComponent-DT1Ap-ot.js";
10
10
  import { A as C } from "./Activity-CmfZpgOM.js";
11
11
  import * as s from "react-aria-components";
12
12
  import { s as S } from "./ContextMenu.module-BZingr2B.js";
13
- const E = "flow--section", v = {
13
+ const E = "flow--section", P = {
14
14
  section: E
15
- }, P = c(
15
+ }, g = c(
16
16
  "ContextMenuSection",
17
17
  (r) => {
18
18
  const { children: t } = r, o = {
@@ -35,12 +35,11 @@ const E = "flow--section", v = {
35
35
  if (!t)
36
36
  return null;
37
37
  if (m)
38
- return /* @__PURE__ */ e.createElement(P, null, t);
39
- const u = x(v.section, o), n = f(), d = {
38
+ return /* @__PURE__ */ e.createElement(g, null, t);
39
+ const d = x(P.section, o), n = f(), u = {
40
40
  Heading: {
41
41
  level: 2,
42
- id: n,
43
- levelVisual: 4
42
+ id: n
44
43
  },
45
44
  Header: {
46
45
  renderSectionHeader: !0
@@ -49,7 +48,7 @@ const E = "flow--section", v = {
49
48
  "aria-labelledby": n
50
49
  }
51
50
  };
52
- return /* @__PURE__ */ e.createElement(C, { isActive: a }, /* @__PURE__ */ e.createElement("section", { ...p, className: u, ref: l }, /* @__PURE__ */ e.createElement(i, { props: d, mergeInParentContext: !0 }, t)));
51
+ return /* @__PURE__ */ e.createElement(C, { isActive: a }, /* @__PURE__ */ e.createElement("section", { ...p, className: d, ref: l }, /* @__PURE__ */ e.createElement(i, { props: u, mergeInParentContext: !0 }, t)));
53
52
  });
54
53
  export {
55
54
  b as S
package/dist/Section.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { S as t } from "./Section-CrnRDzAf.js";
3
+ import { S as t } from "./Section-zAfrg72Q.js";
4
4
  export {
5
5
  t as Section,
6
6
  t as default