import { LitElement, type CSSResultGroup, type PropertyValues, type TemplateResult } from "lit"; import { HideEvent, ShowEvent } from "./events.ts"; interface TapsiNoticeEventMap extends HTMLElementEventMap { [HideEvent.type]: HideEvent; [ShowEvent.type]: ShowEvent; } /** * @summary Display notice messages that require attention. * * @tag tapsi-notice * * @slot [action] - The slot for actions associated with the notice component, typically a collection of `tapsi-button` components. * @slot [artwork] - The slot for custom artwork the notice component. To display this slot, set the `artwork` property to `custom`. * * @fires {ShowEvent} show - Fires when the tooltip should be visible. * @fires {HideEvent} hide - Fires when the tooltip should be hidden. */ export declare class Notice extends LitElement { /** @internal */ static readonly styles: CSSResultGroup; /** @internal */ static readonly shadowRootOptions: ShadowRootInit; /** @internal */ addEventListener: (type: K, listener: (this: Notice, ev: TapsiNoticeEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void; /** @internal */ removeEventListener: (type: K, listener: (this: Notice, ev: TapsiNoticeEventMap[K]) => void, options?: boolean | EventListenerOptions) => void; /** * Indicates whether the notice is visible or not. * * @prop {boolean} visible * @attr {string} visible * @default false */ visible: boolean; /** * The title of the notice. * * @prop {string} heading * @attr {string} heading * @default "" */ heading: string; /** * The description of the notice. * * @prop {string} description * @attr {string} description * @default "" */ description: string; /** * The color of the notice, indicating the type of message. * * @prop {"success" | "error" | "info" | "warning"} color * @attr {"success" | "error" | "info" | "warning"} color * @default "info" */ color: "success" | "error" | "info" | "warning"; /** * The priority level of the notice. * * High priority uses bolder colors and the role of `alert` * for screen readers, while low priority uses lighter colors * and the role of `status`. * * @prop {"high" | "low"} priority * @attr {"high" | "low"} priority * @default "high" */ priority: "high" | "low"; /** * The artwork of the notice component. * * Setting to `none` hides the artwork. * The `icon` value shows a default icon based on the color, * and `custom` enables the use of the `artwork` slot. * * @prop {"none" | "icon" | "custom"} artwork * @attr {"none" | "icon" | "custom"} artwork * @default "icon" */ artwork: "none" | "icon" | "custom"; /** * The variant of the notice. * * @prop {"standard" | "compact"} variant * @attr {"standard" | "compact"} variant * @default "standard" */ variant: "standard" | "compact"; /** * Indicates whether the notice can be dismissed. * * @prop {boolean} dismissible * @attr {string} dismissible * @default false */ dismissible: boolean; private _hasCustomArtworkSlot; private _hasActionSlot; private _customArtworkSlotNodes; private _actionSlotNodes; constructor(); protected willUpdate(changed: PropertyValues): void; private _handleArtworkSlotChange; private _handleActionSlotChange; /** * Forces the notice to display. */ show(): void; /** * Forces the notice to hide. */ hide(): void; private _renderDismiss; private _renderIconArtwork; private _renderTitle; private _renderDescription; private _renderArtwork; protected render(): TemplateResult; } export {};