@kiva/kv-components 3.66.1 → 3.67.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,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.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
+
8
+
9
+ ### Features
10
+
11
+ * inline activity feed amount lent updated ([#376](https://github.com/kiva/kv-ui-elements/issues/376)) ([cdb52ec](https://github.com/kiva/kv-ui-elements/commit/cdb52ec5e85f258efbf5c5e44952523cb0dd454a))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.66.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.66.1...@kiva/kv-components@3.66.2) (2024-03-22)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * loan card bug fixed ([#375](https://github.com/kiva/kv-ui-elements/issues/375)) ([724be25](https://github.com/kiva/kv-ui-elements/commit/724be2519ed7ee176a6c1fbe8c47b4fb9a825dc7))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.66.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.66.0...@kiva/kv-components@3.66.1) (2024-03-21)
7
29
 
8
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.66.1",
3
+ "version": "3.67.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": "ee224b843c6a3a25266034ae2215759ff0462016"
78
+ "gitHead": "b61be5f29c5f88d0189765d0b338cac26544fd04"
79
79
  }
@@ -177,22 +177,24 @@
177
177
  />
178
178
  </div>
179
179
 
180
- <component
181
- :is="tag"
182
- v-if="unreservedAmount > 0"
183
- :to="readMorePath"
184
- :href="readMorePath"
185
- class="loan-card-progress tw-mt-1"
186
- aria-label="Loan progress"
187
- @click="clickReadMore('Progress')"
188
- >
189
- <kv-loan-progress-group
190
- id="loanProgress"
191
- :money-left="`${unreservedAmount}`"
192
- :progress-percent="fundraisingPercent"
193
- class="tw-text-black"
194
- />
195
- </component>
180
+ <div>
181
+ <component
182
+ :is="tag"
183
+ v-if="unreservedAmount > 0"
184
+ :to="readMorePath"
185
+ :href="readMorePath"
186
+ class="loan-card-progress tw-mt-1"
187
+ aria-label="Loan progress"
188
+ @click="clickReadMore('Progress')"
189
+ >
190
+ <kv-loan-progress-group
191
+ id="loanProgress"
192
+ :money-left="`${unreservedAmount}`"
193
+ :progress-percent="fundraisingPercent"
194
+ class="tw-text-black"
195
+ />
196
+ </component>
197
+ </div>
196
198
 
197
199
  <!-- CTA Button -->
198
200
  <kv-loading-placeholder
@@ -40,7 +40,7 @@ export default {
40
40
  const lenderName = computed(() => activity?.value?.lender?.name ?? '');
41
41
  const lenderImageUrl = computed(() => activity?.value?.lender?.image?.url ?? '');
42
42
  const amountLent = computed(() => {
43
- const amount = activity?.value?.shareAmount ?? '';
43
+ const amount = activity?.value?.amountLent ?? 0;
44
44
  return parseFloat(amount).toFixed();
45
45
  });
46
46
 
@@ -28,7 +28,7 @@ export const Default = story({
28
28
  },
29
29
  name: 'Roger',
30
30
  },
31
- shareAmount: '125.00',
31
+ amountLent: '125.00',
32
32
  },
33
33
  });
34
34
 
@@ -40,7 +40,7 @@ export const NoImage = story({
40
40
  },
41
41
  name: 'Roger',
42
42
  },
43
- shareAmount: '75.00',
43
+ amountLent: '75.00',
44
44
  },
45
45
  });
46
46
 
@@ -52,7 +52,7 @@ export const Anonymous = story({
52
52
  },
53
53
  name: 'Anonymous',
54
54
  },
55
- shareAmount: '5.00',
55
+ amountLent: '5.00',
56
56
  },
57
57
  });
58
58
 
@@ -64,6 +64,6 @@ export const DefaultProfile = story({
64
64
  },
65
65
  name: 'Default Profile',
66
66
  },
67
- shareAmount: '25.00',
67
+ amountLent: '25.00',
68
68
  },
69
69
  });
@@ -9,7 +9,7 @@ const activities = [
9
9
  url: 'https://www-0.development.kiva.org/img/s100/6b1a24092be3aaa22216874e644a4acf.jpg',
10
10
  },
11
11
  },
12
- shareAmount: '25.00',
12
+ amountLent: '25.00',
13
13
  },
14
14
  {
15
15
  lender: {
@@ -19,7 +19,7 @@ const activities = [
19
19
  url: '',
20
20
  },
21
21
  },
22
- shareAmount: '25.00',
22
+ amountLent: '25.00',
23
23
  },
24
24
  {
25
25
  lender: {
@@ -29,7 +29,7 @@ const activities = [
29
29
  url: 'https://www-0.development.kiva.org/img/s100/6b1a24092be3aaa22216874e644a4acf.jpg',
30
30
  },
31
31
  },
32
- shareAmount: '25.00',
32
+ amountLent: '25.00',
33
33
  },
34
34
  {
35
35
  lender: {
@@ -39,7 +39,7 @@ const activities = [
39
39
  url: 'https://www-0.development.kiva.org/img/s100/4d844ac2c0b77a8a522741b908ea5c32.jpg',
40
40
  },
41
41
  },
42
- shareAmount: '25.00',
42
+ amountLent: '25.00',
43
43
  },
44
44
  {
45
45
  lender: {
@@ -49,7 +49,7 @@ const activities = [
49
49
  url: 'https://www-0.development.kiva.org/img/s100/6b1a24092be3aaa22216874e644a4acf.jpg',
50
50
  },
51
51
  },
52
- shareAmount: '25.00',
52
+ amountLent: '25.00',
53
53
  },
54
54
  ];
55
55