@mittwald/flow-react-components 0.1.0-alpha.63 → 0.1.0-alpha.65
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-CeKzQsag.js → Action-DZzRGFBL.js} +1 -1
- package/dist/Action.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +12 -13
- package/dist/Button-CdGfSPx-.js +101 -0
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox-Bc-Yp2Li.js +24 -0
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxButton-D5G0rxZz.js +29 -0
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +26 -20
- package/dist/Content.js +7 -7
- package/dist/ContextMenu.js +2 -2
- package/dist/ContextMenuItem-k4nwztKS.js +67 -0
- package/dist/CopyButton.js +15 -16
- package/dist/FieldDescription.js +12 -12
- package/dist/FieldError-CBxCl2nS.js +22 -0
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +5 -5
- package/dist/Heading.js +15 -15
- package/dist/{Icon-DnhU6oCr.js → Icon-DVRBNZZe.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-VQzoZYpg.js → IconCheck-D9Y94psR.js} +1 -1
- package/dist/{IconCheckboxEmpty-BYBEifGn.js → IconCheckboxEmpty-BneZ_izo.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-DCWISQ9y.js → IconCheckboxIndeterminate-DZM-0gVy.js} +1 -1
- package/dist/{IconChevronDown-BmKMxrq1.js → IconChevronDown-D8WRADYa.js} +1 -1
- package/dist/{IconChevronRight-ngvPFPMg.js → IconChevronRight-D2iaxujY.js} +1 -1
- package/dist/{IconClose-BkmXvQ2z.js → IconClose-zpsdo5WH.js} +1 -1
- package/dist/{IconContextMenu-B7uKuktv.js → IconContextMenu-D58YJ4YL.js} +1 -1
- package/dist/{IconCopy-BmKbdWWX.js → IconCopy-Dg12Fbk9.js} +1 -1
- package/dist/{IconDanger-C0Tcw4tP.js → IconDanger-BKH4QbJ1.js} +1 -1
- package/dist/{IconPlus-DfL7-kUg.js → IconPlus-WchYGpT1.js} +1 -1
- package/dist/{IconRadioOn-VUVt3QQC.js → IconRadioOn-DNpq9Xk7.js} +1 -1
- package/dist/{IconSucceeded-CENvDJzH.js → IconSucceeded-d5GrQkmO.js} +1 -1
- package/dist/{IconWarning-43TmpPox.js → IconWarning-pPmXp5KC.js} +1 -1
- package/dist/Icons.js +14 -14
- package/dist/Image.js +7 -7
- package/dist/Initials.js +11 -11
- package/dist/InlineAlert.js +19 -19
- package/dist/Label-BFDBIwAZ.js +34 -0
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +10 -10
- package/dist/Link-kCrtSVrZ.js +51 -0
- package/dist/Link.js +1 -1
- package/dist/List.js +27 -29
- package/dist/NumberField.js +26 -26
- package/dist/ProgressBar.js +46 -0
- package/dist/RadioGroup.js +47 -44
- package/dist/Select.js +62 -39
- package/dist/StatusBadge.js +17 -17
- package/dist/StatusIcon-gxczp9bZ.js +37 -0
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +23 -17
- package/dist/Tabs.js +2 -2
- package/dist/Text-D7C_T7CE.js +38 -0
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +16 -14
- package/dist/TextField.js +19 -11
- package/dist/TextFieldBase-DuP4Ls0l.js +32 -0
- package/dist/flowComponent-CEo3pjEA.js +19 -0
- package/dist/nextjs.js +12 -0
- package/dist/react-hook-form.js +62 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +4 -3
- package/dist/types/components/CheckboxButton/CheckboxButton.d.ts +4 -3
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +4 -3
- package/dist/types/components/Content/Content.d.ts +2 -2
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/types/components/CopyButton/CopyButton.d.ts +1 -1
- package/dist/types/components/FieldDescription/FieldDescription.d.ts +1 -1
- package/dist/types/components/FieldError/FieldError.d.ts +1 -1
- package/dist/types/components/Header/Header.d.ts +2 -2
- package/dist/types/components/Heading/Heading.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +1 -1
- package/dist/types/components/Image/Image.d.ts +1 -1
- package/dist/types/components/Initials/Initials.d.ts +1 -1
- package/dist/types/components/InlineAlert/InlineAlert.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +1 -1
- package/dist/types/components/LayoutCard/LayoutCard.d.ts +2 -2
- package/dist/types/components/Link/Link.d.ts +1 -1
- package/dist/types/components/NumberField/NumberField.d.ts +4 -3
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +10 -0
- package/dist/types/components/ProgressBar/index.d.ts +4 -0
- package/dist/types/components/ProgressBar/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/ProgressBar/stories/Variants.stories.d.ts +10 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +4 -3
- package/dist/types/components/RadioGroup/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/RadioGroup/components/RadioButton/RadioButton.d.ts +4 -3
- package/dist/types/components/Section/stories/EdgeCases.stories.d.ts +1 -2
- package/dist/types/components/Select/Select.d.ts +5 -3
- package/dist/types/components/Select/components/Option/Option.d.ts +5 -3
- package/dist/types/components/Select/index.d.ts +0 -1
- package/dist/types/components/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/TextArea/TextArea.d.ts +4 -3
- package/dist/types/components/TextField/TextField.d.ts +4 -3
- package/dist/types/components/TextFieldBase/TextFieldBase.d.ts +2 -2
- package/dist/types/components/propTypes/index.d.ts +18 -1
- package/dist/types/integrations/nextjs/index.d.ts +2 -0
- package/dist/types/integrations/react-hook-form/components/Controller/Controller.d.ts +8 -0
- package/dist/types/integrations/react-hook-form/components/Controller/index.d.ts +4 -0
- package/dist/types/integrations/react-hook-form/components/Controller/stories/Default.stories.d.ts +7 -0
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts +8 -0
- package/dist/types/integrations/react-hook-form/components/Form/index.d.ts +4 -0
- package/dist/types/integrations/react-hook-form/components/context/formContext.d.ts +10 -0
- package/dist/types/integrations/react-hook-form/index.d.ts +2 -0
- package/dist/types/lib/childProps/ChildPropsContextProvider.d.ts +9 -0
- package/dist/types/lib/childProps/ChildPropsStore.d.ts +14 -0
- package/dist/types/lib/childProps/context.d.ts +5 -0
- package/dist/types/lib/childProps/index.d.ts +2 -0
- package/dist/types/lib/childProps/useSetChildProps.d.ts +3 -0
- package/dist/types/lib/componentFactory/flowComponent.d.ts +6 -4
- package/dist/types/lib/propsContext/propsContext.d.ts +10 -0
- package/dist/types/lib/types/props.d.ts +2 -2
- package/dist/{useProps-DqP5wneE.js → useProps-DoKnPAup.js} +38 -28
- package/package.json +28 -15
- package/dist/Button-CUr754ra.js +0 -99
- package/dist/Checkbox-CBAAtfxq.js +0 -24
- package/dist/CheckboxButton-BYp2HCfN.js +0 -27
- package/dist/ContextMenuItem-7xGNJkkK.js +0 -66
- package/dist/FieldError-D9ZaMqoL.js +0 -22
- package/dist/Label-BBWAOhU5.js +0 -27
- package/dist/Link-3bAuyVEg.js +0 -49
- package/dist/StatusIcon-D6re4qSI.js +0 -39
- package/dist/Text-2sThcKor.js +0 -37
- package/dist/TextFieldBase-Dtcmh0_x.js +0 -30
- package/dist/flowComponent-Dfn_Z9Yx.js +0 -19
- package/dist/nextjs/LinkProvider.js +0 -12
- /package/dist/types/{components/nextjs → integrations/nextjs/components}/Link/Link.d.ts +0 -0
- /package/dist/types/{components/nextjs → integrations/nextjs/components}/Link/index.d.ts +0 -0
- /package/dist/types/{components/nextjs → integrations/nextjs/components}/LinkProvider/LinkProvider.d.ts +0 -0
- /package/dist/types/{components/nextjs → integrations/nextjs/components}/LinkProvider/index.d.ts +0 -0
|
@@ -8,7 +8,7 @@ import "./propsContext-CauylOgH.js";
|
|
|
8
8
|
import { P as x } from "./PropsContextProvider-BcOGMJkn.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import { u as A } from "./useProps-
|
|
11
|
+
import { u as A } from "./useProps-DoKnPAup.js";
|
|
12
12
|
import { u as y } from "./useOverlayState-BnPe_CrX.js";
|
|
13
13
|
import { makeObservable as C, observable as r, action as l } from "mobx";
|
|
14
14
|
import { u as v } from "./useSelector-DpU7_HMO.js";
|
package/dist/Action.js
CHANGED
package/dist/Avatar.js
CHANGED
|
@@ -4,7 +4,7 @@ import i, { isValidElement as v } from "react";
|
|
|
4
4
|
import m from "clsx";
|
|
5
5
|
import { C as p } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
6
|
import { P as c } from "./PropsContextProvider-BcOGMJkn.js";
|
|
7
|
-
import { u as f } from "./useProps-
|
|
7
|
+
import { u as f } from "./useProps-DoKnPAup.js";
|
|
8
8
|
import { hash as w } from "object-code";
|
|
9
9
|
import { deepForEach as z } from "react-children-utilities";
|
|
10
10
|
const d = "flow--avatar", h = "flow--avatar--icon", u = "flow--avatar--initials", r = {
|
package/dist/Breadcrumb.js
CHANGED
|
@@ -4,33 +4,32 @@ import r from "react";
|
|
|
4
4
|
import * as s from "react-aria-components";
|
|
5
5
|
import a from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "
|
|
7
|
+
import "./Icon-DVRBNZZe.js";
|
|
8
|
+
import { I as u } from "./IconChevronRight-D2iaxujY.js";
|
|
8
9
|
import "./propsContext-CauylOgH.js";
|
|
10
|
+
import { P as d } from "./PropsContextProvider-BcOGMJkn.js";
|
|
9
11
|
import "@react-aria/utils";
|
|
10
12
|
import "remeda";
|
|
11
|
-
|
|
12
|
-
import { I as u } from "./IconChevronRight-ngvPFPMg.js";
|
|
13
|
-
import { P as d } from "./PropsContextProvider-BcOGMJkn.js";
|
|
14
|
-
const p = "flow--breadcrumb", f = "flow--breadcrumb--link", m = {
|
|
13
|
+
const p = "flow--breadcrumb", f = "flow--breadcrumb--link", c = {
|
|
15
14
|
breadcrumb: p,
|
|
16
15
|
link: f
|
|
17
|
-
}, N = "flow--breadcrumb--breadcrumb-item", I = "flow--breadcrumb--breadcrumb-item--icon",
|
|
16
|
+
}, N = "flow--breadcrumb--breadcrumb-item", I = "flow--breadcrumb--breadcrumb-item--icon", m = {
|
|
18
17
|
breadcrumbItem: N,
|
|
19
18
|
icon: I
|
|
20
19
|
}, h = (e) => {
|
|
21
|
-
const { children: t } = e, o = a(
|
|
22
|
-
return /* @__PURE__ */ r.createElement(s.Breadcrumb, { className: o }, t, /* @__PURE__ */ r.createElement(u, { size: "s", className:
|
|
23
|
-
},
|
|
24
|
-
const { children: t, className: o, ...n } = e, l = a(
|
|
20
|
+
const { children: t } = e, o = a(m.breadcrumbItem);
|
|
21
|
+
return /* @__PURE__ */ r.createElement(s.Breadcrumb, { className: o }, t, /* @__PURE__ */ r.createElement(u, { size: "s", className: m.icon }));
|
|
22
|
+
}, R = (e) => {
|
|
23
|
+
const { children: t, className: o, ...n } = e, l = a(c.breadcrumb, o), b = {
|
|
25
24
|
Link: {
|
|
26
25
|
unstyled: !0,
|
|
27
|
-
className:
|
|
26
|
+
className: c.link,
|
|
28
27
|
hoc: (i) => /* @__PURE__ */ r.createElement(h, null, i)
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
return /* @__PURE__ */ r.createElement(s.Breadcrumbs, { ...n, className: l }, /* @__PURE__ */ r.createElement(d, { props: b }, t));
|
|
32
31
|
};
|
|
33
32
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
R as Breadcrumb,
|
|
34
|
+
R as default
|
|
36
35
|
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import n from "react";
|
|
4
|
+
import * as p from "react-aria-components";
|
|
5
|
+
import x from "clsx";
|
|
6
|
+
import { C } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
|
+
import { P as I } from "./PropsContextProvider-BcOGMJkn.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "./propsContext-CauylOgH.js";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import "@tabler/icons-react";
|
|
12
|
+
import "./Icon-DVRBNZZe.js";
|
|
13
|
+
import { I as N, a as h, b as z } from "./IconSucceeded-d5GrQkmO.js";
|
|
14
|
+
import { W as d } from "./Wrap-DGT1h1o3.js";
|
|
15
|
+
import { T as B } from "./Text-D7C_T7CE.js";
|
|
16
|
+
import { f as A } from "./flowComponent-CEo3pjEA.js";
|
|
17
|
+
import { useLocalizedStringFormatter as D } from "react-aria";
|
|
18
|
+
const L = "flow--button", T = "flow--button--avatar", K = "flow--button--icon", U = "flow--button--text", W = "flow--button--content", $ = "flow--button--state-icon", R = "flow--button--is-succeeded", j = "flow--button--is-failed", k = "flow--button--is-pending", q = "flow--button--plain", G = "flow--button--primary", H = "flow--button--solid", J = "flow--button--accent", M = "flow--button--danger", O = "flow--button--secondary", Q = "flow--button--soft", e = {
|
|
19
|
+
button: L,
|
|
20
|
+
avatar: T,
|
|
21
|
+
icon: K,
|
|
22
|
+
text: U,
|
|
23
|
+
content: W,
|
|
24
|
+
stateIcon: $,
|
|
25
|
+
"size-s": "flow--button--size-s",
|
|
26
|
+
isSucceeded: R,
|
|
27
|
+
isFailed: j,
|
|
28
|
+
isPending: k,
|
|
29
|
+
plain: q,
|
|
30
|
+
primary: G,
|
|
31
|
+
solid: H,
|
|
32
|
+
accent: J,
|
|
33
|
+
danger: M,
|
|
34
|
+
secondary: O,
|
|
35
|
+
soft: Q
|
|
36
|
+
}, V = {
|
|
37
|
+
"de-DE": {
|
|
38
|
+
"button.isFailed": "Fehlgeschlagen",
|
|
39
|
+
"button.isPending": "Ausstehend",
|
|
40
|
+
"button.isSucceeded": "Erfolgreich"
|
|
41
|
+
},
|
|
42
|
+
"en-EN": {
|
|
43
|
+
"button.isFailed": "Failed",
|
|
44
|
+
"button.isPending": "Pending",
|
|
45
|
+
"button.isSucceeded": "Succeeded"
|
|
46
|
+
}
|
|
47
|
+
}, X = (t) => ((t.isPending || t.isSucceeded || t.isFailed) && (t = { ...t }, t.onPress = void 0, t.onPressStart = void 0, t.onPressEnd = void 0, t.onPressChange = void 0, t.onPressUp = void 0, t.onKeyDown = void 0, t.onKeyUp = void 0), t), mt = A("Button", (t) => {
|
|
48
|
+
t = X(t);
|
|
49
|
+
const {
|
|
50
|
+
variant: m = "primary",
|
|
51
|
+
style: u = "solid",
|
|
52
|
+
children: c,
|
|
53
|
+
className: f,
|
|
54
|
+
size: i = "m",
|
|
55
|
+
isPending: a,
|
|
56
|
+
isDisabled: b,
|
|
57
|
+
isSucceeded: o,
|
|
58
|
+
isFailed: s,
|
|
59
|
+
"aria-label": g,
|
|
60
|
+
ref: P,
|
|
61
|
+
...w
|
|
62
|
+
} = t, v = x(
|
|
63
|
+
e.button,
|
|
64
|
+
a && e.isPending,
|
|
65
|
+
o && e.isSucceeded,
|
|
66
|
+
s && e.isFailed,
|
|
67
|
+
e[`size-${i}`],
|
|
68
|
+
e[m],
|
|
69
|
+
e[u],
|
|
70
|
+
f
|
|
71
|
+
), S = {
|
|
72
|
+
Icon: {
|
|
73
|
+
className: e.icon,
|
|
74
|
+
"aria-hidden": !0,
|
|
75
|
+
size: i
|
|
76
|
+
},
|
|
77
|
+
Text: {
|
|
78
|
+
className: e.text
|
|
79
|
+
},
|
|
80
|
+
Avatar: {
|
|
81
|
+
className: e.avatar
|
|
82
|
+
}
|
|
83
|
+
}, F = D(V), y = o || s || a ? F.format(
|
|
84
|
+
`button.${o ? "isSucceeded" : s ? "isFailed" : "isPending"}`
|
|
85
|
+
) : void 0, r = o ? N : s ? h : a ? z : void 0, l = r && /* @__PURE__ */ n.createElement(r, { size: i, className: e.stateIcon }), E = typeof c == "string";
|
|
86
|
+
return /* @__PURE__ */ n.createElement(C, null, /* @__PURE__ */ n.createElement(
|
|
87
|
+
p.Button,
|
|
88
|
+
{
|
|
89
|
+
className: v,
|
|
90
|
+
isDisabled: b,
|
|
91
|
+
"aria-label": y ?? g,
|
|
92
|
+
ref: P,
|
|
93
|
+
...w
|
|
94
|
+
},
|
|
95
|
+
/* @__PURE__ */ n.createElement(d, { if: l }, /* @__PURE__ */ n.createElement("span", { className: e.content }, /* @__PURE__ */ n.createElement(d, { if: E }, /* @__PURE__ */ n.createElement(B, null, /* @__PURE__ */ n.createElement(I, { props: S }, c))))),
|
|
96
|
+
l
|
|
97
|
+
));
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
mt as B
|
|
101
|
+
};
|
package/dist/Button.js
CHANGED
package/dist/ButtonGroup.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import o from "react";
|
|
4
4
|
import { C as u } from "./ClearPropsContext-CeCMjUK9.js";
|
|
5
5
|
import { P as m } from "./PropsContextProvider-BcOGMJkn.js";
|
|
6
|
-
import { u as l } from "./useProps-
|
|
6
|
+
import { u as l } from "./useProps-DoKnPAup.js";
|
|
7
7
|
import { d } from "./dynamic-ClpUSmEt.js";
|
|
8
8
|
import i from "clsx";
|
|
9
9
|
const f = "flow--button-group", y = "flow--button-group--secondary", t = {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import p from "clsx";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import "./Icon-DVRBNZZe.js";
|
|
8
|
+
import { I as x, a as h } from "./IconCheckboxEmpty-BneZ_izo.js";
|
|
9
|
+
import { I as C } from "./IconCheckboxIndeterminate-DZM-0gVy.js";
|
|
10
|
+
import { C as f } from "./ClearPropsContext-CeCMjUK9.js";
|
|
11
|
+
import "./propsContext-CauylOgH.js";
|
|
12
|
+
import "@react-aria/utils";
|
|
13
|
+
import "remeda";
|
|
14
|
+
import { f as k } from "./flowComponent-CEo3pjEA.js";
|
|
15
|
+
const b = "flow--checkbox", E = "flow--checkbox--icon", o = {
|
|
16
|
+
checkbox: b,
|
|
17
|
+
icon: E
|
|
18
|
+
}, j = k("Checkbox", (c) => {
|
|
19
|
+
const { children: t, className: r, ref: m, ...a } = c, n = p(o.checkbox, r);
|
|
20
|
+
return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(i.Checkbox, { ...a, className: n, ref: m }, ({ isSelected: s, isIndeterminate: l }) => /* @__PURE__ */ e.createElement(e.Fragment, null, s ? /* @__PURE__ */ e.createElement(x, { className: o.icon }) : l ? /* @__PURE__ */ e.createElement(C, { className: o.icon }) : /* @__PURE__ */ e.createElement(h, { className: o.icon }), t)));
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
j as C
|
|
24
|
+
};
|
package/dist/Checkbox.js
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import t from "react";
|
|
4
|
+
import a from "clsx";
|
|
5
|
+
import { C as m } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
+
import { P as p } from "./PropsContextProvider-BcOGMJkn.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "./propsContext-CauylOgH.js";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import { C as b } from "./Checkbox-Bc-Yp2Li.js";
|
|
11
|
+
import { f as x } from "./flowComponent-CEo3pjEA.js";
|
|
12
|
+
const C = "flow--checkbox-button", f = "flow--checkbox-button--content", i = "flow--checkbox-button--label", o = {
|
|
13
|
+
checkboxButton: C,
|
|
14
|
+
content: f,
|
|
15
|
+
label: i
|
|
16
|
+
}, v = x("CheckboxButton", (e) => {
|
|
17
|
+
const { children: c, className: n, ...r } = e, s = a(o.checkboxButton, n), l = {
|
|
18
|
+
Text: {
|
|
19
|
+
className: o.label
|
|
20
|
+
},
|
|
21
|
+
Content: {
|
|
22
|
+
className: o.content
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ t.createElement(m, null, /* @__PURE__ */ t.createElement(b, { ...r, className: s }, /* @__PURE__ */ t.createElement(p, { props: l }, c)));
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
v as C
|
|
29
|
+
};
|
package/dist/CheckboxButton.js
CHANGED
package/dist/CheckboxGroup.js
CHANGED
|
@@ -2,37 +2,43 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as u from "react-aria-components";
|
|
5
|
-
import
|
|
5
|
+
import x from "clsx";
|
|
6
6
|
import "./propsContext-CauylOgH.js";
|
|
7
|
-
import { P as
|
|
7
|
+
import { P as b } from "./PropsContextProvider-BcOGMJkn.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 as
|
|
14
|
-
import { C
|
|
10
|
+
import { F as h } from "./FieldError-CBxCl2nS.js";
|
|
11
|
+
import { C as E } from "./CheckboxButton-D5G0rxZz.js";
|
|
12
|
+
import { TunnelProvider as k, TunnelExit as r } from "@mittwald/react-tunnel";
|
|
13
|
+
import { s as o } from "./FormField.module-DHK6nIcD.js";
|
|
14
|
+
import { C } from "./ColumnLayout-FMONjI17.js";
|
|
15
15
|
import { d as N } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
import { f as F } from "./flowComponent-CEo3pjEA.js";
|
|
17
|
+
const G = "flow--checkbox-group", s = {
|
|
18
|
+
checkboxGroup: G
|
|
19
|
+
}, j = F("CheckboxGroup", (l) => {
|
|
20
|
+
const { children: t, className: m, s: n, m: i, l: a, ref: y, ...p } = l, d = x(o.formField, m), f = {
|
|
20
21
|
Label: {
|
|
21
|
-
className:
|
|
22
|
-
tunnelId: "label"
|
|
22
|
+
className: o.label
|
|
23
23
|
},
|
|
24
24
|
FieldDescription: {
|
|
25
|
-
className:
|
|
25
|
+
className: o.fieldDescription,
|
|
26
26
|
tunnelId: "fieldDescription"
|
|
27
27
|
},
|
|
28
28
|
FieldError: {
|
|
29
|
-
className:
|
|
29
|
+
className: o.customFieldError,
|
|
30
30
|
tunnelId: "fieldError"
|
|
31
|
+
},
|
|
32
|
+
Checkbox: {
|
|
33
|
+
tunnelId: "checkboxes"
|
|
34
|
+
},
|
|
35
|
+
CheckboxButton: {
|
|
36
|
+
tunnelId: "checkboxes"
|
|
31
37
|
}
|
|
32
|
-
},
|
|
33
|
-
return /* @__PURE__ */ e.createElement(u.CheckboxGroup, { ...
|
|
34
|
-
};
|
|
38
|
+
}, c = !!N(t, E);
|
|
39
|
+
return /* @__PURE__ */ e.createElement(u.CheckboxGroup, { ...p, className: d }, /* @__PURE__ */ e.createElement(b, { props: f }, /* @__PURE__ */ e.createElement(k, null, t, c && /* @__PURE__ */ e.createElement(C, { s: n, m: i, l: a, className: s.checkboxGroup }, /* @__PURE__ */ e.createElement(r, { id: "checkboxes" })), !c && /* @__PURE__ */ e.createElement("div", { className: s.checkboxGroup }, /* @__PURE__ */ e.createElement(r, { id: "checkboxes" })), /* @__PURE__ */ e.createElement(r, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(r, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(h, { className: o.fieldError }));
|
|
40
|
+
});
|
|
35
41
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
j as CheckboxGroup,
|
|
43
|
+
j as default
|
|
38
44
|
};
|
package/dist/Content.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import { C as
|
|
4
|
+
import { C as p } from "./ClearPropsContext-CeCMjUK9.js";
|
|
5
5
|
import "./propsContext-CauylOgH.js";
|
|
6
6
|
import "@react-aria/utils";
|
|
7
7
|
import "remeda";
|
|
8
|
-
import { f as
|
|
9
|
-
const
|
|
10
|
-
const { children: o, elementType: r = "div",
|
|
11
|
-
return /* @__PURE__ */ t.createElement(
|
|
8
|
+
import { f as a } from "./flowComponent-CEo3pjEA.js";
|
|
9
|
+
const u = a("Content", (e) => {
|
|
10
|
+
const { children: o, elementType: r = "div", ref: n, ...m } = e, l = r;
|
|
11
|
+
return /* @__PURE__ */ t.createElement(p, null, /* @__PURE__ */ t.createElement(l, { ref: n, ...m }, o));
|
|
12
12
|
});
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
u as Content,
|
|
15
|
+
u as default
|
|
16
16
|
};
|
package/dist/ContextMenu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { C as t } from "./ContextMenuItem-
|
|
4
|
-
import { a as n } from "./ContextMenuItem-
|
|
3
|
+
import { C as t } from "./ContextMenuItem-k4nwztKS.js";
|
|
4
|
+
import { a as n } from "./ContextMenuItem-k4nwztKS.js";
|
|
5
5
|
import { MenuTrigger as x } from "react-aria-components";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import { f as x } from "./flowComponent-CEo3pjEA.js";
|
|
6
|
+
import { P as f } from "./Popover-MmxZkKu3.js";
|
|
7
|
+
import d from "clsx";
|
|
8
|
+
import "./propsContext-CauylOgH.js";
|
|
9
|
+
import { P as C } from "./PropsContextProvider-BcOGMJkn.js";
|
|
10
|
+
import "@react-aria/utils";
|
|
11
|
+
import "remeda";
|
|
12
|
+
import "@tabler/icons-react";
|
|
13
|
+
import "./Icon-DVRBNZZe.js";
|
|
14
|
+
import { I, a as M } from "./IconCheckboxEmpty-BneZ_izo.js";
|
|
15
|
+
import { I as E, a as h } from "./IconRadioOn-DNpq9Xk7.js";
|
|
16
|
+
import { T as a } from "./Text-D7C_T7CE.js";
|
|
17
|
+
import { d as y } from "./deepFindOfType-6pG0fH7S.js";
|
|
18
|
+
import { W as N } from "./Wrap-DGT1h1o3.js";
|
|
19
|
+
const w = "flow--context-menu", P = {
|
|
20
|
+
contextMenu: w
|
|
21
|
+
}, J = x("ContextMenu", (n) => {
|
|
22
|
+
const {
|
|
23
|
+
children: t,
|
|
24
|
+
onAction: o,
|
|
25
|
+
selectionMode: c,
|
|
26
|
+
selectedKeys: s,
|
|
27
|
+
defaultSelectedKeys: m,
|
|
28
|
+
onSelectionChange: r,
|
|
29
|
+
ref: p,
|
|
30
|
+
...u
|
|
31
|
+
} = n;
|
|
32
|
+
return /* @__PURE__ */ e.createElement(f, { ...u }, /* @__PURE__ */ e.createElement(
|
|
33
|
+
i.Menu,
|
|
34
|
+
{
|
|
35
|
+
className: P.contextMenu,
|
|
36
|
+
onAction: o,
|
|
37
|
+
selectionMode: c,
|
|
38
|
+
selectedKeys: s,
|
|
39
|
+
defaultSelectedKeys: m,
|
|
40
|
+
onSelectionChange: r,
|
|
41
|
+
ref: p
|
|
42
|
+
},
|
|
43
|
+
t
|
|
44
|
+
));
|
|
45
|
+
}), T = "flow--context-menu--context-menu-item", g = "flow--context-menu--context-menu-item--icon", k = "flow--context-menu--context-menu-item--text", l = {
|
|
46
|
+
contextMenuItem: T,
|
|
47
|
+
icon: g,
|
|
48
|
+
text: k
|
|
49
|
+
}, O = (n, t) => !!y(n, t), R = (n) => {
|
|
50
|
+
const { selectionMode: t, isSelected: o, children: c } = n, s = {
|
|
51
|
+
Icon: {
|
|
52
|
+
className: l.icon
|
|
53
|
+
},
|
|
54
|
+
Text: {
|
|
55
|
+
className: l.text
|
|
56
|
+
}
|
|
57
|
+
}, m = t === "none" ? null : t === "single" && o ? /* @__PURE__ */ e.createElement(E, null) : t === "single" && !o ? /* @__PURE__ */ e.createElement(h, null) : t === "multiple" && o ? /* @__PURE__ */ e.createElement(I, null) : /* @__PURE__ */ e.createElement(M, null), r = O(c, a);
|
|
58
|
+
return /* @__PURE__ */ e.createElement(C, { props: s }, m, /* @__PURE__ */ e.createElement(N, { if: !r }, /* @__PURE__ */ e.createElement(a, null, c)));
|
|
59
|
+
}, L = (n) => {
|
|
60
|
+
const { children: t, className: o, ...c } = n, s = d(l.contextMenuItem, o);
|
|
61
|
+
return /* @__PURE__ */ e.createElement(i.MenuItem, { ...c, className: s }, (m) => /* @__PURE__ */ e.createElement(R, { ...m }, t));
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
J as C,
|
|
65
|
+
L as a,
|
|
66
|
+
O as d
|
|
67
|
+
};
|
package/dist/CopyButton.js
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
|
-
import
|
|
5
|
-
import { B as
|
|
4
|
+
import a from "copy-to-clipboard";
|
|
5
|
+
import { B as c } from "./Button-CdGfSPx-.js";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
7
|
+
import "./Icon-DVRBNZZe.js";
|
|
8
|
+
import { I as i } from "./IconCopy-Dg12Fbk9.js";
|
|
9
|
+
import { useLocalizedStringFormatter as l } from "react-aria";
|
|
10
|
+
import { a as s, T as f } from "./TooltipTrigger-TslkLN5s.js";
|
|
11
|
+
import { onlyText as u } from "react-children-utilities";
|
|
12
|
+
import { C as y } from "./ClearPropsContext-CeCMjUK9.js";
|
|
10
13
|
import "./propsContext-CauylOgH.js";
|
|
11
14
|
import "@react-aria/utils";
|
|
12
15
|
import "remeda";
|
|
13
|
-
import { f as
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
import { a as u, T as f } from "./TooltipTrigger-TslkLN5s.js";
|
|
17
|
-
import { onlyText as y } from "react-children-utilities";
|
|
18
|
-
import { A as C } from "./Action-CeKzQsag.js";
|
|
19
|
-
const E = {
|
|
16
|
+
import { f as C } from "./flowComponent-CEo3pjEA.js";
|
|
17
|
+
import { A as E } from "./Action-DZzRGFBL.js";
|
|
18
|
+
const B = {
|
|
20
19
|
"de-DE": {
|
|
21
20
|
"copyButton.copy": "Kopieren"
|
|
22
21
|
},
|
|
23
22
|
"en-EN": {
|
|
24
23
|
"copyButton.copy": "Copy"
|
|
25
24
|
}
|
|
26
|
-
}, R =
|
|
27
|
-
const { text: e,
|
|
28
|
-
|
|
25
|
+
}, R = C("CopyButton", (r) => {
|
|
26
|
+
const { text: e, ref: m, ...n } = r, t = l(B).format("copyButton.copy"), p = () => {
|
|
27
|
+
a(u(e));
|
|
29
28
|
};
|
|
30
|
-
return /* @__PURE__ */ o.createElement(
|
|
29
|
+
return /* @__PURE__ */ o.createElement(y, null, /* @__PURE__ */ o.createElement(s, null, /* @__PURE__ */ o.createElement(E, { action: p, feedback: !0 }, /* @__PURE__ */ o.createElement(c, { "aria-label": t, ...n, ref: m }, /* @__PURE__ */ o.createElement(i, null))), /* @__PURE__ */ o.createElement(f, null, t)));
|
|
31
30
|
});
|
|
32
31
|
export {
|
|
33
32
|
R as CopyButton,
|
package/dist/FieldDescription.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
3
|
+
import e from "react";
|
|
4
|
+
import n from "clsx";
|
|
5
|
+
import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
6
|
import "./propsContext-CauylOgH.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
import { T as
|
|
10
|
-
import { f as
|
|
11
|
-
const
|
|
12
|
-
fieldDescription:
|
|
13
|
-
},
|
|
14
|
-
const { children: o, className: r,
|
|
15
|
-
return /* @__PURE__ */
|
|
9
|
+
import { T as m } from "./Text-D7C_T7CE.js";
|
|
10
|
+
import { f as p } from "./flowComponent-CEo3pjEA.js";
|
|
11
|
+
const a = "flow--field-description", f = {
|
|
12
|
+
fieldDescription: a
|
|
13
|
+
}, F = p("FieldDescription", (t) => {
|
|
14
|
+
const { children: o, className: r, ref: i, ...s } = t, l = n(f.fieldDescription, r);
|
|
15
|
+
return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement(m, { slot: "description", ...s, className: l, ref: i }, o));
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
F as FieldDescription,
|
|
19
|
+
F as default
|
|
20
20
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import r from "react";
|
|
4
|
+
import * as a from "react-aria-components";
|
|
5
|
+
import i from "clsx";
|
|
6
|
+
import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
|
+
import "./propsContext-CauylOgH.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import "@tabler/icons-react";
|
|
11
|
+
import "./Icon-DVRBNZZe.js";
|
|
12
|
+
import { I as p } from "./IconDanger-BKH4QbJ1.js";
|
|
13
|
+
import { f } from "./flowComponent-CEo3pjEA.js";
|
|
14
|
+
const E = "flow--field-error", d = {
|
|
15
|
+
fieldError: E
|
|
16
|
+
}, y = f("FieldError", (o) => {
|
|
17
|
+
const { children: e, className: t, ref: l, ...m } = o, s = i(d.fieldError, t);
|
|
18
|
+
return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(a.FieldError, { ...m, className: s, ref: l }, ({ validationErrors: n }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(p, { size: "s" }), /* @__PURE__ */ r.createElement("span", null, e || n.join(" ")))));
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
y as F
|
|
22
|
+
};
|
package/dist/FieldError.js
CHANGED
package/dist/Header.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import { f as
|
|
5
|
-
const s =
|
|
6
|
-
const { children: t,
|
|
7
|
-
return /* @__PURE__ */
|
|
3
|
+
import m from "react";
|
|
4
|
+
import { f as c } from "./flowComponent-CEo3pjEA.js";
|
|
5
|
+
const s = c("Header", (e) => {
|
|
6
|
+
const { children: t, ref: r, elementType: o = "header", ...n } = e, a = o;
|
|
7
|
+
return /* @__PURE__ */ m.createElement(a, { ...n, ref: r }, t);
|
|
8
8
|
});
|
|
9
9
|
export {
|
|
10
10
|
s as Header,
|
package/dist/Heading.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
6
|
-
import { P as
|
|
3
|
+
import e from "react";
|
|
4
|
+
import l from "clsx";
|
|
5
|
+
import { C as p } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
+
import { P as d } from "./PropsContextProvider-BcOGMJkn.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "./propsContext-CauylOgH.js";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { f
|
|
11
|
-
import * as
|
|
12
|
-
const
|
|
13
|
-
heading:
|
|
14
|
-
icon:
|
|
15
|
-
},
|
|
16
|
-
const { children: r, className: n, level: a = 2,
|
|
10
|
+
import { f } from "./flowComponent-CEo3pjEA.js";
|
|
11
|
+
import * as g from "react-aria-components";
|
|
12
|
+
const h = "flow--heading", C = "flow--heading--icon", o = {
|
|
13
|
+
heading: h,
|
|
14
|
+
icon: C
|
|
15
|
+
}, y = f("Heading", (t) => {
|
|
16
|
+
const { children: r, className: n, level: a = 2, ref: s, ...i } = t, m = l(o.heading, n), c = {
|
|
17
17
|
Icon: {
|
|
18
18
|
"aria-hidden": !0,
|
|
19
19
|
size: "s",
|
|
20
|
-
className:
|
|
20
|
+
className: o.icon
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(g.Heading, { level: a, className: m, ...i, ref: s }, /* @__PURE__ */ e.createElement(d, { props: c }, r)));
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
y as Heading,
|
|
27
|
+
y as default
|
|
28
28
|
};
|
|
@@ -7,7 +7,7 @@ import { C as w } from "./ClearPropsContext-CeCMjUK9.js";
|
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { f as z } from "./flowComponent-
|
|
10
|
+
import { f as z } from "./flowComponent-CEo3pjEA.js";
|
|
11
11
|
const b = "flow--icon", c = {
|
|
12
12
|
icon: b,
|
|
13
13
|
"size-m": "flow--icon--size-m",
|