@kommo-crm/crm-react-ui-kit 1.1.1-beta.0 → 1.1.1-beta.1
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/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +75 -72
- package/dist/components/ContextMenu/ContextMenu.props.d.ts +4 -0
- package/dist/components/ContextMenu/ContextMenu.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.types.d.ts +4 -0
- package/dist/components/ContextMenu/ContextMenu.types.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +1 -1
- package/dist/components/ContextMenu/components/Content/Content.js +1 -1
- package/dist/components/ContextMenu/components/Content/index.js +1 -1
- package/dist/components/ContextMenu/components/Item/Item.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Item/Item.js +64 -56
- package/dist/components/ContextMenu/components/Item/Item.props.d.ts +8 -2
- package/dist/components/ContextMenu/components/Item/Item.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.js +18 -16
- package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts +4 -0
- package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +56 -53
- package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +1 -1
- package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +1 -1
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +53 -50
- package/dist/components/ContextMenu/components/Trigger/Trigger.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Trigger/Trigger.js +24 -24
- package/dist/components/ContextMenu/hooks/index.js +1 -1
- package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.d.ts +1 -0
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +56 -46
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.d.ts +4 -3
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.js +55 -87
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.d.ts +1 -0
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.js +57 -54
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/useContentPositioning-27D32n5u.mjs +185 -0
- package/package.json +1 -1
- package/dist/useContentPositioning-BIVWgixU.mjs +0 -174
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAqB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKzE,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAqB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKzE,eAAO,MAAM,WAAW,EA8DnB,eAAe,CAAC"}
|
|
@@ -1,104 +1,107 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useImperativeHandle as y } from "react";
|
|
3
3
|
import { R as v } from "../../index-BA3njR2k.mjs";
|
|
4
4
|
import { useContextMenu as x } from "./hooks/useContextMenu/useContextMenu.js";
|
|
5
5
|
import "./providers/LevelProvider/LevelProvider.js";
|
|
6
|
-
import { C as D } from "../../useContentPositioning-
|
|
6
|
+
import { C as D } from "../../useContentPositioning-27D32n5u.mjs";
|
|
7
7
|
import "./components/Content/Content.utils.js";
|
|
8
|
-
import { ContextMenuProvider as
|
|
8
|
+
import { ContextMenuProvider as O, DISPLAY_NAME as T } from "./ContextMenu.context.js";
|
|
9
9
|
import { Trigger as L } from "./components/Trigger/Trigger.js";
|
|
10
|
-
import { Portal as
|
|
11
|
-
import { Sub as
|
|
12
|
-
import { SubTrigger as
|
|
13
|
-
import { SubContent as
|
|
14
|
-
import { Arrow as
|
|
15
|
-
import { Item as
|
|
16
|
-
import { ItemRightSlot as
|
|
17
|
-
import { Group as
|
|
18
|
-
import { Label as
|
|
19
|
-
import { CheckboxItem as
|
|
20
|
-
import { ItemIndicator as
|
|
21
|
-
import { RadioGroup as
|
|
22
|
-
import { RadioItem as
|
|
23
|
-
import { Separator as
|
|
24
|
-
import { ItemIcon as
|
|
25
|
-
import { SubRoot as
|
|
26
|
-
const F = 200, J = 150, o =
|
|
27
|
-
({ children:
|
|
10
|
+
import { Portal as E } from "./components/Portal/Portal.js";
|
|
11
|
+
import { Sub as N } from "./components/Sub/Sub.js";
|
|
12
|
+
import { SubTrigger as w } from "./components/SubTrigger/SubTrigger.js";
|
|
13
|
+
import { SubContent as G } from "./components/SubContent/SubContent.js";
|
|
14
|
+
import { Arrow as H } from "./components/Arrow/Arrow.js";
|
|
15
|
+
import { Item as P } from "./components/Item/Item.js";
|
|
16
|
+
import { ItemRightSlot as _ } from "./components/ItemRightSlot/ItemRightSlot.js";
|
|
17
|
+
import { Group as k } from "./components/Group/Group.js";
|
|
18
|
+
import { Label as Y } from "./components/Label/Label.js";
|
|
19
|
+
import { CheckboxItem as j } from "./components/CheckboxItem/CheckboxItem.js";
|
|
20
|
+
import { ItemIndicator as B } from "./components/ItemIndicator/ItemIndicator.js";
|
|
21
|
+
import { RadioGroup as K } from "./components/RadioGroup/RadioGroup.js";
|
|
22
|
+
import { RadioItem as U } from "./components/RadioItem/RadioItem.js";
|
|
23
|
+
import { Separator as V } from "./components/Separator/Separator.js";
|
|
24
|
+
import { ItemIcon as q } from "./components/ItemIcon/ItemIcon.js";
|
|
25
|
+
import { SubRoot as z } from "./components/SubRoot/SubRoot.js";
|
|
26
|
+
const F = 200, J = 150, o = M(
|
|
27
|
+
({ children: i, mode: n, onOpen: a, defaultOpen: p, ...f }, u) => {
|
|
28
28
|
const {
|
|
29
|
-
mode:
|
|
30
|
-
open:
|
|
31
|
-
onOpenChange:
|
|
32
|
-
triggerRef:
|
|
33
|
-
contentRef:
|
|
34
|
-
inheritedArrowColor:
|
|
35
|
-
animatedOpen:
|
|
29
|
+
mode: I,
|
|
30
|
+
open: l,
|
|
31
|
+
onOpenChange: d,
|
|
32
|
+
triggerRef: s,
|
|
33
|
+
contentRef: C,
|
|
34
|
+
inheritedArrowColor: R,
|
|
35
|
+
animatedOpen: b,
|
|
36
36
|
animationDuration: S,
|
|
37
|
-
hoverCloseDelay:
|
|
38
|
-
temporaryHoverClose:
|
|
37
|
+
hoverCloseDelay: c,
|
|
38
|
+
temporaryHoverClose: g,
|
|
39
39
|
closeMenuImmediately: r,
|
|
40
|
-
onMouseEnter:
|
|
41
|
-
onMouseLeave:
|
|
42
|
-
enableTemporaryHoverClose: t
|
|
40
|
+
onMouseEnter: h,
|
|
41
|
+
onMouseLeave: A,
|
|
42
|
+
enableTemporaryHoverClose: t,
|
|
43
|
+
onOpenByKeyboard: e
|
|
43
44
|
} = x({
|
|
44
|
-
mode:
|
|
45
|
-
defaultOpen:
|
|
46
|
-
onOpen:
|
|
45
|
+
mode: n,
|
|
46
|
+
defaultOpen: p,
|
|
47
|
+
onOpen: a,
|
|
47
48
|
animationDuration: J,
|
|
48
49
|
hoverCloseDelay: F
|
|
49
50
|
});
|
|
50
|
-
return
|
|
51
|
+
return y(u, () => ({
|
|
51
52
|
closeMenuImmediately: r,
|
|
52
|
-
enableTemporaryHoverClose: t
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
enableTemporaryHoverClose: t,
|
|
54
|
+
onOpenByKeyboard: e
|
|
55
|
+
})), /* @__PURE__ */ m(
|
|
56
|
+
O,
|
|
55
57
|
{
|
|
56
|
-
mode:
|
|
57
|
-
triggerRef:
|
|
58
|
-
contentRef:
|
|
59
|
-
inheritedArrowColor:
|
|
60
|
-
animatedOpen:
|
|
58
|
+
mode: I,
|
|
59
|
+
triggerRef: s,
|
|
60
|
+
contentRef: C,
|
|
61
|
+
inheritedArrowColor: R,
|
|
62
|
+
animatedOpen: b,
|
|
61
63
|
animationDuration: S,
|
|
62
|
-
hoverCloseDelay:
|
|
63
|
-
temporaryHoverClose:
|
|
64
|
+
hoverCloseDelay: c,
|
|
65
|
+
temporaryHoverClose: g,
|
|
64
66
|
closeMenuImmediately: r,
|
|
65
|
-
onMouseEnter:
|
|
66
|
-
onMouseLeave:
|
|
67
|
+
onMouseEnter: h,
|
|
68
|
+
onMouseLeave: A,
|
|
67
69
|
enableTemporaryHoverClose: t,
|
|
68
|
-
|
|
70
|
+
onOpenByKeyboard: e,
|
|
71
|
+
children: /* @__PURE__ */ m(
|
|
69
72
|
v,
|
|
70
73
|
{
|
|
71
|
-
open:
|
|
72
|
-
onOpenChange:
|
|
74
|
+
open: l,
|
|
75
|
+
onOpenChange: d,
|
|
73
76
|
modal: !1,
|
|
74
|
-
...
|
|
75
|
-
children:
|
|
77
|
+
...f,
|
|
78
|
+
children: i
|
|
76
79
|
}
|
|
77
80
|
)
|
|
78
81
|
}
|
|
79
82
|
);
|
|
80
83
|
}
|
|
81
84
|
);
|
|
82
|
-
o.displayName =
|
|
85
|
+
o.displayName = T;
|
|
83
86
|
o.Root = o;
|
|
84
|
-
o.SubRoot =
|
|
87
|
+
o.SubRoot = z;
|
|
85
88
|
o.Trigger = L;
|
|
86
89
|
o.Content = D;
|
|
87
|
-
o.Portal =
|
|
88
|
-
o.Sub =
|
|
89
|
-
o.SubTrigger =
|
|
90
|
-
o.SubContent =
|
|
91
|
-
o.Arrow =
|
|
92
|
-
o.Item =
|
|
93
|
-
o.ItemRightSlot =
|
|
94
|
-
o.Group =
|
|
95
|
-
o.Label =
|
|
96
|
-
o.CheckboxItem =
|
|
97
|
-
o.RadioGroup =
|
|
98
|
-
o.RadioItem =
|
|
99
|
-
o.ItemIndicator =
|
|
100
|
-
o.Separator =
|
|
101
|
-
o.ItemIcon =
|
|
90
|
+
o.Portal = E;
|
|
91
|
+
o.Sub = N;
|
|
92
|
+
o.SubTrigger = w;
|
|
93
|
+
o.SubContent = G;
|
|
94
|
+
o.Arrow = H;
|
|
95
|
+
o.Item = P;
|
|
96
|
+
o.ItemRightSlot = _;
|
|
97
|
+
o.Group = k;
|
|
98
|
+
o.Label = Y;
|
|
99
|
+
o.CheckboxItem = j;
|
|
100
|
+
o.RadioGroup = K;
|
|
101
|
+
o.RadioItem = U;
|
|
102
|
+
o.ItemIndicator = B;
|
|
103
|
+
o.Separator = V;
|
|
104
|
+
o.ItemIcon = q;
|
|
102
105
|
export {
|
|
103
106
|
o as ContextMenu
|
|
104
107
|
};
|
|
@@ -101,5 +101,9 @@ export interface ContextMenuContextProps {
|
|
|
101
101
|
* This prop is only used for `SubRoot` (submenu) components.
|
|
102
102
|
*/
|
|
103
103
|
triggerId?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The callback function to be called when the menu is opened by keyboard.
|
|
106
|
+
*/
|
|
107
|
+
onOpenByKeyboard: (value: boolean) => void;
|
|
104
108
|
}
|
|
105
109
|
//# sourceMappingURL=ContextMenu.props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.props.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,0BAA0B,EAC1B,cAAc,GAAG,OAAO,CACzB,GAAG;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC;;;;;OAKG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC;;;OAGG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,oBAAoB,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextMenu.props.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,0BAA0B,EAC1B,cAAc,GAAG,OAAO,CACzB,GAAG;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC;;;;;OAKG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC;;;OAGG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,oBAAoB,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C"}
|
|
@@ -32,6 +32,10 @@ export interface ContextMenuHandle {
|
|
|
32
32
|
* Enables the temporary hover close.
|
|
33
33
|
*/
|
|
34
34
|
enableTemporaryHoverClose: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* The callback function to be called when the menu is opened by keyboard.
|
|
37
|
+
*/
|
|
38
|
+
onOpenByKeyboard: (value: boolean) => void;
|
|
35
39
|
}
|
|
36
40
|
export type ContextMenuComponentType = ForwardRefExoticComponent<ContextMenuRootProps & RefAttributes<ContextMenuHandle>>;
|
|
37
41
|
export interface ContextMenuType extends ContextMenuComponentType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.types.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,aA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|
import { useContextMenuContext as y } from "../../ContextMenu.context.js";
|
|
7
7
|
import { hasItemIcon as L } from "../../utils/hasItemIcon/hasItemIcon.js";
|
|
8
|
-
import "../../../../useContentPositioning-
|
|
8
|
+
import "../../../../useContentPositioning-27D32n5u.mjs";
|
|
9
9
|
import "../Content/Content.utils.js";
|
|
10
10
|
import { useContextMenuItemFocus as A } from "../../hooks/useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
11
11
|
import '../../../../assets/CheckboxItem.css';const E = "_checkbox_item_16brq_1", F = {
|
|
@@ -7,7 +7,7 @@ import "../../../../lib/utils.js";
|
|
|
7
7
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
8
8
|
import "../../ContextMenu.context.js";
|
|
9
9
|
import "../../ContextMenu.enums.js";
|
|
10
|
-
import { C as b } from "../../../../useContentPositioning-
|
|
10
|
+
import { C as b } from "../../../../useContentPositioning-27D32n5u.mjs";
|
|
11
11
|
import "./Content.enums.js";
|
|
12
12
|
import "./Content.utils.js";
|
|
13
13
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e } from "../../../../useContentPositioning-
|
|
1
|
+
import { C as e } from "../../../../useContentPositioning-27D32n5u.mjs";
|
|
2
2
|
import { Direction as i } from "./Content.enums.js";
|
|
3
3
|
import { directionToSide as f } from "./Content.utils.js";
|
|
4
4
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAcf,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAQnE,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAcf,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAQnE,eAAO,MAAM,IAAI,wKAoHf,CAAC"}
|
|
@@ -1,87 +1,95 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { I as
|
|
4
|
-
import { c as
|
|
5
|
-
import { mergeRefs as
|
|
6
|
-
import { useLevelContext as
|
|
7
|
-
import { useContextMenuContext as
|
|
8
|
-
import { hasItemIcon as
|
|
9
|
-
import "../../../../useContentPositioning-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as K, useMemo as f, useId as O, useState as I, useRef as P, useEffect as j } from "react";
|
|
3
|
+
import { I as q } from "../../../../index-BA3njR2k.mjs";
|
|
4
|
+
import { c as g } from "../../../../index-L8X2o7IH.mjs";
|
|
5
|
+
import { mergeRefs as W } from "../../../../lib/utils.js";
|
|
6
|
+
import { useLevelContext as Y } from "../../providers/LevelProvider/LevelProvider.js";
|
|
7
|
+
import { useContextMenuContext as z } from "../../ContextMenu.context.js";
|
|
8
|
+
import { hasItemIcon as b } from "../../utils/hasItemIcon/hasItemIcon.js";
|
|
9
|
+
import "../../../../useContentPositioning-27D32n5u.mjs";
|
|
10
10
|
import "../Content/Content.utils.js";
|
|
11
|
-
import { useContextMenuItemFocus as
|
|
12
|
-
import { ContextMenuItemProvider as
|
|
13
|
-
import '../../../../assets/Item2.css';const
|
|
14
|
-
item:
|
|
15
|
-
}, s = "ContextMenu.Item",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
import { useContextMenuItemFocus as G } from "../../hooks/useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
12
|
+
import { ContextMenuItemProvider as J } from "./Item.context.js";
|
|
13
|
+
import '../../../../assets/Item2.css';const Q = "_item_128tk_1", p = {
|
|
14
|
+
item: Q
|
|
15
|
+
}, s = "ContextMenu.Item", T = K((t, m) => {
|
|
16
|
+
const { hasItemWithIcon: u } = Y(s);
|
|
17
|
+
if ("isSelectable" in t && t.isSelectable === !1) {
|
|
18
|
+
const {
|
|
19
|
+
className: e,
|
|
20
|
+
children: r,
|
|
21
|
+
isSelectable: E,
|
|
22
|
+
hasIconCheckFn: L = b,
|
|
23
|
+
...B
|
|
24
|
+
} = t, H = f(() => L(r), [r]);
|
|
25
|
+
return /* @__PURE__ */ c(
|
|
19
26
|
"div",
|
|
20
27
|
{
|
|
21
28
|
ref: m,
|
|
22
|
-
className:
|
|
23
|
-
"data-not-selectable":
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
className: g(p.item, e),
|
|
30
|
+
"data-not-selectable": !E,
|
|
31
|
+
"data-no-icon-align": H || !u ? "" : void 0,
|
|
32
|
+
...B,
|
|
33
|
+
children: r
|
|
26
34
|
}
|
|
27
35
|
);
|
|
28
36
|
}
|
|
29
37
|
const {
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
32
|
-
isDisabled:
|
|
33
|
-
isDanger:
|
|
34
|
-
hasIconCheckFn:
|
|
35
|
-
onSelect:
|
|
36
|
-
...
|
|
37
|
-
} = t,
|
|
38
|
+
className: M,
|
|
39
|
+
children: a,
|
|
40
|
+
isDisabled: l,
|
|
41
|
+
isDanger: x,
|
|
42
|
+
hasIconCheckFn: C = b,
|
|
43
|
+
onSelect: i,
|
|
44
|
+
...S
|
|
45
|
+
} = t, v = O(), [d, h] = I(!1), [o, N] = I(!1), n = P(null), y = f(() => C(a), [a]), { closeMenuImmediately: k } = z(s), { dataHighlighted: D, onFocus: F, onMouseEnter: R, onBlur: w, onMouseLeave: _ } = G({
|
|
38
46
|
displayName: s,
|
|
39
|
-
id:
|
|
40
|
-
isDisabled:
|
|
47
|
+
id: v,
|
|
48
|
+
isDisabled: l,
|
|
41
49
|
hasSubmenu: o
|
|
42
50
|
});
|
|
43
|
-
|
|
51
|
+
j(() => {
|
|
44
52
|
if (!n.current)
|
|
45
53
|
return;
|
|
46
54
|
const e = n.current.querySelector("[data-submenu-trigger]");
|
|
47
55
|
N(!!e);
|
|
48
56
|
}, [n]);
|
|
49
|
-
const
|
|
50
|
-
o && e.key === "ArrowRight" &&
|
|
57
|
+
const A = (e) => {
|
|
58
|
+
o && e.key === "ArrowRight" && h(!0);
|
|
51
59
|
};
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
60
|
+
return /* @__PURE__ */ c(
|
|
61
|
+
J,
|
|
54
62
|
{
|
|
55
63
|
hasSubmenu: o,
|
|
56
|
-
subMenuOpen:
|
|
57
|
-
setSubMenuOpen:
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
|
|
64
|
+
subMenuOpen: d,
|
|
65
|
+
setSubMenuOpen: h,
|
|
66
|
+
children: /* @__PURE__ */ c(
|
|
67
|
+
q,
|
|
60
68
|
{
|
|
61
|
-
ref:
|
|
62
|
-
className:
|
|
63
|
-
disabled:
|
|
69
|
+
ref: W(m, n),
|
|
70
|
+
className: g(p.item, M),
|
|
71
|
+
disabled: l,
|
|
64
72
|
"data-item": !0,
|
|
65
|
-
"data-danger":
|
|
66
|
-
"data-no-icon-align":
|
|
73
|
+
"data-danger": x ? "" : void 0,
|
|
74
|
+
"data-no-icon-align": y || !u ? "" : void 0,
|
|
67
75
|
"data-has-submenu": o ? "" : void 0,
|
|
68
76
|
onSelect: (e) => {
|
|
69
|
-
|
|
77
|
+
i == null || i(e), k(!0);
|
|
70
78
|
},
|
|
71
|
-
"data-highlighted":
|
|
72
|
-
onFocus:
|
|
73
|
-
onMouseEnter:
|
|
74
|
-
onBlur:
|
|
75
|
-
onMouseLeave:
|
|
76
|
-
onKeyDown:
|
|
77
|
-
...
|
|
78
|
-
children:
|
|
79
|
+
"data-highlighted": d || D,
|
|
80
|
+
onFocus: F,
|
|
81
|
+
onMouseEnter: R,
|
|
82
|
+
onBlur: w,
|
|
83
|
+
onMouseLeave: _,
|
|
84
|
+
onKeyDown: A,
|
|
85
|
+
...S,
|
|
86
|
+
children: a
|
|
79
87
|
}
|
|
80
88
|
)
|
|
81
89
|
}
|
|
82
90
|
);
|
|
83
91
|
});
|
|
84
|
-
|
|
92
|
+
T.displayName = s;
|
|
85
93
|
export {
|
|
86
|
-
|
|
94
|
+
T as Item
|
|
87
95
|
};
|
|
@@ -18,9 +18,15 @@ export type SelectableItemProps = RadixItemProps & {
|
|
|
18
18
|
};
|
|
19
19
|
export type NotSelectableItemProps = React.ComponentPropsWithRef<'div'> & {
|
|
20
20
|
/**
|
|
21
|
-
* Whether the item is
|
|
21
|
+
* Whether the item is selectable.
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
isSelectable?: false;
|
|
24
|
+
/**
|
|
25
|
+
* A function for checking the presence of an icon.
|
|
26
|
+
*
|
|
27
|
+
* By default, the `hasItemIcon` from utils is used.
|
|
28
|
+
*/
|
|
29
|
+
hasIconCheckFn?: (children: React.ReactNode) => boolean;
|
|
24
30
|
};
|
|
25
31
|
export type ItemProps = SelectableItemProps | NotSelectableItemProps;
|
|
26
32
|
export interface ContextMenuItemContextProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Item/Item.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEnF,KAAK,cAAc,GAAG,IAAI,CACxB,KAAK,CAAC,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,EACzD,UAAU,CACX,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IACjD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,OAAO,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG;IACxE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"Item.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Item/Item.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEnF,KAAK,cAAc,GAAG,IAAI,CACxB,KAAK,CAAC,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,EACzD,UAAU,CACX,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IACjD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,OAAO,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,OAAO,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,mBAAmB,GAAG,sBAAsB,CAAC;AAErE,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C"}
|
|
@@ -5,7 +5,7 @@ import { c as C } from "../../../../index-L8X2o7IH.mjs";
|
|
|
5
5
|
import { useLevelContext as N } from "../../providers/LevelProvider/LevelProvider.js";
|
|
6
6
|
import { useContextMenuContext as R } from "../../ContextMenu.context.js";
|
|
7
7
|
import { hasItemIcon as v } from "../../utils/hasItemIcon/hasItemIcon.js";
|
|
8
|
-
import "../../../../useContentPositioning-
|
|
8
|
+
import "../../../../useContentPositioning-27D32n5u.mjs";
|
|
9
9
|
import "../Content/Content.utils.js";
|
|
10
10
|
import { useContextMenuItemFocus as y } from "../../hooks/useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
11
11
|
import '../../../../assets/RadioItem.css';const L = "_radio_item_zek17_1", A = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sub.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Sub/Sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,eAAO,MAAM,GAAG;+CAKb,QAAQ;;
|
|
1
|
+
{"version":3,"file":"Sub.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Sub/Sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,eAAO,MAAM,GAAG;+CAKb,QAAQ;;CAuCV,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { S } from "../../../../index-BA3njR2k.mjs";
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { S as b } from "../../../../index-BA3njR2k.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ContextMenuMode as l } from "../../ContextMenu.enums.js";
|
|
5
5
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
6
|
-
import "../../../../useContentPositioning-
|
|
6
|
+
import "../../../../useContentPositioning-27D32n5u.mjs";
|
|
7
7
|
import "../Content/Content.utils.js";
|
|
8
8
|
import { useContextMenuSub as x } from "../../hooks/useContextMenuSub/useContextMenuSub.js";
|
|
9
|
-
import { ContextMenuSubProvider as C, DISPLAY_NAME as
|
|
10
|
-
const
|
|
9
|
+
import { ContextMenuSubProvider as C, DISPLAY_NAME as t } from "./Sub.context.js";
|
|
10
|
+
const O = ({
|
|
11
11
|
children: i,
|
|
12
12
|
mode: e = l.HOVER,
|
|
13
13
|
defaultOpen: o,
|
|
@@ -19,15 +19,16 @@ const b = ({
|
|
|
19
19
|
animatedOpen: a,
|
|
20
20
|
startAnimation: s,
|
|
21
21
|
handleMouseEnter: u,
|
|
22
|
-
handleMouseLeave:
|
|
23
|
-
handleOpenChange:
|
|
24
|
-
triggerId: h
|
|
22
|
+
handleMouseLeave: d,
|
|
23
|
+
handleOpenChange: M,
|
|
24
|
+
triggerId: h,
|
|
25
|
+
onOpenByKeyboard: S
|
|
25
26
|
} = x({
|
|
26
|
-
displayName:
|
|
27
|
+
displayName: t,
|
|
27
28
|
mode: e,
|
|
28
29
|
defaultOpen: o
|
|
29
30
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ r(
|
|
31
32
|
C,
|
|
32
33
|
{
|
|
33
34
|
mode: e,
|
|
@@ -37,13 +38,14 @@ const b = ({
|
|
|
37
38
|
defaultOpen: o,
|
|
38
39
|
startAnimation: s,
|
|
39
40
|
onMouseEnter: u,
|
|
40
|
-
onMouseLeave:
|
|
41
|
+
onMouseLeave: d,
|
|
42
|
+
onOpenByKeyboard: S,
|
|
41
43
|
triggerId: h,
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
|
|
44
|
+
children: /* @__PURE__ */ r(
|
|
45
|
+
b,
|
|
44
46
|
{
|
|
45
47
|
open: n,
|
|
46
|
-
onOpenChange:
|
|
48
|
+
onOpenChange: M,
|
|
47
49
|
...m,
|
|
48
50
|
children: i
|
|
49
51
|
}
|
|
@@ -51,7 +53,7 @@ const b = ({
|
|
|
51
53
|
}
|
|
52
54
|
);
|
|
53
55
|
};
|
|
54
|
-
|
|
56
|
+
O.displayName = t;
|
|
55
57
|
export {
|
|
56
|
-
|
|
58
|
+
O as Sub
|
|
57
59
|
};
|
|
@@ -46,5 +46,9 @@ export interface ContextMenuSubContextProps {
|
|
|
46
46
|
* The id of the trigger of the submenu.
|
|
47
47
|
*/
|
|
48
48
|
triggerId: string;
|
|
49
|
+
/**
|
|
50
|
+
* The callback function to be called when the submenu is opened by keyboard.
|
|
51
|
+
*/
|
|
52
|
+
onOpenByKeyboard: (value: boolean) => void;
|
|
49
53
|
}
|
|
50
54
|
//# sourceMappingURL=Sub.props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sub.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Sub/Sub.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,IAAI,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC7E;;;;OAIG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Sub.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Sub/Sub.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,IAAI,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC7E;;;;OAIG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubRoot.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/SubRoot/SubRoot.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"SubRoot.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/SubRoot/SubRoot.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,eAAO,MAAM,OAAO,EAuFf,sBAAsB,CAAC"}
|