classcard-ui 0.2.736 → 0.2.738

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.736",
3
+ "version": "0.2.738",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -3,7 +3,9 @@
3
3
  <div class="flex w-full items-center justify-between" v-if="label">
4
4
  <div class="flex items-center">
5
5
  <!-- label of multiselect field -->
6
- <label v-if="label" class="text-sm font-medium text-gray-900">{{ label }}</label>
6
+ <label v-if="label" class="text-sm font-medium text-gray-900">{{
7
+ label
8
+ }}</label>
7
9
  <!-- asterisk sign to render if field is required -->
8
10
  <p v-if="isRequired" class="ml-1 text-red-600">*</p>
9
11
  </div>
@@ -46,7 +48,9 @@
46
48
  </template>
47
49
  <!-- eslint-disable-next-line vue/no-unused-vars -->
48
50
  <template #no-options="{ search, searching, loading }">
49
- <span v-if="search.length < 1">Start typing to search for options...</span>
51
+ <span v-if="search.length < 1"
52
+ >Start typing to search for options...</span
53
+ >
50
54
  <span v-else>No options found, try searching something else.</span>
51
55
  </template>
52
56
  <template #spinner="{ loading }">
@@ -76,7 +80,11 @@
76
80
  <slot name="custom-option" v-bind:option="option"></slot>
77
81
  </template>
78
82
  <template v-if="showOptionImage" v-slot:option="option">
79
- <div :class="`flex w-full ${option.description ? 'items-start' : 'items-center'}`">
83
+ <div
84
+ :class="`flex w-full ${
85
+ option.description ? 'items-start' : 'items-center'
86
+ }`"
87
+ >
80
88
  <c-avatar
81
89
  v-if="option.image"
82
90
  size="extraextrasmall"
@@ -102,7 +110,9 @@
102
110
  </div>
103
111
  </template>
104
112
  <template #list-footer>
105
- <li ref="load" class="loader" v-show="hasNextPage">Loading more options...</li>
113
+ <li ref="load" class="loader" v-show="hasNextPage">
114
+ Loading more options...
115
+ </li>
106
116
  <li
107
117
  v-if="showFooterButton"
108
118
  class="group sticky bottom-0 mt-1 cursor-pointer select-none bg-gray-50 py-2 pl-3 pr-9 text-gray-700 hover:bg-gray-100 hover:text-gray-900"
@@ -242,7 +252,10 @@ export default {
242
252
  data() {
243
253
  return {
244
254
  loaderSearching: true,
245
- value: this.optionsSelected && this.optionsSelected.length ? this.optionsSelected : [],
255
+ value:
256
+ this.optionsSelected && this.optionsSelected.length
257
+ ? this.optionsSelected
258
+ : [],
246
259
  observer: null,
247
260
  };
248
261
  },
@@ -297,7 +310,7 @@ export default {
297
310
  @apply cursor-pointer;
298
311
  }
299
312
  .vs__dropdown-toggle {
300
- @apply focus:outline-none w-full rounded-md border border-gray-300 bg-white pl-3 text-left shadow-sm focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 sm:text-sm;
313
+ @apply w-full rounded-md border border-gray-300 bg-white pl-3 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm;
301
314
  padding-top: 0.4rem;
302
315
  padding-bottom: 0.4rem;
303
316
  }
@@ -325,7 +338,7 @@ export default {
325
338
  @apply pt-0 pr-3;
326
339
  }
327
340
  .vs__dropdown-menu {
328
- @apply focus:outline-none mt-2 max-h-60 overflow-auto rounded-md bg-white py-0 text-base shadow-lg ring-1 ring-opacity-5 sm:text-sm;
341
+ @apply mt-2 max-h-60 overflow-auto rounded-md bg-white py-0 text-base shadow-lg ring-1 ring-opacity-5 focus:outline-none sm:text-sm;
329
342
  }
330
343
  .vs__dropdown-option {
331
344
  @apply py-2;