mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-19 03:31:32 +03:00
49 lines
1.1 KiB
Elm
49 lines
1.1 KiB
Elm
module Examples.MasteryIcon exposing (example, State, Msg)
|
|
|
|
{-|
|
|
|
|
@docs example, State, Msg
|
|
|
|
-}
|
|
|
|
import AtomicDesignType exposing (AtomicDesignType(..))
|
|
import Category exposing (Category(..))
|
|
import Example exposing (Example)
|
|
import Examples.IconExamples as IconExamples
|
|
import KeyboardSupport exposing (Direction(..), Key(..))
|
|
import Nri.Ui.Colors.V1 as Colors
|
|
import Nri.Ui.MasteryIcon.V1 as MasteryIcon
|
|
|
|
|
|
{-| -}
|
|
type alias State =
|
|
()
|
|
|
|
|
|
{-| -}
|
|
type alias Msg =
|
|
()
|
|
|
|
|
|
{-| -}
|
|
example : Example State Msg
|
|
example =
|
|
{ name = "MasteryIcon"
|
|
, version = 1
|
|
, categories = [ Icons ]
|
|
, atomicDesignType = Atom
|
|
, keyboardSupport = []
|
|
, state = ()
|
|
, update = \_ state -> ( state, Cmd.none )
|
|
, subscriptions = \_ -> Sub.none
|
|
, view =
|
|
\_ ->
|
|
[ IconExamples.view "Levels"
|
|
[ ( "levelZero", MasteryIcon.levelZero )
|
|
, ( "levelOne", MasteryIcon.levelOne )
|
|
, ( "levelTwo", MasteryIcon.levelTwo )
|
|
, ( "levelThree", MasteryIcon.levelThree )
|
|
]
|
|
]
|
|
}
|