@m4l/graphics 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -49
- package/.eslintignore +0 -2
- package/.eslintrc.cjs +0 -118
- package/.gitignore +0 -24
- package/.gitlab-ci.yml +0 -15
- package/.prettierignore +0 -3
- package/.prettierrc.json +0 -26
- package/.vscode/settings.json +0 -50
- package/dist/package.json +0 -34
- package/src/components/ProgressBarStyle/index.tsx +0 -39
- package/src/components/index.ts +0 -3
- package/src/contexts/FormatterContext/index.tsx +0 -131
- package/src/contexts/FormatterContext/types.ts +0 -73
- package/src/contexts/HostThemeContext/index.tsx +0 -85
- package/src/contexts/HostThemeContext/types.ts +0 -16
- package/src/contexts/LocalesContext/helper.ts +0 -67
- package/src/contexts/LocalesContext/index.tsx +0 -152
- package/src/contexts/LocalesContext/types.ts +0 -37
- package/src/contexts/index.ts +0 -15
- package/src/hooks/index.ts +0 -8
- package/src/hooks/useFirstRender/index.ts +0 -17
- package/src/hooks/useFormatter/index.ts +0 -10
- package/src/hooks/useHostTheme/index.ts +0 -10
- package/src/hooks/useIsMountedRef/index.ts +0 -16
- package/src/hooks/useLocales/index.ts +0 -10
- package/src/hooks/useOffSetTop.ts +0 -26
- package/src/hooks/useResponsive/index.ts +0 -44
- package/src/index.ts +0 -25
- package/src/theme/breakpoints.ts +0 -13
- package/src/theme/defaultThemeOptions.ts +0 -42
- package/src/theme/overrides/Accordion.ts +0 -85
- package/src/theme/overrides/Alert.tsx +0 -74
- package/src/theme/overrides/Autocomplete.ts +0 -31
- package/src/theme/overrides/Avatar.ts +0 -29
- package/src/theme/overrides/Backdrop.ts +0 -26
- package/src/theme/overrides/Badge.ts +0 -17
- package/src/theme/overrides/Breadcrumbs.ts +0 -16
- package/src/theme/overrides/Button.ts +0 -62
- package/src/theme/overrides/ButtonGroup.ts +0 -51
- package/src/theme/overrides/Card.ts +0 -36
- package/src/theme/overrides/Checkbox.tsx +0 -54
- package/src/theme/overrides/Chip.tsx +0 -49
- package/src/theme/overrides/ControlLabel.ts +0 -29
- package/src/theme/overrides/CssBaseline.ts +0 -46
- package/src/theme/overrides/CustomIcons.tsx +0 -122
- package/src/theme/overrides/DataGrid.ts +0 -101
- package/src/theme/overrides/Dialog.ts +0 -60
- package/src/theme/overrides/Drawer.ts +0 -30
- package/src/theme/overrides/Fab.ts +0 -40
- package/src/theme/overrides/IconButton.ts +0 -35
- package/src/theme/overrides/Input.ts +0 -94
- package/src/theme/overrides/InputLabel.ts +0 -17
- package/src/theme/overrides/Link.ts +0 -20
- package/src/theme/overrides/List.ts +0 -37
- package/src/theme/overrides/LoadingButton.ts +0 -28
- package/src/theme/overrides/Menu.ts +0 -20
- package/src/theme/overrides/Pagination.ts +0 -38
- package/src/theme/overrides/Paper.ts +0 -27
- package/src/theme/overrides/Popover.ts +0 -16
- package/src/theme/overrides/Progress.ts +0 -27
- package/src/theme/overrides/Radio.ts +0 -21
- package/src/theme/overrides/Rating.tsx +0 -30
- package/src/theme/overrides/Select.tsx +0 -14
- package/src/theme/overrides/Skeleton.ts +0 -19
- package/src/theme/overrides/Slider.ts +0 -31
- package/src/theme/overrides/Stepper.ts +0 -15
- package/src/theme/overrides/SvgIcon.ts +0 -21
- package/src/theme/overrides/Switch.ts +0 -35
- package/src/theme/overrides/Table.ts +0 -95
- package/src/theme/overrides/Tabs.ts +0 -61
- package/src/theme/overrides/Timeline.ts +0 -23
- package/src/theme/overrides/ToggleButton.ts +0 -54
- package/src/theme/overrides/Tooltip.ts +0 -20
- package/src/theme/overrides/TreeView.tsx +0 -25
- package/src/theme/overrides/Typography.ts +0 -18
- package/src/theme/overrides/index.ts +0 -102
- package/src/theme/palette.ts +0 -216
- package/src/theme/shadows.ts +0 -110
- package/src/theme/stretch.ts +0 -10
- package/src/theme/typography.ts +0 -91
- package/src/types/index.ts +0 -9
- package/src/utils/anchorEl.ts +0 -146
- package/src/utils/getColorPresets.ts +0 -91
- package/src/utils/getFontValue.ts +0 -73
- package/src/utils/strings.ts +0 -1
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -29
- package/tsconfig.node.json +0 -8
- package/vite.config.ts +0 -234
- /package/{dist/components → components}/ProgressBarStyle/index.d.ts +0 -0
- /package/{dist/components → components}/ProgressBarStyle/index.fb6fd9ed.js +0 -0
- /package/{dist/components → components}/index.80514d59.js +0 -0
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/contexts → contexts}/FormatterContext/index.92336f4c.js +0 -0
- /package/{dist/contexts → contexts}/FormatterContext/index.d.ts +0 -0
- /package/{dist/contexts → contexts}/FormatterContext/types.d.ts +0 -0
- /package/{dist/contexts → contexts}/HostThemeContext/index.a6a62c70.js +0 -0
- /package/{dist/contexts → contexts}/HostThemeContext/index.d.ts +0 -0
- /package/{dist/contexts → contexts}/HostThemeContext/types.d.ts +0 -0
- /package/{dist/contexts → contexts}/LocalesContext/helper.d.ts +0 -0
- /package/{dist/contexts → contexts}/LocalesContext/index.5b555637.js +0 -0
- /package/{dist/contexts → contexts}/LocalesContext/index.d.ts +0 -0
- /package/{dist/contexts → contexts}/LocalesContext/types.d.ts +0 -0
- /package/{dist/contexts → contexts}/index.2f4a4040.js +0 -0
- /package/{dist/contexts → contexts}/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/index.c13bc37e.js +0 -0
- /package/{dist/hooks → hooks}/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useFirstRender/index.1e9b02fb.js +0 -0
- /package/{dist/hooks → hooks}/useFirstRender/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useFormatter/index.57ac8cca.js +0 -0
- /package/{dist/hooks → hooks}/useFormatter/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useHostTheme/index.1c8e4ad7.js +0 -0
- /package/{dist/hooks → hooks}/useHostTheme/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useIsMountedRef/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useLocales/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useLocales/index.f676279e.js +0 -0
- /package/{dist/hooks → hooks}/useOffSetTop.d.ts +0 -0
- /package/{dist/hooks → hooks}/useResponsive/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/useResponsive/index.fc5e1b4f.js +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/theme → theme}/breakpoints.d.ts +0 -0
- /package/{dist/theme → theme}/defaultThemeOptions.b2cdbe59.js +0 -0
- /package/{dist/theme → theme}/defaultThemeOptions.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Accordion.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Autocomplete.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Avatar.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Backdrop.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Badge.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Breadcrumbs.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Button.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/ButtonGroup.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Card.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Checkbox.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/ControlLabel.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/CssBaseline.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/DataGrid.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Dialog.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Drawer.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Fab.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/IconButton.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Input.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/InputLabel.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Link.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/List.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/LoadingButton.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Menu.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Pagination.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Paper.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Popover.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Progress.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Radio.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Skeleton.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Slider.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Stepper.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/SvgIcon.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Switch.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Table.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Tabs.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Timeline.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/ToggleButton.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Tooltip.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/Typography.d.ts +0 -0
- /package/{dist/theme → theme}/overrides/index.d.ts +0 -0
- /package/{dist/theme → theme}/overrides.7958c0ab.js +0 -0
- /package/{dist/theme → theme}/palette.2baf72f5.js +0 -0
- /package/{dist/theme → theme}/palette.d.ts +0 -0
- /package/{dist/theme → theme}/shadows.bf8dc290.js +0 -0
- /package/{dist/theme → theme}/shadows.d.ts +0 -0
- /package/{dist/theme → theme}/stretch.d.ts +0 -0
- /package/{dist/theme → theme}/typography.63fff3ec.js +0 -0
- /package/{dist/theme → theme}/typography.d.ts +0 -0
- /package/{dist/types → types}/index.d.ts +0 -0
- /package/{dist/utils → utils}/anchorEl.d.ts +0 -0
- /package/{dist/utils → utils}/getColorPresets.d.ts +0 -0
- /package/{dist/utils → utils}/getFontValue.d.ts +0 -0
- /package/{dist/utils → utils}/index.7ab4fc54.js +0 -0
- /package/{dist/utils → utils}/strings.d.ts +0 -0
- /package/{dist/vendor.3b4b3674.js → vendor.3b4b3674.js} +0 -0
- /package/{dist/vite-env.d.ts → vite-env.d.ts} +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Accordion(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiAccordion: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
backgroundColor: theme.palette.background.default,
|
|
11
|
-
width: '100%',
|
|
12
|
-
marginTop: '0px',
|
|
13
|
-
marginBottom: theme.spacing(1.5),
|
|
14
|
-
'&.Mui-expanded': {
|
|
15
|
-
marginTop: '0px',
|
|
16
|
-
marginBottom: theme.spacing(1.5),
|
|
17
|
-
},
|
|
18
|
-
border: '0px solid transparent',
|
|
19
|
-
|
|
20
|
-
'&.Mui-disabled': {
|
|
21
|
-
backgroundColor: 'transparent',
|
|
22
|
-
},
|
|
23
|
-
'&::before': {
|
|
24
|
-
content: 'none',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
MuiAccordionDetails: {
|
|
30
|
-
styleOverrides: {
|
|
31
|
-
root: {
|
|
32
|
-
padding: `0px ${theme.spacing(0)}`,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
MuiAccordionSummary: {
|
|
37
|
-
styleOverrides: {
|
|
38
|
-
root: {
|
|
39
|
-
borderRadius: theme.spacing(0.5),
|
|
40
|
-
|
|
41
|
-
height: theme.spacing(4.5),
|
|
42
|
-
minHeight: theme.spacing(4.5),
|
|
43
|
-
backgroundColor: theme.palette.background.header,
|
|
44
|
-
paddingLeft: theme.spacing(2),
|
|
45
|
-
paddingRight: theme.spacing(2),
|
|
46
|
-
marginBottom: '0px',
|
|
47
|
-
|
|
48
|
-
'&.Mui-expanded': {
|
|
49
|
-
height: theme.spacing(4.5),
|
|
50
|
-
minHeight: theme.spacing(4.5),
|
|
51
|
-
borderRadius: `${theme.spacing(0.5)} ${theme.spacing(0.5)} 0px 0px`,
|
|
52
|
-
},
|
|
53
|
-
'&.Mui-disabled': {
|
|
54
|
-
opacity: 1,
|
|
55
|
-
color: theme.palette.action.disabled,
|
|
56
|
-
'& .MuiTypography-root': {
|
|
57
|
-
color: 'inherit',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
expandIconWrapper: {
|
|
62
|
-
color: theme.palette.action.active,
|
|
63
|
-
height: 20,
|
|
64
|
-
width: 20,
|
|
65
|
-
alignItems: 'center',
|
|
66
|
-
justifyContent: 'center',
|
|
67
|
-
'& > svg': {
|
|
68
|
-
height: 12,
|
|
69
|
-
width: 12,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
content: {
|
|
73
|
-
...theme.typography.subtitle2,
|
|
74
|
-
margin: '0px',
|
|
75
|
-
// '& .MuiTypography-root': {
|
|
76
|
-
|
|
77
|
-
// },
|
|
78
|
-
'&.Mui-expanded': {
|
|
79
|
-
margin: '0px',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// @mui
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
// theme
|
|
4
|
-
import { ColorSchema } from '../palette';
|
|
5
|
-
//
|
|
6
|
-
import { ErrorIcon, InfoIcon, SuccessIcon, WarningIcon } from './CustomIcons';
|
|
7
|
-
|
|
8
|
-
// ----------------------------------------------------------------------
|
|
9
|
-
|
|
10
|
-
export default function Alert(theme: Theme) {
|
|
11
|
-
const isLight = theme.palette.mode === 'light';
|
|
12
|
-
|
|
13
|
-
const standardStyle = (color: ColorSchema) => ({
|
|
14
|
-
color: theme.palette[color][isLight ? 'darker' : 'lighter'],
|
|
15
|
-
backgroundColor: theme.palette[color][isLight ? 'lighter' : 'darker'],
|
|
16
|
-
'& .MuiAlert-icon': {
|
|
17
|
-
color: theme.palette[color][isLight ? 'main' : 'light'],
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
const filledStyle = (color: ColorSchema) => ({
|
|
22
|
-
color: theme.palette[color].contrastText,
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
const outlinedStyle = (color: ColorSchema) => ({
|
|
26
|
-
color: theme.palette[color][isLight ? 'darker' : 'lighter'],
|
|
27
|
-
border: `solid 1px ${theme.palette[color][isLight ? 'light' : 'dark']}`,
|
|
28
|
-
backgroundColor: theme.palette[color][isLight ? 'lighter' : 'darker'],
|
|
29
|
-
'& .MuiAlert-icon': {
|
|
30
|
-
color: theme.palette[color][isLight ? 'main' : 'light'],
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return {
|
|
35
|
-
MuiAlert: {
|
|
36
|
-
defaultProps: {
|
|
37
|
-
iconMapping: {
|
|
38
|
-
info: <InfoIcon />,
|
|
39
|
-
success: <SuccessIcon />,
|
|
40
|
-
warning: <WarningIcon />,
|
|
41
|
-
error: <ErrorIcon />,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
styleOverrides: {
|
|
46
|
-
message: {
|
|
47
|
-
'& .MuiAlertTitle-root': {
|
|
48
|
-
marginBottom: theme.spacing(0.5),
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
action: {
|
|
52
|
-
'& button:not(:first-of-type)': {
|
|
53
|
-
marginLeft: theme.spacing(1),
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
standardInfo: standardStyle('info'),
|
|
58
|
-
standardSuccess: standardStyle('success'),
|
|
59
|
-
standardWarning: standardStyle('warning'),
|
|
60
|
-
standardError: standardStyle('error'),
|
|
61
|
-
|
|
62
|
-
filledInfo: filledStyle('info'),
|
|
63
|
-
filledSuccess: filledStyle('success'),
|
|
64
|
-
filledWarning: filledStyle('warning'),
|
|
65
|
-
filledError: filledStyle('error'),
|
|
66
|
-
|
|
67
|
-
outlinedInfo: outlinedStyle('info'),
|
|
68
|
-
outlinedSuccess: outlinedStyle('success'),
|
|
69
|
-
outlinedWarning: outlinedStyle('warning'),
|
|
70
|
-
outlinedError: outlinedStyle('error'),
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Autocomplete(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiAutocomplete: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
'& .MuiInputBase-root': {
|
|
11
|
-
padding: '0 39px 0px 0',
|
|
12
|
-
},
|
|
13
|
-
input: {
|
|
14
|
-
padding: `${theme.spacing(1.5, 1.5)}!important`,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
paper: {
|
|
18
|
-
boxShadow: theme.customShadows.dropdown,
|
|
19
|
-
},
|
|
20
|
-
listbox: {
|
|
21
|
-
padding: theme.spacing(0, 1),
|
|
22
|
-
'& .MuiAutocomplete-option': {
|
|
23
|
-
padding: theme.spacing(1),
|
|
24
|
-
margin: theme.spacing(1, 0),
|
|
25
|
-
borderRadius: theme.shape.borderRadius,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Avatar(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiAvatar: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
colorDefault: {
|
|
10
|
-
color: theme.palette.text.secondary,
|
|
11
|
-
backgroundColor: theme.palette.grey[400],
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
MuiAvatarGroup: {
|
|
16
|
-
styleOverrides: {
|
|
17
|
-
avatar: {
|
|
18
|
-
fontSize: 16,
|
|
19
|
-
fontWeight: theme.typography.fontWeightMedium,
|
|
20
|
-
'&:first-of-type': {
|
|
21
|
-
fontSize: 14,
|
|
22
|
-
color: theme.palette.primary.main,
|
|
23
|
-
backgroundColor: theme.palette.primary.lighter,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { alpha, Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Backdrop(theme: Theme) {
|
|
6
|
-
const varLow = alpha(theme.palette.grey[900], 0.48);
|
|
7
|
-
const varHigh = alpha(theme.palette.grey[900], 1);
|
|
8
|
-
|
|
9
|
-
return {
|
|
10
|
-
MuiBackdrop: {
|
|
11
|
-
styleOverrides: {
|
|
12
|
-
root: {
|
|
13
|
-
background: [
|
|
14
|
-
`rgb(22,28,36)`,
|
|
15
|
-
`-moz-linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
|
|
16
|
-
`-webkit-linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
|
|
17
|
-
`linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
|
|
18
|
-
],
|
|
19
|
-
'&.MuiBackdrop-invisible': {
|
|
20
|
-
background: 'transparent',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
-
export default function Badge(_theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiBadge: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
dot: {
|
|
10
|
-
width: 10,
|
|
11
|
-
height: 10,
|
|
12
|
-
borderRadius: '50%',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Breadcrumbs(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiBreadcrumbs: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
separator: {
|
|
10
|
-
marginLeft: theme.spacing(2),
|
|
11
|
-
marginRight: theme.spacing(2),
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Button(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiButton: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
textTransform: 'capitalize',
|
|
11
|
-
'&:hover': {
|
|
12
|
-
boxShadow: 'none',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
sizeLarge: {
|
|
16
|
-
height: 48,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
// contained
|
|
20
|
-
containedInherit: {
|
|
21
|
-
color: theme.palette.grey[800],
|
|
22
|
-
boxShadow: theme.customShadows.z1,
|
|
23
|
-
'&:hover': {
|
|
24
|
-
backgroundColor: theme.palette.grey[400],
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
containedPrimary: {
|
|
28
|
-
boxShadow: theme.customShadows.z24,
|
|
29
|
-
// color: theme.palette.primary.contrastText,
|
|
30
|
-
},
|
|
31
|
-
containedSecondary: {
|
|
32
|
-
boxShadow: theme.customShadows.secondary,
|
|
33
|
-
},
|
|
34
|
-
containedInfo: {
|
|
35
|
-
boxShadow: theme.customShadows.info,
|
|
36
|
-
},
|
|
37
|
-
containedSuccess: {
|
|
38
|
-
boxShadow: theme.customShadows.success,
|
|
39
|
-
},
|
|
40
|
-
containedWarning: {
|
|
41
|
-
boxShadow: theme.customShadows.warning,
|
|
42
|
-
},
|
|
43
|
-
containedError: {
|
|
44
|
-
boxShadow: theme.customShadows.error,
|
|
45
|
-
},
|
|
46
|
-
// outlined
|
|
47
|
-
|
|
48
|
-
outlinedInherit: {
|
|
49
|
-
border: `1px solid ${theme.palette.grey[500_32]}`,
|
|
50
|
-
'&:hover': {
|
|
51
|
-
backgroundColor: theme.palette.action.hover,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
textInherit: {
|
|
55
|
-
'&:hover': {
|
|
56
|
-
backgroundColor: theme.palette.action.hover,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function ButtonGroup(theme: Theme) {
|
|
6
|
-
const styleContained = (
|
|
7
|
-
color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error',
|
|
8
|
-
) => ({
|
|
9
|
-
props: { variant: 'contained', color },
|
|
10
|
-
style: { boxShadow: theme.customShadows[color] },
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
return {
|
|
14
|
-
MuiButtonGroup: {
|
|
15
|
-
variants: [
|
|
16
|
-
{
|
|
17
|
-
props: { variant: 'contained', color: 'inherit' },
|
|
18
|
-
style: { boxShadow: theme.customShadows.z8 },
|
|
19
|
-
},
|
|
20
|
-
styleContained('primary'),
|
|
21
|
-
styleContained('secondary'),
|
|
22
|
-
styleContained('info'),
|
|
23
|
-
styleContained('success'),
|
|
24
|
-
styleContained('warning'),
|
|
25
|
-
styleContained('error'),
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
props: { disabled: true },
|
|
29
|
-
style: {
|
|
30
|
-
boxShadow: 'none',
|
|
31
|
-
'& .MuiButtonGroup-grouped.Mui-disabled': {
|
|
32
|
-
color: theme.palette.action.disabled,
|
|
33
|
-
borderColor: `${theme.palette.action.disabledBackground} !important`,
|
|
34
|
-
'&.MuiButton-contained': {
|
|
35
|
-
backgroundColor: theme.palette.action.disabledBackground,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
|
|
42
|
-
styleOverrides: {
|
|
43
|
-
root: {
|
|
44
|
-
'&:hover': {
|
|
45
|
-
boxShadow: 'none',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Card(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiCard: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
position: 'relative',
|
|
11
|
-
boxShadow: theme.customShadows.card,
|
|
12
|
-
borderRadius: Number(theme.shape.borderRadius) * 2,
|
|
13
|
-
zIndex: 0, // Fix Safari overflow: hidden with border radius
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
MuiCardHeader: {
|
|
18
|
-
defaultProps: {
|
|
19
|
-
titleTypographyProps: { variant: 'h6' },
|
|
20
|
-
subheaderTypographyProps: { variant: 'body2', marginTop: theme.spacing(0.5) },
|
|
21
|
-
},
|
|
22
|
-
styleOverrides: {
|
|
23
|
-
root: {
|
|
24
|
-
padding: theme.spacing(3, 3, 0),
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
MuiCardContent: {
|
|
29
|
-
styleOverrides: {
|
|
30
|
-
root: {
|
|
31
|
-
padding: theme.spacing(3),
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
// ----------------------------------------------------------------------
|
|
5
|
-
|
|
6
|
-
export default function Checkbox(theme: Theme) {
|
|
7
|
-
return {
|
|
8
|
-
MuiCheckbox: {
|
|
9
|
-
// defaultProps: {
|
|
10
|
-
// icon: <CheckboxIcon />,
|
|
11
|
-
// checkedIcon: <CheckboxCheckedIcon />,
|
|
12
|
-
// indeterminateIcon: <CheckboxIndeterminateIcon />,
|
|
13
|
-
// },
|
|
14
|
-
|
|
15
|
-
styleOverrides: {
|
|
16
|
-
root: {
|
|
17
|
-
padding: theme.spacing(1),
|
|
18
|
-
|
|
19
|
-
oleee: 'sss',
|
|
20
|
-
// '& .MuiCheckbox-root': {
|
|
21
|
-
// color: theme.palette.divider,
|
|
22
|
-
// },
|
|
23
|
-
color: theme.palette.action.active,
|
|
24
|
-
'& .Mui-checked': {
|
|
25
|
-
color: theme.palette.primary.main,
|
|
26
|
-
},
|
|
27
|
-
'&.Mui-checked.Mui-disabled, &.Mui-disabled': {
|
|
28
|
-
color: theme.palette.action.disabled,
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
// '& .MuiSvgIcon-root': {
|
|
32
|
-
// color: theme.palette.text.secondary,
|
|
33
|
-
// },
|
|
34
|
-
|
|
35
|
-
// '& .MuiSvgIcon-fontSizeMedium': {
|
|
36
|
-
// width: 24,
|
|
37
|
-
// height: 24,
|
|
38
|
-
// },
|
|
39
|
-
// '& .MuiSvgIcon-fontSizeSmall': {
|
|
40
|
-
// width: 18,
|
|
41
|
-
// height: 18,
|
|
42
|
-
// },
|
|
43
|
-
|
|
44
|
-
// svg: {
|
|
45
|
-
// fontSize: 24,
|
|
46
|
-
// '&[font-size=small]': {
|
|
47
|
-
// fontSize: 18,
|
|
48
|
-
// },
|
|
49
|
-
// },
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
//
|
|
3
|
-
import { CloseIcon } from './CustomIcons';
|
|
4
|
-
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
|
-
export default function Chip(theme: Theme) {
|
|
8
|
-
return {
|
|
9
|
-
MuiChip: {
|
|
10
|
-
defaultProps: {
|
|
11
|
-
deleteIcon: <CloseIcon />,
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
styleOverrides: {
|
|
15
|
-
colorDefault: {
|
|
16
|
-
'& .MuiChip-avatarMedium, .MuiChip-avatarSmall': {
|
|
17
|
-
color: theme.palette.text.secondary,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
outlined: {
|
|
21
|
-
borderColor: theme.palette.grey[500_32],
|
|
22
|
-
'&.MuiChip-colorPrimary': {
|
|
23
|
-
borderColor: theme.palette.primary.main,
|
|
24
|
-
},
|
|
25
|
-
'&.MuiChip-colorSecondary': {
|
|
26
|
-
borderColor: theme.palette.secondary.main,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
//
|
|
30
|
-
avatarColorInfo: {
|
|
31
|
-
color: theme.palette.info.contrastText,
|
|
32
|
-
backgroundColor: theme.palette.info.dark,
|
|
33
|
-
},
|
|
34
|
-
avatarColorSuccess: {
|
|
35
|
-
color: theme.palette.success.contrastText,
|
|
36
|
-
backgroundColor: theme.palette.success.dark,
|
|
37
|
-
},
|
|
38
|
-
avatarColorWarning: {
|
|
39
|
-
color: theme.palette.warning.contrastText,
|
|
40
|
-
backgroundColor: theme.palette.warning.dark,
|
|
41
|
-
},
|
|
42
|
-
avatarColorError: {
|
|
43
|
-
color: theme.palette.error.contrastText,
|
|
44
|
-
backgroundColor: theme.palette.error.dark,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function ControlLabel(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiFormControlLabel: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
label: {
|
|
10
|
-
...theme.typography.body1,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
MuiFormHelperText: {
|
|
15
|
-
styleOverrides: {
|
|
16
|
-
root: {
|
|
17
|
-
marginTop: theme.spacing(1),
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
MuiFormLabel: {
|
|
22
|
-
styleOverrides: {
|
|
23
|
-
root: {
|
|
24
|
-
color: theme.palette.text.disabled,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
export default function CssBaseline(_theme: Theme) {
|
|
5
|
-
return {
|
|
6
|
-
MuiCssBaseline: {
|
|
7
|
-
styleOverrides: {
|
|
8
|
-
'*': {
|
|
9
|
-
margin: 0,
|
|
10
|
-
padding: 0,
|
|
11
|
-
boxSizing: 'border-box',
|
|
12
|
-
},
|
|
13
|
-
html: {
|
|
14
|
-
width: '100%',
|
|
15
|
-
height: '100%',
|
|
16
|
-
WebkitOverflowScrolling: 'touch',
|
|
17
|
-
},
|
|
18
|
-
body: {
|
|
19
|
-
width: '100%',
|
|
20
|
-
height: '100%',
|
|
21
|
-
},
|
|
22
|
-
'#root': {
|
|
23
|
-
width: '100%',
|
|
24
|
-
height: '100%',
|
|
25
|
-
},
|
|
26
|
-
input: {
|
|
27
|
-
'&[type=number]': {
|
|
28
|
-
MozAppearance: 'textfield',
|
|
29
|
-
'&::-webkit-outer-spin-button': {
|
|
30
|
-
margin: 0,
|
|
31
|
-
WebkitAppearance: 'none',
|
|
32
|
-
},
|
|
33
|
-
'&::-webkit-inner-spin-button': {
|
|
34
|
-
margin: 0,
|
|
35
|
-
WebkitAppearance: 'none',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
img: {
|
|
40
|
-
display: 'block',
|
|
41
|
-
maxWidth: '100%',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
}
|