@tabler/core 1.5.1 → 1.6.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/README.md +10 -1
- package/dist/css/tabler-flags.css +9 -1
- package/dist/css/tabler-flags.css.map +1 -1
- package/dist/css/tabler-flags.min.css +2 -2
- package/dist/css/tabler-flags.min.css.map +1 -1
- package/dist/css/tabler-flags.rtl.css +9 -1
- package/dist/css/tabler-flags.rtl.css.map +1 -1
- package/dist/css/tabler-flags.rtl.min.css +2 -2
- package/dist/css/tabler-flags.rtl.min.css.map +1 -1
- package/dist/css/tabler-marketing.css +78 -38
- package/dist/css/tabler-marketing.css.map +1 -1
- package/dist/css/tabler-marketing.min.css +2 -2
- package/dist/css/tabler-marketing.min.css.map +1 -1
- package/dist/css/tabler-marketing.rtl.css +78 -38
- package/dist/css/tabler-marketing.rtl.css.map +1 -1
- package/dist/css/tabler-marketing.rtl.min.css +2 -2
- package/dist/css/tabler-marketing.rtl.min.css.map +1 -1
- package/dist/css/tabler-payments.css +5 -1
- package/dist/css/tabler-payments.css.map +1 -1
- package/dist/css/tabler-payments.min.css +1 -1
- package/dist/css/tabler-payments.min.css.map +1 -1
- package/dist/css/tabler-payments.rtl.css +5 -1
- package/dist/css/tabler-payments.rtl.css.map +1 -1
- package/dist/css/tabler-payments.rtl.min.css +1 -1
- package/dist/css/tabler-payments.rtl.min.css.map +1 -1
- package/dist/css/tabler-props.css +207 -241
- package/dist/css/tabler-props.css.map +1 -1
- package/dist/css/tabler-props.min.css +2 -2
- package/dist/css/tabler-props.min.css.map +1 -1
- package/dist/css/tabler-props.rtl.css +207 -241
- package/dist/css/tabler-props.rtl.css.map +1 -1
- package/dist/css/tabler-props.rtl.min.css +2 -2
- package/dist/css/tabler-props.rtl.min.css.map +1 -1
- package/dist/css/tabler-socials.css +5 -1
- package/dist/css/tabler-socials.css.map +1 -1
- package/dist/css/tabler-socials.min.css +1 -1
- package/dist/css/tabler-socials.min.css.map +1 -1
- package/dist/css/tabler-socials.rtl.css +5 -1
- package/dist/css/tabler-socials.rtl.css.map +1 -1
- package/dist/css/tabler-socials.rtl.min.css +1 -1
- package/dist/css/tabler-socials.rtl.min.css.map +1 -1
- package/dist/css/tabler-themes.css +144 -94
- package/dist/css/tabler-themes.css.map +1 -1
- package/dist/css/tabler-themes.min.css +2 -2
- package/dist/css/tabler-themes.min.css.map +1 -1
- package/dist/css/tabler-themes.rtl.css +144 -94
- package/dist/css/tabler-themes.rtl.css.map +1 -1
- package/dist/css/tabler-themes.rtl.min.css +2 -2
- package/dist/css/tabler-themes.rtl.min.css.map +1 -1
- package/dist/css/tabler-vendors.css +203 -83
- package/dist/css/tabler-vendors.css.map +1 -1
- package/dist/css/tabler-vendors.min.css +2 -2
- package/dist/css/tabler-vendors.min.css.map +1 -1
- package/dist/css/tabler-vendors.rtl.css +203 -83
- package/dist/css/tabler-vendors.rtl.css.map +1 -1
- package/dist/css/tabler-vendors.rtl.min.css +2 -2
- package/dist/css/tabler-vendors.rtl.min.css.map +1 -1
- package/dist/css/tabler.css +4366 -5119
- package/dist/css/tabler.css.map +1 -1
- package/dist/css/tabler.min.css +2 -2
- package/dist/css/tabler.min.css.map +1 -1
- package/dist/css/tabler.rtl.css +4922 -5678
- package/dist/css/tabler.rtl.css.map +1 -1
- package/dist/css/tabler.rtl.min.css +2 -2
- package/dist/css/tabler.rtl.min.css.map +1 -1
- package/dist/img/flags/ad.svg +1 -1
- package/dist/img/flags/ae.svg +1 -1
- package/dist/img/flags/af.svg +1 -1
- package/dist/img/flags/afrun.svg +1 -1
- package/dist/img/flags/ag.svg +1 -1
- package/dist/img/flags/ai.svg +1 -1
- package/dist/img/flags/al.svg +1 -1
- package/dist/img/flags/am.svg +1 -1
- package/dist/img/flags/ao.svg +1 -1
- package/dist/img/flags/aq.svg +1 -1
- package/dist/img/flags/ar.svg +1 -1
- package/dist/img/flags/as.svg +1 -1
- package/dist/img/flags/at.svg +1 -1
- package/dist/img/flags/au.svg +1 -1
- package/dist/img/flags/aw.svg +1 -1
- package/dist/img/flags/ax.svg +1 -1
- package/dist/img/flags/az.svg +1 -1
- package/dist/img/flags/ba.svg +1 -1
- package/dist/img/flags/bb.svg +1 -1
- package/dist/img/flags/bd.svg +1 -1
- package/dist/img/flags/be.svg +1 -1
- package/dist/img/flags/bf.svg +1 -1
- package/dist/img/flags/bg.svg +1 -1
- package/dist/img/flags/bh.svg +1 -1
- package/dist/img/flags/bi.svg +1 -1
- package/dist/img/flags/bj.svg +1 -1
- package/dist/img/flags/bl.svg +1 -1
- package/dist/img/flags/bm.svg +1 -1
- package/dist/img/flags/bn.svg +1 -1
- package/dist/img/flags/bo.svg +1 -1
- package/dist/img/flags/bq-bo.svg +1 -1
- package/dist/img/flags/bq-sa.svg +1 -1
- package/dist/img/flags/bq-se.svg +1 -1
- package/dist/img/flags/br.svg +1 -1
- package/dist/img/flags/bs.svg +1 -1
- package/dist/img/flags/bt.svg +1 -1
- package/dist/img/flags/bv.svg +1 -1
- package/dist/img/flags/bw.svg +1 -1
- package/dist/img/flags/by.svg +1 -1
- package/dist/img/flags/bz.svg +1 -1
- package/dist/img/flags/ca.svg +1 -1
- package/dist/img/flags/cc.svg +1 -1
- package/dist/img/flags/cd.svg +1 -1
- package/dist/img/flags/cf.svg +1 -1
- package/dist/img/flags/cg.svg +1 -1
- package/dist/img/flags/ch.svg +1 -1
- package/dist/img/flags/ci.svg +1 -1
- package/dist/img/flags/ck.svg +1 -1
- package/dist/img/flags/cl.svg +1 -1
- package/dist/img/flags/cm.svg +1 -1
- package/dist/img/flags/cn.svg +1 -1
- package/dist/img/flags/co.svg +1 -1
- package/dist/img/flags/cr.svg +1 -1
- package/dist/img/flags/cu.svg +1 -1
- package/dist/img/flags/cv.svg +1 -1
- package/dist/img/flags/cw.svg +1 -1
- package/dist/img/flags/cx.svg +1 -1
- package/dist/img/flags/cy.svg +1 -1
- package/dist/img/flags/cz.svg +1 -1
- package/dist/img/flags/de.svg +1 -1
- package/dist/img/flags/dj.svg +1 -1
- package/dist/img/flags/dk.svg +1 -1
- package/dist/img/flags/dm.svg +1 -1
- package/dist/img/flags/do.svg +1 -1
- package/dist/img/flags/dz.svg +1 -1
- package/dist/img/flags/ec.svg +1 -1
- package/dist/img/flags/ee.svg +1 -1
- package/dist/img/flags/eg.svg +1 -1
- package/dist/img/flags/eh.svg +1 -1
- package/dist/img/flags/er.svg +1 -1
- package/dist/img/flags/es.svg +1 -1
- package/dist/img/flags/et.svg +1 -1
- package/dist/img/flags/eu.svg +1 -1
- package/dist/img/flags/fi.svg +1 -1
- package/dist/img/flags/fj.svg +1 -1
- package/dist/img/flags/fk.svg +1 -1
- package/dist/img/flags/fm.svg +1 -1
- package/dist/img/flags/fo.svg +1 -1
- package/dist/img/flags/fr.svg +1 -1
- package/dist/img/flags/ga.svg +1 -1
- package/dist/img/flags/gb-eng.svg +1 -1
- package/dist/img/flags/gb-nir.svg +1 -1
- package/dist/img/flags/gb-sct.svg +1 -1
- package/dist/img/flags/gb-wls.svg +1 -1
- package/dist/img/flags/gb.svg +1 -1
- package/dist/img/flags/gd.svg +1 -1
- package/dist/img/flags/ge.svg +1 -1
- package/dist/img/flags/gf.svg +1 -1
- package/dist/img/flags/gg.svg +1 -1
- package/dist/img/flags/gh.svg +1 -1
- package/dist/img/flags/gi.svg +1 -1
- package/dist/img/flags/gl.svg +1 -1
- package/dist/img/flags/gm.svg +1 -1
- package/dist/img/flags/gn.svg +1 -1
- package/dist/img/flags/gp.svg +1 -1
- package/dist/img/flags/gq.svg +1 -1
- package/dist/img/flags/gr.svg +1 -1
- package/dist/img/flags/gs.svg +1 -1
- package/dist/img/flags/gt.svg +1 -1
- package/dist/img/flags/gu.svg +1 -1
- package/dist/img/flags/gw.svg +1 -1
- package/dist/img/flags/gy.svg +1 -1
- package/dist/img/flags/hk.svg +1 -1
- package/dist/img/flags/hm.svg +1 -1
- package/dist/img/flags/hn.svg +1 -1
- package/dist/img/flags/hr.svg +1 -1
- package/dist/img/flags/ht.svg +1 -1
- package/dist/img/flags/hu.svg +1 -1
- package/dist/img/flags/id.svg +1 -1
- package/dist/img/flags/ie.svg +1 -1
- package/dist/img/flags/il.svg +1 -1
- package/dist/img/flags/im.svg +1 -1
- package/dist/img/flags/in.svg +1 -1
- package/dist/img/flags/io.svg +1 -1
- package/dist/img/flags/iq.svg +1 -1
- package/dist/img/flags/ir.svg +1 -1
- package/dist/img/flags/is.svg +1 -1
- package/dist/img/flags/it.svg +1 -1
- package/dist/img/flags/je.svg +1 -1
- package/dist/img/flags/jm.svg +1 -1
- package/dist/img/flags/jo.svg +1 -1
- package/dist/img/flags/jp.svg +1 -1
- package/dist/img/flags/ke.svg +1 -1
- package/dist/img/flags/kg.svg +1 -1
- package/dist/img/flags/kh.svg +1 -1
- package/dist/img/flags/ki.svg +1 -1
- package/dist/img/flags/km.svg +1 -1
- package/dist/img/flags/kn-sk.svg +1 -1
- package/dist/img/flags/kn.svg +1 -1
- package/dist/img/flags/kp.svg +1 -1
- package/dist/img/flags/kr.svg +1 -1
- package/dist/img/flags/kw.svg +1 -1
- package/dist/img/flags/ky.svg +1 -1
- package/dist/img/flags/kz.svg +1 -1
- package/dist/img/flags/la.svg +1 -1
- package/dist/img/flags/lb.svg +1 -1
- package/dist/img/flags/lc.svg +1 -1
- package/dist/img/flags/li.svg +1 -1
- package/dist/img/flags/lk.svg +1 -1
- package/dist/img/flags/lr.svg +1 -1
- package/dist/img/flags/ls.svg +1 -1
- package/dist/img/flags/lt.svg +1 -1
- package/dist/img/flags/lu.svg +1 -1
- package/dist/img/flags/lv.svg +1 -1
- package/dist/img/flags/ly.svg +1 -1
- package/dist/img/flags/ma.svg +1 -1
- package/dist/img/flags/mc.svg +1 -1
- package/dist/img/flags/md.svg +1 -1
- package/dist/img/flags/me.svg +1 -1
- package/dist/img/flags/mf.svg +1 -1
- package/dist/img/flags/mg.svg +1 -1
- package/dist/img/flags/mh.svg +1 -1
- package/dist/img/flags/mk.svg +1 -1
- package/dist/img/flags/ml.svg +1 -1
- package/dist/img/flags/mm.svg +1 -1
- package/dist/img/flags/mn.svg +1 -1
- package/dist/img/flags/mo.svg +1 -1
- package/dist/img/flags/mp.svg +1 -1
- package/dist/img/flags/mq.svg +1 -1
- package/dist/img/flags/mr.svg +1 -1
- package/dist/img/flags/ms.svg +1 -1
- package/dist/img/flags/mt.svg +1 -1
- package/dist/img/flags/mu.svg +1 -1
- package/dist/img/flags/mv.svg +1 -1
- package/dist/img/flags/mw.svg +1 -1
- package/dist/img/flags/mx.svg +1 -1
- package/dist/img/flags/my.svg +1 -1
- package/dist/img/flags/mz.svg +1 -1
- package/dist/img/flags/na.svg +1 -1
- package/dist/img/flags/nc.svg +1 -1
- package/dist/img/flags/ne.svg +1 -1
- package/dist/img/flags/nf.svg +1 -1
- package/dist/img/flags/ng.svg +1 -1
- package/dist/img/flags/ni.svg +1 -1
- package/dist/img/flags/nl.svg +1 -1
- package/dist/img/flags/no.svg +1 -1
- package/dist/img/flags/np.svg +1 -1
- package/dist/img/flags/nr.svg +1 -1
- package/dist/img/flags/nu.svg +1 -1
- package/dist/img/flags/nz.svg +1 -1
- package/dist/img/flags/om.svg +1 -1
- package/dist/img/flags/pa.svg +1 -1
- package/dist/img/flags/pe.svg +1 -1
- package/dist/img/flags/pf.svg +1 -1
- package/dist/img/flags/pg.svg +1 -1
- package/dist/img/flags/ph.svg +1 -1
- package/dist/img/flags/pk.svg +1 -1
- package/dist/img/flags/pl.svg +1 -1
- package/dist/img/flags/pm.svg +1 -1
- package/dist/img/flags/pn.svg +1 -1
- package/dist/img/flags/pr.svg +1 -1
- package/dist/img/flags/ps.svg +1 -1
- package/dist/img/flags/pt.svg +1 -1
- package/dist/img/flags/pw.svg +1 -1
- package/dist/img/flags/py.svg +1 -1
- package/dist/img/flags/qa.svg +1 -1
- package/dist/img/flags/rainbow.svg +1 -1
- package/dist/img/flags/re.svg +1 -1
- package/dist/img/flags/ro.svg +1 -1
- package/dist/img/flags/rs.svg +1 -1
- package/dist/img/flags/ru.svg +1 -1
- package/dist/img/flags/rw.svg +1 -1
- package/dist/img/flags/sa.svg +1 -1
- package/dist/img/flags/sb.svg +1 -1
- package/dist/img/flags/sc.svg +1 -1
- package/dist/img/flags/sd.svg +1 -1
- package/dist/img/flags/se.svg +1 -1
- package/dist/img/flags/sg.svg +1 -1
- package/dist/img/flags/sh.svg +1 -1
- package/dist/img/flags/si.svg +1 -1
- package/dist/img/flags/sj.svg +1 -1
- package/dist/img/flags/sk.svg +1 -1
- package/dist/img/flags/sl.svg +1 -1
- package/dist/img/flags/sm.svg +1 -1
- package/dist/img/flags/sn.svg +1 -1
- package/dist/img/flags/so.svg +1 -1
- package/dist/img/flags/sr.svg +1 -1
- package/dist/img/flags/ss.svg +1 -1
- package/dist/img/flags/st.svg +1 -1
- package/dist/img/flags/sv.svg +1 -1
- package/dist/img/flags/sx.svg +1 -1
- package/dist/img/flags/sy.svg +1 -1
- package/dist/img/flags/sz.svg +1 -1
- package/dist/img/flags/tc.svg +1 -1
- package/dist/img/flags/td.svg +1 -1
- package/dist/img/flags/tf.svg +1 -1
- package/dist/img/flags/tg.svg +1 -1
- package/dist/img/flags/th.svg +1 -1
- package/dist/img/flags/tj.svg +1 -1
- package/dist/img/flags/tk.svg +1 -1
- package/dist/img/flags/tl.svg +1 -1
- package/dist/img/flags/tm.svg +1 -1
- package/dist/img/flags/tn.svg +1 -1
- package/dist/img/flags/to.svg +1 -1
- package/dist/img/flags/tr.svg +1 -1
- package/dist/img/flags/tt.svg +1 -1
- package/dist/img/flags/tv.svg +1 -1
- package/dist/img/flags/tw.svg +1 -1
- package/dist/img/flags/tz.svg +1 -1
- package/dist/img/flags/ua.svg +1 -1
- package/dist/img/flags/ug.svg +1 -1
- package/dist/img/flags/um.svg +1 -1
- package/dist/img/flags/unasur.svg +1 -1
- package/dist/img/flags/us.svg +1 -1
- package/dist/img/flags/uy.svg +1 -1
- package/dist/img/flags/uz.svg +1 -1
- package/dist/img/flags/va.svg +1 -1
- package/dist/img/flags/vc.svg +1 -1
- package/dist/img/flags/ve.svg +1 -1
- package/dist/img/flags/vg.svg +1 -1
- package/dist/img/flags/vi.svg +1 -1
- package/dist/img/flags/vn.svg +1 -1
- package/dist/img/flags/vu.svg +1 -1
- package/dist/img/flags/wf.svg +1 -1
- package/dist/img/flags/ws.svg +1 -1
- package/dist/img/flags/ye.svg +1 -1
- package/dist/img/flags/yt.svg +1 -1
- package/dist/img/flags/za.svg +1 -1
- package/dist/img/flags/zm.svg +1 -1
- package/dist/img/flags/zw.svg +1 -1
- package/dist/img/payments/2c2p-dark.svg +1 -5
- package/dist/img/payments/2c2p.svg +1 -5
- package/dist/img/payments/2checkout-dark.svg +1 -4
- package/dist/img/payments/2checkout.svg +1 -4
- package/dist/img/payments/ach-transfer-dark.svg +1 -14
- package/dist/img/payments/ach-transfer.svg +1 -14
- package/dist/img/payments/adyen-dark.svg +1 -8
- package/dist/img/payments/adyen.svg +1 -8
- package/dist/img/payments/affirm-dark.svg +1 -9
- package/dist/img/payments/affirm.svg +1 -9
- package/dist/img/payments/afterpay-dark.svg +1 -13
- package/dist/img/payments/afterpay.svg +1 -13
- package/dist/img/payments/airtm-dark.svg +1 -4
- package/dist/img/payments/airtm.svg +1 -4
- package/dist/img/payments/airwallex-dark.svg +1 -11
- package/dist/img/payments/airwallex.svg +1 -11
- package/dist/img/payments/alipay-dark.svg +1 -12
- package/dist/img/payments/alipay-plus-dark.svg +1 -9
- package/dist/img/payments/alipay-plus.svg +1 -9
- package/dist/img/payments/alipay.svg +1 -12
- package/dist/img/payments/allegro-pay-dark.svg +1 -5
- package/dist/img/payments/allegro-pay.svg +1 -5
- package/dist/img/payments/amazon-dark.svg +1 -6
- package/dist/img/payments/amazon-pay-dark.svg +1 -7
- package/dist/img/payments/amazon-pay.svg +1 -7
- package/dist/img/payments/amazon.svg +1 -6
- package/dist/img/payments/americanexpress-dark.svg +1 -4
- package/dist/img/payments/americanexpress.svg +1 -4
- package/dist/img/payments/ant-group-dark.svg +1 -6
- package/dist/img/payments/ant-group.svg +1 -23
- package/dist/img/payments/applepay-dark.svg +1 -8
- package/dist/img/payments/applepay.svg +1 -8
- package/dist/img/payments/authorize-dark.svg +1 -17
- package/dist/img/payments/authorize.svg +1 -17
- package/dist/img/payments/autopay-dark.svg +1 -11
- package/dist/img/payments/autopay.svg +1 -11
- package/dist/img/payments/bancontact-dark.svg +1 -9
- package/dist/img/payments/bancontact.svg +1 -9
- package/dist/img/payments/bank-of-america-dark.svg +1 -10
- package/dist/img/payments/bank-of-america.svg +1 -10
- package/dist/img/payments/barclays-dark.svg +1 -11
- package/dist/img/payments/barclays.svg +1 -11
- package/dist/img/payments/bbva-dark.svg +1 -4
- package/dist/img/payments/bbva.svg +1 -4
- package/dist/img/payments/binance-dark.svg +1 -4
- package/dist/img/payments/binance-usd-dark.svg +1 -11
- package/dist/img/payments/binance-usd.svg +1 -11
- package/dist/img/payments/binance.svg +1 -4
- package/dist/img/payments/bitcoin-dark.svg +1 -13
- package/dist/img/payments/bitcoin.svg +1 -12
- package/dist/img/payments/bitpay-dark.svg +1 -4
- package/dist/img/payments/bitpay.svg +1 -4
- package/dist/img/payments/bkash-dark.svg +1 -16
- package/dist/img/payments/bkash.svg +1 -16
- package/dist/img/payments/blik-dark.svg +1 -5
- package/dist/img/payments/blik.svg +1 -12
- package/dist/img/payments/bnb-chain-dark.svg +1 -14
- package/dist/img/payments/bnb-chain.svg +1 -14
- package/dist/img/payments/bnp-paribas-dark.svg +1 -80
- package/dist/img/payments/bnp-paribas.svg +1 -80
- package/dist/img/payments/braintree-dark.svg +1 -6
- package/dist/img/payments/braintree.svg +1 -6
- package/dist/img/payments/brex-dark.svg +1 -4
- package/dist/img/payments/brex.svg +1 -4
- package/dist/img/payments/capital-one-dark.svg +1 -6
- package/dist/img/payments/capital-one.svg +1 -6
- package/dist/img/payments/cash-app-dark.svg +1 -8
- package/dist/img/payments/cash-app.svg +1 -8
- package/dist/img/payments/chase-dark.svg +1 -12
- package/dist/img/payments/chase.svg +1 -12
- package/dist/img/payments/checkout-com-dark.svg +1 -4
- package/dist/img/payments/checkout-com.svg +1 -4
- package/dist/img/payments/chime-dark.svg +1 -9
- package/dist/img/payments/chime.svg +1 -9
- package/dist/img/payments/china-construction-bank-dark.svg +1 -36
- package/dist/img/payments/china-construction-bank.svg +1 -36
- package/dist/img/payments/cirrus-dark.svg +1 -8
- package/dist/img/payments/cirrus.svg +1 -8
- package/dist/img/payments/citi-dark.svg +1 -8
- package/dist/img/payments/citi.svg +1 -8
- package/dist/img/payments/coinbase-dark.svg +1 -4
- package/dist/img/payments/coinbase.svg +1 -5
- package/dist/img/payments/coinkite-dark.svg +1 -6
- package/dist/img/payments/coinkite.svg +1 -6
- package/dist/img/payments/crypto-com-dark.svg +1 -8
- package/dist/img/payments/crypto-com.svg +1 -8
- package/dist/img/payments/deutsche-bank-dark.svg +1 -16
- package/dist/img/payments/deutsche-bank.svg +1 -16
- package/dist/img/payments/dinersclub-dark.svg +1 -7
- package/dist/img/payments/dinersclub.svg +1 -7
- package/dist/img/payments/directdebit-dark.svg +1 -4
- package/dist/img/payments/directdebit.svg +1 -4
- package/dist/img/payments/discover-dark.svg +1 -8
- package/dist/img/payments/discover.svg +1 -6
- package/dist/img/payments/dwolla-dark.svg +1 -5
- package/dist/img/payments/dwolla.svg +1 -5
- package/dist/img/payments/easypaisa-dark.svg +1 -14
- package/dist/img/payments/easypaisa.svg +1 -14
- package/dist/img/payments/ebay-dark.svg +1 -7
- package/dist/img/payments/ebay.svg +1 -7
- package/dist/img/payments/elo-dark.svg +1 -11
- package/dist/img/payments/elo.svg +1 -11
- package/dist/img/payments/epayco-dark.svg +1 -5
- package/dist/img/payments/epayco.svg +1 -5
- package/dist/img/payments/esewa-dark.svg +1 -11
- package/dist/img/payments/esewa.svg +1 -12
- package/dist/img/payments/ethereum-dark.svg +1 -13
- package/dist/img/payments/ethereum.svg +1 -18
- package/dist/img/payments/eway-dark.svg +1 -6
- package/dist/img/payments/eway.svg +1 -6
- package/dist/img/payments/fifth-third-bank-dark.svg +1 -7
- package/dist/img/payments/fifth-third-bank.svg +1 -7
- package/dist/img/payments/fiserv-dark.svg +1 -11
- package/dist/img/payments/fiserv.svg +1 -11
- package/dist/img/payments/flutterwave-dark.svg +1 -18
- package/dist/img/payments/flutterwave.svg +1 -18
- package/dist/img/payments/fonepay-dark.svg +1 -10
- package/dist/img/payments/fonepay.svg +1 -10
- package/dist/img/payments/gcash-dark.svg +1 -7
- package/dist/img/payments/gcash.svg +1 -7
- package/dist/img/payments/giropay-dark.svg +1 -13
- package/dist/img/payments/giropay.svg +1 -25
- package/dist/img/payments/goldman-sachs-dark.svg +1 -4
- package/dist/img/payments/goldman-sachs.svg +1 -4
- package/dist/img/payments/google-pay-dark.svg +1 -10
- package/dist/img/payments/google-pay.svg +1 -10
- package/dist/img/payments/googlewallet-dark.svg +1 -7
- package/dist/img/payments/googlewallet.svg +1 -7
- package/dist/img/payments/grabpay-dark.svg +1 -4
- package/dist/img/payments/grabpay.svg +1 -4
- package/dist/img/payments/hsbc-dark.svg +1 -12
- package/dist/img/payments/hsbc.svg +1 -12
- package/dist/img/payments/hubspot-dark.svg +1 -5
- package/dist/img/payments/hubspot.svg +1 -5
- package/dist/img/payments/huntington-bank-dark.svg +1 -5
- package/dist/img/payments/huntington-bank.svg +1 -5
- package/dist/img/payments/icbc-dark.svg +1 -8
- package/dist/img/payments/icbc.svg +1 -8
- package/dist/img/payments/ideal-dark.svg +1 -8
- package/dist/img/payments/ideal.svg +1 -7
- package/dist/img/payments/imepay-dark.svg +1 -11
- package/dist/img/payments/imepay.svg +1 -11
- package/dist/img/payments/imoje-dark.svg +1 -7
- package/dist/img/payments/imoje.svg +1 -8
- package/dist/img/payments/ing-dark.svg +1 -145
- package/dist/img/payments/ing.svg +1 -145
- package/dist/img/payments/ingenico-dark.svg +1 -4
- package/dist/img/payments/ingenico.svg +1 -4
- package/dist/img/payments/interac-dark.svg +1 -16
- package/dist/img/payments/interac.svg +1 -16
- package/dist/img/payments/jazzcash-dark.svg +1 -13
- package/dist/img/payments/jazzcash.svg +1 -13
- package/dist/img/payments/jcb-dark.svg +1 -8
- package/dist/img/payments/jcb.svg +1 -41
- package/dist/img/payments/khalti-dark.svg +1 -14
- package/dist/img/payments/khalti.svg +1 -14
- package/dist/img/payments/klarna-dark.svg +1 -11
- package/dist/img/payments/klarna.svg +1 -11
- package/dist/img/payments/kraken-dark.svg +1 -5
- package/dist/img/payments/kraken.svg +1 -5
- package/dist/img/payments/linepay-dark.svg +1 -10
- package/dist/img/payments/linepay.svg +1 -11
- package/dist/img/payments/litecoin-dark.svg +1 -14
- package/dist/img/payments/litecoin.svg +1 -14
- package/dist/img/payments/mada-dark.svg +1 -11
- package/dist/img/payments/mada.svg +1 -11
- package/dist/img/payments/maestro-dark.svg +1 -6
- package/dist/img/payments/maestro.svg +1 -6
- package/dist/img/payments/mastercard-dark.svg +1 -6
- package/dist/img/payments/mastercard.svg +1 -6
- package/dist/img/payments/mercado-pago-dark.svg +1 -9
- package/dist/img/payments/mercado-pago.svg +1 -9
- package/dist/img/payments/mercury-dark.svg +1 -4
- package/dist/img/payments/mercury.svg +1 -4
- package/dist/img/payments/meta-pay-dark.svg +1 -6
- package/dist/img/payments/meta-pay.svg +1 -16
- package/dist/img/payments/metamask-dark.svg +1 -40
- package/dist/img/payments/metamask.svg +1 -40
- package/dist/img/payments/mir-dark.svg +1 -4
- package/dist/img/payments/mir.svg +1 -11
- package/dist/img/payments/mitsubishi-ufj-dark.svg +1 -5
- package/dist/img/payments/mitsubishi-ufj.svg +1 -5
- package/dist/img/payments/mobilepay-dark.svg +1 -6
- package/dist/img/payments/mobilepay.svg +1 -6
- package/dist/img/payments/mollie-dark.svg +1 -4
- package/dist/img/payments/mollie.svg +1 -4
- package/dist/img/payments/monero-dark.svg +1 -5
- package/dist/img/payments/monero.svg +1 -5
- package/dist/img/payments/moneygram-dark.svg +1 -12
- package/dist/img/payments/moneygram.svg +1 -12
- package/dist/img/payments/mpesa-dark.svg +1 -5
- package/dist/img/payments/mpesa.svg +1 -5
- package/dist/img/payments/ncr-dark.svg +1 -9
- package/dist/img/payments/ncr.svg +1 -9
- package/dist/img/payments/neteller-dark.svg +1 -4
- package/dist/img/payments/neteller.svg +1 -4
- package/dist/img/payments/northone-dark.svg +1 -5
- package/dist/img/payments/northone.svg +1 -5
- package/dist/img/payments/nu-dark.svg +1 -5
- package/dist/img/payments/nu.svg +1 -5
- package/dist/img/payments/nuvei-dark.svg +1 -9
- package/dist/img/payments/nuvei.svg +1 -9
- package/dist/img/payments/opensea-dark.svg +1 -11
- package/dist/img/payments/opensea.svg +1 -11
- package/dist/img/payments/oxxo-dark.svg +1 -8
- package/dist/img/payments/oxxo.svg +1 -8
- package/dist/img/payments/paybox-dark.svg +1 -4
- package/dist/img/payments/paybox.svg +1 -4
- package/dist/img/payments/payconiq-dark.svg +1 -4
- package/dist/img/payments/payconiq.svg +1 -4
- package/dist/img/payments/payka-dark.svg +1 -18
- package/dist/img/payments/payka.svg +1 -12
- package/dist/img/payments/payline-dark.svg +1 -12
- package/dist/img/payments/payline.svg +1 -12
- package/dist/img/payments/paynow-dark.svg +1 -15
- package/dist/img/payments/paynow.svg +1 -15
- package/dist/img/payments/payone-dark.svg +1 -7
- package/dist/img/payments/payone.svg +1 -7
- package/dist/img/payments/payoneer-dark.svg +1 -4
- package/dist/img/payments/payoneer.svg +1 -4
- package/dist/img/payments/paypal-dark.svg +1 -8
- package/dist/img/payments/paypal.svg +1 -8
- package/dist/img/payments/paypay-dark.svg +1 -6
- package/dist/img/payments/paypay.svg +1 -6
- package/dist/img/payments/paypo-dark.svg +1 -11
- package/dist/img/payments/paypo.svg +1 -11
- package/dist/img/payments/paysafe-dark.svg +1 -6
- package/dist/img/payments/paysafe.svg +1 -6
- package/dist/img/payments/paysafecard-dark.svg +1 -4
- package/dist/img/payments/paysafecard.svg +1 -4
- package/dist/img/payments/paystack-dark.svg +1 -5
- package/dist/img/payments/paystack.svg +1 -5
- package/dist/img/payments/paytm-dark.svg +1 -8
- package/dist/img/payments/paytm.svg +1 -8
- package/dist/img/payments/payu-dark.svg +1 -4
- package/dist/img/payments/payu.svg +1 -4
- package/dist/img/payments/phonepe-dark.svg +1 -6
- package/dist/img/payments/phonepe.svg +1 -6
- package/dist/img/payments/pix-dark.svg +1 -6
- package/dist/img/payments/pix.svg +1 -6
- package/dist/img/payments/pnc-bank-dark.svg +1 -8
- package/dist/img/payments/pnc-bank.svg +1 -8
- package/dist/img/payments/poli-dark.svg +1 -8
- package/dist/img/payments/poli.svg +1 -8
- package/dist/img/payments/przelewy24-dark.svg +1 -18
- package/dist/img/payments/przelewy24.svg +1 -8
- package/dist/img/payments/rapyd-dark.svg +1 -8
- package/dist/img/payments/rapyd.svg +1 -8
- package/dist/img/payments/razorpay-dark.svg +1 -5
- package/dist/img/payments/razorpay.svg +1 -5
- package/dist/img/payments/revolut-pay-dark.svg +1 -8
- package/dist/img/payments/revolut-pay.svg +1 -8
- package/dist/img/payments/ripple-dark.svg +1 -5
- package/dist/img/payments/ripple.svg +1 -5
- package/dist/img/payments/rupay-dark.svg +1 -10
- package/dist/img/payments/rupay.svg +1 -10
- package/dist/img/payments/samsung-pay-dark.svg +1 -13
- package/dist/img/payments/samsung-pay.svg +1 -13
- package/dist/img/payments/santander-dark.svg +1 -4
- package/dist/img/payments/santander.svg +1 -4
- package/dist/img/payments/sepa-dark.svg +1 -5
- package/dist/img/payments/sepa.svg +1 -5
- package/dist/img/payments/shop-pay-dark.svg +1 -4
- package/dist/img/payments/shop-pay.svg +1 -4
- package/dist/img/payments/shopify-dark.svg +1 -6
- package/dist/img/payments/shopify.svg +1 -7
- package/dist/img/payments/skrill-dark.svg +1 -10
- package/dist/img/payments/skrill.svg +1 -10
- package/dist/img/payments/skycash-dark.svg +1 -10
- package/dist/img/payments/skycash.svg +1 -10
- package/dist/img/payments/sofort-dark.svg +1 -6
- package/dist/img/payments/sofort.svg +1 -6
- package/dist/img/payments/solana-dark.svg +1 -20
- package/dist/img/payments/solana.svg +1 -20
- package/dist/img/payments/spingo-dark.svg +1 -11
- package/dist/img/payments/spingo.svg +1 -11
- package/dist/img/payments/square-dark.svg +1 -4
- package/dist/img/payments/square.svg +1 -4
- package/dist/img/payments/stax-dark.svg +1 -5
- package/dist/img/payments/stax.svg +1 -5
- package/dist/img/payments/stcpay-dark.svg +1 -7
- package/dist/img/payments/stcpay.svg +1 -7
- package/dist/img/payments/stripe-dark.svg +1 -4
- package/dist/img/payments/stripe.svg +1 -4
- package/dist/img/payments/sumitomo-mitsui-dark.svg +1 -5
- package/dist/img/payments/sumitomo-mitsui.svg +1 -5
- package/dist/img/payments/swift-dark.svg +1 -4
- package/dist/img/payments/swift.svg +1 -4
- package/dist/img/payments/swish-dark.svg +1 -32
- package/dist/img/payments/swish.svg +1 -32
- package/dist/img/payments/synchrony-dark.svg +1 -5
- package/dist/img/payments/synchrony.svg +1 -5
- package/dist/img/payments/tether-dark.svg +1 -11
- package/dist/img/payments/tether.svg +1 -11
- package/dist/img/payments/tpay-dark.svg +1 -10
- package/dist/img/payments/tpay.svg +1 -4
- package/dist/img/payments/troy-dark.svg +1 -7
- package/dist/img/payments/troy.svg +1 -7
- package/dist/img/payments/true-usd-dark.svg +1 -5
- package/dist/img/payments/true-usd.svg +1 -7
- package/dist/img/payments/trustly-dark.svg +1 -11
- package/dist/img/payments/trustly.svg +1 -11
- package/dist/img/payments/twint-dark.svg +1 -29
- package/dist/img/payments/twint.svg +1 -29
- package/dist/img/payments/ubs-dark.svg +1 -5
- package/dist/img/payments/ubs.svg +1 -5
- package/dist/img/payments/unionpay-dark.svg +1 -6
- package/dist/img/payments/unionpay.svg +1 -7
- package/dist/img/payments/upi-dark.svg +1 -8
- package/dist/img/payments/upi.svg +1 -8
- package/dist/img/payments/us-bank-dark.svg +1 -13
- package/dist/img/payments/us-bank.svg +1 -13
- package/dist/img/payments/usdc-dark.svg +1 -4
- package/dist/img/payments/usdc.svg +1 -4
- package/dist/img/payments/venmo-dark.svg +1 -4
- package/dist/img/payments/venmo.svg +1 -4
- package/dist/img/payments/verifone-dark.svg +1 -5
- package/dist/img/payments/verifone.svg +1 -5
- package/dist/img/payments/vipps-dark.svg +1 -8
- package/dist/img/payments/vipps.svg +1 -8
- package/dist/img/payments/visa-dark.svg +1 -4
- package/dist/img/payments/visa.svg +1 -4
- package/dist/img/payments/we-chat-pay-dark.svg +1 -4
- package/dist/img/payments/we-chat-pay.svg +1 -4
- package/dist/img/payments/webmoney-dark.svg +1 -5
- package/dist/img/payments/webmoney.svg +1 -5
- package/dist/img/payments/wells-fargo-dark.svg +1 -4
- package/dist/img/payments/wells-fargo.svg +1 -4
- package/dist/img/payments/westernunion-dark.svg +1 -18
- package/dist/img/payments/westernunion.svg +1 -18
- package/dist/img/payments/wire-transfer-dark.svg +1 -32
- package/dist/img/payments/wire-transfer.svg +1 -32
- package/dist/img/payments/wise-dark.svg +1 -4
- package/dist/img/payments/wise.svg +1 -4
- package/dist/img/payments/worldpay-dark.svg +1 -4
- package/dist/img/payments/worldpay.svg +1 -5
- package/dist/img/payments/zelle-dark.svg +1 -9
- package/dist/img/payments/zelle.svg +1 -8
- package/dist/img/social/apple-gray.svg +1 -3
- package/dist/img/social/apple.svg +1 -3
- package/dist/img/social/discord-gray.svg +1 -3
- package/dist/img/social/discord.svg +1 -3
- package/dist/img/social/dribbble-gray.svg +1 -3
- package/dist/img/social/dribbble.svg +1 -4
- package/dist/img/social/facebook-gray.svg +1 -3
- package/dist/img/social/facebook.svg +1 -4
- package/dist/img/social/figma-gray.svg +1 -3
- package/dist/img/social/figma.svg +1 -7
- package/dist/img/social/github-gray.svg +1 -10
- package/dist/img/social/github.svg +1 -10
- package/dist/img/social/google-gray.svg +1 -3
- package/dist/img/social/google.svg +1 -6
- package/dist/img/social/instagram-gray.svg +1 -5
- package/dist/img/social/instagram.svg +1 -18
- package/dist/img/social/linkedin-gray.svg +1 -3
- package/dist/img/social/linkedin.svg +1 -3
- package/dist/img/social/medium-gray.svg +1 -5
- package/dist/img/social/medium.svg +1 -5
- package/dist/img/social/meta-gray.svg +1 -5
- package/dist/img/social/meta.svg +1 -17
- package/dist/img/social/metamask-gray.svg +1 -12
- package/dist/img/social/metamask.svg +1 -14
- package/dist/img/social/pinterest-gray.svg +1 -3
- package/dist/img/social/pinterest.svg +1 -4
- package/dist/img/social/reddit-gray.svg +1 -6
- package/dist/img/social/reddit.svg +1 -11
- package/dist/img/social/signal-gray.svg +1 -10
- package/dist/img/social/signal.svg +1 -10
- package/dist/img/social/skype-gray.svg +1 -3
- package/dist/img/social/skype.svg +1 -3
- package/dist/img/social/snapchat-gray.svg +1 -10
- package/dist/img/social/snapchat.svg +1 -11
- package/dist/img/social/spotify-gray.svg +1 -3
- package/dist/img/social/spotify.svg +1 -3
- package/dist/img/social/telegram-gray.svg +1 -3
- package/dist/img/social/telegram.svg +1 -10
- package/dist/img/social/tiktok-gray.svg +1 -3
- package/dist/img/social/tiktok.svg +1 -5
- package/dist/img/social/tumblr-gray.svg +1 -3
- package/dist/img/social/tumblr.svg +1 -3
- package/dist/img/social/twitch-gray.svg +1 -5
- package/dist/img/social/twitch.svg +1 -6
- package/dist/img/social/vk-gray.svg +1 -3
- package/dist/img/social/vk.svg +1 -4
- package/dist/img/social/x-gray.svg +1 -3
- package/dist/img/social/x.svg +1 -3
- package/dist/img/social/youtube-gray.svg +1 -3
- package/dist/img/social/youtube.svg +1 -11
- package/dist/js/tabler-theme.esm.js +6 -4
- package/dist/js/tabler-theme.esm.js.map +1 -1
- package/dist/js/tabler-theme.esm.min.js +2 -2
- package/dist/js/tabler-theme.esm.min.js.map +1 -1
- package/dist/js/tabler-theme.js +6 -4
- package/dist/js/tabler-theme.js.map +1 -1
- package/dist/js/tabler-theme.min.js +2 -2
- package/dist/js/tabler-theme.min.js.map +1 -1
- package/dist/js/tabler.esm.js +5999 -3586
- package/dist/js/tabler.esm.js.map +1 -1
- package/dist/js/tabler.esm.min.js +2 -2
- package/dist/js/tabler.esm.min.js.map +1 -1
- package/dist/js/tabler.js +6010 -3586
- package/dist/js/tabler.js.map +1 -1
- package/dist/js/tabler.min.js +2 -2
- package/dist/js/tabler.min.js.map +1 -1
- package/dist/libs/vanilla-calendar-pro/LICENSE +21 -0
- package/dist/libs/vanilla-calendar-pro/index.js +2 -0
- package/dist/types/src/autosize.d.ts +32 -1
- package/dist/types/src/bootstrap/alert.d.ts +2 -0
- package/dist/types/src/bootstrap/button.d.ts +3 -0
- package/dist/types/src/bootstrap/carousel.d.ts +16 -3
- package/dist/types/src/bootstrap/collapse.d.ts +13 -3
- package/dist/types/src/bootstrap/dom/event-handler.d.ts +7 -4
- package/dist/types/src/bootstrap/dropdown.d.ts +30 -7
- package/dist/types/src/bootstrap/modal.d.ts +12 -8
- package/dist/types/src/bootstrap/offcanvas.d.ts +12 -8
- package/dist/types/src/bootstrap/popover.d.ts +13 -9
- package/dist/types/src/bootstrap/scrollspy.d.ts +17 -3
- package/dist/types/src/bootstrap/tab.d.ts +2 -0
- package/dist/types/src/bootstrap/toast.d.ts +12 -3
- package/dist/types/src/bootstrap/tooltip.d.ts +57 -19
- package/dist/types/src/bootstrap/types.d.ts +25 -1
- package/dist/types/src/bootstrap/util/backdrop.d.ts +2 -2
- package/dist/types/src/bootstrap/util/component-functions.d.ts +22 -2
- package/dist/types/src/bootstrap/util/focustrap.d.ts +2 -2
- package/dist/types/src/bootstrap/util/index.d.ts +5 -1
- package/dist/types/src/bootstrap/util/swipe.d.ts +2 -2
- package/dist/types/src/bootstrap/util/template-factory.d.ts +2 -2
- package/dist/types/src/clipboard.d.ts +45 -0
- package/dist/types/src/confetti.d.ts +58 -0
- package/dist/types/src/countup.d.ts +64 -1
- package/dist/types/src/datepicker.d.ts +102 -0
- package/dist/types/src/deprecated.d.ts +11 -0
- package/dist/types/src/input-mask.d.ts +42 -1
- package/dist/types/src/otp-input.d.ts +71 -0
- package/dist/types/src/sortable.d.ts +41 -1
- package/dist/types/src/sparkline.d.ts +67 -0
- package/dist/types/src/strength.d.ts +52 -0
- package/dist/types/src/switch-icon.d.ts +31 -1
- package/dist/types/src/theme-config.d.ts +3 -1
- package/dist/types/tabler.d.ts +18 -1
- package/js/src/autosize.ts +136 -7
- package/js/src/bootstrap/alert.ts +20 -0
- package/js/src/bootstrap/base-component.ts +1 -1
- package/js/src/bootstrap/button.ts +16 -0
- package/js/src/bootstrap/carousel.ts +42 -7
- package/js/src/bootstrap/collapse.ts +38 -6
- package/js/src/bootstrap/dom/event-handler.ts +50 -16
- package/js/src/bootstrap/dropdown.ts +61 -22
- package/js/src/bootstrap/modal.ts +39 -14
- package/js/src/bootstrap/offcanvas.ts +36 -11
- package/js/src/bootstrap/popover.ts +35 -9
- package/js/src/bootstrap/scrollspy.ts +38 -7
- package/js/src/bootstrap/tab.ts +20 -1
- package/js/src/bootstrap/toast.ts +31 -5
- package/js/src/bootstrap/tooltip.ts +109 -53
- package/js/src/bootstrap/types.ts +30 -1
- package/js/src/bootstrap/util/backdrop.ts +1 -1
- package/js/src/bootstrap/util/component-functions.ts +74 -5
- package/js/src/bootstrap/util/focustrap.ts +2 -2
- package/js/src/bootstrap/util/index.ts +46 -2
- package/js/src/bootstrap/util/swipe.ts +3 -3
- package/js/src/bootstrap/util/template-factory.ts +2 -2
- package/js/src/clipboard.ts +197 -0
- package/js/src/confetti.ts +439 -0
- package/js/src/countup.ts +335 -29
- package/js/src/datepicker.ts +671 -0
- package/js/src/deprecated.ts +28 -0
- package/js/src/dropdown.ts +1 -1
- package/js/src/global.d.ts +12 -13
- package/js/src/input-mask.ts +128 -8
- package/js/src/otp-input.ts +432 -0
- package/js/src/sortable.ts +116 -15
- package/js/src/sparkline.ts +609 -0
- package/js/src/strength.ts +277 -0
- package/js/src/switch-icon.ts +165 -9
- package/js/src/theme-config.ts +3 -1
- package/js/tabler-theme.ts +2 -4
- package/js/tabler.ts +21 -2
- package/libs.json +45 -109
- package/package.json +40 -29
- package/scss/_config.scss +1 -0
- package/scss/_core.scss +6 -0
- package/scss/_deprecated-props.scss +40 -0
- package/scss/_deprecated.scss +153 -0
- package/scss/_extends.scss +6 -1
- package/scss/_maps.scss +10 -11
- package/scss/_mixins.scss +1 -0
- package/scss/_props.scss +40 -6
- package/scss/_settings.scss +3 -1
- package/scss/_utilities-marketing.scss +1 -2
- package/scss/_utilities.scss +62 -24
- package/scss/_variables-dark.scss +31 -42
- package/scss/_variables-deprecated.scss +60 -0
- package/scss/_variables.scss +252 -189
- package/scss/bootstrap/_buttons.scss +6 -33
- package/scss/bootstrap/_carousel.scss +6 -7
- package/scss/bootstrap/_list-group.scss +28 -14
- package/scss/bootstrap/_nav.scss +2 -2
- package/scss/bootstrap/_navbar.scss +6 -7
- package/scss/bootstrap/_offcanvas.scss +2 -0
- package/scss/bootstrap/_pagination.scss +7 -3
- package/scss/bootstrap/_reboot.scss +3 -3
- package/scss/bootstrap/_root.scss +10 -33
- package/scss/bootstrap/_tables.scss +7 -2
- package/scss/bootstrap/forms/_floating-labels.scss +1 -1
- package/scss/bootstrap/forms/_form-check.scss +54 -42
- package/scss/bootstrap/forms/_form-control.scss +4 -8
- package/scss/bootstrap/forms/_form-range.scss +4 -2
- package/scss/bootstrap/forms/_form-select.scss +4 -7
- package/scss/helpers/_index.scss +11 -4
- package/scss/layout/_accessibility.scss +2 -1
- package/scss/layout/_core.scss +0 -8
- package/scss/layout/_navbar.scss +129 -44
- package/scss/layout/_page.scss +15 -2
- package/scss/layout/_root.scss +4 -3
- package/scss/marketing/_hero.scss +0 -11
- package/scss/mixins/_deprecated.scss +110 -0
- package/scss/mixins/_functions.scss +67 -113
- package/scss/mixins/_mixins.scss +41 -8
- package/scss/mixins/bootstrap/_caret.scss +7 -6
- package/scss/mixins/bootstrap/_color-mode.scss +6 -0
- package/scss/mixins/bootstrap/_forms.scss +10 -11
- package/scss/mixins/bootstrap/_gradients.scss +1 -1
- package/scss/mixins/bootstrap/_table-variants.scss +4 -5
- package/scss/tabler-props.scss +5 -0
- package/scss/tabler-themes.scss +67 -66
- package/scss/tabler-vendors.scss +3 -1
- package/scss/tabler.scss +2 -0
- package/scss/ui/_accordion.scss +24 -31
- package/scss/ui/_alerts.scss +29 -8
- package/scss/ui/_avatars.scss +3 -1
- package/scss/ui/_badges.scss +2 -0
- package/scss/ui/_breadcrumbs.scss +2 -0
- package/scss/ui/_buttons.scss +83 -58
- package/scss/ui/_calendars.scss +4 -5
- package/scss/ui/_cards.scss +38 -33
- package/scss/ui/_carousel.scss +1 -1
- package/scss/ui/_chat.scss +2 -0
- package/scss/ui/_close.scss +5 -2
- package/scss/ui/_datagrid.scss +2 -0
- package/scss/ui/_datepicker.scss +425 -0
- package/scss/ui/_dropdowns.scss +5 -1
- package/scss/ui/_empty.scss +2 -0
- package/scss/ui/_forms.scss +33 -47
- package/scss/ui/_icons.scss +2 -0
- package/scss/ui/_legend.scss +145 -2
- package/scss/ui/_lists.scss +3 -3
- package/scss/ui/_markdown.scss +1 -0
- package/scss/ui/_modals.scss +20 -1
- package/scss/ui/_nav.scss +3 -3
- package/scss/ui/_offcanvas.scss +47 -0
- package/scss/ui/_patterns.scss +39 -18
- package/scss/ui/_progress.scss +5 -2
- package/scss/ui/_ribbons.scss +6 -2
- package/scss/ui/_segmented.scss +1 -1
- package/scss/ui/_signal.scss +57 -0
- package/scss/ui/_sortable.scss +73 -0
- package/scss/ui/_sparkline.scss +73 -0
- package/scss/ui/_stars.scss +2 -0
- package/scss/ui/_status.scss +2 -2
- package/scss/ui/_steps.scss +2 -0
- package/scss/ui/_switch-icon.scss +67 -11
- package/scss/ui/_tables.scss +3 -3
- package/scss/ui/_tags.scss +2 -0
- package/scss/ui/_timeline.scss +2 -0
- package/scss/ui/_tracking.scss +2 -0
- package/scss/ui/_type.scss +12 -4
- package/scss/ui/forms/_form-check.scss +10 -2
- package/scss/ui/forms/_form-colorinput.scss +4 -3
- package/scss/ui/forms/_form-custom.scss +0 -13
- package/scss/ui/forms/_form-imagecheck.scss +4 -3
- package/scss/ui/forms/_form-otp.scss +171 -0
- package/scss/ui/forms/_form-selectgroup.scss +7 -7
- package/scss/ui/forms/_strength.scss +63 -0
- package/scss/ui/forms/_validation.scss +5 -0
- package/scss/utils/_background.scss +2 -2
- package/scss/utils/_colors.scss +17 -14
- package/scss/vendor/_apexcharts.scss +10 -1
- package/scss/vendor/_coloris.scss +10 -3
- package/scss/vendor/_fslightbox.scss +2 -2
- package/scss/vendor/_jsvectormap.scss +1 -1
- package/scss/vendor/_nouislider.scss +2 -1
- package/scss/vendor/_tom-select.scss +84 -7
- package/dist/types/src/tabler.d.ts +0 -3
- package/js/src/tabler.ts +0 -17
- package/js/tests/helpers/fixture.ts +0 -33
- package/js/tests/unit/alert.spec.ts +0 -176
- package/js/tests/unit/base-component.spec.ts +0 -166
- package/js/tests/unit/button.spec.ts +0 -167
- package/js/tests/unit/carousel.spec.ts +0 -546
- package/js/tests/unit/collapse.spec.ts +0 -791
- package/js/tests/unit/dom/data.spec.ts +0 -180
- package/js/tests/unit/dom/event-handler.spec.ts +0 -460
- package/js/tests/unit/dom/manipulator.spec.ts +0 -201
- package/js/tests/unit/dom/selector-engine.spec.ts +0 -300
- package/js/tests/unit/dropdown.spec.ts +0 -1095
- package/js/tests/unit/modal.spec.ts +0 -629
- package/js/tests/unit/offcanvas.spec.ts +0 -434
- package/js/tests/unit/popover.spec.ts +0 -253
- package/js/tests/unit/scrollspy.spec.ts +0 -634
- package/js/tests/unit/sidebar.spec.ts +0 -118
- package/js/tests/unit/tab.spec.ts +0 -775
- package/js/tests/unit/tabler-theme.spec.ts +0 -100
- package/js/tests/unit/toast.spec.ts +0 -514
- package/js/tests/unit/tooltip.spec.ts +0 -679
- package/js/tests/unit/util/backdrop.spec.ts +0 -213
- package/js/tests/unit/util/component-functions.spec.ts +0 -88
- package/js/tests/unit/util/config.spec.ts +0 -150
- package/js/tests/unit/util/focustrap.spec.ts +0 -232
- package/js/tests/unit/util/index.spec.ts +0 -478
- package/js/tests/unit/util/sanitizer.spec.ts +0 -118
- package/js/tests/unit/util/scrollbar.spec.ts +0 -202
- package/js/tests/unit/util/swipe.spec.ts +0 -319
- package/js/tests/unit/util/template-factory.spec.ts +0 -233
- package/scss/tests/_add-subtract.test.scss +0 -48
- package/scss/tests/_border-radius.test.scss +0 -23
- package/scss/tests/_box-shadow.test.scss +0 -71
- package/scss/tests/_breakpoints.test.scss +0 -50
- package/scss/tests/_cards.test.scss +0 -31
- package/scss/tests/_caret.test.scss +0 -115
- package/scss/tests/_color-contrast.test.scss +0 -24
- package/scss/tests/_color-mode.test.scss +0 -28
- package/scss/tests/_color.test.scss +0 -44
- package/scss/tests/_colors-misc.test.scss +0 -80
- package/scss/tests/_css-var.test.scss +0 -37
- package/scss/tests/_divide.test.scss +0 -45
- package/scss/tests/_escape-svg.test.scss +0 -18
- package/scss/tests/_generate-utility.test.scss +0 -245
- package/scss/tests/_grid.test.scss +0 -153
- package/scss/tests/_maps.test.scss +0 -76
- package/scss/tests/_media-breakpoint.test.scss +0 -202
- package/scss/tests/_mixins-bootstrap.test.scss +0 -55
- package/scss/tests/_mixins.test.scss +0 -208
- package/scss/tests/_rfs.test.scss +0 -30
- package/scss/tests/_str-replace.test.scss +0 -34
- package/scss/tests/_transition.test.scss +0 -43
|
@@ -1,634 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, beforeAll, beforeEach, afterEach, vi } from 'vitest'
|
|
2
|
-
import ScrollSpy from '../../src/bootstrap/scrollspy'
|
|
3
|
-
import { clearFixture, createEvent, getFixture } from '../helpers/fixture'
|
|
4
|
-
|
|
5
|
-
class MockIntersectionObserver implements IntersectionObserver {
|
|
6
|
-
readonly root: Element | Document | null = null
|
|
7
|
-
readonly rootMargin: string = ''
|
|
8
|
-
readonly thresholds: ReadonlyArray<number> = []
|
|
9
|
-
callback: IntersectionObserverCallback
|
|
10
|
-
options: IntersectionObserverInit | undefined
|
|
11
|
-
|
|
12
|
-
constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit) {
|
|
13
|
-
this.callback = callback
|
|
14
|
-
this.options = options
|
|
15
|
-
this.root = (options?.root as Element | null) ?? null
|
|
16
|
-
this.rootMargin = options?.rootMargin ?? ''
|
|
17
|
-
this.thresholds = Array.isArray(options?.threshold) ? options!.threshold : [options?.threshold ?? 0]
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
observe = vi.fn()
|
|
21
|
-
unobserve = vi.fn()
|
|
22
|
-
disconnect = vi.fn()
|
|
23
|
-
takeRecords = vi.fn().mockReturnValue([])
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const getDummyFixture = () =>
|
|
27
|
-
['<nav id="navBar" class="navbar">', ' <ul class="nav">', ' <li class="nav-item"><a id="li-jsm-1" class="nav-link" href="#div-jsm-1">div 1</a></li>', ' </ul>', '</nav>', '<div class="content" data-bs-target="#navBar" style="overflow-y: auto">', ' <div id="div-jsm-1">div 1</div>', '</div>'].join('')
|
|
28
|
-
|
|
29
|
-
describe('ScrollSpy', () => {
|
|
30
|
-
let fixtureEl: HTMLElement
|
|
31
|
-
|
|
32
|
-
beforeAll(() => {
|
|
33
|
-
fixtureEl = getFixture()
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
beforeEach(() => {
|
|
37
|
-
vi.stubGlobal('IntersectionObserver', MockIntersectionObserver)
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
afterEach(() => {
|
|
41
|
-
clearFixture()
|
|
42
|
-
vi.restoreAllMocks()
|
|
43
|
-
vi.unstubAllGlobals()
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
describe('VERSION', () => {
|
|
47
|
-
it('should return plugin version', () => {
|
|
48
|
-
expect(typeof ScrollSpy.VERSION).toBe('string')
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
describe('Default', () => {
|
|
53
|
-
it('should return plugin default config', () => {
|
|
54
|
-
expect(typeof ScrollSpy.Default).toBe('object')
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
describe('DATA_KEY', () => {
|
|
59
|
-
it('should return plugin data key', () => {
|
|
60
|
-
expect(ScrollSpy.DATA_KEY).toBe('bs.scrollspy')
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
describe('constructor', () => {
|
|
65
|
-
it('should accept element as CSS selector or DOM element', () => {
|
|
66
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
67
|
-
|
|
68
|
-
const sSpyEl = fixtureEl.querySelector('.content')!
|
|
69
|
-
const sSpyBySelector = new ScrollSpy('.content')
|
|
70
|
-
const sSpyByElement = new ScrollSpy(sSpyEl)
|
|
71
|
-
|
|
72
|
-
expect(sSpyBySelector._element).toBe(sSpyEl)
|
|
73
|
-
expect(sSpyByElement._element).toBe(sSpyEl)
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
it('should set _rootElement to null if overflowY is visible', () => {
|
|
77
|
-
fixtureEl.innerHTML = ['<nav id="navigation" class="navbar">', ' <ul class="navbar-nav">', ' <li class="nav-item"><a class="nav-link" href="#one">One</a></li>', ' </ul>', '</nav>', '<div id="content" style="overflow-y: visible;">', ' <div id="one" style="height: 300px;">test</div>', '</div>'].join('')
|
|
78
|
-
|
|
79
|
-
const contentEl = fixtureEl.querySelector('#content')!
|
|
80
|
-
const originalGetComputedStyle = window.getComputedStyle
|
|
81
|
-
vi.spyOn(window, 'getComputedStyle').mockImplementation((el, pseudoElt?) => {
|
|
82
|
-
const result = originalGetComputedStyle(el, pseudoElt ?? undefined)
|
|
83
|
-
if (el === contentEl) {
|
|
84
|
-
return new Proxy(result, {
|
|
85
|
-
get(target, prop) {
|
|
86
|
-
if (prop === 'overflowY') return 'visible'
|
|
87
|
-
return (target as any)[prop]
|
|
88
|
-
},
|
|
89
|
-
}) as CSSStyleDeclaration
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return result
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
const scrollSpy = new ScrollSpy(contentEl, {
|
|
96
|
-
target: '#navigation',
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
expect(scrollSpy._rootElement).toBeNull()
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
it('should respect threshold option', () => {
|
|
103
|
-
fixtureEl.innerHTML = ['<ul id="navigation" class="navbar">', ' <a class="nav-link" href="#one">One</a>', '</ul>', '<div id="content">', ' <div id="one">test</div>', '</div>'].join('')
|
|
104
|
-
|
|
105
|
-
const scrollSpy = new ScrollSpy('#content', {
|
|
106
|
-
target: '#navigation',
|
|
107
|
-
threshold: [1],
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
expect(scrollSpy._observer!.thresholds).toEqual([1])
|
|
111
|
-
})
|
|
112
|
-
|
|
113
|
-
it('should parse string threshold from data attribute', () => {
|
|
114
|
-
fixtureEl.innerHTML = ['<ul id="navigation" class="navbar">', ' <a class="nav-link" href="#one">One</a>', '</ul>', '<div id="content" data-bs-threshold="0,0.2,1">', ' <div id="one">test</div>', '</div>'].join('')
|
|
115
|
-
|
|
116
|
-
const scrollSpy = new ScrollSpy('#content', {
|
|
117
|
-
target: '#navigation',
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
expect(scrollSpy._observer!.thresholds).toEqual([0, 0.2, 1])
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
it('should initialize with empty maps when sections are not visible', () => {
|
|
124
|
-
fixtureEl.innerHTML = [
|
|
125
|
-
'<nav id="navigation" class="navbar">',
|
|
126
|
-
' <ul class="navbar-nav">',
|
|
127
|
-
' <li class="nav-item"><a class="nav-link" href="#">One</a></li>',
|
|
128
|
-
' <li class="nav-item"><a class="nav-link" href="#two">Two</a></li>',
|
|
129
|
-
' </ul>',
|
|
130
|
-
'</nav>',
|
|
131
|
-
'<div id="content" style="height: 200px; overflow-y: auto;">',
|
|
132
|
-
' <div id="two" style="height: 300px;">test</div>',
|
|
133
|
-
'</div>',
|
|
134
|
-
].join('')
|
|
135
|
-
|
|
136
|
-
const scrollSpy = new ScrollSpy(fixtureEl.querySelector('#content')!, {
|
|
137
|
-
target: '#navigation',
|
|
138
|
-
})
|
|
139
|
-
|
|
140
|
-
// jsdom elements are not "visible" (getClientRects returns empty), so maps are empty
|
|
141
|
-
expect(scrollSpy._targetLinks).toBeInstanceOf(Map)
|
|
142
|
-
expect(scrollSpy._observableSections).toBeInstanceOf(Map)
|
|
143
|
-
})
|
|
144
|
-
})
|
|
145
|
-
|
|
146
|
-
describe('refresh', () => {
|
|
147
|
-
it('should disconnect existing observer', () => {
|
|
148
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
149
|
-
|
|
150
|
-
const el = fixtureEl.querySelector('.content')!
|
|
151
|
-
const scrollSpy = new ScrollSpy(el)
|
|
152
|
-
|
|
153
|
-
const spy = vi.spyOn(scrollSpy._observer!, 'disconnect')
|
|
154
|
-
|
|
155
|
-
scrollSpy.refresh()
|
|
156
|
-
|
|
157
|
-
expect(spy).toHaveBeenCalled()
|
|
158
|
-
})
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
describe('dispose', () => {
|
|
162
|
-
it('should dispose a scrollspy', () => {
|
|
163
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
164
|
-
|
|
165
|
-
const el = fixtureEl.querySelector('.content')!
|
|
166
|
-
const scrollSpy = new ScrollSpy(el)
|
|
167
|
-
|
|
168
|
-
expect(ScrollSpy.getInstance(el)).not.toBeNull()
|
|
169
|
-
|
|
170
|
-
scrollSpy.dispose()
|
|
171
|
-
|
|
172
|
-
expect(ScrollSpy.getInstance(el)).toBeNull()
|
|
173
|
-
})
|
|
174
|
-
})
|
|
175
|
-
|
|
176
|
-
describe('getInstance', () => {
|
|
177
|
-
it('should return scrollspy instance', () => {
|
|
178
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
179
|
-
|
|
180
|
-
const div = fixtureEl.querySelector('.content')!
|
|
181
|
-
const scrollSpy = new ScrollSpy(div, { target: fixtureEl.querySelector('#navBar')! })
|
|
182
|
-
|
|
183
|
-
expect(ScrollSpy.getInstance(div)).toBe(scrollSpy)
|
|
184
|
-
expect(ScrollSpy.getInstance(div)).toBeInstanceOf(ScrollSpy)
|
|
185
|
-
})
|
|
186
|
-
|
|
187
|
-
it('should return null if no instance', () => {
|
|
188
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
189
|
-
|
|
190
|
-
const div = fixtureEl.querySelector('.content')!
|
|
191
|
-
expect(ScrollSpy.getInstance(div)).toBeNull()
|
|
192
|
-
})
|
|
193
|
-
})
|
|
194
|
-
|
|
195
|
-
describe('getOrCreateInstance', () => {
|
|
196
|
-
it('should return scrollspy instance', () => {
|
|
197
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
198
|
-
|
|
199
|
-
const div = fixtureEl.querySelector('.content')!
|
|
200
|
-
const scrollSpy = new ScrollSpy(div)
|
|
201
|
-
|
|
202
|
-
expect(ScrollSpy.getOrCreateInstance(div)).toBe(scrollSpy)
|
|
203
|
-
expect(ScrollSpy.getOrCreateInstance(div)).toBeInstanceOf(ScrollSpy)
|
|
204
|
-
})
|
|
205
|
-
|
|
206
|
-
it('should return new instance when there is no scrollspy instance', () => {
|
|
207
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
208
|
-
|
|
209
|
-
const div = fixtureEl.querySelector('.content')!
|
|
210
|
-
|
|
211
|
-
expect(ScrollSpy.getInstance(div)).toBeNull()
|
|
212
|
-
expect(ScrollSpy.getOrCreateInstance(div)).toBeInstanceOf(ScrollSpy)
|
|
213
|
-
})
|
|
214
|
-
|
|
215
|
-
it('should return new instance with given configuration', () => {
|
|
216
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
217
|
-
|
|
218
|
-
const div = fixtureEl.querySelector('.content')!
|
|
219
|
-
|
|
220
|
-
const scrollspy = ScrollSpy.getOrCreateInstance(div, { offset: 1 })
|
|
221
|
-
expect(scrollspy).toBeInstanceOf(ScrollSpy)
|
|
222
|
-
expect(scrollspy._config.offset).toBe(1)
|
|
223
|
-
})
|
|
224
|
-
|
|
225
|
-
it('should return existing instance ignoring new config', () => {
|
|
226
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
227
|
-
|
|
228
|
-
const div = fixtureEl.querySelector('.content')!
|
|
229
|
-
const scrollspy = new ScrollSpy(div, { offset: 1 })
|
|
230
|
-
|
|
231
|
-
const scrollspy2 = ScrollSpy.getOrCreateInstance(div, { offset: 2 })
|
|
232
|
-
expect(scrollspy2).toBe(scrollspy)
|
|
233
|
-
expect(scrollspy2._config.offset).toBe(1)
|
|
234
|
-
})
|
|
235
|
-
})
|
|
236
|
-
|
|
237
|
-
describe('event handler', () => {
|
|
238
|
-
it('should create scrollspy on window load event', () => {
|
|
239
|
-
fixtureEl.innerHTML = ['<div id="nav"></div>', '<div id="wrapper" data-bs-spy="scroll" data-bs-target="#nav" style="overflow-y: auto"></div>'].join('')
|
|
240
|
-
|
|
241
|
-
const scrollSpyEl = fixtureEl.querySelector('#wrapper')!
|
|
242
|
-
|
|
243
|
-
window.dispatchEvent(createEvent('load'))
|
|
244
|
-
|
|
245
|
-
expect(ScrollSpy.getInstance(scrollSpyEl)).not.toBeNull()
|
|
246
|
-
})
|
|
247
|
-
})
|
|
248
|
-
|
|
249
|
-
describe('_observerCallback', () => {
|
|
250
|
-
it('should activate target on intersecting entry (scroll down)', () => {
|
|
251
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
252
|
-
|
|
253
|
-
const div = fixtureEl.querySelector('.content')!
|
|
254
|
-
const scrollSpy = new ScrollSpy(div)
|
|
255
|
-
|
|
256
|
-
const link = fixtureEl.querySelector('#li-jsm-1') as HTMLElement
|
|
257
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
258
|
-
scrollSpy._targetLinks.set('#div-jsm-1', link)
|
|
259
|
-
scrollSpy._observableSections.set('#div-jsm-1', section)
|
|
260
|
-
|
|
261
|
-
scrollSpy._previousScrollData.parentScrollTop = 0
|
|
262
|
-
|
|
263
|
-
const entry = {
|
|
264
|
-
isIntersecting: true,
|
|
265
|
-
target: section,
|
|
266
|
-
intersectionRatio: 1,
|
|
267
|
-
} as unknown as IntersectionObserverEntry
|
|
268
|
-
|
|
269
|
-
Object.defineProperty(section, 'offsetTop', { value: 100, configurable: true })
|
|
270
|
-
|
|
271
|
-
scrollSpy._observerCallback([entry])
|
|
272
|
-
|
|
273
|
-
expect(link.classList.contains('active')).toBe(true)
|
|
274
|
-
expect(scrollSpy._activeTarget).toBe(link)
|
|
275
|
-
})
|
|
276
|
-
|
|
277
|
-
it('should clear active class on non-intersecting entry', () => {
|
|
278
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
279
|
-
|
|
280
|
-
const div = fixtureEl.querySelector('.content')!
|
|
281
|
-
const scrollSpy = new ScrollSpy(div)
|
|
282
|
-
|
|
283
|
-
const link = fixtureEl.querySelector('#li-jsm-1') as HTMLElement
|
|
284
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
285
|
-
link.classList.add('active')
|
|
286
|
-
scrollSpy._activeTarget = link
|
|
287
|
-
scrollSpy._targetLinks.set('#div-jsm-1', link)
|
|
288
|
-
|
|
289
|
-
const entry = {
|
|
290
|
-
isIntersecting: false,
|
|
291
|
-
target: section,
|
|
292
|
-
} as unknown as IntersectionObserverEntry
|
|
293
|
-
|
|
294
|
-
scrollSpy._observerCallback([entry])
|
|
295
|
-
|
|
296
|
-
expect(scrollSpy._activeTarget).toBeNull()
|
|
297
|
-
})
|
|
298
|
-
|
|
299
|
-
it('should activate on scroll up when entry is higher', () => {
|
|
300
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
301
|
-
|
|
302
|
-
const div = fixtureEl.querySelector('.content')!
|
|
303
|
-
const scrollSpy = new ScrollSpy(div)
|
|
304
|
-
|
|
305
|
-
const link = fixtureEl.querySelector('#li-jsm-1') as HTMLElement
|
|
306
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
307
|
-
scrollSpy._targetLinks.set('#div-jsm-1', link)
|
|
308
|
-
scrollSpy._observableSections.set('#div-jsm-1', section)
|
|
309
|
-
|
|
310
|
-
scrollSpy._previousScrollData.parentScrollTop = 200
|
|
311
|
-
scrollSpy._previousScrollData.visibleEntryTop = 300
|
|
312
|
-
|
|
313
|
-
Object.defineProperty(section, 'offsetTop', { value: 100, configurable: true })
|
|
314
|
-
Object.defineProperty(div, 'scrollTop', { value: 100, configurable: true, writable: true })
|
|
315
|
-
|
|
316
|
-
const entry = {
|
|
317
|
-
isIntersecting: true,
|
|
318
|
-
target: section,
|
|
319
|
-
intersectionRatio: 1,
|
|
320
|
-
} as unknown as IntersectionObserverEntry
|
|
321
|
-
|
|
322
|
-
scrollSpy._observerCallback([entry])
|
|
323
|
-
|
|
324
|
-
expect(link.classList.contains('active')).toBe(true)
|
|
325
|
-
})
|
|
326
|
-
|
|
327
|
-
it('should not activate on scroll up when entry is lower', () => {
|
|
328
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
329
|
-
|
|
330
|
-
const div = fixtureEl.querySelector('.content')!
|
|
331
|
-
const scrollSpy = new ScrollSpy(div)
|
|
332
|
-
|
|
333
|
-
const link = fixtureEl.querySelector('#li-jsm-1') as HTMLElement
|
|
334
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
335
|
-
scrollSpy._targetLinks.set('#div-jsm-1', link)
|
|
336
|
-
scrollSpy._observableSections.set('#div-jsm-1', section)
|
|
337
|
-
|
|
338
|
-
scrollSpy._previousScrollData.parentScrollTop = 200
|
|
339
|
-
scrollSpy._previousScrollData.visibleEntryTop = 50
|
|
340
|
-
|
|
341
|
-
Object.defineProperty(section, 'offsetTop', { value: 100, configurable: true })
|
|
342
|
-
Object.defineProperty(div, 'scrollTop', { value: 100, configurable: true, writable: true })
|
|
343
|
-
|
|
344
|
-
const entry = {
|
|
345
|
-
isIntersecting: true,
|
|
346
|
-
target: section,
|
|
347
|
-
intersectionRatio: 1,
|
|
348
|
-
} as unknown as IntersectionObserverEntry
|
|
349
|
-
|
|
350
|
-
scrollSpy._observerCallback([entry])
|
|
351
|
-
|
|
352
|
-
expect(link.classList.contains('active')).toBe(false)
|
|
353
|
-
})
|
|
354
|
-
|
|
355
|
-
it('should not re-process if activeTarget is same', () => {
|
|
356
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
357
|
-
|
|
358
|
-
const div = fixtureEl.querySelector('.content')!
|
|
359
|
-
const scrollSpy = new ScrollSpy(div)
|
|
360
|
-
|
|
361
|
-
const link = fixtureEl.querySelector('#li-jsm-1') as HTMLElement
|
|
362
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
363
|
-
scrollSpy._targetLinks.set('#div-jsm-1', link)
|
|
364
|
-
scrollSpy._observableSections.set('#div-jsm-1', section)
|
|
365
|
-
|
|
366
|
-
link.classList.add('active')
|
|
367
|
-
scrollSpy._activeTarget = link
|
|
368
|
-
scrollSpy._previousScrollData.parentScrollTop = 0
|
|
369
|
-
|
|
370
|
-
Object.defineProperty(section, 'offsetTop', { value: 100, configurable: true })
|
|
371
|
-
|
|
372
|
-
const entry = {
|
|
373
|
-
isIntersecting: true,
|
|
374
|
-
target: section,
|
|
375
|
-
intersectionRatio: 1,
|
|
376
|
-
} as unknown as IntersectionObserverEntry
|
|
377
|
-
|
|
378
|
-
const spy = vi.fn()
|
|
379
|
-
div.addEventListener('activate.bs.scrollspy', spy)
|
|
380
|
-
|
|
381
|
-
scrollSpy._observerCallback([entry])
|
|
382
|
-
|
|
383
|
-
expect(spy).not.toHaveBeenCalled()
|
|
384
|
-
})
|
|
385
|
-
})
|
|
386
|
-
|
|
387
|
-
describe('_process', () => {
|
|
388
|
-
it('should add active class and trigger event', () => {
|
|
389
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
390
|
-
|
|
391
|
-
const div = fixtureEl.querySelector('.content')!
|
|
392
|
-
const scrollSpy = new ScrollSpy(div)
|
|
393
|
-
|
|
394
|
-
const link = fixtureEl.querySelector('#li-jsm-1') as HTMLElement
|
|
395
|
-
|
|
396
|
-
const spy = vi.fn()
|
|
397
|
-
div.addEventListener('activate.bs.scrollspy', spy)
|
|
398
|
-
|
|
399
|
-
scrollSpy._process(link)
|
|
400
|
-
|
|
401
|
-
expect(link.classList.contains('active')).toBe(true)
|
|
402
|
-
expect(scrollSpy._activeTarget).toBe(link)
|
|
403
|
-
expect(spy).toHaveBeenCalled()
|
|
404
|
-
})
|
|
405
|
-
})
|
|
406
|
-
|
|
407
|
-
describe('_activateParents', () => {
|
|
408
|
-
it('should activate dropdown-toggle for dropdown-item target', () => {
|
|
409
|
-
fixtureEl.innerHTML = [
|
|
410
|
-
'<nav class="navbar">',
|
|
411
|
-
' <div class="dropdown">',
|
|
412
|
-
' <a class="dropdown-toggle" href="#">Dropdown</a>',
|
|
413
|
-
' <div class="dropdown-menu">',
|
|
414
|
-
' <a class="dropdown-item" id="drop1" href="#one">One</a>',
|
|
415
|
-
' </div>',
|
|
416
|
-
' </div>',
|
|
417
|
-
'</nav>',
|
|
418
|
-
'<div class="content" style="overflow-y: auto">',
|
|
419
|
-
' <div id="one">one</div>',
|
|
420
|
-
'</div>',
|
|
421
|
-
].join('')
|
|
422
|
-
|
|
423
|
-
const div = fixtureEl.querySelector('.content')!
|
|
424
|
-
const scrollSpy = new ScrollSpy(div)
|
|
425
|
-
const dropItem = fixtureEl.querySelector('#drop1') as HTMLElement
|
|
426
|
-
const dropToggle = fixtureEl.querySelector('.dropdown-toggle') as HTMLElement
|
|
427
|
-
|
|
428
|
-
scrollSpy._activateParents(dropItem)
|
|
429
|
-
|
|
430
|
-
expect(dropToggle.classList.contains('active')).toBe(true)
|
|
431
|
-
})
|
|
432
|
-
|
|
433
|
-
it('should activate nav parents for nav-link target', () => {
|
|
434
|
-
fixtureEl.innerHTML = ['<nav class="navbar">', ' <nav class="nav">', ' <a class="nav-link" id="a1" href="#one">One</a>', ' </nav>', '</nav>', '<div class="content" style="overflow-y: auto">', ' <div id="one">one</div>', '</div>'].join('')
|
|
435
|
-
|
|
436
|
-
const div = fixtureEl.querySelector('.content')!
|
|
437
|
-
const scrollSpy = new ScrollSpy(div)
|
|
438
|
-
const link = fixtureEl.querySelector('#a1') as HTMLElement
|
|
439
|
-
|
|
440
|
-
scrollSpy._activateParents(link)
|
|
441
|
-
|
|
442
|
-
// nav-link itself is handled by _process, parents via SelectorEngine.prev
|
|
443
|
-
expect(link).toBeDefined()
|
|
444
|
-
})
|
|
445
|
-
})
|
|
446
|
-
|
|
447
|
-
describe('_clearActiveClass', () => {
|
|
448
|
-
it('should remove active class from parent and children', () => {
|
|
449
|
-
fixtureEl.innerHTML = ['<nav class="navbar active">', ' <a class="nav-link active" href="#one">One</a>', ' <a class="nav-link active" href="#two">Two</a>', '</nav>', '<div class="content" style="overflow-y: auto">', ' <div id="one">one</div>', '</div>'].join('')
|
|
450
|
-
|
|
451
|
-
const div = fixtureEl.querySelector('.content')!
|
|
452
|
-
const scrollSpy = new ScrollSpy(div)
|
|
453
|
-
const navbar = fixtureEl.querySelector('.navbar') as HTMLElement
|
|
454
|
-
|
|
455
|
-
scrollSpy._clearActiveClass(navbar)
|
|
456
|
-
|
|
457
|
-
expect(navbar.classList.contains('active')).toBe(false)
|
|
458
|
-
const activeLinks = fixtureEl.querySelectorAll('.nav-link.active')
|
|
459
|
-
expect(activeLinks).toHaveLength(0)
|
|
460
|
-
})
|
|
461
|
-
})
|
|
462
|
-
|
|
463
|
-
describe('_initializeTargetsAndObservables', () => {
|
|
464
|
-
it('should populate maps when sections are visible', () => {
|
|
465
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
466
|
-
|
|
467
|
-
const div = fixtureEl.querySelector('.content')!
|
|
468
|
-
const scrollSpy = new ScrollSpy(div)
|
|
469
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
470
|
-
|
|
471
|
-
Object.defineProperty(section, 'getClientRects', {
|
|
472
|
-
value: () => [{ width: 100, height: 100 }],
|
|
473
|
-
configurable: true,
|
|
474
|
-
})
|
|
475
|
-
|
|
476
|
-
scrollSpy._initializeTargetsAndObservables()
|
|
477
|
-
|
|
478
|
-
expect(scrollSpy._targetLinks.size).toBe(1)
|
|
479
|
-
expect(scrollSpy._observableSections.size).toBe(1)
|
|
480
|
-
})
|
|
481
|
-
|
|
482
|
-
it('should skip disabled anchors', () => {
|
|
483
|
-
fixtureEl.innerHTML = [
|
|
484
|
-
'<nav id="navBar" class="navbar">',
|
|
485
|
-
' <ul class="nav">',
|
|
486
|
-
' <a class="nav-link" href="#div1" disabled>div 1</a>',
|
|
487
|
-
' <a class="nav-link disabled" href="#div2">div 2</a>',
|
|
488
|
-
' </ul>',
|
|
489
|
-
'</nav>',
|
|
490
|
-
'<div class="content" style="overflow-y: auto">',
|
|
491
|
-
' <div id="div1">div 1</div>',
|
|
492
|
-
' <div id="div2">div 2</div>',
|
|
493
|
-
'</div>',
|
|
494
|
-
].join('')
|
|
495
|
-
|
|
496
|
-
const div = fixtureEl.querySelector('.content')!
|
|
497
|
-
const scrollSpy = new ScrollSpy(div)
|
|
498
|
-
|
|
499
|
-
expect(scrollSpy._targetLinks.size).toBe(0)
|
|
500
|
-
})
|
|
501
|
-
})
|
|
502
|
-
|
|
503
|
-
describe('_activateParents (nav prev)', () => {
|
|
504
|
-
it('should activate prev sibling nav-link in list-group', () => {
|
|
505
|
-
fixtureEl.innerHTML = [
|
|
506
|
-
'<nav class="navbar">',
|
|
507
|
-
' <div class="list-group">',
|
|
508
|
-
' <a class="list-group-item" id="a1" href="#one">One</a>',
|
|
509
|
-
' <a class="list-group-item" id="a2" href="#two">Two</a>',
|
|
510
|
-
' </div>',
|
|
511
|
-
'</nav>',
|
|
512
|
-
'<div class="content" style="overflow-y: auto">',
|
|
513
|
-
' <div id="one">one</div>',
|
|
514
|
-
' <div id="two">two</div>',
|
|
515
|
-
'</div>',
|
|
516
|
-
].join('')
|
|
517
|
-
|
|
518
|
-
const div = fixtureEl.querySelector('.content')!
|
|
519
|
-
const scrollSpy = new ScrollSpy(div)
|
|
520
|
-
const link2 = fixtureEl.querySelector('#a2') as HTMLElement
|
|
521
|
-
|
|
522
|
-
scrollSpy._activateParents(link2)
|
|
523
|
-
// list-group-item doesn't have .dropdown-item, so it goes through nav parents path
|
|
524
|
-
expect(link2).toBeDefined()
|
|
525
|
-
})
|
|
526
|
-
})
|
|
527
|
-
|
|
528
|
-
describe('smoothScroll', () => {
|
|
529
|
-
it('should not enable smoothScroll by default', () => {
|
|
530
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
531
|
-
|
|
532
|
-
const div = fixtureEl.querySelector('.content') as HTMLElement
|
|
533
|
-
div.scrollTo = vi.fn()
|
|
534
|
-
|
|
535
|
-
new ScrollSpy(div, { offset: 1 })
|
|
536
|
-
|
|
537
|
-
const link = fixtureEl.querySelector('[href="#div-jsm-1"]') as HTMLElement
|
|
538
|
-
link.click()
|
|
539
|
-
|
|
540
|
-
expect(div.scrollTo).not.toHaveBeenCalled()
|
|
541
|
-
})
|
|
542
|
-
|
|
543
|
-
it('should scrollTo observable section on anchor click', () => {
|
|
544
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
545
|
-
|
|
546
|
-
const div = fixtureEl.querySelector('.content') as HTMLElement
|
|
547
|
-
div.scrollTo = vi.fn()
|
|
548
|
-
|
|
549
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
550
|
-
Object.defineProperty(section, 'getClientRects', {
|
|
551
|
-
value: () => [{ width: 100, height: 100 }],
|
|
552
|
-
configurable: true,
|
|
553
|
-
})
|
|
554
|
-
|
|
555
|
-
const scrollSpy = new ScrollSpy(div, { offset: 1, smoothScroll: true })
|
|
556
|
-
scrollSpy._initializeTargetsAndObservables()
|
|
557
|
-
|
|
558
|
-
const link = fixtureEl.querySelector('[href="#div-jsm-1"]') as HTMLElement
|
|
559
|
-
link.click()
|
|
560
|
-
|
|
561
|
-
expect(div.scrollTo).toHaveBeenCalled()
|
|
562
|
-
})
|
|
563
|
-
|
|
564
|
-
it('should fallback to scrollTop if scrollTo is not available', () => {
|
|
565
|
-
fixtureEl.innerHTML = getDummyFixture()
|
|
566
|
-
|
|
567
|
-
const div = fixtureEl.querySelector('.content') as HTMLElement
|
|
568
|
-
const section = fixtureEl.querySelector('#div-jsm-1') as HTMLElement
|
|
569
|
-
Object.defineProperty(section, 'getClientRects', {
|
|
570
|
-
value: () => [{ width: 100, height: 100 }],
|
|
571
|
-
configurable: true,
|
|
572
|
-
})
|
|
573
|
-
|
|
574
|
-
// Manually set _rootElement to a plain object without scrollTo
|
|
575
|
-
const scrollSpy = new ScrollSpy(div, { offset: 1, smoothScroll: true })
|
|
576
|
-
scrollSpy._initializeTargetsAndObservables()
|
|
577
|
-
|
|
578
|
-
// Remove scrollTo to test fallback
|
|
579
|
-
delete (div as any).scrollTo
|
|
580
|
-
scrollSpy._rootElement = div
|
|
581
|
-
|
|
582
|
-
// Re-enable smoothScroll handler
|
|
583
|
-
scrollSpy._maybeEnableSmoothScroll()
|
|
584
|
-
|
|
585
|
-
const link = fixtureEl.querySelector('[href="#div-jsm-1"]') as HTMLElement
|
|
586
|
-
link.click()
|
|
587
|
-
|
|
588
|
-
// Should not throw - scrollTop assignment is the fallback
|
|
589
|
-
expect(ScrollSpy.getInstance(div)).not.toBeNull()
|
|
590
|
-
})
|
|
591
|
-
|
|
592
|
-
it('should not scroll if section not found in observables', () => {
|
|
593
|
-
fixtureEl.innerHTML = [
|
|
594
|
-
'<nav id="navBar" class="navbar">',
|
|
595
|
-
' <ul class="nav">',
|
|
596
|
-
' <a id="anchor-1" href="#div-jsm-1">div 1</a>',
|
|
597
|
-
' <a id="anchor-2" href="#foo">div 2</a>',
|
|
598
|
-
' </ul>',
|
|
599
|
-
'</nav>',
|
|
600
|
-
'<div class="content" data-bs-target="#navBar" style="overflow-y: auto">',
|
|
601
|
-
' <div id="div-jsm-1">div 1</div>',
|
|
602
|
-
'</div>',
|
|
603
|
-
].join('')
|
|
604
|
-
|
|
605
|
-
const div = fixtureEl.querySelector('.content') as HTMLElement
|
|
606
|
-
div.scrollTo = vi.fn()
|
|
607
|
-
|
|
608
|
-
new ScrollSpy(div, { offset: 1, smoothScroll: true })
|
|
609
|
-
|
|
610
|
-
const anchor2 = fixtureEl.querySelector('#anchor-2') as HTMLElement
|
|
611
|
-
anchor2.click()
|
|
612
|
-
expect(div.scrollTo).not.toHaveBeenCalled()
|
|
613
|
-
})
|
|
614
|
-
})
|
|
615
|
-
|
|
616
|
-
describe('data-tblr-spy', () => {
|
|
617
|
-
it('should create scrollspy on window load with data-tblr-spy="scroll"', () => {
|
|
618
|
-
fixtureEl.innerHTML = ['<div id="nav"></div>', '<div id="wrapper" data-tblr-spy="scroll" data-bs-target="#nav" style="overflow-y: auto"></div>'].join('')
|
|
619
|
-
|
|
620
|
-
const scrollSpyEl = fixtureEl.querySelector('#wrapper')!
|
|
621
|
-
|
|
622
|
-
window.dispatchEvent(createEvent('load'))
|
|
623
|
-
|
|
624
|
-
expect(ScrollSpy.getInstance(scrollSpyEl)).not.toBeNull()
|
|
625
|
-
})
|
|
626
|
-
})
|
|
627
|
-
describe('target ids', () => {
|
|
628
|
-
it('should accept anchors whose target id starts with a digit', () => {
|
|
629
|
-
fixtureEl.innerHTML = ['<ul id="navigation" class="navbar">', ' <a class="nav-link" href="#1-intro">Intro</a>', '</ul>', '<div id="content">', ' <div id="1-intro">test</div>', '</div>'].join('')
|
|
630
|
-
|
|
631
|
-
expect(() => new ScrollSpy('#content', { target: '#navigation' })).not.toThrow()
|
|
632
|
-
})
|
|
633
|
-
})
|
|
634
|
-
})
|