@kiva/kv-components 3.90.1 → 3.90.3
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/.storybook/main.js +6 -0
- package/vue/KvFlag.vue +2 -2
- package/vue/KvIntroductionLoanCard.vue +4 -19
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.90.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.90.2...@kiva/kv-components@3.90.3) (2024-08-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* adjust new card styling ([875d701](https://github.com/kiva/kv-ui-elements/commit/875d701b951660444f8d00d7ae1596958df604f3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.90.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.90.1...@kiva/kv-components@3.90.2) (2024-08-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* relative node_modules path broke when imported into another app ([3bb1c5d](https://github.com/kiva/kv-ui-elements/commit/3bb1c5d5db0701c41691bcd588421e6b4dd0ea19))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [3.90.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.90.0...@kiva/kv-components@3.90.1) (2024-08-02)
|
|
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.90.
|
|
3
|
+
"version": "3.90.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"optional": true
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "fd6310c268d93c40279f5c67119c83fc3a74fd3d"
|
|
86
86
|
}
|
package/vue/.storybook/main.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
1
3
|
const config = {
|
|
2
4
|
stories: [
|
|
3
5
|
'../stories/Styleguide.stories.js', // show the base styleguide first
|
|
@@ -62,6 +64,10 @@ const config = {
|
|
|
62
64
|
}
|
|
63
65
|
]
|
|
64
66
|
});
|
|
67
|
+
config.resolve.alias = {
|
|
68
|
+
...config.resolve.alias,
|
|
69
|
+
'~/node_modules': path.resolve(__dirname, '../../../../node_modules/'),
|
|
70
|
+
};
|
|
65
71
|
return config;
|
|
66
72
|
},
|
|
67
73
|
|
package/vue/KvFlag.vue
CHANGED
|
@@ -71,7 +71,7 @@ export default {
|
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
73
|
async setup() {
|
|
74
|
-
const countryList = await import('
|
|
74
|
+
const countryList = await import('~/node_modules/flag-icons/country.json');
|
|
75
75
|
|
|
76
76
|
return {
|
|
77
77
|
countryList,
|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
104
104
|
</script>
|
|
105
105
|
|
|
106
106
|
<style lang="postcss" scoped>
|
|
107
|
-
@import "
|
|
107
|
+
@import "~/node_modules/flag-icons/css/flag-icons.min.css";
|
|
108
108
|
|
|
109
109
|
.kv-flag__wrapper {
|
|
110
110
|
line-height: 0;
|
|
@@ -171,9 +171,7 @@
|
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
173
173
|
|
|
174
|
-
<div
|
|
175
|
-
class="tw-px-1 tw-grow"
|
|
176
|
-
>
|
|
174
|
+
<div class="tw-px-1">
|
|
177
175
|
<!-- Fundraising -->
|
|
178
176
|
<div
|
|
179
177
|
v-if="!hasProgressData"
|
|
@@ -358,18 +356,14 @@ export default {
|
|
|
358
356
|
},
|
|
359
357
|
computed: {
|
|
360
358
|
imageAspectRatio() {
|
|
361
|
-
return
|
|
359
|
+
return 1 / 2;
|
|
362
360
|
},
|
|
363
361
|
imageDefaultWidth() {
|
|
364
|
-
return
|
|
362
|
+
return 500;
|
|
365
363
|
},
|
|
366
364
|
imageSizes() {
|
|
367
365
|
return [
|
|
368
|
-
{ width: this.imageDefaultWidth, viewSize:
|
|
369
|
-
{ width: this.imageDefaultWidth, viewSize: 768 },
|
|
370
|
-
{ width: 416, viewSize: 480 },
|
|
371
|
-
{ width: 374, viewSize: 414 },
|
|
372
|
-
{ width: 335, viewSize: 375 },
|
|
366
|
+
{ width: this.imageDefaultWidth, viewSize: 375 },
|
|
373
367
|
];
|
|
374
368
|
},
|
|
375
369
|
lendersNumber() {
|
|
@@ -389,12 +383,6 @@ export default {
|
|
|
389
383
|
<style lang="postcss" scoped>
|
|
390
384
|
.card-container {
|
|
391
385
|
@apply tw-flex tw-flex-col tw-bg-white tw-rounded tw-w-full tw-pb-1;
|
|
392
|
-
height: 415px;
|
|
393
|
-
}
|
|
394
|
-
@screen md {
|
|
395
|
-
.card-container {
|
|
396
|
-
height: 423px;
|
|
397
|
-
}
|
|
398
386
|
}
|
|
399
387
|
.loan-callouts >>> span {
|
|
400
388
|
@apply !tw-bg-transparent tw-text-brand;
|
|
@@ -410,9 +398,6 @@ export default {
|
|
|
410
398
|
.loan-card-progress:focus {
|
|
411
399
|
@apply tw-no-underline;
|
|
412
400
|
}
|
|
413
|
-
.borrower-image >>> img {
|
|
414
|
-
@apply tw-object-cover;
|
|
415
|
-
}
|
|
416
401
|
.loan-card-name {
|
|
417
402
|
@apply tw-pt-1 tw-px-3 tw-text-ellipsis tw-overflow-hidden tw-line-clamp-1 tw-cursor-pointer;
|
|
418
403
|
}
|