@avakhula/ui 0.0.218 → 0.0.219

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.0.218",
3
+ "version": "0.0.219",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -29,16 +29,7 @@ const Template = (args) => ({
29
29
  template: `
30
30
  <ib-sorting
31
31
  v-bind="args"
32
- toggle-tip-title="test"
33
- >
34
- <template #toggleTipBody>
35
- dfsdfsdf
36
- </template>
37
-
38
- <template #toggleTipButtons>
39
- fsdfsd
40
- </template>
41
- </ib-sorting>
32
+ />
42
33
  `,
43
34
  });
44
35
 
@@ -10,7 +10,7 @@
10
10
  >
11
11
  <div>
12
12
  <button
13
- v-tooltip:[tooltipPosition]="tooltipText"
13
+ v-tooltip:[tooltipPosition]="tooltipContent"
14
14
  class="sorting-label"
15
15
  :class="{'sorting-label-active': isOpenToggleTip}"
16
16
  type="button"
@@ -70,6 +70,9 @@ import { TooltipDirective as Tooltip } from "../../directives/tooltip/tooltip";
70
70
  export default {
71
71
  name: "IbSorting",
72
72
  props: {
73
+ tooltipTitle: {
74
+ type: String,
75
+ },
73
76
  tooltipText: {
74
77
  type: String,
75
78
  },
@@ -156,6 +159,16 @@ export default {
156
159
  }
157
160
  return "";
158
161
  },
162
+ tooltipContent() {
163
+ if (this.tooltipTitle) {
164
+ return {
165
+ title: this.tooltipTitle,
166
+ text: this.tooltipText
167
+ }
168
+ }
169
+
170
+ return this.tooltipText;
171
+ },
159
172
  hasToggleTip() {
160
173
  return (
161
174
  this.toggleTipTitle &&
@@ -90,7 +90,6 @@ $danger-split-button-active-bg: $red-900;
90
90
  &:disabled {
91
91
  background-color: $split-button-disabled-bg;
92
92
  color: $split-button-disabled-color;
93
- cursor: not-allowed;
94
93
  }
95
94
  }
96
95