classcard-ui 0.2.576 → 0.2.577

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.576",
3
+ "version": "0.2.577",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -4,7 +4,7 @@
4
4
  <button
5
5
  v-if="type == 'tertiary'"
6
6
  :class="customClasses"
7
- class="flex cursor-pointer flex-row rounded-md px-4 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
+ class="focus:outline-none flex cursor-pointer flex-row rounded-md px-4 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"
8
8
  @click.prevent="$emit('action')"
9
9
  >
10
10
  <c-icon
@@ -15,14 +15,14 @@
15
15
  :viewBox="icon.viewBox"
16
16
  ></c-icon
17
17
  >{{ label }}
18
- <slot></slot>
18
+ <slot name="customButtonContent"></slot>
19
19
  </button>
20
20
  <button
21
21
  v-else-if="type != 'tertiary' && label.length"
22
22
  :type="type"
23
23
  :class="classes"
24
24
  :disabled="disabled"
25
- class="inline-flex items-center rounded-md px-4 py-2 text-sm font-medium shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50"
25
+ class="focus:outline-none inline-flex items-center rounded-md px-4 py-2 text-sm font-medium shadow-sm focus:ring-2 focus:ring-offset-2 disabled:opacity-50"
26
26
  @click.prevent="$emit('action')"
27
27
  >
28
28
  <c-icon v-if="isLoading" class="mr-2 h-4 w-4" name="loader"></c-icon>
@@ -34,14 +34,14 @@
34
34
  :viewBox="icon.viewBox"
35
35
  ></c-icon>
36
36
  {{ label }}
37
- <slot></slot>
37
+ <slot name="customButtonContent"></slot>
38
38
  </button>
39
39
  <button
40
40
  v-else-if="type != 'tertiary' && label.length == 0"
41
41
  :type="type"
42
42
  :class="classes"
43
43
  :disabled="disabled"
44
- class="inline-flex items-center rounded-md px-3 py-2 text-sm font-medium shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50"
44
+ class="focus:outline-none inline-flex items-center rounded-md px-3 py-2 text-sm font-medium shadow-sm focus:ring-2 focus:ring-offset-2 disabled:opacity-50"
45
45
  @click.prevent="$emit('action')"
46
46
  >
47
47
  <c-icon v-if="isLoading" class="mr-2 h-4 w-4" name="loader"></c-icon>
@@ -52,7 +52,7 @@
52
52
  :name="icon.name"
53
53
  :viewBox="icon.viewBox"
54
54
  ></c-icon>
55
- <slot></slot>
55
+ <slot name="customButtonContent"></slot>
56
56
  </button>
57
57
  </div>
58
58
  </template>
@@ -109,14 +109,11 @@ export default {
109
109
  this.type == "success",
110
110
  "text-green-800 border border-solid border-gray-300 bg-white hover:bg-gray-50 focus:ring-indigo-600":
111
111
  this.type == "secondary-success",
112
- "text-gray-700 hover:bg-gray-200 bg-gray-100":
113
- this.type == "secondary-gray",
114
- "bg-red-100 text-red-800 hover:bg-red-200 focus:ring-red-200":
115
- this.type == "light-red",
112
+ "text-gray-700 hover:bg-gray-200 bg-gray-100": this.type == "secondary-gray",
113
+ "bg-red-100 text-red-800 hover:bg-red-200 focus:ring-red-200": this.type == "light-red",
116
114
  "bg-green-100 text-green-800 hover:bg-green-200 focus:ring-green-200":
117
115
  this.type == "light-green",
118
- "bg-gray-800 text-white hover:bg-gray-700 focus:ring-gray-500":
119
- this.type == "dark-blue",
116
+ "bg-gray-800 text-white hover:bg-gray-700 focus:ring-gray-500": this.type == "dark-blue",
120
117
  "cursor-default pointer-events-none": this.isLoading,
121
118
  };
122
119
  classes[this.customClasses] = true;