@kiva/kv-components 3.55.2 → 3.56.0

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,17 @@
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.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.55.2...@kiva/kv-components@3.56.0) (2024-03-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * update vote card to be able to hide percentage portion of card ([11c15b8](https://github.com/kiva/kv-ui-elements/commit/11c15b84b939f1a1781c5a24a6dbfd2be378c096))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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
18
 
8
19
 
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.0",
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": "2850cb1cba0104d44adfeee72211deadfbd29a14"
79
79
  }
@@ -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>
@@ -99,6 +103,10 @@ export default {
99
103
  type: Boolean,
100
104
  default: true,
101
105
  },
106
+ showPercentage: {
107
+ type: Boolean,
108
+ default: true,
109
+ },
102
110
  },
103
111
  setup() {
104
112
  const mapMarkerIcon = computed(() => mdiMapMarker);