@mittwald/flow-react-components 0.1.0-alpha.152 → 0.1.0-alpha.153
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/ContextMenu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { C as t } from "./ContextMenuTrigger-
|
|
4
|
-
import { a } from "./ContextMenuTrigger-
|
|
3
|
+
import { C as t } from "./ContextMenuTrigger-DXPJlFQQ.js";
|
|
4
|
+
import { a } from "./ContextMenuTrigger-DXPJlFQQ.js";
|
|
5
5
|
import { M as n } from "./MenuItem-CCEquV9i.js";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as s from "react-aria-components";
|
|
5
5
|
import { f as g } from "./flowComponent-CWmvUeHT.js";
|
|
6
6
|
import { P as d } from "./Popover-Me79N9-3.js";
|
|
7
7
|
import "mobx";
|
|
@@ -14,7 +14,7 @@ import "remeda";
|
|
|
14
14
|
import { O as T } from "./OverlayContextProvider-DJzKzUwy.js";
|
|
15
15
|
import { A } from "./Action-DYTtbQCP.js";
|
|
16
16
|
import { O as h } from "./OverlayTrigger-Bdb65OEJ.js";
|
|
17
|
-
const w = "flow--context-menu", F = "flow--context-menu--popover",
|
|
17
|
+
const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
|
|
18
18
|
contextMenu: w,
|
|
19
19
|
popover: F
|
|
20
20
|
}, G = g("ContextMenu", (t) => {
|
|
@@ -35,12 +35,12 @@ const w = "flow--context-menu", F = "flow--context-menu--popover", s = {
|
|
|
35
35
|
MenuItem: {
|
|
36
36
|
selectionVariant: o === "navigation" ? "navigation" : "control"
|
|
37
37
|
}
|
|
38
|
-
}, M = o === "single" ? "ContextMenu" : void 0;
|
|
38
|
+
}, M = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
|
|
39
39
|
return /* @__PURE__ */ e.createElement(E, null, /* @__PURE__ */ e.createElement(
|
|
40
40
|
d,
|
|
41
41
|
{
|
|
42
42
|
...v,
|
|
43
|
-
className:
|
|
43
|
+
className: a.popover,
|
|
44
44
|
controller: l
|
|
45
45
|
},
|
|
46
46
|
/* @__PURE__ */ e.createElement(
|
|
@@ -50,9 +50,9 @@ const w = "flow--context-menu", F = "flow--context-menu--popover", s = {
|
|
|
50
50
|
controller: l
|
|
51
51
|
},
|
|
52
52
|
/* @__PURE__ */ e.createElement(
|
|
53
|
-
|
|
53
|
+
s.Menu,
|
|
54
54
|
{
|
|
55
|
-
className:
|
|
55
|
+
className: a.contextMenu,
|
|
56
56
|
onAction: n,
|
|
57
57
|
selectionMode: f,
|
|
58
58
|
selectedKeys: c,
|
|
@@ -72,7 +72,7 @@ const w = "flow--context-menu", F = "flow--context-menu--popover", s = {
|
|
|
72
72
|
{
|
|
73
73
|
overlayType: "ContextMenu",
|
|
74
74
|
...n,
|
|
75
|
-
component:
|
|
75
|
+
component: s.MenuTrigger
|
|
76
76
|
},
|
|
77
77
|
r
|
|
78
78
|
);
|
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 w, C as K } from "./ContextMenuTrigger-
|
|
8
|
+
import { a as w, C as K } from "./ContextMenuTrigger-DXPJlFQQ.js";
|
|
9
9
|
import { M as j } from "./MenuItem-CCEquV9i.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";
|
package/dist/Modal.js
CHANGED
|
@@ -29,8 +29,8 @@ const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--cont
|
|
|
29
29
|
controller: r,
|
|
30
30
|
children: n,
|
|
31
31
|
refProp: y,
|
|
32
|
-
...
|
|
33
|
-
} = t,
|
|
32
|
+
...s
|
|
33
|
+
} = t, m = d(
|
|
34
34
|
e.modal,
|
|
35
35
|
e[`size-${l}`],
|
|
36
36
|
a && e.offCanvas
|
|
@@ -40,6 +40,7 @@ const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--cont
|
|
|
40
40
|
},
|
|
41
41
|
Heading: {
|
|
42
42
|
level: 2,
|
|
43
|
+
levelVisual: 4,
|
|
43
44
|
slot: "title"
|
|
44
45
|
},
|
|
45
46
|
ActionGroup: {
|
|
@@ -47,7 +48,7 @@ const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--cont
|
|
|
47
48
|
tunnelId: "buttons"
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
|
-
return /* @__PURE__ */ o.createElement(g, { className:
|
|
51
|
+
return /* @__PURE__ */ o.createElement(g, { className: m, controller: r, ...s }, /* @__PURE__ */ o.createElement(c, { props: i }, /* @__PURE__ */ o.createElement(f, null, /* @__PURE__ */ o.createElement("div", { className: e.content }, n), /* @__PURE__ */ o.createElement(p, { id: "buttons" }))));
|
|
51
52
|
}), F = (t) => {
|
|
52
53
|
const { children: l, ...a } = t;
|
|
53
54
|
return /* @__PURE__ */ o.createElement(
|
package/dist/Section.js
CHANGED
|
@@ -14,12 +14,13 @@ const u = "flow--section", h = "flow--section--header", w = "flow--section--stat
|
|
|
14
14
|
switch: "flow--section--switch",
|
|
15
15
|
statusBadge: w
|
|
16
16
|
}, A = d("Section", (o) => {
|
|
17
|
-
const { children: s, className:
|
|
17
|
+
const { children: s, className: a, isActive: r = !0, refProp: c, ...n } = o;
|
|
18
18
|
if (!s)
|
|
19
19
|
return null;
|
|
20
|
-
const i = m(e.section,
|
|
20
|
+
const i = m(e.section, a), l = {
|
|
21
21
|
Heading: {
|
|
22
|
-
level: 2
|
|
22
|
+
level: 2,
|
|
23
|
+
levelVisual: 4
|
|
23
24
|
},
|
|
24
25
|
Header: {
|
|
25
26
|
className: e.header,
|
|
@@ -32,7 +33,7 @@ const u = "flow--section", h = "flow--section--header", w = "flow--section--stat
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
|
-
return /* @__PURE__ */ t.createElement(f, { isActive:
|
|
36
|
+
return /* @__PURE__ */ t.createElement(f, { isActive: r }, /* @__PURE__ */ t.createElement("section", { ...n, className: i, ref: c }, /* @__PURE__ */ t.createElement(p, { props: l, mergeInParentContext: !0 }, s)));
|
|
36
37
|
});
|
|
37
38
|
export {
|
|
38
39
|
A as Section,
|
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-CWmvUeHT.js";
|
|
8
8
|
import { useCallbackRef as O } from "use-callback-ref";
|
|
9
|
-
import { a as B, C as K } from "./ContextMenuTrigger-
|
|
9
|
+
import { a as B, C as K } from "./ContextMenuTrigger-DXPJlFQQ.js";
|
|
10
10
|
import { M as A } from "./MenuItem-CCEquV9i.js";
|
|
11
11
|
import { B as L } from "./Button-Bs4J6es6.js";
|
|
12
12
|
import "@tabler/icons-react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.153",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"dependencies": {
|
|
281
281
|
"@chakra-ui/live-region": "^2.1.0",
|
|
282
282
|
"@internationalized/string-compiler": "^3.2.4",
|
|
283
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
283
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.153",
|
|
284
284
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
285
285
|
"@react-aria/utils": "^3.24.1",
|
|
286
286
|
"@react-types/shared": "^3.23.1",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
},
|
|
308
308
|
"devDependencies": {
|
|
309
309
|
"@faker-js/faker": "^8.4.1",
|
|
310
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
310
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.153",
|
|
311
311
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
312
312
|
"@nx/storybook": "^19.3.0",
|
|
313
313
|
"@storybook/addon-a11y": "^8.1.10",
|
|
@@ -383,5 +383,5 @@
|
|
|
383
383
|
"optional": true
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "0e77636103295c605c957b726710ef643b488bf1"
|
|
387
387
|
}
|