import { gloss } from 'gloss'
import { HTMLProps } from 'react'

export const TableInput = gloss<HTMLProps<HTMLInputElement>>('input', {
  type: 'text',
  borderRadius: 4,
  font: 'inherit',
  fontSize: 16,
  marginRight: 5,
  padding: [0, 5],
  height: 28,
  lineHeight: 28,
  disabledStyle: {
    backgroundColor: '#ddd',
    borderColor: '#ccc',
    cursor: 'not-allowed',
  },
  conditional: {
    compact: {
      height: 17,
      lineHeight: 17,
    },
  },
}).theme(props => ({
  border: [1, props.borderColor],
}))
