Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -1,29 +1,31 @@
import * as React from 'react';
import { StandardProps } from '..';
import { MenuProps } from '../Menu';
export interface SelectInputProps extends StandardProps<{}, SelectInputClassKey> {
autoWidth: boolean;
disabled?: boolean;
native: boolean;
inputRef?: (
ref: HTMLSelectElement | { node: HTMLInputElement; value: SelectInputProps['value'] },
) => void;
MenuProps?: Partial<MenuProps>;
multiple: boolean;
MenuProps?: Object;
name?: string;
native: boolean;
onBlur?: React.FocusEventHandler<any>;
onChange?: (event: React.ChangeEvent<{}>, child: React.ReactNode) => void,
onChange?: (event: React.ChangeEvent<{}>, child: React.ReactNode) => void;
onClose?: (event: React.ChangeEvent<{}>) => void;
onFocus?: React.FocusEventHandler<any>;
onOpen?: (event: React.ChangeEvent<{}>) => void;
open?: boolean;
readOnly?: boolean;
renderValue?: Function;
selectRef?: Function;
renderValue?: (value: SelectInputProps['value']) => React.ReactNode;
SelectDisplayProps?: React.HTMLAttributes<HTMLDivElement>;
tabIndex?: number;
value?: string | number | Array<string | number>;
}
export type SelectInputClassKey =
| 'root'
| 'select'
| 'selectMenu'
| 'disabled'
| 'icon'
;
export type SelectInputClassKey = 'root' | 'select' | 'selectMenu' | 'disabled' | 'icon';
declare const SelectInput: React.ComponentType<SelectInputProps>;