mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 06:02:36 +03:00
62 lines
1.4 KiB
Elm
62 lines
1.4 KiB
Elm
module Examples.Pennant exposing (example, State, Msg)
|
|
|
|
{-|
|
|
|
|
@docs example, State, Msg
|
|
|
|
-}
|
|
|
|
import Category exposing (Category(..))
|
|
import Css
|
|
import Example exposing (Example)
|
|
import Examples.IconExamples as IconExamples
|
|
import Nri.Ui.Pennant.V2 as Pennant
|
|
|
|
|
|
{-| -}
|
|
type alias State =
|
|
IconExamples.Settings
|
|
|
|
|
|
{-| -}
|
|
type alias Msg =
|
|
IconExamples.Msg
|
|
|
|
|
|
{-| -}
|
|
example : Example State Msg
|
|
example =
|
|
{ name = "Pennant"
|
|
, version = 2
|
|
, categories = [ Icons ]
|
|
, keyboardSupport = []
|
|
, state = IconExamples.init
|
|
, update = IconExamples.update
|
|
, subscriptions = \_ -> Sub.none
|
|
, preview =
|
|
IconExamples.preview
|
|
[ Pennant.premiumFlag
|
|
, Pennant.expiredPremiumFlag
|
|
, Pennant.disabledPremiumFlag
|
|
]
|
|
, view =
|
|
\settings ->
|
|
[ IconExamples.viewSettings settings
|
|
, IconExamples.viewWithCustomStyles settings
|
|
"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) ]
|
|
)
|
|
]
|
|
]
|
|
}
|