@mittwald/flow-react-components 0.1.0-alpha.47 → 0.1.0-alpha.49
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/{Button-IRdeGCc6.js → Button-DiHP-IYs.js} +25 -23
- package/dist/Button.js +1 -1
- package/dist/Checkbox.js +10 -8
- package/dist/Content.js +11 -9
- package/dist/CopyButton.js +14 -13
- package/dist/FieldDescription.js +12 -10
- package/dist/FieldError-BmzydlRW.js +22 -0
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +8 -13
- package/dist/Heading.js +11 -13
- package/dist/{Icon-X0pOdlJY.js → Icon-hyIHBPMT.js} +18 -16
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-BD6sGh4B.js → IconCheck-B_oanaSr.js} +1 -1
- package/dist/{IconChevronUp-CyLNEJQy.js → IconChevronUp-DOOZfR76.js} +1 -1
- package/dist/{IconClose-mhahyKoS.js → IconClose-iB7vE9z6.js} +1 -1
- package/dist/{IconCopy-Bpp37OMK.js → IconCopy-CVV8P-Kn.js} +1 -1
- package/dist/{IconDanger-DH5QCYHj.js → IconDanger-Bq08fgKM.js} +1 -1
- package/dist/{IconPlus-CnjtlT2f.js → IconPlus-ChJLWEqL.js} +1 -1
- package/dist/{IconSucceeded-DQdtfEkv.js → IconSucceeded-DbgWPDVp.js} +1 -1
- package/dist/{IconUnchecked-BhOGDWAq.js → IconUnchecked-C7a0quEr.js} +1 -1
- package/dist/{IconWarning-D7qa4Hmz.js → IconWarning-BYFc8Vv9.js} +1 -1
- package/dist/Icons.js +10 -10
- package/dist/Image.js +10 -8
- package/dist/Initials.js +13 -11
- package/dist/InlineAlert.js +16 -18
- package/dist/Label-696-vpHQ.js +27 -0
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +9 -15
- package/dist/Link.js +21 -19
- package/dist/List.js +7 -7
- package/dist/Navigation.js +29 -27
- package/dist/NumberField.js +14 -12
- package/dist/RadioGroup.js +14 -12
- package/dist/StatusBadge.js +16 -19
- package/dist/{StatusIcon-VLj9j54q.js → StatusIcon-BTQPL8cG.js} +10 -8
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +16 -20
- package/dist/Text-DaJ0Ajt9.js +29 -0
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{TextFieldBase-_wFIsQyH.js → TextFieldBase-D60i8AOY.js} +1 -1
- package/dist/flowComponent-DLzr2Cvi.js +92 -0
- package/dist/types/components/Button/Button.d.ts +4 -3
- package/dist/types/components/Content/Content.d.ts +4 -3
- package/dist/types/components/CopyButton/CopyButton.d.ts +4 -3
- package/dist/types/components/FieldDescription/FieldDescription.d.ts +4 -3
- package/dist/types/components/FieldError/FieldError.d.ts +4 -3
- package/dist/types/components/Header/Header.d.ts +4 -3
- package/dist/types/components/Heading/Heading.d.ts +5 -3
- package/dist/types/components/Icon/Icon.d.ts +4 -3
- package/dist/types/components/Image/Image.d.ts +4 -3
- package/dist/types/components/Initials/Initials.d.ts +4 -3
- package/dist/types/components/InlineAlert/InlineAlert.d.ts +4 -3
- package/dist/types/components/Label/Label.d.ts +4 -3
- package/dist/types/components/LayoutCard/LayoutCard.d.ts +4 -3
- package/dist/types/components/Link/Link.d.ts +4 -3
- package/dist/types/components/Navigation/components/NavigationItem/NavigationItem.d.ts +4 -3
- package/dist/types/components/StatusBadge/StatusBadge.d.ts +4 -3
- package/dist/types/components/Switch/Switch.d.ts +4 -3
- package/dist/types/components/Text/Text.d.ts +4 -3
- package/dist/types/lib/componentFactory/flowComponent.d.ts +8 -0
- package/dist/types/lib/react/components/Tunnel/Tunnel.test.d.ts +1 -0
- package/dist/types/lib/react/components/Tunnel/components/TunnelEntry.d.ts +6 -0
- package/dist/types/lib/react/components/Tunnel/components/TunnelExit.d.ts +6 -0
- package/dist/types/lib/react/components/Tunnel/components/TunnelProvider.d.ts +3 -0
- package/dist/types/lib/react/components/Tunnel/context.d.ts +8 -0
- package/dist/types/lib/react/components/Tunnel/index.d.ts +3 -0
- package/dist/types/lib/types/props.d.ts +5 -2
- package/package.json +7 -7
- package/dist/FieldError-BFjashy7.js +0 -21
- package/dist/Label-DIeeRQZQ.js +0 -25
- package/dist/Text-BAkan-um.js +0 -27
- package/dist/useProps-4x7PxhiE.js +0 -72
package/dist/InlineAlert.js
CHANGED
|
@@ -3,25 +3,23 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
5
5
|
import { P as m } from "./PropsContextProvider-B6QiUIPM.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import "@react-aria/utils";
|
|
7
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
8
|
+
import "remeda";
|
|
9
|
+
import f from "clsx";
|
|
10
|
+
import { S as p } from "./StatusIcon-BTQPL8cG.js";
|
|
11
|
+
import { f as d } from "./flowComponent-DLzr2Cvi.js";
|
|
12
|
+
const u = "flow--inline-alert", w = "flow--inline-alert--content", g = "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 = {
|
|
13
|
+
inlineAlert: u,
|
|
14
|
+
content: w,
|
|
15
|
+
statusIcon: g,
|
|
13
16
|
heading: C,
|
|
14
17
|
info: I,
|
|
15
18
|
warning: N,
|
|
16
19
|
danger: h,
|
|
17
20
|
success: x
|
|
18
|
-
},
|
|
19
|
-
const {
|
|
20
|
-
children: o,
|
|
21
|
-
className: l,
|
|
22
|
-
status: t = "info",
|
|
23
|
-
...a
|
|
24
|
-
} = f("InlineAlert", s), r = p(n.inlineAlert, n[t], l), i = {
|
|
21
|
+
}, j = d("InlineAlert", (o) => {
|
|
22
|
+
const { children: s, className: l, status: t = "info", ...r } = o, a = f(n.inlineAlert, n[t], l), i = {
|
|
25
23
|
Heading: {
|
|
26
24
|
className: n.heading,
|
|
27
25
|
level: 3
|
|
@@ -30,9 +28,9 @@ const d = "flow--inline-alert", g = "flow--inline-alert--content", w = "flow--in
|
|
|
30
28
|
className: n.content
|
|
31
29
|
}
|
|
32
30
|
};
|
|
33
|
-
return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement("aside", { ...
|
|
34
|
-
};
|
|
31
|
+
return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement("aside", { ...r, className: a }, /* @__PURE__ */ e.createElement(p, { className: n.statusIcon, status: t }), /* @__PURE__ */ e.createElement(m, { props: i }, s)));
|
|
32
|
+
});
|
|
35
33
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
j as InlineAlert,
|
|
35
|
+
j as default
|
|
38
36
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import p from "clsx";
|
|
6
|
+
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
7
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import { useLocalizedStringFormatter as b } from "react-aria";
|
|
11
|
+
import { f } from "./flowComponent-DLzr2Cvi.js";
|
|
12
|
+
const C = "flow--label", L = {
|
|
13
|
+
label: C
|
|
14
|
+
}, E = {
|
|
15
|
+
"de-DE": {
|
|
16
|
+
"label.optional": "(optional)"
|
|
17
|
+
},
|
|
18
|
+
"en-EN": {
|
|
19
|
+
"label.optional": "(optional)"
|
|
20
|
+
}
|
|
21
|
+
}, k = f("Label", (t) => {
|
|
22
|
+
const { children: l, className: a, optional: e, ...r } = t, n = b(E), s = p(L.label, a), m = " " + n.format("label.optional");
|
|
23
|
+
return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement(i.Label, { ...r, className: s }, l, e && m));
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
k as L
|
|
27
|
+
};
|
package/dist/Label.js
CHANGED
package/dist/LayoutCard.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import c from "react";
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
const {
|
|
11
|
-
children: o,
|
|
12
|
-
className: a,
|
|
13
|
-
elementType: e = "div",
|
|
14
|
-
...r
|
|
15
|
-
} = m("LayoutCard", t), s = n(d.layoutCard, a), l = e;
|
|
4
|
+
import m from "clsx";
|
|
5
|
+
import { f as n } from "./flowComponent-DLzr2Cvi.js";
|
|
6
|
+
const d = "flow--layout-card", u = {
|
|
7
|
+
layoutCard: d
|
|
8
|
+
}, p = n("LayoutCard", (t) => {
|
|
9
|
+
const { children: o, className: a, elementType: e = "div", ...r } = t, s = m(u.layoutCard, a), l = e;
|
|
16
10
|
return /* @__PURE__ */ c.createElement(l, { className: s, ...r }, o);
|
|
17
|
-
};
|
|
11
|
+
});
|
|
18
12
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
p as LayoutCard,
|
|
14
|
+
p as default
|
|
21
15
|
};
|
package/dist/Link.js
CHANGED
|
@@ -4,30 +4,32 @@ import i from "react";
|
|
|
4
4
|
import * as c from "react-aria-components";
|
|
5
5
|
import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
6
|
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
-
import
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
8
9
|
import f from "clsx";
|
|
9
|
-
|
|
10
|
+
import { f as k } from "./flowComponent-DLzr2Cvi.js";
|
|
11
|
+
const d = "flow--link", C = "flow--link--inline", w = "flow--link--primary", u = "flow--link--danger", n = {
|
|
10
12
|
link: d,
|
|
11
|
-
inline:
|
|
12
|
-
primary:
|
|
13
|
-
danger:
|
|
14
|
-
},
|
|
13
|
+
inline: C,
|
|
14
|
+
primary: w,
|
|
15
|
+
danger: u
|
|
16
|
+
}, v = k("Link", (o) => {
|
|
15
17
|
const {
|
|
16
|
-
children:
|
|
17
|
-
className:
|
|
18
|
-
variant:
|
|
19
|
-
inline:
|
|
18
|
+
children: r,
|
|
19
|
+
className: t,
|
|
20
|
+
variant: e = "default",
|
|
21
|
+
inline: l,
|
|
20
22
|
linkComponent: a = c.Link,
|
|
21
|
-
...
|
|
22
|
-
} =
|
|
23
|
+
...m
|
|
24
|
+
} = o, s = f(
|
|
23
25
|
n.link,
|
|
24
|
-
n[
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
n[e],
|
|
27
|
+
l && n.inline,
|
|
28
|
+
t
|
|
27
29
|
);
|
|
28
|
-
return /* @__PURE__ */ i.createElement(p, null, /* @__PURE__ */ i.createElement(a, { className:
|
|
29
|
-
};
|
|
30
|
+
return /* @__PURE__ */ i.createElement(p, null, /* @__PURE__ */ i.createElement(a, { className: s, ...m }, r));
|
|
31
|
+
});
|
|
30
32
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
v as Link,
|
|
34
|
+
v as default
|
|
33
35
|
};
|
package/dist/List.js
CHANGED
|
@@ -5,21 +5,21 @@ 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-DaJ0Ajt9.js";
|
|
9
|
+
import { B as b } from "./Button-DiHP-IYs.js";
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
|
-
import "./Icon-X0pOdlJY.js";
|
|
12
11
|
import R from "clsx";
|
|
13
12
|
import "html-react-parser";
|
|
14
13
|
import "./propsContext-Dx7WKmmM.js";
|
|
15
14
|
import "@react-aria/utils";
|
|
16
15
|
import { times as K } from "remeda";
|
|
17
|
-
import
|
|
18
|
-
import { L as W } from "./Label-DIeeRQZQ.js";
|
|
19
|
-
import { getProperty as X } from "dot-prop";
|
|
16
|
+
import "./flowComponent-DLzr2Cvi.js";
|
|
20
17
|
import { useSignal as f } from "@preact/signals-react";
|
|
21
|
-
import { useReactTable as Y, getCoreRowModel as Z, getSortedRowModel as _, getFilteredRowModel as tt, getPaginationRowModel as et, getFacetedUniqueValues as at } from "@tanstack/react-table";
|
|
22
18
|
import { useSignals as S } from "@preact/signals-react/runtime";
|
|
19
|
+
import { a as G, I as Q } from "./IconChevronUp-DOOZfR76.js";
|
|
20
|
+
import { L as W } from "./Label-696-vpHQ.js";
|
|
21
|
+
import { getProperty as X } from "dot-prop";
|
|
22
|
+
import { useReactTable as Y, getCoreRowModel as Z, getSortedRowModel as _, getFilteredRowModel as tt, getPaginationRowModel as et, getFacetedUniqueValues as at } from "@tanstack/react-table";
|
|
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";
|
package/dist/Navigation.js
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import
|
|
4
|
+
import m from "clsx";
|
|
5
5
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
-
import { P as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import { P as c } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
import * as l from "react-aria-components";
|
|
10
|
+
import { f as v } from "./flowComponent-DLzr2Cvi.js";
|
|
9
11
|
const g = "flow--navigation", p = {
|
|
10
12
|
navigation: g
|
|
11
|
-
},
|
|
12
|
-
const { className:
|
|
13
|
-
return /* @__PURE__ */ t.createElement("nav", { className:
|
|
14
|
-
}, f = "flow--navigation--navigation-item",
|
|
13
|
+
}, P = (n) => {
|
|
14
|
+
const { className: o, children: a, ...i } = n, e = m(p.navigation, o);
|
|
15
|
+
return /* @__PURE__ */ t.createElement("nav", { className: e, role: "navigation", ...i }, /* @__PURE__ */ t.createElement("ul", null, a));
|
|
16
|
+
}, f = "flow--navigation--navigation-item", x = "flow--navigation--navigation-item--icon", N = "flow--navigation--navigation-item--text", r = {
|
|
15
17
|
navigationItem: f,
|
|
16
|
-
icon:
|
|
17
|
-
text:
|
|
18
|
-
},
|
|
18
|
+
icon: x,
|
|
19
|
+
text: N
|
|
20
|
+
}, h = v("NavigationItem", (n) => {
|
|
19
21
|
const {
|
|
20
|
-
isCurrent:
|
|
21
|
-
children:
|
|
22
|
-
linkComponent:
|
|
23
|
-
...
|
|
24
|
-
} =
|
|
22
|
+
isCurrent: o,
|
|
23
|
+
children: a,
|
|
24
|
+
linkComponent: i = l.Link,
|
|
25
|
+
...e
|
|
26
|
+
} = n, s = {
|
|
25
27
|
Text: {
|
|
26
|
-
className:
|
|
28
|
+
className: r.text
|
|
27
29
|
},
|
|
28
30
|
Icon: {
|
|
29
|
-
className:
|
|
31
|
+
className: r.icon
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
34
|
return /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(
|
|
33
|
-
|
|
35
|
+
i,
|
|
34
36
|
{
|
|
35
|
-
...
|
|
36
|
-
className:
|
|
37
|
-
"aria-current":
|
|
37
|
+
...e,
|
|
38
|
+
className: r.navigationItem,
|
|
39
|
+
"aria-current": o ? "page" : !1
|
|
38
40
|
},
|
|
39
|
-
/* @__PURE__ */ t.createElement(
|
|
41
|
+
/* @__PURE__ */ t.createElement(c, { props: s }, a)
|
|
40
42
|
));
|
|
41
|
-
};
|
|
43
|
+
});
|
|
42
44
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
P as Navigation,
|
|
46
|
+
h as NavigationItem,
|
|
47
|
+
P as default
|
|
46
48
|
};
|
package/dist/NumberField.js
CHANGED
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
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
|
-
import
|
|
7
|
-
import { C as
|
|
6
|
+
import p from "clsx";
|
|
7
|
+
import { C as u } from "./ClearPropsContext-CD1-9TZA.js";
|
|
8
8
|
import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-Dx7WKmmM.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as f } from "./FieldError-
|
|
13
|
-
import { B as s } from "./Button-
|
|
12
|
+
import { F as f } from "./FieldError-BmzydlRW.js";
|
|
13
|
+
import { B as s } from "./Button-DiHP-IYs.js";
|
|
14
14
|
import "@tabler/icons-react";
|
|
15
|
-
import "./Icon-X0pOdlJY.js";
|
|
16
15
|
import "html-react-parser";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import "./flowComponent-DLzr2Cvi.js";
|
|
17
|
+
import "@preact/signals-react";
|
|
18
|
+
import "@preact/signals-react/runtime";
|
|
19
|
+
import { I as E, a as N } from "./IconChevronUp-DOOZfR76.js";
|
|
20
|
+
import { I, a as b } from "./IconPlus-ChJLWEqL.js";
|
|
19
21
|
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
22
|
group: P,
|
|
21
23
|
input: B,
|
|
@@ -23,8 +25,8 @@ const P = "flow--number-field--group", B = "flow--number-field--input", C = "flo
|
|
|
23
25
|
incrementButton: F,
|
|
24
26
|
coarsePointerIcon: w,
|
|
25
27
|
touchIcon: h
|
|
26
|
-
},
|
|
27
|
-
const { children: c, className:
|
|
28
|
+
}, J = (n) => {
|
|
29
|
+
const { children: c, className: m, ...a } = n, l = p(o.formField, m), i = {
|
|
28
30
|
Label: {
|
|
29
31
|
className: o.label,
|
|
30
32
|
optional: !n.isRequired
|
|
@@ -36,7 +38,7 @@ const P = "flow--number-field--group", B = "flow--number-field--input", C = "flo
|
|
|
36
38
|
className: o.customFieldError
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
|
-
return /* @__PURE__ */ e.createElement(
|
|
41
|
+
return /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(r.NumberField, { ...a, className: l }, /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
|
|
40
42
|
s,
|
|
41
43
|
{
|
|
42
44
|
slot: "decrement",
|
|
@@ -61,6 +63,6 @@ const P = "flow--number-field--group", B = "flow--number-field--input", C = "flo
|
|
|
61
63
|
)), /* @__PURE__ */ e.createElement(d, { props: i }, c), /* @__PURE__ */ e.createElement(f, { className: o.fieldError })));
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
J as NumberField,
|
|
67
|
+
J as default
|
|
66
68
|
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -7,19 +7,21 @@ import "./propsContext-Dx7WKmmM.js";
|
|
|
7
7
|
import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { F as p } from "./FieldError-
|
|
10
|
+
import { F as p } from "./FieldError-BmzydlRW.js";
|
|
11
11
|
import "@tabler/icons-react";
|
|
12
|
-
import "./Icon-X0pOdlJY.js";
|
|
13
12
|
import "html-react-parser";
|
|
14
|
-
import
|
|
13
|
+
import "./flowComponent-DLzr2Cvi.js";
|
|
14
|
+
import "@preact/signals-react";
|
|
15
|
+
import "@preact/signals-react/runtime";
|
|
16
|
+
import { I as f } from "./IconCheck-B_oanaSr.js";
|
|
15
17
|
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 = {
|
|
16
18
|
radioGroup: u,
|
|
17
19
|
label: E,
|
|
18
20
|
fieldError: N,
|
|
19
21
|
customFieldError: g,
|
|
20
22
|
fieldDescription: w
|
|
21
|
-
},
|
|
22
|
-
const { children: a, className: s, ...
|
|
23
|
+
}, q = (t) => {
|
|
24
|
+
const { children: a, className: s, ...i } = t, c = m(r.radioGroup, s), l = {
|
|
23
25
|
Label: {
|
|
24
26
|
className: r.label
|
|
25
27
|
},
|
|
@@ -30,15 +32,15 @@ const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-
|
|
|
30
32
|
className: r.customFieldError
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
|
-
return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...
|
|
35
|
+
return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...i, className: c }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(p, { className: r.fieldError }));
|
|
34
36
|
}, 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 = {
|
|
35
37
|
radio: b,
|
|
36
38
|
content: k,
|
|
37
39
|
icon: h,
|
|
38
40
|
checkmark: C,
|
|
39
41
|
label: F
|
|
40
|
-
},
|
|
41
|
-
const { children: a, className: s, ...
|
|
42
|
+
}, z = (t) => {
|
|
43
|
+
const { children: a, className: s, ...i } = t, c = m(e.radio, s), l = {
|
|
42
44
|
Icon: {
|
|
43
45
|
className: e.icon
|
|
44
46
|
},
|
|
@@ -49,10 +51,10 @@ const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-
|
|
|
49
51
|
className: e.content
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
|
-
return /* @__PURE__ */ o.createElement(n.Radio, { ...
|
|
54
|
+
return /* @__PURE__ */ o.createElement(n.Radio, { ...i, className: c }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(f, { className: e.checkmark }));
|
|
53
55
|
};
|
|
54
56
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
z as Radio,
|
|
58
|
+
q as RadioGroup,
|
|
59
|
+
q as default
|
|
58
60
|
};
|
package/dist/StatusBadge.js
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import
|
|
5
|
-
import { S as
|
|
6
|
-
import { T as u } from "./Text-
|
|
7
|
-
import { C as
|
|
4
|
+
import m from "clsx";
|
|
5
|
+
import { S as l } from "./StatusIcon-BTQPL8cG.js";
|
|
6
|
+
import { T as u } from "./Text-DaJ0Ajt9.js";
|
|
7
|
+
import { C as f } from "./ClearPropsContext-CD1-9TZA.js";
|
|
8
8
|
import "./propsContext-Dx7WKmmM.js";
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
import "@react-aria/utils";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import { f as i } from "./flowComponent-DLzr2Cvi.js";
|
|
12
|
+
const d = "flow--status-badge", g = "flow--status-badge--text", p = "flow--status-badge--info", w = "flow--status-badge--success", x = "flow--status-badge--warning", b = "flow--status-badge--danger", s = {
|
|
13
|
+
statusBadge: d,
|
|
14
|
+
text: g,
|
|
13
15
|
info: p,
|
|
14
16
|
success: w,
|
|
15
17
|
warning: x,
|
|
16
18
|
danger: b
|
|
17
|
-
},
|
|
18
|
-
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
status: e = "info",
|
|
22
|
-
...r
|
|
23
|
-
} = f("StatusBadge", a), c = l(s.statusBadge, s[e], n);
|
|
24
|
-
return /* @__PURE__ */ t.createElement(d, null, /* @__PURE__ */ t.createElement("div", { className: c, ...r }, /* @__PURE__ */ t.createElement(m, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(u, { className: s.text }, o)));
|
|
25
|
-
};
|
|
19
|
+
}, y = i("StatusBadge", (a) => {
|
|
20
|
+
const { children: o, className: n, status: e = "info", ...r } = a, c = m(s.statusBadge, s[e], n);
|
|
21
|
+
return /* @__PURE__ */ t.createElement(f, null, /* @__PURE__ */ t.createElement("div", { className: c, ...r }, /* @__PURE__ */ t.createElement(l, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(u, { className: s.text }, o)));
|
|
22
|
+
});
|
|
26
23
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
y as StatusBadge,
|
|
25
|
+
y as default
|
|
29
26
|
};
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
4
|
import "@tabler/icons-react";
|
|
5
|
-
import "./Icon-X0pOdlJY.js";
|
|
6
5
|
import "clsx";
|
|
7
6
|
import "html-react-parser";
|
|
8
7
|
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
9
8
|
import "./propsContext-Dx7WKmmM.js";
|
|
10
9
|
import "@react-aria/utils";
|
|
11
10
|
import "remeda";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
11
|
+
import "./flowComponent-DLzr2Cvi.js";
|
|
12
|
+
import "@preact/signals-react";
|
|
13
|
+
import "@preact/signals-react/runtime";
|
|
14
|
+
import { I as e } from "./IconDanger-Bq08fgKM.js";
|
|
15
|
+
import { I as i, a as m, b as u } from "./IconWarning-BYFc8Vv9.js";
|
|
14
16
|
import { useLocalizedStringFormatter as I } from "react-aria";
|
|
15
|
-
const
|
|
17
|
+
const p = {
|
|
16
18
|
"de-DE": {
|
|
17
19
|
"statusIcon.danger": "Fehler",
|
|
18
20
|
"statusIcon.info": "Information",
|
|
@@ -25,15 +27,15 @@ const f = {
|
|
|
25
27
|
"statusIcon.success": "Successful",
|
|
26
28
|
"statusIcon.warning": "Warning"
|
|
27
29
|
}
|
|
28
|
-
},
|
|
30
|
+
}, f = {
|
|
29
31
|
danger: e,
|
|
30
32
|
info: i,
|
|
31
33
|
success: m,
|
|
32
34
|
warning: u
|
|
33
|
-
},
|
|
34
|
-
const { status: t = "info", ...r } = n, s = I(
|
|
35
|
+
}, N = (n) => {
|
|
36
|
+
const { status: t = "info", ...r } = n, s = I(p).format(`statusIcon.${t}`), a = f[t];
|
|
35
37
|
return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement(a, { "aria-label": s, ...r }));
|
|
36
38
|
};
|
|
37
39
|
export {
|
|
38
|
-
|
|
40
|
+
N as S
|
|
39
41
|
};
|
package/dist/StatusIcon.js
CHANGED
package/dist/Switch.js
CHANGED
|
@@ -4,34 +4,30 @@ import e from "react";
|
|
|
4
4
|
import * as i from "react-aria-components";
|
|
5
5
|
import n from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon-X0pOdlJY.js";
|
|
8
7
|
import "html-react-parser";
|
|
9
|
-
import { C as
|
|
8
|
+
import { C as f } from "./ClearPropsContext-CD1-9TZA.js";
|
|
10
9
|
import "./propsContext-Dx7WKmmM.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
10
|
+
import "@react-aria/utils";
|
|
11
|
+
import "remeda";
|
|
12
|
+
import { f as h } from "./flowComponent-DLzr2Cvi.js";
|
|
13
|
+
import { I as p } from "./IconCheck-B_oanaSr.js";
|
|
14
|
+
import { I as w } from "./IconClose-iB7vE9z6.js";
|
|
15
|
+
import { L as d } from "./Label-696-vpHQ.js";
|
|
16
|
+
const b = "flow--switch--track", E = "flow--switch--handle", C = "flow--switch--label", t = {
|
|
16
17
|
switch: "flow--switch",
|
|
17
18
|
"label-leading": "flow--switch--label-leading",
|
|
18
19
|
track: b,
|
|
19
20
|
handle: E,
|
|
20
|
-
label:
|
|
21
|
-
},
|
|
22
|
-
const {
|
|
23
|
-
children: a,
|
|
24
|
-
className: s,
|
|
25
|
-
labelPosition: r = "trailing",
|
|
26
|
-
...o
|
|
27
|
-
} = p("Switch", l), c = n(
|
|
21
|
+
label: C
|
|
22
|
+
}, A = h("Switch", (l) => {
|
|
23
|
+
const { children: a, className: o, labelPosition: r = "trailing", ...s } = l, c = n(
|
|
28
24
|
t.switch,
|
|
29
25
|
t[`label-${r}`],
|
|
30
|
-
|
|
26
|
+
o
|
|
31
27
|
);
|
|
32
|
-
return /* @__PURE__ */ e.createElement(
|
|
33
|
-
};
|
|
28
|
+
return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(i.Switch, { ...s, className: c }, ({ isSelected: m }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, m ? /* @__PURE__ */ e.createElement(p, { size: "s" }) : /* @__PURE__ */ e.createElement(w, { size: "s" }))), /* @__PURE__ */ e.createElement(d, { className: t.label }, a))));
|
|
29
|
+
});
|
|
34
30
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
A as Switch,
|
|
32
|
+
A as default
|
|
37
33
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import t from "react";
|
|
4
|
+
import * as l from "react-aria-components";
|
|
5
|
+
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
+
import { P as f } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import x from "invariant";
|
|
11
|
+
import { f as T } from "./flowComponent-DLzr2Cvi.js";
|
|
12
|
+
const v = T("Text", (r) => {
|
|
13
|
+
const { children: m, className: s, elementType: e = "span", ...i } = r, o = { ...i, className: s }, p = {
|
|
14
|
+
Link: {
|
|
15
|
+
inline: !0
|
|
16
|
+
}
|
|
17
|
+
}, n = /* @__PURE__ */ t.createElement(f, { props: p }, m);
|
|
18
|
+
if (!r.slot) {
|
|
19
|
+
const a = e;
|
|
20
|
+
return /* @__PURE__ */ t.createElement(a, { ...o }, n);
|
|
21
|
+
}
|
|
22
|
+
return x(
|
|
23
|
+
typeof e == "string",
|
|
24
|
+
"'elementType' in Text component must be of type string"
|
|
25
|
+
), /* @__PURE__ */ t.createElement(c, null, /* @__PURE__ */ t.createElement(l.Text, { ...o, elementType: e }, n));
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
v as T
|
|
29
|
+
};
|
package/dist/Text.js
CHANGED
package/dist/TextArea.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as l from "react-aria-components";
|
|
5
|
-
import { T as n } from "./TextFieldBase-
|
|
5
|
+
import { T as n } from "./TextFieldBase-D60i8AOY.js";
|
|
6
6
|
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
7
7
|
import "./propsContext-Dx7WKmmM.js";
|
|
8
8
|
import "@react-aria/utils";
|
package/dist/TextField.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
4
|
import * as s from "react-aria-components";
|
|
5
|
-
import { T as a } from "./TextFieldBase-
|
|
5
|
+
import { T as a } from "./TextFieldBase-D60i8AOY.js";
|
|
6
6
|
import { C as m } from "./ClearPropsContext-CD1-9TZA.js";
|
|
7
7
|
import "./propsContext-Dx7WKmmM.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
@@ -9,7 +9,7 @@ import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
|
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-Dx7WKmmM.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as f } from "./FieldError-
|
|
12
|
+
import { F as f } from "./FieldError-BmzydlRW.js";
|
|
13
13
|
const D = (o) => {
|
|
14
14
|
const { children: t, className: s, input: a, ...i } = o, l = p(e.formField, s), m = {
|
|
15
15
|
Label: {
|