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.
Files changed (564) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -39
  3. data/generators/bootstrap.rb +7 -9
  4. data/generators/flag.rb +10 -12
  5. data/generators/helper.rb +1 -1
  6. data/generators/hero.rb +10 -12
  7. data/generators/lucide.rb +7 -9
  8. data/generators/radix.rb +7 -9
  9. data/generators/remix.rb +7 -9
  10. data/generators/tabler.rb +10 -12
  11. data/lib/phlex-icons/base.rb +18 -0
  12. data/lib/phlex-icons/configuration.rb +11 -0
  13. data/lib/phlex-icons/flag/ad.rb +317 -0
  14. data/lib/phlex-icons/flag/ae.rb +29 -0
  15. data/lib/phlex-icons/flag/af.rb +181 -0
  16. data/lib/phlex-icons/flag/ag.rb +66 -0
  17. data/lib/phlex-icons/flag/ai.rb +77 -0
  18. data/lib/phlex-icons/flag/al.rb +29 -0
  19. data/lib/phlex-icons/flag/am.rb +27 -0
  20. data/lib/phlex-icons/flag/ao.rb +113 -0
  21. data/lib/phlex-icons/flag/aq.rb +53 -0
  22. data/lib/phlex-icons/flag/ar.rb +83 -0
  23. data/lib/phlex-icons/flag/arab.rb +1149 -0
  24. data/lib/phlex-icons/flag/as.rb +655 -0
  25. data/lib/phlex-icons/flag/at.rb +25 -0
  26. data/lib/phlex-icons/flag/au.rb +59 -0
  27. data/lib/phlex-icons/flag/aw.rb +405 -0
  28. data/lib/phlex-icons/flag/ax.rb +58 -0
  29. data/lib/phlex-icons/flag/az.rb +43 -0
  30. data/lib/phlex-icons/flag/ba.rb +53 -0
  31. data/lib/phlex-icons/flag/base.rb +23 -0
  32. data/lib/phlex-icons/flag/bb.rb +31 -0
  33. data/lib/phlex-icons/flag/bd.rb +25 -0
  34. data/lib/phlex-icons/flag/be.rb +31 -0
  35. data/lib/phlex-icons/flag/bf.rb +40 -0
  36. data/lib/phlex-icons/flag/bg.rb +27 -0
  37. data/lib/phlex-icons/flag/bh.rb +35 -0
  38. data/lib/phlex-icons/flag/bi.rb +87 -0
  39. data/lib/phlex-icons/flag/bj.rb +47 -0
  40. data/lib/phlex-icons/flag/bl.rb +29 -0
  41. data/lib/phlex-icons/flag/bm.rb +1178 -0
  42. data/lib/phlex-icons/flag/bn.rb +91 -0
  43. data/lib/phlex-icons/flag/bo.rb +7371 -0
  44. data/lib/phlex-icons/flag/bq.rb +27 -0
  45. data/lib/phlex-icons/flag/br.rb +309 -0
  46. data/lib/phlex-icons/flag/bs.rb +56 -0
  47. data/lib/phlex-icons/flag/bt.rb +586 -0
  48. data/lib/phlex-icons/flag/bv.rb +49 -0
  49. data/lib/phlex-icons/flag/bw.rb +31 -0
  50. data/lib/phlex-icons/flag/by.rb +55 -0
  51. data/lib/phlex-icons/flag/bz.rb +309 -0
  52. data/lib/phlex-icons/flag/ca.rb +35 -0
  53. data/lib/phlex-icons/flag/cc.rb +57 -0
  54. data/lib/phlex-icons/flag/cd.rb +42 -0
  55. data/lib/phlex-icons/flag/cefta.rb +89 -0
  56. data/lib/phlex-icons/flag/cf.rb +59 -0
  57. data/lib/phlex-icons/flag/cg.rb +53 -0
  58. data/lib/phlex-icons/flag/ch.rb +35 -0
  59. data/lib/phlex-icons/flag/ci.rb +31 -0
  60. data/lib/phlex-icons/flag/ck.rb +63 -0
  61. data/lib/phlex-icons/flag/cl.rb +61 -0
  62. data/lib/phlex-icons/flag/cm.rb +49 -0
  63. data/lib/phlex-icons/flag/cn.rb +41 -0
  64. data/lib/phlex-icons/flag/co.rb +31 -0
  65. data/lib/phlex-icons/flag/configuration.rb +13 -0
  66. data/lib/{phlex/icons/flag/mf.rb → phlex-icons/flag/cp.rb} +14 -12
  67. data/lib/phlex-icons/flag/cr.rb +31 -0
  68. data/lib/phlex-icons/flag/cu.rb +55 -0
  69. data/lib/phlex-icons/flag/cv.rb +61 -0
  70. data/lib/phlex-icons/flag/cw.rb +47 -0
  71. data/lib/phlex-icons/flag/cx.rb +49 -0
  72. data/lib/phlex-icons/flag/cy.rb +31 -0
  73. data/lib/phlex-icons/flag/cz.rb +27 -0
  74. data/lib/phlex-icons/flag/de.rb +27 -0
  75. data/lib/phlex-icons/flag/dg.rb +1561 -0
  76. data/lib/phlex-icons/flag/dj.rb +61 -0
  77. data/lib/phlex-icons/flag/dk.rb +27 -0
  78. data/lib/phlex-icons/flag/dm.rb +1435 -0
  79. data/lib/phlex-icons/flag/do.rb +263 -0
  80. data/lib/phlex-icons/flag/dz.rb +35 -0
  81. data/lib/phlex-icons/flag/eac.rb +115 -0
  82. data/lib/phlex-icons/flag/ec.rb +1615 -0
  83. data/lib/phlex-icons/flag/ee.rb +27 -0
  84. data/lib/phlex-icons/flag/eg.rb +95 -0
  85. data/lib/phlex-icons/flag/eh.rb +58 -0
  86. data/lib/phlex-icons/flag/er.rb +46 -0
  87. data/lib/phlex-icons/flag/es.rb +5734 -0
  88. data/lib/phlex-icons/flag/es_ct.rb +35 -0
  89. data/lib/phlex-icons/flag/es_ga.rb +1820 -0
  90. data/lib/phlex-icons/flag/es_pv.rb +43 -0
  91. data/lib/phlex-icons/flag/et.rb +77 -0
  92. data/lib/phlex-icons/flag/eu.rb +75 -0
  93. data/lib/phlex-icons/flag/fi.rb +27 -0
  94. data/lib/phlex-icons/flag/fj.rb +855 -0
  95. data/lib/phlex-icons/flag/fk.rb +198 -0
  96. data/lib/phlex-icons/flag/fm.rb +59 -0
  97. data/lib/phlex-icons/flag/fo.rb +59 -0
  98. data/lib/phlex-icons/flag/fr.rb +27 -0
  99. data/lib/phlex-icons/flag/ga.rb +31 -0
  100. data/lib/phlex-icons/flag/gb.rb +47 -0
  101. data/lib/phlex-icons/flag/gb_eng.rb +27 -0
  102. data/lib/phlex-icons/flag/gb_nir.rb +282 -0
  103. data/lib/phlex-icons/flag/gb_sct.rb +35 -0
  104. data/lib/phlex-icons/flag/gb_wls.rb +58 -0
  105. data/lib/phlex-icons/flag/gd.rb +73 -0
  106. data/lib/phlex-icons/flag/ge.rb +41 -0
  107. data/lib/phlex-icons/flag/gf.rb +27 -0
  108. data/lib/phlex-icons/flag/gg.rb +35 -0
  109. data/lib/phlex-icons/flag/gh.rb +32 -0
  110. data/lib/phlex-icons/flag/gi.rb +83 -0
  111. data/lib/phlex-icons/flag/gl.rb +32 -0
  112. data/lib/phlex-icons/flag/gm.rb +45 -0
  113. data/lib/phlex-icons/flag/gn.rb +31 -0
  114. data/lib/phlex-icons/flag/gp.rb +27 -0
  115. data/lib/phlex-icons/flag/gq.rb +167 -0
  116. data/lib/phlex-icons/flag/gr.rb +51 -0
  117. data/lib/phlex-icons/flag/gs.rb +284 -0
  118. data/lib/phlex-icons/flag/gt.rb +427 -0
  119. data/lib/phlex-icons/flag/gu.rb +214 -0
  120. data/lib/phlex-icons/flag/gw.rb +47 -0
  121. data/lib/phlex-icons/flag/gy.rb +47 -0
  122. data/lib/phlex-icons/flag/hk.rb +35 -0
  123. data/lib/phlex-icons/flag/hm.rb +59 -0
  124. data/lib/phlex-icons/flag/hn.rb +55 -0
  125. data/lib/phlex-icons/flag/hr.rb +133 -0
  126. data/lib/phlex-icons/flag/ht.rb +251 -0
  127. data/lib/phlex-icons/flag/hu.rb +31 -0
  128. data/lib/phlex-icons/flag/ic.rb +31 -0
  129. data/lib/phlex-icons/flag/id.rb +25 -0
  130. data/lib/phlex-icons/flag/ie.rb +31 -0
  131. data/lib/phlex-icons/flag/il.rb +65 -0
  132. data/lib/phlex-icons/flag/im.rb +405 -0
  133. data/lib/phlex-icons/flag/in.rb +69 -0
  134. data/lib/phlex-icons/flag/io.rb +1561 -0
  135. data/lib/phlex-icons/flag/iq.rb +51 -0
  136. data/lib/phlex-icons/flag/ir.rb +901 -0
  137. data/lib/phlex-icons/flag/is.rb +52 -0
  138. data/lib/phlex-icons/flag/it.rb +31 -0
  139. data/lib/phlex-icons/flag/je.rb +781 -0
  140. data/lib/phlex-icons/flag/jm.rb +33 -0
  141. data/lib/phlex-icons/flag/jo.rb +59 -0
  142. data/lib/phlex-icons/flag/jp.rb +63 -0
  143. data/lib/phlex-icons/flag/ke.rb +65 -0
  144. data/lib/phlex-icons/flag/kg.rb +91 -0
  145. data/lib/phlex-icons/flag/kh.rb +141 -0
  146. data/lib/phlex-icons/flag/ki.rb +416 -0
  147. data/lib/phlex-icons/flag/km.rb +75 -0
  148. data/lib/phlex-icons/flag/kn.rb +69 -0
  149. data/lib/phlex-icons/flag/kp.rb +78 -0
  150. data/lib/phlex-icons/flag/kr.rb +60 -0
  151. data/lib/phlex-icons/flag/kw.rb +53 -0
  152. data/lib/phlex-icons/flag/ky.rb +225 -0
  153. data/lib/phlex-icons/flag/kz.rb +91 -0
  154. data/lib/phlex-icons/flag/la.rb +51 -0
  155. data/lib/phlex-icons/flag/lb.rb +75 -0
  156. data/lib/phlex-icons/flag/lc.rb +33 -0
  157. data/lib/phlex-icons/flag/li.rb +105 -0
  158. data/lib/phlex-icons/flag/lk.rb +63 -0
  159. data/lib/phlex-icons/flag/lr.rb +65 -0
  160. data/lib/phlex-icons/flag/ls.rb +65 -0
  161. data/lib/phlex-icons/flag/lt.rb +69 -0
  162. data/lib/phlex-icons/flag/lu.rb +27 -0
  163. data/lib/phlex-icons/flag/lv.rb +29 -0
  164. data/lib/phlex-icons/flag/ly.rb +46 -0
  165. data/lib/phlex-icons/flag/ma.rb +35 -0
  166. data/lib/phlex-icons/flag/mc.rb +29 -0
  167. data/lib/phlex-icons/flag/md.rb +747 -0
  168. data/lib/phlex-icons/flag/me.rb +954 -0
  169. data/lib/phlex-icons/flag/mf.rb +27 -0
  170. data/lib/phlex-icons/flag/mg.rb +31 -0
  171. data/lib/phlex-icons/flag/mh.rb +42 -0
  172. data/lib/phlex-icons/flag/mk.rb +51 -0
  173. data/lib/phlex-icons/flag/ml.rb +31 -0
  174. data/lib/phlex-icons/flag/mm.rb +41 -0
  175. data/lib/phlex-icons/flag/mn.rb +65 -0
  176. data/lib/phlex-icons/flag/mo.rb +37 -0
  177. data/lib/phlex-icons/flag/mp.rb +970 -0
  178. data/lib/phlex-icons/flag/mq.rb +27 -0
  179. data/lib/phlex-icons/flag/mr.rb +47 -0
  180. data/lib/phlex-icons/flag/ms.rb +255 -0
  181. data/lib/phlex-icons/flag/mt.rb +133 -0
  182. data/lib/phlex-icons/flag/mu.rb +33 -0
  183. data/lib/phlex-icons/flag/mv.rb +29 -0
  184. data/lib/phlex-icons/flag/mw.rb +65 -0
  185. data/lib/phlex-icons/flag/mx.rb +778 -0
  186. data/lib/phlex-icons/flag/my.rb +69 -0
  187. data/lib/phlex-icons/flag/mz.rb +143 -0
  188. data/lib/phlex-icons/flag/na.rb +72 -0
  189. data/lib/phlex-icons/flag/nc.rb +85 -0
  190. data/lib/phlex-icons/flag/ne.rb +29 -0
  191. data/lib/phlex-icons/flag/nf.rb +77 -0
  192. data/lib/phlex-icons/flag/ng.rb +29 -0
  193. data/lib/phlex-icons/flag/ni.rb +277 -0
  194. data/lib/phlex-icons/flag/nl.rb +27 -0
  195. data/lib/phlex-icons/flag/no.rb +31 -0
  196. data/lib/phlex-icons/flag/np.rb +62 -0
  197. data/lib/phlex-icons/flag/nr.rb +61 -0
  198. data/lib/phlex-icons/flag/nu.rb +63 -0
  199. data/lib/phlex-icons/flag/nz.rb +91 -0
  200. data/lib/phlex-icons/flag/om.rb +1355 -0
  201. data/lib/phlex-icons/flag/pa.rb +60 -0
  202. data/lib/phlex-icons/flag/pc.rb +85 -0
  203. data/lib/phlex-icons/flag/pe.rb +25 -0
  204. data/lib/phlex-icons/flag/pf.rb +158 -0
  205. data/lib/phlex-icons/flag/pg.rb +80 -0
  206. data/lib/phlex-icons/flag/ph.rb +39 -0
  207. data/lib/phlex-icons/flag/pk.rb +64 -0
  208. data/lib/phlex-icons/flag/pl.rb +29 -0
  209. data/lib/phlex-icons/flag/pm.rb +27 -0
  210. data/lib/phlex-icons/flag/pn.rb +655 -0
  211. data/lib/phlex-icons/flag/pr.rb +64 -0
  212. data/lib/phlex-icons/flag/ps.rb +49 -0
  213. data/lib/phlex-icons/flag/pt.rb +133 -0
  214. data/lib/phlex-icons/flag/pw.rb +58 -0
  215. data/lib/phlex-icons/flag/py.rb +746 -0
  216. data/lib/phlex-icons/flag/qa.rb +35 -0
  217. data/lib/phlex-icons/flag/re.rb +29 -0
  218. data/lib/phlex-icons/flag/ro.rb +31 -0
  219. data/lib/phlex-icons/flag/rs.rb +607 -0
  220. data/lib/phlex-icons/flag/ru.rb +27 -0
  221. data/lib/phlex-icons/flag/rw.rb +45 -0
  222. data/lib/phlex-icons/flag/sa.rb +195 -0
  223. data/lib/phlex-icons/flag/sb.rb +61 -0
  224. data/lib/phlex-icons/flag/sc.rb +31 -0
  225. data/lib/phlex-icons/flag/sd.rb +53 -0
  226. data/lib/phlex-icons/flag/se.rb +28 -0
  227. data/lib/phlex-icons/flag/sg.rb +62 -0
  228. data/lib/phlex-icons/flag/sh.rb +47 -0
  229. data/lib/phlex-icons/flag/sh_ac.rb +5471 -0
  230. data/lib/phlex-icons/flag/sh_hl.rb +1204 -0
  231. data/lib/phlex-icons/flag/sh_ta.rb +744 -0
  232. data/lib/phlex-icons/flag/si.rb +113 -0
  233. data/lib/phlex-icons/flag/sj.rb +31 -0
  234. data/lib/phlex-icons/flag/sk.rb +69 -0
  235. data/lib/phlex-icons/flag/sl.rb +42 -0
  236. data/lib/phlex-icons/flag/sm.rb +764 -0
  237. data/lib/phlex-icons/flag/sn.rb +41 -0
  238. data/lib/phlex-icons/flag/so.rb +57 -0
  239. data/lib/phlex-icons/flag/sr.rb +35 -0
  240. data/lib/phlex-icons/flag/ss.rb +33 -0
  241. data/lib/phlex-icons/flag/st.rb +51 -0
  242. data/lib/phlex-icons/flag/sv.rb +1207 -0
  243. data/lib/phlex-icons/flag/sx.rb +532 -0
  244. data/lib/phlex-icons/flag/sy.rb +36 -0
  245. data/lib/phlex-icons/flag/sz.rb +87 -0
  246. data/lib/phlex-icons/flag/tc.rb +119 -0
  247. data/lib/phlex-icons/flag/td.rb +31 -0
  248. data/lib/phlex-icons/flag/tf.rb +49 -0
  249. data/lib/phlex-icons/flag/tg.rb +63 -0
  250. data/lib/phlex-icons/flag/th.rb +31 -0
  251. data/lib/phlex-icons/flag/tj.rb +67 -0
  252. data/lib/phlex-icons/flag/tk.rb +45 -0
  253. data/lib/phlex-icons/flag/tl.rb +59 -0
  254. data/lib/phlex-icons/flag/tm.rb +1485 -0
  255. data/lib/phlex-icons/flag/tn.rb +35 -0
  256. data/lib/phlex-icons/flag/to.rb +37 -0
  257. data/lib/phlex-icons/flag/tr.rb +59 -0
  258. data/lib/phlex-icons/flag/tt.rb +37 -0
  259. data/lib/phlex-icons/flag/tv.rb +63 -0
  260. data/lib/phlex-icons/flag/tw.rb +169 -0
  261. data/lib/phlex-icons/flag/tz.rb +61 -0
  262. data/lib/phlex-icons/flag/ua.rb +29 -0
  263. data/lib/phlex-icons/flag/ug.rb +300 -0
  264. data/lib/phlex-icons/flag/um.rb +55 -0
  265. data/lib/phlex-icons/flag/un.rb +51 -0
  266. data/lib/phlex-icons/flag/us.rb +55 -0
  267. data/lib/phlex-icons/flag/uy.rb +75 -0
  268. data/lib/phlex-icons/flag/uz.rb +79 -0
  269. data/lib/phlex-icons/flag/va.rb +399 -0
  270. data/lib/phlex-icons/flag/vc.rb +44 -0
  271. data/lib/phlex-icons/flag/ve.rb +71 -0
  272. data/lib/phlex-icons/flag/vg.rb +137 -0
  273. data/lib/phlex-icons/flag/vi.rb +75 -0
  274. data/lib/phlex-icons/flag/vn.rb +57 -0
  275. data/lib/phlex-icons/flag/vu.rb +61 -0
  276. data/lib/phlex-icons/flag/wf.rb +27 -0
  277. data/lib/phlex-icons/flag/ws.rb +41 -0
  278. data/lib/phlex-icons/flag/xk.rb +45 -0
  279. data/lib/phlex-icons/flag/xx.rb +41 -0
  280. data/lib/phlex-icons/flag/ye.rb +31 -0
  281. data/lib/phlex-icons/flag/yt.rb +27 -0
  282. data/lib/phlex-icons/flag/za.rb +75 -0
  283. data/lib/phlex-icons/flag/zm.rb +186 -0
  284. data/lib/phlex-icons/flag/zw.rb +61 -0
  285. data/lib/phlex-icons/flag.rb +296 -0
  286. data/lib/phlex-icons/version.rb +5 -0
  287. data/lib/phlex-icons-flag.rb +11 -13
  288. data/sig/phlex/icons.rbs +3 -5
  289. metadata +277 -277
  290. data/lib/phlex/icons/base.rb +0 -20
  291. data/lib/phlex/icons/configuration.rb +0 -13
  292. data/lib/phlex/icons/flag/ad.rb +0 -319
  293. data/lib/phlex/icons/flag/ae.rb +0 -31
  294. data/lib/phlex/icons/flag/af.rb +0 -183
  295. data/lib/phlex/icons/flag/ag.rb +0 -68
  296. data/lib/phlex/icons/flag/ai.rb +0 -79
  297. data/lib/phlex/icons/flag/al.rb +0 -31
  298. data/lib/phlex/icons/flag/am.rb +0 -29
  299. data/lib/phlex/icons/flag/ao.rb +0 -115
  300. data/lib/phlex/icons/flag/aq.rb +0 -55
  301. data/lib/phlex/icons/flag/ar.rb +0 -85
  302. data/lib/phlex/icons/flag/arab.rb +0 -1151
  303. data/lib/phlex/icons/flag/as.rb +0 -657
  304. data/lib/phlex/icons/flag/at.rb +0 -27
  305. data/lib/phlex/icons/flag/au.rb +0 -61
  306. data/lib/phlex/icons/flag/aw.rb +0 -407
  307. data/lib/phlex/icons/flag/ax.rb +0 -60
  308. data/lib/phlex/icons/flag/az.rb +0 -45
  309. data/lib/phlex/icons/flag/ba.rb +0 -55
  310. data/lib/phlex/icons/flag/base.rb +0 -25
  311. data/lib/phlex/icons/flag/bb.rb +0 -33
  312. data/lib/phlex/icons/flag/bd.rb +0 -27
  313. data/lib/phlex/icons/flag/be.rb +0 -33
  314. data/lib/phlex/icons/flag/bf.rb +0 -42
  315. data/lib/phlex/icons/flag/bg.rb +0 -29
  316. data/lib/phlex/icons/flag/bh.rb +0 -37
  317. data/lib/phlex/icons/flag/bi.rb +0 -89
  318. data/lib/phlex/icons/flag/bj.rb +0 -49
  319. data/lib/phlex/icons/flag/bl.rb +0 -31
  320. data/lib/phlex/icons/flag/bm.rb +0 -1180
  321. data/lib/phlex/icons/flag/bn.rb +0 -93
  322. data/lib/phlex/icons/flag/bo.rb +0 -7373
  323. data/lib/phlex/icons/flag/bq.rb +0 -29
  324. data/lib/phlex/icons/flag/br.rb +0 -311
  325. data/lib/phlex/icons/flag/bs.rb +0 -58
  326. data/lib/phlex/icons/flag/bt.rb +0 -588
  327. data/lib/phlex/icons/flag/bv.rb +0 -51
  328. data/lib/phlex/icons/flag/bw.rb +0 -33
  329. data/lib/phlex/icons/flag/by.rb +0 -57
  330. data/lib/phlex/icons/flag/bz.rb +0 -311
  331. data/lib/phlex/icons/flag/ca.rb +0 -37
  332. data/lib/phlex/icons/flag/cc.rb +0 -59
  333. data/lib/phlex/icons/flag/cd.rb +0 -44
  334. data/lib/phlex/icons/flag/cefta.rb +0 -91
  335. data/lib/phlex/icons/flag/cf.rb +0 -61
  336. data/lib/phlex/icons/flag/cg.rb +0 -55
  337. data/lib/phlex/icons/flag/ch.rb +0 -37
  338. data/lib/phlex/icons/flag/ci.rb +0 -33
  339. data/lib/phlex/icons/flag/ck.rb +0 -65
  340. data/lib/phlex/icons/flag/cl.rb +0 -63
  341. data/lib/phlex/icons/flag/cm.rb +0 -51
  342. data/lib/phlex/icons/flag/cn.rb +0 -43
  343. data/lib/phlex/icons/flag/co.rb +0 -33
  344. data/lib/phlex/icons/flag/configuration.rb +0 -15
  345. data/lib/phlex/icons/flag/cp.rb +0 -33
  346. data/lib/phlex/icons/flag/cr.rb +0 -33
  347. data/lib/phlex/icons/flag/cu.rb +0 -57
  348. data/lib/phlex/icons/flag/cv.rb +0 -63
  349. data/lib/phlex/icons/flag/cw.rb +0 -49
  350. data/lib/phlex/icons/flag/cx.rb +0 -51
  351. data/lib/phlex/icons/flag/cy.rb +0 -33
  352. data/lib/phlex/icons/flag/cz.rb +0 -29
  353. data/lib/phlex/icons/flag/de.rb +0 -29
  354. data/lib/phlex/icons/flag/dg.rb +0 -1563
  355. data/lib/phlex/icons/flag/dj.rb +0 -63
  356. data/lib/phlex/icons/flag/dk.rb +0 -29
  357. data/lib/phlex/icons/flag/dm.rb +0 -1437
  358. data/lib/phlex/icons/flag/do.rb +0 -265
  359. data/lib/phlex/icons/flag/dz.rb +0 -37
  360. data/lib/phlex/icons/flag/eac.rb +0 -117
  361. data/lib/phlex/icons/flag/ec.rb +0 -1617
  362. data/lib/phlex/icons/flag/ee.rb +0 -29
  363. data/lib/phlex/icons/flag/eg.rb +0 -97
  364. data/lib/phlex/icons/flag/eh.rb +0 -60
  365. data/lib/phlex/icons/flag/er.rb +0 -48
  366. data/lib/phlex/icons/flag/es.rb +0 -5736
  367. data/lib/phlex/icons/flag/es_ct.rb +0 -37
  368. data/lib/phlex/icons/flag/es_ga.rb +0 -1822
  369. data/lib/phlex/icons/flag/es_pv.rb +0 -45
  370. data/lib/phlex/icons/flag/et.rb +0 -79
  371. data/lib/phlex/icons/flag/eu.rb +0 -77
  372. data/lib/phlex/icons/flag/fi.rb +0 -29
  373. data/lib/phlex/icons/flag/fj.rb +0 -857
  374. data/lib/phlex/icons/flag/fk.rb +0 -200
  375. data/lib/phlex/icons/flag/fm.rb +0 -61
  376. data/lib/phlex/icons/flag/fo.rb +0 -61
  377. data/lib/phlex/icons/flag/fr.rb +0 -29
  378. data/lib/phlex/icons/flag/ga.rb +0 -33
  379. data/lib/phlex/icons/flag/gb.rb +0 -49
  380. data/lib/phlex/icons/flag/gb_eng.rb +0 -29
  381. data/lib/phlex/icons/flag/gb_nir.rb +0 -284
  382. data/lib/phlex/icons/flag/gb_sct.rb +0 -37
  383. data/lib/phlex/icons/flag/gb_wls.rb +0 -60
  384. data/lib/phlex/icons/flag/gd.rb +0 -75
  385. data/lib/phlex/icons/flag/ge.rb +0 -43
  386. data/lib/phlex/icons/flag/gf.rb +0 -29
  387. data/lib/phlex/icons/flag/gg.rb +0 -37
  388. data/lib/phlex/icons/flag/gh.rb +0 -34
  389. data/lib/phlex/icons/flag/gi.rb +0 -85
  390. data/lib/phlex/icons/flag/gl.rb +0 -34
  391. data/lib/phlex/icons/flag/gm.rb +0 -47
  392. data/lib/phlex/icons/flag/gn.rb +0 -33
  393. data/lib/phlex/icons/flag/gp.rb +0 -29
  394. data/lib/phlex/icons/flag/gq.rb +0 -169
  395. data/lib/phlex/icons/flag/gr.rb +0 -53
  396. data/lib/phlex/icons/flag/gs.rb +0 -286
  397. data/lib/phlex/icons/flag/gt.rb +0 -429
  398. data/lib/phlex/icons/flag/gu.rb +0 -216
  399. data/lib/phlex/icons/flag/gw.rb +0 -49
  400. data/lib/phlex/icons/flag/gy.rb +0 -49
  401. data/lib/phlex/icons/flag/hk.rb +0 -37
  402. data/lib/phlex/icons/flag/hm.rb +0 -61
  403. data/lib/phlex/icons/flag/hn.rb +0 -57
  404. data/lib/phlex/icons/flag/hr.rb +0 -135
  405. data/lib/phlex/icons/flag/ht.rb +0 -253
  406. data/lib/phlex/icons/flag/hu.rb +0 -33
  407. data/lib/phlex/icons/flag/ic.rb +0 -33
  408. data/lib/phlex/icons/flag/id.rb +0 -27
  409. data/lib/phlex/icons/flag/ie.rb +0 -33
  410. data/lib/phlex/icons/flag/il.rb +0 -67
  411. data/lib/phlex/icons/flag/im.rb +0 -407
  412. data/lib/phlex/icons/flag/in.rb +0 -71
  413. data/lib/phlex/icons/flag/io.rb +0 -1563
  414. data/lib/phlex/icons/flag/iq.rb +0 -53
  415. data/lib/phlex/icons/flag/ir.rb +0 -903
  416. data/lib/phlex/icons/flag/is.rb +0 -54
  417. data/lib/phlex/icons/flag/it.rb +0 -33
  418. data/lib/phlex/icons/flag/je.rb +0 -783
  419. data/lib/phlex/icons/flag/jm.rb +0 -35
  420. data/lib/phlex/icons/flag/jo.rb +0 -61
  421. data/lib/phlex/icons/flag/jp.rb +0 -65
  422. data/lib/phlex/icons/flag/ke.rb +0 -67
  423. data/lib/phlex/icons/flag/kg.rb +0 -93
  424. data/lib/phlex/icons/flag/kh.rb +0 -143
  425. data/lib/phlex/icons/flag/ki.rb +0 -418
  426. data/lib/phlex/icons/flag/km.rb +0 -77
  427. data/lib/phlex/icons/flag/kn.rb +0 -71
  428. data/lib/phlex/icons/flag/kp.rb +0 -80
  429. data/lib/phlex/icons/flag/kr.rb +0 -62
  430. data/lib/phlex/icons/flag/kw.rb +0 -55
  431. data/lib/phlex/icons/flag/ky.rb +0 -227
  432. data/lib/phlex/icons/flag/kz.rb +0 -93
  433. data/lib/phlex/icons/flag/la.rb +0 -53
  434. data/lib/phlex/icons/flag/lb.rb +0 -77
  435. data/lib/phlex/icons/flag/lc.rb +0 -35
  436. data/lib/phlex/icons/flag/li.rb +0 -107
  437. data/lib/phlex/icons/flag/lk.rb +0 -65
  438. data/lib/phlex/icons/flag/lr.rb +0 -67
  439. data/lib/phlex/icons/flag/ls.rb +0 -67
  440. data/lib/phlex/icons/flag/lt.rb +0 -71
  441. data/lib/phlex/icons/flag/lu.rb +0 -29
  442. data/lib/phlex/icons/flag/lv.rb +0 -31
  443. data/lib/phlex/icons/flag/ly.rb +0 -50
  444. data/lib/phlex/icons/flag/ma.rb +0 -37
  445. data/lib/phlex/icons/flag/mc.rb +0 -31
  446. data/lib/phlex/icons/flag/md.rb +0 -749
  447. data/lib/phlex/icons/flag/me.rb +0 -956
  448. data/lib/phlex/icons/flag/mg.rb +0 -33
  449. data/lib/phlex/icons/flag/mh.rb +0 -44
  450. data/lib/phlex/icons/flag/mk.rb +0 -53
  451. data/lib/phlex/icons/flag/ml.rb +0 -33
  452. data/lib/phlex/icons/flag/mm.rb +0 -43
  453. data/lib/phlex/icons/flag/mn.rb +0 -67
  454. data/lib/phlex/icons/flag/mo.rb +0 -39
  455. data/lib/phlex/icons/flag/mp.rb +0 -972
  456. data/lib/phlex/icons/flag/mq.rb +0 -29
  457. data/lib/phlex/icons/flag/mr.rb +0 -49
  458. data/lib/phlex/icons/flag/ms.rb +0 -257
  459. data/lib/phlex/icons/flag/mt.rb +0 -135
  460. data/lib/phlex/icons/flag/mu.rb +0 -35
  461. data/lib/phlex/icons/flag/mv.rb +0 -31
  462. data/lib/phlex/icons/flag/mw.rb +0 -67
  463. data/lib/phlex/icons/flag/mx.rb +0 -780
  464. data/lib/phlex/icons/flag/my.rb +0 -71
  465. data/lib/phlex/icons/flag/mz.rb +0 -145
  466. data/lib/phlex/icons/flag/na.rb +0 -74
  467. data/lib/phlex/icons/flag/nc.rb +0 -87
  468. data/lib/phlex/icons/flag/ne.rb +0 -31
  469. data/lib/phlex/icons/flag/nf.rb +0 -79
  470. data/lib/phlex/icons/flag/ng.rb +0 -31
  471. data/lib/phlex/icons/flag/ni.rb +0 -279
  472. data/lib/phlex/icons/flag/nl.rb +0 -29
  473. data/lib/phlex/icons/flag/no.rb +0 -33
  474. data/lib/phlex/icons/flag/np.rb +0 -64
  475. data/lib/phlex/icons/flag/nr.rb +0 -63
  476. data/lib/phlex/icons/flag/nu.rb +0 -65
  477. data/lib/phlex/icons/flag/nz.rb +0 -93
  478. data/lib/phlex/icons/flag/om.rb +0 -1357
  479. data/lib/phlex/icons/flag/pa.rb +0 -62
  480. data/lib/phlex/icons/flag/pc.rb +0 -87
  481. data/lib/phlex/icons/flag/pe.rb +0 -27
  482. data/lib/phlex/icons/flag/pf.rb +0 -160
  483. data/lib/phlex/icons/flag/pg.rb +0 -82
  484. data/lib/phlex/icons/flag/ph.rb +0 -41
  485. data/lib/phlex/icons/flag/pk.rb +0 -66
  486. data/lib/phlex/icons/flag/pl.rb +0 -31
  487. data/lib/phlex/icons/flag/pm.rb +0 -29
  488. data/lib/phlex/icons/flag/pn.rb +0 -657
  489. data/lib/phlex/icons/flag/pr.rb +0 -66
  490. data/lib/phlex/icons/flag/ps.rb +0 -51
  491. data/lib/phlex/icons/flag/pt.rb +0 -135
  492. data/lib/phlex/icons/flag/pw.rb +0 -60
  493. data/lib/phlex/icons/flag/py.rb +0 -748
  494. data/lib/phlex/icons/flag/qa.rb +0 -37
  495. data/lib/phlex/icons/flag/re.rb +0 -31
  496. data/lib/phlex/icons/flag/ro.rb +0 -33
  497. data/lib/phlex/icons/flag/rs.rb +0 -609
  498. data/lib/phlex/icons/flag/ru.rb +0 -29
  499. data/lib/phlex/icons/flag/rw.rb +0 -47
  500. data/lib/phlex/icons/flag/sa.rb +0 -197
  501. data/lib/phlex/icons/flag/sb.rb +0 -63
  502. data/lib/phlex/icons/flag/sc.rb +0 -33
  503. data/lib/phlex/icons/flag/sd.rb +0 -55
  504. data/lib/phlex/icons/flag/se.rb +0 -30
  505. data/lib/phlex/icons/flag/sg.rb +0 -64
  506. data/lib/phlex/icons/flag/sh.rb +0 -49
  507. data/lib/phlex/icons/flag/sh_ac.rb +0 -5473
  508. data/lib/phlex/icons/flag/sh_hl.rb +0 -1206
  509. data/lib/phlex/icons/flag/sh_ta.rb +0 -746
  510. data/lib/phlex/icons/flag/si.rb +0 -115
  511. data/lib/phlex/icons/flag/sj.rb +0 -33
  512. data/lib/phlex/icons/flag/sk.rb +0 -71
  513. data/lib/phlex/icons/flag/sl.rb +0 -44
  514. data/lib/phlex/icons/flag/sm.rb +0 -766
  515. data/lib/phlex/icons/flag/sn.rb +0 -43
  516. data/lib/phlex/icons/flag/so.rb +0 -59
  517. data/lib/phlex/icons/flag/sr.rb +0 -37
  518. data/lib/phlex/icons/flag/ss.rb +0 -35
  519. data/lib/phlex/icons/flag/st.rb +0 -53
  520. data/lib/phlex/icons/flag/sv.rb +0 -1209
  521. data/lib/phlex/icons/flag/sx.rb +0 -534
  522. data/lib/phlex/icons/flag/sy.rb +0 -38
  523. data/lib/phlex/icons/flag/sz.rb +0 -89
  524. data/lib/phlex/icons/flag/tc.rb +0 -121
  525. data/lib/phlex/icons/flag/td.rb +0 -33
  526. data/lib/phlex/icons/flag/tf.rb +0 -51
  527. data/lib/phlex/icons/flag/tg.rb +0 -65
  528. data/lib/phlex/icons/flag/th.rb +0 -33
  529. data/lib/phlex/icons/flag/tj.rb +0 -69
  530. data/lib/phlex/icons/flag/tk.rb +0 -47
  531. data/lib/phlex/icons/flag/tl.rb +0 -61
  532. data/lib/phlex/icons/flag/tm.rb +0 -1487
  533. data/lib/phlex/icons/flag/tn.rb +0 -37
  534. data/lib/phlex/icons/flag/to.rb +0 -39
  535. data/lib/phlex/icons/flag/tr.rb +0 -61
  536. data/lib/phlex/icons/flag/tt.rb +0 -39
  537. data/lib/phlex/icons/flag/tv.rb +0 -65
  538. data/lib/phlex/icons/flag/tw.rb +0 -171
  539. data/lib/phlex/icons/flag/tz.rb +0 -63
  540. data/lib/phlex/icons/flag/ua.rb +0 -31
  541. data/lib/phlex/icons/flag/ug.rb +0 -302
  542. data/lib/phlex/icons/flag/um.rb +0 -57
  543. data/lib/phlex/icons/flag/un.rb +0 -53
  544. data/lib/phlex/icons/flag/us.rb +0 -57
  545. data/lib/phlex/icons/flag/uy.rb +0 -77
  546. data/lib/phlex/icons/flag/uz.rb +0 -81
  547. data/lib/phlex/icons/flag/va.rb +0 -401
  548. data/lib/phlex/icons/flag/vc.rb +0 -46
  549. data/lib/phlex/icons/flag/ve.rb +0 -73
  550. data/lib/phlex/icons/flag/vg.rb +0 -139
  551. data/lib/phlex/icons/flag/vi.rb +0 -77
  552. data/lib/phlex/icons/flag/vn.rb +0 -59
  553. data/lib/phlex/icons/flag/vu.rb +0 -63
  554. data/lib/phlex/icons/flag/wf.rb +0 -29
  555. data/lib/phlex/icons/flag/ws.rb +0 -43
  556. data/lib/phlex/icons/flag/xk.rb +0 -47
  557. data/lib/phlex/icons/flag/xx.rb +0 -43
  558. data/lib/phlex/icons/flag/ye.rb +0 -33
  559. data/lib/phlex/icons/flag/yt.rb +0 -29
  560. data/lib/phlex/icons/flag/za.rb +0 -77
  561. data/lib/phlex/icons/flag/zm.rb +0 -188
  562. data/lib/phlex/icons/flag/zw.rb +0 -63
  563. data/lib/phlex/icons/flag.rb +0 -298
  564. data/lib/phlex/icons/version.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc355e911e22fe94843ca4c6f4eb06a5addd2950a51e9b1776883eac6b323af5
4
- data.tar.gz: aafc256dbf5a491bff523937624a88c2a6fa7618b10efd99dbfcb420a223234b
3
+ metadata.gz: 4457bb7aef77ca6cc746eacea22195fb38b49d61dadc5b541f4d327562c27c32
4
+ data.tar.gz: 25eb9b2086afba15d2742c55ba75684e3d16028a2b55db0d83989f068dba1f8f
5
5
  SHA512:
6
- metadata.gz: e17edd4bc20508079243f772eee783109f350e8e703d55e9e39ed81f9e4360cd037863436596317e52af41f93b1101be605252344ad111f0899ad9c500ad7bb6
7
- data.tar.gz: bbc19a86223de39bd6d0106eee905fd45001566553ad3bc20649d1f29e8c208b1d05786e552298722292c5c74729fd467e76fd17589fd7b7cb89e73000f3f309
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
- # Phlex::Icons
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
- Phlex::Icons.configure do |config|
61
+ PhlexIcons.configure do |config|
62
62
  config.default_classes = 'size-6'
63
63
  end
64
64
 
65
65
  # OR
66
66
 
67
- Phlex::Icons.configuration.default_classes = 'size-6'
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
- Phlex::Icons::Flag.configure do |config|
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
- Phlex::Icons::Flag.configuration.default_variant = :square # or :rectangle
83
+ PhlexIcons::Flag.configuration.default_variant = :square # or :rectangle
84
84
  ```
85
85
 
86
86
  ### Heroicons configuration
87
87
 
88
88
  ```ruby
89
- Phlex::Icons::Hero.configure do |config|
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
- Phlex::Icons::Hero.configuration.default_variant = :solid # or :outline
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
- Phlex::Icons::Tabler.configure do |config|
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
- Phlex::Icons::Tabler.configuration.default_variant = :outline # or :filled
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 Phlex::Icons
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 Phlex::Icons::Bootstrap::House.new(class: 'size-4')
155
- render Phlex::Icons::Flag::Sa.new(variant: :rectangle, class: 'size-4')
156
- render Phlex::Icons::Hero::Home.new(variant: :solid, class: 'size-4')
157
- render Phlex::Icons::Lucide::House.new(class: 'size-4')
158
- render Phlex::Icons::Radix::Home.new(class: 'size-4')
159
- render Phlex::Icons::Remix::HomeLine.new(class: 'size-4')
160
- render Phlex::Icons::Tabler::Home.new(variant: :filled, class: 'size-4')
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 Phlex::Icons # If you want to use Phlex::Kit.
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 Phlex::Icons::Flag::Sa.new(variant: :rectangle, class: 'size-4')
189
- render Phlex::Icons::Hero::Home.new(variant: :solid, class: 'size-4')
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/icons/custom` directory inside `views/components` directory. Then, you can create a new component for each icon you want to add. For example:
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/icons/custom/icon_class_name.rb
201
-
202
- module Phlex
203
- module Icons
204
- module Custom
205
- class IconClassName < Phlex::Icons::Base
206
- def view_template
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 `Phlex::Icons::Custom` module in `phlex/icons/custom.rb` file to include your custom icons and make them a `Phlex::Kit`:
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/icons/custom.rb
216
+ # app/views/components/phlex-icons/custom.rb
219
217
 
220
- module Phlex
221
- module Icons
222
- module Custom
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 `Phlex::Icons::Bootstrap::VERSION`.
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 Phlex::Icons 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).
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).
@@ -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/icons/bootstrap.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/bootstrap'
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 Phlex
15
- module Icons
16
- module Bootstrap
17
- class <%= icon_name %> < Base
18
- def view_template
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/icons/flag.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/flag'
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 Phlex
15
- module Icons
16
- module Flag
17
- class <%= icon_name %> < Base
18
- def square
19
- <%= square_icon %>
20
- end
14
+ module PhlexIcons
15
+ module Flag
16
+ class <%= icon_name %> < Base
17
+ def square
18
+ <%= square_icon %>
19
+ end
21
20
 
22
- def rectangle
23
- <%= rectangle_icon %>
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
- " autoload :#{component_class_name(file)}, '#{file.split('/', 2).last.chomp(File.extname(file))}'"
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/icons/hero.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/hero'
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 Phlex
15
- module Icons
16
- module Hero
17
- class <%= icon_name %> < Base
18
- def solid
19
- <%= solid_icon %>
20
- end
14
+ module PhlexIcons
15
+ module Hero
16
+ class <%= icon_name %> < Base
17
+ def solid
18
+ <%= solid_icon %>
19
+ end
21
20
 
22
- def outline
23
- <%= outline_icon %>
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/icons/lucide.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/lucide'
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 Phlex
15
- module Icons
16
- module Lucide
17
- class <%= icon_name %> < Base
18
- def view_template
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/icons/radix.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/radix'
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 Phlex
15
- module Icons
16
- module Radix
17
- class <%= icon_name %> < Base
18
- def view_template
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/icons/remix.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/remix'
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 Phlex
15
- module Icons
16
- module Remix
17
- class <%= icon_name %> < Base
18
- def view_template
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/icons/tabler.rb'
8
- ICONS_PACK_PATH = 'lib/phlex/icons/tabler'
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 Phlex
15
- module Icons
16
- module Tabler
17
- class <%= icon_name %> < Base
18
- def filled
19
- <%= filled_icon %>
20
- end
14
+ module PhlexIcons
15
+ module Tabler
16
+ class <%= icon_name %> < Base
17
+ def filled
18
+ <%= filled_icon %>
19
+ end
21
20
 
22
- def outline
23
- <%= outline_icon %>
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
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PhlexIcons
4
+ class Configuration
5
+ attr_accessor :default_variant, :default_classes
6
+
7
+ def initialize(default_classes: 'size-6')
8
+ @default_classes = default_classes
9
+ end
10
+ end
11
+ end