phlex-icons-flag 1.8.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -39
- data/generators/bootstrap.rb +7 -9
- data/generators/flag.rb +10 -12
- data/generators/helper.rb +1 -1
- data/generators/hero.rb +10 -12
- data/generators/lucide.rb +7 -9
- data/generators/radix.rb +7 -9
- data/generators/remix.rb +7 -9
- data/generators/tabler.rb +10 -12
- data/lib/phlex-icons/base.rb +18 -0
- data/lib/phlex-icons/configuration.rb +11 -0
- data/lib/phlex-icons/flag/ad.rb +317 -0
- data/lib/phlex-icons/flag/ae.rb +29 -0
- data/lib/phlex-icons/flag/af.rb +181 -0
- data/lib/phlex-icons/flag/ag.rb +66 -0
- data/lib/phlex-icons/flag/ai.rb +77 -0
- data/lib/phlex-icons/flag/al.rb +29 -0
- data/lib/phlex-icons/flag/am.rb +27 -0
- data/lib/phlex-icons/flag/ao.rb +113 -0
- data/lib/phlex-icons/flag/aq.rb +53 -0
- data/lib/phlex-icons/flag/ar.rb +83 -0
- data/lib/phlex-icons/flag/arab.rb +1149 -0
- data/lib/phlex-icons/flag/as.rb +655 -0
- data/lib/phlex-icons/flag/at.rb +25 -0
- data/lib/phlex-icons/flag/au.rb +59 -0
- data/lib/phlex-icons/flag/aw.rb +405 -0
- data/lib/phlex-icons/flag/ax.rb +58 -0
- data/lib/phlex-icons/flag/az.rb +43 -0
- data/lib/phlex-icons/flag/ba.rb +53 -0
- data/lib/phlex-icons/flag/base.rb +23 -0
- data/lib/phlex-icons/flag/bb.rb +31 -0
- data/lib/phlex-icons/flag/bd.rb +25 -0
- data/lib/phlex-icons/flag/be.rb +31 -0
- data/lib/phlex-icons/flag/bf.rb +40 -0
- data/lib/phlex-icons/flag/bg.rb +27 -0
- data/lib/phlex-icons/flag/bh.rb +35 -0
- data/lib/phlex-icons/flag/bi.rb +87 -0
- data/lib/phlex-icons/flag/bj.rb +47 -0
- data/lib/phlex-icons/flag/bl.rb +29 -0
- data/lib/phlex-icons/flag/bm.rb +1178 -0
- data/lib/phlex-icons/flag/bn.rb +91 -0
- data/lib/phlex-icons/flag/bo.rb +7371 -0
- data/lib/phlex-icons/flag/bq.rb +27 -0
- data/lib/phlex-icons/flag/br.rb +309 -0
- data/lib/phlex-icons/flag/bs.rb +56 -0
- data/lib/phlex-icons/flag/bt.rb +586 -0
- data/lib/phlex-icons/flag/bv.rb +49 -0
- data/lib/phlex-icons/flag/bw.rb +31 -0
- data/lib/phlex-icons/flag/by.rb +55 -0
- data/lib/phlex-icons/flag/bz.rb +309 -0
- data/lib/phlex-icons/flag/ca.rb +35 -0
- data/lib/phlex-icons/flag/cc.rb +57 -0
- data/lib/phlex-icons/flag/cd.rb +42 -0
- data/lib/phlex-icons/flag/cefta.rb +89 -0
- data/lib/phlex-icons/flag/cf.rb +59 -0
- data/lib/phlex-icons/flag/cg.rb +53 -0
- data/lib/phlex-icons/flag/ch.rb +35 -0
- data/lib/phlex-icons/flag/ci.rb +31 -0
- data/lib/phlex-icons/flag/ck.rb +63 -0
- data/lib/phlex-icons/flag/cl.rb +61 -0
- data/lib/phlex-icons/flag/cm.rb +49 -0
- data/lib/phlex-icons/flag/cn.rb +41 -0
- data/lib/phlex-icons/flag/co.rb +31 -0
- data/lib/phlex-icons/flag/configuration.rb +13 -0
- data/lib/{phlex/icons/flag/mf.rb → phlex-icons/flag/cp.rb} +14 -12
- data/lib/phlex-icons/flag/cr.rb +31 -0
- data/lib/phlex-icons/flag/cu.rb +55 -0
- data/lib/phlex-icons/flag/cv.rb +61 -0
- data/lib/phlex-icons/flag/cw.rb +47 -0
- data/lib/phlex-icons/flag/cx.rb +49 -0
- data/lib/phlex-icons/flag/cy.rb +31 -0
- data/lib/phlex-icons/flag/cz.rb +27 -0
- data/lib/phlex-icons/flag/de.rb +27 -0
- data/lib/phlex-icons/flag/dg.rb +1561 -0
- data/lib/phlex-icons/flag/dj.rb +61 -0
- data/lib/phlex-icons/flag/dk.rb +27 -0
- data/lib/phlex-icons/flag/dm.rb +1435 -0
- data/lib/phlex-icons/flag/do.rb +263 -0
- data/lib/phlex-icons/flag/dz.rb +35 -0
- data/lib/phlex-icons/flag/eac.rb +115 -0
- data/lib/phlex-icons/flag/ec.rb +1615 -0
- data/lib/phlex-icons/flag/ee.rb +27 -0
- data/lib/phlex-icons/flag/eg.rb +95 -0
- data/lib/phlex-icons/flag/eh.rb +58 -0
- data/lib/phlex-icons/flag/er.rb +46 -0
- data/lib/phlex-icons/flag/es.rb +5734 -0
- data/lib/phlex-icons/flag/es_ct.rb +35 -0
- data/lib/phlex-icons/flag/es_ga.rb +1820 -0
- data/lib/phlex-icons/flag/es_pv.rb +43 -0
- data/lib/phlex-icons/flag/et.rb +77 -0
- data/lib/phlex-icons/flag/eu.rb +75 -0
- data/lib/phlex-icons/flag/fi.rb +27 -0
- data/lib/phlex-icons/flag/fj.rb +855 -0
- data/lib/phlex-icons/flag/fk.rb +198 -0
- data/lib/phlex-icons/flag/fm.rb +59 -0
- data/lib/phlex-icons/flag/fo.rb +59 -0
- data/lib/phlex-icons/flag/fr.rb +27 -0
- data/lib/phlex-icons/flag/ga.rb +31 -0
- data/lib/phlex-icons/flag/gb.rb +47 -0
- data/lib/phlex-icons/flag/gb_eng.rb +27 -0
- data/lib/phlex-icons/flag/gb_nir.rb +282 -0
- data/lib/phlex-icons/flag/gb_sct.rb +35 -0
- data/lib/phlex-icons/flag/gb_wls.rb +58 -0
- data/lib/phlex-icons/flag/gd.rb +73 -0
- data/lib/phlex-icons/flag/ge.rb +41 -0
- data/lib/phlex-icons/flag/gf.rb +27 -0
- data/lib/phlex-icons/flag/gg.rb +35 -0
- data/lib/phlex-icons/flag/gh.rb +32 -0
- data/lib/phlex-icons/flag/gi.rb +83 -0
- data/lib/phlex-icons/flag/gl.rb +32 -0
- data/lib/phlex-icons/flag/gm.rb +45 -0
- data/lib/phlex-icons/flag/gn.rb +31 -0
- data/lib/phlex-icons/flag/gp.rb +27 -0
- data/lib/phlex-icons/flag/gq.rb +167 -0
- data/lib/phlex-icons/flag/gr.rb +51 -0
- data/lib/phlex-icons/flag/gs.rb +284 -0
- data/lib/phlex-icons/flag/gt.rb +427 -0
- data/lib/phlex-icons/flag/gu.rb +214 -0
- data/lib/phlex-icons/flag/gw.rb +47 -0
- data/lib/phlex-icons/flag/gy.rb +47 -0
- data/lib/phlex-icons/flag/hk.rb +35 -0
- data/lib/phlex-icons/flag/hm.rb +59 -0
- data/lib/phlex-icons/flag/hn.rb +55 -0
- data/lib/phlex-icons/flag/hr.rb +133 -0
- data/lib/phlex-icons/flag/ht.rb +251 -0
- data/lib/phlex-icons/flag/hu.rb +31 -0
- data/lib/phlex-icons/flag/ic.rb +31 -0
- data/lib/phlex-icons/flag/id.rb +25 -0
- data/lib/phlex-icons/flag/ie.rb +31 -0
- data/lib/phlex-icons/flag/il.rb +65 -0
- data/lib/phlex-icons/flag/im.rb +405 -0
- data/lib/phlex-icons/flag/in.rb +69 -0
- data/lib/phlex-icons/flag/io.rb +1561 -0
- data/lib/phlex-icons/flag/iq.rb +51 -0
- data/lib/phlex-icons/flag/ir.rb +901 -0
- data/lib/phlex-icons/flag/is.rb +52 -0
- data/lib/phlex-icons/flag/it.rb +31 -0
- data/lib/phlex-icons/flag/je.rb +781 -0
- data/lib/phlex-icons/flag/jm.rb +33 -0
- data/lib/phlex-icons/flag/jo.rb +59 -0
- data/lib/phlex-icons/flag/jp.rb +63 -0
- data/lib/phlex-icons/flag/ke.rb +65 -0
- data/lib/phlex-icons/flag/kg.rb +91 -0
- data/lib/phlex-icons/flag/kh.rb +141 -0
- data/lib/phlex-icons/flag/ki.rb +416 -0
- data/lib/phlex-icons/flag/km.rb +75 -0
- data/lib/phlex-icons/flag/kn.rb +69 -0
- data/lib/phlex-icons/flag/kp.rb +78 -0
- data/lib/phlex-icons/flag/kr.rb +60 -0
- data/lib/phlex-icons/flag/kw.rb +53 -0
- data/lib/phlex-icons/flag/ky.rb +225 -0
- data/lib/phlex-icons/flag/kz.rb +91 -0
- data/lib/phlex-icons/flag/la.rb +51 -0
- data/lib/phlex-icons/flag/lb.rb +75 -0
- data/lib/phlex-icons/flag/lc.rb +33 -0
- data/lib/phlex-icons/flag/li.rb +105 -0
- data/lib/phlex-icons/flag/lk.rb +63 -0
- data/lib/phlex-icons/flag/lr.rb +65 -0
- data/lib/phlex-icons/flag/ls.rb +65 -0
- data/lib/phlex-icons/flag/lt.rb +69 -0
- data/lib/phlex-icons/flag/lu.rb +27 -0
- data/lib/phlex-icons/flag/lv.rb +29 -0
- data/lib/phlex-icons/flag/ly.rb +46 -0
- data/lib/phlex-icons/flag/ma.rb +35 -0
- data/lib/phlex-icons/flag/mc.rb +29 -0
- data/lib/phlex-icons/flag/md.rb +747 -0
- data/lib/phlex-icons/flag/me.rb +954 -0
- data/lib/phlex-icons/flag/mf.rb +27 -0
- data/lib/phlex-icons/flag/mg.rb +31 -0
- data/lib/phlex-icons/flag/mh.rb +42 -0
- data/lib/phlex-icons/flag/mk.rb +51 -0
- data/lib/phlex-icons/flag/ml.rb +31 -0
- data/lib/phlex-icons/flag/mm.rb +41 -0
- data/lib/phlex-icons/flag/mn.rb +65 -0
- data/lib/phlex-icons/flag/mo.rb +37 -0
- data/lib/phlex-icons/flag/mp.rb +970 -0
- data/lib/phlex-icons/flag/mq.rb +27 -0
- data/lib/phlex-icons/flag/mr.rb +47 -0
- data/lib/phlex-icons/flag/ms.rb +255 -0
- data/lib/phlex-icons/flag/mt.rb +133 -0
- data/lib/phlex-icons/flag/mu.rb +33 -0
- data/lib/phlex-icons/flag/mv.rb +29 -0
- data/lib/phlex-icons/flag/mw.rb +65 -0
- data/lib/phlex-icons/flag/mx.rb +778 -0
- data/lib/phlex-icons/flag/my.rb +69 -0
- data/lib/phlex-icons/flag/mz.rb +143 -0
- data/lib/phlex-icons/flag/na.rb +72 -0
- data/lib/phlex-icons/flag/nc.rb +85 -0
- data/lib/phlex-icons/flag/ne.rb +29 -0
- data/lib/phlex-icons/flag/nf.rb +77 -0
- data/lib/phlex-icons/flag/ng.rb +29 -0
- data/lib/phlex-icons/flag/ni.rb +277 -0
- data/lib/phlex-icons/flag/nl.rb +27 -0
- data/lib/phlex-icons/flag/no.rb +31 -0
- data/lib/phlex-icons/flag/np.rb +62 -0
- data/lib/phlex-icons/flag/nr.rb +61 -0
- data/lib/phlex-icons/flag/nu.rb +63 -0
- data/lib/phlex-icons/flag/nz.rb +91 -0
- data/lib/phlex-icons/flag/om.rb +1355 -0
- data/lib/phlex-icons/flag/pa.rb +60 -0
- data/lib/phlex-icons/flag/pc.rb +85 -0
- data/lib/phlex-icons/flag/pe.rb +25 -0
- data/lib/phlex-icons/flag/pf.rb +158 -0
- data/lib/phlex-icons/flag/pg.rb +80 -0
- data/lib/phlex-icons/flag/ph.rb +39 -0
- data/lib/phlex-icons/flag/pk.rb +64 -0
- data/lib/phlex-icons/flag/pl.rb +29 -0
- data/lib/phlex-icons/flag/pm.rb +27 -0
- data/lib/phlex-icons/flag/pn.rb +655 -0
- data/lib/phlex-icons/flag/pr.rb +64 -0
- data/lib/phlex-icons/flag/ps.rb +49 -0
- data/lib/phlex-icons/flag/pt.rb +133 -0
- data/lib/phlex-icons/flag/pw.rb +58 -0
- data/lib/phlex-icons/flag/py.rb +746 -0
- data/lib/phlex-icons/flag/qa.rb +35 -0
- data/lib/phlex-icons/flag/re.rb +29 -0
- data/lib/phlex-icons/flag/ro.rb +31 -0
- data/lib/phlex-icons/flag/rs.rb +607 -0
- data/lib/phlex-icons/flag/ru.rb +27 -0
- data/lib/phlex-icons/flag/rw.rb +45 -0
- data/lib/phlex-icons/flag/sa.rb +195 -0
- data/lib/phlex-icons/flag/sb.rb +61 -0
- data/lib/phlex-icons/flag/sc.rb +31 -0
- data/lib/phlex-icons/flag/sd.rb +53 -0
- data/lib/phlex-icons/flag/se.rb +28 -0
- data/lib/phlex-icons/flag/sg.rb +62 -0
- data/lib/phlex-icons/flag/sh.rb +47 -0
- data/lib/phlex-icons/flag/sh_ac.rb +5471 -0
- data/lib/phlex-icons/flag/sh_hl.rb +1204 -0
- data/lib/phlex-icons/flag/sh_ta.rb +744 -0
- data/lib/phlex-icons/flag/si.rb +113 -0
- data/lib/phlex-icons/flag/sj.rb +31 -0
- data/lib/phlex-icons/flag/sk.rb +69 -0
- data/lib/phlex-icons/flag/sl.rb +42 -0
- data/lib/phlex-icons/flag/sm.rb +764 -0
- data/lib/phlex-icons/flag/sn.rb +41 -0
- data/lib/phlex-icons/flag/so.rb +57 -0
- data/lib/phlex-icons/flag/sr.rb +35 -0
- data/lib/phlex-icons/flag/ss.rb +33 -0
- data/lib/phlex-icons/flag/st.rb +51 -0
- data/lib/phlex-icons/flag/sv.rb +1207 -0
- data/lib/phlex-icons/flag/sx.rb +532 -0
- data/lib/phlex-icons/flag/sy.rb +36 -0
- data/lib/phlex-icons/flag/sz.rb +87 -0
- data/lib/phlex-icons/flag/tc.rb +119 -0
- data/lib/phlex-icons/flag/td.rb +31 -0
- data/lib/phlex-icons/flag/tf.rb +49 -0
- data/lib/phlex-icons/flag/tg.rb +63 -0
- data/lib/phlex-icons/flag/th.rb +31 -0
- data/lib/phlex-icons/flag/tj.rb +67 -0
- data/lib/phlex-icons/flag/tk.rb +45 -0
- data/lib/phlex-icons/flag/tl.rb +59 -0
- data/lib/phlex-icons/flag/tm.rb +1485 -0
- data/lib/phlex-icons/flag/tn.rb +35 -0
- data/lib/phlex-icons/flag/to.rb +37 -0
- data/lib/phlex-icons/flag/tr.rb +59 -0
- data/lib/phlex-icons/flag/tt.rb +37 -0
- data/lib/phlex-icons/flag/tv.rb +63 -0
- data/lib/phlex-icons/flag/tw.rb +169 -0
- data/lib/phlex-icons/flag/tz.rb +61 -0
- data/lib/phlex-icons/flag/ua.rb +29 -0
- data/lib/phlex-icons/flag/ug.rb +300 -0
- data/lib/phlex-icons/flag/um.rb +55 -0
- data/lib/phlex-icons/flag/un.rb +51 -0
- data/lib/phlex-icons/flag/us.rb +55 -0
- data/lib/phlex-icons/flag/uy.rb +75 -0
- data/lib/phlex-icons/flag/uz.rb +79 -0
- data/lib/phlex-icons/flag/va.rb +399 -0
- data/lib/phlex-icons/flag/vc.rb +44 -0
- data/lib/phlex-icons/flag/ve.rb +71 -0
- data/lib/phlex-icons/flag/vg.rb +137 -0
- data/lib/phlex-icons/flag/vi.rb +75 -0
- data/lib/phlex-icons/flag/vn.rb +57 -0
- data/lib/phlex-icons/flag/vu.rb +61 -0
- data/lib/phlex-icons/flag/wf.rb +27 -0
- data/lib/phlex-icons/flag/ws.rb +41 -0
- data/lib/phlex-icons/flag/xk.rb +45 -0
- data/lib/phlex-icons/flag/xx.rb +41 -0
- data/lib/phlex-icons/flag/ye.rb +31 -0
- data/lib/phlex-icons/flag/yt.rb +27 -0
- data/lib/phlex-icons/flag/za.rb +75 -0
- data/lib/phlex-icons/flag/zm.rb +186 -0
- data/lib/phlex-icons/flag/zw.rb +61 -0
- data/lib/phlex-icons/flag.rb +296 -0
- data/lib/phlex-icons/version.rb +5 -0
- data/lib/phlex-icons-flag.rb +11 -13
- data/sig/phlex/icons.rbs +3 -5
- metadata +277 -277
- data/lib/phlex/icons/base.rb +0 -20
- data/lib/phlex/icons/configuration.rb +0 -13
- data/lib/phlex/icons/flag/ad.rb +0 -319
- data/lib/phlex/icons/flag/ae.rb +0 -31
- data/lib/phlex/icons/flag/af.rb +0 -183
- data/lib/phlex/icons/flag/ag.rb +0 -68
- data/lib/phlex/icons/flag/ai.rb +0 -79
- data/lib/phlex/icons/flag/al.rb +0 -31
- data/lib/phlex/icons/flag/am.rb +0 -29
- data/lib/phlex/icons/flag/ao.rb +0 -115
- data/lib/phlex/icons/flag/aq.rb +0 -55
- data/lib/phlex/icons/flag/ar.rb +0 -85
- data/lib/phlex/icons/flag/arab.rb +0 -1151
- data/lib/phlex/icons/flag/as.rb +0 -657
- data/lib/phlex/icons/flag/at.rb +0 -27
- data/lib/phlex/icons/flag/au.rb +0 -61
- data/lib/phlex/icons/flag/aw.rb +0 -407
- data/lib/phlex/icons/flag/ax.rb +0 -60
- data/lib/phlex/icons/flag/az.rb +0 -45
- data/lib/phlex/icons/flag/ba.rb +0 -55
- data/lib/phlex/icons/flag/base.rb +0 -25
- data/lib/phlex/icons/flag/bb.rb +0 -33
- data/lib/phlex/icons/flag/bd.rb +0 -27
- data/lib/phlex/icons/flag/be.rb +0 -33
- data/lib/phlex/icons/flag/bf.rb +0 -42
- data/lib/phlex/icons/flag/bg.rb +0 -29
- data/lib/phlex/icons/flag/bh.rb +0 -37
- data/lib/phlex/icons/flag/bi.rb +0 -89
- data/lib/phlex/icons/flag/bj.rb +0 -49
- data/lib/phlex/icons/flag/bl.rb +0 -31
- data/lib/phlex/icons/flag/bm.rb +0 -1180
- data/lib/phlex/icons/flag/bn.rb +0 -93
- data/lib/phlex/icons/flag/bo.rb +0 -7373
- data/lib/phlex/icons/flag/bq.rb +0 -29
- data/lib/phlex/icons/flag/br.rb +0 -311
- data/lib/phlex/icons/flag/bs.rb +0 -58
- data/lib/phlex/icons/flag/bt.rb +0 -588
- data/lib/phlex/icons/flag/bv.rb +0 -51
- data/lib/phlex/icons/flag/bw.rb +0 -33
- data/lib/phlex/icons/flag/by.rb +0 -57
- data/lib/phlex/icons/flag/bz.rb +0 -311
- data/lib/phlex/icons/flag/ca.rb +0 -37
- data/lib/phlex/icons/flag/cc.rb +0 -59
- data/lib/phlex/icons/flag/cd.rb +0 -44
- data/lib/phlex/icons/flag/cefta.rb +0 -91
- data/lib/phlex/icons/flag/cf.rb +0 -61
- data/lib/phlex/icons/flag/cg.rb +0 -55
- data/lib/phlex/icons/flag/ch.rb +0 -37
- data/lib/phlex/icons/flag/ci.rb +0 -33
- data/lib/phlex/icons/flag/ck.rb +0 -65
- data/lib/phlex/icons/flag/cl.rb +0 -63
- data/lib/phlex/icons/flag/cm.rb +0 -51
- data/lib/phlex/icons/flag/cn.rb +0 -43
- data/lib/phlex/icons/flag/co.rb +0 -33
- data/lib/phlex/icons/flag/configuration.rb +0 -15
- data/lib/phlex/icons/flag/cp.rb +0 -33
- data/lib/phlex/icons/flag/cr.rb +0 -33
- data/lib/phlex/icons/flag/cu.rb +0 -57
- data/lib/phlex/icons/flag/cv.rb +0 -63
- data/lib/phlex/icons/flag/cw.rb +0 -49
- data/lib/phlex/icons/flag/cx.rb +0 -51
- data/lib/phlex/icons/flag/cy.rb +0 -33
- data/lib/phlex/icons/flag/cz.rb +0 -29
- data/lib/phlex/icons/flag/de.rb +0 -29
- data/lib/phlex/icons/flag/dg.rb +0 -1563
- data/lib/phlex/icons/flag/dj.rb +0 -63
- data/lib/phlex/icons/flag/dk.rb +0 -29
- data/lib/phlex/icons/flag/dm.rb +0 -1437
- data/lib/phlex/icons/flag/do.rb +0 -265
- data/lib/phlex/icons/flag/dz.rb +0 -37
- data/lib/phlex/icons/flag/eac.rb +0 -117
- data/lib/phlex/icons/flag/ec.rb +0 -1617
- data/lib/phlex/icons/flag/ee.rb +0 -29
- data/lib/phlex/icons/flag/eg.rb +0 -97
- data/lib/phlex/icons/flag/eh.rb +0 -60
- data/lib/phlex/icons/flag/er.rb +0 -48
- data/lib/phlex/icons/flag/es.rb +0 -5736
- data/lib/phlex/icons/flag/es_ct.rb +0 -37
- data/lib/phlex/icons/flag/es_ga.rb +0 -1822
- data/lib/phlex/icons/flag/es_pv.rb +0 -45
- data/lib/phlex/icons/flag/et.rb +0 -79
- data/lib/phlex/icons/flag/eu.rb +0 -77
- data/lib/phlex/icons/flag/fi.rb +0 -29
- data/lib/phlex/icons/flag/fj.rb +0 -857
- data/lib/phlex/icons/flag/fk.rb +0 -200
- data/lib/phlex/icons/flag/fm.rb +0 -61
- data/lib/phlex/icons/flag/fo.rb +0 -61
- data/lib/phlex/icons/flag/fr.rb +0 -29
- data/lib/phlex/icons/flag/ga.rb +0 -33
- data/lib/phlex/icons/flag/gb.rb +0 -49
- data/lib/phlex/icons/flag/gb_eng.rb +0 -29
- data/lib/phlex/icons/flag/gb_nir.rb +0 -284
- data/lib/phlex/icons/flag/gb_sct.rb +0 -37
- data/lib/phlex/icons/flag/gb_wls.rb +0 -60
- data/lib/phlex/icons/flag/gd.rb +0 -75
- data/lib/phlex/icons/flag/ge.rb +0 -43
- data/lib/phlex/icons/flag/gf.rb +0 -29
- data/lib/phlex/icons/flag/gg.rb +0 -37
- data/lib/phlex/icons/flag/gh.rb +0 -34
- data/lib/phlex/icons/flag/gi.rb +0 -85
- data/lib/phlex/icons/flag/gl.rb +0 -34
- data/lib/phlex/icons/flag/gm.rb +0 -47
- data/lib/phlex/icons/flag/gn.rb +0 -33
- data/lib/phlex/icons/flag/gp.rb +0 -29
- data/lib/phlex/icons/flag/gq.rb +0 -169
- data/lib/phlex/icons/flag/gr.rb +0 -53
- data/lib/phlex/icons/flag/gs.rb +0 -286
- data/lib/phlex/icons/flag/gt.rb +0 -429
- data/lib/phlex/icons/flag/gu.rb +0 -216
- data/lib/phlex/icons/flag/gw.rb +0 -49
- data/lib/phlex/icons/flag/gy.rb +0 -49
- data/lib/phlex/icons/flag/hk.rb +0 -37
- data/lib/phlex/icons/flag/hm.rb +0 -61
- data/lib/phlex/icons/flag/hn.rb +0 -57
- data/lib/phlex/icons/flag/hr.rb +0 -135
- data/lib/phlex/icons/flag/ht.rb +0 -253
- data/lib/phlex/icons/flag/hu.rb +0 -33
- data/lib/phlex/icons/flag/ic.rb +0 -33
- data/lib/phlex/icons/flag/id.rb +0 -27
- data/lib/phlex/icons/flag/ie.rb +0 -33
- data/lib/phlex/icons/flag/il.rb +0 -67
- data/lib/phlex/icons/flag/im.rb +0 -407
- data/lib/phlex/icons/flag/in.rb +0 -71
- data/lib/phlex/icons/flag/io.rb +0 -1563
- data/lib/phlex/icons/flag/iq.rb +0 -53
- data/lib/phlex/icons/flag/ir.rb +0 -903
- data/lib/phlex/icons/flag/is.rb +0 -54
- data/lib/phlex/icons/flag/it.rb +0 -33
- data/lib/phlex/icons/flag/je.rb +0 -783
- data/lib/phlex/icons/flag/jm.rb +0 -35
- data/lib/phlex/icons/flag/jo.rb +0 -61
- data/lib/phlex/icons/flag/jp.rb +0 -65
- data/lib/phlex/icons/flag/ke.rb +0 -67
- data/lib/phlex/icons/flag/kg.rb +0 -93
- data/lib/phlex/icons/flag/kh.rb +0 -143
- data/lib/phlex/icons/flag/ki.rb +0 -418
- data/lib/phlex/icons/flag/km.rb +0 -77
- data/lib/phlex/icons/flag/kn.rb +0 -71
- data/lib/phlex/icons/flag/kp.rb +0 -80
- data/lib/phlex/icons/flag/kr.rb +0 -62
- data/lib/phlex/icons/flag/kw.rb +0 -55
- data/lib/phlex/icons/flag/ky.rb +0 -227
- data/lib/phlex/icons/flag/kz.rb +0 -93
- data/lib/phlex/icons/flag/la.rb +0 -53
- data/lib/phlex/icons/flag/lb.rb +0 -77
- data/lib/phlex/icons/flag/lc.rb +0 -35
- data/lib/phlex/icons/flag/li.rb +0 -107
- data/lib/phlex/icons/flag/lk.rb +0 -65
- data/lib/phlex/icons/flag/lr.rb +0 -67
- data/lib/phlex/icons/flag/ls.rb +0 -67
- data/lib/phlex/icons/flag/lt.rb +0 -71
- data/lib/phlex/icons/flag/lu.rb +0 -29
- data/lib/phlex/icons/flag/lv.rb +0 -31
- data/lib/phlex/icons/flag/ly.rb +0 -50
- data/lib/phlex/icons/flag/ma.rb +0 -37
- data/lib/phlex/icons/flag/mc.rb +0 -31
- data/lib/phlex/icons/flag/md.rb +0 -749
- data/lib/phlex/icons/flag/me.rb +0 -956
- data/lib/phlex/icons/flag/mg.rb +0 -33
- data/lib/phlex/icons/flag/mh.rb +0 -44
- data/lib/phlex/icons/flag/mk.rb +0 -53
- data/lib/phlex/icons/flag/ml.rb +0 -33
- data/lib/phlex/icons/flag/mm.rb +0 -43
- data/lib/phlex/icons/flag/mn.rb +0 -67
- data/lib/phlex/icons/flag/mo.rb +0 -39
- data/lib/phlex/icons/flag/mp.rb +0 -972
- data/lib/phlex/icons/flag/mq.rb +0 -29
- data/lib/phlex/icons/flag/mr.rb +0 -49
- data/lib/phlex/icons/flag/ms.rb +0 -257
- data/lib/phlex/icons/flag/mt.rb +0 -135
- data/lib/phlex/icons/flag/mu.rb +0 -35
- data/lib/phlex/icons/flag/mv.rb +0 -31
- data/lib/phlex/icons/flag/mw.rb +0 -67
- data/lib/phlex/icons/flag/mx.rb +0 -780
- data/lib/phlex/icons/flag/my.rb +0 -71
- data/lib/phlex/icons/flag/mz.rb +0 -145
- data/lib/phlex/icons/flag/na.rb +0 -74
- data/lib/phlex/icons/flag/nc.rb +0 -87
- data/lib/phlex/icons/flag/ne.rb +0 -31
- data/lib/phlex/icons/flag/nf.rb +0 -79
- data/lib/phlex/icons/flag/ng.rb +0 -31
- data/lib/phlex/icons/flag/ni.rb +0 -279
- data/lib/phlex/icons/flag/nl.rb +0 -29
- data/lib/phlex/icons/flag/no.rb +0 -33
- data/lib/phlex/icons/flag/np.rb +0 -64
- data/lib/phlex/icons/flag/nr.rb +0 -63
- data/lib/phlex/icons/flag/nu.rb +0 -65
- data/lib/phlex/icons/flag/nz.rb +0 -93
- data/lib/phlex/icons/flag/om.rb +0 -1357
- data/lib/phlex/icons/flag/pa.rb +0 -62
- data/lib/phlex/icons/flag/pc.rb +0 -87
- data/lib/phlex/icons/flag/pe.rb +0 -27
- data/lib/phlex/icons/flag/pf.rb +0 -160
- data/lib/phlex/icons/flag/pg.rb +0 -82
- data/lib/phlex/icons/flag/ph.rb +0 -41
- data/lib/phlex/icons/flag/pk.rb +0 -66
- data/lib/phlex/icons/flag/pl.rb +0 -31
- data/lib/phlex/icons/flag/pm.rb +0 -29
- data/lib/phlex/icons/flag/pn.rb +0 -657
- data/lib/phlex/icons/flag/pr.rb +0 -66
- data/lib/phlex/icons/flag/ps.rb +0 -51
- data/lib/phlex/icons/flag/pt.rb +0 -135
- data/lib/phlex/icons/flag/pw.rb +0 -60
- data/lib/phlex/icons/flag/py.rb +0 -748
- data/lib/phlex/icons/flag/qa.rb +0 -37
- data/lib/phlex/icons/flag/re.rb +0 -31
- data/lib/phlex/icons/flag/ro.rb +0 -33
- data/lib/phlex/icons/flag/rs.rb +0 -609
- data/lib/phlex/icons/flag/ru.rb +0 -29
- data/lib/phlex/icons/flag/rw.rb +0 -47
- data/lib/phlex/icons/flag/sa.rb +0 -197
- data/lib/phlex/icons/flag/sb.rb +0 -63
- data/lib/phlex/icons/flag/sc.rb +0 -33
- data/lib/phlex/icons/flag/sd.rb +0 -55
- data/lib/phlex/icons/flag/se.rb +0 -30
- data/lib/phlex/icons/flag/sg.rb +0 -64
- data/lib/phlex/icons/flag/sh.rb +0 -49
- data/lib/phlex/icons/flag/sh_ac.rb +0 -5473
- data/lib/phlex/icons/flag/sh_hl.rb +0 -1206
- data/lib/phlex/icons/flag/sh_ta.rb +0 -746
- data/lib/phlex/icons/flag/si.rb +0 -115
- data/lib/phlex/icons/flag/sj.rb +0 -33
- data/lib/phlex/icons/flag/sk.rb +0 -71
- data/lib/phlex/icons/flag/sl.rb +0 -44
- data/lib/phlex/icons/flag/sm.rb +0 -766
- data/lib/phlex/icons/flag/sn.rb +0 -43
- data/lib/phlex/icons/flag/so.rb +0 -59
- data/lib/phlex/icons/flag/sr.rb +0 -37
- data/lib/phlex/icons/flag/ss.rb +0 -35
- data/lib/phlex/icons/flag/st.rb +0 -53
- data/lib/phlex/icons/flag/sv.rb +0 -1209
- data/lib/phlex/icons/flag/sx.rb +0 -534
- data/lib/phlex/icons/flag/sy.rb +0 -38
- data/lib/phlex/icons/flag/sz.rb +0 -89
- data/lib/phlex/icons/flag/tc.rb +0 -121
- data/lib/phlex/icons/flag/td.rb +0 -33
- data/lib/phlex/icons/flag/tf.rb +0 -51
- data/lib/phlex/icons/flag/tg.rb +0 -65
- data/lib/phlex/icons/flag/th.rb +0 -33
- data/lib/phlex/icons/flag/tj.rb +0 -69
- data/lib/phlex/icons/flag/tk.rb +0 -47
- data/lib/phlex/icons/flag/tl.rb +0 -61
- data/lib/phlex/icons/flag/tm.rb +0 -1487
- data/lib/phlex/icons/flag/tn.rb +0 -37
- data/lib/phlex/icons/flag/to.rb +0 -39
- data/lib/phlex/icons/flag/tr.rb +0 -61
- data/lib/phlex/icons/flag/tt.rb +0 -39
- data/lib/phlex/icons/flag/tv.rb +0 -65
- data/lib/phlex/icons/flag/tw.rb +0 -171
- data/lib/phlex/icons/flag/tz.rb +0 -63
- data/lib/phlex/icons/flag/ua.rb +0 -31
- data/lib/phlex/icons/flag/ug.rb +0 -302
- data/lib/phlex/icons/flag/um.rb +0 -57
- data/lib/phlex/icons/flag/un.rb +0 -53
- data/lib/phlex/icons/flag/us.rb +0 -57
- data/lib/phlex/icons/flag/uy.rb +0 -77
- data/lib/phlex/icons/flag/uz.rb +0 -81
- data/lib/phlex/icons/flag/va.rb +0 -401
- data/lib/phlex/icons/flag/vc.rb +0 -46
- data/lib/phlex/icons/flag/ve.rb +0 -73
- data/lib/phlex/icons/flag/vg.rb +0 -139
- data/lib/phlex/icons/flag/vi.rb +0 -77
- data/lib/phlex/icons/flag/vn.rb +0 -59
- data/lib/phlex/icons/flag/vu.rb +0 -63
- data/lib/phlex/icons/flag/wf.rb +0 -29
- data/lib/phlex/icons/flag/ws.rb +0 -43
- data/lib/phlex/icons/flag/xk.rb +0 -47
- data/lib/phlex/icons/flag/xx.rb +0 -43
- data/lib/phlex/icons/flag/ye.rb +0 -33
- data/lib/phlex/icons/flag/yt.rb +0 -29
- data/lib/phlex/icons/flag/za.rb +0 -77
- data/lib/phlex/icons/flag/zm.rb +0 -188
- data/lib/phlex/icons/flag/zw.rb +0 -63
- data/lib/phlex/icons/flag.rb +0 -298
- data/lib/phlex/icons/version.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4457bb7aef77ca6cc746eacea22195fb38b49d61dadc5b541f4d327562c27c32
|
4
|
+
data.tar.gz: 25eb9b2086afba15d2742c55ba75684e3d16028a2b55db0d83989f068dba1f8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd570f4665b6985fb6e8111acd416b13b623a195dafb223d464c7fa8c90e953b2aad9c21adfdc3c8d96fdfde01e2c6cb7e3122d1f619bc84ce345f8408ccd478
|
7
|
+
data.tar.gz: 9fd00d3fe891264cb2fd6132570657903b555615e26190bc5b584037f4f9a1824a630a14e063cc027d29ad251a019cea8223f59c3a18c47ad3c71d66176a0f5b
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
</div>
|
10
10
|
|
11
|
-
#
|
11
|
+
# PhlexIcons
|
12
12
|
|
13
13
|
General icons extension for [Phlex](https://phlex.fun). Includes more than 🎨 12,000 icons from:
|
14
14
|
- [Bootstrap Icons](https://icons.getbootstrap.com) (2,000+)
|
@@ -58,13 +58,13 @@ The gem provides global configuration options, and per icons pack configuration
|
|
58
58
|
### Global configuration
|
59
59
|
|
60
60
|
```ruby
|
61
|
-
|
61
|
+
PhlexIcons.configure do |config|
|
62
62
|
config.default_classes = 'size-6'
|
63
63
|
end
|
64
64
|
|
65
65
|
# OR
|
66
66
|
|
67
|
-
|
67
|
+
PhlexIcons.configuration.default_classes = 'size-6'
|
68
68
|
```
|
69
69
|
|
70
70
|
### Bootstrap Icons configuration
|
@@ -74,25 +74,25 @@ Nothing to configure for Bootstrap Icons.
|
|
74
74
|
### Flag Icons configuration
|
75
75
|
|
76
76
|
```ruby
|
77
|
-
|
77
|
+
PhlexIcons::Flag.configure do |config|
|
78
78
|
config.default_variant = :square # or :rectangle
|
79
79
|
end
|
80
80
|
|
81
81
|
# OR
|
82
82
|
|
83
|
-
|
83
|
+
PhlexIcons::Flag.configuration.default_variant = :square # or :rectangle
|
84
84
|
```
|
85
85
|
|
86
86
|
### Heroicons configuration
|
87
87
|
|
88
88
|
```ruby
|
89
|
-
|
89
|
+
PhlexIcons::Hero.configure do |config|
|
90
90
|
config.default_variant = :solid # or :outline
|
91
91
|
end
|
92
92
|
|
93
93
|
# OR
|
94
94
|
|
95
|
-
|
95
|
+
PhlexIcons::Hero.configuration.default_variant = :solid # or :outline
|
96
96
|
```
|
97
97
|
|
98
98
|
### Lucide Icons configuration
|
@@ -110,13 +110,13 @@ Nothing to configure for Remix Icons.
|
|
110
110
|
### Tabler Icons configuration
|
111
111
|
|
112
112
|
```ruby
|
113
|
-
|
113
|
+
PhlexIcons::Tabler.configure do |config|
|
114
114
|
config.default_variant = :outline # or :filled
|
115
115
|
end
|
116
116
|
|
117
117
|
# OR
|
118
118
|
|
119
|
-
|
119
|
+
PhlexIcons::Tabler.configuration.default_variant = :outline # or :filled
|
120
120
|
```
|
121
121
|
|
122
122
|
## Usage
|
@@ -127,7 +127,7 @@ Phlex::Icons::Tabler.configuration.default_variant = :outline # or :filled
|
|
127
127
|
require 'phlex-icons' # No need to require the gem if you are using it in a Rails application.
|
128
128
|
|
129
129
|
class PhlexIcons < Phlex::HTML
|
130
|
-
include
|
130
|
+
include PhlexIcons
|
131
131
|
|
132
132
|
def view_template
|
133
133
|
div do
|
@@ -151,13 +151,13 @@ require 'phlex-icons' # No need to require the gem if you are using it in a Rail
|
|
151
151
|
class PhlexIcons < Phlex::HTML
|
152
152
|
def view_template
|
153
153
|
div do
|
154
|
-
render
|
155
|
-
render
|
156
|
-
render
|
157
|
-
render
|
158
|
-
render
|
159
|
-
render
|
160
|
-
render
|
154
|
+
render PhlexIcons::Bootstrap::House.new(class: 'size-4')
|
155
|
+
render PhlexIcons::Flag::Sa.new(variant: :rectangle, class: 'size-4')
|
156
|
+
render PhlexIcons::Hero::Home.new(variant: :solid, class: 'size-4')
|
157
|
+
render PhlexIcons::Lucide::House.new(class: 'size-4')
|
158
|
+
render PhlexIcons::Radix::Home.new(class: 'size-4')
|
159
|
+
render PhlexIcons::Remix::HomeLine.new(class: 'size-4')
|
160
|
+
render PhlexIcons::Tabler::Home.new(variant: :filled, class: 'size-4')
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
@@ -176,7 +176,7 @@ require 'phlex-icons-flag' # No need to require the gem if you are using it in a
|
|
176
176
|
require 'phlex-icons-hero' # No need to require the gem if you are using it in a Rails application.
|
177
177
|
|
178
178
|
class PhlexIcons < Phlex::HTML
|
179
|
-
include
|
179
|
+
include PhlexIcons # If you want to use Phlex::Kit.
|
180
180
|
|
181
181
|
def view_template
|
182
182
|
div do
|
@@ -185,8 +185,8 @@ class PhlexIcons < Phlex::HTML
|
|
185
185
|
Hero::Home(variant: :solid, class: 'size-4')
|
186
186
|
|
187
187
|
# Without Phlex::Kit.
|
188
|
-
render
|
189
|
-
render
|
188
|
+
render PhlexIcons::Flag::Sa.new(variant: :rectangle, class: 'size-4')
|
189
|
+
render PhlexIcons::Hero::Home.new(variant: :solid, class: 'size-4')
|
190
190
|
end
|
191
191
|
end
|
192
192
|
end
|
@@ -194,34 +194,30 @@ end
|
|
194
194
|
|
195
195
|
### Add custom icons to your Rails application
|
196
196
|
|
197
|
-
You can extend the gem in your Rails application to add new icons by creating a `phlex
|
197
|
+
You can extend the gem in your Rails application to add new icons by creating a `phlex-icons/custom` directory inside `views/components` directory. Then, you can create a new component for each icon you want to add. For example:
|
198
198
|
|
199
199
|
```ruby
|
200
|
-
# app/views/components/phlex
|
201
|
-
|
202
|
-
module
|
203
|
-
module
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
# SVG code here.
|
208
|
-
end
|
200
|
+
# app/views/components/phlex-icons/custom/icon_class_name.rb
|
201
|
+
|
202
|
+
module PhlexIcons
|
203
|
+
module Custom
|
204
|
+
class IconClassName < PhlexIcons::Base
|
205
|
+
def view_template
|
206
|
+
# SVG code here.
|
209
207
|
end
|
210
208
|
end
|
211
209
|
end
|
212
210
|
end
|
213
211
|
```
|
214
212
|
|
215
|
-
Finally, you will need to create a `
|
213
|
+
Finally, you will need to create a `PhlexIcons::Custom` module in `phlex-icons/custom.rb` file to include your custom icons and make them a `Phlex::Kit`:
|
216
214
|
|
217
215
|
```ruby
|
218
|
-
# app/views/components/phlex
|
216
|
+
# app/views/components/phlex-icons/custom.rb
|
219
217
|
|
220
|
-
module
|
221
|
-
module
|
222
|
-
|
223
|
-
extend Phlex::Kit
|
224
|
-
end
|
218
|
+
module PhlexIcons
|
219
|
+
module Custom
|
220
|
+
extend Phlex::Kit
|
225
221
|
end
|
226
222
|
end
|
227
223
|
```
|
@@ -234,7 +230,7 @@ All icon packs provided in this gem are auto-generated by their generator under
|
|
234
230
|
|
235
231
|
## What is the icon pack version used in the gem?
|
236
232
|
|
237
|
-
Each icon pack contains a `VERSION` constant in its module represents the version of the icon pack used in the gem. So, for example, to get the Bootstrap version used in the gem you can access it by `
|
233
|
+
Each icon pack contains a `VERSION` constant in its module represents the version of the icon pack used in the gem. So, for example, to get the Bootstrap version used in the gem you can access it by `PhlexIcons::Bootstrap::VERSION`.
|
238
234
|
|
239
235
|
## Development
|
240
236
|
|
@@ -252,4 +248,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
252
248
|
|
253
249
|
## Code of Conduct
|
254
250
|
|
255
|
-
Everyone interacting in the
|
251
|
+
Everyone interacting in the PhlexIcons project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/AliOsm/phlex-icons/blob/master/CODE_OF_CONDUCT.md).
|
data/generators/bootstrap.rb
CHANGED
@@ -4,20 +4,18 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/twbs/icons.git'
|
6
6
|
REPO_NAME = 'twbs-icons'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/bootstrap.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/bootstrap'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<%= icon %>
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Bootstrap
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
21
19
|
end
|
22
20
|
end
|
23
21
|
end
|
data/generators/flag.rb
CHANGED
@@ -4,24 +4,22 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/lipis/flag-icons.git'
|
6
6
|
REPO_NAME = 'lipis-flag-icons'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/flag.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/flag'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Flag
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def square
|
18
|
+
<%= square_icon %>
|
19
|
+
end
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
end
|
21
|
+
def rectangle
|
22
|
+
<%= rectangle_icon %>
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
data/generators/helper.rb
CHANGED
@@ -91,7 +91,7 @@ def make_components_lazy_loadable(path)
|
|
91
91
|
autoload_lines = Dir.glob("#{path}/*.rb").map do |file|
|
92
92
|
next if ['base.rb', 'configuration.rb'].include?(File.basename(file))
|
93
93
|
|
94
|
-
"
|
94
|
+
" autoload :#{component_class_name(file)}, '#{file.split('/', 2).last.chomp(File.extname(file))}'"
|
95
95
|
end.compact.join("\n")
|
96
96
|
|
97
97
|
new_content = File.read("#{path}.rb").gsub(
|
data/generators/hero.rb
CHANGED
@@ -4,24 +4,22 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/tailwindlabs/heroicons.git'
|
6
6
|
REPO_NAME = 'tailwindlabs-heroicons'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/hero.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/hero'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Hero
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def solid
|
18
|
+
<%= solid_icon %>
|
19
|
+
end
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
end
|
21
|
+
def outline
|
22
|
+
<%= outline_icon %>
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
data/generators/lucide.rb
CHANGED
@@ -4,20 +4,18 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/lucide-icons/lucide.git'
|
6
6
|
REPO_NAME = 'lucide-icons-lucide'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/lucide.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/lucide'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<%= icon %>
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Lucide
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
21
19
|
end
|
22
20
|
end
|
23
21
|
end
|
data/generators/radix.rb
CHANGED
@@ -4,20 +4,18 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/radix-ui/icons.git'
|
6
6
|
REPO_NAME = 'radix-ui-icons'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/radix.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/radix'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<%= icon %>
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Radix
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
21
19
|
end
|
22
20
|
end
|
23
21
|
end
|
data/generators/remix.rb
CHANGED
@@ -4,20 +4,18 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/Remix-Design/RemixIcon.git'
|
6
6
|
REPO_NAME = 'remix-design-remixicon'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/remix.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/remix'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<%= icon %>
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Remix
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
21
19
|
end
|
22
20
|
end
|
23
21
|
end
|
data/generators/tabler.rb
CHANGED
@@ -4,24 +4,22 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
REPO_URL = 'https://github.com/tabler/tabler-icons.git'
|
6
6
|
REPO_NAME = 'tabler-tabler-icons'
|
7
|
-
ICONS_PACK_MODULE_PATH = 'lib/phlex
|
8
|
-
ICONS_PACK_PATH = 'lib/phlex
|
7
|
+
ICONS_PACK_MODULE_PATH = 'lib/phlex-icons/tabler.rb'
|
8
|
+
ICONS_PACK_PATH = 'lib/phlex-icons/tabler'
|
9
9
|
|
10
10
|
TEMPLATE = ERB.new <<~TEMPLATE
|
11
11
|
# frozen_string_literal: true
|
12
12
|
|
13
13
|
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
14
|
+
module PhlexIcons
|
15
|
+
module Tabler
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def filled
|
18
|
+
<%= filled_icon %>
|
19
|
+
end
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
end
|
21
|
+
def outline
|
22
|
+
<%= outline_icon %>
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module PhlexIcons
|
4
|
+
class Base < Phlex::SVG
|
5
|
+
attr_reader :attrs
|
6
|
+
|
7
|
+
def initialize(**attrs)
|
8
|
+
@attrs = attrs
|
9
|
+
attrs[:class] ||= PhlexIcons.configuration.default_classes
|
10
|
+
|
11
|
+
super()
|
12
|
+
end
|
13
|
+
|
14
|
+
def view_template
|
15
|
+
send(variant) if respond_to?(variant)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|