2020-04-01 02:00:29 +03:00
|
|
|
module Examples.AssignmentIcon exposing (example, State, Msg)
|
2019-10-01 03:30:35 +03:00
|
|
|
|
|
|
|
{-|
|
|
|
|
|
2020-04-01 02:00:29 +03:00
|
|
|
@docs example, State, Msg
|
2019-10-01 03:30:35 +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-01 19:04:33 +03:00
|
|
|
import Examples.IconExamples as IconExamples
|
2020-06-03 14:01:53 +03:00
|
|
|
import Nri.Ui.AssignmentIcon.V2 as AssignmentIcon
|
2019-10-01 03:30:35 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
2020-04-01 02:00:29 +03:00
|
|
|
type alias State =
|
2022-03-21 23:23:58 +03:00
|
|
|
{ showIconName : Bool }
|
2020-04-01 02:00:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
type alias Msg =
|
|
|
|
()
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
example : Example State Msg
|
2019-10-01 03:30:35 +03:00
|
|
|
example =
|
2020-09-09 21:43:10 +03:00
|
|
|
{ name = "AssignmentIcon"
|
|
|
|
, version = 2
|
2020-03-31 23:33:05 +03:00
|
|
|
, categories = [ Icons ]
|
2020-06-20 00:45:32 +03:00
|
|
|
, keyboardSupport = []
|
2022-03-21 23:23:58 +03:00
|
|
|
, state = { showIconName = False }
|
2020-03-31 23:33:05 +03:00
|
|
|
, update = \_ state -> ( state, Cmd.none )
|
|
|
|
, subscriptions = \_ -> Sub.none
|
2021-11-05 21:48:09 +03:00
|
|
|
, preview =
|
|
|
|
IconExamples.preview
|
2021-11-06 01:26:48 +03:00
|
|
|
[ AssignmentIcon.planningDiagnosticCircled
|
|
|
|
, AssignmentIcon.unitDiagnosticCircled
|
|
|
|
, AssignmentIcon.practiceCircled
|
|
|
|
, AssignmentIcon.quizCircled
|
|
|
|
, AssignmentIcon.quickWriteCircled
|
|
|
|
, AssignmentIcon.guidedDraftCircled
|
|
|
|
, AssignmentIcon.peerReviewCircled
|
|
|
|
, AssignmentIcon.selfReviewCircled
|
|
|
|
, AssignmentIcon.startPrimary
|
|
|
|
, AssignmentIcon.assessment
|
|
|
|
, AssignmentIcon.standards
|
|
|
|
, AssignmentIcon.writing
|
2021-11-05 21:48:09 +03:00
|
|
|
]
|
2020-03-31 23:33:05 +03:00
|
|
|
, view =
|
2022-03-21 23:23:58 +03:00
|
|
|
\{ showIconName } ->
|
|
|
|
let
|
|
|
|
viewExampleSection =
|
|
|
|
IconExamples.view showIconName
|
|
|
|
in
|
|
|
|
[ viewExampleSection "Diagnostic"
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "diagnostic", AssignmentIcon.diagnostic )
|
2020-06-03 14:01:53 +03:00
|
|
|
, ( "planningDiagnosticCircled", AssignmentIcon.planningDiagnosticCircled )
|
|
|
|
, ( "unitDiagnosticCircled", AssignmentIcon.unitDiagnosticCircled )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Practice" <|
|
2020-06-03 14:01:53 +03:00
|
|
|
[ ( "practice", AssignmentIcon.practice )
|
|
|
|
, ( "practiceCircled", AssignmentIcon.practiceCircled )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Quiz" <|
|
2020-06-03 14:01:53 +03:00
|
|
|
[ ( "quiz", AssignmentIcon.quiz )
|
|
|
|
, ( "quizCircled", AssignmentIcon.quizCircled )
|
|
|
|
, ( "passageQuizCircled", AssignmentIcon.passageQuizCircled )
|
2020-03-31 23:33:05 +03:00
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Writing" <|
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "quickWrite", AssignmentIcon.quickWrite )
|
|
|
|
, ( "guidedDraft", AssignmentIcon.guidedDraft )
|
|
|
|
, ( "peerReview", AssignmentIcon.peerReview )
|
|
|
|
, ( "selfReview", AssignmentIcon.selfReview )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Writing II" <|
|
2020-06-03 14:45:50 +03:00
|
|
|
[ ( "quickWriteCircled", AssignmentIcon.quickWriteCircled )
|
|
|
|
, ( "guidedDraftCircled", AssignmentIcon.guidedDraftCircled )
|
|
|
|
, ( "peerReviewCircled", AssignmentIcon.peerReviewCircled )
|
|
|
|
, ( "selfReviewCircled", AssignmentIcon.selfReviewCircled )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Stages" <|
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "submitting", AssignmentIcon.submitting )
|
|
|
|
, ( "rating", AssignmentIcon.rating )
|
|
|
|
, ( "revising", AssignmentIcon.revising )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Start" <|
|
2020-03-31 23:33:05 +03:00
|
|
|
[ ( "startPrimary", AssignmentIcon.startPrimary )
|
|
|
|
, ( "startSecondary", AssignmentIcon.startSecondary )
|
|
|
|
]
|
2022-03-21 23:23:58 +03:00
|
|
|
, viewExampleSection "Activities" <|
|
2020-05-18 23:56:51 +03:00
|
|
|
[ ( "assessment", AssignmentIcon.assessment )
|
2020-05-19 00:24:28 +03:00
|
|
|
, ( "standards", AssignmentIcon.standards )
|
2020-05-19 02:28:54 +03:00
|
|
|
, ( "writing", AssignmentIcon.writing )
|
2020-05-18 23:56:51 +03:00
|
|
|
]
|
2019-10-01 03:55:15 +03:00
|
|
|
]
|
2019-10-01 03:30:35 +03:00
|
|
|
}
|