2020-04-01 02:00:29 +03:00
|
|
|
module Examples.Pennant exposing (example, State, Msg)
|
2019-10-25 00:29:19 +03:00
|
|
|
|
|
|
|
{-|
|
|
|
|
|
2020-04-01 02:00:29 +03:00
|
|
|
@docs example, State, Msg
|
2019-10-25 00:29:19 +03:00
|
|
|
|
|
|
|
-}
|
|
|
|
|
2020-06-19 23:41:28 +03:00
|
|
|
import AtomicDesignType exposing (AtomicDesignType(..))
|
2020-03-24 03:33:42 +03:00
|
|
|
import Category exposing (Category(..))
|
2019-10-25 00:29:19 +03:00
|
|
|
import Css exposing (..)
|
2020-03-31 23:33:05 +03:00
|
|
|
import Example exposing (Example)
|
2020-10-08 21:45:03 +03:00
|
|
|
import Examples.IconExamples as IconExamples
|
2019-10-25 00:29:19 +03:00
|
|
|
import Html.Styled as Html exposing (Html)
|
|
|
|
import Html.Styled.Attributes exposing (css)
|
2020-06-20 00:45:32 +03:00
|
|
|
import KeyboardSupport exposing (Direction(..), Key(..))
|
2019-10-25 00:29:19 +03:00
|
|
|
import Nri.Ui.Fonts.V1 as Fonts
|
2020-03-17 22:53:50 +03:00
|
|
|
import Nri.Ui.Pennant.V2 as Pennant
|
|
|
|
import Nri.Ui.Svg.V1 as Svg
|
2019-10-25 00:29:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
2020-04-01 02:00:29 +03:00
|
|
|
type alias State =
|
|
|
|
()
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
type alias Msg =
|
|
|
|
()
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
example : Example State Msg
|
2019-10-25 00:29:19 +03:00
|
|
|
example =
|
2020-09-09 21:43:10 +03:00
|
|
|
{ name = "Pennant"
|
|
|
|
, version = 2
|
2020-06-19 23:41:28 +03:00
|
|
|
, categories = [ Icons ]
|
2020-06-20 00:16:10 +03:00
|
|
|
, atomicDesignType = Atom
|
2020-06-20 00:45:32 +03:00
|
|
|
, keyboardSupport = []
|
2020-03-31 23:33:05 +03:00
|
|
|
, state = ()
|
|
|
|
, update = \_ state -> ( state, Cmd.none )
|
|
|
|
, subscriptions = \_ -> Sub.none
|
|
|
|
, view =
|
|
|
|
\_ ->
|
2020-10-08 21:45:03 +03:00
|
|
|
[ IconExamples.viewWithCustomStyles "Premium Pennants"
|
|
|
|
[ ( "premiumFlag"
|
|
|
|
, Pennant.premiumFlag
|
|
|
|
, [ Css.width (Css.px 80) ]
|
|
|
|
)
|
|
|
|
, ( "expiredPremiumFlag"
|
|
|
|
, Pennant.expiredPremiumFlag
|
|
|
|
, [ Css.width (Css.px 80) ]
|
|
|
|
)
|
|
|
|
, ( "disabledPremiumFlag"
|
|
|
|
, Pennant.disabledPremiumFlag
|
|
|
|
, [ Css.width (Css.px 80) ]
|
|
|
|
)
|
2020-03-31 23:33:05 +03:00
|
|
|
]
|
2019-10-25 00:29:19 +03:00
|
|
|
]
|
|
|
|
}
|