@kiva/kv-components 4.8.5 → 5.0.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 +158 -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 -3604
- 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 -203
- 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 -203
- 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
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { toRefs as c, computed as s, resolveComponent as r, openBlock as m, createElementBlock as f, createVNode as p, normalizeClass as u } from "vue";
|
|
2
|
+
import { mdiHeart as d, mdiHeartOutline as k } from "@mdi/js";
|
|
3
|
+
import v from "./KvMaterialIcon.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _ from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const w = {
|
|
7
|
+
name: "KvCommentsHeartButton",
|
|
8
|
+
components: {
|
|
9
|
+
KvMaterialIcon: v
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* Use if small icon is needed
|
|
14
|
+
*/
|
|
15
|
+
isSmall: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* Use if icon is liked
|
|
21
|
+
*/
|
|
22
|
+
isLiked: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
emits: [
|
|
28
|
+
"click"
|
|
29
|
+
],
|
|
30
|
+
setup(a) {
|
|
31
|
+
const {
|
|
32
|
+
isSmall: e,
|
|
33
|
+
isLiked: t
|
|
34
|
+
} = c(a), o = s(() => t.value ? d : k), l = s(() => {
|
|
35
|
+
let n = e.value ? "tw-w-2.5 tw-h-2.5" : "tw-w-3 tw-h-3";
|
|
36
|
+
return n += t.value ? " filled" : "", n;
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
icon: o,
|
|
40
|
+
classState: l
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
function B(a, e, t, o, l, n) {
|
|
45
|
+
const i = r("kv-material-icon");
|
|
46
|
+
return m(), f("button", {
|
|
47
|
+
"aria-label": "Like",
|
|
48
|
+
class: "tw-flex tw-flex-col tw-justify-center",
|
|
49
|
+
onClick: e[0] || (e[0] = (C) => {
|
|
50
|
+
a.$emit("click", !t.isLiked);
|
|
51
|
+
})
|
|
52
|
+
}, [
|
|
53
|
+
p(i, {
|
|
54
|
+
icon: o.icon,
|
|
55
|
+
class: u(o.classState)
|
|
56
|
+
}, null, 8, ["icon", "class"])
|
|
57
|
+
]);
|
|
58
|
+
}
|
|
59
|
+
const y = /* @__PURE__ */ _(w, [["render", B], ["__scopeId", "data-v-50e5ceb0"]]);
|
|
60
|
+
export {
|
|
61
|
+
y as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import l from "./KvCommentsListItem.js";
|
|
2
|
+
import { resolveComponent as d, openBlock as s, createElementBlock as i, Fragment as u, renderList as c, createBlock as p } from "vue";
|
|
3
|
+
import _ from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const o = "add-reaction", f = {
|
|
5
|
+
name: "KvCommentsList",
|
|
6
|
+
components: { KvCommentsListItem: l },
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* The full URL for the user image
|
|
10
|
+
*/
|
|
11
|
+
userImageUrl: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* The name to display for the user
|
|
17
|
+
*/
|
|
18
|
+
userDisplayName: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* The ID for the user
|
|
24
|
+
*/
|
|
25
|
+
userPublicId: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* Activity comments
|
|
31
|
+
*/
|
|
32
|
+
comments: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: () => []
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
emits: [o],
|
|
38
|
+
setup(a, { emit: r }) {
|
|
39
|
+
return {
|
|
40
|
+
handleReaction: (n) => {
|
|
41
|
+
r(o, n);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function y(a, r, e, n, g, I) {
|
|
47
|
+
const m = d("KvCommentsListItem");
|
|
48
|
+
return s(), i("div", null, [
|
|
49
|
+
(s(!0), i(u, null, c(e.comments, (t) => (s(), p(m, {
|
|
50
|
+
id: t.id,
|
|
51
|
+
key: t.id,
|
|
52
|
+
comment: t,
|
|
53
|
+
"user-image-url": e.userImageUrl,
|
|
54
|
+
"user-display-name": e.userDisplayName,
|
|
55
|
+
"user-public-id": e.userPublicId,
|
|
56
|
+
"is-liked": t.is_liked,
|
|
57
|
+
class: "tw-mb-2 tw-not-prose",
|
|
58
|
+
onAddReaction: n.handleReaction
|
|
59
|
+
}, null, 8, ["id", "comment", "user-image-url", "user-display-name", "user-public-id", "is-liked", "onAddReaction"]))), 128))
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
const L = /* @__PURE__ */ _(f, [["render", y]]);
|
|
63
|
+
export {
|
|
64
|
+
L as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { mdiChevronDown as P } from "@mdi/js";
|
|
2
|
+
import { toRefs as B, ref as y, computed as i, inject as j, onMounted as S, resolveComponent as v, openBlock as r, createElementBlock as m, createElementVNode as f, createVNode as k, toDisplayString as p, createCommentVNode as c, createBlock as U, normalizeClass as H, createTextVNode as Y, Fragment as z, renderList as F, nextTick as q } from "vue";
|
|
3
|
+
import G from "./KvMaterialIcon.js";
|
|
4
|
+
import J from "./KvCommentsReplyButton.js";
|
|
5
|
+
import Q from "./KvCommentsHeartButton.js";
|
|
6
|
+
import W from "./KvCommentsAdd.js";
|
|
7
|
+
import X from "./KvUserAvatar.js";
|
|
8
|
+
import Z from "../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
|
|
10
|
+
name: "KvCommentsListItem",
|
|
11
|
+
components: {
|
|
12
|
+
KvCommentsReplyButton: J,
|
|
13
|
+
KvCommentsHeartButton: Q,
|
|
14
|
+
KvCommentsAdd: W,
|
|
15
|
+
KvUserAvatar: X,
|
|
16
|
+
KvMaterialIcon: G
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* The full URL for the user image
|
|
21
|
+
*/
|
|
22
|
+
userImageUrl: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* The name to display for the user
|
|
28
|
+
*/
|
|
29
|
+
userDisplayName: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* The ID for the user
|
|
35
|
+
*/
|
|
36
|
+
userPublicId: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Activity comment
|
|
42
|
+
*/
|
|
43
|
+
comment: {
|
|
44
|
+
type: Object,
|
|
45
|
+
default: () => ({})
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* The nest level of the comment
|
|
49
|
+
*/
|
|
50
|
+
nestLevel: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 0
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
emits: [
|
|
56
|
+
N
|
|
57
|
+
],
|
|
58
|
+
setup(g, { emit: s }) {
|
|
59
|
+
const {
|
|
60
|
+
comment: e,
|
|
61
|
+
userPublicId: n
|
|
62
|
+
} = B(g), u = y(!1), h = y(null), a = y(), _ = y(!1), b = i(() => {
|
|
63
|
+
var t;
|
|
64
|
+
return ((t = e == null ? void 0 : e.value) == null ? void 0 : t.text) ?? "";
|
|
65
|
+
}), w = i(() => {
|
|
66
|
+
var t;
|
|
67
|
+
return ((t = e == null ? void 0 : e.value) == null ? void 0 : t.publicLenderId) ?? "";
|
|
68
|
+
}), C = i(() => {
|
|
69
|
+
var t, l;
|
|
70
|
+
return ((l = (t = a == null ? void 0 : a.value) == null ? void 0 : t.image) == null ? void 0 : l.url) ?? "";
|
|
71
|
+
}), I = i(() => {
|
|
72
|
+
var t;
|
|
73
|
+
return ((t = a == null ? void 0 : a.value) == null ? void 0 : t.name) ?? "";
|
|
74
|
+
}), o = i(() => {
|
|
75
|
+
var t, l;
|
|
76
|
+
return ((l = (t = e == null ? void 0 : e.value) == null ? void 0 : t.children) == null ? void 0 : l.comment) ?? null;
|
|
77
|
+
}), E = i(() => {
|
|
78
|
+
var t, l;
|
|
79
|
+
return ((l = (t = e == null ? void 0 : e.value) == null ? void 0 : t.children) == null ? void 0 : l.like) ?? [];
|
|
80
|
+
}), R = i(() => E.value.find((t) => t.publicLenderId === n.value)), O = i(() => R.value !== void 0), T = () => {
|
|
81
|
+
u.value = !u.value, q(() => {
|
|
82
|
+
u.value && h.value.$refs.input.focus();
|
|
83
|
+
});
|
|
84
|
+
}, x = (t, l) => {
|
|
85
|
+
var L;
|
|
86
|
+
const d = {
|
|
87
|
+
reaction: t,
|
|
88
|
+
id: ((L = e == null ? void 0 : e.value) == null ? void 0 : L.id) ?? null,
|
|
89
|
+
isChild: !0,
|
|
90
|
+
value: l
|
|
91
|
+
};
|
|
92
|
+
s(N, d);
|
|
93
|
+
}, D = () => {
|
|
94
|
+
u.value = !1;
|
|
95
|
+
}, A = i(() => {
|
|
96
|
+
var t, l, d;
|
|
97
|
+
return ((d = (l = (t = e == null ? void 0 : e.value) == null ? void 0 : t.children) == null ? void 0 : l.like) == null ? void 0 : d.length) ?? 0;
|
|
98
|
+
}), M = i(() => {
|
|
99
|
+
var t, l, d;
|
|
100
|
+
return ((d = (l = (t = e == null ? void 0 : e.value) == null ? void 0 : t.children) == null ? void 0 : l.comment) == null ? void 0 : d.length) ?? 0;
|
|
101
|
+
}), V = () => {
|
|
102
|
+
_.value = !_.value;
|
|
103
|
+
}, K = j("fetchLenderInfo");
|
|
104
|
+
return S(async () => {
|
|
105
|
+
if (w.value) {
|
|
106
|
+
const t = await K(w.value);
|
|
107
|
+
a.value = t;
|
|
108
|
+
}
|
|
109
|
+
}), {
|
|
110
|
+
hideInput: D,
|
|
111
|
+
showInput: u,
|
|
112
|
+
commentsAddRef: h,
|
|
113
|
+
replyClick: T,
|
|
114
|
+
addReaction: x,
|
|
115
|
+
REPLY_COMMENT_EVENT: $,
|
|
116
|
+
LIKE_COMMENT_EVENT: ee,
|
|
117
|
+
ADD_REACTION_EVENT: N,
|
|
118
|
+
commentText: b,
|
|
119
|
+
authorImage: C,
|
|
120
|
+
authorName: I,
|
|
121
|
+
childComments: o,
|
|
122
|
+
isLiked: O,
|
|
123
|
+
numberOfLikes: A,
|
|
124
|
+
numberOfReplies: M,
|
|
125
|
+
repliesOpened: _,
|
|
126
|
+
toggleReplies: V,
|
|
127
|
+
mdiChevronDown: P
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
}, ne = { class: "tw-flex tw-items-center tw-gap-1" }, le = {
|
|
131
|
+
key: 0,
|
|
132
|
+
class: "data-hj-suppress tw-font-medium"
|
|
133
|
+
}, se = { class: "tw-flex tw-items-center tw-gap-x-1" }, oe = { class: "tw-flex tw-items-center tw-gap-0.5" }, ie = {
|
|
134
|
+
key: 0,
|
|
135
|
+
"data-testid": "like-count",
|
|
136
|
+
class: "tw-font-medium"
|
|
137
|
+
}, re = {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: "tw-w-full"
|
|
140
|
+
}, ae = {
|
|
141
|
+
key: 1,
|
|
142
|
+
class: "tw-my-1"
|
|
143
|
+
}, me = { key: 1 };
|
|
144
|
+
function de(g, s, e, n, u, h) {
|
|
145
|
+
const a = v("kv-user-avatar"), _ = v("kv-comments-heart-button"), b = v("kv-comments-reply-button"), w = v("kv-comments-add"), C = v("kv-material-icon"), I = v("kv-comments-list-item", !0);
|
|
146
|
+
return r(), m("div", null, [
|
|
147
|
+
f("div", null, [
|
|
148
|
+
f("div", ne, [
|
|
149
|
+
k(a, {
|
|
150
|
+
"lender-name": n.authorName,
|
|
151
|
+
"lender-image-url": n.authorImage,
|
|
152
|
+
"is-small": ""
|
|
153
|
+
}, null, 8, ["lender-name", "lender-image-url"]),
|
|
154
|
+
n.authorName ? (r(), m("p", le, p(n.authorName), 1)) : c("", !0)
|
|
155
|
+
]),
|
|
156
|
+
f("p", null, p(n.commentText), 1)
|
|
157
|
+
]),
|
|
158
|
+
f("div", se, [
|
|
159
|
+
f("div", oe, [
|
|
160
|
+
k(_, {
|
|
161
|
+
"is-small": !0,
|
|
162
|
+
"is-liked": n.isLiked,
|
|
163
|
+
disabled: !e.userPublicId,
|
|
164
|
+
onClick: s[0] || (s[0] = (o) => n.addReaction(n.LIKE_COMMENT_EVENT, o))
|
|
165
|
+
}, null, 8, ["is-liked", "disabled"]),
|
|
166
|
+
n.numberOfLikes ? (r(), m("p", ie, p(n.numberOfLikes), 1)) : c("", !0)
|
|
167
|
+
]),
|
|
168
|
+
e.userPublicId && e.nestLevel === 0 ? (r(), U(b, {
|
|
169
|
+
key: 0,
|
|
170
|
+
onClick: n.replyClick
|
|
171
|
+
}, null, 8, ["onClick"])) : c("", !0)
|
|
172
|
+
]),
|
|
173
|
+
n.showInput ? (r(), m("div", re, [
|
|
174
|
+
k(w, {
|
|
175
|
+
ref: "commentsAddRef",
|
|
176
|
+
"user-image-url": e.userImageUrl,
|
|
177
|
+
"user-display-name": e.userDisplayName,
|
|
178
|
+
"is-reply": !0,
|
|
179
|
+
class: "tw-ml-3",
|
|
180
|
+
onAddComment: s[1] || (s[1] = (o) => n.addReaction(n.REPLY_COMMENT_EVENT, o)),
|
|
181
|
+
onHideInput: n.hideInput
|
|
182
|
+
}, null, 8, ["user-image-url", "user-display-name", "onHideInput"])
|
|
183
|
+
])) : c("", !0),
|
|
184
|
+
n.childComments ? (r(), m("div", ae, [
|
|
185
|
+
n.numberOfReplies ? (r(), m("button", {
|
|
186
|
+
key: 0,
|
|
187
|
+
class: "tw-ml-3 tw-text-action tw-font-medium tw-mb-1 tw-flex tw-items-center",
|
|
188
|
+
onClick: s[2] || (s[2] = (...o) => n.toggleReplies && n.toggleReplies(...o))
|
|
189
|
+
}, [
|
|
190
|
+
k(C, {
|
|
191
|
+
class: H(["tw-h-2.5 tw-w-2.5 tw-transition tw-transform tw-duration-500 tw-ease", { "tw-rotate-180": n.repliesOpened }]),
|
|
192
|
+
icon: n.mdiChevronDown
|
|
193
|
+
}, null, 8, ["class", "icon"]),
|
|
194
|
+
Y(" " + p(n.numberOfReplies) + " " + p(n.numberOfReplies > 1 ? "replies" : "reply"), 1)
|
|
195
|
+
])) : c("", !0),
|
|
196
|
+
n.repliesOpened ? (r(), m("div", me, [
|
|
197
|
+
(r(!0), m(z, null, F(n.childComments, (o) => (r(), m("div", {
|
|
198
|
+
key: o.id,
|
|
199
|
+
class: "tw-ml-3"
|
|
200
|
+
}, [
|
|
201
|
+
k(I, {
|
|
202
|
+
"user-image-url": e.userImageUrl,
|
|
203
|
+
"user-display-name": e.userDisplayName,
|
|
204
|
+
"user-public-id": e.userPublicId,
|
|
205
|
+
comment: o,
|
|
206
|
+
"nest-level": e.nestLevel + 1,
|
|
207
|
+
onAddReaction: s[3] || (s[3] = (E) => {
|
|
208
|
+
g.$emit(n.ADD_REACTION_EVENT, E);
|
|
209
|
+
})
|
|
210
|
+
}, null, 8, ["user-image-url", "user-display-name", "user-public-id", "comment", "nest-level"])
|
|
211
|
+
]))), 128))
|
|
212
|
+
])) : c("", !0)
|
|
213
|
+
])) : c("", !0)
|
|
214
|
+
]);
|
|
215
|
+
}
|
|
216
|
+
const ye = /* @__PURE__ */ Z(te, [["render", de]]);
|
|
217
|
+
export {
|
|
218
|
+
ee as LIKE_COMMENT_EVENT,
|
|
219
|
+
$ as REPLY_COMMENT_EVENT,
|
|
220
|
+
ye as default
|
|
221
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-v-34b54f14] span{min-height:0}[data-v-34b54f14] span>span{display:flex;align-items:center;padding-top:0;padding-bottom:0;padding-left:.25rem;padding-right:.25rem}[data-v-34b54f14] svg{margin-left:.25rem;margin-right:.25rem}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import C from "./KvButton.js";
|
|
2
|
+
import { resolveComponent as r, openBlock as l, createBlock as p, withCtx as s, createElementVNode as o } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = {
|
|
6
|
+
name: "KvCommentsReplyButton",
|
|
7
|
+
components: {
|
|
8
|
+
KvButton: C
|
|
9
|
+
},
|
|
10
|
+
emits: [
|
|
11
|
+
"click"
|
|
12
|
+
]
|
|
13
|
+
};
|
|
14
|
+
function a(e, t, c, f, v, u) {
|
|
15
|
+
const n = r("kv-button");
|
|
16
|
+
return l(), p(n, {
|
|
17
|
+
variant: "ghost",
|
|
18
|
+
"aria-label": "Reply",
|
|
19
|
+
onClick: t[0] || (t[0] = (d) => e.$emit("click"))
|
|
20
|
+
}, {
|
|
21
|
+
default: s(() => t[1] || (t[1] = [
|
|
22
|
+
o("svg", {
|
|
23
|
+
width: "14",
|
|
24
|
+
height: "11",
|
|
25
|
+
viewBox: "0 0 14 11",
|
|
26
|
+
fill: "none",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
28
|
+
}, [
|
|
29
|
+
o("path", {
|
|
30
|
+
d: "M2.87502 5.12499L4.91669 7.16666C5.06946 7.31943 5.14585 7.49652 5.14585 7.69791C5.14585 7.8993 5.06946 8.0797 4.91669 8.23911C4.76391 8.38525 4.58683 8.45832 4.38544 8.45832C4.18405 8.45832 4.00696 8.38193 3.85419 8.22916L0.520854 4.89582C0.368076 4.7481 0.291687 4.57575 0.291687 4.37878C0.291687 4.18181 0.368076 4.00693 0.520854 3.85416L3.85419 0.520823C4.00696 0.368045 4.18521 0.291656 4.38892 0.291656C4.59261 0.291656 4.76853 0.368045 4.91669 0.520823C5.06946 0.668976 5.14585 0.8449 5.14585 1.04859C5.14585 1.2523 5.06946 1.43055 4.91669 1.58332L2.87502 3.62499H10C11.1067 3.62499 12.05 4.01499 12.83 4.79499C13.61 5.57499 14 6.51832 14 7.62499V9.87499C14 10.0875 13.9286 10.2656 13.7857 10.4094C13.6427 10.5531 13.4657 10.625 13.2544 10.625C13.0432 10.625 12.8646 10.5531 12.7188 10.4094C12.5729 10.2656 12.5 10.0875 12.5 9.87499V7.62499C12.5 6.93055 12.257 6.34027 11.7709 5.85416C11.2847 5.36805 10.6945 5.12499 10 5.12499H2.87502Z",
|
|
31
|
+
fill: "#1C1B1F"
|
|
32
|
+
})
|
|
33
|
+
], -1),
|
|
34
|
+
o("span", null, " reply ", -1)
|
|
35
|
+
])),
|
|
36
|
+
_: 1
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
const $ = /* @__PURE__ */ i(m, [["render", a], ["__scopeId", "data-v-34b54f14"]]);
|
|
40
|
+
export {
|
|
41
|
+
$ as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { toRefs as _, computed as k, openBlock as h, createElementBlock as c, createElementVNode as r, Fragment as g, renderList as y, createCommentVNode as b, createTextVNode as S, toDisplayString as v } from "vue";
|
|
2
|
+
import q from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const Q = {
|
|
4
|
+
props: {
|
|
5
|
+
/**
|
|
6
|
+
* Large, uncompressed image url that you get back from contentful.
|
|
7
|
+
* */
|
|
8
|
+
contentfulSrc: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* If the browser can't support webp we fallback to this image format.
|
|
14
|
+
* `jpg, png, webp`
|
|
15
|
+
* */
|
|
16
|
+
fallbackFormat: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "jpg",
|
|
19
|
+
validator(e) {
|
|
20
|
+
return ["jpg", "png", "gif"].indexOf(e) !== -1;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* 1x width of the image. Width or height must be defined. Ideally both.
|
|
25
|
+
* */
|
|
26
|
+
width: {
|
|
27
|
+
type: [String, Number],
|
|
28
|
+
default: null
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* 1x height of the image. Width or height must be defined. Ideally both.
|
|
32
|
+
* */
|
|
33
|
+
height: {
|
|
34
|
+
type: [String, Number],
|
|
35
|
+
default: null
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Alt text for the image
|
|
39
|
+
* */
|
|
40
|
+
alt: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* Loading hint to the browser - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
46
|
+
* `lazy, eager`
|
|
47
|
+
* */
|
|
48
|
+
loading: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: null,
|
|
51
|
+
validator(e) {
|
|
52
|
+
return ["lazy", "eager"].indexOf(e) !== -1;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Focus area when modifying images. Focus area has no effect on the default 'scale' fit.
|
|
57
|
+
* https://www.contentful.com/developers/docs/references/images-api/#/reference/resizing-&-cropping/specify-focus-area
|
|
58
|
+
* */
|
|
59
|
+
focus: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: "center",
|
|
62
|
+
validator(e) {
|
|
63
|
+
return ["center", "top", "right", "left", "bottom", "top_right", "top_left", "bottom_right", "bottom_left", "face", "faces"].indexOf(e) !== -1;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Focus area when modifying images. Focus area has no effect on the default 'scale' fit.
|
|
68
|
+
* https://www.contentful.com/developers/docs/references/images-api/#/reference/resizing-&-cropping/change-the-resizing-behavior
|
|
69
|
+
* */
|
|
70
|
+
fit: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "scale",
|
|
73
|
+
validator(e) {
|
|
74
|
+
return ["pad", "fill", "scale", "crop", "thumb"].indexOf(e) !== -1;
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Sources sizes.
|
|
79
|
+
* Array of objects for different image sources.
|
|
80
|
+
* Sample object:
|
|
81
|
+
* {
|
|
82
|
+
width: 1440,
|
|
83
|
+
height: 620,
|
|
84
|
+
media: 'min-width: 1025px',
|
|
85
|
+
url: '//some-protocol-relative-contentful-url'
|
|
86
|
+
}
|
|
87
|
+
* */
|
|
88
|
+
sourceSizes: {
|
|
89
|
+
type: Array,
|
|
90
|
+
required: !1,
|
|
91
|
+
default: () => []
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
setup(e) {
|
|
95
|
+
const {
|
|
96
|
+
alt: u,
|
|
97
|
+
contentfulSrc: t,
|
|
98
|
+
width: i,
|
|
99
|
+
height: x
|
|
100
|
+
} = _(e), m = (n = null, o = 1) => {
|
|
101
|
+
let w = n && n.url ? `${n.url}?` : `${t.value}?`, f = n ? n.width : i.value, a = n ? n.height : x.value, s;
|
|
102
|
+
return f >= 2e3 && (s = f / 1999, f = 1999, a = Math.round(a / s)), a >= 2e3 && (s = a / 1999, a = 1999, f = Math.round(f / s)), f && (w += `w=${f * o}`), f && a && (w += "&"), a && (w += `h=${a * o}`), w;
|
|
103
|
+
}, l = (n, o) => o === "2x" ? 65 : n && parseInt(n, 10) < 200 ? 95 : 80, d = k(() => u.value && u.value.charAt(0) === "^" ? u.value.slice(1).trim() : "");
|
|
104
|
+
return {
|
|
105
|
+
buildUrl: m,
|
|
106
|
+
caption: d,
|
|
107
|
+
setQuality: l
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}, U = {
|
|
111
|
+
key: 0,
|
|
112
|
+
class: "tw-inline-block tw-not-prose"
|
|
113
|
+
}, F = {
|
|
114
|
+
class: "tw-h-full tw-w-full",
|
|
115
|
+
style: { "object-fit": "inherit" }
|
|
116
|
+
}, z = ["media", "width", "height", "srcset"], j = ["media", "width", "height", "srcset"], N = ["src", "alt", "loading"], O = ["srcset"], B = ["srcset", "src", "width", "height", "alt", "loading"], C = {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "tw-text-h4 tw-mt-2"
|
|
119
|
+
};
|
|
120
|
+
function M(e, u, t, i, x, m) {
|
|
121
|
+
return (t.width || t.height) && t.contentfulSrc ? (h(), c("figure", U, [
|
|
122
|
+
r("picture", F, [
|
|
123
|
+
t.sourceSizes.length > 0 ? (h(), c(g, { key: 0 }, [
|
|
124
|
+
(h(!0), c(g, null, y(t.sourceSizes, (l, d) => (h(), c("source", {
|
|
125
|
+
key: "webp-image" + d,
|
|
126
|
+
media: "(" + l.media + ")",
|
|
127
|
+
type: "image/webp",
|
|
128
|
+
width: l.width ? l.width : null,
|
|
129
|
+
height: l.height ? l.height : null,
|
|
130
|
+
srcset: `
|
|
131
|
+
${i.buildUrl(l, 2)}&fit=${t.fit}&f=${t.focus}&fm=webp&q=${i.setQuality(l.width, "2x")} 2x,
|
|
132
|
+
${i.buildUrl(l)}&fit=${t.fit}&f=${t.focus}&fm=webp&q=${i.setQuality(l.width, "1x")} 1x`
|
|
133
|
+
}, null, 8, z))), 128)),
|
|
134
|
+
(h(!0), c(g, null, y(t.sourceSizes, (l, d) => (h(), c("source", {
|
|
135
|
+
key: "fallback-image" + d,
|
|
136
|
+
media: "(" + l.media + ")",
|
|
137
|
+
width: l.width ? l.width : null,
|
|
138
|
+
height: l.height ? l.height : null,
|
|
139
|
+
srcset: `
|
|
140
|
+
${i.buildUrl(l, 2)}&fit=${t.fit}&f=${t.focus}&fm=${t.fallbackFormat}&q=${i.setQuality(l.width, "2x")} 2x,
|
|
141
|
+
${i.buildUrl(l)}&fit=${t.fit}&f=${t.focus}&fm=${t.fallbackFormat}&q=${i.setQuality(l.width, "1x")} 1x`
|
|
142
|
+
}, null, 8, j))), 128)),
|
|
143
|
+
r("img", {
|
|
144
|
+
class: "tw-max-w-full tw-max-h-full",
|
|
145
|
+
style: { width: "inherit", height: "inherit", "object-fit": "inherit" },
|
|
146
|
+
src: `${i.buildUrl(t.width, t.height)}&fit=${t.fit}&f=${t.focus}&fm=${t.fallbackFormat}&q=${i.setQuality(t.width, "1x")}`,
|
|
147
|
+
alt: i.caption || t.alt,
|
|
148
|
+
loading: t.loading
|
|
149
|
+
}, null, 8, N)
|
|
150
|
+
], 64)) : b("", !0),
|
|
151
|
+
t.sourceSizes.length === 0 ? (h(), c(g, { key: 1 }, [
|
|
152
|
+
r("source", {
|
|
153
|
+
type: "image/webp",
|
|
154
|
+
srcset: `
|
|
155
|
+
${i.buildUrl(null, 2)}&fit=${t.fit}&f=${t.focus}&fm=webp&q=${i.setQuality(t.width, "2x")} 2x,
|
|
156
|
+
${i.buildUrl()}&fit=${t.fit}&f=${t.focus}&fm=webp&q=${i.setQuality(t.width, "1x")} 1x`
|
|
157
|
+
}, null, 8, O),
|
|
158
|
+
r("img", {
|
|
159
|
+
class: "tw-max-w-full tw-max-h-full",
|
|
160
|
+
style: { width: "inherit", height: "inherit", "object-fit": "inherit" },
|
|
161
|
+
srcset: `
|
|
162
|
+
${i.buildUrl(null, 2)}&fit=${t.fit}&f=${t.focus}&fm=${t.fallbackFormat}&q=${i.setQuality(t.width, "2x")} 2x,
|
|
163
|
+
${i.buildUrl()}&fit=${t.fit}&f=${t.focus}&fm=${t.fallbackFormat}&q=${i.setQuality(t.width, "1x")} 1x`,
|
|
164
|
+
src: `${i.buildUrl()}&fit=${t.fit}&f=${t.focus}&fm=${t.fallbackFormat}&q=${i.setQuality(t.width, "1x")}`,
|
|
165
|
+
width: t.width ? t.width : null,
|
|
166
|
+
height: t.height ? t.height : null,
|
|
167
|
+
alt: i.caption || t.alt,
|
|
168
|
+
loading: t.loading
|
|
169
|
+
}, null, 8, B)
|
|
170
|
+
], 64)) : b("", !0)
|
|
171
|
+
]),
|
|
172
|
+
i.caption ? (h(), c("figcaption", C, [
|
|
173
|
+
u[0] || (u[0] = r("span", {
|
|
174
|
+
class: "tw-inline-flex tw-align-text-top",
|
|
175
|
+
"aria-hidden": "true",
|
|
176
|
+
role: "img"
|
|
177
|
+
}, [
|
|
178
|
+
r("svg", {
|
|
179
|
+
class: "tw-h-2 tw-w-2.5",
|
|
180
|
+
viewBox: "0 0 20 20",
|
|
181
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
182
|
+
}, [
|
|
183
|
+
r("path", {
|
|
184
|
+
d: "m3.12088 18.7441c12.86212 0 15.87912-14.52631 15.87912-16.99996h-1.1209c-12.85272 0-15.8791 14.51376-15.8791 16.99996z",
|
|
185
|
+
fill: "currentColor"
|
|
186
|
+
})
|
|
187
|
+
])
|
|
188
|
+
], -1)),
|
|
189
|
+
S(" " + v(i.caption), 1)
|
|
190
|
+
])) : b("", !0)
|
|
191
|
+
])) : b("", !0);
|
|
192
|
+
}
|
|
193
|
+
const E = /* @__PURE__ */ q(Q, [["render", M]]);
|
|
194
|
+
export {
|
|
195
|
+
E as default
|
|
196
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { toRefs as u, ref as l, onMounted as c, onBeforeUnmount as f, openBlock as m, createElementBlock as v, toDisplayString as s, createCommentVNode as d } from "vue";
|
|
2
|
+
import { isBefore as p, intervalToDuration as _, differenceInHours as L } from "date-fns";
|
|
3
|
+
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const D = {
|
|
5
|
+
props: {
|
|
6
|
+
deadline: {
|
|
7
|
+
type: Date,
|
|
8
|
+
required: !0
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(i) {
|
|
12
|
+
const { deadline: n } = u(i), t = l(null), e = l(null), o = l(null), r = () => {
|
|
13
|
+
const a = /* @__PURE__ */ new Date();
|
|
14
|
+
p(a, n.value) ? (e.value = _({ start: a, end: n.value }), o.value = L(n.value, a)) : (e.value = { minutes: 0, seconds: 0 }, o.value = 0);
|
|
15
|
+
};
|
|
16
|
+
return c(() => {
|
|
17
|
+
r(), t.value = setInterval(() => {
|
|
18
|
+
r(), e.value || clearInterval(t.value);
|
|
19
|
+
}, 1e3);
|
|
20
|
+
}), f(() => {
|
|
21
|
+
t.value && clearInterval(t.value);
|
|
22
|
+
}), { timeLeft: e, remainingHours: o };
|
|
23
|
+
}
|
|
24
|
+
}, I = { key: 0 };
|
|
25
|
+
function g(i, n, t, e, o, r) {
|
|
26
|
+
return e.timeLeft ? (m(), v("span", I, s(e.remainingHours) + "h " + s(e.timeLeft.minutes) + "m " + s(e.timeLeft.seconds) + "s ", 1)) : d("", !0);
|
|
27
|
+
}
|
|
28
|
+
const x = /* @__PURE__ */ B(D, [["render", g]]);
|
|
29
|
+
export {
|
|
30
|
+
x as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { toRefs as s, openBlock as u, createBlock as i, Transition as f, withCtx as d, renderSlot as v } from "vue";
|
|
2
|
+
import { expand as c, collapse as y } from "../utils/expander.js";
|
|
3
|
+
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = {
|
|
5
|
+
props: {
|
|
6
|
+
property: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "height"
|
|
9
|
+
},
|
|
10
|
+
delay: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 500
|
|
13
|
+
},
|
|
14
|
+
easing: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "ease"
|
|
17
|
+
},
|
|
18
|
+
skipEnter: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
skipLeave: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(r) {
|
|
28
|
+
const {
|
|
29
|
+
property: a,
|
|
30
|
+
delay: n,
|
|
31
|
+
easing: e,
|
|
32
|
+
skipEnter: l,
|
|
33
|
+
skipLeave: p
|
|
34
|
+
} = s(r);
|
|
35
|
+
return {
|
|
36
|
+
enter: (o, t) => l.value ? t() : (c(o, {
|
|
37
|
+
property: a.value,
|
|
38
|
+
delay: n.value,
|
|
39
|
+
easing: e.value,
|
|
40
|
+
done: t
|
|
41
|
+
}), !0),
|
|
42
|
+
leave: (o, t) => p.value ? t() : (y(o, {
|
|
43
|
+
property: a.value,
|
|
44
|
+
delay: n.value,
|
|
45
|
+
easing: e.value,
|
|
46
|
+
done: t
|
|
47
|
+
}), !0)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function g(r, a, n, e, l, p) {
|
|
52
|
+
return u(), i(f, {
|
|
53
|
+
onEnter: e.enter,
|
|
54
|
+
onLeave: e.leave
|
|
55
|
+
}, {
|
|
56
|
+
default: d(() => [
|
|
57
|
+
v(r.$slots, "default")
|
|
58
|
+
]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 8, ["onEnter", "onLeave"]);
|
|
61
|
+
}
|
|
62
|
+
const L = /* @__PURE__ */ m(_, [["render", g]]);
|
|
63
|
+
export {
|
|
64
|
+
L as default
|
|
65
|
+
};
|