@mittwald/flow-react-components 0.1.0-alpha.77 → 0.1.0-alpha.78

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,35 +1,34 @@
1
1
  "use client"
2
2
  /* */
3
3
  import r from "react";
4
- import * as s from "react-aria-components";
4
+ import * as m from "react-aria-components";
5
5
  import a from "clsx";
6
6
  import "@tabler/icons-react";
7
7
  import "./Icon-DdQwrIup.js";
8
- import { I as u } from "./IconChevronRight-Bsu-sUej.js";
8
+ import { I as i } from "./IconChevronRight-Bsu-sUej.js";
9
9
  import "./propsContext-CauylOgH.js";
10
- import { P as d } from "./PropsContextProvider-DZvwqHLP.js";
10
+ import { P as u } from "./PropsContextProvider-DZvwqHLP.js";
11
11
  import "@react-aria/utils";
12
12
  import "remeda";
13
- const p = "flow--breadcrumb", f = "flow--breadcrumb--link", c = {
14
- breadcrumb: p,
15
- link: f
16
- }, N = "flow--breadcrumb--breadcrumb-item", I = "flow--breadcrumb--breadcrumb-item--icon", m = {
17
- breadcrumbItem: N,
18
- icon: I
19
- }, h = (e) => {
20
- const { children: t } = e, o = a(m.breadcrumbItem);
21
- return /* @__PURE__ */ r.createElement(s.Breadcrumb, { className: o }, t, /* @__PURE__ */ r.createElement(u, { size: "s", className: m.icon }));
22
- }, R = (e) => {
23
- const { children: t, className: o, ...n } = e, l = a(c.breadcrumb, o), b = {
13
+ const d = "flow--breadcrumb", p = "flow--breadcrumb--link", f = "flow--breadcrumb--breadcrumb-item", N = "flow--breadcrumb--icon", e = {
14
+ breadcrumb: d,
15
+ link: p,
16
+ breadcrumbItem: f,
17
+ icon: N
18
+ }, I = (t) => {
19
+ const { children: o } = t, c = a(e.breadcrumbItem);
20
+ return /* @__PURE__ */ r.createElement(m.Breadcrumb, { className: c }, o, /* @__PURE__ */ r.createElement(i, { size: "s", className: e.icon }));
21
+ }, y = (t) => {
22
+ const { children: o, className: c, ...s } = t, n = a(e.breadcrumb, c), l = {
24
23
  Link: {
25
24
  unstyled: !0,
26
- className: c.link,
27
- hoc: (i) => /* @__PURE__ */ r.createElement(h, null, i)
25
+ className: e.link,
26
+ hoc: (b) => /* @__PURE__ */ r.createElement(I, null, b)
28
27
  }
29
28
  };
30
- return /* @__PURE__ */ r.createElement(s.Breadcrumbs, { ...n, className: l }, /* @__PURE__ */ r.createElement(d, { props: b }, t));
29
+ return /* @__PURE__ */ r.createElement(m.Breadcrumbs, { ...s, className: n }, /* @__PURE__ */ r.createElement(u, { props: l }, o));
31
30
  };
32
31
  export {
33
- R as Breadcrumb,
34
- R as default
32
+ y as Breadcrumb,
33
+ y as default
35
34
  };
@@ -17,18 +17,18 @@ import { f as h } from "./flowComponent-BuF0s2uG.js";
17
17
  import { L as A } from "./LoadingSpinner-DqsZ7IDL.js";
18
18
  import { useLocalizedStringFormatter as D } from "react-aria";
19
19
  import { useLiveRegion as T } from "@chakra-ui/live-region";
20
- const z = "flow--button", B = "flow--button--avatar", L = "flow--button--icon", k = "flow--button--text", R = "flow--button--content", K = "flow--button--state-icon", U = "flow--button--is-succeeded", W = "flow--button--is-failed", $ = "flow--button--is-pending", j = "flow--button--plain", q = "flow--button--primary", G = "flow--button--solid", H = "flow--button--aria-disabled", J = "flow--button--accent", M = "flow--button--danger", O = "flow--button--secondary", Q = "flow--button--soft", t = {
20
+ const z = "flow--button", B = "flow--button--content", L = "flow--button--state-icon", k = "flow--button--avatar", R = "flow--button--icon", K = "flow--button--text", U = "flow--button--is-succeeded", W = "flow--button--is-failed", $ = "flow--button--is-pending", j = "flow--button--plain", q = "flow--button--primary", G = "flow--button--solid", H = "flow--button--aria-disabled", J = "flow--button--accent", M = "flow--button--danger", O = "flow--button--secondary", Q = "flow--button--soft", t = {
21
21
  button: z,
22
- avatar: B,
23
- icon: L,
24
- text: k,
25
- content: R,
26
- stateIcon: K,
27
- "size-s": "flow--button--size-s",
22
+ content: B,
23
+ stateIcon: L,
24
+ avatar: k,
25
+ icon: R,
26
+ text: K,
28
27
  isSucceeded: U,
29
28
  isFailed: W,
30
29
  isPending: $,
31
30
  plain: j,
31
+ "size-s": "flow--button--size-s",
32
32
  primary: q,
33
33
  solid: G,
34
34
  ariaDisabled: H,
package/dist/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { B as o } from "./Button-BPCYuj3x.js";
3
+ import { B as o } from "./Button-D5_aNpTg.js";
4
4
  export {
5
5
  o as Button,
6
6
  o as default
@@ -1,27 +1,31 @@
1
1
  "use client"
2
2
  /* */
3
3
  import o from "react";
4
- import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
5
- import { P as m } from "./PropsContextProvider-DZvwqHLP.js";
6
- import { u as l } from "./useProps-Dx3m8kCJ.js";
7
- import { d as i } from "./dynamic-ClpUSmEt.js";
8
- import d from "clsx";
4
+ import { C as m } from "./ClearPropsContext-CeCMjUK9.js";
5
+ import { P as l } from "./PropsContextProvider-DZvwqHLP.js";
6
+ import { u as i } from "./useProps-Dx3m8kCJ.js";
7
+ import { d as b } from "./dynamic-ClpUSmEt.js";
8
+ import r from "clsx";
9
9
  import { f } from "./flowComponent-BuF0s2uG.js";
10
- const b = "flow--button-group--button-group-container", C = "flow--button-group", G = "flow--button-group--secondary", t = {
11
- buttonGroupContainer: b,
10
+ const d = "flow--button-group--button-group-container", C = "flow--button-group", G = "flow--button-group--button", y = "flow--button-group--secondary", t = {
11
+ buttonGroupContainer: d,
12
12
  buttonGroup: C,
13
- secondary: G
14
- }, B = f("ButtonGroup", (r) => {
15
- const { children: n, className: e, ...s } = l("ButtonGroup", r), a = d(t.buttonGroupContainer, e), u = {
13
+ button: G,
14
+ secondary: y
15
+ }, E = f("ButtonGroup", (n) => {
16
+ const { children: e, className: s, ...u } = i("ButtonGroup", n), a = r(t.buttonGroupContainer, s), p = {
16
17
  Button: {
17
- className: i(
18
- (p) => p.variant === "secondary" ? t.secondary : void 0
18
+ className: b(
19
+ (c) => r(
20
+ t.button,
21
+ c.variant === "secondary" ? t.secondary : void 0
22
+ )
19
23
  )
20
24
  }
21
25
  };
22
- return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement("div", { ...s, className: a }, /* @__PURE__ */ o.createElement("div", { className: t.buttonGroup, role: "group" }, /* @__PURE__ */ o.createElement(m, { props: u }, n))));
26
+ return /* @__PURE__ */ o.createElement(m, null, /* @__PURE__ */ o.createElement("div", { ...u, className: a }, /* @__PURE__ */ o.createElement("div", { className: t.buttonGroup, role: "group" }, /* @__PURE__ */ o.createElement(l, { props: p }, e))));
23
27
  });
24
28
  export {
25
- B as ButtonGroup,
26
- B as default
29
+ E as ButtonGroup,
30
+ E as default
27
31
  };
@@ -9,10 +9,10 @@ import "./propsContext-CauylOgH.js";
9
9
  import "remeda";
10
10
  import { C as b } from "./Checkbox-BoIUZoUj.js";
11
11
  import { f as x } from "./flowComponent-BuF0s2uG.js";
12
- const C = "flow--checkbox-button", f = "flow--checkbox-button--content", i = "flow--checkbox-button--label", o = {
12
+ const C = "flow--checkbox-button", f = "flow--checkbox-button--label", i = "flow--checkbox-button--content", o = {
13
13
  checkboxButton: C,
14
- content: f,
15
- label: i
14
+ label: f,
15
+ content: i
16
16
  }, v = x("CheckboxButton", (e) => {
17
17
  const { children: c, className: n, ...r } = e, s = a(o.checkboxButton, n), l = {
18
18
  Text: {
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { C as t } from "./CheckboxButton-BjHq5R2V.js";
3
+ import { C as t } from "./CheckboxButton-CPgQad5Z.js";
4
4
  export {
5
5
  t as CheckboxButton,
6
6
  t as default
@@ -8,7 +8,7 @@ import { P as b } from "./PropsContextProvider-DZvwqHLP.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import { F as h } from "./FieldError-De8_olcs.js";
11
- import { C as E } from "./CheckboxButton-BjHq5R2V.js";
11
+ import { C as E } from "./CheckboxButton-CPgQad5Z.js";
12
12
  import { TunnelProvider as k, TunnelExit as r } from "@mittwald/react-tunnel";
13
13
  import { s as o } from "./FormField.module-DHK6nIcD.js";
14
14
  import { C } from "./ColumnLayout-FMONjI17.js";
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import o from "react";
4
4
  import a from "copy-to-clipboard";
5
- import { B as i } from "./Button-BPCYuj3x.js";
5
+ import { B as i } from "./Button-D5_aNpTg.js";
6
6
  import "@tabler/icons-react";
7
7
  import "./Icon-DdQwrIup.js";
8
8
  import { I as c } from "./IconCopy-D40P_nc1.js";
@@ -8,10 +8,10 @@ import "remeda";
8
8
  import { d } from "./dynamic-ClpUSmEt.js";
9
9
  import v from "clsx";
10
10
  import { E as p } from "./EmulatedBoldText-Dtox8Wd1.js";
11
- const u = "flow--header-navigation", h = "flow--header-navigation--button", f = "flow--header-navigation--link", g = "flow--header-navigation--inverse", n = {
11
+ const u = "flow--header-navigation", h = "flow--header-navigation--link", f = "flow--header-navigation--button", g = "flow--header-navigation--inverse", n = {
12
12
  headerNavigation: u,
13
- button: h,
14
- link: f,
13
+ link: h,
14
+ button: f,
15
15
  inverse: g
16
16
  }, P = (o) => {
17
17
  const { children: a, className: r, inverse: i, ...l } = o, s = v(
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
3
  import t from "react";
4
- import c from "clsx";
4
+ import s from "clsx";
5
5
  import "./propsContext-CauylOgH.js";
6
6
  import { P as m } from "./PropsContextProvider-DZvwqHLP.js";
7
7
  import "@react-aria/utils";
@@ -14,12 +14,8 @@ const d = "flow--illustrated-message--illustrated-message-container", g = "flow-
14
14
  text: p,
15
15
  button: x,
16
16
  negative: v
17
- }, E = (s) => {
18
- const { className: a, children: l, variant: o = "info", ...n } = s, i = c(
19
- e.illustratedMessageContainer,
20
- e[o],
21
- a
22
- ), r = {
17
+ }, E = (a) => {
18
+ const { className: l, children: o, variant: n = "info", ...i } = a, r = s(e.illustratedMessageContainer, l), c = {
23
19
  Icon: {
24
20
  className: e.icon,
25
21
  size: "l"
@@ -35,7 +31,7 @@ const d = "flow--illustrated-message--illustrated-message-container", g = "flow-
35
31
  variant: "accent"
36
32
  }
37
33
  };
38
- return /* @__PURE__ */ t.createElement("div", { ...n, className: i }, /* @__PURE__ */ t.createElement("div", { className: e.illustratedMessage }, /* @__PURE__ */ t.createElement(m, { props: r }, l)));
34
+ return /* @__PURE__ */ t.createElement("div", { ...i, className: r }, /* @__PURE__ */ t.createElement("div", { className: s(e.illustratedMessage, e[n]) }, /* @__PURE__ */ t.createElement(m, { props: c }, o)));
39
35
  };
40
36
  export {
41
37
  E as IllustratedMessage,
@@ -9,11 +9,11 @@ import "remeda";
9
9
  import p from "clsx";
10
10
  import { S as u } from "./StatusIcon-BTL-kqaV.js";
11
11
  import { f as d } from "./flowComponent-BuF0s2uG.js";
12
- const w = "flow--inline-alert", g = "flow--inline-alert--content", C = "flow--inline-alert--status-icon", I = "flow--inline-alert--heading", N = "flow--inline-alert--info", h = "flow--inline-alert--warning", x = "flow--inline-alert--danger", A = "flow--inline-alert--success", n = {
12
+ const w = "flow--inline-alert", g = "flow--inline-alert--status-icon", C = "flow--inline-alert--heading", I = "flow--inline-alert--content", N = "flow--inline-alert--info", h = "flow--inline-alert--warning", x = "flow--inline-alert--danger", A = "flow--inline-alert--success", n = {
13
13
  inlineAlert: w,
14
- content: g,
15
- statusIcon: C,
16
- heading: I,
14
+ statusIcon: g,
15
+ heading: C,
16
+ content: I,
17
17
  info: N,
18
18
  warning: h,
19
19
  danger: x,
package/dist/List.js CHANGED
@@ -12,7 +12,7 @@ import { T as b } from "./Text-CBzyk1oM.js";
12
12
  import "@tabler/icons-react";
13
13
  import "./Icon-DdQwrIup.js";
14
14
  import { I as $ } from "./IconChevronDown-a_vSoTxH.js";
15
- import { B as h } from "./Button-BPCYuj3x.js";
15
+ import { B as h } from "./Button-D5_aNpTg.js";
16
16
  import { useMessageFormatter as H, useLocalizedStringFormatter as q } from "react-aria";
17
17
  import K from "clsx";
18
18
  import { I as rt } from "./IconClose-BcM-VKmn.js";
package/dist/Modal.js CHANGED
@@ -10,12 +10,12 @@ import "@react-aria/utils";
10
10
  import "remeda";
11
11
  import { TunnelProvider as y, TunnelExit as x } from "@mittwald/react-tunnel";
12
12
  import { u as z, a as E } from "./index-ViVxK7d1.js";
13
- const b = "flow--modal", T = "flow--modal--dialog", N = "flow--modal--overlay", P = "flow--modal--button-group", G = "flow--modal--content", I = "flow--modal--off-canvas", t = {
14
- modal: b,
15
- "modal-zoom": "flow--modal--modal-zoom",
16
- dialog: T,
17
- overlay: N,
13
+ const b = "flow--modal--overlay", T = "flow--modal", N = "flow--modal--dialog", P = "flow--modal--button-group", G = "flow--modal--content", I = "flow--modal--off-canvas", t = {
14
+ overlay: b,
18
15
  "modal-fade": "flow--modal--modal-fade",
16
+ modal: T,
17
+ "modal-zoom": "flow--modal--modal-zoom",
18
+ dialog: N,
19
19
  buttonGroup: P,
20
20
  content: G,
21
21
  "size-s": "flow--modal--size-s",
@@ -10,7 +10,7 @@ import "@react-aria/utils";
10
10
  import "./propsContext-CauylOgH.js";
11
11
  import "remeda";
12
12
  import { F as I } from "./FieldError-De8_olcs.js";
13
- import { B as a } from "./Button-BPCYuj3x.js";
13
+ import { B as a } from "./Button-D5_aNpTg.js";
14
14
  import "@tabler/icons-react";
15
15
  import "./Icon-DdQwrIup.js";
16
16
  import { I as C } from "./IconChevronDown-a_vSoTxH.js";
@@ -13,8 +13,8 @@ const N = "flow--progress-bar", v = "flow--progress-bar--label", B = "flow--prog
13
13
  label: v,
14
14
  value: B,
15
15
  bar: E,
16
- "size-s": "flow--progress-bar--size-s",
17
16
  fill: P,
17
+ "size-s": "flow--progress-bar--size-s",
18
18
  info: z,
19
19
  success: V,
20
20
  danger: h,
package/dist/Tabs.js CHANGED
@@ -9,7 +9,7 @@ import { f as S } from "./flowComponent-BuF0s2uG.js";
9
9
  import { useCallbackRef as B } from "use-callback-ref";
10
10
  import { C as K } from "./ContextMenu-DJ4VRDCG.js";
11
11
  import { M as L } from "./MenuItem-DbXZNJo6.js";
12
- import { B as F } from "./Button-BPCYuj3x.js";
12
+ import { B as F } from "./Button-D5_aNpTg.js";
13
13
  import "@tabler/icons-react";
14
14
  import "./Icon-DdQwrIup.js";
15
15
  import { I as A } from "./IconContextMenu-bD7n5nvt.js";