@kiva/kv-components 3.55.2 → 3.56.1

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,28 @@
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
+ ## [3.56.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.56.0...@kiva/kv-components@3.56.1) (2024-03-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * remove country from voting card ([fee3dcb](https://github.com/kiva/kv-ui-elements/commit/fee3dcb7af0fd103dedca70c14448cfab91c66eb))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.56.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.55.2...@kiva/kv-components@3.56.0) (2024-03-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * update vote card to be able to hide percentage portion of card ([11c15b8](https://github.com/kiva/kv-ui-elements/commit/11c15b84b939f1a1781c5a24a6dbfd2be378c096))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.55.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.55.1...@kiva/kv-components@3.55.2) (2024-03-01)
7
29
 
8
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.55.2",
3
+ "version": "3.56.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,5 +75,5 @@
75
75
  "optional": true
76
76
  }
77
77
  },
78
- "gitHead": "a4e1a58a5c50681cca58459149abcb88ba99d572"
78
+ "gitHead": "a4c0454e23210ca7c03c8d0a4b09b910f21fa35f"
79
79
  }
@@ -32,7 +32,7 @@
32
32
  :icon="mapMarkerIcon"
33
33
  />
34
34
  <div>
35
- {{ borrowerName }}, {{ country }}
35
+ {{ borrowerName }}
36
36
  </div>
37
37
  </div>
38
38
  </div>
@@ -42,11 +42,15 @@
42
42
  </h3>
43
43
  <div class="tw-flex tw-items-center tw-w-full tw-mb-1">
44
44
  <kv-progress-bar
45
+ v-if="showPercentage"
45
46
  class="tw-flex-grow"
46
47
  :aria-label="'Percent of votes for ' + category"
47
48
  :value="percentage"
48
49
  />
49
- <div class="tw-ml-2 tw-font-medium">
50
+ <div
51
+ v-if="showPercentage"
52
+ class="tw-ml-2 tw-font-medium"
53
+ >
50
54
  {{ percentage }}%
51
55
  </div>
52
56
  </div>
@@ -79,10 +83,6 @@ export default {
79
83
  type: String,
80
84
  default: '',
81
85
  },
82
- country: {
83
- type: String,
84
- default: '',
85
- },
86
86
  category: {
87
87
  type: String,
88
88
  default: '',
@@ -99,6 +99,10 @@ export default {
99
99
  type: Boolean,
100
100
  default: true,
101
101
  },
102
+ showPercentage: {
103
+ type: Boolean,
104
+ default: true,
105
+ },
102
106
  },
103
107
  setup() {
104
108
  const mapMarkerIcon = computed(() => mdiMapMarker);
@@ -26,7 +26,6 @@ const Template = (args) => ({
26
26
  export const Default = Template.bind({});
27
27
  Default.args = {
28
28
  borrowerName: 'Jacqueline',
29
- country: 'Rwanda',
30
29
  category: 'Women-owned retail businesses',
31
30
  percentage: 45,
32
31
  showVoteButton: true,