-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
/
index.d.ts
145 lines (134 loc) · 4.44 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import * as React from 'react';
import { StyledComponentProps } from './styles';
export { StyledComponentProps };
/**
* All standard components exposed by `material-ui` are `StyledComponents` with
* certain `classes`, on which one can also set a top-level `className` and inline
* `style`.
*/
export type StandardProps<C, ClassKey extends string, Removals extends keyof C = never> = Omit<
C & { classes: any },
'classes' | Removals
> &
StyledComponentProps<ClassKey> & {
className?: string;
style?: Partial<React.CSSProperties>;
};
export type PaletteType = 'light' | 'dark';
export interface Color {
50: string;
100: string;
200: string;
300: string;
400: string;
500: string;
600: string;
700: string;
800: string;
900: string;
A100: string;
A200: string;
A400: string;
A700: string;
}
/**
* Utilies types based on:
* https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-307871458
*/
/** @internal */
type Diff<T extends string, U extends string> = ({ [P in T]: P } &
{ [P in U]: never } & { [x: string]: never })[T];
/** @internal */
export type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
export namespace PropTypes {
type Alignment = 'inherit' | 'left' | 'center' | 'right' | 'justify';
type Color = 'inherit' | 'primary' | 'secondary' | 'default';
type Margin = 'none' | 'dense' | 'normal';
}
// From index.js
export { default as AppBar } from './AppBar';
export { default as Avatar } from './Avatar';
export { default as Badge } from './Badge';
export { default as BottomNavigation, BottomNavigationAction } from './BottomNavigation';
export { default as Button } from './Button';
export { default as ButtonBase } from './ButtonBase';
export { default as Card, CardActions, CardContent, CardHeader, CardMedia } from './Card';
export { default as Checkbox } from './Checkbox';
export { default as Chip } from './Chip';
export { default as ClickAwayListener } from './utils/ClickAwayListener';
export { default as CssBaseline } from './CssBaseline';
export {
default as Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from './Dialog';
export { default as Divider } from './Divider';
export { default as Drawer } from './Drawer';
export {
default as ExpansionPanel,
ExpansionPanelActions,
ExpansionPanelDetails,
ExpansionPanelSummary,
} from './ExpansionPanel';
export { FormControl, FormGroup, FormLabel, FormHelperText, FormControlLabel } from './Form';
export { default as Hidden } from './Hidden';
export { default as Icon } from './Icon';
export { default as IconButton } from './IconButton';
export { default as Input, InputLabel, InputAdornment } from './Input';
export { default as Grid } from './Grid';
export { default as GridList, GridListTile, GridListTileBar } from './GridList';
export {
default as List,
ListItem,
ListItemAvatar,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
ListSubheader,
} from './List';
export { default as Menu, MenuItem, MenuList } from './Menu';
export { default as MobileStepper } from './MobileStepper';
export { default as Modal, Backdrop, ModalManager } from './Modal';
export { default as Paper } from './Paper';
export { default as Popover } from './Popover';
export { default as Portal } from './Portal';
export { CircularProgress, LinearProgress } from './Progress';
export { default as Radio, RadioGroup } from './Radio';
export { default as Select } from './Select';
export { default as Snackbar, SnackbarContent } from './Snackbar';
export { default as Stepper, Step, StepButton, StepContent, StepIcon, StepLabel } from './Stepper';
export {
createMuiTheme,
jssPreset,
MuiThemeProvider,
StyleRulesCallback,
Theme,
withStyles,
WithStyles,
withTheme,
WithTheme,
} from './styles';
import * as colors from './colors';
export { colors };
export { default as SvgIcon } from './SvgIcon';
export { default as SwipeableDrawer } from './SwipeableDrawer';
export { default as Switch } from './Switch';
export {
default as Table,
TableBody,
TableCell,
TableFooter,
TableHead,
TablePagination,
TableRow,
TableSortLabel,
} from './Table';
export { default as Tabs, Tab } from './Tabs';
export { default as Typography } from './Typography';
export { default as TextField } from './TextField';
export { default as Toolbar } from './Toolbar';
export { default as Tooltip } from './Tooltip';
export { Slide, Grow, Fade, Collapse, Zoom } from './transitions';
export { default as withWidth } from './utils/withWidth';