@flexis/ui
Version:
Styleless React Components
28 lines • 1.08 kB
TypeScript
import { InputHTMLAttributes, Ref, CSSProperties, ChangeEvent, ReactNode, PureComponent } from 'react';
import PropTypes from 'prop-types';
import { CombinePropsAndAttributes } from '../../helpers';
interface ISelfProps {
elementRef?: Ref<HTMLInputElement>;
style?: CSSProperties;
disabled?: boolean;
children: ReactNode;
onChange?(files: File[], event: ChangeEvent): any;
}
export declare type IProps = CombinePropsAndAttributes<ISelfProps, InputHTMLAttributes<HTMLInputElement>>;
export default class FileSelect extends PureComponent<IProps> {
static propTypes: {
elementRef: PropTypes.Requireable<(...args: any[]) => any>;
style: PropTypes.Requireable<object>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
disabled: PropTypes.Requireable<boolean>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
};
static defaultProps: {
disabled: boolean;
};
render(): JSX.Element;
private onChange;
private onFaceKeyPress;
}
export {};
//# sourceMappingURL=FileSelect.d.ts.map