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

@@ -3,35 +3,28 @@ import { StandardProps } from '..';
import { ButtonBaseProps } from '../ButtonBase';
import { ButtonBaseClassKey } from '../ButtonBase/ButtonBase';
export interface TabProps extends StandardProps<
ButtonBaseProps,
TabClassKey,
'onChange'
> {
export interface TabProps extends StandardProps<ButtonBaseProps, TabClassKey, 'onChange'> {
disabled?: boolean;
fullWidth?: boolean;
icon?: string | React.ReactElement<any>;
value?: any;
label?: React.ReactNode;
onChange?: (
event: React.ChangeEvent<{ checked: boolean }>,
value: any
) => void;
onChange?: (event: React.ChangeEvent<{ checked: boolean }>, value: any) => void;
onClick?: React.EventHandler<any>;
selected?: boolean;
style?: object;
textColor?: string | 'accent' | 'primary' | 'inherit';
style?: React.CSSProperties;
textColor?: string | 'secondary' | 'primary' | 'inherit';
}
export type TabClassKey =
| ButtonBaseClassKey
| 'rootLabelIcon'
| 'rootAccent'
| 'rootAccentSelected'
| 'rootAccentDisabled'
| 'rootPrimary'
| 'rootPrimarySelected'
| 'rootPrimaryDisabled'
| 'rootSecondary'
| 'rootSecondarySelected'
| 'rootSecondaryDisabled'
| 'rootInherit'
| 'rootInheritSelected'
| 'rootInheritDisabled'
@@ -39,8 +32,7 @@ export type TabClassKey =
| 'wrapper'
| 'labelContainer'
| 'label'
| 'labelWrapped'
;
| 'labelWrapped';
declare const Tab: React.ComponentType<TabProps>;