import apollo_core from "@uipath/apollo-core";
const MuiFormControl = (palette)=>{
    const placeholderOverride = {
        fontSize: apollo_core.FontFamily.FontMSize,
        lineHeight: apollo_core.FontFamily.FontMLineHeight,
        color: palette.semantic.colorForegroundLight
    };
    return {
        root: {
            '& .MuiInputLabel-formControl': {
                position: 'unset',
                transform: 'none'
            },
            '& textarea': {
                borderColor: palette.semantic.colorForegroundDeEmp,
                borderRadius: '3px',
                padding: `${apollo_core.Padding.PadM} ${apollo_core.Padding.PadL}`,
                fontSize: apollo_core.FontFamily.FontMSize,
                fontFamily: apollo_core.FontFamily.FontNormal,
                lineHeight: apollo_core.FontFamily.FontMLineHeight,
                color: palette.semantic.colorForeground,
                backgroundColor: palette.semantic.colorBackground
            },
            '& textarea:hover': {
                borderColor: palette.semantic.colorForeground
            },
            '& textarea:focus': {
                outline: 'none'
            },
            '& textarea:placeholder': placeholderOverride,
            '& textarea::-webkit-input-placeholder': placeholderOverride,
            '& textarea:-moz-placeholder': placeholderOverride,
            '& textarea::-moz-placeholder': placeholderOverride,
            '& textarea:-ms-input-placeholder': placeholderOverride
        }
    };
};
export { MuiFormControl };
