@pocketprep/ui-kit 3.0.21 → 3.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@pocketprep/ui-kit.js +10384 -10142
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +10 -10
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Filters/FilterDropdown.md +9 -0
- package/lib/components/Filters/FilterDropdown.vue +10 -4
- package/lib/components/Filters/FilterOptions.md +3 -1
- package/lib/components/Icons/Icon.md +1 -0
- package/lib/components/Icons/Icon.vue +9 -0
- package/lib/components/Icons/IconFlagContent.md +7 -0
- package/lib/components/Icons/IconFlagContent.vue +17 -0
- package/lib/components/Icons/IconLevelUp.md +1 -1
- package/lib/components/Icons/IconLightbulb.md +1 -1
- package/lib/components/Icons/IconPercent.md +7 -0
- package/lib/components/Icons/IconPercent.vue +24 -0
- package/lib/components/Icons/IconPerson.md +7 -0
- package/lib/components/Icons/IconPerson.vue +17 -0
- package/lib/components/Icons/icon.d.ts +2 -0
- package/lib/components/Quiz/GlobalMetricsToggle.vue +3 -1
- package/lib/components/Quiz/Question.vue +466 -259
- package/lib/pocketprep-export.module.scss +1 -0
- package/lib/styles/_colors.scss +1 -0
- package/package.json +2 -1
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
:radioEntries="radioOptions"
|
|
7
7
|
:checkboxEntries="checkboxOptions"
|
|
8
8
|
/>
|
|
9
|
+
<FilterDropdown
|
|
10
|
+
filterLabel="Filter"
|
|
11
|
+
:radioEntries="radioOptions"
|
|
12
|
+
:checkboxEntries="checkboxOptions"
|
|
13
|
+
>
|
|
14
|
+
<template #checkboxLabelText>
|
|
15
|
+
FILTER BY QUIZ MODE
|
|
16
|
+
</template>
|
|
17
|
+
</FilterDropdown>
|
|
9
18
|
</div>
|
|
10
19
|
</template>
|
|
11
20
|
|
|
@@ -34,10 +34,16 @@
|
|
|
34
34
|
[`filter-dropdown--${size}`]: true
|
|
35
35
|
}"
|
|
36
36
|
>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
<slot name="filterOptions">
|
|
38
|
+
<FilterOptions
|
|
39
|
+
:radio-entries="radioOptions"
|
|
40
|
+
:checkbox-entries="checkboxOptions"
|
|
41
|
+
>
|
|
42
|
+
<template #checkboxLabelText>
|
|
43
|
+
<slot name="checkboxLabelText" />
|
|
44
|
+
</template>
|
|
45
|
+
</FilterOptions>
|
|
46
|
+
</slot>
|
|
41
47
|
</div>
|
|
42
48
|
</div>
|
|
43
49
|
</template>
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
<Icon type="filter" title="filter" />
|
|
37
37
|
<Icon type="filterActive" title="filterActive" />
|
|
38
38
|
<Icon type="flag" title="flag" />
|
|
39
|
+
<Icon type="flagContent" title="flagContent" />
|
|
39
40
|
<Icon type="flagFeedback" title="flagFeedback" />
|
|
40
41
|
<Icon type="flag-filled" title="flag-filled" />
|
|
41
42
|
<Icon type="handle" title="handle" />
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<IconQuestions v-else-if="type === 'questions'" :title="title" />
|
|
15
15
|
<IconSubject v-else-if="type === 'subject'" :title="title" />
|
|
16
16
|
<IconFlag v-else-if="type === 'flag'" :title="title" />
|
|
17
|
+
<IconFlagContent v-else-if="type === 'flagContent'" :title="title" />
|
|
17
18
|
<IconFlagFilled v-else-if="type === 'flag-filled'" :title="title" />
|
|
18
19
|
<IconLoading v-else-if="type === 'loading'" :title="title" />
|
|
19
20
|
<IconLoading2
|
|
@@ -32,6 +33,8 @@
|
|
|
32
33
|
<IconPassage v-else-if="type === 'passage'" :title="title" />
|
|
33
34
|
<IconPencil v-else-if="type === 'pencil'" :title="title" />
|
|
34
35
|
<IconPeople v-else-if="type === 'people'" :title="title" />
|
|
36
|
+
<IconPercent v-else-if="type === 'percent'" :title="title" />
|
|
37
|
+
<IconPerson v-else-if="type === 'person'" :title="title" />
|
|
35
38
|
<IconMissedQuestions v-else-if="type === 'missedQuestions'" :title="title" />
|
|
36
39
|
<IconQuick10 v-else-if="type === 'quick10'" :title="title" />
|
|
37
40
|
<IconShare v-else-if="type === 'share'" :title="title" />
|
|
@@ -85,6 +88,7 @@ import IconPaginationArrow from './IconPaginationArrow.vue'
|
|
|
85
88
|
import IconQuestions from './IconQuestions.vue'
|
|
86
89
|
import IconSubject from './IconSubject.vue'
|
|
87
90
|
import IconFlag from './IconFlag.vue'
|
|
91
|
+
import IconFlagContent from './IconFlagContent.vue'
|
|
88
92
|
import IconFlagFilled from './IconFlagFilled.vue'
|
|
89
93
|
import IconLoading from './IconLoading.vue'
|
|
90
94
|
import IconLoading2 from './IconLoading2.vue'
|
|
@@ -130,6 +134,8 @@ import IconLightbulb from './IconLightbulb.vue'
|
|
|
130
134
|
import IconChat from './IconChat.vue'
|
|
131
135
|
import IconPreview from './IconPreview.vue'
|
|
132
136
|
import type { TIconType } from './icon'
|
|
137
|
+
import IconPercent from './IconPercent.vue'
|
|
138
|
+
import IconPerson from './IconPerson.vue'
|
|
133
139
|
|
|
134
140
|
@Component({
|
|
135
141
|
components: {
|
|
@@ -148,6 +154,7 @@ import type { TIconType } from './icon'
|
|
|
148
154
|
IconQuestions,
|
|
149
155
|
IconSubject,
|
|
150
156
|
IconFlag,
|
|
157
|
+
IconFlagContent,
|
|
151
158
|
IconFlagFilled,
|
|
152
159
|
IconLoading,
|
|
153
160
|
IconLoading2,
|
|
@@ -190,6 +197,8 @@ import type { TIconType } from './icon'
|
|
|
190
197
|
IconLaunch,
|
|
191
198
|
IconLevelUp,
|
|
192
199
|
IconLightbulb,
|
|
200
|
+
IconPercent,
|
|
201
|
+
IconPerson,
|
|
193
202
|
IconChat,
|
|
194
203
|
IconPreview,
|
|
195
204
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- eslint-disable -->
|
|
3
|
+
<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 0.75C0.585786 0.75 0.25 1.08579 0.25 1.5V6.55447C0.24998 6.55675 0.249969 6.55903 0.249969 6.56131C0.249969 6.56359 0.24998 6.56587 0.25 6.56815V11.5C0.25 11.9142 0.585786 12.25 1 12.25C1.41421 12.25 1.75 11.9142 1.75 11.5V7.3252C2.61133 7.35953 3.13054 7.45342 3.46431 7.56148C3.84262 7.68395 4.00196 7.82743 4.22385 8.03108L4.23743 8.04354C4.50278 8.28719 4.8432 8.59977 5.49932 8.82009C6.12507 9.03021 6.99901 9.14573 8.34764 9.14573C8.76185 9.14573 9.09764 8.80995 9.09764 8.39573C9.09764 8.35733 9.09475 8.31961 9.08919 8.28277C9.09477 8.24586 9.09767 8.20807 9.09767 8.1696V3.33692C9.09767 2.92271 8.76188 2.58692 8.34767 2.58692C7.05195 2.58692 6.36892 2.4728 5.97516 2.3395C5.62985 2.2226 5.48754 2.08879 5.26578 1.88027L5.25703 1.87203C4.98257 1.614 4.63595 1.29617 3.94822 1.07349C3.30579 0.865477 2.40029 0.75 1 0.75ZM7.59767 7.63089V4.0735C6.65622 4.03744 5.99439 3.92963 5.49419 3.7603C4.83948 3.53866 4.50426 3.22331 4.24479 2.9792L4.22957 2.96489C4.01557 2.76369 3.86215 2.62229 3.48615 2.50055C3.15118 2.39209 2.62615 2.29771 1.75 2.26358V5.82406C2.72352 5.85934 3.40888 5.96689 3.92631 6.1344C4.61044 6.35588 4.96031 6.67101 5.23811 6.92596L5.24449 6.93182C5.4732 7.14175 5.62312 7.27936 5.9768 7.39812C6.28969 7.50318 6.77883 7.59589 7.59767 7.63089Z" fill="currentColor"/>
|
|
5
|
+
</svg>
|
|
6
|
+
|
|
7
|
+
<!-- eslint-enable -->
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
|
12
|
+
|
|
13
|
+
@Component
|
|
14
|
+
export default class IconFlagContent extends Vue {
|
|
15
|
+
@Prop() title!: string
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- eslint-disable -->
|
|
3
|
+
<svg width="18px" height="23px" viewBox="0 0 18 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
4
|
+
<title>{{ title }}</title>
|
|
5
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
6
|
+
<g fill="currentColor" fill-rule="nonzero">
|
|
7
|
+
<g transform="translate(0.000000, 0.760000)">
|
|
8
|
+
<path d="M7.82469 9.39C7.82469 9 7.89469 8.64 8.03469 8.31C8.18469 7.97 8.38469 7.675 8.63469 7.425C8.89469 7.165 9.18969 6.965 9.51969 6.825C9.85969 6.675 10.2247 6.6 10.6147 6.6C11.0047 6.6 11.3647 6.675 11.6947 6.825C12.0347 6.965 12.3297 7.165 12.5797 7.425C12.8397 7.675 13.0397 7.97 13.1797 8.31C13.3297 8.64 13.4047 9 13.4047 9.39C13.4047 9.78 13.3297 10.145 13.1797 10.485C13.0397 10.815 12.8397 11.11 12.5797 11.37C12.3297 11.62 12.0347 11.82 11.6947 11.97C11.3647 12.11 11.0047 12.18 10.6147 12.18C10.2247 12.18 9.85969 12.11 9.51969 11.97C9.18969 11.82 8.89469 11.62 8.63469 11.37C8.38469 11.11 8.18469 10.815 8.03469 10.485C7.89469 10.145 7.82469 9.78 7.82469 9.39ZM11.9647 9.39C11.9647 9.01 11.8347 8.69 11.5747 8.43C11.3147 8.17 10.9947 8.04 10.6147 8.04C10.2347 8.04 9.91469 8.17 9.65469 8.43C9.39469 8.69 9.26469 9.01 9.26469 9.39C9.26469 9.77 9.39469 10.09 9.65469 10.35C9.91469 10.61 10.2347 10.74 10.6147 10.74C10.9947 10.74 11.3147 10.61 11.5747 10.35C11.8347 10.09 11.9647 9.77 11.9647 9.39ZM0.654688 3.99C0.654688 3.6 0.724688 3.24 0.864688 2.91C1.01469 2.57 1.21469 2.275 1.46469 2.025C1.72469 1.765 2.01969 1.565 2.34969 1.425C2.68969 1.275 3.05469 1.2 3.44469 1.2C3.83469 1.2 4.19469 1.275 4.52469 1.425C4.86469 1.565 5.15969 1.765 5.40969 2.025C5.66969 2.275 5.86969 2.57 6.00969 2.91C6.15969 3.24 6.23469 3.6 6.23469 3.99C6.23469 4.38 6.15969 4.745 6.00969 5.085C5.86969 5.415 5.66969 5.71 5.40969 5.97C5.15969 6.22 4.86469 6.42 4.52469 6.57C4.19469 6.71 3.83469 6.78 3.44469 6.78C3.05469 6.78 2.68969 6.71 2.34969 6.57C2.01969 6.42 1.72469 6.22 1.46469 5.97C1.21469 5.71 1.01469 5.415 0.864688 5.085C0.724688 4.745 0.654688 4.38 0.654688 3.99ZM4.79469 3.99C4.79469 3.61 4.66469 3.29 4.40469 3.03C4.14469 2.77 3.82469 2.64 3.44469 2.64C3.06469 2.64 2.74469 2.77 2.48469 3.03C2.22469 3.29 2.09469 3.61 2.09469 3.99C2.09469 4.37 2.22469 4.69 2.48469 4.95C2.74469 5.21 3.06469 5.34 3.44469 5.34C3.82469 5.34 4.14469 5.21 4.40469 4.95C4.66469 4.69 4.79469 4.37 4.79469 3.99ZM9.51969 0.9L10.7647 1.47L4.52469 12.48L3.27969 11.91L9.51969 0.9Z" fill="#587183"/>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
<g transform="translate(-594.000000, -648.000000)"></g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
14
|
+
<!-- eslint-enable -->
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script lang="ts">
|
|
18
|
+
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
|
19
|
+
|
|
20
|
+
@Component
|
|
21
|
+
export default class IconPercent extends Vue {
|
|
22
|
+
@Prop() title!: string
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- eslint-disable -->
|
|
3
|
+
<svg width="14" height="20" viewBox="0 0 14 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.96739 7.05006C4.96739 5.92748 5.87742 5.01745 7 5.01745C8.12258 5.01745 9.03261 5.92748 9.03261 7.05006C9.03261 8.17264 8.12258 9.08267 7 9.08267C5.87742 9.08267 4.96739 8.17264 4.96739 7.05006ZM7 3.58267C5.08501 3.58267 3.53261 5.13508 3.53261 7.05006C3.53261 8.96505 5.08501 10.5175 7 10.5175C8.91499 10.5175 10.4674 8.96505 10.4674 7.05006C10.4674 5.13508 8.91499 3.58267 7 3.58267ZM7.00004 11.6C4.69956 11.6 2.03794 12.267 0.836079 14.5542C0.643404 14.9209 0.784458 15.3743 1.15113 15.567C1.5178 15.7597 1.97125 15.6186 2.16392 15.2519C2.96206 13.733 4.85601 13.1 7.00004 13.1C9.11878 13.1 11.048 13.7366 11.842 15.1882C12.0408 15.5516 12.4965 15.6851 12.8599 15.4863C13.2233 15.2875 13.3568 14.8318 13.158 14.4684C11.952 12.2634 9.26369 11.6 7.00004 11.6Z" fill="currentColor"/>
|
|
5
|
+
</svg>
|
|
6
|
+
|
|
7
|
+
<!-- eslint-enable -->
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
|
12
|
+
|
|
13
|
+
@Component
|
|
14
|
+
export default class IconPerson extends Vue {
|
|
15
|
+
@Prop() title!: string
|
|
16
|
+
}
|
|
17
|
+
</script>
|