@mittwald/flow-react-components 0.1.0-alpha.262 → 0.1.0-alpha.264

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.
@@ -7,7 +7,7 @@ import { P as N } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { d } from "./dynamic-ClpUSmEt.js";
10
- import { B as y } from "./Button-mGobhr9A.js";
10
+ import { B as y } from "./Button-D1ALxYux.js";
11
11
  import "@tabler/icons-react";
12
12
  import "./Icon-cEgH3ZXQ.js";
13
13
  import { I as B } from "./IconChevronDown-CQUk3agB.js";
package/dist/Accordion.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { A as r } from "./Accordion-Cna92lRM.js";
3
+ import { A as r } from "./Accordion-CNYh2R9M.js";
4
4
  export {
5
5
  r as Accordion,
6
6
  r as default
@@ -0,0 +1,94 @@
1
+ "use client"
2
+ /* */
3
+ import o from "react";
4
+ import g from "clsx";
5
+ import "./propsContext-DzAKlmhS.js";
6
+ import { P as f } from "./PropsContextProvider-C6Z4XGp6.js";
7
+ import "@react-aria/utils";
8
+ import "remeda";
9
+ import { f as u } from "./flowComponent-CY2oW3O9.js";
10
+ import { B as n } from "./Button-D1ALxYux.js";
11
+ import "@tabler/icons-react";
12
+ import "./Icon-cEgH3ZXQ.js";
13
+ import { I as w } from "./IconClose-DVYTU3Rp.js";
14
+ const v = "flow--badge", y = "flow--badge--content", N = "flow--badge--button", x = "flow--badge--close", B = "flow--badge--scope", C = "flow--badge--value", E = "flow--badge--neutral", P = "flow--badge--disabled", T = "flow--badge--blue", h = "flow--badge--navy", k = "flow--badge--violet", I = "flow--badge--teal", L = "flow--badge--lilac", z = "flow--badge--green", D = "flow--badge--orange", R = "flow--badge--red", j = "flow--badge--dark", q = "flow--badge--light", e = {
15
+ badge: v,
16
+ content: y,
17
+ button: N,
18
+ close: x,
19
+ scope: B,
20
+ value: C,
21
+ neutral: E,
22
+ disabled: P,
23
+ blue: T,
24
+ navy: h,
25
+ violet: k,
26
+ teal: I,
27
+ lilac: L,
28
+ green: z,
29
+ orange: D,
30
+ red: R,
31
+ dark: j,
32
+ light: q
33
+ }, V = u("Badge", (r) => {
34
+ const {
35
+ children: l,
36
+ className: c,
37
+ color: d = "neutral",
38
+ refProp: m,
39
+ onPress: t,
40
+ onClose: s,
41
+ isDisabled: a,
42
+ ...b
43
+ } = r, i = g(
44
+ e.badge,
45
+ e[d],
46
+ a && e.disabled,
47
+ c
48
+ ), p = {
49
+ Label: {
50
+ elementType: "span",
51
+ className: e.scope,
52
+ unstyled: !0
53
+ },
54
+ Text: {
55
+ elementType: "span",
56
+ className: e.value
57
+ },
58
+ Button: {
59
+ Label: {
60
+ elementType: "span",
61
+ className: e.scope,
62
+ unstyled: !0
63
+ },
64
+ Text: {
65
+ elementType: "span",
66
+ className: e.value
67
+ }
68
+ }
69
+ };
70
+ return /* @__PURE__ */ o.createElement(f, { props: p }, /* @__PURE__ */ o.createElement("div", { className: i, ...b, ref: m }, !t && /* @__PURE__ */ o.createElement("div", { className: e.content }, l), t && /* @__PURE__ */ o.createElement(
71
+ n,
72
+ {
73
+ isDisabled: a,
74
+ unstyled: !0,
75
+ className: e.button,
76
+ onPress: t
77
+ },
78
+ l
79
+ ), s && /* @__PURE__ */ o.createElement(
80
+ n,
81
+ {
82
+ className: e.close,
83
+ size: "s",
84
+ color: "dark",
85
+ variant: "plain",
86
+ onPress: s,
87
+ isDisabled: a
88
+ },
89
+ /* @__PURE__ */ o.createElement(w, null)
90
+ )));
91
+ });
92
+ export {
93
+ V as B
94
+ };
package/dist/Badge.js CHANGED
@@ -1,95 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
- import o from "react";
4
- import g from "clsx";
5
- import "./propsContext-DzAKlmhS.js";
6
- import { P as f } from "./PropsContextProvider-C6Z4XGp6.js";
7
- import "@react-aria/utils";
8
- import "remeda";
9
- import { f as u } from "./flowComponent-CY2oW3O9.js";
10
- import { B as n } from "./Button-mGobhr9A.js";
11
- import "@tabler/icons-react";
12
- import "./Icon-cEgH3ZXQ.js";
13
- import { I as w } from "./IconClose-DVYTU3Rp.js";
14
- const v = "flow--badge", y = "flow--badge--content", N = "flow--badge--button", x = "flow--badge--close", C = "flow--badge--scope", E = "flow--badge--value", P = "flow--badge--neutral", T = "flow--badge--disabled", B = "flow--badge--blue", h = "flow--badge--navy", k = "flow--badge--violet", I = "flow--badge--teal", L = "flow--badge--lilac", z = "flow--badge--green", D = "flow--badge--orange", R = "flow--badge--red", j = "flow--badge--dark", q = "flow--badge--light", e = {
15
- badge: v,
16
- content: y,
17
- button: N,
18
- close: x,
19
- scope: C,
20
- value: E,
21
- neutral: P,
22
- disabled: T,
23
- blue: B,
24
- navy: h,
25
- violet: k,
26
- teal: I,
27
- lilac: L,
28
- green: z,
29
- orange: D,
30
- red: R,
31
- dark: j,
32
- light: q
33
- }, V = u("Badge", (r) => {
34
- const {
35
- children: l,
36
- className: c,
37
- color: d = "neutral",
38
- refProp: m,
39
- onPress: t,
40
- onClose: s,
41
- isDisabled: a,
42
- ...b
43
- } = r, i = g(
44
- e.badge,
45
- e[d],
46
- a && e.disabled,
47
- c
48
- ), p = {
49
- Label: {
50
- elementType: "span",
51
- className: e.scope,
52
- unstyled: !0
53
- },
54
- Text: {
55
- elementType: "span",
56
- className: e.value
57
- },
58
- Button: {
59
- Label: {
60
- elementType: "span",
61
- className: e.scope,
62
- unstyled: !0
63
- },
64
- Text: {
65
- elementType: "span",
66
- className: e.value
67
- }
68
- }
69
- };
70
- return /* @__PURE__ */ o.createElement(f, { props: p }, /* @__PURE__ */ o.createElement("div", { className: i, ...b, ref: m }, !t && /* @__PURE__ */ o.createElement("div", { className: e.content }, l), t && /* @__PURE__ */ o.createElement(
71
- n,
72
- {
73
- isDisabled: a,
74
- unstyled: !0,
75
- className: e.button,
76
- onPress: t
77
- },
78
- l
79
- ), s && /* @__PURE__ */ o.createElement(
80
- n,
81
- {
82
- className: e.close,
83
- size: "s",
84
- color: "dark",
85
- variant: "plain",
86
- onPress: s,
87
- isDisabled: a
88
- },
89
- /* @__PURE__ */ o.createElement(w, null)
90
- )));
91
- });
3
+ import { B as e } from "./Badge-BcAQAMkd.js";
92
4
  export {
93
- V as Badge,
94
- V as default
5
+ e as Badge,
6
+ e as default
95
7
  };
@@ -4,13 +4,13 @@ import o, { useEffect as F } from "react";
4
4
  import * as E from "react-aria-components";
5
5
  import y from "clsx";
6
6
  import { C } from "./ClearPropsContext-CUvsbMn8.js";
7
- import { P as h } from "./PropsContextProvider-C6Z4XGp6.js";
7
+ import { P as N } from "./PropsContextProvider-C6Z4XGp6.js";
8
8
  import "@react-aria/utils";
9
9
  import "./propsContext-DzAKlmhS.js";
10
10
  import "remeda";
11
11
  import "@tabler/icons-react";
12
12
  import "./Icon-cEgH3ZXQ.js";
13
- import { I, a as N } from "./IconSucceeded-C10oveWn.js";
13
+ import { I as h, a as I } from "./IconSucceeded-C10oveWn.js";
14
14
  import { W as f } from "./Wrap-DGT1h1o3.js";
15
15
  import { T as B } from "./Text-T_kNKeFe.js";
16
16
  import { f as k } from "./flowComponent-CY2oW3O9.js";
@@ -112,7 +112,7 @@ const z = "flow--button", L = "flow--button--outline", R = "flow--button--conten
112
112
  CounterBadge: {
113
113
  className: t.counterBadge
114
114
  }
115
- }, m = d ? I : l ? N : n ? A : void 0, S = m && /* @__PURE__ */ o.createElement(m, { size: a, className: t.stateIcon }), x = typeof s == "string";
115
+ }, m = d ? h : l ? I : n ? A : void 0, S = m && /* @__PURE__ */ o.createElement(m, { size: a, className: t.stateIcon }), x = typeof s == "string";
116
116
  return /* @__PURE__ */ o.createElement(C, null, /* @__PURE__ */ o.createElement(
117
117
  E.Button,
118
118
  {
@@ -121,7 +121,7 @@ const z = "flow--button", L = "flow--button--outline", R = "flow--button--conten
121
121
  slot: P,
122
122
  ...w
123
123
  },
124
- /* @__PURE__ */ o.createElement(h, { props: p }, /* @__PURE__ */ o.createElement(f, { if: !u }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(f, { if: x }, /* @__PURE__ */ o.createElement(B, null, s))))),
124
+ /* @__PURE__ */ o.createElement(N, { props: p }, /* @__PURE__ */ o.createElement(f, { if: !u }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(f, { if: x }, /* @__PURE__ */ o.createElement(B, { className: t.text }, s))))),
125
125
  S
126
126
  ));
127
127
  });
package/dist/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { B as o } from "./Button-mGobhr9A.js";
3
+ import { B as o } from "./Button-D1ALxYux.js";
4
4
  export {
5
5
  o as Button,
6
6
  o as default
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e from "react";
4
- import { B as r } from "./Button-mGobhr9A.js";
4
+ import { B as r } from "./Button-D1ALxYux.js";
5
5
  import * as a from "react-aria-components";
6
6
  import "@tabler/icons-react";
7
7
  import "./Icon-cEgH3ZXQ.js";
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import o from "react";
4
4
  import i from "copy-to-clipboard";
5
- import { B as l } from "./Button-mGobhr9A.js";
5
+ import { B as l } from "./Button-D1ALxYux.js";
6
6
  import "@tabler/icons-react";
7
7
  import "./Icon-cEgH3ZXQ.js";
8
8
  import { I as c } from "./IconCopy-Ceve0ccv.js";
@@ -7,7 +7,7 @@ import { P as u } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import * as r from "react-aria-components";
10
- import { B as E } from "./Button-mGobhr9A.js";
10
+ import { B as E } from "./Button-D1ALxYux.js";
11
11
  import "@tabler/icons-react";
12
12
  import "./Icon-cEgH3ZXQ.js";
13
13
  import { a as C } from "./IconCalendar-DBkKsCNt.js";
@@ -17,7 +17,7 @@ import { P as N } from "./PopoverTrigger-CXPiJcMt.js";
17
17
  import "mobx";
18
18
  import { u as P } from "./useOverlayController-D8pgx8nV.js";
19
19
  import { f as y } from "./flowComponent-CY2oW3O9.js";
20
- import { s as F, C as b } from "./CalendarHeader-BhpwoC1A.js";
20
+ import { s as F, C as b } from "./CalendarHeader-lLJrWz6j.js";
21
21
  const g = "flow--date-picker--date-input", v = {
22
22
  dateInput: g
23
23
  }, I = (t) => {
@@ -9,8 +9,8 @@ import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import * as t from "react-aria-components";
11
11
  import { P as g } from "./PopoverTrigger-CXPiJcMt.js";
12
- import { s as i, C } from "./CalendarHeader-BhpwoC1A.js";
13
- import { B as D } from "./Button-mGobhr9A.js";
12
+ import { s as i, C } from "./CalendarHeader-lLJrWz6j.js";
13
+ import { B as D } from "./Button-D1ALxYux.js";
14
14
  import "@tabler/icons-react";
15
15
  import "./Icon-cEgH3ZXQ.js";
16
16
  import { a as R } from "./IconCalendar-DBkKsCNt.js";
package/dist/List.js CHANGED
@@ -9,7 +9,7 @@ import { P as bt } from "./PropsContextProvider-C6Z4XGp6.js";
9
9
  import "@react-aria/utils";
10
10
  import { isShallowEqual as Zt, unique as te, difference as ee, times as se } from "remeda";
11
11
  import { d as ie } from "./dynamic-ClpUSmEt.js";
12
- import { B as w } from "./Button-mGobhr9A.js";
12
+ import { B as w } from "./Button-D1ALxYux.js";
13
13
  import { IconArrowBackUp as ae } from "@tabler/icons-react";
14
14
  import { I as ne } from "./Icon-cEgH3ZXQ.js";
15
15
  import { I as re } from "./IconContextMenu-DLHXM1Ph.js";
@@ -23,13 +23,13 @@ import { f as le } from "./flowComponent-CY2oW3O9.js";
23
23
  import { R as ce } from "./Render-BdlTa7Qb.js";
24
24
  import { T as E } from "./Text-T_kNKeFe.js";
25
25
  import { b as de, I as ue, a as me, c as he } from "./IconView-B0kOF1Eh.js";
26
- import { I as ge } from "./IconClose-DVYTU3Rp.js";
27
- import { observer as pe } from "mobx-react-lite";
26
+ import { observer as ge } from "mobx-react-lite";
28
27
  import { a as ct, T as dt } from "./TooltipTrigger-TslkLN5s.js";
28
+ import { B as pe } from "./Badge-BcAQAMkd.js";
29
29
  import { makeObservable as fe, observable as ut, computed as mt, action as O } from "mobx";
30
30
  import "./context-Cf7tqFtF.js";
31
31
  import { u as Se } from "./useOnChange-C1Quwyuz.js";
32
- import { S as be } from "./SearchField-Dy_ogzQr.js";
32
+ import { S as be } from "./SearchField-vN6YciFA.js";
33
33
  import { H as Y } from "./Heading-FRIQlW19.js";
34
34
  import { S as ve } from "./Section-DsyCp0AH.js";
35
35
  import { getProperty as we } from "dot-prop";
@@ -163,7 +163,7 @@ const De = "flow--list--items--item--view", xe = "flow--list--items--item--view-
163
163
  },
164
164
  "list.setSorting"
165
165
  ) : /* @__PURE__ */ i.createElement(D, { locales: b }, "list.sorting"));
166
- return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "soft", size: "s", color: "secondary" }, s, /* @__PURE__ */ i.createElement(de, null)), /* @__PURE__ */ i.createElement(
166
+ return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ i.createElement(de, null)), /* @__PURE__ */ i.createElement(
167
167
  W,
168
168
  {
169
169
  selectionMode: "single",
@@ -186,7 +186,7 @@ const De = "flow--list--items--item--view", xe = "flow--list--items--item--view-
186
186
  },
187
187
  d.render()
188
188
  )), l = e.filter((d) => d.isActive).map((d) => d.id);
189
- return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ i.createElement(E, null, n ?? o), /* @__PURE__ */ i.createElement(ue, null)), /* @__PURE__ */ i.createElement(
189
+ return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, /* @__PURE__ */ i.createElement(E, null, n ?? o), /* @__PURE__ */ i.createElement(ue, null)), /* @__PURE__ */ i.createElement(
190
190
  W,
191
191
  {
192
192
  selectionMode: s === "one" ? "single" : "multiple",
@@ -204,8 +204,8 @@ const De = "flow--list--items--item--view", xe = "flow--list--items--item--view-
204
204
  }, ts = "flow--list--header--active-filters", es = "flow--list--header--active-filters--clear-button", ss = {
205
205
  activeFilters: ts,
206
206
  clearButton: es
207
- }, is = pe(() => {
208
- const a = g(), t = y(b), s = a.filters.flatMap((l) => l.values).filter((l) => l.isActive).map((l) => /* @__PURE__ */ i.createElement(w, { variant: "soft", size: "s", key: l.id, onPress: () => l.deactivate() }, /* @__PURE__ */ i.createElement(E, null, l.render()), /* @__PURE__ */ i.createElement(ge, null))), n = a.filters.filter((l) => l.hasChanged()).length > 0, o = a.supportsSettingsStorage && n && /* @__PURE__ */ i.createElement(ct, null, /* @__PURE__ */ i.createElement(dt, null, /* @__PURE__ */ i.createElement(D, { locales: b }, "list.filters.store")), /* @__PURE__ */ i.createElement(
207
+ }, is = ge(() => {
208
+ const a = g(), t = y(b), s = a.filters.flatMap((l) => l.values).filter((l) => l.isActive).map((l) => /* @__PURE__ */ i.createElement(pe, { key: l.id, onClose: () => l.deactivate() }, /* @__PURE__ */ i.createElement(E, null, l.render()))), n = a.filters.filter((l) => l.hasChanged()).length > 0, o = a.supportsSettingsStorage && n && /* @__PURE__ */ i.createElement(ct, null, /* @__PURE__ */ i.createElement(dt, null, /* @__PURE__ */ i.createElement(D, { locales: b }, "list.filters.store")), /* @__PURE__ */ i.createElement(
209
209
  w,
210
210
  {
211
211
  size: "s",
@@ -261,9 +261,8 @@ const De = "flow--list--items--item--view", xe = "flow--list--items--item--view-
261
261
  return t.itemView && s.push("list"), t.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(
262
262
  w,
263
263
  {
264
- variant: "soft",
264
+ variant: "outline",
265
265
  color: "secondary",
266
- size: "s",
267
266
  "aria-label": a.format("list.settings")
268
267
  },
269
268
  /* @__PURE__ */ i.createElement(E, null, a.format(`list.settings.viewMode.${e}`)),
package/dist/Modal.js CHANGED
@@ -14,7 +14,7 @@ import { u as w } from "./useOverlayController-D8pgx8nV.js";
14
14
  import { O as E, a as h } from "./OverlayTrigger-bD8_mPel.js";
15
15
  import { H as O } from "./Header-B9w8yH1e.js";
16
16
  import { A as M } from "./Action-BBdK8ZAq.js";
17
- import { B as N } from "./Button-mGobhr9A.js";
17
+ import { B as N } from "./Button-D1ALxYux.js";
18
18
  import "@tabler/icons-react";
19
19
  import "./Icon-cEgH3ZXQ.js";
20
20
  import { I as x } from "./IconClose-DVYTU3Rp.js";
@@ -9,7 +9,7 @@ import { P as l } from "./PropsContextProvider-C6Z4XGp6.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
11
  import { TunnelProvider as u, TunnelExit as p } from "@mittwald/react-tunnel";
12
- import { A as x } from "./Accordion-Cna92lRM.js";
12
+ import { A as x } from "./Accordion-CNYh2R9M.js";
13
13
  import { C as N } from "./Content-cYnXBHf-.js";
14
14
  const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigation--icon", P = "flow--navigation--text", w = "flow--navigation--control-icon", r = {
15
15
  navigation: C,
@@ -8,7 +8,7 @@ import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { S as g } from "./StatusIcon-DEK5-0Aw.js";
10
10
  import { L as h } from "./Link-DW8KPMYX.js";
11
- import { B as k } from "./Button-mGobhr9A.js";
11
+ import { B as k } from "./Button-D1ALxYux.js";
12
12
  import "@tabler/icons-react";
13
13
  import "./Icon-cEgH3ZXQ.js";
14
14
  import { I as x } from "./IconClose-DVYTU3Rp.js";
@@ -10,7 +10,7 @@ import "@react-aria/utils";
10
10
  import "./propsContext-DzAKlmhS.js";
11
11
  import "remeda";
12
12
  import { F as E } from "./FieldError-Crorz6g5.js";
13
- import { B as m } from "./Button-mGobhr9A.js";
13
+ import { B as m } from "./Button-D1ALxYux.js";
14
14
  import "@tabler/icons-react";
15
15
  import "./Icon-cEgH3ZXQ.js";
16
16
  import { I as N } from "./IconChevronDown-CQUk3agB.js";
@@ -11,7 +11,7 @@ import "./propsContext-DzAKlmhS.js";
11
11
  import "remeda";
12
12
  import { F as u } from "./FieldError-Crorz6g5.js";
13
13
  import { f as F } from "./flowComponent-CY2oW3O9.js";
14
- import { B as E } from "./Button-mGobhr9A.js";
14
+ import { B as E } from "./Button-D1ALxYux.js";
15
15
  import "@tabler/icons-react";
16
16
  import "./Icon-cEgH3ZXQ.js";
17
17
  import { I as N } from "./IconClose-DVYTU3Rp.js";
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { S as e } from "./SearchField-Dy_ogzQr.js";
3
+ import { S as e } from "./SearchField-vN6YciFA.js";
4
4
  export {
5
5
  e as SearchField,
6
6
  e as default
package/dist/Slider.js CHANGED
@@ -8,7 +8,7 @@ import "./propsContext-DzAKlmhS.js";
8
8
  import { P as v } from "./PropsContextProvider-C6Z4XGp6.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
- import { B as i } from "./Button-mGobhr9A.js";
11
+ import { B as i } from "./Button-D1ALxYux.js";
12
12
  import "@tabler/icons-react";
13
13
  import "./Icon-cEgH3ZXQ.js";
14
14
  import { I as w, a as N } from "./IconPlus-5rBbsI1A.js";
package/dist/Tabs.js CHANGED
@@ -8,7 +8,7 @@ import { f as O } from "./flowComponent-CY2oW3O9.js";
8
8
  import { useCallbackRef as S } from "use-callback-ref";
9
9
  import { a as A, C as B } from "./ContextMenuTrigger-5-EjHDtY.js";
10
10
  import { M as K } from "./MenuItem-CFE7SA5J.js";
11
- import { B as L } from "./Button-mGobhr9A.js";
11
+ import { B as L } from "./Button-D1ALxYux.js";
12
12
  import "@tabler/icons-react";
13
13
  import "./Icon-cEgH3ZXQ.js";
14
14
  import { I as W } from "./IconContextMenu-DLHXM1Ph.js";