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,23 +2,20 @@ import * as React from 'react';
import { StandardProps } from '..';
import { ButtonBaseProps, ButtonBaseClassKey } from '../ButtonBase/ButtonBase';
export interface TabsProps extends StandardProps<
ButtonBaseProps,
TabsClassKey,
'onChange'
> {
export interface TabsProps extends StandardProps<ButtonBaseProps, TabsClassKey, 'onChange'> {
action?: (actions: TabsActions) => void;
buttonClassName?: string;
centered?: boolean;
children?: React.ReactNode;
fullWidth?: boolean;
value: any;
indicatorClassName?: string;
indicatorColor?: 'accent' | 'primary' | string;
onChange: (event: React.ChangeEvent<{}>, value: any) => void;
indicatorColor?: 'secondary' | 'primary' | string;
onChange?: (event: React.ChangeEvent<{}>, value: any) => void;
scrollable?: boolean;
scrollButtons?: 'auto' | 'on' | 'off';
TabScrollButton?: React.ReactType,
textColor?: 'accent' | 'primary' | 'inherit' | string;
TabScrollButton?: React.ReactType;
textColor?: 'secondary' | 'primary' | 'inherit' | string;
value: any;
width?: string;
}
@@ -28,8 +25,11 @@ export type TabsClassKey =
| 'scrollingContainer'
| 'fixed'
| 'scrollable'
| 'centered'
;
| 'centered';
export interface TabsActions {
updateIndicator(): void;
}
declare const Tabs: React.ComponentType<TabsProps>;