import { type IAnimatable } from '../../../Behaviors/Animatable'; import type { Appearance } from '../../../Types/Appearance'; import { CaretPosition } from '../../../Types/CaretPosition'; import { ExpandDirection } from '../../../Types/ExpandDirection'; import type { FlowDirection } from '../../../Types/FlowDirection'; import type { Variant } from '../../../Types/Variant'; import { CustomElement } from '../../Abstracts/CustomElement'; import type { IExpanderElementProps } from './IExpanderElementProps'; declare const ExpanderElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Rippleable").IRippleableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Disableable").IDisableableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Animatable").IAnimatableProps & IAnimatable) & (abstract new (...args: Array) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Appearanceable").IAppearanceableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Expander - A component that represents an expandable section of content. * * @name Expander * @element mosaik-expander * @category UI Components * * @description This component allows users to expand or collapse a section of content, making it useful for organizing information without overwhelming the user. * * @example * Basic expander with header attribute: * ```html * * * * ``` * * @example * Expander with sub-header and pre-expanded state: * ```html * * * * ``` * * @fires expanded {ExpandedEvent} - Fired when the element is expanded. * @fires collapsed {CollapsedEvent} - Fired when the element is collapsed. * @fires toggled {ToggledEvent} - Fired when the element is toggled. * * @slot icon - The slot for placing an icon in the expander. * @slot actions - The slot for placing action elements in the expander header. * @slot header - The slot for placing header content. * @slot subHeader - The slot for placing sub-header content. * @slot - The default slot for placing main content inside the expander. * * @csspart root - The root part of the expander. * @csspart heading - The part representing the header area. * @csspart focusRing - The focus ring part for accessibility. * @csspart ripple - The ripple effect part for interaction. * @csspart icon - The part representing the icon. * @csspart header - The part representing the header text. * @csspart subHeader - The part representing the sub-header text. * @csspart caret - The part representing the caret or indicator for expansion. * @csspart expandable - The part representing the expandable content area. * @csspart actions - The part representing the actions area in the header. * * @cssprop {String} --expander-font-family - The font-family property for the expander text. * @cssprop {String} --expander-font-size - The font-size property for the expander text. * @cssprop {String} --expander-font-line-height - The line-height property for the expander text. * @cssprop {String} --expander-font-weight - The font-weight property for the expander text. * @cssprop {String} --expander-font-letter-spacing - The letter-spacing property for the expander text. * @cssprop {String} --expander-font-text-decoration - The text-decoration property for the expander text. * @cssprop {String} --expander-font-text-transform - The text-transform property for the expander text. * @cssprop {Color} --expander-background-color - The background-color property for the expander. * @cssprop {Color} --expander-foreground-color - The foreground-color property for the expander. * @cssprop {Color} --expander-border-color - The border-color property for the expander. * @cssprop {String} --expander-border-width - The border-width property for the expander. * @cssprop {String} --expander-border-radius - The border-radius property for the expander. * @cssprop {String} --expander-border-style - The border-style property for the expander. * @cssprop {String} --expander-transition-duration - The transition duration for the expander animations. * @cssprop {String} --expander-transition-mode - The transition mode for the expander animations. * @cssprop {String} --expander-transition-property - The transition property for the expander animations. * @cssprop {String} --expander-shadow-blur - Shadow blur radius for elevation effect * @cssprop {String} --expander-shadow-color - Shadow color for elevation effect * @cssprop {String} --expander-shadow-offset-x - Horizontal shadow offset * @cssprop {String} --expander-shadow-offset-y - Vertical shadow offset * @cssprop {String} --expander-shadow-spread - Shadow spread radius * @cssprop {String} --expander-padding-top - The padding-top property for the expander. * @cssprop {String} --expander-padding-right - The padding-right property for the expander. * @cssprop {String} --expander-padding-bottom - The padding-bottom property for the expander. * @cssprop {String} --expander-padding-left - The padding-left property for the expander. * @cssprop {String} --expander-gap - The gap property for spacing within the expander. * @cssprop {String} --expander-divider-height - The height of the divider within the expander. * * @dependency {ExpanderHeaderElement} - The Expander Header element used in the expander. * @dependency {ExpanderSubHeaderElement} - The Expander Sub Header element used in the expander. * @dependency {IconElement} - The Icon element used within the expander. * @dependency {RippleElement} - The Ripple element for interaction effects. * @dependency {FocusRingElement} - The Focus Ring element for accessibility. * @dependency {TextElement} - The Text element used for text content. * @dependency {StackElement} - The Stack element for layout management. * * @public */ export declare class ExpanderElement extends ExpanderElement_base implements IExpanderElementProps, IAnimatable { private readonly _inheritance; private _expandableElement; private _header; private _subHeader; private _icon; private _direction; private _isExpanded; private _caretPosition; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * @public * @override */ get disabled(): boolean; set disabled(value: boolean); /** * @public * @override */ get appearance(): Appearance; set appearance(value: Appearance); /** * @public * @override */ get variant(): Variant; set variant(value: Variant); /** * @public * @override */ get dir(): FlowDirection; set dir(value: FlowDirection); /** * Gets or sets the `header` property. * * @public * @attr */ get header(): string; set header(value: string); /** * Gets or sets the `subHeader` property. * * @public * @attr */ get subHeader(): string; set subHeader(value: string); /** * Gets or sets the `icon` property. * * @public */ get icon(): string; set icon(value: string); /** * Gets or sets the `direction` property. * When used inside an ExpanderGroup, inherits the group's direction unless explicitly set. * * @public * @attr */ get direction(): ExpandDirection; set direction(value: ExpandDirection); /** * Gets or sets the `isExpanded` property. * * @public * @attr */ get isExpanded(): boolean; set isExpanded(value: boolean); /** * Gets or sets the `caretPosition` property. * * @public * @attr */ get caretPosition(): CaretPosition; set caretPosition(value: CaretPosition); /** * @public */ toggle(): void; /** * @public */ expand(): void; /** * @public */ collapse(): void; /** * @protected * @template */ protected onApplyTemplate(): void; } /** * @public */ export declare namespace ExpanderElement { type Props = IExpanderElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-expander': ExpanderElement; } } export {}; //# sourceMappingURL=ExpanderElement.d.ts.map