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

@@ -9,30 +9,32 @@ import { StandardProps } from '..';
* Since it is not decided via prop, we have create loose typings
* here.
*/
export interface TableCellProps extends StandardProps<
React.ThHTMLAttributes<HTMLTableHeaderCellElement> & React.TdHTMLAttributes<HTMLTableDataCellElement>,
TableCellClassKey
> {
padding?: Padding;
export interface TableCellProps extends StandardProps<TableCellBaseProps, TableCellClassKey> {
component?: React.ReactType<TableCellBaseProps>;
numeric?: boolean;
padding?: Padding;
sortDirection?: SortDirection;
type?: Type;
}
export type Padding =
| 'default'
| 'checkbox'
| 'dense'
| 'none'
;
export type TableCellBaseProps = React.ThHTMLAttributes<HTMLTableHeaderCellElement> &
React.TdHTMLAttributes<HTMLTableDataCellElement>;
export type Padding = 'default' | 'checkbox' | 'dense' | 'none';
export type SortDirection = 'asc' | 'desc' | false;
export type Type = 'head' | 'body' | 'footer';
export type TableCellClassKey =
| 'root'
| 'numeric'
| 'head'
| 'typeHead'
| 'typeBody'
| 'typeFooter'
| 'paddingDefault'
| 'paddingCompact'
| 'paddingCheckbox'
| 'footer'
;
| 'paddingDense'
| 'paddingCheckbox';
declare const TableCell: React.ComponentType<TableCellProps>;