138 lines
4.4 KiB
TypeScript
138 lines
4.4 KiB
TypeScript
import * as vue from 'vue';
|
|
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
|
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
}
|
|
|
|
declare const VThemeProvider: {
|
|
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
} & {
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
} & {
|
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
default?: (() => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[] | JSX.Element | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
} & {
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
} & {
|
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
default?: (() => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
}, {
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
}, true, {}, vue.SlotsType<Partial<{
|
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
}>>, {
|
|
P: {};
|
|
B: {};
|
|
D: {};
|
|
C: {};
|
|
M: {};
|
|
Defaults: {};
|
|
}, {
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
} & {
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
} & {
|
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
default?: (() => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[] | JSX.Element | undefined, {}, {}, {}, {
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
}>;
|
|
__isFragment?: undefined;
|
|
__isTeleport?: undefined;
|
|
__isSuspense?: undefined;
|
|
} & vue.ComponentOptionsBase<{
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
} & {
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
} & {
|
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
default?: (() => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[] | JSX.Element | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
style: vue.StyleValue;
|
|
tag: string;
|
|
withBackground: boolean;
|
|
}, {}, string, vue.SlotsType<Partial<{
|
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
tag: {
|
|
type: StringConstructor;
|
|
default: string;
|
|
};
|
|
theme: StringConstructor;
|
|
class: vue.PropType<any>;
|
|
style: {
|
|
type: vue.PropType<vue.StyleValue>;
|
|
default: null;
|
|
};
|
|
withBackground: BooleanConstructor;
|
|
}, vue.ExtractPropTypes<{
|
|
tag: {
|
|
type: StringConstructor;
|
|
default: string;
|
|
};
|
|
theme: StringConstructor;
|
|
class: vue.PropType<any>;
|
|
style: {
|
|
type: vue.PropType<vue.StyleValue>;
|
|
default: null;
|
|
};
|
|
withBackground: BooleanConstructor;
|
|
}>>;
|
|
type VThemeProvider = InstanceType<typeof VThemeProvider>;
|
|
|
|
export { VThemeProvider };
|