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,14 +1,14 @@
import * as React from 'react';
import { StandardProps } from '..';
export interface InputProps extends StandardProps<
React.HTMLAttributes<HTMLDivElement>,
InputClassKey,
'onChange' | 'onKeyUp' | 'onKeyDown' | 'defaultValue'
> {
export interface InputProps
extends StandardProps<
React.HTMLAttributes<HTMLDivElement>,
InputClassKey,
'onChange' | 'onKeyUp' | 'onKeyDown' | 'defaultValue'
> {
autoComplete?: string;
autoFocus?: boolean;
inputComponent?: React.ReactNode;
defaultValue?: string | number;
disabled?: boolean;
disableUnderline?: boolean;
@@ -16,6 +16,7 @@ export interface InputProps extends StandardProps<
error?: boolean;
fullWidth?: boolean;
id?: string;
inputComponent?: React.ReactType<InputProps>;
inputProps?:
| React.TextareaHTMLAttributes<HTMLTextAreaElement>
| React.InputHTMLAttributes<HTMLInputElement>;
@@ -28,7 +29,7 @@ export interface InputProps extends StandardProps<
rowsMax?: string | number;
startAdornment?: React.ReactNode;
type?: string;
value?: string | number;
value?: Array<string | number> | string | number;
onClean?: () => void;
onDirty?: () => void;
/**
@@ -59,8 +60,7 @@ export type InputClassKey =
| 'inputSingleline'
| 'inputSearch'
| 'inputMultiline'
| 'fullWidth'
;
| 'fullWidth';
declare const Input: React.ComponentType<InputProps>;