@mittwald/flow-react-components 0.1.0-alpha.91 → 0.1.0-alpha.93
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/{Action-CPBrLRz3.js → Action-BoUrh0Ww.js} +6 -6
- package/dist/Action.js +1 -1
- package/dist/{Button-DJcL25jy.js → Button-yGwfBM_W.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CopyButton.js +2 -2
- package/dist/HeaderNavigation.js +7 -7
- package/dist/IllustratedMessage.js +5 -5
- package/dist/LabeledValue.js +5 -5
- package/dist/List.js +7 -7
- package/dist/Navigation.js +35 -27
- package/dist/NumberField.js +24 -24
- package/dist/OffCanvas.js +8 -8
- package/dist/OverlayTrigger.js +1 -1
- package/dist/Tabs.js +3 -3
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/package.json +17 -17
|
@@ -13,10 +13,10 @@ import { u as x, A as O } from "./context-DJetA3qV.js";
|
|
|
13
13
|
import { TunnelProvider as M, TunnelExit as R } from "@mittwald/react-tunnel";
|
|
14
14
|
import { makeObservable as B, observable as I, action as T } from "mobx";
|
|
15
15
|
import { u as N } from "./useSelector-DpU7_HMO.js";
|
|
16
|
-
const
|
|
16
|
+
const v = (t) => (...e) => {
|
|
17
17
|
const n = [...t], s = n.shift();
|
|
18
18
|
if (s) {
|
|
19
|
-
const o = s(...e), r = () => n.length === 0 ? o :
|
|
19
|
+
const o = s(...e), r = () => n.length === 0 ? o : v(n)(...e);
|
|
20
20
|
return o instanceof Promise ? o.then(r) : r();
|
|
21
21
|
}
|
|
22
22
|
}, b = "flowBreakActionMarker";
|
|
@@ -70,7 +70,7 @@ class H {
|
|
|
70
70
|
this.isDone || this.state.updateState("isPending");
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
class
|
|
73
|
+
class k {
|
|
74
74
|
constructor() {
|
|
75
75
|
f(this, "state", "isIdle");
|
|
76
76
|
B(this, {
|
|
@@ -79,7 +79,7 @@ class v {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
static useNew() {
|
|
82
|
-
return C(new
|
|
82
|
+
return C(new k()).current;
|
|
83
83
|
}
|
|
84
84
|
updateState(e) {
|
|
85
85
|
this.state = e;
|
|
@@ -118,7 +118,7 @@ const L = () => {
|
|
|
118
118
|
n(), r(i), l();
|
|
119
119
|
}
|
|
120
120
|
}, q = (t) => {
|
|
121
|
-
const { isConfirmationAction: e, showFeedback: n } = t, s = U(t), o = x(), r =
|
|
121
|
+
const { isConfirmationAction: e, showFeedback: n } = t, s = U(t), o = x(), r = k.useNew(), l = !e, i = e ? void 0 : o, h = e ? o : void 0, u = v([s, i]);
|
|
122
122
|
return {
|
|
123
123
|
callAction: (...c) => {
|
|
124
124
|
const A = new H(r, c, {
|
|
@@ -169,7 +169,7 @@ const L = () => {
|
|
|
169
169
|
ButtonGroup: {
|
|
170
170
|
Button: {
|
|
171
171
|
render: (u, d) => {
|
|
172
|
-
const {
|
|
172
|
+
const { color: c } = d;
|
|
173
173
|
return c === "secondary" ? /* @__PURE__ */ a.createElement(m, { break: !0 }, /* @__PURE__ */ a.createElement(m, { closeOverlay: !0 }, /* @__PURE__ */ a.createElement(u, { ...d }))) : /* @__PURE__ */ a.createElement(m, { closeOverlay: !0 }, /* @__PURE__ */ a.createElement(m, { ...t, isConfirmationAction: !0 }, /* @__PURE__ */ a.createElement(u, { ...d })));
|
|
174
174
|
}
|
|
175
175
|
}
|
package/dist/Action.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import o, { useEffect as S } from "react";
|
|
4
4
|
import * as x from "react-aria-components";
|
|
5
5
|
import F from "clsx";
|
|
6
|
-
import { C as
|
|
7
|
-
import { P as
|
|
6
|
+
import { C as E } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
|
+
import { P as y } from "./PropsContextProvider-DZvwqHLP.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "./propsContext-CauylOgH.js";
|
|
10
10
|
import "remeda";
|
|
@@ -65,8 +65,8 @@ const B = "flow--button", L = "flow--button--content", k = "flow--button--state-
|
|
|
65
65
|
}, _ = (e) => ((e.isPending || e.isSucceeded || e.isFailed || e["aria-disabled"]) && (e = { ...e }, e.onPress = void 0, e.onPressStart = void 0, e.onPressEnd = void 0, e.onPressChange = void 0, e.onPressUp = void 0, e.onKeyDown = void 0, e.onKeyUp = void 0), e), ve = A("Button", (e) => {
|
|
66
66
|
e = _(e);
|
|
67
67
|
const {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
color: c = "primary",
|
|
69
|
+
variant: i = "solid",
|
|
70
70
|
children: a,
|
|
71
71
|
className: r,
|
|
72
72
|
size: s = "m",
|
|
@@ -109,7 +109,7 @@ const B = "flow--button", L = "flow--button--content", k = "flow--button--state-
|
|
|
109
109
|
className: t.avatar
|
|
110
110
|
}
|
|
111
111
|
}, m = d ? C : l ? I : n ? D : void 0, w = m && /* @__PURE__ */ o.createElement(m, { size: s, className: t.stateIcon }), p = typeof a == "string";
|
|
112
|
-
return /* @__PURE__ */ o.createElement(
|
|
112
|
+
return /* @__PURE__ */ o.createElement(E, null, /* @__PURE__ */ o.createElement(x.Button, { className: v, ref: u, ...g }, /* @__PURE__ */ o.createElement(y, { props: P }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(N, { if: p }, /* @__PURE__ */ o.createElement(h, null, a)))), w));
|
|
113
113
|
});
|
|
114
114
|
export {
|
|
115
115
|
ve as B
|
package/dist/Button.js
CHANGED
package/dist/ButtonGroup.js
CHANGED
package/dist/CopyButton.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
4
|
import a from "copy-to-clipboard";
|
|
5
|
-
import { B as i } from "./Button-
|
|
5
|
+
import { B as i } from "./Button-yGwfBM_W.js";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
7
|
import "./Icon-DpcNiaNb.js";
|
|
8
8
|
import { I as c } from "./IconCopy-BOSbNCO3.js";
|
|
@@ -15,7 +15,7 @@ import "@react-aria/utils";
|
|
|
15
15
|
import "remeda";
|
|
16
16
|
import "dot-prop";
|
|
17
17
|
import { f as C } from "./flowComponent-C4FfRbD8.js";
|
|
18
|
-
import { A as E } from "./Action-
|
|
18
|
+
import { A as E } from "./Action-BoUrh0Ww.js";
|
|
19
19
|
const B = {
|
|
20
20
|
"de-DE": {
|
|
21
21
|
"copyButton.copy": "Kopieren"
|
package/dist/HeaderNavigation.js
CHANGED
|
@@ -12,11 +12,11 @@ const p = "flow--header-navigation", E = "flow--header-navigation--link", f = "f
|
|
|
12
12
|
link: E,
|
|
13
13
|
button: f,
|
|
14
14
|
inverse: g
|
|
15
|
-
},
|
|
16
|
-
const { children:
|
|
15
|
+
}, P = (o) => {
|
|
16
|
+
const { children: i, className: l, inverse: r, ...s } = o, c = v(
|
|
17
17
|
n.headerNavigation,
|
|
18
18
|
r && n.inverse,
|
|
19
|
-
|
|
19
|
+
l
|
|
20
20
|
), m = {
|
|
21
21
|
Link: {
|
|
22
22
|
render: (a, t) => /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(a, { ...t, className: n.link, unstyled: !0 }, /* @__PURE__ */ e.createElement(u, null, t.children)))
|
|
@@ -27,15 +27,15 @@ const p = "flow--header-navigation", E = "flow--header-navigation--link", f = "f
|
|
|
27
27
|
{
|
|
28
28
|
...t,
|
|
29
29
|
className: n.button,
|
|
30
|
-
|
|
30
|
+
variant: "plain",
|
|
31
31
|
inverse: r
|
|
32
32
|
}
|
|
33
33
|
))
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(d, { props: m },
|
|
36
|
+
return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(d, { props: m }, i)));
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
P as HeaderNavigation,
|
|
40
|
+
P as default
|
|
41
41
|
};
|
|
@@ -6,16 +6,16 @@ import "./propsContext-CauylOgH.js";
|
|
|
6
6
|
import { P as m } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
const d = "flow--illustrated-message--illustrated-message-container", g = "flow--illustrated-message", u = "flow--illustrated-message--icon", f = "flow--illustrated-message--heading", p = "flow--illustrated-message--text", x = "flow--illustrated-message--button",
|
|
9
|
+
const d = "flow--illustrated-message--illustrated-message-container", g = "flow--illustrated-message", u = "flow--illustrated-message--icon", f = "flow--illustrated-message--heading", p = "flow--illustrated-message--text", x = "flow--illustrated-message--button", N = "flow--illustrated-message--negative", e = {
|
|
10
10
|
illustratedMessageContainer: d,
|
|
11
11
|
illustratedMessage: g,
|
|
12
12
|
icon: u,
|
|
13
13
|
heading: f,
|
|
14
14
|
text: p,
|
|
15
15
|
button: x,
|
|
16
|
-
negative:
|
|
16
|
+
negative: N
|
|
17
17
|
}, E = (a) => {
|
|
18
|
-
const { className: l, children: o, variant: n = "info", ...
|
|
18
|
+
const { className: l, children: o, variant: n = "info", ...r } = a, i = s(e.illustratedMessageContainer, l), c = {
|
|
19
19
|
Icon: {
|
|
20
20
|
className: e.icon,
|
|
21
21
|
size: "l"
|
|
@@ -28,10 +28,10 @@ const d = "flow--illustrated-message--illustrated-message-container", g = "flow-
|
|
|
28
28
|
},
|
|
29
29
|
Button: {
|
|
30
30
|
className: e.button,
|
|
31
|
-
|
|
31
|
+
color: "accent"
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
return /* @__PURE__ */ t.createElement("div", { ...
|
|
34
|
+
return /* @__PURE__ */ t.createElement("div", { ...r, className: i }, /* @__PURE__ */ t.createElement("div", { className: s(e.illustratedMessage, e[n]) }, /* @__PURE__ */ t.createElement(m, { props: c }, o)));
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
37
|
E as IllustratedMessage,
|
package/dist/LabeledValue.js
CHANGED
|
@@ -11,25 +11,25 @@ const b = "flow--labeled-value", p = "flow--labeled-value--button", u = "flow--l
|
|
|
11
11
|
labeledValue: b,
|
|
12
12
|
button: p,
|
|
13
13
|
label: u
|
|
14
|
-
},
|
|
14
|
+
}, P = (t) => {
|
|
15
15
|
const { children: a, className: o } = t, s = r(e.labeledValue, o), n = {
|
|
16
16
|
Label: {
|
|
17
17
|
className: e.label
|
|
18
18
|
},
|
|
19
19
|
CopyButton: {
|
|
20
20
|
className: e.button,
|
|
21
|
-
|
|
21
|
+
variant: "plain",
|
|
22
22
|
size: "s"
|
|
23
23
|
},
|
|
24
24
|
Button: {
|
|
25
25
|
className: e.button,
|
|
26
|
-
|
|
26
|
+
variant: "plain",
|
|
27
27
|
size: "s"
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
return /* @__PURE__ */ l.createElement(m, null, /* @__PURE__ */ l.createElement("div", { className: s }, /* @__PURE__ */ l.createElement(c, { props: n }, a)));
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
P as LabeledValue,
|
|
34
|
+
P as default
|
|
35
35
|
};
|
package/dist/List.js
CHANGED
|
@@ -12,7 +12,7 @@ import { T as b } from "./Text-DlBpZns-.js";
|
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
import "./Icon-DpcNiaNb.js";
|
|
14
14
|
import { I as $ } from "./IconChevronDown-CbK0gKMB.js";
|
|
15
|
-
import { B as h } from "./Button-
|
|
15
|
+
import { B as h } from "./Button-yGwfBM_W.js";
|
|
16
16
|
import { useMessageFormatter as H, useLocalizedStringFormatter as q } from "react-aria";
|
|
17
17
|
import K from "clsx";
|
|
18
18
|
import { I as rt } from "./IconClose-CwV3QUi2.js";
|
|
@@ -74,7 +74,7 @@ const J = Y({}), m = () => Z(J).list, Et = (i) => /* @__PURE__ */ r.createElemen
|
|
|
74
74
|
},
|
|
75
75
|
"setSorting"
|
|
76
76
|
) : /* @__PURE__ */ r.createElement(v, { locales: g }, "sorting"));
|
|
77
|
-
return /* @__PURE__ */ r.createElement(O.MenuTrigger, null, /* @__PURE__ */ r.createElement(h, {
|
|
77
|
+
return /* @__PURE__ */ r.createElement(O.MenuTrigger, null, /* @__PURE__ */ r.createElement(h, { variant: "soft", size: "s", color: "secondary" }, a, /* @__PURE__ */ r.createElement($, null)), /* @__PURE__ */ r.createElement(
|
|
78
78
|
x,
|
|
79
79
|
{
|
|
80
80
|
selectionMode: "single",
|
|
@@ -89,7 +89,7 @@ const J = Y({}), m = () => Z(J).list, Et = (i) => /* @__PURE__ */ r.createElemen
|
|
|
89
89
|
const { filter: t } = i, e = t.values.map((n) => /* @__PURE__ */ r.createElement(U, { key: t.getValueId(n), id: String(n) }, String(n))), a = t.values.filter((n) => t.isValueActive(n)).map((n) => String(n)), s = (n) => {
|
|
90
90
|
t.toggleValue(n);
|
|
91
91
|
};
|
|
92
|
-
return /* @__PURE__ */ r.createElement(O.MenuTrigger, null, /* @__PURE__ */ r.createElement(h, {
|
|
92
|
+
return /* @__PURE__ */ r.createElement(O.MenuTrigger, null, /* @__PURE__ */ r.createElement(h, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ r.createElement(b, null, t.name ?? t.property), /* @__PURE__ */ r.createElement($, null)), /* @__PURE__ */ r.createElement(
|
|
93
93
|
x,
|
|
94
94
|
{
|
|
95
95
|
onAction: s,
|
|
@@ -109,7 +109,7 @@ const J = Y({}), m = () => Z(J).list, Et = (i) => /* @__PURE__ */ r.createElemen
|
|
|
109
109
|
(e) => e.values.filter((a) => e.isValueActive(a)).map((a) => /* @__PURE__ */ r.createElement(
|
|
110
110
|
h,
|
|
111
111
|
{
|
|
112
|
-
|
|
112
|
+
variant: "soft",
|
|
113
113
|
size: "s",
|
|
114
114
|
key: String(a),
|
|
115
115
|
onPress: () => e.deactivateValue(a)
|
|
@@ -123,7 +123,7 @@ const J = Y({}), m = () => Z(J).list, Et = (i) => /* @__PURE__ */ r.createElemen
|
|
|
123
123
|
{
|
|
124
124
|
className: R.clearButton,
|
|
125
125
|
size: "s",
|
|
126
|
-
|
|
126
|
+
variant: "plain",
|
|
127
127
|
onPress: () => i.clearFilters()
|
|
128
128
|
},
|
|
129
129
|
/* @__PURE__ */ r.createElement(v, { locales: g }, "resetAll")
|
|
@@ -573,7 +573,7 @@ const Kt = "flow--list--items--item-list", jt = "flow--list--items--is-loading",
|
|
|
573
573
|
return /* @__PURE__ */ r.createElement(st, null, /* @__PURE__ */ r.createElement(
|
|
574
574
|
h,
|
|
575
575
|
{
|
|
576
|
-
|
|
576
|
+
variant: "plain",
|
|
577
577
|
className: t,
|
|
578
578
|
"aria-label": a.format("options")
|
|
579
579
|
},
|
|
@@ -655,7 +655,7 @@ const le = "flow--list--footer", ce = {
|
|
|
655
655
|
isPending: a,
|
|
656
656
|
...i,
|
|
657
657
|
onPress: () => e.batches.nextBatch(),
|
|
658
|
-
|
|
658
|
+
variant: "plain",
|
|
659
659
|
isDisabled: !n,
|
|
660
660
|
size: "s"
|
|
661
661
|
},
|
package/dist/Navigation.js
CHANGED
|
@@ -1,49 +1,57 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import t, { useId as
|
|
4
|
-
import
|
|
5
|
-
import { d
|
|
3
|
+
import t, { useId as v } from "react";
|
|
4
|
+
import m from "clsx";
|
|
5
|
+
import { d } from "./deepFindOfType-6pG0fH7S.js";
|
|
6
6
|
import { W as f } from "./Wrap-DGT1h1o3.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
|
-
import { P as
|
|
8
|
+
import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import {
|
|
12
|
-
const N = "flow--navigation",
|
|
11
|
+
import { TunnelProvider as x, TunnelExit as E } from "@mittwald/react-tunnel";
|
|
12
|
+
const N = "flow--navigation", b = "flow--navigation--item", w = "flow--navigation--icon", I = "flow--navigation--text", C = "flow--navigation--control-icon", o = {
|
|
13
13
|
navigation: N,
|
|
14
|
-
item:
|
|
15
|
-
icon:
|
|
16
|
-
text:
|
|
17
|
-
controlIcon:
|
|
18
|
-
},
|
|
19
|
-
const { className:
|
|
14
|
+
item: b,
|
|
15
|
+
icon: w,
|
|
16
|
+
text: I,
|
|
17
|
+
controlIcon: C
|
|
18
|
+
}, j = (a) => {
|
|
19
|
+
const { className: i, children: e, ...r } = a, l = m(o.navigation, i), n = !!d(e, P), s = {
|
|
20
20
|
Link: {
|
|
21
|
-
render: (
|
|
21
|
+
render: (u, g) => /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(u, { ...g, className: o.item, unstyled: !0 })),
|
|
22
22
|
Text: {
|
|
23
|
-
className:
|
|
23
|
+
className: o.text
|
|
24
24
|
},
|
|
25
25
|
Icon: {
|
|
26
|
-
className:
|
|
26
|
+
className: o.icon
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
return /* @__PURE__ */ t.createElement("nav", { className:
|
|
31
|
-
},
|
|
32
|
-
navigationGroup:
|
|
33
|
-
label:
|
|
34
|
-
},
|
|
35
|
-
const { children:
|
|
30
|
+
return /* @__PURE__ */ t.createElement("nav", { className: l, role: "navigation", ...r }, /* @__PURE__ */ t.createElement(p, { props: s }, /* @__PURE__ */ t.createElement(f, { if: !n }, /* @__PURE__ */ t.createElement("ul", null, e))));
|
|
31
|
+
}, y = "flow--navigation--navigation-group", G = "flow--navigation--navigation-group--label", c = {
|
|
32
|
+
navigationGroup: y,
|
|
33
|
+
label: G
|
|
34
|
+
}, P = (a) => {
|
|
35
|
+
const { children: i, className: e, ...r } = a, l = m(c.navigationGroup, e), n = v(), s = {
|
|
36
36
|
Label: {
|
|
37
|
-
tunnelId:
|
|
37
|
+
tunnelId: "Label",
|
|
38
38
|
id: n,
|
|
39
|
-
className:
|
|
39
|
+
className: c.label,
|
|
40
40
|
"aria-hidden": !0
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */ t.createElement(
|
|
43
|
+
return /* @__PURE__ */ t.createElement(x, null, /* @__PURE__ */ t.createElement(
|
|
44
|
+
"section",
|
|
45
|
+
{
|
|
46
|
+
"aria-labelledby": n,
|
|
47
|
+
className: l,
|
|
48
|
+
...r
|
|
49
|
+
},
|
|
50
|
+
/* @__PURE__ */ t.createElement(p, { mergeInParentContext: !0, props: s }, /* @__PURE__ */ t.createElement(E, { id: "Label" }), /* @__PURE__ */ t.createElement("ul", null, i))
|
|
51
|
+
));
|
|
44
52
|
};
|
|
45
53
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
j as Navigation,
|
|
55
|
+
P as NavigationGroup,
|
|
56
|
+
j as default
|
|
49
57
|
};
|
package/dist/NumberField.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as r from "react-aria-components";
|
|
5
|
-
import { s as
|
|
5
|
+
import { s as t } from "./FormField.module-DHK6nIcD.js";
|
|
6
6
|
import E from "clsx";
|
|
7
7
|
import { C as N } from "./ClearPropsContext-CeCMjUK9.js";
|
|
8
8
|
import { P as b } from "./PropsContextProvider-DZvwqHLP.js";
|
|
@@ -10,30 +10,30 @@ import "@react-aria/utils";
|
|
|
10
10
|
import "./propsContext-CauylOgH.js";
|
|
11
11
|
import "remeda";
|
|
12
12
|
import { F as I } from "./FieldError-CDPZJvma.js";
|
|
13
|
-
import { B as
|
|
13
|
+
import { B as c } from "./Button-yGwfBM_W.js";
|
|
14
14
|
import "@tabler/icons-react";
|
|
15
15
|
import "./Icon-DpcNiaNb.js";
|
|
16
16
|
import { I as C } from "./IconChevronDown-CbK0gKMB.js";
|
|
17
17
|
import { I as h, a as F, b as P } from "./IconPlus-DS099is1.js";
|
|
18
18
|
import { f as w } from "./flowComponent-C4FfRbD8.js";
|
|
19
|
-
const B = "flow--number-field--group", g = "flow--number-field--input",
|
|
19
|
+
const B = "flow--number-field--group", g = "flow--number-field--input", v = "flow--number-field--decrement-button", x = "flow--number-field--increment-button", y = "flow--number-field--coarse-pointer-icon", D = "flow--number-field--touch-icon", o = {
|
|
20
20
|
group: B,
|
|
21
21
|
input: g,
|
|
22
|
-
decrementButton:
|
|
23
|
-
incrementButton:
|
|
24
|
-
coarsePointerIcon:
|
|
22
|
+
decrementButton: v,
|
|
23
|
+
incrementButton: x,
|
|
24
|
+
coarsePointerIcon: y,
|
|
25
25
|
touchIcon: D
|
|
26
26
|
}, K = w("NumberField", (n) => {
|
|
27
|
-
const { children:
|
|
27
|
+
const { children: a, className: m, ref: l, onChange: s, ...i } = n, u = E(t.formField, m), p = {
|
|
28
28
|
Label: {
|
|
29
|
-
className:
|
|
29
|
+
className: t.label,
|
|
30
30
|
optional: !n.isRequired
|
|
31
31
|
},
|
|
32
32
|
FieldDescription: {
|
|
33
|
-
className:
|
|
33
|
+
className: t.fieldDescription
|
|
34
34
|
},
|
|
35
35
|
FieldError: {
|
|
36
|
-
className:
|
|
36
|
+
className: t.customFieldError
|
|
37
37
|
}
|
|
38
38
|
}, f = (d) => {
|
|
39
39
|
setTimeout(() => {
|
|
@@ -47,31 +47,31 @@ const B = "flow--number-field--group", g = "flow--number-field--input", y = "flo
|
|
|
47
47
|
className: u,
|
|
48
48
|
onChange: f
|
|
49
49
|
},
|
|
50
|
-
/* @__PURE__ */ e.createElement(r.Group, { className:
|
|
51
|
-
|
|
50
|
+
/* @__PURE__ */ e.createElement(r.Group, { className: o.group }, /* @__PURE__ */ e.createElement(
|
|
51
|
+
c,
|
|
52
52
|
{
|
|
53
53
|
slot: "decrement",
|
|
54
|
-
className:
|
|
54
|
+
className: o.decrementButton,
|
|
55
55
|
size: "s",
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
variant: "plain",
|
|
57
|
+
color: "secondary"
|
|
58
58
|
},
|
|
59
59
|
/* @__PURE__ */ e.createElement(C, null),
|
|
60
|
-
/* @__PURE__ */ e.createElement(h, { className:
|
|
61
|
-
), /* @__PURE__ */ e.createElement(r.Input, { className:
|
|
62
|
-
|
|
60
|
+
/* @__PURE__ */ e.createElement(h, { className: o.coarsePointerIcon })
|
|
61
|
+
), /* @__PURE__ */ e.createElement(r.Input, { className: o.input, ref: l }), /* @__PURE__ */ e.createElement(
|
|
62
|
+
c,
|
|
63
63
|
{
|
|
64
64
|
slot: "increment",
|
|
65
|
-
className:
|
|
65
|
+
className: o.incrementButton,
|
|
66
66
|
size: "s",
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
variant: "plain",
|
|
68
|
+
color: "secondary"
|
|
69
69
|
},
|
|
70
70
|
/* @__PURE__ */ e.createElement(F, null),
|
|
71
|
-
/* @__PURE__ */ e.createElement(P, { className:
|
|
71
|
+
/* @__PURE__ */ e.createElement(P, { className: o.coarsePointerIcon })
|
|
72
72
|
)),
|
|
73
|
-
/* @__PURE__ */ e.createElement(b, { props: p },
|
|
74
|
-
/* @__PURE__ */ e.createElement(I, { className:
|
|
73
|
+
/* @__PURE__ */ e.createElement(b, { props: p }, a),
|
|
74
|
+
/* @__PURE__ */ e.createElement(I, { className: t.fieldError })
|
|
75
75
|
));
|
|
76
76
|
});
|
|
77
77
|
export {
|
package/dist/OffCanvas.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
|
-
import
|
|
5
|
-
import { B as
|
|
4
|
+
import c from "clsx";
|
|
5
|
+
import { B as f } from "./Button-yGwfBM_W.js";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
7
|
import "./Icon-DpcNiaNb.js";
|
|
8
8
|
import { I as m } from "./IconClose-CwV3QUi2.js";
|
|
9
|
-
import { A as i } from "./Action-
|
|
9
|
+
import { A as i } from "./Action-BoUrh0Ww.js";
|
|
10
10
|
import { O as p } from "./Overlay-ofdfFqqi.js";
|
|
11
11
|
import "mobx";
|
|
12
12
|
import "./index-0qLHBjoi.js";
|
|
@@ -20,17 +20,17 @@ const u = "flow--off-canvas", d = "flow--off-canvas--close-button", t = {
|
|
|
20
20
|
"off-canvas-slide-out": "flow--off-canvas--off-canvas-slide-out",
|
|
21
21
|
closeButton: d
|
|
22
22
|
}, z = (s) => {
|
|
23
|
-
const { controller: a, children: e, className:
|
|
23
|
+
const { controller: a, children: e, className: r } = s, n = c(t.offCanvas, r), l = {
|
|
24
24
|
Heading: {
|
|
25
25
|
slot: "title"
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ o.createElement(p, { controller: a, className:
|
|
29
|
-
|
|
28
|
+
return /* @__PURE__ */ o.createElement(p, { controller: a, className: n }, /* @__PURE__ */ o.createElement(i, { closeOverlay: !0 }, /* @__PURE__ */ o.createElement(
|
|
29
|
+
f,
|
|
30
30
|
{
|
|
31
|
-
|
|
31
|
+
variant: "plain",
|
|
32
32
|
size: "s",
|
|
33
|
-
|
|
33
|
+
color: "secondary",
|
|
34
34
|
className: t.closeButton
|
|
35
35
|
},
|
|
36
36
|
/* @__PURE__ */ o.createElement(m, null)
|
package/dist/OverlayTrigger.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import r from "react";
|
|
4
4
|
import "mobx";
|
|
5
5
|
import { u as l, a as m } from "./index-0qLHBjoi.js";
|
|
6
|
-
import { A as p } from "./Action-
|
|
6
|
+
import { A as p } from "./Action-BoUrh0Ww.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
8
|
import { P as i } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
package/dist/Tabs.js
CHANGED
|
@@ -9,7 +9,7 @@ import { f as S } from "./flowComponent-C4FfRbD8.js";
|
|
|
9
9
|
import { useCallbackRef as B } from "use-callback-ref";
|
|
10
10
|
import { C as K } from "./ContextMenu-B3m9vxOe.js";
|
|
11
11
|
import { M as L } from "./MenuItem-B5kgO_0u.js";
|
|
12
|
-
import { B as F } from "./Button-
|
|
12
|
+
import { B as F } from "./Button-yGwfBM_W.js";
|
|
13
13
|
import "@tabler/icons-react";
|
|
14
14
|
import "./Icon-DpcNiaNb.js";
|
|
15
15
|
import { I as A } from "./IconContextMenu-DD5RGOEW.js";
|
|
@@ -60,9 +60,9 @@ const W = "flow--tabs", $ = "flow--tabs--list", k = {
|
|
|
60
60
|
}, v = /* @__PURE__ */ e.createElement(E.TabList, { className: u.titles, ref: c.ref }, /* @__PURE__ */ e.createElement(f, { id: "Titles" })), g = l && /* @__PURE__ */ e.createElement(U, { id: a }), w = l && /* @__PURE__ */ e.createElement(O, null, /* @__PURE__ */ e.createElement(
|
|
61
61
|
F,
|
|
62
62
|
{
|
|
63
|
-
|
|
63
|
+
variant: "soft",
|
|
64
64
|
className: u.contextMenuButton,
|
|
65
|
-
|
|
65
|
+
color: "secondary",
|
|
66
66
|
"aria-labelledby": a
|
|
67
67
|
},
|
|
68
68
|
/* @__PURE__ */ e.createElement(A, null)
|
|
@@ -2,11 +2,11 @@ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
|
2
2
|
import { PropsWithChildren, default as React } from 'react';
|
|
3
3
|
|
|
4
4
|
import * as Aria from "react-aria-components";
|
|
5
|
-
export interface ButtonProps extends PropsWithChildren<
|
|
5
|
+
export interface ButtonProps extends PropsWithChildren<Aria.ButtonProps>, FlowComponentProps<"Button"> {
|
|
6
6
|
/** @default "primary" */
|
|
7
|
-
|
|
7
|
+
color?: "primary" | "accent" | "secondary" | "danger";
|
|
8
8
|
/** @default "solid" */
|
|
9
|
-
|
|
9
|
+
variant?: "plain" | "solid" | "soft";
|
|
10
10
|
/** @default "m" */
|
|
11
11
|
size?: "m" | "s";
|
|
12
12
|
"aria-disabled"?: boolean;
|
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.93",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -243,12 +243,12 @@
|
|
|
243
243
|
},
|
|
244
244
|
"dependencies": {
|
|
245
245
|
"@chakra-ui/live-region": "^2.1.0",
|
|
246
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
246
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.93",
|
|
247
247
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
248
|
-
"@react-aria/utils": "^3.
|
|
249
|
-
"@react-types/shared": "^3.
|
|
248
|
+
"@react-aria/utils": "^3.24.0",
|
|
249
|
+
"@react-types/shared": "^3.23.0",
|
|
250
250
|
"@storybook/test": "^8.0.9",
|
|
251
|
-
"@tabler/icons-react": "^3.
|
|
251
|
+
"@tabler/icons-react": "^3.3.0",
|
|
252
252
|
"@tanstack/react-table": "^8.16.0",
|
|
253
253
|
"clsx": "^2.1.1",
|
|
254
254
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -258,16 +258,16 @@
|
|
|
258
258
|
"mobx": "^6.12.3",
|
|
259
259
|
"mobx-react-lite": "^4.0.7",
|
|
260
260
|
"object-code": "^1.3.3",
|
|
261
|
-
"react-aria": "^3.
|
|
262
|
-
"react-aria-components": "^1.
|
|
261
|
+
"react-aria": "^3.33.0",
|
|
262
|
+
"react-aria-components": "^1.2.0",
|
|
263
263
|
"react-children-utilities": "^2.10.0",
|
|
264
|
-
"react-stately": "^3.
|
|
264
|
+
"react-stately": "^3.31.0",
|
|
265
265
|
"remeda": "^1.61.0",
|
|
266
266
|
"use-callback-ref": "^1.3.2"
|
|
267
267
|
},
|
|
268
268
|
"devDependencies": {
|
|
269
269
|
"@faker-js/faker": "^8.4.1",
|
|
270
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
270
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.93",
|
|
271
271
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
272
272
|
"@nx/storybook": "^18.3.4",
|
|
273
273
|
"@storybook/addon-a11y": "^8.0.9",
|
|
@@ -283,19 +283,19 @@
|
|
|
283
283
|
"@storybook/react": "^8.0.9",
|
|
284
284
|
"@storybook/react-vite": "^8.0.9",
|
|
285
285
|
"@storybook/theming": "^8.0.9",
|
|
286
|
-
"@testing-library/dom": "^10.
|
|
286
|
+
"@testing-library/dom": "^10.1.0",
|
|
287
287
|
"@testing-library/jest-dom": "^6.4.2",
|
|
288
288
|
"@testing-library/react": "~14.3.1",
|
|
289
289
|
"@testing-library/user-event": "^14.5.2",
|
|
290
290
|
"@types/invariant": "^2.2.37",
|
|
291
|
-
"@types/node": "20.12.
|
|
291
|
+
"@types/node": "20.12.8",
|
|
292
292
|
"@types/prettier": "^3.0.0",
|
|
293
293
|
"@types/prop-types": "^15.7.12",
|
|
294
294
|
"@types/react": "^18.3.1",
|
|
295
295
|
"@types/react-dom": "^18.3.0",
|
|
296
296
|
"@types/rollup": "^0.54.0",
|
|
297
297
|
"@vitejs/plugin-react": "^4.2.1",
|
|
298
|
-
"@vitest/coverage-v8": "~1.5.
|
|
298
|
+
"@vitest/coverage-v8": "~1.5.3",
|
|
299
299
|
"decamelize": "^6.0.0",
|
|
300
300
|
"fs-jetpack": "^5.1.0",
|
|
301
301
|
"happy-dom": "^14.7.1",
|
|
@@ -310,10 +310,10 @@
|
|
|
310
310
|
"react-dom": "^18.3.1",
|
|
311
311
|
"react-element-to-jsx-string": "^15.0.0",
|
|
312
312
|
"react-hook-form": "^7.51.3",
|
|
313
|
-
"rollup": "^4.17.
|
|
314
|
-
"sass": "^1.
|
|
313
|
+
"rollup": "^4.17.2",
|
|
314
|
+
"sass": "^1.76.0",
|
|
315
315
|
"storybook": "^8.0.9",
|
|
316
|
-
"tsx": "^4.
|
|
316
|
+
"tsx": "^4.8.2",
|
|
317
317
|
"typescript": "^5.4.5",
|
|
318
318
|
"typescript-plugin-css-modules": "^5.1.0",
|
|
319
319
|
"vite": "^5.2.10",
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
"vite-plugin-checker": "^0.6.4",
|
|
322
322
|
"vite-plugin-dts": "^3.9.0",
|
|
323
323
|
"vite-plugin-externalize-deps": "^0.8.0",
|
|
324
|
-
"vitest": "~1.5.
|
|
324
|
+
"vitest": "~1.5.3",
|
|
325
325
|
"yaml": "^2.4.2"
|
|
326
326
|
},
|
|
327
327
|
"peerDependencies": {
|
|
@@ -342,5 +342,5 @@
|
|
|
342
342
|
"optional": true
|
|
343
343
|
}
|
|
344
344
|
},
|
|
345
|
-
"gitHead": "
|
|
345
|
+
"gitHead": "ba6ed84d5b3ec4dce8aa6789929d47ca095d9afc"
|
|
346
346
|
}
|