classcard-ui 0.2.341 → 0.2.344

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.341",
3
+ "version": "0.2.344",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,9 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <div class="flex items-center">
4
- <label v-if="label" class="text-sm font-medium text-gray-900">{{
5
- label
6
- }}</label>
4
+ <label v-if="label" class="text-sm font-medium text-gray-900">{{ label }}</label>
7
5
  <!-- asterisk sign to render if field is required -->
8
6
  <p v-if="isRequired" class="ml-1 text-red-600">*</p>
9
7
  </div>
@@ -44,9 +42,7 @@
44
42
  </template>
45
43
  <!-- eslint-disable-next-line vue/no-unused-vars -->
46
44
  <template #no-options="{ search, searching, loading }">
47
- <span v-if="search.length < 1"
48
- >Start typing to search for options...</span
49
- >
45
+ <span v-if="search.length < 1">Start typing to search for options...</span>
50
46
  <span v-else>No options found, try searching something else.</span>
51
47
  </template>
52
48
  <template #spinner="{ loading }">
@@ -95,9 +91,7 @@
95
91
  </div>
96
92
  </template>
97
93
  <template #list-footer>
98
- <li ref="load" class="loader" v-show="hasNextPage">
99
- Loading more options...
100
- </li>
94
+ <li ref="load" class="loader" v-show="hasNextPage">Loading more options...</li>
101
95
  </template>
102
96
  </v-select>
103
97
  <p v-if="!isValidate" class="mt-2 text-sm text-red-600">
@@ -190,10 +184,7 @@ export default {
190
184
  data() {
191
185
  return {
192
186
  loaderSearching: true,
193
- value:
194
- this.optionsSelected && this.optionsSelected.length
195
- ? this.optionsSelected
196
- : [],
187
+ value: this.optionsSelected && this.optionsSelected.length ? this.optionsSelected : [],
197
188
  observer: null,
198
189
  };
199
190
  },
@@ -247,7 +238,7 @@ export default {
247
238
  @apply cursor-pointer;
248
239
  }
249
240
  .vs__dropdown-toggle {
250
- @apply w-full rounded-md border border-gray-300 bg-white py-2 pl-3 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm;
241
+ @apply focus:outline-none w-full rounded-md border border-gray-300 bg-white py-2 pl-3 text-left shadow-sm focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 sm:text-sm;
251
242
  }
252
243
  .vs__selected-options {
253
244
  @apply flex-nowrap overflow-hidden;
@@ -257,7 +248,7 @@ export default {
257
248
  @apply rounded-b-md;
258
249
  }
259
250
  .vs__selected {
260
- @apply m-0 mr-1 border-none py-0 pl-0 pr-1.5;
251
+ @apply m-0 mr-1 border-none py-0 pl-1.5 pr-1.5;
261
252
  }
262
253
  .vs__selected-options {
263
254
  @apply pl-0;
@@ -270,7 +261,7 @@ export default {
270
261
  @apply pt-0 pr-3;
271
262
  }
272
263
  .vs__dropdown-menu {
273
- @apply mt-2 max-h-60 overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-opacity-5 focus:outline-none sm:text-sm;
264
+ @apply focus:outline-none mt-2 max-h-60 overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-opacity-5 sm:text-sm;
274
265
  }
275
266
  .vs__dropdown-option {
276
267
  @apply py-2;
package/src/icons.js CHANGED
@@ -24,7 +24,7 @@ export default {
24
24
  calendar:
25
25
  "M12,19a1,1,0,1,0-1-1A1,1,0,0,0,12,19Zm5,0a1,1,0,1,0-1-1A1,1,0,0,0,17,19Zm0-4a1,1,0,1,0-1-1A1,1,0,0,0,17,15Zm-5,0a1,1,0,1,0-1-1A1,1,0,0,0,12,15ZM19,3H18V2a1,1,0,0,0-2,0V3H8V2A1,1,0,0,0,6,2V3H5A3,3,0,0,0,2,6V20a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V6A3,3,0,0,0,19,3Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V11H20ZM20,9H4V6A1,1,0,0,1,5,5H6V6A1,1,0,0,0,8,6V5h8V6a1,1,0,0,0,2,0V5h1a1,1,0,0,1,1,1ZM7,15a1,1,0,1,0-1-1A1,1,0,0,0,7,15Zm0,4a1,1,0,1,0-1-1A1,1,0,0,0,7,19Z",
26
26
  users:
27
- "M12.3,12.22A4.92,4.92,0,0,0,14,8.5a5,5,0,0,0-10,0,4.92,4.92,0,0,0,1.7,3.72A8,8,0,0,0,1,19.5a1,1,0,0,0,2,0,6,6,0,0,1,12,0,1,1,0,0,0,2,0A8,8,0,0,0,12.3,12.22ZM9,11.5a3,3,0,1,1,3-3A3,3,0,0,1,9,11.5Zm9.74.32A5,5,0,0,0,15,3.5a1,1,0,0,0,0,2,3,3,0,0,1,3,3,3,3,0,0,1-1.5,2.59,1,1,0,0,0-.5.84,1,1,0,0,0,.45.86l.39.26.13.07a7,7,0,0,1,4,6.38,1,1,0,0,0,2,0A9,9,0,0,0,18.74,11.82Z",
27
+ "M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z",
28
28
  subjects:
29
29
  "M10,13H3a1,1,0,0,0-1,1v7a1,1,0,0,0,1,1h7a1,1,0,0,0,1-1V14A1,1,0,0,0,10,13ZM9,20H4V15H9ZM21,2H14a1,1,0,0,0-1,1v7a1,1,0,0,0,1,1h7a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,9H15V4h5Zm1,4H14a1,1,0,0,0-1,1v7a1,1,0,0,0,1,1h7a1,1,0,0,0,1-1V14A1,1,0,0,0,21,13Zm-1,7H15V15h5ZM10,2H3A1,1,0,0,0,2,3v7a1,1,0,0,0,1,1h7a1,1,0,0,0,1-1V3A1,1,0,0,0,10,2ZM9,9H4V4H9Z",
30
30
  resources:
@@ -149,6 +149,8 @@ export default {
149
149
  "M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z",
150
150
  "document-duplicate-solid":
151
151
  "M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z M3 8a2 2 0 012-2v10h8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z",
152
+ "duplicate-solid":
153
+ "M7 9a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H9a2 2 0 01-2-2V9z M5 3a2 2 0 00-2 2v6a2 2 0 002 2V5h8a2 2 0 00-2-2H5z",
152
154
  "pencil-alt-solid":
153
155
  "M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",
154
156
  "user-add-solid":