Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/forms / build / dist / src / new-forms / inputs / ObserverInput.d.ts
Size: Mime:
import * as React from 'react';
import { ValidationStrategy } from '../strategies';
import { ObserverInputProps, InputRenderProps } from './typings';
/**
 * @thought
 *       observable stuff here should be probably in the render of plugin
 * @thought
 *       we *may* want to support `onChange` here
 *       but probably best to allow *only 1 way* (using state)
 */
export declare class ObserverInput<Props extends ObserverInputProps = ObserverInputProps> extends React.Component<Props> {
    static contextType: React.Context<ValidationStrategy>;
    static defaultProps: {
        renderInput: (props: InputRenderProps) => JSX.Element;
        renderWrap: (props: InputRenderProps) => JSX.Element;
        renderLabelText: (props: InputRenderProps) => JSX.Element;
        renderAfterInput: (props: InputRenderProps) => JSX.Element;
        renderError: (props: InputRenderProps) => JSX.Element;
    };
    context: ValidationStrategy;
    observableState: import("./InputState").InputState<import("./typings").AnyObj>;
    handleChange: (event: React.ChangeEvent<any>) => void;
    handleOnFocus: (event: React.FocusEvent<any>) => void;
    handleOnBlur: (event: React.FocusEvent<any>) => void;
    render(): JSX.Element;
}