[material-ui] added missing style prop and isRtl on theme

This commit is contained in:
Ali Taheri
2015-11-14 10:03:49 +03:30
parent efd40e67ff
commit 6fa38f4802
+41 -8
View File
@@ -158,6 +158,7 @@ declare namespace __MaterialUI {
interface CardActionsProps extends React.Props<CardActions> {
expandable?: boolean;
showExpandableButton?: boolean;
style?: React.CSSProperties;
}
export class CardActions extends React.Component<CardActionsProps, {}> {
}
@@ -165,6 +166,7 @@ declare namespace __MaterialUI {
interface CardExpandableProps extends React.Props<CardExpandable> {
onExpanding?: (isExpanded: boolean) => void;
expanded?: boolean;
style?: React.CSSProperties;
}
export class CardExpandable extends React.Component<CardExpandableProps, {}> {
}
@@ -288,6 +290,7 @@ declare namespace __MaterialUI {
size?: number;
color?: string;
innerStyle?: React.CSSProperties;
style?: React.CSSProperties;
}
export class CircularProgress extends React.Component<CircularProgressProps, {}> {
@@ -351,6 +354,7 @@ declare namespace __MaterialUI {
actionFocus?: string;
autoDetectWindowHeight?: boolean;
autoScrollBodyContent?: boolean;
style?: React.CSSProperties;
bodyStyle?: React.CSSProperties;
contentClassName?: string;
contentInnerStyle?: React.CSSProperties;
@@ -502,6 +506,7 @@ declare namespace __MaterialUI {
menuItemClassName?: string;
menuItemClassNameSubheader?: string;
menuItemClassNameLink?: string;
style?: React.CSSProperties;
}
export class LeftNav extends React.Component<LeftNavProps, {}> {
}
@@ -521,6 +526,7 @@ declare namespace __MaterialUI {
subheader?: string;
subheaderStyle?: React.CSSProperties;
zDepth?: number;
style?: React.CSSProperties;
}
export class List extends React.Component<ListProps, {}> {
}
@@ -552,6 +558,7 @@ declare namespace __MaterialUI {
primaryText?: React.ReactNode;
secondaryText?: React.ReactNode;
secondaryTextLines?: number;
style?: React.CSSProperties;
}
export class ListItem extends React.Component<ListItemProps, {}> {
}
@@ -577,6 +584,7 @@ declare namespace __MaterialUI {
toggle?: boolean;
onTouchTap?: TouchTapEventHandler;
isDisabled?: boolean;
style?: React.CSSProperties;
// for MenuItems.Types.NESTED
items?: MenuItemRequest[];
@@ -593,6 +601,7 @@ declare namespace __MaterialUI {
active?: boolean;
onItemTap?: ItemTapEventHandler;
menuItemStyle?: React.CSSProperties;
style?: React.CSSProperties;
}
export class Menu extends React.Component<MenuProps, {}> {
}
@@ -612,6 +621,7 @@ declare namespace __MaterialUI {
onToggle?: (e: React.MouseEvent, key: number, toggled: boolean) => void;
selected?: boolean;
active?: boolean;
style?: React.CSSProperties;
}
export class MenuItem extends React.Component<MenuItemProps, {}> {
static Types: { LINK: string, SUBHEADER: string, NESTED: string, }
@@ -705,6 +715,7 @@ declare namespace __MaterialUI {
size?: number;
status?: string;
top: number;
style?: React.CSSProperties;
}
export class RefreshIndicator extends React.Component<RefreshIndicatorProps, {}> {
}
@@ -713,12 +724,14 @@ declare namespace __MaterialUI {
interface CircleRippleProps extends React.Props<CircleRipple> {
color?: string;
opacity?: number;
style?: React.CSSProperties;
}
export class CircleRipple extends React.Component<CircleRippleProps, {}> {
}
interface FocusRippleProps extends React.Props<FocusRipple> {
color?: string;
style?: React.CSSProperties;
innerStyle?: React.CSSProperties;
opacity?: number;
show?: boolean;
@@ -730,6 +743,7 @@ declare namespace __MaterialUI {
centerRipple?: boolean;
color?: string;
opacity?: number;
style?: React.CSSProperties;
}
export class TouchRipple extends React.Component<TouchRippleProps, {}> {
}
@@ -782,6 +796,7 @@ declare namespace __MaterialUI {
required?: boolean;
step?: number;
value?: number;
style?: React.CSSProperties;
}
export class Slider extends React.Component<SliderProps, {}> {
}
@@ -790,6 +805,7 @@ declare namespace __MaterialUI {
color?: string;
hoverColor?: string;
viewBox?: string;
style?: React.CSSProperties;
}
export class SvgIcon extends React.Component<SvgIconProps, {}> {
}
@@ -1037,6 +1053,7 @@ declare namespace __MaterialUI {
backgroundColor?: string;
borderColor?: string;
};
isRtl: boolean;
}
interface RawTheme {
@@ -1064,7 +1081,7 @@ declare namespace __MaterialUI {
export var Transitions: Transitions;
interface Typography {
textFullBlack:string;
textFullBlack: string;
textDarkBlack: string;
textLightBlack: string;
textMinBlack: string;
@@ -1093,6 +1110,7 @@ declare namespace __MaterialUI {
onShow?: () => void;
onDismiss?: () => void;
openOnMount?: boolean;
style?: React.CSSProperties;
}
export class Snackbar extends React.Component<SnackbarProps, {}> {
}
@@ -1103,6 +1121,7 @@ declare namespace __MaterialUI {
value?: string;
selected?: boolean;
width?: string;
style?: React.CSSProperties;
// Called by Tabs component
onActive?: (tab: Tab) => void;
@@ -1139,8 +1158,9 @@ declare namespace __MaterialUI {
onCellHoverExit?: (row: number, column: number) => void;
onRowHover?: (row: number) => void;
onRowHoverExit?: (row: number) => void;
onRowSelection?: (selectedRows: number[])=> void;
onRowSelection?: (selectedRows: number[]) => void;
selectable?: boolean;
style?: React.CSSProperties;
}
export class Table extends React.Component<TableProps, {}> {
}
@@ -1155,17 +1175,19 @@ declare namespace __MaterialUI {
onCellHoverExit?: (row: number, column: number) => void;
onRowHover?: (row: number) => void;
onRowHoverExit?: (row: number) => void;
onRowSelection?: (selectedRows: number[])=> void;
onRowSelection?: (selectedRows: number[]) => void;
preScanRows?: boolean;
selectable?: boolean;
showRowHover?: boolean;
stripedRows?: boolean;
style?: React.CSSProperties;
}
export class TableBody extends React.Component<TableBodyProps, {}> {
}
interface TableFooterProps extends React.Props<TableFooter> {
adjustForCheckbox?: boolean;
style?: React.CSSProperties;
}
export class TableFooter extends React.Component<TableFooterProps, {}> {
}
@@ -1176,15 +1198,17 @@ declare namespace __MaterialUI {
enableSelectAll?: boolean;
onSelectAll?: (event: React.MouseEvent) => void;
selectAllSelected?: boolean;
style?: React.CSSProperties;
}
export class TableHeader extends React.Component<TableHeaderProps, {}> {
}
interface TableHeaderColumnProps extends React.Props<TableHeaderColumn> {
columnNumber?: number;
onClick?: (e: React.MouseEvent, column: number) => void;
onClick?: (e: React.MouseEvent, column: number) => void;
tooltip?: string;
tooltipStyle?: React.CSSProperties;
style?: React.CSSProperties;
}
export class TableHeaderColumn extends React.Component<TableHeaderColumnProps, {}> {
}
@@ -1202,6 +1226,7 @@ declare namespace __MaterialUI {
selectable?: boolean;
selected?: boolean;
striped?: boolean;
style?: React.CSSProperties;
}
export class TableRow extends React.Component<TableRowProps, {}> {
}
@@ -1211,6 +1236,7 @@ declare namespace __MaterialUI {
hoverable?: boolean;
onHover?: (e: React.MouseEvent, column: number) => void;
onHoverExit?: (e: React.MouseEvent, column: number) => void;
style?: React.CSSProperties;
}
export class TableRowColumn extends React.Component<TableRowColumnProps, {}> {
}
@@ -1289,23 +1315,27 @@ declare namespace __MaterialUI {
namespace Toolbar {
interface ToolbarProps extends React.Props<Toolbar> {
style?: React.CSSProperties;
}
export class Toolbar extends React.Component<ToolbarProps, {}> {
}
interface ToolbarGroupProps extends React.Props<ToolbarGroup> {
float?: string;
style?: React.CSSProperties;
}
export class ToolbarGroup extends React.Component<ToolbarGroupProps, {}> {
}
interface ToolbarSeparatorProps extends React.Props<ToolbarSeparator> {
style?: React.CSSProperties;
}
export class ToolbarSeparator extends React.Component<ToolbarSeparatorProps, {}> {
}
interface ToolbarTitleProps extends React.HTMLAttributes, React.Props<ToolbarTitle> {
text?: string;
text?: string;
style?: React.CSSProperties;
}
export class ToolbarTitle extends React.Component<ToolbarTitleProps, {}> {
}
@@ -1327,9 +1357,9 @@ declare namespace __MaterialUI {
color: string;
}
interface ColorManipulator {
fade(color: string, amount: string|number): string;
lighten(color: string, amount: string|number): string;
darken(color: string, amount: string|number): string;
fade(color: string, amount: string | number): string;
lighten(color: string, amount: string | number): string;
darken(color: string, amount: string | number): string;
contrastRatio(background: string, foreground: string): number;
contrastRatioLevel(background: string, foreground: string): ContrastLevel;
}
@@ -1421,6 +1451,7 @@ declare namespace __MaterialUI {
value?: string | Array<string>;
width?: string | number;
touchTapCloseDelay?: number;
style?: React.CSSProperties;
onKeyboardFocus?: React.FocusEventHandler;
onItemTouchTap?: (e: TouchTapEvent, item: React.ReactElement<any>) => void;
@@ -1440,6 +1471,7 @@ declare namespace __MaterialUI {
value?: string | Array<string>;
width?: string | number;
zDepth?: number;
style?: React.CSSProperties;
}
export class Menu extends React.Component<MenuProps, {}>{
}
@@ -1455,6 +1487,7 @@ declare namespace __MaterialUI {
rightIcon?: React.ReactElement<any>;
secondaryText?: React.ReactNode;
value?: string;
style?: React.CSSProperties;
onEscKeyDown?: React.KeyboardEventHandler;
onItemTouchTap?: (e: TouchTapEvent, item: React.ReactElement<any>) => void;