@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.
- package/build/copyFlags.js +11 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/data/ne_110m_admin_0_countries.json.js +9 -0
- package/dist/index.js +181 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1204 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +126 -0
- package/dist/node_modules/embla-carousel-fade/esm/embla-carousel-fade.esm.js +143 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js +1037 -0
- package/dist/utils/Alea.js +31 -7
- package/dist/utils/attrs.js +17 -5
- package/dist/utils/carousels.js +96 -6
- package/dist/utils/expander.js +34 -7
- package/dist/utils/imageUtils.js +20 -7
- package/dist/utils/loanCard.js +122 -7
- package/dist/utils/loanUtils.js +78 -21
- package/dist/utils/mapUtils.js +177 -13
- package/dist/utils/printing.js +8 -7
- package/dist/utils/scrollLock.js +16 -11
- package/dist/utils/themeUtils.js +13 -0
- package/dist/utils/throttle.js +8 -5
- package/dist/utils/touchEvents.js +16 -9
- package/dist/utils/treemap.js +59 -5
- package/dist/vue/KvAccordionItem.js +95 -0
- package/dist/vue/KvActivityRow.js +36 -0
- package/dist/vue/KvBorrowerImage.js +140 -0
- package/dist/vue/KvButton.js +184 -0
- package/dist/vue/KvCarousel.css +1 -0
- package/dist/vue/KvCarousel.js +246 -0
- package/dist/vue/KvCartModal.css +1 -0
- package/dist/vue/KvCartModal.js +235 -0
- package/dist/vue/KvCheckbox.js +134 -0
- package/dist/vue/KvChip.js +43 -0
- package/dist/vue/KvClassicLoanCard.css +1 -0
- package/dist/vue/KvClassicLoanCard.js +464 -0
- package/dist/vue/KvCommentsAdd.css +1 -0
- package/dist/vue/KvCommentsAdd.js +106 -0
- package/dist/vue/KvCommentsContainer.js +80 -0
- package/dist/vue/KvCommentsHeartButton.css +1 -0
- package/dist/vue/KvCommentsHeartButton.js +62 -0
- package/dist/vue/KvCommentsList.js +65 -0
- package/dist/vue/KvCommentsListItem.js +221 -0
- package/dist/vue/KvCommentsReplyButton.css +1 -0
- package/dist/vue/KvCommentsReplyButton.js +42 -0
- package/dist/vue/KvContentfulImg.js +196 -0
- package/dist/vue/KvCountdownTimer.js +31 -0
- package/dist/vue/KvExpandable.js +65 -0
- package/dist/vue/KvExpandableQuestion.js +99 -0
- package/dist/vue/KvFlag.css +1 -0
- package/dist/vue/KvFlag.js +628 -0
- package/dist/vue/KvGrid.js +26 -0
- package/dist/vue/KvImpactDashboardHeader.css +1 -0
- package/dist/vue/KvImpactDashboardHeader.js +31 -0
- package/dist/vue/KvInlineActivityCard.css +1 -0
- package/dist/vue/KvInlineActivityCard.js +53 -0
- package/dist/vue/KvInlineActivityFeed.css +1 -0
- package/dist/vue/KvInlineActivityFeed.js +30 -0
- package/dist/vue/KvIntroductionLoanCard.css +1 -0
- package/dist/vue/KvIntroductionLoanCard.js +387 -0
- package/dist/vue/KvLendAmountButton.js +60 -0
- package/dist/vue/KvLendCta.css +1 -0
- package/dist/vue/KvLendCta.js +490 -0
- package/dist/vue/KvLightbox.js +195 -0
- package/dist/vue/KvLineGraph.js +74 -0
- package/dist/vue/KvLoadingPlaceholder.css +1 -0
- package/dist/vue/KvLoadingPlaceholder.js +11 -0
- package/dist/vue/KvLoadingSpinner.js +49 -0
- package/dist/vue/KvLoanActivities.css +1 -0
- package/dist/vue/KvLoanActivities.js +211 -0
- package/dist/vue/KvLoanBookmark.js +41 -0
- package/dist/vue/KvLoanCallouts.css +1 -0
- package/dist/vue/KvLoanCallouts.js +30 -0
- package/dist/vue/KvLoanProgressGroup.css +1 -0
- package/dist/vue/KvLoanProgressGroup.js +68 -0
- package/dist/vue/KvLoanTag.js +88 -0
- package/dist/vue/KvLoanTeamPick.js +12 -0
- package/dist/vue/KvLoanUse.js +73 -0
- package/dist/vue/KvMap.css +1 -0
- package/dist/vue/KvMap.js +372 -0
- package/dist/vue/KvMaterialIcon.js +34 -0
- package/dist/vue/KvPageContainer.js +15 -0
- package/dist/vue/KvPagination.js +163 -0
- package/dist/vue/KvPieChart.css +1 -0
- package/dist/vue/KvPieChart.js +166 -0
- package/dist/vue/KvPopper.js +132 -0
- package/dist/vue/KvProgressBar.js +118 -0
- package/dist/vue/KvRadio.js +130 -0
- package/dist/vue/KvSelect.js +92 -0
- package/dist/vue/KvSideSheet.js +159 -0
- package/dist/vue/KvSwitch.js +88 -0
- package/dist/vue/KvTab.js +67 -0
- package/dist/vue/KvTabPanel.js +56 -0
- package/dist/vue/KvTabs.js +86 -0
- package/dist/vue/KvTextInput.js +185 -0
- package/dist/vue/KvTextLink.js +93 -0
- package/dist/vue/KvThemeProvider.css +1 -0
- package/dist/vue/KvThemeProvider.js +65 -0
- package/dist/vue/KvToast.js +123 -0
- package/dist/vue/KvTooltip.css +1 -0
- package/dist/vue/KvTooltip.js +91 -0
- package/dist/vue/KvTreeMapChart.css +1 -0
- package/dist/vue/KvTreeMapChart.js +177 -0
- package/dist/vue/KvUserAvatar.js +99 -0
- package/dist/vue/KvVerticalCarousel.js +175 -0
- package/dist/vue/KvVotingCard.css +1 -0
- package/dist/vue/KvVotingCard.js +131 -0
- package/dist/vue/KvVotingCardV2.css +1 -0
- package/dist/vue/KvVotingCardV2.js +120 -0
- package/dist/vue/KvWideLoanCard.css +1 -0
- package/dist/vue/KvWideLoanCard.js +367 -0
- package/dist/vue/flags/1x1/ad.svg.js +4 -0
- package/dist/vue/flags/1x1/ae.svg.js +4 -0
- package/dist/vue/flags/1x1/af.svg.js +4 -0
- package/dist/vue/flags/1x1/ag.svg.js +4 -0
- package/dist/vue/flags/1x1/ai.svg.js +4 -0
- package/dist/vue/flags/1x1/al.svg.js +4 -0
- package/dist/vue/flags/1x1/am.svg.js +4 -0
- package/dist/vue/flags/1x1/ao.svg.js +4 -0
- package/dist/vue/flags/1x1/aq.svg.js +4 -0
- package/dist/vue/flags/1x1/ar.svg.js +4 -0
- package/dist/vue/flags/1x1/arab.svg.js +4 -0
- package/dist/vue/flags/1x1/as.svg.js +4 -0
- package/dist/vue/flags/1x1/at.svg.js +4 -0
- package/dist/vue/flags/1x1/au.svg.js +4 -0
- package/dist/vue/flags/1x1/aw.svg.js +4 -0
- package/dist/vue/flags/1x1/ax.svg.js +4 -0
- package/dist/vue/flags/1x1/az.svg.js +4 -0
- package/dist/vue/flags/1x1/ba.svg.js +4 -0
- package/dist/vue/flags/1x1/bb.svg.js +4 -0
- package/dist/vue/flags/1x1/bd.svg.js +4 -0
- package/dist/vue/flags/1x1/be.svg.js +4 -0
- package/dist/vue/flags/1x1/bf.svg.js +4 -0
- package/dist/vue/flags/1x1/bg.svg.js +4 -0
- package/dist/vue/flags/1x1/bh.svg.js +4 -0
- package/dist/vue/flags/1x1/bi.svg.js +4 -0
- package/dist/vue/flags/1x1/bj.svg.js +4 -0
- package/dist/vue/flags/1x1/bl.svg.js +4 -0
- package/dist/vue/flags/1x1/bm.svg.js +4 -0
- package/dist/vue/flags/1x1/bn.svg.js +4 -0
- package/dist/vue/flags/1x1/bo.svg.js +4 -0
- package/dist/vue/flags/1x1/bq.svg.js +4 -0
- package/dist/vue/flags/1x1/br.svg.js +4 -0
- package/dist/vue/flags/1x1/bs.svg.js +4 -0
- package/dist/vue/flags/1x1/bt.svg.js +4 -0
- package/dist/vue/flags/1x1/bv.svg.js +4 -0
- package/dist/vue/flags/1x1/bw.svg.js +4 -0
- package/dist/vue/flags/1x1/by.svg.js +4 -0
- package/dist/vue/flags/1x1/bz.svg.js +4 -0
- package/dist/vue/flags/1x1/ca.svg.js +4 -0
- package/dist/vue/flags/1x1/cc.svg.js +4 -0
- package/dist/vue/flags/1x1/cd.svg.js +4 -0
- package/dist/vue/flags/1x1/cefta.svg.js +4 -0
- package/dist/vue/flags/1x1/cf.svg.js +4 -0
- package/dist/vue/flags/1x1/cg.svg.js +4 -0
- package/dist/vue/flags/1x1/ch.svg.js +4 -0
- package/dist/vue/flags/1x1/ci.svg.js +4 -0
- package/dist/vue/flags/1x1/ck.svg.js +4 -0
- package/dist/vue/flags/1x1/cl.svg.js +4 -0
- package/dist/vue/flags/1x1/cm.svg.js +4 -0
- package/dist/vue/flags/1x1/cn.svg.js +4 -0
- package/dist/vue/flags/1x1/co.svg.js +4 -0
- package/dist/vue/flags/1x1/cp.svg.js +4 -0
- package/dist/vue/flags/1x1/cr.svg.js +4 -0
- package/dist/vue/flags/1x1/cu.svg.js +4 -0
- package/dist/vue/flags/1x1/cv.svg.js +4 -0
- package/dist/vue/flags/1x1/cw.svg.js +4 -0
- package/dist/vue/flags/1x1/cx.svg.js +4 -0
- package/dist/vue/flags/1x1/cy.svg.js +4 -0
- package/dist/vue/flags/1x1/cz.svg.js +4 -0
- package/dist/vue/flags/1x1/de.svg.js +4 -0
- package/dist/vue/flags/1x1/dg.svg.js +4 -0
- package/dist/vue/flags/1x1/dj.svg.js +4 -0
- package/dist/vue/flags/1x1/dk.svg.js +4 -0
- package/dist/vue/flags/1x1/dm.svg.js +4 -0
- package/dist/vue/flags/1x1/do.svg.js +4 -0
- package/dist/vue/flags/1x1/dz.svg.js +4 -0
- package/dist/vue/flags/1x1/eac.svg.js +4 -0
- package/dist/vue/flags/1x1/ec.svg.js +4 -0
- package/dist/vue/flags/1x1/ee.svg.js +4 -0
- package/dist/vue/flags/1x1/eg.svg.js +4 -0
- package/dist/vue/flags/1x1/eh.svg.js +4 -0
- package/dist/vue/flags/1x1/er.svg.js +4 -0
- package/dist/vue/flags/1x1/es-ct.svg.js +4 -0
- package/dist/vue/flags/1x1/es-ga.svg.js +4 -0
- package/dist/vue/flags/1x1/es-pv.svg.js +4 -0
- package/dist/vue/flags/1x1/es.svg.js +4 -0
- package/dist/vue/flags/1x1/et.svg.js +4 -0
- package/dist/vue/flags/1x1/eu.svg.js +4 -0
- package/dist/vue/flags/1x1/fi.svg.js +4 -0
- package/dist/vue/flags/1x1/fj.svg.js +4 -0
- package/dist/vue/flags/1x1/fk.svg.js +4 -0
- package/dist/vue/flags/1x1/fm.svg.js +4 -0
- package/dist/vue/flags/1x1/fo.svg.js +4 -0
- package/dist/vue/flags/1x1/fr.svg.js +4 -0
- package/dist/vue/flags/1x1/ga.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-eng.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-nir.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-sct.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-wls.svg.js +4 -0
- package/dist/vue/flags/1x1/gb.svg.js +4 -0
- package/dist/vue/flags/1x1/gd.svg.js +4 -0
- package/dist/vue/flags/1x1/ge.svg.js +4 -0
- package/dist/vue/flags/1x1/gf.svg.js +4 -0
- package/dist/vue/flags/1x1/gg.svg.js +4 -0
- package/dist/vue/flags/1x1/gh.svg.js +4 -0
- package/dist/vue/flags/1x1/gi.svg.js +4 -0
- package/dist/vue/flags/1x1/gl.svg.js +4 -0
- package/dist/vue/flags/1x1/gm.svg.js +4 -0
- package/dist/vue/flags/1x1/gn.svg.js +4 -0
- package/dist/vue/flags/1x1/gp.svg.js +4 -0
- package/dist/vue/flags/1x1/gq.svg.js +4 -0
- package/dist/vue/flags/1x1/gr.svg.js +4 -0
- package/dist/vue/flags/1x1/gs.svg.js +4 -0
- package/dist/vue/flags/1x1/gt.svg.js +4 -0
- package/dist/vue/flags/1x1/gu.svg.js +4 -0
- package/dist/vue/flags/1x1/gw.svg.js +4 -0
- package/dist/vue/flags/1x1/gy.svg.js +4 -0
- package/dist/vue/flags/1x1/hk.svg.js +4 -0
- package/dist/vue/flags/1x1/hm.svg.js +4 -0
- package/dist/vue/flags/1x1/hn.svg.js +4 -0
- package/dist/vue/flags/1x1/hr.svg.js +4 -0
- package/dist/vue/flags/1x1/ht.svg.js +4 -0
- package/dist/vue/flags/1x1/hu.svg.js +4 -0
- package/dist/vue/flags/1x1/ic.svg.js +4 -0
- package/dist/vue/flags/1x1/id.svg.js +4 -0
- package/dist/vue/flags/1x1/ie.svg.js +4 -0
- package/dist/vue/flags/1x1/il.svg.js +4 -0
- package/dist/vue/flags/1x1/im.svg.js +4 -0
- package/dist/vue/flags/1x1/in.svg.js +4 -0
- package/dist/vue/flags/1x1/io.svg.js +4 -0
- package/dist/vue/flags/1x1/iq.svg.js +4 -0
- package/dist/vue/flags/1x1/ir.svg.js +4 -0
- package/dist/vue/flags/1x1/is.svg.js +4 -0
- package/dist/vue/flags/1x1/it.svg.js +4 -0
- package/dist/vue/flags/1x1/je.svg.js +4 -0
- package/dist/vue/flags/1x1/jm.svg.js +4 -0
- package/dist/vue/flags/1x1/jo.svg.js +4 -0
- package/dist/vue/flags/1x1/jp.svg.js +4 -0
- package/dist/vue/flags/1x1/ke.svg.js +4 -0
- package/dist/vue/flags/1x1/kg.svg.js +4 -0
- package/dist/vue/flags/1x1/kh.svg.js +4 -0
- package/dist/vue/flags/1x1/ki.svg.js +4 -0
- package/dist/vue/flags/1x1/km.svg.js +4 -0
- package/dist/vue/flags/1x1/kn.svg.js +4 -0
- package/dist/vue/flags/1x1/kp.svg.js +4 -0
- package/dist/vue/flags/1x1/kr.svg.js +4 -0
- package/dist/vue/flags/1x1/kw.svg.js +4 -0
- package/dist/vue/flags/1x1/ky.svg.js +4 -0
- package/dist/vue/flags/1x1/kz.svg.js +4 -0
- package/dist/vue/flags/1x1/la.svg.js +4 -0
- package/dist/vue/flags/1x1/lb.svg.js +4 -0
- package/dist/vue/flags/1x1/lc.svg.js +4 -0
- package/dist/vue/flags/1x1/li.svg.js +4 -0
- package/dist/vue/flags/1x1/lk.svg.js +4 -0
- package/dist/vue/flags/1x1/lr.svg.js +4 -0
- package/dist/vue/flags/1x1/ls.svg.js +4 -0
- package/dist/vue/flags/1x1/lt.svg.js +4 -0
- package/dist/vue/flags/1x1/lu.svg.js +4 -0
- package/dist/vue/flags/1x1/lv.svg.js +4 -0
- package/dist/vue/flags/1x1/ly.svg.js +4 -0
- package/dist/vue/flags/1x1/ma.svg.js +4 -0
- package/dist/vue/flags/1x1/mc.svg.js +4 -0
- package/dist/vue/flags/1x1/md.svg.js +4 -0
- package/dist/vue/flags/1x1/me.svg.js +4 -0
- package/dist/vue/flags/1x1/mf.svg.js +4 -0
- package/dist/vue/flags/1x1/mg.svg.js +4 -0
- package/dist/vue/flags/1x1/mh.svg.js +4 -0
- package/dist/vue/flags/1x1/mk.svg.js +4 -0
- package/dist/vue/flags/1x1/ml.svg.js +4 -0
- package/dist/vue/flags/1x1/mm.svg.js +4 -0
- package/dist/vue/flags/1x1/mn.svg.js +4 -0
- package/dist/vue/flags/1x1/mo.svg.js +4 -0
- package/dist/vue/flags/1x1/mp.svg.js +4 -0
- package/dist/vue/flags/1x1/mq.svg.js +4 -0
- package/dist/vue/flags/1x1/mr.svg.js +4 -0
- package/dist/vue/flags/1x1/ms.svg.js +4 -0
- package/dist/vue/flags/1x1/mt.svg.js +4 -0
- package/dist/vue/flags/1x1/mu.svg.js +4 -0
- package/dist/vue/flags/1x1/mv.svg.js +4 -0
- package/dist/vue/flags/1x1/mw.svg.js +4 -0
- package/dist/vue/flags/1x1/mx.svg.js +4 -0
- package/dist/vue/flags/1x1/my.svg.js +4 -0
- package/dist/vue/flags/1x1/mz.svg.js +4 -0
- package/dist/vue/flags/1x1/na.svg.js +4 -0
- package/dist/vue/flags/1x1/nc.svg.js +4 -0
- package/dist/vue/flags/1x1/ne.svg.js +4 -0
- package/dist/vue/flags/1x1/nf.svg.js +4 -0
- package/dist/vue/flags/1x1/ng.svg.js +4 -0
- package/dist/vue/flags/1x1/ni.svg.js +4 -0
- package/dist/vue/flags/1x1/nl.svg.js +4 -0
- package/dist/vue/flags/1x1/no.svg.js +4 -0
- package/dist/vue/flags/1x1/np.svg.js +4 -0
- package/dist/vue/flags/1x1/nr.svg.js +4 -0
- package/dist/vue/flags/1x1/nu.svg.js +4 -0
- package/dist/vue/flags/1x1/nz.svg.js +4 -0
- package/dist/vue/flags/1x1/om.svg.js +4 -0
- package/dist/vue/flags/1x1/pa.svg.js +4 -0
- package/dist/vue/flags/1x1/pc.svg.js +4 -0
- package/dist/vue/flags/1x1/pe.svg.js +4 -0
- package/dist/vue/flags/1x1/pf.svg.js +4 -0
- package/dist/vue/flags/1x1/pg.svg.js +4 -0
- package/dist/vue/flags/1x1/ph.svg.js +4 -0
- package/dist/vue/flags/1x1/pk.svg.js +4 -0
- package/dist/vue/flags/1x1/pl.svg.js +4 -0
- package/dist/vue/flags/1x1/pm.svg.js +4 -0
- package/dist/vue/flags/1x1/pn.svg.js +4 -0
- package/dist/vue/flags/1x1/pr.svg.js +4 -0
- package/dist/vue/flags/1x1/ps.svg.js +4 -0
- package/dist/vue/flags/1x1/pt.svg.js +4 -0
- package/dist/vue/flags/1x1/pw.svg.js +4 -0
- package/dist/vue/flags/1x1/py.svg.js +4 -0
- package/dist/vue/flags/1x1/qa.svg.js +4 -0
- package/dist/vue/flags/1x1/re.svg.js +4 -0
- package/dist/vue/flags/1x1/ro.svg.js +4 -0
- package/dist/vue/flags/1x1/rs.svg.js +4 -0
- package/dist/vue/flags/1x1/ru.svg.js +4 -0
- package/dist/vue/flags/1x1/rw.svg.js +4 -0
- package/dist/vue/flags/1x1/sa.svg.js +4 -0
- package/dist/vue/flags/1x1/sb.svg.js +4 -0
- package/dist/vue/flags/1x1/sc.svg.js +4 -0
- package/dist/vue/flags/1x1/sd.svg.js +4 -0
- package/dist/vue/flags/1x1/se.svg.js +4 -0
- package/dist/vue/flags/1x1/sg.svg.js +4 -0
- package/dist/vue/flags/1x1/sh-ac.svg.js +4 -0
- package/dist/vue/flags/1x1/sh-hl.svg.js +4 -0
- package/dist/vue/flags/1x1/sh-ta.svg.js +4 -0
- package/dist/vue/flags/1x1/sh.svg.js +4 -0
- package/dist/vue/flags/1x1/si.svg.js +4 -0
- package/dist/vue/flags/1x1/sj.svg.js +4 -0
- package/dist/vue/flags/1x1/sk.svg.js +4 -0
- package/dist/vue/flags/1x1/sl.svg.js +4 -0
- package/dist/vue/flags/1x1/sm.svg.js +4 -0
- package/dist/vue/flags/1x1/sn.svg.js +4 -0
- package/dist/vue/flags/1x1/so.svg.js +4 -0
- package/dist/vue/flags/1x1/sr.svg.js +4 -0
- package/dist/vue/flags/1x1/ss.svg.js +4 -0
- package/dist/vue/flags/1x1/st.svg.js +4 -0
- package/dist/vue/flags/1x1/sv.svg.js +4 -0
- package/dist/vue/flags/1x1/sx.svg.js +4 -0
- package/dist/vue/flags/1x1/sy.svg.js +4 -0
- package/dist/vue/flags/1x1/sz.svg.js +4 -0
- package/dist/vue/flags/1x1/tc.svg.js +4 -0
- package/dist/vue/flags/1x1/td.svg.js +4 -0
- package/dist/vue/flags/1x1/tf.svg.js +4 -0
- package/dist/vue/flags/1x1/tg.svg.js +4 -0
- package/dist/vue/flags/1x1/th.svg.js +4 -0
- package/dist/vue/flags/1x1/tj.svg.js +4 -0
- package/dist/vue/flags/1x1/tk.svg.js +4 -0
- package/dist/vue/flags/1x1/tl.svg.js +4 -0
- package/dist/vue/flags/1x1/tm.svg.js +4 -0
- package/dist/vue/flags/1x1/tn.svg.js +4 -0
- package/dist/vue/flags/1x1/to.svg.js +4 -0
- package/dist/vue/flags/1x1/tr.svg.js +4 -0
- package/dist/vue/flags/1x1/tt.svg.js +4 -0
- package/dist/vue/flags/1x1/tv.svg.js +4 -0
- package/dist/vue/flags/1x1/tw.svg.js +4 -0
- package/dist/vue/flags/1x1/tz.svg.js +4 -0
- package/dist/vue/flags/1x1/ua.svg.js +4 -0
- package/dist/vue/flags/1x1/ug.svg.js +4 -0
- package/dist/vue/flags/1x1/um.svg.js +4 -0
- package/dist/vue/flags/1x1/un.svg.js +4 -0
- package/dist/vue/flags/1x1/us.svg.js +4 -0
- package/dist/vue/flags/1x1/uy.svg.js +4 -0
- package/dist/vue/flags/1x1/uz.svg.js +4 -0
- package/dist/vue/flags/1x1/va.svg.js +4 -0
- package/dist/vue/flags/1x1/vc.svg.js +4 -0
- package/dist/vue/flags/1x1/ve.svg.js +4 -0
- package/dist/vue/flags/1x1/vg.svg.js +4 -0
- package/dist/vue/flags/1x1/vi.svg.js +4 -0
- package/dist/vue/flags/1x1/vn.svg.js +4 -0
- package/dist/vue/flags/1x1/vu.svg.js +4 -0
- package/dist/vue/flags/1x1/wf.svg.js +4 -0
- package/dist/vue/flags/1x1/ws.svg.js +4 -0
- package/dist/vue/flags/1x1/xk.svg.js +4 -0
- package/dist/vue/flags/1x1/xx.svg.js +4 -0
- package/dist/vue/flags/1x1/ye.svg.js +4 -0
- package/dist/vue/flags/1x1/yt.svg.js +4 -0
- package/dist/vue/flags/1x1/za.svg.js +4 -0
- package/dist/vue/flags/1x1/zm.svg.js +4 -0
- package/dist/vue/flags/1x1/zw.svg.js +4 -0
- package/dist/vue/flags/4x3/ad.svg.js +4 -0
- package/dist/vue/flags/4x3/ae.svg.js +4 -0
- package/dist/vue/flags/4x3/af.svg.js +4 -0
- package/dist/vue/flags/4x3/ag.svg.js +4 -0
- package/dist/vue/flags/4x3/ai.svg.js +4 -0
- package/dist/vue/flags/4x3/al.svg.js +4 -0
- package/dist/vue/flags/4x3/am.svg.js +4 -0
- package/dist/vue/flags/4x3/ao.svg.js +4 -0
- package/dist/vue/flags/4x3/aq.svg.js +4 -0
- package/dist/vue/flags/4x3/ar.svg.js +4 -0
- package/dist/vue/flags/4x3/arab.svg.js +4 -0
- package/dist/vue/flags/4x3/as.svg.js +4 -0
- package/dist/vue/flags/4x3/at.svg.js +4 -0
- package/dist/vue/flags/4x3/au.svg.js +4 -0
- package/dist/vue/flags/4x3/aw.svg.js +4 -0
- package/dist/vue/flags/4x3/ax.svg.js +4 -0
- package/dist/vue/flags/4x3/az.svg.js +4 -0
- package/dist/vue/flags/4x3/ba.svg.js +4 -0
- package/dist/vue/flags/4x3/bb.svg.js +4 -0
- package/dist/vue/flags/4x3/bd.svg.js +4 -0
- package/dist/vue/flags/4x3/be.svg.js +4 -0
- package/dist/vue/flags/4x3/bf.svg.js +4 -0
- package/dist/vue/flags/4x3/bg.svg.js +4 -0
- package/dist/vue/flags/4x3/bh.svg.js +4 -0
- package/dist/vue/flags/4x3/bi.svg.js +4 -0
- package/dist/vue/flags/4x3/bj.svg.js +4 -0
- package/dist/vue/flags/4x3/bl.svg.js +4 -0
- package/dist/vue/flags/4x3/bm.svg.js +4 -0
- package/dist/vue/flags/4x3/bn.svg.js +4 -0
- package/dist/vue/flags/4x3/bo.svg.js +4 -0
- package/dist/vue/flags/4x3/bq.svg.js +4 -0
- package/dist/vue/flags/4x3/br.svg.js +4 -0
- package/dist/vue/flags/4x3/bs.svg.js +4 -0
- package/dist/vue/flags/4x3/bt.svg.js +4 -0
- package/dist/vue/flags/4x3/bv.svg.js +4 -0
- package/dist/vue/flags/4x3/bw.svg.js +4 -0
- package/dist/vue/flags/4x3/by.svg.js +4 -0
- package/dist/vue/flags/4x3/bz.svg.js +4 -0
- package/dist/vue/flags/4x3/ca.svg.js +4 -0
- package/dist/vue/flags/4x3/cc.svg.js +4 -0
- package/dist/vue/flags/4x3/cd.svg.js +4 -0
- package/dist/vue/flags/4x3/cefta.svg.js +4 -0
- package/dist/vue/flags/4x3/cf.svg.js +4 -0
- package/dist/vue/flags/4x3/cg.svg.js +4 -0
- package/dist/vue/flags/4x3/ch.svg.js +4 -0
- package/dist/vue/flags/4x3/ci.svg.js +4 -0
- package/dist/vue/flags/4x3/ck.svg.js +4 -0
- package/dist/vue/flags/4x3/cl.svg.js +4 -0
- package/dist/vue/flags/4x3/cm.svg.js +4 -0
- package/dist/vue/flags/4x3/cn.svg.js +4 -0
- package/dist/vue/flags/4x3/co.svg.js +4 -0
- package/dist/vue/flags/4x3/cp.svg.js +4 -0
- package/dist/vue/flags/4x3/cr.svg.js +4 -0
- package/dist/vue/flags/4x3/cu.svg.js +4 -0
- package/dist/vue/flags/4x3/cv.svg.js +4 -0
- package/dist/vue/flags/4x3/cw.svg.js +4 -0
- package/dist/vue/flags/4x3/cx.svg.js +4 -0
- package/dist/vue/flags/4x3/cy.svg.js +4 -0
- package/dist/vue/flags/4x3/cz.svg.js +4 -0
- package/dist/vue/flags/4x3/de.svg.js +4 -0
- package/dist/vue/flags/4x3/dg.svg.js +4 -0
- package/dist/vue/flags/4x3/dj.svg.js +4 -0
- package/dist/vue/flags/4x3/dk.svg.js +4 -0
- package/dist/vue/flags/4x3/dm.svg.js +4 -0
- package/dist/vue/flags/4x3/do.svg.js +4 -0
- package/dist/vue/flags/4x3/dz.svg.js +4 -0
- package/dist/vue/flags/4x3/eac.svg.js +4 -0
- package/dist/vue/flags/4x3/ec.svg.js +4 -0
- package/dist/vue/flags/4x3/ee.svg.js +4 -0
- package/dist/vue/flags/4x3/eg.svg.js +4 -0
- package/dist/vue/flags/4x3/eh.svg.js +4 -0
- package/dist/vue/flags/4x3/er.svg.js +4 -0
- package/dist/vue/flags/4x3/es-ct.svg.js +4 -0
- package/dist/vue/flags/4x3/es-ga.svg.js +4 -0
- package/dist/vue/flags/4x3/es-pv.svg.js +4 -0
- package/dist/vue/flags/4x3/es.svg.js +4 -0
- package/dist/vue/flags/4x3/et.svg.js +4 -0
- package/dist/vue/flags/4x3/eu.svg.js +4 -0
- package/dist/vue/flags/4x3/fi.svg.js +4 -0
- package/dist/vue/flags/4x3/fj.svg.js +4 -0
- package/dist/vue/flags/4x3/fk.svg.js +4 -0
- package/dist/vue/flags/4x3/fm.svg.js +4 -0
- package/dist/vue/flags/4x3/fo.svg.js +4 -0
- package/dist/vue/flags/4x3/fr.svg.js +4 -0
- package/dist/vue/flags/4x3/ga.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-eng.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-nir.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-sct.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-wls.svg.js +4 -0
- package/dist/vue/flags/4x3/gb.svg.js +4 -0
- package/dist/vue/flags/4x3/gd.svg.js +4 -0
- package/dist/vue/flags/4x3/ge.svg.js +4 -0
- package/dist/vue/flags/4x3/gf.svg.js +4 -0
- package/dist/vue/flags/4x3/gg.svg.js +4 -0
- package/dist/vue/flags/4x3/gh.svg.js +4 -0
- package/dist/vue/flags/4x3/gi.svg.js +4 -0
- package/dist/vue/flags/4x3/gl.svg.js +4 -0
- package/dist/vue/flags/4x3/gm.svg.js +4 -0
- package/dist/vue/flags/4x3/gn.svg.js +4 -0
- package/dist/vue/flags/4x3/gp.svg.js +4 -0
- package/dist/vue/flags/4x3/gq.svg.js +4 -0
- package/dist/vue/flags/4x3/gr.svg.js +4 -0
- package/dist/vue/flags/4x3/gs.svg.js +4 -0
- package/dist/vue/flags/4x3/gt.svg.js +4 -0
- package/dist/vue/flags/4x3/gu.svg.js +4 -0
- package/dist/vue/flags/4x3/gw.svg.js +4 -0
- package/dist/vue/flags/4x3/gy.svg.js +4 -0
- package/dist/vue/flags/4x3/hk.svg.js +4 -0
- package/dist/vue/flags/4x3/hm.svg.js +4 -0
- package/dist/vue/flags/4x3/hn.svg.js +4 -0
- package/dist/vue/flags/4x3/hr.svg.js +4 -0
- package/dist/vue/flags/4x3/ht.svg.js +4 -0
- package/dist/vue/flags/4x3/hu.svg.js +4 -0
- package/dist/vue/flags/4x3/ic.svg.js +4 -0
- package/dist/vue/flags/4x3/id.svg.js +4 -0
- package/dist/vue/flags/4x3/ie.svg.js +4 -0
- package/dist/vue/flags/4x3/il.svg.js +4 -0
- package/dist/vue/flags/4x3/im.svg.js +4 -0
- package/dist/vue/flags/4x3/in.svg.js +4 -0
- package/dist/vue/flags/4x3/io.svg.js +4 -0
- package/dist/vue/flags/4x3/iq.svg.js +4 -0
- package/dist/vue/flags/4x3/ir.svg.js +4 -0
- package/dist/vue/flags/4x3/is.svg.js +4 -0
- package/dist/vue/flags/4x3/it.svg.js +4 -0
- package/dist/vue/flags/4x3/je.svg.js +4 -0
- package/dist/vue/flags/4x3/jm.svg.js +4 -0
- package/dist/vue/flags/4x3/jo.svg.js +4 -0
- package/dist/vue/flags/4x3/jp.svg.js +4 -0
- package/dist/vue/flags/4x3/ke.svg.js +4 -0
- package/dist/vue/flags/4x3/kg.svg.js +4 -0
- package/dist/vue/flags/4x3/kh.svg.js +4 -0
- package/dist/vue/flags/4x3/ki.svg.js +4 -0
- package/dist/vue/flags/4x3/km.svg.js +4 -0
- package/dist/vue/flags/4x3/kn.svg.js +4 -0
- package/dist/vue/flags/4x3/kp.svg.js +4 -0
- package/dist/vue/flags/4x3/kr.svg.js +4 -0
- package/dist/vue/flags/4x3/kw.svg.js +4 -0
- package/dist/vue/flags/4x3/ky.svg.js +4 -0
- package/dist/vue/flags/4x3/kz.svg.js +4 -0
- package/dist/vue/flags/4x3/la.svg.js +4 -0
- package/dist/vue/flags/4x3/lb.svg.js +4 -0
- package/dist/vue/flags/4x3/lc.svg.js +4 -0
- package/dist/vue/flags/4x3/li.svg.js +4 -0
- package/dist/vue/flags/4x3/lk.svg.js +4 -0
- package/dist/vue/flags/4x3/lr.svg.js +4 -0
- package/dist/vue/flags/4x3/ls.svg.js +4 -0
- package/dist/vue/flags/4x3/lt.svg.js +4 -0
- package/dist/vue/flags/4x3/lu.svg.js +4 -0
- package/dist/vue/flags/4x3/lv.svg.js +4 -0
- package/dist/vue/flags/4x3/ly.svg.js +4 -0
- package/dist/vue/flags/4x3/ma.svg.js +4 -0
- package/dist/vue/flags/4x3/mc.svg.js +4 -0
- package/dist/vue/flags/4x3/md.svg.js +4 -0
- package/dist/vue/flags/4x3/me.svg.js +4 -0
- package/dist/vue/flags/4x3/mf.svg.js +4 -0
- package/dist/vue/flags/4x3/mg.svg.js +4 -0
- package/dist/vue/flags/4x3/mh.svg.js +4 -0
- package/dist/vue/flags/4x3/mk.svg.js +4 -0
- package/dist/vue/flags/4x3/ml.svg.js +4 -0
- package/dist/vue/flags/4x3/mm.svg.js +4 -0
- package/dist/vue/flags/4x3/mn.svg.js +4 -0
- package/dist/vue/flags/4x3/mo.svg.js +4 -0
- package/dist/vue/flags/4x3/mp.svg.js +4 -0
- package/dist/vue/flags/4x3/mq.svg.js +4 -0
- package/dist/vue/flags/4x3/mr.svg.js +4 -0
- package/dist/vue/flags/4x3/ms.svg.js +4 -0
- package/dist/vue/flags/4x3/mt.svg.js +4 -0
- package/dist/vue/flags/4x3/mu.svg.js +4 -0
- package/dist/vue/flags/4x3/mv.svg.js +4 -0
- package/dist/vue/flags/4x3/mw.svg.js +4 -0
- package/dist/vue/flags/4x3/mx.svg.js +4 -0
- package/dist/vue/flags/4x3/my.svg.js +4 -0
- package/dist/vue/flags/4x3/mz.svg.js +4 -0
- package/dist/vue/flags/4x3/na.svg.js +4 -0
- package/dist/vue/flags/4x3/nc.svg.js +4 -0
- package/dist/vue/flags/4x3/ne.svg.js +4 -0
- package/dist/vue/flags/4x3/nf.svg.js +4 -0
- package/dist/vue/flags/4x3/ng.svg.js +4 -0
- package/dist/vue/flags/4x3/ni.svg.js +4 -0
- package/dist/vue/flags/4x3/nl.svg.js +4 -0
- package/dist/vue/flags/4x3/no.svg.js +4 -0
- package/dist/vue/flags/4x3/np.svg.js +4 -0
- package/dist/vue/flags/4x3/nr.svg.js +4 -0
- package/dist/vue/flags/4x3/nu.svg.js +4 -0
- package/dist/vue/flags/4x3/nz.svg.js +4 -0
- package/dist/vue/flags/4x3/om.svg.js +4 -0
- package/dist/vue/flags/4x3/pa.svg.js +4 -0
- package/dist/vue/flags/4x3/pc.svg.js +4 -0
- package/dist/vue/flags/4x3/pe.svg.js +4 -0
- package/dist/vue/flags/4x3/pf.svg.js +4 -0
- package/dist/vue/flags/4x3/pg.svg.js +4 -0
- package/dist/vue/flags/4x3/ph.svg.js +4 -0
- package/dist/vue/flags/4x3/pk.svg.js +4 -0
- package/dist/vue/flags/4x3/pl.svg.js +4 -0
- package/dist/vue/flags/4x3/pm.svg.js +4 -0
- package/dist/vue/flags/4x3/pn.svg.js +4 -0
- package/dist/vue/flags/4x3/pr.svg.js +4 -0
- package/dist/vue/flags/4x3/ps.svg.js +4 -0
- package/dist/vue/flags/4x3/pt.svg.js +4 -0
- package/dist/vue/flags/4x3/pw.svg.js +4 -0
- package/dist/vue/flags/4x3/py.svg.js +4 -0
- package/dist/vue/flags/4x3/qa.svg.js +4 -0
- package/dist/vue/flags/4x3/re.svg.js +4 -0
- package/dist/vue/flags/4x3/ro.svg.js +4 -0
- package/dist/vue/flags/4x3/rs.svg.js +4 -0
- package/dist/vue/flags/4x3/ru.svg.js +4 -0
- package/dist/vue/flags/4x3/rw.svg.js +4 -0
- package/dist/vue/flags/4x3/sa.svg.js +4 -0
- package/dist/vue/flags/4x3/sb.svg.js +4 -0
- package/dist/vue/flags/4x3/sc.svg.js +4 -0
- package/dist/vue/flags/4x3/sd.svg.js +4 -0
- package/dist/vue/flags/4x3/se.svg.js +4 -0
- package/dist/vue/flags/4x3/sg.svg.js +4 -0
- package/dist/vue/flags/4x3/sh-ac.svg.js +4 -0
- package/dist/vue/flags/4x3/sh-hl.svg.js +4 -0
- package/dist/vue/flags/4x3/sh-ta.svg.js +4 -0
- package/dist/vue/flags/4x3/sh.svg.js +4 -0
- package/dist/vue/flags/4x3/si.svg.js +4 -0
- package/dist/vue/flags/4x3/sj.svg.js +4 -0
- package/dist/vue/flags/4x3/sk.svg.js +4 -0
- package/dist/vue/flags/4x3/sl.svg.js +4 -0
- package/dist/vue/flags/4x3/sm.svg.js +4 -0
- package/dist/vue/flags/4x3/sn.svg.js +4 -0
- package/dist/vue/flags/4x3/so.svg.js +4 -0
- package/dist/vue/flags/4x3/sr.svg.js +4 -0
- package/dist/vue/flags/4x3/ss.svg.js +4 -0
- package/dist/vue/flags/4x3/st.svg.js +4 -0
- package/dist/vue/flags/4x3/sv.svg.js +4 -0
- package/dist/vue/flags/4x3/sx.svg.js +4 -0
- package/dist/vue/flags/4x3/sy.svg.js +4 -0
- package/dist/vue/flags/4x3/sz.svg.js +4 -0
- package/dist/vue/flags/4x3/tc.svg.js +4 -0
- package/dist/vue/flags/4x3/td.svg.js +4 -0
- package/dist/vue/flags/4x3/tf.svg.js +4 -0
- package/dist/vue/flags/4x3/tg.svg.js +4 -0
- package/dist/vue/flags/4x3/th.svg.js +4 -0
- package/dist/vue/flags/4x3/tj.svg.js +4 -0
- package/dist/vue/flags/4x3/tk.svg.js +4 -0
- package/dist/vue/flags/4x3/tl.svg.js +4 -0
- package/dist/vue/flags/4x3/tm.svg.js +4 -0
- package/dist/vue/flags/4x3/tn.svg.js +4 -0
- package/dist/vue/flags/4x3/to.svg.js +4 -0
- package/dist/vue/flags/4x3/tr.svg.js +4 -0
- package/dist/vue/flags/4x3/tt.svg.js +4 -0
- package/dist/vue/flags/4x3/tv.svg.js +4 -0
- package/dist/vue/flags/4x3/tw.svg.js +4 -0
- package/dist/vue/flags/4x3/tz.svg.js +4 -0
- package/dist/vue/flags/4x3/ua.svg.js +4 -0
- package/dist/vue/flags/4x3/ug.svg.js +4 -0
- package/dist/vue/flags/4x3/um.svg.js +4 -0
- package/dist/vue/flags/4x3/un.svg.js +4 -0
- package/dist/vue/flags/4x3/us.svg.js +4 -0
- package/dist/vue/flags/4x3/uy.svg.js +4 -0
- package/dist/vue/flags/4x3/uz.svg.js +4 -0
- package/dist/vue/flags/4x3/va.svg.js +4 -0
- package/dist/vue/flags/4x3/vc.svg.js +4 -0
- package/dist/vue/flags/4x3/ve.svg.js +4 -0
- package/dist/vue/flags/4x3/vg.svg.js +4 -0
- package/dist/vue/flags/4x3/vi.svg.js +4 -0
- package/dist/vue/flags/4x3/vn.svg.js +4 -0
- package/dist/vue/flags/4x3/vu.svg.js +4 -0
- package/dist/vue/flags/4x3/wf.svg.js +4 -0
- package/dist/vue/flags/4x3/ws.svg.js +4 -0
- package/dist/vue/flags/4x3/xk.svg.js +4 -0
- package/dist/vue/flags/4x3/xx.svg.js +4 -0
- package/dist/vue/flags/4x3/ye.svg.js +4 -0
- package/dist/vue/flags/4x3/yt.svg.js +4 -0
- package/dist/vue/flags/4x3/za.svg.js +4 -0
- package/dist/vue/flags/4x3/zm.svg.js +4 -0
- package/dist/vue/flags/4x3/zw.svg.js +4 -0
- package/package.json +60 -52
- package/.eslintrc.cjs +0 -23
- package/CHANGELOG.md +0 -3615
- package/__mocks__/ResizeObserver.js +0 -13
- package/babel.config.cjs +0 -12
- package/data/countries-borders.json +0 -1
- package/data/ne_110m_admin_0_countries.json +0 -1
- package/dist/components/.storybook/main.js +0 -88
- package/dist/components/.storybook/package.json +0 -3
- package/dist/components/.storybook/preview.js +0 -53
- package/dist/components/.storybook/tailwind.css +0 -5
- package/dist/components/KvAccordionItem.vue +0 -130
- package/dist/components/KvActivityRow.vue +0 -33
- package/dist/components/KvBorrowerImage.vue +0 -179
- package/dist/components/KvButton.vue +0 -288
- package/dist/components/KvCarousel.vue +0 -314
- package/dist/components/KvCartModal.vue +0 -365
- package/dist/components/KvCheckbox.vue +0 -203
- package/dist/components/KvChip.vue +0 -54
- package/dist/components/KvClassicLoanCard.vue +0 -527
- package/dist/components/KvCommentsAdd.vue +0 -135
- package/dist/components/KvCommentsContainer.vue +0 -84
- package/dist/components/KvCommentsHeartButton.vue +0 -70
- package/dist/components/KvCommentsList.vue +0 -68
- package/dist/components/KvCommentsListItem.vue +0 -241
- package/dist/components/KvCommentsReplyButton.vue +0 -52
- package/dist/components/KvContentfulImg.vue +0 -273
- package/dist/components/KvCountdownTimer.vue +0 -59
- package/dist/components/KvExpandable.vue +0 -84
- package/dist/components/KvExpandableQuestion.vue +0 -120
- package/dist/components/KvFlag.vue +0 -120
- package/dist/components/KvGrid.vue +0 -28
- package/dist/components/KvImpactDashboardHeader.vue +0 -40
- package/dist/components/KvInlineActivityCard.vue +0 -55
- package/dist/components/KvInlineActivityFeed.vue +0 -38
- package/dist/components/KvIntroductionLoanCard.vue +0 -449
- package/dist/components/KvLendAmountButton.vue +0 -65
- package/dist/components/KvLendCta.vue +0 -589
- package/dist/components/KvLightbox.vue +0 -334
- package/dist/components/KvLineGraph.vue +0 -128
- package/dist/components/KvLoadingPlaceholder.vue +0 -38
- package/dist/components/KvLoadingSpinner.vue +0 -81
- package/dist/components/KvLoanActivities.vue +0 -268
- package/dist/components/KvLoanBookmark.vue +0 -39
- package/dist/components/KvLoanCallouts.vue +0 -53
- package/dist/components/KvLoanProgressGroup.vue +0 -76
- package/dist/components/KvLoanTag.vue +0 -88
- package/dist/components/KvLoanTeamPick.vue +0 -44
- package/dist/components/KvLoanUse.vue +0 -92
- package/dist/components/KvMap.vue +0 -599
- package/dist/components/KvMaterialIcon.vue +0 -47
- package/dist/components/KvPageContainer.vue +0 -15
- package/dist/components/KvPagination.vue +0 -198
- package/dist/components/KvPieChart.vue +0 -257
- package/dist/components/KvPopper.vue +0 -178
- package/dist/components/KvProgressBar.vue +0 -149
- package/dist/components/KvRadio.vue +0 -198
- package/dist/components/KvSelect.vue +0 -114
- package/dist/components/KvSideSheet.vue +0 -196
- package/dist/components/KvSwitch.vue +0 -143
- package/dist/components/KvTab.vue +0 -90
- package/dist/components/KvTabPanel.vue +0 -64
- package/dist/components/KvTabs.vue +0 -182
- package/dist/components/KvTextInput.vue +0 -250
- package/dist/components/KvTextLink.vue +0 -138
- package/dist/components/KvThemeProvider.vue +0 -122
- package/dist/components/KvToast.vue +0 -221
- package/dist/components/KvTooltip.vue +0 -168
- package/dist/components/KvTreeMapChart.vue +0 -229
- package/dist/components/KvUserAvatar.vue +0 -132
- package/dist/components/KvVerticalCarousel.vue +0 -219
- package/dist/components/KvVotingCard.vue +0 -160
- package/dist/components/KvVotingCardV2.vue +0 -154
- package/dist/components/KvWideLoanCard.vue +0 -433
- package/dist/components/stories/Forms.stories.js +0 -62
- package/dist/components/stories/KvAccordionItem.stories.js +0 -24
- package/dist/components/stories/KvActivityRow.stories.js +0 -27
- package/dist/components/stories/KvBorrowerImage.stories.js +0 -62
- package/dist/components/stories/KvButton.stories.js +0 -142
- package/dist/components/stories/KvCarousel.stories.js +0 -489
- package/dist/components/stories/KvCartModal.stories.js +0 -51
- package/dist/components/stories/KvCheckbox.stories.js +0 -163
- package/dist/components/stories/KvChip.stories.js +0 -43
- package/dist/components/stories/KvClassicLoanCard.stories.js +0 -458
- package/dist/components/stories/KvCommentsAdd.stories.js +0 -32
- package/dist/components/stories/KvCommentsContainer.stories.js +0 -42
- package/dist/components/stories/KvCommentsHeartButton.stories.js +0 -25
- package/dist/components/stories/KvCommentsList.stories.js +0 -39
- package/dist/components/stories/KvCommentsListItem.stories.js +0 -45
- package/dist/components/stories/KvCommentsReplyButton.stories.js +0 -21
- package/dist/components/stories/KvContentfulImg.stories.js +0 -173
- package/dist/components/stories/KvCountdownTimer.stories.js +0 -31
- package/dist/components/stories/KvExpandableQuestion.stories.js +0 -129
- package/dist/components/stories/KvFlag.stories.js +0 -38
- package/dist/components/stories/KvGrid.stories.js +0 -97
- package/dist/components/stories/KvImpactDashboardHeader.stories.js +0 -22
- package/dist/components/stories/KvInlineActivityCard.stories.js +0 -69
- package/dist/components/stories/KvInlineActivityFeed.stories.js +0 -76
- package/dist/components/stories/KvIntroductionLoanCard.stories.js +0 -204
- package/dist/components/stories/KvLendAmountButton.stories.js +0 -31
- package/dist/components/stories/KvLendCta.stories.js +0 -332
- package/dist/components/stories/KvLightbox.stories.js +0 -308
- package/dist/components/stories/KvLineGraph.stories.js +0 -53
- package/dist/components/stories/KvLoadingPlaceholder.stories.js +0 -17
- package/dist/components/stories/KvLoadingSpinner.stories.js +0 -50
- package/dist/components/stories/KvLoanActivities.stories.js +0 -103
- package/dist/components/stories/KvLoanBookmark.stories.js +0 -23
- package/dist/components/stories/KvLoanCallouts.stories.js +0 -23
- package/dist/components/stories/KvLoanProgressGroup.stories.js +0 -29
- package/dist/components/stories/KvLoanTag.stories.js +0 -62
- package/dist/components/stories/KvLoanTeamPick.stories.js +0 -20
- package/dist/components/stories/KvLoanUse.stories.js +0 -54
- package/dist/components/stories/KvMap.stories.js +0 -108
- package/dist/components/stories/KvMaterialIcon.stories.js +0 -210
- package/dist/components/stories/KvPageContainer.stories.js +0 -50
- package/dist/components/stories/KvPagination.stories.js +0 -66
- package/dist/components/stories/KvPieChart.stories.js +0 -47
- package/dist/components/stories/KvProgressBar.stories.js +0 -48
- package/dist/components/stories/KvRadio.stories.js +0 -140
- package/dist/components/stories/KvSelect.stories.js +0 -125
- package/dist/components/stories/KvSideSheet.stories.js +0 -68
- package/dist/components/stories/KvSwitch.stories.js +0 -66
- package/dist/components/stories/KvTabs.stories.js +0 -106
- package/dist/components/stories/KvTextInput.stories.js +0 -194
- package/dist/components/stories/KvTextLink.stories.js +0 -51
- package/dist/components/stories/KvThemeProvider.stories.js +0 -212
- package/dist/components/stories/KvToast.stories.js +0 -111
- package/dist/components/stories/KvTooltip.stories.js +0 -26
- package/dist/components/stories/KvTreeMapChart.stories.js +0 -42
- package/dist/components/stories/KvUserAvatar.stories.js +0 -47
- package/dist/components/stories/KvVerticalCarousel.stories.js +0 -294
- package/dist/components/stories/KvVotingCard.stories.js +0 -33
- package/dist/components/stories/KvVotingCardV2.stories.js +0 -89
- package/dist/components/stories/KvWideLoanCard.stories.js +0 -278
- package/dist/components/stories/StyleguidePrimitives.stories.js +0 -498
- package/dist/components/stories/StyleguideProse.stories.js +0 -271
- package/dist/data/countries-borders.json +0 -1
- package/dist/data/ne_110m_admin_0_countries.json +0 -1
- package/dist/utils/Alea.cjs +0 -87
- package/dist/utils/attrs.cjs +0 -50
- package/dist/utils/carousels.cjs +0 -220
- package/dist/utils/chunk-3HK4G4NT.js +0 -27
- package/dist/utils/chunk-55HF2ORX.js +0 -201
- package/dist/utils/chunk-AY3PR5S4.js +0 -54
- package/dist/utils/chunk-B5J5WLAH.js +0 -18
- package/dist/utils/chunk-GPSH6OPA.js +0 -64
- package/dist/utils/chunk-HIY5IW65.js +0 -28
- package/dist/utils/chunk-HV3AUBFT.js +0 -15
- package/dist/utils/chunk-MSMZIN54.js +0 -110
- package/dist/utils/chunk-OXJCCNNW.js +0 -30
- package/dist/utils/chunk-S3MABILA.js +0 -22
- package/dist/utils/chunk-TR3NWLTZ.js +0 -184
- package/dist/utils/chunk-VIGEMAKO.js +0 -249
- package/dist/utils/chunk-YCNMJ4YV.js +0 -37
- package/dist/utils/chunk-YFEC5ODJ.js +0 -129
- package/dist/utils/expander.cjs +0 -78
- package/dist/utils/imageUtils.cjs +0 -54
- package/dist/utils/index.cjs +0 -1154
- package/dist/utils/index.js +0 -166
- package/dist/utils/loanCard.cjs +0 -222
- package/dist/utils/loanUtils.cjs +0 -170
- package/dist/utils/mapUtils.cjs +0 -276
- package/dist/utils/printing.cjs +0 -42
- package/dist/utils/scrollLock.cjs +0 -54
- package/dist/utils/throttle.cjs +0 -38
- package/dist/utils/touchEvents.cjs +0 -47
- package/dist/utils/treemap.cjs +0 -133
- package/jest.config.cjs +0 -47
- package/postcss.config.cjs +0 -6
- package/tailwind.config.cjs +0 -64
- package/tests/fixtures/mockCommentsData.js +0 -36
- package/tests/fixtures/mockLenderCountries.js +0 -674
- package/tests/unit/.eslintrc +0 -5
- package/tests/unit/jest-setup.js +0 -5
- package/tests/unit/specs/components/KvButton.spec.js +0 -92
- package/tests/unit/specs/components/KvCarousel.spec.js +0 -78
- package/tests/unit/specs/components/KvCheckbox.spec.js +0 -109
- package/tests/unit/specs/components/KvClassicLoanCard.spec.js +0 -201
- package/tests/unit/specs/components/KvCommentsAdd.spec.js +0 -108
- package/tests/unit/specs/components/KvCommentsContainer.spec.js +0 -40
- package/tests/unit/specs/components/KvCommentsHeartButton.spec.js +0 -32
- package/tests/unit/specs/components/KvCommentsList.spec.js +0 -83
- package/tests/unit/specs/components/KvCommentsListItem.spec.js +0 -120
- package/tests/unit/specs/components/KvCommentsReplyButton.spec.js +0 -23
- package/tests/unit/specs/components/KvExpandableQuestion.spec.js +0 -55
- package/tests/unit/specs/components/KvLendAmountButton.spec.js +0 -36
- package/tests/unit/specs/components/KvLightbox.spec.js +0 -14
- package/tests/unit/specs/components/KvLineGraph.spec.js +0 -58
- package/tests/unit/specs/components/KvLoanProgressGroup.spec.js +0 -50
- package/tests/unit/specs/components/KvPagination.spec.js +0 -132
- package/tests/unit/specs/components/KvProgressBar.spec.js +0 -11
- package/tests/unit/specs/components/KvRadio.spec.js +0 -184
- package/tests/unit/specs/components/KvSelect.spec.js +0 -113
- package/tests/unit/specs/components/KvSwitch.spec.js +0 -120
- package/tests/unit/specs/components/KvTabPanel.spec.js +0 -32
- package/tests/unit/specs/components/KvTabs.spec.js +0 -167
- package/tests/unit/specs/components/KvTextInput.spec.js +0 -151
- package/tests/unit/specs/components/KvTextLink.spec.js +0 -53
- package/tests/unit/specs/components/KvToast.spec.js +0 -11
- package/tests/unit/specs/components/KvWideLoanCard.spec.js +0 -136
- package/tests/unit/specs/utils/imageUtils.spec.js +0 -29
- package/tests/unit/specs/utils/loanUtils.spec.js +0 -437
- package/tests/unit/specs/utils/mapUtils.spec.js +0 -72
- package/tests/unit/specs/utils/treemap.spec.js +0 -248
- package/tests/unit/utils/addVueRouter.js +0 -18
- package/utils/Alea.js +0 -92
- package/utils/attrs.js +0 -62
- package/utils/carousels.js +0 -252
- package/utils/expander.js +0 -72
- package/utils/imageUtils.js +0 -43
- package/utils/index.js +0 -14
- package/utils/loanCard.js +0 -204
- package/utils/loanUtils.js +0 -209
- package/utils/mapUtils.js +0 -360
- package/utils/printing.js +0 -13
- package/utils/scrollLock.js +0 -25
- package/utils/themeUtils.cjs +0 -29
- package/utils/throttle.js +0 -11
- package/utils/touchEvents.js +0 -22
- package/utils/treemap.js +0 -138
- package/vue/.storybook/main.js +0 -88
- package/vue/.storybook/package.json +0 -3
- package/vue/.storybook/preview.js +0 -53
- package/vue/.storybook/tailwind.css +0 -5
- package/vue/KvAccordionItem.vue +0 -130
- package/vue/KvActivityRow.vue +0 -33
- package/vue/KvBorrowerImage.vue +0 -179
- package/vue/KvButton.vue +0 -288
- package/vue/KvCarousel.vue +0 -314
- package/vue/KvCartModal.vue +0 -365
- package/vue/KvCheckbox.vue +0 -203
- package/vue/KvChip.vue +0 -54
- package/vue/KvClassicLoanCard.vue +0 -527
- package/vue/KvCommentsAdd.vue +0 -135
- package/vue/KvCommentsContainer.vue +0 -84
- package/vue/KvCommentsHeartButton.vue +0 -70
- package/vue/KvCommentsList.vue +0 -68
- package/vue/KvCommentsListItem.vue +0 -241
- package/vue/KvCommentsReplyButton.vue +0 -52
- package/vue/KvContentfulImg.vue +0 -273
- package/vue/KvCountdownTimer.vue +0 -59
- package/vue/KvExpandable.vue +0 -84
- package/vue/KvExpandableQuestion.vue +0 -120
- package/vue/KvFlag.vue +0 -120
- package/vue/KvGrid.vue +0 -28
- package/vue/KvImpactDashboardHeader.vue +0 -40
- package/vue/KvInlineActivityCard.vue +0 -55
- package/vue/KvInlineActivityFeed.vue +0 -38
- package/vue/KvIntroductionLoanCard.vue +0 -449
- package/vue/KvLendAmountButton.vue +0 -65
- package/vue/KvLendCta.vue +0 -589
- package/vue/KvLightbox.vue +0 -334
- package/vue/KvLineGraph.vue +0 -128
- package/vue/KvLoadingPlaceholder.vue +0 -38
- package/vue/KvLoadingSpinner.vue +0 -81
- package/vue/KvLoanActivities.vue +0 -268
- package/vue/KvLoanBookmark.vue +0 -39
- package/vue/KvLoanCallouts.vue +0 -53
- package/vue/KvLoanProgressGroup.vue +0 -76
- package/vue/KvLoanTag.vue +0 -88
- package/vue/KvLoanTeamPick.vue +0 -44
- package/vue/KvLoanUse.vue +0 -92
- package/vue/KvMap.vue +0 -599
- package/vue/KvMaterialIcon.vue +0 -47
- package/vue/KvPageContainer.vue +0 -15
- package/vue/KvPagination.vue +0 -198
- package/vue/KvPieChart.vue +0 -257
- package/vue/KvPopper.vue +0 -178
- package/vue/KvProgressBar.vue +0 -149
- package/vue/KvRadio.vue +0 -198
- package/vue/KvSelect.vue +0 -114
- package/vue/KvSideSheet.vue +0 -196
- package/vue/KvSwitch.vue +0 -143
- package/vue/KvTab.vue +0 -90
- package/vue/KvTabPanel.vue +0 -64
- package/vue/KvTabs.vue +0 -182
- package/vue/KvTextInput.vue +0 -250
- package/vue/KvTextLink.vue +0 -138
- package/vue/KvThemeProvider.vue +0 -122
- package/vue/KvToast.vue +0 -221
- package/vue/KvTooltip.vue +0 -168
- package/vue/KvTreeMapChart.vue +0 -229
- package/vue/KvUserAvatar.vue +0 -132
- package/vue/KvVerticalCarousel.vue +0 -219
- package/vue/KvVotingCard.vue +0 -160
- package/vue/KvVotingCardV2.vue +0 -154
- package/vue/KvWideLoanCard.vue +0 -433
- package/vue/stories/Forms.stories.js +0 -62
- package/vue/stories/KvAccordionItem.stories.js +0 -24
- package/vue/stories/KvActivityRow.stories.js +0 -27
- package/vue/stories/KvBorrowerImage.stories.js +0 -62
- package/vue/stories/KvButton.stories.js +0 -142
- package/vue/stories/KvCarousel.stories.js +0 -489
- package/vue/stories/KvCartModal.stories.js +0 -51
- package/vue/stories/KvCheckbox.stories.js +0 -163
- package/vue/stories/KvChip.stories.js +0 -43
- package/vue/stories/KvClassicLoanCard.stories.js +0 -458
- package/vue/stories/KvCommentsAdd.stories.js +0 -32
- package/vue/stories/KvCommentsContainer.stories.js +0 -42
- package/vue/stories/KvCommentsHeartButton.stories.js +0 -25
- package/vue/stories/KvCommentsList.stories.js +0 -39
- package/vue/stories/KvCommentsListItem.stories.js +0 -45
- package/vue/stories/KvCommentsReplyButton.stories.js +0 -21
- package/vue/stories/KvContentfulImg.stories.js +0 -173
- package/vue/stories/KvCountdownTimer.stories.js +0 -31
- package/vue/stories/KvExpandableQuestion.stories.js +0 -129
- package/vue/stories/KvFlag.stories.js +0 -38
- package/vue/stories/KvGrid.stories.js +0 -97
- package/vue/stories/KvImpactDashboardHeader.stories.js +0 -22
- package/vue/stories/KvInlineActivityCard.stories.js +0 -69
- package/vue/stories/KvInlineActivityFeed.stories.js +0 -76
- package/vue/stories/KvIntroductionLoanCard.stories.js +0 -204
- package/vue/stories/KvLendAmountButton.stories.js +0 -31
- package/vue/stories/KvLendCta.stories.js +0 -332
- package/vue/stories/KvLightbox.stories.js +0 -308
- package/vue/stories/KvLineGraph.stories.js +0 -53
- package/vue/stories/KvLoadingPlaceholder.stories.js +0 -17
- package/vue/stories/KvLoadingSpinner.stories.js +0 -50
- package/vue/stories/KvLoanActivities.stories.js +0 -103
- package/vue/stories/KvLoanBookmark.stories.js +0 -23
- package/vue/stories/KvLoanCallouts.stories.js +0 -23
- package/vue/stories/KvLoanProgressGroup.stories.js +0 -29
- package/vue/stories/KvLoanTag.stories.js +0 -62
- package/vue/stories/KvLoanTeamPick.stories.js +0 -20
- package/vue/stories/KvLoanUse.stories.js +0 -54
- package/vue/stories/KvMap.stories.js +0 -108
- package/vue/stories/KvMaterialIcon.stories.js +0 -210
- package/vue/stories/KvPageContainer.stories.js +0 -50
- package/vue/stories/KvPagination.stories.js +0 -66
- package/vue/stories/KvPieChart.stories.js +0 -47
- package/vue/stories/KvProgressBar.stories.js +0 -48
- package/vue/stories/KvRadio.stories.js +0 -140
- package/vue/stories/KvSelect.stories.js +0 -125
- package/vue/stories/KvSideSheet.stories.js +0 -68
- package/vue/stories/KvSwitch.stories.js +0 -66
- package/vue/stories/KvTabs.stories.js +0 -106
- package/vue/stories/KvTextInput.stories.js +0 -194
- package/vue/stories/KvTextLink.stories.js +0 -51
- package/vue/stories/KvThemeProvider.stories.js +0 -212
- package/vue/stories/KvToast.stories.js +0 -111
- package/vue/stories/KvTooltip.stories.js +0 -26
- package/vue/stories/KvTreeMapChart.stories.js +0 -42
- package/vue/stories/KvUserAvatar.stories.js +0 -47
- package/vue/stories/KvVerticalCarousel.stories.js +0 -294
- package/vue/stories/KvVotingCard.stories.js +0 -33
- package/vue/stories/KvVotingCardV2.stories.js +0 -89
- package/vue/stories/KvWideLoanCard.stories.js +0 -278
- package/vue/stories/StyleguidePrimitives.stories.js +0 -498
- package/vue/stories/StyleguideProse.stories.js +0 -271
package/utils/expander.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-param-reassign */
|
|
2
|
-
|
|
3
|
-
function setInitialStyle(el, { property, delay, easing }) {
|
|
4
|
-
el.style.overflow = 'hidden';
|
|
5
|
-
el.style.transition = `${property} ${delay}ms ${easing}`;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function unsetStyles(el, { property }) {
|
|
9
|
-
el.style[property] = null;
|
|
10
|
-
el.style.overflow = null;
|
|
11
|
-
el.style.transition = null;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function expand(el, {
|
|
15
|
-
easing = 'ease',
|
|
16
|
-
delay = 500,
|
|
17
|
-
done = () => {},
|
|
18
|
-
from = 0,
|
|
19
|
-
property = 'height',
|
|
20
|
-
}) {
|
|
21
|
-
// set initial styles
|
|
22
|
-
setInitialStyle(el, { property, delay, easing });
|
|
23
|
-
|
|
24
|
-
// need to measure the property, so first set the value to 'auto'
|
|
25
|
-
// then unset display:none from v-show
|
|
26
|
-
el.style[property] = 'auto';
|
|
27
|
-
el.style.display = null;
|
|
28
|
-
|
|
29
|
-
// measure the property
|
|
30
|
-
const propValue = window.getComputedStyle(el).getPropertyValue(property);
|
|
31
|
-
|
|
32
|
-
// set the property to the 'from' value
|
|
33
|
-
el.style[property] = from;
|
|
34
|
-
|
|
35
|
-
el.addEventListener('transitionend', function listener() {
|
|
36
|
-
unsetStyles(el, { property });
|
|
37
|
-
// finally, call the done callback after the transition
|
|
38
|
-
done();
|
|
39
|
-
el.removeEventListener('transitionend', listener, true);
|
|
40
|
-
}, true);
|
|
41
|
-
|
|
42
|
-
// hack to cause the browser to reflow
|
|
43
|
-
void el.offsetWidth; // eslint-disable-line no-void
|
|
44
|
-
// ...and set the property to the measured value on the next tick so it animates w/ css
|
|
45
|
-
el.style[property] = propValue;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function collapse(el, {
|
|
49
|
-
easing = 'ease',
|
|
50
|
-
delay = 500,
|
|
51
|
-
done = () => {},
|
|
52
|
-
to = 0,
|
|
53
|
-
property = 'height',
|
|
54
|
-
}) {
|
|
55
|
-
// set initial styles
|
|
56
|
-
setInitialStyle(el, { property, delay, easing });
|
|
57
|
-
|
|
58
|
-
// explicitly set the property value...
|
|
59
|
-
el.style[property] = window.getComputedStyle(el).getPropertyValue(property);
|
|
60
|
-
|
|
61
|
-
el.addEventListener('transitionend', function listener() {
|
|
62
|
-
unsetStyles(el, { property });
|
|
63
|
-
// finally, call the done callback after the transition
|
|
64
|
-
done();
|
|
65
|
-
el.removeEventListener('transitionend', listener, true);
|
|
66
|
-
}, true);
|
|
67
|
-
|
|
68
|
-
// hack to cause the browser to reflow
|
|
69
|
-
void el.offsetWidth; // eslint-disable-line no-void
|
|
70
|
-
// ...and set the property to the 'to' value on the next tick so it animates w/ css
|
|
71
|
-
el.style[property] = to;
|
|
72
|
-
}
|
package/utils/imageUtils.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determines if the users avatar is the default legacy placeholder image from the monolith.
|
|
3
|
-
* The legacy avatars are found exclusively at the following urls:
|
|
4
|
-
* <domain>/img/<size param>/726677.jpg
|
|
5
|
-
* <domain>/img/<size param>/315726.jpg
|
|
6
|
-
* for images from Fastly, urls, like: <domain>/img/s100/4d844ac2c0b77a8a522741b908ea5c32.jpg
|
|
7
|
-
* are the default placeholder image.
|
|
8
|
-
*
|
|
9
|
-
* @param filename The filename of the avatar
|
|
10
|
-
* @returns Whether the file is a legacy placeholder image
|
|
11
|
-
*/
|
|
12
|
-
export function isLegacyPlaceholderAvatar(filename) {
|
|
13
|
-
// if filename is empty or undefined, return false
|
|
14
|
-
if (!filename) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
// convert filename to string if it is a number
|
|
18
|
-
let filenameCleaned = filename.toString();
|
|
19
|
-
// remove file extension from filename if it exists
|
|
20
|
-
if (filenameCleaned.includes('.')) {
|
|
21
|
-
[filenameCleaned] = filenameCleaned.split('.');
|
|
22
|
-
}
|
|
23
|
-
const defaultProfileIds = ['726677', '315726', '4d844ac2c0b77a8a522741b908ea5c32'];
|
|
24
|
-
return defaultProfileIds.includes(filenameCleaned);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Returns a class string to style a user avatar
|
|
29
|
-
* @returns Random user avatar class string
|
|
30
|
-
*/
|
|
31
|
-
export function randomizedUserAvatarClass() {
|
|
32
|
-
const userCardStyleOptions = [
|
|
33
|
-
{ color: 'tw-text-action', bg: 'tw-bg-brand-100' },
|
|
34
|
-
{ color: 'tw-text-black', bg: 'tw-bg-brand-100' },
|
|
35
|
-
{ color: 'tw-text-white', bg: 'tw-bg-action' },
|
|
36
|
-
{ color: 'tw-text-brand-100', bg: 'tw-bg-action' },
|
|
37
|
-
{ color: 'tw-text-primary-inverse', bg: 'tw-bg-action' },
|
|
38
|
-
{ color: 'tw-text-white', bg: 'tw-bg-black' },
|
|
39
|
-
{ color: 'tw-text-action', bg: 'tw-bg-black' },
|
|
40
|
-
];
|
|
41
|
-
const randomStyle = userCardStyleOptions[Math.floor(Math.random() * userCardStyleOptions.length)];
|
|
42
|
-
return `${randomStyle.color} ${randomStyle.bg}`;
|
|
43
|
-
}
|
package/utils/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './Alea';
|
|
2
|
-
export * from './attrs';
|
|
3
|
-
export * from './carousels';
|
|
4
|
-
export * from './expander';
|
|
5
|
-
export * from './imageUtils';
|
|
6
|
-
export * from './loanCard';
|
|
7
|
-
export * from './loanUtils';
|
|
8
|
-
export * from './mapUtils';
|
|
9
|
-
export * from './printing';
|
|
10
|
-
export * from './scrollLock';
|
|
11
|
-
export * from './themeUtils.cjs';
|
|
12
|
-
export * from './throttle';
|
|
13
|
-
export * from './touchEvents';
|
|
14
|
-
export * from './treemap';
|
package/utils/loanCard.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
computed,
|
|
3
|
-
toRefs,
|
|
4
|
-
} from 'vue-demi';
|
|
5
|
-
|
|
6
|
-
import { mdiMapMarker } from '@mdi/js';
|
|
7
|
-
|
|
8
|
-
const LSE_LOAN_KEY = 'N/A';
|
|
9
|
-
const ECO_FRIENDLY_KEY = 'ECO-FRIENDLY';
|
|
10
|
-
const SUSTAINABLE_AG_KEY = 'SUSTAINABLE AG';
|
|
11
|
-
const SINGLE_PARENT_KEY = 'SINGLE PARENT';
|
|
12
|
-
const REFUGEE_KEY = 'REFUGEES/DISPLACED';
|
|
13
|
-
|
|
14
|
-
const findCalloutData = (tags, tagName) => tags?.find((t) => t.name.replace('#', '').toUpperCase() === tagName.toUpperCase()) ?? {}; // eslint-disable-line max-len
|
|
15
|
-
|
|
16
|
-
export function loanCardComputedProperties(props, hideUnitedStatesText = false) {
|
|
17
|
-
const {
|
|
18
|
-
externalLinks,
|
|
19
|
-
customLoanDetails,
|
|
20
|
-
loanId,
|
|
21
|
-
loan,
|
|
22
|
-
categoryPageName,
|
|
23
|
-
customCallouts,
|
|
24
|
-
} = toRefs(props);
|
|
25
|
-
|
|
26
|
-
const tag = computed(() => (externalLinks.value ? 'a' : 'router-link'));
|
|
27
|
-
const readMorePath = computed(() => (customLoanDetails.value ? '' : `/lend/${loanId.value}`));
|
|
28
|
-
const isLoading = computed(() => !loanId.value || !loan.value);
|
|
29
|
-
const borrowerName = computed(() => loan.value?.name || '');
|
|
30
|
-
const countryName = computed(() => loan.value?.geocode?.country?.name || '');
|
|
31
|
-
const countryCode = computed(() => loan.value?.geocode?.country?.isoCode || '');
|
|
32
|
-
const city = computed(() => loan.value?.geocode?.city || '');
|
|
33
|
-
const state = computed(() => loan.value?.geocode?.state || '');
|
|
34
|
-
const distributionModel = computed(() => loan.value?.distributionModel || '');
|
|
35
|
-
const imageHash = computed(() => loan.value?.image?.hash ?? '');
|
|
36
|
-
const hasProgressData = computed(() => {
|
|
37
|
-
return typeof loan.value?.unreservedAmount !== 'undefined'
|
|
38
|
-
&& typeof loan.value?.fundraisingPercent !== 'undefined';
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const allDataLoaded = computed(() => !isLoading.value && hasProgressData.value);
|
|
42
|
-
|
|
43
|
-
const fundraisingPercent = computed(() => loan.value?.fundraisingPercent ?? 0);
|
|
44
|
-
|
|
45
|
-
const unreservedAmount = computed(() => {
|
|
46
|
-
const stringAmount = loan.value?.unreservedAmount ?? '0';
|
|
47
|
-
return Number(stringAmount);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
const formattedLocation = computed(() => {
|
|
51
|
-
if (distributionModel.value === 'direct') {
|
|
52
|
-
const countryText = hideUnitedStatesText && countryName.value.toLowerCase() === 'united states'
|
|
53
|
-
? '' : `, ${countryName.value}`;
|
|
54
|
-
return `${city.value}, ${state.value}${countryText}`;
|
|
55
|
-
}
|
|
56
|
-
if (countryName.value === 'Puerto Rico') {
|
|
57
|
-
return `${city.value}, PR`;
|
|
58
|
-
}
|
|
59
|
-
return countryName.value;
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
const loanUse = computed(() => loan.value?.use ?? '');
|
|
63
|
-
|
|
64
|
-
const loanStatus = computed(() => loan.value?.status ?? '');
|
|
65
|
-
|
|
66
|
-
const loanAmount = computed(() => loan.value?.loanAmount ?? '0');
|
|
67
|
-
|
|
68
|
-
const loanBorrowerCount = computed(() => loan.value?.borrowerCount ?? 0);
|
|
69
|
-
|
|
70
|
-
const loanCallouts = computed(() => {
|
|
71
|
-
const callouts = [];
|
|
72
|
-
|
|
73
|
-
const activityName = loan.value?.activity?.name ?? '';
|
|
74
|
-
const activityId = loan.value?.activity?.id ?? null;
|
|
75
|
-
const sectorName = loan.value?.sector?.name ?? '';
|
|
76
|
-
const sectorId = loan.value?.sector?.id ?? null;
|
|
77
|
-
const tags = loan.value?.tags?.filter((loantag) => loantag.charAt(0) === '#')
|
|
78
|
-
.map((loantag) => loantag.substring(1)) ?? [];
|
|
79
|
-
const themes = loan.value?.themes ?? [];
|
|
80
|
-
const categories = {
|
|
81
|
-
ecoFriendly: !!tags
|
|
82
|
-
.filter((t) => t.toUpperCase() === ECO_FRIENDLY_KEY || t.toUpperCase() === SUSTAINABLE_AG_KEY).length,
|
|
83
|
-
refugeesIdps: !!themes.filter((t) => t.toUpperCase() === REFUGEE_KEY).length,
|
|
84
|
-
singleParents: !!tags.filter((t) => t.toUpperCase() === SINGLE_PARENT_KEY).length,
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
const isLseLoan = loan.value?.partnerName?.toUpperCase().includes(LSE_LOAN_KEY);
|
|
88
|
-
|
|
89
|
-
const tagsData = loan.value?.tagsData ?? [];
|
|
90
|
-
const themesData = loan.value?.themesData ?? [];
|
|
91
|
-
|
|
92
|
-
// P1 Category
|
|
93
|
-
// Exp limited to: Eco-friendly, Refugees and IDPs, Single Parents
|
|
94
|
-
// Tag as first option for LSE loans
|
|
95
|
-
if (isLseLoan && tags.length) {
|
|
96
|
-
const position = Math.floor(Math.random() * tags.length);
|
|
97
|
-
const p1Tag = tags[position];
|
|
98
|
-
const tagData = findCalloutData(tagsData, p1Tag);
|
|
99
|
-
const id = tagData?.id ?? null;
|
|
100
|
-
callouts.push({ label: p1Tag, type: 'tag', id });
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (!categoryPageName.value) {
|
|
104
|
-
if (categories.ecoFriendly
|
|
105
|
-
// eslint-disable-next-line max-len
|
|
106
|
-
&& !callouts.find((c) => c.label.toUpperCase() === ECO_FRIENDLY_KEY || c.label.toUpperCase() === SUSTAINABLE_AG_KEY)) {
|
|
107
|
-
callouts.push({ label: 'Eco-friendly', type: 'tag', id: 9 });
|
|
108
|
-
} else if (categories.refugeesIdps) {
|
|
109
|
-
callouts.push({ label: 'Refugees and IDPs', type: 'attribute', id: 28 });
|
|
110
|
-
} else if (categories.singleParents
|
|
111
|
-
&& !callouts.find((c) => c.label.toUpperCase() === SINGLE_PARENT_KEY)) {
|
|
112
|
-
callouts.push({ label: 'Single Parent', type: 'tag', id: 17 });
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// P2 Activity
|
|
117
|
-
if (activityName && activityId && categoryPageName.value?.toUpperCase() !== activityName.toUpperCase()) {
|
|
118
|
-
callouts.push({ id: activityId, label: activityName, type: 'activity' });
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// P3 Sector
|
|
122
|
-
if (sectorName && sectorId
|
|
123
|
-
&& (activityName.toUpperCase() !== sectorName.toUpperCase())
|
|
124
|
-
&& (sectorName.toUpperCase() !== categoryPageName.value?.toUpperCase())
|
|
125
|
-
&& callouts.length < 2) {
|
|
126
|
-
callouts.push({ id: sectorId, label: sectorName, type: 'sector' });
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// P4 Tag
|
|
130
|
-
if (!!tags.length && callouts.length < 2) {
|
|
131
|
-
const position = Math.floor(Math.random() * tags.length);
|
|
132
|
-
const p4Tag = tags[position];
|
|
133
|
-
const tagData = findCalloutData(tagsData, p4Tag);
|
|
134
|
-
const id = tagData?.id ?? null;
|
|
135
|
-
if (!callouts.filter((c) => c.label.toUpperCase() === p4Tag.toUpperCase()).length) {
|
|
136
|
-
callouts.push({ label: p4Tag, type: 'tag', id });
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// P5 Theme
|
|
141
|
-
if (!!themes.length && callouts.length < 2) {
|
|
142
|
-
const position = Math.floor(Math.random() * themes.length);
|
|
143
|
-
const theme = themes[position];
|
|
144
|
-
const themeData = findCalloutData(themesData, theme);
|
|
145
|
-
const id = themeData?.id ?? null;
|
|
146
|
-
if (!callouts.filter((c) => c.label.toUpperCase() === theme.toUpperCase()).length
|
|
147
|
-
&& theme.toUpperCase() !== categoryPageName.value?.toUpperCase()) {
|
|
148
|
-
callouts.push({ label: theme, type: 'attribute', id });
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Only show one callout for LSE loans
|
|
153
|
-
if (isLseLoan && callouts.length > 1) return [callouts.shift()];
|
|
154
|
-
|
|
155
|
-
// Add all custom callouts if available
|
|
156
|
-
const customTags = customCallouts.value?.map((c) => ({ label: c })) ?? [];
|
|
157
|
-
callouts.push(...customTags);
|
|
158
|
-
return callouts;
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
return {
|
|
162
|
-
tag,
|
|
163
|
-
readMorePath,
|
|
164
|
-
isLoading,
|
|
165
|
-
borrowerName,
|
|
166
|
-
countryName,
|
|
167
|
-
countryCode,
|
|
168
|
-
city,
|
|
169
|
-
state,
|
|
170
|
-
distributionModel,
|
|
171
|
-
imageHash,
|
|
172
|
-
hasProgressData,
|
|
173
|
-
allDataLoaded,
|
|
174
|
-
fundraisingPercent,
|
|
175
|
-
unreservedAmount,
|
|
176
|
-
formattedLocation,
|
|
177
|
-
loanUse,
|
|
178
|
-
loanStatus,
|
|
179
|
-
loanAmount,
|
|
180
|
-
loanBorrowerCount,
|
|
181
|
-
mdiMapMarker,
|
|
182
|
-
loanCallouts,
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export function loanCardMethods(props, emit) {
|
|
187
|
-
const {
|
|
188
|
-
loanId,
|
|
189
|
-
customLoanDetails,
|
|
190
|
-
kvTrackFunction,
|
|
191
|
-
} = toRefs(props);
|
|
192
|
-
|
|
193
|
-
function clickReadMore(target, event) {
|
|
194
|
-
kvTrackFunction.value('Lending', 'click-Read more', target, loanId.value);
|
|
195
|
-
if (customLoanDetails.value) {
|
|
196
|
-
event.preventDefault();
|
|
197
|
-
emit('show-loan-details');
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return {
|
|
202
|
-
clickReadMore,
|
|
203
|
-
};
|
|
204
|
-
}
|
package/utils/loanUtils.js
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import numeral from 'numeral';
|
|
2
|
-
|
|
3
|
-
export const ERL_COOKIE_NAME = 'kverlfivedollarnotes';
|
|
4
|
-
export const TOP_UP_CAMPAIGN = 'TOPUP-VB-BALANCE-MPV1';
|
|
5
|
-
export const BASE_CAMPAIGN = 'BASE-VB_BALANCE_MPV1';
|
|
6
|
-
export const BALANCE_CAMPAIGN = 'REPAYMENT-NOTIFICATION_BALANCE_MPV1';
|
|
7
|
-
export const NO_BALANCE_CAMPAIGN = 'REPAYMENT-NOTIFICATION_NO-BALANCE_MPV1';
|
|
8
|
-
|
|
9
|
-
function balanceCampaignOptions(val) {
|
|
10
|
-
if (val > 20) return 25;
|
|
11
|
-
if (val > 15) return 20;
|
|
12
|
-
if (val > 10) return 15;
|
|
13
|
-
if (val > 5) return 10;
|
|
14
|
-
return 5;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Checks if the unreserved amount is between 25 and 50
|
|
19
|
-
*
|
|
20
|
-
* @param {string} unreservedAmount
|
|
21
|
-
* @returns Whether the unreserved amount is between 25 and 50
|
|
22
|
-
*/
|
|
23
|
-
export function isBetween25And50(unreservedAmount) {
|
|
24
|
-
return unreservedAmount <= 50 && unreservedAmount > 25;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Checks if the unreserved amount is less than 25
|
|
29
|
-
*
|
|
30
|
-
* @param {string} unreservedAmount
|
|
31
|
-
* @returns Whether the unreserved amount is less than 25
|
|
32
|
-
*/
|
|
33
|
-
export function isLessThan25(unreservedAmount) {
|
|
34
|
-
return unreservedAmount < 25 && unreservedAmount > 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Gets the selected option for the Lend CTA component
|
|
39
|
-
*
|
|
40
|
-
* @param {Function} getCookie Method that returns a cookie by name
|
|
41
|
-
* @param {Function} setCookie Method that sets a cookie with the provided name, value, and options
|
|
42
|
-
* @param {boolean} enableFiveDollarsNotes Whether $5 notes experiment is assigned
|
|
43
|
-
* @param {string} campaign The "utm_campaign" query param sourced from the Vue component route
|
|
44
|
-
* @param {string} unreservedAmount The unreserved amount for the loan
|
|
45
|
-
* @param {string} userBalance The balance of the current user
|
|
46
|
-
* @returns {string} The option to be selected in the CTA dropdown
|
|
47
|
-
*/
|
|
48
|
-
export function getLendCtaSelectedOption(
|
|
49
|
-
getCookie,
|
|
50
|
-
setCookie,
|
|
51
|
-
enableFiveDollarsNotes,
|
|
52
|
-
campaign,
|
|
53
|
-
unreservedAmount,
|
|
54
|
-
userBalance,
|
|
55
|
-
fiveDollarsSelected,
|
|
56
|
-
) {
|
|
57
|
-
// defaulted to $5 for fiveDollarsSelected flag even when users come from email with a different balance
|
|
58
|
-
if (enableFiveDollarsNotes && fiveDollarsSelected) {
|
|
59
|
-
return '5';
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Don't enable the campaign changes when the user balance is undefined (user not logged in)
|
|
63
|
-
if (enableFiveDollarsNotes && typeof userBalance !== 'undefined') {
|
|
64
|
-
let currentCampaign = getCookie?.(ERL_COOKIE_NAME);
|
|
65
|
-
|
|
66
|
-
if (campaign && typeof campaign === 'string' && !currentCampaign) {
|
|
67
|
-
// Effects of the campaign lasts for 24 hours
|
|
68
|
-
const expires = new Date();
|
|
69
|
-
expires.setHours(expires.getHours() + 24);
|
|
70
|
-
|
|
71
|
-
const campaignToCheck = campaign.toUpperCase();
|
|
72
|
-
|
|
73
|
-
// eslint-disable-next-line no-nested-ternary
|
|
74
|
-
currentCampaign = campaignToCheck.includes(TOP_UP_CAMPAIGN)
|
|
75
|
-
? TOP_UP_CAMPAIGN
|
|
76
|
-
: campaignToCheck.includes(BASE_CAMPAIGN) ? BASE_CAMPAIGN // eslint-disable-line no-nested-ternary
|
|
77
|
-
: campaignToCheck.includes(BALANCE_CAMPAIGN) ? BALANCE_CAMPAIGN // eslint-disable-line no-nested-ternary
|
|
78
|
-
: (campaignToCheck.includes(NO_BALANCE_CAMPAIGN) ? NO_BALANCE_CAMPAIGN : '');
|
|
79
|
-
|
|
80
|
-
if (currentCampaign && setCookie) {
|
|
81
|
-
setCookie(ERL_COOKIE_NAME, currentCampaign, { expires });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (currentCampaign) {
|
|
86
|
-
let val = Math.floor(userBalance / 5) * 5;
|
|
87
|
-
|
|
88
|
-
// Base campaign gets largest increment of $5 under the user's balance up to $25 or the unreserved amount
|
|
89
|
-
if (currentCampaign === BASE_CAMPAIGN) {
|
|
90
|
-
// eslint-disable-next-line no-nested-ternary
|
|
91
|
-
val = val === 0 ? 5 : (val > 25 ? 25 : val);
|
|
92
|
-
|
|
93
|
-
return Number(val <= unreservedAmount ? val : unreservedAmount).toFixed();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (currentCampaign === BALANCE_CAMPAIGN) {
|
|
97
|
-
val = balanceCampaignOptions(val);
|
|
98
|
-
return Number(val).toFixed();
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Top up and no balance campaigns defaults to $5
|
|
102
|
-
return Number(unreservedAmount > 5 ? 5 : unreservedAmount).toFixed();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Handle when $5 notes isn't enabled
|
|
107
|
-
if (isBetween25And50(unreservedAmount) || isLessThan25(unreservedAmount)) {
|
|
108
|
-
return Number(unreservedAmount).toFixed();
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// $25 is the fallback default selected option
|
|
112
|
-
return '25';
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function buildHugePriceArray(amountLeft) {
|
|
116
|
-
const priceArray = [];
|
|
117
|
-
|
|
118
|
-
// Add $100 options up to $1,000
|
|
119
|
-
let minAmount = 100;
|
|
120
|
-
let limitAmount = amountLeft > 1000 ? 1000 : amountLeft;
|
|
121
|
-
let optionCount = limitAmount / minAmount;
|
|
122
|
-
for (let i = 1; i <= optionCount; i += 1) {
|
|
123
|
-
const price = minAmount * i + 500;
|
|
124
|
-
if (price > limitAmount) break;
|
|
125
|
-
priceArray.push(numeral(price).format('0,0'));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Add $1000 options up to $10,000
|
|
129
|
-
minAmount = 1000;
|
|
130
|
-
limitAmount = amountLeft > 10000 ? 10000 : amountLeft;
|
|
131
|
-
optionCount = limitAmount / minAmount;
|
|
132
|
-
for (let i = 1; i <= optionCount; i += 1) {
|
|
133
|
-
const price = minAmount * i + 1000;
|
|
134
|
-
if (price > limitAmount) break;
|
|
135
|
-
priceArray.push(numeral(price).format('0,0'));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Ensure final option is added
|
|
139
|
-
if (!priceArray.includes(numeral(limitAmount).format('0,0'))) {
|
|
140
|
-
priceArray.push(numeral(limitAmount).format('0,0'));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return priceArray;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
function build5DollarsPriceArray(amountLeft) {
|
|
147
|
-
const limit5Notes = amountLeft < 50 ? amountLeft : 50;
|
|
148
|
-
const numberOf5 = limit5Notes / 5;
|
|
149
|
-
const numberOf25 = Math.ceil((amountLeft - limit5Notes) / 25) + 1;
|
|
150
|
-
const priceArray = [];
|
|
151
|
-
for (let i = 1; i <= numberOf5; i += 1) {
|
|
152
|
-
priceArray.push(numeral(5 * i).format('0,0'));
|
|
153
|
-
}
|
|
154
|
-
if (amountLeft > limit5Notes) {
|
|
155
|
-
for (let i = 3; i <= numberOf25; i += 1) {
|
|
156
|
-
priceArray.push(numeral(25 * i).format('0,0'));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
return priceArray;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function buildPriceArray(amountLeft, minAmount) {
|
|
163
|
-
// Get count of shares based on available remaining amount
|
|
164
|
-
const optionCount = amountLeft / minAmount;
|
|
165
|
-
// Convert this to formatted array for our select element
|
|
166
|
-
const priceArray = []; // ex. priceArray = ['25', '50', '75']
|
|
167
|
-
for (let i = 1; i <= optionCount; i += 1) {
|
|
168
|
-
priceArray.push(numeral(minAmount * i).format('0,0'));
|
|
169
|
-
}
|
|
170
|
-
return priceArray;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Gets the dropdown price values for the lend CTA
|
|
175
|
-
*
|
|
176
|
-
* @param {string} unreservedAmount The unreserved amount of the loan
|
|
177
|
-
* @param {boolean} isCompleteLoanActive Whether to include option that would complete loan
|
|
178
|
-
* @param {number} minAmount The min amount to show in the dropdown
|
|
179
|
-
* @param {boolean} enableFiveDollarsNotes Whether five dollar notes are enabled
|
|
180
|
-
* @param {boolean} enableHugeAmount Whether huge loan amounts are enabled
|
|
181
|
-
* @param {boolean} isVisitor Whether the current user is a visitor
|
|
182
|
-
* @param {boolean} inPfp Whether the loan is in PFP
|
|
183
|
-
* @returns {string[]} Price value array for the CTA dropdown
|
|
184
|
-
*/
|
|
185
|
-
export function getDropdownPriceArray(
|
|
186
|
-
unreservedAmount,
|
|
187
|
-
isCompleteLoanActive = false,
|
|
188
|
-
minAmount = 25,
|
|
189
|
-
enableFiveDollarsNotes = false,
|
|
190
|
-
enableHugeAmount = false,
|
|
191
|
-
isVisitor = true,
|
|
192
|
-
inPfp = false,
|
|
193
|
-
) {
|
|
194
|
-
const parsedAmountLeft = parseFloat(unreservedAmount);
|
|
195
|
-
let priceArray = (enableFiveDollarsNotes && !inPfp)
|
|
196
|
-
? build5DollarsPriceArray(parsedAmountLeft).slice(0, 28)
|
|
197
|
-
: buildPriceArray(parsedAmountLeft, minAmount).slice(0, 20);
|
|
198
|
-
|
|
199
|
-
if (enableHugeAmount && parsedAmountLeft > 500 && !isVisitor) {
|
|
200
|
-
const hugePriceArray = buildHugePriceArray(parsedAmountLeft);
|
|
201
|
-
priceArray = priceArray.concat(hugePriceArray);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (isCompleteLoanActive && !priceArray.includes(Number(unreservedAmount).toFixed())) {
|
|
205
|
-
priceArray.push(Number(unreservedAmount).toFixed());
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
return priceArray;
|
|
209
|
-
}
|