@pocketprep/ui-kit 3.4.28 → 3.4.30

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.
@@ -57,6 +57,7 @@
57
57
  </template>
58
58
  </QuestionContext>
59
59
  </slot>
60
+ <slot name="promptExperiment" />
60
61
  <div
61
62
  ref="prompt"
62
63
  v-breakpoint:questionEl="breakpoints"
@@ -262,6 +263,7 @@
262
263
  :isCorrect="isCorrect"
263
264
  />
264
265
  </div>
266
+ <slot name="actionExperiment" />
265
267
  <div
266
268
  v-if="!reviewMode"
267
269
  v-breakpoint:questionEl="breakpoints"
@@ -3,6 +3,7 @@
3
3
  ref="toast"
4
4
  v-dark="isDarkMode"
5
5
  class="toast"
6
+ :class="{'toast--right': right}"
6
7
  role="alert"
7
8
  @mouseenter="clearCloseTimeout"
8
9
  @mouseleave="setCloseTimeout"
@@ -54,6 +55,7 @@ import { dark } from '../../directives'
54
55
  export default class Toast extends Vue {
55
56
  @Prop({ default: true }) showCloseButton!: boolean
56
57
  @Prop({ default: false }) isDarkMode!: boolean
58
+ @Prop({ default: false }) right!: boolean
57
59
 
58
60
  closeTimeout: NodeJS.Timeout | null = null
59
61
 
@@ -62,7 +64,7 @@ export default class Toast extends Vue {
62
64
  const toastEl = this.$refs['toast'] as HTMLElement
63
65
 
64
66
  setTimeout(() => {
65
- toastEl.classList.add('toast--visible')
67
+ toastEl.classList.add(`toast--visible${this.right ? '--right' : ''}`)
66
68
  }, 1)
67
69
  }
68
70
 
@@ -106,6 +108,11 @@ export default class Toast extends Vue {
106
108
  padding: 0 15px;
107
109
  box-sizing: border-box;
108
110
 
111
+ &--right {
112
+ left: auto;
113
+ right: -100%;
114
+ }
115
+
109
116
  @include breakpoint(black-bear) {
110
117
  width: 335px;
111
118
  }
@@ -117,6 +124,11 @@ export default class Toast extends Vue {
117
124
  &--visible {
118
125
  transition: all 0.5s ease-out;
119
126
  left: 32px;
127
+
128
+ &--right {
129
+ transition: all 0.5s ease-out;
130
+ right: 32px;
131
+ }
120
132
  }
121
133
 
122
134
  &--closing {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.28",
3
+ "version": "3.4.30",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {