@pocketprep/ui-kit 3.5.21 → 3.5.23

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.
@@ -7,12 +7,15 @@
7
7
  />
8
8
  <div
9
9
  class="uikit-keyboard-shortcuts-btn"
10
+ :class="{
11
+ 'uikit-keyboard-shortcuts-btn--disabled': disabled
12
+ }"
10
13
  tabindex="0"
11
14
  aria-label="Show Keyboard Shortcuts Modal"
12
15
  @mouseenter="showKeyboardTooltip = true"
13
16
  @mouseleave="showKeyboardTooltip = false"
14
- @click="showKeyboardShortcutsModal = !showKeyboardShortcutsModal"
15
- @keydown.enter.stop.prevent="showKeyboardShortcutsModal = !showKeyboardShortcutsModal"
17
+ @click="toggleShowModal"
18
+ @keydown.enter.stop.prevent="toggleShowModal"
16
19
  @mousedown.prevent
17
20
  @focus="showKeyboardTooltip = true"
18
21
  @blur="showKeyboardTooltip = false"
@@ -52,10 +55,17 @@ import BrandColors from '../../pocketprep-export.module.scss'
52
55
  export default class KeyboardShortcutsButton extends Vue {
53
56
  @Prop() tooltipTheme!: 'leftalign' | 'rightalign'
54
57
  @Prop({ default: false }) isDarkMode!: boolean
58
+ @Prop() disabled?: boolean
55
59
 
56
60
  brandColors = BrandColors
57
61
  showKeyboardTooltip = false
58
62
  showKeyboardShortcutsModal = false
63
+
64
+ toggleShowModal () {
65
+ if (!this.disabled) {
66
+ this.showKeyboardShortcutsModal = !this.showKeyboardShortcutsModal
67
+ }
68
+ }
59
69
  }
60
70
  </script>
61
71
 
@@ -69,6 +79,10 @@ export default class KeyboardShortcutsButton extends Vue {
69
79
  width: 40px;
70
80
  outline: none;
71
81
 
82
+ &--disabled {
83
+ opacity: 0.35;
84
+ }
85
+
72
86
  &:focus::before {
73
87
  content: '';
74
88
  position: absolute;
package/lib/utils.ts CHANGED
@@ -51,8 +51,8 @@ export const studyModes = {
51
51
  iconColorDM: BrandColors.orchid,
52
52
  },
53
53
  '7': {
54
- name: 'Capstone',
55
- shortName: 'capstone',
54
+ name: 'Recall Challenge',
55
+ shortName: 'recallChallenge',
56
56
  icon: 'levelup',
57
57
  iconColor: BrandColors.cosmos,
58
58
  iconColorDM: BrandColors.orchid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.5.21",
3
+ "version": "3.5.23",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {