@mittwald/flow-react-components 0.1.0-alpha.257 → 0.1.0-alpha.259
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.
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import "./propsContext-DzAKlmhS.js";
|
|
5
|
+
import { P as w } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
6
|
+
import "@react-aria/utils";
|
|
7
|
+
import "remeda";
|
|
8
|
+
import { d as n } from "./dynamic-ClpUSmEt.js";
|
|
9
|
+
import e from "clsx";
|
|
10
|
+
import { f as C } from "./flowComponent-CY2oW3O9.js";
|
|
11
|
+
import { TunnelProvider as G } from "@mittwald/react-tunnel";
|
|
12
|
+
import { A as y, g as a } from "./getActionGroupSlot-BHzMGEA7.js";
|
|
13
|
+
const P = "flow--action-group", x = "flow--action-group--primary", A = "flow--action-group--secondary", N = "flow--action-group--abort", k = "flow--action-group--action-group-container", v = "flow--action-group--ignore-breakpoint", B = "flow--action-group--s", E = "flow--action-group--m", t = {
|
|
14
|
+
actionGroup: P,
|
|
15
|
+
primary: x,
|
|
16
|
+
secondary: A,
|
|
17
|
+
abort: N,
|
|
18
|
+
actionGroupContainer: k,
|
|
19
|
+
ignoreBreakpoint: v,
|
|
20
|
+
s: B,
|
|
21
|
+
m: E
|
|
22
|
+
}, F = C("ActionGroup", (i) => {
|
|
23
|
+
const {
|
|
24
|
+
children: c,
|
|
25
|
+
className: s,
|
|
26
|
+
refProp: p,
|
|
27
|
+
ignoreBreakpoint: m,
|
|
28
|
+
spacing: l = "s",
|
|
29
|
+
...u
|
|
30
|
+
} = i, f = e(
|
|
31
|
+
t.actionGroupContainer,
|
|
32
|
+
s,
|
|
33
|
+
m && t.ignoreBreakpoint,
|
|
34
|
+
t[l]
|
|
35
|
+
), g = {
|
|
36
|
+
Button: {
|
|
37
|
+
slot: n((r) => a(r)),
|
|
38
|
+
className: n((r) => {
|
|
39
|
+
const d = a(r);
|
|
40
|
+
return e(r.className, t[d]);
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ o.createElement(y, null, /* @__PURE__ */ o.createElement(w, { props: g, mergeInParentContext: !0 }, /* @__PURE__ */ o.createElement(G, null, /* @__PURE__ */ o.createElement("div", { ...u, className: f, ref: p }, /* @__PURE__ */ o.createElement("div", { className: t.actionGroup, role: "group" }, c)))));
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
F as A
|
|
48
|
+
};
|
package/dist/ActionGroup.js
CHANGED
|
@@ -1,49 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import "./propsContext-DzAKlmhS.js";
|
|
5
|
-
import { P as w } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
6
|
-
import "@react-aria/utils";
|
|
7
|
-
import "remeda";
|
|
8
|
-
import { d as n } from "./dynamic-ClpUSmEt.js";
|
|
9
|
-
import e from "clsx";
|
|
10
|
-
import { f as C } from "./flowComponent-CY2oW3O9.js";
|
|
11
|
-
import { TunnelProvider as G } from "@mittwald/react-tunnel";
|
|
12
|
-
import { A as y, g as a } from "./getActionGroupSlot-BHzMGEA7.js";
|
|
13
|
-
const P = "flow--action-group", x = "flow--action-group--primary", N = "flow--action-group--secondary", k = "flow--action-group--abort", v = "flow--action-group--action-group-container", A = "flow--action-group--ignore-breakpoint", B = "flow--action-group--s", E = "flow--action-group--m", t = {
|
|
14
|
-
actionGroup: P,
|
|
15
|
-
primary: x,
|
|
16
|
-
secondary: N,
|
|
17
|
-
abort: k,
|
|
18
|
-
actionGroupContainer: v,
|
|
19
|
-
ignoreBreakpoint: A,
|
|
20
|
-
s: B,
|
|
21
|
-
m: E
|
|
22
|
-
}, F = C("ActionGroup", (i) => {
|
|
23
|
-
const {
|
|
24
|
-
children: c,
|
|
25
|
-
className: s,
|
|
26
|
-
refProp: p,
|
|
27
|
-
ignoreBreakpoint: m,
|
|
28
|
-
spacing: l = "s",
|
|
29
|
-
...u
|
|
30
|
-
} = i, f = e(
|
|
31
|
-
t.actionGroupContainer,
|
|
32
|
-
s,
|
|
33
|
-
m && t.ignoreBreakpoint,
|
|
34
|
-
t[l]
|
|
35
|
-
), g = {
|
|
36
|
-
Button: {
|
|
37
|
-
slot: n((r) => a(r)),
|
|
38
|
-
className: n((r) => {
|
|
39
|
-
const d = a(r);
|
|
40
|
-
return e(r.className, t[d]);
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return /* @__PURE__ */ o.createElement(y, null, /* @__PURE__ */ o.createElement(w, { props: g, mergeInParentContext: !0 }, /* @__PURE__ */ o.createElement(G, null, /* @__PURE__ */ o.createElement("div", { ...u, className: f, ref: p }, /* @__PURE__ */ o.createElement("div", { className: t.actionGroup, role: "group" }, c)))));
|
|
45
|
-
});
|
|
3
|
+
import { A as r } from "./ActionGroup-CX4_8oFU.js";
|
|
46
4
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
5
|
+
r as ActionGroup,
|
|
6
|
+
r as default
|
|
49
7
|
};
|