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-03-24 03:33:42 +03:00
|
|
|
import Category exposing (Category(..))
|
2022-03-15 21:06:13 +03:00
|
|
|
import Css
|
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
|
2020-03-17 22:53:50 +03:00
|
|
|
import Nri.Ui.Pennant.V2 as Pennant
|
2019-10-25 00:29:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
2020-04-01 02:00:29 +03:00
|
|
|
type alias State =
|
2022-03-21 23:41:54 +03:00
|
|
|
IconExamples.Settings
|
2020-04-01 02:00:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
type alias Msg =
|
2022-03-21 23:41:54 +03:00
|
|
|
IconExamples.Msg
|
2020-04-01 02:00:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
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:45:32 +03:00
|
|
|
, keyboardSupport = []
|
2022-03-21 23:41:54 +03:00
|
|
|
, state = IconExamples.init
|
|
|
|
, update = IconExamples.update
|
2020-03-31 23:33:05 +03:00
|
|
|
, subscriptions = \_ -> Sub.none
|
2021-11-05 23:14:23 +03:00
|
|
|
, preview =
|
|
|
|
IconExamples.preview
|
|
|
|
[ Pennant.premiumFlag
|
|
|
|
, Pennant.expiredPremiumFlag
|
|
|
|
, Pennant.disabledPremiumFlag
|
|
|
|
]
|
2020-03-31 23:33:05 +03:00
|
|
|
, view =
|
2022-03-29 20:19:32 +03:00
|
|
|
\ellieLinkConfig settings ->
|
2022-03-21 23:41:54 +03:00
|
|
|
[ IconExamples.viewSettings settings
|
|
|
|
, IconExamples.viewWithCustomStyles settings
|
2022-03-21 23:23:58 +03:00
|
|
|
"Premium Pennants"
|
2020-10-08 21:45:03 +03:00
|
|
|
[ ( "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
|
|
|
]
|
|
|
|
}
|