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/ui / dist / inputs / Incrementer / typings.d.ts
Size: Mime:
import { ReactNode, ChangeEvent } from 'react';
export interface IncrementerProps {
    className?: string;
    children?: ReactNode;
    title?: string;
    nowrap?: boolean;
    step?: number;
    minValue?: number;
    maxValue?: number;
    defaultValue?: number;
    onValueChange?: (value: number) => void;
    state?: IncrementerStateType;
}
export interface IncrementerBoxProps {
    state: IncrementerStateType;
}
export declare type InputChangeEvent = ChangeEvent<HTMLInputElement>;
export declare type InputFocusEvent = ChangeEvent<HTMLInputElement>;
export interface IncrementerStateType {
    count: number;
    shouldIncrement: boolean;
    shouldDecrement: boolean;
    incrementCount(): void;
    decrementCount(): void;
    handleChange(event: InputChangeEvent): void;
    handleBlur(event: InputFocusEvent): void;
    update(props: IncrementerProps): void;
}