classcard-ui 0.2.1237 → 0.2.1239

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.1237",
3
+ "version": "0.2.1239",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -14,9 +14,10 @@
14
14
  :class="[
15
15
  classes,
16
16
  imageClasses,
17
+ imageResizeClass,
17
18
  hasRing ? `p-1 ring-2 ${getRingColor}` : '',
18
19
  ]"
19
- class="inline-block object-cover"
20
+ class="inline-block"
20
21
  :src="image"
21
22
  alt=""
22
23
  />
@@ -155,6 +156,10 @@ export default {
155
156
  ringColor: { type: String, default: "gray" },
156
157
  hasLabel: { type: Boolean, default: false },
157
158
  labelDetails: { type: Object, default: null },
159
+ imageResizeClass: {
160
+ type: String,
161
+ default: "object-cover",
162
+ },
158
163
  },
159
164
  data() {
160
165
  return {
@@ -1,16 +1,16 @@
1
1
  <template>
2
2
  <div
3
- class="relative rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm flex items-center space-x-3 hover:border-gray-400 focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"
3
+ class="relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400"
4
4
  >
5
- <div class="flex-shrink-0 p-2 rounded-md bg-gray-100">
5
+ <div class="flex-shrink-0 rounded-md bg-gray-100 p-2">
6
6
  <c-avatar
7
7
  :image="image.image"
8
8
  :rounded="image.rounded"
9
9
  :size="image.size"
10
- imageClasses="object-contain"
10
+ :imageResizeClass="'object-contain'"
11
11
  ></c-avatar>
12
12
  </div>
13
- <div class="flex-1 min-w-0">
13
+ <div class="min-w-0 flex-1">
14
14
  <a href="#" class="focus:outline-none">
15
15
  <span class="absolute inset-0" aria-hidden="true"></span>
16
16
  <div class="flex">
@@ -19,7 +19,7 @@
19
19
  </p>
20
20
  <slot></slot>
21
21
  </div>
22
- <p class="text-sm text-gray-500 truncate">
22
+ <p class="truncate text-sm text-gray-500">
23
23
  {{ description }}
24
24
  </p>
25
25
  </a>