UNPKG

11.7 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 * from './utils';
60
61export { default as Accordion } from './Accordion';
62export * from './Accordion';
63
64export { default as AccordionActions } from './AccordionActions';
65export * from './AccordionActions';
66
67export { default as AccordionDetails } from './AccordionDetails';
68export * from './AccordionDetails';
69
70export { default as AccordionSummary } from './AccordionSummary';
71export * from './AccordionSummary';
72
73export { default as AppBar } from './AppBar';
74export * from './AppBar';
75
76export { default as Avatar } from './Avatar';
77export * from './Avatar';
78
79export { default as Backdrop } from './Backdrop';
80export * from './Backdrop';
81
82export { default as Badge } from './Badge';
83export * from './Badge';
84
85export { default as BottomNavigation } from './BottomNavigation';
86export * from './BottomNavigation';
87
88export { default as BottomNavigationAction } from './BottomNavigationAction';
89export * from './BottomNavigationAction';
90
91export { default as Box } from './Box';
92export * from './Box';
93
94export { default as Breadcrumbs } from './Breadcrumbs';
95export * from './Breadcrumbs';
96
97export { default as Button } from './Button';
98export * from './Button';
99
100export { default as ButtonBase } from './ButtonBase';
101export * from './ButtonBase';
102
103export { default as ButtonGroup } from './ButtonGroup';
104export * from './ButtonGroup';
105
106export { default as Card } from './Card';
107export * from './Card';
108
109export { default as CardActionArea } from './CardActionArea';
110export * from './CardActionArea';
111
112export { default as CardActions } from './CardActions';
113export * from './CardActions';
114
115export { default as CardContent } from './CardContent';
116export * from './CardContent';
117
118export { default as CardHeader } from './CardHeader';
119export * from './CardHeader';
120
121export { default as CardMedia } from './CardMedia';
122export * from './CardMedia';
123
124export { default as Checkbox } from './Checkbox';
125export * from './Checkbox';
126
127export { default as Chip } from './Chip';
128export * from './Chip';
129
130export { default as CircularProgress } from './CircularProgress';
131export * from './CircularProgress';
132
133export { default as ClickAwayListener } from './ClickAwayListener';
134export * from './ClickAwayListener';
135
136export { default as Collapse } from './Collapse';
137export * from './Collapse';
138
139export { default as Container } from './Container';
140export * from './Container';
141
142export { default as CssBaseline } from './CssBaseline';
143export * from './CssBaseline';
144
145export { default as Dialog } from './Dialog';
146export * from './Dialog';
147
148export { default as DialogActions } from './DialogActions';
149export * from './DialogActions';
150
151export { default as DialogContent } from './DialogContent';
152export * from './DialogContent';
153
154export { default as DialogContentText } from './DialogContentText';
155export * from './DialogContentText';
156
157export { default as DialogTitle } from './DialogTitle';
158export * from './DialogTitle';
159
160export { default as Divider } from './Divider';
161export * from './Divider';
162
163export { default as Drawer } from './Drawer';
164export * from './Drawer';
165
166export { default as ExpansionPanel } from './ExpansionPanel';
167export * from './ExpansionPanel';
168
169export { default as ExpansionPanelActions } from './ExpansionPanelActions';
170export * from './ExpansionPanelActions';
171
172export { default as ExpansionPanelDetails } from './ExpansionPanelDetails';
173export * from './ExpansionPanelDetails';
174
175export { default as ExpansionPanelSummary } from './ExpansionPanelSummary';
176export * from './ExpansionPanelSummary';
177
178export { default as Fab } from './Fab';
179export * from './Fab';
180
181export { default as Fade } from './Fade';
182export * from './Fade';
183
184export { default as FilledInput } from './FilledInput';
185export * from './FilledInput';
186
187export { default as FormControl } from './FormControl';
188export * from './FormControl';
189
190export { default as FormControlLabel } from './FormControlLabel';
191export * from './FormControlLabel';
192
193export { default as FormGroup } from './FormGroup';
194export * from './FormGroup';
195
196export { default as FormHelperText } from './FormHelperText';
197export * from './FormHelperText';
198
199export { default as FormLabel } from './FormLabel';
200export * from './FormLabel';
201
202export { default as Grid } from './Grid';
203export * from './Grid';
204
205export { default as GridList } from './GridList';
206export * from './GridList';
207
208export { default as GridListTile } from './GridListTile';
209export * from './GridListTile';
210
211export { default as GridListTileBar } from './GridListTileBar';
212export * from './GridListTileBar';
213
214export { default as Grow } from './Grow';
215export * from './Grow';
216
217export { default as Hidden } from './Hidden';
218export * from './Hidden';
219
220export { default as Icon } from './Icon';
221export * from './Icon';
222
223export { default as IconButton } from './IconButton';
224export * from './IconButton';
225
226export { default as Input } from './Input';
227export * from './Input';
228
229export { default as InputAdornment } from './InputAdornment';
230export * from './InputAdornment';
231
232export { default as InputBase } from './InputBase';
233export * from './InputBase';
234
235export { default as InputLabel } from './InputLabel';
236export * from './InputLabel';
237
238export { default as LinearProgress } from './LinearProgress';
239export * from './LinearProgress';
240
241export { default as Link } from './Link';
242export * from './Link';
243
244export { default as List } from './List';
245export * from './List';
246
247export { default as ListItem } from './ListItem';
248export * from './ListItem';
249
250export { default as ListItemAvatar } from './ListItemAvatar';
251export * from './ListItemAvatar';
252
253export { default as ListItemIcon } from './ListItemIcon';
254export * from './ListItemIcon';
255
256export { default as ListItemSecondaryAction } from './ListItemSecondaryAction';
257export * from './ListItemSecondaryAction';
258
259export { default as ListItemText } from './ListItemText';
260export * from './ListItemText';
261
262export { default as ListSubheader } from './ListSubheader';
263export * from './ListSubheader';
264
265export { default as Menu } from './Menu';
266export * from './Menu';
267
268export { default as MenuItem } from './MenuItem';
269export * from './MenuItem';
270
271export { default as MenuList } from './MenuList';
272export * from './MenuList';
273
274export { default as MobileStepper } from './MobileStepper';
275export * from './MobileStepper';
276
277export { default as Modal } from './Modal';
278export * from './Modal';
279
280export { default as NativeSelect } from './NativeSelect';
281export * from './NativeSelect';
282
283export { default as NoSsr } from './NoSsr';
284export * from './NoSsr';
285
286export { default as OutlinedInput } from './OutlinedInput';
287export * from './OutlinedInput';
288
289export { default as Paper } from './Paper';
290export * from './Paper';
291
292export { default as Popover } from './Popover';
293export * from './Popover';
294
295export { default as Popper } from './Popper';
296export * from './Popper';
297
298export { default as Portal } from './Portal';
299export * from './Portal';
300
301export { default as Radio } from './Radio';
302export * from './Radio';
303
304export { default as RadioGroup } from './RadioGroup';
305export * from './RadioGroup';
306
307export { default as RootRef } from './RootRef';
308export * from './RootRef';
309
310export { default as Select } from './Select';
311export * from './Select';
312
313export { default as Slide } from './Slide';
314export * from './Slide';
315
316export { default as Slider } from './Slider';
317export * from './Slider';
318
319export { default as Snackbar } from './Snackbar';
320export * from './Snackbar';
321
322export { default as SnackbarContent } from './SnackbarContent';
323export * from './SnackbarContent';
324
325export { default as Step } from './Step';
326export * from './Step';
327
328export { default as StepButton } from './StepButton';
329export * from './StepButton';
330
331export { default as StepConnector } from './StepConnector';
332export * from './StepConnector';
333
334export { default as StepContent } from './StepContent';
335export * from './StepContent';
336
337export { default as StepIcon } from './StepIcon';
338export * from './StepIcon';
339
340export { default as StepLabel } from './StepLabel';
341export * from './StepLabel';
342
343export { default as Stepper } from './Stepper';
344export * from './Stepper';
345
346export { default as SvgIcon } from './SvgIcon';
347export * from './SvgIcon';
348
349export { default as SwipeableDrawer } from './SwipeableDrawer';
350export * from './SwipeableDrawer';
351
352export { default as Switch } from './Switch';
353export * from './Switch';
354
355export { default as Tab } from './Tab';
356export * from './Tab';
357
358export { default as Table } from './Table';
359export * from './Table';
360
361export { default as TableBody } from './TableBody';
362export * from './TableBody';
363
364export { default as TableCell } from './TableCell';
365export * from './TableCell';
366
367export { default as TableContainer } from './TableContainer';
368export * from './TableContainer';
369
370export { default as TableFooter } from './TableFooter';
371export * from './TableFooter';
372
373export { default as TableHead } from './TableHead';
374export * from './TableHead';
375
376export { default as TablePagination } from './TablePagination';
377export * from './TablePagination';
378
379export { default as TableRow } from './TableRow';
380export * from './TableRow';
381
382export { default as TableSortLabel } from './TableSortLabel';
383export * from './TableSortLabel';
384
385export { default as Tabs } from './Tabs';
386export * from './Tabs';
387
388export { default as TabScrollButton } from './TabScrollButton';
389export * from './TabScrollButton';
390
391export { default as TextField } from './TextField';
392export * from './TextField';
393
394export { default as TextareaAutosize } from './TextareaAutosize';
395export * from './TextareaAutosize';
396
397export { default as Toolbar } from './Toolbar';
398export * from './Toolbar';
399
400export { default as Tooltip } from './Tooltip';
401export * from './Tooltip';
402
403export { default as Typography } from './Typography';
404export * from './Typography';
405
406export { default as Unstable_TrapFocus } from './Unstable_TrapFocus';
407export * from './Unstable_TrapFocus';
408
409export { default as useMediaQuery } from './useMediaQuery';
410export * from './useMediaQuery';
411
412export { default as useScrollTrigger } from './useScrollTrigger';
413export * from './useScrollTrigger';
414
415export { default as withMobileDialog } from './withMobileDialog';
416export * from './withMobileDialog';
417
418export { default as withWidth } from './withWidth';
419export * from './withWidth';
420
421export { default as Zoom } from './Zoom';
422export * from './Zoom';