@pocketprep/ui-kit 3.8.4 → 3.9.0

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 (159) hide show
  1. package/dist/@pocketprep/ui-kit.css +1 -1
  2. package/dist/@pocketprep/ui-kit.js +14469 -17731
  3. package/dist/@pocketprep/ui-kit.js.map +1 -1
  4. package/dist/@pocketprep/ui-kit.umd.cjs +19 -29
  5. package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
  6. package/eslint.config.ts +38 -11
  7. package/lib/SVGDefinitions.vue +32 -35
  8. package/lib/components/Banners/Banner.vue +10 -14
  9. package/lib/components/Blobs/Blob.vue +6 -14
  10. package/lib/components/Blobs/BlobEmptyState.vue +9 -8
  11. package/lib/components/Blobs/blob.d.ts +1 -1
  12. package/lib/components/BundleIcons/BundleIcon.vue +36 -63
  13. package/lib/components/BundleIcons/bundleIcon.d.ts +1 -1
  14. package/lib/components/Bundles/BundleList.vue +71 -59
  15. package/lib/components/Bundles/BundleSearch.vue +93 -117
  16. package/lib/components/Bundles/PremiumPill.vue +6 -12
  17. package/lib/components/Buttons/Button.vue +32 -35
  18. package/lib/components/Buttons/Link.vue +32 -31
  19. package/lib/components/Buttons/Tab.vue +14 -17
  20. package/lib/components/Calendar/Calendar.vue +87 -85
  21. package/lib/components/Charts/Bar.vue +192 -263
  22. package/lib/components/Charts/Pie.vue +55 -61
  23. package/lib/components/Charts/highcharts-wrap.ts +81 -0
  24. package/lib/components/Controls/SegmentControl.vue +26 -24
  25. package/lib/components/Controls/Slider.vue +51 -47
  26. package/lib/components/Controls/ToggleSwitch.vue +33 -31
  27. package/lib/components/EmptyStates/EmptyState.vue +69 -73
  28. package/lib/components/Exams/ExamCard.vue +59 -47
  29. package/lib/components/Exams/ExamMenuCard.vue +30 -28
  30. package/lib/components/Filters/FilterDropdown.vue +83 -86
  31. package/lib/components/Filters/FilterOptions.vue +83 -88
  32. package/lib/components/Forms/Checkbox.vue +27 -27
  33. package/lib/components/Forms/CheckboxOption.vue +30 -30
  34. package/lib/components/Forms/Errors.vue +21 -24
  35. package/lib/components/Forms/Input.vue +71 -59
  36. package/lib/components/Forms/Radio.vue +2 -2
  37. package/lib/components/Forms/RadioButton.vue +8 -8
  38. package/lib/components/Forms/Select.vue +265 -257
  39. package/lib/components/Forms/Textarea.vue +49 -35
  40. package/lib/components/Icons/IconAccordionArrow.vue +7 -9
  41. package/lib/components/Icons/IconActivity.vue +7 -9
  42. package/lib/components/Icons/IconAdd.vue +7 -11
  43. package/lib/components/Icons/IconAddCircle.vue +7 -9
  44. package/lib/components/Icons/IconArrow.vue +7 -9
  45. package/lib/components/Icons/IconBarChart.vue +7 -9
  46. package/lib/components/Icons/IconCalendar.vue +7 -9
  47. package/lib/components/Icons/IconCalendarPicker.vue +7 -9
  48. package/lib/components/Icons/IconChat.vue +7 -9
  49. package/lib/components/Icons/IconCheck.vue +7 -9
  50. package/lib/components/Icons/IconClose.vue +7 -9
  51. package/lib/components/Icons/IconConcept.vue +1 -1
  52. package/lib/components/Icons/IconCorrect.vue +7 -9
  53. package/lib/components/Icons/IconEdit.vue +7 -11
  54. package/lib/components/Icons/IconExam.vue +7 -9
  55. package/lib/components/Icons/IconExternalLink.vue +7 -9
  56. package/lib/components/Icons/IconEyeHide.vue +7 -9
  57. package/lib/components/Icons/IconEyeShow.vue +7 -9
  58. package/lib/components/Icons/IconFilter.vue +7 -9
  59. package/lib/components/Icons/IconFilterActive.vue +7 -9
  60. package/lib/components/Icons/IconFlag.vue +7 -9
  61. package/lib/components/Icons/IconFlagContent.vue +8 -9
  62. package/lib/components/Icons/IconFlagFeedback.vue +8 -10
  63. package/lib/components/Icons/IconFlagFilled.vue +7 -9
  64. package/lib/components/Icons/IconFullView.vue +7 -9
  65. package/lib/components/Icons/IconFullViewActive.vue +7 -9
  66. package/lib/components/Icons/IconGridDrag.vue +2 -2
  67. package/lib/components/Icons/IconHandle.vue +7 -9
  68. package/lib/components/Icons/IconHeart.vue +7 -9
  69. package/lib/components/Icons/IconHelp.vue +7 -9
  70. package/lib/components/Icons/IconHighlight.vue +2 -2
  71. package/lib/components/Icons/IconHourglass.vue +7 -9
  72. package/lib/components/Icons/IconImage.vue +7 -9
  73. package/lib/components/Icons/IconIncorrect.vue +7 -9
  74. package/lib/components/Icons/IconInfo.vue +7 -9
  75. package/lib/components/Icons/IconKeyboard.vue +7 -9
  76. package/lib/components/Icons/IconLaunch.vue +7 -9
  77. package/lib/components/Icons/IconLevelUp.vue +7 -9
  78. package/lib/components/Icons/IconLightbulb.vue +7 -9
  79. package/lib/components/Icons/IconLightning.vue +7 -9
  80. package/lib/components/Icons/IconLink.vue +7 -9
  81. package/lib/components/Icons/IconList.vue +7 -9
  82. package/lib/components/Icons/IconLoading.vue +7 -9
  83. package/lib/components/Icons/IconLoading2.vue +11 -11
  84. package/lib/components/Icons/IconLock.vue +7 -9
  85. package/lib/components/Icons/IconMissedQuestions.vue +7 -9
  86. package/lib/components/Icons/IconMoon.vue +7 -9
  87. package/lib/components/Icons/IconPaginationArrow.vue +7 -9
  88. package/lib/components/Icons/IconPaginationArrowDouble.vue +7 -9
  89. package/lib/components/Icons/IconPassage.vue +7 -9
  90. package/lib/components/Icons/IconPencil.vue +7 -9
  91. package/lib/components/Icons/IconPeople.vue +7 -9
  92. package/lib/components/Icons/IconPercent.vue +7 -9
  93. package/lib/components/Icons/IconPerson.vue +8 -9
  94. package/lib/components/Icons/IconPresent.vue +7 -9
  95. package/lib/components/Icons/IconPreview.vue +7 -9
  96. package/lib/components/Icons/IconQuestions.vue +7 -9
  97. package/lib/components/Icons/IconQuick10.vue +7 -9
  98. package/lib/components/Icons/IconQuickActions.vue +2 -2
  99. package/lib/components/Icons/IconRecommendedFilter.vue +1 -1
  100. package/lib/components/Icons/IconRemoveCircle.vue +7 -9
  101. package/lib/components/Icons/IconReviewFlag.vue +7 -9
  102. package/lib/components/Icons/IconSearch.vue +7 -9
  103. package/lib/components/Icons/IconShare.vue +7 -9
  104. package/lib/components/Icons/IconSideBar.vue +7 -9
  105. package/lib/components/Icons/IconSideBarActive.vue +7 -9
  106. package/lib/components/Icons/IconStar.vue +1 -1
  107. package/lib/components/Icons/IconStopwatch.vue +7 -9
  108. package/lib/components/Icons/IconStrike.vue +7 -9
  109. package/lib/components/Icons/IconSubject.vue +7 -9
  110. package/lib/components/Icons/IconText.vue +7 -9
  111. package/lib/components/Icons/IconTimer.vue +8 -9
  112. package/lib/components/Icons/IconWarning.vue +7 -9
  113. package/lib/components/Icons/icon.d.ts +1 -1
  114. package/lib/components/Loaders/SkeletonLoader.vue +1 -5
  115. package/lib/components/Modal/Modal.vue +23 -29
  116. package/lib/components/Modal/ModalContainer.vue +135 -133
  117. package/lib/components/Onboarding/EmailAuth.vue +66 -70
  118. package/lib/components/Onboarding/MagicCodeEntry.vue +88 -83
  119. package/lib/components/Pagination/QuestionReviewPagination.vue +3 -3
  120. package/lib/components/Pagination/TablePagination.vue +47 -44
  121. package/lib/components/PhonePerson/PhonePerson.vue +18 -18
  122. package/lib/components/PhonePerson/phonePerson.d.ts +1 -1
  123. package/lib/components/Quiz/FlagToggle.vue +45 -44
  124. package/lib/components/Quiz/GlobalMetricsToggle.vue +29 -28
  125. package/lib/components/Quiz/KeyboardShortcutsButton.vue +16 -23
  126. package/lib/components/Quiz/KeyboardShortcutsModal.vue +36 -37
  127. package/lib/components/Quiz/Question/BuildListChoicesContainer.vue +65 -65
  128. package/lib/components/Quiz/Question/ChoicesContainer.vue +5 -5
  129. package/lib/components/Quiz/Question/DropdownExplanation.vue +5 -5
  130. package/lib/components/Quiz/Question/Explanation.vue +6 -6
  131. package/lib/components/Quiz/Question/MPMCChoicesContainer.vue +17 -17
  132. package/lib/components/Quiz/Question/MPMCRadioGroup.vue +2 -2
  133. package/lib/components/Quiz/Question/MatrixChoicesContainer.vue +39 -39
  134. package/lib/components/Quiz/Question/MatrixRadioGroup.vue +6 -6
  135. package/lib/components/Quiz/Question/MobileMatrixChoicesContainer.vue +27 -28
  136. package/lib/components/Quiz/Question/MobileMatrixRadioGroup.vue +2 -2
  137. package/lib/components/Quiz/Question/PassageAndImage.vue +3 -3
  138. package/lib/components/Quiz/Question/PassageAndImageDropdown.vue +7 -7
  139. package/lib/components/Quiz/Question/Paywall.vue +2 -2
  140. package/lib/components/Quiz/Question/QuestionContext.vue +1 -1
  141. package/lib/components/Quiz/Question/StatsSummary.vue +2 -2
  142. package/lib/components/Quiz/Question/Summary.vue +11 -11
  143. package/lib/components/Quiz/Question.vue +90 -82
  144. package/lib/components/Quiz/QuizContainer.vue +1 -1
  145. package/lib/components/Quiz/QuizProgressBar.vue +23 -23
  146. package/lib/components/Quiz/question.d.ts +3 -3
  147. package/lib/components/Search/Pill.vue +16 -19
  148. package/lib/components/Search/Search.vue +52 -47
  149. package/lib/components/SidePanels/SidePanel.vue +168 -174
  150. package/lib/components/Tables/Table.vue +135 -122
  151. package/lib/components/Tables/TableActions.vue +81 -76
  152. package/lib/components/Tables/table.d.ts +1 -1
  153. package/lib/components/Tags/Tag.vue +49 -39
  154. package/lib/components/Toasts/Toast.vue +44 -42
  155. package/lib/components/Tooltips/OverflowTooltip.vue +39 -45
  156. package/lib/components/Tooltips/Tooltip.vue +69 -70
  157. package/lib/directives.ts +4 -4
  158. package/lib/utils.ts +13 -12
  159. package/package.json +27 -28
@@ -42,12 +42,12 @@
42
42
  </div>
43
43
  </div>
44
44
  <textarea
45
+ ref="textarea"
45
46
  v-dark="isDarkMode"
46
47
  :value="modelValue"
47
48
  :disabled="disabled"
48
49
  :placeholder="placeholder"
49
50
  :autofocus="autoFocus"
50
- :style="{ height, width }"
51
51
  class="uikit-textarea__textarea"
52
52
  :class="{
53
53
  'uikit-textarea__textarea--hover': hover,
@@ -60,42 +60,56 @@
60
60
  </div>
61
61
  </template>
62
62
 
63
- <script lang="ts">
64
- import { Component, Vue, Prop, Emit } from 'vue-facing-decorator'
63
+ <script setup lang="ts">
65
64
  import Icon from '../Icons/Icon.vue'
66
65
  import Tooltip from '../Tooltips/Tooltip.vue'
67
- import { dark } from '../../directives'
68
-
69
- @Component({
70
- components: {
71
- Icon,
72
- Tooltip,
73
- },
74
- directives: {
75
- dark,
76
- },
77
- })
78
- export default class Textarea extends Vue {
79
- @Prop() label?: string
80
- @Prop() placeholder?: string
81
- @Prop() center?: boolean
82
- @Prop() modelValue!: string
83
- @Prop() disabled?: boolean
84
- @Prop() autoFocus?: boolean
85
- @Prop({ default: '150px' }) height?: string
86
- @Prop({ default: '341px' }) width?: string
87
- @Prop({ default: false }) isDarkMode!: boolean
88
- @Prop({ default: false }) showIconAndTooltip!: boolean
89
- @Prop({ default: '' }) tooltipText!: string
90
-
91
- hover = false
92
- focus = false
93
- showTextAreaTooltip = false
94
-
95
- @Emit('update:modelValue')
96
- valueChange ($event: Event) {
97
- return ($event.target as HTMLInputElement).value
66
+ import { dark as vDark } from '../../directives'
67
+ import { onMounted, ref, useTemplateRef } from 'vue'
68
+
69
+ const {
70
+ label = '',
71
+ placeholder = '',
72
+ modelValue = null,
73
+ disabled = false,
74
+ autoFocus = false,
75
+ height = '150px',
76
+ width = '341px',
77
+ isDarkMode = false,
78
+ showIconAndTooltip = false,
79
+ tooltipText = '',
80
+ } = defineProps<{
81
+ label?: string
82
+ placeholder?: string
83
+ modelValue?: string | null
84
+ disabled?: boolean
85
+ autoFocus?: boolean
86
+ height?: string
87
+ width?: string
88
+ isDarkMode?: boolean
89
+ showIconAndTooltip?: boolean
90
+ tooltipText?: string
91
+ }>()
92
+
93
+ const emit = defineEmits<{
94
+ 'update:modelValue': [modelVal: string]
95
+ }>()
96
+
97
+ const hover = ref(false)
98
+ const focus = ref(false)
99
+ const showTextAreaTooltip = ref(false)
100
+
101
+ const textareaRef = useTemplateRef<HTMLElement>('textarea')
102
+
103
+ onMounted(() => {
104
+ if (textareaRef.value) {
105
+ textareaRef.value.style.width = width
106
+ textareaRef.value.style.height = height
98
107
  }
108
+ })
109
+
110
+ const valueChange = ($event: Event) => {
111
+ const val = ($event.target as HTMLInputElement).value
112
+ emit('update:modelValue', val)
99
113
  }
100
114
  </script>
101
115
 
@@ -223,4 +237,4 @@ export default class Textarea extends Vue {
223
237
  }
224
238
  }
225
239
  }
226
- </style>
240
+ </style>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="12px" height="8px" viewBox="0 0 12 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,12 +19,3 @@
12
19
  </svg>
13
20
  <!-- eslint-enable -->
14
21
  </template>
15
-
16
- <script lang="ts">
17
- import { Component, Vue, Prop } from 'vue-facing-decorator'
18
-
19
- @Component
20
- export default class IconAccordionArrow extends Vue {
21
- @Prop() title!: string
22
- }
23
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <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">
@@ -10,12 +17,3 @@
10
17
  </svg>
11
18
  <!-- eslint-enable -->
12
19
  </template>
13
-
14
- <script lang="ts">
15
- import { Vue, Component, Prop } from 'vue-facing-decorator'
16
-
17
- @Component
18
- export default class IconActivity extends Vue {
19
- @Prop() title!: string
20
- }
21
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -8,14 +15,3 @@
8
15
  </svg>
9
16
  <!-- eslint-enable -->
10
17
  </template>
11
-
12
- <script lang="ts">
13
- import { Component, Vue, Prop } from 'vue-facing-decorator'
14
-
15
- @Component({
16
- name: 'IconAdd',
17
- })
18
- export default class IconAdd extends Vue {
19
- @Prop() title!: string
20
- }
21
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -11,12 +18,3 @@
11
18
  </svg>
12
19
  <!-- eslint-enable -->
13
20
  </template>
14
-
15
- <script lang="ts">
16
- import { Component, Vue, Prop } from 'vue-facing-decorator'
17
-
18
- @Component
19
- export default class IconAddCircle extends Vue {
20
- @Prop() title!: string
21
- }
22
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="13px" height="10px" viewBox="0 0 13 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,12 +17,3 @@
10
17
  </svg>
11
18
  <!-- eslint-enable -->
12
19
  </template>
13
-
14
- <script lang="ts">
15
- import { Component, Vue, Prop } from 'vue-facing-decorator'
16
-
17
- @Component
18
- export default class IconArrow extends Vue {
19
- @Prop() title!: string
20
- }
21
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <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">
@@ -12,12 +19,3 @@
12
19
  </svg>
13
20
  <!-- eslint-enable -->
14
21
  </template>
15
-
16
- <script lang="ts">
17
- import { Vue, Component, Prop } from 'vue-facing-decorator'
18
-
19
- @Component
20
- export default class IconBarChart extends Vue {
21
- @Prop() title!: string
22
- }
23
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="25px" height="24px" viewBox="0 0 25 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -8,12 +15,3 @@
8
15
  </svg>
9
16
  <!-- eslint-enable -->
10
17
  </template>
11
-
12
- <script lang="ts">
13
- import { Vue, Component, Prop } from 'vue-facing-decorator'
14
-
15
- @Component
16
- export default class IconCalendar extends Vue {
17
- @Prop() title!: string
18
- }
19
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -6,12 +13,3 @@
6
13
  </svg>
7
14
  <!-- eslint-enable -->
8
15
  </template>
9
-
10
- <script lang="ts">
11
- import { Vue, Component, Prop } from 'vue-facing-decorator'
12
-
13
- @Component
14
- export default class IconCalendarPicker extends Vue {
15
- @Prop() title!: string
16
- }
17
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -7,12 +14,3 @@
7
14
  </svg>
8
15
  <!-- eslint-enable -->
9
16
  </template>
10
-
11
- <script lang="ts">
12
- import { Component, Vue, Prop } from 'vue-facing-decorator'
13
-
14
- @Component
15
- export default class IconChat extends Vue {
16
- @Prop() title!: string
17
- }
18
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="20px" height="17px" viewBox="0 0 20 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,12 +17,3 @@
10
17
  </svg>
11
18
  <!-- eslint-enable -->
12
19
  </template>
13
-
14
- <script lang="ts">
15
- import { Component, Vue, Prop } from 'vue-facing-decorator'
16
-
17
- @Component
18
- export default class IconCheck extends Vue {
19
- @Prop() title!: string
20
- }
21
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,12 +19,3 @@
12
19
  </svg>
13
20
  <!-- eslint-enable -->
14
21
  </template>
15
-
16
- <script lang="ts">
17
- import { Component, Vue, Prop } from 'vue-facing-decorator'
18
-
19
- @Component
20
- export default class IconClose extends Vue {
21
- @Prop() title!: string
22
- }
23
- </script>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
-
2
+
3
3
  const { title } = defineProps<{
4
4
  title: string
5
5
  }>()
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="21px" height="22px" viewBox="0 0 21 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -8,12 +15,3 @@
8
15
  </svg>
9
16
  <!-- eslint-enable -->
10
17
  </template>
11
-
12
- <script lang="ts">
13
- import { Component, Vue, Prop } from 'vue-facing-decorator'
14
-
15
- @Component
16
- export default class IconCorrect extends Vue {
17
- @Prop() title!: string
18
- }
19
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,14 +17,3 @@
10
17
  </svg>
11
18
  <!-- eslint-enable -->
12
19
  </template>
13
-
14
- <script lang="ts">
15
- import { Component, Vue, Prop } from 'vue-facing-decorator'
16
-
17
- @Component({
18
- name: 'IconEdit',
19
- })
20
- export default class IconEdit extends Vue {
21
- @Prop() title!: string
22
- }
23
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="25px" height="24px" viewBox="0 0 25 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -23,12 +30,3 @@
23
30
  </svg>
24
31
  <!-- eslint-enable -->
25
32
  </template>
26
-
27
- <script lang="ts">
28
- import { Vue, Component, Prop } from 'vue-facing-decorator'
29
-
30
- @Component
31
- export default class IconExam extends Vue {
32
- @Prop() title!: string
33
- }
34
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -19,12 +26,3 @@
19
26
  </svg>
20
27
  <!-- eslint-enable -->
21
28
  </template>
22
-
23
- <script lang="ts">
24
- import { Vue, Component, Prop } from 'vue-facing-decorator'
25
-
26
- @Component
27
- export default class IconExternalLink extends Vue {
28
- @Prop() title!: string
29
- }
30
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="21" height="21" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -8,12 +15,3 @@
8
15
  </svg>
9
16
  <!-- eslint-enable -->
10
17
  </template>
11
-
12
- <script lang="ts">
13
- import { Component, Prop, Vue } from 'vue-facing-decorator'
14
-
15
- @Component
16
- export default class IconEyeHide extends Vue {
17
- @Prop() title!: string
18
- }
19
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="21" height="21" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -6,12 +13,3 @@
6
13
  </svg>
7
14
  <!-- eslint-enable -->
8
15
  </template>
9
-
10
- <script lang="ts">
11
- import { Component, Vue, Prop } from 'vue-facing-decorator'
12
-
13
- @Component
14
- export default class IconEyeShow extends Vue {
15
- @Prop() title!: string
16
- }
17
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -8,12 +15,3 @@
8
15
  </svg>
9
16
  <!-- eslint-enable -->
10
17
  </template>
11
-
12
- <script lang="ts">
13
- import { Component, Prop, Vue } from 'vue-facing-decorator'
14
-
15
- @Component
16
- export default class IconFilter extends Vue {
17
- @Prop() title!: string
18
- }
19
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -9,12 +16,3 @@
9
16
  </svg>
10
17
  <!-- eslint-enable -->
11
18
  </template>
12
-
13
- <script lang="ts">
14
- import { Component, Prop, Vue } from 'vue-facing-decorator'
15
-
16
- @Component
17
- export default class IconFilterActive extends Vue {
18
- @Prop() title!: string
19
- }
20
- </script>
@@ -1,3 +1,10 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -14,12 +21,3 @@
14
21
  </svg>
15
22
  <!-- eslint-enable -->
16
23
  </template>
17
-
18
- <script lang="ts">
19
- import { Component, Vue, Prop } from 'vue-facing-decorator'
20
-
21
- @Component
22
- export default class IconFlag extends Vue {
23
- @Prop() title!: string
24
- }
25
- </script>
@@ -1,17 +1,16 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
1
8
  <template>
2
9
  <!-- eslint-disable -->
3
10
  <svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <title>{{ title }}</title>
4
12
  <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
13
  </svg>
6
14
 
7
15
  <!-- eslint-enable -->
8
16
  </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>
@@ -1,3 +1,11 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title, secondaryColor = 'currentColor' } = defineProps<{
4
+ title: string
5
+ secondaryColor?: string
6
+ }>()
7
+ </script>
8
+
1
9
  <template>
2
10
  <!-- eslint-disable -->
3
11
  <svg width="21px" height="22px" viewBox="0 0 21 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,13 +20,3 @@
12
20
  </svg>
13
21
  <!-- eslint-enable -->
14
22
  </template>
15
-
16
- <script lang="ts">
17
- import { Component, Vue, Prop } from 'vue-facing-decorator'
18
-
19
- @Component
20
- export default class IconFlagFeedback extends Vue {
21
- @Prop() title!: string
22
- @Prop({ default: 'currentColor' }) secondaryColor!: string
23
- }
24
- </script>