import { Box } from '@honeycomb-finance/core'; import styled from 'styled-components'; export const InputPanel = styled.div` ${({ theme }) => theme.flexColumnNoWrap} position: relative; border-radius: 1.25rem; background-color: ${({ theme }) => theme.bg1}; z-index: 1; width: 100%; `; export const ContainerRow = styled.div<{ error: boolean }>` display: flex; justify-content: center; align-items: center; border-radius: 1.25rem; border: 1px solid ${({ error, theme }) => (error ? theme.red1 : theme.bg2)}; transition: border-color 300ms ${({ error }) => (error ? 'step-end' : 'step-start')}, color 500ms ${({ error }) => (error ? 'step-end' : 'step-start')}; background-color: ${({ theme }) => theme.bg1}; `; export const InputContainer = styled.div` flex: 1; padding: 1rem; `; export const Input = styled.input<{ error?: boolean }>` font-size: 1.25rem; outline: none; border: none; flex: 1 1 auto; width: 0; background-color: ${({ theme }) => theme.bg1}; transition: color 300ms ${({ error }) => (error ? 'step-end' : 'step-start')}; color: ${({ error, theme }) => (error ? theme.red1 : theme.primary1)}; overflow: hidden; text-overflow: ellipsis; font-weight: 500; width: 100%; ::placeholder { color: ${({ theme }) => theme.text4}; } padding: 0px; -webkit-appearance: textfield; ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-outer-spin-button, ::-webkit-inner-spin-button { -webkit-appearance: none; } ::placeholder { color: ${({ theme }) => theme.text4}; } `; export const Wrapper = styled(Box)` width: 100%; display: flex; padding: 0; align-items: center; justify-content: space-between; `;