classcard-ui 0.2.611 → 0.2.614

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.611",
3
+ "version": "0.2.614",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -33,9 +33,16 @@
33
33
  </div> -->
34
34
  <!-- This example requires Tailwind CSS v2.0+ -->
35
35
  <div>
36
- <div class="flex items-center justify-between">
37
- <h3 class="text-lg font-medium leading-6 text-gray-900">{{ title }}</h3>
38
- <c-tag class="hidden sm:block" label="Insights" color="green"></c-tag>
36
+ <div class="flex items-center justify-between" v-if="title">
37
+ <h3 class="text-lg font-medium leading-6 text-gray-900">
38
+ {{ title.heading }}
39
+ </h3>
40
+ <c-tag
41
+ v-if="title.label"
42
+ class="hidden sm:block"
43
+ :label="title.label"
44
+ color="green"
45
+ ></c-tag>
39
46
  </div>
40
47
  <dl
41
48
  class="mt-5 grid grid-cols-1 divide-y divide-gray-200 overflow-hidden rounded-lg bg-gray-100 md:grid-cols-3 md:divide-y-0 md:divide-x"
@@ -51,7 +58,7 @@
51
58
  <span>{{ count.label }}</span>
52
59
  <span class="ml-1 text-sm text-gray-900">{{ count.number }}</span>
53
60
  </dt>
54
- <div class="mt-1 flex items-baseline justify-center">
61
+ <div class="mt-1 flex items-baseline justify-start">
55
62
  <p :class="`text-2xl font-semibold ${fontColor}`">
56
63
  {{ count.totalCount }}
57
64
  </p>
@@ -65,7 +72,7 @@
65
72
  v-if="count.tag"
66
73
  :label="count.tag.label"
67
74
  :color="count.tag.color"
68
- :tagClasses="count.tag.class"
75
+ tagClasses="rounded-full"
69
76
  ></c-tag>
70
77
  </div>
71
78
  </div>
@@ -84,7 +91,7 @@ export default {
84
91
  type: Array,
85
92
  },
86
93
  title: {
87
- type: String,
94
+ type: Object,
88
95
  },
89
96
  fontColor: {
90
97
  type: String,