UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

54 lines (53 loc) 1.64 kB
import React from 'react'; import { IValidationProps } from '../Validation/Validation'; import { ITextFieldPropsWithPassThroughs } from '../TextField/TextField'; interface ITextFieldValidatedErrorProps extends IValidationProps { description?: string; } export interface ITextFieldValidatedProps extends ITextFieldPropsWithPassThroughs { Error?: React.ReactNode; } export interface ITextFieldValidatedState { value: string | number; } declare class TextFieldValidated extends React.Component<ITextFieldValidatedProps, ITextFieldValidatedState> { static displayName: string; static Error: { (_props: ITextFieldValidatedErrorProps): null; displayName: string; peek: { description: string; }; propName: string; }; static peek: { description: string; categories: string[]; }; static reducers: { onChange: typeof import("../TextField/TextField.reducers").onChange; }; static propTypes: { style: any; className: any; Error: any; }; static defaultProps: { style: undefined; isDisabled: boolean; isMultiLine: boolean; onBlur: (...args: any[]) => void; onChange: (...args: any[]) => void; onChangeDebounced: (...args: any[]) => void; onSubmit: (...args: any[]) => void; onKeyDown: (...args: any[]) => void; rows: number; debounceLevel: number; lazyLevel: number; value: string; }; private textFieldRef; focus: () => void; render(): JSX.Element; } export default TextFieldValidated;