/** * Copyright Aquera Inc 2023 * * This source code is licensed under the BSD-3-Clause license found in the * LICENSE file in the root directory of this source tree. */ import { TemplateResult } from 'lit'; import '../nile-icon'; import type { CSSResultGroup } from 'lit'; import NileElement, { NileFormControl } from '../internal/nile-element'; /** * Nile icon component. * * @tag nile-input * */ export declare class NileInput extends NileElement implements NileFormControl { static styles: CSSResultGroup; private readonly formControlController; private readonly hasSlotController; input: HTMLInputElement; private hasFocus; title: string; /** * The type of input. Works the same as a native `` element, but only a subset of types are supported. Defaults * to `text`. */ type: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url'; /** The name of the input, submitted as a name/value pair with form data. */ name: string; /** The current value of the input, submitted as a name/value pair with form data. */ value: string; checkNonPrintableChar: boolean; /** The default value of the form control. Primarily used for resetting the form control. */ defaultValue: string; /** The input's size. */ size: 'small' | 'medium' | 'large'; /** Draws a filled input. */ filled: boolean; /** Sets the input to a warning state, changing its visual appearance. */ warning: boolean; /** Sets the input to an error state, changing its visual appearance. */ error: boolean; /** Sets the input to a success state, changing its visual appearance. */ success: boolean; /** Sets the input to a Destructive state, changing its visual appearance. */ destructive: boolean; /** Draws a pill-style input with rounded edges. */ pill: boolean; /** The input's label. If you need to display HTML, use the `label` slot instead. */ label: string; helpText: string; errorMessage: string; /** Adds a clear button when the input is not empty. */ clearable: boolean; /** Disables the input. */ disabled: boolean; /** Placeholder text to show as a hint when the input is empty. */ placeholder: string; /** Makes the input readonly. */ readonly: boolean; /** Adds a button to toggle the password's visibility. Only applies to password types. */ passwordToggle: boolean; /** Determines whether or not the password is currently visible. Only applies to password input types. */ passwordVisible: boolean; /** Hides the browser's built-in increment/decrement spin buttons for number inputs. */ noSpinButtons: boolean; /** * By default, form controls are associated with the nearest containing `