@vincentgraul/react-components 1.0.38 → 1.0.39
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 +5 -1
- package/build/breadcrumb/breadcrumb.d.ts +7 -0
- package/build/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/build/breadcrumb/breadcrumb.js +12 -0
- package/build/breadcrumb/breadcrumb.types.d.ts +12 -0
- package/build/breadcrumb/breadcrumb.types.d.ts.map +1 -0
- package/build/breadcrumb/breadcrumb.types.js +1 -0
- package/build/breadcrumb/icons/arrow.d.ts +4 -0
- package/build/breadcrumb/icons/arrow.d.ts.map +1 -0
- package/build/breadcrumb/icons/arrow.js +14 -0
- package/build/breadcrumb/icons/index.d.ts +2 -0
- package/build/breadcrumb/icons/index.d.ts.map +1 -0
- package/build/breadcrumb/icons/index.js +1 -0
- package/build/breadcrumb/index.d.ts +4 -0
- package/build/breadcrumb/index.d.ts.map +1 -0
- package/build/breadcrumb/index.js +3 -0
- package/build/breadcrumb/use-breadcrumb.d.ts +3 -0
- package/build/breadcrumb/use-breadcrumb.d.ts.map +1 -0
- package/build/breadcrumb/use-breadcrumb.js +23 -0
- package/build/country-selector/country-selector.d.ts +10 -0
- package/build/country-selector/country-selector.d.ts.map +1 -0
- package/build/country-selector/{CountrySelector.js → country-selector.js} +9 -14
- package/build/country-selector/country-selector.types.d.ts +6 -0
- package/build/country-selector/country-selector.types.d.ts.map +1 -0
- package/build/country-selector/country-selector.types.js +1 -0
- package/build/country-selector/icons/Ad.d.ts.map +1 -1
- package/build/country-selector/icons/Ae.d.ts.map +1 -1
- package/build/country-selector/icons/Af.d.ts.map +1 -1
- package/build/country-selector/icons/Ag.d.ts.map +1 -1
- package/build/country-selector/icons/Ai.d.ts.map +1 -1
- package/build/country-selector/icons/Al.d.ts.map +1 -1
- package/build/country-selector/icons/Am.d.ts.map +1 -1
- package/build/country-selector/icons/Ao.d.ts.map +1 -1
- package/build/country-selector/icons/Ar.d.ts.map +1 -1
- package/build/country-selector/icons/As.d.ts.map +1 -1
- package/build/country-selector/icons/At.d.ts.map +1 -1
- package/build/country-selector/icons/Au.d.ts.map +1 -1
- package/build/country-selector/icons/Aw.d.ts.map +1 -1
- package/build/country-selector/icons/Az.d.ts.map +1 -1
- package/build/country-selector/icons/Ba.d.ts.map +1 -1
- package/build/country-selector/icons/Bb.d.ts.map +1 -1
- package/build/country-selector/icons/Bd.d.ts.map +1 -1
- package/build/country-selector/icons/Be.d.ts.map +1 -1
- package/build/country-selector/icons/Bf.d.ts.map +1 -1
- package/build/country-selector/icons/Bg.d.ts.map +1 -1
- package/build/country-selector/icons/Bh.d.ts.map +1 -1
- package/build/country-selector/icons/Bi.d.ts.map +1 -1
- package/build/country-selector/icons/Bj.d.ts.map +1 -1
- package/build/country-selector/icons/Bm.d.ts.map +1 -1
- package/build/country-selector/icons/Bo.d.ts.map +1 -1
- package/build/country-selector/icons/Br.d.ts.map +1 -1
- package/build/country-selector/icons/Bs.d.ts.map +1 -1
- package/build/country-selector/icons/Bt.d.ts.map +1 -1
- package/build/country-selector/icons/Bw.d.ts.map +1 -1
- package/build/country-selector/icons/By.d.ts.map +1 -1
- package/build/country-selector/icons/Bz.d.ts.map +1 -1
- package/build/country-selector/icons/Ca.d.ts.map +1 -1
- package/build/country-selector/icons/Cd.d.ts.map +1 -1
- package/build/country-selector/icons/Cf.d.ts.map +1 -1
- package/build/country-selector/icons/Cg.d.ts.map +1 -1
- package/build/country-selector/icons/Ch.d.ts.map +1 -1
- package/build/country-selector/icons/Ci.d.ts.map +1 -1
- package/build/country-selector/icons/Ck.d.ts.map +1 -1
- package/build/country-selector/icons/Cl.d.ts.map +1 -1
- package/build/country-selector/icons/Cm.d.ts.map +1 -1
- package/build/country-selector/icons/Cn.d.ts.map +1 -1
- package/build/country-selector/icons/Co.d.ts.map +1 -1
- package/build/country-selector/icons/Cr.d.ts.map +1 -1
- package/build/country-selector/icons/Cu.d.ts.map +1 -1
- package/build/country-selector/icons/Cv.d.ts.map +1 -1
- package/build/country-selector/icons/Cw.d.ts.map +1 -1
- package/build/country-selector/icons/Cy.d.ts.map +1 -1
- package/build/country-selector/icons/Cz.d.ts.map +1 -1
- package/build/country-selector/icons/De.d.ts.map +1 -1
- package/build/country-selector/icons/Dj.d.ts.map +1 -1
- package/build/country-selector/icons/Dk.d.ts.map +1 -1
- package/build/country-selector/icons/Dm.d.ts.map +1 -1
- package/build/country-selector/icons/Do.d.ts.map +1 -1
- package/build/country-selector/icons/Dz.d.ts.map +1 -1
- package/build/country-selector/icons/Ec.d.ts.map +1 -1
- package/build/country-selector/icons/Ee.d.ts.map +1 -1
- package/build/country-selector/icons/Eg.d.ts.map +1 -1
- package/build/country-selector/icons/Er.d.ts.map +1 -1
- package/build/country-selector/icons/Es.d.ts.map +1 -1
- package/build/country-selector/icons/Et.d.ts.map +1 -1
- package/build/country-selector/icons/Fi.d.ts.map +1 -1
- package/build/country-selector/icons/Fj.d.ts.map +1 -1
- package/build/country-selector/icons/Fk.d.ts.map +1 -1
- package/build/country-selector/icons/Fm.d.ts.map +1 -1
- package/build/country-selector/icons/Fo.d.ts.map +1 -1
- package/build/country-selector/icons/Fr.d.ts.map +1 -1
- package/build/country-selector/icons/Ga.d.ts.map +1 -1
- package/build/country-selector/icons/Gb.d.ts.map +1 -1
- package/build/country-selector/icons/Gd.d.ts.map +1 -1
- package/build/country-selector/icons/Ge.d.ts.map +1 -1
- package/build/country-selector/icons/Gg.d.ts.map +1 -1
- package/build/country-selector/icons/Gh.d.ts.map +1 -1
- package/build/country-selector/icons/Gi.d.ts.map +1 -1
- package/build/country-selector/icons/Gl.d.ts.map +1 -1
- package/build/country-selector/icons/Gm.d.ts.map +1 -1
- package/build/country-selector/icons/Gn.d.ts.map +1 -1
- package/build/country-selector/icons/Gq.d.ts.map +1 -1
- package/build/country-selector/icons/Gr.d.ts.map +1 -1
- package/build/country-selector/icons/Gt.d.ts.map +1 -1
- package/build/country-selector/icons/Gu.d.ts.map +1 -1
- package/build/country-selector/icons/Gw.d.ts.map +1 -1
- package/build/country-selector/icons/Hk.d.ts.map +1 -1
- package/build/country-selector/icons/Hn.d.ts.map +1 -1
- package/build/country-selector/icons/Hr.d.ts.map +1 -1
- package/build/country-selector/icons/Ht.d.ts.map +1 -1
- package/build/country-selector/icons/Hu.d.ts.map +1 -1
- package/build/country-selector/icons/Id.d.ts.map +1 -1
- package/build/country-selector/icons/Ie.d.ts.map +1 -1
- package/build/country-selector/icons/Il.d.ts.map +1 -1
- package/build/country-selector/icons/Im.d.ts.map +1 -1
- package/build/country-selector/icons/In.d.ts.map +1 -1
- package/build/country-selector/icons/Io.d.ts.map +1 -1
- package/build/country-selector/icons/Iq.d.ts.map +1 -1
- package/build/country-selector/icons/Ir.d.ts.map +1 -1
- package/build/country-selector/icons/Is.d.ts.map +1 -1
- package/build/country-selector/icons/It.d.ts.map +1 -1
- package/build/country-selector/icons/Je.d.ts.map +1 -1
- package/build/country-selector/icons/Jm.d.ts.map +1 -1
- package/build/country-selector/icons/Jo.d.ts.map +1 -1
- package/build/country-selector/icons/Jp.d.ts.map +1 -1
- package/build/country-selector/icons/Ke.d.ts.map +1 -1
- package/build/country-selector/icons/Kg.d.ts.map +1 -1
- package/build/country-selector/icons/Kh.d.ts.map +1 -1
- package/build/country-selector/icons/Ki.d.ts.map +1 -1
- package/build/country-selector/icons/Km.d.ts.map +1 -1
- package/build/country-selector/icons/Kn.d.ts.map +1 -1
- package/build/country-selector/icons/Kp.d.ts.map +1 -1
- package/build/country-selector/icons/Kr.d.ts.map +1 -1
- package/build/country-selector/icons/Kw.d.ts.map +1 -1
- package/build/country-selector/icons/Ky.d.ts.map +1 -1
- package/build/country-selector/icons/Kz.d.ts.map +1 -1
- package/build/country-selector/icons/La.d.ts.map +1 -1
- package/build/country-selector/icons/Lb.d.ts.map +1 -1
- package/build/country-selector/icons/Li.d.ts.map +1 -1
- package/build/country-selector/icons/Lk.d.ts.map +1 -1
- package/build/country-selector/icons/Lr.d.ts.map +1 -1
- package/build/country-selector/icons/Ls.d.ts.map +1 -1
- package/build/country-selector/icons/Lt.d.ts.map +1 -1
- package/build/country-selector/icons/Lu.d.ts.map +1 -1
- package/build/country-selector/icons/Lv.d.ts.map +1 -1
- package/build/country-selector/icons/Ly.d.ts.map +1 -1
- package/build/country-selector/icons/Ma.d.ts.map +1 -1
- package/build/country-selector/icons/Mc.d.ts.map +1 -1
- package/build/country-selector/icons/Md.d.ts.map +1 -1
- package/build/country-selector/icons/Me.d.ts.map +1 -1
- package/build/country-selector/icons/Mg.d.ts.map +1 -1
- package/build/country-selector/icons/Mh.d.ts.map +1 -1
- package/build/country-selector/icons/Mk.d.ts.map +1 -1
- package/build/country-selector/icons/Ml.d.ts.map +1 -1
- package/build/country-selector/icons/Mm.d.ts.map +1 -1
- package/build/country-selector/icons/Mn.d.ts.map +1 -1
- package/build/country-selector/icons/Mo.d.ts.map +1 -1
- package/build/country-selector/icons/Mp.d.ts.map +1 -1
- package/build/country-selector/icons/Mq.d.ts.map +1 -1
- package/build/country-selector/icons/Mr.d.ts.map +1 -1
- package/build/country-selector/icons/Ms.d.ts.map +1 -1
- package/build/country-selector/icons/Mt.d.ts.map +1 -1
- package/build/country-selector/icons/Mu.d.ts.map +1 -1
- package/build/country-selector/icons/Mv.d.ts.map +1 -1
- package/build/country-selector/icons/Mw.d.ts.map +1 -1
- package/build/country-selector/icons/Mx.d.ts.map +1 -1
- package/build/country-selector/icons/My.d.ts.map +1 -1
- package/build/country-selector/icons/Mz.d.ts.map +1 -1
- package/build/country-selector/icons/Na.d.ts.map +1 -1
- package/build/country-selector/icons/Nato.d.ts.map +1 -1
- package/build/country-selector/icons/Ne.d.ts.map +1 -1
- package/build/country-selector/icons/Nf.d.ts.map +1 -1
- package/build/country-selector/icons/Ng.d.ts.map +1 -1
- package/build/country-selector/icons/Ni.d.ts.map +1 -1
- package/build/country-selector/icons/Nl.d.ts.map +1 -1
- package/build/country-selector/icons/No.d.ts.map +1 -1
- package/build/country-selector/icons/Np.d.ts.map +1 -1
- package/build/country-selector/icons/Nr.d.ts.map +1 -1
- package/build/country-selector/icons/Nu.d.ts.map +1 -1
- package/build/country-selector/icons/Nz.d.ts.map +1 -1
- package/build/country-selector/icons/Om.d.ts.map +1 -1
- package/build/country-selector/icons/Pa.d.ts.map +1 -1
- package/build/country-selector/icons/Pe.d.ts.map +1 -1
- package/build/country-selector/icons/Pf.d.ts.map +1 -1
- package/build/country-selector/icons/Pg.d.ts.map +1 -1
- package/build/country-selector/icons/Ph.d.ts.map +1 -1
- package/build/country-selector/icons/Pk.d.ts.map +1 -1
- package/build/country-selector/icons/Pl.d.ts.map +1 -1
- package/build/country-selector/icons/Pn.d.ts.map +1 -1
- package/build/country-selector/icons/Pr.d.ts.map +1 -1
- package/build/country-selector/icons/Ps.d.ts.map +1 -1
- package/build/country-selector/icons/Pt.d.ts.map +1 -1
- package/build/country-selector/icons/Pw.d.ts.map +1 -1
- package/build/country-selector/icons/Py.d.ts.map +1 -1
- package/build/country-selector/icons/Qa.d.ts.map +1 -1
- package/build/country-selector/icons/Ro.d.ts.map +1 -1
- package/build/country-selector/icons/Rs.d.ts.map +1 -1
- package/build/country-selector/icons/Ru.d.ts.map +1 -1
- package/build/country-selector/icons/Rw.d.ts.map +1 -1
- package/build/country-selector/icons/Sa.d.ts.map +1 -1
- package/build/country-selector/icons/Sb.d.ts.map +1 -1
- package/build/country-selector/icons/Sc.d.ts.map +1 -1
- package/build/country-selector/icons/Sd.d.ts.map +1 -1
- package/build/country-selector/icons/Se.d.ts.map +1 -1
- package/build/country-selector/icons/Sg.d.ts.map +1 -1
- package/build/country-selector/icons/Si.d.ts.map +1 -1
- package/build/country-selector/icons/Sk.d.ts.map +1 -1
- package/build/country-selector/icons/Sl.d.ts.map +1 -1
- package/build/country-selector/icons/Sm.d.ts.map +1 -1
- package/build/country-selector/icons/Sn.d.ts.map +1 -1
- package/build/country-selector/icons/So.d.ts.map +1 -1
- package/build/country-selector/icons/Sq.d.ts.map +1 -1
- package/build/country-selector/icons/Sr.d.ts.map +1 -1
- package/build/country-selector/icons/Ss.d.ts.map +1 -1
- package/build/country-selector/icons/St.d.ts.map +1 -1
- package/build/country-selector/icons/Sv.d.ts.map +1 -1
- package/build/country-selector/icons/Sx.d.ts.map +1 -1
- package/build/country-selector/icons/Sy.d.ts.map +1 -1
- package/build/country-selector/icons/Sz.d.ts.map +1 -1
- package/build/country-selector/icons/Tc.d.ts.map +1 -1
- package/build/country-selector/icons/Td.d.ts.map +1 -1
- package/build/country-selector/icons/Tg.d.ts.map +1 -1
- package/build/country-selector/icons/Th.d.ts.map +1 -1
- package/build/country-selector/icons/Tibet.d.ts.map +1 -1
- package/build/country-selector/icons/Tj.d.ts.map +1 -1
- package/build/country-selector/icons/Tk.d.ts.map +1 -1
- package/build/country-selector/icons/Tm.d.ts.map +1 -1
- package/build/country-selector/icons/Tn.d.ts.map +1 -1
- package/build/country-selector/icons/To.d.ts.map +1 -1
- package/build/country-selector/icons/Tr.d.ts.map +1 -1
- package/build/country-selector/icons/Tt.d.ts.map +1 -1
- package/build/country-selector/icons/Tv.d.ts.map +1 -1
- package/build/country-selector/icons/Tw.d.ts.map +1 -1
- package/build/country-selector/icons/Tz.d.ts.map +1 -1
- package/build/country-selector/icons/Ua.d.ts.map +1 -1
- package/build/country-selector/icons/Ug.d.ts.map +1 -1
- package/build/country-selector/icons/Us.d.ts.map +1 -1
- package/build/country-selector/icons/Uy.d.ts.map +1 -1
- package/build/country-selector/icons/Uz.d.ts.map +1 -1
- package/build/country-selector/icons/Ve.d.ts.map +1 -1
- package/build/country-selector/icons/Vi.d.ts.map +1 -1
- package/build/country-selector/icons/Vn.d.ts.map +1 -1
- package/build/country-selector/icons/Vu.d.ts.map +1 -1
- package/build/country-selector/icons/Ws.d.ts.map +1 -1
- package/build/country-selector/icons/Ye.d.ts.map +1 -1
- package/build/country-selector/icons/Za.d.ts.map +1 -1
- package/build/country-selector/icons/Zm.d.ts.map +1 -1
- package/build/country-selector/icons/Zw.d.ts.map +1 -1
- package/build/country-selector/index.d.ts +3 -0
- package/build/country-selector/index.d.ts.map +1 -0
- package/build/country-selector/index.js +2 -0
- package/build/index.d.ts +18 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +17 -0
- package/build/input/index.d.ts +3 -0
- package/build/input/index.d.ts.map +1 -0
- package/build/input/index.js +2 -0
- package/build/input/input.d.ts +12 -0
- package/build/input/input.d.ts.map +1 -0
- package/build/input/input.js +24 -0
- package/build/input/input.types.d.ts +9 -0
- package/build/input/input.types.d.ts.map +1 -0
- package/build/input/input.types.js +1 -0
- package/build/loader/image-loader/image-loader.d.ts +7 -0
- package/build/loader/image-loader/image-loader.d.ts.map +1 -0
- package/build/loader/image-loader/image-loader.js +3 -0
- package/build/loader/image-loader/index.d.ts +2 -0
- package/build/loader/image-loader/index.d.ts.map +1 -0
- package/build/loader/image-loader/index.js +1 -0
- package/build/loader/index.d.ts +2 -0
- package/build/loader/index.d.ts.map +1 -0
- package/build/loader/index.js +1 -0
- package/build/loader/loader.d.ts +11 -0
- package/build/loader/loader.d.ts.map +1 -0
- package/build/loader/loader.js +7 -0
- package/build/match-device/index.d.ts +3 -0
- package/build/match-device/index.d.ts.map +1 -0
- package/build/match-device/index.js +2 -0
- package/build/match-device/use-match-device.d.ts +3 -0
- package/build/match-device/use-match-device.d.ts.map +1 -0
- package/build/match-device/{useMatchDevice.js → use-match-device.js} +2 -2
- package/build/match-device/use-match-device.types.d.ts +7 -0
- package/build/match-device/use-match-device.types.d.ts.map +1 -0
- package/build/match-device/use-match-device.types.js +1 -0
- package/build/match-resolution/index.d.ts +3 -0
- package/build/match-resolution/index.d.ts.map +1 -0
- package/build/match-resolution/index.js +2 -0
- package/build/match-resolution/use-match-resolution.d.ts +4 -0
- package/build/match-resolution/use-match-resolution.d.ts.map +1 -0
- package/build/match-resolution/{useMatchResolution.js → use-match-resolution.js} +3 -3
- package/build/match-resolution/{useMatchResolution.d.ts → use-match-resolution.types.d.ts} +7 -9
- package/build/match-resolution/use-match-resolution.types.d.ts.map +1 -0
- package/build/match-resolution/use-match-resolution.types.js +1 -0
- package/build/modal/index.d.ts +2 -0
- package/build/modal/index.d.ts.map +1 -0
- package/build/modal/index.js +1 -0
- package/build/modal/modal.d.ts +8 -0
- package/build/modal/modal.d.ts.map +1 -0
- package/build/modal/modal.js +14 -0
- package/build/mount-react-hook/index.d.ts +3 -0
- package/build/mount-react-hook/index.d.ts.map +1 -0
- package/build/mount-react-hook/index.js +2 -0
- package/build/mount-react-hook/mount-react-hook.d.ts +4 -0
- package/build/mount-react-hook/mount-react-hook.d.ts.map +1 -0
- package/build/mount-react-hook/{mountReactHook.js → mount-react-hook.js} +2 -2
- package/build/mount-react-hook/mount-react-hook.types.d.ts +6 -0
- package/build/mount-react-hook/mount-react-hook.types.d.ts.map +1 -0
- package/build/mount-react-hook/mount-react-hook.types.js +1 -0
- package/build/numbered-pagination/index.d.ts +2 -0
- package/build/numbered-pagination/index.d.ts.map +1 -0
- package/build/numbered-pagination/index.js +1 -0
- package/build/numbered-pagination/numbered-pagination.d.ts +15 -0
- package/build/numbered-pagination/numbered-pagination.d.ts.map +1 -0
- package/build/numbered-pagination/numbered-pagination.js +17 -0
- package/build/numbered-pagination/numbered-pagination.types.d.ts +11 -0
- package/build/numbered-pagination/numbered-pagination.types.d.ts.map +1 -0
- package/build/numbered-pagination/numbered-pagination.types.js +1 -0
- package/build/outside-alerter/index.d.ts +3 -0
- package/build/outside-alerter/index.d.ts.map +1 -0
- package/build/outside-alerter/index.js +2 -0
- package/build/outside-alerter/use-outside-alerter.d.ts +4 -0
- package/build/outside-alerter/use-outside-alerter.d.ts.map +1 -0
- package/build/outside-alerter/{useOutsideAlerter.js → use-outside-alerter.js} +2 -2
- package/build/outside-alerter/use-outside-alerter.types.d.ts +5 -0
- package/build/outside-alerter/use-outside-alerter.types.d.ts.map +1 -0
- package/build/outside-alerter/use-outside-alerter.types.js +1 -0
- package/build/pagination/index.d.ts +3 -0
- package/build/pagination/index.d.ts.map +1 -0
- package/build/pagination/index.js +2 -0
- package/build/pagination/pagination.d.ts +14 -0
- package/build/pagination/pagination.d.ts.map +1 -0
- package/build/pagination/pagination.js +17 -0
- package/build/pagination/pagination.types.d.ts +11 -0
- package/build/pagination/pagination.types.d.ts.map +1 -0
- package/build/pagination/pagination.types.js +1 -0
- package/build/pagination/use-pagination.d.ts +11 -0
- package/build/pagination/use-pagination.d.ts.map +1 -0
- package/build/pagination/{usePagination.js → use-pagination.js} +2 -2
- package/build/pagination/use-pagination.types.d.ts +12 -0
- package/build/pagination/use-pagination.types.d.ts.map +1 -0
- package/build/pagination/use-pagination.types.js +1 -0
- package/build/scroll-to/index.d.ts +3 -0
- package/build/scroll-to/index.d.ts.map +1 -0
- package/build/scroll-to/index.js +2 -0
- package/build/scroll-to/use-scroll-to.d.ts +4 -0
- package/build/scroll-to/use-scroll-to.d.ts.map +1 -0
- package/build/scroll-to/{useScrollTo.js → use-scroll-to.js} +2 -2
- package/build/scroll-to/use-scroll-to.types.d.ts +4 -0
- package/build/scroll-to/use-scroll-to.types.d.ts.map +1 -0
- package/build/scroll-to/use-scroll-to.types.js +1 -0
- package/build/select/icons/ArrowBottom.d.ts.map +1 -1
- package/build/select/index.d.ts +3 -0
- package/build/select/index.d.ts.map +1 -0
- package/build/select/index.js +2 -0
- package/build/select/select.d.ts +9 -0
- package/build/select/select.d.ts.map +1 -0
- package/build/select/select.js +42 -0
- package/build/select/select.types.d.ts +8 -0
- package/build/select/select.types.d.ts.map +1 -0
- package/build/select/select.types.js +1 -0
- package/build/table/index.d.ts +3 -0
- package/build/table/index.d.ts.map +1 -0
- package/build/table/index.js +2 -0
- package/build/table/table.d.ts +20 -0
- package/build/table/table.d.ts.map +1 -0
- package/build/table/table.js +18 -0
- package/build/table/table.types.d.ts +6 -0
- package/build/table/table.types.d.ts.map +1 -0
- package/build/table/table.types.js +1 -0
- package/build/use-breadcrumb/index.d.ts +3 -0
- package/build/use-breadcrumb/index.d.ts.map +1 -0
- package/build/use-breadcrumb/index.js +2 -0
- package/build/use-breadcrumb/use-breadcrumb.d.ts +3 -0
- package/build/use-breadcrumb/use-breadcrumb.d.ts.map +1 -0
- package/build/use-breadcrumb/use-breadcrumb.js +23 -0
- package/build/use-breadcrumb/use-breadcrumb.types.d.ts +12 -0
- package/build/use-breadcrumb/use-breadcrumb.types.d.ts.map +1 -0
- package/build/use-breadcrumb/use-breadcrumb.types.js +1 -0
- package/build/use-match-device/index.d.ts +3 -0
- package/build/use-match-device/index.d.ts.map +1 -0
- package/build/use-match-device/index.js +2 -0
- package/build/use-match-device/use-match-device.d.ts +3 -0
- package/build/use-match-device/use-match-device.d.ts.map +1 -0
- package/build/use-match-device/use-match-device.js +25 -0
- package/build/use-match-device/use-match-device.types.d.ts +7 -0
- package/build/use-match-device/use-match-device.types.d.ts.map +1 -0
- package/build/use-match-device/use-match-device.types.js +1 -0
- package/build/use-match-resolution/index.d.ts +3 -0
- package/build/use-match-resolution/index.d.ts.map +1 -0
- package/build/use-match-resolution/index.js +2 -0
- package/build/use-match-resolution/use-match-resolution.d.ts +4 -0
- package/build/use-match-resolution/use-match-resolution.d.ts.map +1 -0
- package/build/use-match-resolution/use-match-resolution.js +49 -0
- package/build/use-match-resolution/use-match-resolution.types.d.ts +36 -0
- package/build/use-match-resolution/use-match-resolution.types.d.ts.map +1 -0
- package/build/use-match-resolution/use-match-resolution.types.js +1 -0
- package/build/use-outside-alerter/index.d.ts +3 -0
- package/build/use-outside-alerter/index.d.ts.map +1 -0
- package/build/use-outside-alerter/index.js +2 -0
- package/build/use-outside-alerter/use-outside-alerter.d.ts +4 -0
- package/build/use-outside-alerter/use-outside-alerter.d.ts.map +1 -0
- package/build/use-outside-alerter/use-outside-alerter.js +22 -0
- package/build/use-outside-alerter/use-outside-alerter.types.d.ts +5 -0
- package/build/use-outside-alerter/use-outside-alerter.types.d.ts.map +1 -0
- package/build/use-outside-alerter/use-outside-alerter.types.js +1 -0
- package/build/use-pagination/index.d.ts +3 -0
- package/build/use-pagination/index.d.ts.map +1 -0
- package/build/use-pagination/index.js +2 -0
- package/build/use-pagination/use-pagination.d.ts +11 -0
- package/build/use-pagination/use-pagination.d.ts.map +1 -0
- package/build/use-pagination/use-pagination.js +49 -0
- package/build/use-pagination/use-pagination.types.d.ts +12 -0
- package/build/use-pagination/use-pagination.types.d.ts.map +1 -0
- package/build/use-pagination/use-pagination.types.js +1 -0
- package/build/use-scroll-to/index.d.ts +3 -0
- package/build/use-scroll-to/index.d.ts.map +1 -0
- package/build/use-scroll-to/index.js +2 -0
- package/build/use-scroll-to/use-scroll-to.d.ts +4 -0
- package/build/use-scroll-to/use-scroll-to.d.ts.map +1 -0
- package/build/use-scroll-to/use-scroll-to.js +12 -0
- package/build/use-scroll-to/use-scroll-to.types.d.ts +4 -0
- package/build/use-scroll-to/use-scroll-to.types.d.ts.map +1 -0
- package/build/use-scroll-to/use-scroll-to.types.js +1 -0
- package/build/use-visible/index.d.ts +2 -0
- package/build/use-visible/index.d.ts.map +1 -0
- package/build/use-visible/index.js +1 -0
- package/build/use-visible/use-visible.d.ts +3 -0
- package/build/use-visible/use-visible.d.ts.map +1 -0
- package/build/{visible/useVisible.js → use-visible/use-visible.js} +2 -2
- package/build/visible/index.d.ts +2 -0
- package/build/visible/index.d.ts.map +1 -0
- package/build/visible/index.js +1 -0
- package/build/visible/use-visible.d.ts +3 -0
- package/build/visible/use-visible.d.ts.map +1 -0
- package/build/visible/use-visible.js +19 -0
- package/build/wizard/index.d.ts +3 -0
- package/build/wizard/index.d.ts.map +1 -0
- package/build/wizard/index.js +2 -0
- package/build/wizard/wizard.d.ts +11 -0
- package/build/wizard/wizard.d.ts.map +1 -0
- package/build/wizard/wizard.js +27 -0
- package/build/wizard/wizard.types.d.ts +8 -0
- package/build/wizard/wizard.types.d.ts.map +1 -0
- package/build/wizard/wizard.types.js +1 -0
- package/package.json +34 -122
- package/build/country-selector/CountrySelector.d.ts +0 -15
- package/build/country-selector/CountrySelector.d.ts.map +0 -1
- package/build/loader/Loader.d.ts +0 -8
- package/build/loader/Loader.d.ts.map +0 -1
- package/build/loader/Loader.js +0 -24
- package/build/loader/image-loader/ImageLoader.d.ts +0 -8
- package/build/loader/image-loader/ImageLoader.d.ts.map +0 -1
- package/build/loader/image-loader/ImageLoader.js +0 -24
- package/build/match-device/useMatchDevice.d.ts +0 -8
- package/build/match-device/useMatchDevice.d.ts.map +0 -1
- package/build/match-resolution/useMatchResolution.d.ts.map +0 -1
- package/build/modal/Modal.d.ts +0 -9
- package/build/modal/Modal.d.ts.map +0 -1
- package/build/modal/Modal.js +0 -36
- package/build/mount-react-hook/mountReactHook.d.ts +0 -8
- package/build/mount-react-hook/mountReactHook.d.ts.map +0 -1
- package/build/numbered-pagination/NumberedPagination.d.ts +0 -13
- package/build/numbered-pagination/NumberedPagination.d.ts.map +0 -1
- package/build/numbered-pagination/NumberedPagination.js +0 -25
- package/build/outside-alerter/useOutsideAlerter.d.ts +0 -8
- package/build/outside-alerter/useOutsideAlerter.d.ts.map +0 -1
- package/build/pagination/usePagination.d.ts +0 -20
- package/build/pagination/usePagination.d.ts.map +0 -1
- package/build/scroll-to/useScrollTo.d.ts +0 -6
- package/build/scroll-to/useScrollTo.d.ts.map +0 -1
- package/build/select/Select.d.ts +0 -289
- package/build/select/Select.d.ts.map +0 -1
- package/build/select/Select.js +0 -92
- package/build/table/Table.d.ts +0 -852
- package/build/table/Table.d.ts.map +0 -1
- package/build/table/Table.js +0 -44
- package/build/visible/useVisible.d.ts +0 -3
- package/build/visible/useVisible.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-match-device.d.ts","sourceRoot":"","sources":["../../src/match-device/use-match-device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAQlD,eAAO,MAAM,cAAc,OAAQ,MAAM,KAAG,MA8B3C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import UAParser from "ua-parser-js";
|
|
3
|
-
export
|
|
3
|
+
export const useMatchDevice = (UA) => {
|
|
4
4
|
const isClientSide = typeof window !== "undefined";
|
|
5
5
|
const compute = () => {
|
|
6
6
|
const parser = new UAParser.UAParser(UA);
|
|
@@ -22,4 +22,4 @@ export default function useMatchDevice(UA) {
|
|
|
22
22
|
setDevice(compute());
|
|
23
23
|
}, [UA]);
|
|
24
24
|
return device;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-match-device.types.d.ts","sourceRoot":"","sources":["../../src/match-device/use-match-device.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/match-resolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Breakpoints, MatchResolution } from "./use-match-resolution.types";
|
|
2
|
+
export declare const defaultBreakpoints: Breakpoints;
|
|
3
|
+
export declare const useMatchResolution: (breakpoints?: Breakpoints, UA?: string) => MatchResolution;
|
|
4
|
+
//# sourceMappingURL=use-match-resolution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-match-resolution.d.ts","sourceRoot":"","sources":["../../src/match-resolution/use-match-resolution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAc,MAAM,8BAA8B,CAAC;AAExF,eAAO,MAAM,kBAAkB,EAAE,WAchC,CAAC;AAYF,eAAO,MAAM,kBAAkB,iBAChB,WAAW,OACpB,MAAM,KACT,eAsCF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
import useMatchDevice from "
|
|
2
|
+
import { useMatchDevice } from "..";
|
|
3
3
|
export const defaultBreakpoints = {
|
|
4
4
|
desktop: "(min-width: 1281px)",
|
|
5
5
|
laptop: "(min-width: 1025px) and (max-width: 1280px)",
|
|
@@ -15,7 +15,7 @@ export const defaultBreakpoints = {
|
|
|
15
15
|
portrait: "(orientation: portrait)",
|
|
16
16
|
landscape: "(orientation: landscape)",
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export const useMatchResolution = (breakpoints = defaultBreakpoints, UA = "") => {
|
|
19
19
|
const isClientSide = typeof window !== "undefined";
|
|
20
20
|
const { isDesktop, isMobile } = useMatchDevice(UA);
|
|
21
21
|
const match = (query) => isClientSide && window.matchMedia(query).matches;
|
|
@@ -46,4 +46,4 @@ export default function useMatchResolution(breakpoints = defaultBreakpoints, UA
|
|
|
46
46
|
setResolution(compute());
|
|
47
47
|
}, [breakpoints]);
|
|
48
48
|
return { resolution, breakpoints, match };
|
|
49
|
-
}
|
|
49
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Breakpoints = {
|
|
2
2
|
desktop: string;
|
|
3
3
|
laptop: string;
|
|
4
4
|
laptopOrUpper: string;
|
|
@@ -12,8 +12,8 @@ export interface Breakpoints {
|
|
|
12
12
|
mobile: string;
|
|
13
13
|
portrait: string;
|
|
14
14
|
landscape: string;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
15
|
+
};
|
|
16
|
+
export type Resolution = {
|
|
17
17
|
isDesktop: boolean;
|
|
18
18
|
isLaptop: boolean;
|
|
19
19
|
isLaptopOrUpper: boolean;
|
|
@@ -27,12 +27,10 @@ export interface Resolution {
|
|
|
27
27
|
isMobile: boolean;
|
|
28
28
|
isPortrait: boolean;
|
|
29
29
|
isLandscape: boolean;
|
|
30
|
-
}
|
|
31
|
-
export
|
|
30
|
+
};
|
|
31
|
+
export type MatchResolution = {
|
|
32
32
|
resolution: Resolution;
|
|
33
33
|
breakpoints: Breakpoints;
|
|
34
34
|
match: (query: string) => boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default function useMatchResolution(breakpoints?: Breakpoints, UA?: string): MatchResolution;
|
|
38
|
-
//# sourceMappingURL=useMatchResolution.d.ts.map
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=use-match-resolution.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-match-resolution.types.d.ts","sourceRoot":"","sources":["../../src/match-resolution/use-match-resolution.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./modal";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onClickedOutside?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const Modal: ({ children, onClickedOutside }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAI5D,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,KAAK,mCAAoC,KAAK,4CAiB1D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import { useOutsideAlerter } from "..";
|
|
4
|
+
import styles from "./modal.module.css";
|
|
5
|
+
export const Modal = ({ children, onClickedOutside }) => {
|
|
6
|
+
const ref = useRef(null);
|
|
7
|
+
const { hasClickedOutside } = useOutsideAlerter(ref);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
if (onClickedOutside && hasClickedOutside) {
|
|
10
|
+
onClickedOutside();
|
|
11
|
+
}
|
|
12
|
+
}, [hasClickedOutside]);
|
|
13
|
+
return (_jsx("div", { className: styles.overlay, children: _jsx("div", { className: styles.container, ref: ref, children: children }) }));
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mount-react-hook/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mount-react-hook.d.ts","sourceRoot":"","sources":["../../src/mount-react-hook/mount-react-hook.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AASvD,eAAO,MAAM,cAAc,cACd,aAAa,UACjB,aAAa,KACnB,WAaF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { render } from "@testing-library/react";
|
|
3
|
-
export
|
|
3
|
+
export const mountReactHook = (Component, props = {}) => {
|
|
4
4
|
let value = null;
|
|
5
5
|
const { container, unmount } = render(_jsx(Component, Object.assign({}, props, { children: (hookValue) => {
|
|
6
6
|
value = hookValue;
|
|
7
7
|
return null;
|
|
8
8
|
} })));
|
|
9
9
|
return { container, unmount, value };
|
|
10
|
-
}
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mount-react-hook.types.d.ts","sourceRoot":"","sources":["../../src/mount-react-hook/mount-react-hook.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/numbered-pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./numbered-pagination";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Pagination } from "..";
|
|
3
|
+
import { NumberedPaginationColors } from "./numbered-pagination.types";
|
|
4
|
+
export declare enum ArrowPosition {
|
|
5
|
+
LEFT = 0,
|
|
6
|
+
RIGHT = 1
|
|
7
|
+
}
|
|
8
|
+
type Props = Pagination & {
|
|
9
|
+
colors?: NumberedPaginationColors;
|
|
10
|
+
renderSingleArrow?: (position: ArrowPosition) => ReactNode;
|
|
11
|
+
renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const NumberedPagination: ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=numbered-pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numbered-pagination.d.ts","sourceRoot":"","sources":["../../src/numbered-pagination/numbered-pagination.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,oBAAY,aAAa;IACvB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,KAAK,KAAK,GAAG,UAAU,GAAG;IACxB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;CAC5D,CAAC;AAUF,eAAO,MAAM,kBAAkB,8HAY5B,KAAK,4CAqDP,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import styles from "./numbered-pagination.module.css";
|
|
4
|
+
export var ArrowPosition;
|
|
5
|
+
(function (ArrowPosition) {
|
|
6
|
+
ArrowPosition[ArrowPosition["LEFT"] = 0] = "LEFT";
|
|
7
|
+
ArrowPosition[ArrowPosition["RIGHT"] = 1] = "RIGHT";
|
|
8
|
+
})(ArrowPosition || (ArrowPosition = {}));
|
|
9
|
+
export const NumberedPagination = ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }) => {
|
|
10
|
+
const CSSVariables = {
|
|
11
|
+
"--hover-background-color": colors === null || colors === void 0 ? void 0 : colors.hover.background,
|
|
12
|
+
"--hover-text-color": colors === null || colors === void 0 ? void 0 : colors.hover.text,
|
|
13
|
+
"--selected-background-color": colors === null || colors === void 0 ? void 0 : colors.selected.background,
|
|
14
|
+
"--selected-text-color": colors === null || colors === void 0 ? void 0 : colors.selected.text,
|
|
15
|
+
};
|
|
16
|
+
return (_jsxs("div", { className: styles.container, style: CSSVariables, children: [page > 1 && (_jsxs(_Fragment, { children: [renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToFirst(), children: renderDoubleArrow(ArrowPosition.LEFT) })), renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLeft(), children: renderSingleArrow(ArrowPosition.LEFT) }))] })), items.map((currentPage, index) => (_jsx("div", { className: clsx(styles.item, currentPage === page && styles.selected), onClick: () => goToPage(currentPage), children: currentPage }, index))), page < total && (_jsxs(_Fragment, { children: [renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToRight(), children: renderSingleArrow(ArrowPosition.RIGHT) })), renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLast(), children: renderDoubleArrow(ArrowPosition.RIGHT) }))] }))] }));
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numbered-pagination.types.d.ts","sourceRoot":"","sources":["../../src/numbered-pagination/numbered-pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/outside-alerter/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-outside-alerter.d.ts","sourceRoot":"","sources":["../../src/outside-alerter/use-outside-alerter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAY,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,QAAS,SAAS,CAAC,WAAW,CAAC,KAAG,cAyB/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
export
|
|
2
|
+
export const useOutsideAlerter = (ref) => {
|
|
3
3
|
const [hasClickedOutside, setClickedOutside] = useState(false);
|
|
4
4
|
const handleOnReset = () => {
|
|
5
5
|
setClickedOutside(false);
|
|
@@ -19,4 +19,4 @@ export default function useOutsideAlerter(ref) {
|
|
|
19
19
|
};
|
|
20
20
|
}, [ref, hasClickedOutside]);
|
|
21
21
|
return { hasClickedOutside, onReset: handleOnReset };
|
|
22
|
-
}
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-outside-alerter.types.d.ts","sourceRoot":"","sources":["../../src/outside-alerter/use-outside-alerter.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { PaginationData, PaginationColors } from "..";
|
|
3
|
+
export declare enum ArrowPosition {
|
|
4
|
+
LEFT = 0,
|
|
5
|
+
RIGHT = 1
|
|
6
|
+
}
|
|
7
|
+
type Props = PaginationData & {
|
|
8
|
+
colors?: PaginationColors;
|
|
9
|
+
renderSingleArrow?: (position: ArrowPosition) => ReactNode;
|
|
10
|
+
renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const Pagination: ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAEtD,oBAAY,aAAa;IACvB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,KAAK,KAAK,GAAG,cAAc,GAAG;IAC5B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;CAC5D,CAAC;AAUF,eAAO,MAAM,UAAU,8HAYpB,KAAK,4CAqDP,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import styles from "./pagination.module.css";
|
|
4
|
+
export var ArrowPosition;
|
|
5
|
+
(function (ArrowPosition) {
|
|
6
|
+
ArrowPosition[ArrowPosition["LEFT"] = 0] = "LEFT";
|
|
7
|
+
ArrowPosition[ArrowPosition["RIGHT"] = 1] = "RIGHT";
|
|
8
|
+
})(ArrowPosition || (ArrowPosition = {}));
|
|
9
|
+
export const Pagination = ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }) => {
|
|
10
|
+
const CSSVariables = {
|
|
11
|
+
"--hover-background-color": colors === null || colors === void 0 ? void 0 : colors.hover.background,
|
|
12
|
+
"--hover-text-color": colors === null || colors === void 0 ? void 0 : colors.hover.text,
|
|
13
|
+
"--selected-background-color": colors === null || colors === void 0 ? void 0 : colors.selected.background,
|
|
14
|
+
"--selected-text-color": colors === null || colors === void 0 ? void 0 : colors.selected.text,
|
|
15
|
+
};
|
|
16
|
+
return (_jsxs("div", { className: styles.container, style: CSSVariables, children: [page > 1 && (_jsxs(_Fragment, { children: [renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToFirst(), children: renderDoubleArrow(ArrowPosition.LEFT) })), renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLeft(), children: renderSingleArrow(ArrowPosition.LEFT) }))] })), items.map((currentPage, index) => (_jsx("div", { className: clsx(styles.item, currentPage === page && styles.selected), onClick: () => goToPage(currentPage), children: currentPage }, index))), page < total && (_jsxs(_Fragment, { children: [renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToRight(), children: renderSingleArrow(ArrowPosition.RIGHT) })), renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLast(), children: renderDoubleArrow(ArrowPosition.RIGHT) }))] }))] }));
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.types.d.ts","sourceRoot":"","sources":["../../src/pagination/pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Pagination } from "./use-pagination.types";
|
|
2
|
+
type Props = {
|
|
3
|
+
page: number;
|
|
4
|
+
totalRecords: number;
|
|
5
|
+
maxRecordsPerPage?: number;
|
|
6
|
+
itemNeighbours?: number;
|
|
7
|
+
minItems?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const usePagination: (props: Props) => Pagination;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=use-pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pagination.d.ts","sourceRoot":"","sources":["../../src/pagination/use-pagination.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAkBF,eAAO,MAAM,aAAa,UAAW,KAAK,KAAG,UA0D5C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
export
|
|
2
|
+
export const usePagination = (props) => {
|
|
3
3
|
const { totalRecords, itemNeighbours = 2, minItems = 5, maxRecordsPerPage = 10 } = props;
|
|
4
4
|
const [page, setPage] = useState(props.page);
|
|
5
5
|
const [total, setTotal] = useState(0);
|
|
@@ -46,4 +46,4 @@ export default function usePagination(props) {
|
|
|
46
46
|
goToRight,
|
|
47
47
|
goToLast,
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Pagination = {
|
|
2
|
+
page: number;
|
|
3
|
+
total: number;
|
|
4
|
+
items: number[];
|
|
5
|
+
maxRecordsPerPage: number;
|
|
6
|
+
goToPage: (page: number) => void;
|
|
7
|
+
goToFirst: () => void;
|
|
8
|
+
goToLeft: () => void;
|
|
9
|
+
goToRight: () => void;
|
|
10
|
+
goToLast: () => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=use-pagination.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pagination.types.d.ts","sourceRoot":"","sources":["../../src/pagination/use-pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scroll-to/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scroll-to.d.ts","sourceRoot":"","sources":["../../src/scroll-to/use-scroll-to.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AASrD,eAAO,MAAM,WAAW,WAAY,SAAS,CAAC,WAAW,CAAC,KAAG,YAc5D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const useScrollTo = (target) => {
|
|
2
2
|
const isClientSide = typeof window !== "undefined";
|
|
3
3
|
if (!isClientSide) {
|
|
4
4
|
return { scrollToTop: () => null };
|
|
@@ -9,4 +9,4 @@ export default function useScrollTo(target) {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
return { scrollToTop };
|
|
12
|
-
}
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scroll-to.types.d.ts","sourceRoot":"","sources":["../../src/scroll-to/use-scroll-to.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowBottom.d.ts","sourceRoot":"","sources":["../../../src/select/icons/ArrowBottom.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,cAAc,UAAW,
|
|
1
|
+
{"version":3,"file":"ArrowBottom.d.ts","sourceRoot":"","sources":["../../../src/select/icons/ArrowBottom.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,cAAc,UAAW,QAAQ,CAAC,aAAa,CAAC,4CAQrD,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectOptionWithoutId, SelectOption } from "./select.types";
|
|
2
|
+
type Props = {
|
|
3
|
+
options: SelectOptionWithoutId[];
|
|
4
|
+
selectedValue?: string;
|
|
5
|
+
onChange?: (option: SelectOption) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const Select: ({ options: optionsProps, selectedValue, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAErE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,MAAM,uDAAwD,KAAK,4CAwE/E,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import styles from "./select.module.css";
|
|
4
|
+
import { ArrowBottom } from "./icons";
|
|
5
|
+
import { useOutsideAlerter } from "..";
|
|
6
|
+
export const Select = ({ options: optionsProps, selectedValue, onChange }) => {
|
|
7
|
+
const [options, setOptions] = useState(null);
|
|
8
|
+
const [isListVisible, setListVisibility] = useState(false);
|
|
9
|
+
const [selectedOption, setSelectedOption] = useState(null);
|
|
10
|
+
const ref = useRef(null);
|
|
11
|
+
const { hasClickedOutside, onReset: onResetOutsideAlerter } = useOutsideAlerter(ref);
|
|
12
|
+
const handleSelectedOptionClick = () => {
|
|
13
|
+
onResetOutsideAlerter();
|
|
14
|
+
setListVisibility(!isListVisible);
|
|
15
|
+
};
|
|
16
|
+
const handleOptionClick = (option) => {
|
|
17
|
+
setSelectedOption(option);
|
|
18
|
+
setListVisibility(false);
|
|
19
|
+
if (onChange) {
|
|
20
|
+
onChange(option);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
setOptions(optionsProps.map((option, index) => (Object.assign(Object.assign({}, option), { id: index }))));
|
|
25
|
+
}, [optionsProps]);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (options && !selectedOption) {
|
|
28
|
+
setSelectedOption(selectedValue ? options.find((option) => option.value === selectedValue) : options[0]);
|
|
29
|
+
}
|
|
30
|
+
}, [options]);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (hasClickedOutside) {
|
|
33
|
+
setListVisibility(false);
|
|
34
|
+
}
|
|
35
|
+
}, [hasClickedOutside]);
|
|
36
|
+
if (!options || !selectedOption) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return (_jsxs("div", { className: styles.container, ref: ref, children: [_jsxs("div", { className: styles["selected-option-container"], onClick: handleSelectedOptionClick, children: [_jsx("span", { className: styles["selected-option-text"], children: selectedOption.label }), _jsx(ArrowBottom, { className: styles["selected-option-arrow"] })] }), isListVisible && (_jsx("ul", { className: styles["options-list"], children: options
|
|
40
|
+
.filter((option) => option.id !== selectedOption.id)
|
|
41
|
+
.map((option) => (_jsx("li", { className: styles.option, onClick: () => handleOptionClick(option), children: option.label }, option.id))) }))] }));
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.types.d.ts","sourceRoot":"","sources":["../../src/select/select.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|