import apollo_core from "@uipath/apollo-core";
const MuiChip = (palette)=>({
        deletable: {
            '&:focus:not(.Mui-disabled)': {
                backgroundColor: palette.semantic.colorHover
            }
        },
        root: {
            paddingLeft: apollo_core.Padding.PadL,
            paddingRight: apollo_core.Padding.PadL,
            paddingTop: apollo_core.Padding.PadXs,
            paddingBottom: apollo_core.Padding.PadXs,
            minWidth: '32px',
            fontSize: apollo_core.FontFamily.FontMSize,
            lineHeight: apollo_core.FontFamily.FontMLineHeight,
            fontWeight: apollo_core.FontFamily.FontWeightDefault,
            color: palette.semantic.colorForeground,
            backgroundColor: palette.semantic.colorBackgroundGray,
            '&:hover': {
                backgroundColor: palette.semantic.colorHover
            },
            '&.icon': {
                color: palette.semantic.colorForeground,
                paddingLeft: '0px',
                paddingRight: '0px'
            },
            '&.warning-mini': {
                paddingLeft: '0px',
                paddingRight: '0px',
                height: '16px',
                fontSize: apollo_core.FontFamily.FontXsSize,
                lineHeight: apollo_core.FontFamily.FontXsLineHeight,
                fontStyle: 'normal',
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                color: palette.semantic.colorWarningText,
                background: palette.semantic.colorWarningBackground
            },
            '&.mini': {
                paddingLeft: '0px',
                paddingRight: '0px',
                height: '16px',
                fontSize: apollo_core.FontFamily.FontXsSize,
                lineHeight: apollo_core.FontFamily.FontXsLineHeight,
                fontStyle: 'normal',
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                color: palette.semantic.colorForeground,
                background: palette.semantic.colorBackgroundSecondary
            },
            '&.info-mini': {
                paddingLeft: '0px',
                paddingRight: '0px',
                height: '16px',
                fontSize: apollo_core.FontFamily.FontXsSize,
                lineHeight: apollo_core.FontFamily.FontXsLineHeight,
                fontStyle: 'normal',
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                color: palette.semantic.colorInfoForeground,
                background: palette.semantic.colorInfoBackground
            },
            '&.success-mini': {
                paddingLeft: '0px',
                paddingRight: '0px',
                height: '16px',
                fontSize: apollo_core.FontFamily.FontXsSize,
                lineHeight: apollo_core.FontFamily.FontXsLineHeight,
                fontStyle: 'normal',
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                color: palette.semantic.colorSuccessText,
                background: palette.semantic.colorSuccessBackground
            },
            '&.error-mini': {
                paddingLeft: '0px',
                paddingRight: '0px',
                height: '16px',
                fontSize: apollo_core.FontFamily.FontXsSize,
                lineHeight: apollo_core.FontFamily.FontXsLineHeight,
                fontStyle: 'normal',
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                color: palette.semantic.colorErrorText,
                background: palette.semantic.colorErrorBackground
            },
            '& .MuiChip-icon, .MuiChip-deleteIcon': {
                color: palette.semantic.colorForeground,
                width: '16px',
                height: 'auto'
            },
            '& .MuiChip-deleteIcon:hover': {
                color: palette.semantic.colorForeground
            },
            '&.warning': {
                color: palette.semantic.colorWarningText,
                background: palette.semantic.colorWarningBackground,
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                '&:hover': {
                    color: palette.semantic.colorWarningText,
                    background: palette.semantic.colorWarningBackground
                }
            },
            '&.success': {
                color: palette.semantic.colorSuccessText,
                background: palette.semantic.colorSuccessBackground,
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                '&:hover': {
                    color: palette.semantic.colorSuccessText,
                    background: palette.semantic.colorSuccessBackground
                }
            },
            '&.info': {
                color: palette.semantic.colorInfoForeground,
                background: palette.semantic.colorInfoBackground,
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                '&:hover': {
                    color: palette.semantic.colorInfoForeground,
                    background: palette.semantic.colorInfoBackground
                }
            },
            '&.error': {
                color: palette.semantic.colorErrorText,
                background: palette.semantic.colorErrorBackground,
                fontWeight: apollo_core.FontFamily.FontWeightSemibold,
                '&:hover': {
                    color: palette.semantic.colorErrorText,
                    background: palette.semantic.colorErrorBackground
                }
            }
        }
    });
export { MuiChip };
