classcard-ui 0.2.614 → 0.2.617
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/classcard-ui.common.js +67 -60
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +67 -60
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CButtonGroup/CButtonGroup.vue +5 -5
- package/src/components/CStats/CStats.vue +18 -11
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<button
|
|
9
9
|
@click="showButtons = !showButtons"
|
|
10
10
|
type="button"
|
|
11
|
-
class="focus:ring-blue-600 focus:border-blue-600 relative inline-flex items-center rounded-md border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-900 hover:bg-gray-50 focus:z-10 focus:
|
|
11
|
+
class="focus:ring-blue-600 focus:border-blue-600 focus:outline-none relative inline-flex items-center rounded-md border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-900 hover:bg-gray-50 focus:z-10 focus:ring-1 sm:rounded-md sm:px-3"
|
|
12
12
|
id="menu-3"
|
|
13
13
|
aria-expanded="false"
|
|
14
14
|
aria-haspopup="true"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
<div
|
|
25
25
|
v-show="showButtons"
|
|
26
|
-
class="absolute z-10 mt-2 w-full origin-top-right rounded-md bg-white shadow-lg ring-1 ring-
|
|
26
|
+
class="ring-black focus:outline-none absolute z-10 mt-2 w-full origin-top-right rounded-md bg-white shadow-lg ring-1 ring-opacity-5"
|
|
27
27
|
role="menu"
|
|
28
28
|
aria-orientation="vertical"
|
|
29
29
|
>
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
v-for="(button, index) in buttonObject"
|
|
53
53
|
v-bind:key="button.label"
|
|
54
54
|
type="button"
|
|
55
|
-
class="relative inline-flex items-center border-r border-l border-t border-b border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:
|
|
55
|
+
class="focus:outline-none relative inline-flex items-center border-r border-l border-t border-b border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
|
|
56
56
|
:class="{
|
|
57
|
-
'rounded-r-md rounded-l-none border-l
|
|
57
|
+
'rounded-r-md rounded-l-none border-l border-r':
|
|
58
58
|
index == buttonObject.length - 1,
|
|
59
59
|
'rounded-l-md': index == 0,
|
|
60
|
-
'border-r-0': index
|
|
60
|
+
'border-r-0': index != buttonObject.length - 1,
|
|
61
61
|
'px-4': button.label,
|
|
62
62
|
}"
|
|
63
63
|
@click="handleEvent(button.onClickAction)"
|
|
@@ -45,14 +45,20 @@
|
|
|
45
45
|
></c-tag>
|
|
46
46
|
</div>
|
|
47
47
|
<dl
|
|
48
|
-
class="mt-
|
|
48
|
+
:class="`mt-4 grid grid-cols-1 divide-y ${
|
|
49
|
+
colorClasses ? colorClasses.divide : 'divide-gray-200'
|
|
50
|
+
} overflow-hidden rounded-lg ${
|
|
51
|
+
colorClasses ? colorClasses.background : 'bg-gray-100'
|
|
52
|
+
} md:grid-cols-3 md:divide-y-0 md:divide-x`"
|
|
49
53
|
>
|
|
50
54
|
<div
|
|
51
55
|
class="px-4 py-5 sm:p-6"
|
|
52
56
|
v-for="count in statsCount"
|
|
53
57
|
v-bind:key="count.number"
|
|
54
58
|
>
|
|
55
|
-
<div
|
|
59
|
+
<div
|
|
60
|
+
class="flex items-end justify-between md:flex-col md:items-start md:justify-center lg:flex-row lg:items-end lg:justify-between"
|
|
61
|
+
>
|
|
56
62
|
<div>
|
|
57
63
|
<dt class="flex text-sm text-gray-500">
|
|
58
64
|
<span>{{ count.label }}</span>
|
|
@@ -62,19 +68,17 @@
|
|
|
62
68
|
<p :class="`text-2xl font-semibold ${fontColor}`">
|
|
63
69
|
{{ count.totalCount }}
|
|
64
70
|
</p>
|
|
65
|
-
<label v-if="count.days" class="ml-2 text-
|
|
71
|
+
<label v-if="count.days" class="ml-2 text-xs text-gray-500">{{
|
|
66
72
|
count.days
|
|
67
73
|
}}</label>
|
|
68
74
|
</div>
|
|
69
75
|
</div>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
></c-tag>
|
|
77
|
-
</div>
|
|
76
|
+
<c-tag
|
|
77
|
+
v-if="count.tag"
|
|
78
|
+
:label="count.tag.label"
|
|
79
|
+
:color="count.tag.color"
|
|
80
|
+
tagClasses="rounded-full text-xs"
|
|
81
|
+
></c-tag>
|
|
78
82
|
</div>
|
|
79
83
|
</div>
|
|
80
84
|
</dl>
|
|
@@ -97,6 +101,9 @@ export default {
|
|
|
97
101
|
type: String,
|
|
98
102
|
default: "text-gray-900",
|
|
99
103
|
},
|
|
104
|
+
colorClasses: {
|
|
105
|
+
type: Object,
|
|
106
|
+
},
|
|
100
107
|
},
|
|
101
108
|
};
|
|
102
109
|
</script>
|