2020-02-26 14:53:32 +01:00
|
|
|
import styled from 'styled-components';
|
2020-02-21 11:03:39 +01:00
|
|
|
import { InputText } from '@buffetjs/core';
|
2020-02-26 14:53:32 +01:00
|
|
|
import { colors } from '@buffetjs/styles';
|
2020-02-21 11:03:39 +01:00
|
|
|
|
2020-05-28 18:58:38 +02:00
|
|
|
/* eslint-disable indent */
|
2020-02-21 11:03:39 +01:00
|
|
|
const InputUID = styled(InputText)`
|
|
|
|
width: 100%;
|
2020-10-04 12:32:17 +05:30
|
|
|
|
|
|
|
${({ containsEndAdornment }) =>
|
|
|
|
containsEndAdornment &&
|
|
|
|
`
|
|
|
|
> input {
|
|
|
|
padding-right: calc(40px + 1rem);
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
|
2020-02-21 11:03:39 +01:00
|
|
|
${({ error }) =>
|
|
|
|
error &&
|
2020-02-26 14:53:32 +01:00
|
|
|
`
|
2020-02-21 11:03:39 +01:00
|
|
|
> input {
|
2020-02-26 14:53:32 +01:00
|
|
|
border-color: ${colors.darkOrange};
|
2020-02-21 11:03:39 +01:00
|
|
|
}
|
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default InputUID;
|