mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-22 05:01:40 +03:00
Move some icons to UiIcons
This commit is contained in:
parent
e439cd84f7
commit
9b5d8768e0
@ -6,7 +6,6 @@ module Nri.Ui.AssignmentIcon.V2 exposing
|
|||||||
, quickWriteCircled, guidedDraftCircled, peerReviewCircled, selfReviewCircled
|
, quickWriteCircled, guidedDraftCircled, peerReviewCircled, selfReviewCircled
|
||||||
, submitting, rating, revising
|
, submitting, rating, revising
|
||||||
, startPrimary, startSecondary
|
, startPrimary, startSecondary
|
||||||
, home, library, assignArrow
|
|
||||||
, assessment, standards, writing
|
, assessment, standards, writing
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -36,11 +35,6 @@ module Nri.Ui.AssignmentIcon.V2 exposing
|
|||||||
@docs startPrimary, startSecondary
|
@docs startPrimary, startSecondary
|
||||||
|
|
||||||
|
|
||||||
# Navigation
|
|
||||||
|
|
||||||
@docs home, library, assignArrow
|
|
||||||
|
|
||||||
|
|
||||||
# Activities
|
# Activities
|
||||||
|
|
||||||
@docs assessment, standards, writing
|
@docs assessment, standards, writing
|
||||||
@ -389,40 +383,6 @@ writing =
|
|||||||
|> Nri.Ui.Svg.V1.fromHtml
|
|> Nri.Ui.Svg.V1.fromHtml
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
|
||||||
assignArrow : Nri.Ui.Svg.V1.Svg
|
|
||||||
assignArrow =
|
|
||||||
Svg.svg
|
|
||||||
[ Attributes.width "100%"
|
|
||||||
, Attributes.height "100%"
|
|
||||||
, Attributes.viewBox "0 0 30 30"
|
|
||||||
, Attributes.fill "currentcolor"
|
|
||||||
]
|
|
||||||
[ Svg.g
|
|
||||||
[ Attributes.fillRule "evenodd" ]
|
|
||||||
[ Svg.path [ Attributes.d "M15.0153,0 L30,15 L15.0153,30.0003 L9.6972,24.6822 L9.749948,24.629449 L9.89998116,24.4794159 C10.618401,23.7609967 13.1327192,21.2466827 15.6153,18.7641 L0,18.7641 L0,11.2431 L15.6153,11.2431 L9.6972,5.3181 L15.0153,0 Z" ] []
|
|
||||||
]
|
|
||||||
]
|
|
||||||
|> Nri.Ui.Svg.V1.fromHtml
|
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
|
||||||
home : Nri.Ui.Svg.V1.Svg
|
|
||||||
home =
|
|
||||||
Svg.svg
|
|
||||||
[ Attributes.width "100%"
|
|
||||||
, Attributes.height "100%"
|
|
||||||
, Attributes.viewBox "0 0 20 18"
|
|
||||||
, Attributes.fill "currentcolor"
|
|
||||||
]
|
|
||||||
[ Svg.g
|
|
||||||
[ Attributes.fillRule "evenodd" ]
|
|
||||||
[ Svg.path [ Attributes.d "M10.5916711,0.1316206 L10.67853,0.20566 L19.77453,9.411066 C20.1884706,9.82499711 19.9187834,10.5322989 19.3794595,10.6096104 L19.28157,10.616526 L17.30891,10.616526 L17.30891,17.082125 C17.30891,17.4337583 17.0325426,17.7394285 16.6910117,17.7879316 L16.59641,17.794625 L11.93943,17.794625 L11.93943,11.767226 L7.994034,11.767226 L7.994034,17.739825 C7.9524255,17.780925 7.8805005,17.7912 7.82406703,17.7937688 L7.774494,17.794625 L3.007294,17.794625 C2.65566067,17.794625 2.34999053,17.5181635 2.3014874,17.1766169 L2.294794,17.082013 L2.294794,10.616414 L0.7059516,10.616526 C0.0854307467,10.616526 -0.193638248,9.88344717 0.146485604,9.47884123 L0.2129916,9.411066 L9.69259,0.20566 C9.938686,-0.041138 10.3183024,-0.0658178 10.5916711,0.1316206 Z" ] []
|
|
||||||
]
|
|
||||||
]
|
|
||||||
|> Nri.Ui.Svg.V1.fromHtml
|
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| -}
|
||||||
passageQuizCircled : Nri.Ui.Svg.V1.Svg
|
passageQuizCircled : Nri.Ui.Svg.V1.Svg
|
||||||
passageQuizCircled =
|
passageQuizCircled =
|
||||||
@ -503,21 +463,6 @@ unitDiagnosticCircled =
|
|||||||
|> Nri.Ui.Svg.V1.fromHtml
|
|> Nri.Ui.Svg.V1.fromHtml
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
|
||||||
library : Nri.Ui.Svg.V1.Svg
|
|
||||||
library =
|
|
||||||
Svg.svg
|
|
||||||
[ Attributes.width "100%"
|
|
||||||
, Attributes.height "100%"
|
|
||||||
, Attributes.viewBox "0 0 25 21"
|
|
||||||
, Attributes.fill "currentcolor"
|
|
||||||
]
|
|
||||||
[ Svg.g [ Attributes.fillRule "evenodd" ]
|
|
||||||
[ Svg.path [ Attributes.d "M4.36725,18.19925 L4.36725,18.6592 L0,18.6592 L0,18.19925 L4.36725,18.19925 Z M4.36725,17.7393 L0,17.7393 L0,3.2608 L4.36725,3.2608 L4.36725,17.7393 Z M4.36725,19.1182 L4.36725,19.34867 C4.36725,19.72952 4.057675,20.03812 3.6778,20.03812 L0.68955,20.03812 C0.3087,20.03812 9.989738e-05,19.72952 9.989738e-05,19.34867 L9.989738e-05,19.1182 L4.36725,19.1182 Z M4.36725,2.34095 L4.36725,2.8009 L0,2.8009 L0,2.34095 L4.36725,2.34095 Z M4.36725,1.88198 L0,1.88198 L0,1.6515 C0,1.27065 0.3086,0.96205 0.68945,0.96205 L3.6777,0.96205 C4.057575,0.96205 4.36715,1.27065 4.36715,1.6515 L4.36725,1.88198 Z M0.919,3.71987 L0.919,6.0187 L3.44725,6.0187 L3.44725,3.71987 L0.919,3.71987 Z M9.423,18.199375 L9.423,18.659325 L5.05675,18.659325 L5.05675,18.199375 L9.423,18.199375 Z M9.423,17.739425 L5.05675,17.739425 L5.05675,3.26092 L9.423,3.26092 L9.423,17.739425 Z M9.423,19.118325 L9.423,19.348795 C9.423,19.729645 9.1144,20.038245 8.73355,20.038245 L5.7463,20.038245 C5.36545,20.038245 5.05685,19.729645 5.05685,19.348795 L5.05685,19.118325 L9.423,19.118325 Z M9.423,2.34107 L9.423,2.80102 L5.05675,2.80102 L5.05675,2.34107 L9.423,2.34107 Z M9.423,1.8821 L5.05675,1.8821 L5.05675,1.65163 C5.05675,1.27078 5.36535,0.96218 5.7462,0.96218 L8.73345,0.96218 C9.1143,0.96218 9.4229,1.27078 9.4229,1.65163 L9.423,1.8821 Z M5.97575,3.72 L5.97575,6.01882 L8.504,6.01882 L8.504,3.72 L5.97575,3.72 Z M14.47975,18.199497 L14.47975,18.659447 L10.1125,18.659447 L10.1125,18.199497 L14.47975,18.199497 Z M14.47975,17.739547 L10.1125,17.739547 L10.1125,3.26105 L14.47975,3.26105 L14.47975,17.739547 Z M14.47975,19.118447 L14.47975,19.348917 C14.47975,19.729767 14.17115,20.038367 13.7903,20.038367 L10.80205,20.038367 C10.4212,20.038367 10.1126,19.729767 10.1126,19.348917 L10.1126,19.118447 L14.47975,19.118447 Z M14.47975,2.3412 L14.47975,2.80115 L10.1125,2.80115 L10.1125,2.3412 L14.47975,2.3412 Z M14.47975,1.88222 L10.1125,1.88222 L10.1125,1.65175 C10.1125,1.2709 10.4211,0.9623 10.80195,0.9623 L13.7902,0.9623 C14.17105,0.9623 14.47965,1.2709 14.47965,1.65175 L14.47975,1.88222 Z M11.0325,3.72012 L11.0325,6.01895 L13.55975,6.01895 L13.55975,3.72012 L11.0325,3.72012 Z M24.56575,16.988622 L24.72298,17.420272 L20.61948,18.914422 L20.46225,18.481797 L24.56575,16.988622 Z M24.40852,16.556972 L20.30502,18.050147 L15.35277,4.44365 L19.45627,2.95047 L24.40852,16.556972 Z M24.8802,17.852872 L24.95832,18.068692 C25.08918,18.426117 24.90461,18.821617 24.54622,18.952492 L21.73872,19.973967 C21.3813,20.10385 20.9858,19.91928 20.85492,19.561867 L20.7768,19.346047 L24.8802,17.852872 Z M19.14195,2.08637 L19.29918,2.519 L15.19568,4.01217 L15.03845,3.58052 L19.14195,2.08637 Z M18.98472,1.65472 L14.88122,3.1479 L14.80212,2.93208 C14.67224,2.57465 14.85681,2.17915 15.21422,2.04828 L18.02172,1.0268 C18.38012,0.89692 18.77562,1.08149 18.90552,1.4389 L18.98472,1.65472 Z M16.37347,4.56197 L17.1596,6.72115 L19.53557,5.8569 L18.74945,3.69675 L16.37347,4.56197 Z" ] [] ]
|
|
||||||
]
|
|
||||||
|> Nri.Ui.Svg.V1.fromHtml
|
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| -}
|
||||||
quickWriteCircled : Nri.Ui.Svg.V1.Svg
|
quickWriteCircled : Nri.Ui.Svg.V1.Svg
|
||||||
quickWriteCircled =
|
quickWriteCircled =
|
||||||
|
@ -17,6 +17,7 @@ module Nri.Ui.UiIcon.V1 exposing
|
|||||||
, key, lock, premiumLock
|
, key, lock, premiumLock
|
||||||
, badge
|
, badge
|
||||||
, bold, italic, underline, list, undo
|
, bold, italic, underline, list, undo
|
||||||
|
, home, library, assignArrow
|
||||||
)
|
)
|
||||||
|
|
||||||
{-| How to add new icons: <https://paper.dropbox.com/doc/How-to-create-a-new-SVG-icon-for-use-in-Elm--Ay9uhSLfGUAix0ERIiJ0Dm8dAg-8WNqtARdr4EgjmYEHPeYD>
|
{-| How to add new icons: <https://paper.dropbox.com/doc/How-to-create-a-new-SVG-icon-for-use-in-Elm--Ay9uhSLfGUAix0ERIiJ0Dm8dAg-8WNqtARdr4EgjmYEHPeYD>
|
||||||
@ -39,6 +40,7 @@ module Nri.Ui.UiIcon.V1 exposing
|
|||||||
@docs key, lock, premiumLock
|
@docs key, lock, premiumLock
|
||||||
@docs badge
|
@docs badge
|
||||||
@docs bold, italic, underline, list, undo
|
@docs bold, italic, underline, list, undo
|
||||||
|
@docs home, library, assignArrow
|
||||||
|
|
||||||
import Html.Styled exposing (..)
|
import Html.Styled exposing (..)
|
||||||
import Nri.Ui.Colors.V1 as Colors
|
import Nri.Ui.Colors.V1 as Colors
|
||||||
@ -1199,3 +1201,52 @@ undo =
|
|||||||
]
|
]
|
||||||
[ Svg.path [ Attributes.d "M3.16 3.168C4.83 1.76 6.938.879 9.22.879c4.126 0 7.55 2.64 8.78 6.336l-2.107.705c-.879-2.816-3.513-4.84-6.674-4.84a6.877 6.877 0 0 0-4.478 1.672L7.902 7.92H0V0l3.16 3.168z" ] [] ]
|
[ Svg.path [ Attributes.d "M3.16 3.168C4.83 1.76 6.938.879 9.22.879c4.126 0 7.55 2.64 8.78 6.336l-2.107.705c-.879-2.816-3.513-4.84-6.674-4.84a6.877 6.877 0 0 0-4.478 1.672L7.902 7.92H0V0l3.16 3.168z" ] [] ]
|
||||||
|> Nri.Ui.Svg.V1.fromHtml
|
|> Nri.Ui.Svg.V1.fromHtml
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
|
home : Nri.Ui.Svg.V1.Svg
|
||||||
|
home =
|
||||||
|
Svg.svg
|
||||||
|
[ Attributes.width "100%"
|
||||||
|
, Attributes.height "100%"
|
||||||
|
, Attributes.viewBox "0 0 20 18"
|
||||||
|
, Attributes.fill "currentcolor"
|
||||||
|
]
|
||||||
|
[ Svg.g
|
||||||
|
[ Attributes.fillRule "evenodd" ]
|
||||||
|
[ Svg.path [ Attributes.d "M10.5916711,0.1316206 L10.67853,0.20566 L19.77453,9.411066 C20.1884706,9.82499711 19.9187834,10.5322989 19.3794595,10.6096104 L19.28157,10.616526 L17.30891,10.616526 L17.30891,17.082125 C17.30891,17.4337583 17.0325426,17.7394285 16.6910117,17.7879316 L16.59641,17.794625 L11.93943,17.794625 L11.93943,11.767226 L7.994034,11.767226 L7.994034,17.739825 C7.9524255,17.780925 7.8805005,17.7912 7.82406703,17.7937688 L7.774494,17.794625 L3.007294,17.794625 C2.65566067,17.794625 2.34999053,17.5181635 2.3014874,17.1766169 L2.294794,17.082013 L2.294794,10.616414 L0.7059516,10.616526 C0.0854307467,10.616526 -0.193638248,9.88344717 0.146485604,9.47884123 L0.2129916,9.411066 L9.69259,0.20566 C9.938686,-0.041138 10.3183024,-0.0658178 10.5916711,0.1316206 Z" ] []
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|> Nri.Ui.Svg.V1.fromHtml
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
|
assignArrow : Nri.Ui.Svg.V1.Svg
|
||||||
|
assignArrow =
|
||||||
|
Svg.svg
|
||||||
|
[ Attributes.width "100%"
|
||||||
|
, Attributes.height "100%"
|
||||||
|
, Attributes.viewBox "0 0 30 30"
|
||||||
|
, Attributes.fill "currentcolor"
|
||||||
|
]
|
||||||
|
[ Svg.g
|
||||||
|
[ Attributes.fillRule "evenodd" ]
|
||||||
|
[ Svg.path [ Attributes.d "M15.0153,0 L30,15 L15.0153,30.0003 L9.6972,24.6822 L9.749948,24.629449 L9.89998116,24.4794159 C10.618401,23.7609967 13.1327192,21.2466827 15.6153,18.7641 L0,18.7641 L0,11.2431 L15.6153,11.2431 L9.6972,5.3181 L15.0153,0 Z" ] []
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|> Nri.Ui.Svg.V1.fromHtml
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
|
library : Nri.Ui.Svg.V1.Svg
|
||||||
|
library =
|
||||||
|
Svg.svg
|
||||||
|
[ Attributes.width "100%"
|
||||||
|
, Attributes.height "100%"
|
||||||
|
, Attributes.viewBox "0 0 25 21"
|
||||||
|
, Attributes.fill "currentcolor"
|
||||||
|
]
|
||||||
|
[ Svg.g [ Attributes.fillRule "evenodd" ]
|
||||||
|
[ Svg.path [ Attributes.d "M4.36725,18.19925 L4.36725,18.6592 L0,18.6592 L0,18.19925 L4.36725,18.19925 Z M4.36725,17.7393 L0,17.7393 L0,3.2608 L4.36725,3.2608 L4.36725,17.7393 Z M4.36725,19.1182 L4.36725,19.34867 C4.36725,19.72952 4.057675,20.03812 3.6778,20.03812 L0.68955,20.03812 C0.3087,20.03812 9.989738e-05,19.72952 9.989738e-05,19.34867 L9.989738e-05,19.1182 L4.36725,19.1182 Z M4.36725,2.34095 L4.36725,2.8009 L0,2.8009 L0,2.34095 L4.36725,2.34095 Z M4.36725,1.88198 L0,1.88198 L0,1.6515 C0,1.27065 0.3086,0.96205 0.68945,0.96205 L3.6777,0.96205 C4.057575,0.96205 4.36715,1.27065 4.36715,1.6515 L4.36725,1.88198 Z M0.919,3.71987 L0.919,6.0187 L3.44725,6.0187 L3.44725,3.71987 L0.919,3.71987 Z M9.423,18.199375 L9.423,18.659325 L5.05675,18.659325 L5.05675,18.199375 L9.423,18.199375 Z M9.423,17.739425 L5.05675,17.739425 L5.05675,3.26092 L9.423,3.26092 L9.423,17.739425 Z M9.423,19.118325 L9.423,19.348795 C9.423,19.729645 9.1144,20.038245 8.73355,20.038245 L5.7463,20.038245 C5.36545,20.038245 5.05685,19.729645 5.05685,19.348795 L5.05685,19.118325 L9.423,19.118325 Z M9.423,2.34107 L9.423,2.80102 L5.05675,2.80102 L5.05675,2.34107 L9.423,2.34107 Z M9.423,1.8821 L5.05675,1.8821 L5.05675,1.65163 C5.05675,1.27078 5.36535,0.96218 5.7462,0.96218 L8.73345,0.96218 C9.1143,0.96218 9.4229,1.27078 9.4229,1.65163 L9.423,1.8821 Z M5.97575,3.72 L5.97575,6.01882 L8.504,6.01882 L8.504,3.72 L5.97575,3.72 Z M14.47975,18.199497 L14.47975,18.659447 L10.1125,18.659447 L10.1125,18.199497 L14.47975,18.199497 Z M14.47975,17.739547 L10.1125,17.739547 L10.1125,3.26105 L14.47975,3.26105 L14.47975,17.739547 Z M14.47975,19.118447 L14.47975,19.348917 C14.47975,19.729767 14.17115,20.038367 13.7903,20.038367 L10.80205,20.038367 C10.4212,20.038367 10.1126,19.729767 10.1126,19.348917 L10.1126,19.118447 L14.47975,19.118447 Z M14.47975,2.3412 L14.47975,2.80115 L10.1125,2.80115 L10.1125,2.3412 L14.47975,2.3412 Z M14.47975,1.88222 L10.1125,1.88222 L10.1125,1.65175 C10.1125,1.2709 10.4211,0.9623 10.80195,0.9623 L13.7902,0.9623 C14.17105,0.9623 14.47965,1.2709 14.47965,1.65175 L14.47975,1.88222 Z M11.0325,3.72012 L11.0325,6.01895 L13.55975,6.01895 L13.55975,3.72012 L11.0325,3.72012 Z M24.56575,16.988622 L24.72298,17.420272 L20.61948,18.914422 L20.46225,18.481797 L24.56575,16.988622 Z M24.40852,16.556972 L20.30502,18.050147 L15.35277,4.44365 L19.45627,2.95047 L24.40852,16.556972 Z M24.8802,17.852872 L24.95832,18.068692 C25.08918,18.426117 24.90461,18.821617 24.54622,18.952492 L21.73872,19.973967 C21.3813,20.10385 20.9858,19.91928 20.85492,19.561867 L20.7768,19.346047 L24.8802,17.852872 Z M19.14195,2.08637 L19.29918,2.519 L15.19568,4.01217 L15.03845,3.58052 L19.14195,2.08637 Z M18.98472,1.65472 L14.88122,3.1479 L14.80212,2.93208 C14.67224,2.57465 14.85681,2.17915 15.21422,2.04828 L18.02172,1.0268 C18.38012,0.89692 18.77562,1.08149 18.90552,1.4389 L18.98472,1.65472 Z M16.37347,4.56197 L17.1596,6.72115 L19.53557,5.8569 L18.74945,3.69675 L16.37347,4.56197 Z" ] [] ]
|
||||||
|
]
|
||||||
|
|> Nri.Ui.Svg.V1.fromHtml
|
||||||
|
@ -73,10 +73,5 @@ example =
|
|||||||
, ( "standards", AssignmentIcon.standards )
|
, ( "standards", AssignmentIcon.standards )
|
||||||
, ( "writing", AssignmentIcon.writing )
|
, ( "writing", AssignmentIcon.writing )
|
||||||
]
|
]
|
||||||
, IconExamples.view "Navigate"
|
|
||||||
[ ( "assignArrow", AssignmentIcon.assignArrow )
|
|
||||||
, ( "home", AssignmentIcon.home )
|
|
||||||
, ( "library", AssignmentIcon.library )
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -119,5 +119,10 @@ example =
|
|||||||
, ( "list", UiIcon.list )
|
, ( "list", UiIcon.list )
|
||||||
, ( "undo", UiIcon.undo )
|
, ( "undo", UiIcon.undo )
|
||||||
]
|
]
|
||||||
|
, IconExamples.view "Navigation"
|
||||||
|
[ ( "assignArrow", UiIcon.assignArrow )
|
||||||
|
, ( "home", UiIcon.home )
|
||||||
|
, ( "library", UiIcon.library )
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user