@worldcoin/mini-apps-ui-kit-react 0.0.1
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 +78 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/create-plugin.js +4 -0
- package/dist/_virtual/createPlugin.js +4 -0
- package/dist/_virtual/dynamic-import-helper.js +16 -0
- package/dist/components/Button/Button.d.ts +49 -0
- package/dist/components/Button/Button.js +103 -0
- package/dist/components/Button/Spinner.d.ts +8 -0
- package/dist/components/Button/Spinner.js +36 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts +19 -0
- package/dist/components/Checkbox/Checkbox.js +23 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.js +4 -0
- package/dist/components/Chip/Chip.d.ts +25 -0
- package/dist/components/Chip/Chip.js +31 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/Chip/index.js +4 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +16 -0
- package/dist/components/ColorPicker/ColorPicker.js +41 -0
- package/dist/components/ColorPicker/index.d.ts +1 -0
- package/dist/components/ColorPicker/index.js +5 -0
- package/dist/components/Drawer/Drawer.d.ts +6 -0
- package/dist/components/Drawer/Drawer.js +31 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.js +7 -0
- package/dist/components/Flag/Flag.d.ts +14 -0
- package/dist/components/Flag/Flag.js +12 -0
- package/dist/components/Flag/LazyFlag.d.ts +13 -0
- package/dist/components/Flag/LazyFlag.js +25 -0
- package/dist/components/Flag/constants.d.ts +2 -0
- package/dist/components/Flag/constants.js +7 -0
- package/dist/components/Flag/flag-components/ad.d.ts +3 -0
- package/dist/components/Flag/flag-components/ad.js +56 -0
- package/dist/components/Flag/flag-components/ae.d.ts +3 -0
- package/dist/components/Flag/flag-components/ae.js +48 -0
- package/dist/components/Flag/flag-components/af.d.ts +3 -0
- package/dist/components/Flag/flag-components/af.js +55 -0
- package/dist/components/Flag/flag-components/ag.d.ts +3 -0
- package/dist/components/Flag/flag-components/ag.js +62 -0
- package/dist/components/Flag/flag-components/ai.d.ts +3 -0
- package/dist/components/Flag/flag-components/ai.js +90 -0
- package/dist/components/Flag/flag-components/al.d.ts +3 -0
- package/dist/components/Flag/flag-components/al.js +34 -0
- package/dist/components/Flag/flag-components/am.d.ts +3 -0
- package/dist/components/Flag/flag-components/am.js +41 -0
- package/dist/components/Flag/flag-components/ao.d.ts +3 -0
- package/dist/components/Flag/flag-components/ao.js +55 -0
- package/dist/components/Flag/flag-components/ar.d.ts +3 -0
- package/dist/components/Flag/flag-components/ar.js +48 -0
- package/dist/components/Flag/flag-components/as.d.ts +3 -0
- package/dist/components/Flag/flag-components/as.js +62 -0
- package/dist/components/Flag/flag-components/at.d.ts +3 -0
- package/dist/components/Flag/flag-components/at.js +41 -0
- package/dist/components/Flag/flag-components/au.d.ts +3 -0
- package/dist/components/Flag/flag-components/au.js +98 -0
- package/dist/components/Flag/flag-components/aw.d.ts +3 -0
- package/dist/components/Flag/flag-components/aw.js +62 -0
- package/dist/components/Flag/flag-components/ax.d.ts +3 -0
- package/dist/components/Flag/flag-components/ax.js +62 -0
- package/dist/components/Flag/flag-components/az.d.ts +3 -0
- package/dist/components/Flag/flag-components/az.js +55 -0
- package/dist/components/Flag/flag-components/ba.d.ts +3 -0
- package/dist/components/Flag/flag-components/ba.js +48 -0
- package/dist/components/Flag/flag-components/bb.d.ts +3 -0
- package/dist/components/Flag/flag-components/bb.js +48 -0
- package/dist/components/Flag/flag-components/bd.d.ts +3 -0
- package/dist/components/Flag/flag-components/bd.js +34 -0
- package/dist/components/Flag/flag-components/be.d.ts +3 -0
- package/dist/components/Flag/flag-components/be.js +41 -0
- package/dist/components/Flag/flag-components/bf.d.ts +3 -0
- package/dist/components/Flag/flag-components/bf.js +49 -0
- package/dist/components/Flag/flag-components/bg.d.ts +3 -0
- package/dist/components/Flag/flag-components/bg.js +41 -0
- package/dist/components/Flag/flag-components/bh.d.ts +3 -0
- package/dist/components/Flag/flag-components/bh.js +34 -0
- package/dist/components/Flag/flag-components/bi.d.ts +3 -0
- package/dist/components/Flag/flag-components/bi.js +83 -0
- package/dist/components/Flag/flag-components/bj.d.ts +3 -0
- package/dist/components/Flag/flag-components/bj.js +41 -0
- package/dist/components/Flag/flag-components/bl.d.ts +3 -0
- package/dist/components/Flag/flag-components/bl.js +71 -0
- package/dist/components/Flag/flag-components/bm.d.ts +3 -0
- package/dist/components/Flag/flag-components/bm.js +85 -0
- package/dist/components/Flag/flag-components/bn.d.ts +3 -0
- package/dist/components/Flag/flag-components/bn.js +66 -0
- package/dist/components/Flag/flag-components/bo.d.ts +3 -0
- package/dist/components/Flag/flag-components/bo.js +41 -0
- package/dist/components/Flag/flag-components/bq.d.ts +3 -0
- package/dist/components/Flag/flag-components/bq.js +55 -0
- package/dist/components/Flag/flag-components/br.d.ts +3 -0
- package/dist/components/Flag/flag-components/br.js +55 -0
- package/dist/components/Flag/flag-components/bs.d.ts +3 -0
- package/dist/components/Flag/flag-components/bs.js +48 -0
- package/dist/components/Flag/flag-components/bt.d.ts +3 -0
- package/dist/components/Flag/flag-components/bt.js +48 -0
- package/dist/components/Flag/flag-components/bw.d.ts +3 -0
- package/dist/components/Flag/flag-components/bw.js +48 -0
- package/dist/components/Flag/flag-components/by.d.ts +3 -0
- package/dist/components/Flag/flag-components/by.js +83 -0
- package/dist/components/Flag/flag-components/bz.d.ts +3 -0
- package/dist/components/Flag/flag-components/bz.js +70 -0
- package/dist/components/Flag/flag-components/ca.d.ts +3 -0
- package/dist/components/Flag/flag-components/ca.js +48 -0
- package/dist/components/Flag/flag-components/cc.d.ts +3 -0
- package/dist/components/Flag/flag-components/cc.js +90 -0
- package/dist/components/Flag/flag-components/cd.d.ts +3 -0
- package/dist/components/Flag/flag-components/cd.js +55 -0
- package/dist/components/Flag/flag-components/cf.d.ts +3 -0
- package/dist/components/Flag/flag-components/cf.js +85 -0
- package/dist/components/Flag/flag-components/cg.d.ts +3 -0
- package/dist/components/Flag/flag-components/cg.js +41 -0
- package/dist/components/Flag/flag-components/ch.d.ts +3 -0
- package/dist/components/Flag/flag-components/ch.js +34 -0
- package/dist/components/Flag/flag-components/ci.d.ts +3 -0
- package/dist/components/Flag/flag-components/ci.js +41 -0
- package/dist/components/Flag/flag-components/ck.d.ts +3 -0
- package/dist/components/Flag/flag-components/ck.js +111 -0
- package/dist/components/Flag/flag-components/cl.d.ts +3 -0
- package/dist/components/Flag/flag-components/cl.js +48 -0
- package/dist/components/Flag/flag-components/cm.d.ts +3 -0
- package/dist/components/Flag/flag-components/cm.js +48 -0
- package/dist/components/Flag/flag-components/cn.d.ts +3 -0
- package/dist/components/Flag/flag-components/cn.js +62 -0
- package/dist/components/Flag/flag-components/co.d.ts +3 -0
- package/dist/components/Flag/flag-components/co.js +41 -0
- package/dist/components/Flag/flag-components/cr.d.ts +3 -0
- package/dist/components/Flag/flag-components/cr.js +48 -0
- package/dist/components/Flag/flag-components/cu.d.ts +3 -0
- package/dist/components/Flag/flag-components/cu.js +63 -0
- package/dist/components/Flag/flag-components/cv.d.ts +3 -0
- package/dist/components/Flag/flag-components/cv.js +118 -0
- package/dist/components/Flag/flag-components/cw.d.ts +3 -0
- package/dist/components/Flag/flag-components/cw.js +55 -0
- package/dist/components/Flag/flag-components/cy.d.ts +3 -0
- package/dist/components/Flag/flag-components/cy.js +41 -0
- package/dist/components/Flag/flag-components/cz.d.ts +3 -0
- package/dist/components/Flag/flag-components/cz.js +41 -0
- package/dist/components/Flag/flag-components/de.d.ts +3 -0
- package/dist/components/Flag/flag-components/de.js +41 -0
- package/dist/components/Flag/flag-components/dj.d.ts +3 -0
- package/dist/components/Flag/flag-components/dj.js +48 -0
- package/dist/components/Flag/flag-components/dk.d.ts +3 -0
- package/dist/components/Flag/flag-components/dk.js +55 -0
- package/dist/components/Flag/flag-components/dm.d.ts +3 -0
- package/dist/components/Flag/flag-components/dm.js +195 -0
- package/dist/components/Flag/flag-components/do.d.ts +3 -0
- package/dist/components/Flag/flag-components/do.js +76 -0
- package/dist/components/Flag/flag-components/dz.d.ts +3 -0
- package/dist/components/Flag/flag-components/dz.js +48 -0
- package/dist/components/Flag/flag-components/ec.d.ts +3 -0
- package/dist/components/Flag/flag-components/ec.js +62 -0
- package/dist/components/Flag/flag-components/ee.d.ts +3 -0
- package/dist/components/Flag/flag-components/ee.js +41 -0
- package/dist/components/Flag/flag-components/eg.d.ts +3 -0
- package/dist/components/Flag/flag-components/eg.js +48 -0
- package/dist/components/Flag/flag-components/er.d.ts +3 -0
- package/dist/components/Flag/flag-components/er.js +48 -0
- package/dist/components/Flag/flag-components/es.d.ts +3 -0
- package/dist/components/Flag/flag-components/es.js +41 -0
- package/dist/components/Flag/flag-components/et.d.ts +3 -0
- package/dist/components/Flag/flag-components/et.js +62 -0
- package/dist/components/Flag/flag-components/fi.d.ts +3 -0
- package/dist/components/Flag/flag-components/fi.js +34 -0
- package/dist/components/Flag/flag-components/fj.d.ts +3 -0
- package/dist/components/Flag/flag-components/fj.js +77 -0
- package/dist/components/Flag/flag-components/fk.d.ts +3 -0
- package/dist/components/Flag/flag-components/fk.js +83 -0
- package/dist/components/Flag/flag-components/fm.d.ts +3 -0
- package/dist/components/Flag/flag-components/fm.js +55 -0
- package/dist/components/Flag/flag-components/fo.d.ts +3 -0
- package/dist/components/Flag/flag-components/fo.js +41 -0
- package/dist/components/Flag/flag-components/fr.d.ts +3 -0
- package/dist/components/Flag/flag-components/fr.js +41 -0
- package/dist/components/Flag/flag-components/ga.d.ts +3 -0
- package/dist/components/Flag/flag-components/ga.js +41 -0
- package/dist/components/Flag/flag-components/gb.d.ts +3 -0
- package/dist/components/Flag/flag-components/gb.js +118 -0
- package/dist/components/Flag/flag-components/gd.d.ts +3 -0
- package/dist/components/Flag/flag-components/gd.js +140 -0
- package/dist/components/Flag/flag-components/ge.d.ts +3 -0
- package/dist/components/Flag/flag-components/ge.js +62 -0
- package/dist/components/Flag/flag-components/gg.d.ts +3 -0
- package/dist/components/Flag/flag-components/gg.js +41 -0
- package/dist/components/Flag/flag-components/gh.d.ts +3 -0
- package/dist/components/Flag/flag-components/gh.js +48 -0
- package/dist/components/Flag/flag-components/gi.d.ts +3 -0
- package/dist/components/Flag/flag-components/gi.js +48 -0
- package/dist/components/Flag/flag-components/gl.d.ts +3 -0
- package/dist/components/Flag/flag-components/gl.js +48 -0
- package/dist/components/Flag/flag-components/gm.d.ts +3 -0
- package/dist/components/Flag/flag-components/gm.js +48 -0
- package/dist/components/Flag/flag-components/gn.d.ts +3 -0
- package/dist/components/Flag/flag-components/gn.js +41 -0
- package/dist/components/Flag/flag-components/gp.d.ts +3 -0
- package/dist/components/Flag/flag-components/gp.js +41 -0
- package/dist/components/Flag/flag-components/gq.d.ts +3 -0
- package/dist/components/Flag/flag-components/gq.js +63 -0
- package/dist/components/Flag/flag-components/gr.d.ts +3 -0
- package/dist/components/Flag/flag-components/gr.js +62 -0
- package/dist/components/Flag/flag-components/gt.d.ts +3 -0
- package/dist/components/Flag/flag-components/gt.js +55 -0
- package/dist/components/Flag/flag-components/gu.d.ts +3 -0
- package/dist/components/Flag/flag-components/gu.js +71 -0
- package/dist/components/Flag/flag-components/gw.d.ts +3 -0
- package/dist/components/Flag/flag-components/gw.js +55 -0
- package/dist/components/Flag/flag-components/gy.d.ts +3 -0
- package/dist/components/Flag/flag-components/gy.js +62 -0
- package/dist/components/Flag/flag-components/hk.d.ts +3 -0
- package/dist/components/Flag/flag-components/hk.js +62 -0
- package/dist/components/Flag/flag-components/hn.d.ts +3 -0
- package/dist/components/Flag/flag-components/hn.js +76 -0
- package/dist/components/Flag/flag-components/hr.d.ts +3 -0
- package/dist/components/Flag/flag-components/hr.js +108 -0
- package/dist/components/Flag/flag-components/ht.d.ts +3 -0
- package/dist/components/Flag/flag-components/ht.js +64 -0
- package/dist/components/Flag/flag-components/hu.d.ts +3 -0
- package/dist/components/Flag/flag-components/hu.js +41 -0
- package/dist/components/Flag/flag-components/id.d.ts +3 -0
- package/dist/components/Flag/flag-components/id.js +34 -0
- package/dist/components/Flag/flag-components/ie.d.ts +3 -0
- package/dist/components/Flag/flag-components/ie.js +41 -0
- package/dist/components/Flag/flag-components/il.d.ts +3 -0
- package/dist/components/Flag/flag-components/il.js +48 -0
- package/dist/components/Flag/flag-components/im.d.ts +3 -0
- package/dist/components/Flag/flag-components/im.js +34 -0
- package/dist/components/Flag/flag-components/in.d.ts +3 -0
- package/dist/components/Flag/flag-components/in.js +62 -0
- package/dist/components/Flag/flag-components/index.d.ts +231 -0
- package/dist/components/Flag/flag-components/index.js +464 -0
- package/dist/components/Flag/flag-components/io.d.ts +3 -0
- package/dist/components/Flag/flag-components/io.js +136 -0
- package/dist/components/Flag/flag-components/iq.d.ts +3 -0
- package/dist/components/Flag/flag-components/iq.js +62 -0
- package/dist/components/Flag/flag-components/ir.d.ts +3 -0
- package/dist/components/Flag/flag-components/ir.js +48 -0
- package/dist/components/Flag/flag-components/is.d.ts +3 -0
- package/dist/components/Flag/flag-components/is.js +62 -0
- package/dist/components/Flag/flag-components/it.d.ts +3 -0
- package/dist/components/Flag/flag-components/it.js +41 -0
- package/dist/components/Flag/flag-components/je.d.ts +3 -0
- package/dist/components/Flag/flag-components/je.js +48 -0
- package/dist/components/Flag/flag-components/jm.d.ts +3 -0
- package/dist/components/Flag/flag-components/jm.js +55 -0
- package/dist/components/Flag/flag-components/jo.d.ts +3 -0
- package/dist/components/Flag/flag-components/jo.js +55 -0
- package/dist/components/Flag/flag-components/jp.d.ts +3 -0
- package/dist/components/Flag/flag-components/jp.js +34 -0
- package/dist/components/Flag/flag-components/ke.d.ts +3 -0
- package/dist/components/Flag/flag-components/ke.js +90 -0
- package/dist/components/Flag/flag-components/kg.d.ts +3 -0
- package/dist/components/Flag/flag-components/kg.js +69 -0
- package/dist/components/Flag/flag-components/kh.d.ts +3 -0
- package/dist/components/Flag/flag-components/kh.js +48 -0
- package/dist/components/Flag/flag-components/ki.d.ts +3 -0
- package/dist/components/Flag/flag-components/ki.js +76 -0
- package/dist/components/Flag/flag-components/km.d.ts +3 -0
- package/dist/components/Flag/flag-components/km.js +90 -0
- package/dist/components/Flag/flag-components/kp.d.ts +3 -0
- package/dist/components/Flag/flag-components/kp.js +62 -0
- package/dist/components/Flag/flag-components/kr.d.ts +3 -0
- package/dist/components/Flag/flag-components/kr.js +167 -0
- package/dist/components/Flag/flag-components/kw.d.ts +3 -0
- package/dist/components/Flag/flag-components/kw.js +48 -0
- package/dist/components/Flag/flag-components/ky.d.ts +3 -0
- package/dist/components/Flag/flag-components/ky.js +91 -0
- package/dist/components/Flag/flag-components/kz.d.ts +3 -0
- package/dist/components/Flag/flag-components/kz.js +48 -0
- package/dist/components/Flag/flag-components/la.d.ts +3 -0
- package/dist/components/Flag/flag-components/la.js +48 -0
- package/dist/components/Flag/flag-components/lb.d.ts +3 -0
- package/dist/components/Flag/flag-components/lb.js +48 -0
- package/dist/components/Flag/flag-components/lc.d.ts +3 -0
- package/dist/components/Flag/flag-components/lc.js +30 -0
- package/dist/components/Flag/flag-components/li.d.ts +3 -0
- package/dist/components/Flag/flag-components/li.js +41 -0
- package/dist/components/Flag/flag-components/lk.d.ts +3 -0
- package/dist/components/Flag/flag-components/lk.js +50 -0
- package/dist/components/Flag/flag-components/lr.d.ts +3 -0
- package/dist/components/Flag/flag-components/lr.js +118 -0
- package/dist/components/Flag/flag-components/ls.d.ts +3 -0
- package/dist/components/Flag/flag-components/ls.js +48 -0
- package/dist/components/Flag/flag-components/lt.d.ts +3 -0
- package/dist/components/Flag/flag-components/lt.js +41 -0
- package/dist/components/Flag/flag-components/lu.d.ts +3 -0
- package/dist/components/Flag/flag-components/lu.js +41 -0
- package/dist/components/Flag/flag-components/lv.d.ts +3 -0
- package/dist/components/Flag/flag-components/lv.js +41 -0
- package/dist/components/Flag/flag-components/ly.d.ts +3 -0
- package/dist/components/Flag/flag-components/ly.js +55 -0
- package/dist/components/Flag/flag-components/ma.d.ts +3 -0
- package/dist/components/Flag/flag-components/ma.js +34 -0
- package/dist/components/Flag/flag-components/mc.d.ts +3 -0
- package/dist/components/Flag/flag-components/mc.js +34 -0
- package/dist/components/Flag/flag-components/md.d.ts +3 -0
- package/dist/components/Flag/flag-components/md.js +56 -0
- package/dist/components/Flag/flag-components/me.d.ts +3 -0
- package/dist/components/Flag/flag-components/me.js +56 -0
- package/dist/components/Flag/flag-components/mg.d.ts +3 -0
- package/dist/components/Flag/flag-components/mg.js +41 -0
- package/dist/components/Flag/flag-components/mh.d.ts +3 -0
- package/dist/components/Flag/flag-components/mh.js +48 -0
- package/dist/components/Flag/flag-components/mk.d.ts +3 -0
- package/dist/components/Flag/flag-components/mk.js +97 -0
- package/dist/components/Flag/flag-components/ml.d.ts +3 -0
- package/dist/components/Flag/flag-components/ml.js +41 -0
- package/dist/components/Flag/flag-components/mm.d.ts +3 -0
- package/dist/components/Flag/flag-components/mm.js +48 -0
- package/dist/components/Flag/flag-components/mn.d.ts +3 -0
- package/dist/components/Flag/flag-components/mn.js +66 -0
- package/dist/components/Flag/flag-components/mo.d.ts +3 -0
- package/dist/components/Flag/flag-components/mo.js +83 -0
- package/dist/components/Flag/flag-components/mp.d.ts +3 -0
- package/dist/components/Flag/flag-components/mp.js +55 -0
- package/dist/components/Flag/flag-components/mq.d.ts +3 -0
- package/dist/components/Flag/flag-components/mq.js +83 -0
- package/dist/components/Flag/flag-components/mr.d.ts +3 -0
- package/dist/components/Flag/flag-components/mr.js +41 -0
- package/dist/components/Flag/flag-components/ms.d.ts +3 -0
- package/dist/components/Flag/flag-components/ms.js +76 -0
- package/dist/components/Flag/flag-components/mt.d.ts +3 -0
- package/dist/components/Flag/flag-components/mt.js +41 -0
- package/dist/components/Flag/flag-components/mu.d.ts +3 -0
- package/dist/components/Flag/flag-components/mu.js +48 -0
- package/dist/components/Flag/flag-components/mv.d.ts +3 -0
- package/dist/components/Flag/flag-components/mv.js +35 -0
- package/dist/components/Flag/flag-components/mw.d.ts +3 -0
- package/dist/components/Flag/flag-components/mw.js +48 -0
- package/dist/components/Flag/flag-components/mx.d.ts +3 -0
- package/dist/components/Flag/flag-components/mx.js +55 -0
- package/dist/components/Flag/flag-components/my.d.ts +3 -0
- package/dist/components/Flag/flag-components/my.js +76 -0
- package/dist/components/Flag/flag-components/mz.d.ts +3 -0
- package/dist/components/Flag/flag-components/mz.js +70 -0
- package/dist/components/Flag/flag-components/na.d.ts +3 -0
- package/dist/components/Flag/flag-components/na.js +55 -0
- package/dist/components/Flag/flag-components/ne.d.ts +3 -0
- package/dist/components/Flag/flag-components/ne.js +48 -0
- package/dist/components/Flag/flag-components/nf.d.ts +3 -0
- package/dist/components/Flag/flag-components/nf.js +48 -0
- package/dist/components/Flag/flag-components/ng.d.ts +3 -0
- package/dist/components/Flag/flag-components/ng.js +41 -0
- package/dist/components/Flag/flag-components/ni.d.ts +3 -0
- package/dist/components/Flag/flag-components/ni.js +63 -0
- package/dist/components/Flag/flag-components/nl.d.ts +3 -0
- package/dist/components/Flag/flag-components/nl.js +41 -0
- package/dist/components/Flag/flag-components/no.d.ts +3 -0
- package/dist/components/Flag/flag-components/no.js +62 -0
- package/dist/components/Flag/flag-components/np.d.ts +3 -0
- package/dist/components/Flag/flag-components/np.js +63 -0
- package/dist/components/Flag/flag-components/nr.d.ts +3 -0
- package/dist/components/Flag/flag-components/nr.js +55 -0
- package/dist/components/Flag/flag-components/nu.d.ts +3 -0
- package/dist/components/Flag/flag-components/nu.js +91 -0
- package/dist/components/Flag/flag-components/nz.d.ts +3 -0
- package/dist/components/Flag/flag-components/nz.js +83 -0
- package/dist/components/Flag/flag-components/om.d.ts +3 -0
- package/dist/components/Flag/flag-components/om.js +62 -0
- package/dist/components/Flag/flag-components/pa.d.ts +3 -0
- package/dist/components/Flag/flag-components/pa.js +55 -0
- package/dist/components/Flag/flag-components/pe.d.ts +3 -0
- package/dist/components/Flag/flag-components/pe.js +41 -0
- package/dist/components/Flag/flag-components/pf.d.ts +3 -0
- package/dist/components/Flag/flag-components/pf.js +58 -0
- package/dist/components/Flag/flag-components/pg.d.ts +3 -0
- package/dist/components/Flag/flag-components/pg.js +76 -0
- package/dist/components/Flag/flag-components/ph.d.ts +3 -0
- package/dist/components/Flag/flag-components/ph.js +69 -0
- package/dist/components/Flag/flag-components/pk.d.ts +3 -0
- package/dist/components/Flag/flag-components/pk.js +55 -0
- package/dist/components/Flag/flag-components/pl.d.ts +3 -0
- package/dist/components/Flag/flag-components/pl.js +34 -0
- package/dist/components/Flag/flag-components/pn.d.ts +3 -0
- package/dist/components/Flag/flag-components/pn.js +83 -0
- package/dist/components/Flag/flag-components/pr.d.ts +3 -0
- package/dist/components/Flag/flag-components/pr.js +62 -0
- package/dist/components/Flag/flag-components/ps.d.ts +3 -0
- package/dist/components/Flag/flag-components/ps.js +48 -0
- package/dist/components/Flag/flag-components/pt.d.ts +3 -0
- package/dist/components/Flag/flag-components/pt.js +55 -0
- package/dist/components/Flag/flag-components/pw.d.ts +3 -0
- package/dist/components/Flag/flag-components/pw.js +34 -0
- package/dist/components/Flag/flag-components/py.d.ts +3 -0
- package/dist/components/Flag/flag-components/py.js +55 -0
- package/dist/components/Flag/flag-components/qa.d.ts +3 -0
- package/dist/components/Flag/flag-components/qa.js +34 -0
- package/dist/components/Flag/flag-components/ro.d.ts +3 -0
- package/dist/components/Flag/flag-components/ro.js +41 -0
- package/dist/components/Flag/flag-components/rs.d.ts +3 -0
- package/dist/components/Flag/flag-components/rs.js +69 -0
- package/dist/components/Flag/flag-components/ru.d.ts +3 -0
- package/dist/components/Flag/flag-components/ru.js +41 -0
- package/dist/components/Flag/flag-components/rw.d.ts +3 -0
- package/dist/components/Flag/flag-components/rw.js +48 -0
- package/dist/components/Flag/flag-components/sa.d.ts +3 -0
- package/dist/components/Flag/flag-components/sa.js +57 -0
- package/dist/components/Flag/flag-components/sb.d.ts +3 -0
- package/dist/components/Flag/flag-components/sb.js +76 -0
- package/dist/components/Flag/flag-components/sc.d.ts +3 -0
- package/dist/components/Flag/flag-components/sc.js +55 -0
- package/dist/components/Flag/flag-components/sd.d.ts +3 -0
- package/dist/components/Flag/flag-components/sd.js +48 -0
- package/dist/components/Flag/flag-components/se.d.ts +3 -0
- package/dist/components/Flag/flag-components/se.js +63 -0
- package/dist/components/Flag/flag-components/sg.d.ts +3 -0
- package/dist/components/Flag/flag-components/sg.js +76 -0
- package/dist/components/Flag/flag-components/si.d.ts +3 -0
- package/dist/components/Flag/flag-components/si.js +48 -0
- package/dist/components/Flag/flag-components/sk.d.ts +3 -0
- package/dist/components/Flag/flag-components/sk.js +69 -0
- package/dist/components/Flag/flag-components/sl.d.ts +3 -0
- package/dist/components/Flag/flag-components/sl.js +41 -0
- package/dist/components/Flag/flag-components/sm.d.ts +3 -0
- package/dist/components/Flag/flag-components/sm.js +69 -0
- package/dist/components/Flag/flag-components/sn.d.ts +3 -0
- package/dist/components/Flag/flag-components/sn.js +48 -0
- package/dist/components/Flag/flag-components/so.d.ts +3 -0
- package/dist/components/Flag/flag-components/so.js +34 -0
- package/dist/components/Flag/flag-components/sr.d.ts +3 -0
- package/dist/components/Flag/flag-components/sr.js +55 -0
- package/dist/components/Flag/flag-components/ss.d.ts +3 -0
- package/dist/components/Flag/flag-components/ss.js +62 -0
- package/dist/components/Flag/flag-components/st.d.ts +3 -0
- package/dist/components/Flag/flag-components/st.js +62 -0
- package/dist/components/Flag/flag-components/sv.d.ts +3 -0
- package/dist/components/Flag/flag-components/sv.js +56 -0
- package/dist/components/Flag/flag-components/sx.d.ts +3 -0
- package/dist/components/Flag/flag-components/sx.js +76 -0
- package/dist/components/Flag/flag-components/sy.d.ts +3 -0
- package/dist/components/Flag/flag-components/sy.js +55 -0
- package/dist/components/Flag/flag-components/sz.d.ts +3 -0
- package/dist/components/Flag/flag-components/sz.js +80 -0
- package/dist/components/Flag/flag-components/tc.d.ts +3 -0
- package/dist/components/Flag/flag-components/tc.js +90 -0
- package/dist/components/Flag/flag-components/td.d.ts +3 -0
- package/dist/components/Flag/flag-components/td.js +41 -0
- package/dist/components/Flag/flag-components/tg.d.ts +3 -0
- package/dist/components/Flag/flag-components/tg.js +62 -0
- package/dist/components/Flag/flag-components/th.d.ts +3 -0
- package/dist/components/Flag/flag-components/th.js +48 -0
- package/dist/components/Flag/flag-components/tj.d.ts +3 -0
- package/dist/components/Flag/flag-components/tj.js +97 -0
- package/dist/components/Flag/flag-components/tk.d.ts +3 -0
- package/dist/components/Flag/flag-components/tk.js +62 -0
- package/dist/components/Flag/flag-components/tl.d.ts +3 -0
- package/dist/components/Flag/flag-components/tl.js +48 -0
- package/dist/components/Flag/flag-components/tm.d.ts +3 -0
- package/dist/components/Flag/flag-components/tm.js +161 -0
- package/dist/components/Flag/flag-components/tn.d.ts +3 -0
- package/dist/components/Flag/flag-components/tn.js +48 -0
- package/dist/components/Flag/flag-components/to.d.ts +3 -0
- package/dist/components/Flag/flag-components/to.js +41 -0
- package/dist/components/Flag/flag-components/tr.d.ts +3 -0
- package/dist/components/Flag/flag-components/tr.js +41 -0
- package/dist/components/Flag/flag-components/tt.d.ts +3 -0
- package/dist/components/Flag/flag-components/tt.js +48 -0
- package/dist/components/Flag/flag-components/tv.d.ts +3 -0
- package/dist/components/Flag/flag-components/tv.js +120 -0
- package/dist/components/Flag/flag-components/tw.d.ts +3 -0
- package/dist/components/Flag/flag-components/tw.js +55 -0
- package/dist/components/Flag/flag-components/tz.d.ts +3 -0
- package/dist/components/Flag/flag-components/tz.js +48 -0
- package/dist/components/Flag/flag-components/ua.d.ts +3 -0
- package/dist/components/Flag/flag-components/ua.js +34 -0
- package/dist/components/Flag/flag-components/ug.d.ts +3 -0
- package/dist/components/Flag/flag-components/ug.js +69 -0
- package/dist/components/Flag/flag-components/us.d.ts +3 -0
- package/dist/components/Flag/flag-components/us.js +62 -0
- package/dist/components/Flag/flag-components/uy.d.ts +3 -0
- package/dist/components/Flag/flag-components/uy.js +69 -0
- package/dist/components/Flag/flag-components/uz.d.ts +3 -0
- package/dist/components/Flag/flag-components/uz.js +146 -0
- package/dist/components/Flag/flag-components/va.d.ts +3 -0
- package/dist/components/Flag/flag-components/va.js +48 -0
- package/dist/components/Flag/flag-components/vc.d.ts +3 -0
- package/dist/components/Flag/flag-components/vc.js +70 -0
- package/dist/components/Flag/flag-components/ve.d.ts +3 -0
- package/dist/components/Flag/flag-components/ve.js +97 -0
- package/dist/components/Flag/flag-components/vg.d.ts +3 -0
- package/dist/components/Flag/flag-components/vg.js +83 -0
- package/dist/components/Flag/flag-components/vn.d.ts +3 -0
- package/dist/components/Flag/flag-components/vn.js +34 -0
- package/dist/components/Flag/flag-components/vu.d.ts +3 -0
- package/dist/components/Flag/flag-components/vu.js +189 -0
- package/dist/components/Flag/flag-components/ws.d.ts +3 -0
- package/dist/components/Flag/flag-components/ws.js +69 -0
- package/dist/components/Flag/flag-components/xk.d.ts +3 -0
- package/dist/components/Flag/flag-components/xk.js +76 -0
- package/dist/components/Flag/flag-components/ye.d.ts +3 -0
- package/dist/components/Flag/flag-components/ye.js +41 -0
- package/dist/components/Flag/flag-components/za.d.ts +3 -0
- package/dist/components/Flag/flag-components/za.js +62 -0
- package/dist/components/Flag/flag-components/zm.d.ts +3 -0
- package/dist/components/Flag/flag-components/zm.js +55 -0
- package/dist/components/Flag/flag-components/zw.d.ts +3 -0
- package/dist/components/Flag/flag-components/zw.js +97 -0
- package/dist/components/Flag/index.d.ts +3 -0
- package/dist/components/Flag/index.js +6 -0
- package/dist/components/Flag/utils.d.ts +2 -0
- package/dist/components/Flag/utils.js +5 -0
- package/dist/components/Form/Form.d.ts +12 -0
- package/dist/components/Form/Form.js +39 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Form/index.js +4 -0
- package/dist/components/Icons/Magnifier.d.ts +8 -0
- package/dist/components/Icons/Magnifier.js +31 -0
- package/dist/components/Icons/Tick.d.ts +8 -0
- package/dist/components/Icons/Tick.js +29 -0
- package/dist/components/Input/Input.d.ts +54 -0
- package/dist/components/Input/Input.js +98 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +6 -0
- package/dist/components/ListItem/ListItem.d.ts +9 -0
- package/dist/components/ListItem/ListItem.js +25 -0
- package/dist/components/ListItem/index.d.ts +1 -0
- package/dist/components/ListItem/index.js +4 -0
- package/dist/components/NumberPad/Delete.d.ts +8 -0
- package/dist/components/NumberPad/Delete.js +27 -0
- package/dist/components/NumberPad/NumberPad.d.ts +16 -0
- package/dist/components/NumberPad/NumberPad.js +47 -0
- package/dist/components/NumberPad/index.d.ts +1 -0
- package/dist/components/NumberPad/index.js +4 -0
- package/dist/components/OTPField/OTPField.d.ts +55 -0
- package/dist/components/OTPField/OTPField.js +47 -0
- package/dist/components/OTPField/index.d.ts +1 -0
- package/dist/components/OTPField/index.js +4 -0
- package/dist/components/PasteButton/PasteButton.d.ts +20 -0
- package/dist/components/PasteButton/PasteButton.js +37 -0
- package/dist/components/PasteButton/index.d.ts +1 -0
- package/dist/components/PasteButton/index.js +4 -0
- package/dist/components/PhoneField/ArrowDown.d.ts +2 -0
- package/dist/components/PhoneField/ArrowDown.js +27 -0
- package/dist/components/PhoneField/CountryListItem.d.ts +13 -0
- package/dist/components/PhoneField/CountryListItem.js +39 -0
- package/dist/components/PhoneField/CountrySelectorButton.d.ts +9 -0
- package/dist/components/PhoneField/CountrySelectorButton.js +41 -0
- package/dist/components/PhoneField/PhoneField.d.ts +64 -0
- package/dist/components/PhoneField/PhoneField.js +204 -0
- package/dist/components/PhoneField/constants.d.ts +4 -0
- package/dist/components/PhoneField/constants.js +26 -0
- package/dist/components/PhoneField/index.d.ts +1 -0
- package/dist/components/PhoneField/index.js +4 -0
- package/dist/components/PhoneField/utils.d.ts +4 -0
- package/dist/components/PhoneField/utils.js +14 -0
- package/dist/components/Pill/Pill.d.ts +19 -0
- package/dist/components/Pill/Pill.js +40 -0
- package/dist/components/Pill/index.d.ts +1 -0
- package/dist/components/Pill/index.js +4 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +34 -0
- package/dist/components/RadioGroup/RadioGroup.js +47 -0
- package/dist/components/RadioGroup/RadioGroupItem.d.ts +13 -0
- package/dist/components/RadioGroup/RadioGroupItem.js +37 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.js +6 -0
- package/dist/components/SearchField/SearchField.d.ts +23 -0
- package/dist/components/SearchField/SearchField.js +43 -0
- package/dist/components/SearchField/index.d.ts +1 -0
- package/dist/components/SearchField/index.js +4 -0
- package/dist/components/Select/ArrowDown.d.ts +2 -0
- package/dist/components/Select/ArrowDown.js +27 -0
- package/dist/components/Select/Select.d.ts +65 -0
- package/dist/components/Select/Select.js +121 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +4 -0
- package/dist/components/Switch/Switch.d.ts +19 -0
- package/dist/components/Switch/Switch.js +23 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Token/Token.d.ts +13 -0
- package/dist/components/Token/Token.js +10 -0
- package/dist/components/Token/icons/btc.d.ts +3 -0
- package/dist/components/Token/icons/btc.js +74 -0
- package/dist/components/Token/icons/eth.d.ts +3 -0
- package/dist/components/Token/icons/eth.js +76 -0
- package/dist/components/Token/icons/index.d.ts +4 -0
- package/dist/components/Token/icons/index.js +10 -0
- package/dist/components/Token/icons/usdc.d.ts +3 -0
- package/dist/components/Token/icons/usdc.js +74 -0
- package/dist/components/Token/icons/wld.d.ts +3 -0
- package/dist/components/Token/icons/wld.js +58 -0
- package/dist/components/Token/index.d.ts +1 -0
- package/dist/components/Token/index.js +4 -0
- package/dist/components/Typography/Typography.d.ts +41 -0
- package/dist/components/Typography/Typography.js +150 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/Typography/index.js +5 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +53 -0
- package/dist/lib/constants/dropdownStyles.d.ts +1 -0
- package/dist/lib/constants/dropdownStyles.js +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +8 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.6.8/node_modules/@floating-ui/core/dist/floating-ui.core.js +525 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.6.12/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +392 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +207 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.8/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.8/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.0/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_wfj52omijboqejc6zhpwkjvyjq/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._5vtvszwgvdmnkk62ia2dob365m/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_du3umibpgknzrmwryvhzp3lgou/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js +70 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vurlugjqrhlu53o6edaj3yx2bq/node_modules/@radix-ui/react-dialog/dist/index.js +262 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types__ejthwt4vwbnzwtfufv7q3bddiy/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_4owg5o3kd7femmpae5yic5inii/node_modules/@radix-ui/react-focus-scope/dist/index.js +138 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-form@0.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_z32yjmfa36dn2egycaeb5u52lm/node_modules/@radix-ui/react-form/dist/index.js +316 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_qr7n7ocfbwauilv6obluyms2qy/node_modules/@radix-ui/react-label/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._z2gu7tymhfvx6ebd6lqqykecmq/node_modules/@radix-ui/react-popper/dist/index.js +221 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._jmui37rk6fvzofztyauznikgpi/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sspjpiczol7qxzbuuyfihuep4u/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.2.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_2u6lfd2xt65wmbxn7lgvaxqbmy/node_modules/@radix-ui/react-radio-group/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_bkbd3syfptkiebtjifbhjosaba/node_modules/@radix-ui/react-roving-focus/dist/index.js +181 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._atdh45n5c7sked5b6tbwgdz7re/node_modules/@radix-ui/react-select/dist/index.js +846 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._udl6ccyllphugejc6sszfrese4/node_modules/@radix-ui/react-switch/dist/index.js +119 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +32 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_m7thze522i3jfpb2tnge6dybgi/node_modules/@radix-ui/react-visually-hidden/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/countries-list@3.1.1/node_modules/countries-list/mjs/index.js +8 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/input-otp@1.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-otp/dist/index.js +197 -0
- package/dist/node_modules/.pnpm/react-international-phone@4.4.0_react@18.3.1/node_modules/react-international-phone/dist/index.js +335 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +64 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/.pnpm/tailwind-merge@2.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2265 -0
- package/dist/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js +20 -0
- package/dist/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js +28 -0
- package/dist/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js +9 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_react-dom@18.3._7iqkcrcg5qjc3n2ixm6rnrnx3e/node_modules/vaul/dist/index.js +1066 -0
- package/dist/tailwind/index.d.ts +5 -0
- package/dist/tailwind/index.js +104 -0
- package/package.json +172 -0
- package/public/SFMono-Regular.otf +0 -0
- package/public/globals.css +1885 -0
@@ -0,0 +1,1066 @@
|
|
1
|
+
"use client";
|
2
|
+
import { Overlay as we, Content as he, Trigger as ge, Close as ve, Title as ye, Description as be, Root as Se, Portal as Re } from "../../../../@radix-ui_react-dialog@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vurlugjqrhlu53o6edaj3yx2bq/node_modules/@radix-ui/react-dialog/dist/index.js";
|
3
|
+
import * as Te from "react";
|
4
|
+
import r, { useMemo as Ee, useLayoutEffect as De, useEffect as Oe } from "react";
|
5
|
+
function xe(t) {
|
6
|
+
if (typeof document > "u") return;
|
7
|
+
let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
8
|
+
e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
9
|
+
}
|
10
|
+
const Wt = r.createContext({
|
11
|
+
drawerRef: {
|
12
|
+
current: null
|
13
|
+
},
|
14
|
+
overlayRef: {
|
15
|
+
current: null
|
16
|
+
},
|
17
|
+
onPress: () => {
|
18
|
+
},
|
19
|
+
onRelease: () => {
|
20
|
+
},
|
21
|
+
onDrag: () => {
|
22
|
+
},
|
23
|
+
onNestedDrag: () => {
|
24
|
+
},
|
25
|
+
onNestedOpenChange: () => {
|
26
|
+
},
|
27
|
+
onNestedRelease: () => {
|
28
|
+
},
|
29
|
+
openProp: void 0,
|
30
|
+
dismissible: !1,
|
31
|
+
isOpen: !1,
|
32
|
+
isDragging: !1,
|
33
|
+
keyboardIsOpen: {
|
34
|
+
current: !1
|
35
|
+
},
|
36
|
+
snapPointsOffset: null,
|
37
|
+
snapPoints: null,
|
38
|
+
handleOnly: !1,
|
39
|
+
modal: !1,
|
40
|
+
shouldFade: !1,
|
41
|
+
activeSnapPoint: null,
|
42
|
+
onOpenChange: () => {
|
43
|
+
},
|
44
|
+
setActiveSnapPoint: () => {
|
45
|
+
},
|
46
|
+
closeDrawer: () => {
|
47
|
+
},
|
48
|
+
direction: "bottom",
|
49
|
+
shouldAnimate: {
|
50
|
+
current: !0
|
51
|
+
},
|
52
|
+
shouldScaleBackground: !1,
|
53
|
+
setBackgroundColorOnScale: !0,
|
54
|
+
noBodyStyles: !1,
|
55
|
+
container: null,
|
56
|
+
autoFocus: !1
|
57
|
+
}), rt = () => {
|
58
|
+
const t = r.useContext(Wt);
|
59
|
+
if (!t)
|
60
|
+
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
61
|
+
return t;
|
62
|
+
};
|
63
|
+
xe(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
64
|
+
[data-state=closed]
|
65
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
|
66
|
+
function Ce() {
|
67
|
+
const t = navigator.userAgent;
|
68
|
+
return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
|
69
|
+
/FxiOS/.test(t));
|
70
|
+
}
|
71
|
+
function $e() {
|
72
|
+
return xt(/^Mac/);
|
73
|
+
}
|
74
|
+
function Ae() {
|
75
|
+
return xt(/^iPhone/);
|
76
|
+
}
|
77
|
+
function kt() {
|
78
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
79
|
+
}
|
80
|
+
function Me() {
|
81
|
+
return xt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
82
|
+
$e() && navigator.maxTouchPoints > 1;
|
83
|
+
}
|
84
|
+
function zt() {
|
85
|
+
return Ae() || Me();
|
86
|
+
}
|
87
|
+
function xt(t) {
|
88
|
+
return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
|
89
|
+
}
|
90
|
+
const Pe = 24, Ie = typeof window < "u" ? De : Oe;
|
91
|
+
function Bt(...t) {
|
92
|
+
return (...n) => {
|
93
|
+
for (let e of t)
|
94
|
+
typeof e == "function" && e(...n);
|
95
|
+
};
|
96
|
+
}
|
97
|
+
const St = typeof document < "u" && window.visualViewport;
|
98
|
+
function Ut(t) {
|
99
|
+
let n = window.getComputedStyle(t);
|
100
|
+
return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
|
101
|
+
}
|
102
|
+
function Vt(t) {
|
103
|
+
for (Ut(t) && (t = t.parentElement); t && !Ut(t); )
|
104
|
+
t = t.parentElement;
|
105
|
+
return t || document.scrollingElement || document.documentElement;
|
106
|
+
}
|
107
|
+
const Ne = /* @__PURE__ */ new Set([
|
108
|
+
"checkbox",
|
109
|
+
"radio",
|
110
|
+
"range",
|
111
|
+
"color",
|
112
|
+
"file",
|
113
|
+
"image",
|
114
|
+
"button",
|
115
|
+
"submit",
|
116
|
+
"reset"
|
117
|
+
]);
|
118
|
+
let pt = 0, Rt;
|
119
|
+
function _e(t = {}) {
|
120
|
+
let { isDisabled: n } = t;
|
121
|
+
Ie(() => {
|
122
|
+
if (!n)
|
123
|
+
return pt++, pt === 1 && zt() && (Rt = He()), () => {
|
124
|
+
pt--, pt === 0 && (Rt == null || Rt());
|
125
|
+
};
|
126
|
+
}, [
|
127
|
+
n
|
128
|
+
]);
|
129
|
+
}
|
130
|
+
function He() {
|
131
|
+
let t, n = 0, e = (m) => {
|
132
|
+
t = Vt(m.target), !(t === document.documentElement && t === document.body) && (n = m.changedTouches[0].pageY);
|
133
|
+
}, o = (m) => {
|
134
|
+
if (!t || t === document.documentElement || t === document.body) {
|
135
|
+
m.preventDefault();
|
136
|
+
return;
|
137
|
+
}
|
138
|
+
let p = m.changedTouches[0].pageY, B = t.scrollTop, L = t.scrollHeight - t.clientHeight;
|
139
|
+
L !== 0 && ((B <= 0 && p > n || B >= L && p < n) && m.preventDefault(), n = p);
|
140
|
+
}, i = (m) => {
|
141
|
+
let p = m.target;
|
142
|
+
Dt(p) && p !== document.activeElement && (m.preventDefault(), p.style.transform = "translateY(-2000px)", p.focus(), requestAnimationFrame(() => {
|
143
|
+
p.style.transform = "";
|
144
|
+
}));
|
145
|
+
}, a = (m) => {
|
146
|
+
let p = m.target;
|
147
|
+
Dt(p) && (p.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
148
|
+
p.style.transform = "", St && (St.height < window.innerHeight ? requestAnimationFrame(() => {
|
149
|
+
Ft(p);
|
150
|
+
}) : St.addEventListener("resize", () => Ft(p), {
|
151
|
+
once: !0
|
152
|
+
}));
|
153
|
+
}));
|
154
|
+
}, g = () => {
|
155
|
+
window.scrollTo(0, 0);
|
156
|
+
}, u = window.pageXOffset, b = window.pageYOffset, E = Bt(Le(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
157
|
+
window.scrollTo(0, 0);
|
158
|
+
let h = Bt(ut(document, "touchstart", e, {
|
159
|
+
passive: !1,
|
160
|
+
capture: !0
|
161
|
+
}), ut(document, "touchmove", o, {
|
162
|
+
passive: !1,
|
163
|
+
capture: !0
|
164
|
+
}), ut(document, "touchend", i, {
|
165
|
+
passive: !1,
|
166
|
+
capture: !0
|
167
|
+
}), ut(document, "focus", a, !0), ut(window, "scroll", g));
|
168
|
+
return () => {
|
169
|
+
E(), h(), window.scrollTo(u, b);
|
170
|
+
};
|
171
|
+
}
|
172
|
+
function Le(t, n, e) {
|
173
|
+
let o = t.style[n];
|
174
|
+
return t.style[n] = e, () => {
|
175
|
+
t.style[n] = o;
|
176
|
+
};
|
177
|
+
}
|
178
|
+
function ut(t, n, e, o) {
|
179
|
+
return t.addEventListener(n, e, o), () => {
|
180
|
+
t.removeEventListener(n, e, o);
|
181
|
+
};
|
182
|
+
}
|
183
|
+
function Ft(t) {
|
184
|
+
let n = document.scrollingElement || document.documentElement;
|
185
|
+
for (; t && t !== n; ) {
|
186
|
+
let e = Vt(t);
|
187
|
+
if (e !== document.documentElement && e !== document.body && e !== t) {
|
188
|
+
let o = e.getBoundingClientRect().top, i = t.getBoundingClientRect().top, a = t.getBoundingClientRect().bottom;
|
189
|
+
const g = e.getBoundingClientRect().bottom + Pe;
|
190
|
+
a > g && (e.scrollTop += i - o);
|
191
|
+
}
|
192
|
+
t = e.parentElement;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
function Dt(t) {
|
196
|
+
return t instanceof HTMLInputElement && !Ne.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
197
|
+
}
|
198
|
+
function ke(t, n) {
|
199
|
+
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
200
|
+
}
|
201
|
+
function Be(...t) {
|
202
|
+
return (n) => t.forEach((e) => ke(e, n));
|
203
|
+
}
|
204
|
+
function Yt(...t) {
|
205
|
+
return Te.useCallback(Be(...t), t);
|
206
|
+
}
|
207
|
+
const jt = /* @__PURE__ */ new WeakMap();
|
208
|
+
function $(t, n, e = !1) {
|
209
|
+
if (!t || !(t instanceof HTMLElement)) return;
|
210
|
+
let o = {};
|
211
|
+
Object.entries(n).forEach(([i, a]) => {
|
212
|
+
if (i.startsWith("--")) {
|
213
|
+
t.style.setProperty(i, a);
|
214
|
+
return;
|
215
|
+
}
|
216
|
+
o[i] = t.style[i], t.style[i] = a;
|
217
|
+
}), !e && jt.set(t, o);
|
218
|
+
}
|
219
|
+
function Ue(t, n) {
|
220
|
+
if (!t || !(t instanceof HTMLElement)) return;
|
221
|
+
let e = jt.get(t);
|
222
|
+
e && (t.style[n] = e[n]);
|
223
|
+
}
|
224
|
+
const C = (t) => {
|
225
|
+
switch (t) {
|
226
|
+
case "top":
|
227
|
+
case "bottom":
|
228
|
+
return !0;
|
229
|
+
case "left":
|
230
|
+
case "right":
|
231
|
+
return !1;
|
232
|
+
default:
|
233
|
+
return t;
|
234
|
+
}
|
235
|
+
};
|
236
|
+
function wt(t, n) {
|
237
|
+
if (!t)
|
238
|
+
return null;
|
239
|
+
const e = window.getComputedStyle(t), o = (
|
240
|
+
// @ts-ignore
|
241
|
+
e.transform || e.webkitTransform || e.mozTransform
|
242
|
+
);
|
243
|
+
let i = o.match(/^matrix3d\((.+)\)$/);
|
244
|
+
return i ? parseFloat(i[1].split(", ")[C(n) ? 13 : 12]) : (i = o.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[C(n) ? 5 : 4]) : null);
|
245
|
+
}
|
246
|
+
function Fe(t) {
|
247
|
+
return 8 * (Math.log(t + 1) - 2);
|
248
|
+
}
|
249
|
+
function Tt(t, n) {
|
250
|
+
if (!t) return () => {
|
251
|
+
};
|
252
|
+
const e = t.style.cssText;
|
253
|
+
return Object.assign(t.style, n), () => {
|
254
|
+
t.style.cssText = e;
|
255
|
+
};
|
256
|
+
}
|
257
|
+
function We(...t) {
|
258
|
+
return (...n) => {
|
259
|
+
for (const e of t)
|
260
|
+
typeof e == "function" && e(...n);
|
261
|
+
};
|
262
|
+
}
|
263
|
+
const O = {
|
264
|
+
DURATION: 0.5,
|
265
|
+
EASE: [
|
266
|
+
0.32,
|
267
|
+
0.72,
|
268
|
+
0,
|
269
|
+
1
|
270
|
+
]
|
271
|
+
}, qt = 0.4, ze = 0.25, Ve = 100, Xt = 8, Z = 16, Ot = 26, Et = "vaul-dragging";
|
272
|
+
function Kt(t) {
|
273
|
+
const n = r.useRef(t);
|
274
|
+
return r.useEffect(() => {
|
275
|
+
n.current = t;
|
276
|
+
}), r.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
|
277
|
+
}
|
278
|
+
function Ye({ defaultProp: t, onChange: n }) {
|
279
|
+
const e = r.useState(t), [o] = e, i = r.useRef(o), a = Kt(n);
|
280
|
+
return r.useEffect(() => {
|
281
|
+
i.current !== o && (a(o), i.current = o);
|
282
|
+
}, [
|
283
|
+
o,
|
284
|
+
i,
|
285
|
+
a
|
286
|
+
]), e;
|
287
|
+
}
|
288
|
+
function Gt({ prop: t, defaultProp: n, onChange: e = () => {
|
289
|
+
} }) {
|
290
|
+
const [o, i] = Ye({
|
291
|
+
defaultProp: n,
|
292
|
+
onChange: e
|
293
|
+
}), a = t !== void 0, g = a ? t : o, u = Kt(e), b = r.useCallback((E) => {
|
294
|
+
if (a) {
|
295
|
+
const m = typeof E == "function" ? E(t) : E;
|
296
|
+
m !== t && u(m);
|
297
|
+
} else
|
298
|
+
i(E);
|
299
|
+
}, [
|
300
|
+
a,
|
301
|
+
t,
|
302
|
+
i,
|
303
|
+
u
|
304
|
+
]);
|
305
|
+
return [
|
306
|
+
g,
|
307
|
+
b
|
308
|
+
];
|
309
|
+
}
|
310
|
+
function je({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: o, overlayRef: i, fadeFromIndex: a, onSnapPointChange: g, direction: u = "bottom", container: b, snapToSequentialPoint: E }) {
|
311
|
+
const [h, m] = Gt({
|
312
|
+
prop: t,
|
313
|
+
defaultProp: e == null ? void 0 : e[0],
|
314
|
+
onChange: n
|
315
|
+
}), [p, B] = r.useState(typeof window < "u" ? {
|
316
|
+
innerWidth: window.innerWidth,
|
317
|
+
innerHeight: window.innerHeight
|
318
|
+
} : void 0);
|
319
|
+
r.useEffect(() => {
|
320
|
+
function c() {
|
321
|
+
B({
|
322
|
+
innerWidth: window.innerWidth,
|
323
|
+
innerHeight: window.innerHeight
|
324
|
+
});
|
325
|
+
}
|
326
|
+
return window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
327
|
+
}, []);
|
328
|
+
const L = r.useMemo(() => h === (e == null ? void 0 : e[e.length - 1]) || null, [
|
329
|
+
e,
|
330
|
+
h
|
331
|
+
]), D = r.useMemo(() => {
|
332
|
+
var c;
|
333
|
+
return (c = e == null ? void 0 : e.findIndex((S) => S === h)) != null ? c : null;
|
334
|
+
}, [
|
335
|
+
e,
|
336
|
+
h
|
337
|
+
]), U = e && e.length > 0 && (a || a === 0) && !Number.isNaN(a) && e[a] === h || !e, w = r.useMemo(() => {
|
338
|
+
const c = b ? {
|
339
|
+
width: b.getBoundingClientRect().width,
|
340
|
+
height: b.getBoundingClientRect().height
|
341
|
+
} : typeof window < "u" ? {
|
342
|
+
width: window.innerWidth,
|
343
|
+
height: window.innerHeight
|
344
|
+
} : {
|
345
|
+
width: 0,
|
346
|
+
height: 0
|
347
|
+
};
|
348
|
+
var S;
|
349
|
+
return (S = e == null ? void 0 : e.map((y) => {
|
350
|
+
const N = typeof y == "string";
|
351
|
+
let P = 0;
|
352
|
+
if (N && (P = parseInt(y, 10)), C(u)) {
|
353
|
+
const s = N ? P : p ? y * c.height : 0;
|
354
|
+
return p ? u === "bottom" ? c.height - s : -c.height + s : s;
|
355
|
+
}
|
356
|
+
const W = N ? P : p ? y * c.width : 0;
|
357
|
+
return p ? u === "right" ? c.width - W : -c.width + W : W;
|
358
|
+
})) != null ? S : [];
|
359
|
+
}, [
|
360
|
+
e,
|
361
|
+
p,
|
362
|
+
b
|
363
|
+
]), M = r.useMemo(() => D !== null ? w == null ? void 0 : w[D] : null, [
|
364
|
+
w,
|
365
|
+
D
|
366
|
+
]), A = r.useCallback((c) => {
|
367
|
+
var S;
|
368
|
+
const y = (S = w == null ? void 0 : w.findIndex((N) => N === c)) != null ? S : null;
|
369
|
+
g(y), $(o.current, {
|
370
|
+
transition: `transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
|
371
|
+
transform: C(u) ? `translate3d(0, ${c}px, 0)` : `translate3d(${c}px, 0, 0)`
|
372
|
+
}), w && y !== w.length - 1 && a !== void 0 && y !== a && y < a ? $(i.current, {
|
373
|
+
transition: `opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
|
374
|
+
opacity: "0"
|
375
|
+
}) : $(i.current, {
|
376
|
+
transition: `opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
|
377
|
+
opacity: "1"
|
378
|
+
}), m(e == null ? void 0 : e[Math.max(y, 0)]);
|
379
|
+
}, [
|
380
|
+
o.current,
|
381
|
+
e,
|
382
|
+
w,
|
383
|
+
a,
|
384
|
+
i,
|
385
|
+
m
|
386
|
+
]);
|
387
|
+
r.useEffect(() => {
|
388
|
+
if (h || t) {
|
389
|
+
var c;
|
390
|
+
const S = (c = e == null ? void 0 : e.findIndex((y) => y === t || y === h)) != null ? c : -1;
|
391
|
+
w && S !== -1 && typeof w[S] == "number" && A(w[S]);
|
392
|
+
}
|
393
|
+
}, [
|
394
|
+
h,
|
395
|
+
t,
|
396
|
+
e,
|
397
|
+
w,
|
398
|
+
A
|
399
|
+
]);
|
400
|
+
function d({ draggedDistance: c, closeDrawer: S, velocity: y, dismissible: N }) {
|
401
|
+
if (a === void 0) return;
|
402
|
+
const P = u === "bottom" || u === "right" ? (M ?? 0) - c : (M ?? 0) + c, W = D === a - 1, s = D === 0, F = c > 0;
|
403
|
+
if (W && $(i.current, {
|
404
|
+
transition: `opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`
|
405
|
+
}), !E && y > 2 && !F) {
|
406
|
+
N ? S() : A(w[0]);
|
407
|
+
return;
|
408
|
+
}
|
409
|
+
if (!E && y > 2 && F && w && e) {
|
410
|
+
A(w[e.length - 1]);
|
411
|
+
return;
|
412
|
+
}
|
413
|
+
const _ = w == null ? void 0 : w.reduce((I, q) => typeof I != "number" || typeof q != "number" ? I : Math.abs(q - P) < Math.abs(I - P) ? q : I), z = C(u) ? window.innerHeight : window.innerWidth;
|
414
|
+
if (y > qt && Math.abs(c) < z * 0.4) {
|
415
|
+
const I = F ? 1 : -1;
|
416
|
+
if (I > 0 && L && e) {
|
417
|
+
A(w[e.length - 1]);
|
418
|
+
return;
|
419
|
+
}
|
420
|
+
if (s && I < 0 && N && S(), D === null) return;
|
421
|
+
A(w[D + I]);
|
422
|
+
return;
|
423
|
+
}
|
424
|
+
A(_);
|
425
|
+
}
|
426
|
+
function Y({ draggedDistance: c }) {
|
427
|
+
if (M === null) return;
|
428
|
+
const S = u === "bottom" || u === "right" ? M - c : M + c;
|
429
|
+
(u === "bottom" || u === "right") && S < w[w.length - 1] || (u === "top" || u === "left") && S > w[w.length - 1] || $(o.current, {
|
430
|
+
transform: C(u) ? `translate3d(0, ${S}px, 0)` : `translate3d(${S}px, 0, 0)`
|
431
|
+
});
|
432
|
+
}
|
433
|
+
function J(c, S) {
|
434
|
+
if (!e || typeof D != "number" || !w || a === void 0) return null;
|
435
|
+
const y = D === a - 1;
|
436
|
+
if (D >= a && S)
|
437
|
+
return 0;
|
438
|
+
if (y && !S) return 1;
|
439
|
+
if (!U && !y) return null;
|
440
|
+
const P = y ? D + 1 : D - 1, W = y ? w[P] - w[P - 1] : w[P + 1] - w[P], s = c / Math.abs(W);
|
441
|
+
return y ? 1 - s : s;
|
442
|
+
}
|
443
|
+
return {
|
444
|
+
isLastSnapPoint: L,
|
445
|
+
activeSnapPoint: h,
|
446
|
+
shouldFade: U,
|
447
|
+
getPercentageDragged: J,
|
448
|
+
setActiveSnapPoint: m,
|
449
|
+
activeSnapPointIndex: D,
|
450
|
+
onRelease: d,
|
451
|
+
onDrag: Y,
|
452
|
+
snapPointsOffset: w
|
453
|
+
};
|
454
|
+
}
|
455
|
+
const qe = () => () => {
|
456
|
+
};
|
457
|
+
function Xe() {
|
458
|
+
const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: o, noBodyStyles: i } = rt(), a = r.useRef(null), g = Ee(() => document.body.style.backgroundColor, []);
|
459
|
+
function u() {
|
460
|
+
return (window.innerWidth - Ot) / window.innerWidth;
|
461
|
+
}
|
462
|
+
r.useEffect(() => {
|
463
|
+
if (n && e) {
|
464
|
+
a.current && clearTimeout(a.current);
|
465
|
+
const b = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
466
|
+
if (!b) return;
|
467
|
+
We(o && !i ? Tt(document.body, {
|
468
|
+
background: "black"
|
469
|
+
}) : qe, Tt(b, {
|
470
|
+
transformOrigin: C(t) ? "top" : "left",
|
471
|
+
transitionProperty: "transform, border-radius",
|
472
|
+
transitionDuration: `${O.DURATION}s`,
|
473
|
+
transitionTimingFunction: `cubic-bezier(${O.EASE.join(",")})`
|
474
|
+
}));
|
475
|
+
const E = Tt(b, {
|
476
|
+
borderRadius: `${Xt}px`,
|
477
|
+
overflow: "hidden",
|
478
|
+
...C(t) ? {
|
479
|
+
transform: `scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
|
480
|
+
} : {
|
481
|
+
transform: `scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
|
482
|
+
}
|
483
|
+
});
|
484
|
+
return () => {
|
485
|
+
E(), a.current = window.setTimeout(() => {
|
486
|
+
g ? document.body.style.background = g : document.body.style.removeProperty("background");
|
487
|
+
}, O.DURATION * 1e3);
|
488
|
+
};
|
489
|
+
}
|
490
|
+
}, [
|
491
|
+
n,
|
492
|
+
e,
|
493
|
+
g
|
494
|
+
]);
|
495
|
+
}
|
496
|
+
let ct = null;
|
497
|
+
function Ke({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRestoration: i, noBodyStyles: a }) {
|
498
|
+
const [g, u] = r.useState(() => typeof window < "u" ? window.location.href : ""), b = r.useRef(0), E = r.useCallback(() => {
|
499
|
+
if (kt() && ct === null && t && !a) {
|
500
|
+
ct = {
|
501
|
+
position: document.body.style.position,
|
502
|
+
top: document.body.style.top,
|
503
|
+
left: document.body.style.left,
|
504
|
+
height: document.body.style.height,
|
505
|
+
right: "unset"
|
506
|
+
};
|
507
|
+
const { scrollX: m, innerHeight: p } = window;
|
508
|
+
document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
|
509
|
+
top: `${-b.current}px`,
|
510
|
+
left: `${-m}px`,
|
511
|
+
right: "0px",
|
512
|
+
height: "auto"
|
513
|
+
}), window.setTimeout(() => window.requestAnimationFrame(() => {
|
514
|
+
const B = p - window.innerHeight;
|
515
|
+
B && b.current >= p && (document.body.style.top = `${-(b.current + B)}px`);
|
516
|
+
}), 300);
|
517
|
+
}
|
518
|
+
}, [
|
519
|
+
t
|
520
|
+
]), h = r.useCallback(() => {
|
521
|
+
if (kt() && ct !== null && !a) {
|
522
|
+
const m = -parseInt(document.body.style.top, 10), p = -parseInt(document.body.style.left, 10);
|
523
|
+
Object.assign(document.body.style, ct), window.requestAnimationFrame(() => {
|
524
|
+
if (i && g !== window.location.href) {
|
525
|
+
u(window.location.href);
|
526
|
+
return;
|
527
|
+
}
|
528
|
+
window.scrollTo(p, m);
|
529
|
+
}), ct = null;
|
530
|
+
}
|
531
|
+
}, [
|
532
|
+
g
|
533
|
+
]);
|
534
|
+
return r.useEffect(() => {
|
535
|
+
function m() {
|
536
|
+
b.current = window.scrollY;
|
537
|
+
}
|
538
|
+
return m(), window.addEventListener("scroll", m), () => {
|
539
|
+
window.removeEventListener("scroll", m);
|
540
|
+
};
|
541
|
+
}, []), r.useEffect(() => {
|
542
|
+
if (n)
|
543
|
+
return () => {
|
544
|
+
typeof document > "u" || document.querySelector("[data-vaul-drawer]") || h();
|
545
|
+
};
|
546
|
+
}, [
|
547
|
+
n,
|
548
|
+
h
|
549
|
+
]), r.useEffect(() => {
|
550
|
+
e || !o || (t ? (!window.matchMedia("(display-mode: standalone)").matches && E(), n || window.setTimeout(() => {
|
551
|
+
h();
|
552
|
+
}, 500)) : h());
|
553
|
+
}, [
|
554
|
+
t,
|
555
|
+
o,
|
556
|
+
g,
|
557
|
+
n,
|
558
|
+
e,
|
559
|
+
E,
|
560
|
+
h
|
561
|
+
]), {
|
562
|
+
restorePositionSetting: h
|
563
|
+
};
|
564
|
+
}
|
565
|
+
function Jt({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, snapPoints: a, shouldScaleBackground: g = !1, setBackgroundColorOnScale: u = !0, closeThreshold: b = ze, scrollLockTimeout: E = Ve, dismissible: h = !0, handleOnly: m = !1, fadeFromIndex: p = a && a.length - 1, activeSnapPoint: B, setActiveSnapPoint: L, fixed: D, modal: U = !0, onClose: w, nested: M, noBodyStyles: A = !1, direction: d = "bottom", defaultOpen: Y = !1, disablePreventScroll: J = !0, snapToSequentialPoint: c = !1, preventScrollRestoration: S = !1, repositionInputs: y = !0, onAnimationEnd: N, container: P, autoFocus: W = !1 }) {
|
566
|
+
var s, F;
|
567
|
+
const [_ = !1, z] = Gt({
|
568
|
+
defaultProp: Y,
|
569
|
+
prop: t,
|
570
|
+
onChange: (l) => {
|
571
|
+
n == null || n(l), !l && !M && le(), setTimeout(() => {
|
572
|
+
N == null || N(l);
|
573
|
+
}, O.DURATION * 1e3), l && !U && typeof window < "u" && window.requestAnimationFrame(() => {
|
574
|
+
document.body.style.pointerEvents = "auto";
|
575
|
+
}), l || (document.body.style.pointerEvents = "auto");
|
576
|
+
}
|
577
|
+
}), [I, q] = r.useState(!1), [X, at] = r.useState(!1), [ee, Ct] = r.useState(!1), tt = r.useRef(null), dt = r.useRef(null), ht = r.useRef(null), gt = r.useRef(null), ot = r.useRef(null), it = r.useRef(!1), vt = r.useRef(null), yt = r.useRef(0), et = r.useRef(!1), $t = r.useRef(!Y), At = r.useRef(0), f = r.useRef(null), Mt = r.useRef(((s = f.current) == null ? void 0 : s.getBoundingClientRect().height) || 0), Pt = r.useRef(((F = f.current) == null ? void 0 : F.getBoundingClientRect().width) || 0), bt = r.useRef(0), ne = r.useCallback((l) => {
|
578
|
+
a && l === lt.length - 1 && (dt.current = /* @__PURE__ */ new Date());
|
579
|
+
}, []), { activeSnapPoint: re, activeSnapPointIndex: nt, setActiveSnapPoint: It, onRelease: ae, snapPointsOffset: lt, onDrag: oe, shouldFade: Nt, getPercentageDragged: ie } = je({
|
580
|
+
snapPoints: a,
|
581
|
+
activeSnapPointProp: B,
|
582
|
+
setActiveSnapPointProp: L,
|
583
|
+
drawerRef: f,
|
584
|
+
fadeFromIndex: p,
|
585
|
+
overlayRef: tt,
|
586
|
+
onSnapPointChange: ne,
|
587
|
+
direction: d,
|
588
|
+
container: P,
|
589
|
+
snapToSequentialPoint: c
|
590
|
+
});
|
591
|
+
_e({
|
592
|
+
isDisabled: !_ || X || !U || ee || !I || !y || !J
|
593
|
+
});
|
594
|
+
const { restorePositionSetting: le } = Ke({
|
595
|
+
isOpen: _,
|
596
|
+
modal: U,
|
597
|
+
nested: M ?? !1,
|
598
|
+
hasBeenOpened: I,
|
599
|
+
preventScrollRestoration: S,
|
600
|
+
noBodyStyles: A
|
601
|
+
});
|
602
|
+
function ft() {
|
603
|
+
return (window.innerWidth - Ot) / window.innerWidth;
|
604
|
+
}
|
605
|
+
function se(l) {
|
606
|
+
var R, T;
|
607
|
+
!h && !a || f.current && !f.current.contains(l.target) || (Mt.current = ((R = f.current) == null ? void 0 : R.getBoundingClientRect().height) || 0, Pt.current = ((T = f.current) == null ? void 0 : T.getBoundingClientRect().width) || 0, at(!0), ht.current = /* @__PURE__ */ new Date(), zt() && window.addEventListener("touchend", () => it.current = !1, {
|
608
|
+
once: !0
|
609
|
+
}), l.target.setPointerCapture(l.pointerId), yt.current = C(d) ? l.pageY : l.pageX);
|
610
|
+
}
|
611
|
+
function _t(l, R) {
|
612
|
+
var T;
|
613
|
+
let v = l;
|
614
|
+
const x = (T = window.getSelection()) == null ? void 0 : T.toString(), k = f.current ? wt(f.current, d) : null, H = /* @__PURE__ */ new Date();
|
615
|
+
if (v.tagName === "SELECT" || v.hasAttribute("data-vaul-no-drag") || v.closest("[data-vaul-no-drag]"))
|
616
|
+
return !1;
|
617
|
+
if (d === "right" || d === "left")
|
618
|
+
return !0;
|
619
|
+
if (dt.current && H.getTime() - dt.current.getTime() < 500)
|
620
|
+
return !1;
|
621
|
+
if (k !== null && (d === "bottom" ? k > 0 : k < 0))
|
622
|
+
return !0;
|
623
|
+
if (x && x.length > 0)
|
624
|
+
return !1;
|
625
|
+
if (ot.current && H.getTime() - ot.current.getTime() < E && k === 0 || R)
|
626
|
+
return ot.current = H, !1;
|
627
|
+
for (; v; ) {
|
628
|
+
if (v.scrollHeight > v.clientHeight) {
|
629
|
+
if (v.scrollTop !== 0)
|
630
|
+
return ot.current = /* @__PURE__ */ new Date(), !1;
|
631
|
+
if (v.getAttribute("role") === "dialog")
|
632
|
+
return !0;
|
633
|
+
}
|
634
|
+
v = v.parentNode;
|
635
|
+
}
|
636
|
+
return !0;
|
637
|
+
}
|
638
|
+
function ue(l) {
|
639
|
+
if (f.current && X) {
|
640
|
+
const R = d === "bottom" || d === "right" ? 1 : -1, T = (yt.current - (C(d) ? l.pageY : l.pageX)) * R, v = T > 0, x = a && !h && !v;
|
641
|
+
if (x && nt === 0) return;
|
642
|
+
const k = Math.abs(T), H = document.querySelector("[data-vaul-drawer-wrapper]"), K = d === "bottom" || d === "top" ? Mt.current : Pt.current;
|
643
|
+
let V = k / K;
|
644
|
+
const Q = ie(k, v);
|
645
|
+
if (Q !== null && (V = Q), x && V >= 1 || !it.current && !_t(l.target, v)) return;
|
646
|
+
if (f.current.classList.add(Et), it.current = !0, $(f.current, {
|
647
|
+
transition: "none"
|
648
|
+
}), $(tt.current, {
|
649
|
+
transition: "none"
|
650
|
+
}), a && oe({
|
651
|
+
draggedDistance: T
|
652
|
+
}), v && !a) {
|
653
|
+
const j = Fe(T), mt = Math.min(j * -1, 0) * R;
|
654
|
+
$(f.current, {
|
655
|
+
transform: C(d) ? `translate3d(0, ${mt}px, 0)` : `translate3d(${mt}px, 0, 0)`
|
656
|
+
});
|
657
|
+
return;
|
658
|
+
}
|
659
|
+
const G = 1 - V;
|
660
|
+
if ((Nt || p && nt === p - 1) && (o == null || o(l, V), $(tt.current, {
|
661
|
+
opacity: `${G}`,
|
662
|
+
transition: "none"
|
663
|
+
}, !0)), H && tt.current && g) {
|
664
|
+
const j = Math.min(ft() + V * (1 - ft()), 1), mt = 8 - V * 8, Lt = Math.max(0, 14 - V * 14);
|
665
|
+
$(H, {
|
666
|
+
borderRadius: `${mt}px`,
|
667
|
+
transform: C(d) ? `scale(${j}) translate3d(0, ${Lt}px, 0)` : `scale(${j}) translate3d(${Lt}px, 0, 0)`,
|
668
|
+
transition: "none"
|
669
|
+
}, !0);
|
670
|
+
}
|
671
|
+
if (!a) {
|
672
|
+
const j = k * R;
|
673
|
+
$(f.current, {
|
674
|
+
transform: C(d) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
|
675
|
+
});
|
676
|
+
}
|
677
|
+
}
|
678
|
+
}
|
679
|
+
r.useEffect(() => {
|
680
|
+
window.requestAnimationFrame(() => {
|
681
|
+
$t.current = !0;
|
682
|
+
});
|
683
|
+
}, []), r.useEffect(() => {
|
684
|
+
var l;
|
685
|
+
function R() {
|
686
|
+
if (!f.current || !y) return;
|
687
|
+
const T = document.activeElement;
|
688
|
+
if (Dt(T) || et.current) {
|
689
|
+
var v;
|
690
|
+
const x = ((v = window.visualViewport) == null ? void 0 : v.height) || 0, k = window.innerHeight;
|
691
|
+
let H = k - x;
|
692
|
+
const K = f.current.getBoundingClientRect().height || 0, V = K > k * 0.8;
|
693
|
+
bt.current || (bt.current = K);
|
694
|
+
const Q = f.current.getBoundingClientRect().top;
|
695
|
+
if (Math.abs(At.current - H) > 60 && (et.current = !et.current), a && a.length > 0 && lt && nt) {
|
696
|
+
const G = lt[nt] || 0;
|
697
|
+
H += G;
|
698
|
+
}
|
699
|
+
if (At.current = H, K > x || et.current) {
|
700
|
+
const G = f.current.getBoundingClientRect().height;
|
701
|
+
let j = G;
|
702
|
+
G > x && (j = x - (V ? Q : Ot)), D ? f.current.style.height = `${G - Math.max(H, 0)}px` : f.current.style.height = `${Math.max(j, x - Q)}px`;
|
703
|
+
} else Ce() || (f.current.style.height = `${bt.current}px`);
|
704
|
+
a && a.length > 0 && !et.current ? f.current.style.bottom = "0px" : f.current.style.bottom = `${Math.max(H, 0)}px`;
|
705
|
+
}
|
706
|
+
}
|
707
|
+
return (l = window.visualViewport) == null || l.addEventListener("resize", R), () => {
|
708
|
+
var T;
|
709
|
+
return (T = window.visualViewport) == null ? void 0 : T.removeEventListener("resize", R);
|
710
|
+
};
|
711
|
+
}, [
|
712
|
+
nt,
|
713
|
+
a,
|
714
|
+
lt
|
715
|
+
]);
|
716
|
+
function st(l) {
|
717
|
+
ce(), w == null || w(), l || z(!1), setTimeout(() => {
|
718
|
+
a && It(a[0]);
|
719
|
+
}, O.DURATION * 1e3);
|
720
|
+
}
|
721
|
+
function Ht() {
|
722
|
+
if (!f.current) return;
|
723
|
+
const l = document.querySelector("[data-vaul-drawer-wrapper]"), R = wt(f.current, d);
|
724
|
+
$(f.current, {
|
725
|
+
transform: "translate3d(0, 0, 0)",
|
726
|
+
transition: `transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`
|
727
|
+
}), $(tt.current, {
|
728
|
+
transition: `opacity ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
|
729
|
+
opacity: "1"
|
730
|
+
}), g && R && R > 0 && _ && $(l, {
|
731
|
+
borderRadius: `${Xt}px`,
|
732
|
+
overflow: "hidden",
|
733
|
+
...C(d) ? {
|
734
|
+
transform: `scale(${ft()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
735
|
+
transformOrigin: "top"
|
736
|
+
} : {
|
737
|
+
transform: `scale(${ft()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
738
|
+
transformOrigin: "left"
|
739
|
+
},
|
740
|
+
transitionProperty: "transform, border-radius",
|
741
|
+
transitionDuration: `${O.DURATION}s`,
|
742
|
+
transitionTimingFunction: `cubic-bezier(${O.EASE.join(",")})`
|
743
|
+
}, !0);
|
744
|
+
}
|
745
|
+
function ce() {
|
746
|
+
!X || !f.current || (f.current.classList.remove(Et), it.current = !1, at(!1), gt.current = /* @__PURE__ */ new Date());
|
747
|
+
}
|
748
|
+
function de(l) {
|
749
|
+
if (!X || !f.current) return;
|
750
|
+
f.current.classList.remove(Et), it.current = !1, at(!1), gt.current = /* @__PURE__ */ new Date();
|
751
|
+
const R = wt(f.current, d);
|
752
|
+
if (!l || !_t(l.target, !1) || !R || Number.isNaN(R) || ht.current === null) return;
|
753
|
+
const T = gt.current.getTime() - ht.current.getTime(), v = yt.current - (C(d) ? l.pageY : l.pageX), x = Math.abs(v) / T;
|
754
|
+
if (x > 0.05 && (Ct(!0), setTimeout(() => {
|
755
|
+
Ct(!1);
|
756
|
+
}, 200)), a) {
|
757
|
+
ae({
|
758
|
+
draggedDistance: v * (d === "bottom" || d === "right" ? 1 : -1),
|
759
|
+
closeDrawer: st,
|
760
|
+
velocity: x,
|
761
|
+
dismissible: h
|
762
|
+
}), i == null || i(l, !0);
|
763
|
+
return;
|
764
|
+
}
|
765
|
+
if (d === "bottom" || d === "right" ? v > 0 : v < 0) {
|
766
|
+
Ht(), i == null || i(l, !0);
|
767
|
+
return;
|
768
|
+
}
|
769
|
+
if (x > qt) {
|
770
|
+
st(), i == null || i(l, !1);
|
771
|
+
return;
|
772
|
+
}
|
773
|
+
var k;
|
774
|
+
const H = Math.min((k = f.current.getBoundingClientRect().height) != null ? k : 0, window.innerHeight);
|
775
|
+
var K;
|
776
|
+
const V = Math.min((K = f.current.getBoundingClientRect().width) != null ? K : 0, window.innerWidth), Q = d === "left" || d === "right";
|
777
|
+
if (Math.abs(R) >= (Q ? V : H) * b) {
|
778
|
+
st(), i == null || i(l, !1);
|
779
|
+
return;
|
780
|
+
}
|
781
|
+
i == null || i(l, !0), Ht();
|
782
|
+
}
|
783
|
+
r.useEffect(() => (_ && ($(document.documentElement, {
|
784
|
+
scrollBehavior: "auto"
|
785
|
+
}), dt.current = /* @__PURE__ */ new Date()), () => {
|
786
|
+
Ue(document.documentElement, "scrollBehavior");
|
787
|
+
}), [
|
788
|
+
_
|
789
|
+
]);
|
790
|
+
function fe(l) {
|
791
|
+
const R = l ? (window.innerWidth - Z) / window.innerWidth : 1, T = l ? -Z : 0;
|
792
|
+
vt.current && window.clearTimeout(vt.current), $(f.current, {
|
793
|
+
transition: `transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
|
794
|
+
transform: C(d) ? `scale(${R}) translate3d(0, ${T}px, 0)` : `scale(${R}) translate3d(${T}px, 0, 0)`
|
795
|
+
}), !l && f.current && (vt.current = setTimeout(() => {
|
796
|
+
const v = wt(f.current, d);
|
797
|
+
$(f.current, {
|
798
|
+
transition: "none",
|
799
|
+
transform: C(d) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
|
800
|
+
});
|
801
|
+
}, 500));
|
802
|
+
}
|
803
|
+
function me(l, R) {
|
804
|
+
if (R < 0) return;
|
805
|
+
const T = (window.innerWidth - Z) / window.innerWidth, v = T + R * (1 - T), x = -Z + R * Z;
|
806
|
+
$(f.current, {
|
807
|
+
transform: C(d) ? `scale(${v}) translate3d(0, ${x}px, 0)` : `scale(${v}) translate3d(${x}px, 0, 0)`,
|
808
|
+
transition: "none"
|
809
|
+
});
|
810
|
+
}
|
811
|
+
function pe(l, R) {
|
812
|
+
const T = C(d) ? window.innerHeight : window.innerWidth, v = R ? (T - Z) / T : 1, x = R ? -Z : 0;
|
813
|
+
R && $(f.current, {
|
814
|
+
transition: `transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
|
815
|
+
transform: C(d) ? `scale(${v}) translate3d(0, ${x}px, 0)` : `scale(${v}) translate3d(${x}px, 0, 0)`
|
816
|
+
});
|
817
|
+
}
|
818
|
+
return r.useEffect(() => {
|
819
|
+
U || window.requestAnimationFrame(() => {
|
820
|
+
document.body.style.pointerEvents = "auto";
|
821
|
+
});
|
822
|
+
}, [
|
823
|
+
U
|
824
|
+
]), /* @__PURE__ */ r.createElement(Se, {
|
825
|
+
defaultOpen: Y,
|
826
|
+
onOpenChange: (l) => {
|
827
|
+
!h && !l || (l ? q(!0) : st(!0), z(l));
|
828
|
+
},
|
829
|
+
open: _
|
830
|
+
}, /* @__PURE__ */ r.createElement(Wt.Provider, {
|
831
|
+
value: {
|
832
|
+
activeSnapPoint: re,
|
833
|
+
snapPoints: a,
|
834
|
+
setActiveSnapPoint: It,
|
835
|
+
drawerRef: f,
|
836
|
+
overlayRef: tt,
|
837
|
+
onOpenChange: n,
|
838
|
+
onPress: se,
|
839
|
+
onRelease: de,
|
840
|
+
onDrag: ue,
|
841
|
+
dismissible: h,
|
842
|
+
shouldAnimate: $t,
|
843
|
+
handleOnly: m,
|
844
|
+
isOpen: _,
|
845
|
+
isDragging: X,
|
846
|
+
shouldFade: Nt,
|
847
|
+
closeDrawer: st,
|
848
|
+
onNestedDrag: me,
|
849
|
+
onNestedOpenChange: fe,
|
850
|
+
onNestedRelease: pe,
|
851
|
+
keyboardIsOpen: et,
|
852
|
+
modal: U,
|
853
|
+
snapPointsOffset: lt,
|
854
|
+
activeSnapPointIndex: nt,
|
855
|
+
direction: d,
|
856
|
+
shouldScaleBackground: g,
|
857
|
+
setBackgroundColorOnScale: u,
|
858
|
+
noBodyStyles: A,
|
859
|
+
container: P,
|
860
|
+
autoFocus: W
|
861
|
+
}
|
862
|
+
}, e));
|
863
|
+
}
|
864
|
+
const Qt = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
|
865
|
+
const { overlayRef: e, snapPoints: o, onRelease: i, shouldFade: a, isOpen: g, modal: u, shouldAnimate: b } = rt(), E = Yt(n, e), h = o && o.length > 0;
|
866
|
+
if (!u)
|
867
|
+
return null;
|
868
|
+
const m = r.useCallback((p) => i(p), [
|
869
|
+
i
|
870
|
+
]);
|
871
|
+
return /* @__PURE__ */ r.createElement(we, {
|
872
|
+
onMouseUp: m,
|
873
|
+
ref: E,
|
874
|
+
"data-vaul-overlay": "",
|
875
|
+
"data-vaul-snap-points": g && h ? "true" : "false",
|
876
|
+
"data-vaul-snap-points-overlay": g && a ? "true" : "false",
|
877
|
+
"data-vaul-animate": b != null && b.current ? "true" : "false",
|
878
|
+
...t
|
879
|
+
});
|
880
|
+
});
|
881
|
+
Qt.displayName = "Drawer.Overlay";
|
882
|
+
const Zt = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...o }, i) {
|
883
|
+
const { drawerRef: a, onPress: g, onRelease: u, onDrag: b, keyboardIsOpen: E, snapPointsOffset: h, activeSnapPointIndex: m, modal: p, isOpen: B, direction: L, snapPoints: D, container: U, handleOnly: w, shouldAnimate: M, autoFocus: A } = rt(), [d, Y] = r.useState(!1), J = Yt(i, a), c = r.useRef(null), S = r.useRef(null), y = r.useRef(!1), N = D && D.length > 0;
|
884
|
+
Xe();
|
885
|
+
const P = (s, F, _ = 0) => {
|
886
|
+
if (y.current) return !0;
|
887
|
+
const z = Math.abs(s.y), I = Math.abs(s.x), q = I > z, X = [
|
888
|
+
"bottom",
|
889
|
+
"right"
|
890
|
+
].includes(F) ? 1 : -1;
|
891
|
+
if (F === "left" || F === "right") {
|
892
|
+
if (!(s.x * X < 0) && I >= 0 && I <= _)
|
893
|
+
return q;
|
894
|
+
} else if (!(s.y * X < 0) && z >= 0 && z <= _)
|
895
|
+
return !q;
|
896
|
+
return y.current = !0, !0;
|
897
|
+
};
|
898
|
+
r.useEffect(() => {
|
899
|
+
N && window.requestAnimationFrame(() => {
|
900
|
+
Y(!0);
|
901
|
+
});
|
902
|
+
}, []);
|
903
|
+
function W(s) {
|
904
|
+
c.current = null, y.current = !1, u(s);
|
905
|
+
}
|
906
|
+
return /* @__PURE__ */ r.createElement(he, {
|
907
|
+
"data-vaul-drawer-direction": L,
|
908
|
+
"data-vaul-drawer": "",
|
909
|
+
"data-vaul-delayed-snap-points": d ? "true" : "false",
|
910
|
+
"data-vaul-snap-points": B && N ? "true" : "false",
|
911
|
+
"data-vaul-custom-container": U ? "true" : "false",
|
912
|
+
"data-vaul-animate": M != null && M.current ? "true" : "false",
|
913
|
+
...o,
|
914
|
+
ref: J,
|
915
|
+
style: h && h.length > 0 ? {
|
916
|
+
"--snap-point-height": `${h[m ?? 0]}px`,
|
917
|
+
...n
|
918
|
+
} : n,
|
919
|
+
onPointerDown: (s) => {
|
920
|
+
w || (o.onPointerDown == null || o.onPointerDown.call(o, s), c.current = {
|
921
|
+
x: s.pageX,
|
922
|
+
y: s.pageY
|
923
|
+
}, g(s));
|
924
|
+
},
|
925
|
+
onOpenAutoFocus: (s) => {
|
926
|
+
e == null || e(s), A || s.preventDefault();
|
927
|
+
},
|
928
|
+
onPointerDownOutside: (s) => {
|
929
|
+
if (t == null || t(s), !p || s.defaultPrevented) {
|
930
|
+
s.preventDefault();
|
931
|
+
return;
|
932
|
+
}
|
933
|
+
E.current && (E.current = !1);
|
934
|
+
},
|
935
|
+
onFocusOutside: (s) => {
|
936
|
+
if (!p) {
|
937
|
+
s.preventDefault();
|
938
|
+
return;
|
939
|
+
}
|
940
|
+
},
|
941
|
+
onPointerMove: (s) => {
|
942
|
+
if (S.current = s, w || (o.onPointerMove == null || o.onPointerMove.call(o, s), !c.current)) return;
|
943
|
+
const F = s.pageY - c.current.y, _ = s.pageX - c.current.x, z = s.pointerType === "touch" ? 10 : 2;
|
944
|
+
P({
|
945
|
+
x: _,
|
946
|
+
y: F
|
947
|
+
}, L, z) ? b(s) : (Math.abs(_) > z || Math.abs(F) > z) && (c.current = null);
|
948
|
+
},
|
949
|
+
onPointerUp: (s) => {
|
950
|
+
o.onPointerUp == null || o.onPointerUp.call(o, s), c.current = null, y.current = !1, u(s);
|
951
|
+
},
|
952
|
+
onPointerOut: (s) => {
|
953
|
+
o.onPointerOut == null || o.onPointerOut.call(o, s), W(S.current);
|
954
|
+
},
|
955
|
+
onContextMenu: (s) => {
|
956
|
+
o.onContextMenu == null || o.onContextMenu.call(o, s), S.current && W(S.current);
|
957
|
+
}
|
958
|
+
});
|
959
|
+
});
|
960
|
+
Zt.displayName = "Drawer.Content";
|
961
|
+
const Ge = 250, Je = 120, te = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, o) {
|
962
|
+
const { closeDrawer: i, isDragging: a, snapPoints: g, activeSnapPoint: u, setActiveSnapPoint: b, dismissible: E, handleOnly: h, isOpen: m, onPress: p, onDrag: B } = rt(), L = r.useRef(null), D = r.useRef(!1);
|
963
|
+
function U() {
|
964
|
+
if (D.current) {
|
965
|
+
A();
|
966
|
+
return;
|
967
|
+
}
|
968
|
+
window.setTimeout(() => {
|
969
|
+
w();
|
970
|
+
}, Je);
|
971
|
+
}
|
972
|
+
function w() {
|
973
|
+
if (a || t || D.current) {
|
974
|
+
A();
|
975
|
+
return;
|
976
|
+
}
|
977
|
+
if (A(), !g || g.length === 0) {
|
978
|
+
E || i();
|
979
|
+
return;
|
980
|
+
}
|
981
|
+
if (u === g[g.length - 1] && E) {
|
982
|
+
i();
|
983
|
+
return;
|
984
|
+
}
|
985
|
+
const Y = g.findIndex((c) => c === u);
|
986
|
+
if (Y === -1) return;
|
987
|
+
const J = g[Y + 1];
|
988
|
+
b(J);
|
989
|
+
}
|
990
|
+
function M() {
|
991
|
+
L.current = window.setTimeout(() => {
|
992
|
+
D.current = !0;
|
993
|
+
}, Ge);
|
994
|
+
}
|
995
|
+
function A() {
|
996
|
+
L.current && window.clearTimeout(L.current), D.current = !1;
|
997
|
+
}
|
998
|
+
return /* @__PURE__ */ r.createElement("div", {
|
999
|
+
onClick: U,
|
1000
|
+
onPointerCancel: A,
|
1001
|
+
onPointerDown: (d) => {
|
1002
|
+
h && p(d), M();
|
1003
|
+
},
|
1004
|
+
onPointerMove: (d) => {
|
1005
|
+
h && B(d);
|
1006
|
+
},
|
1007
|
+
// onPointerUp is already handled by the content component
|
1008
|
+
ref: o,
|
1009
|
+
"data-vaul-drawer-visible": m ? "true" : "false",
|
1010
|
+
"data-vaul-handle": "",
|
1011
|
+
"aria-hidden": "true",
|
1012
|
+
...e
|
1013
|
+
}, /* @__PURE__ */ r.createElement("span", {
|
1014
|
+
"data-vaul-handle-hitarea": "",
|
1015
|
+
"aria-hidden": "true"
|
1016
|
+
}, n));
|
1017
|
+
});
|
1018
|
+
te.displayName = "Drawer.Handle";
|
1019
|
+
function Qe({ onDrag: t, onOpenChange: n, open: e, ...o }) {
|
1020
|
+
const { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: g } = rt();
|
1021
|
+
if (!i)
|
1022
|
+
throw new Error("Drawer.NestedRoot must be placed in another drawer");
|
1023
|
+
return /* @__PURE__ */ r.createElement(Jt, {
|
1024
|
+
nested: !0,
|
1025
|
+
open: e,
|
1026
|
+
onClose: () => {
|
1027
|
+
a(!1);
|
1028
|
+
},
|
1029
|
+
onDrag: (u, b) => {
|
1030
|
+
i(u, b), t == null || t(u, b);
|
1031
|
+
},
|
1032
|
+
onOpenChange: (u) => {
|
1033
|
+
u && a(u), n == null || n(u);
|
1034
|
+
},
|
1035
|
+
onRelease: g,
|
1036
|
+
...o
|
1037
|
+
});
|
1038
|
+
}
|
1039
|
+
function Ze(t) {
|
1040
|
+
const n = rt(), { container: e = n.container, ...o } = t;
|
1041
|
+
return /* @__PURE__ */ r.createElement(Re, {
|
1042
|
+
container: e,
|
1043
|
+
...o
|
1044
|
+
});
|
1045
|
+
}
|
1046
|
+
const nn = {
|
1047
|
+
Root: Jt,
|
1048
|
+
NestedRoot: Qe,
|
1049
|
+
Content: Zt,
|
1050
|
+
Overlay: Qt,
|
1051
|
+
Trigger: ge,
|
1052
|
+
Portal: Ze,
|
1053
|
+
Handle: te,
|
1054
|
+
Close: ve,
|
1055
|
+
Title: ye,
|
1056
|
+
Description: be
|
1057
|
+
};
|
1058
|
+
export {
|
1059
|
+
Zt as Content,
|
1060
|
+
nn as Drawer,
|
1061
|
+
te as Handle,
|
1062
|
+
Qe as NestedRoot,
|
1063
|
+
Qt as Overlay,
|
1064
|
+
Ze as Portal,
|
1065
|
+
Jt as Root
|
1066
|
+
};
|