@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,27 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Paper(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiPaper: {
|
|
8
|
-
defaultProps: {
|
|
9
|
-
elevation: 0,
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
variants: [
|
|
13
|
-
{
|
|
14
|
-
props: { variant: 'outlined' },
|
|
15
|
-
style: { borderColor: theme.palette.grey[500_12] },
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
styleOverrides: {
|
|
20
|
-
root: {
|
|
21
|
-
backgroundImage: 'none',
|
|
22
|
-
borderRadius: '2px',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Popover(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiPopover: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
paper: {
|
|
10
|
-
boxShadow: theme.customShadows.dropdown,
|
|
11
|
-
borderRadius: Number(theme.shape.borderRadius) * 1.5,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Progress(theme: Theme) {
|
|
6
|
-
const isLight = theme.palette.mode === 'light';
|
|
7
|
-
|
|
8
|
-
return {
|
|
9
|
-
MuiLinearProgress: {
|
|
10
|
-
styleOverrides: {
|
|
11
|
-
root: {
|
|
12
|
-
borderRadius: 4,
|
|
13
|
-
overflow: 'hidden',
|
|
14
|
-
},
|
|
15
|
-
bar: {
|
|
16
|
-
borderRadius: 4,
|
|
17
|
-
},
|
|
18
|
-
colorPrimary: {
|
|
19
|
-
backgroundColor: theme.palette.primary[isLight ? 'lighter' : 'darker'],
|
|
20
|
-
},
|
|
21
|
-
buffer: {
|
|
22
|
-
backgroundColor: 'transparent',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Radio(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiRadio: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
padding: theme.spacing(1),
|
|
11
|
-
svg: {
|
|
12
|
-
fontSize: 24,
|
|
13
|
-
'&[font-size=small]': {
|
|
14
|
-
fontSize: 20,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
//
|
|
3
|
-
import { StarIcon } from './CustomIcons';
|
|
4
|
-
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
|
-
const ICON_SMALL = { width: 20, height: 20 };
|
|
8
|
-
const ICON_LARGE = { width: 28, height: 28 };
|
|
9
|
-
|
|
10
|
-
export default function Rating(theme: Theme) {
|
|
11
|
-
return {
|
|
12
|
-
MuiRating: {
|
|
13
|
-
defaultProps: {
|
|
14
|
-
emptyIcon: <StarIcon />,
|
|
15
|
-
icon: <StarIcon />,
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
styleOverrides: {
|
|
19
|
-
root: {
|
|
20
|
-
'&.Mui-disabled': {
|
|
21
|
-
opacity: 0.48,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
iconEmpty: { color: theme.palette.grey[500_48] },
|
|
25
|
-
sizeSmall: { '& svg': { ...ICON_SMALL } },
|
|
26
|
-
sizeLarge: { '& svg': { ...ICON_LARGE } },
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
import { InputSelectIcon } from './CustomIcons';
|
|
3
|
-
|
|
4
|
-
// ----------------------------------------------------------------------
|
|
5
|
-
|
|
6
|
-
export default function Select() {
|
|
7
|
-
return {
|
|
8
|
-
MuiSelect: {
|
|
9
|
-
defaultProps: {
|
|
10
|
-
IconComponent: InputSelectIcon,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Skeleton(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiSkeleton: {
|
|
8
|
-
defaultProps: {
|
|
9
|
-
animation: 'wave',
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
styleOverrides: {
|
|
13
|
-
root: {
|
|
14
|
-
backgroundColor: theme.palette.divider,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Slider(theme: Theme) {
|
|
6
|
-
const isLight = theme.palette.mode === 'light';
|
|
7
|
-
|
|
8
|
-
return {
|
|
9
|
-
MuiSlider: {
|
|
10
|
-
defaultProps: {
|
|
11
|
-
size: 'small',
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
styleOverrides: {
|
|
15
|
-
root: {
|
|
16
|
-
'&.Mui-disabled': {
|
|
17
|
-
color: theme.palette.action.disabled,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
markLabel: {
|
|
21
|
-
fontSize: 13,
|
|
22
|
-
color: theme.palette.text.disabled,
|
|
23
|
-
},
|
|
24
|
-
valueLabel: {
|
|
25
|
-
borderRadius: 8,
|
|
26
|
-
backgroundColor: theme.palette.grey[isLight ? 800 : 700],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Stepper(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiStepConnector: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
line: {
|
|
10
|
-
borderColor: theme.palette.divider,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
export default function SvgIcon(_theme: Theme) {
|
|
5
|
-
return {
|
|
6
|
-
MuiSvgIcon: {
|
|
7
|
-
styleOverrides: {
|
|
8
|
-
fontSizeSmall: {
|
|
9
|
-
width: 20,
|
|
10
|
-
height: 20,
|
|
11
|
-
fontSize: 'inherit',
|
|
12
|
-
},
|
|
13
|
-
fontSizeLarge: {
|
|
14
|
-
width: 32,
|
|
15
|
-
height: 32,
|
|
16
|
-
fontSize: 'inherit',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Switch(theme: Theme) {
|
|
6
|
-
const isLight = theme.palette.mode === 'light';
|
|
7
|
-
|
|
8
|
-
return {
|
|
9
|
-
MuiSwitch: {
|
|
10
|
-
styleOverrides: {
|
|
11
|
-
thumb: {
|
|
12
|
-
boxShadow: theme.customShadows.z1,
|
|
13
|
-
},
|
|
14
|
-
track: {
|
|
15
|
-
opacity: 1,
|
|
16
|
-
backgroundColor: theme.palette.grey[500],
|
|
17
|
-
},
|
|
18
|
-
switchBase: {
|
|
19
|
-
left: 0,
|
|
20
|
-
right: 'auto',
|
|
21
|
-
'&:not(:.Mui-checked)': {
|
|
22
|
-
color: theme.palette.grey[isLight ? 100 : 300],
|
|
23
|
-
},
|
|
24
|
-
'&.Mui-checked.Mui-disabled, &.Mui-disabled': {
|
|
25
|
-
color: theme.palette.grey[isLight ? 400 : 600],
|
|
26
|
-
},
|
|
27
|
-
'&.Mui-disabled+.MuiSwitch-track': {
|
|
28
|
-
opacity: 1,
|
|
29
|
-
backgroundColor: `${theme.palette.action.disabledBackground} !important`,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Table(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiTableRow: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
'&.Mui-selected': {
|
|
11
|
-
backgroundColor: theme.palette.action.selected,
|
|
12
|
-
'&:hover': {
|
|
13
|
-
backgroundColor: theme.palette.action.hover,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
MuiTableCell: {
|
|
20
|
-
styleOverrides: {
|
|
21
|
-
root: {
|
|
22
|
-
borderBottom: 'none',
|
|
23
|
-
},
|
|
24
|
-
head: {
|
|
25
|
-
color: theme.palette.text.secondary,
|
|
26
|
-
backgroundColor: theme.palette.background.neutral,
|
|
27
|
-
'&:first-of-type': {
|
|
28
|
-
paddingLeft: theme.spacing(3),
|
|
29
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
30
|
-
borderBottomLeftRadius: theme.shape.borderRadius,
|
|
31
|
-
boxShadow: `inset 8px 0 0 ${theme.palette.background.paper}`,
|
|
32
|
-
},
|
|
33
|
-
'&:last-of-type': {
|
|
34
|
-
paddingRight: theme.spacing(3),
|
|
35
|
-
borderTopRightRadius: theme.shape.borderRadius,
|
|
36
|
-
borderBottomRightRadius: theme.shape.borderRadius,
|
|
37
|
-
boxShadow: `inset -8px 0 0 ${theme.palette.background.paper}`,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
stickyHeader: {
|
|
41
|
-
backgroundColor: theme.palette.background.paper,
|
|
42
|
-
backgroundImage: `linear-gradient(to bottom, ${theme.palette.background.neutral} 0%, ${theme.palette.background.neutral} 100%)`,
|
|
43
|
-
},
|
|
44
|
-
body: {
|
|
45
|
-
'&:first-of-type': {
|
|
46
|
-
paddingLeft: theme.spacing(3),
|
|
47
|
-
},
|
|
48
|
-
'&:last-of-type': {
|
|
49
|
-
paddingRight: theme.spacing(3),
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
MuiTablePagination: {
|
|
55
|
-
styleOverrides: {
|
|
56
|
-
root: {
|
|
57
|
-
...theme.typography.caption,
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
toolbar: {
|
|
61
|
-
'& .MuiInputBase-root': {
|
|
62
|
-
marginLeft: theme.spacing(1),
|
|
63
|
-
marginRight: theme.spacing(3),
|
|
64
|
-
...theme.typography.caption,
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
'&.MuiToolbar-regular': {
|
|
68
|
-
minHeight: 40,
|
|
69
|
-
height: 40,
|
|
70
|
-
paddingRight: 0,
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
'& .MuiTablePagination-displayedRows': {
|
|
74
|
-
...theme.typography.caption,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
selectLabel: {
|
|
79
|
-
...theme.typography.caption,
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
select: {
|
|
83
|
-
paddingBottom: 4,
|
|
84
|
-
'&:focus': {
|
|
85
|
-
borderRadius: theme.shape.borderRadius,
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
selectIcon: {
|
|
89
|
-
width: 20,
|
|
90
|
-
height: 20,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Tabs(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiTabs: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
padding: 0,
|
|
11
|
-
fontWeight: theme.typography.fontWeightMedium,
|
|
12
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
13
|
-
borderTopRightRadius: theme.shape.borderRadius,
|
|
14
|
-
'&.Mui-selected': {
|
|
15
|
-
color: theme.palette.text.primary,
|
|
16
|
-
},
|
|
17
|
-
'&:not(:last-of-type)': {
|
|
18
|
-
marginRight: theme.spacing(5),
|
|
19
|
-
},
|
|
20
|
-
'@media (min-width: 600px)': {
|
|
21
|
-
minWidth: 48,
|
|
22
|
-
},
|
|
23
|
-
'& .MuiButtonBase-root': {
|
|
24
|
-
...theme.typography.subtitle2,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
labelIcon: {
|
|
28
|
-
minHeight: 48,
|
|
29
|
-
flexDirection: 'row',
|
|
30
|
-
'& > *:first-of-type': {
|
|
31
|
-
marginBottom: 0,
|
|
32
|
-
marginRight: theme.spacing(1),
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
wrapper: {
|
|
36
|
-
flexDirection: 'row',
|
|
37
|
-
whiteSpace: 'nowrap',
|
|
38
|
-
},
|
|
39
|
-
textColorInherit: {
|
|
40
|
-
opacity: 1,
|
|
41
|
-
color: theme.palette.text.secondary,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
MuiTabPanel: {
|
|
46
|
-
styleOverrides: {
|
|
47
|
-
root: {
|
|
48
|
-
padding: 0,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
MuiTabScrollButton: {
|
|
53
|
-
styleOverrides: {
|
|
54
|
-
root: {
|
|
55
|
-
width: 48,
|
|
56
|
-
borderRadius: '50%',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Timeline(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiTimelineDot: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
boxShadow: 'none',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
MuiTimelineConnector: {
|
|
16
|
-
styleOverrides: {
|
|
17
|
-
root: {
|
|
18
|
-
backgroundColor: theme.palette.divider,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Theme, alpha } from '@mui/material/styles';
|
|
2
|
-
//
|
|
3
|
-
import { ColorSchema } from '../palette';
|
|
4
|
-
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
const style = (theme: Theme, color: ColorSchema) => ({
|
|
7
|
-
props: { color },
|
|
8
|
-
style: {
|
|
9
|
-
'&:hover': {
|
|
10
|
-
borderColor: alpha(theme.palette[color].main, 0.48),
|
|
11
|
-
backgroundColor: alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),
|
|
12
|
-
},
|
|
13
|
-
'&.Mui-selected': {
|
|
14
|
-
borderColor: alpha(theme.palette[color].main, 0.48),
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export default function ToggleButton(theme: Theme) {
|
|
20
|
-
return {
|
|
21
|
-
MuiToggleButton: {
|
|
22
|
-
variants: [
|
|
23
|
-
{
|
|
24
|
-
props: { color: 'standard' },
|
|
25
|
-
style: {
|
|
26
|
-
'&.Mui-selected': {
|
|
27
|
-
backgroundColor: theme.palette.action.selected,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
style(theme, 'primary'),
|
|
32
|
-
style(theme, 'secondary'),
|
|
33
|
-
style(theme, 'info'),
|
|
34
|
-
style(theme, 'success'),
|
|
35
|
-
style(theme, 'warning'),
|
|
36
|
-
style(theme, 'error'),
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
MuiToggleButtonGroup: {
|
|
40
|
-
styleOverrides: {
|
|
41
|
-
root: {
|
|
42
|
-
borderRadius: theme.shape.borderRadius,
|
|
43
|
-
backgroundColor: theme.palette.background.paper,
|
|
44
|
-
border: `solid 1px ${theme.palette.grey[500_12]}`,
|
|
45
|
-
'& .MuiToggleButton-root': {
|
|
46
|
-
margin: 4,
|
|
47
|
-
borderColor: 'transparent !important',
|
|
48
|
-
borderRadius: `${theme.shape.borderRadius}px !important`,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Tooltip(theme: Theme) {
|
|
6
|
-
const isLight = theme.palette.mode === 'light';
|
|
7
|
-
|
|
8
|
-
return {
|
|
9
|
-
MuiTooltip: {
|
|
10
|
-
styleOverrides: {
|
|
11
|
-
tooltip: {
|
|
12
|
-
backgroundColor: theme.palette.grey[isLight ? 800 : 700],
|
|
13
|
-
},
|
|
14
|
-
arrow: {
|
|
15
|
-
color: theme.palette.grey[isLight ? 800 : 700],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
//
|
|
3
|
-
import { TreeViewCollapseIcon, TreeViewExpandIcon, TreeViewEndIcon } from './CustomIcons';
|
|
4
|
-
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
|
-
export default function TreeView(theme: Theme) {
|
|
8
|
-
return {
|
|
9
|
-
MuiTreeView: {
|
|
10
|
-
defaultProps: {
|
|
11
|
-
defaultCollapseIcon: <TreeViewCollapseIcon sx={{ width: 20, height: 20 }} />,
|
|
12
|
-
defaultExpandIcon: <TreeViewExpandIcon sx={{ width: 20, height: 20 }} />,
|
|
13
|
-
defaultEndIcon: (
|
|
14
|
-
<TreeViewEndIcon sx={{ color: 'text.secondary', width: 20, height: 20 }} />
|
|
15
|
-
),
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
MuiTreeItem: {
|
|
19
|
-
styleOverrides: {
|
|
20
|
-
label: { ...theme.typography.body2 },
|
|
21
|
-
iconContainer: { width: 'auto' },
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export default function Typography(theme: Theme) {
|
|
6
|
-
return {
|
|
7
|
-
MuiTypography: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
paragraph: {
|
|
10
|
-
marginBottom: theme.spacing(2),
|
|
11
|
-
},
|
|
12
|
-
gutterBottom: {
|
|
13
|
-
marginBottom: theme.spacing(1),
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
//
|
|
3
|
-
import Avatar from './Avatar';
|
|
4
|
-
// import Alert from './Alert';
|
|
5
|
-
|
|
6
|
-
import Button from './Button';
|
|
7
|
-
import IconButton from './IconButton';
|
|
8
|
-
import Fab from './Fab';
|
|
9
|
-
import Card from './Card';
|
|
10
|
-
// import Chip from './Chip';
|
|
11
|
-
import Tabs from './Tabs';
|
|
12
|
-
import Menu from './Menu';
|
|
13
|
-
import Link from './Link';
|
|
14
|
-
import Lists from './List';
|
|
15
|
-
import Table from './Table';
|
|
16
|
-
|
|
17
|
-
import Badge from './Badge';
|
|
18
|
-
import Paper from './Paper';
|
|
19
|
-
import Input from './Input';
|
|
20
|
-
import InputLabel from './InputLabel';
|
|
21
|
-
import Radio from './Radio';
|
|
22
|
-
import Drawer from './Drawer';
|
|
23
|
-
import Dialog from './Dialog';
|
|
24
|
-
|
|
25
|
-
// import Rating from './Rating';
|
|
26
|
-
import Slider from './Slider';
|
|
27
|
-
|
|
28
|
-
import Switch from './Switch';
|
|
29
|
-
// import Select from './Select';
|
|
30
|
-
import SvgIcon from './SvgIcon';
|
|
31
|
-
import Tooltip from './Tooltip';
|
|
32
|
-
import Popover from './Popover';
|
|
33
|
-
import Stepper from './Stepper';
|
|
34
|
-
import DataGrid from './DataGrid';
|
|
35
|
-
import Skeleton from './Skeleton';
|
|
36
|
-
import Backdrop from './Backdrop';
|
|
37
|
-
import Progress from './Progress';
|
|
38
|
-
import Timeline from './Timeline';
|
|
39
|
-
// import TreeView from './TreeView';
|
|
40
|
-
import Checkbox from './Checkbox';
|
|
41
|
-
import Accordion from './Accordion';
|
|
42
|
-
import Typography from './Typography';
|
|
43
|
-
import Pagination from './Pagination';
|
|
44
|
-
import Breadcrumbs from './Breadcrumbs';
|
|
45
|
-
import ButtonGroup from './ButtonGroup';
|
|
46
|
-
import CssBaseline from './CssBaseline';
|
|
47
|
-
import Autocomplete from './Autocomplete';
|
|
48
|
-
import ToggleButton from './ToggleButton';
|
|
49
|
-
import ControlLabel from './ControlLabel';
|
|
50
|
-
import LoadingButton from './LoadingButton';
|
|
51
|
-
|
|
52
|
-
// ----------------------------------------------------------------------
|
|
53
|
-
|
|
54
|
-
export default function fnComponentsOverrides(theme: Theme) {
|
|
55
|
-
return Object.assign(
|
|
56
|
-
Fab(theme),
|
|
57
|
-
Tabs(theme),
|
|
58
|
-
// Chip(theme),
|
|
59
|
-
Card(theme),
|
|
60
|
-
Menu(theme),
|
|
61
|
-
Link(theme),
|
|
62
|
-
Input(theme),
|
|
63
|
-
InputLabel(theme),
|
|
64
|
-
Radio(theme),
|
|
65
|
-
Badge(theme),
|
|
66
|
-
Lists(theme),
|
|
67
|
-
Table(theme),
|
|
68
|
-
Paper(theme),
|
|
69
|
-
// Alert(theme),
|
|
70
|
-
Switch(theme),
|
|
71
|
-
// Select(theme),
|
|
72
|
-
Button(theme),
|
|
73
|
-
IconButton(theme),
|
|
74
|
-
|
|
75
|
-
// Rating(theme),
|
|
76
|
-
Dialog(theme),
|
|
77
|
-
Avatar(theme),
|
|
78
|
-
Slider(theme),
|
|
79
|
-
Drawer(theme),
|
|
80
|
-
Stepper(theme),
|
|
81
|
-
Tooltip(theme),
|
|
82
|
-
Popover(theme),
|
|
83
|
-
SvgIcon(theme),
|
|
84
|
-
Checkbox(theme),
|
|
85
|
-
DataGrid(theme),
|
|
86
|
-
Skeleton(theme),
|
|
87
|
-
Timeline(theme),
|
|
88
|
-
// TreeView(theme),
|
|
89
|
-
Backdrop(theme),
|
|
90
|
-
Progress(theme),
|
|
91
|
-
Accordion(theme),
|
|
92
|
-
Typography(theme),
|
|
93
|
-
Pagination(theme),
|
|
94
|
-
ButtonGroup(theme),
|
|
95
|
-
Breadcrumbs(theme),
|
|
96
|
-
CssBaseline(theme),
|
|
97
|
-
Autocomplete(theme),
|
|
98
|
-
ControlLabel(theme),
|
|
99
|
-
ToggleButton(theme),
|
|
100
|
-
LoadingButton(theme),
|
|
101
|
-
);
|
|
102
|
-
}
|