2019-10-05 00:43:57 +03:00
|
|
|
module Examples.UiIcon exposing (example)
|
|
|
|
|
|
|
|
{-|
|
|
|
|
|
|
|
|
@docs example, styles
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
import Examples.IconExamples as IconExamples
|
|
|
|
import ModuleExample exposing (Category(..), ModuleExample)
|
|
|
|
import Nri.Ui.Colors.V1 as Colors
|
|
|
|
import Nri.Ui.Icon.V5 as Icon
|
|
|
|
import Nri.Ui.Svg.V1 as Svg
|
|
|
|
import Nri.Ui.UiIcon.V1 as UiIcon
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
example : ModuleExample msg
|
|
|
|
example =
|
|
|
|
{ name = "Nri.Ui.UiIcon.V1"
|
|
|
|
, category = Icons
|
|
|
|
, content =
|
2019-10-11 20:56:47 +03:00
|
|
|
[ (IconExamples.view "Interface" << List.map (Tuple.mapSecond Svg.toHtml))
|
|
|
|
[ ( "seeMore", UiIcon.seeMore )
|
|
|
|
, ( "openClose", UiIcon.openClose )
|
|
|
|
, ( "download", UiIcon.download )
|
|
|
|
, ( "sort", UiIcon.sort )
|
|
|
|
]
|
|
|
|
, (IconExamples.view "Actions" << List.map (Tuple.mapSecond Svg.toHtml))
|
2019-10-05 00:43:57 +03:00
|
|
|
[ ( "unarchive", UiIcon.unarchive )
|
2019-10-05 00:48:26 +03:00
|
|
|
, ( "share", UiIcon.share )
|
|
|
|
, ( "preview", UiIcon.preview )
|
2019-10-11 20:56:47 +03:00
|
|
|
, ( "edit", UiIcon.edit )
|
|
|
|
]
|
|
|
|
, (IconExamples.view "Class" << List.map (Tuple.mapSecond Svg.toHtml))
|
|
|
|
[ ( "class", UiIcon.class )
|
|
|
|
, ( "leaderboard", UiIcon.leaderboard )
|
2019-10-05 00:48:26 +03:00
|
|
|
, ( "performance", UiIcon.performance )
|
2019-10-05 00:43:57 +03:00
|
|
|
]
|
2019-10-11 20:56:47 +03:00
|
|
|
, (IconExamples.view "Time" << List.map (Tuple.mapSecond Svg.toHtml))
|
|
|
|
[ ( "calendar", UiIcon.calendar )
|
|
|
|
]
|
|
|
|
, (IconExamples.view "Other" << List.map (Tuple.mapSecond Svg.toHtml))
|
|
|
|
[ ( "document", UiIcon.document )
|
2019-10-05 00:59:39 +03:00
|
|
|
]
|
2019-10-05 00:43:57 +03:00
|
|
|
]
|
|
|
|
}
|