@pocketprep/ui-kit 3.4.56 → 3.4.57

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.
@@ -45,7 +45,7 @@ import { dark } from '../../directives'
45
45
 
46
46
  type TButtonType = 'primary' | 'primary-yellow' | 'primary-red' | 'secondary'
47
47
  | 'secondary-yellow-dark' | 'tertiary' | 'tertiary-red' | 'tertiary-small' | 'tertiary-red-small' | 'icon'
48
- | 'icon-yellow'
48
+ | 'icon-yellow' | 'outline'
49
49
 
50
50
  @Component({
51
51
  components: {
@@ -115,6 +115,7 @@ export default class Button extends Vue {
115
115
  &--primary,
116
116
  &--primary-yellow,
117
117
  &--primary-red,
118
+ &--outline,
118
119
  &--secondary,
119
120
  &--secondary-yellow-dark {
120
121
  font-size: 15px;
@@ -142,7 +143,7 @@ export default class Button extends Vue {
142
143
  }
143
144
 
144
145
  &--dark:enabled:focus::before {
145
- border-color: $butterscotch;
146
+ border-color: $banana-bread;
146
147
  }
147
148
  }
148
149
 
@@ -233,6 +234,48 @@ export default class Button extends Vue {
233
234
  }
234
235
  }
235
236
 
237
+ &--outline {
238
+ background-color: $white;
239
+ color: $brand-blue;
240
+ font-size: 15px;
241
+ font-weight: 600;
242
+ border: 1px solid $brand-blue;
243
+
244
+ &:enabled {
245
+ &:hover,
246
+ &:active {
247
+ background-color: $pearl;
248
+ }
249
+
250
+ &:focus::before {
251
+ content: '';
252
+ position: absolute;
253
+ top: -3px;
254
+ bottom: -3px;
255
+ left: -3px;
256
+ right: -3px;
257
+ border-radius: 6px;
258
+ }
259
+ }
260
+
261
+ &:disabled {
262
+ opacity: 0.4;
263
+ }
264
+
265
+ &--dark {
266
+ background-color: $charcoal;
267
+ color: $banana-bread;
268
+ border-color: $banana-bread;
269
+
270
+ &:enabled {
271
+ &:hover,
272
+ &:active {
273
+ background-color: $mariner;
274
+ }
275
+ }
276
+ }
277
+ }
278
+
236
279
  &--secondary {
237
280
  background-color: transparent;
238
281
  color: $brand-blue;
@@ -43,6 +43,7 @@
43
43
  >
44
44
  <slot name="radioItem" :item="item">
45
45
  <RadioButton
46
+ class="uikit-radio__item-btn"
46
47
  :selected="!!(modelValue && item.value === modelValue.value)"
47
48
  :disabled="!!(disabled || item.disabled)"
48
49
  :isDarkMode="isDarkMode"
@@ -248,66 +249,8 @@ export default class Radio extends Vue {
248
249
  }
249
250
 
250
251
  &__item-btn {
251
- width: 18px;
252
- height: 18px;
252
+ min-width: 18px;
253
253
  margin-right: 12px;
254
- border: 1px solid $steel;
255
- background: $white;
256
- border-radius: 18px;
257
- position: relative;
258
- box-sizing: border-box;
259
-
260
- &::before {
261
- content: '';
262
- position: absolute;
263
- left: 50%;
264
- top: 50%;
265
- transform: translate(-50%, -50%);
266
- width: 12px;
267
- height: 12px;
268
- border-radius: 12px;
269
- background: $brand-blue;
270
- display: none;
271
- }
272
-
273
- &--dark {
274
- background-color: transparent;
275
- border-color: $pewter;
276
-
277
- &::before {
278
- background: $banana-bread;
279
- }
280
- }
281
-
282
- &--disabled {
283
- background-color: $fog;
284
- opacity: 0.6;
285
- border-color: rgba($steel, 0.6);
286
-
287
- &--dark {
288
- background-color: $moonlit-ocean;
289
- border-color: $slate;
290
- opacity: 1;
291
- }
292
- }
293
-
294
- &--selected {
295
- border-color: $brand-blue;
296
- background: transparent;
297
-
298
- &--dark {
299
- border-color: $banana-bread;
300
- }
301
-
302
- &--disabled {
303
- opacity: 0.4;
304
-
305
- }
306
-
307
- &::before {
308
- display: block;
309
- }
310
- }
311
254
  }
312
255
  }
313
256
  </style>
@@ -171,7 +171,10 @@
171
171
  @click="handleClick"
172
172
  >
173
173
  <template #explanationTopExperiment>
174
- <slot name="explanationTopExperiment"></slot>
174
+ <slot name="explanationTopExperiment" />
175
+ </template>
176
+ <template #explanationBottomExperiment>
177
+ <slot name="explanationBottomExperiment" />
175
178
  </template>
176
179
  </DropdownExplanation>
177
180
  </div>
@@ -65,6 +65,7 @@
65
65
  <span class="uikit-question-dropdown-explanation__dropdown-reference-label">Reference: </span>
66
66
  <div v-html="reference" />
67
67
  </div>
68
+ <slot name="explanationBottomExperiment" />
68
69
  </div>
69
70
  </template>
70
71
 
@@ -13,7 +13,7 @@
13
13
  >
14
14
  Explanation Details
15
15
  </div>
16
- <slot name="explanationTopExperiment"></slot>
16
+ <slot name="explanationTopExperiment" />
17
17
  <div
18
18
  v-dark="isDarkMode"
19
19
  v-breakpoint:questionEl="breakpoints"
@@ -70,6 +70,7 @@
70
70
  <span class="uikit-question-explanation__reference-label">Reference: </span>
71
71
  <div v-html="reference" />
72
72
  </div>
73
+ <slot name="explanationBottomExperiment" />
73
74
  <div
74
75
  v-if="!reviewMode"
75
76
  v-dark="isDarkMode"
@@ -96,6 +96,7 @@
96
96
  <span class="uikit-question-summary__summary-dropdown-reference-label">Reference: </span>
97
97
  <div v-html="reference" />
98
98
  </div>
99
+ <slot name="explanationBottomExperiment" />
99
100
  </div>
100
101
  <Icon
101
102
  v-if="isQuestionCorrect"
@@ -230,6 +230,9 @@
230
230
  :choiceKey="choiceKey"
231
231
  />
232
232
  </template>
233
+ <template #explanationBottomExperiment>
234
+ <slot name="explanationBottomExperiment" />
235
+ </template>
233
236
  </ChoicesContainer>
234
237
  <MatrixChoicesContainer
235
238
  v-if="question.type === 'Matrix Checkbox' || question.type === 'Matrix Radio Button'"
@@ -339,6 +342,9 @@
339
342
  <template #explanationTopExperiment>
340
343
  <slot name="explanationTopExperiment"></slot>
341
344
  </template>
345
+ <template #explanationBottomExperiment>
346
+ <slot name="explanationBottomExperiment" />
347
+ </template>
342
348
  </Summary>
343
349
  <slot name="metricsTiles">
344
350
  <StatsSummary
@@ -469,6 +475,9 @@
469
475
  <template #explanationTopExperiment>
470
476
  <slot name="explanationTopExperiment"></slot>
471
477
  </template>
478
+ <template #explanationBottomExperiment>
479
+ <slot name="explanationBottomExperiment" />
480
+ </template>
472
481
  </Explanation>
473
482
  </div>
474
483
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.56",
3
+ "version": "3.4.57",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {