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,37 +1,41 @@
import * as React from 'react';
import { StandardProps } from '..';
import { TableCellProps, TableCellClassKey } from './TableCell.d'
import { TableCellProps, TableCellClassKey } from './TableCell.d';
import { IconButtonProps } from '../IconButton/IconButton';
interface LabelDisplayedRowsArgs {
export interface LabelDisplayedRowsArgs {
from: number;
to: number;
count: number;
page: number;
}
export interface TablePaginationProps extends StandardProps<
TableCellProps,
TablePaginationClassKey
> {
export interface TablePaginationProps
extends StandardProps<TablePaginationBaseProps, TablePaginationClassKey> {
Actions?: React.ReactType<TablePaginationBaseProps>;
backIconButtonProps?: Partial<IconButtonProps>;
component?: React.ReactType<TablePaginationBaseProps>;
count: number;
labelDisplayedRows?: (paginationInfo: LabelDisplayedRowsArgs) => Node;
labelRowsPerPage?: Node;
labelDisplayedRows?: (paginationInfo: LabelDisplayedRowsArgs) => React.ReactNode;
labelRowsPerPage?: React.ReactNode;
nextIconButtonProps?: Partial<IconButtonProps>;
onChangePage: (event: React.MouseEvent<HTMLButtonElement> | null, page: number) => void;
onChangeRowsPerPage: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
onChangeRowsPerPage?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
page: number;
rowsPerPage: number;
rowsPerPageOptions?: number[];
}
export type TablePaginationBaseProps = TableCellProps;
export type TablePaginationClassKey =
| TableCellClassKey
| 'cell'
| 'toolbar'
| 'spacer'
| 'select'
| 'caption'
| 'input'
| 'selectRoot'
| 'actions'
;
| 'select';
declare const TablePagination: React.ComponentType<TablePaginationProps>;