classcard-ui 0.2.596 → 0.2.599

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.596",
3
+ "version": "0.2.599",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -20,7 +20,7 @@
20
20
  </svg>
21
21
  <svg
22
22
  v-if="name !== 'loader' && type == 'solid'"
23
- :class="(classes ? classes : '') + (cursorType ? cursorType : ' cursor-pointer')"
23
+ :class="(classes ? classes : '') + (cursorType ? cursorType : '')"
24
24
  :viewBox="viewBox"
25
25
  fill="currentColor"
26
26
  fill-rule="evenodd"
@@ -29,12 +29,17 @@
29
29
  </svg>
30
30
  <svg
31
31
  v-if="name !== 'loader' && type == 'outline'"
32
- :class="(classes ? classes : '') + (cursorType ? cursorType : ' cursor-pointer')"
32
+ :class="(classes ? classes : '') + (cursorType ? cursorType : '')"
33
33
  viewBox="0 0 24 24"
34
34
  fill="none"
35
35
  stroke="currentColor"
36
36
  >
37
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="path" />
37
+ <path
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ stroke-width="2"
41
+ :d="path"
42
+ />
38
43
  </svg>
39
44
  </div>
40
45
  </template>
@@ -60,7 +65,7 @@ export default {
60
65
  },
61
66
  cursorType: {
62
67
  type: String,
63
- default: "cursor-pointer",
68
+ default: "cursor-default",
64
69
  },
65
70
  },
66
71
  computed: {
@@ -1,15 +1,20 @@
1
1
  <template>
2
2
  <div>
3
3
  <slot></slot>
4
- <div class="lg:hidden">
4
+ <div class="lg:hidden" :class="tabClasses">
5
5
  <label for="tabs" class="sr-only">Select a tab</label>
6
6
  <select
7
7
  v-model="activeTab"
8
8
  @change="switchTabForMobile($event.target.selectedIndex)"
9
- class="block w-full rounded-md border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 text-sm px-6 sm:px-0"
9
+ class="block w-full rounded-md border-gray-300 pr-6 pl-4 text-sm focus:border-indigo-500 focus:ring-indigo-500"
10
10
  id="tabs"
11
11
  >
12
- <option v-for="tab in tabs" :key="tab.text" :value="tab.name" class="text-sm">
12
+ <option
13
+ v-for="tab in tabs"
14
+ :key="tab.text"
15
+ :value="tab.name"
16
+ class="text-sm"
17
+ >
13
18
  {{ tab.text }}
14
19
  </option>
15
20
  </select>
@@ -39,11 +44,13 @@
39
44
  "
40
45
  type="solid"
41
46
  ></c-icon>
42
- <span :class="
47
+ <span
48
+ :class="
43
49
  activeTab == tab.name
44
50
  ? 'text-indigo-700'
45
51
  : 'text-gray-500 hover:text-gray-700'
46
- ">
52
+ "
53
+ >
47
54
  {{ tab.text }}
48
55
  </span>
49
56
  </a>
@@ -74,6 +81,9 @@ export default {
74
81
  classes: {
75
82
  type: String,
76
83
  },
84
+ tabClasses: {
85
+ type: String,
86
+ },
77
87
  },
78
88
  data() {
79
89
  return {