@mittwald/flow-react-components 0.1.0-alpha.36 → 0.1.0-alpha.38
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/Checkbox.js +10 -11
- package/dist/FieldError-BvbJ9dzr.js +21 -0
- package/dist/FieldError.js +1 -1
- package/dist/IconDanger-CCULXdVw.js +9 -0
- package/dist/IconWarning-BIeWNF-G.js +11 -0
- package/dist/Icons.js +15 -14
- package/dist/InlineAlert.js +1 -1
- package/dist/NumberField.js +2 -2
- package/dist/RadioGroup.js +1 -1
- package/dist/StatusBadge.js +1 -1
- package/dist/{StatusIcon-GPbDfbJe.js → StatusIcon-CZbUO0T5.js} +9 -8
- package/dist/StatusIcon.js +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{TextFieldBase-DR3ofo0H.js → TextFieldBase-aO8YvtBx.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +1 -1
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +1 -1
- package/dist/types/lib/propsContext/propsContext.d.ts +0 -20
- package/package.json +20 -20
- package/dist/FieldError-DZl3QsUa.js +0 -17
- package/dist/IconWarning-DkGRbK8I.js +0 -12
package/dist/Checkbox.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
4
|
+
import * as l from "react-aria-components";
|
|
5
|
+
import n from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
7
|
import "./Icon-D4F2hKiG.js";
|
|
8
8
|
import "html-react-parser";
|
|
9
9
|
import "./propsContext-Dx7WKmmM.js";
|
|
10
10
|
import "@react-aria/utils";
|
|
11
|
-
import { I as
|
|
12
|
-
const i = "flow--checkbox",
|
|
13
|
-
checkbox: i
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
return /* @__PURE__ */ e.createElement(k.Checkbox, { ...a, className: m }, ({ isSelected: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, s ? /* @__PURE__ */ e.createElement(n, { className: c.checkmark }) : /* @__PURE__ */ e.createElement(h, { className: c.checkmark }), t));
|
|
11
|
+
import { I as k, a as h } from "./IconUnchecked-DbkvP1em.js";
|
|
12
|
+
const i = "flow--checkbox", c = {
|
|
13
|
+
checkbox: i
|
|
14
|
+
}, u = (o) => {
|
|
15
|
+
const { children: t, className: r, ...a } = o, m = n(c.checkbox, r);
|
|
16
|
+
return /* @__PURE__ */ e.createElement(l.Checkbox, { ...a, className: m }, ({ isSelected: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, s ? /* @__PURE__ */ e.createElement(k, { className: c.checkmark }) : /* @__PURE__ */ e.createElement(h, { className: c.checkmark }), t));
|
|
18
17
|
};
|
|
19
18
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
u as Checkbox,
|
|
20
|
+
u as default
|
|
22
21
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import r from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import a from "clsx";
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import { u as n } from "./useProps-C7GIMcgB.js";
|
|
9
|
+
import "@tabler/icons-react";
|
|
10
|
+
import "./Icon-D4F2hKiG.js";
|
|
11
|
+
import "html-react-parser";
|
|
12
|
+
import { I as c } from "./IconDanger-CCULXdVw.js";
|
|
13
|
+
const p = "flow--field-error", f = {
|
|
14
|
+
fieldError: p
|
|
15
|
+
}, j = (o) => {
|
|
16
|
+
const { children: e, className: t, ...s } = n("FieldError", o), m = a(f.fieldError, t);
|
|
17
|
+
return /* @__PURE__ */ r.createElement(i.FieldError, { ...s, className: m }, ({ validationErrors: l }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(c, { size: "s" }), /* @__PURE__ */ r.createElement("span", null, e || l.join(" "))));
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
j as F
|
|
21
|
+
};
|
package/dist/FieldError.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { IconAlertTriangle as o } from "@tabler/icons-react";
|
|
5
|
+
import { I as t } from "./Icon-D4F2hKiG.js";
|
|
6
|
+
const c = (r) => /* @__PURE__ */ e.createElement(t, { ...r }, /* @__PURE__ */ e.createElement(o, null));
|
|
7
|
+
export {
|
|
8
|
+
c as I
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { IconInfoCircle as t, IconCircleCheck as o, IconAlertCircle as r } from "@tabler/icons-react";
|
|
5
|
+
import { I as n } from "./Icon-D4F2hKiG.js";
|
|
6
|
+
const I = (c) => /* @__PURE__ */ e.createElement(n, { ...c }, /* @__PURE__ */ e.createElement(t, null)), s = (c) => /* @__PURE__ */ e.createElement(n, { ...c }, /* @__PURE__ */ e.createElement(o, null)), i = (c) => /* @__PURE__ */ e.createElement(n, { ...c }, /* @__PURE__ */ e.createElement(r, null));
|
|
7
|
+
export {
|
|
8
|
+
I,
|
|
9
|
+
s as a,
|
|
10
|
+
i as b
|
|
11
|
+
};
|
package/dist/Icons.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { IconAppWindow as o, IconArrowLeft as l, IconClock as c, IconChevronLeft as a, IconChevronRight as r, IconCalendarCheck as I, IconBuilding as m, IconLayoutBoard as s, IconDatabase as E, IconCalendar as u, IconTrash as i, IconWorld as h, IconMail as p, IconExternalLink as C, IconFilter as d, IconEyeCancel as
|
|
4
|
+
import { IconAppWindow as o, IconArrowLeft as l, IconClock as c, IconChevronLeft as a, IconChevronRight as r, IconCalendarCheck as I, IconBuilding as m, IconLayoutBoard as s, IconDatabase as E, IconCalendar as u, IconTrash as i, IconWorld as h, IconMail as p, IconExternalLink as C, IconFilter as d, IconEyeCancel as f, IconHome as S, IconList as L, IconPower as g, IconUsersGroup as v, IconBell as x, IconArchive as k, IconDice3 as D, IconSearch as b, IconListSearch as $, IconServer as w, IconSettings as H, IconEye as y, IconAdjustmentsHorizontal as A, IconDoor as B, IconHeadset as F, IconFileX as R, IconLayoutGrid as P } from "@tabler/icons-react";
|
|
5
5
|
import { I as t } from "./Icon-D4F2hKiG.js";
|
|
6
6
|
import { I as ge } from "./IconCheck-DkmJUDfj.js";
|
|
7
|
-
import { I as
|
|
7
|
+
import { I as xe, a as ke } from "./IconUnchecked-DbkvP1em.js";
|
|
8
8
|
import { I as be, a as $e, b as we, c as He } from "./IconPlus-CnpaX_7c.js";
|
|
9
9
|
import { I as Ae } from "./IconClose-B6UJFr7O.js";
|
|
10
10
|
import { I as Fe } from "./IconCopy-DwaMO7aJ.js";
|
|
11
|
-
import { I as Pe
|
|
12
|
-
import { I as
|
|
13
|
-
|
|
11
|
+
import { I as Pe } from "./IconDanger-CCULXdVw.js";
|
|
12
|
+
import { I as je, a as Me, b as Ue } from "./IconSucceeded-CPpK5tIY.js";
|
|
13
|
+
import { I as Ge, a as Ve, b as ze } from "./IconWarning-BIeWNF-G.js";
|
|
14
|
+
const U = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(o, null)), W = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(l, null)), G = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(c, null)), V = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(a, null)), z = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(r, null)), N = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(I, null)), X = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(m, null)), q = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(s, null)), J = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(E, null)), K = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(u, null)), O = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(i, null)), Q = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(h, null)), Y = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(p, null)), Z = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(C, null)), _ = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(d, null)), ee = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(f, null)), ne = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(S, null)), te = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(L, null)), ce = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(g, null)), oe = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(v, null)), le = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(x, null)), ae = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(k, null)), re = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(D, null)), Ie = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(b, null)), me = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement($, null)), se = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(w, null)), Ee = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(H, null)), ue = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(y, null)), ie = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(A, null)), he = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(B, null)), pe = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(F, null)), Ce = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(R, null)), de = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(P, null)), fe = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(c, null));
|
|
14
15
|
export {
|
|
15
16
|
U as IconApp,
|
|
16
17
|
W as IconBackLink,
|
|
17
18
|
G as IconBackup,
|
|
18
19
|
ge as IconCheck,
|
|
19
|
-
|
|
20
|
+
xe as IconChecked,
|
|
20
21
|
be as IconChevronDown,
|
|
21
22
|
V as IconChevronLeft,
|
|
22
23
|
z as IconChevronRight,
|
|
@@ -33,17 +34,17 @@ export {
|
|
|
33
34
|
Q as IconDomain,
|
|
34
35
|
Y as IconEmail,
|
|
35
36
|
Z as IconExternalLink,
|
|
36
|
-
|
|
37
|
+
je as IconFailed,
|
|
37
38
|
_ as IconFilter,
|
|
38
39
|
ee as IconHide,
|
|
39
40
|
ne as IconHome,
|
|
40
|
-
|
|
41
|
+
Ge as IconInfo,
|
|
41
42
|
te as IconListView,
|
|
42
43
|
ce as IconLogout,
|
|
43
44
|
oe as IconMember,
|
|
44
45
|
we as IconMinus,
|
|
45
46
|
le as IconNotification,
|
|
46
|
-
|
|
47
|
+
Me as IconPending,
|
|
47
48
|
He as IconPlus,
|
|
48
49
|
ae as IconProject,
|
|
49
50
|
re as IconRandom,
|
|
@@ -54,12 +55,12 @@ export {
|
|
|
54
55
|
ue as IconShow,
|
|
55
56
|
ie as IconSorting,
|
|
56
57
|
he as IconSshSftp,
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
Ue as IconSucceeded,
|
|
59
|
+
Ve as IconSuccess,
|
|
59
60
|
pe as IconSupport,
|
|
60
61
|
Ce as IconTerminate,
|
|
61
62
|
de as IconTileView,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
fe as IconTime,
|
|
64
|
+
ke as IconUnchecked,
|
|
65
|
+
ze as IconWarning
|
|
65
66
|
};
|
package/dist/InlineAlert.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./propsContext-Dx7WKmmM.js";
|
|
|
5
5
|
import { P as c } from "./PropsContextProvider-CEoxD8yK.js";
|
|
6
6
|
import { u as m } from "./useProps-C7GIMcgB.js";
|
|
7
7
|
import f from "clsx";
|
|
8
|
-
import { S as p } from "./StatusIcon-
|
|
8
|
+
import { S as p } from "./StatusIcon-CZbUO0T5.js";
|
|
9
9
|
const u = "flow--inline-alert", d = "flow--inline-alert--content", g = "flow--inline-alert--status-icon", w = "flow--inline-alert--heading", I = "flow--inline-alert--info", N = "flow--inline-alert--warning", h = "flow--inline-alert--danger", A = "flow--inline-alert--success", n = {
|
|
10
10
|
inlineAlert: u,
|
|
11
11
|
content: d,
|
package/dist/NumberField.js
CHANGED
|
@@ -7,7 +7,7 @@ import u from "clsx";
|
|
|
7
7
|
import "./propsContext-Dx7WKmmM.js";
|
|
8
8
|
import { P as p } from "./PropsContextProvider-CEoxD8yK.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
|
-
import { F as d } from "./FieldError-
|
|
10
|
+
import { F as d } from "./FieldError-BvbJ9dzr.js";
|
|
11
11
|
import { B as s } from "./Button-Bh0E7tqA.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
import "./Icon-D4F2hKiG.js";
|
|
@@ -55,7 +55,7 @@ const I = "flow--number-field--group", B = "flow--number-field--input", F = "flo
|
|
|
55
55
|
},
|
|
56
56
|
/* @__PURE__ */ e.createElement(N, null),
|
|
57
57
|
/* @__PURE__ */ e.createElement(b, { className: t.coarsePointerIcon })
|
|
58
|
-
)), /* @__PURE__ */ e.createElement(p, { props: i }, c), /* @__PURE__ */ e.createElement(d, { className:
|
|
58
|
+
)), /* @__PURE__ */ e.createElement(p, { props: i }, c), /* @__PURE__ */ e.createElement(d, { className: o.fieldError }));
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
61
|
M as NumberField,
|
package/dist/RadioGroup.js
CHANGED
|
@@ -6,7 +6,7 @@ import d from "clsx";
|
|
|
6
6
|
import "./propsContext-Dx7WKmmM.js";
|
|
7
7
|
import { P as m } from "./PropsContextProvider-CEoxD8yK.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
|
-
import { F as p } from "./FieldError-
|
|
9
|
+
import { F as p } from "./FieldError-BvbJ9dzr.js";
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
11
|
import "./Icon-D4F2hKiG.js";
|
|
12
12
|
import "html-react-parser";
|
package/dist/StatusBadge.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
4
|
import l from "clsx";
|
|
5
|
-
import { S as u } from "./StatusIcon-
|
|
5
|
+
import { S as u } from "./StatusIcon-CZbUO0T5.js";
|
|
6
6
|
import { T as d } from "./Text-8V0yR4PK.js";
|
|
7
7
|
const g = "flow--status-badge", m = "flow--status-badge--text", f = "flow--status-badge--info", i = "flow--status-badge--success", w = "flow--status-badge--warning", x = "flow--status-badge--danger", s = {
|
|
8
8
|
statusBadge: g,
|
|
@@ -7,8 +7,9 @@ import "clsx";
|
|
|
7
7
|
import "html-react-parser";
|
|
8
8
|
import "./propsContext-Dx7WKmmM.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
|
-
import { I as c
|
|
11
|
-
import {
|
|
10
|
+
import { I as c } from "./IconDanger-CCULXdVw.js";
|
|
11
|
+
import { I as e, a as i, b as m } from "./IconWarning-BIeWNF-G.js";
|
|
12
|
+
import { useLocalizedStringFormatter as u } from "react-aria";
|
|
12
13
|
const I = {
|
|
13
14
|
"de-DE": {
|
|
14
15
|
"statusIcon.danger": "Fehler",
|
|
@@ -22,15 +23,15 @@ const I = {
|
|
|
22
23
|
"statusIcon.success": "Successful",
|
|
23
24
|
"statusIcon.warning": "Warning"
|
|
24
25
|
}
|
|
25
|
-
},
|
|
26
|
+
}, f = {
|
|
26
27
|
danger: c,
|
|
27
28
|
info: e,
|
|
28
29
|
success: i,
|
|
29
|
-
warning:
|
|
30
|
-
},
|
|
31
|
-
const { status: t = "info", ...
|
|
32
|
-
return /* @__PURE__ */ a.createElement(r, { "aria-label": s, ...
|
|
30
|
+
warning: m
|
|
31
|
+
}, D = (o) => {
|
|
32
|
+
const { status: t = "info", ...n } = o, s = u(I).format(`statusIcon.${t}`), r = f[t];
|
|
33
|
+
return /* @__PURE__ */ a.createElement(r, { "aria-label": s, ...n });
|
|
33
34
|
};
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
D as S
|
|
36
37
|
};
|
package/dist/StatusIcon.js
CHANGED
package/dist/TextArea.js
CHANGED
package/dist/TextField.js
CHANGED
|
@@ -7,7 +7,7 @@ import p from "clsx";
|
|
|
7
7
|
import "./propsContext-Dx7WKmmM.js";
|
|
8
8
|
import { P as n } from "./PropsContextProvider-CEoxD8yK.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
|
-
import { F as d } from "./FieldError-
|
|
10
|
+
import { F as d } from "./FieldError-BvbJ9dzr.js";
|
|
11
11
|
const P = (o) => {
|
|
12
12
|
const { children: s, className: t, input: a, ...i } = o, l = p(e.formField, t), m = {
|
|
13
13
|
Label: {
|