@mittwald/flow-react-components 0.1.0-alpha.28 → 0.1.0-alpha.30
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-0H5tAVdV.js → Button-CMA-xsd_.js} +4 -4
- package/dist/Button.js +1 -1
- package/dist/CopyToClipboardButton.js +1 -1
- package/dist/InlineCode.d.ts +12 -0
- package/dist/InlineCode.js +14 -0
- package/dist/LabeledValue.js +9 -13
- package/dist/NumberField.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -3
|
@@ -11,12 +11,12 @@ 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-8V0yR4PK.js";
|
|
14
|
-
const h = "flow--button", z = "flow--button--icon", B = "flow--button--
|
|
14
|
+
const h = "flow--button", z = "flow--button--icon", B = "flow--button--text", v = "flow--button--content", T = "flow--button--state-icon", 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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
text: B,
|
|
18
|
+
content: v,
|
|
19
|
+
stateIcon: T,
|
|
20
20
|
"size-s": "flow--button--size-s",
|
|
21
21
|
isSucceeded: D,
|
|
22
22
|
isFailed: A,
|
package/dist/Button.js
CHANGED
|
@@ -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-CMA-xsd_.js";
|
|
5
5
|
import "@tabler/icons-react";
|
|
6
6
|
import "./Icon-C8UD3vMe.js";
|
|
7
7
|
import "html-react-parser";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
|
|
5
|
+
declare const InlineCode: FC<InlineCodeProps>;
|
|
6
|
+
export { InlineCode }
|
|
7
|
+
export default InlineCode;
|
|
8
|
+
|
|
9
|
+
export declare interface InlineCodeProps extends PropsWithChildren<ComponentProps<"code">> {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import c from "react";
|
|
4
|
+
import { c as l } from "./clsx-DB4S2d7J.js";
|
|
5
|
+
const i = "flow--inline-code", a = {
|
|
6
|
+
inlineCode: i
|
|
7
|
+
}, m = (e) => {
|
|
8
|
+
const { children: o, className: n, ...s } = e, t = l(a.inlineCode, n);
|
|
9
|
+
return /* @__PURE__ */ c.createElement("code", { ...s, className: t }, o);
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
m as InlineCode,
|
|
13
|
+
m as default
|
|
14
|
+
};
|
package/dist/LabeledValue.js
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import l from "react";
|
|
4
|
-
import { c } from "./clsx-DB4S2d7J.js";
|
|
4
|
+
import { c as r } from "./clsx-DB4S2d7J.js";
|
|
5
5
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
-
import { P as
|
|
6
|
+
import { P as c } from "./PropsContextProvider-CEoxD8yK.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
|
-
const b = "flow--labeled-value", m = "flow--labeled-value--button",
|
|
8
|
+
const b = "flow--labeled-value", m = "flow--labeled-value--button", p = "flow--labeled-value--label", e = {
|
|
9
9
|
labeledValue: b,
|
|
10
10
|
button: m,
|
|
11
|
-
label:
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
const { children: a, className: o } = t, s = c(e.labeledValue, o), n = {
|
|
11
|
+
label: p
|
|
12
|
+
}, v = (a) => {
|
|
13
|
+
const { children: t, className: o } = a, s = r(e.labeledValue, o), n = {
|
|
15
14
|
Label: {
|
|
16
15
|
className: e.label
|
|
17
16
|
},
|
|
18
|
-
Content: {
|
|
19
|
-
className: e.content
|
|
20
|
-
},
|
|
21
17
|
CopyToClipboard: {
|
|
22
18
|
className: e.button,
|
|
23
19
|
style: "plain",
|
|
@@ -29,9 +25,9 @@ const b = "flow--labeled-value", m = "flow--labeled-value--button", u = "flow--l
|
|
|
29
25
|
size: "s"
|
|
30
26
|
}
|
|
31
27
|
};
|
|
32
|
-
return /* @__PURE__ */ l.createElement("div", { className: s }, /* @__PURE__ */ l.createElement(
|
|
28
|
+
return /* @__PURE__ */ l.createElement("div", { className: s }, /* @__PURE__ */ l.createElement(c, { props: n }, t));
|
|
33
29
|
};
|
|
34
30
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
v as LabeledValue,
|
|
32
|
+
v as default
|
|
37
33
|
};
|
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-CMA-xsd_.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
import "./Icon-C8UD3vMe.js";
|
|
14
14
|
import "html-react-parser";
|