@tabler/core 1.5.0 → 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 +208 -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 +208 -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 +5346 -6083
- 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 +5343 -6083
- 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 +41 -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 +280 -206
- 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 +139 -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 +50 -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 +9 -4
- 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 +6 -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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Bootstrap otp-input.ts
|
|
4
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5
|
+
* --------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
import BaseComponent from './bootstrap/base-component';
|
|
8
|
+
import type { ElementSelector } from './bootstrap/types';
|
|
9
|
+
type OtpInputType = 'numeric' | 'alphanumeric' | 'alpha';
|
|
10
|
+
type ComponentConfig = {
|
|
11
|
+
groups: number[] | null;
|
|
12
|
+
length: number | null;
|
|
13
|
+
mask: boolean;
|
|
14
|
+
separator: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
type ComponentConfigInput = Partial<ComponentConfig> & Record<string, unknown>;
|
|
18
|
+
declare const TYPES: Record<OtpInputType, {
|
|
19
|
+
inputmode: string;
|
|
20
|
+
pattern: string;
|
|
21
|
+
filter: RegExp;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Class definition
|
|
25
|
+
*
|
|
26
|
+
* A single real `<input>` inside `.otp` is turned into a transparent overlay
|
|
27
|
+
* once its value is rendered into one `.otp-slot` per character, so screen
|
|
28
|
+
* readers, password managers and SMS autofill still see one ordinary field.
|
|
29
|
+
*/
|
|
30
|
+
declare class OtpInput extends BaseComponent {
|
|
31
|
+
_element: HTMLElement;
|
|
32
|
+
_config: ComponentConfig;
|
|
33
|
+
_input: HTMLInputElement;
|
|
34
|
+
_type: (typeof TYPES)[OtpInputType];
|
|
35
|
+
_length: number;
|
|
36
|
+
_slots: HTMLElement[];
|
|
37
|
+
_slotsContainer: HTMLElement | null;
|
|
38
|
+
_pointerActive: boolean;
|
|
39
|
+
_pointerIndex: number;
|
|
40
|
+
_onInput: () => void;
|
|
41
|
+
_onBeforeInput: (event: Event) => void;
|
|
42
|
+
_onFocus: () => void;
|
|
43
|
+
_onPointerDown: (event: Event) => void;
|
|
44
|
+
_onSync: () => void;
|
|
45
|
+
_onSelectionChange: () => void;
|
|
46
|
+
constructor(element: ElementSelector, config?: ComponentConfigInput);
|
|
47
|
+
static get Default(): ComponentConfig;
|
|
48
|
+
static get DefaultType(): Record<keyof ComponentConfig, string>;
|
|
49
|
+
static get NAME(): string;
|
|
50
|
+
getValue(): string;
|
|
51
|
+
setValue(value: string | number): void;
|
|
52
|
+
clear(): void;
|
|
53
|
+
focus(): void;
|
|
54
|
+
dispose(): void;
|
|
55
|
+
_resolveLength(): number;
|
|
56
|
+
_setupInput(): void;
|
|
57
|
+
_renderSlots(): void;
|
|
58
|
+
_addEventListeners(): void;
|
|
59
|
+
_handleFocus(): void;
|
|
60
|
+
_handleInput(): void;
|
|
61
|
+
_handleBeforeInput(event: InputEvent): void;
|
|
62
|
+
_handlePointerDown(event: PointerEvent): void;
|
|
63
|
+
_slotIndexFromPoint(x: number): number | null;
|
|
64
|
+
_afterValueChange(): void;
|
|
65
|
+
_firstEmptyIndex(): number;
|
|
66
|
+
_selectSlot(index: number): void;
|
|
67
|
+
_sanitize(value: string): string;
|
|
68
|
+
_render(): void;
|
|
69
|
+
_checkComplete(): void;
|
|
70
|
+
}
|
|
71
|
+
export default OtpInput;
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Tabler sortable.ts
|
|
4
|
+
* Licensed under MIT (https://github.com/tabler/tabler/blob/dev/LICENSE)
|
|
5
|
+
* --------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
import BaseComponent from './bootstrap/base-component';
|
|
8
|
+
import type { ElementSelector } from './bootstrap/types';
|
|
9
|
+
interface SortableInstance {
|
|
10
|
+
option(name: string, value?: unknown): unknown;
|
|
11
|
+
toArray(): string[];
|
|
12
|
+
sort(order: string[], useAnimation?: boolean): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
}
|
|
15
|
+
type ComponentConfig = Record<string, unknown>;
|
|
16
|
+
type ComponentConfigInput = Record<string, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Class definition
|
|
19
|
+
*
|
|
20
|
+
* Wraps SortableJS (https://sortablejs.github.io/Sortable/), loaded separately
|
|
21
|
+
* as `window.Sortable`. Without the plugin the component is inert. Options come
|
|
22
|
+
* from the `data-sortable` attribute as JSON, or from the config object.
|
|
23
|
+
* Turn `forceFallback` on so the dragged copy can be styled with `.sortable-drag`.
|
|
24
|
+
*/
|
|
25
|
+
declare class Sortable extends BaseComponent {
|
|
26
|
+
_element: HTMLElement;
|
|
27
|
+
_config: ComponentConfig;
|
|
28
|
+
_sortable: SortableInstance | null;
|
|
29
|
+
constructor(element: ElementSelector, config?: ComponentConfigInput);
|
|
30
|
+
static get Default(): ComponentConfig;
|
|
31
|
+
static get DefaultType(): Record<string, string>;
|
|
32
|
+
static get NAME(): string;
|
|
33
|
+
/** The SortableJS instance, for options the component does not expose. */
|
|
34
|
+
get sortable(): SortableInstance | null;
|
|
35
|
+
toArray(): string[];
|
|
36
|
+
sort(order: string[], useAnimation?: boolean): void;
|
|
37
|
+
dispose(): void;
|
|
38
|
+
_mergeConfigObj(config?: Record<string, unknown>, element?: HTMLElement): Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
export default Sortable;
|
|
41
|
+
export type { SortableInstance };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Tabler sparkline.ts
|
|
4
|
+
* Licensed under MIT (https://github.com/tabler/tabler/blob/dev/LICENSE)
|
|
5
|
+
* --------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
import BaseComponent from './bootstrap/base-component';
|
|
8
|
+
import type { ComponentConfig as BaseConfig, ElementSelector } from './bootstrap/types';
|
|
9
|
+
type SparklineType = 'line' | 'bar' | 'circle' | 'tristate';
|
|
10
|
+
type SparklineFill = 'none' | 'auto';
|
|
11
|
+
type SparklineSpot = 'none' | 'min' | 'max' | 'last';
|
|
12
|
+
type SparklineValuesInput = number[] | number | string;
|
|
13
|
+
type ComponentConfig = {
|
|
14
|
+
type: SparklineType;
|
|
15
|
+
values: number[];
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
min: number | null;
|
|
19
|
+
max: number | null;
|
|
20
|
+
fill: SparklineFill;
|
|
21
|
+
spot: SparklineSpot;
|
|
22
|
+
pad: number;
|
|
23
|
+
barGap: number;
|
|
24
|
+
barRadius: number;
|
|
25
|
+
label: string | number | boolean | null;
|
|
26
|
+
threshold: number | null;
|
|
27
|
+
animation: number;
|
|
28
|
+
};
|
|
29
|
+
type ComponentConfigInput = Partial<Omit<ComponentConfig, 'values'>> & {
|
|
30
|
+
values?: SparklineValuesInput;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Class definition
|
|
34
|
+
*
|
|
35
|
+
* Tiny inline SVG chart (line, bar or circle) rendered from data attributes:
|
|
36
|
+
*
|
|
37
|
+
* <span class="sparkline" data-bs-toggle="sparkline" data-bs-type="line" data-bs-values="3,4,2,6,5,8,7"></span>
|
|
38
|
+
*
|
|
39
|
+
* Colours and stroke widths come from the `--tblr-sparkline-*` custom
|
|
40
|
+
* properties, so a text colour utility on the element themes the chart.
|
|
41
|
+
*/
|
|
42
|
+
declare class Sparkline extends BaseComponent {
|
|
43
|
+
_element: HTMLElement;
|
|
44
|
+
_config: ComponentConfig;
|
|
45
|
+
_userConfig: ComponentConfigInput;
|
|
46
|
+
_frame: number;
|
|
47
|
+
constructor(element: ElementSelector, config?: ComponentConfigInput);
|
|
48
|
+
static get Default(): ComponentConfig;
|
|
49
|
+
static get DefaultType(): Record<keyof ComponentConfig, string>;
|
|
50
|
+
static get NAME(): string;
|
|
51
|
+
update(values: SparklineValuesInput): void;
|
|
52
|
+
render(): void;
|
|
53
|
+
dispose(): void;
|
|
54
|
+
_configAfterMerge(config: BaseConfig): BaseConfig;
|
|
55
|
+
_labelText(): string;
|
|
56
|
+
_circleRatio(): number;
|
|
57
|
+
_canAnimate(from: SVGSVGElement, to: SVGSVGElement): boolean;
|
|
58
|
+
_animate(from: SVGSVGElement, to: SVGSVGElement): void;
|
|
59
|
+
_hairline(svg: SVGSVGElement, y: number, color: string, dashed?: boolean): void;
|
|
60
|
+
_createSvg(): SVGSVGElement;
|
|
61
|
+
_renderLine(): SVGSVGElement;
|
|
62
|
+
_areaPath(ys: number[], step: number, height: number): string;
|
|
63
|
+
_renderBars(): SVGSVGElement;
|
|
64
|
+
_renderTristate(): SVGSVGElement;
|
|
65
|
+
_renderCircle(): SVGSVGElement;
|
|
66
|
+
}
|
|
67
|
+
export default Sparkline;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Tabler strength.ts
|
|
4
|
+
* Licensed under MIT (https://github.com/tabler/tabler/blob/dev/LICENSE)
|
|
5
|
+
* --------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
import BaseComponent from './bootstrap/base-component';
|
|
8
|
+
import type { ElementSelector } from './bootstrap/types';
|
|
9
|
+
type StrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
|
|
10
|
+
type ComponentConfig = {
|
|
11
|
+
/** selector of the password field; without it the meter looks in its own parent */
|
|
12
|
+
input: string | null;
|
|
13
|
+
minLength: number;
|
|
14
|
+
messages: Record<StrengthLevel, string>;
|
|
15
|
+
weights: Record<string, number>;
|
|
16
|
+
/** score bounds: weak up to the first, fair to the second, good to the third */
|
|
17
|
+
thresholds: number[];
|
|
18
|
+
/** replaces the built-in scoring; gets the password, returns a number */
|
|
19
|
+
scorer: ((password: string) => number) | null;
|
|
20
|
+
};
|
|
21
|
+
type ComponentConfigInput = Partial<ComponentConfig> & Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* Class definition
|
|
24
|
+
*
|
|
25
|
+
* Rates the password typed in a field and fills a segmented meter. The score
|
|
26
|
+
* is a hint for the user, never a validation: check the password on the
|
|
27
|
+
* server as well.
|
|
28
|
+
*/
|
|
29
|
+
declare class Strength extends BaseComponent {
|
|
30
|
+
_element: HTMLElement;
|
|
31
|
+
_config: ComponentConfig;
|
|
32
|
+
_input: HTMLInputElement | null;
|
|
33
|
+
_segments: HTMLElement[];
|
|
34
|
+
_text: HTMLElement | null;
|
|
35
|
+
_emptyText: string;
|
|
36
|
+
_level: StrengthLevel | null;
|
|
37
|
+
_onInput: () => void;
|
|
38
|
+
constructor(element: ElementSelector, config?: ComponentConfigInput);
|
|
39
|
+
static get Default(): ComponentConfig;
|
|
40
|
+
static get DefaultType(): Record<keyof ComponentConfig, string>;
|
|
41
|
+
static get NAME(): string;
|
|
42
|
+
get level(): StrengthLevel | null;
|
|
43
|
+
evaluate(): void;
|
|
44
|
+
dispose(): void;
|
|
45
|
+
_getInput(): HTMLInputElement | null;
|
|
46
|
+
_getText(): HTMLElement | null;
|
|
47
|
+
_setUpAria(): void;
|
|
48
|
+
_score(password: string): number;
|
|
49
|
+
_level_(score: number): StrengthLevel | null;
|
|
50
|
+
_render(level: StrengthLevel | null): void;
|
|
51
|
+
}
|
|
52
|
+
export default Strength;
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Tabler switch-icon.ts
|
|
4
|
+
* Licensed under MIT (https://github.com/tabler/tabler/blob/dev/LICENSE)
|
|
5
|
+
* --------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
import BaseComponent from './bootstrap/base-component';
|
|
8
|
+
import type { ElementSelector } from './bootstrap/types';
|
|
9
|
+
type ComponentConfig = Record<string, never>;
|
|
10
|
+
type ComponentConfigInput = Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Class definition
|
|
13
|
+
*
|
|
14
|
+
* A toggle button that swaps between two icons. The state is the `active`
|
|
15
|
+
* class, mirrored in `aria-pressed`. The element is the `.switch-icon` itself,
|
|
16
|
+
* or a button (e.g. `.btn-action`) wrapping one: the classes then go on the
|
|
17
|
+
* inner `.switch-icon` and the ARIA state stays on the button.
|
|
18
|
+
*/
|
|
19
|
+
declare class SwitchIcon extends BaseComponent {
|
|
20
|
+
#private;
|
|
21
|
+
_element: HTMLElement;
|
|
22
|
+
_config: ComponentConfig;
|
|
23
|
+
constructor(element: ElementSelector, config?: ComponentConfigInput);
|
|
24
|
+
static get Default(): ComponentConfig;
|
|
25
|
+
static get DefaultType(): Record<keyof ComponentConfig, string>;
|
|
26
|
+
static get NAME(): string;
|
|
27
|
+
get isActive(): boolean;
|
|
28
|
+
get isLoading(): boolean;
|
|
29
|
+
toggle(force?: boolean): void;
|
|
30
|
+
}
|
|
31
|
+
export default SwitchIcon;
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const themeDefaults: {
|
|
9
9
|
readonly theme: 'auto';
|
|
10
|
-
readonly 'theme-base': '
|
|
10
|
+
readonly 'theme-base': 'neutral';
|
|
11
11
|
readonly 'theme-font': 'sans-serif';
|
|
12
12
|
readonly 'theme-primary': 'blue';
|
|
13
13
|
readonly 'theme-radius': '1';
|
|
14
14
|
readonly layout: 'default';
|
|
15
15
|
readonly navbar: 'default';
|
|
16
16
|
readonly 'navbar-position': 'horizontal';
|
|
17
|
+
readonly 'navbar-style': 'default';
|
|
17
18
|
readonly 'navbar-theme': 'default';
|
|
19
|
+
readonly 'offcanvas-style': 'default';
|
|
18
20
|
readonly sidebar: 'default';
|
|
19
21
|
};
|
|
20
22
|
export type ThemeKey = keyof typeof themeDefaults;
|
package/dist/types/tabler.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import './src/autosize';
|
|
2
|
+
import './src/clipboard';
|
|
3
|
+
import './src/confetti';
|
|
2
4
|
import './src/countup';
|
|
5
|
+
import './src/datepicker';
|
|
3
6
|
import './src/input-mask';
|
|
4
7
|
import './src/dropdown';
|
|
5
8
|
import './src/sidebar';
|
|
@@ -9,5 +12,19 @@ import './src/switch-icon';
|
|
|
9
12
|
import './src/tab';
|
|
10
13
|
import './src/toast';
|
|
11
14
|
import './src/sortable';
|
|
15
|
+
import './src/otp-input';
|
|
16
|
+
import './src/sparkline';
|
|
17
|
+
import './src/strength';
|
|
12
18
|
export * from './src/bootstrap';
|
|
13
|
-
export
|
|
19
|
+
export { default as Autosize } from './src/autosize';
|
|
20
|
+
export { default as Clipboard } from './src/clipboard';
|
|
21
|
+
export { default as Confetti } from './src/confetti';
|
|
22
|
+
export { default as CountUp } from './src/countup';
|
|
23
|
+
export { default as Datepicker } from './src/datepicker';
|
|
24
|
+
export { default as InputMask } from './src/input-mask';
|
|
25
|
+
export { default as OtpInput } from './src/otp-input';
|
|
26
|
+
export { default as Sortable } from './src/sortable';
|
|
27
|
+
export { default as Sparkline } from './src/sparkline';
|
|
28
|
+
export { default as Strength } from './src/strength';
|
|
29
|
+
export { default as SwitchIcon } from './src/switch-icon';
|
|
30
|
+
export * as tabler from './src/deprecated';
|
package/js/src/autosize.ts
CHANGED
|
@@ -1,11 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Tabler autosize.ts
|
|
4
|
+
* Licensed under MIT (https://github.com/tabler/tabler/blob/dev/LICENSE)
|
|
5
|
+
* --------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import BaseComponent from './bootstrap/base-component'
|
|
9
|
+
import EventHandler from './bootstrap/dom/event-handler'
|
|
10
|
+
import { initAll } from './bootstrap/util/component-functions'
|
|
11
|
+
import type { ElementSelector } from './bootstrap/types'
|
|
12
|
+
|
|
13
|
+
type ComponentConfig = Record<string, never>
|
|
14
|
+
|
|
15
|
+
type ComponentConfigInput = Record<string, unknown>
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Constants
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
const NAME = 'autosize'
|
|
22
|
+
const DATA_KEY = `bs.${NAME}`
|
|
23
|
+
const EVENT_KEY = `.${DATA_KEY}`
|
|
24
|
+
|
|
25
|
+
const EVENT_RESIZED = `resized${EVENT_KEY}`
|
|
26
|
+
|
|
27
|
+
const SELECTOR_DATA_TOGGLE = `[data-bs-toggle="${NAME}"], [data-tblr-toggle="${NAME}"]`
|
|
28
|
+
|
|
29
|
+
const Default: ComponentConfig = {}
|
|
3
30
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
31
|
+
const DefaultType: Record<keyof ComponentConfig, string> = {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Class definition
|
|
35
|
+
*
|
|
36
|
+
* Grows a textarea with its content and shrinks it back when text is removed.
|
|
37
|
+
* The height follows `scrollHeight`, so `rows` sets the starting height and
|
|
38
|
+
* `max-height` caps the growth, after which the field scrolls again.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
class Autosize extends BaseComponent {
|
|
42
|
+
declare _element: HTMLTextAreaElement
|
|
43
|
+
declare _config: ComponentConfig
|
|
44
|
+
_observer: ResizeObserver | null = null
|
|
45
|
+
_inlineStyle = ''
|
|
46
|
+
_width = 0
|
|
47
|
+
_onInput = (): void => this.update()
|
|
48
|
+
|
|
49
|
+
constructor(element: ElementSelector, config?: ComponentConfigInput) {
|
|
50
|
+
super(element, config)
|
|
51
|
+
|
|
52
|
+
if (!this._element) {
|
|
53
|
+
return
|
|
8
54
|
}
|
|
9
|
-
|
|
55
|
+
|
|
56
|
+
this._inlineStyle = this._element.getAttribute('style') ?? ''
|
|
57
|
+
this._element.style.resize = 'none'
|
|
58
|
+
this._element.style.overflowY = 'hidden'
|
|
59
|
+
|
|
60
|
+
// `input` is not in EventHandler's list of native events, so it is bound
|
|
61
|
+
// directly.
|
|
62
|
+
this._element.addEventListener('input', this._onInput)
|
|
63
|
+
|
|
64
|
+
// Text wraps differently when the field changes width (a resized window,
|
|
65
|
+
// a collapsing sidebar), so the height is measured again then.
|
|
66
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
67
|
+
this._observer = new ResizeObserver(() => {
|
|
68
|
+
if (this._element.offsetWidth !== this._width) {
|
|
69
|
+
this._width = this._element.offsetWidth
|
|
70
|
+
this.update()
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
this._observer.observe(this._element)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
this.update()
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Getters
|
|
80
|
+
static get Default(): ComponentConfig {
|
|
81
|
+
return Default
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static get DefaultType(): Record<keyof ComponentConfig, string> {
|
|
85
|
+
return DefaultType
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static get NAME(): string {
|
|
89
|
+
return NAME
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Public
|
|
93
|
+
update(): void {
|
|
94
|
+
const element = this._element
|
|
95
|
+
if (!element.isConnected || element.offsetParent === null) {
|
|
96
|
+
return
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Collapsing the field to measure it can move the page; the scroll
|
|
100
|
+
// position is put back afterwards.
|
|
101
|
+
const { scrollTop } = document.documentElement
|
|
102
|
+
const style = getComputedStyle(element)
|
|
103
|
+
const border = style.boxSizing === 'border-box' ? Number.parseFloat(style.borderTopWidth) + Number.parseFloat(style.borderBottomWidth) : 0
|
|
104
|
+
const before = element.style.height
|
|
105
|
+
|
|
106
|
+
element.style.height = 'auto'
|
|
107
|
+
const height = `${element.scrollHeight + border}px`
|
|
108
|
+
element.style.height = height
|
|
109
|
+
|
|
110
|
+
// Past max-height the content no longer fits, so let the field scroll.
|
|
111
|
+
element.style.overflowY = element.scrollHeight > element.clientHeight ? 'auto' : 'hidden'
|
|
112
|
+
document.documentElement.scrollTop = scrollTop
|
|
113
|
+
|
|
114
|
+
if (height !== before) {
|
|
115
|
+
EventHandler.trigger(element, EVENT_RESIZED)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
dispose(): void {
|
|
120
|
+
this._element.removeEventListener('input', this._onInput)
|
|
121
|
+
this._observer?.disconnect()
|
|
122
|
+
if (this._inlineStyle) {
|
|
123
|
+
this._element.setAttribute('style', this._inlineStyle)
|
|
124
|
+
} else {
|
|
125
|
+
this._element.removeAttribute('style')
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
super.dispose()
|
|
129
|
+
}
|
|
10
130
|
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Data API implementation
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
// js-docs-start autosize-init
|
|
137
|
+
initAll(SELECTOR_DATA_TOGGLE, Autosize)
|
|
11
138
|
// js-docs-end autosize-init
|
|
139
|
+
|
|
140
|
+
export default Autosize
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import BaseComponent from './base-component'
|
|
9
9
|
import EventHandler from './dom/event-handler.js'
|
|
10
10
|
import { enableDismissTrigger } from './util/component-functions'
|
|
11
|
+
import { defineJQueryPlugin } from './util/index.js'
|
|
12
|
+
import type { JQueryCollectionLike } from './types'
|
|
11
13
|
|
|
12
14
|
const NAME = 'alert'
|
|
13
15
|
const DATA_KEY = 'bs.alert'
|
|
@@ -41,8 +43,26 @@ class Alert extends BaseComponent {
|
|
|
41
43
|
EventHandler.trigger(this._element, EVENT_CLOSED)
|
|
42
44
|
this.dispose()
|
|
43
45
|
}
|
|
46
|
+
|
|
47
|
+
static jQueryInterface(this: JQueryCollectionLike, config?: unknown): unknown {
|
|
48
|
+
return this.each(function (this: HTMLElement) {
|
|
49
|
+
const data = Alert.getOrCreateInstance(this) as unknown as Record<string, (arg?: unknown) => unknown>
|
|
50
|
+
|
|
51
|
+
if (typeof config !== 'string') {
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
|
|
56
|
+
throw new TypeError(`No method named "${config}"`)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
data[config](this)
|
|
60
|
+
})
|
|
61
|
+
}
|
|
44
62
|
}
|
|
45
63
|
|
|
46
64
|
enableDismissTrigger(Alert, 'close')
|
|
47
65
|
|
|
66
|
+
defineJQueryPlugin(Alert)
|
|
67
|
+
|
|
48
68
|
export default Alert
|
|
@@ -58,7 +58,7 @@ class BaseComponent extends Config {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
static getOrCreateInstance(element: ElementSelector, config: ComponentConfig = {}): BaseComponent {
|
|
61
|
-
return this.getInstance(element) || new this(element, typeof config === 'object' ? config :
|
|
61
|
+
return this.getInstance(element) || new this(element, typeof config === 'object' ? config : undefined)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
static get VERSION(): string {
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import BaseComponent from './base-component'
|
|
9
9
|
import EventHandler from './dom/event-handler.js'
|
|
10
|
+
import { defineJQueryPlugin } from './util/index.js'
|
|
11
|
+
import type { JQueryCollectionLike } from './types'
|
|
10
12
|
|
|
11
13
|
const NAME = 'button'
|
|
12
14
|
const DATA_KEY = 'bs.button'
|
|
@@ -18,6 +20,8 @@ const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"], [data-tblr-toggle="butt
|
|
|
18
20
|
const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
|
|
19
21
|
|
|
20
22
|
class Button extends BaseComponent {
|
|
23
|
+
declare _element: HTMLElement
|
|
24
|
+
|
|
21
25
|
static get NAME(): string {
|
|
22
26
|
return NAME
|
|
23
27
|
}
|
|
@@ -25,6 +29,16 @@ class Button extends BaseComponent {
|
|
|
25
29
|
toggle(): void {
|
|
26
30
|
this._element.setAttribute('aria-pressed', String(this._element.classList.toggle(CLASS_NAME_ACTIVE)))
|
|
27
31
|
}
|
|
32
|
+
|
|
33
|
+
static jQueryInterface(this: JQueryCollectionLike, config?: unknown): unknown {
|
|
34
|
+
return this.each(function (this: HTMLElement) {
|
|
35
|
+
const data = Button.getOrCreateInstance(this) as Button
|
|
36
|
+
|
|
37
|
+
if (config === 'toggle') {
|
|
38
|
+
data.toggle()
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
}
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, (event: Event) => {
|
|
@@ -39,4 +53,6 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, (event: Ev
|
|
|
39
53
|
data.toggle()
|
|
40
54
|
})
|
|
41
55
|
|
|
56
|
+
defineJQueryPlugin(Button)
|
|
57
|
+
|
|
42
58
|
export default Button
|
|
@@ -9,9 +9,21 @@ import BaseComponent from './base-component'
|
|
|
9
9
|
import EventHandler from './dom/event-handler'
|
|
10
10
|
import Manipulator from './dom/manipulator'
|
|
11
11
|
import SelectorEngine from './dom/selector-engine'
|
|
12
|
-
import { getNextActiveElement, isRTL, isVisible, reflow, triggerTransitionEnd } from './util/index'
|
|
12
|
+
import { defineJQueryPlugin, getNextActiveElement, isRTL, isVisible, reflow, triggerTransitionEnd } from './util/index'
|
|
13
|
+
import type { ComponentConfig as BaseComponentConfig, JQueryCollectionLike } from './types'
|
|
13
14
|
import Swipe from './util/swipe'
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
type ComponentConfig = {
|
|
17
|
+
interval: number | boolean
|
|
18
|
+
keyboard: boolean
|
|
19
|
+
pause: 'hover' | boolean
|
|
20
|
+
ride: boolean | 'carousel'
|
|
21
|
+
touch: boolean
|
|
22
|
+
wrap: boolean
|
|
23
|
+
defaultInterval?: number | boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type ComponentConfigInput = Partial<Omit<ComponentConfig, 'defaultInterval'>> & Record<string, unknown>
|
|
15
27
|
|
|
16
28
|
const NAME = 'carousel'
|
|
17
29
|
const DATA_KEY = 'bs.carousel'
|
|
@@ -66,7 +78,7 @@ const Default: ComponentConfig = {
|
|
|
66
78
|
wrap: true,
|
|
67
79
|
}
|
|
68
80
|
|
|
69
|
-
const DefaultType:
|
|
81
|
+
const DefaultType: Record<Exclude<keyof ComponentConfig, 'defaultInterval'>, string> = {
|
|
70
82
|
interval: '(number|boolean)',
|
|
71
83
|
keyboard: 'boolean',
|
|
72
84
|
pause: '(string|boolean)',
|
|
@@ -76,6 +88,8 @@ const DefaultType: ComponentConfigType = {
|
|
|
76
88
|
}
|
|
77
89
|
|
|
78
90
|
class Carousel extends BaseComponent {
|
|
91
|
+
declare _element: HTMLElement
|
|
92
|
+
declare _config: ComponentConfig
|
|
79
93
|
_interval: ReturnType<typeof setInterval> | null
|
|
80
94
|
_activeElement: HTMLElement | null
|
|
81
95
|
_isSliding: boolean
|
|
@@ -83,7 +97,7 @@ class Carousel extends BaseComponent {
|
|
|
83
97
|
_swipeHelper: Swipe | null
|
|
84
98
|
_indicatorsElement: HTMLElement | null
|
|
85
99
|
|
|
86
|
-
constructor(element: HTMLElement | string, config?:
|
|
100
|
+
constructor(element: HTMLElement | string, config?: ComponentConfigInput) {
|
|
87
101
|
super(element, config)
|
|
88
102
|
|
|
89
103
|
this._interval = null
|
|
@@ -104,7 +118,7 @@ class Carousel extends BaseComponent {
|
|
|
104
118
|
return Default
|
|
105
119
|
}
|
|
106
120
|
|
|
107
|
-
static get DefaultType():
|
|
121
|
+
static get DefaultType(): Record<Exclude<keyof ComponentConfig, 'defaultInterval'>, string> {
|
|
108
122
|
return DefaultType
|
|
109
123
|
}
|
|
110
124
|
|
|
@@ -273,7 +287,7 @@ class Carousel extends BaseComponent {
|
|
|
273
287
|
|
|
274
288
|
const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval') || element.getAttribute('data-tblr-interval') || '', 10)
|
|
275
289
|
|
|
276
|
-
this._config.interval = elementInterval || this._config.defaultInterval
|
|
290
|
+
this._config.interval = elementInterval || (this._config.defaultInterval ?? this._config.interval)
|
|
277
291
|
}
|
|
278
292
|
|
|
279
293
|
_slide(order: string, element: HTMLElement | null = null): void {
|
|
@@ -302,7 +316,7 @@ class Carousel extends BaseComponent {
|
|
|
302
316
|
|
|
303
317
|
const slideEvent = triggerEvent(EVENT_SLIDE)
|
|
304
318
|
|
|
305
|
-
if (slideEvent
|
|
319
|
+
if (slideEvent?.defaultPrevented) {
|
|
306
320
|
return
|
|
307
321
|
}
|
|
308
322
|
|
|
@@ -380,6 +394,25 @@ class Carousel extends BaseComponent {
|
|
|
380
394
|
|
|
381
395
|
return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT
|
|
382
396
|
}
|
|
397
|
+
|
|
398
|
+
static jQueryInterface(this: JQueryCollectionLike, config?: unknown): unknown {
|
|
399
|
+
return this.each(function (this: HTMLElement) {
|
|
400
|
+
const data = Carousel.getOrCreateInstance(this, config as BaseComponentConfig) as unknown as Record<string, (arg?: unknown) => unknown>
|
|
401
|
+
|
|
402
|
+
if (typeof config === 'number') {
|
|
403
|
+
data.to(config)
|
|
404
|
+
return
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (typeof config === 'string') {
|
|
408
|
+
if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
|
|
409
|
+
throw new TypeError(`No method named "${config}"`)
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
data[config]()
|
|
413
|
+
}
|
|
414
|
+
})
|
|
415
|
+
}
|
|
383
416
|
}
|
|
384
417
|
|
|
385
418
|
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, function (this: HTMLElement, event: Event) {
|
|
@@ -418,4 +451,6 @@ EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
|
|
|
418
451
|
}
|
|
419
452
|
})
|
|
420
453
|
|
|
454
|
+
defineJQueryPlugin(Carousel)
|
|
455
|
+
|
|
421
456
|
export default Carousel
|