@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
28 lines (27 loc) • 1.29 kB
TypeScript
import { Store } from "@omnia/fx/stores";
import { ThemeDefinitionV2 } from "../../shared/models";
export declare class ThemeStoreV2 extends Store {
private currentTheme;
constructor();
onActivated(): void;
onDisposing(): void;
/**
* Implementation of getters
*/
getters: {
colorSchema: (colorSchemaType: string) => import("@omnia/fx-models").ColorSchema;
typography: (typographyType: string) => import("@omnia/fx-models").TypographyType;
color: (colorSchemaType: string, colorType: string) => string;
colorDefinition: (colorSchemaType: string, colorType: string) => import("@omnia/fx-models").ColorDefinition;
complementaryColorType: (colorType: string) => string;
complementaryColor: (colorSchemaType: string, colorType: string) => string;
complementaryColorDefinition: (colorSchemaType: string, colorType: string) => import("@omnia/fx-models").ColorDefinition;
currentTheme: () => ThemeDefinitionV2;
};
/**
* Implementation of mutations
*/
mutations: {
setTheme: import("@omnia/fx/stores").StoreMutation<(themeDefinition: ThemeDefinitionV2) => void, (themeDefinition: ThemeDefinitionV2) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
};
}