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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.614",
3
+ "version": "0.2.617",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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:outline-none focus:ring-1 sm:rounded-md sm:px-3"
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-black ring-opacity-5 focus:outline-none"
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:outline-none focus:ring-1 focus:ring-indigo-500"
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-0 border-r':
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 == 0 && buttonObject.length != 2,
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-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"
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 class="flex items-end justify-between">
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-sm text-gray-500">{{
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
- <div class="flex items-center pb-1" v-if="count.tag">
71
- <c-tag
72
- v-if="count.tag"
73
- :label="count.tag.label"
74
- :color="count.tag.color"
75
- tagClasses="rounded-full"
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>