@mittwald/flow-react-components 0.1.0-alpha.164 → 0.1.0-alpha.166

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,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
- import { C as t } from "./ContextMenuTrigger-BQd2xsku.js";
4
- import { a } from "./ContextMenuTrigger-BQd2xsku.js";
3
+ import { C as t } from "./ContextMenuTrigger-D8BGdVFU.js";
4
+ import { a } from "./ContextMenuTrigger-D8BGdVFU.js";
5
5
  import { M as n } from "./MenuItem-u7V4XOL3.js";
6
6
  export {
7
7
  t as ContextMenu,
@@ -0,0 +1,10 @@
1
+ "use client"
2
+ /* */
3
+ const o = "flow--context-menu", t = "flow--context-menu--section", e = "flow--context-menu--popover", n = {
4
+ contextMenu: o,
5
+ section: t,
6
+ popover: e
7
+ };
8
+ export {
9
+ n as s
10
+ };
@@ -1,8 +1,9 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e from "react";
4
- import * as c from "react-aria-components";
5
- import { f as d } from "./flowComponent-TgbbWDzO.js";
4
+ import * as i from "react-aria-components";
5
+ import { s } from "./ContextMenu.module-BfwGh62L.js";
6
+ import { f as g } from "./flowComponent-TgbbWDzO.js";
6
7
  import { P } from "./Popover-B1m8lc6F.js";
7
8
  import "mobx";
8
9
  import { u as E } from "./useOverlayController-D8N4X2rc.js";
@@ -14,39 +15,36 @@ import "remeda";
14
15
  import { O as T } from "./OverlayContextProvider-DJzKzUwy.js";
15
16
  import { A } from "./Action-DYTtbQCP.js";
16
17
  import { O as h } from "./OverlayTrigger-Bdb65OEJ.js";
17
- const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
18
- contextMenu: w,
19
- popover: F
20
- }, H = d("ContextMenu", (t) => {
18
+ const G = g("ContextMenu", (t) => {
21
19
  const {
22
20
  children: r,
23
21
  onAction: n,
24
22
  selectionMode: o,
25
- selectedKeys: i,
26
- defaultSelectedKeys: m,
23
+ selectedKeys: m,
24
+ defaultSelectedKeys: c,
27
25
  disabledKeys: p,
28
- onSelectionChange: u,
29
- refProp: C,
26
+ onSelectionChange: C,
27
+ refProp: u,
30
28
  controller: v,
31
- ...x
32
- } = t, M = E("ContextMenu", {
29
+ ...f
30
+ } = t, x = E("ContextMenu", {
33
31
  reuseControllerFromContext: !0
34
- }), l = v ?? M, f = o === "navigation" ? "single" : o, s = o === "navigation" ? "navigation" : "control", y = {
32
+ }), l = v ?? x, y = o === "navigation" ? "none" : o, a = o === "navigation" ? "navigation" : "control", M = {
35
33
  MenuItem: {
36
- selectionVariant: s
34
+ selectionVariant: a
37
35
  },
38
36
  Section: {
39
37
  MenuItem: {
40
- selectionVariant: s
38
+ selectionVariant: a
41
39
  },
42
40
  renderContextMenuSection: !0
43
41
  }
44
- }, g = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
42
+ }, d = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
45
43
  return /* @__PURE__ */ e.createElement(O, null, /* @__PURE__ */ e.createElement(
46
44
  P,
47
45
  {
48
- ...x,
49
- className: a.popover,
46
+ ...f,
47
+ className: s.popover,
50
48
  controller: l
51
49
  },
52
50
  /* @__PURE__ */ e.createElement(
@@ -56,34 +54,34 @@ const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
56
54
  controller: l
57
55
  },
58
56
  /* @__PURE__ */ e.createElement(
59
- c.Menu,
57
+ i.Menu,
60
58
  {
61
- className: a.contextMenu,
59
+ className: s.contextMenu,
62
60
  onAction: n,
63
- selectionMode: f,
64
- selectedKeys: i,
65
- defaultSelectedKeys: m,
61
+ selectionMode: y,
62
+ selectedKeys: m,
63
+ defaultSelectedKeys: c,
66
64
  disabledKeys: p,
67
- onSelectionChange: u,
68
- ref: C
65
+ onSelectionChange: C,
66
+ ref: u
69
67
  },
70
- /* @__PURE__ */ e.createElement(S, { props: y }, /* @__PURE__ */ e.createElement(A, { closeOverlay: g }, r))
68
+ /* @__PURE__ */ e.createElement(S, { props: M }, /* @__PURE__ */ e.createElement(A, { closeOverlay: d }, r))
71
69
  )
72
70
  )
73
71
  ));
74
- }), J = (t) => {
72
+ }), H = (t) => {
75
73
  const { children: r, ...n } = t;
76
74
  return /* @__PURE__ */ e.createElement(
77
75
  h,
78
76
  {
79
77
  overlayType: "ContextMenu",
80
78
  ...n,
81
- component: c.MenuTrigger
79
+ component: i.MenuTrigger
82
80
  },
83
81
  r
84
82
  );
85
83
  };
86
84
  export {
87
- H as C,
88
- J as a
85
+ G as C,
86
+ H as a
89
87
  };
@@ -0,0 +1,34 @@
1
+ "use client"
2
+ /* */
3
+ import l from "react";
4
+ import * as f from "react-aria-components";
5
+ import d from "clsx";
6
+ import { C } from "./ClearPropsContext-CUvsbMn8.js";
7
+ import "./propsContext-DzAKlmhS.js";
8
+ import "@react-aria/utils";
9
+ import "remeda";
10
+ import "dot-prop";
11
+ import { useLocalizedStringFormatter as L } from "react-aria";
12
+ import { f as u } from "./flowComponent-TgbbWDzO.js";
13
+ const E = "flow--label", N = "flow--label--disabled", e = {
14
+ label: E,
15
+ disabled: N
16
+ }, w = { "de-DE": {
17
+ "label.optional": "(optional)"
18
+ }, "en-EN": {
19
+ "label.optional": "(optional)"
20
+ } }, A = u("Label", (t) => {
21
+ const {
22
+ children: a,
23
+ className: o,
24
+ optional: r,
25
+ isDisabled: s,
26
+ refProp: i,
27
+ unstyled: n = !1,
28
+ ...m
29
+ } = t, p = L(w), c = n ? o : d(e.label, s && e.disabled, o), b = " " + p.format("label.optional");
30
+ return /* @__PURE__ */ l.createElement(C, null, /* @__PURE__ */ l.createElement(f.Label, { ...m, className: c, ref: i }, a, r && b));
31
+ });
32
+ export {
33
+ A as L
34
+ };
package/dist/Label.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as e } from "./Label-BlTqklNB.js";
3
+ import { L as e } from "./Label-DJKxRIAA.js";
4
4
  export {
5
5
  e as Label,
6
6
  e as default
package/dist/List.js CHANGED
@@ -5,7 +5,7 @@ var tt = (s, t, e) => t in s ? _(s, t, { enumerable: !0, configurable: !0, writa
5
5
  var o = (s, t, e) => tt(s, typeof t != "symbol" ? t + "" : t, e);
6
6
  import n, { createContext as et, useContext as at, createElement as st, useEffect as F, useRef as nt, Suspense as it } from "react";
7
7
  import { R as rt } from "./Render-BdlTa7Qb.js";
8
- import { a as T, C as j } from "./ContextMenuTrigger-BQd2xsku.js";
8
+ import { a as T, C as j } from "./ContextMenuTrigger-D8BGdVFU.js";
9
9
  import { M as J } from "./MenuItem-u7V4XOL3.js";
10
10
  import "react-aria-components";
11
11
  import { autorun as ot, runInAction as lt, makeObservable as ct, observable as M, computed as V, action as I } from "mobx";
@@ -0,0 +1,9 @@
1
+ "use client"
2
+ /* */
3
+ import "react";
4
+ import "./propsContext-DzAKlmhS.js";
5
+ import { P as p, P } from "./PropsContextProvider-C6Z4XGp6.js";
6
+ export {
7
+ p as PropsContextProvider,
8
+ P as default
9
+ };
package/dist/Section.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e from "react";
4
- import f from "clsx";
4
+ import u from "clsx";
5
5
  import "./propsContext-DzAKlmhS.js";
6
6
  import { P as a } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
@@ -9,39 +9,39 @@ import "remeda";
9
9
  import { f as c } from "./flowComponent-TgbbWDzO.js";
10
10
  import { A as h } from "./Activity-CmfZpgOM.js";
11
11
  import * as r from "react-aria-components";
12
- const w = "flow--section", g = "flow--section--header", x = "flow--section--status-badge", o = {
13
- section: w,
14
- header: g,
12
+ import { s as w } from "./ContextMenu.module-BfwGh62L.js";
13
+ const g = "flow--section", x = "flow--section--header", C = "flow--section--status-badge", o = {
14
+ section: g,
15
+ header: x,
15
16
  switch: "flow--section--switch",
16
- statusBadge: x
17
- }, C = c(
17
+ statusBadge: C
18
+ }, S = c(
18
19
  "ContextMenuSection",
19
- (n) => {
20
- const { children: t } = n, s = {
20
+ (s) => {
21
+ const { children: t } = s, n = {
21
22
  Heading: {
22
23
  level: 5,
23
24
  wrapWith: /* @__PURE__ */ e.createElement(r.Header, null)
24
25
  }
25
26
  };
26
- return /* @__PURE__ */ e.createElement(r.Section, null, /* @__PURE__ */ e.createElement(a, { props: s }, t));
27
+ return /* @__PURE__ */ e.createElement(r.Section, { className: w.section }, /* @__PURE__ */ e.createElement(a, { props: n }, t));
27
28
  }
28
- ), M = c("Section", (n) => {
29
+ ), b = c("Section", (s) => {
29
30
  const {
30
31
  children: t,
31
- className: s,
32
+ className: n,
32
33
  isActive: i = !0,
33
34
  refProp: l,
34
35
  renderContextMenuSection: m,
35
36
  ...p
36
- } = n;
37
+ } = s;
37
38
  if (!t)
38
39
  return null;
39
40
  if (m)
40
- return /* @__PURE__ */ e.createElement(C, null, t);
41
- const u = f(o.section, s), d = {
41
+ return /* @__PURE__ */ e.createElement(S, null, t);
42
+ const d = u(o.section, n), f = {
42
43
  Heading: {
43
- level: 2,
44
- levelVisual: 4
44
+ level: 2
45
45
  },
46
46
  Header: {
47
47
  className: o.header,
@@ -54,9 +54,9 @@ const w = "flow--section", g = "flow--section--header", x = "flow--section--stat
54
54
  }
55
55
  }
56
56
  };
57
- return /* @__PURE__ */ e.createElement(h, { isActive: i }, /* @__PURE__ */ e.createElement("section", { ...p, className: u, ref: l }, /* @__PURE__ */ e.createElement(a, { props: d, mergeInParentContext: !0 }, t)));
57
+ return /* @__PURE__ */ e.createElement(h, { isActive: i }, /* @__PURE__ */ e.createElement("section", { ...p, className: d, ref: l }, /* @__PURE__ */ e.createElement(a, { props: f, mergeInParentContext: !0 }, t)));
58
58
  });
59
59
  export {
60
- M as Section,
61
- M as default
60
+ b as Section,
61
+ b as default
62
62
  };
package/dist/Switch.js CHANGED
@@ -7,7 +7,7 @@ import "@tabler/icons-react";
7
7
  import "./Icon-BTTw8v9z.js";
8
8
  import { I as p } from "./IconCheck-ZTVWbFCo.js";
9
9
  import { I as h } from "./IconClose-D3xiRQc_.js";
10
- import { L as w } from "./Label-BlTqklNB.js";
10
+ import { L as w } from "./Label-DJKxRIAA.js";
11
11
  import { C as d } from "./ClearPropsContext-CUvsbMn8.js";
12
12
  import "./propsContext-DzAKlmhS.js";
13
13
  import "@react-aria/utils";
package/dist/Tabs.js CHANGED
@@ -6,7 +6,7 @@ import u from "clsx";
6
6
  import { TunnelExit as C, TunnelProvider as y, TunnelEntry as f } from "@mittwald/react-tunnel";
7
7
  import { f as S } from "./flowComponent-TgbbWDzO.js";
8
8
  import { useCallbackRef as O } from "use-callback-ref";
9
- import { a as B, C as K } from "./ContextMenuTrigger-BQd2xsku.js";
9
+ import { a as B, C as K } from "./ContextMenuTrigger-D8BGdVFU.js";
10
10
  import { M as A } from "./MenuItem-u7V4XOL3.js";
11
11
  import { B as L } from "./Button-Dz22EEEz.js";
12
12
  import "@tabler/icons-react";