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

145 lines
5.1 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
-}
2020-06-19 23:41:28 +03:00
import AtomicDesignType exposing (AtomicDesignType(..))
import Category exposing (Category(..))
2020-03-31 23:33:05 +03:00
import Example exposing (Example)
import Examples.IconExamples as IconExamples
import KeyboardSupport exposing (Direction(..), Key(..))
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
2020-06-20 00:16:10 +03:00
, atomicDesignType = Atom
, keyboardSupport = []
2020-03-31 23:33:05 +03:00
, 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 )
2020-06-10 23:57:07 +03:00
, ( "checklist", UiIcon.checklist )
2020-03-31 23:33:05 +03:00
]
, 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-07-29 02:46:01 +03:00
[ ( "missingDocument", UiIcon.missingDocument )
, ( "document", UiIcon.document )
2020-07-17 02:30:24 +03:00
, ( "documents", UiIcon.documents )
2020-03-31 23:33:05 +03:00
, ( "newspaper", UiIcon.newspaper )
2020-06-11 01:10:16 +03:00
, ( "openBook", UiIcon.openBook )
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 )
2020-06-12 03:22:04 +03:00
, ( "link", UiIcon.link )
2020-05-16 02:28:56 +03:00
, ( "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 )
2020-06-30 03:23:45 +03:00
, ( "searchInCircle", UiIcon.searchInCicle )
2020-06-03 19:34:43 +03:00
]
2019-10-11 20:56:47 +03:00
]
}