@kiva/kv-components 3.67.0 → 3.68.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.68.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.67.0...@kiva/kv-components@3.68.0) (2024-03-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * info icon added to voting card ([cd7eb7e](https://github.com/kiva/kv-ui-elements/commit/cd7eb7ed944637871c45bd0644b20f18b2184401))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.67.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.66.2...@kiva/kv-components@3.67.0) (2024-03-25)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.67.0",
3
+ "version": "3.68.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": "b61be5f29c5f88d0189765d0b338cac26544fd04"
78
+ "gitHead": "aa300cb6a0301e340f4e953268a0b86b2db27176"
79
79
  }
@@ -35,10 +35,17 @@
35
35
  </div>
36
36
  </div>
37
37
  </div>
38
-
39
- <h3 class="tw-font-medium">
40
- {{ category }}
41
- </h3>
38
+ <div class="tw-flex">
39
+ <h3 class="tw-font-medium">
40
+ {{ category }}
41
+ </h3>
42
+ <kv-material-icon
43
+ v-if="showInfoIcon"
44
+ :icon="infoIcon"
45
+ class="tw-h-3 tw-w-3"
46
+ @click="handleInfoClick"
47
+ />
48
+ </div>
42
49
  <div class="tw-flex tw-items-center tw-w-full tw-mb-1">
43
50
  <kv-progress-bar
44
51
  v-if="showPercentage"
@@ -64,7 +71,7 @@
64
71
  </template>
65
72
 
66
73
  <script>
67
- import { mdiMapMarker } from '@mdi/js';
74
+ import { mdiInformation, mdiMapMarker } from '@mdi/js';
68
75
  import { computed } from 'vue-demi';
69
76
  import KvProgressBar from './KvProgressBar.vue';
70
77
  import KvButton from './KvButton.vue';
@@ -102,11 +109,17 @@ export default {
102
109
  type: Boolean,
103
110
  default: true,
104
111
  },
112
+ showInfoIcon: {
113
+ type: Boolean,
114
+ default: false,
115
+ },
105
116
  },
106
117
  setup() {
107
118
  const mapMarkerIcon = computed(() => mdiMapMarker);
119
+ const infoIcon = computed(() => mdiInformation);
108
120
  return {
109
121
  mapMarkerIcon,
122
+ infoIcon,
110
123
  };
111
124
  },
112
125
 
@@ -116,6 +129,11 @@ export default {
116
129
  category: this.category,
117
130
  });
118
131
  },
132
+ handleInfoClick() {
133
+ this.$emit('info-click', {
134
+ category: this.category,
135
+ });
136
+ },
119
137
  },
120
138
  };
121
139
  </script>
@@ -29,4 +29,5 @@ Default.args = {
29
29
  category: 'Women-owned retail businesses',
30
30
  percentage: 45,
31
31
  showVoteButton: true,
32
+ showInfoIcon: true,
32
33
  };