import { styled } from '@dank-style/react'; import { View } from 'react-native'; export default styled( View, { 'borderWidth': 1, 'borderColor': '$backgroundLight300', 'borderRadius': '$sm', 'minWidth': '50%', 'maxWidth': 500, 'flexDirection': 'row', 'px': '$3', 'py': '$2', ':hover': { ':invalid': {}, 'bg': '$transparent', 'borderColor': '$primary700', }, ':invalid': { bg: 'transparent', borderWidth: '$2', borderColor: '$error600', }, ':focus': { bg: 'transparent', borderWidth: '$2', borderColor: '$primary700', }, 'variants': { size: { xl: { _input: { fontSize: '$xl', lineHeight: '$xl', }, }, lg: { _input: { fontSize: '$lg', lineHeight: '$xl', }, }, md: { _input: { fontSize: '$md', lineHeight: '$lg', }, }, sm: { _input: { fontSize: '$sm', lineHeight: '$md', }, }, }, variant: { underlined: { '_input': { outlineWidth: '0', outline: 'none', cursor: 'auto', }, 'px': '$0', 'bg': 'transparent', // 'px': '$0', 'borderWidth': 0, 'borderRadius': 0, 'borderBottomWidth': '$1', ':hover': { ':focus': { borderBottomWidth: '$2', borderColor: '$primary700', }, 'borderBottomWidth': '$1', 'borderBottomColor': '$primary700', }, ':focus': { borderWidth: 0, borderBottomWidth: '$2', borderColor: '$primary700', }, ':active': { borderWidth: 0, bg: 'transparent', borderBottomWidth: '$2', borderColor: '$primary700', }, ':invalid': { ':focus': { ':hover': { borderBottomColor: '$primary700', }, }, ':hover': { borderBottomWidth: '$2', borderBottomColor: '$error600', }, 'borderWidth': '$0', 'borderBottomWidth': '$2', }, }, outline: { 'bg': 'transparent', '_input': { outlineWidth: '0', outline: 'none', cursor: 'auto', }, ':invalid': { ':focus': { ':hover': { borderColor: '$primary700', }, }, ':hover': { borderWidth: '$2', borderColor: '$error600', }, 'borderWidth': '$2', }, }, rounded: { px: '$4', bg: 'transparent', borderRadius: 999, _input: { outlineWidth: '0', outline: 'none', cursor: 'auto', }, _dark: { ':hover': { borderColor: '$primary400', }, ':focus': { borderColor: '$primary400', }, ':focusVisible': { boxShadow: 'offset 0 0 0 2px $primary400', }, ':invalid': { borderColor: '$error400', }, }, }, }, }, '_dark': { 'borderColor': '$borderDark700', 'placeholderTextColor': '$textDark600', ':hover': { borderColor: '$primary400', }, ':focus': { borderColor: '$primary400', }, ':focusVisible': { boxShadow: 'offset 0 0 0 2px $primary400', }, ':invalid': { // ':focus': { // ':hover': { // borderColor: '$primary400', // }, // }, // ':hover': { // borderWidth: '$2', // borderColor: '$green400', // }, ':focus': {}, ':hover': { borderWidth: '$2', borderColor: '$error400', }, 'borderWidth': '$2', 'borderColor': '$error400', }, }, 'alignContent': 'center', ':disabled': { opacity: 0.4, }, 'defaultProps': { size: 'md', variant: 'outline', }, 'placeholderTextColor': '$textLight400', }, { descendantStyle: ['_input'], DEBUG: 'INPUT' } );