@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
40 lines (39 loc) • 1.38 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
/**
* A customizable alert component used to inform the user about important events.
*
* The component supports `<slot>` elements for injecting custom content and buttons.
*/
export declare class ModusWcAlert {
private inheritedAttributes;
/** Reference to the host element */
el: HTMLElement;
/** The description of the alert. */
alertDescription?: string;
/** The title of the alert. */
alertTitle: string;
/** Custom CSS class to apply to the outer div element. */
customClass?: string;
/** Time taken to dismiss the alert in milliseconds */
delay?: number;
/** Whether to disable the icon */
disableIcon?: boolean;
/** Whether the alert has a dismiss button */
dismissible?: boolean;
/** The Modus icon to render. */
icon?: string;
/** The variant of the alert. */
variant?: 'error' | 'info' | 'neutral' | 'success' | 'warning';
/** An event that fires when the alert is dismissed */
dismissClick: EventEmitter;
componentWillLoad(): void;
private getClasses;
private getLeadingIcon;
private timerId;
delayChanged(newDelay: number): void;
dismissElement(): void;
componentDidLoad(): void;
disconnectedCallback(): void;
elementKeyupHandler(event: KeyboardEvent): void;
render(): any;
}