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

@@ -2,52 +2,44 @@ import * as React from 'react';
import { StandardProps, PropTypes } from '..';
import { FormControlProps, FormHelperTextProps } from '../Form';
import { InputProps, InputLabelProps } from '../Input';
import { FormControlClassKey } from '../Form/FormControl'
import { FormControlClassKey } from '../Form/FormControl';
import { SelectProps } from '../Select';
export interface TextFieldProps extends StandardProps<
FormControlProps,
TextFieldClassKey,
'onChange' | 'defaultValue'
> {
export interface TextFieldProps
extends StandardProps<FormControlProps, TextFieldClassKey, 'onChange' | 'defaultValue'> {
autoComplete?: string;
autoFocus?: boolean;
children?: React.ReactNode;
defaultValue?: string | number;
disabled?: boolean;
error?: boolean;
FormHelperTextProps?: FormHelperTextProps;
FormHelperTextProps?: Partial<FormHelperTextProps>;
fullWidth?: boolean;
helperText?: React.ReactNode;
helperTextClassName?: string;
id?: string;
inputClassName?: string;
InputClassName?: string;
InputLabelProps?: InputLabelProps;
inputProps?: Object;
InputProps?: InputProps;
InputLabelProps?: Partial<InputLabelProps>;
InputProps?: Partial<InputProps>;
inputProps?: InputProps['inputProps'];
inputRef?: React.Ref<any>;
label?: React.ReactNode;
labelClassName?: string;
margin?: PropTypes.Margin;
multiline?: boolean;
name?: string;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
placeholder?: string;
required?: boolean;
rootRef?: React.Ref<any>;
rows?: string | number;
rowsMax?: string | number;
select?: boolean;
SelectProps?: Object;
SelectProps?: Partial<SelectProps>;
type?: string;
value?: string | number;
margin?: PropTypes.Margin;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
value?: Array<string | number> | string | number;
}
export type TextFieldClassKey =
| FormControlClassKey
;
export type TextFieldClassKey = FormControlClassKey;
declare const TextField: React.ComponentType<TextFieldProps>;
declare const Input: React.ComponentType<TextFieldProps>;
export default Input;
export default TextField;