rakutentech/r10/2.1.1

NOTE: the latest version is 7.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/rakutentech/r10 exists but has no tag 2.1.1; Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 2.1.1 found (60 same-name repos checked); no cached copy. Use another version.

Details

R10.FormTypes

Types for Forms

= TextPlain
| TextEmail
| TextUsername
| TextPasswordNew
| TextPasswordCurrent
| TextMultiline
| TextWithPattern String

Possible types of Text input fields

= BinaryCheckbox
| BinarySwitch

Possible types of Binarye input fields

= MultiCombobox

Possible types of Multy input fields

= SingleRadio
| SingleCombobox
| SingleSelect

Possible types of Single input fields

= TypeText TypeText
| TypeSingle TypeSingle (List FieldOption)
| TypeMulti TypeMulti (List FieldOption)
| TypeBinary TypeBinary
type alias FieldOption =
{ value : String
, label : String
}
{ binaryCheckbox : FieldType
, binarySwitch : FieldType
, multiCombobox : List FieldOption -> FieldType
, singleCombobox : List FieldOption -> FieldType
, singleSelect : List FieldOption -> FieldType
, singleRadio : List FieldOption -> FieldType
, textEmail : FieldType
, textMultiline : FieldType
, textPasswordCurrent : FieldType
, textPasswordNew : FieldType
, textPlain : FieldType
, textUsername : FieldType
, textWithPattern : String -> FieldType
}
= NoIcon
| ClearOrCheck
| ErrorOrCheck
type alias Palette =
{ primary : Color
, primaryVariant : Color
, success : Color
, error : Color
, onSurface : Color
, onPrimary : Color
, surface : Color
, background : Color
}
type alias Palette =
    { primary : Color
    , primaryVariant : Color
    , success : Color
    , error : Color


    -- Text Colors
    --
    , onSurface : Color
    , onPrimary : Color


    -- Background Colors
    --
    , surface : Color
    , background : Color
    }

Note that these are Element.Color from elm-ui.

See https://material.io/design/color/dark-theme.html#properties for more details.

If you want to use the default palette, just pass Nothing