forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
100 lines (87 loc) · 1.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import 'vuetify/src/util/helpers'
import Vue, { PluginFunction } from 'vue'
declare class Vuetify {
static install: PluginFunction<never>
}
declare interface VuetifyApplication {
bar: number
bottom: number
left: number
right: number
top: number
}
declare interface VuetifyBreakpoint {
height: number
lg: boolean
lgAndDown: boolean
lgAndUp: boolean
lgOnly: boolean
md: boolean
mdAndDown: boolean
mdAndUp: boolean
mdOnly: boolean
name: string
sm: boolean
smAndDown: boolean
smAndUp: boolean
smOnly: boolean
width: number
xl: boolean
xlOnly: boolean
xs: boolean
xsOnly: boolean
}
declare interface VuetifyTheme {
primary: VuetifyThemeItem
accent: VuetifyThemeItem
secondary: VuetifyThemeItem
info: VuetifyThemeItem
warning: VuetifyThemeItem
error: VuetifyThemeItem
success: VuetifyThemeItem
[name: string]: VuetifyThemeItem
}
declare type VuetifyThemeItem = string | number
declare interface VuetifyThemeCache {
get: (parsedTheme: VuetifyTheme) => string | null
set: (parsedTheme: VuetifyTheme, css: string) => void
}
declare interface VuetifyOptions {
themeVariations?: string[]
minifyTheme?: (css: string) => string
themeCache?: VuetifyThemeCache
}
declare type VuetifyGoToEasing =
((t: number) => number) |
'linear' |
'easeInQuad' |
'easeOutQuad' |
'easeInOutQuad' |
'easeInCubic' |
'easeOutCubic' |
'easeInOutCubic' |
'easeInQuart' |
'easeOutQuart' |
'easeInOutQuart' |
'easeInQuint' |
'easeOutQuint' |
'easeInOutQuint'
declare interface VuetifyGoToOptions {
duration?: number
offset?: number
easing?: VuetifyGoToEasing
}
declare interface VuetifyObject {
application: VuetifyApplication
breakpoint: VuetifyBreakpoint
dark: boolean
theme: VuetifyTheme
options: VuetifyOptions
goTo: (target: string | number | HTMLElement | Vue, options?: VuetifyGoToOptions) => void
}
declare module 'vue/types/vue' {
interface Vue {
$vuetify: VuetifyObject
}
}
export default Vuetify