UNPKG

13.9 kBTypeScriptView Raw
1import * as React from 'react';
2import { DistributiveOmit } from '@mui/types';
3import { StyledComponentProps } from './styles';
4
5export { StyledComponentProps };
6
7/**
8 * All standard components exposed by `material-ui` are `StyledComponents` with
9 * certain `classes`, on which one can also set a top-level `className` and inline
10 * `style`.
11 * @deprecated will be removed in v5 for internal usage only
12 */
13export type StandardProps<
14 ComponentProps,
15 ClassKey extends string,
16 Removals extends keyof ComponentProps = never,
17> = DistributiveOmit<ComponentProps, 'classes' | Removals> &
18 StyledComponentProps<ClassKey> & {
19 className?: string;
20 ref?: ComponentProps extends { ref?: infer RefType } ? RefType : React.Ref<unknown>;
21 style?: React.CSSProperties;
22 };
23
24/**
25 * @internal
26 * ONLY USE FROM WITHIN mui/material-ui
27 *
28 * Internal helper type for conform (describeConformance) components
29 * However, we don't declare classes on this type.
30 * It is recommended to declare them manually with an interface so that each class can have a separate JSDoc.
31 */
32export type InternalStandardProps<
33 ComponentProps,
34 Removals extends keyof ComponentProps = never,
35> = DistributiveOmit<ComponentProps, 'classes' | Removals> &
36 // each component declares it's classes in a separate interface for proper JSDoc
37 StyledComponentProps<never> & {
38 ref?: ComponentProps extends { ref?: infer RefType } ? RefType : React.Ref<unknown>;
39 // TODO: Remove implicit props. Up to each component.
40 className?: string;
41 style?: React.CSSProperties;
42 };
43
44export namespace PropTypes {
45 // keeping the type structure for backwards compat
46 // eslint-disable-next-line @typescript-eslint/no-unused-vars
47 type Color = 'inherit' | 'primary' | 'secondary' | 'default';
48}
49
50// From index.js
51// eslint-disable-next-line import/first
52import * as colors from './colors';
53
54export { colors };
55export * from './styles';
56
57export * from './utils';
58
59export { default as Accordion } from './Accordion';
60export * from './Accordion';
61
62export { default as AccordionActions } from './AccordionActions';
63export * from './AccordionActions';
64
65export { default as AccordionDetails } from './AccordionDetails';
66export * from './AccordionDetails';
67
68export { default as AccordionSummary } from './AccordionSummary';
69export * from './AccordionSummary';
70
71export { default as Alert } from './Alert';
72export * from './Alert';
73
74export { default as AlertTitle } from './AlertTitle';
75export * from './AlertTitle';
76
77export { default as AppBar } from './AppBar';
78export * from './AppBar';
79
80export { default as Autocomplete } from './Autocomplete';
81export * from './Autocomplete';
82
83export { default as Avatar } from './Avatar';
84export * from './Avatar';
85
86export { default as AvatarGroup } from './AvatarGroup';
87export * from './AvatarGroup';
88
89export { default as Backdrop } from './Backdrop';
90export * from './Backdrop';
91
92export { default as Badge } from './Badge';
93export * from './Badge';
94
95export { default as BottomNavigation } from './BottomNavigation';
96export * from './BottomNavigation';
97
98export { default as BottomNavigationAction } from './BottomNavigationAction';
99export * from './BottomNavigationAction';
100
101export { default as Box } from './Box';
102export * from './Box';
103
104export { default as Breadcrumbs } from './Breadcrumbs';
105export * from './Breadcrumbs';
106
107export { default as Button } from './Button';
108export * from './Button';
109
110export { default as ButtonBase } from './ButtonBase';
111export * from './ButtonBase';
112
113export { default as ButtonGroup } from './ButtonGroup';
114export * from './ButtonGroup';
115
116export { default as Card } from './Card';
117export * from './Card';
118
119export { default as CardActionArea } from './CardActionArea';
120export * from './CardActionArea';
121
122export { default as CardActions } from './CardActions';
123export * from './CardActions';
124
125export { default as CardContent } from './CardContent';
126export * from './CardContent';
127
128export { default as CardHeader } from './CardHeader';
129export * from './CardHeader';
130
131export { default as CardMedia } from './CardMedia';
132export * from './CardMedia';
133
134export { default as Checkbox } from './Checkbox';
135export * from './Checkbox';
136
137export { default as Chip } from './Chip';
138export * from './Chip';
139
140export { default as CircularProgress } from './CircularProgress';
141export * from './CircularProgress';
142
143export { default as ClickAwayListener } from './ClickAwayListener';
144export * from './ClickAwayListener';
145
146export { default as Collapse } from './Collapse';
147export * from './Collapse';
148
149export { default as Container } from './Container';
150export * from './Container';
151
152export { default as CssBaseline } from './CssBaseline';
153export * from './CssBaseline';
154
155/**
156 * @deprecated use color-scheme in CssBaseline or ScopedCssBaseline to modify scrollbar color
157 */
158export { default as darkScrollbar } from './darkScrollbar';
159export * from './darkScrollbar';
160
161export { default as Dialog } from './Dialog';
162export * from './Dialog';
163
164export { default as DialogActions } from './DialogActions';
165export * from './DialogActions';
166
167export { default as DialogContent } from './DialogContent';
168export * from './DialogContent';
169
170export { default as DialogContentText } from './DialogContentText';
171export * from './DialogContentText';
172
173export { default as DialogTitle } from './DialogTitle';
174export * from './DialogTitle';
175
176export { default as Divider } from './Divider';
177export * from './Divider';
178
179export { default as Drawer } from './Drawer';
180export * from './Drawer';
181
182export { default as Fab } from './Fab';
183export * from './Fab';
184
185export { default as Fade } from './Fade';
186export * from './Fade';
187
188export { default as FilledInput } from './FilledInput';
189export * from './FilledInput';
190
191export { default as FormControl } from './FormControl';
192export * from './FormControl';
193
194export { default as FormControlLabel } from './FormControlLabel';
195export * from './FormControlLabel';
196
197export { default as FormGroup } from './FormGroup';
198export * from './FormGroup';
199
200export { default as FormHelperText } from './FormHelperText';
201export * from './FormHelperText';
202
203export { default as FormLabel } from './FormLabel';
204export * from './FormLabel';
205
206export { default as Grid } from './Grid';
207export { GridProps, GridTypeMap } from './Grid';
208
209export { default as Grid2 } from './Grid2';
210export * from './Grid2';
211
212export { default as Grow } from './Grow';
213export * from './Grow';
214
215export { default as Hidden } from './Hidden';
216export * from './Hidden';
217
218export { default as Icon } from './Icon';
219export * from './Icon';
220
221export { default as IconButton } from './IconButton';
222export * from './IconButton';
223
224export { default as ImageList } from './ImageList';
225export * from './ImageList';
226
227export { default as ImageListItem } from './ImageListItem';
228export * from './ImageListItem';
229
230export { default as ImageListItemBar } from './ImageListItemBar';
231export * from './ImageListItemBar';
232
233export { default as Input } from './Input';
234export * from './Input';
235
236export { default as InputAdornment } from './InputAdornment';
237export * from './InputAdornment';
238
239export { default as InputBase } from './InputBase';
240export * from './InputBase';
241
242export { default as InputLabel } from './InputLabel';
243export * from './InputLabel';
244
245export { default as LinearProgress } from './LinearProgress';
246export * from './LinearProgress';
247
248export { default as Link } from './Link';
249export * from './Link';
250
251export { default as List } from './List';
252export * from './List';
253
254export { default as ListItem } from './ListItem';
255export * from './ListItem';
256
257export { default as ListItemAvatar } from './ListItemAvatar';
258export * from './ListItemAvatar';
259
260export { default as ListItemButton } from './ListItemButton';
261export * from './ListItemButton';
262
263export { default as ListItemIcon } from './ListItemIcon';
264export * from './ListItemIcon';
265
266export { default as ListItemSecondaryAction } from './ListItemSecondaryAction';
267export * from './ListItemSecondaryAction';
268
269export { default as ListItemText } from './ListItemText';
270export * from './ListItemText';
271
272export { default as ListSubheader } from './ListSubheader';
273export * from './ListSubheader';
274
275export { default as Menu } from './Menu';
276export * from './Menu';
277
278export { default as MenuItem } from './MenuItem';
279export * from './MenuItem';
280
281export { default as MenuList } from './MenuList';
282export * from './MenuList';
283
284export { default as MobileStepper } from './MobileStepper';
285export * from './MobileStepper';
286
287export { default as Modal } from './Modal';
288export * from './Modal';
289
290export { default as NativeSelect } from './NativeSelect';
291export * from './NativeSelect';
292
293export { default as NoSsr } from './NoSsr';
294export * from './NoSsr';
295
296export { default as OutlinedInput } from './OutlinedInput';
297export * from './OutlinedInput';
298
299export { default as Pagination } from './Pagination';
300export * from './Pagination';
301
302export { default as PaginationItem } from './PaginationItem';
303export * from './PaginationItem';
304
305export { default as Paper } from './Paper';
306export * from './Paper';
307
308export { default as Popover } from './Popover';
309export * from './Popover';
310
311export { default as Popper } from './Popper';
312export * from './Popper';
313
314export { default as Portal } from './Portal';
315export * from './Portal';
316
317export { default as Radio } from './Radio';
318export * from './Radio';
319
320export { default as RadioGroup } from './RadioGroup';
321export * from './RadioGroup';
322
323export { default as Rating } from './Rating';
324export * from './Rating';
325
326export { default as ScopedCssBaseline } from './ScopedCssBaseline';
327export * from './ScopedCssBaseline';
328
329export { default as Select } from './Select';
330export * from './Select';
331
332export { default as Skeleton } from './Skeleton';
333export * from './Skeleton';
334
335export { default as Slide } from './Slide';
336export * from './Slide';
337
338export { default as Slider } from './Slider';
339export * from './Slider';
340
341export { default as Snackbar } from './Snackbar';
342export * from './Snackbar';
343
344export { default as SnackbarContent } from './SnackbarContent';
345export * from './SnackbarContent';
346
347export { default as SpeedDial } from './SpeedDial';
348export * from './SpeedDial';
349
350export { default as SpeedDialAction } from './SpeedDialAction';
351export * from './SpeedDialAction';
352
353export { default as SpeedDialIcon } from './SpeedDialIcon';
354export * from './SpeedDialIcon';
355
356export { default as Stack } from './Stack';
357export * from './Stack';
358
359export { default as Step } from './Step';
360export * from './Step';
361
362export { default as StepButton } from './StepButton';
363export * from './StepButton';
364
365export { default as StepConnector } from './StepConnector';
366export * from './StepConnector';
367
368export { default as StepContent } from './StepContent';
369export * from './StepContent';
370
371export { default as StepIcon } from './StepIcon';
372export * from './StepIcon';
373
374export { default as StepLabel } from './StepLabel';
375export * from './StepLabel';
376
377export { default as Stepper } from './Stepper';
378export * from './Stepper';
379
380export { default as SvgIcon } from './SvgIcon';
381export * from './SvgIcon';
382
383export { default as SwipeableDrawer } from './SwipeableDrawer';
384export * from './SwipeableDrawer';
385
386export { default as Switch } from './Switch';
387export * from './Switch';
388
389export { default as Tab } from './Tab';
390export * from './Tab';
391
392export { default as Table } from './Table';
393export * from './Table';
394
395export { default as TableBody } from './TableBody';
396export * from './TableBody';
397
398export { default as TableCell } from './TableCell';
399export * from './TableCell';
400
401export { default as TableContainer } from './TableContainer';
402export * from './TableContainer';
403
404export { default as TableFooter } from './TableFooter';
405export * from './TableFooter';
406
407export { default as TableHead } from './TableHead';
408export * from './TableHead';
409
410export { default as TablePagination } from './TablePagination';
411export * from './TablePagination';
412
413export { default as TableRow } from './TableRow';
414export * from './TableRow';
415
416export { default as TableSortLabel } from './TableSortLabel';
417export * from './TableSortLabel';
418
419export { default as Tabs } from './Tabs';
420export * from './Tabs';
421
422export { default as TabScrollButton } from './TabScrollButton';
423export * from './TabScrollButton';
424
425export { default as TextField } from './TextField';
426export * from './TextField';
427
428export { default as TextareaAutosize } from './TextareaAutosize';
429export * from './TextareaAutosize';
430
431export { default as ToggleButton } from './ToggleButton';
432export * from './ToggleButton';
433
434export { default as ToggleButtonGroup } from './ToggleButtonGroup';
435export * from './ToggleButtonGroup';
436
437export { default as Toolbar } from './Toolbar';
438export * from './Toolbar';
439
440export { default as Tooltip } from './Tooltip';
441export * from './Tooltip';
442
443export { default as Typography } from './Typography';
444export * from './Typography';
445
446export { default as useMediaQuery } from './useMediaQuery';
447export * from './useMediaQuery';
448
449export { default as useScrollTrigger } from './useScrollTrigger';
450export * from './useScrollTrigger';
451
452export { default as Zoom } from './Zoom';
453export * from './Zoom';
454
455export { default as useAutocomplete } from './useAutocomplete';
456export * from './useAutocomplete';
457
458export { default as GlobalStyles } from './GlobalStyles';
459export * from './GlobalStyles';
460
461export * from './version';
462
463/**
464 * @deprecated will be removed in v5.beta, please use StyledEngineProvider from @mui/material/styles instead
465 */
466export { StyledEngineProvider } from './styles';
467
468export { unstable_composeClasses } from '@mui/utils';
469
470export { default as generateUtilityClass } from './generateUtilityClass';
471export * from './generateUtilityClass';
472
473export { default as generateUtilityClasses } from './generateUtilityClasses';
474
475export { default as Unstable_TrapFocus } from './Unstable_TrapFocus';
476export * from './Unstable_TrapFocus';