<commit_before><commit_msg>sortie d'un compsant style de base<commit_after>import styled, { css } from 'styled-components';
import remStringFromPX from '../../utils';

export type Size = 'medium' | 'xx-small' | 'x-small' | 'small' | 'large' | 'x-large' | 'xx-large' | 'smaller' | 'larger'

export interface StyleProps extends React.HTMLProps<HTMLInputElement> {
    color?: string;
    backgroundColor?: string;
    fontSize?: Size;
    borderColor?: string;
    isNullable?: boolean;
}

// Shared styles for Input
const inputStyles = css`
  outline: none;
  border: none;
  border-radius: 3px;
  box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
  height: 30px;
  padding: 0 10px;
  vertical-align: middle;
  line-height: 30px;
  font-size: 14px;
  font-weight: 400;
  transition: box-shadow 100ms cubic-bezier(0.4, 1, 0.75, 0.9);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  &:active {
    background-color: ${(props: StyleProps) => props.borderColor};
  }
  &:hover {

  }
  $:blur {
    
  }
`

export const TextInputComponent = styled.input`
  ${inputStyles}
  background-color: ${(props: StyleProps) => props.backgroundColor};
  color: ${(props: StyleProps) => props.color};
  font-size: ${(props: StyleProps) => props.fontSize};
`;

export const EmailInputComponent = styled.input`
  ${inputStyles}
  background-color: ${(props: StyleProps) => props.backgroundColor};
  color: ${(props: StyleProps) => props.color};
  &:active {
    background-color: ${(props: StyleProps) => props.borderColor};
  }
`;

{'fraction_non_alphanumeric': 0.16189896530736458, 'fraction_numerical': 0.04503956177723676, 'mean_word_length': 3.9221556886227544, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4481870', 'n_tokens_mistral': 651, 'n_tokens_neox': 576, 'n_words': 156}