mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 23:40:04 +00:00
27 lines
492 B
JavaScript
27 lines
492 B
JavaScript
import styled from 'styled-components';
|
|
import { InputText } from '@buffetjs/core';
|
|
import { colors } from '@buffetjs/styles';
|
|
|
|
/* eslint-disable indent */
|
|
const InputUID = styled(InputText)`
|
|
width: 100%;
|
|
|
|
${({ containsEndAdornment }) =>
|
|
containsEndAdornment &&
|
|
`
|
|
> input {
|
|
padding-right: calc(40px + 1rem);
|
|
}
|
|
`}
|
|
|
|
${({ error }) =>
|
|
error &&
|
|
`
|
|
> input {
|
|
border-color: ${colors.darkOrange};
|
|
}
|
|
`}
|
|
`;
|
|
|
|
export default InputUID;
|