@kommo-crm/crm-react-ui-kit 1.3.0-beta.1 → 1.3.0-beta.3
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-CeyT26LX.mjs +229 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +5 -5
- package/dist/components/ContextMenu/ContextMenu.props.d.ts +19 -3
- package/dist/components/ContextMenu/ContextMenu.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +1 -1
- package/dist/components/ContextMenu/components/Content/Content.d.ts.map +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.js +1 -1
- package/dist/components/ContextMenu/components/Label/Label.js +1 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.js +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts +3 -3
- package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.js +80 -88
- package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.d.ts +2 -2
- package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Sub/index.js +1 -1
- package/dist/components/ContextMenu/components/SubContent/SubContent.js +1 -1
- 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/SubRoot/hooks/useContextMenuSubMenu/useContextMenuSubMenu.js +1 -1
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +1 -1
- 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.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +142 -133
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.d.ts +14 -2
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.d.ts +3 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.js +16 -10
- package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.types.d.ts +4 -0
- package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.types.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.d.ts.map +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.js +47 -42
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/Select/components/List/List.js +1 -1
- package/dist/index-DBS3EIVR.mjs +273 -0
- package/dist/{useContentPositioning-DfyirIME.mjs → useContentPositioning-Dfjbylz5.mjs} +456 -451
- package/package.json +3 -3
- package/dist/ContextMenu-BUiakpJf.mjs +0 -223
- package/dist/index-BH2CXQ4d.mjs +0 -257
package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.js
CHANGED
|
@@ -1,95 +1,87 @@
|
|
|
1
|
-
import { useId as ie, useState as
|
|
2
|
-
import { a as
|
|
3
|
-
import { ContextMenuMode as
|
|
4
|
-
import { useContextMenuContext as
|
|
1
|
+
import { useId as ie, useState as m, useRef as g, useEffect as T } from "react";
|
|
2
|
+
import { a as oe, b as fe } from "../../../../../../index-DBS3EIVR.mjs";
|
|
3
|
+
import { ContextMenuMode as i } from "../../../../ContextMenu.enums.js";
|
|
4
|
+
import { useContextMenuContext as ae } from "../../../../ContextMenu.context.js";
|
|
5
5
|
import { useLevelContext as me } from "../../../../providers/LevelProvider/LevelProvider.js";
|
|
6
6
|
const Re = (z) => {
|
|
7
7
|
const {
|
|
8
|
-
displayName:
|
|
8
|
+
displayName: W,
|
|
9
9
|
mode: G,
|
|
10
10
|
defaultOpen: o,
|
|
11
11
|
onOpen: e,
|
|
12
|
-
onAiming:
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
onAiming: p,
|
|
13
|
+
aimingTolerance: J,
|
|
14
|
+
aimingIdleTimeout: Q
|
|
15
15
|
} = z, {
|
|
16
|
-
activeItemId:
|
|
17
|
-
onChildOpen:
|
|
18
|
-
onSubRootOpen:
|
|
19
|
-
isAnimatedOpen:
|
|
20
|
-
onChildAiming:
|
|
21
|
-
isChildAiming:
|
|
22
|
-
} = me(
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
16
|
+
activeItemId: x,
|
|
17
|
+
onChildOpen: n,
|
|
18
|
+
onSubRootOpen: S,
|
|
19
|
+
isAnimatedOpen: k,
|
|
20
|
+
onChildAiming: h,
|
|
21
|
+
isChildAiming: v
|
|
22
|
+
} = me(W), D = ie(), [s, f] = m(o || !1), [U, u] = m(!1), [H, R] = m(!1), [V, d] = m(!1), [A, X] = m(!1), [b, Y] = m(null), [q, Z] = m(!1), [y, _] = m(null), r = g(null), c = g(null), B = g(null), w = g(!0), a = g(!1), I = g(!1), $ = oe(), { hoverCloseDelay: P, animationDuration: E } = ae(W), l = $ ? i.CLICK : G, C = (t) => {
|
|
23
|
+
setTimeout(() => S == null ? void 0 : S(t), 0);
|
|
24
|
+
}, K = () => {
|
|
25
|
+
r.current && (clearTimeout(r.current), r.current = null), c.current && (clearTimeout(c.current), c.current = null);
|
|
26
|
+
}, F = () => {
|
|
27
|
+
K(), a.current = !1, f(!1), e == null || e(!1), C(!1), R(!1), I.current = !1, d(!1);
|
|
28
|
+
}, M = () => {
|
|
29
|
+
K(), u(!1), f(!1), e == null || e(!1), C(!1), R(!1), I.current = !1, d(!1);
|
|
30
|
+
}, ee = (t) => {
|
|
31
|
+
p == null || p(t), h == null || h(t), !t && a.current && !I.current && (a.current = !1, u(!1), c.current = setTimeout(() => {
|
|
32
|
+
F();
|
|
33
|
+
}, E));
|
|
34
|
+
}, { isAiming: L, ref: te } = fe({
|
|
35
|
+
isEnabled: s && l === i.HOVER,
|
|
26
36
|
onChange: ee,
|
|
27
37
|
tolerance: J,
|
|
28
38
|
idleTimeout: Q
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
r.current && (clearTimeout(r.current), r.current = null), f.current && (clearTimeout(f.current), f.current = null), T.current && (clearInterval(T.current), T.current = null);
|
|
33
|
-
}, E = () => {
|
|
34
|
-
R(), u(!1), i(!1), e == null || e(!1), d(!1), C(!1), a.current = !1, m(!1);
|
|
35
|
-
}, O = () => {
|
|
36
|
-
if (R(), l === c.HOVER) {
|
|
37
|
-
if (V && v === c.CLICK || y !== null)
|
|
39
|
+
}), O = () => {
|
|
40
|
+
if (K(), l === i.HOVER) {
|
|
41
|
+
if (A && b === i.CLICK || y !== null)
|
|
38
42
|
return;
|
|
39
|
-
if (
|
|
40
|
-
u(!1),
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
+
if (H) {
|
|
44
|
+
u(!1), c.current = setTimeout(() => {
|
|
45
|
+
f(!1), e == null || e(!1), C(!1), R(!1), I.current = !1, d(!1);
|
|
46
|
+
}, E);
|
|
43
47
|
return;
|
|
44
48
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
A() || (R(), h.current = !1, u(!1), f.current = setTimeout(() => {
|
|
51
|
-
i(!1), e == null || e(!1), d(!1), C(!1), a.current = !1, m(!1);
|
|
52
|
-
}, F));
|
|
53
|
-
}, 50));
|
|
49
|
+
a.current = !0, L() || (a.current = !1, u(!1), c.current = setTimeout(() => {
|
|
50
|
+
F();
|
|
51
|
+
}, E));
|
|
54
52
|
} else
|
|
55
|
-
|
|
53
|
+
M();
|
|
56
54
|
}, j = (t) => {
|
|
57
55
|
if (o !== void 0) {
|
|
58
|
-
|
|
56
|
+
f(o), e == null || e(o), C(o), u(o), d(!1);
|
|
59
57
|
return;
|
|
60
58
|
}
|
|
61
|
-
if (l ===
|
|
62
|
-
|
|
59
|
+
if (l === i.CLICK || V) {
|
|
60
|
+
f(t), e == null || e(t), C(t), setTimeout(() => u(t), 0);
|
|
63
61
|
return;
|
|
64
62
|
}
|
|
65
|
-
t ? (
|
|
63
|
+
t ? (c.current && (clearTimeout(c.current), c.current = null), f(!0), e == null || e(!0), u(!0), C(!0)) : O();
|
|
66
64
|
}, re = (t) => {
|
|
67
|
-
|
|
68
|
-
}, ne = () => {
|
|
69
|
-
l !== c.HOVER || A() && M !== S || x != null && x() && !n || (m(!1), R(), h.current = !1, n ? (C(!0), a.current = !0, u(!0)) : (r.current && (clearTimeout(r.current), r.current = null), u(!0), e == null || e(!0), d(!0), i(!0), C(!0), a.current = !0));
|
|
65
|
+
d(t);
|
|
70
66
|
}, se = () => {
|
|
71
|
-
l
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, F));
|
|
79
|
-
}, 50)));
|
|
80
|
-
}, ue = (t, k) => {
|
|
81
|
-
X(t), Y(k);
|
|
82
|
-
}, le = (t) => {
|
|
83
|
-
const k = B.current && t.target instanceof Node && B.current.contains(t.target);
|
|
84
|
-
!q && !k && E();
|
|
67
|
+
l !== i.HOVER || L() && x !== D || v != null && v() && !s || (d(!1), K(), a.current = !1, s ? (R(!0), I.current = !0, u(!0)) : (r.current && (clearTimeout(r.current), r.current = null), u(!0), e == null || e(!0), C(!0), f(!0), R(!0), I.current = !0));
|
|
68
|
+
}, ne = () => {
|
|
69
|
+
l === i.HOVER && (d(!1), R(!1), I.current = !1, r.current && (clearTimeout(r.current), r.current = null), a.current && !L() && (a.current = !1, u(!1), c.current = setTimeout(() => {
|
|
70
|
+
F();
|
|
71
|
+
}, E)));
|
|
72
|
+
}, ue = (t, N) => {
|
|
73
|
+
X(t), Y(N);
|
|
85
74
|
}, ce = (t) => {
|
|
75
|
+
const N = B.current && t.target instanceof Node && B.current.contains(t.target);
|
|
76
|
+
!q && !N && M();
|
|
77
|
+
}, le = (t) => {
|
|
86
78
|
Z(t);
|
|
87
79
|
};
|
|
88
|
-
return
|
|
89
|
-
(
|
|
90
|
-
}, [
|
|
91
|
-
if (!(!
|
|
92
|
-
if (
|
|
80
|
+
return T(() => {
|
|
81
|
+
(x !== D || q) && s && o === void 0 && M();
|
|
82
|
+
}, [x, s, o]), T(() => {
|
|
83
|
+
if (!(!s || l !== i.HOVER || V)) {
|
|
84
|
+
if (H) {
|
|
93
85
|
r.current && (clearTimeout(r.current), r.current = null);
|
|
94
86
|
return;
|
|
95
87
|
}
|
|
@@ -99,40 +91,40 @@ const Re = (z) => {
|
|
|
99
91
|
r.current && (clearTimeout(r.current), r.current = null);
|
|
100
92
|
};
|
|
101
93
|
}
|
|
102
|
-
}, [l,
|
|
103
|
-
|
|
104
|
-
}, [
|
|
105
|
-
y !== null && (
|
|
106
|
-
}, [y]),
|
|
107
|
-
if (
|
|
94
|
+
}, [l, s, H, P, V]), T(() => {
|
|
95
|
+
n == null || n(s, l);
|
|
96
|
+
}, [s, l]), T(() => {
|
|
97
|
+
y !== null && (n == null || n(!0, i.CLICK));
|
|
98
|
+
}, [y]), T(() => {
|
|
99
|
+
if (b !== null) {
|
|
108
100
|
if (w.current) {
|
|
109
101
|
w.current = !1;
|
|
110
102
|
return;
|
|
111
103
|
}
|
|
112
|
-
|
|
104
|
+
A && b === i.CLICK ? n == null || n(!0, b) : n == null || n(s, l);
|
|
113
105
|
}
|
|
114
|
-
}, [
|
|
115
|
-
j(
|
|
116
|
-
}, [
|
|
117
|
-
|
|
118
|
-
}, [
|
|
119
|
-
isOpen:
|
|
120
|
-
setIsOpen:
|
|
106
|
+
}, [A, b]), T(() => {
|
|
107
|
+
j(s), s || h == null || h(!1);
|
|
108
|
+
}, [s]), T(() => {
|
|
109
|
+
k || O();
|
|
110
|
+
}, [k]), {
|
|
111
|
+
isOpen: s,
|
|
112
|
+
setIsOpen: f,
|
|
121
113
|
isAnimatedOpen: U,
|
|
122
|
-
handleContentEnter:
|
|
123
|
-
handleContentLeave:
|
|
114
|
+
handleContentEnter: se,
|
|
115
|
+
handleContentLeave: ne,
|
|
124
116
|
handleOpenChange: j,
|
|
125
|
-
handlePointerDownOutside:
|
|
117
|
+
handlePointerDownOutside: ce,
|
|
126
118
|
onOpenByKeyboard: re,
|
|
127
|
-
triggerId:
|
|
119
|
+
triggerId: D,
|
|
128
120
|
contentRef: te,
|
|
129
121
|
triggerRef: B,
|
|
130
122
|
onChildOpen: ue,
|
|
131
|
-
onSubRootOpen:
|
|
132
|
-
closeMenuImmediately:
|
|
123
|
+
onSubRootOpen: le,
|
|
124
|
+
closeMenuImmediately: M,
|
|
133
125
|
itemWithFocusedInput: y,
|
|
134
126
|
setItemWithFocusedInput: _,
|
|
135
|
-
isAiming:
|
|
127
|
+
isAiming: L
|
|
136
128
|
};
|
|
137
129
|
};
|
|
138
130
|
export {
|
|
@@ -31,12 +31,12 @@ export interface UseContextMenuSubOptions {
|
|
|
31
31
|
* Tolerance in pixels for detecting cursor movement toward the submenu.
|
|
32
32
|
* Higher values make the detection more lenient.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
aimingTolerance: number;
|
|
35
35
|
/**
|
|
36
36
|
* Timeout in milliseconds before considering cursor movement as idle.
|
|
37
37
|
* Used to reset aiming state when cursor stops moving.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
aimingIdleTimeout: number;
|
|
40
40
|
}
|
|
41
41
|
export interface UseContextMenuSubResult {
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContextMenuSub.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"useContextMenuSub.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B;;OAEG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B;;OAEG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,wBAAwB,EAAE,CAAC,CAAC,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACtC;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC3E;;OAEG;IACH,aAAa,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,uBAAuB,EAAE,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC;CACzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as V, useState as Z, useRef as $ } from "react";
|
|
3
3
|
import { c as ee } from "../../../../index-aPaPKjUe.mjs";
|
|
4
|
-
import { u as te, a as ne, e as oe, b as se } from "../../../../useContentPositioning-
|
|
4
|
+
import { u as te, a as ne, e as oe, b as se } from "../../../../useContentPositioning-Dfjbylz5.mjs";
|
|
5
5
|
import { c as ie } from "../../../../index-L8X2o7IH.mjs";
|
|
6
6
|
import { mergeRefs as ue } from "../../../../lib/utils.js";
|
|
7
7
|
import { useLevelContext as re, LevelProvider as ce } from "../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ce, useState as de, useRef as ue } from "react";
|
|
3
3
|
import { g as me } from "../../../../../../index-aPaPKjUe.mjs";
|
|
4
4
|
import { c as fe } from "../../../../../../index-L8X2o7IH.mjs";
|
|
5
|
-
import { u as pe, a as he, e as ge, b as Ce } from "../../../../../../useContentPositioning-
|
|
5
|
+
import { u as pe, a as he, e as ge, b as Ce } from "../../../../../../useContentPositioning-Dfjbylz5.mjs";
|
|
6
6
|
import { mergeRefs as Ie } from "../../../../../../lib/utils.js";
|
|
7
7
|
import { KeyboardKey as Oe } from "../../../../../../lib/keyboard/index.js";
|
|
8
8
|
import { useLevelContext as ve, LevelProvider as Ae } from "../../../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -5,7 +5,7 @@ import { c as y } from "../../../../../../index-L8X2o7IH.mjs";
|
|
|
5
5
|
import { mergeRefs as A } from "../../../../../../lib/utils.js";
|
|
6
6
|
import { useContextMenuContext as S } from "../../../../ContextMenu.context.js";
|
|
7
7
|
import { ContextMenuMode as j } from "../../../../ContextMenu.enums.js";
|
|
8
|
-
import "../../../../../../useContentPositioning-
|
|
8
|
+
import "../../../../../../useContentPositioning-Dfjbylz5.mjs";
|
|
9
9
|
import "../../../Content/Content.utils.js";
|
|
10
10
|
import "../../../../providers/LevelProvider/LevelProvider.js";
|
|
11
11
|
import "../../../../providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useId as se, useState as a, useRef as I, useLayoutEffect as oe, useEffect as c } from "react";
|
|
2
|
-
import { a as ie } from "../../../../../../index-
|
|
2
|
+
import { a as ie } from "../../../../../../index-DBS3EIVR.mjs";
|
|
3
3
|
import { focusFirstFocusableItem as ce } from "../../../../utils/focusFirstFocusableItem/focusFirstFocusableItem.js";
|
|
4
4
|
import { ContextMenuMode as s } from "../../../../ContextMenu.enums.js";
|
|
5
5
|
import { useLevelContext as le } from "../../../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -6,7 +6,7 @@ import { mergeRefs as V } from "../../../../lib/utils.js";
|
|
|
6
6
|
import { KeyboardKey as t } from "../../../../lib/keyboard/index.js";
|
|
7
7
|
import { useContextMenuSubContext as Y } from "../Sub/Sub.context.js";
|
|
8
8
|
import { ContextMenuMode as d } from "../../ContextMenu.enums.js";
|
|
9
|
-
import "../../../../useContentPositioning-
|
|
9
|
+
import "../../../../useContentPositioning-Dfjbylz5.mjs";
|
|
10
10
|
import "../Content/Content.utils.js";
|
|
11
11
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
12
12
|
import "../../providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContextMenu as r } from "./useContextMenu/useContextMenu.js";
|
|
2
|
-
import { u as n } from "../../../useContentPositioning-
|
|
2
|
+
import { u as n } from "../../../useContentPositioning-Dfjbylz5.mjs";
|
|
3
3
|
import { useSubMenu as s } from "./useSubMenu/useSubMenu.js";
|
|
4
4
|
import { useItemInnerFocus as m } from "./useItemInnerFocus/useItemInnerFocus.js";
|
|
5
5
|
import { useContextMenuItemFocus as p } from "./useContextMenuItemFocus/useContextMenuItemFocus.js";
|
package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContentPositioning.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,YACvB,4BAA4B,KACpC,
|
|
1
|
+
{"version":3,"file":"useContentPositioning.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,YACvB,4BAA4B,KACpC,2BAoTF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { u as n } from "../../../../useContentPositioning-
|
|
2
|
+
import { u as n } from "../../../../useContentPositioning-Dfjbylz5.mjs";
|
|
3
3
|
import "../../components/Content/Content.enums.js";
|
|
4
4
|
import "../../components/Content/Content.utils.js";
|
|
5
5
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContextMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/hooks/useContextMenu/useContextMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useContextMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/hooks/useContextMenu/useContextMenu.tsx"],"names":[],"mappings":"AAcA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,cAAc,YAChB,qBAAqB,KAC7B,oBA+lBF,CAAC"}
|