@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.
Files changed (48) hide show
  1. package/dist/ContextMenu-CeyT26LX.mjs +229 -0
  2. package/dist/components/ContextMenu/ContextMenu.d.ts +2 -2
  3. package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
  4. package/dist/components/ContextMenu/ContextMenu.js +5 -5
  5. package/dist/components/ContextMenu/ContextMenu.props.d.ts +19 -3
  6. package/dist/components/ContextMenu/ContextMenu.props.d.ts.map +1 -1
  7. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +1 -1
  8. package/dist/components/ContextMenu/components/Content/Content.d.ts.map +1 -1
  9. package/dist/components/ContextMenu/components/Content/Content.js +1 -1
  10. package/dist/components/ContextMenu/components/Content/index.js +1 -1
  11. package/dist/components/ContextMenu/components/Item/Item.js +1 -1
  12. package/dist/components/ContextMenu/components/Label/Label.js +1 -1
  13. package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +1 -1
  14. package/dist/components/ContextMenu/components/Sub/Sub.js +1 -1
  15. package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts +3 -3
  16. package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts.map +1 -1
  17. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.d.ts.map +1 -1
  18. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.js +80 -88
  19. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.d.ts +2 -2
  20. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.d.ts.map +1 -1
  21. package/dist/components/ContextMenu/components/Sub/index.js +1 -1
  22. package/dist/components/ContextMenu/components/SubContent/SubContent.js +1 -1
  23. package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +1 -1
  24. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +1 -1
  25. package/dist/components/ContextMenu/components/SubRoot/hooks/useContextMenuSubMenu/useContextMenuSubMenu.js +1 -1
  26. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +1 -1
  27. package/dist/components/ContextMenu/hooks/index.js +1 -1
  28. package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.d.ts.map +1 -1
  29. package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +1 -1
  30. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.d.ts.map +1 -1
  31. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +142 -133
  32. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.d.ts +14 -2
  33. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.d.ts.map +1 -1
  34. package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.d.ts +3 -1
  35. package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.d.ts.map +1 -1
  36. package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.js +16 -10
  37. package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.types.d.ts +4 -0
  38. package/dist/components/ContextMenu/hooks/useContextMenu/utils/contextMenuBus/contextMenuBus.types.d.ts.map +1 -1
  39. package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.d.ts.map +1 -1
  40. package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.js +47 -42
  41. package/dist/components/ContextMenu/index.js +1 -1
  42. package/dist/components/List/List.js +1 -1
  43. package/dist/components/Select/components/List/List.js +1 -1
  44. package/dist/index-DBS3EIVR.mjs +273 -0
  45. package/dist/{useContentPositioning-DfyirIME.mjs → useContentPositioning-Dfjbylz5.mjs} +456 -451
  46. package/package.json +3 -3
  47. package/dist/ContextMenu-BUiakpJf.mjs +0 -223
  48. package/dist/index-BH2CXQ4d.mjs +0 -257
@@ -1,95 +1,87 @@
1
- import { useId as ie, useState as I, useRef as g, useEffect as b } from "react";
2
- import { a as fe, b as ae } from "../../../../../../index-BH2CXQ4d.mjs";
3
- import { ContextMenuMode as c } from "../../../../ContextMenu.enums.js";
4
- import { useContextMenuContext as oe } from "../../../../ContextMenu.context.js";
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: N,
8
+ displayName: W,
9
9
  mode: G,
10
10
  defaultOpen: o,
11
11
  onOpen: e,
12
- onAiming: K,
13
- isAimingTolerance: J,
14
- isAimingIdleTimeout: Q
12
+ onAiming: p,
13
+ aimingTolerance: J,
14
+ aimingIdleTimeout: Q
15
15
  } = z, {
16
- activeItemId: M,
17
- onChildOpen: s,
18
- onSubRootOpen: L,
19
- isAnimatedOpen: W,
20
- onChildAiming: p,
21
- isChildAiming: x
22
- } = me(N), S = ie(), [n, i] = I(o || !1), [U, u] = I(!1), [D, C] = I(!1), [H, m] = I(!1), [V, X] = I(!1), [v, Y] = I(null), [q, Z] = I(!1), [y, _] = I(null), r = g(null), f = g(null), T = g(null), B = g(null), w = g(!0), h = g(!1), a = g(!1), $ = fe(), { hoverCloseDelay: P, animationDuration: F } = oe(N), l = $ ? c.CLICK : G, ee = (t) => {
23
- K == null || K(t), p == null || p(t);
24
- }, { isAiming: A, ref: te } = ae({
25
- isEnabled: n && l === c.HOVER,
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
- }), d = (t) => {
30
- setTimeout(() => L == null ? void 0 : L(t), 0);
31
- }, R = () => {
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 (D) {
40
- u(!1), f.current = setTimeout(() => {
41
- i(!1), e == null || e(!1), d(!1), C(!1), a.current = !1, m(!1);
42
- }, F);
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
- h.current = !0, T.current || (T.current = setInterval(() => {
46
- if (a.current) {
47
- R(), h.current = !1, u(!0);
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
- E();
53
+ M();
56
54
  }, j = (t) => {
57
55
  if (o !== void 0) {
58
- i(o), e == null || e(o), d(o), u(o), m(!1);
56
+ f(o), e == null || e(o), C(o), u(o), d(!1);
59
57
  return;
60
58
  }
61
- if (l === c.CLICK || H) {
62
- i(t), e == null || e(t), d(t), setTimeout(() => u(t), 0);
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 ? (f.current && (clearTimeout(f.current), f.current = null), i(!0), e == null || e(!0), u(!0), d(!0)) : O();
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
- m(t);
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 === c.HOVER && (m(!1), C(!1), a.current = !1, r.current && (clearTimeout(r.current), r.current = null), h.current && !T.current && (T.current = setInterval(() => {
72
- if (a.current) {
73
- R(), h.current = !1, u(!0);
74
- return;
75
- }
76
- A() || (R(), h.current = !1, u(!1), f.current = setTimeout(() => {
77
- i(!1), e == null || e(!1), d(!1), C(!1), a.current = !1, m(!1);
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 b(() => {
89
- (M !== S || q) && n && o === void 0 && E();
90
- }, [M, n, o]), b(() => {
91
- if (!(!n || l !== c.HOVER || H)) {
92
- if (D) {
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, n, D, P, H]), b(() => {
103
- s == null || s(n, l);
104
- }, [n, l]), b(() => {
105
- y !== null && (s == null || s(!0, c.CLICK));
106
- }, [y]), b(() => {
107
- if (v !== null) {
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
- V && v === c.CLICK ? s == null || s(!0, v) : s == null || s(n, l);
104
+ A && b === i.CLICK ? n == null || n(!0, b) : n == null || n(s, l);
113
105
  }
114
- }, [V, v]), b(() => {
115
- j(n);
116
- }, [n]), b(() => {
117
- W || O();
118
- }, [W]), {
119
- isOpen: n,
120
- setIsOpen: i,
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: ne,
123
- handleContentLeave: se,
114
+ handleContentEnter: se,
115
+ handleContentLeave: ne,
124
116
  handleOpenChange: j,
125
- handlePointerDownOutside: le,
117
+ handlePointerDownOutside: ce,
126
118
  onOpenByKeyboard: re,
127
- triggerId: S,
119
+ triggerId: D,
128
120
  contentRef: te,
129
121
  triggerRef: B,
130
122
  onChildOpen: ue,
131
- onSubRootOpen: ce,
132
- closeMenuImmediately: E,
123
+ onSubRootOpen: le,
124
+ closeMenuImmediately: M,
133
125
  itemWithFocusedInput: y,
134
126
  setItemWithFocusedInput: _,
135
- isAiming: A
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
- isAimingTolerance: number;
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
- isAimingIdleTimeout: number;
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,EAA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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
+ {"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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CeyT26LX.mjs";
2
2
  export {
3
3
  S as Sub
4
4
  };
@@ -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-DfyirIME.mjs";
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-DfyirIME.mjs";
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-DfyirIME.mjs";
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-BH2CXQ4d.mjs";
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-DfyirIME.mjs";
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-DfyirIME.mjs";
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";
@@ -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,2BAkSF,CAAC"}
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-DfyirIME.mjs";
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":"AAYA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,cAAc,YAChB,qBAAqB,KAC7B,oBAgiBF,CAAC"}
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"}