@pocketprep/ui-kit 3.5.13 → 3.5.15

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.
@@ -17,7 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script lang="ts">
20
- import { Vue, Component, Prop, Emit } from 'vue-facing-decorator'
20
+ import { Vue, Component, Prop } from 'vue-facing-decorator'
21
21
  import { dark } from '../../directives'
22
22
 
23
23
  type TLinkType = 'tertiary' | 'tertiary-red' | 'tertiary-small'
@@ -38,12 +38,16 @@ export default class Link extends Vue {
38
38
  @Prop({ default: false }) readonly hasIcon!: boolean
39
39
  @Prop({ default: false }) readonly isDarkMode!: boolean
40
40
 
41
- @Emit('click')
42
41
  clicked (event: MouseEvent) {
42
+ if (this.disabled) {
43
+ event.preventDefault()
44
+ event.stopImmediatePropagation()
45
+ return
46
+ }
43
47
  if (this.href === '#') {
44
48
  event.preventDefault()
45
49
  }
46
- return event
50
+ this.$emit('click', event)
47
51
  }
48
52
  }
49
53
  </script>
package/lib/utils.ts CHANGED
@@ -64,6 +64,13 @@ export const studyModes = {
64
64
  iconColor: BrandColors.caramel,
65
65
  iconColorDM: BrandColors.cheddar,
66
66
  },
67
+ '12': {
68
+ name: 'Concept Quiz',
69
+ shortName: 'concept',
70
+ icon: 'pencil',
71
+ iconColor: BrandColors.slate,
72
+ iconColorDM: BrandColors.pewter,
73
+ },
67
74
  } as const
68
75
 
69
76
  export const escapeRegex = (string: string) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.5.13",
3
+ "version": "3.5.15",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {