init component
This commit is contained in:
37
node_modules/buetify/lib/composables/theme/useTheme.d.ts
generated
vendored
Executable file
37
node_modules/buetify/lib/composables/theme/useTheme.d.ts
generated
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
import { PropType, ExtractPropTypes } from 'vue';
|
||||
import { ThemeColorMap } from '../../types/ThemeColorMap';
|
||||
import { ThemeInjection } from './provideTheme';
|
||||
export declare const DEFAULT_THEME_COLOR_MAP: ThemeColorMap;
|
||||
export declare function useThemePropsDefinition(themeMap: ThemeColorMap, defaultIsThemeable?: boolean): {
|
||||
themeMap: {
|
||||
type: PropType<ThemeColorMap>;
|
||||
required: boolean;
|
||||
default: import("fp-ts/lib/function").Lazy<ThemeColorMap>;
|
||||
};
|
||||
isThemeable: {
|
||||
type: PropType<boolean>;
|
||||
required: boolean;
|
||||
default: boolean;
|
||||
};
|
||||
};
|
||||
export declare type ThemeProps = ExtractPropTypes<ReturnType<typeof useThemePropsDefinition>>;
|
||||
export declare type FunctionalThemeProps = Partial<ThemeProps>;
|
||||
export declare const DefaultThemePropsDefinition: {
|
||||
themeMap: {
|
||||
type: PropType<ThemeColorMap>;
|
||||
required: boolean;
|
||||
default: import("fp-ts/lib/function").Lazy<ThemeColorMap>;
|
||||
};
|
||||
isThemeable: {
|
||||
type: PropType<boolean>;
|
||||
required: boolean;
|
||||
default: boolean;
|
||||
};
|
||||
};
|
||||
export declare function getThemeClasses(themeMap: ThemeColorMap, themeInjection: ThemeInjection): string[];
|
||||
export declare function useTheme(props?: ThemeProps): {
|
||||
currentTheme: import("vue").Ref<import("fp-ts/lib/Option").Option<import("./provideTheme").ThemeVariant>>;
|
||||
setTheme: (theme: import("./provideTheme").ThemeVariant) => void;
|
||||
toggleTheme: () => void;
|
||||
themeClasses: import("vue").ComputedRef<string[]>;
|
||||
};
|
||||
Reference in New Issue
Block a user