@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
46 lines • 1.73 kB
TypeScript
import { LitElement, type TemplateResult } from 'lit';
declare global {
interface HTMLElementTagNameMap {
'mdc-search-bar': MDCSearchBar;
}
}
declare const MDCSearchBar_base: Omit<typeof LitElement, "prototype"> & (new () => LitElement & import("../focus-ring/focus-ring-options.mixin").IMixinFocusRingOption);
export declare class MDCSearchBar extends MDCSearchBar_base {
static shadowRootOptions: ShadowRootInit;
static styles: import("lit").CSSResult;
focusRingInward: boolean;
get focusRingControl(): HTMLElement | null;
supportingText: string;
hideAvatar: boolean;
value: string;
protected hasLeadingIcon: boolean;
protected hasTrailingIcon: boolean;
protected hasAvatar: boolean;
private avatarElement;
private inputElement;
protected render(): TemplateResult;
protected renderLeadingIcon(): TemplateResult<1>;
protected renderTrailingIcon(): TemplateResult<1>;
protected renderInput(): TemplateResult<1>;
protected renderTouchTarget(): TemplateResult<1>;
protected renderAvatar(): TemplateResult<1>;
protected renderDefaultAvatar(): TemplateResult<1>;
protected renderAvatarIcon(): TemplateResult<1>;
protected getRenderClasses(): {
'has-leading-icon': boolean;
'has-trailing-icon': boolean;
'has-avatar': boolean;
'hide-avatar': boolean;
};
private handleAvatarClick;
private handleInputFocus;
private handleInput;
private handleChange;
private handleKeydown;
private dispatchValueEvent;
private handleLeadingIconSlotChange;
private handleTrailingIconSlotChange;
private handleAvatarSlotChange;
}
export {};
//# sourceMappingURL=search-bar.d.ts.map