@vincentgraul/react-components 1.0.90 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/react-components.css +2 -1
- package/dist/react-components.js +25 -49423
- package/dist/react-components10.js +8 -0
- package/dist/react-components11.js +33 -0
- package/dist/react-components12.js +10 -0
- package/dist/react-components13.js +72 -0
- package/dist/react-components14.js +7 -0
- package/dist/react-components15.js +51 -0
- package/dist/react-components16.js +12 -0
- package/dist/react-components17.js +98 -0
- package/dist/react-components18.js +10 -0
- package/dist/react-components19.js +38 -0
- package/dist/react-components2.js +4 -0
- package/dist/react-components20.js +8 -0
- package/dist/react-components21.js +85 -0
- package/dist/react-components22.js +3 -0
- package/dist/react-components23.js +22 -0
- package/dist/react-components24.js +3 -0
- package/dist/react-components25.js +29 -0
- package/dist/react-components26.js +11 -0
- package/dist/react-components27.js +94 -0
- package/dist/react-components28.js +6 -0
- package/dist/react-components29.js +31 -0
- package/dist/react-components3.js +10 -0
- package/dist/react-components30.js +8 -0
- package/dist/react-components31.js +31 -0
- package/dist/react-components32.js +6 -0
- package/dist/react-components33.js +23 -0
- package/dist/react-components34.js +3 -0
- package/dist/react-components35.js +19 -0
- package/dist/react-components36.js +7 -0
- package/dist/react-components37.js +31 -0
- package/dist/react-components38.js +13 -0
- package/dist/react-components39.js +53 -0
- package/dist/react-components4.js +42 -0
- package/dist/react-components40.js +20 -0
- package/dist/react-components41.js +43 -0
- package/dist/react-components42.js +6 -0
- package/dist/react-components43.js +13 -0
- package/dist/react-components44.js +13 -0
- package/dist/react-components6.js +3 -0
- package/dist/react-components7.js +23 -0
- package/dist/react-components8.js +11 -0
- package/dist/react-components9.js +63 -0
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +13 -0
- package/dist/{button → src/components/button}/button.d.ts +5 -4
- package/dist/src/components/card/card.d.ts +22 -0
- package/dist/{checkbox → src/components/checkbox}/checkbox.d.ts +3 -4
- package/dist/src/components/country-selector/country-selector.d.ts +10 -0
- package/dist/src/components/drop-zone/drop-zone.d.ts +26 -0
- package/dist/{flex → src/components/flex}/flex.d.ts +5 -4
- package/dist/{index.d.ts → src/components/index.d.ts} +1 -7
- package/dist/src/components/input/input.d.ts +20 -0
- package/dist/{list → src/components/list}/list.d.ts +4 -3
- package/dist/src/components/loader/loader.d.ts +16 -0
- package/dist/src/components/modal/modal.d.ts +34 -0
- package/dist/src/components/pagination/index.d.ts +1 -0
- package/dist/src/components/pagination/pagination.d.ts +14 -0
- package/dist/src/components/radio/index.d.ts +1 -0
- package/dist/src/components/radio/radio.d.ts +15 -0
- package/dist/{select → src/components/select}/select.d.ts +15 -14
- package/dist/{table → src/components/table}/table.d.ts +5 -4
- package/dist/src/components/table/table.types.d.ts +8 -0
- package/dist/src/components/text/text.d.ts +14 -0
- package/dist/src/components/wizard/wizard.d.ts +32 -0
- package/dist/{wizard → src/components/wizard}/wizard.types.d.ts +2 -2
- package/dist/src/hooks/index.d.ts +7 -0
- package/dist/src/hooks/use-breadcrumb/index.d.ts +2 -0
- package/dist/src/hooks/use-breadcrumb/use-breadcrumb.d.ts +9 -0
- package/dist/src/hooks/use-breadcrumb/use-breadcrumb.types.d.ts +4 -0
- package/dist/{use-match-resolution → src/hooks/use-match-resolution}/use-match-resolution.d.ts +1 -1
- package/dist/{use-scroll-to → src/hooks/use-scroll-to}/use-scroll-to.d.ts +1 -1
- package/dist/src/hooks/use-visible/use-visible.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/types.d.ts +6 -0
- package/dist/src/utils.d.ts +5 -0
- package/package.json +59 -69
- package/dist/breadcrumb/breadcrumb.d.ts +0 -8
- package/dist/breadcrumb/breadcrumb.types.d.ts +0 -11
- package/dist/breadcrumb/use-breadcrumb.d.ts +0 -2
- package/dist/card/card.d.ts +0 -18
- package/dist/country-selector/country-selector.d.ts +0 -11
- package/dist/country-selector/icons/Ad.d.ts +0 -3
- package/dist/country-selector/icons/Ae.d.ts +0 -3
- package/dist/country-selector/icons/Af.d.ts +0 -3
- package/dist/country-selector/icons/Ag.d.ts +0 -3
- package/dist/country-selector/icons/Ai.d.ts +0 -3
- package/dist/country-selector/icons/Al.d.ts +0 -3
- package/dist/country-selector/icons/Am.d.ts +0 -3
- package/dist/country-selector/icons/Ao.d.ts +0 -3
- package/dist/country-selector/icons/Ar.d.ts +0 -3
- package/dist/country-selector/icons/As.d.ts +0 -3
- package/dist/country-selector/icons/At.d.ts +0 -3
- package/dist/country-selector/icons/Au.d.ts +0 -3
- package/dist/country-selector/icons/Aw.d.ts +0 -3
- package/dist/country-selector/icons/Az.d.ts +0 -3
- package/dist/country-selector/icons/Ba.d.ts +0 -3
- package/dist/country-selector/icons/Bb.d.ts +0 -3
- package/dist/country-selector/icons/Bd.d.ts +0 -3
- package/dist/country-selector/icons/Be.d.ts +0 -3
- package/dist/country-selector/icons/Bf.d.ts +0 -3
- package/dist/country-selector/icons/Bg.d.ts +0 -3
- package/dist/country-selector/icons/Bh.d.ts +0 -3
- package/dist/country-selector/icons/Bi.d.ts +0 -3
- package/dist/country-selector/icons/Bj.d.ts +0 -3
- package/dist/country-selector/icons/Bm.d.ts +0 -3
- package/dist/country-selector/icons/Bo.d.ts +0 -3
- package/dist/country-selector/icons/Br.d.ts +0 -3
- package/dist/country-selector/icons/Bs.d.ts +0 -3
- package/dist/country-selector/icons/Bt.d.ts +0 -3
- package/dist/country-selector/icons/Bw.d.ts +0 -3
- package/dist/country-selector/icons/By.d.ts +0 -3
- package/dist/country-selector/icons/Bz.d.ts +0 -3
- package/dist/country-selector/icons/Ca.d.ts +0 -3
- package/dist/country-selector/icons/Cd.d.ts +0 -3
- package/dist/country-selector/icons/Cf.d.ts +0 -3
- package/dist/country-selector/icons/Cg.d.ts +0 -3
- package/dist/country-selector/icons/Ch.d.ts +0 -3
- package/dist/country-selector/icons/Ci.d.ts +0 -3
- package/dist/country-selector/icons/Ck.d.ts +0 -3
- package/dist/country-selector/icons/Cl.d.ts +0 -3
- package/dist/country-selector/icons/Cm.d.ts +0 -3
- package/dist/country-selector/icons/Cn.d.ts +0 -3
- package/dist/country-selector/icons/Co.d.ts +0 -3
- package/dist/country-selector/icons/Cr.d.ts +0 -3
- package/dist/country-selector/icons/Cu.d.ts +0 -3
- package/dist/country-selector/icons/Cv.d.ts +0 -3
- package/dist/country-selector/icons/Cw.d.ts +0 -3
- package/dist/country-selector/icons/Cy.d.ts +0 -3
- package/dist/country-selector/icons/Cz.d.ts +0 -3
- package/dist/country-selector/icons/De.d.ts +0 -3
- package/dist/country-selector/icons/Dj.d.ts +0 -3
- package/dist/country-selector/icons/Dk.d.ts +0 -3
- package/dist/country-selector/icons/Dm.d.ts +0 -3
- package/dist/country-selector/icons/Do.d.ts +0 -3
- package/dist/country-selector/icons/Dz.d.ts +0 -3
- package/dist/country-selector/icons/Ec.d.ts +0 -3
- package/dist/country-selector/icons/Ee.d.ts +0 -3
- package/dist/country-selector/icons/Eg.d.ts +0 -3
- package/dist/country-selector/icons/Er.d.ts +0 -3
- package/dist/country-selector/icons/Es.d.ts +0 -3
- package/dist/country-selector/icons/Et.d.ts +0 -3
- package/dist/country-selector/icons/Fi.d.ts +0 -3
- package/dist/country-selector/icons/Fj.d.ts +0 -3
- package/dist/country-selector/icons/Fk.d.ts +0 -3
- package/dist/country-selector/icons/Fm.d.ts +0 -3
- package/dist/country-selector/icons/Fo.d.ts +0 -3
- package/dist/country-selector/icons/Fr.d.ts +0 -3
- package/dist/country-selector/icons/Ga.d.ts +0 -3
- package/dist/country-selector/icons/Gb.d.ts +0 -3
- package/dist/country-selector/icons/Gd.d.ts +0 -3
- package/dist/country-selector/icons/Ge.d.ts +0 -3
- package/dist/country-selector/icons/Gg.d.ts +0 -3
- package/dist/country-selector/icons/Gh.d.ts +0 -3
- package/dist/country-selector/icons/Gi.d.ts +0 -3
- package/dist/country-selector/icons/Gl.d.ts +0 -3
- package/dist/country-selector/icons/Gm.d.ts +0 -3
- package/dist/country-selector/icons/Gn.d.ts +0 -3
- package/dist/country-selector/icons/Gq.d.ts +0 -3
- package/dist/country-selector/icons/Gr.d.ts +0 -3
- package/dist/country-selector/icons/Gt.d.ts +0 -3
- package/dist/country-selector/icons/Gu.d.ts +0 -3
- package/dist/country-selector/icons/Gw.d.ts +0 -3
- package/dist/country-selector/icons/Hk.d.ts +0 -3
- package/dist/country-selector/icons/Hn.d.ts +0 -3
- package/dist/country-selector/icons/Hr.d.ts +0 -3
- package/dist/country-selector/icons/Ht.d.ts +0 -3
- package/dist/country-selector/icons/Hu.d.ts +0 -3
- package/dist/country-selector/icons/Id.d.ts +0 -3
- package/dist/country-selector/icons/Ie.d.ts +0 -3
- package/dist/country-selector/icons/Il.d.ts +0 -3
- package/dist/country-selector/icons/Im.d.ts +0 -3
- package/dist/country-selector/icons/In.d.ts +0 -3
- package/dist/country-selector/icons/Io.d.ts +0 -3
- package/dist/country-selector/icons/Iq.d.ts +0 -3
- package/dist/country-selector/icons/Ir.d.ts +0 -3
- package/dist/country-selector/icons/Is.d.ts +0 -3
- package/dist/country-selector/icons/It.d.ts +0 -3
- package/dist/country-selector/icons/Je.d.ts +0 -3
- package/dist/country-selector/icons/Jm.d.ts +0 -3
- package/dist/country-selector/icons/Jo.d.ts +0 -3
- package/dist/country-selector/icons/Jp.d.ts +0 -3
- package/dist/country-selector/icons/Ke.d.ts +0 -3
- package/dist/country-selector/icons/Kg.d.ts +0 -3
- package/dist/country-selector/icons/Kh.d.ts +0 -3
- package/dist/country-selector/icons/Ki.d.ts +0 -3
- package/dist/country-selector/icons/Km.d.ts +0 -3
- package/dist/country-selector/icons/Kn.d.ts +0 -3
- package/dist/country-selector/icons/Kp.d.ts +0 -3
- package/dist/country-selector/icons/Kr.d.ts +0 -3
- package/dist/country-selector/icons/Kw.d.ts +0 -3
- package/dist/country-selector/icons/Ky.d.ts +0 -3
- package/dist/country-selector/icons/Kz.d.ts +0 -3
- package/dist/country-selector/icons/La.d.ts +0 -3
- package/dist/country-selector/icons/Lb.d.ts +0 -3
- package/dist/country-selector/icons/Li.d.ts +0 -3
- package/dist/country-selector/icons/Lk.d.ts +0 -3
- package/dist/country-selector/icons/Lr.d.ts +0 -3
- package/dist/country-selector/icons/Ls.d.ts +0 -3
- package/dist/country-selector/icons/Lt.d.ts +0 -3
- package/dist/country-selector/icons/Lu.d.ts +0 -3
- package/dist/country-selector/icons/Lv.d.ts +0 -3
- package/dist/country-selector/icons/Ly.d.ts +0 -3
- package/dist/country-selector/icons/Ma.d.ts +0 -3
- package/dist/country-selector/icons/Mc.d.ts +0 -3
- package/dist/country-selector/icons/Md.d.ts +0 -3
- package/dist/country-selector/icons/Me.d.ts +0 -3
- package/dist/country-selector/icons/Mg.d.ts +0 -3
- package/dist/country-selector/icons/Mh.d.ts +0 -3
- package/dist/country-selector/icons/Mk.d.ts +0 -3
- package/dist/country-selector/icons/Ml.d.ts +0 -3
- package/dist/country-selector/icons/Mm.d.ts +0 -3
- package/dist/country-selector/icons/Mn.d.ts +0 -3
- package/dist/country-selector/icons/Mo.d.ts +0 -3
- package/dist/country-selector/icons/Mp.d.ts +0 -3
- package/dist/country-selector/icons/Mq.d.ts +0 -3
- package/dist/country-selector/icons/Mr.d.ts +0 -3
- package/dist/country-selector/icons/Ms.d.ts +0 -3
- package/dist/country-selector/icons/Mt.d.ts +0 -3
- package/dist/country-selector/icons/Mu.d.ts +0 -3
- package/dist/country-selector/icons/Mv.d.ts +0 -3
- package/dist/country-selector/icons/Mw.d.ts +0 -3
- package/dist/country-selector/icons/Mx.d.ts +0 -3
- package/dist/country-selector/icons/My.d.ts +0 -3
- package/dist/country-selector/icons/Mz.d.ts +0 -3
- package/dist/country-selector/icons/Na.d.ts +0 -3
- package/dist/country-selector/icons/Nato.d.ts +0 -3
- package/dist/country-selector/icons/Ne.d.ts +0 -3
- package/dist/country-selector/icons/Nf.d.ts +0 -3
- package/dist/country-selector/icons/Ng.d.ts +0 -3
- package/dist/country-selector/icons/Ni.d.ts +0 -3
- package/dist/country-selector/icons/Nl.d.ts +0 -3
- package/dist/country-selector/icons/No.d.ts +0 -3
- package/dist/country-selector/icons/Np.d.ts +0 -3
- package/dist/country-selector/icons/Nr.d.ts +0 -3
- package/dist/country-selector/icons/Nu.d.ts +0 -3
- package/dist/country-selector/icons/Nz.d.ts +0 -3
- package/dist/country-selector/icons/Om.d.ts +0 -3
- package/dist/country-selector/icons/Pa.d.ts +0 -3
- package/dist/country-selector/icons/Pe.d.ts +0 -3
- package/dist/country-selector/icons/Pf.d.ts +0 -3
- package/dist/country-selector/icons/Pg.d.ts +0 -3
- package/dist/country-selector/icons/Ph.d.ts +0 -3
- package/dist/country-selector/icons/Pk.d.ts +0 -3
- package/dist/country-selector/icons/Pl.d.ts +0 -3
- package/dist/country-selector/icons/Pn.d.ts +0 -3
- package/dist/country-selector/icons/Pr.d.ts +0 -3
- package/dist/country-selector/icons/Ps.d.ts +0 -3
- package/dist/country-selector/icons/Pt.d.ts +0 -3
- package/dist/country-selector/icons/Pw.d.ts +0 -3
- package/dist/country-selector/icons/Py.d.ts +0 -3
- package/dist/country-selector/icons/Qa.d.ts +0 -3
- package/dist/country-selector/icons/Ro.d.ts +0 -3
- package/dist/country-selector/icons/Rs.d.ts +0 -3
- package/dist/country-selector/icons/Ru.d.ts +0 -3
- package/dist/country-selector/icons/Rw.d.ts +0 -3
- package/dist/country-selector/icons/Sa.d.ts +0 -3
- package/dist/country-selector/icons/Sb.d.ts +0 -3
- package/dist/country-selector/icons/Sc.d.ts +0 -3
- package/dist/country-selector/icons/Sd.d.ts +0 -3
- package/dist/country-selector/icons/Se.d.ts +0 -3
- package/dist/country-selector/icons/Sg.d.ts +0 -3
- package/dist/country-selector/icons/Si.d.ts +0 -3
- package/dist/country-selector/icons/Sk.d.ts +0 -3
- package/dist/country-selector/icons/Sl.d.ts +0 -3
- package/dist/country-selector/icons/Sm.d.ts +0 -3
- package/dist/country-selector/icons/Sn.d.ts +0 -3
- package/dist/country-selector/icons/So.d.ts +0 -3
- package/dist/country-selector/icons/Sq.d.ts +0 -3
- package/dist/country-selector/icons/Sr.d.ts +0 -3
- package/dist/country-selector/icons/Ss.d.ts +0 -3
- package/dist/country-selector/icons/St.d.ts +0 -3
- package/dist/country-selector/icons/Sv.d.ts +0 -3
- package/dist/country-selector/icons/Sx.d.ts +0 -3
- package/dist/country-selector/icons/Sy.d.ts +0 -3
- package/dist/country-selector/icons/Sz.d.ts +0 -3
- package/dist/country-selector/icons/Tc.d.ts +0 -3
- package/dist/country-selector/icons/Td.d.ts +0 -3
- package/dist/country-selector/icons/Tg.d.ts +0 -3
- package/dist/country-selector/icons/Th.d.ts +0 -3
- package/dist/country-selector/icons/Tibet.d.ts +0 -3
- package/dist/country-selector/icons/Tj.d.ts +0 -3
- package/dist/country-selector/icons/Tk.d.ts +0 -3
- package/dist/country-selector/icons/Tm.d.ts +0 -3
- package/dist/country-selector/icons/Tn.d.ts +0 -3
- package/dist/country-selector/icons/To.d.ts +0 -3
- package/dist/country-selector/icons/Tr.d.ts +0 -3
- package/dist/country-selector/icons/Tt.d.ts +0 -3
- package/dist/country-selector/icons/Tv.d.ts +0 -3
- package/dist/country-selector/icons/Tw.d.ts +0 -3
- package/dist/country-selector/icons/Tz.d.ts +0 -3
- package/dist/country-selector/icons/Ua.d.ts +0 -3
- package/dist/country-selector/icons/Ug.d.ts +0 -3
- package/dist/country-selector/icons/Us.d.ts +0 -3
- package/dist/country-selector/icons/Uy.d.ts +0 -3
- package/dist/country-selector/icons/Uz.d.ts +0 -3
- package/dist/country-selector/icons/Ve.d.ts +0 -3
- package/dist/country-selector/icons/Vi.d.ts +0 -3
- package/dist/country-selector/icons/Vn.d.ts +0 -3
- package/dist/country-selector/icons/Vu.d.ts +0 -3
- package/dist/country-selector/icons/Ws.d.ts +0 -3
- package/dist/country-selector/icons/Ye.d.ts +0 -3
- package/dist/country-selector/icons/Za.d.ts +0 -3
- package/dist/country-selector/icons/Zm.d.ts +0 -3
- package/dist/country-selector/icons/Zw.d.ts +0 -3
- package/dist/country-selector/icons/index.d.ts +0 -223
- package/dist/drop-zone/drop-zone.d.ts +0 -24
- package/dist/input/input.d.ts +0 -19
- package/dist/loader/loader.d.ts +0 -10
- package/dist/modal/modal.d.ts +0 -7
- package/dist/mount-react-hook/index.d.ts +0 -2
- package/dist/mount-react-hook/mount-react-hook.d.ts +0 -3
- package/dist/mount-react-hook/mount-react-hook.types.d.ts +0 -5
- package/dist/pagination/index.d.ts +0 -2
- package/dist/pagination/pagination.d.ts +0 -9
- package/dist/pagination/pagination.types.d.ts +0 -10
- package/dist/table/table.types.d.ts +0 -4
- package/dist/text/text.d.ts +0 -13
- package/dist/use-visible/use-visible.d.ts +0 -2
- package/dist/wizard/wizard.d.ts +0 -33
- /package/dist/{breadcrumb → src/components/breadcrumb}/index.d.ts +0 -0
- /package/dist/{button → src/components/button}/index.d.ts +0 -0
- /package/dist/{card → src/components/card}/index.d.ts +0 -0
- /package/dist/{checkbox → src/components/checkbox}/index.d.ts +0 -0
- /package/dist/{country-selector → src/components/country-selector}/country-selector.types.d.ts +0 -0
- /package/dist/{country-selector → src/components/country-selector}/index.d.ts +0 -0
- /package/dist/{drop-zone → src/components/drop-zone}/index.d.ts +0 -0
- /package/dist/{flex → src/components/flex}/index.d.ts +0 -0
- /package/dist/{input → src/components/input}/index.d.ts +0 -0
- /package/dist/{input → src/components/input}/input.types.d.ts +0 -0
- /package/dist/{list → src/components/list}/index.d.ts +0 -0
- /package/dist/{loader → src/components/loader}/index.d.ts +0 -0
- /package/dist/{modal → src/components/modal}/index.d.ts +0 -0
- /package/dist/{select → src/components/select}/index.d.ts +0 -0
- /package/dist/{select → src/components/select}/select.types.d.ts +0 -0
- /package/dist/{table → src/components/table}/index.d.ts +0 -0
- /package/dist/{text → src/components/text}/index.d.ts +0 -0
- /package/dist/{wizard → src/components/wizard}/index.d.ts +0 -0
- /package/dist/{use-match-device → src/hooks/use-match-device}/index.d.ts +0 -0
- /package/dist/{use-match-device → src/hooks/use-match-device}/use-match-device.d.ts +0 -0
- /package/dist/{use-match-device → src/hooks/use-match-device}/use-match-device.types.d.ts +0 -0
- /package/dist/{use-match-resolution → src/hooks/use-match-resolution}/index.d.ts +0 -0
- /package/dist/{use-match-resolution → src/hooks/use-match-resolution}/use-match-resolution.types.d.ts +0 -0
- /package/dist/{use-outside-alerter → src/hooks/use-outside-alerter}/index.d.ts +0 -0
- /package/dist/{use-outside-alerter → src/hooks/use-outside-alerter}/use-outside-alerter.d.ts +0 -0
- /package/dist/{use-outside-alerter → src/hooks/use-outside-alerter}/use-outside-alerter.types.d.ts +0 -0
- /package/dist/{use-pagination → src/hooks/use-pagination}/index.d.ts +0 -0
- /package/dist/{use-pagination → src/hooks/use-pagination}/use-pagination.d.ts +0 -0
- /package/dist/{use-pagination → src/hooks/use-pagination}/use-pagination.types.d.ts +0 -0
- /package/dist/{use-scroll-to → src/hooks/use-scroll-to}/index.d.ts +0 -0
- /package/dist/{use-scroll-to → src/hooks/use-scroll-to}/use-scroll-to.types.d.ts +0 -0
- /package/dist/{use-visible → src/hooks/use-visible}/index.d.ts +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { toRem as e } from "./react-components2.js";
|
|
2
|
+
import t from "./react-components30.js";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/checkbox/checkbox.tsx
|
|
6
|
+
var a = ({ className: a, label: o, labelFontWeight: s = 400, labelColor: c, borderColor: l, checkColor: u, checkBackgroundColor: d, iconSize: f, size: p = 2, ...m }) => {
|
|
7
|
+
let h = {
|
|
8
|
+
"--checkbox-size": e(p),
|
|
9
|
+
"--checkbox-color-check": u,
|
|
10
|
+
"--checkbox-background-color-checked": d
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ i("label", {
|
|
13
|
+
className: n(t.container, a),
|
|
14
|
+
style: {
|
|
15
|
+
fontWeight: s,
|
|
16
|
+
...h
|
|
17
|
+
},
|
|
18
|
+
children: [/* @__PURE__ */ r("input", {
|
|
19
|
+
className: n(t.input, f && t[`icon-${f}`]),
|
|
20
|
+
type: "checkbox",
|
|
21
|
+
style: { borderColor: l },
|
|
22
|
+
...m
|
|
23
|
+
}), /* @__PURE__ */ r("span", {
|
|
24
|
+
className: t.label,
|
|
25
|
+
style: { color: c },
|
|
26
|
+
children: o
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as Checkbox };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { toRem as e } from "./react-components2.js";
|
|
2
|
+
import t from "./react-components32.js";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/list/list.tsx
|
|
6
|
+
var a = ({ className: a, icon: o, text: s, textFontSize: c = 1, textColor: l, textFontWeight: u = 400, gap: d = .3 }) => /* @__PURE__ */ i("li", {
|
|
7
|
+
className: n(t.item, a),
|
|
8
|
+
style: { gap: e(d) },
|
|
9
|
+
children: [o, /* @__PURE__ */ r("span", {
|
|
10
|
+
style: {
|
|
11
|
+
fontSize: e(c),
|
|
12
|
+
color: l,
|
|
13
|
+
fontWeight: u
|
|
14
|
+
},
|
|
15
|
+
children: s
|
|
16
|
+
})]
|
|
17
|
+
}), o = ({ className: i, children: a, gap: o = .5 }) => /* @__PURE__ */ r("ul", {
|
|
18
|
+
className: n(t.list, i),
|
|
19
|
+
style: { gap: e(o) },
|
|
20
|
+
children: a
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { o as List, a as ListItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toRem as e } from "./react-components2.js";
|
|
2
|
+
import t from "./react-components34.js";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/text/text.tsx
|
|
6
|
+
var i = ({ className: i, children: a, fontSize: o = 1, as: s = "p", fontWeight: c = 400, lineHeight: l = 1.5, textAlign: u = "start", fontStyle: d = "normal", color: f }) => /* @__PURE__ */ r(s, {
|
|
7
|
+
className: n(t.container, i),
|
|
8
|
+
style: {
|
|
9
|
+
fontSize: e(o),
|
|
10
|
+
fontWeight: c,
|
|
11
|
+
lineHeight: l,
|
|
12
|
+
textAlign: u,
|
|
13
|
+
fontStyle: d,
|
|
14
|
+
color: f
|
|
15
|
+
},
|
|
16
|
+
children: a
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as Text };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { toRem as e } from "./react-components2.js";
|
|
2
|
+
import t from "./react-components36.js";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/radio/radio.tsx
|
|
6
|
+
var a = ({ label: a, labelFontWeight: o = 400, labelColor: s, size: c = 1.5, borderStyle: l = "solid", borderColor: u, checkedBorderColor: d = "rgb(50, 115, 255)", checkedBackgroundColor: f = "rgb(50, 115, 255)", checkedLabelColor: p, className: m, ...h }) => {
|
|
7
|
+
let g = {
|
|
8
|
+
"--size": e(c),
|
|
9
|
+
"--label-color": s,
|
|
10
|
+
"--border-color": u,
|
|
11
|
+
"--checked-border-color": d,
|
|
12
|
+
"--checked-background-color": f,
|
|
13
|
+
"--checked-label-color": p
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ i("label", {
|
|
16
|
+
className: n(t.container, m),
|
|
17
|
+
style: { ...g },
|
|
18
|
+
children: [/* @__PURE__ */ r("input", {
|
|
19
|
+
className: t.radio,
|
|
20
|
+
type: "radio",
|
|
21
|
+
style: { borderStyle: l },
|
|
22
|
+
...h
|
|
23
|
+
}), /* @__PURE__ */ r("span", {
|
|
24
|
+
className: t.label,
|
|
25
|
+
style: { fontWeight: o },
|
|
26
|
+
children: a
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as Radio };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UAParser as e } from "ua-parser-js";
|
|
2
|
+
//#region src/hooks/use-match-device/use-match-device.ts
|
|
3
|
+
var t = (t) => {
|
|
4
|
+
let n = new e(t).getDevice();
|
|
5
|
+
return {
|
|
6
|
+
isMobile: n.is("mobile"),
|
|
7
|
+
isTablet: n.is("tablet"),
|
|
8
|
+
isMobileOrTablet: n.is("mobile") || n.is("tablet"),
|
|
9
|
+
isDesktop: !n.type
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as useMatchDevice };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useMatchDevice as e } from "./react-components38.js";
|
|
2
|
+
import { useCallback as t, useEffect as n, useState as r } from "react";
|
|
3
|
+
//#region src/hooks/use-match-resolution/use-match-resolution.ts
|
|
4
|
+
var i = {
|
|
5
|
+
desktop: "(min-width: 1281px)",
|
|
6
|
+
laptop: "(min-width: 1025px) and (max-width: 1280px)",
|
|
7
|
+
laptopOrUpper: "(min-width: 1025px)",
|
|
8
|
+
laptopOrLower: "(max-width: 1280px)",
|
|
9
|
+
tablet: "(min-width: 768px) and (max-width: 1024px)",
|
|
10
|
+
tabletOrUpper: "(min-width: 768px)",
|
|
11
|
+
tabletOrLower: "(max-width: 1024px)",
|
|
12
|
+
largeMobile: "(min-width: 481px) and (max-width: 767px)",
|
|
13
|
+
largeMobileOrUpper: "(min-width: 481px)",
|
|
14
|
+
largeMobileOrLower: "(max-width: 767px)",
|
|
15
|
+
mobile: "(min-width: 320px) and (max-width: 480px)",
|
|
16
|
+
portrait: "(orientation: portrait)",
|
|
17
|
+
landscape: "(orientation: landscape)"
|
|
18
|
+
}, a = (a, o = i) => {
|
|
19
|
+
let s = typeof window < "u", { isDesktop: c, isMobile: l } = e(a), u = t((e) => s && window.matchMedia(e).matches, [s]), d = t(() => ({
|
|
20
|
+
isDesktop: s ? u(o.desktop) : c,
|
|
21
|
+
isLaptop: s ? u(o.laptop) : c,
|
|
22
|
+
isLaptopOrUpper: s ? u(o.laptopOrUpper) : c,
|
|
23
|
+
isLaptopOrLower: s ? u(o.laptopOrLower) : !1,
|
|
24
|
+
isTablet: s ? u(o.tablet) : l,
|
|
25
|
+
isTabletOrUpper: s ? u(o.tabletOrUpper) : !1,
|
|
26
|
+
isTabletOrLower: s ? u(o.tabletOrLower) : l,
|
|
27
|
+
isLargeMobile: s ? u(o.largeMobile) : l,
|
|
28
|
+
isLargeMobileOrUpper: s ? u(o.largeMobileOrUpper) : !1,
|
|
29
|
+
isLargeMobileOrLower: s ? u(o.largeMobileOrLower) : l,
|
|
30
|
+
isMobile: s ? u(o.mobile) : l,
|
|
31
|
+
isPortrait: s ? u(o.portrait) : !1,
|
|
32
|
+
isLandscape: s ? u(o.landscape) : !1
|
|
33
|
+
}), [
|
|
34
|
+
o,
|
|
35
|
+
s,
|
|
36
|
+
c,
|
|
37
|
+
l,
|
|
38
|
+
u
|
|
39
|
+
]), [f, p] = r(d());
|
|
40
|
+
return n(() => {
|
|
41
|
+
if (!s) return;
|
|
42
|
+
let e = () => p(d());
|
|
43
|
+
return window.addEventListener("resize", e), () => {
|
|
44
|
+
window.removeEventListener("resize", e);
|
|
45
|
+
};
|
|
46
|
+
}, [s, d]), {
|
|
47
|
+
resolution: f,
|
|
48
|
+
breakpoints: o,
|
|
49
|
+
match: u
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { i as defaultBreakpoints, a as useMatchResolution };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { toPx as e, toRem as t } from "./react-components2.js";
|
|
2
|
+
import n from "./react-components3.js";
|
|
3
|
+
import { useBreadcrumb as r } from "./react-components44.js";
|
|
4
|
+
import i from "clsx";
|
|
5
|
+
import { ChevronRight as a } from "lucide-react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/breadcrumb/breadcrumb.tsx
|
|
8
|
+
var c = ({ config: c, onClick: l, icon: u, iconWidth: d = 50, iconMargin: f = 1, color: p, fontSize: m = 2, className: h }) => {
|
|
9
|
+
let g = r(c);
|
|
10
|
+
return /* @__PURE__ */ o("nav", {
|
|
11
|
+
"aria-label": "breadcrumb",
|
|
12
|
+
className: i(n.container, h),
|
|
13
|
+
children: /* @__PURE__ */ o("ol", {
|
|
14
|
+
className: n["list-item"],
|
|
15
|
+
children: g.map((r, i) => /* @__PURE__ */ s("li", {
|
|
16
|
+
className: n.item,
|
|
17
|
+
children: [/* @__PURE__ */ o("button", {
|
|
18
|
+
type: "button",
|
|
19
|
+
className: n.link,
|
|
20
|
+
onClick: () => l(r),
|
|
21
|
+
style: {
|
|
22
|
+
color: p,
|
|
23
|
+
fontSize: t(m)
|
|
24
|
+
},
|
|
25
|
+
children: r.label
|
|
26
|
+
}), i < g.length - 1 && /* @__PURE__ */ o("span", {
|
|
27
|
+
"aria-hidden": !0,
|
|
28
|
+
children: u ?? /* @__PURE__ */ o(a, {
|
|
29
|
+
className: n.icon,
|
|
30
|
+
style: {
|
|
31
|
+
width: e(d),
|
|
32
|
+
marginLeft: t(f),
|
|
33
|
+
marginRight: t(f)
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
})]
|
|
37
|
+
}, r.url))
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { c as Breadcrumb };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-outside-alerter/use-outside-alerter.tsx
|
|
3
|
+
var n = (n) => {
|
|
4
|
+
let [r, i] = t(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = (e) => {
|
|
7
|
+
e.target && n.current && i(!n.current.contains(e.target));
|
|
8
|
+
};
|
|
9
|
+
return document.addEventListener("mousedown", e), () => {
|
|
10
|
+
document.removeEventListener("mousedown", e);
|
|
11
|
+
};
|
|
12
|
+
}, [n]), {
|
|
13
|
+
hasClickedOutside: r,
|
|
14
|
+
onReset: () => {
|
|
15
|
+
i(!1);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as useOutsideAlerter };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useState as n } from "react";
|
|
2
|
+
//#region src/hooks/use-pagination/use-pagination.ts
|
|
3
|
+
var r = (r) => {
|
|
4
|
+
let { totalRecords: i, itemNeighbours: a = 2, minItems: o = 5, maxRecordsPerPage: s = 10 } = r, [c, l] = n(r.page), [u, d] = n(0), [f, p] = n([]), m = e(() => {
|
|
5
|
+
let e = [], t = Math.max(1, Math.min(c - a, u + 1 - o)), n = Math.min(u, Math.max(o, c + a));
|
|
6
|
+
for (let r = t; r <= n; r++) e.push(r);
|
|
7
|
+
return e;
|
|
8
|
+
}, [
|
|
9
|
+
c,
|
|
10
|
+
u,
|
|
11
|
+
a,
|
|
12
|
+
o
|
|
13
|
+
]);
|
|
14
|
+
t(() => {
|
|
15
|
+
d(Math.ceil(i / s));
|
|
16
|
+
}, [i, s]), t(() => {
|
|
17
|
+
p(m());
|
|
18
|
+
}, [m]);
|
|
19
|
+
let h = (e) => {
|
|
20
|
+
l(Math.max(1, Math.min(e, u)));
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
page: c,
|
|
24
|
+
total: u,
|
|
25
|
+
items: f,
|
|
26
|
+
maxRecordsPerPage: s,
|
|
27
|
+
goToPage: h,
|
|
28
|
+
goToFirst: () => {
|
|
29
|
+
h(1);
|
|
30
|
+
},
|
|
31
|
+
goToLeft: () => {
|
|
32
|
+
h(c - 1);
|
|
33
|
+
},
|
|
34
|
+
goToRight: () => {
|
|
35
|
+
h(c + 1);
|
|
36
|
+
},
|
|
37
|
+
goToLast: () => {
|
|
38
|
+
h(u);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { r as usePagination };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-visible/use-visible.ts
|
|
3
|
+
var n = (n) => {
|
|
4
|
+
let [r, i] = t(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = new IntersectionObserver(([e]) => i(e.isIntersecting));
|
|
7
|
+
return n?.current && e.observe(n.current), () => {
|
|
8
|
+
n?.current && e.unobserve(n.current);
|
|
9
|
+
};
|
|
10
|
+
}, [n]), r;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as useVisible };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/hooks/use-breadcrumb/use-breadcrumb.ts
|
|
2
|
+
var e = ({ url: e = new URL(location.href), mapping: t }) => {
|
|
3
|
+
let n = e.pathname.split("/").slice(1), r = "";
|
|
4
|
+
return n.map((e) => {
|
|
5
|
+
let n = t?.find(({ path: t }) => e === t)?.label ?? e, i = `${r}/${e}`;
|
|
6
|
+
return r = i, {
|
|
7
|
+
label: n,
|
|
8
|
+
url: i
|
|
9
|
+
};
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as useBreadcrumb };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { toPx as e } from "./react-components2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "./react-components6.js";
|
|
4
|
+
import { Select as n } from "./react-components17.js";
|
|
5
|
+
import r from "clsx";
|
|
6
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/country-selector/country-selector.tsx
|
|
8
|
+
var a = ({ value: a, languages: o, onChange: s, flagWidth: c = 25, className: l, ...u }) => /* @__PURE__ */ i(n, {
|
|
9
|
+
className: l,
|
|
10
|
+
selectedValue: a,
|
|
11
|
+
options: o.map((n) => ({
|
|
12
|
+
value: n,
|
|
13
|
+
label: /* @__PURE__ */ i("span", {
|
|
14
|
+
className: r(t.flag, `fi fi-${n}`),
|
|
15
|
+
style: { width: e(c) }
|
|
16
|
+
})
|
|
17
|
+
})),
|
|
18
|
+
onChange: s,
|
|
19
|
+
width: "fit-content",
|
|
20
|
+
...u
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as CountrySelector };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/input/input.module.css
|
|
2
|
+
var e = "_container_11wna_1", t = "_input_11wna_5", n = "_fieldset_11wna_23", r = "_legend_11wna_54", i = {
|
|
3
|
+
container: e,
|
|
4
|
+
"input-container": "_input-container_11wna_5",
|
|
5
|
+
input: t,
|
|
6
|
+
fieldset: n,
|
|
7
|
+
legend: r,
|
|
8
|
+
"message-container": "_message-container_11wna_58"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { i as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { isNumber as e, toPercentage as t, toPx as n, toRem as r } from "./react-components2.js";
|
|
2
|
+
import i from "./react-components8.js";
|
|
3
|
+
import a from "clsx";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
import { useState as c } from "react";
|
|
6
|
+
//#region src/components/input/input.tsx
|
|
7
|
+
var l = ({ className: l, label: u, message: d, colors: f = {
|
|
8
|
+
success: "green",
|
|
9
|
+
error: "red",
|
|
10
|
+
warning: "orange",
|
|
11
|
+
focus: "blue"
|
|
12
|
+
}, status: p, width: m = 100, height: h = "auto", borderWidth: g = 1, borderWidthFocus: _ = 2, labelFontWeight: v = 400, labelFontSize: y = 1, messageFontWeight: b = 400, messageFontSize: x = 1, onFocus: S, onBlur: C, ...w }) => {
|
|
13
|
+
let [T, E] = c(!1), D = {
|
|
14
|
+
"--success-color": f.success,
|
|
15
|
+
"--warning-color": f.warning,
|
|
16
|
+
"--error-color": f.error,
|
|
17
|
+
"--focus-color": f.focus
|
|
18
|
+
}, O = (e) => {
|
|
19
|
+
S && S(e), E(!0);
|
|
20
|
+
}, k = (e) => {
|
|
21
|
+
C && C(e), E(!1);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ s("div", {
|
|
24
|
+
className: a(i.container, l),
|
|
25
|
+
style: {
|
|
26
|
+
width: e(m) ? t(m) : m,
|
|
27
|
+
height: e(h) ? r(h) : h,
|
|
28
|
+
...D
|
|
29
|
+
},
|
|
30
|
+
children: [/* @__PURE__ */ s("div", {
|
|
31
|
+
className: i["input-container"],
|
|
32
|
+
children: [/* @__PURE__ */ o("input", {
|
|
33
|
+
className: a(i.input, p),
|
|
34
|
+
...w,
|
|
35
|
+
onFocus: O,
|
|
36
|
+
onBlur: k
|
|
37
|
+
}), /* @__PURE__ */ o("fieldset", {
|
|
38
|
+
className: a(i.fieldset, p),
|
|
39
|
+
style: { borderWidth: n(T ? _ : g) },
|
|
40
|
+
children: /* @__PURE__ */ o("legend", {
|
|
41
|
+
className: i.legend,
|
|
42
|
+
style: {
|
|
43
|
+
fontWeight: v,
|
|
44
|
+
fontSize: r(y)
|
|
45
|
+
},
|
|
46
|
+
children: u
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
}), d && /* @__PURE__ */ o("div", {
|
|
50
|
+
className: a(i["message-container"], p),
|
|
51
|
+
children: /* @__PURE__ */ o("span", {
|
|
52
|
+
className: i.message,
|
|
53
|
+
style: {
|
|
54
|
+
fontWeight: b,
|
|
55
|
+
fontSize: r(x)
|
|
56
|
+
},
|
|
57
|
+
children: d
|
|
58
|
+
})
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
export { l as Input };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BreadcrumbItem, useBreadcrumbProps } from '../..';
|
|
3
|
+
export type BreadcrumbProps = {
|
|
4
|
+
config: useBreadcrumbProps;
|
|
5
|
+
onClick: (element: BreadcrumbItem) => void;
|
|
6
|
+
color?: string;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
iconWidth?: number;
|
|
10
|
+
iconMargin?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Breadcrumb: ({ config, onClick, icon, iconWidth, iconMargin, color, fontSize, className, }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { FontWeight, Position, Size } from '../../types';
|
|
2
3
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
color?: string;
|
|
5
|
-
width?:
|
|
6
|
-
height?:
|
|
6
|
+
width?: Size;
|
|
7
|
+
height?: Size;
|
|
7
8
|
backgroundColor?: string;
|
|
8
9
|
borderColor?: string;
|
|
9
|
-
alignSelf?:
|
|
10
|
+
alignSelf?: Position;
|
|
10
11
|
fontSize?: number;
|
|
11
|
-
fontWeight?:
|
|
12
|
+
fontWeight?: FontWeight;
|
|
12
13
|
borderRadius?: number;
|
|
13
14
|
borderWidth?: number;
|
|
14
15
|
padding?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BorderStyle, FontWeight, Position, Size, Text } from '../../types';
|
|
3
|
+
export type CardProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
title?: string;
|
|
6
|
+
titleAs?: Text;
|
|
7
|
+
titleFontSize?: number;
|
|
8
|
+
titleFontWeight?: FontWeight;
|
|
9
|
+
titleColor?: string;
|
|
10
|
+
titleTextAlign?: Position;
|
|
11
|
+
titleGap?: number;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
borderRadius?: number;
|
|
14
|
+
borderWidth?: number;
|
|
15
|
+
borderStyle?: BorderStyle;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
padding?: string;
|
|
18
|
+
width?: Size;
|
|
19
|
+
height?: Size;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Card: ({ className, children, title, titleAs: Title, titleFontSize, titleFontWeight, titleColor, titleTextAlign, titleGap, backgroundColor, borderRadius, borderWidth, borderStyle, borderColor, width, height, padding, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { FontWeight } from '../../types';
|
|
2
3
|
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
3
4
|
label: string;
|
|
4
|
-
|
|
5
|
+
labelFontWeight?: FontWeight;
|
|
5
6
|
labelColor?: string;
|
|
6
|
-
borderWidth?: number;
|
|
7
7
|
borderColor?: string;
|
|
8
8
|
checkColor?: string;
|
|
9
9
|
checkBackgroundColor?: string;
|
|
10
10
|
iconSize?: "small" | "medium" | "large";
|
|
11
11
|
size?: number;
|
|
12
|
-
gap?: number;
|
|
13
12
|
className?: string;
|
|
14
13
|
};
|
|
15
|
-
export declare const Checkbox: ({ className, label,
|
|
14
|
+
export declare const Checkbox: ({ className, label, labelFontWeight, labelColor, borderColor, checkColor, checkBackgroundColor, iconSize, size, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SelectProps } from '..';
|
|
2
|
+
import { CountrySelectorOption } from './country-selector.types';
|
|
3
|
+
export type CountrySelectorProps = {
|
|
4
|
+
languages: string[];
|
|
5
|
+
value?: string;
|
|
6
|
+
flagWidth?: number;
|
|
7
|
+
onChange?: (option: CountrySelectorOption) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const CountrySelector: ({ value, languages, onChange, flagWidth, className, ...rest }: CountrySelectorProps & Omit<SelectProps, "options">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BorderStyle, FontWeight, Size } from '../../types';
|
|
3
|
+
export type DropZoneProps = {
|
|
4
|
+
onFileChanged: (file: File | undefined) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
labelFontSize?: number;
|
|
7
|
+
labelFontWeight?: FontWeight;
|
|
8
|
+
labelGap?: number;
|
|
9
|
+
previewIcon?: ReactNode;
|
|
10
|
+
previewIconSize?: number;
|
|
11
|
+
removeIcon?: ReactNode;
|
|
12
|
+
removeIconSize?: number;
|
|
13
|
+
text?: string;
|
|
14
|
+
textFontSize?: number;
|
|
15
|
+
textFontWeight?: FontWeight;
|
|
16
|
+
width?: Size;
|
|
17
|
+
height?: Size;
|
|
18
|
+
gap?: number;
|
|
19
|
+
padding?: string;
|
|
20
|
+
borderWidth?: number;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
borderStyle?: BorderStyle;
|
|
23
|
+
removeAriaLabel?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const DropZone: ({ onFileChanged, label, labelFontSize, labelFontWeight, labelGap, previewIcon, previewIconSize, removeIcon, removeIconSize, text, textFontSize, textFontWeight, width, height, gap, padding, borderWidth, borderColor, borderStyle, removeAriaLabel, className, }: DropZoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { Size } from '../../types';
|
|
2
3
|
export type FlexProps = {
|
|
3
4
|
children: ReactNode;
|
|
4
|
-
|
|
5
|
+
flexDirection?: "row" | "column";
|
|
5
6
|
justifyContent?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
6
7
|
alignItems?: "start" | "center" | "end" | "stretch";
|
|
7
8
|
alignSelf?: "start" | "center" | "end" | "stretch";
|
|
8
9
|
wrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
9
|
-
width?:
|
|
10
|
-
height?:
|
|
10
|
+
width?: Size;
|
|
11
|
+
height?: Size;
|
|
11
12
|
padding?: string;
|
|
12
13
|
gap?: number;
|
|
13
14
|
className?: string;
|
|
14
15
|
};
|
|
15
|
-
export declare const Flex: ({ className, children,
|
|
16
|
+
export declare const Flex: ({ className, children, flexDirection, justifyContent, alignItems, alignSelf, wrap, width, height, padding, gap, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,17 +2,10 @@ export * from './breadcrumb';
|
|
|
2
2
|
export * from './country-selector';
|
|
3
3
|
export * from './input';
|
|
4
4
|
export * from './loader';
|
|
5
|
-
export * from './use-match-device';
|
|
6
|
-
export * from './use-match-resolution';
|
|
7
5
|
export * from './modal';
|
|
8
|
-
export * from './mount-react-hook';
|
|
9
6
|
export * from './pagination';
|
|
10
|
-
export * from './use-outside-alerter';
|
|
11
|
-
export * from './use-pagination';
|
|
12
|
-
export * from './use-scroll-to';
|
|
13
7
|
export * from './select';
|
|
14
8
|
export * from './table';
|
|
15
|
-
export * from './use-visible';
|
|
16
9
|
export * from './wizard';
|
|
17
10
|
export * from './flex';
|
|
18
11
|
export * from './button';
|
|
@@ -21,3 +14,4 @@ export * from './card';
|
|
|
21
14
|
export * from './checkbox';
|
|
22
15
|
export * from './list';
|
|
23
16
|
export * from './text';
|
|
17
|
+
export * from './radio';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { FontWeight, Size } from '../../types';
|
|
3
|
+
import { InputColors, InputStatus, InputType } from './input.types';
|
|
4
|
+
export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
5
|
+
label: string;
|
|
6
|
+
type: InputType;
|
|
7
|
+
colors?: InputColors;
|
|
8
|
+
status?: InputStatus;
|
|
9
|
+
message?: string;
|
|
10
|
+
width?: Size;
|
|
11
|
+
height?: Size;
|
|
12
|
+
borderWidth?: number;
|
|
13
|
+
borderWidthFocus?: number;
|
|
14
|
+
labelFontWeight?: FontWeight;
|
|
15
|
+
labelFontSize?: number;
|
|
16
|
+
messageFontWeight?: FontWeight;
|
|
17
|
+
messageFontSize?: number;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const Input: ({ className, label, message, colors, status, width, height, borderWidth, borderWidthFocus, labelFontWeight, labelFontSize, messageFontWeight, messageFontSize, onFocus, onBlur, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FontWeight } from '../../types';
|
|
2
3
|
export type ListItemProps = {
|
|
3
4
|
icon: ReactNode;
|
|
4
5
|
text: string;
|
|
5
|
-
|
|
6
|
+
textFontSize?: number;
|
|
6
7
|
textColor?: string;
|
|
7
|
-
|
|
8
|
+
textFontWeight?: FontWeight;
|
|
8
9
|
gap?: number;
|
|
9
10
|
className?: string;
|
|
10
11
|
};
|
|
11
|
-
export declare const ListItem: ({ className, icon, text,
|
|
12
|
+
export declare const ListItem: ({ className, icon, text, textFontSize, textColor, textFontWeight, gap, }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export type ListProps = {
|
|
13
14
|
children: ReactNode;
|
|
14
15
|
gap?: number;
|