@pocketprep/ui-kit 3.5.0 → 3.5.2

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 (85) hide show
  1. package/README.md +2 -2
  2. package/dist/@pocketprep/ui-kit.css +1 -0
  3. package/dist/@pocketprep/ui-kit.js +14335 -14870
  4. package/dist/@pocketprep/ui-kit.js.map +1 -1
  5. package/dist/@pocketprep/ui-kit.umd.cjs +11 -11
  6. package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
  7. package/eslint.config.ts +111 -0
  8. package/lib/components/Banners/Banner.vue +2 -2
  9. package/lib/components/Bundles/BundleList.vue +1 -1
  10. package/lib/components/Bundles/BundleSearch.vue +123 -121
  11. package/lib/components/Bundles/PremiumPill.vue +2 -2
  12. package/lib/components/Buttons/Button.vue +19 -18
  13. package/lib/components/Buttons/Link.vue +9 -8
  14. package/lib/components/Buttons/Tab.vue +4 -3
  15. package/lib/components/Calendar/Calendar.vue +14 -2
  16. package/lib/components/Charts/Bar.vue +3 -3
  17. package/lib/components/Charts/Pie.vue +4 -4
  18. package/lib/components/Controls/SegmentControl.vue +8 -7
  19. package/lib/components/Controls/Slider.vue +2 -3
  20. package/lib/components/Controls/ToggleSwitch.vue +3 -2
  21. package/lib/components/EmptyStates/EmptyState.vue +3 -2
  22. package/lib/components/Exams/ExamCard.vue +3 -3
  23. package/lib/components/Exams/ExamMenuCard.vue +2 -2
  24. package/lib/components/Filters/FilterDropdown.vue +2 -2
  25. package/lib/components/Filters/FilterOptions.vue +2 -2
  26. package/lib/components/Forms/Checkbox.vue +2 -2
  27. package/lib/components/Forms/CheckboxOption.vue +2 -2
  28. package/lib/components/Forms/Errors.vue +2 -2
  29. package/lib/components/Forms/Input.vue +2 -2
  30. package/lib/components/Forms/Radio.vue +37 -39
  31. package/lib/components/Forms/RadioButton.vue +1 -1
  32. package/lib/components/Forms/Select.vue +7 -6
  33. package/lib/components/Forms/Textarea.vue +2 -2
  34. package/lib/components/Icons/Icon.vue +1 -0
  35. package/lib/components/Icons/IconEdit.vue +4 -2
  36. package/lib/components/Icons/IconFullViewActive.vue +1 -1
  37. package/lib/components/Icons/IconLoading2.vue +1 -3
  38. package/lib/components/Loaders/SkeletonLoader.vue +2 -2
  39. package/lib/components/Messaging/InfoMessage.vue +2 -2
  40. package/lib/components/Modal/Modal.vue +2 -2
  41. package/lib/components/Modal/ModalContainer.vue +2 -2
  42. package/lib/components/Onboarding/EmailAuth.vue +5 -5
  43. package/lib/components/Onboarding/MagicCodeEntry.vue +3 -4
  44. package/lib/components/Pagination/QuestionReviewPagination.vue +4 -4
  45. package/lib/components/Pagination/TablePagination.vue +2 -2
  46. package/lib/components/Quiz/FlagToggle.vue +2 -2
  47. package/lib/components/Quiz/GlobalMetricsToggle.vue +3 -2
  48. package/lib/components/Quiz/KeyboardShortcutsButton.vue +1 -1
  49. package/lib/components/Quiz/KeyboardShortcutsModal.vue +1 -1
  50. package/lib/components/Quiz/Question/ChoicesContainer.vue +4 -3
  51. package/lib/components/Quiz/Question/DropdownExplanation.vue +2 -2
  52. package/lib/components/Quiz/Question/Explanation.vue +2 -2
  53. package/lib/components/Quiz/Question/MatrixChoicesContainer.vue +12 -17
  54. package/lib/components/Quiz/Question/MatrixRadioGroup.vue +2 -2
  55. package/lib/components/Quiz/Question/MobileMatrixChoicesContainer.vue +19 -26
  56. package/lib/components/Quiz/Question/MobileMatrixRadioGroup.vue +7 -5
  57. package/lib/components/Quiz/Question/PassageAndImage.vue +2 -2
  58. package/lib/components/Quiz/Question/PassageAndImageDropdown.vue +7 -6
  59. package/lib/components/Quiz/Question/Paywall.vue +2 -2
  60. package/lib/components/Quiz/Question/QuestionContext.vue +2 -3
  61. package/lib/components/Quiz/Question/StatsSummary.vue +2 -2
  62. package/lib/components/Quiz/Question/Summary.vue +2 -2
  63. package/lib/components/Quiz/Question.vue +29 -28
  64. package/lib/components/Quiz/QuizContainer.vue +31 -37
  65. package/lib/components/Quiz/QuizProgress.vue +73 -77
  66. package/lib/components/Quiz/QuizProgressBar.vue +3 -2
  67. package/lib/components/Search/Pill.vue +2 -2
  68. package/lib/components/Search/Search.vue +2 -2
  69. package/lib/components/SidePanels/SidePanel.vue +8 -3
  70. package/lib/components/Tables/Table.vue +4 -3
  71. package/lib/components/Tables/TableActions.vue +3 -3
  72. package/lib/components/Tags/Tag.vue +2 -2
  73. package/lib/components/Toasts/Toast.vue +5 -3
  74. package/lib/components/Tooltips/OverflowTooltip.vue +2 -2
  75. package/lib/components/Tooltips/Tooltip.vue +2 -2
  76. package/lib/directives.ts +1 -1
  77. package/lib/pocketprep-export.module.scss +3 -2
  78. package/lib/pocketprep.scss +2 -2
  79. package/lib/styles/_breakpoints.scss +6 -12
  80. package/lib/styles/_colors.scss +0 -1
  81. package/package.json +36 -27
  82. package/stylelint.config.js +38 -0
  83. package/.eslintrc.cjs +0 -74
  84. package/dist/style.css +0 -1
  85. package/stylelint.config.cjs +0 -22
@@ -23,6 +23,9 @@
23
23
  v-if="isShowingCalendar"
24
24
  v-dark="isDarkMode"
25
25
  class="uikit-calendar__clear-date-icon"
26
+ :class="{
27
+ 'uikit-calendar__clear-date-icon--no-label': !label,
28
+ }"
26
29
  @click.stop.prevent="clearCalendar"
27
30
  >
28
31
  <Tooltip
@@ -39,6 +42,7 @@
39
42
  class="uikit-calendar__calendar-icon"
40
43
  :class="{
41
44
  'uikit-calendar__calendar-icon--active': !disabled && (hover || isShowingCalendar),
45
+ 'uikit-calendar__calendar-icon--no-label': !label,
42
46
  }"
43
47
  >
44
48
  <Icon type="calendarPicker" />
@@ -181,8 +185,8 @@ export default class Calendar extends Vue {
181
185
  </script>
182
186
 
183
187
  <style lang="scss">
184
- @import '../../styles/breakpoints';
185
- @import '../../styles/colors';
188
+ @use '@/styles/breakpoints' as *;
189
+ @use '@/styles/colors' as *;
186
190
 
187
191
  .uikit-calendar {
188
192
  position: relative;
@@ -203,6 +207,10 @@ export default class Calendar extends Vue {
203
207
  color: $steel;
204
208
  outline: none;
205
209
 
210
+ &--no-label {
211
+ top: 8px;
212
+ }
213
+
206
214
  &--dark {
207
215
  color: $pewter;
208
216
  }
@@ -238,6 +246,10 @@ export default class Calendar extends Vue {
238
246
  color: $steel;
239
247
  outline: none;
240
248
 
249
+ &--no-label {
250
+ top: 8px;
251
+ }
252
+
241
253
  &--dark {
242
254
  color: $pewter;
243
255
  }
@@ -50,7 +50,7 @@ type TCustomHighcharts = typeof Highcharts & {
50
50
  prototype: Record<string, unknown>
51
51
  }
52
52
  }
53
- };
53
+ }
54
54
 
55
55
  Accessibility(Highcharts);
56
56
  (function (H) {
@@ -286,7 +286,7 @@ export default class Bar extends Vue {
286
286
  borderRadiusTopRight: 8,
287
287
  }
288
288
  chartOptions.yAxis = {
289
- ...(chartOptions.yAxis || {}),
289
+ ...(chartOptions.yAxis as Highcharts.YAxisOptions || {}),
290
290
  labels: {
291
291
  ...((chartOptions.yAxis as Highcharts.YAxisOptions)?.labels),
292
292
  formatter: function () {
@@ -309,7 +309,7 @@ export default class Bar extends Vue {
309
309
  </script>
310
310
 
311
311
  <style lang="scss">
312
- @import '../../styles/colors';
312
+ @use '@/styles/colors' as *;
313
313
 
314
314
  .uikit-bar {
315
315
  max-height: 100%;
@@ -25,8 +25,8 @@ export default class Pie extends Vue {
25
25
  chart: {
26
26
  plotShadow: false,
27
27
  type: 'pie',
28
- margin: [ 0,0,0,0 ],
29
- spacing: [ 0,0,0,0 ],
28
+ margin: [ 0, 0, 0, 0 ],
29
+ spacing: [ 0, 0, 0, 0 ],
30
30
  },
31
31
  title: undefined,
32
32
  tooltip: {
@@ -76,8 +76,8 @@ export default class Pie extends Vue {
76
76
  </script>
77
77
 
78
78
  <style lang="scss">
79
- @import '../../styles/colors';
80
- @import '../../styles/breakpoints';
79
+ @use '@/styles/breakpoints' as *;
80
+ @use '@/styles/colors' as *;
81
81
 
82
82
  .uikit-pie {
83
83
  max-height: 100%;
@@ -56,7 +56,8 @@ export default class SegmentControl extends Vue {
56
56
  </script>
57
57
 
58
58
  <style lang="scss">
59
- @import '../../styles/colors';
59
+ @use 'sass:color';
60
+ @use '@/styles/colors' as *;
60
61
 
61
62
  .uikit-segment-control {
62
63
  position: relative;
@@ -64,8 +65,8 @@ export default class SegmentControl extends Vue {
64
65
  outline: none;
65
66
  cursor: pointer;
66
67
  border-radius: 4px;
67
- border: 1px solid change-color($brand-blue, $alpha: 0.45);
68
- color: change-color($brand-blue, $alpha: 0.45);
68
+ border: 1px solid color.change($brand-blue, $alpha: 0.45);
69
+ color: color.change($brand-blue, $alpha: 0.45);
69
70
  background-color: white;
70
71
  font-size: 12px;
71
72
  font-weight: 600;
@@ -104,15 +105,15 @@ export default class SegmentControl extends Vue {
104
105
 
105
106
  &:not(&--active) {
106
107
  &:hover {
107
- background-color: change-color($sky-blue, $alpha: 0.45);
108
- color: change-color($brand-blue, $alpha: 0.75);
108
+ background-color: color.change($sky-blue, $alpha: 0.45);
109
+ color: color.change($brand-blue, $alpha: 0.75);
109
110
 
110
111
  &:first-child {
111
- box-shadow: 4px 0 0 0 change-color($sky-blue, $alpha: 0.45);
112
+ box-shadow: 4px 0 0 0 color.change($sky-blue, $alpha: 0.45);
112
113
  }
113
114
 
114
115
  &:last-child {
115
- box-shadow: -4px 0 0 0 change-color($sky-blue, $alpha: 0.45);
116
+ box-shadow: -4px 0 0 0 color.change($sky-blue, $alpha: 0.45);
116
117
  }
117
118
  }
118
119
  }
@@ -89,7 +89,7 @@ export default class Slider extends Vue {
89
89
  }
90
90
  </script>
91
91
  <style lang="scss">
92
- @import '../../styles/colors';
92
+ @use '@/styles/colors' as *;
93
93
 
94
94
  .uikit-slider {
95
95
  display: flex;
@@ -197,7 +197,6 @@ export default class Slider extends Vue {
197
197
  &__slide-input {
198
198
  height: 29px;
199
199
  width: 100%;
200
- -webkit-appearance: none;
201
200
  appearance: none;
202
201
  background: transparent;
203
202
 
@@ -267,7 +266,7 @@ export default class Slider extends Vue {
267
266
  box-sizing: border-box;
268
267
  background: $white;
269
268
  cursor: pointer;
270
- -webkit-appearance: none;
269
+ appearance: none;
271
270
  position: relative;
272
271
  z-index: 1;
273
272
  }
@@ -50,7 +50,8 @@ export default class ToggleSwitch extends Vue {
50
50
  </script>
51
51
 
52
52
  <style lang="scss">
53
- @import '../../styles/colors';
53
+ @use 'sass:color';
54
+ @use '@/styles/colors' as *;
54
55
 
55
56
  .uikit-toggle-switch {
56
57
  background-color: $steel;
@@ -104,7 +105,7 @@ export default class ToggleSwitch extends Vue {
104
105
  background-color: $brand-blue;
105
106
 
106
107
  &:hover {
107
- background-color: darken($brand-blue, 10%);
108
+ background-color: color.adjust($brand-blue, $lightness: -10%);
108
109
  }
109
110
 
110
111
  &--dark {
@@ -48,6 +48,7 @@ import Blob from '../Blobs/Blob.vue'
48
48
  import { dark } from '../../directives'
49
49
 
50
50
  @Component({
51
+ name: 'EmptyState',
51
52
  components: {
52
53
  Icon,
53
54
  Blob,
@@ -117,8 +118,8 @@ export default class EmptyState extends Vue {
117
118
  </script>
118
119
 
119
120
  <style lang="scss">
120
- @import '../../styles/colors';
121
- @import '../../styles/breakpoints';
121
+ @use '@/styles/breakpoints' as *;
122
+ @use '@/styles/colors' as *;
122
123
 
123
124
  .uikit-empty-state {
124
125
  text-align: center;
@@ -110,8 +110,8 @@ export default class ExamCard extends Vue {
110
110
  </script>
111
111
 
112
112
  <style lang="scss">
113
- @import '../../styles/colors';
114
- @import '../../styles/breakpoints';
113
+ @use '@/styles/breakpoints' as *;
114
+ @use '@/styles/colors' as *;
115
115
 
116
116
  .uikit-exam-card {
117
117
  position: relative;
@@ -135,7 +135,7 @@ export default class ExamCard extends Vue {
135
135
  width: 340px;
136
136
  }
137
137
 
138
- &:not(&--cancel):not(&--disable-interaction) {
138
+ &:not(&--cancel, &--disable-interaction) {
139
139
  cursor: pointer;
140
140
 
141
141
  &:hover,
@@ -76,8 +76,8 @@ export default class ExamMenuCard extends Vue {
76
76
  </script>
77
77
 
78
78
  <style lang="scss">
79
- @import '../../styles/colors';
80
- @import '../../styles/breakpoints';
79
+ @use '@/styles/breakpoints' as *;
80
+ @use '@/styles/colors' as *;
81
81
 
82
82
  .uikit-exam-menu-card {
83
83
  display: flex;
@@ -152,8 +152,8 @@ export default class FilterDropdown extends Vue {
152
152
  </script>
153
153
 
154
154
  <style lang="scss">
155
- @import '../../styles/colors';
156
- @import '../../styles/breakpoints';
155
+ @use '@/styles/breakpoints' as *;
156
+ @use '@/styles/colors' as *;
157
157
 
158
158
  .uikit-filter {
159
159
  position: relative;
@@ -200,8 +200,8 @@ export default class FilterOptions extends Vue {
200
200
  </script>
201
201
 
202
202
  <style lang="scss">
203
- @import '../../styles/colors';
204
- @import '../../styles/breakpoints';
203
+ @use '@/styles/breakpoints' as *;
204
+ @use '@/styles/colors' as *;
205
205
 
206
206
  .filter-options {
207
207
  background: $white;
@@ -73,8 +73,8 @@ export default class Checkbox extends Vue {
73
73
  </script>
74
74
 
75
75
  <style lang="scss">
76
- @import '../../styles/colors';
77
- @import '../../styles/breakpoints';
76
+ @use '@/styles/breakpoints' as *;
77
+ @use '@/styles/colors' as *;
78
78
 
79
79
  .uikit-checkbox {
80
80
  background: $white;
@@ -70,8 +70,8 @@ export default class CheckboxOption extends Vue {
70
70
  </script>
71
71
 
72
72
  <style lang="scss">
73
- @import '../../styles/breakpoints';
74
- @import '../../styles/colors';
73
+ @use '@/styles/breakpoints' as *;
74
+ @use '@/styles/colors' as *;
75
75
 
76
76
  .uikit-checkbox-option {
77
77
  font-size: 15px;
@@ -55,8 +55,8 @@ export default class Errors extends Vue {
55
55
  </script>
56
56
 
57
57
  <style lang="scss">
58
- @import '../../styles/colors';
59
- @import '../../styles/breakpoints';
58
+ @use '@/styles/breakpoints' as *;
59
+ @use '@/styles/colors' as *;
60
60
 
61
61
  .uikit-errors {
62
62
  border: 1px solid rgba($red-pegasus, 0.5);
@@ -146,8 +146,8 @@ export default class Input extends Vue {
146
146
  </script>
147
147
 
148
148
  <style lang="scss">
149
- @import '../../styles/colors';
150
- @import '../../styles/breakpoints';
149
+ @use '@/styles/breakpoints' as *;
150
+ @use '@/styles/colors' as *;
151
151
 
152
152
  .uikit-input {
153
153
  &__input {
@@ -35,7 +35,7 @@
35
35
  'uikit-radio__item--has-helper-text': !!(item.helperText)
36
36
  }"
37
37
  role="radio"
38
- :aria-checked="modelValue && item.value === modelValue.value"
38
+ :aria-checked="!!modelValue && item.value === modelValue.value"
39
39
  :aria-label="`${item.label}${ item.helperText ? ` ${item.helperText}` : '' }`"
40
40
  @click="!(disabled || item.disabled ) && selectItem(item)"
41
41
  @keydown.enter.space="keyPressedItem"
@@ -66,59 +66,57 @@
66
66
  </div>
67
67
  </template>
68
68
 
69
- <script lang="ts">
70
- import { Component, Vue, Prop, Emit } from 'vue-facing-decorator'
71
- import { dark } from '../../directives'
69
+ <script setup lang="ts">
70
+ import { ref } from 'vue'
71
+ import { dark as vDark } from '../../directives'
72
72
  import RadioButton from './RadioButton.vue'
73
73
 
74
74
  interface IItem {
75
- value: string
76
- label: string
75
+ value: string | number
76
+ label?: string
77
77
  helperText?: string
78
78
  disabled?: boolean
79
79
  }
80
80
 
81
- @Component({
82
- components: {
83
- RadioButton,
84
- },
85
- directives: {
86
- dark,
87
- },
81
+ const props = withDefaults(defineProps<{
82
+ label?: string
83
+ data: IItem[]
84
+ center?: boolean
85
+ modelValue: IItem | null
86
+ disabled?: boolean
87
+ isDarkMode?: boolean
88
+ labelledBy?: string | false
89
+ }>(), {
90
+ label: '',
91
+ isDarkMode: false,
92
+ labelledBy: false,
88
93
  })
89
- export default class Radio extends Vue {
90
- @Prop() label?: string
91
- @Prop() data!: IItem[]
92
- @Prop() center?: boolean
93
- @Prop() modelValue!: IItem
94
- @Prop() disabled?: boolean
95
- @Prop({ default: false }) isDarkMode!: boolean
96
- @Prop({ default: false }) labelledBy!: string | false
97
-
98
- uid = Math.floor(Math.random() * 1e9)
99
- hover = false
100
- focus = false
101
94
 
102
- @Emit('update:modelValue')
103
- selectItem (item: IItem) {
104
- return item
105
- }
95
+ const emit = defineEmits<{
96
+ 'update:modelValue': [ item: IItem ]
97
+ }>()
106
98
 
107
- keyPressedItem (e: KeyboardEvent) {
108
- // select option on enter or space
109
- if (e.key === 'Enter' || e.key === ' ') {
110
- e.preventDefault()
111
- const itemValue = (e.target as HTMLElement).getAttribute('data-value')
112
- const item = this.data.find(i => String(i.value) === itemValue)
113
- item && this.selectItem(item)
114
- }
99
+ const uid = Math.floor(Math.random() * 1e9)
100
+ const hover = ref(false)
101
+
102
+ const selectItem = (item: IItem) => {
103
+ emit('update:modelValue', item)
104
+ }
105
+
106
+ const keyPressedItem = (e: KeyboardEvent) => {
107
+ // select option on enter or space
108
+ if (e.key === 'Enter' || e.key === ' ') {
109
+ e.preventDefault()
110
+ const itemValue = (e.target as HTMLElement).getAttribute('data-value')
111
+ const item = props.data.find(i => String(i.value) === itemValue)
112
+ item && selectItem(item)
115
113
  }
116
114
  }
117
115
  </script>
118
116
 
119
117
  <style lang="scss">
120
- @import '../../styles/colors';
121
- @import '../../styles/breakpoints';
118
+ @use '@/styles/breakpoints' as *;
119
+ @use '@/styles/colors' as *;
122
120
 
123
121
  .uikit-radio {
124
122
  &__label {
@@ -23,7 +23,7 @@ defineProps<{
23
23
  </template>
24
24
 
25
25
  <style lang="scss" scoped>
26
- @import '../../styles/colors';
26
+ @use '@/styles/colors' as *;
27
27
 
28
28
  .uikit-radio-btn {
29
29
  width: 18px;
@@ -163,6 +163,7 @@ interface IItem {
163
163
  * @see [Designs for Inputs](https://marvelapp.com/adf8ab3/screen/70331421)
164
164
  */
165
165
  @Component({
166
+ name: 'PocketSelect',
166
167
  components: {
167
168
  Icon,
168
169
  },
@@ -447,8 +448,8 @@ export default class Select extends Vue {
447
448
  </script>
448
449
 
449
450
  <style lang="scss">
450
- @import '../../styles/colors';
451
- @import '../../styles/breakpoints';
451
+ @use '@/styles/breakpoints' as *;
452
+ @use '@/styles/colors' as *;
452
453
 
453
454
  .uikit-select {
454
455
  position: relative;
@@ -595,13 +596,13 @@ export default class Select extends Vue {
595
596
  margin: 4px 0 0 0;
596
597
 
597
598
  &--dark {
598
- &--hover {
599
- background-color: $charcoal;
600
- }
601
-
602
599
  border-color: $pewter;
603
600
  color: $fog;
604
601
  caret-color: $banana-bread;
602
+
603
+ &--hover {
604
+ background-color: $charcoal;
605
+ }
605
606
  }
606
607
  }
607
608
 
@@ -100,8 +100,8 @@ export default class Textarea extends Vue {
100
100
  </script>
101
101
 
102
102
  <style lang="scss">
103
- @import '../../styles/colors';
104
- @import '../../styles/breakpoints';
103
+ @use '@/styles/breakpoints' as *;
104
+ @use '@/styles/colors' as *;
105
105
 
106
106
  .uikit-textarea {
107
107
  &__container {
@@ -148,6 +148,7 @@ import IconPresent from './IconPresent.vue'
148
148
  import IconLink from './IconLink.vue'
149
149
 
150
150
  @Component({
151
+ name: 'Icon',
151
152
  components: {
152
153
  IconAdd,
153
154
  IconEdit,
@@ -14,8 +14,10 @@
14
14
  <script lang="ts">
15
15
  import { Component, Vue, Prop } from 'vue-facing-decorator'
16
16
 
17
- @Component
17
+ @Component({
18
+ name: 'IconEdit',
19
+ })
18
20
  export default class IconEdit extends Vue {
19
21
  @Prop() title!: string
20
22
  }
21
- </script>
23
+ </script>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <!-- eslint-disable -->
3
3
  <svg width="28px" height="20px" viewBox="0 0 28 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4
- <title>icon/full view toggle active</title>
4
+ <title>{{ title }}</title>
5
5
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
6
  <g transform="translate(-50.000000, -9.000000)">
7
7
  <g transform="translate(52.000000, 10.500000)">
@@ -15,7 +15,7 @@ export default class IconLoading2 extends Vue {
15
15
  </script>
16
16
 
17
17
  <style lang="scss">
18
- @import '../../styles/colors';
18
+ @use '@/styles/colors' as *;
19
19
 
20
20
  .uikit-loading {
21
21
  height: 100%;
@@ -40,12 +40,10 @@ export default class IconLoading2 extends Vue {
40
40
 
41
41
  @keyframes spin {
42
42
  from {
43
- -webkit-transform: rotate(0deg);
44
43
  transform: rotate(0deg);
45
44
  }
46
45
 
47
46
  to {
48
- -webkit-transform: rotate(359deg);
49
47
  transform: rotate(359deg);
50
48
  }
51
49
  }
@@ -12,8 +12,8 @@ export default class SkeletonLoader extends Vue {}
12
12
  </script>
13
13
 
14
14
  <style lang="scss" scoped>
15
- @import '../../styles/breakpoints';
16
- @import '../../styles/colors';
15
+ @use '@/styles/breakpoints' as *;
16
+ @use '@/styles/colors' as *;
17
17
 
18
18
  .uikit-skeleton-loader {
19
19
  // Using width and height of parent
@@ -14,8 +14,8 @@ defineProps<{
14
14
  </template>
15
15
 
16
16
  <style lang="scss" scoped>
17
- @import '../../styles/breakpoints';
18
- @import '../../styles/colors';
17
+ @use '@/styles/breakpoints' as *;
18
+ @use '@/styles/colors' as *;
19
19
 
20
20
  .info-message {
21
21
  padding: 11px 16px;
@@ -51,8 +51,8 @@ export default class Modal extends Vue {
51
51
  </script>
52
52
 
53
53
  <style lang="scss">
54
- @import '../../styles/colors';
55
- @import '../../styles/breakpoints';
54
+ @use '@/styles/breakpoints' as *;
55
+ @use '@/styles/colors' as *;
56
56
 
57
57
  .uikit-modal {
58
58
  border-radius: 12px;
@@ -163,8 +163,8 @@ export default class ModalContainer extends Vue {
163
163
  </script>
164
164
 
165
165
  <style lang="scss">
166
- @import '../../styles/colors';
167
- @import '../../styles/breakpoints';
166
+ @use '@/styles/breakpoints' as *;
167
+ @use '@/styles/colors' as *;
168
168
 
169
169
  .uikit-modal-container {
170
170
  position: absolute;
@@ -84,7 +84,7 @@ export default class EmailAuth extends Vue {
84
84
  }
85
85
  }
86
86
 
87
- async submitSignIn () {
87
+ submitSignIn () {
88
88
  this.isLoading = true
89
89
  this.errorMessage = ''
90
90
 
@@ -99,7 +99,7 @@ export default class EmailAuth extends Vue {
99
99
  this.isLoading = false
100
100
  }
101
101
 
102
- async resendEmail () {
102
+ resendEmail () {
103
103
  this.errorMessage = ''
104
104
  this.isResending = true
105
105
  this.emitResend({ email: this.email })
@@ -107,7 +107,7 @@ export default class EmailAuth extends Vue {
107
107
  }
108
108
 
109
109
  @Emit('submit')
110
- emitSubmit (results: { email: string; code: string}) {
110
+ emitSubmit (results: { email: string; code: string }) {
111
111
  return results
112
112
  }
113
113
 
@@ -124,8 +124,8 @@ export default class EmailAuth extends Vue {
124
124
  </script>
125
125
 
126
126
  <style lang="scss">
127
- @import '../../styles/colors';
128
- @import '../../styles/breakpoints';
127
+ @use '@/styles/breakpoints' as *;
128
+ @use '@/styles/colors' as *;
129
129
 
130
130
  .uikit-email-auth {
131
131
  &__form {
@@ -42,8 +42,8 @@ export default class MagicCodeEntry extends Vue {
42
42
  mounted () {
43
43
  // Ensure proper letter spacing for magic code in case of a11y browser extension overrides
44
44
  setTimeout(() => {
45
- const codeInputEl = document.querySelector('.uikit-magic-code__code-input') as HTMLElement | null
46
- if (codeInputEl) {
45
+ const codeInputEl = document.querySelector('.uikit-magic-code__code-input')
46
+ if (codeInputEl instanceof HTMLElement) {
47
47
  codeInputEl.style.letterSpacing = '35.5px'
48
48
  }
49
49
  }, 500)
@@ -127,7 +127,7 @@ export default class MagicCodeEntry extends Vue {
127
127
  </script>
128
128
 
129
129
  <style lang="scss">
130
- @import '../../styles/colors';
130
+ @use '@/styles/colors' as *;
131
131
 
132
132
  .uikit-magic-code {
133
133
  position: relative;
@@ -184,7 +184,6 @@ export default class MagicCodeEntry extends Vue {
184
184
  appearance: none;
185
185
 
186
186
  &::selection {
187
- color: none;
188
187
  background: none;
189
188
  }
190
189
  }