@mittwald/flow-react-components 0.1.0-alpha.66 → 0.1.0-alpha.68
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/{Action-DZzRGFBL.js → Action-CEqPqHfP.js} +10 -8
- package/dist/Action.js +1 -1
- package/dist/Avatar.js +2 -2
- package/dist/Breadcrumb.js +3 -3
- package/dist/{Button-CdGfSPx-.js → Button-Cml_2SLb.js} +6 -6
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +2 -2
- package/dist/{Checkbox-Bc-Yp2Li.js → Checkbox-iutK0PEF.js} +7 -6
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-D5G0rxZz.js → CheckboxButton-CqJLYMbG.js} +3 -3
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +4 -4
- package/dist/Content.js +8 -7
- package/dist/ContextMenu-AALlqsl3.js +36 -0
- package/dist/ContextMenu.js +7 -7
- package/dist/CopyButton.js +10 -9
- package/dist/FieldDescription.js +11 -10
- package/dist/FieldError-Bkfbr6qF.js +23 -0
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +1 -1
- package/dist/HeaderNavigation.js +1 -1
- package/dist/Heading.js +2 -2
- package/dist/{Icon-DVRBNZZe.js → Icon-Cirt9eNW.js} +13 -12
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-D9Y94psR.js → IconCheck-BeVmPHTC.js} +1 -1
- package/dist/{IconCheckboxEmpty-BneZ_izo.js → IconCheckboxEmpty-DxrY9ZRF.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-DZM-0gVy.js → IconCheckboxIndeterminate-DocwIA57.js} +1 -1
- package/dist/{IconChevronDown-D8WRADYa.js → IconChevronDown-C5-5-czM.js} +1 -1
- package/dist/{IconChevronRight-D2iaxujY.js → IconChevronRight-0Z6pj5Ic.js} +1 -1
- package/dist/{IconClose-zpsdo5WH.js → IconClose-C_Q9gfje.js} +1 -1
- package/dist/{IconContextMenu-D58YJ4YL.js → IconContextMenu-CRb3xTJw.js} +1 -1
- package/dist/{IconCopy-Dg12Fbk9.js → IconCopy-C5zfzlp0.js} +1 -1
- package/dist/{IconDanger-BKH4QbJ1.js → IconDanger-CtJdGYWb.js} +1 -1
- package/dist/{IconPlus-WchYGpT1.js → IconPlus-Zlw57lYp.js} +1 -1
- package/dist/{IconRadioOn-DNpq9Xk7.js → IconRadioOn-BpFVTp96.js} +1 -1
- package/dist/{IconSucceeded-d5GrQkmO.js → IconSucceeded-Dfdm67cI.js} +1 -1
- package/dist/{IconWarning-pPmXp5KC.js → IconWarning-BD3bYgr3.js} +1 -1
- package/dist/Icons.js +73 -72
- package/dist/IllustratedMessage.js +42 -0
- package/dist/Image.js +5 -4
- package/dist/Initials.js +7 -6
- package/dist/InlineAlert.js +11 -8
- package/dist/InlineCode-BV2i5uN0.js +18 -0
- package/dist/InlineCode.js +1 -1
- package/dist/{Label-BFDBIwAZ.js → Label-Dn79UkZF.js} +4 -3
- package/dist/Label.js +1 -1
- package/dist/LabeledValue.js +1 -1
- package/dist/LayoutCard.js +19 -10
- package/dist/Link-BKwioNbB.js +48 -0
- package/dist/Link.js +1 -1
- package/dist/List.js +21 -20
- package/dist/MenuItem-DgHFLZFs.js +38 -0
- package/dist/MenuItem.js +7 -0
- package/dist/Modal.js +1 -1
- package/dist/Navigation.js +25 -26
- package/dist/NumberField.js +7 -7
- package/dist/ProgressBar.js +1 -1
- package/dist/PropsContextProvider-DZvwqHLP.js +64 -0
- package/dist/RadioGroup.js +48 -49
- package/dist/Section.js +1 -1
- package/dist/Select.js +5 -5
- package/dist/StatusBadge.js +9 -8
- package/dist/{StatusIcon-gxczp9bZ.js → StatusIcon-BFo293NO.js} +8 -7
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +10 -9
- package/dist/Tabs.js +23 -22
- package/dist/{Text-D7C_T7CE.js → Text-DOsCjavW.js} +2 -2
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +8 -7
- package/dist/TextField.js +9 -8
- package/dist/{TextFieldBase-DuP4Ls0l.js → TextFieldBase-BMsXy6I_.js} +2 -2
- package/dist/flowComponent-D0FdCoE_.js +22 -0
- package/dist/react-hook-form.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -2
- package/dist/types/components/ContextMenu/index.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCode.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/index.d.ts +1 -0
- package/dist/types/components/IllustratedMessage/IllustratedMessage.d.ts +7 -0
- package/dist/types/components/IllustratedMessage/index.d.ts +4 -0
- package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/IllustratedMessage/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/Link/Link.d.ts +0 -2
- package/dist/types/components/Link/stories/Default.stories.d.ts +0 -1
- package/dist/types/components/MenuItem/MenuItem.d.ts +7 -0
- package/dist/types/components/{ContextMenu/components/ContextMenuItem/ContextMenuItemContent.d.ts → MenuItem/MenuItemContent.d.ts} +1 -1
- package/dist/types/components/MenuItem/index.d.ts +4 -0
- package/dist/types/components/ProgressBar/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/StatusBadge/stories/Default.stories.d.ts +0 -1
- package/dist/types/components/Tabs/Tabs.d.ts +4 -3
- package/dist/types/components/Tabs/components/Tab/context.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabTitle/TabTitle.d.ts +1 -1
- package/dist/types/components/propTypes/index.d.ts +3 -1
- package/dist/types/lib/propsContext/PropsContextProvider.d.ts +1 -0
- package/dist/types/lib/propsContext/mergePropsContext.d.ts +1 -1
- package/dist/types/lib/propsContext/propsContext.d.ts +2 -1
- package/dist/types/lib/react/getPropsMerger.d.ts +1 -0
- package/dist/{useProps-DoKnPAup.js → useProps-C57t0bqC.js} +3 -2
- package/package.json +11 -3
- package/dist/ContextMenuItem-k4nwztKS.js +0 -67
- package/dist/FieldError-CBxCl2nS.js +0 -22
- package/dist/InlineCode-CI8164C6.js +0 -17
- package/dist/Link-kCrtSVrZ.js +0 -51
- package/dist/PropsContextProvider-BcOGMJkn.js +0 -25
- package/dist/flowComponent-CEo3pjEA.js +0 -19
- package/dist/types/components/ContextMenu/components/ContextMenuItem/ContextMenuItem.d.ts +0 -7
- package/dist/types/components/ContextMenu/components/ContextMenuItem/index.d.ts +0 -4
- package/dist/types/components/RadioGroup/components/SegmentedGroup/SegmentedGroup.d.ts +0 -6
- package/dist/types/components/RadioGroup/components/SegmentedGroup/index.d.ts +0 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import p from "clsx";
|
|
6
|
+
import "./propsContext-CauylOgH.js";
|
|
7
|
+
import { P as u } from "./PropsContextProvider-DZvwqHLP.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import "@tabler/icons-react";
|
|
11
|
+
import "./Icon-Cirt9eNW.js";
|
|
12
|
+
import { I as f, a as I } from "./IconCheckboxEmpty-DxrY9ZRF.js";
|
|
13
|
+
import { I as d, a as x } from "./IconRadioOn-BpFVTp96.js";
|
|
14
|
+
import { T as l } from "./Text-DOsCjavW.js";
|
|
15
|
+
import { d as E } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
+
import { W as C } from "./Wrap-DGT1h1o3.js";
|
|
17
|
+
const h = "flow--menu-item", M = "flow--menu-item--icon", N = "flow--menu-item--text", c = {
|
|
18
|
+
menuItem: h,
|
|
19
|
+
icon: M,
|
|
20
|
+
text: N
|
|
21
|
+
}, T = (o, t) => !!E(o, t), k = (o) => {
|
|
22
|
+
const { selectionMode: t, isSelected: n, children: m } = o, r = {
|
|
23
|
+
Icon: {
|
|
24
|
+
className: c.icon
|
|
25
|
+
},
|
|
26
|
+
Text: {
|
|
27
|
+
className: c.text
|
|
28
|
+
}
|
|
29
|
+
}, s = t === "none" ? null : t === "single" && n ? /* @__PURE__ */ e.createElement(d, null) : t === "single" && !n ? /* @__PURE__ */ e.createElement(x, null) : t === "multiple" && n ? /* @__PURE__ */ e.createElement(f, null) : /* @__PURE__ */ e.createElement(I, null), a = T(m, l);
|
|
30
|
+
return /* @__PURE__ */ e.createElement(u, { props: r }, s, /* @__PURE__ */ e.createElement(C, { if: !a }, /* @__PURE__ */ e.createElement(l, null, m)));
|
|
31
|
+
}, j = (o) => {
|
|
32
|
+
const { children: t, className: n, ...m } = o, r = p(c.menuItem, n);
|
|
33
|
+
return /* @__PURE__ */ e.createElement(i.MenuItem, { ...m, className: r }, (s) => /* @__PURE__ */ e.createElement(k, { ...s }, t));
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
j as M,
|
|
37
|
+
T as d
|
|
38
|
+
};
|
package/dist/MenuItem.js
ADDED
package/dist/Modal.js
CHANGED
|
@@ -5,7 +5,7 @@ import { DialogTrigger as q } from "react-aria-components";
|
|
|
5
5
|
import e, { useContext as w, useEffect as r } from "react";
|
|
6
6
|
import C from "clsx";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
|
-
import { P as y } from "./PropsContextProvider-
|
|
8
|
+
import { P as y } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
11
|
import { TunnelProvider as E, TunnelExit as m } from "@mittwald/react-tunnel";
|
package/dist/Navigation.js
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import
|
|
5
|
-
import { d as
|
|
6
|
-
import { W as
|
|
4
|
+
import r from "clsx";
|
|
5
|
+
import { d as v } from "./deepFindOfType-6pG0fH7S.js";
|
|
6
|
+
import { W as g } from "./Wrap-DGT1h1o3.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
|
-
import { P as u } from "./PropsContextProvider-
|
|
8
|
+
import { P as u } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
item:
|
|
14
|
-
icon:
|
|
15
|
-
text:
|
|
16
|
-
},
|
|
17
|
-
const { className:
|
|
18
|
-
|
|
19
|
-
className:
|
|
20
|
-
level: 3
|
|
11
|
+
const f = "flow--navigation--label", N = "flow--navigation--item", x = "flow--navigation--icon", d = "flow--navigation--text", o = {
|
|
12
|
+
label: f,
|
|
13
|
+
item: N,
|
|
14
|
+
icon: x,
|
|
15
|
+
text: d
|
|
16
|
+
}, W = (a) => {
|
|
17
|
+
const { className: n, children: e, ...s } = a, i = r(o.navigation, n), c = !!v(e, l), m = {
|
|
18
|
+
Label: {
|
|
19
|
+
className: o.label
|
|
21
20
|
},
|
|
22
21
|
Link: {
|
|
23
22
|
hoc: (p) => /* @__PURE__ */ t.createElement("li", null, p),
|
|
24
|
-
className:
|
|
23
|
+
className: o.item,
|
|
25
24
|
unstyled: !0,
|
|
26
25
|
Text: {
|
|
27
|
-
className:
|
|
26
|
+
className: o.text
|
|
28
27
|
},
|
|
29
28
|
Icon: {
|
|
30
|
-
className:
|
|
29
|
+
className: o.icon
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
return /* @__PURE__ */ t.createElement("nav", { className:
|
|
35
|
-
},
|
|
36
|
-
navigationGroup:
|
|
37
|
-
},
|
|
38
|
-
const { children:
|
|
39
|
-
return /* @__PURE__ */ t.createElement("ul", { ...
|
|
33
|
+
return /* @__PURE__ */ t.createElement("nav", { className: i, role: "navigation", ...s }, /* @__PURE__ */ t.createElement(u, { props: m }, /* @__PURE__ */ t.createElement(g, { if: !c }, /* @__PURE__ */ t.createElement(l, null, e))));
|
|
34
|
+
}, E = "flow--navigation--navigation-group", b = {
|
|
35
|
+
navigationGroup: E
|
|
36
|
+
}, l = (a) => {
|
|
37
|
+
const { children: n, className: e, ...s } = a, i = r(b.navigationGroup, e);
|
|
38
|
+
return /* @__PURE__ */ t.createElement("ul", { ...s, className: i }, n);
|
|
40
39
|
};
|
|
41
40
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
W as Navigation,
|
|
42
|
+
l as NavigationGroup,
|
|
43
|
+
W as default
|
|
45
44
|
};
|
package/dist/NumberField.js
CHANGED
|
@@ -5,17 +5,17 @@ import * as r from "react-aria-components";
|
|
|
5
5
|
import { s as o } from "./FormField.module-DHK6nIcD.js";
|
|
6
6
|
import E from "clsx";
|
|
7
7
|
import { C as N } from "./ClearPropsContext-CeCMjUK9.js";
|
|
8
|
-
import { P as b } from "./PropsContextProvider-
|
|
8
|
+
import { P as b } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-CauylOgH.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as I } from "./FieldError-
|
|
13
|
-
import { B as a } from "./Button-
|
|
12
|
+
import { F as I } from "./FieldError-Bkfbr6qF.js";
|
|
13
|
+
import { B as a } from "./Button-Cml_2SLb.js";
|
|
14
14
|
import "@tabler/icons-react";
|
|
15
|
-
import "./Icon-
|
|
16
|
-
import { I as C } from "./IconChevronDown-
|
|
17
|
-
import { I as h, a as F, b as P } from "./IconPlus-
|
|
18
|
-
import { f as w } from "./flowComponent-
|
|
15
|
+
import "./Icon-Cirt9eNW.js";
|
|
16
|
+
import { I as C } from "./IconChevronDown-C5-5-czM.js";
|
|
17
|
+
import { I as h, a as F, b as P } from "./IconPlus-Zlw57lYp.js";
|
|
18
|
+
import { f as w } from "./flowComponent-D0FdCoE_.js";
|
|
19
19
|
const B = "flow--number-field--group", g = "flow--number-field--input", y = "flow--number-field--decrement-button", v = "flow--number-field--increment-button", x = "flow--number-field--coarse-pointer-icon", D = "flow--number-field--touch-icon", t = {
|
|
20
20
|
group: B,
|
|
21
21
|
input: g,
|
package/dist/ProgressBar.js
CHANGED
|
@@ -5,7 +5,7 @@ import s from "react";
|
|
|
5
5
|
import w from "clsx";
|
|
6
6
|
import { useNumberFormatter as d } from "react-aria";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
|
-
import { P as x } from "./PropsContextProvider-
|
|
8
|
+
import { P as x } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
11
|
const N = "flow--progress-bar", v = "flow--progress-bar--label", B = "flow--progress-bar--value", E = "flow--progress-bar--bar", P = "flow--progress-bar--fill", z = "flow--progress-bar--info", V = "flow--progress-bar--success", h = "flow--progress-bar--danger", y = "flow--progress-bar--warning", r = {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import u, { useMemo as m, isValidElement as f, cloneElement as C } from "react";
|
|
4
|
+
import { u as v, p as E } from "./propsContext-CauylOgH.js";
|
|
5
|
+
import { mergeProps as h } from "@react-aria/utils";
|
|
6
|
+
import { isObjectType as c } from "remeda";
|
|
7
|
+
import { setProperty as x } from "dot-prop";
|
|
8
|
+
const N = (t = {}) => (...r) => {
|
|
9
|
+
const { mergeClassNames: n = !0, mergeEventHandler: s = !0 } = t, e = h(...r);
|
|
10
|
+
if (c(e)) {
|
|
11
|
+
if (!n)
|
|
12
|
+
for (const o of r)
|
|
13
|
+
c(o) && "className" in e && "className" in o && (e.className = o.className);
|
|
14
|
+
if (!s) {
|
|
15
|
+
for (const o of r)
|
|
16
|
+
if (c(o))
|
|
17
|
+
for (const [p, a] of Object.entries(o))
|
|
18
|
+
/^on[A-Z]/.test(p) && x(e, p, a);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}, b = N({
|
|
23
|
+
mergeClassNames: !1,
|
|
24
|
+
mergeEventHandler: !1
|
|
25
|
+
}), j = (t = {}, r = {}) => {
|
|
26
|
+
const n = Object.keys({
|
|
27
|
+
...t,
|
|
28
|
+
...r
|
|
29
|
+
});
|
|
30
|
+
return Object.fromEntries(
|
|
31
|
+
n.map((s) => [
|
|
32
|
+
s,
|
|
33
|
+
b(
|
|
34
|
+
t[s],
|
|
35
|
+
r[s]
|
|
36
|
+
)
|
|
37
|
+
])
|
|
38
|
+
);
|
|
39
|
+
}, V = (t) => {
|
|
40
|
+
const {
|
|
41
|
+
props: r,
|
|
42
|
+
dependencies: n = [],
|
|
43
|
+
mergeInParentContext: s = !1,
|
|
44
|
+
children: e,
|
|
45
|
+
...o
|
|
46
|
+
} = t, p = v(), a = m(() => r, n), i = m(
|
|
47
|
+
() => s ? j(p, r) : r,
|
|
48
|
+
[a, p, s]
|
|
49
|
+
), l = f(e) ? {
|
|
50
|
+
...o,
|
|
51
|
+
...e.props
|
|
52
|
+
} : o, d = [
|
|
53
|
+
e,
|
|
54
|
+
...Object.entries(l).flatMap((g) => g)
|
|
55
|
+
], P = m(
|
|
56
|
+
() => f(e) ? C(e, l) : e,
|
|
57
|
+
d
|
|
58
|
+
);
|
|
59
|
+
return /* @__PURE__ */ u.createElement(E.Provider, { value: i }, P);
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
V as P,
|
|
63
|
+
j as m
|
|
64
|
+
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -2,31 +2,36 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as R from "react-aria-components";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { P as
|
|
5
|
+
import E from "clsx";
|
|
6
|
+
import "./propsContext-CauylOgH.js";
|
|
7
|
+
import { P as C, m as b } from "./PropsContextProvider-DZvwqHLP.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
10
|
+
import { d as k } from "./dynamic-ClpUSmEt.js";
|
|
11
|
+
import { F as x } from "./FieldError-Bkfbr6qF.js";
|
|
12
|
+
import { C as y } from "./ColumnLayout-FMONjI17.js";
|
|
13
|
+
import { TunnelProvider as F, TunnelExit as m } from "@mittwald/react-tunnel";
|
|
14
|
+
import { s as c } from "./FormField.module-DHK6nIcD.js";
|
|
15
|
+
import { d as I } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
+
import { C as w } from "./ClearPropsContext-CeCMjUK9.js";
|
|
16
17
|
import "@tabler/icons-react";
|
|
17
|
-
import "./Icon-
|
|
18
|
-
import { I, a as
|
|
19
|
-
import { f as N } from "./flowComponent-
|
|
20
|
-
import
|
|
21
|
-
import { I as
|
|
22
|
-
const D = "flow--radio-group",
|
|
23
|
-
radioGroup: D
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
18
|
+
import "./Icon-Cirt9eNW.js";
|
|
19
|
+
import { I as B, a as v } from "./IconRadioOn-BpFVTp96.js";
|
|
20
|
+
import { f as N } from "./flowComponent-D0FdCoE_.js";
|
|
21
|
+
import "dot-prop";
|
|
22
|
+
import { I as P } from "./IconCheck-BeVmPHTC.js";
|
|
23
|
+
const D = "flow--radio-group", T = "flow--radio-group--segmented-group", O = "flow--radio-group--segments", $ = "flow--radio-group--segment", L = "flow--radio-group--checkmark", a = {
|
|
24
|
+
radioGroup: D,
|
|
25
|
+
segmentedGroup: T,
|
|
26
|
+
segments: O,
|
|
27
|
+
segment: $,
|
|
28
|
+
checkmark: L
|
|
29
|
+
}, A = "flow--radio-group--radio-button", j = "flow--radio-group--radio-button--content", q = "flow--radio-group--radio-button--label", f = {
|
|
30
|
+
radioButton: A,
|
|
31
|
+
content: j,
|
|
32
|
+
label: q
|
|
33
|
+
}, z = N("RadioButton", (n) => {
|
|
34
|
+
const { children: t, className: r, ref: o, ...s } = n, l = E(f.radioButton, r), i = {
|
|
30
35
|
Text: {
|
|
31
36
|
className: f.label
|
|
32
37
|
},
|
|
@@ -34,33 +39,19 @@ const D = "flow--radio-group", C = {
|
|
|
34
39
|
className: f.content
|
|
35
40
|
}
|
|
36
41
|
};
|
|
37
|
-
return /* @__PURE__ */ e.createElement(
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
segment: j,
|
|
42
|
-
checkmark: q
|
|
43
|
-
}, z = (a) => {
|
|
44
|
-
const { children: t } = a, r = d(c.segmentedGroup, l.formField), n = {
|
|
45
|
-
...G(),
|
|
46
|
-
Radio: {
|
|
47
|
-
className: c.segment,
|
|
48
|
-
unstyled: !0,
|
|
49
|
-
children: P((s) => /* @__PURE__ */ e.createElement(e.Fragment, null, s.children, /* @__PURE__ */ e.createElement(v, { className: c.checkmark })))
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return /* @__PURE__ */ e.createElement("div", { className: r }, /* @__PURE__ */ e.createElement(E, { props: n }, /* @__PURE__ */ e.createElement("div", { className: c.segments }, t)));
|
|
53
|
-
}, me = N("RadioGroup", (a) => {
|
|
54
|
-
const { children: t, className: r, variant: o = "default", s: n, m: s, l: i, ...p } = a, w = d(l.formField, r), x = {
|
|
42
|
+
return /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(K, { ...s, className: l, ref: o }, /* @__PURE__ */ e.createElement(C, { props: i }, t)));
|
|
43
|
+
}), me = N("RadioGroup", (n) => {
|
|
44
|
+
const { children: t, className: r, variant: o = "default", s, m: l, l: i, ...d } = n, h = E(c.formField, r);
|
|
45
|
+
let p = {
|
|
55
46
|
Label: {
|
|
56
|
-
className:
|
|
47
|
+
className: c.label
|
|
57
48
|
},
|
|
58
49
|
FieldDescription: {
|
|
59
|
-
className:
|
|
50
|
+
className: c.fieldDescription,
|
|
60
51
|
tunnelId: "fieldDescription"
|
|
61
52
|
},
|
|
62
53
|
FieldError: {
|
|
63
|
-
className:
|
|
54
|
+
className: c.customFieldError,
|
|
64
55
|
tunnelId: "fieldError"
|
|
65
56
|
},
|
|
66
57
|
RadioButton: {
|
|
@@ -69,20 +60,28 @@ const D = "flow--radio-group", C = {
|
|
|
69
60
|
Radio: {
|
|
70
61
|
tunnelId: "radios"
|
|
71
62
|
}
|
|
72
|
-
}
|
|
63
|
+
};
|
|
64
|
+
o === "segmented" && (p = b(p, {
|
|
65
|
+
Radio: {
|
|
66
|
+
className: a.segment,
|
|
67
|
+
unstyled: !0,
|
|
68
|
+
children: k((G) => /* @__PURE__ */ e.createElement(e.Fragment, null, G.children, /* @__PURE__ */ e.createElement(P, { className: a.checkmark })))
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
71
|
+
const u = !!I(t, z);
|
|
73
72
|
return o === "segmented" && u && console.warn(
|
|
74
73
|
"<RadioButton/> is not supported in 'segmented' variant of <RadioGroup />"
|
|
75
|
-
), /* @__PURE__ */ e.createElement(R.RadioGroup, { ...
|
|
74
|
+
), /* @__PURE__ */ e.createElement(R.RadioGroup, { ...d, className: h }, /* @__PURE__ */ e.createElement(F, null, /* @__PURE__ */ e.createElement(C, { props: p, dependencies: [o] }, t, o === "segmented" && /* @__PURE__ */ e.createElement("div", { className: a.segmentedGroup }, /* @__PURE__ */ e.createElement("div", { className: a.segments }, /* @__PURE__ */ e.createElement(m, { id: "radios" }))), o === "default" && u && /* @__PURE__ */ e.createElement(y, { s, m: l, l: i, className: a.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && !u && /* @__PURE__ */ e.createElement("div", { className: a.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), /* @__PURE__ */ e.createElement(m, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(m, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(x, { className: c.fieldError }));
|
|
76
75
|
}), H = "flow--radio-group--radio", J = "flow--radio-group--radio--icon", g = {
|
|
77
76
|
radio: H,
|
|
78
77
|
icon: J
|
|
79
|
-
}, K = N("Radio", (
|
|
80
|
-
const { children: t, className: r, unstyled: o = !1, ref:
|
|
81
|
-
return /* @__PURE__ */ e.createElement(
|
|
78
|
+
}, K = N("Radio", (n) => {
|
|
79
|
+
const { children: t, className: r, unstyled: o = !1, ref: s, ...l } = n, i = o ? r : E(g.radio, r);
|
|
80
|
+
return /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(R.Radio, { ...l, className: i, ref: s }, ({ isSelected: d }) => /* @__PURE__ */ e.createElement(e.Fragment, null, d ? !o && /* @__PURE__ */ e.createElement(B, { className: g.icon }) : !o && /* @__PURE__ */ e.createElement(v, { className: g.icon }), t)));
|
|
82
81
|
});
|
|
83
82
|
export {
|
|
84
83
|
K as Radio,
|
|
85
|
-
|
|
84
|
+
z as RadioButton,
|
|
86
85
|
me as RadioGroup,
|
|
87
86
|
me as default
|
|
88
87
|
};
|
package/dist/Section.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import s from "react";
|
|
4
4
|
import i from "clsx";
|
|
5
5
|
import "./propsContext-CauylOgH.js";
|
|
6
|
-
import { P as l } from "./PropsContextProvider-
|
|
6
|
+
import { P as l } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
const m = "flow--section", d = "flow--section--header", p = "flow--section--status-badge", e = {
|
package/dist/Select.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as c from "react-aria-components";
|
|
5
5
|
import "./propsContext-CauylOgH.js";
|
|
6
|
-
import { P as C } from "./PropsContextProvider-
|
|
6
|
+
import { P as C } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { s as r } from "./FormField.module-DHK6nIcD.js";
|
|
10
|
-
import { F as x } from "./FieldError-
|
|
10
|
+
import { F as x } from "./FieldError-Bkfbr6qF.js";
|
|
11
11
|
import m from "clsx";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon-
|
|
14
|
-
import { I as h } from "./IconChevronDown-
|
|
15
|
-
import { f as E } from "./flowComponent-
|
|
13
|
+
import "./Icon-Cirt9eNW.js";
|
|
14
|
+
import { I as h } from "./IconChevronDown-C5-5-czM.js";
|
|
15
|
+
import { f as E } from "./flowComponent-D0FdCoE_.js";
|
|
16
16
|
import { P as v } from "./Popover-MmxZkKu3.js";
|
|
17
17
|
import { TunnelProvider as w, TunnelExit as S } from "@mittwald/react-tunnel";
|
|
18
18
|
const F = "flow--select", P = "flow--select--toggle", f = {
|
package/dist/StatusBadge.js
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
4
|
import l from "clsx";
|
|
5
|
-
import { S as f } from "./StatusIcon-
|
|
6
|
-
import { T as
|
|
7
|
-
import { C as
|
|
5
|
+
import { S as f } from "./StatusIcon-BFo293NO.js";
|
|
6
|
+
import { T as i } from "./Text-DOsCjavW.js";
|
|
7
|
+
import { C as u } from "./ClearPropsContext-CeCMjUK9.js";
|
|
8
8
|
import "./propsContext-CauylOgH.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import
|
|
11
|
+
import "dot-prop";
|
|
12
|
+
import { f as d } from "./flowComponent-D0FdCoE_.js";
|
|
12
13
|
const g = "flow--status-badge", p = "flow--status-badge--text", w = "flow--status-badge--info", x = "flow--status-badge--success", b = "flow--status-badge--warning", B = "flow--status-badge--danger", s = {
|
|
13
14
|
statusBadge: g,
|
|
14
15
|
text: p,
|
|
@@ -16,11 +17,11 @@ const g = "flow--status-badge", p = "flow--status-badge--text", w = "flow--statu
|
|
|
16
17
|
success: x,
|
|
17
18
|
warning: b,
|
|
18
19
|
danger: B
|
|
19
|
-
},
|
|
20
|
+
}, P = d("StatusBadge", (a) => {
|
|
20
21
|
const { children: o, className: n, status: e = "info", ref: r, ...c } = a, m = l(s.statusBadge, s[e], n);
|
|
21
|
-
return /* @__PURE__ */ t.createElement(
|
|
22
|
+
return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement("div", { className: m, ...c, ref: r }, /* @__PURE__ */ t.createElement(f, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(i, { className: s.text }, o)));
|
|
22
23
|
});
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
P as StatusBadge,
|
|
26
|
+
P as default
|
|
26
27
|
};
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
4
|
import "@tabler/icons-react";
|
|
5
|
-
import "./Icon-
|
|
6
|
-
import { I as c } from "./IconDanger-
|
|
7
|
-
import { I as e, a as i, b as m } from "./IconWarning-
|
|
5
|
+
import "./Icon-Cirt9eNW.js";
|
|
6
|
+
import { I as c } from "./IconDanger-CtJdGYWb.js";
|
|
7
|
+
import { I as e, a as i, b as m } from "./IconWarning-BD3bYgr3.js";
|
|
8
8
|
import { useLocalizedStringFormatter as u } from "react-aria";
|
|
9
9
|
import { C as I } from "./ClearPropsContext-CeCMjUK9.js";
|
|
10
10
|
import "./propsContext-CauylOgH.js";
|
|
11
11
|
import "@react-aria/utils";
|
|
12
12
|
import "remeda";
|
|
13
|
+
import "dot-prop";
|
|
13
14
|
const f = {
|
|
14
15
|
"de-DE": {
|
|
15
16
|
"statusIcon.danger": "Fehler",
|
|
@@ -28,10 +29,10 @@ const f = {
|
|
|
28
29
|
info: e,
|
|
29
30
|
success: i,
|
|
30
31
|
warning: m
|
|
31
|
-
},
|
|
32
|
-
const { status: t = "info", ...
|
|
33
|
-
return /* @__PURE__ */ o.createElement(I, null, /* @__PURE__ */ o.createElement(a, { "aria-label":
|
|
32
|
+
}, D = (n) => {
|
|
33
|
+
const { status: t = "info", ...r } = n, s = u(f).format(`statusIcon.${t}`), a = g[t];
|
|
34
|
+
return /* @__PURE__ */ o.createElement(I, null, /* @__PURE__ */ o.createElement(a, { "aria-label": s, ...r }));
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
D as S
|
|
37
38
|
};
|
package/dist/StatusIcon.js
CHANGED
package/dist/Switch.js
CHANGED
|
@@ -4,22 +4,23 @@ import e from "react";
|
|
|
4
4
|
import * as n from "react-aria-components";
|
|
5
5
|
import f from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon-
|
|
8
|
-
import { I as
|
|
9
|
-
import { I as
|
|
10
|
-
import { L as w } from "./Label-
|
|
7
|
+
import "./Icon-Cirt9eNW.js";
|
|
8
|
+
import { I as p } from "./IconCheck-BeVmPHTC.js";
|
|
9
|
+
import { I as h } from "./IconClose-C_Q9gfje.js";
|
|
10
|
+
import { L as w } from "./Label-Dn79UkZF.js";
|
|
11
11
|
import { C as d } from "./ClearPropsContext-CeCMjUK9.js";
|
|
12
12
|
import "./propsContext-CauylOgH.js";
|
|
13
13
|
import "@react-aria/utils";
|
|
14
14
|
import "remeda";
|
|
15
|
-
import
|
|
15
|
+
import "dot-prop";
|
|
16
|
+
import { f as b } from "./flowComponent-D0FdCoE_.js";
|
|
16
17
|
const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--label", t = {
|
|
17
18
|
switch: "flow--switch",
|
|
18
19
|
"label-leading": "flow--switch--label-leading",
|
|
19
20
|
track: E,
|
|
20
21
|
handle: C,
|
|
21
22
|
label: N
|
|
22
|
-
},
|
|
23
|
+
}, R = b("Switch", (l) => {
|
|
23
24
|
const {
|
|
24
25
|
children: a,
|
|
25
26
|
className: o,
|
|
@@ -31,9 +32,9 @@ const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--
|
|
|
31
32
|
t[`label-${r}`],
|
|
32
33
|
o
|
|
33
34
|
);
|
|
34
|
-
return /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(n.Switch, { ...c, className: m, ref: s }, ({ isSelected: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, i ? /* @__PURE__ */ e.createElement(
|
|
35
|
+
return /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(n.Switch, { ...c, className: m, ref: s }, ({ isSelected: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, i ? /* @__PURE__ */ e.createElement(p, { size: "s" }) : /* @__PURE__ */ e.createElement(h, { size: "s" }))), /* @__PURE__ */ e.createElement(w, { className: t.label }, a))));
|
|
35
36
|
});
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
R as Switch,
|
|
39
|
+
R as default
|
|
39
40
|
};
|
package/dist/Tabs.js
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import t, { createContext as
|
|
3
|
+
import t, { createContext as f, useContext as p, useId as x } from "react";
|
|
4
4
|
import * as l from "react-aria-components";
|
|
5
5
|
import c from "clsx";
|
|
6
|
-
import { TunnelProvider as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
6
|
+
import { TunnelProvider as N, TunnelExit as m, TunnelEntry as T } from "@mittwald/react-tunnel";
|
|
7
|
+
import { f as P } from "./flowComponent-D0FdCoE_.js";
|
|
8
|
+
import { T as C } from "./Text-DOsCjavW.js";
|
|
9
|
+
const h = "flow--tabs", w = "flow--tabs--tab-list", b = {
|
|
10
|
+
tabs: h,
|
|
11
|
+
tabList: w
|
|
12
|
+
}, W = P("Tabs", (e) => {
|
|
13
|
+
const { children: a, className: s, ...n } = e, o = c(b.tabs, s);
|
|
14
|
+
return /* @__PURE__ */ t.createElement(N, null, a, /* @__PURE__ */ t.createElement(l.Tabs, { className: o, ...n }, /* @__PURE__ */ t.createElement(l.TabList, { className: b.tabList }, /* @__PURE__ */ t.createElement(m, { id: "TabTitles" })), /* @__PURE__ */ t.createElement(m, { id: "TabPanels" })));
|
|
15
|
+
}), v = "flow--tabs--tab-title", y = {
|
|
15
16
|
tabTitle: v
|
|
16
|
-
}, d =
|
|
17
|
-
const { children: a, className: s, ...n } = e, o =
|
|
18
|
-
return /* @__PURE__ */ t.createElement(T, { id: "TabTitles" }, /* @__PURE__ */ t.createElement(l.Tab, { className: r, ...n, id: o.id }, /* @__PURE__ */ t.createElement(
|
|
19
|
-
},
|
|
20
|
-
tabPanel:
|
|
21
|
-
},
|
|
17
|
+
}, d = f({}), L = () => p(d), F = d.Provider, j = (e) => {
|
|
18
|
+
const { children: a, className: s, ...n } = e, o = L(), r = c(y.tabTitle, s);
|
|
19
|
+
return /* @__PURE__ */ t.createElement(T, { id: "TabTitles" }, /* @__PURE__ */ t.createElement(l.Tab, { className: r, ...n, id: o.id }, /* @__PURE__ */ t.createElement(C, { emulateBoldWidth: !0 }, a)));
|
|
20
|
+
}, I = "flow--tabs--tab--tab-panel", $ = {
|
|
21
|
+
tabPanel: I
|
|
22
|
+
}, k = (e) => {
|
|
22
23
|
const {
|
|
23
24
|
children: a,
|
|
24
25
|
className: s,
|
|
25
26
|
shouldForceMount: n = !0,
|
|
26
27
|
id: o,
|
|
27
28
|
...r
|
|
28
|
-
} = e, u = c(
|
|
29
|
-
return /* @__PURE__ */ t.createElement(T, { id: "TabPanels" }, /* @__PURE__ */ t.createElement(
|
|
29
|
+
} = e, u = c($.tabPanel, s), E = x(), i = o ?? E;
|
|
30
|
+
return /* @__PURE__ */ t.createElement(T, { id: "TabPanels" }, /* @__PURE__ */ t.createElement(F, { value: { id: i } }, /* @__PURE__ */ t.createElement(
|
|
30
31
|
l.TabPanel,
|
|
31
32
|
{
|
|
32
33
|
className: u,
|
|
33
34
|
shouldForceMount: n,
|
|
34
|
-
id:
|
|
35
|
+
id: i,
|
|
35
36
|
...r
|
|
36
37
|
},
|
|
37
38
|
a
|
|
38
39
|
)));
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
k as Tab,
|
|
43
|
+
j as TabTitle,
|
|
44
|
+
W as Tabs
|
|
44
45
|
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as f from "react-aria-components";
|
|
5
5
|
import { C as x } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
-
import { P as E } from "./PropsContextProvider-
|
|
6
|
+
import { P as E } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "./propsContext-CauylOgH.js";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import u from "invariant";
|
|
11
|
-
import { f as T } from "./flowComponent-
|
|
11
|
+
import { f as T } from "./flowComponent-D0FdCoE_.js";
|
|
12
12
|
import { E as d } from "./EmulatedBoldText-Dtox8Wd1.js";
|
|
13
13
|
import { W as C } from "./Wrap-DGT1h1o3.js";
|
|
14
14
|
const A = T("Text", (r) => {
|