11import styled , { css } from "styled-components"
22import { Icon } from "@/components/icon"
33import Flex from "@/components/templates/flex"
4- import { TextSmall , TextMicro } from "@/components/typography"
4+ import { TextSmall } from "@/components/typography"
55import { getColor , getValidatedControlColor } from "@/theme/utils"
66
77const disabledCursorSupport = css `
@@ -22,19 +22,19 @@ export const Input = styled(Flex).attrs(props => ({
2222 _focus : {
2323 border : props . error ? "errorText" : "inputBorderFocus" ,
2424 } ,
25- padding : props . size === "tiny" ? [ 0.5 , 1 ] : props . size === "small" ? [ 1 , 2 ] : [ 2 , 3 ] ,
26- height : props . size === "tiny" ? 6 : props . size === "small" ? 7 : 9 ,
25+ padding : [ 0.5 , 1 ] ,
26+ height : 6 ,
2727 ...props ,
2828} ) ) `
29- font-size: ${ ( { size } ) => ( size === "tiny" ? "11px" : size === "small" ? " 12px" : "14px" ) } ;
29+ font-size: 12px;
3030 color: ${ ( { disabled, hasValue } ) =>
3131 hasValue ? getColor ( "text" ) : disabled ? getColor ( "placeholder" ) : getColor ( "textLite" ) } ;
3232 ${ ( { hasIconLeft } ) => hasIconLeft && "padding-left: 24px;" }
3333 ${ ( { hasIconRight, hasIndicator } ) =>
3434 ( hasIconRight || hasIndicator ) && `padding-right: ${ hasIconRight && hasIndicator ? 48 : 24 } px;` }
3535
3636 &::placeholder {
37- font-size: ${ ( { size } ) => ( size === "tiny" ? "11px" : size === "small" ? " 12px" : "14px" ) } ;
37+ font-size: 12px;
3838 color: ${ getColor ( "placeholder" ) } ;
3939 opacity: ${ ( { disabled } ) => ( disabled ? 0.4 : 1 ) } ;
4040 font-weight: normal;
@@ -49,7 +49,7 @@ export const StyledLabel = styled.label`
4949 ${ disabledCursorSupport } ;
5050`
5151export const LabelText = styled ( Flex ) . attrs ( props => ( {
52- as : props . size === "tiny" ? TextMicro : TextSmall ,
52+ as : TextSmall ,
5353 strong : true ,
5454 alignItems : "center" ,
5555 flex : false ,
0 commit comments