@pocketprep/ui-kit 3.4.22 → 3.4.24
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.js +2406 -2357
- 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/dist/style.css +1 -1
- package/lib/components/Bundles/PremiumPill.vue +1 -0
- package/lib/components/Tables/Table.vue +8 -5
- package/lib/components/Tags/Tag.vue +85 -0
- package/lib/index.ts +2 -0
- package/package.json +1 -1
|
@@ -413,10 +413,9 @@ export default class Table extends Vue {
|
|
|
413
413
|
display: inline-grid;
|
|
414
414
|
min-width: 100%;
|
|
415
415
|
padding: 5px 22px 5px 11px;
|
|
416
|
-
font-size:
|
|
417
|
-
line-height:
|
|
418
|
-
|
|
419
|
-
color: $slate-03;
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
line-height: 16px;
|
|
418
|
+
color: $brand-black;
|
|
420
419
|
max-width: 100%;
|
|
421
420
|
border-bottom: 1px solid $gray-divider;
|
|
422
421
|
|
|
@@ -454,6 +453,10 @@ export default class Table extends Vue {
|
|
|
454
453
|
.table__sort-icon:not(.table__sort-icon--visible) {
|
|
455
454
|
visibility: visible;
|
|
456
455
|
}
|
|
456
|
+
|
|
457
|
+
.uikit-table__sort-icon {
|
|
458
|
+
visibility: visible;
|
|
459
|
+
}
|
|
457
460
|
}
|
|
458
461
|
|
|
459
462
|
&:focus:not(.table__column-label-content--sort-disabled) {
|
|
@@ -525,7 +528,7 @@ export default class Table extends Vue {
|
|
|
525
528
|
|
|
526
529
|
&--hover-focus {
|
|
527
530
|
&:hover {
|
|
528
|
-
background-color:
|
|
531
|
+
background-color: $gray-background;
|
|
529
532
|
}
|
|
530
533
|
|
|
531
534
|
&:focus {
|
|
@@ -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
|