@pocketprep/ui-kit 3.9.6 → 3.9.7

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;
@@ -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>>
@@ -445,6 +445,9 @@
445
445
  <template #explanationBottomExperiment>
446
446
  <slot name="explanationBottomExperiment" />
447
447
  </template>
448
+ <template #tutorChatExplanationPrompts>
449
+ <slot name="tutorChatExplanationPrompts" />
450
+ </template>
448
451
  </Explanation>
449
452
  </div>
450
453
  </div>
@@ -516,6 +519,7 @@ const props = withDefaults(defineProps<{
516
519
  isTeachGroupReview?: boolean
517
520
  keywordDefinitions?: { keyword: string; definition: string }[]
518
521
  showRightSideBar?: boolean
522
+ showTutorChatExplanationPrompts?: boolean
519
523
  }>(), {
520
524
  questionNumber: undefined,
521
525
  quizLength: undefined,
@@ -545,6 +549,7 @@ const props = withDefaults(defineProps<{
545
549
  isTeachGroupReview: false,
546
550
  keywordDefinitions: () => [],
547
551
  showRightSideBar: false,
552
+ showTutorChatExplanationPrompts: false,
548
553
  })
549
554
 
550
555
  const emit = defineEmits<{
@@ -580,6 +585,7 @@ const keywordDefinitions = computed(() => props.keywordDefinitions)
580
585
  const showPaywall = computed(() => props.showPaywall)
581
586
  const isTeachGroupReview = computed(() => props.isTeachGroupReview)
582
587
  const showRightSideBar = computed(() => props.showRightSideBar)
588
+ const showTutorChatExplanationPrompts = computed(() => props.showTutorChatExplanationPrompts)
583
589
  const hoverChoiceKey = ref<TChoiceKey | null>(null)
584
590
  const focusChoiceKey = ref<TChoiceKey | null>(null)
585
591
  const choiceStrikes = ref<TChoiceKey[]>([])
@@ -1752,6 +1758,7 @@ provide(InjectionKeys.isBuildListOrderCorrectKey, isBuildListOrderCorrect)
1752
1758
  provide(InjectionKeys.selectedBuildListChoiceOrderKey, selectedBuildListChoiceOrder)
1753
1759
  provide(InjectionKeys.isTeachGroupReviewKey, isTeachGroupReview)
1754
1760
  provide(InjectionKeys.showRightSideBarKey, showRightSideBar)
1761
+ provide(InjectionKeys.showTutorChatExplanationPromptsKey, showTutorChatExplanationPrompts)
1755
1762
  </script>
1756
1763
 
1757
1764
  <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.7",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {