@mittwald/flow-react-components 0.1.0-alpha.218 → 0.1.0-alpha.219
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 +2 -2
- package/dist/{ContextMenuTrigger-DOCNHDwJ.js → ContextMenuTrigger-Bh65PWwi.js} +23 -24
- package/dist/ContextualHelp.js +17 -18
- package/dist/DatePicker.js +4 -5
- package/dist/DateRangePicker.js +14 -15
- package/dist/List.js +1 -1
- package/dist/Modal.js +24 -25
- package/dist/OverlayTrigger-BPwYjPfK.js +37 -0
- package/dist/Popover.js +5 -19
- package/dist/PopoverTrigger-Nakex9Lr.js +61 -0
- package/dist/Select.js +15 -17
- package/dist/Tabs.js +1 -1
- package/package.json +4 -4
- package/dist/OverlayContextProvider-xvILXWn5.js +0 -20
- package/dist/OverlayTrigger-D9ziPSB1.js +0 -25
- package/dist/Popover-Cv7qj8sY.js +0 -46
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-Bh65PWwi.js";
|
|
4
|
+
import { a } from "./ContextMenuTrigger-Bh65PWwi.js";
|
|
5
5
|
import { M as n } from "./MenuItem-DcfYvfPJ.js";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
@@ -3,33 +3,32 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as i from "react-aria-components";
|
|
5
5
|
import { s } from "./ContextMenu.module-BZingr2B.js";
|
|
6
|
-
import { f as
|
|
7
|
-
import { P } from "./
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
import { C as O } from "./ClearPropsContext-CUvsbMn8.js";
|
|
11
|
-
import { P as T } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
6
|
+
import { f as c } from "./flowComponent-DHPUcYyM.js";
|
|
7
|
+
import { P } from "./PopoverTrigger-Nakex9Lr.js";
|
|
8
|
+
import { C as E } from "./ClearPropsContext-CUvsbMn8.js";
|
|
9
|
+
import { P as O } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
12
10
|
import "@react-aria/utils";
|
|
13
11
|
import "./propsContext-DzAKlmhS.js";
|
|
14
12
|
import "remeda";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import { O as
|
|
18
|
-
|
|
13
|
+
import "mobx";
|
|
14
|
+
import { u as T } from "./useOverlayController-D8pgx8nV.js";
|
|
15
|
+
import { O as S, a as A } from "./OverlayTrigger-BPwYjPfK.js";
|
|
16
|
+
import { A as h } from "./Action-Dp_7RavF.js";
|
|
17
|
+
const B = c("ContextMenu", (t) => {
|
|
19
18
|
const {
|
|
20
19
|
children: r,
|
|
21
20
|
onAction: n,
|
|
22
21
|
selectionMode: o,
|
|
23
|
-
selectedKeys:
|
|
22
|
+
selectedKeys: m,
|
|
24
23
|
defaultSelectedKeys: p,
|
|
25
24
|
disabledKeys: C,
|
|
26
25
|
onSelectionChange: u,
|
|
27
26
|
refProp: v,
|
|
28
|
-
controller:
|
|
29
|
-
...
|
|
30
|
-
} = t,
|
|
27
|
+
controller: g,
|
|
28
|
+
...x
|
|
29
|
+
} = t, M = T("ContextMenu", {
|
|
31
30
|
reuseControllerFromContext: !0
|
|
32
|
-
}), l =
|
|
31
|
+
}), l = g ?? M, f = o === "navigation" ? "none" : o, a = o === "navigation" ? "navigation" : "control", y = {
|
|
33
32
|
MenuItem: {
|
|
34
33
|
selectionVariant: a
|
|
35
34
|
},
|
|
@@ -40,10 +39,10 @@ const G = m("ContextMenu", (t) => {
|
|
|
40
39
|
renderContextMenuSection: !0
|
|
41
40
|
}
|
|
42
41
|
}, d = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
|
|
43
|
-
return /* @__PURE__ */ e.createElement(
|
|
42
|
+
return /* @__PURE__ */ e.createElement(E, null, /* @__PURE__ */ e.createElement(
|
|
44
43
|
P,
|
|
45
44
|
{
|
|
46
|
-
...
|
|
45
|
+
...x,
|
|
47
46
|
contentClassName: s.popoverContent,
|
|
48
47
|
controller: l,
|
|
49
48
|
isDialogContent: !1
|
|
@@ -59,23 +58,23 @@ const G = m("ContextMenu", (t) => {
|
|
|
59
58
|
{
|
|
60
59
|
className: s.contextMenu,
|
|
61
60
|
onAction: n,
|
|
62
|
-
selectionMode:
|
|
63
|
-
selectedKeys:
|
|
61
|
+
selectionMode: f,
|
|
62
|
+
selectedKeys: m,
|
|
64
63
|
defaultSelectedKeys: p,
|
|
65
64
|
disabledKeys: C,
|
|
66
65
|
onSelectionChange: u,
|
|
67
66
|
ref: v
|
|
68
67
|
},
|
|
69
|
-
/* @__PURE__ */ e.createElement(
|
|
68
|
+
/* @__PURE__ */ e.createElement(O, { props: y }, /* @__PURE__ */ e.createElement(h, { closeOverlay: d }, r))
|
|
70
69
|
)
|
|
71
70
|
)
|
|
72
71
|
));
|
|
73
|
-
}),
|
|
72
|
+
}), G = c(
|
|
74
73
|
"ContextMenuTrigger",
|
|
75
74
|
(t) => {
|
|
76
75
|
const { children: r, ...n } = t;
|
|
77
76
|
return /* @__PURE__ */ e.createElement(
|
|
78
|
-
|
|
77
|
+
A,
|
|
79
78
|
{
|
|
80
79
|
overlayType: "ContextMenu",
|
|
81
80
|
...n,
|
|
@@ -86,6 +85,6 @@ const G = m("ContextMenu", (t) => {
|
|
|
86
85
|
}
|
|
87
86
|
);
|
|
88
87
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
B as C,
|
|
89
|
+
G as a
|
|
91
90
|
};
|
package/dist/ContextualHelp.js
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import { P as s } from "./
|
|
5
|
-
import * as c from "react-aria-components";
|
|
6
|
-
import "mobx";
|
|
7
|
-
import { u } from "./useOverlayController-D8pgx8nV.js";
|
|
4
|
+
import { P as s } from "./PopoverTrigger-Nakex9Lr.js";
|
|
8
5
|
import "./propsContext-DzAKlmhS.js";
|
|
9
6
|
import { P as l } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
10
7
|
import "@react-aria/utils";
|
|
11
8
|
import "remeda";
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
9
|
+
import { f as c } from "./flowComponent-DHPUcYyM.js";
|
|
10
|
+
import "mobx";
|
|
11
|
+
import { u } from "./useOverlayController-D8pgx8nV.js";
|
|
12
|
+
import * as f from "react-aria-components";
|
|
13
|
+
import { a as x } from "./OverlayTrigger-BPwYjPfK.js";
|
|
15
14
|
import { useLocalizedStringFormatter as g } from "react-aria";
|
|
16
15
|
import "@tabler/icons-react";
|
|
17
16
|
import "./Icon-DPoIVASu.js";
|
|
18
17
|
import { I as C } from "./IconInfo-p6ir3vIp.js";
|
|
19
18
|
const H = "flow--contextual-help", d = {
|
|
20
19
|
contextualHelp: H
|
|
21
|
-
},
|
|
20
|
+
}, b = c("ContextualHelp", (e) => {
|
|
22
21
|
const {
|
|
23
|
-
children:
|
|
22
|
+
children: o,
|
|
24
23
|
controller: r,
|
|
25
24
|
refProp: a,
|
|
26
25
|
...n
|
|
27
|
-
} =
|
|
26
|
+
} = e, m = u("ContextualHelp", {
|
|
28
27
|
reuseControllerFromContext: !0
|
|
29
28
|
}), p = r ?? m, i = {
|
|
30
29
|
Heading: {
|
|
31
30
|
level: 5
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
return /* @__PURE__ */ t.createElement(s, { withTip: !0, ...n, controller: p }, /* @__PURE__ */ t.createElement(l, { props: i }, /* @__PURE__ */ t.createElement("div", { className: d.contextualHelp },
|
|
33
|
+
return /* @__PURE__ */ t.createElement(s, { withTip: !0, ...n, controller: p }, /* @__PURE__ */ t.createElement(l, { props: i }, /* @__PURE__ */ t.createElement("div", { className: d.contextualHelp }, o)));
|
|
35
34
|
}), P = { "de-DE": {
|
|
36
35
|
"contextualHelpButton.moreInformation": "Weitere Informationen"
|
|
37
36
|
}, "en-EN": {
|
|
38
37
|
"contextualHelpButton.moreInformation": "More information"
|
|
39
|
-
} },
|
|
40
|
-
const { children:
|
|
38
|
+
} }, A = (e) => {
|
|
39
|
+
const { children: o, ...r } = e, n = {
|
|
41
40
|
Button: {
|
|
42
41
|
"aria-label": g(P).format(
|
|
43
42
|
"contextualHelpButton.moreInformation"
|
|
@@ -52,13 +51,13 @@ const H = "flow--contextual-help", d = {
|
|
|
52
51
|
{
|
|
53
52
|
overlayType: "ContextualHelp",
|
|
54
53
|
...r,
|
|
55
|
-
component:
|
|
54
|
+
component: f.DialogTrigger
|
|
56
55
|
},
|
|
57
|
-
/* @__PURE__ */ t.createElement(l, { props: n, mergeInParentContext: !0 },
|
|
56
|
+
/* @__PURE__ */ t.createElement(l, { props: n, mergeInParentContext: !0 }, o)
|
|
58
57
|
);
|
|
59
58
|
};
|
|
60
59
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
b as ContextualHelp,
|
|
61
|
+
A as ContextualHelpTrigger,
|
|
62
|
+
b as default
|
|
64
63
|
};
|
package/dist/DatePicker.js
CHANGED
|
@@ -14,16 +14,15 @@ import "./Icon-DPoIVASu.js";
|
|
|
14
14
|
import { a as D } from "./IconCalendar-DdHJ9y75.js";
|
|
15
15
|
import { F as N } from "./FieldError-CHN9uCb_.js";
|
|
16
16
|
import { s as o } from "./FormField.module-DHK6nIcD.js";
|
|
17
|
-
import { P } from "./
|
|
17
|
+
import { P } from "./PopoverTrigger-Nakex9Lr.js";
|
|
18
18
|
import "mobx";
|
|
19
19
|
import { u as b } from "./useOverlayController-D8pgx8nV.js";
|
|
20
|
-
import "./context-Cf7tqFtF.js";
|
|
21
20
|
const v = () => /* @__PURE__ */ e.createElement(r.Calendar, { className: E.calendar }, /* @__PURE__ */ e.createElement(f, null), /* @__PURE__ */ e.createElement(r.CalendarGrid, null, (t) => /* @__PURE__ */ e.createElement(r.CalendarCell, { date: t }))), I = "flow--date-picker--date-input", g = {
|
|
22
21
|
dateInput: I
|
|
23
22
|
}, y = (t) => {
|
|
24
23
|
const { isDisabled: l } = t;
|
|
25
24
|
return /* @__PURE__ */ e.createElement(r.Group, { className: g.dateInput }, /* @__PURE__ */ e.createElement(r.DateInput, null, (n) => /* @__PURE__ */ e.createElement(r.DateSegment, { segment: n })), /* @__PURE__ */ e.createElement(C, { variant: "plain", color: "secondary", isDisabled: l }, /* @__PURE__ */ e.createElement(D, null)));
|
|
26
|
-
},
|
|
25
|
+
}, j = (t) => {
|
|
27
26
|
const { children: l, className: n, errorMessage: s, ...m } = t, i = d(o.formField, n), c = {
|
|
28
27
|
Label: {
|
|
29
28
|
className: o.label,
|
|
@@ -57,6 +56,6 @@ const v = () => /* @__PURE__ */ e.createElement(r.Calendar, { className: E.calen
|
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
58
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
j as DatePicker,
|
|
60
|
+
j as default
|
|
62
61
|
};
|
package/dist/DateRangePicker.js
CHANGED
|
@@ -8,22 +8,21 @@ import { P as u } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import * as t from "react-aria-components";
|
|
11
|
-
import { P as E } from "./
|
|
12
|
-
import "
|
|
13
|
-
import {
|
|
14
|
-
import "./context-Cf7tqFtF.js";
|
|
15
|
-
import { s as g, C } from "./CalendarHeader-DkUXY9HD.js";
|
|
16
|
-
import { B as D } from "./Button-DQtavSbo.js";
|
|
11
|
+
import { P as E } from "./PopoverTrigger-Nakex9Lr.js";
|
|
12
|
+
import { s as f, C as g } from "./CalendarHeader-DkUXY9HD.js";
|
|
13
|
+
import { B as C } from "./Button-DQtavSbo.js";
|
|
17
14
|
import "@tabler/icons-react";
|
|
18
15
|
import "./Icon-DPoIVASu.js";
|
|
19
|
-
import { a as
|
|
20
|
-
import { F as
|
|
21
|
-
|
|
16
|
+
import { a as D } from "./IconCalendar-DdHJ9y75.js";
|
|
17
|
+
import { F as R } from "./FieldError-CHN9uCb_.js";
|
|
18
|
+
import "mobx";
|
|
19
|
+
import { u as N } from "./useOverlayController-D8pgx8nV.js";
|
|
20
|
+
const P = () => /* @__PURE__ */ e.createElement(t.RangeCalendar, { className: f.calendar }, /* @__PURE__ */ e.createElement(g, null), /* @__PURE__ */ e.createElement(t.CalendarGrid, null, (a) => /* @__PURE__ */ e.createElement(t.CalendarCell, { date: a }))), v = "flow--date-range-picker--date-range-input", I = {
|
|
22
21
|
dateRangeInput: v
|
|
23
22
|
}, b = (a) => {
|
|
24
23
|
const { isDisabled: l } = a;
|
|
25
|
-
return /* @__PURE__ */ e.createElement(t.Group, { className: I.dateRangeInput }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(t.DateInput, { slot: "start" }, (r) => /* @__PURE__ */ e.createElement(t.DateSegment, { segment: r })), /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true" }, "–"), /* @__PURE__ */ e.createElement(t.DateInput, { slot: "end" }, (r) => /* @__PURE__ */ e.createElement(t.DateSegment, { segment: r }))), /* @__PURE__ */ e.createElement(
|
|
26
|
-
},
|
|
24
|
+
return /* @__PURE__ */ e.createElement(t.Group, { className: I.dateRangeInput }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(t.DateInput, { slot: "start" }, (r) => /* @__PURE__ */ e.createElement(t.DateSegment, { segment: r })), /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true" }, "–"), /* @__PURE__ */ e.createElement(t.DateInput, { slot: "end" }, (r) => /* @__PURE__ */ e.createElement(t.DateSegment, { segment: r }))), /* @__PURE__ */ e.createElement(C, { variant: "plain", color: "secondary", isDisabled: l }, /* @__PURE__ */ e.createElement(D, null)));
|
|
25
|
+
}, j = (a) => {
|
|
27
26
|
const { children: l, className: r, errorMessage: s, ...m } = a, i = d(o.formField, r), c = {
|
|
28
27
|
Label: {
|
|
29
28
|
className: o.label,
|
|
@@ -32,7 +31,7 @@ const P = () => /* @__PURE__ */ e.createElement(t.RangeCalendar, { className: g.
|
|
|
32
31
|
FieldDescription: {
|
|
33
32
|
className: o.fieldDescription
|
|
34
33
|
}
|
|
35
|
-
}, n =
|
|
34
|
+
}, n = N("Popover");
|
|
36
35
|
return /* @__PURE__ */ e.createElement(
|
|
37
36
|
t.DateRangePicker,
|
|
38
37
|
{
|
|
@@ -44,7 +43,7 @@ const P = () => /* @__PURE__ */ e.createElement(t.RangeCalendar, { className: g.
|
|
|
44
43
|
},
|
|
45
44
|
/* @__PURE__ */ e.createElement(b, { isDisabled: a.isDisabled }),
|
|
46
45
|
/* @__PURE__ */ e.createElement(u, { props: c }, l),
|
|
47
|
-
/* @__PURE__ */ e.createElement(
|
|
46
|
+
/* @__PURE__ */ e.createElement(R, { className: o.fieldError }, s),
|
|
48
47
|
/* @__PURE__ */ e.createElement(
|
|
49
48
|
E,
|
|
50
49
|
{
|
|
@@ -57,6 +56,6 @@ const P = () => /* @__PURE__ */ e.createElement(t.RangeCalendar, { className: g.
|
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
58
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
j as DateRangePicker,
|
|
60
|
+
j as default
|
|
62
61
|
};
|
package/dist/List.js
CHANGED
|
@@ -13,7 +13,7 @@ import { B as w } from "./Button-DQtavSbo.js";
|
|
|
13
13
|
import "@tabler/icons-react";
|
|
14
14
|
import "./Icon-DPoIVASu.js";
|
|
15
15
|
import { I as Ye } from "./IconContextMenu-jwoVcLvd.js";
|
|
16
|
-
import { a as B, C as H } from "./ContextMenuTrigger-
|
|
16
|
+
import { a as B, C as H } from "./ContextMenuTrigger-Bh65PWwi.js";
|
|
17
17
|
import { M as q } from "./MenuItem-DcfYvfPJ.js";
|
|
18
18
|
import { useLocalizedStringFormatter as y } from "react-aria";
|
|
19
19
|
import { TunnelProvider as Qe, TunnelExit as ie } from "@mittwald/react-tunnel";
|
package/dist/Modal.js
CHANGED
|
@@ -11,14 +11,13 @@ import { f as C } from "./flowComponent-DHPUcYyM.js";
|
|
|
11
11
|
import * as n from "react-aria-components";
|
|
12
12
|
import "mobx";
|
|
13
13
|
import { u as g } from "./useOverlayController-D8pgx8nV.js";
|
|
14
|
-
import { O as w } from "./
|
|
15
|
-
import { H as
|
|
16
|
-
import { A as
|
|
17
|
-
import { B as
|
|
14
|
+
import { O as w, a as E } from "./OverlayTrigger-BPwYjPfK.js";
|
|
15
|
+
import { H as O } from "./Header-DvtpqjDj.js";
|
|
16
|
+
import { A as h } from "./Action-Dp_7RavF.js";
|
|
17
|
+
import { B as M } from "./Button-DQtavSbo.js";
|
|
18
18
|
import "@tabler/icons-react";
|
|
19
19
|
import "./Icon-DPoIVASu.js";
|
|
20
|
-
import { I as
|
|
21
|
-
import { O as N } from "./OverlayTrigger-D9ziPSB1.js";
|
|
20
|
+
import { I as N } from "./IconClose-BFwPT_IX.js";
|
|
22
21
|
const x = "flow--modal", z = "flow--modal--off-canvas", P = "flow--modal--header", T = "flow--modal--content", B = "flow--modal--action-group", A = "flow--modal--close-button", e = {
|
|
23
22
|
modal: x,
|
|
24
23
|
offCanvas: z,
|
|
@@ -36,36 +35,36 @@ const x = "flow--modal", z = "flow--modal--off-canvas", P = "flow--modal--header
|
|
|
36
35
|
"overlay-fade": "flow--modal-overlay--overlay-fade"
|
|
37
36
|
}, D = (t) => {
|
|
38
37
|
const {
|
|
39
|
-
controller:
|
|
38
|
+
controller: a,
|
|
40
39
|
children: l,
|
|
41
40
|
isDismissable: s = !0,
|
|
42
41
|
className: m
|
|
43
42
|
} = t, p = g("Modal", {
|
|
44
43
|
reuseControllerFromContext: !0
|
|
45
|
-
}),
|
|
44
|
+
}), r = a ?? p, c = r.useIsOpen(), i = f(I.overlay, m);
|
|
46
45
|
return /* @__PURE__ */ o.createElement(
|
|
47
46
|
n.ModalOverlay,
|
|
48
47
|
{
|
|
49
48
|
className: i,
|
|
50
49
|
isDismissable: s,
|
|
51
50
|
isOpen: c,
|
|
52
|
-
onOpenChange: (d) =>
|
|
51
|
+
onOpenChange: (d) => r.setOpen(d)
|
|
53
52
|
},
|
|
54
|
-
/* @__PURE__ */ o.createElement(n.Modal, null, /* @__PURE__ */ o.createElement(n.Dialog, null, /* @__PURE__ */ o.createElement(w, { type: "Modal", controller:
|
|
53
|
+
/* @__PURE__ */ o.createElement(n.Modal, null, /* @__PURE__ */ o.createElement(n.Dialog, null, /* @__PURE__ */ o.createElement(w, { type: "Modal", controller: r }, l)))
|
|
55
54
|
);
|
|
56
|
-
},
|
|
55
|
+
}, Y = C("Modal", (t) => {
|
|
57
56
|
const {
|
|
58
|
-
size:
|
|
57
|
+
size: a = "s",
|
|
59
58
|
offCanvas: l,
|
|
60
59
|
controller: s,
|
|
61
60
|
children: m,
|
|
62
61
|
refProp: p,
|
|
63
|
-
className:
|
|
62
|
+
className: r,
|
|
64
63
|
...c
|
|
65
64
|
} = t, i = f(
|
|
66
65
|
l ? e.offCanvas : e.modal,
|
|
67
|
-
e[`size-${
|
|
68
|
-
|
|
66
|
+
e[`size-${a}`],
|
|
67
|
+
r
|
|
69
68
|
), d = {
|
|
70
69
|
Content: {
|
|
71
70
|
className: e.content
|
|
@@ -79,29 +78,29 @@ const x = "flow--modal", z = "flow--modal--off-canvas", P = "flow--modal--header
|
|
|
79
78
|
className: e.actionGroup
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
|
-
return /* @__PURE__ */ o.createElement(D, { className: i, controller: s, ...c }, /* @__PURE__ */ o.createElement(u, { props: d }, /* @__PURE__ */ o.createElement(v, null, /* @__PURE__ */ o.createElement(
|
|
83
|
-
|
|
81
|
+
return /* @__PURE__ */ o.createElement(D, { className: i, controller: s, ...c }, /* @__PURE__ */ o.createElement(u, { props: d }, /* @__PURE__ */ o.createElement(v, null, /* @__PURE__ */ o.createElement(O, { className: e.header }, /* @__PURE__ */ o.createElement(y, { id: "heading" }), l && /* @__PURE__ */ o.createElement(h, { closeOverlay: "Modal" }, /* @__PURE__ */ o.createElement(
|
|
82
|
+
M,
|
|
84
83
|
{
|
|
85
84
|
variant: "plain",
|
|
86
85
|
color: "secondary",
|
|
87
86
|
className: e.closeButton
|
|
88
87
|
},
|
|
89
|
-
/* @__PURE__ */ o.createElement(
|
|
88
|
+
/* @__PURE__ */ o.createElement(N, null)
|
|
90
89
|
))), m)));
|
|
91
|
-
}),
|
|
92
|
-
const { children:
|
|
90
|
+
}), Z = (t) => {
|
|
91
|
+
const { children: a, ...l } = t;
|
|
93
92
|
return /* @__PURE__ */ o.createElement(
|
|
94
|
-
|
|
93
|
+
E,
|
|
95
94
|
{
|
|
96
95
|
overlayType: "Modal",
|
|
97
96
|
...l,
|
|
98
97
|
component: n.DialogTrigger
|
|
99
98
|
},
|
|
100
|
-
|
|
99
|
+
a
|
|
101
100
|
);
|
|
102
101
|
};
|
|
103
102
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
Y as Modal,
|
|
104
|
+
Z as ModalTrigger,
|
|
105
|
+
Y as default
|
|
107
106
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { u as c, o as i, O as m } from "./context-Cf7tqFtF.js";
|
|
5
|
+
import "./propsContext-DzAKlmhS.js";
|
|
6
|
+
import { P as v } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
const y = (r) => {
|
|
10
|
+
const { type: t, controller: o, children: n } = r, a = c();
|
|
11
|
+
return /* @__PURE__ */ e.createElement(
|
|
12
|
+
i.Provider,
|
|
13
|
+
{
|
|
14
|
+
value: {
|
|
15
|
+
...a,
|
|
16
|
+
[t]: o
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
n
|
|
20
|
+
);
|
|
21
|
+
}, f = (r) => {
|
|
22
|
+
const {
|
|
23
|
+
overlayType: t,
|
|
24
|
+
isDefaultOpen: o = !1,
|
|
25
|
+
component: n,
|
|
26
|
+
children: a
|
|
27
|
+
} = r, s = m.useNew({ isDefaultOpen: o }), l = s.useIsOpen(), p = {
|
|
28
|
+
Button: {
|
|
29
|
+
onPress: s.open
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ e.createElement(y, { type: t, controller: s }, /* @__PURE__ */ e.createElement(v, { props: p, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement(n, { isOpen: l }, a)));
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
y as O,
|
|
36
|
+
f as a
|
|
37
|
+
};
|
package/dist/Popover.js
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { P as
|
|
4
|
-
import
|
|
5
|
-
import a from "react";
|
|
6
|
-
import { O as i } from "./OverlayTrigger-D9ziPSB1.js";
|
|
7
|
-
const s = (r) => {
|
|
8
|
-
const { children: o, ...e } = r;
|
|
9
|
-
return /* @__PURE__ */ a.createElement(
|
|
10
|
-
i,
|
|
11
|
-
{
|
|
12
|
-
overlayType: "Popover",
|
|
13
|
-
...e,
|
|
14
|
-
component: t.DialogTrigger
|
|
15
|
-
},
|
|
16
|
-
o
|
|
17
|
-
);
|
|
18
|
-
};
|
|
3
|
+
import { P as r } from "./PopoverTrigger-Nakex9Lr.js";
|
|
4
|
+
import { a as p } from "./PopoverTrigger-Nakex9Lr.js";
|
|
19
5
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
r as Popover,
|
|
7
|
+
p as PopoverTrigger,
|
|
8
|
+
r as default
|
|
23
9
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as o from "react-aria-components";
|
|
5
|
+
import l from "clsx";
|
|
6
|
+
import "mobx";
|
|
7
|
+
import { u as h } from "./useOverlayController-D8pgx8nV.js";
|
|
8
|
+
import { f as a } from "./flowComponent-DHPUcYyM.js";
|
|
9
|
+
import { O as y, a as E } from "./OverlayTrigger-BPwYjPfK.js";
|
|
10
|
+
const x = "flow--popover", N = "flow--popover--content", T = "flow--popover--tip", s = {
|
|
11
|
+
popover: x,
|
|
12
|
+
content: N,
|
|
13
|
+
tip: T,
|
|
14
|
+
"popover-slide": "flow--popover--popover-slide"
|
|
15
|
+
}, M = a("Popover", (r) => {
|
|
16
|
+
const {
|
|
17
|
+
children: t,
|
|
18
|
+
className: n,
|
|
19
|
+
contentClassName: c,
|
|
20
|
+
isDialogContent: i = !1,
|
|
21
|
+
controller: m,
|
|
22
|
+
withTip: v,
|
|
23
|
+
refProp: f,
|
|
24
|
+
defaultOpen: g = !1,
|
|
25
|
+
...P
|
|
26
|
+
} = r, C = h("Popover", {
|
|
27
|
+
reuseControllerFromContext: !0,
|
|
28
|
+
isDefaultOpen: g
|
|
29
|
+
}), p = m ?? C, d = p.useIsOpen(), O = l(s.popover, n), u = i ? o.Dialog : "div";
|
|
30
|
+
return /* @__PURE__ */ e.createElement(
|
|
31
|
+
o.Popover,
|
|
32
|
+
{
|
|
33
|
+
...P,
|
|
34
|
+
className: O,
|
|
35
|
+
containerPadding: 16,
|
|
36
|
+
ref: f,
|
|
37
|
+
isOpen: d,
|
|
38
|
+
onOpenChange: (w) => p.setOpen(w)
|
|
39
|
+
},
|
|
40
|
+
v && /* @__PURE__ */ e.createElement(o.OverlayArrow, { className: s.tip }, /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16" }, /* @__PURE__ */ e.createElement("path", { d: "M0 0 L8 8 L16 0" }))),
|
|
41
|
+
/* @__PURE__ */ e.createElement(u, { className: l(s.content, c) }, /* @__PURE__ */ e.createElement(y, { type: "Popover", controller: p }, t))
|
|
42
|
+
);
|
|
43
|
+
}), R = a(
|
|
44
|
+
"PopoverTrigger",
|
|
45
|
+
(r) => {
|
|
46
|
+
const { children: t, ...n } = r;
|
|
47
|
+
return /* @__PURE__ */ e.createElement(
|
|
48
|
+
E,
|
|
49
|
+
{
|
|
50
|
+
overlayType: "Popover",
|
|
51
|
+
...n,
|
|
52
|
+
component: o.DialogTrigger
|
|
53
|
+
},
|
|
54
|
+
t
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
export {
|
|
59
|
+
M as P,
|
|
60
|
+
R as a
|
|
61
|
+
};
|
package/dist/Select.js
CHANGED
|
@@ -13,13 +13,11 @@ import "@tabler/icons-react";
|
|
|
13
13
|
import "./Icon-DPoIVASu.js";
|
|
14
14
|
import { I as P } from "./IconChevronDown--OxZLX8L.js";
|
|
15
15
|
import { f as E } from "./flowComponent-DHPUcYyM.js";
|
|
16
|
-
import { P as F } from "./
|
|
16
|
+
import { P as F } from "./PopoverTrigger-Nakex9Lr.js";
|
|
17
17
|
import "mobx";
|
|
18
18
|
import { u as C } from "./useOverlayController-D8pgx8nV.js";
|
|
19
|
-
import "dot-prop";
|
|
20
|
-
import "./context-Cf7tqFtF.js";
|
|
21
19
|
import { TunnelProvider as y, TunnelExit as I } from "@mittwald/react-tunnel";
|
|
22
|
-
import { O as B } from "./
|
|
20
|
+
import { O as B } from "./OverlayTrigger-BPwYjPfK.js";
|
|
23
21
|
const D = "flow--select", L = "flow--select--toggle", u = {
|
|
24
22
|
select: D,
|
|
25
23
|
toggle: L
|
|
@@ -27,13 +25,13 @@ const D = "flow--select", L = "flow--select--toggle", u = {
|
|
|
27
25
|
popover: $,
|
|
28
26
|
options: b
|
|
29
27
|
}, R = (o) => {
|
|
30
|
-
const { className: t, children:
|
|
31
|
-
return /* @__PURE__ */ e.createElement(F, { className: d.popover, controller: s }, /* @__PURE__ */ e.createElement(i.ListBox, { className: l, ...
|
|
32
|
-
},
|
|
28
|
+
const { className: t, children: n, ...r } = o, l = f(d.options, t), s = C("Select");
|
|
29
|
+
return /* @__PURE__ */ e.createElement(F, { className: d.popover, controller: s }, /* @__PURE__ */ e.createElement(i.ListBox, { className: l, ...r }, n));
|
|
30
|
+
}, ne = E("Select", (o) => {
|
|
33
31
|
const {
|
|
34
32
|
children: t,
|
|
35
|
-
className:
|
|
36
|
-
onChange:
|
|
33
|
+
className: n,
|
|
34
|
+
onChange: r = () => {
|
|
37
35
|
},
|
|
38
36
|
onSelectionChange: l = () => {
|
|
39
37
|
},
|
|
@@ -43,7 +41,7 @@ const D = "flow--select", L = "flow--select--toggle", u = {
|
|
|
43
41
|
} = o, g = f(
|
|
44
42
|
u.select,
|
|
45
43
|
c.formField,
|
|
46
|
-
|
|
44
|
+
n
|
|
47
45
|
), x = {
|
|
48
46
|
Label: {
|
|
49
47
|
className: c.label,
|
|
@@ -59,7 +57,7 @@ const D = "flow--select", L = "flow--select--toggle", u = {
|
|
|
59
57
|
tunnelId: "options"
|
|
60
58
|
}
|
|
61
59
|
}, v = (a) => {
|
|
62
|
-
|
|
60
|
+
r(String(a)), l(a);
|
|
63
61
|
}, O = C("Select", {
|
|
64
62
|
reuseControllerFromContext: !0
|
|
65
63
|
}), p = s ?? O, S = p.useIsOpen();
|
|
@@ -80,12 +78,12 @@ const D = "flow--select", L = "flow--select--toggle", u = {
|
|
|
80
78
|
icon: q,
|
|
81
79
|
text: A,
|
|
82
80
|
controlIcon: V
|
|
83
|
-
},
|
|
84
|
-
const { className: t, children:
|
|
85
|
-
return /* @__PURE__ */ e.createElement(i.ListBoxItem, { className: m, ref: l, ...s, id:
|
|
81
|
+
}, re = E("Option", (o) => {
|
|
82
|
+
const { className: t, children: n, value: r, refProp: l, ...s } = o, m = f(j.option, t);
|
|
83
|
+
return /* @__PURE__ */ e.createElement(i.ListBoxItem, { className: m, ref: l, ...s, id: r }, n);
|
|
86
84
|
});
|
|
87
85
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
re as Option,
|
|
87
|
+
ne as Select,
|
|
88
|
+
ne as default
|
|
91
89
|
};
|
package/dist/Tabs.js
CHANGED
|
@@ -6,7 +6,7 @@ import u from "clsx";
|
|
|
6
6
|
import { TunnelExit as C, TunnelProvider as P, TunnelEntry as f } from "@mittwald/react-tunnel";
|
|
7
7
|
import { f as y } from "./flowComponent-DHPUcYyM.js";
|
|
8
8
|
import { useCallbackRef as O } from "use-callback-ref";
|
|
9
|
-
import { a as S, C as A } from "./ContextMenuTrigger-
|
|
9
|
+
import { a as S, C as A } from "./ContextMenuTrigger-Bh65PWwi.js";
|
|
10
10
|
import { M as B } from "./MenuItem-DcfYvfPJ.js";
|
|
11
11
|
import { B as K } from "./Button-DQtavSbo.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.219",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"@chakra-ui/live-region": "^2.1.0",
|
|
302
302
|
"@internationalized/date": "^3.5.5",
|
|
303
303
|
"@internationalized/string-compiler": "^3.2.4",
|
|
304
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
304
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.219",
|
|
305
305
|
"@mittwald/react-use-promise": "^2.4.0",
|
|
306
306
|
"@react-aria/utils": "^3.25.2",
|
|
307
307
|
"@react-types/shared": "^3.24.1",
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
},
|
|
328
328
|
"devDependencies": {
|
|
329
329
|
"@faker-js/faker": "^8.4.1",
|
|
330
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
330
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.219",
|
|
331
331
|
"@mittwald/react-use-promise": "^2.4.0",
|
|
332
332
|
"@nx/storybook": "^19.6.4",
|
|
333
333
|
"@storybook/addon-a11y": "^8.2.9",
|
|
@@ -405,5 +405,5 @@
|
|
|
405
405
|
"optional": true
|
|
406
406
|
}
|
|
407
407
|
},
|
|
408
|
-
"gitHead": "
|
|
408
|
+
"gitHead": "e62c8c29a208aeb9e7971a854fc54a2caf724332"
|
|
409
409
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import a from "react";
|
|
4
|
-
import { u as l, o as c } from "./context-Cf7tqFtF.js";
|
|
5
|
-
const i = (e) => {
|
|
6
|
-
const { type: t, controller: r, children: o } = e, n = l();
|
|
7
|
-
return /* @__PURE__ */ a.createElement(
|
|
8
|
-
c.Provider,
|
|
9
|
-
{
|
|
10
|
-
value: {
|
|
11
|
-
...n,
|
|
12
|
-
[t]: r
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
o
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
i as O
|
|
20
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import r from "react";
|
|
4
|
-
import { O as m } from "./context-Cf7tqFtF.js";
|
|
5
|
-
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import { P as i } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
-
import "@react-aria/utils";
|
|
8
|
-
import "remeda";
|
|
9
|
-
import { O as c } from "./OverlayContextProvider-xvILXWn5.js";
|
|
10
|
-
const g = (o) => {
|
|
11
|
-
const {
|
|
12
|
-
overlayType: t,
|
|
13
|
-
isDefaultOpen: n = !1,
|
|
14
|
-
component: p,
|
|
15
|
-
children: s
|
|
16
|
-
} = o, e = m.useNew({ isDefaultOpen: n }), a = e.useIsOpen(), l = {
|
|
17
|
-
Button: {
|
|
18
|
-
onPress: e.open
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
return /* @__PURE__ */ r.createElement(c, { type: t, controller: e }, /* @__PURE__ */ r.createElement(i, { props: l, mergeInParentContext: !0 }, /* @__PURE__ */ r.createElement(p, { isOpen: a }, s)));
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
g as O
|
|
25
|
-
};
|
package/dist/Popover-Cv7qj8sY.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import o from "react";
|
|
4
|
-
import * as t from "react-aria-components";
|
|
5
|
-
import n from "clsx";
|
|
6
|
-
import "mobx";
|
|
7
|
-
import { u as h } from "./useOverlayController-D8pgx8nV.js";
|
|
8
|
-
import { f as g } from "./flowComponent-DHPUcYyM.js";
|
|
9
|
-
import { O as x } from "./OverlayContextProvider-xvILXWn5.js";
|
|
10
|
-
const E = "flow--popover", N = "flow--popover--content", y = "flow--popover--tip", r = {
|
|
11
|
-
popover: E,
|
|
12
|
-
content: N,
|
|
13
|
-
tip: y,
|
|
14
|
-
"popover-slide": "flow--popover--popover-slide"
|
|
15
|
-
}, M = g("Popover", (p) => {
|
|
16
|
-
const {
|
|
17
|
-
children: s,
|
|
18
|
-
className: l,
|
|
19
|
-
contentClassName: a,
|
|
20
|
-
isDialogContent: c = !1,
|
|
21
|
-
controller: m,
|
|
22
|
-
withTip: i,
|
|
23
|
-
refProp: v,
|
|
24
|
-
defaultOpen: f = !1,
|
|
25
|
-
...C
|
|
26
|
-
} = p, d = h("Popover", {
|
|
27
|
-
reuseControllerFromContext: !0,
|
|
28
|
-
isDefaultOpen: f
|
|
29
|
-
}), e = m ?? d, O = e.useIsOpen(), P = n(r.popover, l), w = c ? t.Dialog : "div";
|
|
30
|
-
return /* @__PURE__ */ o.createElement(
|
|
31
|
-
t.Popover,
|
|
32
|
-
{
|
|
33
|
-
...C,
|
|
34
|
-
className: P,
|
|
35
|
-
containerPadding: 16,
|
|
36
|
-
ref: v,
|
|
37
|
-
isOpen: O,
|
|
38
|
-
onOpenChange: (u) => e.setOpen(u)
|
|
39
|
-
},
|
|
40
|
-
i && /* @__PURE__ */ o.createElement(t.OverlayArrow, { className: r.tip }, /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16" }, /* @__PURE__ */ o.createElement("path", { d: "M0 0 L8 8 L16 0" }))),
|
|
41
|
-
/* @__PURE__ */ o.createElement(w, { className: n(r.content, a) }, /* @__PURE__ */ o.createElement(x, { type: "Popover", controller: e }, s))
|
|
42
|
-
);
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
M as P
|
|
46
|
-
};
|