|
@@ -24,11 +24,14 @@ export let makeStyles = ({
|
|
isActive ? colors.gray[200] : colors.gray[400]
|
|
isActive ? colors.gray[200] : colors.gray[400]
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
+ wrapper: css`
|
|
|
|
+ display: block;
|
|
|
|
+ font-family: ${typography.fonts.base};
|
|
|
|
+ `,
|
|
container: css`
|
|
container: css`
|
|
position: relative;
|
|
position: relative;
|
|
min-width: 250px;
|
|
min-width: 250px;
|
|
height: 50px;
|
|
height: 50px;
|
|
- font-family: ${typography.fonts.base};
|
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
cursor: ${disabled ? "not-allowed" : "default"};
|
|
cursor: ${disabled ? "not-allowed" : "default"};
|
|
`,
|
|
`,
|
|
@@ -46,7 +49,7 @@ export let makeStyles = ({
|
|
label: css`
|
|
label: css`
|
|
color: ${error ? colors.error : colors.gray[400]};
|
|
color: ${error ? colors.error : colors.gray[400]};
|
|
padding: 0 ${spacing.s};
|
|
padding: 0 ${spacing.s};
|
|
- ${icon ? `padding-${iconPosition}: ${spacing["4l"]};` : ""}
|
|
|
|
|
|
+ ${icon ? `padding-${iconPosition}: ${spacing.xxxxl};` : ""}
|
|
background-color: ${colors.black};
|
|
background-color: ${colors.black};
|
|
transition: all 0.1s linear;
|
|
transition: all 0.1s linear;
|
|
`,
|
|
`,
|
|
@@ -54,7 +57,7 @@ export let makeStyles = ({
|
|
display: none;
|
|
display: none;
|
|
width: 100%;
|
|
width: 100%;
|
|
margin: 0 ${spacing.s};
|
|
margin: 0 ${spacing.s};
|
|
- ${icon ? `margin-${iconPosition}: ${spacing["4l"]};` : ""}
|
|
|
|
|
|
+ ${icon ? `margin-${iconPosition}: ${spacing.xxxxl};` : ""}
|
|
background: none;
|
|
background: none;
|
|
border: none;
|
|
border: none;
|
|
color: ${colors.white};
|
|
color: ${colors.white};
|
|
@@ -66,6 +69,11 @@ export let makeStyles = ({
|
|
position: absolute;
|
|
position: absolute;
|
|
top: ${spacing.s};
|
|
top: ${spacing.s};
|
|
${iconPosition}: ${spacing.s};
|
|
${iconPosition}: ${spacing.s};
|
|
|
|
+ `,
|
|
|
|
+ helper: css`
|
|
|
|
+ color: ${error ? colors.error : colors.gray[400]};
|
|
|
|
+ font-size: ${typography.sizes.caption};
|
|
|
|
+ margin: ${spacing.xxs} ${spacing.xs};
|
|
`
|
|
`
|
|
}
|
|
}
|
|
}
|
|
}
|