classcard-ui 0.2.273 → 0.2.277

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.273",
3
+ "version": "0.2.277",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -2,7 +2,13 @@
2
2
  <div>
3
3
  <div :class="description ? 'items-start' : 'items-center'" class="flex">
4
4
  <div v-if="image">
5
- <img :class="[classes, imageClasses]" class="inline-block" :src="image" alt="" />
5
+ <img
6
+ @error="$emit('error', $event)"
7
+ :class="[classes, imageClasses]"
8
+ class="inline-block"
9
+ :src="image"
10
+ alt=""
11
+ />
6
12
  </div>
7
13
  <div
8
14
  v-else
@@ -22,7 +28,10 @@
22
28
  <p v-if="name" class="text-sm text-gray-900">
23
29
  {{ name }}
24
30
  </p>
25
- <p v-if="description" class="text-xs text-gray-500 group-hover:text-gray-700">
31
+ <p
32
+ v-if="description"
33
+ class="text-xs text-gray-500 group-hover:text-gray-700"
34
+ >
26
35
  {{ description }}
27
36
  </p>
28
37
  <slot></slot>
@@ -5,19 +5,42 @@
5
5
  <div>
6
6
  <button
7
7
  type="white"
8
- @click="toggleDropdown = !toggleDropdown"
8
+ @click.stop="toggleDropdown = !toggleDropdown"
9
9
  @blur="close()"
10
- class="inline-flex justify-center w-full rounded-full border-none p-2 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600"
10
+ class="
11
+ inline-flex
12
+ justify-center
13
+ w-full
14
+ rounded-full
15
+ border-none
16
+ p-2
17
+ focus:outline-none
18
+ focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600
19
+ "
11
20
  aria-haspopup="true"
12
21
  aria-expanded="true"
13
22
  >
14
- <c-icon :name="icon.name" :type="icon.type" :class="icon.class"></c-icon>
23
+ <c-icon
24
+ :name="icon.name"
25
+ :type="icon.type"
26
+ :class="icon.class"
27
+ ></c-icon>
15
28
  </button>
16
29
  </div>
17
30
  <div
18
31
  v-show="toggleDropdown"
19
32
  :class="classes"
20
- class="origin-top-right z-10 absolute mt-2 -mr-1 rounded-md shadow-lg bg-white ring-1 ring-gray-900 ring-opacity-5"
33
+ class="
34
+ origin-top-right
35
+ z-10
36
+ absolute
37
+ mt-2
38
+ -mr-1
39
+ rounded-md
40
+ shadow-lg
41
+ bg-white
42
+ ring-1 ring-gray-900 ring-opacity-5
43
+ "
21
44
  >
22
45
  <div
23
46
  class="py-2 w-max"
@@ -28,8 +51,16 @@
28
51
  <a
29
52
  v-for="item in items"
30
53
  v-bind:key="item.text"
31
- @mousedown="dropdownAction(item)"
32
- class="flex px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 cursor-pointer"
54
+ @mousedown.stop="dropdownAction(item)"
55
+ class="
56
+ flex
57
+ px-4
58
+ py-2
59
+ text-sm text-gray-700
60
+ hover:bg-gray-100
61
+ hover:text-gray-900
62
+ cursor-pointer
63
+ "
33
64
  role="menuitem"
34
65
  >
35
66
  {{ item.text }}
package/src/icons.js CHANGED
@@ -195,4 +195,6 @@ export default {
195
195
  save: "M7.707 10.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V6h5a2 2 0 012 2v7a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5v5.586l-1.293-1.293zM9 4a1 1 0 012 0v2H9V4z",
196
196
  "clipboard-list-solid":
197
197
  "M9 2a1 1 0 000 2h2a1 1 0 100-2H9z M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z",
198
+ "clipboard-check-outline":
199
+ "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4",
198
200
  };