UNPKG

@carbon/ibm-products-web-components

Version:
66 lines 2.26 kB
/** * @license * * Copyright IBM Corp. 2023, 2024 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { LitElement } from 'lit'; import '@carbon/web-components/es/components/button/index.js'; declare const CDSNotification_base: { new (...args: any[]): { _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>; connectedCallback(): void; disconnectedCallback(): void; }; _hostListeners: { [listenerName: string]: { [type: string]: { options?: boolean | AddEventListenerOptions; }; }; }; } & typeof LitElement; /** * Notification. * @element c4p-notification * @slot title - The Title for the notification. * @slot description - The description for the notification. * @csspart dialog The dialog. * The custom event is fired when a notification is clicked or when the Enter key is pressed on it. * @fires c4p-notification-dismiss - The custom event is fired when the notification is closed by a user gesture. */ declare class CDSNotification extends CDSNotification_base { /** * Sets the type of notification to display: 'error', 'warning', 'success', or 'informational' */ type?: 'error' | 'warning' | 'success' | 'informational'; /** * Sets the timestamp for the notification, typically used to indicate when it was received */ timestamp?: Date; dateTimeLocale: string | undefined; private _handleKeyDown; connectedCallback(): void; render(): import("lit-html").TemplateResult<1>; disconnectedCallback(): void; /** * Handles user-initiated dismiss request of the Notification. * * @param event The event that triggered the click. */ private _dismissSingleNotification; private _fetchIcon; /** * A selector selecting tabbable nodes. */ static get selectorTabbable(): string; /** * The custom event is fired when the notification is closed by a user gesture. */ static get notificationDismiss(): string; static styles: any; } export default CDSNotification; //# sourceMappingURL=notification.d.ts.map