@pocketprep/ui-kit 3.5.7 → 3.5.9
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.
- package/dist/@pocketprep/ui-kit.css +1 -1
- package/dist/@pocketprep/ui-kit.js +136 -132
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +4 -4
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Buttons/Button.vue +4 -4
- package/lib/components/EmptyStates/EmptyState.vue +8 -1
- package/lib/utils.ts +2 -2
- package/package.json +1 -1
|
@@ -546,7 +546,7 @@ export default class Button extends Vue {
|
|
|
546
546
|
padding: 5px 11px;
|
|
547
547
|
display: inline-flex;
|
|
548
548
|
align-items: center;
|
|
549
|
-
border: 1px solid rgba($pewter, 0.
|
|
549
|
+
border: 1px solid rgba($pewter, 0.85);
|
|
550
550
|
border-radius: 13px;
|
|
551
551
|
|
|
552
552
|
&:enabled {
|
|
@@ -564,10 +564,10 @@ export default class Button extends Vue {
|
|
|
564
564
|
position: absolute;
|
|
565
565
|
top: -5px;
|
|
566
566
|
bottom: -5px;
|
|
567
|
-
left: -
|
|
568
|
-
right: -
|
|
567
|
+
left: -5px;
|
|
568
|
+
right: -5px;
|
|
569
569
|
border: 1px solid $banana-bread;
|
|
570
|
-
border-radius:
|
|
570
|
+
border-radius: 20px;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -61,9 +61,10 @@ export default class EmptyState extends Vue {
|
|
|
61
61
|
@Prop() message!: string
|
|
62
62
|
@Prop() title!: string
|
|
63
63
|
@Prop() backgroundColor!: 'white'
|
|
64
|
-
@Prop() state!: 'answered' | 'incorrect' | 'correct' | 'flagged'
|
|
64
|
+
@Prop() state!: 'answered' | 'incorrect' | 'correct' | 'flagged' | 'assignment'
|
|
65
65
|
@Prop({ default: false }) isDarkMode!: boolean
|
|
66
66
|
@Prop() customBlobColor?: string
|
|
67
|
+
@Prop() customIconColor?: string
|
|
67
68
|
|
|
68
69
|
brandColors = BrandColors
|
|
69
70
|
|
|
@@ -74,6 +75,8 @@ export default class EmptyState extends Vue {
|
|
|
74
75
|
return 'correct'
|
|
75
76
|
} else if (this.state === 'flagged') {
|
|
76
77
|
return 'flagFeedback'
|
|
78
|
+
} else if (this.state === 'assignment') {
|
|
79
|
+
return 'assignment'
|
|
77
80
|
}
|
|
78
81
|
// Default to activity icon
|
|
79
82
|
return 'activity'
|
|
@@ -108,6 +111,10 @@ export default class EmptyState extends Vue {
|
|
|
108
111
|
}
|
|
109
112
|
return this.brandColors.cadaverous
|
|
110
113
|
}
|
|
114
|
+
|
|
115
|
+
if (this.customIconColor) {
|
|
116
|
+
return this.customIconColor
|
|
117
|
+
}
|
|
111
118
|
// Default to caramel
|
|
112
119
|
if (this.isDarkMode) {
|
|
113
120
|
return this.brandColors.butterscotch
|
package/lib/utils.ts
CHANGED
|
@@ -61,8 +61,8 @@ export const studyModes = {
|
|
|
61
61
|
name: 'Assignment',
|
|
62
62
|
shortName: 'assignment',
|
|
63
63
|
icon: 'assignment',
|
|
64
|
-
iconColor: BrandColors.
|
|
65
|
-
iconColorDM: BrandColors.
|
|
64
|
+
iconColor: BrandColors.caramel,
|
|
65
|
+
iconColorDM: BrandColors.cheddar,
|
|
66
66
|
},
|
|
67
67
|
} as const
|
|
68
68
|
|