import React from "react"; import { PlusAlert as PlusAlertElement } from "../dist/components/alert/index.js"; export type { PlusAlertElement }; export interface PlusAlertProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** When true, the alert will be displayed with an inverted color scheme */ invert?: boolean; /** When true, the alert will be displayed with a dismissible close button */ dismissible?: boolean; /** When true, the alert will be displayed with a full width */ fullWidth?: boolean; /** When true, the alert will be hidden */ hiddenAlert?: boolean; /** Determines the visual style of the alert - filled: Solid background color - outlined: Transparent background with border - dashed: Transparent background with dashed border */ kind?: PlusAlertElement["kind"]; /** The size of the alert */ size?: PlusAlertElement["size"]; /** Sets the status/color variant of the alert - default: Neutral color scheme - primary: Brand color scheme - success: Green color scheme - warning: Yellow color scheme - danger: Red color scheme - info: Blue color scheme */ status?: PlusAlertElement["status"]; /** The message of the alert */ message?: PlusAlertElement["message"]; /** The description of the alert */ description?: PlusAlertElement["description"]; /** The status icon of the alert */ statusIcon?: PlusAlertElement["statusIcon"]; /** The dismiss icon of the alert */ dismissIcon?: PlusAlertElement["dismissIcon"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; /** Emitted when the alert is dismissed */ onPlusDismiss?: (event: CustomEvent) => void; } /** * Alert component that displays important messages to users. * --- * * * ### **Events:** * - **plus-dismiss** - Emitted when the alert is dismissed * * ### **Slots:** * - **message** - The main message content * - **description** - Additional descriptive content * - **prefix** - Custom status icon * - **dismiss** - Custom dismiss button * * ### **CSS Parts:** * - **base** - The main container element * - **status-icon** - The status icon container * - **content** - The content container * - **message** - The message container * - **description** - The description container * - **dismiss** - The dismiss button container */ export const PlusAlert: React.ForwardRefExoticComponent;