@kiva/kv-components 3.76.0 → 3.77.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.77.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.76.0...@kiva/kv-components@3.77.0) (2024-05-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * clickable activity tag ([#397](https://github.com/kiva/kv-ui-elements/issues/397)) ([0b808a5](https://github.com/kiva/kv-ui-elements/commit/0b808a591d1b6f43c12df8f6f54920cd77f59125))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.76.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.75.2...@kiva/kv-components@3.76.0) (2024-05-02)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.76.0",
3
+ "version": "3.77.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": "ce82b62dfa049f7d87108079164dea930b193bb7"
78
+ "gitHead": "55a76b52fec99dd56e0f1203a6dd8dd2f0d25370"
79
79
  }
@@ -60,7 +60,7 @@ export default {
60
60
  } = toRefs(props);
61
61
 
62
62
  const isClickable = (tag) => {
63
- const clickableTypes = ['sector', 'tag', 'attribute'];
63
+ const clickableTypes = ['sector', 'tag', 'attribute', 'activity'];
64
64
  const isClickableType = clickableTypes.includes(tag.type);
65
65
 
66
66
  return enableClickable.value && isClickableType && !!tag.id;
@@ -24,10 +24,11 @@ export const Default = story({ callouts: [{ label: 'callout 1' }, { label: 'call
24
24
 
25
25
  export const Clickable = story({
26
26
  callouts: [
27
- { label: 'callout 2' },
28
- { id: 33, label: 'callout 3', type: 'sector' },
29
- { id: null, label: 'callout 4', type: 'tag' },
30
- { id: 12, label: 'callout 5', type: 'attribute' },
27
+ { label: 'callout 1' },
28
+ { id: 33, label: 'callout 2', type: 'sector' },
29
+ { id: null, label: 'callout 3', type: 'tag' },
30
+ { id: 12, label: 'callout 4', type: 'attribute' },
31
+ { id: 9, label: 'callout 5', type: 'activity' },
31
32
  ],
32
33
  enableClickable: true,
33
34
  });