@teammodlr/ui-kit 2.3.19 → 2.3.21

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": "@teammodlr/ui-kit",
3
- "version": "2.3.19",
3
+ "version": "2.3.21",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.es.js",
@@ -38,7 +38,7 @@
38
38
  <Transition :enter-active-class="scale.enterActive" :leave-active-class="scale.leaveActive"
39
39
  :enter-from-class="scale.enterFrom" :leave-to-class="scale.leaveTo">
40
40
  <div :class="style.menu" v-if="isOpen" ref="popper" :style="computedConsistentWidth"
41
- :aria-hidden="isOpen ? 'false' : 'true'">
41
+ :aria-hidden="isOpen ? 'false' : 'true'" :data-element="`select-menu-overlay-${id}`">
42
42
  <div v-if="searchable || (multiple && selectAll)" :class="style.search">
43
43
  <div v-if="multiple && selectAll" :class="style.checkAll">
44
44
  <button role="button" type="button" :class="{
@@ -61,7 +61,7 @@
61
61
  </button>
62
62
  </div>
63
63
  <input v-if="searchable" type="text" ref="searchRef" v-model="search" placeholder="Search"
64
- :class="style.searchInput" />
64
+ :class="style.searchInput" :data-input="`select-menu-search-${id}`" />
65
65
  </div>
66
66
  <div :class="style.options">
67
67
  <div v-for="(option, index) in computedOptions" :key="index" ref="optionsRef" :class="{
@@ -69,7 +69,9 @@
69
69
  [style.optionSelected]: option.active,
70
70
  [style.optionFocused]:
71
71
  selectedIndex === index
72
- }" @click.prevent="option.onClick" @hover="selectedIndex = index">
72
+ }" @click.prevent="option.onClick" @hover="selectedIndex = index"
73
+ :data-element="`select-menu-option-${id}-${option.value}`"
74
+ >
73
75
  <span :class="style.optionIcon">
74
76
  <svg v-if="option.active" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
75
77
  fill="currentColor" aria-hidden="true">
@@ -195,6 +197,10 @@ export default defineComponent({
195
197
  zIndex: {
196
198
  type: Number
197
199
  },
200
+ showDataOptions: {
201
+ type: Boolean,
202
+ default: true
203
+ },
198
204
  'onUpdate:value': [Function, Array] as PropType<MaybeArray<OnUpdateValue> | undefined>,
199
205
  onUpdateValue: [Function, Array] as PropType<MaybeArray<OnUpdateValue> | undefined>,
200
206
  },