@mittwald/flow-react-components 0.1.0-alpha.29 → 0.1.0-alpha.31
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.
|
@@ -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";
|
package/dist/Navigation.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import * as Aria from 'react-aria-components';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
3
4
|
import { FC } from 'react';
|
|
4
5
|
import { PropsWithChildren } from 'react';
|
|
6
|
+
import { default as React_2 } from 'react';
|
|
5
7
|
|
|
6
8
|
declare const Navigation: FC<NavigationProps>;
|
|
7
9
|
export { Navigation }
|
|
8
10
|
export default Navigation;
|
|
9
11
|
|
|
10
|
-
export declare
|
|
12
|
+
export declare function NavigationItem(props: NavigationItemProps): React_2.JSX.Element;
|
|
11
13
|
|
|
12
|
-
export declare interface NavigationItemProps extends PropsWithChildren<Omit<Aria.LinkProps, "children">> {
|
|
14
|
+
export declare interface NavigationItemProps extends PropsWithChildren<Omit<Aria.LinkProps, "children" | "slot">> {
|
|
13
15
|
isCurrent?: boolean;
|
|
16
|
+
linkComponent?: ComponentType<Omit<ComponentProps<"a">, "ref">>;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
export declare interface NavigationProps extends PropsWithChildren<ComponentProps<"nav">> {
|
package/dist/Navigation.js
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import { c
|
|
4
|
+
import { c } from "./clsx-DB4S2d7J.js";
|
|
5
|
+
import * as l from "react-aria-components";
|
|
5
6
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
7
|
import { P as m } from "./PropsContextProvider-CEoxD8yK.js";
|
|
7
8
|
import "@react-aria/utils";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
const { className: n, children: o, ...e } = a, i = r(p.navigation, n);
|
|
9
|
+
const v = "flow--navigation", g = {
|
|
10
|
+
navigation: v
|
|
11
|
+
}, d = (n) => {
|
|
12
|
+
const { className: a, children: o, ...e } = n, i = c(g.navigation, a);
|
|
13
13
|
return /* @__PURE__ */ t.createElement("nav", { className: i, role: "navigation", ...e }, /* @__PURE__ */ t.createElement("ul", null, o));
|
|
14
|
-
},
|
|
15
|
-
navigationItem:
|
|
16
|
-
icon:
|
|
17
|
-
text:
|
|
18
|
-
}
|
|
19
|
-
|
|
14
|
+
}, p = "flow--navigation--navigation-item", f = "flow--navigation--navigation-item--icon", u = "flow--navigation--navigation-item--text", s = {
|
|
15
|
+
navigationItem: p,
|
|
16
|
+
icon: f,
|
|
17
|
+
text: u
|
|
18
|
+
};
|
|
19
|
+
function k(n) {
|
|
20
|
+
const {
|
|
21
|
+
isCurrent: a,
|
|
22
|
+
children: o,
|
|
23
|
+
linkComponent: e = l.Link,
|
|
24
|
+
...i
|
|
25
|
+
} = n, r = {
|
|
20
26
|
Text: {
|
|
21
27
|
className: s.text
|
|
22
28
|
},
|
|
@@ -25,17 +31,17 @@ const g = "flow--navigation", p = {
|
|
|
25
31
|
}
|
|
26
32
|
};
|
|
27
33
|
return /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(
|
|
28
|
-
|
|
34
|
+
e,
|
|
29
35
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
...i,
|
|
37
|
+
className: s.navigationItem,
|
|
38
|
+
"aria-current": a ? "page" : !1
|
|
33
39
|
},
|
|
34
|
-
/* @__PURE__ */ t.createElement(m, { props:
|
|
40
|
+
/* @__PURE__ */ t.createElement(m, { props: r }, o)
|
|
35
41
|
));
|
|
36
|
-
}
|
|
42
|
+
}
|
|
37
43
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
d as Navigation,
|
|
45
|
+
k as NavigationItem,
|
|
46
|
+
d as default
|
|
41
47
|
};
|
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";
|