@pocketprep/ui-kit 3.9.6 → 3.9.8

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.
@@ -44,7 +44,7 @@ import { dark as vDark } from '../../directives'
44
44
 
45
45
  type TButtonType = 'primary' | 'primary-yellow' | 'primary-red' | 'secondary'
46
46
  | 'secondary-yellow-dark' | 'tertiary' | 'tertiary-red' | 'tertiary-small' | 'tertiary-red-small' | 'icon'
47
- | 'icon-yellow' | 'outline' | 'oval-dark'
47
+ | 'icon-yellow' | 'outline' | 'outline-grey' | 'oval-dark'
48
48
 
49
49
  const {
50
50
  type = 'primary',
@@ -570,6 +570,40 @@ const buttonClicked = (event: Event) => {
570
570
  }
571
571
  }
572
572
 
573
+ &--outline-grey {
574
+ user-select: none;
575
+ outline: none;
576
+ color: $brand-black;
577
+ background-color: $gray-background;
578
+ font-weight: 500;
579
+ font-size: 14px;
580
+ line-height: 19px;
581
+ height: 32px;
582
+ padding: 6px 8px;
583
+ display: inline-flex;
584
+ align-items: center;
585
+ border-radius: 6px;
586
+ border: 1px solid rgba($pewter, 0.30);
587
+
588
+ &:hover,
589
+ &:focus {
590
+ border: 1px solid rgba($brand-blue, 0.40);
591
+ background: $barely-blue;
592
+ }
593
+
594
+ &--dark {
595
+ color: $barely-background;
596
+ background: $moonlit-ocean;
597
+ border: 1px solid $ash;
598
+
599
+ &:hover,
600
+ &:focus {
601
+ border: 1px solid rgba($banana-bread, 0.40);
602
+ background: rgba($banana-bread, 0.20);
603
+ }
604
+ }
605
+ }
606
+
573
607
  &:disabled {
574
608
  opacity: 0.4;
575
609
  cursor: auto;
@@ -168,6 +168,9 @@
168
168
  <template #explanationBottomExperiment>
169
169
  <slot name="explanationBottomExperiment" />
170
170
  </template>
171
+ <template #tutorChatExplanationPrompts>
172
+ <slot name="tutorChatExplanationPrompts" />
173
+ </template>
171
174
  </DropdownExplanation>
172
175
  </div>
173
176
  <template v-if="!globalMetrics">
@@ -58,6 +58,13 @@
58
58
  tabindex="-1"
59
59
  v-html="explanationImageLongAlt"
60
60
  />
61
+ <div
62
+ v-if="showTutorChatExplanationPrompts"
63
+ v-dark="isDarkMode"
64
+ class="uikit-question-dropdown-explanation__tutor-chat-prompts"
65
+ >
66
+ <slot name="tutorChatExplanationPrompts" />
67
+ </div>
61
68
  <div
62
69
  v-if="reference && !hideReferences"
63
70
  v-dark="isDarkMode"
@@ -98,6 +105,7 @@ const {
98
105
  breakpointsWithEl,
99
106
  keywordDefinitions,
100
107
  showRightSideBar,
108
+ showTutorChatExplanationPrompts,
101
109
  } = useQuestionContext()
102
110
 
103
111
  const explanation = computed(() => {
@@ -62,6 +62,13 @@
62
62
  tabindex="-1"
63
63
  v-html="explanationImageLongAlt"
64
64
  />
65
+ <div
66
+ v-if="showTutorChatExplanationPrompts"
67
+ v-dark="isDarkMode"
68
+ class="uikit-question-explanation__tutor-chat-prompts"
69
+ >
70
+ <slot name="tutorChatExplanationPrompts" />
71
+ </div>
65
72
  <div
66
73
  v-if="reference && !hideReferences"
67
74
  v-dark="isDarkMode"
@@ -117,6 +124,7 @@ const {
117
124
  reviewMode,
118
125
  breakpointsWithEl,
119
126
  keywordDefinitions,
127
+ showTutorChatExplanationPrompts,
120
128
  } = useQuestionContext()
121
129
 
122
130
  const explanation = computed(() => {
@@ -86,5 +86,6 @@ export const useQuestionContext = () => {
86
86
  selectedBuildListChoiceOrder: inject(InjectionKeys.selectedBuildListChoiceOrderKey, ref([])),
87
87
  isTeachGroupReview: inject(InjectionKeys.isTeachGroupReviewKey, ref(false)),
88
88
  showRightSideBar: inject(InjectionKeys.showRightSideBarKey, ref(false)),
89
+ showTutorChatExplanationPrompts: inject(InjectionKeys.showTutorChatExplanationPromptsKey, ref(false)),
89
90
  }
90
91
  }
@@ -85,3 +85,4 @@ export const selectedMPMCChoicesKey = Symbol('selectedMPMCChoices') as Injection
85
85
  export const selectedBuildListChoiceOrderKey = Symbol('selectedBuildListChoiceOrder') as InjectionKey<Ref<TBuildListChoiceKey[]>>
86
86
  export const isTeachGroupReviewKey = Symbol('isTeachGroupReview') as InjectionKey<Ref<boolean>>
87
87
  export const showRightSideBarKey = Symbol('showRightSideBar') as InjectionKey<Ref<boolean>>
88
+ export const showTutorChatExplanationPromptsKey = Symbol('showTutorChatExplanationPrompt') as InjectionKey<Ref<boolean>>
@@ -213,6 +213,9 @@
213
213
  <template #explanationBottomExperiment>
214
214
  <slot name="explanationBottomExperiment" />
215
215
  </template>
216
+ <template #tutorChatExplanationPrompts>
217
+ <slot name="tutorChatExplanationPrompts" />
218
+ </template>
216
219
  </ChoicesContainer>
217
220
  <MatrixChoicesContainer
218
221
  v-if="question.type === 'Matrix Checkbox' || question.type === 'Matrix Radio Button'"
@@ -445,6 +448,9 @@
445
448
  <template #explanationBottomExperiment>
446
449
  <slot name="explanationBottomExperiment" />
447
450
  </template>
451
+ <template #tutorChatExplanationPrompts>
452
+ <slot name="tutorChatExplanationPrompts" />
453
+ </template>
448
454
  </Explanation>
449
455
  </div>
450
456
  </div>
@@ -516,6 +522,7 @@ const props = withDefaults(defineProps<{
516
522
  isTeachGroupReview?: boolean
517
523
  keywordDefinitions?: { keyword: string; definition: string }[]
518
524
  showRightSideBar?: boolean
525
+ showTutorChatExplanationPrompts?: boolean
519
526
  }>(), {
520
527
  questionNumber: undefined,
521
528
  quizLength: undefined,
@@ -545,6 +552,7 @@ const props = withDefaults(defineProps<{
545
552
  isTeachGroupReview: false,
546
553
  keywordDefinitions: () => [],
547
554
  showRightSideBar: false,
555
+ showTutorChatExplanationPrompts: false,
548
556
  })
549
557
 
550
558
  const emit = defineEmits<{
@@ -580,6 +588,7 @@ const keywordDefinitions = computed(() => props.keywordDefinitions)
580
588
  const showPaywall = computed(() => props.showPaywall)
581
589
  const isTeachGroupReview = computed(() => props.isTeachGroupReview)
582
590
  const showRightSideBar = computed(() => props.showRightSideBar)
591
+ const showTutorChatExplanationPrompts = computed(() => props.showTutorChatExplanationPrompts)
583
592
  const hoverChoiceKey = ref<TChoiceKey | null>(null)
584
593
  const focusChoiceKey = ref<TChoiceKey | null>(null)
585
594
  const choiceStrikes = ref<TChoiceKey[]>([])
@@ -1752,6 +1761,7 @@ provide(InjectionKeys.isBuildListOrderCorrectKey, isBuildListOrderCorrect)
1752
1761
  provide(InjectionKeys.selectedBuildListChoiceOrderKey, selectedBuildListChoiceOrder)
1753
1762
  provide(InjectionKeys.isTeachGroupReviewKey, isTeachGroupReview)
1754
1763
  provide(InjectionKeys.showRightSideBarKey, showRightSideBar)
1764
+ provide(InjectionKeys.showTutorChatExplanationPromptsKey, showTutorChatExplanationPrompts)
1755
1765
  </script>
1756
1766
 
1757
1767
  <style lang="scss">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.9.6",
3
+ "version": "3.9.8",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {