afroicons 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/icons.json +1846 -150
- package/index.d.ts +71 -4
- package/index.js +8 -7
- package/package.json +3 -3
- package/sprite.svg +66 -0
- package/svg/alloco.svg +1 -0
- package/svg/ananastranche.svg +1 -0
- package/svg/arachidedecortiquee.svg +1 -0
- package/svg/avocatcoupe.svg +1 -0
- package/svg/cacaoouvert.svg +1 -0
- package/svg/calebassepleine.svg +1 -0
- package/svg/cocoouverte.svg +1 -0
- package/svg/drapeau-afrique-du-sud.svg +1 -0
- package/svg/drapeau-algerie.svg +1 -0
- package/svg/drapeau-angola.svg +1 -0
- package/svg/drapeau-benin.svg +1 -0
- package/svg/drapeau-botswana.svg +1 -0
- package/svg/drapeau-burkina-faso.svg +1 -0
- package/svg/drapeau-burundi.svg +1 -0
- package/svg/drapeau-cameroun.svg +1 -0
- package/svg/drapeau-cap-vert.svg +1 -0
- package/svg/drapeau-centrafrique.svg +1 -0
- package/svg/drapeau-comores.svg +1 -0
- package/svg/drapeau-congo.svg +1 -0
- package/svg/drapeau-cote-d-ivoire.svg +1 -0
- package/svg/drapeau-djibouti.svg +1 -0
- package/svg/drapeau-egypte.svg +1 -0
- package/svg/drapeau-erythree.svg +1 -0
- package/svg/drapeau-eswatini.svg +1 -0
- package/svg/drapeau-ethiopie.svg +1 -0
- package/svg/drapeau-gabon.svg +1 -0
- package/svg/drapeau-gambie.svg +1 -0
- package/svg/drapeau-ghana.svg +1 -0
- package/svg/drapeau-guinee-bissau.svg +1 -0
- package/svg/drapeau-guinee-equatoriale.svg +1 -0
- package/svg/drapeau-guinee.svg +1 -0
- package/svg/drapeau-kenya.svg +1 -0
- package/svg/drapeau-lesotho.svg +1 -0
- package/svg/drapeau-liberia.svg +1 -0
- package/svg/drapeau-libye.svg +1 -0
- package/svg/drapeau-madagascar.svg +1 -0
- package/svg/drapeau-malawi.svg +1 -0
- package/svg/drapeau-mali.svg +1 -0
- package/svg/drapeau-maroc.svg +1 -0
- package/svg/drapeau-maurice.svg +1 -0
- package/svg/drapeau-mauritanie.svg +1 -0
- package/svg/drapeau-mozambique.svg +1 -0
- package/svg/drapeau-namibie.svg +1 -0
- package/svg/drapeau-niger.svg +1 -0
- package/svg/drapeau-nigeria.svg +1 -0
- package/svg/drapeau-ouganda.svg +1 -0
- package/svg/drapeau-rd-congo.svg +1 -0
- package/svg/drapeau-rwanda.svg +1 -0
- package/svg/drapeau-sao-tome-et-principe.svg +1 -0
- package/svg/drapeau-senegal.svg +1 -0
- package/svg/drapeau-seychelles.svg +1 -0
- package/svg/drapeau-sierra-leone.svg +1 -0
- package/svg/drapeau-somalie.svg +1 -0
- package/svg/drapeau-soudan-du-sud.svg +1 -0
- package/svg/drapeau-soudan.svg +1 -0
- package/svg/drapeau-tanzanie.svg +1 -0
- package/svg/drapeau-tchad.svg +1 -0
- package/svg/drapeau-togo.svg +1 -0
- package/svg/drapeau-tunisie.svg +1 -0
- package/svg/drapeau-zambie.svg +1 -0
- package/svg/drapeau-zimbabwe.svg +1 -0
- package/svg/fill/acacia.svg +1 -0
- package/svg/fill/adinkrahene.svg +1 -0
- package/svg/fill/afrique.svg +1 -0
- package/svg/fill/agama.svg +1 -0
- package/svg/fill/alloco.svg +1 -0
- package/svg/fill/ananas.svg +1 -0
- package/svg/fill/ananastranche.svg +1 -0
- package/svg/fill/ankh.svg +1 -0
- package/svg/fill/arachide.svg +1 -0
- package/svg/fill/arachidedecortiquee.svg +1 -0
- package/svg/fill/ardoise.svg +1 -0
- package/svg/fill/autruche.svg +1 -0
- package/svg/fill/avocat.svg +1 -0
- package/svg/fill/avocatcoupe.svg +1 -0
- package/svg/fill/awale.svg +1 -0
- package/svg/fill/balafon.svg +1 -0
- package/svg/fill/ballon.svg +1 -0
- package/svg/fill/bamileke.svg +1 -0
- package/svg/fill/baobab.svg +1 -0
- package/svg/fill/beignets.svg +1 -0
- package/svg/fill/bissap.svg +1 -0
- package/svg/fill/bogolan.svg +1 -0
- package/svg/fill/boubou.svg +1 -0
- package/svg/fill/boutique.svg +1 -0
- package/svg/fill/brochettes.svg +1 -0
- package/svg/fill/cacao.svg +1 -0
- package/svg/fill/cacaoouvert.svg +1 -0
- package/svg/fill/calao.svg +1 -0
- package/svg/fill/calebasse.svg +1 -0
- package/svg/fill/calebassepleine.svg +1 -0
- package/svg/fill/cameleon.svg +1 -0
- package/svg/fill/cascade.svg +1 -0
- package/svg/fill/case.svg +1 -0
- package/svg/fill/cauri.svg +1 -0
- package/svg/fill/chevre.svg +1 -0
- package/svg/fill/coco.svg +1 -0
- package/svg/fill/cocoouverte.svg +1 -0
- package/svg/fill/collierperles.svg +1 -0
- package/svg/fill/couturier.svg +1 -0
- package/svg/fill/crocodile.svg +1 -0
- package/svg/fill/croixagadez.svg +1 -0
- package/svg/fill/djembe.svg +1 -0
- package/svg/fill/djenne.svg +1 -0
- package/svg/fill/drapeau-afrique-du-sud.svg +1 -0
- package/svg/fill/drapeau-algerie.svg +1 -0
- package/svg/fill/drapeau-angola.svg +1 -0
- package/svg/fill/drapeau-benin.svg +1 -0
- package/svg/fill/drapeau-botswana.svg +1 -0
- package/svg/fill/drapeau-burkina-faso.svg +1 -0
- package/svg/fill/drapeau-burundi.svg +1 -0
- package/svg/fill/drapeau-cameroun.svg +1 -0
- package/svg/fill/drapeau-cap-vert.svg +1 -0
- package/svg/fill/drapeau-centrafrique.svg +1 -0
- package/svg/fill/drapeau-comores.svg +1 -0
- package/svg/fill/drapeau-congo.svg +1 -0
- package/svg/fill/drapeau-cote-d-ivoire.svg +1 -0
- package/svg/fill/drapeau-djibouti.svg +1 -0
- package/svg/fill/drapeau-egypte.svg +1 -0
- package/svg/fill/drapeau-erythree.svg +1 -0
- package/svg/fill/drapeau-eswatini.svg +1 -0
- package/svg/fill/drapeau-ethiopie.svg +1 -0
- package/svg/fill/drapeau-gabon.svg +1 -0
- package/svg/fill/drapeau-gambie.svg +1 -0
- package/svg/fill/drapeau-ghana.svg +1 -0
- package/svg/fill/drapeau-guinee-bissau.svg +1 -0
- package/svg/fill/drapeau-guinee-equatoriale.svg +1 -0
- package/svg/fill/drapeau-guinee.svg +1 -0
- package/svg/fill/drapeau-kenya.svg +1 -0
- package/svg/fill/drapeau-lesotho.svg +1 -0
- package/svg/fill/drapeau-liberia.svg +1 -0
- package/svg/fill/drapeau-libye.svg +1 -0
- package/svg/fill/drapeau-madagascar.svg +1 -0
- package/svg/fill/drapeau-malawi.svg +1 -0
- package/svg/fill/drapeau-mali.svg +1 -0
- package/svg/fill/drapeau-maroc.svg +1 -0
- package/svg/fill/drapeau-maurice.svg +1 -0
- package/svg/fill/drapeau-mauritanie.svg +1 -0
- package/svg/fill/drapeau-mozambique.svg +1 -0
- package/svg/fill/drapeau-namibie.svg +1 -0
- package/svg/fill/drapeau-niger.svg +1 -0
- package/svg/fill/drapeau-nigeria.svg +1 -0
- package/svg/fill/drapeau-ouganda.svg +1 -0
- package/svg/fill/drapeau-rd-congo.svg +1 -0
- package/svg/fill/drapeau-rwanda.svg +1 -0
- package/svg/fill/drapeau-sao-tome-et-principe.svg +1 -0
- package/svg/fill/drapeau-senegal.svg +1 -0
- package/svg/fill/drapeau-seychelles.svg +1 -0
- package/svg/fill/drapeau-sierra-leone.svg +1 -0
- package/svg/fill/drapeau-somalie.svg +1 -0
- package/svg/fill/drapeau-soudan-du-sud.svg +1 -0
- package/svg/fill/drapeau-soudan.svg +1 -0
- package/svg/fill/drapeau-tanzanie.svg +1 -0
- package/svg/fill/drapeau-tchad.svg +1 -0
- package/svg/fill/drapeau-togo.svg +1 -0
- package/svg/fill/drapeau-tunisie.svg +1 -0
- package/svg/fill/drapeau-zambie.svg +1 -0
- package/svg/fill/drapeau-zimbabwe.svg +1 -0
- package/svg/fill/dromadaire.svg +1 -0
- package/svg/fill/dunes.svg +1 -0
- package/svg/fill/dwennimmen.svg +1 -0
- package/svg/fill/eban.svg +1 -0
- package/svg/fill/elephant.svg +1 -0
- package/svg/fill/epimil.svg +1 -0
- package/svg/fill/etal.svg +1 -0
- package/svg/fill/euphorbe.svg +1 -0
- package/svg/fill/eventail.svg +1 -0
- package/svg/fill/fercharbon.svg +1 -0
- package/svg/fill/feuillebananier.svg +1 -0
- package/svg/fill/filet.svg +1 -0
- package/svg/fill/fleuve.svg +1 -0
- package/svg/fill/flute.svg +1 -0
- package/svg/fill/foufou.svg +1 -0
- package/svg/fill/gazelle.svg +1 -0
- package/svg/fill/gele.svg +1 -0
- package/svg/fill/ghanamustgo.svg +1 -0
- package/svg/fill/girafe.svg +1 -0
- package/svg/fill/gombo.svg +1 -0
- package/svg/fill/gorille.svg +1 -0
- package/svg/fill/grenier.svg +1 -0
- package/svg/fill/grill.svg +1 -0
- package/svg/fill/guitare.svg +1 -0
- package/svg/fill/harmattan.svg +1 -0
- package/svg/fill/hippopotame.svg +1 -0
- package/svg/fill/houe.svg +1 -0
- package/svg/fill/igname.svg +1 -0
- package/svg/fill/ignamecoupee.svg +1 -0
- package/svg/fill/jebena.svg +1 -0
- package/svg/fill/jerrycan.svg +1 -0
- package/svg/fill/kanaga.svg +1 -0
- package/svg/fill/keke.svg +1 -0
- package/svg/fill/kente.svg +1 -0
- package/svg/fill/khamsa.svg +1 -0
- package/svg/fill/kilimandjaro.svg +1 -0
- package/svg/fill/kola.svg +1 -0
- package/svg/fill/kolaouverte.svg +1 -0
- package/svg/fill/kora.svg +1 -0
- package/svg/fill/ksar.svg +1 -0
- package/svg/fill/lalibela.svg +1 -0
- package/svg/fill/lampe.svg +1 -0
- package/svg/fill/lion.svg +1 -0
- package/svg/fill/luneetoiles.svg +1 -0
- package/svg/fill/machette.svg +1 -0
- package/svg/fill/mangue.svg +1 -0
- package/svg/fill/mangueherisson.svg +1 -0
- package/svg/fill/manioc.svg +1 -0
- package/svg/fill/marmite.svg +1 -0
- package/svg/fill/marmitecouverte.svg +1 -0
- package/svg/fill/masque.svg +1 -0
- package/svg/fill/minaret.svg +1 -0
- package/svg/fill/mobilemoney.svg +1 -0
- package/svg/fill/mototaxi.svg +1 -0
- package/svg/fill/moustiquaire.svg +1 -0
- package/svg/fill/moustique.svg +1 -0
- package/svg/fill/mpatapo.svg +1 -0
- package/svg/fill/musgum.svg +1 -0
- package/svg/fill/natte.svg +1 -0
- package/svg/fill/ndebele.svg +1 -0
- package/svg/fill/ngongi.svg +1 -0
- package/svg/fill/ngoni.svg +1 -0
- package/svg/fill/nkyinkyim.svg +1 -0
- package/svg/fill/noixpalme.svg +1 -0
- package/svg/fill/nsoromma.svg +1 -0
- package/svg/fill/oasis.svg +1 -0
- package/svg/fill/okapi.svg +1 -0
- package/svg/fill/palmier.svg +1 -0
- package/svg/fill/pangolin.svg +1 -0
- package/svg/fill/panier.svg +1 -0
- package/svg/fill/panneausolaire.svg +1 -0
- package/svg/fill/peigneafro.svg +1 -0
- package/svg/fill/perroquet.svg +1 -0
- package/svg/fill/pilon.svg +1 -0
- package/svg/fill/piment.svg +1 -0
- package/svg/fill/pirogue.svg +1 -0
- package/svg/fill/plantain.svg +1 -0
- package/svg/fill/plantainepluche.svg +1 -0
- package/svg/fill/pluie.svg +1 -0
- package/svg/fill/poisson.svg +1 -0
- package/svg/fill/portebebe.svg +1 -0
- package/svg/fill/porteuse.svg +1 -0
- package/svg/fill/poterie.svg +1 -0
- package/svg/fill/poulet.svg +1 -0
- package/svg/fill/poussepousse.svg +1 -0
- package/svg/fill/puits.svg +1 -0
- package/svg/fill/pyramides.svg +1 -0
- package/svg/fill/radio.svg +1 -0
- package/svg/fill/rhinoceros.svg +1 -0
- package/svg/fill/riad.svg +1 -0
- package/svg/fill/safou.svg +1 -0
- package/svg/fill/sandales.svg +1 -0
- package/svg/fill/sankofa.svg +1 -0
- package/svg/fill/sanza.svg +1 -0
- package/svg/fill/savane.svg +1 -0
- package/svg/fill/scarabee.svg +1 -0
- package/svg/fill/sechecheveux.svg +1 -0
- package/svg/fill/shekere.svg +1 -0
- package/svg/fill/statuette.svg +1 -0
- package/svg/fill/tabouret.svg +1 -0
- package/svg/fill/tajine.svg +1 -0
- package/svg/fill/tamaparleur.svg +1 -0
- package/svg/fill/tatasomba.svg +1 -0
- package/svg/fill/taxibrousse.svg +1 -0
- package/svg/fill/termitiere.svg +1 -0
- package/svg/fill/theiere.svg +1 -0
- package/svg/fill/toghu.svg +1 -0
- package/svg/fill/tondeuse.svg +1 -0
- package/svg/fill/tontine.svg +1 -0
- package/svg/fill/tortue.svg +1 -0
- package/svg/fill/tresses.svg +1 -0
- package/svg/fill/ville.svg +1 -0
- package/svg/fill/vindepalme.svg +1 -0
- package/svg/fill/volcan.svg +1 -0
- package/svg/fill/vuvuzela.svg +1 -0
- package/svg/fill/wax.svg +1 -0
- package/svg/fill/zebre.svg +1 -0
- package/svg/fill/zebu.svg +1 -0
- package/svg/fill/zimbabwe.svg +1 -0
- package/svg/ignamecoupee.svg +1 -0
- package/svg/kolaouverte.svg +1 -0
- package/svg/mangueherisson.svg +1 -0
- package/svg/marmitecouverte.svg +1 -0
- package/svg/plantainepluche.svg +1 -0
package/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type AfroiconName =
|
|
|
6
6
|
| "kilimandjaro"
|
|
7
7
|
| "dunes"
|
|
8
8
|
| "cacao"
|
|
9
|
+
| "cacaoouvert"
|
|
9
10
|
| "afrique"
|
|
10
11
|
| "feuillebananier"
|
|
11
12
|
| "cascade"
|
|
@@ -76,20 +77,30 @@ export type AfroiconName =
|
|
|
76
77
|
| "bogolan"
|
|
77
78
|
| "toghu"
|
|
78
79
|
| "calebasse"
|
|
80
|
+
| "calebassepleine"
|
|
79
81
|
| "pilon"
|
|
80
82
|
| "marmite"
|
|
83
|
+
| "marmitecouverte"
|
|
81
84
|
| "plantain"
|
|
85
|
+
| "plantainepluche"
|
|
86
|
+
| "alloco"
|
|
82
87
|
| "jebena"
|
|
83
88
|
| "foufou"
|
|
84
89
|
| "brochettes"
|
|
85
90
|
| "piment"
|
|
86
91
|
| "igname"
|
|
92
|
+
| "ignamecoupee"
|
|
87
93
|
| "manioc"
|
|
88
94
|
| "ananas"
|
|
95
|
+
| "ananastranche"
|
|
89
96
|
| "mangue"
|
|
97
|
+
| "mangueherisson"
|
|
90
98
|
| "arachide"
|
|
99
|
+
| "arachidedecortiquee"
|
|
91
100
|
| "coco"
|
|
101
|
+
| "cocoouverte"
|
|
92
102
|
| "avocat"
|
|
103
|
+
| "avocatcoupe"
|
|
93
104
|
| "epimil"
|
|
94
105
|
| "gombo"
|
|
95
106
|
| "bissap"
|
|
@@ -100,6 +111,7 @@ export type AfroiconName =
|
|
|
100
111
|
| "safou"
|
|
101
112
|
| "grill"
|
|
102
113
|
| "kola"
|
|
114
|
+
| "kolaouverte"
|
|
103
115
|
| "noixpalme"
|
|
104
116
|
| "pirogue"
|
|
105
117
|
| "panier"
|
|
@@ -148,13 +160,68 @@ export type AfroiconName =
|
|
|
148
160
|
| "zimbabwe"
|
|
149
161
|
| "ndebele"
|
|
150
162
|
| "ville"
|
|
151
|
-
| "riad"
|
|
152
|
-
|
|
163
|
+
| "riad"
|
|
164
|
+
| "drapeau-algerie"
|
|
165
|
+
| "drapeau-angola"
|
|
166
|
+
| "drapeau-benin"
|
|
167
|
+
| "drapeau-botswana"
|
|
168
|
+
| "drapeau-burkina-faso"
|
|
169
|
+
| "drapeau-burundi"
|
|
170
|
+
| "drapeau-cap-vert"
|
|
171
|
+
| "drapeau-cameroun"
|
|
172
|
+
| "drapeau-centrafrique"
|
|
173
|
+
| "drapeau-tchad"
|
|
174
|
+
| "drapeau-comores"
|
|
175
|
+
| "drapeau-congo"
|
|
176
|
+
| "drapeau-rd-congo"
|
|
177
|
+
| "drapeau-cote-d-ivoire"
|
|
178
|
+
| "drapeau-djibouti"
|
|
179
|
+
| "drapeau-egypte"
|
|
180
|
+
| "drapeau-guinee-equatoriale"
|
|
181
|
+
| "drapeau-erythree"
|
|
182
|
+
| "drapeau-eswatini"
|
|
183
|
+
| "drapeau-ethiopie"
|
|
184
|
+
| "drapeau-gabon"
|
|
185
|
+
| "drapeau-gambie"
|
|
186
|
+
| "drapeau-ghana"
|
|
187
|
+
| "drapeau-guinee"
|
|
188
|
+
| "drapeau-guinee-bissau"
|
|
189
|
+
| "drapeau-kenya"
|
|
190
|
+
| "drapeau-lesotho"
|
|
191
|
+
| "drapeau-liberia"
|
|
192
|
+
| "drapeau-libye"
|
|
193
|
+
| "drapeau-madagascar"
|
|
194
|
+
| "drapeau-malawi"
|
|
195
|
+
| "drapeau-mali"
|
|
196
|
+
| "drapeau-mauritanie"
|
|
197
|
+
| "drapeau-maurice"
|
|
198
|
+
| "drapeau-maroc"
|
|
199
|
+
| "drapeau-mozambique"
|
|
200
|
+
| "drapeau-namibie"
|
|
201
|
+
| "drapeau-niger"
|
|
202
|
+
| "drapeau-nigeria"
|
|
203
|
+
| "drapeau-ouganda"
|
|
204
|
+
| "drapeau-rwanda"
|
|
205
|
+
| "drapeau-sao-tome-et-principe"
|
|
206
|
+
| "drapeau-senegal"
|
|
207
|
+
| "drapeau-seychelles"
|
|
208
|
+
| "drapeau-sierra-leone"
|
|
209
|
+
| "drapeau-somalie"
|
|
210
|
+
| "drapeau-afrique-du-sud"
|
|
211
|
+
| "drapeau-soudan-du-sud"
|
|
212
|
+
| "drapeau-soudan"
|
|
213
|
+
| "drapeau-tanzanie"
|
|
214
|
+
| "drapeau-togo"
|
|
215
|
+
| "drapeau-tunisie"
|
|
216
|
+
| "drapeau-zambie"
|
|
217
|
+
| "drapeau-zimbabwe";
|
|
218
|
+
export type AfroiconCategory = "nature" | "faune" | "musique" | "symboles" | "cuisine" | "vie" | "architecture" | "drapeaux";
|
|
153
219
|
export type AfroiconRegion = "pan" | "ouest" | "centre" | "est" | "nord" | "australe";
|
|
154
|
-
export interface AfroiconData { id: AfroiconName; fr: string; en: string; cat: AfroiconCategory; region: AfroiconRegion; tags: string[]; since: string; body: string; }
|
|
220
|
+
export interface AfroiconData { id: AfroiconName; fr: string; en: string; cat: AfroiconCategory; region: AfroiconRegion; tags: string[]; since: string; /** Icône dont celle-ci est une variante (épluchée, coupée, ouverte…). */ variantOf?: AfroiconName; /** Drapeaux : code ISO du pays et son nom. */ iso?: string; country?: { fr: string; en: string }; /** Dessin au trait. */ body: string; /** Version remplie. */ fill: string; }
|
|
155
221
|
export const icons: Record<AfroiconName, AfroiconData>;
|
|
156
222
|
export const names: AfroiconName[];
|
|
157
|
-
export
|
|
223
|
+
export type AfroiconVariant = "line" | "fill";
|
|
224
|
+
export interface ToSvgOptions { size?: number | string; color?: string; strokeWidth?: number | string; className?: string; /** "line" (trait, par défaut) ou "fill" (rempli). */ variant?: AfroiconVariant; }
|
|
158
225
|
export function toSvg(name: AfroiconName, options?: ToSvgOptions): string;
|
|
159
226
|
export function replace(options?: { attr?: string; root?: ParentNode }): void;
|
|
160
227
|
declare const _default: { icons: typeof icons; names: typeof names; toSvg: typeof toSvg; replace: typeof replace };
|