/** * @file Checkbox * @author fex */ /// import React from 'react'; import { ClassNamesFn } from '../theme'; interface CheckboxProps { type: 'checkbox' | 'radio'; size?: 'sm' | 'lg' | 'small' | 'large'; label?: string; labelClassName?: string; className?: string; onChange?: (value: any) => void; value?: any; inline?: boolean; trueValue?: any; falseValue?: any; disabled?: boolean; readOnly?: boolean; checked?: boolean; name?: string; description?: string; classPrefix: string; classnames: ClassNamesFn; partial?: boolean; } export declare class Checkbox extends React.Component { static defaultProps: Pick; handleCheck(e: React.ChangeEvent): void; render(): JSX.Element; } declare const _default: { new (props: (Pick, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps) | Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>): { render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: Pick, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps, context: any): { render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "label" | "value" | "name" | "size" | "inline" | "disabled" | "description" | "onChange" | "checked" | "readOnly" | "labelClassName" | "partial"> & Partial, "type" | "trueValue" | "falseValue">> & Partial, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: typeof Checkbox; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof Checkbox; }; export default _default;