@teravn/onui
Version:
The React UI component library is based on MUI
90 lines (89 loc) • 3.16 kB
TypeScript
import { OwnerStateThemeType } from '.';
declare const Button: () => {
MuiButton: {
styleOverrides: {
root: ({ ownerState, theme }: OwnerStateThemeType) => {
'&:hover'?: {
backgroundColor: string;
} | undefined;
padding?: string | undefined;
fontSize: string;
lineHeight: string;
borderRadius: number;
textTransform: string;
};
contained: ({ theme }: OwnerStateThemeType) => {
border: string;
boxShadow: string;
':hover': {
boxShadow: string;
};
};
containedPrimary: ({ theme }: OwnerStateThemeType) => {
borderColor: string;
color: string;
'&.MuiButton-containedPrimary': {
backgroundColor: string;
};
'&.MuiButton-containedPrimary:hover': {
backgroundColor: string;
borderColor: string;
};
'&.MuiButton-containedPrimary:focus': {
backgroundColor: string;
borderColor: string;
boxShadow: string;
};
'&.MuiButton-containedPrimary:disabled': {
backgroundColor: string;
borderColor: string;
color: string;
};
};
containedSecondary: ({ theme }: OwnerStateThemeType) => {
borderColor: string;
color: string;
'&.MuiButton-containedSecondary': {
backgroundColor: string;
};
'&.MuiButton-containedSecondary:hover': {
backgroundColor: string;
color: string;
};
'&.MuiButton-containedSecondary:focus': {
borderColor: string;
boxShadow: string;
};
'&.MuiButton-containedSecondary:disabled': {
borderColor: string;
color: string;
};
};
containedError: ({ theme }: OwnerStateThemeType) => {
borderColor: string;
color: string;
'&.MuiButton-containedError': {
backgroundColor: string;
};
'&.MuiButton-containedError:hover': {
backgroundColor: string;
borderColor: string;
};
'&.MuiButton-containedError:focus': {
boxShadow: string;
};
'&.MuiButton-containedError:disabled': {
backgroundColor: string;
borderColor: string;
color: string;
};
};
};
};
MuiButtonBase: {
defaultProps: {
disableRipple: boolean;
};
};
};
export default Button;