UNPKG

1.19 kBTypeScriptView Raw
1// Services
2import {
3 Breakpoint,
4 BreakpointOptions,
5} from 'vuetify/types/services/breakpoint'
6import {
7 Icons,
8 IconsOptions,
9} from 'vuetify/types/services/icons'
10import {
11 Lang,
12 LangOptions,
13} from 'vuetify/types/services/lang'
14import {
15 Theme,
16 ThemeOptions,
17} from 'vuetify/types/services/theme'
18
19export interface VuetifyPreset {
20 breakpoint: {
21 scrollBarWidth: Breakpoint['scrollBarWidth']
22 thresholds: Breakpoint['thresholds']
23 }
24 icons: {
25 iconfont: Icons['iconfont']
26 // TODO: Remove partial for v3
27 values: Partial<Icons['values']>
28 }
29 lang: {
30 current: Lang['current']
31 locales: Lang['locales']
32 t: Lang['t']
33 }
34 theme: {
35 dark: Theme['dark']
36 default: Theme['default']
37 disable: Theme['disable']
38 options: Theme['options']
39 themes: Theme['themes']
40 }
41
42 [name: string]: any
43}
44
45export interface UserVuetifyPreset extends GlobalVuetifyPreset {
46 preset?: GlobalVuetifyPreset
47
48 [name: string]: any
49}
50
51export interface GlobalVuetifyPreset {
52 breakpoint?: BreakpointOptions
53 icons?: IconsOptions
54 lang?: LangOptions
55 theme?: ThemeOptions
56
57 [name: string]: any
58}
59
60export interface Presets {
61 preset: UserVuetifyPreset
62}