forked from fkhadra/react-contexify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.ts
33 lines (29 loc) · 807 Bytes
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* css classes mapping
* */
export const enum CssClass {
menu = 'contexify',
submenu = 'contexify_submenu',
submenuOpen = 'contexify_submenu-isOpen',
rightSlot = 'contexify_rightSlot',
separator = 'contexify_separator',
item = 'contexify_item',
itemDisabled = 'contexify_item-disabled',
itemContent = 'contexify_itemContent',
itemClickedFeedback = 'contexify_item-feedback',
theme = 'contexify_theme-',
animationWillEnter = 'contexify_willEnter-',
animationWillLeave = 'contexify_willLeave-',
}
export const enum EVENT {
HIDE_ALL,
}
export const NOOP = () => {};
export const hideOnEvents: (keyof GlobalEventHandlersEventMap)[] = [
'resize',
'contextmenu',
'click',
'scroll',
// comment blur in dev so you can toggle console without closing the menu
'blur',
];