@mittwald/flow-react-components 0.1.0-alpha.90 → 0.1.0-alpha.92
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/Breadcrumb.js +23 -18
- package/dist/Navigation.js +35 -27
- package/dist/styles.css +1 -1
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -0
- package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/ColumnLayout/ColumnLayout.d.ts +2 -2
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +2 -2
- package/dist/types/components/Initials/Initials.d.ts +2 -2
- package/dist/types/components/LabeledValue/LabeledValue.d.ts +2 -2
- package/dist/types/components/List/components/Header/Header/Header.d.ts +2 -2
- package/dist/types/components/List/components/Items/ItemList/ItemList.d.ts +2 -2
- package/dist/types/components/List/components/Items/OptionsButton/OptionsButton.d.ts +2 -2
- package/dist/types/components/Navigation/Navigation.d.ts +2 -2
- package/dist/types/components/Select/Select.d.ts +2 -2
- package/dist/types/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/package.json +4 -4
package/dist/Breadcrumb.js
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as m from "react-aria-components";
|
|
5
|
+
import s from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
7
|
import "./Icon-DpcNiaNb.js";
|
|
8
|
-
import { I as
|
|
8
|
+
import { I as u } from "./IconChevronRight-CJv9kuRZ.js";
|
|
9
9
|
import "./propsContext-CauylOgH.js";
|
|
10
|
-
import { P as
|
|
10
|
+
import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
|
|
11
11
|
import "@react-aria/utils";
|
|
12
12
|
import "remeda";
|
|
13
|
-
const
|
|
14
|
-
breadcrumb:
|
|
15
|
-
link:
|
|
13
|
+
const f = "flow--breadcrumb", v = "flow--breadcrumb--link", N = "flow--breadcrumb--breadcrumb-item", E = "flow--breadcrumb--icon", I = "flow--breadcrumb--inverse", r = {
|
|
14
|
+
breadcrumb: f,
|
|
15
|
+
link: v,
|
|
16
16
|
breadcrumbItem: N,
|
|
17
|
-
icon: E
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
17
|
+
icon: E,
|
|
18
|
+
inverse: I
|
|
19
|
+
}, k = (t) => {
|
|
20
|
+
const { children: o } = t, c = s(r.breadcrumbItem);
|
|
21
|
+
return /* @__PURE__ */ e.createElement(m.Breadcrumb, { className: c }, o, /* @__PURE__ */ e.createElement(u, { size: "s", className: r.icon }));
|
|
22
|
+
}, z = (t) => {
|
|
23
|
+
const { children: o, className: c, inverse: n, ...a } = t, i = s(
|
|
24
|
+
r.breadcrumb,
|
|
25
|
+
n && r.inverse,
|
|
26
|
+
c
|
|
27
|
+
), l = {
|
|
23
28
|
Link: {
|
|
24
|
-
render: (b,
|
|
29
|
+
render: (b, d) => /* @__PURE__ */ e.createElement(k, null, /* @__PURE__ */ e.createElement(b, { ...d, unstyled: !0, className: r.link }))
|
|
25
30
|
}
|
|
26
31
|
};
|
|
27
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ e.createElement(m.Breadcrumbs, { ...a, className: i }, /* @__PURE__ */ e.createElement(p, { props: l }, o));
|
|
28
33
|
};
|
|
29
34
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
z as Breadcrumb,
|
|
36
|
+
z as default
|
|
32
37
|
};
|
package/dist/Navigation.js
CHANGED
|
@@ -1,49 +1,57 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import t, { useId as
|
|
4
|
-
import
|
|
5
|
-
import { d
|
|
3
|
+
import t, { useId as v } from "react";
|
|
4
|
+
import m from "clsx";
|
|
5
|
+
import { d } from "./deepFindOfType-6pG0fH7S.js";
|
|
6
6
|
import { W as f } from "./Wrap-DGT1h1o3.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
|
-
import { P as
|
|
8
|
+
import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import {
|
|
12
|
-
const N = "flow--navigation",
|
|
11
|
+
import { TunnelProvider as x, TunnelExit as E } from "@mittwald/react-tunnel";
|
|
12
|
+
const N = "flow--navigation", b = "flow--navigation--item", w = "flow--navigation--icon", I = "flow--navigation--text", C = "flow--navigation--control-icon", o = {
|
|
13
13
|
navigation: N,
|
|
14
|
-
item:
|
|
15
|
-
icon:
|
|
16
|
-
text:
|
|
17
|
-
controlIcon:
|
|
18
|
-
},
|
|
19
|
-
const { className:
|
|
14
|
+
item: b,
|
|
15
|
+
icon: w,
|
|
16
|
+
text: I,
|
|
17
|
+
controlIcon: C
|
|
18
|
+
}, j = (a) => {
|
|
19
|
+
const { className: i, children: e, ...r } = a, l = m(o.navigation, i), n = !!d(e, P), s = {
|
|
20
20
|
Link: {
|
|
21
|
-
render: (
|
|
21
|
+
render: (u, g) => /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(u, { ...g, className: o.item, unstyled: !0 })),
|
|
22
22
|
Text: {
|
|
23
|
-
className:
|
|
23
|
+
className: o.text
|
|
24
24
|
},
|
|
25
25
|
Icon: {
|
|
26
|
-
className:
|
|
26
|
+
className: o.icon
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
return /* @__PURE__ */ t.createElement("nav", { className:
|
|
31
|
-
},
|
|
32
|
-
navigationGroup:
|
|
33
|
-
label:
|
|
34
|
-
},
|
|
35
|
-
const { children:
|
|
30
|
+
return /* @__PURE__ */ t.createElement("nav", { className: l, role: "navigation", ...r }, /* @__PURE__ */ t.createElement(p, { props: s }, /* @__PURE__ */ t.createElement(f, { if: !n }, /* @__PURE__ */ t.createElement("ul", null, e))));
|
|
31
|
+
}, y = "flow--navigation--navigation-group", G = "flow--navigation--navigation-group--label", c = {
|
|
32
|
+
navigationGroup: y,
|
|
33
|
+
label: G
|
|
34
|
+
}, P = (a) => {
|
|
35
|
+
const { children: i, className: e, ...r } = a, l = m(c.navigationGroup, e), n = v(), s = {
|
|
36
36
|
Label: {
|
|
37
|
-
tunnelId:
|
|
37
|
+
tunnelId: "Label",
|
|
38
38
|
id: n,
|
|
39
|
-
className:
|
|
39
|
+
className: c.label,
|
|
40
40
|
"aria-hidden": !0
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */ t.createElement(
|
|
43
|
+
return /* @__PURE__ */ t.createElement(x, null, /* @__PURE__ */ t.createElement(
|
|
44
|
+
"section",
|
|
45
|
+
{
|
|
46
|
+
"aria-labelledby": n,
|
|
47
|
+
className: l,
|
|
48
|
+
...r
|
|
49
|
+
},
|
|
50
|
+
/* @__PURE__ */ t.createElement(p, { mergeInParentContext: !0, props: s }, /* @__PURE__ */ t.createElement(E, { id: "Label" }), /* @__PURE__ */ t.createElement("ul", null, i))
|
|
51
|
+
));
|
|
44
52
|
};
|
|
45
53
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
j as Navigation,
|
|
55
|
+
P as NavigationGroup,
|
|
56
|
+
j as default
|
|
49
57
|
};
|