UNPKG

11 kBTypeScriptView Raw
1import * as React from 'react';
2import { Omit } from '@material-ui/types';
3import { StyledComponentProps } from './styles';
4export { StyledComponentProps };
5
6/**
7 * @deprecated
8 * Import from `@material-ui/types` instead
9 *
10 * TODO: to remove in v5
11 */
12export { Omit };
13
14/**
15 * All standard components exposed by `material-ui` are `StyledComponents` with
16 * certain `classes`, on which one can also set a top-level `className` and inline
17 * `style`.
18 */
19export type StandardProps<C, ClassKey extends string, Removals extends keyof C = never> = Omit<
20 C,
21 'classes' | Removals
22> &
23 StyledComponentProps<ClassKey> & {
24 className?: string;
25 ref?: C extends { ref?: infer RefType } ? RefType : React.Ref<unknown>;
26 style?: React.CSSProperties;
27 };
28
29export type PaletteType = 'light' | 'dark';
30export interface Color {
31 50: string;
32 100: string;
33 200: string;
34 300: string;
35 400: string;
36 500: string;
37 600: string;
38 700: string;
39 800: string;
40 900: string;
41 A100: string;
42 A200: string;
43 A400: string;
44 A700: string;
45}
46
47export namespace PropTypes {
48 type Alignment = 'inherit' | 'left' | 'center' | 'right' | 'justify';
49 type Color = 'inherit' | 'primary' | 'secondary' | 'default';
50 type Margin = 'none' | 'dense' | 'normal';
51}
52
53// From index.js
54import * as colors from './colors';
55
56export { colors };
57export * from './styles';
58
59export { default as AppBar } from './AppBar';
60export * from './AppBar';
61
62export { default as Avatar } from './Avatar';
63export * from './Avatar';
64
65export { default as Backdrop } from './Backdrop';
66export * from './Backdrop';
67
68export { default as Badge } from './Badge';
69export * from './Badge';
70
71export { default as BottomNavigation } from './BottomNavigation';
72export * from './BottomNavigation';
73
74export { default as BottomNavigationAction } from './BottomNavigationAction';
75export * from './BottomNavigationAction';
76
77export { default as Box } from './Box';
78export * from './Box';
79
80export { default as Breadcrumbs } from './Breadcrumbs';
81export * from './Breadcrumbs';
82
83export { default as Button } from './Button';
84export * from './Button';
85
86export { default as ButtonBase } from './ButtonBase';
87export * from './ButtonBase';
88
89export { default as ButtonGroup } from './ButtonGroup';
90export * from './ButtonGroup';
91
92export { default as Card } from './Card';
93export * from './Card';
94
95export { default as CardActionArea } from './CardActionArea';
96export * from './CardActionArea';
97
98export { default as CardActions } from './CardActions';
99export * from './CardActions';
100
101export { default as CardContent } from './CardContent';
102export * from './CardContent';
103
104export { default as CardHeader } from './CardHeader';
105export * from './CardHeader';
106
107export { default as CardMedia } from './CardMedia';
108export * from './CardMedia';
109
110export { default as Checkbox } from './Checkbox';
111export * from './Checkbox';
112
113export { default as Chip } from './Chip';
114export * from './Chip';
115
116export { default as CircularProgress } from './CircularProgress';
117export * from './CircularProgress';
118
119export { default as ClickAwayListener } from './ClickAwayListener';
120export * from './ClickAwayListener';
121
122export { default as Collapse } from './Collapse';
123export * from './Collapse';
124
125export { default as Container } from './Container';
126export * from './Container';
127
128export { default as CssBaseline } from './CssBaseline';
129export * from './CssBaseline';
130
131export { default as Dialog } from './Dialog';
132export * from './Dialog';
133
134export { default as DialogActions } from './DialogActions';
135export * from './DialogActions';
136
137export { default as DialogContent } from './DialogContent';
138export * from './DialogContent';
139
140export { default as DialogContentText } from './DialogContentText';
141export * from './DialogContentText';
142
143export { default as DialogTitle } from './DialogTitle';
144export * from './DialogTitle';
145
146export { default as Divider } from './Divider';
147export * from './Divider';
148
149export { default as Drawer } from './Drawer';
150export * from './Drawer';
151
152export { default as ExpansionPanel } from './ExpansionPanel';
153export * from './ExpansionPanel';
154
155export { default as ExpansionPanelActions } from './ExpansionPanelActions';
156export * from './ExpansionPanelActions';
157
158export { default as ExpansionPanelDetails } from './ExpansionPanelDetails';
159export * from './ExpansionPanelDetails';
160
161export { default as ExpansionPanelSummary } from './ExpansionPanelSummary';
162export * from './ExpansionPanelSummary';
163
164export { default as Fab } from './Fab';
165export * from './Fab';
166
167export { default as Fade } from './Fade';
168export * from './Fade';
169
170export { default as FilledInput } from './FilledInput';
171export * from './FilledInput';
172
173export { default as FormControl } from './FormControl';
174export * from './FormControl';
175
176export { default as FormControlLabel } from './FormControlLabel';
177export * from './FormControlLabel';
178
179export { default as FormGroup } from './FormGroup';
180export * from './FormGroup';
181
182export { default as FormHelperText } from './FormHelperText';
183export * from './FormHelperText';
184
185export { default as FormLabel } from './FormLabel';
186export * from './FormLabel';
187
188export { default as Grid } from './Grid';
189export * from './Grid';
190
191export { default as GridList } from './GridList';
192export * from './GridList';
193
194export { default as GridListTile } from './GridListTile';
195export * from './GridListTile';
196
197export { default as GridListTileBar } from './GridListTileBar';
198export * from './GridListTileBar';
199
200export { default as Grow } from './Grow';
201export * from './Grow';
202
203export { default as Hidden } from './Hidden';
204export * from './Hidden';
205
206export { default as Icon } from './Icon';
207export * from './Icon';
208
209export { default as IconButton } from './IconButton';
210export * from './IconButton';
211
212export { default as Input } from './Input';
213export * from './Input';
214
215export { default as InputAdornment } from './InputAdornment';
216export * from './InputAdornment';
217
218export { default as InputBase } from './InputBase';
219export * from './InputBase';
220
221export { default as InputLabel } from './InputLabel';
222export * from './InputLabel';
223
224export { default as LinearProgress } from './LinearProgress';
225export * from './LinearProgress';
226
227export { default as Link } from './Link';
228export * from './Link';
229
230export { default as List } from './List';
231export * from './List';
232
233export { default as ListItem } from './ListItem';
234export * from './ListItem';
235
236export { default as ListItemAvatar } from './ListItemAvatar';
237export * from './ListItemAvatar';
238
239export { default as ListItemIcon } from './ListItemIcon';
240export * from './ListItemIcon';
241
242export { default as ListItemSecondaryAction } from './ListItemSecondaryAction';
243export * from './ListItemSecondaryAction';
244
245export { default as ListItemText } from './ListItemText';
246export * from './ListItemText';
247
248export { default as ListSubheader } from './ListSubheader';
249export * from './ListSubheader';
250
251export { default as Menu } from './Menu';
252export * from './Menu';
253
254export { default as MenuItem } from './MenuItem';
255export * from './MenuItem';
256
257export { default as MenuList } from './MenuList';
258export * from './MenuList';
259
260export { default as MobileStepper } from './MobileStepper';
261export * from './MobileStepper';
262
263export { default as Modal } from './Modal';
264export * from './Modal';
265
266export { default as NativeSelect } from './NativeSelect';
267export * from './NativeSelect';
268
269export { default as NoSsr } from './NoSsr';
270export * from './NoSsr';
271
272export { default as OutlinedInput } from './OutlinedInput';
273export * from './OutlinedInput';
274
275export { default as Paper } from './Paper';
276export * from './Paper';
277
278export { default as Popover } from './Popover';
279export * from './Popover';
280
281export { default as Popper } from './Popper';
282export * from './Popper';
283
284export { default as Portal } from './Portal';
285export * from './Portal';
286
287export { default as Radio } from './Radio';
288export * from './Radio';
289
290export { default as RadioGroup } from './RadioGroup';
291export * from './RadioGroup';
292
293export { default as RootRef } from './RootRef';
294export * from './RootRef';
295
296export { default as Select } from './Select';
297export * from './Select';
298
299export { default as Slide } from './Slide';
300export * from './Slide';
301
302export { default as Slider } from './Slider';
303export * from './Slider';
304
305export { default as Snackbar } from './Snackbar';
306export * from './Snackbar';
307
308export { default as SnackbarContent } from './SnackbarContent';
309export * from './SnackbarContent';
310
311export { default as Step } from './Step';
312export * from './Step';
313
314export { default as StepButton } from './StepButton';
315export * from './StepButton';
316
317export { default as StepConnector } from './StepConnector';
318export * from './StepConnector';
319
320export { default as StepContent } from './StepContent';
321export * from './StepContent';
322
323export { default as StepIcon } from './StepIcon';
324export * from './StepIcon';
325
326export { default as StepLabel } from './StepLabel';
327export * from './StepLabel';
328
329export { default as Stepper } from './Stepper';
330export * from './Stepper';
331
332export { default as SvgIcon } from './SvgIcon';
333export * from './SvgIcon';
334
335export { default as SwipeableDrawer } from './SwipeableDrawer';
336export * from './SwipeableDrawer';
337
338export { default as Switch } from './Switch';
339export * from './Switch';
340
341export { default as Tab } from './Tab';
342export * from './Tab';
343
344export { default as Table } from './Table';
345export * from './Table';
346
347export { default as TableBody } from './TableBody';
348export * from './TableBody';
349
350export { default as TableCell } from './TableCell';
351export * from './TableCell';
352
353export { default as TableContainer } from './TableContainer';
354export * from './TableContainer';
355
356export { default as TableFooter } from './TableFooter';
357export * from './TableFooter';
358
359export { default as TableHead } from './TableHead';
360export * from './TableHead';
361
362export { default as TablePagination } from './TablePagination';
363export * from './TablePagination';
364
365export { default as TableRow } from './TableRow';
366export * from './TableRow';
367
368export { default as TableSortLabel } from './TableSortLabel';
369export * from './TableSortLabel';
370
371export { default as Tabs } from './Tabs';
372export * from './Tabs';
373
374export { default as TextField } from './TextField';
375export * from './TextField';
376
377export { default as TextareaAutosize } from './TextareaAutosize';
378export * from './TextareaAutosize';
379
380export { default as Toolbar } from './Toolbar';
381export * from './Toolbar';
382
383export { default as Tooltip } from './Tooltip';
384export * from './Tooltip';
385
386export { default as Typography } from './Typography';
387export * from './Typography';
388
389export { default as useMediaQuery } from './useMediaQuery';
390export * from './useMediaQuery';
391
392export { default as useScrollTrigger } from './useScrollTrigger';
393export * from './useScrollTrigger';
394
395export { default as withMobileDialog } from './withMobileDialog';
396export * from './withMobileDialog';
397
398export { default as withWidth } from './withWidth';
399export * from './withWidth';
400
401export { default as Zoom } from './Zoom';
402export * from './Zoom';