@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
|
@@ -1,498 +0,0 @@
|
|
|
1
|
-
import resolveConfig from 'tailwindcss/resolveConfig'; // eslint-disable-line import/no-extraneous-dependencies
|
|
2
|
-
import tailwindConfig from '@kiva/kv-tokens/configs/tailwind.config.cjs';
|
|
3
|
-
import { textStyles } from '@kiva/kv-tokens/configs/kivaTypography.cjs';
|
|
4
|
-
import KvGrid from '../KvGrid.vue';
|
|
5
|
-
import KvPageContainer from '../KvPageContainer.vue';
|
|
6
|
-
import KvTab from '../KvTab.vue';
|
|
7
|
-
import KvTabs from '../KvTabs.vue';
|
|
8
|
-
import KvTabPanel from '../KvTabPanel.vue';
|
|
9
|
-
import KvToast from '../KvToast.vue';
|
|
10
|
-
|
|
11
|
-
const { headerNumberCase, kebabCase, removeObjectProperty } = require('../../utils/themeUtils.cjs');
|
|
12
|
-
|
|
13
|
-
const config = resolveConfig(tailwindConfig);
|
|
14
|
-
const { theme } = config;
|
|
15
|
-
function buildValuesFromThemeObj(initialObj) {
|
|
16
|
-
const arr = [];
|
|
17
|
-
const iterate = (obj, prefix = '') => {
|
|
18
|
-
Object.keys(obj).forEach((key) => {
|
|
19
|
-
if (typeof obj[key] === 'object') {
|
|
20
|
-
iterate(obj[key], key);
|
|
21
|
-
} else {
|
|
22
|
-
const niceKey = prefix ? `${prefix}-${key}` : key;
|
|
23
|
-
arr.push([niceKey, obj[key]]);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
iterate(initialObj);
|
|
28
|
-
return arr;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
title: 'Base Styling/Primitives',
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const Primitives = (templateArgs, { argTypes }) => ({
|
|
36
|
-
props: Object.keys(argTypes),
|
|
37
|
-
components: {
|
|
38
|
-
KvGrid,
|
|
39
|
-
KvPageContainer,
|
|
40
|
-
KvTab,
|
|
41
|
-
KvTabs,
|
|
42
|
-
KvTabPanel,
|
|
43
|
-
KvToast,
|
|
44
|
-
},
|
|
45
|
-
setup() { return { theme, args: { ...templateArgs } }; },
|
|
46
|
-
template: `
|
|
47
|
-
<kv-page-container>
|
|
48
|
-
<h1 class="tw-mt-4">Primitives</h1>
|
|
49
|
-
<section class="tw-py-8">
|
|
50
|
-
<h2 class="tw-mb-4">Background Colors</h2>
|
|
51
|
-
<kv-tabs>
|
|
52
|
-
<template #tabNav>
|
|
53
|
-
<kv-tab for-panel="bg_themable">Themable</kv-tab>
|
|
54
|
-
<kv-tab for-panel="bg_static">Static</kv-tab>
|
|
55
|
-
</template>
|
|
56
|
-
<template #tabPanels>
|
|
57
|
-
<kv-tab-panel id="bg_themable">
|
|
58
|
-
<kv-grid
|
|
59
|
-
as="ul"
|
|
60
|
-
class="tw-grid-cols-3 md:tw-grid-cols-4 lg:tw-grid-cols-5"
|
|
61
|
-
>
|
|
62
|
-
<template v-for="color in backgroundColor" :key="buildClassName('bg', color[0])">
|
|
63
|
-
<li
|
|
64
|
-
v-if="!isStaticColor(color)"
|
|
65
|
-
>
|
|
66
|
-
<button
|
|
67
|
-
class="tw-flex tw-flex-col tw-h-full tw-w-full tw-text-left tw-border tw-rounded tw-p-1.5 tw-border-tertiary tw-font-book hover:tw-text-action-highlight"
|
|
68
|
-
@click="copy(buildClassName('tw-bg', color[0]))"
|
|
69
|
-
>
|
|
70
|
-
<div
|
|
71
|
-
class="tw-w-full tw-h-0 tw-block tw-mb-1"
|
|
72
|
-
style="padding-bottom: 100%;"
|
|
73
|
-
:class="buildClassName('tw-bg', color[0])"
|
|
74
|
-
>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="tw-w-full">
|
|
77
|
-
.{{buildClassName('tw-bg', color[0])}}
|
|
78
|
-
<br><small class="tw-text-tertiary">var({{buildClassName('--bg', color[0])}})</small>
|
|
79
|
-
</div>
|
|
80
|
-
</button>
|
|
81
|
-
</li>
|
|
82
|
-
</template>
|
|
83
|
-
</kv-grid>
|
|
84
|
-
</kv-tab-panel>
|
|
85
|
-
<kv-tab-panel id="bg_static">
|
|
86
|
-
<kv-grid
|
|
87
|
-
as="ul"
|
|
88
|
-
class="tw-grid-cols-3 md:tw-grid-cols-4 lg:tw-grid-cols-5"
|
|
89
|
-
>
|
|
90
|
-
<template v-for="color in backgroundColor" :key="buildClassName('bg', color[0])">
|
|
91
|
-
<li
|
|
92
|
-
v-if="isStaticColor(color)"
|
|
93
|
-
>
|
|
94
|
-
<button
|
|
95
|
-
class="tw-flex tw-flex-col tw-h-full tw-w-full tw-text-left tw-border tw-rounded tw-p-1.5 tw-border-tertiary tw-font-book hover:tw-text-action-highlight"
|
|
96
|
-
@click="copy(buildClassName('tw-bg', color[0]))"
|
|
97
|
-
>
|
|
98
|
-
<div
|
|
99
|
-
class="tw-w-full tw-h-0 tw-block tw-mb-1"
|
|
100
|
-
style="padding-bottom: 100%;"
|
|
101
|
-
:class="buildClassName('tw-bg', color[0])"
|
|
102
|
-
>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="tw-w-full">
|
|
105
|
-
.{{buildClassName('tw-bg', color[0])}}
|
|
106
|
-
<br><small class="tw-text-tertiary">{{color[1]}}</small>
|
|
107
|
-
</div>
|
|
108
|
-
</button>
|
|
109
|
-
</li>
|
|
110
|
-
</template>
|
|
111
|
-
</kv-grid>
|
|
112
|
-
</kv-tab-panel>
|
|
113
|
-
</template>
|
|
114
|
-
</kv-tabs>
|
|
115
|
-
</section>
|
|
116
|
-
<hr>
|
|
117
|
-
<section class="tw-py-8">
|
|
118
|
-
<h2 class="tw-mb-4">Text Colors</h2>
|
|
119
|
-
<kv-tabs>
|
|
120
|
-
<template #tabNav>
|
|
121
|
-
<kv-tab for-panel="text_themable">Themable</kv-tab>
|
|
122
|
-
<kv-tab for-panel="text_static">Static</kv-tab>
|
|
123
|
-
</template>
|
|
124
|
-
<template #tabPanels>
|
|
125
|
-
<kv-tab-panel id="text_themable">
|
|
126
|
-
<table>
|
|
127
|
-
<tbody>
|
|
128
|
-
<template v-for="color in textColor" :key="buildClassName('text-color', color[0])">
|
|
129
|
-
<tr
|
|
130
|
-
v-if="!isStaticColor(color)"
|
|
131
|
-
>
|
|
132
|
-
<td class="tw-py-1 tw-min-w-[300px]">
|
|
133
|
-
<button
|
|
134
|
-
class="hover:tw-text-action-highlight"
|
|
135
|
-
:class="buildClassName('tw-text', color[0])"
|
|
136
|
-
@click="copy(buildClassName('tw-text', color[0]))"
|
|
137
|
-
>.{{buildClassName('tw-text', color[0])}}</button>
|
|
138
|
-
</td>
|
|
139
|
-
<td>
|
|
140
|
-
<small class="tw-text-tertiary">var({{buildClassName('--text', color[0])}})</small>
|
|
141
|
-
</td>
|
|
142
|
-
</tr>
|
|
143
|
-
</template>
|
|
144
|
-
</tbody>
|
|
145
|
-
</table>
|
|
146
|
-
</kv-tab-panel>
|
|
147
|
-
<kv-tab-panel id="text_static">
|
|
148
|
-
<table>
|
|
149
|
-
<tbody>
|
|
150
|
-
<template v-for="color in textColor" :key="buildClassName('text-color', color[0])">
|
|
151
|
-
<tr
|
|
152
|
-
v-if="isStaticColor(color)"
|
|
153
|
-
>
|
|
154
|
-
<td class="tw-py-1 tw-min-w-[300px]">
|
|
155
|
-
<button
|
|
156
|
-
class="hover:tw-text-action-highlight"
|
|
157
|
-
:class="buildClassName('tw-text', color[0])"
|
|
158
|
-
@click="copy(buildClassName('tw-text', color[0]))"
|
|
159
|
-
>.{{buildClassName('tw-text', color[0])}}</button>
|
|
160
|
-
</td>
|
|
161
|
-
<td>
|
|
162
|
-
<small class="tw-text-tertiary">var({{buildClassName('--text', color[0])}})</small>
|
|
163
|
-
</td>
|
|
164
|
-
</tr>
|
|
165
|
-
</template>
|
|
166
|
-
</tbody>
|
|
167
|
-
</table>
|
|
168
|
-
</kv-tab-panel>
|
|
169
|
-
</template>
|
|
170
|
-
</kv-tabs>
|
|
171
|
-
</section>
|
|
172
|
-
<hr>
|
|
173
|
-
<section class="tw-py-8">
|
|
174
|
-
<h2 class="tw-mb-4">Border/Ring Colors</h2>
|
|
175
|
-
<kv-tabs>
|
|
176
|
-
<template #tabNav>
|
|
177
|
-
<kv-tab for-panel="border_themable">Themable</kv-tab>
|
|
178
|
-
<kv-tab for-panel="border_static">Static</kv-tab>
|
|
179
|
-
</template>
|
|
180
|
-
<template #tabPanels>
|
|
181
|
-
<kv-tab-panel id="border_themable">
|
|
182
|
-
<table>
|
|
183
|
-
<tbody>
|
|
184
|
-
<template v-for="color in borderColor" :key="buildClassName('border-color', color[0])">
|
|
185
|
-
<tr
|
|
186
|
-
v-if="!isStaticColor(color)"
|
|
187
|
-
>
|
|
188
|
-
<td class="tw-py-2 tw-min-w-[300px]">
|
|
189
|
-
<button
|
|
190
|
-
class="tw-ring-4 hover:tw-text-action-highlight"
|
|
191
|
-
:class="buildClassName('tw-ring', color[0])"
|
|
192
|
-
@click="copy(buildClassName('tw-border', color[0]))"
|
|
193
|
-
>.{{buildClassName('tw-border', color[0])}}</button>
|
|
194
|
-
</td>
|
|
195
|
-
<td>
|
|
196
|
-
<small class="tw-text-tertiary">var({{buildClassName('--border', color[0])}})</small>
|
|
197
|
-
</td>
|
|
198
|
-
</tr>
|
|
199
|
-
</template>
|
|
200
|
-
</tbody>
|
|
201
|
-
</table>
|
|
202
|
-
</kv-tab-panel>
|
|
203
|
-
<kv-tab-panel id="border_static">
|
|
204
|
-
<table>
|
|
205
|
-
<tbody>
|
|
206
|
-
<template v-for="color in borderColor" :key="buildClassName('border-color', color[0])">
|
|
207
|
-
<tr
|
|
208
|
-
v-if="isStaticColor(color)"
|
|
209
|
-
>
|
|
210
|
-
<td class="tw-py-2 tw-min-w-[300px]">
|
|
211
|
-
<button
|
|
212
|
-
class="tw-ring-4 hover:tw-text-action-highlight"
|
|
213
|
-
:class="buildClassName('tw-ring', color[0])"
|
|
214
|
-
@click="copy(buildClassName('tw-border', color[0]))"
|
|
215
|
-
>.{{buildClassName('tw-border', color[0])}}</button>
|
|
216
|
-
</td>
|
|
217
|
-
<td>
|
|
218
|
-
<small class="tw-text-tertiary">var({{buildClassName('--border', color[0])}})</small>
|
|
219
|
-
</td>
|
|
220
|
-
</tr>
|
|
221
|
-
</template>
|
|
222
|
-
</tbody>
|
|
223
|
-
</table>
|
|
224
|
-
</kv-tab-panel>
|
|
225
|
-
</template>
|
|
226
|
-
</kv-tabs>
|
|
227
|
-
</section>
|
|
228
|
-
<hr>
|
|
229
|
-
<section class="tw-py-8">
|
|
230
|
-
<h2 class="tw-mb-4">Text Styles</h2>
|
|
231
|
-
<ul class="tw-flex tw-flex-wrap tw-flex-col tw-gap-4">
|
|
232
|
-
<li
|
|
233
|
-
v-for="typeStyle in kivaTypography"
|
|
234
|
-
:key="buildClassName('text', typeStyle)"
|
|
235
|
-
class="tw-overflow-x-auto tw-w-full"
|
|
236
|
-
>
|
|
237
|
-
<button
|
|
238
|
-
class="tw-text-left tw-font-book hover:tw-text-action-highlight"
|
|
239
|
-
@click="copy(buildClassName('tw-text', typeStyle))"
|
|
240
|
-
>
|
|
241
|
-
<p
|
|
242
|
-
class="tw-mb-1"
|
|
243
|
-
:class="buildClassName('tw-text', typeStyle)"
|
|
244
|
-
style="width: 12em;"
|
|
245
|
-
>
|
|
246
|
-
The quick brown fox jumps over the lazy dog
|
|
247
|
-
</p>
|
|
248
|
-
<span>.{{buildClassName('tw-text', typeStyle)}}</span>
|
|
249
|
-
</button>
|
|
250
|
-
</li>
|
|
251
|
-
</ul>
|
|
252
|
-
</section>
|
|
253
|
-
<section class="tw-py-8">
|
|
254
|
-
<h2 class="tw-mb-4">Text Styles <i>(Italics)</i></h2>
|
|
255
|
-
<ul class="tw-flex tw-flex-wrap tw-flex-col tw-gap-4">
|
|
256
|
-
<li
|
|
257
|
-
v-for="typeStyle in kivaTypography"
|
|
258
|
-
:key="buildClassName('text', typeStyle)"
|
|
259
|
-
class="tw-overflow-x-auto tw-w-full"
|
|
260
|
-
>
|
|
261
|
-
<button
|
|
262
|
-
class="tw-text-left tw-font-book hover:tw-text-action-highlight"
|
|
263
|
-
@click="copy(buildClassName('tw-text', typeStyle))"
|
|
264
|
-
>
|
|
265
|
-
<p
|
|
266
|
-
class="tw-mb-1 tw-italic"
|
|
267
|
-
:class="buildClassName('tw-text', typeStyle)"
|
|
268
|
-
style="width: 12em;"
|
|
269
|
-
>
|
|
270
|
-
The quick brown fox jumps over the lazy dog
|
|
271
|
-
</p>
|
|
272
|
-
<span>.{{buildClassName('tw-text', typeStyle)}} .tw-italic</span>
|
|
273
|
-
</button>
|
|
274
|
-
</li>
|
|
275
|
-
</ul>
|
|
276
|
-
</section>
|
|
277
|
-
<hr>
|
|
278
|
-
<section class="tw-py-8">
|
|
279
|
-
<h2 class="tw-mb-4">Font Weights</h2>
|
|
280
|
-
<ul class="tw-flex tw-flex-wrap tw-flex-col tw-gap-4">
|
|
281
|
-
<li
|
|
282
|
-
v-for="fontWeight in fontWeights"
|
|
283
|
-
:key="buildClassName('tw-font', fontWeight[0])"
|
|
284
|
-
>
|
|
285
|
-
<button
|
|
286
|
-
class="tw-text-left tw-font-book hover:tw-text-action-highlight"
|
|
287
|
-
@click="copy(buildClassName('tw-font', fontWeight[0]))"
|
|
288
|
-
>
|
|
289
|
-
<p :class="buildClassName('tw-font', fontWeight[0])">
|
|
290
|
-
The quick brown fox jumps over the lazy dog
|
|
291
|
-
</p>
|
|
292
|
-
<span>.{{buildClassName('tw-font', fontWeight[0])}}</span>
|
|
293
|
-
</button>
|
|
294
|
-
</li>
|
|
295
|
-
</ul>
|
|
296
|
-
</section>
|
|
297
|
-
<hr>
|
|
298
|
-
<section class="tw-py-8">
|
|
299
|
-
<h2 class="tw-mb-4">Font Weights (Serif)</h2>
|
|
300
|
-
<ul class="tw-flex tw-flex-wrap tw-flex-col tw-gap-4">
|
|
301
|
-
<li
|
|
302
|
-
v-for="fontWeight in fontWeights"
|
|
303
|
-
:key="buildClassName('tw-font', fontWeight[0])"
|
|
304
|
-
>
|
|
305
|
-
<button
|
|
306
|
-
class="tw-text-left tw-font-book hover:tw-text-action-highlight"
|
|
307
|
-
@click="copy(buildClassName('tw-font', fontWeight[0]))"
|
|
308
|
-
>
|
|
309
|
-
<p :class="[buildClassName('tw-font', fontWeight[0]), 'tw-font-serif']">
|
|
310
|
-
The quick brown fox jumps over the lazy dog
|
|
311
|
-
</p>
|
|
312
|
-
<span>.{{buildClassName('tw-font', fontWeight[0])}}</span>
|
|
313
|
-
</button>
|
|
314
|
-
</li>
|
|
315
|
-
</ul>
|
|
316
|
-
</section>
|
|
317
|
-
<hr>
|
|
318
|
-
<section class="tw-py-8">
|
|
319
|
-
<h2 class="tw-mb-4">Radii</h2>
|
|
320
|
-
|
|
321
|
-
<kv-grid
|
|
322
|
-
as="ul"
|
|
323
|
-
class="tw-grid-cols-3 md:tw-grid-cols-4 lg:tw-grid-cols-5"
|
|
324
|
-
>
|
|
325
|
-
<li
|
|
326
|
-
v-for="radius in radii"
|
|
327
|
-
:key="buildClassName('tw-rounded', radius[0])"
|
|
328
|
-
>
|
|
329
|
-
<button
|
|
330
|
-
class="tw-flex tw-flex-col tw-text-left tw-border tw-rounded tw-p-1.5 tw-w-full tw-h-full tw-border-tertiary tw-font-book hover:tw-text-action-highlight"
|
|
331
|
-
@click="copy(buildClassName('tw-rounded', radius[0]))"
|
|
332
|
-
>
|
|
333
|
-
<div
|
|
334
|
-
class="tw-bg-tertiary tw-w-full tw-h-0 tw-mb-1"
|
|
335
|
-
style="padding-bottom: 100%;"
|
|
336
|
-
:class="buildClassName('tw-rounded', radius[0])"
|
|
337
|
-
></div>
|
|
338
|
-
<div>
|
|
339
|
-
.{{buildClassName('tw-rounded', radius[0])}}
|
|
340
|
-
<br><small class="tw-text-tertiary">({{remToPx(radius[1])}}px)</small>
|
|
341
|
-
</div>
|
|
342
|
-
</button>
|
|
343
|
-
</li>
|
|
344
|
-
</kv-grid>
|
|
345
|
-
|
|
346
|
-
</section>
|
|
347
|
-
<hr>
|
|
348
|
-
<section class="tw-py-8">
|
|
349
|
-
<h2 class="tw-mb-4">Opacity</h2>
|
|
350
|
-
<kv-grid as="ul" class="tw-grid-cols-3 md:tw-grid-cols-4 lg:tw-grid-cols-5">
|
|
351
|
-
<li
|
|
352
|
-
v-for="opacityItem in opacity"
|
|
353
|
-
:key="buildClassName('tw-opacity', opacityItem[0])"
|
|
354
|
-
>
|
|
355
|
-
<button
|
|
356
|
-
class="tw-flex tw-flex-col tw-text-left tw-border tw-rounded tw-p-1.5 tw-w-full tw-h-full tw-border-tertiary tw-font-book hover:tw-text-action-highlight"
|
|
357
|
-
@click="copy(buildClassName('tw-opacity', opacityItem[0]))"
|
|
358
|
-
>
|
|
359
|
-
<div
|
|
360
|
-
class="tw-bg-tertiary tw-w-full tw-h-0 tw-mb-1"
|
|
361
|
-
:class="buildClassName('tw-opacity', opacityItem[0])"
|
|
362
|
-
style="background-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet, red); padding-bottom: 100%;"
|
|
363
|
-
></div>
|
|
364
|
-
<div>
|
|
365
|
-
.{{buildClassName('tw-opacity', opacityItem[0])}}<br>
|
|
366
|
-
<small class="tw-text-tertiary">({{opacityItem[1]}})</small>
|
|
367
|
-
</div>
|
|
368
|
-
</button>
|
|
369
|
-
</li>
|
|
370
|
-
</kv-grid>
|
|
371
|
-
</section>
|
|
372
|
-
<hr>
|
|
373
|
-
<section class="tw-py-8">
|
|
374
|
-
<h2 class="tw-mb-4">Space</h2>
|
|
375
|
-
<ul class="tw-flex tw-flex-wrap tw-flex-col tw-gap-4">
|
|
376
|
-
<li
|
|
377
|
-
v-for="spaceItem in space"
|
|
378
|
-
class="block"
|
|
379
|
-
:key="buildClassName('tw-w', spaceItem[0])"
|
|
380
|
-
>
|
|
381
|
-
<button
|
|
382
|
-
class="tw-text-left tw-font-book hover:tw-text-action-highlight"
|
|
383
|
-
@click="copy(buildClassName('tw-w', spaceItem[0]))"
|
|
384
|
-
>
|
|
385
|
-
<div
|
|
386
|
-
class="tw-bg-tertiary tw-h-3 tw-inline-block"
|
|
387
|
-
:class="buildClassName('tw-w', spaceItem[0])"
|
|
388
|
-
></div>
|
|
389
|
-
<div>
|
|
390
|
-
.{{buildClassName('tw-w', spaceItem[0])}}
|
|
391
|
-
<small class="tw-text-tertiary">({{remToPx(spaceItem[1])}}px)</small>
|
|
392
|
-
</div>
|
|
393
|
-
</button>
|
|
394
|
-
</li>
|
|
395
|
-
</ul>
|
|
396
|
-
</section>
|
|
397
|
-
<hr>
|
|
398
|
-
<section class="tw-py-8">
|
|
399
|
-
<h2 class="tw-mb-4">Breakpoints</h2>
|
|
400
|
-
<ul class="tw-flex tw-flex-wrap tw-flex-col tw-gap-4 tw-overflow-x-auto">
|
|
401
|
-
<li
|
|
402
|
-
v-for="breakpoint in breakpoints"
|
|
403
|
-
:key="buildClassName('tw-breakpoint', breakpoint[0])"
|
|
404
|
-
>
|
|
405
|
-
<div
|
|
406
|
-
class="tw-w-8 tw-h-4 tw-bg-tertiary tw-mb-1"
|
|
407
|
-
:style="{ 'width': breakpoint[1] }"
|
|
408
|
-
></div>
|
|
409
|
-
<span>
|
|
410
|
-
{{breakpoint[0]}}
|
|
411
|
-
<small class="tw-text-tertiary">({{remToPx(breakpoint[1])}}px)</small>
|
|
412
|
-
</span>
|
|
413
|
-
</li>
|
|
414
|
-
</ul>
|
|
415
|
-
</section>
|
|
416
|
-
<hr>
|
|
417
|
-
<section class="tw-py-8">
|
|
418
|
-
<h2 class="tw-mb-4">Z-Indices</h2>
|
|
419
|
-
<ul class="tw-relative">
|
|
420
|
-
<li
|
|
421
|
-
v-for="(zIndex, index) in zIndices"
|
|
422
|
-
:key="buildClassName('tw-z', zIndex[0])"
|
|
423
|
-
class="tw-absolute"
|
|
424
|
-
:class="buildClassName('tw-z', zIndex[0])"
|
|
425
|
-
:style="{left: 'calc(' + index/zIndices.length * 100 + '% - ' + (index/zIndices.length * 250) + 'px)', top: index * 50 + 'px'}"
|
|
426
|
-
>
|
|
427
|
-
<button
|
|
428
|
-
class="tw-flex tw-text-left tw-content-start tw-align-top tw-p-2 tw-font-book hover:tw-text-action-highlight tw-h-12 tw-bg-tertiary tw-outline-2 tw-outline-dotted tw-outline-offset-2"
|
|
429
|
-
style="width: 250px;"
|
|
430
|
-
@click="copy(buildClassName('tw-z', zIndex[0]))"
|
|
431
|
-
>
|
|
432
|
-
<span>
|
|
433
|
-
{{buildClassName('tw-z', zIndex[0])}}
|
|
434
|
-
<small class="tw-text-tertiary">({{zIndex[1]}})</small>
|
|
435
|
-
</span>
|
|
436
|
-
</button>
|
|
437
|
-
</li>
|
|
438
|
-
</ul>
|
|
439
|
-
</section>
|
|
440
|
-
<!-- Toast -->
|
|
441
|
-
<div class="tw-fixed tw-inset-0 tw-z-toast tw-pointer-events-none">
|
|
442
|
-
<div class="tw-fixed tw-left-0 tw-right-0 tw-top-2 tw-pointer-events-auto">
|
|
443
|
-
<kv-toast ref="toastRef" />
|
|
444
|
-
</div>
|
|
445
|
-
</div>
|
|
446
|
-
</kv-page-container>
|
|
447
|
-
`,
|
|
448
|
-
data() {
|
|
449
|
-
return {
|
|
450
|
-
backgroundColor: buildValuesFromThemeObj(theme.backgroundColor),
|
|
451
|
-
textColor: buildValuesFromThemeObj(theme.textColor),
|
|
452
|
-
borderColor: buildValuesFromThemeObj(theme.borderColor),
|
|
453
|
-
space: buildValuesFromThemeObj(theme.spacing).sort((a, b) => a[0] - b[0]),
|
|
454
|
-
kivaTypography: Object.keys(textStyles).map((key) => headerNumberCase(kebabCase(key)).replace('text-', '')),
|
|
455
|
-
fontWeights: buildValuesFromThemeObj(theme.fontWeight),
|
|
456
|
-
breakpoints: buildValuesFromThemeObj(removeObjectProperty(theme.screens, 'print')),
|
|
457
|
-
radii: buildValuesFromThemeObj(theme.borderRadius),
|
|
458
|
-
opacity: buildValuesFromThemeObj(theme.opacity),
|
|
459
|
-
zIndices: buildValuesFromThemeObj(theme.zIndex).sort((a, b) => a[1] - b[1]),
|
|
460
|
-
isToastVisible: false,
|
|
461
|
-
toastMessage: '',
|
|
462
|
-
};
|
|
463
|
-
},
|
|
464
|
-
methods: {
|
|
465
|
-
async copy(val) {
|
|
466
|
-
await navigator.clipboard.writeText(val);
|
|
467
|
-
this.showToast(`copied: ${val}`);
|
|
468
|
-
},
|
|
469
|
-
showToast(message) {
|
|
470
|
-
this.$refs.toastRef.show(message);
|
|
471
|
-
},
|
|
472
|
-
remToPx(rem) {
|
|
473
|
-
return parseFloat(rem) * 16;
|
|
474
|
-
},
|
|
475
|
-
buildClassName(prefix, value) {
|
|
476
|
-
let name = `${prefix}-${value}`;
|
|
477
|
-
name = name.replace('-DEFAULT', '');
|
|
478
|
-
return name;
|
|
479
|
-
},
|
|
480
|
-
isStaticColor(colorName) {
|
|
481
|
-
const staticColors = [
|
|
482
|
-
'transparent',
|
|
483
|
-
'current',
|
|
484
|
-
'brand',
|
|
485
|
-
'black',
|
|
486
|
-
'white',
|
|
487
|
-
'eco-green',
|
|
488
|
-
'marigold',
|
|
489
|
-
'desert-rose',
|
|
490
|
-
'stone',
|
|
491
|
-
'gray',
|
|
492
|
-
'social',
|
|
493
|
-
];
|
|
494
|
-
const isStatic = staticColors.some((staticColor) => colorName[0].includes(staticColor));
|
|
495
|
-
return isStatic;
|
|
496
|
-
},
|
|
497
|
-
},
|
|
498
|
-
});
|