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

135 lines
4.6 KiB
Elm
Raw Normal View History

2020-04-01 02:00:29 +03:00
module Examples.UiIcon exposing (example, State, Msg)
{-|
2020-04-01 02:00:29 +03:00
@docs example, State, Msg
-}
import Category exposing (Category(..))
2020-03-31 23:33:05 +03:00
import Example exposing (Example)
import Examples.IconExamples as IconExamples
import Nri.Ui.UiIcon.V1 as UiIcon
{-| -}
2020-04-01 02:00:29 +03:00
type alias State =
()
{-| -}
type alias Msg =
()
{-| -}
example : Example State Msg
example =
{ name = "Nri.Ui.UiIcon.V1"
2020-03-31 23:33:05 +03:00
, categories = List.singleton Icons
, state = ()
, update = \_ state -> ( state, Cmd.none )
, subscriptions = \_ -> Sub.none
, view =
\_ ->
[ IconExamples.view "Interface"
[ ( "seeMore", UiIcon.seeMore )
, ( "openClose", UiIcon.openClose )
, ( "download", UiIcon.download )
, ( "sort", UiIcon.sort )
, ( "gear", UiIcon.gear )
, ( "sortArrow", UiIcon.sortArrow )
]
, IconExamples.view "Actions"
[ ( "unarchive", UiIcon.unarchive )
, ( "share", UiIcon.share )
, ( "preview", UiIcon.preview )
, ( "activity", UiIcon.activity )
, ( "skip", UiIcon.skip )
, ( "copyToClipboard", UiIcon.copyToClipboard )
, ( "gift", UiIcon.gift )
]
, IconExamples.view "Guidance"
[ ( "footsteps", UiIcon.footsteps )
, ( "compass", UiIcon.compass )
, ( "speedometer", UiIcon.speedometer )
, ( "bulb", UiIcon.bulb )
, ( "help", UiIcon.help )
]
, IconExamples.view "Humans & Class"
[ ( "person", UiIcon.person )
, ( "class", UiIcon.class )
, ( "leaderboard", UiIcon.leaderboard )
, ( "performance", UiIcon.performance )
]
, IconExamples.view "Time"
[ ( "calendar", UiIcon.calendar )
, ( "clock", UiIcon.clock )
]
2020-06-10 23:47:39 +03:00
, IconExamples.view "Texts"
2020-03-31 23:33:05 +03:00
[ ( "document", UiIcon.document )
, ( "newspaper", UiIcon.newspaper )
2020-06-10 23:47:39 +03:00
]
, IconExamples.view "Communication"
[ ( "speechBalloon", UiIcon.speechBalloon )
]
, IconExamples.view "Writing Utensils"
[ ( "edit", UiIcon.edit )
2020-03-31 23:33:05 +03:00
, ( "pen", UiIcon.pen )
]
, IconExamples.view "Arrows"
[ ( "arrowTop", UiIcon.arrowTop )
, ( "arrowRight", UiIcon.arrowRight )
, ( "arrowDown", UiIcon.arrowDown )
, ( "arrowLeft", UiIcon.arrowLeft )
, ( "arrowPointingRight", UiIcon.arrowPointingRight )
, ( "arrowPointingRightThick", UiIcon.arrowPointingRightThick )
2020-03-31 23:33:05 +03:00
]
, IconExamples.view "Sticky things"
[ ( "checkmark", UiIcon.checkmark )
2020-04-28 22:33:09 +03:00
, ( "checkmarkInCircle", UiIcon.checkmarkInCircle )
2020-03-31 23:33:05 +03:00
, ( "x", UiIcon.x )
, ( "attention", UiIcon.attention )
, ( "exclamation", UiIcon.exclamation )
]
, IconExamples.view "Notifs"
[ ( "flag", UiIcon.flag )
, ( "star", UiIcon.star )
, ( "starOutline", UiIcon.starOutline )
]
, IconExamples.view "Math"
[ ( "equals", UiIcon.equals )
, ( "plus", UiIcon.plus )
]
, IconExamples.view "Lock & Key"
[ ( "key", UiIcon.key )
, ( "lock", UiIcon.lock )
, ( "premiumLock", UiIcon.premiumLock )
]
, IconExamples.view "Badges & Levels"
[ ( "badge", UiIcon.badge )
]
, IconExamples.view "Tips & Tricks"
[ ( "hat", UiIcon.hat )
, ( "keychain", UiIcon.keychain )
]
, IconExamples.view "Growth"
[ ( "sprout", UiIcon.sprout )
, ( "sapling", UiIcon.sapling )
, ( "tree", UiIcon.tree )
]
2020-05-16 02:28:56 +03:00
, IconExamples.view "Rich Text Formatting"
[ ( "bold", UiIcon.bold )
, ( "italic", UiIcon.italic )
, ( "underline", UiIcon.underline )
, ( "list", UiIcon.list )
, ( "undo", UiIcon.undo )
2020-06-10 22:41:26 +03:00
, ( "redo", UiIcon.redo )
2020-05-16 02:28:56 +03:00
]
2020-06-03 19:34:43 +03:00
, IconExamples.view "Navigation"
[ ( "home", UiIcon.home )
2020-06-03 19:34:43 +03:00
, ( "library", UiIcon.library )
]
2019-10-11 20:56:47 +03:00
]
}