mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-03 03:46:37 +03:00
Merge pull request #32 from NoRedInk/butteroala__add-icons
Butteroala add icons
This commit is contained in:
commit
1d1085ce68
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "4.4.0",
|
||||
"version": "4.5.0",
|
||||
"summary": "UI Widgets we use at NRI",
|
||||
"repository": "https://github.com/NoRedInk/noredink-ui.git",
|
||||
"license": "BSD3",
|
||||
|
@ -64,6 +64,8 @@ module Nri.Ui.Icon.V2
|
||||
, personBlue
|
||||
, preview
|
||||
, quickWrite
|
||||
, rating
|
||||
, revising
|
||||
, seeMore
|
||||
, share
|
||||
, sort
|
||||
@ -71,6 +73,7 @@ module Nri.Ui.Icon.V2
|
||||
, speedometer
|
||||
, starred
|
||||
, styles
|
||||
, submitting
|
||||
, thumbsUp
|
||||
, twitter
|
||||
, unarchive
|
||||
@ -153,6 +156,7 @@ module Nri.Ui.Icon.V2
|
||||
@docs writingAssignment
|
||||
@docs x
|
||||
@docs xSvg
|
||||
@docs submitting, rating, revising
|
||||
|
||||
-}
|
||||
|
||||
@ -707,6 +711,24 @@ xSvg assets =
|
||||
SvgIcon assets.x
|
||||
|
||||
|
||||
{-| -}
|
||||
submitting : { r | submitting : String } -> IconType
|
||||
submitting assets =
|
||||
SvgIcon assets.submitting
|
||||
|
||||
|
||||
{-| -}
|
||||
rating : { r | rating : String } -> IconType
|
||||
rating assets =
|
||||
SvgIcon assets.rating
|
||||
|
||||
|
||||
{-| -}
|
||||
revising : { r | revising : String } -> IconType
|
||||
revising assets =
|
||||
SvgIcon assets.revising
|
||||
|
||||
|
||||
{-| Inlining SVG styles because styles.class doesn't work on SVG elements.
|
||||
The `className` property of an SVG element isn't a string, it's an object and so
|
||||
`styles.class` causes a runtime exception by attempting to overwrite it with
|
||||
|
@ -74,6 +74,9 @@ type alias Assets =
|
||||
, writingcycle : String
|
||||
, x : String
|
||||
, xWhite_svg : Asset
|
||||
, submitting : String
|
||||
, rating : String
|
||||
, revising : String
|
||||
}
|
||||
|
||||
|
||||
@ -148,4 +151,7 @@ assets =
|
||||
, writingcycle = ""
|
||||
, x = ""
|
||||
, xWhite_svg = Asset ""
|
||||
, submitting = "submitting"
|
||||
, rating = "rating"
|
||||
, revising = "revising"
|
||||
}
|
||||
|
@ -97,9 +97,7 @@ imageIcons =
|
||||
, { icon = Icon.logo assets, background = Light, alt = "Logo" }
|
||||
, { icon = Icon.notStarred assets, background = Light, alt = "NotStarred" }
|
||||
, { icon = Icon.okay assets, background = Dark, alt = "Okay" }
|
||||
, { icon = Icon.peerReview assets, background = Light, alt = "PeerReview" }
|
||||
, { icon = Icon.personBlue assets, background = Light, alt = "PersonBlue" }
|
||||
, { icon = Icon.quickWrite assets, background = Light, alt = "QuickWrite" }
|
||||
, { icon = Icon.starred assets, background = Light, alt = "Starred" }
|
||||
, { icon = Icon.thumbsUp assets, background = Dark, alt = "ThumbsUp" }
|
||||
, { icon = Icon.twitter assets, background = Light, alt = "Twitter" }
|
||||
@ -150,6 +148,11 @@ assignmentTypeSvgIcons =
|
||||
, { alt = "Practice", background = Light, icon = Icon.assignmentTypePractice assets }
|
||||
, { alt = "Quiz", background = Light, icon = Icon.assignmentTypeQuiz assets }
|
||||
, { alt = "WritingCycle", background = Light, icon = Icon.assignmentTypeWritingCycle assets }
|
||||
, { alt = "PeerReview", background = Light, icon = Icon.peerReview assets }
|
||||
, { alt = "QuickWrite", background = Light, icon = Icon.quickWrite assets }
|
||||
, { alt = "submitting", background = Light, icon = Icon.submitting assets }
|
||||
, { alt = "rating", background = Light, icon = Icon.rating assets }
|
||||
, { alt = "revising", background = Light, icon = Icon.revising assets }
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user