classcard-ui 0.2.267 → 0.2.271

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.267",
3
+ "version": "0.2.271",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,7 +5,19 @@
5
5
  :class="classes"
6
6
  :type="type"
7
7
  @click="handleButtonClick"
8
- class="relative inline-flex items-center px-4 py-2 rounded-l-md text-sm font-medium focus:z-10 focus:outline-none focus:ring-1"
8
+ class="
9
+ relative
10
+ inline-flex
11
+ items-center
12
+ px-4
13
+ py-2
14
+ rounded-l-md
15
+ text-sm
16
+ font-medium
17
+ focus:z-10
18
+ focus:outline-none
19
+ focus:ring-1
20
+ "
9
21
  >
10
22
  {{ selectedValue ? selectedValue : label }}
11
23
  </button>
@@ -15,7 +27,20 @@
15
27
  @blur="close()"
16
28
  :type="type"
17
29
  :class="classes"
18
- class="relative inline-flex items-center px-2 py-2 rounded-r-md text-sm font-medium t focus:z-10 focus:outline-none focus:ring-1"
30
+ class="
31
+ relative
32
+ inline-flex
33
+ items-center
34
+ px-2
35
+ py-2
36
+ rounded-r-md
37
+ text-sm
38
+ font-medium
39
+ t
40
+ focus:z-10
41
+ focus:outline-none
42
+ focus:ring-1
43
+ "
19
44
  >
20
45
  <span class="sr-only">Open options</span>
21
46
  <c-icon name="chevron-down" type="solid" class="h-5 w-5"></c-icon>
@@ -23,7 +48,18 @@
23
48
  <div
24
49
  v-if="toggleDropdown"
25
50
  :class="dropdownPositionClass"
26
- class="origin-top-right absolute right-0 z-10 mt-2 -mr-1 w-56 rounded-md shadow-lg bg-white ring-1 ring-gray-900 ring-opacity-5"
51
+ class="
52
+ origin-top-right
53
+ absolute
54
+ right-0
55
+ z-10
56
+ mt-2
57
+ w-56
58
+ rounded-md
59
+ shadow-lg
60
+ bg-white
61
+ ring-1 ring-gray-900 ring-opacity-5
62
+ "
27
63
  >
28
64
  <div
29
65
  class="py-1"
@@ -35,7 +71,15 @@
35
71
  v-for="item in items"
36
72
  v-bind:key="item.items"
37
73
  @mousedown="selectOption($event, item.value)"
38
- class="block px-4 py-2 text-sm text-left text-gray-700 hover:bg-gray-100 hover:text-gray-900 cursor-pointer"
74
+ class="
75
+ block
76
+ px-4
77
+ py-2
78
+ text-sm text-left text-gray-700
79
+ hover:bg-gray-100
80
+ hover:text-gray-900
81
+ cursor-pointer
82
+ "
39
83
  role="menuitem"
40
84
  >
41
85
  {{ item.text }}
@@ -17,19 +17,14 @@
17
17
  <button
18
18
  type="button"
19
19
  :class="[
20
- disabled
21
- ? 'border-gray-100 pointer-events-none'
22
- : 'border-gray-300',
23
- 'p-2 bg-blue-100 border hover:bg-blue-200 text-blue-600 rounded-l-md focus:bg-blue-500 focus:text-white focus:border-blue-500 focus:outline-none',
20
+ disabled ? 'border-gray-100 pointer-events-none' : 'border-gray-300',
21
+ 'shadow-sm p-2 bg-blue-100 border hover:bg-blue-200 text-blue-600 rounded-l-md focus:bg-blue-500 focus:text-white focus:border-blue-500 focus:outline-none',
24
22
  ]"
25
23
  @click="togglePopover()"
26
24
  >
27
25
  <c-icon
28
26
  name="calendar-solid"
29
- :class="[
30
- disabled ? 'text-gray-200' : 'text-gray-400',
31
- 'h-5 w-5 ',
32
- ]"
27
+ :class="[disabled ? 'text-gray-200' : 'text-gray-400', 'h-5 w-5 ']"
33
28
  type="solid"
34
29
  ></c-icon>
35
30
  </button>
@@ -39,7 +34,7 @@
39
34
  disabled
40
35
  ? 'border-gray-100 border-l-0 text-gray-400'
41
36
  : 'border-gray-300 border-l-0 text-gray-900',
42
- 'bg-white w-full p-2 appearance-none border rounded-r-md focus:outline-none focus:border-blue-500 text-sm',
37
+ 'shadow-sm bg-white w-full p-2 appearance-none border rounded-r-md focus:outline-none focus:border-blue-500 text-sm',
43
38
  ]"
44
39
  :readonly="disabled"
45
40
  @click="togglePopover()"
@@ -91,14 +86,7 @@ export default {
91
86
  },
92
87
  data() {
93
88
  const masks = {
94
- input: [
95
- "MMM DD, YYYY",
96
- "YYYY/MM/DD",
97
- "DD-MM-YYYY",
98
- "DD/MM/YYYY",
99
- "YYYY-MM-DD",
100
- "L",
101
- ],
89
+ input: ["MMM DD, YYYY", "YYYY/MM/DD", "DD-MM-YYYY", "DD/MM/YYYY", "YYYY-MM-DD", "L"],
102
90
  };
103
91
  return {
104
92
  masks,
@@ -5,7 +5,7 @@
5
5
  <p class="text-sm text-gray-500" v-if="hint">{{ hint }}</p>
6
6
  </div>
7
7
  <quill-editor
8
- class="mt-1 text-sm"
8
+ class="mt-1 text-sm shadow-sm"
9
9
  :value="content"
10
10
  :options="editorOption"
11
11
  @change="onChange($event)"
@@ -19,7 +19,7 @@
19
19
  @input="$emit('input', $event.target.value)"
20
20
  @blur="$emit('blur', $event.target.value)"
21
21
  :class="errorClasses"
22
- class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
22
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
23
23
  :placeholder="placeholder"
24
24
  :disabled="disabled"
25
25
  />
@@ -11,10 +11,7 @@
11
11
  </div>
12
12
  <span v-if="hint" class="text-sm text-gray-500">{{ hint }}</span>
13
13
  </div>
14
- <div
15
- v-if="!inlineAddon && addonType == 'leading'"
16
- class="relative mt-1 flex rounded-md"
17
- >
14
+ <div v-if="!inlineAddon && addonType == 'leading'" class="relative mt-1 flex rounded-md">
18
15
  <span
19
16
  :class="disabled ? 'opacity-50' : ''"
20
17
  v-if="addon"
@@ -28,7 +25,7 @@
28
25
  @input="$emit('input', $event.target.value)"
29
26
  @blur="$emit('blur', $event.target.value)"
30
27
  :class="{ ...errorClasses, 'rounded-l-md': !addon }"
31
- class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-r-md sm:text-sm disabled:opacity-50 text-gray-900"
28
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-r-md sm:text-sm disabled:opacity-50 text-gray-900"
32
29
  :placeholder="placeholder"
33
30
  :disabled="disabled"
34
31
  />
@@ -39,17 +36,14 @@
39
36
  <c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
40
37
  </div>
41
38
  </div>
42
- <div
43
- v-if="!inlineAddon && addonType == 'trailing'"
44
- class="relative mt-1 flex rounded-md"
45
- >
39
+ <div v-if="!inlineAddon && addonType == 'trailing'" class="relative mt-1 flex rounded-md">
46
40
  <input
47
41
  :type="inputType"
48
42
  :value="inputValue"
49
43
  @input="$emit('input', $event.target.value)"
50
44
  @blur="$emit('blur', $event.target.value)"
51
45
  :class="errorClasses"
52
- class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-l-md sm:text-sm disabled:opacity-50 text-gray-900"
46
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-l-md sm:text-sm disabled:opacity-50 text-gray-900"
53
47
  :placeholder="placeholder"
54
48
  :disabled="disabled"
55
49
  />
@@ -66,48 +60,31 @@
66
60
  {{ addon }}
67
61
  </span>
68
62
  </div>
69
- <div
70
- v-if="inlineAddon && addonType == 'trailing'"
71
- class="relative mt-1 flex rounded-md"
72
- >
63
+ <div v-if="inlineAddon && addonType == 'trailing'" class="relative mt-1 flex rounded-md">
73
64
  <input
74
65
  :type="inputType"
75
66
  :value="inputValue"
76
67
  @input="$emit('input', $event.target.value)"
77
68
  @blur="$emit('blur', $event.target.value)"
78
69
  :class="errorClasses"
79
- class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
70
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
80
71
  :placeholder="placeholder"
81
72
  :disabled="disabled"
82
73
  />
83
- <div
84
- class="absolute inset-y-0 right-3 flex items-center pointer-events-none"
85
- >
74
+ <div class="absolute inset-y-0 right-3 flex items-center pointer-events-none">
86
75
  <div
87
76
  v-if="!isValidate"
88
77
  class="right-0 pr-2 flex items-center pointer-events-none text-red-600"
89
78
  >
90
- <c-icon
91
- name="exclamation-circle"
92
- type="solid"
93
- class="h-5 w-5"
94
- ></c-icon>
79
+ <c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
95
80
  </div>
96
- <span
97
- class="text-gray-500 sm:text-sm"
98
- :class="disabled ? 'opacity-50' : ''"
99
- >
81
+ <span class="text-gray-500 sm:text-sm" :class="disabled ? 'opacity-50' : ''">
100
82
  {{ addon }}
101
83
  </span>
102
84
  </div>
103
85
  </div>
104
- <div
105
- v-if="inlineAddon && addonType == 'leading'"
106
- class="relative mt-1 flex rounded-md"
107
- >
108
- <div
109
- class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"
110
- >
86
+ <div v-if="inlineAddon && addonType == 'leading'" class="relative mt-1 flex rounded-md">
87
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
111
88
  <span class="text-gray-500 sm:text-sm">{{ addon }}</span>
112
89
  </div>
113
90
  <input
@@ -117,7 +94,7 @@
117
94
  @blur="$emit('blur', $event.target.value)"
118
95
  :class="errorClasses"
119
96
  :style="`padding-left:${leftPaddingStyle}`"
120
- class="focus:ring-indigo-500 focus:border-indigo-500 block w-full rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
97
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
121
98
  :placeholder="placeholder"
122
99
  :disabled="disabled"
123
100
  />
@@ -131,10 +108,7 @@
131
108
  <p v-if="!isValidate" class="mt-2 text-sm text-red-600 text-left">
132
109
  {{ errorMessage }}
133
110
  </p>
134
- <p
135
- v-if="helpText && isValidate == true"
136
- :class="`mt-2 text-sm ${helpTextColorStyles}`"
137
- >
111
+ <p v-if="helpText && isValidate == true" :class="`mt-2 text-sm ${helpTextColorStyles}`">
138
112
  {{ helpText }}
139
113
  </p>
140
114
  </div>
@@ -210,6 +210,9 @@ export default {
210
210
  .vs__selected {
211
211
  @apply border-none m-0 py-0 pl-0 pr-1.5 mr-1;
212
212
  }
213
+ .vs__selected-options {
214
+ @apply pl-0;
215
+ }
213
216
  .vs__search,
214
217
  .vs__search:focus {
215
218
  @apply m-0 p-0;
@@ -1,12 +1,8 @@
1
1
  <template>
2
2
  <div>
3
3
  <label class="text-sm text-gray-900">{{ label }}</label>
4
- <div class="w-full mt-1">
5
- <vue-tel-input
6
- v-bind="bindProps"
7
- :autoFormat="false"
8
- v-model="value"
9
- ></vue-tel-input>
4
+ <div class="w-full mt-1 shadow-sm">
5
+ <vue-tel-input v-bind="bindProps" :autoFormat="false" v-model="value"></vue-tel-input>
10
6
  </div>
11
7
  </div>
12
8
  </template>
@@ -16,7 +16,7 @@
16
16
  :rows="rows"
17
17
  :class="errorClasses"
18
18
  :disabled="disabled"
19
- class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md disabled:opacity-50 text-gray-900"
19
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md disabled:opacity-50 text-gray-900"
20
20
  ></textarea>
21
21
  <div
22
22
  v-if="!isValidate"
@@ -6,10 +6,31 @@
6
6
  :class="errorClasses"
7
7
  class=""
8
8
  id="c-file-area"
9
- @click="uploader.open()"
9
+ @click.prevent="uploader.open()"
10
10
  >
11
- <button type="white" class="inline-flex items-center px-4 py-2 shadow-sm text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 text-gray-700 border bg-white border-gray-300 hover:bg-gray-50 focus:ring-indigo-600 ">
12
- {{buttonText}}
11
+ <button
12
+ type="white"
13
+ class="
14
+ inline-flex
15
+ items-center
16
+ px-4
17
+ py-2
18
+ shadow-sm
19
+ text-sm
20
+ font-medium
21
+ rounded-md
22
+ focus:outline-none
23
+ focus:ring-2 focus:ring-offset-2
24
+ disabled:opacity-50
25
+ text-gray-700
26
+ border
27
+ bg-white
28
+ border-gray-300
29
+ hover:bg-gray-50
30
+ focus:ring-indigo-600
31
+ "
32
+ >
33
+ {{ buttonText }}
13
34
  </button>
14
35
  </div>
15
36
  </div>
@@ -30,7 +51,7 @@ import { Uppload, Local, xhrUploader, en, Crop, Unsplash } from "uppload";
30
51
 
31
52
  export default {
32
53
  name: "CUpload",
33
- components: { },
54
+ components: {},
34
55
  props: {
35
56
  buttonText: {
36
57
  type: String,
@@ -64,8 +85,8 @@ export default {
64
85
  },
65
86
  data() {
66
87
  return {
67
- uploader: null
68
- }
88
+ uploader: null,
89
+ };
69
90
  },
70
91
  methods: {
71
92
  initFilestack() {
@@ -109,7 +130,7 @@ export default {
109
130
  this.uploader.on("error", (error) => {
110
131
  console.log("The error message is", error);
111
132
  });
112
- }
133
+ },
113
134
  },
114
135
  computed: {
115
136
  errorClasses() {
@@ -123,7 +144,7 @@ export default {
123
144
  mounted() {
124
145
  if (this.type === "filestack") {
125
146
  this.initFilestack();
126
- } else if(this.type == "default") {
147
+ } else if (this.type == "default") {
127
148
  this.initUppload();
128
149
  }
129
150
  },