@mittwald/flow-react-components 0.1.0-alpha.90 → 0.1.0-alpha.91
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/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
|
};
|