<commit_before>module Material.Textfield exposing
    ( box
    , cols
    , dense
    , disabled
    , email
    , fullwidth
    , iconUnclickable
    , invalid
    , label
    , leadingIcon
    , nativeControl
    , outlined
    , password
    , pattern
    , placeholder
    , Property
    , required
    , rows
    , textarea
    , trailingIcon
    , type_
    , value
    , view
    )
{-|
Text fields allow users to input, edit, and select text.


# Resources

- [Material Design guidelines: Text Fields](https://material.io/guidelines/components/text-fields.html)
- [Demo](https://aforemny.github.io/elm-mdc/#text-field)


# Example

```elm
import Material.Textfield as Textfield

Textfield.view Mdc [0] model.mdc
    [ Textfield.label "Text field"
    ]
    []
```


# Usage

@docs Property
@docs view
@docs label
@docs value
@docs placeholder
@docs box
@docs outlined
@docs fullwidth
@docs disabled
@docs dense
@docs email
@docs password
@docs type_
@docs textarea
@docs rows
@docs cols
@docs leadingIcon
@docs trailingIcon
@docs iconUnclickable
@docs required
@docs invalid
@docs pattern
@docs nativeControl
-}

import Html exposing (Html)
import Material
import Material.Component exposing (Index)
import Material.Internal.Textfield.Implementation as Textfield
import Material.Options as Options


{-| Textfield property.
-}
type alias Property m =
    Textfield.Property m


{-| Textfield view.
-}
view
    : (Material.Msg m -> m)
    -> Index
    -> Material.Model m
    -> List (Property m)
    -> List (Html m)
    -> Html m       
view =
    Textfield.view


{-| Make textfield icons unclickable.
-}
iconUnclickable : Property m
iconUnclickable =
    Textfield.iconUnclickable


{-| Add a leading icon to the textfield.
-}
leadingIcon : String -> Property m
leadingIcon =
    Textfield.leadingIcon<commit_msg>Update TextField example<commit_after>module Material.Textfield exposing
    ( box
    , cols
    , dense
    , disabled
    , email
    , fullwidth
    , iconUnclickable
    , invalid
    , label
    , leadingIcon
    , nativeControl
    , outlined
    , password
    , pattern
    , placeholder
    , Property
    , required
    , rows
    , textarea
    , trailingIcon
    , type_
    , value
    , view
    )
{-|
Text fields allow users to input, edit, and select text.


# Resources

- [Material Design guidelines: Text Fields](https://material.io/guidelines/components/text-fields.html)
- [Demo](https://aforemny.github.io/elm-mdc/#text-field)


# Example

```elm
import Material.Options as Options
import Material.Textfield as Textfield

Textfield.view Mdc [0] model.mdc
    [ Textfield.label "Text field"
    , Options.onChange UpdateTextField
    ]
    []
```


# Usage

@docs Property
@docs view
@docs label
@docs value
@docs placeholder
@docs box
@docs outlined
@docs fullwidth
@docs disabled
@docs dense
@docs email
@docs password
@docs type_
@docs textarea
@docs rows
@docs cols
@docs leadingIcon
@docs trailingIcon
@docs iconUnclickable
@docs required
@docs invalid
@docs pattern
@docs nativeControl
-}

import Html exposing (Html)
import Material
import Material.Component exposing (Index)
import Material.Internal.Textfield.Implementation as Textfield
import Material.Options as Options


{-| Textfield property.
-}
type alias Property m =
    Textfield.Property m


{-| Textfield view.
-}
view
    : (Material.Msg m -> m)
    -> Index
    -> Material.Model m
    -> List (Property m)
    -> List (Html m)
    -> Html m
view =
    Textfield.view


{-| Make textfield icons unclickable.
-}
iconUnclickable : Property m
iconUnclickable =
    Textfield.iconUnclickable


{-| Add a leading icon to the textfield.
-}
leadingIcon : String -> Property m
leadingIcon =
    Textfield.leadingIcon
{'fraction_non_alphanumeric': 0.09527643585614601, 'fraction_numerical': 0.0005367686527106817, 'mean_word_length': 3.046688382193268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '4091146', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1138, 'n_words': 347}