import { LitElement } from "lit"; import "@m3e/web/icon-button"; declare const M3eSearchBarElement_base: import("../core/shared/mixins/Constructor").Constructor & typeof LitElement; /** * A bar that provides a prominent entry point for search. * * @description * The `m3e-search-bar` component provides a prominent entry point for search, * capturing user input and emitting `query` and `clear` events as the text * changes. It reflects focus and interaction states through customizable CSS * properties for container, icons, and text styling. * * @example * The following example illustrates typical usage with a leading icon and the * ability to clear the current search text. * ```html * * * * * ``` * * @tag m3e-search-bar * * @attr clearable - Whether the bar presents a button used to clear the search term. * @attr clear-label - The accessible label given to the button used to clear the search term. * * @slot leading - Renders content before the input of the bar. * @slot input - Renders the input of the bar. * @slot trailing - Renders content after the input of the bar. * * @fires clear - Dispatched when the search term is cleared. * * @cssprop --m3e-search-bar-container-color - Background color of the search bar container. * @cssprop --m3e-search-bar-leading-icon-color - Color of the leading icon. * @cssprop --m3e-search-bar-trailing-icon-color - Color of the trailing icon. * @cssprop --m3e-search-bar-container-height - Height of the search bar container. * @cssprop --m3e-search-bar-container-shape - Shape (border radius) of the search bar container. * @cssprop --m3e-search-bar-icon-size - Size of icons inside the search bar. * @cssprop --m3e-search-bar-supporting-text-color - Color of the supporting text. * @cssprop --m3e-search-bar-supporting-text-font-size - Font size of the supporting text. * @cssprop --m3e-search-bar-supporting-text-font-weight - Font weight of the supporting text. * @cssprop --m3e-search-bar-supporting-text-line-height - Line height of the supporting text. * @cssprop --m3e-search-bar-supporting-text-tracking - Letter spacing of the supporting text. * @cssprop --m3e-search-bar-input-color - Color of the input text. * @cssprop --m3e-search-bar-input-text-font-size - Font size of the input text. * @cssprop --m3e-search-bar-input-text-font-weight - Font weight of the input text. * @cssprop --m3e-search-bar-input-text-line-height - Line height of the input text. * @cssprop --m3e-search-bar-input-text-tracking - Letter spacing of the input text. * @cssprop --m3e-search-bar-leading-space - Space before the leading icon. * @cssprop --m3e-search-bar-trailing-space - Space after the trailing icon. * @cssprop --m3e-search-bar-no-actions-leading-space - Leading padding when no actions are present. * @cssprop --m3e-search-bar-no-actions-trailing-space - Trailing padding when no actions are present. * @cssprop --m3e-search-bar-leading-actions-trailing-space - Space between leading actions and the input. * @cssprop --m3e-search-bar-trailing-actions-leading-space - Space between the input and trailing actions. * @cssprop --m3e-search-bar-actions-gap - Gap between action icons. */ export declare class M3eSearchBarElement extends M3eSearchBarElement_base { #private; /** The styles of the element. */ static styles: import("lit").CSSResultGroup; /** * Whether the bar presents a button used to clear the search term. * @default false */ clearable: boolean; /** * The accessible label given to the button used to clear the search term. * @default "Clear" */ clearLabel: string; /** Clears the search term. */ clear(): void; /** @inheritdoc */ protected render(): unknown; } interface M3eSearchBarElementEventMap extends HTMLElementEventMap { clear: Event; } export interface M3eSearchBarElement { addEventListener(type: K, listener: (this: M3eSearchBarElement, ev: M3eSearchBarElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: M3eSearchBarElement, ev: M3eSearchBarElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare global { interface HTMLElementTagNameMap { "m3e-search-bar": M3eSearchBarElement; } } export {}; //# sourceMappingURL=SearchBarElement.d.ts.map