noredink-ui/styleguide-app/Examples/MasteryIcon.elm

50 lines
1.1 KiB
Elm
Raw Normal View History

2020-04-01 02:00:29 +03:00
module Examples.MasteryIcon exposing (example, State, Msg)
{-|
2020-04-01 02:00:29 +03:00
@docs example, State, Msg
-}
2020-06-19 23:41:28 +03:00
import AtomicDesignType exposing (AtomicDesignType(..))
import Category exposing (Category(..))
2020-03-31 23:33:05 +03:00
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
{-| -}
2020-04-01 02:00:29 +03:00
type alias State =
()
{-| -}
type alias Msg =
()
{-| -}
example : Example State Msg
example =
2020-09-09 21:43:10 +03:00
{ name = "MasteryIcon"
, version = 1
2020-06-19 23:41:28 +03:00
, categories = [ Icons ]
2020-06-20 00:16:10 +03:00
, atomicDesignType = Atom
, keyboardSupport = []
2020-03-31 23:33:05 +03:00
, 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 )
2020-12-15 02:41:24 +03:00
, ( "levelFour", MasteryIcon.levelFour )
2020-03-31 23:33:05 +03:00
]
]
}