import { LitElement, PropertyValues, TemplateResult } from "lit-element"; import { EventListenerSubscription } from "../util/event"; /** * Properties of the label. */ export interface ILabelProperties { required: boolean; nowrap: boolean; for?: string; } /** * Make form elements more accessible. * @slot - Default content. If the first element is a form element, clicks on the entire label will be re-fired upon that element. * @cssprop --label-font-size - Font size * @cssprop --label-font-family - Font family * @cssprop --label-line-height - Line height * @cssprop --label-color - Color. * @cssprop --label-required-color - Color of the required astrix */ export declare class Label extends LitElement implements ILabelProperties { static styles: import("lit-element").CSSResult[]; /** * Styles the label as required. * @attr */ required: boolean; /** * Caps the label element with ellipsis if overflowing. * @attr */ nowrap: boolean; /** * Query of the form element click events are re-fired upon. * @attr */ for?: string; /** * Event listener subscriptions. */ protected listeners: EventListenerSubscription[]; /** * Hooks up the element. * @param props */ firstUpdated(props: PropertyValues): void; /** * Tears down the element. */ disconnectedCallback(): void; /** * Returns the target element. */ getTargetElement(): Element | null; /** * Updates the aria attributes. */ protected updateAria(): void; /** * Refires the click event on the target. */ protected refireClick(e: MouseEvent): void; /** * Returns the template for the element. */ protected render(): TemplateResult; } declare global { interface HTMLElementTagNameMap { "wl-label": Label; } }