@mittwald/flow-react-components 0.1.0-alpha.65 → 0.1.0-alpha.67
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-DEpgmJgz.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-RNHxIFd2.js} +6 -6
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +2 -2
- package/dist/{Checkbox-Bc-Yp2Li.js → Checkbox-DKySO10B.js} +7 -6
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-D5G0rxZz.js → CheckboxButton-CWdX3bM9.js} +3 -3
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +4 -4
- package/dist/Content.js +8 -7
- package/dist/ContextMenu-CyJQ17tm.js +36 -0
- package/dist/ContextMenu.js +7 -7
- package/dist/CopyButton.js +10 -9
- package/dist/FieldDescription.js +11 -10
- package/dist/FieldError-TYnVmG-o.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-CPAehMux.js} +13 -12
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-D9Y94psR.js → IconCheck-C778cVIW.js} +1 -1
- package/dist/{IconCheckboxEmpty-BneZ_izo.js → IconCheckboxEmpty-CuRg5vZt.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-DZM-0gVy.js → IconCheckboxIndeterminate-Czwxs_TE.js} +1 -1
- package/dist/{IconChevronDown-D8WRADYa.js → IconChevronDown-BL8_H9Kf.js} +1 -1
- package/dist/{IconChevronRight-D2iaxujY.js → IconChevronRight-BdGTP9WG.js} +1 -1
- package/dist/{IconClose-zpsdo5WH.js → IconClose-Cq9t3LQV.js} +1 -1
- package/dist/{IconContextMenu-D58YJ4YL.js → IconContextMenu-BDvtrC86.js} +1 -1
- package/dist/{IconCopy-Dg12Fbk9.js → IconCopy-C9jfVrgu.js} +1 -1
- package/dist/{IconDanger-BKH4QbJ1.js → IconDanger-B7qTdARI.js} +1 -1
- package/dist/{IconPlus-WchYGpT1.js → IconPlus-vUgeG2A9.js} +1 -1
- package/dist/{IconRadioOn-DNpq9Xk7.js → IconRadioOn-CTDczjLJ.js} +1 -1
- package/dist/{IconSucceeded-d5GrQkmO.js → IconSucceeded-C092cisG.js} +1 -1
- package/dist/{IconWarning-pPmXp5KC.js → IconWarning-B5oeYHHs.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 +3 -3
- package/dist/InlineCode-BV2i5uN0.js +18 -0
- package/dist/InlineCode.js +1 -1
- package/dist/{Label-BFDBIwAZ.js → Label-B4BxkNHo.js} +4 -3
- package/dist/Label.js +1 -1
- package/dist/LabeledValue.js +1 -1
- package/dist/LayoutCard.js +19 -10
- package/dist/{Link-kCrtSVrZ.js → Link-I6WUPEGi.js} +2 -2
- package/dist/Link.js +1 -1
- package/dist/List.js +21 -20
- package/dist/MenuItem-CrRLNYPb.js +38 -0
- package/dist/MenuItem.js +7 -0
- package/dist/Modal.js +1 -1
- package/dist/Navigation.js +1 -1
- package/dist/NumberField.js +55 -41
- package/dist/ProgressBar.js +1 -1
- package/dist/PropsContextProvider-DkNLd3Yj.js +63 -0
- package/dist/RadioGroup.js +45 -45
- package/dist/Section.js +1 -1
- package/dist/Select.js +5 -5
- package/dist/StatusBadge.js +9 -8
- package/dist/{StatusIcon-gxczp9bZ.js → StatusIcon-BrpddXMN.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-BW9cNWaj.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-BcCtRAw5.js} +2 -2
- package/dist/flowComponent-mJ64-1gs.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/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/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-BqLmWTTi.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/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/NumberField.js
CHANGED
|
@@ -3,28 +3,28 @@
|
|
|
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
|
|
8
|
-
import { P as
|
|
6
|
+
import E from "clsx";
|
|
7
|
+
import { C as N } from "./ClearPropsContext-CeCMjUK9.js";
|
|
8
|
+
import { P as b } from "./PropsContextProvider-DkNLd3Yj.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-CauylOgH.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as
|
|
13
|
-
import { B as
|
|
12
|
+
import { F as I } from "./FieldError-TYnVmG-o.js";
|
|
13
|
+
import { B as a } from "./Button-RNHxIFd2.js";
|
|
14
14
|
import "@tabler/icons-react";
|
|
15
|
-
import "./Icon-
|
|
16
|
-
import { I as
|
|
17
|
-
import { I as
|
|
18
|
-
import { f as
|
|
19
|
-
const
|
|
20
|
-
group:
|
|
21
|
-
input:
|
|
22
|
-
decrementButton:
|
|
23
|
-
incrementButton:
|
|
24
|
-
coarsePointerIcon:
|
|
25
|
-
touchIcon:
|
|
26
|
-
},
|
|
27
|
-
const { children: m, className: c, ref:
|
|
15
|
+
import "./Icon-CPAehMux.js";
|
|
16
|
+
import { I as C } from "./IconChevronDown-BL8_H9Kf.js";
|
|
17
|
+
import { I as h, a as F, b as P } from "./IconPlus-vUgeG2A9.js";
|
|
18
|
+
import { f as w } from "./flowComponent-mJ64-1gs.js";
|
|
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
|
+
group: B,
|
|
21
|
+
input: g,
|
|
22
|
+
decrementButton: y,
|
|
23
|
+
incrementButton: v,
|
|
24
|
+
coarsePointerIcon: x,
|
|
25
|
+
touchIcon: D
|
|
26
|
+
}, K = w("NumberField", (n) => {
|
|
27
|
+
const { children: m, className: c, ref: l, onChange: s, ...i } = n, u = E(o.formField, c), p = {
|
|
28
28
|
Label: {
|
|
29
29
|
className: o.label,
|
|
30
30
|
optional: !n.isRequired
|
|
@@ -35,32 +35,46 @@ const P = "flow--number-field--group", w = "flow--number-field--input", B = "flo
|
|
|
35
35
|
FieldError: {
|
|
36
36
|
className: o.customFieldError
|
|
37
37
|
}
|
|
38
|
+
}, f = (d) => {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
s && s(d);
|
|
41
|
+
}, 150);
|
|
38
42
|
};
|
|
39
|
-
return /* @__PURE__ */ e.createElement(
|
|
40
|
-
|
|
43
|
+
return /* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(
|
|
44
|
+
r.NumberField,
|
|
41
45
|
{
|
|
42
|
-
|
|
43
|
-
className:
|
|
44
|
-
|
|
45
|
-
style: "plain",
|
|
46
|
-
variant: "secondary"
|
|
46
|
+
...i,
|
|
47
|
+
className: u,
|
|
48
|
+
onChange: f
|
|
47
49
|
},
|
|
48
|
-
/* @__PURE__ */ e.createElement(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/* @__PURE__ */ e.createElement(
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
/* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
|
|
51
|
+
a,
|
|
52
|
+
{
|
|
53
|
+
slot: "decrement",
|
|
54
|
+
className: t.decrementButton,
|
|
55
|
+
size: "s",
|
|
56
|
+
style: "plain",
|
|
57
|
+
variant: "secondary"
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ e.createElement(C, null),
|
|
60
|
+
/* @__PURE__ */ e.createElement(h, { className: t.coarsePointerIcon })
|
|
61
|
+
), /* @__PURE__ */ e.createElement(r.Input, { className: t.input, ref: l }), /* @__PURE__ */ e.createElement(
|
|
62
|
+
a,
|
|
63
|
+
{
|
|
64
|
+
slot: "increment",
|
|
65
|
+
className: t.incrementButton,
|
|
66
|
+
size: "s",
|
|
67
|
+
style: "plain",
|
|
68
|
+
variant: "secondary"
|
|
69
|
+
},
|
|
70
|
+
/* @__PURE__ */ e.createElement(F, null),
|
|
71
|
+
/* @__PURE__ */ e.createElement(P, { className: t.coarsePointerIcon })
|
|
72
|
+
)),
|
|
73
|
+
/* @__PURE__ */ e.createElement(b, { props: p }, m),
|
|
74
|
+
/* @__PURE__ */ e.createElement(I, { className: o.fieldError })
|
|
75
|
+
));
|
|
62
76
|
});
|
|
63
77
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
78
|
+
K as NumberField,
|
|
79
|
+
K as default
|
|
66
80
|
};
|
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-DkNLd3Yj.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,63 @@
|
|
|
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
|
+
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -3,30 +3,31 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as R from "react-aria-components";
|
|
5
5
|
import d from "clsx";
|
|
6
|
-
import
|
|
7
|
-
import { P as E } from "./PropsContextProvider-
|
|
6
|
+
import "./propsContext-CauylOgH.js";
|
|
7
|
+
import { P as E } from "./PropsContextProvider-DkNLd3Yj.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { F as
|
|
11
|
-
import { C as
|
|
12
|
-
import { TunnelProvider as
|
|
13
|
-
import { s
|
|
14
|
-
import { d as
|
|
10
|
+
import { F as x } from "./FieldError-TYnVmG-o.js";
|
|
11
|
+
import { C as y } from "./ColumnLayout-FMONjI17.js";
|
|
12
|
+
import { TunnelProvider as F, TunnelExit as m } from "@mittwald/react-tunnel";
|
|
13
|
+
import { s } from "./FormField.module-DHK6nIcD.js";
|
|
14
|
+
import { d as I } from "./deepFindOfType-6pG0fH7S.js";
|
|
15
15
|
import { C as h } from "./ClearPropsContext-CeCMjUK9.js";
|
|
16
16
|
import "@tabler/icons-react";
|
|
17
|
-
import "./Icon-
|
|
18
|
-
import { I, a as
|
|
19
|
-
import { f as N } from "./flowComponent-
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
import "./Icon-CPAehMux.js";
|
|
18
|
+
import { I as b, a as k } from "./IconRadioOn-CTDczjLJ.js";
|
|
19
|
+
import { f as N } from "./flowComponent-mJ64-1gs.js";
|
|
20
|
+
import "dot-prop";
|
|
21
|
+
import { d as B } from "./dynamic-ClpUSmEt.js";
|
|
22
|
+
import { I as v } from "./IconCheck-C778cVIW.js";
|
|
23
|
+
const P = "flow--radio-group", C = {
|
|
24
|
+
radioGroup: P
|
|
25
|
+
}, D = "flow--radio-group--radio-button", T = "flow--radio-group--radio-button--content", $ = "flow--radio-group--radio-button--label", f = {
|
|
26
|
+
radioButton: D,
|
|
27
|
+
content: T,
|
|
28
|
+
label: $
|
|
29
|
+
}, O = N("RadioButton", (a) => {
|
|
30
|
+
const { children: t, className: r, ref: o, ...n } = a, l = d(f.radioButton, r), i = {
|
|
30
31
|
Text: {
|
|
31
32
|
className: f.label
|
|
32
33
|
},
|
|
@@ -34,33 +35,32 @@ const D = "flow--radio-group", C = {
|
|
|
34
35
|
className: f.content
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
|
-
return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(
|
|
38
|
-
}),
|
|
39
|
-
segmentedGroup:
|
|
40
|
-
segments:
|
|
41
|
-
segment:
|
|
42
|
-
checkmark:
|
|
43
|
-
},
|
|
44
|
-
const { children: t } = a, r = d(c.segmentedGroup,
|
|
45
|
-
...G(),
|
|
38
|
+
return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(J, { ...n, className: l, ref: o }, /* @__PURE__ */ e.createElement(E, { props: i }, t)));
|
|
39
|
+
}), L = "flow--radio-group--segmented-group", A = "flow--radio-group--segmented-group--segments", S = "flow--radio-group--segmented-group--segment", j = "flow--radio-group--segmented-group--checkmark", c = {
|
|
40
|
+
segmentedGroup: L,
|
|
41
|
+
segments: A,
|
|
42
|
+
segment: S,
|
|
43
|
+
checkmark: j
|
|
44
|
+
}, q = (a) => {
|
|
45
|
+
const { children: t } = a, r = d(c.segmentedGroup, s.formField), o = {
|
|
46
46
|
Radio: {
|
|
47
47
|
className: c.segment,
|
|
48
48
|
unstyled: !0,
|
|
49
|
-
children:
|
|
49
|
+
children: B((n) => /* @__PURE__ */ e.createElement(e.Fragment, null, n.children, /* @__PURE__ */ e.createElement(v, { className: c.checkmark })))
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
return /* @__PURE__ */ e.createElement("div", { className: r }, /* @__PURE__ */ e.createElement(E, { props:
|
|
52
|
+
return /* @__PURE__ */ e.createElement("div", { className: r }, /* @__PURE__ */ e.createElement(E, { props: o, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement("div", { className: c.segments }, t)));
|
|
53
53
|
}, me = N("RadioGroup", (a) => {
|
|
54
|
-
const { children: t, className: r, variant: o = "default", s: n, m:
|
|
54
|
+
const { children: t, className: r, variant: o = "default", s: n, m: l, l: i, ...p } = a, w = d(s.formField, r), G = {
|
|
55
55
|
Label: {
|
|
56
|
-
className:
|
|
56
|
+
className: s.label
|
|
57
57
|
},
|
|
58
58
|
FieldDescription: {
|
|
59
|
-
className:
|
|
59
|
+
className: s.fieldDescription,
|
|
60
60
|
tunnelId: "fieldDescription"
|
|
61
61
|
},
|
|
62
62
|
FieldError: {
|
|
63
|
-
className:
|
|
63
|
+
className: s.customFieldError,
|
|
64
64
|
tunnelId: "fieldError"
|
|
65
65
|
},
|
|
66
66
|
RadioButton: {
|
|
@@ -69,20 +69,20 @@ const D = "flow--radio-group", C = {
|
|
|
69
69
|
Radio: {
|
|
70
70
|
tunnelId: "radios"
|
|
71
71
|
}
|
|
72
|
-
}, u = !!
|
|
72
|
+
}, u = !!I(t, O);
|
|
73
73
|
return o === "segmented" && u && console.warn(
|
|
74
74
|
"<RadioButton/> is not supported in 'segmented' variant of <RadioGroup />"
|
|
75
|
-
), /* @__PURE__ */ e.createElement(R.RadioGroup, { ...p, className: w }, /* @__PURE__ */ e.createElement(
|
|
76
|
-
}),
|
|
77
|
-
radio:
|
|
78
|
-
icon:
|
|
79
|
-
},
|
|
80
|
-
const { children: t, className: r, unstyled: o = !1, ref: n, ...
|
|
81
|
-
return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(R.Radio, { ...
|
|
75
|
+
), /* @__PURE__ */ e.createElement(R.RadioGroup, { ...p, className: w }, /* @__PURE__ */ e.createElement(F, null, /* @__PURE__ */ e.createElement(E, { props: G }, t, o === "segmented" && /* @__PURE__ */ e.createElement(q, null, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && u && /* @__PURE__ */ e.createElement(y, { s: n, m: l, l: i, className: C.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && !u && /* @__PURE__ */ e.createElement("div", { className: C.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), /* @__PURE__ */ e.createElement(m, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(m, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(x, { className: s.fieldError }));
|
|
76
|
+
}), z = "flow--radio-group--radio", H = "flow--radio-group--radio--icon", g = {
|
|
77
|
+
radio: z,
|
|
78
|
+
icon: H
|
|
79
|
+
}, J = N("Radio", (a) => {
|
|
80
|
+
const { children: t, className: r, unstyled: o = !1, ref: n, ...l } = a, i = o ? r : d(g.radio, r);
|
|
81
|
+
return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(R.Radio, { ...l, className: i, ref: n }, ({ isSelected: p }) => /* @__PURE__ */ e.createElement(e.Fragment, null, p ? !o && /* @__PURE__ */ e.createElement(b, { className: g.icon }) : !o && /* @__PURE__ */ e.createElement(k, { className: g.icon }), t)));
|
|
82
82
|
});
|
|
83
83
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
J as Radio,
|
|
85
|
+
O as RadioButton,
|
|
86
86
|
me as RadioGroup,
|
|
87
87
|
me as default
|
|
88
88
|
};
|
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-DkNLd3Yj.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-DkNLd3Yj.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-TYnVmG-o.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-CPAehMux.js";
|
|
14
|
+
import { I as h } from "./IconChevronDown-BL8_H9Kf.js";
|
|
15
|
+
import { f as E } from "./flowComponent-mJ64-1gs.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-BrpddXMN.js";
|
|
6
|
+
import { T as i } from "./Text-BW9cNWaj.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-mJ64-1gs.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-CPAehMux.js";
|
|
6
|
+
import { I as c } from "./IconDanger-B7qTdARI.js";
|
|
7
|
+
import { I as e, a as i, b as m } from "./IconWarning-B5oeYHHs.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-CPAehMux.js";
|
|
8
|
+
import { I as p } from "./IconCheck-C778cVIW.js";
|
|
9
|
+
import { I as h } from "./IconClose-Cq9t3LQV.js";
|
|
10
|
+
import { L as w } from "./Label-B4BxkNHo.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-mJ64-1gs.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-mJ64-1gs.js";
|
|
8
|
+
import { T as C } from "./Text-BW9cNWaj.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-DkNLd3Yj.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-mJ64-1gs.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) => {
|
package/dist/Text.js
CHANGED
package/dist/TextArea.js
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as n from "react-aria-components";
|
|
5
|
-
import { T as p } from "./TextFieldBase-
|
|
6
|
-
import { C as
|
|
5
|
+
import { T as p } from "./TextFieldBase-BcCtRAw5.js";
|
|
6
|
+
import { C as i } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import
|
|
10
|
+
import "dot-prop";
|
|
11
|
+
import { f as c } from "./flowComponent-mJ64-1gs.js";
|
|
11
12
|
const f = "flow--text-area", x = {
|
|
12
13
|
textArea: f
|
|
13
|
-
},
|
|
14
|
+
}, y = c("TextArea", (t) => {
|
|
14
15
|
const { children: r, placeholder: o, rows: a = 5, ref: m, ...s } = t, l = /* @__PURE__ */ e.createElement(
|
|
15
16
|
n.TextArea,
|
|
16
17
|
{
|
|
@@ -20,9 +21,9 @@ const f = "flow--text-area", x = {
|
|
|
20
21
|
ref: m
|
|
21
22
|
}
|
|
22
23
|
);
|
|
23
|
-
return /* @__PURE__ */ e.createElement(
|
|
24
|
+
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(p, { ...s, input: l }, r));
|
|
24
25
|
});
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
y as TextArea,
|
|
28
|
+
y as default
|
|
28
29
|
};
|