import { type IAnimatable } from '../../../Behaviors/Animatable'; import { TextOverflow } from '../../../Types/TextOverflow'; import { CustomElement } from '../../Abstracts/CustomElement'; import { IErrorElementProps } from './IErrorElementProps'; declare const ErrorElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Animatable").IAnimatableProps & IAnimatable) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Error - A visual component for displaying error messages with optional icons and animations. * * @description * The Error component provides a consistent way to display error messages, validation feedback, and * warning text across your application. It supports configurable text overflow handling (truncate or wrap), * optional icon slots for visual indicators, and built-in shake and fade-out animations to draw attention * to errors. The component is ideal for form validation messages, inline errors, and notification content. * * @name Error * @element mosaik-error * @category Primitives * * @slot icon - Optional icon to display before the error text * * @csspart root - The root container element * @csspart text - The text display element * * @cssprop {String} --error-background-color - Background color of the error container * @cssprop {String} --error-border-color - Border color for the error outline * @cssprop {String} --error-border-radius - Corner rounding radius * @cssprop {String} --error-border-style - Border line style * @cssprop {String} --error-border-width - Border thickness * @cssprop {String} --error-font-family - Font family for error text * @cssprop {String} --error-font-size - Font size for error text * @cssprop {String} --error-font-weight - Font weight for error text * @cssprop {String} --error-foreground-color - Text color * @cssprop {String} --error-gap - Spacing between icon and text * @cssprop {String} --error-shadow - Drop shadow or elevation effect * @cssprop {String} --error-transition-duration - Duration of animations * @cssprop {String} --error-transition-mode - Timing function for transitions * @cssprop {String} --error-transition-property - CSS properties to transition * * @dependency {TextElement} - Text rendering component for error messages * * @example * Basic error message: * ```html * * ``` * * @example * Error with icon: * ```html * * * * ``` * * @example * Error with text wrapping: * ```html * * * ``` * * @example * Animated error appearance: * ```html * * * ``` * * @public */ export declare class ErrorElement extends ErrorElement_base implements IErrorElementProps, IAnimatable { private _text; private _textOverflow; /** * @public */ constructor(); /** * Returns the `is` property. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `text` property. * * @public * @attr */ get text(): string; set text(value: string); /** * Gets or sets the `textOverflow` property. * * @public * @attr */ get textOverflow(): TextOverflow; set textOverflow(value: TextOverflow); /** * @public * @override */ onEnterAnimation(): Promise; /** * @public * @override */ onExitAnimation(): Promise; } /** * @public */ export declare namespace ErrorElement { type Props = IErrorElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-error': ErrorElement; } } export {}; //# sourceMappingURL=ErrorElement.d.ts.map