classcard-ui 0.2.405 → 0.2.406

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.405",
3
+ "version": "0.2.406",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -88,6 +88,10 @@ export default {
88
88
  type: String,
89
89
  default: "",
90
90
  },
91
+ iconCustomClasses: {
92
+ type: String,
93
+ default: "",
94
+ },
91
95
  },
92
96
 
93
97
  computed: {
@@ -117,8 +121,8 @@ export default {
117
121
  return classes;
118
122
  },
119
123
  iconClasses() {
120
- return {
121
- "h-5 w-5 mr-1": true,
124
+ let iconClasses = {
125
+ "h-5 w-5 mr-1": this.iconCustomClasses ? false : true,
122
126
  "text-indigo-400": this.type == "secondary",
123
127
  "text-white":
124
128
  this.type == "success" ||
@@ -128,6 +132,8 @@ export default {
128
132
  "text-gray-400": this.type == "secondary-gray" || this.type == "white",
129
133
  "text-red-400": this.type == "light-red",
130
134
  };
135
+ iconClasses[this.iconCustomClasses] = true;
136
+ return iconClasses;
131
137
  },
132
138
  },
133
139
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="flex flex-col">
3
- <div class="flex items-center justify-between text-sm font-normal">
4
- <p>{{ label }}</p>
3
+ <div class="flex items-center justify-between text-sm font-light">
4
+ <p class="text-gray-600">{{ label }}</p>
5
5
  <p class="text-gray-400">{{ hint }}</p>
6
6
  </div>
7
7
  <div>
@@ -63,9 +63,11 @@ export default {
63
63
  },
64
64
  hint: {
65
65
  type: String,
66
+ default: "Optional",
66
67
  },
67
68
  label: {
68
69
  type: String,
70
+ default: "Image",
69
71
  },
70
72
  isValidate: { type: Boolean },
71
73
  errorMessage: {