classcard-ui 0.2.595 → 0.2.598
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/dist/classcard-ui.common.js +107 -80
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +107 -80
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CIcon/CIcon.vue +9 -4
- package/src/components/CInput/CInput.vue +5 -0
- package/src/components/CStackedList/CStackedList.vue +0 -1
- package/src/components/CTabs/CTabs.vue +12 -5
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</svg>
|
|
21
21
|
<svg
|
|
22
22
|
v-if="name !== 'loader' && type == 'solid'"
|
|
23
|
-
:class="(classes ? classes : '') + (cursorType ? cursorType : '
|
|
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 : '
|
|
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
|
|
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-
|
|
68
|
+
default: "cursor-default",
|
|
64
69
|
},
|
|
65
70
|
},
|
|
66
71
|
computed: {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
<div class="relative mt-1 rounded-md">
|
|
16
16
|
<input
|
|
17
|
+
:readonly="readonly"
|
|
17
18
|
:type="type"
|
|
18
19
|
:value="inputValue"
|
|
19
20
|
@input="$emit('input', $event.target.value)"
|
|
@@ -54,6 +55,10 @@ export default {
|
|
|
54
55
|
label: {
|
|
55
56
|
type: String,
|
|
56
57
|
},
|
|
58
|
+
// Read only of input field
|
|
59
|
+
readonly: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
},
|
|
57
62
|
// placeholder of input
|
|
58
63
|
placeholder: {
|
|
59
64
|
type: String,
|
|
@@ -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="classes">
|
|
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
|
|
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
|
|
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
|
|
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>
|