UNPKG

@up-group-ui/react-controls

Version:
52 lines (51 loc) 2.68 kB
/// <reference types="react" /> import { BaseControlComponent } from '../_Common/BaseControl/BaseControl'; import { UpInputProps } from './types'; export declare const RequiredMark: ({ markStyle }: { markStyle: any; }) => JSX.Element; declare class UpInput extends BaseControlComponent<UpInputProps, any> { static defaultProps: UpInputProps; constructor(p: any); getValue(event: any): any; inputHandleChangeEvent: (event: any) => void; clearValue: () => void; showError(): any; showSuccess(): boolean; shouldComponentUpdate(nextProps: any, nextState: any): boolean; renderControl(): JSX.Element; } export { UpInput }; declare const _default: { new (props: any, context: any): { render(): JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<UpInputProps, "children" | "theme">>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly<Omit<UpInputProps, "children" | "theme">> & Readonly<{ children?: import("react").ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: import("react").ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Omit<UpInputProps, "children" | "theme">>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<UpInputProps, "children" | "theme">>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Omit<UpInputProps, "children" | "theme">>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Omit<UpInputProps, "children" | "theme">>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<UpInputProps, "children" | "theme">>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Omit<UpInputProps, "children" | "theme">>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<UpInputProps, "children" | "theme">>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextTypes: { theme: import("prop-types").Requireable<object>; }; contextType?: import("react").Context<any>; }; export default _default;