phlex-icons-flag 0.17.0 → 1.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 +22 -18
- data/generators/bootstrap.rb +1 -1
- data/generators/flag.rb +1 -1
- data/generators/hero.rb +1 -1
- data/generators/lucide.rb +1 -1
- data/generators/radix.rb +1 -1
- data/generators/remix.rb +1 -1
- data/generators/tabler.rb +1 -1
- data/lib/phlex/icons/base.rb +4 -3
- data/lib/phlex/icons/flag/ad.rb +2 -2
- data/lib/phlex/icons/flag/ae.rb +2 -2
- data/lib/phlex/icons/flag/af.rb +2 -2
- data/lib/phlex/icons/flag/ag.rb +2 -2
- data/lib/phlex/icons/flag/ai.rb +2 -2
- data/lib/phlex/icons/flag/al.rb +2 -2
- data/lib/phlex/icons/flag/am.rb +2 -2
- data/lib/phlex/icons/flag/ao.rb +2 -2
- data/lib/phlex/icons/flag/aq.rb +2 -2
- data/lib/phlex/icons/flag/ar.rb +2 -2
- data/lib/phlex/icons/flag/arab.rb +2 -2
- data/lib/phlex/icons/flag/as.rb +2 -2
- data/lib/phlex/icons/flag/at.rb +2 -2
- data/lib/phlex/icons/flag/au.rb +2 -2
- data/lib/phlex/icons/flag/aw.rb +2 -2
- data/lib/phlex/icons/flag/ax.rb +2 -2
- data/lib/phlex/icons/flag/az.rb +2 -2
- data/lib/phlex/icons/flag/ba.rb +2 -2
- data/lib/phlex/icons/flag/base.rb +3 -3
- data/lib/phlex/icons/flag/bb.rb +2 -2
- data/lib/phlex/icons/flag/bd.rb +2 -2
- data/lib/phlex/icons/flag/be.rb +2 -2
- data/lib/phlex/icons/flag/bf.rb +2 -2
- data/lib/phlex/icons/flag/bg.rb +2 -2
- data/lib/phlex/icons/flag/bh.rb +2 -2
- data/lib/phlex/icons/flag/bi.rb +2 -2
- data/lib/phlex/icons/flag/bj.rb +2 -2
- data/lib/phlex/icons/flag/bl.rb +2 -2
- data/lib/phlex/icons/flag/bm.rb +2 -2
- data/lib/phlex/icons/flag/bn.rb +2 -2
- data/lib/phlex/icons/flag/bo.rb +2 -2
- data/lib/phlex/icons/flag/bq.rb +2 -2
- data/lib/phlex/icons/flag/br.rb +2 -2
- data/lib/phlex/icons/flag/bs.rb +2 -2
- data/lib/phlex/icons/flag/bt.rb +2 -2
- data/lib/phlex/icons/flag/bv.rb +2 -2
- data/lib/phlex/icons/flag/bw.rb +2 -2
- data/lib/phlex/icons/flag/by.rb +2 -2
- data/lib/phlex/icons/flag/bz.rb +2 -2
- data/lib/phlex/icons/flag/ca.rb +2 -2
- data/lib/phlex/icons/flag/cc.rb +2 -2
- data/lib/phlex/icons/flag/cd.rb +2 -2
- data/lib/phlex/icons/flag/cefta.rb +2 -2
- data/lib/phlex/icons/flag/cf.rb +2 -2
- data/lib/phlex/icons/flag/cg.rb +2 -2
- data/lib/phlex/icons/flag/ch.rb +2 -2
- data/lib/phlex/icons/flag/ci.rb +2 -2
- data/lib/phlex/icons/flag/ck.rb +2 -2
- data/lib/phlex/icons/flag/cl.rb +2 -2
- data/lib/phlex/icons/flag/cm.rb +2 -2
- data/lib/phlex/icons/flag/cn.rb +2 -2
- data/lib/phlex/icons/flag/co.rb +2 -2
- data/lib/phlex/icons/flag/cp.rb +2 -2
- data/lib/phlex/icons/flag/cr.rb +2 -2
- data/lib/phlex/icons/flag/cu.rb +2 -2
- data/lib/phlex/icons/flag/cv.rb +2 -2
- data/lib/phlex/icons/flag/cw.rb +2 -2
- data/lib/phlex/icons/flag/cx.rb +2 -2
- data/lib/phlex/icons/flag/cy.rb +2 -2
- data/lib/phlex/icons/flag/cz.rb +2 -2
- data/lib/phlex/icons/flag/de.rb +2 -2
- data/lib/phlex/icons/flag/dg.rb +2 -2
- data/lib/phlex/icons/flag/dj.rb +2 -2
- data/lib/phlex/icons/flag/dk.rb +2 -2
- data/lib/phlex/icons/flag/dm.rb +2 -2
- data/lib/phlex/icons/flag/do.rb +2 -2
- data/lib/phlex/icons/flag/dz.rb +2 -2
- data/lib/phlex/icons/flag/eac.rb +2 -2
- data/lib/phlex/icons/flag/ec.rb +2 -2
- data/lib/phlex/icons/flag/ee.rb +2 -2
- data/lib/phlex/icons/flag/eg.rb +2 -2
- data/lib/phlex/icons/flag/eh.rb +2 -2
- data/lib/phlex/icons/flag/er.rb +2 -2
- data/lib/phlex/icons/flag/es.rb +2 -2
- data/lib/phlex/icons/flag/es_ct.rb +2 -2
- data/lib/phlex/icons/flag/es_ga.rb +2 -2
- data/lib/phlex/icons/flag/es_pv.rb +2 -2
- data/lib/phlex/icons/flag/et.rb +2 -2
- data/lib/phlex/icons/flag/eu.rb +2 -2
- data/lib/phlex/icons/flag/fi.rb +2 -2
- data/lib/phlex/icons/flag/fj.rb +2 -2
- data/lib/phlex/icons/flag/fk.rb +2 -2
- data/lib/phlex/icons/flag/fm.rb +2 -2
- data/lib/phlex/icons/flag/fo.rb +2 -2
- data/lib/phlex/icons/flag/fr.rb +2 -2
- data/lib/phlex/icons/flag/ga.rb +2 -2
- data/lib/phlex/icons/flag/gb.rb +2 -2
- data/lib/phlex/icons/flag/gb_eng.rb +2 -2
- data/lib/phlex/icons/flag/gb_nir.rb +2 -2
- data/lib/phlex/icons/flag/gb_sct.rb +2 -2
- data/lib/phlex/icons/flag/gb_wls.rb +2 -2
- data/lib/phlex/icons/flag/gd.rb +2 -2
- data/lib/phlex/icons/flag/ge.rb +2 -2
- data/lib/phlex/icons/flag/gf.rb +2 -2
- data/lib/phlex/icons/flag/gg.rb +2 -2
- data/lib/phlex/icons/flag/gh.rb +2 -2
- data/lib/phlex/icons/flag/gi.rb +2 -2
- data/lib/phlex/icons/flag/gl.rb +2 -2
- data/lib/phlex/icons/flag/gm.rb +2 -2
- data/lib/phlex/icons/flag/gn.rb +2 -2
- data/lib/phlex/icons/flag/gp.rb +2 -2
- data/lib/phlex/icons/flag/gq.rb +2 -2
- data/lib/phlex/icons/flag/gr.rb +2 -2
- data/lib/phlex/icons/flag/gs.rb +2 -2
- data/lib/phlex/icons/flag/gt.rb +2 -2
- data/lib/phlex/icons/flag/gu.rb +2 -2
- data/lib/phlex/icons/flag/gw.rb +2 -2
- data/lib/phlex/icons/flag/gy.rb +2 -2
- data/lib/phlex/icons/flag/hk.rb +2 -2
- data/lib/phlex/icons/flag/hm.rb +2 -2
- data/lib/phlex/icons/flag/hn.rb +2 -2
- data/lib/phlex/icons/flag/hr.rb +2 -2
- data/lib/phlex/icons/flag/ht.rb +2 -2
- data/lib/phlex/icons/flag/hu.rb +2 -2
- data/lib/phlex/icons/flag/ic.rb +2 -2
- data/lib/phlex/icons/flag/id.rb +2 -2
- data/lib/phlex/icons/flag/ie.rb +2 -2
- data/lib/phlex/icons/flag/il.rb +2 -2
- data/lib/phlex/icons/flag/im.rb +2 -2
- data/lib/phlex/icons/flag/in.rb +2 -2
- data/lib/phlex/icons/flag/io.rb +2 -2
- data/lib/phlex/icons/flag/iq.rb +2 -2
- data/lib/phlex/icons/flag/ir.rb +2 -2
- data/lib/phlex/icons/flag/is.rb +2 -2
- data/lib/phlex/icons/flag/it.rb +2 -2
- data/lib/phlex/icons/flag/je.rb +2 -2
- data/lib/phlex/icons/flag/jm.rb +2 -2
- data/lib/phlex/icons/flag/jo.rb +2 -2
- data/lib/phlex/icons/flag/jp.rb +2 -2
- data/lib/phlex/icons/flag/ke.rb +2 -2
- data/lib/phlex/icons/flag/kg.rb +2 -2
- data/lib/phlex/icons/flag/kh.rb +2 -2
- data/lib/phlex/icons/flag/ki.rb +2 -2
- data/lib/phlex/icons/flag/km.rb +2 -2
- data/lib/phlex/icons/flag/kn.rb +2 -2
- data/lib/phlex/icons/flag/kp.rb +2 -2
- data/lib/phlex/icons/flag/kr.rb +2 -2
- data/lib/phlex/icons/flag/kw.rb +2 -2
- data/lib/phlex/icons/flag/ky.rb +2 -2
- data/lib/phlex/icons/flag/kz.rb +2 -2
- data/lib/phlex/icons/flag/la.rb +2 -2
- data/lib/phlex/icons/flag/lb.rb +2 -2
- data/lib/phlex/icons/flag/lc.rb +2 -2
- data/lib/phlex/icons/flag/li.rb +2 -2
- data/lib/phlex/icons/flag/lk.rb +2 -2
- data/lib/phlex/icons/flag/lr.rb +2 -2
- data/lib/phlex/icons/flag/ls.rb +2 -2
- data/lib/phlex/icons/flag/lt.rb +2 -2
- data/lib/phlex/icons/flag/lu.rb +2 -2
- data/lib/phlex/icons/flag/lv.rb +2 -2
- data/lib/phlex/icons/flag/ly.rb +2 -2
- data/lib/phlex/icons/flag/ma.rb +2 -2
- data/lib/phlex/icons/flag/mc.rb +2 -2
- data/lib/phlex/icons/flag/md.rb +2 -2
- data/lib/phlex/icons/flag/me.rb +2 -2
- data/lib/phlex/icons/flag/mf.rb +2 -2
- data/lib/phlex/icons/flag/mg.rb +2 -2
- data/lib/phlex/icons/flag/mh.rb +2 -2
- data/lib/phlex/icons/flag/mk.rb +2 -2
- data/lib/phlex/icons/flag/ml.rb +2 -2
- data/lib/phlex/icons/flag/mm.rb +2 -2
- data/lib/phlex/icons/flag/mn.rb +2 -2
- data/lib/phlex/icons/flag/mo.rb +2 -2
- data/lib/phlex/icons/flag/mp.rb +2 -2
- data/lib/phlex/icons/flag/mq.rb +2 -2
- data/lib/phlex/icons/flag/mr.rb +2 -2
- data/lib/phlex/icons/flag/ms.rb +2 -2
- data/lib/phlex/icons/flag/mt.rb +2 -2
- data/lib/phlex/icons/flag/mu.rb +2 -2
- data/lib/phlex/icons/flag/mv.rb +2 -2
- data/lib/phlex/icons/flag/mw.rb +2 -2
- data/lib/phlex/icons/flag/mx.rb +2 -2
- data/lib/phlex/icons/flag/my.rb +2 -2
- data/lib/phlex/icons/flag/mz.rb +2 -2
- data/lib/phlex/icons/flag/na.rb +2 -2
- data/lib/phlex/icons/flag/nc.rb +2 -2
- data/lib/phlex/icons/flag/ne.rb +2 -2
- data/lib/phlex/icons/flag/nf.rb +2 -2
- data/lib/phlex/icons/flag/ng.rb +2 -2
- data/lib/phlex/icons/flag/ni.rb +2 -2
- data/lib/phlex/icons/flag/nl.rb +2 -2
- data/lib/phlex/icons/flag/no.rb +2 -2
- data/lib/phlex/icons/flag/np.rb +2 -2
- data/lib/phlex/icons/flag/nr.rb +2 -2
- data/lib/phlex/icons/flag/nu.rb +2 -2
- data/lib/phlex/icons/flag/nz.rb +2 -2
- data/lib/phlex/icons/flag/om.rb +2 -2
- data/lib/phlex/icons/flag/pa.rb +2 -2
- data/lib/phlex/icons/flag/pc.rb +2 -2
- data/lib/phlex/icons/flag/pe.rb +2 -2
- data/lib/phlex/icons/flag/pf.rb +2 -2
- data/lib/phlex/icons/flag/pg.rb +2 -2
- data/lib/phlex/icons/flag/ph.rb +2 -2
- data/lib/phlex/icons/flag/pk.rb +2 -2
- data/lib/phlex/icons/flag/pl.rb +2 -2
- data/lib/phlex/icons/flag/pm.rb +2 -2
- data/lib/phlex/icons/flag/pn.rb +2 -2
- data/lib/phlex/icons/flag/pr.rb +2 -2
- data/lib/phlex/icons/flag/ps.rb +2 -2
- data/lib/phlex/icons/flag/pt.rb +2 -2
- data/lib/phlex/icons/flag/pw.rb +2 -2
- data/lib/phlex/icons/flag/py.rb +2 -2
- data/lib/phlex/icons/flag/qa.rb +2 -2
- data/lib/phlex/icons/flag/re.rb +2 -2
- data/lib/phlex/icons/flag/ro.rb +2 -2
- data/lib/phlex/icons/flag/rs.rb +2 -2
- data/lib/phlex/icons/flag/ru.rb +2 -2
- data/lib/phlex/icons/flag/rw.rb +2 -2
- data/lib/phlex/icons/flag/sa.rb +2 -2
- data/lib/phlex/icons/flag/sb.rb +2 -2
- data/lib/phlex/icons/flag/sc.rb +2 -2
- data/lib/phlex/icons/flag/sd.rb +2 -2
- data/lib/phlex/icons/flag/se.rb +2 -2
- data/lib/phlex/icons/flag/sg.rb +2 -2
- data/lib/phlex/icons/flag/sh.rb +2 -2
- data/lib/phlex/icons/flag/sh_ac.rb +2 -2
- data/lib/phlex/icons/flag/sh_hl.rb +2 -2
- data/lib/phlex/icons/flag/sh_ta.rb +2 -2
- data/lib/phlex/icons/flag/si.rb +2 -2
- data/lib/phlex/icons/flag/sj.rb +2 -2
- data/lib/phlex/icons/flag/sk.rb +2 -2
- data/lib/phlex/icons/flag/sl.rb +2 -2
- data/lib/phlex/icons/flag/sm.rb +2 -2
- data/lib/phlex/icons/flag/sn.rb +2 -2
- data/lib/phlex/icons/flag/so.rb +2 -2
- data/lib/phlex/icons/flag/sr.rb +2 -2
- data/lib/phlex/icons/flag/ss.rb +2 -2
- data/lib/phlex/icons/flag/st.rb +2 -2
- data/lib/phlex/icons/flag/sv.rb +2 -2
- data/lib/phlex/icons/flag/sx.rb +2 -2
- data/lib/phlex/icons/flag/sy.rb +2 -2
- data/lib/phlex/icons/flag/sz.rb +2 -2
- data/lib/phlex/icons/flag/tc.rb +2 -2
- data/lib/phlex/icons/flag/td.rb +2 -2
- data/lib/phlex/icons/flag/tf.rb +2 -2
- data/lib/phlex/icons/flag/tg.rb +2 -2
- data/lib/phlex/icons/flag/th.rb +2 -2
- data/lib/phlex/icons/flag/tj.rb +2 -2
- data/lib/phlex/icons/flag/tk.rb +2 -2
- data/lib/phlex/icons/flag/tl.rb +2 -2
- data/lib/phlex/icons/flag/tm.rb +2 -2
- data/lib/phlex/icons/flag/tn.rb +2 -2
- data/lib/phlex/icons/flag/to.rb +2 -2
- data/lib/phlex/icons/flag/tr.rb +2 -2
- data/lib/phlex/icons/flag/tt.rb +2 -2
- data/lib/phlex/icons/flag/tv.rb +2 -2
- data/lib/phlex/icons/flag/tw.rb +2 -2
- data/lib/phlex/icons/flag/tz.rb +2 -2
- data/lib/phlex/icons/flag/ua.rb +2 -2
- data/lib/phlex/icons/flag/ug.rb +2 -2
- data/lib/phlex/icons/flag/um.rb +2 -2
- data/lib/phlex/icons/flag/un.rb +2 -2
- data/lib/phlex/icons/flag/us.rb +2 -2
- data/lib/phlex/icons/flag/uy.rb +2 -2
- data/lib/phlex/icons/flag/uz.rb +2 -2
- data/lib/phlex/icons/flag/va.rb +2 -2
- data/lib/phlex/icons/flag/vc.rb +2 -2
- data/lib/phlex/icons/flag/ve.rb +2 -2
- data/lib/phlex/icons/flag/vg.rb +2 -2
- data/lib/phlex/icons/flag/vi.rb +2 -2
- data/lib/phlex/icons/flag/vn.rb +2 -2
- data/lib/phlex/icons/flag/vu.rb +2 -2
- data/lib/phlex/icons/flag/wf.rb +2 -2
- data/lib/phlex/icons/flag/ws.rb +2 -2
- data/lib/phlex/icons/flag/xk.rb +2 -2
- data/lib/phlex/icons/flag/xx.rb +2 -2
- data/lib/phlex/icons/flag/ye.rb +2 -2
- data/lib/phlex/icons/flag/yt.rb +2 -2
- data/lib/phlex/icons/flag/za.rb +2 -2
- data/lib/phlex/icons/flag/zm.rb +2 -2
- data/lib/phlex/icons/flag/zw.rb +2 -2
- data/lib/phlex/icons/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b3dd7e946d23c6e2f7f6bd05b97b10dea31ca3ce4f4ba2e42c35052e94f880a
|
4
|
+
data.tar.gz: 91ad750a60c67335fc35849d749d8871c0ea101234d77786304260f07650c353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '090b444d655f0e8e7cab331ab6ed5a6a59b68dadb2f242de4cc1705ff6e33575c795a6497797ae561347937ba8d9df17d7878ea033df544684553f582a0b75f1'
|
7
|
+
data.tar.gz: cc25faea2a39e9c19ad8d6a45c0b640c48fd38ce973a7837cae5e32f6d5217226e77f9bdbe5869728ad785b78809b9970e88d6d293cdfa382d57bd7947f7169e
|
data/README.md
CHANGED
@@ -131,13 +131,13 @@ class PhlexIcons < Phlex::HTML
|
|
131
131
|
|
132
132
|
def view_template
|
133
133
|
div do
|
134
|
-
Bootstrap::House(
|
135
|
-
Flag::Sa(variant: :rectangle,
|
136
|
-
Hero::Home(variant: :solid,
|
137
|
-
Lucide::House(
|
138
|
-
Radix::Home(
|
139
|
-
Remix::HomeLine(
|
140
|
-
Tabler::Home(variant: :filled,
|
134
|
+
Bootstrap::House(class: 'size-4')
|
135
|
+
Flag::Sa(variant: :rectangle, class: 'size-4')
|
136
|
+
Hero::Home(variant: :solid, class: 'size-4')
|
137
|
+
Lucide::House(class: 'size-4')
|
138
|
+
Radix::Home(class: 'size-4')
|
139
|
+
Remix::HomeLine(class: 'size-4')
|
140
|
+
Tabler::Home(variant: :filled, class: 'size-4')
|
141
141
|
end
|
142
142
|
end
|
143
143
|
end
|
@@ -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(
|
155
|
-
render Phlex::Icons::Flag::Sa.new(variant: :rectangle,
|
156
|
-
render Phlex::Icons::Hero::Home.new(variant: :solid,
|
157
|
-
render Phlex::Icons::Lucide::House.new(
|
158
|
-
render Phlex::Icons::Radix::Home.new(
|
159
|
-
render Phlex::Icons::Remix::HomeLine.new(
|
160
|
-
render Phlex::Icons::Tabler::Home.new(variant: :filled,
|
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')
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
@@ -181,12 +181,12 @@ class PhlexIcons < Phlex::HTML
|
|
181
181
|
def view_template
|
182
182
|
div do
|
183
183
|
# With Phlex::Kit.
|
184
|
-
Flag::Sa(variant: :rectangle,
|
185
|
-
Hero::Home(variant: :solid,
|
184
|
+
Flag::Sa(variant: :rectangle, class: 'size-4')
|
185
|
+
Hero::Home(variant: :solid, class: 'size-4')
|
186
186
|
|
187
187
|
# Without Phlex::Kit.
|
188
|
-
render Phlex::Icons::Flag::Sa.new(variant: :rectangle,
|
189
|
-
render Phlex::Icons::Hero::Home.new(variant: :solid,
|
188
|
+
render Phlex::Icons::Flag::Sa.new(variant: :rectangle, class: 'size-4')
|
189
|
+
render Phlex::Icons::Hero::Home.new(variant: :solid, class: 'size-4')
|
190
190
|
end
|
191
191
|
end
|
192
192
|
end
|
@@ -232,6 +232,10 @@ Now, you can use your custom icons like any other icon pack as described above.
|
|
232
232
|
|
233
233
|
All icon packs provided in this gem are auto-generated by their generator under [`generators`](/generators) directory. You just need to clone the repo and run the generator for the icon pack you want to update. Also, there is a GitHub Action that will run the generator for all icon packs and update the gem weekly on each Friday.
|
234
234
|
|
235
|
+
## What is the icon pack version used in the gem?
|
236
|
+
|
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`.
|
238
|
+
|
235
239
|
## Development
|
236
240
|
|
237
241
|
After checking out the repo, open it in VSCode and click `Reopen in Container` to start a development container. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/generators/bootstrap.rb
CHANGED
data/generators/flag.rb
CHANGED
@@ -58,7 +58,7 @@ def read_and_convert_icon(icon_file_path)
|
|
58
58
|
.sub(/id="flag-icons-[^"]*"/, '')
|
59
59
|
|
60
60
|
Phlexing::Converter.convert(icon_file_content)
|
61
|
-
.sub('svg(', "svg(\
|
61
|
+
.sub('svg(', "svg(\n**attrs,")
|
62
62
|
.sub('xmlns:xlink:', '"xmlns:xlink":')
|
63
63
|
.gsub('xlink:href:', '"xlink:href":')
|
64
64
|
end
|
data/generators/hero.rb
CHANGED
@@ -55,7 +55,7 @@ end
|
|
55
55
|
|
56
56
|
def read_and_convert_icon(icon_file_path)
|
57
57
|
icon_file_content = File.read(icon_file_path)
|
58
|
-
Phlexing::Converter.convert(icon_file_content).sub('svg(', "svg(\
|
58
|
+
Phlexing::Converter.convert(icon_file_content).sub('svg(', "svg(\n**attrs,")
|
59
59
|
end
|
60
60
|
|
61
61
|
def solid_icon_file_path(icon_file_name)
|
data/generators/lucide.rb
CHANGED
data/generators/radix.rb
CHANGED
data/generators/remix.rb
CHANGED
@@ -57,7 +57,7 @@ def read_and_convert_icon(icon_file_path)
|
|
57
57
|
icon_file_content = File.read(icon_file_path)
|
58
58
|
|
59
59
|
Phlexing::Converter.convert(icon_file_content)
|
60
|
-
.sub('svg(', "svg(\
|
60
|
+
.sub('svg(', "svg(\n**attrs,")
|
61
61
|
end
|
62
62
|
|
63
63
|
main if __FILE__ == $PROGRAM_NAME
|
data/generators/tabler.rb
CHANGED
@@ -61,7 +61,7 @@ def read_and_convert_icon(icon_file_path)
|
|
61
61
|
.sub('width="24"', '')
|
62
62
|
.sub('height="24"', '')
|
63
63
|
|
64
|
-
Phlexing::Converter.convert(icon_file_content).sub('svg(', "svg(\
|
64
|
+
Phlexing::Converter.convert(icon_file_content).sub('svg(', "svg(\n**attrs,")
|
65
65
|
end
|
66
66
|
|
67
67
|
def filled_icon_file_path(icon_file_name)
|
data/lib/phlex/icons/base.rb
CHANGED
@@ -3,10 +3,11 @@
|
|
3
3
|
module Phlex
|
4
4
|
module Icons
|
5
5
|
class Base < Phlex::SVG
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :attrs
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@
|
8
|
+
def initialize(**attrs)
|
9
|
+
@attrs = attrs
|
10
|
+
attrs[:class] ||= Phlex::Icons.configuration.default_classes
|
10
11
|
|
11
12
|
super()
|
12
13
|
end
|
data/lib/phlex/icons/flag/ad.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ad < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: %(#d0103a), d: %(M0 0h512v512H0z))
|
13
13
|
s.path(fill: %(#fedf00), d: %(M0 0h348.2v512H0z))
|
@@ -160,7 +160,7 @@ module Phlex
|
|
160
160
|
|
161
161
|
def rectangle
|
162
162
|
svg(
|
163
|
-
|
163
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
164
164
|
) do |s|
|
165
165
|
s.path(fill: %(#d0103a), d: %(M0 0h640v480H0z))
|
166
166
|
s.path(fill: %(#fedf00), d: %(M0 0h435.2v480H0z))
|
data/lib/phlex/icons/flag/ae.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class Ae < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.path(fill: '#00732f', d: 'M0 0h512v170.7H0z')
|
12
12
|
s.path(fill: '#fff', d: 'M0 170.7h512v170.6H0z')
|
@@ -17,7 +17,7 @@ module Phlex
|
|
17
17
|
|
18
18
|
def rectangle
|
19
19
|
svg(
|
20
|
-
|
20
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
21
21
|
) do |s|
|
22
22
|
s.path(fill: '#00732f', d: 'M0 0h640v160H0z')
|
23
23
|
s.path(fill: '#fff', d: 'M0 160h640v160H0z')
|
data/lib/phlex/icons/flag/af.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Af < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
11
11
|
) do |s|
|
12
12
|
s.g(fill_rule: %(evenodd), stroke_width: %(1pt)) do
|
13
13
|
s.path(fill: %(#000001), d: %(M0 0h512v512H0z))
|
@@ -93,7 +93,7 @@ module Phlex
|
|
93
93
|
|
94
94
|
def rectangle
|
95
95
|
svg(
|
96
|
-
|
96
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
97
97
|
) do |s|
|
98
98
|
s.g(fill_rule: %(evenodd), stroke_width: %(1pt)) do
|
99
99
|
s.path(fill: %(#000001), d: %(M0 0h640v480H0z))
|
data/lib/phlex/icons/flag/ag.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ag < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.defs do
|
13
13
|
s.clipPath(id: 'ag-a') do
|
@@ -34,7 +34,7 @@ module Phlex
|
|
34
34
|
|
35
35
|
def rectangle
|
36
36
|
svg(
|
37
|
-
|
37
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
38
38
|
) do |s|
|
39
39
|
s.defs do
|
40
40
|
s.clipPath(id: 'ag-a') do
|
data/lib/phlex/icons/flag/ai.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ai < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
11
11
|
) do |s|
|
12
12
|
s.defs do
|
13
13
|
s.path(id: %(ai-b), fill: %(#f90), d: %(M271 87c1.5 3.6 6.5 7.6 7.8 9.6-1.7 2-2 1.8-1.8 5.4 3-3.1 3-3.5 5-3 4.2 4.2.8 13.3-2.8 15.3-3.4 2.1-2.8 0-8 2.6 2.3 2 5.1-.3 7.4.3 1.2 1.5-.6 4.1.4 6.7 2-.2 1.8-4.3 2.2-5.8 1.5-5.4 10.4-9.1 10.8-14.1 1.9-.9 3.7-.3 6 1-1.1-4.6-4.9-4.6-5.9-6-2.4-3.7-4.5-7.8-9.6-9-3.8-.7-3.5.3-6-1.4-1.6-1.2-6.3-3.4-5.5-1.6))
|
@@ -41,7 +41,7 @@ module Phlex
|
|
41
41
|
|
42
42
|
def rectangle
|
43
43
|
svg(
|
44
|
-
|
44
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
45
45
|
) do |s|
|
46
46
|
s.defs do
|
47
47
|
s.path(id: %(ai-b), fill: %(#f90), d: %(M271 87c1.5 3.6 6.5 7.6 7.8 9.6-1.7 2-2 1.8-1.8 5.4 3-3.1 3-3.5 5-3 4.2 4.2.8 13.3-2.8 15.3-3.4 2.1-2.8 0-8 2.6 2.3 2 5.1-.3 7.4.3 1.2 1.5-.6 4.1.4 6.7 2-.2 1.8-4.3 2.2-5.8 1.5-5.4 10.4-9.1 10.8-14.1 1.9-.9 3.7-.3 6 1-1.1-4.6-4.9-4.6-5.9-6-2.4-3.7-4.5-7.8-9.6-9-3.8-.7-3.5.3-6-1.4-1.6-1.2-6.3-3.4-5.5-1.6))
|
data/lib/phlex/icons/flag/al.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Al < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: %(red), d: %(M0 0h512v512H0z))
|
13
13
|
s.path(id: %(al-a), fill: %(#000001), d: %(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4.4 2 8.7-.6 6.2-2 8.2-3.8 11.8-1.7 3.7-3.9 6-6 8.8-4.4 5.7-10.1 9-13.5 11.2-6.8 4.4-9.7 2.5-15 2.2-6.7.8-8.5 4.1-3 8.7a21 21 0 0 0 13.7 2.3c3.3-.6 7-4.8 9.8-7 3-3.6 8.1.6 4.7 4.7-6.3 7.5-12.6 12.4-20.3 12.3-8.2 1-6.7 5.7-1.3 7.9 9.8 4 18.6-3.5 23-8.5 3.5-3.7 6-3.9 5.3 2-3.4 10.5-8.1 14.6-15.7 15.1-6.2-.5-6.3 4.2-1.7 7.5 10.3 7 17.7-5 21.2-12.4 2.5-6.6 6.3-3.5 6.7 2 0 7.3-3.2 13.2-12 20.7 6.7 10.7 14.5 21.7 21.3 32.5l20.5-228.2-20.5-36c-2.1-2-9.3-10.5-11.2-11.7-.7-.7-1.1-1.2-.1-1.6 1-.4 3.2-.8 4.8-1-4.4-4.4-8-5.8-16.3-8.2 2-.8 4-.3 9.9-.6a32.3 32.3 0 0 0-14.4-11c4.5-3 5.3-3.3 9.8-7-7.7-.6-14.3-2-20.8-4a41 41 0 0 0-12.8-3.7m.7 9c4 0 6.6 1.4 6.6 3 0 1.7-2.5 3.1-6.6 3.1-4 0-6.6-1.5-6.6-3.2 0-1.7 2.6-3 6.6-3z))
|
@@ -17,7 +17,7 @@ module Phlex
|
|
17
17
|
|
18
18
|
def rectangle
|
19
19
|
svg(
|
20
|
-
|
20
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
21
21
|
) do |s|
|
22
22
|
s.path(fill: %(red), d: %(M0 0h640v480H0z))
|
23
23
|
s.path(id: %(al-a), fill: %(#000001), d: %(M272 93.3c-4.6 0-12.3 1.5-12.2 5-13-2.1-14.3 3.2-13.5 8 1.2-1.9 2.7-3 3.9-3.1 1.7-.3 3.5.3 5.4 1.4a21.6 21.6 0 0 1 4.8 4.1c-4.6 1.1-8.2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.8 2.6 9.2 2.9 12.8 2.2 3-.6 6.6-4.5 9.2-6.6 2.8-3.3 7.6.6 4.3 4.5-5.9 7-11.7 11.6-19 11.5-7.7 1-6.2 5.3-1.2 7.4 9.2 3.7 17.4-3.3 21.6-8 3.2-3.5 5.5-3.6 5 1.9-3.3 9.9-7.6 13.7-14.8 14.2-5.8-.6-5.9 4-1.6 7 9.6 6.6 16.6-4.8 19.9-11.6 2.3-6.2 5.9-3.3 6.3 1.8 0 6.9-3 12.4-11.3 19.4 6.3 10.1 13.7 20.4 20 30.5l19.2-214L320 139c-2-1.8-8.8-9.8-10.5-11-.7-.6-1-1-.1-1.4.9-.4 3-.8 4.5-1-4-4.1-7.6-5.4-15.3-7.6 1.9-.8 3.7-.4 9.3-.6a30.2 30.2 0 0 0-13.5-10.2c4.2-3 5-3.2 9.2-6.7a86.3 86.3 0 0 1-19.5-3.8 37.4 37.4 0 0 0-12-3.4zm.8 8.4c3.8 0 6.1 1.3 6.1 2.9 0 1.6-2.3 2.9-6.1 2.9s-6.2-1.5-6.2-3c0-1.6 2.4-2.8 6.2-2.8))
|
data/lib/phlex/icons/flag/am.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class Am < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.path(fill: '#d90012', d: 'M0 0h512v170.7H0z')
|
12
12
|
s.path(fill: '#0033a0', d: 'M0 170.7h512v170.6H0z')
|
@@ -16,7 +16,7 @@ module Phlex
|
|
16
16
|
|
17
17
|
def rectangle
|
18
18
|
svg(
|
19
|
-
|
19
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
20
20
|
) do |s|
|
21
21
|
s.path(fill: '#d90012', d: 'M0 0h640v160H0z')
|
22
22
|
s.path(fill: '#0033a0', d: 'M0 160h640v160H0z')
|
data/lib/phlex/icons/flag/ao.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ao < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
|
13
13
|
s.path(fill: 'red', d: 'M0 0h512v259.8H0z')
|
@@ -59,7 +59,7 @@ module Phlex
|
|
59
59
|
|
60
60
|
def rectangle
|
61
61
|
svg(
|
62
|
-
|
62
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
63
63
|
) do |s|
|
64
64
|
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
|
65
65
|
s.path(fill: 'red', d: 'M0 0h640v243.6H0z')
|
data/lib/phlex/icons/flag/aq.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Aq < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: '#3a7dce', d: 'M0 0h512v512H0z')
|
13
13
|
s.path(
|
@@ -29,7 +29,7 @@ module Phlex
|
|
29
29
|
|
30
30
|
def rectangle
|
31
31
|
svg(
|
32
|
-
|
32
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
33
33
|
) do |s|
|
34
34
|
s.path(fill: '#3a7dce', d: 'M0 0h640v480H0z')
|
35
35
|
s.path(
|
data/lib/phlex/icons/flag/ar.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ar < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: %(#74acdf), d: %(M0 0h512v512H0z))
|
13
13
|
s.path(fill: %(#fff), d: %(M0 170.7h512v170.7H0z))
|
@@ -44,7 +44,7 @@ module Phlex
|
|
44
44
|
|
45
45
|
def rectangle
|
46
46
|
svg(
|
47
|
-
|
47
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
48
48
|
) do |s|
|
49
49
|
s.path(fill: %(#74acdf), d: %(M0 0h640v480H0z))
|
50
50
|
s.path(fill: %(#fff), d: %(M0 160h640v160H0z))
|
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Arab < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs,
|
11
11
|
xmlns: 'http://www.w3.org/2000/svg',
|
12
12
|
version: '1.0',
|
13
13
|
viewbox: '0 0 512 512',
|
@@ -577,7 +577,7 @@ module Phlex
|
|
577
577
|
|
578
578
|
def rectangle
|
579
579
|
svg(
|
580
|
-
|
580
|
+
**attrs,
|
581
581
|
xmlns: 'http://www.w3.org/2000/svg',
|
582
582
|
version: '1.0',
|
583
583
|
viewbox: '0 0 640 480',
|
data/lib/phlex/icons/flag/as.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class As < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: '#006', d: 'M0 0h512v512H0Z')
|
13
13
|
s.path(fill: '#bd1021', d: 'M0 256 512 0v512Z')
|
@@ -333,7 +333,7 @@ module Phlex
|
|
333
333
|
|
334
334
|
def rectangle
|
335
335
|
svg(
|
336
|
-
|
336
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
337
337
|
) do |s|
|
338
338
|
s.path(fill: '#006', d: 'M0 0h640v480H0Z')
|
339
339
|
s.path(fill: '#bd1021', d: 'm-.6 240 640-240v480Z')
|
data/lib/phlex/icons/flag/at.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class At < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.path(fill: '#fff', d: 'M0 170.7h512v170.6H0z')
|
12
12
|
s.path(fill: '#c8102e', d: 'M0 0h512v170.7H0zm0 341.3h512V512H0z')
|
@@ -15,7 +15,7 @@ module Phlex
|
|
15
15
|
|
16
16
|
def rectangle
|
17
17
|
svg(
|
18
|
-
|
18
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
19
19
|
) do |s|
|
20
20
|
s.path(fill: '#fff', d: 'M0 160h640v160H0z')
|
21
21
|
s.path(fill: '#c8102e', d: 'M0 0h640v160H0zm0 320h640v160H0z')
|
data/lib/phlex/icons/flag/au.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Au < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: '#00008B', d: 'M0 0h512v512H0z')
|
13
13
|
s.path(
|
@@ -32,7 +32,7 @@ module Phlex
|
|
32
32
|
|
33
33
|
def rectangle
|
34
34
|
svg(
|
35
|
-
|
35
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
36
36
|
) do |s|
|
37
37
|
s.path(fill: '#00008B', d: 'M0 0h640v480H0z')
|
38
38
|
s.path(
|
data/lib/phlex/icons/flag/aw.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Aw < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.defs do
|
13
13
|
s.clipPath(id: 'aw-a') { s.path(fill: 'gray', d: 'M0 0h512v512H0z') }
|
@@ -208,7 +208,7 @@ module Phlex
|
|
208
208
|
|
209
209
|
def rectangle
|
210
210
|
svg(
|
211
|
-
|
211
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
212
212
|
) do |s|
|
213
213
|
s.defs do
|
214
214
|
s.clipPath(id: 'aw-a') { s.path(fill_opacity: '.7', d: 'M0 0h288v216H0z') }
|
data/lib/phlex/icons/flag/ax.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ax < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.defs do
|
13
13
|
s.clipPath(id: 'ax-a') do
|
@@ -30,7 +30,7 @@ module Phlex
|
|
30
30
|
|
31
31
|
def rectangle
|
32
32
|
svg(
|
33
|
-
|
33
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
34
34
|
) do |s|
|
35
35
|
s.defs do
|
36
36
|
s.clipPath(id: 'ax-a') do
|
data/lib/phlex/icons/flag/az.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Az < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: '#3f9c35', d: 'M0 0h512v512H0z')
|
13
13
|
s.path(fill: '#ed2939', d: 'M0 0h512v341.3H0z')
|
@@ -24,7 +24,7 @@ module Phlex
|
|
24
24
|
|
25
25
|
def rectangle
|
26
26
|
svg(
|
27
|
-
|
27
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
28
28
|
) do |s|
|
29
29
|
s.path(fill: '#3f9c35', d: 'M.1 0h640v480H.1z')
|
30
30
|
s.path(fill: '#ed2939', d: 'M.1 0h640v320H.1z')
|
data/lib/phlex/icons/flag/ba.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Ba < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
11
11
|
) do |s|
|
12
12
|
s.defs do
|
13
13
|
s.clipPath(id: 'ba-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
|
@@ -26,7 +26,7 @@ module Phlex
|
|
26
26
|
|
27
27
|
def rectangle
|
28
28
|
svg(
|
29
|
-
|
29
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
30
30
|
) do |s|
|
31
31
|
s.defs do
|
32
32
|
s.clipPath(id: 'ba-a') do
|
@@ -6,11 +6,11 @@ module Phlex
|
|
6
6
|
class Base < Icons::Base
|
7
7
|
attr_reader :variant
|
8
8
|
|
9
|
-
def initialize(variant: Phlex::Icons::
|
9
|
+
def initialize(variant: Phlex::Icons::Hero.configuration.default_variant, **attrs)
|
10
10
|
@variant = variant
|
11
11
|
|
12
|
-
if
|
13
|
-
super(
|
12
|
+
if attrs
|
13
|
+
super(**attrs)
|
14
14
|
else
|
15
15
|
super()
|
16
16
|
end
|
data/lib/phlex/icons/flag/bb.rb
CHANGED
@@ -7,7 +7,7 @@ module Phlex
|
|
7
7
|
class Bb < Base
|
8
8
|
def square
|
9
9
|
svg(
|
10
|
-
|
10
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
11
11
|
) do |s|
|
12
12
|
s.path(fill: %(#00267f), d: %(M0-.2h512V512H0z))
|
13
13
|
s.path(fill: %(#ffc726), d: %(M170.7-.2h170.6V512H170.7z))
|
@@ -18,7 +18,7 @@ module Phlex
|
|
18
18
|
|
19
19
|
def rectangle
|
20
20
|
svg(
|
21
|
-
|
21
|
+
**attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
|
22
22
|
) do |s|
|
23
23
|
s.path(fill: %(#00267f), d: %(M0 0h640v480H0z))
|
24
24
|
s.path(fill: %(#ffc726), d: %(M213.3 0h213.4v480H213.3z))
|
data/lib/phlex/icons/flag/bd.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class Bd < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.path(fill: '#006a4e', d: 'M0 0h512v512H0z')
|
12
12
|
s.circle(cx: '230', cy: '256', r: '170.7', fill: '#f42a41')
|
@@ -15,7 +15,7 @@ module Phlex
|
|
15
15
|
|
16
16
|
def rectangle
|
17
17
|
svg(
|
18
|
-
|
18
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
19
19
|
) do |s|
|
20
20
|
s.path(fill: '#006a4e', d: 'M0 0h640v480H0z')
|
21
21
|
s.circle(cx: '280', cy: '240', r: '160', fill: '#f42a41')
|
data/lib/phlex/icons/flag/be.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class Be < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
|
12
12
|
s.path(fill: '#000001', d: 'M0 0h170.7v512H0z')
|
@@ -18,7 +18,7 @@ module Phlex
|
|
18
18
|
|
19
19
|
def rectangle
|
20
20
|
svg(
|
21
|
-
|
21
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
22
22
|
) do |s|
|
23
23
|
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
|
24
24
|
s.path(fill: '#000001', d: 'M0 0h213.3v480H0z')
|
data/lib/phlex/icons/flag/bf.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class Bf < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.g(fill_rule: 'evenodd') do
|
12
12
|
s.path(fill: '#de0000', d: 'M512 511.6H.5V0H512z')
|
@@ -23,7 +23,7 @@ module Phlex
|
|
23
23
|
|
24
24
|
def rectangle
|
25
25
|
svg(
|
26
|
-
|
26
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
27
27
|
) do |s|
|
28
28
|
s.g(fill_rule: 'evenodd') do
|
29
29
|
s.path(fill: '#de0000', d: 'M640 479.6H.4V0H640z')
|
data/lib/phlex/icons/flag/bg.rb
CHANGED
@@ -6,7 +6,7 @@ module Phlex
|
|
6
6
|
class Bg < Base
|
7
7
|
def square
|
8
8
|
svg(
|
9
|
-
|
9
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
|
10
10
|
) do |s|
|
11
11
|
s.path(fill: '#fff', d: 'M0 0h512v170.7H0z')
|
12
12
|
s.path(fill: '#00966e', d: 'M0 170.7h512v170.6H0z')
|
@@ -16,7 +16,7 @@ module Phlex
|
|
16
16
|
|
17
17
|
def rectangle
|
18
18
|
svg(
|
19
|
-
|
19
|
+
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
|
20
20
|
) do |s|
|
21
21
|
s.path(fill: '#fff', d: 'M0 0h640v160H0z')
|
22
22
|
s.path(fill: '#00966e', d: 'M0 160h640v160H0z')
|