@pocketprep/ui-kit 3.4.24 → 3.4.25
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.
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
v-dark="isDarkMode"
|
|
4
4
|
class="uikit-tag"
|
|
5
5
|
:class="{
|
|
6
|
-
'uikit-tag--small':
|
|
6
|
+
'uikit-tag--small': size === 'small',
|
|
7
|
+
'uikit-tag--medium': size === 'medium',
|
|
7
8
|
'uikit-tag--beta': isBetaTag,
|
|
8
9
|
'uikit-tag--learning': isLearningTag,
|
|
10
|
+
'uikit-tag--active': isActiveTag,
|
|
11
|
+
'uikit-tag--pending': isPendingTag,
|
|
12
|
+
'uikit-tag--archived': isArchivedTag,
|
|
9
13
|
}"
|
|
10
14
|
>
|
|
11
15
|
<slot name="tagMessage" />
|
|
@@ -24,7 +28,10 @@ import { dark } from '../../directives'
|
|
|
24
28
|
export default class Tag extends Vue {
|
|
25
29
|
@Prop({ default: false }) isBetaTag!: boolean
|
|
26
30
|
@Prop({ default: false }) isLearningTag!: boolean
|
|
27
|
-
@Prop({ default: false })
|
|
31
|
+
@Prop({ default: false }) isActiveTag!: boolean
|
|
32
|
+
@Prop({ default: false }) isPendingTag!: boolean
|
|
33
|
+
@Prop({ default: false }) isArchivedTag!: boolean
|
|
34
|
+
@Prop({ default: 'large' }) size!: 'small' | 'medium' | 'large'
|
|
28
35
|
@Prop({ default: false }) isDarkMode!: boolean
|
|
29
36
|
}
|
|
30
37
|
</script>
|
|
@@ -55,6 +62,13 @@ export default class Tag extends Vue {
|
|
|
55
62
|
border: 1px solid $banana-bread;
|
|
56
63
|
}
|
|
57
64
|
|
|
65
|
+
&--medium {
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
height: 17px;
|
|
68
|
+
line-height: 16px;
|
|
69
|
+
padding: 0 3px;
|
|
70
|
+
}
|
|
71
|
+
|
|
58
72
|
&--small {
|
|
59
73
|
font-size: 12px;
|
|
60
74
|
height: 16px;
|
|
@@ -81,5 +95,23 @@ export default class Tag extends Vue {
|
|
|
81
95
|
background-color: $orchid;
|
|
82
96
|
}
|
|
83
97
|
}
|
|
98
|
+
|
|
99
|
+
&--active {
|
|
100
|
+
border: none;
|
|
101
|
+
background: $meadow;
|
|
102
|
+
color: $scifi-takeout
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&--pending {
|
|
106
|
+
border: none;
|
|
107
|
+
background: $buttermilk;
|
|
108
|
+
color: $flat-brown
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&--archived {
|
|
112
|
+
border: none;
|
|
113
|
+
background: $fog;
|
|
114
|
+
color: $pickled-bluewood
|
|
115
|
+
}
|
|
84
116
|
}
|
|
85
117
|
</style>
|