hospital portal

This commit is contained in:
pajri
2023-02-01 16:22:03 +07:00
parent 8d5f4bb0bd
commit a7e688a52c
340 changed files with 46280 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
import { Theme, alpha } from '@mui/material/styles';
//
import { ColorSchema } from '../palette';
// ----------------------------------------------------------------------
export default function ToggleButton(theme: Theme) {
const style = (color: ColorSchema) => ({
props: { color },
style: {
'&:hover': {
borderColor: alpha(theme.palette[color].main, 0.48),
backgroundColor: alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),
},
'&.Mui-selected': {
borderColor: alpha(theme.palette[color].main, 0.48),
},
},
});
return {
MuiToggleButton: {
variants: [
{
props: { color: 'standard' },
style: {
'&.Mui-selected': {
backgroundColor: theme.palette.action.selected,
},
},
},
style('primary'),
style('secondary'),
style('info'),
style('success'),
style('warning'),
style('error'),
],
},
MuiToggleButtonGroup: {
styleOverrides: {
root: {
borderRadius: theme.shape.borderRadius,
backgroundColor: theme.palette.background.paper,
border: `solid 1px ${theme.palette.grey[500_12]}`,
'& .MuiToggleButton-root': {
margin: 4,
borderColor: 'transparent !important',
borderRadius: `${theme.shape.borderRadius}px !important`,
},
},
},
},
};
}