UNPKG

@flexis/ui

Version:

Styleless React Components

37 lines 1.43 kB
import { LiHTMLAttributes, ReactNode, ChangeEvent, PureComponent } from 'react'; import PropTypes from 'prop-types'; import { CombinePropsAndAttributes } from '../../helpers'; import { SelectValue } from '../common/types'; interface ISelfProps { optionId?: string; id?: string; type?: 'radio' | 'checkbox'; name?: string; value?: SelectValue; checked?: boolean; disabled?: boolean; children: ReactNode; onChange?(value: SelectValue, event: ChangeEvent): any; } export declare type ICustomFlatSelectOptionProps = CombinePropsAndAttributes<ISelfProps, LiHTMLAttributes<HTMLLIElement>>; export declare class CustomFlatSelectOption extends PureComponent<ICustomFlatSelectOptionProps> { static propTypes: { id: PropTypes.Requireable<string>; type: PropTypes.Requireable<string>; name: PropTypes.Requireable<string>; onChange: PropTypes.Requireable<(...args: any[]) => any>; value: PropTypes.Requireable<string | number | boolean | (string | number | boolean)[]>; checked: PropTypes.Requireable<boolean>; disabled: PropTypes.Requireable<boolean>; children: PropTypes.Validator<PropTypes.ReactNodeLike>; }; static defaultProps: { checked: boolean; disabled: boolean; }; render(): JSX.Element; private onChange; private onFaceClick; } export {}; //# sourceMappingURL=CustomFlatSelectOption.d.ts.map