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 / new-forms / plugins / TogglePlugin.d.ts
Size: Mime:
import * as React from 'react';
import { Value } from '../typings';
import { InputProps } from '../inputs/typings';
import { InputState } from '../inputs/InputState';
export declare const StyledLabel: import("styleh-components/dist/styles/styled-components/typings").StyledComponentClass<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, any, React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>;
/**
 * @see https://www.styled-components.com/docs/faqs#how-can-i-override-styles-with-higher-specificity
 */
export declare const StyledToggle: import("styleh-components/dist/styles/styled-components/typings").StyledComponentClass<any, any, any>;
declare class TogglePlugin extends React.Component<InputProps> {
    static isSatisfiedByProps(props: {
        type: string;
    }): boolean;
    static defaultState: (inputState: InputState<import("../inputs/typings").AnyObj>) => {
        tooltip: string;
        serializer: (state: InputState<import("../inputs/typings").AnyObj>) => {
            [x: string]: boolean;
        };
        validator: (value: Value) => boolean;
    };
    handleClick: (args?: any) => void;
    renderLabel: () => JSX.Element;
    render(): JSX.Element;
}
export { TogglePlugin };
export default TogglePlugin;