import { styled } from 'goober' import { forwardRef } from 'react' export const Wrapper = styled('div')` margin: 30px 0; ${props => props.$inline && ` margin: 0; `} ${props => props.$small && ` margin: 10px 0; `} ` export const StyledLabel = styled('label')` display: block; padding-bottom: 4px; font-size: 18px; ${props => props.$inline && ` font-size: 16px; `} ${props => props.$small && ` font-size: .9rem; `} ` export const StyledSubLabel = styled('label')` display: block; padding-bottom: 6px; font-size: 13px; opacity: .6; ` export const StyledSelect = styled('select', forwardRef)` width: 100%; box-sizing: border-box; font: inherit; background: var(--surface); color: inherit; padding: 10px 14px; border: 1px solid var(--primary); box-shadow: inset 0 0 0 0 var(--primary); border-radius: 3px; outline: none; transition: border-color .15s, box-shadow .15s; appearance: none; background-image: url('data:image/svg+xml,${encodeURIComponent('
')}'); background-repeat: no-repeat; background-position: right 10px center; background-size: 1em; &:focus { border: 1px solid var(--secondary); box-shadow: inset 0 -3px 0 0 var(--secondary); } ${props => props.$small && ` padding: 6px 8px; `} `