@avakhula/ui 0.0.216 → 0.0.218

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.216",
3
+ "version": "0.0.218",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -29,7 +29,16 @@ const Template = (args) => ({
29
29
  template: `
30
30
  <ib-sorting
31
31
  v-bind="args"
32
- />
32
+ toggle-tip-title="test"
33
+ >
34
+ <template #toggleTipBody>
35
+ dfsdfsdf
36
+ </template>
37
+
38
+ <template #toggleTipButtons>
39
+ fsdfsd
40
+ </template>
41
+ </ib-sorting>
33
42
  `,
34
43
  });
35
44
 
@@ -12,8 +12,9 @@
12
12
  <button
13
13
  v-tooltip:[tooltipPosition]="tooltipText"
14
14
  class="sorting-label"
15
+ :class="{'sorting-label-active': isOpenToggleTip}"
15
16
  type="button"
16
- @click="isOpenToggleTip = true"
17
+ @click="isOpenToggleTip = !isOpenToggleTip"
17
18
  >
18
19
  {{ title }}
19
20
  </button>
@@ -40,6 +40,7 @@ button {
40
40
  background-color: $blue-100;
41
41
  }
42
42
 
43
+ &.sorting-label-active,
43
44
  &:active {
44
45
  border-color: transparent;
45
46
  color: $blue-900;
@@ -26,7 +26,7 @@ const Template = (args) => ({
26
26
  },
27
27
  template: `
28
28
  <ib-split-button v-bind="args">
29
- <ib-split-button-item>Button 1</ib-split-button-item>
29
+ <ib-split-button-item href="#">Button 1</ib-split-button-item>
30
30
  <ib-split-button-item>Button 2</ib-split-button-item>
31
31
  <ib-split-button-item>Button 3</ib-split-button-item>
32
32
  <ib-split-button-item href="#">Link 4</ib-split-button-item>
@@ -11,10 +11,11 @@
11
11
 
12
12
  <a
13
13
  v-else
14
- :disabled="disabled"
15
14
  class="split-button-main"
16
15
  :class="{ disabled }"
16
+ :disabled="disabled"
17
17
  v-bind="mainButtonAttrs"
18
+ @click="onClickLink"
18
19
  >
19
20
  {{ content }}
20
21
  </a>
@@ -110,6 +111,12 @@ export default {
110
111
  this.childList[this.activeElemIdx].classList.add("active");
111
112
  this.content = this.childList[this.activeElemIdx].textContent;
112
113
  },
114
+ onClickLink(e) {
115
+ if (this.disabled) {
116
+ e.preventDefault();
117
+ return;
118
+ }
119
+ }
113
120
  },
114
121
  computed: {
115
122
  classes() {
@@ -90,6 +90,7 @@ $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;
93
94
  }
94
95
  }
95
96
 
@@ -111,6 +112,7 @@ $danger-split-button-active-bg: $red-900;
111
112
  &:disabled {
112
113
  background-color: $split-button-disabled-bg;
113
114
  color: $split-button-disabled-color;
115
+ cursor: not-allowed;
114
116
  }
115
117
  }
116
118
  }
@@ -134,6 +136,7 @@ $danger-split-button-active-bg: $red-900;
134
136
  &:disabled {
135
137
  background-color: $split-button-disabled-bg;
136
138
  color: $split-button-disabled-color;
139
+ cursor: not-allowed;
137
140
  }
138
141
  }
139
142
 
@@ -155,6 +158,7 @@ $danger-split-button-active-bg: $red-900;
155
158
  &:disabled{
156
159
  background-color: $split-button-disabled-bg;
157
160
  color: $split-button-disabled-color;
161
+ cursor: not-allowed;
158
162
  }
159
163
  }
160
164
  }