@kiva/kv-components 3.55.1 → 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 +22 -0
- package/package.json +2 -2
- package/vue/KvCommentsList.vue +2 -1
- package/vue/KvCommentsListItem.vue +1 -1
- package/vue/KvVotingCard.vue +9 -1
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.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
|
+
|
|
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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* remove const var import ([#352](https://github.com/kiva/kv-ui-elements/issues/352)) ([4c1ca6a](https://github.com/kiva/kv-ui-elements/commit/4c1ca6a2d518ce1b1b72933b5f5296513d352fa2))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [3.55.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.55.0...@kiva/kv-components@3.55.1) (2024-02-29)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @kiva/kv-components
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "3.
|
|
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": "
|
|
78
|
+
"gitHead": "2850cb1cba0104d44adfeee72211deadfbd29a14"
|
|
79
79
|
}
|
package/vue/KvCommentsList.vue
CHANGED
|
@@ -86,10 +86,10 @@ import {
|
|
|
86
86
|
import KvCommentsReplyButton from './KvCommentsReplyButton.vue';
|
|
87
87
|
import KvCommentsHeartButton from './KvCommentsHeartButton.vue';
|
|
88
88
|
import KvCommentsAdd from './KvCommentsAdd.vue';
|
|
89
|
-
import { ADD_REACTION_EVENT } from './KvCommentsContainer.vue';
|
|
90
89
|
|
|
91
90
|
export const REPLY_COMMENT_EVENT = 'reply-comment';
|
|
92
91
|
export const LIKE_COMMENT_EVENT = 'like-comment';
|
|
92
|
+
const ADD_REACTION_EVENT = 'add-reaction';
|
|
93
93
|
|
|
94
94
|
export default {
|
|
95
95
|
name: 'KvCommentsListItem',
|
package/vue/KvVotingCard.vue
CHANGED
|
@@ -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
|
|
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);
|