@mittwald/flow-react-components 0.1.0-alpha.45 → 0.1.0-alpha.47
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/Avatar.js +22 -20
- package/dist/Button-IRdeGCc6.js +78 -0
- package/dist/Button.js +1 -1
- package/dist/Checkbox.js +9 -8
- package/dist/ClearPropsContext-CD1-9TZA.js +11 -0
- package/dist/ColumnLayout.js +17 -13
- package/dist/Content.js +9 -12
- package/dist/CopyButton.js +17 -17
- package/dist/FieldDescription.js +10 -10
- package/dist/FieldError-BFjashy7.js +21 -0
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +8 -9
- package/dist/Heading.js +13 -12
- package/dist/{Icon-S-6j_Kl3.js → Icon-X0pOdlJY.js} +16 -16
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-1PRSXamm.js → IconCheck-BD6sGh4B.js} +1 -1
- package/dist/{IconChevronUp-_2GHUOdG.js → IconChevronUp-CyLNEJQy.js} +1 -1
- package/dist/{IconClose-D-8Y7fMZ.js → IconClose-mhahyKoS.js} +1 -1
- package/dist/{IconCopy-C1yg9WXZ.js → IconCopy-Bpp37OMK.js} +1 -1
- package/dist/{IconDanger-Dd6HnAx9.js → IconDanger-DH5QCYHj.js} +1 -1
- package/dist/{IconPlus-D0cizRQb.js → IconPlus-CnjtlT2f.js} +1 -1
- package/dist/{IconSucceeded-BvrlGH02.js → IconSucceeded-DQdtfEkv.js} +1 -1
- package/dist/{IconUnchecked-DuOQbrqC.js → IconUnchecked-BhOGDWAq.js} +1 -1
- package/dist/{IconWarning-h9MeCuZE.js → IconWarning-D7qa4Hmz.js} +1 -1
- package/dist/Icons.js +10 -10
- package/dist/Image.js +8 -5
- package/dist/Initials.js +11 -11
- package/dist/InlineAlert.js +15 -14
- package/dist/InlineCode-DZzyKdCm.js +17 -0
- package/dist/InlineCode.js +1 -1
- package/dist/Label-DIeeRQZQ.js +25 -0
- package/dist/Label.js +1 -1
- package/dist/LabeledValue.js +9 -7
- package/dist/LayoutCard.js +10 -11
- package/dist/Link.js +16 -16
- package/dist/List.js +7 -7
- package/dist/Navigation.js +8 -7
- package/dist/NumberField.js +21 -19
- package/dist/PropsContextProvider-B6QiUIPM.js +28 -0
- package/dist/RadioGroup.js +15 -14
- package/dist/Section.js +22 -12
- package/dist/StatusBadge.js +21 -13
- package/dist/StatusIcon-VLj9j54q.js +39 -0
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +23 -18
- package/dist/Text-BAkan-um.js +27 -0
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +13 -9
- package/dist/TextField.js +14 -10
- package/dist/TextFieldBase-_wFIsQyH.js +30 -0
- package/dist/nextjs/LinkProvider.js +11 -10
- package/dist/propsContext-Dx7WKmmM.js +7 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/propTypes/index.d.ts +5 -1
- package/dist/types/lib/propsContext/propsContext.d.ts +2 -0
- package/dist/types/lib/react/getPropsMerger.d.ts +6 -0
- package/dist/{useProps-d5Do2me4.js → useProps-4x7PxhiE.js} +13 -10
- package/package.json +2 -2
- package/dist/Button-FPl3fKiM.js +0 -77
- package/dist/FieldError-BK5ho6N9.js +0 -21
- package/dist/InlineCode-CVs3jCiw.js +0 -13
- package/dist/Label-B8RjhN8C.js +0 -25
- package/dist/PropsContextProvider-C7Evvjhy.js +0 -43
- package/dist/StatusIcon-ab4wFrRb.js +0 -38
- package/dist/Text-B5YK5s7t.js +0 -26
- package/dist/TextFieldBase-DSF3g83M.js +0 -28
package/dist/Icons.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
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 f, IconFilter as C, IconEyeCancel as d, IconHome as S, IconList as L, IconPower as g, IconUsersGroup as x, IconBell as v, IconArchive as k, IconDice3 as D, IconSearch as $, IconListSearch as b, 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
|
-
import { I as t } from "./Icon-
|
|
6
|
-
import { I as ge } from "./IconCheck-
|
|
7
|
-
import { I as ve, a as ke } from "./IconUnchecked-
|
|
8
|
-
import { I as $e, a as be } from "./IconChevronUp-
|
|
9
|
-
import { I as He } from "./IconClose-
|
|
10
|
-
import { I as Ae } from "./IconCopy-
|
|
11
|
-
import { I as Fe } from "./IconDanger-
|
|
12
|
-
import { I as Pe, a as Te, b as je } from "./IconSucceeded-
|
|
13
|
-
import { I as Ue, a as We, b as Ge } from "./IconWarning-
|
|
14
|
-
import { I as ze, a as Ne } from "./IconPlus-
|
|
5
|
+
import { I as t } from "./Icon-X0pOdlJY.js";
|
|
6
|
+
import { I as ge } from "./IconCheck-BD6sGh4B.js";
|
|
7
|
+
import { I as ve, a as ke } from "./IconUnchecked-BhOGDWAq.js";
|
|
8
|
+
import { I as $e, a as be } from "./IconChevronUp-CyLNEJQy.js";
|
|
9
|
+
import { I as He } from "./IconClose-mhahyKoS.js";
|
|
10
|
+
import { I as Ae } from "./IconCopy-Bpp37OMK.js";
|
|
11
|
+
import { I as Fe } from "./IconDanger-DH5QCYHj.js";
|
|
12
|
+
import { I as Pe, a as Te, b as je } from "./IconSucceeded-DQdtfEkv.js";
|
|
13
|
+
import { I as Ue, a as We, b as Ge } from "./IconWarning-D7qa4Hmz.js";
|
|
14
|
+
import { I as ze, a as Ne } from "./IconPlus-CnjtlT2f.js";
|
|
15
15
|
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(f, null)), _ = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(C, null)), ee = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(d, 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(x, null)), le = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(v, 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($, null)), me = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(b, 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)), fe = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(R, null)), Ce = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(P, null)), de = (n) => /* @__PURE__ */ e.createElement(t, { ...n }, /* @__PURE__ */ e.createElement(c, null));
|
|
16
16
|
export {
|
|
17
17
|
U as IconApp,
|
package/dist/Image.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import "
|
|
6
|
-
import { u as
|
|
7
|
-
const i = (e) =>
|
|
3
|
+
import t from "react";
|
|
4
|
+
import { C as o } from "./ClearPropsContext-CD1-9TZA.js";
|
|
5
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
+
import { u as m } from "./useProps-4x7PxhiE.js";
|
|
7
|
+
const i = (e) => {
|
|
8
|
+
const r = m("Image", e);
|
|
9
|
+
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement("img", { ...r }));
|
|
10
|
+
};
|
|
8
11
|
export {
|
|
9
12
|
i as Image,
|
|
10
13
|
i as default
|
package/dist/Initials.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import c from "clsx";
|
|
5
|
-
import "./
|
|
6
|
-
import "
|
|
7
|
-
import { u as
|
|
8
|
-
import { onlyText as
|
|
9
|
-
const
|
|
10
|
-
initials:
|
|
11
|
-
},
|
|
12
|
-
const { children: t, className: a } =
|
|
13
|
-
return /* @__PURE__ */ e.createElement("div", { "aria-label": s, className: o }, l);
|
|
5
|
+
import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
+
import { u as f } from "./useProps-4x7PxhiE.js";
|
|
8
|
+
import { onlyText as u } from "react-children-utilities";
|
|
9
|
+
const C = (i) => i.replace(/[^\p{L}\s]/giu, "").split(" ").map((t) => t.trim()[0]).filter((t) => t !== void 0).map((t) => t.toUpperCase()).slice(0, 2), x = "flow--initials", d = {
|
|
10
|
+
initials: x
|
|
11
|
+
}, P = (i) => {
|
|
12
|
+
const { children: t, className: a } = f("Initials", i), s = u(t), n = C(s), o = c(d.initials, a), l = n.map((r, m) => /* @__PURE__ */ e.createElement("span", { key: m }, r));
|
|
13
|
+
return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement("div", { "aria-label": s, className: o }, l));
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
P as Initials,
|
|
17
|
+
P as default
|
|
18
18
|
};
|
package/dist/InlineAlert.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import f from "
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
5
|
+
import { P as m } from "./PropsContextProvider-B6QiUIPM.js";
|
|
6
|
+
import { u as f } from "./useProps-4x7PxhiE.js";
|
|
7
|
+
import p from "clsx";
|
|
8
|
+
import { S as u } from "./StatusIcon-VLj9j54q.js";
|
|
9
|
+
const d = "flow--inline-alert", g = "flow--inline-alert--content", w = "flow--inline-alert--status-icon", C = "flow--inline-alert--heading", I = "flow--inline-alert--info", N = "flow--inline-alert--warning", h = "flow--inline-alert--danger", x = "flow--inline-alert--success", n = {
|
|
9
10
|
inlineAlert: d,
|
|
10
|
-
content:
|
|
11
|
-
statusIcon:
|
|
12
|
-
heading:
|
|
11
|
+
content: g,
|
|
12
|
+
statusIcon: w,
|
|
13
|
+
heading: C,
|
|
13
14
|
info: I,
|
|
14
15
|
warning: N,
|
|
15
16
|
danger: h,
|
|
16
|
-
success:
|
|
17
|
-
},
|
|
17
|
+
success: x
|
|
18
|
+
}, H = (s) => {
|
|
18
19
|
const {
|
|
19
20
|
children: o,
|
|
20
21
|
className: l,
|
|
21
22
|
status: t = "info",
|
|
22
23
|
...a
|
|
23
|
-
} =
|
|
24
|
+
} = f("InlineAlert", s), r = p(n.inlineAlert, n[t], l), i = {
|
|
24
25
|
Heading: {
|
|
25
26
|
className: n.heading,
|
|
26
27
|
level: 3
|
|
@@ -29,9 +30,9 @@ const d = "flow--inline-alert", p = "flow--inline-alert--content", g = "flow--in
|
|
|
29
30
|
className: n.content
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
return /* @__PURE__ */ e.createElement("aside", { ...a, className:
|
|
33
|
+
return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement("aside", { ...a, className: r }, /* @__PURE__ */ e.createElement(u, { className: n.statusIcon, status: t }), /* @__PURE__ */ e.createElement(m, { props: i }, o)));
|
|
33
34
|
};
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
H as InlineAlert,
|
|
37
|
+
H as default
|
|
37
38
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import l from "clsx";
|
|
5
|
+
import { C as i } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
const c = "flow--inline-code", m = {
|
|
10
|
+
inlineCode: c
|
|
11
|
+
}, N = (o) => {
|
|
12
|
+
const { children: t, className: n, ...r } = o, s = l(m.inlineCode, n);
|
|
13
|
+
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement("code", { ...r, className: s }, t));
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
N as I
|
|
17
|
+
};
|
package/dist/InlineCode.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import c from "clsx";
|
|
6
|
+
import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
|
|
7
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
8
|
+
import { u as b } from "./useProps-4x7PxhiE.js";
|
|
9
|
+
import { useLocalizedStringFormatter as f } from "react-aria";
|
|
10
|
+
const u = "flow--label", L = {
|
|
11
|
+
label: u
|
|
12
|
+
}, C = {
|
|
13
|
+
"de-DE": {
|
|
14
|
+
"label.optional": "(optional)"
|
|
15
|
+
},
|
|
16
|
+
"en-EN": {
|
|
17
|
+
"label.optional": "(optional)"
|
|
18
|
+
}
|
|
19
|
+
}, P = (t) => {
|
|
20
|
+
const { children: l, className: a, optional: e, ...r } = b("Label", t), s = f(C), n = c(L.label, a), m = " " + s.format("label.optional");
|
|
21
|
+
return /* @__PURE__ */ o.createElement(p, null, /* @__PURE__ */ o.createElement(i.Label, { ...r, className: n }, l, e && m));
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
P as L
|
|
25
|
+
};
|
package/dist/Label.js
CHANGED
package/dist/LabeledValue.js
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import l from "react";
|
|
4
4
|
import r from "clsx";
|
|
5
|
-
import {
|
|
5
|
+
import { C as m } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
+
import { P as c } from "./PropsContextProvider-B6QiUIPM.js";
|
|
6
7
|
import "@react-aria/utils";
|
|
8
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
9
|
import "remeda";
|
|
8
|
-
const b = "flow--labeled-value",
|
|
10
|
+
const b = "flow--labeled-value", p = "flow--labeled-value--button", u = "flow--labeled-value--label", e = {
|
|
9
11
|
labeledValue: b,
|
|
10
|
-
button:
|
|
12
|
+
button: p,
|
|
11
13
|
label: u
|
|
12
|
-
},
|
|
14
|
+
}, y = (t) => {
|
|
13
15
|
const { children: a, className: o } = t, s = r(e.labeledValue, o), n = {
|
|
14
16
|
Label: {
|
|
15
17
|
className: e.label
|
|
@@ -25,9 +27,9 @@ const b = "flow--labeled-value", m = "flow--labeled-value--button", u = "flow--l
|
|
|
25
27
|
size: "s"
|
|
26
28
|
}
|
|
27
29
|
};
|
|
28
|
-
return /* @__PURE__ */ l.createElement("div", { className: s }, /* @__PURE__ */ l.createElement(c, { props: n }, a));
|
|
30
|
+
return /* @__PURE__ */ l.createElement(m, null, /* @__PURE__ */ l.createElement("div", { className: s }, /* @__PURE__ */ l.createElement(c, { props: n }, a)));
|
|
29
31
|
};
|
|
30
32
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
y as LabeledValue,
|
|
34
|
+
y as default
|
|
33
35
|
};
|
package/dist/LayoutCard.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import "
|
|
6
|
-
import { u as c } from "./useProps-d5Do2me4.js";
|
|
3
|
+
import c from "react";
|
|
4
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
5
|
+
import { u as m } from "./useProps-4x7PxhiE.js";
|
|
7
6
|
import n from "clsx";
|
|
8
7
|
const u = "flow--layout-card", d = {
|
|
9
8
|
layoutCard: u
|
|
10
|
-
},
|
|
9
|
+
}, f = (t) => {
|
|
11
10
|
const {
|
|
12
11
|
children: o,
|
|
13
12
|
className: a,
|
|
14
|
-
elementType:
|
|
15
|
-
...
|
|
16
|
-
} =
|
|
17
|
-
return /* @__PURE__ */
|
|
13
|
+
elementType: e = "div",
|
|
14
|
+
...r
|
|
15
|
+
} = m("LayoutCard", t), s = n(d.layoutCard, a), l = e;
|
|
16
|
+
return /* @__PURE__ */ c.createElement(l, { className: s, ...r }, o);
|
|
18
17
|
};
|
|
19
18
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
f as LayoutCard,
|
|
20
|
+
f as default
|
|
22
21
|
};
|
package/dist/Link.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
3
|
+
import i from "react";
|
|
4
4
|
import * as c from "react-aria-components";
|
|
5
|
-
import "./
|
|
6
|
-
import "
|
|
7
|
-
import { u as k } from "./useProps-
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
link:
|
|
11
|
-
inline:
|
|
12
|
-
primary:
|
|
5
|
+
import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
+
import { u as k } from "./useProps-4x7PxhiE.js";
|
|
8
|
+
import f from "clsx";
|
|
9
|
+
const d = "flow--link", u = "flow--link--inline", C = "flow--link--primary", w = "flow--link--danger", n = {
|
|
10
|
+
link: d,
|
|
11
|
+
inline: u,
|
|
12
|
+
primary: C,
|
|
13
13
|
danger: w
|
|
14
|
-
},
|
|
14
|
+
}, E = (r) => {
|
|
15
15
|
const {
|
|
16
|
-
children:
|
|
16
|
+
children: e,
|
|
17
17
|
className: o,
|
|
18
18
|
variant: l = "default",
|
|
19
19
|
inline: t,
|
|
20
|
-
linkComponent:
|
|
20
|
+
linkComponent: a = c.Link,
|
|
21
21
|
...s
|
|
22
|
-
} = k("Link",
|
|
22
|
+
} = k("Link", r), m = f(
|
|
23
23
|
n.link,
|
|
24
24
|
n[l],
|
|
25
25
|
t && n.inline,
|
|
26
26
|
o
|
|
27
27
|
);
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ i.createElement(p, null, /* @__PURE__ */ i.createElement(a, { className: m, ...s }, e));
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
E as Link,
|
|
32
|
+
E as default
|
|
33
33
|
};
|
package/dist/List.js
CHANGED
|
@@ -5,17 +5,17 @@ var B = (i, t, e) => t in i ? V(i, t, { enumerable: !0, configurable: !0, writab
|
|
|
5
5
|
var n = (i, t, e) => (B(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
6
6
|
import r, { createContext as U, useContext as $, Suspense as D, createElement as x, useMemo as O, useEffect as I, isValidElement as H } from "react";
|
|
7
7
|
import { useMessageFormatter as j, useLocalizedStringFormatter as q } from "react-aria";
|
|
8
|
-
import { T as J } from "./Text-
|
|
9
|
-
import { B as b } from "./Button-
|
|
8
|
+
import { T as J } from "./Text-BAkan-um.js";
|
|
9
|
+
import { B as b } from "./Button-IRdeGCc6.js";
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
|
-
import "./Icon-
|
|
11
|
+
import "./Icon-X0pOdlJY.js";
|
|
12
12
|
import R from "clsx";
|
|
13
13
|
import "html-react-parser";
|
|
14
|
-
import "./
|
|
14
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
15
15
|
import "@react-aria/utils";
|
|
16
16
|
import { times as K } from "remeda";
|
|
17
|
-
import { a as G, I as Q } from "./IconChevronUp-
|
|
18
|
-
import { L as W } from "./Label-
|
|
17
|
+
import { a as G, I as Q } from "./IconChevronUp-CyLNEJQy.js";
|
|
18
|
+
import { L as W } from "./Label-DIeeRQZQ.js";
|
|
19
19
|
import { getProperty as X } from "dot-prop";
|
|
20
20
|
import { useSignal as f } from "@preact/signals-react";
|
|
21
21
|
import { useReactTable as Y, getCoreRowModel as Z, getSortedRowModel as _, getFilteredRowModel as tt, getPaginationRowModel as et, getFacetedUniqueValues as at } from "@tanstack/react-table";
|
|
@@ -23,7 +23,7 @@ import { useSignals as S } from "@preact/signals-react/runtime";
|
|
|
23
23
|
import it from "invariant";
|
|
24
24
|
import { getAsyncResource as T } from "@mittwald/react-use-promise";
|
|
25
25
|
import { deepFind as st, deepForEach as nt } from "react-children-utilities";
|
|
26
|
-
import { I as rt } from "./InlineCode-
|
|
26
|
+
import { I as rt } from "./InlineCode-DZzyKdCm.js";
|
|
27
27
|
import { ListLoaderAsyncResource as ot } from "./List/ListLoaderAsyncResource.js";
|
|
28
28
|
const M = U({}), g = () => $(M).list, lt = (i) => /* @__PURE__ */ r.createElement(r.Fragment, null, i.children()), ct = (i) => {
|
|
29
29
|
const { pageIndex: t } = i;
|
package/dist/Navigation.js
CHANGED
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
4
|
import c from "clsx";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
5
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
+
import { P as l } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
|
+
import { u as m } from "./useProps-4x7PxhiE.js";
|
|
7
8
|
import * as v from "react-aria-components";
|
|
8
9
|
const g = "flow--navigation", p = {
|
|
9
10
|
navigation: g
|
|
10
|
-
},
|
|
11
|
+
}, d = (n) => {
|
|
11
12
|
const { className: a, children: o, ...e } = n, i = c(p.navigation, a);
|
|
12
13
|
return /* @__PURE__ */ t.createElement("nav", { className: i, role: "navigation", ...e }, /* @__PURE__ */ t.createElement("ul", null, o));
|
|
13
14
|
}, f = "flow--navigation--navigation-item", u = "flow--navigation--navigation-item--icon", x = "flow--navigation--navigation-item--text", s = {
|
|
14
15
|
navigationItem: f,
|
|
15
16
|
icon: u,
|
|
16
17
|
text: x
|
|
17
|
-
},
|
|
18
|
+
}, k = (n) => {
|
|
18
19
|
const {
|
|
19
20
|
isCurrent: a,
|
|
20
21
|
children: o,
|
|
@@ -39,7 +40,7 @@ const g = "flow--navigation", p = {
|
|
|
39
40
|
));
|
|
40
41
|
};
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
d as Navigation,
|
|
44
|
+
k as NavigationItem,
|
|
45
|
+
d as default
|
|
45
46
|
};
|
package/dist/NumberField.js
CHANGED
|
@@ -4,24 +4,26 @@ import e from "react";
|
|
|
4
4
|
import * as r from "react-aria-components";
|
|
5
5
|
import { s as o } from "./FormField.module-DHK6nIcD.js";
|
|
6
6
|
import u from "clsx";
|
|
7
|
-
import {
|
|
7
|
+
import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
|
|
8
|
+
import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
|
|
8
9
|
import "@react-aria/utils";
|
|
10
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
9
11
|
import "remeda";
|
|
10
|
-
import { F as
|
|
11
|
-
import { B as s } from "./Button-
|
|
12
|
+
import { F as f } from "./FieldError-BFjashy7.js";
|
|
13
|
+
import { B as s } from "./Button-IRdeGCc6.js";
|
|
12
14
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon-
|
|
15
|
+
import "./Icon-X0pOdlJY.js";
|
|
14
16
|
import "html-react-parser";
|
|
15
|
-
import { I as
|
|
16
|
-
import { I
|
|
17
|
-
const
|
|
18
|
-
group:
|
|
17
|
+
import { I as E, a as N } from "./IconChevronUp-CyLNEJQy.js";
|
|
18
|
+
import { I, a as b } from "./IconPlus-CnjtlT2f.js";
|
|
19
|
+
const P = "flow--number-field--group", B = "flow--number-field--input", C = "flow--number-field--decrement-button", F = "flow--number-field--increment-button", w = "flow--number-field--coarse-pointer-icon", h = "flow--number-field--touch-icon", t = {
|
|
20
|
+
group: P,
|
|
19
21
|
input: B,
|
|
20
|
-
decrementButton:
|
|
21
|
-
incrementButton:
|
|
22
|
+
decrementButton: C,
|
|
23
|
+
incrementButton: F,
|
|
22
24
|
coarsePointerIcon: w,
|
|
23
25
|
touchIcon: h
|
|
24
|
-
},
|
|
26
|
+
}, k = (n) => {
|
|
25
27
|
const { children: c, className: a, ...m } = n, l = u(o.formField, a), i = {
|
|
26
28
|
Label: {
|
|
27
29
|
className: o.label,
|
|
@@ -34,7 +36,7 @@ const b = "flow--number-field--group", B = "flow--number-field--input", F = "flo
|
|
|
34
36
|
className: o.customFieldError
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
|
-
return /* @__PURE__ */ e.createElement(r.NumberField, { ...m, className: l }, /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
|
|
39
|
+
return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(r.NumberField, { ...m, className: l }, /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
|
|
38
40
|
s,
|
|
39
41
|
{
|
|
40
42
|
slot: "decrement",
|
|
@@ -43,8 +45,8 @@ const b = "flow--number-field--group", B = "flow--number-field--input", F = "flo
|
|
|
43
45
|
style: "plain",
|
|
44
46
|
variant: "secondary"
|
|
45
47
|
},
|
|
46
|
-
/* @__PURE__ */ e.createElement(
|
|
47
|
-
/* @__PURE__ */ e.createElement(
|
|
48
|
+
/* @__PURE__ */ e.createElement(E, null),
|
|
49
|
+
/* @__PURE__ */ e.createElement(I, { className: t.coarsePointerIcon })
|
|
48
50
|
), /* @__PURE__ */ e.createElement(r.Input, { className: t.input }), /* @__PURE__ */ e.createElement(
|
|
49
51
|
s,
|
|
50
52
|
{
|
|
@@ -54,11 +56,11 @@ const b = "flow--number-field--group", B = "flow--number-field--input", F = "flo
|
|
|
54
56
|
style: "plain",
|
|
55
57
|
variant: "secondary"
|
|
56
58
|
},
|
|
57
|
-
/* @__PURE__ */ e.createElement(
|
|
58
|
-
/* @__PURE__ */ e.createElement(
|
|
59
|
-
)), /* @__PURE__ */ e.createElement(
|
|
59
|
+
/* @__PURE__ */ e.createElement(N, null),
|
|
60
|
+
/* @__PURE__ */ e.createElement(b, { className: t.coarsePointerIcon })
|
|
61
|
+
)), /* @__PURE__ */ e.createElement(d, { props: i }, c), /* @__PURE__ */ e.createElement(f, { className: o.fieldError })));
|
|
60
62
|
};
|
|
61
63
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
k as NumberField,
|
|
65
|
+
k as default
|
|
64
66
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import m, { useMemo as t, isValidElement as n, cloneElement as P } from "react";
|
|
4
|
+
import { p as h } from "./propsContext-Dx7WKmmM.js";
|
|
5
|
+
const v = (s) => {
|
|
6
|
+
const {
|
|
7
|
+
props: p,
|
|
8
|
+
dependencies: c = [],
|
|
9
|
+
children: e,
|
|
10
|
+
...r
|
|
11
|
+
} = s, d = t(
|
|
12
|
+
() => p,
|
|
13
|
+
c
|
|
14
|
+
), o = n(e) ? {
|
|
15
|
+
...r,
|
|
16
|
+
...e.props
|
|
17
|
+
} : r, i = [
|
|
18
|
+
e,
|
|
19
|
+
...Object.entries(o).flatMap((a) => a)
|
|
20
|
+
], l = t(
|
|
21
|
+
() => n(e) ? P(e, o) : e,
|
|
22
|
+
i
|
|
23
|
+
);
|
|
24
|
+
return /* @__PURE__ */ m.createElement(h.Provider, { value: d }, l);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
v as P
|
|
28
|
+
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -2,23 +2,24 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
4
|
import * as n from "react-aria-components";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import m from "clsx";
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
+
import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
8
|
import "@react-aria/utils";
|
|
8
9
|
import "remeda";
|
|
9
|
-
import { F as p } from "./FieldError-
|
|
10
|
+
import { F as p } from "./FieldError-BFjashy7.js";
|
|
10
11
|
import "@tabler/icons-react";
|
|
11
|
-
import "./Icon-
|
|
12
|
+
import "./Icon-X0pOdlJY.js";
|
|
12
13
|
import "html-react-parser";
|
|
13
|
-
import { I as f } from "./IconCheck-
|
|
14
|
+
import { I as f } from "./IconCheck-BD6sGh4B.js";
|
|
14
15
|
const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-group--field-error", g = "flow--radio-group--custom-field-error", w = "flow--radio-group--field-description", r = {
|
|
15
16
|
radioGroup: u,
|
|
16
17
|
label: E,
|
|
17
18
|
fieldError: N,
|
|
18
19
|
customFieldError: g,
|
|
19
20
|
fieldDescription: w
|
|
20
|
-
},
|
|
21
|
-
const { children:
|
|
21
|
+
}, T = (t) => {
|
|
22
|
+
const { children: a, className: s, ...c } = t, i = m(r.radioGroup, s), l = {
|
|
22
23
|
Label: {
|
|
23
24
|
className: r.label
|
|
24
25
|
},
|
|
@@ -29,15 +30,15 @@ const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-
|
|
|
29
30
|
className: r.customFieldError
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...c, className: i }, /* @__PURE__ */ o.createElement(
|
|
33
|
+
return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(p, { className: r.fieldError }));
|
|
33
34
|
}, b = "flow--radio-group--radio", k = "flow--radio-group--radio--content", h = "flow--radio-group--radio--icon", C = "flow--radio-group--radio--checkmark", F = "flow--radio-group--radio--label", e = {
|
|
34
35
|
radio: b,
|
|
35
36
|
content: k,
|
|
36
37
|
icon: h,
|
|
37
38
|
checkmark: C,
|
|
38
39
|
label: F
|
|
39
|
-
},
|
|
40
|
-
const { children:
|
|
40
|
+
}, j = (t) => {
|
|
41
|
+
const { children: a, className: s, ...c } = t, i = m(e.radio, s), l = {
|
|
41
42
|
Icon: {
|
|
42
43
|
className: e.icon
|
|
43
44
|
},
|
|
@@ -48,10 +49,10 @@ const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-
|
|
|
48
49
|
className: e.content
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
return /* @__PURE__ */ o.createElement(n.Radio, { ...c, className: i }, /* @__PURE__ */ o.createElement(
|
|
52
|
+
return /* @__PURE__ */ o.createElement(n.Radio, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(f, { className: e.checkmark }));
|
|
52
53
|
};
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
j as Radio,
|
|
56
|
+
T as RadioGroup,
|
|
57
|
+
T as default
|
|
57
58
|
};
|
package/dist/Section.js
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
3
|
+
import s from "react";
|
|
4
4
|
import i from "clsx";
|
|
5
|
-
import
|
|
5
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
+
import { P as l } from "./PropsContextProvider-B6QiUIPM.js";
|
|
6
7
|
import "@react-aria/utils";
|
|
7
8
|
import "remeda";
|
|
8
|
-
const m = "flow--section",
|
|
9
|
+
const m = "flow--section", d = "flow--section--header", p = "flow--section--status-badge", e = {
|
|
9
10
|
section: m,
|
|
10
|
-
header:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
header: d,
|
|
12
|
+
switch: "flow--section--switch",
|
|
13
|
+
statusBadge: p
|
|
14
|
+
}, x = (o) => {
|
|
15
|
+
const { children: t, className: a, ...c } = o;
|
|
16
|
+
if (!t)
|
|
14
17
|
return null;
|
|
15
|
-
const
|
|
18
|
+
const r = i(e.section, a), n = {
|
|
16
19
|
Heading: {
|
|
17
20
|
level: 2
|
|
18
21
|
},
|
|
19
22
|
Header: {
|
|
20
|
-
className:
|
|
23
|
+
className: e.header,
|
|
24
|
+
Switch: {
|
|
25
|
+
className: e.switch,
|
|
26
|
+
labelPosition: "leading"
|
|
27
|
+
},
|
|
28
|
+
StatusBadge: {
|
|
29
|
+
className: e.statusBadge
|
|
30
|
+
}
|
|
21
31
|
}
|
|
22
32
|
};
|
|
23
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ s.createElement("section", { ...c, className: r }, /* @__PURE__ */ s.createElement(l, { props: n }, t));
|
|
24
34
|
};
|
|
25
35
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
x as Section,
|
|
37
|
+
x as default
|
|
28
38
|
};
|