@kiva/kv-components 4.8.6 → 5.1.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.
Files changed (999) hide show
  1. package/build/copyFlags.js +11 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/data/ne_110m_admin_0_countries.json.js +9 -0
  4. package/dist/index.js +181 -0
  5. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  6. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1204 -0
  7. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +126 -0
  8. package/dist/node_modules/embla-carousel-fade/esm/embla-carousel-fade.esm.js +143 -0
  9. package/dist/node_modules/popper.js/dist/esm/popper.js +1037 -0
  10. package/dist/utils/Alea.js +31 -7
  11. package/dist/utils/attrs.js +17 -5
  12. package/dist/utils/carousels.js +96 -6
  13. package/dist/utils/expander.js +34 -7
  14. package/dist/utils/imageUtils.js +20 -7
  15. package/dist/utils/loanCard.js +122 -7
  16. package/dist/utils/loanUtils.js +78 -21
  17. package/dist/utils/mapUtils.js +177 -13
  18. package/dist/utils/printing.js +8 -7
  19. package/dist/utils/scrollLock.js +16 -11
  20. package/dist/utils/themeUtils.js +13 -0
  21. package/dist/utils/throttle.js +8 -5
  22. package/dist/utils/touchEvents.js +16 -9
  23. package/dist/utils/treemap.js +59 -5
  24. package/dist/vue/KvAccordionItem.js +95 -0
  25. package/dist/vue/KvActivityRow.js +36 -0
  26. package/dist/vue/KvBorrowerImage.js +140 -0
  27. package/dist/vue/KvButton.js +184 -0
  28. package/dist/vue/KvCarousel.css +1 -0
  29. package/dist/vue/KvCarousel.js +246 -0
  30. package/dist/vue/KvCartModal.css +1 -0
  31. package/dist/vue/KvCartModal.js +235 -0
  32. package/dist/vue/KvCheckbox.js +134 -0
  33. package/dist/vue/KvChip.js +43 -0
  34. package/dist/vue/KvClassicLoanCard.css +1 -0
  35. package/dist/vue/KvClassicLoanCard.js +464 -0
  36. package/dist/vue/KvCommentsAdd.css +1 -0
  37. package/dist/vue/KvCommentsAdd.js +106 -0
  38. package/dist/vue/KvCommentsContainer.js +80 -0
  39. package/dist/vue/KvCommentsHeartButton.css +1 -0
  40. package/dist/vue/KvCommentsHeartButton.js +62 -0
  41. package/dist/vue/KvCommentsList.js +65 -0
  42. package/dist/vue/KvCommentsListItem.js +221 -0
  43. package/dist/vue/KvCommentsReplyButton.css +1 -0
  44. package/dist/vue/KvCommentsReplyButton.js +42 -0
  45. package/dist/vue/KvContentfulImg.js +196 -0
  46. package/dist/vue/KvCountdownTimer.js +31 -0
  47. package/dist/vue/KvExpandable.js +65 -0
  48. package/dist/vue/KvExpandableQuestion.js +99 -0
  49. package/dist/vue/KvFlag.css +1 -0
  50. package/dist/vue/KvFlag.js +628 -0
  51. package/dist/vue/KvGrid.js +26 -0
  52. package/dist/vue/KvImpactDashboardHeader.css +1 -0
  53. package/dist/vue/KvImpactDashboardHeader.js +31 -0
  54. package/dist/vue/KvInlineActivityCard.css +1 -0
  55. package/dist/vue/KvInlineActivityCard.js +53 -0
  56. package/dist/vue/KvInlineActivityFeed.css +1 -0
  57. package/dist/vue/KvInlineActivityFeed.js +30 -0
  58. package/dist/vue/KvIntroductionLoanCard.css +1 -0
  59. package/dist/vue/KvIntroductionLoanCard.js +387 -0
  60. package/dist/vue/KvLendAmountButton.js +60 -0
  61. package/dist/vue/KvLendCta.css +1 -0
  62. package/dist/vue/KvLendCta.js +490 -0
  63. package/dist/vue/KvLightbox.js +195 -0
  64. package/dist/vue/KvLineGraph.js +74 -0
  65. package/dist/vue/KvLoadingPlaceholder.css +1 -0
  66. package/dist/vue/KvLoadingPlaceholder.js +11 -0
  67. package/dist/vue/KvLoadingSpinner.js +49 -0
  68. package/dist/vue/KvLoanActivities.css +1 -0
  69. package/dist/vue/KvLoanActivities.js +211 -0
  70. package/dist/vue/KvLoanBookmark.js +41 -0
  71. package/dist/vue/KvLoanCallouts.css +1 -0
  72. package/dist/vue/KvLoanCallouts.js +30 -0
  73. package/dist/vue/KvLoanProgressGroup.css +1 -0
  74. package/dist/vue/KvLoanProgressGroup.js +68 -0
  75. package/dist/vue/KvLoanTag.js +88 -0
  76. package/dist/vue/KvLoanTeamPick.js +12 -0
  77. package/dist/vue/KvLoanUse.js +73 -0
  78. package/dist/vue/KvMap.css +1 -0
  79. package/dist/vue/KvMap.js +372 -0
  80. package/dist/vue/KvMaterialIcon.js +34 -0
  81. package/dist/vue/KvPageContainer.js +15 -0
  82. package/dist/vue/KvPagination.js +163 -0
  83. package/dist/vue/KvPieChart.css +1 -0
  84. package/dist/vue/KvPieChart.js +166 -0
  85. package/dist/vue/KvPopper.js +132 -0
  86. package/dist/vue/KvProgressBar.js +118 -0
  87. package/dist/vue/KvRadio.js +130 -0
  88. package/dist/vue/KvSelect.js +92 -0
  89. package/dist/vue/KvSideSheet.js +159 -0
  90. package/dist/vue/KvSwitch.js +88 -0
  91. package/dist/vue/KvTab.js +67 -0
  92. package/dist/vue/KvTabPanel.js +56 -0
  93. package/dist/vue/KvTabs.js +86 -0
  94. package/dist/vue/KvTextInput.js +185 -0
  95. package/dist/vue/KvTextLink.js +93 -0
  96. package/dist/vue/KvThemeProvider.css +1 -0
  97. package/dist/vue/KvThemeProvider.js +65 -0
  98. package/dist/vue/KvToast.js +123 -0
  99. package/dist/vue/KvTooltip.css +1 -0
  100. package/dist/vue/KvTooltip.js +91 -0
  101. package/dist/vue/KvTreeMapChart.css +1 -0
  102. package/dist/vue/KvTreeMapChart.js +177 -0
  103. package/dist/vue/KvUserAvatar.js +99 -0
  104. package/dist/vue/KvVerticalCarousel.js +175 -0
  105. package/dist/vue/KvVotingCard.css +1 -0
  106. package/dist/vue/KvVotingCard.js +131 -0
  107. package/dist/vue/KvVotingCardV2.css +1 -0
  108. package/dist/vue/KvVotingCardV2.js +120 -0
  109. package/dist/vue/KvWideLoanCard.css +1 -0
  110. package/dist/vue/KvWideLoanCard.js +367 -0
  111. package/dist/vue/flags/1x1/ad.svg.js +4 -0
  112. package/dist/vue/flags/1x1/ae.svg.js +4 -0
  113. package/dist/vue/flags/1x1/af.svg.js +4 -0
  114. package/dist/vue/flags/1x1/ag.svg.js +4 -0
  115. package/dist/vue/flags/1x1/ai.svg.js +4 -0
  116. package/dist/vue/flags/1x1/al.svg.js +4 -0
  117. package/dist/vue/flags/1x1/am.svg.js +4 -0
  118. package/dist/vue/flags/1x1/ao.svg.js +4 -0
  119. package/dist/vue/flags/1x1/aq.svg.js +4 -0
  120. package/dist/vue/flags/1x1/ar.svg.js +4 -0
  121. package/dist/vue/flags/1x1/arab.svg.js +4 -0
  122. package/dist/vue/flags/1x1/as.svg.js +4 -0
  123. package/dist/vue/flags/1x1/at.svg.js +4 -0
  124. package/dist/vue/flags/1x1/au.svg.js +4 -0
  125. package/dist/vue/flags/1x1/aw.svg.js +4 -0
  126. package/dist/vue/flags/1x1/ax.svg.js +4 -0
  127. package/dist/vue/flags/1x1/az.svg.js +4 -0
  128. package/dist/vue/flags/1x1/ba.svg.js +4 -0
  129. package/dist/vue/flags/1x1/bb.svg.js +4 -0
  130. package/dist/vue/flags/1x1/bd.svg.js +4 -0
  131. package/dist/vue/flags/1x1/be.svg.js +4 -0
  132. package/dist/vue/flags/1x1/bf.svg.js +4 -0
  133. package/dist/vue/flags/1x1/bg.svg.js +4 -0
  134. package/dist/vue/flags/1x1/bh.svg.js +4 -0
  135. package/dist/vue/flags/1x1/bi.svg.js +4 -0
  136. package/dist/vue/flags/1x1/bj.svg.js +4 -0
  137. package/dist/vue/flags/1x1/bl.svg.js +4 -0
  138. package/dist/vue/flags/1x1/bm.svg.js +4 -0
  139. package/dist/vue/flags/1x1/bn.svg.js +4 -0
  140. package/dist/vue/flags/1x1/bo.svg.js +4 -0
  141. package/dist/vue/flags/1x1/bq.svg.js +4 -0
  142. package/dist/vue/flags/1x1/br.svg.js +4 -0
  143. package/dist/vue/flags/1x1/bs.svg.js +4 -0
  144. package/dist/vue/flags/1x1/bt.svg.js +4 -0
  145. package/dist/vue/flags/1x1/bv.svg.js +4 -0
  146. package/dist/vue/flags/1x1/bw.svg.js +4 -0
  147. package/dist/vue/flags/1x1/by.svg.js +4 -0
  148. package/dist/vue/flags/1x1/bz.svg.js +4 -0
  149. package/dist/vue/flags/1x1/ca.svg.js +4 -0
  150. package/dist/vue/flags/1x1/cc.svg.js +4 -0
  151. package/dist/vue/flags/1x1/cd.svg.js +4 -0
  152. package/dist/vue/flags/1x1/cefta.svg.js +4 -0
  153. package/dist/vue/flags/1x1/cf.svg.js +4 -0
  154. package/dist/vue/flags/1x1/cg.svg.js +4 -0
  155. package/dist/vue/flags/1x1/ch.svg.js +4 -0
  156. package/dist/vue/flags/1x1/ci.svg.js +4 -0
  157. package/dist/vue/flags/1x1/ck.svg.js +4 -0
  158. package/dist/vue/flags/1x1/cl.svg.js +4 -0
  159. package/dist/vue/flags/1x1/cm.svg.js +4 -0
  160. package/dist/vue/flags/1x1/cn.svg.js +4 -0
  161. package/dist/vue/flags/1x1/co.svg.js +4 -0
  162. package/dist/vue/flags/1x1/cp.svg.js +4 -0
  163. package/dist/vue/flags/1x1/cr.svg.js +4 -0
  164. package/dist/vue/flags/1x1/cu.svg.js +4 -0
  165. package/dist/vue/flags/1x1/cv.svg.js +4 -0
  166. package/dist/vue/flags/1x1/cw.svg.js +4 -0
  167. package/dist/vue/flags/1x1/cx.svg.js +4 -0
  168. package/dist/vue/flags/1x1/cy.svg.js +4 -0
  169. package/dist/vue/flags/1x1/cz.svg.js +4 -0
  170. package/dist/vue/flags/1x1/de.svg.js +4 -0
  171. package/dist/vue/flags/1x1/dg.svg.js +4 -0
  172. package/dist/vue/flags/1x1/dj.svg.js +4 -0
  173. package/dist/vue/flags/1x1/dk.svg.js +4 -0
  174. package/dist/vue/flags/1x1/dm.svg.js +4 -0
  175. package/dist/vue/flags/1x1/do.svg.js +4 -0
  176. package/dist/vue/flags/1x1/dz.svg.js +4 -0
  177. package/dist/vue/flags/1x1/eac.svg.js +4 -0
  178. package/dist/vue/flags/1x1/ec.svg.js +4 -0
  179. package/dist/vue/flags/1x1/ee.svg.js +4 -0
  180. package/dist/vue/flags/1x1/eg.svg.js +4 -0
  181. package/dist/vue/flags/1x1/eh.svg.js +4 -0
  182. package/dist/vue/flags/1x1/er.svg.js +4 -0
  183. package/dist/vue/flags/1x1/es-ct.svg.js +4 -0
  184. package/dist/vue/flags/1x1/es-ga.svg.js +4 -0
  185. package/dist/vue/flags/1x1/es-pv.svg.js +4 -0
  186. package/dist/vue/flags/1x1/es.svg.js +4 -0
  187. package/dist/vue/flags/1x1/et.svg.js +4 -0
  188. package/dist/vue/flags/1x1/eu.svg.js +4 -0
  189. package/dist/vue/flags/1x1/fi.svg.js +4 -0
  190. package/dist/vue/flags/1x1/fj.svg.js +4 -0
  191. package/dist/vue/flags/1x1/fk.svg.js +4 -0
  192. package/dist/vue/flags/1x1/fm.svg.js +4 -0
  193. package/dist/vue/flags/1x1/fo.svg.js +4 -0
  194. package/dist/vue/flags/1x1/fr.svg.js +4 -0
  195. package/dist/vue/flags/1x1/ga.svg.js +4 -0
  196. package/dist/vue/flags/1x1/gb-eng.svg.js +4 -0
  197. package/dist/vue/flags/1x1/gb-nir.svg.js +4 -0
  198. package/dist/vue/flags/1x1/gb-sct.svg.js +4 -0
  199. package/dist/vue/flags/1x1/gb-wls.svg.js +4 -0
  200. package/dist/vue/flags/1x1/gb.svg.js +4 -0
  201. package/dist/vue/flags/1x1/gd.svg.js +4 -0
  202. package/dist/vue/flags/1x1/ge.svg.js +4 -0
  203. package/dist/vue/flags/1x1/gf.svg.js +4 -0
  204. package/dist/vue/flags/1x1/gg.svg.js +4 -0
  205. package/dist/vue/flags/1x1/gh.svg.js +4 -0
  206. package/dist/vue/flags/1x1/gi.svg.js +4 -0
  207. package/dist/vue/flags/1x1/gl.svg.js +4 -0
  208. package/dist/vue/flags/1x1/gm.svg.js +4 -0
  209. package/dist/vue/flags/1x1/gn.svg.js +4 -0
  210. package/dist/vue/flags/1x1/gp.svg.js +4 -0
  211. package/dist/vue/flags/1x1/gq.svg.js +4 -0
  212. package/dist/vue/flags/1x1/gr.svg.js +4 -0
  213. package/dist/vue/flags/1x1/gs.svg.js +4 -0
  214. package/dist/vue/flags/1x1/gt.svg.js +4 -0
  215. package/dist/vue/flags/1x1/gu.svg.js +4 -0
  216. package/dist/vue/flags/1x1/gw.svg.js +4 -0
  217. package/dist/vue/flags/1x1/gy.svg.js +4 -0
  218. package/dist/vue/flags/1x1/hk.svg.js +4 -0
  219. package/dist/vue/flags/1x1/hm.svg.js +4 -0
  220. package/dist/vue/flags/1x1/hn.svg.js +4 -0
  221. package/dist/vue/flags/1x1/hr.svg.js +4 -0
  222. package/dist/vue/flags/1x1/ht.svg.js +4 -0
  223. package/dist/vue/flags/1x1/hu.svg.js +4 -0
  224. package/dist/vue/flags/1x1/ic.svg.js +4 -0
  225. package/dist/vue/flags/1x1/id.svg.js +4 -0
  226. package/dist/vue/flags/1x1/ie.svg.js +4 -0
  227. package/dist/vue/flags/1x1/il.svg.js +4 -0
  228. package/dist/vue/flags/1x1/im.svg.js +4 -0
  229. package/dist/vue/flags/1x1/in.svg.js +4 -0
  230. package/dist/vue/flags/1x1/io.svg.js +4 -0
  231. package/dist/vue/flags/1x1/iq.svg.js +4 -0
  232. package/dist/vue/flags/1x1/ir.svg.js +4 -0
  233. package/dist/vue/flags/1x1/is.svg.js +4 -0
  234. package/dist/vue/flags/1x1/it.svg.js +4 -0
  235. package/dist/vue/flags/1x1/je.svg.js +4 -0
  236. package/dist/vue/flags/1x1/jm.svg.js +4 -0
  237. package/dist/vue/flags/1x1/jo.svg.js +4 -0
  238. package/dist/vue/flags/1x1/jp.svg.js +4 -0
  239. package/dist/vue/flags/1x1/ke.svg.js +4 -0
  240. package/dist/vue/flags/1x1/kg.svg.js +4 -0
  241. package/dist/vue/flags/1x1/kh.svg.js +4 -0
  242. package/dist/vue/flags/1x1/ki.svg.js +4 -0
  243. package/dist/vue/flags/1x1/km.svg.js +4 -0
  244. package/dist/vue/flags/1x1/kn.svg.js +4 -0
  245. package/dist/vue/flags/1x1/kp.svg.js +4 -0
  246. package/dist/vue/flags/1x1/kr.svg.js +4 -0
  247. package/dist/vue/flags/1x1/kw.svg.js +4 -0
  248. package/dist/vue/flags/1x1/ky.svg.js +4 -0
  249. package/dist/vue/flags/1x1/kz.svg.js +4 -0
  250. package/dist/vue/flags/1x1/la.svg.js +4 -0
  251. package/dist/vue/flags/1x1/lb.svg.js +4 -0
  252. package/dist/vue/flags/1x1/lc.svg.js +4 -0
  253. package/dist/vue/flags/1x1/li.svg.js +4 -0
  254. package/dist/vue/flags/1x1/lk.svg.js +4 -0
  255. package/dist/vue/flags/1x1/lr.svg.js +4 -0
  256. package/dist/vue/flags/1x1/ls.svg.js +4 -0
  257. package/dist/vue/flags/1x1/lt.svg.js +4 -0
  258. package/dist/vue/flags/1x1/lu.svg.js +4 -0
  259. package/dist/vue/flags/1x1/lv.svg.js +4 -0
  260. package/dist/vue/flags/1x1/ly.svg.js +4 -0
  261. package/dist/vue/flags/1x1/ma.svg.js +4 -0
  262. package/dist/vue/flags/1x1/mc.svg.js +4 -0
  263. package/dist/vue/flags/1x1/md.svg.js +4 -0
  264. package/dist/vue/flags/1x1/me.svg.js +4 -0
  265. package/dist/vue/flags/1x1/mf.svg.js +4 -0
  266. package/dist/vue/flags/1x1/mg.svg.js +4 -0
  267. package/dist/vue/flags/1x1/mh.svg.js +4 -0
  268. package/dist/vue/flags/1x1/mk.svg.js +4 -0
  269. package/dist/vue/flags/1x1/ml.svg.js +4 -0
  270. package/dist/vue/flags/1x1/mm.svg.js +4 -0
  271. package/dist/vue/flags/1x1/mn.svg.js +4 -0
  272. package/dist/vue/flags/1x1/mo.svg.js +4 -0
  273. package/dist/vue/flags/1x1/mp.svg.js +4 -0
  274. package/dist/vue/flags/1x1/mq.svg.js +4 -0
  275. package/dist/vue/flags/1x1/mr.svg.js +4 -0
  276. package/dist/vue/flags/1x1/ms.svg.js +4 -0
  277. package/dist/vue/flags/1x1/mt.svg.js +4 -0
  278. package/dist/vue/flags/1x1/mu.svg.js +4 -0
  279. package/dist/vue/flags/1x1/mv.svg.js +4 -0
  280. package/dist/vue/flags/1x1/mw.svg.js +4 -0
  281. package/dist/vue/flags/1x1/mx.svg.js +4 -0
  282. package/dist/vue/flags/1x1/my.svg.js +4 -0
  283. package/dist/vue/flags/1x1/mz.svg.js +4 -0
  284. package/dist/vue/flags/1x1/na.svg.js +4 -0
  285. package/dist/vue/flags/1x1/nc.svg.js +4 -0
  286. package/dist/vue/flags/1x1/ne.svg.js +4 -0
  287. package/dist/vue/flags/1x1/nf.svg.js +4 -0
  288. package/dist/vue/flags/1x1/ng.svg.js +4 -0
  289. package/dist/vue/flags/1x1/ni.svg.js +4 -0
  290. package/dist/vue/flags/1x1/nl.svg.js +4 -0
  291. package/dist/vue/flags/1x1/no.svg.js +4 -0
  292. package/dist/vue/flags/1x1/np.svg.js +4 -0
  293. package/dist/vue/flags/1x1/nr.svg.js +4 -0
  294. package/dist/vue/flags/1x1/nu.svg.js +4 -0
  295. package/dist/vue/flags/1x1/nz.svg.js +4 -0
  296. package/dist/vue/flags/1x1/om.svg.js +4 -0
  297. package/dist/vue/flags/1x1/pa.svg.js +4 -0
  298. package/dist/vue/flags/1x1/pc.svg.js +4 -0
  299. package/dist/vue/flags/1x1/pe.svg.js +4 -0
  300. package/dist/vue/flags/1x1/pf.svg.js +4 -0
  301. package/dist/vue/flags/1x1/pg.svg.js +4 -0
  302. package/dist/vue/flags/1x1/ph.svg.js +4 -0
  303. package/dist/vue/flags/1x1/pk.svg.js +4 -0
  304. package/dist/vue/flags/1x1/pl.svg.js +4 -0
  305. package/dist/vue/flags/1x1/pm.svg.js +4 -0
  306. package/dist/vue/flags/1x1/pn.svg.js +4 -0
  307. package/dist/vue/flags/1x1/pr.svg.js +4 -0
  308. package/dist/vue/flags/1x1/ps.svg.js +4 -0
  309. package/dist/vue/flags/1x1/pt.svg.js +4 -0
  310. package/dist/vue/flags/1x1/pw.svg.js +4 -0
  311. package/dist/vue/flags/1x1/py.svg.js +4 -0
  312. package/dist/vue/flags/1x1/qa.svg.js +4 -0
  313. package/dist/vue/flags/1x1/re.svg.js +4 -0
  314. package/dist/vue/flags/1x1/ro.svg.js +4 -0
  315. package/dist/vue/flags/1x1/rs.svg.js +4 -0
  316. package/dist/vue/flags/1x1/ru.svg.js +4 -0
  317. package/dist/vue/flags/1x1/rw.svg.js +4 -0
  318. package/dist/vue/flags/1x1/sa.svg.js +4 -0
  319. package/dist/vue/flags/1x1/sb.svg.js +4 -0
  320. package/dist/vue/flags/1x1/sc.svg.js +4 -0
  321. package/dist/vue/flags/1x1/sd.svg.js +4 -0
  322. package/dist/vue/flags/1x1/se.svg.js +4 -0
  323. package/dist/vue/flags/1x1/sg.svg.js +4 -0
  324. package/dist/vue/flags/1x1/sh-ac.svg.js +4 -0
  325. package/dist/vue/flags/1x1/sh-hl.svg.js +4 -0
  326. package/dist/vue/flags/1x1/sh-ta.svg.js +4 -0
  327. package/dist/vue/flags/1x1/sh.svg.js +4 -0
  328. package/dist/vue/flags/1x1/si.svg.js +4 -0
  329. package/dist/vue/flags/1x1/sj.svg.js +4 -0
  330. package/dist/vue/flags/1x1/sk.svg.js +4 -0
  331. package/dist/vue/flags/1x1/sl.svg.js +4 -0
  332. package/dist/vue/flags/1x1/sm.svg.js +4 -0
  333. package/dist/vue/flags/1x1/sn.svg.js +4 -0
  334. package/dist/vue/flags/1x1/so.svg.js +4 -0
  335. package/dist/vue/flags/1x1/sr.svg.js +4 -0
  336. package/dist/vue/flags/1x1/ss.svg.js +4 -0
  337. package/dist/vue/flags/1x1/st.svg.js +4 -0
  338. package/dist/vue/flags/1x1/sv.svg.js +4 -0
  339. package/dist/vue/flags/1x1/sx.svg.js +4 -0
  340. package/dist/vue/flags/1x1/sy.svg.js +4 -0
  341. package/dist/vue/flags/1x1/sz.svg.js +4 -0
  342. package/dist/vue/flags/1x1/tc.svg.js +4 -0
  343. package/dist/vue/flags/1x1/td.svg.js +4 -0
  344. package/dist/vue/flags/1x1/tf.svg.js +4 -0
  345. package/dist/vue/flags/1x1/tg.svg.js +4 -0
  346. package/dist/vue/flags/1x1/th.svg.js +4 -0
  347. package/dist/vue/flags/1x1/tj.svg.js +4 -0
  348. package/dist/vue/flags/1x1/tk.svg.js +4 -0
  349. package/dist/vue/flags/1x1/tl.svg.js +4 -0
  350. package/dist/vue/flags/1x1/tm.svg.js +4 -0
  351. package/dist/vue/flags/1x1/tn.svg.js +4 -0
  352. package/dist/vue/flags/1x1/to.svg.js +4 -0
  353. package/dist/vue/flags/1x1/tr.svg.js +4 -0
  354. package/dist/vue/flags/1x1/tt.svg.js +4 -0
  355. package/dist/vue/flags/1x1/tv.svg.js +4 -0
  356. package/dist/vue/flags/1x1/tw.svg.js +4 -0
  357. package/dist/vue/flags/1x1/tz.svg.js +4 -0
  358. package/dist/vue/flags/1x1/ua.svg.js +4 -0
  359. package/dist/vue/flags/1x1/ug.svg.js +4 -0
  360. package/dist/vue/flags/1x1/um.svg.js +4 -0
  361. package/dist/vue/flags/1x1/un.svg.js +4 -0
  362. package/dist/vue/flags/1x1/us.svg.js +4 -0
  363. package/dist/vue/flags/1x1/uy.svg.js +4 -0
  364. package/dist/vue/flags/1x1/uz.svg.js +4 -0
  365. package/dist/vue/flags/1x1/va.svg.js +4 -0
  366. package/dist/vue/flags/1x1/vc.svg.js +4 -0
  367. package/dist/vue/flags/1x1/ve.svg.js +4 -0
  368. package/dist/vue/flags/1x1/vg.svg.js +4 -0
  369. package/dist/vue/flags/1x1/vi.svg.js +4 -0
  370. package/dist/vue/flags/1x1/vn.svg.js +4 -0
  371. package/dist/vue/flags/1x1/vu.svg.js +4 -0
  372. package/dist/vue/flags/1x1/wf.svg.js +4 -0
  373. package/dist/vue/flags/1x1/ws.svg.js +4 -0
  374. package/dist/vue/flags/1x1/xk.svg.js +4 -0
  375. package/dist/vue/flags/1x1/xx.svg.js +4 -0
  376. package/dist/vue/flags/1x1/ye.svg.js +4 -0
  377. package/dist/vue/flags/1x1/yt.svg.js +4 -0
  378. package/dist/vue/flags/1x1/za.svg.js +4 -0
  379. package/dist/vue/flags/1x1/zm.svg.js +4 -0
  380. package/dist/vue/flags/1x1/zw.svg.js +4 -0
  381. package/dist/vue/flags/4x3/ad.svg.js +4 -0
  382. package/dist/vue/flags/4x3/ae.svg.js +4 -0
  383. package/dist/vue/flags/4x3/af.svg.js +4 -0
  384. package/dist/vue/flags/4x3/ag.svg.js +4 -0
  385. package/dist/vue/flags/4x3/ai.svg.js +4 -0
  386. package/dist/vue/flags/4x3/al.svg.js +4 -0
  387. package/dist/vue/flags/4x3/am.svg.js +4 -0
  388. package/dist/vue/flags/4x3/ao.svg.js +4 -0
  389. package/dist/vue/flags/4x3/aq.svg.js +4 -0
  390. package/dist/vue/flags/4x3/ar.svg.js +4 -0
  391. package/dist/vue/flags/4x3/arab.svg.js +4 -0
  392. package/dist/vue/flags/4x3/as.svg.js +4 -0
  393. package/dist/vue/flags/4x3/at.svg.js +4 -0
  394. package/dist/vue/flags/4x3/au.svg.js +4 -0
  395. package/dist/vue/flags/4x3/aw.svg.js +4 -0
  396. package/dist/vue/flags/4x3/ax.svg.js +4 -0
  397. package/dist/vue/flags/4x3/az.svg.js +4 -0
  398. package/dist/vue/flags/4x3/ba.svg.js +4 -0
  399. package/dist/vue/flags/4x3/bb.svg.js +4 -0
  400. package/dist/vue/flags/4x3/bd.svg.js +4 -0
  401. package/dist/vue/flags/4x3/be.svg.js +4 -0
  402. package/dist/vue/flags/4x3/bf.svg.js +4 -0
  403. package/dist/vue/flags/4x3/bg.svg.js +4 -0
  404. package/dist/vue/flags/4x3/bh.svg.js +4 -0
  405. package/dist/vue/flags/4x3/bi.svg.js +4 -0
  406. package/dist/vue/flags/4x3/bj.svg.js +4 -0
  407. package/dist/vue/flags/4x3/bl.svg.js +4 -0
  408. package/dist/vue/flags/4x3/bm.svg.js +4 -0
  409. package/dist/vue/flags/4x3/bn.svg.js +4 -0
  410. package/dist/vue/flags/4x3/bo.svg.js +4 -0
  411. package/dist/vue/flags/4x3/bq.svg.js +4 -0
  412. package/dist/vue/flags/4x3/br.svg.js +4 -0
  413. package/dist/vue/flags/4x3/bs.svg.js +4 -0
  414. package/dist/vue/flags/4x3/bt.svg.js +4 -0
  415. package/dist/vue/flags/4x3/bv.svg.js +4 -0
  416. package/dist/vue/flags/4x3/bw.svg.js +4 -0
  417. package/dist/vue/flags/4x3/by.svg.js +4 -0
  418. package/dist/vue/flags/4x3/bz.svg.js +4 -0
  419. package/dist/vue/flags/4x3/ca.svg.js +4 -0
  420. package/dist/vue/flags/4x3/cc.svg.js +4 -0
  421. package/dist/vue/flags/4x3/cd.svg.js +4 -0
  422. package/dist/vue/flags/4x3/cefta.svg.js +4 -0
  423. package/dist/vue/flags/4x3/cf.svg.js +4 -0
  424. package/dist/vue/flags/4x3/cg.svg.js +4 -0
  425. package/dist/vue/flags/4x3/ch.svg.js +4 -0
  426. package/dist/vue/flags/4x3/ci.svg.js +4 -0
  427. package/dist/vue/flags/4x3/ck.svg.js +4 -0
  428. package/dist/vue/flags/4x3/cl.svg.js +4 -0
  429. package/dist/vue/flags/4x3/cm.svg.js +4 -0
  430. package/dist/vue/flags/4x3/cn.svg.js +4 -0
  431. package/dist/vue/flags/4x3/co.svg.js +4 -0
  432. package/dist/vue/flags/4x3/cp.svg.js +4 -0
  433. package/dist/vue/flags/4x3/cr.svg.js +4 -0
  434. package/dist/vue/flags/4x3/cu.svg.js +4 -0
  435. package/dist/vue/flags/4x3/cv.svg.js +4 -0
  436. package/dist/vue/flags/4x3/cw.svg.js +4 -0
  437. package/dist/vue/flags/4x3/cx.svg.js +4 -0
  438. package/dist/vue/flags/4x3/cy.svg.js +4 -0
  439. package/dist/vue/flags/4x3/cz.svg.js +4 -0
  440. package/dist/vue/flags/4x3/de.svg.js +4 -0
  441. package/dist/vue/flags/4x3/dg.svg.js +4 -0
  442. package/dist/vue/flags/4x3/dj.svg.js +4 -0
  443. package/dist/vue/flags/4x3/dk.svg.js +4 -0
  444. package/dist/vue/flags/4x3/dm.svg.js +4 -0
  445. package/dist/vue/flags/4x3/do.svg.js +4 -0
  446. package/dist/vue/flags/4x3/dz.svg.js +4 -0
  447. package/dist/vue/flags/4x3/eac.svg.js +4 -0
  448. package/dist/vue/flags/4x3/ec.svg.js +4 -0
  449. package/dist/vue/flags/4x3/ee.svg.js +4 -0
  450. package/dist/vue/flags/4x3/eg.svg.js +4 -0
  451. package/dist/vue/flags/4x3/eh.svg.js +4 -0
  452. package/dist/vue/flags/4x3/er.svg.js +4 -0
  453. package/dist/vue/flags/4x3/es-ct.svg.js +4 -0
  454. package/dist/vue/flags/4x3/es-ga.svg.js +4 -0
  455. package/dist/vue/flags/4x3/es-pv.svg.js +4 -0
  456. package/dist/vue/flags/4x3/es.svg.js +4 -0
  457. package/dist/vue/flags/4x3/et.svg.js +4 -0
  458. package/dist/vue/flags/4x3/eu.svg.js +4 -0
  459. package/dist/vue/flags/4x3/fi.svg.js +4 -0
  460. package/dist/vue/flags/4x3/fj.svg.js +4 -0
  461. package/dist/vue/flags/4x3/fk.svg.js +4 -0
  462. package/dist/vue/flags/4x3/fm.svg.js +4 -0
  463. package/dist/vue/flags/4x3/fo.svg.js +4 -0
  464. package/dist/vue/flags/4x3/fr.svg.js +4 -0
  465. package/dist/vue/flags/4x3/ga.svg.js +4 -0
  466. package/dist/vue/flags/4x3/gb-eng.svg.js +4 -0
  467. package/dist/vue/flags/4x3/gb-nir.svg.js +4 -0
  468. package/dist/vue/flags/4x3/gb-sct.svg.js +4 -0
  469. package/dist/vue/flags/4x3/gb-wls.svg.js +4 -0
  470. package/dist/vue/flags/4x3/gb.svg.js +4 -0
  471. package/dist/vue/flags/4x3/gd.svg.js +4 -0
  472. package/dist/vue/flags/4x3/ge.svg.js +4 -0
  473. package/dist/vue/flags/4x3/gf.svg.js +4 -0
  474. package/dist/vue/flags/4x3/gg.svg.js +4 -0
  475. package/dist/vue/flags/4x3/gh.svg.js +4 -0
  476. package/dist/vue/flags/4x3/gi.svg.js +4 -0
  477. package/dist/vue/flags/4x3/gl.svg.js +4 -0
  478. package/dist/vue/flags/4x3/gm.svg.js +4 -0
  479. package/dist/vue/flags/4x3/gn.svg.js +4 -0
  480. package/dist/vue/flags/4x3/gp.svg.js +4 -0
  481. package/dist/vue/flags/4x3/gq.svg.js +4 -0
  482. package/dist/vue/flags/4x3/gr.svg.js +4 -0
  483. package/dist/vue/flags/4x3/gs.svg.js +4 -0
  484. package/dist/vue/flags/4x3/gt.svg.js +4 -0
  485. package/dist/vue/flags/4x3/gu.svg.js +4 -0
  486. package/dist/vue/flags/4x3/gw.svg.js +4 -0
  487. package/dist/vue/flags/4x3/gy.svg.js +4 -0
  488. package/dist/vue/flags/4x3/hk.svg.js +4 -0
  489. package/dist/vue/flags/4x3/hm.svg.js +4 -0
  490. package/dist/vue/flags/4x3/hn.svg.js +4 -0
  491. package/dist/vue/flags/4x3/hr.svg.js +4 -0
  492. package/dist/vue/flags/4x3/ht.svg.js +4 -0
  493. package/dist/vue/flags/4x3/hu.svg.js +4 -0
  494. package/dist/vue/flags/4x3/ic.svg.js +4 -0
  495. package/dist/vue/flags/4x3/id.svg.js +4 -0
  496. package/dist/vue/flags/4x3/ie.svg.js +4 -0
  497. package/dist/vue/flags/4x3/il.svg.js +4 -0
  498. package/dist/vue/flags/4x3/im.svg.js +4 -0
  499. package/dist/vue/flags/4x3/in.svg.js +4 -0
  500. package/dist/vue/flags/4x3/io.svg.js +4 -0
  501. package/dist/vue/flags/4x3/iq.svg.js +4 -0
  502. package/dist/vue/flags/4x3/ir.svg.js +4 -0
  503. package/dist/vue/flags/4x3/is.svg.js +4 -0
  504. package/dist/vue/flags/4x3/it.svg.js +4 -0
  505. package/dist/vue/flags/4x3/je.svg.js +4 -0
  506. package/dist/vue/flags/4x3/jm.svg.js +4 -0
  507. package/dist/vue/flags/4x3/jo.svg.js +4 -0
  508. package/dist/vue/flags/4x3/jp.svg.js +4 -0
  509. package/dist/vue/flags/4x3/ke.svg.js +4 -0
  510. package/dist/vue/flags/4x3/kg.svg.js +4 -0
  511. package/dist/vue/flags/4x3/kh.svg.js +4 -0
  512. package/dist/vue/flags/4x3/ki.svg.js +4 -0
  513. package/dist/vue/flags/4x3/km.svg.js +4 -0
  514. package/dist/vue/flags/4x3/kn.svg.js +4 -0
  515. package/dist/vue/flags/4x3/kp.svg.js +4 -0
  516. package/dist/vue/flags/4x3/kr.svg.js +4 -0
  517. package/dist/vue/flags/4x3/kw.svg.js +4 -0
  518. package/dist/vue/flags/4x3/ky.svg.js +4 -0
  519. package/dist/vue/flags/4x3/kz.svg.js +4 -0
  520. package/dist/vue/flags/4x3/la.svg.js +4 -0
  521. package/dist/vue/flags/4x3/lb.svg.js +4 -0
  522. package/dist/vue/flags/4x3/lc.svg.js +4 -0
  523. package/dist/vue/flags/4x3/li.svg.js +4 -0
  524. package/dist/vue/flags/4x3/lk.svg.js +4 -0
  525. package/dist/vue/flags/4x3/lr.svg.js +4 -0
  526. package/dist/vue/flags/4x3/ls.svg.js +4 -0
  527. package/dist/vue/flags/4x3/lt.svg.js +4 -0
  528. package/dist/vue/flags/4x3/lu.svg.js +4 -0
  529. package/dist/vue/flags/4x3/lv.svg.js +4 -0
  530. package/dist/vue/flags/4x3/ly.svg.js +4 -0
  531. package/dist/vue/flags/4x3/ma.svg.js +4 -0
  532. package/dist/vue/flags/4x3/mc.svg.js +4 -0
  533. package/dist/vue/flags/4x3/md.svg.js +4 -0
  534. package/dist/vue/flags/4x3/me.svg.js +4 -0
  535. package/dist/vue/flags/4x3/mf.svg.js +4 -0
  536. package/dist/vue/flags/4x3/mg.svg.js +4 -0
  537. package/dist/vue/flags/4x3/mh.svg.js +4 -0
  538. package/dist/vue/flags/4x3/mk.svg.js +4 -0
  539. package/dist/vue/flags/4x3/ml.svg.js +4 -0
  540. package/dist/vue/flags/4x3/mm.svg.js +4 -0
  541. package/dist/vue/flags/4x3/mn.svg.js +4 -0
  542. package/dist/vue/flags/4x3/mo.svg.js +4 -0
  543. package/dist/vue/flags/4x3/mp.svg.js +4 -0
  544. package/dist/vue/flags/4x3/mq.svg.js +4 -0
  545. package/dist/vue/flags/4x3/mr.svg.js +4 -0
  546. package/dist/vue/flags/4x3/ms.svg.js +4 -0
  547. package/dist/vue/flags/4x3/mt.svg.js +4 -0
  548. package/dist/vue/flags/4x3/mu.svg.js +4 -0
  549. package/dist/vue/flags/4x3/mv.svg.js +4 -0
  550. package/dist/vue/flags/4x3/mw.svg.js +4 -0
  551. package/dist/vue/flags/4x3/mx.svg.js +4 -0
  552. package/dist/vue/flags/4x3/my.svg.js +4 -0
  553. package/dist/vue/flags/4x3/mz.svg.js +4 -0
  554. package/dist/vue/flags/4x3/na.svg.js +4 -0
  555. package/dist/vue/flags/4x3/nc.svg.js +4 -0
  556. package/dist/vue/flags/4x3/ne.svg.js +4 -0
  557. package/dist/vue/flags/4x3/nf.svg.js +4 -0
  558. package/dist/vue/flags/4x3/ng.svg.js +4 -0
  559. package/dist/vue/flags/4x3/ni.svg.js +4 -0
  560. package/dist/vue/flags/4x3/nl.svg.js +4 -0
  561. package/dist/vue/flags/4x3/no.svg.js +4 -0
  562. package/dist/vue/flags/4x3/np.svg.js +4 -0
  563. package/dist/vue/flags/4x3/nr.svg.js +4 -0
  564. package/dist/vue/flags/4x3/nu.svg.js +4 -0
  565. package/dist/vue/flags/4x3/nz.svg.js +4 -0
  566. package/dist/vue/flags/4x3/om.svg.js +4 -0
  567. package/dist/vue/flags/4x3/pa.svg.js +4 -0
  568. package/dist/vue/flags/4x3/pc.svg.js +4 -0
  569. package/dist/vue/flags/4x3/pe.svg.js +4 -0
  570. package/dist/vue/flags/4x3/pf.svg.js +4 -0
  571. package/dist/vue/flags/4x3/pg.svg.js +4 -0
  572. package/dist/vue/flags/4x3/ph.svg.js +4 -0
  573. package/dist/vue/flags/4x3/pk.svg.js +4 -0
  574. package/dist/vue/flags/4x3/pl.svg.js +4 -0
  575. package/dist/vue/flags/4x3/pm.svg.js +4 -0
  576. package/dist/vue/flags/4x3/pn.svg.js +4 -0
  577. package/dist/vue/flags/4x3/pr.svg.js +4 -0
  578. package/dist/vue/flags/4x3/ps.svg.js +4 -0
  579. package/dist/vue/flags/4x3/pt.svg.js +4 -0
  580. package/dist/vue/flags/4x3/pw.svg.js +4 -0
  581. package/dist/vue/flags/4x3/py.svg.js +4 -0
  582. package/dist/vue/flags/4x3/qa.svg.js +4 -0
  583. package/dist/vue/flags/4x3/re.svg.js +4 -0
  584. package/dist/vue/flags/4x3/ro.svg.js +4 -0
  585. package/dist/vue/flags/4x3/rs.svg.js +4 -0
  586. package/dist/vue/flags/4x3/ru.svg.js +4 -0
  587. package/dist/vue/flags/4x3/rw.svg.js +4 -0
  588. package/dist/vue/flags/4x3/sa.svg.js +4 -0
  589. package/dist/vue/flags/4x3/sb.svg.js +4 -0
  590. package/dist/vue/flags/4x3/sc.svg.js +4 -0
  591. package/dist/vue/flags/4x3/sd.svg.js +4 -0
  592. package/dist/vue/flags/4x3/se.svg.js +4 -0
  593. package/dist/vue/flags/4x3/sg.svg.js +4 -0
  594. package/dist/vue/flags/4x3/sh-ac.svg.js +4 -0
  595. package/dist/vue/flags/4x3/sh-hl.svg.js +4 -0
  596. package/dist/vue/flags/4x3/sh-ta.svg.js +4 -0
  597. package/dist/vue/flags/4x3/sh.svg.js +4 -0
  598. package/dist/vue/flags/4x3/si.svg.js +4 -0
  599. package/dist/vue/flags/4x3/sj.svg.js +4 -0
  600. package/dist/vue/flags/4x3/sk.svg.js +4 -0
  601. package/dist/vue/flags/4x3/sl.svg.js +4 -0
  602. package/dist/vue/flags/4x3/sm.svg.js +4 -0
  603. package/dist/vue/flags/4x3/sn.svg.js +4 -0
  604. package/dist/vue/flags/4x3/so.svg.js +4 -0
  605. package/dist/vue/flags/4x3/sr.svg.js +4 -0
  606. package/dist/vue/flags/4x3/ss.svg.js +4 -0
  607. package/dist/vue/flags/4x3/st.svg.js +4 -0
  608. package/dist/vue/flags/4x3/sv.svg.js +4 -0
  609. package/dist/vue/flags/4x3/sx.svg.js +4 -0
  610. package/dist/vue/flags/4x3/sy.svg.js +4 -0
  611. package/dist/vue/flags/4x3/sz.svg.js +4 -0
  612. package/dist/vue/flags/4x3/tc.svg.js +4 -0
  613. package/dist/vue/flags/4x3/td.svg.js +4 -0
  614. package/dist/vue/flags/4x3/tf.svg.js +4 -0
  615. package/dist/vue/flags/4x3/tg.svg.js +4 -0
  616. package/dist/vue/flags/4x3/th.svg.js +4 -0
  617. package/dist/vue/flags/4x3/tj.svg.js +4 -0
  618. package/dist/vue/flags/4x3/tk.svg.js +4 -0
  619. package/dist/vue/flags/4x3/tl.svg.js +4 -0
  620. package/dist/vue/flags/4x3/tm.svg.js +4 -0
  621. package/dist/vue/flags/4x3/tn.svg.js +4 -0
  622. package/dist/vue/flags/4x3/to.svg.js +4 -0
  623. package/dist/vue/flags/4x3/tr.svg.js +4 -0
  624. package/dist/vue/flags/4x3/tt.svg.js +4 -0
  625. package/dist/vue/flags/4x3/tv.svg.js +4 -0
  626. package/dist/vue/flags/4x3/tw.svg.js +4 -0
  627. package/dist/vue/flags/4x3/tz.svg.js +4 -0
  628. package/dist/vue/flags/4x3/ua.svg.js +4 -0
  629. package/dist/vue/flags/4x3/ug.svg.js +4 -0
  630. package/dist/vue/flags/4x3/um.svg.js +4 -0
  631. package/dist/vue/flags/4x3/un.svg.js +4 -0
  632. package/dist/vue/flags/4x3/us.svg.js +4 -0
  633. package/dist/vue/flags/4x3/uy.svg.js +4 -0
  634. package/dist/vue/flags/4x3/uz.svg.js +4 -0
  635. package/dist/vue/flags/4x3/va.svg.js +4 -0
  636. package/dist/vue/flags/4x3/vc.svg.js +4 -0
  637. package/dist/vue/flags/4x3/ve.svg.js +4 -0
  638. package/dist/vue/flags/4x3/vg.svg.js +4 -0
  639. package/dist/vue/flags/4x3/vi.svg.js +4 -0
  640. package/dist/vue/flags/4x3/vn.svg.js +4 -0
  641. package/dist/vue/flags/4x3/vu.svg.js +4 -0
  642. package/dist/vue/flags/4x3/wf.svg.js +4 -0
  643. package/dist/vue/flags/4x3/ws.svg.js +4 -0
  644. package/dist/vue/flags/4x3/xk.svg.js +4 -0
  645. package/dist/vue/flags/4x3/xx.svg.js +4 -0
  646. package/dist/vue/flags/4x3/ye.svg.js +4 -0
  647. package/dist/vue/flags/4x3/yt.svg.js +4 -0
  648. package/dist/vue/flags/4x3/za.svg.js +4 -0
  649. package/dist/vue/flags/4x3/zm.svg.js +4 -0
  650. package/dist/vue/flags/4x3/zw.svg.js +4 -0
  651. package/package.json +60 -52
  652. package/.eslintrc.cjs +0 -23
  653. package/CHANGELOG.md +0 -3615
  654. package/__mocks__/ResizeObserver.js +0 -13
  655. package/babel.config.cjs +0 -12
  656. package/data/countries-borders.json +0 -1
  657. package/data/ne_110m_admin_0_countries.json +0 -1
  658. package/dist/components/.storybook/main.js +0 -88
  659. package/dist/components/.storybook/package.json +0 -3
  660. package/dist/components/.storybook/preview.js +0 -53
  661. package/dist/components/.storybook/tailwind.css +0 -5
  662. package/dist/components/KvAccordionItem.vue +0 -130
  663. package/dist/components/KvActivityRow.vue +0 -33
  664. package/dist/components/KvBorrowerImage.vue +0 -179
  665. package/dist/components/KvButton.vue +0 -288
  666. package/dist/components/KvCarousel.vue +0 -314
  667. package/dist/components/KvCartModal.vue +0 -365
  668. package/dist/components/KvCheckbox.vue +0 -203
  669. package/dist/components/KvChip.vue +0 -54
  670. package/dist/components/KvClassicLoanCard.vue +0 -527
  671. package/dist/components/KvCommentsAdd.vue +0 -135
  672. package/dist/components/KvCommentsContainer.vue +0 -84
  673. package/dist/components/KvCommentsHeartButton.vue +0 -70
  674. package/dist/components/KvCommentsList.vue +0 -68
  675. package/dist/components/KvCommentsListItem.vue +0 -241
  676. package/dist/components/KvCommentsReplyButton.vue +0 -52
  677. package/dist/components/KvContentfulImg.vue +0 -273
  678. package/dist/components/KvCountdownTimer.vue +0 -59
  679. package/dist/components/KvExpandable.vue +0 -84
  680. package/dist/components/KvExpandableQuestion.vue +0 -120
  681. package/dist/components/KvFlag.vue +0 -120
  682. package/dist/components/KvGrid.vue +0 -28
  683. package/dist/components/KvImpactDashboardHeader.vue +0 -40
  684. package/dist/components/KvInlineActivityCard.vue +0 -55
  685. package/dist/components/KvInlineActivityFeed.vue +0 -38
  686. package/dist/components/KvIntroductionLoanCard.vue +0 -449
  687. package/dist/components/KvLendAmountButton.vue +0 -65
  688. package/dist/components/KvLendCta.vue +0 -589
  689. package/dist/components/KvLightbox.vue +0 -334
  690. package/dist/components/KvLineGraph.vue +0 -128
  691. package/dist/components/KvLoadingPlaceholder.vue +0 -38
  692. package/dist/components/KvLoadingSpinner.vue +0 -81
  693. package/dist/components/KvLoanActivities.vue +0 -268
  694. package/dist/components/KvLoanBookmark.vue +0 -39
  695. package/dist/components/KvLoanCallouts.vue +0 -53
  696. package/dist/components/KvLoanProgressGroup.vue +0 -76
  697. package/dist/components/KvLoanTag.vue +0 -88
  698. package/dist/components/KvLoanTeamPick.vue +0 -44
  699. package/dist/components/KvLoanUse.vue +0 -92
  700. package/dist/components/KvMap.vue +0 -599
  701. package/dist/components/KvMaterialIcon.vue +0 -47
  702. package/dist/components/KvPageContainer.vue +0 -15
  703. package/dist/components/KvPagination.vue +0 -198
  704. package/dist/components/KvPieChart.vue +0 -257
  705. package/dist/components/KvPopper.vue +0 -178
  706. package/dist/components/KvProgressBar.vue +0 -149
  707. package/dist/components/KvRadio.vue +0 -198
  708. package/dist/components/KvSelect.vue +0 -114
  709. package/dist/components/KvSideSheet.vue +0 -196
  710. package/dist/components/KvSwitch.vue +0 -143
  711. package/dist/components/KvTab.vue +0 -90
  712. package/dist/components/KvTabPanel.vue +0 -64
  713. package/dist/components/KvTabs.vue +0 -182
  714. package/dist/components/KvTextInput.vue +0 -250
  715. package/dist/components/KvTextLink.vue +0 -138
  716. package/dist/components/KvThemeProvider.vue +0 -122
  717. package/dist/components/KvToast.vue +0 -221
  718. package/dist/components/KvTooltip.vue +0 -168
  719. package/dist/components/KvTreeMapChart.vue +0 -229
  720. package/dist/components/KvUserAvatar.vue +0 -132
  721. package/dist/components/KvVerticalCarousel.vue +0 -219
  722. package/dist/components/KvVotingCard.vue +0 -160
  723. package/dist/components/KvVotingCardV2.vue +0 -154
  724. package/dist/components/KvWideLoanCard.vue +0 -433
  725. package/dist/components/stories/Forms.stories.js +0 -62
  726. package/dist/components/stories/KvAccordionItem.stories.js +0 -24
  727. package/dist/components/stories/KvActivityRow.stories.js +0 -27
  728. package/dist/components/stories/KvBorrowerImage.stories.js +0 -62
  729. package/dist/components/stories/KvButton.stories.js +0 -142
  730. package/dist/components/stories/KvCarousel.stories.js +0 -489
  731. package/dist/components/stories/KvCartModal.stories.js +0 -51
  732. package/dist/components/stories/KvCheckbox.stories.js +0 -163
  733. package/dist/components/stories/KvChip.stories.js +0 -43
  734. package/dist/components/stories/KvClassicLoanCard.stories.js +0 -458
  735. package/dist/components/stories/KvCommentsAdd.stories.js +0 -32
  736. package/dist/components/stories/KvCommentsContainer.stories.js +0 -42
  737. package/dist/components/stories/KvCommentsHeartButton.stories.js +0 -25
  738. package/dist/components/stories/KvCommentsList.stories.js +0 -39
  739. package/dist/components/stories/KvCommentsListItem.stories.js +0 -45
  740. package/dist/components/stories/KvCommentsReplyButton.stories.js +0 -21
  741. package/dist/components/stories/KvContentfulImg.stories.js +0 -173
  742. package/dist/components/stories/KvCountdownTimer.stories.js +0 -31
  743. package/dist/components/stories/KvExpandableQuestion.stories.js +0 -129
  744. package/dist/components/stories/KvFlag.stories.js +0 -38
  745. package/dist/components/stories/KvGrid.stories.js +0 -97
  746. package/dist/components/stories/KvImpactDashboardHeader.stories.js +0 -22
  747. package/dist/components/stories/KvInlineActivityCard.stories.js +0 -69
  748. package/dist/components/stories/KvInlineActivityFeed.stories.js +0 -76
  749. package/dist/components/stories/KvIntroductionLoanCard.stories.js +0 -204
  750. package/dist/components/stories/KvLendAmountButton.stories.js +0 -31
  751. package/dist/components/stories/KvLendCta.stories.js +0 -332
  752. package/dist/components/stories/KvLightbox.stories.js +0 -308
  753. package/dist/components/stories/KvLineGraph.stories.js +0 -53
  754. package/dist/components/stories/KvLoadingPlaceholder.stories.js +0 -17
  755. package/dist/components/stories/KvLoadingSpinner.stories.js +0 -50
  756. package/dist/components/stories/KvLoanActivities.stories.js +0 -103
  757. package/dist/components/stories/KvLoanBookmark.stories.js +0 -23
  758. package/dist/components/stories/KvLoanCallouts.stories.js +0 -23
  759. package/dist/components/stories/KvLoanProgressGroup.stories.js +0 -29
  760. package/dist/components/stories/KvLoanTag.stories.js +0 -62
  761. package/dist/components/stories/KvLoanTeamPick.stories.js +0 -20
  762. package/dist/components/stories/KvLoanUse.stories.js +0 -54
  763. package/dist/components/stories/KvMap.stories.js +0 -108
  764. package/dist/components/stories/KvMaterialIcon.stories.js +0 -210
  765. package/dist/components/stories/KvPageContainer.stories.js +0 -50
  766. package/dist/components/stories/KvPagination.stories.js +0 -66
  767. package/dist/components/stories/KvPieChart.stories.js +0 -47
  768. package/dist/components/stories/KvProgressBar.stories.js +0 -48
  769. package/dist/components/stories/KvRadio.stories.js +0 -140
  770. package/dist/components/stories/KvSelect.stories.js +0 -125
  771. package/dist/components/stories/KvSideSheet.stories.js +0 -68
  772. package/dist/components/stories/KvSwitch.stories.js +0 -66
  773. package/dist/components/stories/KvTabs.stories.js +0 -106
  774. package/dist/components/stories/KvTextInput.stories.js +0 -194
  775. package/dist/components/stories/KvTextLink.stories.js +0 -51
  776. package/dist/components/stories/KvThemeProvider.stories.js +0 -212
  777. package/dist/components/stories/KvToast.stories.js +0 -111
  778. package/dist/components/stories/KvTooltip.stories.js +0 -26
  779. package/dist/components/stories/KvTreeMapChart.stories.js +0 -42
  780. package/dist/components/stories/KvUserAvatar.stories.js +0 -47
  781. package/dist/components/stories/KvVerticalCarousel.stories.js +0 -294
  782. package/dist/components/stories/KvVotingCard.stories.js +0 -33
  783. package/dist/components/stories/KvVotingCardV2.stories.js +0 -89
  784. package/dist/components/stories/KvWideLoanCard.stories.js +0 -278
  785. package/dist/components/stories/StyleguidePrimitives.stories.js +0 -498
  786. package/dist/components/stories/StyleguideProse.stories.js +0 -271
  787. package/dist/data/countries-borders.json +0 -1
  788. package/dist/data/ne_110m_admin_0_countries.json +0 -1
  789. package/dist/utils/Alea.cjs +0 -87
  790. package/dist/utils/attrs.cjs +0 -50
  791. package/dist/utils/carousels.cjs +0 -220
  792. package/dist/utils/chunk-3HK4G4NT.js +0 -27
  793. package/dist/utils/chunk-55HF2ORX.js +0 -201
  794. package/dist/utils/chunk-AY3PR5S4.js +0 -54
  795. package/dist/utils/chunk-B5J5WLAH.js +0 -18
  796. package/dist/utils/chunk-GPSH6OPA.js +0 -64
  797. package/dist/utils/chunk-HIY5IW65.js +0 -28
  798. package/dist/utils/chunk-HV3AUBFT.js +0 -15
  799. package/dist/utils/chunk-MSMZIN54.js +0 -110
  800. package/dist/utils/chunk-OXJCCNNW.js +0 -30
  801. package/dist/utils/chunk-S3MABILA.js +0 -22
  802. package/dist/utils/chunk-TR3NWLTZ.js +0 -184
  803. package/dist/utils/chunk-VIGEMAKO.js +0 -249
  804. package/dist/utils/chunk-YCNMJ4YV.js +0 -37
  805. package/dist/utils/chunk-YFEC5ODJ.js +0 -129
  806. package/dist/utils/expander.cjs +0 -78
  807. package/dist/utils/imageUtils.cjs +0 -54
  808. package/dist/utils/index.cjs +0 -1154
  809. package/dist/utils/index.js +0 -166
  810. package/dist/utils/loanCard.cjs +0 -222
  811. package/dist/utils/loanUtils.cjs +0 -170
  812. package/dist/utils/mapUtils.cjs +0 -276
  813. package/dist/utils/printing.cjs +0 -42
  814. package/dist/utils/scrollLock.cjs +0 -54
  815. package/dist/utils/throttle.cjs +0 -38
  816. package/dist/utils/touchEvents.cjs +0 -47
  817. package/dist/utils/treemap.cjs +0 -133
  818. package/jest.config.cjs +0 -47
  819. package/postcss.config.cjs +0 -6
  820. package/tailwind.config.cjs +0 -64
  821. package/tests/fixtures/mockCommentsData.js +0 -36
  822. package/tests/fixtures/mockLenderCountries.js +0 -674
  823. package/tests/unit/.eslintrc +0 -5
  824. package/tests/unit/jest-setup.js +0 -5
  825. package/tests/unit/specs/components/KvButton.spec.js +0 -92
  826. package/tests/unit/specs/components/KvCarousel.spec.js +0 -78
  827. package/tests/unit/specs/components/KvCheckbox.spec.js +0 -109
  828. package/tests/unit/specs/components/KvClassicLoanCard.spec.js +0 -201
  829. package/tests/unit/specs/components/KvCommentsAdd.spec.js +0 -108
  830. package/tests/unit/specs/components/KvCommentsContainer.spec.js +0 -40
  831. package/tests/unit/specs/components/KvCommentsHeartButton.spec.js +0 -32
  832. package/tests/unit/specs/components/KvCommentsList.spec.js +0 -83
  833. package/tests/unit/specs/components/KvCommentsListItem.spec.js +0 -120
  834. package/tests/unit/specs/components/KvCommentsReplyButton.spec.js +0 -23
  835. package/tests/unit/specs/components/KvExpandableQuestion.spec.js +0 -55
  836. package/tests/unit/specs/components/KvLendAmountButton.spec.js +0 -36
  837. package/tests/unit/specs/components/KvLightbox.spec.js +0 -14
  838. package/tests/unit/specs/components/KvLineGraph.spec.js +0 -58
  839. package/tests/unit/specs/components/KvLoanProgressGroup.spec.js +0 -50
  840. package/tests/unit/specs/components/KvPagination.spec.js +0 -132
  841. package/tests/unit/specs/components/KvProgressBar.spec.js +0 -11
  842. package/tests/unit/specs/components/KvRadio.spec.js +0 -184
  843. package/tests/unit/specs/components/KvSelect.spec.js +0 -113
  844. package/tests/unit/specs/components/KvSwitch.spec.js +0 -120
  845. package/tests/unit/specs/components/KvTabPanel.spec.js +0 -32
  846. package/tests/unit/specs/components/KvTabs.spec.js +0 -167
  847. package/tests/unit/specs/components/KvTextInput.spec.js +0 -151
  848. package/tests/unit/specs/components/KvTextLink.spec.js +0 -53
  849. package/tests/unit/specs/components/KvToast.spec.js +0 -11
  850. package/tests/unit/specs/components/KvWideLoanCard.spec.js +0 -136
  851. package/tests/unit/specs/utils/imageUtils.spec.js +0 -29
  852. package/tests/unit/specs/utils/loanUtils.spec.js +0 -437
  853. package/tests/unit/specs/utils/mapUtils.spec.js +0 -72
  854. package/tests/unit/specs/utils/treemap.spec.js +0 -248
  855. package/tests/unit/utils/addVueRouter.js +0 -18
  856. package/utils/Alea.js +0 -92
  857. package/utils/attrs.js +0 -62
  858. package/utils/carousels.js +0 -252
  859. package/utils/expander.js +0 -72
  860. package/utils/imageUtils.js +0 -43
  861. package/utils/index.js +0 -14
  862. package/utils/loanCard.js +0 -204
  863. package/utils/loanUtils.js +0 -209
  864. package/utils/mapUtils.js +0 -360
  865. package/utils/printing.js +0 -13
  866. package/utils/scrollLock.js +0 -25
  867. package/utils/themeUtils.cjs +0 -29
  868. package/utils/throttle.js +0 -11
  869. package/utils/touchEvents.js +0 -22
  870. package/utils/treemap.js +0 -138
  871. package/vue/.storybook/main.js +0 -88
  872. package/vue/.storybook/package.json +0 -3
  873. package/vue/.storybook/preview.js +0 -53
  874. package/vue/.storybook/tailwind.css +0 -5
  875. package/vue/KvAccordionItem.vue +0 -130
  876. package/vue/KvActivityRow.vue +0 -33
  877. package/vue/KvBorrowerImage.vue +0 -179
  878. package/vue/KvButton.vue +0 -288
  879. package/vue/KvCarousel.vue +0 -314
  880. package/vue/KvCartModal.vue +0 -365
  881. package/vue/KvCheckbox.vue +0 -203
  882. package/vue/KvChip.vue +0 -54
  883. package/vue/KvClassicLoanCard.vue +0 -527
  884. package/vue/KvCommentsAdd.vue +0 -135
  885. package/vue/KvCommentsContainer.vue +0 -84
  886. package/vue/KvCommentsHeartButton.vue +0 -70
  887. package/vue/KvCommentsList.vue +0 -68
  888. package/vue/KvCommentsListItem.vue +0 -241
  889. package/vue/KvCommentsReplyButton.vue +0 -52
  890. package/vue/KvContentfulImg.vue +0 -273
  891. package/vue/KvCountdownTimer.vue +0 -59
  892. package/vue/KvExpandable.vue +0 -84
  893. package/vue/KvExpandableQuestion.vue +0 -120
  894. package/vue/KvFlag.vue +0 -120
  895. package/vue/KvGrid.vue +0 -28
  896. package/vue/KvImpactDashboardHeader.vue +0 -40
  897. package/vue/KvInlineActivityCard.vue +0 -55
  898. package/vue/KvInlineActivityFeed.vue +0 -38
  899. package/vue/KvIntroductionLoanCard.vue +0 -449
  900. package/vue/KvLendAmountButton.vue +0 -65
  901. package/vue/KvLendCta.vue +0 -589
  902. package/vue/KvLightbox.vue +0 -334
  903. package/vue/KvLineGraph.vue +0 -128
  904. package/vue/KvLoadingPlaceholder.vue +0 -38
  905. package/vue/KvLoadingSpinner.vue +0 -81
  906. package/vue/KvLoanActivities.vue +0 -268
  907. package/vue/KvLoanBookmark.vue +0 -39
  908. package/vue/KvLoanCallouts.vue +0 -53
  909. package/vue/KvLoanProgressGroup.vue +0 -76
  910. package/vue/KvLoanTag.vue +0 -88
  911. package/vue/KvLoanTeamPick.vue +0 -44
  912. package/vue/KvLoanUse.vue +0 -92
  913. package/vue/KvMap.vue +0 -599
  914. package/vue/KvMaterialIcon.vue +0 -47
  915. package/vue/KvPageContainer.vue +0 -15
  916. package/vue/KvPagination.vue +0 -198
  917. package/vue/KvPieChart.vue +0 -257
  918. package/vue/KvPopper.vue +0 -178
  919. package/vue/KvProgressBar.vue +0 -149
  920. package/vue/KvRadio.vue +0 -198
  921. package/vue/KvSelect.vue +0 -114
  922. package/vue/KvSideSheet.vue +0 -196
  923. package/vue/KvSwitch.vue +0 -143
  924. package/vue/KvTab.vue +0 -90
  925. package/vue/KvTabPanel.vue +0 -64
  926. package/vue/KvTabs.vue +0 -182
  927. package/vue/KvTextInput.vue +0 -250
  928. package/vue/KvTextLink.vue +0 -138
  929. package/vue/KvThemeProvider.vue +0 -122
  930. package/vue/KvToast.vue +0 -221
  931. package/vue/KvTooltip.vue +0 -168
  932. package/vue/KvTreeMapChart.vue +0 -229
  933. package/vue/KvUserAvatar.vue +0 -132
  934. package/vue/KvVerticalCarousel.vue +0 -219
  935. package/vue/KvVotingCard.vue +0 -160
  936. package/vue/KvVotingCardV2.vue +0 -154
  937. package/vue/KvWideLoanCard.vue +0 -433
  938. package/vue/stories/Forms.stories.js +0 -62
  939. package/vue/stories/KvAccordionItem.stories.js +0 -24
  940. package/vue/stories/KvActivityRow.stories.js +0 -27
  941. package/vue/stories/KvBorrowerImage.stories.js +0 -62
  942. package/vue/stories/KvButton.stories.js +0 -142
  943. package/vue/stories/KvCarousel.stories.js +0 -489
  944. package/vue/stories/KvCartModal.stories.js +0 -51
  945. package/vue/stories/KvCheckbox.stories.js +0 -163
  946. package/vue/stories/KvChip.stories.js +0 -43
  947. package/vue/stories/KvClassicLoanCard.stories.js +0 -458
  948. package/vue/stories/KvCommentsAdd.stories.js +0 -32
  949. package/vue/stories/KvCommentsContainer.stories.js +0 -42
  950. package/vue/stories/KvCommentsHeartButton.stories.js +0 -25
  951. package/vue/stories/KvCommentsList.stories.js +0 -39
  952. package/vue/stories/KvCommentsListItem.stories.js +0 -45
  953. package/vue/stories/KvCommentsReplyButton.stories.js +0 -21
  954. package/vue/stories/KvContentfulImg.stories.js +0 -173
  955. package/vue/stories/KvCountdownTimer.stories.js +0 -31
  956. package/vue/stories/KvExpandableQuestion.stories.js +0 -129
  957. package/vue/stories/KvFlag.stories.js +0 -38
  958. package/vue/stories/KvGrid.stories.js +0 -97
  959. package/vue/stories/KvImpactDashboardHeader.stories.js +0 -22
  960. package/vue/stories/KvInlineActivityCard.stories.js +0 -69
  961. package/vue/stories/KvInlineActivityFeed.stories.js +0 -76
  962. package/vue/stories/KvIntroductionLoanCard.stories.js +0 -204
  963. package/vue/stories/KvLendAmountButton.stories.js +0 -31
  964. package/vue/stories/KvLendCta.stories.js +0 -332
  965. package/vue/stories/KvLightbox.stories.js +0 -308
  966. package/vue/stories/KvLineGraph.stories.js +0 -53
  967. package/vue/stories/KvLoadingPlaceholder.stories.js +0 -17
  968. package/vue/stories/KvLoadingSpinner.stories.js +0 -50
  969. package/vue/stories/KvLoanActivities.stories.js +0 -103
  970. package/vue/stories/KvLoanBookmark.stories.js +0 -23
  971. package/vue/stories/KvLoanCallouts.stories.js +0 -23
  972. package/vue/stories/KvLoanProgressGroup.stories.js +0 -29
  973. package/vue/stories/KvLoanTag.stories.js +0 -62
  974. package/vue/stories/KvLoanTeamPick.stories.js +0 -20
  975. package/vue/stories/KvLoanUse.stories.js +0 -54
  976. package/vue/stories/KvMap.stories.js +0 -108
  977. package/vue/stories/KvMaterialIcon.stories.js +0 -210
  978. package/vue/stories/KvPageContainer.stories.js +0 -50
  979. package/vue/stories/KvPagination.stories.js +0 -66
  980. package/vue/stories/KvPieChart.stories.js +0 -47
  981. package/vue/stories/KvProgressBar.stories.js +0 -48
  982. package/vue/stories/KvRadio.stories.js +0 -140
  983. package/vue/stories/KvSelect.stories.js +0 -125
  984. package/vue/stories/KvSideSheet.stories.js +0 -68
  985. package/vue/stories/KvSwitch.stories.js +0 -66
  986. package/vue/stories/KvTabs.stories.js +0 -106
  987. package/vue/stories/KvTextInput.stories.js +0 -194
  988. package/vue/stories/KvTextLink.stories.js +0 -51
  989. package/vue/stories/KvThemeProvider.stories.js +0 -212
  990. package/vue/stories/KvToast.stories.js +0 -111
  991. package/vue/stories/KvTooltip.stories.js +0 -26
  992. package/vue/stories/KvTreeMapChart.stories.js +0 -42
  993. package/vue/stories/KvUserAvatar.stories.js +0 -47
  994. package/vue/stories/KvVerticalCarousel.stories.js +0 -294
  995. package/vue/stories/KvVotingCard.stories.js +0 -33
  996. package/vue/stories/KvVotingCardV2.stories.js +0 -89
  997. package/vue/stories/KvWideLoanCard.stories.js +0 -278
  998. package/vue/stories/StyleguidePrimitives.stories.js +0 -498
  999. package/vue/stories/StyleguideProse.stories.js +0 -271
@@ -1,92 +0,0 @@
1
- import { render, fireEvent } from '@testing-library/vue';
2
- import userEvent from '@testing-library/user-event';
3
- import { axe } from 'jest-axe';
4
- import addVueRouter from '../../utils/addVueRouter';
5
- import KvButton from '../../../../vue/KvButton.vue';
6
-
7
- describe('Default Button', () => {
8
- const renderTestButton = (options) => render(KvButton, addVueRouter({
9
- slots: { default: 'Test Button' },
10
- ...options,
11
- }));
12
-
13
- it('renders as a button tag by default', () => {
14
- const { getByRole } = renderTestButton();
15
- getByRole('button', { name: 'Test Button' });
16
- });
17
-
18
- it('renders as an anchor tag when passed an href prop', () => {
19
- const { getByRole } = renderTestButton({
20
- props: { href: 'https://www.example.com/' },
21
- });
22
- const anchorEl = getByRole('link', { name: 'Test Button' });
23
- expect(anchorEl.href).toEqual('https://www.example.com/');
24
- });
25
-
26
- it('renders as an anchor tag when passed a route string', () => {
27
- const { getByRole } = renderTestButton({
28
- props: { to: '/home' },
29
- });
30
- const anchorEl = getByRole('link', { name: 'Test Button' });
31
- expect(anchorEl.href).toEqual('http://localhost/home');
32
- });
33
-
34
- it('renders as an anchor tag when passed a route object', () => {
35
- const { getByRole } = renderTestButton({
36
- props: {
37
- to: {
38
- path: 'test-route-with-query',
39
- query: {
40
- param1: 'a',
41
- },
42
- },
43
- },
44
- });
45
- const anchorEl = getByRole('link', { name: 'Test Button' });
46
- expect(anchorEl.href).toEqual('http://localhost/test-route-with-query?param1=a');
47
- });
48
-
49
- it('shows a ripple animation when clicked', async () => {
50
- const { getByText, getByTestId } = renderTestButton();
51
- const btnEl = getByText('Test Button');
52
- await fireEvent.click(btnEl);
53
- getByTestId('ripple');
54
- });
55
-
56
- it('passes through click events', async () => {
57
- const onClick = jest.fn();
58
- const { getByText } = render({
59
- template: `<div>
60
- <KvButton @click.prevent="onClick">Button tag</KvButton>
61
- <KvButton href="#test" @click.prevent="onClick">Anchor tag</KvButton>
62
- <KvButton to="/test" @click.native.prevent="onClick">Router-link</KvButton>
63
- </div>`,
64
- components: {
65
- KvButton,
66
- },
67
- methods: {
68
- onClick,
69
- },
70
- }, addVueRouter());
71
-
72
- // Click all the buttons and expect the onClick method to have been called 3 times
73
- await userEvent.click(getByText('Button tag'));
74
- await userEvent.click(getByText('Anchor tag'));
75
- await userEvent.click(getByText('Router-link'));
76
- expect(onClick.mock.calls.length).toBe(3);
77
- });
78
-
79
- it('when passed a loading prop, the button is disabled', () => {
80
- const { getByRole } = renderTestButton({
81
- props: { state: 'loading' },
82
- });
83
- const btnEl = getByRole('button', { name: 'Test Button' });
84
- expect(btnEl.disabled).toBeTruthy();
85
- });
86
-
87
- it('has no automated accessibility violations', async () => {
88
- const { container } = renderTestButton();
89
- const results = await axe(container);
90
- expect(results).toHaveNoViolations();
91
- });
92
- });
@@ -1,78 +0,0 @@
1
- import { render } from '@testing-library/vue';
2
- import { axe } from 'jest-axe';
3
- import KvCarousel from '../../../../vue/KvCarousel.vue';
4
-
5
- const randomHexColor = (index) => {
6
- const defaultColor = '96d4b3';
7
- const colorArray = [
8
- 'D5573B',
9
- '885053',
10
- '777DA7',
11
- '94C9A9',
12
- 'C6ECAE',
13
- 'C490D1',
14
- 'A0D2DB',
15
- '7D8CC4',
16
- '726DA8',
17
- ];
18
- return colorArray?.[index] || defaultColor;
19
- };
20
-
21
- const defaultCarouselSlides = `
22
- <template #slide1>
23
- <img src="https://placehold.co/300x220/${randomHexColor(1)}/000000" alt="img1" class="tw-w-full">
24
- </template>
25
- <template #slide2>
26
- <img src="https://placehold.co/300x220/${randomHexColor(2)}/000000" alt="img2" class="tw-w-full">
27
- </template>
28
- <template #slide3>
29
- <img src="https://placehold.co/300x220/${randomHexColor(3)}/000000" alt="img3" class="tw-w-full">
30
- </template>
31
- <template #slide4>
32
- <img src="https://placehold.co/300x220/${randomHexColor(4)}/000000" alt="img4" class="tw-w-full">
33
- </template>
34
- `;
35
-
36
- // Mocking IntersectionObserver and ResizeObserver and matchMedia
37
- // required for embla carousel
38
- Object.defineProperty(window, 'IntersectionObserver', {
39
- writable: true,
40
- value: jest.fn().mockImplementation(() => ({
41
- observe: jest.fn(),
42
- unobserve: jest.fn(),
43
- disconnect: jest.fn(),
44
- })),
45
- });
46
-
47
- Object.defineProperty(window, 'matchMedia', {
48
- writable: true,
49
- value: jest.fn().mockImplementation((query) => ({
50
- matches: [].includes(query),
51
- addEventListener: jest.fn(),
52
- removeEventListener: jest.fn(),
53
- })),
54
- });
55
-
56
- Object.defineProperty(window, 'ResizeObserver', {
57
- writable: true,
58
- value: jest.fn().mockImplementation(() => ({
59
- observe: jest.fn(),
60
- unobserve: jest.fn(),
61
- disconnect: jest.fn(),
62
- })),
63
- });
64
-
65
- describe('KvCarousel', () => {
66
- it('has no automated accessibility violations', async () => {
67
- const TestComponent = {
68
- template:
69
- `<kv-carousel style="max-width: 400px;">
70
- ${defaultCarouselSlides}
71
- </kv-carousel>`,
72
- components: { KvCarousel },
73
- };
74
- const { container } = render(TestComponent);
75
- const results = await axe(container);
76
- expect(results).toHaveNoViolations();
77
- });
78
- });
@@ -1,109 +0,0 @@
1
- import { render, fireEvent } from '@testing-library/vue';
2
- import { axe } from 'jest-axe';
3
- import KvCheckbox from '../../../../vue/KvCheckbox.vue';
4
-
5
- describe('KvCheckbox', () => {
6
- it('renders with a role of "checkbox"', () => {
7
- const { getByRole } = render(KvCheckbox, {
8
- slots: { default: 'Test Checkbox' },
9
- });
10
- const checkboxEl = getByRole('checkbox', { name: 'Test Checkbox' });
11
-
12
- expect(checkboxEl).toBeDefined();
13
- });
14
-
15
- it('can\'t be toggled when the disabled prop is true', async () => {
16
- const { getByLabelText } = render(KvCheckbox, {
17
- props: { disabled: true },
18
- slots: { default: 'Test Checkbox' },
19
- });
20
- const checkboxEl = getByLabelText('Test Checkbox');
21
-
22
- expect(checkboxEl.checked).toEqual(false);
23
- await checkboxEl.click();
24
- expect(checkboxEl.checked).toEqual(false);
25
- });
26
-
27
- it('works with v-model', async () => {
28
- const TestComponent = {
29
- template:
30
- `<div>
31
- <KvCheckbox v-model="checkboxValue">Test Checkbox</KvCheckbox>
32
- <button @click="checkboxValue = false">reset</button>
33
- <span>The checkbox value is {{ checkboxValue }}</span>
34
- </div>`,
35
- components: { KvCheckbox },
36
- data: () => ({ checkboxValue: false }),
37
- };
38
- const { getByLabelText, getByText } = render(TestComponent);
39
- const checkboxEl = getByText('Test Checkbox');
40
- const checkboxInput = getByLabelText('Test Checkbox');
41
-
42
- // Check that the value is `false` initially
43
- expect(getByText('The checkbox value is false')).toBeDefined();
44
- expect(checkboxInput.checked).toEqual(false);
45
-
46
- // Click the checkbox and expect the value to be `true` now
47
- await fireEvent.click(checkboxEl);
48
- expect(getByText('The checkbox value is true')).toBeDefined();
49
- expect(checkboxInput.checked).toEqual(true);
50
-
51
- // Click the reset button and expect the value to be `false` again
52
- await fireEvent.click(getByText('reset'));
53
- expect(getByText('The checkbox value is false')).toBeDefined();
54
- expect(checkboxInput.checked).toEqual(false);
55
- });
56
-
57
- it('applies parent event listeners to the input element', async () => {
58
- const onInput = jest.fn();
59
- const TestComponent = {
60
- template: '<KvCheckbox @input="onInput">Test Checkbox</KvCheckbox>',
61
- components: { KvCheckbox },
62
- methods: { onInput },
63
- };
64
- const { getByText } = render(TestComponent);
65
-
66
- const checkboxEl = getByText('Test Checkbox');
67
- await fireEvent.click(checkboxEl);
68
- expect(onInput.mock.calls.length).toBe(1);
69
- });
70
-
71
- it('applies parent attributes to the input element', async () => {
72
- const TestComponent = {
73
- template: '<KvCheckbox name="test-checkbox">Test Checkbox</KvCheckbox>',
74
- components: { KvCheckbox },
75
- };
76
- const { getByRole } = render(TestComponent);
77
-
78
- const checkboxEl = getByRole('checkbox');
79
- expect(checkboxEl.name).toBe('test-checkbox');
80
- });
81
-
82
- it('applies parent styles to the root element', async () => {
83
- const TestComponent = {
84
- template: '<KvCheckbox style="padding-top:1234px">Test Checkbox</KvCheckbox>',
85
- components: { KvCheckbox },
86
- };
87
- const { container } = render(TestComponent);
88
-
89
- expect(container.firstChild.style.paddingTop).toEqual('1234px');
90
- });
91
-
92
- it('applies parent classes to the root element', async () => {
93
- const TestComponent = {
94
- template: '<KvCheckbox class="test-class">Test Checkbox</KvCheckbox>',
95
- components: { KvCheckbox },
96
- };
97
- const { container } = render(TestComponent);
98
-
99
- expect(container.firstChild.classList).toContain('test-class');
100
- });
101
-
102
- it('has no automated accessibility violations', async () => {
103
- const { container } = render(KvCheckbox, {
104
- slots: { default: 'Test Checkbox' },
105
- });
106
- const results = await axe(container);
107
- expect(results).toHaveNoViolations();
108
- });
109
- });
@@ -1,201 +0,0 @@
1
- import { render } from '@testing-library/vue';
2
- import { axe } from 'jest-axe';
3
- import KvClassicLoanCard from '../../../../vue/KvClassicLoanCard.vue';
4
-
5
- const nextWeek = new Date();
6
- nextWeek.setDate(new Date().getDate() + 7);
7
- const kvTrackFunction = () => { };
8
-
9
- const photoPath = 'https://www-kiva-org.freetls.fastly.net/img/';
10
- const loan = {
11
- id: 1,
12
- name: 'Alan',
13
- geocode: {
14
- city: 'Lyantonde',
15
- state: 'Central Region',
16
- country: {
17
- isoCode: 'UG',
18
- name: 'Uganda',
19
- region: 'Africa',
20
- __typename: 'Country',
21
- },
22
- __typename: 'Geocode',
23
- },
24
- image: { hash: '9673d0722a7675b9b8d11f90849d9b44' },
25
- fundraisingPercent: 0.5,
26
- unreservedAmount: '500.00',
27
- use: 'to purchase heifers to increase headcount of cattle and sales of organic milk.',
28
- status: 'fundraising',
29
- loanAmount: '1000.00',
30
- borrowerCount: 1,
31
- activity: {
32
- id: 61,
33
- name: 'Dairy',
34
- __typename: 'Activity',
35
- },
36
- sector: {
37
- id: 1,
38
- name: 'Agriculture',
39
- __typename: 'Sector',
40
- },
41
- plannedExpirationDate: nextWeek.toISOString(),
42
- };
43
-
44
- const combinedActivities = [
45
- {
46
- key: 'Mon Nov 13 2023',
47
- data: [
48
- {
49
- lenderName: 'Erica',
50
- lenderImage: 'https://www.development.kiva.org/img/s100/4d844ac2c0b77a8a522741b908ea5c32.jpg',
51
- text: 'Erica lent $5',
52
- date: '2023-11-13T10:51:10Z',
53
- type: 'LendingAction',
54
- },
55
- ],
56
- },
57
- {
58
- key: 'Tue Nov 07 2023',
59
- data: [
60
- {
61
- lenderName: 'Joy',
62
- lenderImage: 'https://www.development.kiva.org/img/s100/4d844ac2c0b77a8a522741b908ea5c32.jpg',
63
- text: 'Joy left comment <span class="tw-italic">"I know him and his wife and they work hard to make everything they do the best. His farm and bake goods are amazing. He just keeps working harder and harder to do more and reach out to the community in everyway."</span>',
64
- date: '2023-11-08T02:37:56Z',
65
- type: 'Comment',
66
- },
67
- {
68
- lenderName: 'Joy',
69
- lenderImage: 'https://www.development.kiva.org/img/s100/4d844ac2c0b77a8a522741b908ea5c32.jpg',
70
- text: 'Joy lent $25',
71
- date: '2023-11-08T02:32:20Z',
72
- type: 'LendingAction',
73
- },
74
- ],
75
- },
76
- ];
77
-
78
- describe('KvClassicLoanCard', () => {
79
- it('has no automated accessibility violations', async () => {
80
- const { container } = render(KvClassicLoanCard,
81
- {
82
- props: {
83
- loanId: loan.id,
84
- loan: {
85
- ...loan,
86
- unreservedAmount: undefined,
87
- fundraisingPercent: undefined,
88
- },
89
- kvTrackFunction,
90
- photoPath,
91
- externalLinks: true,
92
- },
93
- });
94
- const results = await axe(container);
95
- expect(results).toHaveNoViolations();
96
- });
97
-
98
- it('location should be formatted correctly for PR', async () => {
99
- const { getByText } = render(KvClassicLoanCard,
100
- {
101
- props: {
102
- loanId: loan.id,
103
- loan: {
104
- ...loan,
105
- unreservedAmount: undefined,
106
- fundraisingPercent: undefined,
107
- geocode: {
108
- city: 'Rincon',
109
- country: {
110
- name: 'Puerto Rico',
111
- },
112
- },
113
- },
114
- kvTrackFunction,
115
- photoPath,
116
- externalLinks: true,
117
- },
118
- });
119
-
120
- const countryTagElement = getByText('Rincon, PR');
121
- expect(countryTagElement).toBeDefined();
122
- });
123
-
124
- it('location should be formatted correctly for Kiva US', async () => {
125
- const { getByText } = render(KvClassicLoanCard,
126
- {
127
- props: {
128
- loanId: loan.id,
129
- loan: {
130
- ...loan,
131
- distributionModel: 'direct',
132
- geocode: {
133
- city: 'Boulder',
134
- state: 'Colorado',
135
- country: {
136
- name: 'United States',
137
- },
138
- },
139
- },
140
- kvTrackFunction,
141
- photoPath,
142
- externalLinks: true,
143
- },
144
- });
145
-
146
- const countryTagElement = getByText('Boulder, Colorado, United States');
147
- expect(countryTagElement).toBeDefined();
148
- });
149
-
150
- it('location should be formatted correctly for partner loans', async () => {
151
- const { getByText } = render(KvClassicLoanCard,
152
- {
153
- props: {
154
- loanId: loan.id,
155
- loan: {
156
- ...loan,
157
- distributionModel: 'partner',
158
- geocode: {
159
- country: {
160
- name: 'Uganda',
161
- },
162
- },
163
- },
164
- kvTrackFunction,
165
- photoPath,
166
- externalLinks: true,
167
- },
168
- });
169
-
170
- const countryTagElement = getByText('Uganda');
171
- expect(countryTagElement).toBeDefined();
172
- });
173
-
174
- it('activity feed should be showed correctly', () => {
175
- const { getByText, getByRole } = render(KvClassicLoanCard,
176
- {
177
- props: {
178
- loanId: loan.id,
179
- loan: {
180
- ...loan,
181
- loanFundraisingInfo: {
182
- fundedAmount: '950.00',
183
- isExpiringSoon: false,
184
- reservedAmount: '0.00',
185
- },
186
- lenders: {
187
- totalCount: 7,
188
- },
189
- },
190
- kvTrackFunction,
191
- photoPath,
192
- combinedActivities,
193
- },
194
- });
195
-
196
- const activityText = getByText('7 lenders lent $950.');
197
- const activityBtn = getByRole('button', { name: 'See all activity' });
198
- expect(activityText).toBeDefined();
199
- expect(activityBtn).toBeDefined();
200
- });
201
- });
@@ -1,108 +0,0 @@
1
- import { render } from '@testing-library/vue';
2
- import userEvent from '@testing-library/user-event';
3
- import CommentsAdd, { ADD_COMMENT_EVENT, HIDE_INPUT_EVENT } from '../../../../vue/KvCommentsAdd.vue';
4
-
5
- const renderCommentsAdd = (props = {}) => {
6
- return render(CommentsAdd, { props });
7
- };
8
-
9
- describe('KvCommentsAdd', () => {
10
- it('should render defaults', () => {
11
- const { getByPlaceholderText, getByRole } = renderCommentsAdd();
12
- getByPlaceholderText('Add a comment...');
13
- getByRole('button', { name: 'Cancel' });
14
- getByRole('button', { name: 'Comment' });
15
- });
16
-
17
- it('should render user info', () => {
18
- const { getByAltText, getByText } = renderCommentsAdd({
19
- userImageUrl: 'test.com',
20
- userDisplayName: 'User',
21
- });
22
- getByAltText('Image of lender');
23
- getByText('User');
24
- });
25
-
26
- it('should enable comment button when text entered', async () => {
27
- const { getByPlaceholderText, getByRole } = renderCommentsAdd();
28
- const textInput = getByPlaceholderText('Add a comment...');
29
- const commentButton = getByRole('button', { name: 'Comment' });
30
-
31
- expect(commentButton.disabled).toBeTruthy();
32
-
33
- await userEvent.type(textInput, 'test');
34
-
35
- expect(commentButton.disabled).toBeFalsy();
36
-
37
- await userEvent.clear(textInput);
38
-
39
- expect(commentButton.disabled).toBeTruthy();
40
- });
41
-
42
- it('should clear text when cancel clicked', async () => {
43
- const { getByPlaceholderText, getByRole } = renderCommentsAdd();
44
- const textInput = getByPlaceholderText('Add a comment...');
45
- const cancelButton = getByRole('button', { name: 'Cancel' });
46
-
47
- await userEvent.type(textInput, 'test');
48
- await userEvent.click(cancelButton);
49
-
50
- expect(textInput.value).toBe('');
51
- });
52
-
53
- it('should emit value when comment clicked', async () => {
54
- const { getByPlaceholderText, getByRole, emitted } = renderCommentsAdd();
55
- const textInput = getByPlaceholderText('Add a comment...');
56
- const commentButton = getByRole('button', { name: 'Comment' });
57
- const TEST_INPUT = 'test test';
58
-
59
- await userEvent.type(textInput, TEST_INPUT);
60
-
61
- await userEvent.click(commentButton);
62
-
63
- expect(emitted()[ADD_COMMENT_EVENT]).toEqual([[TEST_INPUT]]);
64
- });
65
-
66
- it('should emit value when enter key pressed', async () => {
67
- const { getByPlaceholderText, emitted } = renderCommentsAdd();
68
- const textInput = getByPlaceholderText('Add a comment...');
69
- const TEST_INPUT = 'test test';
70
-
71
- await userEvent.type(textInput, TEST_INPUT);
72
-
73
- userEvent.keyboard('{enter}');
74
-
75
- expect(emitted()[ADD_COMMENT_EVENT]).toEqual([[TEST_INPUT]]);
76
- });
77
-
78
- it('should not emit empty value when comment clicked', async () => {
79
- const { getByRole, emitted } = renderCommentsAdd();
80
- const commentButton = getByRole('button', { name: 'Comment' });
81
-
82
- await userEvent.click(commentButton);
83
-
84
- expect(emitted()[ADD_COMMENT_EVENT]).toBe(undefined);
85
- });
86
-
87
- it('should emit close event when it replies a comment', async () => {
88
- const { getByRole, emitted, getByPlaceholderText } = renderCommentsAdd({ isReply: true });
89
- const textInput = getByPlaceholderText('Add a comment...');
90
- const commentButton = getByRole('button', { name: 'Comment' });
91
- const TEST_INPUT = 'test test';
92
-
93
- await userEvent.type(textInput, TEST_INPUT);
94
-
95
- await userEvent.click(commentButton);
96
-
97
- expect(emitted()[HIDE_INPUT_EVENT]).toEqual([[]]);
98
- });
99
-
100
- it('should emit close event when it clicks cancel on reply', async () => {
101
- const { getByRole, emitted } = renderCommentsAdd({ isReply: true });
102
- const cancelButton = getByRole('button', { name: 'Cancel' });
103
-
104
- await userEvent.click(cancelButton);
105
-
106
- expect(emitted()[HIDE_INPUT_EVENT]).toEqual([[]]);
107
- });
108
- });
@@ -1,40 +0,0 @@
1
- import { render } from '@testing-library/vue';
2
- import userEvent from '@testing-library/user-event';
3
- import Container, { ADD_REACTION_EVENT } from '../../../../vue/KvCommentsContainer.vue';
4
- import { ADD_COMMENT_ID, ADD_COMMENT_EVENT } from '../../../../vue/KvCommentsAdd.vue';
5
-
6
- const LOGGED_IN_USER = 'TEST_USER';
7
-
8
- const renderContainer = (props = {}) => {
9
- return render(Container, { props });
10
- };
11
-
12
- describe('KvCommentsContainer', () => {
13
- it('should not render comments add component for guest user', async () => {
14
- const { container } = renderContainer();
15
- expect(container.querySelectorAll(`#${ADD_COMMENT_ID}`).length).toBe(0);
16
- });
17
-
18
- it('should render comments add component for logged in user', async () => {
19
- const { container } = renderContainer({ userPublicId: LOGGED_IN_USER });
20
- expect(container.querySelectorAll(`#${ADD_COMMENT_ID}`).length).toBe(1);
21
- });
22
-
23
- it('should emit comment for logged in user', async () => {
24
- const { getByPlaceholderText, getByRole, emitted } = renderContainer({ userPublicId: LOGGED_IN_USER });
25
- const textInput = getByPlaceholderText('Add a comment...');
26
- const commentButton = getByRole('button', { name: 'Comment' });
27
- const TEST_INPUT = 'test test';
28
-
29
- await userEvent.type(textInput, TEST_INPUT);
30
-
31
- await userEvent.click(commentButton);
32
-
33
- expect(emitted()[ADD_REACTION_EVENT]).toEqual([[{
34
- id: null,
35
- isChild: false,
36
- reaction: ADD_COMMENT_EVENT,
37
- value: TEST_INPUT,
38
- }]]);
39
- });
40
- });
@@ -1,32 +0,0 @@
1
- import { render } from '@testing-library/vue';
2
- import userEvent from '@testing-library/user-event';
3
- import KvCommentsHeartButton from '../../../../vue/KvCommentsHeartButton.vue';
4
-
5
- const CLICK_EVENT = 'click';
6
-
7
- describe('KvCommentsHeartButton', () => {
8
- it('should render defaults', () => {
9
- const { getByRole } = render(KvCommentsHeartButton);
10
- const likeButton = getByRole('button', { name: 'Like' });
11
-
12
- expect(likeButton).toBeDefined();
13
- });
14
-
15
- it('should emit true value when clicked as not liked', async () => {
16
- const { getByRole, emitted } = render(KvCommentsHeartButton);
17
- const likeButton = getByRole('button', { name: 'Like' });
18
-
19
- await userEvent.click(likeButton);
20
-
21
- expect(emitted()[CLICK_EVENT]).toEqual([[true]]);
22
- });
23
-
24
- it('should emit false value when clicked as liked', async () => {
25
- const { getByRole, emitted } = render(KvCommentsHeartButton, { props: { isLiked: true } });
26
- const likeButton = getByRole('button', { name: 'Like' });
27
-
28
- await userEvent.click(likeButton);
29
-
30
- expect(emitted()[CLICK_EVENT]).toEqual([[false]]);
31
- });
32
- });