betagouv/elm-dsfr/2.0.0

NOTE: the latest version is 5.2.0

Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/betagouv/elm-dsfr.

What we checked: Rebuilt with git archive from commit c5fa2ca801b8 of https://github.com/betagouv/elm-dsfr (zip prefix betagouv-elm-dsfr-c5fa2ca/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 ea4bb71554869e10568bb080bc836dc59bc26727.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/betagouv/elm-dsfr/zipball/2.0.0/

BetaGouv.DSFR.Checkbox

Case à cocher

{ value : data
, checked : Maybe Bool
, valueAsString : data -> String
, id : String
, label : String
, onChecked : data -> Bool -> msg
}
-> CheckboxConfig msg data

Crée une checkbox

Checkbox.single
    { value = "value"
    , checked = Just True
    , valueAsString = identity
    , id = "id"
    , label = "label"
    , onChecked = ToggleSelection
    }
    |> Checkbox.viewSingle
viewSingle : CheckboxConfig msg data -> Html msg

Affiche une checkbox

Configuration

singleWithDisabled : Bool -> CheckboxConfig msg data -> CheckboxConfig msg data
singleWithError : Maybe String -> CheckboxConfig msg data -> CheckboxConfig msg data
singleWithHint : Maybe String -> CheckboxConfig msg data -> CheckboxConfig msg data
singleWithSuccess : Maybe String -> CheckboxConfig msg data -> CheckboxConfig msg data

Groupe

Création

{ id : String
, label : Html msg
, onChecked : data -> Bool -> msg
, values : List data
, checked : List data
, valueAsString : data -> String
, toId : data -> String
, toLabel : data -> String
}
-> GroupConfig msg data

Crée un groupe de case à cocher

Checkbox.group
    { id = "id"
    , label = text "label"
    , onChecked = Action
    , values = values
    , checked = checkedValues
    , valueAsString = identity
    , toId = identity
    , toLabel = identity
    }
    |> Checkbox.inline
    |> Checkbox.viewGroup
viewGroup : GroupConfig msg data -> Html msg

Affiche le groupe

Orientation

inline : GroupConfig msg data -> GroupConfig msg data
stacked : GroupConfig msg data -> GroupConfig msg data

Configuration

groupWithDisabled : Bool -> GroupConfig msg data -> GroupConfig msg data
groupWithError : Maybe String -> GroupConfig msg data -> GroupConfig msg data
List (Attribute Never)
-> GroupConfig msg data
-> GroupConfig msg data
groupWithHint : Maybe String -> GroupConfig msg data -> GroupConfig msg data
groupWithSuccess : Maybe String -> GroupConfig msg data -> GroupConfig msg data
groupWithToDisabled : (data -> Bool) -> GroupConfig msg data -> GroupConfig msg data
(data -> Maybe String)
-> GroupConfig msg data
-> GroupConfig msg data
(data -> Maybe String)
-> GroupConfig msg data
-> GroupConfig msg data
(data -> Maybe String)
-> GroupConfig msg data
-> GroupConfig msg data