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

196 lines
7.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
-}
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
{-| -}
type alias State =
IconExamples.Settings
{-| -}
type alias Msg =
IconExamples.Msg
2020-04-01 02:00:29 +03:00
{-| -}
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
, keyboardSupport = []
, state = IconExamples.init
, update = IconExamples.update
2020-03-31 23:33:05 +03:00
, subscriptions = \_ -> Sub.none
2021-11-05 21:48:09 +03:00
, preview =
IconExamples.preview
[ UiIcon.seeMore
, UiIcon.archive
, UiIcon.share
, UiIcon.footsteps
, UiIcon.person
, UiIcon.calendar
, UiIcon.missingDocument
2021-11-05 21:48:09 +03:00
, UiIcon.speechBalloon
, UiIcon.edit
, UiIcon.arrowTop
2021-11-05 21:48:09 +03:00
, UiIcon.checkmark
, UiIcon.equals
2021-11-05 21:48:09 +03:00
]
2020-03-31 23:33:05 +03:00
, view =
\ellieLinkConfig settings ->
let
viewExampleSection =
IconExamples.view settings
in
[ IconExamples.viewSettings settings
2022-03-21 23:32:55 +03:00
, viewExampleSection "Interface"
2020-03-31 23:33:05 +03:00
[ ( "seeMore", UiIcon.seeMore )
, ( "openClose", UiIcon.openClose )
, ( "download", UiIcon.download )
, ( "sort", UiIcon.sort )
, ( "gear", UiIcon.gear )
]
, viewExampleSection "Archive & Unarchive"
2020-10-08 21:36:09 +03:00
[ ( "archive", UiIcon.archive )
, ( "unarchive", UiIcon.unarchive )
]
2022-04-20 23:55:07 +03:00
, viewExampleSection "Media in Circles"
2022-01-26 20:37:08 +03:00
[ ( "playInCircle", UiIcon.playInCircle )
, ( "pauseInCircle", UiIcon.pauseInCircle )
, ( "stopInCircle", UiIcon.stopInCircle )
2022-04-20 23:55:07 +03:00
]
, viewExampleSection "Media"
[ ( "play", UiIcon.play )
2022-01-26 20:37:08 +03:00
, ( "skip", UiIcon.skip )
]
, viewExampleSection "Actions"
[ ( "share", UiIcon.share )
2020-03-31 23:33:05 +03:00
, ( "preview", UiIcon.preview )
, ( "activity", UiIcon.activity )
, ( "copyToClipboard", UiIcon.copyToClipboard )
, ( "gift", UiIcon.gift )
, ( "openInNewTab", UiIcon.openInNewTab )
, ( "sync", UiIcon.sync )
2020-03-31 23:33:05 +03:00
]
, viewExampleSection "Guidance"
2020-03-31 23:33:05 +03:00
[ ( "footsteps", UiIcon.footsteps )
, ( "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
]
, viewExampleSection "Science & Measurement"
2022-01-26 00:24:03 +03:00
[ ( "compass", UiIcon.compass )
, ( "speedometer", UiIcon.speedometer )
, ( "performance", UiIcon.performance )
, ( "microscope", UiIcon.microscope )
, ( "scale", UiIcon.scale )
]
, viewExampleSection "Humans & Class"
2020-03-31 23:33:05 +03:00
[ ( "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 )
]
, viewExampleSection "Time"
2020-03-31 23:33:05 +03:00
[ ( "calendar", UiIcon.calendar )
, ( "clock", UiIcon.clock )
]
, viewExampleSection "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
]
, viewExampleSection "Communication"
2020-06-10 23:47:39 +03:00
[ ( "speechBalloon", UiIcon.speechBalloon )
, ( "mail", UiIcon.mail )
2020-06-10 23:47:39 +03:00
]
, viewExampleSection "Writing Utensils"
2020-06-10 23:47:39 +03:00
[ ( "edit", UiIcon.edit )
2020-03-31 23:33:05 +03:00
, ( "pen", UiIcon.pen )
, ( "highlighter", UiIcon.highlighter )
2020-03-31 23:33:05 +03:00
]
, viewExampleSection "Arrows"
2020-03-31 23:33:05 +03:00
[ ( "arrowTop", UiIcon.arrowTop )
, ( "arrowRight", UiIcon.arrowRight )
, ( "arrowDown", UiIcon.arrowDown )
, ( "arrowLeft", UiIcon.arrowLeft )
, ( "arrowPointingRight", UiIcon.arrowPointingRight )
, ( "arrowPointingRightThick", UiIcon.arrowPointingRightThick )
2022-03-30 23:37:36 +03:00
, ( "sortArrow", UiIcon.sortArrow )
, ( "sortArrowDown", UiIcon.sortArrowDown )
2020-03-31 23:33:05 +03:00
]
, viewExampleSection "Sticky things"
2020-03-31 23:33:05 +03:00
[ ( "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 )
, ( "xInCircle", UiIcon.xInCircle )
2020-03-31 23:33:05 +03:00
, ( "attention", UiIcon.attention )
, ( "exclamation", UiIcon.exclamation )
]
, viewExampleSection "Math"
2021-02-23 22:21:03 +03:00
[ ( "equals", UiIcon.equals )
, ( "plus", UiIcon.plus )
, ( "null", UiIcon.null )
]
, viewExampleSection "Notifs"
2020-03-31 23:33:05 +03:00
[ ( "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 )
]
, viewExampleSection "Badges & Celebration"
2020-12-15 02:31:04 +03:00
[ ( "badge", UiIcon.badge )
2022-01-26 00:24:03 +03:00
, ( "tada", UiIcon.tada )
2020-12-15 02:31:04 +03:00
]
, viewExampleSection "Lock & Key"
2020-03-31 23:33:05 +03:00
[ ( "key", UiIcon.key )
, ( "lock", UiIcon.lock )
, ( "premiumLock", UiIcon.premiumLock )
]
, viewExampleSection "Tips & Tricks"
2020-03-31 23:33:05 +03:00
[ ( "hat", UiIcon.hat )
, ( "keychain", UiIcon.keychain )
]
, viewExampleSection "Growth"
2020-03-31 23:33:05 +03:00
[ ( "sprout", UiIcon.sprout )
, ( "sapling", UiIcon.sapling )
, ( "tree", UiIcon.tree )
]
, viewExampleSection "Rich Text Formatting"
2020-05-16 02:28:56 +03:00
[ ( "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 )
]
, viewExampleSection "Punctuation"
[ ( "openQuotationMark", UiIcon.openQuotationMark )
, ( "closeQuotationMark", UiIcon.closeQuotationMark )
2020-05-16 02:28:56 +03:00
]
, viewExampleSection "Navigation"
[ ( "home", UiIcon.home )
2020-06-03 19:34:43 +03:00
, ( "library", UiIcon.library )
2021-09-29 02:26:56 +03:00
]
, viewExampleSection "Search"
2021-09-29 02:26:56 +03:00
[ ( "search", UiIcon.search )
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
]
}