@pocketprep/ui-kit 3.1.6 → 3.2.1
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/.eslintrc.cjs +1 -0
- package/README.md +29 -8
- package/dist/@pocketprep/ui-kit.js +1772 -1737
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +4 -4
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/BundleIcons/BundleIcon.vue +2 -2
- package/lib/components/Filters/FilterDropdown.vue +2 -2
- package/lib/components/Icons/Icon.vue +3 -0
- package/lib/components/Icons/IconPresent.vue +21 -0
- package/lib/components/Icons/icon.d.ts +2 -1
- package/lib/pocketprep.scss +12 -12
- package/package.json +14 -13
- package/lib/components/Banners/Banner.md +0 -41
- package/lib/components/Blobs/Blob.md +0 -10
- package/lib/components/Blobs/BlobEmptyState.md +0 -9
- package/lib/components/BundleIcons/BundleIcon.md +0 -60
- package/lib/components/Bundles/BundleList.md +0 -63
- package/lib/components/Bundles/BundleSearch.md +0 -195
- package/lib/components/Bundles/PremiumPill.md +0 -23
- package/lib/components/Buttons/Button.md +0 -99
- package/lib/components/Buttons/Link.md +0 -58
- package/lib/components/Buttons/Tab.md +0 -35
- package/lib/components/Calendar/Calendar.md +0 -18
- package/lib/components/Charts/Bar.md +0 -123
- package/lib/components/Charts/Pie.md +0 -23
- package/lib/components/Controls/SegmentControl.md +0 -47
- package/lib/components/Controls/Slider.md +0 -67
- package/lib/components/Controls/ToggleSwitch.md +0 -56
- package/lib/components/EmptyStates/EmptyState.md +0 -44
- package/lib/components/Exams/ExamCard.md +0 -45
- package/lib/components/Exams/ExamMenuCard.md +0 -90
- package/lib/components/Filters/FilterDropdown.md +0 -68
- package/lib/components/Filters/FilterOptions.md +0 -67
- package/lib/components/Forms/Checkbox.md +0 -52
- package/lib/components/Forms/CheckboxOption.md +0 -37
- package/lib/components/Forms/Errors.md +0 -23
- package/lib/components/Forms/Input.md +0 -63
- package/lib/components/Forms/Radio.md +0 -66
- package/lib/components/Forms/Select.md +0 -133
- package/lib/components/Forms/Textarea.md +0 -57
- package/lib/components/Icons/Icon.md +0 -151
- package/lib/components/Icons/IconAccordionArrow.md +0 -7
- package/lib/components/Icons/IconActivity.md +0 -7
- package/lib/components/Icons/IconAdd.md +0 -7
- package/lib/components/Icons/IconAddCircle.md +0 -7
- package/lib/components/Icons/IconArrow.md +0 -7
- package/lib/components/Icons/IconBarChart.md +0 -7
- package/lib/components/Icons/IconCalendar.md +0 -7
- package/lib/components/Icons/IconChat.md +0 -7
- package/lib/components/Icons/IconCheck.md +0 -7
- package/lib/components/Icons/IconClose.md +0 -7
- package/lib/components/Icons/IconCorrect.md +0 -7
- package/lib/components/Icons/IconEdit.md +0 -7
- package/lib/components/Icons/IconExam.md +0 -7
- package/lib/components/Icons/IconExternalLink.md +0 -7
- package/lib/components/Icons/IconEyeHide.md +0 -7
- package/lib/components/Icons/IconEyeShow.md +0 -7
- package/lib/components/Icons/IconFilter.md +0 -7
- package/lib/components/Icons/IconFilterActive.md +0 -7
- package/lib/components/Icons/IconFlag.md +0 -7
- package/lib/components/Icons/IconFlagContent.md +0 -7
- package/lib/components/Icons/IconFlagFeedback.md +0 -11
- package/lib/components/Icons/IconFlagFilled.md +0 -7
- package/lib/components/Icons/IconFullView.md +0 -7
- package/lib/components/Icons/IconFullViewActive.md +0 -7
- package/lib/components/Icons/IconHandle.md +0 -7
- package/lib/components/Icons/IconHeart.md +0 -7
- package/lib/components/Icons/IconHelp.md +0 -7
- package/lib/components/Icons/IconHourglass.md +0 -7
- package/lib/components/Icons/IconImage.md +0 -7
- package/lib/components/Icons/IconIncorrect.md +0 -7
- package/lib/components/Icons/IconInfo.md +0 -7
- package/lib/components/Icons/IconKeyboard.md +0 -7
- package/lib/components/Icons/IconLaunch.md +0 -7
- package/lib/components/Icons/IconLevelUp.md +0 -7
- package/lib/components/Icons/IconLightbulb.md +0 -5
- package/lib/components/Icons/IconLightning.md +0 -7
- package/lib/components/Icons/IconList.md +0 -7
- package/lib/components/Icons/IconLoading.md +0 -7
- package/lib/components/Icons/IconLoading2.md +0 -7
- package/lib/components/Icons/IconLock.md +0 -7
- package/lib/components/Icons/IconMissedQuestions.md +0 -7
- package/lib/components/Icons/IconMoon.md +0 -7
- package/lib/components/Icons/IconPaginationArrow.md +0 -7
- package/lib/components/Icons/IconPassage.md +0 -7
- package/lib/components/Icons/IconPencil.md +0 -7
- package/lib/components/Icons/IconPeople.md +0 -7
- package/lib/components/Icons/IconPercent.md +0 -7
- package/lib/components/Icons/IconPerson.md +0 -7
- package/lib/components/Icons/IconPreview.md +0 -7
- package/lib/components/Icons/IconQuestions.md +0 -7
- package/lib/components/Icons/IconQuick10.md +0 -7
- package/lib/components/Icons/IconRemoveCircle.md +0 -7
- package/lib/components/Icons/IconReviewFlag.md +0 -7
- package/lib/components/Icons/IconSearch.md +0 -7
- package/lib/components/Icons/IconShare.md +0 -7
- package/lib/components/Icons/IconSideBar.md +0 -7
- package/lib/components/Icons/IconSideBarActive.md +0 -7
- package/lib/components/Icons/IconStopwatch.md +0 -7
- package/lib/components/Icons/IconStrike.md +0 -60
- package/lib/components/Icons/IconSubject.md +0 -7
- package/lib/components/Icons/IconText.md +0 -7
- package/lib/components/Icons/IconTimer.md +0 -7
- package/lib/components/Icons/IconWarning.md +0 -7
- package/lib/components/Loaders/SkeletonLoader.md +0 -43
- package/lib/components/Modal/Modal.md +0 -31
- package/lib/components/Modal/ModalContainer.md +0 -96
- package/lib/components/Onboarding/EmailAuth.md +0 -40
- package/lib/components/Onboarding/MagicCodeEntry.md +0 -20
- package/lib/components/Pagination/QuestionReviewPagination.md +0 -19
- package/lib/components/Pagination/TablePagination.md +0 -19
- package/lib/components/PhonePerson/PhonePerson.md +0 -36
- package/lib/components/Quiz/FlagToggle.md +0 -37
- package/lib/components/Quiz/GlobalMetricsToggle.md +0 -46
- package/lib/components/Quiz/KeyboardShortcutsButton.md +0 -18
- package/lib/components/Quiz/KeyboardShortcutsModal.md +0 -71
- package/lib/components/Quiz/Question.md +0 -579
- package/lib/components/Quiz/QuizContainer.md +0 -91
- package/lib/components/Quiz/QuizProgress.md +0 -122
- package/lib/components/Quiz/QuizProgressBar.md +0 -131
- package/lib/components/Search/Pill.md +0 -37
- package/lib/components/Search/Search.md +0 -44
- package/lib/components/SidePanels/SidePanel.md +0 -126
- package/lib/components/Tables/StudyTable.md +0 -136
- package/lib/components/Tables/TeachTable.md +0 -696
- package/lib/components/Toasts/Toast.md +0 -35
- package/lib/components/Tooltips/OverflowTooltip.md +0 -14
- package/lib/components/Tooltips/Tooltip.md +0 -72
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<Button @click="allDisabled = !allDisabled">Toggle Disabled Status</Button>
|
|
5
|
-
<div class="white">
|
|
6
|
-
<h3>White Background</h3>
|
|
7
|
-
<Button :disabled="allDisabled">Primary</Button>
|
|
8
|
-
<Button :isLoading="true" :disabled="allDisabled">Primary Loading</Button>
|
|
9
|
-
<Button type="primary-yellow" :disabled="allDisabled">Primary Yellow</Button>
|
|
10
|
-
<Button type="primary-red" :disabled="allDisabled">Primary Red</Button>
|
|
11
|
-
<Button type="secondary" :disabled="allDisabled">Secondary</Button>
|
|
12
|
-
<Button type="tertiary" :disabled="allDisabled">Tertiary</Button>
|
|
13
|
-
<Button type="tertiary-red" :disabled="allDisabled">Tertiary Red</Button>
|
|
14
|
-
<Button type="tertiary-small" :disabled="allDisabled">Tertiary Small</Button>
|
|
15
|
-
<Button type="tertiary-red-small" :disabled="allDisabled">Tertiary Red Small</Button>
|
|
16
|
-
<Button type="icon" icon="filter" :disabled="allDisabled">Icon</Button>
|
|
17
|
-
<Button type="icon" icon="add" :disabled="allDisabled" />
|
|
18
|
-
</div>
|
|
19
|
-
<div class="gray">
|
|
20
|
-
<h3>Gray Background</h3>
|
|
21
|
-
<Button :disabled="allDisabled">Primary</Button>
|
|
22
|
-
<Button :isLoading="true" :disabled="allDisabled">Primary Loading</Button>
|
|
23
|
-
<Button type="primary-yellow" :disabled="allDisabled">Primary Yellow</Button>
|
|
24
|
-
<Button type="primary-red" :disabled="allDisabled">Primary Red</Button>
|
|
25
|
-
<Button type="secondary" :disabled="allDisabled">Secondary</Button>
|
|
26
|
-
<Button type="tertiary" :disabled="allDisabled">Tertiary</Button>
|
|
27
|
-
<Button type="tertiary-red" :disabled="allDisabled">Tertiary Red</Button>
|
|
28
|
-
<Button type="tertiary-small" :disabled="allDisabled">Tertiary Small</Button>
|
|
29
|
-
<Button type="tertiary-red-small" :disabled="allDisabled">Tertiary Red Small</Button>
|
|
30
|
-
<Button type="icon" icon="filter" :disabled="allDisabled">Icon</Button>
|
|
31
|
-
<Button type="icon" icon="add" :disabled="allDisabled" />
|
|
32
|
-
</div>
|
|
33
|
-
<div class="dark">
|
|
34
|
-
<h3>Dark Mode</h3>
|
|
35
|
-
<Button :isDarkMode="true" :disabled="allDisabled">Primary</Button>
|
|
36
|
-
<Button :isDarkMode="true" :isLoading="true" :disabled="allDisabled">Primary</Button>
|
|
37
|
-
<Button :isDarkMode="true" type="primary-yellow" :disabled="allDisabled">Primary Yellow</Button>
|
|
38
|
-
<Button :isDarkMode="true" type="primary-red" :disabled="allDisabled">Primary Red</Button>
|
|
39
|
-
<Button :isDarkMode="true" type="secondary" :disabled="allDisabled">Secondary</Button>
|
|
40
|
-
<Button :isDarkMode="true" type="tertiary" :disabled="allDisabled">Tertiary</Button>
|
|
41
|
-
<Button :isDarkMode="true" type="tertiary-red" :disabled="allDisabled">Tertiary Red</Button>
|
|
42
|
-
<Button :isDarkMode="true" type="tertiary-small" :disabled="allDisabled">Tertiary Small</Button>
|
|
43
|
-
<Button :isDarkMode="true" type="tertiary-red-small" :disabled="allDisabled">Tertiary Red Small</Button>
|
|
44
|
-
<Button :isDarkMode="true" type="icon" icon="filter" :disabled="allDisabled">Icon</Button>
|
|
45
|
-
<Button :isDarkMode="true" type="icon" icon="add" :disabled="allDisabled" />
|
|
46
|
-
</div>
|
|
47
|
-
<div class="dark">
|
|
48
|
-
<h3>Dark Background</h3>
|
|
49
|
-
<Button type="secondary-yellow-dark" :disabled="allDisabled">Secondary Yellow Dark</Button>
|
|
50
|
-
<Button type="icon-yellow" icon="filter" :disabled="allDisabled">Icon Yellow</Button>
|
|
51
|
-
<Button type="icon-yellow" icon="add" :disabled="allDisabled" />
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<script>
|
|
57
|
-
export default {
|
|
58
|
-
data() {
|
|
59
|
-
return {
|
|
60
|
-
allDisabled: false
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<style>
|
|
67
|
-
.white,
|
|
68
|
-
.gray,
|
|
69
|
-
.dark {
|
|
70
|
-
margin: 10px 0;
|
|
71
|
-
padding: 20px;
|
|
72
|
-
border: 1px solid #1f3545;
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-wrap: wrap;
|
|
75
|
-
align-items: center;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.white {
|
|
79
|
-
background-color: #fff;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.gray {
|
|
83
|
-
background-color: #fbfbfd;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.dark {
|
|
87
|
-
color: white;
|
|
88
|
-
background-color: #1f3545;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
h3 {
|
|
92
|
-
width: 100%;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
button {
|
|
96
|
-
margin: 4px;
|
|
97
|
-
}
|
|
98
|
-
</style>
|
|
99
|
-
```
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<div class="light">
|
|
5
|
-
<Link type="tertiary">Tertiary</Link>
|
|
6
|
-
<br>
|
|
7
|
-
<Link :has-icon="true">
|
|
8
|
-
<Icon type="filter"/>
|
|
9
|
-
Tertiary with Icon
|
|
10
|
-
</Link>
|
|
11
|
-
<br>
|
|
12
|
-
<Link type="tertiary-red">Tertiary Red</Link>
|
|
13
|
-
<br>
|
|
14
|
-
<Link type="tertiary-small">Tertiary Small</Link>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="dark">
|
|
17
|
-
<Link isDarkMode="true" type="tertiary">Tertiary</Link>
|
|
18
|
-
<br>
|
|
19
|
-
<Link isDarkMode="true" :has-icon="true">
|
|
20
|
-
<Icon type="filter"/>
|
|
21
|
-
Tertiary with Icon
|
|
22
|
-
</Link>
|
|
23
|
-
<br>
|
|
24
|
-
<Link isDarkMode="true" type="tertiary-red">Tertiary Red</Link>
|
|
25
|
-
<br>
|
|
26
|
-
<Link isDarkMode="true" type="tertiary-small">Tertiary Small</Link>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
import Icon from '../Icons/Icon.vue'
|
|
33
|
-
|
|
34
|
-
export default {
|
|
35
|
-
components: {
|
|
36
|
-
Icon
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<style>
|
|
42
|
-
.light,
|
|
43
|
-
.dark {
|
|
44
|
-
padding: 30px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.dark {
|
|
48
|
-
background-color: #1f3545;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
svg {
|
|
52
|
-
width: 20px;
|
|
53
|
-
vertical-align: top;
|
|
54
|
-
margin-right: 5px;
|
|
55
|
-
margin-top: -4px;
|
|
56
|
-
}
|
|
57
|
-
</style>
|
|
58
|
-
```
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<div class="light">
|
|
5
|
-
<Tab :active="isActive" @click="isActive = !isActive">All Studying</Tab>
|
|
6
|
-
<Tab :disabled="true">Disabled Tab</Tab>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="dark">
|
|
9
|
-
<Tab :isDarkMode="true" :active="isActive" @click="isActive = !isActive">All Studying</Tab>
|
|
10
|
-
<Tab :isDarkMode="true" :disabled="true">Disabled Tab</Tab>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
data () {
|
|
18
|
-
return {
|
|
19
|
-
isActive: false
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
.dark,
|
|
27
|
-
.light {
|
|
28
|
-
padding: 30px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.dark {
|
|
32
|
-
background-color: #1f3545;
|
|
33
|
-
}
|
|
34
|
-
</style>
|
|
35
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
Selected Date: {{ calendar }}
|
|
5
|
-
<Calendar label="Scheduled Exam Date" placeholder="Set Exam Date" v-model="calendar" />
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
export default {
|
|
11
|
-
data() {
|
|
12
|
-
return {
|
|
13
|
-
calendar: null,
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
</script>
|
|
18
|
-
```
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div class="bar-example">
|
|
4
|
-
<div class="light">
|
|
5
|
-
<div class="bar-container">
|
|
6
|
-
<Bar
|
|
7
|
-
title="Multiple Column Percent Chart"
|
|
8
|
-
type="percent"
|
|
9
|
-
size="small"
|
|
10
|
-
:data="[{
|
|
11
|
-
'y': 50
|
|
12
|
-
}, {
|
|
13
|
-
'y': 0
|
|
14
|
-
}, {
|
|
15
|
-
'y': 100
|
|
16
|
-
}, {
|
|
17
|
-
'y': 90
|
|
18
|
-
}, {
|
|
19
|
-
'y': 70
|
|
20
|
-
}, {
|
|
21
|
-
'y': 80
|
|
22
|
-
}]"
|
|
23
|
-
/>
|
|
24
|
-
<div class="bar-x-axis-multi">
|
|
25
|
-
<span>Oldest</span>
|
|
26
|
-
<span>Most Recent</span>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="bar-container">
|
|
30
|
-
<Bar
|
|
31
|
-
title="Single Column Percent Chart"
|
|
32
|
-
type="percent"
|
|
33
|
-
size="small"
|
|
34
|
-
:data="[{
|
|
35
|
-
info: '05.25.1992',
|
|
36
|
-
'y': 50
|
|
37
|
-
}]"
|
|
38
|
-
/>
|
|
39
|
-
<div class="bar-x-axis-single">
|
|
40
|
-
<span>12/31</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="dark">
|
|
45
|
-
<div class="bar-container">
|
|
46
|
-
<Bar
|
|
47
|
-
title="Multiple Column Percent Chart"
|
|
48
|
-
type="percent"
|
|
49
|
-
:isDarkMode="true"
|
|
50
|
-
size="small"
|
|
51
|
-
:data="[{
|
|
52
|
-
'y': 50
|
|
53
|
-
}, {
|
|
54
|
-
'y': 0
|
|
55
|
-
}, {
|
|
56
|
-
'y': 100
|
|
57
|
-
}, {
|
|
58
|
-
'y': 90
|
|
59
|
-
}, {
|
|
60
|
-
'y': 70
|
|
61
|
-
}, {
|
|
62
|
-
'y': 80
|
|
63
|
-
}]"
|
|
64
|
-
/>
|
|
65
|
-
<div class="bar-x-axis-multi">
|
|
66
|
-
<span>Oldest</span>
|
|
67
|
-
<span>Most Recent</span>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="bar-container">
|
|
71
|
-
<Bar
|
|
72
|
-
title="Single Column Percent Chart"
|
|
73
|
-
type="percent"
|
|
74
|
-
size="small"
|
|
75
|
-
:isDarkMode="true"
|
|
76
|
-
:data="[{
|
|
77
|
-
info: '05.25.1992',
|
|
78
|
-
'y': 50
|
|
79
|
-
}]"
|
|
80
|
-
/>
|
|
81
|
-
<div class="bar-x-axis-single">
|
|
82
|
-
<span>12/31</span>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</template>
|
|
88
|
-
|
|
89
|
-
<style>
|
|
90
|
-
.bar-container {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
align-items: center;
|
|
94
|
-
width: 40%;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.bar-x-axis-multi {
|
|
98
|
-
width: 85%;
|
|
99
|
-
display: flex;
|
|
100
|
-
justify-content: space-between;
|
|
101
|
-
margin-right: 45px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.bar-x-axis-single {
|
|
105
|
-
width: 100%;
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
padding-right: 45px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.dark,
|
|
112
|
-
.light {
|
|
113
|
-
display: flex;
|
|
114
|
-
justify-content: space-around;
|
|
115
|
-
height: 350px;
|
|
116
|
-
padding: 30px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.dark {
|
|
120
|
-
background-color: #1f3545;
|
|
121
|
-
}
|
|
122
|
-
</style>
|
|
123
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<Pie
|
|
4
|
-
:data="[{
|
|
5
|
-
'y': 10
|
|
6
|
-
}, {
|
|
7
|
-
'y': 30
|
|
8
|
-
}, {
|
|
9
|
-
'y': 5
|
|
10
|
-
}, {
|
|
11
|
-
'y': 55
|
|
12
|
-
}]"
|
|
13
|
-
/>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<style>
|
|
17
|
-
.uikit-pie {
|
|
18
|
-
height: 182px;
|
|
19
|
-
width: 182px;
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
23
|
-
```
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<div class="control-container">
|
|
5
|
-
<SegmentControl
|
|
6
|
-
option1="Hide"
|
|
7
|
-
option2="Show"
|
|
8
|
-
@change="changeControl1"
|
|
9
|
-
/>
|
|
10
|
-
Value: {{ control1 }}
|
|
11
|
-
</div>
|
|
12
|
-
<div class="control-container">
|
|
13
|
-
<SegmentControl
|
|
14
|
-
option1="Distribution"
|
|
15
|
-
option2="Bar Graph"
|
|
16
|
-
@change="changeControl2"
|
|
17
|
-
/>
|
|
18
|
-
Value: {{ control2 }}
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
export default {
|
|
25
|
-
data () {
|
|
26
|
-
return {
|
|
27
|
-
control1: 1,
|
|
28
|
-
control2: 1
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
changeControl1 (option) {
|
|
33
|
-
this.control1 = option
|
|
34
|
-
},
|
|
35
|
-
changeControl2 (option) {
|
|
36
|
-
this.control2 = option
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<style>
|
|
43
|
-
.control-container {
|
|
44
|
-
padding: 10px;
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
47
|
-
```
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<Button @click="isDarkMode = !isDarkMode">{{ isDarkMode ? 'Disable' : 'Enable' }} Dark Mode</Button>
|
|
5
|
-
<div class="slider" :class="{ dark: isDarkMode }">
|
|
6
|
-
<div class="slider-container">
|
|
7
|
-
Large Slider:
|
|
8
|
-
<Slider
|
|
9
|
-
min="5"
|
|
10
|
-
max="60"
|
|
11
|
-
step="5"
|
|
12
|
-
v-model="slider1"
|
|
13
|
-
:isDarkMode="isDarkMode"
|
|
14
|
-
/>
|
|
15
|
-
Value: {{ slider1 }}
|
|
16
|
-
</div>
|
|
17
|
-
<div class="slider-container">
|
|
18
|
-
Small Slider:
|
|
19
|
-
<Slider
|
|
20
|
-
min="5"
|
|
21
|
-
max="60"
|
|
22
|
-
step="5"
|
|
23
|
-
v-model="slider2"
|
|
24
|
-
size="small"
|
|
25
|
-
:isDarkMode="isDarkMode"
|
|
26
|
-
/>
|
|
27
|
-
Value: {{ slider2 }}
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
export default {
|
|
35
|
-
data () {
|
|
36
|
-
return {
|
|
37
|
-
slider1: 25,
|
|
38
|
-
slider2: 25,
|
|
39
|
-
isDarkMode: false,
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<style>
|
|
46
|
-
.slider {
|
|
47
|
-
padding: 30px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dark {
|
|
51
|
-
background-color: #1f3545;
|
|
52
|
-
color: white;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.uikit-btn {
|
|
56
|
-
margin-bottom: 30px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.slider-container {
|
|
60
|
-
padding: 10px 10px 40px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.slider-container:last-child {
|
|
64
|
-
padding-bottom: 10px;
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
67
|
-
```
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<Button @click="isDarkMode = !isDarkMode">{{ isDarkMode ? 'Disable' : 'Enable' }} Dark Mode</Button>
|
|
5
|
-
<div class="toggles" :class="{ dark: isDarkMode }">
|
|
6
|
-
<ToggleSwitch :isDarkMode="isDarkMode" v-model="control" />
|
|
7
|
-
Value: {{ control }}<br>
|
|
8
|
-
<br>
|
|
9
|
-
<ToggleSwitch :isDarkMode="isDarkMode" v-model="control2" size="large" />
|
|
10
|
-
Value: {{ control2 }}
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import Button from '../Buttons/Button.vue'
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
components: {
|
|
20
|
-
Button
|
|
21
|
-
},
|
|
22
|
-
data () {
|
|
23
|
-
return {
|
|
24
|
-
control: false,
|
|
25
|
-
control2: true,
|
|
26
|
-
isDarkMode: false,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
mounted () {
|
|
30
|
-
// This tests that the ToggleSwitch component updates when the parent component updates the v-model value
|
|
31
|
-
setTimeout(() => {
|
|
32
|
-
this.control = true
|
|
33
|
-
}, 1000)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style>
|
|
39
|
-
.toggles {
|
|
40
|
-
padding: 30px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.dark {
|
|
44
|
-
background-color: #1f3545;
|
|
45
|
-
color: #fff;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.uikit-btn {
|
|
49
|
-
margin-bottom: 30px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.uikit-toggle-switch {
|
|
53
|
-
margin-bottom: 10px;
|
|
54
|
-
}
|
|
55
|
-
</style>
|
|
56
|
-
```
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<EmptyState
|
|
5
|
-
title="Default empty state TITLE"
|
|
6
|
-
message="Default empty state SUBHEAD"
|
|
7
|
-
/>
|
|
8
|
-
<EmptyState
|
|
9
|
-
title="No results for “vea”"
|
|
10
|
-
message="Only question text is searchable. Check your spelling or try again."
|
|
11
|
-
>
|
|
12
|
-
<template #imageRow>
|
|
13
|
-
<div />
|
|
14
|
-
</template>
|
|
15
|
-
</EmptyState>
|
|
16
|
-
<EmptyState
|
|
17
|
-
state="correct"
|
|
18
|
-
title="0 Correct Questions"
|
|
19
|
-
/>
|
|
20
|
-
<EmptyState
|
|
21
|
-
state="correct"
|
|
22
|
-
title="You don't have any correct questions."
|
|
23
|
-
message="Let's start studying."
|
|
24
|
-
blobColor="white"
|
|
25
|
-
/>
|
|
26
|
-
<EmptyState
|
|
27
|
-
state="incorrect"
|
|
28
|
-
title="0 Incorrect Questions"
|
|
29
|
-
message="Questions answered incorrectly by this student will appear here."
|
|
30
|
-
/>
|
|
31
|
-
<EmptyState
|
|
32
|
-
state="incorrect"
|
|
33
|
-
title="You don't have any incorrect questions."
|
|
34
|
-
message="Impressive!"
|
|
35
|
-
blobColor="white"
|
|
36
|
-
/>
|
|
37
|
-
<EmptyState
|
|
38
|
-
state="flagged"
|
|
39
|
-
title="0 Flagged Questions"
|
|
40
|
-
message="Questions flagged by this student will appear here."
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
```
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<SVGDefinitions />
|
|
5
|
-
<ExamCard
|
|
6
|
-
:exam="exam"
|
|
7
|
-
:bundle="bundle"
|
|
8
|
-
/>
|
|
9
|
-
<ExamCard
|
|
10
|
-
:exam="exam"
|
|
11
|
-
:bundle="bundle"
|
|
12
|
-
:showCancelButton="true"
|
|
13
|
-
/>
|
|
14
|
-
<ExamCard
|
|
15
|
-
:exam="exam"
|
|
16
|
-
:bundle="bundle"
|
|
17
|
-
:disableInteraction="true"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
const exam = {
|
|
24
|
-
objectId: 'o98Hn8iUO4',
|
|
25
|
-
descriptiveName: 'College-level Biology Practice',
|
|
26
|
-
nativeAppName: 'College Biology',
|
|
27
|
-
itemCount: 100,
|
|
28
|
-
archivedCount: 2,
|
|
29
|
-
knowledgeAreas: ['', '']
|
|
30
|
-
}
|
|
31
|
-
const bundle = {
|
|
32
|
-
name: 'Nursing School',
|
|
33
|
-
objectId: '9970muCFGV'
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
data () {
|
|
38
|
-
return {
|
|
39
|
-
exam,
|
|
40
|
-
bundle
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
</script>
|
|
45
|
-
```
|