@kiva/kv-components 10.5.1 → 10.6.1

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.
Files changed (228) hide show
  1. package/dist/index.js +20 -20
  2. package/dist/vue/KvAccordionItem.js +1 -1
  3. package/dist/vue/KvActivityRow.js +1 -1
  4. package/dist/vue/KvAtbModal.js +1 -1
  5. package/dist/vue/KvBorrowerImage.js +1 -1
  6. package/dist/vue/KvButton.js +1 -1
  7. package/dist/vue/KvCardFrame.js +1 -1
  8. package/dist/vue/KvCarousel.js +1 -1
  9. package/dist/vue/KvCartModal.js +1 -1
  10. package/dist/vue/KvCartPill.js +1 -1
  11. package/dist/vue/KvCheckbox.js +1 -1
  12. package/dist/vue/KvCheckoutReceipt.js +1 -1
  13. package/dist/vue/KvChip.js +1 -1
  14. package/dist/vue/KvClassicLoanCard.js +252 -295
  15. package/dist/vue/KvClassicLoanCard.script.js +298 -0
  16. package/dist/vue/KvCommentsAdd.js +2 -2
  17. package/dist/vue/KvCommentsContainer.js +2 -2
  18. package/dist/vue/KvCommentsHeartButton.js +1 -1
  19. package/dist/vue/KvCommentsList.js +1 -1
  20. package/dist/vue/KvCommentsListItem.js +2 -2
  21. package/dist/vue/KvCommentsReplyButton.js +1 -1
  22. package/dist/vue/KvCompactLoanCard.js +416 -380
  23. package/dist/vue/KvCompactLoanCard.script.js +382 -0
  24. package/dist/vue/KvContentfulImg.js +1 -1
  25. package/dist/vue/KvCountdownTimer.js +1 -1
  26. package/dist/vue/KvDatePicker.js +1 -1
  27. package/dist/vue/KvExpandable.js +1 -1
  28. package/dist/vue/KvExpandableQuestion.js +1 -1
  29. package/dist/vue/KvFlag.js +1 -1
  30. package/dist/vue/KvFormAssemblyForm.js +2 -95
  31. package/dist/vue/KvFormAssemblyForm.script.js +97 -0
  32. package/dist/vue/KvGrid.js +1 -1
  33. package/dist/vue/KvIconBag.js +1 -1
  34. package/dist/vue/KvIconButton.js +2 -116
  35. package/dist/vue/KvIconButton.script.js +118 -0
  36. package/dist/vue/KvImageUpload.js +1 -1
  37. package/dist/vue/KvImpactVerticalSelector.js +1 -1
  38. package/dist/vue/KvInlineActivityCard.js +1 -1
  39. package/dist/vue/KvInlineActivityFeed.js +1 -1
  40. package/dist/vue/KvIntroductionLoanCard.js +247 -220
  41. package/dist/vue/KvIntroductionLoanCard.script.js +223 -0
  42. package/dist/vue/KvLendAmountButton.js +1 -1
  43. package/dist/vue/KvLendCta.js +355 -389
  44. package/dist/vue/KvLendCta.script.js +391 -0
  45. package/dist/vue/KvLightbox.js +18 -18
  46. package/dist/vue/KvLightbox.script.js +147 -0
  47. package/dist/vue/KvLightbox.vue.d.ts +21 -0
  48. package/dist/vue/KvLineGraph.js +1 -1
  49. package/dist/vue/KvLoadingSpinner.js +1 -1
  50. package/dist/vue/KvLoanActivities.js +75 -149
  51. package/dist/vue/KvLoanActivities.script.js +151 -0
  52. package/dist/vue/KvLoanActivities.vue.d.ts +21 -0
  53. package/dist/vue/KvLoanBookmark.js +22 -33
  54. package/dist/vue/KvLoanBookmark.script.js +35 -0
  55. package/dist/vue/KvLoanCallouts.js +1 -1
  56. package/dist/vue/KvLoanInfoCard.js +2 -2
  57. package/dist/vue/KvLoanProgressGroup.js +1 -1
  58. package/dist/vue/KvLoanTag.js +44 -123
  59. package/dist/vue/KvLoanTag.script.js +125 -0
  60. package/dist/vue/KvLoanUse.js +14 -111
  61. package/dist/vue/KvLoanUse.script.js +113 -0
  62. package/dist/vue/KvMap.js +1 -1
  63. package/dist/vue/KvMaterialIcon.js +1 -1
  64. package/dist/vue/KvPageContainer.js +1 -1
  65. package/dist/vue/KvPagination.js +1 -1
  66. package/dist/vue/KvPieChart.js +1 -1
  67. package/dist/vue/KvPieChartV2.js +1 -1
  68. package/dist/vue/KvPieChartV2.vue.d.ts +21 -0
  69. package/dist/vue/KvPill.js +1 -1
  70. package/dist/vue/KvPopper.js +1 -1
  71. package/dist/vue/KvProgressBar.js +1 -1
  72. package/dist/vue/KvProgressCircle.js +1 -1
  73. package/dist/vue/KvPulsingDot.js +1 -1
  74. package/dist/vue/KvRadio.js +1 -1
  75. package/dist/vue/KvSecondaryNav.js +1 -1
  76. package/dist/vue/KvSelect.js +1 -1
  77. package/dist/vue/KvSideSheet.js +1 -1
  78. package/dist/vue/KvSimpleMap.js +1 -1
  79. package/dist/vue/KvStackedBarGraph.js +1 -1
  80. package/dist/vue/KvSwitch.js +1 -1
  81. package/dist/vue/KvTab.js +1 -1
  82. package/dist/vue/KvTabPanel.js +1 -1
  83. package/dist/vue/KvTabs.js +1 -1
  84. package/dist/vue/KvTextInput.js +1 -1
  85. package/dist/vue/KvTextLink.js +1 -1
  86. package/dist/vue/KvThemeProvider.js +1 -1
  87. package/dist/vue/KvToast.js +1 -1
  88. package/dist/vue/KvTooltip.js +1 -1
  89. package/dist/vue/KvTreeMapChart.js +1 -1
  90. package/dist/vue/KvUserAvatar.js +1 -1
  91. package/dist/vue/KvUtilityMenu.js +1 -1
  92. package/dist/vue/KvVerticalCarousel.js +1 -1
  93. package/dist/vue/KvVotingCard.js +1 -1
  94. package/dist/vue/KvVotingCardV2.js +1 -1
  95. package/dist/vue/KvVotingCardV2.vue.d.ts +21 -0
  96. package/dist/vue/KvWideLoanCard.js +206 -232
  97. package/dist/vue/KvWideLoanCard.script.js +235 -0
  98. package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +1 -1
  99. package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +1 -1
  100. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
  101. package/dist/vue/KvWwwHeader/KvHeaderLogo.js +1 -1
  102. package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +1 -1
  103. package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +1 -1
  104. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +1 -1
  105. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +1 -1
  106. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +1 -1
  107. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +1 -1
  108. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +1 -1
  109. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +1 -1
  110. package/dist/vue/KvWwwHeader.js +1 -1
  111. package/dist/vue/KvWwwHeaderBasic/AboutMenu.js +1 -1
  112. package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.js +1 -1
  113. package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.js +1 -1
  114. package/dist/vue/KvWwwHeaderBasic/LinkBar.js +1 -1
  115. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.js +1 -1
  116. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
  117. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.js +1 -1
  118. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel.js +1 -1
  119. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +1 -1
  120. package/dist/vue/KvWwwHeaderBasic/MobileMenu.js +1 -1
  121. package/dist/vue/KvWwwHeaderBasic/MyKivaMenu.js +1 -1
  122. package/dist/vue/KvWwwHeaderBasic/SearchBar.js +1 -1
  123. package/package.json +2 -2
  124. package/vite.config.ts +16 -13
  125. package/dist/vue/KvClassicLoanCard2.js +0 -255
  126. package/dist/vue/KvCompactLoanCard2.js +0 -418
  127. package/dist/vue/KvFormAssemblyForm2.js +0 -4
  128. package/dist/vue/KvIconButton2.js +0 -4
  129. package/dist/vue/KvIntroductionLoanCard2.js +0 -250
  130. package/dist/vue/KvLendCta2.js +0 -357
  131. package/dist/vue/KvLightbox2.js +0 -117
  132. package/dist/vue/KvLoanActivities2.js +0 -77
  133. package/dist/vue/KvLoanBookmark2.js +0 -24
  134. package/dist/vue/KvLoanTag2.js +0 -46
  135. package/dist/vue/KvLoanUse2.js +0 -16
  136. package/dist/vue/KvWideLoanCard2.js +0 -209
  137. /package/dist/vue/{KvAccordionItem2.js → KvAccordionItem.script.js} +0 -0
  138. /package/dist/vue/{KvActivityRow2.js → KvActivityRow.script.js} +0 -0
  139. /package/dist/vue/{KvAtbModal2.js → KvAtbModal.script.js} +0 -0
  140. /package/dist/vue/{KvBorrowerImage2.js → KvBorrowerImage.script.js} +0 -0
  141. /package/dist/vue/{KvButton2.js → KvButton.script.js} +0 -0
  142. /package/dist/vue/{KvCardFrame2.js → KvCardFrame.script.js} +0 -0
  143. /package/dist/vue/{KvCarousel2.js → KvCarousel.script.js} +0 -0
  144. /package/dist/vue/{KvCartModal2.js → KvCartModal.script.js} +0 -0
  145. /package/dist/vue/{KvCartPill2.js → KvCartPill.script.js} +0 -0
  146. /package/dist/vue/{KvCheckbox2.js → KvCheckbox.script.js} +0 -0
  147. /package/dist/vue/{KvCheckoutReceipt2.js → KvCheckoutReceipt.script.js} +0 -0
  148. /package/dist/vue/{KvChip2.js → KvChip.script.js} +0 -0
  149. /package/dist/vue/{KvCommentsAdd2.js → KvCommentsAdd.script.js} +0 -0
  150. /package/dist/vue/{KvCommentsContainer2.js → KvCommentsContainer.script.js} +0 -0
  151. /package/dist/vue/{KvCommentsHeartButton2.js → KvCommentsHeartButton.script.js} +0 -0
  152. /package/dist/vue/{KvCommentsList2.js → KvCommentsList.script.js} +0 -0
  153. /package/dist/vue/{KvCommentsListItem2.js → KvCommentsListItem.script.js} +0 -0
  154. /package/dist/vue/{KvCommentsReplyButton2.js → KvCommentsReplyButton.script.js} +0 -0
  155. /package/dist/vue/{KvContentfulImg2.js → KvContentfulImg.script.js} +0 -0
  156. /package/dist/vue/{KvCountdownTimer2.js → KvCountdownTimer.script.js} +0 -0
  157. /package/dist/vue/{KvDatePicker2.js → KvDatePicker.script.js} +0 -0
  158. /package/dist/vue/{KvExpandable2.js → KvExpandable.script.js} +0 -0
  159. /package/dist/vue/{KvExpandableQuestion2.js → KvExpandableQuestion.script.js} +0 -0
  160. /package/dist/vue/{KvFlag2.js → KvFlag.script.js} +0 -0
  161. /package/dist/vue/{KvGrid2.js → KvGrid.script.js} +0 -0
  162. /package/dist/vue/{KvIconBag2.js → KvIconBag.script.js} +0 -0
  163. /package/dist/vue/{KvImageUpload2.js → KvImageUpload.script.js} +0 -0
  164. /package/dist/vue/{KvImpactVerticalSelector2.js → KvImpactVerticalSelector.script.js} +0 -0
  165. /package/dist/vue/{KvInlineActivityCard2.js → KvInlineActivityCard.script.js} +0 -0
  166. /package/dist/vue/{KvInlineActivityFeed2.js → KvInlineActivityFeed.script.js} +0 -0
  167. /package/dist/vue/{KvLendAmountButton2.js → KvLendAmountButton.script.js} +0 -0
  168. /package/dist/vue/{KvLineGraph2.js → KvLineGraph.script.js} +0 -0
  169. /package/dist/vue/{KvLoadingSpinner2.js → KvLoadingSpinner.script.js} +0 -0
  170. /package/dist/vue/{KvLoanCallouts2.js → KvLoanCallouts.script.js} +0 -0
  171. /package/dist/vue/{KvLoanProgressGroup2.js → KvLoanProgressGroup.script.js} +0 -0
  172. /package/dist/vue/{KvMap2.js → KvMap.script.js} +0 -0
  173. /package/dist/vue/{KvMaterialIcon2.js → KvMaterialIcon.script.js} +0 -0
  174. /package/dist/vue/{KvPageContainer2.js → KvPageContainer.script.js} +0 -0
  175. /package/dist/vue/{KvPagination2.js → KvPagination.script.js} +0 -0
  176. /package/dist/vue/{KvPieChart2.js → KvPieChart.script.js} +0 -0
  177. /package/dist/vue/{KvPieChartV22.js → KvPieChartV2.script.js} +0 -0
  178. /package/dist/vue/{KvPill2.js → KvPill.script.js} +0 -0
  179. /package/dist/vue/{KvPopper2.js → KvPopper.script.js} +0 -0
  180. /package/dist/vue/{KvProgressBar2.js → KvProgressBar.script.js} +0 -0
  181. /package/dist/vue/{KvProgressCircle2.js → KvProgressCircle.script.js} +0 -0
  182. /package/dist/vue/{KvPulsingDot2.js → KvPulsingDot.script.js} +0 -0
  183. /package/dist/vue/{KvRadio2.js → KvRadio.script.js} +0 -0
  184. /package/dist/vue/{KvSecondaryNav2.js → KvSecondaryNav.script.js} +0 -0
  185. /package/dist/vue/{KvSelect2.js → KvSelect.script.js} +0 -0
  186. /package/dist/vue/{KvSideSheet2.js → KvSideSheet.script.js} +0 -0
  187. /package/dist/vue/{KvSimpleMap2.js → KvSimpleMap.script.js} +0 -0
  188. /package/dist/vue/{KvStackedBarGraph2.js → KvStackedBarGraph.script.js} +0 -0
  189. /package/dist/vue/{KvSwitch2.js → KvSwitch.script.js} +0 -0
  190. /package/dist/vue/{KvTab2.js → KvTab.script.js} +0 -0
  191. /package/dist/vue/{KvTabPanel2.js → KvTabPanel.script.js} +0 -0
  192. /package/dist/vue/{KvTabs2.js → KvTabs.script.js} +0 -0
  193. /package/dist/vue/{KvTextInput2.js → KvTextInput.script.js} +0 -0
  194. /package/dist/vue/{KvTextLink2.js → KvTextLink.script.js} +0 -0
  195. /package/dist/vue/{KvThemeProvider2.js → KvThemeProvider.script.js} +0 -0
  196. /package/dist/vue/{KvToast2.js → KvToast.script.js} +0 -0
  197. /package/dist/vue/{KvTooltip2.js → KvTooltip.script.js} +0 -0
  198. /package/dist/vue/{KvTreeMapChart2.js → KvTreeMapChart.script.js} +0 -0
  199. /package/dist/vue/{KvUserAvatar2.js → KvUserAvatar.script.js} +0 -0
  200. /package/dist/vue/{KvUtilityMenu2.js → KvUtilityMenu.script.js} +0 -0
  201. /package/dist/vue/{KvVerticalCarousel2.js → KvVerticalCarousel.script.js} +0 -0
  202. /package/dist/vue/{KvVotingCard2.js → KvVotingCard.script.js} +0 -0
  203. /package/dist/vue/{KvVotingCardV22.js → KvVotingCardV2.script.js} +0 -0
  204. /package/dist/vue/KvWwwHeader/{KvHeaderAboutMenu2.js → KvHeaderAboutMenu.script.js} +0 -0
  205. /package/dist/vue/KvWwwHeader/{KvHeaderDropdownLink2.js → KvHeaderDropdownLink.script.js} +0 -0
  206. /package/dist/vue/KvWwwHeader/{KvHeaderLinkBar2.js → KvHeaderLinkBar.script.js} +0 -0
  207. /package/dist/vue/KvWwwHeader/{KvHeaderLogo2.js → KvHeaderLogo.script.js} +0 -0
  208. /package/dist/vue/KvWwwHeader/{KvHeaderMobileMenu2.js → KvHeaderMobileMenu.script.js} +0 -0
  209. /package/dist/vue/KvWwwHeader/{KvHeaderMyKivaMenu2.js → KvHeaderMyKivaMenu.script.js} +0 -0
  210. /package/dist/vue/KvWwwHeader/{KvHeaderTakeActionMenu2.js → KvHeaderTakeActionMenu.script.js} +0 -0
  211. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendListMenu2.js → KvLendListMenu.script.js} +0 -0
  212. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMegaMenu2.js → KvLendMegaMenu.script.js} +0 -0
  213. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenu2.js → KvLendMenu.script.js} +0 -0
  214. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuCountryList2.js → KvLendMenuCountryList.script.js} +0 -0
  215. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuSearchList2.js → KvLendMenuSearchList.script.js} +0 -0
  216. /package/dist/vue/{KvWwwHeader2.js → KvWwwHeader.script.js} +0 -0
  217. /package/dist/vue/KvWwwHeaderBasic/{AboutMenu2.js → AboutMenu.script.js} +0 -0
  218. /package/dist/vue/KvWwwHeaderBasic/{HeaderMenuGroup2.js → HeaderMenuGroup.script.js} +0 -0
  219. /package/dist/vue/KvWwwHeaderBasic/{KvWwwHeaderBasic2.js → KvWwwHeaderBasic.script.js} +0 -0
  220. /package/dist/vue/KvWwwHeaderBasic/{LinkBar2.js → LinkBar.script.js} +0 -0
  221. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{CategoriesPanel2.js → CategoriesPanel.script.js} +0 -0
  222. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MobileLendMenu2.js → MobileLendMenu.script.js} +0 -0
  223. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MyKivaPanel2.js → MyKivaPanel.script.js} +0 -0
  224. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{RegionsPanel2.js → RegionsPanel.script.js} +0 -0
  225. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{SearchPanel2.js → SearchPanel.script.js} +0 -0
  226. /package/dist/vue/KvWwwHeaderBasic/{MobileMenu2.js → MobileMenu.script.js} +0 -0
  227. /package/dist/vue/KvWwwHeaderBasic/{MyKivaMenu2.js → MyKivaMenu.script.js} +0 -0
  228. /package/dist/vue/KvWwwHeaderBasic/{SearchBar2.js → SearchBar.script.js} +0 -0
@@ -0,0 +1,235 @@
1
+ import o from "graphql-tag";
2
+ import { LOAN_CALLOUTS_FRAGMENT as M, LOAN_GEOCODE_FRAGMENT as R, LOAN_PROGRESS_FRAGMENT as B, loanCardComputedProperties as S, loanCardMethods as k, useLocationTruncation as w } from "../utils/loanCard.js";
3
+ import O from "./KvLoanUse.js";
4
+ import D from "./KvBorrowerImage.js";
5
+ import F from "./KvLoanProgressGroup.js";
6
+ import G from "./KvLoanCallouts.js";
7
+ import b from "./KvLendCta.js";
8
+ import P from "./KvLoanBookmark.js";
9
+ import U from "./KvLoanTag.js";
10
+ import V from "./KvMaterialIcon.js";
11
+ import W from "./KvLoadingPlaceholder.js";
12
+ import $ from "./KvTooltip.js";
13
+ import { KV_LEND_CTA_FRAGMENT as z, KV_LEND_CTA_USER_FRAGMENT as I } from "./KvLendCta.script.js";
14
+ import { KV_LOAN_TAG_FRAGMENT as q } from "./KvLoanTag.script.js";
15
+ import { KV_LOAN_USE_FRAGMENT as x } from "./KvLoanUse.script.js";
16
+ import { KV_LOAN_BOOKMARK_FRAGMENT as H } from "./KvLoanBookmark.script.js";
17
+ const me = o`
18
+ fragment KvWideLoanCard on LoanBasic {
19
+ id
20
+ image {
21
+ id
22
+ hash # for imageHash
23
+ }
24
+ name # for borrowerName
25
+ ...KvLendCta
26
+ ...KvLoanTag
27
+ ...KvLoanUse
28
+ ...LoanCallouts
29
+ ...LoanGeocode
30
+ ...LoanProgress
31
+ }
32
+ ${z}
33
+ ${q}
34
+ ${x}
35
+ ${M}
36
+ ${R}
37
+ ${B}
38
+ `, ue = o`
39
+ fragment KvWideLoanCardUser on LoanBasic {
40
+ id
41
+ ...KvLendCtaUser
42
+ ...KvLoanBookmark
43
+ }
44
+ ${I}
45
+ ${H}
46
+ `, fe = {
47
+ name: "KvWideLoanCard",
48
+ components: {
49
+ KvBorrowerImage: D,
50
+ KvLoadingPlaceholder: W,
51
+ KvLoanUse: O,
52
+ KvLoanProgressGroup: F,
53
+ KvMaterialIcon: V,
54
+ KvLendCta: b,
55
+ KvLoanTag: U,
56
+ KvLoanCallouts: G,
57
+ KvLoanBookmark: P,
58
+ KvTooltip: $
59
+ },
60
+ props: {
61
+ loanId: {
62
+ type: Number,
63
+ default: void 0
64
+ },
65
+ loan: {
66
+ type: Object,
67
+ default: null
68
+ },
69
+ customLoanDetails: {
70
+ type: Boolean,
71
+ default: !1
72
+ },
73
+ showTags: {
74
+ type: Boolean,
75
+ default: !1
76
+ },
77
+ categoryPageName: {
78
+ type: String,
79
+ default: ""
80
+ },
81
+ enableFiveDollarsNotes: {
82
+ type: Boolean,
83
+ default: !1
84
+ },
85
+ isAdding: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ isVisitor: {
90
+ type: Boolean,
91
+ default: !0
92
+ },
93
+ basketItems: {
94
+ type: Array,
95
+ default: () => []
96
+ },
97
+ isBookmarked: {
98
+ type: Boolean,
99
+ default: !1
100
+ },
101
+ kvTrackFunction: {
102
+ type: Function,
103
+ required: !0
104
+ },
105
+ photoPath: {
106
+ type: String,
107
+ required: !0
108
+ },
109
+ showViewLoan: {
110
+ type: Boolean,
111
+ default: !1
112
+ },
113
+ externalLinks: {
114
+ type: Boolean,
115
+ default: !1
116
+ },
117
+ route: {
118
+ type: Object,
119
+ default: void 0
120
+ },
121
+ userBalance: {
122
+ type: String,
123
+ default: void 0
124
+ },
125
+ getCookie: {
126
+ type: Function,
127
+ default: void 0
128
+ },
129
+ setCookie: {
130
+ type: Function,
131
+ default: void 0
132
+ },
133
+ fiveDollarsSelected: {
134
+ type: Boolean,
135
+ default: !1
136
+ },
137
+ customCallouts: {
138
+ type: Array,
139
+ default: () => []
140
+ },
141
+ customHref: {
142
+ type: String,
143
+ default: ""
144
+ },
145
+ enableMultiMatching: {
146
+ type: Boolean,
147
+ default: !1
148
+ }
149
+ },
150
+ emits: [
151
+ "toggle-bookmark",
152
+ "add-to-basket"
153
+ ],
154
+ setup(e, { emit: a }) {
155
+ const {
156
+ allDataLoaded: t,
157
+ borrowerName: r,
158
+ city: i,
159
+ countryName: n,
160
+ distributionModel: l,
161
+ formattedLocation: d,
162
+ fundraisingPercent: s,
163
+ hasProgressData: m,
164
+ imageHash: u,
165
+ isLoading: f,
166
+ loanAmount: p,
167
+ loanBorrowerCount: c,
168
+ loanCallouts: L,
169
+ loanStatus: g,
170
+ loanUse: v,
171
+ mdiMapMarker: _,
172
+ readMorePath: A,
173
+ state: y,
174
+ tag: K,
175
+ unreservedAmount: N,
176
+ sharesAvailable: h
177
+ } = S(e), {
178
+ clickReadMore: C
179
+ } = k(e, a), {
180
+ locationRef: T,
181
+ isLocationTruncated: E
182
+ } = w();
183
+ return {
184
+ allDataLoaded: t,
185
+ borrowerName: r,
186
+ city: i,
187
+ countryName: n,
188
+ distributionModel: l,
189
+ formattedLocation: d,
190
+ fundraisingPercent: s,
191
+ hasProgressData: m,
192
+ imageHash: u,
193
+ isLoading: f,
194
+ loanAmount: p,
195
+ loanBorrowerCount: c,
196
+ loanCallouts: L,
197
+ loanStatus: g,
198
+ loanUse: v,
199
+ mdiMapMarker: _,
200
+ readMorePath: A,
201
+ state: y,
202
+ tag: K,
203
+ unreservedAmount: N,
204
+ sharesAvailable: h,
205
+ clickReadMore: C,
206
+ locationRef: T,
207
+ isLocationTruncated: E
208
+ };
209
+ },
210
+ computed: {
211
+ cardWidth() {
212
+ return "374px";
213
+ },
214
+ imageAspectRatio() {
215
+ return 1;
216
+ },
217
+ imageDefaultWidth() {
218
+ return 320;
219
+ },
220
+ imageSizes() {
221
+ return [
222
+ { width: this.imageDefaultWidth, viewSize: 1024 },
223
+ { width: this.imageDefaultWidth, viewSize: 768 },
224
+ { width: 416, viewSize: 480 },
225
+ { width: 374, viewSize: 414 },
226
+ { width: 335, viewSize: 375 }
227
+ ];
228
+ }
229
+ }
230
+ };
231
+ export {
232
+ me as KV_WIDE_LOAN_CARD_FRAGMENT,
233
+ ue as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
234
+ fe as default
235
+ };
@@ -1,4 +1,4 @@
1
- import n from "./KvHeaderAboutMenu2.js";
1
+ import n from "./KvHeaderAboutMenu.script.js";
2
2
  import { resolveComponent as l, resolveDirective as p, openBlock as e, createElementBlock as f, withDirectives as i, createBlock as u, withCtx as a, createTextVNode as s } from "vue";
3
3
  import d from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
@@ -1,4 +1,4 @@
1
- import l from "./KvHeaderDropdownLink2.js";
1
+ import l from "./KvHeaderDropdownLink.script.js";
2
2
  import { resolveComponent as s, openBlock as c, createElementBlock as d, withModifiers as m, createElementVNode as w, normalizeClass as r, renderSlot as f, createVNode as u } from "vue";
3
3
  import h from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const v = ["href"];
@@ -1,4 +1,4 @@
1
- import D from "./KvHeaderLinkBar2.js";
1
+ import D from "./KvHeaderLinkBar.script.js";
2
2
  import { resolveComponent as s, resolveDirective as H, openBlock as a, createElementBlock as i, withDirectives as l, withModifiers as c, normalizeClass as v, createVNode as r, createBlock as g, withCtx as k, createTextVNode as m, createElementVNode as w, createCommentVNode as y, normalizeStyle as f, vShow as h, toDisplayString as L } from "vue";
3
3
  import "./KvHeaderLinkBar.css";
4
4
  import B from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import t from "./KvHeaderLogo2.js";
1
+ import t from "./KvHeaderLogo.script.js";
2
2
  import { resolveComponent as e, openBlock as r, createElementBlock as c, createVNode as n } from "vue";
3
3
  import s from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const a = { class: "tw-h-2 lg:tw-h-2.5" };
@@ -1,4 +1,4 @@
1
- import f from "./KvHeaderMobileMenu2.js";
1
+ import f from "./KvHeaderMobileMenu.script.js";
2
2
  import { resolveComponent as b, resolveDirective as N, openBlock as t, createElementBlock as l, withDirectives as i, createBlock as k, createCommentVNode as T, withCtx as p, createElementVNode as a, Fragment as A, renderList as C, withModifiers as s, toDisplayString as c, createTextVNode as n } from "vue";
3
3
  import "./KvHeaderMobileMenu.css";
4
4
  import g from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import d from "./KvHeaderMyKivaMenu2.js";
1
+ import d from "./KvHeaderMyKivaMenu.script.js";
2
2
  import { resolveComponent as m, resolveDirective as u, openBlock as t, createElementBlock as v, withDirectives as i, createBlock as l, withCtx as s, createTextVNode as a, createCommentVNode as n } from "vue";
3
3
  import k from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const p = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
@@ -1,4 +1,4 @@
1
- import s from "./KvHeaderTakeActionMenu2.js";
1
+ import s from "./KvHeaderTakeActionMenu.script.js";
2
2
  import { resolveComponent as p, resolveDirective as c, openBlock as o, createElementBlock as u, withDirectives as a, createBlock as r, withCtx as i, createElementVNode as t } from "vue";
3
3
  import d from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
@@ -1,4 +1,4 @@
1
- import C from "./KvLendListMenu2.js";
1
+ import C from "./KvLendListMenu.script.js";
2
2
  import { resolveComponent as _, resolveDirective as R, openBlock as t, createElementBlock as n, withDirectives as r, createElementVNode as l, createTextVNode as d, createVNode as c, createCommentVNode as p, withCtx as s, Fragment as k, renderList as v, toDisplayString as g, createBlock as m } from "vue";
3
3
  import "./KvLendListMenu.css";
4
4
  import A from "../../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import x from "./KvLendMegaMenu2.js";
1
+ import x from "./KvLendMegaMenu.script.js";
2
2
  import { resolveComponent as m, resolveDirective as b, openBlock as n, createElementBlock as s, createElementVNode as t, normalizeStyle as S, withDirectives as r, createTextVNode as c, createVNode as d, createCommentVNode as u, withCtx as L, Fragment as w, renderList as k, toDisplayString as h, normalizeClass as C } from "vue";
3
3
  import "./KvLendMegaMenu.css";
4
4
  import N from "../../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import m from "./KvLendMenu2.js";
1
+ import m from "./KvLendMenu.script.js";
2
2
  import { resolveComponent as i, openBlock as t, createBlock as r, withCtx as h, createCommentVNode as v, createVNode as l, normalizeClass as _ } from "vue";
3
3
  import f from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  function k(s, o, n, e, w, C) {
@@ -1,4 +1,4 @@
1
- import n from "./KvLendMenuCountryList2.js";
1
+ import n from "./KvLendMenuCountryList.script.js";
2
2
  import { resolveDirective as c, openBlock as e, createElementBlock as o, Fragment as a, renderList as l, withDirectives as _, createTextVNode as d, toDisplayString as r } from "vue";
3
3
  import "./KvLendMenuCountryList.css";
4
4
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import a from "./KvLendMenuSearchList2.js";
1
+ import a from "./KvLendMenuSearchList.script.js";
2
2
  import { openBlock as e, createElementBlock as r, Fragment as l, renderList as c, createElementVNode as o, toDisplayString as i } from "vue";
3
3
  import f from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const d = { class: "tw-font-book" }, m = ["href"];
@@ -1,4 +1,4 @@
1
- import h from "./KvWwwHeader2.js";
1
+ import h from "./KvWwwHeader.script.js";
2
2
  import { resolveComponent as l, resolveDirective as f, openBlock as r, createBlock as u, withCtx as i, createElementVNode as d, normalizeStyle as m, createVNode as t, Transition as v, withDirectives as s, vShow as c, createElementBlock as y, normalizeClass as H, resolveDynamicComponent as M, withModifiers as C } from "vue";
3
3
  import "./KvWwwHeader.css";
4
4
  import D from "../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import c from "./AboutMenu2.js";
1
+ import c from "./AboutMenu.script.js";
2
2
  import { resolveComponent as l, openBlock as t, createElementBlock as r, normalizeClass as i, Fragment as m, renderList as s, createBlock as f, withCtx as _, createTextVNode as p, toDisplayString as d } from "vue";
3
3
  import "./AboutMenu.css";
4
4
  import u from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import d from "./HeaderMenuGroup2.js";
1
+ import d from "./HeaderMenuGroup.script.js";
2
2
  import { openBlock as s, createElementBlock as i, renderSlot as t, createElementVNode as l, normalizeClass as u, createCommentVNode as a } from "vue";
3
3
  import "./HeaderMenuGroup.css";
4
4
  import m from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import u from "./KvWwwHeaderBasic2.js";
1
+ import u from "./KvWwwHeaderBasic.script.js";
2
2
  import { resolveComponent as o, openBlock as g, createBlock as c, withCtx as r, createElementVNode as b, normalizeStyle as k, createVNode as l, Transition as v, withDirectives as f, vShow as w } from "vue";
3
3
  import "./KvWwwHeaderBasic.css";
4
4
  import h from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import S from "./LinkBar2.js";
1
+ import S from "./LinkBar.script.js";
2
2
  import { resolveComponent as r, openBlock as o, createElementBlock as s, normalizeStyle as v, normalizeClass as I, createVNode as i, withCtx as d, createElementVNode as l, mergeProps as g, Transition as U, toDisplayString as w, createCommentVNode as m, Fragment as _, renderList as G, createTextVNode as b, withDirectives as O, vShow as E, createBlock as f } from "vue";
3
3
  import "./LinkBar.css";
4
4
  import N from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import k from "./CategoriesPanel2.js";
1
+ import k from "./CategoriesPanel.script.js";
2
2
  import { resolveComponent as p, resolveDirective as v, openBlock as e, createElementBlock as t, Fragment as a, renderList as c, createElementVNode as r, createVNode as f, withDirectives as s, createTextVNode as i, toDisplayString as h } from "vue";
3
3
  import "./CategoriesPanel.css";
4
4
  import u from "../../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import h from "./MobileLendMenu2.js";
1
+ import h from "./MobileLendMenu.script.js";
2
2
  import { resolveComponent as a, resolveDirective as T, openBlock as i, createElementBlock as L, createVNode as o, withCtx as t, createBlock as s, createCommentVNode as _, withDirectives as c, createTextVNode as g } from "vue";
3
3
  import "./MobileLendMenu.css";
4
4
  import N from "../../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import k from "./MyKivaPanel2.js";
1
+ import k from "./MyKivaPanel.script.js";
2
2
  import { resolveComponent as a, resolveDirective as h, openBlock as t, createElementBlock as o, createElementVNode as n, withDirectives as i, createTextVNode as l, createVNode as c, withCtx as d } from "vue";
3
3
  import "./MyKivaPanel.css";
4
4
  import u from "../../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import u from "./RegionsPanel2.js";
1
+ import u from "./RegionsPanel.script.js";
2
2
  import { resolveComponent as n, resolveDirective as k, openBlock as t, createElementBlock as o, Fragment as l, renderList as d, createVNode as r, withCtx as c, withDirectives as v, createBlock as h, createElementVNode as f, toDisplayString as y } from "vue";
3
3
  import g from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const x = { class: "tw-text-upper" };
@@ -1,4 +1,4 @@
1
- import n from "./SearchPanel2.js";
1
+ import n from "./SearchPanel.script.js";
2
2
  import { resolveComponent as t, openBlock as i, createBlock as c } from "vue";
3
3
  import m from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  function p(r, e, o, u, l, d) {
@@ -1,4 +1,4 @@
1
- import k from "./MobileMenu2.js";
1
+ import k from "./MobileMenu.script.js";
2
2
  import { resolveComponent as l, openBlock as r, createElementBlock as a, createVNode as s, withCtx as c, createElementVNode as e, toDisplayString as m, createCommentVNode as f } from "vue";
3
3
  import "./MobileMenu.css";
4
4
  import b from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import u from "./MyKivaMenu2.js";
1
+ import u from "./MyKivaMenu.script.js";
2
2
  import { resolveComponent as C, openBlock as f, createElementBlock as d, createVNode as r, withCtx as e, createTextVNode as i, Fragment as s, createCommentVNode as m } from "vue";
3
3
  import "./MyKivaMenu.css";
4
4
  import y from "../../_virtual/_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import b from "./SearchBar2.js";
1
+ import b from "./SearchBar.script.js";
2
2
  import { resolveComponent as f, openBlock as r, createElementBlock as n, withModifiers as l, createElementVNode as o, createVNode as v, withKeys as s, withDirectives as y, normalizeClass as w, Fragment as c, renderList as m, toDisplayString as _, vShow as S } from "vue";
3
3
  import x from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const g = ["for"], k = ["data-testid"], B = { class: "tw-text-base tw-py-0.5" }, M = ["data-testid", "onClick"], I = ["innerHTML"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "10.5.1",
3
+ "version": "10.6.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -116,5 +116,5 @@
116
116
  "dependencies": {
117
117
  "fuse.js": "^7.1.0"
118
118
  },
119
- "gitHead": "074a5802f62864713f35c7d42c914324c5cd2cc1"
119
+ "gitHead": "a55163da474c53d2958af25e6b68684b3f1922db"
120
120
  }
package/vite.config.ts CHANGED
@@ -21,19 +21,22 @@ export default defineConfig({
21
21
  lib: {
22
22
  entry: 'src/index.ts',
23
23
  formats: ['es'],
24
- fileName: (format, entryName) => {
25
- // Since we have declared type: module in package.json, we use .js for ES modules and .cjs for CommonJS modules
26
- const suffix = format === 'es' ? '.js' : '.cjs';
27
- // Rename node_modules directory from bundled dependencies to avoid module resolution issues
28
- if (entryName.startsWith('node_modules')) {
29
- return `${entryName.replace('node_modules/', 'vendor/')}${suffix}`;
30
- }
31
- // Remove .vue extension from entryName for SFCs
32
- if (entryName.slice(-4) === '.vue') {
33
- return `${entryName.slice(0, -4)}${suffix}`;
34
- }
35
- // Return default entryName
36
- return `${entryName}${suffix}`;
24
+ },
25
+ rollupOptions: {
26
+ output: {
27
+ // An SFC and its `?vue&type=script` half share the chunk name `KvX.vue`; unless they're named apart,
28
+ // Rollup suffixes one with `2` by module order and `vue/KvX.js` can end up renderless.
29
+ entryFileNames: ({ name, facadeModuleId }) => {
30
+ // Rename node_modules directory from bundled dependencies to avoid module resolution issues
31
+ if (name.startsWith('node_modules')) {
32
+ return `${name.replace('node_modules/', 'vendor/')}.js`;
33
+ }
34
+ if (name.endsWith('.vue')) {
35
+ const isScriptBlock = facadeModuleId?.includes('?vue&type=script');
36
+ return `${name.slice(0, -4)}${isScriptBlock ? '.script' : ''}.js`;
37
+ }
38
+ return `${name}.js`;
39
+ },
37
40
  },
38
41
  },
39
42
  },