import * as React from 'react'; import { Size } from '../types'; import { BoxProps } from '../Box'; import { FieldWrapperProps } from '../FieldWrapper'; import { IconProps } from '../Icon'; export declare type LocalInputProps = { after?: React.ReactElement; autoComplete?: string; /** Automatically focus on the input */ autoFocus?: boolean; before?: React.ReactElement; /** If the `label` prop is supplied, is it contained inside the input? */ containLabel?: boolean; /** Default value of the input */ defaultValue?: string | string[]; /** Disables the input */ disabled?: boolean; inputProps?: Partial; inputRef?: React.Ref; label?: string; /** Adds a cute loading indicator to the input field */ isLoading?: boolean; /** Makes the input required and sets aria-invalid to true */ isRequired?: boolean; /** Name of the input field */ name?: string; /** Alters the size of the input. Can be "small", "medium" or "large" */ size?: Size; mask?: string; /** The maximum (numeric or date-time) value for the input. Must not be less than its minimum (min attribute) value. */ max?: number | string; /** If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the maximum number of characters (in UTF-16 code units) that the user can enter. For other control types, it is ignored. */ maxLength?: number; /** The minimum (numeric or date-time) value for this input, which must not be greater than its maximum (max attribute) value. */ min?: number | string; /** If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in UTF-16 code points) that the user can enter. For other control types, it is ignored. */ minLength?: number; /** This prop indicates whether the user can enter more than one value. This attribute only applies when the type attribute is set to email or file. */ multiple?: boolean; palette?: string; /** Regex pattern to apply to the input */ pattern?: string; /** Hint text to display */ placeholder?: string; /** This prop prevents the user from modifying the value of the input. It is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type (such as button or submit). */ readOnly?: boolean; /** Setting the value of this attribute to true indicates that the element needs to have its spelling and grammar checked. The value default indicates that the element is to act according to a default behavior, possibly based on the parent element's own spellcheck value. The value false indicates that the element should not be checked. */ spellCheck?: boolean; /** Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set. */ step?: number | string; /** State of the input. Can be any color in the palette. */ state?: string; /** Specify the type of input. */ type?: string; /** Value of the input */ value?: string | number | string[]; /** Function to invoke when focus is lost */ onBlur?: React.FocusEventHandler; /** Function to invoke when input has changed */ onChange?: React.FormEventHandler; /** Function to invoke when input is focused */ onFocus?: React.FocusEventHandler; }; export declare type InputProps = Omit & LocalInputProps; export declare const Input: React.ForwardRefExoticComponent & React.RefAttributes> & { displayName?: string; useProps: (props?: Partial, config?: { disableCSSProps?: string[]; themeKey?: string; }) => any; }; export declare function InputIcon(props: IconProps): JSX.Element; export declare type LocalInputFieldProps = { /** Addon component to the input (before). Similar to the addon components in Input. */ addonBefore?: React.ReactElement; /** Addon component to the input (after). Similar to the addon components in Input. */ addonAfter?: React.ReactElement; /** Additional props for the Input component */ inputProps?: InputProps; /** If addonBefore or addonAfter exists, then the addons will render vertically. */ orientation?: 'vertical' | 'horizontal'; }; export declare type InputFieldProps = BoxProps & FieldWrapperProps & InputProps & LocalInputFieldProps; export declare const InputField: React.ForwardRefExoticComponent & React.RefAttributes> & { displayName?: string; useProps: (props?: Partial, config?: { disableCSSProps?: string[]; themeKey?: string; }) => any; };