1 | import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2 | import { type Numeric } from '../utils';
|
3 | export type ConfigProviderTheme = 'light' | 'dark';
|
4 | export type ConfigProviderThemeVarsScope = 'local' | 'global';
|
5 | export type ConfigProviderProvide = {
|
6 | iconPrefix?: string;
|
7 | };
|
8 | export declare const CONFIG_PROVIDER_KEY: InjectionKey<ConfigProviderProvide>;
|
9 | export type ThemeVars = PropType<Record<string, Numeric>>;
|
10 | export declare const configProviderProps: {
|
11 | tag: {
|
12 | type: PropType<keyof HTMLElementTagNameMap>;
|
13 | default: keyof HTMLElementTagNameMap;
|
14 | };
|
15 | theme: {
|
16 | type: PropType<ConfigProviderTheme>;
|
17 | default: ConfigProviderTheme;
|
18 | };
|
19 | zIndex: NumberConstructor;
|
20 | themeVars: ThemeVars;
|
21 | themeVarsDark: ThemeVars;
|
22 | themeVarsLight: ThemeVars;
|
23 | themeVarsScope: {
|
24 | type: PropType<ConfigProviderThemeVarsScope>;
|
25 | default: ConfigProviderThemeVarsScope;
|
26 | };
|
27 | iconPrefix: StringConstructor;
|
28 | };
|
29 | export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
|
30 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
31 | tag: {
|
32 | type: PropType<keyof HTMLElementTagNameMap>;
|
33 | default: keyof HTMLElementTagNameMap;
|
34 | };
|
35 | theme: {
|
36 | type: PropType<ConfigProviderTheme>;
|
37 | default: ConfigProviderTheme;
|
38 | };
|
39 | zIndex: NumberConstructor;
|
40 | themeVars: ThemeVars;
|
41 | themeVarsDark: ThemeVars;
|
42 | themeVarsLight: ThemeVars;
|
43 | themeVarsScope: {
|
44 | type: PropType<ConfigProviderThemeVarsScope>;
|
45 | default: ConfigProviderThemeVarsScope;
|
46 | };
|
47 | iconPrefix: StringConstructor;
|
48 | }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
49 | tag: {
|
50 | type: PropType<keyof HTMLElementTagNameMap>;
|
51 | default: keyof HTMLElementTagNameMap;
|
52 | };
|
53 | theme: {
|
54 | type: PropType<ConfigProviderTheme>;
|
55 | default: ConfigProviderTheme;
|
56 | };
|
57 | zIndex: NumberConstructor;
|
58 | themeVars: ThemeVars;
|
59 | themeVarsDark: ThemeVars;
|
60 | themeVarsLight: ThemeVars;
|
61 | themeVarsScope: {
|
62 | type: PropType<ConfigProviderThemeVarsScope>;
|
63 | default: ConfigProviderThemeVarsScope;
|
64 | };
|
65 | iconPrefix: StringConstructor;
|
66 | }>> & Readonly<{}>, {
|
67 | tag: keyof HTMLElementTagNameMap;
|
68 | theme: ConfigProviderTheme;
|
69 | themeVarsScope: ConfigProviderThemeVarsScope;
|
70 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
71 | export default _default;
|