@kommo-crm/crm-react-ui-kit 1.2.0 → 1.3.0-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.
Files changed (43) hide show
  1. package/dist/ContextMenu-BUiakpJf.mjs +223 -0
  2. package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
  3. package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
  4. package/dist/components/ContextMenu/ContextMenu.js +26 -133
  5. package/dist/components/ContextMenu/ContextMenu.props.d.ts +14 -0
  6. package/dist/components/ContextMenu/ContextMenu.props.d.ts.map +1 -1
  7. package/dist/components/ContextMenu/components/Arrow/Arrow.js +1 -1
  8. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +2 -2
  9. package/dist/components/ContextMenu/components/Content/Content.js +2 -2
  10. package/dist/components/ContextMenu/components/Content/index.js +1 -1
  11. package/dist/components/ContextMenu/components/Group/Group.js +1 -1
  12. package/dist/components/ContextMenu/components/Item/Item.js +2 -2
  13. package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.js +1 -1
  14. package/dist/components/ContextMenu/components/Label/Label.js +2 -2
  15. package/dist/components/ContextMenu/components/Portal/Portal.js +1 -1
  16. package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.js +1 -1
  17. package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +2 -2
  18. package/dist/components/ContextMenu/components/Separator/Separator.js +1 -1
  19. package/dist/components/ContextMenu/components/Sub/Sub.d.ts.map +1 -1
  20. package/dist/components/ContextMenu/components/Sub/Sub.js +7 -77
  21. package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts +14 -0
  22. package/dist/components/ContextMenu/components/Sub/Sub.props.d.ts.map +1 -1
  23. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.d.ts.map +1 -1
  24. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.js +47 -43
  25. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.d.ts +10 -0
  26. package/dist/components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.types.d.ts.map +1 -1
  27. package/dist/components/ContextMenu/components/Sub/index.js +2 -2
  28. package/dist/components/ContextMenu/components/SubContent/SubContent.js +2 -2
  29. package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +7 -7
  30. package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +2 -2
  31. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +2 -2
  32. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +2 -2
  33. package/dist/components/ContextMenu/components/Trigger/Trigger.js +1 -1
  34. package/dist/components/ContextMenu/hooks/index.js +1 -1
  35. package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +1 -1
  36. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.d.ts.map +1 -1
  37. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +68 -64
  38. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.d.ts +10 -0
  39. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.d.ts.map +1 -1
  40. package/dist/components/ContextMenu/index.js +1 -1
  41. package/dist/{index-BaRUO9dO.mjs → index-aPaPKjUe.mjs} +2 -2
  42. package/dist/{useContentPositioning-DWKm83_A.mjs → useContentPositioning-DfyirIME.mjs} +1 -1
  43. package/package.json +2 -2
@@ -0,0 +1,223 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { S as Y, a as w } from "./index-aPaPKjUe.mjs";
3
+ import { useContextMenu as B } from "./components/ContextMenu/hooks/useContextMenu/useContextMenu.js";
4
+ import "react";
5
+ import { C as K } from "./useContentPositioning-DfyirIME.mjs";
6
+ import "./components/ContextMenu/components/Content/Content.utils.js";
7
+ import "./components/ContextMenu/providers/LevelProvider/LevelProvider.js";
8
+ import "./components/ContextMenu/providers/SubMenuProvider/SubMenuProvider.js";
9
+ import { useContextMenuKeyboardNavigation as j } from "./components/ContextMenu/hooks/useContextMenuKeyboardNavigation/useContextMenuKeyboardNavigation.js";
10
+ import { Trigger as k } from "./components/ContextMenu/components/Trigger/Trigger.js";
11
+ import { Portal as H } from "./components/ContextMenu/components/Portal/Portal.js";
12
+ import { ContextMenuMode as V } from "./components/ContextMenu/ContextMenu.enums.js";
13
+ import { SubTrigger as $ } from "./components/ContextMenu/components/SubTrigger/SubTrigger.js";
14
+ import { SubContent as q } from "./components/ContextMenu/components/SubContent/SubContent.js";
15
+ import { Arrow as z } from "./components/ContextMenu/components/Arrow/Arrow.js";
16
+ import { Item as J } from "./components/ContextMenu/components/Item/Item.js";
17
+ import { ItemRightSlot as Q } from "./components/ContextMenu/components/ItemRightSlot/ItemRightSlot.js";
18
+ import { Group as X } from "./components/ContextMenu/components/Group/Group.js";
19
+ import { Label as Z } from "./components/ContextMenu/components/Label/Label.js";
20
+ import { CheckboxItem as ee } from "./components/ContextMenu/components/CheckboxItem/CheckboxItem.js";
21
+ import { ItemIndicator as oe } from "./components/ContextMenu/components/ItemIndicator/ItemIndicator.js";
22
+ import { RadioGroup as te } from "./components/ContextMenu/components/RadioGroup/RadioGroup.js";
23
+ import { RadioItem as ne } from "./components/ContextMenu/components/RadioItem/RadioItem.js";
24
+ import { Separator as re } from "./components/ContextMenu/components/Separator/Separator.js";
25
+ import { ItemIcon as ie } from "./components/ContextMenu/components/ItemIcon/ItemIcon.js";
26
+ import { __experimental_SubRoot as me } from "./components/ContextMenu/components/SubRoot/SubRoot.js";
27
+ import { DISPLAY_NAME as se, ContextMenuRootProvider as pe, ContextMenuProvider as ae } from "./components/ContextMenu/ContextMenu.context.js";
28
+ import { useContextMenuSub as ue } from "./components/ContextMenu/components/Sub/hooks/useContextMenuSub/useContextMenuSub.js";
29
+ import { ContextMenuSubProvider as de, DISPLAY_NAME as L } from "./components/ContextMenu/components/Sub/Sub.context.js";
30
+ const N = (p) => {
31
+ const {
32
+ children: a,
33
+ mode: n = V.HOVER,
34
+ onOpen: e,
35
+ defaultOpen: r,
36
+ shouldCloseRootMenuOnSelect: u = !0,
37
+ shouldCloseCurrentMenuOnSelect: d = !0,
38
+ onAiming: l,
39
+ isAimingTolerance: c = T,
40
+ isAimingIdleTimeout: O = v,
41
+ ...C
42
+ } = p, {
43
+ isOpen: i,
44
+ setIsOpen: I,
45
+ isAnimatedOpen: o,
46
+ handleContentEnter: f,
47
+ handleContentLeave: h,
48
+ handleOpenChange: m,
49
+ triggerId: A,
50
+ onOpenByKeyboard: g,
51
+ contentRef: M,
52
+ triggerRef: R,
53
+ onChildOpen: S,
54
+ onSubRootOpen: s,
55
+ closeMenuImmediately: _,
56
+ itemWithFocusedInput: b,
57
+ setItemWithFocusedInput: E,
58
+ isAiming: D,
59
+ handlePointerDownOutside: x
60
+ } = ue({
61
+ displayName: L,
62
+ mode: n,
63
+ defaultOpen: r,
64
+ onOpen: e,
65
+ onAiming: l,
66
+ isAimingTolerance: c,
67
+ isAimingIdleTimeout: O
68
+ });
69
+ return /* @__PURE__ */ t(
70
+ de,
71
+ {
72
+ mode: n,
73
+ isOpen: i,
74
+ setIsOpen: I,
75
+ isAnimatedOpen: o,
76
+ defaultOpen: r,
77
+ onContentEnter: f,
78
+ onContentLeave: h,
79
+ onOpenByKeyboard: g,
80
+ triggerId: A,
81
+ contentRef: M,
82
+ triggerRef: R,
83
+ onChildOpen: S,
84
+ onSubRootOpen: s,
85
+ shouldCloseRootMenuOnSelect: u,
86
+ shouldCloseCurrentMenuOnSelect: d,
87
+ closeMenuImmediately: _,
88
+ itemWithFocusedInput: b,
89
+ setItemWithFocusedInput: E,
90
+ isAiming: D,
91
+ onPointerDownOutside: x,
92
+ children: /* @__PURE__ */ t(
93
+ Y,
94
+ {
95
+ open: i,
96
+ onOpenChange: m,
97
+ ...C,
98
+ children: a
99
+ }
100
+ )
101
+ }
102
+ );
103
+ };
104
+ N.displayName = L;
105
+ const le = 200, ce = 150, T = 0, v = 200, y = (p) => {
106
+ const {
107
+ children: a,
108
+ mode: n,
109
+ isOpen: e,
110
+ defaultOpen: r,
111
+ shouldCloseCurrentMenuOnSelect: u = !0,
112
+ onOpen: d,
113
+ onAnimatedOpen: l,
114
+ onAiming: c,
115
+ isAimingTolerance: O = T,
116
+ isAimingIdleTimeout: C = v,
117
+ ...i
118
+ } = p, {
119
+ mode: I,
120
+ isOpen: o,
121
+ triggerRef: f,
122
+ contentRef: h,
123
+ isAnimatedOpen: m,
124
+ animationDuration: A,
125
+ hoverCloseDelay: g,
126
+ isRootContentBlocked: M,
127
+ isChildOpen: R,
128
+ itemWithFocusedInput: S,
129
+ closeMenuImmediately: s,
130
+ onOpenChange: _,
131
+ onContentEnter: b,
132
+ onContentLeave: E,
133
+ onOpenByKeyboard: D,
134
+ onChildOpen: x,
135
+ onSubmenuOpen: P,
136
+ setItemWithFocusedInput: F,
137
+ shouldPreventFocusRestore: G,
138
+ setOnFocusOutside: U
139
+ } = B({
140
+ mode: n,
141
+ defaultOpen: r,
142
+ animationDuration: ce,
143
+ hoverCloseDelay: le,
144
+ isOpen: e,
145
+ onOpen: d,
146
+ onAnimatedOpen: l,
147
+ onAiming: c,
148
+ isAimingTolerance: O,
149
+ isAimingIdleTimeout: C
150
+ }), { navigationContentRef: W } = j({
151
+ isOpen: e ?? o,
152
+ isAnimatedOpen: m
153
+ });
154
+ return /* @__PURE__ */ t(
155
+ pe,
156
+ {
157
+ closeRootMenuImmediately: s,
158
+ navigationContentRef: W,
159
+ children: /* @__PURE__ */ t(
160
+ ae,
161
+ {
162
+ mode: I,
163
+ triggerRef: f,
164
+ contentRef: h,
165
+ isAnimatedOpen: m,
166
+ animationDuration: A,
167
+ hoverCloseDelay: g,
168
+ closeMenuImmediately: s,
169
+ onContentEnter: b,
170
+ onContentLeave: E,
171
+ onOpenByKeyboard: D,
172
+ shouldCloseCurrentMenuOnSelect: u,
173
+ onChildOpen: x,
174
+ isOpen: o,
175
+ onSubmenuOpen: P,
176
+ isRootContentBlocked: M,
177
+ isChildOpen: R,
178
+ itemWithFocusedInput: S,
179
+ setItemWithFocusedInput: F,
180
+ shouldPreventFocusRestore: G,
181
+ setOnFocusOutside: U,
182
+ children: /* @__PURE__ */ t(
183
+ w,
184
+ {
185
+ open: e ?? o,
186
+ onOpenChange: _,
187
+ modal: !1,
188
+ ...i,
189
+ children: a
190
+ }
191
+ )
192
+ }
193
+ )
194
+ }
195
+ );
196
+ }, je = Object.assign(y, {
197
+ displayName: se,
198
+ Root: y,
199
+ experimental_SubRoot: me,
200
+ Trigger: k,
201
+ Content: K,
202
+ Portal: H,
203
+ Sub: N,
204
+ SubTrigger: $,
205
+ SubContent: q,
206
+ Arrow: z,
207
+ Item: J,
208
+ ItemRightSlot: Q,
209
+ Group: X,
210
+ Label: Z,
211
+ CheckboxItem: ee,
212
+ RadioGroup: te,
213
+ RadioItem: ne,
214
+ ItemIndicator: oe,
215
+ Separator: re,
216
+ ItemIcon: ie
217
+ });
218
+ export {
219
+ je as C,
220
+ T as D,
221
+ N as S,
222
+ v as a
223
+ };
@@ -1,5 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { ContextMenuRootProps } from './ContextMenu.props';
3
+ export declare const DEFAULT_IS_AIMING_TOLERANCE = 0;
4
+ export declare const DEFAULT_IS_AIMING_IDLE_TIMEOUT = 200;
3
5
  declare const ContextMenuRoot: ((props: ContextMenuRootProps) => React.JSX.Element) & {
4
6
  displayName: string;
5
7
  Root: (props: ContextMenuRootProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA6H3D,QAAA,MAAM,eAAe,WA9FO,oBAAoB;;kBAApB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJjD,CAAC;AAEH,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,CAAC"}
@@ -1,139 +1,32 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { R as L } from "../../index-BaRUO9dO.mjs";
3
- import { useContextMenu as P } from "./hooks/useContextMenu/useContextMenu.js";
1
+ import "react/jsx-runtime";
2
+ import "../../index-aPaPKjUe.mjs";
3
+ import "./hooks/useContextMenu/useContextMenu.js";
4
4
  import "react";
5
- import { C as T } from "../../useContentPositioning-DWKm83_A.mjs";
5
+ import "../../useContentPositioning-DfyirIME.mjs";
6
6
  import "./components/Content/Content.utils.js";
7
7
  import "./providers/LevelProvider/LevelProvider.js";
8
8
  import "./providers/SubMenuProvider/SubMenuProvider.js";
9
- import { useContextMenuKeyboardNavigation as j } from "./hooks/useContextMenuKeyboardNavigation/useContextMenuKeyboardNavigation.js";
10
- import { Trigger as k } from "./components/Trigger/Trigger.js";
11
- import { Portal as B } from "./components/Portal/Portal.js";
12
- import { Sub as G } from "./components/Sub/Sub.js";
13
- import { SubTrigger as K } from "./components/SubTrigger/SubTrigger.js";
14
- import { SubContent as W } from "./components/SubContent/SubContent.js";
15
- import { Arrow as Y } from "./components/Arrow/Arrow.js";
16
- import { Item as w } from "./components/Item/Item.js";
17
- import { ItemRightSlot as H } from "./components/ItemRightSlot/ItemRightSlot.js";
18
- import { Group as U } from "./components/Group/Group.js";
19
- import { Label as V } from "./components/Label/Label.js";
20
- import { CheckboxItem as q } from "./components/CheckboxItem/CheckboxItem.js";
21
- import { ItemIndicator as z } from "./components/ItemIndicator/ItemIndicator.js";
22
- import { RadioGroup as J } from "./components/RadioGroup/RadioGroup.js";
23
- import { RadioItem as Q } from "./components/RadioItem/RadioItem.js";
24
- import { Separator as X } from "./components/Separator/Separator.js";
25
- import { ItemIcon as Z } from "./components/ItemIcon/ItemIcon.js";
26
- import { __experimental_SubRoot as $ } from "./components/SubRoot/SubRoot.js";
27
- import { DISPLAY_NAME as oo, ContextMenuRootProvider as eo, ContextMenuProvider as to } from "./ContextMenu.context.js";
28
- const no = 200, ro = 150, m = (i) => {
29
- const {
30
- children: p,
31
- mode: s,
32
- isOpen: o,
33
- defaultOpen: a,
34
- shouldCloseCurrentMenuOnSelect: u = !0,
35
- onOpen: d,
36
- onAnimatedOpen: f,
37
- onAiming: l,
38
- ...c
39
- } = i, {
40
- mode: C,
41
- isOpen: e,
42
- triggerRef: O,
43
- contentRef: R,
44
- isAnimatedOpen: n,
45
- animationDuration: I,
46
- hoverCloseDelay: h,
47
- isRootContentBlocked: M,
48
- isChildOpen: g,
49
- itemWithFocusedInput: x,
50
- closeMenuImmediately: r,
51
- onOpenChange: b,
52
- onContentEnter: S,
53
- onContentLeave: A,
54
- onOpenByKeyboard: y,
55
- onChildOpen: v,
56
- onSubmenuOpen: _,
57
- setItemWithFocusedInput: D,
58
- shouldPreventFocusRestore: N,
59
- setOnFocusOutside: E
60
- } = P({
61
- mode: s,
62
- defaultOpen: a,
63
- animationDuration: ro,
64
- hoverCloseDelay: no,
65
- isOpen: o,
66
- onOpen: d,
67
- onAnimatedOpen: f,
68
- onAiming: l
69
- }), { navigationContentRef: F } = j({
70
- isOpen: o ?? e,
71
- isAnimatedOpen: n
72
- });
73
- return /* @__PURE__ */ t(
74
- eo,
75
- {
76
- closeRootMenuImmediately: r,
77
- navigationContentRef: F,
78
- children: /* @__PURE__ */ t(
79
- to,
80
- {
81
- mode: C,
82
- triggerRef: O,
83
- contentRef: R,
84
- isAnimatedOpen: n,
85
- animationDuration: I,
86
- hoverCloseDelay: h,
87
- closeMenuImmediately: r,
88
- onContentEnter: S,
89
- onContentLeave: A,
90
- onOpenByKeyboard: y,
91
- shouldCloseCurrentMenuOnSelect: u,
92
- onChildOpen: v,
93
- isOpen: e,
94
- onSubmenuOpen: _,
95
- isRootContentBlocked: M,
96
- isChildOpen: g,
97
- itemWithFocusedInput: x,
98
- setItemWithFocusedInput: D,
99
- shouldPreventFocusRestore: N,
100
- setOnFocusOutside: E,
101
- children: /* @__PURE__ */ t(
102
- L,
103
- {
104
- open: o ?? e,
105
- onOpenChange: b,
106
- modal: !1,
107
- ...c,
108
- children: p
109
- }
110
- )
111
- }
112
- )
113
- }
114
- );
115
- }, Lo = Object.assign(m, {
116
- displayName: oo,
117
- Root: m,
118
- experimental_SubRoot: $,
119
- Trigger: k,
120
- Content: T,
121
- Portal: B,
122
- Sub: G,
123
- SubTrigger: K,
124
- SubContent: W,
125
- Arrow: Y,
126
- Item: w,
127
- ItemRightSlot: H,
128
- Group: U,
129
- Label: V,
130
- CheckboxItem: q,
131
- RadioGroup: J,
132
- RadioItem: Q,
133
- ItemIndicator: z,
134
- Separator: X,
135
- ItemIcon: Z
136
- });
9
+ import "./hooks/useContextMenuKeyboardNavigation/useContextMenuKeyboardNavigation.js";
10
+ import "./components/Trigger/Trigger.js";
11
+ import "./components/Portal/Portal.js";
12
+ import { C as R, a as b, D as c } from "../../ContextMenu-BUiakpJf.mjs";
13
+ import "./components/SubTrigger/SubTrigger.js";
14
+ import "./components/SubContent/SubContent.js";
15
+ import "./components/Arrow/Arrow.js";
16
+ import "./components/Item/Item.js";
17
+ import "./components/ItemRightSlot/ItemRightSlot.js";
18
+ import "./components/Group/Group.js";
19
+ import "./components/Label/Label.js";
20
+ import "./components/CheckboxItem/CheckboxItem.js";
21
+ import "./components/ItemIndicator/ItemIndicator.js";
22
+ import "./components/RadioGroup/RadioGroup.js";
23
+ import "./components/RadioItem/RadioItem.js";
24
+ import "./components/Separator/Separator.js";
25
+ import "./components/ItemIcon/ItemIcon.js";
26
+ import "./components/SubRoot/SubRoot.js";
27
+ import "./ContextMenu.context.js";
137
28
  export {
138
- Lo as ContextMenu
29
+ R as ContextMenu,
30
+ b as DEFAULT_IS_AIMING_IDLE_TIMEOUT,
31
+ c as DEFAULT_IS_AIMING_TOLERANCE
139
32
  };
@@ -36,6 +36,20 @@ export type ContextMenuRootProps = Omit<RadixDropdownMenuRootProps, 'onOpenChang
36
36
  * The callback is triggered whenever this tracking state changes.
37
37
  */
38
38
  onAiming?: (isAiming: boolean) => void;
39
+ /**
40
+ * Tolerance in pixels for detecting cursor movement toward the menu.
41
+ * Higher values make the detection more lenient.
42
+ *
43
+ * @default 0
44
+ */
45
+ isAimingTolerance?: number;
46
+ /**
47
+ * Timeout in milliseconds before considering cursor movement as idle.
48
+ * Used to reset aiming state when cursor stops moving.
49
+ *
50
+ * @default 200
51
+ */
52
+ isAimingIdleTimeout?: number;
39
53
  };
40
54
  export interface ContextMenuContextProps {
41
55
  /**
@@ -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,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,0BAA0B,EAC1B,cAAc,GAAG,OAAO,GAAG,MAAM,CAClC,GAAG;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD;;;;;OAKG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;OAOG;IACH,QAAQ,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G;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,uBAAuB,EAAE,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,MAAM,OAAO,CAAC;IAC1C;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAClB,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC,GAAG,SAAS,KACtD,IAAI,CAAC;CACX;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,wBAAwB,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACvD"}
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,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,0BAA0B,EAC1B,cAAc,GAAG,OAAO,GAAG,MAAM,CAClC,GAAG;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IAC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CAAC;IAC5C;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,8BAA8B,EAAE,OAAO,CAAC;IACxC;;OAEG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClE;;;;;OAKG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,uBAAuB,EAAE,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,MAAM,OAAO,CAAC;IAC1C;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAClB,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC,GAAG,SAAS,KACtD,IAAI,CAAC;CACX;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,wBAAwB,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACvD"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, Fragment as _, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as d } from "react";
3
- import { A as a } from "../../../../index-BaRUO9dO.mjs";
3
+ import { A as a } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as s } from "../../../../index-L8X2o7IH.mjs";
5
5
  import '../../../../assets/Arrow.css';const f = "_arrow_udm9h_1", i = "_arrow_border_udm9h_8", e = {
6
6
  arrow: f,
@@ -1,10 +1,10 @@
1
1
  import { jsx as Q } from "react/jsx-runtime";
2
2
  import { forwardRef as U, useId as V } from "react";
3
- import { C as W } from "../../../../index-BaRUO9dO.mjs";
3
+ import { C as W } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as X } from "../../../../index-L8X2o7IH.mjs";
5
5
  import { mergeRefs as Z } from "../../../../lib/utils.js";
6
6
  import { useLevelContext as $ } from "../../providers/LevelProvider/LevelProvider.js";
7
- import "../../../../useContentPositioning-DWKm83_A.mjs";
7
+ import "../../../../useContentPositioning-DfyirIME.mjs";
8
8
  import "../Content/Content.utils.js";
9
9
  import { useSubMenu as ee } from "../../hooks/useSubMenu/useSubMenu.js";
10
10
  import "../../providers/SubMenuProvider/SubMenuProvider.js";
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../../index-BaRUO9dO.mjs";
3
+ import "../../../../index-aPaPKjUe.mjs";
4
4
  import "../../../../index-L8X2o7IH.mjs";
5
- import { C as d } from "../../../../useContentPositioning-DWKm83_A.mjs";
5
+ import { C as d } from "../../../../useContentPositioning-DfyirIME.mjs";
6
6
  import "../../../../lib/utils.js";
7
7
  import "../../../../lib/keyboard/index.js";
8
8
  import "../../providers/LevelProvider/LevelProvider.js";
@@ -1,4 +1,4 @@
1
- import { C as e } from "../../../../useContentPositioning-DWKm83_A.mjs";
1
+ import { C as e } from "../../../../useContentPositioning-DfyirIME.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,4 +1,4 @@
1
- import { G as o } from "../../../../index-BaRUO9dO.mjs";
1
+ import { G as o } from "../../../../index-aPaPKjUe.mjs";
2
2
  const p = "ContextMenu.Group", r = o;
3
3
  r.displayName = p;
4
4
  export {
@@ -1,10 +1,10 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { forwardRef as Z, useId as $ } from "react";
3
- import { I as ee } from "../../../../index-BaRUO9dO.mjs";
3
+ import { I as ee } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as N } from "../../../../index-L8X2o7IH.mjs";
5
5
  import { mergeRefs as O } from "../../../../lib/utils.js";
6
6
  import { useLevelContext as ne } from "../../providers/LevelProvider/LevelProvider.js";
7
- import "../../../../useContentPositioning-DWKm83_A.mjs";
7
+ import "../../../../useContentPositioning-DfyirIME.mjs";
8
8
  import "../Content/Content.utils.js";
9
9
  import { useSubMenu as oe } from "../../hooks/useSubMenu/useSubMenu.js";
10
10
  import { useItemInnerFocus as te } from "../../hooks/useItemInnerFocus/useItemInnerFocus.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { forwardRef as e } from "react";
3
- import { d as a } from "../../../../index-BaRUO9dO.mjs";
3
+ import { d as a } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as n } from "../../../../index-L8X2o7IH.mjs";
5
5
  import '../../../../assets/ItemIndicator.css';const s = "_item_indicator_3bhbf_1", d = {
6
6
  item_indicator: s
@@ -1,9 +1,9 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { forwardRef as f } from "react";
3
- import { L as b } from "../../../../index-BaRUO9dO.mjs";
3
+ import { L as b } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as u } from "../../../../index-L8X2o7IH.mjs";
5
5
  import { mergeRefs as d } from "../../../../lib/utils.js";
6
- import "../../../../useContentPositioning-DWKm83_A.mjs";
6
+ import "../../../../useContentPositioning-DfyirIME.mjs";
7
7
  import "../Content/Content.utils.js";
8
8
  import { useSubMenu as L } from "../../hooks/useSubMenu/useSubMenu.js";
9
9
  import "../../providers/LevelProvider/LevelProvider.js";
@@ -1,4 +1,4 @@
1
- import { P as o } from "../../../../index-BaRUO9dO.mjs";
1
+ import { P as o } from "../../../../index-aPaPKjUe.mjs";
2
2
  const t = "ContextMenu.Portal", a = o;
3
3
  a.displayName = t;
4
4
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { a as t } from "../../../../index-BaRUO9dO.mjs";
2
+ import { R as t } from "../../../../index-aPaPKjUe.mjs";
3
3
  const s = "ContextMenu.RadioGroup", u = (a) => {
4
4
  const { onChange: o, ...e } = a;
5
5
  return /* @__PURE__ */ r(t, { ...e, onValueChange: (n) => {
@@ -1,10 +1,10 @@
1
1
  import { jsx as z } from "react/jsx-runtime";
2
2
  import { forwardRef as G, useId as J } from "react";
3
- import { e as Q } from "../../../../index-BaRUO9dO.mjs";
3
+ import { e as Q } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as U } from "../../../../index-L8X2o7IH.mjs";
5
5
  import { mergeRefs as V } from "../../../../lib/utils.js";
6
6
  import { useLevelContext as W } from "../../providers/LevelProvider/LevelProvider.js";
7
- import "../../../../useContentPositioning-DWKm83_A.mjs";
7
+ import "../../../../useContentPositioning-DfyirIME.mjs";
8
8
  import "../Content/Content.utils.js";
9
9
  import { useSubMenu as X } from "../../hooks/useSubMenu/useSubMenu.js";
10
10
  import "../../providers/SubMenuProvider/SubMenuProvider.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as e } from "react";
3
- import { f as p } from "../../../../index-BaRUO9dO.mjs";
3
+ import { f as p } from "../../../../index-aPaPKjUe.mjs";
4
4
  import { c as m } from "../../../../index-L8X2o7IH.mjs";
5
5
  import '../../../../assets/Separator.css';const c = "_separator_1k8lw_1", n = {
6
6
  separator: c
@@ -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;YAAW,QAAQ;;CAuElC,CAAC"}
1
+ {"version":3,"file":"Sub.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Sub/Sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,eAAO,MAAM,GAAG;YAAW,QAAQ;;CA2ElC,CAAC"}
@@ -1,79 +1,9 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { S as P } from "../../../../index-BaRUO9dO.mjs";
3
- import { ContextMenuMode as v } from "../../ContextMenu.enums.js";
4
- import { useContextMenuSub as D } from "./hooks/useContextMenuSub/useContextMenuSub.js";
5
- import { ContextMenuSubProvider as L, DISPLAY_NAME as r } from "./Sub.context.js";
6
- const N = (i) => {
7
- const {
8
- children: u,
9
- mode: e = v.HOVER,
10
- onOpen: s,
11
- defaultOpen: n,
12
- shouldCloseRootMenuOnSelect: d = !0,
13
- shouldCloseCurrentMenuOnSelect: p = !0,
14
- onAiming: m,
15
- ...l
16
- } = i, {
17
- isOpen: t,
18
- setIsOpen: a,
19
- isAnimatedOpen: O,
20
- handleContentEnter: h,
21
- handleContentLeave: C,
22
- handleOpenChange: c,
23
- triggerId: S,
24
- onOpenByKeyboard: f,
25
- contentRef: g,
26
- triggerRef: M,
27
- onChildOpen: I,
28
- onSubRootOpen: b,
29
- closeMenuImmediately: x,
30
- itemWithFocusedInput: y,
31
- setItemWithFocusedInput: A,
32
- isAiming: R,
33
- handlePointerDownOutside: E
34
- } = D({
35
- displayName: r,
36
- mode: e,
37
- defaultOpen: n,
38
- onOpen: s,
39
- onAiming: m
40
- });
41
- return /* @__PURE__ */ o(
42
- L,
43
- {
44
- mode: e,
45
- isOpen: t,
46
- setIsOpen: a,
47
- isAnimatedOpen: O,
48
- defaultOpen: n,
49
- onContentEnter: h,
50
- onContentLeave: C,
51
- onOpenByKeyboard: f,
52
- triggerId: S,
53
- contentRef: g,
54
- triggerRef: M,
55
- onChildOpen: I,
56
- onSubRootOpen: b,
57
- shouldCloseRootMenuOnSelect: d,
58
- shouldCloseCurrentMenuOnSelect: p,
59
- closeMenuImmediately: x,
60
- itemWithFocusedInput: y,
61
- setItemWithFocusedInput: A,
62
- isAiming: R,
63
- onPointerDownOutside: E,
64
- children: /* @__PURE__ */ o(
65
- P,
66
- {
67
- open: t,
68
- onOpenChange: c,
69
- ...l,
70
- children: u
71
- }
72
- )
73
- }
74
- );
75
- };
76
- N.displayName = r;
1
+ import "react/jsx-runtime";
2
+ import "../../../../index-aPaPKjUe.mjs";
3
+ import "../../ContextMenu.enums.js";
4
+ import { S as a } from "../../../../ContextMenu-BUiakpJf.mjs";
5
+ import "./hooks/useContextMenuSub/useContextMenuSub.js";
6
+ import "./Sub.context.js";
77
7
  export {
78
- N as Sub
8
+ a as Sub
79
9
  };