classcard-ui 0.2.604 → 0.2.607
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 +82 -63
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -1
- package/dist/classcard-ui.umd.js +82 -63
- 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/CMultiselect/CMultiselect.vue +1 -1
- package/src/components/CStats/CStats.vue +20 -6
- package/src/components/CSwitch/CSwitch.vue +6 -3
package/package.json
CHANGED
|
@@ -34,9 +34,15 @@
|
|
|
34
34
|
<!-- This example requires Tailwind CSS v2.0+ -->
|
|
35
35
|
<div>
|
|
36
36
|
<dl
|
|
37
|
-
class="mt-5 grid grid-cols-1
|
|
37
|
+
:class="`mt-5 grid grid-cols-1 divide-y divide-gray-200 overflow-hidden rounded-lg bg-gray-100 ${
|
|
38
|
+
cols ? cols : 'md:grid-cols-3'
|
|
39
|
+
} md:divide-y-0 md:divide-x`"
|
|
38
40
|
>
|
|
39
|
-
<div
|
|
41
|
+
<div
|
|
42
|
+
class="px-4 py-5 sm:p-6"
|
|
43
|
+
v-for="count in statsCount"
|
|
44
|
+
v-bind:key="count.number"
|
|
45
|
+
>
|
|
40
46
|
<div class="flex">
|
|
41
47
|
<c-icon
|
|
42
48
|
v-if="count.icon"
|
|
@@ -45,23 +51,28 @@
|
|
|
45
51
|
:class="count.icon.class"
|
|
46
52
|
></c-icon>
|
|
47
53
|
<div :class="count.icon ? 'ml-3' : ''">
|
|
48
|
-
<dt class="text-sm text-gray-500
|
|
54
|
+
<dt class="flex text-sm text-gray-500">
|
|
49
55
|
<span>{{ count.label }}</span>
|
|
50
|
-
<span class="text-sm text-gray-900
|
|
56
|
+
<span class="ml-1 text-sm text-gray-900">{{ count.number }}</span>
|
|
51
57
|
</dt>
|
|
52
58
|
<dd class="text-2xl font-semibold text-gray-900">
|
|
53
59
|
{{ count.totalCount }}
|
|
54
60
|
</dd>
|
|
55
61
|
</div>
|
|
56
62
|
</div>
|
|
57
|
-
<div
|
|
63
|
+
<div
|
|
64
|
+
:class="`${count.icon ? 'ml-8' : ''} flex items-center pb-2`"
|
|
65
|
+
v-if="count.tag || count.days"
|
|
66
|
+
>
|
|
58
67
|
<c-tag
|
|
59
68
|
v-if="count.tag"
|
|
60
69
|
:label="count.tag.label"
|
|
61
70
|
:color="count.tag.color"
|
|
62
71
|
:tagClasses="count.tag.class"
|
|
63
72
|
></c-tag>
|
|
64
|
-
<label v-if="count.days" class="text-xs text-gray-500
|
|
73
|
+
<label v-if="count.days" class="ml-1 text-xs text-gray-500">{{
|
|
74
|
+
count.days
|
|
75
|
+
}}</label>
|
|
65
76
|
</div>
|
|
66
77
|
</div>
|
|
67
78
|
</dl>
|
|
@@ -78,6 +89,9 @@ export default {
|
|
|
78
89
|
statsCount: {
|
|
79
90
|
type: Array,
|
|
80
91
|
},
|
|
92
|
+
cols: {
|
|
93
|
+
type: String,
|
|
94
|
+
},
|
|
81
95
|
// icon: {
|
|
82
96
|
// type: Object,
|
|
83
97
|
// },
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
<!-- small toggle -->
|
|
4
4
|
<div
|
|
5
5
|
v-if="size === 'small'"
|
|
6
|
-
:class="
|
|
7
|
-
|
|
6
|
+
:class="[
|
|
7
|
+
label == '' ? 'items-center' : 'items-start',
|
|
8
|
+
disabled ? 'cursor-default' : 'cursor-pointer',
|
|
9
|
+
]"
|
|
10
|
+
class="flex justify-between"
|
|
8
11
|
>
|
|
9
12
|
<span
|
|
10
13
|
class="flex flex-grow flex-col"
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
</span>
|
|
18
21
|
<button
|
|
19
22
|
type="button"
|
|
20
|
-
class="group focus:outline-none relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:
|
|
23
|
+
class="group focus:outline-none disabled-pointer-events-none relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-default disabled:opacity-50"
|
|
21
24
|
aria-pressed="false"
|
|
22
25
|
@click="switchValue"
|
|
23
26
|
:disabled="disabled"
|