igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
23 lines (22 loc) • 945 B
TypeScript
import { type ReactiveController, type ReactiveControllerHost, type ReactiveElement } from 'lit';
import type { Theme, Themes, ThemingControllerConfig } from './types.js';
declare class ThemingController implements ReactiveController {
private readonly _host;
private readonly _themes;
private readonly _options?;
private _theme;
private _variant;
get theme(): Theme;
constructor(host: ReactiveControllerHost & ReactiveElement, themes: Themes, config?: ThemingControllerConfig);
/** @internal */
hostConnected(): void;
/** @internal */
hostDisconnected(): void;
/** @internal */
handleEvent(): void;
private _getStyles;
protected _adoptStyles(): void;
private _handleThemeChanged;
}
export declare function addThemingController(host: ReactiveControllerHost & ReactiveElement, themes: Themes, config?: ThemingControllerConfig): ThemingController;
export type { ThemingController };