import { ChangeEvent, HTMLAttributes, InputHTMLAttributes } from 'react'; import { InfoIcon, Label, MessageWithIcon, RequiredIndicator, Unit } from '../TextInputBase/components'; import { ComponentProvidedPropNames, TextInputBaseProps } from '../TextInputBase'; type AdditionalFieldProps = Omit>, ComponentProvidedPropNames>; type BaseProps = TextInputBaseProps; export type TextInputChangeReason = 'clear' | 'change'; export type TextInputNextProps = Omit & { /** * Underlying `input`'s element `type` attribute */ inputType?: 'text' | 'email' | 'password' | 'number' | 'phone' | 'url' | 'search'; /** * Input mode that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard. */ inputMode?: HTMLAttributes['inputMode']; /** * Escape hatch to provide arbitrary html attributes to `input` */ htmlAttributes?: Omit>, ComponentProvidedPropNames | 'type' | 'inputMode'>; /** * An escape hatch to tweak styling of internal elements */ elementsClassNames?: BaseProps['elementsClassNames'] & { numberStepButtons?: string; }; /** * Change handler. `TextInputChangeReason` utility type is provided * @param value * @param changeReason * @param event is not present when input is cleared via clear button */ onChange?: (value: string, changeReason: TextInputChangeReason, event?: ChangeEvent) => void; }; declare const TextInputNextBase: import("react").ForwardRefExoticComponent & { /** * Underlying `input`'s element `type` attribute */ inputType?: 'text' | 'email' | 'password' | 'number' | 'phone' | 'url' | 'search'; /** * Input mode that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard. */ inputMode?: HTMLAttributes['inputMode']; /** * Escape hatch to provide arbitrary html attributes to `input` */ htmlAttributes?: Omit>, ComponentProvidedPropNames | 'type' | 'inputMode'>; /** * An escape hatch to tweak styling of internal elements */ elementsClassNames?: BaseProps['elementsClassNames'] & { numberStepButtons?: string; }; /** * Change handler. `TextInputChangeReason` utility type is provided * @param value * @param changeReason * @param event is not present when input is cleared via clear button */ onChange?: (value: string, changeReason: TextInputChangeReason, event?: ChangeEvent) => void; } & import("react").RefAttributes>; type TextInputNextType = typeof TextInputNextBase & { InfoIcon: typeof InfoIcon; MessageWithIcon: typeof MessageWithIcon; RequiredIndicator: typeof RequiredIndicator; Unit: typeof Unit; Label: typeof Label; }; export declare const TextInputNext: TextInputNextType; export {}; //# sourceMappingURL=TextInputNext.d.ts.map