2020-04-01 02:00:29 +03:00
|
|
|
module Examples.UiIcon exposing (example, State, Msg)
|
2019-10-05 00:43:57 +03:00
|
|
|
|
|
|
|
{-|
|
|
|
|
|
2020-04-01 02:00:29 +03:00
|
|
|
@docs example, State, Msg
|
2019-10-05 00:43:57 +03:00
|
|
|
|
|
|
|
-}
|
|
|
|
|
2020-03-24 03:33:42 +03:00
|
|
|
import Category exposing (Category(..))
|
2020-03-31 23:33:05 +03:00
|
|
|
import Example exposing (Example)
|
2019-10-05 00:43:57 +03:00
|
|
|
import Examples.IconExamples as IconExamples
|
|
|
|
import Nri.Ui.UiIcon.V1 as UiIcon
|
|
|
|
|
|
|
|
|
2022-03-21 23:41:54 +03:00
|
|
|
{-| -}
|
|
|
|
type alias State =
|
|
|
|
IconExamples.Settings
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
type alias Msg =
|
|
|
|
IconExamples.Msg
|
|
|
|
|
|
|
|
|
2020-04-01 02:00:29 +03:00
|
|
|
{-| -}
|
|
|
|
example : Example State Msg
|
2019-10-05 00:43:57 +03:00
|
|
|
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:45:32 +03:00
|
|
|
, keyboardSupport = []
|
2022-03-21 23:41:54 +03:00
|
|
|
, 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
|
2021-11-06 01:28:51 +03:00
|
|
|
, UiIcon.archive
|
|
|
|
, UiIcon.share
|
|
|
|
, UiIcon.footsteps
|
|
|
|
, UiIcon.person
|
|
|
|
, UiIcon.calendar
|
|
|
|
, UiIcon.missingDocument
|
2021-11-05 21:48:09 +03:00
|
|
|
, UiIcon.speechBalloon
|
2021-11-06 01:28:51 +03:00
|
|
|
, UiIcon.edit
|
|
|
|
, UiIcon.arrowTop
|
2021-11-05 21:48:09 +03:00
|
|
|
, UiIcon.checkmark
|
2021-11-06 01:28:51 +03:00
|
|
|
, UiIcon.equals
|
2021-11-05 21:48:09 +03:00
|
|
|
]
|
2020-03-31 23:33:05 +03:00
|
|
|
, view =
|
2022-03-29 20:19:32 +03:00
|
|
|
\ellieLinkConfig settings ->
|
2022-03-21 23:23:58 +03:00
|
|
|
let
|
|
|
|
viewExampleSection =
|
2022-03-21 23:41:54 +03:00
|
|
|
IconExamples.view settings
|
2022-03-21 23:23:58 +03:00
|
|
|
in
|
2022-03-21 23:41:54 +03:00
|
|
|
[ 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 )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Archive & Unarchive"
|
2020-10-08 21:36:09 +03:00
|
|
|
[ ( "archive", UiIcon.archive )
|
|
|
|
, ( "unarchive", UiIcon.unarchive )
|
2020-10-08 21:46:53 +03:00
|
|
|
]
|
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 )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Actions"
|
2020-10-08 21:46:53 +03:00
|
|
|
[ ( "share", UiIcon.share )
|
2020-03-31 23:33:05 +03:00
|
|
|
, ( "preview", UiIcon.preview )
|
|
|
|
, ( "activity", UiIcon.activity )
|
|
|
|
, ( "copyToClipboard", UiIcon.copyToClipboard )
|
|
|
|
, ( "gift", UiIcon.gift )
|
2022-03-29 19:51:24 +03:00
|
|
|
, ( "openInNewTab", UiIcon.openInNewTab )
|
|
|
|
, ( "sync", UiIcon.sync )
|
2020-03-31 23:33:05 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +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
|
|
|
]
|
2022-03-21 23:23:58 +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 )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, 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 )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Time"
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "calendar", UiIcon.calendar )
|
|
|
|
, ( "clock", UiIcon.clock )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, 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
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Communication"
|
2020-06-10 23:47:39 +03:00
|
|
|
[ ( "speechBalloon", UiIcon.speechBalloon )
|
2021-11-12 21:33:34 +03:00
|
|
|
, ( "mail", UiIcon.mail )
|
2020-06-10 23:47:39 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +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 )
|
2022-01-26 00:10:41 +03:00
|
|
|
, ( "highlighter", UiIcon.highlighter )
|
2020-03-31 23:33:05 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +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 )
|
2020-06-03 20:10:05 +03:00
|
|
|
, ( "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
|
|
|
]
|
2022-03-21 23:23:58 +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 )
|
2022-04-07 20:22:26 +03:00
|
|
|
, ( "xInCircle", UiIcon.xInCircle )
|
2020-03-31 23:33:05 +03:00
|
|
|
, ( "attention", UiIcon.attention )
|
|
|
|
, ( "exclamation", UiIcon.exclamation )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Math"
|
2021-02-23 22:21:03 +03:00
|
|
|
[ ( "equals", UiIcon.equals )
|
|
|
|
, ( "plus", UiIcon.plus )
|
|
|
|
, ( "null", UiIcon.null )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, 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 )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, 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
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Lock & Key"
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "key", UiIcon.key )
|
|
|
|
, ( "lock", UiIcon.lock )
|
|
|
|
, ( "premiumLock", UiIcon.premiumLock )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Tips & Tricks"
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "hat", UiIcon.hat )
|
|
|
|
, ( "keychain", UiIcon.keychain )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Growth"
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "sprout", UiIcon.sprout )
|
|
|
|
, ( "sapling", UiIcon.sapling )
|
|
|
|
, ( "tree", UiIcon.tree )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, 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 )
|
2022-01-18 21:36:20 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Punctuation"
|
2022-01-18 21:36:20 +03:00
|
|
|
[ ( "openQuotationMark", UiIcon.openQuotationMark )
|
2021-10-12 19:00:04 +03:00
|
|
|
, ( "closeQuotationMark", UiIcon.closeQuotationMark )
|
2020-05-16 02:28:56 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Navigation"
|
2020-06-03 20:10:05 +03:00
|
|
|
[ ( "home", UiIcon.home )
|
2020-06-03 19:34:43 +03:00
|
|
|
, ( "library", UiIcon.library )
|
2021-09-29 02:26:56 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +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
|
|
|
]
|
2019-10-05 00:43:57 +03:00
|
|
|
}
|