@kiva/kv-components 3.107.0 → 3.107.2
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/dist/components/.storybook/main.js +85 -0
- package/dist/components/.storybook/package.json +3 -0
- package/dist/components/.storybook/preview.js +61 -0
- package/dist/components/.storybook/tailwind.css +5 -0
- package/dist/components/KvAccordionItem.vue +130 -0
- package/dist/components/KvActivityRow.vue +33 -0
- package/dist/components/KvBorrowerImage.vue +179 -0
- package/dist/components/KvButton.vue +287 -0
- package/dist/components/KvCarousel.vue +297 -0
- package/dist/components/KvCartModal.vue +365 -0
- package/dist/components/KvCheckbox.vue +203 -0
- package/dist/components/KvChip.vue +54 -0
- package/dist/components/KvClassicLoanCard.vue +527 -0
- package/dist/components/KvCommentsAdd.vue +135 -0
- package/dist/components/KvCommentsContainer.vue +84 -0
- package/dist/components/KvCommentsHeartButton.vue +70 -0
- package/dist/components/KvCommentsList.vue +68 -0
- package/dist/components/KvCommentsListItem.vue +241 -0
- package/dist/components/KvCommentsReplyButton.vue +52 -0
- package/dist/components/KvContentfulImg.vue +273 -0
- package/dist/components/KvCountdownTimer.vue +59 -0
- package/dist/components/KvExpandable.vue +84 -0
- package/dist/components/KvExpandableQuestion.vue +120 -0
- package/dist/components/KvFlag.vue +120 -0
- package/dist/components/KvGrid.vue +28 -0
- package/dist/components/KvImpactDashboardHeader.vue +40 -0
- package/dist/components/KvInlineActivityCard.vue +55 -0
- package/dist/components/KvInlineActivityFeed.vue +38 -0
- package/dist/components/KvIntroductionLoanCard.vue +446 -0
- package/dist/components/KvLendAmountButton.vue +65 -0
- package/dist/components/KvLendCta.vue +451 -0
- package/dist/components/KvLightbox.vue +334 -0
- package/dist/components/KvLineGraph.vue +128 -0
- package/dist/components/KvLoadingPlaceholder.vue +38 -0
- package/dist/components/KvLoadingSpinner.vue +81 -0
- package/dist/components/KvLoanActivities.vue +268 -0
- package/dist/components/KvLoanBookmark.vue +39 -0
- package/dist/components/KvLoanCallouts.vue +53 -0
- package/dist/components/KvLoanProgressGroup.vue +76 -0
- package/dist/components/KvLoanTag.vue +88 -0
- package/dist/components/KvLoanTeamPick.vue +44 -0
- package/dist/components/KvLoanUse.vue +92 -0
- package/dist/components/KvMap.vue +599 -0
- package/dist/components/KvMaterialIcon.vue +47 -0
- package/dist/components/KvPageContainer.vue +15 -0
- package/dist/components/KvPagination.vue +198 -0
- package/dist/components/KvPieChart.vue +257 -0
- package/dist/components/KvPopper.vue +178 -0
- package/dist/components/KvProgressBar.vue +149 -0
- package/dist/components/KvRadio.vue +198 -0
- package/dist/components/KvSelect.vue +114 -0
- package/dist/components/KvSideSheet.vue +134 -0
- package/dist/components/KvSwitch.vue +143 -0
- package/dist/components/KvTab.vue +90 -0
- package/dist/components/KvTabPanel.vue +64 -0
- package/dist/components/KvTabs.vue +182 -0
- package/dist/components/KvTextInput.vue +247 -0
- package/dist/components/KvTextLink.vue +138 -0
- package/dist/components/KvThemeProvider.vue +122 -0
- package/dist/components/KvToast.vue +221 -0
- package/dist/components/KvTooltip.vue +168 -0
- package/dist/components/KvTreeMapChart.vue +229 -0
- package/dist/components/KvUserAvatar.vue +132 -0
- package/dist/components/KvVerticalCarousel.vue +156 -0
- package/dist/components/KvVotingCard.vue +160 -0
- package/dist/components/KvVotingCardV2.vue +154 -0
- package/dist/components/KvWideLoanCard.vue +432 -0
- package/dist/components/stories/Forms.stories.js +62 -0
- package/dist/components/stories/KvAccordionItem.stories.js +24 -0
- package/dist/components/stories/KvActivityRow.stories.js +25 -0
- package/dist/components/stories/KvBorrowerImage.stories.js +68 -0
- package/dist/components/stories/KvButton.stories.js +144 -0
- package/dist/components/stories/KvCarousel.stories.js +426 -0
- package/dist/components/stories/KvCartModal.stories.js +54 -0
- package/dist/components/stories/KvCheckbox.stories.js +163 -0
- package/dist/components/stories/KvChip.stories.js +43 -0
- package/dist/components/stories/KvClassicLoanCard.stories.js +480 -0
- package/dist/components/stories/KvCommentsAdd.stories.js +32 -0
- package/dist/components/stories/KvCommentsContainer.stories.js +42 -0
- package/dist/components/stories/KvCommentsHeartButton.stories.js +25 -0
- package/dist/components/stories/KvCommentsList.stories.js +39 -0
- package/dist/components/stories/KvCommentsListItem.stories.js +45 -0
- package/dist/components/stories/KvCommentsReplyButton.stories.js +21 -0
- package/dist/components/stories/KvContentfulImg.stories.js +196 -0
- package/dist/components/stories/KvCountdownTimer.stories.js +30 -0
- package/dist/components/stories/KvExpandableQuestion.stories.js +129 -0
- package/dist/components/stories/KvFlag.stories.js +36 -0
- package/dist/components/stories/KvGrid.stories.js +97 -0
- package/dist/components/stories/KvImpactDashboardHeader.stories.js +22 -0
- package/dist/components/stories/KvInlineActivityCard.stories.js +69 -0
- package/dist/components/stories/KvInlineActivityFeed.stories.js +76 -0
- package/dist/components/stories/KvIntroductionLoanCard.stories.js +208 -0
- package/dist/components/stories/KvLendAmountButton.stories.js +31 -0
- package/dist/components/stories/KvLendCta.stories.js +177 -0
- package/dist/components/stories/KvLightbox.stories.js +304 -0
- package/dist/components/stories/KvLineGraph.stories.js +52 -0
- package/dist/components/stories/KvLoadingPlaceholder.stories.js +17 -0
- package/dist/components/stories/KvLoadingSpinner.stories.js +52 -0
- package/dist/components/stories/KvLoanActivities.stories.js +104 -0
- package/dist/components/stories/KvLoanBookmark.stories.js +22 -0
- package/dist/components/stories/KvLoanCallouts.stories.js +22 -0
- package/dist/components/stories/KvLoanProgressGroup.stories.js +29 -0
- package/dist/components/stories/KvLoanTag.stories.js +61 -0
- package/dist/components/stories/KvLoanTeamPick.stories.js +20 -0
- package/dist/components/stories/KvLoanUse.stories.js +60 -0
- package/dist/components/stories/KvMap.stories.js +121 -0
- package/dist/components/stories/KvMaterialIcon.stories.js +201 -0
- package/dist/components/stories/KvPageContainer.stories.js +50 -0
- package/dist/components/stories/KvPagination.stories.js +70 -0
- package/dist/components/stories/KvPieChart.stories.js +47 -0
- package/dist/components/stories/KvProgressBar.stories.js +53 -0
- package/dist/components/stories/KvRadio.stories.js +140 -0
- package/dist/components/stories/KvSelect.stories.js +125 -0
- package/dist/components/stories/KvSideSheet.stories.js +50 -0
- package/dist/components/stories/KvSwitch.stories.js +66 -0
- package/dist/components/stories/KvTabs.stories.js +106 -0
- package/dist/components/stories/KvTextInput.stories.js +194 -0
- package/dist/components/stories/KvTextLink.stories.js +55 -0
- package/dist/components/stories/KvThemeProvider.stories.js +178 -0
- package/dist/components/stories/KvToast.stories.js +117 -0
- package/dist/components/stories/KvTooltip.stories.js +26 -0
- package/dist/components/stories/KvTreeMapChart.stories.js +42 -0
- package/dist/components/stories/KvUserAvatar.stories.js +47 -0
- package/dist/components/stories/KvVerticalCarousel.stories.js +168 -0
- package/dist/components/stories/KvVotingCard.stories.js +33 -0
- package/dist/components/stories/KvVotingCardV2.stories.js +89 -0
- package/dist/components/stories/KvWideLoanCard.stories.js +292 -0
- package/dist/components/stories/StyleguidePrimitives.stories.js +499 -0
- package/dist/components/stories/StyleguideProse.stories.js +215 -0
- package/dist/data/countries-borders.json +1 -0
- package/dist/data/ne_110m_admin_0_countries.json +1 -0
- package/dist/utils/Alea.js +9 -0
- package/dist/utils/attrs.js +7 -0
- package/dist/utils/carousels.js +8 -0
- package/dist/{attrs.js → utils/chunk-3HK4G4NT.js} +1 -0
- package/dist/{loanCard.js → utils/chunk-55HF2ORX.js} +1 -0
- package/dist/{expander.js → utils/chunk-AY3PR5S4.js} +3 -2
- package/dist/{carousels.js → utils/chunk-AZPWOFD5.js} +1 -0
- package/dist/{printing.js → utils/chunk-B5J5WLAH.js} +1 -0
- package/dist/{Alea.js → utils/chunk-GPSH6OPA.js} +2 -1
- package/dist/{scrollLock.js → utils/chunk-HIY5IW65.js} +2 -1
- package/dist/{treemap.js → utils/chunk-MSMZIN54.js} +1 -0
- package/dist/{imageUtils.js → utils/chunk-OXJCCNNW.js} +1 -0
- package/dist/{touchEvents.js → utils/chunk-S3MABILA.js} +3 -2
- package/dist/{mapUtils.js → utils/chunk-VIGEMAKO.js} +5 -4
- package/dist/utils/chunk-YCNMJ4YV.js +37 -0
- package/dist/{loanUtils.js → utils/chunk-YFEC5ODJ.js} +7 -6
- package/dist/utils/expander.js +9 -0
- package/dist/utils/imageUtils.js +9 -0
- package/dist/utils/index.cjs +1118 -0
- package/dist/utils/index.js +166 -0
- package/dist/utils/loanCard.js +9 -0
- package/dist/utils/loanUtils.js +23 -0
- package/dist/utils/mapUtils.js +15 -0
- package/dist/utils/printing.js +9 -0
- package/dist/utils/scrollLock.js +13 -0
- package/dist/{throttle.js → utils/throttle.js} +1 -0
- package/dist/utils/touchEvents.js +11 -0
- package/dist/utils/treemap.js +7 -0
- package/package.json +11 -7
- package/utils/index.js +14 -0
- package/index.js +0 -3
- /package/dist/{Alea.cjs → utils/Alea.cjs} +0 -0
- /package/dist/{attrs.cjs → utils/attrs.cjs} +0 -0
- /package/dist/{carousels.cjs → utils/carousels.cjs} +0 -0
- /package/dist/{chunk-HV3AUBFT.js → utils/chunk-HV3AUBFT.js} +0 -0
- /package/dist/{expander.cjs → utils/expander.cjs} +0 -0
- /package/dist/{imageUtils.cjs → utils/imageUtils.cjs} +0 -0
- /package/dist/{loanCard.cjs → utils/loanCard.cjs} +0 -0
- /package/dist/{loanUtils.cjs → utils/loanUtils.cjs} +0 -0
- /package/dist/{mapUtils.cjs → utils/mapUtils.cjs} +0 -0
- /package/dist/{printing.cjs → utils/printing.cjs} +0 -0
- /package/dist/{scrollLock.cjs → utils/scrollLock.cjs} +0 -0
- /package/dist/{throttle.cjs → utils/throttle.cjs} +0 -0
- /package/dist/{touchEvents.cjs → utils/touchEvents.cjs} +0 -0
- /package/dist/{treemap.cjs → utils/treemap.cjs} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import KvVotingCardV2 from '../KvVotingCardV2.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'KvVotingCardV2',
|
|
5
|
+
component: KvVotingCardV2,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const TemplateDefault = (args) => ({
|
|
9
|
+
components: { KvVotingCardV2 },
|
|
10
|
+
setup() {
|
|
11
|
+
return { args };
|
|
12
|
+
},
|
|
13
|
+
template: `
|
|
14
|
+
<div>
|
|
15
|
+
<kv-voting-card-v2 v-bind="args" @vote="vote"/>
|
|
16
|
+
</div>
|
|
17
|
+
`,
|
|
18
|
+
methods: {
|
|
19
|
+
vote() {
|
|
20
|
+
console.log('vote');
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const TemplateMultiple = () => ({
|
|
26
|
+
components: { KvVotingCardV2 },
|
|
27
|
+
setup() {
|
|
28
|
+
const args1 = {
|
|
29
|
+
title: 'Women owned small businesses',
|
|
30
|
+
description: 'Just half of all women-owned businesses in the U.S. who apply for a loan are approved. Kiva provides access where others don\'t, creating more opportunities for women entrepreneurs.',
|
|
31
|
+
backgroundImageUrl: '//images.ctfassets.net/j0p9a6ql0rn7/2l422gpfOYHz02yy3V1Qey/12e64dbe0690fb2f12e0d95f6321f6d1/Jacqueline-Rwanda.jpg',
|
|
32
|
+
percentage: 45,
|
|
33
|
+
showVoteButton: true,
|
|
34
|
+
showPercentage: true,
|
|
35
|
+
};
|
|
36
|
+
const args2 = {
|
|
37
|
+
title: 'BIPOC-owned small businesses',
|
|
38
|
+
description: 'Small businesses create more opportunities for women entrepreneurs.',
|
|
39
|
+
backgroundImageUrl: '//images.ctfassets.net/j0p9a6ql0rn7/3LZLziZYCl05YAhb6zlH6G/df770c45b790f065b8f3d11744ef1417/Lola__Oregon__United_States.jpeg',
|
|
40
|
+
percentage: 45,
|
|
41
|
+
showVoteButton: true,
|
|
42
|
+
showPercentage: true,
|
|
43
|
+
};
|
|
44
|
+
const args3 = {
|
|
45
|
+
title: 'Early-stage small businesses',
|
|
46
|
+
description: 'Local shops are the heartbeat of our communities — but only 80% of these businesses survive their first year. When you support U.S. small businesses, youre helping to create employment opportunities and stimulate local economies.',
|
|
47
|
+
backgroundImageUrl: '//images.ctfassets.net/j0p9a6ql0rn7/65YeFWuXaomM61E8PYasqp/0594e95be96cb8eac86b9ebc26bd684d/Natasha__California__United_States_sm.jpeg',
|
|
48
|
+
percentage: 45,
|
|
49
|
+
showVoteButton: true,
|
|
50
|
+
showPercentage: true,
|
|
51
|
+
};
|
|
52
|
+
const args4 = {
|
|
53
|
+
title: 'Food and retail small businesses',
|
|
54
|
+
description: 'Food and retail businesses are vital contributors to their communities. Sadly they face challenges in getting the financing they need. Loans can help them grow and operate sustainably so they can keep feeding their local neighborhoods.',
|
|
55
|
+
backgroundImageUrl: '//images.ctfassets.net/j0p9a6ql0rn7/2B3wamFMVgJnjuIgMmWCNB/51e4a36aeeb86156f8fe967486c13126/Anna__California__United_States.jpg',
|
|
56
|
+
percentage: 45,
|
|
57
|
+
showVoteButton: true,
|
|
58
|
+
showPercentage: true,
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
args1, args2, args3, args4,
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
template: `
|
|
65
|
+
<div class="tw-flex md:tw-flex-wrap" style="max-width: 1200px;">
|
|
66
|
+
<kv-voting-card-v2 v-bind="args1" @vote="vote" style="min-height: 400px;flex-basis: calc(50% - 1.5rem);margin: 0.75rem;"/>
|
|
67
|
+
<kv-voting-card-v2 v-bind="args2" @vote="vote" style="min-height: 400px;flex-basis: calc(50% - 1.5rem);margin: 0.75rem;"/>
|
|
68
|
+
<kv-voting-card-v2 v-bind="args3" @vote="vote" style="min-height: 400px;flex-basis: calc(50% - 1.5rem);margin: 0.75rem;"/>
|
|
69
|
+
<kv-voting-card-v2 v-bind="args4" @vote="vote" style="min-height: 400px;flex-basis: calc(50% - 1.5rem);margin: 0.75rem;"/>
|
|
70
|
+
</div>
|
|
71
|
+
`,
|
|
72
|
+
methods: {
|
|
73
|
+
vote() {
|
|
74
|
+
console.log('vote');
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export const Default = TemplateDefault.bind({});
|
|
80
|
+
Default.args = {
|
|
81
|
+
title: 'Women owned small businesses',
|
|
82
|
+
description: 'Just half of all women-owned businesses in the U.S. who apply for a loan are approved. Kiva provides access where others don\'t, creating more opportunities for women entrepreneurs.',
|
|
83
|
+
backgroundImageUrl: '//images.ctfassets.net/j0p9a6ql0rn7/3LZLziZYCl05YAhb6zlH6G/df770c45b790f065b8f3d11744ef1417/Lola__Oregon__United_States.jpeg',
|
|
84
|
+
percentage: 45,
|
|
85
|
+
showVoteButton: true,
|
|
86
|
+
showPercentage: true,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const MultipleInGrid = TemplateMultiple.bind({});
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import KvWideLoanCard from '../KvWideLoanCard.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'KvWideLoanCard',
|
|
5
|
+
component: KvWideLoanCard,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const story = (args) => {
|
|
9
|
+
const template = (_args, { argTypes }) => ({
|
|
10
|
+
props: Object.keys(argTypes),
|
|
11
|
+
components: { KvWideLoanCard },
|
|
12
|
+
template: `
|
|
13
|
+
<div style="max-width: 800px;">
|
|
14
|
+
<kv-wide-loan-card
|
|
15
|
+
:loanId="loanId"
|
|
16
|
+
:loan="loan"
|
|
17
|
+
:custom-loan-details="customLoanDetails"
|
|
18
|
+
:show-tags="showTags"
|
|
19
|
+
:category-page-name="categoryPageName"
|
|
20
|
+
:enable-five-dollars-notes="enableFiveDollarsNotes"
|
|
21
|
+
:five-dollars-selected="fiveDollarsSelected"
|
|
22
|
+
:is-adding="isAdding"
|
|
23
|
+
:is-visitor="isVisitor"
|
|
24
|
+
:basket-items="basketItems"
|
|
25
|
+
:is-bookmarked="isBookmarked"
|
|
26
|
+
:kv-track-function="kvTrackFunction"
|
|
27
|
+
:photo-path="photoPath"
|
|
28
|
+
:show-view-loan="showViewLoan"
|
|
29
|
+
:custom-callouts="customCallouts"
|
|
30
|
+
:enable-huge-amount="enableHugeAmount"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
`,
|
|
34
|
+
});
|
|
35
|
+
template.args = args;
|
|
36
|
+
return template;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const nextWeek = new Date();
|
|
40
|
+
nextWeek.setDate(new Date().getDate() + 7);
|
|
41
|
+
|
|
42
|
+
const loan = {
|
|
43
|
+
id: 1,
|
|
44
|
+
name: 'Alan',
|
|
45
|
+
geocode: {
|
|
46
|
+
city: 'Lyantonde',
|
|
47
|
+
state: 'Central Region',
|
|
48
|
+
country: {
|
|
49
|
+
isoCode: 'UG',
|
|
50
|
+
name: 'Uganda',
|
|
51
|
+
region: 'Africa',
|
|
52
|
+
__typename: 'Country',
|
|
53
|
+
},
|
|
54
|
+
__typename: 'Geocode',
|
|
55
|
+
},
|
|
56
|
+
image: { hash: '9673d0722a7675b9b8d11f90849d9b44' },
|
|
57
|
+
fundraisingPercent: 0.5,
|
|
58
|
+
unreservedAmount: '500.00',
|
|
59
|
+
use: 'to purchase heifers to increase headcount of cattle and sales of organic milk.',
|
|
60
|
+
status: 'fundraising',
|
|
61
|
+
loanAmount: '1000.00',
|
|
62
|
+
borrowerCount: 1,
|
|
63
|
+
activity: {
|
|
64
|
+
id: 61,
|
|
65
|
+
name: 'Dairy',
|
|
66
|
+
__typename: 'Activity',
|
|
67
|
+
},
|
|
68
|
+
sector: {
|
|
69
|
+
id: 1,
|
|
70
|
+
name: 'Agriculture',
|
|
71
|
+
__typename: 'Sector',
|
|
72
|
+
},
|
|
73
|
+
plannedExpirationDate: nextWeek.toISOString(),
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const kvTrackFunction = () => { };
|
|
77
|
+
|
|
78
|
+
const photoPath = 'https://www-kiva-org.freetls.fastly.net/img/';
|
|
79
|
+
|
|
80
|
+
export const Loading = story({
|
|
81
|
+
loanId: loan.id,
|
|
82
|
+
loan: undefined,
|
|
83
|
+
kvTrackFunction,
|
|
84
|
+
photoPath,
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const PartialLoading = story({
|
|
88
|
+
loanId: loan.id,
|
|
89
|
+
loan: {
|
|
90
|
+
...loan,
|
|
91
|
+
unreservedAmount: undefined,
|
|
92
|
+
fundraisingPercent: undefined,
|
|
93
|
+
},
|
|
94
|
+
kvTrackFunction,
|
|
95
|
+
photoPath,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export const ShowTags = story({
|
|
99
|
+
loanId: loan.id,
|
|
100
|
+
loan: {
|
|
101
|
+
...loan,
|
|
102
|
+
loanFundraisingInfo: {
|
|
103
|
+
fundedAmount: '950.00',
|
|
104
|
+
isExpiringSoon: false,
|
|
105
|
+
reservedAmount: '0.00',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
kvTrackFunction,
|
|
109
|
+
photoPath,
|
|
110
|
+
showTags: true,
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
export const CustomCallouts = story({
|
|
114
|
+
loanId: loan.id,
|
|
115
|
+
loan: {
|
|
116
|
+
...loan,
|
|
117
|
+
loanFundraisingInfo: {
|
|
118
|
+
fundedAmount: '950.00',
|
|
119
|
+
isExpiringSoon: false,
|
|
120
|
+
reservedAmount: '0.00',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
kvTrackFunction,
|
|
124
|
+
photoPath,
|
|
125
|
+
showTags: true,
|
|
126
|
+
customCallouts: ['Loan Length: 15mo'],
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export const CustomCalloutsWrap = story({
|
|
130
|
+
loanId: loan.id,
|
|
131
|
+
loan: {
|
|
132
|
+
...loan,
|
|
133
|
+
loanFundraisingInfo: {
|
|
134
|
+
fundedAmount: '950.00',
|
|
135
|
+
isExpiringSoon: false,
|
|
136
|
+
reservedAmount: '0.00',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
kvTrackFunction,
|
|
140
|
+
photoPath,
|
|
141
|
+
showTags: true,
|
|
142
|
+
customCallouts: ['Loan Length: 15mo', 'Long Dairy Processing'],
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
export const Matched = story({
|
|
146
|
+
loanId: loan.id,
|
|
147
|
+
loan: {
|
|
148
|
+
...loan,
|
|
149
|
+
matchingText: 'Matched by Ebay',
|
|
150
|
+
matchRatio: 1,
|
|
151
|
+
loanFundraisingInfo: {
|
|
152
|
+
fundedAmount: '200.00',
|
|
153
|
+
isExpiringSoon: false,
|
|
154
|
+
reservedAmount: '0.00',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
kvTrackFunction,
|
|
158
|
+
photoPath,
|
|
159
|
+
showTags: true,
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
export const AllSharesReserved = story({
|
|
163
|
+
loanId: loan.id,
|
|
164
|
+
loan: {
|
|
165
|
+
...loan,
|
|
166
|
+
unreservedAmount: '0.00',
|
|
167
|
+
fundraisingPercent: 1,
|
|
168
|
+
},
|
|
169
|
+
kvTrackFunction,
|
|
170
|
+
photoPath,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
export const InBasket = story({
|
|
174
|
+
loanId: loan.id,
|
|
175
|
+
loan,
|
|
176
|
+
kvTrackFunction,
|
|
177
|
+
photoPath,
|
|
178
|
+
basketItems: [{ id: loan.id, __typename: 'LoanReservation' }],
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export const LongCallouts = story({
|
|
182
|
+
loanId: loan.id,
|
|
183
|
+
loan: {
|
|
184
|
+
...loan,
|
|
185
|
+
activity: { id: 1, name: 'Longer activity name test that will be longer than 50% of the card' },
|
|
186
|
+
},
|
|
187
|
+
showTags: true,
|
|
188
|
+
kvTrackFunction,
|
|
189
|
+
photoPath,
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export const LseLoan = story({
|
|
193
|
+
loanId: loan.id,
|
|
194
|
+
loan: {
|
|
195
|
+
...loan,
|
|
196
|
+
loanFundraisingInfo: {
|
|
197
|
+
fundedAmount: '950.00',
|
|
198
|
+
isExpiringSoon: false,
|
|
199
|
+
reservedAmount: '0.00',
|
|
200
|
+
},
|
|
201
|
+
partnerName: 'N/A, direct to Novulis',
|
|
202
|
+
tags: [
|
|
203
|
+
'user_favorite',
|
|
204
|
+
'#Woman-Owned Business',
|
|
205
|
+
'#Animals',
|
|
206
|
+
'#Repeat Borrower',
|
|
207
|
+
'#Supporting Family',
|
|
208
|
+
'#Eco-friendly',
|
|
209
|
+
'#Single parent',
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
kvTrackFunction,
|
|
213
|
+
photoPath,
|
|
214
|
+
showTags: true,
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
export const Bookmarked = story({
|
|
218
|
+
loanId: loan.id,
|
|
219
|
+
loan,
|
|
220
|
+
isBookmarked: true,
|
|
221
|
+
isVisitor: false,
|
|
222
|
+
kvTrackFunction,
|
|
223
|
+
photoPath,
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
export const Adding = story({
|
|
227
|
+
loanId: loan.id,
|
|
228
|
+
loan,
|
|
229
|
+
isAdding: true,
|
|
230
|
+
kvTrackFunction,
|
|
231
|
+
photoPath,
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
export const FiveDollarNotes = story({
|
|
235
|
+
loanId: loan.id,
|
|
236
|
+
loan,
|
|
237
|
+
enableFiveDollarsNotes: true,
|
|
238
|
+
kvTrackFunction,
|
|
239
|
+
photoPath,
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
export const FiveDollarsSelected = story({
|
|
243
|
+
loanId: loan.id,
|
|
244
|
+
loan,
|
|
245
|
+
enableFiveDollarsNotes: true,
|
|
246
|
+
fiveDollarsSelected: true,
|
|
247
|
+
kvTrackFunction,
|
|
248
|
+
photoPath,
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
export const ViewLoan = story({
|
|
252
|
+
loanId: loan.id,
|
|
253
|
+
loan,
|
|
254
|
+
kvTrackFunction,
|
|
255
|
+
photoPath,
|
|
256
|
+
showViewLoan: true,
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
export const ViewLoanFunded = story({
|
|
260
|
+
loanId: loan.id,
|
|
261
|
+
loan: {
|
|
262
|
+
...loan,
|
|
263
|
+
unreservedAmount: '0.00',
|
|
264
|
+
fundraisingPercent: 1,
|
|
265
|
+
},
|
|
266
|
+
kvTrackFunction,
|
|
267
|
+
photoPath,
|
|
268
|
+
showViewLoan: true,
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
export const LendAgain = story({
|
|
272
|
+
loanId: loan.id,
|
|
273
|
+
loan: {
|
|
274
|
+
...loan,
|
|
275
|
+
userProperties: { lentTo: true },
|
|
276
|
+
},
|
|
277
|
+
customLoanDetails: true,
|
|
278
|
+
kvTrackFunction,
|
|
279
|
+
photoPath,
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
export const HugeLentAmount = story({
|
|
283
|
+
loanId: loan.id,
|
|
284
|
+
loan: {
|
|
285
|
+
...loan,
|
|
286
|
+
unreservedAmount: '850.00',
|
|
287
|
+
},
|
|
288
|
+
kvTrackFunction,
|
|
289
|
+
photoPath,
|
|
290
|
+
isVisitor: false,
|
|
291
|
+
enableHugeAmount: true,
|
|
292
|
+
});
|