@pocketprep/ui-kit 3.4.22 → 3.4.23

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.
@@ -29,6 +29,7 @@ export default class PremiumPill extends Vue {
29
29
  background: $buttermilk;
30
30
  padding: 0 6px;
31
31
  border-radius: 3px;
32
+ border: 1px solid $banana-bread;
32
33
  text-align: center;
33
34
  margin-left: 6px;
34
35
  color: $brand-black;
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <div
3
+ v-dark="isDarkMode"
4
+ class="uikit-tag"
5
+ :class="{
6
+ 'uikit-tag--small': isSmallTag,
7
+ 'uikit-tag--beta': isBetaTag,
8
+ 'uikit-tag--learning': isLearningTag,
9
+ }"
10
+ >
11
+ <slot name="tagMessage" />
12
+ </div>
13
+ </template>
14
+
15
+ <script lang="ts">
16
+ import { Vue, Component, Prop } from 'vue-facing-decorator'
17
+ import { dark } from '../../directives'
18
+
19
+ @Component({
20
+ directives: {
21
+ dark,
22
+ },
23
+ })
24
+ export default class Tag extends Vue {
25
+ @Prop({ default: false }) isBetaTag!: boolean
26
+ @Prop({ default: false }) isLearningTag!: boolean
27
+ @Prop({ default: false }) isSmallTag!: boolean
28
+ @Prop({ default: false }) isDarkMode!: boolean
29
+ }
30
+ </script>
31
+
32
+ <style lang="scss">
33
+ @import '../../styles/breakpoints';
34
+ @import '../../styles/colors';
35
+
36
+ .uikit-tag {
37
+ display: inline-flex;
38
+ align-items: flex-start;
39
+ flex-shrink: 0;
40
+ font-size: 14px;
41
+ height: 19px;
42
+ line-height: 19px;
43
+ padding: 0 6px;
44
+ border-radius: 3px;
45
+ text-align: center;
46
+ margin-left: 6px;
47
+ color: $brand-black;
48
+ font-weight: 500;
49
+ background: $buttermilk;
50
+ border: 1px solid $banana-bread;
51
+
52
+ &--dark {
53
+ color: $banana-bread;
54
+ background-color: rgba($buttermilk, 0.2);
55
+ border: 1px solid $banana-bread;
56
+ }
57
+
58
+ &--small {
59
+ font-size: 12px;
60
+ height: 16px;
61
+ line-height: 16px;
62
+ padding: 0 3px;
63
+ }
64
+
65
+ &--beta {
66
+ border: 1px solid $baby-blue;
67
+ background: $sky-blue;
68
+
69
+ &--dark {
70
+ color: $brand-black;
71
+ background: $baby-blue;
72
+ }
73
+ }
74
+
75
+ &--learning {
76
+ border: 1px solid $orchid;
77
+ background-color: rgba($orchid, 0.4);
78
+
79
+ &--dark {
80
+ color: $brand-black;
81
+ background-color: $orchid;
82
+ }
83
+ }
84
+ }
85
+ </style>
package/lib/index.ts CHANGED
@@ -52,6 +52,7 @@ import GlobalMetricsToggle from './components/Quiz/GlobalMetricsToggle.vue'
52
52
  import PremiumPill from './components/Bundles/PremiumPill.vue'
53
53
  import Toast from './components/Toasts/Toast.vue'
54
54
  import EmptyState from './components/EmptyStates/EmptyState.vue'
55
+ import Tag from './components/Tags/Tag.vue'
55
56
 
56
57
  export * as directives from './directives'
57
58
  export * as utils from './utils'
@@ -109,6 +110,7 @@ const components = {
109
110
  PremiumPill,
110
111
  Toast,
111
112
  EmptyState,
113
+ Tag,
112
114
  }
113
115
 
114
116
  export default components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.22",
3
+ "version": "3.4.23",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {