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

153 lines
5.4 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 =
2020-09-09 21:43:10 +03:00
{ name = "UiIcon"
, version = 1
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 "Archive & Unarchive"
2020-10-08 21:36:09 +03:00
[ ( "archive", UiIcon.archive )
, ( "unarchive", UiIcon.unarchive )
]
, IconExamples.view "Actions"
[ ( "share", UiIcon.share )
2020-03-31 23:33:05 +03:00
, ( "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 )
2020-09-29 01:18:26 +03:00
, ( "couple", UiIcon.couple )
2020-03-31 23:33:05 +03:00
, ( "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 )
2021-02-23 22:13:53 +03:00
, ( "openBooks", UiIcon.openBooks )
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 )
2020-12-10 23:45:42 +03:00
, ( "starFilled", UiIcon.starFilled )
2020-03-31 23:33:05 +03:00
, ( "starOutline", UiIcon.starOutline )
]
2020-12-15 02:31:04 +03:00
, IconExamples.view "Badges & Levels"
[ ( "badge", UiIcon.badge )
]
2020-03-31 23:33:05 +03:00
, IconExamples.view "Math"
[ ( "equals", UiIcon.equals )
, ( "plus", UiIcon.plus )
2021-02-23 22:20:26 +03:00
, ( "null", UiIcon.null )
2020-03-31 23:33:05 +03:00
]
, IconExamples.view "Lock & Key"
[ ( "key", UiIcon.key )
, ( "lock", UiIcon.lock )
, ( "premiumLock", UiIcon.premiumLock )
]
, 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
]
}