@avakhula/ui 0.1.17 → 0.1.19

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": "@avakhula/ui",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -5,7 +5,7 @@
5
5
  @mixin DropdownListItem {
6
6
  .ib-dropdown-item {
7
7
  @include Ib-H4-regular;
8
- padding: 8.5px 15px 13px;
8
+ padding: 8.5px 15px;
9
9
  background-color: transparent;
10
10
  border: none;
11
11
  border-left: 2px solid transparent;
@@ -7,7 +7,7 @@
7
7
  tabindex="0"
8
8
  >
9
9
  <p>
10
- <div class="dropdown-item-icon">
10
+ <div v-show="$slots.icon" class="dropdown-item-icon">
11
11
  <slot name="icon"></slot>
12
12
  </div>
13
13
  <slot ref="slot"></slot>
@@ -16,7 +16,9 @@
16
16
  >
17
17
  <ib-icon class="tab-icon" v-if="tab.icon" :name="tab.icon" />
18
18
 
19
- {{ tab.title }}
19
+ <template v-if="showTitle">
20
+ {{ tab.title }}
21
+ </template>
20
22
  </a>
21
23
  </div>
22
24
  <ib-tab-dropdown
@@ -41,6 +43,10 @@ import getHrefFromId from "../../helpers/getHrefFromID";
41
43
  export default {
42
44
  name: "IbTabs",
43
45
  props: {
46
+ showTitle: {
47
+ type: Boolean,
48
+ default: true,
49
+ },
44
50
  selectedTabId: {
45
51
  type: String,
46
52
  default: "",
@@ -981,7 +981,8 @@ export default {
981
981
  },
982
982
  onClose() {
983
983
  this.isOpen = false;
984
- this.filter("", this.actualOptions);
984
+ this.filterString = "";
985
+ this.filterFunc(this.actualOptions, this.filterString);
985
986
 
986
987
  if (this.isMultiple) {
987
988
  this.$emit("close", Object.keys(this.selected));