classcard-ui 0.2.347 → 0.2.350

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.347",
3
+ "version": "0.2.350",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -29,9 +29,10 @@
29
29
  v-for="(item, index) in items"
30
30
  v-bind:key="item.text"
31
31
  @mousedown.stop.prevent="dropdownAction(item)"
32
- class="flex cursor-pointer px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
32
+ class="flex cursor-pointer px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 disabled:pointer-events-none disabled:opacity-50"
33
33
  :class="item.class"
34
34
  role="menuitem"
35
+ :disabled="item.disabled"
35
36
  >
36
37
  <c-icon
37
38
  v-if="item.icon"
@@ -4,7 +4,7 @@
4
4
  <li
5
5
  v-for="items in listItems"
6
6
  v-bind:key="items.size"
7
- class="py-3 flex items-center"
7
+ class="flex items-center py-3"
8
8
  :class="{ 'cursor-pointer': items.collapse }"
9
9
  v-on="items.collapse ? { click: () => collapseList() } : null"
10
10
  >
@@ -12,13 +12,13 @@
12
12
  v-if="items.collapse"
13
13
  :name="showSection ? 'chevron-down' : 'chevron-right'"
14
14
  type="solid"
15
- class="mt-3 mr-3 text-gray-900 h-5 w-5"
15
+ class="mt-3 mr-3 h-5 w-5 text-gray-900"
16
16
  ></c-icon>
17
17
  <c-icon
18
18
  v-if="items.reorder"
19
19
  name="menu-solid"
20
20
  type="solid"
21
- class="h-5 w-5 mr-3 text-gray-500"
21
+ class="mr-3 h-5 w-5 text-gray-500"
22
22
  ></c-icon>
23
23
  <c-avatar
24
24
  :size="items.size"
@@ -26,7 +26,7 @@
26
26
  :image="items.image"
27
27
  :imageClasses="items.imageClasses"
28
28
  ></c-avatar>
29
- <div class="flex flex-grow items-center justify-between flex-wrap">
29
+ <div class="flex flex-grow flex-wrap items-center justify-between">
30
30
  <div class="ml-3">
31
31
  <div class="flex pb-1">
32
32
  <p class="text-sm font-medium text-gray-900">
@@ -44,18 +44,17 @@
44
44
  <c-tag v-if="items.tag" label="Tag 1" class="mr-3"></c-tag>
45
45
  <c-tag v-if="items.tag" label="Tag 2" class="mr-3"></c-tag>
46
46
  </div>
47
- <button
48
- type="button"
49
- v-if="items.listIcon"
50
- @click="$emit('remove')"
51
- class="rounded-full h-8 w-8 flex items-center justify-center text-gray-500 hover:bg-red-100 hover:text-red-800 focus:outline-none focus:ring-2 focus:ring-red-500"
52
- >
53
- <c-icon
54
- name="trash"
55
- type="solid"
56
- class="h-5 w-5 hover:text-red-800"
57
- ></c-icon>
58
- </button>
47
+ <div class="flex items-center">
48
+ <slot name="icons"></slot>
49
+ <button
50
+ type="button"
51
+ v-if="items.listIcon"
52
+ @click="$emit('remove')"
53
+ class="focus:outline-none flex h-8 w-8 items-center justify-center rounded-full text-gray-500 hover:bg-red-100 hover:text-red-800 focus:ring-2 focus:ring-red-500"
54
+ >
55
+ <c-icon name="trash" type="solid" class="h-5 w-5 hover:text-red-800"></c-icon>
56
+ </button>
57
+ </div>
59
58
  </div>
60
59
  </li>
61
60
  </ul>
package/src/icons.js CHANGED
@@ -23,8 +23,8 @@ export default {
23
23
  chat: "M18 10c0 3.866-3.582 7-8 7a8.841 8.841 0 01-4.083-.98L2 17l1.338-3.123C2.493 12.767 2 11.434 2 10c0-3.866 3.582-7 8-7s8 3.134 8 7zM7 9H5v2h2V9zm8 0h-2v2h2V9zM9 9h2v2H9V9z",
24
24
  calendar:
25
25
  "M12,19a1,1,0,1,0-1-1A1,1,0,0,0,12,19Zm5,0a1,1,0,1,0-1-1A1,1,0,0,0,17,19Zm0-4a1,1,0,1,0-1-1A1,1,0,0,0,17,15Zm-5,0a1,1,0,1,0-1-1A1,1,0,0,0,12,15ZM19,3H18V2a1,1,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,1-1V14A1,1,0,0,0,21,13Zm-1,7H15V15h5ZM10,2H3A1,1,0,0,0,2,3v7a1,1,0,0,0,1,1h7a1,1,0,0,0,1-1V3A1,1,0,0,0,10,2ZM9,9H4V4H9Z",
30
30
  resources: