UNPKG

@amaui/style

Version:
58 lines (57 loc) 1.51 kB
import AmauiStyle from './AmauiStyle'; import AmauiTheme from './AmauiTheme'; import { TMode, IOptionsRule, IValuesVersion, TStatus, IResponse, IIds, TPriority, ISheets, IAmauiStyleSheetManagerProps, TValueObject } from './interfaces'; interface IProperties { static: Array<{ property: string; value: any; }>; dynamic: Array<{ property: string; value: any; }>; } interface IOptionsStyle { attributes?: Record<string, any>; } interface IOptions { mode?: TMode; pure?: boolean; priority?: TPriority; amauiTheme?: AmauiTheme; amauiStyle?: AmauiStyle; style?: IOptionsStyle; rule?: IOptionsRule; amaui_style_cache?: boolean; name?: string; } declare class AmauiStyleSheetManager { value?: TValueObject; options: IOptions; id: string; status: TStatus; mode: TMode; pure: boolean; priority: TPriority; amauiTheme: AmauiTheme; amauiStyle: AmauiStyle; values: { css: string; }; properties: IProperties; sheets: ISheets; names: IResponse; users: number; constructor(value?: TValueObject, options?: IOptions); private propertiesVersion; set props(value: IAmauiStyleSheetManagerProps); get ids(): IIds; get response(): IValuesVersion; get css(): string; private init; add(props?: any): IResponse; update(value: any): IResponse; remove(ids_?: string[]): void; private versions; } export default AmauiStyleSheetManager;