@kiva/kv-components 1.3.0 → 1.4.3
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/CHANGELOG.md +44 -0
- package/package.json +3 -3
- package/vue/KvButton.vue +1 -1
- package/vue/KvSelect.vue +1 -1
- package/vue/KvSwitch.vue +2 -2
- package/vue/KvTextInput.vue +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.4.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.2...@kiva/kv-components@1.4.3) (2022-01-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **KvButton:** fix loading spinner positioning in Safari ([3bfb687](https://github.com/kiva/kv-ui-elements/commit/3bfb68754b0cf9a119e5666a7dd08bc851ae2411))
|
|
12
|
+
* **KvSelect:** fix icon sizing in Safari ([58026af](https://github.com/kiva/kv-ui-elements/commit/58026af41e958024606edcfe458b4ec29264828c))
|
|
13
|
+
* **KvSwitch:** fix positioning in Safari ([d3cce11](https://github.com/kiva/kv-ui-elements/commit/d3cce113fe7801c798e3303dd52580c44afeff64))
|
|
14
|
+
* **KvTextInput:** fix icon sizing in Safari ([7f52581](https://github.com/kiva/kv-ui-elements/commit/7f52581b671ebecd094f455102fda0b685d26bda))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [1.4.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.1...@kiva/kv-components@1.4.2) (2021-12-23)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @kiva/kv-components
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [1.4.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.0...@kiva/kv-components@1.4.1) (2021-12-22)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **KvTextInput:** watch for value prop changes ([ffa6c6d](https://github.com/kiva/kv-ui-elements/commit/ffa6c6dda548af021f1472e81469d7fc3a3c0a11))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# [1.4.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.3.0...@kiva/kv-components@1.4.0) (2021-12-20)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* **KvTextInput:** focus the input after clearing text ([2093abb](https://github.com/kiva/kv-ui-elements/commit/2093abb30dca870c661f5354e043f0c40290ef81))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [1.3.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.2.2...@kiva/kv-components@1.3.0) (2021-12-13)
|
|
7
51
|
|
|
8
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "1.3
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test": "jest"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@kiva/kv-tokens": "^1.
|
|
49
|
+
"@kiva/kv-tokens": "^1.3.0",
|
|
50
50
|
"@mdi/js": "^5.9.55",
|
|
51
51
|
"aria-hidden": "^1.1.3",
|
|
52
52
|
"embla-carousel": "^4.5.3",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"vue": "^2.6.12",
|
|
55
55
|
"vue-focus-lock": "^1.4.1"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "30ab6650be8c6a4a8c9936bf7b09676b67abf759"
|
|
58
58
|
}
|
package/vue/KvButton.vue
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<!-- eslint-enable max-len -->
|
|
23
23
|
<template v-if="state === 'loading'">
|
|
24
24
|
<kv-loading-spinner
|
|
25
|
-
class="tw-absolute tw-w-full tw-text-center tw
|
|
25
|
+
class="tw-absolute tw-w-full tw-text-center tw-z-0"
|
|
26
26
|
:color="loadingColor"
|
|
27
27
|
/>
|
|
28
28
|
</template>
|
package/vue/KvSelect.vue
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</select>
|
|
16
16
|
<kv-material-icon
|
|
17
17
|
:icon="mdiChevronDown"
|
|
18
|
-
class="tw-absolute tw-top-0 tw-right-0 tw-pt-1.5 tw-pr-1 tw-pointer-events-none"
|
|
18
|
+
class="tw-w-4 tw-absolute tw-top-0 tw-right-0 tw-pt-1.5 tw-pr-1 tw-pointer-events-none"
|
|
19
19
|
:class="{ 'tw-opacity-low': disabled }"
|
|
20
20
|
/>
|
|
21
21
|
</div>
|
package/vue/KvSwitch.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<label
|
|
4
|
-
class="tw-inline-flex tw-gap-2 tw-items-center"
|
|
4
|
+
class="tw-inline-flex tw-gap-2 tw-items-center tw-relative"
|
|
5
5
|
:class="{ 'tw-opacity-low': disabled }"
|
|
6
6
|
:for="uuid"
|
|
7
7
|
>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div
|
|
31
31
|
class="
|
|
32
32
|
tw-flex-shrink-0 tw-w-3 tw-h-3
|
|
33
|
-
tw-absolute tw-m-0.5
|
|
33
|
+
tw-absolute tw-m-0.5 tw-top-0
|
|
34
34
|
tw-rounded-full
|
|
35
35
|
tw-bg-white
|
|
36
36
|
tw-transform tw-transition-all tw-ease-in-out
|
package/vue/KvTextInput.vue
CHANGED
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
<kv-material-icon
|
|
39
39
|
v-if="icon"
|
|
40
40
|
:icon="icon"
|
|
41
|
-
class="tw-absolute tw-top-1.5 tw-left-1.5 tw-pointer-events-none"
|
|
41
|
+
class="tw-w-3 tw-h-3 tw-absolute tw-top-1.5 tw-left-1.5 tw-pointer-events-none"
|
|
42
42
|
/>
|
|
43
43
|
<kv-material-icon
|
|
44
44
|
v-if="!valid"
|
|
45
45
|
:icon="mdiAlertCircleOutline"
|
|
46
|
-
class="tw-absolute tw-top-1.5 tw-right-1.5
|
|
46
|
+
class="tw-w-3 tw-h-3 tw-absolute tw-top-1.5 tw-right-1.5
|
|
47
|
+
tw-pointer-events-none tw-text-danger"
|
|
47
48
|
/>
|
|
48
49
|
<button
|
|
49
50
|
v-if="canClear && valid && !!valueInput"
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
>
|
|
54
55
|
<span class="tw-sr-only">clear input</span>
|
|
55
56
|
<kv-material-icon
|
|
57
|
+
class="tw-w-3 tw-h-3"
|
|
56
58
|
:icon="mdiClose"
|
|
57
59
|
/>
|
|
58
60
|
</button>
|
|
@@ -163,7 +165,7 @@ export default {
|
|
|
163
165
|
type: String,
|
|
164
166
|
default: 'text',
|
|
165
167
|
},
|
|
166
|
-
/**
|
|
168
|
+
/**
|
|
167
169
|
* When set to true, adds a button positioned to the right edge of the input containing an “X”
|
|
168
170
|
* */
|
|
169
171
|
canClear: {
|
|
@@ -190,6 +192,11 @@ export default {
|
|
|
190
192
|
},
|
|
191
193
|
|
|
192
194
|
},
|
|
195
|
+
watch: {
|
|
196
|
+
value() {
|
|
197
|
+
this.valueInput = this.value;
|
|
198
|
+
},
|
|
199
|
+
},
|
|
193
200
|
methods: {
|
|
194
201
|
onInput(event) {
|
|
195
202
|
/**
|
|
@@ -209,6 +216,7 @@ export default {
|
|
|
209
216
|
clearInput() {
|
|
210
217
|
this.valueInput = '';
|
|
211
218
|
this.$emit('input', '');
|
|
219
|
+
this.focus();
|
|
212
220
|
},
|
|
213
221
|
},
|
|
214
222
|
};
|