@mittwald/flow-react-components 0.1.0-alpha.28 → 0.1.0-alpha.29
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/InlineCode.d.ts +12 -0
- package/dist/InlineCode.js +14 -0
- package/dist/LabeledValue.js +9 -13
- package/dist/styles.css +1 -1
- package/package.json +4 -3
|
@@ -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
|
};
|