@trimble-oss/moduswebcomponents
Version:
Modus Web Components is a modern, accessible UI library built with Stencil JS that provides reusable web components following Trimble's Modus design system. This updated version focuses on improved flexibility, enhanced theming options, comprehensive cust
25 lines (24 loc) • 905 B
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { IThemeConfig } from '../../providers/theme/theme.types';
/**
* A theme switcher component used to toggle the application theme and/or mode.
*
* Allows consumers to set the initial theme (Modus Classic, Modus Modern, etc.) and end-users to toggle modes (Light, Dark).
*/
export declare class ModusWcThemeSwitcher {
private inheritedAttributes;
/** Reference to the host element */
el: HTMLElement;
/** Custom CSS class to apply to the theme switcher element. */
customClass?: string;
/** An event that fires when the theme is changed. */
themeChange: EventEmitter<IThemeConfig>;
private modeUnsubscribe;
isDarkMode: boolean;
componentWillLoad(): void;
connectedCallback(): void;
disconnectedCallback(): void;
private getClasses;
private handleModeToggle;
render(): any;
}