<commit_before>package io.youi.component

import io.youi.dom
import io.youi.component.support.FontSupport
import io.youi.component.types.Prop
import org.scalajs.dom.{Event, html}

class TextInput(element: html.Input = dom.create.input,
                password: Boolean = false) extends Component(element) with FontSupport {
  lazy val value: Prop[String] = new Prop[String](element.value, element.value_=)
  lazy val placeholder: Prop[String] = new Prop[String](element.placeholder, element.placeholder_=)
  lazy val disabled: Prop[Boolean] = new Prop[Boolean](element.disabled, element.disabled_=)
  lazy val spellCheck: Prop[Boolean] = new Prop[Boolean](element.spellcheck, element.spellcheck_=)

  if (password) element.`type` = "password"<commit_msg>Minor update to support TextInput.name for password managers<commit_after>package io.youi.component

import io.youi.dom
import io.youi.component.support.FontSupport
import io.youi.component.types.Prop
import org.scalajs.dom.{Event, html}

class TextInput(element: html.Input = dom.create.input,
                password: Boolean = false) extends Component(element) with FontSupport {
  lazy val name: Prop[String] = new Prop[String](element.name, element.name_=)
  lazy val value: Prop[String] = new Prop[String](element.value, element.value_=)
  lazy val placeholder: Prop[String] = new Prop[String](element.placeholder, element.placeholder_=)
  lazy val disabled: Prop[Boolean] = new Prop[Boolean](element.disabled, element.disabled_=)
  lazy val spellCheck: Prop[Boolean] = new Prop[Boolean](element.spellcheck, element.spellcheck_=)

  if (password) element.`type` = "password"
{'fraction_non_alphanumeric': 0.11797066014669927, 'fraction_numerical': 0.0, 'mean_word_length': 5.419607843137255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6021362', 'n_tokens_mistral': 484, 'n_tokens_neox': 492, 'n_words': 121}