1 | import merge from 'lodash/merge';
|
---|
2 | import { Theme } from '@mui/material/styles';
|
---|
3 | //
|
---|
4 | import { defaultProps } from './default-props';
|
---|
5 | //
|
---|
6 | import { fab } from './components/fab';
|
---|
7 | import { card } from './components/card';
|
---|
8 | import { chip } from './components/chip';
|
---|
9 | import { tabs } from './components/tabs';
|
---|
10 | import { menu } from './components/menu';
|
---|
11 | import { list } from './components/list';
|
---|
12 | import { table } from './components/table';
|
---|
13 | import { alert } from './components/alert';
|
---|
14 | import { badge } from './components/badge';
|
---|
15 | import { paper } from './components/paper';
|
---|
16 | import { radio } from './components/radio';
|
---|
17 | import { appBar } from './components/appbar';
|
---|
18 | import { drawer } from './components/drawer';
|
---|
19 | import { dialog } from './components/dialog';
|
---|
20 | import { avatar } from './components/avatar';
|
---|
21 | import { rating } from './components/rating';
|
---|
22 | import { slider } from './components/slider';
|
---|
23 | import { button } from './components/button';
|
---|
24 | import { select } from './components/select';
|
---|
25 | import { switches } from './components/switch';
|
---|
26 | import { tooltip } from './components/tooltip';
|
---|
27 | import { popover } from './components/popover';
|
---|
28 | import { stepper } from './components/stepper';
|
---|
29 | import { svgIcon } from './components/svg-icon';
|
---|
30 | import { skeleton } from './components/skeleton';
|
---|
31 | import { backdrop } from './components/backdrop';
|
---|
32 | import { progress } from './components/progress';
|
---|
33 | import { timeline } from './components/timeline';
|
---|
34 | import { checkbox } from './components/checkbox';
|
---|
35 | import { dataGrid } from './components/data-grid';
|
---|
36 | import { treeView } from './components/tree-view';
|
---|
37 | import { textField } from './components/textfield';
|
---|
38 | import { accordion } from './components/accordion';
|
---|
39 | import { typography } from './components/typography';
|
---|
40 | import { pagination } from './components/pagination';
|
---|
41 | import { datePicker } from './components/date-picker';
|
---|
42 | import { breadcrumbs } from './components/breadcrumbs';
|
---|
43 | import { cssBaseline } from './components/css-baseline';
|
---|
44 | import { buttonGroup } from './components/button-group';
|
---|
45 | import { autocomplete } from './components/autocomplete';
|
---|
46 | import { toggleButton } from './components/toggle-button';
|
---|
47 | import { loadingButton } from './components/loading-button';
|
---|
48 |
|
---|
49 | // ----------------------------------------------------------------------
|
---|
50 |
|
---|
51 | export function componentsOverrides(theme: Theme) {
|
---|
52 | const components = merge(
|
---|
53 | defaultProps(theme),
|
---|
54 | //
|
---|
55 | fab(theme),
|
---|
56 | tabs(theme),
|
---|
57 | chip(theme),
|
---|
58 | card(theme),
|
---|
59 | menu(theme),
|
---|
60 | list(theme),
|
---|
61 | badge(theme),
|
---|
62 | table(theme),
|
---|
63 | paper(theme),
|
---|
64 | alert(theme),
|
---|
65 | radio(theme),
|
---|
66 | select(theme),
|
---|
67 | button(theme),
|
---|
68 | rating(theme),
|
---|
69 | dialog(theme),
|
---|
70 | appBar(theme),
|
---|
71 | avatar(theme),
|
---|
72 | slider(theme),
|
---|
73 | drawer(theme),
|
---|
74 | stepper(theme),
|
---|
75 | tooltip(theme),
|
---|
76 | popover(theme),
|
---|
77 | svgIcon(theme),
|
---|
78 | switches(theme),
|
---|
79 | checkbox(theme),
|
---|
80 | dataGrid(theme),
|
---|
81 | skeleton(theme),
|
---|
82 | timeline(theme),
|
---|
83 | treeView(theme),
|
---|
84 | backdrop(theme),
|
---|
85 | progress(theme),
|
---|
86 | textField(theme),
|
---|
87 | accordion(theme),
|
---|
88 | typography(theme),
|
---|
89 | pagination(theme),
|
---|
90 | datePicker(theme),
|
---|
91 | buttonGroup(theme),
|
---|
92 | breadcrumbs(theme),
|
---|
93 | cssBaseline(theme),
|
---|
94 | autocomplete(theme),
|
---|
95 | toggleButton(theme),
|
---|
96 | loadingButton(theme)
|
---|
97 | );
|
---|
98 |
|
---|
99 | return components;
|
---|
100 | }
|
---|