@kiva/kv-components 1.4.0 → 1.4.4

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 CHANGED
@@ -3,6 +3,47 @@
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.4](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.3...@kiva/kv-components@1.4.4) (2022-01-11)
7
+
8
+ **Note:** Version bump only for package @kiva/kv-components
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **KvButton:** fix loading spinner positioning in Safari ([3bfb687](https://github.com/kiva/kv-ui-elements/commit/3bfb68754b0cf9a119e5666a7dd08bc851ae2411))
20
+ * **KvSelect:** fix icon sizing in Safari ([58026af](https://github.com/kiva/kv-ui-elements/commit/58026af41e958024606edcfe458b4ec29264828c))
21
+ * **KvSwitch:** fix positioning in Safari ([d3cce11](https://github.com/kiva/kv-ui-elements/commit/d3cce113fe7801c798e3303dd52580c44afeff64))
22
+ * **KvTextInput:** fix icon sizing in Safari ([7f52581](https://github.com/kiva/kv-ui-elements/commit/7f52581b671ebecd094f455102fda0b685d26bda))
23
+
24
+
25
+
26
+
27
+
28
+ ## [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)
29
+
30
+ **Note:** Version bump only for package @kiva/kv-components
31
+
32
+
33
+
34
+
35
+
36
+ ## [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)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **KvTextInput:** watch for value prop changes ([ffa6c6d](https://github.com/kiva/kv-ui-elements/commit/ffa6c6dda548af021f1472e81469d7fc3a3c0a11))
42
+
43
+
44
+
45
+
46
+
6
47
  # [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)
7
48
 
8
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "1.4.0",
3
+ "version": "1.4.4",
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.2.1",
49
+ "@kiva/kv-tokens": "^1.3.1",
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": "bd8e32aeadb80c9767a72d5cf10c5e290d615ca7"
57
+ "gitHead": "0d6beaa042d85c7035cc5f8a436d233e71c4afaa"
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--mx-4 tw-z-0"
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
@@ -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 tw-pointer-events-none tw-text-danger"
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
- /** canClear prop
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
  /**