classcard-ui 0.2.760 → 0.2.761

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.760",
3
+ "version": "0.2.761",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -3,33 +3,52 @@
3
3
  <slot></slot>
4
4
  <button
5
5
  v-if="type == 'tertiary'"
6
- class="focus:outline-none flex cursor-pointer flex-row rounded-md px-2 py-2 text-sm text-indigo-600 hover:bg-indigo-100 hover:text-indigo-800 focus:ring-2 focus:ring-indigo-200 focus:ring-offset-2"
6
+ class="flex cursor-pointer flex-row rounded-md px-2 py-2 text-sm text-indigo-600 hover:bg-indigo-100 hover:text-indigo-800 focus:outline-none focus:ring-2 focus:ring-indigo-200 focus:ring-offset-2"
7
7
  @click.prevent="$emit('action')"
8
8
  >
9
- <c-icon v-if="icon" :type="icon.type" :class="icon.class" :name="icon.name"></c-icon>
9
+ <c-icon
10
+ cursorType="cursor-pointer"
11
+ v-if="icon"
12
+ :type="icon.type"
13
+ :class="icon.class"
14
+ :name="icon.name"
15
+ ></c-icon>
10
16
  <slot></slot>
11
17
  </button>
12
18
  <button
13
19
  v-else-if="type == 'rounded-hover'"
14
20
  @click.prevent="$emit('action')"
15
- class="focus:outline-none flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-white text-gray-500 hover:bg-gray-100 hover:text-gray-500 focus:ring-2 focus:ring-indigo-500"
21
+ class="flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-white text-gray-500 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500"
16
22
  >
17
- <c-icon v-if="icon" :type="icon.type" :class="icon.class" :name="icon.name"></c-icon>
23
+ <c-icon
24
+ v-if="icon"
25
+ cursorType="cursor-pointer"
26
+ :type="icon.type"
27
+ :class="icon.class"
28
+ :name="icon.name"
29
+ ></c-icon>
18
30
  </button>
19
31
  <button
20
32
  v-else
21
33
  :type="type"
22
34
  :class="classes"
23
- class="focus:outline-none inline-flex items-center rounded-md px-2 py-2 text-sm font-medium shadow-sm focus:ring-2 focus:ring-offset-2"
35
+ class="inline-flex items-center rounded-md px-2 py-2 text-sm font-medium shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2"
24
36
  @click.prevent="$emit('action')"
25
37
  >
26
- <c-icon v-if="isLoading" class="mr-2 h-5 w-5" :class="loaderClasses" name="loader"></c-icon>
38
+ <c-icon
39
+ v-if="isLoading"
40
+ cursorType="cursor-pointer"
41
+ class="mr-2 h-5 w-5"
42
+ :class="loaderClasses"
43
+ name="loader"
44
+ ></c-icon>
27
45
  <c-icon
28
46
  v-if="icon"
29
47
  :type="icon.type"
30
48
  :class="icon.class"
31
49
  :name="icon.name"
32
50
  :viewBox="icon.viewBox"
51
+ cursorType="cursor-pointer"
33
52
  ></c-icon>
34
53
  <slot></slot>
35
54
  </button>
@@ -71,10 +90,12 @@ export default {
71
90
  this.type == "secondary",
72
91
  "border text-white hover:bg-indigo-800 bg-indigo-700 focus:ring-indigo-600":
73
92
  this.type == "primary",
74
- "border text-white hover:bg-red-800 bg-red-700 focus:ring-red-600": this.type == "danger",
93
+ "border text-white hover:bg-red-800 bg-red-700 focus:ring-red-600":
94
+ this.type == "danger",
75
95
  "border text-white hover:bg-green-800 bg-green-700 focus:ring-green-600":
76
96
  this.type == "success",
77
- "text-gray-900 hover:bg-gray-200 bg-gray-100": this.type == "secondary-gray",
97
+ "text-gray-900 hover:bg-gray-200 bg-gray-100":
98
+ this.type == "secondary-gray",
78
99
  "cursor-default pointer-events-none": this.isLoading,
79
100
  };
80
101
  },