16bfce16
Graham Fairweather
Common enums used...
|
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
34
35
36
37
38
39
40
|
import {
BOTTOM,
DEFAULT,
LARGE,
SMALL,
TOP
} from './constants';
import {
ALT,
ARROWLEFT,
ARROWRIGHT,
CAPSLOCK,
CONTROL,
ENTER,
META,
SHIFT,
TAB,
} from './kbEventKeys';
export const PLACEMENT_LIST = Object.freeze([BOTTOM, TOP]);
export const PLACEMENT_MAP = Object.freeze({
[BOTTOM]: TOP,
[TOP]: BOTTOM,
});
export const SMALL_LARGE_DEFAULT_LIST = Object.freeze([SMALL, LARGE, DEFAULT]);
export const STRING_NUMBER_LIST = Object.freeze([String, Number]);
export const STRING_NUMBER_ARRAY_LIST = Object.freeze([String, Number, Array]);
export const IGNORE_KEY_LIST = Object.freeze([
ALT,
ARROWLEFT,
ARROWRIGHT,
CAPSLOCK,
CONTROL,
ENTER,
META,
SHIFT,
TAB,
]);
|