@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.
@@ -1,32 +1,37 @@
1
1
  "use client"
2
2
  /* */
3
- import r from "react";
4
- import * as c from "react-aria-components";
5
- import a from "clsx";
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 d } from "./IconChevronRight-CJv9kuRZ.js";
8
+ import { I as u } from "./IconChevronRight-CJv9kuRZ.js";
9
9
  import "./propsContext-CauylOgH.js";
10
- import { P as u } from "./PropsContextProvider-DZvwqHLP.js";
10
+ import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
11
11
  import "@react-aria/utils";
12
12
  import "remeda";
13
- const p = "flow--breadcrumb", f = "flow--breadcrumb--link", N = "flow--breadcrumb--breadcrumb-item", E = "flow--breadcrumb--icon", e = {
14
- breadcrumb: p,
15
- link: f,
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
- }, I = (t) => {
19
- const { children: m } = t, o = a(e.breadcrumbItem);
20
- return /* @__PURE__ */ r.createElement(c.Breadcrumb, { className: o }, m, /* @__PURE__ */ r.createElement(d, { size: "s", className: e.icon }));
21
- }, R = (t) => {
22
- const { children: m, className: o, ...s } = t, n = a(e.breadcrumb, o), l = {
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, i) => /* @__PURE__ */ r.createElement(I, null, /* @__PURE__ */ r.createElement(b, { ...i, unstyled: !0, className: e.link }))
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__ */ r.createElement(c.Breadcrumbs, { ...s, className: n }, /* @__PURE__ */ r.createElement(u, { props: l }, m));
32
+ return /* @__PURE__ */ e.createElement(m.Breadcrumbs, { ...a, className: i }, /* @__PURE__ */ e.createElement(p, { props: l }, o));
28
33
  };
29
34
  export {
30
- R as Breadcrumb,
31
- R as default
35
+ z as Breadcrumb,
36
+ z as default
32
37
  };
@@ -1,49 +1,57 @@
1
1
  "use client"
2
2
  /* */
3
- import t, { useId as m } from "react";
4
- import g from "clsx";
5
- import { d as v } from "./deepFindOfType-6pG0fH7S.js";
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 u } from "./PropsContextProvider-DZvwqHLP.js";
8
+ import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
- import { TunnelExit as x } from "@mittwald/react-tunnel";
12
- const N = "flow--navigation", E = "flow--navigation--item", I = "flow--navigation--icon", b = "flow--navigation--text", w = "flow--navigation--control-icon", a = {
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: E,
15
- icon: I,
16
- text: b,
17
- controlIcon: w
18
- }, $ = (i) => {
19
- const { className: r, children: e, ...l } = i, s = g(a.navigation, r), n = !!v(e, G), o = {
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: (c, d) => /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(c, { ...d, className: a.item, unstyled: !0 })),
21
+ render: (u, g) => /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(u, { ...g, className: o.item, unstyled: !0 })),
22
22
  Text: {
23
- className: a.text
23
+ className: o.text
24
24
  },
25
25
  Icon: {
26
- className: a.icon
26
+ className: o.icon
27
27
  }
28
28
  }
29
29
  };
30
- return /* @__PURE__ */ t.createElement("nav", { className: s, role: "navigation", ...l }, /* @__PURE__ */ t.createElement(u, { props: o }, /* @__PURE__ */ t.createElement(f, { if: !n }, /* @__PURE__ */ t.createElement("ul", null, e))));
31
- }, C = "flow--navigation--navigation-group", y = "flow--navigation--navigation-group--label", p = {
32
- navigationGroup: C,
33
- label: y
34
- }, G = (i) => {
35
- const { children: r, className: e, ...l } = i, s = g(p.navigationGroup, e), n = m(), o = m(), c = {
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: o,
37
+ tunnelId: "Label",
38
38
  id: n,
39
- className: p.label,
39
+ className: c.label,
40
40
  "aria-hidden": !0
41
41
  }
42
42
  };
43
- return /* @__PURE__ */ t.createElement("section", { "aria-labelledby": n, className: s, ...l }, /* @__PURE__ */ t.createElement(u, { mergeInParentContext: !0, props: c }, /* @__PURE__ */ t.createElement(x, { id: o }), /* @__PURE__ */ t.createElement("ul", null, r)));
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
- $ as Navigation,
47
- G as NavigationGroup,
48
- $ as default
54
+ j as Navigation,
55
+ P as NavigationGroup,
56
+ j as default
49
57
  };