@avakhula/ui 0.0.218 → 0.0.220

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.220",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -63,6 +63,7 @@
63
63
  border-color: $blue-300;
64
64
  }
65
65
 
66
+ &.active,
66
67
  &:active {
67
68
  border-color: transparent;
68
69
  color: $blue-900;
@@ -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,10 @@ 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
+ default: ''
76
+ },
73
77
  tooltipText: {
74
78
  type: String,
75
79
  },
@@ -156,6 +160,16 @@ export default {
156
160
  }
157
161
  return "";
158
162
  },
163
+ tooltipContent() {
164
+ if (this.tooltipTitle.length) {
165
+ return {
166
+ title: this.tooltipTitle,
167
+ text: this.tooltipText
168
+ }
169
+ }
170
+
171
+ return this.tooltipText;
172
+ },
159
173
  hasToggleTip() {
160
174
  return (
161
175
  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