@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.
Files changed (129) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/README.md +29 -8
  3. package/dist/@pocketprep/ui-kit.js +1772 -1737
  4. package/dist/@pocketprep/ui-kit.js.map +1 -1
  5. package/dist/@pocketprep/ui-kit.umd.cjs +4 -4
  6. package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
  7. package/lib/components/BundleIcons/BundleIcon.vue +2 -2
  8. package/lib/components/Filters/FilterDropdown.vue +2 -2
  9. package/lib/components/Icons/Icon.vue +3 -0
  10. package/lib/components/Icons/IconPresent.vue +21 -0
  11. package/lib/components/Icons/icon.d.ts +2 -1
  12. package/lib/pocketprep.scss +12 -12
  13. package/package.json +14 -13
  14. package/lib/components/Banners/Banner.md +0 -41
  15. package/lib/components/Blobs/Blob.md +0 -10
  16. package/lib/components/Blobs/BlobEmptyState.md +0 -9
  17. package/lib/components/BundleIcons/BundleIcon.md +0 -60
  18. package/lib/components/Bundles/BundleList.md +0 -63
  19. package/lib/components/Bundles/BundleSearch.md +0 -195
  20. package/lib/components/Bundles/PremiumPill.md +0 -23
  21. package/lib/components/Buttons/Button.md +0 -99
  22. package/lib/components/Buttons/Link.md +0 -58
  23. package/lib/components/Buttons/Tab.md +0 -35
  24. package/lib/components/Calendar/Calendar.md +0 -18
  25. package/lib/components/Charts/Bar.md +0 -123
  26. package/lib/components/Charts/Pie.md +0 -23
  27. package/lib/components/Controls/SegmentControl.md +0 -47
  28. package/lib/components/Controls/Slider.md +0 -67
  29. package/lib/components/Controls/ToggleSwitch.md +0 -56
  30. package/lib/components/EmptyStates/EmptyState.md +0 -44
  31. package/lib/components/Exams/ExamCard.md +0 -45
  32. package/lib/components/Exams/ExamMenuCard.md +0 -90
  33. package/lib/components/Filters/FilterDropdown.md +0 -68
  34. package/lib/components/Filters/FilterOptions.md +0 -67
  35. package/lib/components/Forms/Checkbox.md +0 -52
  36. package/lib/components/Forms/CheckboxOption.md +0 -37
  37. package/lib/components/Forms/Errors.md +0 -23
  38. package/lib/components/Forms/Input.md +0 -63
  39. package/lib/components/Forms/Radio.md +0 -66
  40. package/lib/components/Forms/Select.md +0 -133
  41. package/lib/components/Forms/Textarea.md +0 -57
  42. package/lib/components/Icons/Icon.md +0 -151
  43. package/lib/components/Icons/IconAccordionArrow.md +0 -7
  44. package/lib/components/Icons/IconActivity.md +0 -7
  45. package/lib/components/Icons/IconAdd.md +0 -7
  46. package/lib/components/Icons/IconAddCircle.md +0 -7
  47. package/lib/components/Icons/IconArrow.md +0 -7
  48. package/lib/components/Icons/IconBarChart.md +0 -7
  49. package/lib/components/Icons/IconCalendar.md +0 -7
  50. package/lib/components/Icons/IconChat.md +0 -7
  51. package/lib/components/Icons/IconCheck.md +0 -7
  52. package/lib/components/Icons/IconClose.md +0 -7
  53. package/lib/components/Icons/IconCorrect.md +0 -7
  54. package/lib/components/Icons/IconEdit.md +0 -7
  55. package/lib/components/Icons/IconExam.md +0 -7
  56. package/lib/components/Icons/IconExternalLink.md +0 -7
  57. package/lib/components/Icons/IconEyeHide.md +0 -7
  58. package/lib/components/Icons/IconEyeShow.md +0 -7
  59. package/lib/components/Icons/IconFilter.md +0 -7
  60. package/lib/components/Icons/IconFilterActive.md +0 -7
  61. package/lib/components/Icons/IconFlag.md +0 -7
  62. package/lib/components/Icons/IconFlagContent.md +0 -7
  63. package/lib/components/Icons/IconFlagFeedback.md +0 -11
  64. package/lib/components/Icons/IconFlagFilled.md +0 -7
  65. package/lib/components/Icons/IconFullView.md +0 -7
  66. package/lib/components/Icons/IconFullViewActive.md +0 -7
  67. package/lib/components/Icons/IconHandle.md +0 -7
  68. package/lib/components/Icons/IconHeart.md +0 -7
  69. package/lib/components/Icons/IconHelp.md +0 -7
  70. package/lib/components/Icons/IconHourglass.md +0 -7
  71. package/lib/components/Icons/IconImage.md +0 -7
  72. package/lib/components/Icons/IconIncorrect.md +0 -7
  73. package/lib/components/Icons/IconInfo.md +0 -7
  74. package/lib/components/Icons/IconKeyboard.md +0 -7
  75. package/lib/components/Icons/IconLaunch.md +0 -7
  76. package/lib/components/Icons/IconLevelUp.md +0 -7
  77. package/lib/components/Icons/IconLightbulb.md +0 -5
  78. package/lib/components/Icons/IconLightning.md +0 -7
  79. package/lib/components/Icons/IconList.md +0 -7
  80. package/lib/components/Icons/IconLoading.md +0 -7
  81. package/lib/components/Icons/IconLoading2.md +0 -7
  82. package/lib/components/Icons/IconLock.md +0 -7
  83. package/lib/components/Icons/IconMissedQuestions.md +0 -7
  84. package/lib/components/Icons/IconMoon.md +0 -7
  85. package/lib/components/Icons/IconPaginationArrow.md +0 -7
  86. package/lib/components/Icons/IconPassage.md +0 -7
  87. package/lib/components/Icons/IconPencil.md +0 -7
  88. package/lib/components/Icons/IconPeople.md +0 -7
  89. package/lib/components/Icons/IconPercent.md +0 -7
  90. package/lib/components/Icons/IconPerson.md +0 -7
  91. package/lib/components/Icons/IconPreview.md +0 -7
  92. package/lib/components/Icons/IconQuestions.md +0 -7
  93. package/lib/components/Icons/IconQuick10.md +0 -7
  94. package/lib/components/Icons/IconRemoveCircle.md +0 -7
  95. package/lib/components/Icons/IconReviewFlag.md +0 -7
  96. package/lib/components/Icons/IconSearch.md +0 -7
  97. package/lib/components/Icons/IconShare.md +0 -7
  98. package/lib/components/Icons/IconSideBar.md +0 -7
  99. package/lib/components/Icons/IconSideBarActive.md +0 -7
  100. package/lib/components/Icons/IconStopwatch.md +0 -7
  101. package/lib/components/Icons/IconStrike.md +0 -60
  102. package/lib/components/Icons/IconSubject.md +0 -7
  103. package/lib/components/Icons/IconText.md +0 -7
  104. package/lib/components/Icons/IconTimer.md +0 -7
  105. package/lib/components/Icons/IconWarning.md +0 -7
  106. package/lib/components/Loaders/SkeletonLoader.md +0 -43
  107. package/lib/components/Modal/Modal.md +0 -31
  108. package/lib/components/Modal/ModalContainer.md +0 -96
  109. package/lib/components/Onboarding/EmailAuth.md +0 -40
  110. package/lib/components/Onboarding/MagicCodeEntry.md +0 -20
  111. package/lib/components/Pagination/QuestionReviewPagination.md +0 -19
  112. package/lib/components/Pagination/TablePagination.md +0 -19
  113. package/lib/components/PhonePerson/PhonePerson.md +0 -36
  114. package/lib/components/Quiz/FlagToggle.md +0 -37
  115. package/lib/components/Quiz/GlobalMetricsToggle.md +0 -46
  116. package/lib/components/Quiz/KeyboardShortcutsButton.md +0 -18
  117. package/lib/components/Quiz/KeyboardShortcutsModal.md +0 -71
  118. package/lib/components/Quiz/Question.md +0 -579
  119. package/lib/components/Quiz/QuizContainer.md +0 -91
  120. package/lib/components/Quiz/QuizProgress.md +0 -122
  121. package/lib/components/Quiz/QuizProgressBar.md +0 -131
  122. package/lib/components/Search/Pill.md +0 -37
  123. package/lib/components/Search/Search.md +0 -44
  124. package/lib/components/SidePanels/SidePanel.md +0 -126
  125. package/lib/components/Tables/StudyTable.md +0 -136
  126. package/lib/components/Tables/TeachTable.md +0 -696
  127. package/lib/components/Toasts/Toast.md +0 -35
  128. package/lib/components/Tooltips/OverflowTooltip.md +0 -14
  129. package/lib/components/Tooltips/Tooltip.md +0 -72
@@ -1,90 +0,0 @@
1
- ```vue
2
- <template>
3
- <div class="docs-exam-menu-card">
4
- <div>
5
- <Button @click="canClick = !canClick">
6
- {{ canClick ? 'Prevent' : 'Allow' }} Click
7
- </Button>
8
- <Button @click="showMenuArrow = !showMenuArrow">
9
- {{ showMenuArrow ? 'Hide' : 'Show' }} Menu Arrow
10
- </Button>
11
- <Button @click="isPremium = !isPremium">
12
- {{ isPremium ? 'Hide' : 'Show' }} Premium Badge
13
- </Button>
14
- </div>
15
- <SVGDefinitions />
16
- <ExamMenuCard
17
- class="docs-exam-menu-card__color"
18
- :exam="exam"
19
- :bundle-id="bundleId"
20
- :is-clickable="canClick"
21
- :show-menu-arrow="showMenuArrow"
22
- :menu-arrow-direction="menuArrowDirection"
23
- :is-premium="isPremium"
24
- @click="menuArrowDirection = menuArrowDirection === 'up' ? 'down' : 'up'"
25
- @keydown.enter="handleKeydown"
26
- />
27
- <ExamMenuCard
28
- class="docs-exam-menu-card__grayscale"
29
- :exam="exam"
30
- :bundle-id="bundleId"
31
- theme="grayscale"
32
- :is-clickable="canClick"
33
- :show-menu-arrow="showMenuArrow"
34
- :menu-arrow-direction="menuArrowDirection"
35
- :is-premium="isPremium"
36
- @click="menuArrowDirection = menuArrowDirection === 'up' ? 'down' : 'up'"
37
- @keydown.enter="handleKeydown"
38
- />
39
- <ExamMenuCard
40
- class="docs-exam-menu-card__silver"
41
- :exam="exam"
42
- :bundle-id="bundleId"
43
- theme="silver"
44
- :is-clickable="canClick"
45
- :show-menu-arrow="showMenuArrow"
46
- :menu-arrow-direction="menuArrowDirection"
47
- :is-premium="isPremium"
48
- @click="menuArrowDirection = menuArrowDirection === 'up' ? 'down' : 'up'"
49
- @keydown.enter="handleKeydown"
50
- />
51
- </div>
52
- </template>
53
-
54
- <script>
55
- export default {
56
- data () {
57
- const exam = {
58
- objectId: 'o98Hn8iUO4',
59
- descriptiveName: 'College-level Biology Practice',
60
- nativeAppName: 'College Biology',
61
- }
62
- const bundleId = '9970muCFGV'
63
- const canClick = false
64
- const showMenuArrow = false
65
- const menuArrowDirection = 'down'
66
- const isPremium = false
67
-
68
- return {
69
- exam,
70
- bundleId,
71
- canClick,
72
- showMenuArrow,
73
- menuArrowDirection,
74
- isPremium,
75
- }
76
- },
77
- methods: {
78
- handleKeydown () {
79
- this.menuArrowDirection = this.menuArrowDirection === 'up' ? 'down' : 'up'
80
- }
81
- }
82
- }
83
- </script>
84
- ```
85
-
86
- <style>
87
- .docs-exam-menu-card__silver {
88
- background-color: #1c2f3c;
89
- }
90
- </style>
@@ -1,68 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <FilterDropdown
5
- filterLabel="Filter"
6
- :radioEntries="radioOptions"
7
- :checkboxEntries="checkboxOptions"
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>
18
- </div>
19
- </template>
20
-
21
- <script>
22
- export default {
23
- data () {
24
- return {
25
- radioOptions: [],
26
- checkboxOptions: [
27
- {
28
- id: 'airway',
29
- label: 'Airway, Respiration, & Ventilation (18)',
30
- enabled: false,
31
- },
32
- {
33
- id: 'cardio',
34
- label: 'Cardiology & Resuscitation (9)',
35
- enabled: false,
36
- },
37
- {
38
- id: 'ems',
39
- label: 'EMS Operations (5)',
40
- enabled: false,
41
- },
42
- {
43
- id: 'medical',
44
- label: 'Medical; Obstetrics & Gynecology (6)',
45
- enabled: false,
46
- },
47
- {
48
- id: 'trauma',
49
- label: 'Trauma (10)',
50
- enabled: false,
51
- },
52
- ]
53
- }
54
- }
55
- }
56
- </script>
57
-
58
- <style>
59
- .light,
60
- .dark {
61
- padding: 30px;
62
- }
63
-
64
- .dark {
65
- background-color: #1f3545;
66
- }
67
- </style>
68
- ```
@@ -1,67 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <FilterOptions
5
- :radioEntries="radioEntries"
6
- :checkboxEntries="checkboxEntries"
7
- class="multiple"
8
- />
9
- <FilterOptions
10
- :radioEntries="[]"
11
- :checkboxEntries="checkboxEntries"
12
- >
13
- <template #checkboxLabelText>
14
- FILTER BY QUIZ MODE
15
- </template>
16
- </FilterOptions>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- data () {
23
- return {
24
- checkboxEntries: [
25
- {
26
- id: 'airway',
27
- label: 'Airway, Respiration, & Ventilation (18)',
28
- enabled: false,
29
- },
30
- {
31
- id: 'cardio',
32
- label: 'Cardiology & Resuscitation (9)',
33
- enabled: false,
34
- },
35
- {
36
- id: 'ems',
37
- label: 'EMS Operations (5)',
38
- enabled: false,
39
- },
40
- {
41
- id: 'medical',
42
- label: 'Medical; Obstetrics & Gynecology (6)',
43
- enabled: false,
44
- },
45
- {
46
- id: 'trauma',
47
- label: 'Trauma (10)',
48
- enabled: false,
49
- }
50
- ],
51
- radioEntries: [
52
- { label: 'All Answered', value: 'all' },
53
- { label: 'Correct', value: 'correct' },
54
- { label: 'Incorrect', value: 'incorrect' },
55
- { label: 'Flagged', value: 'flagged' },
56
- ]
57
- }
58
- }
59
- }
60
- </script>
61
-
62
- <style>
63
- .multiple {
64
- margin-bottom: 10px;
65
- }
66
- </style>
67
- ```
@@ -1,52 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <div class="light">
5
- <Checkbox v-model="checkboxValue1" />
6
- <Checkbox v-model="checkboxValue2" :disabled="true" />
7
- <Checkbox v-model="checkboxValue3" />
8
- <Checkbox v-model="checkboxValue4" :disabled="true" />
9
- <Checkbox v-model="checkboxValue5" />
10
- <Checkbox v-model="checkboxValue6" :disabled="true" />
11
- </div>
12
- <div class="dark">
13
- <Checkbox :isDarkMode="true" v-model="checkboxValue1" />
14
- <Checkbox :isDarkMode="true" v-model="checkboxValue2" :disabled="true" />
15
- <Checkbox :isDarkMode="true" v-model="checkboxValue3" />
16
- <Checkbox :isDarkMode="true" v-model="checkboxValue4" :disabled="true" />
17
- <Checkbox :isDarkMode="true" v-model="checkboxValue5" />
18
- <Checkbox :isDarkMode="true" v-model="checkboxValue6" :disabled="true" />
19
- </div>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- data() {
26
- return {
27
- checkboxValue1: true,
28
- checkboxValue2: true,
29
- checkboxValue3: null,
30
- checkboxValue4: null,
31
- checkboxValue5: false,
32
- checkboxValue6: false,
33
- }
34
- }
35
- }
36
- </script>
37
-
38
- <style>
39
- .light,
40
- .dark {
41
- padding: 30px;
42
- }
43
-
44
- .dark {
45
- background-color: #1f3545;
46
- }
47
-
48
- .uikit-checkbox {
49
- margin-bottom: 10px;
50
- }
51
- </style>
52
- ```
@@ -1,37 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <div class="light">
5
- <CheckboxOption label="Test Label" v-model="checkboxValue1" />
6
- </div>
7
- <div class="dark">
8
- <CheckboxOption :isDarkMode="true" label="Test Label" v-model="checkboxValue1" />
9
- </div>
10
- </div>
11
- </template>
12
-
13
- <script>
14
- export default {
15
- data() {
16
- return {
17
- checkboxValue1: true,
18
- }
19
- }
20
- }
21
- </script>
22
-
23
- <style>
24
- .light,
25
- .dark {
26
- padding: 30px;
27
- }
28
-
29
- .dark {
30
- background-color: #1f3545;
31
- }
32
-
33
- button {
34
- margin-bottom: 20px;
35
- }
36
- </style>
37
- ```
@@ -1,23 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <div class="light">
5
- <Errors :errors="['Error example', 'This is another possible error']" />
6
- </div>
7
- <div class="dark">
8
- <Errors :isDarkMode="true" :errors="['Error example', 'This is another possible error']" />
9
- </div>
10
- </div>
11
- </template>
12
-
13
- <style>
14
- .light,
15
- .dark {
16
- padding: 30px;
17
- }
18
-
19
- .dark {
20
- background-color: #1f3545;
21
- }
22
- </style>
23
- ```
@@ -1,63 +0,0 @@
1
- ```vue
2
- <template>
3
- <div class="inputs" :class="{ dark: isDarkMode }">
4
- <Button @click="isDarkMode = !isDarkMode">{{ isDarkMode ? 'Disable' : 'Enable' }} Dark Mode</Button>
5
- <Input
6
- label="Standard Input Field"
7
- placeholder="Transfiguration Year Ones"
8
- v-model="inputVal1"
9
- :isDarkMode="isDarkMode"
10
- />
11
- <Input
12
- label="Disabled Input Field"
13
- placeholder="Transfiguration Year Ones"
14
- :disabled="true"
15
- v-model="inputVal2"
16
- :isDarkMode="isDarkMode"
17
- />
18
- <Input
19
- label="Password Field"
20
- placeholder="6+ characters"
21
- v-model="inputVal3"
22
- fieldType="password"
23
- :isDarkMode="isDarkMode"
24
- />
25
- </div>
26
- </template>
27
-
28
- <script>
29
- import Button from '../Buttons/Button.vue'
30
-
31
- export default {
32
- components: {
33
- Button
34
- },
35
- data() {
36
- return {
37
- inputVal1: null,
38
- inputVal2: null,
39
- inputVal3: null,
40
- isDarkMode: false
41
- }
42
- }
43
- }
44
- </script>
45
-
46
- <style>
47
- .inputs {
48
- padding: 30px;
49
- }
50
-
51
- .dark {
52
- background-color: #1f3545;
53
- }
54
-
55
- .uikit-btn {
56
- margin-bottom: 30px;
57
- }
58
-
59
- .uikit-input {
60
- margin-bottom: 20px;
61
- }
62
- </style>
63
- ```
@@ -1,66 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <Button @click="radioValue = null">Reset Radio Field</Button>
5
- <Button @click="isDarkMode = !isDarkMode">{{ isDarkMode ? 'Disable' : 'Enable' }} Dark Mode</Button>
6
- <div class="radio" :class="{ dark: isDarkMode }">
7
- <Radio
8
- label="Who can <strong>use</strong> it?"
9
- v-model="radioValue"
10
- :data="[
11
- { label: 'Colleagues in organization', helperText: 'Helper text can be added here to help', value: 1 },
12
- { label: 'Just me', value: 2 },
13
- { label: 'No one', value: 3 },
14
- ]"
15
- :isDarkMode="isDarkMode"
16
- />
17
-
18
- <Radio
19
- label="Disabled radio buttons"
20
- :disabled="true"
21
- v-model="radioValue2"
22
- :data="[
23
- { label: 'You cannot select me', value: 1 },
24
- { label: 'Or me', value: 2 },
25
- ]"
26
- :isDarkMode="isDarkMode"
27
- />
28
- </div>
29
- </div>
30
- </template>
31
-
32
- <script>
33
- import Button from '../Buttons/Button.vue'
34
-
35
- export default {
36
- components: {
37
- Button
38
- },
39
- data() {
40
- return {
41
- radioValue: null,
42
- radioValue2: { value: 2 },
43
- isDarkMode: false,
44
- }
45
- }
46
- }
47
- </script>
48
-
49
- <style>
50
- .radio {
51
- padding: 30px;
52
- }
53
-
54
- .dark {
55
- background-color: #1f3545;
56
- }
57
-
58
- .uikit-btn {
59
- margin-bottom: 30px;
60
- }
61
-
62
- .uikit-radio:last-child {
63
- margin-top: 20px;
64
- }
65
- </style>
66
- ```
@@ -1,133 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <Button @click="reset">Reset Select Fields</Button>
5
- <Button @click="isDarkMode = !isDarkMode">{{ isDarkMode ? 'Disable' : 'Enable'}} Dark Mode</Button>
6
- <div class="select" :class="{ dark: isDarkMode }">
7
- <Select
8
- label="Exam Prep"
9
- placeholder="Select field with empty option"
10
- :showEmptyOption="true"
11
- :data="[
12
- { value: 1, label: 'NASM-CPT 1' }, { value: 2, label: 'PP Trivia 2'}, { value: 3, label: 'Another Exam 3'},
13
- { value: 4, label: 'NASM-CPT 4' }, { value: 5, label: 'PP Trivia 5'}, { value: 6, label: 'Another Exam 6'},
14
- { value: 7, label: 'NASM-CPT 7' }, { value: 8, label: 'PP Trivia 8'}, { value: 9, label: 'Another Exam 9'},
15
- { value: 10, label: 'NASM-CPT 10' }, { value: 11, label: 'PP Trivia 11'}, { value: 12, label: 'Another Exam 12'},
16
- ]"
17
- v-model="selectValue0"
18
- :isDarkMode="isDarkMode"
19
- />
20
- Value: {{ selectValue0 }}<br>
21
- <br>
22
- <Select
23
- label="Exam Prep"
24
- placeholder="Select field with empty option and menu above field"
25
- :showEmptyOption="true"
26
- :openMenuAbove="true"
27
- :data="[
28
- { value: 1, label: 'NASM-CPT 1' }, { value: 2, label: 'PP Trivia 2'}, { value: 3, label: 'Another Exam 3'},
29
- { value: 4, label: 'NASM-CPT 4' }, { value: 5, label: 'PP Trivia 5'}, { value: 6, label: 'Another Exam 6'},
30
- { value: 7, label: 'NASM-CPT 7' }, { value: 8, label: 'PP Trivia 8'}, { value: 9, label: 'Another Exam 9'},
31
- { value: 10, label: 'NASM-CPT 10' }, { value: 11, label: 'PP Trivia 11'}, { value: 12, label: 'Another Exam 12'},
32
- ]"
33
- v-model="selectValue1"
34
- :isDarkMode="isDarkMode"
35
- />
36
- Value: {{ selectValue1 }}<br>
37
- <br>
38
- <Select
39
- label="Exam Prep"
40
- placeholder="Disabled select field"
41
- :disabled="true"
42
- :data="[{ value: 1, label: 'NASM-CPT' }, { value: 2, label: 'PP Trivia'}, { value: 3, label: 'Another Exam'}]"
43
- v-model="selectValue2"
44
- :isDarkMode="isDarkMode"
45
- />
46
- Value: {{ selectValue2 }}<br>
47
- <br>
48
- <Select
49
- placeholder="Select field with no label"
50
- :data="[{ value: 1, label: 'NASM-CPT' }, { value: 2, label: 'PP Trivia'}, { value: 3, label: 'Another Exam'}]"
51
- v-model="selectValue3"
52
- :isDarkMode="isDarkMode"
53
- />
54
- Value: {{ selectValue3 }}<br>
55
- <br>
56
- <Select
57
- label="Exam Prep"
58
- placeholder="Select field with typeahead"
59
- :typeahead="true"
60
- :data="[{ value: 1, label: 'NASM-CPT' }, { value: 2, label: 'PP Trivia'}, { value: 3, label: 'Another Exam'}]"
61
- v-model="selectValue4"
62
- :isDarkMode="isDarkMode"
63
- />
64
- Value: {{ selectValue4 }}
65
- <br>
66
- <Select
67
- label="Exam Prep"
68
- placeholder="Select field with link"
69
- :data="[{ value: 1, label: 'Card ending in 2234' }, { value: 2, label: 'Card endingin 1234'}, { value: 3, label: '+ Add Payment Method', type: 'link' }]"
70
- v-model="selectValue5"
71
- :isDarkMode="isDarkMode"
72
- />
73
- Value: {{ selectValue5 }}
74
- <br>
75
- <Select
76
- label="Exam Prep"
77
- placeholder="Select field with subtext"
78
- subtext="Hello, I am sample subtext"
79
- :data="[{ value: 1, label: 'Field 1 with subtext' , subtext: 'Hello, I am subtext for field 1'}, { value: 2, label: 'Field 2 with subtext', subtext: 'And I am for field 2!'}, { value: 3, label: 'Field 3 with subtext', subtext: 'Field 3!!!'}]"
80
- v-model="selectValue6"
81
- :isDarkMode="isDarkMode"
82
- />
83
- Value: {{ selectValue6 }}
84
- </div>
85
- </div>
86
- </template>
87
-
88
- <script>
89
- import Button from '../Buttons/Button.vue'
90
- export default {
91
- components: {
92
- Button
93
- },
94
- data() {
95
- return {
96
- selectValue0: null,
97
- selectValue1: null,
98
- selectValue2: null,
99
- selectValue3: null,
100
- selectValue4: null,
101
- selectValue5: null,
102
- selectValue6: null,
103
- isDarkMode: false,
104
- }
105
- },
106
- methods: {
107
- reset() {
108
- this.selectValue0 = null
109
- this.selectValue1 = null
110
- this.selectValue2 = null
111
- this.selectValue3 = null
112
- this.selectValue4 = null
113
- this.selectValue5 = null
114
- this.selectValue6 = null
115
- }
116
- }
117
- }
118
- </script>
119
-
120
- <style>
121
- .select {
122
- padding: 30px;
123
- }
124
-
125
- .dark {
126
- background-color: #1f3545;
127
- }
128
-
129
- .uikit-select {
130
- margin-top: 10px;
131
- }
132
- </style>
133
- ```
@@ -1,57 +0,0 @@
1
- ```vue
2
- <template>
3
- <div>
4
- <Button @click="isDarkMode = !isDarkMode">{{ isDarkMode ? 'Disable' : 'Enable' }} Dark Mode</Button>
5
- <div class="textareas" :class="{ dark: isDarkMode }">
6
- <Textarea
7
- label="Standard Textarea Field"
8
- placeholder="Transfiguration Year Ones"
9
- v-model="textareaVal1"
10
- :isDarkMode="isDarkMode"
11
- />
12
- <Textarea
13
- label="Disabled Textarea Field"
14
- placeholder="Transfiguration Year Ones"
15
- :disabled="true"
16
- v-model="textareaVal2"
17
- :isDarkMode="isDarkMode"
18
- />
19
- </div>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- import Button from '../Buttons/Button.vue'
25
-
26
- export default {
27
- components: {
28
- Button
29
- },
30
- data() {
31
- return {
32
- textareaVal1: null,
33
- textareaVal2: null,
34
- isDarkMode: false,
35
- }
36
- }
37
- }
38
- </script>
39
-
40
- <style>
41
- .uikit-btn {
42
- margin-bottom: 30px;
43
- }
44
-
45
- .textareas {
46
- padding: 30px;
47
- }
48
-
49
- .dark {
50
- background-color: #1f3545;
51
- }
52
-
53
- .uikit-textarea:first-child {
54
- margin-bottom: 10px;
55
- }
56
- </style>
57
- ```