classcard-ui 0.2.928 → 0.2.930

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.928",
3
+ "version": "0.2.930",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -93,14 +93,15 @@
93
93
  >
94
94
  <div
95
95
  v-if="toggleDropdown && !isDisabled"
96
- class="absolute z-10 mt-1 w-full rounded-md bg-white shadow-lg"
97
- :class="dropDownToTop"
96
+ :class="`${dropDownToTop} absolute z-10 mt-1 ${
97
+ customWidth ? customWidth : 'w-full'
98
+ } rounded-md bg-white shadow-lg`"
98
99
  >
99
100
  <ul
100
101
  tabindex="-1"
101
102
  role="listbox"
102
103
  aria-labelledby="listbox-label"
103
- class="focus:outline-none max-h-60 overflow-auto rounded-md py-1 text-base ring-1 ring-gray-900 ring-opacity-5 sm:text-sm"
104
+ class="max-h-60 overflow-auto rounded-md py-1 text-base ring-1 ring-gray-900 ring-opacity-5 focus:outline-none sm:text-sm"
104
105
  :class="dropDownToTop2"
105
106
  @mousedown="handlePreventBlur"
106
107
  >
@@ -177,14 +178,14 @@
177
178
  </ul>
178
179
  </div>
179
180
  </transition>
180
- <!-- validation error message -->
181
- <p v-if="!isValidate" class="mt-2 text-left text-sm text-red-600">
182
- {{ errorMessage }}
183
- </p>
184
181
  <p v-if="helpText" class="mt-2 text-left text-sm text-gray-500">
185
182
  {{ helpText }}
186
183
  </p>
187
184
  </div>
185
+ <!-- validation error message -->
186
+ <p v-if="!isValidate" class="mt-2 text-left text-sm text-red-600">
187
+ {{ errorMessage }}
188
+ </p>
188
189
  </div>
189
190
  </template>
190
191
  <script>
@@ -276,6 +277,11 @@ export default {
276
277
  type: String,
277
278
  default: "",
278
279
  },
280
+ // customised width for the dropdown
281
+ customWidth: {
282
+ type: String,
283
+ default: null,
284
+ },
279
285
  },
280
286
  data() {
281
287
  return {
@@ -17,7 +17,7 @@
17
17
  type="button"
18
18
  class="focus:outline-none inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
19
19
  @click="initFilestack()"
20
- v-if="(displayMode == 'overlay' || displayMode == 'inline') && icon"
20
+ v-if="displayMode == 'overlay' && icon"
21
21
  >
22
22
  <c-icon
23
23
  :type="icon.type"