-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy pathInput.d.ts
57 lines (54 loc) · 1.09 KB
/
Input.d.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { SvelteComponentTyped } from 'svelte';
import { Color } from './shared';
export type InputType =
| 'button'
| 'checkbox'
| 'color'
| 'date'
| 'datetime-local'
| 'email'
| 'file'
| 'month'
| 'number'
| 'password'
| 'radio'
| 'range'
| 'reset'
| 'search'
| 'select'
| 'submit'
| 'switch'
| 'tel'
| 'text'
| 'textarea'
| 'time'
| 'url'
| 'week';
export interface InputProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['input']> {
bsSize?: 'lg' | 'sm';
color?: Color;
feedback?: string | string[];
inner?: HTMLElement;
invalid?: boolean;
label?: string;
plaintext?: boolean;
reverse?: boolean;
type?: InputType;
valid?: boolean;
files?: FileList;
group?: any;
}
export default class Input extends SvelteComponentTyped<
InputProps,
{
blur: WindowEventMap['blur'];
focus: WindowEventMap['focus'];
keydown: WindowEventMap['keydown'];
keypress: WindowEventMap['keypress'];
keyup: WindowEventMap['keyup'];
change: WindowEventMap['change'];
input: WindowEventMap['input'];
},
{ default: {} }
> {}