forked from excid3/tailwindcss-stimulus-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
63 lines (54 loc) · 1.32 KB
/
index.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
58
59
60
61
62
63
import {Controller} from '@hotwired/stimulus';
export class Alert extends Controller {
close(): void;
show(): void;
hide(): void;
}
export class Autosave extends Controller {
save(): void;
success(): void;
error(): void;
setStatus(message: string): void;
}
export class ColorPreview extends Controller {
update(): void;
// `color` is a hex color string
set preview(color: string);
get color(): string;
}
export class Dropdown extends Controller {
toggle(): void;
show(): void;
hide(event: Event): void;
openValueChanged(): void;
get activeTarget(): Element;
get enterTimeout(): number[];
get leaveTimeout(): number[];
}
export class Modal extends Controller {
open(event: Event): void;
close(event: Event): void;
lockScroll(): void;
unlockScroll(): void;
saveScrollPosition(): void;
restoreScrollPosition(): void;
}
export class Popover extends Controller {
mouseOver(): void;
mouseOut(): void;
toggle(): void;
}
export class Slideover extends Dropdown {}
export class Tabs extends Controller {
change(event: Event): void;
showTab(): void;
get index(): number;
set index(value: number);
get anchor(): string | null;
}
export class Toggle extends Controller {
toggle(event: Event): void;
hide(event: Event): void;
show(event: Event): void;
openValueChanged(): void;
}