-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoptions.ts
More file actions
24 lines (22 loc) · 574 Bytes
/
options.ts
File metadata and controls
24 lines (22 loc) · 574 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export const INPUT_FIELDS = [
'select:not(:disabled):not([aria-hidden])',
'textarea:not(:disabled):not([aria-hidden])',
'input:not(:disabled):not([aria-hidden]):not([type="hidden"])',
] as const;
/** https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex */
export const FOCUSABLE = [
'embed',
'iframe',
'object',
'a[href]',
'area[href]',
'button:not(:disabled):not([aria-hidden])',
...INPUT_FIELDS,
'[contenteditable]',
'[tabindex]:not([tabindex^="-"])',
] as const;
export const TIME = {
FADE: 100,
FLY: 300,
SLIDE: 300,
} as const;