@mittwald/flow-react-components 0.1.0-alpha.20 → 0.1.0-alpha.22
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/{Button-BH3d8Oz-.js → Button-BzrU5duB.js} +15 -14
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +1 -1
- package/dist/CopyToClipboardButton.d.ts +1 -1
- package/dist/CopyToClipboardButton.js +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -11
|
@@ -11,7 +11,7 @@ import "./Icon-C8UD3vMe.js";
|
|
|
11
11
|
import "html-react-parser";
|
|
12
12
|
import { b as N, I as S, a as C } from "./IconSucceeded-aGBloDn9.js";
|
|
13
13
|
import { T as F } from "./Text--ofl9X5e.js";
|
|
14
|
-
const h = "flow--button", z = "flow--button--icon", B = "flow--button--content", v = "flow--button--state-icon", T = "flow--button--text", D = "flow--button--is-succeeded", A = "flow--button--is-failed", R = "flow--button--is-pending", W = "flow--button--plain", _ = "flow--button--primary", $ = "flow--button--solid", j = "flow--button--accent", k = "flow--button--danger", q = "flow--button--secondary", t = {
|
|
14
|
+
const h = "flow--button", z = "flow--button--icon", B = "flow--button--content", v = "flow--button--state-icon", T = "flow--button--text", D = "flow--button--is-succeeded", A = "flow--button--is-failed", R = "flow--button--is-pending", W = "flow--button--plain", _ = "flow--button--primary", $ = "flow--button--solid", j = "flow--button--accent", k = "flow--button--danger", q = "flow--button--secondary", G = "flow--button--soft", t = {
|
|
15
15
|
button: h,
|
|
16
16
|
icon: z,
|
|
17
17
|
content: B,
|
|
@@ -26,31 +26,32 @@ const h = "flow--button", z = "flow--button--icon", B = "flow--button--content",
|
|
|
26
26
|
solid: $,
|
|
27
27
|
accent: j,
|
|
28
28
|
danger: k,
|
|
29
|
-
secondary: q
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
secondary: q,
|
|
30
|
+
soft: G
|
|
31
|
+
}, u = (e) => {
|
|
32
|
+
const { if: s, children: n } = e;
|
|
33
|
+
return s ? n : n.props.children;
|
|
34
|
+
}, Y = (e) => {
|
|
34
35
|
const {
|
|
35
36
|
variant: s = "primary",
|
|
36
|
-
style:
|
|
37
|
+
style: n = "solid",
|
|
37
38
|
children: l,
|
|
38
|
-
className:
|
|
39
|
+
className: f,
|
|
39
40
|
size: c = "m",
|
|
40
41
|
isPending: i,
|
|
41
|
-
isDisabled:
|
|
42
|
+
isDisabled: p,
|
|
42
43
|
isSucceeded: a,
|
|
43
44
|
isFailed: r,
|
|
44
45
|
...b
|
|
45
|
-
} = E("Button",
|
|
46
|
+
} = E("Button", e), w = I(
|
|
46
47
|
t.button,
|
|
47
48
|
i && t.isPending,
|
|
48
49
|
a && t.isSucceeded,
|
|
49
50
|
r && t.isFailed,
|
|
50
51
|
t[`size-${c}`],
|
|
51
52
|
t[s],
|
|
52
|
-
t[
|
|
53
|
-
|
|
53
|
+
t[n],
|
|
54
|
+
f
|
|
54
55
|
), g = {
|
|
55
56
|
Icon: {
|
|
56
57
|
className: t.icon,
|
|
@@ -65,7 +66,7 @@ const h = "flow--button", z = "flow--button--icon", B = "flow--button--content",
|
|
|
65
66
|
y.Button,
|
|
66
67
|
{
|
|
67
68
|
className: w,
|
|
68
|
-
isDisabled:
|
|
69
|
+
isDisabled: p || i || a || r,
|
|
69
70
|
...b
|
|
70
71
|
},
|
|
71
72
|
/* @__PURE__ */ o.createElement(P, { props: g }, /* @__PURE__ */ o.createElement(u, { if: m }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(u, { if: x }, /* @__PURE__ */ o.createElement(F, null, l))))),
|
|
@@ -73,5 +74,5 @@ const h = "flow--button", z = "flow--button--icon", B = "flow--button--content",
|
|
|
73
74
|
);
|
|
74
75
|
};
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
+
Y as B
|
|
77
78
|
};
|
package/dist/Button.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare interface ButtonProps extends PropsWithChildren<Omit<Aria.ButtonP
|
|
|
10
10
|
/** @default "primary" */
|
|
11
11
|
variant?: "primary" | "accent" | "secondary" | "danger";
|
|
12
12
|
/** @default "solid" */
|
|
13
|
-
style?: "plain" | "solid";
|
|
13
|
+
style?: "plain" | "solid" | "soft";
|
|
14
14
|
/** @default "m" */
|
|
15
15
|
size?: "m" | "s";
|
|
16
16
|
isPending?: boolean;
|
package/dist/Button.js
CHANGED
|
@@ -7,7 +7,7 @@ declare interface ButtonProps extends PropsWithChildren<Omit<Aria.ButtonProps, "
|
|
|
7
7
|
/** @default "primary" */
|
|
8
8
|
variant?: "primary" | "accent" | "secondary" | "danger";
|
|
9
9
|
/** @default "solid" */
|
|
10
|
-
style?: "plain" | "solid";
|
|
10
|
+
style?: "plain" | "solid" | "soft";
|
|
11
11
|
/** @default "m" */
|
|
12
12
|
size?: "m" | "s";
|
|
13
13
|
isPending?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import f, { isValidElement as l, Children as u, cloneElement as v } from "react";
|
|
4
|
-
import { B as R } from "./Button-
|
|
4
|
+
import { B as R } from "./Button-BzrU5duB.js";
|
|
5
5
|
import "@tabler/icons-react";
|
|
6
6
|
import "./Icon-C8UD3vMe.js";
|
|
7
7
|
import "html-react-parser";
|
package/dist/NumberField.js
CHANGED
|
@@ -8,7 +8,7 @@ import "./propsContext-Dx7WKmmM.js";
|
|
|
8
8
|
import { P as p } from "./PropsContextProvider-CEoxD8yK.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import { F as d } from "./FieldError-BAnloBK7.js";
|
|
11
|
-
import { B as s } from "./Button-
|
|
11
|
+
import { B as s } from "./Button-BzrU5duB.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
import "./Icon-C8UD3vMe.js";
|
|
14
14
|
import "html-react-parser";
|