classcard-ui 0.2.394 → 0.2.395

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.394",
3
+ "version": "0.2.395",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -4,7 +4,7 @@
4
4
  <li
5
5
  v-for="items in listItems"
6
6
  v-bind:key="items.size"
7
- class="py-4 flex justify-between items-center"
7
+ class="flex items-center justify-between py-4"
8
8
  :class="{ 'cursor-pointer': items.collapse, 'border-b border-gray-200': divider === true }"
9
9
  v-on="items.collapse ? { click: () => collapseList() } : null"
10
10
  >
@@ -13,15 +13,20 @@
13
13
  v-if="items.collapse"
14
14
  :name="showSection ? 'chevron-down' : 'chevron-right'"
15
15
  type="solid"
16
- class="mt-3 mr-3 text-gray-900 h-5 w-5"
16
+ class="mt-3 mr-3 h-5 w-5 shrink-0 text-gray-900"
17
17
  ></c-icon>
18
- <c-avatar :size="items.size" :rounded="items.rounded" :image="items.image"></c-avatar>
18
+ <c-avatar
19
+ :size="items.size"
20
+ :rounded="items.rounded"
21
+ :image="items.image"
22
+ class="shrink-0"
23
+ ></c-avatar>
19
24
  <div class="ml-3">
20
25
  <div class="flex pb-1">
21
26
  <p class="text-sm font-medium text-gray-900">
22
27
  {{ items.heading }}
23
28
  </p>
24
- <c-tag v-if="items.tag" label="Active" class="ml-2.5 relative bottom-0.5"></c-tag>
29
+ <c-tag v-if="items.tag" :label="tagLabel" class="relative bottom-0.5 ml-2.5"></c-tag>
25
30
  </div>
26
31
  <p class="text-sm text-gray-500">{{ items.description }}</p>
27
32
  <div v-if="showSection" class="mt-3">
@@ -38,7 +43,7 @@
38
43
  <button
39
44
  v-if="items.listIcon"
40
45
  type="button"
41
- 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"
46
+ 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"
42
47
  >
43
48
  <c-icon name="trash" type="solid" class="h-5 w-5 hover:text-red-800"></c-icon>
44
49
  </button>
@@ -1,12 +1,12 @@
1
- import CStackedList from '../components/CStackedList/CStackedList.vue';
2
- import './utils.css'
1
+ import CStackedList from "../components/CStackedList/CStackedList.vue";
2
+ import "./utils.css";
3
3
 
4
4
  export default {
5
- title: 'CStackedList',
5
+ title: "CStackedList",
6
6
  component: CStackedList,
7
7
  argTypes: {
8
8
  listItems: { control: { type: "object" } },
9
- divider: Boolean
9
+ divider: Boolean,
10
10
  },
11
11
  };
12
12
 
@@ -18,8 +18,19 @@ const Template = (args, { argTypes }) => ({
18
18
 
19
19
  export const Default = Template.bind({});
20
20
  Default.args = {
21
- listItems: [
22
- { image: "https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;auto=format&amp;fit=facearea&amp;facepad=2&amp;w=256&amp;h=256&amp;q=80", heading: "Maths-Level1", description: "calvin.hawkins@example.com", size:"medium", rounded:false, tag:false, collapse:false, listIcon: true },
23
- ],
24
- divider: true
21
+ listItems: [
22
+ {
23
+ image:
24
+ "https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;auto=format&amp;fit=facearea&amp;facepad=2&amp;w=256&amp;h=256&amp;q=80",
25
+ heading: "Maths-Level1",
26
+ tagLabel: "test",
27
+ description: "calvin.hawkins@example.com",
28
+ size: "medium",
29
+ rounded: false,
30
+ tag: false,
31
+ collapse: false,
32
+ listIcon: true,
33
+ },
34
+ ],
35
+ divider: true,
25
36
  };