@mittwald/flow-react-components 0.1.0-alpha.163 → 0.1.0-alpha.166
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/ContextMenu.js +2 -2
- package/dist/ContextMenu.module-BfwGh62L.js +10 -0
- package/dist/{ContextMenuTrigger-BQd2xsku.js → ContextMenuTrigger-D8BGdVFU.js} +28 -30
- package/dist/Label-DJKxRIAA.js +34 -0
- package/dist/Label.js +1 -1
- package/dist/List.js +132 -116
- package/dist/NumberField.js +41 -55
- package/dist/PropsContextProvider.js +9 -0
- package/dist/RadioGroup.js +42 -41
- package/dist/Section.js +19 -19
- package/dist/Switch.js +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/getContainerBreakpointSizeClassName-BrcFDcCY.js +6 -0
- package/dist/react-hook-form.js +80 -64
- package/dist/styles.css +1 -1
- package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +1 -0
- package/dist/types/components/List/components/Items/ListItem/ListItem.d.ts +2 -2
- package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
- package/dist/types/components/Tabs/components/Tab/context.d.ts +0 -1
- package/dist/types/components/propTypes/index.d.ts +2 -1
- package/dist/types/integrations/react-hook-form/components/ActionGroupWrapper/SubmitButtonStateProvider.d.ts +7 -0
- package/dist/types/integrations/react-hook-form/components/AutoFormResetEffect/AutoFormResetEffect.d.ts +7 -0
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +2 -1
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +2 -2
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts +2 -1
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +2 -2
- package/dist/types/lib/propsContext/useProps.d.ts +2 -2
- package/package.json +40 -36
- package/dist/Label-BlTqklNB.js +0 -32
package/dist/ContextMenu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { C as t } from "./ContextMenuTrigger-
|
|
4
|
-
import { a } from "./ContextMenuTrigger-
|
|
3
|
+
import { C as t } from "./ContextMenuTrigger-D8BGdVFU.js";
|
|
4
|
+
import { a } from "./ContextMenuTrigger-D8BGdVFU.js";
|
|
5
5
|
import { M as n } from "./MenuItem-u7V4XOL3.js";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import { s } from "./ContextMenu.module-BfwGh62L.js";
|
|
6
|
+
import { f as g } from "./flowComponent-TgbbWDzO.js";
|
|
6
7
|
import { P } from "./Popover-B1m8lc6F.js";
|
|
7
8
|
import "mobx";
|
|
8
9
|
import { u as E } from "./useOverlayController-D8N4X2rc.js";
|
|
@@ -14,39 +15,36 @@ import "remeda";
|
|
|
14
15
|
import { O as T } from "./OverlayContextProvider-DJzKzUwy.js";
|
|
15
16
|
import { A } from "./Action-DYTtbQCP.js";
|
|
16
17
|
import { O as h } from "./OverlayTrigger-Bdb65OEJ.js";
|
|
17
|
-
const
|
|
18
|
-
contextMenu: w,
|
|
19
|
-
popover: F
|
|
20
|
-
}, H = d("ContextMenu", (t) => {
|
|
18
|
+
const G = g("ContextMenu", (t) => {
|
|
21
19
|
const {
|
|
22
20
|
children: r,
|
|
23
21
|
onAction: n,
|
|
24
22
|
selectionMode: o,
|
|
25
|
-
selectedKeys:
|
|
26
|
-
defaultSelectedKeys:
|
|
23
|
+
selectedKeys: m,
|
|
24
|
+
defaultSelectedKeys: c,
|
|
27
25
|
disabledKeys: p,
|
|
28
|
-
onSelectionChange:
|
|
29
|
-
refProp:
|
|
26
|
+
onSelectionChange: C,
|
|
27
|
+
refProp: u,
|
|
30
28
|
controller: v,
|
|
31
|
-
...
|
|
32
|
-
} = t,
|
|
29
|
+
...f
|
|
30
|
+
} = t, x = E("ContextMenu", {
|
|
33
31
|
reuseControllerFromContext: !0
|
|
34
|
-
}), l = v ??
|
|
32
|
+
}), l = v ?? x, y = o === "navigation" ? "none" : o, a = o === "navigation" ? "navigation" : "control", M = {
|
|
35
33
|
MenuItem: {
|
|
36
|
-
selectionVariant:
|
|
34
|
+
selectionVariant: a
|
|
37
35
|
},
|
|
38
36
|
Section: {
|
|
39
37
|
MenuItem: {
|
|
40
|
-
selectionVariant:
|
|
38
|
+
selectionVariant: a
|
|
41
39
|
},
|
|
42
40
|
renderContextMenuSection: !0
|
|
43
41
|
}
|
|
44
|
-
},
|
|
42
|
+
}, d = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
|
|
45
43
|
return /* @__PURE__ */ e.createElement(O, null, /* @__PURE__ */ e.createElement(
|
|
46
44
|
P,
|
|
47
45
|
{
|
|
48
|
-
...
|
|
49
|
-
className:
|
|
46
|
+
...f,
|
|
47
|
+
className: s.popover,
|
|
50
48
|
controller: l
|
|
51
49
|
},
|
|
52
50
|
/* @__PURE__ */ e.createElement(
|
|
@@ -56,34 +54,34 @@ const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
|
|
|
56
54
|
controller: l
|
|
57
55
|
},
|
|
58
56
|
/* @__PURE__ */ e.createElement(
|
|
59
|
-
|
|
57
|
+
i.Menu,
|
|
60
58
|
{
|
|
61
|
-
className:
|
|
59
|
+
className: s.contextMenu,
|
|
62
60
|
onAction: n,
|
|
63
|
-
selectionMode:
|
|
64
|
-
selectedKeys:
|
|
65
|
-
defaultSelectedKeys:
|
|
61
|
+
selectionMode: y,
|
|
62
|
+
selectedKeys: m,
|
|
63
|
+
defaultSelectedKeys: c,
|
|
66
64
|
disabledKeys: p,
|
|
67
|
-
onSelectionChange:
|
|
68
|
-
ref:
|
|
65
|
+
onSelectionChange: C,
|
|
66
|
+
ref: u
|
|
69
67
|
},
|
|
70
|
-
/* @__PURE__ */ e.createElement(S, { props:
|
|
68
|
+
/* @__PURE__ */ e.createElement(S, { props: M }, /* @__PURE__ */ e.createElement(A, { closeOverlay: d }, r))
|
|
71
69
|
)
|
|
72
70
|
)
|
|
73
71
|
));
|
|
74
|
-
}),
|
|
72
|
+
}), H = (t) => {
|
|
75
73
|
const { children: r, ...n } = t;
|
|
76
74
|
return /* @__PURE__ */ e.createElement(
|
|
77
75
|
h,
|
|
78
76
|
{
|
|
79
77
|
overlayType: "ContextMenu",
|
|
80
78
|
...n,
|
|
81
|
-
component:
|
|
79
|
+
component: i.MenuTrigger
|
|
82
80
|
},
|
|
83
81
|
r
|
|
84
82
|
);
|
|
85
83
|
};
|
|
86
84
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
G as C,
|
|
86
|
+
H as a
|
|
89
87
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import l from "react";
|
|
4
|
+
import * as f from "react-aria-components";
|
|
5
|
+
import d from "clsx";
|
|
6
|
+
import { C } from "./ClearPropsContext-CUvsbMn8.js";
|
|
7
|
+
import "./propsContext-DzAKlmhS.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import "dot-prop";
|
|
11
|
+
import { useLocalizedStringFormatter as L } from "react-aria";
|
|
12
|
+
import { f as u } from "./flowComponent-TgbbWDzO.js";
|
|
13
|
+
const E = "flow--label", N = "flow--label--disabled", e = {
|
|
14
|
+
label: E,
|
|
15
|
+
disabled: N
|
|
16
|
+
}, w = { "de-DE": {
|
|
17
|
+
"label.optional": "(optional)"
|
|
18
|
+
}, "en-EN": {
|
|
19
|
+
"label.optional": "(optional)"
|
|
20
|
+
} }, A = u("Label", (t) => {
|
|
21
|
+
const {
|
|
22
|
+
children: a,
|
|
23
|
+
className: o,
|
|
24
|
+
optional: r,
|
|
25
|
+
isDisabled: s,
|
|
26
|
+
refProp: i,
|
|
27
|
+
unstyled: n = !1,
|
|
28
|
+
...m
|
|
29
|
+
} = t, p = L(w), c = n ? o : d(e.label, s && e.disabled, o), b = " " + p.format("label.optional");
|
|
30
|
+
return /* @__PURE__ */ l.createElement(C, null, /* @__PURE__ */ l.createElement(f.Label, { ...m, className: c, ref: i }, a, r && b));
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
A as L
|
|
34
|
+
};
|